/* =================================================================
   AR First — technical data-sheet system
   Graph-paper ground, 1px ink boxes, mono metadata strips,
   numbered Sheets, worked-calculation tables.
   Prefix: arf-
   ================================================================= */

@font-face { font-family: 'Monument Grotesk'; font-weight: 400; font-style: normal; font-display: swap; src: url('fonts/MonumentGrotesk-Regular.woff2') format('woff2'); }
@font-face { font-family: 'Monument Grotesk'; font-weight: 500; font-style: normal; font-display: swap; src: url('fonts/MonumentGrotesk-Medium.woff2') format('woff2'); }
@font-face { font-family: 'Monument Grotesk'; font-weight: 700; font-style: normal; font-display: swap; src: url('fonts/MonumentGrotesk-Bold.woff2') format('woff2'); }
@font-face { font-family: 'Soehne Mono'; font-weight: 400; font-style: normal; font-display: swap; src: url('fonts/SohneMono-Buch.woff2') format('woff2'); }

:root {
  --bg: #DDDCD4;
  --paper: #F2F1EA;
  --grid: #E4E3DA;
  --ink: #1B1C18;
  --body: #45463D;
  --muted: #6A6B60;
  --line: #C9C8BD;
  --hair: #E0DFD4;
  --green: #0F6B3C;
  --green-d: #0C5530;
  --green-l: #9CC7AE;
  --green-t: #C4DCCE;
  --res: #E9F0E9;
  --red: #A33B22;
  --red-bg: #F7EBE6;
  --sans: 'Monument Grotesk', 'Helvetica Neue', Arial, sans-serif;
  --mono: 'Soehne Mono', 'SFMono-Regular', Menlo, Consolas, monospace;
  --pad: 40px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.6; word-spacing: 0.05em; }
.arf-strip, .arf-calc-rows, .arf-table, .arf-fig-v, .arf-fig-l, .arf-nav, .arf-nav-cta, .arf-brand-sub, .arf-disclosure, .arf-ref-row, .arf-index-no, .arf-index-cat, .arf-footer-nav, .arf-footer-legal { word-spacing: normal; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--green); }
button, input { font: inherit; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }

.arf-skip { position: absolute; left: -9999px; top: 0; }
.arf-skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--ink); color: var(--paper); padding: 10px 14px; font-family: var(--mono); font-size: 13px; }
label.arf-skip { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); left: auto; }

/* ---------- Shell: graph paper ---------- */
.arf-shell {
  max-width: 1280px; margin: 0 auto; min-height: 100vh;
  background-color: var(--paper);
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 32px 32px;
  overflow-x: clip;
}

/* ---------- Disclosure strip ---------- */
.arf-disclosure {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 7px 28px; background: var(--ink); color: var(--paper);
  font-family: var(--mono); font-size: 12px; letter-spacing: .02em;
}
.arf-disclosure b { font-weight: 400; color: #fff; }
.arf-disclosure-r { color: var(--line); text-transform: uppercase; font-size: 11px; }

/* ---------- Masthead ---------- */
.arf-masthead { display: flex; align-items: stretch; border-bottom: 1px solid var(--ink); background: var(--paper); }
.arf-brand { display: block; padding: 22px 28px; border-right: 1px solid var(--ink); }
.arf-brand:hover { color: var(--ink); }
.arf-wordmark { display: block; font-size: 24px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.2; }
.arf-brand-sub { display: block; font-family: var(--mono); font-size: 10.5px; color: var(--muted); margin-top: 5px; line-height: 1.3; }
.arf-nav { flex: 1; display: flex; align-items: center; font-family: var(--mono); font-size: 13px; }
.arf-nav a { padding: 10px 22px; border-right: 1px solid var(--line); display: inline-flex; align-items: center; gap: 8px; }
.arf-nav a img { width: 14px; height: 14px; flex: none; }
.arf-nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.arf-nav-cta {
  display: flex; align-items: center; gap: 9px; padding: 0 30px;
  border-left: 1px solid var(--ink); background: var(--green); color: var(--paper);
  font-family: var(--mono); font-size: 13px;
}
.arf-nav-cta img { width: 15px; height: 15px; flex: none; }
.arf-nav-cta:hover, .arf-nav-cta.is-current { background: var(--ink); color: var(--paper); }

/* ---------- Boxes & strips ---------- */
.arf-main { padding: 40px var(--pad) 0; }
.arf-box { border: 1px solid var(--ink); background: var(--paper); }
.arf-strip {
  display: flex; align-items: center; gap: 8px; padding: 8px 16px;
  border-bottom: 1px solid var(--ink);
  font-family: var(--mono); font-size: 11.5px; color: var(--muted); letter-spacing: .02em; line-height: 1.4;
}
.arf-strip img { width: 13px; height: 13px; flex: none; }
.arf-strip--split { justify-content: space-between; padding: 0; gap: 0; }
.arf-strip--split > span { padding: 8px 16px; display: inline-flex; align-items: center; gap: 8px; }
.arf-strip--split > .arf-strip-r { border-left: 1px solid var(--line); text-align: right; }
.arf-strip--split > span.arf-strip-r { display: block; }
.arf-strip a:hover { color: var(--green); }

/* ---------- Homepage lead ---------- */
.arf-lead-grid { display: grid; grid-template-columns: 1fr 440px; }
.arf-lead-text { padding: 36px 40px 40px; }
.arf-lead h1 { margin: 0; font-size: 52px; font-weight: 700; line-height: 1.04; letter-spacing: -0.02em; word-spacing: 0.08em; text-wrap: pretty; }
.arf-lead-ex { margin: 18px 0 0; font-size: 18px; line-height: 1.6; color: var(--body); max-width: 32em; }
.arf-lead-media { border-left: 1px solid var(--ink); min-height: 340px; position: relative; }
.arf-lead-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.arf-figs { display: flex; gap: 26px; margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); }
.arf-figs > div + div { border-left: 1px solid var(--line); padding-left: 26px; }
.arf-fig-v { font-family: var(--mono); font-size: 26px; line-height: 1.2; white-space: nowrap; }
.arf-fig-v.neg { color: var(--red); }
.arf-fig-v.pos { color: var(--green); }
.arf-fig-l { font-family: var(--mono); font-size: 10.5px; color: var(--muted); margin-top: 3px; text-transform: uppercase; }
.arf-lead-go { display: inline-flex; align-items: center; gap: 9px; margin-top: 26px; font-family: var(--mono); font-size: 13px; border: 1px solid var(--ink); padding: 11px 16px; }
.arf-lead-go:hover { background: var(--ink); color: var(--paper); }
.arf-lead-go:hover img { filter: invert(1); }

/* ---------- Cards ---------- */
.arf-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; padding-top: 24px; }
.arf-card { display: flex; flex-direction: column; }
.arf-card:hover { color: var(--ink); }
.arf-card:hover .arf-card-title { color: var(--green); }
.arf-card-body { padding: 20px 22px 24px; }
.arf-card-title { margin: 0; font-size: 21px; font-weight: 700; line-height: 1.2; }
.arf-card-ex { margin: 10px 0 0; font-size: 15.5px; line-height: 1.55; color: var(--body); }
.arf-card-meta { margin-top: 14px; font-family: var(--mono); font-size: 11px; color: var(--muted); }
.arf-card-img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-bottom: 1px solid var(--ink); }

/* ---------- Rows: index + newsletter ---------- */
.arf-row { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 24px; padding-top: 24px; align-items: start; }
.arf-row--after { padding-top: 48px; }
.arf-index-row { display: grid; grid-template-columns: 90px minmax(0, 1fr) 120px; font-size: 16px; border-bottom: 1px solid var(--hair); }
.arf-index-row:last-of-type { border-bottom: 0; }
.arf-index-no { padding: 14px 16px; font-family: var(--mono); color: var(--muted); display: flex; align-items: flex-start; }
.arf-index-no img { width: 14px; height: 14px; margin-top: 4px; }
.arf-index-title { padding: 14px 0; font-weight: 500; line-height: 1.35; }
.arf-index-title small { display: block; font-weight: 400; font-size: 14px; color: var(--body); margin-top: 4px; }
.arf-index-cat { padding: 15px 16px 14px; font-family: var(--mono); font-size: 12px; color: var(--muted); text-align: right; }
.arf-index-row:hover .arf-index-title { color: var(--green); }
.arf-index-more { display: block; padding: 12px 16px; border-top: 1px solid var(--ink); font-family: var(--mono); font-size: 13px; }
.arf-index-more span { display: inline-flex; align-items: center; gap: 9px; }
.arf-index-more:hover { background: var(--ink); color: var(--paper); }
.arf-index-more:hover img { filter: invert(1); }

/* ---------- Newsletter (green) ---------- */
.arf-optin { border: 1px solid var(--ink); background: var(--green); color: var(--paper); scroll-margin-top: 20px; }
.arf-optin-strip { display: flex; align-items: center; gap: 8px; padding: 8px 16px; border-bottom: 1px solid var(--green-d); font-family: var(--mono); font-size: 11.5px; color: var(--green-l); }
.arf-optin-strip img { width: 13px; height: 13px; }
.arf-optin-inner { padding: 24px 26px 28px; }
.arf-optin-head { margin: 0; font-size: 24px; font-weight: 700; line-height: 1.2; color: var(--paper); }
.arf-optin-copy p { margin: 12px 0 0; font-size: 15px; line-height: 1.6; color: var(--green-t); }
.arf-optin-formwrap { margin-top: 20px; }
.arf-form { display: flex; flex-direction: column; gap: 10px; }
.arf-form input[type=email] {
  font-family: var(--mono); font-size: 15px; padding: 13px 14px; width: 100%;
  border: 1px solid var(--green-d); background: var(--green-d); color: var(--paper); border-radius: 0;
}
.arf-form input[type=email]::placeholder { color: var(--green-l); }
.arf-form button {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--sans); font-size: 15px; font-weight: 700; padding: 14px;
  border: 0; background: var(--paper); color: var(--green); cursor: pointer; border-radius: 0;
}
.arf-form button img { width: 15px; height: 15px; }
.arf-form button:hover { background: var(--ink); color: var(--paper); }
.arf-form button:hover img { filter: invert(1); }
.arf-consent { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; font-size: 13.5px; line-height: 1.5; color: var(--green-t); cursor: pointer; }
.arf-consent input { margin: 3px 0 0; width: 17px; height: 17px; flex: none; accent-color: var(--ink); }
.arf-consent a { text-decoration: underline; text-underline-offset: 2px; color: var(--paper); }
.arf-form-msg { margin-top: 10px; font-family: var(--mono); font-size: 13px; min-height: 1em; }
.arf-form-msg[data-state="err"] { color: #FFD9CE; }
.arf-form-msg[data-state="ok"] { color: var(--paper); }
.arf-optin--wide .arf-optin-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.arf-optin--wide .arf-optin-formwrap { margin-top: 0; }

/* ---------- Reference sheet (numbers module) ---------- */
.arf-ref { margin-top: 24px; }
.arf-ref-grid { display: grid; grid-template-columns: 1fr 1fr; }
.arf-ref-grid > div:first-child { border-right: 1px solid var(--ink); }
.arf-ref-row { display: flex; justify-content: space-between; gap: 16px; padding: 11px 16px; border-bottom: 1px solid var(--hair); font-family: var(--mono); font-size: 14px; }
.arf-ref-row:last-child { border-bottom: 0; }
.arf-ref-row span:first-child { color: var(--body); }
.arf-ref-row span:last-child { white-space: nowrap; text-align: right; }
.arf-ref-row a:hover { color: var(--green); }
.arf-ref-foot { padding: 10px 16px; border-top: 1px solid var(--ink); font-family: var(--mono); font-size: 11.5px; color: var(--muted); }

/* ---------- Section blocks ---------- */
.arf-sections { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; padding-top: 24px; }
.arf-sec-blurb { padding: 16px 18px; margin: 0; font-size: 14.5px; line-height: 1.5; color: var(--body); border-bottom: 1px solid var(--line); }
.arf-sec-list a { display: block; padding: 12px 18px; border-bottom: 1px solid var(--hair); font-size: 15px; font-weight: 500; line-height: 1.35; }
.arf-sec-list a span { display: block; font-family: var(--mono); font-size: 11px; color: var(--muted); font-weight: 400; margin-bottom: 3px; }
.arf-sec-list a:last-child { border-bottom: 0; }
.arf-sec-more { display: block; padding: 10px 18px; border-top: 1px solid var(--ink); font-family: var(--mono); font-size: 12.5px; }
.arf-sec-more:hover { background: var(--ink); color: var(--paper); }

/* ---------- Article ---------- */
.arf-art-grid { display: grid; grid-template-columns: minmax(0, 680px) 320px; gap: 56px; justify-content: center; padding: 48px 48px 56px; }
.arf-h1 { margin: 0; font-size: 44px; font-weight: 700; line-height: 1.08; letter-spacing: -0.02em; word-spacing: 0.08em; text-wrap: pretty; }
.arf-standfirst { margin: 20px 0 0; font-size: 20px; line-height: 1.55; color: var(--body); }
.arf-adlabel { margin: 0 0 16px; display: inline-block; padding: 6px 10px; border: 1px solid var(--ink); font-family: var(--mono); font-size: 12px; }
.arf-fig { margin: 30px 0 0; }
.arf-fig img, .arf-photo { filter: grayscale(.3) sepia(.08) contrast(1.04); }
.arf-fig img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border: 1px solid var(--ink); }
.arf-fig figcaption { margin-top: 8px; font-family: var(--mono); font-size: 11px; color: var(--muted); }

.arf-prose { margin-top: 12px; }
.arf-prose > p, .arf-prose > ul, .arf-prose > ol { font-size: 18px; line-height: 1.7; margin: 18px 0 0; }
.arf-prose > ul, .arf-prose > ol { padding-left: 1.3em; }
.arf-prose li { margin-top: 8px; }
.arf-prose li::marker { color: var(--muted); font-family: var(--mono); }
.arf-prose h2 { margin: 40px 0 0; font-size: 26px; font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; word-spacing: 0.04em; scroll-margin-top: 16px; }
.arf-prose h3 { margin: 28px 0 0; font-size: 20px; font-weight: 700; line-height: 1.3; }
.arf-prose a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: var(--muted); }
.arf-prose a:hover { text-decoration-color: var(--green); }
.arf-prose strong { font-weight: 700; }
.arf-prose .arf-lede { font-size: 19px; }

/* The working: signature calculation table */
.arf-calc { margin: 30px 0; border: 1px solid var(--ink); background: var(--paper); }
.arf-calc-rows { font-family: var(--mono); font-size: 14.5px; }
.arf-calc-row { display: flex; justify-content: space-between; gap: 18px; padding: 11px 16px; border-bottom: 1px solid var(--hair); }
.arf-calc-row span:last-child { white-space: nowrap; text-align: right; }
.arf-calc-row.neg { color: var(--red); }
.arf-calc-row.sub { color: var(--muted); }
.arf-calc-row.res { font-weight: 700; background: var(--res); border-bottom: 0; }
.arf-calc-row.res span:last-child { color: var(--green); }
.arf-calc-row.res.neg-res span:last-child { color: var(--red); }
.arf-calc-note { padding: 10px 16px; border-top: 1px solid var(--ink); font-family: var(--mono); font-size: 11.5px; line-height: 1.55; color: var(--muted); }

/* Multi-column data table */
.arf-tablewrap { margin: 30px 0; border: 1px solid var(--ink); background: var(--paper); }
.arf-tablescroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.arf-table { width: 100%; border-collapse: collapse; font-family: var(--mono); font-size: 14px; }
.arf-table th { text-align: left; font-weight: 400; font-size: 11px; color: var(--muted); text-transform: uppercase; padding: 10px 14px; border-bottom: 1px solid var(--ink); vertical-align: bottom; }
.arf-table td { padding: 10px 14px; border-bottom: 1px solid var(--hair); vertical-align: top; }
.arf-table tr:last-child td { border-bottom: 0; }
.arf-table .num { text-align: right; white-space: nowrap; }
.arf-table .neg { color: var(--red); }
.arf-table .pos { color: var(--green); }
.arf-table tr.res td { background: var(--res); font-weight: 700; }

/* Inline pull figure */
.arf-keyline { margin: 30px 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--ink); }
.arf-keyline > div { padding: 16px; }
.arf-keyline > div + div { border-left: 1px solid var(--line); }

/* Checklist */
.arf-check { margin: 30px 0; border: 1px solid var(--ink); }
.arf-check ol { list-style: none; margin: 0; padding: 0; counter-reset: c; }
.arf-check li { counter-increment: c; display: grid; grid-template-columns: 44px 1fr; border-bottom: 1px solid var(--hair); font-size: 16.5px; line-height: 1.55; }
.arf-check li:last-child { border-bottom: 0; }
.arf-check li::before { content: counter(c, decimal-leading-zero); font-family: var(--mono); font-size: 12px; color: var(--muted); padding: 13px 0 0 14px; }
.arf-check li > span { padding: 11px 16px 11px 0; }

/* Disclaimer */
.arf-disclaimer { margin-top: 44px; border: 1px solid var(--line); background: #EBEAE2; }
.arf-disclaimer .arf-strip { border-bottom-color: var(--line); }
.arf-disclaimer p { margin: 0; padding: 14px 16px; font-size: 14px; line-height: 1.65; color: var(--body); }
.arf-disclaimer a { text-decoration: underline; text-underline-offset: 2px; }

/* Sidebar */
.arf-art-side { display: flex; flex-direction: column; gap: 20px; }
.arf-toc { display: flex; flex-direction: column; font-size: 14.5px; font-weight: 500; }
.arf-toc a { display: grid; grid-template-columns: 30px 1fr; padding: 11px 14px; border-bottom: 1px solid var(--hair); line-height: 1.35; }
.arf-toc a:last-child { border-bottom: 0; }
.arf-toc a span { font-family: var(--mono); font-weight: 400; color: var(--muted); font-size: 12px; padding-top: 2px; }
.arf-toc-box { position: static; }
.arf-note { border: 1px solid var(--red); background: var(--red-bg); }
.arf-note-strip { display: flex; align-items: center; gap: 8px; padding: 8px 14px; border-bottom: 1px solid var(--red); font-family: var(--mono); font-size: 11.5px; color: var(--red); }
.arf-note-strip img { width: 13px; height: 13px; }
.arf-note p { margin: 0; padding: 14px; font-size: 14.5px; line-height: 1.6; color: var(--body); }
.arf-sources ol { margin: 0; padding: 4px 0; list-style: none; counter-reset: s; }
.arf-sources li { counter-increment: s; position: relative; padding: 10px 14px 10px 42px; font-size: 14px; line-height: 1.5; border-bottom: 1px solid var(--hair); }
.arf-sources li::before { content: "[" counter(s) "]"; position: absolute; left: 14px; top: 11px; font-family: var(--mono); font-size: 11.5px; color: var(--muted); }
.arf-sources li a { text-decoration: underline; text-underline-offset: 2px; text-decoration-color: var(--line); }
.arf-sources li span { display: block; color: var(--muted); font-size: 13px; margin-top: 3px; }
.arf-sources-foot { margin: 0; padding: 10px 14px; font-family: var(--mono); font-size: 11px; color: var(--muted); }

/* ---------- Category head ---------- */
.arf-cathead-body { padding: 32px 40px 36px; }
.arf-cathead-body .arf-standfirst { max-width: 40em; }

/* ---------- Static pages ---------- */
.arf-page-grid { display: grid; grid-template-columns: minmax(0, 760px); justify-content: center; padding: 48px 48px 56px; }
.arf-page .arf-h1 { font-size: 40px; }
.arf-page-body > p, .arf-page-body > ul, .arf-page-body > ol { font-size: 17px; line-height: 1.7; margin: 16px 0 0; }
.arf-page-body > ul, .arf-page-body > ol { padding-left: 1.3em; }
.arf-page-body li { margin-top: 6px; }
.arf-page-body h2 { margin: 38px 0 0; font-size: 24px; line-height: 1.25; font-weight: 700; scroll-margin-top: 16px; }
.arf-page-body h3 { margin: 24px 0 0; font-size: 19px; font-weight: 700; }
.arf-page-body a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--muted); }
.arf-page-body .arf-btn { text-decoration: none; }
.arf-meta { margin: 14px 0 0; font-family: var(--mono); font-size: 12px; color: var(--muted); }

.arf-dl { margin: 18px 0 0; border: 1px solid var(--ink); display: grid; grid-template-columns: 220px minmax(0, 1fr); font-size: 16px; }
.arf-dl dt { padding: 12px 16px; border-bottom: 1px solid var(--hair); font-family: var(--mono); font-size: 12px; color: var(--muted); text-transform: uppercase; line-height: 1.5; }
.arf-dl dd { margin: 0; padding: 11px 16px; border-bottom: 1px solid var(--hair); line-height: 1.55; }
.arf-dl dt:last-of-type, .arf-dl dd:last-of-type { border-bottom: 0; }

.arf-company { margin: 26px 0 0; font-size: 30px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.2; }
.arf-idbox { margin: 14px 0 0; border: 1px solid var(--ink); border-left: 4px solid var(--green); background: var(--res); }
.arf-idbox-label { padding: 8px 16px; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: 11.5px; color: var(--muted); letter-spacing: .04em; }
.arf-idbox-val { display: block; padding: 14px 16px 4px; font-family: var(--mono); font-size: 30px; color: var(--green); line-height: 1.2; }
.arf-idbox-row { padding: 6px 16px 14px; font-size: 16px; line-height: 1.7; }
.arf-idbox-row b { font-weight: 700; }

.arf-tablewrap .arf-table td { font-family: var(--sans); font-size: 15px; }
.arf-tablewrap .arf-table.mono td { font-family: var(--mono); font-size: 14px; }

/* Buttons */
.arf-btn { display: inline-flex; align-items: center; gap: 9px; padding: 12px 18px; font-family: var(--mono); font-size: 13px; cursor: pointer; border-radius: 0; }
.arf-btn--ink { background: var(--ink); color: var(--paper); border: 1px solid var(--ink); }
.arf-btn--ink:hover { background: var(--green); border-color: var(--green); color: var(--paper); }
.arf-btn--line { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.arf-btn--line:hover { background: var(--ink); color: var(--paper); }

/* ---------- Footer ---------- */
.arf-footnote { margin: 48px var(--pad) 0; border: 1px solid var(--line); background: #EBEAE2; }
.arf-footnote .arf-strip { border-bottom-color: var(--line); }
.arf-footnote p { margin: 0; padding: 14px 16px; font-size: 14px; line-height: 1.65; color: var(--body); }
.arf-footnote a { text-decoration: underline; text-underline-offset: 2px; }
.arf-footer { margin-top: 24px; border-top: 1px solid var(--ink); background: var(--paper); display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px var(--pad); }
.arf-footer-mark { font-size: 16px; font-weight: 700; }
.arf-footer-nav { display: flex; flex-wrap: wrap; gap: 8px 24px; font-family: var(--mono); font-size: 12.5px; color: var(--muted); }
.arf-footer-nav a:hover { color: var(--green); }
.arf-footer-legal { font-family: var(--mono); font-size: 11px; color: var(--muted); text-align: right; }

/* ---------- Cookie banner ---------- */
.arf-cookie { position: fixed; right: 20px; bottom: 20px; z-index: 50; width: min(440px, calc(100vw - 32px)); border: 1px solid var(--ink); background: var(--paper); box-shadow: 6px 6px 0 rgba(27, 28, 24, .14); }
.arf-cookie[hidden] { display: none; }
.arf-cookie-body { padding: 14px 16px 16px; }
.arf-cookie p { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--body); }
.arf-cookie p a { text-decoration: underline; }
.arf-cookie-actions { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }

/* ---------- 404 ---------- */
.arf-404 { padding: 56px 48px; }

/* =================================================================
   Responsive
   ================================================================= */
@media (max-width: 1180px) {
  .arf-lead-grid { grid-template-columns: 1fr 360px; }
  .arf-lead h1 { font-size: 44px; }
  .arf-sections { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .arf-art-grid { grid-template-columns: minmax(0, 1fr) 290px; gap: 40px; padding: 40px 36px 48px; }
  .arf-nav a { padding: 10px 16px; }
}

@media (max-width: 960px) {
  :root { --pad: 24px; }
  .arf-masthead { flex-wrap: wrap; }
  .arf-brand { flex: 1 1 100%; border-right: 0; border-bottom: 1px solid var(--ink); padding: 18px var(--pad); }
  .arf-nav { flex: 1 1 100%; display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--ink); }
  .arf-nav a { justify-content: center; padding: 12px 8px; }
  .arf-nav a:last-child { border-right: 0; }
  .arf-nav-cta { flex: 1 1 100%; justify-content: center; padding: 13px; border-left: 0; }
  .arf-lead-grid { grid-template-columns: 1fr; }
  .arf-lead-media { order: -1; border-left: 0; border-bottom: 1px solid var(--ink); min-height: 0; aspect-ratio: 16 / 9; }
  .arf-cards { grid-template-columns: 1fr 1fr; }
  .arf-row { grid-template-columns: 1fr; }
  .arf-art-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; padding: 32px var(--pad) 40px; }
  .arf-toc-box { display: none; }
  .arf-optin--wide .arf-optin-inner { grid-template-columns: 1fr; gap: 0; }
  .arf-optin--wide .arf-optin-formwrap { margin-top: 20px; }
  .arf-ref-grid { grid-template-columns: 1fr; }
  .arf-ref-grid > div:first-child { border-right: 0; border-bottom: 1px solid var(--hair); }
  .arf-page-grid { padding: 32px var(--pad) 40px; }
  .arf-footer { flex-direction: column; align-items: flex-start; }
  .arf-footer-legal { text-align: left; }
}

@media (max-width: 640px) {
  :root { --pad: 16px; }
  body { font-size: 16.5px; }
  .arf-disclosure { padding: 7px var(--pad); font-size: 11.5px; }
  .arf-disclosure-r { display: none; }
  .arf-nav { grid-template-columns: 1fr 1fr; font-size: 13px; }
  .arf-nav a:nth-child(2) { border-right: 0; }
  .arf-nav a:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .arf-main { padding-top: 20px; }
  .arf-strip--split { flex-direction: column; align-items: stretch; }
  .arf-strip--split > .arf-strip-r { border-left: 0; border-top: 1px solid var(--line); text-align: left; }
  .arf-lead-text { padding: 22px 18px 24px; }
  .arf-lead h1 { font-size: 31px; line-height: 1.1; }
  .arf-lead-ex { font-size: 17px; }
  .arf-figs { flex-direction: column; gap: 12px; }
  .arf-figs > div + div { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 12px; }
  .arf-cards, .arf-sections { grid-template-columns: 1fr; gap: 16px; padding-top: 16px; }
  .arf-row { gap: 16px; padding-top: 16px; }
  .arf-row--after { padding-top: 32px; }
  .arf-index-row { grid-template-columns: 52px minmax(0, 1fr); }
  .arf-index-no { padding: 13px 10px 13px 14px; font-size: 13px; }
  .arf-index-cat { display: none; }
  .arf-index-title { padding: 13px 14px 13px 0; }
  .arf-art-grid { padding: 22px 16px 32px; }
  .arf-h1, .arf-page .arf-h1 { font-size: 31px; line-height: 1.12; }
  .arf-standfirst { font-size: 18px; }
  .arf-prose > p, .arf-prose > ul, .arf-prose > ol { font-size: 17.5px; }
  .arf-prose h2 { font-size: 23px; margin-top: 34px; }
  .arf-calc-rows { font-size: 13.5px; }
  .arf-calc-row { padding: 10px 12px; gap: 12px; }
  .arf-table { font-size: 13px; }
  .arf-table th, .arf-table td { padding: 9px 10px; }
  .arf-keyline { grid-template-columns: 1fr; }
  .arf-keyline > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .arf-optin-inner { padding: 20px 18px 22px; }
  .arf-optin-head { font-size: 21px; }
  .arf-cathead-body { padding: 22px 18px 26px; }
  .arf-dl { grid-template-columns: 1fr; }
  .arf-dl dt { border-bottom: 0; padding-bottom: 0; }
  .arf-dl dd { padding-top: 4px; }
  .arf-company { font-size: 25px; }
  .arf-idbox-val { font-size: 25px; }
  .arf-footnote { margin-top: 32px; }
  .arf-cookie { right: 16px; bottom: 16px; }
  .arf-404 { padding: 32px 18px; }
}
