/* ============================================================
   VIBRA — Documento interno (Plano de Aliança e Sociedade)
   Layout de leitura longa, estende o design system de /styles.css
   ============================================================ */

body { cursor: auto; }
.cursor { display: none; }

.doc-header {
  position: relative; z-index: 2; max-width: 900px; margin: 0 auto;
  padding: clamp(70px, 10vh, 120px) var(--gutter) clamp(40px, 6vw, 64px);
}
.doc-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .74rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: #F5A623; padding: 8px 14px; border: 1px solid rgba(245, 166, 35, .35);
  border-radius: 100px; background: rgba(245, 166, 35, .08); margin-bottom: 26px;
}
.doc-badge::before { content: "●"; font-size: .6rem; }
.doc-header h1 {
  font-family: var(--font-display); font-weight: 600; letter-spacing: -.02em;
  font-size: clamp(2rem, 4.6vw, 3.4rem); line-height: 1.08; max-width: 16ch;
}
.doc-header .subtitle {
  margin-top: 18px; font-size: 1.05rem; color: var(--muted); line-height: 1.5; max-width: 56ch;
}
.doc-header .subtitle b { color: var(--ink); font-weight: 600; }
.doc-meta { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 10px 28px; font-size: .84rem; color: var(--faint); }
.doc-meta span b { color: var(--muted); font-weight: 600; }

.doc-toc {
  position: relative; z-index: 2; max-width: 900px; margin: 0 auto;
  padding: 0 var(--gutter) clamp(40px, 6vw, 64px);
}
.doc-toc__box {
  border: 1px solid var(--hair-soft); border-radius: 18px; padding: 26px 28px;
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.006));
}
.doc-toc__title { font-size: .76rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--faint); margin-bottom: 16px; }
.doc-toc ol { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 28px; counter-reset: toc; }
.doc-toc li { list-style: none; }
.doc-toc a {
  display: flex; gap: 10px; font-size: .93rem; color: var(--muted); padding: 5px 0;
  transition: color .25s var(--ease);
}
.doc-toc a b { color: var(--faint); font-family: var(--font-display); font-weight: 600; flex-shrink: 0; }
.doc-toc a:hover { color: var(--ink); }

.doc { position: relative; z-index: 2; max-width: 780px; margin: 0 auto; padding: 0 var(--gutter) clamp(80px, 10vh, 140px); }

.doc section { padding-top: clamp(56px, 8vw, 92px); }
.doc section:first-child { padding-top: 0; }
.doc h2 {
  font-family: var(--font-display); font-weight: 600; letter-spacing: -.01em;
  font-size: clamp(1.5rem, 2.8vw, 2.1rem); line-height: 1.18;
  padding-bottom: 18px; margin-bottom: 30px; border-bottom: 1px solid var(--hair-soft);
  display: flex; align-items: baseline; gap: 14px;
}
.doc h2 .n { font-size: .55em; color: var(--faint); -webkit-text-stroke: 0; font-weight: 600; }
.doc h3 {
  font-family: var(--font-display); font-weight: 600; font-size: 1.22rem;
  margin: 34px 0 12px; color: var(--ink);
}
.doc h3 .n { color: var(--faint); margin-right: 8px; }
.doc p { color: var(--muted); line-height: 1.7; margin-bottom: 16px; font-size: 1.02rem; }
.doc p b, .doc li b, .doc td b { color: var(--ink); font-weight: 600; }
.doc ul, .doc ol.plain { margin: 4px 0 20px; padding-left: 0; }
.doc ul li, .doc ol.plain li {
  list-style: none; position: relative; padding-left: 22px; margin-bottom: 10px;
  color: var(--muted); line-height: 1.6; font-size: 1.01rem;
}
.doc ul li::before {
  content: ""; position: absolute; left: 0; top: 10px; width: 6px; height: 6px; border-radius: 50%;
  background: var(--grad);
}
.doc ol.plain { counter-reset: item; }
.doc ol.plain li { counter-increment: item; padding-left: 30px; }
.doc ol.plain li::before {
  content: counter(item); position: absolute; left: 0; top: -1px;
  font-family: var(--font-display); font-weight: 600; font-size: .85rem; color: var(--cyan);
  width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%;
  border: 1px solid rgba(30,217,238,.35); background: none;
}

.doc blockquote {
  margin: 28px 0; padding: 24px 28px; border-left: 3px solid transparent;
  border-image: var(--grad) 1; background: linear-gradient(90deg, rgba(30,217,238,.06), transparent 60%);
  font-family: var(--font-display); font-weight: 400; font-size: 1.12rem; line-height: 1.55; color: var(--ink);
}

.doc__note {
  margin: 22px 0; padding: 16px 20px; border-radius: 12px; font-size: .93rem; line-height: 1.55;
  color: var(--muted); border: 1px solid rgba(224,37,155,.25); background: rgba(224,37,155,.05);
}
.doc__note b { color: var(--pink); }

.doc-table-wrap { overflow-x: auto; margin: 22px 0 26px; border-radius: 14px; border: 1px solid var(--hair-soft); }
.doc table { width: 100%; border-collapse: collapse; font-size: .93rem; min-width: 480px; }
.doc thead th {
  text-align: left; font-family: var(--font-display); font-weight: 600; font-size: .8rem;
  letter-spacing: .04em; text-transform: uppercase; color: var(--faint);
  padding: 14px 18px; background: rgba(255,255,255,.03); border-bottom: 1px solid var(--hair-soft);
}
.doc tbody td { padding: 13px 18px; color: var(--muted); border-bottom: 1px solid var(--hair-soft); vertical-align: top; }
.doc tbody tr:last-child td { border-bottom: none; }
.doc tbody tr:hover td { background: rgba(255,255,255,.015); }

.doc hr { border: none; border-top: 1px solid var(--hair-soft); margin: 0; }

.doc-status {
  display: inline-flex; align-items: center; gap: 8px; font-size: .84rem; color: var(--cyan);
  padding: 5px 12px; border: 1px solid rgba(30,217,238,.3); border-radius: 100px; margin-bottom: 14px;
}

.doc-footer {
  position: relative; z-index: 2; max-width: 780px; margin: 0 auto; padding: 40px var(--gutter) 80px;
  border-top: 1px solid var(--hair-soft); display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 14px;
}
.doc-footer img { height: 32px; width: auto; opacity: .7; }
.doc-footer span { font-size: .82rem; color: var(--faint); }

@media (max-width: 640px) {
  .doc-toc ol { grid-template-columns: 1fr; }
  .doc h2 { flex-direction: column; gap: 4px; }
}
