/* Step Up AVL — "The Broadsheet", legacy article layer.
 *
 * The 42 articles converted in phase 3 keep the markup and the bespoke rules
 * (charts, timelines, card grids) they were hand-built with. This file does two
 * jobs so they land in the Broadsheet without being rewritten:
 *
 *   1. It redefines the old CSS variables (--paper, --rust, --sage, ...) in
 *      Broadsheet tokens, so every bespoke rule that reads var(--rust) retints
 *      itself.
 *   2. It overrides the article's shared core (masthead, act heads, prologue,
 *      stat row, aside, takeaway, sources footer) to the geometry the exemplar
 *      files/the-shortage-was-made-here.html sets by hand.
 *
 * LOAD ORDER MATTERS: broadsheet.css, then the article's own inline <style>,
 * then this file. Equal specificity, so the last one wins.
 *
 * Spec: _docs/design/broadsheet-2026-07/README.md, sections 8-10.
 */

/* -------------------------------------------- old variables, new values */

:root {
  --paper:        #F6F3EC;
  --paper-2:      #EAEFE9;
  --ink:          #1D2B2D;
  --ink-soft:     #5C6B66;
  --ink-faint:    #5C6B66;
  --rule:         #CFD7D0;
  --rust:         #C04A33;
  --rust-deep:    #A33D28;
  --rust-tintbg:  #F1EAD9;
  --rust-tintbd:  #C9A94E;
  /* --ochre carries small uppercase LABELS in several articles (.scene-kicker),
     where #B58A2A reads at 2.9:1. Darkened to the Broadsheet's --gold-text. */
  --ochre:        #7A5C14;
  --sage:         #2E7B6F;
  --sage-deep:    #223B33;
  --green:        #2E7B6F;
  --green-deep:   #216F57;
  --green-band:   #223B33;
  --green-tintbg: #EAEFE9;
  --green-tintbd: #DDE3DC;
  --orange:       #C04A33;
  --orange-num:   #C04A33;
  --result-bg:    #F1EAD9;
  --result-bd:    #C9A94E;
  --shadow:       rgba(0, 0, 0, 0.18);
}

/* ------------------------------------------------------ surround and sheet */

/* The old articles painted the charcoal surround on <body> and padded it.
 * The surround is now a band inside the shell. */
/* The page's own `body { line-height: 1.62 }` inherits into the shared shell and
 * made the sticky compact masthead taller on an article than on every other page.
 * Reset it here (this file loads last) and hand the reading line-height to the
 * band, where it belongs. */
body {
  background: var(--paper);
  color: var(--body-text);
  font-family: var(--serif);
  line-height: normal;
  padding: 0;
}
.article-band { line-height: 1.5; }

.article-band .sheet {
  max-width: 780px;
  margin: 0 auto;
  background: var(--paper);
  background-image: none;
  color: var(--ink);
  padding: 48px 56px 52px;
  box-shadow: 0 34px 80px -34px rgba(0, 0, 0, 0.7);
  overflow: visible;
}
.article-band .pad { padding: 0; }
.article-band section { padding: 0; }
.article-band .act-band { display: none; }

/* ------------------------------------------------------------ article head */

.article-band .sheet > header {
  padding: 0;
  border-bottom: 0;
}
.article-band .sheet > header .eyebrow {
  display: block;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--avl-green);
  margin: 0 0 14px;
}
.article-band .sheet > header .eyebrow::after { content: none; }

/* Second head shape (11 articles): header.masthead > .kicker > .label x2. */
.article-band .sheet > header.masthead,
.article-band .sheet > .mast {
  padding: 0;
  border-bottom: 0;
  position: static;
}
.article-band .sheet > header.masthead::after { content: none; }
.article-band .sheet > header.masthead .kicker {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
}
.article-band .sheet > header.masthead .kicker .label {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--avl-green);
}
.article-band .sheet > header.masthead .kicker .label:last-child {
  color: var(--text-secondary);
}
.article-band .sheet > .mast .eyebrow {
  display: block;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--avl-green);
  margin: 0 0 14px;
}
.article-band .sheet > .mast .eyebrow::after { content: none; }

.article-band .sheet h1 .hl {
  font-style: italic;
  font-weight: 500;
  color: var(--article-red);
}

.article-band .sheet h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 46px;
  line-height: 1.05;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0 0 18px;
}
.article-band .sheet h1 em {
  font-style: italic;
  font-weight: 500;
  color: var(--article-red);
}
/* No `h1 br { display: none }` here: hiding the authored line break also swallowed
 * the only space between the red accent word and the word after it. The <br>s were
 * stripped from the markup at conversion time instead; the 46px title wraps on
 * its own. */

.article-band .dek {
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.5;
  font-style: italic;
  font-weight: 400;
  color: var(--body-text);
  max-width: none;
  margin: 0 0 20px;
}
.article-band .dek strong { font-weight: 500; color: var(--ink); }

.article-band .byline,
.article-band p.byline {
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--hairline);
  padding: 9px 0;
  margin: 0 0 28px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}

/* ---------------------------------------------------------------- act heads */

/* The legacy .act-head is an inline kicker + title. The Broadsheet history
 * variant stacks them under a double rule, so restack rather than restyle. */
.article-band .act-head {
  display: block;
  border-top: 3px double var(--ink);
  margin: 32px 0 0;
  padding-top: 20px;
}
.article-band .act-head .act-num {
  display: block;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--article-red);
  margin-bottom: 6px;
}
.article-band .act-head .act-title {
  display: block;
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.article-band .act-head .act-title em {
  font-style: italic;
  color: var(--article-red);
}
.article-band .act-sub {
  font-family: var(--serif);
  font-size: 17.5px;
  line-height: 1.65;
  color: var(--text-tertiary);
  max-width: none;
  margin: 12px 0 18px;
}

/* --------------------------------------------------------------- body copy */

.article-band .body-copy {
  font-size: 17.5px;
  line-height: 1.65;
  color: var(--body-text);
}
.article-band .body-copy p {
  font-size: 17.5px;
  max-width: none;
  margin: 0 0 16px;
}
.article-band .body-copy p b,
.article-band .body-copy p strong { font-weight: 600; color: var(--ink); }

/* Red serif drop cap opens each section, without touching the markup. */
.article-band .body-copy > p:first-child::first-letter {
  float: left;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 56px;
  line-height: 0.82;
  color: var(--article-red);
  padding: 5px 8px 0 0;
}

/* ------------------------------------------------- prologue -> gold callout */

.article-band .prologue {
  background: var(--callout-tint);
  border-left: 4px solid #B58A2A;
  padding: 20px 24px 22px;
  margin: 0 0 26px;
}
.article-band .prologue p {
  font-size: 17.5px;
  line-height: 1.65;
  max-width: none;
  margin: 0 0 14px;
}
.article-band .prologue p:last-child { margin: 0; }
.article-band .prologue .act-num {
  display: inline-block;
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-text);
  border: 1px solid #C9A94E;
  padding: 4px 10px;
  margin-bottom: 4px;
}

/* --------------------------------------------------------------- pull quote */

.article-band .pull {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 600;
  font-size: 24px;
  line-height: 1.3;
  color: var(--ink);
  margin: 18px 0 4px;
}

/* --------------------------------------------------- stat row -> stat strip */

.article-band .stat-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  margin: 26px 0;
}
.article-band .stat-row .stat,
.article-band .stat-row .stat.sage {
  background: none;
  border-top: 0;
  border-right: 1px solid var(--panel-rule);
  padding: 18px 16px 16px;
}
.article-band .stat-row .stat:last-child { border-right: 0; }
.article-band .stat .sn {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 34px;
  line-height: 1;
  color: var(--article-red);
}
.article-band .stat .sl {
  font-family: var(--sans);
  font-size: 11.5px;
  line-height: 1.45;
  color: var(--text-secondary);
  margin-top: 8px;
}
.article-band .stat .src {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-top: 8px;
  opacity: 0.85;
}

/* -------------------------------------------------------- aside -> callout */

.article-band .aside {
  background: var(--panel-bg);
  border-left: 4px solid var(--avl-green);
  padding: 20px 24px 22px;
  margin: 26px 0;
}
.article-band .aside p {
  font-size: 17.5px;
  line-height: 1.65;
  max-width: none;
  margin: 0 0 14px;
}
.article-band .aside p:last-child { margin: 0; }
.article-band .aside .lead {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 600;
  font-size: 21px;
  line-height: 1.32;
  color: var(--ink);
  margin-bottom: 12px;
}

/* --------------------------------------------------- takeaway -> the point */

.article-band .takeaway {
  background: var(--spruce);
  color: #F1EBDD;
  padding: 36px 40px 38px;
  margin: 34px 0 30px;
}
.article-band .takeaway .eyebrow {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #DCE5DF;
  margin-bottom: 20px;
}
.article-band .takeaway .eyebrow::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #4A6156;
}
.article-band .takeaway h2 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 38px;
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: #F1EBDD;
  margin: 0 0 22px;
}
.article-band .takeaway h2 em {
  font-style: italic;
  font-weight: 600;
  color: var(--gold);
}
.article-band .takeaway p {
  font-family: var(--serif);
  font-size: 17.5px;
  line-height: 1.7;
  color: #EDE7D8;
  max-width: none;
  margin: 0 0 18px;
}
.article-band .takeaway p:last-child { margin: 0; }

/* ------------------------------------------------ sources footer -> notebox */

.article-band .sheet > footer {
  background: var(--panel-bg);
  border-top: 3px solid var(--avl-green);
  padding: 16px 20px;
  margin: 0 0 22px;
  font-size: 13.5px;
  color: var(--body-text);
}
.article-band .sheet > footer h4 {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--avl-green);
  margin: 0 0 7px;
}
.article-band .sheet > footer p {
  font-size: 13.5px;
  line-height: 1.6;
  max-width: none;
  margin: 0 0 8px;
}
.article-band .sheet > footer a {
  color: var(--avl-green);
  border-bottom: 0;
  font-weight: 600;
}
.article-band .sheet > footer .meta {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-top: 14px;
}

/* ------------------------------------------------------------- responsive */

@media (max-width: 760px) {
  .article-band .sheet { padding: 32px 20px 36px; max-width: none; }
  .article-band .sheet h1 { font-size: 33px; }
  .article-band .dek { font-size: 18px; }
  .article-band .body-copy,
  .article-band .body-copy p { font-size: 16.5px; }
  .article-band .body-copy > p:first-child::first-letter { font-size: 48px; }
  .article-band .act-head .act-title { font-size: 26px; }
  .article-band .pull { font-size: 20px; }
  .article-band .aside .lead { font-size: 18px; }
  .article-band .stat-row { grid-template-columns: 1fr; }
  .article-band .stat-row .stat { border-right: 0; border-bottom: 1px solid var(--panel-rule); }
  .article-band .stat-row .stat:last-child { border-bottom: 0; }
  .article-band .takeaway {
    margin-left: -20px;
    margin-right: -20px;
    padding: 28px 20px 30px;
  }
  .article-band .takeaway h2 { font-size: 28px; }
}

/* ----------------------------------------------------------------- print */

@media print {
  .trust, .masthead, .navrule-thin, .site-foot { display: none; }
  .article-band { width: auto; margin: 0; background: #fff; padding: 0; }
  .article-band .sheet { max-width: none; box-shadow: none; padding: 0; }
}

/* ------------------------------------------------- mobile legibility floor */

@media (max-width: 760px) {
  .article-band .sheet > header .eyebrow,
  .article-band .sheet > .mast .eyebrow,
  .article-band .sheet > header.masthead .kicker .label { font-size: 12px; letter-spacing: 0.1em; }
  .article-band .byline,
  .article-band p.byline { font-size: 12.5px; letter-spacing: 0.06em; }
  .article-band .act-head .act-num { font-size: 12px; letter-spacing: 0.2em; }
  .article-band .prologue .act-num { font-size: 11.5px; letter-spacing: 0.16em; }
  .article-band .stat .sl { font-size: 12.5px; }
  .article-band .stat .src { font-size: 11px; letter-spacing: 0.04em; }
  .article-band .sheet > footer,
  .article-band .sheet > footer p { font-size: 14.5px; }
  .article-band .sheet > footer h4 { font-size: 12px; letter-spacing: 0.1em; }
  .article-band .sheet > footer .meta { font-size: 12px; letter-spacing: 0.03em; }
}
