/* Talk Picnic's own pages, on top of picnic.css (the surface, the colors, header, search and footer every Picnic
   shares; loaded first, copied verbatim from Grammar and Logic Picnic). Fonts and color variables come from there.
   The worksheet (/print/) has its own sheet, worksheet.css, loaded on that page only. */

* { box-sizing: border-box; border-radius: 0; }
html { background: var(--canvas); color: var(--edge); font: 400 16px/1.5 var(--ui); }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; }
body > .foot { margin-top: auto; }
button { font: 600 15px/1 var(--ui); color: var(--edge); background: var(--surface); border: 2px solid var(--edge);
  padding: 9px 14px; cursor: pointer; }
button:hover { background: var(--mustard); }
button[aria-pressed="true"] { background: var(--edge); color: var(--paper); }
a { color: var(--edge); }
a.btn { display: inline-flex; align-items: center; color: var(--edge); text-decoration: none; }
kbd { padding: 1px 6px 2px; border: 1.5px solid var(--rule); font: var(--weight-label) var(--text-caption)/1.2 var(--ui); color: var(--soft); }

main { width: min(1160px, 100%); margin: 0 auto; padding: 24px clamp(16px, 4vw, 40px) 48px; }
main.tp-home, main.tp-card { width: 100%; max-width: 1560px; padding-left: clamp(16px, 5vw, 96px); padding-right: clamp(16px, 5vw, 96px); }
h1 { font: 700 clamp(28px, 4vw, 40px)/1.15 var(--ui); margin: 4px 0 8px; letter-spacing: -.015em; }
.tp-lead { color: var(--soft); font-size: 18px; margin: 0 0 20px; }
.tp-kind { display: inline-block; font: 700 13px/1 var(--ui); text-transform: uppercase; letter-spacing: .06em; margin: 0; }
/* Each kind has one colour: the word on a card page, the banner across a card in a list (Ken, 2026-12-02) */
.tp-kind-narrate { --kc: #7a3a8c; } .tp-kind-retell { --kc: #1f5f99; } .tp-kind-discuss { --kc: var(--leaf); }
.tp-kind-narrate .tp-kind, .tp-kind-retell .tp-kind, .tp-kind-discuss .tp-kind { color: var(--kc); }
.tp-tile .tp-kind, .tp-kindcard .tp-kind { display: block; margin: -16px -16px 4px; padding: 8px 16px; background: var(--kc); color: var(--paper); }
.tp-kindcard .tp-kind { margin: -18px -18px 6px; padding: 9px 18px; }

/* ---- The header's two menus, as Grammar and Logic Picnic's (logicpicnic site/logic.css) ---------------------- */
.nav-menu { position: relative; }
.nav-menu summary { position: relative; display: inline-flex; align-items: center; padding: 8px 8px; color: var(--edge); font-weight: var(--weight-control); font-size: var(--text-body); white-space: nowrap; cursor: pointer; list-style: none; }
.nav-menu summary::-webkit-details-marker { display: none; }
.nav-menu summary::after { content: ""; position: absolute; left: 8px; right: 8px; bottom: 3px; height: 3px; background: var(--mustard); transform: scaleX(0); transform-origin: left; transition: transform .2s var(--out); }
.nav-menu summary:hover::after, .nav-menu[data-current="true"] > summary::after { transform: none; }
.nav-menu summary:focus-visible { outline: 3px solid var(--edge); outline-offset: 2px; }
.nav-chevron { width: 7px; height: 7px; margin: -4px 0 0 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .18s ease, margin .18s ease; }
.nav-menu[open] .nav-chevron { margin-top: 3px; transform: rotate(225deg); }
.nav-menu-panel { position: absolute; z-index: 40; top: calc(100% + 8px); left: 0; display: grid; gap: 2px; min-width: 200px; padding: 10px;
  border: 2px solid var(--outline); background: var(--paper); box-shadow: 4px 4px 0 var(--shadow); }
.top.site .menu .nav-menu-panel a { display: block; margin: 0; order: 0; padding: 7px 10px; font-size: var(--text-label); white-space: normal; }
.top.site .menu .nav-menu-panel a::after { content: none; }
.top.site .menu .nav-menu-panel a:hover { background: var(--paper-deep); }
.top.site .menu .nav-menu-panel a[aria-current="page"] { background: var(--paper-hover); }
.nav-topics { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 20px; width: min(760px, calc(100vw - 2 * var(--page-gutter))); }
.nav-group { display: grid; align-content: start; }
.top.site .menu .nav-group a.nav-group-name { font-size: var(--text-body); font-weight: var(--weight-heading); }
.top.site .menu .nav-group a:not(.nav-group-name) { padding-block: 4px; color: var(--soft); }
@media (max-width: 860px) { .nav-topics { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) {
  .top.site > .brand { flex: 1 0 calc(100% - var(--control-size) - 20px); }
  .top.site > .menu > .nav-menu { order: 4; position: static; }
  .top.site > .menu > .nav-menu summary { padding-inline: 5px; margin-inline: -5px; }
  .top.site > .menu > .nav-menu summary::after { left: 5px; right: 5px; }
  .nav-menu-panel { top: 100%; left: var(--page-gutter); right: var(--page-gutter); width: auto; max-height: calc(100dvh - 140px); overflow-y: auto; }
  .nav-topics { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 420px) { .nav-topics { grid-template-columns: 1fr; } }
.foot .small nav { display: flex; }

/* ---- Landing: a hero, then numbered bands (as Grammar Picnic's), the card to try, the kinds, home, every card --- */
.tp-eyebrow { margin: 0 0 8px; font: var(--weight-brand) var(--text-caption)/1.2 var(--ui); letter-spacing: .08em; text-transform: uppercase; color: var(--leaf); }
.tp-hero { padding: clamp(16px, 4vw, 48px) 0 clamp(24px, 4vw, 40px); max-width: 860px; }
.tp-hero h1 { font-size: clamp(2.4rem, 5.4vw, 4rem); line-height: 1.05; margin: 0 0 18px; }
.tp-hero .tp-lead { font-size: var(--text-lead); max-width: 62ch; }
/* The what, after the why (h1) and the how (lead): quieter than the lead. */
.tp-hero .tp-what { max-width: 62ch; margin: 0 0 4px; color: var(--soft); }
.tp-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 14px; }
.btn.tp-go { background: var(--mustard); box-shadow: var(--pop); }
.tp-facts { margin: 0; font-size: var(--text-label); font-weight: var(--weight-label); color: var(--soft); }
.tp-band { margin-top: 28px; padding: clamp(20px, 3vw, 36px); background: var(--paper); border: 2px solid var(--outline); }
.tp-band-head { max-width: 760px; margin-bottom: 20px; }
.tp-band-head h2 { margin: 0 0 6px; font: var(--weight-heading) var(--text-section)/var(--leading-heading) var(--ui); letter-spacing: var(--tracking-heading); }
.tp-band-head p:not(.tp-eyebrow) { margin: 0; color: var(--soft); }
/* The card to try: the story at the left, its questions at the right */
.tp-demo { display: grid; gap: 20px 32px; }
@media (min-width: 900px) { .tp-demo { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); align-items: start; } }
.tp-demo-story h3 { margin: 0 0 12px; font: var(--weight-heading) var(--text-card)/1.2 var(--ui); }
.tp-demo-story .tp-read { font-size: clamp(18px, 1.6vw, 22px); }
.tp-demo-q { background: var(--surface); border: 2px solid var(--outline); padding: 18px 20px; }
.tp-demo-q ol { list-style: none; margin: 0; padding: 0; min-height: 150px; }
.tp-demo-step { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.tp-demo-n { flex: 1; text-align: center; font-weight: var(--weight-label); color: var(--soft); }
.tp-demo-step .btn:disabled { opacity: .4; cursor: default; }
.tp-demo-more { margin: 14px 0 0; font-size: var(--text-label); color: var(--soft); }
/* The three kinds, as big cards */
.tp-kinds { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 0 0 18px; }
.tp-kinds.tp-wide { grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; }
.tp-kindcard { display: grid; gap: 6px; align-content: start; text-align: left; padding: 18px; background: var(--paper);
  border: 2px solid var(--edge); font: inherit; }
a.tp-kindcard { color: var(--edge); text-decoration: none; }
.tp-kindcard strong { font: 800 22px/1.15 var(--ui); }
.tp-kindcard .tp-about { font: 400 15px/1.4 var(--ui); color: var(--soft); }
.tp-kindcard .tp-n { font: 700 13px/1 var(--ui); color: var(--soft); margin-top: 4px; }
.tp-kindcard .tp-eg { font: 400 16px/1.4 var(--read); color: var(--edge); padding: 8px 10px; background: var(--surface); border-left: 4px solid var(--mustard); }
.tp-kindcard:hover { background: var(--surface); box-shadow: var(--pop); }
.tp-kindcard.tp-on { background: var(--mustard); box-shadow: var(--pop); }
.tp-kindcard.tp-on .tp-about, .tp-kindcard.tp-on .tp-n { color: var(--edge); }
@media (max-width: 760px) { .tp-kinds, .tp-kinds.tp-wide { grid-template-columns: 1fr; } }
/* Open a Picnic code */
.tp-open { margin: 0 0 18px; display: grid; gap: 6px; }
.tp-band .tp-open { max-width: 420px; }
.tp-open label { font: 700 14px/1 var(--ui); color: var(--soft); }
.tp-open span { display: flex; }
.tp-open input { flex: 1 1 auto; min-width: 0; font: 700 17px/1 var(--ui); letter-spacing: .04em; padding: 9px 10px; border: 2px solid var(--edge); border-right: 0; background: var(--surface); color: var(--edge); }
.tp-open-err { margin: 0; color: var(--tomato); font-weight: 700; font-size: 14px; }
/* The questions grown-ups ask */
.tp-faq { max-width: 760px; margin: 0; display: grid; gap: 4px; }
.tp-faq dt { margin-top: 14px; font-weight: var(--weight-heading); font-size: 1.08rem; color: var(--edge); }
.tp-faq dd { margin: 0; color: var(--soft); line-height: 1.55; }
/* The home page's questions fold (Ken, 2026-12-02: "这个section作成collapsable"): each a <details>, closed until
   opened, two columns on a wide screen so the band is not one long text column. */
.tp-fold { max-width: none; gap: 0 40px; align-items: start; }
@media (min-width: 900px) { .tp-fold { grid-template-columns: 1fr 1fr; } }
.tp-fold details { border-top: 2px solid var(--rule); }
.tp-fold summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 0; cursor: pointer; list-style: none;
  font-weight: var(--weight-heading); font-size: 1.08rem; color: var(--edge); }
.tp-fold summary::-webkit-details-marker { display: none; }
.tp-fold summary::after { content: "+"; flex: none; width: 24px; text-align: center; font: 700 20px/1 var(--ui); }
.tp-fold details[open] summary::after { content: "\2212"; }
.tp-fold details p { margin: 0 0 16px; color: var(--soft); line-height: 1.55; }
.tp-more { margin: 18px 0 0; font-weight: var(--weight-label); }
.tp-updated { margin-top: 28px; font-size: var(--text-caption); color: var(--soft); }

/* ---- Card lists: filters and tiles ---------------------------------------------------------------------------
   The filters are one row of dropdowns (Ken, 2026-12-02), drawn like the header's menus: a square button, and a
   panel of checkboxes with how many cards each leaves. A dropdown with something ticked is mustard and says how
   many; what is ticked shows under the row as pills with a x. */
.tp-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 10px; }
.tp-facet { position: relative; }
.tp-facet summary { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 12px; list-style: none; cursor: pointer;
  background: var(--surface); border: 2px solid var(--edge); font: var(--weight-control) 15px/1 var(--ui); color: var(--edge); white-space: nowrap; }
.tp-facet summary::-webkit-details-marker { display: none; }
.tp-facet summary:hover, .tp-facet[open] summary { background: var(--paper-deep); }
.tp-facet summary:focus-visible { outline: 3px solid var(--edge); outline-offset: 2px; }
.tp-facet .nav-chevron { margin-left: 2px; }
.tp-facet.tp-has summary { background: var(--mustard); }
.tp-fn { min-width: 20px; height: 20px; padding: 0 5px; display: inline-grid; place-items: center; background: var(--edge); color: var(--paper);
  border-radius: 999px; font: var(--weight-control) 12px/1 var(--ui); font-variant-numeric: tabular-nums; }
.tp-fn[hidden] { display: none; }
.tp-facet-panel { position: absolute; z-index: 30; top: calc(100% + 6px); left: 0; display: grid; gap: 2px; min-width: 230px; padding: 8px;
  background: var(--paper); border: 2px solid var(--outline); box-shadow: 4px 4px 0 var(--shadow); }
.tp-opt { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; align-items: center; gap: 10px; min-height: 38px; padding: 4px 8px;
  cursor: pointer; font-size: 15px; white-space: nowrap; }
.tp-opt:hover { background: var(--paper-deep); }
.tp-opt input { width: 18px; height: 18px; margin: 0; accent-color: var(--edge); cursor: inherit; }
.tp-opt .tp-cnt { color: var(--soft); font-variant-numeric: tabular-nums; font-size: 14px; }
.tp-opt.tp-none { color: var(--soft); opacity: .5; cursor: default; }
.tp-opt.tp-none:hover { background: none; }
/* The kind's colour, as a square before its name */
.tp-kindopt .tp-ol::before { content: ""; display: inline-block; width: 10px; height: 10px; margin-right: 8px; background: var(--kc); }
.tp-picked { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 6px; }
.tp-picked[hidden] { display: none; }
.tp-pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 8px 5px 10px; font-size: 14px; border-width: 1px;
  background: color-mix(in srgb, var(--mustard) 45%, var(--surface)); }
.tp-pill span { font-size: 16px; line-height: 1; color: var(--soft); }
.tp-pill:hover span { color: var(--tomato); }
.tp-pill-clear { padding: 5px 8px; font-size: 14px; border: 0; background: none; text-decoration: underline; }
.tp-pill-clear:hover { background: none; color: var(--tomato); }
.tp-count { color: var(--soft); margin: 6px 0 12px; }
@media (max-width: 560px) {
  .tp-facet { position: static; }
  .tp-filters { position: relative; }
  .tp-facet-panel { left: 0; right: 0; min-width: 0; max-height: 60vh; overflow-y: auto; }
}
.tp-tiles { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.tp-tile { position: relative; }
.tp-tile a { display: grid; gap: 8px; height: 100%; padding: 16px; background: var(--paper); border: 2px solid var(--edge); text-decoration: none; }
.tp-tile a:hover { box-shadow: var(--pop); transform: translate(-1px, -1px); background: var(--surface); }
.tp-tile strong { font: 700 20px/1.2 var(--ui); }
.tp-tile .tp-first { font: 400 16px/1.4 var(--read); color: var(--soft); }
.tp-tile[hidden] { display: none; }

/* ---- Themes, Send home, About -------------------------------------------------------------------------------- */
/* The themes page: a row of picture tiles per group, each picture from one of the theme's cards (Ken, 2026-12-02). */
.tp-tgroups { display: grid; gap: 36px; }
.tp-tgroup h2 { margin: 0 0 12px; font: var(--weight-heading) var(--text-card)/1.2 var(--ui); }
.tp-tgroup ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.tp-tgroup a { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 2px 8px; height: 100%; padding: 0 0 10px; background: var(--surface); border: 2px solid var(--edge); text-decoration: none; color: var(--edge); }
.tp-tgroup a:hover { background: var(--paper-hover); }
.tp-tgroup img { grid-column: 1 / -1; display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-bottom: 2px solid var(--edge); margin-bottom: 8px; }
.tp-tpanel { grid-column: 1 / -1; display: grid; place-items: center; aspect-ratio: 3 / 2; margin-bottom: 8px; border-bottom: 2px solid var(--edge);
  background: color-mix(in srgb, var(--mustard) 35%, var(--surface)); font: var(--weight-heading) 22px/1.1 var(--ui); text-align: center; padding: 0 12px; }
/* A phone: two tiles a row, not one picture the width of the screen 37 times. */
@media (max-width: 560px) {
  .tp-tgroup ul { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .tp-tgroup a { font-size: 15px; }
  .tp-tpanel { font-size: 18px; }
}
.tp-tname { padding-left: 10px; font-weight: var(--weight-label); }
.tp-tgroup small { padding-right: 10px; color: var(--soft); white-space: nowrap; }
.tp-prose { max-width: 820px; }
.tp-prose h2 { margin: 28px 0 8px; font: var(--weight-heading) var(--text-section)/1.2 var(--ui); }
.tp-prose li { margin: 6px 0; }
.tp-how { padding-left: 22px; }
.tp-how li { margin: 10px 0; }

/* ---- Card: what is read aloud --------------------------------------------------------------------------------
   An undrawn card has a striped placeholder where its picture goes. */
.tp-pic { display: grid; place-items: center; aspect-ratio: 4 / 3; background: repeating-linear-gradient(45deg, var(--paper-deep), var(--paper-deep) 10px, var(--paper) 10px, var(--paper) 20px);
  border: 2px dashed var(--rule); color: var(--soft); font: 700 28px/1 var(--ui); }
.tp-left > .tp-pic { grid-area: pic; aspect-ratio: 16 / 9; max-height: 170px; width: 100%; font-size: 20px; }
/* A drawn picture (Ken, 2026-12-02): the whole 3:2 drawing across the story column, no crop and no height cap.
   On its own (the landing demo) it has a frame; on a card page it sits inside the story box without one. */
.tp-pic.tp-pic-img { display: block; margin: 0; background: var(--paper); border: 2px solid var(--edge); padding: 8px; aspect-ratio: auto; }
.tp-left > .tp-pic.tp-pic-img, .tp-demo-story .tp-pic.tp-pic-img { max-height: none; }
.tp-pic.tp-pic-img img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: contain; }
/* The landing demo's picture (after the rules above, which it overrides at the same weight) */
.tp-demo-story .tp-pic { aspect-ratio: 16 / 9; max-height: 150px; width: 100%; margin-bottom: 14px; font-size: 18px; }
.tp-read { font: 400 clamp(18px, min(2vw, 3.1vh), 27px)/1.55 var(--read); margin: 0; }
.tp-beats { display: grid; gap: 26px; }
/* A picture-book page (Ken, 2026-12-02, option A, after "总觉得干干的"): a paper tint behind the story and more air
   between lines and parts. Every sentence the same size (Ken: "不用第一句话放大"). No numbers on sentences or parts:
   children read them aloud, and a retell should use their own first, then, at the end. */
/* One sentence per line (Ken, 2026-12-01): easier to point at and read aloud. */
.tp-read .tp-s { display: block; width: fit-content; }
.tp-read .tp-s + .tp-s { margin-top: 4px; }
.tp-read .tp-s.tp-lit { background: color-mix(in srgb, var(--mustard) 70%, transparent); box-shadow: inset 0 -3px 0 var(--mustard); }
/* Card: the text and the question side by side, so one screen holds both on a projector.
   Narrow screens: title, picture, text, questions. Wide: the title, the picture and the story in the left third,
   staying in view together while the questions scroll (Ken, 2026-12-01 and 12-02); the questions in the right two.
   The picture is the story's, so it sits with the story, not over the questions. */
.tp-stage { display: grid; gap: 20px 28px; grid-template-areas: "left" "ladder" "about"; }
.tp-stage > .tp-right { display: contents; }
.tp-right > .tp-about { grid-area: about; margin-top: 0; }
main.tp-card { padding-bottom: 24px; }
/* The title, the picture and the story are one box, like the question box beside it (Ken, 2026-12-02) */
.tp-stage > .tp-left { display: block; grid-area: left; background: color-mix(in srgb, var(--mustard) 12%, var(--paper)); border: 2px solid var(--edge);
  padding: 18px clamp(14px, 2.2vw, 24px); }
.tp-left > .tp-head { margin-bottom: 16px; }
.tp-left > .tp-pic { margin-bottom: 16px; }
.tp-left > .tp-pic.tp-pic-img { border: 0; padding: 0; background: none; }
.tp-head .tp-lead { margin-bottom: 0; }
/* The card header's crumbs sit on one short line: the 44px touch height picnic.css gives crumbs would push the story
   out of view on a 768px screen. */
.tp-head .crumbs { margin: 0 0 2px; }
.tp-head .crumbs a { min-height: 0; }
.tp-head h1 { margin-top: 2px; }
.tp-right > .tp-ladder { grid-area: ladder; }
/* Wide: each column stays in view on its own and scrolls inside itself, so scrolling the story never carries the
   question away, or the other way round (Ken, 2026-12-02) */
@media (min-width: 980px) {
  .tp-stage { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); grid-template-areas: "left right"; align-items: start; }
  .tp-left > .tp-pic { margin-bottom: 16px; max-height: min(150px, 17vh); }
  .tp-stage > .tp-left, .tp-stage > .tp-right { display: block; position: sticky; top: 16px; align-self: start;
    max-height: calc(100vh - 32px); overflow-y: auto; overscroll-behavior: contain; }
  .tp-stage > .tp-right { grid-area: right; padding-bottom: 4px; }
  .tp-right > .tp-about { margin-top: 16px; }
}
@media (max-width: 760px) { .tp-left > .tp-pic { max-height: 180px; } }
/* Wide, a card with a picture (Ken, 2026-12-02, chosen from three on dev: "定 5"). One question at a time: the story
   takes two thirds, picture beside the text like a picture book, so the picture is never cut or shrunk. All
   questions: the story goes back to a third and the questions fill two columns, most on one screen. Tell about your
   day (no picture) and full screen keep the layout above. */
@media (min-width: 980px) {
  main.tp-card:not(.tp-projector) .tp-stage:has(.tp-pic-img):not(:has(.tp-ladder.tp-all)) { grid-template-columns: minmax(0, 2fr) minmax(370px, 1fr); }
  main.tp-card:not(.tp-projector) .tp-stage:has(.tp-pic-img):not(:has(.tp-ladder.tp-all)) > .tp-left { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas: "head head" "pic text"; column-gap: 28px; align-items: start; }
  main.tp-card:not(.tp-projector) .tp-stage:has(.tp-pic-img):not(:has(.tp-ladder.tp-all)) > .tp-left > .tp-head { grid-area: head; }
  main.tp-card:not(.tp-projector) .tp-stage:has(.tp-pic-img):not(:has(.tp-ladder.tp-all)) > .tp-left > .tp-pic { grid-area: pic; margin: 0; }
  main.tp-card:not(.tp-projector) .tp-stage:has(.tp-pic-img):not(:has(.tp-ladder.tp-all)) > .tp-left > .tp-text { grid-area: text; }
  main.tp-card:not(.tp-projector) .tp-ladder.tp-all .tp-qs { columns: 2; column-gap: 28px; }
  main.tp-card:not(.tp-projector) .tp-ladder.tp-all .tp-q { break-inside: avoid; }
}
/* A set opened from a basket code: which card this is, and the cards on either side */
.tp-set { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; margin-bottom: 12px; padding: 8px 10px;
  background: var(--paper); border: 2px solid var(--edge); }
.tp-set strong { font: var(--weight-heading) var(--text-body)/1.2 var(--ui); }
.tp-set .btn { display: inline-flex; align-items: center; min-height: 38px; text-decoration: none; color: var(--edge); }
.tp-set a:last-child { justify-self: end; }

/* ---- Card: the question ladder, one question at a time ------------------------------------------------------- */
.tp-ladder { background: var(--paper); border: 2px solid var(--edge); padding: 18px clamp(14px, 3vw, 28px) 16px; }
/* The controls as Ken set them (2026-12-02): Starter and Questions are dropdowns; Select, Hint, Print, Add and Full
   screen are square glyph buttons, raised so they read as buttons, in one row at the right. Hint is a toggle and
   shows on like the other toggles; Add in the basket is mustard. */
.tp-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-bottom: 14px; font-size: 14px; }
.tp-drop { display: inline-flex; align-items: center; gap: 8px; }
.tp-drop span { font-weight: 700; color: var(--soft); }
/* A select as wide as its chosen option ("All", not "One at a time"), so the toolbar stays one row in a 600px
   column (Ken, 2026-12-02: the buttons alone on a second row "肯定不行"). Browsers without field-sizing wrap as before. */
.tp-drop .pick { min-height: 40px; color: var(--edge); field-sizing: content; }
.tp-acts { display: flex; flex-wrap: wrap; flex: 0 0 auto; margin-left: auto; gap: 8px; }
.tp-act { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; box-shadow: var(--pop); }
.tp-act:active { transform: translate(2px, 2px); box-shadow: none; }
.tp-icon { width: 40px; min-height: 40px; padding: 0; justify-content: center; }
.tp-icon svg { width: 20px; height: 20px; }
.tp-icon.tp-add svg { width: 24px; height: 22px; }
.tp-qs { list-style: none; padding: 0; margin: 0; min-height: 210px; }
.tp-q { display: none; }
.tp-q.tp-on { display: block; }
.tp-group { font: 700 13px/1 var(--ui); text-transform: uppercase; letter-spacing: .06em; color: var(--soft); }
.tp-q[data-type="closed"] .tp-group { color: #1f5f99; } .tp-q[data-type="retell"] .tp-group { color: #7a3a8c; } .tp-q[data-type="open"] .tp-group { color: var(--leaf); }
.tp-q .tp-ask, .tp-dq .tp-ask { font: 700 clamp(22px, 2.2vw, 32px)/1.2 var(--ui); margin: 8px 0 12px; }
.tp-stem { font: 400 clamp(19px, 2vw, 26px)/1.3 var(--read); margin: 0; padding: 10px 14px; background: var(--surface); border-left: 6px solid var(--mustard); display: inline-block; }
.tp-stem:empty { display: none; }
.tp-words { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }
.tp-words span { font: 700 clamp(18px, 1.9vw, 24px)/1 var(--ui); padding: 12px 16px; background: var(--surface); border: 2px solid var(--edge); box-shadow: var(--pop); }
.tp-grown { display: none; margin-top: 14px; }
/* All questions: the whole ladder as a list; the current one is marked, the step buttons go */
.tp-ladder.tp-all .tp-q { display: grid; grid-template-columns: minmax(0, 1fr); column-gap: 10px; align-items: start;
  padding: 10px 10px 10px 14px; border-top: 1px solid var(--rule); cursor: pointer; }
.tp-ladder.tp-picking .tp-q { grid-template-columns: 26px minmax(0, 1fr); }
.tp-ladder.tp-picking .tp-q > :not(.tp-choose) { grid-column: 2; }
.tp-ladder.tp-all .tp-q:first-child, .tp-ladder.tp-all .tp-q.tp-gh0 { border-top: 0; }
/* One eyebrow per group (Ken, 2026-12-02): it heads the run, the questions under it go without */
.tp-ladder.tp-all .tp-q:not(.tp-gh) .tp-group { display: none; }
.tp-ladder.tp-all .tp-q.tp-gh:not(.tp-gh0) { margin-top: 12px; border-top: 2px solid var(--edge); padding-top: 14px; }
/* Select view: a box per question and the code below; unticked ones fade here and are gone from the other views */
.tp-choose { display: none; }
.tp-ladder.tp-all:not(.tp-picking) .tp-q.tp-off { display: none; }
.tp-ladder.tp-picking .tp-choose { display: block; grid-column: 1; grid-row: 1; padding-top: 2px; cursor: pointer; }
.tp-ladder.tp-all .tp-q.tp-gh .tp-choose { grid-row: 2; }
.tp-choose input { width: 20px; height: 20px; margin: 0; accent-color: var(--edge); cursor: pointer; }
.tp-ladder.tp-picking .tp-q.tp-off > :not(.tp-choose):not(.tp-group) { opacity: .38; }
.tp-ladder.tp-all .tp-q.tp-off { cursor: default; }
.tp-code { display: none; }
.tp-ladder.tp-picking .tp-code { display: block; margin-top: 18px; padding-top: 14px; border-top: 2px solid var(--edge); }
.tp-code p { margin: 0; }
.tp-code-head { font-size: 15px; color: var(--soft); }
.tp-code-head strong { color: var(--edge); }
.tp-code-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 8px 0 6px !important; }
#code-text { font: 800 clamp(22px, 2vw, 28px)/1.1 var(--ui); letter-spacing: .05em; padding: 8px 12px; background: var(--surface); border: 2px solid var(--edge); }
#code-copy { background: var(--mustard); }
#code-copy:disabled { opacity: .5; cursor: default; }
.tp-code-note { font-size: 14px; color: var(--soft); overflow-wrap: anywhere; }
.tp-code-bad { margin: 0 0 12px; padding: 8px 12px; border: 2px solid var(--tomato); color: var(--tomato); font-weight: 700; }
/* The clicked question is just boxed (Ken, 2026-12-02): no yellow bar */
.tp-ladder.tp-all .tp-q.tp-on { background: var(--surface); outline: 2px solid var(--edge); outline-offset: -2px; }
.tp-ladder.tp-all .tp-q .tp-ask { font-size: clamp(17px, 1.35vw, 20px); margin: 4px 0 6px; }
.tp-ladder.tp-all .tp-stem { font-size: clamp(16px, 1.2vw, 18px); padding: 5px 10px; }
.tp-ladder.tp-all .tp-words span { font-size: 16px; padding: 7px 10px; }
.tp-ladder.tp-all .tp-grown { margin-top: 6px; }
.tp-ladder.tp-all .tp-step { display: none; }
.tp-ladder.tp-all .tp-qs { min-height: 0; }
.tp-notes-on .tp-grown { display: block; }
.tp-note { margin: 6px 0 0; font-size: 16px; color: var(--soft); }
.tp-note q { font-family: var(--read); color: var(--edge); }
.tp-step { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; }
.tp-step button#next { background: var(--mustard); }
/* Prefixed names: browser extensions inject page-wide rules for plain class names such as dot (Ken's Chrome, 2026-12-02). */
.tp-dots { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; flex: 1 1 auto; min-width: 120px; }
.tp-dot { -webkit-appearance: none; appearance: none; flex: none; display: block; position: static; margin: 0; box-sizing: border-box; min-width: 14px; width: 14px; height: 14px; padding: 0; font-size: 0; line-height: 0; border: 2px solid var(--edge); background: var(--surface); border-radius: 50%; }
.tp-dot.tp-on { background: var(--edge); }
.tp-dot.tp-done { background: #8fb8de; }

.tp-about { margin-top: 20px; color: var(--soft); }
.tp-about summary { cursor: pointer; font-weight: 700; }
.tp-tag { display: inline-block; margin: 0 6px 6px 0; padding: 3px 8px; background: var(--paper-deep); border: 1px solid var(--rule); font-size: 13px; text-decoration: none; }
/* Two parts, each under a small heading: the themes as links, and Common Core one row a grade (Ken, 2026-12-02). */
.tp-about h3 { margin: 16px 0 8px; font: 700 12px/1.2 var(--ui); letter-spacing: .06em; text-transform: uppercase; color: var(--soft); }
.tp-about .tp-tags { margin: 0; }
.tp-std { display: grid; grid-template-columns: max-content 1fr; gap: 4px 14px; margin: 0; font-size: 14px; }
.tp-std dt { font-weight: 700; color: var(--edge); }
.tp-std dd { margin: 0; }
.tp-about .tp-also { margin: 10px 0 0; font-size: 14px; }

/* /standards/ and one page a curriculum (Ken, 2026-12-02: line the cards up with six curricula) */
.tp-currs { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; margin: 22px 0 0; }
.tp-currcard { display: grid; gap: 6px; align-content: start; padding: 16px; background: var(--paper); border: 2px solid var(--edge);
  color: var(--edge); text-decoration: none; }
.tp-currcard strong { font: 800 19px/1.2 var(--ui); }
.tp-currcard span { font: 400 15px/1.4 var(--ui); color: var(--soft); }
.tp-currcard .tp-n { font: 700 13px/1.3 var(--ui); margin-top: 4px; }
.tp-currcard:hover { background: var(--surface); box-shadow: var(--pop); }
.tp-jump { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 4px; }
.tp-jump a { padding: 5px 10px; border: 2px solid var(--edge); color: var(--edge); text-decoration: none; font: 700 14px/1.2 var(--ui); }
.tp-jump a:hover { background: var(--mustard); }
.tp-count { margin: 0 0 10px; font: 700 13px/1.3 var(--ui); color: var(--soft); }
.tp-stmts { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.tp-stmt { position: relative; padding: 14px 16px 12px; background: var(--paper); border: 2px solid var(--edge); scroll-margin-top: 16px; }
.tp-stmt p { margin: 0; }
.tp-stmt-text { padding-right: 76px; font: 400 17px/1.45 var(--read); color: var(--edge); }
.tp-code-id { font-family: var(--ui); margin-right: 4px; }
.tp-fit { position: absolute; top: 12px; right: 12px; padding: 3px 8px; font: 700 12px/1.2 var(--ui); border: 2px solid var(--edge); }
.tp-fit-full { background: var(--mustard); }
.tp-by, .tp-not, .tp-oncards { margin-top: 6px !important; font-size: 14px; color: var(--soft); }
.tp-not { padding-left: 10px; border-left: 4px solid var(--mustard); }
.tp-bylist { margin: 2px 0 0; padding-left: 18px; font-size: 14px; color: var(--soft); }
.tp-bylist li { margin: 1px 0; }
.tp-by { font-weight: 700; }
.tp-source { margin-top: 28px; font-size: 13px; color: var(--soft); }

/* ---- Projector mode (with or without full screen): the text and the ladder, nothing else --------------------- */
:fullscreen { background: var(--canvas); overflow: auto; }
body:has(.tp-projector) .top, body:has(.tp-projector) .foot { display: none; }
/* Full screen keeps the title in the story box (Ken, 2026-12-02), without the crumbs */
.tp-projector .tp-head .crumbs, .tp-projector .tp-choose, .tp-projector .tp-code, .tp-projector .tp-code-bad, .tp-projector .tp-q.tp-off { display: none !important; }
main.tp-card.tp-projector { width: 100%; max-width: none; padding: 28px 48px; }
.tp-projector .tp-about, .tp-projector .tp-lead { display: none; }
.tp-projector .tp-head h1 { margin: 0; font-size: clamp(26px, min(2.6vw, 4vh), 44px); line-height: 1.15; }
.tp-projector .tp-left > .tp-head { margin-bottom: 12px; }
/* Only Full screen (now Exit) stays among the controls */
.tp-projector .tp-controls > :not(.tp-acts), .tp-projector .tp-acts > :not(#full), .tp-projector .tp-grown { display: none !important; }
.tp-projector .tp-controls { justify-content: flex-end; margin-bottom: 0; }
.tp-projector .tp-acts { justify-content: flex-end; }
.tp-projector .tp-icon { width: 48px; min-height: 48px; }
.tp-projector .tp-read { font-size: clamp(20px, min(2.3vw, 3.25vh), 34px); line-height: 1.42; }
.tp-projector .tp-beats { gap: 18px; }
.tp-projector .tp-q .tp-ask { font-size: clamp(28px, 2.8vw, 44px); }
/* Full screen with every question showing: read from the back of the room too (Ken, 2026-12-02); the list
   scrolls inside its own column */
.tp-projector .tp-ladder.tp-all .tp-q .tp-ask { font-size: clamp(24px, 2vw, 34px); margin: 6px 0 8px; }
.tp-projector .tp-ladder.tp-all .tp-stem { font-size: clamp(20px, 1.6vw, 27px); padding: 6px 12px; }
.tp-projector .tp-ladder.tp-all .tp-group { font-size: 15px; }
.tp-projector .tp-ladder.tp-all .tp-words span { font-size: 20px; }
.tp-projector .tp-left > .tp-pic { max-height: 200px; }
.tp-projector .tp-left > .tp-pic.tp-pic-img { max-height: none; }
/* On a 720p projector the full-width picture pushed the last story line out of view (r05-01, 2026-12-02):
   in full screen the story and the questions get half the width each, and the picture gives way first, so the
   whole story fits without scrolling */
@media (min-width: 980px) { .tp-projector .tp-stage { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.tp-projector .tp-left > .tp-pic.tp-pic-img img { width: auto; max-width: 100%; max-height: 30vh; margin: 0 auto; }
@media (max-height: 800px) { .tp-projector .tp-left > .tp-pic.tp-pic-img img { max-height: 22vh; } }

/* ---- The basket (basket.js), as Phonics and Math Picnic's ---------------------------------------------------- */
.tray { top: var(--tray-top, 0px); }
.tray-cards { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; counter-reset: card; }
.tray-cards li { display: flex; align-items: center; gap: 4px; background: var(--surface); border: 1px solid var(--rule); counter-increment: card; }
.tray-cards li::before { content: counter(card); flex: none; width: 26px; text-align: center; font: var(--weight-heading) var(--text-label)/1 var(--ui); color: var(--soft); }
.tray-cards a { flex: 1; padding: 8px 4px; color: var(--edge); font: 600 16px/1.25 var(--ui); text-decoration: none; }
.tray-cards a:hover { text-decoration: underline; }
.tray-cards button { min-width: 36px; min-height: 38px; padding: 0 6px; background: none; border: 0; font: var(--weight-body) 18px/1 var(--ui); color: var(--soft); cursor: pointer; }
.tray-cards button:hover { color: var(--tomato); background: var(--paper-deep); }
.tray-code { display: flex; align-items: baseline; gap: 10px; margin: 0; }
.tray-code span { font-size: var(--text-caption); font-weight: var(--weight-control); color: var(--soft); }
.tray-code output { font: 800 17px/1.2 var(--ui); letter-spacing: .04em; overflow-wrap: anywhere; }
.tray-foot .go { flex-wrap: wrap; }
.tray-foot .go .btn { padding: 0 12px; }
.tray-foot .go .save { flex: 1 1 100%; }
.tray-foot .go .btn:not(.save) { flex: 1; }
.tray-done { overflow-wrap: anywhere; }
/* Add, on a card page, and the basket on a tile: mustard while the card is in. As on Phonics Picnic, they are there
   only while the header's basket is open (body.picking, Ken 2026-12-02); with it shut a card is just a card. */
body:not(.picking) :is(.tp-add, .tp-tile-add) { display: none; }
/* The tile's basket fills the right end of its banner, the banner's height exactly (8px + 13px + 8px), inside the
   tile's border, with a rule of its own on the left. */
.tp-tile-add { position: absolute; top: 2px; right: 2px; display: grid; place-items: center; width: 40px; height: 29px; padding: 0;
  background: var(--paper); border: 0; border-left: 2px solid var(--edge); cursor: pointer; }
.tp-tile-add svg { width: 20px; height: 18px; }
.tp-tile-add:hover { background: var(--paper-hover); }
.tp-add[aria-pressed="true"], .tp-tile-add[aria-pressed="true"] { background: var(--mustard); color: var(--edge); }
/* A card in the basket is tinted mustard all over, as Phonics marks picked words (no ring inside the frame) */
.picking .tp-tile.tp-in a { background: color-mix(in srgb, var(--mustard) 45%, var(--surface)); }
/* As Phonics Picnic's header (phonicspicnic src/styles/picnic.css): the count is a round mustard badge, the header
   runs on over the open tray on a wide screen, and a pressed basket button keeps dark text on mustard. */
.list-controls { display: flex; align-items: center; gap: 4px; flex: none; }
.list-controls .n { position: absolute; top: -5px; right: -5px; display: grid; place-items: center; box-sizing: border-box; min-width: 20px; height: 20px;
  padding: 0 5px; background: var(--mustard); color: var(--edge); border: 2px solid var(--edge); border-radius: 999px; font: var(--weight-control) 11px/1 var(--ui); font-variant-numeric: tabular-nums; }
.list-controls .n[hidden] { display: none; }
@media (min-width: 1180px) { body.picking > .top.site { margin-right: calc(-1 * var(--tray-w)); } }
@media (max-width: 700px) { .top.site > .list-controls { order: 3; } }

/* ---- Dark (appearance.css) on Talk Picnic's own parts ---------------------------------------------------------
   The kind colors and question-group colors are lighter on a dark page so they still read. */
html[data-color-scheme="dark"] .tp-kind-narrate { --kc: #c9a2d9; }
html[data-color-scheme="dark"] .tp-kind-retell { --kc: #8fb8de; }
html[data-color-scheme="dark"] .tp-q[data-type="closed"] .tp-group { color: #8fb8de; }
html[data-color-scheme="dark"] .tp-q[data-type="retell"] .tp-group { color: #c9a2d9; }
html[data-color-scheme="dark"] .tp-tile .tp-kind, html[data-color-scheme="dark"] .tp-kindcard .tp-kind { color: var(--canvas); }
/* The drawings are on white paper: on a dark page they keep a little of their own light */
html[data-color-scheme="dark"] .tp-pic.tp-pic-img img { filter: brightness(.92); }
/* The dropdown chevron in the light ink */
html[data-color-scheme="dark"] .tp-drop .pick { background-image: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 12 8%27%3E%3Cpath d=%27M1 1.5l5 5 5-5%27 fill=%27none%27 stroke=%27%23ded4be%27 stroke-width=%272%27 stroke-linecap=%27square%27/%3E%3C/svg%3E"); }

/* Feedback (site/feedback.js), Phonics Picnic's panel (src/styles/picnic.css there), square like the rest */
.fb { position: fixed; right: 16px; bottom: 16px; z-index: 30; font-family: var(--ui); }
.fb[hidden], body:has(main.tp-card.tp-projector) .fb { display: none; }
.fb-open { display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 0 12px; background: var(--paper); color: inherit; border: 2px solid var(--outline); box-shadow: var(--pop); font: inherit; font-size: 13px; font-weight: var(--weight-control); cursor: pointer; }
.fb-open span { font-size: 16px; line-height: 1; }
.fb-open:hover { background: var(--paper-deep); }
.fb-panel { position: absolute; right: 0; bottom: calc(100% + 10px); width: min(300px, calc(100vw - 32px)); padding: 14px 14px 12px; background: var(--paper); border: 2px solid var(--outline); box-shadow: var(--pop); font-size: 13px; }
.fb-panel p { margin: 0; }
.fb-title { font-size: 15px; font-weight: var(--weight-heading); }
.fb-sub { color: var(--soft); font-size: 12px; margin-bottom: 10px !important; }
.fb-faces { display: flex; gap: 8px; }
.fb-faces button { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 0 7px; background: var(--paper); color: inherit; border: 2px solid var(--rule); font: inherit; font-size: 12px; cursor: pointer; }
.fb-faces button b { font-size: 22px; line-height: 1; font-weight: 400; }
.fb-faces button:hover { background: var(--paper-deep); }
.fb-faces button.on { border-color: var(--outline); background: var(--paper-deep); }
.fb-why { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px; }
.fb-why[hidden], .fb-panel[hidden] { display: none; }
.fb-why span { color: var(--soft); font-size: 12px; margin-right: 2px; }
.fb-why button { padding: 4px 9px; background: none; color: inherit; border: 1px dashed var(--outline); font: inherit; font-size: 12px; cursor: pointer; }
.fb-why button:hover { background: var(--paper-deep); }
.fb-done { min-height: 1.2em; margin-top: 8px !important; font-weight: var(--weight-label); }
.fb-done:empty { display: none; }
@media print { .fb { display: none; } }

/* The home page's first screen (Ken, 2026-12-02): the words, then one real card, then the two buttons. The card is
   a picture, its short story and one question with its starter, all from one Talk it over card, a link to it. Wide:
   the card on the right beside the words and buttons. Narrow: under the steps, without the picture. */
.tp-hero { display: grid; gap: 22px; max-width: none; }
.tp-hero-text .tp-steps { margin-bottom: 0; }
.tp-hero-go .tp-cta { margin-top: 0; }
.tp-sample { display: block; background: var(--paper); border: 2px solid var(--outline); box-shadow: var(--pop); color: var(--edge); text-decoration: none; }
.tp-sample:hover { background: var(--surface); }
.tp-sample .tp-pic { margin: 0; border: 0; border-bottom: 2px solid var(--outline); padding: 0; background: none; }
.tp-sample-body { display: grid; gap: 10px; padding: clamp(16px, 2.2vw, 26px); }
.tp-sample-kind { font: 800 13px/1 var(--ui); letter-spacing: .06em; text-transform: uppercase; color: var(--soft); }
.tp-sample .tp-read { font-size: clamp(17px, 1.3vw, 20px); line-height: 1.5; }
.tp-sample .tp-ask { margin: 4px 0 0; font: 800 clamp(1.25rem, 2vw, 1.7rem)/1.2 var(--ui); }
.tp-sample .tp-stem { margin: 0; justify-self: start; }
@media (max-width: 1099px) { .tp-sample .tp-pic { display: none; } }
@media (min-width: 1100px) {
  .tp-hero { grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); grid-template-rows: 1fr auto auto 1fr; column-gap: clamp(32px, 4vw, 72px); row-gap: 26px; }
  .tp-hero-text { grid-area: 2 / 1; }
  .tp-hero-go { grid-area: 3 / 1; }
  .tp-sample { grid-area: 1 / 2 / 5; align-self: center; }
}

/* The three steps under the home page's heading: Read, Ask, Listen, with an arrow between */
.tp-steps { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 0; margin: 6px 0 22px; padding: 0; list-style: none; }
.tp-steps li { display: inline-flex; align-items: center; gap: 8px; font: 800 1.15rem/1 var(--ui); color: var(--edge); }
.tp-steps li + li::before { content: "\2192"; margin: 0 16px; font-weight: 400; color: var(--soft); }
.tp-steps svg { flex: none; }
