/* Sidney Lima · Panorama Global
   Paleta: madrugada (azul-noite da faixa de abertura), pregão (papel frio), abertura (laranja da marca).
   Tipografia: Archivo variável — largura expandida para manchetes, condensada para números. Source Serif 4 nos artigos. */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo.woff2") format("woff2-variations"), url("../fonts/archivo.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("../fonts/source-serif-4.woff2") format("woff2-variations"), url("../fonts/source-serif-4.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("../fonts/source-serif-4-italic.woff2") format("woff2-variations"), url("../fonts/source-serif-4-italic.woff2") format("woff2");
  font-weight: 200 900;
  font-style: italic;
  font-display: swap;
}

:root {
  --night: #0e1b2c;
  --night-2: #16263b;
  --night-3: #23364f;
  --night-line: rgba(255, 255, 255, .12);
  --night-text: #e9eef5;
  --night-muted: #9fb0c5;

  --paper: #eef0f3;
  --panel: #ffffff;
  --ink: #142030;
  --ink-2: #33414f;
  --muted: #5d6a79;
  --rule: #d6dbe1;
  --rule-soft: #e7eaee;

  --brand: #f27a00;
  --brand-ink: #b35800;
  --brand-wash: #fff2e5;

  --up: #08875a;
  --down: #c8313a;
  --flat: #5d6a79;
  --up-night: #43d695;
  --down-night: #ff7a7a;

  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;

  --wrap: 1320px;
  --gutter: clamp(16px, 3vw, 32px);
  --r-s: 4px;
  --r-m: 8px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 15px/1.5 var(--sans);
  font-stretch: 100%;
  font-feature-settings: "kern", "liga";
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.num { font-variant-numeric: tabular-nums; font-stretch: 92%; }
.up { color: var(--up); }
.down { color: var(--down); }
.flat { color: var(--flat); }
.i { flex: none; vertical-align: -3px; }

.skip { position: absolute; left: -999px; top: 8px; z-index: 50; background: var(--brand); color: #fff; padding: 8px 12px; border-radius: var(--r-s); }
.skip:focus { left: 8px; }

/* ---------- Barra superior ---------- */
.topbar {
  background: var(--night);
  color: var(--night-text);
  position: sticky; top: 0; z-index: 30;
  border-bottom: 1px solid var(--night-line);
}
.topbar .wrap { display: flex; align-items: center; gap: 24px; min-height: 60px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; margin-right: auto; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 7px; position: relative; overflow: hidden;
  background: var(--night-3); display: grid; place-items: center;
  font-weight: 800; font-stretch: 112%; font-size: 14px; letter-spacing: -.02em; color: #fff;
}
.brand-mark::after { /* o sol nascendo: morning call */
  content: ""; position: absolute; left: 50%; bottom: -13px; width: 26px; height: 26px; margin-left: -13px;
  border-radius: 50%; background: var(--brand); z-index: 0;
}
.brand-mark span { position: relative; z-index: 1; transform: translateY(-3px); }
.brand-name { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name strong { font-weight: 750; font-stretch: 108%; font-size: 16px; }
.brand-name small { color: var(--night-muted); font-size: 12.5px; }
.nav { display: flex; gap: 4px; }
.nav a {
  text-decoration: none; color: var(--night-muted); padding: 8px 11px; border-radius: var(--r-s);
  font-weight: 550; font-size: 14px;
}
.nav a:hover { color: #fff; background: var(--night-2); }
.nav a[aria-current="page"] { color: #fff; box-shadow: inset 0 -2px 0 var(--brand); border-radius: 0; }
.live { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--night-muted); white-space: nowrap; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--up-night); box-shadow: 0 0 0 3px rgba(67, 214, 149, .18); }
.live[data-state="stale"] .live-dot { background: #f5b942; box-shadow: 0 0 0 3px rgba(245, 185, 66, .2); }
.live[data-state="off"] .live-dot { background: var(--down-night); box-shadow: none; }
.menu-btn { display: none; background: none; border: 1px solid var(--night-line); color: #fff; border-radius: var(--r-s); padding: 6px 10px; cursor: pointer; }

/* ---------- Abertura (faixa azul-noite) ---------- */
.opening { background: var(--night); color: var(--night-text); padding: 30px 0 34px; }
.opening-top { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 40px; align-items: end; }
.dateline { color: var(--night-muted); font-size: 14px; margin: 0 0 6px; }
.dateline b { color: var(--night-text); font-weight: 600; }
.tone {
  margin: 0; font-weight: 820; font-stretch: 122%; letter-spacing: -.025em;
  font-size: clamp(36px, 6.2vw, 78px); line-height: .98; text-wrap: balance;
}
.tone[data-tone="positive"] { color: var(--up-night); }
.tone[data-tone="negative"] { color: var(--down-night); }
.lede { margin: 14px 0 0; max-width: 68ch; color: #c9d4e2; font-size: 16.5px; line-height: 1.55; }
.vix-box { text-align: right; padding-bottom: 6px; }
.vix-box .label { color: var(--night-muted); font-size: 13px; }
.vix-box .value { font-size: 40px; font-weight: 700; font-stretch: 88%; line-height: 1.05; font-variant-numeric: tabular-nums; }
.vix-box .chg { font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.vix-box .risk { font-size: 13px; color: var(--night-muted); margin-top: 2px; }

/* A fita do dia — o mundo na ordem em que abre */
.ribbon { margin-top: 30px; position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; }
.ribbon::before { content: ""; position: absolute; left: 0; right: 0; top: 11px; height: 2px; background: linear-gradient(90deg, var(--night-3), var(--brand) 80%, var(--brand)); opacity: .9; }
.leg { position: relative; padding: 0 18px 0 0; min-width: 0; }
.leg-node { width: 24px; height: 24px; border-radius: 50%; background: var(--night); border: 2px solid var(--night-3); display: grid; place-items: center; position: relative; z-index: 1; }
.leg-node::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--night-3); }
.leg[data-state="aberto"] .leg-node { border-color: var(--brand); }
.leg[data-state="aberto"] .leg-node::after { background: var(--brand); }
.leg[data-state="pré-mercado"] .leg-node, .leg[data-state="after-market"] .leg-node { border-color: #f5b942; }
.leg-name { margin-top: 12px; font-weight: 650; font-size: 14.5px; color: #fff; display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.leg-state { font-weight: 500; font-size: 12.5px; color: var(--night-muted); }
.leg-avg { font-size: clamp(24px, 2.6vw, 34px); font-weight: 720; font-stretch: 86%; line-height: 1.15; font-variant-numeric: tabular-nums; }
.leg-avg.up { color: var(--up-night); }
.leg-avg.down { color: var(--down-night); }
.leg-avg.flat { color: var(--night-text); }
.leg-breadth { display: flex; gap: 3px; margin: 6px 0 6px; }
.leg-breadth i { display: block; height: 4px; flex: 1; max-width: 22px; border-radius: 2px; background: var(--night-3); }
.leg-breadth i.u { background: var(--up-night); }
.leg-breadth i.d { background: var(--down-night); }
.leg-members { font-size: 12.5px; color: var(--night-muted); line-height: 1.45; font-variant-numeric: tabular-nums; }
.leg-members span { white-space: nowrap; margin-right: 8px; }
.leg-members b { font-weight: 600; }
.leg-members b.up { color: var(--up-night); }
.leg-members b.down { color: var(--down-night); }

/* ---------- Leitura rápida ---------- */
.brief { background: var(--panel); border-bottom: 1px solid var(--rule); }
.brief .wrap { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 0; }
.brief-list { margin: 0; padding: 20px 32px 20px 0; list-style: none; display: grid; gap: 8px; }
.brief-list li { padding-left: 18px; position: relative; color: var(--ink-2); line-height: 1.5; }
.brief-list li::before { content: ""; position: absolute; left: 0; top: .62em; width: 7px; height: 7px; border-radius: 2px; background: var(--brand); }
.hot { padding: 20px 0 20px 28px; border-left: 1px solid var(--rule); }
.hot h2 { margin: 0 0 6px; font-size: 13.5px; font-weight: 600; color: var(--brand-ink); }
.hot a { display: block; font-weight: 650; font-stretch: 104%; font-size: 18px; line-height: 1.3; text-decoration: none; text-wrap: pretty; }
.hot a:hover { text-decoration: underline; text-decoration-color: var(--brand); text-underline-offset: 3px; }
.hot small { color: var(--muted); }
.warn { margin: 16px auto 0; max-width: var(--wrap); padding: 10px var(--gutter); }
.warn p { margin: 0; background: #fff6df; border: 1px solid #f0d58f; color: #6a4d00; padding: 10px 14px; border-radius: var(--r-s); font-size: 14px; }

/* ---------- Seções ---------- */
.block { padding: 36px 0 8px; }
.block-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 14px; flex-wrap: wrap; }
.block-head h2 { margin: 0; font-size: 26px; font-weight: 780; font-stretch: 112%; letter-spacing: -.015em; }
.block-head p { margin: 0; color: var(--muted); font-size: 14px; }
.panel { background: var(--panel); border: 1px solid var(--rule); border-radius: var(--r-m); }

/* ---------- Mesa: gráfico + mercados ---------- */
.desk { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 20px; align-items: start; }
.chart-panel { position: sticky; top: 76px; padding: 20px 22px 16px; }
.chart-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; flex-wrap: wrap; }
.chart-title { margin: 0; font-size: 22px; font-weight: 760; font-stretch: 108%; line-height: 1.15; }
.chart-sub { color: var(--muted); font-size: 13px; margin-top: 2px; }
.chart-quote { display: flex; align-items: baseline; gap: 14px; margin-top: 12px; flex-wrap: wrap; }
.chart-price { font-size: 44px; font-weight: 700; font-stretch: 86%; line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.chart-chg { font-size: 17px; font-weight: 650; font-variant-numeric: tabular-nums; }
.chart-hover { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; min-height: 1.4em; margin-top: 4px; }
.ranges { display: inline-flex; background: var(--paper); border: 1px solid var(--rule); border-radius: 6px; padding: 3px; }
.ranges button {
  border: 0; background: none; padding: 6px 11px; border-radius: 4px; cursor: pointer;
  font-weight: 600; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums;
}
.ranges button:hover { color: var(--ink); }
.ranges button[aria-pressed="true"] { background: var(--panel); color: var(--ink); box-shadow: 0 1px 2px rgba(20, 32, 48, .14); }
.chart-box { position: relative; height: 330px; margin-top: 10px; }
.chart-box .uplot { font-family: var(--sans); }
.chart-msg { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-size: 14px; text-align: center; padding: 20px; background: rgba(255, 255, 255, .7); }
.chart-msg[hidden] { display: none; }
.chart-box[aria-busy="true"] .u-wrap { opacity: .35; transition: opacity .15s; }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 14px 0 0; border-top: 1px solid var(--rule-soft); }
.facts div { padding: 10px 10px 2px 0; }
.facts dt { font-size: 12px; color: var(--muted); }
.facts dd { margin: 1px 0 0; font-weight: 620; font-variant-numeric: tabular-nums; font-stretch: 94%; font-size: 15px; }
.chart-note { margin-top: 10px; color: var(--muted); font-size: 12.5px; }

.markets { display: grid; gap: 16px; }
.mkt { padding: 4px 0 6px; }
.mkt-head { padding: 12px 16px 6px; display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.mkt-head h3 { margin: 0; font-size: 16px; font-weight: 720; font-stretch: 106%; }
.mkt-head span { font-size: 12.5px; color: var(--muted); text-align: right; }
.mkt table { width: 100%; border-collapse: collapse; }
.mkt th { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.row { cursor: pointer; border-top: 1px solid var(--rule-soft); }
.row:hover { background: #f7f8fa; }
.row[aria-selected="true"] { background: var(--brand-wash); box-shadow: inset 3px 0 0 var(--brand); }
.row td { padding: 8px 6px; vertical-align: middle; }
.row td:first-child { padding-left: 16px; }
.row td:last-child { padding-right: 16px; }
.row-name { display: block; font-weight: 620; font-size: 14.5px; line-height: 1.2; }
.row-meta { display: block; font-size: 12px; color: var(--muted); }
.row-meta .st-aberto { color: var(--up); }
.row-spark { width: 74px; }
.row-spark svg { width: 74px; height: 26px; display: block; }
.row-price { text-align: right; font-weight: 620; font-variant-numeric: tabular-nums; font-stretch: 92%; font-size: 15px; white-space: nowrap; }
.row-chg { text-align: right; width: 82px; font-weight: 650; font-variant-numeric: tabular-nums; font-stretch: 92%; white-space: nowrap; }
.row-chg small { display: block; font-weight: 500; font-size: 12px; }
.row button.pick { all: unset; cursor: pointer; display: block; }
.row button.pick:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.flash-up { animation: fu 1.1s ease-out; }
.flash-down { animation: fd 1.1s ease-out; }
@keyframes fu { from { background: rgba(8, 135, 90, .2); } to { background: transparent; } }
@keyframes fd { from { background: rgba(200, 49, 58, .18); } to { background: transparent; } }

/* ---------- Brasil ---------- */
.br-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
.br-card { padding: 18px 20px 18px; display: flex; flex-direction: column; min-width: 0; }
.br-card h3 { margin: 0; font-size: 16px; font-weight: 720; font-stretch: 106%; }
.br-card .sub { color: var(--muted); font-size: 13px; margin: 2px 0 12px; }
.flow-big { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.flow-big strong { font-size: 36px; font-weight: 720; font-stretch: 86%; font-variant-numeric: tabular-nums; line-height: 1.05; }
.flow-big span { color: var(--muted); font-size: 13px; }
.flow-bars { margin: 14px 0 6px; height: 120px; display: flex; align-items: stretch; gap: 3px; position: relative; }
.flow-bars::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 1px solid var(--rule); }
.flow-bar { flex: 1; position: relative; min-width: 4px; }
.flow-bar i { position: absolute; left: 0; right: 0; border-radius: 2px; }
.flow-bar i.u { bottom: 50%; background: var(--up); }
.flow-bar i.d { top: 50%; background: var(--down); }
.flow-bar:last-child i { box-shadow: 0 0 0 1.5px var(--panel), 0 0 0 3px var(--ink); }
.flow-axis { display: flex; justify-content: space-between; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.flow-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; margin: 14px 0 0; padding-top: 12px; border-top: 1px solid var(--rule-soft); }
.flow-split dt { font-size: 12px; color: var(--muted); }
.flow-split dd { margin: 0; font-weight: 640; font-variant-numeric: tabular-nums; font-stretch: 92%; }
.focus-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.focus-table th { text-align: right; font-size: 12px; color: var(--muted); font-weight: 600; padding: 0 0 6px; }
.focus-table th:first-child { text-align: left; }
.focus-table td { padding: 9px 0; border-top: 1px solid var(--rule-soft); text-align: right; font-weight: 640; font-stretch: 92%; font-size: 15.5px; }
.focus-table td:first-child { text-align: left; font-weight: 560; font-stretch: 100%; font-size: 14.5px; }
.selic-now { margin-top: auto; padding-top: 14px; display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--rule); gap: 10px; }
.selic-now span { color: var(--muted); font-size: 13px; }
.selic-now strong { font-size: 24px; font-weight: 720; font-stretch: 88%; font-variant-numeric: tabular-nums; }
.links-row { margin-top: 12px; font-size: 13px; display: flex; gap: 14px; flex-wrap: wrap; }
.links-row a { color: var(--brand-ink); text-underline-offset: 2px; }
.br-news { list-style: none; margin: 0; padding: 0; display: grid; }
.br-news li { padding: 9px 0; border-top: 1px solid var(--rule-soft); }
.br-news li:first-child { border-top: 0; padding-top: 0; }
.br-news a { text-decoration: none; font-weight: 580; line-height: 1.35; display: block; }
.br-news a:hover { text-decoration: underline; text-underline-offset: 2px; }
.br-news small { color: var(--muted); font-size: 12px; }
.empty { color: var(--muted); font-size: 14px; }

/* ---------- Notícias do dia ---------- */
.news-filter { display: flex; gap: 6px; flex-wrap: wrap; }
.news-filter button { border: 1px solid var(--rule); background: var(--panel); border-radius: 999px; padding: 5px 12px; font-size: 13px; font-weight: 560; cursor: pointer; color: var(--ink-2); }
.news-filter button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.news { list-style: none; margin: 0; padding: 6px 22px; columns: 2; column-gap: 40px; column-rule: 1px solid var(--rule-soft); }
.news li { break-inside: avoid; display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--rule-soft); }
.news time { font-variant-numeric: tabular-nums; font-weight: 650; color: var(--muted); font-size: 14px; padding-top: 1px; }
.news a { text-decoration: none; font-weight: 620; font-size: 15.5px; line-height: 1.35; text-wrap: pretty; }
.news a:hover { text-decoration: underline; text-decoration-color: var(--brand); text-underline-offset: 3px; }
.news p { margin: 4px 0 0; color: var(--muted); font-size: 13.5px; line-height: 1.45; }
.news .meta { display: block; margin-top: 4px; font-size: 12.5px; color: var(--muted); }
.news .meta .heat { color: var(--brand-ink); font-weight: 650; }
.news-more { display: block; margin: 0 auto; border: 1px solid var(--rule); background: var(--panel); border-radius: var(--r-s); padding: 9px 16px; font-weight: 600; cursor: pointer; }

/* ---------- Blog na home + curso ---------- */
.studio { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 20px; align-items: stretch; }
.posts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.post-card { display: flex; flex-direction: column; text-decoration: none; overflow: hidden; }
.post-card img { aspect-ratio: 16 / 9; width: 100%; object-fit: cover; background: var(--rule-soft); }
.post-card .body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.post-card h3 { margin: 0; font-size: 18px; font-weight: 720; font-stretch: 104%; line-height: 1.25; text-wrap: balance; }
.post-card p { margin: 0; color: var(--muted); font-size: 14px; }
.post-card small { color: var(--muted); font-size: 12.5px; margin-top: auto; }
.post-card:hover h3 { text-decoration: underline; text-decoration-color: var(--brand); text-underline-offset: 3px; }
.studio:not(:has(.course)) { grid-template-columns: minmax(0, 1fr); }
.posts.single { grid-template-columns: minmax(0, 1fr); }
.posts.single .post-card { flex-direction: row; }
.posts.single .post-card img { width: 46%; aspect-ratio: 16 / 10; height: auto; object-fit: cover; flex: none; }
.posts.single .post-card .body { padding: 22px 24px; justify-content: center; }
.posts.single .post-card h3 { font-size: 24px; }
.course { display: flex; flex-direction: column; text-decoration: none; background: var(--night); color: var(--night-text); border-radius: var(--r-m); overflow: hidden; border: 0; }
.course img { width: 100%; aspect-ratio: 900 / 301; object-fit: cover; }
.course .body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.course h3 { margin: 0; font-size: 22px; font-weight: 800; font-stretch: 116%; color: #fff; }
.course p { margin: 0; color: #c9d4e2; font-size: 14.5px; }
.course .cta { margin-top: auto; align-self: flex-start; background: var(--brand); color: #fff; font-weight: 700; padding: 10px 16px; border-radius: var(--r-s); display: inline-flex; gap: 6px; align-items: center; }
.course:hover .cta { background: #ff8a14; }

/* ---------- Rodapé ---------- */
.footer { margin-top: 48px; background: var(--night); color: var(--night-muted); font-size: 13.5px; }
.footer .wrap { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 24px; padding-top: 28px; padding-bottom: 28px; }
.footer p { margin: 0 0 8px; max-width: 70ch; }
.footer a { color: var(--night-text); }
.footer-links { display: flex; gap: 14px; flex-wrap: wrap; justify-content: flex-end; align-items: flex-start; }
.footer-links a { text-decoration: none; display: inline-flex; gap: 6px; align-items: center; }
.footer-links a:hover { text-decoration: underline; }

/* ---------- Blog ---------- */
.blog-hero { background: var(--night); color: var(--night-text); padding: 36px 0 34px; }
.blog-hero h1 { margin: 0; font-size: clamp(34px, 5vw, 60px); font-weight: 820; font-stretch: 120%; letter-spacing: -.02em; line-height: 1; }
.blog-hero p { margin: 10px 0 0; color: #c9d4e2; max-width: 60ch; font-size: 16.5px; }
.blog-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; padding-top: 30px; }
.blog-list .post-card.lead { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
.blog-list .post-card.lead img { aspect-ratio: 16 / 10; height: 100%; object-fit: cover; }
.blog-list .post-card.lead .body { padding: 26px 28px; justify-content: center; }
.blog-list .post-card.lead h3 { font-size: clamp(24px, 2.6vw, 34px); font-stretch: 112%; }
.blog-list .post-card.lead p { font-size: 16px; }
.pager { display: flex; justify-content: space-between; padding: 28px 0 0; }
.pager a { font-weight: 650; text-decoration: none; color: var(--brand-ink); }

.article-head { background: var(--night); color: var(--night-text); padding: 34px 0 40px; }
.article-head .wrap, .article-body { max-width: 780px; }
.crumb { display: inline-flex; align-items: center; gap: 4px; color: var(--night-muted); text-decoration: none; font-size: 14px; margin-bottom: 14px; }
.crumb:hover { color: #fff; }
.article-head h1 { margin: 0; font-size: clamp(30px, 4.6vw, 50px); font-weight: 800; font-stretch: 112%; letter-spacing: -.018em; line-height: 1.05; text-wrap: balance; }
.article-head .standfirst { margin: 14px 0 0; font-family: var(--serif); font-size: 20px; line-height: 1.5; color: #d3dceb; }
.byline { margin-top: 18px; display: flex; gap: 16px; flex-wrap: wrap; color: var(--night-muted); font-size: 14px; }
.byline b { color: #fff; font-weight: 650; }
.article-cover { max-width: 980px; margin: -18px auto 0; padding: 0 var(--gutter); }
.article-cover img { width: 100%; border-radius: var(--r-m); max-height: 560px; object-fit: cover; box-shadow: 0 10px 30px rgba(14, 27, 44, .18); }
.article-body { margin: 0 auto; padding: 34px var(--gutter) 10px; font-family: var(--serif); font-size: 19px; line-height: 1.72; color: #1d2733; }
.article-body p { margin: 0 0 1.05em; }
.article-body h2 { font-family: var(--sans); font-size: 25px; font-weight: 760; font-stretch: 108%; line-height: 1.2; margin: 1.7em 0 .55em; color: var(--ink); letter-spacing: -.01em; }
.article-body h3, .article-body h4 { font-family: var(--sans); font-size: 20px; font-weight: 720; margin: 1.4em 0 .4em; }
.article-body ul, .article-body ol { margin: 0 0 1.2em; padding-left: 1.2em; }
.article-body li { margin: .25em 0; padding-left: .2em; }
.article-body ul li::marker { color: var(--brand); }
.article-body blockquote { margin: 1.4em 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--brand); font-style: italic; color: var(--ink-2); }
.article-body a { color: var(--brand-ink); text-underline-offset: 3px; }
.article-body strong { font-weight: 680; }
.share { max-width: 780px; margin: 0 auto; padding: 18px var(--gutter) 0; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; border-top: 1px solid var(--rule); }
.share span { color: var(--muted); font-size: 14px; margin-right: 4px; }
.share a, .share button { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--rule); background: var(--panel); border-radius: 999px; padding: 6px 12px; text-decoration: none; font-size: 13.5px; font-weight: 580; cursor: pointer; }
.share a:hover, .share button:hover { border-color: var(--ink-2); }
.source-link { max-width: 780px; margin: 0 auto; padding: 0 var(--gutter); font-size: 14px; }
.source-link a { color: var(--brand-ink); }
.related { padding-top: 40px; }

.notfound { padding-top: 60px; padding-bottom: 60px; }
.notfound h1 { font-size: 34px; font-stretch: 112%; margin: 0 0 8px; }
.btn { display: inline-flex; gap: 6px; align-items: center; background: var(--ink); color: #fff; text-decoration: none; padding: 10px 16px; border-radius: var(--r-s); font-weight: 650; border: 0; cursor: pointer; }
.btn:hover { background: var(--night-3); }
.btn.brand { background: var(--brand); }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--rule); }

/* ---------- Responsivo ---------- */
@media (max-width: 1100px) {
  .ribbon { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 26px; }
  .ribbon::before { display: none; }
  .desk { grid-template-columns: minmax(0, 1fr); }
  .chart-panel { position: static; }
  .markets { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .br-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .br-grid .br-card:first-child { grid-column: 1 / -1; }
  .studio { grid-template-columns: minmax(0, 1fr); }
  .blog-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .nav { display: none; position: absolute; top: 60px; left: 0; right: 0; background: var(--night); flex-direction: column; padding: 8px var(--gutter) 14px; border-bottom: 1px solid var(--night-line); }
  .nav.open { display: flex; }
  .nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--brand); }
  .menu-btn { display: inline-block; }
  .live .txt-long { display: none; }
  .opening-top { grid-template-columns: minmax(0, 1fr); }
  .vix-box { text-align: left; display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; }
  .vix-box .value { font-size: 30px; }
  .ribbon {
    display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 24px calc(var(--gutter) * -1) 0;
    padding: 0 var(--gutter) 6px; scrollbar-width: none;
  }
  .ribbon::-webkit-scrollbar { display: none; }
  .leg { flex: 0 0 158px; scroll-snap-align: start; padding: 12px 12px 10px; background: var(--night-2); border-radius: var(--r-m); }
  .leg-node { display: none; }
  .leg-name { margin-top: 0; }
  .leg[data-state="aberto"] { box-shadow: inset 0 2px 0 var(--brand); }
  .mkt-head span { display: none; }
  .brief .wrap { grid-template-columns: minmax(0, 1fr); }
  .brief-list { padding-right: 0; }
  .hot { border-left: 0; border-top: 1px solid var(--rule); padding-left: 0; }
  .markets { grid-template-columns: minmax(0, 1fr); }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .chart-box { height: 260px; }
  .chart-price { font-size: 36px; }
  .br-grid { grid-template-columns: minmax(0, 1fr); }
  .news { columns: 1; padding: 4px 16px; }
  .posts { grid-template-columns: minmax(0, 1fr); }
  .posts.single .post-card { flex-direction: column; }
  .posts.single .post-card img { width: 100%; aspect-ratio: 16 / 9; }
  .footer .wrap { grid-template-columns: minmax(0, 1fr); }
  .footer-links { justify-content: flex-start; }
  .blog-list { grid-template-columns: minmax(0, 1fr); }
  .blog-list .post-card.lead { grid-template-columns: minmax(0, 1fr); }
  .blog-list .post-card.lead img { min-height: 0; aspect-ratio: 16 / 9; }
  .article-body { font-size: 18px; }
}
@media (max-width: 420px) {
  .brand-name small { display: none; }
  .row-spark { display: none; }
  .ranges button { padding: 6px 8px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media print {
  .topbar, .footer, .share, .course { display: none; }
  body { background: #fff; }
}
