/* GEN house tokens, copied from https://www.globalemancipation.ngo/assets/css/gen.css
   (captured 2026-10-18; see BRAND_NOTES.md). Use --gen-teal for decoration only:
   text uses --gen-teal-text and fills behind white text use --gen-teal-solid. */
:root {
  --gen-navy: #0D2240;
  --gen-navy-2: #132C52;
  --gen-navy-line: rgba(13, 34, 64, 0.16);
  --gen-teal: #2A9D8F;
  --gen-teal-text: #20776C;
  --gen-teal-solid: #238377;
  --gen-teal-solid-hover: #1C6B61;
  --gen-teal-dim: rgba(42, 157, 143, 0.16);
  --gen-gold: #E9C46A;
  --gen-gold-dim: rgba(233, 196, 106, 0.35);
  --gen-frost: #F4F6F9;
  --gen-frost-2: #E7ECF1;
  --gen-white: #FFFFFF;
  --gen-text-dim: rgba(13, 34, 64, 0.66);
  --gen-text-light: #F4F6F9;
  --gen-text-light-dim: rgba(244, 246, 249, 0.72);
  --gen-font: Calibri, Candara, "Segoe UI", Optima, Arial, sans-serif;
  --gen-radius: 2px;
  --gen-radius-card: 3px;
  --gen-wrap-max: 1180px;

  /* Prototype roles mapped onto GEN's palette. --hold is prototype-only: GEN's site has no "held" state. */
  --canvas: var(--gen-frost-2);
  --paper: var(--gen-frost);
  --ink: var(--gen-navy);
  --muted: var(--gen-text-dim);
  --line: var(--gen-navy-line);
  --deep: var(--gen-teal-text);
  --soft: var(--gen-teal-dim);
  --hold: #7A4A12;
  --hold-bg: var(--gen-gold-dim);
  --unmeasured: rgba(13, 34, 64, 0.08);
  --focus: var(--gen-teal-text);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--canvas); color: var(--ink); font: 16px/1.5 var(--gen-font); }
::selection { background: var(--deep); color: #fff; }
button { font: inherit; cursor: pointer; }
button:focus-visible, a:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
a { color: var(--deep); text-underline-offset: .18em; }
.skip-link { position: absolute; left: 1rem; top: -5rem; z-index: 10; padding: .7rem 1rem; background: var(--paper); }
.skip-link:focus { top: 1rem; }
.wordmark { font-family: var(--gen-font); font-size: 1.55rem; font-weight: 700; letter-spacing: -.025em; }
.wordmark span { font-weight: 400; }
h1, h2, h3, p { overflow-wrap: anywhere; }
h1 { max-width: 14ch; margin: 0; font: 700 clamp(2.5rem, 5vw, 4.6rem)/1.05 var(--gen-font); letter-spacing: -.035em; text-wrap: balance; }
.print-button { flex: 0 0 auto; margin-top: .25rem; padding: .6rem .9rem; border: 1px solid var(--deep); border-radius: var(--gen-radius); color: var(--deep); background: transparent; font-weight: 600; font-size: .85rem; white-space: nowrap; }
.print-button:hover { background: var(--soft); }
.claims-section { margin-top: 3.75rem; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.2rem; }
.section-head h2, .detail-section h2 { margin: 0; font: 700 clamp(1.6rem, 2.5vw, 2.2rem)/1.16 var(--gen-font); letter-spacing: -.02em; }
.section-head p { max-width: 68ch; margin: .36rem 0 0; color: var(--muted); font-size: .88rem; }
.table-scroll { overflow-x: auto; }
.claim-table { width: 100%; border-collapse: collapse; text-align: left; }
.claim-table th { padding: .65rem .55rem .7rem 0; border-bottom: 1px solid var(--ink); color: var(--muted); font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .065em; }
.claim-table td { padding: 1.04rem .55rem 1.04rem 0; border-bottom: 1px solid var(--line); vertical-align: middle; }
.claim-table tr:last-child td { border-bottom: 1px solid var(--line); }
.claim-table td:nth-child(2) { white-space: nowrap; color: var(--deep); font-variant-numeric: tabular-nums; }
.claim-select { padding: 0; border: 0; background: transparent; color: var(--ink); text-align: left; font-weight: 650; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: .25rem; }
.claim-select:hover, .claim-select.is-selected { color: var(--deep); text-decoration-color: currentColor; }
.value-figure { font: 700 1.35rem/1.1 var(--gen-font); }
.value-unit { margin-left: .35rem; color: var(--muted); font-size: .75rem; }
dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 1.5rem; margin: 1.3rem 0 0; }
dt { color: var(--muted); font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
dd { margin: .23rem 0 0; font-size: .9rem; }
.decision-section { margin-top: 4.2rem; }
.audience-note { max-width: 75ch; padding: 1rem 1.2rem; border: 1px solid var(--line); color: var(--ink); background: var(--gen-frost-2); font-size: .93rem; }
.audience-note strong { color: var(--deep); }
.quality-panel { margin-top: 1.7rem; }
.quality-panel p { margin: .25rem 0 .8rem; color: var(--muted); font-size: .85rem; }
.quality-panel ul { display: grid; gap: .35rem; padding: 0; margin: 0; list-style: none; }
.quality-panel li { display: flex; justify-content: space-between; gap: .5rem; padding: .48rem .7rem; background: var(--hold-bg); color: var(--hold); font-size: .8rem; }
.quality-panel li span:first-child { font-variant-numeric: tabular-nums; font-weight: 700; }
.report-footer { display: flex; justify-content: space-between; gap: 1.5rem; margin-top: 4.5rem; padding-top: 1rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .73rem; }
.report-footer span { color: var(--deep); font-weight: 700; }
.report-footer p { margin: 0; }
.studio-grid { display: grid; grid-template-columns: minmax(270px, .82fr) minmax(0, 1.18fr); gap: clamp(1.4rem, 3vw, 3.4rem); align-items: start; }
.input-panel, .output-panel { min-width: 0; }
.input-panel { padding: 1.5rem; border: 1px solid var(--line); background: var(--gen-frost-2); }
.eyebrow { color: var(--deep); font-size: .73rem; font-weight: 750; letter-spacing: .09em; text-transform: uppercase; }
.panel-head h2 { margin: .35rem 0 0; font: 700 clamp(1.6rem, 2.5vw, 2.25rem)/1.16 var(--gen-font); letter-spacing: -.02em; }
.panel-head p { margin: .5rem 0 1.3rem; color: var(--muted); font-size: .85rem; }
.input-panel fieldset { margin: 0; padding: 1rem 0; border: 0; border-top: 1px solid var(--line); }
.input-panel legend { padding: .2rem 0; color: var(--deep); font-size: .82rem; font-weight: 750; }
.field-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; margin: .65rem 0; }
.field-pair label { min-width: 0; color: var(--muted); font-size: .76rem; font-weight: 650; }
.field-pair input { display: block; width: 100%; margin-top: .27rem; padding: .52rem .55rem; border: 1px solid var(--line); border-radius: var(--gen-radius); background: #fff; color: var(--ink); font: 600 .91rem/1.3 ui-monospace, SFMono-Regular, Menlo, monospace; font-variant-numeric: tabular-nums; }
.field-pair input:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.check { display: flex; gap: .55rem; align-items: flex-start; margin: .52rem 0; color: var(--ink); font-size: .83rem; line-height: 1.35; cursor: pointer; }
.check input { margin-top: .17rem; accent-color: var(--deep); }
.run-button { display: flex; justify-content: space-between; width: 100%; padding: .85rem 1rem; border: 0; border-radius: var(--gen-radius); background: var(--gen-teal-solid); color: white; font-weight: 700; text-align: left; }
.run-button:hover { background: var(--gen-teal-solid-hover); }
.run-button:disabled { cursor: wait; opacity: .65; }
.form-help { margin: .7rem 0 0; color: var(--muted); font-size: .74rem; }
.scenario-source { margin: -.65rem 0 .85rem; color: var(--deep); font: 700 .72rem/1.35 ui-monospace, SFMono-Regular, Menlo, monospace; overflow-wrap: anywhere; }
.status-line { min-height: 1.5rem; margin: 1.1rem 0 .8rem; color: var(--muted); font-size: .8rem; }
.claim-box { padding: 1.15rem 1.3rem; border-top: 1px solid var(--deep); background: var(--soft); }
.claim-box .eyebrow { margin: 0; }
#claim-text { margin: .35rem 0 .7rem; font: 700 1.2rem/1.36 var(--gen-font); }
#claim-boundary { margin: 0; color: var(--hold); font-size: .78rem; font-weight: 650; }
.metric-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem; margin-top: 1rem; }
.metric-card { display: flex; flex-direction: column; min-width: 0; padding: .75rem .85rem; border: 1px solid var(--line); }
.metric-card span { color: var(--muted); font-size: .72rem; font-weight: 650; }
.metric-card strong { margin: .12rem 0; color: var(--deep); font: 700 1.65rem/1.1 var(--gen-font); font-variant-numeric: tabular-nums; }
.metric-card small { color: var(--muted); font-size: .7rem; }
.trace-list { display: grid; gap: 0; margin: 1.6rem 0 0; padding: 0; list-style: none; }
.trace-step { padding: .9rem 0 1rem; border-top: 1px solid var(--line); }
.trace-top { display: flex; gap: .65rem; align-items: baseline; }
.trace-number { color: var(--muted); font: 700 .74rem ui-monospace, SFMono-Regular, Menlo, monospace; }
.trace-top h3 { flex: 1; margin: 0; font: 700 1.16rem var(--gen-font); }
.trace-status { padding: .13rem .45rem; border-radius: 20px; background: var(--hold-bg); color: var(--hold); font-size: .65rem; font-weight: 750; text-transform: uppercase; letter-spacing: .06em; }
.trace-observed .trace-status, .trace-eligible .trace-status { background: var(--soft); color: var(--deep); }
.trace-step p { margin: .4rem 0 0 1.9rem; font-size: .79rem; line-height: 1.42; }
.trace-finding { color: var(--ink); font-weight: 650; }
.trace-reason { color: var(--muted); }
.trace-next { color: var(--deep); }
.ledger-body { background: var(--canvas); }
.app-shell { max-width: 1440px; min-height: 100vh; margin: auto; background: var(--paper); }
.app-topbar { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: 14px clamp(22px, 5vw, 4.5rem); border-bottom: 1px solid var(--gen-navy-line); background: var(--gen-frost); color: var(--gen-navy); }
.app-topbar .wordmark { display: flex; align-items: center; gap: 10px; min-height: 44px; color: inherit; font-size: 14px; letter-spacing: .02em; text-decoration: none; white-space: nowrap; text-transform: uppercase; }
.app-topbar .wordmark img { height: 32px; width: auto; aspect-ratio: 1091 / 820; }
.app-topbar .wordmark span { color: var(--gen-teal-text); font-weight: 700; }
.app-topbar nav { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem; }
.app-topbar nav a, .app-topbar nav span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 .7rem; border-radius: var(--gen-radius); color: var(--gen-navy); font-size: 14px; font-weight: 400; text-decoration: none; }
.app-topbar nav a:hover { color: var(--gen-teal-text); }
.app-topbar nav span { color: var(--gen-teal-text); font-weight: 700; }
.app-main { max-width: 1180px; margin: auto; padding: 2.7rem clamp(1.25rem, 4vw, 3.5rem) 2rem; }
.ledger-intro { display: flex; align-items: end; justify-content: space-between; gap: 1.5rem; }
.ledger-intro h1 { max-width: none; font-size: clamp(2.65rem, 4vw, 3.6rem); }
.ledger-intro p { margin: .55rem 0 0; color: var(--muted); font-size: .97rem; }
.ledger-intro .ledger-demo { flex: 0 0 auto; margin: 0 0 .22rem; padding: .36rem .65rem; border-radius: 20px; background: var(--hold-bg); color: var(--hold); font-size: .72rem; font-weight: 700; }
.ledger-workspace { margin-top: 2rem; }
.ledger-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.ledger-view-switch { display: flex; flex-wrap: wrap; gap: .35rem; }
.ledger-view-switch button { padding: .54rem .95rem; border: 1px solid var(--line); border-radius: var(--gen-radius); background: transparent; color: var(--deep); font-size: .86rem; font-weight: 700; white-space: nowrap; }
.ledger-view-switch button[aria-pressed="true"] { border-color: var(--deep); background: var(--gen-teal-solid); color: white; }
.ledger-view-switch button:hover:not([aria-pressed="true"]) { background: var(--soft); }
.brief-link { flex: 0 0 auto; color: var(--deep); font-size: .85rem; font-weight: 700; }
.brief-link[hidden] { display: none; }
.ledger-view-note { margin: .65rem 0 1.1rem; color: var(--muted); font-size: .83rem; }
.ledger-status { margin: 0 0 .8rem; color: var(--hold); font-size: .82rem; }
.ledger-status:empty { display: none; }
.ledger-grid { display: grid; grid-template-columns: minmax(245px, .76fr) minmax(0, 1.34fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ledger-list-panel { min-width: 0; border-right: 1px solid var(--line); }
.ledger-list-head { display: flex; align-items: baseline; justify-content: space-between; gap: .5rem; padding: 1.15rem 1.1rem .85rem; }
.ledger-list-head h2 { margin: 0; font: 700 1.32rem var(--gen-font); }
.ledger-list-head span { color: var(--muted); font-size: .73rem; white-space: nowrap; }
.ledger-claim-list { display: grid; }
.ledger-claim-button { display: grid; gap: .08rem; padding: .82rem 1.1rem; border: 0; border-top: 1px solid var(--line); background: transparent; color: var(--ink); text-align: left; }
.ledger-claim-button:hover { background: var(--gen-frost-2); }
.ledger-claim-button.is-selected { background: var(--soft); }
.ledger-claim-heading { font-size: .85rem; font-weight: 700; }
.ledger-claim-button strong { color: var(--deep); font: 700 1.16rem/1.15 var(--gen-font); font-variant-numeric: tabular-nums; }
.ledger-claim-button small { margin-top: .14rem; color: var(--deep); font-size: .7rem; font-weight: 700; }
.ledger-claim-button small.is-held { color: var(--hold); }
.ledger-detail { min-width: 0; min-height: 320px; padding: 1.2rem clamp(1.25rem, 3vw, 2rem) 1.6rem; }
.ledger-back { display: none; }
.ledger-detail h2 { margin: 0 0 .85rem; font: 700 clamp(1.55rem, 2.3vw, 1.9rem)/1.15 var(--gen-font); }
.ledger-detail-meta { display: flex; align-items: center; gap: .6rem; }
.ledger-decision { display: inline-block; padding: .2rem .53rem; border-radius: 20px; background: var(--soft); color: var(--deep); font-size: .69rem; font-weight: 750; }
.ledger-decision-held { background: var(--hold-bg); color: var(--hold); }
.ledger-claim-id { color: var(--muted); font-size: .72rem; font-variant-numeric: tabular-nums; }
.ledger-detail-value { display: block; margin: 1.2rem 0 .35rem; color: var(--deep); font: 700 clamp(1.7rem, 3vw, 2.3rem)/1.1 var(--gen-font); font-variant-numeric: tabular-nums; }
.ledger-wording { max-width: 56ch; margin: 0; font-size: .95rem; line-height: 1.55; }
.ledger-boundary { max-width: 65ch; margin: .65rem 0 1.2rem; color: var(--muted); font-size: .8rem; }
.ledger-gate { margin: -.3rem 0 1.1rem; color: var(--hold); font-size: .8rem; font-weight: 700; }
.ledger-disclosure { border-top: 1px solid var(--line); }
.ledger-disclosure:last-child { border-bottom: 1px solid var(--line); }
.ledger-disclosure summary, .ledger-method summary { padding: .8rem 0; color: var(--deep); font-size: .84rem; font-weight: 700; cursor: pointer; }
.ledger-disclosure summary:hover, .ledger-method summary:hover { text-decoration: underline; text-underline-offset: .18em; }
.ledger-definition { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem 1rem; margin: .2rem 0 1rem; }
.ledger-definition dt { font-size: .67rem; }
.ledger-definition dd { font-size: .81rem; }
.ledger-detail h4 { margin: 1rem 0 .4rem; color: var(--deep); font-size: .75rem; }
.ledger-intervals, .ledger-sources, .ledger-excluded { display: grid; gap: .37rem; margin: .3rem 0 1rem; padding-left: 1.1rem; color: var(--ink); font-size: .78rem; }
.ledger-excluded { color: var(--hold); }
.ledger-records { margin: .7rem 0; color: var(--muted); font-size: .75rem; overflow-wrap: anywhere; }
.ledger-method { margin-top: 2.3rem; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ledger-method-content { max-width: 75ch; padding: .25rem 0 1rem 1.25rem; }
.ledger-method-content p { margin: 0 0 .72rem; color: var(--muted); font-size: .81rem; }
.ledger-method-content strong { color: var(--deep); }
.hash-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem 1rem; }
.hash-list dd { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .75rem; overflow-wrap: anywhere; }
.report-body { background: var(--canvas); }
.report-home h1 { max-width: 18ch; }
.report-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 2rem; }
.report-audiences { display: flex; flex-wrap: wrap; gap: .35rem; }
.report-audiences .audience-button { width: auto; padding: .54rem .95rem; border: 1px solid var(--line); border-radius: var(--gen-radius); background: transparent; color: var(--deep); font-size: .86rem; font-weight: 700; white-space: nowrap; }
.report-audiences .audience-button:hover { background: var(--soft); }
.report-audiences .audience-button.is-active { border-color: var(--deep); background: var(--gen-teal-solid); color: #fff; }
.report-toolbar .print-button { margin: 0; }
.report-context { margin: .75rem 0 0; color: var(--muted); font-size: .8rem; }
.report-context strong { color: var(--deep); font-variant-numeric: tabular-nums; }
.report-home .claims-section { margin-top: 1.5rem; }
.report-home .section-head { margin-bottom: .75rem; }
.report-home .section-head h2 { font-size: 1.75rem; }
.report-home .claim-table th { padding-top: .45rem; }
.report-home .claim-table td { padding: .82rem .6rem .82rem 0; }
.report-home .claim-table td:nth-child(2) { white-space: normal; }
.report-home .detail-section { display: block; margin-top: 1.6rem; padding: 1.1rem 0 1.4rem; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: transparent; box-shadow: none; }
.report-home .detail-section h2 { margin: 0; font: 700 1.55rem var(--gen-font); }
.report-home .detail-section dl { margin-top: .8rem; }
.report-back { display: none; }
.report-home .decision-section { margin-top: 1.7rem; }
.report-home .audience-note { max-width: none; padding: .9rem 1rem; border: 0; background: var(--soft); font-size: .88rem; }
.report-home .quality-panel { margin-top: 1.2rem; border-top: 1px solid var(--line); }
.report-home .quality-panel[hidden] { display: none; }
.report-home .quality-panel summary { padding: .8rem 0; color: var(--deep); font-size: .84rem; font-weight: 700; cursor: pointer; }
.report-home .quality-panel p { margin: 0 0 .6rem; }
.studio-body { background: var(--canvas); }
.studio-home h1 { max-width: 18ch; }
.studio-home .studio-grid { margin-top: 2rem; grid-template-columns: minmax(350px, .85fr) minmax(0, 1.15fr); gap: clamp(1.5rem, 3vw, 2.8rem); }
.studio-home .input-panel { padding: 1.15rem 1.35rem; }
.studio-home .panel-head h2 { margin: 0; font-size: 1.75rem; }
.studio-home .panel-head p { margin: .3rem 0 .7rem; }
.studio-home .scenario-source { margin: 0 0 .5rem; }
.field-help { margin: .1rem 0 .65rem; color: var(--muted); font-size: .76rem; }
.studio-home .input-panel fieldset { padding: .85rem 0; }
.studio-home .status-line { margin: .35rem 0 .8rem; }
.studio-home .claim-box { padding: 1rem 1.1rem; }
.studio-home .claim-box .eyebrow { font-size: .69rem; }
.studio-home .metric-card { padding: .6rem .15rem; border: 0; border-top: 1px solid var(--line); }
.studio-home .metric-card strong { font-size: 1.5rem; }
.studio-home .trace-list { margin-top: 1.1rem; }
.studio-home .trace-step { padding: .75rem 0; }
.studio-home .trace-step p { margin-top: .2rem; }
.trace-more { margin: .3rem 0 0 1.9rem; }
.trace-more summary { color: var(--deep); font-size: .75rem; font-weight: 700; cursor: pointer; }
.trace-more p { margin-left: 1rem; }
.studio-method { margin-top: 2rem; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.studio-method summary { padding: .8rem 0; color: var(--deep); font-size: .84rem; font-weight: 700; cursor: pointer; }
.studio-method > div { max-width: 75ch; padding: .2rem 0 .7rem 1.25rem; }
.studio-method p { margin: 0 0 .7rem; color: var(--muted); font-size: .82rem; }
.studio-jump, .studio-back { display: none; }
.brief-body { background: var(--canvas); }
.brief-wrapper { max-width: 930px; min-height: 100vh; margin: auto; padding: 2rem clamp(1.2rem, 6vw, 5rem) 2.4rem; background: var(--paper); box-shadow: 0 12px 34px rgba(20, 41, 35, .1); }
.brief-actions { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 2.5rem; }
.brief-actions a { font-size: .82rem; font-weight: 700; }
.brief-actions .print-button { margin: 0; }
.brief-wordmark { margin-bottom: .8rem; color: var(--deep); font: 700 1.16rem var(--gen-font); }
.brief-wordmark span { font-weight: 400; }
.brief-header h1 { max-width: none; font-size: clamp(2.5rem, 4.5vw, 4rem); }
.brief-decision { max-width: 64ch; margin: .6rem 0 1.2rem; color: var(--muted); font-size: .97rem; }
.brief-warning { margin: 0; padding: .8rem 1rem; border-top: 2px solid var(--gen-gold); background: var(--hold-bg); color: var(--hold); font-size: .79rem; }
.brief-meta { margin: .85rem 0 1.75rem; padding-bottom: .85rem; border-bottom: 1px solid var(--line); color: var(--muted); font-size: .73rem; overflow-wrap: anywhere; }
.brief-wrapper h2 { margin: 0 0 .45rem; font: 700 1.75rem var(--gen-font); }
.brief-claims { display: grid; gap: 1.45rem; }
.brief-claim { padding: 1rem 0 1.2rem; border-top: 1px solid var(--deep); break-inside: avoid; }
.brief-claim-head { display: flex; align-items: baseline; gap: .65rem; }
.brief-claim-head span { color: var(--muted); font: 700 .68rem ui-monospace, SFMono-Regular, Menlo, monospace; }
.brief-claim-head h3 { flex: 1; margin: 0; font: 700 1.26rem var(--gen-font); }
.brief-claim-head strong { color: var(--deep); font: 700 1.18rem var(--gen-font); text-align: right; }
.brief-wording { margin: .62rem 0 .85rem; color: var(--ink); font-size: .91rem; font-weight: 600; }
.brief-detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem 1.5rem; }
.brief-detail-grid h4 { margin: 0; color: var(--muted); font-size: .67rem; text-transform: uppercase; letter-spacing: .07em; }
.brief-detail-grid p { margin: .13rem 0 0; font-size: .77rem; }
.brief-provenance { margin: .8rem 0 0; padding-top: .56rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .72rem; }
.brief-provenance strong { color: var(--deep); }
.brief-next { margin-top: 2.7rem; padding: 1.2rem; border: 1px solid var(--line); background: var(--gen-frost-2); break-inside: avoid; }
.brief-next p { margin: .5rem 0 0; color: var(--muted); font-size: .84rem; }
.brief-footer { display: flex; justify-content: space-between; gap: 1rem; margin-top: 2.8rem; padding-top: .8rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .7rem; }
.brief-footer span:first-child { color: var(--deep); font-weight: 700; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .95em; }

/* ---------- GEN house components (after gen.css: .gen-btn, .gen-eyebrow, .gen-section-head) ---------- */
.gen-btn { display: inline-block; min-height: 44px; padding: 14px 24px; border: none; border-radius: var(--gen-radius); font: 700 14.5px/1.2 var(--gen-font); letter-spacing: .01em; text-align: center; text-decoration: none; cursor: pointer; transition: transform .15s ease, background .15s ease, color .15s ease, border-color .15s ease; }
.gen-btn-primary { background: var(--gen-teal-solid); color: var(--gen-white); }
.gen-btn-primary:hover { transform: translateY(-1px); background: var(--gen-teal-solid-hover); }
.gen-btn-secondary { border: 1.5px solid var(--gen-navy-line); background: transparent; color: var(--gen-navy); }
.gen-btn-secondary:hover { border-color: var(--gen-teal-text); color: var(--gen-teal-text); }
.gen-eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; color: var(--gen-teal-text); font-size: 15px; font-style: italic; }
.gen-eyebrow::before { content: ""; flex: 0 0 20px; height: 1px; background: var(--gen-teal); }
.gen-section-head { display: flex; flex-direction: column; gap: 8px; margin-bottom: 28px; padding-bottom: 20px; border-bottom: 1px solid var(--gen-navy-line); }
.gen-section-head .gen-eyebrow { margin: 0; }
.gen-section-title { max-width: 30ch; margin: 0; color: var(--gen-navy); font-size: clamp(1.5rem, 2.5vw, 2.05rem); font-weight: 700; line-height: 1.15; }
.section-note { max-width: 74ch; margin: 0; color: var(--gen-text-dim); font-size: 15px; line-height: 1.6; }

/* Site-wide disclaimer footer, after GEN's navy footer band. */
.site-footer { padding: 28px clamp(22px, 5vw, 4.5rem); background: var(--gen-navy); color: var(--gen-text-light-dim); font-size: 13.5px; }
.site-footer p { max-width: var(--gen-wrap-max); margin: 0 auto; }
.brief-wrapper > .site-footer { margin: 2rem calc(-1 * clamp(1.2rem, 6vw, 5rem)) -2.4rem; }

/* ---------- Pilot portal and internal view ---------- */
.pilot-body { background: var(--canvas); }
.pilot-main { max-width: var(--gen-wrap-max); padding-top: 56px; }
.pilot-hero { padding-bottom: 40px; border-bottom: 1px solid var(--gen-navy-line); }
.pilot-hero h1 { max-width: 22ch; font-size: clamp(2.1rem, 3.8vw, 3.2rem); line-height: 1.08; letter-spacing: -.01em; }
.pilot-lede { max-width: 62ch; margin: 18px 0 0; color: var(--gen-text-dim); font-size: 16.5px; line-height: 1.7; }
.pilot-meta { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 22px 0 0; padding: 0; list-style: none; color: var(--gen-text-dim); font-size: 14px; }
.pilot-meta strong { color: var(--gen-navy); }
.pilot-meta code { overflow-wrap: anywhere; }
.pilot-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.cta-message { max-width: 62ch; margin: 16px 0 0; padding: 14px 18px; border-left: 3px solid var(--gen-gold); background: var(--gen-white); color: var(--gen-navy); font-size: 15px; }
.pilot-section { padding: 56px 0 0; }
.metric-grid-pilot { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 20px; }
.metric-grid-pilot + .metric-grid-pilot, .funnel-grid + .metric-grid-pilot { margin-top: 20px; }
.metric-card-pilot { display: flex; flex-direction: column; min-width: 0; padding: 24px 22px; border: 1px solid var(--gen-navy-line); border-radius: var(--gen-radius-card); background: var(--gen-white); }
.metric-card-pilot.is-held { border-top: 3px solid var(--gen-gold); }
.metric-card-pilot.is-unmeasured { background: var(--gen-frost); }
.metric-card-pilot:has(.figures-2), .metric-card-pilot:has(.figures-many) { grid-column: span 2; }
.metric-head { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: start; }
.metric-head h3 { grid-column: 1; margin: 0; font-size: 1.2rem; line-height: 1.25; }
.metric-head .status-badge { grid-column: 2; grid-row: 1 / span 2; }
.metric-tier { margin: 0; color: var(--gen-text-dim); font-size: 13px; }
.metric-id { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; }
.metric-figures { display: grid; gap: 18px; margin-top: 16px; }
.metric-figures.figures-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.metric-figures.figures-many { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 12px; }
.metric-figure { min-width: 0; }
.metric-label { margin: 0; color: var(--gen-text-dim); font-size: 13px; font-weight: 700; }
.metric-value { margin: 2px 0 0; color: var(--gen-navy); font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; }
.figures-many .metric-value { font-size: 1.6rem; }
.metric-baseline, .metric-interval, .metric-benchmark { margin: 4px 0 0; color: var(--gen-text-dim); font-size: 13px; }
.metric-baseline strong { color: var(--gen-teal-text); }
.metric-withheld { margin: 16px 0 0; padding: 12px 14px; background: var(--unmeasured); color: var(--gen-navy); font-size: 14px; }
.is-held .metric-withheld { background: var(--hold-bg); color: var(--hold); }
.metric-held-reason { margin: 14px 0 0; padding: 10px 12px; background: var(--hold-bg); color: var(--hold); font-size: 13.5px; }
.metric-defs { display: grid; grid-template-columns: 1fr; gap: 8px; margin: 18px 0 0; padding-top: 14px; border-top: 1px solid var(--gen-navy-line); }
.metric-defs dt { color: var(--gen-teal-text); font-size: 12.5px; font-style: italic; font-weight: 400; letter-spacing: 0; text-transform: none; }
.metric-defs dd { margin: 1px 0 0; color: var(--gen-text-dim); font-size: 13.5px; line-height: 1.5; }
.metric-direction { color: var(--gen-navy); }
.metric-gate { margin-top: 14px; border-top: 1px solid var(--gen-navy-line); }
.metric-gate summary { min-height: 44px; padding: 12px 0 0; color: var(--gen-teal-text); font-size: 14px; font-weight: 700; cursor: pointer; }
.metric-gate ol { display: grid; gap: 6px; margin: 4px 0 0; padding: 0; list-style: none; font-size: 13px; color: var(--gen-text-dim); }
.metric-gate li span { display: inline-block; min-width: 3.2em; font-weight: 700; }
.gate-pass span { color: var(--gen-teal-text); }
.gate-fail span { color: var(--hold); }
.status-badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: var(--gen-radius); font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.status-approved { background: var(--gen-teal-dim); color: var(--gen-teal-text); }
.status-held { background: var(--hold-bg); color: var(--hold); }
.status-unmeasured { background: var(--unmeasured); color: var(--gen-navy); }
.status-excluded { border: 1px solid var(--gen-navy-line); color: var(--gen-text-dim); }
.status-legend dl { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 16px 28px; }
.status-legend h2 { margin: 0 0 8px; font-size: 1.25rem; }
.status-legend dd { color: var(--gen-text-dim); font-size: 14px; }

/* Trend chart: one pilot series plus a dashed, labelled reference; never colour alone. */
.trend { margin: 12px 0 0; }
.trend svg { display: block; width: 100%; max-width: 460px; height: auto; overflow: visible; }
.trend-axis { stroke: var(--gen-navy-line); stroke-width: 1; }
.trend-reference { stroke: var(--gen-navy); stroke-width: 1.5; stroke-dasharray: 5 4; opacity: .6; }
.trend-line { fill: none; stroke: var(--gen-teal-solid); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.trend-dot { fill: var(--gen-teal-solid); stroke: var(--gen-white); stroke-width: 2; }
.trend-dot-last { fill: var(--gen-navy); }
.trend-target { fill: transparent; }
.trend-hit:hover .trend-dot { r: 6; }
.trend figcaption { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 6px; color: var(--gen-text-dim); font-size: 12.5px; }
.trend-key::before { content: ""; display: inline-block; width: 16px; margin-right: 6px; vertical-align: middle; border-top: 2px solid var(--gen-teal-solid); }
.trend-key-ref::before { border-top: 2px dashed var(--gen-navy); opacity: .6; }
.trend-table summary { min-height: 32px; padding-top: 6px; color: var(--gen-teal-text); font-size: 12.5px; font-weight: 700; cursor: pointer; }
.trend-table table { width: 100%; border-collapse: collapse; font-size: 12.5px; font-variant-numeric: tabular-nums; }
.trend-table th, .trend-table td { padding: 4px 6px 4px 0; border-bottom: 1px solid var(--gen-navy-line); text-align: left; }

/* Internal view */
.internal-notes { display: grid; gap: 12px; max-width: 74ch; margin-top: 24px; padding: 22px 24px; border: 1px solid var(--gen-navy-line); border-radius: var(--gen-radius-card); background: var(--gen-white); }
.internal-notes p { margin: 0; color: var(--gen-text-dim); font-size: 15px; line-height: 1.6; }
.internal-notes strong { color: var(--gen-navy); }
.internal-notes .gen-btn { justify-self: start; }
.gate-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 1px; margin: 0; padding: 0; list-style: none; background: var(--gen-navy-line); counter-reset: gate; }
.gate-steps li { padding: 22px 20px; background: var(--gen-frost-2); color: var(--gen-text-dim); font-size: 14px; counter-increment: gate; }
.gate-steps strong { display: block; margin-bottom: 4px; color: var(--gen-navy); font-size: 1.05rem; }
.gate-steps strong::before { content: counter(gate) ". "; color: var(--gen-teal-text); }
.data-table { width: 100%; border-collapse: collapse; background: var(--gen-white); font-size: 13.5px; }
.data-table th, .data-table td { padding: 10px 12px 10px 0; border-bottom: 1px solid var(--gen-navy-line); text-align: left; vertical-align: top; }
.data-table thead th { color: var(--gen-teal-text); font-size: 12.5px; font-style: italic; font-weight: 400; white-space: nowrap; }
.data-table th:first-child, .data-table td:first-child { padding-left: 12px; }
.data-table tbody th { font-weight: 700; }
.data-table tbody th span, .register-table td span { display: block; color: var(--gen-text-dim); font-size: 12.5px; font-weight: 400; }
.register-table { min-width: 980px; }
.cell-sources { max-width: 220px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11.5px; overflow-wrap: anywhere; }
.held-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.held-list li { padding: 14px 16px; border-left: 3px solid var(--gen-gold); background: var(--gen-white); font-size: 14px; }
.held-list p { margin: 4px 0 0; color: var(--gen-text-dim); }
.funnel-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 20px; }
.funnel { padding: 22px; border: 1px solid var(--gen-navy-line); border-radius: var(--gen-radius-card); background: var(--gen-white); }
.funnel h3 { margin: 0; font-size: 1.2rem; }
.funnel-meta { margin: 2px 0 14px; color: var(--gen-text-dim); font-size: 13px; }
.funnel ol { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.funnel li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 3px 10px; font-size: 13.5px; }
.funnel-label { color: var(--gen-navy); font-weight: 700; }
.funnel-count { color: var(--gen-navy); font-variant-numeric: tabular-nums; text-align: right; }
.funnel-track { position: relative; grid-column: 1 / -1; height: 12px; border-radius: var(--gen-radius); background: var(--gen-frost-2); }
.funnel-bar { position: absolute; inset: 0 auto 0 0; border-radius: var(--gen-radius); background: var(--gen-teal-solid); }
.funnel-benchmark { position: absolute; top: -4px; bottom: -4px; width: 0; border-left: 2px dashed var(--gen-navy); }
.funnel-note { grid-column: 1 / -1; color: var(--gen-text-dim); font-size: 12px; }
.funnel li.is-open .funnel-track { background: repeating-linear-gradient(135deg, var(--gen-frost-2) 0 6px, var(--gen-white) 6px 12px); }
.log-filters { display: flex; flex-wrap: wrap; gap: 12px 20px; margin-bottom: 12px; }
.log-filters label { display: grid; gap: 4px; color: var(--gen-text-dim); font-size: 13px; font-weight: 700; }
.log-filters select { min-height: 44px; min-width: 190px; padding: 8px 10px; border: 1.5px solid var(--gen-navy-line); border-radius: var(--gen-radius); background: var(--gen-white); color: var(--gen-navy); font: 15px var(--gen-font); }
.log-count { margin: 0 0 10px; color: var(--gen-text-dim); font-size: 13.5px; }
.log-table { min-width: 940px; font-size: 13px; }
.log-table td { padding-top: 7px; padding-bottom: 7px; }
.log-table .status-badge { padding: 1px 6px; font-size: 11.5px; }
.log-feed { display: inline-block; margin: 0 6px 3px 0; white-space: nowrap; }
.log-reason { color: var(--hold); }
#log-more { margin-top: 16px; }
#log-more[hidden] { display: none; }

/* Proof sheet */
.proof-tools { display: flex; flex-wrap: wrap; gap: 10px; }
.proof-header { display: flex; gap: 18px; align-items: flex-start; }
.proof-header img { flex: 0 0 auto; margin-top: 4px; }
.proof-header h1 { max-width: none; font-size: clamp(1.8rem, 3.4vw, 2.6rem); line-height: 1.1; }
.proof-table { width: 100%; margin: 1.6rem 0 0; border-collapse: collapse; font-size: 14px; }
.proof-table th, .proof-table td { padding: 10px 10px 10px 0; border-bottom: 1px solid var(--gen-navy-line); text-align: left; vertical-align: top; }
.proof-table thead th { color: var(--gen-teal-text); font-size: 12.5px; font-style: italic; font-weight: 400; }
.proof-table tbody th span { display: block; color: var(--gen-text-dim); font-size: 12px; font-weight: 400; }
.proof-value { color: var(--gen-navy); font-size: 1.1rem; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.proof-reason { display: block; margin-top: 4px; color: var(--hold); font-size: 12px; }
.proof-defs { margin-top: 2rem; }
.proof-defs dl { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 24px; }
.proof-defs dt { color: var(--gen-navy); font-size: 13px; letter-spacing: 0; text-transform: none; }
.proof-defs dd { color: var(--gen-text-dim); font-size: 12.5px; }
.brief-next .gen-btn { margin-top: 14px; }

@media (max-width: 760px) {
  .metric-card-pilot:has(.figures-2), .metric-card-pilot:has(.figures-many) { grid-column: auto; }
  .metric-figures.figures-2 { grid-template-columns: 1fr; }
  .proof-header img { display: none; }
  .proof-defs dl { grid-template-columns: 1fr; }
  .proof-table thead { display: none; }
  .proof-table, .proof-table tbody, .proof-table tr, .proof-table th, .proof-table td { display: block; }
  .proof-table tr { padding: 12px 0; border-bottom: 1px solid var(--gen-navy-line); }
  .proof-table th, .proof-table td { padding: 2px 0; border: 0; }
  .proof-table td:first-child::before { content: "Tier "; }
  .proof-table td:nth-child(4)::before { content: "Baseline: "; color: var(--gen-text-dim); }
  .proof-table td:nth-child(5)::before { content: "Change: "; color: var(--gen-text-dim); }
}
@media (max-width: 900px) {
  .studio-home .studio-grid { grid-template-columns: 1fr; }
  .studio-jump, .studio-back { display: inline-block; color: var(--deep); font-size: .78rem; font-weight: 700; }
  .studio-jump { margin-top: .85rem; }
  .studio-back { margin-bottom: .8rem; }
  .ledger-grid { grid-template-columns: 1fr; }
  .ledger-list-panel { border-right: 0; border-bottom: 1px solid var(--line); }
  .ledger-back { display: inline-block; margin-bottom: .75rem; font-size: .78rem; font-weight: 700; }
  .report-back { display: inline-block; margin-bottom: .75rem; font-size: .78rem; font-weight: 700; }
}
@media (max-width: 600px) {
  .app-topbar { display: block; padding: .9rem 1.1rem; }
  .app-topbar nav { margin: .55rem -.48rem 0; gap: 0; }
  .app-topbar nav a, .app-topbar nav span { padding: .42rem .48rem; font-size: .75rem; }
  .app-main { padding: 1.7rem 1.2rem 2rem; }
  .ledger-intro { display: block; }
  .ledger-intro .ledger-demo { display: inline-block; margin-top: .8rem; }
  .report-toolbar { align-items: flex-start; flex-direction: column; gap: .9rem; }
  .report-audiences { gap: .25rem; }
  .report-audiences .audience-button { min-width: 0; padding: .48rem .7rem; font-size: .79rem; }
  .report-home .claim-table { min-width: 0; }
  .report-home .claim-table td:first-child { width: 58%; }
  .report-home .claim-table td:nth-child(2) { width: 42%; }
  .ledger-workspace { margin-top: 1.5rem; }
  .ledger-toolbar { align-items: flex-start; flex-direction: column; gap: .7rem; }
  .ledger-view-switch { gap: .25rem; }
  .ledger-view-switch button { padding: .48rem .7rem; font-size: .79rem; }
  .ledger-detail { min-height: 0; padding: 1.2rem 1rem 1.5rem; }
  .ledger-definition { grid-template-columns: 1fr; }
  .hash-list { grid-template-columns: 1fr; }
  .brief-claim-head { flex-wrap: wrap; }
  .brief-claim-head h3 { flex-basis: calc(100% - 7rem); }
  .brief-claim-head strong { flex-basis: 100%; text-align: left; }
  .brief-detail-grid { grid-template-columns: 1fr; }
  .brief-footer { display: grid; gap: .25rem; }
  dl { grid-template-columns: 1fr; }
  .report-footer { display: block; }
  .report-footer p { margin-top: .25rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media print {
  body, .app-shell { background: #fff; box-shadow: none; }
  .app-topbar, .report-toolbar, .print-button, .skip-link { display: none; }
  .app-main { max-width: none; padding: 0; }
  .claim-table th, .claim-table td { break-inside: avoid; }
  .detail-section { background: #fff; box-shadow: none; border-top: 1px solid #555; border-bottom: 1px solid #555; }
  .quality-panel { break-inside: avoid; }
  .brief-body, .brief-wrapper { background: #fff; box-shadow: none; }
  .brief-wrapper { max-width: none; min-height: auto; padding: 0; }
  .brief-actions, .brief-body .skip-link { display: none; }
  .brief-claim, .brief-next { break-inside: avoid; }
  .pilot-actions, .proof-tools, .brief-next .gen-btn, .cta-message, .trend-table, .metric-gate { display: none; }
  .site-footer, .brief-wrapper > .site-footer { margin: 1.5rem 0 0; padding: .6rem 0 0; border-top: 1px solid #555; background: #fff; color: #222; font-size: 10pt; }
  .proof-table tr, .metric-card-pilot { break-inside: avoid; }
  .proof-sheet { font-size: 10.5pt; }
}

/* At-a-glance plain-language summary on the client portal */
.glance-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 16px; }
.glance-secondary { margin-top: 16px; }
.glance-tile { background: #fff; border: 1px solid var(--gen-navy-line); border-radius: 12px; padding: 18px 20px; }
.glance-tile.glance-held, .glance-tile.glance-unmeasured { background: #f3f4f6; }
.glance-value { margin: 0; font-size: 2.4rem; font-weight: 700; line-height: 1.05; color: #0f766e; }
.glance-value-small { font-size: 1.6rem; }
.glance-held .glance-value, .glance-unmeasured .glance-value { color: #6b7280; }
.glance-label { margin: 8px 0 4px; font-weight: 600; }
.glance-detail { margin: 0; color: #4b5563; font-size: .92rem; }
.glance-status { margin: 10px 0 0; font-size: .85rem; font-weight: 600; color: #0f766e; }
.glance-status.glance-held, .glance-status.glance-unmeasured { color: #6b7280; }
.glance-note { margin-top: 14px; }
