:root {
  --cor-fundo-header: #ffffff;
  --cor-borda-header: #e0e0e0;
  --cor-faixa: #001f3f;
  --cor-noticias: #c4170c;
  --cor-politica: #1a1a1a;
  --cor-economia: #001f3f;
  --cor-esportes: #06aa48;
  --cor-entretenimento: #ff7400;
  --cor-mundo: #1a1a1a;
  --cor-rodape: #001f3f;
  --cor-rodape-texto: #ffffff;
  --cor-subrodape: #001733;
  --cor-subrodape-texto: #ffe8e6;
  --layout-max: 1200px;
}

* { box-sizing: border-box; }
html { height: 100%; }

body {
  margin: 0;
  font-family: Montserrat, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: #111;
  background: #fff;
}

/* =========================================================
   TOPO BRANCO
========================================================= */
.topbar {
  background: var(--cor-fundo-header);
  border-bottom: 1px solid var(--cor-borda-header);
}

.container {
  max-width: var(--layout-max);
  margin: 0 auto;
  padding: 6px 16px;
  width: 100%;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: nowrap;
}

.menu {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: nowrap;
  min-width: 0;
}

.menu a {
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  text-transform: uppercase;
  white-space: nowrap;
}

.m-noticias { color: var(--cor-noticias); }
.m-politica { color: var(--cor-politica); }
.m-economia { color: var(--cor-economia); }
.m-esportes { color: var(--cor-esportes); }
.m-entretenimento { color: var(--cor-entretenimento); }
.m-mundo { color: var(--cor-mundo); }

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.topbar-search {
  display: flex;
  align-items: stretch;
  border: 1px solid #222;
  height: 42px;
  min-width: 280px;
  max-width: 280px;
  background: #fff;
}

.topbar-search input {
  border: 0;
  outline: 0;
  padding: 0 12px;
  font-size: 16px;
  width: 100%;
  background: #fff;
  color: #111;
}

.topbar-search input::placeholder {
  color: #111;
}

.topbar-search button {
  width: 54px;
  border: 0;
  background: #1f3787;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.topbar-search button svg {
  width: 22px;
  height: 22px;
}

.topbar-social {
  display: flex;
  align-items: center;
  gap: 12px;
}

.topbar-social a {
  color: #000;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.topbar-social a svg {
  width: 29px;
  height: 29px;
  display: block;
}

/* =========================================================
   FAIXA AZUL
========================================================= */
.midbar {
  background:
    linear-gradient(rgba(7,56,140,.93), rgba(7,56,140,.93)),
    url('/images/bg-topo-ledv.jpg') center center / cover no-repeat;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.mid-wrap {
  max-width: var(--layout-max);
  margin: 0 auto;
  padding: 18px 16px 20px;
  display: grid;
  grid-template-columns: 165px 1fr;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 150px;
}

.hambox {
  display: none;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  align-items: center;
  justify-content: flex-start;
}

.hambox .ham {
  width: 26px;
  height: 18px;
  display: block;
}

.mid-left {
  display: flex;
  align-items: center;
  justify-content: center;
}

.mid-logo-ledv {
  display: block;
  width: 150px;
  max-width: 100%;
  height: auto;
}

.mid-center {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 26px;
  min-width: 0;
  width: 100%;
}

.mid-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  color: #fff;
  text-align: center;
  min-width: 82px;
  flex: 0 0 auto;
  transition: transform .2s ease, opacity .2s ease;
}

.mid-link:hover {
  transform: translateY(-2px);
  opacity: .92;
}

.mid-link svg {
  width: 28px;
  height: 28px;
  display: block;
}

.mid-link span {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.1;
  white-space: nowrap;
}

.mid-right {
  display: none;
}

/* =========================================================
   MENU LATERAL
========================================================= */
.side-menu {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0;
  transition: opacity .25s ease;
}

.side-menu--open {
  pointer-events: auto;
  opacity: 1;
}

.side-menu-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.45);
}

.side-menu-panel {
  position: absolute;
  top: 0;
  left: 0;
  width: 280px;
  max-width: 86vw;
  height: 100dvh;
  background: #fff;
  box-shadow: 2px 0 18px rgba(0,0,0,.25);
  transform: translateX(-100%);
  transition: transform .25s ease;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.side-menu--open .side-menu-panel {
  transform: translateX(0);
}

.side-menu-close {
  border: none;
  background: transparent;
  font-size: 26px;
  line-height: 1;
  padding: 12px 14px;
  cursor: pointer;
  align-self: flex-end;
}

.side-menu-header {
  padding: 0 16px 10px;
  border-bottom: 1px solid #f0f0f0;
}

.side-menu-title {
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  color: #999;
}

.side-menu-nav {
  display: flex;
  flex-direction: column;
  padding: 8px 0 14px;
  overflow-y: auto;
  scrollbar-width: none;
}

.side-menu-nav::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

.side-menu-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
  color: #111;
  text-transform: uppercase;
  line-height: 1.2;
}

.side-menu-nav a:hover {
  background: #f5f5f5;
}

.side-menu-nav a svg {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  color: #0d47a1;
}

.side-menu-nav a span {
  display: inline-block;
}

/* =========================================================
   MIOLO EDITORIAL LEDV — PADRÃO TIPO A NAÇÃO
========================================================= */

main.content {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 14px 16px 32px;
}

.breadcrumb {
  width: 100%;
  max-width: 700px;
  margin: 0 auto 8px;
  font-size: 12px;
  line-height: 1.4;
  color: #666;
}

.breadcrumb a {
  color: inherit;
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.article-title {
  width: 100%;
  max-width: 700px;
  margin: 0 auto 10px;
  font-size: clamp(28px, 3.8vw, 44px);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #111;
}

.subtitle {
  width: 100%;
  max-width: 700px;
  margin: 0 auto 12px;
  font-size: clamp(17px, 1.9vw, 24px);
  line-height: 1.28;
  font-weight: 700;
  color: #333;
}

.meta {
  width: 100%;
  max-width: 700px;
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 13px;
  color: #666;
}

.share {
  width: 100%;
  max-width: 700px;
  margin: 0 auto 14px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.share a {
  height: 40px;
  border-radius: 10px;
  background: #f1f1f1;
  color: #5f6368;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: background .2s ease, transform .2s ease, color .2s ease;
  cursor: pointer;
}

.share a:hover {
  background: #e8e8e8;
  transform: translateY(-1px);
}

.share a svg {
  width: 21px;
  height: 21px;
  display: block;
}

.figure {
  width: 100%;
  max-width: 700px;
  margin: 0 auto 16px;
}

.figure img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 0;
}

.caption {
  margin-top: 8px;
  font-size: 11px;
  line-height: 1.35;
  color: #666;
  text-align: center;
}

.article-body {
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
  font-size: 19px;
  line-height: 1.68;
  color: #111;
}

.article-body p {
  margin: 0 0 20px;
}

.article-body p:last-child {
  margin-bottom: 0;
}

.article-body h2,
.article-body h3,
.article-body h4,
.article-body ul,
.article-body ol,
.article-body blockquote,
.article-body table,
.article-body figure,
.article-body img,
.article-body iframe,
.article-body video {
  max-width: 100%;
}

.article-body img,
.article-body iframe,
.article-body video {
  display: block;
  width: 100%;
  height: auto;
}

/* RELACIONADOS */
#related-articles {
  width: 100%;
  max-width: 700px;
  margin: 28px auto 0;
}

#related-articles h3,
.related-title {
  margin: 0 0 14px;
  font-size: 24px;
  line-height: 1.1;
  font-weight: 900;
  color: #111;
}

#related-articles .related-grid,
#related-articles .related-articles-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

#related-articles .related-card,
#related-articles .related-item,
#related-articles article {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #dedede;
  border-radius: 12px;
  background: #fff;
  text-decoration: none;
  color: inherit;
}

#related-articles .related-card img,
#related-articles .related-item img,
#related-articles article img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

#related-articles .related-card-body,
#related-articles .related-item-body,
#related-articles article .text {
  padding: 12px 14px 14px;
}

#related-articles .related-card-title,
#related-articles .related-item-title,
#related-articles article h4 {
  margin: 0 0 8px;
  font-size: 15px;
  line-height: 1.3;
  font-weight: 800;
  color: #111;
}

#related-articles .related-card-date,
#related-articles .related-item-date,
#related-articles article time {
  font-size: 12px;
  color: #777;
}

/* =========================================================
   FOOTER
========================================================= */
footer { margin-top: 24px; }

.footer-hero {
  background: var(--cor-rodape);
  color: var(--cor-rodape-texto);
}

.footer-wrap {
  max-width: var(--layout-max);
  margin: 0 auto;
  padding: 28px 16px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 20px;
  width: 100%;
}

.footer-brand h3 {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 700;
}

.footer-brand p {
  margin: 0;
  opacity: .95;
  line-height: 1.5;
}

.fcol h4 {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
}

.fcol ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.fcol li { margin: 8px 0; }

.fcol a {
  color: #ffeaea;
  text-decoration: none;
  font-size: 14px;
}

.fcol a:hover { text-decoration: underline; }

.subfooter {
  background: var(--cor-subrodape);
  color: var(--cor-subrodape-texto);
}

.sub-wrap {
  max-width: var(--layout-max);
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  font-size: 13px;
  width: 100%;
}

.sub-links a {
  color: var(--cor-subrodape-texto);
  text-decoration: none;
  margin-left: 12px;
}

.sub-links a:hover { text-decoration: underline; }

/* BUSCA MOBILE NO TOPO AZUL */
.mid-search-mobile-wrap {
  display: none;
}

@media (max-width: 860px) {
  .mid-wrap {
    grid-template-columns: 52px 1fr auto;
    min-height: 128px;
    padding: 16px 12px;
    gap: 6px;
    align-items: center;
  }

  .mid-center {
    display: none;
  }

  .mid-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-width: 0;
  }

  .mid-search-mobile-wrap {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    position: relative;
  }

  .mid-search-toggle {
    width: 40px;
    height: 40px;
    border: 0;
    background: transparent;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    cursor: pointer;
  }

  .mid-search-toggle svg {
    width: 24px;
    height: 24px;
    display: block;
    stroke: currentColor;
    stroke-width: 2.3;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .mid-search-mobile-form {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: stretch;
    width: 0;
    height: 36px;
    opacity: 0;
    pointer-events: none;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.28);
    background: rgba(5, 26, 67, .30);
    transition: width .22s ease, opacity .18s ease;
  }

  .mid-search-mobile-wrap.is-open .mid-search-mobile-form {
    width: 150px;
    opacity: 1;
    pointer-events: auto;
  }

  .mid-search-mobile-wrap.is-open .mid-search-toggle {
    opacity: 0;
    pointer-events: none;
  }

  .mid-search-mobile-form input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: #fff;
    padding: 0 9px;
    font-size: 13px;
    font-family: inherit;
  }

  .mid-search-mobile-form input::placeholder {
    color: rgba(255,255,255,.95);
  }

  .mid-search-mobile-btn {
    width: 38px;
    flex: 0 0 38px;
    border: 0;
    background: transparent;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
  }

  .mid-search-mobile-btn svg {
    width: 20px;
    height: 20px;
    display: block;
    stroke: currentColor;
    stroke-width: 2.3;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
}

@media (max-width: 560px) {
  .mid-wrap {
    grid-template-columns: 48px 1fr auto;
    min-height: 112px;
    padding: 12px 8px;
    gap: 4px;
  }

  .mid-search-toggle {
    width: 36px;
    height: 36px;
  }

  .mid-search-toggle svg {
    width: 22px;
    height: 22px;
  }

  .mid-search-mobile-wrap.is-open .mid-search-mobile-form {
    width: 122px;
    height: 32px;
  }

  .mid-search-mobile-form input {
    padding: 0 7px;
    font-size: 12px;
  }

  .mid-search-mobile-btn {
    width: 32px;
    flex-basis: 32px;
  }

  .mid-search-mobile-btn svg {
    width: 18px;
    height: 18px;
  }
}
/* =========================================================
   RESPONSIVO
========================================================= */
@media (max-width: 1100px) {
  .mid-wrap {
    grid-template-columns: 148px 1fr;
    gap: 10px;
  }

  .mid-center {
    gap: 18px;
  }

  .mid-link {
    min-width: 72px;
  }

  .mid-link svg {
    width: 24px;
    height: 24px;
  }

  .mid-link span {
    font-size: 10px;
  }
}

@media (max-width: 980px) {
  .topbar-search {
    min-width: 220px;
    max-width: 220px;
  }

  .topbar-social a svg {
    width: 26px;
    height: 26px;
  }

  .article-title,
  .subtitle,
  .meta,
  .share,
  .figure,
  .article-body,
  .breadcrumb,
  #related-articles {
    max-width: 680px;
  }

  .article-title {
    font-size: clamp(26px, 4.2vw, 38px);
  }

  .subtitle {
    font-size: clamp(16px, 2.2vw, 22px);
  }

  .article-body {
    font-size: 18px;
  }
}

@media (max-width: 860px) {
  .topbar-inner {
    overflow-x: auto;
  }

  .mid-wrap {
    grid-template-columns: 52px 1fr auto;
    min-height: 128px;
    padding: 16px 12px;
    gap: 6px;
    align-items: center;
  }

  .hambox {
    display: inline-flex;
    justify-self: start;
    align-self: center;
  }

  .mid-left {
    justify-content: center;
  }

  .mid-logo-ledv {
    width: 108px;
  }

  .mid-center {
    display: none;
  }

  .mid-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-width: 0;
  }

  .mid-search-mobile-form {
    display: flex;
    align-items: stretch;
    width: 132px;
    height: 36px;
    border: 1px solid rgba(255,255,255,.28);
    background: rgba(5, 26, 67, .22);
    overflow: hidden;
  }

  .mid-search-mobile-form input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: #fff;
    padding: 0 9px;
    font-size: 13px;
    font-family: inherit;
  }

  .mid-search-mobile-form input::placeholder {
    color: rgba(255,255,255,.95);
  }

  .mid-search-mobile-btn {
    width: 38px;
    flex: 0 0 38px;
    border: 0;
    background: transparent;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
  }

  .mid-search-mobile-btn svg {
    display: block;
    width: 22px;
    height: 22px;
    stroke: currentColor;
    stroke-width: 2.3;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
}

@media (max-width: 768px) {
  main.content {
    padding: 12px 14px 26px;
  }

  .article-title,
  .subtitle,
  .meta,
  .share,
  .figure,
  .article-body,
  .breadcrumb,
  #related-articles {
    max-width: 100%;
  }

  .article-title {
    font-size: 30px;
    line-height: 1.1;
    margin-bottom: 10px;
  }

  .subtitle {
    font-size: 19px;
    line-height: 1.3;
    margin-bottom: 12px;
  }

  .meta {
    font-size: 12px;
    gap: 6px;
    margin-bottom: 12px;
  }

  .share {
    gap: 8px;
    margin-bottom: 14px;
  }

  .share a {
    height: 38px;
    border-radius: 9px;
  }

  .article-body {
    font-size: 17px;
    line-height: 1.64;
  }

  .article-body p {
    margin-bottom: 18px;
  }

  #related-articles .related-grid,
  #related-articles .related-articles-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  #related-articles h3,
  .related-title {
    font-size: 22px;
    margin-bottom: 12px;
  }
}

@media (max-width: 560px) {
  html, body {
    max-width: 100%;
    overflow-x: hidden;
  }

  .topbar-search,
  .topbar-social {
    display: none;
  }

  .container {
    padding: 10px 12px;
  }

  .menu {
    gap: 16px;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .menu::-webkit-scrollbar {
    display: none;
  }

  .menu a {
    flex: 0 0 auto;
    font-size: 15px;
  }

  .mid-wrap {
    grid-template-columns: 48px 1fr auto;
    min-height: 112px;
    padding: 12px 8px;
    gap: 4px;
  }

  .mid-logo-ledv {
    width: 98px;
  }

  .side-menu-panel {
    width: 255px;
    max-width: 88vw;
  }

  .side-menu-nav a {
    font-size: 14px;
    padding: 11px 14px;
  }

  .side-menu-nav a svg {
    width: 20px;
    height: 20px;
    flex-basis: 20px;
  }

  main.content {
    padding: 10px 12px 22px;
  }

  .breadcrumb {
    font-size: 11px;
    margin-bottom: 8px;
  }

  .article-title {
    font-size: 25px;
    line-height: 1.12;
  }

  .subtitle {
    font-size: 17px;
    line-height: 1.32;
  }

  .meta {
    font-size: 11px;
  }

  .share {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .share a {
    height: 36px;
  }

  .share a svg {
    width: 19px;
    height: 19px;
  }

  .caption {
    font-size: 10px;
  }

  .article-body {
    font-size: 16px;
    line-height: 1.6;
  }

  #related-articles .related-grid,
  #related-articles .related-articles-grid {
    grid-template-columns: 1fr;
  }

  #related-articles .related-card-title,
  #related-articles .related-item-title,
  #related-articles article h4 {
    font-size: 14px;
  }

  .mid-search-mobile-form {
    width: 104px;
    height: 32px;
  }

  .mid-search-mobile-form input {
    padding: 0 7px;
    font-size: 12px;
  }

  .mid-search-mobile-btn {
    width: 32px;
    flex-basis: 32px;
  }

  .mid-search-mobile-btn svg {
    width: 20px;
    height: 20px;
  }
}

/* =========================================================
   LEIA TAMBÉM — 4 CARDS COM IMAGEM
========================================================= */

#related-articles {
  width: 100%;
  max-width: 700px;
  margin: 28px auto 0;
}

.related-block {
  width: 100%;
}

.related-title {
  margin: 0 0 14px;
  font-size: 24px;
  line-height: 1.1;
  font-weight: 900;
  color: #111;
}

.related-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.related-item {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #dedede;
  border-radius: 12px;
  background: #fff;
  color: inherit;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.related-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,0,0,.08);
  border-color: #d2d2d2;
}

.related-thumb {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #ececec;
}

.related-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.related-text {
  padding: 12px 14px 14px;
}

.related-text strong {
  display: block;
  margin: 0 0 8px;
  font-size: 15px;
  line-height: 1.3;
  font-weight: 800;
  color: #111;
}

.related-text span {
  display: block;
  font-size: 12px;
  color: #777;
}