/* Site header: utility bar + sticky brand nav + mobile menu. */

/* ===== Utility bar ===== */
.utility {
  background: var(--ink);
  color: #cfc9b9;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .08em;
}
.utility .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 36px;
}
.utility .left,
.utility .right {
  display: flex;
  gap: 22px;
  align-items: center;
}
.utility a:hover { color: var(--paper); }
.util-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  border: 1px solid #3a3f3a;
  border-radius: 99px;
}
.util-pill .live {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #7dd3a8;
  box-shadow: 0 0 0 3px rgba(125, 211, 168, .18);
}

/* ===== Sticky nav ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 239, 230, .85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(216, 205, 184, .6);
}
.nav .wrap {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 78px;
  gap: 24px;
}

.brand { display: flex; align-items: center; }
.brand-mark { display: flex; align-items: center; }
/* Logo renders image-only at its natural aspect ratio — never cropped. */
.brand-mark img {
  height: 44px;
  width: auto;
  display: block;
}

/* No-logo fallback — compact circular lettermark. */
.brand-mark--fallback {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  display: grid; place-items: center;
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: .02em;
}

.nav-links {
  display: flex;
  gap: 30px;
  justify-content: center;
  font-size: 14px;
  font-weight: 500;
}
.nav-links li { list-style: none; }
.nav-links a {
  display: inline-block;
  position: relative;
  padding: 6px 0;
  color: var(--ink-2);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a.has-caret::after {
  content: "";
  display: inline-block;
  width: 6px; height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  margin-left: 8px;
  opacity: .55;
}

.nav-right {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
}

/* ===== Mobile menu ===== */
.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid var(--rule);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
}
.nav-toggle span {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--ink);
}

.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--paper);
  z-index: 100;
  padding: 24px;
  transform: translateY(-100%);
  transition: transform .35s ease;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
.mobile-menu.is-open { transform: translateY(0); }
.mm-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--rule);
}
.mm-close {
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid var(--rule);
  display: grid;
  place-items: center;
  font-size: 18px;
}
.mm-links {
  display: flex;
  flex-direction: column;
  padding: 20px 0;
  gap: 0;
  flex: 1;
}
.mm-links li { list-style: none; }
.mm-links a {
  display: block;
  font-family: var(--serif);
  font-size: 34px;
  padding: 11px 0;
  color: var(--ink);
}
/* Row divider — works for the bare-<a> fallback and a real <li><a> menu alike. */
.mm-links > a,
.mm-links > li { border-bottom: 1px solid var(--rule); }
.mm-links > a:last-child,
.mm-links > li:last-child { border-bottom: 0; }
.mm-foot {
  padding: 20px 0;
  border-top: 1px solid var(--rule);
}
.mm-foot .util {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.mm-cta {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ===== Responsive ===== */
@media (max-width: 1100px) {
  .nav-links { gap: 22px; font-size: 13px; }
}

/* Collapse to the hamburger early — 6 nav links + Saved + Log in + CTA
   cannot sit on one row below ~1000px without cramming. */
@media (max-width: 1000px) {
  .utility { display: none; }
  .nav .wrap {
    grid-template-columns: 1fr auto;
    height: 64px;
    gap: 12px;
  }
  .brand-mark img { height: 34px; }
  .brand-mark--fallback { width: 36px; height: 36px; font-size: 18px; }
  .nav-links { display: none; }
  .nav-right { display: none; }
  .nav-toggle { display: flex; }
}

/* ---- Travel advisories modal (utility-bar trigger) ---- */
.wst-adv-modal[hidden] { display: none; }
.wst-adv-modal {
  position: fixed;
  inset: 0;
  z-index: 220;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.wst-adv-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 30, 30, .55);
  border: 0;
  cursor: pointer;
}
.wst-adv-modal__box {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 520px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  padding: 42px 38px 30px;
  text-align: left;
  box-shadow: 0 40px 80px -30px rgba(10, 40, 40, .5);
  animation: wst-adv-in .22s ease;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
}
@keyframes wst-adv-in {
  from { opacity: 0; transform: translateY(12px) scale(.97); }
  to   { opacity: 1; transform: none; }
}
.wst-adv-modal__close {
  position: absolute;
  top: 14px; right: 14px;
  width: 34px; height: 34px;
  border: 1px solid var(--rule);
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.wst-adv-modal__close:hover { background: var(--ink); color: var(--paper); }
.wst-adv-modal__eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 10px;
}
.wst-adv-modal__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(24px, 2.4vw, 30px);
  line-height: 1.15;
  letter-spacing: -.01em;
  margin: 0 0 12px;
  color: var(--ink);
}
.wst-adv-modal__text {
  margin: 0 0 18px;
  color: var(--ink-2);
  font-size: 14.5px;
  line-height: 1.55;
}
.wst-adv-list {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  border-top: 1px solid var(--rule);
}
.wst-adv-list__item {
  border-bottom: 1px solid var(--rule);
}
.wst-adv-list__item a {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 4px 16px;
  padding: 14px 4px;
  text-decoration: none;
  color: var(--ink);
  transition: color .15s ease, background .15s ease;
}
.wst-adv-list__item a:hover {
  color: var(--terra);
  background: var(--paper-2);
}
.wst-adv-list__country {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink);
  grid-column: 1;
}
.wst-adv-list__agency {
  font-size: 14px;
  line-height: 1.4;
  color: var(--ink-2);
  grid-column: 1;
}
.wst-adv-list__item a:hover .wst-adv-list__agency { color: inherit; }
.wst-adv-list__arrow {
  grid-row: 1 / 3;
  grid-column: 2;
  align-self: center;
  font-family: var(--mono);
  color: var(--muted);
  transition: transform .15s ease, color .15s ease;
}
.wst-adv-list__item a:hover .wst-adv-list__arrow {
  transform: translateX(3px);
  color: var(--terra);
}
.wst-adv-modal__note {
  margin: 0;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.5;
}

body.wst-adv-open { overflow: hidden; }

/* ---- Multi-region weather pill (carousel + hover popover) ---- */
.util-pill--multi {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: default;
  outline: none;
}
.util-pill--multi:focus-visible {
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .35);
  border-radius: 99px;
}
.util-pill__slides {
  position: relative;
  display: inline-block;
  min-width: 14ch;
  /* Tallest of the slides defines the height; absolute positioning hides the rest. */
}
.util-pill__slide {
  display: inline-block;
  white-space: nowrap;
  opacity: 0;
  transition: opacity .25s ease;
  pointer-events: none;
}
.util-pill__slide:not(:first-child) {
  position: absolute;
  inset: 0;
}
.util-pill__slide.is-active {
  opacity: 1;
  position: static;
}
.util-pill__slide.is-active:not(:first-child) {
  position: absolute;
  inset: 0;
  opacity: 1;
}

/* Hover / focus popover (desktop only). */
.util-pill__panel {
  position: absolute;
  top: calc(100% + 10px);
  left: -10px;
  min-width: 240px;
  padding: 14px 18px 16px;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  box-shadow: 0 24px 50px -20px rgba(10, 40, 40, .35);
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
  z-index: 220;
}
.util-pill__panel::before {
  content: "";
  position: absolute;
  top: -6px; left: 22px;
  width: 11px; height: 11px;
  background: var(--paper);
  border-left: 1px solid var(--rule);
  border-top: 1px solid var(--rule);
  transform: rotate(45deg);
}
.util-pill--multi:hover .util-pill__panel,
.util-pill--multi:focus-within .util-pill__panel {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.util-pill__panel-head {
  margin: 0 0 10px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
.util-pill__panel-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.util-pill__panel-list li {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .04em;
  line-height: 1.45;
  padding: 4px 0;
  color: var(--ink);
}
.util-pill__panel-list li + li { border-top: 1px solid var(--rule); }

/* Mobile variant — no popover. */
.util-pill--mobile .util-pill__panel { display: none; }
