/* tide-note only. Tokens from ds.css only. Signature element: the 7-day tide curve (night shading, drained-flat band, high/low dots).
   Copied to public/tide.css at build time so the Worker-rendered pages (/tide/*, /region/*) use the same styles. */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.label { font-weight: 700; color: var(--text-2); margin: var(--s4) 0 var(--s2); font-size: var(--t-sm); }
.tool .results li a { font-weight: 700; }
.chips.seas { display: flex; flex-wrap: wrap; gap: var(--s2); list-style: none; padding: 0; margin: 0; }
.chips.seas a { padding: 0 var(--s4); border: 1px solid var(--rule); border-radius: 999px; color: var(--ink); text-decoration: none; }
.chips.seas a:hover { border-color: var(--accent); color: var(--accent); }

/* curve */
.tide-card { padding-top: var(--s5); }
.curve-wrap { overflow-x: auto; margin: 0 calc(var(--s2) * -1); }
.tide-curve { display: block; width: 100%; min-width: 40rem; height: auto; }
.tide-curve .night { fill: var(--fill); }
.tide-curve .dry { fill: var(--accent-weak); }
.tide-curve .sep { stroke: var(--rule); stroke-width: 1; }
.tide-curve .line { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linejoin: round; }
.tide-curve .now { stroke: var(--ink); stroke-width: 1.5; stroke-dasharray: 4 3; }
.tide-curve .ext circle { fill: var(--surface); stroke: var(--accent); stroke-width: 2; }
.tide-curve .ext.lo circle { fill: var(--accent); }
.tide-curve text { font-size: 11px; fill: var(--text-2); font-variant-numeric: tabular-nums; }
.tide-curve .col rect { fill: transparent; }
.tide-curve .col:hover rect, .tide-curve .col:focus rect { fill: var(--accent-weak); fill-opacity: .35; }
.tide-curve .col text { font-weight: 700; fill: var(--ink); }

/* day rows */
.days { list-style: none; margin: 0; padding: 0; }
.days .day { border-top: 1px solid var(--rule); }
.days .day:last-child { border-bottom: 1px solid var(--rule); }
.days summary { display: grid; grid-template-columns: 6.5rem 3.5rem minmax(0, 1fr); gap: var(--s3); align-items: baseline; padding: var(--s4) 0; cursor: pointer; list-style: none; min-height: 2.75rem; }
.days summary::-webkit-details-marker { display: none; }
.days summary .d { font-weight: 700; }
.days summary .md { color: var(--accent); font-weight: 700; }
.days summary .hl { color: var(--text-2); font-variant-numeric: tabular-nums; }
.days .day:target summary, .days summary:focus-visible { background: var(--accent-weak); }
.day-body { padding: 0 0 var(--s5); }
.day-body .table { margin-bottom: var(--s4); }
.warn-eq { display: inline; }
.warn-eq b { color: var(--ink); }
@media (max-width: 30rem) { .days summary { grid-template-columns: 5.5rem 3rem minmax(0, 1fr); gap: var(--s2); } }

/* inline alert card */
.alert-card { margin: var(--s6) 0; }
.alert-card h2 { margin-top: 0; }

/* monthly calendar */
.cal-wrap { overflow-x: auto; }
.cal { width: 100%; border-collapse: collapse; table-layout: fixed; font-variant-numeric: tabular-nums; }
.cal th { font-size: var(--t-cap); color: var(--text-2); padding: var(--s2) 0; border-bottom: 1px solid var(--line-strong); }
.cal td { vertical-align: top; border: 1px solid var(--rule); padding: var(--s1) var(--s2); height: 5.5rem; }
.cal td.empty { background: var(--fill); }
.cal .cd { display: block; font-size: var(--t-cap); color: var(--text-2); }
.cal .cmd { display: block; font-size: var(--t-lg); }
.cal .chl { display: block; font-size: .8125rem; line-height: 1.35; color: var(--text-2); }
.cal td.spring .cmd { text-decoration: underline; text-decoration-thickness: 2px; }
.cal td.spring { border: 2px solid var(--ink); }
.print-source { font-size: var(--t-cap); color: var(--text-2); margin-top: var(--s3); }
@media (max-width: 40rem) { .cal { min-width: 36rem; } }

/* app */
.fav-card { display: grid; gap: var(--s1); }
.fav-card .big { font-size: var(--t-lg); font-weight: 700; }
.stepper { display: flex; align-items: center; gap: var(--s3); }
.stepper output { min-width: 3rem; text-align: center; font-size: var(--t-lg); font-weight: 700; }
.choice { display: flex; flex-wrap: wrap; gap: var(--s2); list-style: none; padding: 0; margin: 0; }
.choice button { min-height: 2.75rem; padding: 0 var(--s4); border-radius: 999px; border: 1px solid var(--rule); background: var(--surface); color: var(--ink); cursor: pointer; }
.choice button[aria-pressed='true'] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.bars { list-style: none; padding: 0; margin: 0; }
.bars li { display: grid; grid-template-columns: 6rem minmax(0, 1fr) 4.5rem; gap: var(--s3); align-items: center; padding: var(--s2) 0; }
.bars .bar { height: .75rem; background: var(--accent); border-radius: 999px; min-width: 2px; }
.bars .n { text-align: right; font-variant-numeric: tabular-nums; }
.preview { list-style: none; padding: 0; margin: var(--s3) 0 0; display: grid; gap: var(--s2); }
.ai-label { display: inline-block; margin-left: var(--s2); }

/* print: one A4 page, no header, footer, ads or buttons; black and white readable */
@page { size: A4; margin: 10mm; }
@media print {
  .site-head, .side, .related, .foot, .ad, .no-print, .row-actions, .band .lede, .sources, .alert-card { display: none; }
  body { background: var(--paper); }
  .cal td { height: auto; min-height: 20mm; border-color: var(--ink); }
  .cal .chl, .cal .cd, .print-source { color: var(--ink); }
  .print-sheet { padding: 0; }
}
.print-sheet { max-width: 60rem; margin: 0 auto; padding: var(--s5) var(--s4); }
.print-sheet h1 { font-size: var(--t-h2); margin: 0 0 var(--s2); }
