/* Hallmark · shape: app screen · genre: playful · theme: custom (concept B "Calendar doors", chosen by the owner)
 * paper: oklch(19.6% 0.015 42) · accent: oklch(79.9% 0.13 201) · display: Rubik · body: Mulish
 * nav: wordmark, four links, a Menu disclosure on phones · footer: one note and four quiet links · signature: the calendar of counted days beside the number · states: empty, example, answer, today, past, far, error
 * axes: coffee/Rubik/cyan · posture: committed · contrast: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H5 E4 S4 R4 V4 · weakest: P, a countdown argues little; the page makes its case by drawing the wait as calendar days a visitor can count, weekends darker and the event day pink */
/* Hallmark · dismissed F19 · the four weights are the owner-approved concept B pairing: Mulish 600 for running text and 700 for labels, Rubik 800 for heads and day cells, 900 only for the big day count and its calendar day */

/* How Many Days Away: concept B "Calendar doors" (DESIGN.md). Tokens: tokens.css, printed inline in the head.
 * The parent theme's stylesheet is not loaded; this file styles everything. */

@font-face {
	font-family: "Rubik";
	src: url("../fonts/rubik-latin-var.woff2") format("woff2");
	font-weight: 700 900;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Mulish";
	src: url("../fonts/mulish-latin-var.woff2") format("woff2");
	font-weight: 400 800;
	font-style: normal;
	font-display: swap;
}
/* Metric-matched fallbacks: Arial scaled to the width of each face (measured on this page's own strings, 2026-11-19),
 * so lines break the same way before and after the web fonts arrive. Overrides are divided by size-adjust. */
@font-face { font-family: "Rubik fallback"; src: local("Arial Bold"), local("Arial-BoldMT"); font-weight: 600 900; size-adjust: 107%; ascent-override: 86.9%; descent-override: 23.4%; line-gap-override: 0%; }
@font-face { font-family: "Mulish fallback"; src: local("Arial Bold"), local("Arial-BoldMT"); font-weight: 600 900; size-adjust: 100.5%; ascent-override: 100.5%; descent-override: 24.9%; line-gap-override: 0%; }
@font-face { font-family: "Mulish fallback"; src: local("Arial"), local("ArialMT"); font-weight: 400 500; size-adjust: 104.9%; ascent-override: 96.3%; descent-override: 23.8%; line-gap-override: 0%; }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html, body { overflow-x: clip; }
body {
	margin: 0;
	background: var(--color-ground);
	color: var(--color-ink);
	font-family: var(--font-body);
	font-size: var(--text-body);
	font-size-adjust: var(--adjust-body);
	font-weight: 600;
	line-height: 1.5;
}
:focus-visible { outline: 3px solid var(--color-ink); outline-offset: 3px; border-radius: 4px; }
a { color: var(--color-link); font-weight: 800; text-decoration-thickness: 2px; text-underline-offset: 0.18em; }
a:hover { color: var(--color-ink); }
h1, h2, h3 { margin: 0; scroll-margin-top: var(--space-xl); font-family: var(--font-display); font-size-adjust: var(--adjust-display); font-weight: 800; overflow-wrap: break-word; text-wrap: balance; }
p, ul, ol, dl, dd, figure { margin: 0; }
p { text-wrap: pretty; }
ul, ol { padding: 0; list-style: none; }
img, svg { max-width: 100%; display: block; }
[hidden] { display: none !important; }
button, input, select { font: inherit; color: inherit; }
.icon { flex: none; }
.visually-hidden, .screen-reader-text:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link:focus { position: absolute; z-index: 10; top: var(--space-xs); left: var(--space-md); padding: var(--space-sm) var(--space-md); background: var(--color-cyan); color: var(--color-on-cyan); border-radius: var(--radius-field); font-weight: 800; }
.screen-reader-text:focus { position: fixed; z-index: 10; top: var(--space-xs); left: var(--space-xs); padding: var(--space-sm) var(--space-md); background: var(--color-ink); color: var(--color-ground); border-radius: var(--radius-field); }
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* ---------- Page frame ---------- */
.wrap { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.top { border-bottom: 2px solid var(--color-rule); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: var(--space-md); min-height: clamp(56px, 44px + 3.3vw, 92px); }
.brand { display: inline-flex; align-items: center; gap: var(--space-xs); min-height: 44px; color: var(--color-ink); font-family: var(--font-display); font-size-adjust: var(--adjust-display); font-size: clamp(1.25rem, 1.06rem + 0.76vw, 1.75rem); font-weight: 800; letter-spacing: -0.01em; line-height: 1; text-decoration: none; }
.brand-mark { flex: none; width: 32px; height: 32px; }
.mk-d { fill: var(--color-raised); stroke: var(--color-rule); }
.mk-c { fill: var(--color-cyan); }
.mk-e { fill: var(--color-pink); }
.nav-list { display: flex; flex-wrap: wrap; gap: var(--space-xs) var(--space-lg); }
.nav-list a { display: flex; align-items: center; min-height: 44px; padding-inline: var(--space-xs); color: var(--color-ink); font-weight: 700; text-decoration: none; }
.nav-list a:hover, .nav-list a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 0.3em; }
.menu { display: none; position: relative; }
.menu summary { display: flex; align-items: center; gap: var(--space-xs); min-height: 44px; padding-inline: var(--space-md); border: 2px solid var(--color-edge); border-radius: var(--radius-field); font-weight: 800; cursor: pointer; list-style: none; }
.menu summary::-webkit-details-marker { display: none; }
.menu .nav-list { position: absolute; z-index: 5; right: 0; top: calc(100% + var(--space-xs)); flex-direction: column; gap: 0; min-width: 220px; padding: var(--space-xs); background: var(--color-panel); border: 2px solid var(--color-edge); border-radius: var(--radius-row); }
.menu .nav-list a { padding-inline: var(--space-md); }
@media (max-width: 47.99rem) {
	.top .nav { display: none; }
	.menu { display: block; }
}

main { padding-block: var(--space-page) var(--space-3xl); }
.foot { border-top: 2px solid var(--color-rule); padding-block: var(--space-xl); }
.foot .wrap { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: var(--space-lg); }
.foot-note { margin-top: var(--space-xs); color: var(--color-muted); font-size: var(--text-md); }
.foot .nav-list a { font-size: var(--text-md); }
.crumbs { margin-top: var(--space-3xl); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: var(--space-xs); color: var(--color-muted); font-size: var(--text-md); }
.crumbs li + li::before { content: "›" / ""; margin-right: var(--space-xs); }
.crumbs a { display: inline-flex; align-items: center; min-height: 44px; }
.crumbs li { display: inline-flex; align-items: center; min-height: 44px; }

/* ---------- Controls ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: var(--control); padding: 0 var(--space-lg); background: var(--color-cyan); color: var(--color-on-cyan); border: 0; border-radius: var(--radius-field); font-size: 1.125rem; font-weight: 800; line-height: 1.1; text-align: center; text-decoration: none; cursor: pointer; transition: background-color 120ms ease-out, transform 120ms ease-out; }
.btn:hover { background: var(--color-cyan-hover); color: var(--color-on-cyan); }
.btn:active { transform: translateY(1px); }
.btn--second { background: transparent; color: var(--color-ink); border: 2px solid var(--color-ink); }
.btn--second:hover { background: var(--color-ink); color: var(--color-ground); }
.quiet { display: inline-flex; align-items: center; gap: var(--space-xs); min-height: 44px; padding: 0; background: none; border: 0; color: var(--color-link); font-weight: 800; cursor: pointer; }
.quiet:hover { color: var(--color-ink); }

/* ---------- First screen: heading, answer, tool, calendar ---------- */
.hero { display: flex; flex-direction: column; }
.hero-head h1 { font-size: var(--text-h1); font-weight: 900; line-height: 1.02; letter-spacing: -0.025em; }
.lead { margin-top: var(--space-sm); color: var(--color-muted); font-size: var(--text-lg); font-weight: 700; line-height: 1.4; }
[data-hmd="answer"] { margin-top: var(--space-lg); }
[data-hmd="tool"] { margin-top: var(--space-lg); }
[data-hmd="calendar"] { margin-top: var(--space-xl); }
[data-hmd="tiles"]:not(:empty) { margin-top: var(--space-3xl); }
[data-hmd="live"] { margin-top: var(--space-lg); }

.answer-label { font-family: var(--font-body); font-size-adjust: var(--adjust-body); font-size: var(--text-xl); font-weight: 800; line-height: 1.3; }
.answer-big { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: var(--space-sm); margin-top: var(--space-xs); font-variant-numeric: tabular-nums; font-family: var(--font-display); font-size-adjust: none; }
.answer-num { font-size: calc(var(--text-num) * var(--k, 1)); font-weight: 900; font-variant-numeric: tabular-nums; line-height: 0.8; letter-spacing: -0.04em; }
/* longer numbers step down so the unit stays on the line */
.answer-num--n3 { --k: 0.74; }
.answer-num--n4, .answer-num--n5 { --k: 0.5; }
.answer-num--n6, .answer-num--n7 { --k: 0.38; }
.answer-num--word { --k: 0.5; line-height: 1; letter-spacing: -0.03em; }
.answer-unit { font-size: var(--text-unit); font-weight: 800; line-height: 1; letter-spacing: -0.02em; }
.answer-line { margin-top: var(--space-md); font-size: var(--text-lg); font-weight: 700; line-height: 1.45; }
.answer-action { margin-top: var(--space-md); }
.is-example .answer-num, .is-example .answer-unit { color: var(--color-dim); }

.tool { display: flex; flex-direction: column; gap: var(--space-sm); padding: var(--space-lg) var(--space-md); background: var(--color-panel); border-radius: var(--radius-panel); }
.tool-h { font-size: clamp(1.375rem, 1.28rem + 0.38vw, 1.625rem); line-height: 1.1; }
.fields { display: grid; gap: var(--space-md); }
.field label { display: block; margin-bottom: var(--space-xs); color: var(--color-muted); font-size: var(--text-label); font-weight: 700; line-height: 1.3; }
.field input, .field select { display: block; width: 100%; min-height: var(--control); margin: 0; padding: 0 var(--space-md); background: var(--color-raised); color: var(--color-ink); border: 2px solid var(--color-edge); border-radius: var(--radius-field); font-weight: 700; line-height: 1.2; }
.field input[aria-invalid="true"] { border-color: var(--color-pink); box-shadow: inset 0 0 0 1px var(--color-pink); }
.select { position: relative; display: block; }
.select select { appearance: none; padding-right: 44px; }
.select .icon { position: absolute; right: 14px; top: 50%; translate: 0 -50%; pointer-events: none; }
@media (min-width: 30rem) {
	.tool { padding-inline: var(--space-lg); }
	.fields { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: end; }
}

.live-line { display: flex; align-items: flex-start; gap: var(--space-sm); color: var(--color-muted); }
.live-line .icon { margin-top: var(--space-2xs); color: var(--color-link); }
.live-line strong { color: var(--color-ink); font-weight: 800; font-variant-numeric: tabular-nums; }
.copy { display: flex; align-items: center; gap: var(--space-sm); margin-top: var(--space-xs); }
.tip { color: var(--color-muted); font-size: var(--text-md); font-weight: 700; }
.quiet[data-copied] .icon { color: var(--color-cyan-deep); }

.cal { display: flex; flex-direction: column; gap: var(--space-months); }
.cal-month { display: flex; flex-direction: column; gap: var(--space-sm); }
.cal-title { font-family: var(--font-display); font-size-adjust: var(--adjust-display); font-size: var(--text-h3); font-weight: 800; line-height: 1.1; }
.cal-week, .cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: var(--space-cell); }
.cal-week { color: var(--color-muted); font-size: clamp(0.875rem, 0.85rem + 0.1vw, 0.9375rem); font-weight: 700; line-height: 1.2; text-align: center; }
.cal-cell { display: flex; flex-direction: column; align-items: center; justify-content: center; aspect-ratio: 1; background: var(--color-panel); color: var(--color-dim); border-radius: var(--radius-cell); forced-color-adjust: none; }
.cal-cell b { font-family: var(--font-display); font-size-adjust: var(--adjust-display); font-size: var(--text-cell); font-weight: 800; line-height: 1; }
.cal-cell small { display: none; margin-top: var(--space-2xs); font-size: 0.875rem; font-weight: 800; line-height: 1; letter-spacing: -0.01em; }
.cal-cell.is-t { color: var(--color-ink); border: clamp(3px, 2.6px + 0.1vw, 4px) solid var(--color-ink); }
.cal-cell.is-c { background: var(--color-cyan); color: var(--color-on-cyan); }
.cal-cell.is-w { background: var(--color-cyan-deep); color: var(--color-on-cyan); }
.cal-cell.is-e, .cal-cell.is-et { background: var(--color-pink); color: var(--color-on-pink); }
.cal-cell.is-e b, .cal-cell.is-et b { font-weight: 900; }
.cal-cell.is-et { border: clamp(3px, 2.6px + 0.1vw, 4px) solid var(--color-ink); }
.cal-gap { padding: var(--space-md) var(--space-lg); background: var(--color-panel); color: var(--color-muted); border-radius: var(--radius-row); font-weight: 700; }
.cal-gap b { margin-right: 2px; color: var(--color-ink); font-family: var(--font-display); font-size-adjust: var(--adjust-display); font-size: var(--text-h3); font-weight: 800; line-height: 1; }
.cal-legend { display: flex; flex-wrap: wrap; gap: var(--space-sm) var(--space-lg); font-size: var(--text-md); font-weight: 700; line-height: 1.3; }
.cal-legend li { display: flex; align-items: center; gap: var(--space-xs); }
.cal-key { flex: none; width: 24px; height: 24px; background: var(--color-panel); border-radius: 7px; forced-color-adjust: none; }
.cal-key.is-c { background: var(--color-cyan); }
.cal-key.is-w { background: var(--color-cyan-deep); }
.cal-key.is-t { border: 4px solid var(--color-ink); }
.cal-key.is-e, .cal-key.is-et { background: var(--color-pink); }
.cal-key.is-et { border: 4px solid var(--color-ink); }

@media (min-width: 64rem) {
	.hero {
		display: grid;
		grid-template-columns: minmax(0, 576fr) minmax(0, 560fr);
		grid-template-rows: auto auto auto auto 1fr auto;
		grid-template-areas: "head cal" "tool cal" "answer cal" "live cal" ". cal" "tiles tiles";
		column-gap: var(--space-2xl);
	}
	.hero-head { grid-area: head; }
	[data-hmd="tool"] { grid-area: tool; margin-top: 28px; }
	[data-hmd="answer"] { grid-area: answer; margin-top: var(--space-xl); }
	[data-hmd="live"] { grid-area: live; margin-top: var(--space-md); }
	[data-hmd="calendar"] { grid-area: cal; margin-top: var(--space-xs); }
	[data-hmd="tiles"] { grid-area: tiles; }
	.cal-cell small { display: block; }
}

/* ---------- The same wait, counted other ways ---------- */
.counts { display: flex; flex-direction: column; gap: var(--space-stack); }
.counts h2, .others h2, .how h2, .prose h2 { font-size: var(--text-h2); font-variant-numeric: tabular-nums; line-height: 1.1; letter-spacing: -0.015em; }
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-sm); }
.tile { container-type: inline-size; display: flex; flex-direction: column-reverse; justify-content: space-between; gap: var(--space-sm); min-height: clamp(104px, 77px + 6.9vw, 176px); padding: var(--space-tile); background: var(--color-panel); border-radius: 20px; }
.tile--wide { grid-column: span 2; }
.tile dt { color: var(--color-muted); font-size: var(--text-md); font-weight: 700; line-height: 1.3; }
.tile dd { font-family: var(--font-display); font-size-adjust: var(--adjust-display); font-size: clamp(1.5rem, 26cqi, var(--text-tile)); font-weight: 800; line-height: 1; letter-spacing: -0.02em; text-wrap: balance; }
@media (min-width: 48rem) {
	.tiles { grid-template-columns: repeat(auto-fit, minmax(124px, 1fr)); gap: var(--space-md); }
}

/* ---------- Other countdowns and how the days are counted ---------- */
.split { display: grid; gap: var(--space-3xl); margin-top: var(--space-3xl); }
.others, .how { display: flex; flex-direction: column; gap: var(--space-stack); }
.rows { display: flex; flex-direction: column; gap: var(--space-sm); }
.row { display: flex; align-items: center; gap: var(--space-md); padding: var(--space-xs) var(--space-xs) var(--space-xs) var(--space-row); background: var(--color-panel); color: var(--color-ink); border: 3px solid var(--color-panel); border-radius: var(--radius-row); font-weight: 600; text-decoration: none; }
a.row:hover { border-color: var(--color-ink); color: var(--color-ink); }
.row.is-current { border-color: var(--color-pink); }
.row-name { flex: 1 1 auto; min-width: 0; font-size: clamp(1.125rem, 1.05rem + 0.29vw, 1.3125rem); font-weight: 800; line-height: 1.25; }
.row-date { flex: 0 0 auto; color: var(--color-muted); line-height: 1.3; }
.row-days { flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; width: clamp(64px, 55px + 2.3vw, 88px); height: clamp(56px, 53px + 0.76vw, 64px); background: var(--color-raised); border-radius: var(--radius-field); font-size: 0.875rem; font-weight: 800; line-height: 1; }
.row-days b { font-family: var(--font-display); font-size-adjust: var(--adjust-display); font-size: clamp(1.5rem, 1.36rem + 0.57vw, 1.875rem); font-weight: 900; }
.row-days--word b { font-size: 1.0625rem; }
.is-current .row-days { background: var(--color-pink); color: var(--color-on-pink); }
.more a { display: inline-flex; align-items: center; gap: var(--space-xs); min-height: 44px; text-decoration: none; }
.how-list { display: flex; flex-direction: column; gap: var(--space-lg); counter-reset: how; }
.how-list li { position: relative; max-width: var(--measure); min-height: 2.5rem; padding-left: 3.25rem; counter-increment: how; }
.how-list li::before { content: counter(how); position: absolute; left: 0; top: 0; color: var(--color-link); font-family: var(--font-display); font-size: var(--text-h2); font-weight: 900; line-height: 0.9; }
@media (max-width: 47.99rem) {
	.row { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name days" "date days"; column-gap: var(--space-md); row-gap: 2px; }
	.row-name { grid-area: name; align-self: end; }
	.row-date { grid-area: date; align-self: start; font-size: var(--text-md); }
	.row-days { grid-area: days; }
}
@media (min-width: 48rem) {
	.row-date { flex-basis: 200px; }
}
@media (min-width: 64rem) {
	.split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: var(--space-2xl); }
}

/* ---------- Copy under the tool ---------- */
.prose { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-3xl); margin-top: var(--space-3xl); }
.prose section { display: flex; flex-direction: column; gap: var(--space-lg); }
.prose p, .prose li { max-width: var(--measure); }
.prose .duo { display: grid; gap: var(--space-lg) var(--space-2xl); align-items: start; }
.prose .duo > div { display: flex; flex-direction: column; gap: var(--space-md); }
.years { width: 100%; border-collapse: separate; border-spacing: 0 var(--space-xs); font-variant-numeric: tabular-nums; }
.years th, .years td { padding: var(--space-sm) var(--space-md); background: var(--color-panel); text-align: left; }
.years thead th { background: none; color: var(--color-muted); font-size: var(--text-label); font-weight: 700; padding-block: 0; }
.years tbody th { border-radius: var(--radius-field) 0 0 var(--radius-field); font-family: var(--font-display); font-size-adjust: var(--adjust-display); font-size: var(--text-xl); font-weight: 800; }
.years tbody td:last-child { border-radius: 0 var(--radius-field) var(--radius-field) 0; }
.years td:nth-child(2) { white-space: nowrap; }
@media (max-width: 29.99rem) {
	.years th, .years td { padding-inline: var(--space-xs); font-size: var(--text-label); }
	.years tbody th { font-size: var(--text-lg); }
	.years th:first-child, .years td:first-child { padding-left: var(--space-sm); }
	.years td:nth-child(2):not(:last-child) { white-space: normal; }
}
.faq { display: grid; gap: var(--space-sm); align-items: start; }
.faq details { background: var(--color-panel); border-radius: var(--radius-row); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: var(--space-md); min-height: 64px; padding: var(--space-sm) var(--space-lg); font-size: var(--text-lg); font-weight: 800; line-height: 1.3; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+" / ""; flex: none; color: var(--color-link); font-family: var(--font-display); font-size: 1.75rem; font-weight: 800; line-height: 1; }
.faq details[open] summary::after { content: "−" / ""; }
.faq details > p { padding: 0 var(--space-lg) var(--space-lg); }
.faq details:not([open]) > p { display: none; }
@media (min-width: 64rem) {
	.prose .duo { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
	.faq { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--space-md); }
}


/* ---------- Fullscreen timers and live clocks (timer.php) ---------- */
/* The panel fills the first screen under the header; in full screen it takes the whole screen and keeps only the
 * face and the controls. Speech cards are the one place with signal colours: green, amber and red are what a
 * speaker reads from across the room (work/DECISIONS.md). */
.timer { --card-green: oklch(70% 0.17 150); --card-amber: oklch(82% 0.16 80); --card-red: oklch(58% 0.21 27);
	display: grid; align-content: center; gap: var(--space-md); min-height: min(calc(100svh - 120px), 920px); padding: var(--space-lg) var(--space-md); background: var(--color-panel); border-radius: var(--radius-panel); color: var(--color-ink); text-align: center; }
.timer-title { color: var(--color-muted); font-size: var(--text-xl); font-weight: 800; line-height: 1.2; letter-spacing: -0.01em; }
.timer-face { display: grid; justify-items: center; gap: var(--space-sm); }
.timer-digits, .clock-part dd { font-family: var(--font-display); font-size-adjust: none; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 0.9; letter-spacing: -0.03em; }
.timer-digits { font-size: clamp(4.5rem, 24vw, 15rem); }
.timer-digits[data-len="long"] { font-size: clamp(3.5rem, 17vw, 11rem); }
.timer-phase { color: var(--color-muted); font-size: var(--text-xl); font-weight: 800; }
.timer-bar { width: min(100%, 640px); height: 8px; overflow: hidden; background: var(--color-raised); border-radius: 4px; }
.timer-bar span { display: block; height: 100%; background: var(--color-cyan); transform-origin: left; transition: transform 200ms linear; }
.disc { width: min(72vw, 46svh, 420px); aspect-ratio: 1; border-radius: 50%; background: conic-gradient(var(--color-pink) calc(var(--left, 1) * 360deg), var(--color-raised) 0); }
.timer--disc .timer-digits { font-size: clamp(3rem, 14vw, 7rem); }
.clock-parts { display: grid; grid-auto-flow: column; justify-content: center; column-gap: clamp(10px, 3vw, 48px); }
.clock-part { display: flex; flex-direction: column-reverse; align-items: center; gap: var(--space-xs); }
.clock-part dt { color: var(--color-muted); font-size: var(--text-md); font-weight: 700; }
.clock-part dd { font-size: clamp(2.5rem, 13vw, 9rem); }
.timer-greet { font-family: var(--font-display); font-size: clamp(3rem, 12vw, 8rem); font-weight: 900; line-height: 1; color: var(--color-pink); }
.is-final .clock-part dd, .is-over .timer-digits { color: var(--color-pink); }
.timer-controls { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: var(--space-sm); }
.timer-controls .btn { min-width: 8.5rem; }
.timer-sound { padding-inline: var(--space-sm); }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-xs); padding: 0; list-style: none; }
.chip { display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--space-md); border: 2px solid var(--color-rule); border-radius: 999px; color: var(--color-ink); font-weight: 800; font-variant-numeric: tabular-nums; text-decoration: none; }
.chip:hover { border-color: var(--color-ink); color: var(--color-ink); }
.chip[aria-current] { background: var(--color-cyan); border-color: var(--color-cyan); color: var(--color-on-cyan); }
.timer-set { display: flex; flex-wrap: wrap; justify-content: center; align-items: end; gap: var(--space-sm); text-align: left; }
.timer-set .field { width: 8.5rem; }
.timer-hint { flex-basis: 100%; color: var(--color-muted); font-size: var(--text-label); text-align: center; }
.timer-obs { width: min(100%, 560px); margin-inline: auto; text-align: left; }
.timer-keys { color: var(--color-dim); font-size: var(--text-label); }
.timer-laps { display: grid; gap: var(--space-2xs); max-height: 9rem; overflow-y: auto; padding: 0; list-style: none; font-variant-numeric: tabular-nums; font-weight: 700; }
.timer-after { margin-top: var(--space-3xl); }
.timer-after .prose { margin-top: var(--space-xl); }
.timer[data-card="green"] { background: var(--card-green); --color-ink: oklch(20% 0.03 150); --color-muted: oklch(28% 0.04 150); }
.timer[data-card="amber"] { background: var(--card-amber); --color-ink: oklch(22% 0.04 70); --color-muted: oklch(30% 0.05 70); }
.timer[data-card="red"] { background: var(--card-red); --color-ink: oklch(99% 0.005 27); --color-muted: oklch(94% 0.02 27); }
.timer.is-flash { animation: timer-flash 1.4s ease-out; }
@keyframes timer-flash { 0%, 40% { box-shadow: inset 0 0 0 12px var(--color-pink); } 100% { box-shadow: inset 0 0 0 0 var(--color-pink); } }
@media (hover: none) {
	.timer-keys { display: none; }
}
.timer.is-full, .timer:fullscreen { position: fixed; inset: 0; z-index: 100; width: 100%; min-height: 100dvh; margin: 0; border-radius: 0; }
.timer:fullscreen::backdrop { background: var(--color-ground); }
.timer.is-full .timer-presets, .timer.is-full .timer-set, .timer.is-full .timer-keys, .timer.is-full .timer-obs, .timer.is-full .timer-laps { display: none; }
.timer.is-full .timer-digits { font-size: min(30vw, 58vh); }
.timer.is-full .timer-digits[data-len="long"] { font-size: min(21vw, 48vh); }
.timer.is-full.timer--disc .timer-digits { font-size: min(12vw, 14vh); }
.timer.is-full .disc { width: min(80vw, 62vh); }
.timer.is-full .clock-part dd { font-size: min(17vw, 40vh); }
.timer.is-full .timer-greet { font-size: min(13vw, 30vh); }
.timer.is-full .timer-controls { opacity: 0.35; transition: opacity 200ms ease-out; }
.timer.is-full .timer-controls:hover, .timer.is-full .timer-controls:focus-within, .timer.is-full:not(.is-running) .timer-controls { opacity: 1; }
.timer-locked { overflow: hidden; }
/* view=bare: the digits alone on a clear page, for a browser source in a broadcast scene */
:root:has(.timer-bare), .timer-bare { background: transparent; }
.timer-bare .top, .timer-bare .foot, .timer-bare .skip-link, .timer-bare .timer-after, .timer-bare .timer-title, .timer-bare .timer-controls, .timer-bare .timer-presets, .timer-bare .timer-set, .timer-bare .timer-keys, .timer-bare .timer-obs, .timer-bare .timer-bar { display: none; }
.timer-bare main { padding: 0; }
.timer-bare .timer { min-height: 100vh; padding: 0; background: transparent; }
.timer-bare .timer-digits { font-size: min(30vw, 80vh); }
.timer-ink-white .timer { --color-ink: oklch(100% 0 0); } .timer-ink-white .timer-digits { text-shadow: 0 2px 8px rgb(0 0 0 / 0.6); }
.timer-ink-black .timer { --color-ink: oklch(0% 0 0); }

@media print {
	.top .nav, .menu, .tool, .copy, .foot .nav-list, .timer-controls, .timer-presets, .timer-set, .timer-keys { display: none; }
}

/* ---------- Span pages: tables beside how it is counted ---------- */
.span-tables { display: flex; flex-direction: column; gap: var(--space-3xl); }
.span-table { display: flex; flex-direction: column; gap: var(--space-stack); }
.span-table h2 { font-size: var(--text-h2); line-height: 1.1; letter-spacing: -0.015em; }
.span-table p { max-width: var(--measure); color: var(--color-muted); font-weight: 700; }
[data-hmd="calendar"] > .span-table h2 { font-size: var(--text-h3); }
.span-table .years td:nth-child(2), .years--wrap td:nth-child(2) { white-space: normal; }
