/* India '26 — shared stylesheet */
:root {
  --bg: #F4F1E8; --surface: #FCFAF3; --ink: #292417; --muted: #6E6650;
  --line: #DED5C0; --accent: #2F4C86; --accent-ink: #FCFAF3; --accent-soft: #E5E7E4;
  --gold: #A0770F; --gold-soft: #F0E4C3; --rose: #A9603F;
  --shadow: 0 1px 3px rgba(41,36,23,.07);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #14161F; --surface: #1D202C; --ink: #EAE4D4; --muted: #9C9583;
    --line: #313548; --accent: #92ABDE; --accent-ink: #14161F; --accent-soft: #272E41;
    --gold: #D6A63C; --gold-soft: #332F1E; --rose: #C57E58;
    --shadow: 0 1px 3px rgba(0,0,0,.35);
  }
}
:root[data-theme="dark"] {
  --bg: #14161F; --surface: #1D202C; --ink: #EAE4D4; --muted: #9C9583;
  --line: #313548; --accent: #92ABDE; --accent-ink: #14161F; --accent-soft: #272E41;
  --gold: #D6A63C; --gold-soft: #332F1E; --rose: #C57E58;
  --shadow: 0 1px 3px rgba(0,0,0,.35);
}

* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { background: var(--bg); color: var(--ink); font-family: "Albert Sans", system-ui, sans-serif; font-size: 16.5px; line-height: 1.55; }
a { color: var(--accent); }
.wrap { max-width: 780px; margin: 0 auto; padding: 0 18px 40px; }
.mut { color: var(--muted); }

/* top nav */
.topnav { position: sticky; top: 0; z-index: 1100; display: flex; justify-content: space-between; align-items: center;
  padding: 10px 18px; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line); }
.brand { font-family: "Instrument Serif", Georgia, serif; font-size: 21px; color: var(--ink); text-decoration: none; }
.navlinks { display: flex; gap: 4px; }
.navlinks a { text-decoration: none; font-weight: 500; font-size: 15px; color: var(--muted); padding: 8px 12px; border-radius: 8px; }
.navlinks a.on, .navlinks a:hover { color: var(--accent); background: var(--accent-soft); }
/* Phone: the brand must never wrap under the links — shrink both until one line fits. */
@media (max-width: 480px) {
  .topnav { padding: 8px 12px; gap: 8px; }
  .brand { font-size: 18px; white-space: nowrap; }
  .navlinks { gap: 0; }
  .navlinks a { font-size: 14px; padding: 7px 8px; }
}

/* hero + headers */
.hero { padding: 40px 0 8px; }
.eyebrow { font-family: "Spline Sans Mono", monospace; font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
h1 { font-family: "Instrument Serif", Georgia, serif; font-weight: 400; font-size: clamp(36px, 7vw, 56px); line-height: 1.04; text-wrap: balance; margin: 8px 0 12px; }
h1 em { color: var(--accent); }
.lede { font-size: 18px; color: var(--muted); max-width: 58ch; }
.lede-sm { color: var(--muted); max-width: 60ch; margin-top: 12px; }
.notice { margin-top: 16px; padding: 10px 14px; border: 1px dashed color-mix(in srgb, var(--gold) 60%, var(--line));
  background: var(--gold-soft); color: var(--ink); border-radius: 10px; font-size: 14.5px; }

/* signpost — entry cards on the overview */
.signpost { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 26px; }
/* Three cards would leave a hole in the 2×2; the last one takes the whole row. */
.signpost.sp-odd > :last-child { grid-column: 1 / -1; }
/* Phone: keep the 2×3 grid but drop the blurbs, so the map and the day list
   arrive right after the hero instead of three screens down. */
@media (max-width: 620px) {
  .signpost { gap: 8px; }
  .sp { padding: 12px 14px; gap: 2px; }
  .sp strong { font-size: 18px; }
  .sp-d { display: none; }
  .sp-cta { padding-top: 4px; font-size: 13px; }
}
.sp { display: flex; flex-direction: column; gap: 3px; text-decoration: none; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 15px 18px; box-shadow: var(--shadow); }
a.sp:hover { border-color: var(--accent); }
.sp strong { font-family: "Instrument Serif", Georgia, serif; font-weight: 400; font-size: 22px; }
.sp-d { color: var(--muted); font-size: 14px; }
.sp-cta { margin-top: auto; padding-top: 10px; display: flex; flex-wrap: wrap; gap: 4px 16px;
  font-weight: 600; font-size: 14px; color: var(--accent); }
.sp-cta a { text-decoration: none; }
.sp-cta a:hover { text-decoration: underline; }
.sp-alt { color: var(--muted); font-weight: 500; }
.bk-size { font-family: "Spline Sans Mono", monospace; font-size: 11.5px; font-weight: 400; color: var(--muted); }

/* maps */
.bigmap { height: 480px; margin-top: 24px; border-radius: 12px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.daymap { height: 300px; margin-top: 20px; border-radius: 12px; border: 1px solid var(--line); box-shadow: var(--shadow); }
@media (max-width: 600px) { .bigmap { height: 380px; } .daymap { height: 240px; } }
.maplegend { margin-top: 8px; font-size: 13px; color: var(--muted); }
.maplegend + .maplegend { margin-top: 3px; }
.lg { display: inline-block; width: 22px; height: 0; border-top: 3px solid var(--accent); vertical-align: middle; }
.lg-flight { border-top-style: dashed; border-top-width: 2px; }
.lg-open { border-top: 3px dotted var(--gold); }
.lgm { display: inline-block; width: 11px; height: 11px; border-radius: 50%; vertical-align: -1px;
  background: var(--accent); border: 2px solid var(--surface); box-shadow: 0 0 0 1.5px var(--accent); }
.lgm-sight { width: 9px; height: 9px; background: var(--rose); box-shadow: 0 0 0 1.5px var(--rose); }
.lgm-food { width: 9px; height: 9px; background: var(--gold); box-shadow: 0 0 0 1.5px var(--gold); }

/* map markers: overnight stop (accent) vs sight (rose) vs food pick (gold) */
.mk { border-radius: 50%; background: var(--accent); border: 3px solid var(--surface); box-shadow: 0 0 0 1.5px var(--accent); }
.mk.mk-sight { background: var(--rose); border-width: 2px; box-shadow: 0 0 0 1.5px var(--rose); }
.mk.mk-food { background: var(--gold); box-shadow: 0 0 0 1.5px var(--gold); }
.mklabel { white-space: nowrap; padding: 1px 6px 2px; border-radius: 7px;
  background: var(--surface); background: color-mix(in srgb, var(--surface) 92%, transparent);
  border: 1px solid var(--line); box-shadow: 0 1px 3px rgba(0,0,0,.14);
  font-family: "Albert Sans", sans-serif; font-weight: 600; font-size: 12.5px; line-height: 1.25; color: var(--ink); }
.mklabel::before { display: none; }
.mklabel-sight { font-weight: 500; font-size: 11.5px; color: var(--rose); }
@media (max-width: 600px) { .mklabel { font-size: 11.5px; } .mklabel-sight { font-size: 11px; } }

/* map popups — Leaflet's defaults are white, so theme them */
.leaflet-container { font-family: "Albert Sans", sans-serif; background: var(--surface); }
.leaflet-popup-content-wrapper, .leaflet-popup-tip { background: var(--surface); color: var(--ink); box-shadow: 0 2px 12px rgba(0,0,0,.22); }
.leaflet-popup-content-wrapper { border: 1px solid var(--line); border-radius: 10px; }
.leaflet-popup-content { font-size: 14px; line-height: 1.4; margin: 11px 14px; }
.leaflet-popup-content strong { display: block; font-size: 15px; }
.pop-sub { display: block; margin-top: 2px; font-size: 13px; color: var(--muted); }
.pop-note { display: block; margin-top: 5px; font-size: 13px; color: var(--rose); }
.pop-link { display: block; margin-top: 7px; font-weight: 600; font-size: 13.5px; text-decoration: none; }
.leaflet-container a.leaflet-popup-close-button { color: var(--muted); }
.leaflet-container .leaflet-control-attribution { background: color-mix(in srgb, var(--surface) 82%, transparent); color: var(--muted); }
.leaflet-container .leaflet-control-attribution a { color: var(--accent); }

/* sections */
.section { margin-top: 52px; }
.section h2, .moredives h2 { font-family: "Instrument Serif", Georgia, serif; font-weight: 400; font-size: 28px; margin-bottom: 6px; }
.sectionsub { color: var(--muted); margin-bottom: 18px; font-size: 15px; }

/* day index */
.dgroup { margin-top: 26px; }
.dgroup-t { font-family: "Spline Sans Mono", monospace; font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); padding-bottom: 8px; }
.drow { display: grid; grid-template-columns: 76px 1fr auto; gap: 14px; align-items: center; text-decoration: none; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 13px 16px; margin-bottom: 8px; box-shadow: var(--shadow); }
.drow:hover { border-color: var(--accent); }
.drow-date { display: flex; flex-direction: column; line-height: 1.25; }
.drow-date strong { font-size: 16px; white-space: nowrap; }
.drow-date span { font-size: 12.5px; color: var(--muted); }
.drow-title { display: block; font-weight: 600; }
.drow-sub { display: block; font-size: 13.5px; color: var(--muted); }
.drow-side { display: flex; align-items: center; gap: 10px; }
.chev { color: var(--muted); font-size: 20px; }
/* Phone: the badge column would crush the title to a word per line, so the row
   restacks — date and badge share the top line, the title runs full width. */
@media (max-width: 560px) {
  .drow { grid-template-columns: 1fr auto; grid-template-areas: "date side" "main main"; gap: 3px 10px; }
  .drow-date { grid-area: date; flex-direction: row; align-items: baseline; gap: 6px; }
  .drow-main { grid-area: main; }
  .drow-side { grid-area: side; }
  .chev { display: none; }
}

/* badges */
.badge { font-family: "Spline Sans Mono", monospace; font-size: 10.5px; letter-spacing: .07em; text-transform: uppercase;
  padding: 3px 9px; border-radius: 99px; white-space: nowrap; }
.c-booked, .s-booked { background: var(--accent); color: var(--accent-ink); }
.c-planned { background: var(--accent-soft); color: var(--accent); }
.c-idea { border: 1px dashed var(--line); color: var(--muted); background: transparent; }
.s-part { background: var(--accent-soft); color: var(--accent); }
.s-open, .s-diwali { background: var(--gold-soft); color: var(--gold); }

/* dive cards on overview */
.divegrid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 620px) { .divegrid { grid-template-columns: 1fr; } }
.divecard { display: flex; flex-direction: column; gap: 3px; text-decoration: none; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; box-shadow: var(--shadow); }
.divecard:hover { border-color: var(--accent); }
.divecard strong { font-family: "Instrument Serif", Georgia, serif; font-weight: 400; font-size: 22px; }
.dc-day { font-family: "Spline Sans Mono", monospace; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.dc-sub { color: var(--muted); font-size: 14px; }
.dc-cta { margin-top: 8px; font-weight: 600; font-size: 14px; color: var(--accent); }

/* dev-only:start */
/* Reference index — twenty items in one list, so a row rather than a card:
   kicker column, title (the only link), one-line blurb, plain meta line.
   Stacks to a single column on a phone; nothing here can widen the page. */
.rjump { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 20px; }
.rjump a { display: inline-flex; align-items: baseline; gap: 7px; text-decoration: none;
  font-size: 13.5px; font-weight: 500; color: var(--accent);
  border: 1px solid var(--line); background: var(--surface); border-radius: 99px; padding: 6px 13px; }
.rjump a:hover, .rjump a:focus-visible { border-color: var(--accent); }
.rjump a span { font-family: "Spline Sans Mono", monospace; font-size: 11.5px; color: var(--muted); }
.rlist { list-style: none; margin: 0; padding: 0; }
.rrow { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 2px 14px;
  align-items: baseline; padding: 13px 0; border-top: 1px solid var(--line); }
.rrow:first-child { border-top: none; }
.rr-k { font-family: "Spline Sans Mono", monospace; font-size: 11px; letter-spacing: .09em;
  text-transform: uppercase; color: var(--muted); }
.rr-t { grid-column: 2; font-weight: 600; font-size: 17px; text-decoration: none; }
.rr-t:hover { text-decoration: underline; }
.rr-b { grid-column: 2; color: var(--muted); font-size: 14.5px; max-width: 62ch; }
.rr-m { grid-column: 2; margin-top: 4px; font-family: "Spline Sans Mono", monospace;
  font-size: 11.5px; color: var(--muted); }
@media (max-width: 560px) {
  .rrow { grid-template-columns: minmax(0, 1fr); gap: 1px; }
  .rr-k, .rr-t, .rr-b, .rr-m { grid-column: 1; }
  .rr-t { margin-top: 1px; }
}
/* dev-only:end */

/* day page */
.crumb { padding-top: 22px; font-size: 14px; }
.crumb a { text-decoration: none; font-weight: 500; }
.dayhead { padding: 14px 0 4px; }
.wakesleep { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 10px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; font-size: 15px; box-shadow: var(--shadow); }
.wakesleep strong { font-weight: 600; }
.ws-arrow { color: var(--muted); }

/* timeline */
.timeline { margin-top: 28px; position: relative; }
.ev { display: grid; grid-template-columns: 88px 20px 1fr; gap: 0 10px; position: relative; padding-bottom: 26px; }
.ev::before { content: ""; position: absolute; left: 106px; top: 18px; bottom: -2px; width: 2px; background: var(--line); }
.ev:last-child::before { display: none; }
.ev-time { font-family: "Spline Sans Mono", monospace; font-size: 13.5px; color: var(--accent); text-align: right; padding-top: 2px; white-space: nowrap; }
.ev-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--accent); margin: 5px auto 0; position: relative; z-index: 1;
  box-shadow: 0 0 0 3px var(--bg); }
.ev-dot.k-flight { background: var(--ink); }
.ev-dot.k-drive { background: var(--rose); }
.ev-dot.k-hotel { background: var(--gold); }
.ev-dot.k-note { background: var(--line); }
.ev-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ev-head strong { font-size: 17px; }
.ev-body p { color: var(--muted); font-size: 15px; max-width: 58ch; margin-top: 3px; }
.ev-idea .ev-time { color: var(--muted); }
.ev-idea .ev-head strong { font-weight: 500; }
.storylink { display: inline-block; margin-top: 8px; font-weight: 600; font-size: 14.5px; text-decoration: none;
  background: var(--accent-soft); color: var(--accent); padding: 7px 12px; border-radius: 9px; }
.storylink:hover { background: var(--accent); color: var(--accent-ink); }
@media (max-width: 560px) {
  .ev { grid-template-columns: 66px 18px 1fr; }
  .ev::before { left: 82px; }
  .ev-time { font-size: 12px; }
}

/* "on this day" highlights — a plain list, deliberately quieter than the timeline */
.hl { list-style: none; padding: 0; margin: 0; }
.hl li { padding: 14px 0; border-top: 1px solid var(--line); }
.hl li:first-child { border-top: none; padding-top: 4px; }
.hl p { font-size: 15px; color: var(--muted); max-width: 62ch; }
.hl strong { color: var(--ink); font-weight: 600; }
.hl-note { margin-top: 5px; font-size: 14px; color: var(--gold); max-width: 58ch; }
.hl-dive { display: inline-block; margin-top: 7px; font-size: 14px; font-weight: 500; text-decoration: none; }
.hl-dive:hover { text-decoration: underline; }

/* food picks (day blocks and /food/) — rides on the .hl list skeleton */
.fd-group h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .09em;
  color: var(--muted); margin: 20px 0 2px; }
.fd-group:first-of-type h3 { margin-top: 6px; }
.fd strong a { text-decoration: none; }
.fd strong a:hover { text-decoration: underline; }
.fd-price { font-family: 'Spline Sans Mono', monospace; font-size: 12.5px; color: var(--gold);
  letter-spacing: .04em; cursor: help; }
.fd-src { font-size: 13px; font-style: italic; color: color-mix(in srgb, var(--muted) 80%, transparent); }
.fd-slot { display: inline-block; font-size: 11px; text-transform: uppercase; letter-spacing: .08em;
  color: var(--muted); border: 1px solid var(--line); border-radius: 6px; padding: 1px 7px 2px;
  margin-right: 4px; vertical-align: 1px; }
.fd-note { font-size: 14.5px; color: var(--gold); margin: -8px 0 14px; max-width: 62ch; }

/* prev/next */
.pn { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 30px; }
.pn-a { display: flex; flex-direction: column; gap: 2px; text-decoration: none; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; box-shadow: var(--shadow); }
.pn-a span { font-size: 12.5px; color: var(--muted); font-family: "Spline Sans Mono", monospace; }
.pn-a strong { font-size: 15px; font-weight: 600; }
.pn-next { text-align: right; align-items: flex-end; }
.pn-a:hover { border-color: var(--accent); }

/* day strip */
/* --fade-l/r are set by the strip's own script: an edge only fades while
   chips are actually hidden past it, so the fade doubles as the scroll hint. */
.daystrip { display: flex; gap: 5px; overflow-x: auto; margin-top: 18px; padding: 4px 0 8px;
  --fade-l: 0px; --fade-r: 0px;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 var(--fade-l), #000 calc(100% - var(--fade-r)), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 var(--fade-l), #000 calc(100% - var(--fade-r)), transparent 100%); }
.ds { flex: 1 0 46px; min-width: 46px; text-align: center; text-decoration: none; border-radius: 9px; padding: 6px 2px;
  border: 1px solid var(--line); color: var(--ink); background: var(--surface); }
.ds span { display: block; font-family: "Spline Sans Mono", monospace; font-size: 9.5px; text-transform: uppercase; color: var(--muted); }
.ds strong { font-family: "Spline Sans Mono", monospace; font-size: 15px; font-weight: 500; }
.ds-tour { border-bottom: 3px solid var(--accent); }
.ds-open { border-bottom: 3px solid var(--gold); }
.ds-delhi { border-bottom: 3px solid var(--rose); }
.ds.now { background: var(--accent); border-color: var(--accent); }
.ds.now span, .ds.now strong { color: var(--accent-ink); }

/* place pages */
.divehead { padding: 14px 0 8px; }
.subtitle { font-family: "Instrument Serif", Georgia, serif; font-style: italic; font-size: 22px; color: var(--muted); margin-top: 2px; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line);
  border-radius: 12px; overflow: hidden; margin: 20px 0 8px; }
@media (max-width: 560px) { .facts { grid-template-columns: 1fr; } }
.fact { background: var(--surface); padding: 12px 16px; }
.fact dt { font-family: "Spline Sans Mono", monospace; font-size: 11px; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }
.fact dd { margin: 3px 0 0; font-size: 15px; }
.prose { margin-top: 24px; }
.prose p, .prose-p { max-width: 62ch; margin-bottom: 16px; }
.prose h2 { font-family: "Instrument Serif", Georgia, serif; font-weight: 400; font-size: 26px; margin: 30px 0 10px; }
.prose .teaser { font-size: 18px; }
.coming { margin-top: 14px; padding: 14px 16px; border: 1px dashed var(--line); border-radius: 10px; color: var(--muted); font-size: 14.5px; }
/* dev-only:start */
/* Field-guide prose: lookup pages, so unlike the essays they use tables and
   lists. The table scrolls inside its own box rather than widening the page. */
.prose h3 { font-weight: 600; font-size: 17px; margin: 22px 0 6px; }
.prose ul, .prose ol { max-width: 62ch; margin: 0 0 16px; padding-left: 22px; }
.prose li { margin-bottom: 5px; }
.prose table { display: block; overflow-x: auto; width: 100%; border-collapse: collapse; font-size: 15px; margin: 4px 0 18px; }
.prose th { text-align: left; font-family: "Spline Sans Mono", monospace; font-size: 11px; letter-spacing: .09em;
  text-transform: uppercase; color: var(--muted); font-weight: 400; padding: 0 14px 6px 0; border-bottom: 1px solid var(--line); }
.prose td { padding: 9px 14px 9px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose tr:last-child td { border-bottom: none; }
.prose td:first-child { font-weight: 600; }
/* Field-guide photos: a small thumb before the name, in a table cell or a
   list item. Fixed square so a row of mixed photo sizes still lines up, and
   never wider than the cell/viewport that already scrolls on phones. */
.prose td img { display: block; width: 176px; height: 132px; max-width: 100%;
  object-fit: cover; border-radius: 8px; border: 1px solid var(--line); margin: 0 0 8px;
  cursor: zoom-in; }
.prose li { overflow: auto; } /* contains the floated thumb below */
.prose li img, .prose p img { display: block; float: left; width: 150px; height: 112px; max-width: 100%;
  object-fit: cover; border-radius: 8px; border: 1px solid var(--line); margin: 3px 14px 6px 0;
  cursor: zoom-in; }
.prose p { overflow: auto; } /* contains a floated thumb in a paragraph */
/* Click-to-enlarge overlay for the guide thumbs */
.lb { position: fixed; inset: 0; z-index: 999; display: flex; align-items: center;
  justify-content: center; background: rgba(0,0,0,.82); cursor: zoom-out; }
.lb img { max-width: 92vw; max-height: 92vh; border-radius: 10px; }
/* Devanagari on the script page: sign-size, not body-size */
.prose [lang="hi"] { font-size: 1.45em; line-height: 1.35; }
/* dev-only:end */
/* dev-only:start */
.audiobox { display: flex; gap: 14px; align-items: center; margin-top: 34px; padding: 16px 18px;
  background: var(--surface); border: 1px dashed var(--line); border-radius: 12px; }
.audiobox .ab-icon { font-size: 26px; }
.audiobox span { color: var(--muted); font-size: 14px; }
/* An episode exists: the placeholder becomes a player plus a way into the feed. */
.audiobox.has-audio { flex-direction: column; align-items: stretch; gap: 12px; border-style: solid; }
.audiobox .ab-head { display: flex; gap: 14px; align-items: center; }
.audiobox .ab-player { width: 100%; height: 38px; }
.audiobox .ab-feed { font-size: 14px; font-weight: 500; text-decoration: none; }
.audiobox .ab-feed:hover { text-decoration: underline; }
/* dev-only:end */
.moredives { margin-top: 40px; }
.morelist { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.morelist a { text-decoration: none; font-weight: 500; font-size: 14px; color: var(--ink);
  border: 1px solid var(--line); background: var(--surface); border-radius: 99px; padding: 7px 14px; }
.morelist a span { color: var(--muted); font-weight: 400; }
.morelist a:hover { border-color: var(--accent); color: var(--accent); }

/* practical */
.cardlist { display: grid; gap: 10px; margin-top: 14px; }
.pcard { display: grid; grid-template-columns: 170px 1fr auto; gap: 14px; align-items: start;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; box-shadow: var(--shadow); }
.pcard.is-open { border-style: dashed; border-color: color-mix(in srgb, var(--gold) 55%, var(--line)); }
.pc-k { font-family: "Spline Sans Mono", monospace; font-size: 12px; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); padding-top: 2px; }
.pc-v { font-size: 15px; }
.pc-ref { font-family: "Spline Sans Mono", monospace; font-size: 12.5px; color: var(--accent); text-align: right; white-space: nowrap; }
.pc-note { color: var(--muted); font-size: 14px; margin-top: 6px; max-width: 58ch; }
.pc-warn { font-size: 14px; margin-top: 6px; color: var(--gold); font-weight: 600; }
@media (max-width: 640px) { .pcard { grid-template-columns: 1fr; gap: 4px; } .pc-ref { text-align: left; } }

/* emergency card — ships in both editions, so it stays outside the dev fence */
.subhead { margin: 26px 0 6px; font-size: 13px; font-family: "Spline Sans Mono", monospace;
  text-transform: uppercase; letter-spacing: .09em; color: var(--muted); }
.pcard.is-todo { border-style: dashed; border-color: color-mix(in srgb, var(--rose) 45%, var(--line)); }
.todo { display: inline-block; font-family: "Spline Sans Mono", monospace; font-size: 11.5px;
  text-transform: uppercase; letter-spacing: .07em; color: var(--rose);
  border: 1px dashed color-mix(in srgb, var(--rose) 55%, var(--line)); border-radius: 99px; padding: 1px 9px; }
.eflist { display: grid; gap: 3px; }
.ef { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; }
.ef-l { font-size: 13.5px; color: var(--muted); min-width: 11em; }
.ef-v { font-weight: 500; }
.emerg-legend { margin-top: 14px; font-size: 14px; }
.emerg-legend dt { font-family: "Spline Sans Mono", monospace; font-size: 12px; text-transform: uppercase;
  letter-spacing: .07em; color: var(--muted); margin-top: 9px; }
.emerg-legend dd { margin: 1px 0 0; color: var(--ink); max-width: 62ch; }
.emerg-rem { margin: 10px 0 0; padding-left: 20px; }
.emerg-rem li { margin-bottom: 5px; max-width: 62ch; }

/* actionable chips: map / call / open site / jump to the day */
.acts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.act { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 6px 12px;
  border: 1px solid var(--line); border-radius: 99px; background: var(--bg); color: var(--accent);
  text-decoration: none; font-size: 13.5px; font-weight: 500; line-height: 1.2; }
.act:hover, .act:focus-visible { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.act-i { font-size: 12px; opacity: .8; }
.act:hover .act-i { opacity: 1; }
@media (max-width: 640px) { .act { min-height: 38px; padding: 8px 13px; } }

/* footer */
.foot { max-width: 780px; margin: 30px auto 0; padding: 16px 18px 40px; border-top: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 4px; font-family: "Spline Sans Mono", monospace; font-size: 11.5px; color: var(--muted); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.facts::after { content: ""; background: var(--surface); }
