/* =========================================
   resource-10.css -- the Vocabulary Packet Builder ONLY (V:\cw\lifeprint\teachers\resource-10.htm; mission LP-TEACHERS-2026-11,
   directive RLP-TEACHERS-01, Engine RLP 10, 2026-11-02). Layers on lifeprint-style.css and lifeprint-home.css (body.home scope).
   Every selector here is scoped to body.lpt or an .lpt-* class, so nothing reaches any other page. Rules follow
   V:\cw\UI-STYLE-DIRECTIVE.md: 18 px+ Arial, bold buttons, 2-3 px black borders, blue only on underlined links, 44 px touch
   targets, :focus-visible ring, hover as an enhancement only, the sign media as large as the screen allows, no :visited recolouring.
   The @media print block at the end is the worksheet's print layout (there is no print stylesheet on the site).
   Encoding: ASCII. Line endings: CRLF.
   ========================================= */

/* --- base --- */
body.lpt [hidden] { display: none !important; }
body.lpt main { padding: 0 10px; }
body.lpt main p { margin: 0 0 10px; }
body.lpt h1 { font-weight: bold; font-size: 1.7em; line-height: 1.2; margin: 6px 0 4px; text-align: center; }
body.lpt h2 { font-size: 1.35em; margin: 18px 0 8px; }
body.lpt h3 { font-size: 1.15em; margin: 12px 0 6px; }
body.lpt textarea:focus-visible, body.lpt [tabindex]:focus-visible, body.lpt label:focus-visible { outline: 3px solid #1a73e8; outline-offset: 2px; }
.lpt-lead { text-align: center; max-width: 46em; margin: 0 auto 10px; }
.lpt-status { font-weight: bold; margin: 6px 0; min-height: 1.4em; }
.lpt-error { font-weight: bold; color: #cc0000; border: 3px solid #cc0000; border-radius: 10px; padding: 10px 14px; margin: 8px 0; background: #fff; }
.lpt-error::before { content: "! "; }
.lpt-note { border: 2px solid #000; border-radius: 10px; padding: 8px 12px; margin: 8px 0; background: #fff; }
.lpt-small { font-size: 18px; }

/* --- the entry box --- */
.lpt-entry { display: block; width: 100%; box-sizing: border-box; min-height: 190px; padding: 10px 12px; font: inherit; font-size: 20px; line-height: 1.4; border: 3px solid #000; border-radius: 12px; background: #fff; color: #000; resize: vertical; }
.lpt-entry__label { display: block; font-weight: bold; font-size: 20px; margin: 10px 0 4px; }
.lpt-btnrow { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.lpt-btnrow .home-btn { flex: 0 1 auto; min-width: 160px; }
body.lpt .home-btn { cursor: pointer; text-decoration: none; }
body.lpt button.home-btn { font-family: inherit; }
body.lpt .home-btn:hover { background: #ffff00; color: #000; }
body.lpt .home-btn--primary:visited { color: #fff; }
body.lpt .home-btn--primary:hover { background: #ffff00; color: #000; }
body.lpt .home-btn[aria-pressed="true"] { background: #000; color: #fff; }

/* --- word cards and candidate tiles --- */
.lpt-words { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.lpt-word { border: 3px solid #000; border-radius: 14px; padding: 10px 12px; background: #fff; }
.lpt-word__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin: 0 0 6px; }
.lpt-word__word { font-size: 24px; font-weight: bold; }
.lpt-word__label { font-size: 20px; }
.lpt-word__note { margin: 0 0 6px; }
.lpt-cands { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.lpt-cand { margin: 0; }
.lpt-cand__pick { display: block; width: 100%; box-sizing: border-box; min-height: 48px; padding: 6px; font: inherit; font-size: 18px; font-weight: bold; text-align: center; color: #000; background: #fff; border: 3px solid #000; border-radius: 12px; cursor: pointer; }
.lpt-cand__pick:hover { background: #ffff00; }
.lpt-cand__pick[aria-pressed="true"] { border-color: #008a2e; box-shadow: inset 0 0 0 3px #008a2e; }
.lpt-cand__pick img { display: block; width: 100%; max-width: 160px; height: auto; aspect-ratio: 1 / 1; margin: 0 auto 4px; border: 2px solid #000; border-radius: 8px; background: #f4f4f4; }
.lpt-cand__title { display: block; line-height: 1.2; overflow-wrap: anywhere; }
.lpt-cand__chosen { display: block; color: #008a2e; }
.lpt-cand__pick[aria-pressed="false"] .lpt-cand__chosen { visibility: hidden; }
.lpt-tag { display: inline-block; border: 2px solid #000; border-radius: 8px; padding: 2px 8px; margin: 2px 0; font-size: 18px; background: #f7f7f7; }
.lpt-cand__link { display: inline-block; padding: 10px 4px; min-height: 44px; box-sizing: border-box; line-height: 24px; font-size: 18px; }
.lpt-keep { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: bold; }
.lpt-keep input { flex: 0 0 44px; width: 44px; height: 44px; margin: 0; }
/* blue is for links: a white <button> (Start over, Previous, Show all, the layout switch) reads black; the primary buttons stay white on black */
body.lpt button.home-btn { color: #000; }
body.lpt button.home-btn--primary { color: #fff; }

/* --- the packet bar --- */
.lpt-packet { border: 3px solid #000; border-radius: 14px; padding: 12px 14px; margin: 16px 0; background: #fff; }
.lpt-packet h2 { margin-top: 0; }
.lpt-url { display: block; width: 100%; box-sizing: border-box; min-height: 48px; padding: 8px 12px; font: inherit; font-size: 18px; border: 2px solid #000; border-radius: 10px; background: #fff; color: #000; }
.lpt-packet__row { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-start; margin: 10px 0 0; }
.lpt-qr { flex: 0 0 auto; border: 3px solid #000; border-radius: 12px; padding: 8px; background: #fff; }
.lpt-qr svg { display: block; width: 240px; height: 240px; }
.lpt-qr p { margin: 6px 0 0; text-align: center; font-size: 18px; max-width: 240px; }
.lpt-packet__views { flex: 1 1 260px; display: grid; gap: 8px; align-content: start; }
.lpt-packet__views .home-btn { display: flex; }
/* a 320 px phone has 270 px of content: the packet box and the QR frame slim down so the 240 px symbol still fits (TR-14) */
@media (max-width: 360px) {
  .lpt-packet { padding-left: 5px; padding-right: 5px; }
  .lpt-qr { padding: 4px; border-width: 2px; }
}
/* long unbreakable tokens (the citation URL, the permission page address) wrap instead of widening the page */
body.lpt main p, body.lpt main li, .lpt-page__foot { overflow-wrap: anywhere; }

/* --- the display view --- */
.lpt-stage { text-align: center; }
.lpt-stage__media { margin: 0 auto 8px; max-width: 720px; }
.lpt-stage__media img { display: block; width: 100%; max-width: 720px; height: auto; margin: 0 auto; border: 3px solid #000; border-radius: 14px; background: #f4f4f4; }
.lpt-stage__media img.lpt-stage__still { max-width: 480px; }
.lpt-video { display: flex; align-items: center; justify-content: center; width: 100%; aspect-ratio: 16 / 9; box-sizing: border-box; padding: 16px; font: inherit; font-size: 24px; font-weight: bold; color: #fff; background: #000; border: 3px solid #000; border-radius: 14px; cursor: pointer; }
.lpt-video:hover { background: #ffff00; color: #000; }
.lpt-video::before { content: ""; width: 0; height: 0; border-style: solid; border-width: 16px 0 16px 28px; border-color: transparent transparent transparent currentColor; margin-right: 14px; }
.lpt-stage__media iframe { display: block; width: 100%; aspect-ratio: 16 / 9; height: auto; border: 3px solid #000; border-radius: 14px; margin: 0; }
.lpt-nopic { display: flex; align-items: center; justify-content: center; text-align: center; width: 100%; aspect-ratio: 4 / 3; box-sizing: border-box; padding: 16px; border: 3px dashed #000; border-radius: 14px; font-size: 22px; font-weight: bold; background: #fff; }
.lpt-stage__word { font-size: clamp(28px, 8vw, 48px); font-weight: bold; line-height: 1.15; margin: 4px 0 0; overflow-wrap: anywhere; }
.lpt-stage__label { font-size: 24px; margin: 2px 0 6px; }
.lpt-stage__count { font-size: 20px; font-weight: bold; margin: 0 0 8px; }
.lpt-stage__nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0 0 10px; }
.lpt-stage__nav .home-btn { flex: 1 1 120px; max-width: 240px; }
@media (max-width: 600px) {
  /* .page-wrap pads 15 px and main 10 px: 25 px each side to the screen edge (the home video's arithmetic) */
  .lpt-stage__media { margin-left: -25px; margin-right: -25px; max-width: none; }
  .lpt-stage__media img, .lpt-stage__media iframe, .lpt-video, .lpt-nopic { border-radius: 0; border-left: 0; border-right: 0; max-width: none; }
  .lpt-stage__media img.lpt-stage__still { max-width: none; }
}
.lpt-grid { list-style: none; margin: 0 0 12px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px; }
.lpt-grid button { display: block; width: 100%; box-sizing: border-box; min-height: 48px; padding: 6px; font: inherit; font-size: 20px; font-weight: bold; color: #000; background: #fff; border: 3px solid #000; border-radius: 12px; cursor: pointer; }
.lpt-grid button:hover { background: #ffff00; }
.lpt-grid img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; margin: 0 0 4px; border: 2px solid #000; border-radius: 8px; background: #f4f4f4; }

/* --- the worksheet view --- */
.lpt-sheet { margin: 0 0 12px; }
.lpt-page { border: 2px solid #000; border-radius: 12px; padding: 12px; margin: 0 0 14px; background: #fff; }
.lpt-page__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 8px 16px; border-bottom: 2px solid #000; padding: 0 0 8px; margin: 0 0 10px; }
.lpt-page__title { font-size: 22px; font-weight: bold; margin: 0; }
.lpt-page__lines { font-size: 18px; margin: 0; flex: 1 1 260px; }
.lpt-page__qr svg { display: block; width: 120px; height: 120px; }
.lpt-page__qr p { margin: 2px 0 0; font-size: 18px; line-height: 1.2; text-align: center; max-width: 120px; }
.lpt-sheet__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 700px) { .lpt-sheet__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.lpt-item { border: 2px solid #000; border-radius: 10px; padding: 8px; text-align: center; background: #fff; }
.lpt-item__num { display: inline-block; min-width: 32px; border: 2px solid #000; border-radius: 8px; font-weight: bold; font-size: 20px; margin: 0 0 4px; }
.lpt-item img { display: block; width: auto; max-width: 100%; max-height: 180px; height: auto; margin: 0 auto 6px; }
.lpt-item__box { display: flex; align-items: center; justify-content: center; height: 150px; margin: 0 0 6px; border: 2px dashed #000; border-radius: 8px; font-size: 18px; padding: 6px; }
.lpt-item__word { font-size: 22px; font-weight: bold; line-height: 1.2; overflow-wrap: anywhere; }
.lpt-item__label { font-size: 18px; }
.lpt-item__line { height: 40px; border-bottom: 2px solid #000; margin: 6px 6px 0; }
.lpt-item__as { font-size: 18px; color: #000; margin: 4px 0 0; }
.lpt-sheet__words { columns: 2; column-gap: 24px; font-size: 22px; font-weight: bold; margin: 12px 0 0; padding: 0 0 0 28px; }
.lpt-sheet__words li { break-inside: avoid; margin: 0 0 6px; }
.lpt-key { font-size: 20px; }
.lpt-page__foot { border-top: 2px solid #000; margin: 12px 0 0; padding: 8px 0 0; font-size: 18px; }
.lpt-page__foot p { margin: 0 0 4px; }

/* --- the quiz view --- */
.lpt-quiz .lpq { margin: 12px 0; }
/* the house quiz stylesheet shrinks Restart / Back / Next and the Question / Score pills to 34 px and 16 px on phones (its own rule; the lesson
   quizzes show the same -- noted for the house). On this page they keep the 44 px / 18 px floor; nothing in css\ changes. */
body.lpt .lpt-quiz .lpq__btn, body.lpt .lpt-quiz .lpq__pill { min-height: 44px; font-size: 18px; padding: 8px 12px; box-sizing: border-box; display: inline-flex; align-items: center; }
.lpt-quiz__skipped { font-size: 20px; }
.lpt-quiz__msg { font-size: 22px; font-weight: bold; border: 3px solid #000; border-radius: 12px; padding: 12px 14px; }

/* --- footer --- */
body.lpt footer { text-align: center; }
body.lpt footer p { margin: 4px 0; }
body.lpt footer a { text-decoration: underline; display: inline-block; padding: 10px 6px; min-height: 44px; box-sizing: border-box; line-height: 24px; }
.lpt-attrib { font-weight: bold; }

/* --- PRINT: the worksheet only --- */
@media print {
  @page { margin: 12mm; }
  body.lpt { font-size: 12pt; }
  body.lpt header, body.lpt footer, body.lpt .skip-link, body.lpt .lpt-noprint, body.lpt #lpt-build, body.lpt #lpt-display, body.lpt #lpt-quiz { display: none !important; }
  /* the page's own h1, brand line, lead and status lines stay on screen; on paper the sheet carries its own title (they pushed page 1's footer over) */
  body.lpt main > h1, body.lpt main > p, body.lpt main > noscript { display: none !important; }
  body.lpt .page-wrap { max-width: none; padding: 0; }
  body.lpt main { padding: 0; }
  body.lpt #lpt-worksheet { display: block !important; }
  .lpt-page { border: 0; border-radius: 0; padding: 0; margin: 0; break-after: page; page-break-after: always; }
  .lpt-page:last-child { break-after: auto; page-break-after: auto; }
  .lpt-page__head { border-bottom: 1pt solid #000; padding-bottom: 2mm; margin-bottom: 3mm; gap: 2mm 6mm; }
  .lpt-page__title { font-size: 14pt; }
  .lpt-page__lines { font-size: 11pt; }
  .lpt-page__qr svg { width: 40mm; height: 40mm; }
  .lpt-page__qr p { font-size: 9pt; max-width: 40mm; line-height: 1.1; }
  .lpt-sheet__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3mm; }
  .lpt-item { border: 1pt solid #000; border-radius: 3mm; padding: 1.5mm; break-inside: avoid; page-break-inside: avoid; }
  .lpt-item img { max-height: 28mm; margin-bottom: 1mm; }
  .lpt-item__box { height: 25mm; font-size: 9pt; margin-bottom: 1mm; }
  .lpt-item__num { font-size: 10pt; min-width: 6mm; margin-bottom: 0.5mm; line-height: 1.2; }
  .lpt-item__word { font-size: 12pt; line-height: 1.1; }
  .lpt-item__label { font-size: 9.5pt; line-height: 1.1; }
  .lpt-item__line { height: 6mm; margin: 1mm 2mm 0; border-bottom: 1pt solid #000; }
  .lpt-item__as { display: none; }
  .lpt-sheet__words { font-size: 13pt; margin-top: 3mm; }
  .lpt-sheet__words li { margin-bottom: 1mm; }
  .lpt-page__foot { border-top: 1pt solid #000; margin-top: 2.5mm; padding-top: 1mm; font-size: 8pt; line-height: 1.2; }
  .lpt-page__foot p { margin: 0 0 0.5mm; }
  .lpt-key { font-size: 12pt; }
  body.lpt a { color: #000; text-decoration: none; }
}
