:root {
  --ink: #0B1F20;
  --petrol: #103C3E;
  --petrol-light: #175255;
  --mist: #F3F7F5;
  --paper: #FFFFFF;
  --marigold: #F2A93B;
  --marigold-dark: #D9901F;
  --vital: #2E9E6D;
  --line: #DCE6E3;
  --radius: 1.25rem;
  --shadow: 0 1px 2px rgba(11,31,32,.04), 0 8px 24px -12px rgba(11,31,32,.12);
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Manrope', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--mist); color: var(--ink); font-family: var(--font-body); line-height: 1.55; }
h1, h2, h3 { font-family: var(--font-display); margin: 0 0 .5rem; line-height: 1.2; }
h1 { font-size: 1.9rem; font-weight: 700; }
h2 { font-size: 1.25rem; font-weight: 700; }
h3 { font-size: .95rem; font-weight: 600; }
p { margin: 0 0 .75rem; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
img, svg { max-width: 100%; }
::selection { background: var(--marigold); color: var(--ink); }
:focus-visible { outline: 3px solid var(--marigold); outline-offset: 2px; border-radius: 4px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; } }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 1.25rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--petrol); color: var(--mist); padding: .6rem 1rem; border-radius: 0 0 .5rem 0; z-index: 100; }
.skip-link:focus { left: 0; }
.mt { margin-top: 2.5rem; }
.muted { color: rgba(11,31,32,.3); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(243,247,245,.9); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.headrow { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .75rem 1.25rem; }
.logo { display: flex; align-items: center; gap: .5rem; font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; }
.logo-mark { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: .5rem; background: var(--petrol); }
.primary-nav { display: none; gap: 1.5rem; }
.primary-nav a { font-size: .875rem; font-weight: 500; color: rgba(11,31,32,.7); }
.primary-nav a:hover { color: var(--petrol); }
@media (min-width: 640px) { .primary-nav { display: flex; } }
.icon-btn { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); color: rgba(11,31,32,.6); }
.icon-btn:hover { color: var(--petrol); }

main { display: block; padding: 2rem 1.25rem 3rem; max-width: 1080px; margin: 0 auto; }

/* Hero */
.hero { display: grid; gap: 2rem; border-radius: var(--radius); background: var(--petrol); color: var(--mist); padding: 2.25rem 1.75rem; }
@media (min-width: 860px) { .hero { grid-template-columns: 1.2fr .8fr; align-items: center; padding: 3rem 2.5rem; } }
.hero p { max-width: 30rem; color: var(--line); font-size: .95rem; }
.hero-ring { display: flex; justify-content: center; }
@media (min-width: 860px) { .hero-ring { justify-content: flex-end; } }
.ring-card { display: flex; align-items: center; gap: .9rem; background: rgba(255,255,255,.06); border-radius: var(--radius); padding: 1.25rem; }
.ring-num { display: block; font-family: var(--font-display); font-size: 1.35rem; font-weight: 700; }
.ring-sub { display: block; font-size: .7rem; color: var(--line); max-width: 8rem; }

.search-bar { display: flex; align-items: center; gap: .5rem; background: var(--paper); border-radius: 999px; padding: .4rem; margin-top: 1.5rem; max-width: 26rem; box-shadow: var(--shadow); }
.search-icon { flex-shrink: 0; margin-left: .6rem; color: rgba(11,31,32,.5); }
.search-bar input { flex: 1; min-width: 0; border: none; background: transparent; padding: .6rem; font-size: .875rem; font-family: var(--font-body); color: var(--ink); }
.search-bar input:focus { outline: none; }
.search-bar button { flex-shrink: 0; border: none; background: var(--petrol); color: var(--mist); font-weight: 600; font-size: .8rem; padding: .6rem 1.1rem; border-radius: 999px; cursor: pointer; font-family: var(--font-body); }
.search-bar button:hover { background: var(--petrol-light); }

/* CTA */
.cta-banner { margin-top: 2rem; border-radius: var(--radius); background: var(--petrol); color: var(--mist); padding: 1.75rem 1.5rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.cta-banner h2 { font-size: 1.15rem; }
.cta-banner p { color: var(--line); font-size: .85rem; margin-bottom: 0; }
.cta-actions { display: flex; gap: .6rem; flex-wrap: wrap; }
.cta-whatsapp { width: 100%; text-align: center; font-size: .75rem; color: var(--line); text-decoration: underline; opacity: .85; }
.cta-whatsapp:hover { opacity: 1; }
.cta-compact { display: flex; align-items: center; justify-content: space-between; gap: .75rem; border: 1px solid var(--line); background: var(--paper); border-radius: var(--radius); padding: .9rem 1.1rem; box-shadow: var(--shadow); flex-wrap: wrap; }
.cta-compact p { margin: 0; font-size: .85rem; font-weight: 500; }

.btn { display: inline-flex; align-items: center; gap: .4rem; border-radius: 999px; padding: .65rem 1.1rem; font-size: .8rem; font-weight: 600; cursor: pointer; border: none; font-family: var(--font-body); }
.btn-outline { border: 1px solid rgba(243,247,245,.4); color: var(--mist); background: transparent; }
.btn-outline:hover { background: rgba(243,247,245,.1); }
.btn-marigold { background: var(--marigold); color: var(--ink); }
.btn-marigold:hover { background: var(--marigold-dark); }
.btn-vital { background: var(--vital); color: #fff; flex-shrink: 0; }
.btn-vital:hover { opacity: .9; }
.provider-head .btn-outline { border-color: var(--line); color: var(--ink); }
.provider-head .btn-outline:hover { background: var(--petrol); color: var(--mist); }

/* Grids & cards */
.grid { display: grid; gap: .75rem; }
.cat-grid { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px) { .cat-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .cat-grid { grid-template-columns: repeat(4, 1fr); } }
.article-grid { grid-template-columns: 1fr; }
@media (min-width: 700px) { .article-grid { grid-template-columns: repeat(2, 1fr); } }
.provider-grid { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 700px) { .provider-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .provider-grid { grid-template-columns: repeat(4, 1fr); } }
.glossary-grid { grid-template-columns: 1fr; }
@media (min-width: 700px) { .glossary-grid { grid-template-columns: repeat(2, 1fr); } }

.card { display: flex; flex-direction: column; gap: .5rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; box-shadow: var(--shadow); transition: transform .15s ease, box-shadow .15s ease; }
.card:hover { transform: translateY(-2px); box-shadow: 0 12px 28px -12px rgba(11,31,32,.2); }
.card-desc { font-size: .78rem; color: rgba(11,31,32,.6); margin: 0; }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.cat-card .cat-icon { color: var(--petrol); }
.card-tag { font-size: .75rem; font-weight: 600; color: var(--petrol); text-transform: capitalize; }
.provider-card { flex-direction: row; align-items: center; justify-content: space-between; }

.badge { display: inline-flex; align-items: center; border-radius: 999px; padding: .15rem .55rem; font-size: .68rem; font-weight: 700; }
.badge-official { background: rgba(46,158,109,.15); color: var(--vital); }
.badge-news { background: rgba(11,31,32,.06); color: rgba(11,31,32,.6); }
.time { font-family: var(--font-mono); font-size: .68rem; color: rgba(11,31,32,.4); }

.split { display: grid; gap: 2.5rem; margin-top: 3rem; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 320px; } }
.feed-list { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); box-shadow: var(--shadow); overflow: hidden; }
.feed-list li { padding: .75rem 1rem; border-bottom: 1px solid var(--line); }
.feed-list li:last-child { border-bottom: none; }
.feed-list a { font-size: .85rem; font-weight: 500; }
.feed-list a:hover { color: var(--petrol); }
.feed-meta { margin-top: .3rem; display: flex; align-items: center; gap: .5rem; }

.row-header { display: flex; align-items: center; justify-content: space-between; }
.link-more { font-size: .85rem; font-weight: 600; color: var(--petrol); }
.link-more:hover { text-decoration: underline; }
.guide-list { display: flex; flex-direction: column; gap: .75rem; }
.guide-list li { border: 1px solid var(--line); background: var(--paper); border-radius: var(--radius); padding: 1rem; box-shadow: var(--shadow); }
.guide-list a, .tip-title { font-family: var(--font-display); font-size: .9rem; font-weight: 600; }
.guide-list p { font-size: .78rem; color: rgba(11,31,32,.6); margin: .25rem 0 0; }

section { margin-top: 3rem; }
section:first-of-type { margin-top: 2rem; }

/* Breadcrumb */
.breadcrumb { margin-bottom: 1rem; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: .3rem; font-size: .75rem; color: rgba(11,31,32,.6); }
.breadcrumb li { display: flex; align-items: center; gap: .3rem; }
.breadcrumb a:hover { color: var(--petrol); text-decoration: underline; }

/* FAQ */
.faq { border: 1px solid var(--line); background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.faq details { padding: 1rem 1.1rem; border-bottom: 1px solid var(--line); }
.faq details:last-child { border-bottom: none; }
.faq summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: .75rem; font-family: var(--font-display); font-weight: 600; font-size: .9rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq .chev { flex-shrink: 0; color: rgba(11,31,32,.4); transition: transform .15s ease; }
.faq details[open] .chev { transform: rotate(180deg); }
.faq details p { margin-top: .6rem; font-size: .85rem; color: rgba(11,31,32,.7); }

/* Provider / article pages */
.provider-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.tag-row { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .6rem; }
.pill { background: var(--paper); border-radius: 999px; padding: .3rem .75rem; font-size: .72rem; font-weight: 600; color: var(--petrol); box-shadow: var(--shadow); text-transform: capitalize; }
.pill:hover { background: var(--petrol); color: var(--mist); }
.eyebrow { font-size: .68rem; text-transform: uppercase; letter-spacing: .04em; color: rgba(11,31,32,.4); }
.prose { margin-top: 1.5rem; max-width: 40rem; font-size: .92rem; color: rgba(11,31,32,.8); }
.source-box { margin-top: 1.25rem; border: 1px solid var(--line); background: var(--paper); border-radius: var(--radius); padding: 1rem; box-shadow: var(--shadow); }
.source-box p { font-size: .85rem; color: rgba(11,31,32,.7); }
.fine-print { margin-top: 2rem; font-size: .72rem; color: rgba(11,31,32,.4); }
.lede { max-width: 34rem; font-size: .95rem; color: rgba(11,31,32,.65); }
.narrow { max-width: 34rem; }

.search-results li { padding: .9rem 0; border-bottom: 1px solid var(--line); }
.search-results a { font-family: var(--font-display); font-size: .9rem; font-weight: 600; }
.search-results a:hover { color: var(--petrol); }
.empty-note, .section-note { font-size: .85rem; color: rgba(11,31,32,.5); }

.state-page { text-align: center; padding: 4rem 1rem; }
.state-actions { display: flex; gap: .75rem; justify-content: center; margin-top: 1.25rem; }
.state-page .btn-outline { border-color: var(--line); color: var(--ink); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: var(--paper); margin-top: 4rem; }
.site-footer .wrap { padding: 2.5rem 1.25rem; }
.footer-cta { margin-bottom: 2rem; }
.footer-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
@media (min-width: 700px) { .footer-grid { grid-template-columns: repeat(4, 1fr); } }
.footer-brand { grid-column: span 2; }
@media (min-width: 700px) { .footer-brand { grid-column: span 1; } }
.footer-title { font-family: var(--font-display); font-weight: 700; }
.footer-blurb { font-size: .78rem; color: rgba(11,31,32,.6); }
.footer-heading { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: rgba(11,31,32,.4); margin-bottom: .75rem; }
.footer-grid ul { display: flex; flex-direction: column; gap: .5rem; }
.footer-grid a { font-size: .82rem; color: rgba(11,31,32,.7); }
.footer-grid a:hover { color: var(--petrol); }
.footer-legal { margin-top: 2.5rem; font-size: .68rem; color: rgba(11,31,32,.4); line-height: 1.6; }
