/* Wayfinding sign for spare minutes: warm paper, ink, one signage-yellow strip. */
:root {
  --paper: #f6f3ec;
  --paper-2: #efeadf;
  --card: #fffdf8;
  --ink: #16150f;
  --ink-2: #2b2920;
  --muted: #59554a;
  --line: #d9d2c3;
  --sign: #ffcc00;
  --sign-ink: #16150f;
  --ok: #1f6b3a;
  --warn: #8a3b12;
  --r-sm: 6px;
  --r-md: 12px;
  --r-pill: 999px;
  --shadow: 0 1px 0 rgba(22, 21, 15, .06), 0 8px 24px -16px rgba(22, 21, 15, .25);
  --font: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 72px; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 16px/1.5 var(--font);
}
a { color: inherit; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; box-shadow: 0 0 0 6px var(--sign); }
.wrap { width: min(1120px, 100%); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 50; background: var(--sign); padding: 8px 12px; border-radius: var(--r-sm); }
h1, h2, h3 { line-height: 1.1; margin: 0; letter-spacing: -0.02em; }
.count { display: inline-block; min-width: 1.8em; padding: 2px 8px; font-size: .55em; vertical-align: middle;
  border-radius: var(--r-pill); background: var(--ink); color: var(--sign); text-align: center; letter-spacing: 0; font-variant-numeric: tabular-nums; }

/* header */
.top { position: sticky; top: 0; z-index: 20; background: var(--ink); color: #fff; }
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; text-decoration: none; letter-spacing: -0.01em; }
.brand-mark { display: grid; place-items: center; width: 30px; height: 30px; border-radius: var(--r-sm); background: var(--sign); color: var(--ink); font-size: 17px; }
.top-nav { display: flex; gap: 4px; }
.top-nav a { padding: 8px 10px; border-radius: var(--r-sm); text-decoration: none; font-size: 15px; color: #e9e5da; }
.top-nav a:hover { background: var(--ink-2); color: #fff; }

/* hero */
.hero { padding-top: 48px; padding-bottom: 28px; }
.eyebrow { margin: 0 0 12px; font-size: 16px; font-weight: 600; color: var(--muted); }
.hero h1 { font-size: clamp(36px, 7vw, 72px); font-weight: 850; max-width: 14ch; letter-spacing: -0.035em; }
.lede { max-width: 56ch; font-size: 18px; color: var(--ink-2); margin: 16px 0 28px; }
.search { max-width: 680px; }
.search-label { display: block; font-weight: 700; margin-bottom: 8px; }
.search-box { position: relative; }
#q { width: 100%; font: inherit; font-size: 18px; padding: 16px 18px; border: 2px solid var(--ink); border-radius: var(--r-md); background: var(--card); color: var(--ink); }
#q::placeholder { color: #827d70; }
.q-list { position: absolute; z-index: 15; left: 0; right: 0; top: calc(100% + 6px); margin: 0; padding: 6px; list-style: none;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow); max-height: 360px; overflow-y: auto; }
.q-list li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--r-sm); cursor: pointer; }
.q-list li[aria-selected="true"], .q-list li:hover { background: var(--paper-2); }
.q-code { flex: 0 0 auto; min-width: 46px; text-align: center; font: 700 13px/1 var(--mono); padding: 6px 6px; border-radius: 4px; background: var(--ink); color: var(--sign); }
.q-text { min-width: 0; }
.q-name { display: block; font-weight: 600; overflow-wrap: anywhere; }
.q-sub { display: block; font-size: 14px; color: var(--muted); }
.q-tips { margin-left: auto; flex: 0 0 auto; font-size: 13px; color: var(--muted); }
.hint { margin: 8px 0 0; font-size: 14px; color: var(--muted); }
.featured { display: flex; gap: 10px; align-items: baseline; margin-top: 22px; flex-wrap: wrap; }
.featured-label { font-weight: 700; font-size: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font: inherit; font-size: 14px; padding: 7px 12px; border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--card); color: var(--ink); cursor: pointer; min-height: 36px; }
.chip:hover { border-color: var(--ink); }

/* board */
.board-wrap { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 32px 0 40px; }
.hub-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px 24px; flex-wrap: wrap; margin-bottom: 20px; }
.hub-head > div:first-child { min-width: 0; flex: 1 1 320px; }
.hub-kind { margin: 0 0 6px; font-size: 15px; font-weight: 600; color: var(--muted); }
#hub-title { font-size: clamp(26px, 4vw, 40px); font-weight: 800; overflow-wrap: anywhere; }
.hub-meta { margin: 8px 0 0; color: var(--muted); }
.hub-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.tabs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; padding: 4px; border-radius: var(--r-md); background: var(--sign); }
.tab { font: inherit; border: 0; border-radius: var(--r-sm); background: transparent; color: var(--sign-ink); cursor: pointer;
  padding: 10px 4px 9px; display: flex; flex-direction: column; align-items: center; gap: 2px; min-height: 56px; }
.tab-num { font-size: 24px; font-weight: 850; line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.tab-sub { font-size: 12px; font-weight: 600; }
.tab:hover { background: rgba(22, 21, 15, .08); }
.tab[aria-selected="true"] { background: var(--ink); color: var(--sign); }
.buffer-note { margin: 10px 0 20px; font-size: 14px; color: var(--muted); }

.tips { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 14px; }
.tip { display: grid; grid-template-columns: 72px 1fr; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--card); overflow: hidden; box-shadow: var(--shadow); }
.tip-time { background: var(--ink); color: var(--sign); display: flex; flex-direction: column; align-items: center; justify-content: flex-start; padding: 14px 4px; text-align: center; }
.tip-time b { font-size: 30px; font-weight: 850; line-height: 1; font-variant-numeric: tabular-nums; }
.tip-time span { font-size: 13px; font-weight: 700; color: #f3e7b0; margin-top: 4px; }
.tip-body { padding: 14px 16px 14px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.tip-top { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.tag { font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: var(--r-pill); background: var(--paper-2); color: var(--ink-2); }
.tag-mine { background: var(--sign); color: var(--ink); }
.tip h3 { font-size: 18px; font-weight: 750; overflow-wrap: anywhere; }
.tip-split { margin: 0; font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.tip-how { margin: 0; font-size: 15px; overflow-wrap: anywhere; }
.tip-fee { margin: 0; font-size: 14px; }
.tip-links { display: flex; gap: 6px 16px; flex-wrap: wrap; font-size: 14px; margin-top: 2px; }
.tip-links a { font-weight: 600; }
.tip-src { color: var(--muted); font-size: 13px; margin: 0; overflow-wrap: anywhere; }
.empty { border: 2px dashed var(--line); border-radius: var(--r-md); padding: 24px; background: var(--paper); }
.empty p { margin: 0 0 10px; max-width: 60ch; }
.empty p:last-child { margin-bottom: 0; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 18px;
  border-radius: var(--r-pill); font: inherit; font-weight: 700; font-size: 15px; text-decoration: none; cursor: pointer; border: 2px solid transparent; text-align: center; }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: var(--ink-2); }
.btn-sign { background: var(--sign); color: var(--sign-ink); border-color: var(--ink); }
.btn-sign:hover { background: #ffd633; }
.btn-line { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-line:hover { background: var(--paper-2); }
.btn-text { font: inherit; font-size: 15px; background: none; border: 0; padding: 10px 6px; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; min-height: 44px; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 16px; }
.file-btn { position: relative; overflow: hidden; }
.file-btn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.file-btn:focus-within { outline: 3px solid var(--ink); outline-offset: 2px; box-shadow: 0 0 0 6px var(--sign); }

/* panels */
.split { display: grid; grid-template-columns: 1.15fr 1fr; gap: 20px; padding-top: 40px; padding-bottom: 20px; align-items: start; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); padding: 24px; min-width: 0; }
.panel h2 { font-size: 26px; font-weight: 800; }
.panel-sub { margin: 6px 0 18px; color: var(--muted); }
.trips { margin-top: 0; margin-bottom: 20px; width: min(1080px, calc(100% - 40px)); padding: 24px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; min-width: 0; }
.field label { font-weight: 650; font-size: 14px; }
.field input, .field select, .field textarea { font: inherit; width: 100%; min-width: 0; padding: 10px 12px; border: 1px solid #b9b1a0; border-radius: var(--r-sm); background: #fff; color: var(--ink); min-height: 44px; }
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ink); }
.row { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 12px; }
.row-2 { grid-template-columns: 1fr 1fr; }
.calc { margin: -4px 0 14px; font-size: 14px; font-weight: 600; }
.calc.bad { color: var(--warn); }
.form-msg { min-height: 1.5em; margin: 0 0 10px; font-size: 15px; font-weight: 600; }
.form-msg.ok { color: var(--ok); }
.form-msg.bad { color: var(--warn); }
.mini { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.mini li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--paper); }
.mini .mini-main { min-width: 0; flex: 1; }
.mini .mini-main b { display: block; overflow-wrap: anywhere; }
.mini .mini-main span { font-size: 14px; color: var(--muted); overflow-wrap: anywhere; }
.mini .mini-none { background: none; border-style: dashed; color: var(--muted); }
.mini button { flex: 0 0 auto; }
.review { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.review h3 { font-size: 18px; }
.review-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; max-height: 420px; overflow-y: auto; }
.review-list li { display: flex; gap: 10px; align-items: flex-start; padding: 10px; border: 1px solid var(--line); border-radius: var(--r-sm); }
.review-list input { width: 20px; height: 20px; margin-top: 2px; flex: 0 0 auto; }
.review-list label { min-width: 0; overflow-wrap: anywhere; }
.review-list .why { display: block; font-size: 14px; color: var(--warn); }
.review-list .meta { display: block; font-size: 14px; color: var(--muted); }

/* about */
.about { padding-top: 28px; padding-bottom: 48px; }
.about h2 { font-size: clamp(26px, 4vw, 36px); font-weight: 800; margin-bottom: 18px; }
.about-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.about-grid > div { border-top: 4px solid var(--ink); padding-top: 12px; }
.about h3 { font-size: 17px; margin-bottom: 6px; }
.about p { margin: 0; color: var(--ink-2); }
.foot { background: var(--ink); color: #d8d3c6; font-size: 14px; }
.foot-row { display: flex; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; padding-top: 22px; padding-bottom: 22px; }
.foot p { margin: 0; }
.foot a { color: #fff; }

/* trial card */
.tp-card { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 20px; background: rgba(22, 21, 15, .55); }
.tp-card[hidden] { display: none; }
.tp-box { width: min(420px, 100%); background: var(--card); border-radius: var(--r-md); padding: 26px; border-top: 8px solid var(--sign); display: flex; flex-direction: column; gap: 10px; }
.tp-box h2 { font-size: 24px; font-weight: 800; }
.tp-box p { margin: 0 0 6px; color: var(--ink-2); }
.tp-box .btn { width: 100%; }
.tp-box .tp-note { font-size: 14px; color: var(--muted); }

.toast { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 55; max-width: calc(100% - 40px);
  background: var(--ink); color: #fff; padding: 12px 18px; border-radius: var(--r-pill); font-weight: 600; font-size: 15px; box-shadow: var(--shadow); }
.toast[hidden] { display: none; }

@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .top-nav a { padding: 8px 6px; font-size: 14px; }
  .brand span:last-child { font-size: 15px; }
  .hero { padding-top: 32px; }
  .lede { font-size: 17px; }
  #q { font-size: 16px; }
  .tab-num { font-size: 20px; }
  .tab-sub { font-size: 11px; }
  .row, .row-2 { grid-template-columns: 1fr 1fr; }
  .row .field:first-child { grid-column: 1 / -1; }
  .row-2 .field { grid-column: 1 / -1; }
  .about-grid { grid-template-columns: 1fr; }
  .panel, .trips { padding: 18px; }
  .trips { width: calc(100% - 32px); }
  .hub-actions { width: 100%; }
  .hub-actions .btn { flex: 1 1 140px; }
  .tip { grid-template-columns: 60px 1fr; }
  .tip-time b { font-size: 26px; }
}
@media (max-width: 400px) {
  .top-nav a[href="#about"] { display: none; }
  .top-nav a { white-space: nowrap; }
  .brand span:last-child { max-width: 9.5em; line-height: 1.15; }
}
@media (prefers-reduced-motion: no-preference) {
  .btn, .chip, .tab { transition: background-color .15s ease, border-color .15s ease; }
}

.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.foot .legal { flex-basis: 100%; font-size: 12px; line-height: 1.5; color: #d8d3c6; }
.faq h3 { margin: 18px 0 4px; font-size: 17px; }
.faq p { margin: 0; max-width: 70ch; }
