/* Cores, espaçamento e raios alinhados ao design system Sophos v2. */
:root {
  --ink: #121212;
  --secondary: #3a3937;
  --muted: #5f5d5a;
  --brand: #044cf9;
  --brand-hover: #0243e2;
  --brand-soft: #eff5ff;
  --brand-border: #d5e3ff;
  --danger: #d92d20;
  --danger-soft: #fff1f0;
  --success: #039855;
  --line: #e6e6e5;
  --surface: #fff;
  --canvas: #fdfcfc;
  --sidebar: #f8f7f7;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body { margin: 0; color: var(--ink); background: var(--canvas); font: 14px/1.5 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
button, select { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }
.topbar { height: 68px; padding: 0 34px; display: flex; align-items: center; justify-content: space-between; gap: 24px; position: sticky; top: 0; z-index: 5; background: var(--surface); border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; padding: 10px 0; flex: none; }
.brand img { display: block; width: 109px; height: auto; }
.topbar-actions { display: flex; align-items: center; gap: 22px; }
.report-label { color: var(--secondary); font-weight: 600; }
.report-label span { color: var(--muted); font-weight: 400; }
.print-button { border: 1px solid var(--brand); background: var(--brand); color: #fff; border-radius: var(--radius-sm); padding: 9px 14px; font-weight: 600; transition: background .15s ease, box-shadow .15s ease; }
.print-button:hover { background: var(--brand-hover); box-shadow: 0 2px 7px #0000001a; }
.layout { display: grid; grid-template-columns: 234px minmax(0, 1fr); max-width: 1800px; margin: auto; }
aside { position: sticky; top: 68px; height: calc(100vh - 68px); padding: 32px 12px 24px; display: flex; flex-direction: column; background: var(--sidebar); border-right: 1px solid var(--line); }
.sidebar-heading { padding: 0 14px 26px; border-bottom: 1px solid var(--line); }
.sidebar-overline, .sidebar-footer span { display: block; color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .12em; }
aside h1 { margin: 10px 0 0; font-size: 21px; line-height: 1.3; letter-spacing: -.02em; font-weight: 650; }
aside p { margin: 3px 0 0; color: var(--muted); font-size: 12px; }
nav { display: grid; gap: 3px; padding: 20px 0; }
nav a { display: flex; align-items: center; gap: 11px; padding: 10px 13px; border-radius: var(--radius-sm); color: var(--secondary); font-size: 13px; font-weight: 500; text-decoration: none; transition: background .15s ease, color .15s ease; }
nav a::before { content: ""; width: 5px; height: 5px; flex: none; border-radius: 50%; background: #b3b1af; }
nav a:hover, nav a.active { background: var(--brand-soft); color: var(--brand); }
nav a:hover::before, nav a.active::before { background: var(--brand); }
.sidebar-footer { margin-top: auto; padding: 16px 14px 0; border-top: 1px solid var(--line); }
.sidebar-footer time { display: block; margin-top: 5px; font-size: 12px; color: var(--secondary); }
main { min-width: 0; max-width: 1500px; width: 100%; padding: 36px clamp(24px, 3vw, 54px) 84px; }
section { margin-bottom: 56px; scroll-margin-top: 90px; }
.sectionhead { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 21px; }
.eyebrow { color: var(--brand); font-size: 11px; letter-spacing: .08em; font-weight: 700; text-transform: uppercase; }
h2 { margin: 6px 0 0; font-size: clamp(24px, 2.2vw, 32px); line-height: 1.2; letter-spacing: -.03em; font-weight: 650; }
h3 { margin: 0 0 13px; font-size: 16px; line-height: 1.35; letter-spacing: -.01em; font-weight: 650; }
p { margin: 8px 0 14px; }
.muted, .note { color: var(--muted); }
.note { font-size: 13px; }
select { min-height: 38px; margin-top: 5px; padding: 7px 34px 7px 12px; border: 1px solid #dad9d8; border-radius: var(--radius-sm); background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px #0000000d; }
select:hover { border-color: var(--brand); }
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.card, .panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: 0 1px 3px #0000000d; }
.card { min-width: 0; padding: 20px; }
.card .label { color: var(--muted); font-size: 13px; font-weight: 500; }
.card strong { display: block; margin: 9px 0 7px; font-size: clamp(22px, 2vw, 31px); line-height: 1.16; letter-spacing: -.04em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.card small { display: block; color: var(--muted); font-size: 12px; line-height: 1.4; }
.card.negative strong, .neg { color: var(--danger); }
.pos { color: var(--success); }
.panel { min-width: 0; padding: 24px; }
.analysis { padding: 20px 24px; margin-top: 18px; border: 1px solid #ffe3e0; border-left: 4px solid var(--danger); border-radius: var(--radius-md); background: var(--danger-soft); }
.analysis h3 { color: #b42318; }
.analysis p:last-child { margin-bottom: 0; }
.twocol { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 18px; margin-top: 18px; }
.chart { display: block; width: 100%; height: auto; }
.legend { display: flex; flex-wrap: wrap; gap: 18px; margin-bottom: 16px; color: var(--secondary); font-size: 13px; }
.legend span::before { content: ""; display: inline-block; width: 10px; height: 10px; margin-right: 7px; border-radius: 50%; background: var(--brand); }
.legend span:nth-child(2)::before { background: var(--danger); }
.tablewrap { max-width: 100%; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-md); }
table { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
th, td { padding: 11px 13px; border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; }
th:first-child, td:first-child { text-align: left; white-space: normal; }
thead th { color: var(--secondary); background: var(--sidebar); font-weight: 600; }
tbody th { font-weight: 500; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: var(--brand-soft); }
tfoot { font-weight: 700; }
.badge { display: inline-block; padding: 5px 10px; border: 1px solid var(--brand-border); border-radius: 999px; background: var(--brand-soft); color: var(--brand); font-size: 12px; font-weight: 600; white-space: nowrap; }
.badge.warn { border-color: #fed7aa; background: #fff7ed; color: #9a3412; }
.bars { display: grid; gap: 17px; }
.barlabel { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 7px; font-size: 13px; }
.barlabel span { min-width: 0; }
.barlabel strong { flex: none; font-variant-numeric: tabular-nums; }
.track { height: 8px; overflow: hidden; border-radius: 999px; background: var(--brand-soft); }
.fill { height: 100%; border-radius: inherit; background: var(--brand); }
.decision { display: grid; grid-template-columns: 44px 1fr; gap: 16px; padding: 18px 0; border-top: 1px solid var(--line); }
.decision > b { display: grid; place-items: center; width: 36px; height: 36px; border-radius: var(--radius-md); background: var(--brand-soft); color: var(--brand); font-size: 15px; }
.decision h3 { margin: 0 0 5px; }
.decision p { margin: 0; }
.sources { font-size: 13px; }
.sources a { color: var(--brand); overflow-wrap: anywhere; text-underline-offset: 2px; }
.sources li { margin: 10px 0; }
.callout { margin-top: 16px; padding: 15px 18px; border: 1px solid var(--brand-border); border-radius: var(--radius-md); background: var(--brand-soft); color: var(--secondary); font-size: 13px; }
.metricrow { display: flex; justify-content: space-between; gap: 20px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.metricrow strong { white-space: nowrap; font-variant-numeric: tabular-nums; }
.subtle { color: var(--muted); font-size: 12px; }
details { padding: 13px 0; border-bottom: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 600; }
a:focus-visible, button:focus-visible, select:focus-visible, summary:focus-visible { outline: 3px solid #668dff; outline-offset: 3px; }
@media (max-width: 1150px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } .twocol { grid-template-columns: 1fr; } main { padding: 28px 24px 64px; } }
@media (max-width: 760px) { html { scroll-padding-top: 120px; } .topbar { height: 60px; padding: 0 16px; } .brand img { width: 95px; } .topbar-actions { gap: 8px; } .report-label { display: none; } .print-button { padding: 7px 10px; font-size: 12px; } .layout { display: block; } aside { position: sticky; top: 60px; z-index: 4; height: auto; padding: 0 12px; border-right: 0; border-bottom: 1px solid var(--line); } .sidebar-heading, .sidebar-footer { display: none; } nav { display: flex; gap: 5px; overflow-x: auto; padding: 8px 0; scrollbar-width: thin; } nav a { flex: none; padding: 7px 9px; white-space: nowrap; } nav a::before { display: none; } main { padding: 26px 16px 60px; } .sectionhead { display: block; } .sectionhead select { max-width: 100%; margin-top: 8px; } .sectionhead > .badge { margin-top: 12px; } .cards { gap: 10px; } .card { padding: 16px; } .card strong { font-size: 23px; } .panel { padding: 18px; } .analysis { padding: 17px; } .barlabel { flex-wrap: wrap; gap: 2px; } section { scroll-margin-top: 120px; } }
@media (max-width: 430px) { .cards { grid-template-columns: 1fr; } .metricrow { flex-wrap: wrap; gap: 4px; } }
@media print { html { scroll-padding-top: 0; } body { background: white; color: #121212; font-size: 10pt; } .topbar, aside, select, .noprint { display: none !important; } .layout { display: block; } main { max-width: none; padding: 0; } section { margin-bottom: 24px; break-inside: auto; } .cards { grid-template-columns: repeat(4, minmax(0, 1fr)); } .card strong { font-size: 18px; } .panel, .card, .analysis { break-inside: avoid; box-shadow: none; } .twocol { grid-template-columns: 1fr; } .chart { max-height: 260px; } .tablewrap { overflow: visible; } th, td { padding: 6px; font-size: 9pt; white-space: normal; } a { color: inherit; } .sources { font-size: 9pt; } h2 { font-size: 21px; } h3 { font-size: 15px; } details > * { display: block; } summary { display: none; } }
