/* required styles */

.leaflet-pane,
.leaflet-tile,
.leaflet-marker-icon,
.leaflet-marker-shadow,
.leaflet-tile-container,
.leaflet-pane > svg,
.leaflet-pane > canvas,
.leaflet-zoom-box,
.leaflet-image-layer,
.leaflet-layer {
	position: absolute;
	left: 0;
	top: 0;
	}
.leaflet-container {
	overflow: hidden;
	}
.leaflet-tile,
.leaflet-marker-icon,
.leaflet-marker-shadow {
	-webkit-user-select: none;
	   -moz-user-select: none;
	        user-select: none;
	  -webkit-user-drag: none;
	}
/* Prevents IE11 from highlighting tiles in blue */
.leaflet-tile::selection {
	background: transparent;
}
/* Safari renders non-retina tile on retina better with this, but Chrome is worse */
.leaflet-safari .leaflet-tile {
	image-rendering: -webkit-optimize-contrast;
	}
/* hack that prevents hw layers "stretching" when loading new tiles */
.leaflet-safari .leaflet-tile-container {
	width: 1600px;
	height: 1600px;
	-webkit-transform-origin: 0 0;
	}
.leaflet-marker-icon,
.leaflet-marker-shadow {
	display: block;
	}
/* .leaflet-container svg: reset svg max-width decleration shipped in Joomla! (joomla.org) 3.x */
/* .leaflet-container img: map is broken in FF if you have max-width: 100% on tiles */
.leaflet-container .leaflet-overlay-pane svg {
	max-width: none !important;
	max-height: none !important;
	}
.leaflet-container .leaflet-marker-pane img,
.leaflet-container .leaflet-shadow-pane img,
.leaflet-container .leaflet-tile-pane img,
.leaflet-container img.leaflet-image-layer,
.leaflet-container .leaflet-tile {
	max-width: none !important;
	max-height: none !important;
	width: auto;
	padding: 0;
	}

.leaflet-container img.leaflet-tile {
	/* See: https://bugs.chromium.org/p/chromium/issues/detail?id=600120 */
	mix-blend-mode: plus-lighter;
}

.leaflet-container.leaflet-touch-zoom {
	-ms-touch-action: pan-x pan-y;
	touch-action: pan-x pan-y;
	}
.leaflet-container.leaflet-touch-drag {
	-ms-touch-action: pinch-zoom;
	/* Fallback for FF which doesn't support pinch-zoom */
	touch-action: none;
	touch-action: pinch-zoom;
}
.leaflet-container.leaflet-touch-drag.leaflet-touch-zoom {
	-ms-touch-action: none;
	touch-action: none;
}
.leaflet-container {
	-webkit-tap-highlight-color: transparent;
}
.leaflet-container a {
	-webkit-tap-highlight-color: rgba(51, 181, 229, 0.4);
}
.leaflet-tile {
	filter: inherit;
	visibility: hidden;
	}
.leaflet-tile-loaded {
	visibility: inherit;
	}
.leaflet-zoom-box {
	width: 0;
	height: 0;
	-moz-box-sizing: border-box;
	     box-sizing: border-box;
	z-index: 800;
	}
/* workaround for https://bugzilla.mozilla.org/show_bug.cgi?id=888319 */
.leaflet-overlay-pane svg {
	-moz-user-select: none;
	}

.leaflet-pane         { z-index: 400; }

.leaflet-tile-pane    { z-index: 200; }
.leaflet-overlay-pane { z-index: 400; }
.leaflet-shadow-pane  { z-index: 500; }
.leaflet-marker-pane  { z-index: 600; }
.leaflet-tooltip-pane   { z-index: 650; }
.leaflet-popup-pane   { z-index: 700; }

.leaflet-map-pane canvas { z-index: 100; }
.leaflet-map-pane svg    { z-index: 200; }

.leaflet-vml-shape {
	width: 1px;
	height: 1px;
	}
.lvml {
	behavior: url(#default#VML);
	display: inline-block;
	position: absolute;
	}


/* control positioning */

.leaflet-control {
	position: relative;
	z-index: 800;
	pointer-events: visiblePainted; /* IE 9-10 doesn't have auto */
	pointer-events: auto;
	}
.leaflet-top,
.leaflet-bottom {
	position: absolute;
	z-index: 1000;
	pointer-events: none;
	}
.leaflet-top {
	top: 0;
	}
.leaflet-right {
	right: 0;
	}
.leaflet-bottom {
	bottom: 0;
	}
.leaflet-left {
	left: 0;
	}
.leaflet-control {
	float: left;
	clear: both;
	}
.leaflet-right .leaflet-control {
	float: right;
	}
.leaflet-top .leaflet-control {
	margin-top: 10px;
	}
.leaflet-bottom .leaflet-control {
	margin-bottom: 10px;
	}
.leaflet-left .leaflet-control {
	margin-left: 10px;
	}
.leaflet-right .leaflet-control {
	margin-right: 10px;
	}


/* zoom and fade animations */

.leaflet-fade-anim .leaflet-popup {
	opacity: 0;
	-webkit-transition: opacity 0.2s linear;
	   -moz-transition: opacity 0.2s linear;
	        transition: opacity 0.2s linear;
	}
.leaflet-fade-anim .leaflet-map-pane .leaflet-popup {
	opacity: 1;
	}
.leaflet-zoom-animated {
	-webkit-transform-origin: 0 0;
	    -ms-transform-origin: 0 0;
	        transform-origin: 0 0;
	}
svg.leaflet-zoom-animated {
	will-change: transform;
}

.leaflet-zoom-anim .leaflet-zoom-animated {
	-webkit-transition: -webkit-transform 0.25s cubic-bezier(0,0,0.25,1);
	   -moz-transition:    -moz-transform 0.25s cubic-bezier(0,0,0.25,1);
	        transition:         transform 0.25s cubic-bezier(0,0,0.25,1);
	}
.leaflet-zoom-anim .leaflet-tile,
.leaflet-pan-anim .leaflet-tile {
	-webkit-transition: none;
	   -moz-transition: none;
	        transition: none;
	}

.leaflet-zoom-anim .leaflet-zoom-hide {
	visibility: hidden;
	}


/* cursors */

.leaflet-interactive {
	cursor: pointer;
	}
.leaflet-grab {
	cursor: -webkit-grab;
	cursor:    -moz-grab;
	cursor:         grab;
	}
.leaflet-crosshair,
.leaflet-crosshair .leaflet-interactive {
	cursor: crosshair;
	}
.leaflet-popup-pane,
.leaflet-control {
	cursor: auto;
	}
.leaflet-dragging .leaflet-grab,
.leaflet-dragging .leaflet-grab .leaflet-interactive,
.leaflet-dragging .leaflet-marker-draggable {
	cursor: move;
	cursor: -webkit-grabbing;
	cursor:    -moz-grabbing;
	cursor:         grabbing;
	}

/* marker & overlays interactivity */
.leaflet-marker-icon,
.leaflet-marker-shadow,
.leaflet-image-layer,
.leaflet-pane > svg path,
.leaflet-tile-container {
	pointer-events: none;
	}

.leaflet-marker-icon.leaflet-interactive,
.leaflet-image-layer.leaflet-interactive,
.leaflet-pane > svg path.leaflet-interactive,
svg.leaflet-image-layer.leaflet-interactive path {
	pointer-events: visiblePainted; /* IE 9-10 doesn't have auto */
	pointer-events: auto;
	}

/* visual tweaks */

.leaflet-container {
	background: #ddd;
	outline-offset: 1px;
	}
.leaflet-container a {
	color: #0078A8;
	}
.leaflet-zoom-box {
	border: 2px dotted #38f;
	background: rgba(255,255,255,0.5);
	}


/* general typography */
.leaflet-container {
	font-family: "Helvetica Neue", Arial, Helvetica, sans-serif;
	font-size: 12px;
	font-size: 0.75rem;
	line-height: 1.5;
	}


/* general toolbar styles */

.leaflet-bar {
	box-shadow: 0 1px 5px rgba(0,0,0,0.65);
	border-radius: 4px;
	}
.leaflet-bar a {
	background-color: #fff;
	border-bottom: 1px solid #ccc;
	width: 26px;
	height: 26px;
	line-height: 26px;
	display: block;
	text-align: center;
	text-decoration: none;
	color: black;
	}
.leaflet-bar a,
.leaflet-control-layers-toggle {
	background-position: 50% 50%;
	background-repeat: no-repeat;
	display: block;
	}
.leaflet-bar a:hover,
.leaflet-bar a:focus {
	background-color: #f4f4f4;
	}
.leaflet-bar a:first-child {
	border-top-left-radius: 4px;
	border-top-right-radius: 4px;
	}
.leaflet-bar a:last-child {
	border-bottom-left-radius: 4px;
	border-bottom-right-radius: 4px;
	border-bottom: none;
	}
.leaflet-bar a.leaflet-disabled {
	cursor: default;
	background-color: #f4f4f4;
	color: #bbb;
	}

.leaflet-touch .leaflet-bar a {
	width: 30px;
	height: 30px;
	line-height: 30px;
	}
.leaflet-touch .leaflet-bar a:first-child {
	border-top-left-radius: 2px;
	border-top-right-radius: 2px;
	}
.leaflet-touch .leaflet-bar a:last-child {
	border-bottom-left-radius: 2px;
	border-bottom-right-radius: 2px;
	}

/* zoom control */

.leaflet-control-zoom-in,
.leaflet-control-zoom-out {
	font: bold 18px 'Lucida Console', Monaco, monospace;
	text-indent: 1px;
	}

.leaflet-touch .leaflet-control-zoom-in, .leaflet-touch .leaflet-control-zoom-out  {
	font-size: 22px;
	}


/* layers control */

.leaflet-control-layers {
	box-shadow: 0 1px 5px rgba(0,0,0,0.4);
	background: #fff;
	border-radius: 5px;
	}
.leaflet-control-layers-toggle {
	background-image: url(images/layers.png);
	width: 36px;
	height: 36px;
	}
.leaflet-retina .leaflet-control-layers-toggle {
	background-image: url(images/layers-2x.png);
	background-size: 26px 26px;
	}
.leaflet-touch .leaflet-control-layers-toggle {
	width: 44px;
	height: 44px;
	}
.leaflet-control-layers .leaflet-control-layers-list,
.leaflet-control-layers-expanded .leaflet-control-layers-toggle {
	display: none;
	}
.leaflet-control-layers-expanded .leaflet-control-layers-list {
	display: block;
	position: relative;
	}
.leaflet-control-layers-expanded {
	padding: 6px 10px 6px 6px;
	color: #333;
	background: #fff;
	}
.leaflet-control-layers-scrollbar {
	overflow-y: scroll;
	overflow-x: hidden;
	padding-right: 5px;
	}
.leaflet-control-layers-selector {
	margin-top: 2px;
	position: relative;
	top: 1px;
	}
.leaflet-control-layers label {
	display: block;
	font-size: 13px;
	font-size: 1.08333em;
	}
.leaflet-control-layers-separator {
	height: 0;
	border-top: 1px solid #ddd;
	margin: 5px -10px 5px -6px;
	}

/* Default icon URLs */
.leaflet-default-icon-path { /* used only in path-guessing heuristic, see L.Icon.Default */
	background-image: url(images/marker-icon.png);
	}


/* attribution and scale controls */

.leaflet-container .leaflet-control-attribution {
	background: #fff;
	background: rgba(255, 255, 255, 0.8);
	margin: 0;
	}
.leaflet-control-attribution,
.leaflet-control-scale-line {
	padding: 0 5px;
	color: #333;
	line-height: 1.4;
	}
.leaflet-control-attribution a {
	text-decoration: none;
	}
.leaflet-control-attribution a:hover,
.leaflet-control-attribution a:focus {
	text-decoration: underline;
	}
.leaflet-attribution-flag {
	display: inline !important;
	vertical-align: baseline !important;
	width: 1em;
	height: 0.6669em;
	}
.leaflet-left .leaflet-control-scale {
	margin-left: 5px;
	}
.leaflet-bottom .leaflet-control-scale {
	margin-bottom: 5px;
	}
.leaflet-control-scale-line {
	border: 2px solid #777;
	border-top: none;
	line-height: 1.1;
	padding: 2px 5px 1px;
	white-space: nowrap;
	-moz-box-sizing: border-box;
	     box-sizing: border-box;
	background: rgba(255, 255, 255, 0.8);
	text-shadow: 1px 1px #fff;
	}
.leaflet-control-scale-line:not(:first-child) {
	border-top: 2px solid #777;
	border-bottom: none;
	margin-top: -2px;
	}
.leaflet-control-scale-line:not(:first-child):not(:last-child) {
	border-bottom: 2px solid #777;
	}

.leaflet-touch .leaflet-control-attribution,
.leaflet-touch .leaflet-control-layers,
.leaflet-touch .leaflet-bar {
	box-shadow: none;
	}
.leaflet-touch .leaflet-control-layers,
.leaflet-touch .leaflet-bar {
	border: 2px solid rgba(0,0,0,0.2);
	background-clip: padding-box;
	}


/* popup */

.leaflet-popup {
	position: absolute;
	text-align: center;
	margin-bottom: 20px;
	}
.leaflet-popup-content-wrapper {
	padding: 1px;
	text-align: left;
	border-radius: 12px;
	}
.leaflet-popup-content {
	margin: 13px 24px 13px 20px;
	line-height: 1.3;
	font-size: 13px;
	font-size: 1.08333em;
	min-height: 1px;
	}
.leaflet-popup-content p {
	margin: 17px 0;
	margin: 1.3em 0;
	}
.leaflet-popup-tip-container {
	width: 40px;
	height: 20px;
	position: absolute;
	left: 50%;
	margin-top: -1px;
	margin-left: -20px;
	overflow: hidden;
	pointer-events: none;
	}
.leaflet-popup-tip {
	width: 17px;
	height: 17px;
	padding: 1px;

	margin: -10px auto 0;
	pointer-events: auto;

	-webkit-transform: rotate(45deg);
	   -moz-transform: rotate(45deg);
	    -ms-transform: rotate(45deg);
	        transform: rotate(45deg);
	}
.leaflet-popup-content-wrapper,
.leaflet-popup-tip {
	background: white;
	color: #333;
	box-shadow: 0 3px 14px rgba(0,0,0,0.4);
	}
.leaflet-container a.leaflet-popup-close-button {
	position: absolute;
	top: 0;
	right: 0;
	border: none;
	text-align: center;
	width: 24px;
	height: 24px;
	font: 16px/24px Tahoma, Verdana, sans-serif;
	color: #757575;
	text-decoration: none;
	background: transparent;
	}
.leaflet-container a.leaflet-popup-close-button:hover,
.leaflet-container a.leaflet-popup-close-button:focus {
	color: #585858;
	}
.leaflet-popup-scrolled {
	overflow: auto;
	}

.leaflet-oldie .leaflet-popup-content-wrapper {
	-ms-zoom: 1;
	}
.leaflet-oldie .leaflet-popup-tip {
	width: 24px;
	margin: 0 auto;

	-ms-filter: "progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678)";
	filter: progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678);
	}

.leaflet-oldie .leaflet-control-zoom,
.leaflet-oldie .leaflet-control-layers,
.leaflet-oldie .leaflet-popup-content-wrapper,
.leaflet-oldie .leaflet-popup-tip {
	border: 1px solid #999;
	}


/* div icon */

.leaflet-div-icon {
	background: #fff;
	border: 1px solid #666;
	}


/* Tooltip */
/* Base styles for the element that has a tooltip */
.leaflet-tooltip {
	position: absolute;
	padding: 6px;
	background-color: #fff;
	border: 1px solid #fff;
	border-radius: 3px;
	color: #222;
	white-space: nowrap;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
	pointer-events: none;
	box-shadow: 0 1px 3px rgba(0,0,0,0.4);
	}
.leaflet-tooltip.leaflet-interactive {
	cursor: pointer;
	pointer-events: auto;
	}
.leaflet-tooltip-top:before,
.leaflet-tooltip-bottom:before,
.leaflet-tooltip-left:before,
.leaflet-tooltip-right:before {
	position: absolute;
	pointer-events: none;
	border: 6px solid transparent;
	background: transparent;
	content: "";
	}

/* Directions */

.leaflet-tooltip-bottom {
	margin-top: 6px;
}
.leaflet-tooltip-top {
	margin-top: -6px;
}
.leaflet-tooltip-bottom:before,
.leaflet-tooltip-top:before {
	left: 50%;
	margin-left: -6px;
	}
.leaflet-tooltip-top:before {
	bottom: 0;
	margin-bottom: -12px;
	border-top-color: #fff;
	}
.leaflet-tooltip-bottom:before {
	top: 0;
	margin-top: -12px;
	margin-left: -6px;
	border-bottom-color: #fff;
	}
.leaflet-tooltip-left {
	margin-left: -6px;
}
.leaflet-tooltip-right {
	margin-left: 6px;
}
.leaflet-tooltip-left:before,
.leaflet-tooltip-right:before {
	top: 50%;
	margin-top: -6px;
	}
.leaflet-tooltip-left:before {
	right: 0;
	margin-right: -12px;
	border-left-color: #fff;
	}
.leaflet-tooltip-right:before {
	left: 0;
	margin-left: -12px;
	border-right-color: #fff;
	}

/* Printing */

@media print {
	/* Prevent printers from removing background-images of controls. */
	.leaflet-control {
		-webkit-print-color-adjust: exact;
		print-color-adjust: exact;
		}
	}

:root {
  color-scheme: light;
  --page: #f4f6f3;
  --card: #fff;
  --ink: #142b2a;
  --muted: #516763;
  --accent: #106e61;
  --line: #dce6df;
  --pale: #e8f4ed;
  --warm: #fbefde;
  --paper: #f9fbf8;
  --radius: 20px;
  font-family: "Avenir Next", Avenir, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--page);
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
h1, h2, h3, p, figure { margin: 0; }
h2, h3, strong { font-weight: 700; }
a { color: var(--accent); text-underline-offset: .17em; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .7; }
:focus-visible { outline: 3px solid #18754f; outline-offset: 4px; }
main, section, #vannstand { scroll-margin-top: 1.5rem; }
.shell { width: min(1180px, calc(100% - 64px)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: 1rem; z-index: 5; transform: translateY(-160%); padding: .7rem 1rem; background: white; color: var(--ink); }
.skip:focus { transform: none; }
.top { background: #fff; border-bottom: 1px solid var(--line); }
.top-inner { min-height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .65rem; font-weight: 750; font-size: 1.19rem; letter-spacing: -.045em; text-decoration: none; color: var(--ink); white-space: nowrap; }
.brand span { color: var(--accent); margin-left: -.64rem; }
.top nav { display: flex; gap: clamp(.5rem, 2.4vw, 2rem); align-items: center; }
.top nav a { display: block; padding: .48rem .7rem; text-decoration: none; color: var(--muted); font-weight: 650; font-size: .95rem; border-radius: 9px; }
.top nav a:hover, .top nav .nav-active { color: var(--accent); background: #ecf4ef; }
.button { min-height: 42px; display: inline-flex; justify-content: center; align-items: center; gap: .5rem; font-weight: 650; padding: .55rem .85rem; border-radius: 10px; border: 1px solid var(--line); background: white; color: var(--ink); text-decoration: none; font-size: .9rem; }
.button:hover { background: var(--pale); }
.button.primary { color: #fff; background: #146259; border-color: #146259; }
.button.primary:hover { background: #0a4942; }
.ic { width: 20px; height: 20px; display: inline-grid; place-items: center; flex-shrink: 0; }
.ic svg { display: block; width: 100%; height: 100%; }
.main { padding-block: 28px 42px; }
.hero { background: #103634; background-image: linear-gradient(90deg, #0b292bee 0%, #0b292bbf 35%, #0b292b25 85%), url("/assets/kyst.jpg"); background-position: center, center 53%; background-size: cover; color: #fff; border-radius: 24px; padding: 29px 34px 31px; min-height: 232px; display: flex; align-items: center; }
.hero-content { width: 100%; }
.hero-context { display: inline-flex; gap: .45rem; align-items: center; color: #e1f2ec; font-size: .88rem; font-weight: 700; padding: .29rem .65rem; background: #d7f3e51c; border: 1px solid #d7f3e541; border-radius: 7px; }
.hero-context .ic { width: 15px; height: 15px; }
.hero h1 { font-size: clamp(2.7rem, 5.9vw, 4.45rem); line-height: 1.01; font-weight: 750; letter-spacing: -.07em; margin: .42rem 0 .35rem; overflow-wrap: anywhere; }
.hero p { color: #e1f2ed; font-size: 1rem; }
.hero p::first-letter { text-transform: uppercase; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: 1rem; }
.hero-button { color: white; background: #0b292b56; border-color: #d7f3e558; }
.hero-button:hover, .hero-button[aria-pressed=true] { color: #fff; background: #27665c; }
.hero-button .ic { width: 16px; height: 16px; }
.hero-button:focus-visible { outline-color: #d3f7e8; }
.notice { margin-top: 1rem; padding: .8rem 1rem; border-radius: 10px; background: #fff0d7; color: #58400e; }
.card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); min-width: 0; box-shadow: 0 3px 10px #10302505; }
.summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 17px 0; }
.metric { padding: 17px 20px; min-height: 145px; }
.metric-label { display: flex; align-items: center; gap: .63rem; }
.metric h2 { font-size: .95rem; }
.badge-icon { width: 36px; height: 36px; border-radius: 10px; color: #176254; background: var(--pale); }
.badge-icon svg { width: 20px; height: 20px; }
.low .badge-icon { color: #80501c; background: var(--warm); }
.current .badge-icon { color: #295e78; background: #e7f2f7; }
.metric-readout { display: flex; align-items: baseline; gap: .55rem; flex-wrap: wrap; margin-top: .3rem; font-variant-numeric: tabular-nums; }
.metric-readout strong { font-size: clamp(1.82rem, 3.6vw, 2.65rem); line-height: 1.18; letter-spacing: -.065em; }
.metric-readout span { color: var(--muted); font-size: .94rem; font-weight: 600; }
.metric p, .section-head p, .weather p, .shortcuts p, .block > p, .week-days p, #plan-results p { color: var(--muted); font-size: .91rem; }
.metric p { margin-top: .3rem; }
.details-grid { display: grid; align-items: start; grid-template-columns: minmax(0, 2.46fr) minmax(0, 1fr); gap: 16px; }
.chart-card, .weather, .shortcuts, .block { padding: 21px; }
.section-head { display: flex; align-items: flex-start; justify-content: space-between; gap: .75rem; }
.section-head h2, .shortcuts h2 { font-size: 1.22rem; letter-spacing: -.04em; line-height: 1.22; }
.section-head p { margin-top: .16rem; }
.segments { display: flex; background: #edf3ee; border: 1px solid var(--line); border-radius: 10px; padding: 3px; flex-shrink: 0; }
.segments button { border: 0; border-radius: 7px; padding: .36rem .65rem; background: transparent; color: var(--muted); font-size: .85rem; font-weight: 700; }
.segments button[aria-pressed=true] { color: var(--accent); background: #fff; box-shadow: 0 1px 4px #16362b18; }
#figure { margin-top: .9rem; }
#chart { display: block; width: 100%; height: 245px; touch-action: pan-y; cursor: crosshair; }
#chart-status { color: var(--muted); font-size: .85rem; }
#chart-status:not(:empty) { padding: .3rem 0; }
.legend { display: flex; flex-wrap: wrap; gap: .35rem 1rem; font-size: .84rem; color: var(--muted); margin-top: .1rem; }
.legend span { display: inline-flex; align-items: center; gap: .35rem; }
.legend span::before { display: inline-block; content: ""; width: 19px; border-top: 2px solid #176f60; }
.legend .forecast::before { border-top: 2px dashed #305b9e; }
.legend .prediction::before { border-top: 2px dotted #99702f; }
details summary { cursor: pointer; color: var(--accent); font-size: .9rem; font-weight: 700; padding-block: .45rem; }
#chart-details { margin-top: .45rem; }
.side-stack { display: grid; gap: 16px; align-content: start; }
.weather { background: #eaf4ef; }
.weather-readout { font-size: 2.45rem; font-weight: 730; font-variant-numeric: tabular-nums; letter-spacing: -.07em; line-height: 1.22; margin-top: .63rem; }
.weather-icon { color: #176b5a; width: 34px; height: 34px; }
.wind { display: flex; gap: .5rem; align-items: center; border-top: 1px solid #d0e3d8; padding-top: .6rem; margin-top: .65rem; color: #285c51; font-size: .92rem; }
.shortcuts p { margin-top: .4rem; }
.favorite-row { display: flex; align-items: center; gap: .45rem; margin-top: .35rem; justify-content: space-between; }
.favorite-row a { overflow-wrap: anywhere; font-size: .92rem; font-weight: 650; }
.favorite-row button { min-height: 35px; min-width: 37px; padding: .3rem; }
.block { margin-top: 17px; }
.block > p { margin-top: .75rem; }
.week-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 9px; margin-top: .8rem; }
.day { padding: .67rem .72rem; background: var(--paper); border: 1px solid var(--line); border-radius: 11px; }
.day h3 { font-size: .88rem; text-transform: capitalize; padding-bottom: .34rem; font-weight: 750; }
.events { list-style: none; padding: 0; margin: 0; }
.event { display: grid; gap: .25rem; grid-template-columns: 15px 1fr; align-items: center; padding-block: .3rem; border-top: 1px solid #e8eee8; font-size: .83rem; font-variant-numeric: tabular-nums; }
.event .ic { width: 14px; height: 14px; color: var(--accent); }
.event.event-low .ic { color: #80501c; }
.event span:last-child { color: var(--muted); white-space: nowrap; }
.event time { font-weight: 750; margin-right: .2em; }
.planner-form, .coordinates-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: .7rem; margin-top: .8rem; }
label { display: block; font-weight: 650; font-size: .9rem; }
input, select { min-height: 42px; border: 1px solid #bdcec2; padding: .48rem .65rem; border-radius: 9px; background: white; color: var(--ink); font-size: 1rem; }
label select, label input { display: block; margin-top: .25rem; max-width: 100%; }
#plan-results { margin-top: .9rem; }
.plan-row { display: flex; justify-content: space-between; align-items: center; gap: .65rem; padding: .65rem 0; border-top: 1px solid var(--line); }
.plan-row h3 { font-size: .95rem; }
.plan-row .button { flex-shrink: 0; }
footer { border-top: 1px solid var(--line); background: #fff; }
.footer-inner { min-height: 77px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .6rem 1.3rem; padding-block: .8rem; color: var(--muted); font-size: .87rem; }
.footer-inner .brand { font-size: 1rem; }
dialog { width: min(550px, calc(100% - 28px)); max-height: 85vh; overflow: auto; border: 1px solid var(--line); border-radius: 20px; padding: 1.35rem; color: var(--ink); background: #fff; box-shadow: 0 30px 85px #122c2977; }
dialog::backdrop { background: #11282597; }
.dialog-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: .75rem; }
.icon-only { min-width: 42px; padding: .42rem; }
.search-line { display: flex; gap: .5rem; margin-top: .3rem; }
.search-line input { min-width: 0; flex: 1; }
.location-actions { margin: .7rem 0; }
#search-status { color: var(--muted); font-size: .9rem; margin: .5rem 0; }
.place-list { display: grid; gap: .35rem; max-height: 42vh; overflow-y: auto; }
.place-result { display: flex; justify-content: space-between; align-items: center; width: 100%; text-align: left; gap: .5rem; padding: .52rem .65rem; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); }
.place-result:hover { background: var(--pale); }
.place-result span { color: var(--muted); font-size: .81rem; text-align: right; }
.manual { margin-top: .65rem; }
.coordinates-form label { flex: 1 1 135px; }
.coordinates-form input { width: 100%; min-width: 0; }
.table-wrap { overflow: auto; max-height: 250px; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: .86rem; font-variant-numeric: tabular-nums; }
td, th { padding: .35rem .45rem; border-bottom: 1px solid var(--line); }
th { background: var(--paper); position: sticky; top: 0; }
.article { max-width: 770px; }
.article section { padding: 1.3rem 0; }
.article h1 { font-size: clamp(2rem, 5vw, 3rem); letter-spacing: -.05em; }
.article h2 { font-size: 1.24rem; margin-bottom: .3rem; }
.article p + p { margin-top: .55rem; }
@media (max-width: 980px) {
  .week-days { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .shell { width: calc(100% - 30px); }
  .main { padding-top: 16px; }
  .top-inner { gap: 7px; padding-block: .58rem .44rem; flex-wrap: wrap; min-height: 0; }
  .top nav { order: 3; flex-basis: 100%; gap: .35rem; }
  .top nav a { padding: .36rem .65rem; }
  .hero { padding: 22px 19px; min-height: 208px; border-radius: 18px; }
  .hero h1 { font-size: clamp(2.5rem, 10vw, 3.9rem); }
  .summary { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin-block: 11px; }
  .metric { min-height: 0; padding: 12px; border-radius: 14px; }
  .metric h2 { font-size: .86rem; }
  .metric .badge-icon { width: 29px; height: 29px; }
  .metric .badge-icon svg { width: 17px; height: 17px; }
  .metric-readout span, .metric p { font-size: .8rem; }
  .current { grid-column: auto; }
  .details-grid { grid-template-columns: 1fr; gap: 11px; }
  .side-stack { grid-template-columns: 1fr 1fr; gap: 9px; }
  .chart-card, .weather, .shortcuts, .block { padding: 14px; border-radius: 15px; }
  .week-days { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plan-row .button { white-space: normal; }
}
@media (max-width: 365px) {
  .shell { width: calc(100% - 22px); }
  .brand { font-size: 1.07rem; }
  .side-stack { grid-template-columns: 1fr; }
  .plan-row { flex-wrap: wrap; }
}
.clear-location { margin-top: .65rem; }
.planner-mode { margin-top: .75rem; }
#height-value { width: 10rem; }
#location-nearby { margin-top: .65rem; }
#choose-nearby { margin-top: .65rem; }

.trend-card { display: flex; align-items: center; gap: 1rem; padding: 18px 21px; margin-top: 17px; }
.trend-card > .badge-icon { flex-shrink: 0; }
.trend-copy { flex: 1; min-width: 0; }
.trend-copy h2 { font-size: 1.12rem; line-height: 1.4; letter-spacing: -.02em; }
.trend-copy p, .trend-turn { color: var(--muted); font-size: .9rem; line-height: 1.6; }
.trend-copy p { margin-top: .2rem; }
.trend-turn { max-width: 22rem; }
@media (max-width: 700px) {
  .trend-card { flex-wrap: wrap; gap: .5rem .8rem; padding: 14px; margin-top: 11px; border-radius: 15px; }
  .trend-copy { flex: 1 1 calc(100% - 50px); }
  .trend-turn { flex-basis: 100%; max-width: none; padding-left: calc(36px + .8rem); }
}
.favorite-row { align-items: flex-start; padding-block: .6rem; border-top: 1px solid var(--line); }
.favorite-info { min-width: 0; }
.shortcuts .favorite-tides { white-space: pre-line; font-size: .875rem; line-height: 1.6; margin-top: .2rem; }
@media (max-width: 700px) { .side-stack { grid-template-columns: 1fr; } }

.footer-links { display: flex; flex-wrap: wrap; gap: .65rem 1.2rem; }
.footer-links [aria-current="page"] { font-weight: 700; }
.releases { max-width: 960px; padding-block: 3.25rem 4rem; }
.release-intro { max-width: 650px; margin-bottom: 3rem; }
.release-eyebrow { display: inline-block; color: var(--accent); font-size: .875rem; font-weight: 700; margin-bottom: .65rem; }
.release-intro h1 { font-size: clamp(2.5rem, 6vw, 3.8rem); letter-spacing: -.065em; line-height: 1.1; }
.release-intro > p { color: var(--muted); margin-top: 1rem; font-size: 1.05rem; line-height: 1.7; }
.release-group { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 2rem; }
.release-date { padding-top: .4rem; }
.release-date h2 { font-size: 1rem; letter-spacing: -.02em; }
.release-date > span { display: block; margin-top: .3rem; color: var(--muted); font-size: .875rem; }
.release-cards { display: grid; gap: 1rem; border-left: 1px solid var(--line); padding-left: 2rem; }
.release-card { padding: 1.5rem 1.65rem; }
.release-tag { display: inline-block; padding: .18rem .55rem; border-radius: 6px; background: var(--pale); color: var(--accent); font-size: .875rem; font-weight: 700; }
.release-tag-improved { background: #e7f2f7; color: #295e78; }
.release-tag-fixed { background: var(--warm); color: #80501c; }
.release-card h3 { font-size: 1.25rem; line-height: 1.35; letter-spacing: -.025em; margin-top: .75rem; }
.release-card p { color: var(--muted); margin-top: .65rem; line-height: 1.7; }
.release-feedback { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.release-feedback h2 { font-size: 1.1rem; }
.release-feedback p { margin-top: .35rem; color: var(--muted); }
@media (max-width: 700px) {
  .releases { padding-block: 2rem 2.5rem; }
  .release-intro { margin-bottom: 2rem; }
  .release-group { grid-template-columns: 1fr; gap: 1rem; }
  .release-date { display: flex; flex-wrap: wrap; align-items: baseline; gap: .3rem .75rem; }
  .release-date > span { margin-top: 0; }
  .release-cards { border-left: 0; padding-left: 0; }
  .release-card { padding: 1.25rem; }
}

.daylight-note { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .65rem; margin-top: .55rem; color: var(--muted); font-size: .875rem; line-height: 1.6; }
.daylight-badge { display: inline-block; border-radius: 7px; padding: .2rem .55rem; background: #edf1ef; color: #405750; font-weight: 650; }
.daylight-full .daylight-badge { background: var(--pale); color: #176254; }
.daylight-partial .daylight-badge { background: var(--warm); color: #80501c; }
.daylight-none .daylight-badge { background: #edf0f7; color: #445573; }
.daylight-help { max-width: 55rem; }
@media (max-width: 700px) {
  .plan-row { flex-wrap: wrap; align-items: flex-start; gap: .75rem; padding-block: 1rem; }
  .plan-row > div { flex-basis: 100%; }
}

.daylight-filter { display: inline-flex; align-items: center; gap: .65rem; cursor: pointer; margin-top: 1rem; padding: .65rem .8rem; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); }
.daylight-filter:has(input:checked) { background: var(--pale); border-color: #92bdae; }
.daylight-filter input { width: 1.15rem; height: 1.15rem; min-height: 0; margin: 0; accent-color: var(--accent); flex-shrink: 0; }
.block > .daylight-filter-help { margin-top: .35rem; font-size: .875rem; }
#plan-daylight-status { padding: .65rem .8rem; border-radius: 9px; background: var(--paper); margin-bottom: .7rem; }

.contribution .badge-icon { color: #645083; background: #f0ebf7; }
.contribution-help summary { font-size: .875rem; padding-bottom: 0; }
.contribution-help p { font-size: .875rem; }
.places-views { display: inline-flex; margin-bottom: .3rem; }
.map-toolbar { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .65rem; }
.map-toolbar .button { font-size: .875rem; padding-inline: .65rem; }
.station-map { width: 100%; height: min(40vh, 360px); min-height: 240px; border: 1px solid var(--line); border-radius: 12px; background: #e8eeee; isolation: isolate; }
.station-map .leaflet-control-attribution { font-size: 10px; }
.station-map .leaflet-control-zoom a { color: var(--ink); }
.station-map .station-map-marker { border: 3px solid white; border-radius: 50%; background: #146259; box-shadow: 0 1px 6px #0b292b88; }
.station-map .station-map-marker.is-selected { background: #a7670d; outline: 3px solid #e6c279; outline-offset: 2px; }
.station-map .station-map-marker:focus-visible { outline: 3px solid #142b2a; outline-offset: 4px; }
#map-status { font-size: .875rem; color: var(--muted); margin-top: .6rem; }
.map-choice { display: flex; gap: .8rem; align-items: center; justify-content: space-between; margin-top: .7rem; padding: .75rem; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); }
.map-choice-label { display: block; font-size: .875rem; color: var(--muted); }
#map-station-name { display: block; }
@media (min-width: 701px) and (max-width: 900px) { .summary { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) { .map-choice { flex-wrap: wrap; } }

dialog:has(#map-panel:not([hidden])) { width: min(760px, calc(100% - 28px)); }

/* Personal names and a shared tide comparison. */
.text-button { background: transparent; border: 0; padding: .5rem 0; color: var(--accent); text-decoration: underline; text-underline-offset: .2em; font-size: .875rem; }
.favorite-row .text-button { min-height: 44px; padding-inline: 0; }
.favorite-original { color: var(--muted); font-size: .875rem; overflow-wrap: anywhere; }
.compare-button { margin-block: .75rem .35rem; width: 100%; }
.dialog-help { color: var(--muted); font-size: .925rem; line-height: 1.65; margin-block: .5rem 1rem; }
#favorite-name-form label { display: block; margin-bottom: .35rem; font-weight: 650; }
#favorite-name-input { width: 100%; }
.dialog-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .65rem; margin-top: 1.25rem; }
#favorites-comparison { width: min(960px, calc(100% - 28px)); }
.comparison-list { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,230px),1fr)); gap: 1rem; }
.comparison-card { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 1.2rem; min-width: 0; }
.comparison-card h3 { font-size: 1.15rem; overflow-wrap: anywhere; }
.comparison-card dl { margin-block: 1rem; }
.comparison-card dl > div { border-top: 1px solid var(--line); padding-block: .7rem; }
.comparison-card dt { color: var(--muted); font-size: .875rem; }
.comparison-card dd { margin: .15rem 0; font-size: 1.45rem; font-weight: 700; }
.comparison-card dl p, .comparison-card > p { font-size: .875rem; color: var(--muted); }
.comparison-card > a { display: inline-block; margin-top: .7rem; padding-block: .25rem; }
@media(max-width: 600px) { .comparison-list { grid-template-columns: 1fr; } }
.trip-actions { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.plan-row .trip-actions { flex: 0 0 auto; }
.shared-trip { background: var(--pale); border: 1px solid #b4d8c8; border-radius: 14px; padding: 1.25rem; margin-block: 1.25rem; }
.shared-trip .section-head { margin-bottom: .6rem; }
.shared-trip h2 { font-size: .875rem; color: var(--accent); }
.shared-trip h3 { font-size: 1.25rem; }
.shared-trip-time { font-weight: 650; margin-block: .5rem; }
.shared-trip .trip-actions { margin-top: 1rem; }
#trip-share-link { width: 100%; margin-top: .4rem; font-size: .875rem; }
@media(max-width: 600px) {
  .plan-row .trip-actions { flex-basis: 100%; }
  .trip-actions .button { flex: 1; }
  .shared-trip { padding: 1rem; }
}
.comparison-card dd p { font-weight: 400; margin-top: .2rem; }
.comparison-card h3 { min-height: 1.7rem; }

/* Favorites occupy their own row, so they never stretch the water-level chart. */
.favorites-section #favorite-list { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .75rem; margin-top: 1rem; }
.favorites-section .favorite-row { margin: 0; border: 1px solid var(--line); border-radius: 12px; padding: 1rem; background: var(--paper); }
.favorites-section .compare-button { width: auto; margin: 0; }
.favorites-heading { align-items: center; flex-wrap: wrap; }
.favorites-section .favorite-row a { font-size: 1rem; }
.favorites-section #favorite-list > p { grid-column: 1 / -1; }
@media (min-width: 601px) and (max-width: 950px) { .favorites-section #favorite-list { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 600px) { .favorites-section #favorite-list { grid-template-columns: 1fr; } .favorites-section .compare-button { width: 100%; } }

/* Coastal weather details are kept outside the compact summary. */
.weather-details-button { margin-top: 1rem; width: 100%; background: #fff; }
#weather-details { width: min(1050px,calc(100% - 28px)); }
#weather-details .dialog-top { align-items: flex-start; }
#weather-details h2 { font-size: clamp(1.4rem,3vw,1.85rem); letter-spacing: -.04em; }
.weather-eyebrow { color: var(--accent); font-size: .875rem; font-weight: 700; }
.weather-modal-summary { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem; background: var(--pale); border-radius: 12px; padding: 1rem; }
.weather-modal-summary strong { font-size: 1.9rem; letter-spacing: -.05em; }
.weather-modal-summary > span:last-child { color: var(--muted); }
.weather-detail-values { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: .7rem; margin-block: 1rem 1.75rem; }
.weather-detail { min-width: 0; }
.weather-detail-values > div { padding: 1rem; border: 1px solid var(--line); border-radius: 12px; }
.weather-detail dt { color: var(--muted); font-size: .875rem; }
.weather-detail dd { margin: .3rem 0 0; font-weight: 700; font-size: 1.35rem; }
.weather-detail p { color: var(--muted); font-size: .875rem; margin-top: .4rem; }
.weather-hours-heading h3 { font-size: 1.15rem; }
.weather-hour-list { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: .6rem; margin-bottom: 1.25rem; }
.weather-hour { min-width: 0; padding: .9rem .75rem; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
.weather-hour h4 { margin: 0; font-size: 1.2rem; }
.weather-hour-date { font-size: .875rem; color: var(--muted); min-height: 2.6em; }
.weather-hour-symbol { display: flex; align-items: center; gap: .4rem; font-size: .875rem; margin-block: .65rem; min-height: 2.6em; }
.weather-hour dl { margin: 0; }
.weather-hour .weather-detail { border-top: 1px solid var(--line); padding-block: .5rem; }
.weather-hour dd { font-size: .95rem; overflow-wrap: anywhere; }
.weather-source { font-size: .875rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 1rem; }
@media(max-width: 900px) { .weather-hour-list { grid-template-columns: repeat(3,minmax(0,1fr)); } .weather-detail-values { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media(max-width: 600px) { .weather-hour-list { grid-template-columns: repeat(2,minmax(0,1fr)); } .weather-detail-values > div { padding: .8rem; } .weather-detail-values dd { font-size: 1.15rem; } .weather-modal-summary > span:last-child { flex-basis: 100%; } }

.planner-weather-help { margin-block: .65rem 1rem; font-size: .875rem; color: var(--muted); max-width: 850px; }
.window-weather { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: .75rem .85rem; margin-top: .65rem; }
#plan-results .window-weather .window-weather-title, .window-weather .window-weather-title { font-weight: 700; font-size: .875rem; color: var(--accent); }
.window-weather-values { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; list-style: none; padding: 0; margin: .45rem 0 0; }
.window-weather-values li { display: flex; flex-direction: column; min-width: 95px; font-size: .875rem; }
.window-weather-values li > span { color: var(--muted); }
.window-weather-values strong { font-size: .95rem; }
.window-weather > p:last-child:not(:first-child) { font-size: .875rem; color: var(--muted); margin-top: .4rem; }
.plan-row > div:first-child { min-width: 0; flex: 1; }
@media(max-width: 600px) { .window-weather-values { gap: .65rem; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); } .window-weather-values li { min-width: 0; } }

/* The planner starts as a compact disclosure and opens from the menu or its header. */
#planlegg { padding: 0; }
#planlegg > .planner-toggle { list-style: none; color: var(--ink); padding: 21px; border-radius: var(--radius); }
#planlegg > .planner-toggle::-webkit-details-marker { display: none; }
.planner-toggle h2 { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: 0; font-size: 1.22rem; letter-spacing: -.04em; }
.planner-summary-text { min-width: 0; }
.planner-description { display: block; margin-top: .3rem; font-size: .91rem; color: var(--muted); font-weight: 400; letter-spacing: normal; }
.planner-toggle-hint { display: inline-flex; gap: .75rem; align-items: center; flex-shrink: 0; color: var(--accent); font-size: .875rem; letter-spacing: normal; }
.planner-chevron { width: 10px; height: 10px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); margin: -.3rem .2rem 0 0; }
.planner-close-label { display: none; }
#planlegg[open] .planner-open-label { display: none; }
#planlegg[open] .planner-close-label { display: inline; }
#planlegg[open] .planner-chevron { transform: rotate(225deg); margin-top: .3rem; }
#planlegg > .planner-toggle:hover { background: var(--paper); }
.planner-content { padding: 0 21px 21px; }
@media(max-width: 600px) {
  #planlegg > .planner-toggle { padding: 16px 14px; }
  .planner-toggle h2 { align-items: flex-start; }
  .planner-toggle-hint { padding-top: .3rem; }
  .planner-toggle-hint > span:not(.planner-chevron) { display: none !important; }
  .planner-content { padding: 0 14px 14px; }
}

/* Explain tide, forecast and height where the numbers are read. */
.metric .tide-basis { display: inline-block; color: var(--accent); background: var(--pale); border-radius: 5px; padding: .12rem .4rem; margin-top: .65rem; font-weight: 650; font-size: .875rem; }
.tide-explanation { font-size: .925rem; color: var(--muted); line-height: 1.65; margin: -.2rem 0 1.1rem; max-width: 950px; }
.height-help { max-width: 580px; }
.height-help summary { display: inline-block; text-decoration: underline; text-underline-offset: .18em; }
.height-help > p { padding: .75rem .85rem; margin-block: .3rem; border-radius: 10px; background: var(--pale); font-size: .925rem; line-height: 1.65; color: var(--ink); }
#legend { display: grid; gap: .4rem; margin-top: .65rem; font-size: .875rem; }
.legend .legend-item { color: var(--muted); line-height: 1.6; }
.legend .legend-item strong { color: var(--ink); font-weight: 650; }
.legend .legend-item::before { display: inline-block; content: ''; width: 19px; border-top: 2px solid #176f60; vertical-align: middle; margin-right: .5rem; }
.legend .legend-item.forecast::before { border-top: 2px dashed #305b9e; }
.legend .legend-item.prediction::before { border-top: 2px dotted #99702f; }
.tide-symbol-guide { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; border-top: 1px solid var(--line); padding-top: 1rem; margin-top: 1rem; }
.tide-symbol-guide p { display: inline-flex; align-items: center; gap: .45rem; color: var(--muted); font-size: .875rem; }
.tide-symbol-high { color: var(--accent); }
.tide-symbol-low { color: #80501c; }
.tide-symbol-time { flex-basis: 100%; }
@media(max-width: 600px) { .tide-explanation { font-size: .875rem; margin-top: .3rem; } }

/* Make the planner's scope and results explicit. */
.height-control-help { flex-basis: 100%; max-width: 720px; color: var(--muted); font-size: .875rem; }
.planner-overview { margin-block: 1rem; padding: 1rem 1.1rem; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
#plan-summary { font-weight: 650; }
#plan-period { color: var(--muted); font-size: .875rem; margin-top: .5rem; }
#plan-period:empty, #plan-status:empty { display: none; }
#plan-status { margin-top: .55rem; font-size: .925rem; }
.plan-recovery { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: .85rem; }
.planner-form select { max-width: 100%; }
@media(max-width: 600px) {
  .planner-form label { max-width: 100%; }
  .planner-overview { padding: .9rem; }
  .plan-recovery .button { width: 100%; white-space: normal; }
}

/* Planner: a quiet settings panel and a clear sequence of trip cards. */
#planlegg > .planner-toggle { padding: 26px 28px; }
.planner-toggle h2 { font-size: 1.4rem; }
.planner-description { margin-top: .45rem; line-height: 1.6; }
.planner-content { padding: 0 28px 28px; }
.planner-layout { display: grid; grid-template-columns: minmax(260px,300px) minmax(0,1fr); gap: 28px; align-items: start; }
.planner-settings { background: #f3f7f4; border: 1px solid var(--line); border-radius: 16px; padding: 22px; min-width: 0; }
.planner-eyebrow { display: block; color: var(--accent); font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.planner-panel-heading { margin-bottom: 1.4rem; }
.planner-panel-heading h3 { font-size: 1.2rem; margin-top: .25rem; letter-spacing: -.03em; }
.planner-settings .planner-mode { margin: 0 0 1.2rem; }
.planner-settings .planner-mode label, .planner-settings .planner-form label { display: flex; flex-direction: column; gap: .5rem; font-size: .875rem; line-height: 1.5; }
.planner-settings .planner-form { display: grid; grid-template-columns: minmax(0,1fr); gap: 1.1rem; margin: 0; }
.planner-settings select, .planner-settings input[type=number] { width: 100%; min-width: 0; min-height: 46px; background-color: #fff; border-radius: 9px; }
.planner-settings #height-value { width: 100%; }
.planner-settings .height-control-help { font-size: .875rem; line-height: 1.65; margin-top: -.2rem; }
.planner-settings .daylight-filter { width: 100%; margin-top: 1.5rem; padding: .9rem .8rem; align-items: flex-start; gap: .65rem; background: #fff; font-size: .875rem; line-height: 1.6; }
.planner-settings .daylight-filter input { margin-top: .15rem; }
.planner-settings .daylight-filter:has(input:checked) { background: var(--pale); }
.planner-help { border-top: 1px solid var(--line); padding-top: .8rem; margin-top: 1.3rem; }
.planner-help summary { font-weight: 500; font-size: .875rem; }
.planner-help p { font-size: .875rem; color: var(--muted); line-height: 1.7; margin-top: .65rem; }
.planner-matches { min-width: 0; }
.planner-results-label { margin: .15rem 0 .7rem; }
.planner-matches .planner-overview { background: transparent; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 0 0 1.3rem; margin: 0 0 1.4rem; }
.planner-matches #plan-summary { font-size: 1rem; line-height: 1.7; font-weight: 500; max-width: 650px; }
.planner-matches #plan-period { margin-top: .65rem; font-size: .875rem; line-height: 1.7; }
.planner-matches #plan-status { margin-top: .7rem; color: var(--accent); font-size: .875rem; line-height: 1.6; }
#plan-results { display: grid; gap: 18px; }
#plan-results > p { font-size: .875rem; color: var(--muted); line-height: 1.65; }
#plan-results .plan-row { display: block; margin: 0; padding: 24px; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: 0 4px 16px #10302504; }
#plan-results .plan-card-date { font-size: .875rem; color: var(--muted); margin-bottom: .45rem; }
#plan-results .plan-row h3 { font-size: clamp(1.35rem,2.2vw,1.7rem); line-height: 1.3; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
#plan-results .plan-card-context { margin-top: .45rem; color: var(--muted); font-size: .875rem; line-height: 1.6; }
#plan-results .daylight-note { margin-top: 1rem; line-height: 1.6; font-size: .875rem; gap: .5rem .75rem; }
#plan-results .window-weather { border: 0; border-top: 1px solid var(--line); border-radius: 0; background: none; padding: 1.1rem 0 0; margin-top: 1.2rem; }
#plan-results .window-weather-title { display: none; }
#plan-results .window-weather-values { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .8rem; margin: 0; }
#plan-results .window-weather-values li { min-width: 0; gap: .25rem; }
#plan-results .window-weather-values strong { font-size: .95rem; font-weight: 650; }
#plan-results .plan-row .trip-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .65rem; margin-top: 1.35rem; padding-top: 1.1rem; border-top: 1px solid var(--line); }
#plan-results .trip-actions .button { min-height: 42px; font-size: .875rem; flex: 0 1 auto; padding: .55rem .85rem; }
#plan-results .trip-actions .button:last-child { background: var(--pale); color: var(--accent); border-color: #c6dfd3; }
@media(max-width: 900px) {
  .planner-layout { grid-template-columns: minmax(0,1fr); gap: 26px; }
  .planner-settings { padding: 20px; }
  .planner-settings .planner-form { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .planner-settings #planner-form label:first-child { grid-column: 1 / -1; }
  .planner-settings #height-form { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .planner-settings .height-control-help { grid-column: 1 / -1; }
}
@media(max-width: 600px) {
  #planlegg > .planner-toggle { padding: 20px 16px; }
  .planner-toggle h2 { font-size: 1.25rem; }
  .planner-content { padding: 0 14px 18px; }
  .planner-settings .planner-form, .planner-settings #height-form { grid-template-columns: minmax(0,1fr); }
  #plan-results .plan-row { padding: 20px 16px; }
  #plan-results .window-weather-values { gap: .6rem; }
  #plan-results .window-weather-values strong { font-size: .875rem; }
  #plan-results .trip-actions .button { flex: 1; }
  .planner-help p { font-size: .875rem; }
}
.plan-more-area { text-align: center; margin-top: 24px; padding-block: .5rem; }
.plan-more-area p { color: var(--muted); font-size: .875rem; margin-bottom: .75rem; }
.plan-more-area .button { min-width: 220px; padding: .75rem 1.25rem; background: var(--pale); color: var(--accent); border-color: #c6dfd3; }
.plan-row { scroll-margin-top: 1.5rem; }
@media(max-width: 600px) { .plan-more-area .button { width: 100%; min-width: 0; } }

/* Light cues come from confirmed solar coverage, never from the weather icon. */
#plan-results .plan-row { position: relative; overflow: hidden; }
#plan-results .plan-row > div:first-child { position: relative; }
#plan-results .plan-card-date, #plan-results .plan-row h3 { padding-right: 72px; }
.plan-light-art { display: none; position: absolute; right: 0; top: 0; width: 56px; height: 56px; border-radius: 50%; align-items: center; justify-content: center; }
.plan-light-art .ic { display: none; width: 29px; height: 29px; }
#plan-results .plan-row:has(.daylight-full) { background: linear-gradient(125deg,#fffaf0 0%,#fff 65%); border-color: #e8dfca; }
#plan-results .plan-row:has(.daylight-full) .plan-light-art { display: flex; background: #faedc9; color: #a57218; box-shadow: 0 0 0 7px #faedc94d; }
#plan-results .plan-row:has(.daylight-full) .art-sun { display: block; }
#plan-results .plan-row:has(.daylight-none) { background: linear-gradient(125deg,#edf2fc 0%,#f9fbff 75%); border-color: #cfdcf0; }
#plan-results .plan-row:has(.daylight-none) .plan-light-art { display: flex; background: #2a4167; color: #fff0c6; box-shadow: 0 0 0 7px #dfe7f580; }
#plan-results .plan-row:has(.daylight-none) .art-moon { display: block; }
#plan-results .plan-row:has(.daylight-partial) { background: linear-gradient(125deg,#fff3e9 0%,#fffaf7 55%,#f5f4fb 100%); border-color: #ead9ca; }
#plan-results .plan-row:has(.daylight-partial) .plan-light-art { display: flex; background: #f8dfc9; color: #a65f3a; box-shadow: 0 0 0 7px #f8dfc94d; }
#plan-results .plan-row:has(.daylight-partial) .art-sunset { display: block; }
#plan-results .plan-row:has(.daylight-none) .window-weather, #plan-results .plan-row:has(.daylight-none) .trip-actions { border-color: #d8e1f0; }
#plan-results .plan-row:has(.daylight-partial) .window-weather, #plan-results .plan-row:has(.daylight-partial) .trip-actions { border-color: #e9ddd4; }
@media(max-width: 600px) {
  .plan-light-art { width: 46px; height: 46px; }
  .plan-light-art .ic { width: 25px; height: 25px; }
  #plan-results .plan-card-date, #plan-results .plan-row h3 { padding-right: 60px; }
}

/* Four weather details stay compact on desktop and breathe on mobile. */
#plan-results .window-weather-values { grid-template-columns: repeat(4,minmax(0,1fr)); }
.window-weather-values li > span { display: flex; align-items: center; gap: .35rem; }
.window-weather-values .ic { width: 1rem; height: 1rem; flex: 0 0 1rem; color: var(--accent); }
@media(max-width: 600px) {
  #plan-results .window-weather-values { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem; }
}

.metric .observation-context { margin-top: .7rem; line-height: 1.55; }
.metric #observation-note { margin-top: .55rem; }
@media(max-width: 600px) { .metric .observation-context, .metric #observation-note { font-size: .875rem; } }
.summary:has(.contribution-help[open]) { align-items: start; }

/* Keep the headline numbers aligned; the tide explanation follows the value. */
.metric-label { min-height: 2.75rem; }
.metric .metric-readout { margin-top: .45rem; }
.metric .tide-basis { margin-top: .55rem; }

.place-search-help { color: var(--muted); font-size: .925rem; line-height: 1.6; margin-bottom: .85rem; }
.place-group { display: grid; gap: .4rem; }
.place-group + .place-group { margin-top: .8rem; padding-top: .85rem; border-top: 1px solid var(--line); }
.place-group h3 { font-size: .875rem; color: var(--accent); margin-bottom: .2rem; }
.favorites-section .favorites-storage-note { margin-top: 1rem; padding-top: .8rem; border-top: 1px solid var(--line); font-size: .875rem; line-height: 1.6; color: var(--muted); }

.place-more .place-result { margin-top: .4rem; }

/* Keep the way out visible while a long dialog scrolls. */
dialog > .dialog-top { position: sticky; top: -1.35rem; z-index: 5; background: #fff; margin: -1.35rem -1.35rem .9rem; padding: 1rem 1.35rem; border-bottom: 1px solid var(--line); gap: .75rem; box-shadow: 0 4px 10px #10302508; }
dialog > .dialog-top > form { flex-shrink: 0; }
.planner-settings-toggle { list-style: none; padding: 0; }
.planner-settings-toggle::-webkit-details-marker { display: none; }
.planner-settings-toggle h3 { display: flex; align-items: center; justify-content: space-between; gap: .75rem; font-size: 1.1rem; color: var(--ink); margin-top: .3rem; }
.planner-settings-hint { color: var(--accent); font-size: .875rem; font-weight: 500; }
.planner-settings[open] .settings-closed-label, .planner-settings:not([open]) .settings-open-label { display: none; }
.planner-settings-controls { padding-top: 1.5rem; }
#planner-compact-summary { display: block; margin-top: .75rem; color: var(--muted); font-size: .875rem; line-height: 1.65; font-weight: 400; }
.planner-settings[open] #planner-compact-summary { display: none; }
.planner-show-results { width: 100%; margin-top: 1rem; }
.planner-results-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .75rem; }
#planner-edit-settings, .planner-show-results { display: none; }
@media(max-width: 900px) {
  #planner-edit-settings, .planner-show-results { display: inline-flex; justify-content: center; }
  #planner-edit-settings { font-size: .875rem; min-height: 44px; white-space: nowrap; }
  .planner-results-toolbar { position: sticky; top: 0; z-index: 4; background: #fff; padding-block: .65rem; border-bottom: 1px solid var(--line); }
  .planner-settings-toggle { min-height: 44px; }
}

.planner-matches #plan-weather-period { margin-top: .55rem; color: var(--muted); font-size: .875rem; line-height: 1.65; }
.comparison-by-metric { display: none; }
@media(max-width: 600px) {
  #comparison-list { display: none; }
  .comparison-by-metric { display: grid; gap: 1.25rem; }
  .comparison-metric-group { border: 1px solid var(--line); background: var(--paper); border-radius: 14px; padding: 1rem; }
  .comparison-metric-group h3 { font-size: 1rem; color: var(--accent); padding-bottom: .5rem; }
  .comparison-metric-row { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.3fr); align-items: start; column-gap: .75rem; padding: .85rem 0; border-top: 1px solid var(--line); }
  .comparison-metric-row a { display: inline-block; font-weight: 650; font-size: .95rem; overflow-wrap: anywhere; padding-block: .15rem; }
  .comparison-metric-value { text-align: right; }
  .comparison-metric-value strong { font-size: 1.2rem; }
  .comparison-metric-value p, .comparison-metric-status { font-size: .875rem; color: var(--muted); line-height: 1.55; }
  .comparison-metric-status { grid-column: 1 / -1; margin-top: .35rem; }
}

/* A quiet, data-driven alternative to the full dashboard. */
.view-switch { flex-shrink: 0; }
.view-switch button { min-height: 38px; }
body[data-view="simple"] #regular-nav { display: none; }
body[data-view="simple"] main > :not(.simple-view):not(#location-status):not(#notice):not(noscript) { display: none; }
.simple-view { width: min(100%,500px); margin-inline: auto; }
.simple-panel { --sea-height: 10%; position: relative; isolation: isolate; overflow: hidden; border-radius: 28px; min-height: 640px; background: #f0f6f3; color: #173d42; box-shadow: 0 10px 40px #143b3210; }
.simple-content { position: relative; z-index: 2; padding: 26px 28px 0; }
.simple-place-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem; }
.simple-basis { font-size: .875rem; color: #42676a; }
.simple-content h1 { font-size: clamp(2.5rem,7vw,3.5rem); line-height: 1.1; letter-spacing: -.06em; margin: 1rem 45px .5rem 0; overflow-wrap: anywhere; }
#simple-clock { font-size: .925rem; color: #48686c; }
.simple-status-row { display: flex; align-items: center; gap: .8rem; margin-top: 3.2rem; }
.simple-status-row > .ic { flex: 0 0 36px; width: 36px; height: 36px; background: #ffffff70; padding: 7px; border-radius: 50%; }
.simple-status-row h2 { font-size: clamp(1.4rem,4.7vw,1.85rem); letter-spacing: -.035em; line-height: 1.3; }
#simple-next { margin-top: 1.1rem; font-size: 1rem; line-height: 1.65; }
#simple-source-note { margin-top: .35rem; color: #48686c; font-size: .8rem; }
#simple-height { margin-top: .45rem; color: #48686c; font-size: .875rem; }
.simple-sea { position: absolute; z-index: 0; bottom: 0; left: 0; right: 0; height: var(--sea-height); background: linear-gradient(#b8dadd,#81b7bf); transition: height 2s ease-in-out; }
.simple-wave { position: absolute; left: 0; top: -27px; width: 200%; height: 50px; fill: #b8dadd; animation: simple-wave-drift 10s linear infinite; will-change: transform; }
.simple-wave-back { opacity: .5; top: -34px; animation-duration: 14s; animation-direction: reverse; }
.simple-wave-front { z-index: 1; }
.simple-paused .simple-wave { animation-play-state: paused; }
.simple-scale { position: absolute; z-index: 1; top: 10%; bottom: 10%; right: 15px; display: flex; flex-direction: column; justify-content: space-between; text-align: right; font-size: .75rem; color: #42676a; }
#simple-data-note { color: #345d62; font-size: .8125rem; line-height: 1.6; margin-top: .5rem; padding-right: 25px; }
@keyframes simple-wave-drift { to { transform: translateX(-50%); } }
@media(max-width: 700px) {
  .view-switch { order: 4; }
  body[data-view="simple"] .top-inner { justify-content: space-between; }
  body[data-view="simple"] .view-switch { order: 3; width: 100%; }
  body[data-view="simple"] .view-switch button { flex: 1; }
  .simple-panel { border-radius: 22px; min-height: 610px; }
  .simple-content { padding: 23px 22px 0; }
}
@media(prefers-reduced-motion: reduce) { .simple-wave { animation: none; will-change: auto; } .simple-sea { transition: none; } }

/* Simple mode is one continuous sea, edge to edge. */
body[data-view="simple"] { background: #dceef0; }
body[data-view="simple"] > .top { position: absolute; inset: 0 0 auto; z-index: 5; background: linear-gradient(#f4f9f2d9,#f4f9f200); border: 0; }
body[data-view="simple"] > footer { display: none; }
body[data-view="simple"] main.shell { width: 100%; max-width: none; margin: 0; padding: 0; }
body[data-view="simple"] .simple-view { width: 100%; margin: 0; }
body[data-view="simple"] .simple-panel { display: flex; flex-direction: column; min-height: 100vh; min-height: 100svh; min-height: 100dvh; border-radius: 0; box-shadow: none; background: radial-gradient(ellipse at 70% 0%,#fff5d670,transparent 50%),linear-gradient(#e5f2f1,#d5e9eb); }
body[data-view="simple"] .simple-panel::after { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(#f0f8f2a6, #eef8f230 48%,transparent 75%); }
body[data-view="simple"] .simple-content { width: 100%; max-width: 880px; margin-inline: auto; text-align: center; padding: clamp(130px,17svh,190px) 28px 50px; }
body[data-view="simple"] .simple-place-row { justify-content: center; }
body[data-view="simple"] .simple-place-row > button { display: none; }
body[data-view="simple"] .simple-basis { letter-spacing: .08em; font-size: .8125rem; text-transform: uppercase; }
body[data-view="simple"] .simple-content h1 { margin: .9rem 0 .65rem; font-size: clamp(3.2rem,9vw,7rem); letter-spacing: -.065em; }
body[data-view="simple"] .simple-status-row { justify-content: center; margin-top: clamp(2rem,5svh,4rem); }
body[data-view="simple"] .simple-status-row h2 { font-size: clamp(1.5rem,3.5vw,2.4rem); }
body[data-view="simple"] #simple-next { font-size: clamp(1rem,2vw,1.2rem); }
body[data-view="simple"] .simple-sea { --sky-clearance:calc(12% + clamp(34px,5vw,64px) + 48px); left: -2%; right: -2%; bottom: -14px; height: calc(10% + (90% - var(--sky-clearance)) * var(--sea-level,0) + 14px); background: linear-gradient(#a3cfd4 0%,#67a8b9 40%,#276f89 100%); animation: simple-sea-swell 9s ease-in-out infinite; will-change: transform; }
body[data-view="simple"] .simple-sea::before { content:''; position:absolute; inset:0 -10%; background: repeating-radial-gradient(ellipse at 35% -20%,transparent 0 65px,#efffff18 67px 69px,transparent 71px 120px); opacity:.55; transform-origin:top; animation:simple-light-drift 24s ease-in-out infinite alternate; pointer-events:none; }
body[data-view="simple"] .simple-wave { height: 74px; top: -40px; fill: #a3cfd4; animation-duration: 14s; }
body[data-view="simple"] .simple-wave-back { top: -49px; opacity:.45; animation-duration: 19s; }
body[data-view="simple"] .simple-wave-front { filter: drop-shadow(0 -1px 1px #efffff40); }
body[data-view="simple"] .simple-scale { top: 11%; bottom: 15%; right: clamp(16px,3vw,45px); color: #285965; font-size: .8125rem; }
body[data-view="simple"] #location-status, body[data-view="simple"] #notice { position:relative; z-index:6; margin:0; border-radius:0; }
.simple-paused .simple-sea, .simple-paused .simple-sea::before { animation-play-state:paused !important; }
@keyframes simple-sea-swell { 0%,100% {transform:translateY(4px);} 50% {transform:translateY(-5px);} }
@keyframes simple-light-drift { from {transform:translate(-2%,0) scaleX(1);} to {transform:translate(3%,6px) scaleX(1.08);} }
@media(max-width:700px) {
  body[data-view="simple"] .top-inner { width:calc(100% - 32px); }
  body[data-view="simple"] .simple-content { padding:160px 24px 55px; }
  body[data-view="simple"] .simple-content h1 { font-size:clamp(2.8rem,12vw,4.5rem); }
  body[data-view="simple"] .simple-status-row { margin-top:2.4rem; }
}
@media(prefers-reduced-motion:reduce) {
  body[data-view="simple"] .simple-sea, body[data-view="simple"] .simple-sea::before, body[data-view="simple"] .simple-wave { animation:none; will-change:auto; }
}

/* One compact entry point for place and view on mobile. */
.mobile-header-menu { display:none; position:relative; margin-left:auto; }
@media(max-width:700px) {
  .top .view-switch, .top .top-place { display:none; }
  .mobile-header-menu { display:block; }
}
  .mobile-header-menu > summary { display:flex; align-items:center; gap:.7rem; min-height:44px; list-style:none; font-size:.925rem; }
  .mobile-header-menu > summary::-webkit-details-marker { display:none; }
  .mobile-header-menu > summary::after { content:''; width:7px; height:7px; border-right:1.7px solid currentColor; border-bottom:1.7px solid currentColor; transform:translateY(-2px) rotate(45deg); }
  .mobile-header-menu[open] > summary::after { transform:translateY(2px) rotate(225deg); }
  .mobile-header-dropdown { position:absolute; z-index:20; top:calc(100% + .6rem); right:0; width:min(310px,calc(100vw - 32px)); padding:.6rem; border:1px solid var(--line); border-radius:16px; background:#fff; box-shadow:0 12px 42px #143b3226; }
  .mobile-header-dropdown button { display:flex; align-items:center; gap:.7rem; width:100%; min-height:48px; border:0; background:transparent; text-align:left; border-radius:9px; padding:.7rem; font-weight:600; font-size:.925rem; }
  .mobile-header-dropdown button:hover { background:var(--paper); }
  .mobile-header-dropdown .ic { width:20px; height:20px; flex-shrink:0; }
  .mobile-view-choices { border-top:1px solid var(--line); margin-top:.4rem; padding-top:.55rem; }
  .mobile-view-choices > p { padding:.25rem .7rem .4rem; color:var(--muted); font-size:.8125rem; }
  .mobile-view-choices button { justify-content:space-between; }
  .mobile-view-choices button[aria-pressed="true"] { background:var(--pale); color:var(--accent); }
  .mobile-view-choices button[aria-pressed="true"]::after { content:'✓'; font-size:1rem; }
  .mobile-view-choices small { display:block; font-weight:400; color:var(--muted); font-size:.8125rem; margin-top:.2rem; }
  body[data-view="simple"] .top-inner { flex-wrap:nowrap; }
  .top-inner { position:relative; z-index:10; }

/* The simple scene follows confirmed daylight; fish remain purely decorative. */
#simple-light-label { text-transform:none; letter-spacing:0; }
#simple-light-label::before { content:none; }
.simple-sky { position:absolute; inset:0; pointer-events:none; z-index:0; }
.simple-sun, .simple-moon { display:none; position:absolute; top:12%; right:12%; width:clamp(34px,5vw,64px); aspect-ratio:1; border-radius:50%; }
.simple-stars { position:absolute; inset:0 0 35%; opacity:0; background:radial-gradient(circle at 9% 15%,#e6f5ff 0 1px,transparent 1.7px),radial-gradient(circle at 23% 35%,#e6f5ff 0 1px,transparent 1.7px),radial-gradient(circle at 65% 9%,#e6f5ff 0 1px,transparent 1.7px),radial-gradient(circle at 77% 46%,#e6f5ff 0 1px,transparent 1.7px),radial-gradient(circle at 93% 27%,#e6f5ff 0 1px,transparent 1.7px),radial-gradient(circle at 14% 61%,#e6f5ff 0 1px,transparent 1.7px); }
body[data-view="simple"] .simple-panel[data-light="day"] { background:radial-gradient(ellipse at 82% 8%,#ffefb680,transparent 45%),linear-gradient(#dceeed,#d5e9eb); }
.simple-panel[data-light="day"] .simple-sun { display:block; background:#f0d58d; box-shadow:0 0 38px 16px #fbe6ad38; }
.simple-panel[data-light="night"] .simple-moon { display:block; overflow:visible; filter:drop-shadow(0 0 10px #e2ebde15); }
.simple-panel[data-light="night"] .simple-stars { opacity:.65; }
body[data-view="simple"][data-simple-light="night"] { background:#0b2136; }
body[data-view="simple"] .simple-panel[data-light="night"] { color:#e6f1f5; background:radial-gradient(ellipse at 80% 0%,#243d58,transparent 65%),linear-gradient(#0d1e32,#193d53); }
body[data-view="simple"] .simple-panel[data-light="night"]::after { background:linear-gradient(#10283d20,transparent 70%); }
body[data-view="simple"] .simple-panel[data-light="night"] .simple-sea { background:linear-gradient(#386b7e,#17475f 45%,#092438); }
body[data-view="simple"] .simple-panel[data-light="night"] .simple-wave { fill:#386b7e; }
body[data-view="simple"] .simple-panel[data-light="night"] .simple-sea::before { opacity:.28; }
.simple-panel[data-light="night"] .simple-basis, .simple-panel[data-light="night"] #simple-clock, .simple-panel[data-light="night"] #simple-height, .simple-panel[data-light="night"] #simple-source-note, .simple-panel[data-light="night"] .simple-scale { color:#b9d0dc; }
.simple-panel[data-light="night"] .simple-status-row > .ic { background:#e1f4ff12; }
body[data-view="simple"][data-simple-light="night"] > .top { background:linear-gradient(#102439d9,#10243900); }
body[data-view="simple"][data-simple-light="night"] .top .brand { color:#e6f1f5; }
body[data-view="simple"][data-simple-light="night"] .top .brand span { color:#b9d0dc; }
body[data-view="simple"][data-simple-light="night"] .top .top-place, body[data-view="simple"][data-simple-light="night"] .mobile-header-menu > summary { background:#17364b; border-color:#426075; color:#e6f1f5; }
body[data-view="simple"] .simple-panel[data-light="dusk"] { background:linear-gradient(#d2c7d8,#ead9ce 50%,#b5cdd5); }
body[data-view="simple"] .simple-panel[data-light="dusk"] .simple-sea { background:linear-gradient(#a7c4d0,#577f99 50%,#25475f); }
body[data-view="simple"] .simple-panel[data-light="dusk"] .simple-wave { fill:#a7c4d0; }
.simple-fish-defs { position:absolute; }
.simple-fish-scene { position:absolute; z-index:2; inset:10% 0 0; overflow:hidden; pointer-events:none; color:#184d60; }
.simple-panel[data-light="night"] .simple-fish-scene { color:#86b5c8; }
.simple-swimmer { position:absolute; left:0; animation:simple-swim-across 65s linear infinite; will-change:transform; }
.simple-fish-silhouette { display:block; }
.simple-fish-silhouette svg { display:block; width:100%; height:100%; fill:currentColor; animation:simple-fish-glide 6s ease-in-out infinite; }
.simple-fish-eye { fill:#cee4e7; opacity:.45; }
.simple-lone-fish { width:68px; height:31px; opacity:.28; top:32%; --rest-x:20%; }
.fish-east { animation-duration:54s; animation-delay:-20s; }
.fish-west { width:48px; height:22px; top:66%; opacity:.2; animation-direction:reverse; animation-duration:73s; animation-delay:-29s; --rest-x:66%; }
.fish-west .simple-fish-silhouette { transform:scaleX(-1); }
.simple-school { width:180px; height:85px; top:42%; opacity:.26; animation-duration:85s; animation-delay:-28s; --rest-x:40%; }
.simple-school .simple-fish-silhouette { position:absolute; width:35px; height:16px; }
.simple-school .simple-fish-silhouette:nth-child(1) { left:108px;top:28px; }
.simple-school .simple-fish-silhouette:nth-child(2) { left:66px;top:7px; }
.simple-school .simple-fish-silhouette:nth-child(3) { left:59px;top:49px; }
.simple-school .simple-fish-silhouette:nth-child(4) { left:18px;top:25px; }
.simple-school .simple-fish-silhouette:nth-child(5) { left:4px;top:66px; }
.simple-school .simple-fish-silhouette:nth-child(even) svg { animation-delay:-2s; }
.simple-paused .simple-fish-scene * { animation-play-state:paused !important; }
@keyframes simple-swim-across { from {transform:translateX(-230px);} to {transform:translateX(calc(100vw + 230px));} }
@keyframes simple-fish-glide { 0%,100% {transform:translateY(0) rotate(-2deg);} 50% {transform:translateY(4px) rotate(2deg);} }
@media(max-width:700px) { .simple-sun,.simple-moon {top:13%;right:8%;width:34px;} body[data-view="simple"] .simple-sea {--sky-clearance:calc(13% + 34px + 48px);} }
@media(prefers-reduced-motion:reduce) { .simple-fish-scene * {animation:none !important;will-change:auto;} .simple-swimmer {left:var(--rest-x);transform:none;} }

/* Rare guests stay inside the sea, behind information and without pointer targets. */
.simple-visitor-scene { position:absolute; z-index:1; inset:8% 0 0; overflow:hidden; pointer-events:none; color:#164a5b; }
.simple-panel[data-light="night"] .simple-visitor-scene { color:#7baabd; }
.simple-panel[data-light="dusk"] .simple-visitor-scene { color:#315b76; }
.simple-visitor { position:absolute; left:0; top:28%; width:clamp(170px,29vw,300px); opacity:.35; animation:visitor-cross var(--visit-duration,42s) linear var(--visit-delay,0ms) both; will-change:transform; }
.simple-visitor[data-kind="octopus"] { top:16%; width:clamp(76px,11vw,110px); opacity:.38; }
.simple-visitor[data-kind="submarine"] { top:42%; width:clamp(150px,23vw,230px); opacity:.37; }
.simple-visitor svg { display:none; width:100%; height:auto; fill:currentColor; overflow:visible; }
.simple-visitor[data-kind="whale"] .visitor-whale, .simple-visitor[data-kind="octopus"] .visitor-octopus, .simple-visitor[data-kind="submarine"] .visitor-submarine { display:block; }
.simple-visitor[data-reverse="true"] { animation-direction:reverse; }
.simple-visitor[data-reverse="true"] .simple-visitor-facing { transform:scaleX(-1); }
.visitor-body { animation:visitor-drift 8s ease-in-out infinite; transform-origin:center; }
.visitor-tail { animation:visitor-tail 6s ease-in-out infinite; transform-origin:70px 68px; }
.visitor-arms { animation:visitor-pulse 4s ease-in-out infinite; transform-origin:70px 75px; }
.visitor-octopus { animation:visitor-drift 5s ease-in-out infinite; }
.visitor-eye { fill:#d8eef0; opacity:.6; }
.visitor-detail { fill:none; stroke:#d8eef0; stroke-width:1.7; opacity:.35; }
.visitor-portholes { fill:#c0e0d8; stroke:currentColor; stroke-width:4; opacity:.8; }
.visitor-bubbles { animation:visitor-bubbles 4s ease-out infinite; transform-origin:15px 40px; }
.simple-visitor-scene[data-running="false"] *, .simple-paused .simple-visitor-scene * { animation-play-state:paused !important; }
@keyframes visitor-cross { from { transform:translateX(-120%); } to { transform:translateX(calc(100vw + 120%)); } }
@keyframes visitor-drift { 0%,100% {transform:translateY(0) rotate(-1deg);} 50% {transform:translateY(5px) rotate(1deg);} }
@keyframes visitor-tail { 0%,100% {transform:rotate(-5deg);} 50% {transform:rotate(5deg);} }
@keyframes visitor-pulse { 0%,100% {transform:scaleX(1) scaleY(1);} 50% {transform:scaleX(.83) scaleY(.91);} }
@keyframes visitor-bubbles { from {opacity:0;transform:translate(0,6px);} 35% {opacity:.7;} to {opacity:0;transform:translate(-14px,-18px);} }
@media(prefers-reduced-motion:reduce) { .simple-visitor-scene { display:none; } .simple-visitor-scene * {animation:none !important;will-change:auto;} }


/* Forecast details stay compact; the sky remains a quiet illustration. */
.simple-weather-line { display:inline-flex; justify-content:center; align-items:center; gap:.5rem; max-width:100%; min-height:44px; margin-top:.8rem; padding:.55rem .9rem; border:1px solid #44747622; border-radius:24px; background:#ffffff38; color:inherit; font:inherit; font-size:.875rem; line-height:1.55; cursor:pointer; }
.simple-weather-line:hover:not(:disabled) { background:#ffffff65; border-color:#44747666; }
.simple-weather-line:disabled { cursor:default; opacity:.7; }
.simple-weather-line .ic { flex:0 0 20px; width:20px; height:20px; }
.simple-weather-line:focus-visible { outline:3px solid #529b98; outline-offset:4px; }
.simple-panel[data-light="night"] .simple-weather-line { background:#d9edf509; border-color:#b9d0dc30; }
.simple-panel[data-light="night"] .simple-weather-line:hover:not(:disabled) { background:#d9edf51c; }
.simple-moon-dark { fill:#53677a; opacity:.32; }
#simple-moon-lit { fill:#e2ebde; }
.simple-clouds { position:absolute; inset:5% 0 auto; height:36%; opacity:0; transition:opacity 4s ease; }
.simple-clouds span { position:absolute; top:12%; left:0; width:clamp(300px,65vw,850px); height:140px; filter:blur(13px); background:radial-gradient(ellipse at 25% 65%,#f2f7f6b3 0 22%,transparent 55%),radial-gradient(ellipse at 55% 42%,#edf3f2b3 0 24%,transparent 56%),radial-gradient(ellipse at 78% 62%,#f7faf9a6 0 20%,transparent 50%); animation:simple-cloud-drift 180s linear infinite; animation-delay:-90s; }
.simple-clouds span:nth-child(2) { top:48%; width:clamp(260px,50vw,660px); animation-duration:230s; animation-delay:-35s; opacity:.65; }
.simple-clouds span:nth-child(3) { top:-15%; width:80vw; animation-duration:270s; animation-delay:-205s; opacity:.5; }
.simple-panel[data-clouds="few"] .simple-clouds { opacity:.18; }
.simple-panel[data-clouds="broken"] .simple-clouds { opacity:.36; }
.simple-panel[data-clouds="overcast"] .simple-clouds { opacity:.55; }
.simple-panel[data-clouds="overcast"] .simple-stars { opacity:.12; }
.simple-panel[data-clouds="overcast"] .simple-sun, .simple-panel[data-clouds="overcast"] .simple-moon { opacity:.55; }
.simple-panel[data-clouds="broken"] .simple-stars { opacity:.4; }
.simple-paused .simple-clouds span, body[data-view="normal"] .simple-clouds span { animation-play-state:paused; }
@keyframes simple-cloud-drift { from {transform:translateX(-110%);} to {transform:translateX(calc(100vw + 110%));} }
@media(prefers-reduced-motion:reduce) { .simple-clouds span {animation:none;left:8%;transform:none;} .simple-clouds span:nth-child(2) {left:60%;} .simple-clouds span:nth-child(3) {left:-22%;} .simple-clouds {transition:none;} }

/* Simple mode keeps the entire sea visible, with secondary controls in the menu. */
body[data-view="simple"] .top .view-switch, body[data-view="simple"] .top .top-place { display:none; }
body[data-view="simple"] .mobile-header-menu { display:block; }
.simple-menu-actions { display:none; border-top:1px solid var(--line); margin-top:.4rem; padding-top:.4rem; }
body[data-view="simple"] .simple-menu-actions { display:block; }
.mobile-header-dropdown { max-height:calc(100dvh - 90px); overflow-y:auto; overscroll-behavior:contain; }
body[data-view="simple"] .simple-scale { bottom:max(7%,env(safe-area-inset-bottom)); }
#simple-about { width:min(640px,calc(100% - 28px)); }
.simple-about-content { padding:.3rem .2rem 1rem; }
.simple-about-content p { margin-top:1rem; color:var(--muted); font-size:.95rem; line-height:1.75; }
#simple-about #simple-data-note { margin:0 0 1.1rem; padding:.85rem 1rem; border-radius:12px; background:var(--pale); color:var(--accent); font-size:.95rem; }
#simple-scene-note { margin-top:.65rem; font-size:.875rem; }

/* Sparse, decorative precipitation follows fresh hourly weather, behind all text. */
.simple-precipitation { display:none; position:absolute; z-index:0; inset:0; overflow:hidden; pointer-events:none; color:#3d7185; mask-image:radial-gradient(ellipse at 50% 30%,#0003 0 18%,#0009 48%,#000 75%); }
.simple-panel[data-precipitation="rain"] .simple-precipitation, .simple-panel[data-precipitation="snow"] .simple-precipitation, .simple-panel[data-precipitation="sleet"] .simple-precipitation { display:block; }
.simple-panel[data-light="night"] .simple-precipitation { color:#c5e4ed; }
.simple-precipitation span { position:absolute; top:-22px; left:var(--drop-x); width:1px; height:14px; border-radius:2px; background:currentColor; opacity:.22; animation:simple-rain-fall var(--rain-time) linear var(--rain-delay) infinite; }
.simple-panel[data-precipitation="snow"] .simple-precipitation span, .simple-panel[data-precipitation="sleet"] .simple-precipitation span:nth-child(even) { width:var(--flake-size); height:var(--flake-size); border-radius:50%; background:#edf6f7; opacity:.5; animation-name:simple-snow-fall; animation-duration:var(--snow-time); animation-delay:var(--snow-delay); }
.simple-panel[data-light="day"][data-precipitation="snow"] .simple-precipitation span { box-shadow:0 0 2px #608f9c40; }
.simple-paused .simple-precipitation span, body:not([data-view="simple"]) .simple-precipitation span { animation-play-state:paused; }
@keyframes simple-rain-fall { from {transform:translate(0,-20px) rotate(8deg);} to {transform:translate(-45px,calc(100dvh + 40px)) rotate(8deg);} }
@keyframes simple-snow-fall { 0% {transform:translate(0,-20px);} 35% {transform:translate(18px,35dvh);} 70% {transform:translate(-12px,70dvh);} 100% {transform:translate(10px,calc(100dvh + 40px));} }
.simple-precipitation span:nth-child(1) { --drop-x:38%; --rain-time:2.27s; --rain-delay:-1.3s; --snow-time:13.3s; --snow-delay:-1.7s; --flake-size:2.6px; }
.simple-precipitation span:nth-child(2) { --drop-x:75%; --rain-time:2.54s; --rain-delay:-2.6s; --snow-time:14.6s; --snow-delay:-3.4s; --flake-size:3.2px; }
.simple-precipitation span:nth-child(3) { --drop-x:12%; --rain-time:2.81s; --rain-delay:-0.4s; --snow-time:15.9s; --snow-delay:-5.1s; --flake-size:2.0px; }
.simple-precipitation span:nth-child(4) { --drop-x:49%; --rain-time:3.08s; --rain-delay:-1.7s; --snow-time:17.2s; --snow-delay:-6.8s; --flake-size:2.6px; }
.simple-precipitation span:nth-child(5) { --drop-x:86%; --rain-time:3.35s; --rain-delay:-3.0s; --snow-time:18.5s; --snow-delay:-8.5s; --flake-size:3.2px; }
.simple-precipitation span:nth-child(6) { --drop-x:23%; --rain-time:3.62s; --rain-delay:-0.8s; --snow-time:19.8s; --snow-delay:-10.2s; --flake-size:2.0px; }
.simple-precipitation span:nth-child(7) { --drop-x:60%; --rain-time:2.00s; --rain-delay:-2.1s; --snow-time:21.1s; --snow-delay:-11.9s; --flake-size:2.6px; }
.simple-precipitation span:nth-child(8) { --drop-x:97%; --rain-time:2.27s; --rain-delay:-3.4s; --snow-time:22.4s; --snow-delay:-13.6s; --flake-size:3.2px; }
.simple-precipitation span:nth-child(9) { --drop-x:34%; --rain-time:2.54s; --rain-delay:-1.2s; --snow-time:12.0s; --snow-delay:-15.3s; --flake-size:2.0px; }
.simple-precipitation span:nth-child(10) { --drop-x:71%; --rain-time:2.81s; --rain-delay:-2.5s; --snow-time:13.3s; --snow-delay:-17.0s; --flake-size:2.6px; }
.simple-precipitation span:nth-child(11) { --drop-x:8%; --rain-time:3.08s; --rain-delay:-0.3s; --snow-time:14.6s; --snow-delay:-18.7s; --flake-size:3.2px; }
.simple-precipitation span:nth-child(12) { --drop-x:45%; --rain-time:3.35s; --rain-delay:-1.6s; --snow-time:15.9s; --snow-delay:-20.4s; --flake-size:2.0px; }
.simple-precipitation span:nth-child(13) { --drop-x:82%; --rain-time:3.62s; --rain-delay:-2.9s; --snow-time:17.2s; --snow-delay:-1.1s; --flake-size:2.6px; }
.simple-precipitation span:nth-child(14) { --drop-x:19%; --rain-time:2.00s; --rain-delay:-0.7s; --snow-time:18.5s; --snow-delay:-2.8s; --flake-size:3.2px; }
.simple-precipitation span:nth-child(15) { --drop-x:56%; --rain-time:2.27s; --rain-delay:-2.0s; --snow-time:19.8s; --snow-delay:-4.5s; --flake-size:2.0px; }
.simple-precipitation span:nth-child(16) { --drop-x:93%; --rain-time:2.54s; --rain-delay:-3.3s; --snow-time:21.1s; --snow-delay:-6.2s; --flake-size:2.6px; }
.simple-precipitation span:nth-child(17) { --drop-x:30%; --rain-time:2.81s; --rain-delay:-1.1s; --snow-time:22.4s; --snow-delay:-7.9s; --flake-size:3.2px; }
.simple-precipitation span:nth-child(18) { --drop-x:67%; --rain-time:3.08s; --rain-delay:-2.4s; --snow-time:12.0s; --snow-delay:-9.6s; --flake-size:2.0px; }
.simple-precipitation span:nth-child(19) { --drop-x:4%; --rain-time:3.35s; --rain-delay:-0.2s; --snow-time:13.3s; --snow-delay:-11.3s; --flake-size:2.6px; }
.simple-precipitation span:nth-child(20) { --drop-x:41%; --rain-time:3.62s; --rain-delay:-1.5s; --snow-time:14.6s; --snow-delay:-13.0s; --flake-size:3.2px; }
.simple-precipitation span:nth-child(21) { --drop-x:78%; --rain-time:2.00s; --rain-delay:-2.8s; --snow-time:15.9s; --snow-delay:-14.7s; --flake-size:2.0px; }
.simple-precipitation span:nth-child(22) { --drop-x:15%; --rain-time:2.27s; --rain-delay:-0.6s; --snow-time:17.2s; --snow-delay:-16.4s; --flake-size:2.6px; }
.simple-precipitation span:nth-child(23) { --drop-x:52%; --rain-time:2.54s; --rain-delay:-1.9s; --snow-time:18.5s; --snow-delay:-18.1s; --flake-size:3.2px; }
.simple-precipitation span:nth-child(24) { --drop-x:89%; --rain-time:2.81s; --rain-delay:-3.2s; --snow-time:19.8s; --snow-delay:-19.8s; --flake-size:2.0px; }
@media(prefers-reduced-motion:reduce) { .simple-precipitation { display:none !important; } .simple-precipitation span { animation:none !important; } }

/* Filters progressively enhance the complete, dated release history. */
.release-filters { margin:-.5rem 0 2rem; padding:1.25rem 1.5rem; border:1px solid var(--line); border-radius:20px; background:#fff; }
.release-filter-fields { display:flex; flex-wrap:wrap; align-items:end; gap:1rem; }
.release-filter-fields label { flex:1 1 200px; display:grid; gap:.4rem; font-size:.875rem; font-weight:650; color:var(--muted); }
.release-filter-fields select { width:100%; min-height:46px; background-color:var(--paper); font-weight:600; color:var(--ink); }
.release-filter-fields > button { min-height:46px; }
.release-filter-meta { display:flex; flex-wrap:wrap; justify-content:space-between; gap:.4rem 1rem; margin-top:1rem; font-size:.875rem; color:var(--muted); }
#release-filter-status { font-weight:600; color:var(--accent); }
.release-filter-empty { border:1px dashed var(--line); border-radius:16px; padding:1.5rem; margin-bottom:2rem; color:var(--muted); }
@media(max-width:600px) { .release-filters {padding:1rem;} .release-filter-fields {gap:.8rem;} .release-filter-fields label {flex-basis:100%;} .release-filter-fields > button {width:100%;} }

/* Direction and next tide stay primary; the measured level is quiet supporting text. */
.simple-reading { display:flex; flex-wrap:wrap; align-items:baseline; justify-content:center; gap:.2rem .3rem; margin:1.4rem auto 0; max-width:650px; color:#183b43; font-size:.9rem; font-weight:500; line-height:1.65; }
#simple-basis-text, #simple-height-datum { font-size:inherit; font-weight:400; }
.simple-reading #simple-height { display:inline-flex; gap:.25rem; align-items:baseline; margin:0; color:inherit; font-size:inherit; line-height:inherit; }
#simple-height-value { font-size:1rem; font-weight:550; font-variant-numeric:tabular-nums; }
#simple-height-unit { font-size:inherit; }
.simple-reading #simple-source-note { flex-basis:100%; margin:.05rem 0 0; font-size:inherit; color:inherit; line-height:inherit; }
.simple-panel[data-light="night"] .simple-reading { color:#e2edf0; }
.simple-panel[data-light="night"] .simple-reading #simple-height { color:inherit; }

body[data-view="simple"] #simple-next { display:grid; gap:.4rem; margin-top:1.15rem; }
#simple-next-title { font-size:clamp(1.35rem,3vw,1.8rem); font-weight:600; line-height:1.3; letter-spacing:-.025em; }
#simple-next-title:empty { display:none; }
#simple-next-detail { font-size:.925rem; line-height:1.5; }

/* Make the weather affordance explicit while retaining its quiet inline appearance. */
.simple-weather-action { flex-shrink:0; white-space:nowrap; padding-left:.6rem; border-left:1px solid #44747645; font-size:.8125rem; font-weight:650; text-decoration:underline; text-underline-offset:3px; }
.simple-panel[data-light="night"] .simple-weather-action { border-color:#b9d0dc55; }
.simple-weather-line:disabled .simple-weather-action { display:none; }
#simple-weather-copy { min-width:0; }
/* Compact vertical rhythm for short phones and smaller browser windows. */
@media(max-height:700px) {
 body[data-view="simple"] .simple-content { padding:90px 24px 26px; }
 body[data-view="simple"] .simple-content h1 { font-size:clamp(2.2rem,7vw,3.5rem); margin:.35rem 0 .45rem; }
 body[data-view="simple"] .simple-status-row { margin-top:1.1rem; }
 body[data-view="simple"] .simple-status-row h2 { font-size:clamp(1.35rem,3.5vw,1.8rem); }
 body[data-view="simple"] #simple-next { margin-top:.7rem; gap:.25rem; }
 body[data-view="simple"] .simple-reading { margin-top:.85rem; }
 .simple-weather-line { margin-top:.55rem; }
}
/* Landscape uses width rather than placing essential information below the fold. */
@media(min-width:680px) and (max-height:600px) {
 body[data-view="simple"] .simple-content { display:grid; grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr); align-items:center; column-gap:clamp(24px,5vw,72px); max-width:1050px; padding:82px 36px 24px; flex:1; }
 body[data-view="simple"] .simple-content h1 { font-size:clamp(2rem,4vw,3rem); }
 body[data-view="simple"] .simple-status-row { margin-top:0; }
 body[data-view="simple"] .simple-status-row h2 { font-size:clamp(1.3rem,2.7vw,1.8rem); }
 body[data-view="simple"] .simple-status-row > .ic { flex-basis:30px; width:30px; height:30px; padding:5px; }
 body[data-view="simple"] #simple-next-title { font-size:clamp(1.2rem,2.3vw,1.5rem); }
 body[data-view="simple"] .simple-reading { font-size:.875rem; }
 body[data-view="simple"] .simple-scale { top:18%; }
 .simple-sun, .simple-moon { top:78px; right:5%; width:30px; }
 body[data-view="simple"] .simple-sea { --sky-clearance:156px; }
}

/* A quiet, persistent status beside the menu replaces a separate pause control. */
.simple-pause-indicator { display:inline-flex; align-items:center; justify-content:center; width:19px; height:19px; margin-left:-.25rem; border-radius:5px; background:#173d4210; }
.simple-pause-indicator svg { width:14px; height:14px; }
body:not([data-view="simple"]) .simple-pause-indicator { display:none; }
body[data-simple-light="night"] .simple-pause-indicator { background:#e7f2f31a; }
.mobile-header-dropdown button:disabled { opacity:.6; cursor:default; }
.simple-about-section { padding:1rem 0; border-top:1px solid var(--line); }
.simple-about-section:first-of-type { border-top:0; padding-top:0; }
.simple-about-section h3 { font-size:1.05rem; line-height:1.4; color:var(--ink); }
.simple-about-section ul { margin:.6rem 0 0; padding-left:1.2rem; }
.simple-about-section li { margin:.6rem 0; color:var(--muted); font-size:.925rem; line-height:1.65; }
.simple-about-section li strong { color:var(--ink); font-weight:600; }
.simple-about-content .simple-about-section p { margin-top:.6rem; font-size:.925rem; line-height:1.65; }
.simple-about-content #simple-moon-note { color:var(--accent); font-weight:600; }

/* Exact readings remain below the curve, clear of fingers and plotted lines. */
#chart:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 5px; }
.chart-reading { min-height: 0; box-sizing: border-box; margin: .7rem 0; padding: .8rem; border: 1px solid var(--line); border-radius: 12px; background: #f4f8f5; }
.chart-reading-time { font-weight: 700; font-size: .9rem; color: var(--ink); }
.chart-reading-unit { font-size: .8rem; color: var(--muted); }
.chart-reading-values { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); grid-template-rows: auto auto; gap: .2rem .7rem; margin-top: .6rem; }
.chart-reading-value { display: grid; grid-template-rows: subgrid; grid-row: span 2; border-top: 2px solid #176f60; padding-top: .4rem; min-width: 0; }
.chart-reading-value.forecast { border-top: 2px dashed #305b9e; }
.chart-reading-value.prediction { border-top: 2px dotted #99702f; }
.chart-reading-value span { display: block; font-size: .875rem; overflow-wrap: anywhere; hyphens: manual; line-height: 1.3; color: var(--muted); }
.chart-reading-value strong { display: block; font-size: 1.05rem; font-variant-numeric: tabular-nums; margin-top: 0; }
.chart-reading-hint { font-size: .9rem; color: var(--muted); }

/* Keep the measured value near the lower edge, separate from the tide overview.
   Flow layout reserves its space even when text wraps or the screen is short. */
body[data-view="simple"] .simple-content { padding-bottom:24px; }
body[data-view="simple"] .simple-reading {
  position:relative; z-index:2; flex-shrink:0;
  width:calc(100% - 48px); max-width:650px;
  margin: auto auto 0; padding:20px 0 calc(24px + env(safe-area-inset-bottom,0px));
  color:#edf6f8; text-align:center;
}
body[data-view="simple"] .simple-panel::before {
  content:""; position:absolute; z-index:1; pointer-events:none;
  inset:auto 0 0; height:210px;
  background:linear-gradient(transparent,#123e5799 50%,#123e57db);
}
@media(max-height:700px) {
  body[data-view="simple"] .simple-reading { padding-top:12px; padding-bottom:calc(16px + env(safe-area-inset-bottom,0px)); }
}
@media(min-width:680px) and (max-height:600px) {
  body[data-view="simple"] .simple-content { padding-bottom:12px; }
}

/* The normal dashboard has a saved theme; simple mode keeps its own daylight scene. */
.theme-options { margin-top:.5rem; padding-top:.65rem; border-top:1px solid var(--line); }
.theme-options > p { padding:.2rem .7rem .5rem; font-size:.875rem; color:var(--muted); }
.theme-options > p span { display:block; font-size:.8125rem; margin-top:.1rem; }
.theme-options .theme-choices { display:grid; grid-template-columns:1fr 1fr 1.5fr; gap:.25rem; }
.theme-choices button { justify-content:center; padding:.5rem .25rem; min-height:44px; font-size:.875rem; }
.theme-choices button[aria-pressed=true] { background:var(--pale); color:var(--accent); box-shadow:inset 0 0 0 1px var(--accent); }
body[data-view=simple] .theme-options { display:none; }
@media(min-width:701px) {
  body:not([data-view=simple]) .mobile-header-menu { display:block; }
  body:not([data-view=simple]) .mobile-header-dropdown > .mobile-place-choice { display:none; }
  body:not([data-view=simple]) .mobile-view-choices { margin-top:0; padding-top:0; border-top:0; }
}
:root {
  --chart-observation:#176f60; --chart-forecast:#305b9e; --chart-prediction:#99702f;
  --chart-grid:#e3ebe5; --chart-day-line:#b8cec4; --chart-band:#edf4f180; --chart-now:#637b72; --chart-cursor:#254b43;
}
:root[data-theme=dark] {
  color-scheme:dark;
  --page:#101d27; --card:#192b37; --paper:#152530;
  --ink:#e8f0f3; --muted:#afc2cb; --accent:#82d8c5;
  --line:#344c5a; --pale:#213f43; --warm:#493c2b;
  --chart-observation:#72d7ba; --chart-forecast:#8bbcff; --chart-prediction:#eac17c;
  --chart-grid:#344b58; --chart-day-line:#607987; --chart-band:#243c494d; --chart-now:#9fb8c5; --chart-cursor:#e0f2fa;
}
:root[data-theme=dark] :focus-visible { outline-color:#95e6d0; }
:root[data-theme=dark] :is(.top,footer,dialog,dialog > .dialog-top,.mobile-header-dropdown,.planner-results-toolbar) { background:var(--card); }
:root[data-theme=dark] :is(.button,input,select,.planner-settings select,.planner-settings input[type=number]) { background-color:var(--paper); border-color:var(--line); }
:root[data-theme=dark] :is(.button:hover,.top nav a:hover,.top nav .nav-active) { background:var(--pale); }
:root[data-theme=dark] .button.primary { background:#82d8c5; border-color:#82d8c5; color:#102d2a; }
:root[data-theme=dark] .button.primary:hover { background:#a5e8d9; }
:root[data-theme=dark] .hero-button { background:#0b292b80; border-color:#a7c9c380; color:#fff; }
:root[data-theme=dark] .hero-button:hover { background:#27665c; }
:root[data-theme=dark] .segments { background:var(--paper); border-color:var(--line); }
:root[data-theme=dark] .segments button[aria-pressed=true] { background:var(--pale); }
:root[data-theme=dark] .badge-icon { color:var(--accent); }
:root[data-theme=dark] :is(.low .badge-icon,.event.event-low .ic,.tide-symbol-low) { color:#eac17c; }
:root[data-theme=dark] .current .badge-icon { background:#253f52; color:#a4d8f5; }
:root[data-theme=dark] .contribution .badge-icon { background:#3b3351; color:#d2bbed; }
:root[data-theme=dark] :is(.weather,.planner-settings,.chart-reading) { background:#1d343f; }
:root[data-theme=dark] :is(.wind,.weather-icon) { color:var(--accent); border-color:var(--line); }
:root[data-theme=dark] :is(.event,.shared-trip,.plan-more-area .button,#plan-results .plan-row .trip-actions .button) { border-color:var(--line); }
:root[data-theme=dark] .notice { background:#453b27; color:#f0d99d; }
:root[data-theme=dark] dialog::backdrop { background:#030c15b8; }
:root[data-theme=dark] .daylight-badge { background:#2e414b; color:#d2e1e6; }
:root[data-theme=dark] .daylight-full .daylight-badge { background:#23473f; color:#a6e7ce; }
:root[data-theme=dark] .daylight-partial .daylight-badge { background:#493c2b; color:#f2c88e; }
:root[data-theme=dark] .daylight-none .daylight-badge { background:#303c57; color:#c5d6f6; }
:root[data-theme=dark] #plan-results .plan-row { background:var(--paper); border-color:var(--line); }
:root[data-theme=dark] #plan-results .plan-row:has(.daylight-full) { background:linear-gradient(125deg,#38382b,var(--paper) 75%); }
:root[data-theme=dark] #plan-results .plan-row:has(.daylight-none) { background:linear-gradient(125deg,#202f49,var(--paper) 85%); }
:root[data-theme=dark] #plan-results .plan-row:has(.daylight-partial) { background:linear-gradient(125deg,#3b302f,var(--paper) 85%); }
:root[data-theme=dark] #plan-results .plan-light-art { box-shadow:none; }
:root[data-theme=dark] #plan-results :is(.window-weather,.trip-actions) { border-color:var(--line); }
:root[data-theme=dark] .station-map :is(.leaflet-control-zoom a,.leaflet-popup-content-wrapper,.leaflet-popup-tip,.leaflet-control-attribution) { background:var(--card); color:var(--ink); }
:root[data-theme=dark] .station-map { background:var(--paper); }
.legend .legend-item::before,.chart-reading-value { border-color:var(--chart-observation); }
.legend .legend-item.forecast::before,.chart-reading-value.forecast { border-color:var(--chart-forecast); }
.legend .legend-item.prediction::before,.chart-reading-value.prediction { border-color:var(--chart-prediction); }
:root[data-theme=dark] .planner-settings .daylight-filter { background:var(--paper); }
:root[data-theme=dark] .planner-settings .daylight-filter:has(input:checked) { background:var(--pale); }
:root[data-theme=dark] .skip { background:var(--card); }
:root[data-theme=dark] .button.primary:not(:disabled) { background:#82d8c5; border-color:#82d8c5; color:#102d2a; }
:root[data-theme=dark] .button.primary:not(:disabled):hover { background:#a5e8d9; }
@media(min-width:701px) and (max-width:980px) {
  body:not([data-view=simple]) .top :is(.top-place,.view-switch) { display:none; }
  body:not([data-view=simple]) .mobile-header-dropdown > .mobile-place-choice { display:flex; }
  body:not([data-view=simple]) .mobile-view-choices { display:block; }
}
/* Centre section navigation independently of the logo and action widths. */
@media(min-width:981px) {
  body:not([data-view=simple]) .top #regular-nav { position:absolute; left:50%; transform:translateX(-50%); }
  body:not([data-view=simple]) .top-place { margin-left:auto; }
  body:not([data-view=simple]) .mobile-header-menu { margin-left:0; }
}

.discovery { margin-top:24px; padding:28px; display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:2rem; }
.discovery h2 { font-size:1.35rem; line-height:1.35; margin:.4rem 0 .7rem; }
.discovery p { color:var(--muted); font-size:.925rem; line-height:1.75; }
.discovery p + p { margin-top:.7rem; }
.station-links { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.5rem 1rem; align-content:start; }
.station-links a { display:block; padding:.6rem .7rem; border:1px solid var(--line); border-radius:9px; font-size:.9rem; overflow-wrap:anywhere; background:var(--paper); }
.station-directory { margin-top:1.5rem; }
.guide-nav { display:flex; flex-wrap:wrap; gap:.65rem 1.2rem; margin:1.5rem 0; }
.guide-source { margin-top:1.5rem; font-size:.9rem; color:var(--muted); }
body[data-view=simple] .discovery { display:none; }
@media(max-width:700px) { .discovery { grid-template-columns:1fr; padding:20px; gap:1.25rem; } .station-links { grid-template-columns:1fr; } }
