/* When Is The Next Bank Holiday — design system */

:root {
	--bg: #f8f6f1;
	--surface: #ffffff;
	--surface-2: #f2efe8;
	--ink: #111a2e;
	--ink-2: #3d4a63;
	--muted: #66718a;
	--line: #e4dfd4;
	--line-strong: #cfc8b9;
	--brand: #2446d8;
	--brand-ink: #1a36b0;
	--brand-soft: #e8ecfd;
	--accent: #ff5b45;
	--gold: #f2b01e;
	--green: #12916a;
	--green-soft: #e3f5ee;
	--warn: #9a6200;
	--warn-soft: #fff4d9;
	--focus: #2446d8;
	--r-england-and-wales: #2446d8;
	--r-scotland: #0065bd;
	--r-northern-ireland: #0e8a7d;
	--r-ireland: #169b62;
	--radius: 14px;
	--radius-lg: 22px;
	--shadow: 0 1px 2px rgba(17, 26, 46, .05), 0 8px 24px -12px rgba(17, 26, 46, .12);
	--shadow-lg: 0 2px 4px rgba(17, 26, 46, .04), 0 24px 48px -20px rgba(17, 26, 46, .22);
	--font: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--font-display: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	--wrap: 1120px;
	--gutter: clamp(16px, 4vw, 32px);
	color-scheme: light;
}

@media (prefers-color-scheme: dark) {
	:root {
		--bg: #0c1220;
		--surface: #141c2e;
		--surface-2: #1a2338;
		--ink: #eef1f8;
		--ink-2: #c3cadb;
		--muted: #8f9ab3;
		--line: #253049;
		--line-strong: #34405c;
		--brand: #7d97ff;
		--brand-ink: #a5b6ff;
		--brand-soft: #1b2650;
		--accent: #ff7a67;
		--green: #3ccf9a;
		--green-soft: #11302a;
		--warn: #ffc55c;
		--warn-soft: #33290f;
		--focus: #a5b6ff;
		--r-england-and-wales: #7d97ff;
		--r-scotland: #5eaaf5;
		--r-northern-ireland: #3cc4b4;
		--r-ireland: #4fcf93;
		--shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px -12px rgba(0, 0, 0, .5);
		--shadow-lg: 0 24px 48px -20px rgba(0, 0, 0, .6);
		color-scheme: dark;
	}
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font: 400 17px/1.6 var(--font);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	font-variant-numeric: tabular-nums;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brand-ink); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.2rem); font-weight: 800; letter-spacing: -.035em; }
h2 { font-size: clamp(1.45rem, 1.2rem + 1vw, 1.9rem); font-weight: 750; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; text-wrap: pretty; }
ul, ol { padding-left: 1.25em; }
li + li { margin-top: .35em; }
small, .small { font-size: .875rem; }
.muted { color: var(--muted); }
.icon { width: 1.1em; height: 1.1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.sr-only { position: absolute !important; width: 1px !important; min-width: 0 !important; height: 1px !important; min-height: 0 !important; padding: 0 !important; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0 !important; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 10px; z-index: 100; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.wrap--narrow { max-width: 780px; }
.stack > * + * { margin-top: var(--space, 1.25rem); }
.section { padding: clamp(36px, 6vw, 64px) 0; }
.section + .section { padding-top: 0; }
.section__head { display: flex; align-items: end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.section__head h2 { margin: 0; }
.section__head p { margin: 4px 0 0; color: var(--muted); }
.grid { display: grid; gap: 16px; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); }
.layout-aside { display: grid; gap: 32px; }
@media (min-width: 940px) { .layout-aside { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; } .layout-aside > aside { position: sticky; top: 88px; } }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.site-header__inner { display: flex; align-items: center; gap: 16px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 800; letter-spacing: -.02em; font-size: 1.02rem; white-space: nowrap; }
.brand:hover { color: var(--ink); }
.brand__mark { width: 34px; height: 34px; border-radius: 10px; flex: none; }
.brand__text span { color: var(--brand); }
@media (max-width: 520px) { .brand { white-space: normal; font-size: .92rem; line-height: 1.15; min-width: 0; } .brand__mark { width: 30px; height: 30px; } .site-header__inner { gap: 10px; } }
.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a { color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: .95rem; padding: 8px 12px; border-radius: 10px; }
.nav a:hover, .nav a[aria-current="page"] { background: var(--surface-2); color: var(--ink); }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line); color: var(--ink); border-radius: 10px; padding: 8px 12px; font: 600 .95rem var(--font); cursor: pointer; align-items: center; gap: 6px; }
@media (max-width: 900px) {
	.nav-toggle { display: inline-flex; }
	.nav { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; align-items: stretch; background: var(--surface); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 16px; box-shadow: var(--shadow-lg); }
	.nav.is-open { display: flex; }
	.nav a { padding: 12px; font-size: 1.05rem; }
}

/* Breadcrumbs */
.crumbs { font-size: .875rem; color: var(--muted); padding-top: 20px; }
.crumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li { margin: 0; display: flex; gap: 6px; align-items: center; }
.crumbs li + li::before { content: "/"; color: var(--line-strong); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }

/* Page intro */
.intro { padding: clamp(20px, 4vw, 40px) 0 clamp(20px, 3vw, 28px); }
.intro h1 { margin-bottom: .3em; }
.intro .lede { font-size: clamp(1.05rem, 1rem + .35vw, 1.25rem); color: var(--ink-2); max-width: 62ch; margin: 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px var(--green-soft); }

/* Answer hero */
.hero { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden; }
.hero__bunting { height: 30px; width: 100%; color: var(--line); }
.hero__body { padding: clamp(20px, 4vw, 40px); padding-top: clamp(8px, 2vw, 16px); display: grid; gap: 24px; align-items: center; }
@media (min-width: 760px) { .hero__body { grid-template-columns: minmax(0, 1fr) auto; } }
.hero__label { font-size: .9rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin: 0 0 6px; }
.hero__title { font-size: clamp(1.9rem, 1.2rem + 3vw, 3.4rem); font-weight: 850; letter-spacing: -.04em; line-height: 1.02; margin: 0 0 10px; }
.hero__name { font-size: clamp(1.1rem, 1rem + .6vw, 1.45rem); font-weight: 650; color: var(--ink-2); margin: 0; }
.hero__meta { margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.countdown { text-align: center; min-width: 170px; padding: 18px 26px; border-radius: 20px; background: var(--brand-soft); color: var(--brand-ink); }
.countdown__num { display: block; font-family: var(--font-display); font-size: clamp(3.4rem, 2.6rem + 3vw, 5rem); font-weight: 800; line-height: 1; letter-spacing: -.05em; }
.countdown__unit { display: block; font-weight: 700; margin-top: 6px; }
.countdown--today { background: var(--green-soft); color: var(--green); }
.hero__foot { border-top: 1px solid var(--line); padding: 14px clamp(20px, 4vw, 40px); display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; justify-content: space-between; font-size: .9rem; color: var(--muted); background: var(--surface-2); }

/* Region switcher */
.regions { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px; margin-bottom: 16px; }
.regions a, .regions button { font: 650 .95rem var(--font); color: var(--ink-2); text-decoration: none; background: none; border: 0; padding: 8px 14px; border-radius: 10px; cursor: pointer; }
.regions a:hover, .regions button:hover { color: var(--ink); background: var(--surface); }
.regions [aria-current="page"], .regions [aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }

/* Pills and badges */
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--line); white-space: nowrap; }
.pill--brand { background: var(--brand-soft); color: var(--brand-ink); border-color: transparent; }
.pill--green { background: var(--green-soft); color: var(--green); border-color: transparent; }
.pill--warn { background: var(--warn-soft); color: var(--warn); border-color: transparent; }
.pill--accent { background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); border-color: transparent; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 700 1rem/1 var(--font); padding: 13px 20px; border-radius: 12px; border: 1px solid transparent; background: var(--brand); color: #fff; text-decoration: none; cursor: pointer; transition: transform .15s, background .15s; }
.btn:hover { background: var(--brand-ink); color: #fff; text-decoration: none; }
@media (prefers-color-scheme: dark) { .btn, .btn:hover { color: #0c1220; } }
.btn:active { transform: translateY(1px); }
.btn--ghost { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover { background: var(--surface-2); color: var(--ink); }
.btn--sm { padding: 9px 14px; font-size: .9rem; border-radius: 10px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }

/* Cards */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(18px, 3vw, 24px); box-shadow: var(--shadow); }
.card > :last-child { margin-bottom: 0; }
.card--link { display: block; color: inherit; text-decoration: none; transition: transform .15s, border-color .15s, box-shadow .15s; }
.card--link:hover { color: inherit; transform: translateY(-2px); border-color: var(--line-strong); box-shadow: var(--shadow-lg); }
.card--link h3 { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.card--link p { color: var(--muted); margin: 0; font-size: .95rem; }
.card__icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-ink); margin-bottom: 14px; }
.card__icon .icon { width: 22px; height: 22px; }
.card--flat { box-shadow: none; }
.card--tint { background: var(--surface-2); box-shadow: none; }

/* Holiday list */
.hlist { list-style: none; padding: 0; margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.hlist li { margin: 0; }
.hlist li + li { border-top: 1px solid var(--line); }
.hrow { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 14px clamp(14px, 2.5vw, 20px); color: inherit; text-decoration: none; }
a.hrow:hover { background: var(--surface-2); color: inherit; }
.hrow.is-past { opacity: .55; }
.hrow.is-next { background: color-mix(in srgb, var(--brand-soft) 60%, transparent); }
.tile { width: 56px; border-radius: 12px; overflow: hidden; text-align: center; background: var(--surface); border: 1px solid var(--line-strong); line-height: 1; }
.tile__m { display: block; background: var(--region, var(--brand)); color: #fff; font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 4px 0; }
@media (prefers-color-scheme: dark) { .tile__m { color: #0c1220; } }
.tile__d { display: block; font-family: var(--font-display); font-size: 1.45rem; font-weight: 800; padding: 5px 0 1px; letter-spacing: -.03em; }
.tile__w { display: block; font-size: .66rem; font-weight: 700; color: var(--muted); padding-bottom: 5px; text-transform: uppercase; letter-spacing: .06em; }
.hrow__title { font-weight: 700; display: block; }
.hrow__sub { display: block; color: var(--muted); font-size: .9rem; }
.hrow__end { display: flex; flex-direction: column; align-items: end; gap: 4px; text-align: right; }
@media (max-width: 520px) { .hrow { grid-template-columns: 52px minmax(0, 1fr); } .hrow__end { grid-column: 2; align-items: start; flex-direction: row; flex-wrap: wrap; } }

/* Tables */
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
table { width: 100%; border-collapse: collapse; font-size: .96rem; }
caption { text-align: left; padding: 14px 18px 0; font-weight: 700; }
th, td { padding: 12px 18px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { font-size: .78rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); background: var(--surface-2); white-space: nowrap; }
tbody tr:last-child td, tbody tr:last-child th { border-bottom: 0; }
tbody th { font-weight: 650; }
td.num, th.num { text-align: right; }
tr.is-past td, tr.is-past th { color: var(--muted); }
tr.is-next { background: color-mix(in srgb, var(--brand-soft) 60%, transparent); }
.nowrap { white-space: nowrap; }

/* Callouts */
.note { display: flex; gap: 12px; padding: 14px 16px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); font-size: .95rem; color: var(--ink-2); }
.note .icon { margin-top: 3px; }
.note > div > :last-child { margin-bottom: 0; }
.note--warn { background: var(--warn-soft); border-color: transparent; color: var(--ink); }
.note--warn .icon { color: var(--warn); }
.note--good { background: var(--green-soft); border-color: transparent; color: var(--ink); }
.note--good .icon { color: var(--green); }

/* Prose */
.prose { max-width: 70ch; }
.prose h2 { margin-top: 1.8em; }
.prose h3 { margin-top: 1.5em; }
.prose li::marker { color: var(--muted); }
.updated { font-size: .875rem; color: var(--muted); display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 40px 18px 0; font-weight: 700; font-size: 1.05rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq .faq__a { padding: 0 0 18px; color: var(--ink-2); max-width: 70ch; }
.faq .faq__a > :last-child { margin-bottom: 0; }

/* Forms */
.tool { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden; }
.tool__form { padding: clamp(18px, 3vw, 28px); display: grid; gap: 18px; }
.tool__result { border-top: 1px solid var(--line); background: var(--surface-2); padding: clamp(18px, 3vw, 28px); }
.tool__result[aria-busy="true"] { opacity: .6; }
.fields { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); }
.field { display: grid; gap: 6px; align-content: start; }
.field > label, .field > .label, fieldset > legend { font-weight: 700; font-size: .92rem; }
.field .hint { font-size: .85rem; color: var(--muted); }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
input[type="date"], input[type="number"], input[type="email"], input[type="text"], select {
	width: 100%; font: 500 1rem var(--font); color: var(--ink); background: var(--surface); border: 1px solid var(--line-strong); border-radius: 10px; padding: 11px 12px; min-height: 46px;
}
input:focus, select:focus { outline: 3px solid color-mix(in srgb, var(--focus) 35%, transparent); border-color: var(--focus); }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span { display: inline-block; min-width: 50px; text-align: center; padding: 9px 12px; border-radius: 10px; border: 1px solid var(--line-strong); font-weight: 650; font-size: .92rem; background: var(--surface); color: var(--ink-2); }
.chip input:checked + span { background: var(--brand); border-color: var(--brand); color: #fff; }
@media (prefers-color-scheme: dark) { .chip input:checked + span { color: #0c1220; } }
.chip input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.check { display: flex; gap: 10px; align-items: center; font-weight: 600; }
.check input { width: 20px; height: 20px; accent-color: var(--brand); }
.seg { display: inline-flex; padding: 4px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; gap: 4px; flex-wrap: wrap; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; }
.seg span { display: block; padding: 8px 14px; border-radius: 9px; font-weight: 650; font-size: .95rem; color: var(--ink-2); cursor: pointer; }
.seg input:checked + span { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.seg input:focus-visible + span { outline: 3px solid var(--focus); }

/* Stats */
.stats { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; }
.stat__num { display: block; font-family: var(--font-display); font-size: clamp(1.9rem, 1.5rem + 1.5vw, 2.6rem); font-weight: 800; letter-spacing: -.04em; line-height: 1.05; }
.stat__label { display: block; color: var(--muted); font-size: .9rem; font-weight: 600; margin-top: 4px; }
.stat--brand { background: var(--brand); border-color: var(--brand); color: #fff; }
.stat--brand .stat__label { color: rgba(255, 255, 255, .8); }
@media (prefers-color-scheme: dark) { .stat--brand { color: #0c1220; } .stat--brand .stat__label { color: rgba(12, 18, 32, .75); } }

/* Break cards (leave planner) */
.break { display: grid; gap: 14px; }
.break__head { display: flex; justify-content: space-between; gap: 12px; align-items: start; flex-wrap: wrap; }
.break__title { margin: 0; font-size: 1.1rem; }
.break__ratio { font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; color: var(--green); white-space: nowrap; }
.strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(26px, 1fr); gap: 3px; overflow-x: auto; padding-bottom: 2px; }
.strip span { display: grid; place-items: center; height: 42px; border-radius: 7px; font-size: .72rem; font-weight: 700; line-height: 1.1; text-align: center; background: var(--surface-2); color: var(--muted); }
.strip .d-leave { background: var(--brand); color: #fff; }
.strip .d-bh { background: var(--accent); color: #fff; }
.strip .d-we { background: color-mix(in srgb, var(--green) 22%, transparent); color: var(--green); }
@media (prefers-color-scheme: dark) { .strip .d-leave, .strip .d-bh { color: #0c1220; } }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .85rem; color: var(--muted); }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 4px; margin-right: 6px; vertical-align: -1px; }

/* Month calendars */
.months { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.month { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px; break-inside: avoid; }
.month h3 { font-size: .95rem; margin: 0 0 8px; display: flex; justify-content: space-between; }
.month table { font-size: .82rem; table-layout: fixed; }
.month th, .month td { padding: 4px 0; text-align: center; border: 0; }
.month thead th { background: none; font-size: .68rem; padding-bottom: 6px; }
.month td.we { color: var(--muted); }
.month td.bh span { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 800; }
.month td.today span { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--brand); }
.month ul { list-style: none; padding: 8px 0 0; margin: 8px 0 0; border-top: 1px solid var(--line); font-size: .8rem; }
.month ul li { margin: 2px 0; }

/* Links list */
.linkgrid { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 190px), 1fr)); list-style: none; padding: 0; margin: 0; }
.linkgrid li { margin: 0; }
.linkgrid a { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 11px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: .95rem; }
.linkgrid a:hover { border-color: var(--brand); color: var(--brand-ink); }
.linkgrid a[aria-current="page"] { background: var(--brand); border-color: var(--brand); color: #fff; }

/* Copy field */
.copy { display: flex; gap: 8px; align-items: stretch; }
.copy input { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .85rem; }
code, pre { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .88em; }
pre { background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; overflow-x: auto; white-space: pre-wrap; word-break: break-all; }
:not(pre) > code { background: var(--surface-2); padding: 2px 6px; border-radius: 6px; }

/* Reminder band */
.band { background: var(--ink); color: var(--bg); border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 40px); display: grid; gap: 20px; align-items: center; position: relative; overflow: hidden; }
@media (min-width: 820px) { .band { grid-template-columns: 1fr 1fr; } }
.band h2 { color: inherit; margin-bottom: .3em; }
.band p { color: color-mix(in srgb, var(--bg) 78%, transparent); margin: 0; }
.band form { display: grid; gap: 10px; }
.band .row { display: flex; gap: 8px; flex-wrap: wrap; }
.band .row > input { flex: 1 1 220px; }
.band select, .band input { border-color: transparent; }
.band .btn { background: var(--gold); color: #111a2e; }
.band .btn:hover { background: #ffc43f; }
.band small { color: color-mix(in srgb, var(--bg) 62%, transparent); }
.band small a { color: inherit; }
.form-msg { font-weight: 650; margin: 0; }
.form-msg:empty { display: none; }

/* Footer */
.site-footer { margin-top: clamp(40px, 8vw, 80px); border-top: 1px solid var(--line); background: var(--surface); padding: 48px 0 32px; font-size: .95rem; }
.footer-grid { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); }
.footer-grid h2 { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 12px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin: 0 0 8px; }
.footer-grid a { color: var(--ink-2); text-decoration: none; }
.footer-grid a:hover { color: var(--brand); text-decoration: underline; }
.footer-base { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; color: var(--muted); font-size: .875rem; }
.footer-base a { color: var(--muted); }

/* Ads — reserved space prevents layout shift when ads are switched on */
.ad { min-height: 280px; display: grid; place-items: center; margin: 32px 0; }
.ad:empty { display: none; }

/* Cookie consent manager */
.linkish { background: none; border: 0; padding: 0; font: inherit; color: var(--muted); text-decoration: underline; cursor: pointer; }
.linkish:hover { color: var(--ink); }
html.cmp-open { overflow: hidden; }
.cmp { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 16px; }
.cmp[hidden] { display: none; }
.cmp__backdrop { position: absolute; inset: 0; background: rgba(12, 18, 32, .55); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); animation: cmp-fade .2s ease-out; }
.cmp__panel { position: relative; width: 100%; max-width: 640px; max-height: calc(100dvh - 32px); overflow-y: auto; background: var(--surface); color: var(--ink); border-radius: 20px; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .45); padding: clamp(22px, 4vw, 32px); animation: cmp-rise .25s cubic-bezier(.2, .8, .2, 1); outline: none; }
.cmp__head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.cmp__head h2 { font-size: clamp(1.3rem, 1.1rem + .8vw, 1.6rem); margin: 0; }
.cmp__icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-ink); flex: none; }
.cmp__view > p { color: var(--ink-2); font-size: 1rem; margin: 0 0 12px; }
.cmp__actions { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; margin-top: 22px; }
.cmp__actions .btn { width: 100%; padding: 14px 12px; white-space: nowrap; }
.cmp__cats { display: grid; margin-top: 8px; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.cmp__cat { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 16px 18px; }
.cmp__cat + .cmp__cat { border-top: 1px solid var(--line); }
.cmp__cat h3 { font-size: 1rem; margin: 0 0 4px; }
.cmp__cat p { font-size: .9rem; color: var(--ink-2); margin: 0; }
.cmp__cat .cmp__cookies { font-size: .8rem; color: var(--muted); margin-top: 6px; }
.switch { position: relative; flex: none; margin-top: 2px; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.switch__track { display: block; width: 50px; height: 30px; border-radius: 999px; background: var(--line-strong); transition: background .15s; position: relative; }
.switch__thumb { position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .15s; }
.switch input:checked + .switch__track { background: var(--green); }
.switch input:checked + .switch__track .switch__thumb { transform: translateX(20px); }
.switch input:focus-visible + .switch__track { outline: 3px solid var(--focus); outline-offset: 2px; }
@keyframes cmp-fade { from { opacity: 0; } }
@keyframes cmp-rise { from { opacity: 0; transform: translateY(16px) scale(.98); } }
@media (max-width: 600px) {
	.cmp { place-items: end stretch; padding: 0; }
	.cmp__panel { max-width: none; border-radius: 22px 22px 0 0; max-height: 92dvh; padding-bottom: calc(22px + env(safe-area-inset-bottom)); }
	.cmp__actions { grid-template-columns: 1fr 1fr; }
	.cmp__actions [data-cmp-action="manage"], .cmp__actions [data-cmp-action="save"] { grid-column: 1 / -1; order: 3; }
}

/* Embed widget */
body.embed { background: transparent; }
.embed-card { font-size: 15px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; display: grid; gap: 4px; }
.embed-card a { font-size: .8rem; color: var(--muted); text-decoration: none; }

/* 404 */
.big-404 { font-family: var(--font-display); font-size: clamp(5rem, 4rem + 8vw, 10rem); font-weight: 900; letter-spacing: -.06em; line-height: 1; color: var(--brand); margin: 0; }

/* Print — year calendars and planners print cleanly on A4 */
.print-only { display: none; }
@media print {
	@page { size: A4; margin: 12mm; }
	:root { --bg: #fff; --surface: #fff; --surface-2: #fff; --line: #ccc; --shadow: none; --shadow-lg: none; }
	body { font-size: 11pt; }
	.site-header, .site-footer, .no-print, .ad, .band, .crumbs, .faq, .btn, .regions { display: none !important; }
	.print-only { display: block; }
	.section { padding: 8mm 0; }
	.months { grid-template-columns: repeat(4, 1fr); gap: 4mm; }
	.month { padding: 3mm; }
	.month td.bh span { background: #000 !important; color: #fff !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
	a { color: inherit; text-decoration: none; }
	.hlist, .table-wrap, .card { box-shadow: none; }
}
