/* paraguayplanner.com: one theme, one component kit. Tokens first. */
@font-face { font-family: "Bricolage Grotesque"; src: url("/assets/fonts/bricolage-grotesque-var.woff2") format("woff2"); font-weight: 400 800; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("/assets/fonts/instrument-sans-var.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "DM Mono"; src: url("/assets/fonts/dm-mono-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "DM Mono"; src: url("/assets/fonts/dm-mono-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --ink: #16233F; --ink-2: #24365C;
  --paper: #FBF7EF; --paper-2: #F3ECDD; --card: #FFFFFF;
  --line: #DDD3BF; --muted: #566078;
  --lapacho: #B8285C; --lapacho-2: #981E4A; --lapacho-soft: #F8E1E9; --lapacho-on-ink: #F7A8C2;
  --jungle: #1B6A4C; --jungle-soft: #DDEFE6;
  --sun: #8A5A00; --sun-soft: #FBEBC4;
  --stop: #A3261F; --stop-soft: #F9DFDC;
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px; --s9: 88px;
  --r-in: 6px; --r-card: 14px; --r-pill: 999px;
  --gutter: 20px; --max: 1200px;
  --shadow: 0 1px 0 rgba(22, 35, 63, .06), 0 12px 32px -18px rgba(22, 35, 63, .35);
  --display: "Bricolage Grotesque", "Trebuchet MS", system-ui, sans-serif;
  --body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "DM Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
@media (min-width: 768px) { :root { --gutter: 32px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.6 var(--body); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
img, svg { max-width: 100%; display: block; }
[hidden] { display: none !important; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: var(--lapacho); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--lapacho-2); }
:focus-visible { outline: 3px solid var(--lapacho); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.08; letter-spacing: -.02em; text-wrap: balance; }
h1 { font-size: clamp(36px, 5.2vw, 64px); line-height: 1.02; }
h2 { font-size: clamp(28px, 3.2vw, 40px); }
h3 { font-size: 21px; line-height: 1.2; letter-spacing: -.01em; }
p { text-wrap: pretty; }
strong { font-weight: 650; }
.mono { font-family: var(--mono); font-size: 13px; letter-spacing: .02em; }
.visually-hidden, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--paper); padding: 12px 16px; border-radius: var(--r-in); }
.skip-link:focus { top: 12px; color: var(--paper); }

/* Layout */
.container { width: min(var(--max), 100% - 2 * var(--gutter)); margin-inline: auto; }
.section { padding-block: 44px; }
.section--tight { padding-block: var(--s6) 44px; }
.section--alt { background: var(--paper-2) radial-gradient(circle, rgba(22, 35, 63, .13) 1px, transparent 1.4px) 0 0 / 22px 22px; }
.section--ink { background: var(--ink); color: var(--paper); position: relative; overflow: hidden; isolation: isolate; }
.section--ink::before { content: ""; position: absolute; z-index: -1; width: 720px; aspect-ratio: 1; right: -220px; top: -260px; background: url("/assets/img/nanduti-light.svg") center / contain no-repeat; opacity: .09; animation: turn 180s linear infinite; }
@media (min-width: 1024px) { .section { padding-block: 46px; } .section--tight { padding-block: 40px 46px; } }
.section__head { max-width: 760px; margin-bottom: var(--s6); }
.section__head h2 + .section__sub { margin-top: var(--s3); color: inherit; opacity: .82; }
.section__head--row { max-width: none; display: flex; flex-wrap: wrap; gap: var(--s4); align-items: end; justify-content: space-between; }
.eyebrow { font: 500 12.5px/1.2 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--lapacho); margin-bottom: var(--s3); }
.section--ink .eyebrow { color: var(--lapacho-on-ink); }
.lede { font-size: clamp(18px, 1.6vw, 20px); line-height: 1.55; color: var(--muted); max-width: 62ch; }

/* Buttons, chips */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border: 1.5px solid transparent; border-radius: var(--r-pill); font: 600 16px/1 var(--body); text-decoration: none; cursor: pointer; transition: transform .2s var(--ease), background-color .2s, border-color .2s, color .2s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--ink); color: var(--paper); }
.btn--primary:hover { background: var(--lapacho); color: #fff; }
.btn--ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }
.btn--light { background: var(--paper); color: var(--ink); }
.btn--light:hover { background: var(--lapacho-on-ink); color: var(--ink); }
.btn--sm { min-height: 44px; padding: 0 18px; font-size: 15px; }
.btn--lg { min-height: 54px; padding: 0 28px; font-size: 17px; }
.btn--block { display: flex; width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 14px; font: 500 12.5px/1.3 var(--mono); letter-spacing: .02em; }
.chip--ok { background: var(--jungle-soft); color: var(--jungle); }
.chip--warn { background: var(--sun-soft); color: var(--sun); }
.chip--stop { background: var(--stop-soft); color: var(--stop); }
.chip--plain { background: var(--paper-2); color: var(--ink); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-block: var(--s3); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(251, 247, 239, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-header__in { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--ink); text-decoration: none; }
.brand:hover { color: var(--ink); }
.brand__name { font: 700 20px/1 var(--display); letter-spacing: -.02em; white-space: nowrap; }
.brand__name span { color: var(--lapacho); }
.brand--light, .brand--light:hover { color: var(--paper); }
.brand--light .brand__name span { color: var(--lapacho-on-ink); }
.site-nav ul { display: flex; align-items: center; gap: var(--s1); }
.site-nav a:not(.btn) { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; color: var(--ink); text-decoration: none; font-weight: 500; font-size: 15.5px; border-radius: var(--r-in); }
.site-nav a:not(.btn):hover { color: var(--lapacho); }
.site-nav a[aria-current="page"]:not(.btn) { box-shadow: inset 0 -2px 0 var(--lapacho); border-radius: 0; }
.site-nav__cta { margin-left: var(--s2); }
.nav-toggle { display: none; align-items: center; gap: 10px; min-height: 44px; padding: 0 14px; background: transparent; border: 1.5px solid var(--ink); border-radius: var(--r-pill); font: 600 15px/1 var(--body); color: var(--ink); cursor: pointer; }
.nav-toggle__bars { width: 16px; height: 2px; background: currentColor; box-shadow: 0 5px 0 currentColor, 0 -5px 0 currentColor; }
@media (max-width: 939px) {
  .nav-toggle { display: inline-flex; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; width: min(var(--max), 100% - 2 * var(--gutter)); margin-inline: auto; padding-block: var(--s2) var(--s4); }
  .site-nav a:not(.btn) { display: flex; min-height: 52px; padding: 0; border-bottom: 1px solid var(--line); font-size: 17px; border-radius: 0; }
  .site-nav a[aria-current="page"]:not(.btn) { box-shadow: none; color: var(--lapacho); }
  .site-nav__cta { margin: var(--s4) 0 0; }
  .site-nav__cta .btn { display: flex; min-height: 48px; }
}

/* Hero */
.hero { position: relative; overflow: hidden; isolation: isolate; padding-block: var(--s6) 24px; border-bottom: 1px solid var(--line); }
.hero::before { content: ""; position: absolute; z-index: -1; width: min(880px, 130vw); aspect-ratio: 1; right: -200px; top: -150px; background: url("/assets/img/nanduti.svg") center / contain no-repeat; opacity: .17; animation: turn 240s linear infinite; }
.hero::after { content: ""; position: absolute; z-index: -2; inset: 0; background: radial-gradient(60% 70% at 85% 30%, var(--lapacho-soft), transparent 70%); opacity: .8; }
@keyframes turn { to { transform: rotate(360deg); } }
.hero__in { display: grid; gap: var(--s7); align-items: center; }
.hero h1 em { font-style: normal; color: var(--lapacho); }
.hero .lede { margin-top: var(--s4); color: var(--ink); opacity: .86; }
.picker { margin-top: var(--s5); display: grid; gap: var(--s3); padding: var(--s4); background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow); max-width: 560px; }
.hero__facts { margin-top: var(--s5); display: flex; flex-wrap: wrap; gap: var(--s2) var(--s5); color: var(--muted); font-size: 15px; }
.hero__facts .mono { color: var(--ink); font-weight: 500; font-size: 14px; }
@media (min-width: 560px) { .picker { grid-template-columns: 1fr auto; align-items: end; } }
@media (min-width: 1024px) { .hero { padding-block: var(--s8) var(--s7); } .hero__in { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: var(--s8); } }

.plan-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: 0 2px 0 rgba(22, 35, 63, .05), 0 30px 60px -30px rgba(22, 35, 63, .5); max-width: 460px; margin-inline: auto; transform: rotate(-1.2deg); }
.plan-card__head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s3); padding: var(--s4) var(--s5); border-bottom: 2px dashed var(--line); }
.plan-card__head .mono { text-transform: uppercase; letter-spacing: .1em; color: var(--lapacho); font-size: 12.5px; }
.plan-card__head strong { font: 700 22px/1.1 var(--display); letter-spacing: -.02em; text-align: right; }
.plan-card__rows li { display: grid; grid-template-columns: 92px 1fr; gap: var(--s3); padding: 11px var(--s5); border-bottom: 1px solid var(--paper-2); align-items: baseline; }
.plan-card__k { text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-size: 12.5px; }
.plan-card__v { font-weight: 600; font-size: 16px; line-height: 1.3; overflow-wrap: anywhere; }
.plan-card__v small { display: block; font: 400 13px/1.35 var(--body); color: var(--muted); margin-top: 2px; }
.plan-card__foot { padding: var(--s3) var(--s5) var(--s4); font-size: 15px; }
.plan-card__foot a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }
.js .plan-card__rows li { animation: row-in .5s var(--ease) both; }
.js .plan-card__rows li:nth-child(2) { animation-delay: .08s; } .js .plan-card__rows li:nth-child(3) { animation-delay: .16s; }
.js .plan-card__rows li:nth-child(4) { animation-delay: .24s; } .js .plan-card__rows li:nth-child(5) { animation-delay: .32s; } .js .plan-card__rows li:nth-child(6) { animation-delay: .4s; }
@keyframes row-in { from { opacity: 0; transform: translateX(-8px); } }

/* Fields */
.field { display: grid; gap: 6px; min-width: 0; }
.field label { font: 500 12.5px/1.3 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.field__hint { text-transform: none; letter-spacing: 0; font-family: var(--body); font-size: 13px; opacity: .9; }
.field select, .field input, .field textarea { width: 100%; min-height: 48px; padding: 10px 14px; border: 1.5px solid var(--line); border-radius: var(--r-in); background: var(--paper); color: var(--ink); font: 500 16px/1.3 var(--body); transition: border-color .15s, box-shadow .15s; }
.field textarea { resize: vertical; line-height: 1.5; }
.field select { appearance: none; -webkit-appearance: none; padding-right: 38px; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 20px) 21px, calc(100% - 14px) 21px; background-size: 6px 6px; background-repeat: no-repeat; text-overflow: ellipsis; }
.field select:hover, .field input:hover, .field textarea:hover { border-color: var(--ink); }
.field select:focus, .field input:focus, .field textarea:focus { outline: none; border-color: var(--lapacho); box-shadow: 0 0 0 3px var(--lapacho-soft); }
.field.is-bad select, .field.is-bad input, .field.is-bad textarea { border-color: var(--stop); }
.field__err { color: var(--stop); font-size: 14px; }

/* Cards and blocks */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card); padding: var(--s5); box-shadow: var(--shadow); }
.card > * + * { margin-top: var(--s3); }
.card__title { font-size: 21px; line-height: 1.2; }
.card__note { font-size: 14.5px; color: var(--muted); }
.card .btn--block + .btn--block { margin-top: var(--s2); }
.block { padding-block: var(--s5); border-top: 1px solid var(--line); }
.block:first-child { border-top: 0; padding-top: 0; }
.block > * + * { margin-top: var(--s3); }
.block h2 { font-size: clamp(24px, 2.4vw, 30px); }
.block h3 { font-size: 19px; }
.block h3.region { margin-top: var(--s5); font: 500 13px/1.2 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.source, .table-note { font-size: 14.5px; color: var(--muted); }
.callout { padding: var(--s4); border-radius: var(--r-in); background: var(--paper-2); border-left: 4px solid var(--ink); }
.callout--ok { background: var(--jungle-soft); border-color: var(--jungle); }
.callout--warn { background: var(--sun-soft); border-color: var(--sun); }
.callout--stop { background: var(--stop-soft); border-color: var(--stop); }
.callout > * + * { margin-top: var(--s2); }
.ticks { display: grid; gap: var(--s2); }
.ticks li { position: relative; padding-left: 22px; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 9px; height: 9px; border-radius: 50%; border: 2px solid var(--lapacho); }
.facts { display: grid; border: 1px solid var(--line); border-radius: var(--r-in); background: var(--card); }
.facts > div { display: grid; gap: 4px; padding: var(--s3) var(--s4); border-top: 1px solid var(--line); }
.facts > div:first-child { border-top: 0; }
.facts dt { font: 500 12.5px/1.3 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
@media (min-width: 700px) { .facts > div { grid-template-columns: 230px 1fr; gap: var(--s4); align-items: baseline; } }

/* Two-column page body */
.cols { display: grid; gap: var(--s6); align-items: start; }
.cols > * { min-width: 0; }
@media (min-width: 1024px) { .cols { grid-template-columns: minmax(0, 1fr) 340px; gap: var(--s7); } .cols__side:has(.card--sticky) { position: sticky; top: 92px; } }
.duo { display: grid; gap: var(--s5); }
.duo > div > * + * { margin-top: var(--s2); }
@media (min-width: 700px) { .duo { grid-template-columns: 1fr 1fr; } }

/* Page head + breadcrumbs */
.pagehead { background: var(--paper-2) radial-gradient(circle, rgba(22, 35, 63, .13) 1px, transparent 1.4px) 0 0 / 22px 22px; border-bottom: 1px solid var(--line); padding-block: var(--s5) var(--s6); }
.pagehead h1 { font-size: clamp(32px, 4.4vw, 52px); max-width: 20ch; }
.pagehead .lede { margin-top: var(--s3); color: var(--ink); opacity: .84; }
.pagehead__actions { margin-top: var(--s4); display: flex; flex-wrap: wrap; gap: var(--s3); align-items: center; }
.pagehead--404 { padding-block: var(--s8); }
.crumbs { margin-bottom: var(--s3); }
.crumbs ol { display: flex; flex-wrap: wrap; align-items: center; font: 500 13px/1.2 var(--mono); letter-spacing: .03em; color: var(--muted); }
.crumbs li { display: inline-flex; align-items: center; min-height: 44px; }
.crumbs li + li::before { content: "/"; margin-inline: 10px; color: var(--line); }
.crumbs a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; color: var(--ink); }
.jump { display: flex; flex-wrap: wrap; gap: 6px; }
.jump a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 64px; padding: 0 14px; border: 1.5px solid var(--ink); border-radius: var(--r-pill); color: var(--ink); text-decoration: none; font: 500 14px/1 var(--mono); }
.jump a:hover { background: var(--ink); color: var(--paper); }

/* Home: cover list, route, country grid, trio, cta */
.cover { display: grid; gap: var(--s5); }
.cover li { border-top: 2px solid var(--ink); padding-top: var(--s3); }
.cover__n { color: var(--lapacho); font-weight: 500; }
.cover h3 { margin-block: var(--s2); }
.cover p { color: var(--muted); font-size: 16px; }
@media (min-width: 640px) { .cover { grid-template-columns: repeat(6, 1fr); } .cover li { grid-column: span 3; } .cover li:nth-child(n+3) { grid-column: span 2; } }
@media (min-width: 1100px) { .cover { grid-template-columns: repeat(5, 1fr); } .cover li, .cover li:nth-child(n+3) { grid-column: auto; } }

.route { display: grid; gap: 0; counter-reset: route; }
.route li { position: relative; padding: 0 0 var(--s5) var(--s6); border-left: 2px solid rgba(251, 247, 239, .28); }
.route li:last-child { padding-bottom: 0; border-left-color: transparent; }
.route li::before { content: ""; position: absolute; left: -8px; top: 2px; width: 14px; height: 14px; border-radius: 50%; background: var(--ink); border: 3px solid var(--lapacho-on-ink); }
.route__t { color: var(--lapacho-on-ink); text-transform: uppercase; letter-spacing: .08em; font-size: 12.5px; }
.route h3 { margin-block: 6px; font-size: 22px; }
.route p { font-size: 15.5px; opacity: .84; line-height: 1.5; }
.route__more { margin-top: var(--s5); }
@media (min-width: 720px) {
  .route { grid-template-columns: repeat(3, 1fr); row-gap: var(--s6); }
  .route li, .route li:last-child { padding: var(--s5) var(--s5) 0 0; border-left: 0; border-top: 2px solid rgba(251, 247, 239, .28); }
  .route li::before { left: 0; top: -8px; }
}
@media (min-width: 1100px) { .route { grid-template-columns: repeat(6, 1fr); } .route li, .route li:last-child { padding-right: var(--s4); } }

.country-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0 var(--s4); }
.country-link { display: flex; align-items: center; gap: 10px; min-height: 44px; color: var(--ink); text-decoration: none; font-weight: 500; font-size: 16px; border-bottom: 1px solid var(--line); line-height: 1.2; }
.country-link::before, .legend__dot { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--jungle); }
.country-link--stop::before, .legend__dot--stop { background: var(--stop); }
.country-link:hover { color: var(--lapacho); border-color: var(--lapacho); }
.legend { margin-top: var(--s4); display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.legend__dot { display: inline-block; }
.legend__dot--stop { margin-left: var(--s4); }
@media (min-width: 768px) { .country-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); } }

.trio { display: grid; gap: var(--s4); }
@media (min-width: 860px) { .trio { grid-template-columns: repeat(3, 1fr); } }
.trio .card p { color: var(--muted); font-size: 16px; }
.cta__in { display: flex; flex-wrap: wrap; gap: var(--s5); align-items: center; justify-content: space-between; padding: var(--s6); border-radius: var(--r-card); background: var(--lapacho-soft); border: 1px solid #EBC3D2; }
.cta__in h2 { font-size: clamp(26px, 3vw, 36px); }
.cta__in p { margin-top: var(--s2); color: var(--ink); opacity: .82; max-width: 52ch; }
.cta { padding-top: 0; }
.section--alt + .cta { padding-top: 44px; }

/* Rail (timeline) */
.rail { display: grid; }
.rail__item { display: grid; gap: var(--s2); position: relative; padding: 0 0 var(--s6) var(--s6); border-left: 2px solid var(--line); }
.rail__item:last-child { border-left-color: transparent; padding-bottom: 0; }
.rail__item::before { content: ""; position: absolute; z-index: 1; left: -8px; top: 3px; width: 14px; height: 14px; border-radius: 50%; background: var(--paper); border: 3px solid var(--lapacho); }
.rail__when { color: var(--lapacho); text-transform: uppercase; letter-spacing: .08em; font-weight: 500; font-size: 12.5px; line-height: 1.5; }
.rail__when b { display: block; color: var(--ink); font-weight: 500; font-size: 14px; letter-spacing: .01em; text-transform: none; }
.rail__body > * + * { margin-top: var(--s3); }
.rail__body h2, .rail__body h3 { font-size: clamp(22px, 2.2vw, 27px); }
.rail--static { margin-bottom: var(--s6); }
@media (min-width: 760px) {
  .rail__item { grid-template-columns: 168px 1fr; gap: var(--s5); padding-left: 0; border-left: 0; }
  .rail__item::before { left: 161px; top: 5px; }
  .rail__item::after { content: ""; position: absolute; left: 167px; top: 5px; bottom: 0; width: 2px; background: var(--line); }
  .rail__item:last-child::after { display: none; }
  .rail__when { padding-right: var(--s5); text-align: right; }
  .rail__body { padding-left: var(--s5); }
}
.plan .rail__item.is-in::before { animation: pop .4s var(--ease) both; }
@keyframes pop { from { transform: scale(0); } }

/* Document list */
.doclist { border: 1px solid var(--line); border-radius: var(--r-in); background: var(--card); }
.doclist__row { display: grid; gap: var(--s2); padding: var(--s3) var(--s4); border-top: 1px solid var(--line); }
.doclist__row:first-child { border-top: 0; }
.doclist__main { display: grid; gap: 2px; min-width: 0; }
.doclist__label { text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-size: 12.5px; }
.doclist__name { font: 700 19px/1.25 var(--display); letter-spacing: -.01em; overflow-wrap: anywhere; }
.doclist__rule { font-size: 14.5px; color: var(--muted); line-height: 1.45; }
.doclist__side { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s4); }
.doclist__days { color: var(--ink); }
.doclist__date { font: 500 13px/1.3 var(--mono); padding: 4px 9px; border-radius: var(--r-in); background: var(--lapacho-soft); color: var(--lapacho-2); }
.doclist__date.is-late { background: var(--stop-soft); color: var(--stop); }
.doclist__link { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; font-size: 15px; }
.doclist__link::after { content: "\2197"; margin-left: 5px; font-family: var(--mono); }
@media (min-width: 760px) { .doclist__row { grid-template-columns: 1fr auto; align-items: center; gap: var(--s5); } .doclist__side { flex-direction: column; align-items: flex-end; gap: 2px; text-align: right; } }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-in); background: var(--card); }
.table { width: 100%; border-collapse: collapse; font-size: 16px; }
.table th, .table td { padding: 12px var(--s4); text-align: left; vertical-align: top; border-top: 1px solid var(--line); }
.table thead th { border-top: 0; font: 500 12.5px/1.3 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); background: var(--paper-2); white-space: nowrap; }
.table tbody th { font-weight: 600; }
.table .num { text-align: right; white-space: nowrap; }
.table--countries tbody th a { display: flex; align-items: center; min-height: 44px; margin-block: -12px; color: var(--ink); }
.table--countries tbody th a:hover { color: var(--lapacho); }
.table--countries td { vertical-align: middle; }
.table tr[hidden] { display: none; }
.table-wrap + .table-note { margin-top: var(--s3); }
.filter { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: var(--s3); margin-bottom: var(--s4); }
.filter .field { flex: 1 1 280px; max-width: 420px; }
.filter__count { color: var(--muted); padding-bottom: 14px; }
@media (max-width: 719px) {
  .table--countries thead { display: none; }
  .table--countries tr { display: grid; grid-template-columns: 1fr 1fr; gap: 2px var(--s3); padding: var(--s3) var(--s4); border-top: 1px solid var(--line); }
  .table--countries tr[hidden] { display: none; }
  .table--countries tbody tr:first-child { border-top: 0; }
  .table--countries th, .table--countries td { padding: 0; border: 0; text-align: left; }
  .table--countries tbody th { grid-column: 1 / -1; font-size: 18px; }
  .table--countries tbody th a { margin-block: 0; }
  .table--countries td { grid-column: 1 / -1; }
  .table--countries td:nth-of-type(1) { margin-bottom: 6px; }
  .table--countries td.num, .table--countries td:last-child { font-size: 14px; white-space: normal; }
  .table--countries td[data-label]:not(:nth-of-type(1))::before { content: attr(data-label) ": "; color: var(--muted); font-family: var(--body); }
  .table--countries td:last-child { grid-column: 1 / -1; }
}

/* Holidays */
.years { display: grid; gap: var(--s4); }
@media (min-width: 900px) { .years { display: block; columns: 2; column-gap: var(--s4); } .years > .year { break-inside: avoid; margin-bottom: var(--s4); } }
.year { padding: var(--s5) var(--s5) var(--s3); scroll-margin-top: 92px; }
.year h2 { font-size: 30px; color: var(--lapacho); }
.year--note { padding-bottom: var(--s5); background: var(--paper-2); box-shadow: none; }
.year--note h2 { color: var(--ink); font-size: 24px; }
.table--holidays { font-size: 15.5px; }
.table--holidays td { padding: 10px 0; }
.table--holidays tr:first-child td { border-top: 0; }
.table--holidays td:first-child { width: 150px; white-space: nowrap; padding-right: var(--s3); font-size: 13.5px; padding-top: 12px; }
.table--holidays .dow { color: var(--muted); }
.table--holidays .es { display: block; color: var(--muted); font-size: 14px; }
.table--holidays .chip { margin: 4px 6px 0 0; }
.table--holidays .is-past { opacity: .62; }
@media (max-width: 520px) { .table--holidays tr { display: block; padding-block: 10px; border-top: 1px solid var(--line); } .table--holidays tr:first-child { border-top: 0; } .table--holidays td, .table--holidays td:first-child { display: block; width: auto; padding: 0; border: 0; } .table--holidays td:first-child { margin-bottom: 2px; } }

/* Planner */
.planner__grid, .contact__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--s4); }
.planner__grid .field, .contact__grid .field { grid-column: span 12; }
.planner__grid .field--half { grid-column: span 6; }
@media (min-width: 640px) { .planner__grid .field { grid-column: span 6; } .planner__grid .field--half { grid-column: span 3; } .contact__grid .field { grid-column: span 4; } .contact__grid .field--wide { grid-column: span 12; } }
@media (min-width: 1024px) { .planner__grid .field { grid-column: span 3; } .planner__grid .field--half { grid-column: span 2; } .planner__grid .field:last-child { grid-column: span 5; } }
.planner__actions { margin-top: var(--s5); display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3) var(--s4); }
.planner__msg { font-size: 15px; color: var(--stop); min-height: 1px; }
.planner__msg.is-ok { color: var(--jungle); font-weight: 600; }
.preview { margin-top: var(--s5); display: grid; gap: var(--s3); }
.preview__item { padding: var(--s4); border: 1px dashed #C9BDA6; border-radius: var(--r-in); background: rgba(255, 255, 255, .5); }
.preview__item .mono { text-transform: uppercase; letter-spacing: .08em; color: var(--lapacho); font-size: 12.5px; }
.preview__item p { margin-top: 4px; font-size: 15.5px; color: var(--muted); line-height: 1.45; }
@media (min-width: 640px) { .preview { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .preview { grid-template-columns: repeat(4, 1fr); } }

.plan { margin-top: var(--s7); outline: none; scroll-margin-top: 88px; }
.plan__head { display: grid; gap: var(--s3); padding-bottom: var(--s5); border-bottom: 2px solid var(--ink); margin-bottom: var(--s5); }
.plan__head h2 { font-size: clamp(30px, 4vw, 48px); }
.plan__head h2 em { font-style: normal; color: var(--lapacho); }
.plan__frame { color: var(--muted); max-width: 70ch; }
.plan__tools { display: flex; flex-wrap: wrap; gap: var(--s2); }
.plan .block h3 { font-size: clamp(23px, 2.3vw, 28px); }
.plan .block h4 { font: 500 12.5px/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: var(--s4) 0 0; }
.plan .block .step { font: 500 12.5px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--lapacho); }
.keydates { display: grid; }
.keydates > div { padding: var(--s3) 0; border-top: 1px solid var(--line); display: grid; gap: 2px; }
.keydates > div:first-child { border-top: 0; padding-top: 0; }
.keydates dt { font: 500 12.5px/1.3 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.keydates dd { font: 500 16px/1.35 var(--mono); letter-spacing: -.01em; }
.keydates dd small { display: block; font: 400 13.5px/1.4 var(--body); color: var(--muted); letter-spacing: 0; }
.trip { display: grid; gap: 6px; }
.trip li { display: grid; grid-template-columns: 128px 1fr; gap: var(--s3); align-items: center; padding: 8px var(--s3); border-radius: var(--r-in); background: var(--card); border: 1px solid var(--line); font-size: 15.5px; }
.trip li.is-skip { background: transparent; border-style: dashed; color: var(--muted); }
.trip__d { font: 500 13.5px/1.2 var(--mono); }
.trip .chip { justify-self: start; white-space: normal; }
.mini-rail { display: grid; }
.mini-rail li { display: grid; gap: 1px; padding: 9px 0 9px var(--s4); border-left: 2px solid var(--line); position: relative; font-weight: 600; font-size: 15.5px; line-height: 1.3; }
.mini-rail li::before { content: ""; position: absolute; left: -6px; top: 14px; width: 10px; height: 10px; border-radius: 50%; background: var(--card); border: 2px solid var(--lapacho); }
.mini-rail .mono { color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-size: 12.5px; font-weight: 400; }
.mini-rail--links li { padding: 0 0 0 var(--s4); }
.mini-rail--links li::before { top: 17px; }
.mini-rail--links a { display: grid; grid-template-columns: 22px 1fr; align-items: center; min-height: 44px; color: var(--ink); text-decoration: none; }
.mini-rail--links a:hover { color: var(--lapacho); }
.mini-rail + .btn { margin-top: var(--s4); }

/* Questions, prose */
.qa { border-top: 1px solid var(--line); }
.qa details { border-bottom: 1px solid var(--line); }
.qa summary { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); min-height: 56px; padding-block: var(--s3); cursor: pointer; font: 700 18px/1.3 var(--display); letter-spacing: -.01em; list-style: none; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; flex: none; font: 400 24px/1 var(--mono); color: var(--lapacho); transition: transform .25s var(--ease); }
.qa details[open] summary::after { transform: rotate(45deg); }
.qa details p { padding-bottom: var(--s4); color: var(--muted); max-width: 70ch; }
.prose p { max-width: 70ch; }
.duo--cards { gap: var(--s4); }
.contact .field--wide textarea { min-height: 160px; }

/* Footer */
.site-footer { background: var(--ink); color: var(--paper); padding-block: 36px var(--s5); }
main > section:last-child { padding-bottom: 32px; }
body { min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1 0 auto; }
.site-footer a { color: var(--paper); }
.site-footer a:hover { color: var(--lapacho-on-ink); }
.site-footer__in { display: grid; gap: var(--s6); }
.site-footer__brand p { margin-top: var(--s3); max-width: 46ch; font-size: 15.5px; opacity: .84; }
.site-footer__nav { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s5) var(--s4); }
.site-footer__nav h2 { font: 500 12.5px/1.2 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--lapacho-on-ink); margin-bottom: var(--s1); }
.site-footer__nav a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; font-size: 16px; }
.site-footer__base { margin-top: var(--s6); padding-top: var(--s4); border-top: 1px solid rgba(251, 247, 239, .2); display: grid; gap: var(--s2); font-size: 14px; opacity: .8; }
.site-footer__base .mono { font-size: 12.5px; }
@media (min-width: 860px) { .site-footer__in { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: var(--s8); } .site-footer__nav { grid-template-columns: repeat(3, 1fr); } .site-footer__base { grid-template-columns: 1fr auto; align-items: baseline; gap: var(--s5); } }

/* Scroll reveal (only when JS is running) */
.js [data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js .cover li:nth-child(2), .js .trio .card:nth-child(2) { transition-delay: .07s; }
.js .cover li:nth-child(3), .js .trio .card:nth-child(3) { transition-delay: .14s; }
.js .cover li:nth-child(4) { transition-delay: .21s; } .js .cover li:nth-child(5) { transition-delay: .28s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}

@media print {
  .site-header, .site-footer, .planner, .preview, .plan__tools, .pagehead, .cols__side .btn, .skip-link { display: none !important; }
  body { background: #fff; font-size: 11pt; }
  .section, .section--tight { padding: 0; }
  .plan { margin-top: 0; }
  .card { box-shadow: none; }
  .cols { display: block; }
  .card--sticky { position: static; margin-bottom: 16pt; }
  .block { break-inside: avoid; }
  a { color: inherit; }
  .doclist__link::after { content: " (" attr(href) ")"; font-size: 8pt; word-break: break-all; }
  .js [data-reveal] { opacity: 1 !important; transform: none !important; }
}

/* Plan: rail titles and mobile order */
.plan .block h4.rail__title { font: 700 21px/1.2 var(--display); letter-spacing: -.01em; text-transform: none; color: var(--ink); margin: 0; }
.plan .rail { margin-top: var(--s4); }
@media (max-width: 1023px) { .plan .cols__side { order: -1; } }

@media (max-width: 559px) { .plan-card { transform: rotate(-.6deg); } }
.planner__grid .field { align-content: end; }
@media (max-width: 719px) {
  .table--stack thead { display: none; }
  .table--stack tr { display: block; padding: var(--s3) var(--s4); border-top: 1px solid var(--line); }
  .table--stack tbody tr:first-child { border-top: 0; }
  .table--stack th, .table--stack td { display: block; padding: 0; border: 0; }
  .table--stack tbody th { font-size: 18px; margin-bottom: 4px; }
  .table--stack td[data-label] { margin-top: 6px; color: var(--muted); }
  .table--stack td[data-label]::before { content: attr(data-label) " "; }
}
@media (min-width: 720px) and (max-width: 899px) { .table--countries th, .table--countries td { padding-inline: 9px; } .table--countries { font-size: 15px; } }
.keydates > div { padding-block: 10px; }
