/* ---------- fonts (self-hosted) ---------- */
@font-face{font-family:Inter;font-weight:400;font-display:swap;src:url(fonts/inter-latin-400-normal.woff2) format("woff2")}
@font-face{font-family:Inter;font-weight:500;font-display:swap;src:url(fonts/inter-latin-500-normal.woff2) format("woff2")}
@font-face{font-family:Inter;font-weight:600;font-display:swap;src:url(fonts/inter-latin-600-normal.woff2) format("woff2")}
@font-face{font-family:Inter;font-weight:700;font-display:swap;src:url(fonts/inter-latin-700-normal.woff2) format("woff2")}
@font-face{font-family:Fraunces;font-weight:400;font-display:swap;src:url(fonts/fraunces-latin-400-normal.woff2) format("woff2")}
@font-face{font-family:Fraunces;font-weight:600;font-display:swap;src:url(fonts/fraunces-latin-600-normal.woff2) format("woff2")}
@font-face{font-family:"DM Sans";font-weight:400;font-display:swap;src:url(fonts/dm-sans-latin-400-normal.woff2) format("woff2")}
@font-face{font-family:"DM Sans";font-weight:700;font-display:swap;src:url(fonts/dm-sans-latin-700-normal.woff2) format("woff2")}
@font-face{font-family:Nunito;font-weight:700;font-display:swap;src:url(fonts/nunito-latin-700-normal.woff2) format("woff2")}
@font-face{font-family:Nunito;font-weight:900;font-display:swap;src:url(fonts/nunito-latin-900-normal.woff2) format("woff2")}
@font-face{font-family:"Space Grotesk";font-weight:400;font-display:swap;src:url(fonts/space-grotesk-latin-400-normal.woff2) format("woff2")}
@font-face{font-family:"Space Grotesk";font-weight:700;font-display:swap;src:url(fonts/space-grotesk-latin-700-normal.woff2) format("woff2")}

/* ---------- site ---------- */
:root{--ink:#141414;--muted:#6b6b6b;--line:#e4e2dd;--bg:#ffffff;--panel:#f4f3f0;--brand:#141414;--radius:10px}
*{box-sizing:border-box}
[hidden]{display:none!important}
html{-webkit-text-size-adjust:100%}
body{margin:0;font:16px/1.55 Inter,system-ui,sans-serif;color:var(--ink);background:var(--bg)}
a{color:inherit}
.wrap{max-width:1240px;margin:0 auto;padding:0 24px}
.site-head{border-bottom:1px solid var(--line)}
.site-head .wrap{display:flex;align-items:center;justify-content:space-between;height:60px}
.logo{font-weight:700;letter-spacing:-.02em;text-decoration:none;font-size:18px;display:flex;align-items:center;gap:8px}
.logo i{display:inline-grid;grid-template-columns:repeat(3,5px);gap:2px}
.logo i b{width:5px;height:5px;background:var(--ink);border-radius:1px}
.logo i b:nth-child(5){background:#e04e2b}
.head-links{display:flex;gap:18px;font-size:14px;color:var(--muted)}
.head-links a{text-decoration:none}
.head-links a:hover{color:var(--ink)}

.suggest{background:#141414;color:#fff;font-size:14px}
.suggest .wrap{display:flex;gap:12px;align-items:center;justify-content:center;padding:10px 24px}
.suggest a{background:#fff;color:#141414;padding:3px 12px;border-radius:99px;text-decoration:none;font-weight:600}

.hero{padding:44px 0 26px}
.hero h1{font-size:clamp(28px,4vw,44px);line-height:1.1;letter-spacing:-.025em;margin:0 0 12px;max-width:820px;font-weight:700}
.hero p{margin:0;color:var(--muted);font-size:18px;max-width:640px}

.tool{display:grid;grid-template-columns:310px 1fr;gap:28px;align-items:start;padding-bottom:56px}
.controls{display:flex;flex-direction:column;gap:22px}
.ctl-group{display:flex;flex-direction:column;gap:14px}
.ctl-tabs,.fab{display:none}
.stage.single{position:sticky;top:16px}
.field>label,.field>.lbl{display:block;font-size:13px;font-weight:600;margin-bottom:7px}
.field small{display:block;color:var(--muted);font-size:12px;margin-top:5px}
select,input[type=text],textarea{width:100%;font:inherit;font-size:15px;padding:9px 11px;border:1px solid var(--line);border-radius:8px;background:#fff;color:var(--ink)}
textarea{min-height:76px;resize:vertical;font-size:13px;line-height:1.5}
select:focus,input:focus,textarea:focus,button:focus-visible{outline:2px solid var(--ink);outline-offset:1px}
.row2{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.seg{display:flex;background:var(--panel);border-radius:9px;padding:3px;gap:3px}
.seg button{flex:1;border:0;background:transparent;padding:7px 6px;border-radius:7px;font:inherit;font-size:13px;cursor:pointer;color:var(--muted)}
.seg button[aria-pressed=true]{background:#fff;color:var(--ink);font-weight:600;box-shadow:0 1px 2px rgba(0,0,0,.08)}
.themes{display:grid;grid-template-columns:repeat(4,1fr);gap:6px}
.themes button{border:1px solid var(--line);background:#fff;border-radius:8px;padding:8px 2px 6px;cursor:pointer;font:inherit;font-size:10.5px;color:var(--muted);display:flex;flex-direction:column;align-items:center;gap:3px}
.themes button b{font-size:19px;color:var(--ink);line-height:1}
.themes button[aria-pressed=true]{border-color:var(--ink);color:var(--ink);box-shadow:inset 0 0 0 1px var(--ink)}
.themes [data-set="theme:editorial"] b{font-family:Fraunces,serif}
.themes [data-set="theme:soft"] b{font-family:"DM Sans",sans-serif}
.themes [data-set="theme:bold"] b{font-family:"Space Grotesk",sans-serif}
.themes [data-set="theme:ink"] b{font-weight:400;color:#141414}
.themes [data-set="theme:fofo"] b{font-family:Nunito,sans-serif;font-weight:900;color:#e8789a}
.themes [data-set="theme:colorir"] b{font-family:Nunito,sans-serif;font-weight:900;color:transparent;-webkit-text-stroke:1px #141414}
.swatches{display:flex;flex-wrap:wrap;gap:10px}
.swatch{width:34px;height:34px;border-radius:50%;border:0;background:var(--c);cursor:pointer;box-shadow:0 0 0 1px rgba(0,0,0,.08)}
.swatch[aria-pressed=true]{box-shadow:0 0 0 2px #fff,0 0 0 4px var(--c)}
.checks{display:flex;flex-direction:column;gap:8px;font-size:14px}
.checks label{display:flex;gap:9px;align-items:center;cursor:pointer}
.checks input{width:17px;height:17px;accent-color:var(--ink)}

.stage{background:var(--panel);border-radius:14px;padding:18px 18px 28px;min-width:0}
.actions{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin-bottom:16px}
.btn{display:inline-flex;align-items:center;gap:8px;border:0;background:var(--brand);color:#fff;font:inherit;font-weight:600;font-size:15px;padding:11px 18px;border-radius:9px;cursor:pointer;text-decoration:none}
.btn:hover{background:#000}
.btn.ghost{background:#fff;color:var(--ink);box-shadow:inset 0 0 0 1px var(--line)}
.hint{font-size:13px;color:var(--muted);flex-basis:100%;margin:0}
#preview{display:flex;flex-direction:column;align-items:center;gap:22px;width:100%}
#preview.grid{display:grid;grid-template-columns:repeat(var(--cols,3),auto);justify-content:center;align-content:start;gap:var(--gap,12px)}
#preview.grid .sheet-wrap{box-shadow:0 1px 2px rgba(0,0,0,.08),0 3px 10px rgba(0,0,0,.08)}
.sheet-wrap{position:relative;overflow:hidden;box-shadow:0 1px 2px rgba(0,0,0,.06),0 8px 28px rgba(0,0,0,.08);background:#fff;flex:none}
.sheet-wrap>.sheet{transform-origin:0 0;position:absolute;top:0;left:0}

.content{max-width:820px;padding:12px 0 56px}
.content h2{font-size:24px;letter-spacing:-.015em;margin:36px 0 14px}
.hol-table{width:100%;border-collapse:collapse;font-size:15px}
.hol-table th{text-align:left;font-size:12px;text-transform:uppercase;letter-spacing:.06em;color:var(--muted);font-weight:600;padding:8px 10px;border-bottom:1px solid var(--ink)}
.hol-table td{padding:10px;border-bottom:1px solid var(--line)}
.hol-table td:first-child{white-space:nowrap;font-weight:600}
details{border-bottom:1px solid var(--line);padding:4px 0}
summary{cursor:pointer;font-weight:600;list-style:none;display:flex;justify-content:space-between;align-items:center;gap:12px;min-height:48px}
summary::-webkit-details-marker{display:none}
summary::after{content:"+";font-weight:400;color:var(--muted)}
details[open] summary::after{content:"−"}
details p{margin:0 0 12px;color:#333}
.links{display:flex;flex-wrap:wrap;gap:8px;margin:0;padding:0;list-style:none}
.links a{display:inline-flex;align-items:center;min-height:44px;padding:0 15px;border:1px solid var(--line);border-radius:99px;text-decoration:none;font-size:14px}
.links a:hover{border-color:var(--ink)}
.links-label{font-size:13px;color:var(--muted);margin:18px 0 8px}

.countries{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:12px;margin:8px 0 40px}
.country{border:1px solid var(--line);border-radius:12px;padding:16px}
.country h3{margin:0 0 10px;font-size:17px}
.country a{display:inline-block;padding:10px 0;margin-right:14px;font-size:14px;font-weight:600;text-decoration:none;border-bottom:1px solid var(--line)}
.country a:hover{border-color:var(--ink)}

.site-foot{border-top:1px solid var(--line);color:var(--muted);font-size:14px}
.site-foot .wrap{display:flex;justify-content:space-between;gap:12px;padding:24px}
.ad{margin:32px 0;clear:both}
.ad-label{display:block;font-size:12px;color:var(--muted);letter-spacing:.05em;text-transform:uppercase;margin:0 0 6px}
.ad-content{min-height:310px}
.ad-box{height:280px;border:1.5px dashed #c9c9c4;border-radius:10px;display:flex;align-items:center;justify-content:center;text-align:center;padding:0 12px;color:#62625c;font-size:14px;background:#fafaf7}
.ad-below-preview{margin:28px auto 0;max-width:760px;min-height:116px}
.ad-below-preview .ad-box{height:90px}
.ad-rail{display:none}
@media (max-width:900px){.ad-below-preview{display:none}}
@media (min-width:1200px){
  .content.has-rail{display:grid;grid-template-columns:minmax(0,1fr) 300px;column-gap:48px;max-width:none;align-items:start}
  .content.has-rail>*{grid-column:1}
  .content.has-rail>.ad-rail{display:block;grid-column:2;grid-row:1/span 60;position:sticky;top:20px;margin:36px 0 0;min-height:624px}
  .ad-rail .ad-box{height:600px}
}
.fab{transition:opacity .2s,transform .2s}
body.ad-low .fab{opacity:0;pointer-events:none;transform:translateY(12px)}
.prose{max-width:720px;padding:40px 0 60px}

@media (max-width:900px){
  body.has-tool{padding-bottom:84px}
  .tool{display:block;padding-bottom:24px}
  .stage,.stage.single{position:static;padding:10px 0 4px;background:transparent;border-radius:0}
  .stage .actions{display:none}
  .stage .actions .hint{display:block}
  #preview{gap:14px}
  .controls{position:fixed;left:0;right:0;bottom:0;z-index:40;gap:0;background:#fff;border-top:1px solid var(--line);box-shadow:0 -10px 30px rgba(0,0,0,.10);border-radius:18px 18px 0 0;transition:transform .2s ease;padding-bottom:env(safe-area-inset-bottom)}
  .controls.off{transform:translateY(120%)}
  .ctl-group{display:none;padding:16px 16px 8px;max-height:42vh;overflow:auto}
  .ctl-group.active{display:flex}
  .ctl-tabs{display:flex;align-items:stretch;gap:2px;padding:6px 8px 8px}
  .ctl-tab,.ctl-print{flex:1;display:flex;flex-direction:column;align-items:center;gap:3px;border:0;background:none;font:inherit;font-size:11px;font-weight:600;color:var(--muted);padding:6px 2px;border-radius:10px;cursor:pointer;min-height:48px}
  .ctl-tab[aria-selected=true]{color:var(--ink);background:var(--panel)}
  .ctl-print{background:var(--ink);color:#fff;flex:1.2}
  .themes{display:grid;grid-auto-flow:column;grid-auto-columns:76px;grid-template-columns:none;overflow-x:auto;padding-bottom:4px;scroll-snap-type:x mandatory}
  .themes button{scroll-snap-align:start}
  .swatches{display:grid;grid-template-columns:repeat(5,44px);justify-content:space-between;overflow:visible;padding:4px 4px 6px}
  .swatches{gap:12px 0}
  .swatch{flex:none;width:44px;height:44px}
  .fab{display:block;position:fixed;left:16px;right:16px;bottom:calc(14px + env(safe-area-inset-bottom));z-index:39;border:0;border-radius:12px;background:var(--ink);color:#fff;font:inherit;font-weight:600;font-size:15px;padding:14px;box-shadow:0 8px 24px rgba(0,0,0,.2)}
  .fab[hidden]{display:none!important}
  .fab-link{display:block;text-align:center;text-decoration:none}
  body:has(.fab-link){padding-bottom:84px}
  .seg button{min-height:44px}
  .ctl-tab,.ctl-print{font-size:12px}
  select,input[type=text],textarea{font-size:16px;min-height:44px}
  .city-index li a{display:block;padding:10px 0}
  .logo{min-height:44px}
  .combo-list{position:static;margin-top:6px;box-shadow:none;max-height:none}
  .next-holiday{min-height:0;padding:12px 14px}
  .hero .next-holiday .nh-name,.nh-name{font-size:19px}
  .hero .next-holiday .nh-prev{display:none}
}
@media (max-width:640px){.hero h1{font-size:26px}.hero p{font-size:15px}.hero .next-holiday p{font-size:14px}}

/* ---------- sheets (print units) ---------- */
.sheet{width:var(--sw);height:var(--sh);background:#fff;color:#161616;overflow:hidden;
  --ink:#161616;--muted:#767676;--line:#d9d9d9;--fh:Inter,sans-serif;--fb:Inter,sans-serif;--hw:600;
  --soft:color-mix(in srgb,var(--accent) 13%,#fff);
  font-family:var(--fb);-webkit-print-color-adjust:exact;print-color-adjust:exact;display:flex;flex-direction:column}
.theme-editorial{--fh:Fraunces,Georgia,serif;--hw:600}
.theme-soft{--fh:"DM Sans",sans-serif;--fb:"DM Sans",sans-serif;--hw:700;--line:#e3e3e3}
.theme-bold{--fh:"Space Grotesk",sans-serif;--fb:"Space Grotesk",sans-serif;--hw:700;--ink:#111}
.theme-ink{--hw:500;--line:#cfcfcf;--muted:#9a9a9a}

/* year on one page */
.sheet-year{padding:13mm 13mm 11mm}
.sy-head{display:flex;align-items:flex-end;justify-content:space-between;gap:8mm;margin-bottom:6mm;border-bottom:.35mm solid var(--ink);padding-bottom:3mm}
.sy-year{font-family:var(--fh);font-weight:var(--hw);font-size:46pt;line-height:.85;letter-spacing:-.03em}
.sy-title{font-size:11pt;color:var(--muted);text-align:right;max-width:60%;line-height:1.2}
.sy-grid{flex:1;display:grid;grid-template-columns:repeat(3,1fr);grid-template-rows:repeat(4,1fr);column-gap:8mm;row-gap:4mm;min-height:0}
.mm{display:flex;flex-direction:column;min-height:0}
.mm h3{margin:0 0 1.6mm;font-family:var(--fh);font-weight:var(--hw);font-size:11.5pt;letter-spacing:-.01em}
.mm table{width:100%;flex:1;border-collapse:collapse;table-layout:fixed}
.mm th{font-size:6.6pt;font-weight:600;color:var(--muted);padding:0 0 1mm;text-align:center}
.mm td{font-size:8.2pt;text-align:center;padding:0;vertical-align:middle;font-variant-numeric:tabular-nums}
.mm td span{display:inline-flex;align-items:center;justify-content:center;width:5.2mm;height:5.2mm;border-radius:50%}
.mm td.we{color:var(--muted)}
.mm td.hol span{color:var(--accent);font-weight:700}
.mm td.evt span{box-shadow:inset 0 0 0 .25mm var(--ink)}
.mm .wk{font-size:5.6pt;color:var(--muted);width:4mm;text-align:left}
.sy-list{flex:none;margin-top:5mm;border-top:.2mm solid var(--line);padding-top:3mm}
.sy-list h4{margin:0 0 1.6mm;font-size:7pt;text-transform:uppercase;letter-spacing:.08em;color:var(--muted);font-weight:600}
.sy-list ul{margin:0;padding:0;list-style:none;columns:3;column-gap:8mm;font-size:7pt;line-height:1.5}
.sy-list li{break-inside:avoid;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sy-list b{display:inline-block;min-width:11mm;color:var(--accent);font-weight:600}
.sy-list li.e b{color:var(--ink)}
.sy-list li.o{color:var(--muted)}
.sy-list li.o b{color:var(--muted);font-weight:500}

/* themes: year */
.theme-editorial .sy-head{border-bottom-width:.2mm}
.theme-editorial .sy-year{font-size:54pt;font-weight:400}
.theme-editorial .mm h3{font-size:13pt;font-weight:400;font-style:normal;border-bottom:.15mm solid var(--line);padding-bottom:1mm}
.theme-soft .sy-head{border:0;background:var(--soft);border-radius:4mm;padding:5mm 6mm}
.theme-soft .sy-year{color:var(--accent)}
.theme-soft .mm h3{background:var(--soft);color:color-mix(in srgb,var(--accent) 75%,#000);border-radius:99px;padding:.8mm 3mm;font-size:10pt;align-self:flex-start}
.theme-soft .mm td.hol span{background:var(--accent);color:#fff}
.theme-bold .sy-head{border:0;padding:0}
.theme-bold .sy-year{font-size:78pt;color:var(--accent);letter-spacing:-.05em}
.theme-bold .mm h3{text-transform:uppercase;font-size:10pt;letter-spacing:.04em;border-top:.8mm solid var(--ink);padding-top:1.4mm}
.theme-bold .mm td.hol span{background:var(--accent);color:#fff;border-radius:1mm}
.theme-ink .sy-head{border-bottom-width:.15mm}
.theme-ink .sy-year{font-weight:400;color:#333}
.theme-ink .mm h3{font-weight:500;color:#333}
.theme-ink .mm td{color:#444}
.theme-ink .mm td.hol span{color:inherit;font-weight:500;box-shadow:inset 0 0 0 .2mm #555}
.theme-ink .sy-list b{color:#333}

/* one month per page */
.sheet-month{padding:11mm 12mm 10mm}
.sm-head{display:flex;align-items:flex-end;justify-content:space-between;margin-bottom:4mm}
.sm-name{font-family:var(--fh);font-weight:var(--hw);font-size:34pt;line-height:.9;letter-spacing:-.025em}
.sm-meta{display:flex;align-items:flex-end;gap:5mm;font-size:12pt;color:var(--muted)}
.sm-year{font-family:var(--fh);font-weight:var(--hw);font-size:18pt;color:var(--ink);line-height:1}
.sm-grid{flex:1;width:100%;border-collapse:collapse;table-layout:fixed}
.sm-grid th{font-size:8pt;font-weight:600;text-transform:uppercase;letter-spacing:.06em;color:var(--muted);text-align:left;padding:0 2mm 1.6mm}
.sm-grid td{border:.2mm solid var(--line);vertical-align:top;padding:1.6mm 2mm;position:relative;overflow:hidden}
.sm-grid td.out{background:transparent}
.sm-grid .d{display:block;font-size:13pt;font-weight:600;line-height:1;font-variant-numeric:tabular-nums}
.sm-grid td.we .d{color:var(--muted)}
.sm-grid .h{display:block;margin-top:1.4mm;font-size:7pt;line-height:1.25;color:var(--accent);font-weight:600}
.sm-grid .o{display:block;margin-top:1.2mm;font-size:6.6pt;line-height:1.25;color:var(--muted)}
.sm-grid .e{display:block;margin-top:1mm;font-size:7pt;line-height:1.25;color:var(--ink)}
.sm-grid td.hol .d{color:var(--accent)}
.sm-grid th.wk,.sm-grid td.wk{width:7mm;border:0;font-size:7pt;color:var(--muted);padding-left:0}
.theme-editorial .sm-name{font-weight:400;font-size:40pt}
.theme-editorial .sm-grid .d{font-family:Fraunces,serif;font-weight:400;font-size:14pt}
.theme-soft .sm-head{background:var(--soft);border-radius:4mm;padding:4mm 5mm;margin-bottom:3mm}
.theme-soft .sm-name{color:color-mix(in srgb,var(--accent) 80%,#000)}
.theme-soft .sm-grid{border-collapse:separate;border-spacing:1.4mm}
.theme-soft .sm-grid td{border:0;background:#f6f6f4;border-radius:2mm}
.theme-soft .sm-grid td.out{background:transparent}
.theme-soft .sm-grid td.hol{background:var(--soft)}
.theme-soft .sm-grid td.wk{background:transparent}
.theme-bold .sm-name{text-transform:uppercase;font-size:40pt;color:var(--accent);letter-spacing:-.03em}
.theme-bold .sm-grid th{color:var(--ink);border-bottom:.8mm solid var(--ink)}
.theme-bold .sm-grid td{border-color:#cfcfcf}
.theme-bold .sm-grid td.hol{background:var(--accent)}
.theme-bold .sm-grid td.hol .d,.theme-bold .sm-grid td.hol .h,.theme-bold .sm-grid td.hol .e,.theme-bold .sm-grid td.hol .o{color:#fff}
.theme-ink .sm-name{font-weight:400;color:#333}
.theme-ink .sm-grid td{border-width:.15mm}
.theme-ink .sm-grid .d{font-weight:500;color:#444}
.theme-ink .sm-grid .h,.theme-ink .sm-grid td.hol .d{color:#333}

/* ---------- Brazil UI ---------- */
.city-field input{font-weight:600}
.combo{position:relative}
.combo-list{position:absolute;left:0;right:0;top:calc(100% + 4px);z-index:60;background:#fff;border:1px solid var(--line);border-radius:10px;box-shadow:0 12px 30px rgba(0,0,0,.12);list-style:none;margin:0;padding:4px;max-height:300px;overflow:auto;min-width:240px}
.combo-list li{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:0 10px;min-height:44px;border-radius:8px;cursor:pointer;font-size:15px}
.combo-list li span{color:var(--muted);font-size:13px;font-weight:600}
.combo-list li:hover,.combo-list li.on{background:var(--panel)}
.combo-list li.empty{color:var(--muted);cursor:default}
.file-btn{position:relative;display:inline-flex;align-items:center;min-height:40px;padding:0 14px;border:1px solid var(--line);border-radius:8px;font-size:14px;font-weight:600;cursor:pointer;background:#fff;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.file-btn input{position:absolute;opacity:0;width:1px;height:1px;pointer-events:none}
.file-btn:focus-within{outline:2px solid var(--ink);outline-offset:1px}
.table-wrap{overflow-x:auto;-webkit-overflow-scrolling:touch}
.pdf-host{position:fixed;left:-20000px;top:0;pointer-events:none}
.pdf-host .sheet{position:relative}
[data-pdf].busy{opacity:.7;cursor:progress}
.btn svg{flex:none}
.fab-link{display:none}
.next-holiday{min-height:150px}
#preview:empty{min-height:70vh}
.city-link{display:inline-block;margin-top:6px;font-size:13px;font-weight:600}
.file-row{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.file-row input{font-size:13px;max-width:100%}
.link-btn{border:0;background:none;font:inherit;font-size:13px;text-decoration:underline;cursor:pointer;color:var(--muted);padding:0}
.next-holiday{border:1px solid var(--line);border-radius:14px;padding:18px 20px;margin:0 0 22px;max-width:520px}
.next-holiday p,.hero .next-holiday p{margin:0;color:var(--ink);font-size:15px}
.hero .next-holiday .nh-label{font-size:13px;color:var(--muted);font-weight:600}
.hero .next-holiday .nh-name,.nh-name{font-size:24px;font-weight:700;letter-spacing:-.015em;margin:4px 0 2px!important}
.nh-date{font-size:15px;display:flex;gap:10px;flex-wrap:wrap;align-items:baseline}
.nh-date span{background:#141414;color:#fff;border-radius:99px;padding:2px 10px;font-size:13px;font-weight:600}
.hero .next-holiday .nh-prev,.nh-prev{font-size:13px;color:var(--muted);margin-top:8px!important}
.steps{list-style:none;display:flex;flex-wrap:wrap;gap:8px 18px;padding:0;margin:16px 0 0;font-size:15px;font-weight:500}
.steps li{display:flex;align-items:center;gap:8px}
.steps b{display:inline-grid;place-items:center;width:24px;height:24px;border-radius:50%;background:var(--ink);color:#fff;font-size:12px;font-weight:700}
@media (max-width:640px){.hero p{margin-bottom:0}.steps{gap:6px 14px;font-size:14px;margin-top:12px}.steps b{width:22px;height:22px}}
.hero-row{display:grid;grid-template-columns:1fr minmax(260px,380px);gap:28px;align-items:end}
.hero-row .next-holiday{margin:0}
.geo{position:fixed;top:12px;left:50%;transform:translateX(-50%);width:min(620px,calc(100% - 24px));z-index:60;background:#fff4d6;border:1px solid #f1d58a;border-radius:14px;padding:12px 48px 12px 16px;margin:0;display:flex;gap:10px;flex-wrap:wrap;align-items:center;font-size:15px;box-shadow:0 10px 30px rgba(0,0,0,.16);animation:geo-in .25s ease-out}
@keyframes geo-in{from{opacity:0;transform:translate(-50%,-8px)}to{opacity:1;transform:translate(-50%,0)}}
.geo .geo-x{position:absolute;top:4px;right:4px;width:44px;height:44px;padding:0;background:transparent;font-size:24px;line-height:1;color:#555}
.geo span{flex:1 1 220px}
.geo button{border:0;border-radius:8px;padding:0 14px;min-height:44px;font:inherit;font-size:14px;font-weight:600;cursor:pointer}
.geo [data-yes]{background:#141414;color:#fff}
.geo [data-no]{background:transparent;text-decoration:underline}
.thanks{position:fixed;inset:0;background:rgba(20,20,20,.45);display:flex;align-items:center;justify-content:center;padding:20px;z-index:50}
.thanks[hidden]{display:none}
.thanks-box{background:#fff;border-radius:16px;max-width:460px;width:100%;padding:24px;box-shadow:0 20px 60px rgba(0,0,0,.25)}
.thanks-box h2{margin:0 0 6px;font-size:22px;letter-spacing:-.015em}
.thanks-box p{margin:0 0 14px;color:var(--muted)}
.thanks-box ul{list-style:none;margin:0 0 16px;padding:0;display:flex;flex-direction:column;gap:8px}
.thanks-box li a{display:block;border:1px solid var(--line);border-radius:10px;padding:10px 12px;text-decoration:none;font-weight:600}
.thanks-box li a:hover{border-color:var(--ink)}
.hol-table .tag{display:inline-block;font-size:12px;font-weight:600;border-radius:99px;padding:2px 8px;background:var(--panel);color:#333;white-space:nowrap}
.hol-table .tag.m{background:#e7f0ff;color:#1f4f9e}.hol-table .tag.e{background:#eaf6ea;color:#256b2c}.hol-table .tag.o{background:#fff1e0;color:#8a5200}
.longs{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:10px;padding:0;list-style:none;margin:0}
.longs li{border:1px solid var(--line);border-radius:12px;padding:12px 14px}
.longs b{display:block;font-size:15px}
.longs li > a{display:inline-flex;align-items:center;min-height:44px}
.longs span{font-size:13px;color:var(--muted)}
.city-index{columns:4 180px;column-gap:24px;font-size:14px;padding:0;list-style:none}
.city-index li{break-inside:avoid;padding:2px 0}
.city-index .nolink{color:var(--muted)}
.facts{display:flex;flex-wrap:wrap;gap:10px;margin:0 0 8px;padding:0;list-style:none}
.facts li{background:var(--panel);border-radius:10px;padding:10px 14px;font-size:14px}
.facts b{display:block;font-size:22px;letter-spacing:-.02em}
.crumbs{font-size:13px;color:var(--muted);margin:18px 0 0}
.crumbs a{text-decoration:none}
.crumbs a:hover{text-decoration:underline}
.note{font-size:13px;color:var(--muted)}
@media (max-width:900px){.hero-row{grid-template-columns:1fr}}
@media (max-width:640px){.head-links{display:none}.hero{padding:28px 0 18px}.hol-table{font-size:14px}.hol-table th,.hol-table td{padding:8px 6px}.hol-table th:nth-child(2),.hol-table td:nth-child(2){display:none}.hol-table td:first-child{white-space:normal}.wrap{padding:0 16px}}
body{overflow-x:clip}

/* logo on sheets */
.sy-side{display:flex;flex-direction:column;align-items:flex-end;gap:2mm}
.sheet-logo{max-height:13mm;max-width:45mm;object-fit:contain;display:block}
.sm-meta .sheet-logo{max-height:11mm}

/* theme: fofo (cute) */
.theme-fofo{--fh:Nunito,sans-serif;--fb:Nunito,sans-serif;--hw:900;--line:#f0e6ea;--muted:#b49aa4;--ink:#3b2a33}
.theme-fofo .sy-head{border:0;background:var(--soft);border-radius:6mm;padding:5mm 7mm}
.theme-fofo .sy-year{color:var(--accent);font-size:54pt}
.theme-fofo .mm h3{align-self:flex-start;background:var(--mc);border-radius:99px;padding:.8mm 3.2mm;font-size:10.5pt;color:#3b2a33}
.theme-fofo .mm td{font-weight:700}
.theme-fofo .mm td.hol span{background:var(--accent);color:#fff}
.theme-fofo .mm td.we{color:#c7a8b3}
.theme-fofo .sy-list{border-top:.4mm dotted #e8c9d4}
.theme-fofo .sheet-month{}
.theme-fofo .sm-head{background:var(--mc);border-radius:6mm;padding:3.5mm 6mm;margin-bottom:3mm;align-items:center}
.theme-fofo .sm-doodle{width:12mm;height:12mm;color:#3b2a33;margin-right:3mm;flex:none}
.theme-fofo .sm-name{flex:1;font-size:34pt;color:#3b2a33}
.theme-fofo .sm-grid{border-collapse:separate;border-spacing:1.4mm}
.theme-fofo .sm-grid td{border:0;background:#fbf6f8;border-radius:3mm}
.theme-fofo .sm-grid td.out,.theme-fofo .sm-grid td.wk{background:transparent}
.theme-fofo .sm-grid td.hol{background:var(--soft)}
.theme-fofo .sm-grid .d{font-weight:900}

/* theme: colorir (coloring) */
.theme-colorir{--fh:Nunito,sans-serif;--fb:Nunito,sans-serif;--hw:900;--line:#bdbdbd;--muted:#8a8a8a}
.theme-colorir .sy-year{color:transparent;-webkit-text-stroke:.45mm #1f1f1f;font-size:64pt;letter-spacing:-.02em}
.theme-colorir .sy-head{border-bottom:.4mm dashed #9a9a9a}
.theme-colorir .mm h3{display:flex;align-items:center;gap:1.6mm;font-size:13pt;color:transparent;-webkit-text-stroke:.25mm #1f1f1f}
.theme-colorir .mm-doodle{width:6mm;height:6mm;color:#1f1f1f;flex:none}
.theme-colorir .mm td span{font-weight:700}
.theme-colorir .mm td.hol span{color:inherit;box-shadow:inset 0 0 0 .25mm #1f1f1f}
.theme-colorir .sy-list b{color:#1f1f1f}
.theme-colorir .sm-head{align-items:center}
.theme-colorir .sm-doodle{width:16mm;height:16mm;color:#1f1f1f;margin-right:3mm;flex:none}
.theme-colorir .sm-name{flex:1;color:transparent;-webkit-text-stroke:.5mm #1f1f1f;font-size:46pt}
.theme-colorir .sm-grid td{border:.3mm solid #9a9a9a}
.theme-colorir .sm-grid .d{font-size:22pt;color:transparent;-webkit-text-stroke:.3mm #1f1f1f;font-weight:900}
.theme-colorir .sm-grid td .d,.theme-colorir .sm-grid td.we .d,.theme-colorir .sm-grid td.hol .d{color:transparent}
.theme-colorir .sm-grid .h,.theme-colorir .sm-grid .o{color:#333}
.theme-colorir .sm-year{color:transparent;-webkit-text-stroke:.3mm #1f1f1f;font-size:24pt}

/* ---------- print ---------- */
/* mobile: compact top so the preview peeks above the fold */
@media (max-width:640px){
  .hero p{line-height:1.45}
  .next-holiday{min-height:92px;padding:10px 14px;margin:0 0 12px}
  .hero .next-holiday .nh-label{font-size:12px}
  .hero .next-holiday .nh-name,.nh-name{font-size:18px;margin:0 0 2px!important}
  .nh-date{font-size:14px;gap:8px}
  .geo{padding:10px 48px 10px 12px;font-size:14px;gap:6px 8px}
  .geo span{flex:1 1 100%}
  .geo button{padding:0 12px}
  .longs li > a{padding:0 6px;margin:0 -6px}
}
@media (max-width:360px){
  .hero{padding:20px 0 14px}
  .hero h1{font-size:23px}
  .hero p{font-size:14px}
  .nh-date{font-size:13px}
  .nh-date span{font-size:12px;padding:1px 8px}
  .geo button{font-size:13px;padding:0 10px;flex:1 1 auto}
  .geo .geo-x{flex:none;padding:0}
  .next-holiday{min-height:118px}
}
@media print{
  html,body{background:#fff;padding:0!important;margin:0!important;min-height:0!important}
  .site-head,.suggest,.hero,.controls,.fab,.actions,.content,.site-foot,.ad,.no-print,.geo,.thanks,.crumbs,.next-holiday{display:none!important}
  .wrap,.tool,.stage,.stage.single{display:block!important;padding:0!important;margin:0!important;max-width:none!important;background:none!important;border-radius:0!important;position:static!important}
  #preview,#preview.grid{display:block!important;gap:0!important}
  .sheet-wrap{width:auto!important;height:auto!important;box-shadow:none;overflow:visible;position:static;break-after:page;page-break-after:always}
  .sheet-wrap:last-child{break-after:auto;page-break-after:auto}
  .sheet-wrap>.sheet{transform:none!important;position:static}
}

/* even row heights on month pages */
.sheet-month{--gridH:calc(var(--sh) - 46mm)}
.theme-soft.sheet-month{--gridH:calc(var(--sh) - 54mm)}
.sm-grid.rows-4 tbody td{height:calc(var(--gridH) / 4)}
.sm-grid.rows-5 tbody td{height:calc(var(--gridH) / 5)}
.sm-grid.rows-6 tbody td{height:calc(var(--gridH) / 6)}
.sm-grid{flex:none}

/* next holiday: calendar tile with the date as the main element */
.next-holiday{display:grid;grid-template-columns:84px minmax(0,1fr);gap:16px;align-items:center}
.nh-tile{width:84px;border-radius:16px;border:1px solid var(--line);background:#fff;overflow:hidden;display:flex;flex-direction:column;align-items:center}
.nh-mon{align-self:stretch;height:24px;background:#d1432b;color:#fff;display:flex;align-items:center;justify-content:center;font-size:12px;font-weight:700;letter-spacing:.12em}
.nh-tile b{font-size:40px;line-height:1;font-weight:700;letter-spacing:-.03em;padding:8px 0 2px}
.nh-tile i{font-style:normal;font-size:12px;color:var(--muted);padding-bottom:9px;text-transform:lowercase}
.nh-txt{min-width:0;display:flex;flex-direction:column;align-items:flex-start;gap:2px}
.hero .next-holiday .nh-name,.nh-name{font-size:22px!important;margin:0!important;line-height:1.15}
.nh-left{margin-top:6px;display:inline-flex;align-items:center;height:24px;padding:0 10px;border-radius:999px;background:var(--panel);font-size:12px;font-weight:600;color:var(--ink)}
@media (max-width:640px){.next-holiday{grid-template-columns:72px minmax(0,1fr);gap:12px}.nh-tile{width:72px}.nh-tile b{font-size:34px}.hero .next-holiday .nh-name,.nh-name{font-size:19px!important}.nh-left{margin-top:4px}}
