/* ==========================================================================
   Venpo · the ISO 27001 hub (/iso-27001)

   The hub is a full guide to the standard, not the Annex A index the control
   pages hang off, so it carries a second stylesheet on top of pub/iso.css.
   Load order is pub.css → iso.css → this file: the hub still renders the
   Annex A index (.iso-index*, .iso-panel) and the supplier-cluster cards
   (.iso-cluster*) out of iso.css, and only what is unique to the guide lives
   here. Every rule is scoped under .iso-hub, the way tools.css scopes under
   .tls, so nothing leaks into another public page body.

   TYPE. The hub's fonts and sizes are pub.css's, like every other public
   page (Val, 3 Nov: no custom fonts, the other public pages' fonts and
   sizes). Body text inherits pub.css's system sans at 14px; ids, dates, tags
   and kickers carry pub.css's own classes in the template (.mono, .kick,
   .chip, .freshness, .sh for the section heads), so no rule here names a
   font family. Where an element needs a size of its own, it is the size
   pub.css gives the same role, and the rule says which.

   PALETTE. The July prototype was written in its own indigo (#4f46e5), mint
   (#6ee7b7) and navy. None of that survives: purple accents are --purple /
   --purple-soft / --purple-line, positive is --pos, and the dark bands are
   --ink with white text at the alphas the graph band (pub.css .bandin) and
   the tools closing band (tools.css .tls-cta) already use. The two rgba()
   literals below are --purple-line (#ddd3f0) at low alpha, which a custom
   property cannot express without color-mix().

   THEMES. The four Annex A themes need four telling-apart colours in three
   places at once — the stacked bar in the "two halves" card, its legend, and
   the four theme cards. They are four pub tokens, mapped once here and read
   from the Blade template as --iso-th-*; nothing else invents a colour.

   pub.css reaches into any page body with a handful of bare-element rules.
   `section { padding: 64px 0 0; scroll-margin-top: 26px }` and `a { color }`
   are both wrong here and are reset below; `table` / `thead th` / `tbody td`
   are wanted, and drive the Annex A index inside the <details>.
   ========================================================================== */

.iso-hub {
    --iso-th-org: var(--purple);
    --iso-th-ppl: var(--pos);
    --iso-th-phy: var(--amber);
    --iso-th-tech: var(--ink);

    /* Text on the --ink bands. */
    --iso-on-ink: rgba(255, 255, 255, .72);
    --iso-on-ink-dim: rgba(255, 255, 255, .56);
    --iso-on-ink-faint: rgba(255, 255, 255, .4);
    --iso-on-ink-line: rgba(255, 255, 255, .11);
    --iso-on-ink-wash: rgba(255, 255, 255, .04);

    /* The accent on a dark band: --purple-line reads as a pale lavender at
       12.9:1 on --ink, where --purple itself would go muddy. */
    --iso-accent: var(--purple-line);
    --iso-accent-wash: rgba(221, 211, 240, .08);
    --iso-accent-line: rgba(221, 211, 240, .3);
}

/* The guide's sections are stacked blocks that carry their own padding, and
   every one of them is an anchor target for the sticky bar: 66px of fixed
   header (chrome.css .chrome-clear) + 46px of anchor bar + a little air.
   iso.css already zeroes `section` at (0,1,1), so the padding below has to be
   re-stated at (0,2,0) to outrank it. */
.iso-hub section { padding: 0; scroll-margin-top: 124px; }
/* The browser's heading and paragraph margins go; at no specificity beyond
   the page root, so pub.css's own .sh p / .endcta p spacing and every
   margin set below still apply. */
.iso-hub :where(h1, h2, h3, p) { margin: 0; }

/* --------------------------------------------------------------------------
   Hero — a full-bleed --ink band under the fixed header
   -------------------------------------------------------------------------- */
.iso-hub-hero {
    background: var(--ink);
    color: #fff;
    padding: 74px 0 78px;
    overflow: hidden;
}
.iso-hub-hero-inner {
    display: grid;
    grid-template-columns: 1.08fr .92fr;
    gap: 44px;
    align-items: center;
}
.iso-hub-hero-copy { min-width: 0; }
/* pub.css's page hero, .phead h1. */
.iso-hub-hero h1 {
    font-size: 46px;
    font-weight: 700;
    line-height: 1.04;
    letter-spacing: -1.7px;
    color: #fff;
    text-wrap: balance;
}
.iso-hub-hero h1 .iso-hub-accent { color: var(--iso-accent); }
/* pub.css's hero lede, .phead p. */
.iso-hub-lede {
    margin-top: 24px;
    max-width: 56ch;
    font-size: 16.5px;
    line-height: 1.6;
    color: var(--iso-on-ink);
    text-wrap: pretty;
}
.iso-hub-lede b { color: #fff; font-weight: 600; }

/* The stage is an illustration of what the guide is about, captioned as one.
   Only the dot field is decorative enough to hide from assistive tech. */
.iso-hub-stage { position: relative; min-width: 0; }
.iso-hub-chips { position: relative; min-height: 356px; }
.iso-hub-dots {
    position: absolute;
    inset: -24px;
    background-image: radial-gradient(rgba(255, 255, 255, .16) 1.2px, transparent 1.2px);
    background-size: 19px 19px;
    -webkit-mask-image: radial-gradient(circle at 56% 48%, #000, transparent 70%);
    mask-image: radial-gradient(circle at 56% 48%, #000, transparent 70%);
    pointer-events: none;
}
.iso-hub-chip {
    position: absolute;
    width: 238px;
    padding: 14px 16px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: 0 24px 50px -24px rgba(21, 19, 28, .5);
}
.iso-hub-chip-1 { top: 2px; right: 6px; transform: rotate(-2.4deg); }
.iso-hub-chip-2 { top: 150px; left: -6px; width: 252px; z-index: 3; transform: rotate(1.7deg); }
.iso-hub-chip-3 { bottom: 0; right: 24px; width: 226px; transform: rotate(2.2deg); }
.iso-hub-chip-row { display: flex; align-items: center; gap: 8px; }
/* Type from pub.css .chip, which the template puts on both. */
.iso-hub-chip-tag { padding: 3px 7px; border-radius: 6px; background: var(--purple-soft); color: var(--purple-deep); }
.iso-hub-chip-yes { margin-left: auto; color: var(--pos); }
/* A card title and its meta line, as pub.css's .ev b / .ctr em. */
.iso-hub-chip-title { margin-top: 11px; font-weight: 600; line-height: 1.35; color: var(--ink); }
.iso-hub-chip-sub { margin-top: 3px; font-size: 12px; color: var(--dim); }
.iso-hub-chip-vendor { display: flex; align-items: center; gap: 9px; }
.iso-hub-chip-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    flex: none;
    border-radius: 7px;
    background: var(--soft);
    color: var(--muted);
}
.iso-hub-chip-name { font-weight: 600; color: var(--ink); }
.iso-hub-chip-body { margin-top: 9px; font-size: 12.5px; line-height: 1.4; color: var(--body); }
/* A date in .mono, at pub.css's 10.5px for ids and dates in a row. */
.iso-hub-chip-when { margin-top: 7px; font-size: 10.5px; color: var(--dim); }
.iso-hub-chip-soa {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--ink);
}
.iso-hub-chip-scope { font-weight: 700; color: var(--purple); white-space: nowrap; }
.iso-hub-chip-bar {
    height: 7px;
    margin-top: 11px;
    border-radius: 999px;
    background: var(--soft);
    overflow: hidden;
}
/* Decorative: the chip names the Statement of Applicability, it does not
   report a count, so the fill is a fixed slice and carries no figure. */
.iso-hub-chip-bar i { display: block; width: 72%; height: 100%; border-radius: 999px; background: var(--purple); }
.iso-hub-illus {
    margin-top: 18px;
    font-size: 12px;
    color: var(--iso-on-ink-faint);
}

/* --------------------------------------------------------------------------
   Sticky anchor bar — it parks under the 66px fixed header
   -------------------------------------------------------------------------- */
.iso-hub-anchors {
    position: sticky;
    top: 66px;
    z-index: 20;
    background: rgba(250, 250, 253, .86);
    backdrop-filter: saturate(150%) blur(10px);
    -webkit-backdrop-filter: saturate(150%) blur(10px);
    border-bottom: 1px solid var(--border);
}
.iso-hub-anchors-inner {
    display: flex;
    align-items: center;
    gap: 24px;
    padding-top: 13px;
    padding-bottom: 13px;
    overflow-x: auto;
    scrollbar-width: none;
}
.iso-hub-anchors-inner::-webkit-scrollbar { display: none; }
/* Two row labels in .mono, set like pub.css's table heads (thead th), as
   iso.css sets the control pages' "On this page" label. */
.iso-hub-anchors-label,
.iso-hub-aligns-label {
    flex: none;
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: .13em;
    text-transform: uppercase;
    color: var(--faint);
    white-space: nowrap;
}
/* pub.css's section rail links, .srail a. */
.iso-hub-anchors-inner a {
    flex: none;
    font-size: 13px;
    font-weight: 500;
    color: var(--body);
    white-space: nowrap;
}
.iso-hub-anchors-inner a:hover { color: var(--purple); }

/* --------------------------------------------------------------------------
   One standard, two halves
   -------------------------------------------------------------------------- */
.iso-hub-halves-intro { margin: 50px 0 0; max-width: 840px; }
/* A heading over two cards and its line, as pub.css's .endcta h3 / .sh p. */
.iso-hub-halves-intro b { display: block; font-size: 20px; font-weight: 600; letter-spacing: -.5px; color: var(--ink); }
.iso-hub-halves-intro span { display: block; margin-top: 8px; font-size: 14.5px; line-height: 1.6; color: var(--muted); }
.iso-hub-halves { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 24px; }
.iso-hub-half {
    position: relative;
    padding: 28px 30px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: var(--shadow);
    overflow: hidden;
}
/* A 3px rule across the top: flat --ink for the mandatory half, and for the
   Annex A half the same four theme colours the stacked bar below it uses,
   split at the real control counts (the gradient is built in Blade). */
.iso-hub-half::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; }
.iso-hub-half-clauses::before { background: var(--ink); }
.iso-hub-half-annex::before { background: var(--iso-theme-bar); }
/* pub.css's card heading, .endcta h3. */
.iso-hub-half h3 { margin-top: 14px; font-size: 20px; font-weight: 600; letter-spacing: -.5px; color: var(--ink); }
.iso-hub-half h3 .iso-hub-accent { color: var(--purple); }
.iso-hub-half-sub { margin-top: 7px; font-size: 14.5px; color: var(--muted); }
/* pub.css's .kick, laid out as a row so the badge sits in front of it. */
.iso-hub-kick { display: flex; align-items: center; gap: 10px; }
/* A pill label in .mono, as pub.css's .freshness. */
.iso-hub-badge {
    padding: 4px 9px;
    border-radius: 999px;
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}
.iso-hub-badge-must { background: var(--soft); color: var(--ink); }
.iso-hub-badge-risk { background: var(--purple-soft); color: var(--purple-deep); }
.iso-hub-clause-list { list-style: none; margin: 20px 0 0; padding: 0; }
.iso-hub-clause-list li {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 9px 0;
    border-top: 1px solid var(--soft);
    font-weight: 600;
    color: var(--ink);
}
.iso-hub-clause-list li:first-child { padding-top: 2px; border-top: none; }
/* A number on an --ink tile in .mono: pub.css's current pager page, .pg.on. */
.iso-hub-clause-list .iso-hub-cn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    flex: none;
    border-radius: 7px;
    background: var(--ink);
    color: #fff;
    font-size: 12px;
    font-weight: 500;
}
.iso-hub-stack { display: flex; gap: 2px; height: 42px; margin-top: 22px; border-radius: 10px; overflow: hidden; }
/* White counts in .mono on a coloured fill, as pub.css's .num / .tip b. */
.iso-hub-stack span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    overflow: hidden;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
}
/* Named apart from pub.css's chart .legend, which is a flex row of pills. */
.iso-hub-themes { display: grid; grid-template-columns: 1fr 1fr; gap: 13px 20px; margin-top: 20px; }
.iso-hub-themes > div { display: flex; align-items: center; gap: 9px; color: var(--body); }
.iso-hub-themes i { width: 9px; height: 9px; flex: none; border-radius: 3px; }
.iso-hub-themes b {
    margin-left: auto;
    font-size: 13px;
    font-weight: 700;
    color: var(--ink);
    font-variant-numeric: tabular-nums;
}
.iso-hub-note {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--soft);
    font-size: 12.5px;
    line-height: 1.5;
    color: var(--muted);
}

/* --------------------------------------------------------------------------
   At a glance + aligns-with
   -------------------------------------------------------------------------- */
.iso-hub-stats {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    margin-top: 22px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: var(--shadow);
    overflow: hidden;
}
.iso-hub-stats > div { padding: 24px 28px; border-left: 1px solid var(--soft); }
.iso-hub-stats > div:first-child { border-left: none; }
/* The figure and its label: pub.css's vendor vitals, .ctr b / .ctr span. */
.iso-hub-stats b { display: block; font-size: 34px; font-weight: 600; line-height: 1; letter-spacing: -1px; color: var(--ink); }
.iso-hub-stats span { display: block; margin-top: 8px; font-size: 13px; font-weight: 600; color: var(--ink); }
.iso-hub-aligns {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 28px;
    padding-top: 26px;
    border-top: 1px solid var(--border);
}
.iso-hub-aligns-label { margin-right: 6px; }
/* Framework names in a pill: pub.css's filter pill, .ft. */
.iso-hub-aligns span:not(.iso-hub-aligns-label) {
    padding: 5px 12px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: #fff;
    font-size: 13px;
    font-weight: 500;
    color: var(--muted);
}
/* The overlap row's qualifier: the chips name frameworks that share controls and evidence with ISO 27001, not ones the certificate covers. */
.iso-hub .iso-hub-aligns-note { flex-basis: 100%; font-style: normal; font-size: 12.5px; color: var(--dim); }

/* --------------------------------------------------------------------------
   Sections + prose
   The section heads are pub.css's .sh (h2 + p) as they stand.
   -------------------------------------------------------------------------- */
.iso-hub .iso-hub-sec { padding: 70px 0 0; }
/* Reading text at pub.css's paragraph size, .faq p, so the guide's prose and
   its FAQ answers read alike. */
.iso-hub-prose { max-width: 760px; margin-top: 26px; }
.iso-hub-prose p { font-size: 14.5px; line-height: 1.65; color: var(--body); text-wrap: pretty; }
.iso-hub-prose p + p { margin-top: 20px; }
.iso-hub-prose b { color: var(--ink); font-weight: 600; }

/* --------------------------------------------------------------------------
   Why it matters — four cards
   -------------------------------------------------------------------------- */
.iso-hub-why { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 40px; }
.iso-hub-why article {
    padding: 26px 24px 28px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--shadow);
    transition: border-color .15s ease, transform .15s ease;
}
.iso-hub-why article:hover { border-color: var(--purple-line); transform: translateY(-2px); }
/* pub.css's .kick, with its number in front. */
.iso-hub-why-kick { display: flex; align-items: center; gap: 8px; }
.iso-hub-why-kick i { font-style: normal; color: var(--faint); }
/* A card title (pub.css .rch2) over secondary copy (.mcol p). */
.iso-hub-why h3 { margin: 16px 0 11px; font-size: 15.5px; font-weight: 600; letter-spacing: -.3px; line-height: 1.4; color: var(--ink); }
.iso-hub-why p { font-size: 13.5px; line-height: 1.6; color: var(--body); text-wrap: pretty; }

/* --------------------------------------------------------------------------
   The management clauses — a dark tabbed panel

   NO-JS FALLBACK. The tab strip is hidden and every clause panel is shown
   until pub/iso-hub.js puts .iso-hub--tabs on the page root; a reader without
   JavaScript gets all seven clauses stacked, and never an inert control.
   -------------------------------------------------------------------------- */
.iso-hub-clauses { background: var(--ink); border-radius: 26px; overflow: hidden; margin-top: 40px; }
/* A .sh head on the dark card; the tab strip below spaces itself. */
.iso-hub-clauses-head { margin-bottom: 0; padding: 46px 48px 0; }
.iso-hub-clauses-head h2 { color: #fff; }
.iso-hub-clauses-head p { color: var(--iso-on-ink-dim); }
.iso-hub-tabs { display: none; }
.iso-hub--tabs .iso-hub-tabs {
    display: flex;
    gap: 2px;
    margin-top: 28px;
    padding: 0 48px;
    border-bottom: 1px solid var(--iso-on-ink-line);
    overflow-x: auto;
    scrollbar-width: none;
}
.iso-hub-tabs::-webkit-scrollbar { display: none; }
/* Button type as pub.css's buttons (.btn); the clause number in .mono at
   pub.css's 12px for numbers (.pg). */
.iso-hub-tab {
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
    flex: none;
    margin-bottom: -1px;
    padding: 15px 12px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    font-size: 13.5px;
    font-weight: 600;
    color: rgba(255, 255, 255, .5);
    white-space: nowrap;
    transition: color .15s ease;
}
.iso-hub-tab i {
    font-style: normal;
    font-size: 12px;
    font-weight: 500;
    color: rgba(255, 255, 255, .38);
}
.iso-hub-tab:hover { color: rgba(255, 255, 255, .82); }
.iso-hub-tab.is-active { color: #fff; border-bottom-color: var(--iso-accent); }
.iso-hub-tab.is-active i { color: var(--iso-accent); }
.iso-hub-tab:focus-visible { outline: 2px solid var(--iso-accent); outline-offset: -4px; }
.iso-hub-panels { min-height: 258px; }
.iso-hub-panel { display: grid; grid-template-columns: .92fr 1.08fr; gap: 52px; padding: 42px 48px 48px; }
.iso-hub--tabs .iso-hub-panel { display: none; }
.iso-hub--tabs .iso-hub-panel.is-active { display: grid; }
.iso-hub-panel:focus-visible { outline: 2px solid var(--iso-accent); outline-offset: -4px; }
/* The clause number is a figure (pub.css .ctr b), its name a card heading
   (.endcta h3), its summary the dark band's paragraph (.bandtxt p). */
.iso-hub-panel-num { font-size: 34px; font-weight: 600; line-height: 1; letter-spacing: -1px; color: rgba(255, 255, 255, .15); }
.iso-hub-panel h3 { margin-top: 12px; font-size: 20px; font-weight: 600; letter-spacing: -.5px; color: #fff; }
.iso-hub-panel > div > p { margin-top: 12px; max-width: 34ch; line-height: 1.62; color: var(--iso-on-ink-dim); }
.iso-hub-panel-items { display: flex; flex-direction: column; align-self: center; min-width: 0; }
.iso-hub-panel-items > div {
    display: flex;
    align-items: baseline;
    gap: 16px;
    padding: 15px 0;
    border-top: 1px solid rgba(255, 255, 255, .09);
    line-height: 1.45;
    color: rgba(255, 255, 255, .86);
}
.iso-hub-panel-items > div:first-child { padding-top: 0; border-top: none; }
/* A clause id in .mono, at pub.css's 12px for numbers (.pg). */
.iso-hub-panel-items b {
    flex: none;
    min-width: 32px;
    font-size: 12px;
    font-weight: 500;
    color: var(--iso-accent);
}

/* --------------------------------------------------------------------------
   Annex A — four theme cards, then the full 93 in a <details>
   -------------------------------------------------------------------------- */
.iso-hub-annex { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 40px; }
.iso-hub-annex article {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 24px 24px 26px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--shadow);
    overflow: hidden;
}
.iso-hub-annex article::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--iso-tc); }
.iso-hub-annex-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
/* The theme's clause in .mono (pub.css .last), its control count a figure
   (pub.css's stat tile, .stx b). */
.iso-hub-annex-ref { font-size: 12px; font-weight: 500; color: var(--dim); }
.iso-hub-annex-count { font-size: 32px; font-weight: 600; line-height: 1; letter-spacing: -1.1px; color: var(--iso-tc); }
.iso-hub-annex h3 { margin: 10px 0 9px; font-size: 15.5px; font-weight: 600; letter-spacing: -.3px; color: var(--ink); }
.iso-hub-annex p { flex: 1; font-size: 13px; line-height: 1.55; color: var(--body); text-wrap: pretty; }
.iso-hub-annex-ex { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
/* Control tags in .mono, at pub.css's 11px (.src). */
.iso-hub-annex-ex span {
    padding: 4px 8px;
    background: var(--paper);
    border: 1px solid var(--soft);
    border-radius: 7px;
    font-size: 11px;
    color: var(--body);
}
.iso-hub-all { margin-top: 26px; }
/* A "see all" link: pub.css's .tlfoot a. */
.iso-hub-all > summary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    cursor: pointer;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--purple);
}
.iso-hub-all > summary::-webkit-details-marker { display: none; }
.iso-hub-all > summary::after {
    content: "";
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--purple);
    border-bottom: 2px solid var(--purple);
    transform: rotate(45deg) translate(-2px, -2px);
    transition: transform .2s ease;
}
.iso-hub-all[open] > summary::after { transform: rotate(-135deg); }
.iso-hub-all .iso-index { margin: 22px 0 0; }

/* The supplier-cluster cards come out of iso.css; only the outer margin is
   this page's, since the guide spaces its sections rather than its blocks. */
.iso-hub-cluster .iso-cluster { margin: 40px 0 0; }

/* --------------------------------------------------------------------------
   What changed in 2022 — a dark comparison card
   -------------------------------------------------------------------------- */
.iso-hub-changed { margin-top: 40px; padding: 44px 48px 48px; background: var(--ink); border-radius: 22px; color: #fff; }
/* The card's lede, as pub.css's .vlead. */
.iso-hub-changed-intro { max-width: 68ch; font-size: 16px; line-height: 1.6; color: rgba(255, 255, 255, .82); text-wrap: pretty; }
.iso-hub-compare { display: grid; grid-template-columns: 1fr auto 1fr; gap: 22px; align-items: stretch; margin-top: 30px; }
.iso-hub-compare > div:not(.iso-hub-compare-arrow) {
    display: flex;
    flex-direction: column;
    padding: 24px 26px;
    background: var(--iso-on-ink-wash);
    border: 1px solid var(--iso-on-ink-line);
    border-radius: 16px;
}
.iso-hub-compare > div.iso-hub-compare-new { background: var(--iso-accent-wash); border-color: var(--iso-accent-line); }
/* pub.css's .kick on the dark card; the rows below space themselves. */
.iso-hub-compare-tag { margin-bottom: 0; color: var(--iso-on-ink-dim); }
.iso-hub-compare-new .iso-hub-compare-tag { color: var(--iso-accent); }
/* The figures as pub.css's .ctr b; their notes in .mono at 12px (.last). */
.iso-hub-compare-row { display: flex; align-items: baseline; gap: 9px; margin-top: 14px; color: var(--iso-on-ink); }
.iso-hub-compare-row b { font-size: 34px; font-weight: 600; line-height: 1; letter-spacing: -1px; color: #fff; }
.iso-hub-compare-row span { font-size: 12px; color: var(--iso-on-ink-dim); }
.iso-hub-compare-note { margin-top: auto; padding-top: 16px; font-size: 12.5px; line-height: 1.5; color: var(--iso-on-ink-dim); }
.iso-hub-compare-arrow { align-self: center; font-size: 26px; color: var(--iso-on-ink-faint); }
.iso-hub-changed-why { margin-top: 32px; padding-top: 30px; border-top: 1px solid rgba(255, 255, 255, .12); }
.iso-hub-changed-why > .kick { margin-bottom: 20px; color: var(--iso-accent); }
/* Three numbered points: pub.css's method columns, .mcol .n / h4 / p. */
.iso-hub-points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.iso-hub-points > div { display: flex; gap: 14px; }
.iso-hub-points i {
    flex: none;
    padding-top: 2px;
    font-style: normal;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .14em;
    color: var(--iso-accent);
}
.iso-hub-points b { display: block; margin-bottom: 6px; font-weight: 600; color: #fff; }
.iso-hub-points span { font-size: 13px; line-height: 1.55; color: rgba(255, 255, 255, .6); }

/* --------------------------------------------------------------------------
   How certification works — five steps
   Numbered columns, as pub.css's .mcol .n / h4; the body a step smaller to
   fit five across.
   -------------------------------------------------------------------------- */
.iso-hub-steps {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    margin-top: 40px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--shadow);
    overflow: hidden;
}
.iso-hub-steps > div { position: relative; padding: 26px 24px 28px; border-left: 1px solid var(--soft); }
.iso-hub-steps > div:first-child { border-left: none; }
.iso-hub-step-n { font-size: 10px; font-weight: 700; letter-spacing: .14em; color: var(--purple); }
.iso-hub-step-title { margin: 14px 0 9px; font-weight: 600; line-height: 1.3; color: var(--ink); }
.iso-hub-step-body { font-size: 13px; line-height: 1.55; color: var(--body); text-wrap: pretty; }

/* --------------------------------------------------------------------------
   In practice — the product block and its live rows
   -------------------------------------------------------------------------- */
.iso-hub-prod { display: grid; grid-template-columns: .82fr 1.18fr; gap: 56px; align-items: center; }
.iso-hub-prod-copy { min-width: 0; }
.iso-hub-prod-controls { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
/* Control tags in .mono, at pub.css's 11.5px (.chip). */
.iso-hub-prod-controls a,
.iso-hub-prod-controls span {
    padding: 7px 11px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 11.5px;
    color: var(--body);
}
.iso-hub-prod-controls a:hover { border-color: var(--purple-line); color: var(--purple); }
.iso-hub-mock {
    min-width: 0;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 44px 90px -46px rgba(21, 19, 28, .4);
    overflow: hidden;
}
.iso-hub-mock-head { display: flex; align-items: center; gap: 9px; padding: 15px 18px; border-bottom: 1px solid var(--soft); }
.iso-hub-mock-head b { font-weight: 600; color: var(--ink); }
.iso-hub-mock-head span { font-size: 12.5px; color: var(--dim); }
/* pub.css's .freshness pill, pushed to the end of the head. */
.iso-hub-mock-live { margin-left: auto; }
/* A change row: pub.css's .frow b / .ev .head, the tag a .chip and the date
   in .mono at 10.5px (.rcv i). */
.iso-hub-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    padding: 15px 18px;
    border-bottom: 1px solid var(--soft);
    color: var(--ink);
}
.iso-hub-row > div { min-width: 0; }
a.iso-hub-row:hover { background: var(--paper); color: var(--ink); }
.iso-hub-row-fav {
    width: 34px;
    height: 34px;
    flex: none;
    padding: 6px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 9px;
    object-fit: contain;
}
.iso-hub-row-glyph { display: flex; align-items: center; justify-content: center; color: var(--faint); }
.iso-hub-row-name { display: flex; align-items: center; gap: 9px; min-width: 0; font-weight: 600; color: var(--ink); }
.iso-hub-row-name > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.iso-hub-row-tag { flex: none; padding: 2px 7px; border-radius: 5px; background: var(--purple-soft); color: var(--purple-deep); }
.iso-hub-row-head { margin-top: 4px; font-size: 13.5px; line-height: 1.45; color: var(--body); overflow-wrap: anywhere; }
.iso-hub-row-when {
    flex: none;
    font-size: 10.5px;
    color: var(--dim);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
/* A source line in .mono, as pub.css's .src. */
.iso-hub-mock-foot {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 13px 18px;
    background: var(--paper);
    font-size: 11px;
    color: var(--muted);
}
.iso-hub-mock-foot i { width: 6px; height: 6px; flex: none; border-radius: 50%; background: var(--purple); }

/* --------------------------------------------------------------------------
   FAQ + close
   pub.css's .faq/.chev inside pub.css's .panel, as the control pages do.
   -------------------------------------------------------------------------- */
.iso-hub-faq { max-width: 820px; margin-top: 32px; }
.iso-hub .endcta { margin-top: 56px; }
.iso-hub-cta-btns { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.iso-hub-disclaimer {
    max-width: 70ch;
    margin-top: 56px;
    padding-top: 26px;
    border-top: 1px solid var(--border);
    font-size: 12.5px;
    line-height: 1.55;
    color: var(--muted);
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1080px) {
    .iso-hub-why { grid-template-columns: 1fr 1fr; }
    .iso-hub-annex { grid-template-columns: 1fr 1fr; }
    .iso-hub-stats { grid-template-columns: repeat(3, 1fr); }
    .iso-hub-stats > div:nth-child(4) { border-left: none; }
    .iso-hub-stats > div:nth-child(n+4) { border-top: 1px solid var(--soft); }
}

@media (max-width: 960px) {
    .iso-hub-hero-inner,
    .iso-hub-prod { grid-template-columns: 1fr; gap: 34px; }
    .iso-hub-hero { padding: 56px 0 62px; }
    .iso-hub-stage { display: none; }
    .iso-hub-halves { grid-template-columns: 1fr; }
    .iso-hub-clauses-head { padding: 36px 26px 0; }
    .iso-hub--tabs .iso-hub-tabs { padding: 0 26px; }
    .iso-hub-panel,
    .iso-hub--tabs .iso-hub-panel.is-active { grid-template-columns: 1fr; gap: 22px; padding: 32px 26px 38px; }
    .iso-hub-changed { padding: 34px 26px 36px; }
    .iso-hub-compare { grid-template-columns: 1fr; }
    .iso-hub-compare-arrow { justify-self: center; transform: rotate(90deg); }
    .iso-hub-points { grid-template-columns: 1fr; gap: 20px; }
    .iso-hub-steps { grid-template-columns: 1fr; }
    .iso-hub-steps > div { border-left: none; border-top: 1px solid var(--soft); }
    .iso-hub-steps > div:first-child { border-top: none; }
}

@media (max-width: 768px) {
    /* chrome.css drops the fixed header to 56px here, so the bar and every
       anchor target move up with it. */
    .iso-hub-anchors { top: 56px; }
    .iso-hub section { scroll-margin-top: 114px; }
    .iso-hub .iso-hub-sec { padding-top: 54px; }
}

@media (max-width: 640px) {
    /* pub.css's .wrap keeps 40px gutters at every width; 22px is what the
       other ported pages use on a phone (tools.css .tls-wrap, iso.css
       .iso-layout). */
    .iso-hub .wrap { padding: 0 22px; }
    /* "ISO 27001:2022," is one unbreakable 15-character token, so the hero
       type comes down with the gutters or it pushes the body sideways: to the
       control pages' hero h1 (iso.css .iso-hero h1), the vendor profile's
       38px at most. */
    .iso-hub-hero h1 { font-size: clamp(27px, 5.2vw, 38px); letter-spacing: -1.1px; }
    .iso-hub-why,
    .iso-hub-stats { grid-template-columns: 1fr; }
    .iso-hub-stats > div { border-left: none; border-top: 1px solid var(--soft); }
    .iso-hub-stats > div:first-child { border-top: none; }
    .iso-hub-annex { grid-template-columns: 1fr; }
    .iso-hub-themes { grid-template-columns: 1fr; }
    .iso-hub-half { padding: 24px 22px; }
    .iso-hub-mock-head span { display: none; }
    /* The three columns still fit at 390px once the favicon tile, the gaps
       and the row padding come in; the headline wraps into what is left. */
    .iso-hub-row { gap: 11px; padding: 13px 15px; }
    .iso-hub-row-fav { width: 28px; height: 28px; padding: 4px; }
}

@media (max-width: 560px) {
    /* Eight horizontally-scrolling links is worse than none; the sections are
       one scroll apart on a phone anyway. */
    .iso-hub-anchors { display: none; }
    .iso-hub section { scroll-margin-top: 68px; }
}
