.landing-autumn-leaves {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  pointer-events: none;
  z-index: 9998;
  opacity: .9;
}

.landing-autumn-leaf {
  position: absolute;
  top: 0;
  left: 0;
  width: var(--leaf-size, 20px);
  height: calc(var(--leaf-size, 20px) * 1.12);
  background: url('/images/landing/autumn-leaf.svg') center / contain no-repeat;
  will-change: transform;
}

img[src*="bu-autumn-logo.svg"] {
  max-width: 160px;
  max-height: 90px;
  object-fit: contain;
}

.site-autumn-logo {
  display: block;
  width: 150px;
  height: 85px;
  padding: 4px;
  border-radius: 8px;
  background: #fff;
}

.site-autumn-logo-compact {
  width: 86px;
  height: 60px;
  object-fit: contain;
}

.landing-autumn-shell {
  background: linear-gradient(180deg, #fffdf8 0%, #fff8ef 24%, #fff 100%);
}

.landing-autumn-sidebar,
.landing-autumn-mobile-nav {
  isolation: isolate;
}

.landing-autumn-sidebar { position: sticky; }

/* Shared navigation on the landing and inner pages. */
.landing-autumn-sidebar,
.landing-autumn-mobile-nav {
  background: linear-gradient(180deg, #fff8ec 0%, #fffdf8 65%, #fff7eb 100%) !important;
  border-color: #efd8bf !important;
}

.landing-autumn-topbar {
  background: rgba(255, 247, 234, .96) !important;
  border-color: #efd4b5 !important;
  box-shadow: 0 3px 16px rgba(145, 71, 22, .06);
}

.landing-autumn-topbar-logo {
  height: 60px;
  max-width: 88px;
}

.landing-autumn-menu-logo {
  height: 90px;
  max-width: 150px;
}

.landing-autumn-sidebar nav a:not(.bg-navy),
.landing-autumn-sidebar nav summary,
.landing-autumn-mobile-nav nav a:not(.landing-menu-active),
.landing-autumn-mobile-nav nav summary:not(.landing-menu-active) {
  color: #71472d !important;
}

.landing-autumn-sidebar nav a:not(.bg-navy):hover,
.landing-autumn-sidebar nav summary:hover,
.landing-autumn-mobile-nav nav a:not(.landing-menu-active):hover,
.landing-autumn-mobile-nav nav summary:not(.landing-menu-active):hover {
  background: #fbe8cd !important;
  color: #984317 !important;
}

.landing-autumn-sidebar nav a.bg-navy,
.landing-autumn-mobile-nav .landing-menu-active {
  background: linear-gradient(110deg, #a94408, #ce6728) !important;
  color: #fff !important;
  box-shadow: 0 5px 13px rgba(169, 68, 8, .19);
}

.landing-autumn-sidebar nav a.bg-navy svg,
.landing-autumn-mobile-nav .landing-menu-active svg {
  color: #fff !important;
}

.landing-autumn-sidebar nav details[open] > summary,
.landing-autumn-mobile-nav nav details[open] > summary:not(.landing-menu-active) {
  background: #f8e3c8 !important;
  color: #984317 !important;
}

.landing-autumn-sidebar .mt-auto a.text-brand-teal,
.landing-autumn-mobile-nav .mt-6 a.text-brand-teal {
  color: #a94408 !important;
}

.landing-autumn-topbar #menuBtn,
.landing-autumn-topbar details[data-dropdown] > summary {
  background: #fffaf2 !important;
  border-color: #e9bf98 !important;
  color: #80431e !important;
}

.landing-autumn-topbar #menuBtn:hover,
.landing-autumn-topbar details[data-dropdown] > summary:hover {
  background: #fbe8cd !important;
}

.landing-autumn-topbar #langPopup,
.landing-autumn-topbar details[data-dropdown] > div {
  background: #fffaf2 !important;
  border-color: #e9bf98 !important;
}

.landing-autumn-topbar #langPopup .lang-option.bg-brand-teal {
  background: #a94408 !important;
  color: #fff !important;
}

.landing-autumn-topbar #langPopup .lang-option:not(.bg-brand-teal):hover,
.landing-autumn-topbar details[data-dropdown] > div a:hover,
.landing-autumn-topbar details[data-dropdown] > div button:hover {
  background: #fbe8cd !important;
  color: #984317 !important;
}

/* The catalog uses a separate header and route-based active link classes. */
.landing-autumn-catalog #block1 header,
.landing-autumn-catalog #block1 .fix-menu {
  background: #fff7ea !important;
  border-color: #efd4b5 !important;
}

.landing-autumn-catalog #block1 nav a:hover,
.landing-autumn-catalog #block1 nav a.active-class,
.landing-autumn-catalog #block1 nav a.text-blue-600 {
  color: #a94408 !important;
}

.landing-autumn-catalog #block1 nav a.active-class {
  border-bottom: 2px solid #c65d1e;
}

/* Guest, account and role pages use separate top navigation templates. */
body > header.flex,
body > nav[x-data].bg-gray-100,
body > nav[x-data].bg-gray-100 > div.bg-white {
  background: #fff7ea !important;
  border-color: #efd4b5 !important;
}

body > header.flex a.border-b-2 {
  border-color: #c65d1e !important;
  color: #984317 !important;
}

/* Role dashboards share the older blue sidebar component. */
nav:has(.admin_panel),
nav:has(.admin_panel) > .max-menu,
nav:has(.admin_panel) .admin_panel {
  background: #934116 !important;
}

nav:has(.admin_panel) .admin_panel .sub-menu {
  background: #7d3512 !important;
}

nav:has(.admin_panel) .admin_panel .nav-links li:hover,
nav:has(.admin_panel) .admin_panel .backs,
nav:has(.admin_panel) .admin_panel .nav-links li.showMenu > .iocn-link {
  background: #b65a20 !important;
}

nav:has(.admin_panel) .admin_panel .active-board,
nav:has(.admin_panel) .admin_panel .activ {
  border-color: #ffcd79 !important;
  color: #fff !important;
}

.landing-autumn-mobile-nav {
  position: absolute;
}

.landing-autumn-sidebar > :not(.landing-menu-leaves),
.landing-autumn-mobile-nav > :not(.landing-menu-leaves) {
  position: relative;
  z-index: 1;
}

.landing-menu-leaves {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  opacity: .48;
}

.landing-menu-leaf {
  position: absolute;
  top: -28px;
  width: 18px;
  height: 20px;
  background: url('/images/landing/autumn-leaf.svg') center / contain no-repeat;
  animation: landing-menu-leaf-fall 12s linear infinite;
}

.landing-menu-leaf:nth-child(2) { animation-duration: 15s; }
.landing-menu-leaf:nth-child(3) { animation-duration: 18s; }

@keyframes landing-menu-leaf-fall {
  0% { transform: translate3d(0, -30px, 0) rotate(0deg); }
  50% { transform: translate3d(26px, 48vh, 0) rotate(150deg); }
  100% { transform: translate3d(-16px, 105vh, 0) rotate(310deg); }
}

.landing-autumn-search {
  padding: 2px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f1a24a, #f08a31 55%, #d96c2f);
  box-shadow: 0 10px 26px rgba(217, 108, 47, .16);
}

.landing-autumn-search input[role="searchbox"] {
  height: 48px;
  padding-right: 110px;
  background: linear-gradient(90deg, #fffaf3 0%, #fff8ed 78%, #fff0d9 100%) !important;
  color: #6e625b;
  box-shadow: inset 0 0 0 1px rgba(217, 108, 47, .12);
}

.landing-autumn-search input[role="searchbox"]:focus {
  box-shadow: inset 0 0 0 1px rgba(217, 108, 47, .4), 0 0 0 4px rgba(240, 138, 49, .14);
}

.landing-search-leaves {
  position: absolute;
  top: 3px;
  right: 8px;
  bottom: 3px;
  width: 145px;
  overflow: hidden;
  border-radius: 0 999px 999px 0;
  pointer-events: none;
  z-index: 2;
}

.landing-search-leaves::before,
.landing-search-leaves::after,
.landing-search-leaves > span {
  content: '';
  position: absolute;
  width: 92px;
  height: 104px;
  background: url('/images/landing/autumn-leaf.svg') center / contain no-repeat;
  opacity: .82;
}

.landing-search-leaves::before {
  right: -30px;
  top: 15px;
  transform: rotate(18deg);
}

.landing-search-leaves::after {
  right: 34px;
  top: 38px;
  transform: rotate(-28deg) scale(.78);
  opacity: .34;
}

.landing-search-leaves > span {
  right: -2px;
  top: 0;
  transform: rotate(48deg) scale(.74);
  opacity: .34;
}

@media (max-width: 640px) {
  .landing-autumn-search input[role="searchbox"] { padding-right: 74px; }
  .landing-search-leaves { width: 72px; }
  .landing-search-leaves::before,
  .landing-search-leaves::after,
  .landing-search-leaves > span { width: 56px; height: 64px; }
}

.landing-autumn-topbar .landing-autumn-action {
  border: 2px solid #d96c2f !important;
  border-radius: 999px !important;
  background: #fffaf2 !important;
  color: #a95c2b !important;
}

.landing-autumn-topbar .landing-autumn-action:hover {
  background: #fff0dc !important;
  color: #c45d22 !important;
}

.landing-autumn-topbar .landing-autumn-register {
  border-radius: 999px !important;
  background: linear-gradient(135deg, #d96c2f, #b94d0b) !important;
  color: #fff !important;
  box-shadow: 0 6px 16px rgba(185, 77, 11, .22) !important;
}

.landing-autumn-topbar .landing-autumn-register:hover {
  background: linear-gradient(135deg, #e67b3b, #a94408) !important;
}

.landing-banner-stage {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.landing-banner-panel {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  border-radius: 14px;
}

.landing-banner-brand {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 4vw, 58px);
  background-color: #0b7f8a;
  background-image: linear-gradient(90deg, rgba(4, 43, 53, .92) 0%, rgba(4, 43, 53, .79) 52%, rgba(4, 43, 53, .16) 100%), url('../images/landing/hero-laptop.png');
  background-position: center, 60% center;
  background-size: cover;
  color: #fff;
}

.landing-banner-brand h1 {
  max-width: 540px;
  font-size: clamp(27px, 2.9vw, 43px);
  line-height: 1.2;
  letter-spacing: -.02em;
  font-weight: 800;
}

main #home .landing-banner-brand p {
  max-width: 620px;
  margin-top: 14px;
  font-size: clamp(15px, 1.25vw, 19px);
  line-height: 1.5;
  color: #fff !important;
}

main #home .landing-banner-brand a {
  align-self: flex-start;
  margin-top: 25px;
  padding: 11px 23px;
  border-radius: 10px;
  background: #008f95;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  transition: transform .2s ease, box-shadow .2s ease;
}

main #home .landing-banner-brand a:hover {
  background: #006f75;
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, .14);
}

.landing-banner-slider { background: #f7f5f1; }

.landing-banner-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity .4s ease, visibility .4s ease;
}

.landing-banner-slide.is-active { opacity: 1; visibility: visible; }

.landing-banner-image {
  background: #f7f5f1;
}

.landing-banner-image-link {
  display: block;
  width: 100%;
  height: 100%;
}

.landing-banner-image-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left center;
}

.landing-banner-image-link:focus-visible {
  outline: 3px solid #008f95;
  outline-offset: -3px;
}

.landing-banner-controls {
  position: absolute;
  right: 22px;
  bottom: 18px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 8px;
}

.landing-banner-control,
.landing-banner-dot { border: 0; cursor: pointer; }

.landing-banner-control {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .78);
  color: #27652d;
  font-size: 19px;
  line-height: 1;
}

.landing-banner-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border-radius: 50%;
  background: rgba(39, 101, 45, .28);
}

.landing-banner-dot.is-active { background: #2eaa55; transform: scale(1.25); }

.landing-banner-control:focus-visible,
.landing-banner-dot:focus-visible { outline: 2px solid #045d60; outline-offset: 3px; }

@media (max-width: 1023px) {
  .landing-banner-stage { grid-template-columns: 1fr; }
  .landing-banner-panel { min-height: 390px; }
  .landing-banner-slider {
    min-height: 0;
    aspect-ratio: 8 / 5;
  }
}

@media (prefers-reduced-motion: reduce) {
  .landing-banner-slide { transition: none; }
}
