/* Prima Porta lesson — slide-specific styles, layered over Classicalia tokens */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Lora:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500;1,600;1,700&display=swap');

:root {
  /* Brand */
  --brand-navy: #0d1433;
  --brand-navy-darker: #080c1f;
  --brand-navy-lighter: #1a1f3c;
  --brand-blue: #1a6fff;
  --brand-blue-light: #5e9fff;
  --accent-classciv: #e05555;
  --accent-gold: #f5c842;
  --accent-greek: #5ecb8a;
  --semantic-danger: #ff6b6b;

  --fg-1: rgba(255,255,255,0.92);
  --fg-2: rgba(255,255,255,0.75);
  --fg-3: rgba(255,255,255,0.45);
  --fg-4: rgba(255,255,255,0.28);
  --fg-5: rgba(255,255,255,0.18);

  --hairline: rgba(255,255,255,0.08);
  --hairline-strong: rgba(255,255,255,0.16);

  --font-display: 'Lora', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Slide-frame defaults */
deck-stage section {
  background:
    radial-gradient(ellipse at 20% 0%, rgba(26,111,255,0.06), transparent 55%),
    linear-gradient(155deg, #080c1f 0%, #0d1433 50%, #090d22 100%);
  color: var(--fg-1);
  font-family: var(--font-body);
  padding: 80px 100px 100px 100px;
  box-sizing: border-box;
  overflow: hidden;
  position: relative;
}

/* Stars background — subtle constellation feel, no heavy canvas */
deck-stage section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1.5px 1.5px at 12% 18%, rgba(255,255,255,0.55), transparent 50%),
    radial-gradient(1px 1px at 22% 72%, rgba(255,255,255,0.4), transparent 50%),
    radial-gradient(1.2px 1.2px at 38% 12%, rgba(255,255,255,0.5), transparent 50%),
    radial-gradient(1px 1px at 55% 88%, rgba(255,255,255,0.35), transparent 50%),
    radial-gradient(1.4px 1.4px at 72% 22%, rgba(255,255,255,0.5), transparent 50%),
    radial-gradient(1px 1px at 84% 64%, rgba(255,255,255,0.4), transparent 50%),
    radial-gradient(1.2px 1.2px at 92% 8%, rgba(255,255,255,0.45), transparent 50%),
    radial-gradient(1px 1px at 6% 54%, rgba(255,255,255,0.3), transparent 50%),
    radial-gradient(1.1px 1.1px at 48% 36%, rgba(255,255,255,0.35), transparent 50%),
    radial-gradient(1px 1px at 67% 50%, rgba(255,255,255,0.3), transparent 50%);
  pointer-events: none;
  opacity: 0.7;
}

/* === Typography === */

.eyebrow {
  font-family: var(--font-body);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand-blue-light);
  display: flex;
  align-items: center;
  gap: 16px;
}
.eyebrow::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--hairline-strong);
  max-width: 320px;
}

.slide-title {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
  font-size: 60px;
  letter-spacing: -0.02em;
  line-height: 1.08;
  color: var(--fg-1);
  margin: 22px 0 0 0;
  text-wrap: balance;
}

.slide-subtitle {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 32px;
  color: var(--fg-2);
  letter-spacing: -0.01em;
  line-height: 1.25;
  margin-top: 20px;
  text-wrap: pretty;
}

.body {
  font-family: var(--font-body);
  font-size: 26px;
  font-weight: 400;
  color: var(--fg-2);
  line-height: 1.5;
  text-wrap: pretty;
}

.body-sm {
  font-family: var(--font-body);
  font-size: 26px;
  color: var(--fg-2);
  line-height: 1.5;
}

.callout {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: 32px;
  color: var(--fg-1);
  line-height: 1.3;
}

/* === Reusable layouts === */

.frame {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: stretch;
  flex: 1;
  min-height: 0;
}

.two-col-narrow-wide {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 80px;
  align-items: stretch;
  flex: 1;
  min-height: 0;
}

.two-col-wide-narrow {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 80px;
  align-items: stretch;
  flex: 1;
  min-height: 0;
}

/* Card surface */
.card {
  background: rgba(255,255,255,0.035);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  padding: 32px 36px;
}

.card-strong {
  background: rgba(26,111,255,0.10);
  border: 1px solid rgba(26,111,255,0.35);
  border-radius: 14px;
  padding: 32px 36px;
}

/* Stat number */
.stat-num {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
  color: var(--brand-blue-light);
  font-size: 96px;
  line-height: 1;
  letter-spacing: -0.03em;
}

/* Lesson aim chip */
.aim-row {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 28px;
  align-items: start;
  padding: 22px 0;
  border-bottom: 1px solid var(--hairline);
}
.aim-row:last-child { border-bottom: none; }
.aim-row > div:last-child {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}
.aim-num {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
  font-size: 50px;
  color: var(--brand-blue);
  line-height: 1;
}
.aim-label {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: 30px;
  color: var(--fg-1);
  line-height: 1.25;
  display: block;
}
.aim-desc {
  font-family: var(--font-body);
  font-size: 24px;
  color: var(--fg-3);
  line-height: 1.45;
  display: block;
}

/* Image frames */
.statue-frame {
  background: rgba(0,0,0,0.35);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.statue-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.statue-frame.cover img { object-fit: cover; }

/* Pill / tag */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 0.02em;
  background: rgba(26,111,255,0.14);
  color: var(--brand-blue-light);
  border: 1px solid rgba(26,111,255,0.3);
}
.pill.gold {
  background: rgba(245,200,66,0.12);
  color: var(--accent-gold);
  border-color: rgba(245,200,66,0.3);
}
.pill.red {
  background: rgba(224,85,85,0.12);
  color: var(--accent-classciv);
  border-color: rgba(224,85,85,0.3);
}
.pill.green {
  background: rgba(94,203,138,0.12);
  color: var(--accent-greek);
  border-color: rgba(94,203,138,0.3);
}
.pill.ghost {
  background: rgba(255,255,255,0.05);
  color: var(--fg-2);
  border-color: var(--hairline-strong);
}

/* Footer brand */
.deck-footer {
  position: absolute;
  bottom: 36px;
  left: 100px;
  right: 100px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-body);
  font-size: 24px;
  color: var(--fg-5);
  letter-spacing: 0.04em;
  z-index: 2;
}
.deck-footer .wordmark {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
  color: var(--brand-blue);
  font-size: 26px;
  letter-spacing: -0.02em;
}

/* === Question / Answer reveal === */
.qa-block {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.q-label {
  font-family: var(--font-body);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-4);
}
.question {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: 28px;
  color: var(--fg-1);
  line-height: 1.3;
}
.answer {
  font-family: var(--font-body);
  font-size: 24px;
  color: var(--fg-2);
  line-height: 1.4;
  background: rgba(94,203,138,0.08);
  border: 1px dashed rgba(94,203,138,0.4);
  border-radius: 12px;
  padding: 14px 20px;
}
.answer .a-label {
  font-family: var(--font-body);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-greek);
  display: block;
  margin-bottom: 8px;
}
/* Hidden when showAnswers is off */
deck-stage.hide-answers .answer,
deck-stage.hide-answers .answer-only {
  display: none !important;
}
deck-stage.hide-answers .answer-placeholder {
  display: flex !important;
}
.answer-placeholder {
  display: none;
  align-items: center;
  gap: 14px;
  font-family: var(--font-body);
  font-size: 24px;
  color: var(--fg-4);
  font-style: italic;
  border: 1px dashed var(--hairline-strong);
  border-radius: 12px;
  padding: 14px 22px;
  background: rgba(255,255,255,0.02);
}

/* Hotspot diagram (breastplate) */
.hotspot-wrap {
  position: relative;
  aspect-ratio: 350 / 600;
  align-self: center;
  justify-self: center;
  height: 760px;
  width: auto;
}
.hotspot-wrap img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.hotspot {
  position: absolute;
  width: 56px;
  height: 56px;
  border-radius: 999px;
  background: rgba(26,111,255,0.95);
  border: 2px solid #fff;
  color: #fff;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
  font-size: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0,0,0,0.5), 0 0 0 6px rgba(26,111,255,0.18);
  transform: translate(-50%, -50%);
}
.hotspot.gold { background: var(--accent-gold); color: #0d1433; box-shadow: 0 4px 14px rgba(0,0,0,0.5), 0 0 0 6px rgba(245,200,66,0.2); }
.hotspot.red { background: var(--accent-classciv); box-shadow: 0 4px 14px rgba(0,0,0,0.5), 0 0 0 6px rgba(224,85,85,0.2); }
.hotspot.green { background: var(--accent-greek); color: #0d1433; box-shadow: 0 4px 14px rgba(0,0,0,0.5), 0 0 0 6px rgba(94,203,138,0.2); }

.legend {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.legend-row {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 22px;
  align-items: flex-start;
}
.legend-row .num {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: var(--brand-blue);
  color: #fff;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
  font-size: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 4px;
}
.legend-row .num.gold { background: var(--accent-gold); color: #0d1433; }
.legend-row .num.red { background: var(--accent-classciv); }
.legend-row .num.green { background: var(--accent-greek); color: #0d1433; }

.legend-row h4 {
  margin: 0;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: 30px;
  color: var(--fg-1);
}
.legend-row p {
  margin: 4px 0 0 0;
  font-family: var(--font-body);
  font-size: 24px;
  color: var(--fg-3);
  line-height: 1.45;
}

/* Aims-mapping table */
.map-table {
  width: 100%;
  display: grid;
  grid-template-columns: 0.9fr 1fr 1.4fr;
  border-top: 1px solid var(--hairline-strong);
}
.map-table > div {
  padding: 14px 24px;
  border-bottom: 1px solid var(--hairline);
}
.map-table .h {
  font-family: var(--font-body);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-4);
  background: rgba(255,255,255,0.02);
}
.map-table .feature {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: 26px;
  color: var(--fg-1);
}
.map-table .aim-cell {
  font-family: var(--font-body);
  font-size: 24px;
  color: var(--brand-blue-light);
  font-weight: 600;
}
.map-table .why {
  font-family: var(--font-body);
  font-size: 24px;
  color: var(--fg-2);
  line-height: 1.45;
}

/* Compare table */
.compare {
  display: grid;
  grid-template-columns: 0.7fr 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--hairline-strong);
}
.compare > div {
  padding: 22px 26px;
  border-bottom: 1px solid var(--hairline);
}
.compare .h {
  font-family: var(--font-body);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-4);
  background: rgba(255,255,255,0.02);
}
.compare .row-h {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: 24px;
  color: var(--fg-2);
}
.compare .cell {
  font-family: var(--font-body);
  font-size: 24px;
  color: var(--fg-1);
  line-height: 1.45;
}
.compare .greek {
  background: rgba(94,203,138,0.05);
}
.compare .roman {
  background: rgba(26,111,255,0.06);
}

/* Strength/weakness columns */
.sw-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.sw-col h3 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
  font-size: 38px;
  margin: 0 0 8px 0;
  display: flex;
  align-items: baseline;
  gap: 16px;
}
.sw-col.strengths h3 { color: var(--accent-greek); }
.sw-col.weaknesses h3 { color: var(--semantic-danger); }
.sw-col li {
  list-style: none;
  font-family: var(--font-body);
  font-size: 24px;
  color: var(--fg-2);
  line-height: 1.5;
  padding: 14px 16px;
  background: rgba(255,255,255,0.025);
  border-radius: 10px;
}
.sw-col ul { margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }

/* Quote slide */
.quote-block {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 56px;
  line-height: 1.25;
  color: var(--fg-1);
  letter-spacing: -0.01em;
  text-wrap: pretty;
}
.quote-attr {
  font-family: var(--font-body);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand-blue-light);
  margin-top: 32px;
}

/* Title slide variants */
.title-eyebrow {
  font-family: var(--font-body);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brand-blue-light);
}
.wordmark-big {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
  font-size: 200px;
  letter-spacing: -0.04em;
  color: var(--brand-blue);
  line-height: 0.95;
  text-wrap: balance;
}
.wordmark-sub {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 44px;
  color: var(--fg-2);
  letter-spacing: -0.01em;
  margin-top: 28px;
}

/* Section divider slide */
.section-num {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 36px;
  color: var(--brand-blue-light);
  letter-spacing: 0.05em;
}
.section-title {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
  font-size: 140px;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--fg-1);
  margin-top: 16px;
  text-wrap: balance;
}
.section-rule {
  width: 80px;
  height: 4px;
  background: var(--brand-blue);
  margin-top: 36px;
}

/* Bullet rows w/ Roman numerals */
.roman-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.roman-list li {
  list-style: none;
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 24px;
  align-items: baseline;
}
.roman-list li .num {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
  font-size: 38px;
  color: var(--brand-blue);
  letter-spacing: 0.04em;
}
.roman-list li .text {
  font-family: var(--font-body);
  font-size: 28px;
  color: var(--fg-2);
  line-height: 1.45;
}

/* Mini key-fact box */
.fact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.fact {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 22px 26px;
}
.fact .k {
  font-family: var(--font-body);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-4);
}
.fact .v { font-size: 26px; }
.fact .v {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: 28px;
  color: var(--fg-1);
  margin-top: 6px;
  line-height: 1.25;
}

/* Aim badges */
.aim-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.06em;
  background: rgba(26,111,255,0.18);
  color: var(--brand-blue-light);
  border: 1px solid rgba(26,111,255,0.35);
  white-space: nowrap;
}
.aim-badge.aim-1 { background: rgba(245,200,66,0.14); color: var(--accent-gold); border-color: rgba(245,200,66,0.35); }
.aim-badge.aim-2 { background: rgba(94,203,138,0.14); color: var(--accent-greek); border-color: rgba(94,203,138,0.35); }
.aim-badge.aim-3 { background: rgba(94,159,255,0.14); color: var(--brand-blue-light); border-color: rgba(94,159,255,0.35); }
.aim-badge.aim-4 { background: rgba(224,85,85,0.14); color: var(--accent-classciv); border-color: rgba(224,85,85,0.35); }

/* Discussion prompt cards */
.prompt {
  background: rgba(255,255,255,0.035);
  border: 1px solid var(--hairline-strong);
  border-radius: 14px;
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.prompt .marker {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
  font-size: 30px;
  color: var(--brand-blue-light);
}
.prompt p {
  margin: 0;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 30px;
  color: var(--fg-1);
  line-height: 1.3;
}

/* Greek vs Roman split */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  flex: 1;
  min-height: 0;
}
.split-side {
  padding: 40px 50px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.split-side.greek {
  background: linear-gradient(180deg, rgba(94,203,138,0.08), rgba(94,203,138,0.02));
  border-right: 1px solid var(--hairline-strong);
}
.split-side.roman {
  background: linear-gradient(180deg, rgba(26,111,255,0.10), rgba(26,111,255,0.02));
}
.split-side h2 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
  font-size: 52px;
  margin: 0;
  letter-spacing: -0.01em;
}
.split-side.greek h2 { color: var(--accent-greek); }
.split-side.roman h2 { color: var(--brand-blue-light); }
.split-side ul { margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.split-side li {
  list-style: none;
  font-family: var(--font-body);
  font-size: 24px;
  color: var(--fg-1);
  line-height: 1.45;
  padding-left: 24px;
  position: relative;
}
.split-side li::before {
  content: '·';
  position: absolute;
  left: 6px;
  top: -4px;
  font-size: 36px;
  color: var(--fg-4);
}

/* Print-friendly tweaks */
@media print {
  deck-stage section { background-image: none !important; background: #0d1433 !important; }
  deck-stage section::before { display: none !important; }
}
