/* Styles for work-sample pages. Loaded after site.css. */

.fictional {
  font-size: 0.9rem; color: var(--ink-soft); border: 1px solid var(--rule); background: var(--surface);
  border-radius: 6px; padding: 0.7rem 1rem; margin: 1.5rem 0;
}
.download {
  display: inline-flex; align-items: center; gap: 0.5rem; margin: 0.5rem 0 1rem;
  background: var(--ink); color: #fff; text-decoration: none; padding: 0.6rem 1rem; border-radius: 4px; font-size: 0.95rem;
}
.download:hover { background: var(--accent); color: #fff; }

.case h2:first-of-type { margin-top: 2.5rem; }
.case dl { margin: 0; }
.case dt { font-family: var(--serif); font-weight: 600; font-size: 1.15rem; margin-top: 1.5rem; }
.case dd { margin: 0.35rem 0 0; }
.case dd ul { margin-top: 0.35rem; }

.sample-label {
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent); margin: 3.5rem 0 1rem; border-top: 1px solid var(--rule); padding-top: 2rem;
}

/* ---------- Paper sheet (job aid, lesson plan) ---------- */
.sheet {
  background: #fff; border: 1px solid var(--rule); border-radius: 4px;
  box-shadow: 0 1px 2px rgba(27, 42, 65, 0.06), 0 8px 24px rgba(27, 42, 65, 0.06);
  padding: 2rem; color: var(--ink); font-size: 0.95rem; line-height: 1.5;
}
@media (max-width: 560px) { .sheet { padding: 1.25rem; } }
.sheet h1 { font-size: 1.6rem; margin: 0 0 0.25rem; }
.sheet h2 { font-size: 1.2rem; margin: 1.5rem 0 0.6rem; }
.sheet h3 { font-size: 1.05rem; margin: 1.25rem 0 0.4rem; }
.sheet .sub { color: var(--ink-soft); margin: 0 0 1rem; }
.sheet-head { border-bottom: 2px solid var(--ink); padding-bottom: 0.75rem; margin-bottom: 1rem; }
.sheet-foot { border-top: 1px solid var(--rule); margin-top: 1.25rem; padding-top: 0.6rem; font-size: 0.8rem; color: var(--ink-soft); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }

/* Job aid */
.ja-before { background: var(--accent-soft); border-radius: 4px; padding: 0.6rem 0.9rem; margin-bottom: 1rem; }
.ja-before strong { display: inline; }
.ja-grid { display: grid; grid-template-columns: 1fr; gap: 0 2rem; }
@media (min-width: 760px) { .ja-grid { grid-template-columns: 1fr 1fr; } }
.task { break-inside: avoid; margin-bottom: 1rem; }
.task h2 { display: flex; align-items: center; gap: 0.6rem; margin: 0.5rem 0 0.6rem; font-size: 1.1rem; }
.task h2 .letter {
  flex: none; width: 1.7rem; height: 1.7rem; border-radius: 4px; background: var(--ink); color: #fff;
  font-family: var(--sans); font-size: 0.9rem; display: inline-flex; align-items: center; justify-content: center;
}
ol.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; }
ol.steps > li { counter-increment: step; position: relative; padding-left: 2.2em; margin-bottom: 0.5em; min-height: 1.7em; }
ol.steps > li::before {
  content: counter(step); position: absolute; left: 0; top: 0; width: 1.6em; height: 1.6em; border-radius: 50%;
  border: 1.5px solid var(--accent); color: var(--accent); font-weight: 700; font-size: 0.85em;
  display: flex; align-items: center; justify-content: center;
}
.ui {
  font-family: var(--sans); font-size: 0.85em; font-weight: 600; background: var(--accent-soft); color: var(--ink);
  border: 1px solid #cfd6e3; border-radius: 3px; padding: 0 0.3rem; white-space: nowrap;
}
.check { color: #24613a; font-weight: 600; }
.warn { border-left: 3px solid #b4541a; background: #fbf1ea; padding: 0.35rem 0.6rem; margin: 0.3rem 0 0; font-size: 0.9em; }
.trouble { border: 2px solid var(--ink); border-radius: 4px; padding: 0.8rem 1rem; margin-top: 0.5rem; break-inside: avoid; }
.trouble h2 { margin: 0 0 0.5rem; font-size: 1.1rem; }
.trouble table { margin: 0; font-size: 0.9rem; }
.trouble th, .trouble td { padding: 0.45rem 0.6rem 0.45rem 0; }
.trouble thead th { font-family: var(--sans); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--accent); white-space: normal; }
@media (max-width: 560px) { .trouble thead { display: none; } .trouble td:first-child { font-weight: 600; padding-top: 0.6rem; } }

/* Lesson plan */
.lp-meta { display: grid; grid-template-columns: 1fr; gap: 0.4rem 2rem; margin: 0; font-size: 0.92rem; }
@media (min-width: 640px) { .lp-meta { grid-template-columns: 1fr 1fr; } }
.lp-meta div { display: flex; gap: 0.5rem; }
.lp-meta dt { font-weight: 600; min-width: 7.5rem; }
.lp-meta dd { margin: 0; }
.sheet table { font-size: 0.9rem; margin: 0.5rem 0 1rem; }
.sheet th { white-space: normal; }
.sheet thead th { font-family: var(--sans); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--accent); border-bottom: 2px solid var(--ink); }
.bloom { display: inline-block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; background: var(--accent-soft); color: var(--accent); border-radius: 3px; padding: 0.05rem 0.4rem; margin-right: 0.35rem; vertical-align: 0.1em; }
.lab-part { border: 1px solid var(--rule); border-radius: 4px; padding: 0.8rem 1rem; margin: 0.75rem 0; break-inside: avoid; }
.lab-part h3 { margin-top: 0; }
.instr { font-size: 0.88rem; color: var(--ink-soft); font-style: italic; }
.checklist { list-style: none; padding: 0; }
.checklist li { padding-left: 1.6rem; position: relative; }
.checklist li::before { content: ""; position: absolute; left: 0; top: 0.25rem; width: 0.95rem; height: 0.95rem; border: 1.5px solid var(--ink); border-radius: 2px; }
.crit { font-size: 0.72rem; font-weight: 700; color: #b4541a; text-transform: uppercase; letter-spacing: 0.05em; margin-left: 0.3rem; }
.answer { font-size: 0.9rem; color: var(--ink-soft); }
@media (max-width: 560px) {
  .sheet table.keep, .sheet table.keep tbody, .sheet table.keep tr { display: table; width: 100%; }
}

/* Storyboard */
.screen { border: 1px solid var(--rule); border-radius: 6px; background: #fff; margin: 1.5rem 0; overflow: hidden; break-inside: avoid; }
.screen-head { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; background: var(--ink); color: #fff; padding: 0.55rem 1rem; font-size: 0.88rem; }
.screen-head strong { font-family: var(--serif); font-size: 1rem; font-weight: 600; }
.screen-body { display: grid; grid-template-columns: 1fr; }
@media (min-width: 760px) { .screen-body { grid-template-columns: 0.9fr 1.1fr; } }
.wire { background: #f3f4f6; border-right: 1px solid var(--rule); padding: 1rem; }
.wire-frame { background: #fff; border: 1.5px solid #9aa3b2; border-radius: 4px; min-height: 12rem; padding: 0.75rem; font-size: 0.8rem; color: #4a5568; position: relative; }
.wire-bar { display: flex; justify-content: space-between; border-bottom: 1px solid #cbd2dc; padding-bottom: 0.35rem; margin-bottom: 0.6rem; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; }
.wire-box { border: 1px dashed #9aa3b2; border-radius: 3px; padding: 0.4rem; margin: 0.35rem 0; text-align: center; }
.wire-btn { display: inline-block; border: 1.5px solid #4a5568; border-radius: 3px; padding: 0.15rem 0.5rem; margin: 0.2rem 0.2rem 0 0; font-weight: 600; }
.wire-btn.hot { border-color: var(--accent); background: var(--accent-soft); color: var(--ink); }
.wire-note { font-size: 0.75rem; color: var(--ink-soft); margin-top: 0.6rem; }
.sb { padding: 1rem 1.1rem; font-size: 0.93rem; }
.sb h4 { font-family: var(--sans); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.07em; color: var(--accent); margin: 0.9rem 0 0.25rem; }
.sb h4:first-child { margin-top: 0; }
.sb p, .sb ul { margin-bottom: 0.4rem; }
.narr { font-style: italic; }
.fb { border-radius: 4px; padding: 0.5rem 0.7rem; margin: 0.4rem 0; font-size: 0.9rem; }
.fb.right { background: #eaf4ed; border-left: 3px solid #24613a; }
.fb.wrong { background: #fbf1ea; border-left: 3px solid #b4541a; }
.fb strong { display: block; }

/* ---------- Print / PDF: the sample only ---------- */
@media print {
  @page { size: Letter; margin: 0.5in; }
  .site-header, .site-footer, .case, .no-print, .sample-label, .back, .fictional, .download { display: none !important; }
  main { padding: 0 !important; }
  .measure, .wide { max-width: none !important; }
  .sheet { border: 0; box-shadow: none; padding: 0; }
  .sheet { font-size: 10pt; }
  .sheet table { font-size: 9pt; }
  .sheet h2 { break-after: avoid; }
  .sheet tr { break-inside: avoid; }
  body { background: #fff; font-size: 10.5pt; }
  .screen-head { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .ui, .ja-before, .task h2 .letter, .warn, .wire, .fb, .bloom { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .ja-grid { grid-template-columns: 1fr 1fr; }
  .screen-body { grid-template-columns: 0.9fr 1.1fr; }
  .lp-meta { grid-template-columns: 1fr 1fr; }
  a { color: inherit; text-decoration: none; }
}
/* Storyboard print: compact so most pages hold two screens */
@media print {
  .screen { margin: 0.8rem 0; }
  .screen-head { padding: 0.35rem 0.8rem; font-size: 8.5pt; }
  .screen-head strong { font-size: 10pt; }
  .sb { font-size: 9pt; padding: 0.6rem 0.8rem; }
  .sb h4 { font-size: 7pt; margin: 0.5rem 0 0.15rem; }
  .fb { font-size: 8.5pt; padding: 0.3rem 0.5rem; margin: 0.25rem 0; }
  .wire { padding: 0.6rem; }
  .wire-frame { font-size: 8pt; min-height: 0; padding: 0.5rem; }
  .wire-frame p { margin-bottom: 0.4rem; }
}
/* Job aid fits one Letter page */
@media print {
  .jobaid { font-size: 9pt; line-height: 1.35; }
  .jobaid h1 { font-size: 16pt; }
  .jobaid .task h2 { font-size: 11pt; margin: 0.2rem 0 0.35rem; }
  .jobaid ol.steps > li { margin-bottom: 0.3em; }
  .jobaid .task { margin-bottom: 0.5rem; }
  .jobaid .trouble th, .jobaid .trouble td { padding: 0.25rem 0.5rem 0.25rem 0; }
  .jobaid .sheet-foot { margin-top: 0.5rem; padding-top: 0.3rem; font-size: 7.5pt; }
  .jobaid .sheet-head { padding-bottom: 0.4rem; margin-bottom: 0.6rem; }
  .jobaid .sub { margin: 0; }
  .jobaid .ja-before { margin-bottom: 0.6rem; padding: 0.4rem 0.7rem; }
  .jobaid .warn { padding: 0.2rem 0.5rem; }
  .jobaid .check { margin-bottom: 0.2rem; }
  .jobaid .trouble { padding: 0.5rem 0.8rem; margin-top: 0.2rem; }
  .jobaid .trouble h2 { margin-bottom: 0.2rem; font-size: 11pt; }
  .jobaid .trouble table { font-size: 8.5pt; }
  .jobaid .trouble td:first-child { width: 30%; }
}
