/* Alemán Por Derecho local experiment: components (buttons, header, nav, panels, banners, cards, controls) */

/* ---------- buttons ---------- */
.btn {
  display: block;
  flex: none;
  padding: 0.5rem;
  border-radius: var(--r-8);
  background: var(--marigold-500);
  font-weight: 600;
  cursor: pointer;
  position: relative;
}
.btn__pad {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 2rem;
  font-size: 1rem;
  line-height: 1.28;
  font-weight: 600;
  text-align: center;
  color: var(--obsidian);
}
/* the whole yellow button is the tap target, not just the inner text box */
.btn__pad::after { content: ""; position: absolute; inset: -0.5rem; border-radius: var(--r-8); }
.btn__text { display: block; }
.btn__arrow {
  position: absolute;
  top: 0; bottom: 0; right: 0.875rem;
  width: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  overflow: hidden;
  pointer-events: none;
}
.btn__arrow svg { width: 1.125rem; height: 0.75rem; opacity: 0; transform: translateY(-0.0625rem); transition: opacity 295ms cubic-bezier(0.32, 0, 0.67, 0); overflow: visible; }
.arrow-shaft { stroke: var(--obsidian); stroke-dasharray: 17; stroke-dashoffset: 17; transition: stroke-dashoffset 0ms 295ms; }
.arrow-top, .arrow-bottom { stroke: var(--obsidian); stroke-dasharray: 8.2; stroke-dashoffset: 8.2; transition: stroke-dashoffset 0ms 295ms; }

.btn--secondary { background: var(--oat-50); }
.btn--outline-light { background: transparent; border: 1px solid var(--oat-300); z-index: 1; }
.btn--outline-dark { background: transparent; border: 1px solid var(--obsidian); z-index: 1; }
.btn--full { width: 100%; }

.btn:hover { background: var(--marigold-400); }
.btn--secondary:hover { background: var(--white); }
.btn--outline-light:hover { background: var(--oat-50); border-color: var(--oat-500); }
.btn--outline-dark:hover { background: var(--white-40); }
.btn:active { background: var(--marigold-800); }
.btn--secondary:active { background: var(--oat-300); }
.btn--outline-light:active { background: var(--oat-50); border-color: var(--obsidian); }
.btn--outline-dark:active { background: var(--white-40); }

/* small nav buttons (36px) */
.btn--sm { display: flex; align-items: center; min-height: 2.25rem; }
.btn--sm .btn__pad { padding: 3.5px 1.5rem; margin: -3.5px 0; font-size: 0.875rem; line-height: 1.28; }
.btn--sm .btn__arrow { right: 0.625rem; width: 1.375rem; }
.btn--sm .btn__arrow svg { width: 1rem; height: 0.6rem; }

/* hover state set by js (matches the measured mechanics) */
@media (hover: hover) {
  .btn__pad.is-hovered .btn__arrow svg { opacity: 1; transition: opacity 0ms; }
  .btn__pad.is-hovered .btn__text { transform: translateX(-0.75rem); transition: transform 200ms cubic-bezier(0.33, 1, 0.68, 1); }
  .btn--sm .btn__pad.is-hovered .btn__text { transform: translateX(-0.625rem) translateY(0.0625rem); }
  .btn__pad.is-hovered .arrow-shaft { stroke-dashoffset: 0; transition: stroke-dashoffset 140ms cubic-bezier(0.33, 1, 0.68, 1); }
  .btn__pad.is-hovered .arrow-top,
  .btn__pad.is-hovered .arrow-bottom { stroke-dashoffset: 0; transition: stroke-dashoffset 60ms cubic-bezier(0.33, 1, 0.68, 1) 140ms; }
}
.btn--full .btn__arrow { position: relative; right: auto; top: auto; bottom: auto; width: 0; margin-left: 0; transition: width 200ms cubic-bezier(0.33, 1, 0.68, 1), margin-left 200ms cubic-bezier(0.33, 1, 0.68, 1); }
@media (hover: hover) {
  .btn--full .btn__pad.is-hovered .btn__arrow { width: 1.125rem; margin-left: 0.25rem; }
  .btn--full .btn__pad.is-hovered .btn__text { transform: translateX(-0.5rem); }
}

.btn-row { display: flex; flex-wrap: wrap; gap: 1.25rem; }

/* ---------- announcement banner ---------- */
.announce {
  position: sticky;
  top: 0;
  z-index: 10000;
  width: 100%;
  height: var(--banner-h);
  background: var(--white);
}
.announce[hidden] { display: none !important; }
.announce__pad { padding: 20px 20px 0; }
.announce__bar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 0;
  border-radius: var(--r-8);
  background: #e5f1f9;
  min-height: 36px;
}
.announce__text {
  flex: 1;
  text-align: center;
  font-size: 0.875rem;
  line-height: 1.5;
  font-weight: 600;
  color: var(--obsidian);
}
.announce__close {
  position: absolute;
  right: 0; top: 50%;
  margin-top: -22px;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  z-index: 1001;
}
.announce__close svg { width: 12px; height: 12px; }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: var(--banner-h);
  z-index: 1000;
  height: var(--nav-h);
  padding: 0 1.25rem;
  background: var(--white);
}
.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 82.5rem;
  height: var(--nav-h);
  margin: 0 auto;
}
.brand { display: flex; align-items: center; position: relative; padding: 2px 0; margin: -2px 0; } /* 24px tap target, layout neutral */
.brand__logo { display: block; width: auto; height: 5rem; }
.menu-btn { display: none; }

.nav-menu {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: space-between;
  padding-left: 50px;
  height: 100%;
}
.nav-links { display: flex; gap: 6px; }
.nav-dd { padding: 24px 0; position: static; }
.nav-dd__toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 10px 8px 16px;
  border-radius: var(--r-8);
  cursor: pointer;
  background-color: transparent;
  transition: background-color 0.2s cubic-bezier(0.215, 0.61, 0.355, 1);
  user-select: none;
}
.nav-dd__toggle:hover, .nav-dd.is-open > .nav-dd__toggle { background-color: var(--oat-50); }
.nav-dd__label { font-size: 1rem; line-height: 1.28; font-weight: 500; }
.nav-dd__chev { display: flex; width: 10px; color: var(--oat-300); }
.nav-dd__chev svg { width: 10px; height: 6px; transition: transform 0.2s linear; }
.nav-dd.is-open .nav-dd__chev svg { transform: rotate(180deg); }
.nav-dd__arrow { display: none; }

.nav-actions { display: flex; align-items: center; justify-content: center; gap: 6px; height: 100%; }
.nav-dd--search .nav-dd__toggle {
  width: 34px; height: 36px; padding: 7px 6px;
  border: 1px solid var(--oat-300);
}
.nav-dd--search .nav-dd__toggle img, .nav-dd--search .nav-dd__toggle svg { width: 20px; height: 20px; }
.nav-dd--search.is-open .nav-dd__toggle { border-color: var(--obsidian); background: var(--white); }
.nav-btns { display: flex; gap: 4px; }

/* ---------- dropdown panels (desktop) ---------- */
.dd-panel {
  position: fixed;
  top: var(--header-bottom);
  left: 0; right: 0;
  z-index: 10;
  background: var(--white);
  border-top: 1px solid var(--oat-300);
  border-bottom: 1px solid var(--oat-300);
  overflow: hidden;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, visibility 0s linear 0.3s;
}
.nav-dd.is-open > .dd-panel {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transition: opacity 0.6s, visibility 0s;
}
.dd-content {
  position: relative;
  isolation: isolate;
  display: flex;
  max-width: 82.5rem;
  margin: 0 auto;
}
.dd-left { flex: 1; min-width: 0; padding: 2rem 2.5rem 2rem 0; }
.dd-left__stack { display: flex; flex-direction: column; align-items: flex-start; gap: 1.75rem; }
.dd-right {
  position: relative;
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 2rem 0 2rem 2rem;
}
.dd-right::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0; bottom: 0; left: 0;
  right: 0;
  background: var(--oat-50);
  /* bleed to the viewport edge without layout width: shadow ink never adds scroll overflow */
  box-shadow: 0 0 0 100vw var(--oat-50);
  clip-path: inset(0 -100vw 0 0);
}
.dd-title { font-family: var(--font-display); font-size: 3rem; line-height: 1.09; font-weight: 400; }

.dd-tiles { display: flex; gap: 1.5rem; width: 100%; }
.dd-tile {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1.5rem;
  border: 1px solid var(--sky);
  border-radius: 0.8rem;
  background: linear-gradient(135deg, var(--sky) 0%, var(--sky-light) 100%);
}
.dd-tile--warm { border-color: var(--marigold-100); background: linear-gradient(135deg, var(--marigold-100) 0%, var(--marigold-50) 100%); }
.dd-tile--green { border-color: var(--juniper-100); background: linear-gradient(135deg, var(--juniper-100) 0%, var(--juniper-50) 100%); }
.dd-tile--oat { border-color: var(--oat-100); background: linear-gradient(135deg, var(--oat-100) 0%, var(--oat-50) 100%); }
.dd-tile__title { font-family: var(--font-display); font-size: var(--fs-h6); line-height: var(--fs-h6); font-weight: 500; }
.dd-tile__sub { font-size: 0.875rem; line-height: 1.5; }

.dd-cols { display: flex; gap: 3.75rem; }
.dd-group { display: flex; flex-direction: column; align-items: flex-start; gap: 1.75rem; }
.dd-group .eyebrow { color: var(--juniper-800); }
.dd-links { display: flex; flex-direction: column; }
.dd-link {
  display: flex;
  align-items: center;
  padding: 0.5rem 0 0.5rem 1.25rem;
  border-left: 1px solid var(--oat-300);
  color: var(--obsidian);
  transition: color 0.3s;
  white-space: nowrap;
}
.nav-dd.is-open .dd-link { border-left-color: var(--obsidian); }
.dd-link.is-dim { color: var(--oat-500); }
.dd-link__arrow { display: flex; max-width: 0; overflow: hidden; transition: max-width 0.3s ease; margin-left: 0.5rem; }
.dd-link__arrow svg { width: 1.125rem; height: 0.75rem; flex: none; }
.dd-link:hover .dd-link__arrow { max-width: 1.75rem; }

.dd-feature {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
  border-radius: 0.8rem;
  overflow: hidden;
  color: var(--white);
  z-index: 1;
}
.dd-feature .ph { position: absolute; inset: 0; }
.dd-feature .overlay { position: absolute; inset: 0; z-index: 2; background-color: rgba(25, 31, 29, 0.6); background-image: linear-gradient(#3e372d00 38%, #3e372dbf 61%); }
.dd-feature__copy { position: relative; z-index: 3; display: flex; flex-direction: column; gap: 1.25rem; }
.dd-feature__title { font-family: var(--font-display); font-size: var(--fs-h6); line-height: 1.09; font-weight: 500; }
.dd-feature__meta { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; font-size: 0.875rem; line-height: 1.5; }
.dd-feature--dark { background: var(--oat-50); }
.dd-right .btn { margin-top: 1rem; }

/* sizes per panel */
.dd--why .dd-right { width: 532px; }
.dd--why .dd-feature { width: 500px; height: 280px; }
.dd--biz .dd-right { width: 416px; }
.dd--biz .dd-feature { width: 384px; height: 390px; }
.dd--ind .dd-right { width: 416px; }
.dd--ind .dd-feature { width: 384px; height: 460px; border-radius: var(--r-14); }
.dd--res .dd-right { width: 480px; }
.dd--res .dd-feature { width: 448px; height: 360px; }
.dd--res .dd-feature .btn { width: 100%; }

/* search panel */
.dd--search .dd-left { flex: none; width: 100%; }
.search-wrap { display: flex; flex-direction: column; gap: 1.75rem; max-width: 914px; }
.search-form { position: relative; margin: 0; }
.search-form svg.search-glyph { position: absolute; left: 23px; top: 50%; width: 28px; height: 28px; transform: translateY(-50%); color: var(--oat-300); pointer-events: none; }
.search-input {
  display: block;
  width: 100%;
  height: 109px;
  padding: 20px 12px 20px 82px;
  font-family: var(--font-display);
  font-size: 3rem;
  line-height: 1.43;
  color: var(--obsidian);
  background: var(--oat-50);
  border: 0;
  border-radius: var(--r-14);
  outline: none;
}
.search-input::placeholder { color: var(--obsidian); opacity: 1; }
.search-input::-webkit-search-cancel-button { appearance: none; }
/* live results (js/chrome.js): same link rows as the quick links, long titles may wrap */
.search-results .dd-link { white-space: normal; }
.search-empty { margin: 0; font-size: 1rem; line-height: 1.5; color: var(--obsidian); }
.search-empty a { text-decoration: underline; }

/* ---------- cookie banner ---------- */
.cookie {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  min-height: 174px;
  padding: 24px;
  background: #dfdfd7;
  color: #000;
  font-family: Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 20px;
  transition: transform 0.7s ease, opacity 0.7s ease;
}
.cookie.is-hidden { transform: translateY(100%); opacity: 0; pointer-events: none; }
.cookie__content { flex: 1; margin: 0 0 4px; }
.cookie__msg { margin: 0; }
.cookie__msg a, .cookie__prefs { text-decoration: underline; color: #000; padding-block: 3px; }
.cookie__prefs { display: block; margin-top: 8px; padding-block: 2px; }
.cookie__toggles { display: flex; flex-wrap: wrap; margin: 8px 0 0; }
.cookie__toggle { display: flex; align-items: center; min-height: 24px; margin: 4px 0; position: relative; cursor: pointer; font-weight: 500; }
.cookie__toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.cookie__switch { width: 44px; height: 22px; border: 2px solid #000; border-radius: 14px; background: #000; position: relative; }
.cookie__switch::after { content: ""; position: absolute; top: 1px; left: 1px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform 0.2s; }
.cookie__toggle input:checked + .cookie__switch::after { transform: translateX(22px); }
.cookie__label { margin: 0 8px 0 6px; }
.cookie__buttons { display: flex; flex-wrap: wrap; justify-content: flex-end; width: 100%; max-width: 432px; min-width: 256px; margin-left: 8px; }
.cookie__btn {
  flex: 1 0 100%;
  margin: 4px 8px;
  padding: 8px 12px;
  background: #000;
  color: #fff;
  border: 1px solid #fff;
  border-radius: 4px;
  font-weight: 700;
  font-size: 16px;
  line-height: 16px;
  text-align: center;
  min-width: 96px;
}
.cookie__close {
  position: absolute;
  right: 8px; top: 8px;
  width: 24px; height: 24px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  z-index: 2;
}
.cookie__close svg { width: 20px; height: 20px; }
.cookie-widget {
  position: fixed;
  right: 12px; bottom: 12px;
  width: 40px; height: 40px;
  z-index: 99999;
}
.cookie-widget svg { width: 40px; height: 40px; }

/* ---------- carousel arrows ---------- */
.swiper-prev, .swiper-next {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.125rem;
  height: 3.125rem;
  border-radius: 100%;
  background: var(--white-20);
  cursor: pointer;
  transition: background-color 0.3s;
  user-select: none;
}
.swiper-prev:hover, .swiper-next:hover { background: var(--white-40); }
.swiper-prev.swiper-button-disabled, .swiper-next.swiper-button-disabled { background: var(--aloe-5); }
.swiper-prev .swiper-arrow-embed, .swiper-next .swiper-arrow-embed { display: flex; width: 1.5rem; }
.swiper-arrow-embed svg { width: 100%; height: auto; }
.swiper-prev.swiper-button-lock, .swiper-next.swiper-button-lock { display: flex; }
.swiper-prev.is-solid, .swiper-next.is-solid { background: var(--white); }
.swiper-prev.is-solid:hover, .swiper-next.is-solid:hover { background: var(--white-40); }
.swiper-prev.is-solid.swiper-button-disabled, .swiper-next.is-solid.swiper-button-disabled { background: var(--juniper-5); pointer-events: none; cursor: not-allowed; }
.swiper-prev.is-sky, .swiper-next.is-sky { background: var(--sky); color: var(--obsidian); }
.swiper-prev.is-sky { transition-duration: 0.2s; transition-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.19); }
.swiper-prev.is-sky:hover, .swiper-next.is-sky:hover { background: var(--sky-t40); }
.swiper-prev.is-sky.swiper-button-disabled, .swiper-next.is-sky.swiper-button-disabled { background: var(--sky-t40); }
.arrows { display: flex; gap: 0.75rem; }

/* ---------- photo cards ---------- */
.photo-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: stretch;
  height: 36.5rem;
  padding: 2rem;
  border-radius: var(--r-14);
  overflow: hidden;
  color: var(--white);
}
.photo-card__bg { position: absolute; inset: 0; border-radius: var(--r-14); overflow: hidden; pointer-events: none; }
.photo-card__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(25, 31, 29, 0.82) 0%, rgba(25, 31, 29, 0.45) 45%, rgba(25, 31, 29, 0.18) 100%); }
.photo-card__bg img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.photo-card.is-hover .photo-card__bg img, .photo-card:hover .photo-card__bg img { transform: scale(1.1); }
.photo-card__shade { position: absolute; inset: 0; z-index: 2; border-radius: var(--r-14); background-image: linear-gradient(#3e372d00 50%, #3e372dbf 80%); }
.photo-card__shade--tall { background-image: linear-gradient(#3e372d00 38%, #3e372dbf 61%); }
.photo-card__body { position: relative; z-index: 3; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end; gap: 0.6rem; max-width: 24.375rem; }
.photo-card__top { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.photo-card__top .eyebrow { align-self: flex-start; }
.photo-card__arrow { display: none; width: 1.5rem; height: 1.5rem; }
.photo-card__copy { display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; }
.photo-card__copy p { font-size: 0.875rem; line-height: 1.5; }

@media screen and (max-width: 991px) {
  .photo-card { text-align: left; }
}
@media screen and (max-width: 767px) {
  .photo-card__body { justify-content: space-between; align-items: stretch; height: 100%; max-width: none; gap: 0.5rem; }
  .photo-card__arrow { display: flex; }
  .photo-card__copy { height: 100%; justify-content: space-between; }
}
@media screen and (max-width: 479px) {
  .photo-card { height: 21.25rem; padding: 1.25rem; }
}

/* narrow desktop (992 to 1099): the 50px nav gutter would push Get Started past the edge */
@media screen and (min-width: 992px) and (max-width: 1099px) {
  .nav-menu { padding-left: 8px; }
  .nav-links { gap: 0; }
  .nav-dd__toggle { padding: 8px 6px 8px 10px; gap: 6px; }
  .nav-actions { gap: 4px; }
  .nav-btns .btn--sm .btn__pad { padding-left: 1rem; padding-right: 1rem; }
}

/* pantalla ancha: el menu se lee mas grande, el hueco de 50px lo permite */
@media screen and (min-width: 1200px) {
  .nav-dd__label { font-size: 1.0625rem; }
}

/* ---------- mobile / tablet navigation (<= 991px) ---------- */
.dd-back { display: none; }
.menu-btn { order: 1; align-items: center; padding: 18px 0 18px 18px; position: relative; }
.ham { display: flex; flex-direction: column; gap: 6px; width: 24px; }
.ham i { display: block; width: 24px; height: 2px; border-radius: 2px; background: #000; transition: transform 0.3s ease, opacity 0.2s ease; }
.menu-btn[aria-expanded="true"] .ham i:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .ham i:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] .ham i:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media screen and (max-width: 991px) {
  .menu-btn { display: flex; }
  .nav-menu {
    display: none;
    position: absolute;
    top: var(--nav-h); left: 0; right: 0;
    /* visible height below the sticky banner + navbar, so the pinned Log In / Get Started / search row stays on screen */
    height: calc(100vh - var(--header-bottom));
    height: calc(100dvh - var(--header-bottom));
    padding: 0;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    background: var(--white);
    border-top: 1px solid var(--oat-300);
    overflow: hidden;
    z-index: 5;
  }
  .nav-menu.is-open { display: flex; }
  .nav-links { flex: 1; min-height: 0; overflow-y: auto; padding-bottom: 5rem; flex-direction: column; align-items: flex-start; gap: 0; padding-top: 24px; }
  .nav-dd { width: 100%; padding: 0; display: flex; flex-direction: column; align-items: stretch; }
  .nav-dd__toggle { padding: 18px 20px; justify-content: flex-start; gap: 28px; border-radius: 0; z-index: 0; }
  .nav-dd__toggle:hover, .nav-dd.is-open > .nav-dd__toggle { background-color: transparent; }
  .nav-dd__label { font-family: var(--font-display); font-size: var(--fs-h4); line-height: 52.5px; font-weight: 400; letter-spacing: -0.03em; white-space: nowrap; }
  .nav-dd__chev { display: none; }
  .nav-dd__arrow { display: flex; max-width: 1.25rem; color: var(--oat-300); }
  .nav-dd__arrow svg { width: 20px; height: 12px; }

  .dd-panel {
    position: fixed;
    top: var(--header-bottom);
    left: 0; right: 0;
    height: calc(100vh - var(--header-bottom) - 5rem);
    height: calc(100dvh - var(--header-bottom) - 5rem);
    overflow: auto;
    border: 0;
    z-index: 20;
    opacity: 1;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(100%);
    transition: transform 0.5s ease, visibility 0s linear 0.5s;
  }
  .nav-dd.is-open > .dd-panel {
    visibility: visible;
    pointer-events: auto;
    transform: translateX(0);
    transition: transform 0.5s ease, visibility 0s;
  }
  .dd-content { flex-direction: column; margin: 0; }
  .dd-left { display: flex; flex-direction: column; gap: 2rem; padding: 2rem 1.25rem 2rem; }
  .dd-back { display: flex; align-items: center; gap: 0.5rem; font-size: 1rem; line-height: 1.5; }
  .dd-back svg { width: 16px; height: 12px; }
  .dd-left__stack { gap: 2rem; }
  .dd-tiles { flex-direction: column; gap: 1rem; }
  .dd-cols { flex-direction: column; gap: 2rem; }
  .dd-group { gap: 1rem; }
  .dd-right { padding: 2rem 1.25rem; justify-content: center; align-items: flex-start; }
  .dd-panel .dd-right { width: auto; }
  .dd-panel .dd-feature { width: 100%; max-width: 100%; }
  .dd-panel .dd--ind .dd-feature, .dd--ind .dd-feature { height: 24rem; }

  .nav-actions {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 5rem;
    padding: 1.25rem 0;
    border-top: 1px solid var(--oat-300);
    background: var(--white);
    z-index: 100;
    justify-content: center;
  }
  .nav-dd--search { width: auto; padding: 0; }
  .nav-dd--search .nav-dd__toggle { padding: 7px 6px; width: 44px; height: 44px; align-items: center; }
  .nav-actions .btn--sm { min-height: 2.75rem; }
  .menu-btn { min-width: 44px; min-height: 44px; justify-content: flex-end; padding: 10px 0 10px 18px; align-items: center; }
  .dd-back { min-height: 44px; }
  .dd-link { min-height: 44px; }
  .nav-dd__toggle { min-height: 44px; }
  html.menu-open, html.menu-open body { overflow: hidden; }
}

/* the open mobile menu owns the bottom edge (Log In, Get Started, search); the cookie bar returns when it closes */
@media screen and (max-width: 991px) {
  html.menu-open .cookie, html.menu-open .cookie-widget { visibility: hidden; }
}

@media screen and (max-width: 767px) {
  .cookie { flex-direction: column; align-items: stretch; min-height: 0; }
  .cookie__content { margin: 0; }
  .cookie__toggles { flex-direction: column; }
  .cookie__buttons { width: 276px; max-width: 100%; min-width: 0; margin: 20px auto 0; }
}

@media screen and (max-width: 479px) {
  .nav-links { gap: 0; padding-top: 24px; }
  .search-input { font-size: 2rem; padding-left: 56px; height: 72px; }
  .search-form svg.search-glyph { width: 24px; height: 24px; }
}

/* Cookie bar hidden for now (Santiago, 2026-10-11). Remove this rule to bring it back before launch. */
.cookie, .cookie-widget { display: none !important; }

/* ---------- mobile polish (2026-10-11, shell-home) ---------- */
@media screen and (max-width: 767px) {
  .announce__text { padding: 0 44px; }
}
@media screen and (max-width: 479px) {
  .announce__pad { padding: 10px 20px 10px; }
  .announce__bar { padding: 4px 0; min-height: 44px; }
  .announce__text { font-size: 0.8125rem; line-height: 1.35; text-wrap: balance; }
  .announce { height: auto; min-height: var(--banner-h); }
  .btn-row { gap: 0.75rem; }
}

@media screen and (max-width: 991px) {
  .brand { padding: 10px 0; margin: -10px 0; }
  .brand__logo { height: 4rem; }
  .announce__link { display: inline-block; padding: 12px 0; margin-top: -12px; margin-bottom: -12px; }
}

/* mobile menu action row: search + two buttons must fit 320px and above */
@media screen and (max-width: 991px) {
  .nav-actions { padding: 0.75rem 1.25rem; gap: 0.5rem; justify-content: flex-start; }
  .nav-btns { flex: 1; min-width: 0; gap: 0.5rem; }
  .nav-btns .btn { flex: 1 1 auto; min-width: 0; padding: 0.25rem; }
  .nav-btns .btn--sm .btn__pad { padding: 0.25rem 0.5rem; margin: 0; min-height: 2.75rem; line-height: 1.2; }
  .nav-btns .btn__text { text-wrap: balance; }
  .nav-btns .btn__arrow { display: none; }
  .nav-dd--search .nav-dd__toggle { justify-content: center; }
  .search-input { font-size: 1.5rem; padding-left: 3.5rem; height: 4.5rem; }
  .search-form svg.search-glyph { left: 1rem; width: 24px; height: 24px; }
}
@media screen and (max-width: 479px) {
  .search-input { font-size: 1.25rem; }
}

/* touch: brand link and announcement link reach a 44px tap height with padding (buttons already measure 51px or more with their ::after) */
@media (pointer: coarse) {
  .brand { padding: 12px 0; margin: -12px 0; }
  .announce__link { padding: 13px 0; margin-top: -13px; margin-bottom: -13px; }
}
