.shell {
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.narrow { max-width: 54rem; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(150%) blur(8px);
  -webkit-backdrop-filter: saturate(150%) blur(8px);
  border-bottom: 1px solid var(--line);
}

.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-5);
  min-height: 4.25rem;
}

.wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 1px;
  font-size: 1.1875rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.wordmark:hover { color: var(--ink); }
.wordmark .dot { color: var(--accent); }

.header-right { display: flex; align-items: center; gap: var(--s-5); }

/* ---------- Nav ---------- */

.main-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: var(--s-5);
}

.main-nav a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--body);
  text-decoration: none;
  white-space: nowrap;
  padding-block: 0.4rem;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover { color: var(--ink); }
.main-nav a[aria-current="page"] { color: var(--ink); font-weight: 600; border-bottom-color: var(--accent); }

.nav-cta {
  padding: 0.55rem 1.05rem !important;
  background: var(--navy);
  color: #fff !important;
  border-radius: var(--radius);
  border-bottom: 0 !important;
  font-weight: 600 !important;
}
.nav-cta:hover { background: var(--accent); color: #fff !important; }

.nav-toggle {
  display: none;
  align-items: center;
  gap: var(--s-2);
  background: none;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 0.5rem 0.8rem;
  font: inherit;
  font-size: var(--t-sm);
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
}
.nav-toggle:hover { border-color: var(--navy); }

/* Deliberately quiet: this is a preference, not a call to action. The current
   language is carried by weight and ink alone - no chip, no fill. */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 1px;
  font-size: var(--t-xs);
  font-weight: 500;
  letter-spacing: 0.02em;
}
.lang-switch a {
  color: var(--muted);
  text-decoration: none;
  padding: 2px 4px;
  border-radius: 3px;
}
.lang-switch a:hover { color: var(--ink); }
.lang-switch a[aria-current="true"] { color: var(--ink); font-weight: 600; }
.lang-switch .sep { color: var(--line); }

@media (max-width: 72rem) {
  .nav-toggle { display: inline-flex; }
  .main-nav {
    position: absolute;
    left: 0; right: 0; top: 100%;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--lift-2);
    max-height: 0;
    overflow: hidden;
    visibility: hidden;
    transition: max-height 0.22s ease, visibility 0s linear 0.22s;
  }
  .main-nav.is-open {
    max-height: 80vh;
    overflow-y: auto;
    visibility: visible;
    transition: max-height 0.22s ease, visibility 0s;
  }
  .main-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: var(--s-2) var(--gutter) var(--s-5);
  }
  .main-nav li + li { border-top: 1px solid var(--line); }
  .main-nav a { display: block; padding: 0.85rem 0; font-size: var(--t-md); }
  .main-nav a[aria-current="page"] { border-bottom-color: transparent; color: var(--accent); }
  .nav-cta { margin-top: var(--s-4); text-align: center; }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  background: var(--navy-deep);
  color: #fff;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 42%;
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(9, 24, 43, 0.94) 0%, rgba(9, 24, 43, 0.80) 42%, rgba(9, 24, 43, 0.35) 100%);
}

/* Sits inside .shell, so it keeps the page gutter instead of centring itself
   in the viewport - the gradient is darkest on the left and the copy must be
   over that, not floating in the middle of the photograph. */
.hero-inner {
  position: relative;
  padding-block: clamp(3.5rem, 9vw, 7rem);
  display: grid;
  gap: var(--s-6);
  max-width: 40rem;
}

.hero h1 {
  color: #fff;
  font-size: var(--t-hero);
  letter-spacing: -0.028em;
}

.hero-lede {
  font-size: var(--t-md);
  color: #ccd8e6;
  max-width: 40ch;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center; }


/* ---------- Sections ---------- */

.section { padding-block: var(--band); }
.section-alt { background: var(--ground); border-block: 1px solid var(--line); }

.section-head {
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
  max-width: 80%;
  margin-bottom: var(--s-7);
}
@media (max-width: 62rem) { .section-head { max-width: 100%; } }

/* ---------- Page header (interior pages) ---------- */

.page-hero {
  background: var(--ground);
  border-bottom: 1px solid var(--line);
  padding-block: clamp(2.5rem, 5vw, 4rem);
}
.page-hero h1 { max-width: 80%; }
.page-hero .lede { margin-top: var(--s-4); max-width: 80%; }

/* The 80% cap is a desktop measure; below the aside breakpoint it just leaves
   a dead margin, so headers go full width there. */
@media (max-width: 62rem) {
  .page-hero h1,
  .page-hero .lede { max-width: 100%; }
}


/* ---------- Article layout with sticky aside ---------- */

.with-aside {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 17rem);
  gap: clamp(var(--s-6), 5vw, var(--s-8));
  align-items: start;
}
@media (max-width: 62rem) { .with-aside { grid-template-columns: 1fr; } }

.aside { position: sticky; top: 5.5rem; display: flex; flex-direction: column; gap: var(--s-5); }
@media (max-width: 62rem) { .aside { position: static; } }

/* ---------- Prose ---------- */

.prose > * + * { margin-top: var(--s-4); }
.prose h2 { margin-top: var(--s-7); }
.prose h3 { margin-top: var(--s-6); }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose p, .prose li { max-width: var(--measure-wide); }

.prose ul, .prose ol {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  padding-left: 1.35rem;
}
.prose ol { list-style: decimal; }
.prose ol li::marker { color: var(--navy); font-weight: 600; }
.prose ul { list-style: none; padding-left: 0; }
.prose ul:not(.crosslinks) > li { position: relative; padding-left: 1.6rem; }
.prose ul:not(.crosslinks) > li::before {
  content: "";
  position: absolute;
  left: 0.15rem; top: 0.62em;
  width: 0.45rem; height: 0.45rem;
  border-radius: 50%;
  background: var(--accent);
}

.note {
  border-left: 3px solid var(--navy);
  background: var(--navy-soft);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: var(--s-4) var(--s-5);
  font-size: var(--t-sm);
  max-width: var(--measure);
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--navy-deep);
  color: #b9c8d8;
  margin-top: 0;
}
.site-footer h4 { color: #fff; margin-bottom: var(--s-4); font-size: var(--t-sm); letter-spacing: 0.01em; }
.site-footer a { color: #ccd8e6; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--s-6);
  padding-block: var(--s-8) var(--s-7);
}
@media (max-width: 62rem) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 40rem) { .footer-grid { grid-template-columns: 1fr; gap: var(--s-5); } }

.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: var(--s-3); font-size: var(--t-sm); }
.footer-brand .wordmark { color: #fff; font-size: 1.25rem; }
.footer-brand p { margin-top: var(--s-3); font-size: var(--t-sm); max-width: 34ch; }

.footer-disclaimer {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding-block: var(--s-5);
  font-size: var(--t-xs);
  color: #93a5b8;
  max-width: 84ch;
}

.footer-base {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding-block: var(--s-5) var(--s-6);
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3) var(--s-5);
  justify-content: space-between;
  font-size: var(--t-xs);
  color: #93a5b8;
}
.footer-links { display: flex; flex-wrap: wrap; gap: var(--s-5); }
