/* Font URLs carry ?v=2: the fonts gained a CORS header for the admin's page
   preview (web/server/security.ts fontCors), and browsers had cached them for a
   year without it. Bump it again if their headers ever change. */
@font-face {
    font-family: 'Figtree';
    font-style: normal;
    font-weight: 400 700;           /* variable: one file per subset covers every weight */
    font-display: swap;
    src: url('../fonts/figtree-latin.woff2?v=2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Figtree';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('../fonts/figtree-latin-ext.woff2?v=2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Noto Sans Thai';
    font-style: normal;
    /* Google serves this as a variable font, so one file covers the range and
       the browser interpolates the weight rather than faking a bold. */
    font-weight: 400 700;
    font-display: swap;
    src: url('../fonts/noto-sans-thai.woff2?v=2') format('woff2-variations'),
         url('../fonts/noto-sans-thai.woff2?v=2') format('woff2');
    /* Thai block only: a page with no Thai glyphs never downloads it. */
    unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC;
}
/* Figtree has no Cyrillic. Onest (SIL Open Font Licence, from Google Fonts) is
   the nearest in shape and covers Russian; like the Thai face it is fetched
   only by a page that has Cyrillic on it. */
@font-face {
    font-family: 'Onest';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('../fonts/onest-cyrillic.woff2?v=1') format('woff2');
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}


/* Thai Expat Law — one hand-written stylesheet, no framework.
   Figtree for Latin text and Noto Sans Thai for Thai, both self-hosted in
   static/fonts (the CSP allows no third-party fonts). The palette and type
   follow the 2026-09 home page redesign; its tokens are below. */

:root {
    --ink:        #1d2125;
    --bg:         #ffffff;
    --bg-alt:     #f4f6f8;   /* surfaces and bands */
    --ink-soft:   color-mix(in srgb, var(--ink) 72%, var(--bg));
    --line:       color-mix(in srgb, var(--ink) 11%, var(--bg));

    /* The accent scale. --accent-dk is links, eyebrows and, since 2026-09-24,
       the primary button: white on --accent was about 4.1:1, under the 4.5:1
       AA minimum for text this size; white on --accent-dk is about 7:1. The
       button's colours are their own tokens so dark mode can keep --accent. */
    --accent:        #0088b0;
    --accent-hover:  #1186ac;
    --accent-dk:     #006786;
    --accent-800:    #004961;
    --accent-900:    #0a303e;
    --accent-100:    #e9f8ff;
    --on-accent:     #ffffff;
    --button:        var(--accent-dk);
    --button-hover:  var(--accent-800);
    --button-active: var(--accent-900);

    /* The action on an always-dark panel: white, with a dark label. Not
       redefined for dark mode: the panel is dark in both themes. */
    --accent-panel:    #ffffff;
    --on-accent-panel: #0a303e;

    /* Always-dark panels. Deliberately NOT redefined for dark mode: --ink is a
       text colour and inverts, which turned these panels near-white while their
       text stayed light. */
    --panel:      #0a303e;
    --on-panel:   #d3e9f2;
    --warn-bg:    #fff1f4;
    --warn-ink:   #790e3d;
    --focus:      #0088b0;
    --shadow-lg:  0 12px 32px rgba(45, 43, 43, 0.22);

    /* Chinese uses the reader's own fonts: a Chinese web font is several
       megabytes, and nothing is loaded from other sites. The names after
       Arial are only reached by characters the earlier fonts lack. */
    --sans: "Figtree", "Onest", "Noto Sans Thai", -apple-system, BlinkMacSystemFont,
            "Segoe UI", "Noto Sans", Helvetica, Arial, "PingFang SC",
            "Microsoft YaHei", "Noto Sans CJK SC", "Noto Sans SC", sans-serif;
    --serif: var(--sans);       /* headings are Figtree 600 now; the name stays */

    --wrap: 77.5rem;            /* 1240px */
    --gutter: clamp(20px, 5vw, 64px);
    --radius: 24px;
}

/* The site is always light (David, 2026-11-25: it looked "very dark" on a
   device set to dark mode, and he wants a white background). The dark tokens
   stay for a possible switch: they apply only to <html data-theme="dark">,
   which nothing sets today. */
:root { color-scheme: light; }
:root[data-theme="dark"] {
    color-scheme: dark;
    --ink:          #e6ebef;
    --bg:           #0f1519;
    --bg-alt:       #172128;
    --accent:       #37abd3;
    --accent-hover: #5bbde0;
    --accent-dk:    #6cc6e6;
    --accent-800:   #9fdcf1;
    --accent-900:   #d5f0fa;
    --accent-100:   #0f2c37;
    --on-accent:    #06222c;
    --button:        var(--accent);
    --button-hover:  var(--accent-hover);
    --button-active: var(--accent-dk);
    --warn-bg:      #3a1a26;
    --warn-ink:     #f6c9d8;
    --focus:        #6cc6e6;
    --shadow-lg:    0 12px 32px rgba(0, 0, 0, 0.5);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 1.0625rem;
    line-height: 1.65;
}

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

a { color: var(--accent-dk); }
a:hover { color: var(--accent); }

/* The accent sits close to the body ink by design, so running text relies on
   the underline to mark a link rather than on colour. */
.prose p > a:not(.button),
.prose li > a:not(.button),
.prose td > a:not(.button),
.untranslated a:not(.button),
.law-note a {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.2em;
    text-decoration-color: color-mix(in srgb, currentColor 45%, transparent);
}
.prose p > a:not(.button):hover,
.prose li > a:not(.button):hover,
.prose td > a:not(.button):hover,
.untranslated a:not(.button):hover,
.law-note a:hover {
    text-decoration-thickness: 2px;
    text-decoration-color: currentColor;
}

:focus-visible {
    outline: 2px solid var(--focus);
    outline-offset: 2px;
}

h1, h2, h3, h4 { font-weight: 600; letter-spacing: -0.015em; }

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.skip-link {
    position: absolute;
    left: -9999px;
}
.skip-link:focus {
    left: 1rem;
    top: 1rem;
    z-index: 10;
    background: var(--bg);
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--line);
}

/* --- review banner: only ever appears on preview builds --- */
.review-banner {
    background: var(--warn-bg);
    color: var(--warn-ink);
    padding: 8px var(--gutter);
    text-align: center;
    font-size: 13px;
    line-height: 20px;
}
.review-banner p { margin: 0; }
.review-banner ul {
    max-width: 60rem;
    margin: 0.5rem auto 0;
    text-align: left;
    font-weight: 400;
}

/* --- header: sticky, translucent, 72px --- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: color-mix(in srgb, var(--bg) 94%, transparent);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid color-mix(in srgb, var(--ink) 9%, transparent);
}
.header-inner {
    display: flex;
    align-items: center;
    gap: 12px 28px;
    min-height: 72px;
}
.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--ink);
    text-decoration: none;
    margin-right: auto;
    min-width: 0;
}
.brand:hover { color: var(--ink); }
.brand-mark {
    flex: none;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: var(--accent-dk);
    color: #fff;
    display: grid;
    place-items: center;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.02em;
}
.brand-name {
    font-weight: 600;
    font-size: 19px;
    letter-spacing: -0.01em;
    white-space: nowrap;
}
.nav {
    display: flex;
    align-items: center;
    gap: 28px;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 15px;
}
.nav a {
    color: var(--ink);
    text-decoration: none;
    white-space: nowrap;
}
.nav a:hover,
.nav a[aria-current="page"] { color: var(--accent-dk); }

/* language menu: a <details>, so it works without script; site.js closes it
   on an outside click or Esc */
.lang-menu { position: relative; flex: none; }
.lang-button {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    border-radius: 999px;
    border: 1px solid color-mix(in srgb, var(--ink) 16%, transparent);
    background: var(--bg);
    color: var(--ink);
    font-size: 15px;
    white-space: nowrap;
    min-height: 44px;
}
.lang-button::-webkit-details-marker { display: none; }
.lang-button:hover,
.lang-menu[open] .lang-button { border-color: var(--accent-dk); }
.lang-menu[open] .lang-chevron { transform: rotate(180deg); }
.lang-list {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    z-index: 60;
    min-width: 180px;
    margin: 0;
    padding: 6px;
    list-style: none;
    background: var(--bg);
    border-radius: 16px;
    border: 1px solid color-mix(in srgb, var(--ink) 8%, transparent);
    box-shadow: var(--shadow-lg);
}
.lang-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    color: var(--ink);
    text-decoration: none;
    font-size: 15px;
}
.lang-list a:hover { background: var(--bg-alt); }
.lang-check { color: var(--accent-dk); }

.header-cta { flex: none; }
/* client login: the portal, on its own domain. A person icon with its label. */
.login-link {
    flex: none;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    border-radius: 999px;
    border: 1px solid color-mix(in srgb, var(--ink) 16%, transparent);
    background: var(--bg);
    color: var(--ink);
    font-size: 15px;
    text-decoration: none;
    white-space: nowrap;
    min-height: 44px;
}
.login-link:hover { border-color: var(--accent-dk); color: var(--accent-dk); }
.nav .nav-login { display: none; }
/* With the full menu across the bar there is no room for the words: the
   bar was within 27px of full before this button existed. So the button is
   the icon alone there, and the bar's gaps give back the 64px it takes.
   Below that the menu folds into its button and the label has room again.
   The menu folds below 80rem (1280px): the full bar needs about 1250px, and
   between 1080 and 1250 it used to run over the firm's name. */
@media (min-width: 80rem) {
    .header-inner { column-gap: 20px; }
    .nav { gap: 18px; }
    .login-link { padding: 9px 12px; }
    .login-label {
        position: absolute; width: 1px; height: 1px; overflow: hidden;
        clip-path: inset(50%); white-space: nowrap;
    }
}

/* --- hero --- */
.hero {
    background: var(--bg-alt);
    border-bottom: 1px solid var(--line);
    padding-block: 3.5rem;
}
.hero h1 {
    font-family: var(--serif);
    font-size: clamp(2rem, 5vw, 3rem);
    line-height: 1.15;
    margin: 0 0 1rem;
    max-width: 22ch;
}

/* Image hero: the picture sits behind, the overlay carries the text.
   No inline styles anywhere -- the CSP forbids them. */
.hero-with-image {
    position: relative;
    padding: 0;
    isolation: isolate;
    background: var(--panel);
}
.hero-with-image .hero-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}
.hero-with-image::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(100deg,
        rgba(9, 16, 23, 0.92) 0%,
        rgba(9, 16, 23, 0.78) 45%,
        rgba(9, 16, 23, 0.38) 100%);
}
.hero-overlay {
    padding-block: clamp(3rem, 9vw, 6rem);
    color: #fff;
}
.hero-with-image h1 {
    color: #fff;
    max-width: 20ch;
    text-wrap: balance;
}
.hero-with-image .lede {
    color: #dbe4ec;
    max-width: 48ch;
}

/* Banner image on interior pages */
.page-hero {
    margin: 0;
    max-width: var(--wrap);
    margin-inline: auto;
    padding-inline: var(--gutter);
}
.page-hero .hero-img {
    display: block;
    width: 100%;
    height: clamp(11rem, 30vw, 20rem);
    object-fit: cover;
    border-radius: 6px;
    margin-top: 2rem;
}
.hero-credit {
    margin: 0.5rem 0 0;
    font-size: 0.8rem;
    line-height: 1.45;
    color: var(--ink-soft);
}
.hero-credit a { color: inherit; }
.hero-with-image .hero-credit { margin-top: 1.25rem; color: #c5d0da; }
.page-hero + .prose { padding-top: 1.5rem; }
/* a page video hosted on YouTube: poster and play button until pressed */
.yt-frame {
    position: relative;
    width: 100%;
    max-width: 48rem;
    aspect-ratio: 16 / 9;
    background: #0b1a24;
    border-radius: 6px;
    margin-top: 2rem;
    overflow: hidden;
}
.yt-frame img, .yt-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; object-fit: cover; }
/* the play control sits in the bottom-right corner, as a labelled pill, so it
   never covers the title drawn on the poster (David, 2026-11-25): the posters
   put their title on the left and a round emblem on the right that ends at
   72% of the height, which the pill clears even on a phone */
.yt-play {
    position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: flex-end;
    padding: clamp(0.6rem, 2.5vw, 1.25rem);
    text-decoration: none; background: linear-gradient(180deg, rgba(6,32,43,0) 55%, rgba(6,32,43,.55));
}
.yt-play-pill {
    display: inline-flex; align-items: center; gap: 0.6rem;
    padding: 0.4rem 1.1rem 0.4rem 0.4rem; border-radius: 999px;
    background: #fff; color: #06222c; font-weight: 600; font-size: 1rem; line-height: 1.2;
    box-shadow: 0 4px 24px rgba(0,0,0,.35);
    transition: transform .15s ease;
}
.yt-play-icon {
    display: flex; align-items: center; justify-content: center; width: 2.5rem; height: 2.5rem; border-radius: 50%;
    background: #006786; color: #fff; font-size: 1rem; padding-left: 0.15rem; flex: none;
    transition: background .15s ease;
}
.yt-play:hover .yt-play-pill, .yt-play:focus-visible .yt-play-pill { transform: scale(1.04); }
.yt-play:hover .yt-play-icon, .yt-play:focus-visible .yt-play-icon { background: #004961; }
.yt-play:focus-visible { outline: 3px solid #37abd3; outline-offset: -3px; }
@media (max-width: 40rem) {
    .yt-play-pill { font-size: 0.9rem; gap: 0.45rem; padding: 0.3rem 0.85rem 0.3rem 0.3rem; }
    .yt-play-icon { width: 2rem; height: 2rem; font-size: 0.85rem; }
}
/* a page video on home, landing and contact pages: its own band under the
   hero, on the alternate surface, with the player as a framed card and the
   video's title as a caption beneath it */
.video-band { background: var(--bg-alt); }
.home-section.video-band > .wrap { padding-block: clamp(1.5rem, 4vw, 3rem); }
.video-card { max-width: 56rem; margin: 0 auto; }
.video-band .page-hero { padding-inline: 0; margin: 0; }
.video-band .hero-video, .video-band .yt-frame {
    margin: 0; max-width: none; border-radius: 14px; box-shadow: var(--shadow-lg);
}
.video-caption { margin: 0.85rem 0 0; font-size: 0.95rem; color: var(--ink-soft); text-align: center; }
/* front matter `video`: a 16:9 player in place of the photo, left-aligned
   with the text below it and no wider than the reading column */
.page-video .hero-video {
    display: block;
    width: 100%;
    max-width: 48rem;
    height: auto;
    aspect-ratio: 16 / 9;
    background: #0b1a24;
    border-radius: 6px;
    margin-top: 2rem;
}

/* --- typography --- */
.prose { padding-block: 2.5rem; }
.prose h1 {
    font-family: var(--serif);
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    line-height: 1.2;
    margin: 0 0 1rem;
}
.prose h2 {
    font-family: var(--serif);
    font-size: 1.5rem;
    margin: 2.5rem 0 0.75rem;
}
.prose h3 {
    font-size: 1.2rem;
    margin: 2rem 0 0.5rem;
}
.prose p, .prose li { max-width: 68ch; }
.prose ul, .prose ol { padding-left: 1.25rem; }
.prose li { margin-bottom: 0.4rem; }
.lede {
    font-size: 1.2rem;
    color: var(--ink-soft);
    max-width: 60ch;
}
.meta, .breadcrumb {
    font-size: 0.9rem;
    color: var(--ink-soft);
}
.breadcrumb { margin-top: 0; }
blockquote {
    margin: 1.5rem 0;
    padding: 0.25rem 0 0.25rem 1.25rem;
    border-left: 3px solid var(--accent);
    color: var(--ink-soft);
}
table {
    border-collapse: collapse;
    width: 100%;
    margin: 1.5rem 0;
    font-size: 0.95rem;
}
th, td {
    border-bottom: 1px solid var(--line);
    padding: 0.6rem 0.75rem;
    text-align: left;
    vertical-align: top;
}
th { font-weight: 600; }
pre {
    overflow-x: auto;
    background: var(--bg-alt);
    padding: 1rem;
    border-radius: 4px;
}
hr {
    border: 0;
    border-top: 1px solid var(--line);
    margin: 2.5rem 0;
}

/* --- sections and cards --- */
.section { padding-block: 2.5rem; }
.section-alt {
    background: var(--bg-alt);
    border-block: 1px solid var(--line);
}
.section h2 {
    font-family: var(--serif);
    font-size: 1.6rem;
    margin: 0 0 1.5rem;
}
.cards {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr));
}
.card a {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;              /* clips the thumbnail to the rounded corner */
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--bg);
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s ease, transform 0.15s ease;
}
.card-img {
    display: block;
    width: 100%;
    /* The width/height attributes are kept so the browser reserves space and
       the layout does not shift, but the height one is a presentational hint
       that wins over aspect-ratio unless it is explicitly released. */
    height: auto;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    background: var(--bg-alt);
}
.card-body { padding: 1.1rem 1.25rem 1.25rem; }
.card a:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}
.card h3 {
    margin: 0 0 0.4rem;
    font-size: 1.05rem;
    color: var(--ink);
}
.card p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--ink-soft);
}

/* --- call to action --- */
.cta {
    background: var(--panel);
    color: #fff;
    padding-block: 3rem;
    margin-top: 3rem;
}
.cta h2 {
    font-family: var(--serif);
    font-size: 1.75rem;
    margin: 0 0 0.5rem;
}
.cta p {
    max-width: 55ch;
    color: var(--on-panel);
}
/* Every button is a pill. */
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 0.75rem;
    padding: 12px 20px;
    background: var(--button);
    color: var(--on-accent);
    border: 1px solid transparent;
    border-radius: 999px;
    font: inherit;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
    text-decoration: none;
    cursor: pointer;
}
.button:hover { background: var(--button-hover); color: var(--on-accent); }
.button:active { background: var(--button-active); }
.button-small { margin-top: 0; padding: 10px 18px; }
.button-ghost { background: transparent; color: var(--accent-dk); }
.button-ghost:hover { background: var(--accent-100); color: var(--accent-dk); }

/* --- enquiry form --- */
.enquiry {
    margin-top: 2rem;
    max-width: 38rem;
}
.form-row {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-bottom: 1.25rem;
}
.form-row label { font-weight: 600; font-size: 0.95rem; }
.form-row input,
.form-row textarea {
    font: inherit;
    color: var(--ink);
    background: var(--bg);
    min-height: 48px;
    padding: 0.65rem 0.85rem;
    border: 1px solid color-mix(in srgb, var(--ink) 20%, transparent);
    border-radius: 12px;
    width: 100%;
}
.form-row textarea { resize: vertical; }
.hp {
    position: absolute;
    left: -9999px;
    height: 0;
    overflow: hidden;
}
/* Cloudflare Turnstile's widget: it sizes itself (data-size=flexible) */
.cf-turnstile {
    min-height: 65px;
    margin: 0.25rem 0 0.75rem;
}

/* Turnstile's "flexible" size fills its container but will not go below 300px
   wide, and inside the enquiry card on a phone the container is narrower than
   that, so the widget hung over the card's edge. No sane amount of padding
   reaches 300px within a 375px screen, so scale it down to fit instead and
   reclaim the height the scale leaves behind. The bands are the widths where
   the container (viewport − 144px of nested padding) drops below the widget. */
@media (max-width: 27.75rem) {        /* 444px: container falls under 300 */
    .cf-turnstile {
        transform: scale(0.72);
        transform-origin: left top;
        min-height: 0;
        height: 47px;
    }
}
@media (max-width: 22rem) {           /* 352px */
    .cf-turnstile {
        transform: scale(0.55);
        height: 36px;
    }
}
.form-notice {
    font-size: 0.9rem;
    color: var(--ink-soft);
    border-left: 3px solid var(--accent);
    padding-left: 0.9rem;
    max-width: 60ch;
}

/* --- footer --- */
.site-footer {
    background: var(--bg-alt);
    padding-top: 44px;
    font-size: 14px;
    line-height: 24px;
    color: color-mix(in srgb, var(--ink) 72%, transparent);
}
.footer-grid {
    display: grid;
    gap: 36px 56px;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
    padding-bottom: 32px;
}
.footer-col {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.footer-brand {
    font-weight: 600;
    font-size: 18px;
    color: var(--ink);
}
.site-footer h2 {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0;
    color: var(--ink);
    margin: 0;
}
.footer-col a { color: inherit; text-decoration: none; }
.footer-col a:hover { color: var(--accent-dk); }
.disclaimer {
    margin: 0;
    font-size: 13px;
    line-height: 21px;
}
.footer-legal {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px 32px;
    padding-block: 20px 32px;
    border-top: 1px solid color-mix(in srgb, var(--ink) 9%, transparent);
    font-size: 13px;
    color: color-mix(in srgb, var(--ink) 65%, transparent);
}
.footer-legal p { margin: 0; }
.footer-regulatory-label { font-weight: 600; }
.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
}
.footer-links a { color: inherit; }


/* --- lead capture at the foot of articles and service pages --- */
.lead-capture {
    background: var(--bg-alt);
    border-top: 1px solid var(--line);
    padding-block: 3rem;
    margin-top: 3.5rem;
}
/* The office address and its map. The map box keeps the same height whether
   it holds the placeholder or the loaded frame, so nothing jumps. */
.office { margin-top: 2.5rem; }
.office-address { font-style: normal; line-height: 1.6; max-width: 34rem; }
.map {
    display: grid;
    place-content: center;
    gap: 0.75rem;
    margin-top: 1.25rem;
    padding: 1.5rem;
    min-height: 18rem;
    text-align: center;
    background: var(--bg-alt);
    border: 1px solid var(--line);
    border-radius: 6px;
}
.map-note { margin: 0; max-width: 32rem; font-size: 0.85rem; color: var(--ink-soft); }
.map-loaded { display: block; padding: 0; }
.map-loaded iframe { display: block; width: 100%; height: 18rem; border: 0; border-radius: 5px; }
.map-links { margin-top: 0.75rem; }
@media (max-width: 30rem) { .map { min-height: 14rem; } .map-loaded iframe { height: 14rem; } }

/* A campaign page's first form sits straight under the hero, so it takes no
   gap above it and no second rule across the top. */
.lead-capture-top { margin-top: 0; border-top: 0; }
.lead-capture h2 {
    font-family: var(--serif);
    font-size: 1.6rem;
    margin: 0 0 0.5rem;
}
.lead-intro {
    max-width: 60ch;
    color: var(--ink-soft);
    margin-top: 0;
}
.enquiry-inline { max-width: 44rem; }
.form-grid {
    display: grid;
    gap: 0 1rem;
    grid-template-columns: 1fr;
}

@media (min-width: 40rem) {
    .form-grid { grid-template-columns: 1fr 1fr; }
}


/* --- breadcrumbs --- */
.breadcrumbs {
    font-size: 0.875rem;
    color: var(--ink-soft);
    margin-bottom: 1rem;
}
.breadcrumbs a { color: var(--ink-soft); text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; text-underline-offset: 0.25em; }
.breadcrumbs span[aria-current] { color: var(--ink); }

/* --- attorney attribution --- */
.byline {
    font-size: 0.9rem;
    color: var(--ink-soft);
    border-left: 3px solid var(--accent);
    padding-left: 0.9rem;
    margin: 1.25rem 0 1.5rem;
    max-width: 60ch;
}
.byline-person { font-weight: 600; color: var(--ink); }
.byline-date { display: inline-block; }

/* --- related reading --- */
.related {
    background: var(--bg-alt);
    border-top: 1px solid var(--line);
    padding-block: 2.5rem;
    margin-top: 3rem;
}
.related h2 {
    font-family: var(--serif);
    font-size: 1.4rem;
    margin: 0 0 1.25rem;
}
.related + .lead-capture { margin-top: 0; border-top: 0; }

/* --- consent --- */
.form-consent {
    font-size: 0.9rem;
    max-width: 60ch;
}
.form-consent label {
    display: flex;
    gap: 0.6rem;
    align-items: flex-start;
    cursor: pointer;
}
.form-consent a {
    /* at least 24px to tap (WCAG 2.5.8) without moving the line */
    display: inline-block;
    padding-block: 4px;
    margin-block: -4px;
}
.form-consent input {
    flex: none;
    /* the browser default is 13px, which is a poor target on a phone */
    width: 1.25rem;
    height: 1.25rem;
    margin-top: 0.15rem;
    accent-color: var(--accent-dk);
}

/* --- team --- */
.people {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr));
}
.person {
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 1.25rem;
    background: var(--bg);
}
/* A card with a portrait puts it beside the text, and drops to a single
   column on a phone. Cards without one are unchanged, so the page holds
   together while the attorneys' photographs are still missing. */
.person-photo {
    display: grid;
    grid-template-columns: minmax(0, 7.5rem) minmax(0, 1fr);
    gap: 1.1rem;
    align-items: start;
}
.person-img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: 5px;
    background: var(--bg-alt);
}
@media (max-width: 26rem) {
    .person-photo { grid-template-columns: minmax(0, 1fr); }
    .person-img { max-width: 11rem; }
}
.person h3 { margin: 0 0 0.25rem; font-size: 1.05rem; }
/* The whole card is the link: the name's anchor stretches over it, so a tap
   anywhere on the card opens the person's page. */
.person-linked { position: relative; }
.person-link { color: var(--accent-dk); text-decoration: none; }
.person-link::after { content: ""; position: absolute; inset: 0; border-radius: 6px; }
.person-link:hover, .person-link:focus-visible { text-decoration: underline; }
.person-linked:hover { border-color: var(--accent-dk); }
.person-link:focus-visible::after { outline: 2px solid var(--accent-dk); outline-offset: 2px; }
.person .role { margin: 0 0 0.4rem; color: var(--ink-soft); font-size: 0.95rem; }
.person .licence { margin: 0; font-size: 0.875rem; color: var(--ink-soft); }

/* A person's own page: the portrait floats beside the opening text and drops
   above it on a phone. flow-root keeps the float inside the article. */
.prose-portrait { display: flow-root; }
.portrait {
    float: right;
    width: 13.5rem;
    height: auto;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    margin: 0.25rem 0 1rem 1.75rem;
    border-radius: 5px;
    background: var(--bg-alt);
}
@media (max-width: 40rem) {
    .portrait { float: none; display: block; width: 100%; max-width: 11rem; margin: 0 0 1rem; }
}

/* --- print: people do print legal pages --- */
@media print {
    .site-header .nav, .lang-menu, .login-link, .header-cta, .cta,
    .lead-capture, .related, .review-banner, .skip-link { display: none; }
    body { font-size: 11pt; color: #000; background: #fff; }
    .page-hero, .hero-img, .hero-video { display: none; }
    a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; }
    .wrap { max-width: none; }
}

/* ==========================================================================
   Mobile. Written after measuring a real 375px viewport: the header was
   eating 223px before any content, 31 tap targets were under 40px, table
   columns were crushed to 116px, and the hero gradient ran left-to-right so
   text sat over the bright part of the photo on a narrow screen.
   ========================================================================== */

/* --- wide tables scroll instead of crushing their columns --- */
.table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 1.5rem 0;
    /* Edge shadows that appear only when there is more table to scroll to.
       The local/scroll attachment pair does the detection without JavaScript. */
    background-image:
        linear-gradient(to right, var(--bg), rgba(255, 255, 255, 0)),
        linear-gradient(to left, var(--bg), rgba(255, 255, 255, 0)),
        linear-gradient(to right, rgba(20, 33, 46, 0.18), rgba(255, 255, 255, 0)),
        linear-gradient(to left, rgba(20, 33, 46, 0.18), rgba(255, 255, 255, 0));
    background-position: left center, right center, left center, right center;
    background-repeat: no-repeat;
    background-size: 2.5rem 100%, 2.5rem 100%, 0.9rem 100%, 0.9rem 100%;
    background-attachment: local, local, scroll, scroll;
}
.table-scroll table { margin: 0; }
.table-scroll th,
.table-scroll td { min-width: 9rem; }
.table-scroll:focus-visible {
    outline: 3px solid var(--focus);
    outline-offset: 2px;
}

/* --- collapsible navigation, no JavaScript --- */
/* Toggled with a checkbox rather than <details>: a closed <details> gives its
   children a zero-size box that `display` cannot override, which collapsed the
   desktop nav. The checkbox stays focusable for keyboard users. */
.site-nav { flex: 0 1 auto; }

.nav-checkbox {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}
.nav-summary {
    display: none;                /* desktop: the list is always visible */
    cursor: pointer;
    padding: 10px 14px;
    border: 1px solid color-mix(in srgb, var(--ink) 16%, transparent);
    border-radius: 999px;
    font-size: 15px;
    font-weight: 600;
    min-height: 44px;
    align-items: center;
    user-select: none;
    white-space: nowrap;
}
.nav-checkbox:checked + .nav-summary,
.nav-button[aria-expanded="true"] { border-color: var(--accent-dk); color: var(--accent-dk); }
/* site.js swaps the checkbox and its label for a real button (aria-expanded);
   `hidden` must beat the mobile display: inline-flex below. */
.nav-summary[hidden], .nav-checkbox[hidden] { display: none; }
.nav-button { background: none; font: inherit; font-size: 15px; font-weight: 600; color: inherit; }
.nav-checkbox:focus-visible + .nav-summary {
    outline: 2px solid var(--focus);
    outline-offset: 2px;
}

/* Below 1080px the links fold into a Menu pill at the end of the bar. */
@media (max-width: 79.99rem) {
    .site-nav { order: 5; flex: none; }
    .nav-summary { display: inline-flex; }
    .site-nav > .nav { display: none; }
    .nav-checkbox:checked ~ .nav,
    .nav-button[aria-expanded="true"] ~ .nav {
        display: flex;
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        z-index: 30;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: var(--bg);
        border-top: 1px solid color-mix(in srgb, var(--ink) 9%, transparent);
        box-shadow: 0 12px 24px rgba(9, 16, 23, 0.12);
        padding: 8px var(--gutter) 20px;
        max-height: calc(100vh - 72px);
        overflow-y: auto;
    }
    .site-nav .nav a {
        display: flex;
        align-items: center;
        min-height: 52px;
        font-size: 18px;
        border-bottom: 1px solid color-mix(in srgb, var(--ink) 7%, transparent);
    }
}

/* A phone: the page carries its own consultation button, and the bar keeps
   room for the brand, the language and the menu. */
@media (max-width: 34.99rem) {
    .header-inner { gap: 8px; }
    .header-cta { display: none; }
    /* a phone shows the client login as the person icon in the bar (David,
       2026-11-20: it was only in the menu and he could not find it). Room for
       it comes from a slightly smaller name and a language button without its
       arrow. It stays as the last line of the menu too. */
    .login-link { padding: 9px 11px; }
    .login-label {
        position: absolute; width: 1px; height: 1px; overflow: hidden;
        clip-path: inset(50%); white-space: nowrap;
    }
    .nav .nav-login { display: block; }
    .brand { gap: 9px; }
    .brand-name { font-size: 17px; }
    .lang-globe, .lang-chevron { display: none; }
    .lang-button { padding: 9px 11px; gap: 0; }
}

/* the narrowest phones (under 368px): the login loses its ring, not its place */
@media (max-width: 22.99rem) {
    .header-inner { gap: 5px; }
    .login-link { border-color: transparent; background: none; padding: 9px 5px; }
    .brand-name { font-size: 16px; }
}
/* under 344px (the smallest phones) the bar has no room for the firm's name:
   the TEL mark stands for it. It ran under the language button there before. */
@media (max-width: 21.49rem) {
    .brand-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
}

@media (max-width: 51.99rem) {
    /* Vertical gradient so the heading and lede always sit on the dark part,
       whatever the photo is doing on the right. */
    .hero-with-image::after {
        background: linear-gradient(180deg,
            rgba(9, 16, 23, 0.82) 0%,
            rgba(9, 16, 23, 0.88) 55%,
            rgba(9, 16, 23, 0.94) 100%);
    }
    .hero-overlay { padding-block: 2.5rem; }

    /* Tap targets: footer and breadcrumb links are otherwise ~20px tall */
    .footer-col a,
    .footer-links a {
        display: inline-block;
        padding-block: 0.35rem;
    }
    .breadcrumbs { line-height: 2; }

    /* Full-width primary actions read as buttons on a phone */
    /* full-width primary actions read as buttons on a phone */
    .button:not(.button-small):not(.button-ghost) {
        display: flex;
        width: 100%;
    }
    .hero-overlay .button,
    .cta .button { width: auto; min-width: 14rem; }

    .prose { padding-block: 1.75rem; }
    .section { padding-block: 2rem; }
    .cta, .lead-capture, .related { padding-block: 2.25rem; }
}

/* Very narrow phones */
@media (max-width: 22rem) {
    .brand-name { font-size: 17px; }
}

/* --- navigation submenu (hover and :focus-within, no JavaScript) --- */
.has-sub { position: relative; }
.has-sub > a::after {
    content: "";
    display: inline-block;
    margin-left: 0.4rem;
    width: 0.4rem;
    height: 0.4rem;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
}
.subnav {
    list-style: none;
    margin: 0;
    padding: 0;
}

@media (min-width: 80rem) {
    /* the dropdown hangs from the bar's lower edge, with no gap to cross */
    .has-sub { padding-block: 24px; }
    .subnav {
        position: absolute;
        top: 100%;
        left: -12px;
        min-width: 14rem;
        display: none;
        flex-direction: column;
        gap: 0;
        padding: 6px;
        background: var(--bg);
        border: 1px solid color-mix(in srgb, var(--ink) 8%, transparent);
        border-radius: 16px;
        box-shadow: var(--shadow-lg);
        z-index: 40;
    }
    /* focus-within fires when the parent link itself is focused, which is what
       makes the children reachable by keyboard at all */
    .has-sub:hover > .subnav,
    .has-sub:focus-within > .subnav { display: flex; }
    .subnav a {
        display: block;
        padding: 10px 12px;
        border-radius: 10px;
        white-space: nowrap;
    }
    .subnav a:hover { background: var(--bg-alt); }
}

@media (max-width: 79.99rem) {
    /* in the menu sheet the whole tree is simply listed */
    .site-nav .subnav li a { padding-left: 1.25rem; font-size: 16px; }
    .has-sub > a::after { display: none; }
}

/* --- statute pages --- */
.law-note {
    font-size: 0.9rem;
    color: var(--ink-soft);
    background: var(--bg-alt);
    border-left: 3px solid var(--accent);
    padding: 0.85rem 1rem;
    max-width: 68ch;
}
.prose blockquote.statute {
    font-family: var(--serif);
    font-size: 1.02rem;
    background: var(--bg-alt);
    border-left: 3px solid var(--ink-soft);
    padding: 1rem 1.25rem;
    color: var(--ink);
}

/* --- a page that exists only until it is translated --- */
.untranslated {
    background: var(--bg-alt);
    border: 1px solid var(--line);
    border-left: 3px solid var(--accent);
    border-radius: 6px;
    padding: 1.25rem 1.5rem;
    max-width: 60ch;
}
.untranslated p:first-child { margin-top: 0; color: var(--ink-soft); }
.untranslated p:last-child { margin-bottom: 0; }
.untranslated .button { margin-top: 0.25rem; }

/* Primary action sitting on a dark panel. The base teal is tuned for white
   backgrounds and goes muddy against the ink, so lift it here — and flip the
   label to dark, because white on a teal this bright falls under 4.5:1. */
.hero-with-image .button,
.cta .button {
    background: var(--accent-panel);
    color: var(--on-accent-panel);
}
.hero-with-image .button:hover,
.cta .button:hover {
    background: #d9eff7;
    color: var(--on-accent-panel);
}

/* --- site search --- */
.site-search { margin: 1.5rem 0 0; max-width: 34rem; }
.site-search label {
    display: block;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.35rem;
}
.site-search input {
    font: inherit;
    font-size: 1.1rem;
    color: var(--ink);
    background: var(--bg);
    width: 100%;
    padding: 0.7rem 0.85rem;
    border: 1px solid var(--line);
    border-radius: 4px;
}
.search-count {
    margin: 0.5rem 0 0;
    font-size: 0.9rem;
    color: var(--ink-soft);
    min-height: 1.4em;          /* reserve the line so results do not jump */
}
.search-results { padding-bottom: 1rem; }
.result-group { margin-top: 2rem; }
.result-group h2 {
    font-family: var(--serif);
    font-size: 1.3rem;
    margin: 0 0 0.75rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid var(--line);
}
.results { list-style: none; margin: 0; padding: 0; }
.result { padding: 0.7rem 0; border-bottom: 1px solid var(--line); }
.result:last-child { border-bottom: 0; }
.result a { font-weight: 600; }
.result p {
    margin: 0.2rem 0 0;
    font-size: 0.95rem;
    color: var(--ink-soft);
    max-width: 70ch;
}
.search-empty {
    color: var(--ink-soft);
    background: var(--bg-alt);
    border-left: 3px solid var(--accent);
    padding: 0.9rem 1rem;
    max-width: 60ch;
}


/* Campaign landing pages -------------------------------------------------

   These are read at arm's length by someone who arrived from an ad, so they
   get three things the editorial pages do not: the offer repeated as a button
   near the top, the enforcement figures as figures rather than sentences, and
   the next steps as a numbered run. */

.cta-inline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1rem;
    margin: 1.5rem 0 2.25rem;
}
.cta-note {
    color: var(--ink-soft);
    font-size: 0.9rem;
}

/* The bullets carry most of the argument here, so give them more air and a
   marker that reads as a checklist rather than a list of caveats. */
.landing ul {
    list-style: none;
    padding-left: 0;
}
.landing ul li {
    position: relative;
    padding-left: 1.6rem;
    margin-bottom: 0.6rem;
}
.landing ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: var(--accent);
}
.landing h2 {
    margin-top: 2.5rem;
}

.stat-band {
    background: var(--panel);
    color: var(--on-panel);
    padding-block: 2.5rem;
    margin-top: 3rem;
}
.stat-intro {
    margin: 0 0 1.5rem;
    max-width: 46ch;
    font-family: var(--serif);
    font-size: 1.15rem;
}
.stats {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: 1fr;
}
.stat-figure {
    font-family: var(--serif);
    font-size: 2rem;
    line-height: 1.1;
    margin: 0 0 0.35rem;
    font-variant-numeric: tabular-nums;
}
.stat-label {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.45;
    opacity: 0.85;
}

.steps-band {
    background: var(--bg-alt);
    border-top: 1px solid var(--line);
    padding-block: 2.75rem;
}
.steps-band h2 {
    font-family: var(--serif);
    font-size: 1.5rem;
    margin: 0 0 1.5rem;
}
.steps {
    list-style: none;
    counter-reset: step;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 1.25rem;
    grid-template-columns: 1fr;
}
.step {
    counter-increment: step;
    position: relative;
    padding-top: 2.5rem;
    border-top: 2px solid var(--accent);
}
.step::before {
    content: counter(step);
    position: absolute;
    top: 0.85rem;
    left: 0;
    font-family: var(--serif);
    font-size: 1.5rem;
    line-height: 1;
    color: var(--accent);
}
.step-title {
    font-weight: 600;
    margin: 0 0 0.35rem;
}
.step-body {
    margin: 0;
    color: var(--ink-soft);
    font-size: 0.95rem;
    line-height: 1.5;
}

@media (min-width: 40rem) {
    /* auto-fit so three or four figures both lay out cleanly */
    .stats { grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: 2rem 1.75rem; }
    .steps { grid-template-columns: repeat(3, 1fr); }
    .stat-figure { font-size: 2.4rem; }
}


/* Landing hero: the offer sits on the image, not below it. */
.landing-hero h1 { font-size: clamp(2rem, 5.2vw, 3.1rem); }
.landing-hero .lede { font-size: 1.1rem; }
.landing-hero .cta-inline { margin-bottom: 0; }
/* A campaign CTA has one job, so it takes the highest contrast the dark
   panel allows rather than the restrained graphite used elsewhere. */
.landing-hero .button,
.cta-band .button {
    background: #ffffff;
    color: #10171f;
    font-size: 1.05rem;
    padding: 0.85rem 1.6rem;
}
.landing-hero .button:hover,
.cta-band .button:hover { background: #e6ecf2; }
.landing-hero .cta-note { color: #c3cfda; }

/* The figures come straight after the hero, before the argument, because
   they are the argument's evidence and most readers will not reach the end. */
.stat-band + .landing { padding-top: 2.5rem; }
.landing > h2:first-child { margin-top: 0; }

/* Exposure as cards. A run of dashes reads as small print; these do not. */
.risks-band {
    background: var(--bg-alt);
    border-block: 1px solid var(--line);
    padding-block: 2.75rem;
    margin-top: 3rem;
}
.risks-band h2 {
    font-family: var(--serif);
    font-size: 1.6rem;
    margin: 0 0 1.5rem;
}
.risks {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr;
}
.risk {
    background: var(--bg);
    border: 1px solid var(--line);
    border-left: 3px solid var(--accent);
    border-radius: 4px;
    padding: 1.1rem 1.25rem;
}
.risk-title {
    font-weight: 600;
    margin: 0 0 0.4rem;
}
.risk-body {
    margin: 0;
    color: var(--ink-soft);
    font-size: 0.95rem;
    line-height: 1.55;
}
.risks-note {
    margin: 1.5rem 0 0;
    max-width: 62ch;
    color: var(--ink-soft);
    font-size: 0.95rem;
}

/* The offer again, once the argument has been made. */
.cta-band {
    background: var(--panel);
    color: var(--on-panel);
    padding-block: 2.75rem;
    text-align: center;
}
.cta-band-line {
    font-family: var(--serif);
    font-size: clamp(1.25rem, 3vw, 1.7rem);
    line-height: 1.3;
    max-width: 34ch;
    margin: 0 auto 1.5rem;
    text-wrap: balance;
}
.cta-band .cta-note {
    display: block;
    margin-top: 0.9rem;
    color: #b6c3d0;
}

@media (min-width: 46rem) {
    .risks { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
}

/* The figures butt straight onto the hero: one dark block, no white seam. */
.landing-hero + .stat-band { margin-top: 0; }


/* Home page ---------------------------------------------------------------

   One goal: book the free 20-minute consultation. Hero with the route
   chooser, the national figures, the risks, how it works, who we are, then
   the enquiry panel. Breakpoints from the design: 1000px (four across becomes
   two), 760px (two columns become one), 560px (two across becomes one). */

.muted { color: color-mix(in srgb, var(--ink) 80%, transparent); }

.two-col {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px clamp(28px, 4vw, 64px);
    align-items: start;
}
.two-col-center { align-items: center; }

.eyebrow {
    margin: 0 0 10px;
    font-size: 15px;
    font-weight: 600;
    color: var(--accent-dk);
}
.band-title,
.section-title {
    margin: 0;
    max-width: 22ch;
    font-size: clamp(26px, 2.8vw, 36px);
    font-weight: 600;
    line-height: 1.12;
    letter-spacing: -0.02em;
    text-wrap: balance;
}
.section-title { max-width: 20ch; }
.section-lede {
    margin: 16px 0 0;
    max-width: 46ch;
    font-size: 17px;
    line-height: 29px;
    color: color-mix(in srgb, var(--ink) 80%, transparent);
}
.check { color: var(--accent-dk); }

/* --- hero and route chooser --- */
.home-hero > .wrap { padding-block: clamp(40px, 6vw, 72px) clamp(40px, 5vw, 64px); }
.tag {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 20px;
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--accent-100);
    color: var(--accent-800);
    font-size: 14px;
}
.tag-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
}
.home-hero h1 {
    margin: 0;
    font-size: clamp(36px, 4.6vw, 60px);
    font-weight: 600;
    line-height: 1.06;
    letter-spacing: -0.025em;
    text-wrap: balance;
}
.home-hero .lede {
    margin: 20px 0 0;
    max-width: 48ch;
    font-size: 18px;
    line-height: 30px;
    color: color-mix(in srgb, var(--ink) 80%, transparent);
}
.trust {
    list-style: none;
    margin: 24px 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 28px;
    font-size: 15px;
    color: color-mix(in srgb, var(--ink) 78%, transparent);
}
.trust li { display: flex; gap: 8px; align-items: baseline; }

.route-chooser {
    background: var(--bg-alt);
    border-radius: var(--radius);
    overflow: hidden;
}
.route-head { padding: 24px 24px 20px; }
.route-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0;
}
.route-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}
.route-tab {
    cursor: pointer;
    font: inherit;
    font-size: 14px;
    padding: 8px 14px;
    min-height: 40px;
    border-radius: 999px;
    border: 1px solid color-mix(in srgb, var(--ink) 20%, transparent);
    background: transparent;
    color: var(--ink);
}
.route-tab:hover { border-color: var(--accent-dk); color: var(--accent-dk); }
.route-tab[aria-selected="true"] {
    border-color: var(--accent-dk);
    background: var(--accent-dk);
    color: #fff;
}
.route-photo {
    margin: 0 16px;
    aspect-ratio: 16 / 8;
    border-radius: 16px;
    overflow: hidden;
}
.route-photo img,
.who-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.route-body {
    padding: 20px 24px 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.route-kicker,
.route-note {
    font-size: 13px;
    color: color-mix(in srgb, var(--ink) 65%, transparent);
}
.route-body p {
    margin: 0;
    min-height: 78px;
    font-size: 15.5px;
    line-height: 26px;
}
.route-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
}
.route-actions .button { margin-top: 0; }
.route-note { margin-top: 4px; }

/* --- bands: the figures and how it works --- */
.band { background: var(--bg-alt); }
.band > .wrap { padding-block: clamp(48px, 6vw, 80px); }
.band-head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: end;
    gap: 20px 48px;
}
.band-sources {
    margin: 0;
    font-size: 13px;
    color: color-mix(in srgb, var(--ink) 68%, transparent);
}
.band-note {
    margin: 24px 0 0;
    max-width: 70ch;
    font-size: 15.5px;
    line-height: 26px;
    color: color-mix(in srgb, var(--ink) 80%, transparent);
}
.tile-grid {
    list-style: none;
    margin: 32px 0 0;
    padding: 0;
    display: grid;
    gap: 16px;
}
.tile-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tile {
    background: var(--bg);
    border-radius: var(--radius);
}
.figure-tile {
    padding: 26px 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.figure {
    margin: 0;
    font-size: clamp(38px, 3.6vw, 52px);
    font-weight: 600;
    line-height: 1;
    letter-spacing: -0.025em;
    font-variant-numeric: lining-nums;
}
.figure-label {
    margin: 0;
    font-size: 15px;
    line-height: 24px;
    color: color-mix(in srgb, var(--ink) 76%, transparent);
}
.step-grid { gap: 20px; }
.step-tile {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.step-num {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--ink);
    color: var(--bg);
    display: grid;
    place-items: center;
    font-size: 15px;
    font-weight: 600;
    font-variant-numeric: lining-nums;
}
.step-tile h3 {
    margin: 8px 0 0;
    font-size: 20px;
    line-height: 26px;
    letter-spacing: -0.01em;
}
.step-tile p {
    margin: 0;
    font-size: 15px;
    line-height: 25px;
    color: color-mix(in srgb, var(--ink) 78%, transparent);
}

/* --- the risks, as an accordion (native <details name>) --- */
.home-section > .wrap { padding-block: clamp(48px, 6vw, 80px); }
.risks-lead { position: sticky; top: 96px; }
.acc-row { border-top: 1px solid color-mix(in srgb, var(--ink) 11%, transparent); }
.acc-row summary {
    list-style: none;
    cursor: pointer;
    display: grid;
    grid-template-columns: 40px 1fr 24px;
    gap: 12px;
    align-items: center;
    padding: 20px 0;
}
.acc-row summary::-webkit-details-marker { display: none; }
.acc-row summary:hover { color: var(--accent-dk); }
.acc-num {
    font-size: 14px;
    font-weight: 600;
    color: var(--ink-soft);         /* 55% ink was 3.7:1, under AA */
    font-variant-numeric: lining-nums tabular-nums;
}
.acc-title {
    font-size: 21px;
    font-weight: 600;
    line-height: 28px;
    letter-spacing: -0.01em;
}
.acc-sign::before {
    content: "+";
    display: block;
    text-align: center;
    font-size: 22px;
    line-height: 1;
    color: var(--accent-dk);
}
.acc-row[open] .acc-sign::before { content: "\2212"; }
.acc-body {
    margin: -6px 0 0;
    padding: 0 36px 22px 52px;
    font-size: 15.5px;
    line-height: 26px;
    color: color-mix(in srgb, var(--ink) 78%, transparent);
}

/* --- who we are --- */
.who-photo {
    margin: 0;
    aspect-ratio: 4 / 3;
    border-radius: var(--radius);
    overflow: hidden;
}
.who-points {
    list-style: none;
    margin: 24px 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 24px;
}
.who-points li {
    display: flex;
    gap: 10px;
    align-items: baseline;
    font-size: 15.5px;
    line-height: 24px;
    font-weight: 600;
}
.who-refuse {
    margin-top: 32px;
    padding: 24px;
    border-radius: var(--radius);
    border: 1px solid color-mix(in srgb, var(--ink) 11%, transparent);
}
.who-refuse p { margin: 0; }
.who-refuse-title {
    margin: 0 0 6px !important;
    font-size: 14px;
    font-weight: 600;
}
.who-refuse p:last-child {
    font-size: 15px;
    line-height: 25px;
    color: color-mix(in srgb, var(--ink) 80%, transparent);
}
.more-link { margin: 24px 0 0; }
.more-link a {
    font-weight: 600;
    color: var(--accent-dk);
    text-decoration: none;
}
.more-link a:hover { text-decoration: underline; text-underline-offset: 0.2em; }

/* --- the enquiry panel --- */
.home-enquire > .wrap { padding-block: 0 clamp(48px, 6vw, 80px); }
.enquire-panel {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px clamp(28px, 4vw, 56px);
    align-items: start;
    padding: clamp(28px, 4vw, 52px);
    border-radius: var(--radius);
    background: var(--accent-100);
    color: var(--accent-900);
}
.enquire-text h2 {
    margin: 0;
    max-width: 14ch;
    font-size: clamp(30px, 3.6vw, 48px);
    font-weight: 600;
    line-height: 1.08;
    letter-spacing: -0.025em;
    color: var(--accent-900);
}
.enquire-text > p {
    margin: 20px 0 0;
    max-width: 42ch;
    font-size: 17px;
    line-height: 29px;
}
.offer-steps {
    list-style: none;
    margin: 32px 0 0;
    padding: 0;
    max-width: 42ch;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.offer-steps li {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    font-size: 15.5px;
    line-height: 26px;
}
.offer-steps strong { font-weight: 600; }
.offer-num {
    flex: none;
    width: 26px;
    height: 26px;
    margin-top: 1px;
    border-radius: 50%;
    background: var(--accent-dk);
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 13px;
    font-weight: 600;
}
.enquire-card {
    padding: clamp(24px, 3vw, 36px);
    border-radius: 20px;
    background: var(--bg);
    color: var(--ink);
}
.enquire-card .enquiry { margin: 0; max-width: none; }
.enquire-card .form-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
    gap: 0 18px;
}
.enquire-card .form-row label { font-weight: 500; }
.enquire-card .form-consent { font-size: 14px; line-height: 22px; }
.enquire-card .form-notice {
    border-left: 0;
    padding-left: 0;
    font-size: 13px;
    line-height: 21px;
    color: color-mix(in srgb, var(--ink) 70%, transparent);
}
.enquire-card button[type="submit"] { width: 100%; }

@media (max-width: 62.49rem) {        /* 1000px */
    .tile-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 47.49rem) {        /* 760px */
    /* A `1fr` track keeps an automatic minimum of min-content, so the form
       card would not shrink and the panel scrolled sideways at 375px. */
    .two-col,
    .enquire-panel { grid-template-columns: minmax(0, 1fr); }
    .enquire-panel > * { min-width: 0; }
    .risks-lead { position: static; }
}
@media (max-width: 34.99rem) {        /* 560px */
    .tile-grid-4 { grid-template-columns: 1fr; }
    .acc-body { padding: 0 0 22px 52px; }
}
@media (max-width: 29.99rem) {        /* 480px */
    .who-points { grid-template-columns: 1fr; }
}

/* Thai stacks vowel and tone marks above and below the line, so the tight
   Latin heading leading clips them. */
:lang(th) h1, :lang(th) h2, :lang(th) h3,
:lang(th) .figure, :lang(th) .acc-title { line-height: 1.35; }
:lang(th) .home-hero h1 { letter-spacing: 0; }

/* --- reduced motion: no hover lifts, transitions or smooth scrolling --- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .card a:hover { transform: none; }
}


/* Home: the opening band ------------------------------------------------

   One photograph and a short word about the firm, above the nominee
   proposition. It carries no <h1>: the page's heading stays on the section
   below, where the search terms are. */

.home-intro {
    position: relative;
    isolation: isolate;
    background: var(--panel);
}
.intro-photo {
    margin: 0;
    position: absolute;
    inset: 0;
    z-index: -2;
}
.intro-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.home-intro::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(100deg,
        rgba(6, 26, 34, 0.93) 0%,
        rgba(6, 26, 34, 0.80) 42%,
        rgba(6, 26, 34, 0.42) 100%);
}
.intro-overlay {
    padding-block: clamp(3.5rem, 9vw, 6.5rem);
    color: #fff;
}
.intro-eyebrow {
    margin: 0 0 0.75rem;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: #9fc4d4;
}
.intro-title {
    margin: 0 0 1rem;
    max-width: 24ch;
    font-family: var(--serif);
    font-size: clamp(1.75rem, 4.2vw, 2.7rem);
    font-weight: 600;
    line-height: 1.15;
    text-wrap: balance;
    color: #fff;
}
.intro-body {
    margin: 0 0 0.85rem;
    max-width: 56ch;
    font-size: 1.05rem;
    line-height: 1.6;
    color: #dbe9f0;
}
.intro-more {
    margin: 1.25rem 0 0;
}
.intro-more a {
    color: #fff;
    font-weight: 600;
    text-underline-offset: 0.25em;
}


/* Home: the practice cards, and the bands after the move ------------------

   The nominee argument moved to /services/nominee/ (2026-09-25), so the route
   chooser now stands on its own rather than filling the right half of a
   two-column hero, and the intro band carries the ✓ points and the call to
   action that used to sit beside it. */

.trust-on-dark {
    margin-top: 1.75rem;
    color: #cfe0e9;
}
.trust-on-dark .check { color: #8fd0e8; }

.intro-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1.25rem;
    margin: 1.75rem 0 0;
}
.intro-note {
    font-size: 0.9rem;
    color: #b7cdd8;
}

.practice-title { margin-top: 0.35rem; }
.practice-lede { max-width: 62ch; }
.practice-cards { margin-top: 2rem; }

/* The route chooser, standing on its own. */
.routes-band {
    background: var(--bg-alt);
    border-block: 1px solid var(--line);
    padding-block: clamp(2.5rem, 6vw, 4rem);
}
/* It was sized for the right half of a two-column hero; on its own it needs a
   ceiling or the photograph fills the screen. */
.routes-band .route-chooser {
    margin: 0 auto;
    max-width: 44rem;
}

/* Detail that follows the enquiry form on a practice-group page. It is there
   for the reader who wants it, so it sits back from the pitch above. */
.group-tail {
    padding-top: clamp(2.5rem, 6vw, 4rem);
    padding-bottom: clamp(1rem, 3vw, 2rem);
}
.group-tail h2 {
    font-size: clamp(1.35rem, 2.6vw, 1.7rem);
}

/* A language translated from the English says so on every page, with the way
   back to the English, which is the version that counts (David, 2026-11-20). */
.translation-note {
    margin: 0;
    padding: 14px 0;
    background: var(--bg-alt);
    border-top: 1px solid var(--line);
    font-size: 13px;
    line-height: 21px;
    color: var(--ink-soft);
}
.translation-note .wrap { display: block; }
.translation-note a { color: var(--accent-dk); }
