/* City Daybook.
   Layout idea: pages read like a planner. Times sit in a mono hour column, a ruled line runs
   down every itinerary with a marigold dot at each stop, and section switches look like diary tabs. */
:root {
  --paper: #f3f4f7;          /* cool planner paper */
  --surface: #ffffff;
  --ink: #16213b;            /* deep navy */
  --muted: #5a6377;
  --line: #dde1e8;
  --rule: #c3cad7;           /* the planner's ruled lines */
  --brand: #16213b;          /* buttons and links */
  --brand-soft: #e7ebf3;
  --on-brand: #ffffff;
  --accent: #e3a72f;         /* marigold: markers, dots, highlights */
  --accent-ink: #8f5f06;     /* marigold dark enough for text */
  --tip: #fbf2dc;
  --photo: #e9ecf1;
  --photo-ink: #7d8699;
  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --radius: 6px;
  --wrap: 1180px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0e1423; --surface: #151d30; --ink: #e8ebf2; --muted: #9ba4b6; --line: #252f47; --rule: #34405c;
    --brand: #b9c8ef; --brand-soft: #1d2740; --on-brand: #0e1423;
    --accent: #f0b84a; --accent-ink: #f0b84a; --tip: #282312; --photo: #1b2438; --photo-ink: #6f7a90;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0e1423; --surface: #151d30; --ink: #e8ebf2; --muted: #9ba4b6; --line: #252f47; --rule: #34405c;
  --brand: #b9c8ef; --brand-soft: #1d2740; --on-brand: #0e1423;
  --accent: #f0b84a; --accent-ink: #f0b84a; --tip: #282312; --photo: #1b2438; --photo-ink: #6f7a90;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
html { scroll-behavior: smooth; }
body { background: var(--paper); color: var(--ink); font-family: var(--font-body); font-size: 16px; line-height: 1.62; -webkit-font-smoothing: antialiased; }
a { color: var(--brand); text-underline-offset: 3px; }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 500; line-height: 1.12; letter-spacing: -0.01em; text-wrap: balance; margin: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 3px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
@media (max-width: 480px) { .wrap { padding: 0 16px; } }
.sr { position: absolute; left: -9999px; }

/* Shared small type: the planner's printed labels */
.eyebrow, .label, .kindtag, .country, .glance h2, .rail h2, .connector .mode, .meta, .fact span, .chip .n {
  font-family: var(--font-mono); letter-spacing: .04em;
}
.eyebrow { font-size: 12px; text-transform: uppercase; color: var(--accent-ink); font-weight: 500; }

/* ---------- Top bar ---------- */
.topbar { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 62px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand .mark { color: var(--ink); flex: none; }
.brand b { font-family: var(--font-display); font-size: 21px; font-weight: 600; letter-spacing: -0.01em; }
.brand span { color: var(--muted); font-size: 13px; font-family: var(--font-mono); padding-left: 10px; border-left: 1px solid var(--line); }
.citypick { position: relative; }
.citypick select { appearance: none; border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: var(--radius); padding: 7px 34px 7px 12px; font: inherit; font-size: 14px; cursor: pointer; }
.citypick::after { content: ""; position: absolute; right: 13px; top: 50%; width: 6px; height: 6px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
@media (max-width: 560px) { .brand span { display: none; } }

/* ---------- Intro ---------- */
.intro { padding: 52px 0 32px; display: grid; grid-template-columns: 1.45fr 1fr; gap: 48px; align-items: end; }
.intro > div:first-child { display: flex; flex-direction: column; gap: 12px; }
.intro h1 { font-size: clamp(36px, 5vw, 58px); }
.intro p { color: var(--muted); max-width: 60ch; margin: 0; font-size: 17px; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.fact { padding: 14px 16px; border-left: 1px solid var(--line); }
.fact:first-child { border-left: 0; }
.fact b { display: block; font-family: var(--font-display); font-size: 34px; font-weight: 500; line-height: 1.1; font-variant-numeric: tabular-nums; }
.fact span { font-size: 12px; color: var(--muted); }
@media (max-width: 820px) { .intro { grid-template-columns: 1fr; gap: 24px; padding-top: 32px; } }

.how { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin: 4px 0 44px; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.how div { padding: 16px 18px 18px; font-size: 14px; color: var(--muted); border-left: 1px solid var(--line); counter-increment: how; }
.how div:first-child { border-left: 0; padding-left: 0; }
.how b { display: block; color: var(--ink); font-weight: 600; margin-bottom: 4px; font-size: 15px; }
.how b::before { content: "0" counter(how) "  "; font-family: var(--font-mono); color: var(--accent-ink); font-weight: 500; font-size: 12px; white-space: pre; }
.how { counter-reset: how; }
@media (max-width: 820px) { .how { grid-template-columns: 1fr 1fr; } .how div:nth-child(3) { border-left: 0; padding-left: 0; } }
@media (max-width: 480px) { .how { grid-template-columns: 1fr; } .how div { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); } .how div:first-child { border-top: 0; } }

/* ---------- Tabs (filters) and search ---------- */
.controls { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: flex-end; justify-content: space-between; padding: 8px 0 0; margin-bottom: 24px; border-bottom: 1px solid var(--rule); }
.controls h2 { padding-bottom: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 4px; }
.chip { border: 0; background: transparent; padding: 10px 14px 11px; font-size: 14px; cursor: pointer; color: var(--muted); border-bottom: 3px solid transparent; margin-bottom: -1px; border-radius: 0; }
.chip:hover { color: var(--ink); }
.chip[aria-pressed="true"] { color: var(--ink); font-weight: 600; border-bottom-color: var(--accent); }
.chip .n { margin-left: 6px; font-size: 11px; color: var(--muted); font-weight: 400; }
.search { position: relative; margin-bottom: 10px; }
.search input { width: 260px; max-width: 100%; border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: var(--radius); padding: 8px 12px 8px 34px; font: inherit; font-size: 14px; }
.search svg { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--muted); }
@media (max-width: 560px) { .search, .search input { width: 100%; } }

/* ---------- Cards (planner pages) ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; padding-bottom: 64px; }
.card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--ink); transition: border-color .15s, transform .15s, box-shadow .15s; position: relative; }
.card:hover { border-color: var(--rule); transform: translateY(-2px); box-shadow: 0 10px 24px rgb(22 33 59 / .08); }
.card .body { padding: 16px 18px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card h2 { font-size: 23px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.meta { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 12px; color: var(--muted); margin-top: auto; padding-top: 10px; border-top: 1px dashed var(--rule); font-variant-numeric: tabular-nums; }
.empty { padding: 48px 0; color: var(--muted); }
.card[hidden] { display: none; }

.cities { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 24px; padding-bottom: 64px; }
@media (max-width: 400px) { .cities { grid-template-columns: 1fr; } }
.citycard h2 { font-size: 34px; }
.citycard .country { font-size: 12px; color: var(--accent-ink); text-transform: uppercase; }
.citycard .kinds { display: flex; flex-wrap: wrap; gap: 6px; }
.citycard .kinds span { font-size: 12px; background: var(--brand-soft); color: var(--ink); padding: 2px 8px; border-radius: 3px; }
.soon { border: 1px dashed var(--rule); border-radius: var(--radius); display: grid; place-items: center; text-align: center; padding: 32px; color: var(--muted); min-height: 260px; }
.soon b { display: block; font-family: var(--font-display); font-size: 24px; font-weight: 500; color: var(--ink); margin-bottom: 6px; }

/* ---------- Photo slots: ruled like an empty planner page ---------- */
.photo { position: relative; background: var(--photo); aspect-ratio: 2 / 1; display: grid; place-items: center; overflow: hidden;
  background-image: repeating-linear-gradient(0deg, transparent 0 23px, color-mix(in srgb, var(--photo-ink) 9%, transparent) 23px 24px); }
.photo.r43 { aspect-ratio: 4 / 3; }
.photo.wide { aspect-ratio: 3 / 1; border-radius: var(--radius); }
.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo .ph { display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--photo-ink); font-size: 12px; font-family: var(--font-mono); text-align: center; padding: 6px 12px; background: var(--photo); border-radius: 4px; }

/* ---------- Breadcrumbs ---------- */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 24px 0 16px; font-size: 13px; font-family: var(--font-mono); color: var(--muted); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.crumbs .sep { opacity: .5; }

/* ---------- Itinerary hero ---------- */
.hero { display: grid; grid-template-columns: 1.5fr 1fr; gap: 40px; align-items: start; padding-bottom: 28px; }
.hero > div:first-child { display: flex; flex-direction: column; gap: 12px; }
.hero h1 { font-size: clamp(34px, 4.6vw, 54px); }
.hero .summary { font-size: 18px; color: var(--muted); max-width: 62ch; margin: 0; }
/* At a glance: a ruled notepad with a marigold margin line */
.glance { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px 18px 30px; position: relative;
  background-image: repeating-linear-gradient(180deg, transparent 0 27px, color-mix(in srgb, var(--rule) 55%, transparent) 27px 28px); background-position: 0 14px; }
.glance::before { content: ""; position: absolute; left: 16px; top: 0; bottom: 0; border-left: 2px solid var(--accent); opacity: .7; }
.glance h2 { font-size: 12px; text-transform: uppercase; font-weight: 500; color: var(--muted); margin-bottom: 10px; }
.glance dl { margin: 0; display: grid; gap: 12px; }
.glance dt { font-weight: 600; font-size: 14px; }
.glance dd { margin: 2px 0 0; font-size: 14px; color: var(--muted); }
.hero-photo { margin-bottom: 36px; }
@media (max-width: 860px) { .hero { grid-template-columns: 1fr; } }

/* ---------- The day: hour column, ruled line, stop dots ---------- */
.layout { display: grid; grid-template-columns: 230px 1fr; gap: 44px; padding-bottom: 72px; }
@media (max-width: 960px) { .layout { grid-template-columns: 1fr; } .rail { display: none; } }
.rail { position: sticky; top: 86px; align-self: start; max-height: calc(100vh - 100px); overflow: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 0 16px; }
.rail h2 { font-size: 12px; text-transform: uppercase; font-weight: 500; color: var(--muted); margin: 0 16px 8px; }
.rail ol { list-style: none; margin: 0; padding: 0; }
.rail ol a { display: grid; grid-template-columns: 46px 1fr; gap: 8px; padding: 6px 16px 6px 13px; border-left: 3px solid transparent; text-decoration: none; color: var(--muted); font-size: 13px; line-height: 1.35; }
.rail ol a .t { font-family: var(--font-mono); font-size: 12px; font-variant-numeric: tabular-nums; padding-top: 1px; }
.rail ol a:hover { color: var(--ink); background: var(--paper); }
.rail ol a.on { color: var(--ink); border-left-color: var(--accent); font-weight: 500; background: var(--paper); }
.rail ol a.minor { opacity: .72; }
.rail .dayname { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--accent-ink); padding: 12px 16px 4px; }
.rail .cta { margin: 16px 16px 0; }

.timeline { display: flex; flex-direction: column; position: relative; --hour: 86px; --gap: 36px; }
/* the ruled line */
.timeline::before { content: ""; position: absolute; top: 6px; bottom: 6px; left: calc(var(--hour) + var(--gap) / 2); border-left: 1px solid var(--rule); }
.block { display: grid; grid-template-columns: var(--hour) 1fr; gap: var(--gap); scroll-margin-top: 86px; position: relative; }
.block::before { content: ""; position: absolute; left: calc(var(--hour) + var(--gap) / 2 - 6px); top: 9px; width: 11px; height: 11px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--paper); }
.block:has(.meal)::before, .block:has(.rest)::before, .block:has(.drive)::before, .block:has(.swap)::before { background: var(--paper); border: 2px solid var(--rule); width: 11px; height: 11px; }
.time { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: 12px; color: var(--muted); padding-top: 3px; text-align: right; }
.time b { display: block; font-size: 19px; color: var(--ink); font-weight: 500; letter-spacing: -0.02em; }
@media (max-width: 600px) {
  .timeline { --hour: 0px; --gap: 22px; padding-left: 0; }
  .timeline::before { left: 5px; }
  .block { grid-template-columns: 1fr; gap: 6px; padding-left: 24px; }
  .block::before { left: 0; top: 6px; }
  .time { text-align: left; display: flex; gap: 8px; align-items: baseline; }
  .time b { font-size: 16px; }
}

.stop { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.stop .inner { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 14px; }
.stop h3 { font-size: 27px; }
.label { font-size: 11px; text-transform: uppercase; font-weight: 500; color: var(--muted); margin-bottom: 3px; }
.stop p { margin: 0; max-width: 68ch; }
.tipbox { background: var(--tip); border-radius: 4px; padding: 12px 14px 13px; position: relative; }
.tipbox .label { color: var(--accent-ink); }
.tipbox .label::before { content: "✎ "; }
.stop.meal, .stop.rest, .stop.drive, .stop.swap { background: transparent; border-style: dashed; border-color: var(--rule); }
.stop.meal .inner, .stop.rest .inner, .stop.drive .inner, .stop.swap .inner { padding: 16px 20px; gap: 10px; }
.stop.meal h3, .stop.rest h3, .stop.drive h3, .stop.swap h3 { font-size: 21px; }
.kindtag { display: inline-block; font-size: 11px; text-transform: uppercase; color: var(--accent-ink); margin-bottom: 4px; }
.mealrow { display: grid; grid-template-columns: 160px 1fr; gap: 16px; align-items: start; }
.mealrow .photo { border-radius: 4px; aspect-ratio: 4 / 3; }
@media (max-width: 600px) { .mealrow { grid-template-columns: 1fr; } }

.book { border-top: 1px dashed var(--rule); padding-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.book .what { font-size: 14px; color: var(--muted); }
.btns { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 4px; }
.btn { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; font-size: 14px; font-weight: 500; padding: 7px 13px; border-radius: var(--radius); border: 1px solid var(--brand); color: var(--brand); background: transparent; }
.btn:hover { background: var(--brand); color: var(--on-brand); }
.btn.solid { background: var(--brand); color: var(--on-brand); }
.btn.solid:hover { filter: brightness(1.2); }

/* Between the places: the travel instructions */
.connector { display: grid; grid-template-columns: var(--hour, 86px) 1fr; gap: var(--gap, 36px); }
.connector .line { display: none; }
.connector .move { grid-column: 2; display: flex; gap: 12px; align-items: flex-start; padding: 14px 0 16px; color: var(--muted); font-size: 14px; max-width: 70ch; }
.connector .mode { flex: none; font-size: 11px; text-transform: uppercase; color: var(--ink); background: var(--brand-soft); padding: 3px 8px; border-radius: 3px; margin-top: 1px; }
.connector.end .move { color: var(--ink); }
.connector.end .mode { background: var(--accent); color: #16213b; }
@media (max-width: 600px) { .connector { grid-template-columns: 1fr; padding-left: 24px; } .connector .move { grid-column: 1; } }

.dayhead { display: grid; grid-template-columns: var(--hour, 86px) 1fr; gap: var(--gap, 36px); margin: 4px 0 18px; scroll-margin-top: 86px; position: relative; z-index: 1; }
.dayhead h2 { grid-column: 2; font-family: var(--font-mono); font-size: 13px; font-weight: 500; text-transform: uppercase; letter-spacing: .08em; background: var(--ink); color: var(--paper); justify-self: start; padding: 5px 12px; border-radius: 3px; }
.daygap { height: 32px; }
@media (max-width: 600px) { .dayhead { grid-template-columns: 1fr; padding-left: 24px; } .dayhead h2 { grid-column: 1; } }

.trip-book { margin-top: 32px; background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--accent); border-radius: var(--radius); padding: 20px 22px; display: flex; flex-direction: column; gap: 10px; }
.trip-book h2 { font-size: 24px; margin-bottom: 4px; }

.related { border-top: 1px solid var(--rule); padding: 40px 0 64px; }
.related h2 { font-size: 30px; margin-bottom: 20px; }
.related .grid { padding-bottom: 0; }

/* ---------- City page: before you go ---------- */
.jump { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 10px; }
.btn-lg { display: inline-flex; align-items: center; gap: 10px; padding: 14px 24px; border-radius: var(--radius); font-size: 17px; font-weight: 600; text-decoration: none;
  background: var(--brand); color: var(--on-brand); border: 2px solid var(--brand); box-shadow: 0 8px 20px rgb(22 33 59 / .18); transition: transform .15s, box-shadow .15s; }
.btn-lg span { color: var(--accent); }
.btn-lg:hover { transform: translateY(-1px); box-shadow: 0 12px 26px rgb(22 33 59 / .24); color: var(--on-brand); }
.btn-lg.ghost { background: transparent; color: var(--brand); box-shadow: none; }
.btn-lg.ghost:hover { background: var(--brand-soft); color: var(--brand); }
@media (max-width: 480px) { .btn-lg { width: 100%; justify-content: center; } }

.guide { border-top: 1px solid var(--rule); padding: 32px 0 44px; display: grid; gap: 24px; }
.guide-head { display: flex; flex-direction: column; gap: 10px; max-width: 72ch; }
.guide-head h2 { font-size: clamp(28px, 3.4vw, 40px); }
.guide-head p { margin: 0; color: var(--muted); }
.guide-head .chips { margin-top: 4px; border-bottom: 1px solid var(--rule); }
.guide-head .chip { text-decoration: none; color: var(--muted); }
.guide-head .chip:hover { color: var(--ink); border-bottom-color: var(--accent); }
.guide-sec { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; display: flex; flex-direction: column; gap: 14px; scroll-margin-top: 86px; }
.guide-sec h3 { font-size: 27px; }
.guide-sec p { margin: 0; max-width: 72ch; }
.tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 4px; }
.tablewrap table { border-collapse: collapse; width: 100%; min-width: 620px; font-size: 14px; }
.tablewrap th, .tablewrap td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.tablewrap thead th { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); background: var(--paper); font-weight: 500; }
.tablewrap tbody th { font-weight: 600; }
.tablewrap tr:last-child th, .tablewrap tr:last-child td { border-bottom: 0; }
.essentials { margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 28px; }
.essentials > div { padding: 12px 0; border-top: 1px dashed var(--rule); }
.essentials dt { font-weight: 600; }
.essentials dd { margin: 2px 0 0; color: var(--muted); font-size: 15px; }
@media (max-width: 720px) { .essentials { grid-template-columns: 1fr; } .guide-sec { padding: 18px 16px; } }
.sectiontitle { font-size: 34px; padding-top: 8px; scroll-margin-top: 86px; }

/* ---------- Prose pages and footer ---------- */
.prose { max-width: 68ch; padding: 24px 0 72px; }
.prose h1 { font-size: clamp(32px, 4vw, 46px); margin-bottom: 16px; }
.prose h2 { font-size: 24px; margin: 28px 0 8px; }
.prose p { margin: 0 0 14px; }

footer { border-top: 1px solid var(--line); background: var(--surface); padding: 24px 0 40px; color: var(--muted); font-size: 13px; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
footer nav { display: flex; gap: 16px; }
footer a { color: var(--muted); }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* ---------- Booking checklist ---------- */
.ck-jump { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; font-family: var(--font-mono); font-size: 13px; color: var(--ink); text-decoration: none; background: var(--tip); padding: 6px 10px; border-radius: 4px; }
.ck-jump:hover { background: var(--accent); color: #16213b; }
.rail .cta .btn { width: 100%; justify-content: space-between; }
.ck-n { font-family: var(--font-mono); font-size: 12px; background: var(--accent); color: #16213b; border-radius: 3px; padding: 0 6px; }
.checklist { margin-top: 36px; background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--accent); border-radius: var(--radius); padding: 22px 24px 10px; scroll-margin-top: 86px; }
.ck-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--rule); }
.ck-head > div:first-child { display: flex; flex-direction: column; gap: 6px; max-width: 62ch; }
.ck-head h2 { font-size: 28px; }
.ck-head p { margin: 0; color: var(--muted); font-size: 15px; }
.ck-head .ck-ahead { color: var(--ink); }
.ck-progress { font-family: var(--font-mono); font-size: 13px; color: var(--muted); background: var(--paper); border: 1px solid var(--line); border-radius: 4px; padding: 8px 12px; white-space: nowrap; }
.ck-progress b { color: var(--ink); font-size: 16px; }
.ck-list { list-style: none; margin: 0; padding: 0; }
.ck { display: grid; grid-template-columns: 26px 1fr auto; gap: 6px 14px; align-items: start; padding: 14px 0; border-bottom: 1px dashed var(--rule); }
.ck:last-child { border-bottom: 0; }
.ck input { appearance: none; width: 20px; height: 20px; margin: 2px 0 0; border: 2px solid var(--rule); border-radius: 4px; background: var(--surface); cursor: pointer; display: grid; place-items: center; }
.ck input:checked { background: var(--accent); border-color: var(--accent); }
.ck input:checked::after { content: ""; width: 5px; height: 10px; border: solid #16213b; border-width: 0 2px 2px 0; transform: rotate(45deg) translate(-1px, -1px); }
.ck-main { display: flex; flex-direction: column; gap: 2px; cursor: pointer; }
.ck-when { font-family: var(--font-mono); font-size: 12px; color: var(--accent-ink); text-transform: uppercase; letter-spacing: .04em; }
.ck-where { font-weight: 600; }
.ck-what { color: var(--muted); font-size: 14px; }
.ck .btns { justify-content: flex-end; margin: 0; }
.ck:has(input:checked) .ck-main { opacity: .55; }
.ck:has(input:checked) .ck-where { text-decoration: line-through; text-decoration-color: var(--accent); }
@media (max-width: 760px) { .ck { grid-template-columns: 26px 1fr; } .ck .btns { grid-column: 2; justify-content: flex-start; } .checklist { padding: 18px 16px 6px; } }
