/* ============================================================
   Frontier Springs Ltd. — Public Website Styles
   ============================================================ */

/* ---------- Self-hosted webfont (no external host: CSP-safe) ----------
   Variable weight 400–800 in a single file per subset. */
@font-face {
    font-family: 'Plus Jakarta Sans';
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url('../fonts/plus-jakarta-sans-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
                   U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
                   U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Plus Jakarta Sans';
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url('../fonts/plus-jakarta-sans-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
                   U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
                   U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
    /* Anchor / text */
    --navy: #082a44;          /* richer deep blue, still the dark anchor */
    --navy-2: #0b3a5c;
    --ink: #15303f;
    --muted: #5a6f7e;

    /* Fresh aqua family — primary brand colors */
    --teal: #0e8a9b;          /* main brand teal */
    --teal-dark: #0a6c7a;
    --aqua: #19b8cf;          /* bright water accent */
    --spring: #1faa6a;        /* fresh spring-green */

    /* Link / badge blue, shifted toward cyan */
    --blue: #0e72a8;

    /* Warm accent kept for contrast (CTAs, highlights) */
    --accent: #f59023;
    --accent-dark: #db7510;

    /* Section background tints (alternating, low-saturation) */
    --bg-alt: #eef7fa;        /* soft aqua wash */
    --bg-mint: #e3f3ea;       /* soft green wash */
    --bg-warm: #fff5ec;       /* soft warm wash (unused) */

    --line: #dde8ee;
    --white: #ffffff;
    --radius: 12px;
    --shadow: 0 6px 24px rgba(8, 42, 68, .10);
    --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--ink); line-height: 1.65; background: var(--white); }
img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }

.container { width: min(1180px, 92%); margin: 0 auto; }

/* ---------- Topbar ---------- */
.topbar {
    background: linear-gradient(90deg, var(--navy) 0%, var(--teal-dark) 100%);
    color: #b8c6d4; font-size: .92rem; padding: .55rem 0;
}
.topbar-inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.topbar-left, .topbar-right { display: flex; align-items: center; gap: 1.1rem; }
.topbar-item { display: inline-flex; align-items: center; gap: .45rem; color: #c9d6e2; }
.topbar-item svg { width: 15px; height: 15px; color: var(--accent); flex-shrink: 0; }
a.topbar-item:hover { color: #fff; }
.topbar-pill {
    background: rgba(240,138,36,.16); color: #ffb469; border: 1px solid rgba(240,138,36,.35);
    font-weight: 700; padding: .12rem .65rem; border-radius: 99px; letter-spacing: .03em;
}

/* ---------- Header ---------- */
.site-header {
    background: rgba(255,255,255,.96); backdrop-filter: blur(8px);
    position: sticky; top: 0; z-index: 100;
    border-bottom: 1px solid var(--line); box-shadow: 0 4px 18px rgba(10,28,48,.07);
}
/* Header + topbar use the full screen width so the larger nav + logo + badge fit on one row */
.topbar .container, .site-header .container { width: min(1340px, 96%); }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: .9rem 0; gap: .8rem; }
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand-logo { height: 74px; width: auto; display: block; }
.header-iris { height: 46px; width: auto; flex-shrink: 0; }
/* Badge only appears once the row is wide enough to hold logo + larger nav + badge */
@media (max-width: 1320px) { .header-iris { display: none; } }

.main-nav { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.main-nav a {
    position: relative; color: var(--ink); font-size: 1.05rem; font-weight: 600;
    padding: .55rem .5rem; transition: color .18s;
}
.main-nav a:not(.btn-nav-cta)::after {
    content: ''; position: absolute; left: .5rem; right: .5rem; bottom: .12rem;
    height: 2.5px; border-radius: 2px; background: var(--teal);
    transform: scaleX(0); transform-origin: left; transition: transform .22s ease;
}
.main-nav a:hover { color: var(--teal-dark); }
.main-nav a:hover::after { transform: scaleX(1); }
.main-nav a.active { color: var(--teal-dark); }
.main-nav a.active::after { transform: scaleX(1); background: var(--teal); }

.btn-nav-cta {
    margin-left: .45rem; background: linear-gradient(120deg, var(--accent), var(--accent-dark));
    color: #fff !important; font-weight: 700; padding: .55rem 1.1rem !important;
    border-radius: 99px; box-shadow: 0 4px 14px rgba(240,138,36,.35);
    transition: transform .18s, box-shadow .18s;
}
.btn-nav-cta:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(240,138,36,.45); }

/* ---------- Investors mega dropdown ---------- */
.main-nav { position: relative; }
.nav-item.has-dropdown { display: flex; align-items: center; }
.nav-item.has-dropdown > a .caret {
    display: inline-block; margin-left: .35rem; width: 7px; height: 7px;
    border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
}
.dropdown-toggle { display: none; background: none; border: 0; cursor: pointer; font-size: 1rem; color: var(--ink); padding: .4rem; }
/* Anchored to the Investors item (not the whole nav) so the narrow panel opens
   directly beneath it. */
.nav-item.has-dropdown { position: relative; }
.dropdown-menu {
    position: absolute; top: calc(100% + 12px); left: 0; width: 262px;
    background: var(--white); border: 1px solid var(--line); border-radius: 12px;
    box-shadow: 0 18px 44px rgba(10,28,48,.16); padding: .5rem;
    opacity: 0; visibility: hidden; transition: opacity .18s; z-index: 200;
}
/* Invisible bridge over the gap, so moving the pointer down doesn't close it. */
.dropdown-menu::before {
    content: ''; position: absolute; top: -14px; left: 0; right: 0; height: 16px;
}
.nav-item.has-dropdown:hover .dropdown-menu,
.nav-item.has-dropdown:focus-within .dropdown-menu,
.nav-item.has-dropdown.is-open .dropdown-menu {
    opacity: 1; visibility: visible;
}
/* Scoped under .dropdown-menu so it outranks `.main-nav a`, which is also
   (0,1,1) and would otherwise impose the 1.05rem top-level nav size. */
.dropdown-menu .dropdown-head {
    display: block; font-weight: 800; font-size: .78rem; color: var(--teal-dark) !important;
    padding: .45rem .7rem .6rem; border-bottom: 1px solid var(--line); margin-bottom: .35rem;
    white-space: nowrap;   /* keep the arrow on the same line as the label */
}

/* ---------- Cascading flyout: group list → submenu of categories ---------- */
.flyout, .flyout-sub { list-style: none; margin: 0; padding: 0; }
.flyout-item { position: relative; }
.flyout-parent {
    width: 100%; display: flex; align-items: center; justify-content: space-between; gap: .6rem;
    background: none; border: 0; cursor: pointer; text-align: left;
    font-family: var(--font); font-size: .86rem; font-weight: 600; color: var(--ink);
    padding: .52rem .7rem; border-radius: 8px; transition: background .15s, color .15s;
}
.flyout-arrow {
    flex-shrink: 0; width: 6px; height: 6px;
    border-top: 2px solid currentColor; border-right: 2px solid currentColor;
    transform: rotate(45deg); opacity: .55; transition: transform .2s, opacity .15s;
}
/* A top-level entry with no children — same row metrics as a group, minus the
   chevron. Scoped under .dropdown-menu to outrank `.main-nav a`. */
.dropdown-menu .flyout-link {
    display: block; text-align: left;
    font-size: .86rem; font-weight: 600; color: var(--ink);
    padding: .52rem .7rem; border-radius: 8px; transition: background .15s, color .15s;
}
.dropdown-menu .flyout-link:hover { background: var(--bg-alt); color: var(--teal-dark); }
.dropdown-menu .flyout-link.is-active { background: var(--teal); color: #fff; }
.flyout-item:hover > .flyout-parent,
.flyout-item:focus-within > .flyout-parent,
.flyout-item.is-open > .flyout-parent { background: var(--bg-alt); color: var(--teal-dark); }
.flyout-item:hover > .flyout-parent .flyout-arrow,
.flyout-item.is-open > .flyout-parent .flyout-arrow { opacity: 1; }
/* The group containing the current page keeps a visible marker. */
.flyout-item.has-active > .flyout-parent { color: var(--teal-dark); font-weight: 700; }

.flyout-sub {
    position: absolute; left: calc(100% + 6px); top: -.5rem; min-width: 250px;
    background: var(--white); border: 1px solid var(--line); border-radius: 12px;
    box-shadow: 0 18px 44px rgba(10,28,48,.16); padding: .5rem;
    opacity: 0; visibility: hidden; transition: opacity .16s; z-index: 210;
}
/* Bridge across the 6px gap between the panel and its submenu. */
.flyout-sub::before {
    content: ''; position: absolute; top: 0; bottom: 0; left: -8px; width: 10px;
}
.flyout-item:hover > .flyout-sub,
.flyout-item:focus-within > .flyout-sub,
.flyout-item.is-open > .flyout-sub { opacity: 1; visibility: visible; }
/* Flipped by JS when the submenu would run past the right edge of the viewport. */
.flyout-item.flip-left > .flyout-sub { left: auto; right: calc(100% + 6px); }
.flyout-item.flip-left > .flyout-sub::before { left: auto; right: -8px; }

.dropdown-menu .flyout-sub a {
    display: block; font-size: .84rem; font-weight: 600; color: var(--ink);
    padding: .45rem .7rem; border-radius: 7px;
}
.dropdown-menu .flyout-sub a:hover { background: var(--bg-alt); color: var(--blue); }
.dropdown-menu .flyout-sub a.is-active { background: var(--teal); color: #fff; }
/* Trailing "open the section" link under an expanded document list. */
.dropdown-menu .flyout-sub a.flyout-sub-all {
    margin-top: .3rem; padding-top: .5rem; border-top: 1px solid var(--line);
    border-radius: 0; font-size: .78rem; font-weight: 800; color: var(--teal-dark);
}
.dropdown-menu .flyout-sub a.flyout-sub-all:hover { background: transparent; text-decoration: underline; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: .4rem; }
.nav-toggle span { display: block; width: 24px; height: 2.5px; background: var(--navy); margin: 5px 0; border-radius: 2px; transition: all .25s; }

/* ---------- Flash ---------- */
.flash { padding: .8rem 0; font-weight: 600; font-size: .9rem; }
.flash-success { background: #e5f6ec; color: #14693a; }
.flash-error { background: #fdecec; color: #a32020; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-block; padding: .72rem 1.5rem; border-radius: 8px;
    font-weight: 700; font-size: .9rem; font-family: var(--font);
    cursor: pointer; border: 2px solid transparent; transition: all .2s;
}
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-dark); transform: translateY(-1px); }
.btn-outline { border-color: var(--blue); color: var(--blue); background: transparent; }
.btn-outline:hover { background: var(--blue); color: #fff; }
.btn-small { padding: .35rem .8rem; font-size: .78rem; background: #e8f1f9; color: var(--blue); }
.btn-small:hover { background: var(--blue); color: #fff; }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--navy); min-height: 540px; overflow: hidden; }
.hero-slide {
    position: absolute; inset: 0; display: none; align-items: center;
    background: linear-gradient(120deg, var(--navy) 30%, var(--teal-dark) 70%, var(--teal));
}
/* The photograph, on its own layer beneath the overlay and the text. */
.hero-media {
    position: absolute; inset: 0; z-index: 0;
    background-size: cover; background-position: center;
}
/**
 * Readability overlay. Shaped rather than flat: heavy only behind the copy on
 * the left, then falling away so most of the photograph is actually visible —
 * the previous single 92%-opaque wash hid it almost entirely. The second
 * gradient darkens the bottom edge so the arrows and dots keep their contrast.
 */
.hero-slide::after {
    content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background:
        linear-gradient(95deg,
            rgba(6, 20, 34, .90) 0%,
            rgba(6, 20, 34, .82) 32%,
            rgba(6, 20, 34, .62) 50%,
            rgba(6, 20, 34, .24) 74%,
            rgba(6, 20, 34, .04) 100%),
        linear-gradient(to top, rgba(6, 20, 34, .55) 0%, rgba(6, 20, 34, 0) 26%);
}
.hero-content { position: relative; z-index: 2; }

/* Active slide: quick fade-in, with a slow "Ken Burns" push-in on the photo
   only — scaling the whole slide would drag the overlay and text with it. */
.hero-slide.is-active { display: flex; animation: heroFade .8s ease-out both; }
.hero-slide.is-active .hero-media { animation: heroKen 7s ease-out both; }
@keyframes heroFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes heroKen {
    from { transform: scale(1); }
    to   { transform: scale(1.08); }
}
.hero-content { color: #fff; max-width: 1180px; padding: 4rem 0; }
/* Staggered reveal of the content on every slide change */
@keyframes heroUp { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: translateY(0); } }
.hero-slide.is-active .hero-eyebrow { animation: heroUp .6s ease both .10s; }
.hero-slide.is-active h1            { animation: heroUp .7s cubic-bezier(.2,.7,.2,1) both .26s; }
.hero-slide.is-active p             { animation: heroUp .7s ease both .44s; }
.hero-slide.is-active .btn         { animation: heroUp .7s cubic-bezier(.2,.7,.2,1) both .60s; }
.hero-eyebrow {
    display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .16em;
    text-transform: uppercase; color: var(--aqua); margin-bottom: 1rem;
    border: 1px solid rgba(25,184,207,.45); padding: .3rem .8rem; border-radius: 99px;
    box-shadow: 0 0 18px rgba(25,184,207,.25);
}
/* With a lighter overlay the copy needs its own contrast so it stays readable
   wherever the photograph happens to be bright. */
/* 13em rather than 16em: keeps the headline inside the darker part of the
   overlay instead of running out over the bright right-hand side of the photo. */
.hero-content h1 {
    font-size: clamp(1.9rem, 4.5vw, 3.3rem); font-weight: 800; letter-spacing: -.02em;
    max-width: 13em; line-height: 1.15; text-shadow: 0 2px 18px rgba(4, 14, 24, .55);
}
.hero-content p {
    margin: 1.1rem 0 1.8rem; font-size: 1.05rem; color: #dbe6ef; max-width: 34em;
    text-shadow: 0 1px 12px rgba(4, 14, 24, .5);
}
.hero-content .btn-accent { box-shadow: 0 6px 20px rgba(240,138,36,.4); }
.hero-content .btn-accent:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 10px 26px rgba(240,138,36,.5); }
/* ---------- Hero arrows ---------- */
.hero-arrow {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 6;
    width: 46px; height: 46px; border-radius: 50%; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .3);
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
    color: #fff; opacity: 0; transition: opacity .25s, background .2s, border-color .2s;
}
.hero-arrow svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.hero-arrow:hover { background: var(--accent); border-color: var(--accent); }
.hero-arrow:focus-visible { opacity: 1; outline: 2px solid #fff; outline-offset: 3px; }
/* Revealed on hover so they don't compete with the headline at rest. */
.hero:hover .hero-arrow { opacity: 1; }
.hero-arrow-prev { left: 1.2rem; }
.hero-arrow-next { right: 1.2rem; }

.hero-dots { position: absolute; bottom: 1.4rem; left: 50%; transform: translateX(-50%); display: flex; gap: .5rem; z-index: 5; }
.hero-dot { width: 26px; height: 4px; border-radius: 4px; border: 0; background: rgba(255,255,255,.3); cursor: pointer; transition: all .3s ease; }
.hero-dot.is-active { background: var(--aqua); width: 42px; box-shadow: 0 0 12px rgba(25,184,207,.8); }
/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
    .hero-slide.is-active { animation: heroFade .4s ease both; }
    .hero-slide.is-active .hero-media,
    .hero-slide.is-active .hero-eyebrow,
    .hero-slide.is-active h1,
    .hero-slide.is-active p,
    .hero-slide.is-active .btn { animation: none; }
}

/* ---------- Stats ---------- */
.stats { background: var(--white); }
/* Full-width colour band, four boxes flush together — no gaps, no rounded corners */
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); width: 100%; max-width: none; }
.stat {
    position: relative; overflow: hidden;
    display: flex; flex-direction: column; align-items: center; text-align: center;
    gap: .12rem; padding: 1.7rem 1.1rem; color: #fff;
    transition: filter .2s, transform .2s;
}
.stat:hover { filter: brightness(1.07); transform: translateY(-2px); }
/* Each box gets its own colour */
.stat:nth-child(1) { background: linear-gradient(150deg, var(--teal), var(--teal-dark)); }
.stat:nth-child(2) { background: linear-gradient(150deg, var(--aqua), #0f93ad); }
.stat:nth-child(3) { background: linear-gradient(150deg, var(--spring), #147a4a); }
.stat:nth-child(4) { background: linear-gradient(150deg, var(--accent), var(--accent-dark)); }
/* Oversized watermark of the icon, bled off the corner for depth */
.stat::after {
    content: ''; position: absolute; right: -18px; top: -18px; width: 92px; height: 92px;
    background: rgba(255,255,255,.10); border-radius: 50%;
}
.stat-icon { position: relative; z-index: 1; margin-bottom: .35rem; line-height: 0; }
.stat-icon svg {
    width: 26px; height: 26px; stroke: #fff; fill: none;
    stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; opacity: .92;
}
.stat-value {
    position: relative; z-index: 1;
    display: block; font-size: 2.15rem; font-weight: 800; color: #fff;
    line-height: 1.05; letter-spacing: -.03em; font-variant-numeric: tabular-nums;
}
.stat-label { position: relative; z-index: 1; font-size: .84rem; color: #fff; font-weight: 700; }
.stat-note {
    position: relative; z-index: 1;
    font-size: .72rem; color: rgba(255,255,255,.78); font-weight: 500; line-height: 1.35;
}

/* ---------- Credentials strip ---------- */
.credentials { background: var(--bg-alt); border-bottom: 1px solid var(--line); }
.credentials-inner {
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.2rem; padding: 1.15rem 0;
}
.credential { display: flex; align-items: center; gap: .7rem; min-width: 0; }
.credential > span { display: flex; flex-direction: column; min-width: 0; }
.credential strong {
    font-size: .84rem; color: var(--navy); font-weight: 800; line-height: 1.25;
    overflow-wrap: anywhere;
}
.credential small { font-size: .72rem; color: var(--muted); line-height: 1.3; }
/* Logo and text badges share one box so the row lines up evenly. */
.credential-logo, .credential-mark {
    flex-shrink: 0; width: 42px; height: 42px; border-radius: 10px;
    background: var(--white); border: 1px solid var(--line);
}
.credential-logo { object-fit: contain; padding: 4px; }
.credential-mark {
    display: flex; align-items: center; justify-content: center;
    color: var(--teal-dark); font-size: .68rem; font-weight: 800; letter-spacing: .04em;
}

/* ---------- Sections ---------- */
.section { padding: 4.2rem 0; }
.section-alt { background: var(--bg-alt); }
/* Alternating colored section bands (kills the all-white monotony) */
.section-aqua { background: var(--bg-alt); }
.section-mint { background: var(--bg-mint); }
.section-warm { background: var(--bg-warm); }
.section-head { text-align: center; margin-bottom: 2.6rem; }
.section-eyebrow {
    display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .16em;
    text-transform: uppercase; color: var(--teal-dark); margin-bottom: .5rem;
}
.section-eyebrow.light { color: var(--aqua); }
.section h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 800; color: var(--navy); letter-spacing: -.02em; line-height: 1.25; }

/* ---------- Split (home about) ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 3rem; align-items: center; }
.split-text p { margin: 1rem 0; color: var(--muted); }
/* Lead paragraph carries a little more weight than the ones that follow. */
.split-text p:first-of-type { font-size: 1.06rem; color: #3b4d5e; line-height: 1.7; }
.split-text .btn { margin-top: .5rem; }
.split-media { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1rem; }
.media-card {
    position: relative; overflow: hidden; border-radius: var(--radius); min-height: 150px;
    display: flex; align-items: flex-end; padding: 1.1rem; color: #fff;
    font-weight: 700; font-size: .95rem; line-height: 1.3; box-shadow: var(--shadow);
    background-color: var(--navy);
    transition: transform .22s, box-shadow .22s;
}
/* Photo layer: zooms on hover while the caption and scrim stay put. */
.media-card-img {
    position: absolute; inset: 0; z-index: 0;
    width: 100%; height: 100%; object-fit: cover;
    transition: transform .45s ease;
}
.media-card::before {
    content: ''; position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(185deg, rgba(10,28,48,0) 28%, rgba(10,28,48,.86) 92%);
    transition: background .22s;
}
.media-card-body { position: relative; z-index: 2; display: flex; flex-direction: column; gap: .1rem; }
.media-card-body strong { font-size: 1.02rem; font-weight: 800; letter-spacing: -.01em; text-shadow: 0 1px 10px rgba(4,14,24,.5); }
.media-card-body small {
    display: flex; align-items: center; gap: .35rem;
    font-size: .78rem; font-weight: 600; color: rgba(255,255,255,.82);
}
/* Arrow nudges on hover instead of only appearing then — on touch there is no
   hover, so an affordance that is invisible at rest is no affordance at all. */
.media-card-body em { font-style: normal; transition: transform .2s; }
.media-card:hover { transform: translateY(-4px); box-shadow: 0 14px 32px rgba(10,28,48,.22); }
.media-card:hover .media-card-img { transform: scale(1.06); }
.media-card:hover .media-card-body em { transform: translateX(4px); }
.media-card:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.media-card-a { grid-row: span 2; min-height: 320px; }

/* ---------- Cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 1.5rem; }
/* Horizontal scroller variant: bigger cards, 3 per view (2 on tablet, 1 on phone) */
.scroller-wrap { position: relative; }
.card-scroller {
    display: grid; grid-auto-flow: column;
    grid-auto-columns: calc((100% - 3rem) / 3);
    gap: 1.5rem; overflow-x: auto;
    scroll-snap-type: x mandatory; scroll-padding-left: .25rem;
    padding: .25rem;
    scrollbar-width: none; -ms-overflow-style: none;
}
.card-scroller::-webkit-scrollbar { display: none; }
.card-scroller .product-card { scroll-snap-align: start; }
.card-scroller .product-card-img { height: 320px; }
.scroller-arrow {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
    width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line);
    background: var(--white); color: var(--navy); cursor: pointer;
    font-size: 1.1rem; line-height: 1; display: flex; align-items: center; justify-content: center;
    box-shadow: 0 6px 18px rgba(10,28,48,.16); transition: all .2s;
}
.scroller-arrow:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.scroller-prev { left: -23px; }
.scroller-next { right: -23px; }
@media (max-width: 960px) { .card-scroller { grid-auto-columns: calc((100% - 1.5rem) / 2); } }
@media (max-width: 600px) {
    .card-scroller { grid-auto-columns: 86%; }
    .scroller-prev { left: -8px; }
    .scroller-next { right: -8px; }
}
/* Centered variant: balanced when a row has only 1-3 cards */
.card-grid-center { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.5rem; }
.card-grid-center .product-card { flex: 0 0 calc((100% - 3rem) / 3); max-width: 420px; }
@media (max-width: 900px) { .card-grid-center .product-card { flex-basis: calc((100% - 1.5rem) / 2); } }
@media (max-width: 560px) { .card-grid-center .product-card { flex-basis: 100%; } }
.product-card {
    background: var(--white); border-radius: var(--radius); overflow: hidden;
    border: 1px solid var(--line); border-top: 3px solid var(--teal);
    transition: all .22s; color: var(--ink); display: flex; flex-direction: column;
}
/* Rotate the top accent so a row of cards shows the full palette */
.product-card:nth-child(4n+1) { border-top-color: var(--teal); }
.product-card:nth-child(4n+2) { border-top-color: var(--aqua); }
.product-card:nth-child(4n+3) { border-top-color: var(--spring); }
.product-card:nth-child(4n)   { border-top-color: var(--accent); }
.product-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(14,138,155,.22); }
.product-card-img { height: 160px; background-size: cover; background-position: center; }
/* For studio product shots on white: show the whole product, nicely inset */
.product-card-img.img-contain {
    height: 260px; background-size: contain; background-repeat: no-repeat;
    background-origin: content-box; background-color: #fff;
    padding: .9rem; border-bottom: 1px solid var(--line);
}
/* Zoomable studio product shot on white — click opens the lightbox */
.product-card-photo {
    width: 100%; /*height: 260px;*/ object-fit: contain; background: #fff;
    /*padding: .9rem;*/ border-bottom: 1px solid var(--line); cursor: zoom-in;
    transition: transform .25s;
}
.product-card:hover .product-card-photo { transform: scale(1.03); }
.product-card-img-ph { background: linear-gradient(135deg, var(--navy), var(--teal)); position: relative; }
.product-card-img-ph::after {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(circle at 70% 30%, rgba(240,138,36,.25), transparent 60%);
}
.product-card-body {
    padding: 1.2rem; display: flex; flex-direction: column; gap: .45rem; flex: 1;
    background: linear-gradient(160deg, #f4f6f9, #e9edf2);
    border-top: 1px solid var(--line);
}
.product-card h3 { font-size: 1.05rem; color: var(--ink); font-weight: 700; }
.product-card p { font-size: .85rem; color: var(--muted); flex: 1; }
.product-card .card-link { color: var(--accent-dark); }
.badge {
    align-self: flex-start; font-size: .68rem; font-weight: 700; letter-spacing: .06em;
    text-transform: uppercase; background: #e8f1f9; color: var(--blue);
    padding: .2rem .6rem; border-radius: 99px;
}
.card-link { font-size: .83rem; font-weight: 700; color: var(--accent-dark); }

/* ---------- IR strip (home) ---------- */
.ir-strip { background: linear-gradient(125deg, var(--navy) 25%, var(--teal-dark) 75%, var(--teal)); color: #fff; padding: 4rem 0; }
.ir-strip h2 { color: #fff; }
.ir-strip p { color: #b8c6d4; margin: .8rem 0 1.5rem; }
.ir-strip-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 3rem; align-items: center; }
.ir-doc-list { display: flex; flex-direction: column; gap: .7rem; }
.ir-doc {
    display: flex; gap: .9rem; align-items: center; background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.12); border-radius: 10px; padding: .8rem 1rem;
    color: #fff; transition: background .2s;
}
.ir-doc:hover { background: rgba(255,255,255,.14); }
.ir-doc-icon {
    flex-shrink: 0; background: var(--accent); color: #fff; font-size: .62rem; font-weight: 800;
    padding: .45rem .5rem; border-radius: 6px; letter-spacing: .05em;
}
.ir-doc-text { display: flex; flex-direction: column; min-width: 0; }
.ir-doc-text strong { font-size: .88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ir-doc-text small { color: #9fb2c4; font-size: .74rem; }
.ir-empty { color: #9fb2c4; }

/* ---------- Clients ---------- */
.client-row { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; }
.client-row span {
    background: var(--bg-alt); border: 1px solid var(--line); color: var(--navy);
    font-weight: 700; font-size: .9rem; padding: .7rem 1.5rem; border-radius: 99px;
}
.client-logos {
    display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1.2rem;
}
.client-logo { display: flex; flex-direction: column; align-items: center; text-align: center; margin: 0; }
.client-logo img {
    width: 96px; height: 96px; object-fit: contain; border-radius: 50%;
    background: #fff; border: 1px solid var(--line); padding: .5rem;
}
.client-logo figcaption { margin-top: .55rem; font-size: .8rem; font-weight: 700; color: var(--navy); }
.client-logo-placeholder {
    display: flex; align-items: center; justify-content: center; text-align: center;
    width: 96px; height: 96px; border-radius: 50%; padding: .5rem; line-height: 1.15;
    background: var(--bg-alt); border: 1px solid var(--line);
    color: var(--navy); font-weight: 700; font-size: .72rem;
}
@media (max-width: 720px) { .client-logos { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Page hero ---------- */
.page-hero {
    background: linear-gradient(120deg, var(--navy) 40%, var(--teal-dark) 90%); color: #fff; padding: 3.2rem 0;
}
.page-hero h1 { font-size: clamp(1.7rem, 3.5vw, 2.5rem); font-weight: 800; letter-spacing: -.02em; }
.page-hero p { color: #b8c6d4; margin-top: .4rem; max-width: 44em; }
.breadcrumb { font-size: .78rem; color: #8da2b5; margin-bottom: .8rem; }
.breadcrumb a { color: #c9d6e2; }
.breadcrumb span { margin: 0 .35rem; }

/* ---------- Content ---------- */
.content-narrow { max-width: 1040px; margin: 0 auto; }
.content-image { border-radius: var(--radius); margin-bottom: 1.8rem; box-shadow: var(--shadow); }
.rich-text { color: #37485a; }
.rich-text p { margin-bottom: 1rem; }
.rich-text h2, .rich-text h3 { color: var(--navy); margin: 1.6rem 0 .7rem; letter-spacing: -.01em; }
.rich-text ul, .rich-text ol { margin: .8rem 0 1rem 1.4rem; }
.rich-text li { margin-bottom: .35rem; }
/* Long reference lists (e.g. the 44 spring types on About) read as a set of
   columns rather than one very long strip. */
.rich-text .col-list { columns: 3; column-gap: 2.2rem; }
.rich-text .col-list li { break-inside: avoid; text-align: left; }
@media (max-width: 860px) { .rich-text .col-list { columns: 2; column-gap: 1.4rem; } }
@media (max-width: 520px) { .rich-text .col-list { columns: 1; } }
.rich-text a { font-weight: 600; }

/* ---------- Editorial / newspaper layout (About) ---------- */
.editorial { display: flow-root; text-align: justify; }
/* Justify the prose only. Headings and list items inherit it otherwise, which
   stretches a short heading right across the measure. */
.editorial h2, .editorial h3, .editorial h4, .editorial li { text-align: left; }
.editorial-figure {
    float: right; width: 340px; max-width: 44%;
    margin: .35rem 0 1.1rem 1.9rem;
    border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
}
.editorial-figure img { display: block; width: 100%; height: auto; }
.editorial-figure figcaption {
    background: var(--bg-alt); border-top: 1px solid var(--line);
    color: #6b7d8e; font-size: .76rem; padding: .55rem .8rem; text-align: center;
}
.editorial > p:first-of-type::first-letter {
    float: left; font-family: Georgia, "Times New Roman", serif;
    font-size: 3.6rem; line-height: .72; font-weight: 700;
    color: var(--navy); margin: .18rem .62rem 0 0;
}
@media (max-width: 640px) {
    /* Justification is kept on phones (it used to be dropped here), with
       hyphenation to stop the narrow measure opening up word gaps. Headings
       and list items stay left-aligned via the rule above. */
    .editorial { -webkit-hyphens: auto; hyphens: auto; }
    .editorial-figure { float: none; width: 100%; max-width: 100%; margin: 0 0 1.3rem; }
    .editorial > p:first-of-type::first-letter { font-size: 3rem; }
}

.info-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1rem; margin-top: 2.4rem; }
.info-card {
    background: var(--bg-alt); border: 1px solid var(--line); border-radius: 10px;
    padding: 1.1rem; display: flex; flex-direction: column; gap: .2rem;
}
.info-card strong { color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; }
.info-card span { color: var(--navy); font-weight: 700; }

/* ---------- Products ---------- */
.division-block { margin-bottom: 3rem; scroll-margin-top: 110px; }
.division-title {
    font-size: 1.3rem; color: var(--navy); margin-bottom: 1.3rem;
    padding-left: .9rem; border-left: 4px solid var(--teal);
    display: flex; align-items: baseline; gap: 1rem; flex-wrap: wrap;
}
.division-link { font-size: .82rem; font-weight: 700; color: var(--accent-dark); }
.product-detail { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 3rem; align-items: start; }
.spec-title { color: var(--navy); margin: 2rem 0 .8rem; }
.spec-box { background: var(--bg-alt); border: 1px solid var(--line); border-radius: 10px; padding: 1.3rem 1.5rem; margin-bottom: 1.6rem; }
.product-detail-side { background: var(--bg-alt); border-radius: var(--radius); padding: 1.4rem; }
.product-detail-side h3 { color: var(--navy); margin-bottom: 1rem; font-size: 1rem; }
.side-link { display: flex; flex-direction: column; padding: .7rem 0; border-top: 1px solid var(--line); }
.side-link strong { color: var(--ink); font-size: .9rem; }
.side-link small { color: var(--muted); font-size: .75rem; }
.side-link:hover strong { color: var(--blue); }

/* ---------- Facilities ---------- */
.facility-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2.6rem; align-items: center; margin-bottom: 3.4rem; }
.facility-row.is-reversed .facility-media { order: 2; }
.facility-media img { border-radius: var(--radius); box-shadow: var(--shadow); }
.facility-ph {
    border-radius: var(--radius); min-height: 260px; display: flex; align-items: flex-end;
    background: linear-gradient(135deg, var(--navy), var(--teal)); padding: 1.4rem;
    color: #fff; font-weight: 700; box-shadow: var(--shadow);
}
.facility-text h2 { font-size: 1.4rem; color: var(--navy); margin-bottom: .8rem; }
.division-photo { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; grid-column: span 2; }

/* ---------- Quality / certifications ---------- */
.cert-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.5rem; }
.cert-card {
    background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 1.8rem; text-align: center; display: flex; flex-direction: column; gap: .6rem; align-items: center;
}
.cert-card img { max-height: 90px; width: auto; }
.cert-badge {
    min-width: 58px; height: 58px; padding: 0 .75rem; border-radius: 99px;
    background: #e5f6ec; color: #14693a;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.02rem; font-weight: 800; letter-spacing: .03em;
}

/* ---------- Quality: in-house testing row ---------- */
.qa-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 1rem; margin-top: 2.4rem;
}
.qa-card {
    background: var(--white); border: 1px solid var(--line); border-left: 3px solid var(--teal);
    border-radius: 10px; padding: 1.1rem 1.2rem;
    display: flex; flex-direction: column; gap: .3rem;
}
.qa-card-mark {
    width: 26px; height: 26px; border-radius: 50%; background: #e5f6ec;
    display: flex; align-items: center; justify-content: center; margin-bottom: .2rem;
}
.qa-card-mark svg { width: 15px; height: 15px; fill: none; stroke: #14693a; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.qa-card strong { color: var(--navy); font-size: .95rem; }
.qa-card span { color: var(--muted); font-size: .85rem; line-height: 1.5; }
.qa-cta { margin-top: 1.6rem; }
.cert-card h3 { color: var(--navy); font-size: 1.05rem; }
.cert-card p { color: var(--muted); font-size: .85rem; flex: 1; }

/* ---------- Careers ---------- */
.job-list { max-width: 860px; margin: 0 auto; display: flex; flex-direction: column; gap: .9rem; }
.job-card { background: var(--white); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.job-card summary {
    list-style: none; cursor: pointer; padding: 1.1rem 1.4rem;
    display: flex; flex-direction: column; gap: .15rem;
}
.job-card summary::-webkit-details-marker { display: none; }
.job-card[open] summary { border-bottom: 1px solid var(--line); background: var(--bg-alt); }
.job-title { font-weight: 700; color: var(--navy); }
.job-meta { font-size: .8rem; color: var(--muted); }
.job-body { padding: 1.3rem 1.4rem; }
.job-body .btn { margin-top: .8rem; }

/* ---------- Gallery ---------- */
.filter-tabs { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; margin-bottom: 2rem; }
.filter-tab {
    border: 1px solid var(--line); background: var(--white); border-radius: 99px;
    padding: .45rem 1.2rem; font-family: var(--font); font-weight: 600; font-size: .84rem;
    color: var(--muted); cursor: pointer; transition: all .2s;
}
.filter-tab.is-active { background: var(--teal); color: #fff; border-color: var(--teal); }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1rem; }
.gallery-item { position: relative; border-radius: 10px; overflow: hidden; cursor: zoom-in; }
.gallery-item img { width: 100%; height: 190px; object-fit: cover; transition: transform .3s; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item figcaption {
    position: absolute; inset: auto 0 0 0; background: linear-gradient(transparent, rgba(10,28,48,.85));
    color: #fff; font-size: .8rem; padding: 1.4rem .8rem .6rem;
}
.lightbox {
    position: fixed; inset: 0; background: rgba(8,18,30,.92); z-index: 300;
    display: flex; align-items: center; justify-content: center; padding: 2rem;
}
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 92vw; max-height: 88vh; border-radius: 8px; }
.lightbox-close {
    position: absolute; top: 1rem; right: 1.4rem; background: none; border: 0;
    color: #fff; font-size: 2.4rem; cursor: pointer; line-height: 1;
}

/* ---------- Page images (admin-managed galleries on content pages) ---------- */
.page-img-grid { display: flex; flex-wrap: wrap; gap: 1.2rem; align-items: flex-start; }
.page-img { flex: 0 0 calc(33.333% - .8rem); margin: 0; }
.page-img.w1 { flex-basis: 100%; }
.page-img.w2 { flex-basis: calc(50% - .6rem); }
.page-img.w3 { flex-basis: calc(33.333% - .8rem); }
.page-img.w4 { flex-basis: calc(25% - .9rem); }
.page-img { position: relative; }
/**
 * A uniform tile height. These galleries mix portrait certificate scans
 * (ratio ~0.7) with landscape equipment photos (~1.5); at natural height each
 * tile ran to a different depth and the grid came out ragged, with tall
 * certificates dominating the page.
 *
 * object-fit: contain rather than cover — cropping a certificate would cut off
 * its content. Anything letterboxed sits on white, and the full-size image is
 * one click away in the lightbox.
 */
.page-img img {
    width: 100%; height: 250px; object-fit: contain; display: block;
    border-radius: 10px; border: 1px solid var(--line); background: #fff;
    padding: .5rem; cursor: zoom-in;
    box-shadow: 0 4px 14px rgba(10, 28, 48, .07); transition: transform .25s, box-shadow .25s;
}
.page-img img:hover { transform: translateY(-3px); box-shadow: var(--shadow); }

/* Makes the zoom affordance visible rather than relying on the cursor alone. */
.page-img::after {
    content: '\2295'; position: absolute; top: .55rem; right: .55rem;
    width: 26px; height: 26px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: rgba(8, 42, 68, .72); color: #fff; font-size: .95rem; line-height: 1;
    opacity: 0; transition: opacity .2s; pointer-events: none;
}
.page-img:hover::after { opacity: 1; }

.page-img figcaption { margin-top: .5rem; font-size: .85rem; color: var(--muted); text-align: center; }
@media (max-width: 760px) {
    .page-img.w3, .page-img.w4 { flex-basis: calc(50% - .6rem); }
    .page-img img { height: 200px; }
}
@media (max-width: 480px) {
    .page-img { flex-basis: 100% !important; }
    /* One per row, so the tile can be taller and the scan stays legible. */
    .page-img img { height: 300px; }
}

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 3rem; align-items: start; }
.contact-info h2, .contact-form-wrap h2 { color: var(--navy); margin-bottom: 1.4rem; font-size: 1.4rem; }
.contact-item { margin-bottom: 1.3rem; }
.contact-item strong { display: block; color: var(--navy); font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: .25rem; }
.contact-item p { color: var(--muted); font-size: .92rem; }
.contact-form-wrap { background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; }
.contact-item a { font-weight: 600; }
.contact-people { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.2rem; }
.person-card {
    background: #fff; border: 1px solid var(--line); border-radius: 10px;
    padding: 1.2rem 1.3rem; display: flex; flex-direction: column; gap: .25rem;
}
.person-card strong { color: var(--navy); font-size: 1rem; }
.person-card .person-role { color: var(--muted); font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; }
.person-card a { font-weight: 600; font-size: .9rem; margin-top: .2rem; word-break: break-word; }
.rta-box {
    margin-top: 2.2rem; background: var(--bg-alt); border: 1px solid var(--line);
    border-radius: 10px; padding: 1.4rem 1.6rem;
}
.rta-box h3 { color: var(--navy); margin-bottom: .5rem; }
.rta-box p { color: var(--muted); font-size: .92rem; }

/* ---------- Forms ---------- */
.form-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1rem; }
.form-group { margin-bottom: 1rem; display: flex; flex-direction: column; gap: .3rem; }
.form-group label { font-weight: 600; font-size: .84rem; color: var(--navy); }
.form-group input, .form-group textarea, .form-group select {
    font-family: var(--font); font-size: .92rem; padding: .65rem .8rem;
    border: 1px solid #cfd9e3; border-radius: 8px; background: var(--white); color: var(--ink);
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    outline: 2px solid rgba(20,89,143,.3); border-color: var(--blue);
}
.hp-field { position: absolute !important; left: -9999px !important; height: 0; width: 0; opacity: 0; }

/* ---------- Investor relations ---------- */
.ir-intro { margin-bottom: 2.6rem; text-align: center; }
.ir-group { margin-bottom: 2.6rem; }
.ir-group-title {
    font-size: 1.15rem; color: var(--navy); margin-bottom: 1.1rem;
    padding-left: .85rem; border-left: 4px solid var(--teal);
}
.ir-side-group {
    display: block; font-size: .66rem; font-weight: 800; letter-spacing: .12em;
    text-transform: uppercase; color: var(--muted); margin: .9rem .7rem .25rem;
}
.ir-cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(245px, 1fr)); gap: 1.3rem; }
.ir-cat-card {
    background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 1.5rem; display: flex; flex-direction: column; gap: .5rem; color: var(--ink); transition: all .22s;
}
.ir-cat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; }
.ir-cat-icon {
    width: 42px; height: 42px; border-radius: 10px;
    background: linear-gradient(135deg, var(--teal), var(--navy)); position: relative;
}
.ir-cat-icon::after {
    content: ''; position: absolute; inset: 12px;
    border: 2.5px solid var(--aqua); border-radius: 4px; border-right-color: transparent;
}
.ir-cat-card h3 { font-size: 1rem; color: var(--navy); }
.ir-cat-card p { font-size: .82rem; color: var(--muted); flex: 1; }
.ir-cat-count { font-size: .76rem; font-weight: 700; color: var(--accent-dark); }

.ir-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 2.6rem; align-items: start; }
.ir-sidebar { background: var(--bg-alt); border-radius: var(--radius); padding: 1.3rem; position: sticky; top: 90px; }
.ir-sidebar h3 { color: var(--navy); font-size: .95rem; margin-bottom: .8rem; }
/* Desktop shows the list outright; the toggle only appears on narrow screens. */
.ir-sidebar-toggle { display: none; }
.ir-side-link {
    display: block; padding: .5rem .7rem; border-radius: 8px; color: var(--ink);
    font-size: .85rem; font-weight: 600;
}
.ir-side-link:hover { background: #e8f1f9; color: var(--blue); }
.ir-side-link.is-active { background: var(--teal); color: #fff; }

.ir-filters { display: flex; flex-wrap: wrap; gap: .7rem; margin-bottom: 1.6rem; }
.ir-filters input[type="search"] {
    flex: 1; min-width: 200px; font-family: var(--font); padding: .6rem .9rem;
    border: 1px solid #cfd9e3; border-radius: 8px;
}
.ir-filters select { font-family: var(--font); padding: .6rem .7rem; border: 1px solid #cfd9e3; border-radius: 8px; background: #fff; }

/* ---------- Year groups (collapsible) ----------
   Each group is a self-contained card rather than a heading with a rule under
   it: with ten or more years stacked up, a closed group needs to read as a
   thing you can open, not as a section title that happens to be clickable. */
.doc-year-group {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    margin-bottom: .6rem;
    overflow: hidden;
    transition: border-color .18s ease, box-shadow .18s ease;
}
.doc-year-group:last-of-type { margin-bottom: 0; }
.doc-year-group:hover { border-color: #bcd7e2; }
/* The open group is lifted off the stack so the eye keeps its place. */
.doc-year-group[open] {
    border-color: #b3dbe2;
    box-shadow: var(--shadow);
}

.doc-year-group > summary {
    cursor: pointer;
    list-style: none;                            /* hide the default triangle */
    -webkit-tap-highlight-color: transparent;
}
.doc-year-group > summary::-webkit-details-marker { display: none; }
.doc-year-group > summary:focus-visible { outline: 2px solid var(--teal); outline-offset: -2px; }

/* Fiscal-year heading, doubling as the disclosure control.
   Scoped through the group so it outranks ".section h2", which would otherwise
   size these at up to 2.1rem — far too heavy for a repeated row label. */
.doc-year-group .doc-year {
    display: flex; align-items: center; gap: .75rem;
    font-size: 1.02rem; font-weight: 700; line-height: 1.3;
    letter-spacing: -.01em; color: var(--navy);
    margin: 0; padding: .95rem 1.1rem;
    position: relative;
    transition: background .18s ease, color .18s ease;
}
/* Accent bar down the left edge, filling in as the group opens. */
.doc-year::before {
    content: ''; position: absolute; left: 0; top: 0; bottom: 0;
    width: 4px; background: var(--teal);
    transform: scaleY(0); transform-origin: center;
    transition: transform .22s ease;
}
.doc-year-group[open] .doc-year::before,
.doc-year-group > summary:hover .doc-year::before { transform: scaleY(1); }

.doc-year-group > summary:hover .doc-year { background: var(--bg-alt); color: var(--teal-dark); }
.doc-year-group[open] > summary .doc-year {
    background: var(--bg-alt);
    border-bottom: 1px solid var(--line);
}

/* Document count, as a pill so it reads as metadata rather than heading text. */
.doc-year span {
    font-size: .72rem; font-weight: 700; color: var(--teal-dark);
    background: rgba(14, 138, 155, .1);
    border-radius: 99px; padding: .18rem .6rem; white-space: nowrap;
}

/* Round +/− control, the affordance the bare caret was missing. */
.doc-year::after {
    content: ''; margin-left: auto; flex-shrink: 0;
    width: 26px; height: 26px; border-radius: 50%;
    background:
        linear-gradient(var(--teal), var(--teal)) center/10px 2px no-repeat,
        linear-gradient(var(--teal), var(--teal)) center/2px 10px no-repeat,
        rgba(14, 138, 155, .1);
    transition: transform .22s ease, background-color .18s ease;
}
/* Open: drop the upright stroke so the plus reads as a minus. The stroke that
   remains is declared vertical and rotated a quarter turn, which is what lets
   the change animate instead of snapping — a background swap alone cannot. */
.doc-year-group[open] > summary .doc-year::after {
    transform: rotate(90deg);
    background:
        linear-gradient(var(--teal), var(--teal)) center/2px 10px no-repeat,
        rgba(14, 138, 155, .18);
}

/* The body sits flush inside the card; the card already draws the border. */
.doc-year-group > .doc-table-wrap {
    margin: 0; border: 0; border-radius: 0; background: transparent;
}
/* The open header band is already tinted, and the table's own tinted header
   row directly beneath it merges into one heavy block — so inside a group the
   column headings go white and the band alone carries the tint. */
.doc-year-group .doc-table th { background: var(--white); }
.doc-year-group > .doc-list { margin: .3rem 0; padding: 0 .5rem; }

@media (max-width: 560px) {
    .doc-year { padding: .8rem .85rem; font-size: .95rem; gap: .5rem; }
    .doc-year::after { width: 22px; height: 22px; }
}

@media (prefers-reduced-motion: reduce) {
    .doc-year-group, .doc-year, .doc-year::before, .doc-year::after { transition: none; }
}

.doc-table-wrap { overflow-x: auto; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.doc-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.doc-table th {
    text-align: left; background: var(--bg-alt); color: var(--navy); font-size: .74rem;
    text-transform: uppercase; letter-spacing: .07em; padding: .8rem 1.1rem;
}
.doc-table td { padding: .85rem 1.1rem; border-top: 1px solid var(--line); vertical-align: middle; }
.doc-table tr:hover td { background: #fafcfe; }

.pagination { display: flex; gap: .4rem; margin-top: 1.4rem; flex-wrap: wrap; }
.pagination a {
    min-width: 36px; text-align: center; padding: .4rem .6rem; border-radius: 8px;
    border: 1px solid var(--line); color: var(--ink); font-weight: 600; font-size: .85rem;
}
.pagination a.is-active { background: var(--teal); color: #fff; border-color: var(--teal); }

.ir-contact-box {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2.4rem;
    background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius); padding: 2.2rem;
}
.ir-contact-box h2 { font-size: 1.1rem; color: var(--navy); margin-bottom: .7rem; }
.ir-contact-box p { color: var(--muted); font-size: .92rem; }

/* ---------- Misc ---------- */
.empty-note { text-align: center; color: var(--muted); padding: 2rem 0; }
.error-page { padding: 6rem 0; }
.error-code { font-size: 5.5rem; font-weight: 800; color: var(--navy); line-height: 1; }
.error-page h2 { margin: .6rem 0; color: var(--navy); }
.error-page p { color: var(--muted); margin-bottom: 1.6rem; }

/* ---------- Footer ---------- */
.site-footer { background: linear-gradient(160deg, var(--navy), #06283f); color: #aebccb; }
/* minmax(0, …) rather than a bare 1fr: a plain `1fr` floors each track at its
   min-content width, and the contact email is one unbreakable ~180px token —
   which forced the whole grid (and every page) wider than a 375px phone. */
.footer-grid {
    display: grid; gap: 2.4rem; padding: 3.4rem 0 2.4rem;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.1fr);
}
.footer-col { min-width: 0; }
.footer-col h4 {
    position: relative; color: #fff; font-size: .95rem; margin-bottom: 1.15rem; padding-bottom: .55rem;
}
/* Short accent rule anchors each column heading. */
.footer-col h4::after {
    content: ''; position: absolute; left: 0; bottom: 0;
    width: 30px; height: 2px; border-radius: 2px; background: var(--accent);
}
.footer-col a { display: block; color: #aebccb; font-size: .86rem; padding: .22rem 0; transition: color .15s, transform .15s; }
.footer-col a:hover { color: var(--aqua); }
/* Nav columns nudge on hover; the contact block is prose, so it stays put. */
nav.footer-col a:hover { transform: translateX(3px); }
.footer-col a:focus-visible { outline: 2px solid var(--aqua); outline-offset: 2px; border-radius: 3px; }
.footer-col p { font-size: .86rem; margin-bottom: .7rem; }
/* Long addresses/emails wrap instead of widening the column. */
.footer-col a, .footer-col p { overflow-wrap: anywhere; }
.footer-meta { font-size: .76rem; color: #7d90a3; }

.footer-contact address { font-style: normal; display: flex; flex-direction: column; gap: .55rem; }
.footer-contact-line { font-size: .86rem; color: #aebccb; overflow-wrap: anywhere; }
.footer-contact-line a { display: inline; padding: 0; }

.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 1.1rem 0; font-size: .78rem; }
.footer-bottom .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; }
.footer-bottom-right { display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; }
.footer-top-link { color: #aebccb; font-weight: 600; transition: color .15s; }
.footer-top-link:hover { color: var(--aqua); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
    .split, .ir-strip-inner, .contact-grid, .product-detail,
    .facility-row, .ir-contact-box { grid-template-columns: minmax(0, 1fr); }
    .facility-row.is-reversed .facility-media { order: 0; }
    .ir-layout { grid-template-columns: minmax(0, 1fr); }
    .ir-sidebar { position: static; }
    .ir-sidebar h3 { margin-bottom: .6rem; }
    .ir-side-list { display: flex; flex-wrap: wrap; gap: .3rem; }

    /* Collapsed control naming the section you are on. */
    .ir-sidebar-toggle {
        display: flex; align-items: center; justify-content: space-between; gap: 1rem;
        width: 100%; cursor: pointer; font-family: var(--font);
        background: var(--white); border: 1px solid var(--line); border-radius: 10px;
        padding: .7rem .9rem; color: var(--navy); font-size: .92rem; font-weight: 700;
        text-align: left;
    }
    .ir-sidebar-toggle:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
    .ir-sidebar-caret {
        flex-shrink: 0; width: 8px; height: 8px;
        border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
        transform: rotate(45deg) translate(-2px, -2px); transition: transform .2s;
    }
    /* Only collapse once main.js has marked the sidebar — without JS the full
       list stays visible rather than becoming unreachable. */
    .ir-sidebar.is-collapsible .ir-side-list { display: none; }
    .ir-sidebar.is-collapsible.is-open .ir-side-list { display: flex; margin-top: .7rem; }
    .ir-sidebar.is-collapsible.is-open .ir-sidebar-caret { transform: rotate(225deg) translate(-2px, -2px); }
    .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .credentials-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
}

@media (max-width: 1170px) {
    .nav-toggle { display: block; }
    .brand-logo { height: 52px; }
    .main-nav {
        display: none; position: absolute; top: 100%; left: 0; right: 0;
        background: var(--white); flex-direction: column; padding: .8rem 4%;
        border-bottom: 1px solid var(--line); box-shadow: 0 14px 24px rgba(10,28,48,.12);
    }
    .main-nav.is-open { display: flex; }
    /* nowrap is essential: the base rule sets flex-wrap: wrap, and a wrapping
       *column* flex container with a max-height spills into extra columns
       sideways instead of scrolling. */
    .main-nav { gap: .1rem; align-items: stretch; flex-wrap: nowrap; }
    .main-nav a:not(.btn-nav-cta)::after { display: none; }
    .main-nav a { padding: .65rem .6rem; border-radius: 8px; }
    .main-nav a:hover, .main-nav a.active { background: var(--bg-alt); }
    .btn-nav-cta { margin: .5rem .3rem 0; text-align: center; }
    .topbar-right { display: none; }

    /* Investors dropdown on mobile: inline expandable list */
    .nav-item.has-dropdown { flex-wrap: wrap; }
    .nav-item.has-dropdown > a { flex: 1; }
    .nav-item.has-dropdown > a .caret { display: none; }
    .dropdown-toggle { display: block; transition: transform .2s; }
    .nav-item.has-dropdown.is-open .dropdown-toggle { transform: rotate(180deg); }
    .dropdown-menu {
        position: static; width: 100%; box-shadow: none;
        border: 0; border-left: 3px solid var(--line); border-radius: 0;
        padding: 0 0 .4rem .8rem; margin-left: .7rem; display: none;
        opacity: 1; visibility: visible; transition: none;
    }
    .nav-item.has-dropdown.is-open .dropdown-menu { display: block; }
    /* Flyouts can't cascade sideways on a phone — each group becomes an
       inline accordion that pushes the list down instead. */
    .flyout-sub {
        position: static; left: auto; top: auto; min-width: 0; width: 100%;
        border: 0; border-left: 2px solid var(--line); border-radius: 0;
        box-shadow: none; padding: .1rem 0 .3rem .55rem; margin: .1rem 0 .3rem .7rem;
        opacity: 1; visibility: visible; transition: none;
        display: none;
    }
    .flyout-item.is-open > .flyout-sub { display: block; }
    /* Hover must not reveal it on touch — only the explicit toggle. */
    .flyout-item:hover > .flyout-sub,
    .flyout-item:focus-within > .flyout-sub { display: none; }
    .flyout-item.is-open:hover > .flyout-sub,
    .flyout-item.is-open:focus-within > .flyout-sub { display: block; }
    .flyout-sub::before { content: none; }
    .flyout-item.is-open > .flyout-parent .flyout-arrow { transform: rotate(135deg); }
    .flyout-parent { font-size: .92rem; padding: .6rem .7rem; }
    .form-row { grid-template-columns: 1fr; }
    .hero { min-height: 420px; }
    /* The open nav panel (11 links + an expandable investor list) can run past
       the bottom of a short phone screen, so let it scroll internally. */
    .main-nav.is-open { max-height: 74vh; overflow-y: auto; overscroll-behavior: contain; }
}

/* ============================================================
   Mobile / tablet refinements
   Breakpoints: 860 layout · 700 phone · 620 doc tables · 560 footer · 400 xs
   ============================================================ */

/* ---------- 860px: tighten vertical rhythm, IR sidebar becomes chips ---------- */
@media (max-width: 860px) {
    /* The copy spans the full width here, so the overlay has to be weighted
       vertically instead of to the left. */
    .hero-slide::after {
        background:
            linear-gradient(180deg, rgba(6, 20, 34, .62) 0%, rgba(6, 20, 34, .52) 45%, rgba(6, 20, 34, .86) 100%),
            linear-gradient(95deg, rgba(6, 20, 34, .52) 0%, rgba(6, 20, 34, .34) 70%, rgba(6, 20, 34, .20) 100%);
    }
    .hero-arrow { width: 40px; height: 40px; }
    .hero-arrow-prev { left: .6rem; }
    .hero-arrow-next { right: .6rem; }

    .section { padding: 3rem 0; }
    .page-hero { padding: 2.5rem 0; }
    .split, .ir-strip-inner { gap: 2rem; }
    .facility-row { gap: 1.6rem; margin-bottom: 2.4rem; }
    .ir-layout { gap: 1.6rem; }
    /* Stacked above the list, the category nav reads better as a chip row. */
    .ir-sidebar { padding: 1rem; }
    .ir-side-link {
        border: 1px solid var(--line); background: #fff; border-radius: 99px;
        padding: .42rem .85rem; font-size: .84rem;
    }
    .ir-side-group { width: 100%; margin: .7rem .2rem .1rem; }
    .division-photo { grid-column: auto; }
}

/* ---------- 700px: phone ---------- */
@media (max-width: 700px) {
    /* Justified body copy on phones, as requested. hyphens:auto is doing real
       work here — justifying a narrow measure without it opens up large word
       gaps ("rivers"). It relies on the lang="en" already set on <html>.
       Applied to prose only: justifying a column of nav links would stretch
       each one edge to edge. */
    .split-text p,
    .footer-about p,
    .footer-contact .footer-contact-line { text-align: justify; -webkit-hyphens: auto; hyphens: auto; }
    .split-text p:first-of-type { font-size: 1rem; }
    /* CIN/GSTIN are identifiers, not prose — left aligned and never hyphenated.
       Needs the .footer-about prefix to outrank `.footer-about p` above. */
    .footer-about p.footer-meta { text-align: left; -webkit-hyphens: manual; hyphens: manual; }

    .section { padding: 2.4rem 0; }
    .section-head { margin-bottom: 1.8rem; }
    .page-hero { padding: 2rem 0; }
    .hero { min-height: 380px; }
    .hero-content { padding: 2.6rem 0; }
    .hero-content p { font-size: .98rem; margin: .9rem 0 1.4rem; }
    .hero-dots { bottom: 1rem; }
    .topbar { font-size: .84rem; }
    .topbar-left { gap: .45rem 1rem; flex-wrap: wrap; }
    .brand-logo { height: 46px; }

    /* Body copy: 12–13px is too small to read comfortably on a phone. */
    .footer-col a, .footer-col p { font-size: .92rem; }
    .footer-col a { padding: .4rem 0; }          /* also a real tap target */
    .footer-meta { font-size: .82rem; }
    .footer-bottom { font-size: .82rem; }
    .breadcrumb { font-size: .82rem; }
    .product-card p, .cert-card p { font-size: .9rem; }
    .ir-cat-card p { font-size: .88rem; }
    .job-meta { font-size: .85rem; }
    .doc-table { font-size: .92rem; }
    .card-link, .division-link, .ir-cat-count { font-size: .88rem; }
    .person-card .person-role { font-size: .85rem; }
    .page-img figcaption, .client-logo figcaption { font-size: .85rem; }
    .contact-item p, .rta-box p, .ir-contact-box p { font-size: .95rem; }

    /* Investor categories inside the mobile nav panel: 12.8px is too small to
       read or tap in a list of 20. */
    .dropdown-menu a { font-size: .9rem; }
    .dropdown-menu .dropdown-head { font-size: .84rem; }
    .badge { font-size: .72rem; }
    .ir-doc-text small { font-size: .8rem; }
    .hero-dots { gap: .5rem; bottom: 1rem; }

    /* 16px inputs stop iOS Safari zooming the page on focus. */
    .form-group input, .form-group textarea, .form-group select,
    .ir-filters input[type="search"], .ir-filters select { font-size: 16px; }
    .ir-filters { gap: .5rem; }
    .ir-filters input[type="search"] { min-width: 0; flex: 1 1 100%; }
    .ir-filters select, .ir-filters .btn { flex: 1 1 auto; }

    /* Roomy desktop padding wastes scarce width on a phone. */
    .contact-form-wrap { padding: 1.2rem; }
    .ir-contact-box { padding: 1.3rem; gap: 1.4rem; }
    .cert-card { padding: 1.3rem; }
    .ir-cat-card { padding: 1.2rem; }
    .spec-box { padding: 1.1rem 1.2rem; }
    .rta-box { padding: 1.2rem 1.3rem; margin-top: 1.6rem; }
    .job-card summary { padding: 1rem 1.1rem; }
    .job-body { padding: 1.1rem; }
    .product-detail-side { padding: 1.2rem; }
    .info-cards { margin-top: 1.6rem; gap: .8rem; }

    /* Two gallery tiles per row beats one giant image per screen. */
    .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(145px, 1fr)); gap: .7rem; }
    .gallery-item img { height: 145px; }
    .card-scroller .product-card-img { height: 240px; }
    .division-block { margin-bottom: 2.2rem; }
    .division-title { font-size: 1.15rem; }
    .facility-text h2, .contact-info h2, .contact-form-wrap h2 { font-size: 1.2rem; }
    .facility-ph { min-height: 190px; }
    .media-card-a { min-height: 220px; }
    .media-card { min-height: 130px; }
    .error-page { padding: 3.5rem 0; }
    .error-code { font-size: 4rem; }
    .lightbox { padding: 1rem; }
    .lightbox-close { top: .4rem; right: .7rem; font-size: 2.8rem; }
}

/* ---------- Touch devices: comfortable tap targets ----------
   Keyed on the input device, not width — a portrait iPad is 768px wide and
   still driven by a thumb, while a narrow desktop window has a mouse and
   doesn't need any of this. */
/* Narrow touch screens: the dots are the better control, and the arrows would
   sit over the copy. */
@media (pointer: coarse) and (max-width: 560px) {
    .hero-arrow { display: none; }
}

@media (pointer: coarse) {
    /* Hover never fires on touch, so the arrows would otherwise stay invisible;
       show them at rest instead. */
    .hero-arrow { opacity: .85; }

    /* Inline contact links need a tappable box, not just a text baseline —
       tap-to-mail/tap-to-call is a primary mobile action. */
    .contact-item a, .person-card a, .ir-contact-box a { display: inline-block; padding: .3rem 0; }
    .card-link, .division-link { display: inline-block; padding: .5rem 0; }
    .footer-col a { padding: .4rem 0; }
    .btn { padding: .78rem 1.4rem; }
    .btn-small { padding: .5rem 1rem; font-size: .84rem; }
    .filter-tab { padding: .55rem 1.1rem; }
    .pagination a { min-width: 42px; padding: .55rem .7rem; }
    .dropdown-menu a { padding: .5rem .55rem; }
    .ir-side-link { padding: .5rem .9rem; }

    /* The slider dots are 42x4px bars — far too small to hit with a thumb. A
       transparent inset overlay grows the touch area to ~30px tall while the
       painted bar keeps its designed shape (padding + background-clip would
       instead let the active dot's glow render as a chunky block). */
    .hero-dot { position: relative; }
    .hero-dot::after { content: ''; position: absolute; inset: -13px -6px; }

    /* Hover lifts don't fire on touch and can leave a card stuck raised. */
    .product-card:hover, .media-card:hover, .ir-cat-card:hover { transform: none; }
}

/* ---------- 620px: investor document tables restack as cards ----------
   The <td>s already carry data-label, so the header row can be dropped and
   each label reintroduced per cell. Beats sideways scrolling on the pages
   that matter most. */
@media (max-width: 620px) {
    .doc-table-wrap { overflow-x: visible; border: 0; background: none; border-radius: 0; }
    .doc-table { font-size: .9rem; }
    .doc-table thead { display: none; }
    .doc-table, .doc-table tbody, .doc-table td { display: block; width: 100%; }
    /* Two columns so the short metadata cells (FY/Qtr + Date, or Category +
       Date) pair up instead of each taking a full row — roughly a quarter off
       the card height across a 20-row listing. */
    .doc-table tr {
        display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
        background: var(--white); border: 1px solid var(--line); border-radius: 10px;
        margin-bottom: .8rem; overflow: hidden;
    }
    .doc-table td:first-child, .doc-table td:last-child { grid-column: 1 / -1; }
    .doc-table td:nth-child(2) { border-right: 1px solid #eef3f7; }
    /* Undated sections drop the FY/Qtr column, leaving three cells. The middle
       one is then the only metadata cell, so it takes the full width instead of
       sitting in a half-width slot beside an empty one. */
    .doc-table td:nth-child(2):nth-last-child(2) { grid-column: 1 / -1; border-right: 0; }
    .doc-table tr:hover td { background: transparent; }
    .doc-table td {
        border-top: 0; border-bottom: 1px solid #eef3f7;
        padding: .55rem .9rem; overflow-wrap: anywhere;
    }
    .doc-table td::before {
        content: attr(data-label); display: block;
        font-size: .66rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase;
        color: var(--muted); margin-bottom: .1rem;
    }
    /* First cell is the row heading; last holds the download button. */
    .doc-table td:first-child { background: #f7fbfd; font-weight: 700; color: var(--navy); }
    .doc-table td:last-child { border-bottom: 0; padding: .75rem .9rem; }
    .doc-table td:last-child::before { content: none; }
    .doc-table td:last-child .btn { display: block; text-align: center; }
    .doc-table td:empty { display: none; }
}

/* ---------- 560px: footer to one column ---------- */
@media (max-width: 560px) {
    .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 1.6rem; padding: 2.2rem 0 1.6rem; }
    .footer-bottom .container { flex-direction: column; gap: .3rem; }
    .client-logos { gap: .9rem; }
    .client-logo img, .client-logo-placeholder { width: 76px; height: 76px; }
    .info-cards { grid-template-columns: minmax(0, 1fr); }
    .contact-people { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- 400px: small phones ---------- */
@media (max-width: 400px) {
    .container { width: min(1180px, 100% - 1.6rem); }
    .section { padding: 2rem 0; }
    /* Stats stay 2x2 even here — the labels are short, and four stacked
       full-width colour bands eat most of a screen. */
    .stat { padding: 1.1rem .6rem; }
    .stat-value { font-size: 1.6rem; }
    .stat-label { font-size: .76rem; }
    .stat-note { display: none; }   /* the label alone carries it at this width */
    .credentials-inner { grid-template-columns: minmax(0, 1fr); }
    .split-media { grid-template-columns: minmax(0, 1fr); }
    .media-card-a { grid-row: auto; min-height: 160px; }
    .gallery-grid { grid-template-columns: minmax(0, 1fr); }
    .gallery-item img { height: 200px; }
    .client-logos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .filter-tabs { gap: .4rem; }
    .filter-tab { padding: .5rem .9rem; font-size: .8rem; }
    .hero-content h1 { font-size: 1.75rem; }
}

/* ============================================================
   Simple document list (list_style = 'list')
   ============================================================
   The old site's presentation for announcement-style sections: the linked
   title is the whole row, since the title already carries the date and the
   metadata columns would sit empty. */
.doc-list { list-style: none; margin: 0 0 1.4rem; padding: 0; }
.doc-year-group > .doc-list { margin-bottom: 1.4rem; }
.doc-list li { border-bottom: 1px solid var(--line); }
.doc-list li:last-child { border-bottom: 0; }
.doc-list a {
    display: flex; align-items: baseline; gap: .7rem;
    padding: .7rem .3rem .7rem 1.4rem; position: relative;
    color: var(--navy); text-decoration: none; line-height: 1.55;
    transition: color .15s, background .15s;
}
/* Disc marker, drawn rather than inherited so it lines up with the text. */
.doc-list a::before {
    content: ''; position: absolute; left: .35rem; top: 1.1em;
    width: 5px; height: 5px; border-radius: 50%; background: var(--teal); flex-shrink: 0;
}
.doc-list a:hover, .doc-list a:focus-visible { color: var(--teal-dark); background: var(--bg-alt); }
.doc-list a:hover .doc-list-title { text-decoration: underline; }
.doc-list a:focus-visible { outline: 2px solid var(--teal); outline-offset: -2px; }
.doc-list-title { flex: 1; min-width: 0; font-weight: 600; overflow-wrap: anywhere; }
/* File-type marker, standing in for the old site's pdf.png icon. */
.doc-list-type {
    flex-shrink: 0; align-self: center;
    font-size: .62rem; font-weight: 800; letter-spacing: .05em;
    background: #fdecec; color: #b3261e; border: 1px solid #f4cfcb;
    border-radius: 4px; padding: .12rem .35rem; min-width: 2.6rem; text-align: center;
}

@media (max-width: 560px) {
    .doc-list a { padding-left: 1.1rem; gap: .5rem; }
    .doc-list-title { font-size: .92rem; }
}

@media (prefers-reduced-motion: reduce) {
    .doc-list a { transition: none; }
}

/* Visually hidden, still read by screen readers. */
.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
