/* Caw Ridge field guide. Paper and ink by day, low light by night. */
@font-face { font-family: "Barlow"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/Barlow-Regular.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 500; font-style: normal; font-display: swap; src: url("fonts/Barlow-Medium.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 600; font-style: normal; font-display: swap; src: url("fonts/Barlow-SemiBold.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 400; font-style: italic; font-display: swap; src: url("fonts/Barlow-Italic.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 500; font-display: swap; src: url("fonts/BarlowCondensed-Medium.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 600; font-display: swap; src: url("fonts/BarlowCondensed-SemiBold.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 700; font-display: swap; src: url("fonts/BarlowCondensed-Bold.woff2") format("woff2"); }
@font-face { font-family: "Barlow Semi Condensed"; font-weight: 400; font-display: swap; src: url("fonts/BarlowSemiCondensed-Regular.woff2") format("woff2"); }
@font-face { font-family: "Barlow Semi Condensed"; font-weight: 500; font-display: swap; src: url("fonts/BarlowSemiCondensed-Medium.woff2") format("woff2"); }
@font-face { font-family: "Barlow Semi Condensed"; font-weight: 600; font-display: swap; src: url("fonts/BarlowSemiCondensed-SemiBold.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 400; font-display: swap; src: url("fonts/IBMPlexMono-Regular.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 500; font-display: swap; src: url("fonts/IBMPlexMono-Medium.woff2") format("woff2"); }

:root {
  color-scheme: light;
  --paper: #f6f3ea;
  --surface: #fffdf7;
  --sunk: #ece8db;
  --ink: #1d1d1b;
  --ink-2: #45413a;
  --muted: #6b665b;
  --line: #d8d2c1;
  --line-soft: #e6e1d2;
  --blaze: #e0591b;
  --blaze-ink: #a8380a;
  --blaze-wash: #fbe6d8;
  --grid-ink: #10324f;
  --good: #0ca30c;
  --warning: #fab219;
  --critical: #d03b3b;
  --series-1: #2a78d6;
  --series-wash: rgba(42, 120, 214, 0.10);
  --series-wash-2: rgba(42, 120, 214, 0.20);
  --chart-grid: #e2ddcd;
  --shadow: 0 1px 2px rgba(40, 30, 10, 0.06), 0 8px 24px rgba(40, 30, 10, 0.06);
  --sans: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  --cond: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  --semi: "Barlow Semi Condensed", "Barlow", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --paper: #131311;
    --surface: #1c1c19;
    --sunk: #0e0e0c;
    --ink: #f2efe6;
    --ink-2: #cfcabc;
    --muted: #9a9587;
    --line: #34332d;
    --line-soft: #2a2924;
    --blaze: #ff7a3d;
    --blaze-ink: #ff9a66;
    --blaze-wash: #35200f;
    --grid-ink: #9cc4e8;
    --series-1: #3987e5;
    --series-wash: rgba(57, 135, 229, 0.14);
    --series-wash-2: rgba(57, 135, 229, 0.26);
    --chart-grid: #2f2e29;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.3);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #131311;
  --surface: #1c1c19;
  --sunk: #0e0e0c;
  --ink: #f2efe6;
  --ink-2: #cfcabc;
  --muted: #9a9587;
  --line: #34332d;
  --line-soft: #2a2924;
  --blaze: #ff7a3d;
  --blaze-ink: #ff9a66;
  --blaze-wash: #35200f;
  --grid-ink: #9cc4e8;
  --series-1: #3987e5;
  --series-wash: rgba(57, 135, 229, 0.14);
  --series-wash-2: rgba(57, 135, 229, 0.26);
  --chart-grid: #2f2e29;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.3);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blaze-ink); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--blaze); outline-offset: 2px; border-radius: 3px; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }

/* Masthead */
.mast { border-bottom: 1px solid var(--line); background: var(--surface); position: sticky; top: 0; z-index: 50; }
.mast .wrap { display: flex; align-items: center; gap: 14px; min-height: 58px; max-width: 1240px; }
.brand { display: flex; align-items: baseline; gap: 12px; text-decoration: none; color: var(--ink); flex: none; }
.brand b { font-family: var(--cond); font-weight: 700; font-size: 25px; letter-spacing: 0.09em; text-transform: uppercase; line-height: 1; }
.brand span { font-family: var(--mono); font-size: 11.5px; color: var(--muted); letter-spacing: 0.01em; }
.mast nav { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; flex: 1; -webkit-overflow-scrolling: touch; }
.mast nav::-webkit-scrollbar { display: none; }
.mast nav a {
  font-family: var(--cond); font-weight: 600; font-size: 15px; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink-2); text-decoration: none; padding: 20px 8px 16px; border-bottom: 3px solid transparent; white-space: nowrap;
}
.mast nav a:hover { color: var(--ink); }
.mast nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--blaze); }
.theme { flex: none; border: 1px solid var(--line); background: var(--paper); color: var(--ink-2); font-family: var(--cond); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; font-size: 13px; padding: 7px 11px; border-radius: 999px; cursor: pointer; }
.theme:hover { border-color: var(--ink-2); }
@media (max-width: 1240px) { .brand span { display: none; } }
@media (max-width: 720px) {
  .mast .wrap { gap: 10px; padding: 0 12px; }
  .mast nav a { padding: 19px 8px 16px; font-size: 14.5px; }
}

/* Type */
h1, h2, h3 { font-family: var(--cond); text-transform: uppercase; letter-spacing: 0.035em; line-height: 1.05; margin: 0; font-weight: 700; text-wrap: balance; }
h1 { font-size: clamp(40px, 7vw, 76px); letter-spacing: 0.02em; }
h2 { font-size: clamp(27px, 3.4vw, 36px); margin-top: 58px; padding-top: 20px; border-top: 2px solid var(--ink); }
h3 { font-size: 21px; font-weight: 600; letter-spacing: 0.06em; margin-top: 34px; }
p { margin: 14px 0; text-wrap: pretty; }
.lede { font-size: 20.5px; line-height: 1.5; color: var(--ink-2); max-width: 46em; }
.kicker { font-family: var(--cond); font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; font-size: 14px; color: var(--blaze-ink); margin: 0 0 10px; }
.mono, code { font-family: var(--mono); font-size: 0.88em; letter-spacing: -0.01em; }
small, .small { font-size: 14.5px; color: var(--muted); }
ul, ol { padding-left: 1.25em; }
li { margin: 7px 0; }
li::marker { color: var(--blaze-ink); }
hr { border: 0; border-top: 1px solid var(--line); margin: 36px 0; }

.pagehead { padding: 54px 0 8px; }
.pagehead .lede { margin-top: 16px; }

/* Hero */
.hero { position: relative; border-bottom: 1px solid var(--line); background: #2a3324; overflow: hidden; }
.hero img { width: 100%; height: clamp(360px, 62vh, 640px); object-fit: cover; object-position: 50% 46%; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,12,8,0) 30%, rgba(10,12,8,0.78) 100%); }
.hero .over { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; color: #fbf8ef; padding-bottom: 30px; }
.hero h1 { font-size: clamp(54px, 11vw, 132px); letter-spacing: 0.015em; text-shadow: 0 2px 22px rgba(0,0,0,0.45); }
.hero .kicker { color: #ffb38a; }
.hero .coords { font-family: var(--mono); font-size: clamp(13px, 1.7vw, 16px); display: flex; flex-wrap: wrap; gap: 4px 22px; margin-top: 12px; opacity: 0.95; }

/* Fact grid */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 0; border: 1px solid var(--line); background: var(--surface); border-radius: 6px; overflow: hidden; margin: 26px 0; }
.fact { padding: 17px 18px 15px; border-right: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); margin: 0 -1px -1px 0; }
.fact dt { font-family: var(--cond); font-weight: 600; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.fact dd { margin: 5px 0 0; font-family: var(--semi); font-weight: 600; font-size: 24px; line-height: 1.15; }
.fact dd small { display: block; font-family: var(--sans); font-weight: 400; font-size: 14px; color: var(--muted); margin-top: 4px; line-height: 1.35; }
.fact dd.mono { font-family: var(--mono); font-weight: 500; font-size: 16.5px; line-height: 1.4; }

/* Notices */
.notice { border: 1px solid var(--line); border-left: 5px solid var(--blaze); background: var(--surface); padding: 15px 19px; border-radius: 4px; margin: 20px 0; }
.notice > :first-child { margin-top: 0; } .notice > :last-child { margin-bottom: 0; }
.notice h3 { margin: 0 0 4px; font-size: 18px; }
.notice.stop { border-left-color: var(--critical); }
.notice.law { border-left-color: var(--grid-ink); }
.notice.ok { border-left-color: var(--good); }
.tag { display: inline-block; font-family: var(--cond); font-weight: 600; font-size: 12.5px; letter-spacing: 0.1em; text-transform: uppercase; padding: 2px 8px 1px; border-radius: 3px; border: 1px solid var(--line); color: var(--ink-2); background: var(--paper); vertical-align: 1px; white-space: nowrap; }
.tag.open { border-color: var(--good); }
.tag.draw { border-color: var(--warning); }
.tag.closed { border-color: var(--critical); }

.stoplist { list-style: none; padding: 0; margin: 22px 0; display: grid; gap: 10px; counter-reset: n; }
.stoplist li { counter-increment: n; display: grid; grid-template-columns: 44px 1fr; gap: 0 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 14px 18px 14px 14px; margin: 0; }
.stoplist li::before { content: counter(n); font-family: var(--cond); font-weight: 700; font-size: 30px; line-height: 1; color: var(--blaze-ink); text-align: center; padding-top: 3px; }
.stoplist b { font-family: var(--semi); font-weight: 600; font-size: 18.5px; display: block; line-height: 1.3; }
.stoplist span { color: var(--ink-2); font-size: 16px; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; margin: 24px 0; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; display: flex; flex-direction: column; text-decoration: none; color: inherit; transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease; }
a.card:hover, .card:has(a.cover:hover) { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--ink-2); }
.card img { aspect-ratio: 4 / 3; width: 100%; object-fit: cover; object-position: 50% 30%; background: var(--sunk); border-bottom: 1px solid var(--line); }
.card .body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card h3 { margin: 0; font-size: 20px; }
.card p { margin: 0; font-size: 15.5px; color: var(--ink-2); line-height: 1.45; }
.card .links { margin-top: auto; padding-top: 10px; display: flex; flex-wrap: wrap; gap: 6px 14px; font-family: var(--cond); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; font-size: 14px; }
.card.plain .body { padding: 18px; }
.card .num { font-family: var(--cond); font-weight: 700; color: var(--blaze-ink); font-size: 15px; letter-spacing: 0.14em; }

/* Tables */
.scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 18px 0; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-size: 15.5px; }
th, td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
th { font-family: var(--cond); font-weight: 600; font-size: 13.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); background: var(--paper); white-space: nowrap; border-bottom: 1px solid var(--line); }
tr:last-child td { border-bottom: 0; }
td.n, th.n { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
td.mono { font-size: 13.5px; white-space: nowrap; }
tbody tr:hover td { background: color-mix(in srgb, var(--blaze-wash) 45%, transparent); }
tr.today td { background: var(--blaze-wash); font-weight: 500; }
tr.weekend td:first-child { box-shadow: inset 3px 0 0 var(--line); }

/* Figures and charts */
figure { margin: 26px 0; }
figure.map > a { display: block; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: var(--sunk); }
figcaption { font-size: 14.5px; color: var(--muted); margin-top: 9px; max-width: 60em; }
.viz { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 18px 18px 8px; margin: 22px 0; position: relative; }
.viz h3 { margin: 0 0 2px; font-size: 19px; }
.viz .sub { margin: 0 0 8px; font-size: 14.5px; color: var(--muted); }
.chart { width: 100%; height: auto; display: block; overflow: visible; font-family: var(--semi); }
.chart .grid { stroke: var(--chart-grid); stroke-width: 1; }
.chart .zero { stroke: var(--muted); stroke-width: 1; }
.chart .base { stroke: var(--muted); stroke-width: 1; }
.chart .rule { stroke: var(--muted); stroke-width: 1; }
.chart .tick { fill: var(--muted); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.chart .axis, .chart .note { fill: var(--muted); font-size: 12.5px; }
.chart .cat { fill: var(--ink-2); font-size: 14px; }
.chart .value { fill: var(--ink); font-size: 13.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
.chart .line { fill: none; stroke: var(--series-1); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart .wash { fill: var(--series-wash); stroke: none; }
.chart .wash.strong { fill: var(--series-wash-2); }
.chart .bar { fill: var(--series-1); }
.chart .hit { fill: transparent; stroke: none; }
.chart .mark { outline: none; cursor: default; }
.chart .mark:hover .bar, .chart .mark:focus-visible .bar { filter: brightness(1.18); }
.chart .mark:focus-visible .hit { stroke: var(--blaze); stroke-width: 2; }
.chart .hover .cross { stroke: var(--ink-2); stroke-width: 1; opacity: 0; }
.chart .hover .dot { fill: var(--series-1); stroke: var(--surface); stroke-width: 2; opacity: 0; }
.chart .hover.on .cross, .chart .hover.on .dot { opacity: 1; }
.tip { position: fixed; z-index: 100; pointer-events: none; background: var(--ink); color: var(--paper); border-radius: 5px; padding: 8px 11px; font-family: var(--semi); font-size: 14px; line-height: 1.35; box-shadow: var(--shadow); max-width: 260px; opacity: 0; transition: opacity 0.08s; }
.tip.on { opacity: 1; }
.tip b { display: block; font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums; }
.tip span { display: block; opacity: 0.78; }
details.data { margin: 4px 0 10px; }
details.data summary { cursor: pointer; font-family: var(--cond); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; font-size: 13.5px; color: var(--muted); padding: 6px 0; }
details.data .scroll { margin: 8px 0 8px; max-height: 340px; overflow-y: auto; }

/* Two columns */
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 22px 34px; }
.cols > * { min-width: 0; }

/* Forecast strip */
.fc { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(104px, 1fr); gap: 0; overflow-x: auto; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); margin: 18px 0 6px; }
.fc > div { padding: 12px 12px 12px; border-right: 1px solid var(--line-soft); font-size: 14px; line-height: 1.35; }
.fc > div:last-child { border-right: 0; }
.fc .d { font-family: var(--cond); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; font-size: 13.5px; color: var(--muted); }
.fc .t { font-family: var(--semi); font-weight: 600; font-size: 21px; margin: 3px 0 1px; font-variant-numeric: tabular-nums; }
.fc .t i { font-style: normal; color: var(--muted); font-weight: 400; font-size: 16px; }
.fc .w { color: var(--ink-2); }
.fc .s { color: var(--ink); font-weight: 500; }
.stamp { font-size: 13.5px; color: var(--muted); }

/* Checklist */
.check { list-style: none; padding: 0; margin: 14px 0; columns: 2 300px; column-gap: 34px; }
.check li { break-inside: avoid; margin: 0; padding: 6px 0; border-bottom: 1px solid var(--line-soft); }
.check label { display: grid; grid-template-columns: 24px 1fr; gap: 10px; cursor: pointer; align-items: start; }
.check input { width: 20px; height: 20px; margin: 3px 0 0; accent-color: var(--blaze); }
.check input:checked + span { color: var(--muted); text-decoration: line-through; }
.btn { display: inline-block; font-family: var(--cond); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; font-size: 15px; padding: 10px 16px 9px; border-radius: 5px; border: 1px solid var(--ink); background: var(--ink); color: var(--paper); text-decoration: none; cursor: pointer; }
.btn.ghost { background: transparent; color: var(--ink); }
.btn:hover { filter: brightness(1.15); }
.btnrow { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0; }

/* Contacts */
.phones { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 12px; margin: 20px 0; }
.phone { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 14px 16px; }
.phone .who { font-family: var(--cond); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; font-size: 13.5px; color: var(--muted); }
.phone a.num { font-family: var(--semi); font-weight: 600; font-size: 24px; color: var(--ink); text-decoration: none; display: block; line-height: 1.2; margin: 2px 0; }
.phone p { margin: 0; font-size: 14.5px; color: var(--ink-2); line-height: 1.4; }

footer { margin-top: 80px; border-top: 1px solid var(--line); background: var(--surface); padding: 30px 0 46px; font-size: 14.5px; color: var(--muted); }
footer p { margin: 8px 0; max-width: 70em; }
footer a { color: var(--ink-2); }

/* Map viewer and explorer fill the screen under the masthead */
.stage { position: fixed; inset: 59px 0 0 0; background: #22261f; overflow: hidden; touch-action: none; cursor: grab; }
.stage.drag { cursor: grabbing; }
.stage img { position: absolute; left: 0; top: 0; transform-origin: 0 0; max-width: none; user-select: none; -webkit-user-drag: none; will-change: transform; }
.hud { position: fixed; z-index: 20; left: 12px; bottom: 14px; right: 12px; display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; pointer-events: none; }
.hud > * { pointer-events: auto; }
.hud .panel { background: color-mix(in srgb, var(--surface) 94%, transparent); border: 1px solid var(--line); border-radius: 6px; padding: 9px 12px; box-shadow: var(--shadow); font-size: 14.5px; max-width: 520px; backdrop-filter: blur(6px); }
.hud .panel b { font-family: var(--cond); text-transform: uppercase; letter-spacing: 0.06em; font-size: 17px; display: block; }
.hud .tools { display: flex; gap: 6px; margin-left: auto; }
.hud button, .hud a.tool { font-family: var(--cond); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; font-size: 14px; min-width: 44px; height: 44px; padding: 0 12px; border-radius: 6px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; box-shadow: var(--shadow); }
#map { position: fixed; inset: 59px 0 0 0; background: #22261f; }
.leaflet-container { font-family: var(--sans); font-size: 14px; background: #22261f; }
.leaflet-control-layers, .leaflet-bar a, .leaflet-popup-content-wrapper, .leaflet-popup-tip { background: var(--surface); color: var(--ink); }
.leaflet-control-layers { border-radius: 6px; max-height: calc(100vh - 150px); overflow-y: auto; }
.leaflet-control-layers-expanded { padding: 10px 12px; }
.leaflet-control-layers label { margin: 3px 0; }
.leaflet-control-layers-separator { border-top-color: var(--line); }
.leaflet-popup-content { margin: 12px 14px; line-height: 1.4; }
.leaflet-popup-content b { font-family: var(--cond); text-transform: uppercase; letter-spacing: 0.06em; font-size: 17px; }
.leaflet-popup-content .mono { display: block; margin-top: 4px; font-size: 12.5px; color: var(--ink-2); }
.readout { position: fixed; z-index: 900; left: 10px; bottom: 22px; background: color-mix(in srgb, var(--surface) 94%, transparent); border: 1px solid var(--line); border-radius: 6px; padding: 8px 11px; font-family: var(--mono); font-size: 12.5px; line-height: 1.45; box-shadow: var(--shadow); max-width: calc(100vw - 20px); }
.readout b { font-family: var(--cond); font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); font-weight: 600; display: block; }
.pin { width: 22px; height: 22px; border-radius: 50%; border: 3px solid #fff; background: #d7261e; box-shadow: 0 1px 5px rgba(0,0,0,0.5); }
.pin.g { border-radius: 3px; transform: rotate(45deg); background: #ffd21f; border-color: #1d1d1b; border-width: 2px; width: 16px; height: 16px; }
.pin.s { background: #1d1d1b; width: 14px; height: 14px; border-width: 2px; }
.pin.c { background: #1f6a30; width: 14px; height: 14px; border-width: 2px; }
.pin.me { background: #2a78d6; }
.pin.r { background: #ffffff; border-color: #a5150f; width: 18px; height: 18px; margin: 2px; }
.pin.t { width: 0; height: 0; border-radius: 0; background: none; border: 8px solid transparent; border-bottom: 14px solid #1d1d1b; border-top: 0; box-shadow: none; filter: drop-shadow(0 0 1.5px #fff) drop-shadow(0 0 1.5px #fff); margin: 3px; }
.pin.p { width: 18px; height: 18px; border-radius: 50%; background: #fbf8ef; border: 2px solid #1d1d1b; position: relative; margin: 2px; }
.pin.p::after { content: ""; position: absolute; left: 3px; right: 3px; top: 6px; height: 2px; background: #1d1d1b; }

@media print {
  .mast, footer, .theme, .btnrow, .hud { display: none !important; }
  body { background: #fff; font-size: 11.5pt; }
  h2 { break-after: avoid; margin-top: 24pt; }
  .card, .notice, .viz, .scroll, figure { break-inside: avoid; }
  a { color: inherit; text-decoration: none; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* The 3D view */
#view3d { position: fixed; inset: 59px 0 0 0; background: #10130f; }
#view3d canvas { display: block; width: 100%; height: 100%; touch-action: none; cursor: grab; outline: none; }
#view3d canvas:active { cursor: grabbing; }
.nogl { position: absolute; inset: 0; display: grid; place-items: center; padding: 30px; text-align: center; color: #f2efe6; max-width: 40em; margin: auto; }
.p3, .card3 { background: color-mix(in srgb, var(--surface) 93%, transparent); border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); font-size: 14.5px; line-height: 1.4; }
.p3 { position: fixed; z-index: 30; left: 12px; top: 71px; width: 304px; max-height: calc(100vh - 86px); overflow-y: auto; padding: 12px 14px 10px; }
.p3.away { display: none; }
.p3 .head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.p3 h2 { border: 0; margin: 0; padding: 0; font-size: 20px; }
.p3.folded > :not(.head) { display: none; }
.p3 p { margin: 8px 0; }
.p3 .row { display: grid; grid-template-columns: 62px 1fr auto; gap: 8px; align-items: center; margin: 9px 0; }
.p3 .row > span, .p3 legend { font-family: var(--cond); font-weight: 600; font-size: 12.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.p3 select, .p3 input[type=date] { font: inherit; font-size: 15px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 5px; background: var(--paper); color: var(--ink); width: 100%; min-height: 36px; grid-column: 2 / -1; }
.p3 input[type=range] { width: 100%; accent-color: var(--blaze); min-height: 28px; }
.p3 output { font-size: 13px; color: var(--ink-2); min-width: 78px; text-align: right; font-variant-numeric: tabular-nums; }
.p3 fieldset { border: 0; border-top: 1px solid var(--line-soft); margin: 10px 0 0; padding: 8px 0 0; }
.p3 fieldset label { display: flex; gap: 8px; align-items: center; padding: 3px 0; cursor: pointer; }
.p3 fieldset input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--blaze); }
.p3 button, .card3 button, #standbar button { font-family: var(--cond); font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase; font-size: 13.5px; min-height: 36px; padding: 0 11px; border-radius: 5px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); cursor: pointer; }
.p3 button:hover, .card3 button:hover { border-color: var(--ink-2); }
.p3 button[aria-pressed=true] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 10px 0 4px; }
.btns { display: flex; flex-wrap: wrap; gap: 5px; grid-column: 2 / -1; }
.btns button { padding: 0 9px; }
.side { position: fixed; z-index: 31; right: 12px; top: 71px; width: 330px; max-height: calc(100vh - 86px); overflow-y: auto; display: flex; flex-direction: column; gap: 10px; pointer-events: none; }
.side > * { pointer-events: auto; }
.card3 { padding: 12px 14px; position: relative; }
.card3 h3 { margin: 0 56px 8px 0; font-size: 19px; }
.card3 .x { position: absolute; right: 8px; top: 8px; min-height: 30px; font-size: 12px; }
.card3 dl { display: grid; grid-template-columns: auto 1fr; gap: 5px 12px; margin: 0; }
.card3 dt { font-family: var(--cond); font-weight: 600; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); padding-top: 3px; max-width: 108px; }
.card3 dd { margin: 0; font-family: var(--semi); font-weight: 600; font-size: 16px; }
.card3 dd small { display: block; font-family: var(--sans); font-weight: 400; font-size: 13px; color: var(--muted); line-height: 1.3; }
.card3 p { margin: 6px 0; }
.acts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.mini { width: 100%; height: auto; display: block; margin: 10px 0 0; font-family: var(--semi); }
.mini .wash { fill: var(--series-wash); }
.mini .line { fill: none; stroke: var(--series-1); stroke-width: 2; stroke-linejoin: round; }
.mini .base { stroke: var(--muted); stroke-width: 1; }
.mini .sight { stroke: var(--critical); stroke-width: 1.5; }
.mini .sight.clear { stroke: var(--good); }
.mini .tick { fill: var(--muted); font-size: 11px; }
#standbar { position: fixed; z-index: 32; left: 50%; transform: translateX(-50%); bottom: 16px; display: flex; gap: 14px; align-items: center; background: rgba(20, 20, 18, 0.88); color: #fbf8ef; border-radius: 8px; padding: 10px 12px 10px 16px; max-width: calc(100vw - 24px); font-size: 14.5px; line-height: 1.35; }
#standbar[hidden], .card3[hidden] { display: none; }
#standbar b { display: block; font-family: var(--cond); letter-spacing: 0.06em; text-transform: uppercase; font-size: 16px; }
#standbar span { display: block; }
#standbar .small { color: #c9c4b6; font-size: 13px; }
#standbar button { background: var(--blaze); border-color: var(--blaze); color: #1d1d1b; white-space: nowrap; }
.compass { position: fixed; z-index: 29; right: 14px; bottom: 18px; width: 58px; height: 58px; border-radius: 50%; background: rgba(20, 20, 18, 0.78); border: 1px solid rgba(255, 255, 255, 0.25); pointer-events: none; }
.compass div { position: absolute; inset: 0; }
.compass div::before { content: ""; position: absolute; left: 50%; top: 9px; margin-left: -6px; border: 6px solid transparent; border-bottom: 17px solid var(--blaze); border-top: 0; }
.compass div::after { content: ""; position: absolute; left: 50%; bottom: 9px; margin-left: -6px; border: 6px solid transparent; border-top: 17px solid #d9d5cb; border-bottom: 0; }
.compass span { position: absolute; left: 0; right: 0; top: -19px; text-align: center; font-family: var(--cond); font-weight: 700; font-size: 13px; color: #fbf8ef; text-shadow: 0 1px 3px #000; }
/* The explorer's panel sits at the bottom left */
.side.low { top: auto; bottom: 22px; right: auto; left: 10px; width: 340px; max-height: calc(100vh - 270px); z-index: 900; }
@media (max-width: 800px) {
  .p3 { left: 8px; right: 8px; width: auto; top: 66px; max-height: 50vh; }
  .side, .side.low { left: 8px; right: 8px; width: auto; top: auto; bottom: 8px; max-height: 46vh; }
  .side .card3 dl { grid-template-columns: 96px 1fr; }
  .compass { bottom: auto; top: 70px; right: 10px; width: 46px; height: 46px; }
  .compass div::before { top: 6px; border-bottom-width: 13px; }
  .compass div::after { bottom: 6px; border-top-width: 13px; }
  .compass span { display: none; }
  .p3:not(.folded) ~ .compass { display: none; }
  #standbar { bottom: 8px; flex-wrap: wrap; }
}
