/* ===================================================================
   Book 2 — Sharp Minds · Page-specific layout
   =================================================================== */

/* ---------- P1 Cover (typography-led) ---------- */
.b2-cover { padding: 0.6in 0.6in 0.5in; background: var(--paper); }
.b2-cover-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  height: 100%;
}
.b2-cover-left {
  display: flex;
  flex-direction: column;
}
.cover-brand-row { display: flex; gap: 10px; align-items: center; margin-bottom: 8px; }
.cover-brand-mark {
  width: 40px; height: 40px;
  background: var(--ink); color: var(--paper);
  display: grid; place-items: center;
  font-family: var(--font-body);
  font-weight: 800; font-size: 13pt; 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);
}
.b2-cover-kicker {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 10pt;
  letter-spacing: 0.2em;
  color: var(--p-media);
  margin-top: 28px;
  margin-bottom: 14px;
}
.b2-cover-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 80pt;
  line-height: 0.9;
  letter-spacing: -0.025em;
  margin: 0;
  color: var(--ink);
}
.b2-cover-sub {
  margin-top: 28px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 14pt;
  color: var(--ink-soft);
  max-width: 100%;
  line-height: 1.4;
}
.b2-cover-stamp {
  margin-top: auto;
  align-self: flex-start;
  font-family: var(--font-body);
  font-weight: 800;
  letter-spacing: 0.2em;
  font-size: 11pt;
  color: var(--paper);
  background: var(--p-media);
  padding: 8px 16px;
  border-radius: 3px;
  transform: rotate(-2deg);
}

.b2-cover-right {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background:
    radial-gradient(ellipse at bottom, color-mix(in srgb, var(--p-media) 16%, var(--paper)) 0%, var(--paper) 75%);
  border-radius: 12px;
  border: 2px solid var(--ink);
  box-shadow: 6px 6px 0 0 var(--ink);
  padding: 24px;
  overflow: hidden;
}
.b2-cover-beep { display: flex; align-items: flex-end; height: 100%; }
.b2-cover-beep img { height: 7.0in; width: auto; }
.b2-cover-speech {
  position: absolute;
  top: 24px;
  right: 18px;
  background: var(--paper);
  border: 2.5px solid var(--ink);
  color: var(--ink);
  padding: 14px 22px 16px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 32pt;
  line-height: 1;
  border-radius: 0 12px 12px 12px;
  transform: rotate(3deg);
  text-align: center;
}
.b2-cover-speech span {
  display: block;
  font-family: var(--font-body);
  font-style: italic;
  font-weight: 500;
  font-size: 9pt;
  color: var(--ink-mute);
  letter-spacing: 0.05em;
  margin-top: 2px;
}

/* ---------- P2 Intro (shares book1.css structure) ---------- */
.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 Who Made Beep ---------- */
.p3-hero-full {
  margin: 12px 0 14px;
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 8px;
  padding: 8px;
  height: 3.5in;
  display: grid; place-items: center;
}
.p3-hero-full img {
  height: 100%;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}
.p3-questions {
  background: color-mix(in srgb, var(--p-media) 8%, var(--paper));
  border: 2px solid var(--p-media);
  border-radius: 10px;
  padding: 14px 18px 16px;
}
.qbox-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.qbox-eyebrow {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 11pt;
  letter-spacing: 0.18em;
  color: var(--p-media);
}
.qbox-mark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 24pt;
  color: var(--p-media);
  line-height: 1;
}
.qbox-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 14px;
}
.qbox {
  background: var(--paper);
  border: 1.5px solid var(--p-media);
  border-radius: 6px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.qbox-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 28pt;
  color: var(--p-media);
  line-height: 1;
}
.qbox-text {
  font-family: var(--font-display);
  font-size: 10.5pt;
  line-height: 1.35;
  color: var(--ink);
}

/* ---------- P4 Person, Pet, Program ---------- */
.p4-quotes {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 14px 0 8px;
}
.quote-row {
  display: grid;
  grid-template-columns: 1fr 1.5in 2.0in;
  gap: 14px;
  align-items: center;
  padding: 10px 14px;
  background: var(--paper);
  border: 1.5px solid var(--ink);
  border-radius: 6px;
}
.quote-text {
  font-family: var(--font-display);
  font-size: 12pt;
  line-height: 1.35;
  color: var(--ink);
}
.quote-options { display: flex; gap: 6px; flex-wrap: wrap; }
.opt {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 9pt;
  letter-spacing: 0.04em;
  border: 1.5px solid var(--ink-faint);
  padding: 4px 8px;
  border-radius: 999px;
  color: var(--ink-mute);
}
.opt--mark {
  border: 2px solid var(--p-media);
  color: var(--p-media);
}
.quote-clue { display: flex; align-items: center; gap: 6px; }
.clue-label {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 9pt;
  letter-spacing: 0.1em;
  color: var(--ink-mute);
  text-transform: uppercase;
}
.quote-clue .writeline { flex: 1; height: 22px; }

/* ---------- P5 Comic 2×2 ---------- */
.p5-comic {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 12px;
  margin: 14px 0 6px;
  flex: 1 1 auto;
  min-height: 4.4in;
}
.comic-panel {
  position: relative;
  border: 2.5px solid var(--ink);
  border-radius: 4px;
  padding: 10px 12px 12px;
  background: var(--paper);
  display: flex;
  flex-direction: column;
}
.panel-num {
  position: absolute;
  top: -10px; left: 10px;
  background: var(--p-empathy);
  color: var(--paper);
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 11pt;
  width: 22px; height: 22px;
  border-radius: 999px;
  display: grid; place-items: center;
  letter-spacing: 0;
  border: 2px solid var(--ink);
}
.comic-setup {
  font-family: var(--font-display);
  font-size: 11.5pt;
  line-height: 1.3;
  color: var(--ink);
  margin: 6px 6px 8px;
}
.comic-bottom {
  margin-top: auto;
  display: grid;
  grid-template-columns: 1fr 1.3in;
  gap: 8px;
  align-items: end;
}
.comic-beep {
  display: flex; align-items: flex-end;
  height: 1.4in;
}
.comic-beep img {
  height: 1.4in;
  width: auto;
  max-width: 100%;
}
.comic-yes {
  background: var(--p-empathy);
  color: var(--paper);
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 22pt;
  text-align: center;
  padding: 8px 10px;
  border-radius: 4px;
  border: 2px solid var(--ink);
  transform: rotate(-3deg);
  line-height: 1;
}
.comic-yes span {
  display: block;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 10pt;
  letter-spacing: 0;
  margin-top: 2px;
}
.comic-panel--write {
  background: color-mix(in srgb, var(--p-empathy) 8%, var(--paper));
  border-style: dashed;
}
.comic-panel--write .writeline { margin: 8px 4px; height: 26px; }

/* ---------- P6 Capability table ---------- */
.p6-table {
  margin: 12px 0 8px;
  display: flex;
  flex-direction: column;
}
.p6-tr {
  display: grid;
  grid-template-columns: 2.4in 1fr 1fr 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--ink-faint);
}
.p6-tr.p6-th {
  background: color-mix(in srgb, var(--p-empathy) 14%, var(--paper));
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
}
.p6-tr:last-child { border-bottom: 1.5px solid var(--ink); }
.p6-td {
  padding: 12px 10px;
  font-family: var(--font-body);
  font-size: 10pt;
  color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  border-right: 1px solid var(--ink-faint);
}
.p6-td:last-child { border-right: none; }
.p6-td--label {
  justify-content: flex-start;
  font-family: var(--font-display);
  font-size: 11.5pt;
  font-weight: 500;
  color: var(--ink);
  background: color-mix(in srgb, var(--p-empathy) 4%, var(--paper));
}
.p6-tr.p6-th .p6-td--label {
  font-family: var(--font-body);
  font-weight: 800;
  letter-spacing: 0.14em;
  font-size: 10pt;
  color: var(--p-empathy);
  text-transform: uppercase;
}
.p6-td--option {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 9.5pt;
  letter-spacing: 0.06em;
  color: var(--p-empathy);
}
.tick {
  width: 22px; height: 22px;
  border: 2px solid var(--ink);
  border-radius: 4px;
  display: inline-block;
}

/* ---------- P7 Spot the silly answer ---------- */
.p7-stage {
  display: grid;
  grid-template-columns: 2.4in 1fr;
  gap: 22px;
  margin: 14px 0 8px;
  align-items: start;
  flex: 1 1 auto;
}
.p7-parrot { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.p7-parrot-art { display: flex; align-items: flex-end; }
.p7-parrot-art img { height: 2.6in; width: auto; }
.p7-parrot-caption {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 11pt;
  color: var(--p-digital);
  text-align: center;
  background: color-mix(in srgb, var(--p-digital) 10%, var(--paper));
  border: 1.5px solid var(--p-digital);
  border-radius: 8px;
  padding: 8px 10px;
}
.p7-facts {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.fact {
  font-family: var(--font-display);
  font-size: 12.5pt;
  line-height: 1.3;
  padding: 12px 16px;
  background: var(--paper);
  border: 1.5px solid var(--ink-faint);
  border-radius: 999px;
}

/* ---------- P8 Stop. Check. Ask. ---------- */
.p8-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
  margin: 14px 0;
}
.p8-btn {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 22pt;
  letter-spacing: 0.08em;
  padding: 14px 12px;
  border: 2.5px solid var(--ink);
  border-radius: 6px;
  text-align: center;
  color: var(--paper);
  box-shadow: 4px 4px 0 0 var(--ink);
  line-height: 1;
}
.p8-btn span {
  display: block;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 10pt;
  letter-spacing: 0;
  margin-top: 6px;
  color: var(--paper);
  opacity: 0.95;
}
.p8-btn--stop  { background: var(--p-digital); }
.p8-btn--check { background: var(--p-civic); }
.p8-btn--ask   { background: var(--p-empathy); }

.p8-sorting {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
  margin: 6px 0 12px;
}
.p8-sort-col { display: flex; flex-direction: column; }
.p8-sort-head {
  font-family: var(--font-body);
  font-weight: 800;
  letter-spacing: 0.14em;
  font-size: 10pt;
  text-align: center;
  padding: 8px;
  border: 2px solid var(--ink);
  border-bottom: none;
  border-radius: 6px 6px 0 0;
}
.p8-sort-head--true  { background: color-mix(in srgb, var(--p-empathy) 25%, var(--paper)); color: var(--p-empathy); }
.p8-sort-head--maybe { background: color-mix(in srgb, var(--p-civic)   25%, var(--paper)); color: #8C6A1F; }
.p8-sort-head--nope  { background: color-mix(in srgb, var(--p-community) 25%, var(--paper)); color: var(--p-community); }
.p8-sort-box {
  border: 2px solid var(--ink);
  border-radius: 0 0 6px 6px;
  height: 0.9in;
  background: var(--paper);
}

.p8-pool {
  margin-top: 4px;
}
.p8-pool-label {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 9.5pt;
  letter-spacing: 0.1em;
  color: var(--ink-mute);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.p8-pool-items {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.pool-item {
  font-family: var(--font-display);
  font-size: 10.5pt;
  padding: 6px 12px;
  background: var(--paper);
  border: 1.5px dashed var(--ink-faint);
  border-radius: 4px;
  color: var(--ink);
}

/* ---------- P9 Radial network ---------- */
.p9-radial {
  position: relative;
  margin: 14px 0 6px;
  height: 4.2in;
}
.p9-center {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  display: flex; flex-direction: column; align-items: center;
  z-index: 2;
}
.p9-me {
  background: color-mix(in srgb, var(--p-community) 14%, var(--paper));
  border: 2.5px solid var(--ink);
  border-radius: 999px;
  width: 1.5in; height: 1.5in;
  display: grid; place-items: center;
  overflow: hidden;
}
.p9-me img { height: 1.5in; width: auto; }
.p9-me-label {
  margin-top: 6px;
  font-family: var(--font-body);
  font-weight: 800;
  letter-spacing: 0.2em;
  font-size: 11pt;
  color: var(--p-community);
}
.p9-spoke {
  position: absolute;
  width: 1.9in;
  background: var(--paper);
  border: 1.5px solid var(--p-community);
  border-radius: 6px;
  padding: 8px 12px;
  z-index: 2;
}
.p9-spoke .spoke-title {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 10pt;
  color: var(--p-community);
  margin-bottom: 4px;
  letter-spacing: 0.04em;
}
.p9-spoke .writeline { height: 22px; }
.p9-spoke--tl { left: 0.0in; top: 0.0in; }
.p9-spoke--tr { right: 0.0in; top: 0.0in; }
.p9-spoke--ml { left: 0.0in; top: 1.65in; }
.p9-spoke--mr { right: 0.0in; top: 1.65in; }
.p9-spoke--bl { left: 0.0in; bottom: 0.0in; }
.p9-spoke--br { right: 0.0in; bottom: 0.0in; }
.p9-lines {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  z-index: 1;
  pointer-events: none;
}

/* ---------- P10 Listening detective ---------- */
.p10-grid { margin: 14px 0 6px; display: grid; place-items: center; }
.p10-grid img {
  height: 4.0in;
  width: auto;
  max-width: 100%;
}
.p10-labels {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 9.5pt;
  text-align: center;
  color: var(--p-digital);
  letter-spacing: 0.04em;
  margin-top: -4px;
  margin-bottom: 6px;
}

/* ---------- P11 House + 3 bars ---------- */
.p11-stage {
  display: grid;
  grid-template-columns: 3.0in 1fr;
  gap: 24px;
  margin: 14px 0 8px;
  align-items: end;
  flex: 1 1 auto;
}
.p11-house { display: flex; align-items: flex-end; justify-content: center; }
.p11-house img { height: 3.0in; width: auto; }
.p11-bars {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.p11-bar {
  background: color-mix(in srgb, var(--p-digital) 12%, var(--paper));
  border: 2px solid var(--p-digital);
  border-radius: 999px;
  padding: 12px 22px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.p11-bar .bar-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22pt;
  color: var(--p-digital);
  line-height: 1;
  width: 28px;
}
.p11-bar .bar-text {
  font-family: var(--font-display);
  font-size: 15pt;
  font-weight: 500;
  color: var(--ink);
}

/* ---------- P12 Image triage cards ---------- */
.p12-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 12px 0 8px;
}
.trd-card {
  background: var(--paper);
  border: 2px solid var(--ink-faint);
  border-radius: 6px;
  padding: 12px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}
.trd-cap {
  font-family: var(--font-display);
  font-size: 11.5pt;
  line-height: 1.3;
}
.trd-opts { display: flex; gap: 6px; flex-shrink: 0; }
.trd-opt {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 11pt;
  width: 28px; height: 28px;
  border: 2px solid var(--ink-faint);
  border-radius: 999px;
  display: grid; place-items: center;
  color: var(--ink-mute);
}
.trd-opt--mark {
  border-color: var(--p-media);
  color: var(--p-media);
  background: color-mix(in srgb, var(--p-media) 10%, var(--paper));
}

/* ---------- P13 Reward (shared with book1) ---------- */
.p13-stage { margin: 12px 0 6px; display: grid; place-items: center; flex: 1 1 auto; }
.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 (reuses book1 cert styles via class) ---------- */
.certificate-page {
  background: var(--paper);
  padding: 0.6in;
}
.certificate-page .cert-frame {
  flex: 1 1 auto;
  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%);
}
.certificate-page .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;
  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;
}
