/* Network pages (home, compare, alerts, reports, about). Layout only; everything visual comes from tokens. */
html, body { margin: 0; background: var(--surface-100); }
body { min-height: 100vh; }
[hidden] { display: none !important; }

.site-nav { flex-wrap: wrap; }
.site-nav nav { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-5); }
.site-nav nav a:not(.ds-btn) { font: 600 12px/1 var(--font-sans); color: var(--ink); text-decoration: none; padding: var(--space-2) 0; }
.site-nav nav a[aria-current="page"] { color: var(--teal); box-shadow: inset 0 -2px 0 var(--teal); }
/* Social icon buttons: next to the logo on phones (menu wraps below), after the menu on wide screens */
.nav-social { order: 1; display: flex; gap: var(--space-2); margin-left: auto; }
.site-nav nav { order: 2; flex-basis: 100%; }
.social-icon { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; padding: 0; }
@media (min-width: 1100px) {
  .site-nav nav { order: 1; flex-basis: auto; margin-left: auto; }
  .nav-social { order: 2; margin-left: 0; }
}

.wrap { max-width: 1240px; margin: 0 auto; padding: var(--space-5) var(--space-4); }
.lead { margin: 0; }
.page-title { font: 500 34px/1.08 var(--font-display); letter-spacing: -.04em; margin: var(--space-2) 0; }
.page-title em { font-style: normal; color: var(--leaf); }
.muted { color: var(--ink-muted); }
.card { background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-md); padding: var(--space-3) var(--space-4); }
.section { margin-top: var(--space-6); }
.footnote { margin-top: var(--space-6); }

/* Home: heading, map with wind arrows, station list (daftar) under the map */
.home { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-4); }
.home-head .page-title { margin-bottom: var(--space-1); }
.home .ds-map { height: 62vh; min-height: 340px; }
@media (max-width: 479px) { .home .ds-map-tag { display: none; } } /* the value switch says the same */
.station-table .ds-caption { margin-top: var(--space-2); }
.station-table .card { padding: 0; }
.station-table th:nth-child(-n+3), .station-table td:nth-child(-n+3) { text-align: left; }
.station-table td a { color: var(--teal); font-weight: 600; text-decoration: none; }
.layer-switch { position: absolute; right: var(--space-3); top: var(--space-3); z-index: 500; }
.map-host { position: absolute; inset: 0; }
.ds-map .ds-map-tag { z-index: 500; }
.ds-map .ds-map-popup { z-index: 600; } /* placed by map.js: above or below the pin, inside the frame */
.popup-chips { display: flex; flex-wrap: wrap; gap: var(--space-1); align-items: center; }

/* Admin */
.section-heading { font: 500 26px/1.15 var(--font-display); letter-spacing: -.03em; margin-bottom: var(--space-2); }
table.data.admin-table td, table.data.admin-table th { text-align: left; white-space: normal; }
.admin-table a { color: var(--teal); font-weight: 600; }
.admin-layout { display: grid; gap: var(--space-4); }
.admin-side { display: flex; gap: var(--space-1); overflow-x: auto; padding-bottom: var(--space-1); border-bottom: 1px solid var(--line); }
.admin-side-title { display: none; }
.admin-side a { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); white-space: nowrap;
  padding: 8px 12px; border-radius: var(--radius-sm); font: 600 14px/1.3 var(--font-sans); color: var(--ink); text-decoration: none; }
.admin-side a:hover { background: var(--surface-raised); }
.admin-side a[aria-current="page"] { background: var(--teal); color: var(--on-teal); }
.admin-main { min-width: 0; }
.admin-main .page-title { margin-top: 0; }
.admin-side a .ds-status { flex: none; }
/* From 900px: the sidebar is a full-height panel on the left edge; the content is centred in the rest. */
@media (min-width: 900px) {
  .admin-layout.wrap { max-width: none; margin: 0; padding: 0; min-height: calc(100vh - 64px);
    grid-template-columns: 264px minmax(0, 1fr); gap: 0; align-items: start;
    background: linear-gradient(to right, var(--surface-raised) 263px, var(--line) 263px, var(--line) 264px, transparent 264px); }
  .admin-side { flex-direction: column; position: sticky; top: 0; overflow: visible; border-bottom: 0;
    padding: var(--space-5) var(--space-3); }
  .admin-side-title { display: block; margin: 0 0 var(--space-2) 12px; }
  .admin-side a:hover { background: var(--surface-100); }
  .admin-side a[aria-current="page"]:hover { background: var(--teal); }
  .admin-main { width: 100%; max-width: 1240px; margin: 0 auto; padding: var(--space-5) var(--space-6) var(--space-7); }
}
.admin-form { display: grid; gap: var(--space-3); align-items: end; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.admin-form .ds-field { margin-top: 0; }
.admin-form select { width: 100%; border: 1px solid var(--line-control); border-radius: var(--radius-sm); padding: 10px 12px;
  font: 400 14px/1.4 var(--font-sans); color: var(--ink); background: var(--surface-100); }
.admin-wide { grid-column: 1 / -1; }
.admin-form textarea { width: 100%; border: 1px solid var(--line-control); border-radius: var(--radius-sm); padding: 10px 12px;
  font: 400 14px/1.4 var(--font-sans); color: var(--ink); background: var(--surface-100); }
.admin-map { height: 380px; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.admin-actions { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.admin-subhead { font: 500 18px/1.25 var(--font-display); margin: 0 0 var(--space-2); }
.admin-measures { display: grid; gap: var(--space-3); margin-bottom: var(--space-2); }
.admin-measure { display: grid; gap: var(--space-3); align-items: end; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  padding: var(--space-3); border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-100); }
.admin-measure .ds-field { margin-top: 0; }
.admin-measure-list { display: grid; gap: var(--space-1); }
.admin-measure-line { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-1) var(--space-2); }

/* Report page */
.report-page { max-width: 640px; }
.report-page #flow { padding: var(--space-4); }

/* Wind pin: a disc with an arrow pointing where the wind blows. Filled = our station, outline = Weather Underground. */
.wind-icon { background: none; border: 0; }
.wind-pin { position: relative; display: block; width: 28px; height: 28px; cursor: pointer; }
.wind-disc { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  background: var(--surface-raised); color: var(--river-text); box-shadow: var(--shadow-note), inset 0 0 0 1.5px var(--river); }
.wind-disc svg { width: 20px; height: 20px; fill: currentColor; }
.wind-pin--own .wind-disc { background: var(--river); color: var(--on-teal); box-shadow: var(--shadow-note), inset 0 0 0 2px var(--surface-raised); }
.wind-pin--calm .wind-disc::after { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.wind-pin--stale .wind-disc { color: var(--warn); box-shadow: var(--shadow-note), inset 0 0 0 1.5px var(--warn); }
.wind-pin--own.wind-pin--stale .wind-disc { background: var(--warn); color: var(--on-teal); }
.wind-pin--nodata .wind-disc { color: var(--danger); box-shadow: var(--shadow-note), inset 0 0 0 1.5px var(--line-control); background: var(--surface-float); }
.wind-pin--nodata .wind-disc svg { width: 14px; height: 14px; }
.wind-pin--planned .wind-disc { background: var(--surface-float); box-shadow: inset 0 0 0 1.5px var(--line-control); }
.wind-pin--active .wind-disc { outline: 3px solid var(--teal); outline-offset: 1px; }
.wind-pin b { position: absolute; left: 50%; top: 100%; margin-top: 2px; transform: translateX(-50%); padding: 0 4px;
  border-radius: var(--radius-sm); background: var(--surface-float); color: var(--ink); font: 700 10px/1.5 var(--font-sans);
  font-variant-numeric: tabular-nums; white-space: nowrap; box-shadow: inset 0 0 0 1px var(--line); }
.labels-off .wind-pin b { display: none; }
.wind-tooltip { font: 600 12px/1.3 var(--font-sans); color: var(--ink); border-color: var(--line); box-shadow: var(--shadow-note); }

.overlay-switch { position: absolute; right: var(--space-3); top: calc(var(--space-3) + 40px); z-index: 500; }
.heat-layer { pointer-events: none; }
.flow-icon { background: none; border: 0; pointer-events: none; }
.flow-icon svg, .flow-glyph svg { display: block; width: 18px; height: 18px; fill: none; stroke: var(--ink); stroke-width: 2.25;
  stroke-linecap: round; stroke-linejoin: round; }
.flow-glyph svg { width: 14px; height: 14px; }

/* Time slider: a strip right under the map (timeline.js); play button, range in teal, the time it shows */
.map-timebar { display: flex; align-items: center; gap: var(--space-3); margin-top: calc(-1 * var(--space-2));
  padding: var(--space-2) var(--space-3); border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface-float); }
.map-timebar[hidden] { display: none; }
.timebar-play { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; flex: none; }
.timebar-play .line-icon { width: 16px; height: 16px; fill: currentColor; }
.timebar-track { display: grid; flex: 1; min-width: 0; }
.timebar-track input { width: 100%; margin: 2px 0 0; accent-color: var(--teal); cursor: pointer; }
.timebar-when { flex: none; min-width: 9ch; text-align: right; font: 600 12px/1.2 var(--font-sans); font-variant-numeric: tabular-nums; }
/* Legend: a strip right under the map, so it never covers stations on a phone */
.map-legend { display: grid; gap: var(--space-2); margin-top: calc(-1 * var(--space-2)); padding: var(--space-2) var(--space-3);
  border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface-float); font: 600 11px/1.3 var(--font-sans); }
.legend-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-1) var(--space-3); }
.legend-title { color: var(--ink-muted); }
.legend-scale { display: inline-flex; align-items: center; gap: 6px; }
.legend-scale i { display: block; width: 96px; height: 8px; border-radius: var(--radius-sm); }
.legend-note { font-weight: 400; color: var(--ink-muted); }
.legend-readout { font-variant-numeric: tabular-nums; }
.legend-item { display: inline-flex; align-items: center; gap: 6px; }
.map-legend .wind-pin, .map-legend .wind-disc { width: 18px; height: 18px; cursor: default; }
.map-legend .wind-disc { box-shadow: inset 0 0 0 1.5px var(--river); }
.map-legend .wind-pin--own .wind-disc { box-shadow: none; }
.map-legend .wind-pin--nodata .wind-disc { box-shadow: inset 0 0 0 1.5px var(--line-control); }
.map-legend .wind-disc svg { width: 13px; height: 13px; }
.map-legend .wind-pin--nodata .wind-disc svg { width: 10px; height: 10px; }
.map-legend .wind-pin--calm .wind-disc::after { width: 6px; height: 6px; }

/* Source tag: Digital Subak (our stations) vs Weather Underground */
.src-tag { letter-spacing: .04em; white-space: nowrap; }
.src-tag--own { background: var(--river); color: var(--on-teal); }

/* Language switch (ID / EN) with small flag images */
.lang-switch button { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; }
.lang-switch img { display: block; width: 18px; height: 12px; border-radius: 2px; }
.chip-sm { padding: 1px var(--space-2); }
.btn-sm { padding: 9px 14px; }
.popup-name { margin-top: 6px; }
.popup-values { display: flex; gap: 14px; margin: var(--space-2) 0 10px; }
.leaflet-tile-pane { filter: saturate(.55) brightness(1.03); } /* calmer basemap, data stays in colour */
.leaflet-container { font-family: var(--font-sans); background: var(--surface-200); }

/* Segmented control, shared by pages (see design-system README, Additions) */
.period { display: inline-flex; border-radius: var(--radius-pill); box-shadow: inset 0 0 0 1px var(--line-strong); padding: 2px;
  background: var(--surface-float); }
.period button { border: 0; background: transparent; color: var(--ink-muted); font: 600 12px/1 var(--font-sans);
  padding: 7px 12px; border-radius: var(--radius-pill); cursor: pointer; }
.period button[aria-pressed="true"] { background: var(--teal); color: var(--on-teal); }

/* Compare */
.head-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: var(--space-3); }
.grid-2 { display: grid; gap: var(--space-3); }
.chart { height: 240px; }
.chart-sm { height: 220px; }
.chart-head { font: 600 12px/1.4 var(--font-sans); color: var(--ink-muted); }
.swatch { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; }
.table-wrap { overflow-x: auto; }
table.data { border-collapse: collapse; width: 100%; font-size: 13px; font-variant-numeric: tabular-nums; }
table.data th, table.data td { padding: var(--space-2) var(--space-3); border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; }
table.data th:first-child, table.data td:first-child { text-align: left; }
table.data th { font: 600 12px/1.4 var(--font-sans); color: var(--ink-muted); }

/* Lists (alerts, reports) */
.list { display: grid; gap: var(--space-3); }
.prose { max-width: 680px; }
.prose h2 { font: 500 22px/1.2 var(--font-display); letter-spacing: -.02em; margin: var(--space-6) 0 var(--space-2); }
.prose p, .prose li { font-size: 15px; line-height: 1.7; }

@media (min-width: 720px) {
  .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 960px) {
  .wrap { padding: var(--space-5) var(--space-7); }
  .site-nav { padding-left: var(--space-7); padding-right: var(--space-7); }
  .home .ds-map { height: 600px; }
}
.plain { color: inherit; text-decoration: none; }
.report-text { margin: 0; white-space: pre-wrap; font: 400 13px/1.6 var(--font-sans); }

/* Compare: station picker (choice chips grouped by source, max. 6, swatch = series colour) */
.picker { display: grid; gap: var(--space-3); }
.picker-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-2) var(--space-3); }
.picker-title { margin: 0; font: 500 18px/1.2 var(--font-display); }
.picker-head .ds-btn { margin-left: auto; }
.picker-group .ds-choices { margin: var(--space-1) 0 0; }
.picker .ds-choice:disabled { opacity: .45; cursor: not-allowed; }
.picker .ds-choice .swatch { margin-right: 0; }

/* Community reports: the /reports list and the "Reports" mode on the home map */
.report-filters { display: grid; gap: var(--space-3); grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end; }
.report-filters .ds-field { margin-top: 0; }
.report-filters .filter-search { grid-column: 1 / -1; }
.report-filters select { width: 100%; border: 1px solid var(--line-control); border-radius: var(--radius-sm); padding: 10px 12px;
  font: 400 14px/1.4 var(--font-sans); color: var(--ink); background: var(--surface-100); }
#summary { margin: var(--space-3) 0 var(--space-2); }
.report-card { display: grid; gap: var(--space-1); align-content: start; font-size: 14px; }
.report-card .ds-tag, .report-popup .ds-tag { justify-self: start; }
.report-where, .report-links, .report-distance { color: var(--ink-muted); }
.report-links a, .legend-link, .plain-link { color: var(--teal); font-weight: 600; text-decoration: none; }
.report-note { margin: var(--space-1) 0 0; line-height: 1.5; }
.report-photo { display: block; max-width: 100%; max-height: 260px; margin-top: var(--space-2); border-radius: var(--radius-sm); }
.report-photo--sm { max-height: 120px; }
.report-popup { display: grid; gap: var(--space-1); margin-bottom: var(--space-2); max-width: 240px; font-size: 13px; }
.mode-switch { position: absolute; left: var(--space-3); bottom: var(--space-3); z-index: 500; }
.report-icon { background: none; border: 0; }
.report-pin { display: grid; place-items: center; width: 26px; height: 26px; border-radius: var(--radius-sm) var(--radius-sm) var(--radius-sm) 0;
  background: var(--leaf); color: var(--on-teal); box-shadow: var(--shadow-note), inset 0 0 0 2px var(--surface-raised); cursor: pointer; }
.report-pin .line-icon { width: 15px; height: 15px; }
.report-pin--active { outline: 3px solid var(--teal); outline-offset: 1px; }
.report-pin--legend { width: 18px; height: 18px; cursor: default; box-shadow: none; }
.report-pin--legend .line-icon { width: 11px; height: 11px; }
/* Reporting point (home map): a rounded square with a gauge-post icon. Fresh = filled deep; ageing = warn ring;
   old or none = faded neutral. The last value sits under it from zoom 10, like a station's. */
.place-icon { background: none; border: 0; }
.place-pin { position: relative; display: grid; place-items: center; width: 26px; height: 26px; border-radius: var(--radius-sm);
  background: var(--deep); color: var(--on-teal); box-shadow: var(--shadow-note), inset 0 0 0 2px var(--surface-raised); cursor: pointer; }
.place-pin .line-icon { width: 16px; height: 16px; }
.place-pin--ageing { background: var(--surface-raised); color: var(--warn); box-shadow: var(--shadow-note), inset 0 0 0 2px var(--warn); }
.place-pin--old, .place-pin--none { background: var(--surface-float); color: var(--ink-subtle);
  box-shadow: var(--shadow-note), inset 0 0 0 1.5px var(--line-control); }
.place-pin--none { opacity: .8; }
.buoy-pin { border-radius: 50%; }
.place-pin--active { outline: 3px solid var(--teal); outline-offset: 1px; }
.place-pin b { position: absolute; left: 50%; top: 100%; margin-top: 2px; transform: translateX(-50%); padding: 0 4px;
  border-radius: var(--radius-sm); background: var(--surface-float); color: var(--ink); font: 700 10px/1.5 var(--font-sans);
  font-variant-numeric: tabular-nums; white-space: nowrap; box-shadow: inset 0 0 0 1px var(--line); }
.labels-off .place-pin b { display: none; }
.popup-measures { display: grid; gap: 2px; margin: var(--space-1) 0 var(--space-2); }
.popup-measure { display: grid; grid-template-columns: 1fr auto; column-gap: var(--space-2); font-size: 13px; }
.popup-measure .ds-caption { grid-column: 1 / -1; margin-top: -2px; }
.place-pin--legend { width: 18px; height: 18px; cursor: default; box-shadow: none; }
.place-pin--legend.place-pin--ageing { box-shadow: inset 0 0 0 1.5px var(--warn); }
.place-pin--legend.place-pin--old { box-shadow: inset 0 0 0 1.5px var(--line-control); }
.place-pin--legend .line-icon { width: 12px; height: 12px; }
/* You are here: a frangipani (jepun) pin, accuracy circle, locate button above the zoom, card under the legend */
.you-icon { background: none; border: 0; }
.you-pin { position: relative; display: block; width: 34px; height: 42px; cursor: pointer;
  filter: drop-shadow(0 2px 2px var(--line-control)); }
.you-pin svg { position: relative; display: block; width: 100%; height: 100%; }
.you-pin::before { content: ""; position: absolute; left: 50%; bottom: -5px; width: 14px; height: 8px; margin-left: -7px;
  border-radius: 50%; background: var(--teal); opacity: .35; animation: you-pulse 2.4s ease-out infinite; }
@keyframes you-pulse { from { transform: scale(.6); opacity: .5; } to { transform: scale(2.6); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .you-pin::before { animation: none; } }
.you-drop { fill: var(--teal); stroke: var(--surface-raised); stroke-width: 2; }
.you-petal { fill: var(--surface-raised); stroke: var(--terrace-pale); stroke-width: .6; }
.you-heart { fill: color-mix(in srgb, var(--cream), var(--warn) 22%); } /* the warm yellow heart of a jepun */
.you-pin--legend { width: 22px; height: 27px; cursor: default; filter: none; }
.you-pin--legend::before { display: none; }
.locate-control button { display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 0;
  background: var(--surface-raised); color: var(--teal); cursor: pointer; }
.locate-control button:hover { background: var(--surface-float); }
.locate-control button.is-busy .line-icon { animation: you-spin 1.2s linear infinite; }
@keyframes you-spin { to { transform: rotate(360deg); } }
.here-card { display: grid; gap: var(--space-2); margin-top: var(--space-3); }
.here-head { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); }
.here-head strong { font: 500 18px/1.2 var(--font-display); }
.here-head .ds-caption { color: var(--ink-muted); }
.here-note { margin: 0; color: var(--ink-muted); }
.here-values { flex-wrap: wrap; margin: 0; }
.here-near { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-2); }
.here-near a:not(.ds-btn) { color: var(--teal); font-weight: 600; text-decoration: none; }
@media (min-width: 960px) {
  .report-filters { grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); }
  .report-filters .filter-search { grid-column: auto; }
}

/* Footer on the network pages: logo + tagline, page links, social buttons, credits */
body:has(.site-footer) { display: flex; flex-direction: column; }
body:has(.site-footer) > main { flex: 1 0 auto; width: 100%; box-sizing: border-box; }
.site-footer { margin-top: var(--space-7); border-top: 1px solid var(--line); background: var(--surface-raised);
  padding: var(--space-5) var(--space-4) var(--space-4); }
.footer-inner { max-width: 1240px; margin: 0 auto; display: grid; gap: var(--space-4); align-items: start; }
.footer-about { display: grid; gap: var(--space-2); justify-items: start; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); }
.site-footer nav a { font: 600 13px/1.4 var(--font-sans); color: var(--ink); text-decoration: none; }
.site-footer nav a:hover { color: var(--teal); }
.footer-credit { max-width: 1240px; margin: var(--space-4) auto 0; color: var(--ink-muted); }
.line-icon { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75;
  stroke-linecap: round; stroke-linejoin: round; }
@media (min-width: 720px) {
  .footer-inner { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
}
@media (min-width: 960px) {
  .site-footer { padding-left: var(--space-7); padding-right: var(--space-7); }
}

/* Partners: logo cards; resources: grouped link lists; about: the project illustration */
.partner-grid { display: grid; gap: var(--space-3); grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.partner { display: grid; gap: var(--space-2); justify-items: center; align-content: start; text-align: center;
  padding: var(--space-4); color: var(--ink); text-decoration: none; }
a.partner:hover { border-color: var(--teal); }
.partner img { width: 100%; height: 120px; object-fit: contain; border-radius: var(--radius-sm); background: var(--surface-raised); }
.partner-name { font: 600 14px/1.3 var(--font-sans); }
.resource-list { padding-left: var(--space-5); }
.resource-list a, .prose a { color: var(--teal); font-weight: 600; }
.about-figure { margin: var(--space-5) 0 0; }
.about-figure img { display: block; width: 100%; max-width: 420px; height: auto; border-radius: var(--radius-md);
  border: 1px solid var(--line); }

/* Stickers (print) */
.stickers { display: flex; flex-wrap: wrap; gap: var(--space-5); }
.sticker { width: 9cm; margin: 0; padding: var(--space-4); border: 1.5px dashed var(--line-control); border-radius: var(--radius-lg);
  background: var(--surface-raised); display: grid; gap: var(--space-2); justify-items: center; text-align: center; break-inside: avoid; }
.sticker-logo { height: 40px; }
.sticker-qr { width: 6cm; height: 6cm; }
.sticker figcaption { display: grid; gap: var(--space-1); }
.sticker strong { font: 500 26px/1.1 var(--font-display); letter-spacing: -.03em; }
.sticker-url { font: 600 12px/1.3 var(--font-sans); color: var(--teal); }
@media print {
  .no-print { display: none !important; }
  body, .ds-root { background: none; }
  .wrap { padding: 0; }
}

/* "Digital Subak on your phone": install offer at the bottom of the screen on phones (js/install.js) */
.app-offer { position: fixed; z-index: 1000; left: var(--space-4); right: var(--space-4); bottom: var(--space-4);
  max-width: 480px; margin: 0 auto; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: var(--space-2) var(--space-3);
  align-items: center; padding: var(--space-3) var(--space-4); background: var(--surface-raised); color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sheet); }
.app-offer img { border-radius: var(--radius-md); }
.app-offer strong { font: 500 17px/1.2 var(--font-display); }
.app-offer p { margin: 2px 0 0; font-size: 13px; line-height: 1.45; color: var(--ink-muted); }
.app-offer p .line-icon { width: 16px; height: 16px; vertical-align: -3px; color: var(--teal); }
.app-offer-actions { grid-column: 1 / -1; display: flex; justify-content: flex-end; gap: var(--space-2); }

/* Sea buoy (/buoy): station header and tiles from the design system, inside the network page frame */
.buoy-head { padding: 0; }
.surf-card { display: grid; gap: var(--space-3); }
.surf-now { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-3); }
.buoy-head .lead { margin-top: var(--space-3); max-width: 640px; }
.ds-now .ds-reading small { font: 500 18px/1 var(--font-sans); color: var(--ink-muted); margin-left: 4px; letter-spacing: 0; }
@media (min-width: 720px) { .buoy-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* BMKG heavy-rain warning banner (home): amber = warn token, glyph + word in the status chip */
.warnings { display: grid; gap: var(--space-3); }
.warning-card { display: flex; gap: var(--space-3); align-items: flex-start; padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md); border: 1px solid var(--warn); border-left-width: 4px;
  background: color-mix(in srgb, var(--warn) 8%, var(--surface-raised)); color: var(--ink); }
.warning-card > svg { width: 28px; height: 28px; flex: none; color: var(--warn); margin-top: 2px; }
.warning-body { display: grid; gap: var(--space-1); min-width: 0; }
.warning-body p { margin: 0; font-size: 14px; line-height: 1.5; }
.warning-head { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; }
.warning-title { margin: 0; font: 500 20px/1.2 var(--font-display); letter-spacing: -.02em; }
.warning-foot a { white-space: nowrap; color: var(--teal); font-weight: 600; }
.fl-original { padding: var(--space-3); border-radius: var(--radius-sm); background: var(--surface-float); border: 1px solid var(--line); font-size: 13px; }
.fl-original p { margin: var(--space-1) 0; }
/* Flood report card (home): an actual event, kept visually apart from the amber weather warning */
.flood-card { display: flex; gap: var(--space-3); align-items: flex-start; padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md); border: 1px solid var(--line); border-left: 4px solid var(--river);
  background: var(--surface-raised); color: var(--ink); }
.flood-card > svg { width: 28px; height: 28px; flex: none; color: var(--river); margin-top: 2px; }
.fl-original a { color: var(--teal); font-weight: 600; }
