/* ==========================================================================
   Pak Court Marriage — design system
   Navy / teal / restrained gold. Single stylesheet, no frameworks.
   ========================================================================== */

/* ---------- Fonts (self-hosted, variable, latin subset) ---------- */
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url('../fonts/source-serif-4-latin-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/inter-latin-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

/* ---------- Tokens ---------- */
:root {
  /* brand */
  --navy-900: #071529;
  --navy-800: #0a1e3c;
  --navy-700: #102c52;
  --navy-600: #1b3f6d;
  --navy-400: #42618d;
  --teal-700: #0b6f67;
  --teal-600: #0f8a80;
  --teal-500: #16a79b;
  --teal-100: #e4f3f1;
  --gold-600: #a8822f;
  --gold-500: #c9a25a;
  --gold-200: #ecdfc3;

  /* neutrals */
  --ink: #14202e;
  --ink-soft: #3c4a5c;
  --muted: #5b6a7d;
  --line: #e0ddd5;
  --line-soft: #efece6;
  --surface: #f8f6f2;
  --surface-alt: #f2efe9;
  --card: #ffffff;

  /* semantic */
  --focus: #16a79b;
  --shadow-sm: 0 1px 2px rgba(7, 21, 41, .06);
  --shadow-md: 0 8px 24px -12px rgba(7, 21, 41, .18);
  --shadow-lg: 0 24px 60px -28px rgba(7, 21, 41, .32);

  /* type */
  --font-serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* spacing scale (4px base) */
  --s-1: .25rem; --s-2: .5rem;  --s-3: .75rem; --s-4: 1rem;
  --s-5: 1.5rem; --s-6: 2rem;   --s-7: 2.5rem; --s-8: 3rem;
  --s-9: 4rem;   --s-10: 5rem;  --s-11: 6.5rem;

  --radius: 4px;
  --radius-lg: 8px;
  --wrap: 1140px;
  --wrap-narrow: 760px;
  --gutter: 1rem;
}
@media (min-width: 640px) { :root { --gutter: 1.5rem; } }
@media (min-width: 1024px) { :root { --gutter: 2rem; } }

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-700); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--navy-700); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 2px; }
button { font: inherit; }
hr { border: 0; border-top: 1px solid var(--line); margin: var(--s-7) 0; }

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  color: var(--navy-900);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -.012em;
  margin: 0 0 var(--s-4);
  text-wrap: balance;
}
h1 { font-size: clamp(2rem, 1.35rem + 2.7vw, 3.35rem); }
h2 { font-size: clamp(1.55rem, 1.2rem + 1.5vw, 2.3rem); }
h3 { font-size: clamp(1.15rem, 1.05rem + .45vw, 1.35rem); line-height: 1.3; }
h4 { font-size: 1.0625rem; line-height: 1.35; }
p { margin: 0 0 var(--s-4); max-width: 68ch; }
strong { font-weight: 650; color: var(--navy-800); }
small { font-size: .875rem; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: var(--wrap-narrow); }
.section { padding-block: var(--s-9); }
@media (min-width: 900px) { .section { padding-block: var(--s-11); } }
.section--tight { padding-block: var(--s-8); }
.section--alt { background: var(--surface-alt); }
.section--white { background: var(--card); }
.section--navy { background: var(--navy-800); color: #dfe7f1; }
.section--navy h2, .section--navy h3 { color: #fff; }
.section--navy p { color: #c3d0e0; }
.grid { display: grid; gap: var(--s-5); }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }
@media (min-width: 680px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}
.stack > * + * { margin-top: var(--s-4); }
.center { text-align: center; }
.center p { margin-inline: auto; }
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--navy-900); color: #fff; padding: var(--s-3) var(--s-4);
}
.skip-link:focus { left: var(--s-4); top: var(--s-3); }
.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(1px,1px,1px,1px); white-space: nowrap;
}

/* ---------- Eyebrow label ---------- */
.eyebrow {
  display: flex; align-items: center; gap: var(--s-3);
  font-family: var(--font-sans);
  font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--teal-700); margin-bottom: var(--s-3);
}
.eyebrow::before { content: ''; width: 24px; height: 1px; background: var(--gold-500); flex: none; }
.section--navy .eyebrow { color: var(--teal-500); }
.center .eyebrow { justify-content: center; }
.lede { font-size: 1.0625rem; color: var(--ink-soft); max-width: 62ch; }
@media (min-width: 700px) { .lede { font-size: 1.125rem; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: .75rem 1.35rem;
  font-family: var(--font-sans); font-size: .95rem; font-weight: 600; letter-spacing: .005em;
  border: 1px solid transparent; border-radius: var(--radius);
  text-decoration: none; cursor: pointer;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.btn:active { transform: translateY(1px); }
/* teal-700, not teal-600: white on teal-600 is 4.2:1, just under the 4.5:1 minimum */
.btn--primary { background: var(--teal-700); color: #fff; border-color: var(--teal-700); }
.btn--primary:hover { background: #084f49; border-color: #084f49; color: #fff; }
.btn--navy { background: var(--navy-800); color: #fff; border-color: var(--navy-800); }
.btn--navy:hover { background: var(--navy-900); color: #fff; }
.btn--ghost { background: transparent; color: var(--navy-800); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--navy-600); color: var(--navy-900); background: #fff; }
.btn--onnavy { background: rgba(255,255,255,.07); color: #fff; border-color: rgba(255,255,255,.3); }
.btn--onnavy:hover { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.55); }
.btn--sm { min-height: 40px; padding: .5rem 1rem; font-size: .875rem; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--s-3); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.96);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
/* The header spans the full viewport so a 65px logo and the full menu share one row. */
.site-header .wrap { max-width: none; }
.site-header__bar { display: flex; align-items: center; gap: var(--s-4); min-height: 72px; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; flex: 0 0 auto; margin-right: var(--s-5); }
/* Fixed height, free width, never cropped — the logo may be an SVG of any ratio. */
.brand img, .brand svg { height: 65px; width: auto; max-width: 330px; object-fit: contain; }
@media (max-width: 1279px) { .brand img, .brand svg { height: 54px; max-width: 275px; } }
@media (max-width: 460px) { .brand img, .brand svg { height: 44px; max-width: 215px; } }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name {
  font-family: var(--font-serif); font-size: 1.0625rem; font-weight: 650;
  color: var(--navy-900); letter-spacing: -.01em;
  /* a Site Title written as a full sentence must not crowd out the menu */
  max-width: 26ch; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.brand__meta {
  font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 600;
}
.nav { display: none; min-width: 0; flex: 0 1 auto; }
@media (min-width: 1280px) { .nav { display: block; } }
/* wrap rather than push the header out of the viewport if a menu carries long labels */
.nav ul { display: flex; align-items: center; flex-wrap: wrap; row-gap: .15rem; column-gap: .1rem; list-style: none; margin: 0; padding: 0; }
.nav > ul > li > a { max-width: 22ch; overflow: hidden; text-overflow: ellipsis; }
.nav li { position: relative; }
.nav a {
  display: block; padding: .6rem .55rem; border-radius: var(--radius);
  font-size: .92rem; font-weight: 550; color: var(--ink-soft); text-decoration: none;
  white-space: nowrap;
}
.nav a:hover { color: var(--navy-900); background: var(--surface-alt); }
.nav .current-menu-item > a, .nav .current_page_item > a { color: var(--navy-900); box-shadow: inset 0 -2px 0 var(--teal-600); }
.nav .sub-menu {
  position: absolute; left: 0; top: calc(100% + 6px); min-width: 268px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md); padding: var(--s-2);
  display: none; flex-direction: column; align-items: stretch; gap: 2px;
}
.nav li:hover > .sub-menu, .nav li:focus-within > .sub-menu { display: flex; }
.nav .sub-menu a { font-weight: 450; font-size: .9rem; white-space: normal; }
.header-actions { display: none; align-items: center; gap: var(--s-3); margin-left: auto; }
@media (min-width: 1280px) { .header-actions { display: flex; } }
.header-phone {
  font-weight: 650; font-size: .95rem; color: var(--navy-900); text-decoration: none;
  display: inline-flex; align-items: center; gap: .4rem; white-space: nowrap;
}
@media (max-width: 1399px) { .header-phone span.num { display: none; } }
.brand__meta { white-space: nowrap; }
@media (max-width: 1150px) { .brand__meta { display: none; } }
/* With a logo, the mark carries the brand: the strapline would only crowd the menu
   (the hero and footer both still state it). */
.brand--with-logo .brand__meta { display: none; }
.brand--with-logo { margin-right: var(--s-4); }
.header-phone svg { width: 16px; height: 16px; color: var(--teal-600); }

/* mobile menu */
.menu-toggle {
  display: inline-flex; align-items: center; gap: .5rem; margin-left: auto;
  min-height: 44px; padding: .5rem .8rem;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  font-size: .85rem; font-weight: 600; color: var(--navy-900); cursor: pointer;
}
@media (min-width: 1280px) { .menu-toggle { display: none; } }
.menu-toggle__bars { display: grid; gap: 3px; }
.menu-toggle__bars span { display: block; width: 16px; height: 1.5px; background: var(--navy-800); }
.mobile-nav {
  display: none; border-top: 1px solid var(--line); background: #fff;
  padding: var(--s-3) 0 var(--s-5);
}
.mobile-nav.is-open { display: block; }
@media (min-width: 1280px) { .mobile-nav { display: none !important; } }
.mobile-nav ul { list-style: none; margin: 0; padding: 0; }
.mobile-nav li { border-bottom: 1px solid var(--line-soft); }
.mobile-nav a {
  display: block; padding: .85rem .2rem; font-size: 1rem; font-weight: 550;
  color: var(--navy-900); text-decoration: none;
}
.mobile-nav .sub-menu { padding-left: var(--s-4); }
.mobile-nav .sub-menu a { font-weight: 400; font-size: .95rem; color: var(--ink-soft); }
.mobile-nav__cta { margin-top: var(--s-4); display: grid; gap: var(--s-3); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--navy-800);
  color: #e7edf6;
  padding-block: var(--s-8) var(--s-9);
}
@media (min-width: 900px) { .hero { padding-block: var(--s-10) var(--s-11); } }
.hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(60% 70% at 88% 12%, rgba(22,167,155,.16), transparent 60%),
    radial-gradient(50% 60% at 8% 92%, rgba(201,162,90,.10), transparent 60%);
  pointer-events: none;
}
.hero::after {
  content: ''; position: absolute; inset: 0; opacity: .5; pointer-events: none;
  background-image:
    repeating-linear-gradient(90deg, rgba(255,255,255,.028) 0 1px, transparent 1px 34px),
    repeating-linear-gradient(0deg, rgba(255,255,255,.028) 0 1px, transparent 1px 34px);
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.9), transparent 75%);
}
.hero__inner { position: relative; display: grid; gap: var(--s-8); align-items: center; }
@media (min-width: 1000px) { .hero__inner { grid-template-columns: 1.08fr .92fr; gap: var(--s-9); } }
.hero__flag {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .4rem .8rem .4rem .6rem; margin-bottom: var(--s-5);
  border: 1px solid rgba(201,162,90,.42); border-radius: 100px;
  background: rgba(201,162,90,.08);
  font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--gold-200);
}
.hero__flag span.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--teal-500); }
.hero h1 { color: #fff; margin-bottom: var(--s-4); }
.hero h1 em {
  font-style: normal; color: #fff;
  box-shadow: inset 0 -.28em 0 rgba(22,167,155,.38);
}
.hero__lede { font-size: 1.0625rem; color: #c6d4e5; max-width: 54ch; margin-bottom: var(--s-6); }
@media (min-width: 700px) { .hero__lede { font-size: 1.15rem; } }
.hero__note {
  margin-top: var(--s-5); font-size: .82rem; color: #9fb2c9; max-width: 48ch;
  padding-top: var(--s-4); border-top: 1px solid rgba(255,255,255,.12);
}

/* hero case-file card */
.filecard {
  background: linear-gradient(180deg, #fbfaf7, #f4f1ea);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  color: var(--ink);
}
.filecard__top {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-3);
  padding: .85rem 1.1rem; background: var(--navy-900); color: #cfdcec;
  border-bottom: 2px solid var(--gold-500);
}
.filecard__title { font-size: .72rem; font-weight: 600; letter-spacing: .13em; text-transform: uppercase; }
.filecard__id { font-size: .7rem; letter-spacing: .1em; color: var(--gold-200); }
.filecard__body { padding: 1.1rem; }
.filerow {
  display: flex; align-items: flex-start; gap: .7rem;
  padding: .7rem 0; border-bottom: 1px dashed var(--line);
  font-size: .9rem;
}
.filerow:last-of-type { border-bottom: 0; }
.filerow__tick {
  flex: none; width: 20px; height: 20px; margin-top: 1px; border-radius: 50%;
  background: var(--teal-100); color: var(--teal-700);
  display: grid; place-items: center;
}
.filerow__tick svg { width: 12px; height: 12px; }
.filerow strong { display: block; font-size: .92rem; color: var(--navy-900); font-weight: 600; }
.filerow span { color: var(--muted); font-size: .82rem; }
/* Rubber stamp: sized to its text, set at an angle, sitting over the file's lower edge.
   text-indent matches letter-spacing so the trailing letter-space doesn't push the text left. */
.filecard__foot { display: flex; justify-content: flex-end; padding: 0 1.3rem 1.25rem; margin-top: -.2rem; }
.filecard__stamp {
  display: inline-block; padding: .4rem .7rem;
  border: 2px solid rgba(138,106,33,.6);
  box-shadow: inset 0 0 0 1px rgba(138,106,33,.22);
  border-radius: 3px;
  color: #8a6a21; background: transparent;
  font-size: .6rem; font-weight: 700; letter-spacing: .16em; text-indent: .16em;
  text-transform: uppercase; line-height: 1.5; white-space: nowrap;
  transform: rotate(-3.5deg);
}

/* ---------- Line illustrations ---------- */
/* One drawing, two palettes: the classes below are re-pointed inside navy sections. */
.ill { width: 100%; height: auto; aspect-ratio: 400 / 340; display: block; }
.ill__paper { fill: #fff; }
.ill__ink   { stroke: var(--navy-800); }
.ill__teal  { stroke: var(--teal-600); }
.ill__gold  { stroke: var(--gold-600); }
.section--navy .ill__paper,
.ctaband .ill__paper { fill: rgba(255,255,255,.05); }
.section--navy .ill__ink,
.ctaband .ill__ink { stroke: #b9cadf; }
.section--navy .ill__teal,
.ctaband .ill__teal { stroke: var(--teal-500); }
.section--navy .ill__gold,
.ctaband .ill__gold { stroke: var(--gold-500); }

/* Text beside a drawing: a readable measure on the left, the drawing on the right. */
.withill { display: grid; gap: var(--s-6); align-items: center; }
@media (min-width: 900px) { .withill { grid-template-columns: minmax(0,1.05fr) minmax(0,.95fr); gap: var(--s-9); } }
.withill__art { width: 100%; max-width: 420px; justify-self: center; }
.withill__art img { width: 100%; height: auto; display: block; }
@media (min-width: 900px) { .withill__art { max-width: 480px; } }
.withill .lede, .withill p { max-width: 56ch; }
/* A card that leads with a city illustration: the art runs to the card's edges. */
.card--city { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.card--city .card__art { width: 100%; height: auto; display: block; background: var(--surface); }
.card--city h3, .card--city p, .card--city .card__more { margin-left: var(--s-5); margin-right: var(--s-5); }
.card--city h3 { margin-top: var(--s-5); }
.card--city .card__more { margin-bottom: var(--s-5); }
/* a spot drawing above a heading, used small inside cards */
.spot { width: 96px; margin-bottom: var(--s-4); }

/* ---------- Trust strip ---------- */
.trust {
  background: var(--navy-900); color: #b9c8db;
  border-top: 1px solid rgba(255,255,255,.07);
}
.trust ul {
  list-style: none; margin: 0; padding: var(--s-5) 0; display: grid; gap: var(--s-4);
  grid-template-columns: 1fr;
}
@media (min-width: 620px) { .trust ul { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .trust ul { grid-template-columns: repeat(4, 1fr); gap: var(--s-5); } }
.trust li { display: flex; align-items: flex-start; gap: .65rem; font-size: .88rem; line-height: 1.45; }
.trust li svg { width: 17px; height: 17px; color: var(--teal-500); flex: none; margin-top: 2px; }
.trust strong { display: block; color: #fff; font-weight: 600; font-size: .92rem; }

/* ---------- Path selector ---------- */
.paths { display: grid; gap: var(--s-5); }
@media (min-width: 860px) { .paths { grid-template-columns: repeat(2, 1fr); } }
.path {
  position: relative; display: flex; flex-direction: column;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: var(--s-6); box-shadow: var(--shadow-sm);
  text-decoration: none; color: inherit;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.path::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  border-radius: var(--radius-lg) 0 0 var(--radius-lg);
  background: var(--teal-600);
}
.path--gold::before { background: var(--gold-500); }
.path:hover { border-color: var(--navy-400); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.path__kicker {
  font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--teal-700); margin-bottom: var(--s-3);
}
.path--gold .path__kicker { color: #7d5f1c; } /* darker than gold-600: 4.9:1 on white */
.path h3 { margin-bottom: var(--s-2); }
.path p { font-size: .94rem; color: var(--muted); margin-bottom: var(--s-4); }
.path ul { margin: 0 0 var(--s-5); padding: 0; list-style: none; display: grid; gap: .4rem; }
.path ul li { font-size: .88rem; color: var(--ink-soft); padding-left: 1.1rem; position: relative; }
.path ul li::before {
  content: ''; position: absolute; left: 0; top: .55em;
  width: 5px; height: 5px; border-radius: 50%; background: var(--gold-500);
}
.path__go {
  margin-top: auto; font-size: .9rem; font-weight: 650; color: var(--navy-800);
  display: inline-flex; align-items: center; gap: .4rem;
}
.path:hover .path__go { color: var(--teal-700); }
.path__go svg { width: 16px; height: 16px; transition: transform .2s ease; }
.path:hover .path__go svg { transform: translateX(3px); }

/* ---------- Cards ---------- */
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: var(--s-5); box-shadow: var(--shadow-sm);
}
.card--link { text-decoration: none; color: inherit; display: block; transition: border-color .2s, box-shadow .2s, transform .2s; }
.card--link:hover { border-color: var(--navy-400); box-shadow: var(--shadow-md); transform: translateY(-2px); color: inherit; }
.card h3 { margin-bottom: var(--s-2); }
.card p { font-size: .92rem; color: var(--muted); margin-bottom: 0; }
.card__icon {
  width: 38px; height: 38px; border-radius: var(--radius); margin-bottom: var(--s-4);
  display: grid; place-items: center;
  background: var(--teal-100); color: var(--teal-700);
  border: 1px solid rgba(15,138,128,.18);
}
.card__icon svg { width: 19px; height: 19px; }
.card__more { display: inline-block; margin-top: var(--s-4); font-size: .875rem; font-weight: 600; }

/* ---------- Checklist / two-column lists ---------- */
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.checklist li { position: relative; padding-left: 1.6rem; font-size: .94rem; color: var(--ink-soft); }
.checklist li::before {
  content: ''; position: absolute; left: 0; top: .45em; width: 11px; height: 6px;
  border-left: 1.8px solid var(--teal-600); border-bottom: 1.8px solid var(--teal-600);
  transform: rotate(-45deg);
}
.panel {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
}
.panel__head {
  padding: var(--s-4) var(--s-5); background: var(--surface-alt);
  border-bottom: 1px solid var(--line);
}
.panel__head h3 { margin: 0; font-size: 1.1rem; }
.panel__head span { font-size: .8rem; color: var(--muted); }
.panel__body { padding: var(--s-5); }
.notice {
  border-left: 3px solid var(--gold-500); background: rgba(201,162,90,.08);
  padding: var(--s-4) var(--s-5); border-radius: 0 var(--radius) var(--radius) 0;
  font-size: .92rem; color: var(--ink-soft);
}
.notice p:last-child { margin-bottom: 0; }
.notice strong { color: #7d5f1c; } /* darker than gold-600 so it passes 4.5:1 on the tinted panel */

/* ---------- Process ledger ---------- */
.ledger { counter-reset: step; display: grid; gap: 0; }
.ledger__item {
  display: grid; grid-template-columns: auto 1fr; gap: var(--s-4);
  padding: var(--s-5) 0; border-bottom: 1px solid var(--line);
}
.ledger__item:first-child { border-top: 1px solid var(--line); }
@media (min-width: 820px) {
  .ledger__item { grid-template-columns: auto 1fr auto; align-items: center; gap: var(--s-5); }
}
.ledger__num {
  counter-increment: step;
  width: 44px; height: 44px; flex: none;
  display: grid; place-items: center;
  border: 1px solid var(--gold-500); border-radius: var(--radius);
  font-family: var(--font-serif); font-size: 1.05rem; font-weight: 650; color: var(--navy-900);
  background: #fff;
}
.ledger__num::before { content: counter(step, decimal-leading-zero); }
.ledger__text h3 { margin-bottom: .25rem; font-size: 1.08rem; }
.ledger__text p { font-size: .92rem; color: var(--muted); margin: 0; }
.ledger__tag {
  font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--teal-700); background: var(--teal-100); border-radius: 100px;
  padding: .3rem .7rem; white-space: nowrap; justify-self: start;
}

/* ---------- Tables ---------- */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius-lg); border: 1px solid var(--line); background: #fff; }
table.data { width: 100%; border-collapse: collapse; font-size: .92rem; min-width: 560px; }
table.data th, table.data td { padding: .8rem 1rem; text-align: left; vertical-align: top; }
table.data thead th {
  background: var(--navy-800); color: #fff; font-weight: 600; font-size: .78rem;
  letter-spacing: .08em; text-transform: uppercase;
}
table.data tbody tr + tr { border-top: 1px solid var(--line-soft); }
table.data tbody tr:nth-child(even) { background: #fcfbf9; }
table.data td strong { color: var(--navy-800); }

/* ---------- Feature band (foreign nationals) ---------- */
.feature {
  display: grid; gap: var(--s-6); align-items: center;
}
@media (min-width: 980px) { .feature { grid-template-columns: 1fr 1fr; gap: var(--s-9); } }
.feature__list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-3); }
.feature__list--row { margin-top: var(--s-7); }
@media (min-width: 680px) { .feature__list--row { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .feature__list--row { grid-template-columns: repeat(4, 1fr); } }
.feature__list--row li { flex-direction: column; gap: .5rem; }
.feature__list li {
  display: flex; gap: .7rem; align-items: flex-start;
  padding: .85rem 1rem; border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius);
  background: rgba(255,255,255,.04); font-size: .92rem; color: #cedbea;
}
.feature__list svg { width: 16px; height: 16px; color: var(--teal-500); flex: none; margin-top: 3px; }
.feature__list strong { color: #fff; display: block; font-weight: 600; font-size: .94rem; }

/* ---------- Offices ---------- */
.office {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
  display: flex; flex-direction: column;
}
.office__body { padding: var(--s-5); display: flex; flex-direction: column; gap: var(--s-3); flex: 1; }
.office__city {
  font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--teal-700);
}
.office h3 { margin: 0; font-size: 1.1rem; }
.office address { font-style: normal; font-size: .92rem; color: var(--muted); }
.office__meta { font-size: .82rem; color: var(--muted); margin-top: auto; padding-top: var(--s-3); border-top: 1px solid var(--line-soft); }
.office__map { aspect-ratio: 16 / 9; background: var(--surface-alt); border-top: 1px solid var(--line); }
.office__map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- Author / review box ---------- */
.reviewbox {
  border: 1px solid var(--line); border-left: 3px solid var(--navy-700);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  background: #fff; padding: var(--s-5);
  display: grid; gap: var(--s-3);
}
@media (min-width: 760px) { .reviewbox { grid-template-columns: repeat(2, 1fr); gap: var(--s-4) var(--s-6); } }
.reviewbox__item { font-size: .9rem; }
.reviewbox__label {
  display: block; font-size: .68rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase;
  color: var(--muted); margin-bottom: .2rem;
}
.reviewbox__item strong { color: var(--navy-900); font-weight: 600; }
.reviewbox__foot { grid-column: 1 / -1; font-size: .82rem; color: var(--muted); border-top: 1px solid var(--line-soft); padding-top: var(--s-3); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: var(--s-3); }
.faq details {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
}
.faq details[open] { border-color: var(--navy-400); box-shadow: var(--shadow-sm); }
.faq summary {
  cursor: pointer; list-style: none; padding: var(--s-4) var(--s-5);
  font-family: var(--font-serif); font-size: 1.04rem; font-weight: 600; color: var(--navy-900);
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-4);
  min-height: 56px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ''; flex: none; width: 10px; height: 10px; margin-right: 2px;
  border-right: 1.8px solid var(--teal-600); border-bottom: 1.8px solid var(--teal-600);
  transform: rotate(45deg) translateY(-2px); transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.faq .faq__answer { padding: 0 var(--s-5) var(--s-5); }
.faq .faq__answer p { font-size: .94rem; color: var(--ink-soft); margin-bottom: .6rem; }
.faq .faq__answer p:last-child { margin-bottom: 0; }

/* ---------- Form ---------- */
.form { display: grid; gap: var(--s-4); }
.form__row { display: grid; gap: var(--s-4); }
@media (min-width: 640px) { .form__row--2 { grid-template-columns: repeat(2, 1fr); } }
.field { display: grid; gap: .35rem; }
.field label { font-size: .85rem; font-weight: 600; color: var(--navy-900); }
.field .hint { font-size: .78rem; color: var(--muted); }
/* Form controls name their own font: browsers render these with a separate font
   pipeline, and an inherited webfont is not reliably picked up — a <select> in
   particular can fall back to a system face. 16px also stops iOS zooming on focus. */
.field input, .field select, .field textarea {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 450;
  line-height: 1.4;
  color: var(--ink);
  padding: .7rem .85rem; min-height: 48px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  width: 100%;
}
.field option { font-family: var(--font-sans); font-size: 1rem; color: var(--ink); background: #fff; }
.field input::placeholder, .field textarea::placeholder {
  color: var(--muted); opacity: 1; font-size: .875rem; line-height: 1.45;
}
/* Labels differ in length, so without this the inputs in a two-column row start
   at different heights. Pin the control to the bottom of each cell instead. */
.form__row--2 { align-items: end; }
.form__row--2 > .field { height: 100%; grid-template-rows: 1fr auto; align-content: end; }
.form__row--2 > .field label { align-self: end; }

/* Custom chevron so the control looks the same on every platform. */
.field select {
  appearance: none; -webkit-appearance: none; -moz-appearance: none;
  padding-right: 2.75rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235b6a7d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .9rem center;
  background-size: 15px 15px;
}
.field select::-ms-expand { display: none; }
/* "Please choose" is a prompt, not a value: size it like a placeholder until one is picked. */
.field select:required:invalid { font-size: .875rem; color: var(--muted); }
.field select option { font-size: 1rem; color: var(--ink); }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--teal-600); outline-offset: 1px; }
.field--req label::after { content: ' *'; color: var(--teal-700); }
.consent { display: flex; gap: .7rem; align-items: flex-start; font-size: .85rem; color: var(--ink-soft); }
.consent input { width: 20px; height: 20px; min-height: 0; margin-top: 2px; flex: none; }
.form__note { font-size: .8rem; color: var(--muted); }
.hp { position: absolute; left: -9999px; }
.alert { padding: var(--s-4) var(--s-5); border-radius: var(--radius); font-size: .92rem; }
.alert--ok { background: var(--teal-100); border: 1px solid rgba(15,138,128,.3); color: var(--teal-700); }
.alert--err { background: #fdf2f2; border: 1px solid #e9c3c3; color: #9b3030; }

/* ---------- CTA band ---------- */
.ctaband { background: var(--navy-800); color: #d7e2ef; position: relative; overflow: hidden; }
.ctaband::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(55% 80% at 80% 20%, rgba(22,167,155,.18), transparent 62%);
}
.ctaband__inner { position: relative; display: grid; gap: var(--s-6); align-items: center; }
@media (min-width: 940px) { .ctaband__inner { grid-template-columns: 1.1fr .9fr; gap: var(--s-9); } }
.ctaband h2 { color: #fff; }
.ctaband p { color: #bccbdd; }
/* The enquiry card sits on the navy band but is a light surface: reset inherited text colours. */
.ctaband .card { color: var(--ink); }
.ctaband .card h3 { color: var(--navy-900); }
.ctaband .card p { color: var(--ink-soft); }
.ctaband .card p.small, .ctaband .card .muted, .ctaband .card .form__note, .ctaband .card .hint { color: var(--muted); }
.ctaband .card .consent { color: var(--ink-soft); }
.ctaband .contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-3); }
.ctaband .contact-list a {
  display: flex; align-items: center; gap: .8rem; padding: 1rem 1.1rem;
  border: 1px solid rgba(255,255,255,.18); border-radius: var(--radius);
  background: rgba(255,255,255,.05); color: #fff; text-decoration: none; font-weight: 600;
  transition: background-color .2s, border-color .2s;
}
.ctaband .contact-list a:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.4); }
.ctaband .contact-list svg { width: 20px; height: 20px; color: var(--teal-500); flex: none; }
.ctaband .contact-list span.sub { display: block; font-weight: 400; font-size: .8rem; color: #9fb2c9; }

/* ---------- Breadcrumbs ---------- */
.crumbs { padding-top: var(--s-5); font-size: .82rem; color: var(--muted); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; padding: 0; }
.crumbs li::after { content: '/'; margin-left: .4rem; color: var(--line); }
.crumbs li:last-child::after { content: ''; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--navy-800); }

/* ---------- Page hero (inner) ---------- */
.pagehero {
  background: var(--navy-800); color: #dce5f1; padding-block: var(--s-7) var(--s-8);
  position: relative; overflow: hidden;
}
.pagehero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(50% 70% at 85% 10%, rgba(22,167,155,.14), transparent 60%);
}
.pagehero__inner { position: relative; max-width: 780px; }
.pagehero h1 { color: #fff; }
.pagehero .lede { color: #c4d2e4; }
.pagehero .crumbs { padding-top: 0; margin-bottom: var(--s-4); color: #8fa4bd; }
.pagehero .crumbs a { color: #8fa4bd; }
.pagehero .crumbs a:hover { color: #fff; }
.pagehero .crumbs li::after { color: rgba(255,255,255,.25); }
.pagehero .btn-row { margin-top: var(--s-5); }

/* ---------- Article / entry content ---------- */
.entry { padding-block: var(--s-8); }
.entry__layout { display: grid; gap: var(--s-8); }
.entry__layout > * { min-width: 0; } /* let wide tables scroll instead of pushing the page out */
@media (min-width: 1020px) { .entry__layout { grid-template-columns: minmax(0,1fr) 300px; gap: var(--s-9); } }
.prose { max-width: 70ch; min-width: 0; }
.prose .table-scroll { max-width: 100%; }
.grid > * { min-width: 0; }
.prose > * + * { margin-top: var(--s-4); }
.prose h2 { margin-top: var(--s-7); padding-top: var(--s-2); }
.prose h3 { margin-top: var(--s-6); }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li { margin-bottom: .4rem; }
.prose li::marker { color: var(--teal-600); }
.prose blockquote {
  margin: var(--s-6) 0; padding: var(--s-4) var(--s-5);
  border-left: 3px solid var(--gold-500); background: #fff; border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 1rem; color: var(--ink-soft);
}
.prose table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.prose th, .prose td { padding: .7rem .9rem; border: 1px solid var(--line); text-align: left; }
.prose thead th { background: var(--surface-alt); }
.prose figure { margin: var(--s-6) 0; }
.prose figcaption { font-size: .82rem; color: var(--muted); margin-top: .5rem; }
.prose a { font-weight: 500; }

.sidebar { display: grid; gap: var(--s-5); align-content: start; }
@media (min-width: 1020px) { .sidebar { position: sticky; top: 96px; } }
.widget {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--s-5);
}
.widget h2, .widget h3 { font-size: 1rem; margin-bottom: var(--s-3); }
.widget ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.widget li { font-size: .9rem; }
.widget--cta { background: var(--navy-800); border-color: var(--navy-800); color: #cedbea; }
.widget--cta h3 { color: #fff; }
.widget--cta p { font-size: .88rem; color: #b6c6d9; }
.toc ol { margin: 0; padding-left: 1.1rem; display: grid; gap: .4rem; font-size: .88rem; }

/* ---------- Guides list ---------- */
.postcard {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: var(--s-5); display: flex; flex-direction: column; gap: var(--s-3);
  text-decoration: none; color: inherit; transition: border-color .2s, box-shadow .2s, transform .2s;
}
.postcard:hover { border-color: var(--navy-400); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.postcard__meta { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--teal-700); font-weight: 650; }
.postcard h3 { margin: 0; font-size: 1.1rem; }
.postcard p { font-size: .9rem; color: var(--muted); margin: 0; }
.pagination { display: flex; gap: var(--s-2); flex-wrap: wrap; margin-top: var(--s-7); }
.pagination .page-numbers {
  min-width: 42px; min-height: 42px; display: grid; place-items: center; padding: 0 .6rem;
  border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
  text-decoration: none; font-size: .9rem; font-weight: 600; color: var(--navy-800);
}
.pagination .page-numbers.current { background: var(--navy-800); border-color: var(--navy-800); color: #fff; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-900); color: #a9bace; font-size: .88rem;
  padding-block: var(--s-7) var(--s-4);
  border-top: 1px solid rgba(201,162,90,.3);
}
.site-footer__grid { display: grid; gap: var(--s-6) var(--s-5); }
@media (min-width: 760px) { .site-footer__grid { grid-template-columns: 1.4fr 1fr 1fr; } }
@media (min-width: 1040px) { .site-footer__grid { grid-template-columns: 1.6fr 1fr 1fr 1.1fr; } }
.site-footer h2 {
  font-family: var(--font-sans); font-size: .72rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: #fff; margin-bottom: var(--s-3);
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .1rem; }
.site-footer li a, .site-footer__legal a { display: inline-block; padding-block: .3rem; line-height: 1.35; }
.site-footer a { color: #a9bace; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
/* Contact buttons. The generic .site-footer a rules above are more specific
   than .btn, so without these the labels take the muted link colour and pick
   up an underline on hover. */
.site-footer__actions { margin-top: 1.1rem; }
.site-footer .btn { color: #fff; text-decoration: none; padding-block: .75rem; }
.site-footer .btn:hover { color: #fff; text-decoration: none; }
/* Share the row where the footer column allows it, stack full-width when not. */
.site-footer__actions .btn { flex: 1 1 165px; white-space: nowrap; padding-inline: .85rem; }
.footer-logo { height: 70px; width: auto; max-width: 340px; object-fit: contain; margin-bottom: 1rem; }
.site-footer .brand__name { color: #fff; }
.site-footer .brand__meta { color: #7d91a9; }
.footer-about p { font-size: .86rem; line-height: 1.5; color: #92a6bd; max-width: 40ch; margin-bottom: 0; }
.site-footer__bottom {
  margin-top: var(--s-5); padding-top: var(--s-4); border-top: 1px solid rgba(255,255,255,.1);
  display: grid; gap: var(--s-2); font-size: .78rem; color: #8097b0;
}
@media (min-width: 760px) { .site-footer__bottom { grid-template-columns: 1fr auto; align-items: center; } }
.site-footer__legal ul,
.site-footer__legal { display: flex; flex-wrap: wrap; gap: var(--s-4); list-style: none; margin: 0; padding: 0; }
.site-footer__legal li { list-style: none; }

/* ---------- Sticky mobile bar ---------- */
.stickybar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
  background: var(--line); border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
}
@media (min-width: 1280px) { .stickybar { display: none; } }
.stickybar a {
  display: flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 56px; background: #fff; color: var(--navy-900);
  font-size: .95rem; font-weight: 650; text-decoration: none;
}
.stickybar a.is-primary { background: var(--teal-600); color: #fff; }
.stickybar svg { width: 18px; height: 18px; }
body.has-stickybar { padding-bottom: 56px; }
@media (min-width: 1280px) { body.has-stickybar { padding-bottom: 0; } }

/* ---------- Utilities ---------- */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); }
.print-only { display: none; }

/* ---------- Print (document checklists) ---------- */
@media print {
  .site-header, .site-footer, .stickybar, .ctaband, .sidebar, .btn-row, .faq summary::after { display: none !important; }
  body { background: #fff; color: #000; }
  .pagehero { background: #fff; color: #000; padding-block: 0 1rem; }
  .pagehero h1, .pagehero .lede { color: #000; }
  .print-only { display: block; }
  .prose { max-width: none; }
  a[href]::after { content: ' (' attr(href) ')'; font-size: .7em; color: #555; }
}
