:root {
  --bg: #f3f5fa;
  --surface: #ffffff;
  --text: #0a1630;
  --primary: #0f1f32;        /* azul-marinho da logo */
  --primary-2: #1a3352;
  --accent: #e31c24;         /* vermelho do "Λ" da logo */
  --muted: #5b6785;
  --border: #e3e8f2;
  --soft: #eef2fa;
  --up: #12a150;
  --down: #e31c24;
  --shadow: 0 1px 2px rgba(11,31,77,.04), 0 6px 24px rgba(11,31,77,.06);
  --radius: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { overflow-x: clip; }
body {
  margin: 0;
  font-family: "Sora", ui-sans-serif, system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; }
.container { width: min(1200px, 100% - 32px); margin-inline: auto; }
.muted { color: var(--muted); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.85);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; gap: 24px; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--primary); }
.logo-mark { width: 30px; height: 30px; color: var(--primary); }
.logo-mark svg { width: 100%; height: 100%; }
.logo-text { font-size: 13px; line-height: 1.05; font-weight: 600; letter-spacing: .02em; color: var(--primary); }
.logo-text b { font-weight: 800; }
.logo-text.light { color: #fff; }

.main-nav { display: flex; gap: 28px; margin-left: auto; margin-right: auto; align-items: center; }
.main-nav a, .dropdown-btn { color: #34446b; font-size: 14px; font-weight: 500; background: none; border: 0; padding: 6px 0; display: flex; align-items: center; gap: 4px; }
.main-nav a:hover, .dropdown-btn:hover { color: var(--accent); }
.nav-cats { display: contents; }
.dropdown { position: relative; }
.dropdown-menu {
  position: absolute; top: 100%; right: 0; min-width: 220px; padding: 8px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow);
  opacity: 0; pointer-events: none; transform: translateY(6px); transition: .18s;
}
.dropdown:hover .dropdown-menu, .dropdown:focus-within .dropdown-menu { opacity: 1; pointer-events: auto; transform: none; }
.dropdown-menu a { display: block; padding: 8px 10px; border-radius: 8px; font-size: 13px; }
.dropdown-menu a:hover { background: var(--soft); color: var(--primary); }
.dropdown-menu small { display: block; color: var(--muted); font-size: 11px; }

.header-actions { display: flex; gap: 6px; align-items: center; }
.icon-btn {
  width: 34px; height: 34px; display: grid; place-items: center;
  border-radius: 10px; border: 0; background: transparent; color: var(--primary);
}
.icon-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn.filled svg { width: 18px; height: 18px; }
.icon-btn:hover { background: var(--soft); }
.icon-btn.ghost { color: #fff; border: 1px solid rgba(255,255,255,.25); border-radius: 50%; }
.icon-btn.ghost:hover { background: rgba(255,255,255,.1); }
.menu-toggle { display: none; }

/* ---------- Ticker ---------- */
.ticker-bar { background: var(--primary); min-height: 58px; display: flex; align-items: center; overflow: hidden; }
.ticker-bar .tradingview-widget-container { width: 100%; }

/* ---------- Layout ---------- */
main { padding-top: 32px; }
.hero-grid, .content-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; margin-bottom: 48px; }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; }
.hero-side, .content-side { display: flex; flex-direction: column; gap: 20px; }
.card-head { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 10px; }
.card-head h3 { margin: 0; font-size: 15px; line-height: 1.35; color: var(--primary); font-weight: 700; }
.card p { margin: 0 0 14px; font-size: 13px; color: var(--muted); }
.badge-icon { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--primary); color: #fff; }
.badge-icon.accent { background: #fde8ea; color: var(--accent); }
.badge-icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.badge-icon.big { width: 48px; height: 48px; margin: 0 auto 14px; background: var(--soft); color: var(--primary); border-radius: 14px; }
.group-card { border-left: 4px solid var(--accent); }

.btn {
  display: inline-flex; justify-content: center; align-items: center;
  background: var(--primary); color: #fff; border: 0; border-radius: 10px;
  padding: 11px 18px; font-size: 13px; font-weight: 600; transition: background .15s;
}
.btn:hover { background: var(--primary-2); }
.btn.block { width: 100%; }
input[type=email], input[type=text] {
  width: 100%; padding: 11px 14px; border: 1px solid var(--border); border-radius: 10px;
  background: var(--soft); font: inherit; font-size: 13px; color: var(--text); outline: none;
}
input:focus { border-color: var(--primary); background: #fff; }
.inline-form { display: flex; flex-direction: column; gap: 10px; }
.inline-form .btn { align-self: flex-start; }
.inline-form.row { flex-direction: row; min-width: 380px; }
.inline-form.row .btn { white-space: nowrap; }

/* ---------- Thumbnails (placeholders) ---------- */
.thumb { position: relative; border-radius: 14px; overflow: hidden; aspect-ratio: 16/9; background: var(--grad, linear-gradient(135deg,#1a3352,#0f1f32)); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb .thumb-icon { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255,255,255,.22); }
.thumb .thumb-icon svg { width: 34%; max-width: 120px; height: auto; fill: none; stroke: currentColor; stroke-width: 1.4; }
.cat-negocios   { --grad: linear-gradient(135deg,#0f1f32 0%,#2d5a8c 100%); }
.cat-economia   { --grad: linear-gradient(135deg,#1a3352 0%,#e31c24 140%); }
.cat-agro       { --grad: linear-gradient(135deg,#0f5132 0%,#5aa469 100%); }
.cat-imobiliario{ --grad: linear-gradient(135deg,#3b2f63 0%,#8a6fd1 100%); }

/* ---------- Kicker / títulos ---------- */
.kicker { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--accent); }
.kicker::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.kicker-title { margin: 0 0 14px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--primary); display: flex; align-items: center; gap: 8px; }
.kicker-title::before { content: ""; width: 3px; height: 12px; background: var(--accent); border-radius: 2px; }
.section-title { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--primary); margin: 0 0 18px; }
.section-title.plain { text-transform: none; letter-spacing: 0; font-size: 20px; margin-top: 40px; }
.section-head { display: flex; justify-content: space-between; align-items: center; }
.see-all { font-size: 13px; color: var(--accent); font-weight: 600; }
.see-all:hover { text-decoration: underline; }

/* ---------- Hero ---------- */
.hero .thumb { aspect-ratio: 16/9; box-shadow: var(--shadow); }
.hero h1 { font-size: clamp(28px, 3.4vw, 40px); line-height: 1.15; color: var(--primary); font-weight: 600; margin: 14px 0 12px; letter-spacing: -.01em; }
.hero h1 a:hover { color: var(--primary-2); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.hero .summary { font-size: 16px; color: var(--muted); margin: 0 0 14px; }
.hero .kicker { margin-top: 24px; }
.meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 12px; color: var(--muted); }
.meta .dot { opacity: .5; }

.featured-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.feat-card { background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--border); transition: transform .18s; }
.feat-card:hover { transform: translateY(-3px); }
.feat-card .thumb { border-radius: 0; }
.feat-card .body { padding: 16px; }
.feat-card h3 { font-size: 16px; line-height: 1.35; color: var(--primary); margin: 8px 0 8px; font-weight: 600; }
.feat-card .date { font-size: 11px; color: var(--muted); }

/* Sidebar list */
.side-item { display: grid; grid-template-columns: 110px 1fr; gap: 0; background: var(--surface); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); margin-bottom: 12px; border: 1px solid var(--border); }
.side-item .thumb { border-radius: 0; aspect-ratio: auto; height: 100%; min-height: 96px; }
.side-item .body { padding: 12px 14px; }
.side-item h4 { margin: 6px 0 0; font-size: 13px; line-height: 1.35; color: var(--primary); font-weight: 600; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.side-item:hover h4 { color: var(--accent); }

/* ---------- Banner ---------- */
.ad-banner {
  position: relative; display: block; overflow: hidden; margin-bottom: 32px;
  border-radius: var(--radius); padding: 34px 40px; min-height: 150px; color: #fff;
  background: radial-gradient(120% 140% at 85% 120%, #e31c2455 0%, transparent 50%), linear-gradient(110deg, #0f1f32 0%, #1a3352 55%, #24456e 100%);
}
.ad-label { position: absolute; top: 10px; right: 12px; font-size: 9px; letter-spacing: .08em; background: rgba(255,255,255,.85); color: var(--primary); padding: 2px 6px; border-radius: 4px; font-weight: 700; text-transform: uppercase; }
.ad-brand { display: flex; align-items: center; gap: 18px; position: relative; z-index: 1; }
.ad-brand .logo-text { font-size: 20px; }
.ad-divider { width: 1px; height: 44px; background: rgba(255,255,255,.4); }
.ad-tagline { font-size: 10px; letter-spacing: .14em; line-height: 1.5; opacity: .85; }
.ad-cats { font-size: 9px; letter-spacing: .14em; opacity: .7; margin-top: 18px; position: relative; z-index: 1; }
.ad-cta { position: absolute; right: 40px; top: 50%; transform: translateY(-50%); z-index: 1; border: 1.5px solid #fff; border-radius: 999px; padding: 8px 18px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; transition: .15s; }
.ad-banner:hover .ad-cta { background: #fff; color: var(--primary); }
.ad-skyline { position: absolute; left: 35%; right: 0; bottom: 0; width: 65%; height: 70%; color: rgba(255,255,255,.08); }

/* ---------- Impostômetro ---------- */
.impostometro {
  background: linear-gradient(180deg, #0f1f32 0%, #162b47 100%);
  border-radius: var(--radius); padding: 26px 24px 20px; text-align: center; color: #fff;
  margin-bottom: 48px; box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.impostometro::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, var(--accent), #fff 50%, #111 100%); opacity: .9; }
.impostometro h3 { margin: 0 0 18px; font-size: 16px; font-weight: 600; }
.imp-digits { display: flex; justify-content: center; align-items: flex-start; gap: 14px; flex-wrap: wrap; }
.imp-group { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.imp-group .cells { display: flex; gap: 4px; }
.imp-cell {
  width: 36px; height: 50px; display: grid; place-items: center;
  background: #0a1626; border: 1px solid rgba(255,255,255,.18); border-radius: 7px;
  font-size: 26px; font-weight: 700; font-variant-numeric: tabular-nums;
  box-shadow: inset 0 -12px 18px rgba(255,255,255,.03);
}
.imp-cell.flip { animation: flip .35s ease; }
@keyframes flip { 0% { transform: rotateX(80deg); opacity: .3 } 100% { transform: none; opacity: 1 } }
.imp-group label { font-size: 9px; letter-spacing: .14em; opacity: .7; }
.imp-sep { align-self: center; margin-top: -18px; font-size: 22px; opacity: .5; }
.imp-meta { margin: 16px 0 0; font-size: 11px; opacity: .75; }
.imp-meta a { text-decoration: underline; }

/* ---------- Category blocks ---------- */
.cat-block { margin-bottom: 36px; }
.cat-block .section-head { border-top: 1px solid var(--border); padding-top: 14px; margin-bottom: 4px; }
.cat-block .kicker-title { margin: 0; }
.list-item { display: grid; grid-template-columns: 120px 1fr; gap: 18px; padding: 14px 0; border-bottom: 1px solid var(--border); align-items: center; }
.list-item .thumb { border-radius: 10px; aspect-ratio: 4/3; }
.list-item h3 { margin: 0 0 6px; font-size: 15px; line-height: 1.4; color: var(--primary); font-weight: 600; }
.list-item:hover h3 { color: var(--accent); }
.clock::before { content: "◷ "; }

/* ---------- Colunistas ---------- */
.columnists { margin-top: 12px; }
.columnist-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.col-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 10px; transition: transform .18s; }
.col-card:hover { transform: translateY(-3px); }
.col-person { display: flex; gap: 10px; align-items: center; }
.avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 700; color: #fff; background: var(--primary); flex: none; }
.col-person strong { font-size: 13px; color: var(--primary); display: block; }
.col-person span { font-size: 11px; color: var(--muted); }
.col-card p { margin: 0; font-size: 14px; line-height: 1.4; color: var(--text); font-weight: 600; }

/* ---------- Mais lidas / em alta ---------- */
.most-read { list-style: none; margin: 0; padding: 0; counter-reset: mr; }
.most-read li { counter-increment: mr; display: grid; grid-template-columns: 30px 1fr; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.most-read li:last-child { border: 0; }
.most-read li::before { content: counter(mr); font-size: 24px; font-weight: 800; color: var(--accent); line-height: 1; }
.most-read a { font-size: 13px; font-weight: 600; color: var(--primary); line-height: 1.4; display: block; margin-bottom: 4px; }
.most-read a:hover { color: var(--accent); }
.most-read small { font-size: 11px; color: var(--muted); }
.trend-item { display: block; padding: 10px 0; border-bottom: 1px solid var(--border); }
.trend-item:last-child { border: 0; }
.trend-item h5 { margin: 4px 0; font-size: 13px; color: var(--primary); line-height: 1.4; }
.trend-item:hover h5 { color: var(--accent); }
.trend-item small { font-size: 11px; color: var(--muted); }

/* ---------- Agro ---------- */
.agro-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 14px; }
.agro-head h4 { margin: 0; font-size: 15px; color: var(--primary); }
.agro-head .muted { font-size: 11px; }
.live-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 10px; font-weight: 700; color: var(--up); background: #e6f6ed; padding: 4px 8px; border-radius: 999px; }
.live-pill i { width: 6px; height: 6px; border-radius: 50%; background: var(--up); animation: pulse 1.4s infinite; }
@keyframes pulse { 50% { opacity: .3 } }
.quote { background: var(--soft); border-radius: 12px; padding: 14px; margin-bottom: 10px; }
.quote .q-name { font-size: 10px; font-weight: 700; letter-spacing: .08em; color: var(--muted); text-transform: uppercase; }
.quote .q-row { display: flex; justify-content: space-between; align-items: flex-end; margin-top: 6px; }
.quote .q-val { font-size: 22px; font-weight: 700; color: var(--primary); }
.quote .q-unit { font-size: 9px; letter-spacing: .1em; color: var(--muted); }
.quote .q-detail { font-size: 11px; color: var(--muted); }
.quote .q-chg { text-align: right; font-size: 12px; font-weight: 700; }
.up { color: var(--up); } .down { color: var(--down); }
.agro-card .source { font-size: 10px; margin: 10px 0 0; }
.ad-box { border: 1px dashed #c6cfe2; border-radius: var(--radius); min-height: 250px; display: grid; place-items: center; text-align: center; font-size: 10px; letter-spacing: .14em; color: #98a3bd; }
.ad-box span { letter-spacing: 0; font-size: 12px; }

/* ---------- Newsletter strip ---------- */
.newsletter-strip { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 40px 0 56px; border-top: 1px solid var(--border); }
.newsletter-strip h2 { margin: 0 0 6px; font-size: 22px; color: var(--primary); font-weight: 600; line-height: 1.3; }
.newsletter-strip p { margin: 0; font-size: 13px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--primary); color: #c9d3ea; padding-top: 48px; border-top: 4px solid var(--accent); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; padding-bottom: 40px; }
.footer-grid p { font-size: 13px; margin: 14px 0; }
.footer-grid h5 { margin: 0 0 14px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: #ff8a95; }
.footer-grid > div > a { display: block; font-size: 13px; padding: 4px 0; }
.footer-grid a:hover { color: #fff; }
.footer-social { display: flex; gap: 8px; }
.footer-social .icon-btn svg { width: 16px; height: 16px; }
.footer-bottom { display: flex; justify-content: space-between; border-top: 1px solid rgba(255,255,255,.12); padding: 18px 0; font-size: 11px; opacity: .75; flex-wrap: wrap; gap: 8px; }

/* ---------- Modal / toast ---------- */
.modal-backdrop { position: fixed; inset: 0; z-index: 100; background: rgba(11,31,77,.45); backdrop-filter: blur(4px); display: grid; place-items: center; padding: 16px; }
.modal-backdrop[hidden] { display: none; }
.modal { position: relative; background: #fff; border-radius: 20px; padding: 32px 28px 22px; width: min(400px, 100%); text-align: center; box-shadow: 0 24px 60px rgba(11,31,77,.3); animation: pop .25s ease; }
@keyframes pop { from { transform: scale(.95); opacity: 0 } }
.modal h3 { margin: 0 0 10px; color: var(--primary); font-size: 20px; line-height: 1.3; }
.modal p { font-size: 13px; color: var(--muted); margin: 0 0 18px; }
.modal-close { position: absolute; top: 12px; right: 14px; border: 0; background: none; font-size: 22px; color: var(--muted); }
.stack-form { display: flex; flex-direction: column; gap: 10px; }
.link-btn { background: none; border: 0; color: var(--muted); font-size: 12px; margin: 12px 0 8px; text-decoration: underline; }
.modal small { display: block; font-size: 10px; color: var(--muted); }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 120px); background: var(--primary); color: #fff; padding: 12px 20px; border-radius: 12px; font-size: 13px; z-index: 200; transition: transform .3s; box-shadow: var(--shadow); }
.toast.show { transform: translate(-50%, 0); }


/* ---------- Estados de navegação ---------- */
.main-nav a.active, .dropdown-btn.active { color: var(--primary); font-weight: 700; box-shadow: inset 0 -2px 0 var(--accent); }
.dropdown.open .dropdown-menu { opacity: 1; pointer-events: auto; transform: none; }
.dropdown-menu a.all { color: var(--accent); font-weight: 600; border-top: 1px solid var(--border); margin-top: 4px; border-radius: 0 0 8px 8px; }
.menu-toggle .i-close { display: none; }
.menu-toggle[aria-expanded="true"] .i-open { display: none; }
.menu-toggle[aria-expanded="true"] .i-close { display: block; }
/* trava a rolagem no <html> (no <body> ela não funciona, porque o html tem overflow-x: clip) */
html.no-scroll, html.menu-open { overflow: hidden; }
#app { outline: none; min-height: 50vh; }

/* Cards com link sobreposto (permite link no kicker por cima) */
.feat-card { position: relative; }
.card-link { position: absolute; inset: 0; z-index: 1; }
.feat-card .kicker { position: relative; z-index: 2; }
.kicker:hover { text-decoration: underline; }
.meta a:hover { color: var(--accent); }

/* ---------- Páginas internas ---------- */
.page { padding-bottom: 48px; }
.page-narrow { max-width: 860px; }
.breadcrumb { font-size: 12px; color: var(--muted); margin-bottom: 18px; display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb [aria-current] { color: var(--primary); font-weight: 600; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.page-header { margin-bottom: 28px; padding-bottom: 22px; border-bottom: 1px solid var(--border); }
.page-header h1 { font-size: clamp(28px, 4vw, 42px); line-height: 1.15; color: var(--primary); margin: 8px 0 8px; font-weight: 700; letter-spacing: -.01em; }
.page-header p { margin: 0; color: var(--muted); font-size: 16px; max-width: 640px; }
.empty { color: var(--muted); padding: 24px 0; }
.small { font-size: 11px; margin-top: 12px; }

.lead-card { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); margin-bottom: 18px; }
.lead-card .thumb { border-radius: 0; height: 100%; aspect-ratio: auto; min-height: 240px; }
.lead-card .body { padding: 24px 24px 24px 0; display: flex; flex-direction: column; justify-content: center; }
.lead-card h2 { font-size: 24px; line-height: 1.25; color: var(--primary); margin: 10px 0; }
.lead-card p { color: var(--muted); font-size: 14px; margin: 0 0 12px; }
.lead-card:hover h2 { color: var(--accent); }

/* Artigo */
.article { min-width: 0; }
.article h1 { font-size: clamp(28px, 4vw, 42px); line-height: 1.15; color: var(--primary); margin: 12px 0 14px; font-weight: 700; letter-spacing: -.01em; }
.article-summary { font-size: 18px; color: var(--muted); margin: 0 0 22px; line-height: 1.5; }
.article-meta { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 14px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); margin-bottom: 24px; }
.byline { display: flex; gap: 10px; align-items: center; }
.byline strong { display: block; font-size: 14px; color: var(--primary); }
.byline small { font-size: 12px; color: var(--muted); }
.share { display: flex; gap: 6px; }
.share a, .share button { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface); display: grid; place-items: center; color: var(--primary); }
.share a:hover, .share button:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.share svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.article-img { margin-bottom: 28px; }
.prose { font-size: 17px; line-height: 1.75; color: #1d2a48; }
.prose p { margin: 0 0 20px; }
.prose h2 { font-size: 22px; color: var(--primary); margin: 32px 0 12px; line-height: 1.3; }
.prose ul { padding-left: 20px; margin: 0 0 20px; }
.prose li { margin-bottom: 8px; }
.prose a, .card p a { color: var(--accent); text-decoration: underline; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0; }
.tags a { font-size: 12px; padding: 6px 12px; border-radius: 999px; background: var(--soft); color: var(--primary); font-weight: 600; }
.tags a:hover { background: var(--primary); color: #fff; }
.author-box { display: flex; gap: 16px; padding: 22px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 40px; }
.author-box strong { display: block; color: var(--primary); }
.author-box .muted { font-size: 12px; }
.author-box p { font-size: 14px; color: var(--muted); margin: 8px 0; }
.featured-grid.three { grid-template-columns: repeat(3, 1fr); }
.featured-grid.three h3 { font-size: 14px; }

/* Avatares */
.avatar.sm { width: 36px; height: 36px; font-size: 12px; }
.avatar.lg { width: 64px; height: 64px; font-size: 20px; }
.avatar.xl { width: 96px; height: 96px; font-size: 30px; }

/* Pessoas */
.people-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.person-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px 20px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; transition: transform .18s; }
.person-card:hover { transform: translateY(-3px); }
.person-card strong { color: var(--primary); margin-top: 8px; }
.person-card .muted { font-size: 12px; }
.person-card p { font-size: 13px; color: var(--muted); margin: 6px 0 0; }
.profile-head { display: flex; gap: 24px; align-items: center; margin-bottom: 32px; padding-bottom: 28px; border-bottom: 1px solid var(--border); }
.profile-head h1 { margin: 6px 0; color: var(--primary); font-size: clamp(26px, 4vw, 36px); }
.profile-head p { margin: 0; color: var(--muted); max-width: 640px; }

/* Busca */
.search-overlay { position: fixed; inset: 0; z-index: 120; background: rgba(11,31,77,.55); backdrop-filter: blur(6px); padding: 90px 16px 16px; display: flex; flex-direction: column; align-items: center; }
.search-overlay[hidden] { display: none; }
.search-box { width: min(680px, 100%); display: flex; align-items: center; gap: 12px; background: #fff; border-radius: 16px; padding: 8px 10px 8px 18px; box-shadow: 0 24px 60px rgba(11,31,77,.3); }
.search-box > svg { width: 22px; height: 22px; fill: none; stroke: var(--muted); stroke-width: 2; flex: none; }
.search-box input { border: 0; background: none; font-size: 17px; padding: 12px 0; }
.search-box input:focus { background: none; }
.modal-close.static { position: static; }
.search-suggest { width: min(680px, 100%); margin-top: 10px; background: #fff; border-radius: 16px; overflow: hidden; }
.search-suggest:empty { display: none; }
.search-suggest a { display: block; padding: 14px 18px; border-bottom: 1px solid var(--border); color: var(--primary); font-weight: 600; font-size: 14px; }
.search-suggest a .kicker { display: flex; margin-bottom: 4px; }
.search-suggest a:hover { background: var(--soft); }
.search-suggest p { padding: 14px 18px; margin: 0; font-size: 13px; }
.search-inline { display: flex; gap: 10px; margin-bottom: 28px; max-width: 640px; }
input[type=search], input[type=tel], textarea, select { width: 100%; padding: 11px 14px; border: 1px solid var(--border); border-radius: 10px; background: var(--soft); font: inherit; font-size: 14px; color: var(--text); outline: none; }
textarea { resize: vertical; }

/* Institucional */
.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 28px; }
.info-grid h3 { margin: 0 0 8px; font-size: 15px; color: var(--primary); }
.info-grid .card p { margin: 0; }
.card.stat strong { display: block; color: var(--primary); font-size: 16px; margin-bottom: 6px; }
.contact-form { display: flex; flex-direction: column; gap: 14px; }
.contact-form label { display: flex; flex-direction: column; gap: 6px; font-size: 12px; font-weight: 600; color: var(--primary); }
.contact-form .btn { align-self: flex-start; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.card.narrow { max-width: 460px; }
.card.center { text-align: center; }
.card.center .badge-icon.big { background: #fde8ea; color: var(--accent); }
.impostometro.big .imp-cell { width: 44px; height: 62px; font-size: 32px; }

.not-found { text-align: center; padding: 60px 0 80px; }
.not-found .big-num { font-size: 96px; font-weight: 800; color: var(--accent); line-height: 1; }
.not-found h1 { color: var(--primary); margin: 10px 0; }
.not-found p { margin: 0 0 24px; }

.to-top { position: fixed; right: 18px; bottom: 18px; z-index: 40; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--primary); color: #fff; display: grid; place-items: center; box-shadow: var(--shadow); opacity: 0; pointer-events: none; transform: translateY(10px); transition: .2s; }
.to-top.show { opacity: 1; pointer-events: auto; transform: none; }
.to-top svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; }
.q-date { font-weight: 400; font-size: 10px; }

/* ---------- Responsivo ---------- */
@media (max-width: 1180px) {
  .main-nav { gap: 18px; }
}
@media (max-width: 1024px) {
  .hero-grid, .content-grid { grid-template-columns: 1fr; }
  .hero-side { display: grid; grid-template-columns: 1fr 1fr; align-items: start; }
  .hero-side .side-list { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
  .hero-side .side-list .kicker-title { grid-column: 1 / -1; }
  .content-side { display: grid; grid-template-columns: 1fr 1fr; align-items: start; }
  .columnist-grid { grid-template-columns: repeat(2, 1fr); }
  .ad-skyline { display: none; }
  .info-grid { grid-template-columns: 1fr 1fr; }
}
/* Menu vira gaveta abaixo de 980px (são 7 itens) */
@media (max-width: 980px) {
  .main-nav {
    /* o header tem backdrop-filter, então "fixed" aqui é relativo ao header: altura explícita */
    position: fixed; top: 70px; left: 0; right: 0; height: calc(100vh - 70px); height: calc(100dvh - 70px); z-index: 60;
    border-top: 1px solid var(--border);
    background: #fff; flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px 16px 32px; overflow-y: auto; margin: 0;
    transform: translateX(100%); transition: transform .25s ease; visibility: hidden;
  }
  .main-nav.open { transform: none; visibility: visible; }
  .main-nav a, .dropdown-btn { padding: 16px 4px; border-bottom: 1px solid var(--border); font-size: 16px; width: 100%; justify-content: space-between; }
  .main-nav a.active, .dropdown-btn.active { box-shadow: inset 3px 0 0 var(--accent); padding-left: 12px; }
  .dropdown-menu { position: static; opacity: 1; pointer-events: auto; transform: none; box-shadow: none; border: 0; display: none; padding: 4px 0 8px 12px; min-width: 0; }
  .dropdown.open .dropdown-menu { display: block; }
  .dropdown.open .dropdown-btn svg { transform: rotate(180deg); }
  .header-actions { margin-left: auto; }
  .menu-toggle { display: grid; }
}
@media (max-width: 760px) {
  main { padding-top: 20px; }
  .hero-grid, .content-grid { gap: 24px; margin-bottom: 32px; }
  .hero-side, .content-side { display: flex; }
  .hero-side .side-list { display: block; }
  .hero .summary { font-size: 15px; }
  .section-title.plain { margin-top: 28px; }
  .featured-grid, .featured-grid.three, .columnist-grid, .info-grid, .form-row { grid-template-columns: 1fr; }
  .list-item { grid-template-columns: 96px 1fr; gap: 12px; }
  .list-item h3 { font-size: 14px; }
  .lead-card { grid-template-columns: 1fr; gap: 0; }
  .lead-card .thumb { min-height: 0; aspect-ratio: 16/9; }
  .lead-card .body { padding: 18px; }
  .lead-card h2 { font-size: 20px; }
  .impostometro { padding: 22px 12px 18px; }
  .imp-cell, .impostometro.big .imp-cell { width: 24px; height: 36px; font-size: 18px; border-radius: 5px; }
  .imp-group .cells { gap: 3px; }
  .imp-digits { gap: 10px 8px; }
  .imp-sep { display: none; }
  .ad-banner { padding: 24px; }
  .ad-brand .logo-text { font-size: 16px; }
  .ad-cta { position: static; display: inline-block; transform: none; margin-top: 16px; }
  .newsletter-strip { flex-direction: column; align-items: stretch; padding: 32px 0 40px; }
  .newsletter-strip h2 { font-size: 19px; }
  .newsletter-strip h2 br { display: none; }
  .inline-form.row { min-width: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; }
  .article-summary { font-size: 16px; }
  .prose { font-size: 16px; }
  .author-box { flex-direction: column; }
  .profile-head { flex-direction: column; text-align: center; }
  .profile-head p { margin-inline: auto; }
  .search-overlay { padding-top: 76px; }
  .page-header p { font-size: 15px; }
}
@media (max-width: 420px) {
  .hide-sm { display: none; }
  .header-inner { gap: 12px; }
  .inline-form.row { flex-direction: column; }
  .inline-form.row .btn { align-self: stretch; }
  .imp-cell, .impostometro.big .imp-cell { width: 21px; height: 32px; font-size: 16px; }
  .search-inline { flex-direction: column; }
  .article-meta { flex-direction: column; align-items: flex-start; }
}

/* ---------- Espaços publicitários ---------- */
.ad-slot:empty { display: none; }
.ad-slot.has-ad { position: relative; text-align: center; }
.ad-slot.has-ad .ad-label { position: static; display: inline-block; margin-bottom: 6px; background: none; color: #98a3bd; padding: 0; font-size: 9px; }
.ad-slot.has-ad img { display: block; width: 100%; height: auto; border-radius: 12px; }
.ad-slot.has-ad picture { display: block; }
.ad-slot-home-banner.has-ad { margin-bottom: 32px; }
.ad-slot-home-banner.has-ad img { max-height: 220px; object-fit: cover; }
.ad-code { display: flex; justify-content: center; overflow: hidden; max-width: 100%; }
.ad-slot-article-inline { margin: 8px 0 28px; }
.ad-slot-article-inline.has-ad { padding: 12px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
a.ad-box:hover { border-color: var(--primary); color: var(--primary); }
.ad-strip { position: relative; display: block; padding: 18px 16px 14px; border: 1px dashed #c6cfe2; border-radius: 12px; text-align: center; font-size: 13px; font-weight: 600; color: var(--primary); }
.ad-strip .ad-label { top: 6px; right: 8px; }
.ad-strip:hover { border-color: var(--primary); background: #fff; }

/* =====================================================================
   IDENTIDADE VISUAL (logo Economia Paulista)
   ===================================================================== */
.logo { flex: none; }
.logo-img { display: block; height: 42px; width: auto; }
.site-header .header-inner { height: 70px; }

/* Rodapé */
.footer-logo img { display: block; height: 52px; width: auto; }
.site-footer { position: relative; overflow: hidden; }
.site-footer::before {
  content: ""; position: absolute; right: -60px; top: 20px; width: 420px; aspect-ratio: 800/568;
  background: url("/assets/brand/mapa-branco.png") center/contain no-repeat; opacity: .05; pointer-events: none;
}
.footer-grid, .footer-bottom { position: relative; }

/* "Λ" vermelho da marca como detalhe gráfico nos títulos de seção */
.kicker-title::before {
  width: 10px; height: 9px; border-radius: 0; background: var(--accent);
  clip-path: polygon(50% 0, 100% 100%, 76% 100%, 50% 45%, 24% 100%, 0 100%);
}

/* Banner da casa ("Anuncie aqui") */
.ad-logo { height: 46px; width: auto; display: block; }
.ad-map { position: absolute; right: 150px; top: 50%; transform: translateY(-50%); height: 150%; width: auto; opacity: .09; pointer-events: none; }
.ad-skyline { display: none; }

/* Impostômetro com o mapa pontilhado ao fundo */
.impostometro { isolation: isolate; }
.impostometro::before {
  content: ""; position: absolute; z-index: -1; left: 50%; top: 50%; width: min(520px, 90%); aspect-ratio: 800/568;
  transform: translate(-50%, -50%); background: url("/assets/brand/mapa-branco.png") center/contain no-repeat; opacity: .06;
}
.impostometro::after { background: var(--accent); height: 3px; }

/* Placeholder das matérias sem foto: mapa pontilhado + ícone da editoria */
.thumb .thumb-map { position: absolute; inset: 10% 8%; background: url("/assets/brand/mapa-branco.png") center/contain no-repeat; opacity: .14; }
.thumb .thumb-icon { inset: auto 12px 10px auto; width: 34px; height: 34px; color: rgba(255,255,255,.55); }
.thumb .thumb-icon svg { width: 100%; max-width: none; stroke-width: 1.8; }

/* Popup de newsletter e 404 */
.modal-map { display: block; width: 92px; height: auto; margin: 0 auto 14px; }
.nf-map { display: block; width: min(260px, 70%); height: auto; margin: 0 auto 12px; opacity: .9; }

@media (max-width: 760px) {
  .logo-img { height: 34px; }
  .site-header .header-inner { height: 60px; }
  .main-nav { top: 60px; height: calc(100vh - 60px); height: calc(100dvh - 60px); }
  .ad-logo { height: 34px; }
  .ad-map { right: -40px; height: 120%; }
  .footer-logo img { height: 44px; }
}
@media (max-width: 420px) {
  .logo-img { height: 30px; }
}
/* links de editorias do rodapé ficam dentro de #footerCats (gerado pelo app.js) */
#footerCats a { display: block; font-size: 13px; padding: 4px 0; }

/* =====================================================================
   MENU MOBILE/TABLET — painel fixo na tela, abre em qualquer ponto da página
   (sem backdrop-filter no cabeçalho, o "position: fixed" do menu passa a ser
   relativo à tela e não ao cabeçalho)
   ===================================================================== */
:root { --hdr-h: 70px; }
@media (max-width: 980px) {
  .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: #fff; }
  .main-nav {
    position: fixed; top: var(--hdr-h); right: 0; left: auto; bottom: 0;
    width: min(380px, 100%); height: auto; max-height: none;
    border-top: 1px solid var(--border); box-shadow: -12px 0 40px rgba(15,31,50,.18);
    overscroll-behavior: contain;
  }
  /* fundo escurecido atrás do menu */
  body::after {
    content: ""; position: fixed; inset: var(--hdr-h) 0 0 0; z-index: 49;
    background: rgba(15,31,50,.45); opacity: 0; pointer-events: none; transition: opacity .25s;
  }
  html.menu-open body::after { opacity: 1; pointer-events: auto; touch-action: none; }
}
@media (max-width: 760px) {
  :root { --hdr-h: 60px; }
  .main-nav { top: var(--hdr-h); height: auto; width: 100%; }
}

/* Cotações do Agro (Cepea) */
.agro-card .source { margin-top: 12px; line-height: 1.5; }
.agro-card .source a { color: var(--primary); text-decoration: underline; }
.quote:last-of-type { margin-bottom: 0; }
.q-chg { min-width: 92px; }

/* Avatar da Redação: mapa pontilhado da marca num círculo branco */
.avatar.brand-avatar { background: #fff; border: 1px solid var(--border); padding: 0; overflow: hidden; }
/* o mapa ocupa 66% do círculo (padding em % seria calculado pela largura do container e esticaria o círculo) */
.avatar.brand-avatar img { display: block; width: 66%; height: 66%; object-fit: contain; }

/* Formulários: campo anti-robô (invisível para pessoas) e aviso de privacidade */
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.consent { display: block; font-size: 11px; color: var(--muted); margin-top: 8px; line-height: 1.5; }
.consent a { color: var(--primary); text-decoration: underline; }
.newsletter-strip .consent { margin-top: 6px; }
.contact-card { margin-bottom: 20px; }
.contact-card h3 { margin: 0 0 6px; color: var(--primary); }
.contact-card p { margin: 0 0 6px; }
.contact-card a { color: var(--accent); font-weight: 600; }
button:disabled { opacity: .65; cursor: progress; }

/* Conteúdo patrocinado */
.sp-tag { display: inline-block; margin-left: 8px; padding: 2px 8px; border-radius: 999px; background: #fff4d6; color: #8a5a00; font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; vertical-align: middle; }
.kicker + .sp-tag { margin-left: 8px; }
.body > .sp-tag:first-child, .side-item .body .sp-tag, .list-item .sp-tag:first-child { margin-left: 0; }
.list-item .sp-tag { margin-bottom: 4px; }
.sponsor-seal { display: inline-flex; align-items: center; gap: 6px; margin: 10px 0 0; padding: 6px 12px; border-radius: 8px; background: #fff4d6; color: #8a5a00; font-size: 12px; font-weight: 600; }
.sponsor-seal::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #e0a100; }
.sponsor-seal a, .sponsor-box a { color: inherit; text-decoration: underline; }
.sponsor-box { margin: 8px 0 24px; padding: 16px 18px; border-radius: 12px; border: 1px solid #f0d58a; background: #fffbef; }
.sponsor-box p { margin: 8px 0 0; font-size: 14px; color: #5c4300; line-height: 1.55; }
