/* ============================================================================
   print.css — a clean paper version of whatever page is open.
   Loaded with media="print" so it costs nothing on screen.
   ========================================================================== */
@page { margin: 14mm; size: A4; }

:root {
  --bg: #fff; --surface: #fff; --surface-2: #fff; --surface-hover: #fff;
  --text: #000; --text-muted: #333; --text-subtle: #555;
  --border: #bbb; --border-strong: #888; --grid-line: #ddd;
}

body { background: #fff !important; color: #000 !important; font-size: 10.5pt; }

/* Chrome that has no meaning on paper */
.topbar, .sidenav, .tabbar, .scrim, .toast-region,
#modalRoot, #paletteRoot, .skip-link,
.page-head__actions, .filter-bar, .sched-toolbar,
.quick-add, .task-row__actions, .exam-actions,
.btn, .icon-btn, .segmented { display: none !important; }

.app { display: block; }
.main { padding: 0 !important; }
.view-host { max-width: none; }

.card, .exam-card, .hero-card, .week-grid {
  border: 1px solid #bbb !important;
  box-shadow: none !important;
  break-inside: avoid;
  page-break-inside: avoid;
}

h1 { font-size: 18pt; margin-bottom: 4mm; }
h2 { font-size: 13pt; }
h3 { font-size: 11pt; }

.grid { display: block; }
.grid > * + * { margin-top: 4mm; }
.stack > * + * { margin-top: 4mm; }

.week-scroll { overflow: visible !important; }
.week-grid { min-width: 0 !important; }
.session { border: 1px solid #999 !important; background: #f4f4f4 !important; color: #000 !important; }

.exam-card { break-inside: avoid; margin-bottom: 3mm; }
.chip { border: 1px solid #999 !important; background: #fff !important; color: #000 !important; }

a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 8pt; color: #555; }
a[href^="#"]::after { content: ""; }

/* A dateline so a printed schedule is never mistaken for a current one. */
.view-host::after {
  content: "Printed from Masters Hub";
  display: block; margin-top: 8mm; padding-top: 3mm;
  border-top: 1px solid #ccc; font-size: 8pt; color: #666;
}
