/* ===== Paleta e tipografia fiéis ao tema Soledad da Praxe Literária ===== */
:root {
    --accent: #bf1eb4;        /* rosa/magenta da marca */
    --accent-dark: #961c96;
    --highlight: #eeee22;     /* amarelo (estado ativo) */
    --ink: #222;
    --muted: #888;
    --line: #ececec;
    --bg: #ffffff;
    --soft: #f7f7f7;
    --footer-bg: #191919;
    --footer-copy-bg: #111111;
    --max: 1180px;
    --serif: 'Playfair Display', Georgia, serif;
    --sans: 'Roboto', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.65; }
a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--accent); }
img { max-width: 100%; height: auto; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* ===== Cabeçalho: logo à esquerda + menu magenta + ícones (estilo Soledad) ===== */
.site-header { background: var(--bg); border-bottom: 3px solid var(--accent); position: sticky; top: 0; z-index: 100; }
.header-inner { display: flex; align-items: center; gap: 20px; padding: 12px 20px; }
.brand { flex: none; }
.brand img { height: 70px; width: auto; display: block; }

.main-nav { flex: 1; }
.menu { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 2px; margin: 0; padding: 0; width: 100%; }
.menu > li { position: relative; }
.menu > li > a { display: inline-block; color: var(--accent); font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; padding: 16px 12px; white-space: nowrap; }
.menu > li.has-sub > a::after { content: "▾"; display: inline-block; font-size: .62rem; margin-left: 5px; vertical-align: .08em; }
.menu > li > a:hover { color: var(--highlight); }
.menu > li.active > a { color: var(--highlight); }

/* Submenus (dropdown via hover, sem JS) */
.submenu { list-style: none; margin: 0; padding: 8px 0; position: absolute; top: 100%; left: 0; min-width: 200px; background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--accent); box-shadow: 0 10px 30px rgba(0,0,0,.12); opacity: 0; visibility: hidden; transform: translateY(6px); transition: .15s; z-index: 120; }
.menu > li.has-sub:hover > .submenu, .menu > li.has-sub:focus-within > .submenu { opacity: 1; visibility: visible; transform: translateY(0); }
.submenu li a { display: block; color: var(--ink); font-size: .85rem; font-weight: 600; padding: 8px 18px; text-transform: none; }
.submenu li a:hover { color: var(--accent); background: var(--soft); }

/* Ícones sociais + busca */
.header-icons { flex: none; display: flex; align-items: center; gap: 14px; }
.header-icons > a, .nav-search summary { color: var(--accent); cursor: pointer; display: inline-flex; align-items: center; }
.header-icons > a:hover, .nav-search summary:hover { color: var(--highlight); }
.nav-search { position: relative; }
.nav-search summary { list-style: none; font-size: 1rem; }
.nav-search summary::-webkit-details-marker { display: none; }
.nav-search form { position: absolute; right: 0; top: 130%; display: flex; background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--accent); border-radius: 4px; padding: 6px; box-shadow: 0 10px 30px rgba(0,0,0,.12); z-index: 120; }
.nav-search input { border: 1px solid var(--line); border-radius: 4px; padding: 6px 10px; font-size: .85rem; width: 170px; }
.nav-search button { border: 0; background: var(--accent); color: #fff; border-radius: 4px; padding: 0 12px; margin-left: 6px; cursor: pointer; }

/* Botão hambúrguer (visível apenas no mobile; toggle via checkbox, sem JS) */
.nav-toggle { display: none; }
/* Acordeão dos submenus só existe no mobile; no desktop o hover cuida disso */
.sub-toggle { display: none; }
.sub-caret { display: none; }
.nav-burger { display: none; flex-direction: column; align-items: center; justify-content: center; gap: 5px; width: 44px; height: 44px; padding: 0; border: 0; background: transparent; cursor: pointer; flex: none; }
.nav-burger span { width: 24px; height: 2px; background: var(--accent); border-radius: 2px; transition: transform .2s ease, opacity .15s ease; }

/* ===== Etiqueta de seção (magazine) ===== */
.section-head { display: flex; align-items: center; margin: 0 0 22px; }
.section-head h2 { font-family: var(--sans); font-size: 1.15rem; font-weight: 800; text-transform: uppercase; letter-spacing: .5px; margin: 0; padding: 8px 16px; background: var(--accent); color: #fff; }
.section-head .rule { flex: 1; height: 1px; background: var(--line); }

.cat-label { display: inline-block; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--accent); }

/* ===== Conteúdo / grid principal ===== */
.site-main { padding: 28px 0 50px; }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 40px; align-items: start; }
.layout > * { min-width: 0; }

/* ===== Mosaico de destaque (penci-big-grid) ===== */
.mosaic { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 200px 200px; gap: 14px; margin-bottom: 40px; }
.mosaic .tile { position: relative; overflow: hidden; border-radius: 4px; background: #ddd center/cover no-repeat; display: flex; align-items: flex-end; }
.mosaic .tile.big { grid-row: span 2; grid-column: 1; }
.mosaic .tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 35%, rgba(0,0,0,.82)); }
.mosaic .tile .cap { position: relative; z-index: 2; padding: 16px; color: #fff; }
.mosaic .tile .cap .cat-label { color: var(--highlight); }
.mosaic .tile .cap h3 { margin: 6px 0 0; font-size: 1rem; line-height: 1.3; font-weight: 700; }
.mosaic .tile.big .cap h3 { font-size: 1.6rem; }
.mosaic .tile .cap a { color: #fff; }
.mosaic .tile .cap a:hover { color: var(--highlight); }

/* ===== Cards verticais de destaque (carrossel Soledad) ===== */
.carousel { position: relative; margin-bottom: 40px; }
.carousel-track { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; -ms-overflow-style: none; padding-bottom: 4px; }
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track > .feat-card { flex: 0 0 calc((100% - 54px) / 4); scroll-snap-align: start; } /* 4 visíveis (3 gaps de 18px) */
.carousel-arrow { position: absolute; top: calc(50% - 30px); transform: translateY(-50%); width: 42px; height: 42px; border: 0; border-radius: 50%; background: rgba(25,25,25,.55); color: #fff; font-size: 1.5rem; line-height: 1; cursor: pointer; z-index: 5; display: flex; align-items: center; justify-content: center; transition: background .15s; }
.carousel-arrow:hover { background: var(--accent); }
.carousel-arrow.prev { left: -8px; }
.carousel-arrow.next { right: -8px; }
.feat-card { display: flex; flex-direction: column; }
.feat-card .img { aspect-ratio: 3/4; background: var(--soft) center/cover no-repeat; border-radius: 4px; }
.feat-card .box { position: relative; margin: -46px 14px 0; background: #fff; border: 1px solid var(--line); border-radius: 4px; padding: 14px; text-align: center; box-shadow: 0 8px 20px rgba(0,0,0,.08); min-height: 118px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.feat-card .pill { display: inline-block; font-size: .66rem; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: #fff; background: var(--accent); border-radius: 999px; padding: 3px 10px; margin-bottom: 8px; }
.feat-card h3 { font-family: var(--serif); font-size: 1rem; line-height: 1.3; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.feat-card h3 a { color: var(--ink); }
.feat-card h3 a:hover { color: var(--accent); }

/* ===== Listagem centralizada (arquivo "featured") ===== */
.feature-list { display: flex; flex-direction: column; gap: 46px; }
.feature-item { text-align: center; }
.feature-item .ft-image { display: block; border-radius: 6px; overflow: hidden; }
.feature-item .ft-image img, .feature-item .ft-image .ph { width: 100%; aspect-ratio: 16/9; object-fit: cover; background: var(--soft); display: block; }
.feature-item .ft-cats { margin: 18px 0 6px; font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }
.feature-item .ft-cats a { color: var(--accent); }
.feature-item h2 { font-family: var(--serif); font-size: 1.7rem; margin: 0 0 10px; }
.feature-item h2 a { color: var(--ink); }
.feature-item h2 a:hover { color: var(--accent); }
.feature-item .ft-meta { color: var(--muted); font-size: .82rem; position: relative; padding-bottom: 14px; margin-bottom: 14px; }
.feature-item .ft-meta::after { content: ""; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); width: 60px; height: 2px; background: var(--accent); }
.feature-item .ft-meta strong { color: var(--accent); }
.feature-item .excerpt { color: #555; max-width: 680px; margin: 0 auto 18px; }
.btn-readmore { display: inline-block; background: var(--accent); color: #fff; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; padding: 11px 26px; border-radius: 3px; }
.btn-readmore:hover { background: var(--accent-dark); color: #fff; }

/* ===== Lista de posts (estilo revista) ===== */
.post-list { display: flex; flex-direction: column; gap: 30px; }
.post-row { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 22px; }
.post-row .thumb { aspect-ratio: 16/10; background: var(--soft) center/cover no-repeat; border-radius: 4px; display: block; }
.post-row h2 { font-family: var(--serif); font-size: 1.5rem; line-height: 1.25; margin: 8px 0 10px; }
.post-row .excerpt { color: #555; margin: 0 0 10px; }
.post-row .meta { color: var(--muted); font-size: .82rem; }

/* Grade de cartões (categoria/tag/busca) */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 26px; }
.post-card { display: flex; flex-direction: column; }
.post-card .thumb { aspect-ratio: 16/10; background: var(--soft) center/cover no-repeat; border-radius: 4px; }
.post-card h2 { font-family: var(--serif); font-size: 1.2rem; line-height: 1.3; margin: 10px 0 8px; }
.post-card .excerpt { color: #555; font-size: .9rem; margin: 0 0 8px; }
.post-card .meta { color: var(--muted); font-size: .78rem; }
.post-card .read-more { display: inline-block; margin-top: 10px; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--accent); }
.post-card .read-more:hover { color: var(--accent-dark); }

/* ===== Sidebar (boxed, heading escuro style-15) ===== */
.sidebar { display: flex; flex-direction: column; gap: 30px; }
.widget { border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
.widget .widget-title { background: var(--accent); color: #fff; font-size: .85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; padding: 12px 16px; margin: 0; }
.widget .widget-body { padding: 16px; }
.widget.about { text-align: center; }
.widget.about img { height: 110px; width: auto; margin: 4px auto 10px; }
.widget.about p { color: #666; font-size: .9rem; margin: 0; }

/* Widget "Quem escreve" (foto + bio, cabeçalho leve) */
.widget.author { border: 1px solid var(--line); border-radius: 4px; padding: 28px 22px; text-align: center; }
.widget.author .author-photo { width: 132px; height: 132px; border-radius: 50%; object-fit: cover; display: block; margin: 0 auto 16px; }
.widget.author .author-title { font-family: var(--serif); font-size: 1.2rem; font-weight: 600; color: var(--ink); margin: 0 0 16px; padding-bottom: 12px; position: relative; }
.widget.author .author-title::after { content: ""; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); width: 50px; height: 2px; background: var(--accent); }
.widget.author .author-bio { color: #6a6a6a; font-size: .9rem; line-height: 1.75; margin: 0; text-align: justify; text-align-last: center; }
.sidebar-news .widget-body { display: flex; flex-direction: column; gap: 10px; }
.sidebar-news p { color: #666; font-size: .9rem; line-height: 1.55; margin: 0; }
.sidebar-news input { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 6px; font: inherit; font-size: .9rem; margin-bottom: 8px; }
.sidebar-news button { width: 100%; background: #7b1e2e; color: #fff; border: 0; border-radius: 6px; padding: 10px 14px; font-weight: 800; text-transform: uppercase; letter-spacing: .5px; cursor: pointer; }
.sidebar-news button:hover { background: #5e1622; }
.sidebar-news .news-ok { color: #2e7d32; font-weight: 700; }
.sidebar-news .validation-message { color: #c62828; font-size: .8rem; }
.widget .mini { display: flex; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--line); }
.widget .mini:first-child { border-top: 0; }
.widget .mini .mini-thumb { width: 70px; height: 56px; flex: none; background: var(--soft) center/cover no-repeat; border-radius: 4px; }
.widget .mini h4 { font-size: .9rem; margin: 0 0 4px; line-height: 1.3; font-weight: 600; }
.widget .mini .meta { color: var(--muted); font-size: .74rem; }
.widget .cat-list { list-style: none; margin: 0; padding: 0; }
.widget .cat-list li { display: flex; justify-content: space-between; padding: 9px 16px; border-top: 1px solid var(--line); font-size: .9rem; }
.widget .cat-list li:first-child { border-top: 0; }
.widget .cat-list .count { background: var(--soft); color: var(--muted); border-radius: 999px; padding: 0 9px; font-size: .76rem; }

/* ===== Post individual (single style-6) ===== */
.breadcrumb { font-size: .8rem; color: var(--muted); margin-bottom: 14px; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--accent); }
.article h1 { font-family: var(--serif); font-size: 2.4rem; line-height: 1.2; margin: 8px 0 14px; }
h1:focus, h1:focus-visible { outline: none; }
.article .article-meta { color: var(--muted); font-size: .88rem; border-bottom: 1px solid var(--line); padding-bottom: 16px; margin-bottom: 22px; }
.article .article-meta strong { color: var(--accent); }
.article .featured-image { width: 100%; border-radius: 6px; margin-bottom: 24px; }
.share-box { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: -6px 0 24px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.share-btn { height: 44px; border: 0; border-radius: 10px; background: #f4f4f5; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: transform .15s, background .15s, color .15s; }
.share-btn svg { width: 24px; height: 24px; fill: currentColor; display: block; }
.share-btn:hover { color: #fff; transform: translateY(-2px); }
.share-btn.instagram { color: #c13584; }
.share-btn.facebook { color: #1877f2; }
.share-btn.whatsapp { color: #00c853; }
.share-btn.native { color: #555; }
.share-btn.instagram:hover { background: linear-gradient(135deg, #f58529, #dd2a7b 45%, #8134af); color: #fff; }
.share-btn.facebook:hover { background: #1877f2; color: #fff; }
.share-btn.whatsapp:hover { background: #00c853; color: #fff; }
.share-btn.native:hover { background: #555; color: #fff; }
.article-body { font-size: 1.08rem; line-height: 1.85; overflow-wrap: anywhere; }
.article-body img, .article-body iframe, .article-body video, .article-body table { max-width: 100%; height: auto; }
.article-body p { margin: 0 0 1.25em; }
.article-body img { border-radius: 6px; }
.article-body h2, .article-body h3 { font-family: var(--serif); margin-top: 1.6em; }
.article-body ul, .article-body ol { padding-left: 1.4em; }
.article-body blockquote { border-left: 4px solid var(--accent); margin: 1.3em 0; padding: .5em 1.3em; color: #555; font-style: italic; background: var(--soft); }
/* Vídeos embedados: responsivos, proporção 16:9, ignorando width/height fixos do embed. */
.article-body iframe { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; margin: 16px auto; border: 0; border-radius: 6px; }
.tags { margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px; }
.tag-pill { font-size: .78rem; background: var(--soft); border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; color: #666; }
.tag-pill:hover { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ===== Cabeçalho de página/arquivo ===== */
.page-head { border-bottom: 2px solid var(--accent); margin-bottom: 28px; padding-bottom: 12px; }
.page-head h1 { font-family: var(--serif); font-size: 2rem; margin: 0; }
.page-head .sub { color: var(--muted); font-size: .9rem; }

/* ===== Paginação ===== */
.pagination { display: flex; justify-content: center; gap: 10px; margin-top: 40px; }
.pagination a, .pagination span { padding: 8px 16px; border: 1px solid var(--line); border-radius: 4px; font-size: .85rem; }
.pagination a:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.pagination .disabled { color: var(--muted); opacity: .5; }

/* ===== Formulário ===== */
.form-card { border: 1px solid var(--line); border-radius: 6px; padding: 28px; }
.form-card label { display: block; font-weight: 600; margin: 14px 0 6px; font-size: .9rem; }
.form-card input, .form-card textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 4px; font-family: inherit; font-size: 1rem; }
.form-card textarea { min-height: 140px; resize: vertical; }
.btn { display: inline-block; background: var(--accent); color: #fff; border: 0; border-radius: 4px; padding: 11px 24px; font-size: 1rem; font-weight: 600; cursor: pointer; margin-top: 18px; }
.btn:hover { background: var(--accent-dark); color: #fff; }
.alert-success { background: #ecf9ec; border: 1px solid #bfe3bf; color: #2f6b2f; padding: 14px 16px; border-radius: 6px; margin-bottom: 18px; }
.validation-message, .text-danger { color: #c62828; font-size: .85rem; }

/* ===== Rodapé escuro ===== */
.site-footer { background: var(--footer-bg); color: #cfcfcf; margin-top: 50px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1.4fr; gap: 36px; padding: 48px 20px; }
.site-footer h3 { color: #fff; font-size: .95rem; text-transform: uppercase; letter-spacing: 1px; margin: 0 0 16px; padding-bottom: 10px; border-bottom: 1px solid #333; }
.site-footer p { color: #aaa; font-size: .9rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: #cfcfcf; font-size: .9rem; }
.site-footer a:hover { color: var(--accent); }
.footer-about img { height: 90px; margin-bottom: 12px; }
.footer-recent { display: flex; gap: 10px; margin-bottom: 12px; }
.footer-recent .ft-thumb { width: 64px; height: 50px; flex: none; background: #333 center/cover no-repeat; border-radius: 3px; }
.footer-recent h4 { font-size: .85rem; margin: 0; font-weight: 500; }
.footer-recent h4 a { color: #ddd; }
.footer-copy { background: var(--footer-copy-bg); color: #888; font-size: .82rem; padding: 16px 20px; text-align: center; }
.footer-copy a { color: var(--accent); }

.empty-state { text-align: center; color: var(--muted); padding: 60px 20px; }

/* Voltar ao topo */
.scroll-top { position: fixed; right: 24px; bottom: 24px; width: 46px; height: 46px; border: 0; border-radius: 50%; background: var(--accent); color: #fff; box-shadow: 0 10px 24px rgba(0,0,0,.18); cursor: pointer; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .18s, visibility .18s, transform .18s, background .15s; z-index: 90; }
.scroll-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.scroll-top:hover { background: var(--accent-dark); }
.scroll-top svg { fill: currentColor; display: block; }

/* Subcategorias (modalidades / escritores) */
.subcat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.subcat-card { display: flex; flex-direction: column; gap: 12px; border: 1px solid var(--line); border-radius: 6px; padding: 14px; background: #fff; transition: box-shadow .15s, border-color .15s; }
.subcat-card:hover { border-color: var(--accent); box-shadow: 0 6px 18px rgba(0,0,0,.07); }
.subcat-card .preview { width: 100%; aspect-ratio: 16/9; border-radius: 4px; background: var(--soft) center/cover no-repeat; display: flex; align-items: center; justify-content: center; color: var(--accent); font-family: var(--serif); font-size: 2rem; }
.subcat-card .placeholder { background: linear-gradient(135deg, #f9edf8, #f7f7f7); }
.subcat-card .subcat-copy { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.subcat-card .name { font-family: var(--serif); font-size: 1.2rem; color: var(--ink); }
.subcat-card:hover .name { color: var(--accent); }
.subcat-card .count { font-size: .8rem; color: var(--muted); }

/* ===== Calendário "Arquivo do blog" ===== */
.cal-widget { scroll-margin-top: 90px; } /* compensa o cabeçalho fixo ao ancorar via #arquivo-blog */
.cal-widget .cal { padding: 14px 16px 18px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.cal-title { font-family: var(--serif); font-weight: 600; font-size: 1rem; color: var(--ink); text-transform: lowercase; }
.cal-nav { width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; color: var(--accent); font-size: 1.2rem; line-height: 1; }
.cal-nav:hover { background: var(--accent); color: #fff; }
.cal-nav.disabled { color: var(--line); pointer-events: none; }
.cal-grid { width: 100%; border-collapse: collapse; table-layout: fixed; }
.cal-grid th { font-size: .7rem; font-weight: 700; color: var(--muted); text-transform: uppercase; padding: 6px 0; }
.cal-grid td { text-align: center; font-size: .82rem; padding: 2px 0; height: 34px; color: var(--ink); }
.cal-grid td.off { color: #c9c9c9; }
.cal-grid td.has-post a { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; color: var(--accent); font-weight: 700; transition: background .15s, color .15s; }
.cal-grid td.has-post a:hover { background: var(--accent); color: #fff; }
.cal-grid td.has-post.active a { background: var(--accent); color: #fff; }
.cal-empty { color: var(--muted); font-size: .85rem; margin: 0; }

/* Ícones sociais do rodapé */
.footer-social { display: flex; gap: 12px; margin-top: 14px; }
.footer-social a { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid #3a342d; color: #cfcfcf; }
.footer-social a:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ===== Responsivo ===== */
@media (max-width: 920px) {
    .layout { grid-template-columns: 1fr; }
    .mosaic { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
    .mosaic .tile { min-height: 180px; }
    .mosaic .tile.big { grid-row: auto; grid-column: span 2; min-height: 240px; }
    .carousel-track > .feat-card { flex-basis: calc((100% - 18px) / 2); } /* 2 visíveis */
    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
    .site-header { position: sticky; top: 0; }
    .header-inner { flex-wrap: wrap; align-items: center; gap: 10px 14px; }
    .brand { order: 1; margin-right: auto; }
    .header-icons { order: 2; }
    .nav-burger { display: flex; order: 3; }

    /* Painel do menu: escondido até abrir o hambúrguer; animação do ícone em X */
    .main-nav { order: 4; flex: 0 0 100%; width: 100%; display: none; }
    .nav-toggle:checked ~ .main-nav { display: block; }
    .nav-toggle:checked ~ .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .nav-toggle:checked ~ .nav-burger span:nth-child(2) { opacity: 0; }
    .nav-toggle:checked ~ .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

    .menu { flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 0; width: 100%; max-height: 74vh; overflow-y: auto; border-top: 1px solid var(--line); }
    .menu > li { width: 100%; }
    .menu > li.has-sub { position: relative; }
    .menu > li > a { display: block; padding: 13px 4px; border-bottom: 1px solid var(--line); }
    .menu > li.has-sub > a { padding-right: 52px; }
    .menu > li.has-sub > a::after { content: none; }

    /* Setinha clicável (acordeão) — alvo de toque separado do link */
    .sub-caret { display: flex; align-items: center; justify-content: center; position: absolute; top: 0; right: 0; width: 52px; height: 47px; cursor: pointer; border-bottom: 1px solid var(--line); }
    .sub-caret::before { content: "▾"; color: var(--accent); font-size: .9rem; transition: transform .2s ease; }
    .sub-toggle:checked ~ .sub-caret::before { transform: rotate(180deg); }

    /* Submenus inline (indentados): fechados por padrão; abrem ao marcar o checkbox */
    .submenu { position: static; display: none; opacity: 1; visibility: visible; transform: none; min-width: 0; margin: 0; padding: 4px 0 8px; background: var(--soft); border: 0; box-shadow: none; }
    .sub-toggle:checked ~ .submenu { display: block; }
    .submenu li a { padding: 9px 4px 9px 22px; font-size: .82rem; color: var(--muted); }
    .submenu li a:hover { background: transparent; color: var(--accent); }

    .subcat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
    .post-row { grid-template-columns: 1fr; }
    .brand img { height: 56px; }
    .article h1 { font-size: 1.7rem; }
    .mosaic { grid-template-columns: 1fr; }
    .mosaic .tile.big { grid-column: auto; }
    .carousel-track > .feat-card { flex-basis: calc((100% - 18px) / 2); } /* 2 visíveis no mobile */
    .feature-item h2 { font-size: 1.4rem; }
    .subcat-grid { grid-template-columns: 1fr; }
    .share-box { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .scroll-top { right: 16px; bottom: 16px; width: 42px; height: 42px; }
    /* Folga p/ o texto do copyright não ficar atrás do botão flutuante "voltar ao topo". */
    .footer-copy { padding-bottom: 64px; }
}
@media (max-width: 420px) {
    .container { padding: 0 16px; }
    .header-inner { gap: 12px; padding: 10px 16px; }
    .brand img { height: 50px; }
    .header-icons { gap: 12px; }
    .menu > li > a { font-size: .76rem; padding: 9px 8px; }
    .submenu li a { font-size: .8rem; padding: 6px 12px; }
    .carousel-track > .feat-card { flex-basis: 100%; }
    .carousel-arrow { width: 36px; height: 36px; }
    .mosaic .tile { min-height: 165px; }
    .mosaic .tile.big { min-height: 220px; }
    .article h1 { font-size: 1.55rem; }
    .article-body { font-size: 1rem; }
    .subcat-card .name { font-size: 1.1rem; }
    .footer-grid { padding: 40px 16px; }
}

/* ===== Posicionamento de imagens dentro do conteúdo do post ===== */
/* Via classe (novas edições) */
.article-body img.img-left,
.article-body figure.image.img-left  { float: left;  margin: 4px 32px 16px 0 !important; max-width: 48%; }
.article-body img.img-right,
.article-body figure.image.img-right { float: right; margin: 4px 0  16px 32px !important; max-width: 48%; }
/* Via inline style (posts antigos com float adicionado pelo TinyMCE) */
.article-body img[style*="float: left"],
.article-body figure[style*="float: left"]  { margin-right:  32px !important; margin-bottom: 16px !important; }
.article-body img[style*="float: right"],
.article-body figure[style*="float: right"] { margin-left: 32px !important; margin-bottom: 16px !important; }
.article-body img.img-center,
.article-body figure.image.img-center { display: block; margin: 16px auto; text-align: center; }
.article-body img.img-full,
.article-body figure.image.img-full   { width: 100%; display: block; margin: 16px 0; }
.article-body figure.image.img-full img { width: 100%; }
/* Texto sobreposto à imagem */
.article-body figure.image.img-overlay { position: relative; display: block; margin: 16px 0; }
.article-body figure.image.img-overlay img { width: 100%; display: block; }
.article-body figure.image.img-overlay figcaption {
    position: absolute; bottom: 0; left: 0; right: 0;
    background: rgba(0,0,0,.55); color: #fff;
    padding: 10px 16px; font-size: .95rem; text-align: center;
}
/* Legenda padrão (abaixo da imagem) */
.article-body figure { margin: 16px 0; display: inline-block; }
.article-body figure figcaption { text-align: center; color: var(--muted); font-size: .85rem; margin-top: 5px; }
/* Limpa floats ao final de um bloco com imagem flutuante */
.article-body p + p { clear: none; }
.article-body::after { content: ""; display: table; clear: both; }

/* ===== Card Amazon ===== */
.amazon-card { display: flex; align-items: center; gap: 22px; background: var(--soft); border: 1px solid var(--line); border-radius: 10px; padding: 20px; margin: 32px 0; }
.amazon-cover { width: 110px; height: auto; border-radius: 4px; flex-shrink: 0; box-shadow: 0 4px 14px rgba(0,0,0,.15); }
.amazon-info { display: flex; flex-direction: column; gap: 10px; }
.amazon-label { font-size: .82rem; color: var(--muted); margin: 0; text-transform: uppercase; letter-spacing: .5px; }
.amazon-btn { display: inline-block; background: #f0a22f; color: #111; font-weight: 700; font-size: .92rem; padding: 10px 20px; border-radius: 6px; text-decoration: none; width: fit-content; }
.amazon-btn:hover { background: #e0921f; color: #111; }

/* ===== Comentários ===== */
.comments-section { margin-top: 52px; border-top: 2px solid var(--line); padding-top: 36px; }
.comments-title { font-family: var(--serif); font-size: 1.5rem; margin: 0 0 24px; }
.comment-list { display: flex; flex-direction: column; gap: 24px; margin-bottom: 36px; }
.comment { display: flex; gap: 14px; align-items: flex-start; }
.comment-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink: 0; text-transform: uppercase; }
.comment-body { flex: 1; }
.comment-header { display: flex; gap: 10px; align-items: baseline; margin-bottom: 6px; flex-wrap: wrap; }
.comment-header strong { font-size: .95rem; }
.comment-header time { font-size: .8rem; color: var(--muted); }
.comment-body p { margin: 0; font-size: .95rem; line-height: 1.6; }
.comment-form-wrap { background: var(--soft); border-radius: 10px; padding: 24px; }
.comment-form-wrap h3 { font-family: var(--serif); font-size: 1.15rem; margin: 0 0 18px; }
.comment-form-wrap label { display: block; font-size: .85rem; font-weight: 600; margin: 12px 0 4px; }
.comment-form-wrap label small { font-weight: 400; color: var(--muted); }
.comment-form-wrap input, .comment-form-wrap textarea { width: 100%; padding: 9px 12px; border: 1px solid var(--line); border-radius: 6px; font-family: var(--sans); font-size: .95rem; }
.comment-form-wrap textarea { resize: vertical; }
.comment-form-wrap .btn { margin-top: 14px; display: inline-block; background: var(--accent); color: #fff; font-weight: 700; padding: 10px 22px; border: none; border-radius: 6px; cursor: pointer; font-size: .95rem; }
.comment-form-wrap .btn:hover { background: var(--accent-dark); }
.comment-success { background: #edfaed; border: 1px solid #7ed17e; color: #1a5c1a; border-radius: 8px; padding: 14px 18px; font-size: .95rem; margin-bottom: 8px; }

/* Faixa de pré-visualização (admin vendo rascunho) */
.preview-bar { background: #fff6d6; border: 1px solid #e6cf6a; color: #6b5400; border-radius: 8px; padding: 12px 18px; margin: 0 0 18px; font-size: .92rem; }
.preview-bar a { color: var(--accent); font-weight: 600; margin-left: 8px; }

/* UI de erro do Blazor */
#blazor-error-ui { background: #1d1a17; color: #fff; bottom: 0; display: none; left: 0; padding: 12px 20px; position: fixed; width: 100%; z-index: 1000; }
#blazor-error-ui .dismiss { cursor: pointer; position: absolute; right: 16px; top: 12px; }

/* === Espaços de divulgação (nomes neutros para não acionar bloqueadores) === */
.promo-slot { margin: 0 0 24px; }
.promo-slot .promo-banner { display: block; }
.promo-slot .promo-banner img { display: block; max-width: 100%; height: auto; border-radius: 8px; }
/* Barra lateral: preenche a largura da coluna (estreita). */
.promo-slot.promo-sidebar { margin-bottom: 28px; }
.promo-slot.promo-sidebar .promo-banner img { width: 100%; }
/* Fim do post e meio da home: limita a ALTURA para imagens quadradas/altas
   não estourarem, e centraliza. Faixas largas aparecem no tamanho natural. */
.promo-slot.promo-postbottom { margin: 32px 0; text-align: center; }
.promo-slot.promo-postbottom .promo-banner { display: inline-block; }
.promo-slot.promo-postbottom .promo-banner img { max-height: 280px; width: auto; margin: 0 auto; }
.promo-slot.promo-homemid { margin: 8px 0 32px; text-align: center; }
.promo-slot.promo-homemid .promo-banner { display: inline-block; }
.promo-slot.promo-homemid .promo-banner img { max-height: 300px; width: auto; margin: 0 auto; }
.promo-slot .promo-banner + .promo-banner { margin-top: 12px; }

/* === Newsletter no rodapé === */
.footer-news { margin-top: 22px; }
.footer-news .news-row { display: flex; gap: 8px; margin-top: 10px; max-width: 320px; }
.footer-news input { flex: 1; min-width: 0; padding: 9px 12px; border: 1px solid #3a342d; border-radius: 6px; background: #2a2a2a; color: #fff; font-size: .9rem; }
.footer-news input::placeholder { color: #888; }
.footer-news button { background: var(--accent); color: #fff; border: 0; border-radius: 6px; padding: 9px 16px; font-weight: 700; font-size: .85rem; cursor: pointer; white-space: nowrap; }
.footer-news button:hover { background: var(--accent-dark); }
.footer-news .news-ok { color: #8ed18e; font-weight: 600; }
.footer-news .validation-message { color: #ff9a9a; font-size: .82rem; margin-top: 6px; }

/* === Landing pages === */
.landing-page { width: min(1120px, calc(100% - 32px)); margin: 0 auto 48px; }
.landing-hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(280px, .95fr); gap: 34px; align-items: center; min-height: 430px; padding: 34px 0 42px; }
.landing-hero.no-image { grid-template-columns: minmax(0, 760px); justify-content: center; text-align: center; }
.landing-hero-copy h1 { font-family: var(--serif); font-size: clamp(2.2rem, 5vw, 4.6rem); line-height: 1.02; margin: 0 0 16px; letter-spacing: 0; color: var(--ink); }
.landing-eyebrow { margin: 0 0 12px; color: var(--accent); font-weight: 800; text-transform: uppercase; letter-spacing: .08em; font-size: .82rem; }
.landing-subtitle { margin: 0 0 22px; color: #4d4d4d; font-size: 1.08rem; line-height: 1.6; max-width: 680px; }
.landing-hero img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; box-shadow: 0 18px 44px rgba(0,0,0,.14); }
.landing-cta { display: inline-block; background: var(--accent); color: #fff; border-radius: 6px; padding: 12px 20px; font-weight: 800; text-decoration: none; }
.landing-cta:hover { background: var(--accent-dark); color: #fff; }
.landing-content { max-width: 820px; margin: 0 auto; }
.landing-signup { display: grid; grid-template-columns: minmax(0, .9fr) minmax(320px, 1fr); gap: 28px; align-items: start; margin: 46px auto 0; padding: 30px; background: #faf7fb; border: 1px solid var(--line); border-radius: 8px; }
.landing-signup h2 { font-family: var(--serif); font-size: 2rem; margin: 0 0 10px; }
.landing-signup p { margin: 0; color: #555; line-height: 1.6; }
.landing-form-card { margin: 0; }

@media (max-width: 780px) {
    .landing-hero,
    .landing-signup { grid-template-columns: 1fr; }
    .landing-hero { min-height: 0; padding-top: 20px; }
    .landing-signup { padding: 20px; }
}
