/* Arran Weather v29 */

:root {
  --bg: #f2f5f8;
  --surface: #ffffff;
  --surface-2: #f7f9fb;
  --ink: #0f1d29;
  --muted: #5a6a78;
  --faint: #8a98a5;
  --line: #dde5ec;
  --brand: #0b2236;
  --brand-2: #123552;
  --accent: #0b7fa8;
  --ok: #1d9a55;
  --possible: #d99a00;
  --probable: #d4291e;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(15, 29, 41, .06), 0 4px 16px rgba(15, 29, 41, .05);
  --cell: 30px;
  --name-col: 146px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a131b;
    --surface: #111d28;
    --surface-2: #0e1922;
    --ink: #e5edf3;
    --muted: #9aabb9;
    --faint: #6f8291;
    --line: #213140;
    --accent: #3fb6dd;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 15px/1.5 Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-feature-settings: "tnum" 1, "cv11" 1;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.2; margin: 0; letter-spacing: -.01em; }
h1 { font-size: 1.6rem; font-weight: 700; }
h2 { font-size: 1.15rem; font-weight: 650; }
h3 { font-size: 1rem; font-weight: 600; }
img { max-width: 100%; }

.wrap { max-width: 1240px; margin: 0 auto; padding-inline: max(16px, env(safe-area-inset-left)); }
main.wrap { padding-block: 20px 48px; }

/* ── Masthead ───────────────────────────── */
.masthead {
  background: linear-gradient(180deg, var(--brand) 0%, var(--brand-2) 100%);
  color: #fff;
  position: sticky; top: 0; z-index: 20;
  padding-top: env(safe-area-inset-top);
  box-shadow: 0 1px 0 rgba(255,255,255,.06), 0 6px 20px rgba(0,0,0,.12);
}
.masthead-row { display: flex; align-items: center; gap: 24px; min-height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; font-size: 1.15rem; letter-spacing: -.01em; white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand b { font-weight: 700; color: #7fd3f0; margin-left: 1px; }
.nav { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; margin-left: auto; }
.nav::-webkit-scrollbar { display: none; }
.nav a {
  color: rgba(255,255,255,.78); padding: 8px 12px; border-radius: 8px; white-space: nowrap; font-weight: 500; font-size: .93rem;
}
.nav a:hover { color: #fff; background: rgba(255,255,255,.08); text-decoration: none; }
.nav a[aria-current="page"] { color: #fff; background: rgba(127,211,240,.16); box-shadow: inset 0 -2px 0 #7fd3f0; }
@media (max-width: 760px) {
  .masthead-row { flex-wrap: wrap; gap: 0; padding-top: 8px; }
  .nav { width: 100%; margin: 4px -8px 0; padding-bottom: 6px; }
  .nav a { padding: 7px 10px; font-size: .9rem; }
}

/* ── Layout primitives ──────────────────── */
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 18px;
}
.card + .card, .section + .section { margin-top: 18px; }
.grid > .card { margin: 0; }
.section { margin-top: 26px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.section-head p { margin: 0; color: var(--muted); font-size: .9rem; }
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.kicker { text-transform: uppercase; letter-spacing: .08em; font-size: .72rem; font-weight: 600; color: var(--muted); }
.page-title { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.page-title p { margin: 4px 0 0; color: var(--muted); }
.stamp { font-size: .8rem; color: var(--faint); }

/* ── Hero / now ─────────────────────────── */
.hero > .card { margin: 0; }
.hero { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 16px; }
@media (max-width: 900px) { .hero { grid-template-columns: 1fr; } }
.now { display: flex; gap: 18px; align-items: center; }
.now .sym { width: 84px; height: 84px; flex: none; }
.now-temp { font-size: 3.2rem; font-weight: 700; letter-spacing: -.04em; line-height: 1; }
.now-cond { font-weight: 600; margin-top: 6px; }
.now-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px; margin-top: 16px; }
.metric { background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; }
.metric .k { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; }
.metric .v { font-size: 1.15rem; font-weight: 650; display: flex; align-items: center; gap: 6px; }
.metric .v small { font-size: .78rem; font-weight: 500; color: var(--muted); }
.headline { font-size: 1.05rem; font-weight: 600; margin: 14px 0 0; }
.headline span { color: var(--muted); font-weight: 500; }

.ferry-mini { display: flex; flex-direction: column; gap: 10px; }
.ferry-mini a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); background: var(--surface-2); }
.ferry-mini a:hover { text-decoration: none; border-color: var(--accent); }
.ferry-mini .route { font-weight: 600; display: block; }
.ferry-mini .why { font-size: .8rem; color: var(--muted); display: block; }

/* ── Status pills ───────────────────────── */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 8px; border-radius: 999px; font-size: .8rem; font-weight: 600; white-space: nowrap; }
.pill i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.pill-ok { color: var(--ok); background: color-mix(in srgb, var(--ok) 13%, transparent); }
.pill-possible { color: #9a6c00; background: color-mix(in srgb, var(--possible) 20%, transparent); }
.pill-probable { color: var(--probable); background: color-mix(in srgb, var(--probable) 13%, transparent); }
@media (prefers-color-scheme: dark) { .pill-possible { color: #f2c14e; } .pill-probable { color: #ff7a70; } }

/* ── Gust bars ──────────────────────────── */
.gb-board { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.gb-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.gb-scroll { overflow-x: auto; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; position: relative; }
.gb-grid { display: grid; grid-template-columns: var(--name-col) max-content; min-width: max-content; }
.gb-name {
  position: sticky; left: 0; z-index: 2; background: var(--surface);
  padding: 0 10px 0 14px; display: flex; align-items: center; justify-content: space-between; gap: 6px;
  font-weight: 600; font-size: .88rem; border-bottom: 1px solid var(--line); min-height: 38px;
  box-shadow: 1px 0 0 var(--line);
}
.gb-name a { color: var(--ink); overflow: hidden; text-overflow: ellipsis; }
.gb-name .max { font-size: .72rem; color: var(--muted); font-weight: 500; }
.gb-name.head { min-height: 30px; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.gb-lane { padding: 4px 8px 4px 4px; border-bottom: 1px solid var(--line); display: flex; align-items: center; }
.gb-lane.head { padding-block: 0; align-items: flex-end; }
.gb-group { grid-column: 1 / -1; padding: 8px 14px 6px; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); background: var(--surface-2); border-bottom: 1px solid var(--line); position: sticky; left: 0; }

.gustbar {
  display: grid; grid-template-columns: repeat(var(--cols), var(--cell));
  border-radius: 8px; height: 30px; align-items: center; overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.06);
}
.gb-cell { text-align: center; font-size: .74rem; font-weight: 650; height: 100%; display: flex; align-items: center; justify-content: center; }
.gb-cell.day-start { box-shadow: inset 2px 0 0 rgba(15,29,41,.55); }
.gb-hours { display: grid; grid-template-columns: repeat(var(--cols), var(--cell)); font-size: .68rem; color: var(--faint); padding: 6px 0 4px; }
.gb-hours span { text-align: center; }
.gb-hours .day-start { color: var(--ink); font-weight: 700; }
.gustbar-empty { padding: 6px 10px; color: var(--muted); font-size: .85rem; }
.gustbar.daily { --cell: 64px; height: 34px; }
.gustbar.daily .gb-cell { font-size: .82rem; }

.gust-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; font-size: .68rem; font-weight: 600; }
.gust-legend span { min-width: 26px; padding: 2px 4px; text-align: center; border-radius: 4px; }
.gust-legend em { font-style: normal; color: var(--muted); margin-left: 6px; font-weight: 500; }

.tabs { display: inline-flex; background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 3px; gap: 2px; }
.tabs button {
  appearance: none; border: 0; background: transparent; color: var(--muted); font: inherit; font-size: .85rem; font-weight: 600;
  padding: 6px 12px; border-radius: 7px; cursor: pointer;
}
.tabs button[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
[data-panel][hidden] { display: none !important; }

@media (max-width: 600px) {
  :root { --name-col: 116px; --cell: 28px; }
  .gb-name { padding-left: 10px; font-size: .82rem; }
  .gb-name .max { display: none; }
}

/* ── Daily strip ────────────────────────── */
.days { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(118px, 1fr); gap: 10px; overflow-x: auto; padding-bottom: 4px; scroll-snap-type: x proximity; }
.day {
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px; text-align: center;
  scroll-snap-align: start; display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--ink);
}
a.day:hover { text-decoration: none; border-color: var(--accent); }
.day .dname { font-weight: 650; font-size: .9rem; }
.day .temps { font-weight: 650; }
.day .temps span { color: var(--muted); font-weight: 500; }
.day .gchip { font-size: .78rem; font-weight: 700; border-radius: 6px; padding: 2px 8px; }
.day .rain { font-size: .78rem; color: var(--accent); }

/* ── Hourly table ───────────────────────── */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.hourly { width: 100%; border-collapse: collapse; font-size: .88rem; min-width: 640px; }
.hourly th { text-align: center; font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; padding: 8px 6px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--surface); }
.hourly td { text-align: center; padding: 5px 6px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.hourly td:first-child, .hourly th:first-child { text-align: left; position: sticky; left: 0; background: var(--surface); z-index: 1; }
.hourly tr.dayrow td { background: var(--surface-2); font-weight: 700; text-align: left; font-size: .8rem; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); padding: 8px; }
.hourly .sym { width: 30px; height: 30px; vertical-align: middle; }
.hourly td.gust { font-weight: 700; padding: 0; }
.hourly td.gust div { padding: 7px 6px; }
.hourly .dir { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); }
.hourly .rainv { color: var(--accent); font-weight: 600; }
.hourly .assess { text-align: left; }
.hourly .why { display: block; font-size: .72rem; color: var(--muted); white-space: normal; max-width: 220px; }
@media (max-width: 640px) {
  table.hourly { min-width: 0; font-size: .84rem; }
  .hourly .opt { display: none; }
  .hourly td, .hourly th { padding-inline: 4px; }
  .hourly .pill { font-size: .72rem; white-space: normal; }
  .hourly .why { max-width: 150px; }
}

/* ── Place picker ───────────────────────── */
.picker { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.picker a { flex: none; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-size: .85rem; font-weight: 500; }
.picker a:hover { text-decoration: none; border-color: var(--accent); }
.picker a[aria-current="page"] { background: var(--brand); border-color: var(--brand); color: #fff; }
.picker .sep { flex: none; align-self: center; color: var(--faint); font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; padding: 0 4px 0 10px; }

/* ── Ferry ──────────────────────────────── */
.route-card { display: flex; flex-direction: column; gap: 10px; }
.route-card .top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.route-card .verdict { font-size: 1.05rem; font-weight: 650; }
.route-card .tl { display: grid; grid-template-columns: repeat(var(--cols), 1fr); height: 12px; border-radius: 6px; overflow: hidden; gap: 1px; }
.tl i { display: block; }
.tl .l0 { background: var(--ok); } .tl .l1 { background: var(--possible); } .tl .l2 { background: var(--probable); }
.tl-axis { display: flex; justify-content: space-between; font-size: .7rem; color: var(--faint); }
.badge { font-size: .7rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: 2px 7px; border-radius: 6px; background: color-mix(in srgb, var(--possible) 20%, transparent); color: #8a6100; }
@media (prefers-color-scheme: dark) { .badge { color: #f2c14e; } }
.note { border-left: 3px solid var(--accent); background: var(--surface); padding: 12px 14px; border-radius: 0 10px 10px 0; color: var(--muted); font-size: .88rem; }

/* ── Sponsor ────────────────────────────── */
.sponsor {
  display: flex; align-items: center; gap: 6px 14px; flex-wrap: wrap;
  border: 1px dashed var(--line); background: var(--surface); border-radius: 12px; padding: 10px 14px; margin-top: 16px; font-size: .88rem;
}
.sponsor-k { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; color: var(--faint); }
.sponsor-name { font-weight: 700; }
.sponsor-line { color: var(--muted); }
.sponsor-open { color: var(--muted); }
.sponsor-open a { margin-left: auto; font-weight: 600; }

/* ── Directory ──────────────────────────── */
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 16px; }
.filters input[type=search] {
  flex: 1 1 220px; font: inherit; padding: 9px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink);
}
.chip { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-size: .85rem; font-weight: 500; cursor: pointer; font-family: inherit; }
.chip[aria-pressed="true"] { background: var(--brand); color: #fff; border-color: var(--brand); }
.biz { display: flex; flex-direction: column; gap: 8px; }
.biz .meta { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; font-size: .8rem; color: var(--muted); }
.biz h3 a { color: var(--ink); }
.biz p { margin: 0; color: var(--muted); font-size: .9rem; }
.biz .tag { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 2px 7px; border-radius: 6px; background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); }
.biz.tier-premium { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.biz .wx { font-size: .82rem; color: var(--ink); background: var(--surface-2); border-radius: 8px; padding: 6px 10px; }
.biz-links { display: flex; gap: 14px; flex-wrap: wrap; font-size: .88rem; font-weight: 600; margin-top: auto; }

/* ── Station ────────────────────────────── */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.stat .k { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; }
.stat .v { font-size: 1.4rem; font-weight: 700; letter-spacing: -.02em; }
.stat .d { font-size: .8rem; color: var(--muted); }
.chart { width: 100%; height: auto; display: block; }
.chart text { fill: var(--muted); font-size: 11px; font-family: inherit; }
.chart .grid line { stroke: var(--line); }
table.data { width: 100%; border-collapse: collapse; font-size: .88rem; }
.data th, .data td { padding: 7px 8px; border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; }
.data th:first-child, .data td:first-child { text-align: left; }
.data th { font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; }
.empty { text-align: center; padding: 40px 20px; color: var(--muted); }
.empty h2 { color: var(--ink); margin-bottom: 8px; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .85em; background: var(--surface-2); border: 1px solid var(--line); padding: 1px 5px; border-radius: 5px; }

/* ── Footer ─────────────────────────────── */
.footer { border-top: 1px solid var(--line); background: var(--surface); padding-bottom: env(safe-area-inset-bottom); }
.footer-row { display: grid; gap: 10px; padding-block: 22px; font-size: .85rem; color: var(--muted); }
.footer-row strong { color: var(--ink); }
.footer-links { display: flex; gap: 16px; }
.prose { max-width: 720px; }
.prose p, .prose li { color: var(--ink); }

/* ── Resource pages ─────────────────────── */
a.card.hub { color: var(--ink); display: flex; flex-direction: column; gap: 6px; transition: border-color .15s; }
a.card.hub:hover { text-decoration: none; border-color: var(--accent); }
.hub p { margin: 0; color: var(--muted); font-size: .9rem; }
.hub .go, .meteor-card .go { margin-top: auto; font-weight: 600; font-size: .85rem; color: var(--accent); }
.meteor-card { display: flex; align-items: center; gap: 16px; color: var(--ink); background: linear-gradient(120deg, #0e2a42, #1b3f5e); color: #e8f1f7; border: 0; }
.meteor-card:hover { text-decoration: none; }
.meteor-card .kicker { color: #9cc7e0; }
.meteor-card h2 { color: #fff; }
.meteor-card p { margin: 4px 0 0; color: #c4d8e6; font-size: .9rem; }
.meteor-card .go { margin-left: auto; color: #7fd3f0; white-space: nowrap; }
@media (max-width: 600px) { .meteor-card { flex-wrap: wrap; } .meteor-card .go { margin-left: 0; } }
.moon { flex: none; vertical-align: middle; }

.bars { display: flex; align-items: flex-end; gap: 2px; height: 90px; }
.bars > i { flex: 1; border-radius: 3px 3px 0 0; min-height: 3px; }
.kp-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 10px; color: var(--muted); }
.kp-legend span { display: inline-flex; align-items: center; gap: 6px; }
.kp-legend i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.kp-legend i.hatch { background: repeating-linear-gradient(45deg, #8fb9a2 0 3px, #d7e7de 3px 5px); }
.kpchart { min-width: 640px; }
.kpbar:hover path { filter: brightness(1.08); }

.meteor .big { font-size: 1.5rem; font-weight: 700; margin: 6px 0; }
.meteor dl { display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; margin: 0 0 8px; font-size: .88rem; }
.meteor dt { color: var(--muted); }
.meteor dd { margin: 0; }
.meteor.due { border-color: var(--accent); box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 25%, transparent); }

.score { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 72px; height: 72px; border-radius: 16px; flex: none; }
.score b { font-size: 1.6rem; line-height: 1; }
.score span { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.score.s3 { background: linear-gradient(135deg, #f7781c, #cf3aa9); color: #fff; }
.score.s2 { background: #fbbd23; color: #3a2a00; }
.score.s1 { background: #f2e9c9; color: #5a4a1a; }
.score.s0, .score.sx { background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); }
.layers { display: grid; gap: 5px; margin: 10px 0; font-size: .8rem; }
.layers div { display: grid; grid-template-columns: 80px 1fr 40px; align-items: center; gap: 8px; }
.layers span { color: var(--muted); }
.layers i { height: 8px; background: var(--surface-2); border-radius: 4px; overflow: hidden; border: 1px solid var(--line); }
.layers b { display: block; height: 100%; background: #8a98a5; }
.layers em { font-style: normal; text-align: right; }

.livemap-card { padding: 0; overflow: hidden; }
#livemap { height: min(62vh, 560px); width: 100%; z-index: 0; }
.live-icon { background: none; border: 0; }
.hourly tr.ferry td { background: color-mix(in srgb, var(--probable) 7%, transparent); }

table.tides td, table.tides th { text-align: right; }
table.tides td:first-child, table.tides th:first-child, table.tides td:nth-child(2), table.tides th:nth-child(2) { text-align: left; }
.tides tr.dayrow td { background: var(--surface-2); font-weight: 700; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); text-align: left; }
.tides tr.past td { opacity: .5; }
.tides td.up { color: var(--probable); font-weight: 600; }
.tides td.down { color: var(--accent); font-weight: 600; }
table.hills td { vertical-align: top; }

.photo-row { display: grid; grid-template-columns: 72px minmax(160px, 1.1fr) minmax(150px, .8fr) minmax(200px, 1fr) minmax(200px, 1.2fr); gap: 18px; align-items: center; }
.photo-row + .photo-row { margin-top: 10px; }
.photo-row h3 { font-size: 1.1rem; }
.photo-row p { margin: 4px 0 0; }
.photo-row .layers { margin: 0; }
.pr-light { display: grid; gap: 6px; font-size: .9rem; }
.pr-light .k { color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 600; display: block; }
.pr-where { margin: 0 !important; }
@media (max-width: 1000px) {
  .photo-row { grid-template-columns: 72px 1fr 1fr; }
  .photo-row .layers, .photo-row .pr-where { grid-column: 2 / -1; }
}
@media (max-width: 600px) {
  .photo-row { grid-template-columns: 64px 1fr; gap: 12px; }
  .photo-row .pr-light, .photo-row .layers, .photo-row .pr-where { grid-column: 1 / -1; }
  .pr-light { grid-template-columns: 1fr 1fr; }
}

.tide-now { display: flex; align-items: flex-end; gap: 18px; flex-wrap: wrap; margin-bottom: 8px; }
.tide-now .now-cond { margin-bottom: 6px; }

.meteor-list { display: grid; gap: 10px; }
.meteor-row { display: grid; grid-template-columns: 64px minmax(220px, 1.6fr) minmax(120px, .7fr) minmax(170px, 1fr) minmax(180px, 1fr); gap: 18px; align-items: center; }
.meteor-row.due { border-color: var(--accent); box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 25%, transparent); }
.mr-date { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 64px; height: 64px; border-radius: 14px; background: linear-gradient(140deg, #0e2a42, #1b3f5e); color: #fff; }
.mr-date b { font-size: 1.5rem; line-height: 1; }
.mr-date span { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: #9cc7e0; font-weight: 700; }
.mr-stat { display: flex; flex-direction: column; gap: 2px; font-size: .9rem; }
.mr-stat .k { color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.mr-moon { flex-direction: row; align-items: center; gap: 10px; }
.mr-moon > div { display: flex; flex-direction: column; gap: 2px; }
@media (max-width: 1000px) {
  .meteor-row { grid-template-columns: 64px 1fr 1fr; }
  .meteor-row .mr-main { grid-column: 2 / -1; }
}
@media (max-width: 600px) {
  .meteor-row { grid-template-columns: 56px 1fr; gap: 12px; }
  .mr-date { width: 56px; height: 56px; }
  .meteor-row .mr-stat { grid-column: 1 / -1; }
}
.meteor-list > .card { margin: 0; }

.frz { margin-top: 3px; color: var(--muted); }
.frz.below { color: var(--accent); font-weight: 600; }
.roadwarn { border-left: 4px solid #2b6cb0; background: color-mix(in srgb, #8fc6e8 18%, var(--surface)); }
.roadwarn h2 { font-size: 1.05rem; display: flex; align-items: center; gap: 8px; }
.roadwarn ul { margin: 8px 0 0; padding-left: 0; list-style: none; display: grid; gap: 6px; }
.roadwarn li { font-size: .92rem; }
.roadwarn li strong { margin-right: 4px; }
.roadwarn .src { margin: 8px 0 0; font-size: .8rem; color: var(--muted); }

.cloudb { margin-top: 2px; color: var(--muted); }
.cloudb.below { color: var(--probable); font-weight: 600; }
.hourly td.incloud { color: var(--probable); font-weight: 600; }
.cloudb.at-times { color: #9a6c00; font-weight: 600; }
@media (prefers-color-scheme: dark) { .cloudb.at-times { color: #f2c14e; } }
