/* Cue: "Sea glass".
 *
 * The palette and the light DIN-style type come from odavoltersvik.com. One
 * rule runs through the layout: each page has a single focal element and a
 * single filled button, and everything else is quieter than those two.
 *
 * Tokens first, then the shell, then pieces in the order a page uses them.
 */

@font-face { font-family: "Barlow"; font-weight: 300; font-style: normal; font-display: swap; src: url("../vendor/fonts/barlow-300.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 400; font-style: normal; font-display: swap; src: url("../vendor/fonts/barlow-400.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 400; font-style: italic; font-display: swap; src: url("../vendor/fonts/barlow-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 500; font-style: normal; font-display: swap; src: url("../vendor/fonts/barlow-500.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 600; font-style: normal; font-display: swap; src: url("../vendor/fonts/barlow-600.woff2") format("woff2"); }
@font-face { font-family: "Barlow Semi Condensed"; font-weight: 600; font-style: normal; font-display: swap; src: url("../vendor/fonts/barlow-semi-condensed-600.woff2") format("woff2"); }

/* Moving between pages cross-fades, and the dark pill in the navigation
   slides to the section you opened. Browsers without this simply navigate. */
@view-transition { navigation: auto; }

:root {
  color-scheme: light;
  --ground: #F0F5F3;
  --surface: #FFFFFF;
  --surface-2: #F7FBF9;
  --glass: #D0E5DE;
  --glass-2: #E3EFEB;
  --ink: #14201D;
  --ink-2: #3F4F4B;
  --ink-3: #5A6B66;
  --line: #DCE6E2;
  --line-2: #C3D2CD;
  --spruce: #0F5B4C;
  --band: #7FAF9F;
  --amber: #F4A93B;
  --amber-soft: #FDF1DA;
  --amber-ink: #6A4400;
  --red: #A8322A;
  --red-soft: #FBE9E6;
  --on-ink-2: #B8CBC5;
  --on-ink-3: #9DB5AE;
  --r-xl: 32px;
  --r-lg: 28px;
  --r-md: 20px;
  --r-sm: 14px;
  --shadow: 0 1px 2px rgb(20 32 29 / .04), 0 12px 32px rgb(20 32 29 / .05);
  --shadow-lift: 0 12px 32px rgb(20 32 29 / .09);
  --font: "Barlow", system-ui, sans-serif;
  --font-c: "Barlow Semi Condensed", "Barlow", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
body { margin: 0; background: var(--ground); color: var(--ink); font: 400 17px/1.5 var(--font);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
h1, h2, h3, p, figure, dl, dd, ol, ul, fieldset { margin: 0; }
ol, ul { padding: 0; }
a { color: var(--spruce); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--spruce); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--glass); }
[hidden] { display: none !important; }

/* --- type ------------------------------------------------------------------ */
.eyebrow { font: 600 13px/1.4 var(--font-c); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.display { font-size: clamp(40px, 5.4vw, 68px); font-weight: 300; letter-spacing: -.03em; line-height: 1; text-wrap: balance; }
.display.xl { font-size: clamp(42px, 6.2vw, 80px); }
.lede { font-size: 21px; color: var(--ink-2); max-width: 660px; text-wrap: pretty; }
h2 { font-size: 26px; font-weight: 500; letter-spacing: -.015em; line-height: 1.2; }
h3 { font-size: 22px; font-weight: 500; letter-spacing: -.01em; line-height: 1.25; }
.h-light { font-size: 34px; font-weight: 300; letter-spacing: -.02em; line-height: 1.15; text-wrap: balance; }
small, .small { font-size: 15px; }
.muted { color: var(--ink-3); }
.soft { color: var(--ink-2); }
.prose p + p { margin-top: .8em; }
.prose p { max-width: 640px; text-wrap: pretty; }

/* --- the shell -------------------------------------------------------------- */
/* Scoped to the <header>: a bare .bar once matched the score bars too and pinned
   them to the top of the screen. */
header.bar { position: sticky; top: 0; z-index: 1100; background: rgb(240 245 243 / .84);
  backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid var(--line); view-transition-name: bar; }
.bar-in { max-width: 1184px; margin-inline: auto; padding: 12px 32px; display: flex; align-items: center;
  justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; color: var(--ink);
  font-size: 20px; font-weight: 500; letter-spacing: -.015em; }
.sections { display: flex; gap: 2px; padding: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; }
.sections a { display: flex; align-items: center; gap: 7px; padding: 9px 20px; border-radius: 999px; color: var(--ink-2);
  text-decoration: none; font-weight: 500; font-size: 16px; line-height: 26px; transition: background .15s, color .15s; }
.sections a:hover { background: var(--glass-2); color: var(--ink); }
.sections a[aria-current] { background: var(--ink); color: #fff; view-transition-name: section-pill; }
.sections .n, .tabbar .n { font: 600 12px/18px var(--font); min-width: 18px; padding: 0 5px; border-radius: 999px;
  background: var(--amber); color: var(--ink); text-align: center; }
.bar-tools { display: flex; align-items: center; gap: 8px; }
.icon-btn { width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface);
  color: var(--ink); display: grid; place-items: center; cursor: pointer; text-decoration: none; flex: none; }
.icon-btn:hover { background: var(--glass-2); color: var(--ink); }
.menu { position: relative; }
.menu > summary { list-style: none; cursor: pointer; }
.menu > summary::-webkit-details-marker { display: none; }
.add-btn { height: 44px; padding: 0 18px 0 14px; border-radius: 999px; background: var(--glass); color: var(--ink);
  font-weight: 600; font-size: 16px; display: flex; align-items: center; gap: 6px; }
.add-btn:hover { background: #c2dbd3; }
.avatar { width: 44px; height: 44px; border-radius: 999px; background: var(--ink); color: #fff; display: grid;
  place-items: center; font-weight: 600; font-size: 15px; }
.menu-pop { position: absolute; right: 0; top: calc(100% + 8px); min-width: 250px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow-lift); padding: 8px;
  display: flex; flex-direction: column; z-index: 1200; }
.menu[open] > .menu-pop { animation: pop .16s ease-out; }
@keyframes pop { from { opacity: 0; transform: translateY(-6px) scale(.98); } }
.menu-pop a, .menu-pop button { display: flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 12px;
  color: var(--ink); text-decoration: none; font-weight: 500; background: none; border: 0; text-align: left;
  cursor: pointer; width: 100%; }
.menu-pop a:hover, .menu-pop button:hover { background: var(--glass-2); }
.menu-pop .sep { height: 1px; background: var(--line); margin: 6px 8px; }
.menu-pop .who { padding: 8px 14px 4px; font-size: 15px; color: var(--ink-3); }
.menu-pop form { margin: 0; }

.tabbar { display: none; }

main.page { max-width: 1184px; margin-inline: auto; padding: 56px 32px 96px; display: flex; flex-direction: column; gap: 36px; }
main.page.narrow { max-width: 860px; }
.hero { display: flex; flex-direction: column; gap: 12px; }
.hero-row, .head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.hero-row > .hero { flex: 1 1 420px; min-width: 0; }
.head > div:first-child { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.head h1 { font-size: clamp(36px, 4.6vw, 56px); font-weight: 300; letter-spacing: -.03em; line-height: 1.02; text-wrap: balance; }
.head p { font-size: 19px; color: var(--ink-2); max-width: 660px; text-wrap: pretty; }
.actions, .row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.crumb { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; color: var(--ink-3); min-height: 44px; font-size: 16px; }
.crumb a { font-weight: 500; }
.stack { display: flex; flex-direction: column; gap: 18px; }
.stack.tight { gap: 8px; }
.spread { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.push { margin-left: auto; }
.inline { display: inline; }

.subnav, .tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.subnav a, .tabs a { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 0 16px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); text-decoration: none;
  font-weight: 500; font-size: 16px; white-space: nowrap; }
.subnav a:hover, .tabs a:hover { border-color: var(--line-2); color: var(--ink); }
.subnav a[aria-current], .tabs a.on { background: var(--glass); border-color: var(--glass); color: var(--ink); font-weight: 600; }

.messages { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.messages li { padding: 14px 20px; border-radius: 16px; background: var(--ink); color: #fff; font-weight: 500;
  transition: opacity .3s, transform .3s; }
.messages li.error { background: var(--red-soft); color: var(--red); }
@starting-style { .messages li { opacity: 0; transform: translateY(-8px); } }

/* --- surfaces --------------------------------------------------------------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 30px;
  display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.card.lift { box-shadow: var(--shadow); }
.card.glass { background: var(--glass); border-color: transparent; }
.card.dashed { background: transparent; border-style: dashed; border-color: var(--line-2); padding: 20px 24px; gap: 4px; }
.card.pad-lg { padding: 36px; gap: 26px; }
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); align-items: stretch; }
.cols, .split { display: flex; gap: 28px; flex-wrap: wrap; align-items: flex-start; }
.cols > :first-child, .split > .main { flex: 1.7 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.cols > :last-child, .split > .side { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.split.even > .main { flex: 1 1 400px; }
.split.even > .side { flex: 1.3 1 480px; }
.split.wide-side > .main { flex: 1 1 320px; }
.split.wide-side > .side { flex: 1.9 1 540px; }
/* Lets a panel in the side column stay in view while the main column scrolls. */
.split.sticky-side { align-items: stretch; }
.rule { border: 0; height: 1px; background: var(--line); margin: 0; }
.route { display: flex; align-items: stretch; gap: 12px; flex-wrap: wrap; }
.route .node { flex: 1 1 150px; border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px; display: flex;
  flex-direction: column; gap: 2px; text-decoration: none; color: var(--ink); }
.route .node b { font-size: 20px; font-weight: 500; }
.route .node span { font-size: 15px; color: var(--ink-3); }
.route .node.here { border: 2px solid var(--ink); background: var(--glass); padding: 15px 17px; }
.route .node.here span, .route .node.here .eyebrow { color: var(--ink-2); }
.route .hop { flex: 0 0 auto; min-width: 84px; display: flex; flex-direction: column; justify-content: center;
  align-items: center; gap: 4px; font-size: 14px; color: var(--ink-3); }
.route .hop::after { content: ""; width: 100%; border-top: 2px dotted var(--ink-3); }
.why[open] { flex-basis: 100%; }
.why .row { padding-top: 10px; }
.more-gaps > summary { list-style: none; }
.more-gaps > summary::-webkit-details-marker { display: none; }
.more-gaps[open] > summary { display: none; }
.more-gaps { display: contents; }

.note { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 18px 22px; }
.note.warn { background: var(--amber-soft); border-color: transparent; }
.note.bad { background: var(--red-soft); border-color: transparent; }
.note.good { background: var(--glass); border-color: transparent; }

/* The dark panel: one per page at most. Its rings are the fermata again. */
.stage { position: relative; overflow: hidden; isolation: isolate; background: var(--ink); color: #fff;
  border-radius: var(--r-xl); padding: 40px; display: flex; flex-direction: column; gap: 28px; }
.stage::before { content: ""; position: absolute; z-index: -1; right: -110px; top: -250px; width: 620px; aspect-ratio: 1;
  border-radius: 50%;
  background: repeating-radial-gradient(circle, transparent 0 62px, rgb(208 229 222 / .2) 62px 64px);
  -webkit-mask-image: radial-gradient(circle, #000 25%, transparent 70%); mask-image: radial-gradient(circle, #000 25%, transparent 70%); }
.stage .eyebrow { color: var(--on-ink-3); }
.stage h2 { font-size: 34px; font-weight: 300; letter-spacing: -.02em; line-height: 1.1; }
.stage .soft { color: var(--on-ink-2); }
.stops { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 16px; }
.stop { border: 1px solid rgb(208 229 222 / .22); border-radius: 22px; padding: 22px; display: flex; flex-direction: column;
  gap: 14px; background: rgb(255 255 255 / .03); backdrop-filter: blur(2px); }
.stop .eyebrow { color: var(--glass); }
.stop .town { font-size: 28px; letter-spacing: -.015em; line-height: 1.15; color: #fff; text-decoration: none; }
.stop a.town:hover { text-decoration: underline; }
.stop .then { margin-top: auto; padding-top: 14px; border-top: 1px dashed rgb(208 229 222 / .3); display: flex;
  justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 15px; color: var(--on-ink-2); }
.stop .then.tight { color: var(--amber); }
.stop .then a { color: var(--glass); font-weight: 500; }

/* --- buttons and chips ------------------------------------------------------ */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px;
  border-radius: 999px; border: 1px solid var(--ink); background: var(--ink); color: #fff; font-weight: 600;
  font-size: 16px; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .12s, box-shadow .15s, background .15s; }
.btn:hover { color: #fff; box-shadow: 0 6px 16px rgb(20 32 29 / .2); transform: translateY(-1px); }
.btn:active { transform: none; box-shadow: none; }
.btn.quiet { background: var(--surface); color: var(--ink); border-color: var(--line-2); font-weight: 500; }
.btn.quiet:hover { background: var(--glass-2); color: var(--ink); box-shadow: none; transform: none; }
.btn.glass { background: var(--glass); border-color: var(--glass); color: var(--ink); }
.btn.glass:hover { color: var(--ink); }
.btn.text { background: none; border-color: transparent; color: var(--ink-3); padding-inline: 14px; font-weight: 500; }
.btn.text:hover { color: var(--ink); box-shadow: none; transform: none; }
.btn.danger { background: var(--surface); color: var(--red); border-color: #f0c9c4; font-weight: 500; }
.btn.danger:hover { color: var(--red); background: var(--red-soft); box-shadow: none; transform: none; }
.btn.small { min-height: 44px; padding: 0 16px; font-size: 15px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }
.link { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }
.card > .link:last-child { margin-top: auto; }

.tag, .chip { display: inline-flex; align-items: center; min-height: 30px; padding: 0 12px; border-radius: 999px;
  font-size: 14px; font-weight: 500; white-space: nowrap; background: var(--ground); border: 1px solid var(--line); color: var(--ink-2); }
.tag.good, .tag.accent, .chip.glass { background: var(--glass); border-color: transparent; color: var(--ink); }
.tag.warn, .chip.amber { background: var(--amber-soft); border-color: transparent; color: var(--amber-ink); }
.tag.bad { background: var(--red-soft); border-color: transparent; color: var(--red); }
.count { font: 600 12px/18px var(--font); padding: 0 6px; border-radius: 999px; background: var(--amber); color: var(--ink); }

/* --- Today: one ordered list ------------------------------------------------ */
.needs { list-style: none; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow); overflow: hidden; counter-reset: need; }
.needs > li { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; padding: 22px 30px;
  border-top: 1px solid var(--line); counter-increment: need; }
.needs > li::before { content: counter(need); width: 46px; height: 46px; border-radius: 999px; background: var(--glass-2);
  display: grid; place-items: center; font-weight: 600; flex: none; }
.needs > li:first-child { border-top: 0; background: var(--surface-2); padding-block: 26px; }
.needs > li:first-child::before { background: var(--amber); }
.needs .what { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.needs .what b { font-size: 21px; font-weight: 500; letter-spacing: -.01em; line-height: 1.25; text-wrap: balance; }
.needs .what > span:last-child { color: var(--ink-2); text-wrap: pretty; }
.needs .do { display: flex; gap: 8px; flex: none; }
/* Only the first thing in the list gets the filled button. */
.needs > li:not(:first-child) .btn:not(.text) { background: var(--surface); color: var(--ink); border-color: var(--line-2); font-weight: 500; }
.needs > li:not(:first-child) .btn:not(.text):hover { background: var(--glass-2); box-shadow: none; transform: none; }
.allclear { display: flex; align-items: center; gap: 18px; padding: 30px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-lg); font-size: 19px; }

/* --- the path every concert takes ------------------------------------------- */
.path { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(140px, 100%), 1fr)); row-gap: 22px; }
.path > li { display: grid; grid-template-columns: auto 1fr; grid-template-rows: 24px auto; row-gap: 10px; align-items: center; }
.path > li::before { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--line-2);
  background: var(--surface); grid-area: 1 / 1; }
.path > li::after { content: ""; height: 2px; background: var(--line-2); grid-area: 1 / 2; }
.path > li:last-child::after { visibility: hidden; }
.path > li > * { grid-area: 2 / 1 / 3 / -1; padding-right: 16px; display: flex; flex-direction: column; color: var(--ink-3);
  text-decoration: none; }
.path b { font-weight: 500; }
.path span { font-size: 15px; }
.path .done::before { background: var(--ink); border-color: var(--ink); }
.path .done::after { background: var(--ink); }
.path .done > *, .path .current > * { color: var(--ink); }
.path .done span, .path .current span { color: var(--ink-3); }
.path .current::before { width: 18px; height: 18px; background: var(--amber); border-color: var(--amber);
  box-shadow: 0 0 0 5px var(--amber-soft); }
.path .current::after { margin-left: 5px; }
.path .current b { font-weight: 600; }
.path.counts .has::before { background: var(--ink); border-color: var(--ink); }
.path.counts > li > a { color: var(--ink); gap: 0; }
.path.counts > li > a:hover b { text-decoration: underline; }
.path.counts strong { font-size: 46px; font-weight: 300; letter-spacing: -.03em; line-height: 1; margin-bottom: 6px; }
.path.counts li:not(.has) strong { color: var(--ink-3); }
.path.counts b { font-weight: 600; }
.offpath { display: inline-flex; align-items: center; gap: 10px; color: var(--ink-3); }

/* --- the two scores, always side by side ------------------------------------ */
.meters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.meter { display: flex; flex-direction: column; gap: 6px; }
.meter .top { display: flex; justify-content: space-between; align-items: baseline; }
.meter .top span { font-size: 15px; color: var(--ink-3); }
.meter .top b { font-size: 22px; font-weight: 500; font-variant-numeric: tabular-nums; }
.meter .gauge { height: 6px; border-radius: 999px; background: var(--glass-2); overflow: hidden; }
.meter .gauge i { display: block; height: 100%; border-radius: 999px; background: var(--spruce); width: calc(var(--v, 0) * 1%); }
.meter.value .gauge i { background: var(--amber); }
.meter.big .top b { font-size: 44px; font-weight: 300; letter-spacing: -.03em; line-height: 1; }
.meter.big .gauge { height: 8px; }
.breakdown { display: grid; grid-template-columns: 1fr auto; column-gap: 12px; row-gap: 4px; font-size: 15px; color: var(--ink-2); }
.breakdown dd { font-variant-numeric: tabular-nums; }
/* A presenter's reading: what each line of the two scores rests on. */
.evidence > summary { padding-inline: 0; }
.evidence[open] { display: flex; flex-direction: column; gap: 12px; }
.evidence dl { display: flex; flex-direction: column; gap: 12px; font-size: 15px; }
.evidence dt { display: flex; justify-content: space-between; gap: 12px; font-weight: 600; color: var(--ink); }
.evidence dt span { font-weight: 400; color: var(--ink-3); font-variant-numeric: tabular-nums; white-space: nowrap; }
.evidence dd { color: var(--ink-2); text-wrap: pretty; }
.evidence dd + dt { margin-top: 2px; }
.pastelink { display: flex; flex-direction: column; gap: 10px; }
.pastelink label { color: var(--ink-2); }
.pastelink input { flex: 1 1 260px; min-width: 0; }
.scoreline { display: inline-flex; gap: 12px; font-size: 15px; color: var(--ink-3); white-space: nowrap; font-variant-numeric: tabular-nums; }
.scoreline b { color: var(--ink); font-weight: 600; }

/* --- Find ------------------------------------------------------------------- */
.gapchips { display: flex; gap: 10px; flex-wrap: wrap; }
.gapchip { display: flex; flex-direction: column; justify-content: center; min-height: 60px; padding: 10px 20px; border-radius: 18px;
  border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); text-decoration: none;
  transition: border-color .15s, box-shadow .15s; }
.gapchip:hover { border-color: var(--ink); color: var(--ink); }
.gapchip b { font-size: 18px; font-weight: 600; white-space: nowrap; }
.gapchip span { font-size: 14px; color: var(--ink-3); white-space: nowrap; }
.gapchip[aria-current] { background: var(--ink); border-color: var(--ink); color: #fff; }
.gapchip[aria-current] span { color: var(--on-ink-2); }
.gapchip.any { border-style: dashed; background: transparent; }
.gapchip.any[aria-current] { background: var(--ink); border-style: solid; }

.leadcard { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 24px;
  display: flex; flex-direction: column; gap: 16px; transition: box-shadow .2s, border-color .2s; }
.leadcard:hover { border-color: var(--line-2); box-shadow: var(--shadow); }
.leadcard.top { border: 2px solid var(--ink); padding: 23px; box-shadow: var(--shadow-lift); }
.leadcard h3 { font-size: 25px; letter-spacing: -.015em; line-height: 1.2; text-wrap: balance; }
.leadcard h3 a { color: var(--ink); text-decoration: none; }
.leadcard h3 a:hover { text-decoration: underline; }
.leadcard p { color: var(--ink-2); text-wrap: pretty; }
.leadcard form { display: contents; }
/* In a list of places only the best match gets the filled button. */
.leadcard:not(.top) .btn:not(.quiet) { background: var(--surface); color: var(--ink); border-color: var(--line-2); font-weight: 500; }
.leadcard:not(.top) .btn:not(.quiet):hover { background: var(--glass-2); box-shadow: none; transform: none; }

.mapcard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--shadow); position: sticky; top: 96px; }
.map { height: min(56vh, 520px); min-height: 340px; background: var(--glass-2); }
.map.small { height: 300px; min-height: 0; }
.mapcard .foot { padding: 22px 26px 26px; display: flex; gap: 22px; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; }
.reach { flex: 1 1 240px; display: flex; flex-direction: column; gap: 4px; }
.reach input { width: 100%; }
.mapcard .foot .stack .btn { align-self: flex-start; }
/* The map takes on the palette: tiles are drained of colour and multiplied
   into the sea-glass ground, so pins and rings are the only strong marks.
   (.map is repeated in each selector so these win over Leaflet's own sheet.) */
.map.leaflet-container { font: inherit; background: var(--glass-2); }
.map .leaflet-tile-pane { filter: grayscale(1) contrast(1.08) brightness(1.03); mix-blend-mode: multiply; opacity: .82; }
.map .leaflet-popup-content-wrapper { border-radius: 18px; box-shadow: var(--shadow-lift); }
.map .leaflet-popup-content { margin: 16px 18px; font-size: 15px; line-height: 1.45; }
.map .leaflet-popup-content b { display: block; font-size: 17px; font-weight: 600; margin-bottom: 2px; }
.map.leaflet-container a { color: var(--spruce); }
.map .leaflet-control-attribution { font-size: 11px; background: rgb(255 255 255 / .7); }
.map .leaflet-bar { border: 1px solid var(--line-2); border-radius: 12px; overflow: hidden; box-shadow: none; }
.map .leaflet-bar a { color: var(--ink); width: 36px; height: 36px; line-height: 36px; }
/* Two kinds of mark. Solid is fixed, hollow is still open, as on the path:
   a concert she has booked is a solid ink dot, a place found is a ring. */
.pin { border-radius: 50%; box-shadow: 0 1px 4px rgb(20 32 29 / .35); }
.pin.gig { background: var(--ink); border: 3px solid #fff; }
.pin.lead { background: #fff; border: 4px solid var(--spruce); }
.pin.lead.focus { background: var(--amber); border: 3px solid var(--ink); box-shadow: 0 0 0 9px rgb(244 169 59 / .32); }
/* Several things known only to be in the same town share one mark with a count.
   They are never drawn side by side: that would invent a position for each. */
.pin.many { display: grid; place-items: center; font: 600 13px/1 var(--font-c); font-variant-numeric: tabular-nums;
  color: #fff; cursor: pointer; }
.pin.many.lead { color: var(--spruce); border-width: 3.5px; }
.pin.many.lead.focus { color: var(--ink); border-width: 3px; }
.pin.many.both { background: var(--ink); border: 3px solid #fff;
  box-shadow: 0 0 0 3.5px var(--spruce), 0 1px 5px 3px rgb(20 32 29 / .3); }
.pin.many.both.focus { box-shadow: 0 0 0 3.5px var(--spruce), 0 0 0 12px rgb(244 169 59 / .34); }
.map .popkind { display: block; font: 600 12px/1.4 var(--font-c); letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-3); margin-bottom: 4px; }
.map .popnote { display: block; color: var(--ink-3); font-size: 14px; line-height: 1.4; }
.map .popitem { padding: 12px 0; border-top: 1px solid var(--line); }
.map .popitem:last-child { padding-bottom: 0; }
.map .leaflet-popup-content .popnote + .popitem { margin-top: 12px; }
.map .leaflet-popup-scrolled { border: 0; padding-right: 10px; }
.maplegend { list-style: none; display: flex; gap: 8px 22px; flex-wrap: wrap; padding: 14px 26px;
  border-bottom: 1px solid var(--line); font-size: 15px; color: var(--ink-2); }
.maplegend li { display: flex; align-items: center; gap: 9px; }
.maplegend .pin { width: 16px; height: 16px; flex: none; box-shadow: 0 0 0 1px var(--line-2); }
.maplegend .pin.lead { border-width: 3.5px; box-shadow: none; }
.maplegend .pin.lead.focus { border-width: 2.5px; box-shadow: none; }
.maplegend .pin.many { width: 21px; height: 21px; font-size: 12px; border-width: 2px; cursor: default; }
.maplegend .reachring { width: 18px; height: 18px; flex: none; border-radius: 50%;
  border: 1.5px solid rgb(15 91 76 / .6); background: rgb(15 91 76 / .09); }
.map .leaflet-tooltip.maplabel { background: var(--ink); color: #fff; border: 0; border-radius: 999px; padding: 5px 13px;
  font: 500 14px/1.3 var(--font); box-shadow: none; white-space: nowrap; }
.map .leaflet-tooltip.maplabel::before { display: none; }
.picking .map { cursor: crosshair; }

/* --- People ----------------------------------------------------------------- */
.convo { display: flex; gap: 14px; align-items: center; padding: 16px 18px; border-radius: 20px; background: var(--surface);
  border: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.convo:hover { border-color: var(--line-2); color: var(--ink); }
.convo[aria-current] { border: 2px solid var(--ink); padding: 15px 17px; box-shadow: var(--shadow-lift); }
.convo .who { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.convo .who b { font-weight: 600; }
.convo .who span { font-size: 15px; color: var(--ink-3); }
.initials { width: 48px; height: 48px; border-radius: 50%; background: var(--glass); display: grid; place-items: center;
  font-weight: 600; flex: none; }
.listcard { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; display: flex; flex-direction: column; }
.listcard > a { display: flex; flex-direction: column; justify-content: center; min-height: 48px; padding: 14px 18px;
  text-decoration: none; color: var(--ink); border-top: 1px solid var(--line); }
.listcard > a:first-child { border-top: 0; }
.listcard > a:hover { background: var(--surface-2); }
.listcard > a b { font-weight: 500; }
.listcard > a span { font-size: 15px; color: var(--ink-3); }
.listcard > a.more { font-weight: 600; color: var(--spruce); }
.checklist { border: 0; padding: 22px 24px; background: var(--amber-soft); border-radius: 20px; display: flex;
  flex-direction: column; gap: 6px; min-width: 0; }
.checklist legend { float: left; width: 100%; padding: 0; margin-bottom: 6px; font-weight: 600; color: var(--amber-ink); }
.checklist label { display: flex; gap: 12px; align-items: flex-start; min-height: 44px; padding: 8px 0; font-weight: 400;
  cursor: pointer; clear: both; transition: color .2s; }
.checklist label:has(input:checked) { color: var(--ink-3); text-decoration: line-through; }
.checklist input { margin: 2px 0 0; flex: none; }
.letter { width: 100%; min-height: 340px; padding: 24px 26px; border: 1px solid var(--line-2); border-radius: var(--r-sm);
  font-size: 18px; line-height: 1.55; field-sizing: content; resize: vertical; }
.letter[readonly] { background: var(--surface-2); }
.field { display: flex; flex-direction: column; gap: 8px; }
.field > label, .field > .eyebrow { font: 600 12px/1.4 var(--font-c); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.field input { font-size: 18px; font-weight: 500; width: 100%; }

/* --- Season ----------------------------------------------------------------- */
.year { overflow-x: auto; padding: 24px 30px 20px; }
.year-in { min-width: 760px; display: flex; flex-direction: column; gap: 8px; }
.months { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); }
.track { position: relative; height: 96px; border-top: 1px solid var(--line);
  background: repeating-linear-gradient(90deg, transparent 0, transparent calc(100% / var(--n) - 1px),
    var(--ground) calc(100% / var(--n) - 1px), var(--ground) calc(100% / var(--n))); }
.band { position: absolute; top: 36px; height: 24px; border-radius: 999px; background: var(--band);
  left: calc(var(--l) * 1%); width: max(calc(var(--w) * 1%), 14px); transition: transform .15s; }
.band:hover { transform: scaleY(1.2); }
.band[aria-current] { background: var(--ink); }
.bandlabel { position: absolute; white-space: nowrap; font-size: 15px; color: var(--ink-2); left: calc(var(--l) * 1%); text-decoration: none; }
.bandlabel:hover { color: var(--ink); text-decoration: underline; }
.bandlabel.below { top: 66px; }
.bandlabel.above { top: 8px; }
.bandlabel.end { left: auto; right: calc((100 - var(--l) - var(--w)) * 1%); }
.bandlabel.on { font-weight: 600; color: var(--ink); }
.nowmark { position: absolute; top: -1px; bottom: 0; width: 2px; background: var(--amber); left: calc(var(--l) * 1%); }

.seg { display: flex; gap: 2px; padding: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; }
.seg a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; color: var(--ink-2);
  text-decoration: none; font-weight: 500; font-size: 16px; }
.seg a[aria-current] { background: var(--glass); color: var(--ink); font-weight: 600; }

.itin { list-style: none; display: flex; flex-direction: column; }
.itin > li { display: grid; grid-template-columns: 86px 16px minmax(0, 1fr); column-gap: 18px; }
.itin .when { text-align: right; padding-top: 12px; }
.itin .when b { display: block; font-size: 23px; font-weight: 500; line-height: 1.15; white-space: nowrap; }
.itin .when span { font-size: 15px; color: var(--ink-3); }
.itin .rail { display: flex; flex-direction: column; align-items: center; }
.itin .stopline .rail::before { content: ""; width: 2px; height: 22px; background: var(--line-2); flex: none; }
.itin .stopline .rail i { width: 14px; height: 14px; border-radius: 50%; background: var(--ink); flex: none; }
.itin .stopline .rail::after { content: ""; flex: 1; width: 2px; background: var(--line-2); }
.itin > li:first-child .rail::before { background: transparent; }
.itin > li:last-child .rail::after { visibility: hidden; }
.itin .legline .rail::before { content: ""; flex: 1; border-left: 2px dotted var(--ink-3); }
.itin .body { padding: 14px 0 22px; display: flex; flex-direction: column; gap: 2px; }
.itin .body a.title { font-size: 21px; font-weight: 500; letter-spacing: -.01em; line-height: 1.25; color: var(--ink);
  text-decoration: none; text-wrap: balance; }
.itin .body a.title:hover { text-decoration: underline; }
.itin .legline .body { padding: 4px 0 24px; align-items: flex-start; }
.legpill { display: inline-flex; gap: 6px 14px; align-items: center; flex-wrap: wrap; padding: 10px 18px; border-radius: 16px;
  background: var(--glass); }
.legpill b { font-weight: 500; }
.legpill span { color: var(--ink-2); }
.legpill a { font-weight: 600; color: var(--ink); }
.legpill.tight { background: var(--amber-soft); color: var(--amber-ink); }
.legpill.tight span { color: inherit; }
.legpill.plain { background: var(--ground); border: 1px solid var(--line); }

/* Day by day: one row a day, the night at the foot of each. */
.days { list-style: none; display: flex; flex-direction: column; }
.days > .day { display: grid; grid-template-columns: 96px minmax(0, 1fr); column-gap: 22px; padding: 16px 0;
  border-top: 1px solid var(--line); break-inside: avoid; }
.days > .day:first-child { border-top: 0; }
.days .when { text-align: right; display: flex; flex-direction: column; }
.days .when b { font-size: 21px; font-weight: 500; line-height: 1.15; white-space: nowrap; }
.days .when span { color: var(--ink-3); font-size: 15px; }
.days .day.quiet .when b { font-size: 16px; font-weight: 500; color: var(--ink-2); }
.days .body { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.entries { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.entry { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; column-gap: 12px; align-items: baseline; }
.entry .at { font-variant-numeric: tabular-nums; color: var(--ink-2); }
.entry .what { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.entry .what > a { color: var(--ink); font-weight: 500; }
.entry.concert .what > a.title { font-size: 19px; letter-spacing: -.01em; }
.entry .chip { min-height: 26px; font-size: 14px; }
.night { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; padding: 10px 14px; border-radius: var(--r-sm);
  background: var(--ground); border: 1px solid var(--line); }
.night > span:first-child { font-weight: 500; }
.night.missing { background: var(--amber-soft); border-color: transparent; color: var(--amber-ink); }
.flag { color: var(--amber-ink); background: var(--amber-soft); padding: 10px 14px; border-radius: var(--r-sm); }

.task { display: flex; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); }
.task::before { content: ""; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--line-2); background: var(--surface);
  margin-top: 8px; flex: none; }
.task.open::before { background: var(--amber); border-color: var(--amber); }
.task.ok::before { background: var(--ink); border-color: var(--ink); }
.task > div { flex: 1; min-width: 0; }
.task b { font-weight: 600; display: block; }
.task span { color: var(--ink-2); font-size: 16px; }

/* --- Office ----------------------------------------------------------------- */
.cover { overflow-x: auto; }
.cover-in { min-width: 780px; display: flex; flex-direction: column; gap: 6px; }
.cover-row { display: flex; gap: 16px; align-items: center; }
.cover-row > .who { width: 168px; flex: none; }
.cover-row > .who b { font-weight: 600; display: block; }
.cover-row > .who span { font-size: 15px; color: var(--ink-3); }
.cover-row > .months { flex: 1; }
.cover-track { flex: 1; position: relative; height: 44px; }
.cover-track .none { position: absolute; inset: 6px 0; border: 2px dashed var(--line-2); border-radius: 999px; }
.cover-track .doc { position: absolute; top: 6px; height: 32px; border-radius: 999px; background: var(--glass);
  left: calc(var(--l) * 1%); width: calc(var(--w) * 1%); }
.cover-track .dot { position: absolute; top: 16px; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%;
  background: var(--ink); border: 2px solid #fff; left: calc(var(--l) * 1%); }
.legend { display: flex; gap: 22px; flex-wrap: wrap; font-size: 15px; color: var(--ink-3); }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.legend i { display: inline-block; width: 28px; height: 12px; border-radius: 999px; }
.legend i.dot { width: 12px; background: var(--ink); }
.legend i.doc { background: var(--glass); }
.legend i.none { border: 2px dashed var(--line-2); }
.behind { display: flex; gap: 8px 28px; flex-wrap: wrap; align-items: center; color: var(--ink-3); font-size: 16px; }

/* --- lists, tables, facts ---------------------------------------------------- */
.rows { list-style: none; display: flex; flex-direction: column; }
.rows > li { display: flex; gap: 14px; justify-content: space-between; align-items: baseline; flex-wrap: wrap;
  padding: 14px 0; border-top: 1px solid var(--line); }
.rows > li:first-child { border-top: 0; padding-top: 0; }
.rows > li:last-child { padding-bottom: 0; }
.rows .main { flex: 1; min-width: 200px; }
/* The pills that describe a row, on a line of their own under its text. Placed
   inline after the text they collided with whatever wrapped above and below. */
.tagline { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: 10px; }
.date { font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--ink-3); font-size: 15px; }
table { width: 100%; border-collapse: collapse; font-size: 16px; }
th { text-align: left; font: 600 12px/1.4 var(--font-c); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3);
  padding: 8px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 14px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
tbody tr { transition: background .12s; }
tbody tr:hover { background: var(--surface-2); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table-wrap { overflow-x: auto; }
.empty { color: var(--ink-3); }
dl.facts { display: grid; grid-template-columns: max-content 1fr; gap: 8px 16px; }
dl.facts dt { color: var(--ink-3); }
dl.facts dd { overflow-wrap: anywhere; }
pre.text { white-space: pre-wrap; font: inherit; margin: 0; overflow-wrap: anywhere; }
pre.log { white-space: pre-wrap; font: 14px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--ground);
  padding: 16px; border-radius: var(--r-sm); overflow-wrap: anywhere; margin: 0; }
details > summary { cursor: pointer; }
.bigstat { font-size: 44px; font-weight: 300; letter-spacing: -.03em; line-height: 1; }
.bar-h { height: 6px; background: var(--glass-2); border-radius: 999px; overflow: hidden; min-width: 80px; }
.bar-h i { display: block; height: 100%; background: var(--spruce); border-radius: 999px; width: calc(var(--v, 0) * 1%); }

/* --- forms ------------------------------------------------------------------- */
input:not([type=checkbox], [type=radio], [type=range], [type=file]), select, textarea {
  min-height: 48px; padding: 10px 16px; border: 1px solid var(--line-2); border-radius: var(--r-sm);
  background: var(--surface); max-width: 100%; }
textarea { width: 100%; min-height: 120px; line-height: 1.5; field-sizing: content; }
input[type=checkbox] { width: 22px; height: 22px; accent-color: var(--ink); }
input[type=range] { accent-color: var(--ink); height: 44px; margin: 0; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--spruce); outline-offset: 1px; border-color: var(--spruce); }
label { font-weight: 500; }
form.record { display: flex; flex-direction: column; gap: 18px; }
form.record > p { display: flex; flex-direction: column; gap: 6px; max-width: 640px; }
form.record > p:has(> input[type=checkbox]) { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: center; }
form.record > p:has(> input[type=checkbox]) > input { grid-area: 1 / 1; }
form.record > p:has(> input[type=checkbox]) > label { grid-area: 1 / 2; }
form.record > p:has(> input[type=checkbox]) > .helptext { grid-column: 2; }
form.record > p > input:not([type=checkbox], [type=file]), form.record > p > select { width: 100%; }
form.record .helptext { color: var(--ink-3); font-size: 15px; }
ul.errorlist { list-style: none; color: var(--red); font-size: 15px; font-weight: 500; }
.form-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.filters label { display: flex; flex-direction: column; gap: 4px; font: 600 12px/1.4 var(--font-c); letter-spacing: .1em;
  text-transform: uppercase; color: var(--ink-3); }
.filters label > * { font: 400 16px/1.4 var(--font); letter-spacing: 0; text-transform: none; color: var(--ink); }
.searchbox { display: flex; gap: 10px; }
.searchbox input { flex: 1; min-width: 0; font-size: 20px; min-height: 60px; border-radius: 999px; padding-inline: 26px; }

/* --- the board of concerts --------------------------------------------------- */
.board { display: grid; grid-template-columns: repeat(6, minmax(160px, 1fr)); gap: 12px; overflow-x: auto;
  padding-bottom: 10px; align-items: start; }
.board section { background: var(--glass-2); border-radius: var(--r-md); padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.board h2 { font: 600 12px/1.4 var(--font-c); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); padding: 4px 6px; }
.board a.chip-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-sm); padding: 12px 14px; text-decoration: none; color: var(--ink); font-size: 16px; }
.board a.chip-card:hover { border-color: var(--ink); }
.board a.chip-card small { color: var(--ink-3); }

/* --- signing in -------------------------------------------------------------- */
.signin { min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
.signin .side { position: relative; overflow: hidden; isolation: isolate; background: var(--ink); color: #fff; padding: 56px;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 12px; }
.signin .side::before { content: ""; position: absolute; z-index: -1; left: 50%; top: 42%; width: 900px; aspect-ratio: 1;
  translate: -50% -50%; border-radius: 50%;
  background: repeating-radial-gradient(circle, transparent 0 70px, rgb(208 229 222 / .22) 70px 72px);
  -webkit-mask-image: radial-gradient(circle, #000 15%, transparent 68%); mask-image: radial-gradient(circle, #000 15%, transparent 68%); }
.signin .side::after { content: ""; position: absolute; z-index: -1; left: 50%; top: 42%; width: 34px; aspect-ratio: 1;
  translate: -50% -50%; border-radius: 50%; background: var(--amber); }
.signin .word { font-size: clamp(44px, 6vw, 72px); font-weight: 300; letter-spacing: -.03em; line-height: 1; }
.signin .line { font-size: 24px; color: var(--glass); }
.signin .form { display: flex; flex-direction: column; justify-content: center; gap: 24px; padding: 56px; max-width: 520px; width: 100%; margin-inline: auto; }
.signin form { display: flex; flex-direction: column; gap: 16px; }
.signin form p { display: flex; flex-direction: column; gap: 6px; }
.signin form input { width: 100%; }

/* --- small screens: the sections move to the bottom of the screen ------------- */
@media (max-width: 860px) {
  .sections { display: none; }
  .bar-in { padding: 10px 20px; }
  .tabbar { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); position: fixed; inset: auto 0 0 0; z-index: 1100;
    background: rgb(255 255 255 / .94); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid var(--line); padding: 8px 8px calc(10px + env(safe-area-inset-bottom)); view-transition-name: tabbar; }
  .tabbar a { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; min-height: 54px;
    text-decoration: none; color: var(--ink-3); font-size: 12px; font-weight: 600; }
  .tabbar .ico { width: 56px; height: 30px; display: grid; place-items: center; border-radius: 999px; }
  .tabbar a[aria-current] { color: var(--ink); }
  .tabbar a[aria-current] .ico { background: var(--glass); }
  .tabbar .n { position: absolute; top: -2px; left: calc(50% + 12px); }
  main.page { padding: 28px 20px 130px; gap: 28px; }
  .lede { font-size: 19px; }
  .card { padding: 22px; border-radius: 24px; }
  .card.pad-lg { padding: 24px; }
  .stage { padding: 26px; border-radius: 26px; }
  .needs > li { padding: 18px 20px; gap: 14px; }
  .needs > li::before { width: 38px; height: 38px; }
  .needs .what { flex-basis: 200px; }
  .needs .what b { font-size: 18px; }
  .needs .do { flex: 1 1 100%; padding-left: 52px; }
  .gapchips, .subnav, .tabs { flex-wrap: nowrap; overflow-x: auto; margin-inline: -20px; padding-inline: 20px; scrollbar-width: none; }
  .gapchips::-webkit-scrollbar, .subnav::-webkit-scrollbar, .tabs::-webkit-scrollbar { display: none; }
  .gapchip { flex: none; }
  .mapcard { position: static; }
  .map { height: 320px; min-height: 0; }
  .itin > li { grid-template-columns: 64px 16px minmax(0, 1fr); column-gap: 12px; }
  .itin .when b { font-size: 19px; }
  .days > .day { grid-template-columns: 64px minmax(0, 1fr); column-gap: 12px; }
  .days .when b { font-size: 17px; white-space: normal; }
  .entry { grid-template-columns: 44px minmax(0, 1fr); }
  .entry .chip { grid-column: 2; justify-self: start; margin-top: 4px; }
  .signin { grid-template-columns: 1fr; }
  .signin .side { min-height: 38dvh; padding: 32px; }
  .signin .form { padding: 32px 24px 48px; }
  .hide-sm { display: none; }
  td, th { padding: 10px 8px; }
}
/* Once the two columns stack, the map leads and the list follows it. */
@media (max-width: 1000px) {
  .split.map-first > .side { order: -1; flex-basis: 100%; }
  .split.map-first .mapcard { position: static; }
}
@media (max-width: 480px) {
  .brand span { display: none; }
  .year { padding: 18px 20px 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  @view-transition { navigation: none; }
}
@media print {
  header.bar, .tabbar, .actions, .filters, .tabs, .subnav, .btn, .mapcard { display: none !important; }
  body { background: #fff; }
  main.page { padding: 0; }
  .card { border: 0; padding: 0; box-shadow: none; }
  .noprint, .seg { display: none !important; }
  body:has(.daybook) .side, body:has(.daybook) .year, body:has(.daybook) details { display: none !important; }
  .night, .flag { border: 1px solid #999; }
}

/* Pasted notes: what was found in them, ticked to be added. */
.picks { list-style: none; display: flex; flex-direction: column; }
.picks > li { display: grid; grid-template-columns: 22px minmax(0, 1fr); column-gap: 14px; align-items: start;
  padding: 14px 0; border-top: 1px solid var(--line); }
.picks > li:first-child { border-top: 0; padding-top: 0; }
.picks > li:last-child { padding-bottom: 0; }
.picks input[type=checkbox] { margin: 2px 0 0; }
.picks label { display: flex; flex-direction: column; gap: 2px; font-weight: 400; cursor: pointer; min-width: 0; }
.picks label b { font-weight: 500; }
.picks label span { color: var(--ink-3); font-size: 15px; }
.picks label .warn { color: var(--amber-ink); }
.picks > li.off label { cursor: default; }
.picks > li.off b { color: var(--ink-2); font-weight: 400; }
.picks .box { width: 22px; text-align: center; color: var(--ink-3); }

/* Season: a tour saved as a PDF, with the parts she ticks. The menu opens to the
   right, since on a phone it wraps to the start of its line. */
.pdfpick { left: 0; right: auto; min-width: 290px; gap: 2px; }
.pdfpick label { display: flex; gap: 12px; align-items: flex-start; padding: 10px 14px; border-radius: 12px;
  font-weight: 400; cursor: pointer; }
.pdfpick label:hover { background: var(--glass-2); }
.pdfpick label span { display: flex; flex-direction: column; }
.pdfpick label b { font-weight: 500; }
.pdfpick label small { color: var(--ink-3); font-size: 14px; }
.pdfpick input[type=checkbox] { margin: 0; flex: none; }
.menu-pop.pdfpick .btn { width: auto; margin: 6px 8px 4px; justify-content: center; background: var(--ink);
  color: #fff; border: 1px solid var(--ink); border-radius: 999px; font-weight: 600; }
.picks .paid { grid-column: 2; border: 0; padding: 8px 0 0; margin: 0; display: flex; flex-wrap: wrap;
  gap: 6px 18px; align-items: center; }
.picks .paid legend { float: left; padding: 0; margin-right: 4px; color: var(--ink-2); font-size: 15px; }
.picks .paid label { flex-direction: row; align-items: center; gap: 8px; font-weight: 500; }
.picks .paid input[type=radio] { width: 20px; height: 20px; margin: 0; accent-color: var(--ink); }

/* Season, Budget: artist fees, travel fees and costs side by side where they fit. */
.grid.sums { grid-template-columns: repeat(auto-fit, minmax(min(170px, 100%), 1fr)); }
.leftover { display: flex; flex-wrap: wrap; gap: 4px 24px; font-size: 24px; font-weight: 400; letter-spacing: -.01em; }
.leftover .short { color: var(--red); }

/* A form on one line where there is room: To do, Hours. */
form.quick { display: flex; flex-wrap: wrap; gap: 12px 14px; align-items: flex-end; }
form.quick > p { display: flex; flex-direction: column; gap: 6px; flex: 0 1 180px; min-width: 0; margin: 0; }
form.quick > p.grow { flex: 1 1 260px; }
form.quick input, form.quick select { width: 100%; }
form.quick .err { color: var(--red); font-size: 15px; }

/* To do: tick a thing off. */
.todos { list-style: none; display: flex; flex-direction: column; }
.todos > li { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); }
.todos > li:first-child { border-top: 0; padding-top: 0; }
.todos > li:last-child { padding-bottom: 0; }
.todos .main { flex: 1; min-width: 0; }
.todos .date { color: var(--ink-3); font-size: 15px; white-space: nowrap; }
.todos .date.late { color: var(--red); }
.todos form { margin: 0; display: flex; }
.tick { width: 26px; height: 26px; border-radius: 999px; border: 2px solid var(--line-2); background: var(--surface);
  cursor: pointer; flex: none; padding: 0; }
.tick:hover { border-color: var(--ink); background: var(--glass-2); }

/* Shown on a page kept on the phone, when the Pi cannot be reached (base.html). */
.offline-note { background: var(--amber-soft); border-color: var(--amber-soft); color: var(--amber-ink); }

/* Public pages: the front page's list, sign-up's agreement, the legal pages. */
.public-links { margin-top: 8px; }
.front-list { list-style: none; padding: 0; }
.front-list li { padding-left: 22px; position: relative; }
.front-list li::before { content: ""; position: absolute; left: 0; top: .6em; width: 8px; height: 8px; border-radius: 999px; background: var(--amber); }
.signin .agree { flex-direction: row; align-items: flex-start; gap: 10px; }
.signin .agree input { width: auto; margin-top: 3px; }
.signin .err { color: var(--red); font-size: 15px; }
.legal .prose h2 { font-size: 24px; font-weight: 400; margin-top: 12px; }
.legal .prose ul { padding-left: 20px; display: flex; flex-direction: column; gap: 8px; max-width: 680px; }
