/* seg.news: layout no padrão de portal (barra vermelha, manchete + destaques com foto, feed + lateral). Tema claro único. */
:root {
  --red: #c4170c;
  --red-dark: #a51208;
  --page: #f9f9f9;
  --card: #ffffff;
  --ink: #333333;
  --ink-strong: #111111;
  --muted: #555555;
  --line: #e1e1e1;
  --font: 'Open Sans', Arial, 'Helvetica Neue', Helvetica, sans-serif;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--page); -webkit-text-size-adjust: 100%; }
body { background: var(--page); color: var(--ink); font-family: var(--font); margin: 0; font-size: 16px; line-height: 1.3; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--red); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
:focus-visible { outline: 3px solid #1a73e8; outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 0; background: #fff; padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }
.gutter { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.wrap { max-width: 1160px; margin: 0 auto; }

.family { background: var(--card); border-bottom: 1px solid #eee; }
.family .wrap { display: flex; gap: 20px; height: 38px; align-items: center; overflow-x: auto; scrollbar-width: none; }
.family .wrap::-webkit-scrollbar { display: none; }
.family a { font-size: 13px; font-weight: 700; letter-spacing: -0.3px; white-space: nowrap; padding: 4px 0; border-bottom: 2px solid transparent; }
.family a.on, .family a:hover { border-bottom-color: currentColor; }
.c-all { color: var(--red); } .c-ransomware { color: #d9480f; } .c-vulnerabilidades { color: #1c5bb8; }
.c-vazamentos { color: #0b8a3e; } .c-ameacas { color: #7b2fb5; } .c-policia-e-justica { color: #333; }
.c-governo { color: #0c6e7a; } .c-mercado { color: #8a6100; }

.bar { background: var(--red); position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; }
.bar .wrap { height: 74px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.menu { justify-self: start; position: relative; }
.menu summary { list-style: none; display: flex; align-items: center; gap: 10px; color: #fff; font-size: 13px; font-weight: 700; cursor: pointer; padding: 8px 0; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary svg { width: 22px; height: 22px; }
.drawer { position: absolute; top: calc(100% + 12px); left: 0; background: var(--card); border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,.18); padding: 8px 0; min-width: 240px; display: grid; }
.drawer a { padding: 10px 20px; font-size: 15px; font-weight: 700; color: var(--ink); }
.drawer a:hover { background: #f3f3f3; color: var(--red); }
.logo { display: flex; align-items: center; gap: 6px; color: #fff; }
.logo b { font-size: 34px; font-weight: 800; letter-spacing: -2px; line-height: 1; }
.logo span { border: 1.5px solid #fff; border-radius: 3px; font-size: 14px; font-weight: 600; padding: 1px 5px 2px; letter-spacing: -0.3px; line-height: 1.1; }
.search { justify-self: end; display: flex; align-items: center; gap: 8px; background: var(--red-dark); border-radius: 4px; padding: 0 12px; height: 34px; width: 200px; max-width: 100%; }
.search svg { width: 16px; height: 16px; flex-shrink: 0; }
.search input { background: none; border: 0; color: #fff; font-family: inherit; font-size: 13px; font-weight: 700; width: 100%; min-width: 0; outline: none; }
.search input::placeholder { color: #fff; opacity: 1; text-transform: uppercase; }
.search input::-webkit-search-cancel-button { filter: invert(1); }
.search:focus-within { outline: 2px solid #fff; }

.subbar { background: var(--page); border-bottom: 1px solid #eee; }
.subbar .wrap { height: 36px; display: flex; justify-content: flex-end; align-items: center; gap: 12px; }
.subbar a { color: var(--red); font-size: 13px; font-weight: 600; letter-spacing: -0.2px; margin-left: auto; }
.updated { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: #555; white-space: nowrap; }
.updated::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--red); }

main.wrap { padding-block: 28px 48px; }

.top { display: grid; grid-template-columns: 1.25fr 1fr; gap: 16px; margin-bottom: 40px; }
.hl { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 24px 36px 28px; display: flex; flex-direction: column; justify-content: center; gap: 16px; min-width: 0; }
.chapeu { font-size: 14px; font-weight: 600; letter-spacing: -0.28px; color: var(--ink); }
.hl-title { font-size: 40px; line-height: 48px; font-weight: 700; letter-spacing: -1.8px; color: var(--red); text-wrap: balance; margin: 0; }
.hl-title a:hover, .feed-title a:hover, .leia-item:hover h3, .vuln:hover strong { text-decoration: underline; text-decoration-thickness: 2px; }
.hl-sum { font-size: 16px; line-height: 1.45; margin: 0; }
.side-hl { display: grid; grid-template-rows: 1fr 1fr; gap: 12px; min-width: 0; }
.ov { position: relative; border-radius: 12px; overflow: hidden; min-height: 220px; display: block; background: #2a2a2a; }
.ov img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.ov:hover img { transform: scale(1.03); }
.ov::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.15) 0%, rgba(0,0,0,.55) 45%, rgba(0,0,0,.85) 100%); }
.ov-text { position: absolute; inset: 0; z-index: 1; padding: 20px 40px 22px 20px; display: flex; flex-direction: column; justify-content: flex-end; color: #fff; }
.ov-text .chapeu { color: #fff; font-size: 13px; position: absolute; top: 18px; left: 20px; }
.ov-text h2 { margin: 0; font-size: 24px; line-height: 28px; font-weight: 700; letter-spacing: -0.8px; text-wrap: balance; }

.cols { display: grid; grid-template-columns: minmax(0, 1fr) 362px; gap: 40px; align-items: start; }
.feed { min-width: 0; }
.list-h { font-size: 32px; letter-spacing: -1.2px; color: var(--red); margin: 0 0 8px; }
.feed-post { display: grid; grid-template-columns: 336px minmax(0, 1fr); gap: 20px; padding-block: 24px; border-bottom: 1px solid #dcdcdc; }
.feed-post.no-photo { grid-template-columns: minmax(0, 1fr); }
.feed-img { display: block; border-radius: 12px; overflow: hidden; aspect-ratio: 16 / 9; background: #ddd; }
.feed-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.feed-img:hover img { transform: scale(1.03); }
.feed-body { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.feed-body .chapeu { font-size: 16px; line-height: 17px; letter-spacing: -0.32px; }
.feed-title { margin: 0; font-size: 24px; line-height: 26.4px; font-weight: 700; letter-spacing: -0.84px; color: var(--red); text-wrap: balance; }
.feed-sum { margin: 0; font-size: 15px; line-height: 1.45; }
.meta { font-size: 12px; line-height: 18px; color: var(--muted); letter-spacing: -0.12px; }
.meta a:hover { color: var(--red); }
.empty { padding: 40px 0; color: var(--muted); font-size: 15px; }
.more { padding-block: 28px 8px; text-align: center; }
.more-link { display: inline-block; border: 1px solid var(--line); background: var(--card); border-radius: 20px; padding: 10px 28px; font-size: 14px; font-weight: 700; color: var(--red); }
.more-link:hover { border-color: var(--red); }
.more-link[aria-busy="true"] { color: var(--muted); pointer-events: none; }
.prev { font-size: 14px; } .prev a { color: var(--red); font-weight: 600; }
.search-page { display: flex; gap: 8px; margin: 8px 0 8px; }
.search-page input { flex: 1; min-width: 0; padding: 10px 14px; border: 1px solid var(--line); border-radius: 6px; font: inherit; font-size: 15px; background: var(--card); color: var(--ink); }
.search-page button { padding: 10px 18px; background: var(--red); color: #fff; border: 0; border-radius: 6px; font: inherit; font-weight: 700; cursor: pointer; }

aside { display: grid; gap: 20px; min-width: 0; }
.box { background: var(--card); border: 1px solid #e6e6e6; border-radius: 12px; box-shadow: 0 1px 2px rgba(0,0,0,.05); padding: 16px 16px 8px; }
.box > h2 { margin: 0 0 4px; font-size: 16px; line-height: 20px; font-weight: 700; letter-spacing: -0.4px; display: flex; align-items: center; gap: 6px; }
.box > h2 svg { width: 16px; height: 16px; color: var(--red); }
.leia-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; padding: 14px 0; border-bottom: 1px solid #eee; }
.leia-item:last-child { border-bottom: 0; }
.leia-item h3 { margin: 0 0 4px; font-size: 15px; line-height: 19px; font-weight: 700; letter-spacing: -0.4px; color: var(--red); }
.leia-item p { margin: 0; font-size: 12px; color: var(--muted); }
.leia-item img { width: 80px; height: 80px; object-fit: cover; border-radius: 8px; }
.vuln { display: grid; gap: 6px; padding: 12px 0; border-bottom: 1px solid #eee; }
.vuln strong { font-size: 14px; line-height: 18px; letter-spacing: -0.3px; font-weight: 600; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 3px; background: #f0f0f0; color: #444; }
.tag-red { background: #fde8e6; color: var(--red-dark); font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; }
.box-more { display: block; padding: 12px 0 6px; font-size: 13px; font-weight: 700; color: var(--red); }

.article-page { background: var(--card); }
.article { max-width: 720px; margin: 0 auto; padding-block: 28px 56px; }
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--red); font-weight: 600; }
.back { color: var(--red); font-weight: 600; }
.article .chapeu { color: var(--red); font-size: 15px; font-weight: 700; }
.article h1 { font-size: 40px; line-height: 46px; font-weight: 700; letter-spacing: -1.5px; color: var(--ink-strong); margin: 10px 0 14px; text-wrap: balance; }
.article .sub { font-size: 20px; line-height: 28px; color: var(--muted); letter-spacing: -0.4px; margin: 0 0 20px; }
.byline { border-top: 1px solid #eee; border-bottom: 1px solid #eee; padding-block: 12px; font-size: 13px; color: var(--muted); display: grid; gap: 2px; margin-bottom: 24px; }
.byline b { color: var(--ink); }
.byline a { color: var(--red); }
.article figure { margin: 0 0 28px; }
.article figure img { width: 100%; display: block; }
.article figcaption { font-size: 13px; line-height: 18px; color: #777; padding-top: 8px; }
.content p { font-size: 18px; line-height: 30px; margin: 0 0 22px; letter-spacing: -0.2px; }
.article-tags { list-style: none; padding: 0; margin: 8px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.article-tags a { display: inline-block; border: 1px solid var(--line); border-radius: 14px; padding: 4px 12px; font-size: 13px; font-weight: 600; }
.article-tags a:hover { border-color: var(--red); color: var(--red); }
.source { margin-top: 36px; border-top: 2px solid var(--red); padding-top: 16px; font-size: 15px; line-height: 1.55; }
.source h2 { font-size: 13px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--red); margin: 0 0 6px; }
.source p { margin: 0 0 6px; }
.source a { color: var(--red); font-weight: 600; text-decoration: underline; word-break: break-word; }
.source small { color: var(--muted); font-size: 13px; }
.sources-list { list-style: none; padding: 0; margin: 8px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px 20px; }
.sources-list span { color: var(--muted); font-size: 13px; }
.more-related { margin-top: 40px; }
.more-related > h2 { font-size: 18px; letter-spacing: -0.5px; margin: 0 0 4px; }

footer { background: #222; color: #bbb; }
footer .wrap { padding-block: 28px; display: grid; gap: 8px; font-size: 13px; line-height: 1.5; }
footer b { color: #fff; font-size: 18px; letter-spacing: -1px; }
footer a { color: #fff; text-decoration: underline; }

@media (max-width: 960px) {
  .cols, .top { grid-template-columns: minmax(0, 1fr); }
  .side-hl { grid-template-rows: none; grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .bar .wrap { height: 60px; grid-template-columns: auto 1fr auto; gap: 12px; }
  .menu summary span { display: none; }
  .logo { justify-self: center; }
  .logo b { font-size: 28px; }
  .search { width: 40px; padding: 0 12px; background: none; }
  .search { position: relative; }
  .search input { position: absolute; inset: 0; opacity: 0; width: 100%; }
  .search:focus-within { width: 160px; background: var(--red-dark); }
  .search:focus-within input { position: static; opacity: 1; width: 100%; }
  .hl { padding: 20px; }
  .hl-title { font-size: 30px; line-height: 35px; letter-spacing: -1.2px; }
  .side-hl { grid-template-columns: minmax(0, 1fr); }
  .feed-post { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .feed-title { font-size: 21px; line-height: 24px; }
  .article h1 { font-size: 30px; line-height: 36px; }
  .article .sub { font-size: 18px; line-height: 25px; }
  .content p { font-size: 17px; line-height: 28px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

.stats h1 { font-size: 28px; color: var(--ink-strong); margin: 0 0 6px; letter-spacing: -0.5px; }
.stats h2 { font-size: 18px; color: var(--ink-strong); margin: 32px 0 12px; }
.stats-note { color: var(--muted); font-size: 14px; margin: 0 0 20px; }
.stats-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.stats-card { background: var(--card); border: 1px solid var(--line); border-top: 3px solid var(--red); padding: 14px 16px; }
.stats-card h2 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.3px; color: var(--muted); margin: 0 0 8px; }
.stats-card p { margin: 4px 0; font-size: 14px; }
.stats-card b { font-size: 22px; color: var(--ink-strong); margin-right: 4px; font-variant-numeric: tabular-nums; }
.stats-table { overflow-x: auto; background: var(--card); border: 1px solid var(--line); }
.stats-table table { width: 100%; border-collapse: collapse; font-size: 14px; }
.stats-table th, .stats-table td { padding: 9px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.stats-table th { font-size: 12px; text-transform: uppercase; color: var(--muted); background: var(--page); }
.stats-table td a { font-weight: 600; color: var(--ink-strong); }
.stats-table td a:hover { color: var(--red); }
.stats-table small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.stats-table .n { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.stats-table td:nth-child(2) { white-space: nowrap; }
.chart { margin-top: 24px; scroll-margin-top: 64px;background: var(--card); border: 1px solid var(--line); padding: 14px 16px 8px; }
.chart-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.chart-tabs { display: flex; gap: 4px; }
.chart-tabs a { padding: 4px 12px; font-size: 13px; font-weight: 600; color: var(--muted); border: 1px solid var(--line); border-radius: 4px; }
.chart-tabs a:hover { color: var(--ink-strong); }
.chart-tabs a[aria-current] { background: var(--ink-strong); border-color: var(--ink-strong); color: #fff; }
.chart-sum { margin: 0; font-size: 14px; color: var(--muted); }
.chart-sum b { color: var(--ink-strong); font-variant-numeric: tabular-nums; }
.chart-legend { list-style: none; display: flex; flex-wrap: wrap; gap: 16px; margin: 12px 0 4px; padding: 0; font-size: 13px; color: var(--ink); }
.chart-legend li { display: flex; align-items: center; gap: 6px; }
.chart-legend .chart-step { color: var(--muted); margin-left: auto; }
.chart-legend .key { display: inline-block; }
.key-bar { width: 10px; height: 10px; border-radius: 2px; background: var(--red); }
.key-line { width: 16px; height: 2px; background: #1d4f91; }
.chart svg { display: block; width: 100%; height: auto; font-family: var(--font); }
.chart .grid { stroke: var(--line); stroke-width: 1; }
.chart .grid.base { stroke: #b5b5b5; }
.chart .tick { stroke: #b5b5b5; }
.chart .ytick { font-size: 12px; fill: var(--muted); text-anchor: end; dominant-baseline: middle; font-variant-numeric: tabular-nums; }
.chart .xtick { font-size: 12px; fill: var(--muted); text-anchor: middle; }
.chart .bar { fill: var(--red); opacity: 0.85; }
.chart .uline { fill: none; stroke: #1d4f91; stroke-width: 2; stroke-linejoin: round; }
.chart .uline-ring { fill: none; stroke: var(--card); stroke-width: 5; stroke-linejoin: round; }
.chart .hit { fill: transparent; }
.chart .hit:hover { fill: rgba(17, 17, 17, 0.06); }
