/* ==========================================================================
   The Demand Charge — design system
   --------------------------------------------------------------------------
   One stylesheet. Sections in order:
     1 tokens · 2 reset · 3 utilities · 4 typography · 5 chrome
     6 cards & grids · 7 article layouts · 8 body components · 9 figures
     10 forms · 11 institutional pages · 12 ads & consent · 13 motion
     14 responsive · 15 print

   The look is a classical trade journal: cream stock, a serif throughout,
   hairline rules doing the structural work, and one restrained accent. No
   screens of black, no monospace, no grid textures. Figures are set in a
   tabular lining sans, the way an annual report sets them.
   ========================================================================== */

/* ==========================================================================
   1. Tokens
   ========================================================================== */
:root {
  /* Stock — warm cream, closer to a printed journal than to a screen */
  --paper:      #f8f5ee;
  --paper-2:    #f1ece0;
  --paper-3:    #e7e0cf;
  --white:      #fffdf8;

  /* Ink — warm near-black, never blue-black */
  --ink:        #211e1a;
  --ink-soft:   #423c34;
  --ink-mute:   #6a6156;
  --faint:      #918878;

  /* Oxblood — the single accent. Kickers, rules, drop caps, marks.
     6.9:1 on cream, comfortably past AA for text. */
  --accent:        #7b2d26;
  --accent-deep:   #5f211c;
  --accent-light:  #b4695f;

  /* Slate — links and the second voice. 6.4:1 on cream. */
  --link:       #2f4858;
  --link-deep:  #22343f;
  --link-light: #7d99a8;

  /* Peak — reserved for one thing: the marker on a load curve and the
     "this is what it costs you" figure. Never decorative. */
  --peak:       #9c3a1c;

  /* Rules — hairlines carry the structure of this design */
  --rule:        #cfc6b1;
  --rule-soft:   #e0d9c8;
  --rule-strong: #211e1a;
  --rule-onink:  rgba(248, 245, 238, 0.22);

  /* Type. Two serifs and a grotesque, the classical magazine arrangement:
     a display face for headlines, a text face for reading, and a Franklin
     for the small apparatus — labels, bylines, tables, figures. */
  --display: "Newsreader", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --serif:   "Spectral", Georgia, "Times New Roman", serif;
  --sans:    "Libre Franklin", "Helvetica Neue", Helvetica, Arial, sans-serif;

  /* Fluid scale */
  --step-6: clamp(2.7rem, 1.5rem + 5vw, 5rem);
  --step-5: clamp(2.2rem, 1.4rem + 3.3vw, 3.9rem);
  --step-4: clamp(1.85rem, 1.35rem + 2.1vw, 2.85rem);
  --step-3: clamp(1.5rem, 1.25rem + 1.1vw, 2.05rem);
  --step-2: clamp(1.25rem, 1.13rem + 0.55vw, 1.52rem);
  --step-1: clamp(1.08rem, 1.02rem + 0.26vw, 1.22rem);
  --step-0: clamp(1rem, 0.975rem + 0.12vw, 1.06rem);
  --step--1: clamp(0.87rem, 0.85rem + 0.08vw, 0.92rem);
  --step--2: 0.795rem;
  --step--3: 0.715rem;

  /* Layout */
  --measure:   66ch;
  --container: 1180px;
  --wide:      1360px;
  --gutter:    clamp(1.1rem, 4vw, 2.6rem);

  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);

  --radius: 2px;
}

@view-transition { navigation: auto; }

/* ==========================================================================
   2. Reset & base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  tab-size: 2;
  overflow-x: clip;
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: var(--step-0);
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
h1, h2, h3, h4, h5, h6 {
  font-family: var(--display);
  font-weight: 600;
  text-wrap: balance;
  line-height: 1.16;
  letter-spacing: -0.008em;
}
hr { border: 0; border-top: 1px solid var(--rule); }
table { border-collapse: collapse; }

::selection { background: var(--paper-3); color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 1px;
}
.site-footer :focus-visible { outline-color: var(--paper); }

/* Every figure on this site is set in a tabular lining sans, so a column of
   dollars lines up the way it does on a printed statement. */
.num, td.num, th.num {
  font-family: var(--sans);
  font-variant-numeric: tabular-nums lining-nums;
  font-feature-settings: "tnum" 1, "lnum" 1;
}

/* ==========================================================================
   3. Utilities
   ========================================================================== */
.skip-link {
  position: fixed;
  top: -140px; left: 1rem;
  z-index: 9999;
  padding: 0.75rem 1.2rem;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-weight: 600;
  transition: top .3s var(--ease-out);
}
.skip-link:focus { top: 1rem; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--wide   { max-width: var(--wide); }
.container--narrow { max-width: 780px; }
.container--reading{ max-width: 700px; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.muted { color: var(--ink-mute); }
.center { text-align: center; }
.mt-1 { margin-top: .8rem } .mt-2 { margin-top: 1.6rem } .mt-3 { margin-top: 2.6rem }
.mb-0 { margin-bottom: 0 }

.rule       { border: 0; border-top: 1px solid var(--rule-strong); margin-block: 2.4rem; }
.rule--hair { border-top-color: var(--rule); }
/* The double rule is the signature device of this design — the one a
   broadsheet uses to close a section. */
.rule--tape {
  border: 0;
  height: 4px;
  margin-block: 2.6rem;
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

/* ==========================================================================
   4. Typography
   ========================================================================== */
.eyebrow, .kicker {
  display: inline-block;
  font-family: var(--sans);
  font-size: var(--step--3);
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow--onpanel, .kicker--onpanel { color: var(--accent-light); }
.eyebrow--accent { color: var(--link); }

.display { font-family: var(--display); font-weight: 700; }

.lede {
  font-family: var(--serif);
  font-size: var(--step-1);
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 58ch;
}
.lede--large { font-size: var(--step-2); line-height: 1.52; }

/* Small caps label — the classical apparatus, used for units and tariff
   codes where a technical publication would reach for monospace. */
.chip {
  display: inline-block;
  font-family: var(--sans);
  font-size: var(--step--3);
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
  padding: .2em .55em .22em;
  border: 1px solid var(--rule);
  background: var(--paper-2);
  color: var(--ink-soft);
  white-space: nowrap;
}
.chip--copper { border-color: rgba(123,45,38,.35); background: rgba(123,45,38,.06); color: var(--accent-deep); }
.chip--accent { border-color: rgba(47,72,88,.3); background: rgba(47,72,88,.06); color: var(--link-deep); }
.chip--onpanel { border-color: var(--rule-onink); background: transparent; color: var(--paper); }

.byline {
  font-family: var(--sans);
  font-size: var(--step--2);
  color: var(--ink-mute);
  display: flex; flex-wrap: wrap; align-items: center;
  gap: .4rem .85rem;
}
.byline strong { color: var(--ink); font-weight: 600; }
.byline .sep { color: var(--rule); }

/* Byline strip above an article title — hairline top and bottom, small caps
   between. A newspaper folio line. */
.meta-rail {
  display: flex; flex-wrap: wrap; align-items: stretch;
  font-family: var(--sans);
  font-size: var(--step--3);
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-mute);
  border-top: 1px solid var(--rule-strong);
  border-bottom: 1px solid var(--rule);
}
.meta-rail > * {
  padding: .6rem 1.15rem .6rem 0;
  margin-right: 1.15rem;
  border-right: 1px solid var(--rule);
  /* gap, because a flex container drops the whitespace between a text node
     and an inline child — "By" and the author's name would run together. */
  display: flex; align-items: center; gap: .34em;
}
.meta-rail > *:last-child { border-right: 0; margin-right: 0; padding-right: 0; }
.meta-rail a { color: var(--accent); }
.meta-rail a:hover { color: var(--accent-deep); }
.meta-rail--onpanel { color: rgba(248,245,238,.72); border-top-color: var(--paper); border-bottom-color: var(--rule-onink); }
.meta-rail--onpanel > * { border-right-color: var(--rule-onink); }
.meta-rail--onpanel a { color: var(--paper); }

.ulink {
  color: var(--link);
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 1px;
  background-repeat: no-repeat;
  background-position: 0 92%;
  transition: background-size .35s var(--ease-out), color .2s;
}
.ulink:hover, .ulink:focus-visible { background-size: 100% 1px; color: var(--link-deep); }

/* ==========================================================================
   5. Chrome — masthead, nav, breadcrumbs, footer
   ========================================================================== */
.progress {
  position: fixed; inset: 0 auto auto 0;
  height: 2px; width: 100%;
  transform: scaleX(0); transform-origin: 0 50%;
  background: var(--accent);
  z-index: 200;
}

/* A broadsheet masthead: cream, a heavy accent rule above, a double rule
   below, and the nameplate set in the display serif. */
.masthead {
  position: sticky; top: 0; z-index: 100;
  background: var(--paper);
  color: var(--ink);
  border-top: 3px solid var(--accent);
  box-shadow: 0 1px 0 var(--rule);
}

.masthead__bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 66px; padding-block: .6rem;
  border-bottom: 1px solid var(--ink);
}

.brandmark {
  display: inline-flex; align-items: baseline; gap: .6rem;
  color: var(--ink);
  line-height: 1;
}
.brandmark img, .brandmark svg { width: 30px; height: 30px; flex: none; align-self: center; }
.brandmark__word {
  font-family: var(--display);
  font-size: 1.62rem; font-weight: 700; letter-spacing: -0.012em;
}
.brandmark__word b { font-weight: 700; }
.brandmark__word span {
  font-weight: 400;
  font-style: italic;
  color: var(--accent);
}

.masthead__nav { display: none; gap: 1.6rem; }
.nav-link {
  font-family: var(--sans);
  font-size: var(--step--2);
  font-weight: 500;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding-block: .35rem;
  border-bottom: 2px solid transparent;
  transition: color .2s, border-color .2s;
}
.nav-link:hover { color: var(--accent); }
.nav-link[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent); }

/* Section line under the nameplate, as a print masthead sets it. */
.topic-bar { display: none; background: var(--paper); border-bottom: 1px solid var(--rule); }
.topic-bar__inner {
  display: flex; gap: 0; overflow-x: auto;
  scrollbar-width: none;
}
.topic-bar__inner::-webkit-scrollbar { display: none; }
.topic-link {
  font-family: var(--sans);
  font-size: var(--step--3);
  font-weight: 500;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--ink-mute);
  padding: .62rem 1.15rem;
  white-space: nowrap;
  border-right: 1px solid var(--rule-soft);
  transition: color .2s, background .2s;
}
.topic-link:first-child { padding-left: 0; }
.topic-link:hover, .topic-link[aria-current="page"] { color: var(--accent); background: var(--paper-2); }

.nav-toggle {
  width: 42px; height: 42px;
  display: grid; place-content: center; gap: 5px;
  border: 1px solid var(--rule);
}
.nav-toggle span { display: block; width: 19px; height: 1.5px; background: var(--ink); transition: transform .3s var(--ease-out), opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.nav-mobile {
  display: none;
  background: var(--paper-2);
  border-bottom: 1px solid var(--rule);
}
.nav-mobile[data-open="true"] { display: block; }
.nav-mobile ul { list-style: none; padding: .4rem var(--gutter) 1.2rem; margin: 0; }
.nav-mobile li + li { border-top: 1px solid var(--rule-soft); }
.nav-mobile a {
  display: block; padding: .78rem 0;
  font-family: var(--sans); font-size: var(--step--1); font-weight: 500;
  color: var(--ink-soft);
}
.nav-mobile a:hover, .nav-mobile a[aria-current="page"] { color: var(--accent); }

.crumbs {
  font-family: var(--sans);
  font-size: var(--step--3);
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-mute);
  padding-block: 1rem;
}
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .35rem .6rem; padding: 0; margin: 0; }
.crumbs li::after { content: "/"; margin-left: .6rem; color: var(--rule); }
.crumbs li:last-child::after { content: ""; }
.crumbs a { color: var(--accent); }
.crumbs a:hover { color: var(--accent-deep); text-decoration: underline; }
.crumbs--onpanel { color: rgba(248,245,238,.66); }
.crumbs--onpanel a { color: var(--paper); }
.crumbs--onpanel li::after { color: rgba(248,245,238,.34); }

.site-footer {
  background: var(--ink);
  color: rgba(248,245,238,.76);
  font-family: var(--sans);
  font-size: var(--step--1);
  margin-top: 5rem;
  border-top: 3px solid var(--accent);
}
.site-footer .container { padding-block: 3.2rem 1.8rem; }
.site-footer .brandmark { color: var(--paper); }
.site-footer .brandmark__word span { color: var(--accent-light); }
.footer-grid {
  display: grid; gap: 2.4rem;
  grid-template-columns: 1fr;
  padding-bottom: 2.4rem;
  border-bottom: 1px solid var(--rule-onink);
}
.footer-about p {
  max-width: 40ch; margin-top: .9rem; line-height: 1.65;
  color: rgba(248,245,238,.62);
  font-family: var(--serif); font-size: var(--step--1);
}
.site-footer h3 {
  font-family: var(--sans);
  font-size: var(--step--3);
  font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: .9rem;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.site-footer a, .linklike { color: rgba(248,245,238,.76); transition: color .2s; }
.site-footer a:hover, .linklike:hover { color: var(--paper); }
.linklike { text-align: left; padding: 0; text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom {
  display: flex; flex-wrap: wrap; gap: .7rem 2rem; justify-content: space-between;
  padding-top: 1.6rem;
  font-size: var(--step--2);
  color: rgba(248,245,238,.52);
}
.footer-bottom a { color: rgba(248,245,238,.72); text-decoration: underline; text-underline-offset: 3px; }

/* ==========================================================================
   6. Cards & grids
   ========================================================================== */
.card {
  display: flex; flex-direction: column;
  background: transparent;
  border-top: 1px solid var(--ink);
  padding-top: .9rem;
  transition: none;
}
.card:hover { transform: none; box-shadow: none; }
.card__media { position: relative; background: var(--paper-2); aspect-ratio: 16 / 9; overflow: hidden; margin-bottom: .9rem; border: 1px solid var(--rule-soft); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: opacity .4s var(--ease-out); }
.card:hover .card__media img { opacity: .88; }
.card__body { display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.card__topic {
  font-family: var(--sans); font-size: var(--step--3); font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--accent);
}
.card__title { font-family: var(--display); font-size: var(--step-2); font-weight: 600; line-height: 1.18; }
.card__title a { transition: color .2s; }
.card:hover .card__title a { color: var(--accent-deep); }
.card__excerpt { font-family: var(--serif); font-size: var(--step--1); color: var(--ink-mute); line-height: 1.62; }
/* Not pushed to the bottom of the cell. Cards in a run have different
   lengths, and forcing their folios to align leaves voids that read as a
   broken layout rather than as a column of type. */
.card__meta {
  margin-top: .75rem;
  font-family: var(--sans); font-size: var(--step--3);
  letter-spacing: .08em; text-transform: uppercase; color: var(--faint);
  display: flex; gap: .8rem; flex-wrap: wrap;
}

/* Five card shapes. Uniform grids of identical cards are the most
   recognisable signature of generated output, so runs of cards are laid out
   in a rhythm instead. */
.card--wide { grid-column: span 2; }
.card--wide .card__media { aspect-ratio: 21 / 9; }
.card--wide .card__title { font-size: var(--step-3); }

.card--text .card__media { display: none; }
.card--text { border-top-width: 3px; }

.card--compact { flex-direction: row; align-items: flex-start; gap: 1rem; }
.card--compact .card__media { aspect-ratio: 1; width: 96px; flex: none; margin-bottom: 0; }
.card--compact .card__title { font-size: var(--step-1); }
.card--compact .card__excerpt { display: none; }

.card--quiet { border-top-color: var(--rule); }
.card--quiet .card__media { aspect-ratio: 3 / 1; }
.card--quiet .card__title { font-size: var(--step-1); }

.card--feature { grid-column: span 2; border-top-width: 3px; }
.card--feature .card__media { aspect-ratio: 16 / 8; }
.card--feature .card__title { font-size: var(--step-4); }
.card--feature .card__excerpt { font-size: var(--step-0); }

.grid {
  display: grid; gap: 2.2rem 1.9rem;
  grid-template-columns: 1fr;
  align-items: start;
}

/* ==========================================================================
   7. Home & section furniture
   ========================================================================== */
.hero {
  position: relative;
  background: var(--paper);
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  overflow: hidden;
}
.hero__inner { position: relative; padding-block: clamp(2.4rem, 6vw, 4.2rem) clamp(2rem, 4.5vw, 3.2rem); }
.hero__grid { display: grid; gap: 1.6rem 3.4rem; align-items: end; }
.hero h1 {
  font-family: var(--display);
  font-size: var(--step-6);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.022em;
  margin-top: .7rem;
}
.hero h1 em { font-style: italic; font-weight: 600; color: var(--accent); }
.hero__side { padding-bottom: .5rem; border-left: 1px solid var(--rule); padding-left: 2rem; }
.hero .lede { color: var(--ink-soft); max-width: 44ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.3rem; }

/* The load curve under the nameplate — the one recurring motif, drawn as an
   engraved chart rather than as a dashboard widget. */
.hero__curve { position: relative; margin-top: 1.8rem; }
.hero__curve svg { width: 100%; height: auto; }

.section { padding-block: clamp(2.6rem, 5.5vw, 4.2rem); }
.section--tint { background: var(--paper-2); }
.section--panel { background: var(--ink); color: var(--paper); }
.section--panel .section-head { border-bottom-color: var(--paper); }
.section--panel .section-head h2 { color: var(--paper); }

.section-head {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between;
  gap: .8rem 1.6rem;
  padding-bottom: .8rem;
  margin-bottom: 2rem;
  border-bottom: 2px solid var(--ink);
}
.section-head h2 { font-size: var(--step-3); font-weight: 700; }
.section-head p { font-family: var(--serif); font-size: var(--step--1); color: var(--ink-mute); max-width: 46ch; }
.section-head .more {
  font-family: var(--sans); font-size: var(--step--3); font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; color: var(--accent);
}
.section-head .more:hover { color: var(--accent-deep); text-decoration: underline; text-underline-offset: 4px; }

/* Section opener. A standfirst of this length set as one narrow column is a
   fourteen-line ribbon with half the page empty beside it; two columns is
   what a magazine does with the same paragraph. */
.topic-intro {
  max-width: 920px;
  margin-bottom: 2.8rem;
  padding-bottom: 1.7rem;
  border-bottom: 1px solid var(--rule);
}
.topic-intro p {
  font-family: var(--serif);
  font-size: var(--step-1);
  line-height: 1.64;
  color: var(--ink-soft);
}
.topic-intro p::first-letter {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.15em;
  color: var(--accent);
}
@media (min-width: 800px) {
  .topic-intro p { column-count: 2; column-gap: 2.8rem; }
}

/* Contents-page listing of the six subject areas */
.topic-list { display: grid; gap: 0; border-top: 2px solid var(--ink); }
.topic-row {
  display: grid; gap: .4rem 2rem;
  grid-template-columns: 1fr;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--rule);
  transition: background .25s;
}
.topic-row:hover { background: var(--paper-2); }
.topic-row__no {
  font-family: var(--sans); font-variant-numeric: tabular-nums lining-nums;
  font-size: var(--step--2); font-weight: 600; color: var(--accent); letter-spacing: .06em;
}
.topic-row h3 { font-size: var(--step-2); font-weight: 600; }
.topic-row p { font-family: var(--serif); font-size: var(--step--1); color: var(--ink-mute); max-width: 62ch; }
.topic-row__count {
  font-family: var(--sans); font-size: var(--step--3); font-weight: 500;
  letter-spacing: .11em; text-transform: uppercase; color: var(--faint);
}

/* ==========================================================================
   8. Article layouts
   ========================================================================== */
.article-head { padding-block: 1.6rem 1.4rem; }
.article-head h1 { font-size: var(--step-5); font-weight: 700; line-height: 1.06; margin-block: .8rem .8rem; }
.article-head .lede { margin-bottom: 1.4rem; }

/* -- feature: a full-width plate, title over it --------------------------- */
.plate {
  position: relative;
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
  border-bottom: 3px solid var(--accent);
}
.plate__bg { position: absolute; inset: 0; opacity: .26; }
.plate__bg img { width: 100%; height: 100%; object-fit: cover; }
.plate::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(33,30,26,.62) 0%, rgba(33,30,26,.93) 78%);
}
.plate__inner { position: relative; z-index: 2; padding-block: clamp(2.2rem, 6vw, 4.4rem) clamp(1.8rem, 4vw, 2.8rem); }
.plate h1 { font-size: var(--step-5); font-weight: 700; line-height: 1.05; max-width: 20ch; margin-block: .8rem .9rem; }
.plate .lede { color: rgba(248,245,238,.82); margin-bottom: 1.8rem; }
.plate .meta-rail { max-width: 62rem; }
.plate .crumbs { padding-top: 0; padding-bottom: .9rem; }

/* Layouts with no side column get a centred measure. */
.layout-feature .article-shell,
.layout-worked .article-shell,
.layout-feature .article-head,
.layout-worked .article-head,
.layout-feature .crumbs,
.layout-worked .crumbs { max-width: 860px; margin-inline: auto; }
.layout-essay .article-shell,
.layout-essay .article-head,
.layout-essay .crumbs { max-width: 745px; margin-inline: auto; }
.layout-feature .article-body,
.layout-worked .article-body,
.layout-essay .article-body { max-width: none; }

.article-shell { display: grid; gap: 2.8rem; align-items: start; }

.article-body { max-width: var(--measure); font-size: var(--step-1); line-height: 1.78; }
.article-body > * + * { margin-top: 1.15em; }
.article-body h2 {
  font-size: var(--step-3);
  font-weight: 700;
  margin-top: 2.5em; margin-bottom: .5em;
  padding-top: .85rem;
  border-top: 1px solid var(--ink);
  position: relative;
}
.article-body h3 { font-size: var(--step-2); font-weight: 600; margin-top: 1.9em; margin-bottom: .35em; }
.article-body h4 {
  font-family: var(--sans); font-size: var(--step--1); font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase;
  margin-top: 1.8em; margin-bottom: .3em; color: var(--ink-soft);
}

/* Section numerals in the margin, as a journal sets them. */
.article-body { counter-reset: h2counter; }
.article-body h2 { counter-increment: h2counter; }
@media (min-width: 1100px) {
  .layout-standard .article-body h2::before,
  .layout-worked   .article-body h2::before,
  .layout-reference .article-body h2::before {
    content: counter(h2counter);
    position: absolute; left: -2.9rem; top: 1rem;
    font-family: var(--display); font-size: var(--step-2); font-weight: 600;
    font-style: italic;
    color: var(--accent); opacity: .75;
  }
}

.article-body a:not(.chip):not(.btn) {
  color: var(--link);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: rgba(47,72,88,.38);
  transition: text-decoration-color .2s, color .2s;
}
.article-body a:not(.chip):not(.btn):hover { color: var(--link-deep); text-decoration-color: currentColor; }
.article-body a[rel~="external"]::after,
.article-body a[target="_blank"]::after {
  content: "\2009\2197";
  font-size: .68em;
  vertical-align: .34em;
  color: var(--faint);
}

.article-body ul, .article-body ol { padding-left: 1.35rem; }
.article-body li + li { margin-top: .45em; }
.article-body li::marker { color: var(--accent); }
.article-body blockquote {
  margin-left: 0; padding: .2rem 0 .2rem 1.5rem;
  border-left: 2px solid var(--accent);
  font-style: italic; color: var(--ink-soft);
}
.article-body strong { font-weight: 600; }
.article-body code {
  font-family: var(--sans); font-size: .9em; font-weight: 500;
  background: var(--paper-2); padding: .08em .32em; border-radius: 1px;
}

/* Drop cap — essay and feature only */
.layout-essay .article-body > p:first-of-type::first-letter,
.layout-feature .article-body > p:first-of-type::first-letter {
  float: left;
  font-family: var(--display);
  font-size: 4.1em;
  line-height: .84;
  font-weight: 700;
  padding: .04em .09em 0 0;
  color: var(--accent);
}
.layout-essay .article-body { font-size: var(--step-2); line-height: 1.72; max-width: 60ch; }
.layout-feature .article-body { max-width: 68ch; }

/* Aside column */
.article-aside { font-family: var(--sans); font-size: var(--step--1); display: grid; gap: 1.8rem; }
.aside-block { border-top: 2px solid var(--ink); padding-top: .85rem; }
.aside-block h2, .aside-block h3 {
  font-family: var(--sans); font-size: var(--step--3);
  font-weight: 600; letter-spacing: .15em; text-transform: uppercase;
  color: var(--accent); margin-bottom: .8rem;
}
.aside-block ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .7rem; }
.aside-block li { line-height: 1.45; }
.aside-block a { color: var(--ink); }
.aside-block a:hover { color: var(--accent-deep); text-decoration: underline; text-underline-offset: 3px; }

/* Contents */
.toc { position: sticky; top: 5.6rem; }
.toc ol { list-style: none; padding: 0; margin: 0; counter-reset: toc; display: grid; gap: .55rem; }
.toc li { counter-increment: toc; display: flex; gap: .65rem; line-height: 1.42; }
.toc li::before {
  content: counter(toc) ".";
  font-family: var(--display); font-style: italic; font-size: var(--step--1);
  color: var(--faint); padding-top: .02em;
}
.toc a { color: var(--ink-soft); }
.toc a:hover, .toc a.is-current { color: var(--accent-deep); }
.toc a.is-current { font-weight: 600; }

.toc--inline {
  background: var(--paper-2);
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--rule);
  padding: 1.1rem 1.3rem 1.2rem;
  margin-block: 2rem;
}
.toc--inline h2 {
  font-family: var(--sans) !important; font-size: var(--step--3) !important;
  font-weight: 600; letter-spacing: .15em; text-transform: uppercase; color: var(--accent);
  border: 0 !important; padding: 0 !important; margin: 0 0 .8rem !important;
}
.toc--inline a { color: var(--ink); }

/* ==========================================================================
   9. Body components — the value elements
   ========================================================================== */

/* In short — the standfirst box that opens a brief */
.inshort {
  background: var(--paper-2);
  border-top: 3px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  padding: 1.3rem 1.5rem 1.5rem;
  margin-bottom: 2rem;
}
.inshort h2 {
  font-family: var(--sans) !important; font-size: var(--step--3) !important;
  font-weight: 600; letter-spacing: .17em; text-transform: uppercase; color: var(--accent);
  border: 0 !important; padding: 0 !important; margin: 0 0 .85rem !important;
}
.inshort ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .65rem; font-family: var(--serif); font-size: var(--step--1); line-height: 1.6; }
.inshort li { padding-left: 1.4rem; position: relative; color: var(--ink-soft); }
.inshort li::before {
  content: ""; position: absolute; left: 0; top: .68em;
  width: .75rem; height: 1px; background: var(--accent);
}

/* Statement table — ruled the way a printed schedule is */
.table-wrap { overflow-x: auto; margin-block: 2.1rem; }
.stable {
  width: 100%; font-family: var(--sans); font-size: var(--step--1); min-width: 34rem;
  border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink);
}
.stable caption {
  caption-side: top; text-align: left;
  font-family: var(--sans); font-size: var(--step--3); font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--accent);
  padding: 0 0 .7rem;
}
.stable th, .stable td { padding: .6rem .95rem .6rem 0; text-align: left; vertical-align: top; border-bottom: 1px solid var(--rule-soft); }
.stable th:last-child, .stable td:last-child { padding-right: 0; }
.stable thead th {
  font-size: var(--step--3); font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase; color: var(--ink-mute);
  border-bottom: 1px solid var(--ink);
  white-space: nowrap;
}
.stable tbody tr:last-child td { border-bottom: 0; }
.stable td:not(:first-child), .stable th:not(:first-child) {
  font-variant-numeric: tabular-nums lining-nums; white-space: nowrap;
}
.stable .row-total td {
  border-top: 1px solid var(--ink);
  font-weight: 600;
}
.stable .neg { color: var(--peak); }
.stable .pos { color: var(--link-deep); }
.stable-note { font-size: var(--step--2); color: var(--ink-mute); padding-top: .7rem; font-family: var(--serif); }

/* Worked calculation — a ledger column, ruled above the result */
.calc {
  margin-block: 2.2rem;
  border-top: 3px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  background: var(--paper-2);
  padding: 1rem 1.4rem 0;
}
.calc__head { padding-bottom: .5rem; }
.calc__head h3, .calc__head .h {
  font-family: var(--sans) !important; font-size: var(--step--3) !important;
  font-weight: 600; letter-spacing: .15em; text-transform: uppercase; color: var(--accent);
  margin: 0 !important; padding: 0 !important; border: 0 !important;
}
.calc__head p { font-family: var(--serif); font-size: var(--step--1); color: var(--ink-mute); margin-top: .35rem; }
.calc__rows { list-style: none; padding: 0; margin: .5rem 0 0; }
.calc__rows li {
  display: flex; justify-content: space-between; gap: 1.5rem;
  padding: .48rem 0;
  border-bottom: 1px solid var(--rule-soft);
  font-family: var(--sans); font-size: var(--step--1); font-weight: 400;
  line-height: 1.42;
}
.calc__rows li span:last-child {
  font-variant-numeric: tabular-nums lining-nums;
  white-space: nowrap; color: var(--ink);
}
.calc__rows li.op { color: var(--ink-mute); }
.calc__rows li.op span:last-child { color: var(--ink-mute); }
.calc__result {
  display: flex; justify-content: space-between; gap: 1.5rem; align-items: baseline;
  margin: 0;
  padding: .8rem 0 .9rem;
  border-top: 1px solid var(--ink);
  font-family: var(--sans); font-weight: 600; font-size: var(--step-0);
}
.calc__result b {
  font-family: var(--sans); font-variant-numeric: tabular-nums lining-nums;
  font-size: var(--step-2); color: var(--accent-deep); font-weight: 600;
}
.calc__foot {
  font-family: var(--serif); font-size: var(--step--2); color: var(--ink-mute);
  border-top: 1px solid var(--rule);
  padding: .7rem 0 .9rem; line-height: 1.55;
}

/* Checklist */
.checklist { margin-block: 2rem; border-top: 3px solid var(--ink); border-bottom: 1px solid var(--ink); }
.checklist__head { border-bottom: 1px solid var(--rule); padding: .8rem 0; }
.checklist__head .h {
  font-family: var(--sans); font-size: var(--step--3); font-weight: 600;
  letter-spacing: .15em; text-transform: uppercase; color: var(--accent);
}
.checklist ol { list-style: none; padding: 0; margin: 0; counter-reset: ck; }
.checklist li {
  counter-increment: ck;
  display: grid; grid-template-columns: 2.1rem 1fr; gap: .55rem;
  padding: .7rem 0;
  border-bottom: 1px solid var(--rule-soft);
  font-family: var(--serif); font-size: var(--step--1); line-height: 1.6;
}
.checklist li:last-child { border-bottom: 0; }
.checklist li::before {
  content: counter(ck) ".";
  font-family: var(--display); font-style: italic; font-size: var(--step--1);
  color: var(--accent); padding-top: .05em;
}

/* Callouts */
.note {
  margin-block: 1.9rem;
  padding: .3rem 0 .4rem 1.4rem;
  border-left: 2px solid var(--link);
  font-family: var(--serif); font-size: var(--step--1); line-height: 1.65;
  color: var(--ink-soft);
}
.note .h {
  display: block;
  font-family: var(--sans); font-size: var(--step--3); font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--link-deep); margin-bottom: .38rem;
}
.note--warn { border-left-color: var(--peak); }
.note--warn .h { color: var(--peak); }
.note--copper { border-left-color: var(--accent); }
.note--copper .h { color: var(--accent-deep); }

/* Pull quote */
.pullquote {
  margin-block: 2.6rem;
  padding: 1.3rem 0 1.4rem;
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  font-family: var(--display);
  font-size: var(--step-3);
  font-weight: 500;
  font-style: italic;
  line-height: 1.3;
  color: var(--ink);
  max-width: 28ch;
}

/* FAQ */
.faq { margin-top: 3rem; }
.faq > h2 { font-size: var(--step-3); font-weight: 700; border-top: 2px solid var(--ink); padding-top: .9rem; margin-bottom: 1rem; }
.faq details { border-bottom: 1px solid var(--rule); padding: .3rem 0; }
.faq summary {
  cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; gap: 1.2rem; align-items: flex-start;
  padding: .82rem 0;
  font-family: var(--display); font-weight: 600; font-size: var(--step-1);
  line-height: 1.32;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex: none;
  font-family: var(--sans); font-size: 1.15rem; font-weight: 400; line-height: 1.2;
  color: var(--accent); transition: transform .25s var(--ease-out);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .faq__a { padding: 0 0 1rem; font-size: var(--step--1); color: var(--ink-soft); line-height: 1.68; font-family: var(--serif); max-width: 66ch; }
.faq .faq__a a { color: var(--link); text-decoration: underline; text-underline-offset: 3px; }

/* Sources — a classical reference list */
.sources { margin-top: 3rem; padding-top: .9rem; border-top: 2px solid var(--ink); }
.sources h2 {
  font-family: var(--sans); font-size: var(--step--3); font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; color: var(--accent);
  margin-bottom: 1rem;
}
.sources ol { list-style: none; padding: 0; margin: 0; counter-reset: src; display: grid; gap: .7rem; }
.sources li {
  counter-increment: src;
  display: grid; grid-template-columns: 2rem 1fr; gap: .5rem;
  font-family: var(--serif); font-size: var(--step--1); line-height: 1.5;
}
.sources li::before {
  content: counter(src) ".";
  font-family: var(--display); font-style: italic; color: var(--faint);
}
.sources a { color: var(--link); text-decoration: underline; text-underline-offset: 3px; }
.sources a:hover { color: var(--link-deep); }
.sources .host { display: block; font-family: var(--sans); font-size: var(--step--3); letter-spacing: .04em; color: var(--faint); margin-top: .1rem; }

/* Author box */
.authorbox {
  margin-top: 3rem;
  display: grid; gap: 1.2rem;
  grid-template-columns: 1fr;
  padding: 1.4rem 0 1.5rem;
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}
.authorbox img {
  width: 82px; height: 82px; border-radius: 50%;
  object-fit: cover; border: 1px solid var(--rule);
}
/* Until a photograph exists the block still runs — the name, the role and the
   competence are the signal. It simply has one column instead of two. */
.authorbox--nophoto { grid-template-columns: 1fr !important; }
.authorbox .h {
  font-family: var(--sans); font-size: var(--step--3); font-weight: 600;
  letter-spacing: .15em; text-transform: uppercase; color: var(--accent);
  display: block; margin-bottom: .45rem;
}
.authorbox strong { font-family: var(--display); font-size: var(--step-2); font-weight: 700; display: block; }
.authorbox .role { font-family: var(--sans); font-size: var(--step--2); font-style: normal; color: var(--ink-mute); display: block; margin-top: .12rem; }
.authorbox p { font-family: var(--serif); font-size: var(--step--1); line-height: 1.65; color: var(--ink-soft); margin-top: .7rem; max-width: 68ch; }
.authorbox a { color: var(--link); text-decoration: underline; text-underline-offset: 3px; }

/* Related */
.related { margin-top: 3.4rem; }
.related > h2 {
  font-family: var(--sans); font-size: var(--step--3); font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; color: var(--accent);
  border-top: 2px solid var(--ink); padding-top: .9rem; margin-bottom: 1.4rem;
}

/* ==========================================================================
   10. Figures & diagrams
   ========================================================================== */
figure { margin: 2.2rem 0; }
figure img, figure svg { width: 100%; }
figcaption {
  margin-top: .6rem;
  font-family: var(--serif); font-size: var(--step--2); font-style: italic;
  color: var(--ink-mute); line-height: 1.55;
  padding-top: .5rem; border-top: 1px solid var(--rule);
  max-width: 62ch;
}
.figure--hero { margin: 0 0 2rem; }
.figure--hero img { border: 1px solid var(--rule); }
.figure--inset { float: none; margin: 1.8rem 0; }
.figure--strip img { aspect-ratio: 5 / 1; object-fit: cover; border: 1px solid var(--rule); }
.figure--diagram img, .figure--diagram svg { border: 1px solid var(--rule); }

/* ==========================================================================
   11. Forms, buttons, search
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--sans); font-weight: 600; font-size: var(--step--2);
  letter-spacing: .06em; text-transform: uppercase;
  padding: .74rem 1.35rem;
  border: 1px solid transparent;
  transition: background .2s, color .2s, border-color .2s;
}
.btn--primary { background: var(--accent); color: var(--white); }
.btn--primary:hover { background: var(--accent-deep); }
.btn--ghost { border-color: var(--ink); color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }
.btn--onpanel { border-color: var(--ink); color: var(--ink); }
.btn--onpanel:hover { background: var(--ink); color: var(--paper); }
.section--panel .btn--onpanel, .plate .btn--onpanel { border-color: rgba(248,245,238,.5); color: var(--paper); }
.section--panel .btn--onpanel:hover, .plate .btn--onpanel:hover { background: var(--paper); color: var(--ink); }
.btn--sm { padding: .52rem 1rem; }

.field { display: grid; gap: .35rem; margin-bottom: 1.1rem; }
.field label {
  font-family: var(--sans); font-size: var(--step--3); font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; color: var(--ink-mute);
}
.field input, .field textarea, .field select {
  font-family: var(--serif); font-size: var(--step-0);
  padding: .68rem .8rem;
  border: 1px solid var(--rule);
  background: var(--white); color: var(--ink);
  width: 100%;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(123,45,38,.14);
}
.field textarea { min-height: 9rem; resize: vertical; }
.field .hint { font-family: var(--serif); font-size: var(--step--2); font-style: italic; color: var(--faint); }

.form-status { font-family: var(--sans); font-size: var(--step--1); margin-top: .9rem; padding: .7rem .9rem; display: none; }
.form-status[data-state="ok"]   { display: block; background: rgba(47,72,88,.08); color: var(--link-deep); }
.form-status[data-state="err"]  { display: block; background: rgba(156,58,28,.09); color: var(--peak); }
.form-status[data-state="busy"] { display: block; background: var(--paper-2); color: var(--ink-mute); }

.filters { display: flex; flex-wrap: wrap; gap: .45rem; margin-bottom: 1.6rem; }
.filter {
  font-family: var(--sans); font-size: var(--step--3); font-weight: 500;
  letter-spacing: .09em; text-transform: uppercase;
  padding: .42rem .85rem;
  border: 1px solid var(--rule);
  background: transparent; color: var(--ink-soft);
  transition: background .2s, color .2s, border-color .2s;
}
.filter:hover { border-color: var(--ink-mute); }
.filter[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.searchbar { position: relative; margin-bottom: 1.2rem; }
.searchbar input {
  width: 100%; font-family: var(--serif); font-size: var(--step-0);
  padding: .78rem 1rem .78rem 2.5rem;
  border: 0; border-bottom: 1px solid var(--ink); background: transparent;
}
.searchbar input:focus { outline: none; border-bottom-color: var(--accent); }
.searchbar svg { position: absolute; left: .3rem; top: 50%; transform: translateY(-50%); width: 17px; height: 17px; opacity: .45; }

/* Library index */
.index-group { margin-bottom: 3rem; }
.index-group > h2 {
  font-family: var(--display); font-size: var(--step-3); font-weight: 700;
  padding-bottom: .55rem; margin-bottom: .3rem;
  border-bottom: 2px solid var(--ink);
}
.index-group > p { font-family: var(--serif); font-size: var(--step--1); font-style: italic; color: var(--ink-mute); margin-bottom: 1.2rem; max-width: 64ch; }
.index-list { list-style: none; padding: 0; margin: 0; }
.index-list li { border-bottom: 1px solid var(--rule-soft); }
.index-list a {
  display: grid; gap: .15rem .9rem;
  grid-template-columns: 1fr;
  padding: .85rem 0;
  transition: padding-left .25s var(--ease-out), background .25s;
}
.index-list a:hover { padding-left: .6rem; background: var(--paper-2); }
.index-list .t { font-family: var(--display); font-size: var(--step-1); font-weight: 600; line-height: 1.24; }
.index-list a:hover .t { color: var(--accent-deep); }
.index-list .d { font-family: var(--serif); font-size: var(--step--1); color: var(--ink-mute); line-height: 1.55; }
.index-list .m {
  font-family: var(--sans); font-size: var(--step--3); font-weight: 500;
  font-variant-numeric: tabular-nums lining-nums;
  letter-spacing: .07em; text-transform: uppercase; color: var(--faint);
  white-space: nowrap;
}

/* ==========================================================================
   12. Institutional pages
   ========================================================================== */
.page-head {
  background: var(--paper-2);
  color: var(--ink);
  padding-block: clamp(1.8rem, 4vw, 3rem);
  border-bottom: 1px solid var(--ink);
}
.page-head h1 { font-size: var(--step-4); font-weight: 700; margin-top: .6rem; max-width: 22ch; }
.page-head .lede { color: var(--ink-soft); margin-top: .9rem; }
.page-head .crumbs a { color: var(--accent); }

.prose { max-width: 72ch; font-size: var(--step-0); line-height: 1.76; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 {
  font-size: var(--step-2); font-weight: 700; margin-top: 2.3em; margin-bottom: .45em;
  padding-top: .75rem; border-top: 1px solid var(--ink);
}
.prose h3 { font-size: var(--step-1); font-weight: 600; margin-top: 1.9em; margin-bottom: .3em; }
.prose ul, .prose ol { padding-left: 1.35rem; }
.prose li + li { margin-top: .4em; }
.prose li::marker { color: var(--accent); }
.prose a { color: var(--link); text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { color: var(--link-deep); }
.prose dl { display: grid; gap: .5rem 1.4rem; }
.prose dt { font-family: var(--sans); font-size: var(--step--2); font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--ink-mute); }
.prose dd { margin: 0 0 .7rem; }
.prose table {
  width: 100%; font-family: var(--sans); font-size: var(--step--1); margin-block: 1.6rem;
  border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink);
}
.prose th, .prose td { padding: .55rem .8rem .55rem 0; border-bottom: 1px solid var(--rule-soft); text-align: left; vertical-align: top; }
.prose thead th { font-size: var(--step--3); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; border-bottom: 1px solid var(--ink); }

.legal-updated {
  font-family: var(--sans); font-size: var(--step--2); font-weight: 500;
  letter-spacing: .06em;
  color: var(--ink-mute);
  padding: .5rem 0 .55rem;
  border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
  display: block; margin-bottom: 1.8rem;
}

.error-page { text-align: center; padding-block: clamp(3rem, 12vw, 7rem); }
.error-page .code {
  font-family: var(--display); font-size: clamp(4rem, 15vw, 8.5rem);
  font-weight: 700; font-style: italic; line-height: 1; color: var(--accent);
}
.error-page h1 { font-size: var(--step-4); font-weight: 700; margin-block: .8rem .8rem; }
.error-page p { max-width: 52ch; margin-inline: auto; color: var(--ink-mute); }
.error-page .btn { margin-top: 1.6rem; }

/* ==========================================================================
   13. Ads & consent
   --------------------------------------------------------------------------
   An ad position renders NOTHING until a real publisher ID and slot ID exist:
   no box, no border, no label, no reserved height.
   ========================================================================== */
.adzone { display: none; }
.adzone.is-live { display: block; margin-block: 2.2rem; }
.adzone.is-live .adlabel {
  font-family: var(--sans); font-size: var(--step--3); font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase; color: var(--faint);
  text-align: center; margin-bottom: .4rem;
}
.adzone.is-live ins { display: block; }
.adzone--h.is-live { min-height: 100px; }
.adzone--r.is-live { min-height: 260px; }

.cookie-banner {
  position: fixed; inset: auto 0 0 0; z-index: 300;
  background: var(--ink); color: rgba(248,245,238,.9);
  border-top: 3px solid var(--accent);
  transform: translateY(110%);
  transition: transform .45s var(--ease-out);
}
.cookie-banner[data-open="true"] { transform: none; }
.cookie-banner__inner {
  max-width: var(--container); margin-inline: auto;
  padding: 1.1rem var(--gutter) 1.2rem;
  display: grid; gap: 1rem;
  font-family: var(--serif); font-size: var(--step--2); line-height: 1.6;
}
.cookie-banner a { color: var(--accent-light); text-decoration: underline; text-underline-offset: 3px; }
.cookie-banner__actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.cookie-banner .btn--onpanel { border-color: rgba(248,245,238,.5); color: var(--paper); }
.cookie-banner .btn--onpanel:hover { background: var(--paper); color: var(--ink); }

/* ==========================================================================
   14. Motion
   ========================================================================== */
[data-reveal] { opacity: 0; transform: translateY(12px); }
[data-reveal].is-in { opacity: 1; transform: none; transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }

/* ==========================================================================
   15. Responsive
   ========================================================================== */
@media (min-width: 620px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .cookie-banner__inner { grid-template-columns: 1fr auto; align-items: center; }
  .authorbox { grid-template-columns: auto 1fr; align-items: start; }
  .topic-row { grid-template-columns: 3rem 1fr auto; align-items: baseline; }
  .index-list a { grid-template-columns: 1fr auto; align-items: baseline; }
  .index-list .d { grid-column: 1 / -1; }
}

@media (min-width: 900px) {
  .masthead__nav { display: flex; }
  .topic-bar { display: block; }
  .nav-toggle { display: none; }
  .nav-mobile { display: none !important; }
  .grid { grid-template-columns: repeat(3, 1fr); }
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .hero__grid { grid-template-columns: 1.5fr 1fr; }
  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; }
  .figure--inset { float: right; width: 44%; margin: .4rem 0 1.4rem 2rem; }

  .layout-standard .article-shell,
  .layout-brief .article-shell { grid-template-columns: minmax(0, 1fr) 270px; }
  .layout-reference .article-shell { grid-template-columns: 240px minmax(0, 1fr); }
  .layout-reference .article-aside { order: -1; position: sticky; top: 5.6rem; }
}

@media (min-width: 1120px) {
  .layout-standard .article-shell,
  .layout-brief .article-shell { grid-template-columns: minmax(0, 1fr) 300px; gap: 3.6rem; }
  .layout-reference .article-shell { grid-template-columns: 260px minmax(0, 1fr); gap: 3.6rem; }
}

@media (max-width: 899px) {
  .hero__side { border-left: 0; padding-left: 0; border-top: 1px solid var(--rule); padding-top: 1.2rem; }
}

@media (max-width: 619px) {
  .card--wide, .card--feature { grid-column: span 1; }
  .card--wide .card__title, .card--feature .card__title { font-size: var(--step-2); }
  .meta-rail { font-size: var(--step--3); }
  .meta-rail > * { padding-right: .8rem; margin-right: .8rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; }
}

/* ==========================================================================
   16. Print
   ========================================================================== */
@media print {
  .masthead, .site-footer, .article-aside, .adzone, .cookie-banner,
  .progress, .skip-link, .related, .filters, .searchbar { display: none !important; }
  body { background: #fff; font-size: 11pt; }
  .article-body { max-width: none; font-size: 11pt; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; color: #555; word-break: break-all; }
  .calc, .stable, .checklist, figure { break-inside: avoid; }
}
