@font-face{font-family:'Archivo';font-style:normal;font-weight:400;font-display:swap;src:url('../fonts/archivo-400-latin-ext.woff2') format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Archivo';font-style:normal;font-weight:400;font-display:swap;src:url('../fonts/archivo-400-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Archivo';font-style:normal;font-weight:600;font-display:swap;src:url('../fonts/archivo-600-latin-ext.woff2') format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Archivo';font-style:normal;font-weight:600;font-display:swap;src:url('../fonts/archivo-600-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Archivo';font-style:normal;font-weight:700;font-display:swap;src:url('../fonts/archivo-700-latin-ext.woff2') format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Archivo';font-style:normal;font-weight:700;font-display:swap;src:url('../fonts/archivo-700-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Bricolage Grotesque';font-style:normal;font-weight:700;font-display:swap;src:url('../fonts/bricolage-grotesque-700-latin-ext.woff2') format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Bricolage Grotesque';font-style:normal;font-weight:700;font-display:swap;src:url('../fonts/bricolage-grotesque-700-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Bricolage Grotesque';font-style:normal;font-weight:800;font-display:swap;src:url('../fonts/bricolage-grotesque-800-latin-ext.woff2') format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Bricolage Grotesque';font-style:normal;font-weight:800;font-display:swap;src:url('../fonts/bricolage-grotesque-800-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
/* RH2Business · protótipo da home e da matéria
   Tokens espelham o Design System do Figma (coleção Semantic, modos Claro e Escuro). */

:root {
  --bg-default: #ffffff;
  --bg-subtle: #f4f2ee;
  --bg-inverse: #000000;
  --bg-highlight: #fcebf9;
  --bg-feature: #000000;
  --text-primary: #000000;
  --text-secondary: #3d3b3f;
  --text-muted: #68656a;
  --text-inverse: #ffffff;
  --text-accent: #a30295;
  --text-on-accent: #ffffff;
  --text-on-feature: #ffffff;
  --text-on-feature-muted: #c9c4be;
  --text-on-feature-accent: #ee56dc;
  --brand-accent: #d302be;
  --brand-accent-strong: #a30295;
  --border-default: #ddd8d1;
  --border-strong: #c9c4be;
  --border-on-feature: #3d3b3f;
  --icon-default: #000000;
  --veil: rgba(0, 0, 0, .55);

  --font-display: 'Bricolage Grotesque', system-ui, sans-serif;
  --font-text: 'Archivo', system-ui, sans-serif;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-full: 999px;

  --page: 1280px;
  --gutter: 80px;
  --section-gap: 80px;
  --col-gap: 24px;
  --header-h: 109px;

  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg-default: #000000;
  --bg-subtle: #1f1e21;
  --bg-inverse: #ffffff;
  --bg-highlight: #1f1e21;
  --bg-feature: #1f1e21;
  --text-primary: #ffffff;
  --text-secondary: #c9c4be;
  --text-muted: #9c989b;
  --text-inverse: #000000;
  --text-accent: #ee56dc;
  --border-default: #3d3b3f;
  --border-strong: #68656a;
  --icon-default: #ffffff;
  color-scheme: dark;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }

body {
  margin: 0;
  background: var(--bg-default);
  color: var(--text-primary);
  font-family: var(--font-text);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color .25s ease, color .25s ease;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
svg { display: block; flex-shrink: 0; }

:focus-visible {
  outline: 2px solid var(--brand-accent);
  outline-offset: 3px;
  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;
}

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--bg-inverse); color: var(--text-inverse);
  padding: 10px 16px; border-radius: var(--radius-md); font-weight: 600;
}
.skip-link:focus { top: 12px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--page)); margin-inline: auto; }

/* ---------- Tipografia ---------- */

.label {
  font-family: var(--font-text);
  font-weight: 700;
  font-size: 12px;
  line-height: 16px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.kicker { color: var(--text-accent); }
.caption { font-size: 14px; line-height: 20px; color: var(--text-muted); }
.headline-card { font-family: var(--font-display); font-weight: 700; font-size: 22px; line-height: 1.25; letter-spacing: -.01em; }
.headline-list { font-family: var(--font-display); font-weight: 700; font-size: 18px; line-height: 1.28; letter-spacing: -.01em; }

.meta { display: flex; flex-wrap: wrap; gap: 4px 0; }
.meta > *:not(:last-child)::after { content: "·"; margin: 0 8px; }

a.card-link:hover .headline-card,
a.card-link:hover .headline-list,
a.card-link:focus-visible .headline-card,
a.card-link:focus-visible .headline-list { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }

/* Etiqueta de editoria (pílula magenta) */
.tag {
  display: inline-flex; align-items: center;
  height: 24px; padding: 0 12px;
  border-radius: var(--radius-full);
  background: var(--brand-accent);
  color: var(--text-on-accent);
  font-weight: 700; font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
  white-space: nowrap;
}
.tag--outline { background: transparent; color: var(--text-primary); box-shadow: inset 0 0 0 1px var(--border-strong); }

.seal {
  display: inline-flex; align-items: center; gap: 8px;
  height: 32px; padding: 0 12px;
  background: var(--bg-default); color: var(--text-primary);
  border: 1.5px solid var(--text-primary); border-radius: var(--radius-sm);
  font-size: 13px; white-space: nowrap;
}
.seal strong { font-weight: 700; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }

/* Botões */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  height: 48px; padding: 0 24px;
  border-radius: var(--radius-full);
  background: var(--brand-accent); color: var(--text-on-accent);
  font-weight: 600; font-size: 16px; line-height: 20px;
  transition: background-color .2s ease;
}
.btn:hover { background: var(--brand-accent-strong); }
.btn--sm { height: 40px; padding: 0 16px; font-size: 14px; }
.btn svg { width: 20px; height: 20px; }

.more {
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; flex-shrink: 0;
  font-weight: 600; font-size: 14px; color: var(--text-primary);
}
.more svg { width: 16px; height: 16px; transition: transform .2s ease; }
.more:hover svg { transform: translate(2px, -2px); }

/* Título de seção: fio preto em cima */
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 16px;
  border-top: 2px solid var(--text-primary);
  padding-top: 16px; margin-bottom: 24px;
}
.section-head h2 { font-family: var(--font-display); font-weight: 700; font-size: 32px; line-height: 1.1; letter-spacing: -.01em; }

/* Título de seção em faixa (Em alta no RH) */
.section-tab {
  display: flex; align-items: flex-end; justify-content: space-between;
  border-bottom: 2px solid var(--brand-accent); margin-bottom: 24px;
}
.section-tab h2 {
  position: relative;
  background: var(--brand-accent); color: var(--text-on-accent);
  font-family: var(--font-text); font-weight: 600; font-size: 16px; line-height: 24px;
  padding: 8px 32px 8px 16px;
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 100%, 0 100%);
}
.section-tab .more { margin-bottom: 10px; }

/* Foto com moldura que corta e etiqueta sobreposta */
.photo { position: relative; overflow: hidden; background: var(--bg-subtle); }
.photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
a.card-link:hover .photo img { transform: scale(1.03); }
.photo .tag, .photo .seal { position: absolute; left: 12px; bottom: 12px; }

/* ---------- Cabeçalho ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--bg-default);
  border-bottom: 1px solid var(--border-default);
  transition: background-color .25s ease;
}
.header-grid {
  display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 28px; align-items: center;
}
.brand { grid-row: 1 / span 2; display: inline-flex; color: var(--text-primary); }
.brand svg { width: 184px; height: auto; }
.brand .two { fill: var(--brand-accent); }

.header-top {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  height: 44px; border-bottom: 2px solid var(--text-primary);
  overflow: hidden;
  transition: height .25s ease, opacity .2s ease, border-color .2s ease;
}
.date { font-style: italic; font-size: 14px; color: var(--text-muted); white-space: nowrap; }
.top-nav { display: flex; align-items: center; }
.top-nav a, .top-nav button {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: 14px; white-space: nowrap; padding: 4px 0;
}
.top-nav li + li::before { content: "|"; color: var(--border-strong); margin: 0 12px; }
.top-nav li { display: flex; align-items: center; }
.top-nav svg { width: 18px; height: 18px; }
/* Notebooks de 13 e 14 polegadas: a linha de cima só cabe com a data se os separadores encolherem */
@media (min-width: 1181px) and (max-width: 1360px) { .top-nav li + li::before { margin: 0 8px; } }
/* Notebook pequeno e iPad deitado: o cabeçalho de computador só cabe sem a data e sem as redes (que seguem no menu e no rodapé) */
/* Notebook de 13 e 14 polegadas: margem lateral de 40 px (a de 80 é da tela de 1440) para o cabeçalho inteiro caber */
@media (min-width: 1181px) and (max-width: 1360px) { :root { --gutter: 40px; } }
@media (max-width: 1260px) {
  .date { display: none; }
  .header-top { justify-content: flex-end; }
  .header-actions .social { display: none; }
}

.header-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav > li { position: relative; }
.main-nav > li > a, .main-nav > li > button {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 8px 8px; border-radius: var(--radius-md);
  font-weight: 600; font-size: 14px; white-space: nowrap;
}
.main-nav > li:first-child > a { padding-left: 0; }
.main-nav svg { width: 16px; height: 16px; transition: transform .2s ease; }
.main-nav button[aria-expanded="true"] svg { transform: rotate(180deg); }

.dropdown {
  position: absolute; top: calc(100% + 10px); left: -16px; width: 340px;
  background: var(--bg-default); border: 1px solid var(--border-default);
  border-radius: var(--radius-lg); padding: 8px 16px 12px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .08);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s;
}
.dropdown.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.dropdown a { display: block; padding: 12px 0; border-bottom: 1px solid var(--border-default); }
.dropdown a .headline-list { font-size: 16px; }
.dropdown a .caption { display: block; margin-top: 4px; font-size: 13px; }
.dropdown .all { border: 0; padding-bottom: 4px; font-weight: 600; font-size: 14px; color: var(--text-accent); }

.header-actions { display: flex; align-items: center; gap: 12px; }
.icon-btn {
  display: inline-grid; place-items: center; width: 40px; height: 40px;
  border-radius: var(--radius-full); color: var(--icon-default);
}
.icon-btn svg { width: 22px; height: 22px; }
.icon-btn--ring { box-shadow: inset 0 0 0 1px var(--border-default); }
.icon-btn:hover { background: var(--bg-subtle); }
.social { display: flex; align-items: center; gap: 6px; }
.social a { display: inline-grid; place-items: center; width: 28px; height: 28px; color: var(--icon-default); }
.social svg { width: 20px; height: 20px; }

.theme-toggle .sun { display: none; }
:root[data-theme="dark"] .theme-toggle .sun { display: block; }
:root[data-theme="dark"] .theme-toggle .moon { display: none; }

/* Cabeçalho ao rolar: o andar de cima some */
.site-header.is-compact .header-top { height: 0; opacity: 0; border-color: transparent; }

/* Barra de leitura da matéria */
.progress { position: absolute; left: 0; bottom: -1px; height: 3px; width: 100%; background: transparent; }
.progress span { display: block; height: 100%; width: 0; background: var(--brand-accent); }

/* Faixa Agora */
.ticker {
  background: var(--bg-subtle); height: 48px; display: flex; align-items: center; overflow: hidden;
}
.ticker .wrap { display: flex; align-items: center; gap: 16px; overflow: hidden; }
.ticker .tag { flex-shrink: 0; }
.ticker-track { flex: 1; overflow: hidden; }
.ticker-move { display: flex; width: max-content; animation: ticker 48s linear infinite; }
.ticker:hover .ticker-move, .ticker:focus-within .ticker-move { animation-play-state: paused; }
.ticker-move ul { display: flex; align-items: center; padding-right: 24px; }
.ticker-move li { display: flex; align-items: center; font-size: 14px; white-space: nowrap; }
.ticker-move li + li::before { content: "•"; color: var(--text-muted); margin: 0 18px; }
.ticker-move a:hover { text-decoration: underline; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* Menu de celular */
.mobile-bar { display: none; }
.mobile-menu {
  position: fixed; inset: 0; z-index: 90; background: var(--bg-default);
  display: flex; flex-direction: column; overflow-y: auto;
  transform: translateY(-8px); opacity: 0; visibility: hidden;
  transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.mobile-menu-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--border-default); position: sticky; top: 0; z-index: 1; background: var(--bg-default); } /* o X fica à mão com a lista rolada */
.mobile-menu-head .brand svg { width: 140px; }
.mobile-menu nav { padding: 8px 16px 32px; }
.mobile-menu .menu-group { margin: 24px 0 8px; color: var(--text-accent); }
.mobile-menu nav a { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid var(--border-default); font-family: var(--font-display); font-weight: 700; font-size: 20px; }
.mobile-menu .btn { margin-top: 24px; width: 100%; justify-content: center; }
.mobile-menu .social { margin-top: 24px; gap: 8px; }
.mobile-menu nav .social a { width: 44px; height: 44px; padding: 0; justify-content: center; border-bottom: 0; } /* ícone não herda a linha das editorias; toque de 44 px */
.mobile-menu nav .social a svg { color: var(--text-primary); }

/* Busca */
.search-panel {
  position: fixed; inset: 0; z-index: 95; background: color-mix(in srgb, var(--bg-default) 96%, transparent);
  display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; padding-top: 18vh; /* o campo não pode ditar a largura: em 320 px empurrava a página */
  opacity: 0; visibility: hidden; transition: opacity .2s ease, visibility 0s linear .2s;
}
.search-panel.is-open { opacity: 1; visibility: visible; transition-delay: 0s; }
.search-panel form { width: min(100% - 32px, 760px); margin-inline: auto; }
.search-panel label { display: block; margin-bottom: 12px; color: var(--text-accent); }
.search-field { display: flex; align-items: center; gap: 12px; border-bottom: 2px solid var(--text-primary); }
.search-field input {
  flex: 1; min-width: 0; border: 0; background: transparent; color: var(--text-primary);
  font-family: var(--font-display); font-weight: 700; font-size: clamp(28px, 5vw, 44px); padding: 12px 0;
}
.search-field input:focus { outline: none; }
.search-panel .hint { margin-top: 16px; }
.search-panel .close { position: absolute; top: 20px; right: 20px; }

/* ---------- Home ---------- */

main { display: block; }
main.home { padding: 40px 0 104px; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--section-gap); }

/* Manchete + Últimas notícias */
.lead-grid { display: grid; grid-template-columns: minmax(0, 848fr) minmax(0, 408fr); gap: var(--col-gap); align-items: start; }
.headline-card-big { display: block; background: var(--bg-feature); color: var(--text-on-feature); }
.headline-card-big .photo { aspect-ratio: 848 / 476; }
.headline-card-big .body { padding: 28px 36px 36px; }
.headline-card-big h2 {
  margin: 16px 0 20px; max-width: 22ch;
  font-family: var(--font-display); font-weight: 800; font-size: 44px; line-height: 1.08; letter-spacing: -.015em;
}
.headline-card-big .meta { color: var(--text-on-feature-muted); font-size: 14px; }
a.headline-card-big:hover h2 { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 6px; }

.latest .section-head h2 { font-size: 30px; }

.list-item { display: grid; grid-template-columns: 128px 1fr; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--border-default); }
.list-item:first-child { padding-top: 0; }
.list-item .photo { aspect-ratio: 4 / 3; }
.list-item .kicker { display: block; margin-bottom: 6px; }
.list-item .caption { display: block; margin-top: 8px; }

/* Grade de cards */
.cards-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--col-gap); }
.card .photo { aspect-ratio: 302 / 200; }
.card .photo--short { aspect-ratio: 302 / 163; }
.card h3 { margin-top: 16px; }
.card .kicker { display: block; margin-top: 16px; }
.card .kicker + h3 { margin-top: 8px; }
.card .meta { margin-top: 12px; }

/* Painel de dados */
.data-panel { background: var(--bg-subtle); border-radius: var(--radius-lg); padding: 40px 48px 48px; }
.data-head { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 32px; }
.data-head .caption { font-size: 13px; }
.data-row { display: grid; grid-template-columns: repeat(4, 1fr); }
.data-row > div { padding: 0 32px; border-left: 1px solid var(--border-strong); }
.data-row > div:first-child { padding-left: 0; border-left: 0; }
.data-num {
  display: block; font-family: var(--font-display); font-weight: 800;
  font-size: clamp(48px, 6.4vw, 92px); line-height: 1; letter-spacing: -.02em; margin-bottom: 16px;
}
.data-num.accent { color: var(--text-accent); }
.data-row p { color: var(--text-secondary); font-size: 16px; line-height: 1.6; max-width: 24ch; }

/* Em alta + abas */
.trend-grid { display: grid; grid-template-columns: minmax(0, 848fr) minmax(0, 408fr); gap: var(--col-gap); align-items: start; }
.cards-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 32px var(--col-gap); }
.cards-2 .photo { aspect-ratio: 412 / 200; }

.side { display: flex; flex-direction: column; align-items: center; gap: 32px; }
.side > * { width: 100%; }
.tabs [role="tablist"] { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; } /* sem espaço, a aba desce de linha em vez de vazar */
.tabs [role="tab"] {
  height: 26px; padding: 0 12px; border-radius: var(--radius-full); white-space: nowrap;
  font-weight: 700; font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
  box-shadow: inset 0 0 0 1px var(--border-strong); color: var(--text-primary);
}
.tabs [role="tab"][aria-selected="true"] { background: var(--brand-accent); color: var(--text-on-accent); box-shadow: none; }
.mini-item { display: grid; grid-template-columns: 80px 1fr; gap: 14px; padding: 12px 0; }
.mini-item .photo { aspect-ratio: 80 / 64; border-radius: 2px; }
.mini-item .row { display: flex; flex-wrap: wrap; column-gap: 8px; row-gap: 2px; align-items: baseline; margin-bottom: 4px; }
.mini-item .row .kicker, .mini-item .row .caption { white-space: nowrap; } /* editoria e data nunca quebram no meio; sem espaço, a data desce inteira */
.mini-item .row .caption { font-size: 13px; }
.mini-item .headline-list { font-size: 17px; }
[role="tabpanel"][hidden] { display: none; }
[role="tabpanel"] { animation: fade .25s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(4px); } }

/* Espaços publicitários: altura reservada, sem empurrar conteúdo */
.ad { display: flex; flex-direction: column; align-items: center; gap: 10px; width: 100%; } /* a caixa ocupa a coluna, e o anúncio encolhe se a coluna for mais estreita que ele */
.ad > .label { color: var(--text-muted); font-size: 11px; }
.ad-box {
  background: var(--bg-subtle); border-radius: var(--radius-md); overflow: hidden;
  display: flex; color: var(--text-primary);
}
.ad-300 { width: min(300px, 100%); min-height: 250px; flex-direction: column; justify-content: center; gap: 12px; padding: 28px; }
.ad-970 { width: min(100%, 970px); min-height: 0; aspect-ratio: 970 / 250; align-items: center; gap: 32px; padding: 32px 56px; }
.ad-970 .text { flex: 1; }
.ad-320 { width: 100%; max-width: 358px; min-height: 100px; align-items: center; gap: 16px; padding: 16px 20px; }
/* Banner vendido: a imagem ocupa o espaço inteiro, na proporção do formato, sem as margens do anúncio da casa */
.ad-box.ad-sold { padding: 0; min-height: 0; background: transparent; }
.ad-sold.ad-970 { aspect-ratio: 970 / 250; }
.ad-sold.ad-300 { aspect-ratio: 300 / 250; }
.ad-sold.ad-320 { aspect-ratio: 320 / 100; max-width: 320px; }
.ad-sold img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ad-box .kicker { display: block; margin-bottom: 6px; }
.ad-box .ad-title { font-family: var(--font-display); font-weight: 700; font-size: 22px; line-height: 1.25; }
.ad-970 .ad-title { font-size: 32px; line-height: 1.15; max-width: 20ch; }
.ad-320 .ad-title { font-size: 17px; }
.ad-box .symbol { width: 56px; color: var(--brand-accent); }
.ad-970 .symbol { width: 88px; }
.ad-320 .symbol { width: 40px; }
.ad-box .btn { align-self: flex-start; }
.ad-970 .btn { align-self: center; flex-shrink: 0; }
.ad-320 .go { margin-left: auto; width: 20px; height: 20px; }

/* Destaque de coluna */
.column-feature { display: grid; grid-template-columns: 560fr 720fr; background: var(--bg-feature); color: var(--text-on-feature); border-radius: var(--radius-lg); overflow: hidden; }
.column-feature .photo { min-height: 446px; background: #000; }
.column-feature .body { padding: 56px; display: flex; flex-direction: column; justify-content: center; }
.column-feature .label { color: var(--text-on-feature-accent); }
.column-feature h2 { margin: 16px 0 20px; font-family: var(--font-display); font-weight: 700; font-size: 44px; line-height: 1.1; letter-spacing: -.01em; }
.column-feature p { color: var(--text-on-feature-muted); font-size: 18px; line-height: 1.6; max-width: 56ch; }
.column-feature .foot { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 32px; }
.column-feature .who strong { display: block; font-weight: 600; }
.column-feature .who span { font-size: 14px; color: var(--text-on-feature-muted); }

/* Colunistas */
.columnist {
  height: 100%; display: flex; flex-direction: column; border: 1px solid var(--border-default); border-radius: var(--radius-md);
  padding: 24px; background: var(--bg-default); transition: border-color .2s ease;
}
.columnist:hover { border-color: var(--text-primary); }
.columnist .who { display: flex; align-items: center; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--border-default); margin-bottom: 16px; }
.columnist .avatar { width: 48px; height: 48px; border-radius: 50%; overflow: hidden; flex-shrink: 0; }
.columnist .avatar img { width: 100%; height: 100%; object-fit: cover; }
.columnist strong { display: block; font-weight: 600; font-size: 15px; }
.columnist .who span { font-size: 13px; color: var(--text-muted); }
/* Nome e cargo em uma linha cada, em todo cartão: o divisor fica na mesma altura na fileira inteira */
.columnist .who > div { min-width: 0; }
.columnist .who strong, .columnist .who span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.columnist .read { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 16px; color: var(--text-accent); font-weight: 600; font-size: 14px; }
.columnist .read svg { width: 16px; height: 16px; }

/* Editorias */
.desk-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--col-gap); } /* colunas iguais: a palavra mais longa não alarga a sua */
.desk {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end;
  aspect-ratio: 196 / 112; border-radius: var(--radius-lg); overflow: hidden; padding: 14px 16px;
  color: #fff; isolation: isolate;
}
.desk img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
.desk::after { content: ""; position: absolute; inset: 0; background: var(--veil); z-index: -1; transition: background-color .2s ease; }
.desk:hover img { transform: scale(1.05); }
.desk:hover::after { background: rgba(0, 0, 0, .62); }
.desk strong { font-family: var(--font-display); font-weight: 700; font-size: 17px; line-height: 1.2; }
.desk span { font-size: 13px; color: #e7e2db; }

/* Bloco Anuncie */
.advertise {
  display: grid; grid-template-columns: 664fr 440fr; gap: 64px; align-items: center;
  background: var(--bg-feature); color: var(--text-on-feature); border-radius: var(--radius-lg); padding: 56px;
}
.advertise .symbol { width: 72px; color: var(--brand-accent); margin-bottom: 20px; }
.advertise h2 { font-family: var(--font-display); font-weight: 800; font-size: 48px; line-height: 1.05; letter-spacing: -.015em; max-width: 15ch; }
.advertise p { margin: 20px 0 28px; color: var(--text-on-feature-muted); font-size: 18px; line-height: 1.6; max-width: 52ch; }
.formats a {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 0; border-top: 1px solid var(--border-on-feature);
  font-weight: 600; font-size: 18px;
}
.formats li:last-child a { border-bottom: 1px solid var(--border-on-feature); }
.formats svg { width: 18px; height: 18px; transition: transform .2s ease; }
.formats a:hover svg { transform: translate(2px, -2px); }
.formats a:hover { color: var(--text-on-feature-accent); }

/* Três editorias */
.three { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--col-gap); }
.three .section-head h2 { font-size: 28px; }
.three .list-item { grid-template-columns: 128px 1fr; }

/* ---------- Rodapé ---------- */

.site-footer { background: var(--bg-feature); color: var(--text-on-feature); padding: 72px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand svg { width: 220px; height: auto; }
.footer-brand p { margin: 16px 0 24px; color: var(--text-on-feature-muted); font-size: 17px; }
.footer-brand .social a { color: var(--text-on-feature); width: 32px; height: 32px; }
.footer-brand .social svg { width: 24px; height: 24px; }
.site-footer h2 { color: var(--text-on-feature-accent); margin-bottom: 16px; }
.site-footer nav li + li { margin-top: 12px; }
.site-footer nav a { font-weight: 600; font-size: 15px; }
.site-footer nav a:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--border-on-feature);
  color: var(--text-on-feature-muted); font-size: 14px;
}
.footer-bottom .meta a:hover { color: var(--text-on-feature); }

/* ---------- Matéria ---------- */

.article-top { border-bottom: 1px solid var(--border-default); padding: 40px 0 32px; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 4px 0; font-size: 14px; color: var(--text-secondary); }
.breadcrumb li + li::before { content: "/"; margin: 0 10px; color: var(--text-muted); }
.breadcrumb li[aria-current] { color: var(--text-muted); }
.breadcrumb a:hover { text-decoration: underline; }
.markers { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 16px; }
.article-top h1 {
  max-width: 968px;
  font-family: var(--font-display); font-weight: 800; font-size: 56px; line-height: 1.08; letter-spacing: -.015em;
}
.standfirst { max-width: 968px; margin-top: 20px; color: var(--text-secondary); font-size: 22px; line-height: 1.5; }
.credit { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; margin-top: 28px; }
.credit .author { display: flex; align-items: center; gap: 12px; }
.initials {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--bg-subtle); font-weight: 700; font-size: 15px;
}
.credit .author strong { display: block; font-weight: 600; font-size: 16px; }
.credit .author span { font-size: 14px; color: var(--text-muted); }
.dates { font-size: 14px; color: var(--text-muted); line-height: 1.6; }

.article-grid { display: grid; grid-template-columns: minmax(0, 848fr) minmax(0, 408fr); gap: var(--col-gap); padding: 40px 0 0; align-items: start; }
.article-body { min-width: 0; }
.article-body figure .photo { aspect-ratio: 848 / 476; }
.article-body figcaption { margin-top: 10px; font-size: 13px; color: var(--text-muted); }

.share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 32px 0; }
.share > .label { margin-right: 16px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px;
  border-radius: var(--radius-full); box-shadow: inset 0 0 0 1px var(--border-strong);
  font-weight: 700; font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
  transition: box-shadow .2s ease, background-color .2s ease;
}
.chip:hover { box-shadow: inset 0 0 0 1px var(--text-primary); }
.chip svg { width: 16px; height: 16px; }
.chip.is-done { background: var(--brand-accent); color: var(--text-on-accent); box-shadow: none; }

.prose > * + * { margin-top: 24px; }
.prose > p { font-size: 18px; line-height: 1.62; }
.prose > p a, .data-block a { color: var(--text-accent); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose > p a:hover { text-decoration-thickness: 2px; }
.prose h2 { margin-top: 48px; font-family: var(--font-display); font-weight: 700; font-size: 30px; line-height: 1.2; letter-spacing: -.01em; }
.prose h2 + p { margin-top: 20px; }

.data-block {
  display: grid; grid-template-columns: 248px 1fr; gap: 32px; align-items: center;
  background: var(--bg-subtle); padding: 40px 48px; margin-block: 40px !important;
}
.data-block .data-num { color: var(--brand-accent); margin: 0; font-size: 88px; }
:root[data-theme="dark"] .data-block .data-num { color: var(--text-accent); }
.data-block p { font-size: 18px !important; }
.data-block .caption { margin-top: 12px; font-size: 14px; }

.quote { display: grid; grid-template-columns: 128px 1fr; gap: 32px; padding: 32px 48px; margin-block: 48px !important; }
.quote .symbol { width: 128px; color: var(--brand-accent); }
.quote p { font-family: var(--font-display); font-weight: 700; font-size: 36px; line-height: 1.18; letter-spacing: -.01em; max-width: 20ch; }
.quote cite { display: block; margin-top: 20px; font-style: normal; font-size: 14px; color: var(--text-muted); }

.so-what { background: var(--bg-feature); color: var(--text-on-feature); border-radius: var(--radius-lg); padding: 32px; margin-top: 32px !important; }
.so-what .label { color: var(--text-on-feature-accent); }
.so-what p { margin-top: 12px; font-family: var(--font-text); font-weight: 600; font-size: 22px; line-height: 1.45; max-width: 52ch; }

.sources { border-top: 1px solid var(--border-default); padding-top: 28px; margin-top: 28px; }
.sources ul { margin-top: 16px; display: grid; gap: 16px; }
.sources a { color: var(--text-accent); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.sources li span { display: block; margin-top: 2px; font-size: 13px; color: var(--text-secondary); }
.fix { background: var(--bg-subtle); border-radius: var(--radius-md); padding: 20px 20px 22px; margin-top: 28px; }
.fix p { margin-top: 8px; font-size: 16px; color: var(--text-secondary); }

.author-box { display: grid; grid-template-columns: 72px 1fr; gap: 20px; padding: 28px 0; border-block: 1px solid var(--border-default); }
.author-box .initials { width: 72px; height: 72px; font-size: 20px; }
.author-box h2 { font-family: var(--font-display); font-weight: 700; font-size: 26px; line-height: 1.2; }
.author-box .role { font-size: 14px; color: var(--text-muted); margin-top: 4px; }
.author-box p.bio { margin-top: 10px; color: var(--text-secondary); font-size: 16px; }
.author-box .links { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
.author-box .links a:not(.text-link) { color: var(--icon-default); }
.author-box .links svg { width: 22px; height: 22px; }
.text-link { color: var(--text-accent); font-weight: 600; font-size: 14px; margin-left: 4px; }

.article-side { position: sticky; top: 96px; display: flex; flex-direction: column; align-items: center; gap: 32px; }
.article-side > section { width: 100%; }
.article-side .list-item { grid-template-columns: 128px 1fr; }

.more-from { padding: 72px 0 104px; }

.mobile-only { display: none; }

/* ---------- Abertura (primeira visita) ---------- */

.intro {
  position: fixed; inset: 0; z-index: 300; display: grid; place-items: center;
  background: var(--bg-default);
  animation: intro-out .32s cubic-bezier(.7, 0, .2, 1) .62s forwards;
}
.intro-mark { display: flex; align-items: center; gap: 18px; color: var(--text-primary); }
.intro-mark .symbol { width: 72px; color: var(--brand-accent); animation: intro-symbol .45s cubic-bezier(.2, .9, .3, 1.3) both; }
.intro-mark .word { width: 240px; clip-path: inset(0 100% 0 0); animation: intro-word .38s cubic-bezier(.6, 0, .2, 1) .16s forwards; }
.intro-mark .word .two { fill: var(--brand-accent); }
@keyframes intro-symbol { from { transform: scale(.4) rotate(-18deg); opacity: 0; } }
@keyframes intro-word { to { clip-path: inset(0 0 0 0); } }
@keyframes intro-out { to { transform: translateY(-100%); visibility: hidden; } }
.intro.is-skipped { display: none; }

/* ---------- Tablet ---------- */

@media (max-width: 1180px) {
  :root { --gutter: 40px; --section-gap: 64px; --col-gap: 20px; }
  .brand svg { width: 156px; }
  .top-nav li + li::before { margin: 0 6px; }
  .main-nav > li > a, .main-nav > li > button { font-size: 13px; padding-inline: 6px; }
  .headline-card-big h2 { font-size: 36px; }
  .column-feature h2 { font-size: 36px; }
  .advertise h2 { font-size: 40px; }
}

@media (max-width: 1023px) {
  :root { --header-h: 108px; }
  .desktop-only { display: none !important; }
  .mobile-only { display: block; }

  .header-grid { display: flex; align-items: center; justify-content: space-between; height: 64px; }
  .brand { grid-row: auto; }
  .brand svg { width: 150px; }
  .header-top, .header-bottom { display: none; }
  .mobile-actions { display: flex; align-items: center; gap: 6px; }
  .mobile-bar {
    display: block; border-top: 1px solid var(--border-default);
    overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .mobile-bar::-webkit-scrollbar { display: none; }
  .mobile-bar ul { display: flex; gap: 22px; padding: 0 var(--gutter); width: max-content; }
  .mobile-bar a { display: block; padding-block: 12px; font-weight: 600; font-size: 14px; white-space: nowrap; } /* toque com 40 px de altura, barra do mesmo tamanho */
  .brand { padding-block: 10px; margin-block: -10px; } /* área de toque do logo sem mexer no desenho */
  .site-header.is-compact .mobile-bar { display: none; }

  .lead-grid, .trend-grid, .article-grid { grid-template-columns: minmax(0, 1fr); }
  .latest .list { display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--col-gap); }
  .latest .list-item:first-child { padding-top: 20px; }
  .latest .list-item:nth-child(-n+2) { padding-top: 0; }

  .cards-4 { grid-template-columns: 1fr 1fr; row-gap: 32px; }
  .data-row { grid-template-columns: repeat(4, 1fr); }
  .data-row > div { padding: 0 16px; }
  .data-row p { font-size: 15px; }

  .side { display: grid; grid-template-columns: 1fr 300px; gap: var(--col-gap); align-items: start; }

  .column-feature { grid-template-columns: 1fr; }
  .column-feature .photo { min-height: 0; aspect-ratio: 16 / 7; }
  .column-feature .body { padding: 32px; }

  .desk-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .advertise { grid-template-columns: 1fr; gap: 32px; padding: 40px; }
  .ad-970 { padding: 28px 32px; gap: 24px; }
  .ad-970 .ad-title { font-size: 24px; max-width: none; }
  .ad-970 .symbol { width: 64px; }

  .three { grid-template-columns: 1fr; gap: 56px; } /* 3 listas em 2 colunas deixavam buraco embaixo da segunda */

  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }

  .article-top h1 { font-size: 44px; }
  .article-side { position: static; }
  .article-side .list { display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--col-gap); }
  .article-side .list-item:nth-child(-n+2) { padding-top: 0; }
}

/* ---------- Celular ---------- */

@media (max-width: 640px) {
  :root { --gutter: 16px; --section-gap: 56px; --col-gap: 16px; }

  .brand svg { width: 138px; }
  .ticker .wrap { gap: 12px; }

  main.home { padding-top: 16px; }
  .headline-card-big .body { padding: 20px 20px 24px; }
  .headline-card-big h2 { font-size: 30px; line-height: 1.1; margin: 12px 0 14px; }
  .headline-card-big .photo { aspect-ratio: 358 / 220; }

  .section-head h2, .latest .section-head h2, .three .section-head h2 { font-size: 26px; }
  .latest .list, .article-side .list { grid-template-columns: 1fr; }
  .latest .list-item:nth-child(2), .article-side .list-item:nth-child(2) { padding-top: 20px; }
  .list-item { grid-template-columns: 118px 1fr; gap: 14px; }

  /* Cards que rolam para o lado, com o próximo aparecendo pela metade */
  .rail {
    display: grid; grid-auto-flow: column; grid-auto-columns: 78%; grid-template-columns: none;
    overflow-x: auto; scroll-snap-type: x mandatory; gap: 16px;
    margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter);
    scroll-padding-inline: var(--gutter); scrollbar-width: none;
  }
  .rail::-webkit-scrollbar { display: none; }
  .rail > * { scroll-snap-align: start; }

  .headline-card { font-size: 20px; }
  .data-panel { padding: 24px 20px 28px; }
  .data-head { flex-direction: column; gap: 4px; margin-bottom: 24px; }
  .data-row { grid-template-columns: 1fr 1fr; row-gap: 28px; }
  .data-row > div { padding: 0 16px; }
  .data-row > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .data-num { font-size: 52px; margin-bottom: 10px; }
  .data-row p { font-size: 14px; }

  .cards-2 { grid-template-columns: 1fr; }
  .cards-2 .photo { aspect-ratio: 358 / 200; }
  .side { display: flex; }
  .side .ad { display: none; }

  .column-feature .photo { aspect-ratio: 358 / 240; }
  .column-feature .body { padding: 24px 20px 28px; }
  .column-feature h2 { font-size: 30px; }
  .column-feature p { font-size: 16px; }
  .column-feature .foot { flex-direction: column; align-items: flex-start; }

  .ad-970, .ad:has(> .ad-970) { display: none; }
  .desk-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .desk { aspect-ratio: 173 / 100; padding: 12px; }
  .desk strong { font-size: 15px; }

  .advertise { padding: 28px 20px; }
  .advertise h2 { font-size: 32px; }
  .advertise p { font-size: 16px; }
  .formats a { font-size: 17px; padding: 16px 0; }

  .cards-4.stack-mobile { grid-template-columns: 1fr; }
  .stack-mobile .card { display: grid; grid-template-columns: 118px 1fr; grid-template-rows: auto 1fr; column-gap: 14px; padding-bottom: 20px; border-bottom: 1px solid var(--border-default); }
  .stack-mobile .card .photo { grid-row: 1 / span 2; align-self: start; }
  .stack-mobile .card .meta { grid-column: 2; }
  .stack-mobile .card .photo { aspect-ratio: 4 / 3; }
  .stack-mobile .card h3 { margin-top: 0; font-size: 18px; line-height: 1.28; }
  .stack-mobile .card .meta { margin-top: 8px; }

  .three { grid-template-columns: 1fr; gap: var(--section-gap); }

  .site-footer { padding-top: 48px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px 16px; }
  .footer-grid nav:last-child { grid-column: 1 / -1; }
  .footer-brand svg { width: 180px; }
  .footer-bottom { flex-direction: column; margin-top: 40px; }

  .article-top { padding-top: 20px; }
  .article-top h1 { font-size: 34px; line-height: 1.12; }
  .standfirst { font-size: 19px; }
  .credit { flex-direction: column; align-items: flex-start; gap: 16px; }
  .article-grid { padding-top: 24px; }
  .article-body figure { margin-inline: 0; }
  .prose > p, .data-block p { font-size: 17px !important; }
  .prose h2 { font-size: 26px; margin-top: 40px; }
  .data-block { grid-template-columns: 1fr; gap: 12px; padding: 24px 20px; }
  .data-block .data-num { font-size: 56px; }
  .quote { grid-template-columns: 1fr; gap: 16px; padding: 16px 32px; }
  .quote .symbol { width: 64px; }
  .quote p { font-size: 28px; }
  .so-what { padding: 24px 20px; }
  .so-what p { font-size: 19px; }
  .author-box { grid-template-columns: 56px 1fr; gap: 16px; }
  .author-box .initials { width: 56px; height: 56px; font-size: 17px; }
  .article-side .ad { display: none; }
  .more-from { padding: 56px 0 72px; }
  .ad-inline { display: flex; }
  .share > .label { flex-basis: 100%; margin: 0 0 4px; }
}

@media (min-width: 641px) { .ad-inline { display: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .ticker-move { animation: none; }
  .intro { display: none; }
}

/* Ações do cabeçalho no celular e tablet */
.mobile-actions { display: none; }
@media (max-width: 1023px) { .mobile-actions { display: flex; } }
.brand .two, .footer-brand .two { fill: var(--brand-accent); }
.mobile-menu nav a svg { width: 20px; height: 20px; color: var(--text-muted); }

/* =========================================================
   Coreografia
   Assinatura: entra desacelerando (0.05, .7, .1, 1), sai acelerando (.3, 0, 1, 1).
   Durações: rápida 160 ms · padrão 320 ms · lenta 560 ms.
   Um único momento orquestrado na chegada; ao rolar, só o fio das seções e a contagem dos dados.
   ========================================================= */
:root {
  --ease: cubic-bezier(.2, 0, 0, 1);
  --ease-enter: cubic-bezier(.05, .7, .1, 1);
  --ease-exit: cubic-bezier(.3, 0, 1, 1);
  --t-quick: 160ms;
  --t-base: 320ms;
  --t-slow: 560ms;
}

/* Entrada da página: só quando há JavaScript e a pessoa não pediu menos movimento */
.motion [data-enter] { opacity: 0; transform: translateY(16px); }
.motion .is-entered [data-enter] {
  opacity: 1; transform: none;
  transition: transform var(--t-slow) var(--ease-enter), opacity 400ms ease;
  transition-delay: calc(var(--base, 0ms) + var(--i, 0) * 55ms);
}
/* Foto principal: já pintada (não atrasa o carregamento), assenta e se abre */
.motion .enter-photo img { clip-path: inset(0 0 18% 0); transform: scale(1.06); }
.motion .is-entered .enter-photo img {
  clip-path: inset(0 0 0 0); transform: none;
  transition: clip-path 760ms var(--ease-enter), transform 900ms var(--ease-enter);
  transition-delay: var(--base, 0ms);
}
.motion .is-entered a.card-link:hover .enter-photo img { transform: scale(1.03); transition-delay: 0ms; }

/* Faixa Agora: começa a correr depois da entrada */
.motion .ticker-move { animation-delay: 1.1s; }

/* Fio das seções: desenha da esquerda para a direita ao entrar na tela */
.section-head { position: relative; border-top: 0; }
.section-head::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px;
  background: var(--text-primary); transform-origin: left center;
}
.motion .section-head:not(.is-in)::before { transform: scaleX(0); }
.motion .section-head.is-in::before { transition: transform 720ms var(--ease); }
.motion .section-tab h2 { transition: clip-path 520ms var(--ease-enter); }
.motion .section-tab:not(.is-in) h2 { clip-path: polygon(0 0, 0 0, 0 100%, 0 100%); }
.motion .section-tab { background: linear-gradient(var(--brand-accent), var(--brand-accent)) bottom left / 0 2px no-repeat; border-bottom-color: transparent; transition: background-size 720ms var(--ease) 120ms; }
.motion .section-tab.is-in { background-size: 100% 2px; }

/* Números do dado-chave: largura fixa por algarismo para não tremer na contagem */
.data-num { font-variant-numeric: tabular-nums; }

/* Respostas ao toque */
.btn, .chip, .icon-btn, .tabs [role="tab"] { transition: background-color var(--t-quick) ease, box-shadow var(--t-quick) ease, transform var(--t-quick) var(--ease); }
.btn:active, .chip:active, .icon-btn:active, .tabs [role="tab"]:active { transform: scale(.96); }
.chip.is-done { animation: pop var(--t-base) var(--ease-enter); }
@keyframes pop { 40% { transform: scale(1.06); } }
.theme-toggle svg { transition: transform var(--t-base) var(--ease-enter); }
.theme-toggle:hover svg { transform: rotate(-18deg); }

/* Menu de celular: os itens entram em cascata */
.motion .mobile-menu nav > * { opacity: 0; transform: translateY(10px); }
.motion .mobile-menu.is-open nav > * {
  opacity: 1; transform: none;
  transition: transform var(--t-base) var(--ease-enter), opacity 240ms ease;
  transition-delay: calc(80ms + var(--i, 0) * 22ms);
}

/* Troca de tema: o novo tema abre em círculo a partir do botão */
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }

@media (prefers-reduced-motion: reduce) {
  .motion [data-enter], .motion .enter-photo img { opacity: 1; transform: none; clip-path: none; }
  .motion .section-head::before { transform: none; }
}

/* Títulos sem palavra sozinha na última linha */
h1, h2, h3, .headline-card, .headline-list, .ad-title { text-wrap: pretty; }
.headline-card-big h2, .article-top h1, .column-feature h2, .advertise h2 { text-wrap: balance; }

/* =====================================================================
   Páginas do tema (aprovadas no Figma em 26/11): editoria, colunista,
   lista de colunistas, busca, 404, páginas fixas e formulários.
   ===================================================================== */

.btn--outline { background: transparent; color: var(--text-primary); box-shadow: inset 0 0 0 1px var(--text-primary); }
.btn--outline:hover { background: var(--bg-subtle); }
.sr-only:not(:focus):not(:active) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.display { font-family: var(--font-display); font-weight: 800; font-size: 72px; line-height: 76px; letter-spacing: -.01em; margin-top: 12px; }

/* Faixa de papel do topo (editoria, colunista, lista, busca, páginas) */
.page-top { background: var(--bg-subtle); padding: 48px 0 56px; }
.page-top .breadcrumb { margin-bottom: 24px; }
.page-top-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 560px); gap: 64px; align-items: end; }
.opening p { color: var(--text-secondary); font-size: 18px; line-height: 29px; }
.opening .caption { margin-top: 12px; font-size: 14px; }
.opening .search-inline { margin-top: 16px; }
.page-content { padding: 56px 0 96px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 72px; }

/* Grade de matérias com várias linhas */
.grid-rows { row-gap: 40px; }
.photo-empty { aspect-ratio: 302 / 200; display: grid; place-items: center; background: var(--bg-subtle); color: var(--border-strong); }
.photo-empty .symbol { width: 48px; }

/* Paginação numerada: página atual preenchida, as outras com contorno (a cor não é a única pista) */
.pagination { margin-top: 40px; display: flex; justify-content: center; }
.pagination .pages { display: flex; gap: 8px; align-items: center; }
.pagination .page-numbers { display: grid; place-items: center; min-width: 40px; height: 40px; padding: 0 8px; border-radius: var(--radius-sm); box-shadow: inset 0 0 0 1px var(--border-default); font-weight: 600; font-size: 14px; }
.pagination .page-numbers.current { background: var(--bg-feature); color: var(--text-on-feature); box-shadow: none; }
.pagination .page-numbers.dots { box-shadow: none; }
.pagination a.page-numbers:hover { box-shadow: inset 0 0 0 1px var(--text-primary); }
.pagination svg { width: 18px; height: 18px; }
.pages-mobile { display: none; }

/* Colunista */
.columnist-top .wrap { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 64px; align-items: center; }
.columnist-text .display { margin-top: 12px; }
.columnist-text .role { margin-top: 16px; font-family: var(--font-display); font-weight: 700; font-size: 24px; line-height: 1.3; color: var(--text-secondary); }
.columnist-text .bio { margin-top: 16px; max-width: 720px; font-size: 18px; line-height: 29px; }
.columnist-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 16px; }
.columnist-meta .social { display: flex; gap: 8px; }
.columnist-meta .icon-btn svg { width: 20px; height: 20px; }
.columnist-photo img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 50%; }
.columnist-photo.mobile-only { width: 120px; margin: 0 0 16px; }

/* Foto do autor na matéria (substitui as iniciais do protótipo) */
.avatar-sm, .avatar-lg { display: block; border-radius: 50%; overflow: hidden; flex-shrink: 0; background: var(--bg-subtle); }
.avatar-sm { width: 44px; height: 44px; }
.avatar-lg { width: 72px; height: 72px; }
.avatar-sm img, .avatar-lg img { width: 100%; height: 100%; object-fit: cover; }

/* Lista de colunistas */
.index-tools { display: grid; gap: 20px; margin-top: 8px; }
.index-tools .search-field { max-width: 508px; border: 1px solid var(--border-strong); border-radius: var(--radius-full); padding: 0 20px; height: 48px; }
.index-tools .search-field input { font-family: var(--font-text); font-weight: 400; font-size: 16px; padding: 0; height: 100%; }
.index-tools .search-field input::placeholder { color: var(--text-muted); }
.index-tools .search-field svg { width: 20px; height: 20px; color: var(--text-muted); flex-shrink: 0; }
.letters { display: flex; flex-wrap: wrap; gap: 8px; }
.letters .tag--outline, .letters .letter-off { width: 36px; justify-content: center; padding: 0; }
.letter-off { display: inline-flex; align-items: center; height: 24px; font-weight: 700; font-size: 12px; color: var(--text-muted); }
.index-group { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 24px; padding-top: 24px; margin-top: 24px; border-top: 1px solid var(--border-default); }
.index-letter { font-family: var(--font-display); font-weight: 700; font-size: 32px; line-height: 1; padding-top: 32px; }
.index-people { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 48px; }
.person a { display: flex; align-items: center; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--border-default); }
.person .avatar { width: 48px; height: 48px; border-radius: 50%; overflow: hidden; flex-shrink: 0; }
.person .avatar img { width: 100%; height: 100%; object-fit: cover; }
.person .who { display: grid; gap: 4px; }
.person strong { font-family: var(--font-display); font-weight: 700; font-size: 18px; line-height: 1.28; }
.person .who > span:not(.caption) { font-size: 14px; color: var(--text-secondary); }
.person a:hover strong { text-decoration: underline; text-underline-offset: 4px; }
.index-empty { margin-top: 24px; padding: 40px; border: 1px solid var(--border-default); border-radius: var(--radius-md); }
.index-empty h3 { font-family: var(--font-display); font-weight: 700; font-size: 32px; line-height: 1.2; }
.index-empty p { margin: 12px 0 20px; color: var(--text-secondary); }

/* Faixa Seja colunista */
.join { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 56px; border-radius: var(--radius-md); background: var(--bg-feature); color: var(--text-on-feature); }
.join .label { color: var(--text-on-feature-accent); }
.join h2 { margin-top: 12px; font-family: var(--font-display); font-weight: 700; font-size: 36px; line-height: 1.15; letter-spacing: -.01em; }
.join p { margin-top: 12px; max-width: 64ch; color: var(--text-on-feature-muted); font-size: 18px; line-height: 29px; }
.join .btn { flex-shrink: 0; }

/* Estado vazio */
.empty-state { padding: 48px; border: 1px solid var(--border-default); border-radius: var(--radius-md); display: grid; gap: 16px; justify-items: start; }
.empty-state h2 { font-family: var(--font-display); font-weight: 700; font-size: 36px; line-height: 1.15; }
.empty-state p { color: var(--text-secondary); max-width: 64ch; }

/* Páginas fixas e formulários */
.page-text { max-width: 848px; }
.page-text .prose > :first-child { margin-top: 0; }
.form-box { padding-top: 8px; }
.rh2b-form { display: grid; gap: 20px; max-width: 640px; }
.rh2b-form .field { display: grid; gap: 8px; }
.rh2b-form label { font-weight: 600; font-size: 15px; }
.rh2b-form .opt { font-weight: 400; color: var(--text-muted); }
.rh2b-form input, .rh2b-form textarea { width: 100%; font: inherit; font-size: 16px; color: var(--text-primary); background: var(--bg-default); border: 1px solid var(--border-strong); border-radius: var(--radius-md); padding: 12px 16px; }
.rh2b-form input[type="file"] { padding: 8px; color: var(--text-secondary); cursor: pointer; }
.rh2b-form input[type="file"]::file-selector-button { font: inherit; font-weight: 600; font-size: 15px; color: var(--text-primary); background: transparent; border: 1px solid var(--border-strong); border-radius: 999px; padding: 8px 16px; margin-right: 12px; cursor: pointer; }
.rh2b-form input[type="file"]:hover::file-selector-button { background: var(--bg-subtle, rgba(0,0,0,.04)); }
.rh2b-form input:focus, .rh2b-form textarea:focus { outline: 2px solid var(--text-primary); outline-offset: 2px; }
.rh2b-form .btn { justify-self: start; }
.rh2b-form .hp { position: absolute; left: -9999px; }
.form-ok, .form-erro { max-width: 640px; padding: 16px 20px; border-radius: var(--radius-md); margin-bottom: 24px; font-weight: 600; }
.form-ok { background: var(--bg-subtle); box-shadow: inset 4px 0 0 var(--text-primary); }
.form-erro { background: var(--bg-highlight); box-shadow: inset 4px 0 0 var(--brand-accent); }
.search-inline .search-field input { background: transparent; }

/* Item do menu da editoria atual */
.top-nav a[aria-current="page"], .main-nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--brand-accent); }

@media (max-width: 1180px) {
  .display { font-size: 56px; line-height: 60px; }
  .page-top-row { gap: 40px; }
  .index-people { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1023px) {
  .page-top-row { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .columnist-top .wrap { grid-template-columns: minmax(0, 1fr) 200px; gap: 32px; }
  .columnist-photo.desktop-only { display: block !important; }
  .columnist-photo.mobile-only { display: none; }
  .index-group { grid-template-columns: 64px minmax(0, 1fr); }
  .join { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 640px) {
  .display { font-size: 44px; line-height: 48px; }
  .page-top { padding: 24px 0 32px; }
  .page-content { padding: 32px 0 64px; gap: 48px; }
  .opening p { font-size: 16px; line-height: 26px; }
  .columnist-top .wrap { grid-template-columns: 1fr; }
  .columnist-photo.desktop-only { display: none !important; }
  .columnist-photo.mobile-only { display: block; }
  .columnist-text .role { font-size: 20px; }
  .columnist-text .bio { font-size: 16px; line-height: 26px; }
  .columnist-meta { flex-direction: column; align-items: flex-start; }
  .grid-rows { grid-template-columns: 1fr; }
  .pagination .pages { display: none; }
  .pages-mobile { display: flex; align-items: center; gap: 16px; margin: 0; }
  .index-group { grid-template-columns: 1fr; gap: 8px; padding-top: 16px; margin-top: 16px; }
  .index-letter { padding-top: 0; font-size: 26px; }
  .index-people { grid-template-columns: 1fr; }
  .join { padding: 32px 24px; }
  .join h2 { font-size: 28px; max-width: 250px; }
  .empty-state { padding: 32px 24px; }
  .empty-state h2, .index-empty h3 { font-size: 26px; }
}

/* Tabela no texto (formatos da página Anuncie) */
.prose table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 16px; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 14px 16px 14px 0; border-bottom: 1px solid var(--border-default); }
.prose th { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); }
.prose td:first-child { font-weight: 600; width: 32%; }
@media (max-width: 640px) { .prose td:first-child { width: 40%; } }
.prose > ul { display: grid; gap: 10px; padding-left: 22px; list-style: disc; font-size: 18px; line-height: 1.6; }
.prose > ul li::marker { color: var(--text-accent); }
.prose > blockquote { padding-left: 24px; border-left: 3px solid var(--brand-accent); font-family: var(--font-display); font-weight: 700; font-size: 26px; line-height: 1.3; }

/* iPad deitado (1024): logo e folgas um pouco menores para o cabeçalho de computador caber inteiro. Fica no fim para vencer a regra de 1180. */
@media (min-width: 1024px) and (max-width: 1100px) {
  .header-grid { column-gap: 20px; }
  .brand svg { width: 136px; }
  .main-nav { gap: 0; }
  .main-nav > li > a, .main-nav > li > button { padding-inline: 4px; }
}

/* Datas das listas nunca quebram no meio ("27 de novembro / de 2026"): onde a coluna aperta, a foto da lista encolhe */
.list-item .caption { white-space: nowrap; }
@media (max-width: 400px), (min-width: 641px) and (max-width: 820px) {
  .list-item, .three .list-item, .article-side .list-item { grid-template-columns: 96px 1fr; gap: 14px; }
}
/* Colunistas entre 1024 e 1180: 4 por linha quebrava nome e cargo em uns cartões e não em outros; 2 por linha mantém todos iguais */
@media (min-width: 1024px) and (max-width: 1180px) {
  .cards-4:has(> article > .columnist) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* Anúncio da casa em celular de 320: sem o símbolo, o rótulo cabe em uma linha */
@media (max-width: 360px) { .ad-320 .symbol { display: none; } }

/* Rótulo da editoria em uma linha (o mais longo, DEPARTAMENTO PESSOAL, pede 181 px): */
/* tablet estreito: as listas em 2 colunas ficavam com 168 px de texto, então viram 1 coluna */
@media (min-width: 641px) and (max-width: 720px) {
  .latest .list, .article-side .list { grid-template-columns: 1fr; }
  .latest .list-item:nth-child(2), .article-side .list-item:nth-child(2) { padding-top: 20px; }
}
/* iPad deitado: a coluna Últimas tem 300 px; com a foto de 96 sobram 190 para o texto */
@media (min-width: 1024px) and (max-width: 1180px) { .latest .list-item { grid-template-columns: 96px 1fr; gap: 14px; } }
/* celular de 320: foto de 88 */
@media (max-width: 340px) { .list-item, .three .list-item, .article-side .list-item { grid-template-columns: 88px 1fr; } }
/* Colunistas: 2 por linha até 1260 (com 4, nome e cargo quebravam em uns cartões e não em outros) */
@media (min-width: 1181px) and (max-width: 1260px) {
  .cards-4:has(> article > .columnist) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* Carrossel de colunistas no celular: cartão mais largo para nome e cargo caberem inteiros */
@media (max-width: 640px) { .rail:has(> article > .columnist) { grid-auto-columns: 86%; } }
/* Editorias entre 1024 e 1260: com 6 por linha os nomes longos não cabiam no bloco; 4 por linha, 3 linhas */
@media (min-width: 1024px) and (max-width: 1260px) { .desk-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* Quantas editorias o Léo puser no menu: o que não couber na linha se esconde (a partir da última) e continua no botão Menu */
.header-top > nav, .header-bottom > nav { flex: 1 1 auto; min-width: 0; overflow: hidden; display: flex; }
.header-top > nav { justify-content: flex-end; }
.top-nav > li.nao-cabe, .main-nav > li.nao-cabe { display: none; }

