/* Delcon Compliances
   Palette from Nepal's flag: deep blue for structure, crimson for action.
   Type: IBM Plex Sans for text, IBM Plex Sans Condensed for headings. */

:root {
    --ink: #10284f;
    --ink-2: #1b3a6b;
    --crimson: #c41e3a;
    --crimson-dark: #a3172f;
    --paper: #ffffff;
    --mist: #eef2f7;
    --line: #d5dde8;
    --text: #22304a;
    --muted: #55627a;
    --ok: #1f7a4d;

    /* Colours the dark theme swaps. --ink is the heading colour; --band is navy used as a background. */
    --band: #10284f;
    --badge: #10284f;
    --surface: #ffffff;
    --header-bg: rgba(255, 255, 255, .97);
    --mist-hover: #e2e8f1;
    --input-border: #b4c0d1;
    --danger-bg: #fff8f9;
    --danger-text: #a3172f;
    --crimson-text: #c41e3a;
    --footer-bg: #0b1d3a;

    --font: "IBM Plex Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
    --font-head: "IBM Plex Sans Condensed", "Arial Narrow", "IBM Plex Sans", system-ui, sans-serif;

    --wrap: 72rem;
    --gutter: clamp(1.25rem, 4vw, 2.5rem);
    --space: clamp(3.5rem, 7vw, 6rem);
    --radius: 6px;
}

/* Dark theme, chosen with the header toggle or the visitor's device setting (set on <html> before the page draws). */
[data-theme="dark"] {
    color-scheme: dark;
    --ink: #e8eef8;
    --ink-2: #a9c4f5;
    --paper: #0d1726;
    --mist: #142238;
    --line: #263752;
    --text: #d3dbe8;
    --muted: #a0aec5;
    --band: #10284f;
    --badge: #2b4c85;
    --surface: #18273f;
    --header-bg: rgba(13, 23, 38, .96);
    --mist-hover: #1d2e4a;
    --input-border: #3a4d6b;
    --danger-bg: #2a1520;
    --danger-text: #ff8b9c;
    --crimson-text: #ff7389;
    --footer-bg: #081120;
}

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

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5.5rem; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
    margin: 0;
    font-family: var(--font);
    font-size: 1.0625rem;
    line-height: 1.6;
    color: var(--text);
    background: var(--paper);
}

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

/* Elements switched off with the hidden attribute stay hidden, whatever display their own styles give them. */
[hidden] { display: none !important; }

h1, h2, h3 { color: var(--ink); margin: 0 0 .6em; }
h1, h2 { font-family: var(--font-head); font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(2.2rem, 4.6vw, 3.5rem); line-height: 1.06; }
h2 { font-size: clamp(1.65rem, 2.8vw, 2.25rem); line-height: 1.12; }
h3 { font-size: 1.15rem; line-height: 1.3; font-weight: 600; }
p { margin: 0 0 1em; }

a { color: var(--ink-2); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--crimson-text); }
:focus-visible { outline: 3px solid var(--crimson); outline-offset: 2px; border-radius: 2px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 46rem; }

.skip-link {
    position: absolute; left: 1rem; top: -4rem; z-index: 100;
    background: var(--band); color: #fff; padding: .6rem 1rem; border-radius: var(--radius);
}
.skip-link:focus { top: 1rem; color: #fff; }

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

.lede { font-size: clamp(1.1rem, 1.6vw, 1.25rem); line-height: 1.55; color: var(--muted); max-width: 40em; }

/* Buttons and links */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    font: 600 1rem/1.2 var(--font);
    padding: .75rem 1.2rem; border-radius: var(--radius);
    border: 2px solid transparent; text-decoration: none; cursor: pointer;
    transition: background-color .15s, color .15s, border-color .15s;
}
.btn-large { padding: .95rem 1.5rem; font-size: 1.05rem; }
.btn-primary { background: var(--crimson); color: #fff; }
.btn-primary:hover { background: var(--crimson-dark); color: #fff; }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: var(--paper); }
.btn-light { background: #fff; color: var(--band); }
.btn-light:hover { background: #e2e8f1; color: var(--band); }
.btn-danger { background: transparent; border-color: var(--crimson); color: var(--crimson); }
.btn-danger:hover { background: var(--crimson); color: #fff; }

.text-link { font-weight: 600; color: var(--ink); }
.link-quiet { color: var(--ink); text-decoration: none; font-weight: 500; font-size: .97rem; }
.link-quiet:hover { text-decoration: underline; }
.link-on-dark { color: #dbe4f2; }
.link-on-dark:hover { color: #fff; }
.link-button { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; }

/* Top bar (wide screens only) */
.topbar { display: none; background: var(--band); color: #dbe4f2; font-size: .84rem; }
.topbar-row { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 2.3rem; }
.topbar-note { display: flex; align-items: center; gap: .45rem; margin: 0; opacity: .9; }
.topbar-links { display: flex; align-items: center; gap: 1.1rem; }
.topbar-links a { display: inline-flex; align-items: center; gap: .4rem; color: #dbe4f2; text-decoration: none; }
.topbar-links a:hover { color: #fff; }
.topbar .social-icon, [data-theme="dark"] .topbar .social-icon { color: currentColor; }
.topbar-portal { padding-left: 1.1rem; border-left: 1px solid rgba(255, 255, 255, .2); font-weight: 600; }

/* Header */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: var(--header-bg);
    border-bottom: 1px solid var(--line);
    transition: box-shadow .25s;
}
@supports (backdrop-filter: blur(8px)) { .site-header { backdrop-filter: saturate(1.4) blur(8px); } }
.site-header.is-scrolled { box-shadow: 0 6px 20px rgba(16, 40, 79, .1); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.75rem; }
.brand { display: block; line-height: 0; flex-shrink: 0; }
.brand img { width: auto; height: 48px; }
@media (max-width: 30rem) { .brand img { height: 38px; } }
.logo-for-dark, [data-theme="dark"] .logo-for-light { display: none; }
[data-theme="dark"] .logo-for-dark { display: block; }

.theme-toggle {
    display: grid; place-items: center; flex: none; margin-left: auto;
    width: 2.6rem; height: 2.6rem; padding: 0;
    border: 1px solid var(--line); border-radius: 50%; background: none; color: var(--ink); cursor: pointer;
    transition: border-color .2s, background-color .2s;
}
.theme-toggle:hover { border-color: var(--ink); background: var(--mist); }
.theme-toggle .icon-sun, [data-theme="dark"] .theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }

.nav-toggle {
    display: inline-flex; align-items: center; gap: .55rem;
    background: none; border: 1px solid var(--line); border-radius: var(--radius);
    padding: .5rem .8rem; font: 600 .95rem var(--font); color: var(--ink); cursor: pointer;
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
    display: block; width: 18px; height: 2px; background: var(--ink); position: relative; transition: transform .2s, background-color .2s;
}
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
/* The bars turn into a cross while the menu is open. */
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

.site-nav { display: none; }
.site-nav.is-open {
    display: block; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: .5rem var(--gutter) 1.5rem; box-shadow: 0 18px 30px rgba(16, 40, 79, .12);
    max-height: calc(100vh - 4.75rem); overflow-y: auto;
}
.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav li a {
    display: flex; align-items: center; justify-content: space-between; padding: .85rem .25rem; border-bottom: 1px solid var(--mist);
    color: var(--ink); text-decoration: none; font-weight: 600;
}
.site-nav li a::after { content: "›"; color: var(--muted); font-size: 1.2rem; line-height: 1; }
.site-nav a[aria-current="page"] { color: var(--crimson-text); }
.nav-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: 1.25rem; }
.nav-actions .btn { flex: 1 1 100%; text-align: center; }
.nav-group-toggle {
    display: flex; width: 100%; align-items: center; justify-content: space-between; gap: .35rem;
    padding: .85rem .25rem; border: 0; border-bottom: 1px solid var(--mist); background: none;
    font: 600 1rem var(--font); line-height: inherit; color: var(--ink); cursor: pointer;
}
.nav-group-toggle svg { flex: none; transition: transform .2s; }
.nav-group.is-open > .nav-group-toggle svg { transform: rotate(180deg); }
.nav-group.is-current > .nav-group-toggle { color: var(--crimson-text); }
.site-nav .nav-sub { display: none; padding-left: .9rem; }
.site-nav .nav-group.is-open .nav-sub { display: block; }
.nav-sub-title { display: block; }
.nav-sub-hint { display: none; }

@media (min-width: 72rem) {
    .topbar { display: block; }
    .nav-portal { display: none; }
    .nav-toggle { display: none; }
    .site-nav { order: 1; margin-left: auto; }
    .theme-toggle { order: 2; margin-left: 0; }
    .site-nav, .site-nav.is-open {
        display: flex; align-items: center; gap: 1.25rem;
        position: static; padding: 0; background: none; border: 0; box-shadow: none; max-height: none; overflow: visible;
    }
    .site-nav ul { display: flex; gap: .2rem; }
    .site-nav a, .nav-actions .btn { white-space: nowrap; }
    .site-nav li a {
        position: relative; display: block; padding: .5rem .75rem; border: 0; border-radius: 999px;
        font-size: .95rem; font-weight: 600; color: var(--ink); transition: background-color .2s, color .2s;
    }
    .site-nav li a::after {
        content: ""; position: absolute; left: 50%; bottom: -.45rem; width: 1.4rem; height: 3px; margin-left: -.7rem;
        border-radius: 3px; background: var(--crimson); transform: scaleX(0); transition: transform .2s;
    }
    .site-nav li a:hover { background: var(--mist); color: var(--ink); }
    .site-nav li a[aria-current="page"] { color: var(--ink); }
    .site-nav li a[aria-current="page"]::after { transform: scaleX(1); }
    .nav-actions { margin: 0; flex-wrap: nowrap; gap: 1.1rem; }
    .nav-actions .btn { flex: none; padding: .6rem 1.15rem; font-size: .93rem; }
    .theme-toggle { width: 2.3rem; height: 2.3rem; border-color: transparent; }
    .theme-toggle:hover { border-color: var(--line); }

    /* "Type approval" opens a panel on hover, keyboard focus or click. */
    .nav-group { position: relative; }
    .nav-group-toggle {
        position: relative; width: auto; padding: .5rem .75rem; border: 0; border-radius: 999px;
        font-size: .95rem; white-space: nowrap; transition: background-color .2s;
    }
    .nav-group-toggle:hover, .nav-group.is-open > .nav-group-toggle, .nav-group:hover > .nav-group-toggle { background: var(--mist); }
    .nav-group.is-current > .nav-group-toggle { color: var(--ink); }
    .nav-group-toggle::after {
        content: ""; position: absolute; left: 50%; bottom: -.45rem; width: 1.4rem; height: 3px; margin-left: -.7rem;
        border-radius: 3px; background: var(--crimson); transform: scaleX(0); transition: transform .2s;
    }
    .nav-group.is-current > .nav-group-toggle::after { transform: scaleX(1); }
    .nav-group:hover > .nav-group-toggle svg { transform: rotate(180deg); }
    .site-nav .nav-sub {
        display: block; position: absolute; top: calc(100% + .7rem); left: 50%; z-index: 60; width: 23rem; padding: .5rem;
        background: var(--paper); border: 1px solid var(--line); border-radius: 12px;
        box-shadow: 0 18px 40px rgba(16, 40, 79, .16);
        opacity: 0; visibility: hidden; transform: translate(-50%, 6px); transition: opacity .18s, transform .18s, visibility .18s;
    }
    /* Keeps the panel open while the pointer crosses the gap below the button. */
    .site-nav .nav-sub::before { content: ""; position: absolute; left: 0; right: 0; top: -.8rem; height: .8rem; }
    .nav-group.is-open .nav-sub, .nav-group:hover .nav-sub, .nav-group:focus-within .nav-sub { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
    .site-nav .nav-sub a { display: block; padding: .7rem .85rem; border-radius: 8px; white-space: normal; }
    .site-nav .nav-sub a::after { display: none; }
    .site-nav .nav-sub a:hover, .site-nav .nav-sub a[aria-current="page"] { background: var(--mist); }
    .site-nav .nav-sub a[aria-current="page"] .nav-sub-title { color: var(--crimson-text); }
    .nav-sub-hint { display: block; margin-top: .1rem; font-size: .82rem; font-weight: 400; color: var(--muted); }
}

/* Sections */
.section { padding: var(--space) 0; }
.section-mist { background: var(--mist); }
.section-ink { background: var(--band); color: #dbe4f2; }
.section-ink h2 { color: #fff; }
.section-intro { max-width: 42rem; margin-bottom: 2.5rem; }
.section-intro p { color: var(--muted); font-size: 1.1rem; }

/* Centred section heading with a short crimson line under it, as on the old Delcon site. */
.section-intro-center { text-align: center; margin-inline: auto; }
.split-action .link-on-dark { display: block; margin-top: 1rem; font-size: .95rem; }

/* Home "Why Delcon?": numbered reasons, not cards. */
.pillars { list-style: none; margin: 0; padding: 0; display: grid; gap: 2.5rem 2.5rem; counter-reset: pillar; }
@media (min-width: 40rem) { .pillars { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .pillars { grid-template-columns: repeat(4, 1fr); } }
.pillar { text-align: center; }
.pillar::before {
    counter-increment: pillar; content: counter(pillar, decimal-leading-zero);
    display: block; margin-bottom: .6rem;
    font: 700 2.75rem/1 var(--font-head); color: var(--crimson-text); letter-spacing: -.02em;
}
.pillar h3 { font-size: 1.2rem; margin-bottom: .45rem; }
.pillar p { margin: 0; color: var(--muted); }

/* A section that holds a full-width band, such as the moving technologies on the home page. */
.section-band .section-intro { margin-bottom: 2rem; }
.section-band-link { text-align: center; margin: 1.75rem 0 0; }
.section-intro-row { max-width: none; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 1rem; }
.section-intro-row h2 { margin: 0; }

.page-head { padding: clamp(3rem, 6vw, 5rem) 0 clamp(2rem, 4vw, 3rem); border-bottom: 1px solid var(--line); }
.page-head h1 { max-width: 20em; }

.split { display: grid; gap: 2rem 4rem; align-items: start; }
@media (min-width: 52rem) {
    .split { grid-template-columns: 1fr 1fr; }
    .split-wide { grid-template-columns: 1.6fr 1fr; }
    .split-form { grid-template-columns: 1.7fr 1fr; }
    .split-action { align-self: center; justify-self: end; }
}

/* Hero */
.hero { padding: clamp(3rem, 7vw, 6rem) 0 clamp(3.5rem, 7vw, 6rem); }
.hero-grid { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 60rem) { .hero-grid { grid-template-columns: 1.1fr .9fr; gap: 4rem; } }
.hero-copy h1 { max-width: 14em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .85rem; margin: 2rem 0 1.25rem; }
.hero-note { color: var(--muted); font-size: .95rem; }

/* Home intro: a full-screen opening where the company name zooms in, as on the old site. */
.intro {
    position: relative; display: grid; align-items: center;
    min-height: max(26rem, calc(100svh - 4.5rem));
    padding: 4rem 0 5.5rem; text-align: center;
    background: radial-gradient(ellipse at 50% 45%, var(--paper) 0%, var(--paper) 35%, var(--mist) 100%);
    border-bottom: 1px solid var(--line);
    overflow: hidden;
}
@media (max-width: 40rem) { .intro { min-height: 70svh; } }
.intro-inner { display: flex; flex-direction: column; align-items: center; }
.intro-slogan {
    font: 600 clamp(.85rem, 1.6vw, 1rem)/1.5 var(--font); letter-spacing: .14em; text-transform: uppercase;
    color: var(--crimson-text); max-width: 34em; margin: 0 0 1.25rem;
}
.intro-name { font: 700 clamp(2.9rem, 9vw, 5.75rem)/1 var(--font-head); letter-spacing: -.015em; color: var(--ink); margin: 0; }
.intro-divider { display: block; width: 3.5rem; height: 3px; background: var(--crimson); margin: 1.75rem 0; }
.intro-tagline { font-size: clamp(1.1rem, 2vw, 1.35rem); line-height: 1.5; color: var(--muted); max-width: 30em; margin: 0 0 2rem; }
.intro-scroll { position: absolute; bottom: 1.25rem; left: 50%; margin-left: -1.375rem; display: grid; place-items: center; width: 2.75rem; height: 2.75rem; color: var(--ink); }
.intro-scroll:hover { color: var(--crimson-text); }

@media (prefers-reduced-motion: no-preference) {
    .intro-slogan { animation: fade-in 1.25s .1s both; }
    .intro-name { animation: zoom-in 2s .3s both; }
    .intro-divider { animation: grow .8s cubic-bezier(.2, .7, .2, 1) 1.3s both; }
    .intro-tagline { animation: fade-up 1.25s 1.5s both; }
    .intro .btn { animation: fade-up 1.25s 1.7s both; }
    .intro-scroll { animation: fade-in 1s 2.6s both, nudge 2s ease-in-out 3.6s infinite; }
    @keyframes nudge { 50% { transform: translateY(.4rem); } }
    /* site.js pauses the hero below until it scrolls into view. */
    .hero.is-waiting *, .hero.is-waiting *::after { animation-play-state: paused; }
}

/* Entrance on page load, after the old site: the headline zooms in, the rest follows. */
@media (prefers-reduced-motion: no-preference) {
    .hero-copy h1 { animation: zoom-in 1.25s both; }
    .hero-copy .lede { animation: fade-in 1.25s .3s both; }
    .hero-actions { animation: fade-up 1.25s .5s both; }
    .hero-note { animation: fade-up 1.25s .65s both; }
    .hero .pathway { animation: fade-up 1s .6s both; }
    /* Let the timeline bars grow once the graphic is in place. */
    .hero .stage-bar::after { animation-delay: 1.3s; }
    .hero .stage-provisional .stage-bar::after { animation-delay: 1.55s; }
    .hero .stage-permanent .stage-bar::after { animation-delay: 1.8s; }
    @keyframes zoom-in { from { opacity: 0; transform: scale3d(.3, .3, .3); } 50% { opacity: 1; } }
    @keyframes fade-in { from { opacity: 0; } }
    @keyframes fade-up { from { opacity: 0; transform: translate3d(0, 3rem, 0); } }
}

/* Certificate timeline: a Gantt bar on a shared time axis, roughly to scale.
   Review about 1 month, provisional 6 months, permanent up to 60 months. */
.pathway {
    margin: 0; padding: 1.75rem 1.75rem 1.4rem;
    background: var(--band); color: #dbe4f2; border-radius: 10px;
    position: relative; overflow: hidden;
}
.pathway::before { content: ""; position: absolute; inset: 0 0 auto; height: 5px; background: var(--crimson); }
.pathway-title { font-family: var(--font-head); font-weight: 700; font-size: 1.3rem; color: #fff; margin-bottom: 1.25rem; }
.pathway-stages { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.35rem; }
.stage-text { display: flex; flex-direction: column; margin-bottom: .5rem; }
.stage-name { color: #fff; font-weight: 600; }
.stage-time { font-size: .92rem; color: #b9c7dd; }
.stage-bar {
    display: block; height: 12px; border-radius: 2px; position: relative;
    background: rgba(255, 255, 255, .1);
}
.stage-bar::after { content: ""; position: absolute; top: 0; bottom: 0; border-radius: 2px; }
.stage-review .stage-bar::after { left: 0; width: max(1.5%, 8px); background: #fff; }
.stage-provisional .stage-bar::after { left: 1.5%; width: 9%; background: var(--crimson); }
.stage-permanent .stage-bar::after { left: 10.5%; right: 0; background: linear-gradient(90deg, #fff 85%, rgba(255, 255, 255, .25)); }
.pathway-note { margin: 1.25rem 0 0; font-size: .82rem; color: #9fb1cc; }

@media (prefers-reduced-motion: no-preference) {
    .stage-bar::after { transform-origin: left center; animation: grow .9s cubic-bezier(.2, .7, .2, 1) both; }
    .stage-provisional .stage-bar::after { animation-delay: .25s; }
    .stage-permanent .stage-bar::after { animation-delay: .5s; }
    @keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
}

/* Requirement rules */
.rules { display: grid; gap: 2rem 3rem; }
@media (min-width: 46rem) { .rules { grid-template-columns: 1fr 1fr; } }
.rule { border-left: 3px solid var(--crimson); padding-left: 1.25rem; }
.rule p { margin: 0; color: var(--muted); }

/* Stats */
.stats { border-block: 1px solid var(--line); padding: 2rem 0; }
.stats-row { display: flex; flex-wrap: wrap; gap: 1.5rem 4rem; }
.stat { margin: 0; display: flex; align-items: baseline; gap: .6rem; }
.stat-value { font-family: var(--font-head); font-weight: 700; font-size: 2.4rem; color: var(--ink); line-height: 1; }
.stat-label { color: var(--muted); }

/* Figures that count up, after the old site's "Our Experiences" band. */
.counters { text-align: center; }
.counters-intro { margin-inline: auto; }
.counters-intro p { color: #dbe4f2; }
.accent-rule { display: block; width: 3.5rem; height: 3px; background: var(--crimson); margin: 0 auto 1.25rem; }
.counter-row { display: grid; gap: 2rem 0; margin: 0; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); }
/* Labels can wrap to two lines; the numbers stay level along the bottom. */
.counter { display: flex; flex-direction: column; padding: .25rem 1.5rem; }
.counter dt { flex: 1; }
@media (min-width: 46rem) { .counter + .counter { border-left: 1px solid rgba(255, 255, 255, .15); } }
.counter dt { font-size: .85rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: #dbe4f2; }
.counter dd { margin: .6rem 0 0; font: 700 clamp(3rem, 6vw, 4.25rem)/1 var(--font-head); color: #fff; font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: no-preference) {
    .accent-rule.is-shown { animation: flash 1.25s .4s both; }
    @keyframes flash { 0%, 50%, 100% { opacity: 1; } 25%, 75% { opacity: 0; } }
}

/* Services */
.service-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0 3rem; }
@media (min-width: 46rem) { .service-list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .service-list { grid-template-columns: repeat(3, 1fr); } }
.service-list li { border-top: 1px solid var(--line); padding: 1.5rem 0 1.25rem; }
.service-list h3 a { color: var(--ink); text-decoration: none; }
.service-list h3 a:hover { color: var(--crimson-text); text-decoration: underline; }
.service-list p { color: var(--muted); margin: 0; }

.service-row { display: grid; gap: .5rem 3rem; padding: 2.5rem 0; border-top: 1px solid var(--line); }
.service-row:first-child { border-top: 0; padding-top: 0; }
@media (min-width: 52rem) { .service-row { grid-template-columns: 1fr 2fr; } }
.service-row h2 { font-size: 1.6rem; }

.checks { list-style: none; padding: 0; margin: 0; }
.checks li { position: relative; padding-left: 1.6rem; margin-bottom: .45rem; }
.checks li::before {
    content: ""; position: absolute; left: .15rem; top: .5em;
    width: .45rem; height: .8rem; border: solid var(--crimson); border-width: 0 2px 2px 0; transform: rotate(45deg);
}

/* Numbered steps (used only for real sequences) */
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; }
.steps > li { counter-increment: step; position: relative; padding: 0 0 1.5rem 3.25rem; }
.steps > li::before {
    content: counter(step);
    position: absolute; left: 0; top: -.1rem;
    width: 2.2rem; height: 2.2rem; border-radius: 50%;
    display: grid; place-items: center;
    font: 700 1.05rem/1 var(--font-head); color: #fff; background: var(--badge);
}
.steps > li:not(:last-child)::after {
    content: ""; position: absolute; left: calc(1.1rem - 1px); top: 2.3rem; bottom: .2rem; width: 2px; background: var(--line);
}
.steps h3 { margin-bottom: .3rem; padding-top: .15rem; }
.steps-heading { font-size: 1.45rem; margin: 0 0 .4rem; }
.steps-intro { color: var(--muted); margin: 0 0 1.75rem; }
.steps p { color: var(--muted); margin: 0; }
.steps-compact > li { padding-bottom: 1rem; }
.steps-compact strong { color: var(--ink); font-weight: 600; display: inline-block; padding-top: .2rem; }
.steps-small > li { padding-left: 2.6rem; }
.steps-small > li::before { width: 1.8rem; height: 1.8rem; font-size: .9rem; }
.steps-small > li:not(:last-child)::after { left: calc(.9rem - 1px); top: 1.9rem; }

/* Technology tags and grid */
.tech-tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .65rem; }
.tech-tags a {
    display: inline-block; padding: .55rem 1rem; border: 1px solid var(--line); border-radius: 999px;
    background: var(--surface); color: var(--ink); text-decoration: none; font-weight: 500;
}
.tech-tags a:hover { border-color: var(--ink); }
.tech-grid { display: grid; gap: 0 3rem; }
@media (min-width: 46rem) { .tech-grid { grid-template-columns: 1fr 1fr; } }
.tech-item { display: grid; grid-template-columns: auto 1fr; gap: 0 1.25rem; align-items: start; padding: 1.5rem 0; border-top: 1px solid var(--line); }
.tech-item h2 { font-size: 1.4rem; margin-bottom: .35rem; }
.tech-item p { margin: 0; color: var(--muted); }

/* Product symbols: the device in navy, its radio signal in crimson. */
.tech-icon {
    display: grid; place-items: center; flex: none;
    width: 3.5rem; height: 3.5rem; border-radius: 50%;
    background: var(--mist); color: var(--ink);
    transition: transform .25s, background-color .25s;
}
.tech-icon .tech-symbol { width: 1.9rem; height: 1.9rem; }
.tech-icon .w1, .tech-icon .w2, .tech-icon .w3 { stroke: var(--crimson); }
.tech-item:hover .tech-icon { transform: translateY(-3px); background: var(--mist-hover); }
.tech-icon-small { width: 2.25rem; height: 2.25rem; background: var(--mist); }
.tech-icon-small .tech-symbol { width: 1.3rem; height: 1.3rem; }

/* Products page: a band of symbols and names moving sideways. */
.tech-ticker { position: relative; background: var(--mist); border-bottom: 1px solid var(--line); padding: 1.1rem 0; }
.tech-ticker-window { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.tech-ticker-track { display: flex; width: max-content; }
.tech-ticker-list { display: flex; gap: .75rem; margin: 0; padding: 0 .75rem 0 0; list-style: none; }
.tech-ticker-list a {
    display: inline-flex; align-items: center; gap: .65rem;
    padding: .3rem 1.1rem .3rem .3rem; border-radius: 999px;
    background: var(--surface); border: 1px solid var(--line);
    color: var(--ink); font-weight: 600; text-decoration: none; white-space: nowrap;
    transition: border-color .2s;
}
.tech-ticker-list a:hover { border-color: var(--crimson); }
.tech-ticker-pause {
    position: absolute; right: .75rem; top: 50%; transform: translateY(-50%);
    display: grid; place-items: center; width: 2.25rem; height: 2.25rem; padding: 0;
    border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer;
    box-shadow: 0 0 0 .5rem var(--mist);
}
.tech-ticker-pause:hover { border-color: var(--ink); }
.tech-ticker-plain { background: none; border: 0; padding: .25rem 0; }
.tech-ticker-plain .tech-ticker-pause { box-shadow: 0 0 0 .5rem var(--mist); }

@media (prefers-reduced-motion: no-preference) {
    .tech-ticker-track { animation: ticker var(--ticker-duration, 40s) linear infinite; }
    .tech-ticker:hover .tech-ticker-track,
    .tech-ticker:focus-within .tech-ticker-track,
    .tech-ticker.is-paused .tech-ticker-track { animation-play-state: paused; }
    @keyframes ticker { to { transform: translateX(-50%); } }

    /* Cards slide up as they scroll into view (site.js), then their signal pulses; it repeats on hover. */
    [data-reveal] { transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
    [data-reveal].is-hidden { opacity: 0; transform: translateY(1.5rem); }
    .is-shown .tech-icon .w1, .tech-item:hover .tech-icon .w1 { animation: signal 1.4s .35s both; }
    .is-shown .tech-icon .w2, .tech-item:hover .tech-icon .w2 { animation: signal 1.4s .5s both; }
    .is-shown .tech-icon .w3, .tech-item:hover .tech-icon .w3 { animation: signal 1.4s .65s both; }
    .tech-item:hover .tech-icon :is(.w1, .w2, .w3) { animation-iteration-count: infinite; }
    @keyframes signal { 0% { opacity: .15; } 45%, 100% { opacity: 1; } }
}
@media (prefers-reduced-motion: reduce) {
    .tech-ticker-window { -webkit-mask-image: none; mask-image: none; padding: 0 var(--gutter); }
    .tech-ticker-track { width: auto; }
    .tech-ticker-list { flex-wrap: wrap; justify-content: center; padding: 0; }
    .tech-ticker-list[aria-hidden="true"], .tech-ticker-pause { display: none; }
}

/* News */
.post-grid { display: grid; gap: 2rem 3rem; }
@media (min-width: 52rem) { .post-grid { grid-template-columns: repeat(3, 1fr); } }
.post-card { border-top: 3px solid var(--ink); padding-top: 1rem; }
.post-card h3 { font-size: 1.2rem; }
.post-card h3 a { color: var(--ink); text-decoration: none; }
.post-card h3 a:hover { text-decoration: underline; color: var(--crimson-text); }
.post-card p:last-child { color: var(--muted); margin: 0; }
.post-meta { display: flex; flex-wrap: wrap; gap: .4rem 1rem; font-size: .9rem; color: var(--muted); margin-bottom: .6rem; }
.post-category { color: var(--crimson-text); font-weight: 600; }
.draft-flag { background: #fff3cd; color: #6b4e00; padding: 0 .5rem; border-radius: 3px; }
.pagination { margin-top: 2.5rem; }
.pagination nav, .pagination ul { display: flex; gap: 1rem; list-style: none; padding: 0; }

/* FAQ: questions grouped by topic, with a topic menu and search. */
.faq-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; }
@media (min-width: 60rem) { .faq-layout { grid-template-columns: 15rem minmax(0, 1fr); gap: 4rem; } }
.faq-main { min-width: 0; max-width: 48rem; }
.faq-topics ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .4rem; overflow-x: auto; padding-bottom: .25rem; }
.faq-topics a {
    display: flex; align-items: center; gap: .45rem; white-space: nowrap;
    padding: .4rem .8rem; border-radius: 999px; background: var(--mist);
    color: var(--ink); text-decoration: none; font-size: .92rem; font-weight: 500;
}
.faq-topics a:hover, .faq-topics a.is-current { background: var(--ink); color: var(--paper); }
.faq-count { font-size: .8rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.faq-topics a:hover .faq-count, .faq-topics a.is-current .faq-count { color: inherit; opacity: .8; }
.faq-side-help { display: none; }
@media (min-width: 60rem) {
    .faq-side { position: sticky; top: 6rem; align-self: start; }
    .faq-topics ul { display: block; overflow: visible; border-left: 2px solid var(--line); }
    .faq-topics a {
        justify-content: space-between; border-radius: 0; background: none;
        padding: .45rem 0 .45rem 1rem; margin-left: -2px; border-left: 2px solid transparent;
    }
    .faq-topics a:hover { background: none; color: var(--crimson-text); }
    .faq-topics a.is-current { background: none; color: var(--ink); font-weight: 600; border-left-color: var(--crimson); }
    .faq-topics a:hover .faq-count, .faq-topics a.is-current .faq-count { color: var(--muted); opacity: 1; }
    .faq-side-help { display: block; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
    .faq-side-help p { margin: 0 0 .6rem; font-weight: 600; color: var(--ink); }
}

.faq-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1.5rem; margin-bottom: 2rem; }
.faq-search { position: relative; flex: 1 1 18rem; max-width: 30rem; }
.faq-search svg { position: absolute; left: .85rem; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.faq-search input {
    width: 100%; font: inherit; color: var(--text);
    padding: .7rem .9rem .7rem 2.6rem; border: 1px solid var(--input-border); border-radius: 999px; background: var(--surface);
}
.faq-search input:focus { outline: 3px solid rgba(196, 30, 58, .25); border-color: var(--crimson); }
.faq-toggle-all { font-size: .95rem; font-weight: 600; color: var(--ink-2); }
.faq-empty { background: var(--mist); padding: 1.1rem 1.25rem; border-radius: var(--radius); }

.faq-group { scroll-margin-top: 6rem; }
.faq-group + .faq-group { margin-top: 2.75rem; }
.faq-group-title { font-size: 1.4rem; margin: 0 0 1rem; }
.faq-list { display: grid; gap: .6rem; margin-bottom: 1.5rem; }
.faq {
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
    transition: border-color .15s, box-shadow .15s; scroll-margin-top: 6rem;
}
.faq:hover { border-color: var(--input-border); }
.faq[open] { border-color: var(--input-border); box-shadow: inset 3px 0 0 var(--crimson); }
.faq summary {
    cursor: pointer; list-style: none; position: relative;
    padding: 1rem 3.5rem 1rem 1.25rem; font-weight: 600; color: var(--ink); border-radius: var(--radius);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:focus-visible { outline: 3px solid rgba(196, 30, 58, .35); outline-offset: 2px; }
/* A plus in a circle that turns into a minus when open. */
.faq summary::after {
    content: ""; position: absolute; right: 1.1rem; top: 50%; width: 1.6rem; height: 1.6rem; margin-top: -.8rem;
    border-radius: 50%;
    background:
        linear-gradient(var(--crimson-text), var(--crimson-text)) center / .7rem 2px no-repeat,
        linear-gradient(var(--crimson-text), var(--crimson-text)) center / 2px .7rem no-repeat,
        var(--mist);
}
.faq[open] summary::after {
    background:
        linear-gradient(var(--crimson-text), var(--crimson-text)) center / .7rem 2px no-repeat,
        var(--mist);
}
.faq-answer { padding: 0 1.25rem 1.15rem; color: var(--muted); }
.faq-answer p { margin: 0 0 .7rem; }
.faq-answer p:last-child { margin-bottom: 0; }

/* Guide: animated type approval process (partials/approval-flow) */
.flow { position: relative; margin: 0 0 2.5rem; padding: 1.5rem 1.25rem 1.25rem; background: var(--mist); border-radius: var(--radius); container-type: inline-size; }
.flow-caption { font-weight: 600; color: var(--ink); margin: 0 2.75rem 1.25rem 0; }
.flow-diagram {
    display: grid; grid-template-columns: minmax(0, 1fr) 3rem minmax(0, 1fr);
    grid-template-areas: "m . ." "a1 . ." "t . ." "a2 . ." "app a5 imp" "a34 . a6" "nta . mkt";
}
.flow-m { grid-area: m; } .flow-t { grid-area: t; } .flow-app { grid-area: app; } .flow-imp { grid-area: imp; }
.flow-nta { grid-area: nta; } .flow-mkt { grid-area: mkt; }
.flow-a1 { grid-area: a1; } .flow-a2 { grid-area: a2; } .flow-a5 { grid-area: a5; } .flow-a34 { grid-area: a34; } .flow-a6 { grid-area: a6; }
@container (min-width: 40rem) {
    .flow-diagram {
        grid-template-columns: minmax(0, 1fr) 3.25rem minmax(0, 1fr) 3.25rem minmax(0, 1.3fr) 3.25rem minmax(0, 1fr);
        grid-template-areas: "m a1 t a2 app a5 imp" ". . . . a34 . a6" ". . . . nta . mkt";
    }
}

/* Boxes */
.flow-node {
    position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .15rem;
    padding: .85rem .6rem; text-align: center; font-weight: 600; font-size: .92rem; line-height: 1.3; color: var(--ink);
    background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
    box-shadow: 0 1px 2px rgba(16, 40, 79, .06);
    transition: opacity .4s, border-color .4s, box-shadow .4s, transform .4s;
}
.flow-node small { font-weight: 400; font-size: .76rem; color: var(--muted); }
.flow-node-key { border-color: var(--crimson); }
.flow-icon {
    display: grid; place-items: center; width: 2.5rem; height: 2.5rem; margin-bottom: .35rem; border-radius: 50%;
    background: var(--mist); color: var(--ink-2); transition: background-color .4s, color .4s;
}
.flow-node-key .flow-icon { background: rgba(196, 30, 58, .1); color: var(--crimson-text); }
.flow-tag {
    margin-bottom: .4rem; padding: .05rem .5rem; border-radius: 999px;
    background: var(--crimson); color: #fff; font-size: .66rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
}
.flow-lock, .flow-stamp {
    display: inline-flex; align-items: center; gap: .25rem; margin-top: .4rem; padding: .1rem .5rem; border-radius: 999px;
    font-size: .68rem; font-weight: 700; transition: opacity .4s, transform .4s;
}
.flow-lock { background: #fff3cd; color: #6b4e00; }
.flow-stamp { background: #e6f4ec; color: var(--ok); }

/* Arrows point down unless they run across. The coloured fill is drawn by ::before, the head by ::after. */
.flow-arrow { position: relative; display: flex; justify-content: center; min-height: 3rem; padding: .3rem 0 .45rem; }
.flow-line { position: relative; width: 3px; background: var(--line); color: var(--crimson); }
.flow-line::before { content: ""; position: absolute; inset: 0; background: currentColor; transform-origin: top; }
.flow-line::after {
    content: ""; position: absolute; left: 50%; bottom: -7px; transform: translateX(-50%);
    border: 6px solid transparent; border-bottom: 0; border-top: 8px solid currentColor;
}
.flow-arrow-up .flow-line { transform: rotate(180deg); }
.flow-num {
    position: absolute; top: 50%; left: calc(50% + .55rem); transform: translateY(-50%);
    display: grid; place-items: center; width: 1.5rem; height: 1.5rem; border-radius: 50%;
    background: var(--badge); color: #fff; font-size: .78rem; font-weight: 700; transition: background-color .3s, color .3s;
}
.flow-pair { display: flex; justify-content: center; gap: 2.75rem; }
.flow-pair .flow-arrow:first-child .flow-num { left: auto; right: calc(50% + .55rem); }
.flow-dot { position: absolute; left: 50%; top: 0; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--crimson); box-shadow: 0 0 0 4px rgba(196, 30, 58, .25); opacity: 0; }
.flow-arrow-across { align-items: center; padding: 0 .55rem 0 .3rem; }
.flow-arrow-across .flow-line { width: 100%; height: 3px; }
.flow-arrow-across .flow-line::before { transform-origin: left; }
.flow-arrow-across .flow-line::after { left: auto; right: -7px; bottom: auto; top: 50%; transform: translateY(-50%); border: 6px solid transparent; border-right: 0; border-left: 8px solid currentColor; }
.flow-arrow-across .flow-num { top: auto; bottom: calc(50% + .45rem); left: 50%; transform: translateX(-50%); }
.flow-arrow-across .flow-dot { top: 50%; left: 0; }
@container (min-width: 40rem) {
    .flow-arrow-wide { align-items: center; padding: 0 .55rem 0 .3rem; }
    .flow-arrow-wide .flow-line { width: 100%; height: 3px; }
    .flow-arrow-wide .flow-line::before { transform-origin: left; }
    .flow-arrow-wide .flow-line::after { left: auto; right: -7px; bottom: auto; top: 50%; transform: translateY(-50%); border: 6px solid transparent; border-right: 0; border-left: 8px solid currentColor; }
    .flow-arrow-wide .flow-num { top: auto; bottom: calc(50% + .45rem); left: 50%; transform: translateX(-50%); }
    .flow-arrow-wide .flow-dot { top: 50%; left: 0; }
}

/* Step cards under the diagram */
.flow-progress { display: flex; align-items: center; gap: .75rem; margin-top: 1.25rem; }
.flow-progress-bar { flex: 1; height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.flow-progress-bar span { display: block; height: 100%; width: 0; border-radius: 3px; background: var(--crimson); transition: width .6s ease-out; }
.flow-progress-text { font-size: .82rem; font-weight: 600; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.flow .flow-steps {
    list-style: none; counter-reset: flow-step; margin: 1rem 0 0; padding: 0;
    display: grid; grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)); gap: .6rem;
}
.flow .flow-steps li {
    counter-increment: flow-step; position: relative; margin: 0; padding: .7rem .8rem .75rem 2.85rem;
    background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
    font-size: .88rem; line-height: 1.45; color: var(--muted); transition: border-color .3s, box-shadow .3s, color .3s;
}
.flow .flow-steps li::before {
    content: counter(flow-step); position: absolute; left: .75rem; top: .7rem;
    display: grid; place-items: center; width: 1.5rem; height: 1.5rem; border-radius: 50%;
    background: var(--badge); color: #fff; font-size: .78rem; font-weight: 700; transition: background-color .3s;
}
.flow-steps strong { display: block; color: var(--ink); margin-bottom: .1rem; }
.flow-pause {
    position: absolute; top: 1rem; right: 1rem; display: grid; place-items: center; width: 2rem; height: 2rem; padding: 0;
    border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer;
}
.flow-pause:hover { border-color: var(--ink); }

/* While playing (site.js adds .is-playing), steps not yet reached are drawn faintly. */
.flow.is-playing .flow-line { transition: color .3s .45s; }
.flow.is-playing .flow-line::before { transition: transform .6s ease-out; }
.flow.is-playing .flow-arrow:not(.is-done) .flow-line { color: var(--input-border); transition-delay: 0s; }
.flow.is-playing .flow-arrow:not(.is-done) .flow-line::before { transform: scaleY(0); }
.flow.is-playing .flow-arrow-across:not(.is-done) .flow-line::before { transform: scaleX(0); }
.flow.is-playing .flow-arrow:not(.is-done) .flow-num { background: var(--line); color: var(--muted); }
.flow.is-playing .flow-arrow.is-active .flow-dot { animation: flow-dot-down .7s ease-in-out both; }
.flow.is-playing .flow-arrow-across.is-active .flow-dot { animation-name: flow-dot-across; }
.flow.is-playing .flow-node:not(.is-reached) { opacity: .45; }
.flow.is-playing .flow-node.is-current { border-color: var(--crimson); box-shadow: 0 0 0 4px rgba(196, 30, 58, .15), 0 8px 18px rgba(16, 40, 79, .12); transform: translateY(-2px); }
.flow.is-playing .flow-node.is-current .flow-icon { background: var(--crimson); color: #fff; }
.flow.is-playing:not(.is-certified) .flow-stamp { opacity: 0; transform: scale(.6); }
.flow.is-playing.is-certified .flow-lock { opacity: 0; transform: scale(.6); }
.flow.is-playing .flow-steps li { cursor: pointer; }
.flow.is-playing .flow-steps li:hover { border-color: var(--input-border); }
.flow.is-playing .flow-steps li.is-current { border-color: var(--crimson); box-shadow: inset 3px 0 0 var(--crimson); color: var(--text); }
.flow.is-playing .flow-steps li.is-done::before { content: "✓"; background: var(--ok); }
@container (min-width: 40rem) {
    .flow.is-playing .flow-arrow-wide:not(.is-done) .flow-line::before { transform: scaleX(0); }
    .flow.is-playing .flow-arrow-wide.is-active .flow-dot { animation-name: flow-dot-across; }
}
@keyframes flow-dot-down { 0% { top: 0; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { top: 100%; opacity: 0; } }
@keyframes flow-dot-across { 0% { left: 0; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { left: 100%; opacity: 0; } }

/* Products: frequency band tables */
.band-tables { display: grid; grid-template-columns: minmax(0, 1fr); gap: .6rem; }
.band-source { display: inline-block; margin-left: .5rem; font-size: .8rem; font-weight: 400; color: var(--muted); }
.band-table .faq-answer { color: var(--ink); }
.band-table .faq-answer > p:first-child { color: var(--muted); }
.table-scroll { overflow-x: auto; margin: .25rem 0 .75rem; border: 1px solid var(--line); border-radius: var(--radius); }
.data-table { width: 100%; border-collapse: collapse; font-size: .95rem; font-variant-numeric: tabular-nums; }
.data-table th, .data-table td { text-align: left; vertical-align: top; padding: .65rem .9rem; border-bottom: 1px solid var(--line); }
.data-table thead th { background: var(--mist); color: var(--ink); font-size: .85rem; font-weight: 600; white-space: nowrap; }
.data-table tbody th { font-weight: 600; color: var(--ink); white-space: nowrap; }
.data-table tbody tr:last-child > * { border-bottom: 0; }
.data-table tbody tr:hover { background: var(--mist); }
.data-table td { white-space: nowrap; }
.data-table ul { margin: 0; padding-left: 1.1rem; min-width: 16rem; white-space: normal; }
.data-table li + li { margin-top: .25rem; }
.band-note { font-size: .9rem; color: var(--muted); }
.band-source-link { margin-top: 1.25rem; font-size: .9rem; color: var(--muted); }

/* CTA band */
.cta-band { background: var(--band); color: #dbe4f2; padding: clamp(3rem, 6vw, 4.5rem) 0; }
.cta-band h2 { color: #fff; }
.cta-band p { max-width: 36em; margin: 0; }
.cta-row { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 52rem) { .cta-row { grid-template-columns: 1.5fr 1fr; } }
.cta-actions { display: flex; flex-direction: column; align-items: flex-start; gap: .9rem; }
@media (min-width: 52rem) { .cta-actions { align-items: flex-end; } }

/* Guide */
.guide-layout { display: grid; gap: 2rem; padding-top: var(--space); padding-bottom: var(--space); }
@media (min-width: 60rem) { .guide-layout { grid-template-columns: 15rem 1fr; gap: 4rem; } }
.guide-toc { font-size: .95rem; }
@media (min-width: 60rem) { .guide-toc { position: sticky; top: 6rem; align-self: start; } }
.toc-title { font-weight: 600; color: var(--ink); margin-bottom: .5rem; }
.guide-toc ol { margin: 0; padding-left: 1.2rem; color: var(--muted); }
.guide-toc li { margin-bottom: .35rem; }
.guide-toc a { color: var(--ink-2); text-decoration: none; }
.guide-toc a:hover { text-decoration: underline; }
.guide-body > section { padding-bottom: 2.5rem; margin-bottom: 2.5rem; border-bottom: 1px solid var(--line); }
.guide-body > section:last-child { border-bottom: 0; }
.guide-body .pathway { margin: 1.5rem 0 2rem; }

.prose { max-width: 44rem; }
.prose h2 { margin-top: 1.6em; }
.prose > section > h2:first-child, .prose > h2:first-child { margin-top: 0; }
.prose ul, .prose ol:not(.steps):not(.flow-steps) { padding-left: 1.3rem; }
.prose li { margin-bottom: .35rem; }
.prose blockquote { margin: 1.5rem 0; padding-left: 1.25rem; border-left: 3px solid var(--crimson); color: var(--muted); }

.doc-list { margin: 1.5rem 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.doc-list > div { display: grid; gap: .2rem 1.5rem; padding: .9rem 0; border-bottom: 1px solid var(--line); }
@media (min-width: 40rem) { .doc-list > div { grid-template-columns: 13rem 1fr; } }
.doc-list dt { font-weight: 600; color: var(--ink); }
.doc-list dd { margin: 0; color: var(--muted); }

.callout { background: var(--mist); border-left: 4px solid var(--crimson); padding: 1.1rem 1.25rem; margin: 1.5rem 0; border-radius: 0 var(--radius) var(--radius) 0; }
.callout p { margin: 0; }

/* Fact box, contact */
.fact-box { background: var(--mist); padding: 1.75rem; border-radius: var(--radius); }
.section-mist .fact-box { background: var(--surface); }
.fact-box h2, .fact-box h3 { font-size: 1.35rem; }
.fact-box dl { margin: 0; }
.fact-box dl > div { padding: .65rem 0; border-top: 1px solid var(--line); }
.fact-box dt { font-size: .88rem; color: var(--muted); }
.fact-box dd { margin: 0; color: var(--ink); font-weight: 500; }
.fact-box-foot { margin: 1rem 0 0; font-size: .95rem; }
.contact-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; }
@media (min-width: 40rem) { .contact-cards { grid-template-columns: 1fr 1fr; } }
.contact-card {
    display: flex; gap: .9rem; padding: 1.1rem 1.15rem; background: var(--surface);
    border: 1px solid var(--line); border-radius: 10px; transition: border-color .2s, box-shadow .2s;
}
.contact-card:hover { border-color: var(--input-border); box-shadow: 0 6px 18px rgba(16, 40, 79, .08); }
.contact-card-icon {
    flex: none; display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 50%;
    background: var(--mist); color: var(--crimson-text);
}
.contact-card h3 { font-size: 1.05rem; margin: .1rem 0 .3rem; }
.contact-card p, .contact-card address { margin: 0 0 .4rem; font-style: normal; font-size: .93rem; color: var(--muted); }
.contact-card a { font-weight: 600; font-size: .93rem; color: var(--crimson-text); }
.contact-details h2, .contact-details h3 { font-size: 1.25rem; margin: 1.75rem 0 .35rem; }
.contact-details h2:first-child, .contact-details h3:first-child { margin-top: 0; }
.contact-details address { font-style: normal; margin-bottom: .5rem; }
.contact-quote { margin-top: 2rem; }
.social-links { display: flex; gap: 1.1rem; }
.social-links a { display: inline-flex; transition: transform .15s ease; }
.social-links a:hover { transform: translateY(-2px); }
.social-icon-linkedin { color: #0a66c2; }
.social-icon-whatsapp { color: #1f9d55; }
.social-icon-email { color: var(--crimson-text); }
[data-theme="dark"] .social-icon-linkedin { color: #70b5f9; }
.map-frame iframe { width: 100%; aspect-ratio: 4 / 3; border: 0; border-radius: var(--radius); }

/* Forms */
.form fieldset { border: 0; padding: 0; margin: 0 0 2rem; }
.form legend { font: 700 1.35rem/1.2 var(--font-head); color: var(--ink); margin-bottom: 1rem; padding: 0; }
.field { margin-bottom: 1.2rem; }
.field-row { display: grid; gap: 0 1.25rem; }
@media (min-width: 40rem) { .field-row { grid-template-columns: 1fr 1fr; } }
.field label, .field .label { display: block; font-weight: 600; color: var(--ink); margin-bottom: .35rem; }
.req { font-weight: 400; font-size: .85rem; color: var(--muted); margin-left: .35rem; }
.hint { font-size: .9rem; color: var(--muted); margin: -.15rem 0 .45rem; }
.form input[type="text"], .form input[type="email"], .form input[type="tel"], .form input[type="number"],
.form input[type="password"], .form input[type="datetime-local"], .form select, .form textarea {
    width: 100%; font: inherit; color: var(--text);
    padding: .7rem .8rem; border: 1px solid var(--input-border); border-radius: var(--radius); background: var(--surface);
}
.form input[type="file"] { font: inherit; font-size: .95rem; }
.form textarea { resize: vertical; min-height: 6rem; }
.form textarea.mono { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: .92rem; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 3px solid rgba(196, 30, 58, .25); border-color: var(--crimson); outline-offset: 0; }
.form [aria-invalid="true"] { border-color: var(--crimson); background: var(--danger-bg); }
.check-grid { display: grid; gap: .5rem 1.25rem; }
@media (min-width: 34rem) { .check-grid { grid-template-columns: 1fr 1fr; } }
.field label.check, .check { display: flex; align-items: flex-start; gap: .6rem; font-weight: 400; color: var(--text); cursor: pointer; }
.check input { width: 1.15rem; height: 1.15rem; margin: .25rem 0 0; accent-color: var(--crimson); flex-shrink: 0; }
.form-alert { border: 2px solid var(--crimson); background: var(--danger-bg); padding: 1rem 1.25rem; border-radius: var(--radius); margin-bottom: 1.75rem; }
.form-alert p { margin: 0 0 .4rem; color: var(--danger-text); }
.form-alert ul { margin: 0; padding-left: 1.2rem; }
.form-actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Footer */
.site-footer { background: var(--footer-bg); color: #b9c7dd; padding: 4rem 0 0; font-size: .97rem; }
.site-footer a { color: #dbe4f2; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; gap: 2.5rem; padding-bottom: 3rem; }
@media (min-width: 46rem) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; } }
.footer-about img { width: auto; height: 48px; margin-bottom: 1rem; }
.footer-about address { font-style: normal; margin-top: 1rem; }
.footer-reg { margin-top: 1rem; font-size: .9rem; }
.footer-social { display: flex; gap: .9rem; margin-top: 1rem; }
.footer-social a { display: inline-flex; }
.footer-social .social-icon { color: #dbe4f2; }
.footer-social a:hover .social-icon { color: #fff; }
.footer-heading { font: 600 1rem var(--font); color: #fff; margin-bottom: .8rem; letter-spacing: 0; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: .5rem; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.footer-legal { padding-bottom: 2rem; font-size: .88rem; }
.footer-legal::before { content: ""; display: block; border-top: 1px solid rgba(255, 255, 255, .12); margin-bottom: 1.5rem; }
.footer-legal p { margin: 0 0 .5rem; max-width: 60em; }
.footer-legal-links a { margin-left: 1rem; }

.whatsapp-float {
    position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 40;
    width: 3.4rem; height: 3.4rem; border-radius: 50%;
    display: grid; place-items: center;
    background: #1f9d55; color: #fff; box-shadow: 0 6px 18px rgba(0, 0, 0, .2);
}
.whatsapp-float:hover { background: #17834a; color: #fff; }

/* Admin */
.admin { background: var(--mist); }
.admin-bar { background: var(--band); color: #fff; position: sticky; top: 0; z-index: 20; box-shadow: 0 2px 10px rgba(16, 40, 79, .18); }
.admin-bar-row { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.5rem; min-height: 4rem; padding-block: .5rem; }
.admin-brand { display: flex; align-items: center; gap: .6rem; color: #fff; font-weight: 600; text-decoration: none; white-space: nowrap; }
.admin-brand img { border-radius: 6px; background: #fff; padding: 2px; }
.admin-brand small { display: inline-block; margin-left: .3rem; padding: .05rem .45rem; border-radius: 999px; background: rgba(255, 255, 255, .14); font-size: .72rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; vertical-align: middle; }
.admin-nav { display: flex; gap: .25rem; flex: 1 1 auto; overflow-x: auto; scrollbar-width: none; }
.admin-nav a { display: inline-flex; align-items: center; gap: .45rem; padding: .5rem .8rem; border-radius: 8px; color: #dbe4f2; text-decoration: none; font-size: .95rem; white-space: nowrap; }
.admin-nav a:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.admin-nav a[aria-current="page"] { background: rgba(255, 255, 255, .16); color: #fff; font-weight: 600; box-shadow: inset 0 -2px 0 var(--crimson); }
.admin-count { min-width: 1.35rem; padding: 0 .4rem; border-radius: 999px; background: var(--crimson); color: #fff; font-size: .75rem; font-weight: 700; line-height: 1.35rem; text-align: center; }
.admin-account { display: flex; align-items: center; gap: 1rem; margin-left: auto; }
.admin-view-site { color: #dbe4f2; font-size: .92rem; text-decoration: none; white-space: nowrap; }
.admin-view-site:hover { color: #fff; text-decoration: underline; }
.admin-menu { position: relative; }
.admin-menu summary { display: flex; align-items: center; gap: .5rem; cursor: pointer; list-style: none; padding: .3rem .5rem .3rem .3rem; border-radius: 999px; color: #fff; font-size: .92rem; }
.admin-menu summary::-webkit-details-marker { display: none; }
.admin-menu summary::after { content: "▾"; font-size: .75rem; color: #dbe4f2; }
.admin-menu summary:hover, .admin-menu[open] summary { background: rgba(255, 255, 255, .1); }
.admin-avatar { display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--crimson); color: #fff; font-weight: 700; }
.admin-user { max-width: 10rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-menu-panel { position: absolute; right: 0; top: calc(100% + .5rem); min-width: 14rem; background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 12px 30px rgba(16, 40, 79, .18); padding: .5rem; display: grid; }
.admin-menu-panel .admin-menu-email { margin: 0; padding: .5rem .75rem .6rem; border-bottom: 1px solid var(--line); color: var(--muted); font-size: .85rem; overflow-wrap: anywhere; }
.admin-menu-panel a, .admin-menu-panel .link-button { display: block; width: 100%; text-align: left; padding: .55rem .75rem; border-radius: 6px; color: var(--ink); text-decoration: none; font-size: .95rem; }
.admin-menu-panel a:hover, .admin-menu-panel .link-button:hover, .admin-menu-panel a[aria-current="page"] { background: var(--mist); }
.admin-menu-panel form { margin: 0; }
.admin-local-note { margin: 0; background: #fff3cd; color: #6b4e00; text-align: center; font-size: .88rem; padding: .4rem 1rem; }
.admin-nav svg { flex: none; }
@media (max-width: 52rem) {
    .admin-nav { order: 3; flex-basis: 100%; margin: 0 -.25rem; }
    .admin-user, .admin-menu summary::after { display: none; }
    .admin-view-site { font-size: 0; }
    .admin-view-site span { font-size: 1.15rem; }
}
@media (max-width: 30rem) { .admin-brand small { display: none; } }
.admin-main { padding: 2.5rem 0 4rem; }
.admin-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.admin-head h1 { font-size: 2rem; margin: 0; }
.admin-login { max-width: 24rem; margin: 3rem auto; background: #fff; padding: 2rem; border-radius: var(--radius); }
.admin-login h1 { font-size: 1.8rem; margin-top: 1.25rem; }
.admin-card { background: #fff; padding: 1.5rem; border-radius: var(--radius); }
.admin-split { display: grid; gap: 2rem; }
@media (min-width: 56rem) { .admin-split { grid-template-columns: 1.6fr 1fr; } }
.flash { background: #e6f4ec; color: var(--ok); border-left: 4px solid var(--ok); padding: .75rem 1rem; border-radius: var(--radius); }
.filter-tabs { display: flex; flex-wrap: wrap; gap: .4rem; }
.filter-tabs a { padding: .35rem .8rem; border-radius: 999px; background: #fff; text-decoration: none; color: var(--ink); font-size: .92rem; }
.filter-tabs a[aria-current="page"] { background: var(--ink); color: #fff; }
.empty { background: #fff; padding: 1.5rem; border-radius: var(--radius); color: var(--muted); }
.table-wrap { overflow-x: auto; background: #fff; border-radius: var(--radius); }
.admin-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.admin-table th, .admin-table td { text-align: left; padding: .75rem 1rem; border-bottom: 1px solid var(--mist); white-space: nowrap; }
.admin-table th { font-weight: 600; color: var(--muted); font-size: .85rem; }
.status { display: inline-block; padding: .1rem .55rem; border-radius: 999px; font-size: .82rem; font-weight: 600; }
.status-new { background: #fde8eb; color: var(--crimson-dark); }
.status-in_progress { background: #fff3cd; color: #6b4e00; }
.status-closed { background: #e6f4ec; color: var(--ok); }
.detail-list { margin: 0; background: #fff; padding: .5rem 1.5rem; border-radius: var(--radius); }
.detail-list > div { display: grid; gap: .2rem 1rem; padding: .8rem 0; border-bottom: 1px solid var(--mist); }
.detail-list > div:last-child { border-bottom: 0; }
@media (min-width: 40rem) { .detail-list > div { grid-template-columns: 9rem 1fr; } }
.detail-list dt { color: var(--muted); font-size: .9rem; }
.detail-list dd { margin: 0; overflow-wrap: anywhere; }
.pre { white-space: pre-wrap; }
.danger-zone { margin-top: 1.5rem; }

@media print {
    .site-header, .site-footer, .cta-band, .whatsapp-float, .guide-toc, .intro-scroll, .tech-ticker { display: none; }
    .pathway { background: #fff; color: #000; border: 1px solid #999; }
}

/* Admin: site content editor */
.content-form > p { max-width: 46rem; }
.field-error { color: var(--crimson-dark); font-size: .9rem; margin: 0 0 .4rem; }
.field label .status, .field .label .status { margin-left: .4rem; vertical-align: middle; }
.original { margin-top: .5rem; font-size: .9rem; }
.original summary { cursor: pointer; color: var(--muted); }
.original .pre { background: var(--mist); padding: .75rem 1rem; border-radius: var(--radius); margin-top: .4rem; }
.check.restore { margin-top: .5rem; font-size: .92rem; }
.list-rows { display: grid; gap: .8rem; margin-bottom: .8rem; }
.list-row { border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1rem .2rem; }
.list-row-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1rem; margin-bottom: .8rem; }
.list-row-title { font-weight: 600; color: var(--ink); }
.list-row-actions { display: flex; gap: 1rem; font-size: .9rem; }
.btn-small { padding: .45rem .9rem; font-size: .92rem; }

/* Admin: sign-in codes and account security */
.login-hint { margin-top: 1rem; }
.code-input { font-size: 1.5rem !important; letter-spacing: .35em; font-variant-numeric: tabular-nums; max-width: 12rem; }
.recovery-option { margin-top: 1.5rem; border-top: 1px solid var(--line); padding-top: 1rem; }
.recovery-option summary, .security-action summary { cursor: pointer; font-weight: 600; color: var(--ink-2); }
.recovery-option form { margin-top: 1rem; }
.setup-steps { margin-top: 1.5rem; }
.qr-box { display: inline-block; background: #fff; padding: .75rem; border: 1px solid var(--line); border-radius: var(--radius); line-height: 0; }
.qr-box svg { width: 200px; height: 200px; }
.secret-key, .recovery-codes { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; }
.secret-key { font-size: 1.05rem; letter-spacing: .05em; background: var(--mist); padding: .5rem .75rem; border-radius: var(--radius); display: inline-block; word-break: break-all; }
.recovery-card { max-width: 40rem; }
.recovery-codes { list-style: none; padding: 1rem; margin: 1.25rem 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: .6rem 1.5rem; background: var(--mist); border-radius: var(--radius); font-size: 1.1rem; }
.security-section + .security-section { margin-top: 1.5rem; }
.security-section h2 { font-size: 1.4rem; display: flex; align-items: center; gap: .6rem; }
.security-action { border-top: 1px solid var(--line); padding: 1rem 0 0; margin-top: 1rem; }
.security-action form { margin-top: 1rem; }
.event-warning td { color: var(--crimson-dark); }
.h3 { font-size: 1.2rem; }

/* Quote: attaching a PDF after confirming the email address */
.attach-later { margin-top: -.25rem; }
.attach-offer { margin-bottom: 2rem; }
.attach-offer p:last-child { margin-top: .9rem; }
.attach-steps { margin: 1rem 0 2rem; }
.attach-steps > li { padding-bottom: 2.25rem; }
.attach-steps > li.is-done::before { content: "✓"; background: var(--ok); }
.attach-steps .form { margin-top: 1rem; }
.resend { margin-top: .9rem; font-size: .95rem; }

/* Chat assistant: a button above the WhatsApp button that opens a small chat panel. */
.chatbot { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 50; }
.chatbot-stacked { bottom: calc(1.25rem + 3.4rem + .75rem); }
.chatbot-toggle {
    width: 3.6rem; height: 3.6rem; border-radius: 50%; border: 2px solid var(--crimson); cursor: pointer; padding: 0;
    display: grid; place-items: center;
    background: #fff; color: var(--ink); box-shadow: 0 6px 18px rgba(0, 0, 0, .2);
    transition: transform .2s, box-shadow .2s;
}
.chatbot-toggle:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0, 0, 0, .25); }
.chatbot.is-open .chatbot-toggle { background: var(--crimson); color: #fff; }
/* The company mark with a green "online" dot, on the launcher and in the panel header. */
.chatbot-avatar { position: relative; display: grid; place-items: center; line-height: 0; }
.chatbot-avatar img { width: 2.5rem; height: 2.5rem; border-radius: 50%; object-fit: contain; }
.chatbot-avatar-small { flex: none; padding: .3rem; border-radius: 50%; background: #fff; }
.chatbot-avatar-small img { width: 1.9rem; height: 1.9rem; }
.chatbot-online { position: absolute; right: -.1rem; bottom: -.05rem; width: .7rem; height: .7rem; border-radius: 50%; background: #22c55e; border: 2px solid #fff; }
.chatbot-head-text { flex: 1; min-width: 0; }
.chatbot-toggle:focus-visible, .chatbot-close:focus-visible { outline: 3px solid rgba(196, 30, 58, .35); outline-offset: 2px; }
.chatbot-icon-close, .chatbot.is-open .chatbot-icon-open { display: none; }
.chatbot.is-open .chatbot-icon-close { display: block; }
.chatbot-panel {
    position: absolute; right: 0; bottom: calc(100% + .75rem);
    width: min(24rem, calc(100vw - 2.5rem)); height: min(34rem, calc(100vh - 9rem));
    display: flex; flex-direction: column;
    background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, .22); overflow: hidden;
}
.chatbot-head { display: flex; justify-content: space-between; align-items: center; gap: .75rem; padding: .9rem 1rem; background: var(--band); color: #fff; }
.chatbot-title { font: 600 1.05rem/1.3 var(--font); color: #fff; margin: 0; letter-spacing: 0; }
.chatbot-sub { margin: .1rem 0 0; font-size: .85rem; color: #b9c7dd; }
.chatbot-close { background: none; border: 0; color: #dbe4f2; cursor: pointer; padding: .15rem; border-radius: var(--radius); line-height: 0; }
.chatbot-close:hover { color: #fff; }
.chatbot-log { flex: 1; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: .7rem; font-size: .95rem; }
.chatbot-msg { max-width: 88%; padding: .6rem .85rem; border-radius: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.chatbot-msg p, .chatbot-answer > * { margin: 0 0 .5rem; }
.chatbot-msg p:last-child, .chatbot-answer > :last-child { margin-bottom: 0; }
.chatbot-answer ul, .chatbot-answer ol { padding-left: 1.2rem; }
.chatbot-msg-bot { align-self: flex-start; background: var(--mist); color: var(--text); border-bottom-left-radius: 4px; }
.chatbot-msg-user { align-self: flex-end; background: var(--ink-2); color: var(--paper); border-bottom-right-radius: 4px; }
.chatbot-more { display: inline-block; margin-top: .5rem; font-weight: 600; color: var(--crimson-text); }
.chatbot-choices { display: flex; flex-direction: column; align-items: flex-start; gap: .4rem; }
.chatbot-choice {
    font: inherit; font-size: .9rem; text-align: left; cursor: pointer;
    padding: .45rem .8rem; border-radius: 999px;
    background: var(--surface); color: var(--ink-2); border: 1px solid var(--input-border);
}
.chatbot-choice:hover:not(:disabled) { border-color: var(--crimson); color: var(--crimson-text); }
.chatbot-choice:disabled { opacity: .55; cursor: default; }
.chatbot-actions { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .6rem; }
.chatbot-feedback { display: flex; align-items: center; gap: .35rem; margin-top: .6rem; font-size: .85rem; color: var(--muted); }
.chatbot-rate { background: none; border: 1px solid var(--line); border-radius: 999px; padding: .1rem .5rem; cursor: pointer; font-size: .95rem; }
.chatbot-rate:hover { border-color: var(--input-border); background: var(--surface); }
.chatbot-typing { display: flex; gap: .3rem; padding: .85rem 1rem; }
.chatbot-typing span { width: .45rem; height: .45rem; border-radius: 50%; background: var(--muted); opacity: .4; }
@media (prefers-reduced-motion: no-preference) {
    .chatbot-typing span { animation: chatbot-dot 1.2s infinite; }
    .chatbot-typing span:nth-child(2) { animation-delay: .2s; }
    .chatbot-typing span:nth-child(3) { animation-delay: .4s; }
    @keyframes chatbot-dot { 30% { opacity: 1; transform: translateY(-3px); } }
}
.chatbot-form { display: flex; gap: .5rem; padding: .75rem; border-top: 1px solid var(--line); }
.chatbot-form input[type="text"] {
    flex: 1; min-width: 0; font: inherit; font-size: .95rem; color: var(--text);
    padding: .6rem .75rem; border: 1px solid var(--input-border); border-radius: var(--radius); background: var(--paper);
}
.chatbot-form input:focus { outline: 3px solid rgba(196, 30, 58, .25); border-color: var(--crimson); }
.chatbot-send { border: 0; border-radius: var(--radius); padding: 0 .8rem; background: var(--crimson); color: #fff; cursor: pointer; line-height: 0; }
.chatbot-send:hover { background: var(--crimson-dark); }
.chatbot-note { margin: 0; padding: 0 .9rem .6rem; font-size: .78rem; color: var(--muted); }
/* Phones: the open chat fills the screen. */
@media (max-width: 30rem) {
    .chatbot.is-open .chatbot-panel { position: fixed; inset: 0; width: auto; height: auto; border-radius: 0; border: 0; }
    .chatbot.is-open .chatbot-toggle { display: none; }
}
@media print { .chatbot { display: none; } }

/* Admin: chatbot */
.chatbot-state { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin: -.5rem 0 1.5rem; }
.admin-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.admin-toolbar p { margin: 0; }
.search-form { display: flex; align-items: center; gap: .5rem; flex: 1 1 20rem; max-width: 32rem; }
.search-form input { flex: 1; min-width: 0; font: inherit; padding: .45rem .7rem; border: 1px solid var(--input-border); border-radius: var(--radius); }
.admin-table td.wrap-cell { white-space: normal; min-width: 14rem; }
.muted { color: var(--muted); }
.empty .form-actions { margin-top: 1rem; }

/* Quote form: quote or question */
.choice-cards { display: grid; gap: .75rem; }
@media (min-width: 34rem) { .choice-cards { grid-template-columns: 1fr 1fr; } }
.choice-card {
    display: flex; gap: .75rem; align-items: flex-start; cursor: pointer;
    padding: 1rem 1.1rem; border: 1px solid var(--input-border); border-radius: var(--radius); background: var(--surface);
    transition: border-color .15s, box-shadow .15s;
}
.choice-card:hover { border-color: var(--ink-2); }
.choice-card:has(input:checked) { border-color: var(--crimson); box-shadow: inset 0 0 0 1px var(--crimson); }
.choice-card input { width: 1.15rem; height: 1.15rem; margin: .2rem 0 0; accent-color: var(--crimson); flex-shrink: 0; }
.choice-card strong { display: block; color: var(--ink); }
.choice-card span span { display: block; font-size: .92rem; color: var(--muted); margin-top: .15rem; }
