/* open-house.css — Open house school sheet (open-house.html, js/open-house.js). Prefix oh-.
   The form uses the pages.css tokens (light + dark). The sheet itself is "paper": fixed light colors on
   screen and in print, so a dark theme never reaches the printed page, and every mark also reads in
   black and white (shapes and text, not color alone). One US Letter page, also fits A4 (no forced size). */

/* ------------------------------------------------------------------ screen: intro + form */
.oh { padding-bottom: 40px; }
.oh-intro { margin: 26px 0 16px; }
.oh-kicker { margin: 0; font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; color: var(--muted); }
.oh-intro h1 { font-size: 1.8rem; margin: 4px 0 8px; }
.oh-lead { margin: 0 0 12px; max-width: 72ch; }
.oh-privacy { margin: 0; }
.oh-form { margin-top: 14px; }
.oh-h2 { font-size: 1.15rem; margin: 0 0 12px; }
.oh-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; }
.oh-span2 { grid-column: 1 / -1; }
.oh-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 12px; }
.oh-status { font-size: .86rem; color: var(--muted); }
.oh-status.oh-bad, .oh-brand-status.oh-bad { color: var(--bad); }
.oh-status.oh-ok, .oh-brand-status.oh-ok { color: var(--good); }
.oh-brand-box, .oh-lender-box { margin-top: 14px; padding: 8px 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2); }
.oh-lender-box { background: var(--surface); }
.oh-brand-box > summary, .oh-lender-box > summary { cursor: pointer; font-weight: 600; color: var(--ink); min-height: 28px; display: list-item; padding: 3px 0; }
.oh-brand-box .field-help, .oh-lender-box .field-help { margin: 4px 0 10px; }
.oh-check { display: flex; align-items: center; gap: 8px; font-size: .82rem; font-weight: 600; align-self: end; padding-bottom: 6px; }
.oh-check input { width: 24px; height: 24px; flex: none; margin: 0; }
.oh-brand-status { margin: 10px 0 4px; font-size: .86rem; color: var(--muted); }
.oh-brand-status:empty { display: none; }
.oh-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 16px 0 6px; }
.oh-keynote { flex-basis: 100%; margin: 0; }
.oh-preview-h { margin: 18px 0 10px; }

/* ------------------------------------------------------------------ the sheet ("paper") */
.oh-sheet {
  --oh-ink: #12304D; --oh-text: #1B2633; --oh-muted: #4A5868; --oh-line: #C9D2DC; --oh-soft: #F2F5F8; --oh-link: #1F5C96;
  --mc-accent: #1F5C96; --mc-ink: #12304D; --mc-ctx: #5A6878; --mc-track: #DCE3EA; --mc-surface: #FFFFFF;
  --ink: #12304D; --text: #1B2633; --muted: #4A5868; --border: #C9D2DC;
  color-scheme: light; background: #FFFFFF; color: var(--oh-text);
  max-width: 8.5in; margin: 0 auto 24px; padding: .45in; box-sizing: border-box;
  border: 1px solid var(--border); border-radius: 6px; box-shadow: 0 6px 24px rgba(16, 32, 52, .14);
  font-size: 12.5px; line-height: 1.38;
}
:root[data-theme="dark"] .oh-sheet { box-shadow: 0 6px 24px rgba(0, 0, 0, .5); }
.oh-sheet a { color: var(--oh-link); }
.oh-sheet p { margin: 0; }
.oh-empty { color: var(--oh-muted); font-size: .95rem; text-align: center; padding: 40px 0; }

.oh-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding-bottom: 8px; border-bottom: 3px solid var(--oh-ink); }
.oh-head-main { min-width: 0; flex: 1 1 auto; }
.oh-kick { font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--oh-muted); }
.oh-sheet .oh-addr { font-size: 21px; line-height: 1.2; margin: 2px 0 3px; color: var(--oh-ink); overflow-wrap: anywhere; }
.oh-when { font-size: 13px; }
.oh-prep { font-size: 10.5px; color: var(--oh-muted); margin-top: 2px !important; }

.oh-brands { display: flex; flex-direction: column; gap: 5px; flex: 0 1 46%; min-width: 0; }
.oh-brand { display: flex; align-items: center; gap: 9px; padding: 6px 9px; border: 1.5px solid var(--oh-ink); border-radius: 8px; background: #FFFFFF; min-width: 0; }
.oh-brand img { max-height: 46px; max-width: 100px; object-fit: contain; flex: none; }
.oh-brand-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; font-size: 11.5px; overflow-wrap: anywhere; }
.oh-brand-text b { font-size: 14px; color: var(--oh-ink); }
.oh-brand-k { font-size: 9.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--oh-muted); }
.oh-cobrand { border-width: 1px; border-style: dashed; padding: 4px 8px; }
.oh-cobrand img { max-height: 34px; max-width: 80px; }
.oh-cobrand .oh-brand-text b { font-size: 12.5px; }
.oh-eh { font-size: 9.5px; color: var(--oh-muted); }

.oh-verify { margin: 7px 0 2px !important; padding: 4px 9px; border-left: 4px solid var(--oh-ink); background: var(--oh-soft); font-size: 12px; color: var(--oh-ink); }
.oh-notice { margin: 8px 0 !important; padding: 8px 10px; border: 1px solid var(--oh-line); border-radius: 6px; }

.oh-school { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: 4px 18px; padding: 8px 0; border-bottom: 1px solid var(--oh-line);
  break-inside: avoid; page-break-inside: avoid; }
.oh-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.oh-tag { display: inline-block; font-size: 9.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--oh-ink);
  border: 1.2px solid var(--oh-ink); border-radius: 4px; padding: 0 5px; }
.oh-sheet .oh-school-name { font-size: 15.5px; line-height: 1.22; margin: 3px 0 1px; color: var(--oh-ink); }
.oh-sub, .oh-far { font-size: 11.5px; color: var(--oh-text); }
.oh-far { margin-top: 2px !important; }
.oh-bell { font-size: 11.5px; margin-top: 3px !important; }
.oh-bell-t { font-weight: 700; }
.oh-bell-none { color: var(--oh-muted); font-style: italic; }
.oh-src { font-size: 9.5px; color: var(--oh-muted); }
.oh-none { font-size: 11px; color: var(--oh-muted); font-style: italic; }

.oh-measures { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.oh-m { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; font-size: 11.5px; }
.oh-m-l b { color: var(--oh-ink); }
.oh-m .mc-strip { margin: 0 0 1px; padding: 0 6px; box-sizing: border-box; height: 22px; }
.oh-many .oh-school { padding: 5px 0; }
.oh-many .oh-school-name { font-size: 14px; }
.oh-m-say { font-size: 10.5px; color: var(--oh-muted); line-height: 1.25; }
.oh-legend-row { margin: 5px 0 0; }
.oh-legend-row .mc-legend { font-size: 10px; color: var(--oh-muted); }

.oh-bottom { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: start; margin-top: 8px; padding-top: 7px; border-top: 1px solid var(--oh-line);
  break-inside: avoid; page-break-inside: avoid; }
.oh-sheet .oh-h3 { font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--oh-muted); margin: 0 0 2px; }
.oh-dname { font-size: 12px; margin-bottom: 6px !important; overflow-wrap: anywhere; }
.oh-dates { list-style: none; margin: 0 0 3px; padding: 0; display: grid; gap: 1px; font-size: 11.5px; }
.oh-dates li { display: grid; grid-template-columns: 13em minmax(0, 1fr); gap: 8px; }
.oh-date { font-weight: 700; color: var(--oh-ink); }
.oh-qr { margin: 0; width: 1.3in; text-align: center; }
.oh-qr-svg { display: block; width: 1.3in; height: 1.3in; }
.oh-qr figcaption { font-size: 9.5px; line-height: 1.25; color: var(--oh-text); margin-top: 2px; }

.oh-foot { margin-top: 8px; padding-top: 5px; border-top: 1px solid var(--oh-line); font-size: 9px; line-height: 1.35; color: var(--oh-muted); }
.oh-free { margin-top: 3px !important; font-size: 9.5px; font-weight: 700; color: var(--oh-text); }

/* ------------------------------------------------------------------ phones */
@media screen and (max-width: 640px) {
  .oh-intro h1 { font-size: 1.5rem; }
  .oh-grid2 { grid-template-columns: minmax(0, 1fr); }
  .oh-sheet { padding: 14px; font-size: 13px; }
  .oh-head { flex-direction: column; }
  .oh-brands { flex-basis: auto; width: 100%; }
  .oh-school { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .oh-bottom { grid-template-columns: minmax(0, 1fr); }
  .oh-qr { justify-self: center; }
  .oh-dates li { display: block; }
  .oh-date { margin-right: 4px; }
}

/* ------------------------------------------------------------------ print: only the sheet */
@media print {
  @page { margin: .4in; }
  html, body, body.oh-page { background: #FFFFFF !important; color: #1B2633; }
  .oh-intro, .oh-form, .oh-bar, .oh-preview-h, .site-foot, .topbar, .skip-link { display: none !important; }
  .oh { padding: 0 !important; margin: 0 !important; max-width: none; }
  .oh-sheet { max-width: none; margin: 0; padding: 0; border: 0; border-radius: 0; box-shadow: none !important; font-size: 12px; }
  .oh-sheet a { color: inherit; text-decoration: none; }
}
