/* =====================================================================
   KCI Smart Import Export - design system

   Hand-written on purpose. There is no Node toolchain on the build
   machine, and a site of this size does not need one: the whole
   stylesheet is smaller than a framework's reset alone, and it ships
   fingerprinted and pre-compressed via MapStaticAssets.

   The look ("Harbour", 2026-11-25, replacing the navy-and-yellow look of 2026-10-27): white and light-blue
   pages, one confident KCI blue (#0B5CD5) for actions, lanes and highlights, slate text, green for what the
   client keeps. The "night" bands (home map, page heroes, footer) are light in the light theme and stay navy
   in the dark theme: their tokens are redefined in both dark blocks below. "Slab" panels are KCI blue.

   Fonts: Archivo for headings, IBM Plex Sans for text, IBM Plex Mono for
   codes (UN/LOCODEs, lanes). Self-hosted in wwwroot/fonts (latin subset, plus latin-ext for Polish,
   about 100 KB for the five latin files, OFL licences beside them), so there is no DNS
   lookup or third-party request and the CSP stays same-origin. The two
   that paint the first screen are preloaded from App.razor;
   font-display: swap paints the system stack until they arrive.
   ===================================================================== */

/* One file each serves the weight range above it, so the older 650-800 weights in the
   page modules use the semibold instead of a synthesized bold.

   Three subsets per face (Fontsource 5.3.0, the same release as the latin files): latin covers English, Dutch,
   French, German, Spanish, Italian and Indonesian; latin-ext adds what Polish needs (ą ć ę ł ń ś ź ż) and names
   like Gdańsk; vietnamese adds the stacked tone marks (declared last, so it wins where its range overlaps).
   The unicode-range makes the browser fetch a subset only for a page that has such a character. Japanese,
   Chinese, Korean, Thai, Hindi and Arabic use the system fonts named in the :lang() rules below. */
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 500 800; font-display: swap; src: url("fonts/archivo-latin-600-normal.woff2") 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: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/ibm-plex-sans-latin-400-normal.woff2") 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: "IBM Plex Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/ibm-plex-sans-latin-500-normal.woff2") 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: "IBM Plex Sans"; font-style: normal; font-weight: 600 800; font-display: swap; src: url("fonts/ibm-plex-sans-latin-600-normal.woff2") 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: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/ibm-plex-mono-latin-500-normal.woff2") 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: "Archivo"; font-style: normal; font-weight: 500 800; font-display: swap; src: url("fonts/archivo-latin-ext-600-normal.woff2") 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: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/ibm-plex-sans-latin-ext-400-normal.woff2") 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: "IBM Plex Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/ibm-plex-sans-latin-ext-500-normal.woff2") 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: "IBM Plex Sans"; font-style: normal; font-weight: 600 800; font-display: swap; src: url("fonts/ibm-plex-sans-latin-ext-600-normal.woff2") 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: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/ibm-plex-mono-latin-ext-500-normal.woff2") 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: "Archivo"; font-style: normal; font-weight: 500 800; font-display: swap; src: url("fonts/archivo-vietnamese-600-normal.woff2") format("woff2"); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/ibm-plex-sans-vietnamese-400-normal.woff2") format("woff2"); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/ibm-plex-sans-vietnamese-500-normal.woff2") format("woff2"); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 600 800; font-display: swap; src: url("fonts/ibm-plex-sans-vietnamese-600-normal.woff2") format("woff2"); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/ibm-plex-mono-vietnamese-500-normal.woff2") format("woff2"); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }

:root {
    /* Brand */
    --brand: #0b5cd5;
    --brand-strong: #0a4cb0;
    --brand-soft: #e8f1fe;
    --brand-contrast: #ffffff;

    --accent: #2f9e6a;
    --accent-soft: #e4f5ec;

    /* Surfaces */
    --bg: #ffffff;
    --bg-sunken: #f2f5f8;
    --surface: #ffffff;
    --border: #d8e0e7;
    --border-soft: #e4eaef;

    /* Text */
    --text: #0f2236;
    --text-muted: #4f6377;
    --text-faint: #6f8295;

    /* State */
    --ok: #1e8e3e;
    --ok-soft: #e6f4ea;
    --warn: #e37400;
    --warn-soft: #fef7e0;
    --danger: #d93025;
    --danger-soft: #fce8e6;

    /* Profit: the margin an importer keeps (ImportSection). A solid green, never the yellow
       of the lanes and buttons. --profit carries white text in both themes. */
    --profit: #12804a;
    --profit-soft: #e2f4ea;
    --profit-bright: #3ecf8e;

    /* Shape: squarer than a SaaS site, the corners of a document or a container. */
    --radius-sm: 6px;
    --radius: 8px;
    --radius-lg: 10px;
    --radius-pill: 999px;

    --shadow-1: 0 1px 2px rgba(15, 27, 45, .06), 0 1px 3px 1px rgba(15, 27, 45, .04);
    --shadow-2: 0 1px 3px rgba(15, 27, 45, .08), 0 6px 14px -2px rgba(15, 27, 45, .10);
    --shadow-3: 0 1px 2px rgba(15, 27, 45, .06), 0 12px 32px -8px rgba(15, 27, 45, .16);

    /* Home-page sections (see "home modules" at the end): ink, steel, sea, and the signal
       accent (KCI blue since Harbour). --slab is a filled KCI blue panel that carries white
       text in both themes. */
    --ink: #0f2236;
    --steel: #3e5c76;
    --sea: #1d6f8c;
    --paper: #f2f5f8;
    --line: #d8e0e7;
    --signal: #0b5cd5;
    --signal-soft: #e8f1fe;
    --slab: #0b5cd5;
    --slab-muted: #d6e6ff;
    --radius-xs: 6px;

    /* Night: the "sea chart" bands (home map, page heroes, footer). Light blue-white here; the navy
       values return in the dark theme (both dark blocks below). --night-text is the band's text,
       --lane its accent (map lanes, eyebrows). */
    --night: #f2f7fd;
    --night-2: #ffffff;
    --night-grid: rgba(15, 34, 54, .055);
    --night-text: #0f2236;
    --night-muted: #4f6377;
    --night-line: rgba(15, 34, 54, .12);
    --night-panel: rgba(255, 255, 255, .92);
    --lane: #0b5cd5;
    --air: #0891b2;
    --road: #7b8fa3;

    /* The contact bar over the header. */
    --bar: #0b5cd5;
    --bar-text: #ffffff;
    --bar-muted: #d3e2f4;

    /* Rhythm */
    --gutter: 24px;
    --max-width: 1200px;
    --header-height: 76px;

    --font: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI Variable Text", "Segoe UI", Roboto,
            "Helvetica Neue", Arial, "Noto Sans", sans-serif;
    --font-display: "Archivo", "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
    --font-mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
}

/* The languages whose script the self-hosted fonts do not cover take the system's font for that script, after
   Plex/Archivo (which still draw the Latin letters, digits and codes among them). Self-hosting CJK fonts would
   mean megabytes per page. The site's layout rules use logical properties (margin-inline-start, text-align: start)
   so Arabic (dir="rtl" on <html>, App.razor) mirrors by itself; see the "Right to left" block further down. */
:root:lang(ja) {
    --font: "IBM Plex Sans", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Yu Gothic", Meiryo, "Noto Sans JP", sans-serif;
    --font-display: "Archivo", "Hiragino Sans", "Yu Gothic UI", "Yu Gothic", Meiryo, "Noto Sans JP", sans-serif;
}
:root:lang(zh) {
    --font: "IBM Plex Sans", "PingFang SC", "Microsoft YaHei UI", "Microsoft YaHei", "Noto Sans SC", sans-serif;
    --font-display: "Archivo", "PingFang SC", "Microsoft YaHei UI", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}
:root:lang(ko) {
    --font: "IBM Plex Sans", "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif;
    --font-display: "Archivo", "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif;
}
:root:lang(th) {
    --font: "IBM Plex Sans", "Leelawadee UI", Thonburi, "Noto Sans Thai", Tahoma, sans-serif;
    --font-display: "Archivo", "Leelawadee UI", Thonburi, "Noto Sans Thai", Tahoma, sans-serif;
}
:root:lang(hi) {
    --font: "IBM Plex Sans", "Nirmala UI", "Kohinoor Devanagari", "Noto Sans Devanagari", sans-serif;
    --font-display: "Archivo", "Nirmala UI", "Kohinoor Devanagari", "Noto Sans Devanagari", sans-serif;
}
:root:lang(ar) {
    --font: "IBM Plex Sans", "Segoe UI", "Geeza Pro", "Noto Sans Arabic", Tahoma, sans-serif;
    --font-display: "Archivo", "Segoe UI", "Geeza Pro", "Noto Sans Arabic", Tahoma, sans-serif;
}
/* Korean breaks lines between words, not inside them. */
:lang(ko) { word-break: keep-all; }
/* Letter-spacing pulls joined Arabic letters apart and Thai/Devanagari marks off their letters. */
:lang(ar) *, :lang(th) *, :lang(hi) * { letter-spacing: 0 !important; }

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --brand: #7fb3f0;
        --brand-strong: #a9cbf6;
        --brand-soft: #172a41;
        --brand-contrast: #0b1220;

        --accent: #5cc48f;
        --accent-soft: #143324;

        --bg: #0f1720;
        --bg-sunken: #161f2a;
        --surface: #18222e;
        --border: #3c4043;
        --border-soft: #2d2e32;

        --text: #e8eaed;
        --text-muted: #9aa0a6;
        --text-faint: #80868b;

        --ok-soft: #12291a;
        --warn-soft: #2e2205;
        --danger-soft: #2d1513;
    --profit-soft: #10301f;
    --profit: #22a35f;

        --ink: #e3eaf0;
        --steel: #9fb3c3;
        --sea: #6cb8d6;
        --paper: #161f2a;
        --line: #2c3b4a;
        --signal: #7fb3f0;
        --signal-soft: #172a41;
        --slab: #1a3048;
        --bar: #154a86;

        /* the navy sea-chart bands of the dark theme */
        --night: #0b1b2b;
        --night-2: #0f2438;
        --night-grid: rgba(173, 199, 224, .07);
        --night-text: #e8eef4;
        --night-muted: #93a9be;
        --night-line: rgba(232, 238, 244, .16);
        --night-panel: rgba(8, 20, 33, .88);
        --lane: #7fb3f0;
        --air: #8ec3ff;
        --road: #9fb6cb;

        --shadow-1: 0 1px 2px rgba(0, 0, 0, .5);
        --shadow-2: 0 2px 6px rgba(0, 0, 0, .55);
        --shadow-3: 0 8px 28px rgba(0, 0, 0, .6);
    }
}

:root[data-theme="dark"] {
    --brand: #7fb3f0;
    --brand-strong: #a9cbf6;
    --brand-soft: #172a41;
    --brand-contrast: #0b1220;
    --accent: #5cc48f;
    --accent-soft: #143324;
    --bg: #0f1720;
    --bg-sunken: #161f2a;
    --surface: #18222e;
    --border: #3c4043;
    --border-soft: #2d2e32;
    --text: #e8eaed;
    --text-muted: #9aa0a6;
    --text-faint: #80868b;
    --ok-soft: #12291a;
    --warn-soft: #2e2205;
    --danger-soft: #2d1513;
    --profit-soft: #10301f;
    --profit: #22a35f;
    --ink: #e3eaf0;
    --steel: #9fb3c3;
    --sea: #6cb8d6;
    --paper: #161f2a;
    --line: #2c3b4a;
    --signal: #7fb3f0;
    --signal-soft: #172a41;
    --slab: #1a3048;
    --bar: #154a86;
    --night: #0b1b2b;
    --night-2: #0f2438;
    --night-grid: rgba(173, 199, 224, .07);
    --night-text: #e8eef4;
    --night-muted: #93a9be;
    --night-line: rgba(232, 238, 244, .16);
    --night-panel: rgba(8, 20, 33, .88);
    --lane: #7fb3f0;
    --air: #8ec3ff;
    --road: #9fb6cb;
    --shadow-1: 0 1px 2px rgba(0, 0, 0, .5);
    --shadow-2: 0 2px 6px rgba(0, 0, 0, .55);
    --shadow-3: 0 8px 28px rgba(0, 0, 0, .6);
}

/* ------------------------------------------------------------------ base */

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

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

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: var(--font-display); font-weight: 600;
    line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; text-wrap: balance;
}
h1 { font-size: clamp(2.1rem, 1.3rem + 2.6vw, 3.4rem); line-height: 1.06; }
h2 { font-size: clamp(1.6rem, 1.1rem + 1.5vw, 2.4rem); line-height: 1.1; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

img, svg { max-width: 100%; height: auto; display: block; }

:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
/* FocusOnNavigate (Routes.razor) moves focus to the page's h1 for screen readers; a heading
   is not a control, so it shows no ring. */
h1:focus { outline: none; }

.visually-hidden {
    position: absolute; width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden;
    clip-path: inset(50%); white-space: nowrap; border: 0;
}

.skip-link {
    position: absolute; inset-inline-start: 12px; top: -60px; z-index: 200;
    background: var(--brand); color: var(--brand-contrast);
    padding: 10px 18px; border-radius: var(--radius-sm);
    transition: top .15s ease;
}
.skip-link:focus { top: 12px; }

/* ---------------------------------------------------------------- layout */

.shell { display: flex; flex-direction: column; min-height: 100dvh; }
main { flex: 1; }

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

.section { padding-block: clamp(48px, 7vw, 96px); }
.section--sunken { background: var(--bg-sunken); }
.section--tight { padding-block: clamp(32px, 4vw, 56px); }

.lede { font-size: 1.15rem; color: var(--text-muted); max-width: 62ch; }
.eyebrow {
    text-transform: uppercase; letter-spacing: .12em;
    font-size: .75rem; font-weight: 600; color: var(--text-muted); margin-bottom: .8em;
}

/* Section head: eyebrow and title on the left, the lede on the right. */
.sec-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: end; margin-bottom: 40px; }
.sec-head h2 { margin: 0; }
.sec-head > p { margin: 0; color: var(--text-muted); font-size: 1.06rem; max-width: 56ch; }
@media (max-width: 860px) { .sec-head { grid-template-columns: 1fr; gap: 16px; } }
.center { text-align: center; }
.center .lede { margin-inline: auto; }

/* ---------------------------------------------------------------- header */

/* The contact bar: KCI blue, scrolls away; the main bar under it stays. */
.util-bar { background: var(--bar); color: var(--bar-muted); font-size: .8rem; }
.util-bar .wrap { display: flex; align-items: center; gap: 22px; min-height: 34px; }
.util-bar span, .util-bar a { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.util-bar svg { opacity: .8; flex: none; }
.util-bar a { color: var(--bar-text); }
.util-bar a:hover { text-decoration: underline; text-underline-offset: 3px; }
.util-end { margin-inline-start: auto; gap: 20px !important; }
.util-live { width: 6px; height: 6px; border-radius: 50%; background: #5ee0a0; box-shadow: 0 0 0 3px rgba(94, 224, 160, .25); }
@media (max-width: 860px) { .util-hide { display: none !important; } }

/* The language switcher at the end of the contact bar (SiteHeader.razor): a <details>, so it opens without script;
   site.js only closes it on a click elsewhere. Kept on a phone, where the rest of util-end is hidden. The list sits
   above the sticky header (z-index 100). */
.lang-switch { position: relative; }
.lang-switch summary {
    display: inline-flex; align-items: center; gap: 7px; min-height: 34px;
    color: var(--bar-text); cursor: pointer; list-style: none; white-space: nowrap;
}
.lang-switch summary::-webkit-details-marker { display: none; }
.lang-switch summary::after {
    content: ""; width: 5px; height: 5px; margin-inline-start: 1px;
    border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: translateY(-2px) rotate(45deg); opacity: .8;
}
.lang-switch[open] summary::after { transform: translateY(1px) rotate(-135deg); }
.lang-switch summary:hover { text-decoration: underline; text-underline-offset: 3px; }
.lang-switch ul {
    position: absolute; inset-inline-end: 0; top: 100%; z-index: 200;
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px;
    width: max-content; max-width: calc(100vw - 2 * var(--gutter)); margin: 0; padding: 6px; list-style: none;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); box-shadow: var(--shadow-3);
}
.util-bar .lang-switch li a { display: flex; padding: 8px 12px; border-radius: var(--radius-sm); color: var(--text); font-size: .88rem; }
.util-bar .lang-switch li a:hover { background: var(--bg-sunken); text-decoration: none; }
.util-bar .lang-switch li a[aria-current] { color: var(--brand); font-weight: 600; }

.site-header {
    position: sticky; top: 0; z-index: 100;
    height: var(--header-height);
    display: flex; align-items: center;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 6px 20px -14px rgba(15, 34, 54, .35);
}
.site-header .wrap { display: flex; align-items: center; gap: 12px; }

.brand {
    display: inline-flex; align-items: center; gap: 12px;
    font-family: var(--font-display); font-weight: 600; font-size: 1.06rem; letter-spacing: -.005em;
    color: var(--text); text-decoration: none; white-space: nowrap;
}
.brand:hover { text-decoration: none; }
.brand-mark { width: 42px; height: 42px; border-radius: 8px; padding: 3px; }

/* The wrap and the nav run the full header height so the active underline can sit on
   the header's bottom edge, over its border. */
.site-header .wrap { align-self: stretch; }
.nav { display: flex; align-items: stretch; gap: 4px; margin-inline-start: auto; align-self: stretch; }
.nav a {
    position: relative; display: flex; align-items: center; padding: 0 12px;
    color: var(--text); font-size: .94rem; font-weight: 500; white-space: nowrap;
    transition: color .15s ease;
}
.nav a::after {
    content: ""; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 3px;
    background: var(--brand);
    transform: scaleX(0); transform-origin: left; transition: transform .2s ease;
}
.nav a:hover { color: var(--brand); text-decoration: none; }
.nav a:hover::after, .nav a.active::after { transform: scaleX(1); }
.nav a.active { color: var(--brand); }

.header-actions { display: flex; align-items: center; gap: 8px; margin-inline-start: 14px; }
.header-actions .btn { height: 44px; padding: 0 20px; }

.nav-toggle {
    display: none; margin-inline-start: auto;
    background: none; border: 1px solid var(--border);
    border-radius: var(--radius-sm); padding: 8px 10px;
    color: var(--text); cursor: pointer;
}

/* On desktop the wrapper is transparent to layout: nav and header-actions take part
   in the header's own flex row as if it were not there. */
.header-panel { display: contents; }

/* Six links, the lockup and the button need about 1130px on one row; below that a link
   label would wrap onto a second line inside the header. */
@media (max-width: 1160px) {
    .nav-toggle { display: grid; place-items: center; }

    /* On mobile the wrapper becomes the dropdown — ONE positioned box holding both
       the links and the buttons. Positioning them separately put the buttons at a
       negative offset, overlapping the header. */
    .header-panel {
        display: none;
        position: absolute; top: var(--header-height); left: 0; right: 0;
        flex-direction: column; align-items: stretch; gap: 4px;
        background: var(--bg); border-bottom: 1px solid var(--border);
        padding: 10px var(--gutter) 16px;
        box-shadow: var(--shadow-2);
        max-height: calc(100dvh - var(--header-height));
        overflow-y: auto;
    }
    .site-header:has(#nav-toggle:checked) .header-panel { display: flex; }

    .nav, .header-actions {
        flex-direction: column; align-items: stretch;
        gap: 4px; margin: 0; padding: 0;
    }
    /* In the dropdown a link is a row with a filled chip for the active page; the
       underline belongs to the desktop row. */
    .nav a { padding: 10px 12px; border-radius: var(--radius-sm); font-size: .95rem; }
    .nav a::after { content: none; }
    .nav a:hover { background: var(--bg-sunken); }
    .nav a.active { color: var(--brand); background: var(--brand-soft); }
    .header-actions .btn { height: 44px; }
    .header-actions {
        margin-top: 10px; padding-top: 12px;
        border-top: 1px solid var(--border-soft);
    }
    .header-actions form { display: contents; }
    .header-actions .btn { width: 100%; }
}

/* --------------------------------------------------------------- buttons */

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 44px; padding: 10px 20px; border-radius: var(--radius-sm);
    font-size: .95rem; font-weight: 600; font-family: inherit;
    border: 1px solid transparent; cursor: pointer;
    text-decoration: none; white-space: nowrap;
    transition: background-color .15s ease, box-shadow .15s ease, border-color .15s ease, transform .1s ease;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; transform: none; }

.btn--primary { background: var(--brand); color: var(--brand-contrast); }
.btn--primary:hover { background: var(--brand-strong); box-shadow: var(--shadow-2); }

.btn--ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn--ghost:hover { background: var(--brand-soft); border-color: var(--brand); color: var(--brand); }

/* The one action that matters (Client Portal, the first action on a band): KCI blue since Harbour. */
.btn--signal { background: var(--brand); color: var(--brand-contrast); }
.btn--signal:hover { background: var(--brand-strong); box-shadow: var(--shadow-2); }

/* Outline on a sea-chart band (light in the light theme, navy in the dark one). */
.btn--night { background: var(--night-panel); color: var(--night-text); border-color: color-mix(in srgb, var(--night-text) 28%, transparent); }
.btn--night:hover { border-color: var(--night-text); }

.btn--quiet { background: transparent; color: var(--text-muted); padding-inline: 14px; }
.btn--quiet:hover { background: var(--bg-sunken); color: var(--text); }

.btn--block { width: 100%; }
.btn--lg { padding: 14px 30px; font-size: 1rem; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.center .btn-row { justify-content: center; }

/* ----------------------------------------------------------------- cards */

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 26px;
    transition: border-color .18s ease, transform .18s ease;
}
.card--hover:hover { border-color: var(--brand); transform: translateY(-2px); }
.card h3 { margin-bottom: .35em; }
.card p { color: var(--text-muted); font-size: .95rem; }

.grid { display: grid; gap: 20px; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }

/* A plain line icon in brand blue, no tile behind it. */
.icon-badge { display: block; margin-bottom: 14px; color: var(--brand); }
.icon-badge svg { width: 26px; height: 26px; }
.icon-badge--accent { color: var(--brand); }

/* ---------------------------------------------------------------- hero */

/* Page heroes are the "sea chart" band of the home map (Harbour): light blue fading to white with a faint
   grid that fades out towards the edges, KCI blue eyebrow and first action, green ticks. Navy in the dark theme
   through the night tokens. */
.hero {
    position: relative;
    padding-block: clamp(56px, 7vw, 96px);
    color: var(--night-text);
    background: linear-gradient(180deg, var(--night) 0%, var(--night-2) 100%);
}
.hero::before {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background:
        linear-gradient(var(--night-grid) 1px, transparent 1px) 0 0 / 56px 56px,
        linear-gradient(90deg, var(--night-grid) 1px, transparent 1px) 0 0 / 56px 56px;
    -webkit-mask-image: radial-gradient(70% 70% at 78% 35%, #000 0%, transparent 75%);
    mask-image: radial-gradient(70% 70% at 78% 35%, #000 0%, transparent 75%);
}
.hero > .wrap { position: relative; }
.hero h1 { max-width: 20ch; color: var(--night-text); }
.hero .lede { font-size: 1.18rem; margin-block: 1.1em 1.8em; color: var(--night-muted); }
.hero .eyebrow { color: var(--lane); }
.hero a:not(.btn) { color: var(--lane); }
.hero .checks li { color: var(--night-text); }
.hero .checks svg { color: var(--ok); }
.hero .btn--ghost { color: var(--night-text); background: var(--night-panel); border-color: color-mix(in srgb, var(--night-text) 28%, transparent); }
.hero .btn--ghost:hover { border-color: var(--night-text); color: var(--night-text); }
.hero .card--panel { background: var(--night-panel); border-color: var(--night-line); color: var(--night-text); box-shadow: var(--shadow-3); }
.hero .card--panel h3, .hero .steps strong { color: var(--night-text); }
.hero .steps { color: var(--night-muted); }
.hero .steps li::marker { color: var(--lane); }

.hero-grid { display: grid; gap: 44px; align-items: center; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }

.trust-row { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 32px; color: var(--text-muted); font-size: .88rem; }
.trust-row span { display: inline-flex; align-items: center; gap: 7px; }
.trust-row svg { width: 16px; height: 16px; color: var(--ok); flex: none; }

/* ---------------------------------------------------------------- tables */

.data-card { background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius-lg); overflow: hidden; }
.data-card__head { padding: 18px 24px; border-bottom: 1px solid var(--border-soft); display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.data-card__head h3 { margin: 0; }
.data-card__body { padding: 24px; }

table.data { width: 100%; border-collapse: collapse; font-size: .94rem; }
table.data th, table.data td { padding: 13px 24px; text-align: start; }
table.data th {
    font-size: .74rem; text-transform: uppercase; letter-spacing: .07em;
    color: var(--text-faint); font-weight: 700; border-bottom: 1px solid var(--border-soft);
}
table.data td { border-bottom: 1px solid var(--border-soft); }
table.data tr:last-child td { border-bottom: 0; }
table.data .num { text-align: end; font-variant-numeric: tabular-nums; }

/* ----------------------------------------------------------------- chips */

.chip {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 3px 11px; border-radius: var(--radius-pill);
    font-size: .78rem; font-weight: 650;
    background: var(--bg-sunken); color: var(--text-muted);
    border: 1px solid var(--border-soft);
}
.chip--ok { background: var(--ok-soft); color: var(--ok); border-color: transparent; }
.chip--warn { background: var(--warn-soft); color: var(--warn); border-color: transparent; }
.chip--danger { background: var(--danger-soft); color: var(--danger); border-color: transparent; }
.chip--brand { background: var(--brand-soft); color: var(--brand); border-color: transparent; }

/* ----------------------------------------------------------------- forms */

.field { display: grid; gap: 6px; margin-bottom: 18px; }
.field label { font-size: .88rem; font-weight: 600; }
.field .hint { font-size: .82rem; color: var(--text-faint); }

input[type="text"], input[type="email"], input[type="password"],
input[type="number"], textarea, select {
    width: 100%; padding: 11px 14px;
    font: inherit; font-size: .95rem;
    color: var(--text); background: var(--surface);
    border: 1px solid var(--border); border-radius: var(--radius-sm);
    transition: border-color .15s ease, box-shadow .15s ease;
}
input:focus, textarea:focus, select:focus {
    outline: none; border-color: var(--brand);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 22%, transparent);
}
textarea { min-height: 140px; resize: vertical; }

.form-card { background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius-lg); padding: 30px; }
.form-narrow { max-width: 460px; margin-inline: auto; }

.validation-message { color: var(--danger); font-size: .84rem; }

/* Honeypot: off-screen rather than display:none, because some bots skip
   hidden inputs but not positioned ones. */
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* --------------------------------------------------------------- notices */

.notice {
    display: flex; gap: 12px; align-items: flex-start;
    padding: 14px 18px; border-radius: var(--radius);
    font-size: .92rem; margin-bottom: 18px; border: 1px solid transparent;
}
.notice svg { width: 18px; height: 18px; flex: none; margin-top: 3px; }
.notice--info { background: var(--brand-soft); color: var(--text); }
.notice--ok { background: var(--ok-soft); color: var(--ok); }
.notice--warn { background: var(--warn-soft); color: var(--warn); }
.notice--danger { background: var(--danger-soft); color: var(--danger); }

/* --------------------------------------------------------------- account */

.account-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 26px; }
.account-head h1 { font-size: 1.9rem; margin: 0; }
.account-head p { color: var(--text-muted); margin: .3em 0 0; }

.stat-row { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.stat { background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius); padding: 18px 20px; }
.stat__label { font-size: .78rem; text-transform: uppercase; letter-spacing: .07em; color: var(--text-faint); font-weight: 700; }
.stat__value { font-size: 1.8rem; font-weight: 700; letter-spacing: -.02em; margin-top: 4px; font-variant-numeric: tabular-nums; }

.empty { text-align: center; padding: 52px 24px; color: var(--text-muted); border: 1px dashed var(--border); border-radius: var(--radius-lg); }
.empty h3 { color: var(--text); }

/* Placeholder while an interactive component boots. Sized to match the real
   content so nothing shifts when it arrives. */
.skeleton {
    background: linear-gradient(90deg, var(--bg-sunken) 25%, var(--border-soft) 50%, var(--bg-sunken) 75%);
    background-size: 200% 100%;
    animation: skeleton 1.3s ease-in-out infinite;
    border-radius: var(--radius-sm);
}
@keyframes skeleton { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* ---------------------------------------------------------------- footer */

/* The sea-chart band again, like the map it closes: light blue-white with a top rule, navy in the dark theme. */
.site-footer { background: var(--night); color: var(--night-muted); padding-block: 56px 32px; font-size: .92rem; border-top: 1px solid var(--night-line); }
.site-footer .brand { color: var(--night-text); }
.site-footer .brand-sub { color: var(--lane); }
/* Explicit tracks, as on the Logistics ERP site. `1.5fr repeat(auto-fit, ...)` is invalid CSS (auto-fit
   cannot sit beside a flexible track), so the browser dropped it and the footer stacked into one column. */
.footer-grid { display: grid; gap: 32px 40px; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); }
.footer-brand p { color: var(--night-muted); margin-top: 14px; max-width: 38ch; }
.site-footer address { font-style: normal; color: var(--night-muted); line-height: 1.7; overflow-wrap: anywhere; }
@media (max-width: 900px) {
    .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
    .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 24px; }
}
.site-footer h4 { font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--night-text); margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.site-footer a { color: var(--night-muted); }
.site-footer a:hover { color: var(--night-text); }
/* Every language as a plain link (SiteFooter.razor), above the base line. */
.footer-langs { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: .86rem; }
.footer-langs a[aria-current] { color: var(--night-text); font-weight: 600; }
.footer-langs + .footer-base { margin-top: 18px; }
.footer-base {
    margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--night-line);
    display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
    color: var(--night-muted); font-size: .86rem;
}

/* -------------------------------------------------------------- blazor UI */

#blazor-error-ui {
    display: none;
    position: fixed; inset-inline: 0; bottom: 0; z-index: 1000;
    background: var(--warn-soft); color: var(--text);
    padding: 14px var(--gutter); box-shadow: var(--shadow-3);
}
#blazor-error-ui .dismiss { cursor: pointer; float: right; font-size: 1.3rem; line-height: 1; }

.blazor-error-boundary { background: var(--danger-soft); color: var(--danger); padding: 16px 20px; border-radius: var(--radius); }

/* ================================================================ KCI additions */

/* Brand lockup: name on top, product line underneath. */
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-sub { font-family: var(--font-mono); font-size: .66rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); margin-top: 6px; }
/* The KC mark, same as the Client Portal's (images/kci-mark.png: blue K, red C on white, scaled from its kci.jpg). */
img.brand-mark { display: block; flex: none; background: #fff; border: 1px solid var(--line); object-fit: contain; }

/* Tick lists used for the three promises per audience. */
.checks { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 12px; }
.checks li { display: grid; grid-template-columns: 20px 1fr; gap: 12px; align-items: start; color: var(--text); }
.checks svg { width: 18px; height: 18px; color: var(--ok); margin-top: 4px; }

/* Numbered steps in the audience aside. */
.card--panel { box-shadow: var(--shadow-3); }
.steps { margin: 12px 0 0; padding-inline-start: 22px; display: grid; gap: 12px; color: var(--text-muted); font-size: .95rem; }
.steps li::marker { color: var(--brand); font-weight: 700; }
.steps strong { color: var(--text); }

/* Contact details with a leading icon. */
.contact-list { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 14px; }
.contact-list li { display: grid; grid-template-columns: 20px 1fr; gap: 12px; align-items: start; }
.contact-list svg { width: 18px; height: 18px; color: var(--brand); margin-top: 3px; }

/* Importers page: the margin chain, drawn like a product screen (a panel of parties with initials,
   what each adds per unit, and a floating card with the margin you keep), then "we do it for you" cards. */
.mc { position: relative; }
.mc-panel { background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius-lg); box-shadow: var(--shadow-3); overflow: hidden; }
.mc-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 22px; border-bottom: 1px solid var(--border-soft); font-weight: 700; font-size: .95rem; }
.mc-group { padding: 14px 22px 18px; }
.mc-group + .mc-group { border-top: 1px solid var(--border-soft); }
.mc-group--kc { background: var(--brand-soft); }
.mc-label { display: flex; justify-content: space-between; gap: 12px; font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 6px; }
.mc-group--kc .mc-label > span:first-child { color: var(--brand); }
.mc-label-ok { color: var(--ok); }
.mc-rows { list-style: none; margin: 0; padding: 0; }
.mc-rows li { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto 64px; align-items: center; gap: 12px; padding: 7px 0; }
.mc-rows li + li { border-top: 1px dashed var(--border-soft); }
.mc-group--kc .mc-rows li + li { border-top-color: rgba(38, 113, 198, .2); }
.mc-av { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: .68rem; font-weight: 800; letter-spacing: .02em; }
.mc-av--mf { background: #0f766e; }
.mc-av--ex { background: #7c3aed; }
.mc-av--wh { background: #c2410c; }
.mc-av--tr { background: #b91c1c; }
.mc-av--kc { background: var(--brand); }
.mc-av--ca { background: #334155; }
.mc-rows--status li { grid-template-columns: 32px minmax(0, 1fr) auto; }
.mc-add--ok { color: var(--ok); }
.mc-float .mc-float-big--sm { font-size: 1.15rem; color: #fff; margin: 6px 0; }

/* A numbered, connected flow of steps (exporters page). */
.phase-flow { list-style: none; counter-reset: phase; margin: 26px 0 0; padding: 0; display: grid; gap: 0; }
.phase-flow li { counter-increment: phase; position: relative; display: grid; grid-template-columns: 34px minmax(0, 1fr); column-gap: 14px; padding-bottom: 20px; }
.phase-flow li::before { content: counter(phase); grid-row: span 2; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: #fff; font-weight: 800; font-size: .85rem; position: relative; z-index: 1; }
.phase-flow li:not(:last-child)::after { content: ""; position: absolute; inset-inline-start: 14px; top: 30px; bottom: 0; width: 2px; background: var(--brand-soft); }
.phase-flow b { font-size: 1rem; padding-top: 4px; }
.phase-flow span { color: var(--text-muted); font-size: .95rem; margin-top: 2px; }
.mc-who { display: flex; flex-direction: column; font-weight: 600; font-size: .92rem; line-height: 1.25; min-width: 0; }
.mc-who small { font-weight: 400; font-size: .76rem; color: var(--text-muted); }
.mc-add { font-size: .78rem; font-weight: 600; color: var(--text-faint); white-space: nowrap; }
.mc-add--up { color: var(--danger); }
.mc-add em { display: block; font-style: normal; font-size: .7rem; font-weight: 700; opacity: .8; text-align: end; }
.mc-total small { display: block; font-size: .74rem; font-weight: 500; opacity: .85; }
.mc-price { text-align: end; font-weight: 700; font-variant-numeric: tabular-nums; }
.mc-total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 10px; padding: 10px 14px; border-radius: var(--radius-sm); font-size: .9rem; font-weight: 600; }
.mc-total b { font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.mc-total--bad { background: var(--danger-soft); color: var(--danger); }
.mc-total--good { background: var(--ok-soft); color: var(--ok); }
/* in the flow, pulled up into the panel's empty bottom padding only (14px of its 18px), so it never covers a total */
.mc-float { position: relative; z-index: 1; margin: -14px 0 0 -28px; width: min(300px, 80%); padding: 16px 18px; border-radius: var(--radius); background: #15803d; color: #fff; box-shadow: var(--shadow-3); border: 1px solid rgba(255, 255, 255, .12); }
.mc-float-top { display: flex; justify-content: space-between; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: rgba(255, 255, 255, .82); }
.mc-float-big { font-size: 2rem; font-weight: 800; line-height: 1.1; margin: 4px 0 6px; color: #ffffff; font-variant-numeric: tabular-nums; }
.mc-float p { margin: 0; font-size: .85rem; color: rgba(255, 255, 255, .86); }
.mc-float b { color: #fff; }
.mc-float-big span { display: inline-block; vertical-align: middle; margin-inline-start: 6px; padding: 3px 8px; border-radius: var(--radius-pill); background: rgba(255, 255, 255, .18); font-size: .75rem; font-weight: 700; letter-spacing: 0; }
@media (max-width: 900px) {
    .mc-float { width: auto; margin: 14px 0 0; }
}
.dfy p { color: var(--text-muted); }
.dfy .dfy-q { color: var(--text); font-style: italic; font-size: 1.02rem; margin: 4px 0 14px; }
.dfy-alone { margin: 0 0 16px; padding-inline-start: 1.2em; color: var(--text-muted); font-size: .94rem; display: grid; gap: 4px; }
.dfy .checks { margin-top: 10px; }

/* Contact page: the two ways to reach us, portal first. */
.channels { display: grid; gap: 28px; align-self: start; }
.channel + .channel { padding-top: 28px; border-top: 1px solid var(--border-soft); }
.channel h2 { font-size: 1.3rem; margin: 0; }
.channel p { color: var(--text-muted); margin: 8px 0 0; }
.channel-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.channel .contact-list { margin-top: 18px; }
.channel .contact-list b { color: var(--text); }
.channel-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }

/* Side-by-side fields that stack on narrow screens. */
.field-row { display: grid; gap: 0 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.field-row--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 640px) { .field-row, .field-row--3 { grid-template-columns: 1fr; } }
input[type="tel"], input[type="date"] {
    width: 100%; padding: 11px 14px;
    font: inherit; font-size: .95rem;
    color: var(--text); background: var(--surface);
    border: 1px solid var(--border); border-radius: var(--radius-sm);
}

/* Wide tables scroll sideways on a phone instead of breaking the layout. */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-scroll table.data { min-width: 760px; }

/* ================================================================ home modules

   The Importers, Exporters and F/Agent sections below the home hero, after the
   one-page design (kci-smart-import-export.html). Squarer and more editorial than
   the rest of the site: navy ink, 6px corners, rules rather than cards, a yellow
   signal accent. Everything that shares a name with the site's own classes (.btn,
   .lede, headings) is overridden only inside .part, so the other pages keep their
   look. The design's Archivo font is not loaded: the system stack stays, per the
   note at the top of this file. */

.part { padding-block: 72px 88px; color: var(--ink); scroll-margin-top: var(--header-height); }
.part + .part { border-top: 1px solid var(--line); position: relative; }
.part + .part::before {
    content: ""; position: absolute; top: -1px; height: 3px; width: 56px; background: var(--signal);
    inset-inline-start: max(var(--gutter), calc((100% - var(--max-width)) / 2 + var(--gutter)));
}

.part h2, .part h3, .part h4 { margin: 0; line-height: 1.1; letter-spacing: -.01em; }
.part .display { font-weight: 600; font-size: clamp(34px, 4.6vw, 54px); max-width: 16ch; }
.part .lede { font-size: 1.15rem; color: var(--steel); max-width: 56ch; margin: 20px 0 28px; }
.block-title { font-weight: 600; font-size: clamp(24px, 3vw, 32px); max-width: 24ch; }

.part-hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.part-hero--end { align-items: end; }
.part-hero--map { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 40px; }

/* --- importers: trader price against landed cost */

.price-compare { border: 1px solid var(--line); border-radius: var(--radius-xs); padding: 28px; background: var(--paper); }
.price-compare h4 { margin-bottom: 18px; font-size: .9375rem; font-weight: 600; color: var(--steel); letter-spacing: 0; }
.bar-row { margin-bottom: 22px; }
.bar-row:last-of-type { margin-bottom: 8px; }
.bar-label { display: flex; justify-content: space-between; gap: 12px; font-size: .9375rem; margin-bottom: 6px; }
.bar { display: flex; height: 42px; border-radius: 4px; overflow: hidden; background: var(--surface); }
.seg { height: 100%; flex: none; }
.seg--trader { background: var(--ink); }
.seg--goods { background: var(--steel); }
.seg--freight { background: var(--sea); }
.seg--duty { background: #7fa7bd; }
.seg--keep { background: var(--profit); }
.bar-key { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .8125rem; color: var(--steel); margin-top: 14px; }
.bar-key span::before {
    content: ""; display: inline-block; width: 11px; height: 11px; border-radius: 2px;
    margin-inline-end: 6px; vertical-align: -1px;
}
.bar-key--goods::before { background: var(--steel); }
.bar-key--freight::before { background: var(--sea); }
.bar-key--duty::before { background: #7fa7bd; }
.bar-key--keep::before { background: var(--profit); }
.keep-callout { margin: 18px 0 0; font-size: 1.0625rem; }

/* By commercial invoice value (ImportSection): a column chart of the share kept per order size
   is also the picker (five radio buttons read through :has()); the picked order shows below. */
.inv-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; }
.inv-head h4 { margin: 0; font-size: 1.0625rem; color: var(--ink); }
.inv-label { margin: 0 0 8px; font-size: .8125rem; font-weight: 600; color: var(--steel); }
.inv-label small { font-weight: 400; }
.inv-pick { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; margin-bottom: 22px; }
.inv-pick input { position: absolute; opacity: 0; pointer-events: none; }
.inv-pick label {
    display: grid; justify-items: center; gap: 2px; min-width: 0; padding: 8px 4px 7px; cursor: pointer;
    border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface);
    transition: border-color .15s, background .15s;
}
.inv-pick label:hover { border-color: var(--steel); }
.inv-col { display: flex; align-items: flex-end; justify-content: center; width: 100%; height: 46px; }
.inv-col i { width: 46%; border-radius: 3px 3px 0 0; background: var(--profit); opacity: .45; }
.inv-pick b { font: 600 1rem/1.2 var(--font-display); color: var(--ink); font-variant-numeric: tabular-nums; }
.inv-pick small { font: 500 .75rem var(--font-mono); color: var(--steel); }
.inv-pick input:checked + label { border-color: var(--ink); background: var(--ink); }
.inv-pick input:checked + label i { opacity: 1; background: var(--profit-bright); }
.inv-pick input:checked + label b { color: var(--profit-bright); }
.inv-pick input:checked + label small { color: var(--slab-muted); }
.inv-pick input:focus-visible + label { outline: 3px solid var(--brand); outline-offset: 2px; }

.inv-case { display: none; }
.inv:has(#inv-0:checked) .inv-case[data-i="0"],
.inv:has(#inv-1:checked) .inv-case[data-i="1"],
.inv:has(#inv-2:checked) .inv-case[data-i="2"],
.inv:has(#inv-3:checked) .inv-case[data-i="3"],
.inv:has(#inv-4:checked) .inv-case[data-i="4"] { display: block; }
.inv-keep { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.inv-keep > div { padding: 12px 14px; border-radius: var(--radius-sm); background: var(--profit-soft); min-width: 0; }
.inv-keep b { display: block; font: 600 clamp(1.4rem, 2.4vw, 1.9rem)/1.1 var(--font-display); color: var(--profit); font-variant-numeric: tabular-nums; }
.inv-keep span { display: block; margin-top: 4px; font-size: .8125rem; color: var(--steel); }
/* The euro amount is the headline: white on solid green. */
.inv-keep > div:first-child { background: var(--profit); }
.inv-keep > div:first-child b { color: #ffffff; }
.inv-keep > div:first-child span { color: #d4f2e2; }
.inv-mode { margin: 12px 0 0; font-size: .8125rem; color: var(--steel); }
.keep-callout b { background: var(--signal-soft); padding: 1px 6px; border-radius: 3px; }

/* --- importers: margin calculator (a GET form; the server does the sums) */

.calc {
    margin-top: 80px; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    border: 1px solid var(--line); border-radius: var(--radius-xs); overflow: hidden;
    scroll-margin-top: calc(var(--header-height) + 16px);
}
.calc-inputs { padding: 36px; }
.calc-inputs > p { color: var(--steel); margin: 10px 0 26px; max-width: 48ch; }
.calc-inputs .btn { margin-top: 24px; }
.calc-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; }
.calc-field label { display: block; font-size: .875rem; font-weight: 600; margin-bottom: 6px; }
.calc-field small { display: block; font-weight: 400; color: var(--steel); font-size: .8125rem; }
.calc-input { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); }
.calc-input:focus-within { border-color: var(--sea); box-shadow: 0 0 0 3px color-mix(in srgb, var(--sea) 18%, transparent); }
.calc-input span { padding-inline: 10px; color: var(--steel); font-size: .9375rem; }
.calc-input input[type="number"], .calc-input input[type="number"]:focus {
    border: 0; border-radius: 0; box-shadow: none; background: transparent;
    padding: 11px 10px; min-width: 0; font-size: 1.0625rem; color: var(--ink);
}
.calc-result {
    background: var(--slab); color: #ffffff; padding: 36px;
    display: flex; flex-direction: column; justify-content: space-between; gap: 26px;
}
.calc-big { font-weight: 800; font-size: clamp(40px, 5vw, 60px); line-height: 1; letter-spacing: -.02em; color: #ffffff; }
.calc-big-label { font-size: 1rem; color: var(--slab-muted); margin-top: 10px; }
.calc-result dl {
    margin: 0; display: grid; grid-template-columns: 1fr auto; gap: 10px 16px; font-size: .9375rem;
    border-top: 1px solid rgba(255, 255, 255, .18); padding-top: 18px;
}
.calc-result dt { color: var(--slab-muted); }
.calc-result dd { margin: 0; text-align: end; font-weight: 700; font-variant-numeric: tabular-nums; }
.calc-note { font-size: .8125rem; color: #9fb3c3; margin: 0; }

.hook {
    margin-top: 64px; display: grid; grid-template-columns: 200px 1fr; gap: 32px; align-items: start;
    padding-block: 28px; border-block: 1px solid var(--line);
}
.hook-when { font-weight: 800; font-size: 1.625rem; line-height: 1.1; }
.hook p { margin: 0; max-width: 70ch; }
.hook p + p { margin-top: 10px; color: var(--steel); }

.svc-list { margin-top: 72px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 56px; }
.svc-list dl { margin: 0; }
.svc-list dl > div { display: grid; grid-template-columns: 1fr 1.5fr; gap: 24px; padding-block: 18px; border-top: 1px solid var(--line); }
.svc-list dl > div:last-child { border-bottom: 1px solid var(--line); }
.svc-list dt { font-weight: 700; }
.svc-list dd { margin: 0; color: var(--steel); }

/* --- five numbered steps (FlowSteps.razor) */

.flow { margin-top: 72px; }
.flow ol { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); counter-reset: step; }
.flow li { counter-increment: step; padding-inline-end: 20px; position: relative; }
.flow li::before {
    content: counter(step); display: block; position: relative; z-index: 1;
    width: 40px; height: 40px; line-height: 36px; text-align: center; margin-bottom: 14px;
    font-weight: 800; font-size: 1.25rem;
    border-radius: 50%; background: var(--paper); border: 2px solid var(--ink);
}
.flow li::after { content: ""; position: absolute; top: 19px; inset-inline: 40px 0; height: 2px; background: var(--line); }
.flow li:last-child::after { display: none; }
.flow b { display: block; margin-bottom: 4px; }
.flow span { color: var(--steel); font-size: .9375rem; }

.closing {
    margin-top: 72px; background: var(--paper); border-radius: var(--radius-xs); padding: 40px;
    display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between;
}
.closing p { margin: 8px 0 0; color: var(--steel); max-width: 52ch; }
.closing .closing-contact { margin-top: 14px; font-size: .9375rem; max-width: none; }

/* --- exporters */

.mode-compare { border: 1px solid var(--line); border-radius: var(--radius-xs); padding: 28px; }
.mode-compare h4 { margin-bottom: 4px; font-size: 1.125rem; }
.mode-compare-sub { margin: 0 0 20px; color: var(--steel); font-size: .875rem; }
.mrow { display: grid; grid-template-columns: 120px 1fr 84px; align-items: center; gap: 12px; margin-bottom: 12px; font-size: .9375rem; }
.mrow-track { height: 26px; background: var(--paper); border-radius: 3px; overflow: hidden; }
.mrow-fill { height: 100%; background: var(--sea); }
.mrow--courier .mrow-fill { background: #9aa9b5; }
.mrow-amt { text-align: end; font-weight: 700; font-variant-numeric: tabular-nums; }
.mrow-amt small { display: block; font-size: .75rem; font-weight: 400; color: var(--steel); }
.mode-compare-foot { font-size: .8125rem; color: var(--steel); margin: 16px 0 0; }

.reasons { margin-top: 64px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 56px; }
.reason { padding-block: 26px; border-top: 1px solid var(--line); }
.reason h4 { margin-bottom: 8px; font-size: 1.25rem; font-weight: 750; }
.reason p { margin: 0; color: var(--steel); max-width: 52ch; }
.countries { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.countries li {
    font-size: .8125rem; font-weight: 600; padding: 3px 10px;
    background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-pill);
}

/* --- quick quote (QuoteDemo.razor): how it works in the Client Portal, as a looping
       animation. Nothing here is a form. Without the animation (reduced motion) the
       frame rests on the last step, which is why that state is the unanimated one. */

.qd {
    margin-top: 64px; border: 2px solid var(--slab); border-radius: var(--radius-xs); overflow: hidden;
    scroll-margin-top: calc(var(--header-height) + 16px);
}
.qd-head {
    background: var(--slab); color: #ffffff; padding: 20px 28px;
    display: flex; flex-wrap: wrap; gap: 6px 24px; justify-content: space-between; align-items: baseline;
}
.qd-head h3 { font-weight: 750; font-size: 1.5rem; }
.qd-head p { margin: 0; color: var(--slab-muted); font-size: .9375rem; }
.qd-body { padding: 28px; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 36px; align-items: center; }

.qd-list { list-style: none; margin: 0 0 24px; padding: 0; counter-reset: qd; }
.qd-list li { counter-increment: qd; display: grid; grid-template-columns: 30px minmax(0, 1fr); column-gap: 12px; padding-block: 9px; }
.qd-list li + li { border-top: 1px solid var(--line); }
.qd-list li::before {
    content: counter(qd); grid-row: span 2; align-self: start; width: 30px; height: 30px; border-radius: 50%;
    display: grid; place-items: center; font-size: .8125rem; font-weight: 700;
    background: var(--paper); border: 1px solid var(--line); color: var(--ink);
}
.qd-list b { font-weight: 700; }
.qd-list span { color: var(--steel); font-size: .9375rem; }
.qd-note { margin: 16px 0 0; font-size: .8125rem; color: var(--steel); max-width: 46ch; }

.qd-screen {
    --qd-loop: 24s;
    position: relative; min-width: 0; overflow: hidden; font-size: .8125rem; line-height: 1.4;
    border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); box-shadow: var(--shadow-2);
}
.qd-bar { display: flex; align-items: center; gap: 10px; padding: 9px 12px; background: var(--paper); border-bottom: 1px solid var(--line); }
.qd-dots { display: flex; gap: 5px; }
.qd-dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
.qd-bar-title { flex: 1; min-width: 0; font-weight: 600; color: var(--steel); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qd-tag { padding: 1px 8px; border-radius: var(--radius-pill); background: var(--signal-soft); color: var(--ink); font-size: .6875rem; font-weight: 700; }

.qd-stepper { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin: 12px 12px 0; padding: 3px; border: 1px solid var(--line); border-radius: var(--radius-pill); }
.qd-stepper span { position: relative; padding: 5px 2px; text-align: center; font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qd-thumb { position: absolute; top: 3px; bottom: 3px; left: 3px; width: calc((100% - 6px) / 5); border-radius: var(--radius-pill); background: var(--signal-soft); box-shadow: inset 0 0 0 1px var(--signal); transform: translateX(400%); }

.qd-stage { display: grid; padding: 14px 12px 16px; }
.qd-scene { grid-area: 1 / 1; min-width: 0; display: flex; flex-direction: column; gap: 10px; opacity: 0; }
.qd-scene--last { opacity: 1; }
.qd-scene-head { display: flex; flex-wrap: wrap; gap: 2px 10px; align-items: baseline; }
.qd-scene-head b { font-size: .9375rem; }
.qd-scene-head span { color: var(--steel); }

.qd-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.qd-field { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.qd-field--wide { grid-column: span 2; }
.qd-field--full { grid-column: 1 / -1; }
.qd-field > span { font-size: .6875rem; font-weight: 600; color: var(--steel); }
.qd-field > b { display: block; min-height: 34px; padding: 7px 10px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* The box stays put; only the value inside it comes and goes. */
.qd-field { position: relative; }
.qd-field::after { content: ""; position: absolute; inset: auto 0 0; height: 34px; border: 1px solid var(--line); border-radius: 4px; pointer-events: none; }

.qd-next { padding-top: 4px; display: flex; justify-content: flex-end; }
.qd-btn { display: inline-block; padding: 6px 12px; border-radius: 4px; background: var(--ink); color: var(--bg); font-weight: 700; white-space: nowrap; }
.qd-btn--go { background: var(--brand); color: var(--brand-contrast); }

.qd-rate { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 6px 8px; border: 1px solid var(--line); border-radius: 4px; }
.qd-logo { width: 30px; height: 30px; border-radius: 4px; display: grid; place-items: center; background: var(--paper); border: 1px solid var(--line); font-weight: 800; color: var(--steel); }
.qd-rate-main { min-width: 0; display: flex; flex-direction: column; }
.qd-rate-main small { color: var(--steel); font-size: .75rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qd-price { font-weight: 700; color: var(--ok); font-variant-numeric: tabular-nums; white-space: nowrap; }
.qd-price small { margin-inline-start: 4px; font-weight: 600; color: var(--steel); font-size: .6875rem; }
.qd-pick { border-color: var(--sea); box-shadow: inset 3px 0 0 var(--sea); }

.qd-detail { padding: 8px 10px 10px; border-radius: 4px; background: var(--paper); border: 1px solid var(--line); }
.qd-tabs { display: flex; gap: 14px; border-bottom: 1px solid var(--line); overflow: hidden; }
.qd-tabs span { padding-bottom: 5px; font-weight: 600; color: var(--steel); white-space: nowrap; }
.qd-tabs .is-on { color: var(--ink); box-shadow: inset 0 -2px 0 var(--sea); }
.qd-detail dl { margin: 6px 0 8px; }
.qd-detail dl > div { display: flex; justify-content: space-between; gap: 12px; padding-block: 2px; }
.qd-detail dt { color: var(--steel); }
.qd-detail dd { margin: 0; font-variant-numeric: tabular-nums; }
.qd-detail-foot { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; justify-content: space-between; padding-top: 8px; border-top: 1px solid var(--line); }
.qd-done { padding: 7px 10px; border-radius: 4px; background: var(--ok-soft); color: var(--ok); font-weight: 700; }

.qd-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--sea); transform-origin: left; transform: scaleX(0); }

@media (prefers-reduced-motion: no-preference) {
    /* Every animation shares one loop length, so a start delay (--d) places a part on
       the timeline and it keeps its place on every round. */
    .qd-scene { animation: qd-scene var(--qd-loop) linear var(--d, 0s) infinite backwards; }
    .qd-scene--last { animation-name: qd-scene-last; }
    .qd-pop { animation: qd-pop var(--qd-loop) linear var(--d, 0s) infinite backwards; }
    .qd-press { animation: qd-press var(--qd-loop) linear var(--d, 0s) infinite backwards; }
    .qd-pick { animation: qd-pop var(--qd-loop) linear var(--d, 0s) infinite backwards, qd-pick var(--qd-loop) linear var(--p, 0s) infinite backwards; }
    .qd-thumb { animation: qd-thumb var(--qd-loop) cubic-bezier(.4, 0, .2, 1) infinite; }
    .qd-progress { animation: qd-progress var(--qd-loop) linear infinite; }
    .qd-screen:hover * { animation-play-state: paused; }
}

/* A step is on stage for 3.5s of the 24s loop; the last one for 10s. */
@keyframes qd-scene {
    0% { opacity: 0; transform: translateX(14px); }
    1.4%, 13.4% { opacity: 1; transform: none; }
    14.58%, 100% { opacity: 0; transform: translateX(-14px); }
}
@keyframes qd-scene-last {
    0% { opacity: 0; transform: translateX(14px); }
    1.4%, 40.4% { opacity: 1; transform: none; }
    41.67%, 100% { opacity: 0; transform: none; }
}
/* Shown for half a loop: longer than any step lasts, and gone again well before the
   step comes back. */
@keyframes qd-pop {
    0% { opacity: 0; transform: translateY(5px); }
    1.4%, 50% { opacity: 1; transform: none; }
    51%, 100% { opacity: 0; transform: none; }
}
@keyframes qd-press {
    0%, 3.2%, 100% { transform: none; filter: none; }
    1.6% { transform: scale(.93); filter: brightness(1.35); }
}
@keyframes qd-pick {
    0% { border-color: var(--line); box-shadow: inset 0 0 0 var(--sea); }
    1.4%, 50% { border-color: var(--sea); box-shadow: inset 3px 0 0 var(--sea); }
    51%, 100% { border-color: var(--line); box-shadow: inset 0 0 0 var(--sea); }
}
@keyframes qd-thumb {
    0%, 13.4% { transform: translateX(0); }
    14.58%, 28% { transform: translateX(100%); }
    29.17%, 42.6% { transform: translateX(200%); }
    43.75%, 57.2% { transform: translateX(300%); }
    58.33%, 100% { transform: translateX(400%); }
}
@keyframes qd-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* --- forwarding agents */

.fa-from { font-size: .9375rem; color: var(--steel); margin: 0 0 18px; }
.fa-from b { color: var(--ink); }
.fa-block { padding-top: 80px; }
.fa-block .flow { margin-top: 0; }

.fa-map { margin: 0; padding: 12px 8px 4px; background: var(--paper); border-radius: var(--radius-xs); }
.fa-map svg { width: 100%; }
.fa-map .ring { fill: none; stroke: var(--line); stroke-width: 1.2; }
.fa-map .ringlabel { font-size: 10.5px; font-weight: 600; fill: var(--steel); paint-order: stroke; stroke: var(--paper); stroke-width: 4px; }
.fa-map .spoke { stroke: var(--steel); stroke-width: 1; stroke-dasharray: 2 3; opacity: .45; }
.fa-map .c circle { fill: var(--sea); stroke: var(--surface); stroke-width: 2; }
.fa-map .c text { font-size: 12.5px; font-weight: 650; fill: var(--ink); paint-order: stroke; stroke: var(--paper); stroke-width: 4px; }
/* The hub is KCI blue with its label in the contrast colour of the theme. */
.fa-map .hub { fill: var(--brand); stroke: var(--surface); stroke-width: 2.5; }
.fa-map .hubt { font-size: 11px; font-weight: 800; fill: var(--brand-contrast); }
.fa-map .hubs { font-size: 9px; fill: var(--brand-contrast); }
.fa-map figcaption { font-size: .8125rem; color: var(--steel); padding: 4px 12px 10px; }
/* Home page motion (2026-11-25, wwwroot/motion.js): the bars of the invoice and mode panels grow when the script
   plays them; the agents' road map flows outwards from the hub. Loops only without reduced motion. */
.inv.is-live .seg { transition: width .7s cubic-bezier(.3, .8, .3, 1); }
.mode-compare.is-live .mrow-fill { transition: width .8s cubic-bezier(.3, .8, .3, 1); }
.mode-compare.is-live .mrow-amt { opacity: 0; transition: opacity .4s ease; }
.mode-compare.is-live .mrow-amt.in { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
    .fa-map .spoke { animation: fa-spoke 1.2s linear infinite; }
    .fa-map .hub { animation: fa-hub 2.6s ease-out infinite; }
}
@keyframes fa-spoke { to { stroke-dashoffset: -10; } }
@keyframes fa-hub {
    0% { stroke: color-mix(in srgb, var(--brand) 40%, transparent); stroke-width: 2.5; }
    100% { stroke: transparent; stroke-width: 22; }
}

.gateways { margin-top: 48px; border-block: 1px solid var(--line); }
.gateways .wrap { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.gw { padding: 22px 24px 22px 0; }
.gw + .gw { border-inline-start: 1px solid var(--line); padding-inline-start: 24px; }
.gw b { display: block; margin-bottom: 4px; font-size: .9375rem; font-weight: 600; color: var(--steel); }
.gw span { font-weight: 750; font-size: 1.1875rem; }

.promise { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px; align-items: start; }
.promise-statement { background: var(--slab); color: #ffffff; border-radius: var(--radius-xs); padding: 40px; }
.promise-statement .block-title { color: #ffffff; font-weight: 800; font-size: clamp(26px, 3.2vw, 36px); }
.promise-statement p { color: #d3dee6; margin: 16px 0 0; max-width: 46ch; }
.promise ul { list-style: none; margin: 0; padding: 0; }
.promise li { padding-block: 18px; border-top: 1px solid var(--line); }
.promise li:last-child { border-bottom: 1px solid var(--line); }
.promise li b { display: block; margin-bottom: 4px; font-size: 1.125rem; }
.promise li span { color: var(--steel); }

.svc-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px; margin-top: 32px; }
.svc-cols h4 { font-size: 1.375rem; padding-bottom: 12px; border-bottom: 1px solid var(--ink); }
.svc-dir { font-size: .9375rem; color: var(--steel); margin: 10px 0 4px; }
.svc-cols dl { margin: 0; }
.svc-cols dl > div { display: grid; grid-template-columns: 150px 1fr; gap: 20px; padding-block: 14px; border-bottom: 1px solid var(--line); }
.svc-cols dt { font-weight: 700; }
.svc-cols dd { margin: 0; color: var(--steel); }

.fa-portal { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 56px; align-items: center; }
.fa-portal p { color: var(--steel); max-width: 50ch; margin: 16px 0 0; }
.tracker { border: 1px solid var(--line); border-radius: var(--radius-xs); padding: 24px; font-size: .9375rem; }
.tracker-head { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.tracker-head b { font-size: 1.0625rem; }
.tracker-head span { color: var(--steel); font-size: .875rem; text-align: end; }
.tracker ol { list-style: none; margin: 0; padding: 0; }
.tracker li { display: grid; grid-template-columns: 16px 1fr auto; gap: 12px; align-items: start; padding-bottom: 14px; position: relative; }
.tracker li::before { content: ""; width: 12px; height: 12px; margin-top: 5px; border-radius: 50%; background: var(--sea); }
.tracker li:not(:last-child)::after { content: ""; position: absolute; inset-inline-start: 5px; top: 19px; bottom: 0; width: 2px; background: var(--sea); }
.tracker li.is-now b { justify-self: start; padding: 0 4px; border-radius: 3px; background: var(--signal-soft); }
.tracker li.is-next { color: var(--steel); }
.tracker li.is-next::before { background: var(--surface); border: 2px solid var(--line); }
.tracker li.is-next::after { background: var(--line); }
.tracker em { font-style: normal; font-size: .8125rem; color: var(--steel); white-space: nowrap; }

@media (max-width: 900px) {
    .part-hero, .part-hero--map, .calc, .svc-list, .reasons, .promise, .svc-cols, .fa-portal { grid-template-columns: 1fr; }
    .part-hero, .part-hero--map { gap: 36px; }
    .hook { grid-template-columns: 1fr; gap: 10px; }
    .svc-list dl > div, .svc-cols dl > div { grid-template-columns: 1fr; gap: 4px; }
    .flow ol { grid-template-columns: 1fr; gap: 20px; }
    .flow li { display: grid; grid-template-columns: 52px 1fr; padding: 0; }
    .flow li::before { grid-row: span 2; margin: 0; }
    .flow li::after { display: none; }
    .qd-body { grid-template-columns: 1fr; gap: 28px; }
    .gateways .wrap { grid-template-columns: 1fr; }
    .gw, .gw + .gw { padding: 16px 0; border-inline-start: 0; }
    .gw + .gw { border-top: 1px solid var(--line); }
    .fa-block { padding-top: 56px; }
}

@media (max-width: 560px) {
    .part { padding-block: 56px 64px; }
    .calc-fields { grid-template-columns: 1fr; }
    .calc-inputs, .calc-result, .closing, .price-compare, .mode-compare, .promise-statement { padding: 22px; }
    .mrow { grid-template-columns: 84px 1fr 70px; }
    .qd-head, .qd-body { padding-inline: 18px; }
    .qd-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .qd-field--wide { grid-column: 1 / -1; }
    .qd-stepper span { font-size: .6875rem; }
}

/* ================================================================ network map

   The home hero (Components/Home/NetworkMap.razor): the KCI network on a navy sea chart.
   The audience switch is three radio buttons read through :has(). The hubs take turns:
   12 turns of 4s on a 48s loop, each element's turn in --i. Every loop is declared inside
   prefers-reduced-motion: no-preference (the global reduced-motion rule would turn a loop
   into a flicker); at rest all hubs and lanes are lit at once and the card names none. */

.nm { background: radial-gradient(120% 90% at 70% 60%, var(--night-2), var(--night) 70%); color: var(--night-text); overflow: hidden; }
.nm-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 48px; align-items: start; padding-block: 56px 16px; }
.nm .eyebrow { color: var(--lane); }
.nm h1 { font-size: clamp(34px, 4.6vw, 56px); line-height: 1.05; color: var(--night-text); margin: 0; max-width: none; text-wrap: pretty; }
.nm h1 em { font-style: normal; color: var(--lane); }
.nm .lede { color: var(--night-muted); font-size: 1.12rem; max-width: 58ch; margin: 18px 0 0; }
.nm-modes-label { margin: 0 0 10px; font-size: .82rem; color: var(--night-muted); }
.nm-modes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; padding: 4px; border: 1px solid var(--night-line); border-radius: var(--radius); background: rgba(0, 0, 0, .18); }
.nm-modes input { position: absolute; opacity: 0; pointer-events: none; }
.nm-modes label { display: block; min-width: 0; padding: 10px 12px; border-radius: 5px; cursor: pointer; transition: background .2s; }
.nm-modes label b { display: block; font: 600 .95rem/1.2 var(--font-display); color: var(--night-text); }
.nm-modes label span { display: block; margin-top: 4px; font: 500 .69rem/1.3 var(--font-mono); color: var(--night-muted); }
.nm-modes label:hover { background: rgba(255, 255, 255, .05); }
.nm-modes input:checked + label { background: var(--brand); }
.nm-modes input:checked + label b { color: var(--brand-contrast); }
.nm-modes input:checked + label span { color: color-mix(in srgb, var(--brand-contrast) 78%, transparent); }
.nm-modes input:focus-visible + label { outline: 2px solid var(--lane); outline-offset: 2px; }
@media (max-width: 860px) { .nm-head { grid-template-columns: 1fr; gap: 28px; padding-top: 40px; } }

.nm-chart { position: relative; max-width: 1560px; margin: 0 auto; }
.nm-map { position: relative; }
.nm-map svg { width: 100%; height: auto; }
.nm-map::before, .nm-map::after { content: ""; position: absolute; top: 0; bottom: 0; width: 4%; pointer-events: none; z-index: 1; }
.nm-map::before { left: 0; background: linear-gradient(90deg, var(--night), transparent); }
.nm-map::after { right: 0; background: linear-gradient(-90deg, var(--night), transparent); }

.nm-foot .wrap { display: grid; gap: 16px; padding-block: 4px 44px; }
.nm-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px; font-size: .8rem; color: var(--night-muted); }
.nm-legend span { display: flex; align-items: center; gap: 9px; }
.nm-legend svg { width: 28px; height: 10px; flex: none; }
.nm-key-lane { stroke: var(--lane); stroke-width: 2; }
.nm-key-air { stroke: var(--air); stroke-width: 1.4; stroke-dasharray: 3 3; }
.nm-key-road { stroke: var(--road); stroke-width: 1.2; }

/* The tabs and the text they pick: one card beside the headline. On a wide screen it runs on
   down over the empty top-right of the map: the large negative bottom margin takes it out of
   the row's height, so the map starts under the headline and the card lies on top of it. */
.nm-side {
    position: relative; z-index: 3; min-width: 0; padding: 20px 24px 26px;
    background: var(--night-panel); backdrop-filter: blur(6px);
    border: 1px solid var(--night-line); border-radius: var(--radius-lg);
    box-shadow: var(--shadow-3);
}
@media (min-width: 861px) { .nm-side { margin-bottom: -100vh; } }
.nm-copy { display: none; gap: 16px; margin-top: 22px; }
.nm:has(#nm-import:checked) .nm-copy[data-m="import"],
.nm:has(#nm-export:checked) .nm-copy[data-m="export"],
.nm:has(#nm-agent:checked) .nm-copy[data-m="agent"] { display: grid; }
.nm-copy h2 { font-size: 1.5rem; line-height: 1.2; margin: 0; color: var(--night-text); }
.nm-copy > p { margin: 0; font-size: .97rem; line-height: 1.6; color: var(--night-muted); }
.nm-chain { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font: 500 .72rem/1 var(--font-mono); color: var(--night-text); }
.nm-chain span { padding: 6px 7px; border: 1px solid var(--night-line); border-radius: 4px; }
.nm-chain i { flex: 1 1 14px; min-width: 14px; height: 1px; background: repeating-linear-gradient(90deg, var(--lane) 0 4px, transparent 4px 8px); }
.nm-copy ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; font-size: .92rem; line-height: 1.5; color: var(--night-muted); }
.nm-copy li { display: grid; grid-template-columns: 14px minmax(0, 1fr); column-gap: 12px; row-gap: 2px; }
.nm-copy li::before { content: ""; grid-row: span 2; width: 7px; height: 7px; margin-top: 8px; border: 1.5px solid var(--lane); border-radius: 50%; }
.nm-copy li b { color: var(--night-text); font-weight: 600; font-size: .97rem; }
.nm-btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
/* The pitch of each tab (2026-11-25): three KPI figures, counted up by motion.js when the tab shows. */
.nm-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.nm-kpis > div { min-width: 0; padding: 12px 12px 11px; border: 1px solid var(--night-line); border-radius: var(--radius); background: color-mix(in srgb, var(--brand) 5%, transparent); }
.nm-kpis b { display: block; font: 700 1.7rem/1.05 var(--font-display); letter-spacing: -.02em; color: var(--brand); font-variant-numeric: tabular-nums; white-space: nowrap; }
.nm-kpis > div:first-child b { color: var(--ok); }
.nm-kpis span { display: block; margin-top: 6px; font-size: .76rem; line-height: 1.35; color: var(--night-muted); }
@media (max-width: 420px) { .nm-kpis { grid-template-columns: 1fr; } }
/* The tab's progress while the tabs rotate (motion.js sets the width). */
.nm-modes label { position: relative; overflow: hidden; }
.nm-bar { position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: color-mix(in srgb, var(--brand-contrast) 75%, transparent); }
@media (max-width: 1000px) { .nm-legend { justify-content: flex-start; } }

/* The drawing. Lanes are drawn three times: faint always, lit in their turn, dashes on top. */
.nm-ocean { fill: var(--night); }
/* The land image has its colour baked in: light land for the light theme, navy land for the dark one. */
.nm-land--dark { display: none; }
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .nm-land--light { display: none; }
    :root:not([data-theme="light"]) .nm-land--dark { display: inline; }
}
:root[data-theme="dark"] .nm-land--light { display: none; }
:root[data-theme="dark"] .nm-land--dark { display: inline; }
.nm-grat { fill: none; stroke: var(--night-grid); stroke-width: .6; }
.nm-grat-lbl { font: 500 7px var(--font-mono); fill: var(--night-muted); opacity: .45; }
.nm-region { font: 600 10px var(--font-display); letter-spacing: .32em; fill: var(--night-muted); opacity: .55; }
.nm-lane { fill: none; stroke: var(--lane); stroke-width: 1.2; opacity: .2; stroke-linejoin: round; }
.nm-lane-hot { fill: none; stroke: var(--lane); stroke-width: 1.5; opacity: .6; stroke-linecap: round; stroke-linejoin: round; }
.nm-lane-flow { fill: none; stroke: var(--lane); stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: 1 15; }
.nm-air { fill: none; stroke: var(--air); stroke-width: .8; stroke-dasharray: 3 4; opacity: .18; }
.nm-air-hot { fill: none; stroke: var(--air); stroke-width: 1.1; stroke-dasharray: 3 4; opacity: .55; }
.nm-air-flow { fill: none; stroke: var(--air); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 1 31; opacity: .9; }
.nm-road { fill: none; stroke: var(--road); stroke-width: .8; opacity: .4; transition: opacity .3s, stroke .3s; }
.nm-road-flow { fill: none; stroke: var(--lane); stroke-width: 1.6; stroke-linecap: round; stroke-dasharray: 1 7; opacity: 0; transition: opacity .3s; }
.nm-road-dot { fill: var(--road); opacity: .7; }
.nm-node { fill: var(--night); stroke: var(--lane); stroke-width: 1.5; }
.nm-node-core { fill: var(--lane); }
.nm-port { fill: var(--night); stroke: var(--night-text); stroke-width: 1.2; }
.nm-airport { fill: var(--night); stroke: var(--air); stroke-width: 1.2; }
.nm-ring { fill: none; stroke: var(--lane); stroke-width: 1.4; }
.nm-city { font: 500 10.5px var(--font); fill: var(--night-text); paint-order: stroke; stroke: var(--night); stroke-width: 3px; stroke-linejoin: round; }
.nm-code { font: 500 7.6px var(--font-mono); fill: var(--lane); letter-spacing: .04em; paint-order: stroke; stroke: var(--night); stroke-width: 3px; }
.nm-code--eu { fill: var(--night-text); font-size: 6.8px; }
.nm-hub { fill: none; stroke: var(--night-text); stroke-width: 1.2; }
.nm-hub-core { fill: var(--night-text); }
.nm-hub-pulse { fill: none; stroke: var(--lane); stroke-width: 1.2; transform-box: fill-box; transform-origin: center; opacity: 0; }
.nm-hub-card rect { fill: var(--night-2); stroke: var(--night-line); }
.nm-hub-t { font: 600 11px var(--font-display); fill: var(--night-text); }
.nm-hub-s { font: 500 7.8px var(--font-mono); fill: var(--lane); }
.nm-turn-mark { opacity: 0; }
.nm-eu-callout { opacity: 0; transition: opacity .3s; }
.nm-eu-callout text { font: 600 9.5px var(--font-display); fill: var(--lane); }
.nm-eu-callout .nm-eu-sub { font: 500 7.5px var(--font-mono); fill: var(--night-muted); }

.nm:has(#nm-agent:checked) .nm-road { stroke: var(--lane); opacity: .6; }
.nm:has(#nm-agent:checked) .nm-road-flow { opacity: 1; }
.nm:has(#nm-agent:checked) .nm-road-dot { fill: var(--lane); opacity: 1; }
.nm:has(#nm-agent:checked) .nm-eu-callout { opacity: 1; }
.nm:has(#nm-import:checked) .nm-road-flow, .nm:has(#nm-export:checked) .nm-road-flow { opacity: .6; }
@media (max-width: 640px) { .nm-minor { display: none; } }

@media (prefers-reduced-motion: no-preference) {
    /* Lanes are drawn from Europe outward: forward is an export, reverse an import. */
    .nm-lane-flow { animation: nm-flow 2.6s linear infinite; }
    .nm-air-flow { animation: nm-flow-air 3.4s linear infinite; }
    .nm-road-flow { animation: nm-flow-road 1.4s linear infinite; }
    .nm:has(#nm-import:checked) .nm-lane-flow, .nm:has(#nm-agent:checked) .nm-lane-flow,
    .nm:has(#nm-import:checked) .nm-air-flow, .nm:has(#nm-agent:checked) .nm-air-flow,
    .nm:has(#nm-export:checked) .nm-road-flow { animation-direction: reverse; }
    .nm-hub-pulse { animation: nm-pulse 2.4s ease-out infinite; }

    /* The hubs' turns. A negative delay puts each one on the shared timeline from the start. */
    .nm-turn { animation: nm-turn 48s linear infinite; animation-delay: calc(var(--i) * 4s - 48s); }
    .nm-turn-mark { animation: nm-turn-mark 48s linear infinite; animation-delay: calc(var(--i) * 4s - 48s); }
    .nm-north { animation: nm-north 48s linear infinite; }   /* turns 0-5: round Spain */
    .nm-sea { animation: nm-sea 48s linear infinite; }       /* turns 0-8: every sea hub */
    .nm-rest { display: none; }
}
@keyframes nm-flow { to { stroke-dashoffset: -32; } }
@keyframes nm-flow-air { to { stroke-dashoffset: -64; } }
@keyframes nm-flow-road { to { stroke-dashoffset: -16; } }
@keyframes nm-pulse { from { transform: scale(.6); opacity: .9; } to { transform: scale(2.4); opacity: 0; } }
@keyframes nm-turn { 0% { opacity: 0; } 1.5%, 7.5% { opacity: 1; } 8.33%, 100% { opacity: 0; } }
@keyframes nm-turn-mark { 0% { opacity: 0; } .8%, 7.5% { opacity: 1; } 8.33%, 100% { opacity: 0; } }
@keyframes nm-north { 0%, 49.2% { opacity: 1; } 50%, 99.2% { opacity: 0; } 100% { opacity: 1; } }
@keyframes nm-sea { 0%, 74.2% { opacity: 1; } 75%, 99.2% { opacity: 0; } 100% { opacity: 1; } }

/* ================================================================ home sections */

/* Coverage strip under the map. */
.cover { border-bottom: 1px solid var(--border); }
.cover .wrap { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cover-cell { min-width: 0; padding: 28px 24px 30px; border-inline-start: 1px solid var(--border); }
.cover-cell:first-child { border-inline-start: 0; padding-inline-start: 0; }
.cover b { display: block; font: 600 1.9rem/1 var(--font-display); letter-spacing: -.02em; }
.cover b small { margin-inline-start: 6px; font: 500 .75rem var(--font-mono); letter-spacing: 0; color: var(--text-muted); }
.cover p { margin: 10px 0 0; font-size: .875rem; line-height: 1.5; color: var(--text-muted); }
@media (max-width: 860px) {
    .cover .wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cover-cell { padding: 22px 16px; }
    .cover-cell:nth-child(odd) { border-inline-start: 0; padding-inline-start: 0; }
    .cover-cell:nth-child(n+3) { border-top: 1px solid var(--border); }
}

/* Three audience cards. */
.aud { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.aud a {
    display: flex; flex-direction: column; gap: 12px; min-width: 0; padding: 26px 24px 24px;
    border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); color: var(--text);
    transition: border-color .2s, transform .2s;
}
.aud a:hover { border-color: var(--brand); transform: translateY(-2px); text-decoration: none; }
.aud h3 { font-size: 1.375rem; margin: 0; }
.aud p { flex: 1; margin: 0; font-size: .94rem; color: var(--text-muted); }
.aud-dir { display: flex; align-items: center; gap: 8px; font: 500 .75rem var(--font-mono); color: var(--brand); }
.aud-dir i { position: relative; width: 26px; height: 1px; background: currentColor; }
.aud-dir i::after { content: ""; position: absolute; right: -1px; top: -3px; border: 3.5px solid transparent; border-left: 5px solid currentColor; border-right: 0; }
.aud-more { font-weight: 600; color: var(--brand); font-size: .94rem; }
@media (max-width: 860px) { .aud { grid-template-columns: 1fr; } }

/* A ruled grid of short items with an icon (what we handle). */
.ruled { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--border); }
.ruled > div { min-width: 0; padding: 26px 26px 28px; border-bottom: 1px solid var(--border); border-inline-start: 1px solid var(--border); }
.ruled > div:nth-child(3n+1) { padding-inline-start: 0; border-inline-start: 0; }
.ruled svg { color: var(--brand); }
.ruled h3 { font-size: 1.125rem; margin: 14px 0 6px; }
.ruled p { margin: 0; font-size: .94rem; color: var(--text-muted); }
@media (max-width: 860px) {
    .ruled { grid-template-columns: 1fr; }
    .ruled > div { padding: 22px 0; border-inline-start: 0; }
}

/* The closing call to action: text left, buttons right. */
/* Harbour: the closing band is KCI blue with white type; its first button turns white. */
.cta-band { padding-block: 64px; background: var(--slab); color: #ffffff; }
.cta-band h2 { color: #ffffff; }
.cta-band .btn--primary { background: #ffffff; color: #0a3f8f; }
.cta-band .btn--primary:hover { background: #eef4fe; color: #0a3f8f; }
.cta-band .btn--ghost { color: #ffffff; border-color: rgba(255, 255, 255, .5); }
.cta-band .btn--ghost:hover { background: rgba(255, 255, 255, .1); border-color: #ffffff; color: #ffffff; }
.cta-band .wrap { display: grid; grid-template-columns: minmax(0, 1.3fr) auto; gap: 32px; align-items: center; }
.cta-band h2 { font-size: clamp(1.6rem, 2.8vw, 2.1rem); margin: 0; }
.cta-band p { margin: 10px 0 0; color: var(--slab-muted); max-width: 62ch; }
@media (max-width: 860px) { .cta-band .wrap { grid-template-columns: 1fr; } }

/* ======================================================================== news

   /news and /news/{slug}. The classes inside .news-body (key-takeaways, rate-table,
   rate-up, rate-down, shipper-impact) are the ones the ERP's editor and the Claude
   prompt produce; the sanitizer lets no other class through. */

/* The column is narrower than the page but starts at the same left edge as the
   heading above it, so the limit is on what is inside the wrap, not on the wrap. */
.news > * { max-width: 860px; }

.hero--compact { padding-block: clamp(40px, 5vw, 64px) clamp(20px, 3vw, 32px); }
.hero--compact .lede { margin-bottom: 0; }

.news-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; }
.news-filter a {
    padding: 6px 14px; border-radius: var(--radius-pill); border: 1px solid var(--border);
    color: var(--text-muted); font-size: .9rem; font-weight: 600;
}
.news-filter a:hover { background: var(--bg-sunken); color: var(--text); text-decoration: none; }
.news-filter a[aria-current="true"] { background: var(--brand-soft); border-color: transparent; color: var(--brand); }

.news-meta { color: var(--text-faint); font-size: .86rem; margin: 0 0 6px; }
.news-meta a { color: var(--text-muted); font-weight: 600; }
.news-summary { color: var(--text-muted); }

.news-card { padding-block: 22px; border-bottom: 1px solid var(--border-soft); }
.news-card:first-of-type { padding-top: 0; }
.news-card h2 { font-size: 1.3rem; letter-spacing: -.01em; margin: 0 0 6px; }
.news-card h2 a { color: var(--text); }
.news-card h2 a:hover { color: var(--brand); }

.news-pager {
    display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px;
    margin-top: 30px; font-size: .9rem; color: var(--text-muted);
}
.news-pager > :first-child { justify-self: start; }
.news-pager > :last-child { justify-self: end; }

.news-article h1 { font-size: clamp(1.8rem, 1.3rem + 1.8vw, 2.6rem); margin-top: 10px; }
.news-article .news-summary { font-size: 1.15rem; margin-bottom: 28px; }

.news-body { overflow-wrap: anywhere; }
.news-body h2 { font-size: 1.35rem; margin-top: 1.8em; }
.news-body h3 { font-size: 1.1rem; margin-top: 1.4em; }
.news-body ul, .news-body ol { padding-inline-start: 1.3em; margin: 0 0 1em; }
.news-body li { margin-bottom: .3em; }
.news-body blockquote { margin: 1.2em 0; padding: .2em 1.1em; border-inline-start: 3px solid var(--border); color: var(--text-muted); }
.news-body table { width: 100%; border-collapse: collapse; margin: 1.2em 0; font-size: .94rem; font-variant-numeric: tabular-nums; }
.news-body th, .news-body td { padding: 9px 12px; text-align: start; border-bottom: 1px solid var(--border-soft); }
.news-body th { background: var(--bg-sunken); font-weight: 650; }
.news-body .key-takeaways {
    border-inline-start: 4px solid var(--signal); background: var(--signal-soft);
    padding: 14px 18px; margin: 0 0 1.4em; border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.news-body .key-takeaways ul { margin: 0; }
.news-body .rate-up { color: var(--danger); font-weight: 650; }
.news-body .rate-down { color: var(--ok); font-weight: 650; }
.news-body .shipper-impact { background: var(--brand-soft); padding: 16px 20px; margin-top: 1.8em; border-radius: var(--radius); }
.news-body .shipper-impact > :first-child { margin-top: 0; }

/* A rate table is wider than a phone: it scrolls sideways inside the article
   instead of pushing the page wider. */
@media (max-width: 640px) {
    .news-body table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
}

.news-tags { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.news-sources { margin-top: 32px; padding-top: 18px; border-top: 1px solid var(--border-soft); font-size: .9rem; }
.news-sources h2 { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-faint); margin-bottom: 10px; }
.news-sources ul { padding-inline-start: 1.2em; margin: 0; display: grid; gap: 4px; }
/* ================================================================= rates frame

   RatesFrame.razor on /fagents: the lane picker on a navy slab, a card per route,
   and the panel of the open carrier. Every state is a link, so nothing here depends
   on script; rates-live.js only adds .rf-flash to cells whose price just changed. */

.rf-sec { scroll-margin-top: var(--header-height); }
.rf { background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius-lg); overflow: hidden; }

.rf-head { background: var(--slab); color: #ffffff; padding: 24px 28px; display: grid; gap: 18px; }
.rf-title { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 24px; }
.rf-title h2 { font-size: 1.6rem; margin: 0; color: #ffffff; }
.rf-title p { margin: 0; color: var(--slab-muted); font-size: .94rem; }

.rf-lane { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 14px; align-items: end; }
.rf-lane label { display: grid; gap: 6px; min-width: 0; }
.rf-lane label span { font-size: .84rem; font-weight: 600; color: var(--slab-muted); }
.rf-lane select { border-color: transparent; }
.rf-lane .btn { background: #ffffff; color: #0f2236; }
.rf-lane .btn:hover { box-shadow: var(--shadow-2); }

.rf-bar {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 20px;
    padding: 12px 28px; border-bottom: 1px solid var(--border-soft); font-size: .88rem; color: var(--text-muted);
}
.rf-live { display: inline-flex; align-items: center; gap: 8px; }
.rf-live i { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px var(--ok-soft); }

.rf-cards { display: grid; gap: 18px; padding: 20px; }
.rf-card { border: 1px solid var(--border-soft); border-radius: var(--radius); overflow: hidden; min-width: 0; scroll-margin-top: calc(var(--header-height) + 12px); }

.rf-meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); background: var(--bg-sunken); border-bottom: 1px solid var(--border-soft); }
.rf-meta > div { padding: 11px 16px; min-width: 0; }
.rf-meta > div + div { border-inline-start: 1px solid var(--border-soft); }
.rf-meta span { display: block; font-size: .7rem; letter-spacing: .09em; text-transform: uppercase; color: var(--text-faint); font-weight: 700; }
.rf-meta b { font-weight: 650; overflow-wrap: anywhere; }

.rf-table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: .93rem; font-variant-numeric: tabular-nums; }
.rf-table th, .rf-table td { padding: 12px 16px; text-align: start; white-space: nowrap; }
.rf-table th {
    font-size: .7rem; letter-spacing: .08em; text-transform: uppercase;
    color: var(--text-faint); font-weight: 700; border-bottom: 1px solid var(--border-soft);
}
.rf-table td { border-bottom: 1px solid var(--border-soft); }
.rf-table > tbody > tr:last-child > td { border-bottom: 0; }
.rf-table .num { text-align: end; }
.rf-table tr.is-open { background: var(--brand-soft); }
.rf-neg { color: var(--danger); }

.rf-carrier { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; }
.rf-carrier:hover { color: var(--brand); text-decoration: none; }
.rf-chev {
    width: 7px; height: 7px; flex: none;
    border-inline-end: 2px solid var(--text-faint); border-bottom: 2px solid var(--text-faint);
    transform: rotate(-45deg); transition: transform .15s ease;
}
.is-open .rf-chev { transform: rotate(45deg); border-color: var(--brand); }
.rf-logo { height: 20px; width: auto; max-width: 96px; object-fit: contain; }

.rf-flash { animation: rf-flash 2.6s ease-out; }
@keyframes rf-flash { from { background: var(--signal-soft); } to { background: transparent; } }

/* The open carrier's panel is a row of the card's table, directly under its carrier.
   When the table is wider than the card and scrolls sideways, the panel keeps the
   card's width and stays in view instead of scrolling away with the columns. */
.rf-card > .table-scroll { container-type: inline-size; }
.rf-table td.rf-detail-cell { padding: 0; white-space: normal; }
.rf-detail {
    position: sticky; inset-inline-start: 0; width: 100cqw;
    background: var(--bg-sunken); padding: 18px; display: grid; gap: 14px; min-width: 0;
}
.rf-detail-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; }
.rf-detail-head h3 { margin: 0; font-size: 1.08rem; }
.rf-detail-head p { margin: 2px 0 0; font-size: .88rem; color: var(--text-muted); }
.rf-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.rf-tabs a {
    padding: 6px 14px; border-radius: var(--radius-pill); border: 1px solid var(--border);
    background: var(--surface); color: var(--text-muted); font-size: .9rem; font-weight: 600;
}
.rf-tabs a:hover { color: var(--text); text-decoration: none; }
.rf-tabs a[aria-current="true"] { background: var(--brand-soft); border-color: transparent; color: var(--brand); }

.rf-sub { background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius-sm); }
.rf-sub .rf-table { font-size: .89rem; }
.rf-total td { font-weight: 700; border-top: 1px solid var(--border); }
.rf-cy { margin-inline-start: 4px; font-size: .7rem; font-weight: 700; letter-spacing: .04em; color: var(--brand); }
.rf-note { margin: 0; font-size: .88rem; color: var(--text-muted); }
.rf-note a { font-weight: 600; }
.rf-sent { margin: 0; }

/* Weekly updates: the button is the summary of a <details>, so it opens the form
   without script. */
.rf-weekly { justify-self: end; max-width: 100%; }
.rf-weekly[open] { justify-self: stretch; }
.rf-weekly summary { list-style: none; }
.rf-weekly summary::-webkit-details-marker { display: none; }
.rf-weekly[open] summary { display: none; }
.rf-weekly form {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 0 16px; align-items: start;
    background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius-sm); padding: 16px;
}
.rf-weekly form > p { grid-column: 1 / -1; font-size: .88rem; color: var(--text-muted); margin-bottom: 14px; }
.rf-weekly form > p b { display: block; color: var(--text); font-size: .98rem; }
.rf-weekly .field { margin-bottom: 0; }
.rf-weekly form > .btn { margin-top: 27px; }

.rf-empty { margin: 20px; padding: 40px 24px; text-align: center; border: 1px dashed var(--border); border-radius: var(--radius); color: var(--text-muted); }
.rf-empty h3 { color: var(--text); }
.rf-empty .btn { margin-top: 18px; }

.rf-foot {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 28px;
    padding: 18px 28px; border-top: 1px solid var(--border-soft);
}
.rf-foot p { margin: 0; font-size: .84rem; color: var(--text-muted); max-width: 72ch; }

@media (max-width: 720px) {
    .rf-head, .rf-bar, .rf-foot { padding-inline: 18px; }
    .rf-cards { padding: 12px; }
    .rf-lane, .rf-weekly form { grid-template-columns: 1fr; }
    .rf-weekly form { gap: 14px; }
    .rf-weekly form > p { margin-bottom: 0; }
    .rf-weekly form > .btn { margin-top: 0; }
    .rf-meta { grid-template-columns: 1fr; }
    .rf-meta > div + div { border-inline-start: 0; border-top: 1px solid var(--border-soft); }
}

/* The general rule gives every scrolling table a 760px floor; these set their own. */
.table-scroll .rf-table { min-width: 560px; }

/* ------------------------------------------------ /importers, Harbour (2026-11-25) */

/* Three animated pictures on /importers, each driven by wwwroot/motion.js through data-motion and each complete
   without it: the markup is the resting picture. Looping motion sits inside prefers-reduced-motion: no-preference
   (see "Things that bite" in CLAUDE.md); with reduced motion the script does not start at all. */

/* ---- the example shipment in the hero (ShipmentDemo.razor, shp-*) */
.shp { position: relative; overflow: hidden; padding: 24px; color: var(--text);
    background: var(--surface); border: 1px solid var(--border-soft); border-radius: 14px; box-shadow: var(--shadow-3); }
.shp-bar { position: absolute; top: 0; left: 0; height: 3px; width: 0; background: var(--brand); transition: width .2s linear; }
.shp-bar.is-done { background: var(--ok); }
.shp-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: .82rem; color: var(--text-muted); }
.shp-ref { font-family: var(--font-mono); font-size: .78rem; color: var(--text); }
.shp-route { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; margin: 20px 0 18px; }
.shp-port b { display: block; font: 600 1.4rem/1.1 var(--font-display); letter-spacing: -.02em; }
.shp-port span { font: 500 .74rem var(--font-mono); color: var(--text-muted); }
.shp-port:last-child { text-align: end; }
.shp-lane { position: relative; }
.shp-lane svg { display: block; width: 100%; height: auto; overflow: visible; }
.shp-rest { fill: none; stroke: var(--border); stroke-width: 2; stroke-dasharray: 4 6; }
.shp-done { fill: none; stroke: var(--brand); stroke-width: 2.5; stroke-linecap: round; }
.shp-end { fill: var(--surface); stroke: var(--border); stroke-width: 2; transition: fill .3s, stroke .3s; }
.shp-end--on, .shp-end.is-on { fill: var(--brand); stroke: var(--brand); }
.shp-end.is-ok { fill: var(--ok); stroke: var(--ok); }
.shp-ship { position: absolute; width: 28px; height: 28px; margin: -14px 0 0 -14px; border-radius: 50%; display: grid; place-items: center;
    background: var(--brand); color: var(--brand-contrast); box-shadow: 0 0 0 5px color-mix(in srgb, var(--brand) 16%, transparent), 0 4px 10px color-mix(in srgb, var(--brand) 35%, transparent); }
.shp-ship.is-ok { background: var(--ok); color: #fff; box-shadow: 0 0 0 5px color-mix(in srgb, var(--ok) 16%, transparent); }
.shp-meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--border-soft); border-radius: var(--radius); margin-bottom: 18px; }
.shp-meta > div { padding: 10px 14px; min-width: 0; }
.shp-meta > div + div { border-inline-start: 1px solid var(--border-soft); }
.shp-meta span { display: block; font-size: .7rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted); }
.shp-meta b { font-size: .92rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.shp-steps { list-style: none; margin: 0; padding: 0; }
.shp-steps li { position: relative; display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 7px 0;
    font-size: .9rem; color: var(--text-muted); transition: color .3s; }
.shp-steps li::before, .shp-steps li::after { content: ""; position: absolute; left: 10px; top: 25px; bottom: -11px; width: 2px; background: var(--border-soft); }
.shp-steps li::after { background: var(--brand); transform: scaleY(0); transform-origin: top; transition: transform .45s ease; }
.shp-steps li.done::after { transform: scaleY(1); }
.shp-steps li:last-child::before, .shp-steps li:last-child::after { display: none; }
.shp-dot { position: relative; z-index: 1; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
    border: 2px solid var(--border); background: var(--surface); color: var(--brand-contrast); transition: background .3s, border-color .3s; }
.shp-dot svg { opacity: 0; transform: scale(.4); transition: opacity .25s, transform .3s cubic-bezier(.3, 1.6, .5, 1); }
.shp-steps li.done { color: var(--text); }
.shp-steps li.done .shp-dot { background: var(--brand); border-color: var(--brand); }
.shp-steps li.done .shp-dot svg { opacity: 1; transform: none; }
.shp-steps li.now { color: var(--brand); font-weight: 600; }
.shp-steps li.now .shp-dot { border-color: var(--brand); }
.shp-steps li.now .shp-dot::after { content: ""; position: absolute; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); }
.shp-steps small { font-size: .8rem; font-weight: 400; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.shp-eta { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border-soft); }
.shp-eta-k { display: block; font-size: .8rem; color: var(--text-muted); }
.shp-eta b { font: 600 1.25rem/1.2 var(--font-display); letter-spacing: -.01em; }
.shp[data-motion] .shp-steps li { cursor: pointer; }

/* ---- the price of one unit, trader against importing (MarginDemo.razor, mx-*) */
.mx { position: relative; }
.mx-panel { background: var(--surface); border: 1px solid var(--border-soft); border-radius: 14px; box-shadow: var(--shadow-3); overflow: hidden; }
.mx-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 22px; border-bottom: 1px solid var(--border-soft); font-weight: 600; font-size: .95rem; }
.mx-group { padding: 14px 22px 20px; }
.mx-group--kc { background: color-mix(in srgb, var(--brand) 4%, var(--surface)); border-top: 1px solid var(--border-soft); }
.mx-label { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 4px; font-size: .7rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); }
.mx-group--kc .mx-label > span:first-child { color: var(--brand); }
.mx-label-ok { color: var(--ok); }
.mx-rows { list-style: none; margin: 0; padding: 0; }
.mx-rows li { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto 62px; gap: 12px; align-items: center; padding: 9px 0; }
.mx-rows li + li { border-top: 1px dashed var(--border-soft); }
.mx-av { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: .62rem; font-weight: 700; letter-spacing: .02em;
    color: var(--c); background: color-mix(in srgb, var(--c) 10%, var(--surface)); border: 1px solid color-mix(in srgb, var(--c) 28%, var(--surface)); }
.mx-who { min-width: 0; }
.mx-who b { display: block; font-size: .92rem; font-weight: 600; line-height: 1.25; }
.mx-who small { font-size: .78rem; color: var(--text-muted); }
/* the markup percentage leads; the euro amount is the footnote under it */
.mx-add { display: grid; justify-items: end; gap: 3px; font-size: .75rem; color: var(--text-muted); font-variant-numeric: tabular-nums; line-height: 1.2; white-space: nowrap; }
.mx-add em { font-style: normal; font-size: .8rem; font-weight: 700; padding: 2px 8px; border-radius: var(--radius-pill); }
.mx-add--up em { background: var(--danger-soft); color: var(--danger); }
.mx-add--kc em { background: var(--brand-soft); color: var(--brand); }
.mx-add--ok em { background: var(--ok-soft); color: var(--ok); }
.mx-rows--status li { grid-template-columns: 28px minmax(0, 1fr) auto; }
.mx-price { text-align: end; font-weight: 700; font-size: .98rem; font-variant-numeric: tabular-nums; }
.mx-bar { display: grid; grid-template-columns: minmax(0, 1fr) 72px; gap: 12px; align-items: center; margin: 10px 0 14px; }
.mx-stack { display: flex; height: 6px; border-radius: var(--radius-pill); background: var(--bg-sunken); overflow: hidden; }
.mx-seg { height: 100%; background: var(--c); transition: width .6s cubic-bezier(.3, .8, .3, 1); }
.mx-seg + .mx-seg { box-shadow: inset 2px 0 0 var(--surface); }
.mx-seg--keep { background: repeating-linear-gradient(45deg, color-mix(in srgb, var(--ok) 34%, transparent) 0 5px, color-mix(in srgb, var(--ok) 14%, transparent) 5px 10px); }
.mx-bar-val { text-align: end; font-weight: 700; font-size: 1rem; font-variant-numeric: tabular-nums; }
.mx-bar-val--bad { color: var(--danger); }
.mx-bar-val--good { color: var(--brand); }
.mx-total { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; border-radius: var(--radius); font-weight: 600; font-size: .92rem; }
.mx-total b { font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.mx-total small { display: block; margin-top: 2px; font-size: .75rem; font-weight: 500; }
.mx-total--bad { background: var(--danger-soft); color: var(--danger); }
.mx-total--good { background: var(--ok-soft); color: var(--ok); }
.mx-pct { text-align: end; }
.mx-pct b { display: block; font: 700 1.9rem/1 var(--font-display); letter-spacing: -.02em; }
/* In the flow under the panel, pulled up over its bottom padding only, so it never covers a figure. */
.mx-keep { position: relative; z-index: 1; width: min(340px, calc(100% - 12px)); margin: -14px 0 0 -28px; padding: 18px 20px;
    background: #15803d; color: #fff; border-radius: 14px; box-shadow: 0 20px 44px -14px rgba(21, 128, 61, .55); }
.mx-keep-top { display: flex; justify-content: space-between; gap: 12px; font-size: .7rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #c9f0d6; }
.mx-keep-big { margin: 8px 0 2px; }
.mx-keep-big b { display: block; font: 700 2.75rem/1 var(--font-display); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.mx-keep-big span { display: block; margin-top: 6px; font-size: .95rem; font-weight: 600; color: #e4f7ea; }
.mx-keep-big i { display: inline-block; margin-inline-start: 6px; padding: 2px 9px; border-radius: var(--radius-pill); background: rgba(255, 255, 255, .2);
    color: #fff; font-style: normal; font-size: .72rem; font-weight: 600; vertical-align: 1px; }
.mx-keep p { margin: 10px 0 0; font-size: .85rem; color: #e4f7ea; }
/* the Track & Trace card of ExportStatusDemo: the latest event as its headline */
.mx-track-msg { display: block; margin: 8px 0 0; font: 600 1.2rem/1.25 var(--font-display); color: #fff; }
@media (prefers-reduced-motion: no-preference) { .mx-track-msg.new { animation: ag-in .45s ease; } }
.mx-keep p b { color: #fff; font-variant-numeric: tabular-nums; }
@media (max-width: 900px) { .mx-keep { margin-inline-start: 12px; } }
/* hidden until the timeline reaches them, only once the script runs */
.mx.is-live [data-at]:not(.mx-seg) { opacity: 0; transform: translateY(8px); transition: opacity .45s ease, transform .45s ease; }
.mx.is-live [data-at].in:not(.mx-seg) { opacity: 1; transform: none; }

/* ---- door to door: zones, the strip of stations, the step cards, the consolidation picture (ff-*) */
.ff-z-you { --z: var(--steel); }
.ff-z-origin { --z: var(--brand); }
.ff-z-transit { --z: var(--sea); }
.ff-z-dest { --z: var(--ok); }

.ff-strip { margin: 0 0 32px; padding: 26px 20px 24px; background: var(--surface); border: 1px solid var(--border-soft); border-radius: 14px; overflow-x: auto; }
.ff-flow { min-width: 860px; --ff-done: var(--ok); --ff-now: var(--brand); }
.ff-zones { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); margin-bottom: 26px; }
.ff-zone { margin: 0 8px; padding-bottom: 7px; text-align: center; font-size: .66rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
    color: var(--z); border-bottom: 1px solid color-mix(in srgb, var(--z) 30%, transparent); transition: border-color .35s, box-shadow .35s; }
.ff-zone.on { border-bottom-color: var(--z); box-shadow: 0 1px 0 var(--z); }
.ff-stations { position: relative; display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); }
.ff-line, .ff-fill { position: absolute; top: 17px; left: 6.25%; height: 1px; }
.ff-line { right: 6.25%; background: var(--border); }
.ff-fill { width: 0; height: 1.5px; background: var(--ff-done); }
.ff-pkg { position: absolute; top: 17px; left: 6.25%; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%;
    background: var(--ff-now); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ff-now) 16%, transparent); opacity: 0; transition: opacity .2s; }
.ff-pkg.on { opacity: 1; }
.ff-station { position: relative; z-index: 1; display: grid; justify-items: center; align-content: start; padding: 0 6px; text-align: center; }
.ff-flow.is-live .ff-station { cursor: pointer; }
.ff-tile { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--surface);
    color: var(--text-faint); border: 1px solid var(--border); transition: background .35s, color .35s, border-color .35s, box-shadow .35s; }
.ff-num { margin-top: 12px; font: 500 .66rem/1 var(--font-mono); letter-spacing: .04em; color: var(--text-faint); transition: color .35s; }
.ff-t { margin-top: 6px; font-size: .84rem; font-weight: 600; line-height: 1.3; }
.ff-s { margin-top: 3px; max-width: 15ch; font-size: .75rem; line-height: 1.4; color: var(--text-muted); }
/* without the script: every station in blue outline, the picture of the route */
.ff-flow:not(.is-live) .ff-tile { color: var(--brand); border-color: color-mix(in srgb, var(--brand) 55%, transparent); }
.ff-flow:not(.is-live) .ff-num { color: var(--brand); }
/* with it: done = green outline, now = filled blue, next = grey */
.ff-station.done .ff-tile { color: var(--ff-done); border-color: color-mix(in srgb, var(--ff-done) 60%, transparent); background: color-mix(in srgb, var(--ff-done) 6%, var(--surface)); }
.ff-station.done .ff-num { color: var(--ff-done); }
.ff-station.now .ff-tile { color: var(--brand-contrast); background: var(--ff-now); border-color: var(--ff-now);
    box-shadow: 0 0 0 5px color-mix(in srgb, var(--ff-now) 14%, transparent), 0 6px 14px -6px color-mix(in srgb, var(--ff-now) 70%, transparent); }
.ff-station.now .ff-num, .ff-station.now .ff-t { color: var(--ff-now); }

.ff-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1040px) { .ff-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .ff-steps { grid-template-columns: 1fr; } }
.ff-step { display: flex; flex-direction: column; padding: 20px; background: var(--surface); border: 1px solid var(--border-soft);
    border-top: 2px solid var(--z); border-radius: 14px; transition: box-shadow .35s, border-color .35s; }
.ff-step.on { border-color: color-mix(in srgb, var(--brand) 45%, transparent); border-top-color: var(--brand); box-shadow: var(--shadow-3); }
.ff-step-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.ff-no { padding: 4px 8px; border-radius: var(--radius-pill); font: 500 .74rem/1 var(--font-mono); color: var(--z); background: color-mix(in srgb, var(--z) 10%, var(--surface)); }
.ff-zt { font-size: .74rem; font-weight: 600; color: var(--z); }
.ff-step h3 { margin: 0 0 2px; font-size: 1.05rem; }
.ff-step p { margin: 0 0 12px; color: var(--text-muted); font-size: .88rem; }
.ff-step .ff-short { margin-bottom: 10px; color: var(--text); font-size: .9rem; font-weight: 600; }
.ff-step .ff-who { margin: auto 0 0; padding-top: 12px; border-top: 1px solid var(--border-soft); color: var(--text); font-size: .84rem; }
.ff-who span { margin-inline-end: 6px; color: var(--text-faint); font-size: .7rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }

.ff-merge {
    display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 48px; align-items: center;
    margin-top: 28px; padding: 32px; background: var(--surface); border: 1px solid var(--border-soft); border-radius: 14px;
}
@media (max-width: 860px) { .ff-merge { grid-template-columns: 1fr; gap: 32px; padding: 22px; } }
.ff-merge p { color: var(--text-muted); }
.ff-merge .ff-fit { margin: 18px 0 0; color: var(--text); font-weight: 600; }
.ff-merge .checks { margin-top: 10px; }
.ff-fig { display: grid; gap: 24px; }
.ff-sup { position: relative; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.ff-sup li {
    position: relative; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 10px;
    border: 1px dashed var(--border); border-radius: var(--radius); background: var(--bg-sunken); color: var(--text-muted); font-size: .82rem; white-space: nowrap;
}
.ff-sup li::after { content: ""; position: absolute; top: 100%; left: 50%; width: 2px; height: 12px; margin-left: -1px; background: var(--border); }
.ff-sup::after { content: ""; position: absolute; top: calc(100% + 11px); inset-inline: 16.67%; height: 2px; background: var(--border); }
.ff-box {
    position: relative; display: flex; align-items: center; gap: 12px; padding: 12px 16px; color: var(--z);
    background: color-mix(in srgb, var(--z) 8%, var(--surface)); border: 1px solid color-mix(in srgb, var(--z) 30%, transparent); border-radius: var(--radius);
}
.ff-box::before { content: ""; position: absolute; bottom: 100%; left: 50%; width: 2px; height: 24px; margin-left: -1px; background: var(--border); }
.ff-box svg { flex: none; }
.ff-box span { display: grid; color: var(--text); font-size: .92rem; font-weight: 600; }
.ff-box small { color: var(--text-muted); font-size: .8rem; font-weight: 400; }

@media (prefers-reduced-motion: no-preference) {
    .shp-rest { animation: shp-lane 1.6s linear infinite; }
    .shp-steps li.now .shp-dot { animation: shp-ring 1.6s ease-out infinite; }
    .shp-ship::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid var(--brand); opacity: 0; animation: shp-wake 1.8s ease-out infinite; }
    .shp-ship.is-ok::after { display: none; }
}
@keyframes shp-lane { to { stroke-dashoffset: -20; } }
@keyframes shp-ring { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--brand) 45%, transparent); } 100% { box-shadow: 0 0 0 9px transparent; } }
@keyframes shp-wake { 0% { transform: scale(.8); opacity: .6; } 100% { transform: scale(1.7); opacity: 0; } }

/* ------------------------------------------------ /fagents, the free ERP pitch (ag-*, 2026-11-25) */

/* AgentHero.razor, AgentPitch.razor and FAgentAccount.razor. The pictures are played by wwwroot/motion.js
   (data-motion="agent-*"); each is complete without it. */
.ag-card { background: var(--surface); border: 1px solid var(--border-soft); border-radius: 14px; box-shadow: var(--shadow-3); }
.ag-lede { margin-top: 16px; font-size: 1.08rem; color: var(--text-muted); max-width: 58ch; }
.ag-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 64px; align-items: center; }
@media (max-width: 960px) { .ag-split { grid-template-columns: 1fr; gap: 40px; } }
.ag-split .checks { margin-top: 22px; }
.ag-note { margin-top: 16px; font-size: .82rem; color: var(--text-faint); }
.ag-side { font: 600 .66rem var(--font-mono); text-align: center; padding: 4px 0; border-radius: 6px; background: var(--bg-sunken); color: var(--steel); }
.ag-side--you { background: var(--brand-soft); color: var(--brand); }
.ag-stat { padding: 12px 14px; border-radius: var(--radius); background: var(--ok-soft); }
.ag-stat span { display: block; font-size: .72rem; font-weight: 600; color: var(--ok); }
.ag-stat b { font: 700 1.6rem/1.1 var(--font-display); color: var(--ok); font-variant-numeric: tabular-nums; }
.ag-stat s { margin-inline-start: 6px; font-size: .82rem; font-weight: 600; color: var(--danger); }
.ag-tag { display: inline-block; font: 600 .66rem var(--font-mono); text-align: center; padding: 5px 0; border-radius: 6px; background: var(--bg-sunken); color: var(--steel); }
.ag-tag--you { background: var(--brand-soft); color: var(--brand); }
.ag-tag--pct { background: var(--ok-soft); color: var(--ok); }
.ag-amt { font-weight: 700; text-align: end; font-variant-numeric: tabular-nums; }
.ag-amt small { display: block; font-size: .7rem; font-weight: 500; color: var(--text-faint); }
.ag-amt--neg { color: var(--text-muted); }

/* ---- hero: timed tabs (as on logistics-erp.com) */
.ag-hero { padding-top: clamp(36px, 4vw, 52px); }
.hero .ag-h1 { max-width: none; margin: 8px 0 22px; font: 400 1.05rem/1.5 var(--font); letter-spacing: 0; color: var(--night-muted); }
.hero .ag-h1 b { font-weight: 600; color: var(--night-text); }
.ag-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 28px; margin-bottom: 40px; border-bottom: 1px solid var(--night-line); }
.ag-tab { display: flex; flex-direction: column; justify-content: flex-end; gap: 12px; min-width: 0; margin: 0; padding: 0; border: 0; background: none; font: inherit; color: inherit; text-align: start; cursor: pointer; }
.ag-tab-row { display: flex; align-items: baseline; gap: 9px; overflow: hidden; white-space: nowrap; }
.ag-tab-num { font: 500 .75rem var(--font-mono); color: var(--text-faint); }
.ag-tab-label { overflow: hidden; text-overflow: ellipsis; font-size: .97rem; font-weight: 500; color: var(--night-muted); }
.ag-tab[aria-selected="true"] .ag-tab-num { color: var(--brand); }
.ag-tab[aria-selected="true"] .ag-tab-label { color: var(--night-text); font-weight: 600; }
.ag-tab:hover .ag-tab-label { color: var(--night-text); }
.ag-tab:focus-visible { outline: 2px solid var(--brand); outline-offset: 4px; border-radius: 4px; }
.ag-track { display: block; height: 2px; margin-bottom: -1px; overflow: hidden; }
.ag-bar { display: block; width: 0; height: 2px; background: var(--brand); }
.ag-hero:not(.is-live) .ag-tab[aria-selected="true"] .ag-bar { width: 100%; }
@media (max-width: 760px) { .ag-tabs { grid-template-columns: repeat(3, minmax(150px, 1fr)); overflow-x: auto; scrollbar-width: none; } .ag-tab-label { font-size: .88rem; } }
.ag-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 56px; align-items: center; }
@media (max-width: 960px) { .ag-grid { grid-template-columns: 1fr; gap: 40px; } }
/* every tab's copy and picture share one cell, so the hero keeps the height of the tallest */
.ag-stack { display: grid; }
.ag-stack > * { grid-area: 1 / 1; transition: opacity .35s ease, transform .35s ease; }
.ag-stack > [hidden] { display: block !important; visibility: hidden; opacity: 0; transform: translateY(6px); pointer-events: none; }
.ag-copy h2 { font-size: clamp(32px, 3.9vw, 48px); line-height: 1.06; color: var(--night-text); max-width: 18ch; }
.ag-copy h2 em { font-style: normal; color: var(--brand); }
.ag-copy .ag-lede { color: var(--night-muted); }
.ag-copy .checks { margin-top: 22px; }
.ag-cta { margin-top: 30px; }
.ag-cta svg { margin-inline-start: 4px; }
.ag-free { display: flex; align-items: center; gap: 10px; margin-top: 16px; font-size: .82rem; color: var(--night-muted); }
.ag-free b { padding: 3px 8px; border-radius: 6px; font: 700 .82rem var(--font-mono); color: var(--ok); background: var(--ok-soft); }

/* tab 01: a Quick Quote priced from KCI's rate templates */
.ag-qq { padding: 20px; }
.ag-qq-top { display: flex; justify-content: space-between; align-items: center; font-size: .82rem; color: var(--text-muted); }
.ag-qq-top b { font: 500 .82rem var(--font-mono); color: var(--text); }
.ag-qq-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 14px 0; }
.ag-qq-f { min-height: 52px; padding: 8px 12px; border: 1px solid var(--border-soft); border-radius: 8px; transition: border-color .2s, box-shadow .2s; }
.ag-qq-f span { display: block; font-size: .66rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text-faint); }
.ag-qq-f b { font-size: .88rem; font-weight: 600; }
.ag-qq-f.typing { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 12%, transparent); }
.ag-qq-pricing { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; font-size: .78rem; color: var(--text-muted); }
.ag-qq-track { flex: 1; height: 4px; border-radius: 999px; background: var(--bg-sunken); overflow: hidden; }
.ag-qq-bar { display: block; height: 100%; width: 0; background: var(--brand); }
.ag-qq-offers { list-style: none; margin: 0; padding: 0; }
.ag-qq-offers li { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px dashed var(--border-soft); font-size: .85rem; }
.ag-mode { padding: 4px 0; border-radius: 6px; text-align: center; font: 600 .66rem var(--font-mono); background: var(--brand-soft); color: var(--brand); }
.ag-qq-offers small { display: block; font-size: .72rem; color: var(--text-faint); }
.ag-tt { font-size: .78rem; color: var(--text-muted); white-space: nowrap; }
.ag-qq-foot { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }

/* tab 02: KCI's price becomes the agent's offer to its own client */
.ag-of-buy { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 3px 12px; align-items: center; padding: 14px 16px;
    border: 1px solid var(--border-soft); border-radius: var(--radius); background: var(--surface); }
.ag-of-buy > span:first-child { font-size: .66rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--steel); }
.ag-of-buy b { font-size: .92rem; }
.ag-of-buy small { font-size: .78rem; color: var(--text-muted); }
.ag-of-buy .ag-amt { grid-row: 1 / span 3; grid-column: 2; font: 700 1.4rem var(--font-display); }
.ag-of-adds { position: relative; display: grid; gap: 8px; padding: 14px 0; padding-inline-start: 34px; }
.ag-of-adds::before { content: ""; position: absolute; inset-inline-start: 14px; top: 0; bottom: 0; border-inline-start: 1.5px dashed var(--border); }
.ag-of-add { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 7px 12px; border: 1px solid var(--border-soft); border-radius: 8px; background: var(--surface); font-size: .85rem; }
.ag-of-add b { font-variant-numeric: tabular-nums; }
.ag-of-add .ag-tag { padding: 3px 8px; }
.ag-of-add--m { color: var(--ok); background: var(--ok-soft); border-color: color-mix(in srgb, var(--ok) 35%, transparent); }
.ag-of-card { padding: 18px 18px 16px; }
.ag-of-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--border-soft); }
.ag-of-brand { display: flex; align-items: center; gap: 10px; }
.ag-of-brand i { width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center; font: 700 .75rem var(--font-display); font-style: normal; color: #fff; background: #101828; }
.ag-of-brand b { display: block; font-size: .88rem; }
.ag-of-brand small { font-size: .75rem; color: var(--text-muted); }
.ag-of-line { padding: 12px 0 4px; font-size: .85rem; }
.ag-of-line small { display: block; font-size: .75rem; color: var(--text-muted); }
.ag-of-total { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; padding: 12px 14px; border-radius: var(--radius); font-weight: 600; color: var(--brand); background: var(--brand-soft); }
.ag-of-total b { font: 700 1.6rem/1 var(--font-display); font-variant-numeric: tabular-nums; }
.ag-of-sent { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: .78rem; font-weight: 600; color: var(--ok); }

/* tab 03: the shared order */
.ag-so { padding: 22px; overflow: hidden; }
.ag-so-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: .82rem; color: var(--text-muted); }
.ag-so-top b { font: 500 .82rem var(--font-mono); color: var(--text); }
.ag-sync { display: inline-flex; align-items: center; gap: 6px; font-size: .75rem; font-weight: 600; color: var(--ok); }
.ag-sync i { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
.ag-so-offices { display: grid; grid-template-columns: 1fr 1.1fr 1fr; align-items: center; gap: 8px; margin: 18px 0 16px; }
.ag-office { padding: 12px 14px; border: 1px solid var(--border-soft); border-radius: var(--radius); background: var(--bg-sunken); }
.ag-office span { display: block; font-size: .66rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); }
.ag-office b { display: block; margin-top: 2px; font: 600 1.15rem/1.2 var(--font-display); }
.ag-office small { font: 500 .68rem var(--font-mono); color: var(--text-faint); }
.ag-office:last-child { text-align: end; }
.ag-office--you { background: var(--brand-soft); border-color: color-mix(in srgb, var(--brand) 35%, transparent); }
.ag-office--you span { color: var(--brand); }
.ag-link { position: relative; height: 40px; }
.ag-link::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 1.5px dashed var(--border); }
.ag-link em { position: absolute; left: 50%; top: calc(50% + 9px); transform: translateX(-50%); font: 500 .66rem var(--font-mono); font-style: normal; color: var(--text-faint); white-space: nowrap; }
.ag-pkt { position: absolute; top: 50%; left: 0; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: var(--brand); opacity: 0; }
.ag-pkt--b { background: var(--ok); }
.ag-ms { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; margin-bottom: 14px; }
.ag-ms span { padding: 6px 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: center; font-size: .7rem; font-weight: 600;
    border: 1px solid var(--border-soft); border-radius: 999px; color: var(--text-faint); background: var(--surface); transition: all .3s; }
.ag-ms span.done { color: var(--ok); background: var(--ok-soft); border-color: color-mix(in srgb, var(--ok) 40%, transparent); }
.ag-ms span.now { color: var(--brand-contrast); background: var(--brand); border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 14%, transparent); }
.ag-feed { list-style: none; margin: 0; padding: 0; height: 196px; overflow: hidden; border-top: 1px solid var(--border-soft); }
.ag-feed li { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px dashed var(--border-soft); font-size: .84rem; }
.ag-feed li[hidden] { display: none; }
.ag-feed small { display: block; font-size: .72rem; color: var(--text-faint); }
.ag-feed .chip { font-size: .68rem; padding: 2px 8px; }
.ag-so-foot { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }

/* ---- the same order, by e-mail and on one shared order */
.ag-cmp { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 900px) { .ag-cmp { grid-template-columns: 1fr; } }
.ag-cmp-col { display: flex; flex-direction: column; overflow: hidden; }
.ag-cmp-h { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--border-soft); }
.ag-cmp-h h3 { margin: 0; font-size: 1.05rem; }
.ag-cmp-h p { margin: 0; font-size: .78rem; color: var(--text-muted); }
.ag-counts { display: flex; gap: 18px; text-align: end; }
.ag-counts b { display: block; font: 700 1.5rem/1 var(--font-display); font-variant-numeric: tabular-nums; }
.ag-counts span { font-size: .66rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--text-muted); }
.ag-cmp-col--mail .ag-counts b { color: var(--danger); }
.ag-cmp-col--erp .ag-counts b { color: var(--ok); }
.ag-mails { flex: 1 1 0; min-height: 300px; margin: 0; padding: 6px 20px; overflow: hidden; list-style: none; }
.ag-mails li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 10px; padding: 10px 0; border-bottom: 1px dashed var(--border-soft); font-size: .84rem; }
.ag-mails li[hidden] { display: none; }
.ag-mails .ag-side { align-self: start; }
.ag-mails small { display: block; font-size: .72rem; color: var(--text-faint); }
.ag-att { display: inline-block; margin-top: 4px; padding: 1px 6px; border-radius: 4px; font: 500 .68rem var(--font-mono); color: var(--steel); background: var(--bg-sunken); }
.ag-erp { list-style: none; margin: 0; padding: 6px 20px; }
.ag-erp li { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px dashed var(--border-soft); }
.ag-erp li:last-child { border-bottom: 0; }
.ag-n { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font: 500 .68rem var(--font-mono); color: var(--text-faint); border: 1px solid var(--border); transition: all .3s; }
.ag-erp b { display: block; font-size: .9rem; }
.ag-erp small { font-size: .78rem; color: var(--text-muted); }
.ag-erp .chip { opacity: 0; transition: opacity .3s; }
.ag-erp li.done .ag-n { color: #fff; background: var(--ok); border-color: var(--ok); }
.ag-erp li.done .chip { opacity: 1; }
.ag-erp li.now .ag-n { color: var(--brand); border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 12%, transparent); }

/* ---- price chain */
.ag-pc { overflow: hidden; }
.ag-pc-h { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 22px; border-bottom: 1px solid var(--border-soft); font-weight: 600; font-size: .92rem; }
.ag-pc-h small { display: block; font-size: .75rem; font-weight: 500; color: var(--text-muted); }
.ag-pc-rows { list-style: none; margin: 0; padding: 8px 22px; }
.ag-pc-rows li { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto 86px; gap: 12px; align-items: center; padding: 11px 0; border-bottom: 1px dashed var(--border-soft); }
.ag-pc-rows li:last-child { border-bottom: 0; }
.ag-pc-rows b { display: block; font-size: .9rem; }
.ag-pc-rows small { font-size: .78rem; color: var(--text-muted); }
.ag-who { font-size: .66rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--text-faint); white-space: nowrap; }
.ag-who--you { color: var(--brand); }
.ag-pc-bar { padding: 4px 22px 16px; }
.ag-stack-bar { display: flex; height: 8px; border-radius: 999px; background: var(--bg-sunken); overflow: hidden; }
.ag-seg { height: 100%; background: var(--c); transition: width .6s cubic-bezier(.3, .8, .3, 1); }
.ag-seg + .ag-seg { box-shadow: inset 2px 0 0 var(--surface); }
.ag-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 10px; font-size: .75rem; color: var(--text-muted); }
.ag-legend i { display: inline-block; width: 9px; height: 9px; margin-inline-end: 6px; border-radius: 2px; background: var(--c); vertical-align: -1px; }
.ag-pc-total { display: flex; justify-content: space-between; align-items: center; margin: 0 22px 22px; padding: 14px 16px; border-radius: var(--radius); font-weight: 600; color: var(--brand); background: var(--brand-soft); }
.ag-pc-total small { display: block; font-size: .75rem; font-weight: 500; color: var(--text-muted); }
.ag-pc-total b { font: 700 1.6rem/1 var(--font-display); font-variant-numeric: tabular-nums; }
.ag-pc-mirror { margin-top: 14px; padding: 12px 16px; border: 1px dashed var(--border); border-radius: var(--radius); font-size: .85rem; color: var(--text-muted); }
.ag-pc-mirror b { color: var(--text); }

/* ---- time zones */
.ag-tz { padding: 24px; }
.ag-tz-row { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 16px; align-items: center; padding: 10px 0; }
.ag-tz-axis { padding: 0 0 6px; }
.ag-tz-ticks { position: relative; height: 18px; font: 500 .68rem var(--font-mono); color: var(--text-faint); }
.ag-tz-ticks span { position: absolute; transform: translateX(-50%); }
.ag-tz-body { position: relative; }
.ag-tz-name b { display: block; font-size: .9rem; }
.ag-tz-name small { font: 500 .68rem var(--font-mono); color: var(--text-faint); }
.ag-tz-lane { position: relative; display: block; height: 44px; border-radius: 8px; background-color: var(--bg-sunken);
    background-image: repeating-linear-gradient(90deg, transparent 0 calc(100% / 26 - 1px), var(--border-soft) calc(100% / 26 - 1px) calc(100% / 26)); }
.ag-tz-hours { position: absolute; top: 0; bottom: 0; border-radius: 8px; background: color-mix(in srgb, var(--c) 12%, var(--surface)); border: 1px solid color-mix(in srgb, var(--c) 30%, transparent); }
.ag-tz-hours span { position: absolute; inset-inline-end: 10px; top: 50%; transform: translateY(-50%); font-size: .68rem; font-weight: 600; color: var(--c); white-space: nowrap; }
.ag-tz-ev { position: absolute; top: 50%; z-index: 2; width: 26px; height: 26px; margin: -13px 0 0 -13px; border-radius: 50%; display: grid; place-items: center;
    font: 700 .75rem/1 var(--font-display); color: #fff; background: var(--c); box-shadow: 0 0 0 4px var(--surface); transition: transform .35s cubic-bezier(.3, 1.6, .5, 1), opacity .3s; }
.ag-tz-ev:not(.on) { transform: scale(.4); opacity: 0; }
.ag-tz-play { position: absolute; top: -8px; bottom: -8px; z-index: 3; width: 2px; background: var(--brand); }
.ag-tz-play::before { content: attr(data-t); position: absolute; top: -20px; left: 50%; transform: translateX(-50%); padding: 2px 6px; border-radius: 4px;
    font: 600 .66rem var(--font-mono); color: var(--brand-contrast); background: var(--brand); white-space: nowrap; }
.ag-tz-caps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 22px; }
@media (max-width: 860px) { .ag-tz-caps { grid-template-columns: 1fr 1fr; } .ag-tz-row { grid-template-columns: 110px minmax(0, 1fr); } }
.ag-tz-cap { padding: 12px 14px; border: 1px solid var(--border-soft); border-radius: var(--radius); font-size: .8rem; color: var(--text-muted); transition: opacity .3s, border-color .3s; }
.ag-tz-cap b { display: block; margin: 4px 0 2px; font-size: .84rem; color: var(--text); }
.ag-when { font: 500 .68rem var(--font-mono); color: var(--c); }
.ag-tz.is-live .ag-tz-cap:not(.on) { opacity: .35; }
.ag-tz-cap.on { border-color: color-mix(in srgb, var(--c) 45%, transparent); }

/* ---- the free account and the web app */
.ag-price { display: flex; align-items: baseline; gap: 10px; margin: 22px 0 6px; }
.ag-price b { font: 700 3.2rem/1 var(--font-display); letter-spacing: -.03em; color: var(--ok); }
.ag-price span { font-weight: 600; color: var(--ok); }
.ag-incl { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; margin: 22px 0 0; padding: 0; list-style: none; font-size: .9rem; }
.ag-incl li { display: flex; gap: 10px; align-items: flex-start; }
.ag-incl svg { flex: none; margin-top: 2px; color: var(--brand); }
@media (max-width: 560px) { .ag-incl { grid-template-columns: 1fr; } }
.ag-fine { margin-top: 18px; max-width: 60ch; font-size: .78rem; color: var(--text-faint); }
.ag-app { overflow: hidden; }
.ag-app-bar { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--border-soft); background: var(--bg-sunken); }
.ag-app-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--border); }
.ag-app-url { flex: 1; margin-inline-start: 8px; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--border-soft); background: var(--surface); font: 500 .74rem var(--font-mono); color: var(--text-muted); }
.ag-app-body { display: grid; grid-template-columns: 150px minmax(0, 1fr); min-height: 330px; }
.ag-app-side { padding: 14px 10px; font-size: .74rem; color: #c3cad6; background: #101828; }
.ag-app-acct { display: flex; align-items: center; gap: 8px; padding: 4px 6px 14px; font-weight: 600; color: #fff; }
.ag-app-acct i { width: 24px; height: 24px; border-radius: 6px; display: grid; place-items: center; font: 600 .62rem var(--font-mono); font-style: normal; background: #2b3a55; }
.ag-app-side small { display: block; padding: 8px 6px 4px; font-size: .58rem; letter-spacing: .12em; color: #7c879a; }
.ag-app-side span { display: block; padding: 6px 8px; border-radius: 6px; }
.ag-app-side span.on { color: #fff; background: #0b5cd5; }
.ag-app-main { padding: 16px; }
.ag-app-main h4 { margin: 0 0 12px; font: 600 1rem var(--font-display); }
.ag-app-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 12px; }
.ag-app-tiles div { padding: 8px 10px; border: 1px solid var(--border-soft); border-radius: 8px; }
.ag-app-tiles span { display: block; font-size: .58rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); }
.ag-app-tiles b { font: 600 1.1rem var(--font-display); color: var(--brand); }
.ag-app-rows { list-style: none; margin: 0; padding: 0; font-size: .78rem; }
.ag-app-rows li { display: grid; grid-template-columns: 62px minmax(0, 1fr) 70px 86px; gap: 8px; align-items: center; padding: 9px 8px; border-bottom: 1px solid var(--border-soft); border-radius: 6px; transition: background .4s; }
.ag-app-rows li.flash { background: var(--brand-soft); }
.ag-no { font: 500 .72rem var(--font-mono); color: var(--brand); }
.ag-kci { display: inline-block; margin-inline-start: 6px; padding: 1px 7px; border-radius: 999px; font-size: .62rem; font-weight: 600; color: #fff; background: #0b5cd5; }
.ag-st { padding: 3px 0; border-radius: 999px; text-align: center; font-size: .68rem; font-weight: 600; color: var(--text-muted); background: var(--bg-sunken); transition: all .3s; }
.ag-st--ok { color: var(--ok); background: var(--ok-soft); }
.ag-st--go { color: var(--brand); background: var(--brand-soft); }
.ag-upd { grid-column: 2 / -1; height: 0; overflow: hidden; font-size: .68rem; color: var(--brand); transition: height .3s; }
.ag-app-rows li.flash .ag-upd { height: 15px; }

/* ---- getting started */
.ag-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
@media (max-width: 960px) { .ag-steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .ag-steps { grid-template-columns: 1fr; } }
.ag-steps li { padding: 22px; border: 1px solid var(--border-soft); border-radius: 14px; background: var(--surface); }
.ag-step-n { display: inline-block; padding: 4px 8px; border-radius: 999px; font: 500 .75rem var(--font-mono); color: var(--brand); background: var(--brand-soft); }
.ag-steps h3 { margin: 14px 0 6px; font-size: 1.05rem; }
.ag-steps p { margin: 0; font-size: .88rem; color: var(--text-muted); }

/* ---- the account request form (FAgentAccount.razor) */
.ag-acc { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 40px; align-items: start; }
@media (max-width: 960px) { .ag-acc { grid-template-columns: 1fr; } }
.ag-acc-h { margin: 8px 0 14px; padding-top: 14px; font-size: 1rem; border-top: 1px solid var(--border-soft); }
.ag-acc-h:first-of-type { padding-top: 0; border-top: 0; }
.ag-acc-services { margin: 0 0 18px; padding: 0; border: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.ag-acc-services legend { margin-bottom: 8px; font-size: .88rem; font-weight: 600; }
.ag-acc-services label { display: inline-flex; align-items: center; gap: 8px; font-size: .92rem; }
.ag-acc-consent { display: flex; gap: 10px; align-items: flex-start; margin: 8px 0 6px; font-size: .88rem; color: var(--text-muted); }
.ag-acc-consent input { margin-top: 3px; }
.ag-acc-submit { margin-top: 18px; }
.ag-acc-side { position: sticky; top: calc(var(--header-height) + 24px); padding: 26px; border: 1px solid var(--border-soft); border-radius: 14px; background: var(--bg-sunken); }
.ag-acc-side h3 { margin-top: 0; font-size: 1.05rem; }
.ag-acc-note { margin: 18px 0 0; font-size: .85rem; color: var(--text-muted); }
.ag-acc-done { padding: 12px 0; }
.ag-acc-done-icon { color: var(--ok); }
.ag-acc-done h2 { margin: 10px 0 8px; font-size: 1.5rem; }
.ag-acc-done p { color: var(--text-muted); margin-bottom: 20px; }

/* hidden until the timeline reaches them, only while the script plays */
:is(.ag-hero, .ag-pc).is-live [data-at] { transition: opacity .4s ease, transform .4s ease; }
:is(.ag-hero, .ag-pc).is-live [data-at]:not(.ag-seg):not(.in) { opacity: 0; transform: translateY(6px); }

@media (prefers-reduced-motion: no-preference) {
    .ag-sync i { animation: ag-pulse 1.6s ease-in-out infinite; }
    .ag-pkt { animation: ag-pkt 2.4s linear infinite; }
    .ag-pkt--b { animation: ag-pkt-back 2.4s linear 1.2s infinite; }
    .ag-feed li.new, .ag-mails li.new { animation: ag-in .45s ease; }
}
@keyframes ag-pulse { 50% { opacity: .3; } }
@keyframes ag-pkt { 0% { left: 0; opacity: 0; } 10%, 90% { opacity: 1; } 100% { left: 100%; opacity: 0; } }
@keyframes ag-pkt-back { 0% { left: 100%; opacity: 0; } 10%, 90% { opacity: 1; } 100% { left: 0; opacity: 0; } }
@keyframes ag-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* ---------------------------------------------------------------- right to left */

/* Arabic pages carry dir="rtl" (App.razor) and the layout above mirrors through its logical properties. A few
   pictures stay left to right, because their direction is meaning, not reading order: the maps (west is left),
   the route labels with their arrow (ASIA → EU), and the quick-quote animation, whose stepper and slides are
   timed as a left-to-right timeline. The Arabic text inside them still reads right to left. */
[dir="rtl"] .nm-chart,
[dir="rtl"] .fa-map,
[dir="rtl"] .aud-dir,
[dir="rtl"] .qd-screen,
[dir="rtl"] .shp-route,
[dir="rtl"] .ff-flow,
[dir="rtl"] .ag-tz,
[dir="rtl"] .ag-so-offices,
[dir="rtl"] .ag-link { direction: ltr; }

/* The home hero's card stays on the right in Arabic too: it hangs over the empty top-right of the map (northern
   Asia), and mirrored it would cover the European hubs. Only the row keeps its order; the text reads right to left. */
[dir="rtl"] .nm-head { direction: ltr; }
[dir="rtl"] .nm-head > * { direction: rtl; }

/* "Go on" arrows after a link's words (Home.razor .go) point the way Arabic reads. Route arrows between place
   names (Asia → EU) are left alone: Latin names keep their own direction inside Arabic text. */
[dir="rtl"] .go { display: inline-block; transform: scaleX(-1); }

/* A figure that starts with a sign (+49%, + €0.90, -322.07) would have the sign moved to its other end by the
   bidi algorithm in an Arabic paragraph. These elements hold one figure each: they take the direction of their own
   content, so the figure reads as written. */
[dir="rtl"] :is(.ag-amt, .ag-tag, .ag-of-add b, .ag-stat b, .mx-add em, .mx-pct b, .mx-bar-val, .mx-keep-big b, .mx-price, .inv-keep b, .inv-pick b, .bar-label strong, .mc-add, .mc-add em, .mc-price, .mc-float-big, .calc-big,
    .calc-result dd, .mrow-amt, .qd-price, .rf-table .num) { unicode-bidi: plaintext; }
