/* First Year. A wall calendar and a municipal poster: flat colour, hard rules, big figures.
   Square corners everywhere except true stickers. Boxes only for objects (a tool, a form, a figure). */
:root {
  --paper: #FFFDF7; --ink: #17181C; --ink2: #43454E; --line: #17181C; --soft: #EFEBDD; --warn: #FFE27A;
  --disp: 'Red Hat Display', 'Avenir Next', 'Segoe UI', system-ui, sans-serif;
  --text: 'Schibsted Grotesk', 'Avenir Next', 'Segoe UI', system-ui, sans-serif;
  --wrap: 1320px; --pad: clamp(16px, 4vw, 56px);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
html { font-size: 106.25%; }
@media (min-width: 900px) { html { font-size: 112.5%; } }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--text); font-size: 1rem; line-height: 1.55; font-variant-numeric: lining-nums; }
.num, table, time { font-variant-numeric: lining-nums; }
.tn { font-variant-numeric: lining-nums tabular-nums; }
h1, h2, h3, h4 { font-family: var(--disp); line-height: 1.08; margin: 0; letter-spacing: -0.015em; text-wrap: balance; }
p { margin: 0 0 1em; text-wrap: pretty; }
a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 3px; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; box-shadow: 0 0 0 6px var(--warn); }
img { max-width: 100%; height: auto; display: block; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; background: var(--ink); color: var(--paper); padding: 10px 14px; z-index: 50; }
.skip:focus { top: 8px; }
.ic { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* colour band: the twelve months as a strip */
.band, .foot-band { display: grid; grid-template-columns: repeat(12, 1fr); height: 10px; }
.band i, .foot-band i { display: block; }

/* top bar */
.top { max-width: var(--wrap); margin: 0 auto; padding: 14px var(--pad); display: flex; align-items: center; gap: 12px 28px; flex-wrap: wrap; border-bottom: 2px solid var(--line); }
.mark { font-family: var(--disp); font-weight: 900; font-size: 1.1rem; letter-spacing: -0.02em; text-decoration: none; text-transform: uppercase; line-height: 1; margin: 0; }
.mark-b { background: var(--ink); color: var(--paper); padding: 2px 7px 3px; }
.crumbs ol { list-style: none; display: flex; align-items: center; gap: 0; margin: 0; padding: 0; font-size: 0.89rem; }
.crumbs li + li::before { content: '/'; padding: 0 9px; color: var(--ink2); }
.crumbs a { display: inline-block; padding: 6px 0; }
.top-cta { margin-left: auto; font-weight: 700; font-size: 0.94rem; padding: 6px 0; }

/* hero */
.hero { max-width: var(--wrap); margin: 0 auto; padding: clamp(28px, 5vw, 64px) var(--pad) clamp(24px, 4vw, 48px); display: grid; gap: 32px 56px; grid-template-columns: minmax(0, 1fr); align-items: center; }
@media (min-width: 980px) { .hero { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } }
.kicker { font-weight: 700; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 18px; }
h1 { font-weight: 900; font-size: clamp(2.35rem, 5.2vw, 4.5rem); letter-spacing: -0.035em; line-height: 0.98; margin-bottom: 22px; max-width: 14ch; }
.lede { font-size: clamp(1.08rem, 1.5vw, 1.28rem); line-height: 1.5; max-width: 60ch; margin-bottom: 26px; }
.setup { display: none; gap: 18px 28px; flex-wrap: wrap; align-items: end; border-top: 2px solid var(--line); padding-top: 18px; }
.js .setup { display: flex; }
.js .nojs-note { display: none; }
.nojs-note { border-top: 2px solid var(--line); padding-top: 14px; font-size: 0.95rem; }
.setup label:not(.chip), .setup legend, .y-field > label:not(.switch), .y-field legend, .ahead-f label:not(.switch), .cal-opts legend { font-weight: 700; font-size: 0.95rem; display: block; margin-bottom: 6px; padding: 0; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
select, input[type=email], input:not([type]), .money-in input { font: inherit; color: var(--ink); background: #fff; border: 2px solid var(--line); border-radius: 0; height: 48px; padding: 0 12px; width: 100%; }
select { font-family: var(--disp); font-weight: 800; font-size: 1.15rem; padding-right: 40px; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 6l5 5 5-5' fill='none' stroke='%2317181C' stroke-width='2.4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 16px; min-width: 230px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; display: inline-flex; margin: 0; font-weight: 500; }
.chip input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: baseline; gap: 6px; min-height: 48px; padding: 11px 14px; border: 2px solid var(--line); background: #fff; font-size: 0.98rem; line-height: 1.3; }
.chip small { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 700; color: var(--ink2); }
.chip i { font-style: normal; color: var(--ink2); }
.chip input:checked + span { background: var(--ink); color: var(--paper); }
.chip input:checked + span small, .chip input:checked + span i { color: var(--paper); }
.chip input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 3px; box-shadow: 0 0 0 6px var(--warn); }
@media (max-width: 560px) { .f-town .chip small { display: none; } .f-town .chip span { padding: 9px 12px; min-height: 44px; } }
.town-note { font-size: 0.87rem; color: var(--ink2); margin: 8px 0 0; }
.partial-banner { margin: 18px 0 0; background: var(--warn); border: 2px solid var(--line); padding: 12px 16px; font-weight: 500; max-width: 62ch; }
.hero-w { margin: 0; justify-self: center; width: min(100%, 470px); }
.hero-w figcaption { font-size: 0.87rem; color: var(--ink2); text-align: center; margin-top: 10px; }
.wheel { width: 100%; height: auto; display: block; overflow: visible; }
.wedge path { stroke: var(--paper); stroke-width: 3; transition: transform .18s ease; transform-origin: 220px 220px; }
.wedge:hover path, .wedge:focus-visible path { transform: scale(1.035); stroke: var(--ink); }
.wedge:focus-visible { outline: none; box-shadow: none; }
.w-num { font-family: var(--disp); font-weight: 900; font-size: 30px; text-anchor: middle; letter-spacing: -1px; font-variant-numeric: lining-nums tabular-nums; }
.w-abbr { font-family: var(--text); font-weight: 700; font-size: 11.5px; text-anchor: middle; letter-spacing: 1.2px; }
.w-mark { fill: var(--ink); }
.w-hub { fill: var(--paper); stroke: var(--ink); stroke-width: 2; }
.w-c1 { font-family: var(--text); font-weight: 700; font-size: 12px; letter-spacing: 1.4px; text-transform: uppercase; text-anchor: middle; fill: var(--ink); }
.w-c2 { font-family: var(--disp); font-weight: 900; font-size: 40px; text-anchor: middle; letter-spacing: -1px; fill: var(--ink); }
.w-c3 { font-family: var(--disp); font-weight: 700; font-size: 19px; text-anchor: middle; fill: var(--ink); font-variant-numeric: lining-nums tabular-nums; }

/* ribbon: sticky month index */
.ribbon { position: sticky; top: 0; z-index: 20; background: var(--paper); border-top: 2px solid var(--line); border-bottom: 2px solid var(--line); }
.ribbon ol { list-style: none; margin: 0 auto; padding: 0; display: grid; grid-template-columns: repeat(12, 1fr); max-width: var(--wrap); }
.ribbon a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; background: var(--bg); color: var(--fg); text-decoration: none; font-family: var(--disp); font-weight: 800; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.03em; border-left: 2px solid var(--line); position: relative; }
.ribbon li:last-child a { border-right: 2px solid var(--line); }
.ribbon a:hover { box-shadow: inset 0 -6px 0 var(--fg); }
.ribbon a[aria-current] { box-shadow: inset 0 -6px 0 var(--fg), inset 0 6px 0 var(--fg); }
.ribbon a:focus-visible { z-index: 2; }
.r-n { font-size: 0.8rem; font-weight: 700; border: 1.5px solid currentColor; border-radius: 99px; min-width: 20px; height: 20px; display: inline-flex; align-items: center; justify-content: center; padding: 0 4px; }
@media (max-width: 860px) { .r-2, .r-n { display: none; } .ribbon a { border-left-width: 1px; font-size: 1rem; } }

/* shared section header */
section { scroll-margin-top: 64px; }
.sec-h { margin-bottom: clamp(22px, 3vw, 36px); max-width: 68ch; }
.sec-k { font-weight: 700; font-size: 0.86rem; text-transform: uppercase; letter-spacing: 0.07em; margin-bottom: 10px; }
h2 { font-weight: 900; font-size: clamp(1.75rem, 3.4vw, 2.75rem); letter-spacing: -0.03em; margin-bottom: 14px; }
.sec-p { font-size: 1.05rem; max-width: 64ch; margin-bottom: 0; }
.why, .week, .yours, .year-sec, .cal, .money, .ahead, .places, .others, .about, .sources { max-width: var(--wrap); margin: 0 auto; padding: clamp(40px, 6vw, 84px) var(--pad) 0; }

/* why */
.why { display: grid; gap: 32px 64px; }
@media (min-width: 980px) { .why { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } }
.why-a p { max-width: 64ch; }
.why-b { border: 2px solid var(--line); padding: 22px 24px 10px; align-self: start; background: #fff; }
.why-b h3 { font-size: 1.1rem; font-weight: 800; margin-bottom: 14px; }
.legend { margin: 0; }
.legend div { display: grid; grid-template-columns: 170px 1fr; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 0.94rem; }
.legend dt { font-weight: 700; display: flex; gap: 8px; align-items: center; }
.legend dd { margin: 0; }
@media (max-width: 520px) { .legend div { grid-template-columns: 1fr; gap: 2px; } }
.gap-l { background: var(--warn); font-weight: 700; font-size: 0.8em; text-transform: uppercase; letter-spacing: 0.05em; padding: 2px 7px; white-space: nowrap; }

/* first week */
.week-grid { display: grid; gap: 40px 56px; }
@media (min-width: 1080px) { .week-grid { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); } }
.fw-group + .fw-group { margin-top: 44px; }
.fw-group h3 { font-size: 1.32rem; font-weight: 900; padding-bottom: 10px; border-bottom: 4px solid var(--line); }
.fw-list, .items { list-style: none; margin: 0; padding: 0; }
.fw-item { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 0 18px; padding: 20px 0 18px; border-bottom: 1px solid var(--line); }
.fw-n { font-family: var(--disp); font-weight: 900; font-size: 2.6rem; line-height: 0.9; letter-spacing: -0.04em; }
.what h4 { font-size: 1.2rem; font-weight: 800; letter-spacing: -0.015em; margin-bottom: 8px; line-height: 1.2; }
.fw-item h4 { display: flex; gap: 10px; align-items: flex-start; }
.fw-item h4 .ic { margin-top: 1px; }
.what .body { margin-bottom: 10px; max-width: 66ch; }
.gap { background: repeating-linear-gradient(135deg, #FFF6CF 0 10px, #FFEFAE 10px 20px); border-left: 6px solid var(--ink); padding: 9px 12px; font-size: 0.94rem; margin-bottom: 12px; max-width: 66ch; }
.meta { margin: 0; display: flex; flex-wrap: wrap; gap: 4px 26px; font-size: 0.89rem; line-height: 1.45; }
.meta div { display: flex; gap: 8px; align-items: baseline; }
.meta dt { font-weight: 700; text-transform: uppercase; font-size: 0.8rem; letter-spacing: 0.07em; white-space: nowrap; }
.meta dd { margin: 0; }
.meta a { display: inline-block; padding: 3px 0; }
.dn-slot { border: 2px dashed var(--ink); padding: 12px 14px 4px; margin-top: 14px; max-width: 66ch; font-size: 0.94rem; background: #fff; position: relative; }
.dn-slot::before { content: ''; position: absolute; left: 22px; top: -11px; width: 18px; height: 18px; background: #fff; border-left: 2px dashed var(--ink); border-top: 2px dashed var(--ink); transform: rotate(45deg); }
.dn-l { font-family: var(--disp); font-weight: 800; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 4px; }
.dn-slot p:last-child { margin-bottom: 8px; }
.dn-big { margin-top: 28px; }
@media (min-width: 1080px) { .week-side { position: sticky; top: 76px; align-self: start; } }

/* tick */
.tick { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 700; font-size: 0.86rem; text-transform: uppercase; letter-spacing: 0.05em; align-self: start; min-height: 44px; padding: 4px 0; position: relative; }
.tick input, .switch input { position: absolute; opacity: 0; width: 32px; height: 32px; margin: 0; cursor: pointer; }
.box { width: 30px; height: 30px; border: 2px solid var(--line); background: #fff; flex: none; display: inline-block; position: relative; }
input:checked + .box { background: var(--ink); }
input:checked + .box::after { content: ''; position: absolute; left: 9px; top: 3px; width: 8px; height: 15px; border: solid var(--paper); border-width: 0 3px 3px 0; transform: rotate(45deg); }
input:focus-visible + .box { outline: 3px solid var(--ink); outline-offset: 3px; box-shadow: 0 0 0 6px var(--warn); }
.item.done h4, .fw-item.done h4 span { text-decoration: line-through; text-decoration-thickness: 2px; }
.item.done .body, .fw-item.done .body { color: var(--ink2); }
.switch { display: flex; gap: 12px; align-items: flex-start; position: relative; cursor: pointer; padding: 7px 0; font-weight: 500; line-height: 1.4; min-height: 44px; }
.switch span:last-child { padding-top: 3px; }

/* poster for the planned video */
.poster { margin: 0; position: relative; border: 2px solid var(--line); background: var(--ink); }
.poster img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; filter: grayscale(1) contrast(1.05); opacity: 0.42; }
.poster-t { position: absolute; inset: 0 0 auto 0; padding: 20px 22px; color: var(--paper); }
.poster-l { font-weight: 700; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.07em; margin-bottom: 12px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.poster-l span { background: var(--warn); color: var(--ink); padding: 2px 8px; }
.poster-h { font-family: var(--disp); font-weight: 900; font-size: clamp(1.45rem, 2.2vw, 1.9rem); line-height: 1.05; letter-spacing: -0.02em; margin-bottom: 10px; max-width: 16ch; }
.poster-p { font-size: 0.95rem; line-height: 1.4; margin: 0; max-width: 34ch; }
.poster figcaption { background: var(--paper); font-size: 0.8rem; padding: 6px 10px; color: var(--ink2); border-top: 2px solid var(--line); }
@media (max-width: 420px) { .poster img { aspect-ratio: 4 / 5; } }

/* your numbers */
.yours-f { display: grid; gap: 26px 44px; border: 2px solid var(--line); background: #fff; padding: clamp(18px, 3vw, 30px); }
@media (min-width: 900px) { .yours-f { grid-template-columns: 1fr 1.1fr 1fr; } }
.money-in { display: flex; align-items: center; border: 2px solid var(--line); background: #fff; max-width: 260px; }
.money-in span { padding: 0 4px 0 12px; font-family: var(--disp); font-weight: 800; font-size: 1.2rem; }
.money-in input { border: 0; height: 44px; padding-left: 2px; font-family: var(--disp); font-weight: 800; font-size: 1.2rem; font-variant-numeric: lining-nums tabular-nums; min-width: 0; }
.money-in:focus-within { outline: 3px solid var(--ink); outline-offset: 3px; box-shadow: 0 0 0 6px var(--warn); }
.money-in input:focus-visible { outline: none; box-shadow: none; }
.hint { font-size: 0.87rem; color: var(--ink2); margin: 8px 0 0; max-width: 52ch; line-height: 1.45; }

/* the year */
.year-h { display: grid; gap: 18px 56px; max-width: none; align-items: end; }
@media (min-width: 980px) { .year-h { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); } }
.ticks-note { font-size: 0.92rem; display: flex; gap: 14px 20px; align-items: flex-start; flex-wrap: wrap; }
.ticks-note p { margin: 0; flex: 1 1 320px; }
.btn-quiet { font: inherit; font-weight: 700; font-size: 0.9rem; background: none; border: 2px solid var(--line); padding: 0 14px; min-height: 44px; cursor: pointer; color: var(--ink); }
.btn-quiet:hover { background: var(--ink); color: var(--paper); }
.year { border-top: 4px solid var(--line); }
.month { display: grid; border-bottom: 4px solid var(--line); scroll-margin-top: 54px; }
@media (min-width: 900px) { .month { grid-template-columns: minmax(250px, 3fr) minmax(0, 9fr); } }
.m-head { background: var(--bg); color: var(--fg); padding: 20px 22px 22px; position: relative; }
@media (min-width: 900px) { .m-head { padding: 26px 26px 30px; border-right: 4px solid var(--line); } .m-head .m-in { position: sticky; top: 76px; } }
.m-in { position: relative; }
.m-motif { position: absolute; right: 0; top: -4px; width: 44px; height: 44px; stroke-width: 1.8; }
.m-ord { font-weight: 700; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 6px; }
.month h3 { display: flex; flex-direction: column; }
.m-num { font-weight: 900; font-size: clamp(5.2rem, 10vw, 9.5rem); line-height: 0.82; letter-spacing: -0.06em; margin-left: -0.04em; }
.m-name { font-weight: 800; font-size: clamp(1.5rem, 2.2vw, 1.9rem); letter-spacing: -0.02em; margin-top: 12px; }
.m-yr { font-weight: 500; }
.m-blurb { margin: 14px 0 0; font-size: 1rem; line-height: 1.42; max-width: 34ch; }
.m-count { margin: 14px 0 0; font-size: 0.84rem; font-weight: 700; border-top: 2px solid var(--fg); padding-top: 9px; }
@media (max-width: 899px) {
  .month h3 { flex-direction: row; align-items: flex-end; gap: 14px; }
  .m-num { font-size: 4.6rem; }
  .m-name { margin: 0 0 2px; }
  .m-blurb { max-width: 60ch; }
}
.m-body { padding: 0 0 6px; min-width: 0; }
@media (min-width: 900px) { .m-body { padding: 0 0 8px 30px; } }
.item { display: grid; grid-template-columns: 74px minmax(0, 1fr) auto; gap: 0 20px; padding: 22px 0 20px; border-bottom: 1px solid var(--line); scroll-margin-top: 70px; }
.items > .item:last-child { border-bottom: 0; }
.when { align-self: start; text-align: center; }
.when-d { border: 2px solid var(--line); background: #fff; }
.when-d .wd { display: block; background: var(--ink); color: var(--paper); font-weight: 700; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; padding: 3px 0 2px; }
.when-d .dd { display: block; font-family: var(--disp); font-weight: 900; font-size: 2.3rem; line-height: 1; padding: 6px 0 8px; letter-spacing: -0.03em; }
.when-m { border: 2px dashed var(--line); font-weight: 700; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; line-height: 1.25; padding: 12px 0; }
.kind { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.07em; margin-bottom: 6px; }
.kind .ic { width: 22px; height: 22px; }
.k-bill .kind span { background: var(--ink); color: var(--paper); padding: 1px 7px; }
.rule-n { color: var(--ink2); font-size: 0.92em; }
.m-empty { padding: 22px 0 6px; max-width: 60ch; }
.m-monthly { display: flex; gap: 10px; align-items: flex-start; margin: 0; padding: 14px 0 12px; border-top: 1px dashed var(--line); font-size: 0.9rem; line-height: 1.45; color: var(--ink2); }
.m-monthly strong { color: var(--ink); }
.m-monthly .ic { width: 20px; height: 20px; color: var(--ink); margin-top: 1px; }
.chk { white-space: nowrap; }
@media (max-width: 640px) {
  .item, .fw-item { grid-template-columns: minmax(0, 1fr); }
  .item .tick, .fw-item .tick { margin-top: 10px; }
  .fw-n { font-size: 2rem; margin-bottom: 8px; }
  .when { justify-self: start; margin-bottom: 12px; display: flex; align-items: stretch; }
  .when-d .wd { padding: 0 10px; display: flex; align-items: center; font-size: 0.8rem; }
  .when-d .dd { font-size: 1.5rem; padding: 4px 12px 5px; }
  .when-m { padding: 7px 12px; }
  .when-m br { display: none; }
}

/* calendar file */
.cal-grid { display: grid; gap: 32px 56px; }
@media (min-width: 980px) { .cal-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }
.cal-opts { border: 2px solid var(--line); background: #fff; padding: clamp(18px, 3vw, 28px); align-self: start; }
.cal-opts fieldset { margin-bottom: 18px; }
.btn { display: inline-flex; align-items: center; gap: 12px; background: var(--ink); color: var(--paper); border: 2px solid var(--ink); font: inherit; font-family: var(--disp); font-weight: 800; font-size: 1.1rem; padding: 12px 20px; min-height: 56px; text-decoration: none; cursor: pointer; line-height: 1.15; text-align: left; }
.btn small { display: block; font-family: var(--text); font-weight: 500; font-size: 0.82rem; margin-top: 3px; }
.btn:hover { background: var(--paper); color: var(--ink); }
.cal-prev h3, .ahead-b h3, .money h3, .about-b h3 { font-size: 1.12rem; font-weight: 800; margin-bottom: 12px; letter-spacing: -0.01em; }
.cal-list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--line); }
.cal-list li { display: grid; grid-template-columns: 172px minmax(0, 1fr); gap: 2px 16px; padding: 10px 0 10px 16px; border-bottom: 1px solid var(--line); border-left: 12px solid var(--bg); font-size: 0.95rem; line-height: 1.35; }
.cal-d { font-weight: 700; }
.cal-r { grid-column: 2; font-size: 0.83rem; color: var(--ink2); }
@media (max-width: 560px) { .cal-list li { grid-template-columns: 1fr; } .cal-r { grid-column: 1; } }

/* money */
.money-grid { display: grid; gap: 36px 64px; }
@media (min-width: 980px) { .money-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } }
table.costs { width: 100%; border-collapse: collapse; font-size: 0.98rem; }
.costs caption { text-align: left; font-size: 0.87rem; color: var(--ink2); padding-bottom: 10px; }
.costs th, .costs td { text-align: left; padding: 12px 12px 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.costs thead th { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.07em; border-bottom: 4px solid var(--line); padding-top: 0; }
.costs tbody th { font-weight: 700; }
.costs .how { display: block; font-weight: 400; color: var(--ink2); font-size: 0.92rem; margin-top: 2px; }
.costs .r { text-align: right; padding-right: 0; white-space: nowrap; }
.costs tbody .r { font-weight: 700; font-size: 1.1rem; }
.pn { font-variant-numeric: lining-nums proportional-nums; }
.costs tfoot th, .costs tfoot td { border-top: 4px solid var(--line); border-bottom: 0; font-family: var(--disp); font-weight: 900; font-size: 1.15rem; padding-top: 14px; }
.costs tfoot .r { font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -0.03em; line-height: 1; }
.fine { font-size: 0.86rem; color: var(--ink2); margin: 16px 0 30px; max-width: 70ch; }
.notin { margin: 0; padding-left: 1.1em; max-width: 64ch; }
.notin li { margin-bottom: 6px; }
.money-side h3 { margin-top: 30px; }
.dq { margin: 0 0 22px; border-left: 12px solid var(--ink); padding: 4px 0 4px 20px; }
.dq p { font-family: var(--disp); font-weight: 800; font-size: clamp(1.4rem, 2.3vw, 1.85rem); line-height: 1.15; letter-spacing: -0.02em; margin-bottom: 10px; }
.dq footer { font-size: 0.88rem; color: var(--ink2); }
.costs-partial { max-width: 66ch; font-size: 1.05rem; }

/* month ahead */
.ahead { display: grid; gap: 36px 64px; }
@media (min-width: 980px) { .ahead { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } }
.ahead-a > p { max-width: 60ch; }
.ahead-f { border: 2px solid var(--line); background: #fff; padding: clamp(18px, 3vw, 28px); margin-top: 22px; display: grid; gap: 16px; }
.row.two { display: grid; gap: 16px; }
@media (min-width: 620px) { .row.two { grid-template-columns: 1fr 1fr; } }
.opt { font-weight: 400; color: var(--ink2); font-size: 0.85em; }
.err { color: #9B1C1C; font-weight: 700; font-size: 0.9rem; margin: 6px 0 0; }
.ahead-m { margin: 0; font-size: 0.95rem; }
.ahead-f .btn { justify-self: start; }
.sent { border: 2px solid var(--line); background: #fff; padding: clamp(18px, 3vw, 28px); margin-top: 22px; }
.sent h3 { font-size: 1.3rem; font-weight: 900; margin-bottom: 10px; }
.proto { font-size: 0.84rem; background: var(--warn); display: inline-block; padding: 2px 8px; font-weight: 700; }
.sent summary { font-weight: 700; cursor: pointer; padding: 10px 0; min-height: 44px; }
.sent pre { background: var(--ink); color: var(--paper); padding: 16px; overflow-x: auto; font-size: 0.82rem; line-height: 1.5; margin: 0 0 16px; white-space: pre-wrap; word-break: break-word; }
.mail { border: 2px solid var(--line); background: #fff; transform: rotate(-1deg); box-shadow: 10px 10px 0 var(--bg); max-width: 460px; }
.mail-h { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 0.8rem; color: var(--ink2); padding: 10px 16px; border-bottom: 1px solid var(--line); margin: 0; }
.mail-s { font-family: var(--disp); font-weight: 900; font-size: 1.3rem; line-height: 1.15; padding: 16px 16px 4px; margin: 0; letter-spacing: -0.02em; }
.mail ul { list-style: none; margin: 0; padding: 6px 16px 4px; }
.mail li { padding: 9px 0; border-bottom: 1px solid var(--soft); font-size: 0.95rem; line-height: 1.35; }
.mail li .num { display: block; font-weight: 700; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; }
.mail-f { font-size: 0.84rem; color: var(--ink2); padding: 8px 16px 14px; margin: 0; }

/* places */
.ph-grid { display: grid; gap: 22px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .ph-grid { grid-template-columns: repeat(6, 1fr); } .ph-a { grid-column: span 4; } .ph-b { grid-column: span 2; } .ph-c { grid-column: span 2; } .ph-d { grid-column: span 2; } .ph-q { grid-column: span 2; align-self: center; } }
.ph { margin: 0; border: 2px solid var(--line); background: #fff; display: flex; flex-direction: column; }
.ph img { width: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.ph-a img { aspect-ratio: 16 / 9; }
@media (min-width: 720px) { .ph-b img { aspect-ratio: auto; flex: 1; min-height: 0; height: 100%; } }
.ph figcaption { padding: 10px 12px 12px; font-size: 0.92rem; line-height: 1.4; border-top: 2px solid var(--line); }
.cr { display: block; font-size: 0.8rem; color: var(--ink2); margin-top: 4px; }
.ph-q { margin: 0; }

/* other towns */
.tstat { border-top: 4px solid var(--line); padding: 22px 0 30px; display: grid; gap: 16px 40px; }
@media (min-width: 980px) { .tstat { grid-template-columns: minmax(0, 2.4fr) minmax(0, 9.6fr); } .tstat-h { position: sticky; top: 76px; align-self: start; } }
.tstat h3 { font-size: clamp(1.7rem, 2.6vw, 2.2rem); font-weight: 900; letter-spacing: -0.03em; }
.tstat-tax { font-size: 0.9rem; color: var(--ink2); margin: 12px 0 0; }
.tstat-cols { display: grid; gap: 22px 40px; }
@media (min-width: 720px) { .tstat-cols { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); } }
.tstat h4 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; font-family: var(--text); font-weight: 700; margin-bottom: 8px; }
.tstat ul { margin: 0; padding: 0; list-style: none; font-size: 0.95rem; line-height: 1.5; }
.tstat li { padding: 9px 0; border-top: 1px solid var(--line); }
.unknown li { padding-left: 14px; border-left: 6px solid var(--warn); border-top: 0; margin-bottom: 8px; padding-top: 4px; padding-bottom: 4px; }
.tstat a { display: inline-block; padding: 2px 0; }

/* about, sources, footer */
.about { display: grid; gap: 32px 64px; }
@media (min-width: 980px) { .about { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } }
.about-a p { max-width: 64ch; }
.about-b { border: 2px solid var(--line); background: #fff; padding: 22px 24px 8px; align-self: start; }
.contact { font-weight: 700; line-height: 1.9; }
.contact a { display: inline-block; }
.sources { padding-bottom: clamp(40px, 6vw, 84px); }
.src-list { columns: 1; margin: 22px 0 0; padding-left: 1.6em; font-size: 0.9rem; line-height: 1.45; }
@media (min-width: 900px) { .src-list { columns: 2; column-gap: 56px; } }
.src-list li::marker { font-variant-numeric: lining-nums proportional-nums; }
.src-list li { break-inside: avoid; padding: 5px 0; overflow-wrap: anywhere; }
.src-list a { display: inline-block; padding: 3px 0; }
.src-list span { color: var(--ink2); display: block; font-size: 0.86em; }
.foot { background: var(--ink); color: var(--paper); margin-top: 0; }
.foot-a { max-width: var(--wrap); margin: 0 auto; padding: 36px var(--pad) 30px; font-size: 0.92rem; }
.foot-a p { margin-bottom: 8px; max-width: 80ch; }
.foot .mark { margin-bottom: 14px; }
.foot .mark-b { background: var(--paper); color: var(--ink); }
.proto-strip { background: var(--soft); border-top: 2px solid var(--line); padding: 10px var(--pad); display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; font-size: 0.86rem; }
.proto-strip p { margin: 0; }
.proto-strip a { font-weight: 700; display: inline-block; padding: 4px 0; }
.proto-strip button { font: inherit; background: none; border: 2px solid var(--line); min-height: 40px; padding: 0 12px; cursor: pointer; color: var(--ink); font-weight: 700; }
[hidden] { display: none !important; }

/* reorder animation: only where the browser has view transitions and the reader allows motion */
@media (prefers-reduced-motion: no-preference) {
  ::view-transition-old(root), ::view-transition-new(root) { animation-duration: .22s; }
}

/* ---------- design fixes 2026-11-11 (critic pass) ---------- */
/* phones: three-letter months in a strip that scrolls sideways inside the ribbon (the page itself never does) */
@media (max-width: 860px) {
  .ribbon ol { display: flex; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; scroll-snap-type: x proximity; }
  .ribbon ol::-webkit-scrollbar { display: none; }
  .ribbon li { flex: 0 0 auto; scroll-snap-align: start; }
  .ribbon a { min-width: 62px; padding: 0 10px; font-size: .95rem; }
  .r-2 { display: inline; }
  .ribbon { position: sticky; }
  .ribbon::after { content: ""; position: absolute; right: 0; top: 0; bottom: 0; width: 26px; background: linear-gradient(90deg, rgba(255,255,255,0), var(--paper)); pointer-events: none; }
}
@media (max-width: 640px) { .th-x { display: none; } }
/* Dianne's note placeholder: one slim margin line, not a dashed box */
.dn-slot { border: 0; border-left: 3px solid var(--ink); padding: 1px 0 1px 12px; margin-top: 14px; background: none; font-size: .94rem; line-height: 1.45; }
.dn-slot::before { display: none; }
.dn-l { display: inline; font-size: .8rem; margin: 0 6px 0 0; }
.dn-slot p:last-child { display: inline; margin: 0; }
