* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #0d0d12;
    color: #e8e8ec;
    line-height: 1.5;
}
a { color: #8fb8ff; }
.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    padding: 16px 20px;
    border-bottom: 1px solid #26262f;
}
.site-header-title { margin: 0; font-size: 20px; font-weight: bold; display: flex; align-items: center; }
.site-header-left { display: flex; align-items: center; gap: 12px; }
.site-logo { max-height: 32px; display: block; }

/* ---------- menu hambúrguer (referência: babesource.com) ---------- */
.nav-drawer-toggle {
    background: none; border: none; color: #e8e8ec; font-size: 22px; line-height: 1;
    cursor: pointer; padding: 4px 6px; border-radius: 6px;
}
.nav-drawer-toggle:hover { background: #17171f; }
.nav-drawer-overlay {
    position: fixed; inset: 0; z-index: 90; background: rgba(6,6,10,.7);
}
.nav-drawer-overlay[hidden] { display: none; }
.nav-drawer {
    position: fixed; top: 0; left: 0; bottom: 0; z-index: 91;
    width: 280px; max-width: 85vw; background: #131319; border-right: 1px solid #26262f;
    padding: 16px; overflow-y: auto;
    display: flex; flex-direction: column; gap: 2px;
}
.nav-drawer[hidden] { display: none; }
.nav-drawer-close {
    align-self: flex-end; background: none; border: none; color: #9a9aad; font-size: 18px;
    cursor: pointer; padding: 4px 8px; margin-bottom: 8px;
}
.nav-drawer-close:hover { color: #e8e8ec; }
.nav-drawer-brand { font-size: 18px; font-weight: bold; color: #fff; margin-bottom: 12px; }
.nav-drawer-divider { border-top: 1px solid #26262f; margin: 10px 0; }
.nav-drawer a {
    display: block; padding: 10px 8px; border-radius: 6px; color: #d3d3dc; text-decoration: none; font-size: 15px;
}
.nav-drawer a:hover { background: #1f1f29; color: #fff; }
.nav-drawer-count { color: #6f6f80; font-size: 12px; }

.search-form { display: flex; gap: 6px; flex: 1 1 auto; max-width: 320px; }
.search-form input {
    background: #17171f;
    border: 1px solid #2c2c38;
    color: #e8e8ec;
    padding: 6px 10px;
    border-radius: 6px;
    min-width: 0;
    flex: 1 1 auto;
}
.search-form button {
    background: #3a3af0;
    color: #fff;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
}
main { max-width: 1100px; margin: 0 auto; padding: 24px 20px; }
.entity-group { margin-bottom: 32px; }
.entity-group h2 { font-size: 16px; text-transform: uppercase; letter-spacing: .05em; color: #9a9aad; }
.entity-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.entity-card {
    position: relative;
    display: block;
    aspect-ratio: 2/3;
    background: #17171f;
    border: 1px solid #2c2c38;
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    color: #e8e8ec;
}
.entity-card:hover { border-color: #3a3af0; }
.entity-card-cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.entity-card-overlay {
    position: absolute; left: 0; right: 0; bottom: 0; display: block;
    padding: 14px 14px 12px;
    background: linear-gradient(to top, rgba(6,6,10,.92), rgba(6,6,10,.45) 65%, rgba(6,6,10,0));
}
.entity-card-tag {
    display: inline-block; background: #3a3af0; color: #fff;
    font-size: 10px; text-transform: uppercase; letter-spacing: .04em; padding: 3px 8px; border-radius: 5px; margin-bottom: 6px;
}
.entity-card-title { display: block; font-size: 14px; font-weight: bold; color: #fff; line-height: 1.3; transition: color .15s ease; }
.entity-card:hover .entity-card-title { color: #8fb8ff; text-decoration: underline; }

/* ---------- carrossel de destaque (curadoria manual, home) ----------
   Um slide por vez (transform via JS em carousel.js), sem biblioteca —
   mesmo espírito vanilla do resto do projeto. Sem slide/JS: degrada pra
   mostrar só o primeiro card estático (nenhum <script> quebra o layout). */
.featured-carousel { position: relative; border-radius: 14px; overflow: hidden; margin-bottom: 32px; }
.featured-track { display: flex; transition: transform .5s ease; }
.featured-card {
    position: relative; flex: 0 0 100%; width: 100%; aspect-ratio: 16/9;
    background-color: #17171f; background-size: cover; background-position: center;
    display: flex; align-items: flex-end; text-decoration: none;
}
.featured-card::before {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(6,6,10,.9), rgba(6,6,10,.2) 60%, rgba(6,6,10,0));
}
.featured-card-content { position: relative; z-index: 1; padding: 20px; }
.featured-card-tag {
    display: inline-block; background: #3a3af0; color: #fff; font-size: 11px; text-transform: uppercase;
    letter-spacing: .05em; padding: 3px 10px; border-radius: 5px; margin: 0 0 8px;
}
.featured-card h2 { margin: 0; font-size: 22px; color: #fff; line-height: 1.25; }
.featured-card-subtitle { color: #e2e2e8; font-size: 14px; margin: 6px 0 0; }
.featured-dots {
    position: absolute; left: 0; right: 0; bottom: 14px; z-index: 2;
    display: flex; justify-content: center; gap: 8px;
}
.featured-dot {
    width: 8px; height: 8px; padding: 0; border: none; border-radius: 50%;
    background: rgba(255,255,255,.4); cursor: pointer; transition: background .15s, transform .15s;
}
.featured-dot.active { background: #fff; transform: scale(1.3); }
.breadcrumbs { max-width: 1100px; margin: 16px auto 0; padding: 0 20px; color: #9a9aad; font-size: 14px; }
.site-footer { max-width: 1100px; margin: 24px auto 0; padding: 16px 20px 32px; border-top: 1px solid #26262f; font-size: 13px; }
.site-footer a { color: #6f6f80; }
.site-footer a:hover { color: #8fb8ff; }
.entity-detail { max-width: 1100px; margin: 0 auto; padding: 16px 20px 40px; }
.entity-type-label { color: #9a9aad; margin-top: -8px; }
.entity-subtitle-plain { color: #c2c2cc; font-size: 17px; margin-top: 4px; }
.entity-byline { color: #9a9aad; font-size: 14px; margin-top: 8px; }
.article-hero-content .entity-byline { color: #d3d3dc; }
.entity-byline a { color: #8fb8ff; }
.entity-share { margin: 16px 0 0; }
.btn-share {
    background: #17171f; border: 1px solid #2c2c38; color: #e8e8ec;
    padding: 8px 16px; border-radius: 8px; font-size: 13px; cursor: pointer;
}
.btn-share:hover { border-color: #3a3af0; }

/* ---------- hero (capa em destaque) ---------- */
.article-hero {
    position: relative;
    min-height: 320px;
    display: flex;
    align-items: flex-end;
    background-size: cover;
    background-position: center;
    margin-top: 12px;
}
.article-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(6,6,10,.92), rgba(6,6,10,.25) 65%, rgba(6,6,10,0));
}
.article-hero-content {
    position: relative;
    z-index: 1;
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
    padding: 28px 20px 24px;
}
.article-hero-content .entity-type-label { margin-top: 0; color: #d3d3dc; font-size: 13px; }
.article-hero-content h1 { margin: 4px 0 0; font-size: 30px; color: #fff; line-height: 1.2; }
.article-hero-subtitle { color: #e2e2e8; font-size: 17px; margin: 8px 0 0; }
.entity-fields dt { color: #9a9aad; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; margin-top: 16px; }
.entity-fields dd { margin: 4px 0 0; }
.entity-fields img { max-width: 100%; border-radius: 8px; }
.related ul { list-style: none; padding: 0; }
.related li { padding: 6px 0; border-bottom: 1px solid #1e1e28; }
.rel-type { color: #6f6f80; font-size: 13px; }

/* ---------- browse.php (listagem por tipo, paginada) ---------- */
.hint-count { color: #6f6f80; font-size: 14px; font-weight: normal; }
.toolbar { display: flex; gap: 16px; align-items: center; margin-top: 24px; color: #9a9aad; font-size: 14px; }

/* ---------- campo tipo "gallery" + lightbox ---------- */
.entity-gallery-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px;
    margin: 20px 0;
}
.entity-gallery-thumb-link { display: block; border-radius: 8px; overflow: hidden; aspect-ratio: 2/3; }
.entity-gallery-thumb { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .15s ease; }
@media (hover: hover) and (pointer: fine) {
    .entity-gallery-thumb-link:hover .entity-gallery-thumb { transform: scale(1.05); }
}
.lightbox {
    position: fixed; inset: 0; z-index: 100; background: rgba(6,6,10,.96);
    display: flex; align-items: center; justify-content: center;
}
.lightbox[hidden] { display: none; }
.lightbox-img { max-width: 92vw; max-height: 88vh; object-fit: contain; }
.lightbox-close, .lightbox-prev, .lightbox-next {
    position: absolute; background: rgba(255,255,255,.08); color: #fff; border: none; border-radius: 50%;
    cursor: pointer; font-size: 22px; line-height: 1; display: flex; align-items: center; justify-content: center;
}
.lightbox-close { top: 16px; right: 16px; width: 40px; height: 40px; }
.lightbox-prev, .lightbox-next { top: 50%; transform: translateY(-50%); width: 48px; height: 48px; font-size: 28px; }
.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { background: rgba(255,255,255,.18); }
.lightbox-counter { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); color: #c2c2cc; font-size: 13px; }

/* ---------- blocos de conteúdo ---------- */
.content-blocks { max-width: 720px; margin-top: 8px; }
.content-blocks h2, .content-blocks h3, .content-blocks h4 { margin-top: 32px; margin-bottom: 8px; color: #f2f2f5; }
.content-blocks p { margin: 0 0 16px; }
.content-blocks a { color: #8fb8ff; }
.block-prose h2, .block-prose h3 { margin: 28px 0 8px; color: #f2f2f5; }
.block-prose p { margin: 0 0 16px; }
.block-prose ul, .block-prose ol { margin: 0 0 16px; padding-left: 24px; }
.block-prose li { margin-bottom: 6px; }
.block-prose a { color: #8fb8ff; }
.block-image { margin: 20px 0; }
.block-image img { max-width: 100%; border-radius: 10px; display: block; width: 100%; }
.block-image figcaption { color: #9a9aad; font-size: 13px; margin-top: 6px; }
.block-image.block-image-w-small { max-width: 240px; }
.block-image.block-image-w-medium { max-width: 480px; }
.block-image.block-image-w-large { max-width: 720px; }
.block-image.block-image-w-full { max-width: 100%; }
.block-image.block-image-align-left { margin-right: auto; }
.block-image.block-image-align-center { margin-left: auto; margin-right: auto; }
.block-image.block-image-align-right { margin-left: auto; }
.block-link { margin: 20px 0; }
.block-link a {
    display: inline-block; background: #17171f; border: 1px solid #3a3af0; color: #8fb8ff;
    padding: 10px 16px; border-radius: 8px; text-decoration: none; font-weight: bold;
}
.block-entity-ref {
    display: inline-flex; flex-direction: column; gap: 2px; background: #17171f; border: 1px solid #2c2c38;
    border-radius: 10px; padding: 10px 14px; margin: 12px 0; text-decoration: none; max-width: 320px;
}
.block-entity-ref-type { color: #6f6f80; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; }
.block-entity-ref-title { color: #e8e8ec; font-weight: bold; }
.block-entity-ref:hover { border-color: #3a3af0; }
.block-embed { position: relative; padding-top: 56.25%; margin: 20px 0; background: #17171f; border-radius: 10px; overflow: hidden; }
.block-embed iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none; }
