/* ========================================================================
   DEPLOY PATH: /css/teaser-schedule.b1c085dc.css
   Round 14 — the shared "View schedule" table (js/teaser-schedule.js) and
   the print stylesheet for the widgets that carry it. Loaded ONLY by those
   widgets, after css/teaser.css, so every other widget and both teasers
   are untouched. Brand tokens only (css/teaser.css's :root).
   ======================================================================== */

.teaser-schedule { width: 100%; }
.teaser-schedule-details {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
}
.teaser-schedule-summary {
  cursor: pointer;
  padding: 9px 12px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text);
  border-radius: var(--radius-md);
}
.teaser-schedule-summary:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 2px;
}
.teaser-schedule-scroll {
  max-height: 260px;
  overflow: auto;
  padding: 0 10px 8px;
}
.teaser-schedule-scroll:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: -2px;
}
.teaser-schedule-table thead th {
  position: sticky;
  top: 0;
  background: var(--bg-elevated);
}
.teaser-schedule-table tfoot th,
.teaser-schedule-table tfoot td { font-weight: 700; border-bottom: none; }
.teaser-schedule-table tbody th { font-weight: 600; text-align: left; }
.teaser-schedule-flag { display: block; font-size: 0.66rem; color: var(--text-muted); font-weight: 600; }
.teaser-schedule-table td.teaser-schedule-foot {
  text-align: left;
  font-weight: 400;
  color: var(--text-muted);
}

/* Phone-width embeds: five money columns must fit without a sideways
   scroll inside the box (measured at 390px: the Balance column was cut). */
@container teaser (max-width: 420px) {
  .teaser-schedule-scroll { padding: 0 4px 6px; }
  .teaser-schedule-table { font-size: 0.66rem; }
  .teaser-schedule-table th, .teaser-schedule-table td { padding: 3px 3px; }
}

/* ── Print: one clean page ────────────────────────────────────────────
   The screen design leans on things print drops or mangles: the result
   figure is gradient-clipped text with a transparent fill (backgrounds do
   not print by default, so it would print as nothing), the page carries
   radial-gradient glows, and the sliders are meaningless on paper. The
   value beside each slider label stays, so the inputs still read. The
   schedule is opened by js/teaser-schedule.js's beforeprint hook and
   printed in full, without its scroll box. */
@media print {
  @page { size: A4 portrait; margin: 12mm; }
  html, body, .teaser-app, :root[data-theme="light"] .teaser-app {
    background: #ffffff !important;
    color: var(--ink) !important;
  }
  :root { --text: var(--ink); --text-muted: color-mix(in srgb, var(--ink) 70%, #ffffff); --bg-elevated: #ffffff; --bg-track: #ffffff; --border: color-mix(in srgb, var(--ink) 25%, #ffffff); }
  .teaser-app { min-height: 0; padding: 0; display: block; }
  .teaser-inner { max-width: none !important; gap: 8px !important; }
  .teaser-slider, input[type="range"],
  .teaser-cta-wrap, .teaser-ring-wrap, .teaser-bar-track,
  .teaser-schedule-summary::marker { display: none !important; }
  .teaser-inputs { padding: 6px 0 !important; border: none !important; background: none !important; box-shadow: none !important;
    display: grid !important; grid-template-columns: 1fr 1fr; gap: 2px 16px !important; }
  .teaser-result-figure {
    background: none !important;
    -webkit-text-fill-color: currentColor !important;
    color: var(--ink) !important;
    font-size: 24pt !important;
  }
  .teaser-result { align-items: flex-start; text-align: left; }
  .teaser-result-sub { max-width: none; }
  .teaser-ring-legend { max-width: none; margin: 0; }
  .teaser-schedule-details { border: none; }
  .teaser-schedule-summary { padding: 4px 0; list-style: none; }
  .teaser-schedule-summary::-webkit-details-marker { display: none; }
  .teaser-schedule-scroll { max-height: none !important; overflow: visible !important; padding: 0; }
  .teaser-schedule-table { font-size: 7.5pt; }
  .teaser-schedule-table th, .teaser-schedule-table td { padding: 1px 6px; }
  .teaser-schedule-table thead th { position: static; }
  .teaser-schedule-table tr { break-inside: avoid; }
  .teaser-disclaimer { font-size: 7pt; opacity: 1; }
  .teaser-foot { text-align: left; }
}
