:root {
    --ink: #10222B;
    --brand: #0062AD;
    --brand-bright: #1E82C8;
    --accent: #D31820;
    --surface: #F6F9F8;
    --tint: #E1EDF6;
    --line: #DCE5E3;
    --muted: #5C6E72;
    --released: #2FA36B;
    --ready: #1E82C8;
    --processing: #C8912B;
    --awaiting: #C8912B;
    --radius: 14px;
    --maxw: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    position: relative;
    min-height: 100%;
}

body {
    margin: 0;
    font-family: 'Inter', system-ui, sans-serif;
    color: var(--ink);
    background: var(--surface);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    min-height: 100%;
}

h1, h2, h3, .display {
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: -0.02em;
    line-height: 1.06;
}

a {
    color: inherit;
    text-decoration: none;
}

.wrap {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 24px;
}

.eyebrow {
    font-family: 'Space Grotesk', sans-serif;
    display: inline-block;
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--brand);
}

.btn {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: .9rem;
    padding: 11px 20px;
    border-radius: 10px;
    border: 1px solid var(--ink);
    background: var(--ink);
    color: #fff;
    cursor: pointer;
    transition: transform .15s, box-shadow .15s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px -8px rgba(16, 34, 43, .5);
    color: #fff;
}

.btn.ghost {
    background: transparent;
    color: var(--ink);
    border-color: var(--ink);
}

.btn.ghost:hover {
    background: var(--ink);
    color: #fff;
    box-shadow: none;
}

.btn.brand {
    background: var(--brand);
    border-color: var(--brand);
}

.btn.brand:hover {
    box-shadow: 0 8px 20px -8px rgba(0, 98, 173, .6);
    color: #fff;
}

.btn.sm {
    padding: 7px 13px;
    font-size: .8rem;
}

.btn.w-100 {
    width: 100%;
    justify-content: center;
}

/* ---------- logo ---------- */
.logo {
    display: inline-flex;
    align-items: center;
    gap: 11px;
}

.logo svg, .logo img {
    width: 38px;
    height: 38px;
    flex: none;
    object-fit: cover;
    border-radius: 8px;
}

.logo .logo-full {
    width: auto;
    height: 56px;
    object-fit: contain;
    border-radius: 0;
}

.logo-wm {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: -0.01em;
    line-height: 1;
    color: var(--ink);
}

.logo-wm small {
    display: block;
    font-weight: 500;
    font-size: .6rem;
    letter-spacing: .16em;
    color: var(--muted);
    margin-top: 3px;
}

.logo-wm.rev {
    color: #fff;
    font-size: .88rem;
    line-height: 1.2;
}

.logo-wm.rev small {
    color: #9fb6b3;
}

/* ---------- site nav ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(246, 249, 248, .85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}

nav.site {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.logo-link {
    display: flex;
    align-items: center;
}

.navlinks {
    display: flex;
    gap: 30px;
    font-size: .92rem;
    font-weight: 500;
    color: var(--muted);
}

.navlinks a:hover {
    color: var(--ink);
}

.navlinks a.on {
    color: var(--brand);
}

.navlinks form {
    display: inline;
}

.navlinks .btn-link {
    border: 0;
    background: transparent;
    font: inherit;
    color: var(--muted);
    cursor: pointer;
    padding: 0;
}

.navlinks .btn-link:hover {
    color: var(--ink);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 8px;
    cursor: pointer;
}

.nav-toggle svg {
    width: 22px;
    height: 22px;
    stroke: var(--ink);
}

@media (max-width: 820px) {
    .nav-toggle {
        display: inline-flex;
    }

    .navlinks {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        background: #fff;
        border-bottom: 1px solid var(--line);
        padding: 4px 24px 12px;
    }

    .navlinks.open {
        display: flex;
    }

    .navlinks a,
    .navlinks .btn-link {
        width: 100%;
        padding: 14px 0;
        border-bottom: 1px solid var(--line);
    }

    .navlinks > *:last-child,
    .navlinks > *:last-child .btn-link {
        border-bottom: none;
    }
}

/* ---------- hero ---------- */
.hero {
    position: relative;
    padding: 40px 0 18px;
    overflow: hidden;
    background: var(--surface);
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    right: auto;
    bottom: 0;
    width: calc(50% + (var(--maxw) / 2));
    height: 100%;
    object-fit: cover;
    background: var(--surface);
    z-index: 0;
}

.hero-video-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(100deg,
        var(--surface) 0%,
        var(--surface) 34%,
        rgba(246, 249, 248, .65) 48%,
        rgba(246, 249, 248, .22) 100%);
}

.hero > .wrap {
    position: relative;
    z-index: 2;
}

@media (max-width: 900px) {
    .hero-video, .hero-video-overlay {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-video {
        display: none;
    }
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    max-width: 640px;
}

.hero h1 {
    font-size: clamp(2rem, 4vw, 3.1rem);
    font-weight: 700;
    margin: 12px 0 14px;
    color: var(--brand);
}

.hero .lead {
    font-size: 1.05rem;
    color: var(--accent);
    max-width: 36ch;
    margin-bottom: 18px;
}

.hero-cta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.trust {
    display: flex;
    gap: 26px;
    margin-top: 18px;
    flex-wrap: wrap;
}

.trust .n {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
}

.trust .l {
    font-size: .78rem;
    color: var(--muted);
}

.result-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: 0 30px 60px -30px rgba(16, 34, 43, .28);
}

.rc-top {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid var(--line);
    padding-bottom: 13px;
    margin-bottom: 13px;
}

.rc-ref {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: .92rem;
}

.rc-ref span {
    display: block;
    font-size: .7rem;
    color: var(--muted);
    font-weight: 500;
    margin-top: 2px;
}

.rc-animal {
    text-align: right;
    font-size: .8rem;
    color: var(--muted);
}

.rc-animal b {
    display: block;
    color: var(--ink);
    font-size: .92rem;
    font-family: 'Space Grotesk', sans-serif;
}

.steps {
    display: flex;
    margin: 18px 0 6px;
}

.step {
    flex: 1;
    text-align: center;
    position: relative;
}

.dot {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: var(--line);
    margin: 0 auto 8px;
    transition: .4s;
    position: relative;
    z-index: 2;
}

.step .lbl {
    font-size: .7rem;
    color: var(--muted);
    font-weight: 600;
    font-family: 'Space Grotesk', sans-serif;
    transition: .4s;
}

.bar {
    position: absolute;
    top: 7px;
    left: -50%;
    width: 100%;
    height: 2px;
    background: var(--line);
    z-index: 1;
    transition: .4s;
}

.step:first-child .bar {
    display: none;
}

.step.done .dot {
    background: var(--released);
}

.step.done .bar {
    background: var(--released);
}

.step.done .lbl {
    color: var(--ink);
}

.step.active .dot {
    background: var(--brand-bright);
    box-shadow: 0 0 0 5px rgba(30, 130, 200, .22);
}

.step.active .lbl {
    color: var(--ink);
}

.rc-status {
    margin-top: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--surface);
    border-radius: 10px;
    padding: 11px 14px;
}

.pill {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: .8rem;
    padding: 5px 12px;
    border-radius: 100px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.pill:before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
}

.pill.processing {
    color: var(--processing);
    background: rgba(200, 145, 43, .14);
}

.pill.ready {
    color: var(--ready);
    background: rgba(30, 130, 200, .14);
}

.pill.released {
    color: var(--released);
    background: rgba(47, 163, 107, .14);
}

.rc-status .rc-view-txt {
    font-size: .8rem;
    font-weight: 600;
    font-family: 'Space Grotesk', sans-serif;
    color: var(--muted);
}

.rc-status.is-released .rc-view-txt {
    color: var(--brand);
}

.strip {
    position: relative;
    z-index: 2;
    max-width: calc(var(--maxw) + 2px);
    margin: 0 auto;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 14px 0;
    background: var(--surface);
    overflow: hidden;
}

.strip-track {
    display: flex;
    width: max-content;
    gap: 46px;
    font-size: .8rem;
    color: var(--muted);
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: .03em;
    animation: strip-scroll 32s linear infinite;
}

.strip-track span {
    white-space: nowrap;
}

.strip:hover .strip-track {
    animation-play-state: paused;
}

@keyframes strip-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
    .strip-track {
        animation: none;
    }
}

section {
    padding: 74px 0;
}

.sec-head {
    max-width: 54ch;
    margin-bottom: 38px;
}

.sec-head h2 {
    font-size: clamp(1.8rem, 3.4vw, 2.4rem);
    font-weight: 700;
    margin: 12px 0;
}

.sec-head p {
    color: var(--muted);
    font-size: 1.04rem;
}

.sec-head-wide {
    max-width: none;
}

.sec-head h2.text-brand {
    color: var(--brand);
}

.sec-head .sec-subhead {
    color: var(--accent);
    font-weight: 600;
    font-size: 1.08rem;
    margin: 0 0 10px;
}

.sec-head .sec-tagline {
    color: var(--ink);
    font-weight: 400;
    font-size: 1rem;
    margin: 0;
}

/* ---------- facility photo gallery (homepage, "What Sets Us Apart") ---------- */
.facility-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

@media (max-width: 820px) {
    .facility-gallery {
        grid-template-columns: 1fr;
    }
}

.facility-card {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 3 / 4;
    background: var(--tint);
}

.facility-card img,
.facility-card video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.facility-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 98, 173, .82);
    color: #fff;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: .95rem;
    text-align: center;
    padding: 10px 12px;
}

.about-columns {
    column-count: 1;
}

.about-columns p {
    color: var(--muted);
    font-size: 1.04rem;
    margin: 0 0 18px;
}

@media (max-width: 820px) {
    .about-columns {
        column-count: 1;
    }
}

.about-photo {
    float: right;
    width: 49.5%;
    margin: 6px 0 16px 28px;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 10px 26px rgba(16, 34, 43, .16);
}

.about-photo img {
    width: 100%;
    display: block;
}

@media (max-width: 820px) {
    .about-photo {
        float: none;
        width: 100%;
        margin: 0 0 20px;
    }
}

/* ---------- service icons (homepage, below hero) ---------- */
.service-icons-section {
    padding-top: 36px;
    padding-bottom: 40px;
}

.service-icons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

@media (max-width: 900px) {
    .service-icons {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 520px) {
    .service-icons {
        grid-template-columns: 1fr;
    }
}

.service-icon-item {
    display: block;
    text-align: center;
    text-decoration: none;
}

.service-icon-box {
    border: 2px solid transparent;
    border-radius: 18px;
    background:
        linear-gradient(#fff, #fff) padding-box,
        linear-gradient(135deg, var(--brand), var(--accent)) border-box;
    padding: 20px 16px 16px;
    transition: transform .2s;
}

.service-icon-item:hover .service-icon-box {
    transform: translateY(-4px);
}

.service-icon-box svg {
    width: 34px;
    height: 34px;
    stroke: var(--brand);
    fill: none;
    stroke-width: 1.6;
    margin: 0 auto 10px;
    display: block;
}

.service-icon-box span {
    display: block;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    color: var(--brand);
}

.service-icon-item p {
    margin: 10px 4px 0;
    font-size: .8rem;
    line-height: 1.4;
    color: var(--muted);
}

/* ---------- 3-column info cards (homepage) ---------- */
.info-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

@media (max-width: 900px) {
    .info-columns {
        grid-template-columns: 1fr;
    }
}

.info-col {
    display: block;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 26px;
    transition: transform .2s, border-color .2s;
}

a.info-col:hover {
    transform: translateY(-4px);
    border-color: var(--brand);
}

.info-desc {
    margin: 0;
    color: var(--muted);
    font-size: .89rem;
    line-height: 1.6;
}

.info-col-ic {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--tint);
    display: grid;
    place-items: center;
    margin-bottom: 14px;
}

.info-col-ic svg {
    width: 23px;
    height: 23px;
    stroke: var(--brand);
    fill: none;
    stroke-width: 2;
}

.info-col .eyebrow {
    font-size: .68rem;
}

.info-col h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin: 8px 0 14px;
}

.info-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    padding: 0;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: .84rem;
    color: var(--brand);
    cursor: pointer;
}

.info-toggle svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    transition: transform .3s;
}

.info-toggle[aria-expanded="true"] svg {
    transform: rotate(180deg);
}

.info-body {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    margin-top: 0;
    transition: max-height .35s ease, opacity .3s ease, margin-top .3s ease;
}

.info-body.open {
    opacity: 1;
    margin-top: 14px;
}

.info-body-static {
    margin-top: 14px;
}

.info-body p,
.info-body-static p {
    margin: 0;
    color: var(--muted);
    font-size: .89rem;
    line-height: 1.6;
}

.info-body ul,
.info-body-static ul {
    margin: 0;
    padding-left: 18px;
    color: var(--muted);
    font-size: .89rem;
    line-height: 1.5;
    display: grid;
    gap: 8px;
}

.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

@media (max-width: 820px) {
    .cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 520px) {
    .cards {
        grid-template-columns: 1fr;
    }
}

.card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 22px;
    transition: transform .2s, border-color .2s;
}

.card:hover {
    transform: translateY(-4px);
    border-color: var(--brand);
}

.card .ic {
    width: 42px;
    height: 42px;
    border-radius: 11px;
    background: var(--tint);
    display: grid;
    place-items: center;
    margin-bottom: 14px;
}

.card .ic svg {
    width: 22px;
    height: 22px;
    stroke: var(--brand);
    fill: none;
    stroke-width: 2;
}

.card h3 {
    font-size: 1.02rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.card p {
    font-size: .86rem;
    color: var(--muted);
    margin: 0;
}

/* ---------- media band ---------- */
.media {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 20px;
    align-items: stretch;
}

@media (max-width: 820px) {
    .media {
        grid-template-columns: 1fr;
    }
}

.media .stack {
    display: grid;
    grid-template-rows: repeat(3, 200px);
    gap: 20px;
}

.ph {
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    background: var(--tint);
    min-height: 150px;
    transition: transform .3s ease, box-shadow .3s ease;
}

.ph.big {
    height: 640px;
}

@media (max-width: 820px) {
    .ph.big {
        height: 260px;
    }

    .media .stack {
        grid-template-rows: repeat(3, 150px);
    }
}

.ph img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ph.kb img {
    animation: kenburns 22s ease-in-out infinite alternate;
    will-change: transform;
}

.ph:after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 52%, rgba(16, 34, 43, .6));
    pointer-events: none;
}

.ph .cap {
    position: absolute;
    left: 16px;
    bottom: 14px;
    z-index: 2;
    color: #fff;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: .92rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, .6);
}

.ph .tagph {
    position: absolute;
    left: 12px;
    top: 12px;
    z-index: 2;
    background: rgba(16, 34, 43, .72);
    color: #fff;
    font-size: .64rem;
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: .08em;
    padding: 4px 8px;
    border-radius: 6px;
}

@keyframes kenburns {
    from { transform: scale(1) translate(0, 0); }
    to { transform: scale(1.14) translate(-2%, -3%); }
}

/* ---------- service detail photo gallery: "Mosaic Reveal" ---------- */
.svc-gallery-frame {
    margin: 28px 0;
}

.svc-gallery-label {
    display: block;
    margin: 0 0 14px;
}

/* Used when a service also has its own MainImagePath hero photo — the gallery below is a
   supporting strip, not the mosaic centerpiece, so it's a single even row (any photo count)
   instead of the Col/Row masonry grid. */
.svc-gallery.svc-gallery-compact {
    display: flex;
    justify-content: center;
    gap: 18px;
    grid-auto-rows: unset;
}

.svc-gallery-compact .svc-gallery-item {
    flex: 1 1 0;
    max-width: 220px;
    aspect-ratio: 4 / 3;
}

@media (max-width: 700px) {
    .svc-gallery-compact {
        flex-wrap: wrap;
    }

    .svc-gallery-compact .svc-gallery-item {
        flex: 1 1 45%;
    }
}

/* 8 columns / 45px rows, doubled from the original 4-col/90px grid — the
   *same* GalleryPhoto Col/Row numbers in ServiceCatalog.cs now cover half
   the column/row fraction they used to (e.g. col2 of 8 vs. col2 of 4), so
   every tile renders at half its previous size while keeping the exact same
   aspect ratio and gap-free row-band packing. Don't rescale the Col/Row
   values themselves — that would cancel this out. */
.svc-gallery {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    grid-auto-rows: 45px;
    grid-auto-flow: dense;
    gap: 14px;
}

@media (max-width: 900px) {
    .svc-gallery {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Desktop spans (up to col8) would otherwise overflow this 2-column
       grid — clamp every tile to full width here instead. */
    .svc-gallery-item {
        grid-column: span 2 !important;
    }
}

@media (max-width: 560px) {
    .svc-gallery {
        grid-template-columns: 1fr;
    }

    .svc-gallery-item {
        grid-column: span 1 !important;
    }
}

/* Column/row spans are set inline per photo (Views/Services/Details.cshtml),
   computed from each image's real pixel dimensions — see GalleryPhoto. */
.svc-gallery-item {
    position: relative;
    margin: 0;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--tint);
    box-shadow: 0 1px 3px rgba(16, 34, 43, .12), 0 1px 1px rgba(16, 34, 43, .06);
    outline: none;
}

/* Rise-in on scroll, via the shared .io-reveal observer (site.js). Compound
   selector so this reliably beats the generic .io-reveal starting transform
   regardless of stylesheet order; .io-reveal.in still supplies the resolved
   (transform:none) end state generically. */
.svc-gallery-item.io-reveal {
    transform: translateY(28px) scale(.94);
    transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .7s cubic-bezier(.2, .7, .2, 1);
}

.svc-gallery-item img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    /* Each tile's own aspect ratio (via its Col/Row span) already matches this
       photo's real proportions, so cover fills edge-to-edge without the
       aggressive cropping a mismatched box would force. */
    object-fit: cover;
    display: block;
    transition: transform .6s cubic-bezier(.2, .7, .2, 1);
}

.svc-gallery-item:hover img,
.svc-gallery-item:focus-visible img {
    transform: scale(1.09);
}

.svc-gallery-item::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    border-radius: inherit;
    box-shadow: inset 0 0 0 3px var(--accent);
    opacity: 0;
    transition: opacity .35s ease;
    pointer-events: none;
}

.svc-gallery-item.acc-blue::after {
    box-shadow: inset 0 0 0 3px var(--brand);
}

.svc-gallery-item:hover::after,
.svc-gallery-item:focus-visible::after {
    opacity: 1;
}

.svc-gallery-item:focus-visible {
    box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--brand);
}

.svc-gallery-dot {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 3;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--accent);
    animation: svc-dot-pulse 2.4s ease-in-out infinite;
}

.svc-gallery-item.acc-blue .svc-gallery-dot {
    background: var(--brand);
}

.svc-gallery-item.acc-red .svc-gallery-dot {
    --dot-glow: rgba(211, 24, 32, .45);
}

.svc-gallery-item.acc-blue .svc-gallery-dot {
    --dot-glow: rgba(0, 98, 173, .45);
}

@keyframes svc-dot-pulse {
    0%, 100% { box-shadow: 0 0 0 0 var(--dot-glow, rgba(211, 24, 32, .45)); opacity: .9; }
    50% { box-shadow: 0 0 0 6px transparent; opacity: 1; }
}

.svc-gallery-single {
    position: relative;
    max-width: 380px;
    margin: 28px 0;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--tint);
}

.svc-gallery-single img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    display: block;
    box-shadow: 0 10px 26px rgba(16, 34, 43, .16);
    transition: transform .6s cubic-bezier(.2, .7, .2, 1), box-shadow .35s ease;
}

.svc-gallery-single::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: inset 0 0 0 3px var(--accent);
    opacity: 0;
    transition: opacity .35s ease;
    pointer-events: none;
}

.svc-gallery-single:hover img {
    transform: scale(1.09);
    box-shadow: 0 20px 40px rgba(16, 34, 43, .26);
}

.svc-gallery-single:hover::after {
    opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
    .svc-gallery-dot {
        animation: none;
    }
}

/* ---------- instrument carousel ("mc" = machine card) ---------- */
.mc-strip {
    overflow: hidden;
    padding: 4px 0;
}

.mc-strip-track {
    display: flex;
    width: max-content;
    gap: 20px;
    animation: mc-strip-scroll 36s linear infinite;
}

.mc-strip-item {
    flex: none;
    width: 96px;
    height: 96px;
    border-radius: 16px;
    background: var(--tint);
    padding: 12px;
    cursor: pointer;
    transition: transform .2s, box-shadow .2s;
}

.mc-strip-item:hover, .mc-strip-item:focus-visible {
    transform: translateY(-4px);
    box-shadow: 0 12px 26px rgba(16, 34, 43, .16);
    outline: none;
}

.mc-strip-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.mc-strip:hover .mc-strip-track {
    animation-play-state: paused;
}

@keyframes mc-strip-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
    .mc-strip-track {
        animation: none;
    }
}

.mc-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(16, 34, 43, .82);
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.mc-lightbox.open {
    display: flex;
}

.mc-lightbox img {
    max-width: min(880px, 100%);
    max-height: 82vh;
    object-fit: contain;
    border-radius: 12px;
    background: #fff;
    padding: 24px;
}

.mc-lightbox-close {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .3);
    background: rgba(255, 255, 255, .08);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background .2s;
}

.mc-lightbox-close:hover, .mc-lightbox-close:focus-visible {
    background: rgba(255, 255, 255, .2);
    outline: none;
}

/* scroll reveal */
.io-reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .7s ease, transform .7s ease;
}

.io-reveal.in {
    opacity: 1;
    transform: none;
}

/* Comes after .io-reveal.in so hover wins the transform tie once revealed. */
.ph:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px rgba(16, 34, 43, .18);
}

.reveal {
    opacity: 0;
    transform: translateY(16px);
    animation: rise .7s ease forwards;
}

.reveal.d1 { animation-delay: .08s; }
.reveal.d2 { animation-delay: .16s; }
.reveal.d3 { animation-delay: .24s; }

@keyframes rise {
    to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto;
    }
    .io-reveal {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* ---------- how it works ---------- */
.how {
    background: #2E3092;
    color: #fff;
    border-radius: 26px;
    padding: 54px 44px;
}

.how .btn.brand {
    background: #fff;
    border-color: #fff;
    color: #2E3092;
}

.how .btn.brand:hover {
    color: #2E3092;
}

.how .eyebrow {
    color: var(--accent);
}

.how h2 {
    color: #fff;
    font-size: clamp(1.8rem, 3.4vw, 2.4rem);
    margin: 12px 0 38px;
}

.how-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

@media (max-width: 820px) {
    .how-steps {
        grid-template-columns: 1fr;
    }
}

.how-step .num {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 2.4rem;
    color: transparent;
    -webkit-text-stroke: 1.4px rgba(255, 255, 255, .4);
    line-height: 1;
}

.how-step h3 {
    color: #fff;
    font-size: 1.12rem;
    margin: 12px 0 7px;
}

.how-step p {
    color: rgba(255, 255, 255, .68);
    font-size: .9rem;
    margin: 0;
}

/* ---------- footer ---------- */
.site-footer {
    border-top: 1px solid var(--line);
    margin-top: 10px;
    padding: 48px 0 0;
    color: var(--muted);
    font-size: .85rem;
    background: transparent;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1.3fr 1.2fr;
    gap: 32px;
    padding-bottom: 36px;
}

@media (max-width: 900px) {
    .footer-top {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 560px) {
    .footer-top {
        grid-template-columns: 1fr;
    }
}

.footer-brand p {
    margin: 14px 0 0;
    max-width: 34ch;
    line-height: 1.6;
}

.footer-col h4 {
    font-family: 'Space Grotesk', sans-serif;
    color: var(--ink);
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    margin: 0 0 14px;
}

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-nav a {
    color: var(--muted);
}

.footer-nav a:hover {
    color: var(--brand);
}

.footer-contact {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.5;
}

.footer-contact svg {
    flex: none;
    width: 16px;
    height: 16px;
    margin-top: 2px;
    stroke: var(--brand);
    fill: none;
    stroke-width: 1.8;
}

.footer-contact a {
    color: var(--muted);
}

.footer-contact a:hover {
    color: var(--brand);
}

.footer-map {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--line);
    aspect-ratio: 4 / 3;
}

.footer-map iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    padding: 20px 0 24px;
    border-top: 1px solid var(--line);
}

.foot-links a {
    color: var(--brand);
}

.foot-links a:hover {
    text-decoration: underline;
}

.mx-2 {
    margin: 0 8px;
}

/* ---------- generic form fields (login / contact / admin) ---------- */
.field {
    margin-bottom: 14px;
}

.field label {
    display: block;
    font-size: .76rem;
    font-weight: 600;
    font-family: 'Space Grotesk', sans-serif;
    margin-bottom: 6px;
    color: var(--muted);
}

.field input, .field select, .field textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 9px;
    padding: 11px 13px;
    font-family: inherit;
    font-size: .92rem;
    background: var(--surface);
}

.field input:focus, .field select:focus, .field textarea:focus {
    outline: 2px solid rgba(0, 98, 173, .4);
    border-color: var(--brand);
}

.pw-wrap {
    position: relative;
}

.pw-wrap input {
    padding-right: 42px;
}

.pw-toggle {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 6px;
    display: flex;
    cursor: pointer;
    color: var(--muted);
    border-radius: 6px;
}

.pw-toggle:hover {
    color: var(--brand);
}

.pw-toggle svg {
    width: 18px;
    height: 18px;
}

.field .form-check-input {
    width: auto;
}

.text-danger {
    color: #C0392B;
    font-size: .8rem;
}

.alert-success {
    background: rgba(47, 163, 107, .12);
    color: var(--released);
    border-radius: 10px;
    padding: 12px 16px;
    margin-bottom: 20px;
    font-size: .9rem;
    font-weight: 600;
}

.alert-error {
    background: rgba(192, 57, 43, .1);
    color: #C0392B;
    border-radius: 10px;
    padding: 12px 16px;
    margin-bottom: 20px;
    font-size: .9rem;
    font-weight: 600;
}

/* ---------- login ---------- */
.portal-shell {
    min-height: 60vh;
    padding: 20px 0 100px;
}

.login-card {
    max-width: 400px;
    margin: 6vh auto 0;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 34px;
    box-shadow: 0 30px 60px -34px rgba(16, 34, 43, .3);
}

.login-card .logo {
    margin-bottom: 22px;
}

.login-card h2 {
    font-size: 1.4rem;
    margin-bottom: 4px;
}

.login-card .sub {
    color: var(--muted);
    font-size: .9rem;
    margin-bottom: 22px;
}

.login-card .note {
    font-size: .75rem;
    color: var(--muted);
    text-align: center;
    margin-top: 14px;
}

/* ---------- client portal ---------- */
.papp-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 0;
    border-bottom: 1px solid var(--line);
    margin-bottom: 8px;
    flex-wrap: wrap;
    gap: 10px;
}

.papp-top .who {
    font-size: .85rem;
    color: var(--muted);
}

.papp-top .who b {
    color: var(--ink);
    font-family: 'Space Grotesk', sans-serif;
}

.papp-top form {
    display: inline;
}

.act {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: .82rem;
    color: var(--brand);
    cursor: pointer;
    background: transparent;
    border: 0;
    display: inline-flex;
    gap: 6px;
    align-items: center;
    padding: 0;
}

.act.disabled {
    color: var(--muted);
    cursor: default;
}

.results-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin: 26px 0 16px;
    gap: 16px;
    flex-wrap: wrap;
}

.results-head h2 {
    font-size: 1.5rem;
    margin: 0;
}

.searchbox {
    display: flex;
    gap: 8px;
    align-items: center;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 9px 12px;
    font-size: .88rem;
    color: var(--muted);
    min-width: 230px;
}

.searchbox input {
    border: 0;
    outline: 0;
    background: transparent;
    font-family: inherit;
    font-size: .88rem;
    width: 100%;
}

table.res {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
}

table.res th {
    text-align: left;
    font-family: 'Space Grotesk', sans-serif;
    font-size: .72rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--muted);
    padding: 14px 16px;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
}

table.res td {
    padding: 15px 16px;
    border-bottom: 1px solid var(--line);
    font-size: .9rem;
    vertical-align: middle;
}

table.res tr:last-child td {
    border-bottom: 0;
}

table.res tr:hover td {
    background: rgba(225, 237, 246, .4);
}

table.res tr.row-high td {
    background: rgba(192, 57, 43, .06);
    color: #C0392B;
}

table.res tr.row-low td {
    background: rgba(0, 98, 173, .06);
    color: #0062AD;
}

.code {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
}

/* ---------- microbiology antibiogram (3-column, matches the source template) ---------- */
.mc-abx-legend {
    font-size: .85rem;
    margin: 0 0 14px;
}

.mc-s {
    color: var(--accent);
}

.mc-i {
    color: var(--brand);
}

.mc-r {
    color: var(--ink);
}

.mc-abx-cols {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

@media (max-width: 1100px) {
    .mc-abx-cols {
        grid-template-columns: 1fr;
    }
}

.mc-abx-table th, .mc-abx-table td {
    padding: 6px 8px;
    font-size: .82rem;
}

.mc-abx-table th {
    text-align: center;
}

.mc-abx-table thead tr:first-child th:first-child {
    text-align: left;
}

.mc-abx-table td:first-child {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 1px;
}

.mc-abx-table td:not(:first-child) {
    text-align: center;
    width: 46px;
}

.mc-abx-select {
    width: 44px;
    padding: 3px 2px;
    text-align: center;
    text-align-last: center;
    font-size: .82rem;
}

.mini-pill {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: .72rem;
    padding: 4px 10px;
    border-radius: 100px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.mini-pill:before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.mini-pill.released {
    color: var(--released);
    background: rgba(47, 163, 107, .13);
}

.mini-pill.awaiting {
    color: var(--processing);
    background: rgba(200, 145, 43, .13);
}

.mini-pill.requested {
    color: var(--brand);
    background: rgba(0, 98, 173, .12);
}

.mini-pill.lab {
    color: var(--muted);
    background: rgba(92, 110, 114, .12);
}

.mini-pill.cancelled {
    color: var(--accent);
    background: rgba(211, 24, 32, .1);
}

/* ---------- lightweight typeahead (searchable select) ---------- */
.typeahead {
    position: relative;
}

.typeahead-input {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 9px;
    padding: 11px 13px;
    font-family: inherit;
    font-size: .92rem;
    background: var(--surface);
}

.typeahead-input:focus {
    outline: 2px solid rgba(0, 98, 173, .4);
    border-color: var(--brand);
}

.typeahead-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    z-index: 20;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
    box-shadow: 0 12px 30px -10px rgba(16, 34, 43, .25);
    max-height: 240px;
    overflow-y: auto;
}

.typeahead-dropdown.open {
    display: block;
}

.typeahead-option {
    padding: 10px 13px;
    font-size: .9rem;
    cursor: pointer;
}

.typeahead-option:hover, .typeahead-option.active {
    background: var(--tint);
}

.typeahead-empty {
    padding: 10px 13px;
    font-size: .85rem;
    color: var(--muted);
}

.typeahead-group-label {
    padding: 8px 13px 4px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: .72rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 600;
    background: var(--surface);
}

.typeahead-option-new {
    border-top: 1px solid var(--line);
    color: var(--brand);
    font-weight: 600;
}

/* ---------- admin ---------- */
.admin-shell {
    display: grid;
    grid-template-columns: 230px 1fr;
    min-height: 100vh;
}

@media (max-width: 820px) {
    .admin-shell {
        grid-template-columns: 1fr;
    }
}

.side {
    background: var(--ink);
    color: #fff;
    padding: 24px 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.side .logo {
    margin: 6px 6px 22px;
}

.side a, .side button.side-link {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 11px 14px;
    border-radius: 10px;
    color: #9fb0b3;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: .9rem;
    cursor: pointer;
    transition: .15s;
    border: 0;
    background: transparent;
    width: 100%;
    text-align: left;
}

.side a svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    flex: none;
}

.side-glyph {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    flex: none;
    font-weight: 700;
    font-size: 1rem;
    line-height: 1;
}

.side a:hover, .side button.side-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, .06);
}

.side a.on {
    color: #fff;
    background: var(--brand);
}

.side .spacer {
    flex: 1;
}

.side .side-group-label {
    font-family: 'Space Grotesk', sans-serif;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #5c6e72;
    padding: 14px 14px 2px;
}

.side .side-group-label:first-child {
    padding-top: 4px;
}

.main {
    padding: 30px 34px;
}

@media (max-width: 520px) {
    .main {
        padding: 22px 18px;
    }
}

.main-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 26px;
    flex-wrap: wrap;
    gap: 12px;
}

.main-head h1 {
    font-size: 1.6rem;
    margin: 0;
}

.grid2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 640px) {
    .grid2 {
        grid-template-columns: 1fr;
    }
}

.panel {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 22px;
}

.panel h3 {
    font-size: 1rem;
    margin-bottom: 16px;
}

/* ---------- result notes thread ---------- */
.notes-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

@media (max-width: 640px) {
    .notes-grid {
        grid-template-columns: 1fr;
    }
}

.note-card {
    height: 160px;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--tint);
    overflow: hidden;
}

.note-card-head {
    flex: none;
    padding: 10px 12px 6px;
    font-weight: 600;
}

.note-card-head .ts {
    font-weight: 400;
    color: var(--muted);
    font-size: .8rem;
    margin-left: 6px;
}

.note-card-body {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 0 12px 12px;
    white-space: pre-wrap;
    font-size: .9rem;
}

/* ---------- accordion (service detail sections) ---------- */

.acc {
    display: grid;
    gap: 10px;
    margin: 28px 0;
}

.acc-item {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
}

.acc-item summary {
    cursor: pointer;
    list-style: none;
    padding: 18px 22px;
    font-weight: 600;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: var(--ink);
}

.acc-item summary::-webkit-details-marker {
    display: none;
}

.acc-item summary::after {
    content: '';
    flex: none;
    width: 9px;
    height: 9px;
    border-right: 2px solid var(--brand);
    border-bottom: 2px solid var(--brand);
    transform: rotate(-45deg);
    transition: transform .2s;
}

.acc-item[open] summary::after {
    transform: rotate(45deg);
}

.acc-item[open] summary {
    border-bottom: 1px solid var(--line);
}

.acc-body {
    padding: 4px 22px 22px;
    color: var(--muted);
    font-size: .95rem;
}

.acc-body p {
    margin: 0 0 12px;
}

.acc-body p:last-child {
    margin-bottom: 0;
}

.acc-body ul {
    margin: 0 0 4px;
    padding-left: 20px;
    display: grid;
    gap: 0;
    line-height: 1.5;
}

.acc-sub {
    margin-top: 18px;
}

.acc-sub:first-child {
    margin-top: 0;
}

.acc-sub h4 {
    font-size: .9rem;
    font-weight: 600;
    color: var(--ink);
    margin: 0 0 8px;
}

.service-hero {
    max-width: none;
}

.service-hero-split {
    display: flex;
    align-items: flex-start;
    gap: 32px;
}

.service-hero-split .svc-gallery-single {
    flex: 0 0 320px;
    max-width: 320px;
    margin: 0;
}

.service-hero-split .service-hero-text {
    flex: 1;
    min-width: 0;
    max-width: 60ch;
}

@media (max-width: 760px) {
    .service-hero-split {
        flex-direction: column;
    }

    .service-hero-split .svc-gallery-single {
        flex-basis: auto;
        max-width: 260px;
    }
}


.drop {
    border: 2px dashed var(--line);
    border-radius: 12px;
    padding: 18px;
    text-align: center;
    color: var(--muted);
    font-size: .88rem;
    background: var(--surface);
    cursor: pointer;
    transition: .15s;
}

.drop svg {
    width: 30px;
    height: 30px;
    stroke: var(--muted);
    fill: none;
    stroke-width: 1.6;
    margin-bottom: 4px;
}

.drop:hover {
    border-color: var(--brand);
    color: var(--brand);
    background: var(--tint);
}

.drop:hover svg {
    stroke: var(--brand);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

@media (max-width: 520px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

.toolbar {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 16px;
    align-items: flex-end;
}

.tab-strip {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--line);
}

.tab-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    font-size: .86rem;
    font-weight: 600;
    color: var(--muted);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
}

.tab-pill:hover {
    color: var(--brand);
}

.tab-pill.active {
    color: var(--brand);
    border-bottom-color: var(--brand);
}

.tab-pill .tab-count {
    background: rgba(0, 98, 173, .12);
    color: var(--brand);
    border-radius: 100px;
    padding: 1px 8px;
    font-size: .75rem;
    font-weight: 700;
}

.tab-pill.active .tab-count {
    background: var(--brand);
    color: #fff;
}

.toolbar select, .toolbar input {
    border: 1px solid var(--line);
    border-radius: 9px;
    padding: 9px 12px;
    font-family: inherit;
    font-size: .86rem;
    background: #fff;
}

.stat-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 22px;
}

@media (max-width: 640px) {
    .stat-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

.stat {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 16px;
}

.stat .n {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.7rem;
}

.stat .l {
    font-size: .76rem;
    color: var(--muted);
}

.clinic-block {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    margin-bottom: 14px;
    overflow: hidden;
}

.clinic-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 15px 18px;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    flex-wrap: wrap;
}

.clinic-head .cn {
    display: flex;
    gap: 12px;
    align-items: center;
}

.av {
    width: 42px;
    height: 42px;
    border-radius: 11px;
    background: var(--tint);
    color: var(--brand);
    display: grid;
    place-items: center;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: .8rem;
    flex: none;
}

.clinic-head h4 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    margin: 0;
}

.clinic-head .sub {
    font-size: .78rem;
    color: var(--muted);
    margin-top: 2px;
}

.client-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 18px 12px 22px;
    border-bottom: 1px solid var(--line);
    gap: 12px;
    flex-wrap: wrap;
}

.client-row:last-child {
    border-bottom: 0;
}

.client-row .cli-n {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: .92rem;
}

.client-row .cli-d {
    font-size: .8rem;
    color: var(--muted);
    margin-top: 2px;
}

/* ---------- Help guide ---------- */
.guide-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 32px;
    align-items: start;
}

@media (max-width: 800px) {
    .guide-layout {
        grid-template-columns: 1fr;
    }
}

.guide-toc {
    position: sticky;
    top: 20px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.guide-toc a {
    color: var(--muted);
    font-size: .9rem;
    padding: 6px 10px;
    border-radius: 8px;
    text-decoration: none;
}

.guide-toc a:hover {
    background: var(--surface);
    color: var(--ink);
}

.guide-toc a.on {
    background: var(--tint);
    color: var(--brand);
    font-weight: 600;
}

.guide-section {
    margin-bottom: 44px;
    padding-top: 8px;
    scroll-margin-top: 20px;
}

.guide-section h2 {
    font-size: 1.25rem;
    margin: 0 0 6px;
}

.guide-section .guide-role {
    display: inline-block;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--brand);
    background: var(--tint);
    padding: 3px 10px;
    border-radius: 999px;
    margin-bottom: 10px;
}

.guide-section p {
    color: var(--muted);
    line-height: 1.6;
}

.guide-section ol, .guide-section ul {
    color: var(--muted);
    line-height: 1.7;
    padding-left: 22px;
}

.guide-shot {
    max-width: 100%;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 2px 10px rgba(16, 34, 43, .06);
    margin: 14px 0;
    display: block;
}

.guide-shot-caption {
    font-size: .8rem;
    color: var(--muted);
    margin: -8px 0 20px;
}
