/* =========================================================
   PSIFÁCIL - PÁGINA DO ARTIGO
   Layout moderno, limpo e responsivo
========================================================= */


/* =========================================================
   VARIÁVEIS
========================================================= */

:root {
  --primary: #7a5c58;
  --primary-dark: #604744;
  --primary-light: #eee3dd;
  --primary-soft: #f7f1ed;

  --background: #f7f7f6;
  --surface: #ffffff;
  --surface-soft: #faf9f8;

  --text: #262322;
  --text-body: #4f4a47;
  --text-soft: #77706c;
  --text-muted: #9a928e;

  --border: #e9e5e2;
  --border-dark: #ddd6d2;

  --shadow:
    0 10px 35px rgba(43, 34, 31, 0.06);

  --shadow-hover:
    0 16px 40px rgba(43, 34, 31, 0.10);

  --radius-small: 12px;
  --radius-medium: 18px;
  --radius-large: 24px;

  --page-width: 1180px;
  --article-width: 760px;
}


/* =========================================================
   RESET
========================================================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;

  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Helvetica,
    Arial,
    sans-serif;

  background: var(--background);

  color: var(--text);

  overflow-x: hidden;

  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

button,
input,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}


/* =========================================================
   BARRA DE LEITURA
========================================================= */

.reading-progress {
  position: fixed;

  top: 0;
  left: 0;

  width: 100%;
  height: 4px;

  background: rgba(0, 0, 0, 0.04);

  z-index: 9999;
}

.reading-progress-bar {
  width: 0%;
  height: 100%;

  background: var(--primary);

  transition: width 0.08s linear;
}


/* =========================================================
   TOPO
========================================================= */

.post-topbar {
  position: relative;

  width: 100%;

  background: rgba(255, 255, 255, 0.94);

  border-bottom: 1px solid var(--border);

  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  z-index: 100;
}

.post-topbar-container {
  width: 100%;
  max-width: var(--page-width);

  min-height: 72px;

  margin: 0 auto;

  padding:
    0 24px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 20px;
}


/* =========================================================
   LOGO
========================================================= */

.post-brand {
  display: inline-flex;
  align-items: center;

  gap: 10px;

  text-decoration: none;

  color: var(--text);

  font-size: 19px;
  font-weight: 800;

  letter-spacing: -0.3px;
}

.post-brand-icon {
  width: 32px;
  height: 32px;

  object-fit: contain;
}


/* =========================================================
   VOLTAR
========================================================= */

.post-back-link {
  display: inline-flex;
  align-items: center;

  gap: 7px;

  padding:
    9px 14px;

  border: 1px solid var(--border);

  border-radius: 10px;

  background: #fff;

  color: var(--text-body);

  text-decoration: none;

  font-size: 13px;
  font-weight: 600;

  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    color 0.2s ease;
}

.post-back-link svg {
  width: 17px;
  height: 17px;
}

.post-back-link:hover {
  border-color: var(--primary-light);

  background: var(--primary-soft);

  color: var(--primary);
}


/* =========================================================
   PÁGINA
========================================================= */

.post-page {
  width: 100%;
  max-width: var(--page-width);

  margin: 0 auto;

  padding:
    48px 24px
    80px;
}


/* =========================================================
   NOVO LAYOUT

   A sidebar deixa de ser visualmente uma sidebar.
   Os filhos dela passam a fazer parte da página.
========================================================= */

.post-layout {
  display: grid;

  grid-template-columns:
    minmax(0, 1fr);

  width: 100%;

  gap: 22px;
}


/* Permite ações e comentários participarem do layout */

.post-sidebar {
  display: contents;
}


/* =========================================================
   ARTIGO
========================================================= */

.post-detail {
  width: 100%;

  max-width: 920px;

  margin: 0 auto;

  min-width: 0;

  background: var(--surface);

  border: 1px solid var(--border);

  border-radius: var(--radius-large);

  padding:
    54px 64px
    60px;

  box-shadow: var(--shadow);

  overflow: hidden;
}


/* =========================================================
   LOADING
========================================================= */

.post-loading {
  min-height: 350px;

  display: flex;
  flex-direction: column;

  align-items: center;
  justify-content: center;

  gap: 14px;

  color: var(--text-soft);

  text-align: center;
}

.post-loading-icon {
  width: 54px;
  height: 54px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;

  background: var(--primary-soft);

  color: var(--primary);
}

.post-loading-icon svg {
  width: 24px;
  height: 24px;
}

.post-loading p {
  font-size: 14px;
  font-weight: 600;
}


/* =========================================================
   CATEGORIA
========================================================= */

.category {
  display: inline-flex;
  align-items: center;

  max-width: 100%;

  margin-bottom: 18px;

  padding:
    7px 12px;

  background: var(--primary-soft);

  border:
    1px solid
    var(--primary-light);

  border-radius: 8px;

  color: var(--primary);

  font-size: 12px;
  font-weight: 700;

  line-height: 1.3;

  overflow-wrap: anywhere;
}


/* =========================================================
   TÍTULO PRINCIPAL
========================================================= */

.post-detail > h1,
.post-detail h1:first-of-type {
  max-width: 850px;

  margin:
    0 0
    18px;

  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;

  font-size:
    clamp(36px, 4.2vw, 52px);

  font-weight: 800;

  line-height: 1.08;

  letter-spacing: -1.6px;

  color: var(--text);

  overflow-wrap: anywhere;
}


/* =========================================================
   META
========================================================= */

.post-meta {
  display: flex;
  align-items: center;

  flex-wrap: wrap;

  gap: 8px 11px;

  margin-bottom: 30px;

  color: var(--text-soft);

  font-size: 13px;
  font-weight: 500;

  line-height: 1.5;
}

.post-meta .dot {
  width: 4px;
  height: 4px;

  flex: 0 0 auto;

  border-radius: 50%;

  background: #bbb3af;
}


/* =========================================================
   IMAGEM PRINCIPAL
========================================================= */

.post-banner {
  width: 100%;

  height: auto;

  aspect-ratio: 16 / 9;

  max-height: 480px;

  object-fit: cover;

  margin:
    4px 0
    42px;

  border-radius: 18px;

  background: #eee;

  box-shadow:
    0 8px 26px
    rgba(32, 27, 25, 0.07);
}


/* =========================================================
   CONTEÚDO
========================================================= */

.post-text {
  width: 100%;

  max-width: var(--article-width);

  margin: 0 auto;

  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;

  color: var(--text-body);

  font-size: 17px;

  font-weight: 400;

  line-height: 1.82;

  overflow-wrap: anywhere;
  word-break: normal;
}


/* =========================================================
   PARÁGRAFOS
========================================================= */

.post-text p {
  margin:
    0 0
    23px;

  color: var(--text-body);

  font-size: 17px;

  font-weight: 400;

  line-height: 1.82;
}

.post-text p:empty,
.post-text p:has(br:only-child) {
  display: none;
}


/* =========================================================
   TÍTULOS DO CONTEÚDO
========================================================= */

.post-text h1,
.post-text h2,
.post-text h3,
.post-text h4,
.post-text h5,
.post-text h6 {
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;

  color: var(--text);

  font-weight: 750;

  line-height: 1.25;

  letter-spacing: -0.5px;

  overflow-wrap: anywhere;
}

.post-text h1 {
  margin:
    44px 0
    18px;

  font-size: 34px;
}

.post-text h2 {
  margin:
    42px 0
    17px;

  font-size: 29px;
}

.post-text h3 {
  margin:
    36px 0
    15px;

  font-size: 24px;
}

.post-text h4 {
  margin:
    32px 0
    13px;

  font-size: 20px;
}

.post-text h5,
.post-text h6 {
  margin:
    28px 0
    12px;

  font-size: 18px;
}


/* =========================================================
   FORMATAÇÃO
========================================================= */

.post-text strong,
.post-text b {
  color: var(--text);

  font-weight: 700;
}

.post-text em,
.post-text i {
  font-style: italic;
}

.post-text u {
  text-underline-offset: 3px;
}


/* =========================================================
   LINKS
========================================================= */

.post-text a {
  color: var(--primary);

  font-weight: 600;

  text-decoration: underline;

  text-decoration-thickness: 1px;

  text-underline-offset: 3px;

  overflow-wrap: anywhere;
}

.post-text a:hover {
  color: var(--primary-dark);
}


/* =========================================================
   LISTAS
========================================================= */

.post-text ul,
.post-text ol {
  margin:
    6px 0
    25px;

  padding-left: 26px;
}

.post-text li {
  margin-bottom: 9px;

  padding-left: 3px;

  color: var(--text-body);

  line-height: 1.72;
}

.post-text li::marker {
  color: var(--primary);

  font-weight: 700;
}


/* =========================================================
   BLOCKQUOTE
========================================================= */

.post-text blockquote {
  margin:
    30px 0;

  padding:
    20px 22px;

  background: var(--primary-soft);

  border-left:
    4px solid
    var(--primary);

  border-radius:
    0 12px 12px 0;

  color: #574c48;

  font-size: 17px;

  font-style: normal;

  line-height: 1.7;
}

.post-text blockquote p {
  color: inherit;
}

.post-text blockquote p:last-child {
  margin-bottom: 0;
}


/* =========================================================
   IMAGENS DO CONTEÚDO
========================================================= */

.post-text img {
  display: block;

  width: auto;

  max-width: 100%;

  height: auto;

  margin:
    28px auto;

  border-radius: 14px;
}


/* =========================================================
   VÍDEOS
========================================================= */

.post-text iframe,
.post-text video {
  display: block;

  width: 100%;

  max-width: 100%;

  aspect-ratio: 16 / 9;

  height: auto;

  margin:
    30px 0;

  border: 0;

  border-radius: 14px;
}


/* =========================================================
   TABELAS
========================================================= */

.post-text table {
  width: 100%;

  margin:
    28px 0;

  border-collapse: collapse;

  background: #fff;

  font-size: 14px;
}

.post-text table th,
.post-text table td {
  padding:
    12px 13px;

  border:
    1px solid
    var(--border);

  text-align: left;

  vertical-align: top;

  overflow-wrap: anywhere;
}

.post-text table th {
  background: var(--surface-soft);

  color: var(--text);

  font-weight: 700;
}

.post-text table td {
  color: var(--text-body);
}


/* =========================================================
   CÓDIGO
========================================================= */

.post-text pre {
  width: 100%;
  max-width: 100%;

  margin:
    26px 0;

  padding: 18px;

  overflow-x: auto;

  background: #252221;

  border-radius: 12px;

  color: #f5f3f2;

  line-height: 1.6;

  -webkit-overflow-scrolling: touch;
}

.post-text code {
  font-family:
    Consolas,
    Monaco,
    monospace;

  font-size: 0.9em;
}


/* =========================================================
   ALINHAMENTO DO TINYMCE
========================================================= */

.post-text [style*="text-align: center"] {
  text-align: center;
}

.post-text [style*="text-align: right"] {
  text-align: right;
}

.post-text [style*="text-align: left"] {
  text-align: left;
}


/* =========================================================
   LINK VOLTAR
========================================================= */

.back-link {
  display: inline-flex;
  align-items: center;

  gap: 7px;

  margin-top: 32px;

  padding:
    10px 14px;

  background: var(--surface-soft);

  border:
    1px solid
    var(--border);

  border-radius: 10px;

  color: var(--primary);

  text-decoration: none;

  font-size: 13px;
  font-weight: 700;

  transition:
    background 0.2s ease,
    border-color 0.2s ease;
}

.back-link:hover {
  background: var(--primary-soft);

  border-color: var(--primary-light);
}


/* =========================================================
   AÇÕES
========================================================= */

.post-actions {
  width: 100%;
  max-width: 920px;

  margin: 0 auto;

  display: grid;

  grid-template-columns:
    repeat(3, minmax(0, 1fr));

  gap: 10px;

  padding: 12px;

  background: var(--surface);

  border:
    1px solid
    var(--border);

  border-radius: 18px;

  box-shadow: var(--shadow);
}


/* =========================================================
   BOTÃO DE AÇÃO
========================================================= */

.action-btn {
  width: 100%;

  min-width: 0;
  min-height: 62px;

  display: flex;
  align-items: center;

  gap: 11px;

  padding:
    10px 14px;

  border: 0;

  border-radius: 12px;

  background: var(--surface-soft);

  color: var(--text-body);

  cursor: pointer;

  text-align: left;

  transition:
    background 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.action-btn:hover {
  background: var(--primary-soft);

  color: var(--primary);

  transform: translateY(-1px);
}

.action-btn:active {
  transform: none;
}


/* =========================================================
   ÍCONES DAS AÇÕES
========================================================= */

.action-icon {
  width: 38px;
  height: 38px;

  flex:
    0 0
    38px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: #fff;

  border:
    1px solid
    var(--border);

  border-radius: 10px;

  color: var(--primary);
}

.action-icon svg {
  width: 19px;
  height: 19px;

  stroke-width: 2;
}


/* =========================================================
   TEXTO DAS AÇÕES
========================================================= */

.action-text {
  min-width: 0;

  display: flex;
  flex-direction: column;

  align-items: flex-start;

  gap: 1px;
}

.action-text .label {
  color: inherit;

  font-size: 13px;
  font-weight: 700;
}

.action-text .count,
.action-text .sub {
  color: var(--text-muted);

  font-size: 11px;
  font-weight: 500;
}


/* =========================================================
   CURTIDO / SALVO
========================================================= */

.like-btn.curtido,
.salvar-btn.salvo {
  background: var(--primary);

  color: #fff;
}

.like-btn.curtido .action-icon,
.salvar-btn.salvo .action-icon {
  background:
    rgba(255, 255, 255, 0.13);

  border-color:
    rgba(255, 255, 255, 0.15);

  color: #fff;
}

.like-btn.curtido .count,
.salvar-btn.salvo .sub {
  color:
    rgba(255, 255, 255, 0.76);
}


/* =========================================================
   REDES SOCIAIS
========================================================= */

.social-box {
  grid-column:
    1 / -1;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 15px;

  margin-top: 2px;

  padding:
    13px 4px 2px;

  border-top:
    1px solid
    var(--border);
}

.social-title {
  color: var(--text-soft);

  font-size: 12px;
  font-weight: 600;
}

.social-icons {
  display: flex;
  align-items: center;

  gap: 7px;
}

.social-btn {
  width: 36px;
  height: 36px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: var(--surface-soft);

  border:
    1px solid
    var(--border);

  border-radius: 9px;

  color: #69625f;

  text-decoration: none;

  transition:
    background 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.social-btn svg {
  width: 17px;
  height: 17px;
}

.social-btn:hover {
  transform:
    translateY(-1px);
}

.social-btn.instagram:hover {
  background: #e1306c;

  border-color: #e1306c;

  color: #fff;
}

.social-btn.youtube:hover {
  background: #ff0000;

  border-color: #ff0000;

  color: #fff;
}

.social-btn.tiktok:hover {
  background: #111;

  border-color: #111;

  color: #fff;
}


/* =========================================================
   COMENTÁRIOS
========================================================= */

.comentarios-section {
  width: 100%;
  max-width: 920px;

  margin: 0 auto;

  padding:
    30px;

  background: var(--surface);

  border:
    1px solid
    var(--border);

  border-radius: 20px;

  box-shadow: var(--shadow);

  overflow: hidden;
}


/* =========================================================
   CABEÇALHO COMENTÁRIOS
========================================================= */

.comentarios-header {
  display: flex;
  align-items: center;

  gap: 12px;

  margin-bottom: 24px;
}

.comentarios-icon {
  width: 42px;
  height: 42px;

  flex:
    0 0
    42px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: var(--primary-soft);

  border-radius: 11px;

  color: var(--primary);
}

.comentarios-icon svg {
  width: 20px;
  height: 20px;
}

.comentarios-label {
  display: block;

  margin-bottom: 3px;

  color: var(--primary);

  font-size: 10px;
  font-weight: 800;

  letter-spacing: 0.8px;

  text-transform: uppercase;
}

.comentarios-section h2 {
  margin: 0;

  font-family:
    "Inter",
    sans-serif;

  color: var(--text);

  font-size: 22px;

  font-weight: 800;

  letter-spacing: -0.4px;
}


/* =========================================================
   FORMULÁRIO
========================================================= */

.comentarios-section form {
  display: grid;

  grid-template-columns:
    1fr 1fr;

  gap: 16px;

  margin-bottom: 28px;

  padding: 20px;

  background: var(--surface-soft);

  border:
    1px solid
    var(--border);

  border-radius: 16px;
}

.comentario-field {
  display: flex;
  flex-direction: column;

  gap: 7px;
}


/* Comentário ocupa largura maior */

.comentario-field:nth-child(2) {
  grid-column:
    1 / -1;
}

.comentario-field label {
  color: var(--text-body);

  font-size: 12px;
  font-weight: 700;
}


/* =========================================================
   INPUTS
========================================================= */

.comentarios-section input,
.comentarios-section textarea {
  width: 100%;

  outline: 0;

  border:
    1px solid
    var(--border-dark);

  border-radius: 10px;

  background: #fff;

  color: var(--text);

  font-size: 14px;

  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.comentarios-section input {
  min-height: 48px;

  padding:
    11px 13px;
}

.comentarios-section textarea {
  min-height: 130px;

  padding:
    13px;

  resize: vertical;

  line-height: 1.55;
}

.comentarios-section input::placeholder,
.comentarios-section textarea::placeholder {
  color: #a7a09c;
}

.comentarios-section input:focus,
.comentarios-section textarea:focus {
  border-color: var(--primary);

  box-shadow:
    0 0 0 3px
    rgba(122, 92, 88, 0.08);
}


/* =========================================================
   ENVIAR COMENTÁRIO
========================================================= */

.comentario-submit,
.comentarios-section button[type="submit"] {
  grid-column:
    1 / -1;

  justify-self: start;

  min-height: 46px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  gap: 8px;

  padding:
    11px 18px;

  border: 0;

  border-radius: 10px;

  background: var(--primary);

  color: #fff;

  font-size: 13px;
  font-weight: 700;

  cursor: pointer;

  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

.comentario-submit svg {
  width: 17px;
  height: 17px;
}

.comentario-submit:hover,
.comentarios-section button[type="submit"]:hover {
  background: var(--primary-dark);

  transform: translateY(-1px);
}


/* =========================================================
   COMENTÁRIOS PUBLICADOS
========================================================= */

.lista-comentarios {
  width: 100%;
}

.comentario-card {
  width: 100%;

  margin-bottom: 10px;

  padding:
    16px 18px;

  background: var(--surface-soft);

  border:
    1px solid
    var(--border);

  border-radius: 12px;

  overflow: hidden;
}

.comentario-card:last-child {
  margin-bottom: 0;
}

.comentario-card strong {
  display: block;

  margin-bottom: 6px;

  color: var(--text);

  font-size: 13px;
  font-weight: 700;

  overflow-wrap: anywhere;
}

.comentario-card p {
  margin-bottom: 7px;

  color: var(--text-body);

  font-size: 14px;

  line-height: 1.6;

  overflow-wrap: anywhere;
}

.comentario-card small {
  color: var(--text-muted);

  font-size: 11px;
}


/* =========================================================
   RELACIONADOS
========================================================= */

.relacionados-section {
  width: 100%;
  max-width: 1080px;

  margin:
    24px auto 0;

  padding:
    40px;

  background: var(--surface);

  border:
    1px solid
    var(--border);

  border-radius: 22px;

  box-shadow: var(--shadow);
}


/* =========================================================
   CABEÇALHO RELACIONADOS
========================================================= */

.relacionados-header {
  max-width: 600px;

  margin-bottom: 26px;
}

.relacionados-header .tag {
  display: inline-flex;

  margin-bottom: 10px;

  padding:
    6px 10px;

  background: var(--primary-soft);

  border-radius: 7px;

  color: var(--primary);

  font-size: 10px;
  font-weight: 800;

  letter-spacing: 0.7px;

  text-transform: uppercase;
}

.relacionados-header h2 {
  margin-bottom: 7px;

  font-family:
    "Inter",
    sans-serif;

  color: var(--text);

  font-size: 28px;

  font-weight: 800;

  letter-spacing: -0.8px;

  line-height: 1.2;
}

.relacionados-header p {
  color: var(--text-soft);

  font-size: 14px;

  line-height: 1.6;
}


/* =========================================================
   GRID RELACIONADOS
========================================================= */

.relacionados-grid {
  display: grid;

  grid-template-columns:
    repeat(3, minmax(0, 1fr));

  gap: 16px;
}


/* =========================================================
   CARD RELACIONADO
========================================================= */

.relacionado-card {
  min-width: 0;

  display: block;

  background: #fff;

  border:
    1px solid
    var(--border);

  border-radius: 14px;

  overflow: hidden;

  text-decoration: none;

  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.relacionado-card:hover {
  transform:
    translateY(-3px);

  border-color:
    var(--border-dark);

  box-shadow: var(--shadow-hover);
}

.relacionado-card img {
  width: 100%;

  aspect-ratio: 16 / 9;

  height: auto;

  object-fit: cover;

  background: #eee;
}

.relacionado-content {
  min-width: 0;

  padding:
    16px;
}

.relacionado-content span {
  display: block;

  margin-bottom: 7px;

  color: var(--primary);

  font-size: 10px;
  font-weight: 800;

  letter-spacing: 0.5px;

  text-transform: uppercase;
}

.relacionado-content h3 {
  margin-bottom: 7px;

  color: var(--text);

  font-size: 16px;
  font-weight: 750;

  line-height: 1.35;

  letter-spacing: -0.2px;

  overflow-wrap: anywhere;

  display: -webkit-box;

  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;

  overflow: hidden;
}

.relacionado-content p {
  color: var(--text-soft);

  font-size: 13px;

  line-height: 1.55;

  overflow-wrap: anywhere;

  display: -webkit-box;

  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;

  overflow: hidden;
}


/* =========================================================
   SEM RELACIONADOS
========================================================= */

.sem-relacionados {
  grid-column:
    1 / -1;

  padding: 22px;

  background: var(--surface-soft);

  border:
    1px dashed
    var(--border-dark);

  border-radius: 12px;

  color: var(--text-soft);

  font-size: 13px;

  text-align: center;
}


/* =========================================================
   RODAPÉ
========================================================= */

.post-footer {
  width: 100%;

  margin-top: 20px;

  background: #fff;

  border-top:
    1px solid
    var(--border);
}

.post-footer-container {
  width: 100%;
  max-width: var(--page-width);

  margin: 0 auto;

  padding:
    30px 24px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 20px;
}

.post-footer-brand {
  color: var(--text);

  font-size: 16px;
  font-weight: 800;

  text-decoration: none;
}

.post-footer p {
  color: var(--text-soft);

  font-size: 12px;

  text-align: right;
}


/* =========================================================
   FOCO / ACESSIBILIDADE
========================================================= */

.post-back-link:focus-visible,
.back-link:focus-visible,
.action-btn:focus-visible,
.social-btn:focus-visible,
.comentario-submit:focus-visible,
.comentarios-section input:focus-visible,
.comentarios-section textarea:focus-visible {
  outline:
    3px solid
    rgba(122, 92, 88, 0.20);

  outline-offset: 3px;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 900px) {

  .post-page {
    padding:
      36px 20px
      64px;
  }

  .post-detail {
    padding:
      44px 42px
      50px;
  }

  .relacionados-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }

}


/* =========================================================
   CELULAR
========================================================= */

@media (max-width: 700px) {

  body {
    background: #f6f5f4;
  }


  /* TOPBAR */

  .post-topbar-container {
    min-height: 62px;

    padding:
      0 15px;
  }

  .post-brand {
    gap: 7px;

    font-size: 16px;
  }

  .post-brand-icon {
    width: 28px;
    height: 28px;
  }

  .post-back-link {
    padding:
      8px 10px;

    font-size: 11px;

    border-radius: 8px;
  }

  .post-back-link svg {
    width: 15px;
    height: 15px;
  }


  /* PÁGINA */

  .post-page {
    padding:
      14px 10px
      42px;
  }

  .post-layout {
    gap: 12px;
  }


  /* ARTIGO */

  .post-detail {
    padding:
      27px 18px
      34px;

    border-radius: 16px;

    box-shadow: none;
  }


  /* CATEGORIA */

  .category {
    margin-bottom: 13px;

    padding:
      6px 9px;

    font-size: 10px;

    border-radius: 6px;
  }


  /* TÍTULO */

  .post-detail > h1,
  .post-detail h1:first-of-type {
    margin-bottom: 14px;

    font-size:
      clamp(29px, 8.7vw, 38px);

    line-height: 1.1;

    letter-spacing: -1.1px;
  }


  /* META */

  .post-meta {
    margin-bottom: 22px;

    gap: 6px 8px;

    font-size: 11px;
  }


  /* BANNER */

  .post-banner {
    width:
      calc(100% + 36px);

    max-width: none;

    margin:
      0 -18px
      27px;

    border-radius: 0;

    aspect-ratio: 16 / 10;

    box-shadow: none;
  }


  /* TEXTO */

  .post-text {
    max-width: none;

    font-size: 16px;

    line-height: 1.78;
  }

  .post-text p {
    margin-bottom: 20px;

    font-size: 16px;

    line-height: 1.78;
  }


  /* TÍTULOS INTERNOS */

  .post-text h1 {
    margin:
      36px 0
      14px;

    font-size: 28px;
  }

  .post-text h2 {
    margin:
      34px 0
      14px;

    font-size: 25px;
  }

  .post-text h3 {
    margin:
      30px 0
      12px;

    font-size: 21px;
  }

  .post-text h4 {
    margin:
      27px 0
      11px;

    font-size: 18px;
  }


  /* LISTAS */

  .post-text ul,
  .post-text ol {
    padding-left: 22px;

    margin-bottom: 21px;
  }


  /* CITAÇÃO */

  .post-text blockquote {
    margin:
      25px 0;

    padding:
      17px 16px;

    font-size: 16px;

    line-height: 1.65;

    border-radius:
      0 9px 9px 0;
  }


  /* TABELA */

  .post-text table {
    display: block;

    width: 100%;

    max-width: 100%;

    overflow-x: auto;

    white-space: nowrap;

    font-size: 12px;

    -webkit-overflow-scrolling: touch;
  }


  /* AÇÕES */

  .post-actions {
    grid-template-columns:
      repeat(3, minmax(0, 1fr));

    gap: 6px;

    padding: 8px;

    border-radius: 14px;

    box-shadow: none;
  }

  .action-btn {
    min-height: 76px;

    padding:
      8px 4px;

    flex-direction: column;

    justify-content: center;

    gap: 6px;

    text-align: center;

    border-radius: 10px;
  }

  .action-icon {
    width: 31px;
    height: 31px;

    flex-basis: 31px;

    border-radius: 8px;
  }

  .action-icon svg {
    width: 16px;
    height: 16px;
  }

  .action-text {
    align-items: center;
  }

  .action-text .label {
    font-size: 10px;
  }

  .action-text .count,
  .action-text .sub {
    font-size: 9px;
  }


  /* REDES */

  .social-box {
    flex-direction: column;

    justify-content: center;

    gap: 8px;

    padding-top: 12px;
  }

  .social-title {
    font-size: 10px;
  }

  .social-btn {
    width: 37px;
    height: 37px;
  }


  /* COMENTÁRIOS */

  .comentarios-section {
    padding:
      21px 16px;

    border-radius: 16px;

    box-shadow: none;
  }

  .comentarios-header {
    margin-bottom: 18px;
  }

  .comentarios-icon {
    width: 38px;
    height: 38px;

    flex-basis: 38px;

    border-radius: 9px;
  }

  .comentarios-section h2 {
    font-size: 19px;
  }

  .comentarios-section form {
    grid-template-columns: 1fr;

    gap: 13px;

    padding: 14px;

    border-radius: 12px;
  }

  .comentario-field:nth-child(2),
  .comentario-submit,
  .comentarios-section button[type="submit"] {
    grid-column: auto;
  }

  .comentarios-section input,
  .comentarios-section textarea {
    /*
       16px evita o zoom automático do Safari
       ao tocar no campo.
    */
    font-size: 16px;
  }

  .comentario-submit,
  .comentarios-section button[type="submit"] {
    width: 100%;
  }


  /* RELACIONADOS */

  .relacionados-section {
    margin-top: 8px;

    padding:
      25px 16px;

    border-radius: 16px;

    box-shadow: none;
  }

  .relacionados-header {
    margin-bottom: 19px;
  }

  .relacionados-header h2 {
    font-size: 23px;

    letter-spacing: -0.5px;
  }

  .relacionados-header p {
    font-size: 12px;
  }

  .relacionados-grid {
    grid-template-columns: 1fr;

    gap: 10px;
  }


  /* Cards horizontais no celular */

  .relacionado-card {
    display: grid;

    grid-template-columns:
      110px minmax(0, 1fr);

    border-radius: 11px;
  }

  .relacionado-card img {
    width: 110px;
    height: 100%;

    min-height: 115px;

    aspect-ratio: auto;

    object-fit: cover;
  }

  .relacionado-content {
    padding:
      12px;
  }

  .relacionado-content span {
    margin-bottom: 5px;

    font-size: 8px;
  }

  .relacionado-content h3 {
    margin-bottom: 5px;

    font-size: 14px;

    line-height: 1.35;
  }

  .relacionado-content p {
    font-size: 10px;

    line-height: 1.45;

    -webkit-line-clamp: 2;
  }


  /* FOOTER */

  .post-footer-container {
    padding:
      25px 16px;

    flex-direction: column;

    gap: 7px;

    text-align: center;
  }

  .post-footer p {
    text-align: center;

    line-height: 1.5;
  }

}


/* =========================================================
   CELULARES PEQUENOS
========================================================= */

@media (max-width: 420px) {

  .post-page {
    padding:
      10px 7px
      36px;
  }

  .post-detail {
    padding:
      24px 15px
      30px;

    border-radius: 14px;
  }

  .post-detail > h1,
  .post-detail h1:first-of-type {
    font-size:
      clamp(27px, 8.8vw, 34px);
  }

  .post-banner {
    width:
      calc(100% + 30px);

    margin-left: -15px;
    margin-right: -15px;
  }

  .post-text,
  .post-text p {
    font-size: 16px;

    line-height: 1.75;
  }

  .post-text h2 {
    font-size: 23px;
  }

  .post-text h3 {
    font-size: 20px;
  }

  .post-actions {
    padding: 6px;

    gap: 5px;
  }

  .action-btn {
    min-height: 72px;
  }

  .comentarios-section {
    padding:
      19px 13px;
  }

  .relacionados-section {
    padding:
      22px 13px;
  }

  .relacionado-card {
    grid-template-columns:
      95px minmax(0, 1fr);
  }

  .relacionado-card img {
    width: 95px;

    min-height: 108px;
  }

}


/* =========================================================
   TELAS MUITO PEQUENAS
========================================================= */

@media (max-width: 350px) {

  .post-back-link span {
    display: none;
  }

  .post-back-link {
    width: 38px;
    height: 38px;

    padding: 0;

    justify-content: center;
  }

  .post-actions {
    grid-template-columns: 1fr;
  }

  .action-btn {
    min-height: 52px;

    padding:
      8px 12px;

    flex-direction: row;

    justify-content: flex-start;

    text-align: left;
  }

  .action-text {
    align-items: flex-start;
  }

  .social-box {
    grid-column: auto;
  }

  .relacionado-card {
    display: block;
  }

  .relacionado-card img {
    width: 100%;
    height: auto;

    aspect-ratio: 16 / 9;
  }

}


/* =========================================================
   REDUÇÃO DE MOVIMENTO
========================================================= */

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;

    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;

    transition-duration: 0.01ms !important;
  }

}



/* =====================================================
   PSIFÁCIL — AVISO PERMANENTE DE SAÚDE MENTAL
   Visual clean, sofisticado e acolhedor
===================================================== */

.aviso-saude-mental {
    position: relative;

    margin: 42px 0 32px;
    padding: 30px 34px;

    background: #f8f5f1;

    border: 1px solid #e9e0d8;
    border-left: 4px solid #b58a70;

    border-radius: 16px;

    box-shadow: 0 8px 28px rgba(67, 47, 35, 0.035);

    color: #51443d;
}


/* TÍTULO */

.aviso-saude-mental h2 {
    display: flex;
    align-items: center;
    gap: 10px;

    margin: 0 0 20px;
    padding: 0 0 16px;

    border-bottom: 1px solid #e9e0d8;

    font-size: 21px;
    font-weight: 700;
    line-height: 1.4;

    letter-spacing: -0.4px;

    color: #44352f;
}


/* PARÁGRAFOS */

.aviso-saude-mental p {
    margin: 0 0 15px;

    font-size: 15px;
    font-weight: 400;
    line-height: 1.85;

    color: #51443d;
}


/* DESTAQUES IMPORTANTES */

.aviso-saude-mental strong {
    font-weight: 650;
    color: #44352f;
}


/* ÚLTIMA MENSAGEM */

.aviso-saude-mental p:last-child {
    margin: 22px 0 0;
    padding-top: 17px;

    border-top: 1px solid #e9e0d8;

    font-weight: 600;
    color: #8b634e;
}

.aviso-saude-mental p:last-child strong {
    color: #8b634e;
}


/* =====================================================
   RESPONSIVIDADE — TABLETS
===================================================== */

@media (max-width: 768px) {

    .aviso-saude-mental {
        margin: 32px 0 26px;
        padding: 25px 24px;
        border-radius: 14px;
    }

    .aviso-saude-mental h2 {
        font-size: 19px;
    }

    .aviso-saude-mental p {
        font-size: 14.5px;
        line-height: 1.8;
    }
}


/* =====================================================
   RESPONSIVIDADE — CELULARES
===================================================== */

@media (max-width: 480px) {

    .aviso-saude-mental {
        margin: 26px 0 24px;
        padding: 22px 19px;

        border-left-width: 3px;
        border-radius: 12px;
    }

    .aviso-saude-mental h2 {
        font-size: 18px;
        line-height: 1.45;
    }

    .aviso-saude-mental p {
        font-size: 14px;
        line-height: 1.75;
        margin-bottom: 14px;
    }

    .aviso-saude-mental p:last-child {
        margin-top: 18px;
        padding-top: 15px;
    }
}
