/* The sea page's own parts. It also loads the weather pages' stylesheet for the
   parts the two share (.wx, the drawings, the keys). Tokens only: no literal
   colours, so day and night both work. */

.sea-pick { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 0.75rem; }
.sea-pick select { font: inherit; padding: 0.5rem 0.6rem; border-radius: 8px; border: 1px solid var(--water-edge); background: var(--sheet); color: var(--ink); max-width: 100%; min-height: 2.6rem; }

.sea-days td b { font-weight: 700; white-space: nowrap; }
.sea-days td.wrap { min-width: 6.5rem; }
@media (max-width: 26rem) {
  .sea-days { font-size: 0.85rem; }
  .sea-days th, .sea-days td { padding-right: 0.5rem; }
  .sea-days .mo { display: none; }
  .sea-days td.wrap { min-width: 4.6rem; }
  .sea-days .figure-note { font-size: 0.92em; }
}

/* the compass of open water */
.sea-compass { display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); gap: 1.25rem 2rem; align-items: center; }
@media (max-width: 40rem) { .sea-compass { grid-template-columns: minmax(0, 1fr); } .sea-compass svg { max-width: 15rem; } }
.sea-compass svg { width: 100%; height: auto; display: block; }
.sea-open { fill: var(--accent); }
.sea-far { fill: var(--accent); fill-opacity: 0.4; }
.sea-near { fill: var(--land-edge); }
.sea-ring { fill: none; stroke: var(--ink-soft); stroke-width: 0.6; stroke-dasharray: 2 3; }
.sea-letter { font: 700 10px var(--text); fill: var(--ink-soft); }
.sea-arrow { fill: none; stroke: var(--ink); stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }
.wx-key .k-sea-open { background: var(--accent); }
.wx-key .k-sea-far { background: var(--accent); opacity: 0.4; }
.wx-key .k-sea-near { background: var(--land-edge); }
.wx-key .k-sea { background: var(--accent); outline: 1px solid var(--water-edge); }

/* the map: blocks, on purpose */
.sea-map { --yw: 0rem; max-width: 40rem; }
.sea-map canvas { width: 100%; height: auto; display: block; border: 1px solid var(--water-edge); border-radius: 6px; image-rendering: pixelated; }

/* ----- the look: the shell's tiles, dial and days, with the few fittings this page adds ----- */
.sea-alerts { padding-top: 1rem; }
.sea-alerts:has([data-sea-alerts]:empty) { padding-top: 0; }
.sea-from { display: flex; gap: 1rem; align-items: center; }
.sea-from-say { font-size: 0.95rem; color: var(--ink); }
.sea-from-say span { color: var(--ink-soft); font-size: var(--step--1); }
@media (max-width: 24rem) { .sea-from { flex-direction: column; align-items: flex-start; } }
.sea-daylist .day-hi { font-size: 1.35rem; white-space: nowrap; }
.sea-daylist .day-hi small { font-size: 0.55em; }
.sea .band-head h2 span { white-space: nowrap; }

/* on a wide screen the map and the buoy tile sit side by side */
.sea-round { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem 2rem; align-items: start; }
@media (min-width: 60rem) { .sea-round { grid-template-columns: minmax(0, 40rem) minmax(0, 1fr); } }
.sea .tiles { grid-template-columns: repeat(auto-fit, minmax(min(10.5rem, 46%), 1fr)); }
