/* Teacher pages (rule J), in the lessons' dark "Instrument" look (rule H; Paul chose "Look A",
   24 November 2026): graphite page, dark cards with hairline borders, teal small labels, one
   blue-to-teal button for the way forward, amber only for "look here" (the pause points).
   The page sits inside the site's dark look (front matter look: dark), whose colours it uses.
   One sheet for every teacher page; each page is one <div class="tp">. Made by src/teachers/lesson.njk. */

.tp { --line: #262d3b; --line2: #303849; --card: #161b26; --card2: #1b2130; --well: #0a0d14;
  --text: #e9ebf1; --soft: #b4bbcb; --mute: #8d96aa; --teal: #5fd3c6; --amber: #e8a33d;
  --go: linear-gradient(100deg, #3343c4, #2c6fbe 55%, #1aa3a0);
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  color: var(--text); font-family: var(--body, "Inter Tight", system-ui, sans-serif); font-size: 1rem; line-height: 1.55;
  padding: 20px 14px 56px; }
.tp-in { max-width: 720px; margin: 0 auto; display: grid; gap: 14px; }
.tp p { margin: 0 0 10px; }
.tp a { color: var(--teal); }

/* small labels in letter-spaced capitals, teal (rule H2) */
.tp-kick, .look-dark .tp h2.tp-kick { display: block; margin: 0 0 10px; font: 600 0.78rem/1.3 var(--body, "Inter Tight", sans-serif); letter-spacing: 0.14em; text-transform: uppercase; color: var(--teal); }

/* the top: name, one line, the lesson's picture, the two main buttons */
.tp-hero { display: grid; gap: 14px; }
.tp-hero h1 { margin: 0; font-family: var(--display, "Newsreader", Georgia, serif); font-weight: 500; font-size: clamp(2rem, 6vw, 2.6rem); line-height: 1.1; letter-spacing: -0.01em; color: var(--text); }
.tp-line { margin: 8px 0 0 !important; color: var(--soft); font-size: 1.05rem; }
.tp-bezel { border-radius: 14px; border: 1px solid var(--line2); background: radial-gradient(#151b45, #070918); padding: 6px; }
.tp-bezel img, .tp-bezel .hero-anim { display: block; width: 100%; height: auto; border-radius: 9px; }
.tp-open { margin: 10px 0 0 !important; }
.tp-open a { font-weight: 600; }

/* buttons (rule H1a): primary blue-to-teal, secondary dark with a hairline border */
.tp-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 18px; border-radius: 10px;
  font: 600 1rem/1.2 var(--body, "Inter Tight", sans-serif); color: var(--text) !important; text-decoration: none; cursor: pointer;
  background: var(--card2); border: 1px solid var(--line2); transition: filter .12s ease, transform .12s ease; }
.tp-btn:hover { filter: brightness(1.15); }
.tp-btn:active { transform: translateY(1px); }
.tp-btn:focus-visible { outline: 3px solid #8fe3d8; outline-offset: 2px; }
.tp-btn.is-go { color: #fff !important; background: var(--go); border-color: rgba(255,255,255,.12); box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 6px 18px -8px rgba(26,163,160,.6); }

/* cards */
.tp-card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.tp-card > :last-child { margin-bottom: 0; }
.tp-act { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.tp-act .tp-btn { flex: 1 1 200px; }
.tp-done { margin: 10px 0 0 !important; font-size: 0.95rem; color: var(--soft); }
.tp-done:empty { display: none; }

/* share: QR code (always on white, so phones can read it) and the link */
.tp-share { display: grid; grid-template-columns: 132px 1fr; gap: 14px; align-items: start; }
.tp-qr { width: 132px; height: 132px; background: #fff; border-radius: 10px; padding: 6px; box-sizing: border-box; }
.tp-qr svg { display: block; width: 100%; height: 100%; }
.tp-label { display: block; margin: 4px 0 6px; font-size: 0.88rem; color: var(--mute); }
.tp-code { width: 100%; box-sizing: border-box; font: 500 0.86rem/1.45 var(--mono); color: #cfd6e4; background: var(--well);
  border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; resize: none; }
input.tp-code { min-height: 44px; }
@media (max-width: 420px) { .tp-share { grid-template-columns: 1fr; } .tp-qr { width: 160px; height: 160px; } }

/* what's in it: the Learn steps, with the pause points in amber ("look here", rule H3) */
.tp-steps, .tp-list { margin: 0; padding-left: 22px; }
.tp-steps li, .tp-list li { margin-bottom: 6px; }
.tp-pause { display: block; color: var(--amber); font-weight: 600; }
.tp-then { margin: 10px 0 0 !important; color: var(--mute); font-size: 0.95rem; }

/* where it fits */
.tp-facts { display: grid; grid-template-columns: 120px 1fr; gap: 8px 14px; margin: 0; }
.tp-facts dt { color: var(--mute); }
.tp-facts dd { margin: 0; }
@media (max-width: 380px) { .tp-facts { grid-template-columns: 1fr; gap: 2px; } .tp-facts dd { margin-bottom: 8px; } }

/* the QR code full screen, for the board */
.tp-qrfull { position: fixed; inset: 0; z-index: 1000; background: rgba(7,9,14,.94); display: grid; place-items: center; padding: 16px; }
.tp-qrfull[hidden] { display: none; }
.tp-qrfull-in { background: #fff; border-radius: 18px; padding: 24px; text-align: center; max-width: min(92vw, 80vh); width: 100%; box-sizing: border-box; }
.tp-qr--big { width: 100%; height: auto; aspect-ratio: 1; padding: 0; }
.tp-qrfull-name { font: 600 clamp(1.4rem, 4vw, 2.4rem)/1.15 var(--display, "Newsreader", Georgia, serif); color: #0e1118; margin: 0 0 12px; }
.tp-qrfull-link { font: 500 clamp(0.95rem, 2.2vw, 1.3rem)/1.3 var(--mono); color: #262d3b; margin: 12px 0 16px; word-break: break-all; }

/* the three keys (Paul, 24 November 2026): machined keys like the lesson's controls (rule H1a) */
.tp-keys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.tp-key { display: flex; flex-direction: column; justify-content: space-between; gap: 10px; min-height: 104px; padding: 12px;
  border-radius: 12px; border: 1px solid var(--line2); color: var(--text) !important; text-decoration: none; text-align: left; cursor: pointer;
  font: 600 1rem/1.2 var(--body, "Inter Tight", sans-serif);
  background: linear-gradient(180deg, #1f2636, #171c28); box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 3px 0 #0a0d14;
  transition: filter .12s ease, transform .12s ease, box-shadow .12s ease; }
.tp-key svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tp-key:hover { filter: brightness(1.15); }
.tp-key:active { transform: translateY(2px); box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 1px 0 #0a0d14; }
.tp-key:focus-visible { outline: 3px solid #8fe3d8; outline-offset: 2px; }
.tp-key.is-go { background: var(--go); border-color: rgba(255,255,255,.14); color: #fff !important; }
.tp-key[aria-expanded="true"] { border-color: var(--teal); box-shadow: inset 0 0 0 1px var(--teal), 0 1px 0 #0a0d14; transform: translateY(2px); }
.tp-panel[hidden] { display: none; }

/* the exam in one picture: AQA's 40 papers as a grid of squares */
.tp-grid { margin: 6px 0 0; }
.tp-grid svg { display: block; width: 100%; max-width: 380px; height: auto; }
.tp-g-h, .tp-g-r { fill: var(--mute); font: 500 14px var(--body, "Inter Tight", sans-serif); }
.tp-g-yes { fill: var(--teal); }
.tp-g-no { fill: none; stroke: #3a4254; stroke-width: 1.5; }
.tp-grid figcaption { margin-top: 8px; font-size: 0.95rem; color: var(--soft); }

/* would worksheets help? */
.tp-ask { border-style: dashed; border-color: #3a4254; }

/* on a laptop: the picture beside the name */
@media (min-width: 860px) {
  .tp-in { max-width: 960px; }
  .tp-hero { grid-template-columns: 1fr 1fr; align-items: center; column-gap: 28px; }
  .tp-key { min-height: 88px; flex-direction: row; align-items: center; justify-content: flex-start; font-size: 1.05rem; }
}
