/*
 * Destaque Hoje — sistema editorial 2.0
 * Camada compartilhada entre capa, matérias, categorias e páginas.
 */

:root {
  --dh-ink: #07152f;
  --dh-ink-soft: #152541;
  --dh-blue: #1268d6;
  --dh-blue-dark: #062766;
  --dh-cyan: #30a8ff;
  --dh-paper: #f7f8fa;
  --dh-white: #ffffff;
  --dh-muted: #667085;
  --dh-line: #dfe4eb;
  --dh-line-dark: rgba(255, 255, 255, 0.16);
  --dh-radius: 8px;
  --dh-shadow-soft: 0 14px 36px rgba(7, 21, 47, 0.08);
  --dh-serif: "Merriweather", Georgia, "Times New Roman", serif;
  --dh-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--dh-white);
  color: var(--dh-ink);
  font-family: var(--dh-sans);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body * {
  box-sizing: border-box;
}

body img {
  max-width: 100%;
  height: auto;
}

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

body a:hover {
  color: var(--dh-blue);
}

body :where(a, button, input, textarea, select):focus-visible {
  outline: 3px solid rgba(48, 168, 255, 0.6);
  outline-offset: 3px;
}

.screen-reader-text {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.dh-skip {
  background: var(--dh-white);
  color: var(--dh-ink);
  left: 16px;
  padding: 11px 16px;
  position: fixed;
  top: -80px;
  z-index: 100000;
  border: 2px solid var(--dh-blue);
  border-radius: 4px;
  font-weight: 800;
}

.dh-skip:focus {
  top: 12px;
}

.dh-container {
  width: min(var(--dh-container, 1320px), calc(100% - 48px));
  margin-inline: auto;
}

.dh-topbar,
.home .dh-topbar {
  background: var(--dh-ink);
  border: 0;
  color: rgba(255, 255, 255, 0.88);
}

.dh-topbar .dh-topbar-inner {
  min-height: 38px;
  height: auto;
  gap: 20px;
}

.dh-topbar .dh-topbar-data-rich,
.dh-topbar .dh-topbar-right,
.dh-topbar .dh-weather {
  color: inherit;
  font-family: var(--dh-sans);
  font-size: 0.75rem;
  letter-spacing: 0.01em;
}

.dh-topbar .dh-topbar-data-rich {
  gap: 22px;
}

.dh-topbar .dh-top-item {
  position: relative;
}

.dh-topbar .dh-top-item + .dh-top-item::before {
  content: "";
  position: absolute;
  width: 1px;
  height: 13px;
  background: rgba(255, 255, 255, 0.2);
  left: -11px;
  top: 50%;
  transform: translateY(-50%);
}

.dh-topbar em.up {
  color: #4ee09a;
}

.dh-topbar em.down {
  color: #ff6b78;
}

.dh-topbar .dh-social-mark {
  color: #fff;
}

.dh-header {
  background: rgba(255, 255, 255, 0.97);
  border: 0;
  border-bottom: 1px solid var(--dh-line);
  box-shadow: none;
  backdrop-filter: saturate(160%) blur(12px);
  z-index: 1000;
}

.dh-header .dh-header-inner {
  min-height: 88px;
  height: auto;
  display: flex;
  align-items: center;
}

.dh-brand {
  min-width: 230px;
}

.dh-brand .dh-logo {
  display: block;
  width: auto;
  height: 52px;
  max-width: 235px;
  object-fit: contain;
}

.dh-nav {
  margin-left: auto;
}

.dh-menu {
  align-items: center;
  gap: 3px;
}

.dh-menu a {
  position: relative;
  padding: 13px 11px;
  color: var(--dh-ink-soft);
  font-family: var(--dh-sans);
  font-size: 0.83rem;
  font-weight: 750;
  line-height: 1.2;
  white-space: nowrap;
}

.dh-menu a::after {
  content: "";
  position: absolute;
  left: 11px;
  right: 11px;
  bottom: 6px;
  height: 2px;
  background: var(--dh-blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 160ms ease;
}

.dh-menu a:hover::after,
.dh-menu .current-menu-item > a::after,
.dh-menu .current-menu-ancestor > a::after {
  transform: scaleX(1);
}

.dh-search-toggle,
.dh-menu-toggle {
  width: 42px;
  height: 42px;
  border: 1px solid var(--dh-line);
  border-radius: 50%;
  background: var(--dh-white);
  color: var(--dh-ink);
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.dh-search-toggle:hover,
.dh-menu-toggle:hover {
  background: var(--dh-ink);
  border-color: var(--dh-ink);
  color: var(--dh-white);
}

.dh-search-box {
  border-top: 1px solid var(--dh-line);
  padding-block: 14px;
}

.dh-search-box form,
.dh-empty form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.dh-search-box input,
.dh-empty input {
  min-height: 46px;
  border: 1px solid var(--dh-line);
  border-radius: 4px;
  padding: 0 14px;
  color: var(--dh-ink);
  background: #fff;
}

.dh-search-box button,
.dh-empty button {
  min-height: 46px;
  border: 0;
  border-radius: 4px;
  padding: 0 20px;
  background: var(--dh-blue);
  color: #fff;
  font-weight: 800;
}

.dh-main {
  min-height: 55vh;
}

/* Páginas internas */
body:not(.home) .dh-main {
  background: linear-gradient(180deg, #fff 0, #fff 360px, var(--dh-paper) 360px);
  padding-bottom: 56px;
}

body:not(.home) :where(.dh-archive-head, .dh-cat-head, .dh-author-profile) {
  padding-top: 46px;
}

body:not(.home) :where(.dh-archive-head h1, .dh-cat-head h1, .dh-author-profile h1) {
  font-family: var(--dh-serif);
  color: var(--dh-ink);
  letter-spacing: -0.035em;
}

.dh-breadcrumb {
  font-family: var(--dh-sans);
  font-size: 0.76rem;
  color: var(--dh-muted);
}

.dh-cat-title {
  border-top: 4px solid var(--dh-accent, var(--dh-blue));
  padding-top: 22px;
}

.dh-cat-panel,
.dh-card,
.dh-empty,
.dh-author-profile-card {
  border: 1px solid var(--dh-line);
  border-radius: 8px;
  background: var(--dh-white);
  box-shadow: none;
}

.dh-card {
  overflow: hidden;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.dh-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--dh-shadow-soft);
}

.dh-card-image {
  display: block;
  overflow: hidden;
  background: #e9edf2;
}

.dh-card-image img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 240ms ease;
}

.dh-card:hover .dh-card-image img {
  transform: scale(1.025);
}

.dh-card h2,
.dh-card h3,
.dh-panel-feature h2 {
  font-family: var(--dh-serif);
  letter-spacing: -0.02em;
}

.dh-pagination .page-numbers {
  border-radius: 4px;
}

.dh-pagination .current {
  background: var(--dh-ink);
  border-color: var(--dh-ink);
}

/* Matéria */
.dh-single-premium {
  background: transparent;
  padding-top: 42px;
}

.dh-single-premium .dh-single-head {
  max-width: 1040px;
  margin-bottom: 28px;
}

.dh-single-premium .dh-single-head h1 {
  max-width: 1000px;
  margin: 18px 0 16px;
  color: var(--dh-ink);
  font-family: var(--dh-serif);
  font-size: clamp(2.35rem, 5vw, 4.45rem);
  line-height: 1.04;
  letter-spacing: -0.052em;
}

.dh-single-premium .dh-single-deck {
  max-width: 850px !important;
  color: #475467 !important;
  font-family: var(--dh-sans);
  font-size: clamp(1.06rem, 1.6vw, 1.28rem) !important;
  line-height: 1.6;
}

.dh-single-kicker-row .dh-tag,
.dh-single-kicker-row a {
  border-radius: 2px;
}

.dh-single-meta-premium {
  border-color: var(--dh-line);
  font-family: var(--dh-sans);
}

.dh-single-image-premium {
  border-radius: 8px;
  box-shadow: none;
}

.dh-single-image-premium figcaption {
  font-family: var(--dh-sans);
}

.dh-single-layout-premium {
  grid-template-columns: minmax(0, 800px) 340px;
  gap: 56px;
}

.dh-single-layout-premium .dh-content {
  color: #202939;
  font-family: var(--dh-serif);
  font-size: 1.12rem;
  line-height: 1.82;
}

.dh-single-layout-premium .dh-content :where(h2, h3, h4) {
  color: var(--dh-ink);
  font-family: var(--dh-serif);
  letter-spacing: -0.025em;
}

.dh-single-layout-premium .dh-content a {
  color: var(--dh-blue);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.dh-single-layout-premium .dh-content blockquote {
  border: 0;
  border-left: 5px solid var(--dh-blue);
  border-radius: 0;
  margin-inline: 0;
  padding: 8px 0 8px 24px;
  color: var(--dh-ink-soft);
  font-size: 1.15em;
}

.dh-single-layout-premium .dh-content :where(iframe, video, table, .wp-caption) {
  max-width: 100%;
}

.dh-aside-box,
.dh-author-box,
.dh-post-nav {
  border: 1px solid var(--dh-line);
  border-radius: 8px;
  box-shadow: none;
}

.dh-aside-box h2 {
  color: var(--dh-ink);
  font-family: var(--dh-sans);
}

.dh-ad {
  isolation: isolate;
}

.dh-ad :where(iframe, ins, div, img) {
  max-width: 100%;
}

/* Rodapé editorial */
.dh-footer,
.home .dh-footer {
  width: 100%;
  max-width: none !important;
  margin-inline: 0 !important;
  margin-top: 0;
  padding-top: 0;
  background: var(--dh-ink);
  border: 0;
  border-radius: 0 !important;
  color: rgba(255, 255, 255, 0.76);
}

.dh-footer .dh-footer-grid,
.home .dh-footer .dh-footer-grid {
  padding-top: 46px;
  padding-bottom: 38px;
  gap: 42px;
  background: transparent;
}

.dh-footer .dh-footer-brand .dh-logo {
  height: 46px;
  max-width: 220px;
  filter: brightness(0) invert(1);
  opacity: 0.98;
}

.dh-footer h2,
.home .dh-footer h2 {
  margin: 0 0 16px;
  color: #fff;
  font-family: var(--dh-sans);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.dh-footer p,
.dh-footer-menu a,
.dh-footer-news span,
.home .dh-footer p,
.home .dh-footer-menu a,
.home .dh-footer-news span {
  color: rgba(255, 255, 255, 0.7);
  font-family: var(--dh-sans);
  line-height: 1.65;
}

.dh-footer-menu {
  gap: 8px;
}

.dh-footer-menu a:hover,
.dh-footer-news a:hover span,
.dh-footer .dh-credits a {
  color: #73c4ff;
}

.dh-footer .dh-footer-news img {
  border-radius: 4px;
}

.dh-footer .dh-social-mark {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.18);
}

.dh-footer .dh-credits,
.home .dh-footer .dh-credits {
  padding: 18px 0 24px;
  margin-top: 0;
  border-top: 1px solid var(--dh-line-dark);
  color: rgba(255, 255, 255, 0.56);
  font-family: var(--dh-sans);
}

@media (max-width: 1120px) {
  .dh-brand {
    min-width: 190px;
  }

  .dh-menu a {
    padding-inline: 8px;
    font-size: 0.78rem;
  }

  .dh-single-layout-premium {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .dh-single-aside {
    position: static;
  }
}

@media (max-width: 960px) {
  .dh-container {
    width: min(var(--dh-container, 1320px), calc(100% - 32px));
  }

  .dh-header .dh-header-inner {
    min-height: 76px;
  }

  .dh-brand .dh-logo {
    height: 47px;
    max-width: 215px;
  }

  .dh-nav {
    position: absolute;
    z-index: 20;
    left: 16px;
    right: 16px;
    top: calc(100% + 1px);
    margin: 0;
    padding: 10px;
    background: var(--dh-white);
    border: 1px solid var(--dh-line);
    border-radius: 6px;
    box-shadow: var(--dh-shadow-soft);
  }

  .dh-nav .dh-menu {
    display: grid;
    gap: 0;
  }

  .dh-nav .dh-menu a {
    padding: 13px 12px;
  }

  .dh-nav .dh-menu a::after {
    display: none;
  }
}

@media (max-width: 680px) {
  .dh-container {
    width: calc(100% - 24px);
  }

  .dh-topbar .dh-topbar-inner {
    min-height: 34px;
    padding-block: 6px;
  }

  .dh-topbar .dh-topbar-data-rich .dh-top-item:not(.dh-top-date) {
    display: none;
  }

  .dh-header .dh-header-inner {
    min-height: 70px;
  }

  .dh-brand .dh-logo {
    height: 43px;
    max-width: 195px;
  }

  body:not(.home) :where(.dh-archive-head, .dh-cat-head, .dh-author-profile) {
    padding-top: 30px;
  }

  .dh-single-premium {
    padding-top: 28px;
  }

  .dh-single-premium .dh-single-head h1 {
    font-size: 2.08rem;
    line-height: 1.08;
    letter-spacing: -0.038em;
  }

  .dh-single-layout-premium .dh-content {
    font-size: 1.03rem;
    line-height: 1.74;
  }

  .dh-footer .dh-footer-grid,
  .home .dh-footer .dh-footer-grid {
    padding-top: 36px;
    gap: 30px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
