/* MyPrintCalendar — site styles. Tokens follow the "Plainday" design (sage accent, coral holidays). */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url(/assets/fonts/manrope-latin.woff2) format('woff2');
}

:root {
  --bg: #f6f8f7;
  --surface: #fff;
  --ink: oklch(0.26 0.015 220);
  --ink-2: oklch(0.3 0.015 220);
  --text-2: oklch(0.48 0.015 220);
  --muted: oklch(0.52 0.015 220);
  --faint: oklch(0.58 0.012 220);
  --line: oklch(0.92 0.006 200);
  --line-2: oklch(0.88 0.008 200);
  --chip: oklch(0.955 0.006 200);
  --accent: oklch(0.55 0.1 168);
  --accent-hover: oklch(0.5 0.1 168);
  --accent-text: oklch(0.5 0.1 168);
  --accent-deep: oklch(0.42 0.1 168);
  --accent-soft: oklch(0.955 0.025 168);
  --accent-softer: oklch(0.97 0.012 168);
  --accent-border: oklch(0.7 0.08 168);
  --weekend: oklch(0.5 0.07 168);
  --coral: oklch(0.6 0.15 25);
  --coral-soft: oklch(0.96 0.03 25);
  --blk: oklch(0.9 0.025 168);
  --blk-hi: oklch(0.7 0.09 168);
  --radius: 16px;
  --shadow-paper: 0 1px 2px rgba(20, 40, 40, .06), 0 12px 32px rgba(20, 40, 40, .08);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif; -webkit-font-smoothing: antialiased; line-height: 1.5; min-height: 100vh; display: flex; flex-direction: column; }
a { color: var(--accent-text); text-decoration: none; }
a:hover { color: var(--accent-deep); text-decoration: underline; }
button, input, select { font-family: inherit; font-size: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3 { margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--surface); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
.muted { color: var(--muted); }

.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 32px; }
.main { flex: 1; padding-top: 40px; padding-bottom: 64px; }

/* ---------- header ---------- */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.hd { height: 64px; display: flex; align-items: center; gap: 32px; }
.brand { display: flex; align-items: center; gap: 10px; flex: none; color: var(--ink); font-weight: 800; font-size: 18px; letter-spacing: -0.01em; }
.brand:hover { color: var(--ink); text-decoration: none; }
.logo { width: 28px; height: 28px; border-radius: 7px; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 13px; }
.main-nav { display: flex; gap: 2px; flex: 1; flex-wrap: wrap; }
.main-nav a { color: oklch(0.4 0.015 220); font-size: 14px; font-weight: 600; padding: 8px 12px; border-radius: 8px; white-space: nowrap; }
.main-nav a:hover { background: oklch(0.96 0.02 168); text-decoration: none; color: oklch(0.4 0.015 220); }
.main-nav a.on { background: var(--accent-soft); color: var(--accent-deep); }
.region { display: flex; align-items: center; gap: 10px; flex: none; font-size: 13px; color: var(--muted); }

/* segmented control (region + options) */
.seg { display: flex; background: var(--chip); border-radius: 8px; padding: 3px; gap: 2px; }
.seg > a, .seg > button { border: 0; background: transparent; padding: 6px 12px; border-radius: 6px; font-size: 13px; font-weight: 600; color: var(--faint); text-align: center; }
.seg > a:hover { text-decoration: none; color: var(--ink); }
.seg > .on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, .08); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink-2); padding: 11px 16px; border-radius: 10px; font-size: 14px; font-weight: 600; text-align: center; transition: border-color .15s, background .15s; }
.btn:hover { border-color: var(--accent); color: var(--ink-2); text-decoration: none; }
.btn.primary { border-color: transparent; background: var(--accent); color: #fff; font-weight: 700; }
.btn.primary:hover { background: var(--accent-hover); color: #fff; }
.btn.lg { padding: 13px; font-size: 15px; }
.btn.xl { padding: 14px 24px; font-size: 15px; font-weight: 700; }
.btn.sm { padding: 8px 12px; border-radius: 8px; font-size: 13px; font-weight: 700; }
.btn:disabled { opacity: .7; cursor: progress; }
.linkbtn { border: 0; background: none; color: var(--accent-text); font-size: 13px; font-weight: 600; padding: 4px 0 0; }
.linkbtn:hover { text-decoration: underline; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.card.pad { padding: 24px 26px; }
a.card { color: inherit; transition: border-color .15s, transform .15s; }
a.card:hover { border-color: var(--accent-border); text-decoration: none; color: inherit; }

.pills { display: flex; gap: 6px; flex-wrap: wrap; }
.pills > button { border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); padding: 6px 11px; border-radius: 7px; font-size: 12px; font-weight: 700; }
.pills > button.on { background: oklch(0.965 0.025 168); color: oklch(0.4 0.1 168); border-color: oklch(0.6 0.1 168); }
.pills.round > button { padding: 7px 14px; border-radius: 20px; font-size: 13px; font-weight: 600; }
.pills.round > button.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.mb { margin-bottom: 12px; }

.stepper { display: flex; align-items: center; justify-content: space-between; background: var(--chip); border-radius: 8px; padding: 3px; }
.stepper > a, .stepper > button, .stepper > .dis { border: 0; background: transparent; padding: 4px 10px; font-size: 15px; line-height: 1.3; color: oklch(0.4 0.015 220); border-radius: 6px; }
.stepper > a:hover, .stepper > button:hover { background: var(--surface); text-decoration: none; }
.stepper > .dis { opacity: .3; }
.stepper b { font-size: 13px; font-variant-numeric: tabular-nums; }
.stepper.sm { width: 170px; }
.stepper.boxed { background: var(--surface); border: 1px solid var(--line-2); border-radius: 10px; padding: 0; overflow: hidden; }
.stepper.boxed > a, .stepper.boxed > button, .stepper.boxed > .dis { padding: 8px 12px; border-radius: 0; }
.stepper.boxed > a:hover, .stepper.boxed > button:hover { background: oklch(0.96 0.02 168); }
.stepper.boxed b { font-size: 14px; padding: 0 6px; }

.tag { font-size: 11px; font-weight: 600; color: oklch(0.45 0.015 220); background: oklch(0.96 0.005 200); padding: 3px 8px; border-radius: 5px; white-space: nowrap; }
.tag.k { font-weight: 700; color: var(--accent-deep); background: oklch(0.96 0.025 168); }
.tag.coral { color: var(--coral); background: var(--coral-soft); font-weight: 700; }
.tag.solid { background: var(--accent); color: #fff; }

/* ---------- page heads ---------- */
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 24px; }
.page-head > div:first-child { display: flex; flex-direction: column; gap: 8px; }
.page-head h1 { font-size: 32px; font-weight: 800; line-height: 1.2; }
.sub { font-size: 14px; color: var(--muted); }
.crumb { font-size: 13px; color: var(--muted); display: flex; gap: 6px; flex-wrap: wrap; }
.crumb a { color: var(--muted); }
.crumb a:hover { color: var(--accent-deep); }
.crumb .sep { opacity: .6; }
.head-tools { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }

.sec { margin-top: 56px; display: flex; flex-direction: column; gap: 24px; }
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 16px; }
.sec-head > div { display: flex; flex-direction: column; gap: 6px; }
.sec-head h2, .sec > h2 { font-size: 28px; font-weight: 800; }
.sec-head p { font-size: 14px; color: var(--muted); }
.more { font-size: 14px; font-weight: 700; }

/* ---------- home ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(280px, 1fr); gap: 40px; align-items: stretch; }
.hero-text { display: flex; flex-direction: column; justify-content: center; gap: 24px; padding: 16px 0; }
.eyebrow { font-size: 13px; color: var(--accent-text); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.hero h1 { font-size: 52px; line-height: 1.08; font-weight: 800; letter-spacing: -0.03em; text-wrap: pretty; }
.lead { font-size: 17px; line-height: 1.65; color: var(--text-2); max-width: 470px; text-wrap: pretty; }
.year-pick { display: flex; flex-direction: column; gap: 10px; }
.year-pick .label { font-size: 13px; color: var(--muted); }
.year-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.year-btns button { border: 1px solid oklch(0.9 0.006 200); background: var(--surface); color: var(--ink); padding: 10px 22px; border-radius: 10px; font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; }
.year-btns button.on { background: oklch(0.965 0.025 168); border-color: oklch(0.6 0.1 168); color: var(--accent-deep); }
.cta { display: flex; gap: 12px; flex-wrap: wrap; }

.today { border-radius: 20px; padding: 32px; display: flex; flex-direction: column; gap: 20px; }
.today-top { display: flex; justify-content: space-between; font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.today-main { display: flex; align-items: flex-end; gap: 16px; }
.today-d { font-size: 112px; line-height: .9; font-weight: 700; letter-spacing: -0.05em; color: var(--accent); }
.today-main > div:last-child { display: flex; flex-direction: column; gap: 4px; padding-bottom: 8px; }
.today-wd { font-size: 22px; font-weight: 700; }
.today-ym { font-size: 14px; color: var(--text-2); }
.today-next { border-top: 1px solid oklch(0.93 0.006 200); padding-top: 20px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.today-next .k { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }
.today-next .n { font-size: 15px; font-weight: 700; }
.today-next .s { font-size: 13px; color: var(--text-2); }
.today-next .cd { text-align: right; }
.today-next .num { font-size: 34px; font-weight: 800; color: var(--coral); font-variant-numeric: tabular-nums; line-height: 1; }

.types { margin-top: 56px; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.type-card { padding: 24px; display: flex; flex-direction: column; gap: 14px; }
a.type-card:hover { transform: translateY(-2px); }
.type-card h2 { font-size: 17px; font-weight: 700; letter-spacing: 0; }
.type-card p { font-size: 13px; color: oklch(0.5 0.015 220); line-height: 1.55; margin-top: 4px; }
.type-card .meta { font-size: 12px; color: var(--accent-text); font-weight: 700; letter-spacing: 0.04em; margin-top: auto; }
.blocks { height: 72px; border-radius: 10px; background: var(--accent-softer); display: grid; gap: 4px; padding: 10px; }
.blocks i { border-radius: 2px; }

.grid-pop { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.grid-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 20px; }
.tpl-card { overflow: hidden; display: flex; flex-direction: column; transition: border-color .15s; }
.tpl-card:hover { border-color: var(--accent-border); }
.thumb { height: 310px; background: oklch(0.95 0.006 200); display: flex; align-items: center; justify-content: center; padding: 22px; overflow: hidden; }
.pop .thumb { height: 300px; }
.thumb-paper { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.thumb-paper svg { display: block; box-shadow: var(--shadow-paper); max-width: 100%; max-height: 100%; width: auto; height: 100%; }
.thumb-paper.landscape svg { width: 100%; height: auto; }
.tpl-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.tpl-body h3, .pop-body h3 { font-size: 16px; font-weight: 700; letter-spacing: 0; }
.tpl-body p { font-size: 13px; color: oklch(0.5 0.015 220); line-height: 1.5; margin-top: 4px; }
.tpl-body .tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tpl-body .two { margin-top: auto; }
.dl-h { font-size: 16px; font-weight: 700; letter-spacing: 0; margin: 28px 0 14px; }
.dl-sec .sec-head + .dl-h { margin-top: 20px; }
.dl-first { margin-top: 20px; }
.linkbtn.dl-custom { text-align: left; padding: 0; }
.dl-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.dl-custom { font-size: 13px; font-weight: 600; margin-top: -4px; }
.pop-body { padding: 16px 18px; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.pop-body h3 { font-size: 15px; }
.pop-body span { font-size: 12px; color: var(--muted); }

.legend { display: flex; gap: 18px; font-size: 13px; color: oklch(0.45 0.015 220); }
.legend span { display: flex; align-items: center; gap: 6px; }
.legend i { width: 12px; height: 12px; border-radius: 3px; }
.lg-pub { background: var(--coral-soft); border: 1px solid var(--coral); }
.lg-today { background: #fff; border: 1.5px solid var(--accent); }

.grid-glance { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.glance-month { border-radius: 14px; padding: 18px 18px 14px; display: flex; flex-direction: column; gap: 10px; }
.gm-head { display: flex; justify-content: space-between; align-items: baseline; }
.gm-head h3 { font-size: 16px; font-weight: 700; letter-spacing: 0; }
.gm-head span { font-size: 12px; color: oklch(0.55 0.015 220); }
.gm-grid { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; font-size: 11px; }
.gm-grid .wd { color: var(--faint); padding: 2px 0 6px; font-weight: 600; }
.gm-grid .wd.we { color: var(--weekend); }
.gm-grid .c { height: 28px; display: flex; align-items: center; justify-content: center; border-radius: 6px; position: relative; font-size: 13px; font-weight: 500; color: oklch(0.28 0.015 220); font-variant-numeric: tabular-nums; }
.gm-grid .c.pub { background: var(--coral-soft); color: var(--coral); }
.gm-grid .c.obs::after { content: ''; position: absolute; bottom: 3px; width: 3px; height: 3px; border-radius: 50%; background: var(--accent); }
.gm-grid .c.is-today::before { content: ''; position: absolute; inset: 1px; border: 1.5px solid var(--accent); border-radius: 6px; }

.how .steps { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.how .steps li { counter-increment: s; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; display: flex; flex-direction: column; gap: 6px; }
.how .steps li::before { content: counter(s); width: 28px; height: 28px; border-radius: 8px; background: var(--accent-soft); color: var(--accent-deep); font-weight: 800; font-size: 14px; display: flex; align-items: center; justify-content: center; margin-bottom: 6px; }
.how .steps b { font-size: 16px; }
.how .steps span { font-size: 14px; color: var(--text-2); line-height: 1.6; }

/* ---------- ads ---------- */
.ad { margin: 48px auto 0; max-width: 970px; }
.ad-sidebar { margin: 0; }
.ad-ph { height: 90px; border: 1px dashed oklch(0.85 0.008 200); border-radius: 10px; background: repeating-linear-gradient(135deg, #fff 0 10px, oklch(0.975 0.004 200) 10px 20px); display: flex; align-items: center; justify-content: center; font-family: ui-monospace, 'JetBrains Mono', monospace; font-size: 12px; color: oklch(0.6 0.01 220); }
.ad-sidebar.ad-ph { height: 250px; border-radius: 12px; }

/* ---------- preview pages ---------- */
.month-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 20px; }
.month-tabs a { border: 1px solid oklch(0.9 0.006 200); background: var(--surface); color: var(--ink); min-width: 56px; padding: 8px 0; border-radius: 8px; font-size: 14px; font-weight: 600; text-align: center; }
.month-tabs a:hover { border-color: var(--accent); text-decoration: none; }
.month-tabs a.on { background: var(--accent); border-color: var(--accent); color: #fff; }

.preview-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; align-items: start; }
.preview-pane { background: oklch(0.94 0.006 200); border-radius: 20px; padding: 40px; }
.paper-wrap { margin: 0; }
.paper { max-width: 600px; margin: 0 auto; }
.paper.landscape { max-width: 100%; }
.paper svg { display: block; width: 100%; height: auto; box-shadow: var(--shadow-paper); background: #fff; }

.opts-col { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 88px; }
.opts { padding: 22px; display: flex; flex-direction: column; gap: 16px; }
.opts hr { border: 0; height: 1px; background: oklch(0.93 0.006 200); margin: 0; }
.opt-block { display: flex; flex-direction: column; gap: 8px; }
.opt-h { font-size: 13px; font-weight: 700; }
.opt-l, .opt-row > span, .opt-row > label { font-size: 13px; color: oklch(0.45 0.015 220); }
.opt-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.opt-row .seg { width: 170px; }
.opt-row .seg > button { flex: 1; padding: 6px 0; }
.opt-block .seg > button { flex: 1; padding: 7px 0; }
.input, .select { border: 1px solid var(--line-2); border-radius: 8px; padding: 9px 12px; font-size: 14px; outline: none; background: var(--surface); width: 100%; }
.select { width: 170px; padding: 7px 10px; font-size: 13px; }
.input:focus, .select:focus { border-color: var(--accent); }
.swatches { display: flex; gap: 8px; }
.swatches button { width: 26px; height: 26px; border-radius: 50%; background: var(--sw); border: 2px solid #fff; box-shadow: 0 0 0 0 var(--ink-2); padding: 0; }
.swatches button.on { box-shadow: 0 0 0 2px var(--ink-2); }
.toggles { display: flex; flex-direction: column; gap: 11px; }
.tog { display: flex; justify-content: space-between; align-items: center; border: 0; background: none; padding: 0; text-align: left; font-size: 13px; color: oklch(0.45 0.015 220); }
.tog:disabled { opacity: .45; cursor: default; }
.track { width: 36px; height: 20px; border-radius: 10px; background: oklch(0.86 0.008 220); position: relative; transition: background .15s; flex: none; }
.knob { position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .2); transition: left .15s; }
.tog[aria-checked="true"] .track { background: var(--accent); }
.tog[aria-checked="true"] .knob { left: 18px; }
.actions { display: flex; flex-direction: column; gap: 8px; }
.file-meta { font-size: 12px; color: oklch(0.55 0.015 220); text-align: center; padding-top: 2px; }

/* ---------- content sections ---------- */
.two-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 16px; align-items: start; }
.two-col h2 { font-size: 20px; font-weight: 800; margin-bottom: 14px; }
.two-col h3 { font-size: 15px; font-weight: 700; margin: 22px 0 10px; letter-spacing: 0; }
.month-links { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.month-links a { padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; border-radius: 12px; }
.month-links b { font-size: 15px; }
.month-links span { font-size: 12px; color: var(--muted); }
.facts { list-style: none; padding: 0; margin: 0 0 16px; }
.facts li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid oklch(0.94 0.006 200); font-size: 14px; }
.facts li span { color: var(--muted); }
.events, .moons { list-style: none; padding: 0; margin: 0; }
.events li { display: grid; grid-template-columns: 96px 1fr auto; gap: 12px; align-items: center; padding: 9px 0; border-bottom: 1px solid oklch(0.94 0.006 200); font-size: 14px; }
.events .d { color: var(--muted); font-variant-numeric: tabular-nums; }
.events li.pub .n { font-weight: 700; }
.events small { color: var(--muted); font-weight: 500; }
.moons { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 14px; }
.moons li { display: flex; align-items: center; gap: 8px; }
.moon { width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid var(--ink-2); display: inline-block; }
.moon.new { background: var(--ink-2); }
.moon.first { background: linear-gradient(90deg, var(--ink-2) 50%, transparent 50%); }
.moon.last { background: linear-gradient(90deg, transparent 50%, var(--ink-2) 50%); }
.note { margin-top: 14px; font-size: 14px; font-weight: 600; }
.year-nav { display: flex; gap: 18px; flex-wrap: wrap; font-size: 14px; font-weight: 600; margin-top: 8px; }
.year-nav.center { justify-content: center; }

.prose p { font-size: 15px; line-height: 1.7; color: var(--text-2); margin-bottom: 12px; }
.prose h2 { font-size: 20px; font-weight: 800; margin: 8px 0 12px; }
.prose.narrow, .narrow { max-width: 760px; }
article.prose h2 { margin-top: 26px; }
article.prose h2:first-child { margin-top: 0; }
.steps-list { padding-left: 20px; margin: 0 0 20px; }
.steps-list li { margin-bottom: 16px; }
.steps-list li::marker { font-weight: 800; color: var(--accent); }
.steps-list h2 { font-size: 17px; margin: 0 0 4px; }
.prose ul, .prose ol:not(.steps-list) { padding-left: 22px; margin: 0 0 14px; font-size: 15px; line-height: 1.7; color: var(--text-2); }
.prose li { margin-bottom: 6px; }
.prose h3 { font-size: 16px; font-weight: 700; margin: 18px 0 8px; }
.prose code { font-size: 13px; background: oklch(0.96 0.006 200); padding: 2px 6px; border-radius: 5px; }
.prose .table-scroll { overflow-x: auto; margin: 0 0 12px; }
.prose .tbl { font-size: 14px; }
.prose .tbl th, .prose .tbl td { padding: 9px 12px 9px 0; }
.article-grid { display: grid; grid-template-columns: minmax(0, 760px) minmax(240px, 300px); gap: 24px; align-items: start; }
.article { padding: 32px 36px; }
.article-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 14px; }
.article-side { position: sticky; top: 96px; }
.side-cta { display: flex; flex-direction: column; gap: 10px; font-size: 14px; font-weight: 600; }
.side-cta h2 { font-size: 16px; font-weight: 800; margin-bottom: 4px; }
.side-cta .btn { margin-top: 6px; }
.grid-guides { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.guide-card { padding: 22px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; color: inherit; transition: border-color .15s; }
.guide-card:hover { border-color: var(--accent-border); text-decoration: none; }
.guide-card h3 { font-size: 16px; font-weight: 700; letter-spacing: 0; color: var(--ink-2); }
.guide-card p { font-size: 13px; color: oklch(0.5 0.015 220); line-height: 1.55; }
.guide-card .more { margin-top: auto; font-size: 13px; font-weight: 700; color: var(--accent-text); }
.faq dt { font-size: 16px; font-weight: 700; margin-top: 22px; }
.faq dt:first-child { margin-top: 0; }
.faq dd { margin: 6px 0 0; font-size: 15px; line-height: 1.7; color: var(--text-2); }

/* tables */
.table-card { overflow: hidden; overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th, .tbl td { text-align: left; padding: 15px 24px; border-top: 1px solid oklch(0.93 0.006 200); font-weight: 400; }
.tbl thead th { background: oklch(0.975 0.006 168); font-size: 12px; font-weight: 700; color: oklch(0.42 0.015 220); text-transform: uppercase; letter-spacing: 0.06em; border-top: 0; }
.tbl tbody th { font-weight: 700; }
.tbl td { font-variant-numeric: tabular-nums; }
.tbl.compact th, .tbl.compact td { padding: 9px 0; }
.tbl.compact thead th { background: none; padding-top: 0; }
.tbl.hol .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 10px; background: var(--coral); vertical-align: 1px; }
.tbl.hol tr.obs .dot { background: oklch(0.7 0.07 168); }
.tbl.hol tr.obs th { font-weight: 600; }
.tbl.hol tr.next { background: oklch(0.99 0.008 25); }
.status { font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 20px; white-space: nowrap; }
.status.past { background: oklch(0.95 0.004 220); color: var(--faint); }
.status.up { background: oklch(0.955 0.03 168); color: var(--accent-deep); }
.status.next { background: var(--coral-soft); color: var(--coral); }
.source { font-size: 12px; color: oklch(0.55 0.015 220); margin-top: 14px; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 24px; }
.stat { border-radius: 14px; padding: 20px 22px; display: flex; flex-direction: column; gap: 6px; }
.stat span { font-size: 13px; color: oklch(0.5 0.015 220); }
.stat b { font-size: 28px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; }
.stat b.coral { color: var(--coral); }
.stat b.accent { color: oklch(0.48 0.1 168); font-size: 22px; }

/* year tiles */
.decade-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 24px; overflow-x: auto; }
.decade-tabs button { border: 0; background: none; padding: 10px 14px; font-size: 15px; font-weight: 700; color: var(--faint); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.decade-tabs button.on { color: var(--ink); border-bottom-color: var(--accent); }
.year-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.year-tile { padding: 20px 22px; display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.year-tile.cur { border-color: oklch(0.6 0.1 168); }
.year-tile b { font-size: 26px; font-weight: 800; color: var(--ink); letter-spacing: -0.02em; }
.year-tile.past b { color: oklch(0.5 0.015 220); }
.yt-head { display: flex; justify-content: space-between; align-items: center; }
.yt-head a:hover { text-decoration: none; }
.yt-links { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; font-weight: 600; }

.empty { text-align: center; padding: 60px 0; display: flex; flex-direction: column; gap: 12px; align-items: center; }
.empty .big { font-size: 96px; font-weight: 800; color: var(--accent); line-height: 1; letter-spacing: -0.04em; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--surface); }
.ft-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 24px; padding-top: 32px; padding-bottom: 8px; }
.ft-links div { display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.ft-links h2 { font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 4px; }
.ft { padding-top: 20px; padding-bottom: 28px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; font-size: 13px; color: var(--muted); }
.ft-nav { display: flex; gap: 20px; flex-wrap: wrap; }

#print-root { display: none; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .hd { gap: 20px; }
  .region > span { display: none; }
}
@media (max-width: 960px) {
  .preview-grid { grid-template-columns: 1fr; }
  .opts-col { position: static; }
  .article-grid { grid-template-columns: 1fr; }
  .article-side { position: static; }
  .opts .opt-row .seg, .opts .stepper.sm, .opts .select { width: 200px; }
}
@media (max-width: 860px) {
  .wrap { padding: 0 16px; }
  .main { padding-top: 24px; padding-bottom: 48px; }
  .site-header { position: static; }
  .hd { height: auto; flex-wrap: wrap; gap: 8px 16px; padding-top: 12px; padding-bottom: 8px; }
  .brand { flex: 1; }
  .main-nav { order: 3; flex: 1 0 100%; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 12px; }
  .main-nav::-webkit-scrollbar { display: none; }
  .hero { grid-template-columns: 1fr; gap: 24px; }
  .hero h1 { font-size: 38px; }
  .lead { font-size: 16px; }
  .today { padding: 24px; }
  .today-d { font-size: 88px; }
  .sec { margin-top: 40px; }
  .types { margin-top: 40px; }
  .sec-head h2, .sec > h2 { font-size: 24px; }
  .page-head h1 { font-size: 26px; }
  .preview-pane { padding: 16px; border-radius: 14px; }
  .two-col { grid-template-columns: 1fr; }
  .tbl th, .tbl td { padding: 12px 14px; }
  .events li { grid-template-columns: 80px 1fr; }
  .events li .tag { grid-column: 2; justify-self: start; }
  .article { padding: 22px 18px; }
  .legend { width: 100%; }
}
@media (max-width: 420px) {
  .hero h1 { font-size: 32px; }
  .cta .btn { width: 100%; }
  .opts .opt-row .seg, .opts .stepper.sm, .opts .select { width: 170px; }
  .grid-glance, .grid-pop, .grid-gallery { grid-template-columns: 1fr; }
}

/* ---------- print: only the calendar page ---------- */
@media print {
  body:has(#print-root:not(:empty)) > *:not(#print-root) { display: none !important; }
  body:has(#print-root:not(:empty)) { background: #fff; display: block; min-height: 0; }
  #print-root { display: block; }
  .print-page { width: 100vw; height: 100vh; page-break-after: always; break-after: page; overflow: hidden; }
  .print-page:last-child { page-break-after: auto; break-after: auto; }
  .print-page svg { width: 100%; height: 100%; display: block; }
}
