/* =========================================================
   Insights article template (ia) – all rules are scoped to .ia
   Fixed skeleton: navy head, contents rail, numbered sections,
   sources, author box, series. Plus nine reusable modules.
   Colours and fonts read the site's existing variables first;
   the value after the comma is only a fallback.
   ========================================================= */
.ia, .ia-bar, .ia-sheet, .ia-progress {
  --ia-navy: var(--panel-dark, #0B1F3A);
  --ia-ink: var(--text, #1D252F);
  --ia-text: var(--text, #1D252F);
  --ia-muted: #3F4852;
  --ia-line: var(--border-strong, #DAD5C8);
  --ia-line-soft: var(--border, #E4DFD2);
  --ia-mist: var(--bg-deep, #F6F1E7);
  --ia-mist-2: #E9E1D0;
  --ia-paper: var(--bg, #FBF8F2);
  --ia-accent: var(--action, #0E6E75);
  --ia-accent-hover: var(--action-hover, #0B5860);
  --ia-gold: var(--gold, #C9972B);
  --ia-caution: #8A3D06;
  --ia-caution-ink: #6B2E03;
  --ia-caution-bg: #FDF1E3;
  --ia-on-navy: #FBF8F2;
  --ia-on-navy-2: #DCE4EC;
  --ia-on-navy-muted: #B9C6DA;
  --ia-on-navy-line: rgba(251, 248, 242, 0.22);
  --ia-serif: var(--display, 'Playfair Display', Georgia, 'Times New Roman', serif);
  --ia-sans: var(--sans, 'Source Sans 3', 'Segoe UI', Arial, sans-serif);
  --ia-mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  --ia-container: 1280px;
  --ia-gutter: 40px;
  --ia-rail: 248px;
  --ia-measure: 664px;
  --ia-margin-col: 272px;
  --ia-nav-h: var(--ia-nav-live, 70px);   /* height of the fixed site menu; the script measures the real value */
}
/* Sticky contents rail needs a page without a horizontal scroll container */
html:has(main.ia), body:has(> main.ia) { overflow-x: clip; }
main.ia + .site-footer { margin-top: 0; }
.ia { background: var(--ia-paper); color: var(--ia-text); font-family: var(--ia-sans); font-size: 18px; line-height: 30px; }
.ia *, .ia *::before, .ia *::after, .ia-bar *, .ia-sheet * { box-sizing: border-box; }
.ia h1, .ia h2, .ia h3, .ia p, .ia ol, .ia ul, .ia figure, .ia blockquote { margin: 0; padding: 0; }
.ia h1, .ia h2, .ia h3 { font-weight: 500; letter-spacing: 0; color: inherit; }
.ia ol, .ia ul { list-style: none; }
.ia img { max-width: 100%; }
.ia a { color: inherit; }
.ia [hidden], .ia-bar[hidden], .ia-sheet[hidden] { display: none !important; }
.ia a:focus-visible, .ia button:focus-visible, .ia summary:focus-visible,
.ia-bar button:focus-visible, .ia-sheet a:focus-visible, .ia-sheet button:focus-visible { outline: 2px solid var(--ia-accent); outline-offset: 2px; }
.ia-head a:focus-visible, .ia-board a:focus-visible { outline-color: var(--ia-on-navy); }
.ia-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Mono label */
.ia-label { font-family: var(--ia-mono); font-weight: 400; font-size: 12px; line-height: 16px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ia-muted); }

/* ---------- 5.1 Reading progress ---------- */
.ia-progress { position: fixed; left: 0; right: 0; top: var(--ia-nav-h); height: 4px; z-index: 80; background: rgba(255, 255, 255, 0.12); pointer-events: none; display: none; }
.ia-js .ia-progress { display: block; }
.ia-progress span { display: block; height: 100%; width: 0; background: var(--ia-gold); }

/* ---------- 5.2 Article head (navy) ---------- */
.ia-head { background: var(--ia-navy); color: var(--ia-on-navy); }
.ia-head__in { max-width: var(--ia-container); margin: 0 auto; padding: calc(var(--ia-nav-h) + 56px) var(--ia-gutter) 64px; display: flex; flex-wrap: wrap; gap: 40px 56px; align-items: flex-end; }
.ia-head__title { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.ia-crumb { display: flex; flex-wrap: wrap; gap: 4px 8px; color: var(--ia-on-navy-muted); }
.ia .ia-crumb a { color: var(--ia-on-navy-muted); text-decoration: none; padding: 14px 0; margin: -14px 0; }
.ia .ia-crumb a:hover { color: var(--ia-on-navy); text-decoration: underline; text-underline-offset: 0.2em; }
.ia-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ia-chips > li { display: flex; }
.ia-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 0 12px; border: 1px solid rgba(251, 248, 242, 0.4); font-size: 13px; line-height: 18px; color: var(--ia-on-navy); text-decoration: none; }
.ia a.ia-chip { position: relative; }
.ia a.ia-chip::after { content: ""; position: absolute; inset: -7px 0; }
.ia a.ia-chip:hover { border-color: var(--ia-on-navy); }
.ia-chip svg { width: 14px; height: 14px; fill: currentColor; flex: none; }
.ia-h1 { font-family: var(--ia-serif); font-weight: 500; font-size: clamp(40px, 5vw, 68px); line-height: 1.04; letter-spacing: -0.015em; text-wrap: balance; overflow-wrap: break-word; color: var(--ia-on-navy); }
.ia .ia-h1 { color: var(--ia-on-navy); letter-spacing: -0.015em; }
.ia-h1__main { display: block; }
.ia-h1__sub { display: block; margin-top: 24px; font-style: italic; font-weight: 400; font-size: 28px; line-height: 36px; letter-spacing: 0; color: var(--ia-on-navy-muted); text-wrap: balance; }
.ia-deck { max-width: 640px; font-size: 18px; line-height: 29px; color: var(--ia-on-navy-2); }
.ia-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.ia-avatar { flex: none; width: 44px; height: 44px; border-radius: 50%; overflow: hidden; background: var(--ia-on-navy); color: var(--ia-navy); display: inline-flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 600; }
.ia-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ia-meta__name { font-size: 15px; line-height: 20px; font-weight: 600; color: var(--ia-on-navy); }
.ia-meta .ia-label { color: var(--ia-on-navy-muted); }
.ia-meta .ia-label::before { content: "·"; margin-right: 14px; }

/* ---------- 5.3 In brief ---------- */
.ia-brief { flex: 1 1 360px; max-width: 440px; background: var(--ia-paper); color: var(--ia-ink); padding: 28px; display: flex; flex-direction: column; gap: 18px; }
.ia-brief__label { color: var(--ia-accent); }
.ia-brief__list { display: flex; flex-direction: column; gap: 18px; }
.ia-brief__list li { display: flex; gap: 12px; align-items: baseline; font-size: 15px; line-height: 23px; }
.ia-brief__n { flex: 0 0 20px; font-family: var(--ia-serif); font-size: 22px; line-height: 23px; color: var(--ia-navy); }
.ia-brief__q { border-top: 1px solid var(--ia-navy); padding-top: 18px; display: flex; flex-direction: column; gap: 8px; }
.ia-brief__qtext { font-family: var(--ia-serif); font-size: 23px; line-height: 30px; color: var(--ia-navy); }

/* Optional feature image band (show_feature_image) */
.ia-feature { background: var(--ia-navy); }
.ia-feature img { display: block; width: 100%; aspect-ratio: 21 / 9; object-fit: cover; }

/* ---------- 4 Article body ---------- */
.ia-body__in { max-width: var(--ia-container); margin: 0 auto; padding: 64px var(--ia-gutter) 80px; display: flex; gap: 40px 56px; align-items: flex-start; }
.ia-rail { flex: 0 0 var(--ia-rail); width: var(--ia-rail); min-width: 0; display: flex; flex-direction: column; gap: 28px; position: sticky; top: calc(var(--ia-nav-h) + 24px); max-height: calc(100vh - var(--ia-nav-h) - 48px); }
.ia-col { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 60px; }

/* ---------- 5.4 Contents rail ---------- */
.ia-toc { display: flex; flex-direction: column; gap: 12px; min-height: 0; flex: 0 1 auto; }
.ia-toc__toggle { display: none; }
.ia-toc__list { display: flex; flex-direction: column; border-bottom: 1px solid var(--ia-line-soft); min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.ia-toc__list > li { flex: none; }
.ia .ia-toc__list a { display: flex; gap: 8px; align-items: baseline; padding: 11px 0; border-top: 1px solid var(--ia-line-soft); border-bottom: 1px solid transparent; margin-bottom: -1px; font-size: 14px; line-height: 20px; color: var(--ia-muted); text-decoration: none; }
.ia .ia-toc__list a:hover { color: var(--ia-navy); }
.ia-toc__num { flex: 0 0 20px; font-family: var(--ia-mono); font-size: 12px; line-height: 20px; color: var(--ia-muted); }
.ia-toc__txt { min-width: 0; overflow-wrap: break-word; }
.ia .ia-toc__list a[aria-current="true"] { color: var(--ia-navy); font-weight: 700; border-top-color: var(--ia-navy); border-bottom-color: var(--ia-navy); position: relative; z-index: 1; }
.ia .ia-toc__list a[aria-current="true"] .ia-toc__num { color: var(--ia-accent); font-weight: 500; }
.ia-share { flex: none; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ia-share a, .ia-share button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 4px 8px; border: 1px solid var(--ia-line); border-radius: 0; background: transparent; color: var(--ia-ink); font-family: var(--ia-sans); font-size: 13px; line-height: 16px; font-weight: 600; text-align: center; text-decoration: none; cursor: pointer; transition: border-color .2s, color .2s; }
.ia-share a:hover, .ia-share button:hover { border-color: var(--ia-navy); color: var(--ia-accent); }

/* ---------- 5.5 Sections ---------- */
.ia-section { border-top: 1px solid var(--ia-navy); padding-top: 20px; display: flex; flex-direction: column; gap: 28px; scroll-margin-top: calc(var(--ia-nav-h) + 20px); }
.ia-section--lead { border-top: 0; padding-top: 0; }
.ia-section__head { display: flex; gap: 20px; align-items: baseline; }
.ia-section__num { flex: none; font-family: var(--ia-serif); font-weight: 400; font-size: 60px; line-height: 60px; color: var(--ia-accent); font-variant-numeric: lining-nums; }
.ia .ia-section__head h2, .ia .ia-faq > h2 { font-family: var(--ia-serif); font-weight: 500; font-size: 38px; line-height: 44px; letter-spacing: -0.01em; color: var(--ia-navy); text-wrap: balance; overflow-wrap: break-word; min-width: 0; }
.ia-row { display: flex; flex-wrap: wrap; gap: 24px 40px; align-items: flex-start; }
.ia-text { flex: 999 1 460px; max-width: var(--ia-measure); min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.ia-text > p { text-wrap: pretty; }
.ia .ia-text a { color: var(--ia-accent); text-decoration: underline; text-underline-offset: 0.18em; }
.ia .ia-text a:hover { color: var(--ia-accent-hover); }
.ia-text strong { font-weight: 700; color: var(--ia-ink); }
.ia-text > p.statement { font-family: var(--ia-serif); font-size: 24px; line-height: 32px; color: var(--ia-navy); text-wrap: balance; }
.ia .ia-text > h3 { font-family: var(--ia-serif); font-weight: 500; font-size: 27px; line-height: 34px; color: var(--ia-navy); margin-top: 14px; scroll-margin-top: calc(var(--ia-nav-h) + 20px); overflow-wrap: break-word; }
.ia .ia-text > h3:first-child { margin-top: 0; }
.ia-text > h3.cnt { display: flex; gap: 14px; align-items: baseline; }
.ia-text > h3.cnt .cnt-n { flex: none; font-family: var(--ia-mono); font-size: 14px; line-height: 34px; letter-spacing: 0.08em; color: var(--ia-accent); }
.ia-text > h3.vs { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; }
.ia-text > h3.vs .vs-x { font-family: var(--ia-mono); font-size: 12px; letter-spacing: 0.08em; color: var(--ia-muted); }

/* Lists in the text column */
.ia-text > ul, .ia-text > ol { display: flex; flex-direction: column; gap: 8px; }
.ia-text > ul > li, .ia-text > ol > li { position: relative; padding-left: 26px; }
.ia-text > ul > li::before { content: ""; position: absolute; left: 4px; top: 13px; width: 6px; height: 6px; background: var(--ia-navy); }
.ia-text > ol { counter-reset: ia-ol; }
.ia-text > ol > li { counter-increment: ia-ol; padding-left: 34px; }
.ia-text > ol > li::before { content: counter(ia-ol, decimal-leading-zero); position: absolute; left: 0; top: 0; font-family: var(--ia-mono); font-size: 13px; letter-spacing: 0.04em; color: var(--ia-accent); }
.ia-text > ul.arrow-list > li::before { content: "→"; width: auto; height: auto; background: none; left: 0; top: 0; color: var(--ia-accent); }
.ia-text > ul.q-mark > li::before { content: "?"; width: auto; height: auto; background: none; left: 4px; top: 0; font-family: var(--ia-serif); font-size: 20px; color: var(--ia-accent); }
.ia-text > ul.grid-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); gap: 0 32px; border-bottom: 1px solid var(--ia-line); }
.ia-text > ul.grid-list > li { padding: 10px 0; border-top: 1px solid var(--ia-line); }
.ia-text > ul.grid-list > li::before { display: none; }
.ia-text > ol.step-list, .ia-text > ol.num-list, .ia-text > ol.seq-list { gap: 0; border-bottom: 1px solid var(--ia-line); counter-reset: none; }
.ia-text > ol.step-list > li, .ia-text > ol.num-list > li, .ia-text > ol.seq-list > li { display: flex; gap: 16px; align-items: baseline; padding: 12px 0; border-top: 1px solid var(--ia-line); }
.ia-text > ol.step-list > li::before, .ia-text > ol.num-list > li::before, .ia-text > ol.seq-list > li::before { display: none; }
.ia-text .step-n, .ia-text .nl-n, .ia-text .seq-n { flex: 0 0 26px; font-family: var(--ia-mono); font-size: 13px; letter-spacing: 0.04em; color: var(--ia-accent); }
.ia-text .step-t, .ia-text .nl-t, .ia-text .seq-t { min-width: 0; }

/* ---------- 5.6 Margin notes ---------- */
.ia-margin { flex: 1 1 200px; max-width: var(--ia-margin-col); min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.ia-note { border-top: 1px solid var(--ia-line); padding-top: 12px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; line-height: 22px; color: var(--ia-muted); }
.ia-note__figure { font-family: var(--ia-serif); font-size: 44px; line-height: 46px; letter-spacing: -0.02em; color: var(--ia-navy); font-variant-numeric: lining-nums; }
.ia-note em, .ia-note cite { font-style: italic; }

/* ---------- 6 Modules ---------- */
.ia-module { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.ia-module > figcaption, .ia-figure > figcaption { font-size: 14px; line-height: 22px; color: var(--ia-muted); }

/* 6.1 Evidence cards */
.ia-evidence__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr)); gap: 16px; }
.ia-evidence__card { border: 1px solid var(--ia-line); padding: 20px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.ia-evidence__dir { display: inline-flex; align-items: center; gap: 6px; color: var(--ia-accent); }
.ia-evidence__dir svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; flex: none; }
.ia-evidence__value { font-family: var(--ia-serif); font-size: 60px; line-height: 60px; letter-spacing: -0.02em; color: var(--ia-navy); font-variant-numeric: lining-nums; }
.ia-evidence__text { font-size: 14px; line-height: 22px; color: var(--ia-text); }
.ia-evidence__src { margin-top: auto; padding-top: 6px; font-size: 13px; line-height: 19px; color: var(--ia-muted); }
.ia-evidence__card--loss { background: var(--ia-caution-bg); border-color: var(--ia-caution); }
.ia-evidence__card--loss .ia-evidence__dir { color: var(--ia-caution); }
.ia-evidence__card--loss .ia-evidence__value { color: var(--ia-caution-ink); }
.ia-evidence__card--loss .ia-evidence__text, .ia-evidence__card--loss .ia-evidence__src { color: #3A2A1C; }
.ia-evidence__card--neutral .ia-evidence__dir { color: var(--ia-muted); }

/* 6.2 Pull quote */
.ia .ia-pullquote, .ia .ia-text > blockquote { max-width: var(--ia-measure); border-top: 2px solid var(--ia-navy); padding-top: 24px; margin: 10px 0; font-family: var(--ia-serif); font-weight: 400; font-size: 32px; line-height: 40px; color: var(--ia-navy); text-wrap: balance; }

/* 6.3 Layers */
.ia-layers { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 0; }
.ia-layers__cell { padding: 24px; display: flex; flex-direction: column; gap: 12px; min-width: 0; background: var(--ia-mist); }
.ia-layers__cell:nth-child(2) { background: var(--ia-mist-2); }
.ia-layers__cell:nth-child(3) { background: var(--ia-navy); color: var(--ia-on-navy-2); }
.ia-layers__q { font-family: var(--ia-serif); font-size: 26px; line-height: 32px; color: var(--ia-navy); }
.ia-layers__t { font-size: 15px; line-height: 23px; }
.ia-layers__cell:nth-child(3) .ia-label { color: var(--ia-on-navy-muted); }
.ia-layers__cell:nth-child(3) .ia-layers__q { color: var(--ia-on-navy); }

/* 6.4 Compare */
.ia-compare { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 16px; }
.ia-compare__cell { padding: 24px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.ia-compare__cell .ia-label { display: inline-flex; align-items: center; gap: 8px; }
.ia-compare__cell svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; flex: none; }
.ia-compare__say { font-family: var(--ia-serif); font-size: 25px; line-height: 33px; }
.ia-compare__cell--weak { background: var(--ia-mist); border: 1px solid var(--ia-line); }
.ia-compare__cell--weak .ia-label { color: var(--ia-caution); }
.ia-compare__cell--weak .ia-compare__say { color: var(--ia-muted); }
.ia-compare__cell--strong { background: var(--ia-paper); border: 2px solid var(--ia-navy); }
.ia-compare__cell--strong .ia-label { color: var(--ia-accent); }
.ia-compare__cell--strong .ia-compare__say { color: var(--ia-navy); }

/* 6.5 Cascade */
.ia-cascade__list { display: flex; flex-wrap: wrap; gap: 8px; align-items: stretch; }
.ia-cascade__list > li { flex: 1 1 150px; min-width: 0; display: flex; gap: 8px; align-items: stretch; }
.ia-cascade__card { flex: 1 1 auto; min-width: 0; background: var(--ia-mist); padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.ia-cascade__card .ia-label { color: var(--ia-accent); }
.ia-cascade__title { font-size: 17px; line-height: 23px; font-weight: 700; color: var(--ia-navy); }
.ia-cascade__rule { font-size: 14px; line-height: 21px; }
.ia-cascade__ex { margin-top: auto; border-top: 1px solid var(--ia-line); padding-top: 8px; font-family: var(--ia-serif); font-style: italic; font-size: 16px; line-height: 23px; color: var(--ia-navy); }
.ia-cascade__chev { flex: none; align-self: center; width: 14px; height: 14px; fill: none; stroke: var(--ia-muted); stroke-width: 2; }
.ia-cascade__list > li:last-child .ia-cascade__card { background: var(--ia-navy); color: var(--ia-on-navy-2); }
.ia-cascade__list > li:last-child .ia-label { color: var(--ia-on-navy-muted); }
.ia-cascade__list > li:last-child .ia-cascade__title, .ia-cascade__list > li:last-child .ia-cascade__ex { color: var(--ia-on-navy); }
.ia-cascade__list > li:last-child .ia-cascade__ex { border-top-color: var(--ia-on-navy-line); }
.ia-cascade__list > li:last-child .ia-cascade__chev { display: none; }

/* 6.6 Sub-steps */
.ia-substeps { display: flex; flex-wrap: wrap; gap: 8px; }
.ia-substeps > li { flex: 1 1 150px; min-width: 0; display: flex; }
.ia .ia-substeps a { flex: 1; display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 6px 14px; border: 1px solid var(--ia-line); font-size: 14px; line-height: 19px; color: var(--ia-ink); text-decoration: none; min-width: 0; transition: border-color .2s; }
.ia .ia-substeps a:hover { border-color: var(--ia-navy); }
.ia-substeps__n { flex: none; font-family: var(--ia-mono); font-size: 12px; color: var(--ia-accent); }
.ia .ia-substeps a[aria-current="true"] { background: var(--ia-navy); border-color: var(--ia-navy); color: var(--ia-on-navy); font-weight: 600; }
.ia .ia-substeps a[aria-current="true"] .ia-substeps__n { color: var(--ia-on-navy-muted); }

/* 6.7 Checklist */
.ia-checklist { background: var(--ia-mist); padding: 28px; }
.ia-checklist__list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: 0 40px; }
.ia-checklist__list > li { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-top: 1px solid var(--ia-line); font-size: 16px; line-height: 24px; color: var(--ia-ink); min-width: 0; }
.ia-checklist__list > li::before { content: ""; flex: 0 0 18px; width: 18px; height: 18px; margin-top: 3px; border: 1.5px solid var(--ia-navy); }

/* 6.8 Board panel */
.ia-board { background: var(--ia-navy); color: var(--ia-on-navy); padding: 40px; display: flex; flex-direction: column; gap: 28px; }
.ia-board__head { display: flex; flex-direction: column; gap: 10px; }
.ia-board .ia-label { color: var(--ia-on-navy-muted); }
.ia-board__title { font-family: var(--ia-serif); font-size: 32px; line-height: 38px; color: var(--ia-on-navy); }
.ia-board__list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: 0 40px; counter-reset: ia-board; }
.ia-board__list > li { counter-increment: ia-board; display: flex; gap: 14px; align-items: baseline; padding: 16px 0; border-top: 1px solid var(--ia-on-navy-line); font-size: 17px; line-height: 26px; color: var(--ia-on-navy); min-width: 0; }
.ia-board__list > li::before { content: counter(ia-board); flex: 0 0 34px; font-family: var(--ia-serif); font-size: 34px; line-height: 26px; color: var(--ia-on-navy-muted); font-variant-numeric: lining-nums; }

/* 6.9 Figures and tables */
.ia-figure { display: flex; flex-direction: column; gap: 14px; }
.ia-figure img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border: 1px solid var(--ia-line); }
.ia-table { overflow-x: auto; border: 1px solid var(--ia-line); -webkit-overflow-scrolling: touch; }
.ia-table table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 16px; line-height: 24px; }
.ia-table th { font-family: var(--ia-mono); font-weight: 400; font-size: 12px; line-height: 16px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ia-navy); text-align: left; padding: 14px 16px; background: var(--ia-mist); border-bottom: 1px solid var(--ia-navy); vertical-align: bottom; }
.ia-table td { padding: 14px 16px; border-top: 1px solid var(--ia-line); vertical-align: top; color: var(--ia-text); }
.ia-table tbody tr:first-child td { border-top: 0; }

/* Audio edition (existing player, joined to the new look) */
.ia .article-audio { margin: 0; border-radius: 0; border: 1px solid var(--ia-line); background: var(--ia-mist); box-shadow: none; opacity: 1; transform: none; scroll-margin-top: calc(var(--ia-nav-h) + 20px); }
.ia .article-audio .aud-chapters { border-radius: 0; }

/* FAQ (existing) */
.ia-faq { border-top: 1px solid var(--ia-navy); padding-top: 20px; display: flex; flex-direction: column; gap: 0; }
.ia .ia-faq > h2 { margin-bottom: 20px; }
.ia-faq__item { border-top: 1px solid var(--ia-line); max-width: calc(var(--ia-measure) + 40px); }
.ia-faq__item:last-child { border-bottom: 1px solid var(--ia-line); }
.ia-faq__item > summary { cursor: pointer; display: flex; align-items: baseline; justify-content: space-between; gap: 20px; padding: 16px 0; min-height: 44px; font-family: var(--ia-serif); font-size: 22px; line-height: 29px; color: var(--ia-navy); list-style: none; }
.ia-faq__item > summary::-webkit-details-marker { display: none; }
.ia-faq__item > summary::after { content: ""; flex: none; width: 9px; height: 9px; margin-right: 4px; border-right: 1.5px solid var(--ia-navy); border-bottom: 1.5px solid var(--ia-navy); transform: translateY(-3px) rotate(45deg); transition: transform .2s; }
.ia-faq__item[open] > summary::after { transform: translateY(2px) rotate(-135deg); }
.ia-faq__item > p { padding: 0 0 20px; max-width: var(--ia-measure); }

/* ---------- 5.7 Sources ---------- */
.ia-sources { border-top: 1px solid var(--ia-navy); padding-top: 20px; display: flex; flex-direction: column; gap: 20px; }
.ia .ia-sources__label { font-family: var(--ia-mono); font-weight: 400; font-size: 12px; line-height: 16px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ia-muted); }
.ia-sources__group { display: flex; flex-direction: column; gap: 12px; }
.ia .ia-sources__group > h3 { font-family: var(--ia-sans); font-size: 15px; line-height: 22px; font-weight: 600; color: var(--ia-navy); letter-spacing: 0; }
.ia-sources__list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: 12px 40px; font-size: 14px; line-height: 22px; color: var(--ia-muted); }
.ia-sources__list > li { display: flex; gap: 10px; align-items: baseline; min-width: 0; }
.ia-sources__n { flex: 0 0 22px; font-family: var(--ia-mono); font-size: 12px; color: var(--ia-accent); }
.ia .ia-sources__list a { color: var(--ia-ink); text-decoration: underline; text-decoration-color: var(--ia-line); text-underline-offset: 0.18em; overflow-wrap: anywhere; min-width: 0; }
.ia .ia-sources__list a:hover { color: var(--ia-accent); text-decoration-color: currentColor; }
.ia-btn { align-self: flex-start; display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 18px; border: 1px solid var(--ia-navy); border-radius: 0; background: transparent; color: var(--ia-navy); font-family: var(--ia-sans); font-size: 15px; line-height: 20px; font-weight: 600; cursor: pointer; transition: background .2s, color .2s; }
.ia-btn:hover { background: var(--ia-navy); color: var(--ia-on-navy); }

/* ---------- 5.8 Author ---------- */
.ia-author { border-top: 1px solid var(--ia-navy); padding-top: 28px; display: flex; flex-wrap: wrap; gap: 20px 24px; align-items: flex-start; }
.ia-author__avatar { flex: none; width: 72px; height: 72px; border-radius: 50%; overflow: hidden; background: var(--ia-navy); color: var(--ia-on-navy); display: inline-flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 600; }
.ia-author__avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ia-author__body { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.ia-author__name { font-family: var(--ia-serif); font-size: 26px; line-height: 32px; color: var(--ia-navy); }
.ia-author__bio { max-width: var(--ia-measure); font-size: 16px; line-height: 26px; }
.ia-author__links { display: flex; flex-wrap: wrap; gap: 0 28px; }
.ia .ia-author__links a { display: inline-flex; align-items: center; min-height: 44px; font-size: 16px; font-weight: 600; color: var(--ia-accent); text-decoration: underline; text-underline-offset: 0.2em; }
.ia .ia-author__links a:hover { color: var(--ia-accent-hover); }

/* ---------- 5.9 Series ---------- */
.ia-series { background: var(--ia-mist); }
.ia-series__in { max-width: var(--ia-container); margin: 0 auto; padding: 56px var(--ia-gutter) 64px; display: flex; flex-direction: column; gap: 28px; }
.ia-series__head { display: flex; flex-wrap: wrap; gap: 12px 32px; align-items: baseline; justify-content: space-between; }
.ia .ia-series__head h2 { font-family: var(--ia-serif); font-weight: 500; font-size: 32px; line-height: 38px; color: var(--ia-navy); }
.ia .ia-series__all { display: inline-flex; align-items: center; min-height: 44px; font-size: 16px; font-weight: 600; color: var(--ia-accent); text-decoration: underline; text-underline-offset: 0.2em; }
.ia .ia-series__all:hover { color: var(--ia-accent-hover); }
.ia-series__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 16px; }
.ia-series__grid > li { display: flex; min-width: 0; }
.ia .ia-series__card { flex: 1; min-width: 0; min-height: 150px; display: flex; flex-direction: column; gap: 16px; padding: 24px; background: var(--ia-paper); border: 1px solid var(--ia-line); text-decoration: none; transition: border-color .2s; }
.ia .ia-series__card:hover { border-color: var(--ia-navy); }
.ia-series__title { font-family: var(--ia-serif); font-size: 21px; line-height: 27px; color: var(--ia-navy); overflow-wrap: break-word; }
.ia-series__card .ia-label { margin-top: auto; color: var(--ia-accent); }

.ia-printfoot { display: none; }

/* ---------- 7 Mobile bar and sheet ---------- */
.ia-bar, .ia-sheet { display: none; }

/* ---------- Compact layout (tablet and phone) ---------- */
@media (max-width: 920px) {
  .ia-body__in { flex-direction: column; align-items: stretch; gap: 32px; }
  .ia-rail { position: static; flex: none; width: auto; max-height: none; }
  .ia-toc__list { overflow: visible; }
  .ia-js .ia-toc__label, .ia-js .ia-toc__pos { display: none; }
  .ia-js .ia-toc__toggle { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 52px; padding: 8px 16px; background: var(--ia-mist); border: 1px solid var(--ia-line); border-radius: 0; color: var(--ia-ink); font-family: var(--ia-sans); font-size: 15px; line-height: 20px; font-weight: 600; text-align: left; cursor: pointer; }
  .ia-toc__toggle svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; flex: none; transition: transform .2s; }
  .ia-toc__toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
  .ia-js .ia-toc__list { display: none; }
  .ia-js .ia-toc--open .ia-toc__list { display: flex; }
  .ia .ia-toc__list a { padding: 12px 0; }
  .ia-js .ia-share { display: none; }

  .ia-js .ia-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 85; display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 8px 12px calc(8px + env(safe-area-inset-bottom)) 20px; background: var(--ia-paper); border-top: 1px solid var(--ia-navy); font-family: var(--ia-sans); color: var(--ia-ink); }
  .ia-bar__now { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
  .ia-bar__pos { font-family: var(--ia-mono); font-size: 12px; line-height: 16px; letter-spacing: 0.08em; color: var(--ia-accent); }
  .ia-bar__title { font-size: 14px; line-height: 20px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .ia-bar__btns { flex: none; display: flex; gap: 4px; }
  .ia-bar button { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 0; background: transparent; border: 1px solid var(--ia-line); border-radius: 0; color: var(--ia-navy); cursor: pointer; }
  .ia-bar button[aria-expanded="true"] { background: var(--ia-navy); border-color: var(--ia-navy); color: var(--ia-on-navy); }
  .ia-bar svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.75; }
  .ia-js .ia-sheet { position: fixed; left: 0; right: 0; bottom: calc(64px + env(safe-area-inset-bottom)); z-index: 84; display: block; max-height: min(64vh, 520px); overflow-y: auto; overscroll-behavior: contain; background: var(--ia-paper); border-top: 1px solid var(--ia-navy); padding: 16px 20px 20px; font-family: var(--ia-sans); color: var(--ia-ink); box-shadow: none; }
  .ia-sheet .ia-label { display: block; padding-bottom: 10px; }
  .ia-sheet ol, .ia-sheet ul { list-style: none; margin: 0; padding: 0; }
  .ia-sheet ol a { display: flex; gap: 8px; align-items: baseline; padding: 12px 0; border-top: 1px solid var(--ia-line-soft); font-size: 15px; line-height: 21px; color: var(--ia-muted); text-decoration: none; }
  .ia-sheet ol a[aria-current="true"] { color: var(--ia-navy); font-weight: 700; }
  .ia-sheet ol a[aria-current="true"] .ia-toc__num { color: var(--ia-accent); }
  .ia-sheet .ia-share { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .ia-sheet .ia-share a, .ia-sheet .ia-share button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 4px 8px; border: 1px solid var(--ia-line); border-radius: 0; background: transparent; color: var(--ia-ink); font-family: var(--ia-sans); font-size: 14px; font-weight: 600; text-decoration: none; cursor: pointer; }
  html.ia-js body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  html.ia-js .ts-ctl { bottom: calc(76px + env(safe-area-inset-bottom)); }
  html.ia-sheet-open .ts-ctl { display: none; }
}

/* ---------- Phone typography ---------- */
@media (max-width: 700px) {
  .ia { font-size: 17px; line-height: 28px; --ia-gutter: 20px; }
  .ia-head { background: var(--ia-paper); }
  .ia-head__in { padding: 0 var(--ia-gutter); gap: 0; }
  .ia-head__title { flex: 1 1 100%; margin: 0 calc(var(--ia-gutter) * -1); padding: calc(var(--ia-nav-h) + 32px) var(--ia-gutter) 36px; background: var(--ia-navy); gap: 20px; }
  .ia-h1 { font-size: 36px; line-height: 39px; }
  .ia-h1__sub { margin-top: 16px; font-size: 20px; line-height: 27px; }
  .ia-deck { font-size: 16px; line-height: 26px; }
  .ia-meta { gap: 6px 16px; }
  .ia-meta .ia-label::before { display: none; }
  .ia-brief { flex: 1 1 100%; max-width: none; margin-top: 20px; padding: 20px; border: 1px solid var(--ia-navy); }
  .ia-body__in { padding: 24px var(--ia-gutter) 56px; }
  .ia-col { gap: 44px; }
  .ia-section { gap: 22px; }
  .ia-section__head { gap: 14px; }
  .ia-section__num { font-size: 44px; line-height: 44px; }
  .ia .ia-section__head h2, .ia .ia-faq > h2 { font-size: 27px; line-height: 32px; }
  .ia .ia-text > h3 { font-size: 23px; line-height: 29px; }
  .ia-text > h3.cnt .cnt-n { line-height: 29px; }
  .ia-text > p.statement { font-size: 21px; line-height: 28px; }
  .ia .ia-pullquote, .ia .ia-text > blockquote { font-size: 25px; line-height: 32px; }
  .ia-note { font-size: 14px; line-height: 21px; }
  .ia-note__figure { font-size: 42px; line-height: 44px; }
  .ia-margin { flex: 1 1 100%; max-width: none; }
  .ia-evidence__grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .ia-evidence__card { padding: 14px; }
  .ia-evidence__value { font-size: 42px; line-height: 42px; }
  .ia-evidence__text { font-size: 13px; line-height: 19px; }
  .ia-cascade__list { flex-direction: column; }
  .ia-cascade__list > li { flex: none; flex-direction: column; }
  .ia-cascade__chev { transform: rotate(90deg); }
  .ia-checklist { padding: 20px; }
  .ia-board { padding: 24px; }
  .ia-board__title { font-size: 26px; line-height: 32px; }
  .ia-series__in { padding: 40px var(--ia-gutter) 48px; }
  .ia .ia-series__head h2 { font-size: 27px; line-height: 32px; }
  .ia-faq__item > summary { font-size: 20px; line-height: 27px; }
}

@media (prefers-reduced-motion: reduce) {
  .ia *, .ia-bar *, .ia-sheet * { transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- 13 Print / PDF ---------- */
@media print {
  .ia-progress, .ia-rail, .ia-bar, .ia-sheet, .ia-series, .ia-btn, .ia-substeps, .ia .article-audio, .ia-chips a.ia-chip { display: none !important; }
  .ia { font-size: 11pt; line-height: 1.5; }
  .ia-head__in { padding: 0 0 18pt !important; border-bottom: 1px solid #111 !important; }
  .ia-head__title { margin: 0 !important; padding: 0 !important; }
  .ia-h1 { font-size: 26pt !important; line-height: 1.1 !important; }
  .ia-h1__sub { font-size: 14pt !important; line-height: 1.3 !important; }
  .ia-chip, .ia-brief, .ia-board, .ia-checklist, .ia-layers__cell, .ia-cascade__card, .ia-compare__cell, .ia-evidence__card { border: 1px solid #111 !important; }
  .ia-body__in { display: block !important; padding: 18pt 0 0 !important; }
  .ia-col { display: block !important; }
  .ia-section, .ia-sources, .ia-author, .ia-faq { margin-top: 18pt; border-top: 1px solid #111 !important; }
  .ia-section, .ia-row, .ia-text, .ia-faq, .ia-sources { display: block !important; }
  .ia .ia-section > * + *, .ia .ia-sources > * + * { margin-top: 12pt; }
  .ia-text { max-width: none !important; }
  .ia .ia-text > * + * { margin-top: 8pt; }
  .ia .ia-text > h3 { margin-top: 14pt; break-after: avoid; }
  .ia-margin { max-width: none !important; margin-top: 8pt; }
  .ia-section__num { font-size: 28pt !important; line-height: 1 !important; }
  .ia .ia-section__head h2 { font-size: 18pt !important; line-height: 1.2 !important; }
  .ia-module, .ia-board, .ia-checklist, .ia-compare, .ia-layers, .ia-evidence__grid, .ia-cascade__list, .ia-table, .ia-figure, .ia-pullquote, .ia-note { break-inside: avoid; }
  .ia-section__head { break-after: avoid; }
  .ia-sources__list > li[hidden], .ia-sources__group[hidden] { display: flex !important; }
  .ia-printfoot { display: block !important; margin-top: 18pt; padding-top: 8pt; border-top: 1px solid #111 !important; font-size: 9pt; }
  html.ia-js body { padding-bottom: 0 !important; }
}
