/* Feriados.uy. Palette from the flag: azul bandera + Sol de Mayo on cool paper. */

@font-face {
  font-family: 'Archivo';
  src: url('/assets/archivo-latin-wdth.woff2') format('woff2-variations'), url('/assets/archivo-latin-wdth.woff2') format('woff2');
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light dark;
  --paper: #f4f6f9;
  --card: #fbfcfe;
  --ink: #0b1b33;
  --ink-2: #3f4d63;
  --ink-3: #5c687d;
  --line: #dfe4ec;
  --line-2: #c6cfdc;
  --azul: #0038a8;
  --azul-strong: #002c86;
  --azul-text: #0038a8;
  --azul-tint: #e6edfb;
  --azul-tint-2: #d3dff8;
  --on-azul: #f7f9ff;
  --sol: #fcd116;
  --sol-tint: #fff3c4;
  --sol-ink: #6a4d00;
  --sol-line: #e2b92b;
  --sun-stroke: #b88600;
  --flag-w: #fbfcfe;
  --flag-b: #cfdcf6;
  --focus: #0038a8;
  --shadow-sm: 0 1px 2px rgb(11 27 51 / .06);
  --shadow: 0 1px 2px rgb(11 27 51 / .05), 0 12px 32px -14px rgb(11 27 51 / .22);
  --shadow-lg: 0 2px 4px rgb(11 27 51 / .06), 0 24px 48px -20px rgb(11 27 51 / .35);
  --radius: 14px;
  --wrap: 1120px;
  --gutter: clamp(16px, 4vw, 32px);
  --font: 'Archivo', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}

/* Dark palette. By default the page follows the device; the header toggle sets
   data-theme="light|dark" on <html> to override it. Screen only, so printing stays light.
   The two blocks below must stay identical (tests/site.test.mjs checks it). */
@media screen and (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --paper: #09111e;
    --card: #0f1a2b;
    --ink: #e9eef6;
    --ink-2: #b2bdcd;
    --ink-3: #8f9bae;
    --line: #1d293c;
    --line-2: #2b3950;
    --azul: #2f5fd6;
    --azul-strong: #4572e4;
    --azul-text: #93b3ff;
    --azul-tint: #142240;
    --azul-tint-2: #1b2e55;
    --on-azul: #f7f9ff;
    --sol: #f4c93a;
    --sol-tint: #2b2512;
    --sol-ink: #f6d774;
    --sol-line: #6b5a1e;
    --sun-stroke: #8a6c10;
    --flag-w: #0e1828;
    --flag-b: #15284f;
    --focus: #f4c93a;
    --shadow-sm: 0 1px 2px rgb(0 0 0 / .3);
    --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 14px 34px -14px rgb(0 0 0 / .6);
    --shadow-lg: 0 2px 4px rgb(0 0 0 / .3), 0 26px 50px -20px rgb(0 0 0 / .75);
  }
}

@media screen {
  :root[data-theme="dark"] {
    color-scheme: dark;
    --paper: #09111e;
    --card: #0f1a2b;
    --ink: #e9eef6;
    --ink-2: #b2bdcd;
    --ink-3: #8f9bae;
    --line: #1d293c;
    --line-2: #2b3950;
    --azul: #2f5fd6;
    --azul-strong: #4572e4;
    --azul-text: #93b3ff;
    --azul-tint: #142240;
    --azul-tint-2: #1b2e55;
    --on-azul: #f7f9ff;
    --sol: #f4c93a;
    --sol-tint: #2b2512;
    --sol-ink: #f6d774;
    --sol-line: #6b5a1e;
    --sun-stroke: #8a6c10;
    --flag-w: #0e1828;
    --flag-b: #15284f;
    --focus: #f4c93a;
    --shadow-sm: 0 1px 2px rgb(0 0 0 / .3);
    --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 14px 34px -14px rgb(0 0 0 / .6);
    --shadow-lg: 0 2px 4px rgb(0 0 0 / .3), 0 26px 50px -20px rgb(0 0 0 / .75);
  }
}

:root[data-theme="light"] { color-scheme: light; }

/* ---- Base ---------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
@media (min-width: 900px) { body { font-size: 1.0625rem; } }
svg { display: block; }
.icon { width: 1.15em; height: 1.15em; flex: none; display: inline-block; }
a { color: var(--azul-text); text-underline-offset: 3px; }
h1, h2, h3 { color: var(--ink); text-wrap: balance; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 8px 14px; border-radius: 8px; font-weight: 650;
}
.skip:focus { top: 12px; }
.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.muted { color: var(--ink-3); }

.sun .sun-rays, .sun .sun-core { fill: var(--sol); stroke: var(--sun-stroke); stroke-width: 1.4; stroke-linejoin: round; }

/* ---- Header & footer ------------------------------------------------------ */

.site-header { border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); text-decoration: none; }
.brand-sun { width: 30px; height: 30px; }
.brand-name { font-size: 1.22rem; font-weight: 780; font-stretch: 88%; letter-spacing: -.02em; }
.brand-name span { color: var(--azul-text); }
.header-end { display: flex; align-items: center; }
.main-nav { display: flex; align-items: center; gap: 2px; }
.main-nav a {
  display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 12px;
  border-radius: 999px; color: var(--ink-2); font-weight: 650; font-size: .95rem; text-decoration: none;
  font-variant-numeric: tabular-nums;
}
.main-nav a:hover { background: var(--card); color: var(--ink); }
.main-nav .icon { width: 18px; height: 18px; }

/* Theme toggle: shows the moon in light mode and the sun in dark mode. */
.theme-toggle {
  display: inline-grid; place-items: center; width: 40px; height: 40px; margin-left: 2px; padding: 0;
  border: 0; border-radius: 999px; background: transparent; color: var(--ink-2); cursor: pointer;
}
.theme-toggle:hover { background: var(--card); color: var(--ink); }
.theme-toggle .icon { width: 19px; height: 19px; }
.theme-toggle .icon-sun { display: none; }
@media screen and (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-sun { display: inline; }
  :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: none; }
}
:root[data-theme="dark"] .theme-toggle .icon-sun { display: inline; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
.theme-switching *, .theme-switching *::before, .theme-switching *::after { transition: none !important; }

@media (max-width: 400px) {
  .nav-cal span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .header-row { gap: 6px; }
  .main-nav a { padding: 0 8px; }
  .theme-toggle { width: 36px; margin-left: 0; }
  .brand { gap: 7px; }
  .brand-sun { width: 26px; height: 26px; }
  .brand-name { font-size: 1.12rem; }
}
@media (max-width: 340px) {
  .main-nav a { padding: 0 6px; font-size: .9rem; }
  .theme-toggle { width: 34px; }
  .brand-name { font-size: 1.02rem; }
}

.site-footer { margin-top: clamp(56px, 8vw, 96px); border-top: 1px solid var(--line); background: var(--card); padding-block: 40px 24px; }
.footer-grid { display: grid; gap: 28px 24px; grid-template-columns: 1fr 1fr; }
.footer-about, .footer-holidays { grid-column: 1 / -1; }
@media (min-width: 900px) {
  .footer-grid { grid-template-columns: 1.3fr .7fr 1.5fr .9fr; }
  .footer-about, .footer-holidays { grid-column: auto; }
}
.footer-about .brand { margin-bottom: 12px; }
.footer-about p { color: var(--ink-2); font-size: .95rem; max-width: 46ch; }
.footer-about .fine { font-size: .82rem; color: var(--ink-3); }
.site-footer h2 { font-size: .92rem; font-weight: 720; margin: 0 0 10px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; font-size: .92rem; }
.footer-holidays ul { grid-template-columns: 1fr 1fr; column-gap: 16px; }
.site-footer a { color: var(--ink-2); text-decoration: none; }
.site-footer a:hover { color: var(--azul-text); text-decoration: underline; }
.footer-bottom { margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--line); font-size: .85rem; color: var(--ink-3); }
.footer-bottom p { margin: 0; }

/* ---- Buttons & chips ------------------------------------------------------ */

.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 20px; border: 0; border-radius: 999px;
  font: inherit; font-size: .98rem; font-weight: 650; line-height: 1.1; white-space: nowrap;
  text-decoration: none; cursor: pointer;
  transition: background-color .15s, box-shadow .15s, transform .15s, color .15s;
}
.btn .icon { width: 1.15em; height: 1.15em; }
.btn-primary { background: var(--azul); color: var(--on-azul); box-shadow: 0 8px 18px -10px rgb(0 56 168 / .7); }
.btn-primary:hover { background: var(--azul-strong); }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line-2); }
.btn-ghost:hover { background: var(--card); box-shadow: inset 0 0 0 1.5px var(--ink-3); }
.btn:active { transform: translateY(1px); }

.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.chip {
  display: inline-flex; align-items: center; gap: 5px; min-height: 26px; padding: 2px 11px;
  border-radius: 999px; font-size: .8rem; font-weight: 680; line-height: 1.2; white-space: nowrap;
}
.chip .icon { width: 14px; height: 14px; }
.chip.nl { background: var(--azul); color: var(--on-azul); }
.chip.lab { background: var(--azul-tint); color: var(--azul-text); }
.chip.sol { background: var(--sol-tint); color: var(--sol-ink); }
.chip.out { box-shadow: inset 0 0 0 1px var(--line-2); color: var(--ink-2); }

/* ---- Today line & hero ---------------------------------------------------- */

.today { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 16px; padding-top: 16px; }
.today p { margin: 0; color: var(--ink-2); font-size: .94rem; }
.today-text strong { color: var(--ink); font-weight: 700; }
.weather { display: inline-flex; align-items: center; gap: 6px; min-height: 1.6em; }
.weather .icon { width: 20px; height: 20px; color: var(--azul-text); }
/* Keep its line reserved while loading so the hero doesn't jump (CLS). */
.weather[hidden] { display: inline-flex; visibility: hidden; }

.hero { padding-block: clamp(18px, 3vw, 32px) clamp(28px, 4vw, 44px); }
.hero-grid { display: grid; gap: 32px; align-items: center; }
@media (min-width: 880px) { .hero-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(40px, 5vw, 72px); } }
.kicker { font-size: 1rem; font-weight: 680; color: var(--azul-text); margin: 0 0 10px; letter-spacing: 0; }
.hero-name {
  font-size: clamp(2.6rem, 1.5rem + 4.6vw, 4.75rem); font-weight: 790; font-stretch: 84%;
  letter-spacing: -.03em; line-height: 1; margin: 0; text-wrap: balance;
}
.hero-name a { color: var(--ink); text-decoration: none; }
.hero-name a:hover { color: var(--azul-text); }
.hero-date { font-size: clamp(1.15rem, 1rem + .6vw, 1.45rem); font-weight: 560; color: var(--ink-2); margin: 14px 0 16px; }
.countdown {
  display: flex; gap: clamp(20px, 4vw, 40px); margin: 24px 0 0; padding: 16px 0;
  border-block: 1px solid var(--line);
}
.countdown[hidden] { display: none; }
.cd { display: flex; flex-direction: column; }
.cd-n {
  font-size: clamp(2.3rem, 1.6rem + 2.6vw, 3.4rem); font-weight: 780; font-stretch: 70%;
  line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: -.02em;
}
.cd-l { font-size: .82rem; font-weight: 650; color: var(--ink-3); margin-top: 4px; }
.hero-note { color: var(--ink-2); margin: 16px 0 22px; max-width: 46ch; }

/* Flag panel: nine stripes and the sun canton, holding the tear-off sheet. */
.flag-panel {
  position: relative; isolation: isolate; container-type: inline-size;
  display: grid; place-items: center; aspect-ratio: 1 / .9; overflow: hidden;
  border-radius: 24px; border: 1px solid var(--line);
  background: repeating-linear-gradient(180deg, var(--flag-w) 0 11.1111%, var(--flag-b) 11.1111% 22.2222%);
}
.flag-canton {
  position: absolute; inset: 0 auto auto 0; height: 55.5556%; aspect-ratio: 1;
  display: grid; place-items: center; background: var(--flag-w);
}
.flag-sun { width: 64%; height: auto; opacity: .95; }
@media (max-width: 879px) { .flag-panel { aspect-ratio: 16 / 11; max-width: 520px; margin-inline: auto; width: 100%; } }

.sheet-wrap { position: relative; z-index: 1; width: min(64%, 300px); transform: rotate(-3deg); }
.sheet-wrap::before, .sheet-wrap::after {
  content: ''; position: absolute; inset: 0; border-radius: 16px;
  background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.sheet-wrap::before { transform: rotate(5deg) translate(8px, 6px); }
.sheet-wrap::after { transform: rotate(2.5deg) translate(4px, 3px); }
.sheet { position: relative; z-index: 1; overflow: hidden; border-radius: 16px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.sheet-head {
  position: relative; display: flex; justify-content: space-between; gap: 8px;
  padding: 18px 18px 11px; background: var(--azul); color: var(--on-azul);
  font-size: clamp(.78rem, 4.2cqi, 1rem); font-weight: 720; letter-spacing: .08em; text-transform: uppercase;
}
.sheet-head::before {
  content: ''; position: absolute; inset: 5px 10px auto; height: 6px;
  background: radial-gradient(circle, rgb(0 0 0 / .28) 2.2px, transparent 2.8px) center / 12px 6px repeat-x;
}
.sheet-body { display: flex; flex-direction: column; align-items: center; padding: 6px 12px 12px; }
.sheet-day {
  font-size: clamp(4.5rem, 30cqi, 9.5rem); font-weight: 820; font-stretch: 64%;
  line-height: .92; letter-spacing: -.04em; color: var(--ink); font-variant-numeric: tabular-nums;
}
.sheet-wd { font-size: clamp(.78rem, 4cqi, 1rem); font-weight: 720; letter-spacing: .16em; text-transform: uppercase; color: var(--azul-text); }
.sheet-foot {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 10px 16px 12px; border-top: 1px dashed var(--line-2);
  font-size: clamp(.74rem, 3.6cqi, .9rem); font-weight: 620; color: var(--ink-2); line-height: 1.3;
}
.sheet-weather { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; color: var(--ink); }
.sheet-weather .icon { width: 18px; height: 18px; color: var(--azul-text); }
.sheet-weather:empty { display: none; }

@media (prefers-reduced-motion: no-preference) {
  .sheet-wrap { animation: sheet-in .55s cubic-bezier(.2, .8, .2, 1) both; }
  @keyframes sheet-in {
    from { opacity: 0; transform: translateY(-12px) rotate(-7deg); }
    to { opacity: 1; transform: rotate(-3deg); }
  }
}

/* ---- Cards under the hero -------------------------------------------------- */

.duo { display: grid; gap: 16px; }
@media (min-width: 760px) { .duo { grid-template-columns: 1fr 1fr; } }
.duo-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; box-shadow: var(--shadow-sm); }
.card-label { font-size: .9rem; font-weight: 680; color: var(--azul-text); margin: 0 0 6px; }
.card-title { font-size: clamp(1.3rem, 1.15rem + .6vw, 1.55rem); font-weight: 750; font-stretch: 90%; letter-spacing: -.015em; line-height: 1.15; margin: 0; }
.card-title a { color: var(--ink); text-decoration: none; }
.card-title a:hover { color: var(--azul-text); }
.card-date { color: var(--ink-2); font-weight: 560; margin: 6px 0 0; }
.card-meta { color: var(--ink-2); font-size: .95rem; margin: 12px 0 0; }
.duo-lw .lw-days { margin-top: 14px; }
.until { font-weight: 720; color: var(--ink); margin-right: 6px; }
.until:empty { display: none; }

/* ---- Sections ------------------------------------------------------------- */

.section { padding-top: clamp(40px, 6vw, 68px); }
.section h2, .section-head h2 {
  font-size: clamp(1.55rem, 1.15rem + 1.5vw, 2.2rem); font-weight: 750; font-stretch: 92%;
  letter-spacing: -.022em; line-height: 1.1; margin: 0 0 12px;
}
.section-head { margin-bottom: 22px; max-width: 72ch; }
.section-head p, .section-lede { color: var(--ink-2); margin: 0; }
.section-lede { margin-bottom: 18px; max-width: 72ch; }

/* Holiday table */
.table-wrap { overflow-x: auto; }
.htable, .dtable { width: 100%; border-collapse: collapse; }
.htable thead th, .dtable thead th {
  text-align: left; font-size: .8rem; font-weight: 650; color: var(--ink-3);
  padding: 0 12px 10px; border-bottom: 1px solid var(--line-2);
}
.htable thead th:first-child { width: 64px; text-align: center; }
.htable thead th:last-child, .htable .c-type { text-align: right; width: 1%; white-space: nowrap; }
.htable .m-row th { text-align: left; font-size: .95rem; font-weight: 720; color: var(--azul-text); padding: 22px 12px 6px; }
.htable tbody tr:not(.m-row) > * { padding: 12px; border-top: 1px solid var(--line); vertical-align: middle; }
.htable tbody .m-row + tr > * { border-top: 0; }
.c-date { text-align: center; }
.dnum { display: block; font-size: 1.8rem; font-weight: 780; font-stretch: 72%; line-height: 1; font-variant-numeric: tabular-nums; }
.dwd { display: block; font-size: .72rem; font-weight: 680; color: var(--ink-3); text-transform: uppercase; letter-spacing: .06em; margin-top: 3px; }
.c-name { text-align: left; font-weight: 400; }
.c-name a { font-size: 1.05rem; font-weight: 690; color: var(--ink); text-decoration: none; }
.c-name a:hover { color: var(--azul-text); text-decoration: underline; }
.c-sub { display: block; color: var(--ink-3); font-size: .88rem; margin-top: 1px; }
.htable tr.is-past .dnum, .htable tr.is-past .c-name a, .htable tr.is-past .c-sub { color: var(--ink-3); }
.htable tr.is-past .chip { opacity: .55; }
.htable tr.is-next > * { background: var(--sol-tint); }
.htable tr.is-next .c-name a::after {
  content: 'Próximo'; display: inline-block; margin-left: 8px; padding: 1px 8px; border-radius: 999px;
  background: var(--sol); color: #3a2a00; font-size: .72rem; font-weight: 750; vertical-align: 2px;
}
@media (max-width: 520px) {
  .htable tbody tr:not(.m-row) > * { padding: 11px 6px; }
  .htable thead th:first-child { width: 48px; }
  .dnum { font-size: 1.55rem; }
}

.dtable th[scope="row"], .dtable td { padding: 12px; border-top: 1px solid var(--line); text-align: left; }
.dtable tbody tr:first-child > * { border-top: 0; }
.dtable th[scope="row"] a { font-weight: 720; font-variant-numeric: tabular-nums; }
.dtable td:last-child { color: var(--ink-3); font-size: .92rem; }
.dtable tr.is-past > * { color: var(--ink-3); }
.dtable tr.is-next > * { background: var(--sol-tint); }

/* 12-month calendar */
.cal-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 640px) { .cal-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; } }
@media (min-width: 980px) { .cal-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; } }
.cal-month { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 8px 8px; }
@media (min-width: 640px) { .cal-month { padding: 14px 12px 10px; } }
.cal-title { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; margin: 0 4px 8px; font-size: 1rem; font-weight: 730; }
.cal-title small { font-size: .72rem; font-weight: 680; color: var(--azul-text); }
.cal { width: 100%; border-collapse: separate; border-spacing: 0 2px; table-layout: fixed; }
.cal th { padding: 0 0 4px; font-size: .64rem; font-weight: 650; color: var(--ink-3); text-align: center; }
.cal td { height: 26px; padding: 0; text-align: center; font-size: .72rem; font-variant-numeric: tabular-nums; }
.cal td > span:first-child { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; }
@media (min-width: 640px) {
  .cal td { height: 30px; font-size: .82rem; }
  .cal td > span:first-child { width: 26px; height: 26px; }
}
.cal td.we { color: var(--ink-3); }
.cal td.lw { background: var(--sol-tint); }
.cal td.lw-s { border-start-start-radius: 999px; border-end-start-radius: 999px; }
.cal td.lw-e { border-start-end-radius: 999px; border-end-end-radius: 999px; }
.cal td.h > span:first-child { font-weight: 760; }
.cal td.nl > span:first-child { background: var(--azul); color: var(--on-azul); }
.cal td.lab > span:first-child { background: var(--azul-tint-2); color: var(--azul-text); }
.cal td.is-today > span:first-child { box-shadow: 0 0 0 2px var(--ink); }
.legend { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 16px 0 0; padding: 0; list-style: none; font-size: .88rem; color: var(--ink-2); }
.legend li { display: flex; align-items: center; gap: 8px; }
.key { width: 14px; height: 14px; border-radius: 50%; }
.key-nl { background: var(--azul); }
.key-lab { background: var(--azul-tint-2); }
.key-lw { background: var(--sol-tint); border-radius: 4px; box-shadow: inset 0 0 0 1px var(--sol-line); }

/* Long weekends */
.lw-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.lw-card { display: flex; flex-direction: column; gap: 6px; padding: 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.lw-card.is-past { opacity: .55; }
.lw-grid.upcoming .lw-card.is-past { display: none; }
.lw-days { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 4px; margin: 0 0 8px; padding: 0; list-style: none; }
.lw-days li {
  display: flex; flex-direction: column; align-items: center; padding: 7px 0 6px;
  border-radius: 9px; background: var(--sol-tint); color: var(--sol-ink);
}
.lw-days li.nl { background: var(--azul); color: var(--on-azul); }
.lw-days li.lab { background: var(--azul-tint-2); color: var(--azul-text); }
.lw-wd { font-size: .64rem; font-weight: 720; text-transform: uppercase; letter-spacing: .04em; opacity: .85; }
.lw-dn { font-size: 1.15rem; font-weight: 780; font-stretch: 76%; line-height: 1.05; font-variant-numeric: tabular-nums; }
.lw-days.dense { gap: 3px; }
.lw-days.dense li { padding: 6px 0 5px; border-radius: 7px; }
.lw-days.dense .lw-dn { font-size: .95rem; }
.lw-title { font-size: 1.08rem; font-weight: 720; line-height: 1.25; margin: 0; }
.lw-when { margin: 0; color: var(--ink-2); font-size: .93rem; }
.lw-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin: auto 0 0; padding-top: 8px; }
.lw-len { font-size: .86rem; font-weight: 680; color: var(--ink-3); }

/* Bridges */
.bridges { display: grid; gap: 6px 36px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 400px), 1fr)); margin: 0; padding: 0; list-style: none; }
.bridge { padding: 10px 0 10px 16px; border-left: 3px solid var(--sol); }
.bridge p { margin: 0; color: var(--ink-2); }
.bridge .bridge-h { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-bottom: 4px; color: var(--ink); }
.bridge.is-past { opacity: .55; }

/* Facts */
.facts {
  display: flex; flex-wrap: wrap; gap: 1px; margin: 0; overflow: hidden;
  background: var(--line); border: 1px solid var(--line); border-radius: var(--radius);
}
.facts > div { flex: 1 1 230px; padding: 14px 16px; background: var(--card); }
.facts dt { font-size: .82rem; font-weight: 680; color: var(--ink-3); margin-bottom: 3px; }
.facts dd { margin: 0; font-weight: 600; line-height: 1.4; }

/* Next year */
.next-year {
  display: grid; gap: 24px; align-items: center; padding: clamp(22px, 4vw, 36px);
  background: var(--card); border: 1px solid var(--line); border-radius: 22px;
}
@media (min-width: 880px) { .next-year { grid-template-columns: .8fr 1.2fr; } }
.next-year-copy p { color: var(--ink-2); }

/* Subscribe */
.subscribe { display: grid; gap: 18px; align-items: center; padding: clamp(22px, 4vw, 34px); border-radius: 22px; background: var(--azul-tint); }
@media (min-width: 900px) { .subscribe { grid-template-columns: 1fr auto; } }
.subscribe h2 { margin-bottom: 6px; }
.subscribe p { margin: 0; color: var(--ink-2); max-width: 52ch; }
.subscribe .btn-ghost { background: var(--card); }

/* FAQ */
.faq-list { display: grid; gap: 10px; max-width: 860px; }
.faq-list details { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.faq-list summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 18px; font-size: 1.02rem; font-weight: 680; cursor: pointer; list-style: none;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary .icon { width: 18px; height: 18px; color: var(--azul-text); transition: transform .2s; }
.faq-list details[open] summary .icon { transform: rotate(45deg); }
.faq-list details p { margin: 0; padding: 0 18px 18px; color: var(--ink-2); max-width: 72ch; }

/* Year chips & pager */
.year-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.year-chips a {
  display: inline-flex; align-items: center; height: 42px; padding: 0 18px; border-radius: 999px;
  border: 1px solid var(--line-2); color: var(--ink); font-weight: 680; text-decoration: none; font-variant-numeric: tabular-nums;
}
.year-chips a:hover { border-color: var(--azul-text); color: var(--azul-text); }
.year-chips a[aria-current] { background: var(--azul); border-color: var(--azul); color: var(--on-azul); }

.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding-top: clamp(40px, 6vw, 68px); }
.pager a {
  display: block; padding: 16px 18px; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); color: var(--ink); font-weight: 720; font-size: 1.05rem; text-decoration: none;
}
.pager a:hover { border-color: var(--azul-text); }
.pager small { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; font-size: .82rem; font-weight: 620; color: var(--ink-3); }
.pager-next { text-align: right; }
.pager-next small { justify-content: flex-end; }

/* ---- Inner pages ---------------------------------------------------------- */

.crumbs { padding-top: 18px; font-size: .88rem; color: var(--ink-3); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.crumbs li + li::before { content: '/'; margin-right: 6px; color: var(--line-2); }
.crumbs a { color: var(--ink-2); }
.page-head { padding-block: 14px 28px; }
.page-head h1 {
  font-size: clamp(2.2rem, 1.3rem + 3.6vw, 3.6rem); font-weight: 790; font-stretch: 86%;
  letter-spacing: -.03em; line-height: 1.02; margin: 0 0 14px;
}
.lede { font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem); color: var(--ink-2); max-width: 68ch; margin: 0 0 20px; }
.notice { display: inline-block; margin: 0 0 20px; padding: 8px 14px; border-radius: 10px; background: var(--sol-tint); color: var(--sol-ink); font-size: .93rem; }
.notice a { color: inherit; font-weight: 700; }
.holiday-head { display: grid; gap: 32px; align-items: center; }
@media (min-width: 880px) { .holiday-head { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(40px, 5vw, 72px); } }
.answer { margin: 0 0 22px; padding: 16px 18px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.answer-label { margin: 0 0 4px; font-size: .9rem; font-weight: 680; color: var(--azul-text); }
.answer-date { margin: 0 0 10px; font-size: clamp(1.3rem, 1.1rem + 1vw, 1.75rem); font-weight: 750; font-stretch: 90%; letter-spacing: -.01em; line-height: 1.2; }
.answer-until { margin: 10px 0 0; color: var(--ink-2); }
.answer-until:has(.until:empty) { display: none; }
.prose-cols { display: grid; gap: 8px 48px; }
@media (min-width: 880px) { .prose-cols { grid-template-columns: 1fr 1fr; } }
.prose-cols h2, .prose h2 { font-size: clamp(1.35rem, 1.15rem + .8vw, 1.75rem); }
.prose-cols p, .prose p { color: var(--ink-2); max-width: 68ch; }
.notfound { padding-block: 48px 8px; }

/* ---- Toast ---------------------------------------------------------------- */

.toast {
  position: fixed; left: 50%; bottom: 20px; z-index: 50; transform: translate(-50%, 16px);
  padding: 10px 18px; border-radius: 999px; background: var(--ink); color: var(--paper);
  font-size: .92rem; font-weight: 650; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation: none !important; }
}

/* ---- Print: the year calendar on one or two pages ------------------------- */

@media print {
  :root { color-scheme: light; --paper: #fff; --card: #fff; --ink: #000; --ink-2: #222; --ink-3: #555; --line: #ccc; }
  .site-header, .site-footer, .actions, .subscribe, #calendario, #preguntas, .pager, .years, .today, .duo, .hero-visual, .toast, .crumbs { display: none !important; }
  body { font-size: 11pt; }
  .section { padding-top: 16pt; }
  .cal-month, .lw-card, .htable tbody { break-inside: avoid; }
  .cal-grid { grid-template-columns: repeat(4, 1fr); gap: 8pt; }
  a { color: inherit; text-decoration: none; }
}
