/* Home landing page CI red navigation refresh */
.reference-home {
  --home-red-gradient: var(--ci-red-gradient);
  --home-red-gradient-horizontal: var(--ci-red-gradient-horizontal);
  --home-red-shadow: 0 16px 30px rgba(143, 7, 16, 0.24);
}

.reference-home .landing-header {
  isolation: isolate;
  overflow: visible;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.12), transparent 42%),
    var(--home-red-gradient);
  border-bottom: 0;
  box-shadow: 0 18px 36px rgba(143, 7, 16, 0.2);
}

.reference-home .landing-header::before {
  inset: 0 0 auto;
  height: 100%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(76, 3, 8, 0));
  content: "";
  pointer-events: none;
}

.reference-home .landing-header::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  content: "";
  background: rgba(255, 255, 255, 0.28);
}

.reference-home .landing-header .nav-wrap {
  position: relative;
  z-index: 1;
  width: min(1280px, calc(100% - 48px));
  min-height: 86px;
  gap: 16px;
  padding-top: 0;
}

.reference-home .landing-header .brand {
  min-width: 150px;
  color: #fff;
  text-shadow: 0 8px 18px rgba(76, 3, 8, 0.18);
}

.reference-home .landing-header .brand span,
.reference-home .landing-header .brand small {
  color: rgba(255, 255, 255, 0.86);
}

.reference-home .landing-header .brand strong {
  color: #fff;
  font-size: 29px;
  line-height: 0.84;
}

.reference-home .landing-header .nav-links {
  flex: 0 1 auto;
  justify-content: center;
  gap: 3px;
  max-width: none;
  margin: 0 auto;
  padding: 5px;
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 999px;
  box-shadow: 0 16px 30px rgba(76, 3, 8, 0.16);
}

.reference-home .landing-header .nav-links a,
.reference-home .landing-header .nav-links a:nth-child(n) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  color: #211417;
  background: transparent;
  border-radius: 999px;
  box-shadow: none;
  font-size: 13px;
  font-weight: 1000;
  line-height: 1;
}

.reference-home .landing-header .nav-links a::before,
.reference-home .landing-header .nav-links a::after {
  display: none;
  content: none;
}

.reference-home .landing-header .nav-links a:hover {
  color: var(--ci-red);
  background: var(--ci-red-soft);
}

.reference-home .landing-header .nav-links a.active,
.reference-home .landing-header .nav-links a.active:hover {
  color: #fff;
  background: var(--home-red-gradient);
  box-shadow: 0 10px 22px rgba(237, 27, 36, 0.24);
}

.reference-home .landing-header .nav-actions {
  flex: 0 0 auto;
  gap: 8px;
  flex-wrap: nowrap;
}

.reference-home .landing-header .language-switch {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.24);
  box-shadow: none;
}

.reference-home .landing-header .language-switch::before {
  background: #fff;
  box-shadow: 0 10px 18px rgba(76, 3, 8, 0.16);
}

.reference-home .landing-header .language-switch .lang-option {
  color: rgba(255, 255, 255, 0.82);
}

.reference-home .landing-header .language-switch .lang-option.active {
  color: var(--ci-red);
}

.reference-home .landing-header .icon-button,
.reference-home .landing-header .account-button {
  color: var(--ci-red);
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.36);
  box-shadow: 0 12px 24px rgba(76, 3, 8, 0.14);
}

.reference-home .landing-header .icon-button:hover,
.reference-home .landing-header .account-button:hover,
.reference-home .landing-header .nav-search[open] > .icon-button {
  color: var(--ci-red-deep);
  background: #fff;
  border-color: #fff;
  transform: translateY(-1px);
}

.reference-home .landing-header .account-button {
  width: 44px;
  min-width: 44px;
  gap: 0;
  padding: 0;
  border-radius: 999px;
}

.reference-home .landing-header .account-button span {
  display: none;
}

.reference-home .landing-hero {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 250, 250, 0.94) 34%, rgba(255, 245, 246, 0.56) 56%, rgba(255, 255, 255, 0.02) 78%),
    url("assets/good-choice-hero.png") center / cover no-repeat;
}

.reference-home .landing-hero::after {
  background: var(--home-red-gradient-horizontal);
}

.reference-home .hero-location {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 13px;
  color: #fff;
  background: var(--home-red-gradient);
  border-radius: 999px;
  box-shadow: 0 12px 22px rgba(237, 27, 36, 0.18);
  font-size: 15px;
}

.reference-home .hero-logo-title,
.reference-home .reference-hero-copy .hero-logo-title,
.reference-home .hero-brand-service,
.reference-home .reference-hero-lead strong {
  color: var(--ci-red);
}

.reference-home .hero-divider {
  background: var(--home-red-gradient-horizontal);
}

.reference-home .hero-benefits article > span,
.reference-home .landing-search button,
.reference-home .market-button.primary {
  background: var(--home-red-gradient);
  box-shadow: var(--home-red-shadow);
}

.reference-home .landing-search {
  background: #fff;
  border: 2px solid var(--ci-red);
  box-shadow: 0 18px 38px rgba(143, 7, 16, 0.12);
}

.reference-home .landing-search svg {
  color: var(--ci-red);
}

.reference-home .landing-search select,
.reference-home .landing-search input {
  background: var(--ci-red-soft);
  border-color: var(--ci-red-line);
}

.reference-home .market-button.secondary,
.reference-home .hero-tag-row a {
  color: var(--ci-red);
  background: #fff;
  border: 1px solid var(--ci-red-line);
}

.reference-home .market-button.secondary:hover,
.reference-home .hero-tag-row a:hover {
  color: #fff;
  background: var(--home-red-gradient);
  border-color: var(--ci-red);
}

.reference-home .nav-search-panel {
  border-color: var(--ci-red-line);
  box-shadow: 0 24px 60px rgba(76, 3, 8, 0.22);
}

.reference-home .why-choose-band,
.reference-home .contact-market,
.reference-home .landing-footer {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.12), transparent 44%),
    var(--home-red-gradient-horizontal);
}

.reference-home .growth-cta-inner {
  background:
    linear-gradient(90deg, rgba(143, 7, 16, 0.96) 0%, rgba(200, 16, 26, 0.9) 46%, rgba(237, 27, 36, 0.2) 78%),
    url("assets/good-choice-hero.png") center right / cover no-repeat;
}

.reference-home .delivery-board {
  background:
    linear-gradient(135deg, rgba(143, 7, 16, 0.94), rgba(237, 27, 36, 0.84)),
    url("assets/food-collage.png") center / cover;
}

.reference-home .hero-slider-dots .active,
.reference-home .product-aisles .section-kicker::before,
.reference-home .partners-section .section-kicker::before,
.reference-home .landing-aisle-card::before,
.reference-home .quality-card::before,
.reference-home .problem-card::before,
.reference-home .featured-product-card em,
.reference-home .quality-overlay,
.reference-home .footer-top {
  background: var(--home-red-gradient-horizontal);
}

.reference-home .landing-aisle-card .aisle-badge,
.reference-home .product-aisles .market-button.outline,
.reference-home .nav-search-panel button,
.reference-home .contact-modal-form .market-button,
.reference-home .market-quote-form .market-button {
  background: var(--home-red-gradient);
  box-shadow: var(--home-red-shadow);
}

.reference-home .landing-aisle-card.hot {
  background: var(--home-red-gradient);
}

.reference-home .contact-info-list svg,
.reference-home .featured-checklist svg,
.reference-home .quality-proof-list svg,
.reference-home .section-kicker,
.reference-home .delivery-round-list strong {
  color: var(--ci-red-deep);
}

.reference-home .contact-market .section-kicker,
.reference-home .delivery-board .section-kicker,
.reference-home .why-choose-band .section-kicker,
.reference-home .landing-footer .footer-line svg {
  color: #fff;
}

@media (max-width: 1120px) {
  .reference-home .landing-header .nav-wrap {
    width: min(100% - 38px, 1280px);
    gap: 12px;
  }

  .reference-home .landing-header .brand {
    min-width: 130px;
  }

  .reference-home .landing-header .brand strong {
    font-size: 26px;
  }

  .reference-home .landing-header .nav-links a,
  .reference-home .landing-header .nav-links a:nth-child(n) {
    padding: 0 11px;
    font-size: 12px;
  }
}

@media (max-width: 1100px) {
  .reference-home .landing-header .nav-wrap {
    display: grid;
    grid-template-columns: minmax(112px, 1fr) auto;
    grid-template-areas:
      "brand actions"
      "links links";
    align-items: center;
    min-height: 0;
    gap: 10px 12px;
    padding: 11px 0 12px;
  }

  .reference-home .landing-header .brand {
    grid-area: brand;
    justify-self: start;
    width: auto;
    min-width: 0;
    max-width: 190px;
  }

  .reference-home .landing-header .brand span {
    font-size: 9px;
  }

  .reference-home .landing-header .brand strong {
    font-size: 25px;
  }

  .reference-home .landing-header .brand small {
    font-size: 8px;
  }

  .reference-home .landing-header .nav-actions {
    grid-area: actions;
    display: grid;
    grid-template-columns: 82px 42px 42px;
    order: 0;
    flex: 0 0 182px;
    width: 182px;
    justify-self: end;
    margin-left: 0;
    padding: 0;
    gap: 8px;
  }

  .reference-home .landing-header .nav-search,
  .reference-home .landing-header .nav-search summary {
    width: 42px;
    min-width: 42px;
  }

  .reference-home .landing-header .account-button {
    width: 42px;
    min-width: 42px;
    height: 42px;
    padding: 0;
  }

  .reference-home .landing-header .account-button span {
    display: none;
  }

  .reference-home .landing-header .nav-links {
    grid-area: links;
    order: 3;
    flex: 1 0 100%;
    justify-content: flex-start;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 5px;
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.28);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
  }

  .reference-home .landing-header .nav-links::-webkit-scrollbar {
    display: none;
  }

  .reference-home .landing-header .nav-links a,
  .reference-home .landing-header .nav-links a:nth-child(n) {
    flex: 0 0 auto;
    min-height: 38px;
    padding: 0 15px;
    color: #fff;
    font-size: 12px;
  }

  .reference-home .landing-header .nav-links a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.16);
  }

  .reference-home .landing-header .nav-links a.active,
  .reference-home .landing-header .nav-links a.active:hover {
    color: var(--ci-red);
    background: #fff;
    box-shadow: 0 10px 20px rgba(76, 3, 8, 0.18);
  }

  .reference-home .nav-search-panel {
    top: calc(100% + 12px);
  }
}

@media (max-width: 560px) {
  .reference-home .landing-header .nav-wrap {
    position: relative;
    display: block;
    width: calc(100% - 24px) !important;
    max-width: 1280px;
    min-height: 118px;
    padding: 10px 0;
  }

  .reference-home .landing-header .nav-actions {
    position: absolute;
    top: 19px;
    left: 128px;
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    flex-wrap: nowrap;
    justify-content: flex-start;
    width: 156px !important;
    min-width: 156px;
    margin-left: 0 !important;
    margin-top: 0;
    padding: 0;
    gap: 6px;
  }

  .reference-home .landing-header .brand {
    display: inline-flex;
    width: 108px;
    min-width: 0;
    max-width: 108px;
    justify-self: start;
  }

  .reference-home .landing-header .brand span,
  .reference-home .landing-header .brand small {
    line-height: 1;
  }

  .reference-home .landing-header .brand span {
    font-size: 8px;
  }

  .reference-home .landing-header .brand strong {
    margin-top: 2px;
    font-size: 21px;
  }

  .reference-home .landing-header .brand small {
    font-size: 7px;
  }

  .reference-home .landing-header .account-button {
    width: 36px;
    min-width: 36px;
    height: 36px;
    padding: 0;
  }

  .reference-home .landing-header .account-button span {
    display: none;
  }

  .reference-home .landing-header .icon-button {
    width: 36px;
    min-width: 36px;
    height: 36px;
  }

  .reference-home .landing-header .nav-search,
  .reference-home .landing-header .nav-search summary {
    width: 36px;
    min-width: 36px;
  }

  .reference-home .landing-header .language-switch {
    grid-template-columns: repeat(2, 33px);
    width: 72px;
    min-width: 72px;
    min-height: 36px;
    padding: 3px;
  }

  .reference-home .landing-header .language-switch::before {
    top: 3px;
    bottom: 3px;
    left: 3px;
    width: 33px;
  }

  .reference-home .landing-header .language-switch[data-active-lang="en"]::before {
    transform: translateX(33px);
  }

  .reference-home .landing-header .language-switch .lang-option {
    min-width: 33px;
    height: 30px;
    padding: 0;
    font-size: 12px;
  }

  .reference-home .landing-header .nav-links {
    display: flex;
    width: 100%;
    margin: 9px 0 0;
    padding: 4px;
  }

  .reference-home .landing-header .nav-links a,
  .reference-home .landing-header .nav-links a:nth-child(n) {
    min-height: 32px;
    padding: 0 10px;
    font-size: 11.5px;
  }

  .reference-home .nav-search-panel {
    position: fixed;
    top: 96px;
    right: 12px;
    left: 12px;
    grid-template-columns: 1fr;
    width: auto;
  }

  .reference-home .nav-search-panel::before {
    right: 72px;
  }
}

@media (max-width: 380px) {
  .reference-home .landing-header .nav-wrap {
    width: calc(100% - 20px) !important;
    min-height: 112px;
  }

  .reference-home .landing-header .brand {
    width: 98px;
    max-width: 98px;
  }

  .reference-home .landing-header .brand strong {
    font-size: 19px;
  }

  .reference-home .landing-header .nav-actions {
    top: 18px;
    left: 112px;
    width: 146px !important;
    min-width: 146px;
    gap: 5px;
  }

  .reference-home .landing-header .language-switch {
    grid-template-columns: repeat(2, 31px);
    width: 68px;
    min-width: 68px;
    min-height: 34px;
  }

  .reference-home .landing-header .language-switch::before {
    width: 31px;
  }

  .reference-home .landing-header .language-switch[data-active-lang="en"]::before {
    transform: translateX(31px);
  }

  .reference-home .landing-header .language-switch .lang-option {
    min-width: 31px;
    height: 28px;
    padding: 0;
  }

  .reference-home .landing-header .icon-button,
  .reference-home .landing-header .account-button {
    width: 34px;
    min-width: 34px;
    height: 34px;
  }

  .reference-home .landing-header .nav-search,
  .reference-home .landing-header .nav-search summary {
    width: 34px;
    min-width: 34px;
  }

  .reference-home .landing-header .nav-links a,
  .reference-home .landing-header .nav-links a:nth-child(n) {
    padding: 0 9px;
    font-size: 11px;
  }
}

/* Quote modal redesign */
.reference-home .contact-modal {
  padding: 26px;
}

.reference-home .contact-modal-backdrop {
  background:
    radial-gradient(circle at 24% 12%, rgba(237, 27, 36, 0.34), transparent 34%),
    rgba(43, 7, 12, 0.7);
  backdrop-filter: blur(10px) saturate(115%);
}

.reference-home .contact-modal-card {
  width: min(920px, calc(100vw - 36px));
  max-height: min(820px, calc(100vh - 36px));
  overflow: auto;
  background: #fff;
  border: 1px solid rgba(237, 27, 36, 0.2);
  border-radius: 10px;
  box-shadow: 0 30px 90px rgba(76, 3, 8, 0.42);
}

.reference-home .contact-modal-head {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  padding: 30px 34px 26px;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(237, 27, 36, 0.1), transparent 42%),
    linear-gradient(135deg, #fff 0%, #fff7f8 100%);
  border-bottom: 1px solid rgba(237, 27, 36, 0.14);
}

.reference-home .contact-modal-head::before {
  position: absolute;
  inset: 0 0 auto;
  height: 6px;
  content: "";
  background: linear-gradient(90deg, var(--ci-red), var(--ci-red-deep));
}

.reference-home .contact-modal-head p {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 30px;
  margin: 0;
  padding: 0 12px;
  color: var(--ci-red);
  background: rgba(237, 27, 36, 0.08);
  border: 1px solid rgba(237, 27, 36, 0.18);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 1000;
  letter-spacing: 0;
  line-height: 1;
  text-transform: uppercase;
}

.reference-home .contact-modal-head h2 {
  max-width: 720px;
  margin: 12px 0 0;
  color: #151b24;
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 1000;
  line-height: 1.12;
}

.reference-home .contact-modal-close {
  position: relative;
  z-index: 1;
  width: 48px;
  min-width: 48px;
  height: 48px;
  color: var(--ci-red);
  background: #fff;
  border: 1px solid rgba(237, 27, 36, 0.22);
  box-shadow: 0 12px 28px rgba(76, 3, 8, 0.1);
}

.reference-home .contact-modal-close:hover {
  color: #fff;
  background: var(--ci-red);
  border-color: var(--ci-red);
  transform: translateY(-1px);
}

.reference-home .contact-modal-close span {
  font-size: 30px;
  line-height: 1;
}

.reference-home .contact-modal-form {
  gap: 18px 20px;
  padding: 30px 34px 34px;
  background: #fff;
  border-radius: 0;
  box-shadow: none;
}

.reference-home .contact-modal-form label {
  gap: 8px;
}

.reference-home .contact-modal-form label > span {
  color: #202a36;
  font-size: 14px;
  font-weight: 1000;
}

.reference-home .contact-modal-form input,
.reference-home .contact-modal-form select,
.reference-home .contact-modal-form textarea {
  min-height: 58px;
  padding: 14px 16px;
  color: #151b24;
  background: #fffafa;
  border: 1px solid rgba(237, 27, 36, 0.2);
  border-radius: 8px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
  font-size: 16px;
}

.reference-home .contact-modal-form textarea {
  min-height: 144px;
  resize: vertical;
}

.reference-home .contact-modal-form input::placeholder,
.reference-home .contact-modal-form textarea::placeholder {
  color: #7b818a;
}

.reference-home .contact-modal-form input:hover,
.reference-home .contact-modal-form select:hover,
.reference-home .contact-modal-form textarea:hover {
  border-color: rgba(237, 27, 36, 0.34);
}

.reference-home .contact-modal-form input:focus,
.reference-home .contact-modal-form select:focus,
.reference-home .contact-modal-form textarea:focus {
  background: #fff;
  border-color: var(--ci-red);
  box-shadow: 0 0 0 4px rgba(237, 27, 36, 0.12);
}

.reference-home .contact-modal-form .market-button {
  min-height: 60px;
  margin-top: 2px;
  justify-content: center;
  gap: 10px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 1000;
  box-shadow: 0 18px 34px rgba(237, 27, 36, 0.28);
}

.reference-home .contact-modal-form .market-button svg {
  width: 19px;
  height: 19px;
}

@media (max-width: 760px) {
  .reference-home .contact-modal {
    align-items: start;
    padding: 14px;
  }

  .reference-home .contact-modal-card {
    width: min(100%, calc(100vw - 28px));
    max-height: calc(100vh - 28px);
  }

  .reference-home .contact-modal-head {
    padding: 24px 20px 22px;
  }

  .reference-home .contact-modal-head h2 {
    padding-right: 48px;
    font-size: 26px;
  }

  .reference-home .contact-modal-close {
    position: absolute;
    top: 20px;
    right: 18px;
    width: 42px;
    min-width: 42px;
    height: 42px;
  }

  .reference-home .contact-modal-form {
    grid-template-columns: 1fr;
    padding: 22px 20px 24px;
  }

  .reference-home .contact-modal-form .form-wide {
    grid-column: auto;
  }
}

@media (max-width: 440px) {
  .reference-home .contact-modal-head h2 {
    font-size: 23px;
  }

  .reference-home .contact-modal-form input,
  .reference-home .contact-modal-form select,
  .reference-home .contact-modal-form textarea {
    font-size: 15px;
  }
}

/* Responsive hamburger navbar */
.reference-home .landing-header .nav-menu-toggle {
  display: none;
}

.reference-home .landing-header .nav-menu-toggle .hamburger-line {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
  transition: transform 180ms ease, opacity 180ms ease;
}

@media (max-width: 1120px) {
  .reference-home .landing-header .nav-wrap {
    position: relative;
    display: block !important;
    width: calc(100vw - 28px) !important;
    max-width: none;
    min-height: 72px;
    padding: 10px 0;
  }

  .reference-home .landing-header .brand {
    grid-area: brand;
    width: auto;
    min-width: 0;
    max-width: 124px;
    justify-self: start;
  }

  .reference-home .landing-header .brand span {
    font-size: 8px;
  }

  .reference-home .landing-header .brand strong {
    margin-top: 2px;
    font-size: 22px;
    line-height: 0.84;
  }

  .reference-home .landing-header .brand small {
    font-size: 7px;
  }

  .reference-home .landing-header .nav-actions {
    position: fixed !important;
    top: 20px;
    right: 14px;
    z-index: 92;
    display: flex !important;
    align-items: center;
    justify-content: flex-end;
    width: 164px !important;
    min-width: 164px !important;
    gap: 7px;
    margin: 0 !important;
    padding: 0;
  }

  .reference-home .landing-header .nav-menu-toggle {
    display: inline-flex;
    flex-direction: column;
    gap: 4px;
    width: 40px;
    min-width: 40px;
    height: 40px;
    padding: 0;
    color: var(--ci-red);
    background: #fff;
    border: 1px solid rgba(255, 255, 255, 0.36);
    box-shadow: 0 12px 24px rgba(76, 3, 8, 0.14);
  }

  .reference-home .landing-header .nav-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .reference-home .landing-header .nav-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(2) {
    opacity: 0;
  }

  .reference-home .landing-header .nav-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  .reference-home .landing-header .language-switch {
    grid-template-columns: repeat(2, 32px);
    width: 70px;
    min-width: 70px;
    min-height: 38px;
    padding: 3px;
  }

  .reference-home .landing-header .language-switch::before {
    top: 3px;
    bottom: 3px;
    left: 3px;
    width: 32px;
  }

  .reference-home .landing-header .language-switch[data-active-lang="en"]::before {
    transform: translateX(32px);
  }

  .reference-home .landing-header .language-switch .lang-option {
    min-width: 32px;
    height: 32px;
    padding: 0;
    font-size: 12px;
  }

  .reference-home .landing-header .icon-button,
  .reference-home .landing-header .nav-search,
  .reference-home .landing-header .nav-search summary {
    width: 40px;
    min-width: 40px;
    height: 40px;
  }

  .reference-home .landing-header .account-button {
    display: none;
  }

  .reference-home .landing-header .account-button span {
    display: none;
  }

  .reference-home .landing-header .nav-links {
    position: fixed;
    top: 84px;
    right: 14px;
    z-index: 91;
    display: grid !important;
    width: min(320px, calc(100vw - 28px)) !important;
    max-width: none;
    max-height: calc(100vh - 110px);
    margin: 0;
    padding: 10px;
    overflow: auto;
    overscroll-behavior: contain;
    background: #fff;
    border: 1px solid rgba(237, 27, 36, 0.18);
    border-radius: 10px;
    box-shadow: 0 26px 70px rgba(76, 3, 8, 0.3);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
    visibility: hidden;
  }

  .reference-home .landing-header.mobile-nav-open .nav-links {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    visibility: visible;
  }

  .reference-home .landing-header .nav-links a,
  .reference-home .landing-header .nav-links a:nth-child(n) {
    justify-content: flex-start;
    width: 100%;
    min-height: 48px;
    padding: 0 15px;
    color: #211417;
    background: transparent;
    border-radius: 8px;
    font-size: 14px;
  }

  .reference-home .landing-header .nav-links a:hover {
    color: var(--ci-red);
    background: var(--ci-red-soft);
  }

  .reference-home .landing-header .nav-links a.active,
  .reference-home .landing-header .nav-links a.active:hover {
    color: #fff;
    background: var(--home-red-gradient);
    box-shadow: 0 12px 24px rgba(237, 27, 36, 0.2);
  }

  .reference-home .nav-search-panel {
    position: fixed;
    top: 72px;
    right: 14px;
    left: auto;
    grid-template-columns: 1fr;
    width: min(340px, calc(100vw - 28px));
  }

  .reference-home .nav-search-panel::before {
    right: 92px;
  }
}

@media (max-width: 420px) {
  .reference-home .landing-header .nav-wrap {
    width: calc(100vw - 20px) !important;
  }

  .reference-home .landing-header .brand {
    max-width: 104px;
  }

  .reference-home .landing-header .brand strong {
    font-size: 19px;
  }

  .reference-home .landing-header .nav-actions {
    top: 20px;
    right: 10px;
    width: 146px !important;
    min-width: 146px !important;
    gap: 5px;
  }

  .reference-home .landing-header .nav-links,
  .reference-home .nav-search-panel {
    right: 10px;
  }

  .reference-home .landing-header .language-switch {
    grid-template-columns: repeat(2, 29px);
    width: 64px;
    min-width: 64px;
    min-height: 36px;
  }

  .reference-home .landing-header .language-switch::before {
    width: 29px;
  }

  .reference-home .landing-header .language-switch[data-active-lang="en"]::before {
    transform: translateX(29px);
  }

  .reference-home .landing-header .language-switch .lang-option {
    min-width: 29px;
    height: 30px;
    font-size: 11px;
  }

  .reference-home .landing-header .icon-button,
  .reference-home .landing-header .account-button,
  .reference-home .landing-header .nav-search,
  .reference-home .landing-header .nav-search summary,
  .reference-home .landing-header .nav-menu-toggle {
    width: 36px;
    min-width: 36px;
    height: 36px;
  }
}

/* Smooth active/hover tracker for the landing navigation */
.reference-home .landing-header .nav-links {
  --nav-indicator-left: 0px;
  --nav-indicator-top: 0px;
  --nav-indicator-width: 0px;
  --nav-indicator-height: 0px;
  --nav-indicator-opacity: 0;
  position: relative;
  isolation: isolate;
}

.reference-home .landing-header .nav-links::before {
  position: absolute;
  top: var(--nav-indicator-top);
  left: var(--nav-indicator-left);
  z-index: 0;
  width: var(--nav-indicator-width);
  height: var(--nav-indicator-height);
  content: "";
  pointer-events: none;
  background: var(--home-red-gradient);
  border-radius: 999px;
  box-shadow: 0 10px 22px rgba(237, 27, 36, 0.24);
  opacity: 0;
  transform: translateZ(0);
  transition:
    left 260ms cubic-bezier(0.22, 1, 0.36, 1),
    top 260ms cubic-bezier(0.22, 1, 0.36, 1),
    width 260ms cubic-bezier(0.22, 1, 0.36, 1),
    height 260ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 140ms ease;
}

.reference-home .landing-header .nav-links[data-indicator-ready="true"]::before {
  opacity: var(--nav-indicator-opacity);
}

.reference-home .landing-header .nav-links[data-indicator-ready="true"] a,
.reference-home .landing-header .nav-links[data-indicator-ready="true"] a:nth-child(n) {
  position: relative;
  z-index: 1;
  background: transparent;
  box-shadow: none;
  transition: color 180ms ease;
}

.reference-home .landing-header .nav-links[data-indicator-ready="true"] a:hover,
.reference-home .landing-header .nav-links[data-indicator-ready="true"] a.active,
.reference-home .landing-header .nav-links[data-indicator-ready="true"] a.active:hover {
  background: transparent;
  box-shadow: none;
}

.reference-home .landing-header .nav-links[data-indicator-ready="true"] a.active,
.reference-home .landing-header .nav-links[data-indicator-ready="true"] a:hover {
  color: var(--ci-red);
}

.reference-home .landing-header .nav-links[data-indicator-ready="true"] a.is-indicator-target,
.reference-home .landing-header .nav-links[data-indicator-ready="true"] a.is-indicator-target:hover,
.reference-home .landing-header .nav-links[data-indicator-ready="true"] a.is-indicator-target:focus-visible {
  color: #fff;
}

/* Home-only mobile overflow hardening; this file loads after styles.css. */
@media (max-width: 1120px) {
  .reference-home .landing-header .nav-wrap {
    width: calc(100% - 28px) !important;
    max-width: calc(100% - 28px) !important;
    overflow: visible;
  }

  .reference-home .landing-header .nav-actions {
    right: 14px;
    width: auto !important;
    min-width: 0 !important;
    max-width: calc(100% - 150px);
  }

  .reference-home .landing-header .nav-links,
  .reference-home .nav-search-panel {
    max-width: calc(100% - 28px);
  }

  .reference-home .landing-header .nav-links {
    position: fixed;
    top: 84px;
    right: 14px;
    left: auto;
    width: min(320px, calc(100vw - 28px)) !important;
    max-height: calc(100vh - 110px);
    margin: 0;
    overflow: auto;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    visibility: hidden;
  }

  .reference-home .landing-header.mobile-nav-open .nav-links {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    visibility: visible;
  }
}

@media (max-width: 560px) {
  .reference-home .landing-header .nav-wrap {
    width: calc(100% - 24px) !important;
    max-width: calc(100% - 24px) !important;
  }

  .reference-home .landing-header .nav-actions {
    gap: 5px;
    max-width: calc(100% - 122px);
  }

  .reference-home .landing-header .language-switch {
    grid-template-columns: repeat(2, 31px);
    width: 68px;
    min-width: 68px;
  }

  .reference-home .landing-header .language-switch::before {
    width: 31px;
  }

  .reference-home .landing-header .language-switch[data-active-lang="en"]::before {
    transform: translateX(31px);
  }

  .reference-home .landing-header .language-switch .lang-option {
    min-width: 31px;
  }
}

@media (max-width: 380px) {
  .reference-home .landing-header .nav-wrap {
    width: calc(100% - 20px) !important;
    max-width: calc(100% - 20px) !important;
  }

  .reference-home .landing-header .nav-actions {
    right: 10px;
    max-width: calc(100% - 108px);
  }

  .reference-home .landing-header .nav-links {
    right: 10px;
    width: min(320px, calc(100vw - 20px)) !important;
    max-width: calc(100vw - 20px);
  }

  .reference-home .landing-header .language-switch {
    grid-template-columns: repeat(2, 28px);
    width: 62px;
    min-width: 62px;
  }

  .reference-home .landing-header .language-switch::before {
    width: 28px;
  }

  .reference-home .landing-header .language-switch[data-active-lang="en"]::before {
    transform: translateX(28px);
  }

  .reference-home .landing-header .language-switch .lang-option {
    min-width: 28px;
  }

  .reference-home .landing-header .icon-button,
  .reference-home .landing-header .nav-search,
  .reference-home .landing-header .nav-search summary,
  .reference-home .landing-header .nav-menu-toggle {
    width: 32px;
    min-width: 32px;
    height: 32px;
  }
}
