/* Groundwork: shared styles for the teacher page and printables.
   Colors and type follow the Kimberly Newton design system. */
:root {
  --surface: #FFFFFF;
  --blush: #FFF0EC;
  --mist: #E2ECEE;
  --line: #C9D6D9;
  --ink: #282936;
  --ink-muted: #596170;
  --teal: #0F6776;
  --teal-deep: #0A4B56;
  --on-teal: #FFFFFF;
  --focus: #8A5A00;
  --display: "Forum", "Cormorant Garamond", Georgia, serif;
  --wordmark: "Quattrocento", Georgia, serif;
  --learning: "Atkinson Hyperlegible Next", "Atkinson Hyperlegible", system-ui, sans-serif;
  --tile: "Atkinson Hyperlegible Mono", ui-monospace, Menlo, monospace;
}
@media (prefers-color-scheme: dark) {
  .gw-screen {
    --surface: #12212A; --blush: #2C2125; --mist: #1A2E36; --line: #30474F;
    --ink: #EEF2F3; --ink-muted: #A9B6BC; --teal: #6EC4D0; --teal-deep: #0F6776;
    --on-teal: #0B1E24; --focus: #F2C14E;
  }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--surface); color: var(--ink); font-family: var(--learning); }
a { color: var(--teal); }
a:hover { color: var(--teal-deep); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

/* ---------- Teacher page ---------- */
.gw-page { max-width: 960px; margin: 0 auto; padding: 24px 16px 64px; line-height: 1.6; font-size: 18px; }
.gw-top { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: baseline; justify-content: space-between; border-bottom: 2px solid var(--teal); padding-bottom: 12px; }
.gw-mark { font-family: var(--wordmark); font-weight: 700; color: var(--teal); text-decoration: none; font-size: 20px; }
.gw-top nav { display: flex; gap: 16px; flex-wrap: wrap; font-size: 16px; }
.gw-page h1 { font-family: var(--display); font-weight: 400; color: var(--teal); font-size: 48px; line-height: 1.1; margin: 40px 0 8px; }
.gw-page h2 { font-family: var(--display); font-weight: 400; font-size: 30px; line-height: 1.2; margin: 48px 0 12px; }
.gw-lead { font-size: 20px; max-width: 68ch; margin: 0; }
.gw-path { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 20px 0 0; font-size: 15px; }
.gw-path li { border: 1.5px solid var(--line); border-radius: 9999px; padding: 4px 12px; color: var(--ink-muted); }
.gw-path li.is-here { background: var(--teal); border-color: var(--teal); color: var(--on-teal); font-weight: 700; }
.gw-days { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.gw-panel { background: var(--mist); border-radius: 16px; padding: 20px 24px; }
.gw-panel.warm { background: var(--blush); }
.gw-panel h3 { margin: 0 0 8px; font-size: 18px; }
.gw-panel ol, .gw-panel ul { margin: 0; padding-left: 22px; }
.gw-panel li { margin: 4px 0; }
.gw-table-wrap { overflow-x: auto; }
.gw-table { border-collapse: collapse; width: 100%; font-size: 16px; }
.gw-table th, .gw-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.gw-table th { font-size: 14px; color: var(--ink-muted); font-weight: 700; }
.gw-soon { color: var(--ink-muted); }
.gw-btn { display: inline-block; background: var(--teal); color: var(--on-teal); text-decoration: none; border-radius: 6px; padding: 8px 14px; font-weight: 700; min-height: 44px; line-height: 28px; }
.gw-btn:hover { background: var(--teal-deep); color: var(--on-teal); }
.gw-foot { margin-top: 64px; font-size: 14px; color: var(--ink-muted); border-top: 1px solid var(--line); padding-top: 16px; }

/* ---------- Printables ---------- */
.gw-toolbar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; padding: 12px 16px; background: var(--mist); font-size: 16px; }
.gw-toolbar button { font: inherit; font-weight: 700; background: var(--teal); color: var(--on-teal); border: 0; border-radius: 6px; padding: 8px 16px; min-height: 44px; cursor: pointer; }
.gw-toolbar button:hover { background: var(--teal-deep); }
.gw-sheet-wrap { overflow-x: auto; padding: 24px 16px; background: #E9EEEF; }
.gw-sheet { background: #FFFFFF; color: #282936; margin: 0 auto; box-shadow: 0 1px 4px rgba(0,0,0,.18); }
.gw-sheet.landscape { width: 11in; height: 8.5in; padding: 0.42in 0.5in; }
.gw-sheet.portrait { width: 8.5in; height: 11in; padding: 0.5in 0.55in; }
.gw-sheet { display: flex; flex-direction: column; gap: 14px; }
.gw-sheet .muted { color: #596170; }
.gw-head { display: flex; align-items: center; gap: 16px; border-bottom: 2px solid #0F6776; padding-bottom: 10px; }
.gw-head .brand { display: flex; flex-direction: column; }
.gw-head .brand b { font-family: var(--wordmark); color: #0F6776; font-size: 17px; }
.gw-head .brand span { font-size: 12.5px; color: #596170; }
.gw-head .blanks { flex: 1; display: flex; gap: 24px; justify-content: center; font-size: 15px; }
.gw-pill { background: #0F6776; color: #FFFFFF; font-weight: 700; font-size: 14px; padding: 5px 13px; border-radius: 9999px; white-space: nowrap; }
.gw-cols { flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 30px; min-height: 0; }
.gw-col { display: flex; flex-direction: column; gap: 12px; min-height: 0; }
.gw-title { display: flex; justify-content: space-between; align-items: baseline; }
.gw-title h1 { margin: 0; font-family: var(--display); font-weight: 400; color: #0F6776; font-size: 36px; line-height: 1.1; }
.gw-passage { display: flex; flex-direction: column; gap: 9px; font-size: 16.5px; line-height: 1.55; }
.gw-passage div { display: flex; gap: 12px; align-items: flex-end; }
.gw-passage p { margin: 0; flex: 1; }
.gw-passage span { font-size: 12.5px; color: #596170; min-width: 28px; text-align: right; }
.gw-box { border-radius: 14px; padding: 12px 16px; }
.gw-box.mist { background: #E2ECEE; }
.gw-box.blush { background: #FFF0EC; }
.gw-box h2, .gw-q h2 { margin: 0 0 6px; font-size: 15px; font-weight: 700; font-family: var(--learning); }
.gw-box h2 .muted { font-weight: 400; }
.gw-checks { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 14.5px; }
.gw-check { display: inline-flex; gap: 8px; align-items: center; }
.gw-check::before { content: ""; width: 16px; height: 16px; border: 2px solid #282936; border-radius: 4px; flex: none; }
.gw-pairs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; font-family: var(--tile); font-weight: 700; font-size: 16px; text-align: center; }
.gw-pairs span { background: #FFFFFF; border: 2px solid #282936; border-radius: 10px; padding: 5px 2px; }
.gw-words { font-size: 14.5px; line-height: 1.5; display: flex; flex-direction: column; gap: 2px; }
.gw-q h2 { font-size: 15.5px; margin-bottom: 2px; }
.gw-frame { margin: 0; font-size: 13.5px; color: #0A4B56; font-style: italic; }
.gw-line { height: 28px; border-bottom: 1.5px solid #596170; }
.gw-sketch { flex: 1; border: 2px dashed #596170; border-radius: 14px; padding: 10px 16px; min-height: 0; }
.gw-sketch p { margin: 0; font-size: 13.5px; color: #596170; }
.gw-fine { font-size: 11.5px; color: #596170; }

/* Tracker */
.gw-chart { display: grid; grid-template-columns: 44px 1fr; column-gap: 8px; }
.gw-axis { display: flex; flex-direction: column; font-size: 11.5px; color: #596170; text-align: right; }
.gw-axis span { height: 27px; line-height: 0; }
.gw-grid { display: grid; grid-template-columns: repeat(20, 1fr); border-left: 1.5px solid #282936; border-bottom: 1.5px solid #282936; }
.gw-grid div { height: 27px; border-right: 1px solid #C9D6D9; border-top: 1px solid #C9D6D9; }
.gw-grid div.major { border-top-color: #8A99A0; }
.gw-rowlabel { font-size: 11.5px; color: #596170; text-align: right; line-height: 28px; }
.gw-cells { display: grid; grid-template-columns: repeat(20, 1fr); border-left: 1.5px solid #282936; }
.gw-cells div { height: 28px; border-right: 1px solid #C9D6D9; border-bottom: 1px solid #596170; font-size: 10px; color: #8A99A0; padding: 2px; }
.gw-two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.gw-pairlist { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; font-family: var(--tile); font-weight: 700; font-size: 14px; }
.gw-ranks { display: flex; flex-direction: column; gap: 6px; font-size: 14.5px; }
.gw-goal { display: flex; gap: 12px; font-size: 15px; align-items: baseline; }
.gw-goal span { flex: 1; border-bottom: 1.5px solid #596170; }

@page landscape { size: letter landscape; margin: 0; }
@page portrait { size: letter portrait; margin: 0; }
@media print {
  .gw-toolbar { display: none; }
  .gw-sheet-wrap { padding: 0; background: none; overflow: visible; }
  .gw-sheet { box-shadow: none; margin: 0; }
  .gw-sheet.landscape { page: landscape; }
  .gw-sheet.portrait { page: portrait; }
  body { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* Check-in (two printed pages) */
.gw-ci-title { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.gw-ci-title h1 { margin: 0; font-family: var(--display); font-weight: 400; color: #0F6776; font-size: 36px; line-height: 1.1; }
.gw-score { font-weight: 700; font-size: 15px; border: 2px solid #282936; border-radius: 10px; padding: 4px 12px; }
.gw-text { border-radius: 14px; padding: 14px 20px; display: flex; flex-direction: column; gap: 8px; font-size: 16.5px; line-height: 1.55; }
.gw-text h2 { margin: 0; font-family: var(--display); font-weight: 400; font-size: 25px; color: #0A4B56; }
.gw-text p { margin: 0; }
.gw-qgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 28px; }
.gw-mc { display: flex; flex-direction: column; gap: 6px; }
.gw-mc .qt { font-weight: 700; font-size: 16.5px; }
.gw-mc .opts { display: flex; flex-direction: column; gap: 5px; padding-left: 22px; font-size: 16px; }
.gw-mc .opts.row { flex-direction: row; gap: 26px; flex-wrap: wrap; }
.gw-mc .opt { display: flex; gap: 10px; align-items: center; }
.gw-mc .l { display: inline-flex; width: 25px; height: 25px; border: 2px solid #282936; border-radius: 9999px; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; flex: none; }
.gw-list { background: #FFFFFF; border: 2px solid #282936; border-radius: 10px; padding: 12px 18px; display: flex; flex-direction: column; gap: 5px; font-size: 17px; }
.gw-foot2 { margin-top: auto; display: flex; justify-content: space-between; font-size: 11.5px; color: #596170; }
.gw-sheet + .gw-sheet { margin-top: 24px; }
@media print { .gw-sheet + .gw-sheet { margin-top: 0; break-before: page; } }

/* Tracker chart: each number sits on its own grid line */
.gw-ychart { display: grid; grid-template-columns: 56px repeat(20, 1fr); margin-top: 8px; }
.gw-ychart .y { position: relative; height: 26px; border-right: 2px solid #282936; }
.gw-ychart .y span { position: absolute; right: 8px; top: -9px; font-size: 12px; line-height: 18px; color: #282936; }
.gw-ychart .y.major span { font-weight: 700; font-size: 13px; }
.gw-ychart .c { height: 26px; border-top: 1px solid #D5DFE2; border-right: 1px solid #C9D6D9; }
.gw-ychart .c.major { border-top-color: #8A99A0; }
.gw-ychart .zero { height: 0; border-top: 2px solid #282936; }
.gw-ychart .y.zero-l { height: 0; }
.gw-ychart .rowlabel { height: 30px; display: flex; align-items: center; justify-content: flex-end; padding-right: 8px; font-size: 13px; font-weight: 700; border-right: 2px solid #282936; }
.gw-ychart .cell { height: 30px; border-right: 1px solid #C9D6D9; border-bottom: 1px solid #596170; }
.gw-scale { background: #0F6776; color: #FFFFFF; font-weight: 700; font-size: 13px; padding: 4px 12px; border-radius: 9999px; }
