/* Print-friendly Lowlands schema — ink-saving, high contrast, page breaks */

@page {
  size: A4;
  margin: 12mm 12mm 14mm;
}

.print-only {
  display: none;
}

@media print {
  .no-print,
  .spike-field,
  .topbar,
  .toolbar,
  .countdown,
  .hero__watermark,
  .hero__meta,
  .hero__media,
  .empty-state,
  .btn,
  .filter-row,
  .day-nav,
  .topbar__nav,
  .legend {
    display: none !important;
  }

  .print-only {
    display: block !important;
  }

  body {
    background: #fff !important;
    color: #111 !important;
    font-size: 10.5pt;
    line-height: 1.35;
  }

  .page {
    max-width: none;
    margin: 0;
    padding: 0;
  }

  .hero {
    margin: 0 0 8mm;
    min-height: 0;
    width: auto;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
    border: 0;
    animation: none;
    display: block;
  }

  .hero__panel {
    width: auto;
    margin: 0;
    background: #fff !important;
    color: #111 !important;
    border: 1.5pt solid #111;
    padding: 4mm;
    backdrop-filter: none;
    animation: none;
  }

  .hero__title {
    color: #111 !important;
    font-size: 16pt;
    transform: none;
  }

  .hero__eyebrow {
    background: #111 !important;
    color: #fff !important;
  }

  .hero__lead {
    color: #222 !important;
    margin-bottom: 0;
  }

  .day {
    break-inside: avoid;
    page-break-inside: avoid;
    margin-bottom: 6mm;
    animation: none;
  }

  .day__head {
    background: #111 !important;
    color: #fff !important;
    border-left: 3mm solid #111;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .day__label,
  .day__date,
  .day__blurb {
    color: #fff !important;
  }

  .slot {
    break-inside: avoid;
    page-break-inside: avoid;
    box-shadow: none !important;
    border: 0.8pt solid #333 !important;
    grid-template-columns: 28mm 1fr;
    transform: none !important;
  }

  .slot[data-priority="must"] {
    box-shadow: inset 0 0 0 1.2pt #111 !important;
  }

  .slot__time {
    background: #f2f2f2 !important;
    border-right: 0.8pt solid #333;
  }

  .slot__time strong {
    color: #111 !important;
    font-size: 9pt;
  }

  .slot__body {
    border-left-width: 2.5mm;
  }

  .slot__act {
    color: #111 !important;
    font-size: 11pt;
  }

  .slot__why,
  .slot__note {
    color: #222 !important;
    font-size: 9pt;
  }

  .slot__note {
    background: #f5f5f5 !important;
    border-left: 1.5mm solid #111;
  }

  .pill {
    border-color: #111 !important;
    color: #111 !important;
    background: #fff !important;
    font-size: 7pt;
  }

  .pill--must {
    background: #111 !important;
    color: #fff !important;
  }

  .panel {
    background: #fff !important;
    border: 1pt solid #111;
    break-inside: avoid;
  }

  .panel h2 {
    color: #111 !important;
  }

  .clash-table th,
  .clash-table td {
    border-bottom: 0.6pt solid #999;
    color: #111 !important;
  }

  .footer {
    background: transparent !important;
    border: 0;
    color: #444 !important;
    font-size: 8pt;
    margin-top: 6mm;
  }

  a {
    text-decoration: none;
    color: #111 !important;
  }

  a[href]::after {
    content: none;
  }
}

/* Dedicated print.php screen preview (still paper-like) */
body.is-print-view {
  background: #e8e4ea;
  color: #111;
}

body.is-print-view .spike-field {
  display: none;
}

body.is-print-view .print-sheet {
  max-width: 210mm;
  margin: 1.25rem auto 3rem;
  padding: 12mm;
  background: #fff;
  color: #111;
  border: 2px solid #261933;
  box-shadow: none;
}

body.is-print-view .print-actions {
  max-width: 210mm;
  margin: 1rem auto 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0 0.5rem;
}

body.is-print-view h1 {
  font-family: var(--font-display);
  font-size: 1.85rem;
  margin: 0 0 0.35rem;
  color: #b90029;
  letter-spacing: 0.03em;
  -webkit-font-smoothing: none;
  font-smooth: never;
}

body.is-print-view .print-meta {
  margin: 0 0 1rem;
  color: #333;
}

body.is-print-view .print-day {
  margin: 0 0 1.1rem;
  break-inside: avoid;
}

body.is-print-view .print-day h2 {
  margin: 0;
  padding: 0.45rem 0.6rem;
  background: #261933;
  color: #fef79e;
  font-family: var(--font-display);
  font-size: 1.1rem;
}

body.is-print-view .print-day .blurb {
  margin: 0;
  padding: 0.35rem 0.6rem 0.55rem;
  background: #f4eef6;
  font-size: 0.9rem;
  color: #333;
}

body.is-print-view table.print-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

body.is-print-view table.print-table th,
body.is-print-view table.print-table td {
  border-bottom: 1px solid #ccc;
  padding: 0.45rem 0.4rem;
  text-align: left;
  vertical-align: top;
}

body.is-print-view table.print-table th {
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #555;
}

body.is-print-view .prio-must {
  font-weight: 800;
}

body.is-print-view .note {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.82rem;
  color: #555;
}

body.is-print-view .print-clashes {
  margin-top: 1.25rem;
}

body.is-print-view .print-clashes h2 {
  font-family: var(--font-display);
  color: #b90029;
  font-size: 1.35rem;
  letter-spacing: 0.03em;
}

body.is-print-view .print-footer {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: #555;
}

@media print {
  body.is-print-view {
    background: #fff !important;
  }

  body.is-print-view .print-actions {
    display: none !important;
  }

  body.is-print-view .print-sheet {
    max-width: none;
    margin: 0;
    padding: 0;
    border: 0;
  }

  body.is-print-view .print-day {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  body.is-print-view .print-day h2 {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}
