/* ===================================================================
   Book 1 — Tiny Thinkers · Page-specific layout
   =================================================================== */

/* ---------- P1 Cover ---------- */
.cover { padding: 0; }
.cover-art { filter: saturate(1.02); }
/* Cream top + bottom bands for legibility */
.cover-overlay {
  background:
    linear-gradient(180deg, rgba(255,248,240,0.96) 0%, rgba(255,248,240,0.4) 26%, rgba(255,248,240,0) 38%,
                            rgba(255,248,240,0) 60%, rgba(255,248,240,0.5) 74%, rgba(255,248,240,0.97) 100%);
}
.cover-head {
  display: flex; justify-content: space-between; align-items: flex-start;
  font-family: var(--font-body);
}
.cover-brand { display: flex; gap: 10px; align-items: center; }
.cover-brand-mark {
  width: 42px; height: 42px;
  background: var(--ink); color: var(--paper);
  display: grid; place-items: center;
  font-family: var(--font-body);
  font-weight: 800; font-size: 14pt; letter-spacing: 0.06em;
  border-radius: 2px;
}
.cover-brand-name {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 11pt;
  letter-spacing: 0.24em;
  color: var(--ink);
}
.cover-tag {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 11pt;
  color: var(--ink-soft);
  max-width: 42%;
  text-align: right;
}
.cover-title-block {
  padding-bottom: 12px;
}
.cover-kicker {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 10pt;
  letter-spacing: 0.2em;
  color: var(--p-media);
  margin-bottom: 8px;
}
.cover-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 60pt;
  line-height: 0.96;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--ink);
  text-shadow: 0 1px 0 rgba(255,248,240,0.7);
}
.cover-sub {
  margin-top: 18px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 14pt;
  color: var(--ink);
  max-width: 70%;
}

/* ---------- P2 Intro ---------- */
.intro-page .page-title { font-size: 26pt; }
.intro-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 14px;
}
.intro-col h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14pt;
  margin: 16px 0 6px 0;
  color: var(--p-media);
}
.intro-col h3:first-child { margin-top: 0; }
.intro-col p, .intro-col ol {
  font-family: var(--font-body);
  font-size: 10pt;
  line-height: 1.5;
  margin: 0 0 8px 0;
}
.intro-col ol { padding-left: 18px; }
.intro-col ol li { margin-bottom: 4px; }
.intro-col em { font-family: var(--font-display); font-style: italic; }

/* ---------- P3 Meet Beep ---------- */
.p3-stage {
  display: grid;
  grid-template-columns: 1.5in 3.4in 1.5in;
  gap: 12px;
  align-items: center;
  justify-content: center;
  margin: 18px auto 12px;
  height: 4.2in;
}
.p3-hero { display: grid; place-items: end center; height: 100%; }
.p3-hero img { height: 4.0in; width: auto; }
.p3-callout {
  color: var(--p-media);
  display: flex;
  align-items: center;
}
.p3-callout--left { flex-direction: column; align-items: flex-end; text-align: right; }
.p3-callout--right { flex-direction: column; align-items: flex-start; text-align: left; }
.p3-callout .callout-text {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 12pt;
  line-height: 1.3;
  color: var(--p-media);
  max-width: 1.5in;
}
.p3-callout .callout-arrow {
  width: 1.4in;
  height: 32px;
  color: var(--p-media);
  margin-top: 6px;
}
.p3-callout--right .callout-arrow { margin-top: 0; margin-bottom: 6px; }
.p3-callout--right { padding-top: 30px; }
.p3-callout--left { padding-top: 30px; }

.p3-bottom-panel {
  background: color-mix(in srgb, var(--p-body) 12%, var(--paper));
  border: 1.5px solid color-mix(in srgb, var(--p-body) 40%, transparent);
  border-radius: 8px;
  padding: 14px 18px;
  margin-top: 6px;
}
.p3-bottom-panel .bp-eyebrow {
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: 0.12em;
  font-size: 9pt;
  text-transform: uppercase;
  color: var(--p-body);
  margin-bottom: 4px;
}
.p3-bottom-panel p {
  font-family: var(--font-display);
  font-size: 13pt;
  line-height: 1.4;
  margin: 0;
  color: var(--ink);
}

/* ---------- P4 Alive or Not Alive ---------- */
.p4-grid {
  display: grid; place-items: center;
  margin: 14px 0;
}
.p4-icons {
  height: 4.5in;
  width: auto;
  max-width: 100%;
}
.p4-legend {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 8px 0 0;
}
.legend-chip {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 12pt;
  letter-spacing: 0.1em;
  padding: 10px 14px;
  border-radius: 8px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.legend-chip span {
  font-weight: 500;
  letter-spacing: 0.02em;
  font-size: 9pt;
  font-family: var(--font-display);
  font-style: italic;
  color: var(--ink);
  text-transform: none;
}
.legend-chip--alive {
  background: color-mix(in srgb, var(--p-empathy) 14%, var(--paper));
  border: 1.5px solid var(--p-empathy);
  color: var(--p-empathy);
}
.legend-chip--not {
  background: color-mix(in srgb, var(--p-community) 14%, var(--paper));
  border: 1.5px solid var(--p-community);
  color: var(--p-community);
}

/* ---------- P5 Who has a real heart ---------- */
.p5-stage {
  display: grid;
  grid-template-columns: 1fr 1.1fr 1fr;
  gap: 18px;
  align-items: end;
  margin: 12px 0 8px;
  height: 4.5in;
}
.p5-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
}
.p5-col .col-label {
  width: 100%;
  margin-bottom: 8px;
}
.p5-col .col-art {
  flex: 1 1 auto;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.p5-col .col-art img {
  height: 3.0in;
  width: auto;
  max-width: 100%;
}
.p5-col .col-foot {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 9.5pt;
  color: var(--ink-mute);
  text-align: center;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid var(--ink-faint);
  width: 100%;
}

.p5-col--heart {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
}
.p5-col--heart .heart-art {
  display: grid; place-items: center;
  background: color-mix(in srgb, var(--p-body) 8%, var(--paper));
  border: 2px dashed color-mix(in srgb, var(--p-body) 55%, transparent);
  border-radius: 8px;
  padding: 8px;
  width: 100%;
  height: 2.6in;
}
.p5-col--heart .heart-art img { height: 2.2in; width: auto; }
.p5-col--heart .heart-caption {
  margin-top: 10px;
  font-family: var(--font-display);
  font-style: italic;
  color: var(--p-body);
  font-size: 11pt;
  text-align: center;
}

/* ---------- P6 Listening helper ---------- */
.p6-stage {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 22px;
  margin: 14px 0 6px;
  height: 4.4in;
  align-items: center;
}
.p6-hero { display: grid; place-items: center; }
.p6-hero img { height: 3.4in; width: auto; }

.p6-panels { display: flex; flex-direction: column; gap: 14px; }
.p6-panel {
  border-radius: 10px;
  padding: 14px 18px;
}
.p6-panel--can {
  background: color-mix(in srgb, var(--p-empathy) 10%, var(--paper));
  border: 1.5px solid var(--p-empathy);
}
.p6-panel--cant {
  background: color-mix(in srgb, var(--p-digital) 10%, var(--paper));
  border: 1.5px solid var(--p-digital);
}
.p6-panel-head {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 12pt;
  letter-spacing: 0.14em;
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 6px;
}
.p6-panel--can .p6-panel-head { color: var(--p-empathy); }
.p6-panel--cant .p6-panel-head { color: var(--p-digital); }
.p6-panel-head .dot {
  width: 12px; height: 12px; border-radius: 999px;
  background: currentColor;
}
.p6-panel ul {
  list-style: none;
  padding: 0; margin: 0;
  font-family: var(--font-display);
  font-size: 12.5pt;
  color: var(--ink);
}
.p6-panel ul li {
  padding: 4px 0;
  border-top: 1px solid color-mix(in srgb, currentColor 20%, transparent);
}
.p6-panel ul li:first-child { border-top: none; }

/* ---------- P7 Real / Pretend ---------- */
.p7-stage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 12px 0;
  height: 4.0in;
}
.p7-card {
  display: flex;
  flex-direction: column;
  border-radius: 10px;
  padding: 12px 14px 14px;
}
.p7-card--real {
  background: color-mix(in srgb, var(--p-empathy) 10%, var(--paper));
  border: 2px solid var(--p-empathy);
}
.p7-card--pretend {
  background: color-mix(in srgb, var(--p-community) 10%, var(--paper));
  border: 2px solid var(--p-community);
}
.p7-card-label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16pt;
  text-align: center;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}
.p7-card-label em { font-style: italic; font-weight: 500; }
.p7-card-art {
  flex: 1;
  display: grid; place-items: center;
  overflow: hidden;
}
.p7-card-art img {
  height: 2.5in;
  width: auto;
  max-width: 100%;
}
.p7-card-tag {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 9.5pt;
  color: var(--ink-mute);
  text-align: center;
  margin-top: 8px;
}

.p7-bubble-wrap {
  display: grid;
  place-items: center;
  margin: 2px 0 6px;
}

/* ---------- P8 Three reactors ---------- */
.p8-stage {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  margin: 14px 0 6px;
  height: 4.2in;
  position: relative;
}
.p8-stage::before {
  /* shared floor line */
  content: "";
  position: absolute;
  left: 8px; right: 8px;
  bottom: 42px;
  height: 0;
  border-bottom: 1.5px solid var(--ink-faint);
  z-index: 0;
}
.p8-actor {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding-bottom: 40px;
  gap: 10px;
  position: relative;
}
.p8-figure { display: flex; align-items: flex-end; height: 2.2in; }
.p8-figure img { height: 2.0in; width: auto; }
.p8-name {
  position: absolute;
  bottom: 12px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 10pt;
  text-align: center;
  color: var(--ink);
  letter-spacing: 0.02em;
}
.p8-name span {
  display: block;
  font-weight: 400;
  font-style: italic;
  font-family: var(--font-display);
  color: var(--ink-mute);
  font-size: 9pt;
}

.speech {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 11.5pt;
  padding: 8px 12px;
  border-radius: 14px;
  position: relative;
  max-width: 95%;
  text-align: center;
  line-height: 1.25;
}
.speech::after {
  content: "";
  position: absolute;
  left: 50%; transform: translateX(-50%);
  bottom: -8px;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 10px solid currentColor;
}
.speech--neutral {
  background: color-mix(in srgb, var(--p-community) 14%, var(--paper));
  color: var(--p-community);
  border: 1.5px solid var(--p-community);
}
.speech--alarm {
  background: color-mix(in srgb, var(--p-digital) 12%, var(--paper));
  color: var(--p-digital);
  border: 1.5px solid var(--p-digital);
}
.speech--sage {
  background: color-mix(in srgb, var(--p-empathy) 14%, var(--paper));
  color: var(--p-empathy);
  border: 1.5px solid var(--p-empathy);
}

/* ---------- P9 Three people ---------- */
.p9-stage {
  margin: 14px 0 6px;
  display: grid; place-items: center;
}
.p9-canvas {
  width: 100%;
  background: color-mix(in srgb, var(--p-community) 6%, var(--paper));
  border: 2px solid var(--p-community);
  border-radius: 12px;
  padding: 22px 22px 24px;
}
.p9-eyebrow {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 16pt;
  color: var(--p-community);
  margin-bottom: 16px;
}
.p9-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 22px;
}
.p9-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}
.p9-portrait {
  width: 100%;
  aspect-ratio: 1;
  border: 2px dashed var(--ink-faint);
  border-radius: 10px;
  background: var(--paper);
  display: grid; place-items: center;
}
.p9-portrait span {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ink-faint);
  font-size: 56pt;
}
.p9-namebox { width: 100%; }
.p9-name-label {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 9pt;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--p-community);
  margin-bottom: 2px;
}
.p9-foot {
  margin-top: 18px;
  font-family: var(--font-display);
  font-style: italic;
  color: var(--ink-mute);
  text-align: center;
  font-size: 11pt;
}

/* ---------- P10 Secrets ---------- */
.p10-stage {
  display: grid;
  grid-template-columns: 1.6in 1fr;
  gap: 22px;
  margin: 16px 0 6px;
  height: 4.3in;
}
.p10-me {
  display: flex; flex-direction: column; align-items: center;
  justify-content: flex-end;
  padding-bottom: 18px;
}
.p10-label {
  font-family: var(--font-body);
  font-weight: 800;
  letter-spacing: 0.16em;
  font-size: 11pt;
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 8px;
}
.p10-label--me {
  background: color-mix(in srgb, var(--p-body) 15%, var(--paper));
  color: var(--p-body);
  border: 1.5px solid var(--p-body);
}
.p10-me .p10-figure img { height: 2.4in; width: auto; }

.p10-paths {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 8px;
  position: relative;
}
.p10-path { display: grid; grid-template-columns: 1.5fr 1fr; align-items: center; gap: 8px; }
.p10-path .path-arrow { width: 100%; height: 80px; }

.p10-dest { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.p10-dest-label {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 11pt;
  color: var(--ink);
  font-weight: 600;
}
.p10-dest--good .p10-dest-label { color: var(--p-empathy); }
.p10-dest--bad .p10-dest-label { color: var(--p-community); }
.p10-dest--good img { height: 1.6in; width: auto; }

.p10-dest-figure {
  position: relative;
  display: inline-block;
}
.p10-dest-figure img { height: 1.4in; width: auto; display: block; }
.p10-dest-figure .big-x {
  position: absolute;
  inset: 5%;
  width: 90%; height: 90%;
  z-index: 2;
}

/* ---------- P11 Code word ---------- */
.p11-stage {
  display: grid;
  grid-template-columns: 1fr 2.6in;
  gap: 18px;
  margin: 14px 0 6px;
}
.p11-card {
  position: relative;
  background: color-mix(in srgb, var(--p-body) 10%, var(--paper));
  border: 2px solid var(--p-body);
  border-radius: 12px;
  padding: 26px 30px 26px;
  overflow: hidden;
}
.p11-sparkle {
  position: absolute;
  width: 1.0in; height: 1.0in;
  mix-blend-mode: multiply;
  opacity: 0.85;
}
.p11-sparkle--left { left: 8px; top: 8px; }
.p11-sparkle--right { right: 8px; bottom: 8px; transform: rotate(180deg); }

.p11-prelude {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18pt;
  color: var(--ink);
  margin-bottom: 28px;
}
.p11-blank { margin: 20px 6px 18px; }
.p11-foot {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 10pt;
  color: var(--ink-mute);
  text-align: center;
  margin-top: 14px;
}

.p11-tip {
  background: color-mix(in srgb, var(--p-civic) 18%, var(--paper));
  border: 2px solid var(--p-civic);
  border-radius: 10px;
  padding: 14px 16px;
}
.p11-tip-head {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 10pt;
  letter-spacing: 0.16em;
  color: #8C6A1F;
  margin-bottom: 8px;
}
.p11-tip ul {
  list-style: none;
  margin: 0; padding: 0;
  font-family: var(--font-display);
  font-size: 11pt;
  line-height: 1.5;
  color: var(--ink);
}
.p11-tip ul li::before { content: "· "; color: var(--p-civic); font-weight: 700; }

/* ---------- P12 Why Though ---------- */
.p12-stage {
  display: grid;
  grid-template-columns: 2.4in 1fr;
  gap: 24px;
  margin: 14px 0 6px;
  height: 4.3in;
  align-items: end;
}
.p12-kamsi {
  display: flex; align-items: flex-end; justify-content: center;
  height: 100%;
}
.p12-kamsi img { height: 4.2in; width: auto; }

.p12-right {
  display: flex; flex-direction: column; gap: 22px;
  height: 100%;
  justify-content: center;
  padding-bottom: 12px;
}
.p12-book {
  display: flex; flex-direction: column; align-items: center;
}
.p12-book-tag {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 10pt;
  letter-spacing: 0.16em;
  color: var(--p-media);
  margin-bottom: 6px;
}
.p12-book-card {
  width: 100%;
  background: color-mix(in srgb, var(--p-media) 8%, var(--paper));
  border: 2px solid var(--p-media);
  border-radius: 8px;
  padding: 14px 18px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: center;
}
.p12-q {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 56pt;
  color: var(--p-media);
  line-height: 1;
}
.p12-book-lines { display: flex; flex-direction: column; gap: 10px; }

/* ---------- P13 Reward ---------- */
.p13-stage {
  margin: 12px 0 6px;
  display: grid; place-items: center;
}
.p13-frame {
  width: 100%;
  background: color-mix(in srgb, var(--p-civic) 8%, var(--paper));
  border: 3px solid var(--p-civic);
  border-radius: 12px;
  padding: 16px;
}
.p13-frame img {
  width: 100%;
  height: 4.0in;
  object-fit: contain;
  display: block;
}

/* ---------- P14 Certificate ---------- */
.certificate-page {
  background: var(--paper);
  padding: 0.6in;
}
.certificate-page .cert-frame { flex: 1 1 auto; }
.cert-frame {
  position: relative;
  width: 100%;
  height: 100%;
  border: 3px solid var(--p-civic);
  border-radius: 6px;
  padding: 0.7in 0.7in 0.5in;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background:
    radial-gradient(ellipse at top, color-mix(in srgb, var(--p-civic) 10%, var(--paper)) 0%, var(--paper) 60%);
}
.cert-frame::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1.5px solid var(--p-civic);
  border-radius: 4px;
  pointer-events: none;
}
.cert-corner {
  position: absolute;
  width: 28px; height: 28px;
  border: 3px solid var(--p-civic);
}
.cert-corner--tl { top: 18px; left: 18px; border-right: none; border-bottom: none; }
.cert-corner--tr { top: 18px; right: 18px; border-left: none; border-bottom: none; }
.cert-corner--bl { bottom: 18px; left: 18px; border-right: none; border-top: none; }
.cert-corner--br { bottom: 18px; right: 18px; border-left: none; border-top: none; }

.cert-badge { margin-top: 12px; }
.cert-eyebrow {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 10pt;
  letter-spacing: 0.24em;
  color: var(--p-civic);
  margin-top: 16px;
}
.cert-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 48pt;
  line-height: 1.0;
  letter-spacing: -0.01em;
  margin: 10px 0 0 0;
  color: var(--ink);
}
.cert-rule {
  width: 80px; height: 4px;
  background: var(--p-civic);
  margin: 18px 0;
  border-radius: 2px;
}
.cert-statement {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 18pt;
  color: var(--ink);
  margin-bottom: 26px;
}
.cert-nameblock { width: 70%; margin: 0 auto; }
.cert-nameline { height: 36px; }
.cert-namelabel {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 9pt;
  letter-spacing: 0.12em;
  color: var(--ink-mute);
  margin-top: 4px;
  text-transform: uppercase;
}

.cert-bottom-strip {
  margin-top: auto;
  width: 100%;
  position: relative;
  padding-top: 24px;
}
.cert-floor {
  position: absolute;
  left: 5%; right: 5%;
  bottom: 36px;
  height: 0;
  border-bottom: 2px solid var(--p-civic);
}
.cert-cheerers {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
  align-items: end;
  justify-items: center;
}
.cert-cheerer { display: flex; align-items: flex-end; }
.cert-cheerer img {
  height: 1.0in;
  width: auto;
  mix-blend-mode: multiply;
}

.cert-foot {
  width: 100%;
  display: flex;
  justify-content: space-between;
  margin-top: 22px;
  font-family: var(--font-body);
  font-size: 10pt;
  color: var(--ink-soft);
}
.writeline-inline {
  display: inline-block;
  width: 2.4in;
  border-bottom: 1.5px solid var(--ink-faint);
  height: 18px;
  vertical-align: bottom;
}
