:root {
  --ink: #17212b;
  --muted: #5f6b76;
  --paper: #fbfcfa;
  --line: #dde3df;
  --argentina: #5aa8d6;
  --argentina-soft: #eaf5fb;
  --venezuela: #cf4050;
  --venezuela-soft: #fff0ee;
  --accent: #16856b;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: Inter, system-ui, sans-serif; line-height: 1.65; }
a { color: #176e80; text-decoration-thickness: 1px; text-underline-offset: 3px; }
img { max-width: 100%; height: auto; }

.site-header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid rgba(23,33,43,.09); background: rgba(251,252,250,.94); backdrop-filter: blur(14px); }
.nav-shell { max-width: var(--max); height: 72px; margin: auto; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); font-weight: 800; text-decoration: none; letter-spacing: -.02em; }
.brand-mark { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; color: white; background: var(--ink); font-size: 13px; letter-spacing: .03em; }
.primary-nav { display: flex; gap: 12px; align-items: center; }
.nav-group { position: relative; display: flex; align-items: center; border-radius: 10px; }
.nav-group > a { padding: 10px 4px 10px 14px; color: var(--muted); font-size: 14px; font-weight: 600; text-decoration: none; }
.nav-group > button { border: 0; padding: 10px 12px 10px 6px; color: var(--muted); background: transparent; cursor: pointer; }
.nav-group:hover, .nav-group:focus-within, .nav-group.active { background: #f0f3f1; }
.nav-group.active > a { color: var(--ink); }
.dropdown { display: none; position: absolute; top: 46px; right: 0; min-width: 230px; padding: 8px; border: 1px solid var(--line); border-radius: 12px; background: white; box-shadow: 0 18px 45px rgba(35,48,58,.13); }
.dropdown a { display: block; padding: 10px 12px; border-radius: 8px; color: var(--ink); font-size: 13px; text-decoration: none; }
.dropdown a:hover { background: #f2f5f3; }
.nav-group:hover .dropdown, .nav-group:focus-within .dropdown, .nav-group.open .dropdown { display: block; }
.menu-toggle { display: none; border: 1px solid var(--line); border-radius: 9px; padding: 8px 12px; background: white; font: inherit; }

.hero { max-width: 900px; margin: 0 auto; padding: 112px 24px 70px; text-align: center; }
.eyebrow { margin: 0 0 10px; color: var(--accent); font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.hero h1 { margin: 0; font-size: clamp(48px, 8vw, 86px); line-height: .98; letter-spacing: -.065em; }
.hero-copy { max-width: 720px; margin: 28px auto 0; color: #3e4a55; font: 400 clamp(19px, 2.5vw, 25px)/1.5 "Source Serif 4", serif; }
.support { margin-top: 25px; color: var(--muted); font-size: 13px; }

.country-grid { max-width: var(--max); margin: 0 auto 112px; padding: 0 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.country-card { min-height: 350px; overflow: hidden; padding: 38px; display: grid; grid-template-columns: 118px 1fr; gap: 28px; align-items: start; border: 1px solid var(--line); border-radius: 22px; color: var(--ink); text-decoration: none; transition: transform .2s, box-shadow .2s; }
.country-card:hover { transform: translateY(-4px); box-shadow: 0 22px 55px rgba(24,39,45,.12); }
.argentina-card { background: linear-gradient(145deg, white 20%, var(--argentina-soft)); }
.venezuela-card { background: linear-gradient(145deg, white 20%, var(--venezuela-soft)); }
.country-card img { width: 118px; aspect-ratio: 1; object-fit: contain; border-radius: 50%; }
.card-kicker { margin: 5px 0 7px; color: var(--muted); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; }
.country-card h2 { margin: 0; font-size: 27px; line-height: 1.18; letter-spacing: -.035em; }
.country-card p:not(.card-kicker) { color: #4c5963; font: 400 17px/1.55 "Source Serif 4", serif; }
.card-link { font-size: 13px; font-weight: 800; }

.page-main { max-width: var(--max); min-height: 70vh; margin: auto; padding: 72px 24px 100px; }
.page-heading { max-width: 880px; margin-bottom: 54px; }
.page-heading h1 { max-width: 900px; margin: 0; font-size: clamp(40px, 6vw, 68px); line-height: 1.04; letter-spacing: -.055em; }
.article-content { max-width: 880px; font-family: "Source Serif 4", Georgia, serif; font-size: 18px; }
.article-content > p:first-child { font-size: 22px; color: #33414c; }
.article-content p { margin: 0 0 1.25em; }
.article-content h2 { margin: 2.4em 0 .65em; padding-top: .25em; font: 700 29px/1.18 Inter, sans-serif; letter-spacing: -.035em; }
.article-content h3 { margin: 2em 0 .6em; font: 700 22px/1.25 Inter, sans-serif; letter-spacing: -.025em; }
.article-content h4 { font: 700 17px/1.3 Inter, sans-serif; }
.article-content ul, .article-content ol { padding-left: 1.35em; }
.article-content li { margin: .4em 0; }
.article-content figure { margin: 30px 0; }
.article-content img { border-radius: 12px; }
.article-content .wp-block-image { text-align: center; }
.wp-block-button { margin: 24px 0; }
.wp-block-button a, .article-content a[style*="background"], .article-content a[role="button"] { display: inline-block; padding: 11px 18px; border-radius: 999px; color: white !important; background: var(--accent) !important; font: 700 13px Inter, sans-serif; text-decoration: none; }

#ven-index-plot, #ven-monthly-plot, #ven-annual-plot { width: 100% !important; height: 500px !important; min-height: 440px; margin: 25px 0 60px; border: 1px solid var(--line); border-radius: 16px; background: white; overflow: hidden; }
.chart-status { padding: 28px; color: var(--muted); font-family: Inter, sans-serif; }

.instructions-intro { margin-bottom: 24px; padding: 18px 22px; border-left: 4px solid var(--accent); background: #eef7f4; font-family: Inter, sans-serif; }
.instructions > section > nav { position: sticky; top: 86px; z-index: 10; margin: 0 0 36px; padding: 8px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.96); box-shadow: 0 10px 28px rgba(35,48,58,.08); }
.instructions > section > nav ul { margin: 0; padding: 0; display: flex; gap: 5px; list-style: none; overflow-x: auto; }
.instructions > section > nav li { flex: 0 0 auto; margin: 0; }
.instructions > section > nav a { display: block; padding: 10px 13px; border-radius: 9px; color: var(--ink); font: 700 12px/1.25 Inter, sans-serif; text-decoration: none; }
.instructions > section > nav a:hover { background: #edf2ef; }
.instructions section[id] { scroll-margin-top: 155px; margin: 52px 0; padding-top: 10px; border-top: 1px solid var(--line); }
.instructions section[id] > p:first-child { font: 700 24px Inter, sans-serif; }
.instructions section[id] img { width: auto; max-height: 430px; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 14px 35px rgba(24,39,45,.12); }

.site-footer { max-width: var(--max); margin: auto; padding: 38px 24px 50px; display: flex; justify-content: space-between; align-items: flex-end; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.site-footer p { margin: 5px 0 0; }
.site-footer a { color: var(--muted); }

@media (max-width: 800px) {
  .nav-shell { height: 64px; }
  .menu-toggle { display: block; }
  .primary-nav { display: none; position: absolute; left: 16px; right: 16px; top: 58px; padding: 10px; align-items: stretch; flex-direction: column; border: 1px solid var(--line); border-radius: 14px; background: white; box-shadow: 0 18px 50px rgba(35,48,58,.15); }
  .primary-nav.open { display: flex; }
  .nav-group { display: grid; grid-template-columns: 1fr auto; }
  .dropdown { position: static; grid-column: 1 / -1; min-width: 0; box-shadow: none; margin: 0 5px 5px; }
  .country-grid { grid-template-columns: 1fr; }
  .country-card { min-height: 0; }
  .hero { padding-top: 80px; }
  .page-main { padding-top: 52px; }
}

@media (max-width: 520px) {
  .brand-mark { display: none; }
  .brand { font-size: 14px; }
  .country-card { grid-template-columns: 72px 1fr; padding: 25px; gap: 18px; }
  .country-card img { width: 72px; }
  .country-card h2 { font-size: 22px; }
  .page-heading { margin-bottom: 38px; }
  .article-content { font-size: 17px; }
  .site-footer { align-items: flex-start; flex-direction: column; gap: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .country-card { transition: none; }
}
