/* ==========================================================
   femiadeniran.org: Oxblood and Gold theme
   Change the colours and fonts here; every page follows.
   Layout: editorial columns on white, framed by oxblood bands.
   ========================================================== */
:root {
  --ink: #1b1416;
  --text: #2e2628;
  --muted: #554a4c;
  --meta: #6b5f61;
  --rule: #e6dcd9;
  --paper: #ffffff;
  --paper-alt: #f8f2f0;
  --oxblood: #5b1526;
  --oxblood-deep: #3d0e1a;
  --oxblood-lift: #6e1d31;
  --accent: #8a1f36;
  --gold: #c9a24a;
  --gold-light: #e6c97f;
  --on-dark: #f7efe9;
  --on-dark-muted: #d9c6c2;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1180px;
  --narrow: 720px;
  --gutter: 24px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --shadow: 0 10px 30px -12px rgba(61, 14, 26, 0.28);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--accent); }
a:hover { color: var(--oxblood-deep); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
h1, h2, h3 { text-wrap: balance; }

.skip-link {
  position: absolute; left: -9999px; top: 8px;
  background: var(--ink); color: #fff; padding: 10px 16px; z-index: 50;
}
.skip-link:focus { left: 8px; color: #fff; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.wrap-narrow { max-width: calc(var(--narrow) + var(--gutter) * 2); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.muted { color: var(--meta); }

/* Sliding underline used on text links */
.u-link {
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 1.5px; background-position: 0 100%; background-repeat: no-repeat;
  transition: background-size 0.35s var(--ease);
}
.u-link:hover, .u-link:focus-visible { background-size: 100% 1.5px; }

/* ---------- Header ---------- */
.site-header {
  background: var(--oxblood-deep); color: var(--on-dark);
  position: sticky; top: 0; z-index: 30;
  border-bottom: 1px solid rgba(201, 162, 74, 0.35);
}
.site-header__inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 2px 24px; min-height: 72px;
}
.site-name {
  font-family: var(--serif); font-size: 22px; font-weight: 600; color: var(--on-dark);
  text-decoration: none; padding: 10px 0; letter-spacing: -0.005em;
  display: inline-flex; align-items: center; gap: 12px;
}
.site-name:hover { color: #fff; }
.site-name__mark {
  width: 34px; height: 34px; display: grid; place-items: center;
  border: 1px solid var(--gold); color: var(--gold-light);
  font-size: 18px; line-height: 1; flex: none;
}
.site-nav { display: flex; flex-wrap: wrap; gap: 0 24px; font-size: 15px; font-weight: 600; }
.site-nav a {
  color: var(--on-dark-muted); text-decoration: none; padding: 12px 0; position: relative;
  transition: color 0.2s ease;
}
.site-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 6px; height: 2px;
  background: var(--gold); transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.site-nav a:hover { color: #fff; }
.site-nav a:hover::after, .site-nav a[aria-current="page"]::after { transform: scaleX(1); }
.site-nav a[aria-current="page"] { color: #fff; }
.site-nav .site-nav__contact { color: var(--gold-light); }

.progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 100%; z-index: 40;
  background: var(--gold); transform-origin: 0 50%; transform: scaleX(0);
  pointer-events: none;
}

.sample-banner {
  background: #fbf0d4; border-bottom: 1px solid #ead7a0;
  font-size: 15px; padding: 10px 0; color: #4a3b0b;
}

/* ---------- Shared bits ---------- */
.section { padding-block: 80px; }
.section--alt { background: var(--paper-alt); }
.section--dark { background: var(--oxblood); color: var(--on-dark); }
.section-head {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between;
  gap: 8px 16px; margin-bottom: 36px;
}
.section-head h2 {
  margin: 0; font-family: var(--serif); font-weight: 500;
  font-size: clamp(30px, 3.4vw, 40px); letter-spacing: -0.01em; line-height: 1.1;
}
.section-head h2::after {
  content: ""; display: block; width: 56px; height: 3px; background: var(--gold); margin-top: 14px;
}
.section-head a { font-size: 15px; font-weight: 700; padding: 10px 0; }
.section--dark .section-head a { color: var(--gold-light); }
.section-label {
  margin: 0; font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
}
.meta-label {
  display: block; font-size: 12px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--meta);
}
.meta-label--accent { color: var(--accent); }
.meta { font-size: 14px; color: var(--meta); }
.arrow { display: inline-block; transition: transform 0.25s var(--ease); }
a:hover .arrow { transform: translateX(4px); }

.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--oxblood); color: var(--on-dark); text-decoration: none; border: 1px solid var(--oxblood);
  font-weight: 700; font-size: 16px; padding: 14px 24px; line-height: 1.2; cursor: pointer;
  font-family: var(--sans);
  transition: background 0.2s ease, transform 0.2s var(--ease), box-shadow 0.2s ease;
}
.button:hover { background: var(--oxblood-deep); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow); }
.button--gold { background: var(--gold); border-color: var(--gold); color: var(--oxblood-deep); }
.button--gold:hover { background: var(--gold-light); color: var(--oxblood-deep); }
.button--ghost { background: transparent; color: var(--on-dark); border-color: rgba(247, 239, 233, 0.55); }
.button--ghost:hover { background: rgba(247, 239, 233, 0.08); color: #fff; }
.button svg { width: 18px; height: 18px; flex: none; }

/* Scroll reveal: visible by default, animated only when JS is running */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Home: hero ---------- */
.hero-band { background: var(--oxblood); color: var(--on-dark); position: relative; overflow: hidden; }
.hero-band__chart {
  position: absolute; inset: auto 0 0 0; width: 100%; height: 70%;
  pointer-events: none; opacity: 0.35;
}
.hero-band__chart path { fill: none; stroke: var(--gold); stroke-width: 1.5; }
.hero-band__chart .grid { stroke: rgba(247, 239, 233, 0.07); stroke-width: 1; }
.js .hero-band__chart .line { stroke-dasharray: 2400; stroke-dashoffset: 2400; animation: draw 2.6s var(--ease) 0.2s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.hero { position: relative; display: flex; flex-wrap: wrap; gap: 48px 64px; padding: 88px 0 96px; }
.hero__main { flex: 999 1 540px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.hero__eyebrow { margin: 0; font-size: 13px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-light); }
.hero h1 {
  margin: 0; font-family: var(--serif); font-weight: 500; color: #fff;
  font-size: clamp(40px, 5.6vw, 74px); line-height: 1.03; letter-spacing: -0.02em;
}
.hero h1 em { font-style: italic; color: var(--gold-light); }
.hero__lede { margin: 0; font-size: 20px; line-height: 1.55; color: var(--on-dark-muted); max-width: 600px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px 14px; align-items: center; padding-top: 8px; }
.latest {
  flex: 1 1 300px; align-self: flex-start;
  background: rgba(61, 14, 26, 0.55); border: 1px solid rgba(201, 162, 74, 0.35);
  padding: 8px 24px 8px; backdrop-filter: blur(2px);
}
.latest .section-label { padding: 16px 0 6px; color: var(--gold-light); }
.latest a { display: block; text-decoration: none; padding: 16px 0; border-bottom: 1px solid rgba(247, 239, 233, 0.14); color: var(--on-dark); }
.latest a:last-child { border-bottom: 0; }
.latest .meta-label { color: var(--on-dark-muted); }
.latest__title { display: block; font-family: var(--serif); font-size: 20px; line-height: 1.3; margin-top: 6px; transition: color 0.2s ease; }
.latest a:hover .latest__title { color: var(--gold-light); }

/* Section tiles */
.tiles { scroll-margin-top: 100px; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin-top: -44px; position: relative; z-index: 2; }
.tile {
  background: var(--paper); text-decoration: none; color: var(--ink);
  padding: 26px 24px 24px; display: flex; flex-direction: column; gap: 10px;
  border-top: 3px solid var(--gold); box-shadow: 0 12px 30px -18px rgba(61, 14, 26, 0.45);
  transition: transform 0.3s var(--ease), box-shadow 0.3s ease;
}
.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow); color: var(--ink); }
.tile__icon { width: 40px; height: 40px; display: grid; place-items: center; background: var(--paper-alt); color: var(--oxblood); }
.tile__icon svg { width: 22px; height: 22px; }
.tile__name { font-family: var(--serif); font-size: 26px; font-weight: 500; display: flex; align-items: center; justify-content: space-between; }
.tile__name .arrow { color: var(--accent); font-family: var(--sans); font-size: 20px; }
.tile__desc { font-size: 15px; line-height: 1.5; color: var(--muted); }

/* ---------- Lead story layout ---------- */
.lead { display: flex; flex-wrap: wrap; gap: 40px 56px; }
.lead__main {
  flex: 999 1 500px; min-width: 0; align-self: flex-start; text-decoration: none; color: var(--ink);
  display: flex; flex-direction: column; gap: 14px; padding: 32px; background: var(--paper-alt);
  border-top: 3px solid var(--oxblood); transition: transform 0.3s var(--ease), box-shadow 0.3s ease;
}
.lead__main:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: var(--ink); }
.lead__title { font-family: var(--serif); font-size: clamp(30px, 3.4vw, 42px); font-weight: 500; line-height: 1.1; letter-spacing: -0.01em; }
.lead__main:hover .lead__title { color: var(--accent); }
.lead__dek { font-size: 18px; line-height: 1.6; color: var(--muted); max-width: 620px; }
.lead__side { flex: 1 1 300px; display: flex; flex-direction: column; }
.lead__side a { text-decoration: none; color: var(--ink); padding: 22px 0; border-bottom: 1px solid var(--rule); display: flex; flex-direction: column; gap: 8px; }
.lead__side a:first-child { padding-top: 0; }
.lead__side a:last-child { border-bottom: 0; }
.lead__side-title { font-family: var(--serif); font-size: 24px; line-height: 1.25; transition: color 0.2s ease; }
.lead__side a:hover .lead__side-title { color: var(--accent); }

/* ---------- Page heads (section pages) ---------- */
.page-band { background: var(--oxblood); color: var(--on-dark); position: relative; overflow: hidden; }
.page-band::after {
  content: ""; position: absolute; right: -60px; top: -60px; width: 260px; height: 260px;
  border: 1px solid rgba(201, 162, 74, 0.35); border-radius: 50%;
  box-shadow: 0 0 0 40px rgba(201, 162, 74, 0.05), 0 0 0 80px rgba(201, 162, 74, 0.03);
  pointer-events: none;
}
.page-head { padding-top: 64px; padding-bottom: 52px; position: relative; z-index: 1; }
.page-head .hero__eyebrow { margin-bottom: 14px; }
.page-head h1 { margin: 0 0 14px; font-family: var(--serif); font-weight: 500; color: #fff; font-size: clamp(40px, 4.8vw, 60px); line-height: 1.05; letter-spacing: -0.015em; }
.page-head p { margin: 0; font-size: 19px; color: var(--on-dark-muted); max-width: 640px; }

/* Filter chips */
.filters { display: flex; flex-wrap: wrap; gap: 10px; padding: 28px 0 8px; }
.chip {
  font-family: var(--sans); font-size: 14px; font-weight: 600; cursor: pointer;
  padding: 10px 16px; min-height: 44px; border: 1px solid var(--rule); background: var(--paper); color: var(--ink);
  display: inline-flex; align-items: center; gap: 8px;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.chip:hover { border-color: var(--oxblood); }
.chip[aria-pressed="true"] { background: var(--oxblood); border-color: var(--oxblood); color: var(--on-dark); }
.chip__count { font-size: 12px; font-weight: 700; color: var(--meta); font-variant-numeric: tabular-nums; }
.chip[aria-pressed="true"] .chip__count { color: var(--gold-light); }
.filter-status { font-size: 14px; color: var(--meta); margin: 6px 0 0; min-height: 1.4em; }

/* ---------- Lists (section index pages) ---------- */
.post-list { list-style: none; margin: 0; padding: 0; }
.post-list li { border-bottom: 1px solid var(--rule); }
.post-list li[hidden] { display: none; }
.post-list a {
  display: flex; flex-wrap: wrap; gap: 8px 40px; padding: 30px 16px; margin: 0 -16px;
  text-decoration: none; color: var(--ink); transition: background 0.25s ease;
}
.post-list a:hover { background: var(--paper-alt); }
.post-list__meta { flex: 1 1 180px; display: flex; flex-direction: column; gap: 6px; }
.post-list__body { flex: 999 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.post-list__title { font-family: var(--serif); font-size: 28px; line-height: 1.2; transition: color 0.2s ease; }
.post-list a:hover .post-list__title { color: var(--accent); }
.post-list__dek { color: var(--muted); }
.post-list__more { font-size: 15px; font-weight: 700; color: var(--accent); }

.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.card {
  text-decoration: none; color: var(--ink); background: var(--paper);
  display: flex; flex-direction: column; gap: 10px; padding: 26px 24px;
  border: 1px solid var(--rule); transition: transform 0.3s var(--ease), box-shadow 0.3s ease, border-color 0.3s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; color: var(--ink); }
.card__title { font-family: var(--serif); font-size: 24px; line-height: 1.25; }
.card:hover .card__title { color: var(--accent); }
.card .meta { margin-top: auto; padding-top: 6px; }
.empty { padding: 40px 0; color: var(--meta); }

/* ---------- Tables ---------- */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; background: var(--paper); border: 1px solid var(--rule); }
.data-table { width: 100%; min-width: 680px; border-collapse: collapse; font-size: 16px; }
.data-table th {
  text-align: left; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--on-dark-muted); background: var(--oxblood); font-weight: 700; padding: 14px 20px;
}
.data-table td { padding: 20px; border-top: 1px solid var(--rule); color: var(--muted); vertical-align: top; }
.data-table th:last-child, .data-table td:last-child { text-align: right; }
.data-table tbody tr { transition: background 0.2s ease; }
.data-table tbody tr:hover { background: var(--paper-alt); }
.data-table__name { font-family: var(--serif); font-size: 20px; color: var(--ink) !important; }
.data-table a { font-weight: 700; }
.pill {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 4px 10px; background: var(--paper-alt); color: var(--meta);
}
.pill--live { background: #f3e6c4; color: #5a4310; }

/* ---------- Deal feature ---------- */
.deal { display: flex; flex-wrap: wrap; gap: 32px 56px; align-items: flex-start; }
.deal + .deal { border-top: 1px solid rgba(247, 239, 233, 0.16); padding-top: 40px; margin-top: 40px; }
.deal__size { flex: 1 1 240px; display: flex; flex-direction: column; gap: 10px; }
.deal__figure { font-family: var(--serif); font-size: 76px; font-weight: 500; line-height: 1; letter-spacing: -0.02em; color: var(--gold-light); font-variant-numeric: tabular-nums; }
.deal__body { flex: 999 1 500px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.deal__title { font-family: var(--serif); font-weight: 500; font-size: 30px; line-height: 1.2; margin: 0; color: #fff; }
.deal__title a { color: inherit; text-decoration: none; }
.deal__body p { margin: 0; font-size: 17px; color: var(--on-dark-muted); }
.deal__tags { display: flex; flex-wrap: wrap; gap: 8px; }
.deal__tags span { font-size: 13px; font-weight: 600; padding: 6px 12px; border: 1px solid rgba(201, 162, 74, 0.5); color: var(--on-dark); }
.deal .meta { color: var(--on-dark-muted); }
.deal-link { color: var(--gold-light); font-weight: 700; text-decoration: none; padding: 10px 0; display: inline-flex; gap: 6px; }
.deal-link:hover { color: #fff; }

/* ---------- About / contact ---------- */
.about { display: flex; flex-wrap: wrap; gap: 40px 64px; }
.about__main { flex: 999 1 540px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.about__statement { margin: 0; font-family: var(--serif); font-size: clamp(22px, 2.4vw, 27px); line-height: 1.45; }
.contact-card {
  flex: 1 1 320px; align-self: flex-start; background: var(--oxblood); color: var(--on-dark);
  padding: 28px; display: flex; flex-direction: column; gap: 16px; scroll-margin-top: 96px;
  border-top: 3px solid var(--gold);
}
.contact-card__title { font-family: var(--serif); font-size: 26px; line-height: 1.2; margin: 0; color: #fff; }
.contact-card__lede { margin: 0; color: var(--on-dark-muted); font-size: 16px; }
.contact-row { display: flex; flex-direction: column; gap: 4px; padding-top: 14px; border-top: 1px solid rgba(247, 239, 233, 0.16); }
.contact-row__label { font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-light); }
.contact-row__value { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.contact-row__value a { color: #fff; font-size: 17px; font-weight: 600; word-break: break-all; }
.copy-btn {
  font-family: var(--sans); font-size: 13px; font-weight: 700; cursor: pointer;
  background: transparent; color: var(--gold-light); border: 1px solid rgba(201, 162, 74, 0.6);
  padding: 8px 12px; min-height: 36px; transition: background 0.2s ease;
}
.copy-btn:hover { background: rgba(201, 162, 74, 0.15); }
.contact-card .button { width: 100%; }
.contact-card__links { display: flex; flex-wrap: wrap; gap: 0 24px; font-weight: 700; }
.contact-card__links a { color: var(--on-dark); padding: 10px 0; }
.contact-card__links .muted { color: var(--on-dark-muted); padding: 10px 0; }
.credentials { list-style: none; padding: 0; margin: 8px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.credentials li { background: var(--paper-alt); border-top: 3px solid var(--gold); padding: 16px 18px; display: flex; flex-direction: column; gap: 2px; }
.credentials strong { font-weight: 700; }

/* ---------- Article ---------- */
.article-band { background: var(--oxblood); color: var(--on-dark); }
.article { padding-bottom: 88px; }
.article__header { padding-top: 56px; padding-bottom: 40px; }
.kicker { margin: 0 0 18px; font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-light); }
.kicker a { color: var(--gold-light); text-decoration: none; }
.kicker a:hover { color: #fff; }
.article__title { margin: 0; font-family: var(--serif); font-weight: 500; color: #fff; font-size: clamp(36px, 4.8vw, 54px); line-height: 1.08; letter-spacing: -0.015em; }
.article__dek { margin: 18px 0 0; font-size: 21px; line-height: 1.5; color: var(--on-dark-muted); }
.byline { margin: 24px 0 0; padding-top: 16px; border-top: 1px solid rgba(247, 239, 233, 0.18); font-size: 15px; color: var(--on-dark-muted); }
.article__body { padding-top: 40px; }

.takeaways, .tombstone { background: var(--paper-alt); padding: 24px 28px; margin: 0 0 32px; border-top: 3px solid var(--gold); }
.takeaways__label, .download__label { margin: 0 0 10px; font-size: 13px; font-weight: 700; letter-spacing: 0.12em; color: var(--oxblood); }
.takeaways ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.takeaways li { display: flex; gap: 12px; }
.takeaways li::before { content: ""; flex: none; width: 8px; height: 8px; margin-top: 9px; background: var(--gold); transform: rotate(45deg); }
.tombstone { background: var(--oxblood); color: var(--on-dark); }
.tombstone__size { margin: 0 0 14px; font-family: var(--serif); font-size: 52px; line-height: 1; color: var(--gold-light); }
.facts { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0 28px; }
.facts div { border-top: 1px solid rgba(247, 239, 233, 0.16); padding: 10px 0; }
.facts dt { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--on-dark-muted); }
.facts dd { margin: 2px 0 0; font-weight: 600; color: #fff; }

.prose { font-size: 18px; line-height: 1.75; color: var(--text); }
.prose p { margin: 1.1em 0 0; }
.prose > :first-child { margin-top: 0; }
.prose h2 { font-family: var(--serif); font-weight: 600; font-size: 30px; line-height: 1.2; color: var(--ink); margin: 1.8em 0 0; }
.prose h2::before { content: ""; display: block; width: 32px; height: 3px; background: var(--gold); margin-bottom: 14px; }
.prose h3 { font-family: var(--sans); font-weight: 700; font-size: 19px; color: var(--ink); margin: 1.6em 0 0; }
.prose h2 + *, .prose h3 + * { margin-top: 0.5em; }
.prose ul, .prose ol { padding-left: 22px; margin: 1.1em 0 0; }
.prose li + li { margin-top: 0.4em; }
.prose li::marker { color: var(--accent); }
.prose blockquote { margin: 1.4em 0 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--gold); font-family: var(--serif); font-size: 22px; color: var(--ink); }
.prose table { width: 100%; border-collapse: collapse; font-size: 16px; line-height: 1.5; margin-top: 1.4em; font-variant-numeric: tabular-nums; }
.prose th, .prose td { padding: 11px 14px; border-bottom: 1px solid var(--rule); text-align: right; vertical-align: top; }
.prose th:first-child, .prose td:first-child { text-align: left; }
.prose tr > :nth-child(2):last-child { text-align: left; }
.prose th { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--on-dark-muted); background: var(--oxblood); border-bottom: 0; }
.prose tbody tr:hover { background: var(--paper-alt); }
.prose code { font-size: 0.9em; background: var(--paper-alt); padding: 2px 6px; }
.prose figure { margin: 1.6em 0 0; }
.prose figcaption { font-size: 14px; color: var(--meta); margin-top: 8px; }
.prose .note { font-size: 15px; color: var(--meta); }

/* Interactive chart */
.chart { margin: 1.8em 0 0; border: 1px solid var(--rule); padding: 20px 20px 14px; background: var(--paper); }
.chart__title { margin: 0; font-family: var(--serif); font-size: 21px; line-height: 1.3; color: var(--ink); }
.chart__sub { margin: 4px 0 0; font-size: 14px; color: var(--meta); }
.chart__legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 12px 0 4px; font-size: 14px; color: var(--muted); padding: 0; list-style: none; }
.chart__legend li { display: inline-flex; align-items: center; gap: 8px; margin: 0; }
.chart__swatch { width: 14px; height: 3px; display: inline-block; }
.chart__plot { position: relative; }
.chart__plot svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart__plot svg text { font-family: var(--sans); font-size: 12px; fill: var(--meta); }
.chart__tip {
  position: absolute; top: 0; pointer-events: none; background: var(--oxblood-deep); color: var(--on-dark);
  font-size: 13px; line-height: 1.45; padding: 8px 10px; min-width: 120px; opacity: 0; transition: opacity 0.15s ease;
  font-variant-numeric: tabular-nums; white-space: nowrap; z-index: 2;
}
.chart__tip strong { color: var(--gold-light); display: block; margin-bottom: 2px; }
.chart__tip.is-on { opacity: 1; }
.chart__source { margin: 10px 0 0; font-size: 13px; color: var(--meta); }
.chart table { margin-top: 12px; }

.download {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
  background: var(--paper-alt); border-top: 3px solid var(--oxblood); padding: 22px 26px; margin-top: 44px;
}
.download__title { margin: 0; font-family: var(--serif); font-size: 21px; }

.related { margin-top: 56px; }
.related > .section-label { color: var(--oxblood); padding-bottom: 14px; }
.related__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--oxblood-deep); color: var(--on-dark-muted); margin-top: 0; }
.site-footer__top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px 48px; padding-top: 56px; padding-bottom: 40px; }
.site-footer__brand { flex: 1 1 320px; display: flex; flex-direction: column; gap: 10px; }
.site-footer__name { font-family: var(--serif); font-size: 26px; color: #fff; margin: 0; }
.site-footer__brand p { margin: 0; max-width: 420px; }
.site-footer__cols { display: flex; flex-wrap: wrap; gap: 32px 56px; }
.site-footer__col { display: flex; flex-direction: column; gap: 2px; min-width: 140px; }
.site-footer__col .section-label { color: var(--gold-light); font-size: 12px; margin-bottom: 8px; }
.site-footer a { color: var(--on-dark); text-decoration: none; padding: 5px 0; }
.site-footer a:hover { color: var(--gold-light); }
.site-footer__bottom {
  border-top: 1px solid rgba(247, 239, 233, 0.14); padding-top: 20px; padding-bottom: 28px;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font-size: 14px;
}
.site-footer__bottom p { margin: 0; }

/* ---------- Small screens ---------- */
@media (max-width: 640px) {
  body { font-size: 16px; }
  .site-header { position: static; }
  .site-header__inner { padding-top: 8px; padding-bottom: 4px; }
  .site-nav { gap: 0 18px; }
  .hero { padding-top: 56px; padding-bottom: 80px; }
  .section { padding-block: 56px; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .tile { padding: 18px 16px; }
  .tile__name { font-size: 21px; }
  .tile__desc { display: none; }
  .lead__main { padding: 24px; }
  .deal__figure { font-size: 58px; }
  .prose { font-size: 17px; }
  .prose table { display: block; overflow-x: auto; }
  .chart { padding: 16px 14px 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .js .hero-band__chart .line { stroke-dashoffset: 0; }
  html { scroll-behavior: auto; }
}
@media print {
  .site-header, .site-footer, .sample-banner, .related, .skip-link, .progress, .filters { display: none; }
  .article-band, .tombstone { background: none; color: var(--ink); }
  .article__title { color: var(--ink); }
}
