:root {
  --green-900: #06261a;
  --green-700: #0b3d2a;
  --green-500: #147a4d;
  --gold: #ffdf2d;
  --leaf: #7ab82a;
  --red: #d90429;
  --ink: #15201b;
  --muted: #5b6b63;
  --line: #e3e8e5;
  --bg: #ffffff;
  --bg-soft: #f4f7f5;
  --card: #ffffff;
  --sans: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --serif: 'Source Serif 4', Georgia, serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #e8efe9; --muted: #a3b3ab; --line: #24342c; --bg: #0c1511; --bg-soft: #111d17; --card: #13201a;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); line-height: 1.5; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 8px; top: 8px; background: #fff; padding: 8px; z-index: 10; }

/* Ticker de urgentes */
.ticker { display: flex; align-items: center; background: var(--red); color: #fff; font-size: 14px; font-weight: 700; overflow: hidden; white-space: nowrap; }
.ticker-tag { background: #9b0019; padding: 8px 14px; letter-spacing: 2px; flex: none; }
.ticker-track { display: flex; gap: 18px; padding: 8px 14px; animation: tick 40s linear infinite; }
.ticker a { text-decoration: none; }
.ticker a:hover { text-decoration: underline; }
@keyframes tick { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; } }

/* Header */
.site-header { background: var(--green-900); color: #fff; position: sticky; top: 0; z-index: 5; }
.header-row { display: flex; align-items: center; gap: 16px; padding-top: 12px; padding-bottom: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; }
.brand-logo { height: 40px; width: auto; }
.brand-agro { font-style: normal; color: var(--green-900); background: var(--leaf); font-weight: 800; font-size: 11px; letter-spacing: 2px; text-transform: uppercase; padding: 3px 7px; border-radius: 5px; align-self: center; }
@media (max-width: 760px) { .brand-logo { height: 30px; } .brand-agro { display: none; } }
.search { margin-left: auto; display: flex; background: rgba(255,255,255,.1); border-radius: 999px; overflow: hidden; }
.search input { background: none; border: 0; color: #fff; padding: 9px 14px; width: 220px; font: inherit; font-size: 14px; }
.search input::placeholder { color: rgba(255,255,255,.6); }
.search button { background: none; border: 0; padding: 0 12px; cursor: pointer; }
.btn { display: inline-block; text-decoration: none; font-weight: 700; border-radius: 10px; padding: 11px 18px; font-size: 14px; }
.btn-gold { background: var(--gold); color: var(--green-900); }
.btn-gold:hover { filter: brightness(1.05); }
.cats { display: flex; gap: 22px; overflow-x: auto; padding-bottom: 12px; font-size: 14px; font-weight: 600; scrollbar-width: none; }
.cats::-webkit-scrollbar { display: none; }
.cats a { text-decoration: none; color: rgba(255,255,255,.85); white-space: nowrap; }
.cats a:hover { color: var(--gold); }
@media (max-width: 760px) {
  .search { display: none; }
  .header-cta { margin-left: auto; padding: 9px 12px; font-size: 12px; }
}

/* Cards e grids */
main { padding: 28px 0 48px; }
.section-title { font-size: 14px; text-transform: uppercase; letter-spacing: 2px; color: var(--green-500); border-bottom: 3px solid var(--gold); display: inline-block; padding-bottom: 4px; margin: 32px 0 18px; }
.hero-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 28px; }
.hero-grid .section-title { margin-top: 0; }
.lead-img img { border-radius: 14px; aspect-ratio: 3/2; object-fit: cover; width: 100%; }
.lead h1 { font-size: clamp(26px, 3.4vw, 40px); line-height: 1.12; margin: 10px 0; letter-spacing: -.6px; }
.lead h1 a, .card h3 a { text-decoration: none; }
.lead h1 a:hover, .card h3 a:hover { color: var(--green-500); }
.lead p { color: var(--muted); font-family: var(--serif); font-size: 18px; margin: 0; }
.lead-body { padding-top: 14px; }
.meta { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--muted); flex-wrap: wrap; }
.cat { color: var(--green-500); font-weight: 700; text-transform: uppercase; letter-spacing: 1px; text-decoration: none; }
.tag-urgent { background: var(--red); color: #fff; font-weight: 800; letter-spacing: 1.5px; padding: 3px 8px; border-radius: 4px; font-size: 11px; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.card { background: var(--card); display: flex; flex-direction: column; }
.card-img img { border-radius: 12px; aspect-ratio: 3/2; object-fit: cover; width: 100%; }
.card h3 { font-size: 19px; line-height: 1.25; margin: 8px 0 6px; }
.card p { color: var(--muted); font-size: 15px; margin: 0; font-family: var(--serif); }
.card-body { padding-top: 12px; }
.card.mini { flex-direction: row; gap: 12px; padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1px solid var(--line); }
.card.mini .card-img { flex: none; width: 110px; }
.card.mini .card-body { padding: 0; }
.card.mini h3 { font-size: 15px; margin: 4px 0 0; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid { grid-template-columns: 1fr; } }

.cta-band { background: var(--green-700); color: #fff; margin: 40px 0 8px; }
.cta-band-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 24px; padding-bottom: 24px; flex-wrap: wrap; }
.cta-band strong { display: block; font-size: 22px; }
.cta-band span { color: #cfe3d8; }

.pagination { display: flex; justify-content: space-between; align-items: center; margin-top: 36px; font-weight: 600; font-size: 14px; }
.pagination a { color: var(--green-500); }
.page-head h1 { font-size: clamp(28px, 4vw, 42px); margin: 0 0 6px; letter-spacing: -.6px; }
.page-head p { color: var(--muted); margin: 0 0 24px; max-width: 70ch; }
.empty { text-align: center; padding: 80px 16px; }

/* Artigo */
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.crumbs a { text-decoration: none; }
.article-head { max-width: 860px; }
.article-head h1 { font-size: clamp(30px, 4.6vw, 50px); line-height: 1.08; letter-spacing: -1px; margin: 12px 0; }
.dek { font-family: var(--serif); font-size: clamp(18px, 2vw, 22px); color: var(--muted); margin: 0 0 14px; }
.byline { font-size: 13px; color: var(--muted); }
.hero-fig { margin: 24px 0 8px; }
.hero-fig img { width: 100%; border-radius: 16px; aspect-ratio: 3/2; object-fit: cover; }
figcaption { font-size: 12px; color: var(--muted); margin-top: 6px; }
.article-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; margin-top: 24px; }
@media (max-width: 960px) { .article-grid { grid-template-columns: 1fr; } }
.prose { font-family: var(--serif); font-size: 19px; line-height: 1.72; max-width: 760px; }
.prose h2 { font-family: var(--sans); font-size: 27px; line-height: 1.2; margin: 40px 0 12px; letter-spacing: -.4px; }
.prose h3 { font-family: var(--sans); font-size: 21px; margin: 28px 0 8px; }
.prose a { color: var(--green-500); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.prose figure { margin: 30px 0; }
.prose figure img { border-radius: 12px; }
.prose blockquote { border-left: 4px solid var(--gold); margin: 24px 0; padding: 4px 20px; color: var(--muted); }
.table-wrap { overflow-x: auto; margin: 24px 0; border: 1px solid var(--line); border-radius: 12px; }
.prose table { border-collapse: collapse; width: 100%; font-family: var(--sans); font-size: 15px; line-height: 1.45; }
.prose th { background: var(--green-700); color: #fff; text-align: left; }
.prose th, .prose td { padding: 10px 14px; border-bottom: 1px solid var(--line); }
.prose tr:nth-child(even) td { background: var(--bg-soft); }
.cta-box { background: var(--green-900); color: #fff; border-radius: 16px; padding: 26px; margin: 40px 0; font-family: var(--sans); }
.cta-box h2 { margin: 0 0 8px; font-size: 22px; color: var(--gold); }
.cta-box p { color: #cfe3d8; font-size: 16px; line-height: 1.5; }
.faq details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq summary { font-family: var(--sans); font-weight: 700; font-size: 17px; cursor: pointer; }
.faq p { margin: 8px 0 0; font-size: 17px; }
.refs ol { font-family: var(--sans); font-size: 14px; line-height: 1.6; padding-left: 20px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0; font-family: var(--sans); }
.tags a { background: var(--bg-soft); border: 1px solid var(--line); padding: 4px 10px; border-radius: 999px; font-size: 13px; text-decoration: none; color: var(--ink); }
.share { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; font-family: var(--sans); font-size: 14px; font-weight: 600; }
.share a { background: var(--green-700); color: #fff; padding: 7px 12px; border-radius: 8px; text-decoration: none; }
.disclaimer-inline { font-family: var(--sans); font-size: 12px; color: var(--muted); margin-top: 28px; line-height: 1.5; }
.article-side .side-box { position: sticky; top: 140px; }
.article-side h2 { font-size: 14px; text-transform: uppercase; letter-spacing: 2px; color: var(--green-500); }

/* Footer */
.site-footer { background: var(--green-900); color: #cfe3d8; padding: 40px 0 24px; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 28px; }
.footer-grid h3 { color: #fff; font-size: 14px; text-transform: uppercase; letter-spacing: 2px; }
.footer-grid a:not(.brand) { display: block; text-decoration: none; margin: 6px 0; }
.footer-grid a:hover { color: var(--gold); }
.disclaimer { font-size: 12px; color: #8fb3a1; border-top: 1px solid rgba(255,255,255,.1); padding-top: 18px; margin-top: 28px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
