/* ============================================================
   /argus explainer page. The hero reuses the argus-band classes
   from argus-home.css; everything below the hero is a light page,
   so the feed rows get a light re-skin here.
   ============================================================ */

/* Breathing room between the fixed nav and the floating hero card. Padding, not margin:
   a top margin on the first section collapses through <main> into the layout wrapper's
   own margin-top and never renders, leaving the card flush against the nav. */
.argus-page {
    padding-top: 32px;
}

/* ---------- Breadcrumb — quiet utility row between the hero and the body ---------- */

.argus-crumbs {
    margin-bottom: 0; /* the body's own top padding provides the gap below */
}

.argus-crumbs ol {
    list-style: none;
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
    font-size: 0.82rem;
    color: #281e32;
}

.argus-crumbs li + li::before {
    content: "\203A"; /* › */
    margin: 0 9px;
    color: #c9c4d4;
}

.argus-crumbs a {
    color: #8a8494;
    text-decoration: none;
    transition: color 0.15s ease;
}

.argus-crumbs a:hover {
    color: #fe5001;
}

.argus-crumbs li[aria-current="page"] {
    font-weight: 600;
}

.argus-page-hero {
    max-width: 720px;
    padding: 24px 0;
}

.argus-page-hero .argus-band-sub {
    max-width: 56ch;
}

/* ---------- CMS / fallback body ---------- */

.argus-page-body {
    padding-top: 24px;
    padding-bottom: 8px;
    line-height: 1.65;
}

/* Sticky analytics rail beside the text column; the text keeps its ~860px measure
   and the rail puts the remaining container width to work. */
.argus-body-grid {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 48px;
    align-items: start; /* required for the sticky rail — a stretched grid item can't stick */
}

.argus-body-content {
    max-width: 860px;
}

.argus-body-content > h2:first-child {
    margin-top: 0; /* top-align the content with the rail card */
}

.argus-page-body h2 {
    font-size: 1.45rem;
    font-weight: 800;
    margin: 28px 0 12px;
}

.argus-page-body h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 6px;
}

/* ---------- Analytics rail card ----------
   A miniature of the Argus band: same dark gradient and watching-eye radar motif,
   so the rail reads as Argus's own instrument panel, not another white content card. */

.argus-stats-card {
    position: sticky;
    top: 84px; /* clears the fixed top bar */
    overflow: hidden;
    background: linear-gradient(160deg, #1a1f36 0%, #281e32 55%, #2d1b3e 100%);
    border-radius: 16px;
    padding: 22px 24px;
    box-shadow: 0 10px 30px rgba(20, 24, 36, 0.18);
    color: #f4f5f8;
}

/* The eye, scaled down from .argus-band::before */
.argus-stats-card::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 86% 6%, rgba(255, 107, 53, 0.16) 0%, transparent 34%),
        repeating-radial-gradient(circle at 86% 6%, transparent 0 22px, rgba(255, 107, 53, 0.06) 22px 24px, transparent 24px 48px);
}

/* Lift the content above the ::before overlay */
.argus-stats-title,
.argus-stats-list {
    position: relative;
}

.argus-stats-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #ff8a5c;
    margin-bottom: 6px;
}

/* On the instrument panel the dot is the watching eye, not a generic "online" light —
   it pulses in the Argus ember to match the eyebrow and the radar motif. */
.argus-stats-title .argus-live-dot {
    background: #ff8a5c;
    box-shadow: 0 0 0 0 rgba(255, 138, 92, 0.55);
    animation-name: argus-ember-pulse; /* keeps the base rule's 2.2s ease-out timing */
}

@keyframes argus-ember-pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 138, 92, 0.55); }
    70% { box-shadow: 0 0 0 7px rgba(255, 138, 92, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 138, 92, 0); }
}

/* The scoped animation-name outranks argus-home.css's blanket "animation: none",
   so reduced motion has to be re-honored here. */
@media (prefers-reduced-motion: reduce) {
    .argus-stats-title .argus-live-dot {
        animation: none;
    }
}

.argus-stats-list {
    margin: 0;
}

.argus-stat {
    display: flex;
    flex-direction: column-reverse; /* the number (dd) reads above its label (dt) */
    padding: 12px 0;
}

.argus-stat + .argus-stat {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.argus-stat dd {
    margin: 0;
    font-size: 1.7rem;
    font-weight: 800;
    line-height: 1.15;
    color: #ffffff;
    font-variant-numeric: tabular-nums;
}

.argus-stat dt {
    font-size: 0.82rem;
    color: #b8bfd0;
}

.argus-stat--positive dd {
    color: #1ca57a;
}

@media (max-width: 991px) {
    .argus-body-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .argus-stats-card {
        position: static; /* no rail to stick to in a single column */
    }

    .argus-stats-list {
        display: flex;
        flex-wrap: wrap;
        gap: 0 32px;
    }

    .argus-stat + .argus-stat {
        border-top: 0;
    }
}

/* ---------- How-it-works steps ---------- */

.argus-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 16px;
    margin: 18px 0 8px;
}

.argus-step {
    padding: 18px;
    border: 1px solid #e8e6ef;
    border-radius: 12px;
    background: #fafafc;
}

.argus-step p {
    font-size: 0.9rem;
    color: #5a5566;
    margin-bottom: 0;
}

.argus-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #ff6b1a;
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 800;
    margin-bottom: 10px;
}

/* ---------- CMS body content blocks ----------
   The /argus body is CMS-authored (StaticPage slug "argus") against these
   classes; the styles ship with the site so the content team can reuse the
   blocks without touching CSS. */

.argus-lead {
    font-size: 1.08rem;
    color: #281e32;
}

/* Evidence row — one real change, in the same dress as the home band's feed
   rows (badge + summary on the dark gradient), so the example IS the product */
.argus-exhibit {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 18px 0 10px;
    padding: 16px 18px;
    border-radius: 12px;
    background: linear-gradient(135deg, #1a1f36 0%, #281e32 60%, #2d1b3e 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.argus-exhibit-badge {
    flex-shrink: 0;
    min-width: 44px;
    text-align: center;
    padding: 5px 8px;
    border-radius: 8px;
    background: #c2283a;
    color: #ffffff;
    font-size: 0.92rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.argus-exhibit-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.argus-exhibit-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #9aa3b8;
}

.argus-exhibit-fact {
    margin: 0;
    font-size: 1.02rem;
    line-height: 1.45;
    color: #eef0f5;
    font-variant-numeric: tabular-nums;
}

.argus-exhibit-fact s {
    color: #7c869e;
    text-decoration-color: rgba(216, 53, 69, 0.7);
    text-decoration-thickness: 2px;
}

.argus-exhibit-fact strong {
    color: #ffffff;
}

.argus-exhibit-arrow {
    color: #ff8a5c;
    font-weight: 700;
}

.argus-exhibit-note {
    margin: 2px 0 0;
    font-size: 0.85rem;
    color: #7c869e;
}

/* ---------- The console ----------
   The machinery sections (how it works + the severity scale) share one dark
   band in the home band's language — same gradient, same watching eye — so
   the explainer's centerpiece is unmistakably Argus's own instrument panel. */

.argus-console {
    position: relative;
    overflow: hidden;
    margin: 22px 0 14px;
    padding: 26px 28px 28px;
    border-radius: 16px;
    background: linear-gradient(135deg, #1a1f36 0%, #281e32 50%, #2d1b3e 100%);
    box-shadow: 0 10px 30px rgba(20, 24, 36, 0.18);
    color: #b8bfd0;
}

.argus-console::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 90% 4%, rgba(255, 107, 53, 0.16) 0%, transparent 30%),
        repeating-radial-gradient(circle at 90% 4%, transparent 0 34px, rgba(255, 107, 53, 0.05) 34px 36px, transparent 36px 70px);
}

.argus-console > * {
    position: relative; /* lift everything above the ::before overlay */
}

.argus-page-body .argus-console h2 {
    margin: 0 0 10px;
    color: #ffffff;
}

.argus-console-divider {
    height: 1px;
    overflow: hidden;
    font-size: 0; /* the editor pads emptied divs with &nbsp; */
    background: rgba(255, 255, 255, 0.1);
    margin: 24px 0 22px;
}

.argus-console-note {
    margin: 14px 0 0;
    font-size: 0.9rem;
    color: #b8bfd0;
}

/* ---------- Process flow: the 1 → 2 → 3 → 4 pipeline ----------
   The four stages ride a dashed signal line across the console; the machinery
   nodes are ember, and the final "Publish" node flips to the live green the
   rest of the site uses for "public and watching" (live dot, player-friendly). */

.argus-flow {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin: 24px 0 4px;
}

.argus-flow-step {
    position: relative;
}

/* The signal line from this node to the next */
.argus-flow-step:not(:last-child)::before {
    content: "";
    position: absolute;
    top: 17px;
    left: 42px;
    right: -14px;
    border-top: 2px dashed rgba(255, 138, 92, 0.35);
}

.argus-flow-num {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #ff6b1a;
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 800;
    margin-bottom: 12px;
    box-shadow: 0 0 0 4px rgba(255, 107, 26, 0.16);
}

.argus-flow-step--live .argus-flow-num {
    background: #1ca57a;
    box-shadow: 0 0 0 4px rgba(28, 165, 122, 0.18);
}

.argus-flow-step h3 {
    color: #ffffff;
    margin-bottom: 6px;
}

.argus-flow-step p {
    margin: 0;
    font-size: 0.87rem;
    line-height: 1.55;
    color: #b8bfd0;
}

/* Below tablet the pipeline stands upright: nodes on the left rail, the same
   dashed line running down between them */
@media (max-width: 767px) {
    .argus-flow {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .argus-flow-step {
        padding: 0 0 22px 50px;
    }

    .argus-flow-step:not(:last-child)::before {
        top: 40px;
        bottom: 6px;
        left: 16px;
        right: auto;
        border-top: 0;
        border-left: 2px dashed rgba(255, 138, 92, 0.35);
    }

    .argus-flow-num {
        position: absolute;
        left: 0;
        top: 0;
        margin-bottom: 0;
    }
}

@media (max-width: 575px) {
    .argus-console {
        padding: 20px 18px 22px;
    }
}

/* ---------- Severity spectrum (lives inside the console) ----------
   Segments are sized to their actual score ranges (21 points from −10 to +10);
   the legend pills are the same badge dress the home band's feed rows wear
   (.argus-sev-badge colors), so the scale teaches the exact visual language
   the records speak. */

.argus-scale {
    margin: 16px 0 0;
}

/* The CMS editor deletes empty spans on save, so the bar is one childless div
   with the five segments painted as a hard-stop gradient. Ranges are the real
   score proportions out of 21 points: 4 / 3 / 3 / 1 / 10, with hairline gaps. */
.argus-scale-bar {
    height: 16px;
    border-radius: 8px;
    overflow: hidden;
    font-size: 0; /* the editor pads emptied divs with &nbsp; */
    background: linear-gradient(90deg,
        #c2283a 0 18.9%, transparent 18.9% 19.25%,
        #d94a2b 19.25% 33.2%, transparent 33.2% 33.55%,
        #d9760a 33.55% 47.45%, transparent 47.45% 47.8%,
        #5a6478 47.8% 52.2%, transparent 52.2% 52.55%,
        #1f9d57 52.55%, #15803d 100%);
}

.argus-scale-ends {
    display: flex;
    justify-content: space-between;
    margin-top: 6px;
    font-size: 0.78rem;
    color: #7c869e;
    font-variant-numeric: tabular-nums;
}

.argus-scale-legend {
    list-style: none;
    display: grid;
    gap: 10px;
    margin: 16px 0 0;
    padding: 0;
}

.argus-scale-legend li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.92rem;
    color: #b8bfd0;
}

.argus-scale-desc {
    margin: 0;
}

.argus-scale-legend strong {
    color: #ffffff;
}

.argus-scale-pill {
    flex-shrink: 0;
    min-width: 84px;
    text-align: center;
    padding: 4px 10px;
    border-radius: 8px;
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.argus-scale-pill--critical { background: #c2283a; }
.argus-scale-pill--high     { background: #d94a2b; }
.argus-scale-pill--minor    { background: #d9760a; }
.argus-scale-pill--neutral  { background: #5a6478; }
.argus-scale-pill--positive { background: #1ca57a; }

@media (max-width: 575px) {
    .argus-scale-legend li {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
}

/* ---------- Record anatomy ----------
   Each card previews its part of the real record page as a miniature CSS
   wireframe (verdict band, before/after panes, diff lines, archived shot),
   so the section shows the anatomy instead of describing it. */

.argus-anatomy {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    margin: 18px 0 8px;
}

.argus-anatomy-item {
    border: 1px solid #e8e6ef;
    border-radius: 12px;
    background: #ffffff;
    overflow: hidden;
}

.argus-anatomy-body {
    padding: 14px 18px 16px;
}

.argus-anatomy-item p {
    margin: 0;
    font-size: 0.9rem;
    color: #5a5566;
}

/* The wireframe "text" lines and dots are PAINTED as background layers on the
   fig containers — the CMS editor deletes empty spans on save, so nothing
   decorative may be an element. The base fig doubles as the diff wireframe. */
.argus-anatomy-fig {
    position: relative;
    height: 96px;
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    background-color: #fafafc;
    border-bottom: 1px solid #e8e6ef;
    font-size: 0; /* the editor pads emptied containers with &nbsp; */
    background-image:
        linear-gradient(#e3e0ec, #e3e0ec),
        linear-gradient(rgba(216, 53, 69, 0.35), rgba(216, 53, 69, 0.35)),
        linear-gradient(rgba(28, 165, 122, 0.4), rgba(28, 165, 122, 0.4)),
        linear-gradient(#e3e0ec, #e3e0ec);
    background-size: 100% 7px, 80% 7px, 80% 7px, 60% 7px;
    background-position: 0 11px, 0 25px, 0 39px, 0 53px;
    background-repeat: no-repeat;
    background-origin: content-box;
}

/* Verdict wireframe — the record page's dark verdict band in miniature:
   surviving badge on top, two light text lines painted below it */
.argus-anatomy-fig--verdict {
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.22)),
        linear-gradient(rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.22)),
        linear-gradient(135deg, #1a1f36 0%, #2d1b3e 100%);
    background-size: 80% 7px, 60% 7px, cover;
    background-position: 0 42px, 0 56px, center;
    background-origin: content-box, content-box, border-box;
}

.argus-fig-badge {
    align-self: flex-start;
    padding: 2px 8px;
    border-radius: 6px;
    background: #c2283a;
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

/* Before/after wireframe — two panes, old wording struck red, new added green */
.argus-anatomy-fig--split {
    flex-direction: row;
    align-items: stretch;
    gap: 12px;
    background-image: none; /* panes carry their own painted lines */
}

.argus-fig-pane {
    flex: 1;
    padding: 8px 10px;
    background-color: #ffffff;
    border: 1px solid #e8e6ef;
    border-radius: 8px;
    background-repeat: no-repeat;
    background-origin: content-box;
}

.argus-anatomy-fig--split .argus-fig-pane:first-child {
    background-image:
        linear-gradient(#e3e0ec, #e3e0ec),
        linear-gradient(rgba(216, 53, 69, 0.35), rgba(216, 53, 69, 0.35));
    background-size: 100% 6px, 80% 6px;
    background-position: 0 22px, 0 34px;
}

.argus-anatomy-fig--split .argus-fig-pane:last-child {
    background-image:
        linear-gradient(#e3e0ec, #e3e0ec),
        linear-gradient(rgba(28, 165, 122, 0.4), rgba(28, 165, 122, 0.4));
    background-size: 100% 6px, 60% 6px;
    background-position: 0 22px, 0 34px;
}

.argus-fig-pane-label {
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #8a8494;
}

/* Evidence wireframe — browser-chrome dots + page lines, painted; the
   surviving ARCHIVED stamp sits on top */
.argus-anatomy-fig--shot {
    background-image:
        radial-gradient(circle at 3px 3px, #d9d5e3 0 3px, transparent 3px),
        radial-gradient(circle at 3px 3px, #d9d5e3 0 3px, transparent 3px),
        radial-gradient(circle at 3px 3px, #d9d5e3 0 3px, transparent 3px),
        linear-gradient(#e3e0ec, #e3e0ec),
        linear-gradient(#e3e0ec, #e3e0ec);
    background-size: 6px 6px, 6px 6px, 6px 6px, 80% 7px, 60% 7px;
    background-position: 0 0, 10px 0, 20px 0, 0 18px, 0 32px;
}

/* Emptied shell on already-saved records; the dots are painted on the fig now */
.argus-fig-chrome {
    display: none;
}

.argus-fig-stamp {
    position: absolute;
    right: 12px;
    bottom: 10px;
    transform: rotate(-8deg);
    padding: 2px 7px;
    border: 2px solid #fe5001;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.85);
    color: #fe5001;
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

/* ---------- Trust charter ----------
   The three pledges share one compact dark strip — the same dress as the
   console, so the page bookends dark — each led by a check ring in the
   "verified" green the Publish node and live dot already speak. */

.argus-charter {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin: 18px 0 8px;
    padding: 22px 24px;
    border-radius: 16px;
    background: linear-gradient(135deg, #1a1f36 0%, #281e32 50%, #2d1b3e 100%);
    box-shadow: 0 10px 30px rgba(20, 24, 36, 0.18);
}

.argus-charter::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(circle at 92% 8%, rgba(255, 107, 53, 0.12) 0%, transparent 34%);
}

.argus-charter-tenet {
    position: relative;
}

/* Hairline dividers between tenets, like the home band's stat dividers */
.argus-charter-tenet + .argus-charter-tenet::before {
    content: "";
    position: absolute;
    top: 4px;
    bottom: 4px;
    left: -12px;
    width: 1px;
    background: rgba(255, 255, 255, 0.12);
}

.argus-charter-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 2px solid #1ca57a;
    color: #1ca57a;
    font-size: 0.85rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.argus-charter-tenet h3 {
    color: #ffffff;
    margin-bottom: 4px;
}

.argus-charter-tenet p {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.55;
    color: #b8bfd0;
}

@media (max-width: 767px) {
    .argus-charter {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .argus-charter-tenet + .argus-charter-tenet::before {
        top: -9px;
        bottom: auto;
        left: 0;
        right: 0;
        width: auto;
        height: 1px;
    }
}

/* ---------- FAQ — native details/summary, no JS ----------
   Card accordion: each question is its own soft card; the circular toggle
   fills ember and rotates + → × when open, and the open card lifts to white
   with an ember-tinted border. */

.argus-faq {
    display: grid;
    gap: 10px;
    margin-top: 18px;
}

.argus-faq details {
    border: 1px solid #e8e6ef;
    border-radius: 12px;
    background: #fafafc;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.argus-faq details:hover {
    border-color: #d9d5e3;
}

.argus-faq details[open] {
    background: #ffffff;
    border-color: rgba(254, 80, 1, 0.35);
}

.argus-faq summary {
    position: relative;
    list-style: none;
    cursor: pointer;
    padding: 14px 44px 14px 18px;
    font-weight: 700;
    color: #281e32;
    transition: color 0.15s ease;
}

.argus-faq summary::-webkit-details-marker {
    display: none;
}

/* Toggle: an Argus eye. Closed question = resting eyelid (flat dash);
   opening the question opens the eye — the dash morphs into the ember
   watching-dot, pulsing like the stats card's. */
.argus-faq summary::after {
    content: "";
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    width: 14px;
    height: 2px;
    border-radius: 2px;
    background: #c9c4d4;
    transition: width 0.2s ease, height 0.2s ease, border-radius 0.2s ease,
                background 0.2s ease, right 0.2s ease;
}

.argus-faq summary:hover::after {
    background: #fe5001;
}

.argus-faq details[open] summary::after {
    right: 21px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #fe5001;
    animation: argus-ember-pulse 2.2s ease-out infinite;
}

.argus-faq summary:hover {
    color: #fe5001;
}

.argus-faq summary:focus-visible {
    outline: 2px solid #fe5001;
    outline-offset: 2px;
    border-radius: 10px;
}

.argus-faq details p {
    margin: 0;
    padding: 0 18px 16px 18px;
    max-width: 70ch;
    font-size: 0.95rem;
    color: #5a5566;
}

@media (prefers-reduced-motion: reduce) {
    .argus-faq summary::after {
        transition: none;
        animation: none;
    }
}

/* ---------- Latest-changes section ----------
   The cards themselves are the /terms-changes listing cards: _TcChangeCard partial +
   .vg-tc-section wrapper (which declares the vg-card custom props) + .vg-tc-grid,
   all from tc-change.css. Only the section label and CTA are styled here. */

.argus-page-latest .argus-feed-label {
    max-width: 1180px; /* align with .vg-tc-grid's centered track */
    margin: 0 auto 18px;
    color: #8a8494;
}

.argus-page-cta {
    margin-top: 34px;
    text-align: center;
}