/* ============================================================
   Design Playground - v3, editorial visual system.
   Fraunces display serif + Inter. Touch-first.
   ============================================================ */

:root {
  --bg: #f7f5f1;
  --ink: #21242d;
  --muted: #6d7180;
  --card: #ffffff;
  --line: #e5e2db;
  --accent: #4263eb;
  --accent-soft: #edf0fd;
  --good: #2f9e44;
  --good-soft: #e8f6ec;
  --bad: #d64545;
  --bad-soft: #fdeeee;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(24,26,32,.05), 0 10px 28px rgba(24,26,32,.06);
  --font-head: "Fraunces", Georgia, serif;
  --font-body: "Inter", system-ui, sans-serif;
}

/* lesson accents */
.lesson-contrast   { --accent: #e8590c; --accent-soft: #fdf0e8; }
.lesson-flow       { --accent: #1c7ed6; --accent-soft: #e9f2fb; }
.lesson-hierarchy  { --accent: #862e9c; --accent-soft: #f5ecf7; }
.lesson-alignment  { --accent: #e8890c; --accent-soft: #fdf4e7; }
.lesson-unity      { --accent: #2f9e44; --accent-soft: #eaf6ec; }
.lesson-proximity  { --accent: #d6336c; --accent-soft: #fbecf1; }
.lesson-whitespace { --accent: #099268; --accent-soft: #e6f5f0; }
.lesson-framing    { --accent: #5f3dc4; --accent-soft: #efecf9; }
.lesson-typography { --accent: #364fc7; --accent-soft: #ebeef9; }
.lesson-color      { --accent: #e64980; --accent-soft: #fdedf3; }
.lesson-emphasis   { --accent: #c92a2a; --accent-soft: #fbeaea; }
.lesson-detective  { --accent: #0b7285; --accent-soft: #e3f3f5; }

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { touch-action: manipulation; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  min-height: 100vh;
  line-height: 1.55;
  -webkit-tap-highlight-color: transparent;
  -webkit-font-smoothing: antialiased;
}

.container { max-width: 1080px; margin: 0 auto; padding: 20px 18px 60px; }

h1, h2, h3 { font-family: var(--font-head); margin: 0.2em 0; line-height: 1.15; font-weight: 600; }
h4 { margin: 0.2em 0; }

.site-footer { text-align: center; padding: 26px; font-size: 0.83rem; color: var(--muted); border-top: 1px solid var(--line); margin-top: 24px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.98rem;
  font-weight: 600;
  padding: 14px 24px;
  min-height: 52px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: transform .1s ease, box-shadow .15s ease;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: var(--shadow); }
.btn-ghost { background: var(--card); color: var(--ink); border: 1px solid var(--line); }

/* ============================================================
   HOME - editorial front page
   ============================================================ */
.hero { text-align: center; padding: 44px 8px 20px; border-bottom: 1px solid var(--line); }
.hero-kicker {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin: 0 0 6px;
}
.hero h1 { font-size: clamp(2.3rem, 7vw, 3.4rem); letter-spacing: -0.5px; }
.hero .hero-sub { font-size: 1.05rem; color: var(--muted); max-width: 470px; margin: 12px auto 0; }

.section-head {
  margin: 44px 2px 4px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}
.section-head h2 { font-size: 1.5rem; }
.section-head p { margin: 0; color: var(--muted); font-size: 0.88rem; }

.lesson-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(215px, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.lesson-card {
  position: relative;
  display: block;
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  padding: 18px;
  text-decoration: none;
  color: var(--ink);
  box-shadow: var(--shadow);
  transition: transform .12s ease, box-shadow .15s ease;
  border-top: 3px solid var(--card-accent, var(--accent));
  overflow: hidden;
}
.lesson-card:hover { transform: translateY(-2px); }
.lesson-card:active { transform: scale(0.98); }
.lesson-card h2 { font-size: 1.18rem; margin: 3px 0 5px; }
.lesson-card p { margin: 0; font-size: 0.86rem; color: var(--muted); position: relative; }
.lesson-card .card-num {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.lesson-card .card-ghost {
  position: absolute;
  right: 8px;
  bottom: -14px;
  font-family: var(--font-head);
  font-size: 4.4rem;
  font-weight: 700;
  color: var(--accent);
  opacity: 0.08;
  pointer-events: none;
  line-height: 1;
}
.lesson-card .card-star {
  position: absolute; top: 14px; right: 14px;
  font-size: 0.78rem;
  color: var(--good);
  font-weight: 700;
}
.lesson-card .card-progress {
  position: absolute; top: 14px; right: 14px;
  font-size: 0.76rem;
  color: var(--muted);
  font-weight: 600;
}

/* ============================================================
   LESSON / PROJECT PAGE
   ============================================================ */
.lesson-header { display: flex; align-items: center; gap: 14px; margin-top: 6px; }
.home-btn {
  font-size: 1.25rem;
  text-decoration: none;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--line);
  width: 46px; height: 46px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.lesson-title h1 { font-size: clamp(1.7rem, 5.5vw, 2.4rem); letter-spacing: -0.3px; }
.lesson-kicker {
  display: block;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.tagline {
  font-family: var(--font-head);
  font-size: 1.12rem;
  color: var(--muted);
  margin: 12px 0 22px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 18px;
}

.learn, .examples {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px 24px;
  margin-bottom: 20px;
  font-size: 0.98rem;
}
.learn h2, .examples h2, .puzzle h2 {
  font-family: var(--font-body);
  font-size: 0.76rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 10px;
}
.learn > p:first-of-type { font-size: 1.04rem; }
.learn ul { padding-left: 20px; margin: 8px 0; }
.learn li { margin: 5px 0; }
.learn .demo-row { display: flex; gap: 12px; align-items: center; justify-content: center; flex-wrap: wrap; margin: 14px 0 6px; }

.uses { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.use-chip {
  font-size: 0.76rem;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
}

/* ---------- wrong vs right examples ---------- */
.ex-pair { display: flex; gap: 12px; flex-wrap: wrap; }
.ex-pair + .ex-pair { margin-top: 12px; }
.ex-card {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: #fbfaf7;
  flex: 1;
  min-width: 215px;
  display: flex;
  flex-direction: column;
}
.ex-card figcaption {
  padding: 9px 13px;
  font-size: 0.8rem;
  font-weight: 600;
  display: flex;
  gap: 8px;
  align-items: center;
}
.ex-card .mark { font-weight: 800; }
.ex-card.bad figcaption { color: #a83232; background: var(--bad-soft); }
.ex-card.good figcaption { color: #23763a; background: var(--good-soft); }
.ex-card .mk { border-top: 1px solid var(--line); flex: 1; }

/* skeleton mockups */
.mk {
  background: #fff;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 112px;
  justify-content: center;
}
.mk.mock { min-height: 140px; max-width: 430px; width: 100%; margin: 0 auto; border: 1px solid var(--line); border-radius: 10px; }
.mk-tight { display: flex; flex-direction: column; gap: 3px; }
.bar { height: 9px; border-radius: 4px; background: #e6e3dc; }
.bar.d { background: #2b2e39; }
.bar.a { background: var(--accent); }
.bar.big { height: 17px; }
.bar.w30 { width: 30%; } .bar.w40 { width: 40%; } .bar.w50 { width: 50%; }
.bar.w60 { width: 60%; } .bar.w70 { width: 70%; } .bar.w80 { width: 80%; }
.bar.w85 { width: 85%; } .bar.w90 { width: 90%; }
.ml1 { margin-left: 12%; } .ml2 { margin-left: 26%; } .ml3 { margin-left: 40%; }
.mk .img { height: 36px; border-radius: 6px; background: repeating-linear-gradient(45deg, #edeae3 0 6px, #e3e0d8 6px 12px); }
.mk-row { display: flex; gap: 8px; align-items: center; }
.mk-chip { font-size: 0.64rem; font-weight: 700; padding: 3px 8px; border-radius: 6px; background: #eee; }
.mk-chip.mk-acc { background: var(--accent); color: #fff; border-radius: 999px; }
.mk-chip.mk-star { background: #ffe58a; }
.mk-sw { display: block; height: 20px; border-radius: 5px; flex: 1; }
.mk-num { width: 24px; height: 24px; border-radius: 50%; background: #2b2e39; color: #fff; font-size: 0.72rem; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.mk .fr { border: 2px solid var(--accent); border-radius: 7px; padding: 6px; }
.sp { flex: 1; }

/* ---------- puzzle panel ---------- */
.puzzle {
  background: var(--accent-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
}
.puzzle-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.puzzle .task { font-size: 1rem; margin: 8px 0 16px; }

.ex-nav { display: flex; align-items: center; gap: 8px; }
.ex-btn {
  width: 34px; height: 34px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  font-size: 1.1rem;
  cursor: pointer;
}
.ex-btn:disabled { opacity: 0.35; }
.ex-pills { display: flex; gap: 6px; }
.ex-pill {
  width: 12px; height: 12px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: rgba(34,37,46,0.15);
  cursor: pointer;
}
.ex-pill.on { outline: 2px solid var(--accent); outline-offset: 2px; }
.ex-pill.done { background: var(--accent); }

/* ---------- quiz mode ---------- */
.st-quiz { gap: 16px; }
.quiz-choices {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
}
.quiz-choice {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 14px 10px;
  min-height: 52px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  cursor: pointer;
  transition: transform .1s ease;
}
.quiz-choice:active { transform: scale(0.97); }
.quiz-choice.sel { outline: 2px solid var(--accent); outline-offset: 1px; }
.quiz-choice.right { background: var(--good-soft); border-color: var(--good); color: #23763a; }
.quiz-choice.wrong { background: var(--bad-soft); border-color: var(--bad); color: #a83232; animation: shake .35s ease; }

/* ---------- drag & drop core ---------- */
.piece {
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  cursor: grab;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 14px;
  font-weight: 500;
  font-size: 0.95rem;
  box-shadow: 0 1px 2px rgba(24,26,32,.08);
  text-align: center;
  line-height: 1.3;
}
.piece.dragging {
  pointer-events: none;
  z-index: 1000;
  transform: scale(1.05);
  box-shadow: 0 12px 28px rgba(24,26,32,.25);
  opacity: 0.97;
}

.tray {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  align-items: center;
  min-height: 84px;
  padding: 14px;
  margin-top: 14px;
  border: 2px dashed rgba(34,37,46,0.18);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.55);
}
.tray-label { width: 100%; text-align: center; font-size: 0.8rem; font-weight: 600; color: var(--muted); margin: 0 0 2px; }

.slot {
  border: 2px dashed rgba(34,37,46,0.22);
  border-radius: 10px;
  background: rgba(255,255,255,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 6px;
  position: relative;
}
.slot .piece { width: 100%; margin: 0; }
.slot .slot-label {
  position: absolute;
  font-size: 0.74rem;
  color: rgba(34,37,46,0.4);
  font-weight: 600;
  pointer-events: none;
  text-align: center;
  padding: 0 6px;
}
.slot.filled { border-style: solid; border-color: var(--line); }
.slot.filled .slot-label { display: none; }
.slot.correct { border-color: var(--good); border-style: solid; background: var(--good-soft); animation: pop .35s ease; }
.slot.wrong   { border-color: var(--bad); border-style: solid; background: var(--bad-soft); animation: shake .35s ease; }

@keyframes pop   { 50% { transform: scale(1.04); } }
@keyframes shake { 20% { transform: translateX(-5px);} 40% { transform: translateX(5px);} 60% { transform: translateX(-3px);} 80% { transform: translateX(3px);} }

.static-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8px;
  font-size: 0.95rem;
  border-radius: 10px;
  min-height: 56px;
}

/* ---------- generic stage ---------- */
.stage {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.s-row { display: flex; gap: 10px; align-items: stretch; }
.s-row > * { flex: 1; min-width: 0; }
.s-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }
.s-col {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #fbfaf7;
}
.s-col h4 { text-align: center; font-size: 0.9rem; margin: 0 0 2px; font-family: var(--font-body); font-weight: 700; }

.z-arrow { position: absolute; inset: 16px; width: calc(100% - 32px); height: calc(100% - 32px); pointer-events: none; color: var(--accent); opacity: 0.3; }

/* stage variants */
.st-tall .slot { min-height: 84px; }
.st-grid { background-image: linear-gradient(rgba(34,37,46,0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(34,37,46,0.05) 1px, transparent 1px); background-size: 20px 20px; }
.st-z .s-row { gap: 24px; }
.st-z .s-row + .s-row { margin-top: 24px; }
.st-z .slot { min-height: 88px; z-index: 1; }
.st-wide { aspect-ratio: 16 / 9; justify-content: space-between; }
.st-phone { max-width: 320px; width: 100%; margin: 0 auto; border-radius: 24px; border: 6px solid #22252e; }
.st-ticket { border-left: 10px dotted var(--line); border-right: 10px dotted var(--line); }
.st-guide-left { box-shadow: inset 44px 0 0 -42px var(--accent); }
.st-dark { background: #23252f; border-color: #23252f; }
.st-dark .slot { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.3); }
.st-dark .slot-label { color: rgba(255,255,255,0.5); }
.st-dark .static-cell { color: #f2f2ef; }

/* slot sizes / shapes */
.h-xl { min-height: 108px; }
.h-lg { min-height: 88px; }
.h-md { min-height: 66px; }
.h-sm { min-height: 48px; }
.round { border-radius: 50%; aspect-ratio: 1; }
.round .piece { border-radius: 50%; height: 100%; display: flex; align-items: center; justify-content: center; }
.framed { border: 3px double var(--accent); background: var(--accent-soft); }
.dashed-cut { border: 2px dashed var(--ink); background: #fffdf0; }
.gold-frame { border: 8px solid #c9a227; outline: 2px solid #a3831c; background: #fffdf7; border-radius: 4px; }

/* text sizing on slots (piece inherits) */
.t-xl { font-size: 1.45rem; } .t-xl .piece { font-size: 1.45rem; font-weight: 700; }
.t-lg { font-size: 1.15rem; } .t-lg .piece { font-size: 1.15rem; font-weight: 600; }
.t-sm { font-size: 0.82rem; } .t-sm .piece { font-size: 0.82rem; }

/* ---------- piece styles ---------- */
.p-loud {
  background: var(--accent);
  color: #fff;
  border: none;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}
.p-quiet { background: #f4f3f0; color: #7b7f8c; font-size: 0.85rem; border-color: transparent; }
.p-big { font-size: 1.25rem; font-weight: 700; }
.p-small { font-size: 0.8rem; }
.p-bold { font-weight: 700; }
.p-pic { min-width: 88px; }
.p-pic .pic { display: block; font-size: 1.9rem; line-height: 1.2; }
.p-tilt { transform: rotate(-3deg); }
.p-badge { background: #fff3bf; border-color: #f5c518; font-weight: 700; font-size: 0.85rem; }

/* typography voices */
.f-serif { font-family: Georgia, "Times New Roman", serif; }
.f-script { font-family: "Segoe Script", "Brush Script MT", cursive; }
.f-mono { font-family: "Consolas", "Courier New", monospace; }
.f-display { font-family: var(--font-head); font-weight: 700; letter-spacing: -0.02em; }
.lh-tight { line-height: 1.0; letter-spacing: -0.03em; }
.lh-good { line-height: 1.6; }

/* colour swatches */
.sw { min-width: 76px; min-height: 48px; color: #fff; font-weight: 600; font-size: 0.82rem; display: flex; align-items: center; justify-content: center; }
.sw-red    { background: #e03131; border-color: #e03131; }
.sw-orange { background: #f76707; border-color: #f76707; }
.sw-yellow { background: #f5c518; border-color: #f5c518; color: #5c4a00; }
.sw-green  { background: #2f9e44; border-color: #2f9e44; }
.sw-teal   { background: #0ca678; border-color: #0ca678; }
.sw-blue   { background: #1c7ed6; border-color: #1c7ed6; }
.sw-navy   { background: #1e3a8a; border-color: #1e3a8a; }
.sw-purple { background: #7048e8; border-color: #7048e8; }
.sw-pink   { background: #e64980; border-color: #e64980; }
.sw-gray   { background: #adb5bd; border-color: #adb5bd; }

/* text-on-background combos */
.combo { font-weight: 700; }
.c-blk-yl { background: #f5c518; color: #191400; border-color: #f5c518; }
.c-wht-nv { background: #1e3a8a; color: #ffffff; border-color: #1e3a8a; }
.c-gry-wht { background: #ffffff; color: #d4d4d4; }
.c-yl-wht { background: #ffffff; color: #f0d264; }
.c-gry-gry { background: #9aa0a6; color: #b9bec4; border-color: #9aa0a6; }

/* ---------- lesson navigation / controls / hint / success ---------- */
.lesson-nav { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 16px; }
.lesson-nav .btn { flex: 1; min-width: 150px; }

.controls { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin: 18px 0; }
.controls .btn-primary { min-width: 160px; }

.hint-box {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: #fffaeb;
  border: 1px solid #f2d675;
  border-radius: var(--radius);
  padding: 14px 16px;
  font-size: 0.95rem;
  animation: pop .35s ease;
}
.hint-box .hint-emoji {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #9c7c11;
  background: #f8e7a0;
  border-radius: 6px;
  padding: 3px 8px;
  flex-shrink: 0;
}
.hint-box p { margin: 0; }

.success-overlay {
  position: fixed; inset: 0;
  background: rgba(24,26,32,0.5);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  z-index: 2000;
}
.success-card {
  background: var(--card);
  border-radius: 18px;
  padding: 30px 26px;
  text-align: center;
  max-width: 400px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  animation: pop .4s ease;
}
.success-card h2 { font-size: 1.6rem; }
.success-emoji { font-size: 2.2rem; color: var(--accent); animation: spin-star .8s ease; }
@keyframes spin-star { from { transform: scale(0) rotate(-120deg); } to { transform: scale(1) rotate(0); } }

.confetti {
  position: fixed; top: -20px;
  width: 10px; height: 10px;
  border-radius: 2px;
  z-index: 3000;
  pointer-events: none;
  animation: fall linear forwards;
}
@keyframes fall { to { transform: translateY(110vh) rotate(720deg); } }

@media (max-width: 540px) {
  .s-row { flex-wrap: wrap; }
  .s-row > * { flex-basis: calc(50% - 10px); }
  .st-z .s-row { flex-wrap: nowrap; }
}

/* ============================================================
   Realistic mockups - "seen in the wild" & field guide
   ============================================================ */
.lesson-field { --accent: #3b5bdb; --accent-soft: #e9edfb; }

.wild-intro { margin: 0 0 14px; font-size: 0.95rem; color: var(--muted); }
.wild-wrap { position: relative; }
.rm { position: relative; background: #fff; border: 1px solid #d8d5ce; border-radius: 10px; overflow: hidden; box-shadow: 0 8px 24px rgba(24,26,32,.12); color: #26292f; line-height: 1.35; font-family: var(--font-body); }
.pin { position: absolute; width: 24px; height: 24px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 0.72rem; font-weight: 700; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 8px rgba(0,0,0,.35); border: 2px solid #fff; z-index: 6; font-family: var(--font-body); }
.wild-legend { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.wild-legend li { display: flex; gap: 10px; font-size: 0.9rem; align-items: flex-start; }
.wl-num { width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 0.7rem; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 2px; }

/* photo stand-ins */
.ph { border-radius: 6px; min-height: 60px; background: linear-gradient(160deg, #b9c8dc, #8ba2c0 55%, #5c7191); position: relative; overflow: hidden; }
.ph-sunset { background: linear-gradient(180deg, #ffd9a0, #f79d65 55%, #8f5f8f); }
.ph-forest { background: linear-gradient(180deg, #d7e8d3, #8fb996 55%, #51724f); }
.ph-warm { background: linear-gradient(160deg, #f3e2cf, #e0b98f 60%, #b07f52); }

/* news family */
.nw { font-size: 11px; }
.nw-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding: 10px 14px; border-bottom: 2px solid #26292f; }
.nw-logo { font-family: var(--font-head); font-weight: 700; font-size: 17px; }
.nw-nav { color: #8a8f9a; font-size: 10px; }
.nw-breaking { background: #c92a2a; color: #fff; font-size: 10px; padding: 6px 14px; letter-spacing: 0.03em; }
.nw-breaking strong { background: #fff; color: #c92a2a; border-radius: 3px; padding: 1px 5px; margin-right: 6px; font-size: 9px; }
.nw-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 12px 14px; }
.nw-h { font-family: var(--font-head); font-size: 13px; margin: 0 0 4px; }
.nw-p { margin: 0; color: #5b606c; font-size: 10px; }
.nw-mast { font-family: var(--font-head); font-weight: 700; font-size: 24px; text-align: center; padding: 12px 10px 2px; letter-spacing: 0.02em; }
.nw-date { text-align: center; font-size: 9px; color: #8a8f9a; border-bottom: 1px solid #d8d5ce; padding-bottom: 8px; margin: 0 14px; }
.nw-headline { font-family: var(--font-head); font-size: 19px; margin: 10px 14px 2px; }
.nw-sub { margin: 0 14px 4px; font-size: 11px; color: #5b606c; }
.nw-by { margin: 0 14px 6px; font-size: 8.5px; color: #8a8f9a; text-transform: uppercase; letter-spacing: 0.06em; }
.nw-cap { font-size: 9px; color: #8a8f9a; margin: 3px 0 0; }
.nw-main-grid { display: grid; grid-template-columns: 3fr 2fr; gap: 12px; padding: 12px 14px; }
.nw-side h5 { margin: 0 0 6px; font-size: 9px; letter-spacing: 0.08em; color: #8a8f9a; }
.nw-side p { margin: 0 0 5px; font-size: 10px; border-bottom: 1px solid #eeece7; padding-bottom: 5px; }
.nw-cta { display: inline-block; background: #26292f; color: #fff; font-size: 10px; font-weight: 600; padding: 5px 10px; border-radius: 5px; }

/* travel site */
.web { font-size: 11px; }
.web-head { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; border-bottom: 1px solid #eeece7; }
.web-logo { font-weight: 700; font-size: 13px; }
.web-nav { color: #8a8f9a; font-size: 10px; }
.web-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 14px; align-items: center; }
.web-hero h4 { font-family: var(--font-head); font-size: 16px; margin: 0 0 4px; }
.web-hero p { font-size: 10px; color: #5b606c; margin: 0; }
.web-cta { display: inline-block; background: #1c7ed6; color: #fff; font-size: 10px; font-weight: 600; padding: 6px 10px; border-radius: 6px; }
.web-foot { text-align: right; padding: 0 14px 12px; }

/* resume */
.rs { font-size: 10px; padding: 16px 18px; }
.rs-name { font-family: var(--font-head); font-size: 17px; margin: 0; }
.rs-role { margin: 0 0 10px; color: #5b606c; }
.rs-sec { font-size: 8px; font-weight: 700; letter-spacing: 0.1em; color: #8a8f9a; border-bottom: 1px solid #e5e2db; padding-bottom: 3px; margin: 10px 0 6px; }
.rs-row { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.rs-date { color: #8a8f9a; white-space: nowrap; }

/* app screen */
.app { font-size: 11px; max-width: 290px; margin: 0 auto; }
.app-t { font-weight: 700; font-size: 15px; padding: 12px 14px 6px; }
.app-row { display: flex; align-items: center; gap: 10px; padding: 8px 14px; border-top: 1px solid #f0eee9; }
.app-ic { width: 30px; height: 30px; border-radius: 8px; background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; font-size: 12px; flex-shrink: 0; }
.app-row strong { font-size: 11px; }
.app-row .sub { color: #8a8f9a; font-size: 9px; }
.app-more { margin-left: auto; color: #c3c0b8; }
.app-tab { display: flex; justify-content: space-around; border-top: 1px solid #e5e2db; padding: 8px; font-size: 9px; color: #8a8f9a; }

/* product cards */
.shf { padding: 14px; }
.shf-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.shf-card strong { display: block; font-size: 10px; margin-top: 5px; }
.shf-card span { font-size: 10px; color: #0b7285; font-weight: 700; }
.shf-card .ph { min-height: 52px; }

/* magazine ad */
.adx { text-align: center; padding: 36px 20px 28px; }
.adx-bottle { width: 34px; height: 52px; margin: 0 auto 6px; background: linear-gradient(#dfe6ea, #aebbc4); border-radius: 5px; position: relative; }
.adx-bottle::before { content: ""; position: absolute; top: -8px; left: 50%; transform: translateX(-50%); width: 12px; height: 9px; background: #7d8894; border-radius: 2px; }
.adx-brand { font-family: var(--font-head); font-size: 14px; letter-spacing: 0.24em; margin: 16px 0 2px; }
.adx-tag { font-size: 9px; color: #8a8f9a; margin: 0; letter-spacing: 0.08em; }

/* store deal */
.store { padding: 12px 14px; font-size: 11px; display: flex; flex-direction: column; gap: 8px; }
.store-row { padding: 8px 10px; border-bottom: 1px solid #f0eee9; color: #5b606c; }
.store-deal { border: 2px solid #5f3dc4; background: #f6f3fd; border-radius: 8px; padding: 12px 10px 8px; position: relative; }
.store-flag { position: absolute; top: -8px; left: 10px; background: #5f3dc4; color: #fff; font-size: 8px; font-weight: 700; padding: 2px 7px; border-radius: 4px; letter-spacing: 0.06em; }
.store-deal s { color: #8a8f9a; font-size: 10px; margin-left: 6px; }

/* book page */
.bkp { padding: 18px 22px; font-size: 11px; }
.bkp-head { display: flex; justify-content: space-between; font-size: 8px; letter-spacing: 0.12em; color: #a5a29a; margin-bottom: 14px; }
.bkp-ch { font-family: var(--font-head); font-size: 19px; margin-bottom: 8px; }
.bkp p { font-family: Georgia, serif; font-size: 10.5px; line-height: 1.7; color: #3c4049; margin: 0 0 7px; }

/* colour poster */
.clr { background: #1e3a8a; color: #fff; text-align: center; padding: 22px 16px; }
.clr h4 { font-family: var(--font-head); font-size: 20px; margin: 0 0 4px; color: #fff; }
.clr p { font-size: 10px; margin: 0 0 12px; color: #c7d3f2; }
.clr-cta { display: inline-block; background: #f76707; color: #fff; font-weight: 700; font-size: 11px; padding: 7px 16px; border-radius: 6px; }

/* pricing */
.pr { display: grid; grid-template-columns: 1fr 1.15fr 1fr; gap: 10px; padding: 18px 14px 14px; align-items: stretch; font-size: 9.5px; }
.pr-col { border: 1px solid #e5e2db; border-radius: 8px; padding: 12px 8px; text-align: center; color: #5b606c; }
.pr-col strong { display: block; font-size: 11px; color: #26292f; }
.pr-price { font-size: 16px; font-weight: 700; margin: 2px 0 4px; display: block; color: #26292f; }
.pr-hot { border: 2px solid #c92a2a; background: #fdf3f3; position: relative; }
.pr-flag { position: absolute; top: -8px; left: 50%; transform: translateX(-50%); background: #c92a2a; color: #fff; font-size: 7.5px; font-weight: 700; letter-spacing: 0.06em; padding: 2px 8px; border-radius: 4px; white-space: nowrap; }

/* handout */
.ho { padding: 16px 18px; font-size: 10px; }
.ho-t { font-family: var(--font-head); font-size: 16px; margin: 0; }
.ho-sub { margin: 2px 0 10px; color: #5b606c; }
.ho-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.ho-cols strong { display: block; margin-bottom: 4px; font-size: 10px; }
.ho-cols ul { margin: 0; padding-left: 14px; color: #5b606c; }
.ho-cols li { margin: 2px 0; }
.ho-cut { border: 2px dashed #8a8f9a; border-radius: 6px; padding: 8px 10px; color: #5b606c; background: #fdfcf7; }

/* billboard */
.hb-face { background: linear-gradient(180deg, #cfe4f4, #e8f1f8 70%, #f4ede0); text-align: center; padding: 28px 16px 22px; }
.hb-word { font-family: var(--font-head); font-weight: 700; font-size: 38px; margin: 0; letter-spacing: -0.02em; }
.hb-line { font-size: 12px; margin: 4px 0 10px; color: #3c4049; }
.hb-brand { font-size: 9px; color: #8a8f9a; letter-spacing: 0.1em; }
.hb-posts { height: 16px; background: linear-gradient(90deg, transparent 0 12%, #9aa0a6 12% 15%, transparent 15% 85%, #9aa0a6 85% 88%, transparent 88%); }

/* field guide page */
.fg-item { margin-top: 22px; }
.fg-item h3 { font-size: 1.25rem; margin-bottom: 2px; }
.fg-pair { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 14px; }
.fg-half { flex: 1; min-width: 250px; }
.fg-tag { display: inline-flex; gap: 6px; align-items: center; font-size: 0.78rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; margin-bottom: 8px; }
.fg-tag.good { background: var(--good-soft); color: #23763a; }
.fg-tag.bad { background: var(--bad-soft); color: #a83232; }
.fg-note { font-size: 0.85rem; color: var(--muted); margin: 8px 0 0; }
.fg-mistakes { margin: 8px 0 0; padding-left: 18px; font-size: 0.86rem; color: #5b606c; }
.fg-mistakes li { margin: 3px 0; }
.fg-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.fg-chip { font-size: 0.72rem; font-weight: 700; background: var(--bad-soft); color: #a83232; padding: 3px 8px; border-radius: 999px; }

/* deliberately-bad mockups */
.flg { padding: 20px 16px; font-size: 11px; text-align: center; }
.flg h4 { font-family: var(--font-head); font-size: 18px; margin: 0 0 2px; }
.flg-sub { color: #5b606c; font-size: 10px; margin: 0 0 10px; }
.flg-meta { display: flex; justify-content: center; gap: 14px; font-size: 10px; margin-bottom: 10px; }
.flg-cta { display: inline-block; background: #862e9c; color: #fff; font-size: 10px; font-weight: 700; padding: 5px 12px; border-radius: 6px; }
.flb { padding: 6px; font-size: 11px; text-align: center; background: #fffb8f; }
.flb h4 { font-family: "Segoe Script", cursive; font-size: 17px; color: #e03131; margin: 0; text-shadow: 1px 1px 0 #1c7ed6; }
.flb-line1 { font-family: Consolas, monospace; font-weight: 700; font-size: 12px; color: #1c7ed6; margin: 1px 0; }
.flb-line2 { font-weight: 800; text-transform: uppercase; font-size: 12px; color: #e8590c; margin: 1px 0; }
.flb-line3 { font-weight: 800; font-size: 12px; color: #c92a2a; margin: 1px 0; text-align: left; }
.flb-line4 { font-weight: 700; font-size: 11px; color: #7048e8; text-align: right; margin: 0; }
.nab { padding: 12px 14px; font-size: 11px; }
.nab-h { font-size: 10px; color: #9aa0a6; margin: 0 0 6px; font-weight: 600; }
.nab-ph { min-height: 56px; width: 72%; margin-left: 18%; }
.nab-p { color: #c2beb5; font-size: 10px; margin: 6px 0; }
.nab-cap { font-size: 9px; color: #c2beb5; margin: 14px 0 0; text-align: right; }
.apb { max-width: 290px; margin: 0 auto; font-size: 10px; padding-bottom: 8px; }
.apb-t { font-weight: 700; padding: 8px 10px 2px; font-size: 13px; }
.apb-row { display: flex; align-items: center; gap: 6px; padding: 3px 8px; }
.apb-b1 { background: #1c7ed6; color: #fff; border-radius: 999px; padding: 3px 8px; font-size: 9px; }
.apb-b2 { background: #fff; border: 1px solid #999; padding: 3px 8px; font-size: 9px; }
.apb-b3 { background: #f5c518; padding: 3px 8px; font-size: 9px; font-weight: 800; }
.apb-badge { background: #e03131; color: #fff; font-size: 8px; font-weight: 800; border-radius: 4px; padding: 2px 5px; }

/* ============================================================
   Kid-world mockups
   ============================================================ */
/* yearbook */
.yb { padding: 14px 16px; font-size: 10px; }
.yb-head { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 2px solid #26292f; padding-bottom: 5px; margin-bottom: 10px; }
.yb-class { font-family: var(--font-head); font-weight: 700; font-size: 13px; }
.yb-pg { color: #8a8f9a; font-size: 8px; }
.yb-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; text-align: center; }
.yb-ph { aspect-ratio: 1; border-radius: 5px; background: linear-gradient(#e9e3d9, #d7cbb9); position: relative; overflow: hidden; }
.yb-ph::before { content: ""; position: absolute; left: 50%; top: 16%; width: 34%; aspect-ratio: 1; border-radius: 50%; transform: translateX(-50%); background: #8d7963; }
.yb-ph::after { content: ""; position: absolute; left: 50%; bottom: -16%; width: 68%; height: 52%; border-radius: 50% 50% 0 0; transform: translateX(-50%); background: #5d6c80; }
.yb-ph.alt { background: linear-gradient(#e2e8e4, #c5d2c9); }
.yb-ph.alt::before { background: #6f5c49; }
.yb-ph.alt::after { background: #7a4f62; }
.yb-name { display: block; margin-top: 3px; font-size: 8.5px; font-weight: 600; }
.yb-quote { text-align: center; margin-top: 12px; padding-top: 8px; border-top: 1px solid #eeece7; color: #8a8f9a; font-style: italic; font-size: 9px; }

/* comic page */
.cx { padding: 12px 14px; }
.cx-title { font-family: var(--font-head); font-weight: 700; font-size: 18px; letter-spacing: 0.04em; margin-bottom: 8px; }
.cx-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cx-panel { border: 2px solid #26292f; border-radius: 4px; min-height: 64px; position: relative; overflow: hidden; }
.cx-panel.cxa { background: linear-gradient(180deg, #ffe9b8, #ffd27d); }
.cx-panel.cxb { background: linear-gradient(180deg, #a9b8d8, #6f80a8); }
.cx-panel.cxc { background: linear-gradient(180deg, #cfe0f2, #93b3d4); }
.cx-panel.cxd { background: radial-gradient(circle at 50% 55%, #ffd43b 0 24%, #f76707 70%); }
.cx-bub { position: absolute; top: 6px; left: 6px; right: 24px; background: #fff; border: 1.5px solid #26292f; border-radius: 8px; font-size: 8px; padding: 3px 6px; }
.cx-pow { position: absolute; bottom: 6px; right: 6px; background: #ffd43b; border: 2px solid #26292f; font-weight: 800; font-size: 9px; padding: 2px 6px; transform: rotate(-6deg); }
.cx-pow.big { position: absolute; inset: auto; top: 50%; left: 50%; transform: translate(-50%, -50%) rotate(-8deg); font-size: 15px; padding: 5px 10px; }

/* kids menu */
.km { padding: 16px 18px; font-size: 10px; background: #fffdf4; }
.km-t { font-family: var(--font-head); font-weight: 700; font-size: 17px; color: #e8590c; }
.km-sub { margin: 0 0 10px; color: #8a8f9a; font-size: 9px; }
.km-sec { margin-bottom: 10px; }
.km-sec strong { display: block; font-size: 10px; margin-bottom: 4px; text-transform: uppercase; letter-spacing: 0.06em; color: #26292f; }
.km-row { display: flex; align-items: baseline; gap: 6px; margin: 3px 0; color: #5b606c; }
.km-dots { flex: 1; border-bottom: 1.5px dotted #c9c4b8; }
.km-pr { font-weight: 700; color: #26292f; }
.km-deal { border: 2px solid #e8590c; background: #fdf0e8; border-radius: 8px; padding: 7px 10px; font-weight: 700; color: #b34a08; text-align: center; }

/* movie poster */
.mvp { background: linear-gradient(180deg, #101322, #232b47 55%, #3b4266); color: #fff; text-align: center; padding: 14px 14px 12px; }
.mvp-tag { font-size: 7.5px; letter-spacing: 0.18em; color: #aeb6d4; margin: 0 0 10px; }
.mvp-art { position: relative; height: 74px; margin: 0 auto 10px; max-width: 240px; }
.mvp-peak { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 0; height: 0; border-left: 60px solid transparent; border-right: 60px solid transparent; border-bottom: 54px solid #1a2138; }
.mvp-hero { position: absolute; bottom: 52px; left: 50%; transform: translateX(-50%); width: 10px; height: 16px; background: #ffd9a0; border-radius: 4px 4px 2px 2px; box-shadow: 0 0 18px 6px rgba(255, 217, 160, 0.35); }
.mvp-title { font-family: var(--font-head); font-weight: 700; font-size: 26px; letter-spacing: 0.06em; margin: 0; color: #f4ecd8; }
.mvp-date { font-size: 9px; letter-spacing: 0.2em; margin: 3px 0 10px; color: #aeb6d4; }
.mvp-credits { font-size: 6px; letter-spacing: 0.04em; color: #7d86ab; margin: 0; transform: scaleY(1.4); font-weight: 600; }

/* cereal box */
.cb { background: linear-gradient(170deg, #ff9b2f, #f76707 70%); text-align: center; padding: 14px 14px 10px; color: #fff; }
.cb-brand { font-size: 8px; letter-spacing: 0.16em; margin: 0 0 2px; color: #ffe3c2; }
.cb-name { font-family: var(--font-head); font-weight: 700; font-size: 24px; margin: 0 0 8px; color: #fff; text-shadow: 0 2px 0 #a34503; }
.cb-mid { display: flex; align-items: center; justify-content: center; gap: 16px; margin-bottom: 8px; }
.cb-mascot { width: 54px; height: 54px; border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center; font-size: 26px; border: 3px solid #a34503; }
.cb-burst { background: #ffd43b; color: #7a4a00; font-weight: 800; font-size: 8.5px; line-height: 1.15; padding: 8px; border-radius: 50%; transform: rotate(8deg); border: 2px dashed #a34503; }
.cb-note { font-size: 7.5px; color: #ffe3c2; margin: 0; letter-spacing: 0.08em; }

/* ============================================================
   Extended type voices + photo & logo library
   ============================================================ */
.f-cond  { font-family: "Oswald", "Arial Narrow", sans-serif; font-weight: 600; letter-spacing: 0.03em; }
.f-deco  { font-family: "Alfa Slab One", Georgia, serif; font-weight: 400; letter-spacing: 0.01em; }
.f-thin  { font-family: "Raleway", sans-serif; font-weight: 200; letter-spacing: 0.16em; text-transform: uppercase; }
.f-round { font-family: "Baloo 2", system-ui, sans-serif; font-weight: 700; }
.f-script { font-family: "Pacifico", "Segoe Script", cursive; font-weight: 400; }

/* photo blocks usable inside pieces and static cells */
.pp { display: block; width: 100%; min-height: 44px; border-radius: 6px; margin-bottom: 4px; position: relative; overflow: hidden; }
.piece .pp:only-child { margin-bottom: 0; }
.pp.ph-sunset { background: linear-gradient(180deg, #ffd9a0, #f79d65 55%, #8f5f8f); }
.pp.ph-forest { background: linear-gradient(180deg, #d7e8d3, #8fb996 55%, #51724f); }
.pp.ph-warm   { background: linear-gradient(160deg, #f3e2cf, #e0b98f 60%, #b07f52); }
.pp.ph-meadow { background: linear-gradient(180deg, #cfe4f4 0 48%, #9cc78f 48%, #6da868); }
.pp.ph-beach  { background: linear-gradient(180deg, #bfe3f2 0 45%, #7ec8dd 45% 62%, #f2e3c2 62%); }
.pp.ph-night  {
  background:
    radial-gradient(circle at 22% 30%, rgba(255,255,255,.9) 0 1px, transparent 2px),
    radial-gradient(circle at 58% 18%, rgba(255,255,255,.7) 0 1px, transparent 2px),
    radial-gradient(circle at 82% 46%, rgba(255,255,255,.8) 0 1px, transparent 2px),
    radial-gradient(circle at 38% 62%, rgba(255,255,255,.5) 0 1px, transparent 2px),
    linear-gradient(180deg, #1a2138, #2c3357 70%, #454b7a);
}
.pp.ph-city { background: linear-gradient(180deg, #cfdcea 0 55%, #8fa3ba 55%); }
.pp.ph-city::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 45%; background: repeating-linear-gradient(90deg, #46536a 0 9px, #55657c 9px 15px, #3d4a5d 15px 23px); }

/* monogram logo marks */
.lgm {
  display: inline-flex;
  width: 22px; height: 22px;
  border-radius: 50%;
  color: #fff;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.72rem;
  margin-right: 7px;
  vertical-align: middle;
  font-family: var(--font-body);
}
.lgm.sq { border-radius: 6px; }

/* extra stage helpers for complex layouts */
.pullq { border-left: 4px solid var(--accent); background: var(--accent-soft); font-style: italic; }
.st-square { max-width: 360px; width: 100%; margin: 0 auto; }
.st-wide .s-row { align-items: stretch; }

/* ============================================================
   Field Guide pager + full-page mockup scale + rich mock parts
   ============================================================ */
.fg-pager {
  position: sticky;
  top: 10px;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 10px 12px;
  margin-bottom: 18px;
}
.fg-pager .btn { min-height: 46px; padding: 10px 18px; }
.fg-where { text-align: center; display: flex; flex-direction: column; line-height: 1.2; }
.fg-lab { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent); }
.fg-where strong { font-size: 0.95rem; }

.fg-stage { max-width: 640px; margin: 0 auto; }
@media (min-width: 760px) { .fg-stage .rm { zoom: 1.28; } }
.fg-item h3 { font-size: 1.4rem; }
.fg-item .wild-legend { max-width: 720px; margin-left: auto; margin-right: auto; margin-top: 18px; }

/* newspaper extras */
.nw-second { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 0 14px 10px; border-top: 1px solid #eeece7; margin-top: 4px; padding-top: 10px; }
.nw-foot { display: flex; justify-content: space-between; align-items: center; border-top: 2px solid #26292f; margin: 0 14px; padding: 8px 0 10px; font-size: 9px; color: #8a8f9a; }

/* handout schedule */
.ho-sched { border: 1px solid #e5e2db; border-radius: 8px; overflow: hidden; margin-bottom: 12px; }
.ho-tr { display: flex; gap: 12px; padding: 5px 10px; font-size: 10px; }
.ho-tr:nth-child(even) { background: #f7f5ef; }
.ho-tr span:first-child { font-weight: 700; width: 40px; text-align: right; flex-shrink: 0; }

/* billboard extras */
.hb-fine { font-size: 7px; color: #adb2bc; margin: 6px 0 0; }
.hb-road { height: 26px; background: #4c5560; position: relative; }
.hb-road::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; background: repeating-linear-gradient(90deg, #e8e4d8 0 14px, transparent 14px 28px); }

/* app extras */
.app-status { display: flex; justify-content: space-between; font-size: 8px; color: #8a8f9a; padding: 6px 14px 0; }
.app-hours { display: flex; justify-content: space-between; text-align: center; font-size: 8.5px; color: #5b606c; padding: 6px 14px 8px; border-bottom: 1px solid #f0eee9; }

/* yearbook star box */
.yb-star { display: flex; gap: 10px; align-items: center; border: 2px solid #2f9e44; background: #f2faf3; border-radius: 8px; padding: 8px 10px; margin-top: 12px; font-size: 9px; }
.yb-star span { color: #5b606c; }

/* comic extras */
.cx-cred { font-size: 8px; color: #8a8f9a; margin: -4px 0 8px; letter-spacing: 0.06em; }
.cx-next { text-align: right; font-size: 9px; font-style: italic; color: #8a8f9a; margin-top: 8px; }

/* kids menu extras */
.km-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.km-doodle { font-size: 9px; color: #8a8f9a; text-align: center; }
.km-box { border: 2px dashed #c9c4b8; border-radius: 8px; min-height: 64px; margin-top: 3px; background: #fff; }

/* movie poster extras */
.mvp-moon { position: absolute; top: 0; right: 18%; width: 26px; height: 26px; border-radius: 50%; background: #e8e2d2; opacity: 0.8; }
.mvp-stars { font-size: 8.5px; letter-spacing: 0.14em; color: #cfd6ee; margin: 2px 0 0; }
.mvp-foot { display: flex; justify-content: center; gap: 8px; align-items: center; margin-top: 8px; }
.mvp-badge { font-size: 6.5px; letter-spacing: 0.08em; color: #aeb6d4; border: 1px solid #3d4569; border-radius: 3px; padding: 2px 6px; }
.mvp-rate { font-size: 7.5px; font-weight: 800; color: #101322; background: #e8e2d2; border-radius: 3px; padding: 2px 6px; }

/* cereal extras */
.cb-bowl { margin: 0 auto 6px; max-width: 200px; }
.cb-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; }
.cb-nutri { font-size: 6.5px; text-align: left; background: rgba(255,255,255,0.18); border-radius: 4px; padding: 4px 6px; line-height: 1.3; }
.cb-code { font-family: Consolas, monospace; font-size: 10px; background: #fff; color: #26292f; border-radius: 3px; padding: 2px 6px; }

/* ============================================================
   Brand logo (graphicdesignforkids.com)
   ============================================================ */
.brand { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.brand-mark { width: 84px; height: 84px; filter: drop-shadow(0 3px 6px rgba(24,26,32,.12)); }
.brand-word {
  position: relative;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(2.2rem, 7.5vw, 3.8rem);
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0;
}
.bw-1 { color: var(--ink); }
.bw-2 {
  font-style: italic;
  background: linear-gradient(92deg, #e8590c, #d6336c 55%, #7048e8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-right: 0.08em;
}
.bw-kids {
  position: absolute;
  top: -0.55em;
  right: -1.1em;
  transform: rotate(-8deg);
  font-family: "Baloo 2", system-ui, sans-serif;
  font-style: normal;
  font-weight: 700;
  font-size: 0.32em;
  letter-spacing: 0;
  background: #f5c518;
  color: #3a2f00;
  padding: 0.35em 0.85em;
  border-radius: 999px;
  box-shadow: 0 3px 0 rgba(24,26,32,0.18);
  white-space: nowrap;
}
.brand-domain {
  font-family: "Consolas", monospace;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin: 2px 0 0;
}
@media (max-width: 560px) {
  .bw-kids { right: -0.4em; top: -0.9em; }
}

/* ============================================================
   Card category tags ("what is this?" labels on tray cards)
   ============================================================ */
.p-tag {
  display: block;
  width: max-content;
  max-width: 100%;
  margin: -3px auto 6px;
  font-family: var(--font-body);
  font-size: 0.6rem;
  font-weight: 700;
  font-style: normal;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #6d7180;
  background: #f3f1eb;
  border: 1px solid #e0ddd4;
  border-radius: 5px;
  padding: 1px 7px;
  line-height: 1.5;
}
.slot .p-tag { display: none; }       /* placed cards show only the design */
.piece.sw .p-tag { display: none; }   /* colour swatches stay clean shapes */

/* "why it works" explanation in the success card */
.ov-why {
  text-align: left;
  background: var(--accent-soft);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 0.92rem;
  line-height: 1.5;
  margin: 0;
}

/* ============================================================
   Learn-section demo galleries
   ============================================================ */
.learn h3 { font-size: 1.02rem; margin: 20px 0 6px; }
.ld-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(158px, 1fr)); gap: 10px; margin: 12px 0; }
.ld-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fbfaf7;
  padding: 14px 10px 10px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ld-demo { min-height: 46px; display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; line-height: 1.1; }
.ld-cap { font-size: 0.78rem; color: var(--muted); line-height: 1.4; margin-top: auto; }
.ld-cap strong { color: var(--ink); }
.ld-strip { display: flex; gap: 10px; align-items: stretch; margin: 12px 0; flex-wrap: wrap; }
.ld-strip .ld-card { flex: 1; min-width: 130px; }
.type-sample { font-size: 1.7rem; line-height: 1.1; }
.wheel {
  width: 132px; height: 132px; border-radius: 50%;
  background: conic-gradient(#e03131, #f76707, #f5c518, #2f9e44, #0ca678, #1c7ed6, #7048e8, #e64980, #e03131);
  margin: 6px auto;
  border: 5px solid #fff;
  box-shadow: var(--shadow);
}
.dotrow { display: flex; gap: 7px; justify-content: center; align-items: center; }
.dotrow i { width: 17px; height: 17px; border-radius: 50%; background: #cfccc4; display: block; }
.dotrow i.hot { background: #f76707; }
.dotrow i.sq { border-radius: 4px; }
.mini-line { display: block; }

/* extra text/background combos for the colour lesson */
.c-nv-wht { background: #ffffff; color: #1e3a8a; border: 1px solid #e5e2db; }
.c-red-blu { background: #1c7ed6; color: #e03131; border-color: #1c7ed6; }
