/* ============================================================
   Monteiro & Quintão Advocacia — Design System v2 (editorial)
   Cores oficiais: marinho #2C3441 / marfim #F3EFE6
   ============================================================ */

:root {
  --brand-navy: #2C3441;
  --brand-navy-ink: #1B212B;
  --brand-ivory: #F3EFE6;
  --gold-text: #7E5F22;
  --header-h: 74px;
  --marinho: #2C3441;
  --marinho-deep: #232933;
  --marinho-ink: #1B212B;
  --marinho-soft: #3D4757;
  --marfim: #F3EFE6;
  --marfim-raise: #FAF8F2;
  --marfim-deep: #EAE4D6;
  --ink: #2A313D;
  --ink-2: #5C6472;
  --line: #DCD5C5;
  --line-strong: #C8C0AC;
  --whatsapp: #1FAF54;
  --focus-light: #1B212B;
  --focus-dark: #F3EFE6;
  --serif: 'Cormorant Garamond', 'Iowan Old Style', Palatino, Georgia, serif;
  --sans: 'Source Sans 3', 'Avenir Next', 'Segoe UI', system-ui, sans-serif;
  --container: 74rem;
  --grain: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHdpZHRoPScxNDAnIGhlaWdodD0nMTQwJz48ZmlsdGVyIGlkPSduJz48ZmVUdXJidWxlbmNlIHR5cGU9J2ZyYWN0YWxOb2lzZScgYmFzZUZyZXF1ZW5jeT0nMC45JyBudW1PY3RhdmVzPScyJy8+PC9maWx0ZXI+PHJlY3Qgd2lkdGg9JzE0MCcgaGVpZ2h0PScxNDAnIGZpbHRlcj0ndXJsKCNuKScgb3BhY2l0eT0nMC4wNScvPjwvc3ZnPg==");
}

* { box-sizing: border-box; }

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

html { scroll-behavior: smooth; scroll-padding-top: 5.5rem; }

body {
  margin: 0;
  background: var(--marfim);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

.container { max-width: var(--container); margin: 0 auto; padding: 0 1.75rem; }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; text-wrap: balance; margin: 0; }
h1 em, h2 em { font-style: italic; font-weight: 500; }
p { margin: 0.7rem 0; }

a { color: var(--marinho); }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--focus-light);
  outline-offset: 3px;
}

.hero :focus-visible,
.manifesto :focus-visible,
.contact-band :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--focus-dark);
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 1000;
  min-height: 44px;
  padding: 0.65rem 1rem;
  display: inline-flex;
  align-items: center;
  background: #FAF8F2;
  color: #1B212B;
  border: 2px solid #1B212B;
  box-shadow: none;
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-200%);
  transition: transform 0.18s ease;
}
.skip-link:focus-visible {
  transform: translateY(0);
  box-shadow: 0 6px 18px rgba(27, 33, 43, 0.25);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin: 0 0 1.1rem;
}
.eyebrow::before {
  content: "";
  width: 11px;
  height: 11px;
  flex: none;
  background: currentColor;
  clip-path: polygon(50% 0, 62% 21%, 82% 18%, 80% 38%, 100% 50%, 80% 62%, 82% 82%, 62% 79%, 50% 100%, 38% 79%, 18% 82%, 20% 62%, 0 50%, 20% 38%, 18% 18%, 38% 21%);
}

/* ---------- Revelação ao rolar ---------- */
.reveal { opacity: 1; transform: none; }
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation: none !important; }
}

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  max-width: 100%;
  gap: 0.6rem;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  padding: 0.95rem 2.1rem;
  border: 1px solid var(--marinho);
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-solid { background: var(--marinho); color: var(--marfim); box-shadow: 0 10px 24px -14px rgba(27, 33, 43, 0.7); }
.btn-solid:hover { background: var(--marinho-deep); }
.btn-ghost { background: transparent; color: var(--marinho); }
.btn-ghost:hover { background: var(--marinho); color: var(--marfim); }
.btn-inverse { border-color: var(--marfim); background: var(--marfim); color: var(--marinho); }
.btn-inverse:hover { background: #fff; }
.btn-outline-inverse { border-color: rgba(243, 239, 230, 0.45); background: transparent; color: var(--brand-ivory); }
.btn-outline-inverse:hover { border-color: var(--brand-ivory); background: rgba(243, 239, 230, 0.07); }
.btn .arrow { transition: transform 0.2s ease; }
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(243, 239, 230, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.site-header.scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 6px 24px -18px rgba(27, 33, 43, 0.5);
}
.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.9rem 1.75rem;
  max-width: var(--container-header, 84rem);
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  min-height: 44px;
  text-decoration: none;
  color: var(--marinho);
}
.brand svg { width: 36px; height: 36px; flex: none; fill: currentColor; }
.brand-name {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.22rem;
  letter-spacing: 0.06em;
  line-height: 1.05;
  white-space: nowrap;
}
.brand-name small {
  display: block;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.56rem;
  letter-spacing: 0.46em;
  color: var(--ink-2);
  margin-top: 0.2rem;
}
.main-nav { display: flex; align-items: center; gap: 1.2rem; }
.main-nav a:not(.btn) {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 0.94rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--ink);
  position: relative;
  padding-bottom: 3px;
  white-space: nowrap;
}
.main-nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1.5px;
  background: var(--marinho);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.main-nav a:not(.btn):hover::after { transform: scaleX(1); }
.main-nav .btn { padding: 0.55rem 1.25rem; font-size: 0.9rem; white-space: nowrap; }
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--marinho);
  color: var(--marinho);
  font: inherit;
  font-weight: 600;
  min-width: 44px;
  min-height: 44px;
  padding: 0.45rem 1rem;
  cursor: pointer;
}
.nav-admin-link {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--ink-2);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.28rem 0.65rem;
  border-radius: 4px;
  background: rgba(44, 52, 65, 0.05);
  border: 1px solid rgba(44, 52, 65, 0.16);
  transition: all 0.2s ease;
  white-space: nowrap;
}
.nav-admin-link:hover {
  color: var(--marinho);
  background: rgba(44, 52, 65, 0.12);
  border-color: var(--marinho);
  text-decoration: none;
}
.nav-admin-link::after {
  display: none !important;
}
.nav-admin-link svg {
  flex-shrink: 0;
}
.site-footer .nav-admin-link {
  color: rgba(243, 239, 230, 0.75);
  background: rgba(243, 239, 230, 0.06);
  border-color: rgba(243, 239, 230, 0.18);
}
.site-footer .nav-admin-link:hover {
  color: #FAF8F2;
  background: rgba(243, 239, 230, 0.12);
  border-color: rgba(243, 239, 230, 0.35);
}

.footer-back-link {
  color: rgba(243, 239, 230, 0.9) !important;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.footer-back-link:hover {
  text-decoration: underline;
  color: #FFFFFF !important;
}

/* Barra Superior Editorial — Removida por redundância visual */
.artigos-top-bar {
  display: none !important;
}

@media (max-width: 1280px) {
  :root { --header-h: 70px; }
  .nav-toggle { display: block; }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--marfim);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem 1.75rem 1.4rem;
  }
  .main-nav.open { display: flex; }
  .main-nav a:not(.btn) { padding: 0.85rem 0; border-bottom: 1px solid var(--line); }
  .main-nav .btn { margin-top: 1.1rem; justify-content: center; }
  .main-nav a.nav-admin-link {
    margin-top: 0.6rem;
    padding: 0.65rem 0.85rem;
    background: rgba(44, 52, 65, 0.04);
    border: 1px solid rgba(44, 52, 65, 0.14);
    justify-content: center;
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(115rem 60rem at 85% -20%, #3A4554 0%, transparent 60%),
    linear-gradient(160deg, #333D4D 0%, var(--brand-navy) 45%, var(--brand-navy-ink) 100%);
  color: var(--brand-ivory);
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--grain);
  pointer-events: none;
}
.hero-star-line {
  position: absolute;
  right: -12rem;
  top: 50%;
  transform: translateY(-50%);
  width: 42rem;
  height: 42rem;
  opacity: 0.1;
  pointer-events: none;
  animation: star-drift 120s linear infinite;
}
@media (max-width: 900px) {
  .hero-star-line { width: 26rem; height: 26rem; right: -10rem; opacity: 0.08; }
  .hero-star-solid { display: none; }
}
@keyframes star-drift {
  from { transform: translateY(-50%) rotate(0deg); }
  to { transform: translateY(-50%) rotate(360deg); }
}
.hero-star-solid {
  position: absolute;
  left: -7rem;
  bottom: -9rem;
  width: 24rem;
  height: 24rem;
  opacity: 0.05;
  pointer-events: none;
}
.hero-emblem {
  position: absolute;
  right: 6%;
  top: 50%;
  transform: translateY(-50%);
  width: 21rem;
  height: 21rem;
  z-index: 1;
  pointer-events: none;
}
.emblem-ring { animation: emblem-spin 80s linear infinite; transform-origin: 100px 100px; }
@keyframes emblem-spin { to { transform: rotate(360deg); } }
@media (max-width: 1120px) { .hero-emblem { display: none; } }
.hero-inner {
  position: relative;
  z-index: 1;
  padding: 5.5rem 1.75rem 5.75rem;
  max-width: var(--container);
  margin: 0 auto;
}
.hero .eyebrow { color: rgba(243, 239, 230, 0.66); }
.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 600;
  max-width: 19ch;
  letter-spacing: 0.005em;
}
.hero h1 em { color: #E9E2D0; }
.hero-sub {
  font-size: clamp(1.08rem, 1.6vw, 1.24rem);
  line-height: 1.65;
  max-width: 36rem;
  color: rgba(243, 239, 230, 0.82);
  margin: 1.6rem 0 2.6rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }
.hero-rule {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-top: 4.5rem;
  color: rgba(243, 239, 230, 0.55);
  font-size: 0.82rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}
.hero-rule::before, .hero-rule::after {
  content: "";
  height: 1px;
  background: rgba(243, 239, 230, 0.25);
  flex: 1;
}

/* ---------- Faixa de fatos ---------- */
.facts { border-bottom: 1px solid var(--line); background: var(--marfim-raise); }
.facts-inner {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 2.45rem 1.75rem 2.1rem;
  max-width: var(--container);
  margin: 0 auto;
}
.fact {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr);
  gap: 1rem;
  padding: 0.15rem 2.25rem 0;
  color: var(--marinho);
  text-align: left;
}
.fact:first-child { padding-left: 0; }
.fact:last-child { padding-right: 0; }
.fact + .fact { border-left: 1px solid var(--line-strong); }
.fact-num {
  padding-top: 0.38rem;
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}
.fact strong {
  display: block;
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2vw, 1.55rem);
  font-weight: 600;
  line-height: 1.18;
}
.fact small {
  display: block;
  max-width: 21rem;
  margin-top: 0.55rem;
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--ink-2);
}
.facts-geography {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  align-items: baseline;
  gap: 2rem;
  max-width: var(--container);
  margin: 0 auto;
  padding: 1.25rem 1.75rem 1.4rem;
  border-top: 1px solid var(--line);
  text-align: left;
}
.facts-geography-label,
.facts-geography strong {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--marinho);
}
.facts-geography p {
  margin: 0;
  color: var(--ink-2);
  font-size: 0.88rem;
  line-height: 1.55;
}
.facts-geography strong {
  display: inline-block;
  margin-right: 0.8rem;
}
@media (max-width: 820px) {
  .facts-inner { grid-template-columns: 1fr; padding-block: 1rem 0.55rem; }
  .fact { padding: 1.25rem 0; }
  .fact + .fact { border-left: 0; border-top: 1px solid var(--line); }
  .facts-geography { grid-template-columns: 1fr; gap: 0.35rem; }
  .facts-geography strong { display: block; margin: 0 0 0.35rem; }
}

/* ---------- Seções ---------- */
.section { padding: 6rem 0; }
.section-alt { background: var(--marfim-raise); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 46rem; margin-bottom: 3.2rem; }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
.section-head p { color: var(--ink-2); font-size: 1.08rem; margin-top: 0.9rem; }

/* ---------- Áreas ---------- */
.areas-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 1.75rem;
}
@media (max-width: 940px) { .areas-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .areas-grid { grid-template-columns: 1fr; grid-auto-rows: auto; } }
/* Card único na fileira final: centralizado no desktop, largura total no tablet */
@media (min-width: 941px) { .areas-grid > .area-card:last-child:nth-child(3n + 1) { grid-column: 2; } }
@media (max-width: 940px) and (min-width: 641px) { .areas-grid > .area-card:last-child:nth-child(odd) { grid-column: 1 / -1; } }
.area-card {
  position: relative;
  background: var(--marfim-raise);
  border: 1px solid var(--line);
  border-top: 3px solid var(--marinho);
  padding: 2.4rem 2.1rem 2.1rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.section-alt .area-card { background: var(--marfim); }
.area-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 26px 44px -30px rgba(27, 33, 43, 0.55);
  border-color: var(--line-strong);
  border-top-color: var(--marinho);
}
.area-kicker {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  min-height: 2.25rem;
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: 1.2rem;
}
.area-kicker svg { width: 13px; height: 13px; flex: none; }
.area-card h3 { font-size: 1.5rem; line-height: 1.3; font-weight: 600; }
.area-rule { height: 1px; background: var(--line); margin: 1.3rem 0 1.2rem; }
.area-card ul { list-style: none; margin: 0 0 1.8rem; padding: 0; font-size: 0.98rem; }
.area-card li { margin: 0.5rem 0; padding-left: 1.5rem; position: relative; }
.area-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.58em;
  width: 9px;
  height: 9px;
  background: var(--marinho);
  opacity: 0.75;
  clip-path: polygon(50% 0, 62% 21%, 82% 18%, 80% 38%, 100% 50%, 80% 62%, 82% 82%, 62% 79%, 50% 100%, 38% 79%, 18% 82%, 20% 62%, 0 50%, 20% 38%, 18% 18%, 38% 21%);
}
.area-card .btn { margin-top: auto; align-self: flex-start; padding: 0.65rem 1.4rem; font-size: 0.92rem; }
@media (max-width: 640px) { .area-kicker { min-height: 0; } }

/* ---------- Manifesto ---------- */
.manifesto {
  position: relative;
  background: linear-gradient(150deg, #333D4D 0%, var(--brand-navy) 55%, var(--brand-navy-ink) 100%);
  color: var(--brand-ivory);
  overflow: hidden;
  text-align: center;
}
.manifesto::after { content: ""; position: absolute; inset: 0; background-image: var(--grain); pointer-events: none; }
.manifesto-star {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 38rem;
  height: 38rem;
  opacity: 0.06;
  pointer-events: none;
}
.manifesto-inner { position: relative; z-index: 1; padding: 5.5rem 1.75rem; max-width: 52rem; margin: 0 auto; }
.manifesto blockquote {
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.6rem, 3.6vw, 2.5rem);
  line-height: 1.35;
}
.manifesto cite {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  margin-top: 1.8rem;
  font-family: var(--sans);
  font-style: normal;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(243, 239, 230, 0.6);
}
.manifesto cite::before, .manifesto cite::after {
  content: "";
  width: 2.4rem;
  height: 1px;
  background: rgba(243, 239, 230, 0.3);
}

/* ---------- Como trabalhamos ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2.5rem 2rem; position: relative; }
@media (max-width: 940px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding-top: 2.2rem; }
.step::before {
  content: "";
  position: absolute;
  top: 0.45rem;
  left: 2.2rem;
  right: 0;
  height: 1px;
  background: var(--line-strong);
}
.step:last-child::before { display: none; }
@media (max-width: 940px) { .step::before { display: none; } }
.step-mark {
  position: absolute;
  top: 0;
  left: 0;
  width: 15px;
  height: 15px;
  background: var(--marinho);
  clip-path: polygon(50% 0, 62% 21%, 82% 18%, 80% 38%, 100% 50%, 80% 62%, 82% 82%, 62% 79%, 50% 100%, 38% 79%, 18% 82%, 20% 62%, 0 50%, 20% 38%, 18% 18%, 38% 21%);
}
.step-num {
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--ink-2);
  display: block;
  margin-bottom: 0.4rem;
}
.step h3 { font-size: 1.35rem; margin-bottom: 0.35rem; }
.step p { font-size: 0.96rem; color: var(--ink-2); margin: 0; }

/* ---------- Equipe ---------- */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem; }
@media (max-width: 940px) { .team-grid { grid-template-columns: 1fr; } }
.person {
  background: var(--marfim);
  border: 1px solid var(--line);
  padding: 2.6rem 2rem 2.2rem;
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.person:hover { transform: translateY(-5px); box-shadow: 0 26px 44px -30px rgba(27, 33, 43, 0.5); }
.person-photo {
  position: relative;
  width: 132px;
  height: 132px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #3D4757, var(--marinho-deep));
  margin: 0 auto 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  outline: 1px solid var(--line-strong);
  outline-offset: 5px;
  overflow: hidden;
}
.person-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.person-img--nelson {
  object-position: 50% 50%;
  transform: none;
}
.person-img--nathalia {
  object-position: 50% 0;
}
.person-photo svg { width: 54px; height: 54px; }
.person h3 { font-size: 1.45rem; }
.person .oab {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin: 0.4rem 0 1rem;
}
.person p { font-size: 0.96rem; color: var(--ink-2); margin: 0; }
.person-rule { width: 3.2rem; height: 1px; background: var(--line-strong); margin: 1.1rem auto; }

/* ---------- FAQ ---------- */
.faq { max-width: 47rem; }
.faq details { border-bottom: 1px solid var(--line-strong); }
.faq details:first-of-type { border-top: 1px solid var(--line-strong); }
.faq summary {
  display: flex;
  align-items: baseline;
  min-height: 44px;
  gap: 1.1rem;
  padding: 1.35rem 0.3rem;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--ink-2);
  flex: none;
  width: 1.8rem;
  font-variant-numeric: tabular-nums;
}
.faq-q { font-family: var(--serif); font-size: 1.3rem; font-weight: 600; flex: 1; line-height: 1.3; }
.faq summary::after {
  content: "+";
  font-family: var(--serif);
  font-size: 1.6rem;
  line-height: 1;
  color: var(--ink-2);
  flex: none;
  transition: transform 0.25s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .faq-body { padding: 0 2.2rem 1.5rem 3.2rem; font-size: 0.99rem; color: var(--ink-2); }

/* ---------- Contato ---------- */
.contact-band {
  position: relative;
  background: linear-gradient(150deg, #333D4D 0%, var(--brand-navy) 55%, var(--brand-navy-ink) 100%);
  color: var(--brand-ivory);
  overflow: visible;
  isolation: isolate;
}
.contact-band::after { content: ""; position: absolute; inset: 0; background-image: var(--grain); pointer-events: none; }
.contact-star {
  position: absolute;
  right: 0;
  bottom: 0;
  width: min(30rem, 100%);
  height: auto;
  aspect-ratio: 1;
  opacity: 0.06;
  pointer-events: none;
}
.contact-band .container { position: relative; z-index: 1; }
.contact-band .eyebrow { color: rgba(243, 239, 230, 0.72); }
.contact-band h2 { color: var(--brand-ivory); font-size: clamp(1.9rem, 4vw, 2.8rem); }
.contact-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 3.5rem; align-items: start; }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-band p { color: rgba(243, 239, 230, 0.82); font-size: 1.08rem; }
.contact-list { list-style: none; margin: 0.6rem 0 0; padding: 0; }
.contact-list li {
  margin: 0;
  padding: 1.05rem 0.2rem;
  border-bottom: 1px solid rgba(243, 239, 230, 0.16);
  display: flex;
  gap: 0.9rem;
  align-items: baseline;
  font-size: 1rem;
  min-width: 0;
}
.contact-list li:first-child { border-top: 1px solid rgba(243, 239, 230, 0.16); }
.contact-list b {
  flex: none;
  width: 6.2rem;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(243, 239, 230, 0.75);
}
.contact-list a {
  color: var(--brand-ivory);
  flex: 1;
  min-width: 0;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.contact-list li > span {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.placeholder { opacity: 0.72; font-style: italic; }

/* ---------- Rodapé ---------- */
.site-footer {
  background: var(--brand-navy-ink);
  color: rgba(243, 239, 230, 0.78);
  font-size: 0.92rem;
  padding: 3.5rem 0 2.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.2rem;
  border-bottom: 1px solid rgba(243, 239, 230, 0.12);
}
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand { display: flex; align-items: center; gap: 0.7rem; min-width: 0; color: var(--brand-ivory); }
.footer-brand svg { width: 30px; height: 30px; }
.footer-brand .brand-name { font-size: 1.1rem; }
.footer-brand .brand-name small { color: rgba(243, 239, 230, 0.72); }
.footer-col h4 {
  font-family: var(--sans);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(243, 239, 230, 0.72);
  margin: 0 0 0.9rem;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin: 0.15rem 0; overflow-wrap: anywhere; }
.site-footer a {
  color: rgba(243, 239, 230, 0.9);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  min-width: 0;
  min-height: 44px;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.site-footer a:hover { text-decoration: underline; }
.footer-legal {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 1.6rem;
  font-size: 0.84rem;
  color: rgba(243, 239, 230, 0.72);
}
.footer-admin-link {
  color: rgba(243, 239, 230, 0.38);
  text-decoration: none;
  font-size: 0.8rem;
  transition: color 0.2s, opacity 0.2s;
  display: inline-block;
  min-height: auto;
}
.footer-admin-link:hover {
  color: var(--marfim);
  opacity: 0.95;
  text-decoration: underline;
}

/* ---------- WhatsApp flutuante ---------- */
.wa-float {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 80;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: var(--whatsapp);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 22px rgba(27, 33, 43, 0.4);
  transition: transform 0.18s ease;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 33px; height: 33px; fill: #fff; }
.wa-float:focus-visible {
  outline-color: #fff;
  box-shadow: 0 0 0 6px var(--marinho-ink), 0 8px 22px rgba(27, 33, 43, 0.4);
}

/* ---------- Reflow estreito / zoom ---------- */
@media (max-width: 600px) {
  .contact-grid { gap: 2.5rem; }
  .contact-list li {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
    padding: 0.9rem 0;
  }
  .contact-list b { width: auto; }
}

@media (max-width: 480px) {
  .container { padding-inline: 1rem; }

  .header-bar {
    gap: 0.5rem;
    padding: 0.75rem 1rem;
  }
  .brand { gap: 0.5rem; }
  .brand svg { width: 30px; height: 30px; }
  .brand-name { font-size: 1.02rem; letter-spacing: 0.025em; }
  .brand-name small { font-size: 0.52rem; letter-spacing: 0.34em; }
  .nav-toggle { flex: none; padding: 0.4rem 0.7rem; }
  .main-nav { padding: 0.35rem 1rem 1rem; }

  .hero-inner { padding: 5.25rem 1rem 4.5rem; }
  .hero h1 { font-size: clamp(2rem, 11.5vw, 2.55rem); }
  .hero-sub { margin: 1.35rem 0 2rem; }
  .hero-actions { gap: 0.75rem; }
  .hero-actions .btn { white-space: normal; text-align: center; }
  .hero-rule {
    gap: 0.7rem;
    margin-top: 3.25rem;
    font-size: 0.74rem;
    letter-spacing: 0.13em;
  }

  .section { padding: 4.5rem 0; }
  .section-head { margin-bottom: 2.35rem; }
  .area-card { padding: 2rem 1.25rem 1.7rem; }
  .person { padding: 2.25rem 1.25rem 2rem; }
  .manifesto-inner { padding: 4.5rem 1rem; }
  .faq summary { gap: 0.7rem; padding-inline: 0; }
  .faq-num { width: 1.45rem; }
  .faq .faq-body { padding: 0 0.25rem 1.5rem 2.15rem; }

  .footer-grid { gap: 1.75rem; }
  .footer-legal { flex-direction: column; }

  /* Há CTAs equivalentes no hero, menu e contato; ocultar evita cobrir leitura. */
  .wa-float { display: none; }
}

@media (max-width: 350px) {
  .container { padding-inline: 0.875rem; }
  .header-bar { padding-inline: 0.75rem; }
  .brand svg { width: 28px; height: 28px; }
  .brand-name { font-size: 0.96rem; letter-spacing: 0.01em; }
  .brand-name small { letter-spacing: 0.27em; }
  .nav-toggle { padding-inline: 0.6rem; font-size: 0.94rem; }
  .main-nav { padding-inline: 0.875rem; }
  .hero-inner { padding-inline: 0.875rem; }
  .btn { width: 100%; padding-inline: 1rem; }
  .area-card .btn { align-self: stretch; }
  .contact-list { margin-top: 0; }
  .footer-brand .brand-name { white-space: normal; }
}

@media (max-width: 280px) {
  .header-bar { flex-wrap: wrap; }
  .brand { width: 100%; }
  .nav-toggle { width: 100%; }
  .hero-rule::before,
  .hero-rule::after { display: none; }
}

@media (forced-colors: active) {
  a:focus-visible,
  button:focus-visible,
  summary:focus-visible { outline: 3px solid CanvasText; }
}

/* ============================================================
   Caderno de Artigos & Ensaios (Design System Editorial)
   ============================================================ */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
@media (max-width: 980px) {
  .articles-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .articles-grid { grid-template-columns: 1fr; }
}
.article-card {
  background: var(--marfim-raise);
  border: 1px solid var(--line);
  border-top: 3px solid var(--marinho);
  padding: 2.2rem 2rem 2rem;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.section-alt .article-card { background: var(--marfim); }
.article-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 42px -25px rgba(27, 33, 43, 0.45);
  border-color: var(--line-strong);
}
.card-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 1.2rem;
}
.card-kicker {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.card-kicker svg { width: 11px; height: 11px; fill: var(--marinho); }
.card-num {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-style: italic;
  color: var(--line-strong);
  font-weight: 600;
}
.article-card h3 {
  font-family: var(--serif);
  font-size: 1.55rem;
  line-height: 1.25;
  color: var(--marinho);
  margin-bottom: 0.8rem;
}
.article-card p {
  font-size: 0.95rem;
  line-height: 1.62;
  color: var(--ink-2);
  margin-bottom: 1.8rem;
  flex: 1;
}
.card-footer {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
}
.card-author-img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  outline: 1.5px solid var(--marinho);
  outline-offset: 2px;
}
.card-author-info {
  font-size: 0.82rem;
  line-height: 1.35;
}
.card-author-info strong {
  display: block;
  color: var(--marinho);
}
.card-author-info span {
  color: var(--ink-2);
  font-size: 0.76rem;
}

/* ============================================================
   MONTEIRO & QUINTÃO ADVOCACIA — BOTÃO DE TEMA (DARK / LIGHT)
   Quiet Luxury, tipografia nobre e animação suave
   ============================================================ */
.theme-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(44, 52, 65, 0.05);
  color: var(--marinho);
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  text-decoration: none;
  white-space: nowrap;
}
.theme-toggle-btn:hover {
  background: var(--marinho);
  color: var(--marfim);
  border-color: var(--marinho);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(27, 33, 43, 0.15);
}
.theme-toggle-btn:focus-visible {
  outline: 2px solid var(--marinho);
  outline-offset: 2px;
}
.theme-toggle-btn svg {
  width: 16px !important;
  height: 16px !important;
  max-width: 16px !important;
  max-height: 16px !important;
  flex-shrink: 0 !important;
  transition: transform 0.35s ease;
}
.theme-toggle-btn:hover svg {
  transform: rotate(20deg);
}

.theme-icon-sun { display: none !important; }
.theme-icon-moon { display: block !important; }

/* Variação compacta para cabeçalhos secundários */
.theme-toggle-btn--compact {
  min-height: 44px;
  padding: 0.35rem 0.85rem;
  font-size: 0.78rem;
  border-radius: 999px;
}

/* Variação apenas ícone para mobile */
.theme-toggle-btn--icon-only {
  min-height: 44px;
  min-width: 44px;
  padding: 0.45rem;
  justify-content: center;
  border-radius: 4px;
}
.theme-toggle-btn--icon-only .theme-toggle-label {
  display: none !important;
}

.header-actions-mobile {
  display: none !important;
  align-items: center;
  gap: 0.5rem;
}
@media (max-width: 1280px) {
  .header-actions-mobile {
    display: flex !important;
  }
  .main-nav .theme-toggle-btn--nav {
    margin-top: 0.75rem;
    justify-content: center;
    border-radius: 4px;
  }
}

/* Transições suaves ao alternar modos */
body, .site-header, .area-card, .article-card, .person, .facts, .section-alt, .editorial-audio-card, .author-colophon-section, .filter-bar-wrap, .hub-hero {
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

/* ============================================================
   MONTEIRO & QUINTÃO ADVOCACIA — MODO ESCURO / EDIÇÃO NOTURNA
   Tokens e Estilos Oficiais Ativados via [data-theme="dark"]
   Paleta: Marinho Noturno #141820 / Superfície #1B212B / Marfim #F3EFE6 / Ouro #C5A059
   ============================================================ */
html[data-theme="dark"],
[data-theme="dark"] {
  --marfim: #141820;
  --marfim-raise: #1B212B;
  --marfim-deep: #222936;
  --ink: #F3EFE6;
  --ink-2: #A3AAB8;
  --line: rgba(243, 239, 230, 0.12);
  --line-strong: rgba(243, 239, 230, 0.22);
  --marinho: #FAF8F2;
  --marinho-deep: #FFFFFF;
  --marinho-ink: #0E1217;
  --marinho-soft: #8E99AA;
  --gold-accent: #C5A059;
  --gold-text: #C5A059;
  --focus-light: #C5A059;
  --focus-dark: #C5A059;
}

/* Alternância de ícones do botão no Dark Mode */
[data-theme="dark"] .theme-icon-sun { display: block !important; }
[data-theme="dark"] .theme-icon-moon { display: none !important; }

[data-theme="dark"] .theme-toggle-btn {
  background: rgba(243, 239, 230, 0.08);
  border-color: rgba(243, 239, 230, 0.22);
  color: #C5A059;
}
[data-theme="dark"] .theme-toggle-btn:hover {
  background: #C5A059;
  color: #141820;
  border-color: #C5A059;
  box-shadow: 0 4px 14px rgba(197, 160, 89, 0.35);
}
[data-theme="dark"] .theme-toggle-btn:focus-visible {
  outline-color: #C5A059;
}

/* Body e elementos fundamentais */
[data-theme="dark"] body {
  background-color: #141820;
  color: #F3EFE6;
}
[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] h4 {
  color: #FAF8F2;
}
[data-theme="dark"] a:not(.btn):not(.brand):not(.filter-btn):not(.colophon-social a):not(.main-nav a):not(.site-header a):not(.skip-link) {
  color: #C5A059;
}

/* Header Institucional */
[data-theme="dark"] .site-header {
  background: rgba(20, 24, 32, 0.94);
  border-bottom-color: rgba(243, 239, 230, 0.08);
}
[data-theme="dark"] .site-header.scrolled {
  border-bottom-color: rgba(243, 239, 230, 0.16);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
}
[data-theme="dark"] .brand {
  color: #FAF8F2;
}
[data-theme="dark"] .brand svg {
  fill: #FAF8F2;
}
[data-theme="dark"] .brand-name small {
  color: #A3AAB8;
}
[data-theme="dark"] .site-header .main-nav a:not(.btn) {
  color: #E2DDD2;
}
[data-theme="dark"] .site-header .main-nav a:not(.btn):hover {
  color: #FFFFFF;
}
[data-theme="dark"] .main-nav a:not(.btn)::after {
  background: #C5A059;
}
[data-theme="dark"] .nav-toggle {
  border-color: rgba(243, 239, 230, 0.3);
  color: #F3EFE6;
}
@media (max-width: 1280px) {
  [data-theme="dark"] .main-nav {
    background: #171C24;
    border-bottom-color: rgba(243, 239, 230, 0.14);
  }
  [data-theme="dark"] .main-nav a:not(.btn) {
    border-bottom-color: rgba(243, 239, 230, 0.08);
  }
}

/* Botões institucionais */
[data-theme="dark"] .btn-solid {
  background: #C5A059;
  color: #12161E;
  border-color: #C5A059;
  box-shadow: 0 8px 24px -10px rgba(197, 160, 89, 0.45);
}
[data-theme="dark"] .btn-solid:hover {
  background: #D9B56F;
  border-color: #D9B56F;
  color: #0E1217;
  transform: translateY(-1px);
}
[data-theme="dark"] .btn-ghost {
  color: #F3EFE6;
  border-color: rgba(243, 239, 230, 0.35);
}
[data-theme="dark"] .btn-ghost:hover {
  background: rgba(243, 239, 230, 0.1);
  border-color: #F3EFE6;
  color: #FFFFFF;
}
[data-theme="dark"] .btn-inverse {
  background: #FAF8F2;
  color: #141820;
  border-color: #FAF8F2;
}
[data-theme="dark"] .btn-inverse:hover {
  background: #FFFFFF;
}

/* Faixa de fatos */
[data-theme="dark"] .facts {
  background: #181E27;
  border-bottom-color: rgba(243, 239, 230, 0.1);
}
[data-theme="dark"] .fact strong {
  color: #FAF8F2;
}
[data-theme="dark"] .fact small {
  color: #A3AAB8;
}
[data-theme="dark"] .fact + .fact {
  border-left-color: rgba(243, 239, 230, 0.12);
}
@media (max-width: 820px) {
  [data-theme="dark"] .fact + .fact {
    border-top-color: rgba(243, 239, 230, 0.12);
  }
}
[data-theme="dark"] .facts-geography {
  border-top-color: rgba(243, 239, 230, 0.1);
}
[data-theme="dark"] .facts-geography-label,
[data-theme="dark"] .facts-geography strong {
  color: #C5A059;
}

/* Seções e Cards de Áreas */
[data-theme="dark"] .section-alt {
  background: #181E28;
  border-top-color: rgba(243, 239, 230, 0.08);
  border-bottom-color: rgba(243, 239, 230, 0.08);
}
[data-theme="dark"] .area-card,
[data-theme="dark"] .section-alt .area-card {
  background: #1E2531;
  border-color: rgba(243, 239, 230, 0.12);
  border-top: 3px solid #C5A059;
  box-shadow: 0 12px 30px -15px rgba(0, 0, 0, 0.5);
}
[data-theme="dark"] .area-card:hover {
  border-color: rgba(243, 239, 230, 0.25);
  border-top-color: #D9B56F;
  box-shadow: 0 24px 48px -20px rgba(0, 0, 0, 0.7);
}
[data-theme="dark"] .area-kicker {
  color: #A3AAB8;
}
[data-theme="dark"] .area-kicker svg {
  fill: #C5A059;
}
[data-theme="dark"] .area-card h3 {
  color: #FAF8F2;
}
[data-theme="dark"] .area-rule {
  background: rgba(243, 239, 230, 0.12);
}
[data-theme="dark"] .area-card li::before {
  background: #C5A059;
}

/* Como trabalhamos (Steps) */
[data-theme="dark"] .step-mark {
  background: #C5A059;
}
[data-theme="dark"] .step::before {
  background: rgba(243, 239, 230, 0.16);
}
[data-theme="dark"] .step-num {
  color: #C5A059;
}
[data-theme="dark"] .step h3 {
  color: #FAF8F2;
}
[data-theme="dark"] .step p {
  color: #A3AAB8;
}

/* Equipe */
[data-theme="dark"] .person {
  background: #1E2531;
  border-color: rgba(243, 239, 230, 0.12);
  border-top: 3px solid #C5A059;
  box-shadow: 0 12px 30px -15px rgba(0, 0, 0, 0.5);
}
[data-theme="dark"] .person:hover {
  border-color: rgba(243, 239, 230, 0.25);
  border-top-color: #D9B56F;
  box-shadow: 0 24px 48px -20px rgba(0, 0, 0, 0.7);
}
[data-theme="dark"] .person h3 {
  color: #FAF8F2;
}
[data-theme="dark"] .person .oab {
  color: #C5A059;
}
[data-theme="dark"] .person-photo {
  outline-color: rgba(243, 239, 230, 0.2);
}
[data-theme="dark"] .person-rule {
  background: rgba(243, 239, 230, 0.12);
}

/* FAQ */
[data-theme="dark"] .faq details {
  border-color: rgba(243, 239, 230, 0.12);
}
[data-theme="dark"] .faq-q {
  color: #FAF8F2;
}
[data-theme="dark"] .faq-num,
[data-theme="dark"] .faq summary::after {
  color: #C5A059;
}
[data-theme="dark"] .faq .faq-body {
  color: #C8C0AC;
}

/* Rodapé Institucional */
[data-theme="dark"] .site-footer {
  background: #0E1217;
  border-top: 1px solid rgba(243, 239, 230, 0.1);
}
[data-theme="dark"] .footer-grid {
  border-bottom-color: rgba(243, 239, 230, 0.1);
}

/* ============================================================
   CADERNO DE ARTIGOS & BLOG HUB EM MODO ESCURO
   ============================================================ */
[data-theme="dark"] .hub-hero {
  background: #141820;
  border-bottom-color: rgba(243, 239, 230, 0.1);
}
[data-theme="dark"] .hub-eyebrow {
  color: #A3AAB8;
}
[data-theme="dark"] .hub-eyebrow svg {
  fill: #C5A059;
}
[data-theme="dark"] .hub-hero-title {
  color: #FAF8F2;
}
[data-theme="dark"] .hub-hero-title em {
  color: #E8DFCC;
}
[data-theme="dark"] .hub-hero-sub {
  color: #A3AAB8;
}
[data-theme="dark"] .hub-hero-meta {
  color: #C8C0AC;
}
[data-theme="dark"] .hub-hero-meta strong {
  color: #C5A059;
}
[data-theme="dark"] .hub-divider-star {
  color: rgba(243, 239, 230, 0.2);
}
[data-theme="dark"] .hub-divider-star::before,
[data-theme="dark"] .hub-divider-star::after {
  background: rgba(243, 239, 230, 0.12);
}
[data-theme="dark"] .hub-divider-star svg {
  fill: #C5A059;
  opacity: 1;
}

/* Barra de filtros de cadernos */
[data-theme="dark"] .filter-bar-wrap {
  background: #181E28;
  border-bottom-color: rgba(243, 239, 230, 0.1);
}
[data-theme="dark"] .filter-btn {
  color: #939CA8;
}
[data-theme="dark"] .filter-btn:hover,
[data-theme="dark"] .filter-btn.active {
  color: #FAF8F2;
}
[data-theme="dark"] .filter-btn.active::after {
  background: #C5A059;
}

/* Cards de Artigos */
[data-theme="dark"] .article-card,
[data-theme="dark"] .section-alt .article-card {
  background: #1E2531;
  border-color: rgba(243, 239, 230, 0.12);
  border-top: 3px solid #C5A059;
}
[data-theme="dark"] .article-card:hover {
  border-color: rgba(243, 239, 230, 0.25);
  border-top-color: #D9B56F;
  box-shadow: 0 20px 45px -20px rgba(0, 0, 0, 0.7);
}
[data-theme="dark"] .article-card h3 {
  color: #FAF8F2;
}
[data-theme="dark"] .article-card p {
  color: #A3AAB8;
}
[data-theme="dark"] .card-kicker {
  color: #A3AAB8;
}
[data-theme="dark"] .card-kicker svg {
  fill: #C5A059;
}
[data-theme="dark"] .card-num {
  color: rgba(197, 160, 89, 0.65);
}
[data-theme="dark"] .card-footer {
  border-top-color: rgba(243, 239, 230, 0.1);
}
[data-theme="dark"] .card-author-info strong {
  color: #FAF8F2;
}
[data-theme="dark"] .card-author-info span {
  color: #A3AAB8;
}
[data-theme="dark"] .card-author-img {
  outline-color: #C5A059;
}

/* ============================================================
   PÁGINAS INDIVIDUAIS DE ARTIGOS (LEITURA IMERSIVA)
   ============================================================ */
[data-theme="dark"] body.editorial-page {
  background: #141820;
  color: #E2DDD2;
}
[data-theme="dark"] .reading-progress-bar {
  background: #C5A059;
}
[data-theme="dark"] .editorial-folio {
  border-bottom-color: rgba(243, 239, 230, 0.12);
  color: #A3AAB8;
}
[data-theme="dark"] .editorial-folio a {
  color: #C5A059;
}
[data-theme="dark"] .editorial-folio a:hover {
  color: #D9B56F;
}

/* Hero com marca d'água no artigo */
[data-theme="dark"] .article-hero-watermark {
  background: #10141B;
}
[data-theme="dark"] .watermark-layer {
  mix-blend-mode: screen;
  opacity: 0.32;
  filter: invert(0.92) sepia(0.40) saturate(2.0) hue-rotate(5deg) brightness(1.20) contrast(1.25);
}
[data-theme="dark"] .article-kicker {
  color: #C5A059;
}
[data-theme="dark"] .article-kicker svg {
  fill: #C5A059;
}
[data-theme="dark"] .article-headline {
  color: #FAF8F2;
}
[data-theme="dark"] .article-sub {
  color: #C8C0AC;
}
[data-theme="dark"] .editorial-desk-card {
  background: #1B212B;
  border-color: rgba(243, 239, 230, 0.14);
  box-shadow: 0 16px 40px -15px rgba(0, 0, 0, 0.7);
}
[data-theme="dark"] .desk-author-name {
  color: #FAF8F2;
}
[data-theme="dark"] .desk-author-meta {
  color: #A3AAB8;
}
[data-theme="dark"] .watermark-artwork-credit {
  color: #8C96A6;
}

/* Espinha Narrativa / Texto do Artigo */
[data-theme="dark"] .essay-spine {
  color: #DCD5C5;
}
[data-theme="dark"] .essay-spine p.lead {
  color: #FAF8F2;
}
[data-theme="dark"] .essay-spine h2 {
  color: #FAF8F2;
  border-top-color: rgba(243, 239, 230, 0.12);
}
[data-theme="dark"] .dropcap-initial {
  color: #C5A059;
}
[data-theme="dark"] .dropcap-ornate {
  filter: invert(0.90) sepia(0.35) saturate(1.6) hue-rotate(8deg) brightness(1.10);
  border-color: rgba(197, 160, 89, 0.4);
  box-shadow: 0 8px 24px -6px rgba(0, 0, 0, 0.7);
}

/* Marginália Editorial */
[data-theme="dark"] .focus-thesis-card {
  background: #1C232E;
  border-color: #B38E5D;
  box-shadow: 0 14px 30px -12px rgba(0, 0, 0, 0.6);
}
[data-theme="dark"] .thesis-title {
  color: #FAF8F2;
}
[data-theme="dark"] .thesis-list {
  color: #D8D2C4;
}
[data-theme="dark"] .thesis-list li {
  border-bottom-color: rgba(243, 239, 230, 0.1);
}
[data-theme="dark"] .thesis-list strong {
  color: #FAF8F2;
}
[data-theme="dark"] .marginalia-quote {
  background: #10141B;
  color: #FAF8F2;
  border-left-color: #C5A059;
  box-shadow: 0 16px 36px -12px rgba(0, 0, 0, 0.7);
}

/* Colofão do Autor */
[data-theme="dark"] .author-colophon-section {
  background: #181E28;
  border-top-color: rgba(243, 239, 230, 0.1);
  border-bottom-color: rgba(243, 239, 230, 0.1);
}
[data-theme="dark"] .colophon-photo {
  border-color: #141820;
  outline-color: #C5A059;
}
[data-theme="dark"] .colophon-name {
  color: #FAF8F2;
}
[data-theme="dark"] .colophon-role {
  color: #C5A059;
}
[data-theme="dark"] .colophon-bio {
  color: #D8D2C4;
}
[data-theme="dark"] .colophon-social a {
  color: #C5A059;
}
[data-theme="dark"] .colophon-social a:hover {
  color: #D9B56F;
}
[data-theme="dark"] .oab-disclaimer {
  color: #8C96A6;
  border-top-color: rgba(243, 239, 230, 0.1);
}

/* Reprodutor de Áudio Editorial */
[data-theme="dark"] .editorial-audio-card {
  background: #1C232E;
  border-color: rgba(243, 239, 230, 0.12);
  border-left-color: #C5A059;
  box-shadow: 0 8px 24px -10px rgba(0, 0, 0, 0.5);
}
[data-theme="dark"] .editorial-audio-card:hover {
  border-color: rgba(243, 239, 230, 0.22);
  border-left-color: #D9B56F;
}
[data-theme="dark"] .btn-play-pause {
  background: #C5A059;
  color: #141820;
}
[data-theme="dark"] .btn-play-pause:hover {
  background: #D9B56F;
  color: #0E1217;
  box-shadow: 0 4px 16px rgba(197, 160, 89, 0.4);
}
[data-theme="dark"] .audio-label {
  color: #FAF8F2;
}
[data-theme="dark"] .audio-time-row {
  color: #A3AAB8;
}

[data-theme="dark"] .btn-speed-toggle {
  background: rgba(243, 239, 230, 0.08);
  border-color: rgba(243, 239, 230, 0.18);
  color: #F3EFE6;
}
[data-theme="dark"] .btn-speed-toggle:hover {
  background: rgba(243, 239, 230, 0.16);
  border-color: #C5A059;
  color: #FFFFFF;
}

/* Compartilhamento Editorial */
[data-theme="dark"] .btn-share-editorial,
[data-theme="dark"] .desk-btn-share {
  background: #1C232E;
  color: #F3EFE6;
  border-color: rgba(243, 239, 230, 0.18);
}
[data-theme="dark"] .btn-share-editorial:hover,
[data-theme="dark"] .desk-btn-share:hover {
  background: #C5A059;
  color: #141820;
  border-color: #C5A059;
}
[data-theme="dark"] .share-callout-inner {
  background: #1C232E;
  border-color: rgba(243, 239, 230, 0.12);
  border-left-color: #C5A059;
  box-shadow: 0 12px 30px -15px rgba(0, 0, 0, 0.6);
}
[data-theme="dark"] .share-callout-text h4 {
  color: #FAF8F2;
}
[data-theme="dark"] .share-callout-text p {
  color: #A3AAB8;
}
[data-theme="dark"] .btn-share-pill {
  background: rgba(243, 239, 230, 0.08);
  border-color: rgba(243, 239, 230, 0.15);
  color: #F3EFE6;
}
[data-theme="dark"] .btn-share-pill:hover {
  background: rgba(243, 239, 230, 0.18);
  color: #FFFFFF;
}
[data-theme="dark"] .share-modal-card {
  background: #191F2A;
  border-color: rgba(243, 239, 230, 0.15);
  color: #F3EFE6;
}
[data-theme="dark"] .share-modal-title {
  color: #FAF8F2;
}
[data-theme="dark"] .share-copy-input {
  background: #13171F;
  border-color: rgba(243, 239, 230, 0.15);
  color: #F3EFE6;
}


