/* Blog — identidade AIROS / Dr. Everardo Napoleao. Nenhum estilo vem do artigo. */
:root {
  --ink: #0f2b23; --ink-2: #163a30; --cream: #f6f1e8; --paper: #fbf8f2;
  --gold: #c9a96e; --gold-deep: #8a6a33; --text: #1b1f1c; --muted: #5b625d; --line: #e4dccd;
  --serif: "Cormorant Garamond", Georgia, serif; --sans: "DM Sans", system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--text); font: 400 17px/1.7 var(--sans); }
img { max-width: 100%; height: auto; }
a { color: var(--ink); }

/* Cabecalho */
.bh { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px clamp(16px, 4vw, 48px); background: rgba(251, 248, 242, 0.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.bh__brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.bh__brand span { display: flex; flex-direction: column; line-height: 1.15; }
.bh__brand strong { font: 600 20px/1.1 var(--serif); }
.bh__brand small { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.bh__nav { display: flex; align-items: center; gap: 26px; }
.bh__nav a { text-decoration: none; font-size: 15px; color: var(--ink); }
.bh__nav a[aria-current="page"] { color: var(--gold-deep); font-weight: 600; }
.bh__cta { background: var(--ink); color: var(--cream) !important; padding: 10px 20px; border-radius: 999px; font-weight: 600; }
.bh__menu { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.bh__menu span { display: block; width: 24px; height: 2px; margin: 5px 0; background: var(--ink); }
@media (max-width: 860px) {
  .bh__menu { display: block; }
  .bh__nav { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--paper); border-bottom: 1px solid var(--line); display: none; padding: 8px 20px 20px; }
  .bh__nav.is-open { display: flex; }
  .bh__nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .bh__cta { margin-top: 12px; text-align: center; border: 0 !important; }
}

/* Listagem */
main { min-height: 60vh; }
.eyebrow { margin: 0 0 8px; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-deep); font-weight: 600; }
.blog-hero { max-width: 860px; margin: 0 auto; padding: clamp(40px, 7vw, 88px) 20px 24px; text-align: center; }
.blog-hero h1, .post h1 { font: 500 clamp(34px, 5vw, 56px)/1.08 var(--serif); color: var(--ink); margin: 0 0 16px; }
.lead { font-size: clamp(17px, 2vw, 20px); color: var(--muted); margin: 0 0 20px; }
.blog-empty { text-align: center; color: var(--muted); padding-bottom: 80px; }
.blog-grid { max-width: 1200px; margin: 0 auto; padding: 24px 20px 40px; display: grid; gap: 28px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.card { background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.card:hover { transform: translateY(-3px); box-shadow: 0 14px 36px rgba(15, 43, 35, 0.1); }
.card__link { display: block; color: inherit; text-decoration: none; height: 100%; }
.card__img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--cream); }
.card__body { padding: 20px 22px 24px; }
.card h2 { font: 600 24px/1.2 var(--serif); color: var(--ink); margin: 0 0 10px; }
.card p { margin: 0 0 12px; font-size: 15px; color: var(--muted); }
.card time { font-size: 13px; color: var(--muted); }
.pager { display: flex; justify-content: center; align-items: center; gap: 24px; padding: 0 20px 72px; font-size: 15px; }
.pager a { font-weight: 600; }

/* Artigo */
.post { max-width: 760px; margin: 0 auto; padding: 32px 20px 64px; }
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 28px; }
.crumbs a { color: var(--muted); }
.post__head { margin-bottom: 28px; }
.post__meta { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; color: var(--muted); margin: 0; }
.post__cover { display: block; width: 100%; aspect-ratio: 1200 / 630; object-fit: cover; border-radius: 16px; margin: 0 0 36px; background: var(--cream); }
.post__body { overflow-wrap: anywhere; }
.post__body h2 { font: 600 clamp(28px, 3.4vw, 36px)/1.2 var(--serif); color: var(--ink); margin: 48px 0 14px; }
.post__body h3 { font: 600 24px/1.25 var(--serif); color: var(--ink); margin: 36px 0 10px; }
.post__body h4 { font-size: 18px; margin: 28px 0 8px; }
.post__body p, .post__body ul, .post__body ol { margin: 0 0 20px; }
.post__body li { margin-bottom: 8px; }
.post__body li::marker { color: var(--gold-deep); }
.post__body blockquote { margin: 28px 0; padding: 18px 22px; background: var(--cream); border-left: 3px solid var(--gold); border-radius: 0 12px 12px 0; }
.post__body blockquote p:last-child { margin-bottom: 0; }
.post__body img { display: block; border-radius: 12px; margin: 28px auto 8px; }
.post__body pre { overflow-x: auto; background: var(--cream); padding: 16px; border-radius: 10px; font-size: 14px; }
.post__body hr { border: 0; border-top: 1px solid var(--line); margin: 40px 0; }
.post-table { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 24px 0; border: 1px solid var(--line); border-radius: 12px; }
.post-table table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 15px; }
.post-table th, .post-table td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.post-table th { background: var(--cream); color: var(--ink); font-weight: 600; }
.post__refs { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 15px; }
.post__refs h2 { font: 600 24px/1.2 var(--serif); color: var(--ink); margin: 0 0 12px; }
.post__cta { margin-top: 48px; padding: 32px 28px; background: var(--ink); color: var(--cream); border-radius: 18px; text-align: center; }
.post__cta h2 { font: 500 30px/1.15 var(--serif); margin: 0 0 8px; color: var(--cream); }
.post__cta p { margin: 0 0 20px; opacity: 0.85; }
.post__cta .btn { background: var(--gold); color: var(--ink); border-color: var(--gold); }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 26px; border-radius: 999px; background: var(--ink); color: var(--cream); border: 1.5px solid var(--ink); font: 600 15px/1 var(--sans); text-decoration: none; cursor: pointer; }
.btn--ghost { background: transparent; color: var(--ink); }

/* Rodape */
.bf { background: var(--ink); color: var(--cream); padding: 36px clamp(16px, 4vw, 48px); font-size: 14px; display: flex; flex-direction: column; gap: 14px; }
.bf__row { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; }
.bf strong { font: 600 20px/1.1 var(--serif); }
.bf a { color: var(--cream); opacity: 0.85; }

/* Banner de consentimento (mesmo visual do site) */
.consent { position: fixed; left: 20px; bottom: 20px; z-index: 200; width: calc(100% - 40px); max-width: 420px; }
.consent__card { background: #f6f1e8; color: #1b1f1c; border-top: 2px solid #c9a96e; border-radius: 16px; box-shadow: 0 14px 36px rgba(15, 43, 35, 0.16), 0 2px 6px rgba(15, 43, 35, 0.08); padding: 18px 20px; display: flex; flex-direction: column; gap: 14px; font-family: var(--sans); animation: consent-in 0.4s ease both; }
@keyframes consent-in { from { opacity: 0; } to { opacity: 1; } }
.consent__text { margin: 0; font-size: 14px; line-height: 1.5; }
.consent__link { color: #0f2b23; font-weight: 600; text-underline-offset: 2px; }
.consent__actions { display: flex; gap: 10px; }
.consent__btn { flex: 1 1 0; appearance: none; min-height: 44px; border-radius: 999px; padding: 10px 16px; font: 600 14px var(--sans); cursor: pointer; border: 1.5px solid #0f2b23; }
.consent__btn--solid { background: #0f2b23; color: #f6f1e8; }
.consent__btn--ghost { background: transparent; color: #0f2b23; }
.consent__btn:focus-visible { outline: 2px solid #c9a96e; outline-offset: 2px; }
.consent-prefs-link { appearance: none; background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; opacity: 0.85; }
@media (max-width: 640px) {
  .consent { left: 12px; right: 12px; bottom: 12px; width: auto; max-width: none; }
  .consent__card { padding: 14px 16px; gap: 10px; max-height: 150px; }
  .consent__text { font-size: 13.5px; line-height: 1.4; }
}
@media (prefers-reduced-motion: reduce) { .consent__card, .card { animation: none; transition: none; } }

/* Painel do revisor */
.adm { background: #fff; }
.adm__bar { display: flex; justify-content: space-between; align-items: center; padding: 14px 24px; background: var(--ink); color: var(--cream); }
.adm__bar .btn--ghost { color: var(--cream); border-color: var(--cream); min-height: 36px; padding: 8px 16px; }
.adm__main { max-width: 1100px; margin: 0 auto; padding: 24px 20px 64px; }
.adm__main h1 { font: 600 32px/1.2 var(--serif); }
.adm__form { max-width: 420px; margin: 40px auto; display: flex; flex-direction: column; gap: 14px; }
.adm__form label, .adm__decide label { display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.adm__form input, .adm__decide input, .adm__decide select { font: inherit; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; }
.adm__err { color: #9b1c1c; background: #fdecec; padding: 10px 12px; border-radius: 8px; }
.adm__t { width: 100%; border-collapse: collapse; font-size: 14px; margin-bottom: 32px; }
.adm__t th, .adm__t td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.adm__small { flex-direction: row !important; align-items: center; gap: 6px !important; font-size: 13px; }
.adm__decide { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px; padding: 16px; margin: 12px 0; background: var(--cream); border-radius: 12px; }
.adm__preview { border: 2px dashed var(--line); border-radius: 16px; background: var(--paper); }
.adm__facts { font-size: 14px; }
