:root {
  --color-brand: #0a2b57;
  --color-brand-dark: #061c3a;
  --color-brand-soft: #e9eef6;
  --color-accent: #e0142b;
  --color-accent-dark: #b80f22;
  --color-bg: #ffffff;
  --color-bg-soft: #f3f5f8;
  --color-border: #e3e6eb;
  --color-title: #17212f;
  --color-text: #333a45;
  --color-text-muted: #5d6673;
  --color-text-soft: #8a929e;
  --radius-sm: 4px;
  --radius-md: 8px;
  --header-height: 64px;
  --max-width: 1200px;
  --gutter: 16px;
}

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

[hidden] {
  display: none !important;
}

html,
body {
  margin: 0;
  padding: 0;
}

html {
  scroll-padding-top: calc(var(--header-height) + 16px);
}

body {
  min-height: 100vh;
  font-family: "Open Sans", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  background: var(--color-bg);
  color: var(--color-text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.menu-open {
  overflow: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font-family: inherit;
}

:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 100;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  background: #ffffff;
  color: var(--color-brand);
  font-weight: 700;
}

.skip-link:focus {
  top: 8px;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--color-brand);
  color: #ffffff;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.18);
}

.header-bar {
  max-width: var(--max-width);
  height: var(--header-height);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 16px;
}

.menu-toggle {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 4px;
  border: none;
  background: transparent;
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.menu-toggle-icon {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
}

.menu-toggle-icon span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
}

.logo-mark {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-name {
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.logo-tagline {
  margin-top: 2px;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.02em;
  white-space: nowrap;
  opacity: 0.85;
}

.search {
  justify-self: end;
  position: relative;
  display: flex;
  align-items: center;
  width: min(100%, 240px);
}

.search input {
  width: 100%;
  height: 36px;
  padding: 0 40px 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-size: 13px;
  -webkit-appearance: none;
  appearance: none;
}

.search input::placeholder {
  color: rgba(255, 255, 255, 0.8);
  font-weight: 700;
  letter-spacing: 0.08em;
}

.search input:focus {
  outline: none;
  border-color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
}

.search button {
  position: absolute;
  right: 4px;
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: #ffffff;
  cursor: pointer;
}

.search svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

/* Section bar */

.section-bar {
  background: #ffffff;
  border-bottom: 1px solid var(--color-border);
}

.section-bar ul {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  gap: 24px;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
}

.section-bar ul::-webkit-scrollbar {
  display: none;
}

.section-bar li {
  flex: none;
}

.section-bar a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 0 10px;
  border-bottom: 3px solid transparent;
  color: var(--color-text-muted);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.section-bar a:hover,
.section-bar a[aria-current="page"] {
  color: var(--color-brand);
  border-bottom-color: var(--color-brand);
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(224, 20, 43, 0.25);
  animation: live-pulse 1.6s ease-in-out infinite;
}

@keyframes live-pulse {
  50% {
    box-shadow: 0 0 0 6px rgba(224, 20, 43, 0);
  }
}

/* Menu lateral */

.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(6, 28, 58, 0.55);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0s linear 0.2s;
}

.site-menu {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 60;
  width: min(86vw, 340px);
  overflow-y: auto;
  background: #ffffff;
  box-shadow: 8px 0 32px rgba(0, 0, 0, 0.25);
  transform: translateX(-100%);
  visibility: hidden;
  transition: transform 0.25s ease, visibility 0s linear 0.25s;
}

.menu-open .menu-overlay {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.2s ease;
}

.menu-open .site-menu {
  transform: translateX(0);
  visibility: visible;
  transition: transform 0.25s ease;
}

.site-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  padding: 0 12px 0 20px;
  background: var(--color-brand);
  color: #ffffff;
}

.site-menu-header .logo-name {
  font-size: 18px;
}

.menu-close {
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  color: #ffffff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.site-menu .search {
  justify-self: stretch;
  width: auto;
  margin: 16px 20px 4px;
}

.site-menu .search input {
  border-color: var(--color-border);
  background: var(--color-bg-soft);
  color: var(--color-title);
}

.site-menu .search input::placeholder {
  color: var(--color-text-muted);
  font-weight: 400;
  letter-spacing: 0;
}

.site-menu .search input:focus {
  border-color: var(--color-brand);
  background: #ffffff;
}

.site-menu .search button {
  color: var(--color-brand);
}

.menu-group {
  padding: 12px 0;
  border-bottom: 1px solid var(--color-border);
}

.menu-group:last-child {
  border-bottom: none;
}

.menu-group-title {
  margin: 4px 20px 6px;
  color: var(--color-text-soft);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.menu-group ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.menu-group a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 20px;
  color: var(--color-title);
  font-size: 15px;
  font-weight: 600;
}

.menu-group a:hover {
  background: var(--color-brand-soft);
  color: var(--color-brand);
}

/* Títulos de seção */

.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 18px;
}

.section-heading h2 {
  margin: 0;
  padding-left: 12px;
  border-left: 4px solid var(--color-accent);
  color: var(--color-brand);
  font-size: 22px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.section-heading-link {
  color: var(--color-brand);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.section-heading-link:hover {
  text-decoration: underline;
}

.chapeu {
  margin: 0 0 6px;
  color: var(--color-brand);
  font-size: 14px;
  font-weight: 700;
}

/* Destaques */

.highlights {
  padding: 24px 0 32px;
}

.highlights-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 24px;
}

.highlight-main-link {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--color-brand-dark);
  color: #ffffff;
}

.highlight-main-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center var(--focus-y, 50%);
  transition: transform 0.4s ease;
}

.highlight-main-link::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(6, 28, 58, 0) 35%,
    rgba(6, 28, 58, 0.92) 100%
  );
}

.highlight-main-text {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  padding: 24px 28px;
}

.highlight-main-text .chapeu {
  color: #ffffff;
  opacity: 0.9;
}

.highlight-main-text h2 {
  margin: 0;
  font-size: 34px;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.highlight-main-summary {
  max-width: 620px;
  margin: 10px 0 0;
  font-size: 15px;
  line-height: 1.5;
  opacity: 0.9;
}

.video-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
  padding: 3px 9px;
  border-radius: var(--radius-sm);
  background: var(--color-accent);
  font-size: 12px;
  font-weight: 700;
}

.highlight-main-link:hover img {
  transform: scale(1.03);
}

.highlight-main-link:hover h2 {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.related {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.related li {
  position: relative;
  padding-left: 16px;
  margin-bottom: 6px;
}

.related li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--color-accent);
}

.related a {
  color: var(--color-title);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
}

.related a:hover {
  color: var(--color-brand);
  text-decoration: underline;
}

.highlight-side {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.highlight-item + .highlight-item {
  padding-top: 20px;
  border-top: 1px solid var(--color-border);
}

.highlight-item-media {
  position: relative;
  display: block;
  margin-bottom: 10px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--color-brand-dark);
}

.highlight-item-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center var(--focus-y, 50%);
}

.highlight-item h3 {
  margin: 0 0 6px;
  color: var(--color-title);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.25;
}

.highlight-item h3 a:hover {
  color: var(--color-brand);
  text-decoration: underline;
}

.highlight-item p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 14px;
  line-height: 1.5;
}

/* Selos de vídeo */

.play-badge {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 1;
  width: 56px;
  height: 56px;
  padding-left: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(224, 20, 43, 0.92);
  color: #ffffff;
  font-size: 20px;
  transform: translate(-50%, -50%);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
  transition: transform 0.16s ease;
}

.play-badge.small {
  width: 40px;
  height: 40px;
  font-size: 15px;
}

.video-duration {
  position: absolute;
  right: 8px;
  bottom: 8px;
  z-index: 1;
  padding: 2px 7px;
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.75);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
}

a:hover > .play-badge {
  transform: translate(-50%, -50%) scale(1.08);
}

/* Ao vivo */

.live {
  padding: 32px 0;
  background: var(--color-brand-dark);
  color: #ffffff;
}

.live-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

.live-player {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: radial-gradient(
      circle at 70% 20%,
      rgba(224, 20, 43, 0.35),
      transparent 45%
    ),
    radial-gradient(circle at 20% 90%, #1d4f8f, transparent 55%),
    var(--color-brand);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.live-player-mark {
  width: 22%;
  height: auto;
  opacity: 0.22;
  border-radius: 12px;
}

.live-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  background: var(--color-accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.live-badge .live-dot {
  background: #ffffff;
  box-shadow: none;
  animation: none;
}

.live-player-caption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 36px 18px 14px;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.6));
  font-size: 15px;
  font-weight: 600;
}

.live-player-caption strong {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.8;
}

.live-kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.9;
}

.live-info h2 {
  margin: 0 0 8px;
  font-size: 28px;
  font-weight: 800;
  line-height: 1.15;
}

.live-info > p {
  margin: 0 0 16px;
  font-size: 15px;
  line-height: 1.5;
  opacity: 0.85;
}

.live-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  background: #ffffff;
  color: var(--color-brand);
  font-size: 14px;
  font-weight: 800;
}

.live-cta:hover {
  background: var(--color-brand-soft);
}

.schedule-title {
  margin: 28px 0 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.7;
}

.schedule {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.schedule li {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 15px;
}

.schedule time {
  font-weight: 700;
  opacity: 0.7;
}

.schedule .is-live {
  font-weight: 700;
}

.schedule .is-live time {
  opacity: 1;
}

.schedule-now {
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  background: var(--color-accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Feed + sidebar */

.news {
  padding: 36px 0 48px;
}

.news-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 48px;
  align-items: start;
}

.feed-status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 0 0 8px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: var(--color-brand-soft);
  color: var(--color-title);
  font-size: 14px;
}

.feed-status button {
  padding: 0;
  border: none;
  background: none;
  color: var(--color-brand);
  font-size: 14px;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
}

.feed-post {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--color-border);
}

.feed-post:first-of-type {
  padding-top: 4px;
}

.feed-post.no-media {
  grid-template-columns: minmax(0, 1fr);
}

.feed-media {
  position: relative;
  display: block;
  align-self: start;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--color-brand-dark);
}

.feed-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center var(--focus-y, 50%);
  transition: transform 0.3s ease;
}

.feed-media:hover img {
  transform: scale(1.04);
}

.feed-title {
  margin: 0 0 8px;
  color: var(--color-title);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.feed-title a:hover {
  color: var(--color-brand);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.feed-summary {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 15px;
  line-height: 1.55;
}

.feed-post .related {
  margin-top: 10px;
}

.feed-post .related a {
  font-size: 14px;
}

.feed-meta {
  margin: 10px 0 0;
  color: var(--color-text-soft);
  font-size: 13px;
}

.feed-empty {
  margin: 24px 0;
  color: var(--color-text-muted);
  font-size: 15px;
}

.feed-more {
  display: block;
  width: 100%;
  margin-top: 28px;
  padding: 14px;
  border: 2px solid var(--color-brand);
  border-radius: var(--radius-md);
  background: #ffffff;
  color: var(--color-brand);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.16s ease, color 0.16s ease;
}

.feed-more:hover {
  background: var(--color-brand);
  color: #ffffff;
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.ranked {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ranked li + li {
  border-top: 1px solid var(--color-border);
}

.ranked a {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 10px;
  padding: 12px 0;
  color: var(--color-title);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
}

.ranked a:hover {
  color: var(--color-brand);
}

.ranked a:hover span:last-child {
  text-decoration: underline;
}

.rank {
  color: var(--color-brand);
  font-size: 30px;
  font-weight: 800;
  line-height: 1;
}

.column-card + .column-card {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--color-border);
}

.column-card h3 {
  margin: 0 0 6px;
  color: var(--color-title);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
}

.column-card a:hover h3 {
  color: var(--color-brand);
  text-decoration: underline;
}

.column-card p {
  margin: 0 0 6px;
  color: var(--color-text-muted);
  font-size: 14px;
  line-height: 1.5;
}

.column-author {
  color: var(--color-text-soft);
  font-size: 13px;
}

.media-card {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.media-card + .media-card {
  margin-top: 14px;
}

.media-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-md);
  background: radial-gradient(circle at 70% 20%, #1d4f8f, transparent 60%),
    var(--color-brand);
}

.media-tag {
  margin: 0 0 2px;
  color: var(--color-accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.media-card h3 {
  margin: 0 0 2px;
  color: var(--color-title);
  font-size: 15px;
  font-weight: 700;
}

.media-card p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 13px;
  line-height: 1.4;
}

.media-card:hover h3 {
  color: var(--color-brand);
  text-decoration: underline;
}

/* Programas */

.programs {
  padding: 40px 0 48px;
  background: var(--color-bg-soft);
}

.programs-grid {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}

.program-card {
  height: 100%;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(10, 43, 87, 0.08),
    0 4px 14px rgba(10, 43, 87, 0.06);
}

.program-cover {
  --tone: #1d4f8f;
  position: relative;
  display: flex;
  align-items: flex-end;
  aspect-ratio: 16 / 7;
  padding: 14px 16px;
  background: radial-gradient(circle at 85% 15%, var(--tone), transparent 60%),
    var(--color-brand);
  color: #ffffff;
}

.program-cover h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.15;
}

.program-time {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.16);
  font-size: 12px;
  font-weight: 700;
}

.program-info {
  padding: 14px 16px 16px;
}

.program-info p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 14px;
  line-height: 1.5;
}

.program-info a {
  display: inline-block;
  margin-top: 10px;
  color: var(--color-brand);
  font-size: 14px;
  font-weight: 700;
}

.program-info a:hover {
  text-decoration: underline;
}

.tone-morning {
  --tone: #f2a33a;
}

.tone-corporate {
  --tone: #e0142b;
}

.tone-journal {
  --tone: #2f7de1;
}

.tone-debate {
  --tone: #8b5cf6;
}

.tone-economy {
  --tone: #16a37f;
}

.tone-night {
  --tone: #3b4f9a;
}

.tone-check {
  --tone: #f0582a;
}

/* Matéria */

.article-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 32px var(--gutter) 24px;
}

.article-header .chapeu {
  display: inline-block;
  margin-bottom: 12px;
  font-size: 15px;
}

.article-header .chapeu:hover {
  text-decoration: underline;
}

.article-header h1 {
  margin: 0 0 14px;
  color: var(--color-title);
  font-size: 40px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.article-subtitle {
  margin: 0 0 22px;
  color: var(--color-text-muted);
  font-size: 20px;
  line-height: 1.5;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding: 14px 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text-muted);
  font-size: 14px;
}

.article-meta p {
  margin: 0;
}

.article-meta strong {
  color: var(--color-title);
  font-weight: 700;
}

.article-dates {
  margin-top: 2px !important;
  font-size: 13px;
}

.share-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: #ffffff;
  color: var(--color-brand);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.share-button:hover {
  border-color: var(--color-brand);
  background: var(--color-brand-soft);
}

.share-button svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.article-video {
  margin: 24px 0 28px;
}

.article-video-frame {
  position: relative;
  display: flex;
  justify-content: center;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--color-brand-dark);
}

.article-video-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(28px) brightness(0.5);
  transform: scale(1.2);
}

.article-video video,
.article-video .article-image {
  position: relative;
  display: block;
  width: auto;
  max-width: 100%;
  height: min(72vh, 620px);
}

.article-video figcaption {
  margin-top: 8px;
  color: var(--color-text-muted);
  font-size: 13px;
  line-height: 1.5;
}

.article-body {
  color: var(--color-text);
  font-size: 18px;
  line-height: 1.75;
}

.article-body p {
  margin: 0 0 20px;
}

.article-body a {
  color: var(--color-brand);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.article-body a:hover {
  text-decoration-thickness: 2px;
}

.article-body h2 {
  margin: 36px 0 12px;
  color: var(--color-title);
  font-size: 24px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.article-quote {
  margin: 30px 0;
  padding: 4px 0 4px 20px;
  border-left: 4px solid var(--color-accent);
}

.article-quote p {
  margin: 0 0 8px;
  color: var(--color-title);
  font-size: 23px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

.article-quote cite {
  color: var(--color-text-muted);
  font-size: 14px;
  font-style: normal;
}

.article-box {
  margin: 30px 0 10px;
  padding: 18px 20px 4px;
  border-radius: var(--radius-md);
  background: var(--color-brand-soft);
}

.article-box h3 {
  margin: 0 0 8px;
  color: var(--color-brand);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.article-box ul {
  margin: 0 0 16px;
  padding-left: 20px;
  font-size: 16px;
  line-height: 1.6;
}

.article-box li {
  margin-bottom: 4px;
}

.article-note {
  margin: 30px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--color-border);
  color: var(--color-text-muted);
  font-size: 14px;
  font-style: italic;
}

.article-more {
  max-width: 800px;
  margin: 0 auto;
  padding: 32px var(--gutter) 56px;
}

.article-more > section + section {
  margin-top: 40px;
}

/* Rodapé */

.site-footer {
  background: var(--color-brand-dark);
  color: rgba(255, 255, 255, 0.82);
}

.footer-top {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 40px var(--gutter) 28px;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr));
  gap: 32px;
}

.footer-brand p {
  max-width: 280px;
  margin: 14px 0 0;
  font-size: 14px;
  line-height: 1.6;
}

.footer-column h3 {
  margin: 0 0 12px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer-column ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-column li {
  margin-bottom: 6px;
  break-inside: avoid;
}

.footer-column.two-columns ul {
  columns: 2;
  column-gap: 16px;
}

.footer-column a {
  font-size: 14px;
}

.footer-column a:hover,
.footer-bottom a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.footer-bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 16px var(--gutter) 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 13px;
}

.footer-bottom p {
  margin: 0;
}

.footer-bottom ul {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Voltar ao topo */

.back-to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 30;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 999px;
  background: var(--color-brand);
  color: #ffffff;
  font-size: 18px;
  box-shadow: 0 8px 24px rgba(6, 28, 58, 0.35);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Responsivo */

@media (max-width: 1024px) {
  .news-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }

  .sidebar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
  }

  .footer-top {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

@media (max-width: 860px) {
  .highlights-grid,
  .live-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .highlight-side {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }

  .highlight-item + .highlight-item {
    padding-top: 0;
    border-top: none;
  }

  .live-grid {
    gap: 24px;
  }

  .feed-post {
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 18px;
  }

  .feed-title {
    font-size: 20px;
  }
}

@media (max-width: 720px) {
  :root {
    --header-height: 56px;
  }

  .header-bar {
    gap: 8px;
  }

  .header-bar > .search,
  .menu-toggle-label {
    display: none;
  }

  .logo {
    gap: 8px;
  }

  .logo-mark {
    width: 32px;
    height: 32px;
    border-radius: 7px;
  }

  .logo-name {
    font-size: 17px;
  }

  .logo-tagline {
    font-size: 9.5px;
    letter-spacing: 0;
  }

  .highlights {
    padding-top: 16px;
  }

  .highlight-main-text {
    padding: 16px 18px;
  }

  .highlight-main-text h2 {
    font-size: 24px;
  }

  .highlight-main-summary {
    display: none;
  }

  .highlight-side,
  .sidebar {
    grid-template-columns: minmax(0, 1fr);
  }

  .highlight-item + .highlight-item {
    padding-top: 20px;
    border-top: 1px solid var(--color-border);
  }

  .feed-post {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .feed-title {
    font-size: 19px;
  }

  .live-info h2 {
    font-size: 24px;
  }

  .programs-grid {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 78%;
    gap: 14px;
    margin: 0 calc(var(--gutter) * -1);
    padding: 0 var(--gutter) 8px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding: 0 var(--gutter);
  }

  .programs-grid li {
    scroll-snap-align: start;
  }

  .article-page {
    padding-top: 20px;
  }

  .article-header h1 {
    font-size: 28px;
  }

  .article-subtitle {
    font-size: 17px;
  }

  .article-body {
    font-size: 17px;
  }

  .article-quote p {
    font-size: 20px;
  }

  .footer-top {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

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