:root {
    --blue: #0288d1;
    --blue-dark: #0277bd;
    --ink: #333;
    --text: #444;
    --muted: #999;
    --line: #ddd;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: #eee; color: var(--text); font: 16px/1.6 "Open Sans", Arial, sans-serif; }
img { display: block; max-width: 100%; }
a { color: var(--blue); text-decoration: none; }
h1, h2, h3, h4 { font-family: Lato, Arial, sans-serif; color: var(--ink); margin: 0; overflow-wrap: anywhere; }
h2 a, h4 a { color: inherit; }
h2 a:hover, h4 a:hover { color: var(--blue); }
.wrap { max-width: 1300px; margin: 0 auto; padding: 0 20px; }
.icon { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.icon-btn { background: none; border: 0; color: #fff; cursor: pointer; padding: 8px; font-size: 18px; display: inline-flex; }
.btn { display: inline-block; background: var(--blue); color: #fff; border: 0; border-radius: 2px; padding: 8px 22px; font: 400 14px/24px "Open Sans", sans-serif; text-transform: uppercase; cursor: pointer; }
.btn:hover { background: var(--blue-dark); }
.mobile-only { display: none !important; }

/* Cabeçalho */
.topbar { background: #111; color: #aaa; font-size: 13px; }
.topbar .wrap { height: 40px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.topbar nav { display: flex; gap: 20px; text-transform: uppercase; }
.topbar a { color: #aaa; }
.topbar a:hover { color: #fff; }
.topbar .date { justify-self: end; }
.brandbar { background: var(--blue-dark); color: #fff; }
.brandbar .wrap { height: 120px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.logo { width: 298px; flex: none; }
.logo img { width: auto; height: auto; max-height: 76px; }
.mini-logo img { width: auto; max-height: 32px; }
.footer-logo { width: 175px; margin-bottom: 10px; }
.header-ad { flex: 0 1 728px; min-width: 0; }
.header-ad .ad { height: 72px; margin: 0; }
.navbar { background: var(--blue); position: sticky; top: 0; z-index: 20; }
.navbar > .wrap { display: flex; align-items: center; min-height: 50px; }
.navbar nav { display: flex; flex-wrap: wrap; }
.navbar nav a { color: #fff; font: 600 14px/50px "Open Sans", sans-serif; text-transform: uppercase; padding: 0 13px; }
.navbar nav a:hover, .navbar nav a.active { background: rgba(255, 255, 255, .2); }
.navbar .social { margin-left: auto; display: flex; }
.navbar .social a { color: #fff; padding: 8px; display: flex; }
.mini-logo { display: none; margin-right: 20px; }
.navbar.stuck { box-shadow: 0 2px 6px rgba(0, 0, 0, .2); }
.navbar.stuck .mini-logo { display: block; }
.search-drop { background: var(--blue-dark); padding: 12px 0; }
.search-drop .wrap, .search-page { display: flex; gap: 10px; }
.search-drop input, .search-page input { flex: 1; min-width: 0; border: 1px solid var(--line); padding: 10px 14px; font: inherit; }

/* Estrutura */
.box { max-width: 1300px; margin: 0 auto; background: #fff; padding: 30px 30px 10px; min-height: 400px; }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 30px; margin-bottom: 30px; }
.sidebar section { margin-bottom: 30px; }
.sidebar .sticky { position: sticky; top: 70px; }
.head { display: flex; align-items: center; justify-content: space-between; gap: 14px; border-bottom: 2px solid var(--ink); margin: 0 0 20px; min-height: 34px; font: 700 16px/1 Lato, sans-serif; }
.head > span, .head > h1 { align-self: stretch; display: flex; align-items: center; background: var(--ink); color: #fff; padding: 0 14px; font: 700 16px/1.3 Lato, sans-serif; }
.head > span a { color: #fff; }
.head > h1 { margin-right: auto; }
.head.colored { border-color: var(--cat); }
.head.colored > span, .head.colored > h1 { background: var(--cat); }
.head > span:only-child { margin-right: auto; }
.more { border: 1px solid var(--line); color: var(--text); font: 400 11px/22px "Open Sans", sans-serif; text-transform: uppercase; padding: 0 12px; margin-bottom: 4px; }
.subcats { display: flex; flex-wrap: wrap; gap: 14px; font: 400 13px "Open Sans", sans-serif; }
.subcats a { color: var(--text); }
.empty { padding: 30px 0; color: var(--muted); }

.ad { display: flex; align-items: center; justify-content: center; flex-direction: column; background: #f4f6f7; border: 1px dashed #b0bec5; color: #78909c; font-size: 12px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 25px; }
.ad-abaixo-destaques, .ad-fim-materia { width: 100%; aspect-ratio: 980 / 90; min-height: 60px; }
.ad-lateral, .ad-lateral-topo { width: 100%; max-width: 300px; aspect-ratio: 300 / 250; margin-inline: auto; }

/* Colunistas */
.columnist { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 40px; margin-bottom: 50px; }
.columnist img { display: block; width: 100%; aspect-ratio: 1; height: auto; object-fit: cover; margin-bottom: 20px; }
.columnist h2 { font-size: 32px; line-height: 40px; margin: 0 0 8px; }
.columnist p, .profile p { white-space: pre-line; margin: 10px 0 0; }
.column-name { display: block; font: 700 15px/1.4 Lato, sans-serif; text-transform: uppercase; color: var(--muted); }
.profile { display: flex; gap: 25px; margin-bottom: 30px; }
.profile > img { width: 160px; height: 160px; object-fit: cover; flex: none; }
.profile h1 { font-size: 30px; line-height: 38px; margin: 0 0 4px; }
.profile-links { display: flex; gap: 12px; margin-top: 10px; }
.byline { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; color: var(--ink); }
.byline img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.byline b, .byline small { display: block; line-height: 1.35; }
.byline small { color: var(--muted); }
.author .btn { display: inline-block; margin-top: 10px; }
@media (max-width: 640px) {
    .columnist { grid-template-columns: minmax(0, 1fr); gap: 10px; }
    .columnist img, .columnist .btn { max-width: 300px; }
    .columnist > div:first-child { display: contents; }
    .columnist .btn { order: 1; justify-self: start; }
    .profile { flex-direction: column; }
}

/* Banners */
.ad-slot { margin-bottom: 25px; text-align: center; min-width: 0; width: 100%; }
.ad-slot picture, .ad-slot a { display: block; }
.ad-slot img { display: block; max-width: 100%; height: auto; margin-inline: auto; }
.header-ad .ad-slot { margin: 0; }
.header-ad .ad-slot img { max-height: 90px; width: auto; }
.single .body .ad-slot { margin: 10px 0 25px; }
@media (max-width: 991px) { .ad-only-desktop { display: none; } }
@media (min-width: 992px) { .ad-only-mobile { display: none; } }

/* Selos e metadados */
.badges a { color: var(--cat); font-size: 13px; text-transform: uppercase; }
.badges a + a::before { content: "•"; margin: 0 5px; color: var(--muted); }
.meta { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); font-size: 13px; }

/* Destaques sobre foto */
.overlay { position: relative; overflow: hidden; background: #222; }
.overlay .cover { position: absolute; inset: 0; }
.overlay .cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.overlay .cover::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .35); transition: background .3s; }
.overlay:hover .cover img, .overlay:focus-within .cover img { transform: scale(1.06); }
.overlay:hover .cover::after, .overlay:focus-within .cover::after { background: rgba(0, 0, 0, .65); }
.overlay .caption { position: absolute; left: 20px; right: 20px; bottom: 20px; color: #fff; pointer-events: none; }
.overlay .caption a { pointer-events: auto; }
.overlay .badges { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 8px; }
.overlay .badges a { background: var(--cat); color: #fff; padding: 5px 8px; line-height: 18px; border-radius: 2px; }
.overlay .badges a + a::before { content: none; }
.overlay h2 { color: #fff; font-size: 19px; line-height: 27px; margin-bottom: 5px; }
.overlay h2 a:hover { color: #fff; }
.overlay .meta { color: #fff; }
.excerpt { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows .3s, opacity .3s; }
.excerpt p { overflow: hidden; margin: 0; font-size: 14px; }
.overlay:hover .excerpt, .overlay:focus-within .excerpt { grid-template-rows: 1fr; opacity: 1; }
.excerpt p::before { content: ""; display: block; height: 10px; }

.hero { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 40px; }
.hero .overlay { height: 520px; }
.overlay.small { height: 189px; margin-bottom: 18px; text-align: center; }
.overlay.small .caption { left: 12px; right: 12px; bottom: 12px; }
.overlay.small .badges { justify-content: center; }
.overlay.small h2 { font-size: 16px; line-height: 23px; }
.overlay.big { aspect-ratio: 990 / 556; margin-bottom: 30px; text-align: center; }
.overlay.big .caption { top: 0; bottom: 0; left: 8%; right: 8%; display: flex; flex-direction: column; justify-content: center; align-items: center; }
.overlay.big h2 { font-size: 28px; line-height: 36px; margin-bottom: 10px; }
.overlay.featured .cover::after { background: rgba(0, 0, 0, .15); }
.overlay.featured .caption { top: auto; bottom: 30px; left: 40px; right: 40px; background: #fff; color: var(--text); padding: 24px; align-items: flex-start; text-align: left; }
.overlay.featured h2, .overlay.featured h2 a:hover { color: var(--ink); }
.overlay.featured .meta { color: var(--muted); }
.overlay.featured .excerpt { grid-template-rows: 1fr; opacity: 1; }

.columns { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-bottom: 20px; }
.mini { display: flex; gap: 14px; margin-bottom: 16px; }
.mini .thumb { flex: 0 0 74px; }
.mini .thumb img { width: 74px; height: 55px; object-fit: cover; }
.mini .badges { display: block; line-height: 1.3; }
.mini .badges a { font-size: 12px; }
.mini h4 { font-size: 14px; line-height: 19px; }

.row-post { display: grid; grid-template-columns: 283px minmax(0, 1fr); gap: 30px; margin-bottom: 30px; }
.row-post .thumb img { width: 100%; aspect-ratio: 3 / 2; height: auto; object-fit: cover; }
.row-post h2 { font-size: 24px; line-height: 31px; margin: 2px 0 6px; }
.row-post p { margin: 12px 0 0; }
.load-more { text-align: center; border-top: 1px solid var(--line); padding: 20px 0; }

.cats { list-style: none; margin: 0; padding: 0; }
.cats li { margin-bottom: 9px; }
.cats a { display: flex; align-items: center; color: var(--text); font-size: 15px; }
.cats a:hover { color: var(--blue); }
.cats b { min-width: 24px; text-align: center; color: #fff; font: 400 12px/24px "Open Sans", sans-serif; padding: 0 3px; margin-right: 10px; }

/* Matéria e páginas */
.single h1 { font-size: 36px; line-height: 44px; margin: 6px 0 14px; }
.single-meta { display: flex; flex-wrap: wrap; gap: 18px; margin-bottom: 20px; }
.single figure { margin: 0 0 25px; }
.single figure img { width: 100%; height: auto; }
figcaption { font-size: 12px; color: var(--muted); padding-top: 5px; }
.body { margin-bottom: 30px; overflow-wrap: anywhere; }
.body img { height: auto; }
.video { aspect-ratio: 16 / 9; margin: 20px 0; }
.video iframe { width: 100%; height: 100%; border: 0; }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 20px; }
.share a { color: #fff; min-width: 40px; text-align: center; padding: 6px 12px; font-size: 14px; border-radius: 2px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; border-top: 1px solid var(--line); padding-top: 20px; margin-bottom: 30px; font-size: 14px; }
.tags b { background: var(--ink); color: #fff; padding: 3px 12px; font-weight: 400; }
.tags a { background: #eee; color: var(--text); padding: 3px 10px; }
.author { display: flex; gap: 20px; margin-bottom: 30px; }
.author img { width: 80px; height: 80px; object-fit: cover; flex: none; }
.author p { margin: 6px 0 0; font-size: 15px; white-space: pre-line; }
.prev-next { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; border-top: 1px solid var(--line); padding-top: 18px; }
.prev-next a { color: var(--ink); font: 700 15px/1.4 Lato, sans-serif; }
.prev-next small { display: block; color: var(--muted); font-weight: 400; }
.prev-next .next { text-align: right; }

.contact { display: grid; gap: 16px; max-width: 640px; margin-bottom: 30px; }
.contact label { display: grid; gap: 4px; font-size: 14px; }
.contact input, .contact textarea { width: 100%; border: 1px solid var(--line); padding: 10px; font: inherit; }
.contact .check { display: flex; align-items: flex-start; gap: 8px; }
.contact .check input { width: auto; margin-top: 5px; }
.contact .btn { justify-self: start; }
.contact .hp { position: absolute; left: -9999px; }
.notice { padding: 12px 16px; border-left: 4px solid; }
.notice p { margin: 0; }
.notice.ok { border-color: #51b500; background: #f1f9ea; }
.notice.error { border-color: #d33; background: #fdeeee; }

/* Rodapé */
footer { background: #222; color: #ddd; }
.footer-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 30px; padding-top: 40px; padding-bottom: 30px; font-size: 15px; }
footer h4 { color: #ddd; font-size: 17px; border-bottom: 1px solid #444; padding-bottom: 8px; margin-bottom: 20px; }
footer ul { margin: 0; padding-left: 20px; }
footer li { margin-bottom: 10px; }
footer li a { color: #ddd; }
footer a:not(.btn):hover { color: var(--blue); }
.tagcloud { display: flex; flex-wrap: wrap; gap: 4px; }
.tagcloud a { background: rgba(221, 221, 221, .1); color: #ddd; font-size: 14px; line-height: 15px; padding: 7px 10px 8px; }
.copyright { background: #111; font-size: 14px; line-height: 20px; padding: 10px 0; }
.to-top { position: fixed; right: 18px; bottom: 18px; background: #333; color: #fff; border: 0; padding: 9px; font-size: 18px; cursor: pointer; display: flex; z-index: 30; }

/* Telas menores */
@media (max-width: 1200px) {
    .header-ad .ad { height: 60px; }
    .logo { width: 240px; }
    .navbar nav a { padding: 0 9px; font-size: 13px; }
}

@media (max-width: 991px) {
    .mobile-only { display: inline-flex !important; }
    .desktop-only, .topbar, .header-ad, .navbar .social, .mini-logo, .navbar.stuck .mini-logo { display: none !important; }
    .brandbar { position: sticky; top: 0; z-index: 25; }
    .brandbar .wrap { height: 70px; }
    .logo { width: auto; text-align: center; }
    .logo img { max-height: 46px; }
    .navbar { position: static; }
    .navbar > .wrap { display: block; min-height: 0; padding: 0; }
    .navbar nav { display: none; }
    .navbar nav.open { display: block; position: fixed; top: 70px; left: 0; right: 0; max-height: calc(100vh - 70px); overflow: auto; background: var(--blue); z-index: 24; }
    .navbar nav a { display: block !important; line-height: 46px; padding: 0 20px; }
    .search-drop { position: fixed; top: 70px; left: 0; right: 0; z-index: 24; }
    .box { padding: 20px 20px 5px; }
    .layout { grid-template-columns: minmax(0, 1fr); }
    .sidebar .sticky { position: static; }
    .hero { grid-template-columns: minmax(0, 1fr); }
    .hero .overlay { height: 335px; }
    .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
    .columns, .footer-cols, .prev-next { grid-template-columns: minmax(0, 1fr); }
    .row-post { grid-template-columns: 110px minmax(0, 1fr); gap: 14px; margin-bottom: 20px; }
    .row-post h2 { font-size: 16px; line-height: 22px; }
    .row-post p { display: none; }
    .overlay.big { aspect-ratio: 4 / 3; }
    .overlay.big h2 { font-size: 20px; line-height: 27px; }
    .overlay.featured { aspect-ratio: auto; height: 420px; }
    .overlay.featured .caption { left: 12px; right: 12px; bottom: 12px; padding: 16px; }
    .overlay.featured .excerpt { display: none; }
    .single h1 { font-size: 28px; line-height: 35px; }
    .prev-next .next { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; }
}
