/* =============================================================
   Harvey Law Group Stylesheet
   Pures CSS, mobil first, ohne Framework.
   ============================================================= */

:root {
  --navy:         #3F5C57;
  --navy-light:   #52736d;
  --navy-dark:    #2d4541;
  --gold:         #7e8a88;
  --gold-light:   #a3acaa;
  --gold-dark:    #5f6968;
  --accent:       #3a7665;
  --accent-light: #4d8d7b;
  --accent-dark:  #2c5b4d;
  --light:        #f5f6f5;
  --paper:        #ffffff;
  --text:         #2d3a37;
  --muted:        #646f6c;
  --border:       #e3e6e5;
  --border-strong:#c9cecd;
  --shadow-sm:    0 2px 6px rgba(63,92,87,0.10);
  --shadow:       0 4px 20px rgba(63,92,87,0.14);
  --shadow-lg:    0 10px 40px rgba(63,92,87,0.20);
  --radius-sm:    4px;
  --radius:       8px;
  --radius-lg:    14px;
  --container:    1190px;
  --serif:        "Libre Baskerville", Georgia, "Times New Roman", serif;
  --sans:         "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --transition:   200ms ease;
  /* Fixed chrome. The header is position:fixed (see below), so its height has to
     be a known number rather than a measured one - it is pinned via
     .header-inner min-height, and the body is padded by exactly this much. */
  --topbar-h:     28px;
  --header-h:     76px;
  --chrome-h:     calc(var(--topbar-h) + var(--header-h));
}

/* ---------- Reset ---------- */
*,*::before,*::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  overflow-x: hidden;
}
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  max-width: 100vw;
}
img, picture, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold-dark); }
button { font: inherit; cursor: pointer; }
ul, ol { padding-left: 1.25rem; }
hr { border: 0; border-top: 1px solid var(--border); margin: 2.5rem 0; }

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
  color: var(--navy);
  line-height: 1.2;
  margin: 0 0 0.75em;
  font-weight: 600;
}
/* Libre Baskerville (serif) on the two top heading levels only; everything
   smaller is Open Sans. */
h1, h2 { font-family: var(--serif); }
h3, h4, h5, h6 { font-family: var(--sans); }
h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.lead { font-size: 1.15rem; color: var(--muted); }
.eyebrow {
  display: inline-block;
  font-size: 0.8425rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}
/* Dark backgrounds keep a white eyebrow (the hero sets its own light grey). */
.section--navy .eyebrow, .prog-parallax .eyebrow, .site-footer .eyebrow, .contact-info-card .eyebrow { color: #fff; }
.text-center { text-align: center; }
/* ---------- Eyebrow in case the background is clear ---------- */
.section--accred .eyebrow {
    color: #3f5c57 !important;
}
/* Eyebrow on a light background (e.g. "Noteworthy programmes" over --light):
   the base white is invisible, so use the brand sage-green accent. */
.eyebrow--onlight { color: var(--accent); }
/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.25rem;
}
.section { padding: clamp(3rem, 7vw, 6rem) 0; }
.section--light  { background: var(--light); }
.section--navy   { background: var(--navy); color: #d6dde6; }
.section--navy h1, .section--navy h2, .section--navy h3 { color: #fff; }
.section--navy a { color: var(--gold-light); }
.section--narrow { padding: clamp(2rem, 5vw, 4rem) 0; }

.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

/* ---------- Header & navigation ---------- */
 /* FIXED, not sticky. position:sticky cannot work here: html and body both carry
   overflow-x:hidden, which makes them scroll containers, so a sticky child sticks
   to that container instead of the viewport and scrolls away with the page. The
   top bar already had to be fixed for this exact reason. The header sits directly
   under the top bar and never moves. */
.site-header {
  position: fixed;
  top: var(--topbar-h);
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.97);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  /* min-height defines the header height (minus its 1px border) so --header-h is
     a fact, not an estimate. Tallest content is a nav link at ~45px; the padding
     keeps its own spacing below that. */
  min-height: calc(var(--header-h) - 1px);
  padding: 0.9rem 1.25rem;
  max-width: var(--container);
  margin: 0 auto;
}
.logo {
  display: flex;
  align-items: center;
  line-height: 1;
  color: var(--navy);
}
.logo img {
  height: 44px;
  width: auto;
  display: block;
}
.site-footer .logo img { height: 48px; filter: brightness(0) invert(1); }
@media (max-width: 600px) {
  .logo img { height: 36px; }
  /* Smaller logo, so the fixed band gets shorter too - the body padding and every
     scroll-margin follow automatically from the variable. */
  :root { --header-h: 70px; }
}

.nav-toggle { display: none; }
.nav-toggle-label {
  display: none;
  width: 40px; height: 40px;
  cursor: pointer;
  position: relative;
}
.nav-toggle-label span,
.nav-toggle-label span::before,
.nav-toggle-label span::after {
  position: absolute;
  display: block;
  width: 24px; height: 2px;
  background: var(--navy);
  left: 8px;
  transition: transform var(--transition);
}
.nav-toggle-label span { top: 19px; }
.nav-toggle-label span::before { content: ""; top: -8px; }
.nav-toggle-label span::after  { content: ""; top:  8px; }

.main-nav { display: flex; align-items: center; gap: 0.25rem; }
.main-nav > ul {
  list-style: none;
  display: flex;
  gap: 0.1rem;
  margin: 0;
  padding: 0;
}
.main-nav > ul > li { position: relative; }
.main-nav a {
  display: block;
  padding: 0.65rem 0.9rem;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--navy);
  border-radius: var(--radius-sm);
}
.main-nav a:hover { background: var(--light); color: var(--navy); }
.main-nav a.is-active { color: var(--gold-dark); }
.nav-mobile-only { display: none; } /* News link: shown only in the mobile menu (see 860px breakpoint) */
.mnav-caret { display: none; } /* mega-menu accordion toggle: shown only in the mobile menu */

.has-dropdown > a::after {
  content: "▾";
  font-size: 0.7em;
  margin-left: 0.35em;
  color: var(--muted);
}

.dropdown,
.megamenu {
  position: absolute;
  top: 100%;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1rem;
  min-width: 240px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity var(--transition), transform var(--transition), visibility 0s linear var(--transition);
}
.has-dropdown:hover > .dropdown,
.has-dropdown:focus-within > .dropdown,
.has-megamenu:hover > .megamenu,
.has-megamenu:focus-within > .megamenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition-delay: 0s;
}
.dropdown ul { list-style: none; margin: 0; padding: 0; }
.dropdown a { padding: 0.5rem 0.75rem; font-size: 0.9rem; }

.megamenu {
  /* Always centered to the viewport, regardless of which trigger opens it. */
  position: fixed;
  top: 70px;
  left: 50%;
  right: auto;
  transform: translateX(-50%) translateY(6px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  min-width: 720px;
  max-width: calc(100vw - 2rem);
  padding: 1.5rem;
}
/* Invisible hover-bridge above the megamenu so the cursor can travel
   from the nav trigger down to the menu without closing it. */
.megamenu::before {
  content: '';
  position: absolute;
  top: -18px;
  left: 0;
  right: 0;
  height: 20px;
}
/* Override the shared transform so the centered megamenu stays centered when opened. */
.has-megamenu:hover > .megamenu,
.has-megamenu:focus-within > .megamenu {
  transform: translateX(-50%) translateY(0);
}
.megamenu-col h4 {
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin: 0 0 0.6rem;
}
.megamenu-col ul { list-style: none; margin: 0; padding: 0; }
.megamenu-col li + li { margin-top: 2px; }
.megamenu-col a {
  padding: 0.35rem 0.5rem;
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  gap: 0.55em;
}
.megamenu-col--wide { grid-column: span 2; }
.megamenu-sub {
  list-style: none;
  padding: 0 0 0.4rem 1.6rem;
  margin: 2px 0 0;
  border-left: 1px solid var(--border);
  margin-left: 0.7rem;
}
.megamenu-sub a {
  font-size: 0.8rem;
  color: var(--muted);
  padding: 0.22rem 0.5rem;
}
.megamenu-sub a:hover { color: var(--accent); background: transparent; }

/* SVG country-flag images */
.flag-icon {
  display: inline-block;
  width: 1.33em;
  height: 1em;
  vertical-align: -0.15em;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.08);
  flex-shrink: 0;
}
.flag-icon--sm { width: 1.1em;  height: 0.825em; }
.flag-icon--md { width: 1.6em;  height: 1.2em; }
.flag-icon--lg { width: 2.4em;  height: 1.8em; vertical-align: middle; border-radius: 3px; margin-bottom: 5px; }
.flag-icon--xl { width: 3.6em;  height: 2.7em; vertical-align: middle; border-radius: 4px; margin-bottom: 5px; }

/* Programme hero: flag sits in its own block above the H1 */
.programme-hero-flag {
  margin-bottom: 0.85rem;
  line-height: 0;
}
.programme-hero-flag .flag-icon {
  width: 44px;
  height: 33px;
  border-radius: 3px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

/* Programme suspended notice — page stays live, but flags the programme as paused. */
.programme-suspended {
  background: #F7EEEC;
  border-top: 1px solid #E6D2CE;
  border-bottom: 1px solid #E6D2CE;
}
.programme-suspended .container {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  padding-top: 1.05rem;
  padding-bottom: 1.05rem;
  flex-wrap: wrap;
}
.programme-suspended__tag {
  flex-shrink: 0;
  display: inline-block;
  background: #8E3B2F;
  color: #fff;
  font-size: 0.7825rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.35rem 0.7rem;
  border-radius: 4px;
  white-space: normal;
  max-width: 100%;
  margin-top: 0.1rem;
}
.programme-suspended__msg {
  margin: 0;
  color: #5A2A22;
  font-size: 1.0425rem;
  line-height: 1.5;
  max-width: 72ch;
}

.btn-nav,
.main-nav a.btn-nav {
  background: var(--accent);
  color: #fff !important;
  padding: 0.55rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
}
.btn-nav:hover { background: var(--accent-dark); color: #fff !important; }

.lang-switch {
  position: relative;
}
.lang-switch summary {
  list-style: none;
  cursor: pointer;
  padding: 0.55rem 0.7rem;
  font-size: 0.85rem;
  color: var(--gold-dark);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.lang-switch summary::-webkit-details-marker { display: none; }
.lang-switch[open] summary { background: var(--light); }
.lang-list {
  position: absolute;
  right: 0;
  top: calc(100% + 4px);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 0.5rem;
  min-width: 170px;
  list-style: none;
  margin: 0;
  z-index: 50;
}
.lang-list a { padding: 0.4rem 0.65rem; font-size: 0.88rem; border-radius: var(--radius-sm); }
/* Language list inside the mobile menu (hidden on desktop). */
.nav-lang { display: none; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--navy-dark), var(--navy));
  color: #fff;
  padding: clamp(4rem, 9vw, 8rem) 0 clamp(3rem, 6vw, 5rem);
  position: relative;
  overflow: hidden;
}
/* Only the homepage hero gets the background photo */
.hero--home {
  background:
    linear-gradient(135deg, rgba(45,69,65,0.78), rgba(63,92,87,0.62)),
    url('../img/hero_background-image.webp') center/cover no-repeat;
}
.hero h1 { color: #fff; max-width: 18ch; }

/* ---- Hero with a video beside the text (Citizenship by Ancestry) ---- */
/* Breadcrumb, eyebrow and H1 form one full-width block above the columns. The
   global .hero h1 cap of 18ch would wrap the title, so it is lifted here to
   keep it on a single line. */
.hero-head { margin-bottom: 2.25rem; }
.hero-head h1 { max-width: none; }
@media (max-width: 900px) {
  .hero-head { margin-bottom: 1.5rem; }
}

/* Two columns on desktop, stacked on narrow screens. The container keeps its
   normal 1190px width: only this inner grid is constrained. */
.hero-split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 3rem;
  align-items: center;
}
.hero-split-text { min-width: 0; }
.hero-split .hero-video { min-width: 0; }
.hero-video-title {
  color: #fff;
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 0 .75rem;
  max-width: none;
}
.hero-video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.35);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}
.hero-video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
@media (max-width: 900px) {
  .hero-split { grid-template-columns: 1fr; gap: 2rem; }
  /* Text first, video under it, on phones. */
  .hero-split .hero-video { order: 2; }
}


.hero p  { color: #fff; max-width: 100ch; font-size: 1.1rem; }
.hero .eyebrow { color: var(--gold-light); }
/* Editable hub intro (the page body) rendered under the hero title. */
.hero-intro { max-width: 100ch; margin-top: 1rem; }
.hero-intro p { color: rgba(255,255,255,0.85); font-size: 1.1rem; }
.hero-intro p:not(:last-child) { margin-bottom: 0.9rem; }
.hero-intro ul, .hero-intro ol { color: rgba(255,255,255,0.85); margin: 0.6rem 0 0.6rem 1.2rem; }
.hero-intro li { margin: 0.25rem 0; }
.hero-intro a { color: var(--gold-light); text-decoration: underline; }
.hero-intro strong { color: #fff; }
.hero-actions { margin-top: 2rem; display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.15);
}
.hero-kpi strong {
  display: block;
  font-family: var(--sans);
  font-size: 2rem;
  color: var(--gold-light);
  line-height: 1;
}
.hero-kpi span { font-size: 0.9125rem; color: rgba(255,255,255,0.75); }

/* ---------- Programme hero photo ----------
   Green tint stays full behind the title and facts on the left, then eases off
   gradually toward the right so the photo breathes there. The image URL comes
   from page.php as --hero-img. */
.hero--prog {
  background:
    linear-gradient(90deg,
      rgba(45,69,65,0.86) 0%,
      rgba(45,69,65,0.82) 35%,
      rgba(50,75,71,0.66) 50%,
      rgba(56,83,78,0.38) 70%,
      rgba(60,89,84,0.14) 88%,
      rgba(63,92,87,0) 100%),
    var(--hero-img) center center / cover no-repeat;
  min-height: clamp(240px, 32vh, 360px);
  display: flex;
  align-items: center;
}
/* Phones: text runs the full width, so the tint stays even for legibility. */
@media (max-width: 760px) {
  .hero--prog {
    background:
      linear-gradient(135deg, rgba(45,69,65,0.86), rgba(63,92,87,0.70)),
      var(--hero-img-m, var(--hero-img)) center center / cover no-repeat;
  }
}

/* ---------- Programme hero facts (max 3, under the title) ---------- */
.prog-hero-facts {
  display: flex;
  flex-wrap: wrap;
  margin-top: 2.25rem;
  padding-top: 1.6rem;
  border-top: 1px solid rgba(255,255,255,0.15);
}
.prog-hero-fact {
  position: relative;
  padding: 0 1.9rem;
}
.prog-hero-fact:first-child { padding-left: 0; }
.prog-hero-fact + .prog-hero-fact::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 2.6rem;
  background: rgba(255,255,255,0.18);
}
.prog-hero-fact-label {
  display: block;
  font-family: var(--sans);
  font-size: 0.7825rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.9);
  margin-bottom: 0.45rem;
}
.prog-hero-fact-value {
  display: block;
  font-family: var(--sans);
  font-size: 1.2rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.2;
}
.prog-hero-fact-value a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.prog-hero-fact-value a:hover { text-decoration-thickness: 2px; }
@media (max-width: 640px) {
  .prog-hero-fact { flex: 1 1 100%; padding: 0; }
  .prog-hero-fact + .prog-hero-fact { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,0.12); }
  .prog-hero-fact + .prog-hero-fact::before { display: none; }
}

/* ---------- Optional subtitle under the programme title (set in the editor) ---------- */
.hero h1:has(+ .prog-subtitle) { margin-bottom: .2rem; }
.hero .prog-subtitle {
  margin: 0 0 .9rem;
  font-size: 1.35rem;
  line-height: 1.4;
  color: #fff !important;   /* same white as the H1, never the hero's 85% paragraph white */
  opacity: 1;
}
.hero .prog-subtitle + .prog-reviewed { margin-top: 0; }

/* ---------- "Reviewed by" line under the programme title (lawyer picked in the editor) ---------- */
.hero .prog-reviewed {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .55rem;
  margin: -.9rem 0 0;   /* the H1 carries a 0.75em bottom margin: pull the line up under the title */
  max-width: none;
  font-size: 1.0125rem;
  letter-spacing: .01em;
  color: #fff;
}
.hero .prog-reviewed a { color: #fff; font-weight: 600; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.6); }
.hero .prog-reviewed a:hover { border-bottom-color: #fff; }
.hero .prog-reviewed .dot { opacity: .6; }
.hero .prog-reviewed time { font-weight: 600; color: #fff; }

/* ---------- About teaser (homepage "Über 30 Jahre" section) ---------- */
.about-teaser .container {
  text-align: center;
  max-width: 920px;
}
.about-teaser-head {
  margin-bottom: 3rem;
}
.about-teaser-head h2 {
  max-width: 22ch;
  margin: 0 auto 1.5rem;
}
.about-teaser-head .btn { margin-top: 0.25rem; }
/* Company description between the heading and the button. Narrower than the
   920px container so the lines stay readable, and it inherits the navy
   section's light-on-dark colours. */
.about-teaser-text {
  max-width: 68ch;
  margin: 0 auto 1.75rem;
  color: rgba(255,255,255,0.82);
}
.about-teaser-text p { colors: #fff; margin: 0 0 0.9rem; line-height: 1.7; }
.about-teaser-text p:last-child { colors: #fff; margin-bottom: 0; }

.kpi-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.15);
}
.kpi { text-align: center; }
.kpi strong {
  display: block;
  font-family: var(--sans);
  font-size: 2.25rem;
  color: var(--gold-light);
  line-height: 1;
}
.kpi span {
  display: block;
  font-size: 0.9425rem;
  color: rgba(255,255,255,0.78);
  margin-top: 0.5rem;
  line-height: 1.35;
}
@media (max-width: 720px) {
  .about-teaser-head h2 { font-size: 1.55rem; line-height: 1.25; }
  .about-teaser-text { font-size: 1.0125rem; margin-bottom: 1.5rem; }
  .about-teaser-head .btn { width: 100%; max-width: 320px; justify-content: center; }
  .kpi-row {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem 1rem;
  }
  .kpi strong { font-size: 1.85rem; }
  .kpi span { font-size: 0.8625rem; }
}

/* ---------- Trust strip ---------- */
.trust-strip {
  background: var(--light);
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 0;
}
.trust-strip-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1rem, 4vw, 3rem);
  flex-wrap: wrap;
  font-size: 0.8425rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}
.trust-strip-inner strong { color: var(--navy); font-family: var(--sans); font-weight: 600; letter-spacing: 0.05em; font-size: 1.0125rem; text-transform: none; }
.trust-strip-inner a { color: var(--muted); text-decoration: none; transition: color var(--transition); }
.trust-strip-inner a:hover { color: var(--accent); }

/* ---------- Cards ---------- */
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--gold-light);
}
.card h3 { margin-top: 0; }
.card .card-label {
  display: inline-block;
  background: var(--light);
  color: var(--gold-dark);
  font-size: 0.7625rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  border-radius: 99px;
  margin-bottom: 1rem;
}
.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
  margin-top: 0.5rem;
  font-weight: 600;
  color: var(--navy);
}
.card-link::after { content: "→"; transition: transform var(--transition); }
.card-link:hover::after { transform: translateX(4px); }

.card--programme {
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
}
.card--programme .flag {
  font-size: 2rem;
  line-height: 1;
  margin-bottom: 0.5rem;
}
.card--programme h3 { font-size: 1.15rem; margin-bottom: 1rem; }
.card-meta {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  font-size: 0.9625rem;
  border-top: 1px solid var(--border);
}
.card-meta li {
  display: flex;
  justify-content: space-between;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--border);
}
.card-meta li span:first-child { color: var(--muted); }
.card-meta li span:last-child  { color: var(--navy); font-weight: 600; text-align: right; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.85rem 1.5rem;
  font-size: 1.0125rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  transition: all var(--transition);
  text-decoration: none;
  letter-spacing: 0.02em;
}
.btn--primary {
  background-color: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 2px 8px rgba(58,118,101,0.25);
}
.btn--primary:hover { background-color: var(--accent-dark); border-color: var(--accent-dark); color: #fff; box-shadow: 0 4px 14px rgba(58,118,101,0.40); }

/* Lifted variant on dark sage sections so the green CTA stays visible against the sage background */
.section--navy .btn--primary {
  background-color: var(--accent-light);
  border-color: var(--accent-light);
  color: #fff;
  box-shadow: 0 4px 16px rgba(0,0,0,0.35);
}
.section--navy .btn--primary:hover {
  background-color: #fff;
  border-color: #fff;
  color: var(--accent-dark);
}
.btn--outline {
  background: transparent;
  border-color: var(--navy);
  color: var(--navy);
}
.btn--outline:hover { background: var(--navy); color: #fff; }
.btn--outline-light {
  background: rgba(255,255,255,0.10);
  border-color: #fff;
  color: #fff;
}
.btn--outline-light:hover { background: #fff; color: var(--accent-dark); border-color: #fff; }
.btn--block { width: 100%; justify-content: center; }
.btn--lg { padding: 1rem 1.8rem; font-size: 1rem; }

/* ---------- Tabs (CSS-only, radio-based) ---------- */
.tabs { margin: 2rem 0; }
.tabs input[type="radio"] { position: absolute; opacity: 0; pointer-events: none; }
.tab-labels {
  display: flex;
  gap: 0.25rem;
  border-bottom: 2px solid var(--border);
  margin-bottom: 2rem;
  flex-wrap: wrap;
}
.tab-labels label {
  padding: 0.85rem 1.4rem;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.0125rem;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: color var(--transition), border-color var(--transition);
}
.tab-labels label:hover { color: var(--navy); }
.tab-panel { display: none; }

#tab-rbi:checked ~ .tab-labels label[for="tab-rbi"],
#tab-cbi:checked ~ .tab-labels label[for="tab-cbi"],
#tab-businesslaw:checked   ~ .tab-labels label[for="tab-businesslaw"],
#tab-privateclient:checked ~ .tab-labels label[for="tab-privateclient"],
#tab-duediligence:checked  ~ .tab-labels label[for="tab-duediligence"],
#tab-investmig:checked     ~ .tab-labels label[for="tab-investmig"] {
  color: var(--gold-dark);
  border-bottom-color: var(--gold);
}
#tab-rbi:checked ~ .tab-panels #panel-rbi,
#tab-cbi:checked ~ .tab-panels #panel-cbi,
#tab-businesslaw:checked   ~ .tab-panels #panel-businesslaw,
#tab-privateclient:checked ~ .tab-panels #panel-privateclient,
#tab-duediligence:checked  ~ .tab-panels #panel-duediligence,
#tab-investmig:checked     ~ .tab-panels #panel-investmig {
  display: block;
}

/* On mobile, hide wide comparison-table sections the programme cards below
   already carry the same data in a phone-friendly card layout. */
@media (max-width: 720px) {
  .compare-section { display: none; }
}

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; margin: 1.5rem 0; }
table.compare {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
table.compare th,
table.compare td {
  text-align: left;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.9825rem;
  vertical-align: top;
}
table.compare th {
  background: var(--light);
  font-family: var(--sans);
  color: var(--navy);
  font-weight: 600;
}
table.compare tr:last-child td { border-bottom: none; }
table.compare tr:hover td { background: rgba(245,247,250,0.6); }

/* ---------- Forms ---------- */
.form { display: grid; gap: 1.1rem; }
.form { display: flex; flex-direction: column; gap: 1.25rem; }
.form > div { margin: 0; }
.form-row { display: grid; gap: 1.25rem; grid-template-columns: 1fr 1fr; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.form label {
  display: block;
  font-size: 0.7825rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold-dark);
  margin-bottom: 0.45rem;
}
.form input[type="text"],
.form input[type="email"],
.form input[type="tel"],
.form input[type="password"],
.form input[type="number"],
.form select,
.form textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  font: inherit;
  font-size: 1.0125rem;
  background: var(--gll, #f8faf9);
  background: #f7f9f8;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
  appearance: none;
}
.form select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%237e8a88' d='M6 8 0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.4rem;
  cursor: pointer;
}
.form input::placeholder, .form textarea::placeholder { color: var(--muted); opacity: 0.7; }
.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: none;
  background: #fff;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(58,118,101,0.14);
}
.form textarea { min-height: 130px; }
.form .checkbox {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-size: 0.9025rem;
  line-height: 1.5;
  color: var(--muted);
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  margin-bottom: 0;
}
.form .checkbox input {
  margin-top: 0.1rem;
  width: 1.2rem;
  height: 1.2rem;
  flex-shrink: 0;          /* keep it square next to the long consent text */
  accent-color: var(--accent);
  cursor: pointer;
}
.form .checkbox a { color: var(--accent); text-decoration: underline; }
@media (max-width: 600px) {
  .form .checkbox input { width: 1.4rem; height: 1.4rem; }
  .form .checkbox { font-size: 0.9425rem; gap: 0.7rem; }
}
.honeypot { position: absolute; left: -9999px; opacity: 0; }

.form-card {
  background: #fff;
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 4vw, 2.75rem);
  box-shadow: var(--shadow);
}
.form-card > h2 { font-size: 1.4rem; margin: 0 0 1.5rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border); }

.alert {
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
  font-size: 1.0125rem;
}
.alert--ok { background: #e6f4ea; color: #1f6f3e; border: 1px solid #b6dfc4; }
.alert--err { background: #fdecea; color: #a52624; border: 1px solid #f3c1be; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 0.75rem; }
.faq details {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.25rem 1.25rem;
  background: #fff;
  transition: box-shadow var(--transition);
}
.faq details[open] { box-shadow: var(--shadow-sm); }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 1rem 0;
  font-weight: 600;
  font-family: var(--sans);
  color: var(--navy);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
/* The question is a real heading for the document outline; it must still look
   like the summary line it sits in. */
.faq summary h3 { margin: 0; font: inherit; color: inherit; letter-spacing: inherit; min-width: 0; }

/* Plain, always-visible FAQ: the question is a heading and the answer is body
   text, with no accordion to open. The .faq details/summary rules above still
   serve legacy <details> typed into article bodies. */
.faq--plain { display: block; }
.faq-item + .faq-item { margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }
.faq-item h3 { font-size: 1.15rem; line-height: 1.4; margin: 0 0 .5rem; color: var(--navy);
  scroll-margin-top: calc(var(--chrome-h) + 12px); }
.faq-a { color: var(--text); }
.faq-a > :first-child { margin-top: 0; }
.faq-a > :last-child { margin-bottom: 0; }
.faq-a p { margin: 0 0 .9rem; }

/* Programme "Latest updates": the same editorial treatment as the article
   updates. Hairline rows, the date set in the serif down a narrow left column,
   headline + text beside it. No rail, no fill, no small caps. */
.prog-updates { list-style: none; margin: 0; padding: 0; max-width: 80ch; border-top: 1px solid var(--border-strong); }
.prog-update {
  display: grid;
  grid-template-columns: 9.5rem minmax(0, 1fr);
  column-gap: 1.75rem;
  padding: 1.05rem 0 1.15rem;
  border-bottom: 1px solid var(--border);
}
.prog-update__date {
  display: block;
  font-family: var(--serif);
  font-size: 1.02rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--text);
  line-height: 1.4;
  padding-top: 0.1rem;
}
.prog-update__body { min-width: 0; }
.prog-update__title { font-size: 1.15rem; line-height: 1.35; margin: 0 0 .4rem; color: var(--navy); }
.prog-update__text { color: var(--text); font-size: 1rem; line-height: 1.7; }
.prog-update__text > :first-child { margin-top: 0; }
.prog-update__text > :last-child { margin-bottom: 0; }
.prog-update__text p { margin: 0 0 .9rem; }
.prog-update__text a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--border-strong); }
.prog-update__text a:hover { color: var(--accent); text-decoration-color: var(--accent); }
@media (max-width: 640px) {
  .prog-update { grid-template-columns: minmax(0, 1fr); row-gap: 0.3rem; }
  .prog-update__date { font-size: 1.0125rem; padding-top: 0; }
}

/* Same block on the sage-green programme FAQ section. */
.prog-faq .faq-item h3 { color: #fff; }
.prog-faq .faq-item + .faq-item { border-top-color: rgba(255,255,255,0.18); }
.prog-faq .faq-a { color: #e8edeb; }
.prog-faq .faq-a a { color: #fff; text-decoration: underline; }
.faq summary::after {
  content: "+";
  font-size: 1.3em;
  color: var(--gold-dark);
  transition: transform var(--transition);
}
.faq details[open] summary::after { content: "−"; }
.faq details > *:not(summary) { padding-bottom: 1rem; color: var(--text); }

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  font-size: 0.9125rem;
  color: var(--muted);
  margin: 1.5rem 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--navy); }
.breadcrumb-sep { color: var(--border-strong); }

/* ---------- Fact block ---------- */
.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 1.5rem 0 2rem;
}
.fact {
  background: #fff;
  padding: 1.25rem;
}
.fact-label {
  font-size: 0.7825rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold-dark);
  margin-bottom: 0.35rem;
}
.fact-value {
  font-family: var(--sans);
  color: var(--navy);
  font-size: 1.15rem;
  font-weight: 600;
}

/* ---------- Process steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  counter-reset: step;
}
.step {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  position: relative;
}
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  position: absolute;
  top: -16px;
  left: 1.25rem;
  background: var(--gold);
  color: var(--navy);
  font-family: var(--sans);
  font-size: 1.0125rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
}
.step h4 { margin-top: 0.5rem; }

/* ---------- Accreditation grid (legacy card style kept for back-compat) ---------- */
.creds-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.85rem;
}
.cred {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  font-size: 0.9625rem;
  color: var(--text);
}
.cred-title {
  font-family: var(--sans);
  color: var(--navy);
  font-weight: 600;
  display: block;
  margin-bottom: 0.15rem;
}

/* ---------- Accreditation list (linked, dot-prefixed) ---------- */
.cred-wrap {
  display: grid;
  gap: 2.75rem;
  margin-top: 2rem;
}
.cred-group-label {
  font-family: var(--sans);
  font-size: 1.15rem;
  color: var(--navy);
  margin-bottom: 1.1rem;
  letter-spacing: 0.01em;
  font-weight: 600;
}
.cred-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 0.4rem 1.75rem;
}
.cred-item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.5rem 0;
  font-size: 0.9825rem;
  border-bottom: 1px solid var(--border);
}
.cred-item:last-child { border-bottom: none; }
.cred-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(58,118,101,0.12);
}
.cred-item a {
  color: var(--text);
  text-decoration: none;
  transition: color var(--transition);
  line-height: 1.4;
}
.cred-item a:hover { color: var(--accent); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.75);
  padding: 4rem 0 0;
  font-size: 0.9825rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
}
.footer-col h3 {
  color: #fff;
  font-family: var(--serif);
  font-size: 1rem;
  margin-bottom: 1rem;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 0.55rem; }
.footer-col a { color: rgba(255,255,255,0.75); }
.footer-col a:hover { color: var(--gold-light); }
.footer-brand .logo-main { color: #fff; font-size: 1.5rem; }
.footer-brand .logo-sub { color: var(--gold-light); }
.footer-brand p { color: rgba(255,255,255,0.82); margin-top: 1rem; }

/* Social icons kept subtle (muted, thin outline; gold on hover). */
.footer-social { display: flex; gap: .5rem; margin-top: 1.25rem; }
.footer-social-link {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  color: rgba(255,255,255,0.5); border: 1px solid rgba(255,255,255,0.14);
  transition: color .2s ease, border-color .2s ease;
}
.footer-social-link:hover { color: var(--gold-light); border-color: var(--gold-light); }
.footer-social-link svg { display: block; }

/* Google Preferred Sources line, sits just above the copyright bar. */
.footer-prefsrc {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 1.15rem 0 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.9rem;
  font-size: 0.8825rem;
  color: rgba(255,255,255,0.72);
}
.footer-prefsrc-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.42rem 0.95rem;
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 999px;
  font-size: 0.8225rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #fff;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
}
.footer-prefsrc-btn:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.6);
  color: #fff;
}
.footer-prefsrc + .footer-bottom { border-top: 0; padding-top: 1.15rem; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 1.25rem 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 0.8825rem;
  color: rgba(255,255,255,0.78);
}
.footer-bottom-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-bottom-links a { color: rgba(255,255,255,0.78); }
.footer-bottom-links a:hover { color: var(--gold-light); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .megamenu { min-width: 560px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .nav-toggle-label { display: inline-block; }

  /* The menu opens as a second row inside the header. Fixed positioning means it
     can no longer push the page down, so cap it at the space below the top bar
     and let it scroll on its own. Scoped to mobile: on desktop an overflow here
     would clip the mega-menu dropdowns. */
  .site-header { max-height: calc(100vh - var(--topbar-h)); max-height: calc(100dvh - var(--topbar-h)); overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }

  /* Header inner wraps so the nav can open as a second row below the logo/hamburger row */
  .header-inner { flex-wrap: wrap; }
  .lang-switch { display: none; }            /* moved into the menu drawer on mobile */
  .nav-toggle-label { order: 3; }

  /* Language options live at the bottom of the open menu on mobile. */
  .nav-lang { display: block; padding: 1rem 0 0.25rem; }
  .nav-lang-label { display: block; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 0.6rem; }
  .nav-lang .lang-list { position: static; display: flex; flex-wrap: wrap; gap: 0.4rem 0.5rem; min-width: 0; padding: 0; margin: 0; background: transparent; border: 0; box-shadow: none; }
  .nav-lang .lang-list a { padding: 0.4rem 0.7rem; border: 1px solid var(--border); }

  /* Mobile menu: simple inline dropdown that pushes content down. No fixed positioning, no z-index drama. */
  .main-nav {
    display: none;
    width: 100%;
    order: 4;
    margin-top: 0.75rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--border);
  }
  .nav-toggle:checked ~ .main-nav { display: block; }
  .main-nav > ul {
    flex-direction: column;
    gap: 0;
    width: 100%;
  }
  .main-nav > ul > li {
    border-bottom: 1px solid var(--border);
    position: static;
  }
  .main-nav > ul > li:last-child { border-bottom: none; }
  .main-nav a { padding: 0.85rem 0; font-size: 1rem; }
  .nav-mobile-only { display: list-item; } /* reveal the News link in the mobile drawer */

  /* Residency / Citizenship become collapsible accordions on mobile. The
     programme links are server-rendered and stay in the HTML (Google crawls
     them whether the panel is open or not) — the checkbox only shows/hides the
     panel visually. No JavaScript, no duplicated links. */
  .has-dropdown > a::after, .has-megamenu > a::after { display: none; }
  .dropdown { display: none !important; }   /* simple dropdowns: their pages already list everything */

  /* Row: hub link (still navigates) on the left + chevron toggle on the right. */
  .has-megamenu { display: flex; flex-wrap: wrap; align-items: stretch; }
  .has-megamenu > a { flex: 1 1 auto; }
  .mnav-caret {
    display: block;
    flex: 0 0 48px;
    position: relative;
    cursor: pointer;
  }
  .mnav-caret::after {
    content: "";
    position: absolute;
    top: 50%; left: 50%;
    width: 9px; height: 9px;
    margin: -7px 0 0 -5px;
    border-right: 2px solid var(--navy);
    border-bottom: 2px solid var(--navy);
    transform: rotate(45deg);
    transition: transform 0.2s ease;
  }
  .mnav-toggle:checked ~ .mnav-caret::after { transform: rotate(-135deg); }

  /* Panel: collapsed by default; a static single-column stack when open. */
  .megamenu {
    display: none !important;
    position: static;
    top: auto; left: auto; right: auto;
    transform: none;
    opacity: 1;
    visibility: visible;
    grid-template-columns: 1fr;
    gap: 0;                       /* desktop column gap would be a huge blank band when stacked */
    min-width: 0; max-width: none; width: 100%;
    border: 0; border-radius: 0; box-shadow: none;
    background: transparent;
    padding: 0 0 0.5rem 0.75rem;
  }
  .megamenu::before { display: none; }   /* drop the desktop hover-bridge */
  /* Neutralise the desktop hover/focus centering transform on mobile — otherwise
     the opened panel (with the trigger in a sticky touch-hover/focus state) is
     shifted translateX(-50%) off-screen to the left until you tap again. */
  .has-megamenu:hover > .megamenu,
  .has-megamenu:focus-within > .megamenu { transform: none; left: auto; }
  .mnav-toggle:checked ~ .megamenu { display: grid !important; }
  .megamenu-col { padding-bottom: 0; }
  /* The empty spacer headings only exist to align columns on desktop — on a
     stacked mobile list they render as a big blank gap, so drop them. */
  .megamenu-col h4[aria-hidden="true"] { display: none; }
  .megamenu-col h4 { margin-top: 20px; }
  .megamenu-col a { padding: 0.5rem 0; }

  .btn-nav { margin-top: 0.5rem; display: inline-flex; }

  /* Form inputs at 16px to stop iOS Safari from zooming on focus */
  .form input[type="text"],
  .form input[type="email"],
  .form input[type="tel"],
  .form input[type="password"],
  .form input[type="number"],
  .form select,
  .form textarea {
    font-size: 16px;
  }

}

@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  h1 { font-size: 2rem; }
  .hero { padding: 3rem 0 2.5rem; }
}

/* ---------- Award badges ---------- */
.awards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, max-content));
  gap: 1.5rem 2rem;
  margin-top: 1.25rem;
  align-items: center;
  justify-content: start;
}
.award-badge {
  max-height: 150px;
  width: auto;
  height: auto;
  display: block;
  filter: drop-shadow(0 4px 14px rgba(63,92,87,0.18));
  transition: transform var(--transition);
}
.award-badge:hover { transform: scale(1.04); }
@media (max-width: 600px) {
  .awards-grid { gap: 1.25rem; justify-content: center; }
  .award-badge { max-height: 120px; }
}

/* ---------- Team grid ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}
.team-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  display: block;
  color: inherit;
  text-decoration: none;
}
a.team-card { cursor: pointer; }
a.team-card:hover .team-name { color: var(--brand); }
.team-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.team-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
  background: var(--light);
}
.team-info { padding: 1.1rem 1.25rem 1.3rem; }
.team-name {
  font-family: var(--sans);
  font-size: 1.05rem;
  color: var(--navy);
  margin: 0 0 0.25rem;
  line-height: 1.3;
}
.team-role {
  font-size: 0.9125rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.4;
}

.partner-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}
.partner-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: grid;
  grid-template-columns: 140px 1fr;
  transition: transform var(--transition), box-shadow var(--transition);
}
.partner-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.partner-card img {
  width: 140px;
  height: 100%;
  object-fit: cover;
  background: var(--light);
}
.partner-info { padding: 1.25rem 1.4rem; }
.partner-info h3 { margin: 0 0 0.3rem; font-size: 1.15rem; }
.partner-info p  { margin: 0; color: var(--muted); font-size: 0.9825rem; line-height: 1.5; }
@media (max-width: 520px) {
  .partner-card { grid-template-columns: 1fr; }
  .partner-card img { width: 100%; height: 220px; }
}

/* ---------- Force 3-column grid where used (homepage services etc.) ---------- */
.grid-3-fixed {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}
@media (max-width: 900px) { .grid-3-fixed { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .grid-3-fixed { grid-template-columns: 1fr; } }

.grid-4-fixed {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
}
@media (max-width: 1100px) { .grid-4-fixed { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px)  { .grid-4-fixed { grid-template-columns: 1fr; } }

/* ---------- Animations & motion ---------- */
/* No entrance or scroll-reveal animations: every section is visible on first
   paint (the old fade-in left a blank area under the hero until you scrolled). */
@keyframes hlgBtnShine {
  0%, 78%  { background-position: -100% 0; }
  92%      { background-position: 200% 0; }
  100%     { background-position: 200% 0; }
}

@media (prefers-reduced-motion: no-preference) {

  /* Periodic shine on primary buttons (every ~7s, lasts ~1s) */
  .btn--primary {
    background-image: linear-gradient(115deg, transparent 40%, rgba(255,255,255,0.32) 50%, transparent 60%);
    background-size: 250% 100%;
    background-position: -100% 0;
    background-repeat: no-repeat;
    animation: hlgBtnShine 7s ease-in-out 2s infinite;
  }
}

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  max-width: 580px;
  margin: 0 auto;
  background: var(--navy-dark);
  color: #fff;
  padding: 1.1rem 1.25rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  z-index: 1000;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  pointer-events: none;
}
.cookie-banner.cookie-banner--show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.cookie-banner-inner {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-between;
}
.cookie-banner-text { flex: 1 1 240px; }
.cookie-banner-text strong {
  display: block;
  font-family: var(--sans);
  font-size: 1rem;
  margin-bottom: 0.25rem;
  color: #fff;
}
.cookie-banner-text p {
  margin: 0;
  font-size: 0.9225rem;
  color: rgba(255,255,255,0.85);
  line-height: 1.5;
}
.cookie-banner-text a { color: #8fd0bc; text-decoration: underline; }
.cookie-banner-actions .btn { padding: 0.55rem 1.15rem; white-space: nowrap; }
@media (max-width: 480px) {
  .cookie-banner { left: 0.5rem; right: 0.5rem; bottom: 0.5rem; padding: 0.9rem 1rem; }
  .cookie-banner-actions .btn { width: 100%; }
}

/* ---------- Respect user's reduced-motion preference ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- Team detail page ---------- */
.team-detail {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 880px) {
  .team-detail {
    grid-template-columns: 320px 1fr;
    gap: 3rem;
    align-items: start;
  }
}
.team-detail-side {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.team-detail-photo {
  width: 100%;
  max-width: 320px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--light);
  display: block;
  margin: 0 auto;
}
.team-detail-block {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
}
.team-detail-block h3 {
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--navy);
  margin: 0 0 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.team-detail-block ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.team-detail-block li {
  font-size: 0.9825rem;
  line-height: 1.45;
  color: var(--text);
  padding-left: 1rem;
  position: relative;
}
.team-detail-block li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--brand);
}
.team-detail-body p {
  margin: 0 0 1.1rem;
  line-height: 1.7;
}

/* ---------- Print ---------- */
@media print {
  .site-header, .header-topbar, .site-footer, .form-card, .hero-actions { display: none; }
  /* The fixed chrome is gone on paper, so reclaim the space the body reserves
     for it - otherwise every printed page starts with a blank band. */
  body { color: #000; background: #fff; padding-top: 0; }
}

/* =============================================================
   News / Blog
   ============================================================= */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}
.news-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
}
.news-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.news-card-media {
  display: block;
  aspect-ratio: 16 / 9;
  background: var(--light);
  overflow: hidden;
}
.news-card-media img { width: 100%; height: 100%; object-fit: cover; }
.news-card-media--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  font-family: var(--sans);
  font-size: 2rem;
  letter-spacing: 0.15em;
  color: var(--border-strong);
}
.news-card-body { padding: 1.3rem 1.4rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.news-card-meta { font-size: 0.8825rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 0.4rem 0.5rem; align-items: center; }
.news-card-dot { color: var(--border-strong); }
/* Byline sits at the BOTTOM RIGHT of the card. .news-card-excerpt carries
   flex:1 inside the column-flex body, so it absorbs the spare height and the
   byline is pinned to the bottom edge whatever the excerpt length — which also
   keeps the bylines aligned across cards of different heights in a row. */
.news-card-byline {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.6rem;
  margin-top: 1.1rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--border);
  font-size: 0.9125rem;
  min-width: 0;
}
.news-card-author-photo {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  background: var(--light);
}
.news-card-author-name {
  font-weight: 600;
  color: var(--navy);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.news-card-title { font-size: 1.25rem; margin: 0.5rem 0 0.6rem; line-height: 1.3; }
.news-card-title a { color: var(--navy); }
.news-card-title a:hover { color: var(--accent); }
/* Whole card clickable via the title's stretched link (replaces the "Read more" button) */
.news-card-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.news-card-excerpt { color: var(--text); font-size: 1.0125rem; margin: 0; flex: 1; }

/* Single article */
.article-hero-image {
  margin: 0 0 2rem;
  border-radius: var(--radius);
  overflow: hidden;
}
.article-hero-image img { width: 100%; height: auto; }
.article-body { font-size: 1.08rem; line-height: 1.8; }
.article-body h2 { font-size: 1.6rem; margin: 2.2rem 0 0.8rem; }
.article-body h3 { font-size: 1.3rem; margin: 1.8rem 0 0.6rem; }
.article-body p { margin: 0 0 1.2rem; }
.article-body ul, .article-body ol { margin: 0 0 1.2rem; padding-left: 1.4rem; }
.article-body li { margin-bottom: 0.5rem; }
.article-body a { color: var(--accent); text-decoration: underline; }
.article-body blockquote {
  margin: 1.6rem 0;
  padding: 0.6rem 1.4rem;
  border-left: 4px solid var(--accent);
  background: var(--light);
  font-style: italic;
  color: var(--gold-dark);
}
/* ---------- Article updates ----------
   Editorial, not a card: a hairline-framed row with the date set in the serif
   down a narrow left column and the headline + text beside it, the way a dated
   note sits in a printed guide. No fill, no coloured bar, no badge. The accent
   appears once, in the small "Latest update" label. */
.article-updates {
  display: grid;
  grid-template-columns: 9.5rem minmax(0, 1fr);
  column-gap: 1.75rem;
  margin: 0 0 2.4rem;
  padding: 1.2rem 0 1.3rem;
  border-top: 1px solid var(--border-strong);
  border-bottom: 1px solid var(--border);
}
.article-updates__eyebrow {
  grid-column: 1;
  display: flex; flex-direction: column; gap: .3rem;
  margin: .15rem 0 0;
  font-family: var(--sans);
  font-size: .7825rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
}
.article-updates__eyebrow time {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  line-height: 1.35;
  color: var(--text);
}
.article-updates__title { grid-column: 2; margin: 0 0 .45rem; font-size: 1.3rem; line-height: 1.3; }
.article-updates__text  { grid-column: 2; margin: 0; font-size: 1.02rem; line-height: 1.7; color: var(--text); }
.article-updates__source { grid-column: 2; margin: .55rem 0 0; font-size: .9225rem; }
.article-updates__source a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--border-strong); }
.article-updates__source a:hover { color: var(--accent); text-decoration-color: var(--accent); }
.article-updates__history { grid-column: 1 / -1; margin-top: 1rem; padding-top: .8rem; border-top: 1px solid var(--border); }
.article-updates__history summary {
  list-style: none; cursor: pointer; width: max-content;
  font-family: var(--sans); font-size: .9025rem; color: var(--muted);
  text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--border-strong);
}
.article-updates__history summary::-webkit-details-marker { display: none; }
.article-updates__history summary:hover { color: var(--accent); text-decoration-color: var(--accent); }
.article-updates__history ol { list-style: none; margin: .6rem 0 0; padding: 0; }
.article-updates__history li {
  display: grid; grid-template-columns: 9.5rem minmax(0, 1fr); column-gap: 1.75rem;
  padding: .7rem 0 .75rem; border-top: 1px solid var(--border);
}
.article-updates__history li time { font-family: var(--serif); font-size: 1.0425rem; color: var(--text); line-height: 1.4; }
.article-updates__history li strong { grid-column: 2; font-weight: 600; }
.article-updates__history li p { grid-column: 2; margin: .2rem 0 0; font-size: 1.0125rem; line-height: 1.6; }
.article-updates__history li p a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 640px) {
  .article-updates, .article-updates__history li { grid-template-columns: minmax(0, 1fr); }
  .article-updates__eyebrow { flex-direction: row; align-items: baseline; gap: .7rem; margin-bottom: .55rem; }
  .article-updates__eyebrow time { font-size: 1.0425rem; }
  .article-updates__title, .article-updates__text, .article-updates__source,
  .article-updates__history li strong, .article-updates__history li p { grid-column: 1; }
  .article-updates__history li time { margin-bottom: .15rem; }
}

/* Inline dated callout inside the text: a small label with a short accent
   rule under it, then the paragraph as normal prose. Nothing is boxed. */
.article-body .article-update-inline { margin: 1.8rem 0; padding: 0; border: 0; background: none; }
.article-body .article-update-inline__label {
  margin: 0 0 .55rem;
  font-family: var(--sans);
  font-size: .7825rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
}
.article-body .article-update-inline__label time { margin-left: .5rem; font-family: var(--serif); font-size: 1.0125rem; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--text); }
.article-body .article-update-inline__label::after { content: ""; display: block; width: 2.25rem; height: 2px; margin-top: .45rem; background: var(--accent); }
.article-body .article-update-inline p:last-child { margin-bottom: 0; }

/* Keep linked headings clear of the sticky header when jumping from the TOC. */
.article-body h2 { scroll-margin-top: calc(var(--chrome-h) + 12px); }

/* ---------- Article premium reading layout (scoped to .article-prose) ---------- */
/* Mobile-first: single column, TOC pulled to the top (order:-1). */
.post-layout { display:flex; flex-direction:column; }
.post-content { width:100%; min-width:0; }
.post-aside { order:-1; width:100%; margin:0 0 1.9rem; }
.post-layout--solo { display:block; }

/* Desktop: the article fills the 1190px container reading column + sticky TOC sidebar. */
@media (min-width:1024px) {
  .post-layout { display:grid; grid-template-columns:minmax(0,1fr) 260px; gap:3.5rem; align-items:start; }
  .post-layout--solo { display:block; }
  .post-content { margin:0; }
  /* The sidebar sticks within its grid column and parks at the end of the
     article (the grid's bottom) it never overlaps the related/footer sections. */
  .post-aside { order:0; margin:0; align-self:start; position:sticky; top:calc(var(--chrome-h) + 20px); }
}
/* position:sticky needs html/body to NOT be scroll containers. overflow-x:hidden
   (set site-wide above) makes them one, so on articles only we switch to clip,
   which still blocks sideways scrolling. Scoped so the other sticky boxes on the
   site (programme factsheet, offices, Why HLG) keep their current behaviour.
   Browsers without :has keep hidden on html: the sidebar then just scrolls. */
body.page-article, html:has(body.page-article) { overflow-x:clip; }

/* Immigration Brief: a narrower reading column with the consultation CTA beside
   it. A brief has no table of contents and no related programmes, so the sidebar
   is the CTA card alone and does not need the 260px TOC column an article uses.
   Mobile is deliberately untouched: the base .post-layout above stays a single
   full-width column and the card falls to the end of the text as .post-cta--end,
   so only the desktop rules below are scoped to --brief. */
.post-layout--brief .post-aside { display:none; }
@media (min-width:1024px) {
  /* Text at 70% of the 1190px container. At 50% the leftover half was far wider
     than the card, leaving a dead strip between the two; 70% leaves roughly the
     card's own width, so the sidebar fills its column and the gap closes. */
  .post-layout--brief { grid-template-columns:70% minmax(0,1fr); }
  .post-layout--brief .post-aside { display:block; justify-self:end; width:100%; max-width:320px; }
}

.post-meta { display:flex; flex-wrap:wrap; align-items:center; gap:.55rem; margin-top:1.1rem; font-size:.9225rem; letter-spacing:.02em; color:rgba(255,255,255,.72); }
.post-meta .dot { opacity:.5; }
.post-meta a { color:var(--gold-light); text-decoration:none; border-bottom:1px solid rgba(163,172,170,.45); }
.post-meta a:hover { color:#fff; border-bottom-color:#fff; }
.post-author { font-weight:600; color:rgba(255,255,255,.85); }
.post-meta .post-updated { font-weight:600; color:var(--gold-light); }

/* Hide the floating reCAPTCHA v3 badge. */
.grecaptcha-badge { display:none !important; }
.post-lead-image { margin:0 0 2.6rem; border-radius:var(--radius-lg); overflow:hidden; box-shadow:var(--shadow); }
.post-lead-image img { width:100%; height:auto; display:block; }

.article-prose { font-size:1.04rem; line-height:1.78; color:#3f5c57; }
.article-prose > p:first-of-type { font-size:1.16rem; line-height:1.7; color:var(--navy-dark); margin-bottom:1.5rem; }
.article-prose p { margin:0 0 1.2rem; }
.article-prose h2 { font-size:1.6rem; line-height:1.3; letter-spacing:-.01em; margin:2.5rem 0 .9rem; scroll-margin-top: calc(var(--chrome-h) + 12px); }
.article-prose h3 { font-size:1.2rem; margin:1.9rem 0 .6rem; scroll-margin-top: calc(var(--chrome-h) + 12px); }
.article-prose h4 { font-size:1.02rem; margin:1.5rem 0 .5rem; color:var(--navy); }
.article-prose h2 + h3 { margin-top:1rem; }
.article-prose > :first-child { margin-top:0; }
.article-prose ul, .article-prose ol { margin:0 0 1.5rem; padding-left:1.45rem; }
.article-prose li { margin-bottom:.6rem; padding-left:.25rem; }
.article-prose li::marker { color:var(--accent); }
.article-prose a { color:var(--accent-dark); text-decoration:underline; text-decoration-thickness:1px; text-underline-offset:3px; text-decoration-color:rgba(58,118,101,.4); transition:text-decoration-color var(--transition); }
.article-prose a:hover { text-decoration-color:var(--accent); }
.article-prose strong { color:var(--navy); font-weight:700; }
.article-prose blockquote { margin:2rem 0; padding:.2rem 0 .2rem 1.4rem; border-left:3px solid var(--accent); font-family:var(--sans); font-size:1rem; line-height:1.65; font-style:italic; color:var(--navy); }
.article-prose blockquote p:last-child { margin-bottom:0; }
/* Pull-quote box ("Quote box" from the editor): highlighted callout with an optional author */
.article-prose blockquote.pullquote { position:relative; margin:2.4rem 0; padding:1.7rem 1.9rem 1.55rem 3.4rem; border-left:4px solid var(--accent); border-radius:var(--radius); background:#eef3f1; font-family:var(--serif); font-size:1.18rem; line-height:1.55; font-style:italic; color:var(--navy-dark); }
.article-prose blockquote.pullquote::before { content:"\201C"; position:absolute; left:1rem; top:.5rem; font-family:var(--serif); font-size:2.9rem; line-height:1; color:var(--accent); opacity:.3; }
.article-prose blockquote.pullquote p { margin:0 0 .4rem; }
.article-prose blockquote.pullquote p:last-child { margin-bottom:0; }
.article-prose blockquote.pullquote[data-author]::after { content:attr(data-author); display:block; margin-top:.9rem; font-family:var(--sans); font-style:normal; font-size:.9625rem; font-weight:600; letter-spacing:.02em; color:var(--accent-dark); }
@media (max-width:640px){ .article-prose blockquote.pullquote { padding:1.4rem 1.3rem 1.3rem 2.8rem; font-size:1.08rem; } }
.article-prose figure { margin:2.4rem 0; }
.article-prose img, .article-prose figure img { width:100%; height:auto; display:block; border-radius:var(--radius); }
.article-prose figcaption { margin-top:.65rem; font-size:.9125rem; color:var(--muted); text-align:center; font-style:italic; }
.article-prose hr { margin:2.8rem 0; border:0; border-top:1px solid var(--border); }
.article-prose h2:first-child, .article-prose h3:first-child { margin-top:0; }
/* In-article data tables ("grids"): scroll wrapper added in post.php so wide
   tables never break the column on mobile; header row + zebra rows for legibility. */
.article-table-wrap { margin:2rem 0; border:1px solid var(--border); border-radius:var(--radius); overflow:hidden; }
/* table-layout:fixed + wrapping = all columns share the width and wrap their
   text, so even a 7-column grid fits the reading column with NO horizontal scroll. */
.article-prose table { width:100%; table-layout:fixed; border-collapse:collapse; font-size:.9825rem; line-height:1.5; background:#fff; }
.article-table-wrap > table { margin:0; }
.article-prose th, .article-prose td { padding:.6rem .7rem; text-align:left; vertical-align:top; border-bottom:1px solid var(--border); border-right:1px solid var(--border); overflow-wrap:anywhere; word-break:break-word; hyphens:auto; }
.article-prose th:last-child, .article-prose td:last-child { border-right:0; }
.article-prose tr:last-child td { border-bottom:0; }
.article-prose thead th, .article-prose thead td,
.article-prose tbody tr:first-child td { background:var(--light); color:var(--navy); font-weight:700; }
/* Strip any inline background-color / text-color baked into stored cell markup
   (e.g. old editor "blue pill" headers) so cells stay clean and on-brand. */
.article-prose td strong, .article-prose td span, .article-prose th strong, .article-prose th span { background:transparent !important; background-color:transparent !important; color:inherit !important; }
.article-prose tbody tr:nth-child(even) td { background:rgba(63,92,87,.03); }
@media (max-width:560px) { .article-prose th, .article-prose td { padding:.45rem .5rem; font-size:.8825rem; } }
/* Editorial TOC numbered list with hairline separators + active-section highlight.
   Non-uppercase. No max-height/scroll: on desktop it folds once reading (below). */
.post-aside .toc { background:transparent; border:0; padding:0; margin:0; }
.post-aside .toc-title { font-family:var(--sans); font-size:.7825rem; font-weight:700; text-transform:none; letter-spacing:.06em; color:var(--navy); margin:0 0 .9rem; padding-bottom:.75rem; border-bottom:1px solid var(--border); }
.post-aside .toc-list { list-style:none; margin:0; padding:0; counter-reset:toc; }
.post-aside .toc-list li { margin:0; }
.post-aside .toc-list li + li a { border-top:1px solid var(--border); }
.post-aside .toc-list a { display:flex; gap:.7rem; align-items:baseline; padding:.5rem 0; color:var(--gold-dark); font-size:.9625rem; line-height:1.45; text-transform:none; text-decoration:none; transition:color var(--transition); overflow-wrap:anywhere; }
.post-aside .toc-list a::before { counter-increment:toc; content:counter(toc,decimal-leading-zero); flex:0 0 auto; min-width:1.5em; font-size:.7825rem; font-weight:700; letter-spacing:.03em; font-variant-numeric:tabular-nums; color:var(--border-strong); transition:color var(--transition); }
.post-aside .toc-list a:hover { color:var(--accent-dark); }
.post-aside .toc-list a:hover::before { color:var(--accent); }
.post-aside .toc-list a.is-current { color:var(--accent-dark); font-weight:600; }
.post-aside .toc-list a.is-current::before { color:var(--accent); }

/* Folding TOC (desktop): open at the top of the article; once reading, the aside
   turns compact and the list folds to "On this page" + the current heading, so the
   preferred-source button and the consultation CTA below stay in view. The head
   button reopens a 7-heading window around the current one (set in post.php). */
.toc-head { display:flex; align-items:center; gap:.6rem; width:100%; padding:0 0 .75rem; margin:0 0 .35rem; border:0; border-bottom:1px solid var(--border); background:none; font:inherit; text-align:left; cursor:default; color:var(--navy); }
.post-aside .toc .toc-title { margin:0; padding:0; border:0; flex:0 0 auto; }
.toc-title-reading { display:none; }
.post-aside.is-compact .toc-title-open { display:none; }
.post-aside.is-compact .toc-title-reading { display:inline; }
.toc-now { flex:1 1 auto; min-width:0; font-size:.9025rem; font-weight:600; color:var(--accent-dark); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; opacity:0; transform:translateX(-4px); transition:opacity .35s cubic-bezier(.2,.7,.3,1), transform .35s cubic-bezier(.2,.7,.3,1); }
.toc-chev { display:none; flex:0 0 auto; width:8px; height:8px; margin-left:auto; border-right:2px solid currentColor; border-bottom:2px solid currentColor; transform:rotate(-135deg) translate(-2px,-2px); opacity:.55; transition:transform .4s cubic-bezier(.2,.7,.3,1); }
.toc.is-closed .toc-chev { transform:rotate(45deg) translate(-2px,-2px); }
.toc-body { display:grid; grid-template-rows:1fr; opacity:1; transition:grid-template-rows .5s cubic-bezier(.2,.7,.3,1), opacity .35s ease; }
.toc.is-closed .toc-body { grid-template-rows:0fr; opacity:0; }
.toc-body-inner { min-height:0; overflow:hidden; }
.toc.is-closed .toc-head { border-bottom-color:transparent; padding-bottom:0; margin-bottom:0; }
@media (min-width:1024px) {
  .post-aside .toc { border:1px solid transparent; border-radius:var(--radius-lg); transition:background-color .4s ease, box-shadow .4s ease, padding .4s cubic-bezier(.2,.7,.3,1), border-color .4s ease; }
  .post-aside.is-compact .toc { background:#fff; border-color:var(--border); padding:.85rem 1rem; box-shadow:var(--shadow); }
  .post-aside.is-compact .toc-head { cursor:pointer; }
  .post-aside.is-compact .toc-chev { display:block; }
  .post-aside.is-compact .toc-now { opacity:1; transform:none; }
  /* Folded: "On this page" on its own small line, the current heading gets the full width under it. */
  .post-aside.is-compact .toc-head { flex-wrap:wrap; row-gap:.2rem; }
  .post-aside.is-compact .toc .toc-title { flex:0 0 100%; font-size:.7025rem; letter-spacing:.08em; color:var(--muted); }
  /* Long headings wrap to a 2nd line instead of being cut; "…" only past 2 lines. */
  .post-aside.is-compact .toc-now { flex:1 1 0; white-space:normal; display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; line-clamp:2; line-height:1.35; }
  .post-aside.is-compact .toc-list li:not(.is-near) { display:none; }
  .post-aside.is-compact .toc-list li.is-first-near a { border-top:0; }
}
.toc:not(.is-ready) .toc-body, .toc:not(.is-ready) .toc-chev, .toc:not(.is-ready) .toc-now { transition:none !important; }
@media (prefers-reduced-motion:reduce) {
  .toc-body, .toc-now, .toc-chev, .post-aside .toc { transition:none !important; }
}

/* Google Preferred Sources button (text + Google "G" on the side): under the TOC
   (desktop and the list at the top on mobile), after the end CTA on mobile and on
   desktop when an article has no TOC sidebar. Never in the mobile reading bar. */
.post-prefsrc { display:flex; align-items:center; justify-content:center; gap:.55rem; width:100%; padding:.6rem 1rem; border:1px solid var(--accent); border-radius:999px; background:#fff; color:var(--accent-dark); font-size:.8825rem; font-weight:600; line-height:1.35; text-align:center; text-decoration:none; transition:background .2s ease, border-color .2s ease; }
.post-prefsrc:hover { background:var(--light); border-color:var(--accent-dark); color:var(--accent-dark); }
.post-prefsrc-logo { flex:0 0 auto; width:18px; height:18px; display:block; }
/* Entrance (post.php adds the classes): text hidden and logo invisible until the
   button is in view; then the logo rolls in from the text's left edge while the
   text is uncovered behind it, same timing so the two stay in step. */
.post-prefsrc.pref-anim span { clip-path:inset(0 100% 0 0); }
.post-prefsrc.pref-anim .post-prefsrc-logo { opacity:0; }
.post-prefsrc.pref-anim.is-armed .post-prefsrc-logo { opacity:1; transform:translateX(var(--roll-x,0)) rotate(var(--roll-r,0)); }
.post-prefsrc.pref-anim.is-rolled span { clip-path:inset(0 0 0 0); transition:clip-path 1.2s cubic-bezier(.33,0,.2,1); }
.post-prefsrc.pref-anim.is-rolled .post-prefsrc-logo { transform:none; transition:transform 1.2s cubic-bezier(.33,0,.2,1); }
@media (prefers-reduced-motion:reduce) {
  .post-prefsrc.pref-anim span { clip-path:none; }
  .post-prefsrc.pref-anim .post-prefsrc-logo { opacity:1; transform:none; }
}
.post-prefsrc--aside { margin-top:1.2rem; }
.post-prefsrc--end { margin-top:1rem; }
.post-prefsrc--aside + .post-cta--aside { margin-top:1.2rem; }
@media (min-width:1024px) {
  .post-prefsrc--end { display:none; }
  .post-layout--solo .post-prefsrc--end { display:flex; }
}

/* Mobile reading bar: the folded TOC ("On this page" + current heading),
   fixed right under the header while reading. Hidden
   until the list at the top has scrolled away; never shown on desktop. */
.toc-bar { display:none; }
@media (max-width:1023.98px) {
  .toc-bar { display:block; position:fixed; left:0; right:0; top:var(--hdr-bottom, var(--chrome-h)); z-index:90; padding:0 1.25rem; opacity:0; visibility:hidden; transform:translateY(-8px); pointer-events:none; transition:opacity .25s ease, transform .3s cubic-bezier(.2,.7,.3,1), visibility 0s .3s; }
  .toc-bar.is-on { opacity:1; visibility:visible; transform:none; pointer-events:auto; transition:opacity .3s ease, transform .4s cubic-bezier(.2,.7,.3,1), visibility 0s; }
  .toc-bar-card { max-width:720px; margin:8px auto 0; padding:.5rem .6rem .6rem; background:#fff; border:1px solid var(--border); border-radius:var(--radius-lg); box-shadow:var(--shadow); }
  .toc-bar-btn { display:flex; flex-wrap:wrap; align-items:center; column-gap:.55rem; row-gap:.15rem; width:100%; padding:.25rem .35rem .45rem; border:0; background:none; font:inherit; text-align:left; color:var(--navy); cursor:pointer; }
  /* "On this page" on its own small line above, so the current heading gets the full width. */
  .toc-bar-label { flex:0 0 100%; font-size:.6625rem; font-weight:700; letter-spacing:.08em; text-transform:uppercase; color:var(--accent); line-height:1.3; }
  /* Long headings wrap to a 2nd line instead of being cut; "…" only past 2 lines. */
  .toc-bar-now { flex:1 1 0; min-width:0; font-size:.9225rem; font-weight:600; line-height:1.35; overflow:hidden; display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; line-clamp:2; }
  .toc-bar .toc-chev { display:block; }
  .toc-bar:not(.is-open) .toc-chev { transform:rotate(45deg) translate(-2px,-2px); }
  .toc-bar-panel { display:grid; grid-template-rows:0fr; opacity:0; transition:grid-template-rows .4s cubic-bezier(.2,.7,.3,1), opacity .3s ease; }
  .toc-bar.is-open .toc-bar-panel { grid-template-rows:1fr; opacity:1; }
  .toc-bar-panel .toc-body-inner { max-height:55vh; overflow-y:auto; overscroll-behavior:contain; -webkit-overflow-scrolling:touch; }
  .toc-bar-panel .toc-list { list-style:none; margin:0; padding:0 .35rem .4rem; counter-reset:toc; border-top:1px solid var(--border); }
  .toc-bar-panel .toc-list li + li a { border-top:1px solid var(--border); }
  .toc-bar-panel .toc-list a { display:flex; gap:.7rem; align-items:baseline; padding:.55rem 0; color:var(--gold-dark); font-size:.9625rem; line-height:1.45; text-decoration:none; }
  .toc-bar-panel .toc-list a::before { counter-increment:toc; content:counter(toc,decimal-leading-zero); flex:0 0 auto; min-width:1.5em; font-size:.7825rem; font-weight:700; font-variant-numeric:tabular-nums; color:var(--border-strong); }
  .toc-bar-panel .toc-list a.is-current { color:var(--accent-dark); font-weight:600; }
  .toc-bar-panel .toc-list a.is-current::before { color:var(--accent); }
  /* Headings reached from a TOC link land below the header + bar, not under them. */
  .page-article .article-prose h2, .page-article .article-prose h3 { scroll-margin-top:calc(var(--chrome-h) + 120px); }
}
@media (prefers-reduced-motion:reduce) {
  .toc-bar, .toc-bar-panel { transition:none !important; }
}

/* CTA under the TOC on desktop, at the end of the article on mobile. */
/* Quiet "Request a call back" box between article sections (includes/article-ask.php). */
.article-body .article-ask { display:flex; align-items:center; gap:1.25rem; margin:2.2rem 0; padding:1.1rem 1.35rem; background:var(--light); border:1px solid var(--border); border-radius:var(--radius); }
.article-body .article-ask .article-ask-text { flex:1; margin:0; font-size:1.0125rem; line-height:1.6; color:var(--muted); }
.article-body .article-ask .article-ask-btn { flex:none; white-space:nowrap; color:var(--navy); text-decoration:none; }
.article-body .article-ask .article-ask-btn:hover { color:#fff; }
/* On the one-column (mobile) article layout, articles that carry these boxes drop the
   floating "Contact me back" button: it sat over the text and the boxes already ask.
   Articles without a box keep it. Browsers without :has() simply keep the button. */
@media (max-width:1023.98px) {
  body.page-article:has(.article-ask) .cb-fab[data-cb-open] { display:none; }
}
@media (max-width: 640px) {
  .article-body .article-ask { flex-direction:column; align-items:stretch; gap:.9rem; }
  .article-body .article-ask .article-ask-btn { justify-content:center; }
}
.post-cta { background:var(--light); border:1px solid var(--border); border-radius:var(--radius); padding:1.5rem; }
.post-cta .post-cta-title { font-family:var(--sans); font-size:1.05rem; font-weight:600; color:var(--navy); margin:0 0 .55rem; }
.post-cta p { font-size:.9425rem; line-height:1.55; color:var(--muted); margin:0 0 1.1rem; }
.post-cta .btn { width:100%; justify-content:center; }
/* Share row inside the CTA card. Same circular icon button as .footer-social-link,
   recoloured for a light background (the footer version is tuned for the dark
   footer, so its rgba-white values would be invisible here). */
.post-share { margin-top:1.35rem; padding-top:1.1rem; border-top:1px solid var(--border); }
.post-share-label {
  display:block; font-size:.7825rem; font-weight:600; letter-spacing:.1em;
  text-transform:uppercase; color:var(--muted); margin-bottom:.7rem;
}
.post-share-links { display:flex; gap:.5rem; }
.post-share-link {
  display:inline-flex; align-items:center; justify-content:center;
  width:34px; height:34px; border-radius:50%;
  color:var(--muted); border:1px solid var(--border-strong);
  transition:color .2s ease, border-color .2s ease, background .2s ease;
}
.post-share-link:hover { color:#fff; background:var(--accent); border-color:var(--accent); }
.post-share-link svg { display:block; }

.post-cta--aside { margin-top:1.8rem; display:none; }
.post-cta--end { margin-top:2.5rem; display:block; }
@media (min-width:1024px) {
  .post-cta--aside { display:block; }
  .post-cta--end { display:none; }
  .post-layout--solo .post-cta--end { display:block; }
}

/* Related programmes: under the consultation CTA in the sidebar on desktop,
   at the end of the article on mobile (mirrors the CTA placement). */
.post-programs { background:var(--light); border:1px solid var(--border); border-radius:var(--radius); padding:1.4rem 1.5rem; }
.post-programs .post-programs-title { font-family:var(--sans); font-size:1.05rem; font-weight:600; color:var(--navy); margin:0 0 .8rem; }
.post-programs-list { list-style:none; margin:0; padding:0; }
.post-programs-list li { margin:0; }
.post-programs-list li + li a { border-top:1px solid var(--border); }
.post-programs-list a { display:flex; align-items:baseline; gap:.55rem; padding:.55rem 0; color:var(--gold-dark); font-size:.9625rem; line-height:1.45; text-decoration:none; transition:color var(--transition); overflow-wrap:anywhere; }
.post-programs-list a::before { content:"\203A"; color:var(--accent); font-weight:700; flex:0 0 auto; }
.post-programs-list a:hover { color:var(--accent-dark); }
.post-programs--aside { margin-top:1.4rem; display:none; }
.post-programs--end { margin-top:1.8rem; display:block; }
@media (min-width:1024px) {
  .post-programs--aside { display:block; }
  .post-programs--end { display:none; }
  .post-layout--solo .post-programs--end { display:block; }
}

/* Immigration Brief sidebar. A brief has no consultation CTA, so .post-share is
   no longer nested inside a .post-cta card and has to carry the card frame
   itself; its own top border and spacing are cancelled here because they were
   drawn to separate it from the CTA text above it. Visibility mirrors the
   --aside / --end pattern: sidebar on desktop, end of the brief on mobile. */
.post-share-block { background:var(--light); border:1px solid var(--border); border-radius:var(--radius); padding:1.4rem 1.5rem; }
.post-share-block .post-share { margin-top:0; padding-top:0; border-top:0; }
.post-share-block--aside { margin-top:1.4rem; display:none; }
.post-share-block--end { margin-top:2.5rem; display:block; }
@media (min-width:1024px) {
  .post-share-block--aside { display:block; }
  .post-share-block--end { display:none; }
}
/* Archive link closing the series list. */
.post-programs-all { display:inline-block; margin-top:1rem; font-size:.9125rem; font-weight:600; color:var(--accent-dark); text-decoration:none; }
.post-programs-all:hover { color:var(--accent); }
.post-author-card { display:flex; gap:1.3rem; align-items:flex-start; margin-top:3rem; padding:1.6rem 1.7rem; background:var(--light); border:1px solid var(--border); border-radius:var(--radius-lg); }
.post-author-photo { flex:0 0 auto; display:block; width:76px; height:76px; border-radius:50%; overflow:hidden; box-shadow:0 2px 8px rgba(63,92,87,.18); }
.post-author-photo img { width:100%; height:100%; object-fit:cover; display:block; }
.post-author-info { min-width:0; }
.post-author-label { font-size:.7425rem; text-transform:uppercase; letter-spacing:.14em; color:var(--gold-dark); font-weight:700; }
.post-author-name { font-family:var(--sans); font-size:1.25rem; color:var(--navy); margin:.2rem 0 .15rem; }
.post-author-name a { color:var(--navy); text-decoration:none; }
.post-author-name a:hover { color:var(--accent); }
.post-author-role { font-size:.9625rem; color:var(--muted); margin:0 0 .6rem; }
.post-author-bio { font-size:.9825rem; line-height:1.6; color:var(--text); margin:0 0 .7rem; }
.post-author-link { font-size:.9125rem; font-weight:700; letter-spacing:.02em; color:var(--accent); text-decoration:none; }
.post-author-link:hover { color:var(--accent-dark); }
@media (max-width:520px) { .post-author-card { flex-direction:column; gap:1rem; } }
.article-foot { display:flex; flex-wrap:wrap; gap:.8rem; padding-top:1.9rem; border-top:1px solid var(--border); }
@media (max-width:560px) { .article-prose h2 { font-size:1.4rem; } .article-prose h3 { font-size:1.12rem; } }
/* Article body text: 20px, forced #3e3e3e (headings untouched; overrides imported inline colours) */
.article-prose > p, .article-prose > p:first-of-type,
.article-prose > ul > li, .article-prose > ol > li { font-size:20px !important; color:#3e3e3e !important; }
.article-prose > p :not(a), .article-prose > ul > li :not(a), .article-prose > ol > li :not(a) { color:#3e3e3e !important; }

/* ---------- Article table of contents (H2 only, auto-generated) ---------- */
.toc {
  background: var(--light);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 1.1rem 1.4rem 1.2rem;
  margin: 0 0 2.4rem;
}
.toc-title {
  margin: 0 0 0.5rem;
  font-family: var(--sans);
  font-size: 1.0125rem;
  font-weight: 700;
  color: var(--navy);
}
.toc-list {
  margin: 0;
  padding-left: 1.25rem;
}
.toc-list li { margin: 0.35rem 0; line-height: 1.5; }
.toc-list a {
  color: var(--accent);
  text-decoration: none;
  overflow-wrap: anywhere;
}
.toc-list a:hover { color: var(--accent-dark); text-decoration: underline; }
@media (max-width: 480px) {
  .toc { padding: 0.95rem 1.1rem 1rem; }
}

/* ---------- Media / press page ---------- */
.media-grid { display:grid; gap:1.5rem; grid-template-columns:repeat(auto-fill,minmax(300px,1fr)); }
.media-grid--list { grid-template-columns:1fr; gap:1rem; }
.media-card { display:flex; flex-direction:column; background:var(--paper); border:1px solid var(--border); border-radius:12px; overflow:hidden; transition:box-shadow var(--transition), transform var(--transition); }
.media-card:hover { box-shadow:0 8px 24px rgba(45,69,65,.10); transform:translateY(-2px); }
.media-card-logo { display:flex; align-items:center; justify-content:center; min-height:92px; padding:1.1rem 1.4rem; background:var(--paper); border-bottom:1px solid var(--border); }
.media-card-logo img { max-height:56px; max-width:78%; object-fit:contain; }
.media-card-body { padding:1.2rem 1.4rem 1.4rem; display:flex; flex-direction:column; gap:.5rem; }
.media-card-meta { font-size:.7825rem; letter-spacing:.07em; text-transform:uppercase; color:var(--gold-dark); font-weight:700; }
.media-card-title { font-family:var(--sans); font-size:1.1rem; line-height:1.32; color:var(--navy); margin:0; }
.media-card-title a { color:var(--navy); text-decoration:none; }
.media-card-title a:hover { color:var(--accent); }
.media-card-excerpt { font-size:.9625rem; line-height:1.6; color:var(--muted); margin:0; }
.media-card-link { font-size:.8825rem; font-weight:700; color:var(--accent); text-decoration:none; margin-top:.15rem; }
.media-card-link:hover { color:var(--accent-dark); }
/* Publications list variant (no logo) reads as stacked rows */
.media-grid--list .media-card { flex-direction:row; align-items:stretch; }
.media-grid--list .media-card-logo { width:150px; min-height:0; border-bottom:0; border-right:1px solid var(--border); }
.media-grid--list .media-card-body { flex:1; }
/* Featured: the logo sits INSIDE the content flow, directly above the outlet
   name and date, left aligned. No banner band and no accent border: the plain
   grey block read as a separate header strip rather than part of the article. */
.media-card--featured { margin-top:1rem; }
.media-card--featured .media-card-logo {
  justify-content:flex-start;
  background:none;
  border-bottom:0;
  min-height:0;
  padding:1.4rem 1.4rem 0;
}
.media-card--featured .media-card-logo img { max-height:44px; max-width:180px; }
.media-card--featured .media-card-body { padding-top:.7rem; }
.media-card--featured .media-card-title { font-size:1.45rem; }
@media (max-width:640px){
  .media-grid--list .media-card { flex-direction:column; }
  .media-grid--list .media-card-logo { width:100%; border-right:0; border-bottom:1px solid var(--border); }
  .media-card--featured .media-card-logo { padding:1.1rem 1.1rem 0; }
  .media-card--featured .media-card-logo img { max-height:36px; max-width:150px; }
}

/* ---------- Status badges ---------- */
.badge {
  display: inline-block;
  font-size: 0.7825rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.badge--ok    { background: #e6f4ea; color: #1f6f3e; }
.badge--muted { background: var(--light); color: var(--muted); }

/* ---------- Imported page bodies (verbatim content in our template) ---------- */
.page-body { font-size: 1.06rem; line-height: 1.8; }
.page-body h2 { font-size: 1.6rem; margin: 2.4rem 0 0.8rem; scroll-margin-top: calc(var(--chrome-h) + 12px); }
.page-body h3 { font-size: 1.25rem; margin: 1.8rem 0 0.6rem; }
.page-body p { margin: 0 0 1.15rem; }
.page-body ul, .page-body ol { margin: 0 0 1.2rem; padding-left: 1.4rem; }
.page-body li { margin-bottom: 0.45rem; }
.page-body a { color: var(--accent); text-decoration: underline; }
figure.page-image { margin: 1.8rem 0; border-radius: var(--radius); overflow: hidden; }
figure.page-image img { width: 100%; height: auto; display: block; }

/* FAQ accordions inside imported bodies (bare <details>, same look as .faq) */
.article-body details, .page-body details {
  border: 1px solid var(--border); border-radius: var(--radius);
  background: #fff; margin: 0 0 0.75rem; padding: 0;
}
.article-body details[open], .page-body details[open] { box-shadow: var(--shadow-sm); }
.article-body summary, .page-body summary {
  cursor: pointer; padding: 1rem 2.5rem 1rem 1.2rem; position: relative;
  font-weight: 600; color: var(--navy); list-style: none; font-family: var(--sans);
}
.article-body summary::-webkit-details-marker, .page-body summary::-webkit-details-marker { display: none; }
.article-body summary::after, .page-body summary::after {
  content: "+"; position: absolute; right: 1.1rem; top: 50%; transform: translateY(-50%);
  font-size: 1.3rem; color: var(--accent);
}
.article-body details[open] summary::after, .page-body details[open] summary::after { content: "\2212"; }
.article-body details > :not(summary), .page-body details > :not(summary) { padding: 0 1.2rem 1rem; margin: 0; }

/* Green FAQ block (programme pages): inverted, readable accordions on the navy
   (sage-green) background applied by .section--navy. */
.prog-faq .prog-section-title { color: #fff; }
.prog-faq .article-body details { background: rgba(255,255,255,0.07); border-color: rgba(255,255,255,0.22); }
.prog-faq .article-body details[open] { background: rgba(255,255,255,0.11); box-shadow: none; }
.prog-faq .article-body summary { color: #fff; }
.prog-faq .article-body summary::after { color: #fff; }
.prog-faq .article-body details > :not(summary) { color: #e8edeb; }
.prog-faq .article-body details a { color: #fff; text-decoration: underline; }

/* ---------- Nearest-office block (geolocated) ---------- */
.hlg-office { display:block; font-size:0.9125rem; line-height:1.55; margin-top:0.85rem; }
.hlg-office-eyebrow { display:block; text-transform:uppercase; letter-spacing:0.08em; font-size:0.7625rem; opacity:0.9; margin-bottom:0.35rem; }
.hlg-office-name { display:flex; align-items:center; gap:0.45rem; font-weight:600; margin-bottom:0.3rem; }
.hlg-office-flag { width:18px; height:auto; border-radius:2px; flex:none; }
.hlg-office-addr { display:block; opacity:0.85; margin-bottom:0.3rem; }
/* Block links with enough height + spacing to pass the 24px touch-target rule. */
/* <address> is italic by default; the footer contact block must read as normal text. */
.footer-contact { font-style:normal; }
.hlg-office-tel, .hlg-office-mail { display:block; padding:0.35rem 0; min-height:24px; }
.site-footer .hlg-office a { color:rgba(255,255,255,0.85); }
.hlg-office--card { background:var(--light); border:1px solid var(--border); border-left:4px solid var(--accent); border-radius:var(--radius); padding:1.1rem 1.3rem; }
.hlg-office--card .hlg-office-eyebrow { color:var(--accent); margin-top:0; }
.hlg-office--card .hlg-office-name { font-family:var(--sans); font-size:1.15rem; color:var(--navy); }
.hlg-office--card .hlg-office-addr { color:var(--muted); }
.hlg-office--card .hlg-office-tel { color:var(--accent); font-weight:600; }

/* ---------- Programme facts box + hub grid (single source of truth) ---------- */
.facts { display:grid; grid-template-columns:repeat(auto-fit,minmax(180px,1fr)); gap:1px; background:var(--border); border:1px solid var(--border); border-radius:var(--radius); overflow:hidden; margin:0 0 2rem; }
.facts .fact { background:#fff; padding:1rem 1.2rem; }
.fact-label { font-size:.7825rem; text-transform:uppercase; letter-spacing:.08em; color:var(--muted); margin-bottom:.3rem; }
.fact-value { font-family:var(--sans); font-size:1.15rem; color:var(--navy); font-weight:600; }
.prog-hub { margin-top:2.5rem; }
.prog-hub-group { margin-bottom:3rem; }
.prog-hub-group > h3 { font-size:1.15rem; font-weight:700; letter-spacing:.04em; text-transform:uppercase; color:var(--gold-dark); margin-bottom:1.3rem; padding-bottom:.6rem; border-bottom:1px solid var(--border); }
.prog-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(270px,1fr)); gap:1.5rem; }

/* Sophisticated programme card */
.prog-card {
  display:flex; flex-direction:column; position:relative; overflow:hidden;
  background:#fff; border:1px solid var(--border); border-radius:var(--radius-lg);
  padding:1.5rem 1.5rem 1.25rem; text-decoration:none;
  box-shadow:0 1px 2px rgba(63,92,87,0.04);
  transition:box-shadow .25s ease, transform .25s ease, border-color .25s ease;
}
.prog-card::before { content:""; position:absolute; top:0; left:0; right:0; height:3px; background:var(--accent); transform:scaleX(0); transform-origin:left; transition:transform .3s ease; }
.prog-card:hover { transform:translateY(-4px); box-shadow:var(--shadow); border-color:var(--border-strong); }
.prog-card:hover::before { transform:scaleX(1); }

.prog-card-head { display:flex; align-items:center; gap:.7rem; padding-bottom:1rem; margin-bottom:1rem; border-bottom:1px solid var(--border); }
.prog-card-flag { flex:none; line-height:0; margin:0; }
.prog-card-flag .flag-icon { width:34px; height:auto; border-radius:3px; box-shadow:0 1px 3px rgba(0,0,0,.18); display:block; }
.prog-card-head h3 { font-size:1.08rem; line-height:1.25; color:var(--navy); margin:0; }
/* Homepage "Popular routes": the programme's hero photo under the flag + name.
   Rounded, soft shade at the foot for depth, slow zoom when the card is hovered. */
.prog-card-head:has(+ .prog-card-media) { border-bottom:0; padding-bottom:0; margin-bottom:.9rem; }
.prog-card-media { position:relative; margin:0 0 1.15rem; aspect-ratio:16/9; border-radius:12px; overflow:hidden; background:var(--border); box-shadow:0 6px 18px rgba(15,45,35,.12); }
.prog-card-media img { display:block; width:100%; height:100%; object-fit:cover; transform:scale(1.01); transition:transform .7s cubic-bezier(.2,.7,.2,1), filter .7s ease; filter:saturate(1.08); }
.prog-card-media::after { content:""; position:absolute; inset:0; background:linear-gradient(180deg, rgba(0,0,0,0) 55%, rgba(10,25,20,.28) 100%); pointer-events:none; }
.prog-card:hover .prog-card-media img { transform:scale(1.07); filter:saturate(1.18); }
@media (prefers-reduced-motion: reduce) { .prog-card-media img { transition:none; } .prog-card:hover .prog-card-media img { transform:scale(1.01); } }

.prog-card-price { margin-bottom:1rem; }
.prog-card-price span { display:block; font-size:.7225rem; text-transform:uppercase; letter-spacing:.1em; color:var(--muted); margin-bottom:.15rem; }
.prog-card-price strong { font-family:var(--sans); font-size:1.45rem; font-weight:700; color:var(--accent-dark); line-height:1.1; }
.prog-card-metaline { font-size:.8425rem; color:var(--muted); margin:-.6rem 0 1rem; }
.prog-card-desc { font-size:16px; line-height:1.55; color:var(--muted); margin:-.55rem 0 1.1rem; }

.prog-card-benefits { list-style:none; margin:0 0 1.25rem; padding:0; }
.prog-card-benefits li { position:relative; padding-left:1.5rem; font-size:.9225rem; line-height:1.45; color:var(--text); margin-bottom:.55rem; }
.prog-card-benefits li:last-child { margin-bottom:0; }
.prog-card-benefits li::before {
  content:""; position:absolute; left:0; top:.32em; width:.85rem; height:.85rem;
  border-radius:50%; background:var(--gl, #eef3f1); background:rgba(58,118,101,.12);
}
.prog-card-benefits li::after { content:""; position:absolute; left:.28rem; top:.5em; width:.28rem; height:.5rem; border:solid var(--accent); border-width:0 2px 2px 0; transform:rotate(45deg); }

.prog-card-link { margin-top:auto; font-size:.8625rem; font-weight:700; letter-spacing:.03em; text-transform:uppercase; color:var(--accent); display:inline-flex; align-items:center; gap:.4rem; }
.prog-card-link::after { content:"→"; transition:transform .25s ease; }
.prog-card:hover .prog-card-link::after { transform:translateX(4px); }

/* ---------- "As seen in" media logos (centered, static) ---------- */
.media-logos { padding:2.4rem 0; border-top:1px solid var(--border); border-bottom:1px solid var(--border); background:#fff; }
.media-logos-eyebrow { text-align:center; text-transform:uppercase; letter-spacing:.14em; font-size:.7825rem; color:var(--gold-dark); margin:0 0 1.4rem; }
.logo-group { display:flex; flex-wrap:wrap; justify-content:center; align-items:center; gap:1.6rem 3rem; max-width:1190px; margin:0 auto; padding:0 1.25rem; }
.logo-group a { display:flex; align-items:center; }
.logo-group img { height:30px; width:auto; max-width:140px; object-fit:contain; }

/* Forms & centered CTAs stay readable within the 1190px container */
.form-card { max-width: 720px; margin-left: auto; margin-right: auto; }

/* Homepage services richer cards + grouped headings */
.section-intro { color: var(--muted); max-width: 62ch; margin: 0.5rem 0 0; font-size: 1.02rem; }
.services-group-title { font-size: 0.8625rem; text-transform: uppercase; letter-spacing: .12em; color: var(--gold-dark); font-weight: 700; margin: 2.6rem 0 1.2rem; padding-bottom: .6rem; border-bottom: 1px solid var(--border); }
.card h3 { font-size: 1.15rem; margin: 0 0 .5rem; color: var(--navy); }
.card h3 a { color: inherit; text-decoration: none; }
.card h3 a:hover { color: var(--accent); }
.card p { color: var(--muted); font-size: .9825rem; line-height: 1.6; margin: 0 0 .9rem; }
.card { display: flex; flex-direction: column; }
.card .card-link { margin-top: auto; }

/* Programme detail sectioned body (DACH-style alternating sections) */
/* Programme content spans the full 1190px container, left-justified. */
.prog-section-title { font-size: 1.7rem; margin: 0 0 1.3rem; max-width: none; }
.prog-body { max-width: none; margin: 0; }
.prog-body > :first-child { margin-top: 0; }

/* Section + "Request the factsheet" two-column layout (form pinned right on
   desktop, stacks below on mobile). Inside the grid the body fills its column. */
.prog-split .prog-body { max-width: none; margin: 0; }
@media (min-width: 900px) {
  .prog-split { display: grid; grid-template-columns: minmax(0,1fr) 320px; gap: 2.75rem; align-items: start; }
}
/* Overview + YouTube video two-column layout. The video column is a little
   wider than the factsheet form so the player stays watchable. Rendered only
   when the programme has a video; otherwise the Overview stays full-width. */
@media (min-width: 900px) {
  .prog-split--video { grid-template-columns: minmax(0,1fr) 460px; gap: 2.5rem; }
}
/* Separated from the Overview by a rule: vertical beside it on desktop,
   horizontal above it once the columns stack. */
.prog-video { margin-top: 2rem; padding-top: 1.9rem; border-top: 1px solid var(--border); }
@media (min-width: 900px) {
  .prog-video { margin-top: 0; padding-top: 0; border-top: 0; border-left: 1px solid var(--border); padding-left: 2.25rem; }
}
.prog-video-inner { position: sticky; top: 96px; }
.prog-video-title { font-size: 1.05rem; line-height: 1.45; font-weight: 600; color: var(--navy-dark, #2d4541); margin: 0 0 .9rem; }
.prog-video-frame { position: relative; width: 100%; padding-top: 56.25%; background: var(--navy, #2d4541); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: 0 10px 28px rgba(45,69,65,.10); }
.prog-video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }

.prog-factsheet { margin-top: 2rem; }
@media (min-width: 900px) { .prog-factsheet { margin-top: 0; } }
.prog-factsheet-inner { position: sticky; top: 96px; background: #fff; border: 1px solid var(--border); border-top: 3px solid var(--accent); border-radius: var(--radius); padding: 1.5rem 1.4rem 1.55rem; }
.prog-factsheet-title { font-family: var(--sans); font-size: 1.2rem; color: var(--navy); margin: 0 0 .4rem; }
.prog-factsheet-note { font-size: .9225rem; line-height: 1.5; color: var(--muted); margin: 0 0 1.1rem; }
.prog-factsheet .form { gap: .85rem; }
.prog-factsheet .btn { width: 100%; justify-content: center; }

/* "Handled by" lawyer card under the factsheet CTA (E-E-A-T). Hidden entirely
   when no adviser is set on the programme. */
.prog-adviser { margin-top: 1.35rem; padding-top: 1.15rem; border-top: 1px solid var(--border); }
.prog-adviser__label { display: block; font-size: .7425rem; text-transform: uppercase; letter-spacing: .14em; color: var(--gold-dark); font-weight: 700; margin-bottom: .7rem; }
.prog-adviser__link { display: flex; flex-direction: row-reverse; align-items: center; gap: .9rem; text-decoration: none; }
.prog-adviser__photo { flex: 0 0 auto; width: 92px; height: 92px; object-fit: cover; display: block; box-shadow: 0 2px 8px rgba(63,92,87,.18); }
.prog-adviser__meta { flex: 1 1 auto; min-width: 0; display: block; }
.prog-adviser__name { display: block; font-family: var(--sans); font-size: 1rem; font-weight: 700; color: var(--navy); line-height: 1.3; }
.prog-adviser__role { display: block; font-size: .8625rem; line-height: 1.4; color: var(--muted); margin-top: .12rem; }
.prog-adviser__cta { display: block; font-size: .8425rem; font-weight: 700; letter-spacing: .02em; color: var(--accent); margin-top: .35rem; }
.prog-adviser__link:hover .prog-adviser__name { color: var(--accent); }
.prog-adviser__link:hover .prog-adviser__cta { color: var(--accent-dark); text-decoration: underline; }

/* White fields + green borders on both program-page forms (factsheet + bottom
   inquiry). Scoped so other site forms are unaffected. */
.prog-factsheet .form input,
.prog-factsheet .form select,
#inquiry .form input,
#inquiry .form select,
#inquiry .form textarea { border-color: var(--accent); background: #fff; }


/* About team grid by group */
.team-group-title { font-size:.8625rem; text-transform:uppercase; letter-spacing:.12em; color:var(--gold-dark); font-weight:700; margin:2.6rem 0 1.2rem; padding-bottom:.6rem; border-bottom:1px solid var(--border); }
.team-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(165px,1fr)); gap:1.5rem; }
/* Associates / HQ / Global Team: fixed 5 columns (6 made images too small) */
.team-grid--5 { grid-template-columns:repeat(5,1fr); }
/* Global / Regional Partners: few people → larger cards, capped at 4 across */
.team-grid--lg { grid-template-columns:repeat(3,1fr); gap:1.75rem; max-width:780px; }
@media (max-width:900px){ .team-grid--5 { grid-template-columns:repeat(3,1fr); } .team-grid--lg { grid-template-columns:repeat(2,1fr); } }
@media (max-width:560px){ .team-grid--5, .team-grid--lg { grid-template-columns:repeat(2,1fr); } }
.team-card { display:block; text-decoration:none; }
.team-card-img { display:block; width:100%; aspect-ratio:1; object-fit:cover; object-position:center top; border-radius:var(--radius); background:var(--light); margin-bottom:.7rem; }
.team-card-name { display:block; font-weight:600; color:var(--navy); font-size:1.0125rem; line-height:1.3; padding:0px 10px 10px 10px; }
.team-card-role { display:block; color:var(--muted); font-size:.8825rem; margin-top:.15rem; padding:0px 10px 10px 10px; }
.team-card:hover .team-card-name { color:var(--accent); }

/* Why HLG reason cards */
.why-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:1.5rem; margin-top:2.2rem; }
.why-card { background:#fff; border:1px solid var(--border); border-left:3px solid var(--accent); border-radius:var(--radius); padding:1.8rem; position:relative; }
.why-card-num { font-family:var(--sans); font-size:1.1rem; color:var(--gold-light); font-weight:700; }
.why-card h3 { font-size:1.25rem; color:var(--navy); margin:.4rem 0 .6rem; }
.why-card-text { color:var(--muted); font-size:1.0125rem; line-height:1.7; }
.why-card-text p { margin:0; }
@media (max-width:680px){ .why-grid { grid-template-columns:1fr; } }

/* Image gallery (award badges, multi-image rows) */
.page-gallery { display:flex; flex-wrap:wrap; gap:1.5rem; align-items:center; justify-content:center; margin:1.6rem 0; }
.page-gallery figure.page-image { margin:0; max-width:none; }
.page-gallery img { max-height:160px; width:auto; max-width:230px; object-fit:contain; border-radius:4px; }
/* Lone content images shouldn't blow out full-width either */
.prog-body > figure.page-image, .article-body > figure.page-image { max-width:560px; margin-left:auto; margin-right:auto; }

/* Keep the green profile CTA button text white on hover (global a:hover was
   turning it gold-dark). Navy-section .btn--primary inverts to a white
   background on hover, so it is deliberately NOT forced white here. */
.hlgp-cta-btn:hover, .hlgp-cta-btn:focus { color:#fff !important; }

/* Why HLG bespoke layout */
.why-row { display:grid; grid-template-columns:300px 1fr; gap:3rem; align-items:start; }
.why-row-aside { position:sticky; top:90px; }
.why-num { font-family:var(--sans); font-size:2.6rem; font-weight:700; color:var(--gold-light); line-height:1; display:block; margin-bottom:.5rem; }
.why-row-aside h2 { font-size:1.7rem; margin:0; }
.why-row-body { font-size:1.02rem; }
.why-row-body > :first-child { margin-top:0; }
.why-row-body ul { padding-left:1.2rem; }
.why-row-body ul ul { padding-left:1.1rem; }
.why-quote { max-width:880px; margin:0 auto; text-align:center; }
.why-quote blockquote { font-family:var(--sans); font-size:clamp(1.3rem,2.6vw,1.9rem); line-height:1.45; color:#fff; margin:0 0 1.4rem; font-style:italic; }
.why-quote figcaption { color:var(--gold-light); }
.why-quote figcaption strong { display:block; font-size:1.05rem; color:#fff; }
.why-quote figcaption span { font-size:.9625rem; opacity:.85; }
@media (max-width:820px){ .why-row { grid-template-columns:1fr; gap:1rem; } .why-row-aside { position:static; } }

/* About team grid column counts per group (override) */
.team-grid--5 { grid-template-columns:repeat(5,1fr); }
.team-grid--lg { grid-template-columns:repeat(3,1fr); gap:1.75rem; max-width:780px; }
@media (max-width:900px){ .team-grid--5 { grid-template-columns:repeat(3,1fr); } .team-grid--lg { grid-template-columns:repeat(2,1fr); } }
@media (max-width:560px){ .team-grid--5, .team-grid--lg { grid-template-columns:repeat(2,1fr); } }

/* ---------- Header top bar (geolocated nearest office) ---------- */
/* The top strip. Both this and the nav below it are fixed and always visible;
   neither moves on scroll. */
/* Fixed (not sticky) so it's ALWAYS visible sticky breaks under the body's
   overflow-x:hidden. Body gets var(--chrome-h) top padding so nothing hides under it. */
/* The bar's HTML sits after the footer (includes/footer.php) so it follows the
   H1 in the source; position:fixed pins it to the top of the screen anyway.
   Kept small and quiet: muted label, plain "Call now", phone stays white. */
.header-topbar { position:fixed; top:0; left:0; right:0; z-index:101; background:var(--navy-dark); color:#fff; font-size:.72rem; height:var(--topbar-h); border-bottom:1px solid rgba(255,255,255,0.06); }
body { padding-top: var(--chrome-h); }
.header-topbar-inner { max-width:var(--container); margin:0 auto; height:100%; padding:0 1.25rem; display:flex; align-items:center; justify-content:flex-end; }
.hlg-office--bar { display:flex; align-items:center; gap:.9rem; margin:0; line-height:1.2; min-width:0; }
.hlg-office--bar .hlg-office-flag { width:14px; border-radius:2px; opacity:.85; }
.hlg-office-loc { display:inline-flex; align-items:center; gap:.4rem; color:rgba(255,255,255,0.6); min-width:0; }
.hlg-office-loc-text { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; min-width:0; }
.hlg-office-call { display:inline-flex; align-items:center; gap:.35rem; color:#fff; font-weight:600; flex:none; white-space:nowrap; }
.hlg-office-call:hover { color:var(--gold-light); }
.hlg-office-call-label { color:rgba(255,255,255,0.6); font-weight:400; font-size:.66rem; text-transform:uppercase; letter-spacing:.06em; }
@media (max-width:600px) {
  .header-topbar-inner { padding:0 1rem; justify-content:center; }
  .hlg-office--bar { gap:.6rem; width:100%; justify-content:center; }
  .hlg-office-call { font-size:.74rem; }
}


/* ---------- Citizenship by Ancestry hub ---------- */
.cba-test-grid { display:grid; grid-template-columns:repeat(5,1fr); gap:1.1rem; margin-top:2rem; }
@media (max-width:900px){ .cba-test-grid { grid-template-columns:repeat(3,1fr); } }
@media (max-width:560px){ .cba-test-grid { grid-template-columns:repeat(2,1fr); } }
.cba-test-card { display:flex; flex-direction:column; align-items:center; text-align:center; gap:.6rem; padding:1.5rem 1rem 1.2rem; background:#fff; border:1px solid var(--border); border-radius:var(--radius-lg); text-decoration:none; transition:transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.cba-test-card:hover { transform:translateY(-4px); box-shadow:var(--shadow); border-color:var(--border-strong); }
.cba-test-flag { width:80px; height:auto; border-radius:4px; box-shadow:0 1px 4px rgba(0,0,0,.2); }
.cba-test-name { font-family:var(--sans); font-size:1.02rem; color:var(--navy); font-weight:600; }
.cba-test-cta { font-size:.8025rem; text-transform:uppercase; letter-spacing:.05em; color:var(--accent); font-weight:700; margin-top:auto; }
.cba-test-card--other { justify-content:center; border-style:dashed; }
.cba-test-card--other .cba-test-name { color:var(--muted); }

/* Ancestry content blocks: when a custom text colour is set (data-color + inline
   color on the wrapper), force every element inside to inherit it so the whole
   block follows the chosen colour, not the default heading/link colours. */
.ancestry-block[data-color] h1, .ancestry-block[data-color] h2, .ancestry-block[data-color] h3,
.ancestry-block[data-color] h4, .ancestry-block[data-color] h5, .ancestry-block[data-color] h6,
.ancestry-block[data-color] p,  .ancestry-block[data-color] li, .ancestry-block[data-color] a,
.ancestry-block[data-color] strong, .ancestry-block[data-color] em, .ancestry-block[data-color] blockquote,
.ancestry-block[data-color] span, .ancestry-block[data-color] td, .ancestry-block[data-color] th { color: inherit; }

.cba-two-col { display:grid; grid-template-columns:1fr 1fr; gap:3rem; }
@media (max-width:760px){ .cba-two-col { grid-template-columns:1fr; gap:2rem; } }

.cba-countries { display:grid; grid-template-columns:repeat(auto-fit,minmax(180px,1fr)); gap:2rem; margin-top:2rem; }
.cba-country-col h3 { font-size:.8625rem; text-transform:uppercase; letter-spacing:.1em; color:var(--gold-dark); padding-bottom:.5rem; margin-bottom:.8rem; border-bottom:1px solid var(--border); }
.cba-country-col ul { list-style:none; margin:0; padding:0; columns:1; }
.cba-country-col li { font-size:.9825rem; padding:.18rem 0; color:var(--text); }
.cba-country-col li a { color:var(--accent); font-weight:600; }
.cba-country-test { font-size:.7425rem; text-transform:uppercase; letter-spacing:.04em; background:rgba(58,118,101,.12); color:var(--accent-dark); padding:.05rem .35rem; border-radius:3px; margin-left:.2rem; }

/* ---------- Contact page ---------- */
.contact-layout { display:grid; grid-template-columns:1fr 320px; gap:3.5rem; align-items:start; }
@media (max-width:860px){ .contact-layout { grid-template-columns:1fr; gap:2.5rem; } }
/* Borderless, full-width form (no box/shadow/radius) */
.contact-form { width:100%; }
.contact-form > h2 { font-size:1.7rem; margin-bottom:1.75rem; }
.contact-form .form { gap:1.5rem; }
.contact-form .btn { min-width:240px; }
/* grouped form subheadings (e.g. "About you" / "Your article") */
.form-subhead { font-size:.8425rem; text-transform:uppercase; letter-spacing:.12em; color:var(--gold-dark); font-weight:700; margin:1.5rem 0 -.25rem; padding-bottom:.6rem; border-bottom:1px solid var(--line, rgba(0,0,0,.1)); }
.form-subhead:first-of-type { margin-top:0; }
/* inline "(optional)" hint inside a label */
.form .opt, label .opt { color:var(--muted); font-weight:400; text-transform:none; letter-spacing:0; }
.contact-aside { display:flex; flex-direction:column; gap:1.5rem; }
.office-map-card { background:var(--paper); border:1px solid var(--border); border-radius:var(--radius-lg); overflow:hidden; box-shadow:0 4px 16px rgba(45,69,65,.06); }
.office-map { line-height:0; margin-top:10px; }
.office-map iframe { display:block; width:100%; height:300px; border:0; }
.office-map-info { display:block; padding:1.2rem 1.4rem; }
.office-map-info .hlg-office-eyebrow { color:var(--accent); margin:0 0 .35rem; font-size:.7825rem; letter-spacing:.08em; text-transform:uppercase; font-weight:700; }
.office-map-info .hlg-office-name { display:block; font-family:var(--sans); font-size:1.2rem; color:var(--navy); }
.office-map-info .hlg-office-addr { display:block; margin-top:.35rem; color:var(--muted); font-size:.9825rem; line-height:1.5; }
.office-map-info .hlg-office-tel { display:inline-block; margin-top:.5rem; color:var(--accent); font-weight:600; }
.office-map-info .hlg-office-mail { display:block; margin-top:.25rem; color:var(--muted); font-size:.9625rem; }
.office-map-info .hlg-office-map-link { display:inline-block; margin-top:.7rem; color:var(--accent); font-weight:700; font-size:.9125rem; text-decoration:none; }
.office-map-info .hlg-office-map-link:hover { color:var(--accent-dark); text-decoration:underline; }
.contact-info-card { background:var(--navy); color:#fff; border-radius:var(--radius-lg); padding:1.6rem 1.5rem; }
.contact-info-card h3 { color:#fff; font-size:1.15rem; margin:0 0 1rem; }
.contact-info-list { list-style:none; margin:0; padding:0; }
.contact-info-list li { padding:.6rem 0; border-bottom:1px solid rgba(255,255,255,.12); font-size:.9825rem; }
.contact-info-list li:last-child { border-bottom:none; }
.contact-info-label { display:block; font-size:.7425rem; text-transform:uppercase; letter-spacing:.08em; color:var(--gold-light); margin-bottom:.15rem; }
.contact-info-list a { color:#fff; font-weight:600; }
.contact-info-list a:hover { color:var(--gold-light); }

.offices-region { margin-top:2.5rem; }
.offices-region-title { font-size:.8625rem; text-transform:uppercase; letter-spacing:.1em; color:var(--gold-dark); padding-bottom:.6rem; margin-bottom:1.2rem; border-bottom:1px solid var(--border); }
.offices-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(260px,1fr)); gap:1.2rem; }
.office-card { background:#fff; border:1px solid var(--border); border-radius:var(--radius); padding:1.3rem 1.4rem; transition:box-shadow .2s ease, transform .2s ease; }
.office-card:hover { box-shadow:var(--shadow-sm); transform:translateY(-2px); }
.office-card-head { display:flex; align-items:center; gap:.6rem; margin-bottom:.7rem; }
.office-card-flag { width:24px; height:auto; border-radius:2px; box-shadow:0 1px 3px rgba(0,0,0,.18); flex:none; }
.office-card-head strong { font-family:var(--sans); font-size:1.05rem; color:var(--navy); }
.office-card-addr { font-size:.9225rem; color:var(--muted); line-height:1.5; margin:0 0 .8rem; }
.office-card-contact { margin:0; display:flex; flex-direction:column; gap:.2rem; }
.office-card-contact a { font-size:.9225rem; color:var(--accent); font-weight:600; word-break:break-word; }

/* Wider container only used where explicitly requested (e.g. offices directory) */
.container--wide { max-width: 1390px; }

/* Send button icon spacing + subtle slide on hover */
.btn--send { display:inline-flex; align-items:center; gap:.6rem; }
.btn--send svg { transition:transform .2s ease; }
.btn--send:hover svg { transform:translateX(3px); }

/* Accreditations distinct tinted band so it stands out */
.section--accred { background:linear-gradient(180deg, #eef3f1 0%, #e7eeec 100%); border-top:1px solid var(--border); border-bottom:1px solid var(--border); }
.section--accred .cred-item a { color:var(--navy-dark); }
.section--accred .cred-item a:hover { color:var(--accent-dark); }

/* Newsletter band */
.newsletter-section { background:var(--navy); }
.newsletter { display:grid; grid-template-columns:1fr 1fr; gap:3rem; align-items:center; }
@media (max-width:820px){ .newsletter { grid-template-columns:1fr; gap:1.75rem; } }
.newsletter-text .eyebrow { color:var(--gold-light); }
.newsletter-text h2 { color:#fff; margin:0 0 .6rem; }
.newsletter-text p { color:rgba(255,255,255,.8); margin:0; max-width:46ch; }
.newsletter-form { }
.newsletter-fields { display:grid; grid-template-columns:1fr 1fr; gap:1rem; margin-bottom:1rem; }
@media (max-width:480px){ .newsletter-fields { grid-template-columns:1fr; } }
.newsletter-form label { display:block; font-size:.7625rem; font-weight:700; text-transform:uppercase; letter-spacing:.08em; color:var(--gold-light); margin-bottom:.4rem; }
.newsletter-form input { width:100%; padding:.85rem 1rem; font:inherit; font-size:1.0125rem; background:rgba(255,255,255,.1); color:#fff; border:1px solid rgba(255,255,255,.22); border-radius:var(--radius); transition:border-color .2s, background .2s; }
.newsletter-form input::placeholder { color:rgba(255,255,255,.5); }
.newsletter-form input:focus { outline:none; background:rgba(255,255,255,.16); border-color:var(--gold-light); }
.newsletter-note { margin:.9rem 0 0; font-size:.9425rem; color:#fff; }
.newsletter-note.is-err { color:#ffd2d2; }
.newsletter-interest { margin-bottom:1rem; }
.newsletter-form select { width:100%; padding:.85rem 1rem; font:inherit; font-size:1.0125rem; background:rgba(255,255,255,.1); color:#fff; border:1px solid rgba(255,255,255,.22); border-radius:var(--radius); transition:border-color .2s, background .2s; }
.newsletter-form select:focus { outline:none; background:rgba(255,255,255,.16); border-color:var(--gold-light); }
.newsletter-form select option { color:#1a2a26; background:#fff; }
.newsletter-optional { font-weight:400; text-transform:none; letter-spacing:0; color:rgba(255,255,255,.55); }
.newsletter-consent { margin:.8rem 0 0; font-size:.8625rem; color:rgba(255,255,255,.6); }
.newsletter-consent a { color:#fff; text-decoration:underline; }
/* Light variant (white background, dark readable text) for content pages. */
.newsletter-section--light { background:#fff; border-top:1px solid var(--border); border-bottom:1px solid var(--border); }
.newsletter-section--light .newsletter-text .eyebrow { color:var(--accent); }
.newsletter-section--light .newsletter-text h2 { color:var(--navy); }
.newsletter-section--light .newsletter-text p { color:var(--muted); }
.newsletter-section--light .newsletter-form label { color:var(--navy); }
.newsletter-section--light .newsletter-form input,
.newsletter-section--light .newsletter-form select { background:#fff; color:var(--text); border:1px solid var(--border-strong); }
.newsletter-section--light .newsletter-form input::placeholder { color:var(--muted); }
.newsletter-section--light .newsletter-form input:focus,
.newsletter-section--light .newsletter-form select:focus { background:#fff; border-color:var(--accent); }
.newsletter-section--light .newsletter-form select option { color:var(--text); background:#fff; }
.newsletter-section--light .newsletter-optional { color:var(--muted); }
.newsletter-section--light .newsletter-consent { color:var(--muted); }
.newsletter-section--light .newsletter-consent a { color:var(--navy); }
.newsletter-section--light .newsletter-note { color:var(--text); }

/* ---------- Careers ---------- */
.jobs-list { display:flex; flex-direction:column; gap:1rem; }
.job-card { display:flex; align-items:center; justify-content:space-between; gap:1.5rem; background:#fff; border:1px solid var(--border); border-left:3px solid var(--accent); border-radius:var(--radius-lg); padding:1.5rem 1.75rem; transition:box-shadow .2s ease, transform .2s ease; }
.job-card:hover { box-shadow:var(--shadow-sm); transform:translateY(-2px); }
.job-card-main { min-width:0; }
.job-card-main h3 { font-size:1.2rem; color:var(--navy); margin:0 0 .5rem; }
.job-card-meta { display:flex; flex-wrap:wrap; gap:.5rem; margin-bottom:.6rem; }
.job-tag { font-size:.8025rem; font-weight:600; text-transform:uppercase; letter-spacing:.04em; color:var(--accent-dark); background:rgba(58,118,101,.1); padding:.2rem .6rem; border-radius:3px; }
.job-tag--soft { color:var(--muted); background:var(--light); }
.job-card-summary { font-size:.9825rem; color:var(--muted); line-height:1.6; margin:0; max-width:62ch; }
.job-card-action { flex:none; }
@media (max-width:640px){ .job-card { flex-direction:column; align-items:flex-start; gap:1rem; } .job-card-action { width:100%; } .job-card-action .btn { width:100%; } }
/* careers accordion (full job descriptions) */
.jobs-accordion { display:flex; flex-direction:column; gap:.9rem; }
.job-item { background:#fff; border:1px solid var(--border); border-left:3px solid var(--accent); border-radius:var(--radius-lg); overflow:hidden; }
.job-item-head { display:flex; align-items:center; gap:1rem; padding:1.25rem 1.6rem; cursor:pointer; list-style:none; }
.job-item-head::-webkit-details-marker { display:none; }
.job-item-title { font-family:var(--sans); font-size:1.18rem; color:var(--navy); font-weight:700; flex:1; min-width:0; }
.job-item-chevron { flex:none; width:11px; height:11px; border-right:2px solid var(--accent-dark); border-bottom:2px solid var(--accent-dark); transform:rotate(45deg); transition:transform .2s ease; }
.job-item[open] .job-item-chevron { transform:rotate(-135deg); }
.job-item-body { padding:0 1.6rem 1.6rem; }
.job-item-body .article-body { font-size:1.0125rem; }
.job-item-body .article-body h4 { font-size:1.05rem; color:var(--navy); margin:.4rem 0 .8rem; }
.job-item-body .article-body p { margin:0 0 .9rem; }
.job-item-body .article-body ul { margin:0 0 1rem; padding-left:1.2rem; }
.job-item-body .article-body li { margin-bottom:.4rem; line-height:1.6; }
.job-item-actions { display:flex; flex-wrap:wrap; align-items:center; gap:.75rem; margin-top:1.25rem; padding-top:1.25rem; border-top:1px solid var(--border); }
.job-item-or { font-size:.9125rem; color:var(--muted); }
@media (max-width:640px){ .job-item-head { padding:1.1rem 1.2rem; } .job-item-body { padding:0 1.2rem 1.3rem; } .job-item-actions .btn { width:100%; } }
/* File input */
.form input[type="file"] { width:100%; padding:.7rem 1rem; font:inherit; font-size:.9625rem; background:#f7f9f8; border:1px solid var(--border); border-radius:var(--radius); color:var(--muted); cursor:pointer; }
.form input[type="file"]::file-selector-button { font:inherit; font-size:.8825rem; font-weight:600; margin-right:.8rem; padding:.45rem .9rem; border:0; border-radius:var(--radius-sm); background:var(--navy); color:#fff; cursor:pointer; }

/* Admin dashboard styles now live in css/admin.css (loaded only by /admin/). */

/* ---------- Case studies ---------- */
/* Hub + related cards: a dedicated case-study card (flag + country tag + summary). */
.cs-grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(300px, 1fr)); gap:1.5rem; }
.cs-card {
  display:flex; flex-direction:column; position:relative; overflow:hidden;
  background:#fff; border:1px solid var(--border); border-radius:var(--radius-lg);
  padding:1.5rem; text-decoration:none;
  box-shadow:0 1px 2px rgba(63,92,87,0.04);
  transition:box-shadow .25s ease, transform .25s ease, border-color .25s ease;
}
.cs-card::before { content:""; position:absolute; top:0; left:0; right:0; height:3px; background:var(--accent); transform:scaleX(0); transform-origin:left; transition:transform .3s ease; }
.cs-card:hover { transform:translateY(-4px); box-shadow:var(--shadow); border-color:var(--border-strong); }
.cs-card:hover::before { transform:scaleX(1); }

.cs-card-top { display:flex; align-items:center; gap:.65rem; margin-bottom:1.1rem; }
.cs-card-flag { flex:none; line-height:0; }
.cs-card-flag .flag-icon { width:30px; height:auto; border-radius:3px; box-shadow:0 1px 3px rgba(0,0,0,.18); display:block; }
.cs-card-place { display:flex; flex-direction:column; min-width:0; font-weight:700; color:var(--navy); font-size:1.0125rem; line-height:1.2; }
.cs-card-prog { font-weight:500; color:var(--muted); font-size:.7425rem; text-transform:uppercase; letter-spacing:.07em; margin-top:.2rem; }
.cs-card-badge { margin-left:auto; align-self:flex-start; background:var(--gold-light); color:var(--navy-dark); font-size:.6625rem; font-weight:700; text-transform:uppercase; letter-spacing:.1em; padding:.2rem .5rem; border-radius:999px; }

.cs-card-title { font-family:var(--sans); font-size:1.1rem; line-height:1.3; color:var(--navy); margin:0 0 .6rem; }
.cs-card-desc { font-size:.9375rem; line-height:1.55; color:var(--muted); margin:0 0 1.1rem; }
.cs-card-meta { margin-top:auto; }
.cs-card-chip { display:inline-block; }
.cs-card-chip em { display:block; font-style:normal; font-size:.6825rem; text-transform:uppercase; letter-spacing:.08em; color:var(--muted); margin-bottom:.1rem; }
.cs-card-chip strong { font-family:var(--sans); font-size:1.15rem; font-weight:700; color:var(--accent-dark); }
.cs-card-link { margin-top:1.1rem; font-size:.8225rem; font-weight:700; letter-spacing:.04em; text-transform:uppercase; color:var(--accent); display:inline-flex; align-items:center; gap:.4rem; }
.cs-card-link::after { content:"→"; transition:transform .25s ease; }
.cs-card:hover .cs-card-link::after { transform:translateX(4px); }

.cs-hero-tag { display:inline-flex !important; align-items:center; gap:.5rem; }
.cs-hero-tag .flag-icon { width:24px; height:auto; border-radius:2px; }
.cs-facts { display:grid; gap:1rem; grid-template-columns:repeat(auto-fit, minmax(170px, 1fr)); }
.cs-fact { background:#fff; border:1px solid var(--border); border-top:3px solid var(--accent); border-radius:var(--radius); padding:1.1rem 1.2rem; }
.cs-fact .l { display:block; font-size:.7625rem; text-transform:uppercase; letter-spacing:.08em; color:var(--muted); }
.cs-fact .v { display:block; font-family:var(--sans); font-size:1.1rem; color:var(--navy); font-weight:600; margin-top:.3rem; line-height:1.3; }
.cs-resolved { margin-top:1.75rem; }
.cs-issues { list-style:none; margin:1rem 0 0; padding:0; display:grid; gap:.55rem; grid-template-columns:repeat(auto-fit, minmax(240px, 1fr)); }
.cs-issues li { position:relative; padding-left:1.7rem; color:var(--text); }
.cs-issues li::before { content:'✓'; position:absolute; left:0; top:0; color:var(--accent); font-weight:700; }
.cs-body { font-size:1.05rem; }

/* Dedicated local office pages (/contact/<key>/) */
.office-layout { display:grid; grid-template-columns:1fr 340px; gap:3.5rem; align-items:start; }
@media (max-width:900px){ .office-layout { grid-template-columns:1fr; gap:2.5rem; } }
.office-main { min-width:0; }
.office-aside { position:sticky; top:96px; }
@media (max-width:900px){ .office-aside { position:static; } }
.office-prog-links { display:flex; flex-wrap:wrap; gap:.7rem; margin:.5rem 0 1rem; }
.office-enquiry { margin-top:3rem; padding-top:2.5rem; border-top:1px solid var(--border); scroll-margin-top: calc(var(--chrome-h) + 12px); }
.office-enquiry > h2 { font-size:1.6rem; margin-bottom:.4rem; }
.office-card--link { display:flex; flex-direction:column; text-decoration:none; }
.office-card--link .prog-card-link { margin-top:auto; padding-top:.6rem; color:var(--accent); font-weight:700; font-size:.9425rem; }
.office-card-link { display:inline-block; margin-top:.8rem; color:var(--accent); font-weight:700; font-size:.9125rem; text-decoration:none; }
.office-card-link:hover { color:var(--accent-dark); text-decoration:underline; }

/* Newsletter download list (program pages, rendered under the FAQ) */
.newsletter-list { list-style:none; margin:1.6rem 0 0; padding:0; display:grid; gap:.7rem; max-width:760px; }
.newsletter-item { margin:0; }
.newsletter-link { display:flex; align-items:center; gap:1rem; padding:1rem 1.2rem; background:#fff; border:1px solid var(--border-strong,#d8e0dd); border-radius:12px; text-decoration:none; color:var(--navy,#2d4541); transition:border-color .15s, box-shadow .15s, transform .15s; }
.newsletter-link:hover { border-color:var(--accent,#3f5c57); box-shadow:0 6px 18px rgba(45,69,65,.10); transform:translateY(-1px); }
.newsletter-ico { flex:0 0 auto; font-weight:800; font-size:.7625rem; letter-spacing:.04em; color:#fff; background:#c0392b; padding:.45rem .55rem; border-radius:6px; }
.newsletter-body { flex:1 1 auto; min-width:0; display:flex; flex-direction:column; }
.newsletter-title { font-weight:600; color:var(--navy-dark,#243a36); overflow-wrap:anywhere; }
.newsletter-sub { font-size:.9125rem; color:var(--muted); margin-top:.15rem; }
.newsletter-dl { flex:0 0 auto; font-weight:600; font-size:.9625rem; color:var(--accent,#3f5c57); white-space:nowrap; }
@media(max-width:600px){ .newsletter-dl{ display:none; } }

/* Accessible hidden text (table captions etc.) */
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }

/* CBI/RBI comparison table (server-rendered, no JS; cards on mobile) */
.cmp-note { color:var(--muted); max-width:70ch; margin:.2rem 0 1.2rem; font-size:1.0125rem; }
.cmp-table-wrap { margin:0 0 1.5rem; }
.cmp-table { width:100%; border-collapse:collapse; font-size:1.0125rem; }
.cmp-table thead th { text-align:left; padding:.7rem .9rem; background:var(--light); color:var(--muted);
  font-size:.8025rem; text-transform:uppercase; letter-spacing:.05em; font-weight:700; border-bottom:1px solid var(--border-strong,#d8e0dd); }
.cmp-table th[scope=row], .cmp-table td { text-align:left; padding:.8rem .9rem; border-bottom:1px solid var(--border,#e3e8e6); vertical-align:middle; }
.cmp-table th[scope=row] { font-weight:600; }
.cmp-table th[scope=row] a { color:var(--navy-dark,#243a36); text-decoration:none; display:inline-flex; align-items:center; gap:.5rem; }
.cmp-table th[scope=row] a:hover { color:var(--accent); text-decoration:underline; }
.cmp-table th[scope=row] .flag-icon { width:1.5em; height:auto; flex:0 0 auto; border-radius:2px; }
.cmp-table td[data-label="Minimum investment"] { font-weight:600; color:var(--navy-dark,#243a36); white-space:nowrap; }
.cmp-table tbody tr:hover { background:var(--light); }
@media(max-width:640px){
  .cmp-table thead { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0,0,0,0); }
  .cmp-table, .cmp-table tbody, .cmp-table tr, .cmp-table th, .cmp-table td { display:block; width:100%; }
  .cmp-table tr { border:1px solid var(--border,#e3e8e6); border-radius:10px; padding:.7rem .9rem 1rem; margin-bottom:.8rem; }
  .cmp-table th[scope=row] { font-size:1.05rem; padding:0 0 .5rem; margin-bottom:.5rem; border-bottom:1px solid var(--border,#e3e8e6); }
  .cmp-table td { border:none; padding:.3rem 0; display:flex; justify-content:space-between; gap:1.2rem; }
  .cmp-table td::before { content:attr(data-label); font-weight:600; color:var(--muted); font-size:.8825rem; }
  .cmp-table td[data-label="Minimum investment"] { white-space:normal; text-align:right; }
}

/* ---------- "Contact me back" callback widget ---------- */
/* The button borrows the SHAPE of the Türkiye site's floating button (white pill,
   round icon, text that expands on hover, collapses to the icon on phones) — it
   opens this site's callback form, it is not a messaging link. The dialog has no
   visible field labels: the placeholder is the label, and every control carries an
   aria-label so screen readers and voice control still work. */

.cb-fab {
  position: fixed;
  right: 22px;
  bottom: 24px;
  z-index: 990;
  display: flex;
  align-items: center;
  gap: 0;
  padding: 8px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  cursor: pointer;
  font-family: var(--sans);
  text-align: left;
  box-shadow: 0 6px 22px rgba(15,45,35,0.16), 0 3px 14px rgba(58,118,101,0.22);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.cb-fab[hidden] { display: none; }
.cb-fab:hover { box-shadow: 0 12px 32px rgba(15,45,35,0.20), 0 6px 20px rgba(58,118,101,0.34); transform: translateY(-1px); }
/* WhatsApp variant (includes/callback.php render_whatsapp_fab): same button, WhatsApp green. */
a.cb-fab { text-decoration: none; }
.cb-fab--wa .cb-fab-ico { background: #25d366; }
.cb-fab:focus-visible { outline: 3px solid var(--accent-light); outline-offset: 3px; }

.cb-fab-ico {
  position: relative;
  flex: 0 0 auto;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
/* Two icons stacked in the same spot; one is always on its way in or out. */
.cb-fab-ico svg {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 26px;
  height: 26px;
  will-change: transform, opacity;
}
/* One 6s cycle: the handset holds, rises away, the envelope arrives from below,
   holds, and they swap back. Two keyframe sets rather than one with a negative
   delay, so the loop point is always invisible and never flashes. */
.cb-ico-phone { animation: cb-ico-out 6s ease-in-out infinite; }
.cb-ico-mail  { animation: cb-ico-in  6s ease-in-out infinite; }
/* Settle while it is being read or used. */
.cb-fab:hover .cb-ico-phone,
.cb-fab:hover .cb-ico-mail,
.cb-fab:focus-visible .cb-ico-phone,
.cb-fab:focus-visible .cb-ico-mail { animation-play-state: paused; }

@keyframes cb-ico-out {
  0%,  42%  { opacity: 1; transform: translateY(0)     scale(1);   }
  50%, 92%  { opacity: 0; transform: translateY(-125%) scale(0.7); }
  92.01%    { opacity: 0; transform: translateY(125%)  scale(0.7); }  /* reset below, unseen */
  100%      { opacity: 1; transform: translateY(0)     scale(1);   }
}
@keyframes cb-ico-in {
  0%,  42%  { opacity: 0; transform: translateY(125%)  scale(0.7); }
  50%, 92%  { opacity: 1; transform: translateY(0)     scale(1);   }
  100%      { opacity: 0; transform: translateY(-125%) scale(0.7); }
}

/* "An advisor is available" — the same reassurance the Türkiye button gives. */
.cb-fab-dot {
  position: absolute;
  top: 1px;
  right: 1px;
  z-index: 2;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #35c47a;
  border: 2.5px solid #fff;
}

/* Collapsed to nothing by default; opens on hover/focus, and once on arrival. */
.cb-fab-txt {
  display: flex;
  flex-direction: column;
  max-width: 0;
  padding: 0;
  overflow: hidden;
  white-space: nowrap;
  transition: max-width 0.32s ease, padding 0.32s ease;
}
.cb-fab:hover .cb-fab-txt,
.cb-fab:focus-visible .cb-fab-txt,
.cb-fab.is-open .cb-fab-txt { max-width: 280px; padding: 0 20px 0 13px; }
.cb-fab-txt strong { font-size: 1.0425rem; font-weight: 700; color: var(--navy-dark); line-height: 1.2; }
.cb-fab-txt small  { font-size: 0.8425rem; color: var(--muted); }

/* ---- Dialog ---- */
.cb-overlay {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(24,40,37,0.55);
  backdrop-filter: blur(3px);
  overflow-y: auto;
  opacity: 0;
  transition: opacity 220ms ease;
}
.cb-overlay[hidden] { display: none; }
.cb-overlay.is-open { opacity: 1; }

.cb-panel {
  position: relative;
  width: 100%;
  max-width: 560px;
  margin: auto;
  background: var(--paper);
  border-radius: 20px;
  box-shadow: 0 24px 70px rgba(15,45,35,0.30);
  padding: 1.75rem 2rem 1.5rem;
  transform: translateY(14px) scale(0.985);
  transition: transform 220ms ease;
}
.cb-overlay.is-open .cb-panel { transform: translateY(0) scale(1); }

.cb-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: var(--light);
  color: var(--muted);
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}
.cb-close svg { width: 14px; height: 14px; }
.cb-close:hover { background: var(--border); color: var(--text); }

.cb-title {
  font-family: var(--serif);
  font-size: 1.45rem;
  line-height: 1.25;
  color: var(--navy);
  margin: 0 0 0.35rem;
  padding-right: 2.5rem;
}
.cb-sub {
  margin: 0 0 1.1rem;
  color: var(--muted);
  font-size: 0.9625rem;
  line-height: 1.5;
}

/* Office closed (top-bar "Call now" tapped out of hours, see js/app.js):
   replaces the intro line with a calm note on when the office reopens. */
.cb-closed {
  margin: 0.2rem 0 1.1rem;
  padding: 0.8rem 1rem;
  border-radius: 11px;
  background: rgba(58,118,101,0.08);
}
.cb-closed[hidden] { display: none; }
.cb-closed-title { margin: 0 0 0.2rem; font-size: 0.9925rem; font-weight: 700; color: var(--navy); }
.cb-closed-text  { margin: 0; font-size: 0.9225rem; line-height: 1.5; color: var(--text); }

/* ---- Fields: placeholder-as-label, one consistent control ---- */
.cb-form input[type="text"],
.cb-form input[type="tel"],
.cb-form input[type="email"],
.cb-form select {
  width: 100%;
  height: 46px;
  padding: 0 0.95rem;
  margin-bottom: 0.6rem;
  border: 1px solid var(--border);
  border-radius: 11px;
  background-color: #fbfcfb;
  font-family: var(--sans);
  /* 16px is a hard MINIMUM, not a style choice: iOS Safari zooms the whole page
     in when a focused field is under 16px, which throws the layout off and is
     the fastest way to lose a mobile lead. Never drop this below 16px. */
  font-size: 16px;
  /* iOS clips select text when a line-height is inherited alongside a height. */
  line-height: normal;
  color: var(--text);
  transition: border-color var(--transition), box-shadow var(--transition), background-color var(--transition);
  appearance: none;
  -webkit-appearance: none;
  -webkit-text-size-adjust: 100%;
}
/* Darker than a typical placeholder grey: #98a4a1 on this off-white was about
   2.4:1, which reads as "greyed out" rather than "here is what to type". */
.cb-form input::placeholder { color: #78837f; }
/* A select still showing its placeholder option is :invalid — grey it to match. */
.cb-form select:invalid { color: #78837f; }
.cb-form select {
  padding-right: 2.4rem;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23646f6c' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.7rem center;
  background-size: 20px 20px;
  /* iOS renders a select as a wheel picker and ignores text-overflow, so a long
     option (a programme name, "Saint Vincent and the Grenadines +1") must be
     allowed to truncate rather than push the custom arrow off the control. */
  text-overflow: ellipsis;
  /* Safari adds an inner border-radius shadow on selects unless this is reset. */
  border-radius: 11px;
}
.cb-form input:focus,
.cb-form select:focus {
  outline: none;
  background-color: #fff;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(58,118,101,0.13);
}

.cb-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 0.7rem; }
/* Dial code + number read as a single control. */
.cb-tel { display: grid; grid-template-columns: 8.75rem 1fr; gap: 0 0.7rem; }

/* The one visible field label (the programme dropdown — see includes/callback.php).
   Same weight as the preferred-contact legend so the two read as a pair. */
.cb-flabel {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.8625rem;
  font-weight: 600;
  color: var(--navy);
}

/* ---- Preferred contact: two pills, one tap ---- */
.cb-prefer {
  border: 0;
  padding: 0;
  margin: 0.35rem 0 0.7rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
}
.cb-prefer legend {
  grid-column: 1 / -1;
  padding: 0;
  margin-bottom: 0.45rem;
  font-size: 0.8625rem;
  font-weight: 600;
  color: var(--navy);
}
.cb-prefer-opt {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 46px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: #fbfcfb;
  font-size: 0.9925rem;
  color: var(--text);
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition), box-shadow var(--transition);
}
.cb-prefer-opt:hover { border-color: var(--border-strong); }
/* The radio itself is the accessible control; the pill is what is seen. */
.cb-prefer-opt input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
}
.cb-prefer-opt span { pointer-events: none; }
.cb-prefer-opt span::before {
  content: "";
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-right: 0.15rem;
  border: 2px solid var(--border-strong);
  border-radius: 50%;
  vertical-align: -3px;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.cb-prefer-opt.is-checked,
.cb-prefer-opt:has(input:checked) {
  border-color: var(--accent);
  background: rgba(58,118,101,0.07);
  box-shadow: 0 0 0 1px var(--accent) inset;
}
.cb-prefer-opt.is-checked span,
.cb-prefer-opt:has(input:checked) span { font-weight: 600; color: var(--accent-dark); }
.cb-prefer-opt.is-checked span::before,
.cb-prefer-opt:has(input:checked) span::before {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 3px #fff, inset 0 0 0 10px var(--accent);
}
.cb-prefer-opt:has(input:focus-visible) { box-shadow: 0 0 0 4px rgba(58,118,101,0.18); }
/* Phone not needed when they asked to be emailed — dimmed, still usable. */
.cb-tel.is-optional { opacity: 0.55; }
.cb-tel.is-optional:focus-within { opacity: 1; }

.cb-consent {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  margin: 0.4rem 0 1rem;
  font-size: 0.8625rem;
  line-height: 1.5;
  color: var(--muted);
  cursor: pointer;
}
.cb-consent input { width: 17px; height: 17px; margin-top: 0.1rem; flex: 0 0 auto; accent-color: var(--accent); }
.cb-consent a { color: var(--accent); text-decoration: underline; }

.cb-submit {
  width: 100%;
  height: 50px;
  border: 0;
  border-radius: 11px;
  background: var(--accent);
  color: #fff;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(58,118,101,0.28);
  transition: background var(--transition), box-shadow var(--transition);
}
.cb-submit:hover:not(:disabled) { background: var(--accent-dark); box-shadow: 0 6px 20px rgba(58,118,101,0.40); }
.cb-submit:disabled { opacity: 0.65; cursor: default; }

/* ---- Sent ---- */
.cb-success { text-align: center; padding: 1.75rem 0 1.25rem; }
.cb-success-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: rgba(58,118,101,0.11);
  color: var(--accent);
  margin-bottom: 0.9rem;
}
.cb-success-mark svg { width: 30px; height: 30px; }
.cb-success h3 { font-family: var(--serif); font-size: 1.35rem; color: var(--navy); margin: 0 0 0.4rem; }
.cb-success p  { color: var(--muted); margin: 0; font-size: 1.0125rem; }

/* Short desktop/laptop screens (1366x768 and smaller, browser bars included):
   the full dialog is ~640px tall, so "Request my call back" fell below the fold.
   Tighter spacing brings it to ~570px. */
@media (min-width: 641px) and (max-height: 800px) {
  .cb-overlay { padding: 0.75rem; }
  .cb-panel { padding: 1.25rem 1.75rem 1.25rem; }
  .cb-close { top: 0.75rem; right: 0.75rem; }
  .cb-title { font-size: 1.3rem; margin-bottom: 0.25rem; }
  .cb-sub { font-size: 0.9125rem; margin-bottom: 0.8rem; }
  .cb-form input[type="text"],
  .cb-form input[type="tel"],
  .cb-form input[type="email"],
  .cb-form select { height: 42px; margin-bottom: 0.5rem; }
  .cb-flabel { margin-bottom: 0.25rem; }
  .cb-prefer { margin: 0.2rem 0 0.5rem; gap: 0.5rem; }
  .cb-prefer legend { margin-bottom: 0.3rem; }
  .cb-prefer-opt { height: 42px; }
  .cb-consent { margin: 0.25rem 0 0.75rem; font-size: 0.8225rem; line-height: 1.4; }
  .cb-submit { height: 46px; }
}
/* Very short screens (zoomed-in browsers, small laptops at 125% scaling): the
   intro line goes, the title and form already say what this is. */
@media (min-width: 641px) and (max-height: 660px) {
  .cb-sub { display: none; }
  .cb-title { margin-bottom: 0.75rem; }
}

@media (max-width: 640px) {
  /* Phones: the wording shows once on arrival (js/app.js adds .is-open for 3s),
     then the button folds back to the round icon so it does not cover the page.
     Capped to the viewport so a narrow screen truncates it instead of pushing
     the button off the left edge. */
  .cb-fab {
    right: 14px;
    bottom: 16px;
    padding: 5px;
    max-width: calc(100vw - 28px);
  }
  .cb-fab-ico { width: 44px; height: 44px; }
  .cb-fab-ico svg { width: 22px; height: 22px; }
  .cb-fab-dot { width: 11px; height: 11px; border-width: 2px; }
  .cb-fab-txt {
    display: flex;
    max-width: 0;
    padding: 0;
    overflow: hidden;
  }
  .cb-fab.is-open .cb-fab-txt { max-width: 240px; padding: 0 14px 0 10px; }
  /* No hover on touch: a tap opens the form, so the label never sticks open. */
  .cb-fab:hover .cb-fab-txt { max-width: 0; padding: 0; }
  .cb-fab.is-open:hover .cb-fab-txt { max-width: 240px; padding: 0 14px 0 10px; }
  .cb-fab-txt strong,
  .cb-fab-txt small { overflow: hidden; text-overflow: ellipsis; }
  .cb-fab-txt strong { font-size: 0.9225rem; }
  .cb-fab-txt small  { font-size: 0.7625rem; }

  /* The dialog becomes a bottom sheet. dvh, so the on-screen keyboard shrinking
     the viewport does not leave the submit button under the keyboard. */
  .cb-overlay { padding: 0; align-items: flex-end; overscroll-behavior: contain; }
  .cb-panel {
    max-width: none;
    border-radius: 20px 20px 0 0;
    padding: 1.25rem 1rem 0;
    max-height: 92vh;
    max-height: 92dvh;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }
  .cb-title { font-size: 1.2rem; margin-bottom: 0.25rem; }
  .cb-sub { font-size: 0.8825rem; line-height: 1.45; margin-bottom: 0.75rem; }
  .cb-closed { margin-bottom: 0.75rem; padding: 0.65rem 0.8rem; }
  .cb-closed-text { font-size: 0.8625rem; line-height: 1.45; }
  .cb-row { grid-template-columns: 1fr; }
  /* First + last name are short, so they share a line; nationality and country
     of residence stay stacked (their placeholders would truncate side by side). */
  .cb-row-names { grid-template-columns: 1fr 1fr; gap: 0 0.5rem; }
  /* Compact but still comfortable targets, and 16px stays 16px (iOS zoom guard). */
  .cb-form input[type="text"],
  .cb-form input[type="tel"],
  .cb-form input[type="email"],
  .cb-form select { height: 44px; font-size: 16px; margin-bottom: 0.5rem; padding: 0 0.8rem; }
  .cb-form select { padding-right: 2.2rem; }
  .cb-flabel { margin-bottom: 0.25rem; }
  .cb-prefer { margin: 0.2rem 0 0.5rem; gap: 0.5rem; }
  .cb-prefer legend { margin-bottom: 0.3rem; }
  .cb-prefer-opt { height: 44px; }
  /* Kept side by side: a dial code next to its number is clearer than stacked. */
  .cb-tel { grid-template-columns: 7.25rem 1fr; gap: 0 0.5rem; }
  .cb-consent { margin: 0.25rem 0 0.75rem; font-size: 0.8225rem; line-height: 1.4; }
  /* The send button stays pinned to the bottom of the sheet while the fields
     scroll behind it, so it is always on screen whatever the phone's height.
     The paper-coloured ring hides the fields passing underneath. */
  .cb-submit {
    position: sticky;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    z-index: 2;
    height: 48px;
    font-size: 16px;
    margin-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 0 0 12px var(--paper);
  }
  .cb-submit:hover:not(:disabled) { box-shadow: 0 0 0 12px var(--paper); }
  .cb-success { padding-bottom: 1.5rem; }
  .cb-close { top: 0.6rem; right: 0.6rem; width: 36px; height: 36px; }
}

@media (prefers-reduced-motion: reduce) {
  .cb-overlay, .cb-panel, .cb-fab, .cb-fab-txt { transition: none; }
  /* No icon swap for anyone who has asked the OS to stop moving things: the
     handset simply stays put. */
  .cb-ico-phone, .cb-ico-mail { animation: none; }
  .cb-ico-phone { opacity: 1; transform: none; }
  .cb-ico-mail  { opacity: 0; }
}

/* ---------------------------------------------------------------- QR contacts
   WeChat / WhatsApp codes inside the "Speak with our team" band. Rendered hidden
   and revealed by js/qr-geo.js only for the countries chosen in the admin, so
   the edge-cached HTML stays identical for every visitor. */
/* Centres itself, so it looks the same in the centred homepage band and in
   the left-aligned enquiry section on a programme page. */
.qr-contacts { margin: 2.4rem auto 0; max-width: 560px; text-align: center; }
.qr-contacts[hidden] { display: none; }
.qr-contacts-title {
  margin: 0 0 1.1rem; font-family: var(--sans); font-size: .8425rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
}
.qr-contacts-title::before,
.qr-contacts-title::after {
  content: ""; display: inline-block; vertical-align: middle;
  width: 28px; height: 1px; background: var(--border); margin: 0 .7rem;
}
.qr-contacts-grid { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }

.qr-card {
  flex: 0 1 232px; display: flex; flex-direction: column; align-items: center; gap: .6rem;
  padding: 1.2rem 1.1rem 1.3rem; background: #fff;
  border: 1px solid var(--border); border-radius: var(--radius); text-align: center;
}
.qr-card-head { display: flex; align-items: center; gap: .4rem; color: var(--accent); }
.qr-card-ico { width: 18px; height: 18px; flex: none; }
.qr-card-name { font-size: 1.0125rem; font-weight: 700; color: var(--navy); }

.qr-card-link { display: block; line-height: 0; border-radius: 8px; }
.qr-card-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.qr-card-img { display: block; width: 100%; max-width: 160px; height: auto; border-radius: 6px; }

.qr-card-handle { font-size: .8825rem; color: var(--muted); word-break: break-all; }
.qr-card-btn {
  display: block; width: 100%; padding: .6rem .7rem; border-radius: 999px;
  background: var(--accent); color: #fff; font-size: .9425rem; font-weight: 700;
  text-decoration: none; min-height: 42px; line-height: 1.5;
}
.qr-card-btn:hover, .qr-card-btn:focus { background: var(--accent-dark); color: #fff; }

.qr-card-hint { font-size: .8425rem; line-height: 1.4; color: var(--muted); }
.qr-card-hint--hold { display: none; }
/* You cannot scan a code on the screen you are holding, so a touch device gets
   the press-and-hold / scan-from-album instruction instead. */
.qr-contacts--touch .qr-card-hint--scan { display: none; }
.qr-contacts--touch .qr-card-hint--hold { display: block; }
/* A card with a tap-to-open link (WhatsApp): on a phone the button is the way
   in, so it moves up under the name and replaces the press-and-hold hint. */
.qr-card-hint--tap { display: none; }
.qr-contacts--touch .qr-card--has-link .qr-card-hint--hold { display: none; }
.qr-contacts--touch .qr-card--has-link .qr-card-hint--tap { display: block; }
.qr-contacts--touch .qr-card--has-link .qr-card-btn { order: -1; }
.qr-contacts--touch .qr-card--has-link .qr-card-head { order: -2; }

@media (max-width: 560px) {
  .qr-contacts { margin-top: 2rem; }
  .qr-contacts-grid { gap: .8rem; }
  .qr-card { flex: 1 1 100%; max-width: 300px; margin: 0 auto; }
  .qr-card-img { max-width: 180px; }
}

/* The band on some pages is dark (expertise.php), so the labels invert there. */
.section--dark .qr-contacts-title { color: rgba(255,255,255,0.6); }
.section--dark .qr-contacts-title::before,
.section--dark .qr-contacts-title::after { background: rgba(255,255,255,0.25); }

/* --- QR lightbox: clicking a code enlarges it in place instead of navigating
   away. Mirrors the callback-widget overlay so it feels like the same site. */
.qr-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(24,40,37,0.55);
  backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity 200ms ease;
}
.qr-lightbox[hidden] { display: none; }
.qr-lightbox.is-open { opacity: 1; }

.qr-lightbox-panel {
  position: relative;
  background: var(--paper);
  border-radius: 20px;
  box-shadow: 0 24px 70px rgba(15,45,35,0.30);
  padding: 2rem 2rem 1.5rem;
  text-align: center;
  transform: translateY(14px) scale(0.985);
  transition: transform 200ms ease;
}
.qr-lightbox.is-open .qr-lightbox-panel { transform: translateY(0) scale(1); }

.qr-lightbox-img {
  display: block;
  width: min(340px, 62vw);
  height: auto;
  margin: 0 auto;
  border-radius: 8px;
  background: #fff;
}
.qr-lightbox-cap {
  margin: 1rem 0 0;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
}
.qr-lightbox-sub { margin: .25rem 0 0; font-size: .9025rem; color: var(--muted); }

.qr-lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: rgba(24,40,37,0.07);
  color: var(--navy);
  cursor: pointer;
  padding: 0;
}
.qr-lightbox-close:hover { background: rgba(24,40,37,0.14); }
.qr-lightbox-close svg { width: 16px; height: 16px; }

@media (max-width: 560px) {
  .qr-lightbox-panel { padding: 1.6rem 1.2rem 1.2rem; }
  .qr-lightbox-img { width: min(300px, 74vw); }
  .qr-lightbox-close { top: .7rem; right: .7rem; width: 38px; height: 38px; }
}
@media (prefers-reduced-motion: reduce) {
  .qr-lightbox, .qr-lightbox-panel { transition: none; }
}

/* --- Enquiry form + chat codes, side by side on a programme page.
   Flex rather than grid on purpose: when the codes are switched off in the
   admin the aside is not rendered at all, and the form simply fills the row
   instead of leaving an empty column behind. */
.inquiry-split { display: flex; align-items: flex-start; gap: 4rem; }
/* The intro sits above a full 1190px row now, so the sentence is held to a
   readable measure instead of running the whole width. */
.inquiry-intro { max-width: 70ch; }
.inquiry-split > .contact-form { flex: 1 1 auto; min-width: 0; }

.qr-contacts--aside {
  flex: 0 0 250px;
  margin: 0;
  max-width: none;
  padding-left: 3rem;
  border-left: 1px solid var(--border);   /* the thin separation */
  align-self: stretch;
}
.qr-contacts--aside .qr-contacts-title { margin-bottom: 1rem; }
/* No flanking rules on the narrow heading: the vertical line already separates. */
.qr-contacts--aside .qr-contacts-title::before,
.qr-contacts--aside .qr-contacts-title::after { display: none; }

/* Stacked, not side by side. */
.qr-contacts--aside .qr-contacts-grid { flex-direction: column; gap: .9rem; }
.qr-contacts--aside .qr-card { flex: 0 0 auto; width: 100%; padding: 1rem .9rem 1.1rem; }
.qr-contacts--aside .qr-card-img { max-width: 158px; }
.qr-contacts--aside .qr-card-hint { font-size: .8025rem; }

@media (max-width: 860px) {
  /* Below this the column would be too narrow to scan, so the aside drops under
     the form and the rule turns horizontal. */
  .inquiry-split { display: block; }
  .qr-contacts--aside {
    width: 100%;
    max-width: 560px;
    margin: 2.2rem auto 0;
    padding: 1.8rem 0 0;
    border-left: 0;
    border-top: 1px solid var(--border);
  }
  .qr-contacts--aside .qr-contacts-grid { flex-direction: row; flex-wrap: wrap; gap: 1rem; }
  .qr-contacts--aside .qr-card { flex: 1 1 200px; }
  .qr-contacts--aside .qr-card-img { max-width: 160px; }
}
@media (max-width: 560px) {
  .qr-contacts--aside .qr-card { flex: 1 1 100%; max-width: 300px; margin: 0 auto; }
  .qr-contacts--aside .qr-card-img { max-width: 180px; }
}

/* ---------- Programme parallax band ----------
   Hero image strip between the Application process and the rest of the page.
   The image layer is taller than the band; js/parallax.js shifts it as the band
   crosses the viewport. Same brand tint as the hero, a little lighter. */
.prog-parallax {
  position: relative;
  height: clamp(220px, 38vh, 420px);
  overflow: hidden;
  background: var(--navy);
}
.prog-parallax__img {
  position: absolute;
  left: 0; right: 0;
  top: -30%;
  height: 160%;
  background-image: var(--pp-img);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  will-change: transform;
}
.prog-parallax::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(45,69,65,0.55), rgba(63,92,87,0.30));
}
@media (max-width: 640px) {
  .prog-parallax { height: 200px; }
}
/* Phones: the small copy of the photo (same file as the hero, so already downloaded). */
@media (max-width: 760px) {
  .prog-parallax__img { background-image: var(--pp-img-m, var(--pp-img)); }
}

/* Programme lists rebuilt from the Quill editor (2026-11-17): a bold group label above its own list. */
.prog-body .prog-list-lead { margin: 1.4rem 0 .5rem; }
.prog-body > .prog-list-lead:first-child { margin-top: 0; }
.article-body li > ul, .article-body li > ol { margin: .5rem 0 0; }

/* ---------- Europe Golden Visa: investment routes + European offices (2026-11-20) ---------- */
.cmp-table .cmp-sub { display:block; min-width:220px; max-width:250px; white-space:normal; margin-top:.3rem; font-size:.8625rem; line-height:1.45; color:var(--muted); font-weight:400; }
.eu-offices { margin-top:3rem; text-align:left; }
.eu-offices-title { text-align:center; margin:0 0 1.5rem; }
.eu-offices--dark .eu-offices-title { color:#fff; }
/* Cards reuse the /contact/ office cards (.office-card); only the accreditation line is new. */
.eu-office-accr { margin:.8rem 0 0; padding-top:.7rem; border-top:1px solid var(--border); font-size:.8625rem; line-height:1.5; color:var(--muted); }
.eu-offices .offices-grid { grid-template-columns:repeat(3, minmax(0, 1fr)); }
.eu-offices .office-card .office-card-link { color:var(--accent); }
.eu-offices .office-card .office-card-link:hover { color:var(--accent-dark); }
@media (max-width:860px) { .eu-offices .offices-grid { grid-template-columns:1fr; } }

/* ---------- Programme price note ("in low-density areas"), 2026-11-20 ---------- */
.price-note { display:block; margin-top:.25rem; font-size:16px; font-weight:400; line-height:1.4; color:var(--muted); letter-spacing:0; text-transform:none; }
.prog-hero-fact-value .price-note { color:rgba(255,255,255,.8); font-size:16px; }
.cmp-table .cmp-sub.price-note { font-size:16px; }

/* ---------- Comparison table on phones: label left, value stacked right (2026-11-20) ----------
   The investment cell holds the amount + price note + investment options; as flex
   items they were squeezed side by side and ran off the card. Grid puts the label
   in column 1 and every piece of the value under each other in column 2. */
@media (max-width:640px) {
  .cmp-table td { display:grid; grid-template-columns:7.5rem minmax(0, 1fr); column-gap:1rem; align-items:start; text-align:left; }
  .cmp-table td::before { grid-column:1; grid-row:1; line-height:1.4; padding-top:.1rem; }
  .cmp-table td > * { grid-column:2; }
  .cmp-table td[data-label="Minimum investment"] { text-align:left; }
  .cmp-table td[data-label="Minimum investment"]::before { grid-row:1 / span 3; }
  .cmp-table .cmp-sub { min-width:0; max-width:none; }
  .cmp-table th[scope=row] a { align-items:center; }
}

/* ==========================================================================
   Enquiry forms, two-part card layout (2026-11-23)
   Programme pages, Contact page and office pages. A white card, the enquiry
   first and the contact details second, underline fields in two columns, and
   a flag + dial code on the phone (js/phone-flags.js, /vendor/intl-tel-input/).
   Scoped to .enq-card / .form--line so other forms (callback pop-up, admin,
   tools) keep their current look. HLG colours and fonts throughout.
   ========================================================================== */
.enq-card {
  background: #fff;
  padding: clamp(1.6rem, 4vw, 3.25rem) clamp(1.25rem, 5vw, 4rem);
}
.inquiry-split > .enq-card { max-width: 900px; }
.office-enquiry.enq-card { border-top: 1px solid var(--border); padding-top: clamp(1.6rem, 4vw, 3.25rem); }

.form--line { gap: 1.6rem; }
.form--line .form-row { column-gap: 2.25rem; row-gap: 1.6rem; }
.enq-sub {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--navy);
  margin: .9rem 0 -.3rem;
}
.form--line .enq-sub:first-of-type { margin-top: 0; }

/* underline fields */
.form--line input[type="text"],
.form--line input[type="email"],
.form--line input[type="tel"],
.form--line select {
  background-color: transparent;
  border: 0;
  border-bottom: 1px solid #c5cecb;
  border-radius: 0;
  padding: .55rem 0 .6rem;
}
.form--line select { background-position: right .1rem center; padding-right: 1.6rem; }
.form--line input[type="text"]:focus,
.form--line input[type="email"]:focus,
.form--line input[type="tel"]:focus,
.form--line select:focus {
  background-color: transparent;
  border-bottom-color: var(--accent);
  box-shadow: 0 1px 0 0 var(--accent);
}
.form--line label { margin-bottom: .2rem; }
.form--line textarea { background: #fff; min-height: 120px; }
.form--line .checkbox { margin-top: .2rem; }

/* phone: flag + dial code inside the same underline */
.form--line .iti { display: block; width: 100%; }
.form--line .iti__selected-country { padding: 0 .55rem 0 0; background: none !important; }
.form--line .iti__selected-dial-code { color: var(--text); font-size: 1.0125rem; margin-left: .45rem; }
.form--line .iti__arrow { border-top-color: var(--muted); }
.form--line .iti__arrow--up { border-bottom-color: var(--muted); }
.iti { --iti-hover-color: rgba(58,118,101,.08); --iti-border-color: var(--border); --iti-dialcode-color: var(--muted); }
body .iti__dropdown-content { border-radius: var(--radius); box-shadow: var(--shadow); font-family: var(--sans); font-size: .9625rem; }
body .iti__search-input { font: inherit; padding: .6rem .8rem; border: 0; border-bottom: 1px solid var(--border); }
body .iti__search-input:focus { outline: none; border-bottom-color: var(--accent); }
body .iti__country.iti__highlight { background-color: rgba(58,118,101,.1); }

@media (max-width: 600px) {
  .form--line .form-row { row-gap: 1.6rem; }
  .enq-sub { font-size: 1.25rem; }
}

/* ---------- Homepage founder quote (home.php, above "Popular routes") ----------
   Green band (#3f5c57), white serif italic quote, name + role below.
   Contained to a readable line length; the .container itself stays 1190px. */
.founder-quote { background: #3f5c57; color: #fff; text-align: center; }
.founder-quote__fig { max-width: 900px; margin: 0 auto; }
.founder-quote__text { margin: 0; padding: 0; border: 0; }
.founder-quote__text p {
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.4rem, 1rem + 1.6vw, 2.05rem);
  line-height: 1.5;
  color: #fff;
}
.founder-quote__by { margin-top: 1.6rem; display: flex; flex-direction: column; gap: .2rem; }
.founder-quote__by strong { font-family: var(--sans); font-size: 1.05rem; font-weight: 700; color: #fff; letter-spacing: .02em; }
.founder-quote__by span { font-family: var(--sans); font-size: .9625rem; color: rgba(255,255,255,.82); }
.founder-quote__by a { color: #fff; text-decoration: underline; text-decoration-color: rgba(255,255,255,.45); text-underline-offset: 4px; transition: text-decoration-color .2s ease; }
.founder-quote__by a:hover, .founder-quote__by a:focus-visible { text-decoration-color: #fff; }

/* ---------- Europe Golden Visa: "Find your golden visa" (europe-golden-visa.php + js/egv-finder.js) ----------
   One question at a time in a single white card: progress bar + flags of the
   countries still in play, full-width answer buttons (each says how many
   programmes it leaves), Back / Next, then "Your best match". The plain card
   grid below is what visitors without JavaScript (and crawlers) see. */
.egvw-head { max-width: 760px; margin: 0 auto; text-align: center; }
.egvw-head .section-intro { margin-left: auto; margin-right: auto; }
.egvw {
  max-width: 760px; margin: 1.8rem auto 0; padding: 1.6rem 1.8rem 1.4rem;
  background: #fff; border: 1px solid var(--border); border-radius: 18px;
  box-shadow: 0 10px 30px rgba(15,45,35,.08);
  scroll-margin-top: 96px;
}
.egvw[hidden], .egvf-results[hidden] { display: none; }

.egvw-progress { margin-bottom: 1.4rem; }
.egvw-progress-top { display: flex; justify-content: space-between; gap: 1rem; font-size: .8825rem; font-weight: 700; color: var(--muted); margin-bottom: .5rem; }
.egvw-left { color: var(--accent-dark); }
.egvw-bar { height: 6px; border-radius: 99px; background: var(--light); overflow: hidden; }
.egvw-bar i { display: block; height: 100%; width: 0; border-radius: 99px; background: var(--navy); transition: width .45s ease; }
.egvw-flags { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .8rem; }
.egvw-flag { width: 30px; height: auto; border-radius: 3px; box-shadow: 0 1px 3px rgba(0,0,0,.18); transition: opacity .35s ease, filter .35s ease, transform .35s ease; }
.egvw-flag.is-out { opacity: .25; filter: grayscale(1); transform: scale(.88); }

.egvw-step.is-in { animation: egvw-in .35s ease both; }
@keyframes egvw-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.egvw-q { font-family: var(--serif); font-size: clamp(1.3rem, 1.05rem + 1vw, 1.65rem); color: var(--navy-dark); margin: 0 0 1.1rem; line-height: 1.3; }

.egvw-opts { display: grid; gap: .6rem; }
.egvw-opt {
  display: grid; grid-template-columns: 1fr auto; grid-template-areas: "t n" "h n"; align-items: center; column-gap: 1rem;
  width: 100%; min-height: 64px; padding: .85rem 1.1rem; text-align: left; cursor: pointer;
  background: #fff; border: 1.5px solid var(--border-strong); border-radius: 12px; font-family: var(--sans); color: var(--text);
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
.egvw-opt-t { grid-area: t; font-size: 1rem; font-weight: 700; color: var(--navy-dark); }
.egvw-opt-h { grid-area: h; font-size: .9225rem; color: var(--muted); margin-top: .1rem; }
.egvw-opt-n { grid-area: n; font-size: .8425rem; font-weight: 700; color: var(--accent-dark); background: var(--light); border-radius: 99px; padding: .3rem .7rem; white-space: nowrap; }
.egvw-opt:hover:not(:disabled) { border-color: var(--accent); box-shadow: 0 4px 14px rgba(15,45,35,.08); }
.egvw-opt:focus-visible { outline: 3px solid var(--accent-light); outline-offset: 2px; }
.egvw-opt.is-on { border-color: var(--navy); background: #f1f5f4; box-shadow: inset 0 0 0 1px var(--navy); }
.egvw-opt.is-on .egvw-opt-n { background: var(--navy); color: #fff; }
.egvw-opt:disabled { cursor: not-allowed; opacity: .45; }
.egvw-opt:disabled .egvw-opt-n { background: transparent; color: var(--muted); font-weight: 600; }

.egvw-nav { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 1.4rem; padding-top: 1.1rem; border-top: 1px solid var(--border); }
.egvw-nav[hidden] { display: none; }
.egvw-back { background: none; border: 0; padding: .6rem .2rem; font: inherit; font-weight: 700; font-size: .9825rem; color: var(--muted); cursor: pointer; }
.egvw-back:hover { color: var(--navy-dark); }
.egvw-next { min-width: 150px; justify-content: center; }
.egvw-next:disabled { opacity: .4; cursor: not-allowed; }

/* Result */
.egvw-kicker { margin: 0 0 .7rem; font-size: .8125rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--accent); }
.egvw-best { display: grid; grid-template-columns: 1fr; gap: 1rem; align-items: center; }
.egvw-best .prog-card-media { margin: 0; }
.egvw-best h3 { display: flex; align-items: center; gap: .6rem; margin: 0 0 .5rem; font-size: 1.45rem; color: var(--navy-dark); }
.egvw-best-flag { width: 34px; height: auto; border-radius: 3px; box-shadow: 0 1px 3px rgba(0,0,0,.18); }
.egvw-best-price { margin: 0; }
.egvw-best-price span { display: block; font-size: .7225rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.egvw-best-price strong { font-size: 1.45rem; color: var(--accent-dark); }
.egvw-why { list-style: none; margin: 1.2rem 0 0; padding: 0; display: grid; gap: .5rem; }
.egvw-why li { position: relative; padding-left: 1.7rem; line-height: 1.5; font-size: 1.0125rem; }
.egvw-why li::before { content: ""; position: absolute; left: 0; top: .2em; width: 1.1rem; height: 1.1rem; border-radius: 50%; background: var(--light); }
.egvw-why li::after { content: ""; position: absolute; left: .4rem; top: .42em; width: .28rem; height: .52rem; border: solid var(--accent); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.egvw-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.4rem; }
.egvw-more-title { margin: 1.6rem 0 .6rem; font-weight: 700; font-size: .9625rem; color: var(--navy-dark); }
.egvw-more { display: grid; gap: .5rem; }
.egvw-mini { display: flex; align-items: center; gap: .7rem; padding: .75rem 1rem; border: 1px solid var(--border); border-radius: 12px; text-decoration: none; color: var(--text); transition: border-color .2s ease, box-shadow .2s ease; }
.egvw-mini:hover { border-color: var(--accent); box-shadow: 0 4px 14px rgba(15,45,35,.08); }
.egvw-mini-flag { width: 26px; height: auto; border-radius: 2px; box-shadow: 0 1px 2px rgba(0,0,0,.18); }
.egvw-mini-name { font-weight: 700; color: var(--navy-dark); flex: 1; }
.egvw-mini-price { font-size: .9425rem; color: var(--accent-dark); font-weight: 700; white-space: nowrap; }
.egvw-mini-price::after { content: " \2192"; }
.egvw-note { margin: 1.3rem 0 0; font-size: .8625rem; color: var(--muted); }
.egvw-beyond { text-align: center; margin: 1.4rem 0 0; }

/* No-JS / crawler view: the plain card grid with every figure. */
.egvf-results { margin-top: 1.8rem; }
.egvf-card[hidden] { display: none; }
.egvf-stats { margin: 0 0 1.2rem; display: grid; gap: .55rem; }
.egvf-stats > div { margin: 0; }
.egvf-stats dt { font-size: .7225rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 0 0 .1rem; }
.egvf-stats dd { margin: 0; font-size: .9625rem; line-height: 1.45; color: var(--text); }
.egvf-stats > div:first-child dd { font-size: 1.2rem; font-weight: 700; color: var(--accent-dark); line-height: 1.2; }

@media (min-width: 700px) {
  .egvw-best { grid-template-columns: 1.1fr 1fr; gap: 1.4rem; }
}
@media (max-width: 640px) {
  .egvw { margin-top: 1.3rem; padding: 1.15rem 1rem 1rem; border-radius: 14px; }
  .egvw-opt { min-height: 60px; padding: .8rem .9rem; column-gap: .7rem; }
  .egvw-opt-t { font-size: 1.0225rem; }
  .egvw-opt-h { font-size: .8825rem; }
  .egvw-actions .btn { width: 100%; justify-content: center; text-align: center; }
  .egvw-next { min-width: 0; flex: 1; max-width: 220px; }
  /* Back / Next stay pinned to the bottom of the screen while the questions
     scroll, so the client never has to hunt for Next after tapping an answer. */
  .egvw-nav[data-egvw-nav] {
    position: sticky; bottom: 0; z-index: 5;
    margin: 1.2rem -1rem -1rem; padding: .75rem 1rem calc(.75rem + env(safe-area-inset-bottom));
    background: rgba(255,255,255,.97); border-top: 1px solid var(--border);
    border-radius: 0 0 14px 14px; box-shadow: 0 -6px 16px rgba(15,45,35,.06);
  }
  .egvw-nav[data-egvw-endnav] { flex-direction: column; align-items: stretch; text-align: center; gap: .3rem; }
  body.egvw-in-view .cb-fab { opacity: 0; pointer-events: none; transform: translateY(12px); }
}
.egvw-nav .egvw-back, .egvw-nav .card-link { white-space: nowrap; }
.egvw-nav[data-egvw-endnav] .card-link { justify-content: center; }
@media (prefers-reduced-motion: reduce) {
  .egvw-step.is-in { animation: none; }
  .egvw-bar i, .egvw-flag { transition: none; }
}

/* "Quick answers" (the comparison table it sat under was removed 2026-11-25). */
.egv-quick-wrap { max-width: 880px; margin: 0 auto; }
.egv-quick-wrap .egv-quick { margin-top: 1rem; }
/* "See all figures": the comparison table inside a closed panel. */
.egv-all { margin-top: 1rem; border: 1px solid var(--border); border-radius: var(--radius-lg); background: #fff; }
.egv-all summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: 56px; padding: .9rem 1.4rem; cursor: pointer; list-style: none;
  font-weight: 700; color: var(--navy-dark);
}
.egv-all summary::-webkit-details-marker { display: none; }
.egv-all summary::after { content: "+"; font-size: 1.4rem; font-weight: 400; line-height: 1; color: var(--accent); transition: transform .25s ease; }
.egv-all[open] summary::after { transform: rotate(45deg); }
.egv-all summary:focus-visible { outline: 3px solid var(--accent-light); outline-offset: 2px; border-radius: var(--radius-lg); }
.egv-all-body { padding: 0 1.4rem 1.4rem; }
.egv-all-body .cmp-note { margin-top: 0; }
.egv-quick { margin-top: 2.2rem; padding: 1.4rem 1.6rem; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--light); }
.egv-quick h3 { margin: 0 0 .3rem; font-size: 1.15rem; color: var(--navy-dark); }
.egv-quick-intro { margin: 0 0 .7rem; color: var(--muted); font-size: .9825rem; }
.egv-quick ul { margin: 0; padding-left: 1.1rem; }
.egv-quick li { margin-bottom: .45rem; line-height: 1.5; }

@media (max-width: 640px) {
  .egv-quick { padding: 1.1rem 1.1rem; }
}

/* Homepage "Intro" block (home.php, under "As seen in"): 18px, medium weight. */
.home-intro, .home-intro p, .home-intro li { font-size: 18px; font-weight: 500; }
