/* Teacher door (release 1): /teachers and /school-it (tools/build_gamenight.py teachers_page(), school_it_page()). The reduced strip
   (site_header.strip()), the grey "check it opens at school" box, the three tiles, the list panel, the plain tables, and the page for
   school IT's one-sheet print style. Nothing here touches any other page: every rule is under .rf-strip, .rf-teach or .rf-schoolit. */

/* The reduced strip: the site name and two links, on one line where it fits. */
.rf-strip nav { gap: 4px 18px; }

/* The grey box under the lead line. */
.rf-teach .rf-teach-check {
  background: #eceae6; color: var(--rf-ink); border: 2px solid #c9c4ba; border-radius: var(--rf-r-tile);
  padding: 16px 18px; margin: 20px 0 28px; max-width: 46em;
}
.rf-teach .rf-teach-check p { margin: 0 0 10px; }
.rf-teach .rf-teach-check p:last-child { margin-bottom: 0; }
.rf-teach .rf-teach-check #itLink { overflow-wrap: anywhere; }
.rf-teach .rf-teach-check .rf-btn { margin-left: 6px; vertical-align: middle; }

/* Three tiles: side by side on a wide screen, stacked on a phone. */
.rf-teach .rf-teach-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; margin: 8px 0 32px; }
.rf-teach .rf-teach-tile {
  background: var(--rf-white); color: var(--rf-ink); border: var(--rf-line) solid var(--rf-outline); border-radius: var(--rf-r-card);
  box-shadow: var(--rf-press-sm); padding: 18px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start;
}
.rf-teach .rf-teach-tile h2 { margin: 0; font-size: 1.3rem; }
.rf-teach .rf-teach-tile p { margin: 0; }
.rf-teach .rf-teach-tile .rf-btn { margin-top: auto; }
.rf-teach .rf-teach-pick { flex-wrap: wrap; }

/* The list panel (opens under the third tile). */
.rf-teach .rf-teach-panel { max-width: 40em; margin: -12px 0 32px; }
.rf-teach .rf-teach-panel h2 { margin: 0; }
.rf-teach .rf-teach-panel label { font-weight: 700; }
.rf-teach .rf-teach-panel textarea.rf-input {
  width: 100%; min-height: 9em; padding: 12px 14px; font: inherit; background: var(--rf-white); color: var(--rf-ink);
  border: var(--rf-line) solid var(--rf-ink); border-radius: 14px; box-shadow: none;
}
.rf-teach .rf-teach-panel .trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Plain tables (How many can play; /school-it's lists). */
.rf-teach-table { border-collapse: collapse; width: 100%; max-width: 40em; margin: 8px 0 12px; background: var(--rf-white); }
.rf-teach-table th, .rf-teach-table td { text-align: left; vertical-align: top; padding: 9px 12px; border: 2px solid var(--rf-line-cream); }
.rf-teach-table th { font-weight: 800; }

/* /school-it: the paths list and the headings. */
.rf-schoolit main { max-width: 48em; }
.rf-schoolit .rf-paths { columns: 2 14em; column-gap: 24px; padding-left: 1.2em; margin: 8px 0; }
.rf-schoolit .rf-paths code { font-size: 0.92em; overflow-wrap: anywhere; }
.rf-schoolit code { overflow-wrap: anywhere; }

/* /school-it on paper: one US Letter sheet. The strip and footer go; the text runs at 7.6 pt in two columns. */
@page { size: letter; margin: 0.35in; }
@media print {
  .rf-schoolit .landing-top, .rf-schoolit .site-foot, .rf-schoolit .rf-topblock { display: none !important; }
  body.rf-cream, .rf-schoolit { background: #fff !important; }
  .rf-schoolit .page { padding: 0 !important; margin: 0 !important; max-width: none !important; }
  .rf-schoolit main { max-width: none; columns: 2; column-gap: 0.25in; font-size: 7.6pt; line-height: 1.18; color: #000; }
  .rf-schoolit main * { font-size: inherit; line-height: inherit; }
  .rf-schoolit main h1 { column-span: all; font-size: 14pt; margin: 0 0 2pt; }
  .rf-schoolit main .lede { column-span: all; color: #000; font-size: 9pt; margin: 0 0 4pt; }
  .rf-schoolit main h2 { font-size: 9pt; margin: 4pt 0 1pt; break-after: avoid; }
  .rf-schoolit main p, .rf-schoolit main li { margin: 0 0 2pt; }
  .rf-schoolit main ul { margin: 0 0 2pt 0.4em; padding-left: 1em; list-style-position: outside; }
  .rf-schoolit main .rf-paths { columns: 2; column-gap: 8pt; margin: 0 0 2pt; padding-left: 0; list-style: none; }
  .rf-schoolit main .rf-paths li { margin: 0; break-inside: avoid; white-space: nowrap; }
  .rf-schoolit code { font-size: 7.5pt; }
  .rf-schoolit a { color: inherit; text-decoration: none; }
}
