/* ══════════════════════════════════════════════════════════
   Correio Jundiaí — stylesheet principal
   Fonte da verdade: os protótipos HTML em /correio-jundiai-*.html
   ══════════════════════════════════════════════════════════ */

/* ── Reset & Tokens ──────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green:       #155228;
  --green-dark:  #0d3a1c;
  --green-mid:   #1e6b35;
  --amber:       #F5A800;
  --amber-dark:  #d48f00;
  --cream:       #F5F0E8;

  --ink:         #1a1a1a;
  --ink-mid:     #3a3a3a;
  --ink-light:   #767676;
  --border:      #d8d8d4;
  --bg:          #f4f3ef;
  --surface:     #ffffff;
  --section-bg:  #eeecea;

  --font-serif:  'Playfair Display', Georgia, serif;
  --font-sans:   'Inter', system-ui, sans-serif;
  --font-logo:   'Nunito', 'Inter', system-ui, sans-serif;

  --max-w:       1240px;
  --gap:         20px;
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.5;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--green); }
img { display: block; width: 100%; height: auto; object-fit: cover; }
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 16px; }

/* ── Acessibilidade ──────────────────────────────────────── */
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* ── Tags / Labels ───────────────────────────────────────── */
.tag {
  display: inline-block;
  font-size: 10px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--green);
  border-left: 3px solid var(--amber);
  padding-left: 6px; margin-bottom: 6px;
}
.tag.policial { color: #8b1a1a; border-color: #c0392b; }
.tag.esporte  { color: var(--amber-dark); border-color: var(--amber); }

/* ── Section Headers ─────────────────────────────────────── */
.section-header {
  display: flex; align-items: center; gap: 12px;
  border-top: 3px solid var(--green);
  padding-top: 10px; margin-bottom: 18px;
}
.section-header h2 {
  font-size: 13px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--green); white-space: nowrap;
}
.section-header h2 a { color: inherit; }
.section-header .line { flex: 1; height: 1px; background: var(--border); }
.section-header .see-all {
  font-size: 11px; font-weight: 600;
  color: var(--ink-light); text-transform: uppercase; letter-spacing: .06em;
}
.section-header .see-all:hover { color: var(--green); }
.section-header.amber-bar { border-top-color: var(--amber); }
.section-header.amber-bar h2 { color: var(--amber-dark); }

/* ── Masthead ────────────────────────────────────────────── */
.masthead {
  background: var(--surface);
  border-bottom: 3px solid var(--green);
  padding: 12px 0;
}
.masthead-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center; gap: 16px;
}
.masthead-meta { font-size: 11px; color: var(--ink-light); line-height: 1.6; }
.masthead-meta strong { color: var(--ink); font-weight: 600; }

.site-logo-link {
  display: flex; align-items: center; gap: 11px;
  text-decoration: none;
}
.site-wordmark {
  font-family: var(--font-logo);
  font-weight: 900; font-size: 24px;
  color: var(--green); line-height: .92;
  text-transform: uppercase; letter-spacing: -.5px;
}
.site-wordmark span { display: block; }
.site-wordmark--footer { font-size: 16px; color: var(--cream); }

.masthead-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.btn-assine {
  background: var(--amber); color: var(--green-dark);
  font-size: 11px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
  padding: 8px 18px; border-radius: 3px;
}
.btn-assine:hover { background: var(--amber-dark); color: var(--green-dark); }

.search-toggle, .nav-hamburger {
  background: none; border: 1px solid var(--border);
  border-radius: 3px; cursor: pointer; color: var(--ink-mid);
}
.search-toggle {
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
}
.search-toggle:hover { border-color: var(--green); color: var(--green); }

.search-drawer { padding: 10px 0; }
.search-drawer .search-form { display: flex; gap: 8px; }
.search-drawer input[type="search"] {
  flex: 1; padding: 9px 14px;
  border: 1px solid var(--border); border-radius: 3px;
  font-size: 14px; outline: none;
}
.search-drawer input[type="search"]:focus { border-color: var(--green); }
.search-drawer button {
  background: var(--green); color: #fff;
  border: none; padding: 9px 18px;
  border-radius: 3px; cursor: pointer; font-size: 13px; font-weight: 600;
}

/* ── Nav Principal ───────────────────────────────────────── */
.primary-nav {
  background: var(--green);
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
}
.primary-nav.is-scrolled { box-shadow: 0 4px 16px rgba(0,0,0,.35); }

.nav-menu {
  display: flex; list-style: none; align-items: center;
  flex-wrap: wrap;
}
.nav-menu li a {
  display: block;
  font-size: 12px; font-weight: 600;
  letter-spacing: .07em; text-transform: uppercase;
  color: rgba(245,240,232,.85);
  padding: 13px 15px;
  transition: color .15s, background .15s;
  white-space: nowrap;
}
.nav-menu li a:hover { color: var(--cream); background: rgba(255,255,255,.1); }
.nav-menu li.current-menu-item > a,
.nav-menu li.current-cat > a { color: var(--amber); border-bottom: 2px solid var(--amber); }
.nav-menu li:first-child a { padding-left: 0; }

.nav-social { display: flex; gap: 6px; align-items: center; margin-left: auto; }
.social-btn {
  font-size: 10px; font-weight: 700;
  color: rgba(245,240,232,.7);
  padding: 5px 9px;
  border: 1px solid rgba(245,240,232,.25); border-radius: 2px;
  letter-spacing: .05em; white-space: nowrap;
}
.social-btn:hover { color: var(--amber); border-color: var(--amber); }

/* Hambúrguer — mobile only */
.nav-hamburger {
  display: none;
  width: 36px; height: 36px;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  padding: 8px;
}
.nav-hamburger span {
  display: block; width: 18px; height: 2px;
  background: var(--cream); border-radius: 2px;
  transition: transform .2s, opacity .2s;
}
.nav-hamburger.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.is-active span:nth-child(2) { opacity: 0; }
.nav-hamburger.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.amber-stripe { height: 3px; background: var(--amber); }

/* ── Breaking Ticker ─────────────────────────────────────── */
.breaking-ticker {
  background: var(--green-dark);
  overflow: hidden; height: 34px;
  display: flex; align-items: center;
  border-bottom: 2px solid var(--amber);
}
.ticker-label {
  flex-shrink: 0; background: var(--amber);
  color: var(--green-dark);
  font-size: 10px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  padding: 0 14px; height: 100%;
  display: flex; align-items: center; white-space: nowrap;
}
.ticker-track { flex: 1; overflow: hidden; }
.ticker-content {
  display: flex; gap: 60px;
  animation: ticker 32s linear infinite;
  white-space: nowrap;
}
.ticker-content a { font-size: 12px; font-weight: 500; color: rgba(245,240,232,.9); }
.ticker-content a:hover { color: var(--amber); }
.ticker-sep { color: var(--amber); opacity: .5; }
@keyframes ticker {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── Ad Slots ────────────────────────────────────────────── */
.ad-leaderboard, .ad-fullwidth {
  background: var(--surface); border-bottom: 1px solid var(--border); padding: 8px 0;
}
.ad-slot {
  background: #ece9e3; border: 1px dashed #c8c4bc;
  display: flex; align-items: center; justify-content: center;
  color: #bbb; font-size: 10px; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase; border-radius: 2px;
}
.ad-728 { width: 728px; height: 90px; margin: 0 auto; }
.ad-300, .ad-300x250 { width: 300px; height: 250px; }
.ad-banner-full { height: 90px; }
.ad-300x600 { width: 300px; height: 600px; }

/* ── Post meta genérico ──────────────────────────────────── */
.post-meta {
  display: flex; align-items: center; flex-wrap: wrap; gap: 6px;
  font-size: 12px; color: var(--ink-light);
}
.post-meta .author-link { font-weight: 600; color: var(--ink-mid); }
.post-meta .author-link:hover { color: var(--green); }
.post-meta .sep { color: var(--border); }
.timestamp { font-size: 11px; color: var(--ink-light); }

/* ── Hero Section ────────────────────────────────────────── */
.hero-section {
  background: var(--surface);
  padding: 24px 0 0;
  border-bottom: 2px solid var(--green);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: var(--gap); align-items: start;
}
.hero-main { border-right: 1px solid var(--border); padding-right: var(--gap); }

/* Hero overlay — título sobre a imagem */
.hero-img-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  line-height: 0;
}
.hero-thumb-link { display: block; line-height: 0; }
.hero-img-wrap img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  display: block;
  transition: transform .45s ease;
}
.hero-main:hover .hero-img-wrap img { transform: scale(1.03); }
.hero-placeholder { width: 100%; height: 380px; background: var(--surface-alt); }
.hero-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 52px 22px 18px;
  background: linear-gradient(to top, rgba(0,0,0,.9) 0%, rgba(0,0,0,.55) 55%, transparent 100%);
}
.hero-caption > a { display: block; text-decoration: none; }
.hero-caption .tag {
  color: var(--amber);
  border-color: var(--amber);
  margin-bottom: 7px;
  display: inline-block;
}
.hero-caption .headline {
  color: #fff;
  font-size: clamp(18px, 2vw, 25px);
  margin-bottom: 8px;
  text-shadow: 0 1px 4px rgba(0,0,0,.6);
  line-height: 1.2;
}
.hero-caption .headline a { color: inherit; }
.hero-caption .headline a:hover { color: var(--amber); }
.hero-caption .byline {
  color: rgba(255,255,255,.7);
  font-size: 12px;
}
.hero-caption .byline strong { color: rgba(255,255,255,.85); }

/* Sub-cards com foto abaixo da manchete — 3 colunas */
.hero-sub-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.hero-sub-card {
  display: block;
  text-decoration: none;
  color: var(--ink);
}
.hero-sub-card:hover h3 { color: var(--green); }
.hero-sub-card .img-wrap {
  aspect-ratio: 3/2;
  margin-bottom: 8px;
  overflow: hidden;
  border-radius: 3px;
}
.hero-sub-card .img-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-sub-card .tag { font-size: 10px; margin-bottom: 4px; }
.hero-sub-card h3 {
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 4px;
}
.hero-sub-card time { font-size: 11px; color: var(--ink-light); }

/* Rapidinhas */
.rapidinhas-bar {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 3px solid var(--green);
  padding: 16px 0;
}
.rapidinhas-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.rapida-item {
  display: flex;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  align-items: flex-start;
}
.rapida-item:hover h3 { color: var(--green); }
.rapida-img {
  width: 80px;
  flex-shrink: 0;
  aspect-ratio: 3/2;
  overflow: hidden;
  border-radius: 3px;
}
.rapida-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rapida-content { flex: 1; min-width: 0; }
.rapida-content .tag { font-size: 10px; margin-bottom: 3px; display: inline-block; }
.rapida-content h3 {
  font-family: var(--font-serif);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 4px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.rapida-content time { font-size: 11px; color: var(--ink-light); }

.headline {
  font-family: var(--font-serif);
  font-size: 32px; font-weight: 700;
  line-height: 1.18; letter-spacing: -.3px;
  margin-bottom: 10px;
}
.headline a:hover { color: var(--green); }
.deck { font-size: 16px; color: var(--ink-mid); line-height: 1.55; margin-bottom: 10px; }
.byline { font-size: 12px; color: var(--ink-light); }
.byline strong { color: var(--ink-mid); font-weight: 600; }

.hero-sidebar { display: flex; flex-direction: column; }
.side-story { padding: 14px 0; border-bottom: 1px solid var(--border); }
.side-story:first-child { padding-top: 0; }
.side-story:last-child { border-bottom: none; }
.side-story .img-wrap { aspect-ratio: 16/9; margin-bottom: 8px; overflow: hidden; }
.side-story h3 {
  font-family: var(--font-serif);
  font-size: 17px; font-weight: 700; line-height: 1.3; margin-bottom: 6px;
}
.side-story h3 a:hover { color: var(--green); }
.side-story p { font-size: 13px; color: var(--ink-mid); line-height: 1.5; }

/* ── Cards ───────────────────────────────────────────────── */
.card { position: relative; }
.card-img-link { display: block; }
.img-wrap { overflow: hidden; margin-bottom: 10px; }
.img-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s ease; }
.card:hover .img-wrap img { transform: scale(1.03); }
.card--medium .img-wrap { aspect-ratio: 3/2; }
.card--small  .img-wrap { aspect-ratio: 4/3; }
.card--large  .img-wrap { aspect-ratio: 16/9; }

.card-title {
  font-family: var(--font-serif);
  font-weight: 700; line-height: 1.3; margin-bottom: 6px;
}
.card-title a:hover { color: var(--green); }
.card--medium .card-title, .card--small .card-title { font-size: 17px; }
.card--large  .card-title { font-size: 24px; }

.card-excerpt { font-size: 13px; color: var(--ink-mid); line-height: 1.5; margin-bottom: 6px; }

/* ── Grids ───────────────────────────────────────────────── */
.tier-section { background: var(--surface); padding: 24px 0; border-bottom: 1px solid var(--border); }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: var(--gap); }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: var(--gap); }
.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: var(--gap); }
.grid-4 .card + .card,
.grid-3 .card + .card { border-left: 1px solid var(--border); padding-left: var(--gap); }

/* Destaques — 1 card com foto + lista compacta */
.destaques-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: calc(var(--gap) * 2);
  align-items: start;
}
.destaques-grid > .card { border-right: 1px solid var(--border); padding-right: calc(var(--gap) * 2); }

/* ── Seção mista ─────────────────────────────────────────── */
.mixed-section { padding: 24px 0; background: var(--section-bg); border-bottom: 1px solid var(--border); }
.mixed-grid {
  display: grid;
  grid-template-columns: 2fr 1px 1fr 1px 1fr;
  gap: var(--gap); align-items: start;
}
.mixed-grid .divider { background: var(--border); align-self: stretch; }
.featured-card .img-wrap { aspect-ratio: 16/9; margin-bottom: 12px; }
.featured-card h3 {
  font-family: var(--font-serif);
  font-size: 22px; font-weight: 700; line-height: 1.25; margin-bottom: 8px;
}
.featured-card h3 a:hover { color: var(--green); }
.featured-card p { font-size: 14px; color: var(--ink-mid); line-height: 1.55; }

.compact-list { list-style: none; }
.compact-list li { padding: 11px 0; border-bottom: 1px solid var(--border); }
.compact-list li:first-child { padding-top: 0; }
.compact-list li:last-child { border-bottom: none; }
.compact-list li a {
  font-family: var(--font-serif);
  font-size: 15px; font-weight: 600; line-height: 1.35;
  display: block; margin-bottom: 4px;
}
.compact-list li a:hover { color: var(--green); }
.compact-list .meta { font-size: 11px; color: var(--ink-light); }

/* ── Duas colunas ────────────────────────────────────────── */
.two-col-sections { padding: 24px 0; background: var(--surface); border-bottom: 1px solid var(--border); }
.two-col-sections .inner { display: grid; grid-template-columns: 1fr 1px 1fr; gap: var(--gap); }
.two-col-sections .divider { background: var(--border); }

/* ── Últimas ─────────────────────────────────────────────── */
.ultimas-section { padding: 24px 0; background: var(--surface); border-bottom: 1px solid var(--border); }
.ultimas-grid { display: grid; grid-template-columns: repeat(5,1fr); gap: var(--gap); }
.ultimas-grid .card-title { font-size: 15px; }
.ultimas-grid .img-wrap { aspect-ratio: 1/1; }

/* ── Newsletter ──────────────────────────────────────────── */
.newsletter-strip { background: var(--green); color: #fff; padding: 32px 0; }
.newsletter-inner { display: flex; align-items: center; gap: 32px; }
.newsletter-icon {
  flex-shrink: 0; width: 48px; height: 48px;
  background: var(--amber); border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
}
.newsletter-text h2 { font-family: var(--font-serif); font-size: 22px; font-weight: 700; color: var(--cream); margin-bottom: 4px; }
.newsletter-text p  { font-size: 13px; color: rgba(245,240,232,.65); }
.newsletter-form { display: flex; gap: 8px; flex: 1; max-width: 480px; }
.newsletter-form input {
  flex: 1; background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  color: #fff; padding: 10px 14px; font-size: 14px;
  font-family: var(--font-sans); border-radius: 3px; outline: none;
}
.newsletter-form input::placeholder { color: rgba(255,255,255,.4); }
.newsletter-form input:focus { border-color: var(--amber); }
.newsletter-form button {
  background: var(--amber); color: var(--green-dark);
  border: none; padding: 10px 22px; font-size: 12px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; border-radius: 3px; cursor: pointer;
}
.newsletter-form button:hover { background: var(--amber-dark); }

/* ── Footer ──────────────────────────────────────────────── */
.site-footer { background: var(--green-dark); color: rgba(245,240,232,.6); padding: 40px 0 20px; }
.footer-grid {
  display: grid;
  grid-template-columns: 200px repeat(5,1fr);
  gap: 32px; padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,.1);
  margin-bottom: 20px;
}
.footer-brand p { font-size: 12px; line-height: 1.6; margin: 12px 0 14px; }
.footer-social { display: flex; gap: 8px; }
.footer-social a {
  width: 32px; height: 32px; background: rgba(255,255,255,.08);
  border-radius: 3px;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 700; color: rgba(245,240,232,.6);
}
.footer-social a:hover { background: var(--amber); color: var(--green-dark); }
.footer-col h3 {
  font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--cream); margin-bottom: 14px; padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 7px; }
.footer-col ul li a { font-size: 12px; color: rgba(245,240,232,.55); }
.footer-col ul li a:hover { color: var(--amber); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; font-size: 11px; }

/* ── Breadcrumb ──────────────────────────────────────────── */
.breadcrumb { background: var(--surface); border-bottom: 1px solid var(--border); padding: 10px 0; }
.breadcrumb-list {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--ink-light); list-style: none;
  flex-wrap: wrap;
}
.breadcrumb-list a { color: var(--green); font-weight: 500; }
.breadcrumb-list a:hover { text-decoration: underline; }
.breadcrumb-list .sep { color: var(--border); }
.breadcrumb-list .current { color: var(--ink-mid); }

/* ── Artigo Layout ───────────────────────────────────────── */
.article-layout { padding: 32px 0 48px; }
.article-inner { display: grid; grid-template-columns: 1fr 300px; gap: 40px; align-items: start; }

.article-header { margin-bottom: 24px; }
.article-headline {
  font-family: var(--font-serif);
  font-size: 36px; font-weight: 700;
  line-height: 1.18; letter-spacing: -.4px;
  margin-bottom: 16px;
}
.article-deck {
  font-family: var(--font-serif); font-style: italic;
  font-size: 20px; font-weight: 400; line-height: 1.5;
  color: var(--ink-mid);
  border-left: 3px solid var(--amber);
  padding-left: 16px; margin-bottom: 20px;
}
.article-meta {
  display: flex; align-items: center; flex-wrap: wrap; gap: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}
.author { display: flex; align-items: center; gap: 10px; }
.author-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--green);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; color: var(--cream); flex-shrink: 0;
}
.author-info { line-height: 1.3; }
.author-name { font-size: 13px; font-weight: 600; color: var(--ink); display: block; }
.author-name:hover { color: var(--green); }
.author-role { font-size: 11px; color: var(--ink-light); }
.divider-v { width: 1px; height: 28px; background: var(--border); }
.article-date { font-size: 12px; color: var(--ink-light); line-height: 1.5; }
.article-date strong { display: block; color: var(--ink-mid); font-weight: 600; }

/* Share */
.share-bar { display: flex; gap: 8px; margin-left: auto; }
.share-btn {
  display: flex; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 700;
  padding: 6px 12px; border-radius: 3px;
  cursor: pointer; text-transform: uppercase; letter-spacing: .04em;
  border: none;
}
.share-btn.whatsapp { background: #25D366; color: #fff; }
.share-btn.whatsapp:hover { background: #1ebe5d; }
.share-btn.facebook  { background: #1877F2; color: #fff; }
.share-btn.facebook:hover { background: #0d65d9; }
.share-btn.copy { background: transparent; border: 1px solid var(--border); color: var(--ink-mid); }
.share-btn.copy:hover { border-color: var(--green); color: var(--green); }

/* Imagem do artigo */
.article-hero-img { margin-bottom: 8px; overflow: hidden; }
.article-hero-img img { width: 100%; }
.img-caption { font-size: 12px; color: var(--ink-light); line-height: 1.5; padding: 8px 0 20px; border-bottom: 1px solid var(--border); margin-bottom: 28px; }
.img-caption strong { color: var(--ink-mid); font-weight: 600; }

/* Corpo do artigo */
.article-body {
  font-family: var(--font-serif); font-size: 19px;
  line-height: 1.75; color: var(--ink-mid);
}
.article-body p { margin-bottom: 24px; }
.article-body p:first-child::first-letter {
  font-size: 4em; font-weight: 700; float: left;
  line-height: .75; margin: 6px 10px 0 0;
  color: var(--green);
}
.article-body h2 {
  font-family: var(--font-serif); font-size: 24px; font-weight: 700;
  color: var(--ink); margin: 36px 0 16px;
  padding-top: 20px; border-top: 1px solid var(--border);
}
.article-body h3 {
  font-family: var(--font-sans); font-size: 15px; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase;
  color: var(--green); margin: 28px 0 12px;
}
.article-body a { color: var(--green); text-decoration: underline; }
.article-body blockquote {
  border-left: 4px solid var(--amber);
  background: var(--bg); padding: 20px 24px;
  margin: 32px 0; border-radius: 0 4px 4px 0;
  font-style: italic; font-size: 22px; line-height: 1.5;
}
.article-body ul, .article-body ol {
  padding-left: 24px; margin-bottom: 24px;
}
.article-body li { margin-bottom: 8px; }

/* Tags finais */
.article-tags { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 24px 0; border-top: 1px solid var(--border); margin-top: 8px; }
.article-tags > span { font-size: 12px; font-weight: 600; color: var(--ink-light); }
.tag-pill {
  display: inline-block; background: var(--bg);
  border: 1px solid var(--border);
  font-size: 12px; font-weight: 600; color: var(--ink-mid);
  padding: 4px 12px; border-radius: 20px;
}
.tag-pill:hover { border-color: var(--green); color: var(--green); background: var(--surface); }

.share-bottom {
  background: var(--bg); border: 1px solid var(--border); border-radius: 4px;
  padding: 20px 22px; display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 24px 0;
}
.share-bottom p { font-size: 14px; font-weight: 600; color: var(--ink-mid); }
.share-bottom .share-bar { margin-left: 0; }

.author-box {
  background: var(--surface); border: 1px solid var(--border);
  border-top: 3px solid var(--green); padding: 22px;
  border-radius: 0 0 4px 4px; display: flex; gap: 16px;
}
.author-box-avatar {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--green); display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 700; color: var(--cream); flex-shrink: 0;
}
.author-box-info h2 { font-size: 15px; font-weight: 700; margin-bottom: 3px; }
.author-box-info .role { font-size: 12px; color: var(--green); font-weight: 600; margin-bottom: 8px; }
.author-box-info p  { font-size: 13px; color: var(--ink-mid); line-height: 1.55; }

/* Relacionadas */
.related-section { margin-top: 40px; }
.related-header { border-top: 3px solid var(--green); padding-top: 10px; margin-bottom: 20px; }
.related-header h2 { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--green); }
.related-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.related-card .img-wrap { aspect-ratio: 3/2; margin-bottom: 10px; }
.related-card h3 { font-family: var(--font-serif); font-size: 16px; font-weight: 700; line-height: 1.3; margin-bottom: 6px; }
.related-card h3 a:hover { color: var(--green); }
.related-card + .related-card { border-left: 1px solid var(--border); padding-left: 20px; }

/* ── Sidebar ─────────────────────────────────────────────── */
.article-sidebar { position: sticky; top: 80px; }
.sidebar-header { border-top: 3px solid var(--green); padding-top: 10px; margin-bottom: 16px; }
.sidebar-header h3 { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--green); }
.sidebar-section { margin-top: 24px; }

.most-read-list { list-style: none; }
.most-read-list li { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--border); }
.most-read-list li:first-child { padding-top: 0; }
.most-read-list li:last-child { border-bottom: none; }
.read-num { font-family: var(--font-serif); font-size: 26px; font-weight: 700; color: #ddd; line-height: 1; flex-shrink: 0; width: 28px; }
.read-content h4 { font-family: var(--font-serif); font-size: 15px; font-weight: 600; line-height: 1.3; margin-bottom: 4px; }
.read-content h4 a:hover { color: var(--green); }
.read-content .meta { font-size: 11px; color: var(--ink-light); }

.sidebar-newsletter { background: var(--green); padding: 20px; border-radius: 4px; margin-top: 24px; }
.sidebar-newsletter h3 { font-family: var(--font-serif); font-size: 18px; font-weight: 700; color: var(--cream); margin-bottom: 6px; }
.sidebar-newsletter p { font-size: 12px; color: rgba(245,240,232,.6); margin-bottom: 14px; }
.sidebar-newsletter input {
  width: 100%; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2);
  color: #fff; padding: 9px 12px; font-size: 13px; font-family: var(--font-sans); border-radius: 3px; outline: none; margin-bottom: 8px;
}
.sidebar-newsletter input::placeholder { color: rgba(255,255,255,.35); }
.sidebar-newsletter input:focus { border-color: var(--amber); }
.sidebar-newsletter button {
  width: 100%; background: var(--amber); color: var(--green-dark);
  border: none; padding: 9px; font-size: 12px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; border-radius: 3px; cursor: pointer;
}
.sidebar-newsletter button:hover { background: var(--amber-dark); }

/* ── Archive ─────────────────────────────────────────────── */
.category-banner {
  background: var(--green); padding: 28px 0 0; position: relative; overflow: hidden;
}
.category-banner::before {
  content: ''; position: absolute; right: -60px; top: -60px;
  width: 320px; height: 320px; border-radius: 50%; background: rgba(245,168,0,.08);
}
.category-banner-inner { display: grid; grid-template-columns: auto 1fr; gap: 32px; align-items: end; position: relative; z-index: 1; }
.category-identity { padding-bottom: 28px; }
.category-label { font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--amber); margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.category-label::before { content: ''; display: inline-block; width: 20px; height: 2px; background: var(--amber); }
.category-name { font-family: var(--font-serif); font-size: 56px; font-weight: 900; color: var(--cream); line-height: 1; letter-spacing: -1px; margin-bottom: 12px; }
.category-desc { font-size: 14px; color: rgba(245,240,232,.65); line-height: 1.6; max-width: 360px; }

.banner-featured { border-left: 1px solid rgba(255,255,255,.12); padding-left: 32px; }
.banner-featured-img { display: block; aspect-ratio: 16/7; overflow: hidden; border-radius: 6px 6px 0 0; position: relative; }
.banner-featured-img img { height: 100%; transition: transform .4s; }
.banner-featured:hover .banner-featured-img img { transform: scale(1.03); }
.banner-featured-overlay {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,.75));
  padding: 40px 20px 20px;
}
.banner-featured-overlay .tag { color: var(--amber); border-color: var(--amber); }
.banner-featured-overlay h2 { font-family: var(--font-serif); font-size: 22px; font-weight: 700; color: #fff; line-height: 1.25; margin-top: 6px; }
.banner-featured-overlay h2 a:hover { color: var(--amber); }
.banner-featured-overlay .banner-deck { font-size: 13px; color: rgba(255,255,255,.8); line-height: 1.5; margin-top: 6px; }
.banner-featured-overlay .meta { font-size: 11px; color: rgba(255,255,255,.6); margin-top: 6px; }

.category-subnav { background: var(--surface); border-bottom: 1px solid var(--border); }
.category-subnav-inner { display: flex; align-items: center; }
.subnav-item {
  font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink-light); padding: 12px 18px;
  border-bottom: 2px solid transparent; transition: color .15s, border-color .15s;
  white-space: nowrap;
}
.subnav-item:hover { color: var(--green); }
.subnav-item.active { color: var(--green); border-bottom-color: var(--green); }
.subnav-spacer { flex: 1; }
.subnav-count { font-size: 12px; color: var(--ink-light); padding: 12px 0; white-space: nowrap; }

.archive-layout { padding: 32px 0 48px; }
.archive-inner { display: grid; grid-template-columns: 1fr 300px; gap: 40px; align-items: start; }

.post-featured {
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap);
  padding-bottom: 28px; border-bottom: 1px solid var(--border); margin-bottom: 28px; align-items: center;
}
.post-featured .img-wrap { aspect-ratio: 3/2; border-radius: 3px; }
.post-featured h2 { font-family: var(--font-serif); font-size: 26px; font-weight: 700; line-height: 1.22; margin-bottom: 10px; }
.post-featured h2 a:hover { color: var(--green); }
.post-featured .deck { font-size: 15px; color: var(--ink-mid); line-height: 1.6; margin-bottom: 12px; }
.post-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); padding-bottom: 28px; border-bottom: 1px solid var(--border); margin-bottom: 28px; }
.post-card .img-wrap { aspect-ratio: 3/2; border-radius: 3px; margin-bottom: 12px; }
.post-card h3 { font-family: var(--font-serif); font-size: 19px; font-weight: 700; line-height: 1.28; margin-bottom: 8px; }
.post-card h3 a:hover { color: var(--green); }
.post-card .deck { font-size: 13px; color: var(--ink-mid); line-height: 1.55; margin-bottom: 10px; }

.post-compact { display: flex; gap: 14px; align-items: flex-start; padding: 16px 0; border-bottom: 1px solid var(--border); }
.post-compact:last-child { border-bottom: none; }
.post-compact .thumb { width: 88px; height: 66px; flex-shrink: 0; overflow: hidden; border-radius: 3px; }
.post-compact .thumb img { height: 100%; }
.post-compact h4 { font-family: var(--font-serif); font-size: 16px; font-weight: 600; line-height: 1.3; margin-bottom: 5px; }
.post-compact h4 a:hover { color: var(--green); }

.posts-list-group { border-top: 2px solid var(--green); padding-top: 12px; margin-bottom: 28px; }
.list-group-header { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--green); margin-bottom: 8px; }
.post-list-item { padding: 14px 0; border-bottom: 1px solid var(--border); display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; }
.post-list-item:last-child { border-bottom: none; }
.post-list-item h4 { font-family: var(--font-serif); font-size: 17px; font-weight: 600; line-height: 1.3; margin-bottom: 4px; }
.post-list-item h4 a:hover { color: var(--green); }
.thumb-sm { width: 72px; height: 54px; overflow: hidden; border-radius: 2px; flex-shrink: 0; }
.thumb-sm img { height: 100%; }

/* Outras editorias */
.other-sections { margin-top: 24px; }
.other-sections-header { border-top: 3px solid var(--amber); padding-top: 10px; margin-bottom: 14px; }
.other-sections-header h3 { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--amber-dark); }
.section-links { display: flex; flex-wrap: wrap; gap: 6px; }
.section-link {
  font-size: 12px; font-weight: 600; color: var(--ink-mid);
  border: 1px solid var(--border); padding: 5px 12px; border-radius: 20px;
}
.section-link:hover { border-color: var(--green); color: var(--green); }

/* Paginação */
.pagination { display: flex; align-items: center; justify-content: center; gap: 6px; padding-top: 32px; }
.pagination .page-numbers {
  min-width: 38px; height: 38px; padding: 0 10px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border); border-radius: 3px;
  font-size: 13px; font-weight: 600; color: var(--ink-mid);
}
.pagination .page-numbers:hover { border-color: var(--green); color: var(--green); }
.pagination .page-numbers.current { background: var(--green); border-color: var(--green); color: #fff; }
.pagination .page-numbers.dots { border: none; color: var(--ink-light); }
.pagination .prev, .pagination .next { padding: 0 14px; }

/* ── Responsive ──────────────────────────────────────────── */
@media ( max-width: 1024px ) {
  .grid-4 { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .ultimas-grid { grid-template-columns: repeat(3,1fr); }
  .mixed-grid { grid-template-columns: 1fr 1px 1fr; }
  .mixed-grid > *:nth-child(5), .mixed-grid > *:nth-child(4) { display: none; }
}

@media ( max-width: 768px ) {
  .masthead-inner { grid-template-columns: auto 1fr; }
  .masthead-meta { display: none; }
  .masthead-actions { grid-column: 2; justify-content: flex-end; }

  .nav-hamburger { display: flex; }
  .nav-menu { display: none; flex-direction: column; width: 100%; background: var(--green-dark); padding: 8px 0 16px; }
  .nav-menu.is-open { display: flex; }
  .nav-menu li a { padding: 10px 16px; }
  .nav-social { display: none; }

  .hero-grid { grid-template-columns: 1fr; }
  .hero-main { border-right: none; padding-right: 0; border-bottom: 1px solid var(--border); padding-bottom: 20px; }
  .hero-sidebar { padding-top: 20px; }
  .hero-sub-cards { grid-template-columns: repeat(2, 1fr); }
  .destaques-grid { grid-template-columns: 1fr; gap: var(--gap); }
  .destaques-grid > .card { border-right: none; padding-right: 0; border-bottom: 1px solid var(--border); padding-bottom: var(--gap); }
  .ad-300, .ad-300x250 { display: none; }

  .grid-4, .grid-3, .ultimas-grid { grid-template-columns: repeat(2,1fr); }
  .grid-4 .card + .card:nth-child(odd),
  .grid-3 .card + .card:nth-child(odd) { border-left: none; padding-left: 0; }

  .two-col-sections .inner { grid-template-columns: 1fr; }
  .two-col-sections .divider { display: none; }

  .article-inner, .archive-inner { grid-template-columns: 1fr; }
  .article-sidebar { display: none; }

  .post-featured { grid-template-columns: 1fr; }
  .category-banner-inner { grid-template-columns: 1fr; }
  .banner-featured { display: none; }
  .category-name { font-size: 36px; }

  .article-headline { font-size: 26px; }
  .article-deck { font-size: 17px; }
  .article-body { font-size: 17px; }

  .newsletter-inner { flex-direction: column; }
  .newsletter-form { max-width: 100%; flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; gap: 20px; }

  .related-grid { grid-template-columns: 1fr; }
  .related-card + .related-card { border-left: none; padding-left: 0; border-top: 1px solid var(--border); padding-top: 20px; }

  .share-bar { flex-wrap: wrap; }
  .article-meta { flex-direction: column; align-items: flex-start; }
  .share-bar { margin-left: 0; }
  .divider-v { display: none; }
}

@media ( max-width: 480px ) {
  .grid-4, .grid-3, .ultimas-grid { grid-template-columns: 1fr; }
  .grid-4 .card + .card,
  .grid-3 .card + .card { border-left: none; padding-left: 0; border-top: 1px solid var(--border); padding-top: var(--gap); }
  .post-grid-2 { grid-template-columns: 1fr; }
  .mixed-grid { grid-template-columns: 1fr; }
  .mixed-grid .divider { display: none; }
  .hero-sub-cards { grid-template-columns: 1fr; }
}
