body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: #ececec;
}

.wrap {
  width: min(720px, calc(100% - 28px));
  margin: 0 auto;
}

header {
  background: #fff;
  padding: 24px 0 20px;
  text-align: center;
}

header .wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.brand {
  text-align: center;
}

header h1 {
  display: inline-block;
  width: 100%;
  margin: 10px 0 8px;
  padding: 12px 16px;
  background: #0b1f3a;
  color: #ffffff;
  font-size: clamp(1.3rem, 4vw, 1.9rem);
  line-height: 1.3;
  text-align: center;
}

.meta {
  text-align: center;
}

main {
  display: flex;
  justify-content: center;
  padding: 24px 0 48px;
}

.layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  gap: 16px;
}

.conteudo,
.side {
  width: 100%;
}

.conteudo {
  text-align: justify;
}

.capa-detalhe {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  margin: 0 0 1em;
}

.side .card {
  text-align: center;
}
.conteudo {
  flex: 1 1 640px;
  min-width: 0;
  max-width: 720px;
  background: #fff;
  padding: 22px 18px 28px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .08);
  font-family: "Georgia", "Palatino Linotype", "Times New Roman", serif;
  font-size: 1.08rem;
  line-height: 1.75;
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}

.conteudo p {
  margin-bottom: 1em;
  text-align: justify;
}

.capa-detalhe {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  margin: 0 0 1.1em;
}

/* Página */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
}

/* Cabeçalho */
header .wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Artigo + coluna lateral */
.layout {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 20px;
}

.conteudo {
  flex: 1 1 640px;
  min-width: 0;
}

.side {
  flex: 0 1 240px;
}

.side .card {
  display: flex;
  flex-direction: column;
}

/* Mobile: empilha */
@media (max-width: 768px) {
  .layout {
    flex-direction: column;
    gap: 12px;
  }

  .conteudo,
  .side {
    flex: 1 1 auto;
    width: 100%;
  }

  header .wrap {
    gap: 6px;
  }

  .capa-detalhe {
    width: 100%;
    height: 180px;
    object-fit: cover;
  }
}

@media (max-width: 420px) {
  .capa-detalhe { height: 150px; }
  header h1 { font-size: 1.2rem; }
}
@media (max-width: 768px) {
  .conteudo {
    max-width: 100%;
    font-size: 1rem;
    line-height: 1.65;
    padding: 14px 12px 20px;
  }
}