/* Water-level spine: one plain status sentence beside the satellite record, then the
   level itself as the page's backbone. Hairlines and space separate sections; no boxes,
   no labels above headings, no pills. */
* { box-sizing: border-box; }
body {
	margin: 0; background: var(--color-bg); color: var(--color-text);
	font-family: var(--font-body); font-size: var(--text-body); line-height: var(--leading-body);
	--closed: #C8413B; --open: #2E9E5B; --breach: #C9652F;
	/* numbers use the UI face with tabular figures, not a monospace */
	--font-mono: var(--font-ui);
	font-variant-numeric: lining-nums;
}
body.dark-mode { background: var(--color-bg); --closed: #E0605A; --open: #4CC27C; --breach: #E58A55; }
::selection { background: var(--gc-mist); color: var(--gc-ink); }
body.dark-mode ::selection { background: var(--gc-sky); color: var(--gc-paper); }
a { color: var(--color-link); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 3px; border-radius: 2px; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 48px); }
.mono, .num { font-family: var(--font-ui); font-variant-numeric: tabular-nums lining-nums; }

header.top { border-bottom: 1px solid var(--color-border); position: sticky; top: 0; z-index: 20; background: var(--color-bg); }
html { scroll-padding-top: 72px; }
header.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 56px; font-family: var(--font-ui); }
.site-title { font: 700 1.08rem/1.15 var(--font-display); color: var(--color-text); text-decoration: none; letter-spacing: -0.01em; white-space: nowrap; }
.site-title span { color: var(--color-accent); }
.top-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.alert-btn { display: inline-flex; align-items: center; gap: 6px; font: 600 0.9rem var(--font-ui); color: var(--color-on-accent); background: var(--color-accent); border-radius: 999px; padding: 7px 14px 7px 11px; text-decoration: none; white-space: nowrap; }
.alert-btn:hover { filter: brightness(1.08); text-decoration: none; }
.alert-btn svg { width: 17px; height: 17px; }
.dm { display: grid; place-items: center; width: 38px; height: 38px; background: none; border: 0; border-radius: 50%; color: var(--color-muted); cursor: pointer; padding: 0; }
.dm:hover { color: var(--color-text); background: var(--color-surface); }
.dm svg { width: 20px; height: 20px; }
.dm-toggle-sun { display: none; }
body.dark-mode .dm-toggle-sun { display: block; } body.dark-mode .dm-toggle-moon { display: none; }

h1, h2, h3 { font-family: var(--font-display); line-height: var(--leading-tight); margin: 0; text-wrap: balance; }
h2 { font-size: clamp(1.5rem, 1.2vw + 1.1rem, 2rem); font-weight: 650; letter-spacing: -0.01em; }
h3 { font-size: 1.05rem; font-weight: 650; }
.muted { color: var(--color-muted); }
.small { font-size: var(--text-small); }

/* ---- head: status sentence + satellite record */
.head { display: grid; grid-template-columns: minmax(0, 500px) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); padding: clamp(40px, 6vw, 72px) 0 clamp(32px, 4vw, 48px); align-items: start; }
.head h1 { font-size: clamp(2.6rem, 4.4vw + 1rem, 5rem); font-weight: 700; letter-spacing: -0.025em; line-height: 1.02; }
.dot { display: inline-block; width: 0.32em; height: 0.32em; border-radius: 50%; margin-right: 0.28em; vertical-align: 0.16em; }
.lead { font-size: clamp(1.15rem, 0.5vw + 1rem, 1.35rem); line-height: 1.5; margin: 0; }
.outlook { font-size: clamp(1.05rem, 0.3vw + 1rem, 1.2rem); line-height: 1.55; margin: var(--space-4) 0 0; color: var(--color-text); }
.lead .num, .outlook .num { font-family: inherit; font-variant-numeric: tabular-nums lining-nums; font-weight: 600; }
.chance-likely { color: var(--gc-clay); } body.dark-mode .chance-likely { color: #E58A6A; }
.window { font: 1.02rem/1.55 var(--font-ui); margin: var(--space-4) 0 0; padding: 10px 14px; border-radius: var(--radius-sm); background: var(--color-surface); }
.readings { display: grid; grid-template-columns: auto 1fr; gap: 0; margin: var(--space-6) 0 0; font-family: var(--font-ui); }
.readings dt, .readings dd { margin: 0; padding: 10px 0; border-top: 1px solid var(--color-border); }
.readings dt { color: var(--color-muted); font-size: 0.95rem; padding-right: var(--space-6); }
.readings dd { font-family: var(--font-ui); font-variant-numeric: tabular-nums lining-nums; font-size: 1.02rem; font-weight: 600; }
.readings dd small { font-weight: 400; }
.readings dd small { font-family: var(--font-ui); color: var(--color-muted); font-size: 0.85rem; margin-left: 6px; }

/* satellite frames */
.frames { margin: 0; }
.frames .stage { position: relative; aspect-ratio: 1056 / 960; border-radius: 4px; overflow: hidden; background: #0d1a22; }
.frames .stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; filter: blur(6px) saturate(0.8); transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), filter 0.9s cubic-bezier(0.16, 1, 0.3, 1); }
.frames .stage img.on { opacity: 1; filter: none; }
.frames .strip { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; margin-top: 10px; }
.frames .strip button { all: unset; cursor: pointer; display: grid; gap: 4px; font: 500 0.78rem/1.2 var(--font-ui); color: var(--color-muted); }
.frames .strip img { width: 100%; aspect-ratio: 1056 / 960; object-fit: cover; border-radius: 2px; opacity: 0.7; outline: 2px solid transparent; outline-offset: 1px; transition: opacity 0.2s, outline-color 0.2s; }
.frames .strip button:hover img { opacity: 1; }
.frames .strip button[aria-pressed="true"] { color: var(--color-text); }
.frames .strip button[aria-pressed="true"] img { opacity: 1; outline-color: var(--color-accent); }
.frames .strip button:focus-visible img { outline-color: var(--color-accent); }
.frames figcaption { margin-top: var(--space-3); font-size: 0.98rem; line-height: 1.5; }
.frames figcaption .when { display: block; font: 500 0.85rem var(--font-ui); color: var(--color-muted); margin-bottom: 2px; }
@media (prefers-reduced-motion: reduce) { .frames .stage img { transition: none; filter: none; } }

/* ---- sections */
section.block { padding: clamp(32px, 4vw, 48px) 0; border-top: 1px solid var(--color-border); }
.intro { margin: var(--space-2) 0 var(--space-4); color: var(--color-muted); font-size: 1rem; }
.sec-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; }

svg.chart { width: 100%; height: auto; display: block; overflow: visible; }
svg.chart text { font-family: var(--font-ui); font-size: 11px; fill: var(--color-muted); font-variant-numeric: tabular-nums; }
svg.chart .axis { stroke: var(--color-border); }
svg.chart .grid { stroke: var(--color-border); stroke-dasharray: 2 3; }

/* plain text controls: the pressed one is underlined, not filled */
.controls { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 18px; font-family: var(--font-ui); }
.controls button { all: unset; cursor: pointer; font-size: 0.92rem; color: var(--color-muted); padding: 4px 0; border-bottom: 2px solid transparent; }
.controls button:hover { color: var(--color-text); }
.controls button[aria-pressed="true"] { color: var(--color-text); border-bottom-color: var(--color-accent); }
.controls button.ic { display: inline-flex; align-items: center; gap: 6px; }
.controls button.ic svg { width: 17px; height: 17px; flex: none; }
.controls .sep { width: 1px; height: 16px; background: var(--color-border); }
.controls button:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 3px; }
.legend { display: flex; flex-wrap: wrap; gap: 4px 18px; font: 0.82rem var(--font-ui); color: var(--color-muted); margin: var(--space-3) 0 var(--space-2); }
.legend .sw { display: inline-block; width: 18px; height: 12px; margin-right: 6px; vertical-align: -1px; overflow: visible; }
.after { margin: var(--space-3) 0 0; font-size: 0.98rem; }

.split { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
table.days { width: 100%; border-collapse: collapse; font: 0.88rem var(--font-ui); }
table.days th { font-weight: 500; color: var(--color-muted); text-align: right; padding: 0 6px 8px; vertical-align: bottom; line-height: 1.25; }
table.days td { text-align: right; padding: 7px 6px; border-top: 1px solid var(--color-border); white-space: nowrap; font-variant-numeric: tabular-nums lining-nums; font-size: 0.88rem; }
table.days th:first-child, table.days td:first-child { text-align: left; font-family: var(--font-ui); padding-left: 0; }
table.days tr.today td { font-weight: 600; }
table.days td .sub { display: block; white-space: normal; font-size: .8em; font-weight: 400; line-height: 1.3; margin-top: 2px; }
table.days td.lvl { text-align: left; } table.days th:last-child { text-align: left; }
table.days .dot { display: inline-block; width: .6em; height: .6em; border-radius: 50%; margin-right: .4em; vertical-align: .05em; }
table.days td.likely { color: #3E7A3A; font-weight: 600; } body.dark-mode table.days td.likely { color: #8CCB86; }
.table-scroll { overflow-x: auto; }

.panels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 4vw, 56px) clamp(24px, 4vw, 56px); margin-top: var(--space-6); }
.panels > div { min-width: 0; }
.panels .wide { grid-column: 1 / -1; }
ul.plain { list-style: none; padding: 0; margin: var(--space-2) 0 0; }
ul.plain li { padding: 7px 0; border-top: 1px solid var(--color-border); font: 0.92rem var(--font-ui); display: flex; justify-content: space-between; gap: 12px; }
ul.plain li .num { font-size: 0.86rem; }
.warn { margin: 0 0 var(--space-6); font: 0.95rem var(--font-ui); color: var(--color-text); }
.warn::before { content: "Note: "; font-weight: 600; }

/* Breach Watch sign: a routed wooden board, like a fire-danger sign */
.sign { --board: #3A2E22; display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(16px, 3vw, 40px); align-items: center; max-width: 900px; margin-top: var(--space-6); padding: clamp(18px, 3vw, 32px); background: var(--board); color: #F3EBDD; border-radius: 10px; outline: 2px solid rgba(224, 182, 86, 0.55); outline-offset: -10px; box-shadow: 0 2px 4px rgba(27, 37, 48, 0.18), 0 14px 32px rgba(27, 37, 48, 0.18); }
.sign .crow { margin: 0; text-align: center; }
.sign img { width: 100%; height: auto; display: block; }
.sign .crow figcaption { font: italic 600 clamp(1rem, 0.6vw + 0.85rem, 1.25rem)/1.3 var(--font-body); color: #E0B656; margin-top: var(--space-2); }
.sign-dial { text-align: center; }
.sign-title { font: 700 clamp(1.5rem, 1.6vw + 1rem, 2.1rem)/1.1 var(--font-display); color: #E0B656; margin: 0; letter-spacing: -0.01em; }
.sign-sub { font: 500 0.95rem var(--font-ui); color: #D8CBB4; margin: 4px 0 var(--space-3); }
.sign .dial { width: 100%; max-width: 320px; height: auto; display: block; margin: 0 auto; font-family: var(--font-ui); }
.sign-read { font: 1rem/1.5 var(--font-ui); margin: var(--space-3) auto 0; max-width: 34ch; color: #F3EBDD; }
.sign-read strong { color: #E0B656; font-size: 1.15rem; }
.sign-title .sign-level { display: block; font-size: 1.45em; font-weight: 800; color: #F3EBDD; }
.custom-range { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: var(--space-3); font: 0.92rem var(--font-ui); color: var(--color-muted); }
.custom-range { align-items: center; }
.custom-range .date-field { display: inline-flex; align-items: center; gap: 6px; }
.custom-range .date-box { position: relative; display: inline-flex; align-items: center; background: var(--color-raised); border: 1px solid var(--color-border); border-radius: var(--radius-sm); }
.custom-range .date-box:focus-within { border-color: var(--color-accent); box-shadow: 0 0 0 2px color-mix(in srgb, var(--color-accent) 30%, transparent); }
.custom-range .date-text { font: 0.95rem var(--font-ui); color: var(--color-text); background: transparent; border: 0; outline: 0; padding: 7px 4px 7px 10px; width: 9.5em; font-variant-numeric: tabular-nums; }
.custom-range .date-text[aria-invalid] { color: var(--closed); }
.custom-range .date-cal { all: unset; cursor: pointer; display: inline-grid; place-items: center; width: 34px; height: 34px; color: var(--color-muted); border-left: 1px solid var(--color-border); }
.custom-range .date-cal:hover, .custom-range .date-cal:focus-visible { color: var(--color-text); }
.custom-range .date-native { position: absolute; right: 0; bottom: 0; width: 34px; height: 1px; opacity: 0; pointer-events: none; border: 0; padding: 0; color-scheme: light dark; }
.custom-range select { font: 0.92rem var(--font-ui); color: var(--color-text); background: var(--color-raised); border: 1px solid var(--color-border); border-radius: var(--radius-sm); padding: 7px 8px; color-scheme: light dark; }
.custom-range .range-msg { font-size: 0.85rem; }
@media (max-width: 560px) { .custom-range .date-text { font-size: 16px; width: 8.5em; } }
.custom-range[hidden] { display: none; }
@media (max-width: 640px) { .sign { grid-template-columns: 1fr; } .sign img { max-width: 220px; margin: 0 auto; } }
.head-sign .sign { margin-top: 0; }
@media (min-width: 641px) { .head-sign .sign { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 12px; } }
.head-sign .sign .crow figcaption { font-size: 0.95rem; }

/* alerts dialog */
dialog.alerts-dialog { width: min(760px, calc(100vw - 32px)); max-height: calc(100vh - 32px); border: 1px solid var(--color-border); border-radius: 10px; padding: clamp(18px, 3vw, 28px); background: var(--color-bg); color: var(--color-text); }
dialog.alerts-dialog::backdrop { background: rgba(10, 14, 18, 0.6); }
.alerts-head { display: flex; align-items: start; justify-content: space-between; gap: 16px; }
.dlg-close { all: unset; cursor: pointer; font-size: 1.6rem; line-height: 1; color: var(--color-muted); padding: 0 4px; }
.dlg-close:hover { color: var(--color-text); }
/* alerts */
.alerts { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-6) clamp(24px, 4vw, 56px); margin-top: var(--space-4); }
.alerts h3 { font-size: 1.05rem; margin-bottom: 4px; }
.alerts form { display: flex; gap: 8px; flex-wrap: wrap; margin-top: var(--space-2); }
.alerts input[type=email] { flex: 1 1 220px; min-width: 0; font: 1rem var(--font-ui); padding: 9px 12px; border-radius: var(--radius-sm); border: 1px solid var(--color-border); background: var(--color-raised); color: var(--color-text); caret-color: var(--color-accent); }
.alerts input[type=email]::placeholder { color: var(--color-muted); }
.alerts input[type=email]:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 1px; }
.btn { font: 600 0.92rem var(--font-ui); padding: 10px 18px; border-radius: var(--radius-sm); border: 1px solid var(--color-accent); background: var(--color-accent); color: var(--color-on-accent); cursor: pointer; margin-top: var(--space-2); }
.alerts form .btn { margin-top: 0; }
.btn:hover { filter: brightness(1.08); }
.btn.secondary { background: none; color: var(--color-accent); }
.btn:disabled { opacity: 0.5; cursor: default; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.note { font: 0.88rem var(--font-ui); color: var(--color-muted); margin: var(--space-2) 0 0; }
.note.ok { color: var(--color-secondary); }
.note.err { color: var(--gc-clay); } body.dark-mode .note.err { color: #E58A6A; }

/* gallery */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 18px 10px; margin-top: var(--space-4); }
.gallery button { all: unset; cursor: zoom-in; display: grid; gap: 6px; font: 500 0.8rem var(--font-ui); color: var(--color-muted); }
.gallery .ph { position: relative; aspect-ratio: 4 / 3; border-radius: 3px; overflow: hidden; background: var(--color-surface); }
.gallery img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1); }
.gallery button:hover img, .gallery button:focus-visible img { transform: scale(1.04); }
.gallery button:focus-visible .ph { outline: 2px solid var(--color-accent); outline-offset: 2px; }
.gallery .play { position: absolute; left: 10px; bottom: 10px; width: 30px; height: 30px; border-radius: 50%; background: rgba(0, 0, 0, 0.55); display: grid; place-items: center; }
.gallery .play svg { width: 12px; height: 12px; margin-left: 2px; fill: #fff; }
dialog.lightbox { width: min(1100px, 96vw); max-height: 94vh; padding: 0; border: 0; border-radius: 6px; background: #0b0f13; color: #E8ECEE; }
dialog.lightbox::backdrop { background: rgba(0, 0, 0, 0.82); }
.lightbox .media { display: grid; place-items: center; background: #000; }
.lightbox .media img, .lightbox .media video { max-width: 100%; max-height: 78vh; display: block; }
.lightbox .bar { display: flex; align-items: center; gap: 16px; padding: 12px 16px; font: 0.92rem var(--font-ui); }
.lightbox .bar p { margin: 0; flex: 1; }
.lightbox .bar button { all: unset; cursor: pointer; color: #C9D1D6; font: 600 0.88rem var(--font-ui); padding: 4px 0; border-bottom: 1px solid rgba(232, 236, 238, 0.3); }
.lightbox .bar button:hover { color: #fff; border-bottom-color: #fff; }

/* how this works */
.prose { columns: 2 380px; column-gap: clamp(32px, 5vw, 64px); margin-top: var(--space-4); }
.prose p { margin: 0 0 var(--space-4); break-inside: avoid-column; }
.sources { font: 0.88rem/1.6 var(--font-ui); color: var(--color-muted); margin-top: var(--space-4); }
.sources .down { color: var(--gc-clay); } body.dark-mode .sources .down { color: #E58A6A; }

footer { border-top: 1px solid var(--color-border); padding: var(--space-8) 0 var(--space-12); font: 0.88rem var(--font-ui); color: var(--color-muted); }
.loading { padding: var(--space-16) 0; font-family: var(--font-ui); color: var(--color-muted); }
[hidden] { display: none !important; }
.loading-status { font: 600 1rem var(--font-ui); color: var(--color-muted); margin: 0 0 var(--space-4); }
.sk-line, .sk-readings span, .sk-chart { display: block; border-radius: var(--radius-sm, 6px); background: var(--color-border); animation: sk-pulse 1.4s ease-in-out infinite; }
.sk-line { height: 1.1rem; margin: 0 0 12px; }
.sk-readings { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: var(--space-6); }
.sk-readings span { height: 3.2rem; }
.sk-chart { height: clamp(260px, 38vw, 420px); margin-top: var(--space-4); }
.sk-dial { color: rgba(243, 235, 221, 0.18); animation: sk-pulse 1.4s ease-in-out infinite; }
@keyframes sk-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.45; } }
@media (prefers-reduced-motion: reduce) { .sk-line, .sk-readings span, .sk-chart, .sk-dial { animation: none; } }

@media (max-width: 900px) {
	.head { grid-template-columns: 1fr; }
	.head-sign { max-width: 560px; }
	.frames { max-width: 560px; }
	.split, .panels, .alerts { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
	.frames .strip { gap: 4px; }
	.frames .strip button { font-size: 0.68rem; }
	.readings { grid-template-columns: 1fr; }
	.readings dt { padding-bottom: 0; }
	.readings dd { border-top: 0; padding-top: 2px; }
}
	
/* tabs between the live page and the model write-up */
.tabs { display: flex; gap: 20px; font: 600 0.95rem var(--font-ui); }
.tabs a { color: var(--color-muted); text-decoration: none; padding: 17px 0 15px; border-bottom: 2px solid transparent; }
.tabs a:hover { color: var(--color-text); }
.tabs a[aria-current="page"] { color: var(--color-text); border-bottom-color: var(--color-accent); }
header.top .wrap { gap: 24px; }
.tabs { margin-left: clamp(0px, 2vw, 24px); }
@media (max-width: 860px) {
	header.top .wrap { flex-wrap: wrap; height: auto; row-gap: 0; padding-top: 10px; }
	.tabs { order: 3; width: 100%; margin-left: 0; gap: 22px; }
	.tabs a { padding: 10px 0 9px; }
}
@media (max-width: 400px) { .alert-btn { padding: 7px 10px; } .site-title { font-size: 1rem; } }

/* events: breaches, closures, overtopping */
#events h3 { font: 600 1.05rem var(--font-ui); margin: var(--space-8) 0 var(--space-2); }
.ev-examples { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-6) 40px; }
.ev-example { margin: 0; }
.ev-example figcaption { font: 0.92rem/1.5 var(--font-ui); color: var(--color-text); margin-top: var(--space-2); }
.ev-table-wrap { overflow-x: auto; margin-top: var(--space-3); }
.ev-table td, .ev-table th { text-align: left !important; }
.ev-table td.ev-note { white-space: normal; color: var(--color-muted); min-width: 260px; }
.ev-tag { font-weight: 600; }
.ev-tag.ev-breach { color: var(--breach); }
.ev-tag.ev-closure { color: var(--color-muted); }
.ev-tag.ev-overtopping { color: #2D5A7B; } body.dark-mode .ev-tag.ev-overtopping { color: #7FA3BD; }
.ev-prov { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--color-muted); border: 1px solid var(--color-border); border-radius: 3px; padding: 0 4px; }
@media (max-width: 900px) { .ev-examples { grid-template-columns: 1fr; } }
.ev-more { all: unset; cursor: pointer; font: 500 0.92rem var(--font-ui); color: var(--color-accent); margin-top: var(--space-3); }
.ev-more:hover { text-decoration: underline; }
.ev-more[hidden] { display: none; }
.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; }

/* History tab */
.page-intro { padding: clamp(40px, 6vw, 72px) 0 clamp(24px, 3vw, 40px); }
.page-intro h1 { font-size: clamp(2.2rem, 3vw + 1rem, 3.6rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.05; margin-bottom: var(--space-6); }
.ev-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: var(--space-4) 0 var(--space-4); }
.ev-card { all: unset; box-sizing: border-box; cursor: pointer; display: grid; align-content: start; gap: 2px; padding: 14px 16px; border: 1px solid var(--color-border); border-top: 4px solid var(--color-muted); border-radius: 6px; font-family: var(--font-ui); }
.ev-card:hover { background: var(--color-surface); }
.ev-card:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
.ev-card[aria-pressed="true"] { background: var(--color-surface); }
.ev-card.ev-first { border-top-color: var(--breach); }
.ev-card.ev-later { border-top-color: var(--breach); border-top-style: dashed; }
.ev-card.ev-overtopping { border-top-color: #2D5A7B; } body.dark-mode .ev-card.ev-overtopping { border-top-color: #7FA3BD; }
.ev-card-n { font: 700 2rem/1.1 var(--font-display); font-variant-numeric: tabular-nums lining-nums; }
.ev-card-l { font-weight: 600; font-size: 0.95rem; }
.ev-card-d { font-size: 0.84rem; color: var(--color-muted); line-height: 1.4; margin-top: 4px; }
.ev-tag.ev-later { font-weight: 500; }
@media (max-width: 900px) { .ev-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ws-split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; margin-top: var(--space-4); }
.ws-map { width: 100%; aspect-ratio: 4 / 5; max-height: 640px; border-radius: 10px; overflow: hidden; background: var(--color-surface, #1B2530); }
.ws-text p { margin: 0 0 var(--space-4); }
.ws-label { font: 600 12px var(--font-ui); color: #1B2530; background: #F3EBDD; border: 0; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35); }
.ws-label::before { display: none; }
@media (max-width: 900px) { .ws-split { grid-template-columns: 1fr; } .ws-map { aspect-ratio: 1 / 1; } }
.sat-split { display: grid; grid-template-columns: minmax(0, 560px) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; margin-top: var(--space-4); }
.sat-split .frames figcaption { display: none; }
ol.stages { list-style: none; margin: 0; padding: 0; counter-reset: st; }
ol.stages li { border-top: 1px solid var(--color-border); }
ol.stages button { all: unset; box-sizing: border-box; cursor: pointer; display: block; width: 100%; padding: 12px 0 12px 14px; border-left: 3px solid transparent; font: 0.95rem/1.5 var(--font-ui); color: var(--color-muted); }
ol.stages button:hover { color: var(--color-text); }
ol.stages button[aria-pressed="true"] { color: var(--color-text); border-left-color: var(--color-accent); }
ol.stages button:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
ol.stages strong { color: var(--color-text); }
ol.stages .when { font-size: 0.85rem; color: var(--color-muted); margin-left: 6px; }
ol.stages .txt { display: block; margin-top: 2px; }
@media (max-width: 900px) { .sat-split { grid-template-columns: 1fr; } .sat-split .frames { max-width: 560px; } ol.stages .txt { display: none; } ol.stages button[aria-pressed="true"] .txt { display: block; } }
.alert-btn .sm { display: none; }
@media (max-width: 640px) { .alert-btn .lg { display: none; } .alert-btn .sm { display: inline; } .site-title { font-size: 0.98rem; } header.top .wrap { gap: 10px; } }
.tl-legend span { display: inline-flex; align-items: center; gap: 6px; }
html.dark-mode-preload { background: #121A21; color-scheme: dark; }
@media (max-width: 360px) { .site-title { white-space: normal; } .tabs { gap: 16px; } }

/* History: days open to the tide */
.mouth-years td.mbar { width: 28%; min-width: 60px; text-align: left; }
@media (max-width: 560px) { .mouth-years td.mbar, .mouth-years th:nth-child(3) { display: none; } table.days.mouth-years tr td .sub { display: block; margin-left: 0; } }
.mouth-years td.mbar span { display: block; height: 10px; border-radius: 2px; background: var(--color-accent); }
table.days.mouth-years td .sub { display: inline; margin-left: 4px; white-space: nowrap; }
