/* ==========================================================================
   Aprovados.org - tema Ghost
   Somente modo claro. Fonte: Geist (autohospedada). Ícones: Lucide (inline).
   Breakpoints usados nas media queries: 640, 768, 1024, 1280.
   Escala de raios: 6px (badges, chips pequenos) e 10px (controles, cards).
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
    color-scheme: light;

    /* Cor: azul da marca (extraído do logo) como único acento */
    --c-brand: #004aad;
    --c-brand-hover: #003a8c;
    --c-brand-soft: #eef4fc;
    --c-brand-line: #cddff5;
    --c-ink: #0f1a2e;
    --c-text: #2a3547;
    --c-muted: #586377;
    --c-line: #e2e8f1;
    --c-bg: #fcfdfe;
    --c-bg-alt: #f4f7fb;
    --c-surface: #ffffff;
    --c-focus: #004aad;

    /* Tipografia */
    --font-sans: var(--gh-font-body, "Geist"), system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

    /* Espaçamento (base 4px) */
    --s-1: 0.25rem;
    --s-2: 0.5rem;
    --s-3: 0.75rem;
    --s-4: 1rem;
    --s-5: 1.25rem;
    --s-6: 1.5rem;
    --s-8: 2rem;
    --s-10: 2.5rem;
    --s-12: 3rem;
    --s-16: 4rem;

    /* Forma */
    --r-sm: 6px;
    --r: 10px;

    /* Layout */
    --container: 1200px;
    --read: 720px;
    --gutter: 1rem;
    --header-h: 64px;

    /* Camadas */
    --z-header: 40;
    --z-menu: 39;
    --z-skip: 100;
}

@media (min-width: 640px) {
    :root { --gutter: 1.5rem; }
}

/* ---------- 2. Base ---------- */
@font-face {
    font-family: "Geist";
    src: url("../fonts/geist-latin-wght-normal.woff2") format("woff2");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

*, *::before, *::after { box-sizing: border-box; }

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + var(--s-4));
}

body {
    margin: 0;
    background: var(--c-bg);
    color: var(--c-text);
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img, svg, video, iframe { max-width: 100%; }
img { display: block; height: auto; }

h1, h2, h3, h4, h5, h6 {
    margin: 0;
    color: var(--c-ink);
    font-weight: 700;
    font-family: var(--gh-font-heading, var(--font-sans));
    letter-spacing: -0.02em;
    line-height: 1.2;
    text-wrap: balance;
}

p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

:focus-visible {
    outline: 2px solid var(--c-focus);
    outline-offset: 2px;
    border-radius: 4px;
}

.container {
    width: 100%;
    max-width: calc(var(--container) + var(--gutter) * 2);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.icon { width: 1.25rem; height: 1.25rem; flex: none; }

.skip-link {
    position: absolute;
    left: var(--s-4);
    top: -4rem;
    z-index: var(--z-skip);
    padding: var(--s-2) var(--s-4);
    background: var(--c-brand);
    color: #fff;
    border-radius: var(--r);
    font-weight: 600;
}
.skip-link:focus { top: var(--s-2); }

/* ---------- 3. Botões e controles ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--s-2);
    min-height: 44px;
    padding: 0 var(--s-5);
    border: 1px solid transparent;
    border-radius: var(--r);
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s, color 0.2s, transform 0.1s;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--c-brand); color: #fff; }
.btn--primary:hover { background: var(--c-brand-hover); }
.btn--secondary { background: var(--c-surface); color: var(--c-brand); border-color: var(--c-brand-line); }
.btn--secondary:hover { border-color: var(--c-brand); background: var(--c-brand-soft); }
.btn--sm { min-height: 40px; padding: 0 var(--s-4); font-size: 0.875rem; }
.btn--md { width: 100%; }

.icon-btn {
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: var(--r);
    background: transparent;
    color: var(--c-ink);
    cursor: pointer;
    transition: background-color 0.2s;
}
.icon-btn:hover { background: var(--c-brand-soft); }

.badge {
    display: inline-block;
    padding: 2px var(--s-2);
    border-radius: var(--r-sm);
    background: var(--c-brand-soft);
    color: var(--c-brand);
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.5;
    transition: background-color 0.2s;
}
a.badge:hover { background: var(--c-brand-line); }

.chip {
    display: inline-flex;
    align-items: center;
    gap: var(--s-1);
    min-height: 36px;
    padding: 0 var(--s-3);
    border: 1px solid var(--c-line);
    border-radius: var(--r-sm);
    background: var(--c-surface);
    color: var(--c-text);
    font-size: 0.875rem;
    font-weight: 500;
    transition: border-color 0.2s, color 0.2s, background-color 0.2s;
}
.chip:hover { border-color: var(--c-brand); color: var(--c-brand); }
.chip--more { border-color: transparent; background: transparent; color: var(--c-brand); font-weight: 600; }
.chip--more .icon { width: 1rem; height: 1rem; }
.chip--more:hover { background: var(--c-brand-soft); border-color: transparent; }

/* ---------- 4. Cabeçalho ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: var(--z-header);
    background: var(--c-surface);
    border-bottom: 1px solid var(--c-line);
}
.site-header__inner {
    display: flex;
    align-items: center;
    gap: var(--s-6);
    height: var(--header-h);
}
.brand { display: inline-flex; flex: none; }
.brand img { width: 150px; height: 32px; }

.site-nav { display: none; }
.site-nav ul { display: flex; align-items: center; gap: var(--s-1); }
.site-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 var(--s-3);
    border-radius: var(--r);
    color: var(--c-text);
    font-size: 0.9375rem;
    font-weight: 500;
    transition: background-color 0.2s, color 0.2s;
}
.site-nav a:hover { background: var(--c-brand-soft); color: var(--c-brand); }
.site-nav a[aria-current="page"] { color: var(--c-brand); font-weight: 600; }

.site-actions { display: flex; align-items: center; gap: var(--s-2); margin-left: auto; }
.site-actions__cta { display: none; }

.menu-toggle__close { display: none; }
.menu-toggle[aria-expanded="true"] .menu-toggle__open { display: none; }
.menu-toggle[aria-expanded="true"] .menu-toggle__close { display: inline-flex; }

.mobile-menu {
    position: absolute;
    inset-inline: 0;
    top: 100%;
    z-index: var(--z-menu);
    padding-block: var(--s-4) var(--s-6);
    background: var(--c-surface);
    border-bottom: 1px solid var(--c-line);
}
.mobile-menu[hidden] { display: none; }
.mobile-menu ul { display: grid; margin-bottom: var(--s-4); }
.mobile-menu li + li { border-top: 1px solid var(--c-line); }
.mobile-menu li a {
    display: flex;
    align-items: center;
    min-height: 48px;
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--c-ink);
}
.mobile-menu li a[aria-current="page"] { color: var(--c-brand); }

@media (min-width: 768px) {
    .site-nav { display: block; }
    .site-actions__cta { display: block; }
    .menu-toggle { display: none; }
    .mobile-menu { display: none !important; }
}

/* ---------- 5. Hero ---------- */
.hero {
    background: var(--c-bg-alt);
    border-bottom: 1px solid var(--c-line);
    padding-block: var(--s-10);
}
.hero__inner { display: grid; gap: var(--s-8); align-items: center; }
.hero__title {
    max-width: 18em;
    font-size: clamp(1.875rem, 1.3rem + 2.4vw, 3rem);
    line-height: 1.08;
    letter-spacing: -0.03em;
}
.hero__desc {
    max-width: 38em;
    margin-top: var(--s-4);
    font-size: 1.125rem;
    color: var(--c-text);
}

.search-field {
    display: flex;
    align-items: center;
    gap: var(--s-3);
    width: 100%;
    max-width: 560px;
    min-height: 52px;
    margin-top: var(--s-6);
    padding: 0 var(--s-4);
    border: 1px solid var(--c-brand-line);
    border-radius: var(--r);
    background: var(--c-surface);
    color: var(--c-muted);
    font-size: 1rem;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.2s;
}
.search-field:hover { border-color: var(--c-brand); }
.search-field .icon { color: var(--c-brand); }

.quick-states {
    padding: var(--s-5);
    border: 1px solid var(--c-line);
    border-radius: var(--r);
    background: var(--c-surface);
}
.quick-states__title { font-size: 1rem; margin-bottom: var(--s-3); }
.chips { display: flex; flex-wrap: wrap; gap: var(--s-2); }

@media (min-width: 1024px) {
    .hero { padding-block: var(--s-16); }
    .hero__inner { grid-template-columns: minmax(0, 1fr) 360px; gap: var(--s-12); }
}

/* ---------- 6. Seções ---------- */
.section { padding-block: var(--s-10); }
.section--states { background: var(--c-bg-alt); border-block: 1px solid var(--c-line); }
.section--related { background: var(--c-bg-alt); border-top: 1px solid var(--c-line); }
.section__head { margin-bottom: var(--s-6); }
.section__title { font-size: clamp(1.375rem, 1.1rem + 1vw, 1.75rem); }
.section__desc { margin-top: var(--s-2); color: var(--c-muted); }

@media (min-width: 1024px) {
    .section { padding-block: var(--s-16); }
}

/* ---------- 7. Cards de notícia ---------- */
.card { position: relative; min-width: 0; }
.card__media {
    display: block;
    overflow: hidden;
    border-radius: var(--r);
    background: var(--c-brand-soft);
    aspect-ratio: 16 / 9;
}
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1); }
.card:hover .card__media img { transform: scale(1.02); }
.card__body { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s-2); }
.card__title { font-size: 1.125rem; line-height: 1.3; }
.card__title a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size 0.25s; }
.card__title a:hover { color: var(--c-brand); background-size: 100% 1px; }
/* Todo o card é clicável sem duplicar links */
.card__title a::after { content: ""; position: absolute; inset: 0; }
.card__body .badge { position: relative; z-index: 1; }
.card__excerpt { color: var(--c-text); font-size: 0.9375rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card__meta { color: var(--c-muted); font-size: 0.8125rem; font-variant-numeric: tabular-nums; }

/* Destaque */
.latest { display: grid; gap: var(--s-8); }
.card--featured { display: grid; gap: var(--s-4); align-content: start; }
.card--featured .card__title { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.125rem); letter-spacing: -0.025em; line-height: 1.15; }
.card--featured .card__excerpt { font-size: 1.0625rem; -webkit-line-clamp: 4; }
.card--featured:not(:has(.card__media)) .card__body {
    padding: var(--s-6);
    border-left: 4px solid var(--c-brand);
    border-radius: 0 var(--r) var(--r) 0;
    background: var(--c-brand-soft);
}

/* Secundárias compactas */
.latest__side { display: grid; align-content: start; }
.card--compact { display: grid; grid-template-columns: minmax(0, 1fr) 96px; gap: var(--s-4); align-items: start; padding-block: var(--s-4); border-top: 1px solid var(--c-line); }
.card--compact:first-child { border-top: 0; padding-top: 0; }
.card--compact .card__media { order: 2; aspect-ratio: 4 / 3; }
.card--compact:not(:has(.card__media)) { grid-template-columns: minmax(0, 1fr); }
.card--compact .card__title { font-size: 1rem; }

/* Linhas */
.rows { display: grid; gap: 0 var(--s-10); margin-top: var(--s-10); }
.card--row { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-4); padding-block: var(--s-5); border-top: 1px solid var(--c-line); }
.section--archive .rows { margin-top: 0; }
.card--row .card__media { aspect-ratio: 16 / 9; }

/* Grade (relacionadas) */
.grid { display: grid; gap: var(--s-8); }
.card--grid { display: grid; gap: var(--s-4); align-content: start; }

@media (min-width: 640px) {
    .card--row:has(.card__media) { grid-template-columns: minmax(0, 1fr) 220px; align-items: start; }
    .card--row .card__media { order: 2; aspect-ratio: 4 / 3; }
    .card--compact { grid-template-columns: minmax(0, 1fr) 120px; }
    .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
    .latest { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: var(--s-12); }
    .rows { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .section--archive .rows { grid-template-columns: minmax(0, 860px); }
    .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ---------- 8. Estados ---------- */
.state-grid { display: grid; gap: var(--s-3); grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
.state-tile {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: var(--s-3);
    align-items: center;
    min-height: 64px;
    padding: var(--s-3) var(--s-4);
    border: 1px solid var(--c-line);
    border-radius: var(--r);
    background: var(--c-surface);
    transition: border-color 0.2s, background-color 0.2s;
}
.state-tile:hover { border-color: var(--c-brand); background: var(--c-brand-soft); }
.state-tile__name { grid-column: 1; font-weight: 600; color: var(--c-ink); }
.state-tile__count { grid-column: 1; color: var(--c-muted); font-size: 0.8125rem; }
.state-tile .icon { grid-column: 2; grid-row: 1 / span 2; color: var(--c-brand); }

/* ---------- 9. Acompanhe ---------- */
.section--follow { padding-block: var(--s-10); }
.follow {
    display: grid;
    gap: var(--s-5);
    padding: var(--s-6);
    border: 1px solid var(--c-brand-line);
    border-radius: var(--r);
    background: var(--c-brand-soft);
}
.follow__title { font-size: clamp(1.25rem, 1.05rem + 0.8vw, 1.5rem); }
.follow__desc { margin-top: var(--s-2); color: var(--c-text); }
.follow__actions { display: flex; flex-wrap: wrap; gap: var(--s-3); }
@media (min-width: 768px) {
    .follow { grid-template-columns: minmax(0, 1fr) auto; align-items: center; padding: var(--s-8); gap: var(--s-8); }
}
.article .section--follow { padding-block: var(--s-8) 0; }
.article .section--follow .container { padding-inline: 0; }

/* ---------- 10. Rodapé ---------- */
.site-footer { margin-top: var(--s-10); padding-block: var(--s-12) var(--s-8); border-top: 1px solid var(--c-line); background: var(--c-surface); }
.site-footer__grid { display: grid; gap: var(--s-8); }
.site-footer__about { max-width: 34em; display: grid; gap: var(--s-3); justify-items: start; color: var(--c-text); }
.site-footer__note { color: var(--c-muted); font-size: 0.875rem; }
.site-footer__col h2 { margin-bottom: var(--s-3); font-size: 0.9375rem; }
.site-footer__col ul { display: grid; gap: var(--s-1); }
.site-footer__col a { display: inline-flex; align-items: center; min-height: 36px; color: var(--c-text); font-size: 0.9375rem; }
.site-footer__col a:hover { color: var(--c-brand); text-decoration: underline; text-underline-offset: 3px; }
.site-footer__legal { margin-top: var(--s-10); padding-top: var(--s-5); border-top: 1px solid var(--c-line); color: var(--c-muted); font-size: 0.8125rem; }
@media (min-width: 768px) {
    .site-footer__grid { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); }
}

/* ---------- 11. Breadcrumbs, arquivo, paginação, vazio ---------- */
.breadcrumbs { margin-bottom: var(--s-4); font-size: 0.8125rem; color: var(--c-muted); }
.breadcrumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-1) var(--s-2); }
.breadcrumbs li { display: inline-flex; align-items: center; gap: var(--s-2); min-width: 0; }
.breadcrumbs li + li::before { content: "/"; color: var(--c-line); }
.breadcrumbs a:hover { color: var(--c-brand); text-decoration: underline; text-underline-offset: 3px; }
.breadcrumbs [aria-current="page"] span { display: block; max-width: 22ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.archive-head { padding-block: var(--s-10); background: var(--c-bg-alt); border-bottom: 1px solid var(--c-line); }
.archive-title { font-size: clamp(1.875rem, 1.4rem + 2vw, 2.75rem); letter-spacing: -0.03em; }
.archive-desc { max-width: 40em; margin-top: var(--s-3); font-size: 1.0625rem; }
.archive-count { margin-top: var(--s-3); color: var(--c-muted); font-size: 0.875rem; }
.author-head { display: flex; align-items: flex-start; gap: var(--s-5); }
.author-head__img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; }

.pagination { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); margin-top: var(--s-10); }
.pagination__info { color: var(--c-muted); font-size: 0.875rem; text-align: center; }
.pagination__spacer { min-width: 1px; }

.empty { display: grid; justify-items: center; gap: var(--s-3); max-width: 480px; margin-inline: auto; padding-block: var(--s-10); text-align: center; }
.empty__icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: var(--r); background: var(--c-brand-soft); color: var(--c-brand); }
.empty__icon .icon { width: 1.75rem; height: 1.75rem; }
.empty__code { color: var(--c-muted); font-size: 0.875rem; font-weight: 600; }
.empty__title { font-size: 1.5rem; }
.empty__text { color: var(--c-text); margin-bottom: var(--s-3); }
.empty__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-3); }

/* ---------- 12. Notícia ---------- */
.article { padding-block: var(--s-8) var(--s-10); }
.post-layout { display: grid; gap: var(--s-8); }
.post-main { min-width: 0; width: 100%; max-width: var(--read); margin-inline: auto; }
.post-header { margin-bottom: var(--s-6); }
.post-header .badge { margin-bottom: var(--s-3); }
.post-title { font-size: clamp(1.75rem, 1.3rem + 2vw, 2.625rem); line-height: 1.12; letter-spacing: -0.03em; }
.post-lede { margin-top: var(--s-4); font-size: 1.1875rem; line-height: 1.5; color: var(--c-text); }
.post-meta { display: flex; flex-wrap: wrap; gap: var(--s-1) var(--s-4); margin-top: var(--s-5); color: var(--c-muted); font-size: 0.875rem; font-variant-numeric: tabular-nums; }
.post-meta a:hover { color: var(--c-brand); text-decoration: underline; text-underline-offset: 3px; }

.post-image { margin: 0 0 var(--s-8); }
.post-image img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r); background: var(--c-brand-soft); }
.post-image figcaption { margin-top: var(--s-2); color: var(--c-muted); font-size: 0.8125rem; }

.post-tags { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-8); padding-top: var(--s-6); border-top: 1px solid var(--c-line); }

.post-aside { display: none; }

@media (min-width: 1100px) {
    .post-aside { display: block; }
    .post-layout.has-aside { grid-template-columns: minmax(0, var(--read)) 300px; justify-content: center; gap: var(--s-12); }
    .post-layout.has-aside .post-main { margin-inline: 0; }
}

/* Corpo editorial */
.gh-content { font-size: 1.125rem; line-height: 1.7; color: var(--c-text); overflow-wrap: break-word; }
.gh-content > * + * { margin-top: var(--s-6); }
.gh-content > :is(h2, h3, h4, h5, h6) { margin-top: var(--s-10); }
.gh-content > :is(h2, h3, h4, h5, h6) + * { margin-top: var(--s-3); }
.gh-content h2 { font-size: 1.625rem; }
.gh-content h3 { font-size: 1.3125rem; }
.gh-content h4 { font-size: 1.125rem; }
.gh-content h5, .gh-content h6 { font-size: 1rem; }
.gh-content :is(h2, h3, h4, h5, h6) { scroll-margin-top: calc(var(--header-h) + var(--s-4)); }
.gh-content a:not(.kg-btn):not(.kg-bookmark-container):not(.kg-product-card-button):not(.kg-header-card-button) {
    color: var(--c-brand);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    transition: color 0.2s;
}
.gh-content a:not(.kg-btn):hover { color: var(--c-brand-hover); text-decoration-thickness: 2px; }
.gh-content a[href$=".pdf" i]::before {
    content: "";
    display: inline-block;
    width: 1em;
    height: 1em;
    margin-right: 0.3em;
    vertical-align: -0.15em;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z'/%3E%3Cpath d='M14 2v5a1 1 0 0 0 1 1h5'/%3E%3Cpath d='M10 9H8'/%3E%3Cpath d='M16 13H8'/%3E%3Cpath d='M16 17H8'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z'/%3E%3Cpath d='M14 2v5a1 1 0 0 0 1 1h5'/%3E%3Cpath d='M10 9H8'/%3E%3Cpath d='M16 13H8'/%3E%3Cpath d='M16 17H8'/%3E%3C/svg%3E") center / contain no-repeat;
}
.gh-content strong { color: var(--c-ink); font-weight: 650; }
.gh-content :is(ul, ol) { padding-left: 1.5em; }
.gh-content ul { list-style: disc; }
.gh-content ol { list-style: decimal; }
.gh-content li + li { margin-top: var(--s-2); }
.gh-content li::marker { color: var(--c-muted); }
.gh-content blockquote:not([class]) { padding-left: var(--s-5); border-left: 3px solid var(--c-brand); color: var(--c-ink); font-size: 1.1875rem; }
.gh-content blockquote.kg-blockquote-alt { border: 0; padding: 0; text-align: center; font-size: 1.5rem; font-weight: 600; color: var(--c-ink); }
.gh-content hr { border: 0; border-top: 1px solid var(--c-line); margin-block: var(--s-10); }
.gh-content figure { margin-inline: 0; }
.gh-content figcaption { margin-top: var(--s-2); color: var(--c-muted); font-size: 0.8125rem; text-align: center; }
.gh-content img { border-radius: var(--r); }
.gh-content code:not(pre code) { padding: 0.15em 0.4em; border-radius: var(--r-sm); background: var(--c-bg-alt); font-family: var(--font-mono); font-size: 0.9em; }
.gh-content pre { overflow-x: auto; padding: var(--s-4); border: 1px solid var(--c-line); border-radius: var(--r); background: var(--c-bg-alt); font-family: var(--font-mono); font-size: 0.875rem; line-height: 1.6; }
.gh-content table { display: block; width: 100%; max-width: 100%; overflow-x: auto; border-collapse: collapse; font-size: 0.9375rem; -webkit-overflow-scrolling: touch; }
.gh-content :is(th, td) { padding: var(--s-3) var(--s-4); border-bottom: 1px solid var(--c-line); text-align: left; vertical-align: top; }
.gh-content th { background: var(--c-bg-alt); color: var(--c-ink); font-weight: 600; white-space: nowrap; }
.gh-content iframe { border: 0; }
.gh-content iframe[src*="youtube"], .gh-content iframe[src*="vimeo"] { width: 100%; height: auto; aspect-ratio: 16 / 9; }

/* Classes de largura do Koenig. Com coluna lateral de anúncio, não há extravasamento. */
.gh-content .kg-width-wide, .gh-content .kg-width-full { width: 100%; }
@media (min-width: 1100px) {
    .article:not(:has(.has-aside)) .gh-content .kg-width-wide { width: min(960px, 100vw - 2 * var(--gutter)); margin-inline: calc(50% - min(480px, 50vw - var(--gutter))); max-width: none; }
    .article:not(:has(.has-aside)) .gh-content .kg-width-full { width: 100vw; margin-inline: calc(50% - 50vw); max-width: none; }
    .article:not(:has(.has-aside)) .gh-content .kg-width-full img { border-radius: 0; }
}
.gh-content .kg-card { margin-block: var(--s-8); }
.gh-content .kg-btn, .gh-content .kg-header-card-button { border-radius: var(--r); }
.gh-content .kg-btn-accent { background: var(--c-brand); color: #fff; }
.gh-content .kg-callout-card { border-radius: var(--r); }
.gh-content .kg-bookmark-card .kg-bookmark-container { border-radius: var(--r); border: 1px solid var(--c-line); box-shadow: none; }
.gh-content .kg-bookmark-title { color: var(--c-ink); }

/* ---------- 13. Publicidade (espaço reservado só quando há anúncio configurado) ---------- */
.ad[hidden] { display: none; }
.ad { display: block; max-width: 100%; min-height: 280px; margin-block: var(--s-8); text-align: center; }
.ad__label { display: block; margin-bottom: var(--s-1); color: var(--c-muted); font-size: 0.75rem; }
.ad ins { min-height: 250px; }
.ad:has(ins[data-ad-status="unfilled"]) { display: none; }
.ad--sidebar { position: sticky; top: calc(var(--header-h) + var(--s-6)); margin-top: 0; min-height: 600px; }
.ad--sidebar ins { min-height: 600px; }

/* ---------- 14. Movimento reduzido ---------- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
    .card:hover .card__media img { transform: none; }
}
