  :root {
    --ink: #0B0F2C; --ink-2: #131845; --ink-3: #1F2563;
    --gold: #F0B429; --gold-soft: #FFD86B; --gold-deep: #B8881A;
    --teal: #14B8A6; --teal-deep: #0F766E;
    --green: #10B981; --green-deep: #047857; --green-soft: #D1FAE5;
    --red: #EF4444; --red-deep: #B91C1C; --red-soft: #FEE2E2;
    --amber: #F59E0B; --amber-soft: #FEF3C7;
    --cream: #FBF7EC; --paper: #FFFFFF; --paper-soft: #FAFAFB;
    --line: #E8E8EE; --line-soft: #F1F1F5;
    --muted: #6B6F80; --muted-2: #9095A6;
    --text: #1A1D2E; --text-soft: #4A4E5F;
    --shadow-sm: 0 1px 2px rgba(11,15,44,.05), 0 1px 3px rgba(11,15,44,.04);
    --shadow-md: 0 4px 12px rgba(11,15,44,.06), 0 2px 4px rgba(11,15,44,.04);
    --shadow-lg: 0 16px 40px rgba(11,15,44,.10), 0 4px 12px rgba(11,15,44,.06);
    --shadow-xl: 0 32px 80px rgba(11,15,44,.16), 0 8px 24px rgba(11,15,44,.10);
    --r-sm: 8px; --r-md: 14px; --r-lg: 22px; --r-xl: 28px;
    --t-fast: .18s cubic-bezier(.4,0,.2,1); --t-base: .3s cubic-bezier(.4,0,.2,1);
  }
  * { box-sizing: border-box; margin: 0; padding: 0; }
  html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
  body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    color: var(--text); background: var(--paper-soft); line-height: 1.55;
    -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
    font-feature-settings: "cv11","ss01","ss03";
  }
  .serif { font-family: 'Instrument Serif', Georgia, serif; font-style: italic; font-weight: 400; }
  ::selection { background: var(--gold); color: var(--ink); }
  .wrap { max-width: 940px; margin: 0 auto; padding: 0 20px; }
  [data-lang] { display: none; }
  [data-lang].show { display: inline; }
  .blk[data-lang].show { display: block; }

  /* ---------- HEADER ---------- */

  header {
    position: sticky; top: 0; z-index: 60;
    background: rgba(11,15,44,.92); backdrop-filter: blur(14px) saturate(1.4);
    border-bottom: 1px solid rgba(255,255,255,.08);
  }
  .nav { max-width: 1080px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; gap: 14px; }
  @media (min-width: 900px) { .nav { padding: 12px 22px; gap: 26px; } }
  .brand { display: flex; align-items: center; flex: none; text-decoration: none; }
  .brand img { display: block; height: 30px; width: auto; }
  @media (min-width: 900px) { .brand img { height: 33px; } }

  /* desktop links */
  .nav-links { display: none; align-items: center; gap: 24px; flex: 1; }
  @media (min-width: 900px) { .nav-links { display: flex; } }
  .nav-links a {
    color: rgba(255,255,255,.68); text-decoration: none; font-size: 13.5px; font-weight: 600;
    letter-spacing: -.005em; white-space: nowrap; padding: 6px 0; position: relative; transition: var(--t-fast);
  }
  .nav-links a:hover { color: #fff; }
  .nav-links a.on { color: #fff; }
  .nav-links a.on::after {
    content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
    background: var(--gold); border-radius: 2px;
  }

  .nav-right { display: flex; align-items: center; gap: 8px; flex: none; margin-left: auto; }
  @media (min-width: 900px) { .nav-right { gap: 12px; margin-left: 0; } }
  .nav-cta { display: none; }
  @media (min-width: 900px) { .nav-cta { display: inline; } }

  /* burger */
  .burger {
    display: flex; flex-direction: column; justify-content: center; gap: 4.5px;
    width: 38px; height: 38px; padding: 0 9px; border: 0; border-radius: 10px;
    background: rgba(255,255,255,.09); cursor: pointer; flex: none;
  }
  @media (min-width: 900px) { .burger { display: none; } }
  .burger span { display: block; height: 2px; width: 100%; background: #fff; border-radius: 2px; transition: var(--t-fast); }
  .burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

  .mobile-menu {
    display: none; flex-direction: column; border-top: 1px solid rgba(255,255,255,.1);
    padding: 6px 16px 14px; background: rgba(11,15,44,.98);
  }
  .mobile-menu.open { display: flex; }
  @media (min-width: 900px) { .mobile-menu, .mobile-menu.open { display: none; } }
  .mobile-menu a {
    color: rgba(255,255,255,.86); text-decoration: none; font-size: 15.5px; font-weight: 600;
    padding: 14px 2px; border-bottom: 1px solid rgba(255,255,255,.07);
  }
  .mobile-menu a:last-child { border-bottom: 0; color: var(--gold); }
  .lang-pill { display: flex; background: rgba(255,255,255,.09); border-radius: 999px; padding: 3px; }
  .lang-pill button {
    border: 0; background: transparent; color: rgba(255,255,255,.6);
    font: 600 11.5px/1 'Inter', sans-serif; padding: 6px 10px; border-radius: 999px; cursor: pointer; transition: var(--t-fast);
  }
  .lang-pill button.on { background: var(--gold); color: var(--ink); }
  .nav-cta { color: #fff; text-decoration: none; font-size: 13px; font-weight: 600; opacity: .82; white-space: nowrap; }
  .nav-cta:hover { opacity: 1; }

  footer { background: var(--ink); color: rgba(255,255,255,.6); padding: 40px 0; font-size: 13px; }
  footer a { color: rgba(255,255,255,.78); text-decoration: none; }
  footer a:hover { color: #fff; }
  .foot-links { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 12px; }

  /* --- nav links: pill treatment --- */
  .nav-links { gap: 2px !important; }
  .nav-links a {
    color: rgba(255,255,255,.62) !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
    letter-spacing: -.005em;
    padding: 8px 13px !important;
    border-radius: 10px;
    white-space: nowrap;
    transition: color .18s cubic-bezier(.4,0,.2,1), background .18s cubic-bezier(.4,0,.2,1);
  }
  .nav-links a:hover { color: #fff !important; background: rgba(255,255,255,.08); }
  .nav-links a:active { background: rgba(255,255,255,.13); }
  .nav-links a:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
  .nav-links a.on { color: #fff !important; background: rgba(255,255,255,.11); }
  /* the active item carries the brand gold as a small dot, not a heavy underline */
  .nav-links a.on::before {
    content: ''; display: inline-block; width: 5px; height: 5px; border-radius: 50%;
    background: var(--gold); margin-right: 7px; vertical-align: 1.5px;
  }
  .nav-links a.on::after { display: none !important; }

/* ===================================================================
   Guide library (/gid) — long-form reading typography.
   Kept deliberately narrow and generous. Most of our readers are on a
   phone, often reading something that decides whether they can work.
   =================================================================== */
.g-wrap { max-width: 720px; margin: 0 auto; padding: 0 20px; }
.g-hero { background: var(--ink); color: #fff; padding: 46px 0 54px; }
@media (min-width: 700px) { .g-hero { padding: 64px 0 72px; } }
.g-eyebrow {
  display: inline-flex; align-items: center; gap: 7px; font-size: 11.5px; font-weight: 700;
  letter-spacing: .07em; text-transform: uppercase; color: var(--gold);
  background: rgba(240,180,41,.12); border: 1px solid rgba(240,180,41,.28);
  padding: 6px 12px; border-radius: 999px; margin-bottom: 18px;
}
.g-hero h1 {
  font-size: clamp(27px, 6.2vw, 44px); line-height: 1.14; letter-spacing: -.025em;
  font-weight: 800; color: #fff;
}
.g-hero .g-sub { margin-top: 15px; font-size: clamp(15px, 2.6vw, 18px); color: rgba(255,255,255,.72); line-height: 1.6; }
.g-meta { margin-top: 22px; font-size: 12.5px; color: rgba(255,255,255,.5); display: flex; gap: 14px; flex-wrap: wrap; }

.prose { padding: 40px 0 20px; font-size: 16.5px; line-height: 1.72; color: var(--text-soft); }
@media (min-width: 700px) { .prose { font-size: 17.5px; padding: 52px 0 24px; } }
.prose h2 {
  font-size: clamp(21px, 3.6vw, 27px); line-height: 1.25; letter-spacing: -.02em; font-weight: 800;
  color: var(--text); margin: 42px 0 14px; scroll-margin-top: 80px;
}
.prose h3 { font-size: clamp(17px, 2.8vw, 20px); font-weight: 700; color: var(--text); margin: 30px 0 10px; }
.prose p { margin: 0 0 18px; }
.prose ul, .prose ol { margin: 0 0 20px; padding-left: 24px; }
.prose li { margin: 0 0 10px; }
.prose li::marker { color: var(--gold-deep); font-weight: 700; }
.prose strong { color: var(--text); font-weight: 700; }
.prose a { color: var(--teal-deep); text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1.5px; }
.prose a:hover { color: var(--ink); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 38px 0; }

/* A fact the reader can act on today, lifted out of the paragraph flow. */
.g-key {
  background: var(--cream); border: 1px solid rgba(240,180,41,.42); border-left: 4px solid var(--gold);
  border-radius: var(--r-md); padding: 18px 20px; margin: 26px 0; font-size: 16px; line-height: 1.62;
}
.g-key .g-key-t { font-weight: 800; color: var(--ink); display: block; margin-bottom: 6px; font-size: 13px; letter-spacing: .02em; text-transform: uppercase; }
/* A warning where getting it wrong costs the reader real time or money. */
.g-warn {
  background: var(--red-soft); border: 1px solid rgba(239,68,68,.34); border-left: 4px solid var(--red);
  border-radius: var(--r-md); padding: 18px 20px; margin: 26px 0; font-size: 16px; line-height: 1.62; color: #7F1D1D;
}
.g-warn .g-key-t { color: var(--red-deep); }
/* Contact blocks: phone numbers and email boxes the reader will actually use. */
.g-contact {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 18px 20px; margin: 22px 0; font-size: 15.5px; box-shadow: var(--shadow-sm);
}
.g-contact dt { font-weight: 700; color: var(--ink); font-size: 13px; text-transform: uppercase; letter-spacing: .03em; margin-bottom: 4px; }
.g-contact dd { margin: 0 0 16px; }
.g-contact dd:last-child { margin-bottom: 0; }
.g-contact a { font-weight: 600; }

/* Inline call to action back into the product. */
.g-cta {
  display: block; background: linear-gradient(135deg, var(--ink) 0%, var(--ink-3) 100%);
  color: #fff; border-radius: var(--r-lg); padding: 26px 24px; margin: 36px 0; text-decoration: none;
  box-shadow: var(--shadow-lg); transition: transform var(--t-fast), box-shadow var(--t-fast);
}
.g-cta:hover { transform: translateY(-2px); box-shadow: var(--shadow-xl); color: #fff; }
.g-cta .g-cta-t { display: block; font-size: 19px; font-weight: 800; letter-spacing: -.015em; margin-bottom: 6px; }
.g-cta .g-cta-s { display: block; font-size: 14.5px; color: rgba(255,255,255,.72); line-height: 1.55; }
.g-cta .g-cta-go { display: inline-block; margin-top: 14px; background: var(--gold); color: var(--ink); font-weight: 800; font-size: 14px; padding: 10px 18px; border-radius: 999px; }

/* Sources. Every legal claim on this site points at a government page. */
.g-sources { background: var(--paper-soft); border: 1px solid var(--line); border-radius: var(--r-md); padding: 20px 22px; margin: 34px 0 0; font-size: 14px; line-height: 1.6; color: var(--muted); }
.g-sources h2 { font-size: 15px !important; margin: 0 0 12px !important; color: var(--text) !important; }
.g-sources ol { padding-left: 20px; margin: 0; }
.g-sources li { margin-bottom: 9px; }
.g-sources a { color: var(--teal-deep); word-break: break-word; }

.g-disc { margin: 30px 0 0; padding: 16px 18px; background: var(--paper-soft); border: 1px dashed var(--line); border-radius: var(--r-md); font-size: 13.5px; line-height: 1.6; color: var(--muted); }

/* Index cards */
.g-grid { display: grid; gap: 16px; padding: 38px 0 8px; }
@media (min-width: 760px) { .g-grid { grid-template-columns: 1fr 1fr; gap: 20px; } }
.g-card {
  display: block; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 24px 22px; text-decoration: none; color: inherit; box-shadow: var(--shadow-sm);
  transition: transform var(--t-fast), box-shadow var(--t-fast), border-color var(--t-fast);
}
.g-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: rgba(240,180,41,.5); }
.g-card .g-tag { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--gold-deep); }
.g-card h2 { font-size: 19px; font-weight: 800; letter-spacing: -.018em; color: var(--ink); margin: 9px 0 8px; line-height: 1.3; }
.g-card p { font-size: 14.5px; color: var(--muted); line-height: 1.58; margin: 0; }
.g-card .g-read { display: inline-block; margin-top: 14px; font-size: 13.5px; font-weight: 700; color: var(--teal-deep); }

.crumb { padding: 18px 0 0; font-size: 13px; color: var(--muted); }
.crumb a { color: var(--muted); text-decoration: none; }
.crumb a:hover { color: var(--ink); text-decoration: underline; }


  /* --- Navigation, final treatment -------------------------------------
     The links previously sat as five separate pieces of dim grey text with
     only the active one styled, so the set read as unfinished. They are now a
     single segmented control: one soft container, consistent rhythm inside it,
     and an active pill that looks deliberate rather than like a hover stuck on.
     Inactive items are lifted from .62 to .74 so they read as available rather
     than disabled. --------------------------------------------------------- */
  .nav-links {
    gap: 3px !important;
    background: rgba(255,255,255,.045);
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 14px;
    padding: 4px !important;
    flex: 0 1 auto !important;
    backdrop-filter: saturate(140%) blur(6px);
    -webkit-backdrop-filter: saturate(140%) blur(6px);
  }
  .nav-links a {
    position: relative;
    color: rgba(255,255,255,.74) !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
    letter-spacing: -.008em;
    padding: 8px 14px !important;
    border-radius: 10px;
    white-space: nowrap;
    background: transparent;
    transition: color .2s cubic-bezier(.4,0,.2,1),
                background .2s cubic-bezier(.4,0,.2,1),
                box-shadow .2s cubic-bezier(.4,0,.2,1);
  }
  .nav-links a:hover {
    color: #fff !important;
    background: rgba(255,255,255,.085);
  }
  .nav-links a:active { background: rgba(255,255,255,.14); }
  .nav-links a:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

  /* Active item: a real pill with a top highlight so it sits above the bar
     rather than being a flat wash of white. */
  .nav-links a.on {
    color: #fff !important;
    background: linear-gradient(180deg, rgba(255,255,255,.17), rgba(255,255,255,.10));
    box-shadow: inset 0 1px 0 rgba(255,255,255,.22),
                0 1px 2px rgba(0,0,0,.18);
  }
  .nav-links a.on::before {
    content: ''; display: inline-block;
    width: 5px; height: 5px; border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 0 2px rgba(240,180,41,.22);
    margin-right: 8px; vertical-align: 1.5px;
  }
  .nav-links a.on::after { display: none !important; }

  /* The language switch is a sibling control, so it should share the shape. */
  .lang-pill {
    background: rgba(255,255,255,.045);
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 999px;
    padding: 3px;
  }
  .lang-pill button {
    border-radius: 999px;
    transition: background .18s cubic-bezier(.4,0,.2,1), color .18s;
  }
  .lang-pill button:not(.on):hover { background: rgba(255,255,255,.08); color: #fff; }
  .lang-pill button.on { box-shadow: 0 1px 2px rgba(0,0,0,.2); }

  @media (max-width: 1080px) and (min-width: 900px) {
    .nav-links a { padding: 8px 11px !important; font-size: 13px !important; }
  }

/* Account button. Shared by the guide pages, which use this stylesheet rather
   than an inline style block. Must match the treatment on index and tribinal. */
.nav-account {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--gold); color: var(--ink) !important;
  font-size: 13.5px; font-weight: 800; letter-spacing: -.005em;
  padding: 9px 16px; border-radius: 999px; text-decoration: none !important;
  white-space: nowrap; border: 1px solid rgba(0,0,0,.06);
  box-shadow: 0 1px 2px rgba(11,15,44,.16), inset 0 1px 0 rgba(255,255,255,.45);
  transition: transform .18s cubic-bezier(.4,0,.2,1), box-shadow .18s cubic-bezier(.4,0,.2,1), background .18s;
}
.nav-account:hover {
  background: var(--gold-soft); color: var(--ink) !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(240,180,41,.34), inset 0 1px 0 rgba(255,255,255,.5);
}
.nav-account:active { transform: translateY(0); }
.nav-account:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.nav-account svg { flex: none; opacity: .8; }
.mobile-menu a.m-account {
  background: var(--gold); color: var(--ink) !important;
  font-weight: 800; border-radius: 12px; margin-top: 8px;
  text-align: center; border-bottom: 0 !important;
}
