:root{--brand:#1f3a5f;--brand2:#2c5282;--red:#c62828;--ink:#1b1f24;--muted:#5f6b78;--line:#d9dee5;--bg:#fff;--soft:#f5f7fa;--radius:10px}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;font:16px/1.55 system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;color:var(--ink);background:var(--bg)}
a{color:var(--brand2)}
img{max-width:100%;height:auto}
.wrap{max-width:1180px;margin:0 auto;padding:0 16px}
.staging{background:#fff4d6;color:#6b4e00;font-size:13px;text-align:center;padding:4px 8px}
.site-head{border-bottom:1px solid var(--line);background:#fff;position:sticky;top:0;z-index:20}
.head-in{display:flex;align-items:center;gap:16px;min-height:58px}
.logo{display:flex;align-items:center;gap:8px;text-decoration:none;color:var(--brand);font-weight:800;font-size:19px;letter-spacing:-.2px}
.logo em{font-style:normal;color:var(--red)}
.nav{display:flex;gap:4px;margin-left:auto;flex-wrap:wrap}
.nav a{padding:8px 11px;border-radius:8px;text-decoration:none;color:var(--ink);font-weight:600;font-size:15px}
.nav a:hover{background:var(--soft)}
.nav-btn{display:none;margin-left:auto;border:1px solid var(--line);background:#fff;border-radius:8px;padding:7px 12px;font:inherit;font-weight:600}
h1{font-size:clamp(26px,4vw,36px);line-height:1.2;margin:22px 0 10px;color:var(--brand);letter-spacing:-.4px}
h2{font-size:clamp(20px,2.6vw,25px);margin:34px 0 14px;color:var(--brand)}
h3{font-size:18px;margin:22px 0 10px}
.lead{font-size:18px;color:#37414c;max-width:860px}
section{margin:0 0 8px}
.crumbs ol{list-style:none;display:flex;flex-wrap:wrap;gap:6px;padding:0;margin:14px 0 0;font-size:14px;color:var(--muted)}
.crumbs li+li:before{content:"›";margin-right:6px;color:#9aa4ae}
.crumbs a{color:var(--muted)}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:10px 16px;border-radius:9px;border:1px solid var(--brand);background:var(--brand);color:#fff;text-decoration:none;font-weight:700;font-size:15px;cursor:pointer;font-family:inherit}
.btn:hover{background:var(--brand2)}
.btn-lg{padding:13px 20px;font-size:17px}
.btn-ghost{background:#fff;color:var(--brand)}
.btn-ghost:hover{background:var(--soft)}
.btn-primary{background:var(--red);border-color:var(--red)}
.btn-primary:hover{background:#a51f1f}
.hero{padding:8px 0 4px}
.year-btns{display:flex;flex-wrap:wrap;gap:10px;margin:18px 0 6px}
.cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:16px}
.card{display:flex;flex-direction:column;gap:4px;text-decoration:none;color:var(--ink);border:1px solid var(--line);border-radius:var(--radius);padding:10px;background:#fff;transition:box-shadow .15s,border-color .15s}
.card:hover{border-color:#b8c2cf;box-shadow:0 4px 14px rgba(20,40,70,.1)}
.thumb{display:flex;align-items:center;justify-content:center;aspect-ratio:1/1;background:var(--soft);border-radius:6px;overflow:hidden}
.thumb img{box-shadow:0 1px 4px rgba(0,0,0,.18);max-height:94%;width:auto;max-width:94%;background:#fff}
.thumb.landscape img{width:94%;height:auto}.thumb.portrait img{height:94%;width:auto}
.card-t{font-weight:700;font-size:15px;line-height:1.3}
.card-s{font-size:13px;color:var(--muted);line-height:1.35}
.two{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr);gap:24px;align-items:start}
.two .mcal-t,.two .side-t{margin:0 0 10px;line-height:1.3}
.two .mcal-tb{margin:0}
.box{border:1px solid var(--line);border-radius:var(--radius);padding:14px 16px;background:#fff}
.box h2,.box h3{margin-top:0}
.hlist{list-style:none;padding:0;margin:0}
.hlist li{display:flex;flex-direction:column;padding:7px 0;border-bottom:1px solid #eef1f4}
.hlist time{font-size:13px;color:var(--red);font-weight:700}
.more{margin:12px 0}
.note{font-size:14px;color:var(--muted)}
.sw{display:inline-block;width:12px;height:12px;border-radius:3px;vertical-align:-1px}
.sw.hol{background:#fde8e8;border:1px solid var(--red)}
/* month table */
.mcal-t{margin:22px 0 10px}
.mcal-tb{width:100%;border-collapse:collapse;table-layout:fixed}
.mcal-tb th{background:var(--brand);color:#fff;font-size:14px;padding:8px 2px}
.mcal-tb th.wk{width:52px} /* header like the weekday names; the column below stays one light strip */
.mcal-tb td{border:1px solid #b9c2cd;vertical-align:top;height:86px;padding:5px 6px;font-size:13px}
.mcal-tb td.wk{border:1px solid #b9c2cd;border-top:0;border-bottom:0;background:#eef2f7;color:#1f3a5f;font-weight:700;font-size:16px;text-align:center;vertical-align:middle;padding:0 2px}
.mcal-tb tbody tr:last-child td.wk{border-bottom:1px solid #b9c2cd}
.mcal-tb td.out{background:#eef1f4}
.mcal-tb td.we{background:#f6f8fa}
.mcal-tb .d{display:block;font-weight:800;font-size:18px}
.mcal-tb .hol .d,.mcal-tb .hn{color:var(--red)}
.mcal-tb .hn,.mcal-tb .on{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;overflow:hidden;font-size:12px;line-height:1.25;max-height:2.5em;margin-top:2px;overflow-wrap:break-word}
.mcal-tb .hn .sm{display:none}
.mcal-tb .on{color:var(--muted)}
.mcal-tb .today{outline:2px solid var(--brand2);outline-offset:-2px}
.mcal-tb .sm{display:none}
.toggle{font-size:14px;color:var(--muted)}
.wsv[hidden]{display:none!important}
.js-wstart a[aria-current]{font-weight:700;color:var(--ink);text-decoration:none;pointer-events:none}
.js-wstart .tnote,.js-wnum .tnote{margin-left:.4em}
.js-wnum{margin-top:-.4em}
.wnnote{font-size:13px;color:var(--muted);margin:.2em 0 .7em;line-height:1.4}
.js-wnum a[aria-current]{font-weight:700;color:var(--ink);text-decoration:none;pointer-events:none}
/* minis */
.minis{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:16px}
.mini{border:1px solid var(--line);border-radius:8px;overflow:hidden}
.mini h3{margin:0;background:var(--brand);text-align:center;font-size:15px;padding:6px}
.mini h3 a{color:#fff;text-decoration:none;padding-bottom:3px;background-image:linear-gradient(to right,rgba(255,255,255,.8) 45%,transparent 45%);background-size:7px 1px;background-repeat:repeat-x;background-position:0 100%}
.mini h3 a:hover,.mini h3 a:focus-visible{background-image:linear-gradient(#fff,#fff);background-size:100% 1px}
.mini table{width:100%;border-collapse:collapse;text-align:center;font-size:13px;margin:0}
.mini thead th{padding-top:5px}
.mini tbody tr:last-child td{padding-bottom:6px}
.mini th{font-size:11px;color:var(--muted);font-weight:700;padding:2px 0}
.mini td{padding:3px 0}
/* Wk column: one uniform strip from under the month name to the bottom edge (same colour, no cell borders) */
.mini th.wk{background:#eef2f7;color:var(--brand);width:30px}
.mini th.wk abbr{text-decoration:none}
.mini td.wk{background:#eef2f7;color:var(--brand);font-weight:700;font-size:13px}
.mini td.hol{color:var(--red);font-weight:800;background:#fde8e8;border-radius:4px}
.fedtable .fnote{display:block;line-height:1.35}.fedtable time,.fedtable td:nth-child(4) .fnote{white-space:nowrap}.mini td.pend{color:#12355e;font-weight:800;background:#cfe0f5;border-radius:4px}.mini td.pay{color:#0b3d1c;font-weight:800;background:#bfe3c6;border-radius:4px}
.mgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:10px}
.mtile{border:1px solid var(--line);border-radius:9px;padding:12px;text-decoration:none;color:var(--ink);display:flex;flex-direction:column}
.mtile:hover{border-color:var(--brand2)}
.mtile span{font-size:13px;color:var(--muted)}
.mlinks{display:flex;flex-wrap:wrap;gap:6px;margin:8px 0}
.mlinks a,.mlinks span{padding:5px 10px;border:1px solid var(--line);border-radius:7px;font-size:14px;text-decoration:none}
.mlinks span{background:var(--brand);color:#fff;border-color:var(--brand)}
.yearcols{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:16px}
.links{padding-left:18px;margin:6px 0}
/* tables */
.htable{width:100%;border-collapse:collapse;font-size:15px}
.htable th,.htable td{text-align:left;padding:9px 10px;border-bottom:1px solid var(--line);vertical-align:top}
.htable th{background:var(--soft)}
.htable td:first-child{white-space:nowrap;font-weight:600}
.tablewrap{overflow-x:auto}
.grid-links{border-collapse:collapse;font-size:14px;min-width:640px;width:100%}
.grid-links th,.grid-links td{border:1px solid var(--line);padding:7px 8px;text-align:center}
.grid-links thead th{background:var(--soft)}
.grid-links tbody th{text-align:left}
.pager{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;margin:26px 0;padding:12px 0;border-top:1px solid var(--line)}
/* detail */
.detail{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(260px,1fr);gap:26px;align-items:start;margin-top:10px}
.preview{margin:0;background:var(--soft);border:1px solid var(--line);border-radius:var(--radius);padding:18px;text-align:center}
.preview img{box-shadow:0 2px 10px rgba(0,0,0,.18);background:#fff;transition:opacity .2s}
.preview.portrait img{max-height:820px;width:auto}
.preview img.loading{opacity:.45}
.preview figcaption{font-size:13px;color:var(--muted);margin-top:10px}
.panel{border:1px solid var(--line);border-radius:var(--radius);padding:16px;position:sticky;top:76px;background:#fff}
.opts label{display:block;font-weight:700;font-size:14px;margin-bottom:12px}
.opts select{display:block;width:100%;margin-top:5px;padding:9px 10px;border:1px solid #b9c2cd;border-radius:8px;font:inherit;font-weight:400;background:#fff}
.orient{font-size:14px;margin:0 0 14px}
.dls{display:flex;flex-direction:column;gap:8px}
.hint{font-size:13px;color:var(--muted);margin:12px 0 0}
.feat{columns:2;padding-left:18px}
.prose{max-width:860px}
/* format hubs: card + direct download */
.fcard{display:flex;flex-direction:column;min-width:0}
.fcard .card{flex:1}
.fdl{display:flex;align-items:center;justify-content:center;gap:5px;margin-top:6px;text-align:center;font-size:13px;font-weight:700;padding:6px 8px;border:1px solid var(--line);border-radius:8px;text-decoration:none;background:var(--soft)}
.fdl:hover{text-decoration:underline}
/* download buttons: one colour per file type + icon (same palette as WikiDates) */
.dlb{--fmt:#475569;--fmt-d:#334155;background:var(--fmt);border-color:var(--fmt);color:#fff}
.dlb:hover{background:var(--fmt-d);border-color:var(--fmt-d);color:#fff}
.dlb-pdf{--fmt:#c5221f;--fmt-d:#a3191a}.dlb-docx{--fmt:#2b579a;--fmt-d:#1f4178}.dlb-xlsx{--fmt:#1e7145;--fmt-d:#155232}.dlb-png{--fmt:#00796b;--fmt-d:#005a4f}
.fi{flex:none;display:block}
.dlbar{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;margin:14px 0 6px;padding:10px 12px;border:1px solid var(--line);border-radius:var(--radius);background:var(--soft)}
.dlbar-t{display:flex;align-items:center;gap:6px;font-weight:700;color:var(--brand);font-size:15px}
.dlbar-b{display:flex;flex-wrap:wrap;gap:6px}
.dlbar .fdl{margin:0;padding:6px 12px}
.dlbar-j{margin-left:auto;font-weight:700;font-size:14px;white-space:nowrap}
#templates{scroll-margin-top:72px}
@media (max-width:720px){.dlbar-j{margin-left:0}.dlbar-b{width:100%}.dlbar .fdl{flex:1 1 0;padding:6px 4px}}
.btn .fi{width:18px;height:18px}
.dls .btn{justify-content:center}
.wkfile{border:1px solid var(--line);border-radius:var(--radius);padding:10px;background:#fff;gap:4px}
.wkfile .thumb img{width:100%;height:auto}
.fdls{display:flex;flex-wrap:wrap;gap:6px}.fdls .fdl{flex:1 1 62px}
.wkopts{display:flex;gap:16px;flex-wrap:wrap;max-width:560px}.wkopts label{flex:1;min-width:200px}
.two2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}
.two2 .mcal-tb td{height:72px}
/* 2-/3-month pages: every month has 6 rows of one fixed height; the holiday name sits in a fixed 2-line slot under the
   day number (short name, hyphenated, clamped), so a holiday never makes its row taller and side-by-side months line up */
.mcal-tb .d{line-height:1.2}
.two2 .mcal-tb td,.tri .mcal-tb td{overflow:hidden}
.two2 .mcal-tb .hn .lg{display:none}.two2 .mcal-tb .hn .sm{display:inline}
.two2 .mcal-tb .hn,.two2 .mcal-tb .on,.tri .mcal-tb .hn,.tri .mcal-tb .on{overflow-wrap:normal;word-break:normal;-webkit-hyphens:auto;hyphens:auto}
.tri .mcal-tb .hn,.tri .mcal-tb .on{font-size:10px;line-height:1.2;-webkit-line-clamp:3;line-clamp:3;max-height:3.6em}
.two2 .mcal-t,.tri .mcal-t{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tri{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.tri .mcal-tb td{height:64px;padding:3px 4px}.tri .mcal-tb .d{font-size:15px}.tri .mcal-tb .lg{display:none}.tri .mcal-tb .sm{display:inline}.tri .mcal-tb .hn .lg{display:none}.tri .mcal-tb .hn .sm{display:inline}.tri .mcal-tb th.wk{width:36px}
.tsep{display:inline-block;width:1px;height:12px;background:var(--line);margin:0 12px;vertical-align:-1px}
.rangebox{margin:14px 0}.rangebox h2{margin:0 0 8px;font-size:19px}
/* continuous calendar (2-/3-month pages, default view): every row one fixed height, step line = overlay (adds no height) */
.vsv[hidden],.ptab[hidden]{display:none!important}
.vh{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.cont-t{text-align:center;margin:18px 0 12px}
.cont th.ml{width:36px;padding:0}
.cont tbody th.ml{background:#eef2f7;border:1px solid #b9c2cd}
.cont tbody th.ml.m1{background:#dde8f5}
.cont th.ml span{display:block;writing-mode:vertical-rl;transform:rotate(180deg);margin:auto;font-size:15px;font-weight:800;white-space:nowrap;letter-spacing:.3px;color:var(--brand)}
.cont th.ml a{color:inherit;text-decoration:none}.cont th.ml a:hover{text-decoration:underline}
.mcal-tb.cont td{height:78px;overflow:hidden}.mcal-tb.cont.c3 td{height:72px}.mcal-tb.cont.c4 td{height:68px}.mcal-tb.cont.c6 td{height:66px}
.mcal-tb.cont td.m1{background:#f1f6fc}.mcal-tb.cont td.m1.we{background:#e4edf8}
.mcal-tb.cont td.st,.mcal-tb.cont td.sl{position:relative;overflow:visible}
.mcal-tb.cont td.st::before,.mcal-tb.cont td.sl::after{content:"";position:absolute;background:var(--brand);z-index:1}
.mcal-tb.cont td.st::before{top:-2px;left:-2px;right:-1px;height:3px}
.mcal-tb.cont td.sl::after{top:-2px;bottom:-2px;left:-2px;width:3px}
.cont .d{white-space:nowrap}
.cont .d em{font-style:normal;font-size:12px;line-height:1;color:#fff;background:var(--brand);border-radius:4px;padding:1px 5px;vertical-align:1px}
.mcal-tb.cont .hn,.mcal-tb.cont .on{overflow-wrap:normal;word-break:normal}
.lay{display:flex;flex-wrap:wrap;gap:8px 22px;align-items:center;margin:12px 0 4px;font-size:14px;color:var(--muted)}
.seg{display:inline-flex;border:1px solid #b9c2cd;border-radius:9px;overflow:hidden;vertical-align:middle;margin-left:4px}
.seg a{padding:8px 14px;font-weight:700;text-decoration:none;color:var(--brand);background:#fff}
.seg a+a{border-left:1px solid #b9c2cd}
.seg a:hover{background:var(--soft)}
.seg a[aria-current]{background:var(--brand);color:#fff}
.seg a:focus-visible,.tabs a:focus-visible{outline:2px solid var(--red);outline-offset:-2px}
.vn{display:none}
/* print layout tabs */
.ptabs{scroll-margin-top:72px}
.tabs{display:flex;flex-wrap:wrap;gap:4px;border-bottom:2px solid var(--brand)}
.tabs a{padding:10px 18px;font-weight:700;font-size:15px;color:var(--brand);text-decoration:none;border:1px solid var(--line);border-bottom:0;border-radius:9px 9px 0 0;background:var(--soft)}
.tabs a:hover{background:#e6ecf4}
.tabs a[aria-current]{background:var(--brand);color:#fff;border-color:var(--brand)}
.ptab{background:#e9edf2;border-radius:0 0 10px 10px;padding:14px}
.ptab .dlbar{margin:0 0 14px;background:#fff}
.dlbar-o{margin-left:auto;font-size:14px;color:var(--muted)}
.pprev{display:flex;flex-wrap:wrap;gap:18px;justify-content:center}
.pprev figure{margin:0;flex:0 1 400px;min-width:0}.pprev figure.landscape{flex-basis:520px}
.pprev figure:only-child.landscape{flex-basis:720px}.pprev figure:only-child.portrait{flex-basis:480px}
.pprev img{display:block;width:100%;height:auto;background:#fff;box-shadow:0 2px 10px rgba(0,0,0,.22)}
.pprev figcaption{font-size:13px;color:var(--muted);text-align:center;margin-top:6px}
@media (max-width:1000px){.lay3 .vw{display:none}.lay3 .vn{display:inline}}
@media (max-width:900px){.lay2 .vw{display:none}.lay2 .vn{display:inline}}
@media (max-width:720px){.dlbar-o{margin-left:0}.cont th.ml{width:24px}.cont th.ml span{font-size:12px}.mcal-tb.cont td,.mcal-tb.cont.c3 td,.mcal-tb.cont.c4 td,.mcal-tb.cont.c6 td{height:68px}.mcal-tb.cont .hn,.mcal-tb.cont .on{-webkit-line-clamp:3;line-clamp:3;max-height:3.6em}.cont .d em{font-size:9px;padding:1px 3px}.tabs a{flex:1 1 auto;text-align:center;padding:9px 8px;font-size:14px}.ptab{padding:10px}.seg a{padding:8px 10px}}
@media (max-width:370px){.cont .d{letter-spacing:-.3px}.cont .d em{font-size:8px;padding:1px;margin-right:-4px;letter-spacing:-.3px}}
/* option panel: label text above, then select / button on one line, all 44 px high (owner 2026-11-23) */
.rangeform{display:flex;flex-wrap:wrap;gap:12px 16px;align-items:flex-end;margin-top:12px}
.rangeform label{margin:0;min-width:200px;flex:0 1 240px}
.rangeform select{height:44px;margin-top:5px;padding:0 10px;line-height:normal}
.rangeform .btn{height:44px;margin:0;padding:0 22px;white-space:nowrap}
.rangebox .mlinks{align-items:stretch}.rangebox .mlinks a,.rangebox .mlinks span{display:inline-flex;align-items:center;min-height:36px}
/* full download options under the calendar of year and month pages */
.dlopts{scroll-margin-top:72px;border:1px solid var(--line);border-radius:var(--radius);padding:4px 18px 16px;margin:18px 0 8px;background:var(--soft)}
.dlopts h2{margin:14px 0}
.dlopts-in{display:grid;grid-template-columns:minmax(0,340px) minmax(0,1fr);gap:22px;align-items:start}
.dlopts-pv{display:flex;align-items:center;justify-content:center;height:280px}
.dlopts-pv img{display:block;height:100%;width:auto;max-width:100%;object-fit:contain;background:#fff;box-shadow:0 2px 10px rgba(0,0,0,.18);transition:opacity .2s}
.dlopts-pv img.loading{opacity:.45}
.dlopts-f{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 16px}
.dlopts-f label{margin:0;min-width:0}.dlopts-f .wide{grid-column:1/-1}
.dlopts-f select{height:44px;padding:0 10px;line-height:normal;text-overflow:ellipsis}
.dlopts-b{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-top:16px}
.dlopts-b .btn{height:46px;padding:0 8px}.dlopts-b .btn[aria-disabled]{opacity:.35;pointer-events:none}
@media (max-width:820px){.dlopts-in{grid-template-columns:1fr}.dlopts-pv{height:240px}}
@media (max-width:480px){.dlopts{padding:2px 12px 14px}.dlopts-f{grid-template-columns:1fr}.dlopts-b{grid-template-columns:repeat(2,minmax(0,1fr))}}
.pickstep{display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px 16px;margin-top:12px;font-size:14px;font-weight:600}.pickstep .nx{margin-left:auto;text-align:right}
#all,#range{scroll-margin-top:72px}.spanpick .rangeform label{flex:0 1 220px;min-width:120px}@media (max-width:540px){.spanpick .rangeform label{flex:1 1 120px!important}}.spansel{margin:14px 0 0;font-size:17px}.spansel a{font-size:15px}
/* Monday–Friday calendars: 2 months per row, all months 5 rows of one height */
.mf2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:26px 24px;margin-top:14px}
.mfm{scroll-margin-top:72px;min-width:0}.mfm h3{margin:0 0 8px;font-size:20px}.mfm h3 a{color:var(--brand);text-decoration:none}.mfm h3 a:hover{text-decoration:underline}
.mcal-tb.mf td{height:66px;overflow:hidden}.mcal-tb.mf th.wk{width:44px}
.mfc{font-size:14px;color:var(--muted);margin:8px 0 0}
.mfm .dlbar{margin:8px 0 0;padding:6px;background:none;border:0}.mfm .dlbar-b{width:100%}.mfm .dlbar .fdl{flex:1 1 0}
@media (max-width:860px){.mf2{grid-template-columns:1fr}}
/* working days */
.wdtable td,.wdtable th{padding:8px 8px}.htable tfoot th,.htable tfoot td{background:var(--soft);font-weight:700}
.htable tr.cur td{background:#fff6d6}
.wdcal{max-width:860px}.wdcal .mp{font-weight:700}
.nth td:first-child{width:34%}
@media (max-width:720px){.wdcal .mcal-tb td{height:66px}}
.wcalc{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:14px 0}
.cbox h2{font-size:19px;margin:0 0 10px}.cwide{grid-column:1/-1}
.cfields{display:flex;flex-wrap:wrap;gap:12px}.cfields label{flex:1 1 150px}
.wcalc label{display:block;font-weight:700;font-size:14px}
.wcalc input[type=date],.wcalc input[type=number],.wcalc input[type=text],.wcalc select{display:block;width:100%;height:44px;margin-top:5px;padding:0 10px;border:1px solid #b9c2cd;border-radius:8px;font:inherit;font-weight:400;background:#fff;min-width:0}
.wcalc .chk{font-weight:400;display:flex;align-items:center;gap:8px;min-height:36px;margin-top:6px}.wcalc .chk input{width:18px;height:18px;flex:none;margin:0}
.chks{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:0 14px}
.cbtns{display:flex;gap:10px;margin:8px 0 12px}.cbtns .btn{padding:7px 14px;font-size:14px}.csub{grid-column:1/-1;margin:0}.wcalc.js .csub{display:none}.wcalc:not(.js) .cbtns{display:none}
.cres{margin-top:14px;padding:12px 14px;background:var(--soft);border-radius:8px;min-height:148px}.cres p{margin:0 0 6px}.cres-n{font-size:18px}.cres-n strong{font-size:24px;color:var(--brand)}
@media (max-width:760px){.wcalc{grid-template-columns:1fr}.wdtable{font-size:13px}.wdtable td,.wdtable th{padding:6px 5px}}
/* 2-year page: 3 mini months per row, centred, 3 > 2 > 1 */
.span2y>h2{text-align:center}
.minis3{grid-template-columns:repeat(3,minmax(0,1fr));max-width:900px;margin:0 auto;gap:20px}
.span2y>.toggle,.span2y>.note{max-width:900px;margin-left:auto;margin-right:auto}
@media (max-width:860px){.minis3{grid-template-columns:repeat(2,minmax(0,1fr));max-width:600px}}
@media (max-width:540px){.minis3{grid-template-columns:1fr;max-width:340px}.rangeform label{flex:1 1 100%}.rangeform .btn{width:100%}}
@media (max-width:1000px){.tri{grid-template-columns:1fr}}
.leaps{display:flex;flex-wrap:wrap;gap:6px}.leaps span{padding:4px 8px;border:1px solid var(--line);border-radius:6px;font-variant-numeric:tabular-nums}.leaps .cur{background:var(--brand);color:#fff;border-color:var(--brand)}
.leapcheck{max-width:320px}.leapcheck input{display:block;width:100%;margin-top:5px;padding:9px 10px;border:1px solid #b9c2cd;border-radius:8px;font:inherit}.leapres{font-weight:700;color:var(--brand);min-height:3.1em}
.doytable{font-size:13px;font-variant-numeric:tabular-nums}.doytable th,.doytable td{padding:4px 5px;text-align:center}.doytable td:first-child{font-weight:400}.doytable td.out{background:#eef1f4}.doytable td.cur{background:var(--brand);color:#fff;font-weight:700}
.moon{display:inline-block;width:14px;height:14px;border-radius:50%;border:1.5px solid #3b4a5e;vertical-align:-2px;background:#fff}.moon.m0{background:#3b4a5e}.moon.m1{background:linear-gradient(90deg,#3b4a5e 50%,#fff 50%)}.moon.m3{background:linear-gradient(90deg,#fff 50%,#3b4a5e 50%)}
.mcal-tb .mp{display:block;font-size:12px;line-height:1.3;margin-top:3px;color:var(--brand)}
.moontable td{font-size:14px}.moontable small{color:var(--muted)}
.statelist{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:4px 20px}.statelist .st{font-size:17px;margin:14px 0 4px}
.sunm{border:1px solid var(--line);border-radius:8px;margin:8px 0;padding:0 12px}.sunm summary{cursor:pointer;font-weight:700;padding:10px 0;color:var(--brand)}.suntable{font-size:14px}.suntable .hn{color:var(--red);font-size:12px}.suntable .cur td{background:var(--soft);font-weight:700}
.sunfile{max-width:260px}
.dtable .sw{display:inline-block;width:11px;height:11px;border:1px solid #9aa4b1;border-radius:2px;margin-right:6px;vertical-align:-1px}
.thisweek{background:var(--soft);border:1px solid var(--line);border-radius:8px;padding:8px 12px}
.facts th{width:38%}
.wkdays .hol td,.wkdays .hol th{color:var(--red)}.wkdays .we th,.wkdays .we td{background:#f6f8fa}.wkdays .cur{outline:2px solid var(--brand2);outline-offset:-2px}
.wtable td:first-child{text-align:center}
.wtable tr.cur td{background:#fff6d6}
.wtable .isoalt{display:block;font-size:11px;line-height:1.2;color:var(--muted);font-weight:normal;white-space:nowrap}
.wtable .isoalt[hidden]{display:none}
.wkpair{margin:-6px 0 8px;font-size:15px;font-weight:600;color:var(--muted)}
.hnav{margin:22px 0}
/* hand-written page copy (lib/content/*.md) */
.copy{margin:8px 0 10px}
.copy-sec{margin:0 0 6px}
.ctable td:first-child{white-space:normal}
.copy-list{padding-left:20px}.copy-list li{margin:0 0 6px}
.copy-src{font-size:13px;color:var(--muted)}
/* gallery */
.gfilter{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;margin:18px 0 6px;padding:14px;border:1px solid var(--line);border-radius:var(--radius);background:var(--soft)}
.gfilter label{font-weight:700;font-size:14px}
.gfilter select{display:block;width:100%;margin-top:5px;padding:8px 9px;border:1px solid #b9c2cd;border-radius:8px;font:inherit;font-weight:400;background:#fff}
.gcount{font-size:14px;color:var(--muted);margin:8px 0 12px}
.gallery .card[hidden]{display:none}
@media (max-width:720px){.gfilter{grid-template-columns:repeat(2,minmax(0,1fr))}}
.legal h2{scroll-margin-top:72px;font-size:21px;margin-top:28px}.legal .toc{columns:2;padding-left:22px}.legal li{margin:0 0 6px}.lnote{max-width:860px}
@media (max-width:720px){.legal .toc{columns:1}}
/* ads */
/* as on kalenteri: a slot reserves its full height and never collapses (no layout shift); grey + label only while empty */
.ad{display:block;clear:both;margin:22px auto;max-width:100%;text-align:center}
.ad-label{display:block;margin:0 0 4px;font-size:11px;line-height:14px;color:#5f6b78;text-transform:uppercase;letter-spacing:.06em}
.ad-box{display:flex;align-items:center;justify-content:center;max-width:100%;margin:0 auto;background:#f4f6f8;border-radius:4px;overflow:hidden}
.ad-box>ins.adsbygoogle{margin:0 auto}.ad-box>ins.adsbygoogle[style*="display:block"]{width:100%}
.ad:has(ins.adsbygoogle[data-ad-status="filled"]) .ad-box,.ad:has(ins.adsbygoogle[data-ad-status="unfill-optimized"]) .ad-box{background:transparent}
.ad:has(ins.adsbygoogle[data-ad-status="filled"]) .ad-label,.ad:has(ins.adsbygoogle[data-ad-status="unfill-optimized"]) .ad-label{visibility:hidden}
.ad-filled .ad-box{background:transparent}.ad-filled .ad-label{visibility:hidden}
.ad-top{margin:8px auto 0}.ad-top .ad-box,.ad-fixed{width:320px;height:100px}
.ad-i1,.ad-i2,.ad-bottom{margin:40px auto}.minis3>.ad-i0{grid-column:1/-1;margin:14px auto}
/* side ad: the row becomes two columns only when the script has placed an ad (lib/ads-inline.js) */
.adrow.on{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:28px;align-items:start}.adrow.on .prose,.adrow.on .copy,.adrow.on .wdcal,.adrow.on .htable{max-width:none}
.adrow-s{position:relative}.adrow-s>.ad{margin:0}.adrow-s .ad-label{position:absolute;left:0;right:0;top:-19px}.adrow-s .ad-sticky{position:sticky;top:26px}.adrow-s .ad-sticky .ad-label{top:-19px}
.side.has-ad .ad{margin:14px auto 0}
@media (min-width:768px){.side.has-ad .hlist li:nth-child(n+4){display:none}}
.ad-rail{display:none}
@media (min-width:1560px) and (min-height:760px){.ad-rail{display:block;position:fixed;top:96px;width:160px;margin:0;z-index:5}.ad-left{left:calc(50% - 590px - 180px)}.ad-right{right:calc(50% - 590px - 180px)}.ad-rail .ad-box,.ad-rail ins.adsbygoogle{width:160px;height:600px}}
@media (max-width:767.98px){.ad-w-desktop{display:none}}
@media (min-width:768px){.ad-w-phone{display:none}.ad-top .ad-box,.ad-fixed{width:728px;height:90px}}
.ad-preview{outline:2px dashed #c62828;outline-offset:2px;background:repeating-linear-gradient(45deg,#fff6f6,#fff6f6 10px,#fff 10px,#fff 20px)}
.ad-preview.ad-near{outline:3px solid #f9a825}.ad-preview .ad-box{background:transparent}.ad-name{padding:4px;font:600 13px/1.3 monospace;color:#b71c1c}
.ckbox{position:fixed;left:16px;right:16px;bottom:16px;max-width:560px;margin:0 auto;z-index:900;background:#fff;border:1px solid var(--line);border-radius:12px;box-shadow:0 8px 30px rgba(0,0,0,.2);padding:16px 18px;font-size:15px}
.ckbox p{margin:0 0 12px}.ckbox div{display:flex;gap:10px}.ckbox button{flex:1;padding:10px;border:1px solid var(--brand);border-radius:8px;background:#fff;color:var(--brand);font:inherit;font-weight:700;cursor:pointer}
.js-cookies{display:block;border:0;background:none;padding:3px 0;font:inherit;color:var(--ink);cursor:pointer;text-align:left}.js-cookies:hover{text-decoration:underline}
/* faq */
.faq details{border:1px solid var(--line);border-radius:9px;margin:0 0 10px;background:#fff}
.faq summary{cursor:pointer;padding:12px 14px;font-weight:700}
.faq-a{padding:0 14px 4px}
.site-foot{margin-top:40px;background:#f3f5f8;border-top:1px solid var(--line);font-size:14px}
.foot-in{display:grid;grid-template-columns:2fr 1fr 1fr 1fr;gap:24px;padding-top:26px}
.foot-in a{display:block;color:var(--ink);text-decoration:none;padding:3px 0}
.foot-in a:hover{text-decoration:underline}
.site-foot .copy{margin:14px auto 0;color:var(--muted);padding-bottom:22px}
@media (max-width:900px){
  .two,.detail,.two2{grid-template-columns:1fr}
  .doytable{font-size:11px}.doytable th,.doytable td{padding:3px 2px}.htable.keep td:nth-child(3),.htable.keep th:nth-child(3){display:table-cell}
  .panel{position:static}
}
@media (max-width:720px){
  .nav-btn{display:block}
  .nav{display:none;position:absolute;left:0;right:0;top:58px;background:#fff;border-bottom:1px solid var(--line);flex-direction:column;padding:8px 16px}
  .nav.open{display:flex}
  .mcal-tb .lg{display:none}.mcal-tb .sm{display:inline}
  .mcal-tb td{height:58px;padding:3px}
  .mcal-tb .d{font-size:15px}
  .mcal-tb .hn,.mcal-tb .on{font-size:10px;line-height:1.2;max-height:2.4em;overflow-wrap:normal;word-break:normal}
  .mcal-tb .hn .sm{display:inline}
  .mcal-tb th.wk{width:32px;font-size:11px}
  .mcal-tb td.wk{font-size:13px;padding:0 1px}
  .foot-in{grid-template-columns:1fr}
  .feat{columns:1}
  .cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .htable td:nth-child(3),.htable th:nth-child(3){display:none}
  .ctable td:nth-child(3),.ctable th:nth-child(3),.wtable td:nth-child(3),.wtable th:nth-child(3){display:table-cell}
  .wtable{font-size:13px}
  .ctable{font-size:14px}.ctable th,.ctable td{padding:8px 7px}
  .preview{padding:10px}
}
.payform .rangeform{align-items:flex-end}.payform .rangeform label{flex:1 1 255px;max-width:400px;font-size:15px}.payform select{display:block;width:100%;padding:0 8px;border:1px solid #b9c2cd;border-radius:8px;font:inherit;background:#fff}.sw+.sw{margin-left:14px}.rangeform input[type=date]{display:block;width:100%;height:44px;margin-top:5px;padding:0 10px;border:1px solid #b9c2cd;border-radius:8px;font:inherit;background:#fff}
.payform form:has(select[name=f] option[value=biweekly]:checked) :is(.p-semi,.p-mon),.payform form:has(select[name=f] option[value=weekly]:checked) :is(.p-semi,.p-mon),.payform form:has(select[name=f] option[value=semimonthly]:checked) :is(.p-date,.p-mon),.payform form:has(select[name=f] option[value=monthly]:checked) :is(.p-date,.p-semi){display:none}
.paytable td small{color:var(--muted)}#schedule,#periods,#calendar,#result{scroll-margin-top:72px}.bdtform{margin:14px 0}
/* previous / next and year picker (lib/years.php, anyyear.js) */
.pn-a{display:inline-flex;align-items:center;gap:5px;min-height:38px;padding:4px 13px;border:1px solid #b9c2cd;border-radius:9px;background:#fff;color:var(--brand);font:inherit;font-size:15px;font-weight:700;text-decoration:none;white-space:nowrap;cursor:pointer}
.pn-a:hover,.pn-a:focus-visible{background:var(--soft);border-color:var(--brand)}.pn-a span{font-size:18px;line-height:1}
.pnbar{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:10px;margin:14px 0;scroll-margin-top:72px}.pnbar>:last-child{justify-self:end}.pnbar>:first-child{justify-self:start}
.span2y>.pnbar,#calendar>.pnbar{max-width:900px;margin-left:auto;margin-right:auto}
.adrow.on .pnbar{grid-template-columns:auto auto auto;justify-content:start}.pn-cur{color:var(--brand);font-size:17px;text-align:center}
.ypick{display:flex;gap:8px;align-items:center;margin:0}.ypick label{margin:0}.ypick select{height:40px;margin:0;padding:0 8px;border:1px solid #b9c2cd;border-radius:9px;background:#fff;font:inherit;font-size:15px}
.ypick button[type=submit]{height:40px;padding:0 16px;border:1px solid var(--brand);border-radius:9px;background:var(--brand);color:#fff;font:inherit;font-weight:700;cursor:pointer}.ypick button[type=submit]:hover{background:var(--brand2)}
.pk{position:relative;display:block}.pk .pk-n{position:absolute!important;width:1px!important;height:1px!important;min-width:0!important;padding:0!important;margin:0!important;border:0!important;opacity:0;pointer-events:none;left:0;bottom:0}
.pk-b,.ypick .pk-b{display:block;width:100%;min-width:84px;height:40px;padding:0 30px 0 12px;border:1px solid #b9c2cd;border-radius:9px;background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%231f3a5f' stroke-width='2'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E") no-repeat right 11px center;color:#1b1f24;font:inherit;font-size:15px;font-weight:400;text-align:left;white-space:nowrap;cursor:pointer}
.ypick .pk-b:hover,.pk-b:hover{background-color:var(--soft)}.ypick label:first-child .pk-b{min-width:146px}.spanpick .pk-b{height:44px;margin-top:5px}
.pk-l{position:absolute;left:0;top:calc(100% + 3px);z-index:40;min-width:100%;max-height:306px;margin:0;padding:0;overflow-y:auto;overscroll-behavior:contain;list-style:none;background:#fff;border:1px solid #8a96a5;border-radius:9px;box-shadow:0 10px 28px rgba(15,30,55,.22);outline:0;font-weight:400}
.pk-l li{margin:0;padding:8px 14px;font-size:15px;line-height:22px;white-space:nowrap;cursor:pointer}.pk-l li.on{background:#e6eef8}.pk-l li[aria-selected=true]{background:var(--brand);color:#fff;font-weight:700}.pk-l li[aria-disabled=true]{color:#a3abb5;cursor:default}
.has-any>.pnbar>.pn-a{visibility:hidden}.has-any>.minis,.has-any>.mcal,.has-any>h2,.has-any>.note{display:none}.anysec.has-any>h2,.anysec.has-any>p{display:block}
.any-h{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:10px;margin:14px auto;max-width:900px}.any-h h2{margin:0;text-align:center}.any-h>:last-child{justify-self:end}.any-h>:first-child{justify-self:start}
.anyyear .mini h3{color:#fff}.any-n,.any-b{max-width:900px;margin-left:auto;margin-right:auto}.any-b{display:flex;gap:10px;flex-wrap:wrap}
@media (max-width:620px){.pnbar{grid-template-columns:1fr 1fr}.pnbar>.ypick,.pnbar>.pn-cur{grid-column:1/-1;grid-row:1;justify-self:stretch}.ypick label{flex:1}.ypick select{width:100%}.ypick label:first-child .pk-b{min-width:0}.any-h{grid-template-columns:1fr 1fr}.any-h h2{grid-column:1/-1;grid-row:1}}
@media print{.pnbar,.any-b,.any-h button{display:none!important}body.any-on main>*:not(.has-any){display:none!important}body.any-on .has-any>*:not(.anyyear){display:none!important}body.any-on .minis3{grid-template-columns:repeat(3,1fr)!important;gap:10px;max-width:none}.anyyear th{color:#1f3a5f!important}.anyyear .mini h3{color:#1f3a5f!important}.any-h{display:block!important}body.any-on .mini td,body.any-on .mini th{padding:1px 0;font-size:11px}.site-head,.site-foot,.ad,.panel,.faq,.crumbs,.staging,ins.adsbygoogle,#bc-print-modal,.ckbox,.dlopts,.dlbar,.toggle,.lay,.ptabs,.fdl,.fdls{display:none!important}}
.bc-print-frame{position:fixed;right:0;bottom:0;width:1px;height:1px;border:0;opacity:0;pointer-events:none}
#bc-print-modal{position:fixed;inset:0;z-index:1000;background:rgba(15,23,42,.45);display:flex;align-items:center;justify-content:center}
#bc-print-modal>div{background:#fff;border-radius:12px;padding:22px 26px;text-align:center;max-width:320px;box-shadow:0 10px 30px rgba(0,0,0,.25)}
#bc-print-modal p{margin:12px 0 14px;color:var(--brand);font-weight:600}
#bc-print-modal button{border:1px solid var(--line);background:#fff;border-radius:8px;padding:6px 14px;cursor:pointer}
#bc-print-modal .spin{display:inline-block;width:30px;height:30px;border:3px solid #d9e1ec;border-top-color:var(--brand);border-radius:50%;animation:bcspin .8s linear infinite}
@keyframes bcspin{to{transform:rotate(360deg)}}

/* suggestions after a download (after.js) */
.after{grid-column:1/-1;margin:12px 0 6px;padding:12px 14px 14px;border:1px solid #b7d7c4;border-left:4px solid #1e7145;border-radius:var(--radius);background:#f4faf6;scroll-margin:80px 0 12px}
.after-h{display:flex;align-items:flex-start;gap:10px}.after-h p{margin:0;flex:1;font-size:15px}.after-ok{color:#1e7145;font-weight:700}
.after-x{flex:none;width:32px;height:32px;margin:-6px -6px 0 0;border:0;background:none;font-size:22px;line-height:1;color:var(--muted);cursor:pointer;border-radius:6px}.after-x:hover{background:#e3f0e8;color:var(--ink)}
.after-l{margin:10px 0 8px;font-size:13px;font-weight:700;color:var(--muted)}
.after-g{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:10px}
.after-i{display:flex;align-items:center;gap:10px;height:84px;padding:8px;box-sizing:border-box;border:1px solid var(--line);border-radius:8px;background:#fff;color:var(--ink);text-decoration:none;overflow:hidden}
a.after-i:hover{border-color:#8fb9a1;box-shadow:0 2px 8px rgba(20,40,70,.1)}
.after-t{flex:none;width:80px;height:62px;display:flex;align-items:center;justify-content:center;background:var(--soft);border-radius:4px}.after-t img{display:block;max-width:100%;max-height:100%;width:auto;height:auto;box-shadow:0 1px 3px rgba(0,0,0,.2)}
.after-i b,.after-i small{display:block;line-height:1.3}.after-i b{font-size:14px}.after-i small{font-size:12.5px;color:var(--muted)}.after-i>span:last-child{min-width:0;max-height:66px;overflow:hidden}
@media (min-width:821px){.detail .after-g{grid-template-columns:1fr}.detail .after-i:nth-child(4){display:none}}
@media (max-width:560px){.after-g{grid-template-columns:1fr}.after-i:nth-child(4){display:none}.after-i{height:80px}}
@media print{.after{display:none}}