/* =============================================================
   punctumvisus.pt — public.css
   Ficheiro: www/assets/css/public.css
   ============================================================= */

/* ---- MASTHEAD ---- */
.masthead {
  background: var(--cream); border-bottom: 3px double var(--ink);
}
.masthead-top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.5rem 2rem; border-bottom: 0.5px solid var(--rule);
  font-size: 11px;
}
.masthead-date { color: var(--ink3); letter-spacing: 0.05em; }
.masthead-auth { display: flex; gap: 1rem; align-items: center; }
.masthead-auth a { color: var(--ink2); text-decoration: none; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; }
.masthead-auth a:hover { color: var(--accent); }
.btn-registar {
  background: var(--ink); color: var(--cream) !important;
  padding: 0.3rem 0.8rem;
}

.masthead-title-wrap { text-align: center; padding: 1rem 2rem 0.5rem; }
.masthead-logo {
  font-family: 'Playfair Display', serif; font-size: 3rem; font-weight: 700;
  color: var(--ink); text-decoration: none; letter-spacing: -0.02em; display: block;
}
.masthead-logo:hover { color: var(--accent); }
.masthead-tagline {
  font-family: 'Source Serif 4', serif; font-style: italic;
  font-size: 0.875rem; color: var(--ink3); letter-spacing: 0.04em;
}

.masthead-nav {
  display: flex; justify-content: center; gap: 0;
  border-top: 0.5px solid var(--rule); padding: 0.3rem 0;
}
.masthead-nav a {
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink2); text-decoration: none; padding: 0.35rem 1.2rem;
  border-right: 0.5px solid var(--rule); font-weight: 500;
  transition: color 0.15s;
}
.masthead-nav a:last-child { border-right: none; }
.masthead-nav a:hover, .masthead-nav a.active { color: var(--accent); }

/* MASTHEAD COMPACTO */
.masthead-compact { border-bottom: 2px solid var(--ink); }
.masthead-compact .masthead-top { padding: 0.6rem 2rem; }
.masthead-logo-sm {
  font-family: 'Playfair Display', serif; font-size: 1.3rem; font-weight: 700;
  color: var(--ink); text-decoration: none; flex-shrink: 0;
}
.masthead-nav-sm { display: flex; gap: 0; }
.masthead-nav-sm a {
  font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink3); text-decoration: none; padding: 0.3rem 0.8rem;
  border-right: 0.5px solid var(--rule);
}
.masthead-nav-sm a:last-child { border-right: none; }
.masthead-nav-sm a:hover { color: var(--accent); }

/* ---- LAYOUT PRINCIPAL ---- */
.public-layout {
  display: grid; grid-template-columns: 1fr 260px;
  max-width: 1100px; margin: 0 auto;
  padding: 0 1.5rem; gap: 0;
}
.public-main {
  padding: 1.5rem 2rem 2rem 0;
  border-right: 0.5px solid var(--rule);
}
.public-sidebar { padding: 1.5rem 0 2rem 1.5rem; }

/* ---- LABEL DE SECÇÃO ---- */
.section-label {
  font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--ink3); font-weight: 500; padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--ink); margin-bottom: 1.2rem;
}

/* ---- CATEGORIA HEADER ---- */
.cat-header {
  border-left: 4px solid var(--accent); padding: 0.4rem 0.8rem;
  margin-bottom: 1.2rem;
}
.cat-header-label { font-size: 10px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--ink3); }
.cat-header-name { font-family: 'Playfair Display', serif; font-size: 1.4rem; font-weight: 700; }

/* ---- CARDS DE OPINIÃO ---- */
.opinion-card {
  display: grid; grid-template-columns: 1fr 80px;
  gap: 1rem; padding: 1.2rem 0;
  border-bottom: 0.5px solid var(--rule);
  align-items: start;
}
.opinion-card:last-child { border-bottom: none; }
.opinion-card.featured { grid-template-columns: 1fr 120px; padding-bottom: 1.5rem; }

.op-cat {
  font-size: 9px; letter-spacing: 0.15em; text-transform: uppercase;
  font-weight: 500; text-decoration: none; display: block; margin-bottom: 0.3rem;
}
.op-title-link { text-decoration: none; }
.op-title {
  font-family: 'Playfair Display', serif; font-size: 1.25rem; font-weight: 700;
  line-height: 1.25; color: #1e3a5f; margin-bottom: 0.4rem;
  transition: color 0.15s;
}
.op-title-link:hover .op-title { color: var(--accent); }
.featured .op-title { font-size: 1.7rem; }

.op-excerpt {
  font-family: 'Source Serif 4', serif; font-size: 0.82rem;
  color: var(--ink3); line-height: 1.6; margin-bottom: 0.5rem;
}
.op-meta { display: flex; flex-wrap: wrap; gap: 0.3rem; align-items: center; font-size: 11px; }
.op-author { color: var(--ink2); text-decoration: none; font-weight: 500; }
.op-author:hover { color: var(--accent); }
.op-sep { color: var(--rule); }
.op-date, .op-views { color: var(--ink3); }
.op-comments { color: var(--ink3); text-decoration: none; }
.op-comments:hover { color: var(--accent); }

.op-photo-placeholder {
  width: 80px; height: 80px; border-radius: 50%;
  background: var(--cream2); color: var(--rule);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Playfair Display', serif; font-size: 1.6rem;
  border: 0.5px solid var(--rule);
}
.op-photo-placeholder.large { width: 120px; height: 120px; font-size: 2.2rem; }

.public-empty { color: var(--ink3); font-size: 0.9rem; padding: 2rem 0; }

/* ---- PAGINAÇÃO ---- */
.public-pagination {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.5rem 0; font-size: 13px;
}
.public-pagination a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--rule); }
.public-pagination a:hover { color: var(--accent); border-color: var(--accent); }
.public-pagination span { color: var(--ink3); }

/* ---- SIDEBAR ---- */
.sidebar-section { margin-bottom: 2rem; }
.sidebar-title {
  font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--ink3); font-weight: 500; padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--ink); margin-bottom: 0.8rem;
}
.sidebar-item {
  display: flex; gap: 0.6rem; padding: 0.6rem 0;
  border-bottom: 0.5px solid var(--rule);
}
.sidebar-item:last-child { border-bottom: none; }
.sidebar-num {
  font-family: 'Playfair Display', serif; font-size: 1.1rem;
  font-weight: 700; color: var(--rule); flex-shrink: 0; width: 18px; line-height: 1.2;
}
.sidebar-item-title {
  font-family: 'Playfair Display', serif; font-size: 0.8rem;
  line-height: 1.3; color: var(--ink2); text-decoration: none; display: block;
}
.sidebar-item-title:hover { color: var(--accent); }
.sidebar-item-author { font-size: 10px; color: var(--ink3); margin-top: 2px; text-transform: uppercase; letter-spacing: 0.05em; }

.sidebar-cta { background: var(--cream); border: 0.5px solid var(--rule); border-left: 3px solid var(--ink); padding: 1rem; }
.sidebar-cta p { font-size: 13px; color: var(--ink3); margin-bottom: 0.8rem; line-height: 1.5; }

/* ---- RODAPÉ ---- */
.public-footer {
  border-top: 3px double var(--ink); background: var(--cream);
  padding: 1rem 2rem;
}
.footer-inner { max-width: 1100px; margin: 0 auto; display: flex; gap: 1.5rem; }
.footer-label {
  font-size: 10px; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--ink3); flex-shrink: 0; writing-mode: vertical-lr;
  transform: rotate(180deg); border-right: 0.5px solid var(--rule); padding-right: 0.7rem;
}
.footer-list { display: flex; gap: 1rem; overflow: hidden; flex-wrap: wrap; }
.footer-item { flex-shrink: 0; width: 160px; padding-left: 1rem; border-left: 0.5px solid var(--rule); }
.footer-item:first-child { border-left: none; padding-left: 0; }
.footer-item-author { font-size: 9px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink3); margin-bottom: 3px; }
.footer-item-title { font-family: 'Playfair Display', serif; font-size: 0.78rem; line-height: 1.3; color: var(--ink2); font-weight: 700; text-decoration: none; display: block; }
.footer-item-title:hover { color: var(--accent); }
.footer-copy { max-width: 1100px; margin: 0.8rem auto 0; font-size: 11px; color: var(--ink3); border-top: 0.5px solid var(--rule); padding-top: 0.6rem; }
.footer-copy a { color: var(--ink3); }

.public-footer-simple {
  border-top: 2px solid var(--ink); padding: 1rem 2rem;
  display: flex; gap: 1rem; align-items: center;
  font-size: 12px; color: var(--ink3); background: var(--cream);
}
.footer-logo-sm { font-family: 'Playfair Display', serif; font-size: 1rem; font-weight: 700; color: var(--ink); text-decoration: none; }

/* ---- ARTIGO ---- */
.article-layout { max-width: 720px; margin: 0 auto; padding: 2rem 1.5rem 4rem; }
.article-header { margin-bottom: 1.5rem; }
.article-cat {
  font-size: 9px; letter-spacing: 0.15em; text-transform: uppercase;
  font-weight: 500; text-decoration: none; display: block; margin-bottom: 0.5rem;
}
.article-title {
  font-family: 'Playfair Display', serif; font-size: 2.2rem; font-weight: 700;
  line-height: 1.15; color: #1e3a5f; margin-bottom: 0.6rem;
}
.article-excerpt {
  font-family: 'Source Serif 4', serif; font-size: 1.1rem; font-style: italic;
  color: var(--ink2); line-height: 1.6; margin-bottom: 1rem;
}
.article-byline { display: flex; gap: 0.8rem; align-items: center; }
.article-author-name { font-size: 0.9rem; font-weight: 500; color: var(--ink); text-decoration: none; display: block; }
.article-author-name:hover { color: var(--accent); }
.article-date-views { font-size: 12px; color: var(--ink3); margin-top: 2px; }
.article-rule { border: none; border-top: 0.5px solid var(--rule); margin: 1.5rem 0; }

.article-body {
  font-family: 'Source Serif 4', serif; font-size: 1.05rem;
  line-height: 1.85; color: var(--ink2);
}

.article-author-bio {
  display: flex; gap: 1rem; align-items: flex-start;
  padding: 1.2rem; background: var(--cream2); border: 0.5px solid var(--rule);
  margin-bottom: 2rem;
}
.bio-name { font-family: 'Playfair Display', serif; font-size: 1rem; font-weight: 700; color: var(--ink); text-decoration: none; display: block; margin-bottom: 0.3rem; }
.bio-name:hover { color: var(--accent); }
.bio-desc { font-size: 0.85rem; color: var(--ink3); line-height: 1.6; margin-bottom: 0.4rem; }
.bio-links { display: flex; gap: 0.8rem; font-size: 12px; flex-wrap: wrap; }
.bio-links a { color: var(--ink3); text-decoration: none; border-bottom: 1px solid var(--rule); }
.bio-links a:hover { color: var(--accent); }
.byline-placeholder {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--ink2); color: var(--cream);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Playfair Display', serif; font-size: 1.4rem; flex-shrink: 0;
}
.byline-placeholder.large { width: 72px; height: 72px; }

/* ---- COMENTÁRIOS ---- */
.comments-section { margin-top: 2rem; }
.comments-title {
  font-family: 'Playfair Display', serif; font-size: 1.3rem; font-weight: 700;
  display: flex; align-items: center; gap: 0.5rem;
  border-bottom: 2px solid var(--ink); padding-bottom: 0.4rem; margin-bottom: 1.2rem;
}
.comments-count {
  font-family: 'DM Sans', sans-serif; font-size: 0.9rem; font-weight: 400;
  color: var(--ink3);
}
.comment-form-wrap, .reply-form-wrap { margin-bottom: 1.5rem; }
.comment-form textarea {
  width: 100%; padding: 0.7rem; border: 0.5px solid var(--rule);
  font-family: 'Source Serif 4', serif; font-size: 0.95rem;
  line-height: 1.6; resize: vertical; background: #fff;
}
.comment-form textarea:focus { outline: none; border-color: var(--ink); }
.comment-form-actions {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 0.5rem; flex-wrap: wrap; gap: 0.5rem;
}
.comment-form-user { font-size: 12px; color: var(--ink3); }
.comment-login-prompt {
  padding: 1rem; background: var(--cream2); border: 0.5px solid var(--rule);
  font-size: 0.875rem; color: var(--ink3); margin-bottom: 1.2rem;
}
.comment-login-prompt a { color: var(--accent); }

.comments-list { display: flex; flex-direction: column; }
.comment-item {
  padding: 1rem 0; border-bottom: 0.5px solid var(--rule);
}
.comment-item:last-child { border-bottom: none; }
.comment-item.reply { padding: 0.7rem 0 0.7rem 1.2rem; border-left: 2px solid var(--rule); margin-left: 1rem; border-bottom: none; }
.comment-header { display: flex; gap: 0.5rem; align-items: baseline; margin-bottom: 0.4rem; }
.comment-author { font-size: 0.875rem; color: var(--ink); }
.comment-date { font-size: 11px; color: var(--ink3); }
.comment-body { font-family: 'Source Serif 4', serif; font-size: 0.9rem; line-height: 1.65; color: var(--ink2); }
.comment-replies { margin-top: 0.5rem; }
.comment-reply-btn {
  background: none; border: none; font-size: 11px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--ink3); cursor: pointer; padding: 0.3rem 0;
  margin-top: 0.4rem;
}
.comment-reply-btn:hover { color: var(--accent); }
.comments-empty { color: var(--ink3); font-size: 0.875rem; padding: 1rem 0; }
.reply-form-wrap { margin-top: 0.5rem; padding-left: 1.2rem; border-left: 2px solid var(--rule); margin-left: 1rem; }

/* ---- PERFIL AUTOR ---- */
.author-profile-layout {
  display: grid; grid-template-columns: 280px 1fr;
  max-width: 1000px; margin: 0 auto; padding: 2rem 1.5rem 4rem; gap: 2rem;
}
@media (max-width: 640px) { .author-profile-layout { grid-template-columns: 1fr; } }

.author-profile-card {
  background: var(--cream); border: 0.5px solid var(--rule);
  padding: 2rem; text-align: center; position: sticky; top: 1rem;
  align-self: start;
}
.author-profile-photo { margin: 0 auto 1rem; display: flex; justify-content: center; }
.author-photo-placeholder {
  width: 140px; height: 140px; border-radius: 50%;
  background: var(--ink2); color: var(--cream);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Playfair Display', serif; font-size: 3rem; margin: 0 auto;
}
.author-profile-name { font-family: 'Playfair Display', serif; font-size: 1.4rem; font-weight: 700; margin-bottom: 0.6rem; }
.author-profile-bio { font-size: 0.875rem; color: var(--ink3); line-height: 1.6; margin-bottom: 1rem; }
.author-profile-stats { display: flex; justify-content: center; gap: 2rem; margin-bottom: 1rem; }
.author-stat-num { font-family: 'Playfair Display', serif; font-size: 1.6rem; font-weight: 700; color: var(--accent); }
.author-stat-label { font-size: 11px; color: var(--ink3); text-transform: uppercase; letter-spacing: 0.08em; }
.author-profile-links { display: flex; flex-direction: column; gap: 0.4rem; font-size: 12px; }
.author-profile-links a { color: var(--accent); text-decoration: none; }
.author-profile-links span { color: var(--ink3); }

.author-opinions { padding-top: 0.5rem; }

/* =============================================================
   RESPONSIVE — Mobile first (max-width: 768px)
   ============================================================= */

@media (max-width: 768px) {

  /* ---- MASTHEAD ---- */
  .masthead-top {
    padding: 0.5rem 1rem;
    flex-wrap: wrap;
    gap: 0.4rem;
  }
  .masthead-date { display: none; }
  .masthead-auth { margin-left: auto; }
  .masthead-auth a { font-size: 10px; padding: 0.3rem 0.6rem; }
  .btn-registar { padding: 0.35rem 0.7rem; }

  .masthead-title-wrap { padding: 0.8rem 1rem 0.4rem; }
  .masthead-logo { font-size: 2rem; }
  .masthead-tagline { font-size: 0.78rem; }

  /* nav de categorias: scroll horizontal */
  .masthead-nav {
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    flex-wrap: nowrap;
    padding: 0.3rem 0;
  }
  .masthead-nav::-webkit-scrollbar { display: none; }
  .masthead-nav a {
    flex-shrink: 0;
    font-size: 10px;
    padding: 0.3rem 0.8rem;
    white-space: nowrap;
  }

  /* ---- LAYOUT PRINCIPAL: 1 coluna ---- */
  .public-layout {
    grid-template-columns: 1fr;
    padding: 0 1rem;
  }
  .public-main {
    padding: 1rem 0;
    border-right: none;
    border-bottom: 0.5px solid var(--rule);
  }
  .public-sidebar {
    padding: 1.5rem 0;
  }

  /* ---- CARDS DE OPINIÃO ---- */
  .opinion-card {
    grid-template-columns: 1fr 64px;
    gap: 0.7rem;
    padding: 1rem 0;
  }
  .opinion-card.featured {
    grid-template-columns: 1fr 80px;
  }
  .op-title { font-size: 1.05rem; }
  .featured .op-title { font-size: 1.3rem; }
  .op-excerpt { font-size: 0.8rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .op-photo-placeholder { width: 64px; height: 64px; font-size: 1.4rem; }
  .op-photo-placeholder.large { width: 80px; height: 80px; font-size: 1.8rem; }

  /* ---- RODAPÉ ---- */
  .footer-inner {
    flex-direction: column;
    gap: 0.8rem;
  }
  .footer-label {
    writing-mode: horizontal-tb;
    transform: none;
    border-right: none;
    border-bottom: 0.5px solid var(--rule);
    padding-right: 0;
    padding-bottom: 0.4rem;
  }
  .footer-list {
    flex-direction: column;
    gap: 0.6rem;
  }
  .footer-item {
    width: 100%;
    padding-left: 0;
    border-left: none;
    border-top: 0.5px solid var(--rule);
    padding-top: 0.6rem;
  }
  .footer-item:first-child { border-top: none; padding-top: 0; }

  /* ---- ARTIGO ---- */
  .article-layout { padding: 1.2rem 1rem 3rem; }
  .article-title { font-size: 1.6rem; }
  .article-excerpt { font-size: 0.95rem; }
  .article-body { font-size: 0.95rem; }

  .article-author-bio {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .bio-links { justify-content: center; }

  /* ---- PERFIL AUTOR ---- */
  .author-profile-layout {
    grid-template-columns: 1fr;
    padding: 1rem 1rem 3rem;
  }
  .author-profile-card { position: static; }

  /* ---- MASTHEAD COMPACTO ---- */
  .masthead-compact .masthead-top {
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
  }
  .masthead-nav-sm {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    width: 100%;
    order: 3;
  }
  .masthead-nav-sm::-webkit-scrollbar { display: none; }
  .masthead-nav-sm a { flex-shrink: 0; white-space: nowrap; font-size: 9px; padding: 0.3rem 0.6rem; }

  /* ---- COMENTÁRIOS ---- */
  .comment-form-actions { flex-direction: column; align-items: flex-start; gap: 0.4rem; }
  .comment-form-actions .btn-primary { width: 100%; text-align: center; }
}

@media (max-width: 480px) {
  .masthead-logo { font-size: 1.7rem; }
  .article-title { font-size: 1.4rem; }
  .opinion-card { grid-template-columns: 1fr 56px; }
  .opinion-card.featured { grid-template-columns: 1fr 64px; }
  .op-title { font-size: 0.95rem; }
  .featured .op-title { font-size: 1.15rem; }
}

/* =============================================================
   CORREÇÕES MOBILE + CONTAINERS ALTERNADOS
   ============================================================= */

/* --- fix: header estica até às bordas --- */
.masthead {
  width: 100%;
  box-sizing: border-box;
}
.masthead-top,
.masthead-title-wrap,
.masthead-nav {
  width: 100%;
  box-sizing: border-box;
}

/* --- fix: foto não sai fora do card --- */
.opinion-card {
  overflow: hidden;
}
.opinion-card-photo {
  flex-shrink: 0;
  overflow: hidden;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}
.opinion-card-photo svg,
.opinion-card-photo img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* --- CONTAINERS ALTERNADOS --- */
/* envolver cada card num container com fundo alternado */
.opinion-card-wrap:nth-child(odd),
.opinion-card-wrap:nth-child(even) {
  background: var(--cream);
  border-bottom: 0.5px solid var(--rule);
}
.opinion-card-wrap .opinion-card {
  border-bottom: none;
  padding: 1.4rem 1.2rem;
  margin: 0;
}
.opinion-card-wrap:first-child .opinion-card {
  padding-top: 1.6rem;
}

@media (max-width: 768px) {
  /* --- fix mobile: foto limitada --- */
  .opinion-card {
    grid-template-columns: 1fr 72px;
    align-items: start;
  }
  .opinion-card.featured {
    grid-template-columns: 1fr 88px;
  }
  .opinion-card-photo svg {
    width: 72px !important;
    height: 72px !important;
  }
  .opinion-card.featured .opinion-card-photo svg {
    width: 88px !important;
    height: 88px !important;
  }
  .op-photo-placeholder {
    width: 72px !important;
    height: 72px !important;
  }

  /* containers alternados no mobile com padding lateral */
  .opinion-card-wrap .opinion-card {
    padding: 1.2rem 0.8rem;
  }
}

/* ---- LOGO SVG ---- */
.masthead-logo-img { display: block; text-decoration: none; }
.masthead-logo-svg {
  height: 110px;
  width: auto;
  display: block;
  margin: 0 auto;
}
.masthead-logo-svg-sm {
  height: 52px;
  width: auto;
  display: block;
}

@media (max-width: 768px) {
  .masthead-logo-svg { height: 80px; }
  .masthead-logo-svg-sm { height: 40px; }
}

/* ---- PÁGINAS LEGAIS ---- */
.legal-layout { max-width: 720px; margin: 0 auto; padding: 2rem 1.5rem 4rem; }
.legal-content h1 {
  font-family: 'Playfair Display', serif; font-size: 2rem; font-weight: 700;
  color: #1e3a5f; margin-bottom: 0.3rem;
  border-bottom: 2px solid var(--ink); padding-bottom: 0.5rem;
}
.legal-updated { font-size: 12px; color: var(--ink3); margin-bottom: 2rem; font-style: italic; }
.legal-content h2 {
  font-family: 'Playfair Display', serif; font-size: 1.1rem; font-weight: 700;
  color: #1e3a5f; margin: 1.8rem 0 0.5rem;
}
.legal-content p { font-family: 'Source Serif 4', serif; font-size: 0.95rem; line-height: 1.8; color: var(--ink2); margin-bottom: 0.8rem; }
.legal-content ul { margin: 0.4rem 0 0.8rem 1.5rem; }
.legal-content li { font-family: 'Source Serif 4', serif; font-size: 0.95rem; line-height: 1.8; color: var(--ink2); margin-bottom: 0.3rem; }
.legal-content a { color: var(--accent); }

/* ---- NOTÍCIAS DO DIA ---- */
.sidebar-news-item {
  padding: 0.6rem 0; border-bottom: 0.5px solid var(--rule);
}
.sidebar-news-item:last-child { border-bottom: none; }
.sidebar-news-title {
  font-family: 'Playfair Display', serif; font-size: 0.82rem;
  line-height: 1.35; color: var(--ink2); text-decoration: none; display: block;
}
.sidebar-news-title:hover { color: var(--accent); }
.sidebar-news-source { font-size: 10px; color: var(--ink3); text-transform: uppercase; letter-spacing: 0.06em; margin-top: 2px; }

/* ---- EVENTOS / AGENDA ---- */
.sidebar-event-item {
  padding: 0.6rem 0; border-bottom: 0.5px solid var(--rule);
}
.sidebar-event-item:last-child { border-bottom: none; }
.sidebar-event-date { font-size: 10px; color: var(--accent); font-weight: 700; letter-spacing: 0.08em; margin-bottom: 2px; }
.sidebar-event-title {
  font-family: 'Playfair Display', serif; font-size: 0.82rem;
  line-height: 1.35; color: var(--ink2); text-decoration: none; display: block;
}
.sidebar-event-title:hover { color: var(--accent); }
.sidebar-event-location { font-size: 10px; color: var(--ink3); margin-top: 2px; }

/* ---- EDITAR / APAGAR COMENTÁRIOS ---- */
.comment-actions { display: flex; gap: 0.8rem; align-items: center; margin-top: 0.4rem; flex-wrap: wrap; }
.comment-edit-btn, .comment-delete-btn {
  background: none; border: none; cursor: pointer;
  font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; padding: 0;
}
.comment-edit-btn   { color: var(--ink3); }
.comment-edit-btn:hover { color: #1e3a5f; }
.comment-delete-btn { color: var(--ink3); }
.comment-delete-btn:hover { color: var(--accent); }
.edit-form-wrap { margin-top: 0.6rem; }

/* ---- RODAPÉ COM LINKS LEGAIS ---- */
.public-footer-simple a { color: var(--ink3); text-decoration: none; }
.public-footer-simple a:hover { color: var(--accent); }
.public-footer-simple span { color: var(--rule); }

/* ---- LABELS GRANDES ---- */
.section-label-lg {
  font-family: 'Playfair Display', Georgia, serif !important;
  font-size: 15px !important;
  letter-spacing: 0.06em;
  color: var(--ink) !important;
  font-weight: 700;
  border-bottom-width: 2px;
  padding-bottom: 0.4rem;
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: 4px;
  text-transform: none !important;
}

.sidebar-title {
  font-size: 13px !important;
  letter-spacing: 0.15em;
  color: var(--ink) !important;
  font-weight: 700;
  border-bottom-width: 2px;
}

/* ---- ETIQUETA DE ORIENTAÇÃO POLÍTICA (pública) ---- */
.political-tag {
  display: inline-block; font-size: 9px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 1px 6px; border-radius: 2px; vertical-align: middle;
  margin-left: 4px;
}
.political-tag.esquerda { background: #fde8e6; color: #c0392b; border: 0.5px solid #c0392b; }
.political-tag.centro   { background: #f3e8fd; color: #8e44ad; border: 0.5px solid #8e44ad; }
.political-tag.direita  { background: #e8f0fb; color: #1a5276; border: 0.5px solid #1a5276; }

/* ---- BARRA DE FILTROS DE ORIENTAÇÃO ---- */
.orientation-filter-bar {
  display: flex; gap: 0.3rem; align-items: center;
  margin-bottom: 1rem; flex-wrap: wrap;
  padding-bottom: 0.8rem;
  border-bottom: 0.5px solid var(--rule);
}
.ori-btn {
  font-size: 10px; font-weight: 500; letter-spacing: 0.06em;
  text-transform: uppercase; text-decoration: none;
  padding: 0.25rem 0.7rem; border: 0.5px solid var(--rule);
  color: var(--ink3); background: var(--cream); transition: all 0.15s;
  border-radius: 2px;
}
.ori-btn:hover        { border-color: var(--ink); color: var(--ink); }
.ori-btn.active       { background: var(--ink); color: var(--cream); border-color: var(--ink); }

.ori-esquerda:hover,
.ori-esquerda.active  { background: #c0392b; border-color: #c0392b; color: #fff; }

.ori-centro:hover,
.ori-centro.active    { background: #8e44ad; border-color: #8e44ad; color: #fff; }

.ori-direita:hover,
.ori-direita.active   { background: #1a5276; border-color: #1a5276; color: #fff; }

.ori-clear {
  font-size: 11px; color: var(--ink3); text-decoration: none;
  padding: 0.3rem 0.5rem; letter-spacing: 0.05em;
}
.ori-clear:hover { color: var(--accent); }

/* banner de orientação activa */
.ori-active-banner {
  padding: 0.5rem 0.8rem; margin-bottom: 1rem;
  font-size: 12px; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; border-left: 3px solid;
}
.ori-active-banner.esquerda { background: #fde8e6; color: #c0392b; border-color: #c0392b; }
.ori-active-banner.centro   { background: #f3e8fd; color: #8e44ad; border-color: #8e44ad; }
.ori-active-banner.direita  { background: #e8f0fb; color: #1a5276; border-color: #1a5276; }

@media (max-width: 768px) {
  .orientation-filter-bar { gap: 0.3rem; }
  .ori-btn { font-size: 10px; padding: 0.25rem 0.6rem; }
}

/* ---- CONFRONTO DE IDEIAS ---- */
.confronto-layout { max-width: 1100px; margin: 0 auto; padding: 2rem 1.5rem 4rem; }

.confronto-header { margin-bottom: 2rem; text-align: center; }
.confronto-title {
  font-family: 'Playfair Display', serif; font-size: 2rem; font-weight: 700;
  color: #1e3a5f; margin-bottom: 0.5rem;
}
.confronto-sub {
  font-family: 'Source Serif 4', serif; font-style: italic;
  font-size: 1rem; color: var(--ink3); max-width: 600px; margin: 0 auto 1.5rem;
}

/* barómetro */
.barometro { max-width: 600px; margin: 0 auto; }
.barometro-label { font-size: 10px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--ink3); margin-bottom: 0.4rem; }
.barometro-bar { display: flex; height: 28px; border-radius: 2px; overflow: hidden; border: 0.5px solid var(--rule); }
.barometro-seg {
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; color: #fff;
  transition: width 0.3s;
}
.barometro-esquerda { background: #c0392b; }
.barometro-centro   { background: #8e44ad; }
.barometro-direita  { background: #1a5276; }
.barometro-legend { display: flex; justify-content: center; gap: 1rem; margin-top: 0.5rem; flex-wrap: wrap; }
.barometro-leg-item { font-size: 11px; font-weight: 600; letter-spacing: 0.06em; padding: 2px 8px; border-radius: 2px; }
.barometro-leg-item.barometro-esquerda { background: #fde8e6; color: #c0392b; }
.barometro-leg-item.barometro-centro   { background: #f3e8fd; color: #8e44ad; }
.barometro-leg-item.barometro-direita  { background: #e8f0fb; color: #1a5276; }

/* grid de colunas */
.confronto-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
@media (max-width: 900px) { .confronto-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .confronto-grid { grid-template-columns: 1fr; } }

.confronto-col { display: flex; flex-direction: column; }
.confronto-col-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.6rem 1rem; color: #fff; margin-bottom: 0;
}
.confronto-col-title { font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.confronto-col-count { font-size: 11px; opacity: 0.85; }

.confronto-card {
  display: block; text-decoration: none;
  background: var(--cream); border: 0.5px solid var(--rule);
  border-top: none; padding: 1rem;
  transition: background 0.15s;
}
.confronto-card:hover { background: #f3f0ea; }
.confronto-card-cat { font-size: 9px; letter-spacing: 0.15em; text-transform: uppercase; font-weight: 500; margin-bottom: 0.3rem; }
.confronto-card-title { font-family: 'Playfair Display', serif; font-size: 0.95rem; font-weight: 700; line-height: 1.3; color: #1e3a5f; margin-bottom: 0.3rem; }
.confronto-card-excerpt { font-size: 0.8rem; color: var(--ink3); line-height: 1.5; margin-bottom: 0.4rem; }
.confronto-card-meta { font-size: 10px; color: var(--ink3); letter-spacing: 0.03em; }

.confronto-ver-mais {
  display: block; text-decoration: none; text-align: center;
  padding: 0.6rem; font-size: 11px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  border: 1.5px solid; margin-top: auto;
  background: #fff; transition: all 0.15s;
}
.confronto-ver-mais:hover { opacity: 0.8; }

.confronto-vazio { padding: 2rem 1rem; text-align: center; font-size: 13px; color: var(--ink3); background: var(--cream); border: 0.5px solid var(--rule); border-top: none; }

/* Liberal — orientação política */
.political-tag.liberal   { background: #fef3e2; color: #d4830a; border: 0.5px solid #d4830a; }
.ori-liberal:hover,
.ori-liberal.active      { background: #d4830a; border-color: #d4830a; color: #fff; }
.barometro-liberal       { background: #d4830a; }
.barometro-leg-item.barometro-liberal { background: #fef3e2; color: #d4830a; }
.confronto-col-header.liberal { background: #d4830a; }

/* ---- BARRA DE COBERTURA (artigo) ---- */
.coverage-bar-wrap {
  background: var(--cream2); border: 0.5px solid var(--rule);
  padding: 0.8rem 1rem; margin-bottom: 1.5rem;
}
.coverage-bar-label {
  font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink3); margin-bottom: 0.5rem; font-weight: 500;
}
.coverage-bar {
  display: flex; height: 24px; border-radius: 2px;
  overflow: hidden; margin-bottom: 0.5rem;
}
.coverage-seg {
  display: flex; align-items: center; padding: 0 6px;
  transition: width 0.3s;
}
.coverage-seg span { font-size: 10px; font-weight: 700; color: #fff; white-space: nowrap; }
.coverage-legend { display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: center; }
.coverage-leg-item {
  font-size: 10px; font-weight: 600; padding: 2px 8px;
  border-radius: 2px; text-decoration: none; letter-spacing: 0.05em;
}
.coverage-only-tags { padding: 0.6rem 1rem; }
.article-tag {
  font-size: 11px; color: var(--ink3); text-decoration: none;
  margin-right: 0.4rem; letter-spacing: 0.04em;
}
.article-tag:hover { color: var(--accent); }
.coverage-tags { margin-left: auto; }

/* ---- PONTO CEGO (blindspot) ---- */
.blindspot-layout { max-width: 1000px; margin: 0 auto; padding: 2rem 1.5rem 4rem; }
.blindspot-header { text-align: center; margin-bottom: 2rem; }
.blindspot-title {
  font-family: 'Playfair Display', serif; font-size: 2rem;
  font-weight: 700; color: #1e3a5f; margin-bottom: 0.4rem;
}
.blindspot-sub {
  font-family: 'Source Serif 4', serif; font-style: italic;
  font-size: 1rem; color: var(--ink3); max-width: 580px; margin: 0 auto;
}

.blindspot-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
@media (max-width: 768px) { .blindspot-grid { grid-template-columns: 1fr; } }

.blindspot-section { }
.blindspot-sec-title {
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  font-weight: 700; border-left: 3px solid; padding-left: 0.6rem;
  margin-bottom: 0.4rem;
}
.blindspot-sec-sub { font-size: 12px; color: var(--ink3); margin-bottom: 1rem; }

.blindspot-item { margin-bottom: 1rem; padding-bottom: 1rem; border-bottom: 0.5px solid var(--rule); }
.blindspot-item:last-child { border-bottom: none; }
.blindspot-item-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.4rem; }
.blindspot-tag {
  font-family: 'Playfair Display', serif; font-size: 0.95rem;
  font-weight: 700; color: #1e3a5f; text-decoration: none;
}
.blindspot-tag:hover { color: var(--accent); }
.blindspot-only { font-size: 10px; font-weight: 600; padding: 2px 8px; border-radius: 2px; }
.blindspot-bar { margin-bottom: 0.3rem; }
.blindspot-count { font-size: 11px; color: var(--ink3); }
.blindspot-empty { font-size: 13px; color: var(--ink3); font-style: italic; line-height: 1.6; }

/* equilíbrio por categoria */
.eq-item { margin-bottom: 0.8rem; }
.eq-cat-name { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 0.3rem; }
.eq-cat-name a { color: var(--ink2); text-decoration: none; font-weight: 500; }
.eq-cat-name a:hover { color: var(--accent); }
.eq-total { font-size: 11px; color: var(--ink3); }
.eq-bar { display: flex; height: 14px; border-radius: 2px; overflow: hidden; gap: 1px; }

/* ============================================================
   FUNCIONALIDADES LAB — PRODUÇÃO
   ============================================================ */

/* ---- FACTO / OPINIÃO (artigo) ---- */
.fo-article-wrap {
  background: var(--cream2); border: 0.5px solid var(--rule);
  padding: 0.8rem 1rem; margin-bottom: 1.2rem;
}
.fo-article-label {
  font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink3); font-weight: 600; margin-bottom: 0.5rem;
}
.fo-article-bar {
  display: flex; height: 10px; border-radius: 4px;
  overflow: hidden; margin-bottom: 0.4rem; gap: 2px;
}
.fo-seg { transition: flex 0.5s ease; border-radius: 3px; }
.fo-facto-seg   { background: #1a5276; }
.fo-opiniao-seg { background: #c0392b; }

.fo-article-legend {
  display: flex; justify-content: space-between;
  font-size: 10px; margin-bottom: 0.6rem;
}
.fo-fact-label  { color: #1a5276; font-weight: 600; }
.fo-op-label    { color: #c0392b; font-weight: 600; }
.fo-votes-label { color: var(--ink3); }

.fo-btns { display: flex; gap: 0.5rem; }
.fo-btn {
  flex: 1; padding: 0.4rem 0.5rem; border: 1.5px solid;
  font-family: 'DM Sans', sans-serif; font-size: 11px;
  font-weight: 600; cursor: pointer; transition: all 0.15s;
  letter-spacing: 0.04em;
}
.fo-btn-facto   { border-color: #1a5276; color: #1a5276; background: #e8f0fb; }
.fo-btn-opiniao { border-color: #c0392b; color: #c0392b; background: #fde8e6; }
.fo-btn-facto:hover   { background: #1a5276; color: #fff; }
.fo-btn-opiniao:hover { background: #c0392b; color: #fff; }
.fo-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ---- PREVISÃO COM PRAZO (artigo) ---- */
.prediction-article {
  background: linear-gradient(135deg, #1e3a5f, #1a5276);
  padding: 1rem 1.2rem; margin-bottom: 1.2rem; border-radius: 3px;
}
.prediction-article.expired  { background: linear-gradient(135deg, #3d3530, #6b6259); }
.prediction-article.verified { background: linear-gradient(135deg, #1a5f2e, #2c5f2e); }

.prediction-article-label {
  font-size: 9px; letter-spacing: 0.15em; text-transform: uppercase;
  color: rgba(255,255,255,0.65); margin-bottom: 0.4rem;
}
.prediction-article-text {
  font-family: 'Playfair Display', serif; font-style: italic;
  font-size: 1rem; color: #fff; line-height: 1.5; margin-bottom: 0.6rem;
}
.prediction-article-deadline { display: flex; align-items: center; gap: 0.6rem; }
.pred-badge {
  font-size: 11px; font-weight: 700; background: rgba(255,255,255,0.15);
  color: #fff; padding: 2px 8px; border-radius: 2px;
}
.pred-days { font-size: 11px; color: rgba(255,255,255,0.7); }
.prediction-article-note {
  margin-top: 0.6rem; font-size: 12px; color: rgba(255,255,255,0.85);
  border-top: 0.5px solid rgba(255,255,255,0.2); padding-top: 0.5rem;
}

/* ---- REACÇÕES (artigo) ---- */
.reactions-article {
  display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: center;
  padding: 0.8rem 0; margin-bottom: 1rem;
  border-top: 0.5px solid var(--rule);
  border-bottom: 0.5px solid var(--rule);
}
.react-btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.4rem 0.9rem; border: 1.5px solid var(--rule);
  background: #fff; cursor: pointer; font-family: 'DM Sans', sans-serif;
  font-size: 12px; font-weight: 500; transition: all 0.15s;
  border-radius: 2px;
}
.react-concordo:hover, .react-concordo.active { background: #d4edda; border-color: #2c5f2e; color: #2c5f2e; }
.react-discordo:hover, .react-discordo.active { background: #fdf0f0; border-color: #8b1a1a; color: #8b1a1a; }
.react-factos:hover,   .react-factos.active   { background: #e8f0fb; border-color: #1a5276; color: #1a5276; }
.react-count { font-size: 11px; opacity: 0.7; font-weight: 700; }
.react-login-hint { font-size: 12px; color: var(--ink3); margin-left: auto; }
.react-login-hint a { color: var(--accent); }

/* ---- FO BAR NOS CARDS DA HOMEPAGE ---- */
.fo-card-wrap { margin-top: 0.5rem; }
.fo-card-bar {
  display: flex; height: 5px; border-radius: 3px;
  overflow: hidden; gap: 1px; margin-bottom: 2px;
}
.fo-card-legend {
  display: flex; justify-content: space-between;
  font-size: 9px; color: var(--ink3);
}

/* ---- REACÇÕES MINI NOS CARDS ---- */
.react-mini {
  display: flex; gap: 0.3rem; margin-top: 0.4rem; flex-wrap: wrap;
}
.react-mini-item {
  font-size: 10px; font-weight: 600; padding: 1px 6px;
  border-radius: 2px; letter-spacing: 0.04em;
}
.react-mini-concordo { background: #d4edda; color: #2c5f2e; }
.react-mini-discordo { background: #fdf0f0; color: #8b1a1a; }
.react-mini-factos   { background: #e8f0fb; color: #1a5276; }

/* ---- PREVISÃO MINI NOS CARDS DA HOMEPAGE ---- */
.prediction-mini {
  margin-top: 0.5rem;
  background: linear-gradient(135deg, #1e3a5f, #1a5276);
  padding: 0.55rem 0.8rem;
  border-radius: 3px;
  position: relative;
  overflow: hidden;
}
.prediction-mini::after {
  content: '⏳';
  position: absolute; right: 0.6rem; top: 50%;
  transform: translateY(-50%);
  font-size: 1.2rem; opacity: 0.15;
}
.prediction-mini-label {
  font-size: 8px; letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(255,255,255,0.55); margin-bottom: 0.2rem;
}
.prediction-mini-text {
  font-family: 'Source Serif 4', serif; font-style: italic;
  font-size: 0.78rem; color: #fff; line-height: 1.4;
  margin-bottom: 0.3rem;
}
.prediction-mini-footer {
  display: flex; align-items: center; gap: 0.5rem;
}
.prediction-mini-date {
  font-size: 9px; font-weight: 700;
  background: rgba(255,255,255,0.15);
  color: #fff; padding: 1px 6px; border-radius: 2px;
}
.prediction-mini-days { font-size: 9px; color: rgba(255,255,255,0.65); }

/* ---- ARTIGOS LIDOS ---- */
.op-title-read .op-title { color: var(--ink3) !important; }
.op-title-read .op-title::after {
  content: ' ✓';
  font-size: 0.7em;
  color: var(--rule);
}

/* ---- MODO ESCURO ---- */
html.dark-mode {
  --ink:    #e8e4de;
  --ink2:   #c8bfb0;
  --ink3:   #8a7a68;
  --cream:  #1a1a18;
  --cream2: #242420;
  --rule:   #3d3530;
  --accent: #c0392b;
}
html.dark-mode body { background: #1a1a18; }
html.dark-mode .masthead,
html.dark-mode .masthead-compact { background: #1a1a18; border-color: #3d3530; }
html.dark-mode .opinion-card-wrap,
html.dark-mode .auth-card,
html.dark-mode .sidebar-section { background: #1a1a18; }
html.dark-mode .fo-article-wrap,
html.dark-mode .coverage-bar-wrap { background: #242420; }

/* ---- BARRA DE MODO DE LEITURA ---- */
#pv-reading-bar {
  position: fixed; bottom: 1.5rem; right: 1.5rem;
  z-index: 999; animation: slideUp 0.2s ease;
}
@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
.pv-rb-wrap {
  background: var(--ink); color: var(--cream);
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.5rem 0.8rem; border-radius: 4px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
.pv-rb-label {
  font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--rule); flex-shrink: 0;
}
.pv-rb-sizes { display: flex; gap: 2px; }
.pv-rb-btn {
  background: transparent; border: 0.5px solid #3d3530;
  color: var(--cream); padding: 0.2rem 0.5rem;
  font-family: 'DM Sans', sans-serif; font-size: 11px;
  cursor: pointer; border-radius: 2px; transition: all 0.15s;
}
.pv-rb-btn:hover, .pv-rb-btn.active { background: var(--accent); border-color: var(--accent); }
.pv-rb-dark { margin-left: 0.3rem; white-space: nowrap; }
.pv-rb-close { background: transparent; border: none; color: var(--rule); cursor: pointer; font-size: 14px; padding: 0; }
.pv-rb-close:hover { color: var(--cream); }

/* ---- BOTÃO PREFERÊNCIAS DE LEITURA ---- */
.pv-reading-toggle {
  background: transparent; border: 0.5px solid var(--rule);
  color: var(--ink3); font-family: 'DM Sans', sans-serif;
  font-size: 12px; font-weight: 600; padding: 0.2rem 0.6rem;
  cursor: pointer; border-radius: 2px; transition: all 0.15s;
  letter-spacing: 0.04em;
}
.pv-reading-toggle:hover { border-color: var(--ink); color: var(--ink); }

/* ============================================================
   BANNER DE COOKIES — punctumvisus.pt
   ============================================================ */

#pv-cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--ink); color: var(--cream);
  z-index: 9999; padding: 1.2rem 2rem;
  border-top: 3px solid var(--accent);
  animation: slideUpBanner 0.3s ease;
}
@keyframes slideUpBanner {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}
.pv-cb-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; gap: 1.5rem; align-items: center; flex-wrap: wrap;
}
.pv-cb-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1rem; font-weight: 700;
  color: var(--cream); flex-shrink: 0;
}
.pv-cb-text {
  flex: 1; font-size: 12px; line-height: 1.6; color: #c8bfb0;
  min-width: 280px;
}
.pv-cb-text a { color: var(--cream); text-decoration: underline; }
.pv-cb-text strong { color: var(--cream); }
.pv-cb-actions {
  display: flex; gap: 0.5rem; flex-shrink: 0; flex-wrap: wrap;
}
.pv-cb-btn {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 0.5rem 1.2rem; cursor: pointer;
  border-radius: 2px; transition: all 0.15s; border: none;
}
.pv-cb-accept {
  background: var(--cream); color: var(--ink);
}
.pv-cb-accept:hover { background: #fff; }
.pv-cb-essential {
  background: transparent; color: var(--cream);
  border: 0.5px solid #c8bfb0 !important;
}
.pv-cb-essential:hover { border-color: var(--cream) !important; }
.pv-cb-reject {
  background: transparent; color: #8a7a68;
  border: 0.5px solid #3d3530 !important;
  font-size: 10px;
}
.pv-cb-reject:hover { color: var(--cream); border-color: #6b6259 !important; }

/* painel de detalhes */
#pv-cookie-details {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--ink); z-index: 10000;
  border-top: 3px solid var(--accent);
  animation: slideUpBanner 0.3s ease;
}
.pv-cd-inner {
  max-width: 900px; margin: 0 auto; padding: 2rem;
}
.pv-cd-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem; font-weight: 700; color: var(--cream);
  margin-bottom: 0.4rem;
}
.pv-cd-sub { font-size: 12px; color: #8a7a68; margin-bottom: 1.2rem; }
.pv-cd-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr));
  gap: 1rem; margin-bottom: 1.5rem;
}
.pv-cd-cat {
  background: #242420; padding: 1rem; border-radius: 3px;
  border: 0.5px solid #3d3530;
}
.pv-cd-cat-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 0.5rem;
}
.pv-cd-cat-name {
  font-size: 11px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--cream);
}
.pv-cd-cat-desc {
  font-size: 11px; color: #8a7a68; line-height: 1.5;
}
/* toggle switch */
.pv-toggle {
  position: relative; width: 36px; height: 20px; flex-shrink: 0;
}
.pv-toggle input { display: none; }
.pv-toggle-slider {
  position: absolute; inset: 0; background: #3d3530;
  border-radius: 10px; cursor: pointer; transition: 0.2s;
}
.pv-toggle-slider::before {
  content: ''; position: absolute; width: 14px; height: 14px;
  background: #8a7a68; border-radius: 50%; top: 3px; left: 3px; transition: 0.2s;
}
.pv-toggle input:checked + .pv-toggle-slider { background: var(--accent); }
.pv-toggle input:checked + .pv-toggle-slider::before {
  transform: translateX(16px); background: #fff;
}
.pv-toggle input:disabled + .pv-toggle-slider { opacity: 0.5; cursor: not-allowed; }
.pv-toggle input:disabled:checked + .pv-toggle-slider { background: #2c5f2e; }

.pv-cd-actions {
  display: flex; gap: 0.8rem; flex-wrap: wrap; align-items: center;
}
.pv-cd-back {
  background: none; border: none; color: #8a7a68;
  font-size: 12px; cursor: pointer; text-decoration: underline;
  font-family: 'DM Sans', sans-serif;
}

@media (max-width: 600px) {
  #pv-cookie-banner { padding: 1rem; }
  .pv-cb-inner { gap: 1rem; }
  .pv-cb-actions { width: 100%; justify-content: flex-end; }
  .pv-cd-inner { padding: 1rem; }
}

/* ---- BARRA DE PATROCÍNIO ---- */
.sponsor-bar {
  background: var(--cream);
  border-bottom: 0.5px solid var(--rule);
  padding: 0.5rem 0;
  text-align: center;
}
.sponsor-bar-link {
  display: inline-flex; align-items: center; gap: 0.7rem;
  text-decoration: none; color: var(--ink2);
  font-size: 13px;
}
.sponsor-bar-label {
  font-size: 9px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink3); border: 0.5px solid var(--rule);
  padding: 1px 5px; border-radius: 2px; flex-shrink: 0;
}
.sponsor-bar-logo {
  height: 34px; max-width: 140px;
  object-fit: contain; vertical-align: middle;
}
.sponsor-bar-name {
  font-weight: 700; color: var(--ink);
}
.sponsor-bar-tagline {
  color: var(--ink2); font-size: 13px;
}
.sponsor-bar-cta {
  font-size: 11px; font-weight: 600;
  color: var(--accent); letter-spacing: 0.04em;
  margin-left: 0.3rem;
}
.sponsor-bar-link:hover .sponsor-bar-cta { text-decoration: underline; }

@media (max-width: 600px) {
  .sponsor-bar-tagline { display: none; }
  .sponsor-bar-cta { display: none; }
}
