/* slides.css — public Writing Streak viewer. Design space: 1280×720.
   Single site-accent theme (theme-ws). Self-contained font stacks so the
   PNG/SVG export renders without depending on the page's stylesheet. */

.slide {
  position: relative;
  width: 1280px;
  height: 720px;
  overflow: hidden;
  font-family: 'Newsreader', Georgia, 'Times New Roman', serif;
  display: block;
  box-sizing: border-box;
}
.slide *, .slide *::before, .slide *::after { box-sizing: border-box; }

/* ---------- the one theme (Writing Streak paper) ---------- */
.slide.theme-ws,
.slide {                 /* default even if class missing */
  --bg:     #f4f1e8;
  --bg2:    #e9e3d4;
  --ink:    #1f1a17;
  --muted:  #6f6457;
  --line:   rgba(31, 26, 23, 0.16);
  --card:   #fbf9f3;
  --shadow: rgba(80, 60, 30, 0.12);
  --ghost:  rgba(31, 26, 23, 0.055);
  --cat:    #b8541c;     /* oxblood / orange accent — all slides */
  --gold:   #a8864a;

  /* chart series colors (venn, pie, line, bar) — earthy site palette */
  --c1: #b8541c;   /* oxblood     */
  --c2: #5c6e4a;   /* olive       */
  --c3: #a8864a;   /* gold        */
  --c4: #6d5878;   /* plum        */
  --c5: #47707a;   /* slate teal  */
  --c6: #8a4038;   /* brick       */

  /* keep paper + washes when printing to PDF */
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}
.slide { background: var(--bg); color: var(--ink); }

/* font roles */
.slide { --f-display: 'Fraunces', Georgia, serif;
         --f-body: 'Newsreader', Georgia, serif;
         --f-orn: 'Cormorant Garamond', Georgia, serif; }

/* ---------- shared chrome ---------- */
.cat-bar {
  position: absolute; top: 0; left: 0; right: 0; height: 8px;
  background: var(--cat); z-index: 5;
}
.slide-footer {
  position: absolute; bottom: 26px; left: 64px; right: 64px; z-index: 5;
  display: flex; justify-content: space-between; align-items: baseline;
  font-family: var(--f-orn); font-style: italic;
  font-size: 18px; color: var(--muted);
}
.ft-deck { letter-spacing: .02em; }
.ft-page { opacity: .8; font-variant-numeric: lining-nums; }

.body {
  position: absolute; inset: 0; padding: 92px 96px 80px;
  display: flex; z-index: 2;
}
.col { flex-direction: column; }
.row { flex-direction: row; }
.center { align-items: center; justify-content: center; text-align: center; }
.vcenter { justify-content: center; }
.center-text { text-align: center; }
.muted { color: var(--muted); }

.kicker {
  font-family: var(--f-orn); font-style: italic;
  font-size: 21px; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: var(--cat); margin-bottom: 18px;
}
.h-xl { font-family: var(--f-display); font-size: 64px; font-weight: 600; line-height: 1.05; margin: 0 0 14px; letter-spacing: -.015em; }
.h-md { font-family: var(--f-display); font-size: 38px; font-weight: 600; margin: 0 0 26px; line-height: 1.15; letter-spacing: -.01em; }
.h-sub { font-family: var(--f-orn); font-style: italic; font-size: 26px; color: var(--muted); margin: 6px 0 0; max-width: 880px; }

.slide strong { font-weight: 700; }
.slide em { font-style: italic; }
.slide code {
  font-family: ui-monospace, Consolas, monospace; font-size: .9em;
  background: var(--bg2); padding: 2px 8px; border-radius: 6px;
}

.ghost-num, .ghost-q {
  position: absolute; z-index: 1; font-weight: 900; color: var(--ghost);
  user-select: none; line-height: 1; font-family: var(--f-display);
}

.img-ph {
  background: var(--bg2); border: 2px dashed var(--line);
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); font-size: 17px; border-radius: 12px;
}

/* ====================================================== FRAMING */

/* Title */
.type-title .title-bg {
  position: absolute; inset: 0; background-size: cover; background-position: center; z-index: 0;
}
.type-title .title-scrim { position: absolute; inset: 0; background: var(--bg); opacity: .82; z-index: 1; }
.title-rule { width: 90px; height: 8px; background: var(--cat); border-radius: 4px; margin-bottom: 36px; }
.t-title { font-family: var(--f-display); font-size: 78px; font-weight: 600; line-height: 1.04; margin: 0; max-width: 1040px; letter-spacing: -.02em; }
.t-subtitle {
  font-family: var(--f-orn); font-style: italic; font-weight: 400;
  font-size: 34px; color: var(--muted); margin: 26px 0 0; max-width: 900px;
}
.t-author {
  margin-top: 56px; font-family: var(--f-orn); font-style: italic;
  font-size: 21px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); font-weight: 600;
}

/* Overview */
.ov-grid { display: flex; gap: 22px; margin-top: 26px; flex: 1; align-items: stretch; }
.ov-card {
  flex: 1; background: var(--card); border: 1px solid var(--line);
  border-top: 6px solid var(--cat); border-radius: 14px; padding: 26px 22px;
  box-shadow: 0 8px 22px var(--shadow); min-width: 0; max-height: 380px;
}
.ov-num { font-family: var(--f-display); font-size: 50px; font-weight: 700; color: var(--cat); line-height: 1; margin-bottom: 14px; }
.ov-card-title { font-family: var(--f-display); font-size: 25px; font-weight: 600; line-height: 1.15; margin-bottom: 10px; }
.ov-card-kicker { font-family: var(--f-orn); font-style: italic; font-size: 18px; color: var(--muted); line-height: 1.35; }
.ov-empty {
  flex: 1; display: flex; align-items: center; justify-content: center;
  color: var(--muted); font-size: 22px; border: 2px dashed var(--line); border-radius: 14px;
}

/* Header */
.type-header .ghost-num { font-size: 560px; right: 30px; bottom: -100px; }
.sec-dots { display: flex; gap: 12px; margin-top: 46px; }
.sec-dots .dot { width: 14px; height: 14px; border-radius: 50%; background: var(--line); }
.sec-dots .dot.past { background: var(--muted); opacity: .5; }
.sec-dots .dot.on { background: var(--cat); transform: scale(1.35); }

/* Ending */
.end-frame {
  position: absolute; inset: 30px; border: 2px solid var(--line); border-radius: 18px; z-index: 1;
}
.end-mark {
  font-family: var(--f-display); font-weight: 600; font-size: 30px;
  letter-spacing: .02em; color: var(--cat); margin-bottom: 30px;
}
.end-logo { max-height: 120px; max-width: 320px; object-fit: contain; margin-bottom: 30px; }
.end-signoff {
  font-family: var(--f-display); font-size: 48px; font-weight: 600; max-width: 940px; line-height: 1.18; letter-spacing: -.01em;
}
.end-tagline { font-family: var(--f-orn); font-style: italic; font-size: 26px; color: var(--muted); margin-top: 20px; }
.end-links { display: flex; gap: 26px; margin-top: 52px; flex-wrap: wrap; justify-content: center; }
.end-link {
  font-family: var(--f-orn); font-style: italic;
  font-size: 21px; font-weight: 600; color: var(--cat); text-decoration: none;
  border: 1.5px solid var(--cat); border-radius: 999px; padding: 9px 28px;
}
.end-link.primary { background: var(--cat); color: #fbf9f3; }

/* ================================================== DECLARATIVE */

/* Statement */
.stmt-mark { width: 70px; height: 7px; background: var(--cat); border-radius: 4px; margin-bottom: 40px; }
.stmt {
  font-family: var(--f-body); font-style: italic;
  font-size: 54px; line-height: 1.25; max-width: 1020px; margin: 0; font-weight: 400;
}

/* Quote */
.q-glyph {
  position: absolute; top: 18px; left: 64px; font-family: var(--f-display);
  font-size: 340px; line-height: 1; color: var(--cat); opacity: .20; z-index: 1;
}
.q-body { padding-left: 200px; }
.q-text {
  font-family: var(--f-body); font-size: 42px; line-height: 1.35;
  max-width: 880px; margin: 0; font-weight: 400;
}
.q-attr { margin-top: 36px; font-family: var(--f-orn); font-style: italic; font-size: 25px; font-weight: 700; color: var(--cat); }
.q-role { font-weight: 400; color: var(--muted); }

/* Definition */
.def-term { font-family: var(--f-display); font-size: 74px; font-weight: 600; margin: 0; letter-spacing: -.02em; }
.def-rule { width: 100%; max-width: 760px; height: 2px; background: var(--line); margin: 26px 0 30px; }
.def-text { font-family: var(--f-body); font-size: 32px; line-height: 1.4; max-width: 940px; margin: 0; }
.def-ex { font-family: var(--f-orn); font-style: italic; color: var(--muted); font-size: 24px; margin-top: 26px; }

/* Source */
.src-row { gap: 64px; align-items: center; }
.src-card {
  flex: 0 0 360px; background: var(--card); border: 1px solid var(--line);
  border-left: 10px solid var(--cat); border-radius: 12px; padding: 44px 36px;
  box-shadow: 0 10px 26px var(--shadow);
}
.src-title { font-family: var(--f-display); font-size: 31px; font-weight: 600; line-height: 1.25; }
.src-author { margin-top: 16px; font-family: var(--f-orn); font-style: italic; font-size: 20px; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
.src-takeaway { flex: 1; }
.src-text { font-family: var(--f-body); font-size: 30px; line-height: 1.4; margin: 0; }
.src-link { margin-top: 24px; font-size: 18px; color: var(--cat); }

/* =================================================== REFLECTION */

/* Question */
.ghost-q { font-size: 660px; left: 50%; top: 46%; transform: translate(-50%, -50%); }
.qq-text { font-family: var(--f-display); font-size: 56px; font-weight: 600; line-height: 1.2; max-width: 1000px; margin: 0; letter-spacing: -.01em; }
.qq-sub { font-family: var(--f-orn); font-style: italic; font-size: 27px; color: var(--muted); margin-top: 28px; }

/* Equation */
.eq-expr {
  display: flex; gap: 26px; align-items: baseline; justify-content: center; flex-wrap: wrap;
  font-family: var(--f-display); font-size: 62px; font-weight: 600; max-width: 1080px;
}
.eq-op { color: var(--cat); font-weight: 700; }
.eq-gloss { font-family: var(--f-orn); font-style: italic; font-size: 26px; color: var(--muted); margin-top: 48px; }

/* Demo */
.demo-box {
  border: 3px dashed var(--cat); border-radius: 18px; padding: 40px 48px;
  background: var(--card); box-shadow: 0 10px 26px var(--shadow);
}
.demo-head {
  font-family: var(--f-display); font-size: 32px; font-weight: 600; color: var(--cat); margin-bottom: 28px;
  display: flex; align-items: baseline; gap: 20px;
}
.demo-time {
  font-family: var(--f-orn); font-style: italic; font-size: 18px; font-weight: 700; color: var(--muted);
  border: 1.5px solid var(--line); border-radius: 999px; padding: 5px 16px;
}
.demo-step {
  display: flex; gap: 22px; align-items: flex-start; font-size: 28px;
  line-height: 1.35; padding: 14px 0;
}
.demo-step + .demo-step { border-top: 1px solid var(--line); }
.demo-n {
  flex: 0 0 44px; height: 44px; border-radius: 50%; background: var(--cat); color: #fbf9f3;
  display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 700;
  font-family: var(--f-display);
}

/* CTA */
.cta-text { font-family: var(--f-display); font-size: 58px; font-weight: 600; line-height: 1.15; max-width: 1000px; margin: 0; letter-spacing: -.015em; }
.cta-detail { font-family: var(--f-orn); font-style: italic; font-size: 26px; color: var(--muted); margin-top: 26px; max-width: 860px; }
.cta-btn {
  margin-top: 52px; background: var(--cat); color: #fbf9f3; font-family: var(--f-display);
  font-size: 27px; font-weight: 600; text-decoration: none;
  padding: 20px 64px; border-radius: 999px; box-shadow: 0 12px 30px var(--shadow);
  display: inline-block;
}

/* ===================================================== SEQUENCE */

/* Comparison */
.cmp-row { display: flex; gap: 0; flex: 1; align-items: stretch; position: relative; }
.cmp-side { flex: 1; display: flex; flex-direction: column; min-width: 0; padding: 0 36px; }
.cmp-img, .img-ph.cmp-img { width: 100%; height: 240px; object-fit: cover; border-radius: 14px; }
.cmp-label { font-family: var(--f-display); font-size: 28px; font-weight: 600; margin: 22px 0 12px; text-align: center; }
.cmp-points { margin: 0; padding-left: 26px; font-size: 22px; line-height: 1.5; color: var(--muted); }
.cmp-points li { margin-bottom: 6px; }
.cmp-vs { flex: 0 0 2px; background: var(--line); position: relative; }
.cmp-vs span {
  position: absolute; top: 104px; left: 50%; transform: translate(-50%, 0);
  background: var(--cat); color: #fbf9f3; font-family: var(--f-display); font-weight: 700; font-size: 19px;
  width: 58px; height: 58px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  text-transform: uppercase; box-shadow: 0 8px 20px var(--shadow);
}

/* List */
.list-items { margin: 0; padding-left: 44px; font-size: 31px; line-height: 1.45; }
.list-items li { margin-bottom: 20px; }
.list-items li::marker { color: var(--cat); font-weight: 700; }
.list-items.two-col { columns: 2; column-gap: 70px; font-size: 26px; }

/* Process */
.proc-row { display: flex; gap: 14px; align-items: center; flex: 1; }
.proc-card {
  flex: 1; background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 26px 22px; min-width: 0; box-shadow: 0 8px 22px var(--shadow);
  border-bottom: 6px solid var(--cat); align-self: stretch;
  max-height: 330px; display: flex; flex-direction: column;
}
.proc-n {
  width: 48px; height: 48px; border-radius: 50%; background: var(--cat); color: #fbf9f3; font-family: var(--f-display);
  font-size: 24px; font-weight: 700; display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.proc-text { font-size: 22px; line-height: 1.35; }
.proc-arrow { font-size: 34px; color: var(--cat); font-weight: 900; flex: 0 0 auto; }

/* Timeline */
.tl-row { display: flex; position: relative; flex: 1; align-items: center; margin-top: 20px; }
.tl-line { position: absolute; left: 0; right: 0; top: 50%; height: 3px; background: var(--line); }
.tl-cell { flex: 1; position: relative; text-align: center; padding: 0 10px; min-width: 0; }
.tl-date {
  font-family: var(--f-display); font-size: 24px; font-weight: 700; color: var(--cat);
  position: absolute; bottom: 56%; left: 0; right: 0; margin-bottom: 22px;
}
.tl-dot {
  width: 22px; height: 22px; border-radius: 50%; background: var(--cat);
  border: 5px solid var(--bg); box-shadow: 0 0 0 3px var(--line);
  margin: 0 auto; position: relative; z-index: 2;
}
.tl-event {
  font-size: 20px; line-height: 1.35; color: var(--muted);
  position: absolute; top: 56%; left: 6px; right: 6px; margin-top: 22px;
}

/* ===================================================== EVIDENCE */

/* Number */
.num-value { font-family: var(--f-display); font-size: 220px; font-weight: 600; line-height: 1; color: var(--cat); letter-spacing: -.03em; }
.num-label { font-family: var(--f-body); font-size: 34px; line-height: 1.3; max-width: 880px; margin: 30px 0 0; }
.num-source { margin-top: 30px; font-family: var(--f-orn); font-style: italic; font-size: 18px; color: var(--muted); }

/* Trendline */
.trend-wrap { position: relative; flex: 1; margin: 10px 40px; }
.trend-svg { width: 100%; height: 100%; }
.trend-path { fill: none; stroke: var(--cat); stroke-width: 10; stroke-linecap: round; }
.trend-head { fill: none; stroke: var(--cat); stroke-width: 10; stroke-linejoin: round; stroke-linecap: round; }
.trend-from { position: absolute; left: 0; bottom: -12px; font-size: 28px; font-weight: 700; color: var(--muted); }
.trend-to { position: absolute; right: 0; font-family: var(--f-display); font-size: 30px; font-weight: 700; color: var(--cat); }
.trend-to.top { top: -16px; }
.trend-to.bottom { bottom: -12px; }
.trend-note { text-align: center; color: var(--muted); font-size: 22px; margin: 26px 0 0; }

/* Table */
.tbl-wrap { flex: 1; display: flex; align-items: flex-start; overflow: hidden; }
.tbl { border-collapse: collapse; width: 100%; font-size: 24px; background: var(--card); box-shadow: 0 8px 22px var(--shadow); border-radius: 12px; overflow: hidden; }
.tbl th {
  background: var(--cat); color: #fbf9f3; text-align: left; font-family: var(--f-display); font-weight: 600;
  padding: 16px 24px; font-size: 21px; letter-spacing: .03em;
}
.tbl td { padding: 14px 24px; border-top: 1px solid var(--line); }
.tbl tr:nth-child(even) td { background: var(--bg2); }

/* Chart */
.chart-wrap { flex: 1; display: flex; align-items: center; justify-content: center; min-height: 0; }
.chart-img { max-width: 100%; max-height: 100%; border-radius: 12px; object-fit: contain; }
.img-ph.chart-img { width: 760px; height: 360px; }
.chart-caption { text-align: center; font-family: var(--f-orn); font-style: italic; font-size: 20px; color: var(--muted); margin: 18px 0 0; }
.chart-source { opacity: .8; }

/* ==================================================================
   Synced from the editor renderer 2026-07-21
   ================================================================== */

/* ---------- shared image placements ---------- */

/* Full-bleed background wash: image behind a paper-colored scrim.
   Used by: overview, header, trendline, table, drawn charts. */
.bg-img {
  position: absolute; inset: 0; z-index: 0;
  background-size: cover; background-position: center;
}
.bg-scrim { position: absolute; inset: 0; background: var(--bg); opacity: .88; z-index: 0; }

/* Right split panel: image owns the right 40%, text recenters left.
   Used by: statement, question, cta, number. */
.split-img {
  position: absolute; top: 0; right: 0; bottom: 0; width: 512px; z-index: 1;
  background-size: cover; background-position: center;
}
.split-img::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 100px;
  background: linear-gradient(transparent, rgba(31,26,23,.34));
}
.type-statement.has-img .body,
.type-question.has-img .body,
.type-cta.has-img .body,
.type-number.has-img .body { right: 512px; }
.type-question.has-img .ghost-q { left: 384px; }

/* Framed side inset: a floating rounded image on the right.
   Used by: definition, demo, list. */
.def-img, .demo-img, .list-img {
  position: absolute; right: 76px; top: 50%; transform: translateY(-50%);
  width: 380px; height: 440px; object-fit: cover; border-radius: 18px;
  box-shadow: 0 14px 34px var(--shadow); z-index: 2;
}
.type-definition.has-img .body { right: 500px; }
.type-demo.has-img .body { right: 470px; }
.list-img { width: 420px; height: 430px; }
.type-list.has-img .body { right: 540px; }

/* Banner strip: wide image between heading and content.
   Used by: process, timeline. */
.banner-img {
  flex: 0 0 168px; width: 100%; border-radius: 14px;
  background-size: cover; background-position: center;
  margin: -6px 0 26px; box-shadow: 0 8px 22px var(--shadow);
}

/* Quote avatar + attribution row */
.q-attr-row { display: flex; align-items: center; gap: 24px; margin-top: 36px; }
.q-attr-row .q-attr { margin-top: 0; }
.q-avatar {
  width: 104px; height: 104px; border-radius: 50%; object-fit: cover;
  border: 4px solid var(--card); box-shadow: 0 8px 20px var(--shadow);
}

/* Source card cover image */
.src-cover {
  width: 100%; height: 190px; object-fit: cover;
  border-radius: 8px; margin-bottom: 24px;
}
.type-source.has-img .src-card { padding-top: 32px; }

/* Equation inset image */
.eq-img {
  max-height: 190px; max-width: 640px; object-fit: cover;
  border-radius: 14px; margin-top: 44px; box-shadow: 0 10px 26px var(--shadow);
}
.type-equation.has-img .eq-gloss { margin-top: 34px; }

/* ---------- drawn charts (venn, pie, line, bar) ---------- */
.chart-svg { width: 100%; flex: 1; min-height: 0; }
.chart-base { stroke: var(--line); stroke-width: 3; }
.chart-val {
  font-family: var(--f-display); font-size: 24px; font-weight: 700;
  fill: var(--ink); text-anchor: middle;
}
.chart-x {
  font-family: var(--f-orn); font-style: italic; font-size: 22px;
  font-weight: 500; fill: var(--muted); text-anchor: middle;
}

/* Venn Diagram */
.venn-wrap { flex: 1; display: flex; align-items: center; justify-content: center; min-height: 0; }
.venn-svg { height: 100%; max-height: 430px; max-width: 100%; }
.venn-a { fill: var(--c1); fill-opacity: .5; stroke: var(--c1); stroke-width: 3; }
.venn-b { fill: var(--c2); fill-opacity: .5; stroke: var(--c2); stroke-width: 3; }
.venn-num {
  font-family: var(--f-display); font-size: 48px; font-weight: 700;
  fill: var(--ink); text-anchor: middle;
  paint-order: stroke; stroke: var(--bg); stroke-width: 10px; stroke-linejoin: round;
}
.venn-label {
  font-family: var(--f-display); font-size: 27px; font-weight: 600;
  fill: var(--ink); text-anchor: middle;
}

/* Pie Chart (donut) */
.pie-row {
  flex: 1; display: flex; align-items: center; justify-content: center;
  gap: 84px; min-height: 0;
}
.pie-svg { flex: 0 1 auto; height: 100%; max-height: 400px; }
.pie-pct {
  font-family: var(--f-display); font-size: 27px; font-weight: 700;
  fill: var(--bg); text-anchor: middle;
}
.pie-legend { display: flex; flex-direction: column; gap: 20px; max-width: 480px; min-width: 0; }
.pie-leg-item { display: flex; align-items: center; gap: 16px; font-size: 26px; min-width: 0; }
.pie-swatch { width: 22px; height: 22px; border-radius: 6px; flex: 0 0 auto; }
.pie-leg-label { font-family: var(--f-display); font-weight: 600; }
.pie-leg-val { color: var(--muted); font-weight: 600; margin-left: 6px; }

/* Line Chart */
.line-path { fill: none; stroke: var(--c1); stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; }
.line-area { fill: var(--c1); opacity: .12; }
.line-dot { fill: var(--c1); stroke: var(--bg); stroke-width: 4; }
