/* ============================================================
   The Quiet Dismantling — Shared Theme (Series 1 production)
   Dark/copper palette. One CSS for landing, signals, briefings,
   viva voce. Redefines the LC email-template class names so
   pieces drafted in the light email skin render in dark TQD.
   ============================================================ */

:root {
  /* Surface */
  --bg: #0a0805;
  --surface: #1a0f08;
  --surface-raised: #231510;
  --surface-deep: #150b06;

  /* Lines */
  --border: rgba(232, 168, 130, 0.10);
  --border-hover: rgba(232, 168, 130, 0.25);
  --rule: rgba(232, 168, 130, 0.14);

  /* Type */
  --text: #fdf6f1;
  --text-muted: #a89481;
  --text-dim: #6b5848;

  /* Accents */
  --accent: #E68180;           /* signal */
  --copper: #E8A882;           /* briefing / global */
  --copper-deep: #D38660;
  --teal: #6FB0B6;             /* viva voce */
  --teal-deep: #4A8B92;
  --gold: #D4B370;

  /* Type families */
  --serif: 'Cormorant Garamond', Georgia, serif;
  --body-serif: 'EB Garamond', Georgia, serif;
  --sans: 'Jost', 'DM Sans', -apple-system, sans-serif;
  --mono: ui-monospace, Menlo, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  font-family: var(--body-serif);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--copper); }
a:hover { color: var(--text); }
img { max-width: 100%; height: auto; }

/* ============ Site chrome ============ */
.site-nav {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.25rem 2rem; border-bottom: 1px solid var(--border);
  font-family: var(--sans); font-size: .78rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--text-muted);
}
.site-nav a { color: var(--text-muted); text-decoration: none; }
.site-nav a:hover { color: var(--copper); }
.site-nav .brand { color: var(--copper); font-weight: 700; }
.site-nav .crumbs { font-size: .72rem; }
.site-nav .crumbs .sep { color: var(--text-dim); margin: 0 .5rem; }

/* ============ Anchor (image-hero for pieces) ============ */
/* Image-as-hero block with overlaid eyebrow + headline. Used on
   manufactured-update + every week's Signal/Briefing/VV. Cadence
   accent is set via body class (.cadence-signal | .cadence-briefing
   | .cadence-vv). */
.anchor {
  position: relative; width: 100%;
  aspect-ratio: 1536/768; overflow: hidden;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.anchor img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  opacity: 0.55;
}
.anchor-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(10,8,5,0.4) 60%, rgba(10,8,5,0.95) 100%);
  display: flex; flex-direction: column;
  align-items: center; justify-content: flex-end;
  text-align: center; padding: 48px 24px 56px;
}
.anchor-tag {
  font-family: var(--sans); font-size: 11px; font-weight: 700;
  letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--copper); margin-bottom: 20px;
}
body.cadence-signal .anchor-tag { color: var(--accent); }
body.cadence-briefing .anchor-tag { color: var(--copper); }
body.cadence-vv .anchor-tag { color: var(--teal); }
.anchor h1 {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(2.4rem, 5vw, 4rem); line-height: 1.0;
  letter-spacing: -0.015em; color: var(--text); margin: 0; max-width: 820px;
}
.anchor h1 em { font-style: italic; color: var(--copper); }
body.cadence-signal .anchor h1 em { color: var(--accent); }
body.cadence-vv .anchor h1 em { color: var(--teal); }
.anchor-credit {
  margin-top: 16px; font-family: var(--sans); font-size: 10px;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: rgba(253,246,241,0.55); font-weight: 600;
}

/* Meta strip sits directly under .anchor */
.meta-strip {
  background: var(--surface); padding: 18px 24px; text-align: center;
  font-family: var(--sans); font-size: 11px; font-weight: 700;
  letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--text-dim); border-bottom: 1px solid var(--border);
}
.meta-strip a { color: var(--copper); text-decoration: none; }
.meta-strip a:hover { color: var(--text); }
body.cadence-signal .meta-strip a { color: var(--accent); }
body.cadence-vv .meta-strip a { color: var(--teal); }

/* ============ Hero (landing + piece headers) ============ */
.hero {
  padding: 5rem 2rem 3.5rem; text-align: center;
  background:
    radial-gradient(ellipse at center top, rgba(230,129,128,.15), transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--surface) 100%);
  border-bottom: 1px solid var(--border);
}
.hero .label, .eyebrow {
  font-size: .7rem; font-weight: 700; letter-spacing: .22em;
  text-transform: uppercase; color: var(--copper); margin-bottom: 1rem;
}
.hero h1 {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(2.4rem, 5.5vw, 4.5rem); line-height: 1.02;
  letter-spacing: -.01em; margin-bottom: 1.25rem;
}
.hero h1 em { font-style: italic; color: var(--copper); }
.hero .subtitle, .hero .deck {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(1.1rem, 1.8vw, 1.4rem); color: var(--copper-deep);
  max-width: 720px; margin: 1rem auto 0; line-height: 1.45;
}
.hero .meta {
  margin-top: 2rem; font-size: .7rem; color: var(--text-dim);
  letter-spacing: .16em; text-transform: uppercase; font-weight: 600;
}

/* ============ Long-form piece body ============ */
main, .piece {
  max-width: 760px; margin: 0 auto; padding: 3.5rem 1.75rem 5rem;
}
.piece p {
  font-family: var(--body-serif); font-size: 1.18rem; line-height: 1.7;
  color: var(--text); margin-bottom: 1.2rem;
}
.piece p:first-of-type { font-size: 1.28rem; }
.piece strong { color: var(--copper); font-weight: 600; }
.piece em { color: var(--copper-deep); font-style: italic; }
.piece h2 {
  font-family: var(--serif); font-weight: 600;
  font-size: 1.9rem; line-height: 1.15; color: var(--text);
  margin: 3rem 0 1rem; padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
.piece h2 em { color: var(--copper); }
.piece h3 {
  font-family: var(--serif); font-weight: 600;
  font-size: 1.3rem; color: var(--copper); margin: 2rem 0 .75rem;
}
.piece h4 {
  font-family: var(--sans); font-size: .82rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--copper); margin: 2rem 0 .75rem;
}
.piece ul, .piece ol { margin: 0 0 1.5rem 1.5rem; }
.piece li { font-family: var(--body-serif); font-size: 1.1rem; margin-bottom: .5rem; }
.piece blockquote {
  font-family: var(--serif); font-style: italic; font-size: 1.35rem;
  line-height: 1.5; color: var(--copper-deep);
  padding: 1.25rem 0 1.25rem 1.5rem; margin: 2rem 0;
  border-left: 3px solid var(--copper);
}
.piece hr { border: 0; border-top: 1px solid var(--border); margin: 3rem 0; }
.piece code { font-family: var(--mono); font-size: .9em; color: var(--copper); }
.piece a { color: var(--copper); border-bottom: 1px solid rgba(232,168,130,0.3); text-decoration: none; }
.piece a:hover { color: var(--text); border-bottom-color: var(--copper); }

/* Stat span — emphasized inline number/figure */
.piece .stat {
  font-family: var(--serif); font-style: italic; font-weight: 700;
  color: var(--copper); font-variant-numeric: tabular-nums;
}
body.cadence-signal .piece .stat { color: var(--accent); }
body.cadence-vv .piece .stat { color: var(--teal); }

/* Lede block — bigger italic opener under .anchor */
.piece .lede {
  font-family: var(--serif); font-style: italic; font-weight: 500;
  font-size: clamp(1.25rem, 2vw, 1.55rem); line-height: 1.45;
  color: var(--copper-deep);
  margin: 0 0 1.75rem; padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--border);
}
.piece .byline {
  font-family: var(--sans); font-size: .75rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--text-dim);
  margin: 0 0 2.5rem; font-weight: 600;
}

/* Numbered "consequences" list (used in Signals) */
.piece ol.consequences {
  counter-reset: c; list-style: none; padding: 0;
  margin: 1.75rem 0;
}
.piece ol.consequences > li {
  counter-increment: c; padding: 1.5rem 0 1.5rem 3.25rem;
  border-top: 1px solid var(--border); position: relative;
  font-family: var(--body-serif); font-size: 1.1rem; line-height: 1.7;
}
.piece ol.consequences > li::before {
  content: counter(c, decimal-leading-zero); position: absolute;
  left: 0; top: 1.65rem; font-family: var(--mono); font-size: 1.1rem;
  font-weight: 700; color: var(--copper); letter-spacing: 0.05em;
}
body.cadence-signal .piece ol.consequences > li::before { color: var(--accent); }
.piece ol.consequences h4 {
  margin: 0 0 .5rem; font-family: var(--serif);
  font-size: 1.25rem; font-weight: 600; letter-spacing: -0.01em;
  color: var(--text); text-transform: none;
}

/* CTA block (boxed callout at end) */
.piece .cta {
  margin-top: 3.5rem; padding: 2rem 2rem;
  background: var(--surface); border: 1px solid var(--border-hover);
}
.piece .cta .kicker {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--copper); font-weight: 700;
  margin-bottom: .65rem;
}
body.cadence-signal .piece .cta .kicker { color: var(--accent); }
.piece .cta h3 {
  font-family: var(--serif); font-size: 1.5rem; color: var(--text);
  margin: 0 0 .65rem; font-weight: 600;
}
.piece .cta a.btn {
  display: inline-block; margin-top: .5rem;
  padding: 12px 22px; background: var(--text); color: var(--bg);
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.18em;
  text-transform: uppercase; text-decoration: none; font-weight: 700;
  border: none;
}

.piece .signoff {
  margin-top: 4rem; padding-top: 2rem;
  border-top: 1px solid var(--border);
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--text-dim);
}

/* Inline figure — big editorial image with caption mid-article */
.inline-figure {
  margin: 3.5rem -1.75rem; padding: 0;
  position: relative;
}
.inline-figure img {
  width: 100%; height: auto; display: block;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.inline-figure figcaption {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--text-dim); padding: 12px 1.75rem 0;
  text-align: right;
}
@media (min-width: 900px) {
  .inline-figure { margin-left: -4rem; margin-right: -4rem; }
}

/* Pull-quote — big callout block, cadence-tinted */
.pull-quote {
  margin: 3rem 0; padding: 2rem 2.25rem;
  background: var(--surface); border-left: 4px solid var(--copper);
  font-family: var(--serif); font-style: italic;
  font-size: 1.55rem; line-height: 1.4;
  color: var(--text);
}
.pull-quote em {
  color: var(--copper); font-style: italic;
}
body.cadence-signal .pull-quote { border-left-color: var(--accent); }
body.cadence-signal .pull-quote em { color: var(--accent); }
body.cadence-vv .pull-quote { border-left-color: var(--teal); }
body.cadence-vv .pull-quote em { color: var(--teal); }

/* Stat-row — three-cell numeric callout (matches email teaser pattern) */
.stat-row {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 0; margin: 2.5rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 0;
}
.stat-cell {
  padding: 0.5rem 1rem; text-align: center;
  border-right: 1px solid var(--border);
}
.stat-cell:last-child { border-right: none; }
.stat-cell .num {
  font-family: var(--serif); font-style: italic;
  font-weight: 700; font-size: 2.2rem; line-height: 1;
  color: var(--copper); letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}
body.cadence-signal .stat-cell .num { color: var(--accent); }
body.cadence-vv .stat-cell .num { color: var(--teal); }
.stat-cell .lbl {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--text-dim); margin-top: 0.6rem; line-height: 1.3;
}
@media (max-width: 640px) {
  .stat-row { grid-template-columns: 1fr; }
  .stat-cell { border-right: none; border-bottom: 1px solid var(--border); padding: 0.75rem 0; }
  .stat-cell:last-child { border-bottom: none; }
}

/* ============ Cards / schedule ============ */
.schedule, .week-card {
  background: var(--surface); border: 1px solid var(--border);
  padding: 2rem 2.25rem; border-radius: 10px;
  margin-top: 2rem;
}
.schedule h2, .week-card h2 {
  font-family: var(--serif); font-size: 1.7rem; font-weight: 600;
  line-height: 1.15; margin-bottom: .5rem;
}
.schedule h2 em, .week-card h2 em { font-style: italic; color: var(--copper); }
.schedule .sub, .week-card .sub {
  font-family: var(--serif); font-style: italic;
  font-size: 1.05rem; color: var(--copper-deep); margin-bottom: 1.25rem;
}

.week-grid { display: grid; gap: 1.25rem; margin-top: 2rem; }
.week-card .week-num {
  font-family: var(--mono); font-size: .75rem; font-weight: 700;
  letter-spacing: .1em; color: var(--copper); text-transform: uppercase;
  margin-bottom: .35rem;
}
.week-card .topic {
  font-family: var(--serif); font-size: 1.45rem; font-weight: 600;
  color: var(--text); line-height: 1.2; margin-bottom: 1rem;
}
.week-card .topic em { font-style: italic; color: var(--copper); }
.week-card .pieces {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem;
  margin-top: 1rem;
}
.week-card .piece-tile {
  display: block; padding: .9rem 1rem; border-radius: 6px;
  background: var(--surface-deep); border: 1px solid var(--border);
  text-decoration: none; transition: border-color .15s, transform .15s;
}
.week-card .piece-tile:hover {
  border-color: var(--border-hover); transform: translateY(-1px);
}
.week-card .piece-tile .ptype {
  font-family: var(--sans); font-size: .65rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--copper); margin-bottom: .35rem;
}
.week-card .piece-tile .ptitle {
  font-family: var(--serif); font-size: 1rem; line-height: 1.25;
  color: var(--text); font-weight: 500;
}
.week-card .piece-tile.upcoming {
  opacity: .42; pointer-events: none;
}
.week-card .piece-tile.upcoming .ptype { color: var(--text-dim); }

@media (max-width: 640px) {
  .week-card .pieces { grid-template-columns: 1fr; }
}

/* ============ Footer ============ */
footer.site-footer, footer {
  padding: 3rem 2rem; text-align: center;
  border-top: 1px solid var(--border); margin-top: 4rem;
}
.site-footer .sig, footer .sig {
  font-family: var(--mono); font-size: .72rem; color: var(--text-dim);
  letter-spacing: .18em; text-transform: uppercase;
}
.site-footer .links { margin-top: .75rem; font-size: .8rem; }
.site-footer .links a { color: var(--text-muted); margin: 0 .5rem; text-decoration: none; }
.site-footer .links a:hover { color: var(--copper); }

/* ============================================================
   EMAIL TEMPLATE CLASSES — re-skinned for dark TQD.
   The Drive source HTML uses these class names. By redefining
   them here, we render the same body content in the site theme
   without rewriting content.
   ============================================================ */

.preview-bar { display: none; }                    /* email-only */

.frame {
  max-width: 760px; margin: 0 auto;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

/* Banner → becomes a header section, not an email banner */
.banner {
  background:
    radial-gradient(ellipse at center top, rgba(230,129,128,.18), transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--surface) 100%);
  color: var(--text);
  padding: 4rem 1.75rem 2.5rem;
  border-top: none;
  border-bottom: 1px solid var(--border);
  text-align: center;
  position: relative; overflow: visible;
}
.banner::after { display: none; }
.banner-mark {
  font-family: var(--serif); font-style: italic;
  font-size: 1.4rem; color: var(--copper); font-weight: 500;
  z-index: 1; position: relative;
}
.banner-mark em { font-style: italic; color: var(--copper); }
.banner-org {
  font-family: var(--sans); font-size: .7rem; letter-spacing: .22em;
  text-transform: uppercase; color: var(--text-dim);
  margin-top: .5rem; z-index: 1; position: relative;
}
.banner-vv {
  font-family: var(--serif); font-style: italic;
  font-size: .95rem; letter-spacing: .08em; color: var(--text-muted);
  margin-top: 1.25rem; z-index: 1; position: relative;
}

/* Eyebrow / labels */
.eyebrow {
  font-family: var(--sans); font-size: .72rem; font-weight: 700;
  letter-spacing: .22em; text-transform: uppercase; color: var(--copper);
  padding: 2.5rem 0 0; max-width: 760px; margin: 0 auto; text-align: center;
}
.eyebrow .pillar { color: var(--text-muted); font-weight: 500; }

/* Title block */
h1.title {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(2.2rem, 5vw, 3.8rem); line-height: 1.05;
  color: var(--text); letter-spacing: -.01em;
  padding: 1rem 1.75rem 0; max-width: 760px; margin: 0 auto;
  text-align: center;
}
.deck {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(1.1rem, 1.8vw, 1.4rem); line-height: 1.4;
  color: var(--copper-deep); padding: 1rem 1.75rem 0;
  max-width: 680px; margin: 0 auto; text-align: center;
}
.byline {
  font-family: var(--sans); font-size: .78rem; letter-spacing: .08em;
  color: var(--text-muted); padding: 1.5rem 1.75rem 0;
  max-width: 760px; margin: 0 auto; text-align: center;
}

/* Opener — italic intro pull */
.opener {
  margin: 3rem auto 0; max-width: 720px;
  padding: 0 1.75rem 0 2rem;
  font-family: var(--serif); font-style: italic;
  font-size: 1.4rem; line-height: 1.5; color: var(--copper-deep);
  border-left: 3px solid var(--copper);
}

/* Section marks (numbered movements) */
.section-mark {
  font-family: var(--sans); font-size: .75rem; font-weight: 700;
  letter-spacing: .24em; text-transform: uppercase; color: var(--copper);
  margin: 3.5rem auto 0; max-width: 760px; padding: 0 1.75rem;
}
.section-mark .num {
  font-family: var(--serif); font-style: italic;
  font-size: 1rem; color: var(--accent); margin-right: .75rem;
  letter-spacing: 0; text-transform: none;
}
.section-body {
  margin: .75rem auto 0; max-width: 760px; padding: 0 1.75rem;
  font-family: var(--body-serif); font-size: 1.18rem; line-height: 1.75;
  color: var(--text);
}
.section-body p + p { margin-top: 1rem; }
.section-body strong { color: var(--copper); font-weight: 600; }
.section-body em { color: var(--copper-deep); font-style: italic; }

/* Story blocks (Signal cadence — 3 stories) */
.stories { max-width: 760px; margin: 2.5rem auto 0; padding: 0 1.75rem; }
.story { margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid var(--border); }
.story:first-child { border-top: none; padding-top: 0; }
.story-number {
  font-family: var(--mono); font-size: .72rem; font-weight: 700;
  letter-spacing: .14em; color: var(--copper); text-transform: uppercase;
}
.story h2 {
  font-family: var(--serif); font-weight: 600;
  font-size: 1.7rem; line-height: 1.2; color: var(--text);
  margin: .5rem 0 1rem;
}
.story p {
  font-family: var(--body-serif); font-size: 1.12rem; line-height: 1.7;
  color: var(--text); margin-bottom: 1rem;
}
.story-callout {
  background: var(--surface-deep); border-left: 3px solid var(--copper);
  padding: 1.1rem 1.25rem; margin: 1.25rem 0; border-radius: 4px;
}
.callout-label {
  font-family: var(--sans); font-size: .68rem; font-weight: 700;
  letter-spacing: .14em; color: var(--copper); text-transform: uppercase;
}
.story-callout p {
  font-family: var(--body-serif); font-size: 1.05rem;
  color: var(--text); margin: .5rem 0 0;
}
.story-link {
  font-family: var(--sans); font-size: .85rem; font-weight: 600;
  color: var(--copper); text-decoration: none; letter-spacing: .04em;
}
.story-link:hover { color: var(--text); }

/* YC voice block (Signal opener) */
.yc-block {
  max-width: 760px; margin: 2rem auto 0; padding: 1.75rem;
  background: var(--surface); border-left: 3px solid var(--copper);
  border-radius: 4px;
}
.section-label {
  font-family: var(--sans); font-size: .7rem; font-weight: 700;
  letter-spacing: .2em; color: var(--copper); text-transform: uppercase;
}
.yc-greeting {
  font-family: var(--serif); font-style: italic; font-size: 1.3rem;
  color: var(--text); margin-top: .75rem;
}
.yc-text {
  font-family: var(--body-serif); font-size: 1.12rem; line-height: 1.7;
  color: var(--text); margin-top: 1rem;
}
.yc-sig {
  font-family: var(--sans); font-size: .85rem; font-style: italic;
  color: var(--text-muted); margin-top: 1.25rem;
}

/* Closing + signoff (VV cadence) */
.closing {
  margin: 3rem auto 0; max-width: 760px; padding: 2rem 1.75rem 0;
  border-top: 1px solid var(--border);
  font-family: var(--serif); font-style: italic;
  font-size: 1.45rem; line-height: 1.5; color: var(--copper-deep);
}
.signoff {
  margin: 1.5rem auto 0; max-width: 760px; padding: 0 1.75rem;
  font-family: var(--sans); font-size: .88rem; font-style: italic;
  color: var(--text-muted);
}
.signoff strong { color: var(--copper); font-weight: 600; font-style: normal; }

/* Recs / sidebar block — the conversion moment */
.recs-block {
  margin: 3.5rem auto 0; max-width: 760px;
  padding: 2.25rem 2rem;
  background: var(--surface);
  border-left: 4px solid var(--copper);
  border-radius: 6px; position: relative; overflow: hidden;
}
.recs-block::after { display: none; }
.recs-label {
  font-family: var(--sans); font-size: .72rem; font-weight: 700;
  letter-spacing: .28em; color: var(--copper); text-transform: uppercase;
}
.recs-title {
  font-family: var(--serif); font-size: 1.85rem; line-height: 1.15;
  color: var(--text); font-weight: 500; margin: .75rem 0 1rem;
}
.recs-intro {
  font-family: var(--serif); font-style: italic; font-size: 1.15rem;
  line-height: 1.5; color: var(--text-muted);
}
.rec {
  margin-top: 1.5rem; padding-left: 1.25rem;
  border-left: 3px solid var(--copper);
}

/* Accent variants per cadence */
.cadence-viva-voce .opener,
.cadence-viva-voce .recs-block,
.cadence-viva-voce .closing { border-left-color: var(--teal); color: var(--teal); }
.cadence-viva-voce .section-mark { color: var(--teal); }
.cadence-viva-voce .banner-mark em,
.cadence-viva-voce .recs-label { color: var(--teal); }
.cadence-viva-voce .deck { color: var(--teal-deep); }

/* Bottom of piece — next/prev nav */
.piece-nav {
  max-width: 760px; margin: 4rem auto 0; padding: 2rem 1.75rem;
  border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; gap: 1rem;
  font-family: var(--sans); font-size: .85rem;
}
.piece-nav a {
  color: var(--text-muted); text-decoration: none;
}
.piece-nav a:hover { color: var(--copper); }
.piece-nav .arrow { color: var(--copper); margin: 0 .35rem; }

/* ============================================================
   RICH BRIEFING + VV BLOCKS — dark-theme remapping
   The Drive sources use these class names; we adopt them.
   ============================================================ */

/* Highlight cards: puzzle opener, CTAs, closers, TLDR, interludes */
.puzzle, .cta-block, .closer, .tldr, .interlude, .so-what {
  max-width: 760px; margin: 2.5rem auto 0; padding: 1.75rem 1.85rem;
  background: var(--surface); border: 1px solid var(--border);
  border-left: 4px solid var(--copper); border-radius: 6px;
}
.puzzle-label, .cta-eyebrow, .cta-label, .closer-label,
.tldr-label, .interlude-label, .element-label, .section-label {
  font-family: var(--sans); font-size: .72rem; font-weight: 700;
  letter-spacing: .22em; text-transform: uppercase; color: var(--copper);
  margin-bottom: .75rem; display: block;
}
.puzzle p, .cta-body, .closer p, .tldr p, .interlude p {
  font-family: var(--body-serif); font-size: 1.12rem; line-height: 1.7;
  color: var(--text); margin-bottom: .9rem;
}
.cta-title { font-family: var(--serif); font-size: 1.6rem; font-weight: 600; color: var(--text); margin-bottom: .5rem; line-height: 1.2; }
.cta-button, .cta-link, .story-link,
a.cta-button, a.cta-link, a.story-link {
  display: inline-block; margin-top: .75rem; padding: .65rem 1.1rem;
  background: var(--copper); color: var(--bg);
  font-family: var(--sans); font-size: .82rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; text-decoration: none;
  border-radius: 4px; border-bottom: none !important;
}
.cta-button:hover, .cta-link:hover,
a.cta-button:hover, a.cta-link:hover { background: var(--text); color: var(--bg); }

/* Pillars — section dividers with name + meta */
.pillar-head {
  max-width: 760px; margin: 3rem auto 1rem; padding: 1.25rem 1.75rem;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap;
}
.pillar-name {
  font-family: var(--sans); font-size: .85rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--copper);
}
.pillar-name .dot {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: var(--copper); margin-right: .5rem; vertical-align: middle;
}
.pillar-meta {
  font-family: var(--serif); font-style: italic; font-size: 1rem;
  color: var(--text-muted);
}
.pillar-playbook .dot   { background: var(--copper); }
.pillar-research .dot   { background: var(--accent); }
.pillar-clinical .dot   { background: var(--teal); }
.pillar-trajectory .dot { background: var(--gold); }
.pillar-blueprint .dot  { background: var(--copper-deep); }
.pillar-receipt .dot    { background: var(--copper-deep); }

/* Items / receipts / numbered cards */
.item, .rec {
  max-width: 760px; margin: 1.5rem auto; padding: 1.25rem 1.5rem;
  background: var(--surface-deep); border-radius: 6px;
  border-left: 3px solid var(--copper);
  display: grid; grid-template-columns: 56px 1fr; gap: 1rem; align-items: start;
}
.item-num, .rec-num {
  font-family: var(--serif); font-style: italic; font-size: 2rem;
  font-weight: 600; color: var(--copper); line-height: 1; grid-column: 1;
}
.item-headline, .rec-headline {
  font-family: var(--serif); font-size: 1.3rem; font-weight: 600;
  color: var(--text); line-height: 1.25; margin-bottom: .5rem; grid-column: 2;
}
.item-body, .rec-body, .item-source {
  font-family: var(--body-serif); font-size: 1.05rem; line-height: 1.6;
  color: var(--text); grid-column: 2;
}
.item-source {
  font-family: var(--sans); font-size: .78rem; color: var(--text-muted);
  margin-top: .5rem; letter-spacing: .04em;
}

/* Contrast columns (then vs now, etc.) */
.contrast-grid {
  max-width: 760px; margin: 2rem auto; padding: 0 1.75rem;
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem;
}
.contrast-col {
  padding: 1.25rem 1.5rem; background: var(--surface);
  border-radius: 6px; border: 1px solid var(--border);
}
.contrast-label {
  font-family: var(--sans); font-size: .7rem; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase; color: var(--copper);
  margin-bottom: .75rem;
}
.contrast-body {
  font-family: var(--body-serif); font-size: 1.05rem; line-height: 1.65;
  color: var(--text);
}
@media (max-width: 640px) { .contrast-grid { grid-template-columns: 1fr; } }

/* Timeline */
.timeline {
  max-width: 760px; margin: 2rem auto; padding: 0 1.75rem;
}
.timeline-row {
  display: grid; grid-template-columns: 140px 1fr; gap: 1.25rem;
  padding: 1rem 0; border-top: 1px solid var(--border);
}
.timeline-row:last-child { border-bottom: 1px solid var(--border); }
.timeline-date {
  font-family: var(--mono); font-size: .78rem; color: var(--copper);
  font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}
.timeline-event {
  font-family: var(--body-serif); font-size: 1.08rem; line-height: 1.6;
  color: var(--text);
}

/* Quotes, sources, deidentify notes */
.quote {
  max-width: 720px; margin: 2rem auto;
  padding: 1.25rem 0 1.25rem 1.5rem;
  border-left: 3px solid var(--copper);
  font-family: var(--serif); font-style: italic;
  font-size: 1.35rem; line-height: 1.5; color: var(--copper-deep);
}
.sources, .signature, .footer-credit, .deidentify-note,
.tight, .case-name {
  max-width: 760px; margin: 2rem auto 0; padding: 0 1.75rem;
  font-family: var(--sans); font-size: .82rem; color: var(--text-muted);
  letter-spacing: .04em;
}
.sources p, .sources li { font-size: .82rem; color: var(--text-muted); line-height: 1.55; }
.deidentify-note { font-style: italic; padding: 1rem 1.75rem; background: var(--surface-deep); border-radius: 4px; }

/* VV audio block */
.audio-block {
  max-width: 760px; margin: 2.5rem auto 0; padding: 1.5rem 1.75rem;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 6px; display: flex; align-items: center; gap: 1.25rem;
}
.play-icon {
  width: 44px; height: 44px; border-radius: 50%; background: var(--copper);
  color: var(--bg); font-size: 1.2rem; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.audio-title {
  font-family: var(--serif); font-size: 1.1rem; font-weight: 600; color: var(--text);
}
.audio-meta, .audio-duration {
  font-family: var(--sans); font-size: .75rem; color: var(--text-muted);
  letter-spacing: .06em; margin-top: .2rem;
}

/* Recs sublist details */
.rec { display: grid; grid-template-columns: 56px 1fr; gap: 1rem; }
.rec-num { font-family: var(--serif); font-style: italic; font-size: 1.85rem; color: var(--copper); }

/* Teaser / next-week / close-line */
.teaser, .next-week, .close-line, .turn-line {
  max-width: 760px; margin: 2rem auto 0; padding: 1.25rem 1.75rem;
  background: var(--surface); border-radius: 6px; border-left: 3px solid var(--copper-deep);
  font-family: var(--serif); font-style: italic; font-size: 1.15rem;
  color: var(--copper-deep); line-height: 1.5;
}

/* Law (statute quote) */
.law {
  max-width: 760px; margin: 2rem auto;
  padding: 1.25rem 1.5rem; background: var(--surface-deep);
  border: 1px solid var(--border); border-radius: 6px;
  font-family: var(--mono); font-size: .92rem; line-height: 1.6;
  color: var(--text); white-space: pre-wrap;
}

/* Generic content unwrapping — divs without explicit class take piece styling */
.piece > div, .frame > div, body > p {
  /* fallback already covered by .piece p, .section-body p */
}

/* Body fallback when content is loose paragraphs at the top level */
body > p {
  font-family: var(--body-serif); font-size: 1.18rem; line-height: 1.7;
  color: var(--text); max-width: 760px; margin: 1.2rem auto;
  padding: 0 1.75rem;
}
body > h2, body > h3, body > h4 {
  max-width: 760px; margin: 2.5rem auto 1rem; padding: 0 1.75rem;
}
body > h2 {
  font-family: var(--serif); font-size: 1.9rem; font-weight: 600;
  color: var(--text); line-height: 1.15; padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
body > h2 em, body > h3 em { color: var(--copper); }
body > h3 {
  font-family: var(--serif); font-size: 1.35rem; color: var(--copper);
  font-weight: 600;
}
body > ul, body > ol {
  max-width: 720px; margin: 1rem auto; padding: 0 1.75rem 0 3rem;
}
body > ul li, body > ol li {
  font-family: var(--body-serif); font-size: 1.08rem; line-height: 1.65;
  color: var(--text); margin-bottom: .4rem;
}

/* ============================================================
   SIGNAL ENHANCEMENTS — Countdown, citations, sources,
   thesis lines, upcoming state
   ============================================================ */

/* Countdown block — ticking clock to a political deadline */
.countdown-block {
  margin: 3rem 0; padding: 2rem 2.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: 6px;
  text-align: center;
}
.countdown-label {
  font-family: var(--sans); font-size: .72rem; font-weight: 700;
  letter-spacing: .28em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 1rem;
}
.countdown-date {
  display: flex; align-items: baseline; justify-content: center;
  gap: .65rem; margin-bottom: 1.25rem;
}
.countdown-number {
  font-family: var(--serif); font-style: italic;
  font-weight: 700; font-size: 4.5rem; line-height: 1;
  color: var(--accent); letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.countdown-unit {
  font-family: var(--sans); font-size: 1.1rem; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--text-muted);
}
.countdown-context {
  font-family: var(--body-serif); font-size: 1.05rem; line-height: 1.6;
  color: var(--text); max-width: 600px; margin: 0 auto;
}
.countdown-date-line {
  margin-top: .75rem;
  font-family: var(--mono); font-size: .72rem;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--text-dim);
}
.countdown-date-line a {
  color: var(--accent); border-bottom: 1px solid rgba(230,129,128,0.3);
  text-decoration: none;
}
.countdown-date-line a:hover { color: var(--text); border-bottom-color: var(--accent); }

@media (max-width: 640px) {
  .countdown-number { font-size: 3.2rem; }
  .countdown-block { padding: 1.5rem 1.25rem; }
}

/* Blockquote cite — proper class instead of inline styles */
.piece blockquote cite,
blockquote .cite {
  display: block; margin-top: .75rem;
  font-style: normal; font-size: .78rem;
  font-family: var(--mono); letter-spacing: .14em;
  text-transform: uppercase; color: var(--text-dim);
}

/* Source section — hover states + link styling */
.sources a {
  color: var(--text-muted);
  border-bottom: 1px solid transparent;
  text-decoration: none;
  transition: color .15s, border-bottom-color .15s;
}
.sources a:hover {
  color: var(--copper);
  border-bottom-color: rgba(232,168,130,0.4);
}
.sources ol {
  list-style: none; counter-reset: src; padding: 0; margin: 0;
}
.sources ol li {
  counter-increment: src;
  padding: .6rem 0 .6rem 2rem; position: relative;
  border-top: 1px solid rgba(232,168,130,0.06);
}
.sources ol li:first-child { border-top: none; }
.sources ol li::before {
  content: counter(src, decimal-leading-zero);
  position: absolute; left: 0; top: .65rem;
  font-family: var(--mono); font-size: .75rem;
  font-weight: 700; color: var(--text-dim);
  letter-spacing: .05em;
}

/* Upcoming tile fix — higher opacity + "coming soon" overlay */
.week-card .piece-tile.upcoming {
  opacity: .55; pointer-events: none;
  position: relative;
}
.week-card .piece-tile.upcoming::after {
  content: 'COMING SOON';
  position: absolute; bottom: 6px; right: 8px;
  font-family: var(--mono); font-size: 8px;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--text-dim); opacity: .7;
}

/* Thesis line — italic serif under each week card topic */
.week-card .thesis {
  font-family: var(--serif); font-style: italic;
  font-size: .95rem; line-height: 1.4;
  color: var(--copper-deep); margin-top: -.5rem; margin-bottom: 1rem;
}

/* Signal-cadence overrides for yc-block */
body.cadence-signal .yc-block {
  border-left-color: var(--accent);
}
body.cadence-signal .yc-block .section-label {
  color: var(--accent);
}

/* Signal-cadence teaser */
body.cadence-signal .teaser {
  border-left-color: var(--accent);
}
body.cadence-signal .teaser a {
  color: var(--accent);
  border-bottom: 1px solid rgba(230,129,128,0.3);
  text-decoration: none;
}
body.cadence-signal .teaser a:hover {
  color: var(--text);
}

/* YC block paragraph spacing */
.yc-text p {
  font-family: var(--body-serif); font-size: 1.12rem;
  line-height: 1.7; color: var(--text);
  margin-bottom: 1rem;
}
.yc-text p:last-child { margin-bottom: 0; }
.yc-text em {
  color: var(--copper-deep); font-style: italic;
}
