/* ============================================================
   Componentes das páginas informativas (guias)
   Usado por /aviao, /tigre, /dragao e /coelho.
   Depende dos tokens definidos em styles.css.
   ============================================================ */

.agebar {
  background: #070a0c; border-bottom: 1px solid var(--line-soft);
  font-size: .82rem; color: var(--muted);
}
.agebar__inner { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem; padding: .6rem 0; }
.badge18 {
  font-family: var(--display); font-size: .72rem; letter-spacing: .1em;
  color: var(--ink); background: var(--neon); padding: .2rem .5rem; border-radius: 5px; font-weight: 700;
}

.doc { padding: clamp(2.5rem, 6vw, 4rem) 0 clamp(3rem, 7vw, 5rem); }
.doc__head { max-width: 62ch; }
.doc h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 900; }
.doc__sub { color: var(--muted); font-size: 1.05rem; margin: 1.2rem 0 0; }
.doc__updated { color: var(--muted-2); font-size: .82rem; margin: 1.6rem 0 0; }

.toc {
  margin: 2.5rem 0 0; padding: 1.4rem 1.6rem;
  border: 1px solid var(--line-soft); border-radius: var(--radius); background: var(--panel-2);
}
.toc h2 { font-size: .85rem; letter-spacing: .16em; color: var(--cyan); }
.toc ol { margin: 1rem 0 0; padding-left: 1.2rem; color: var(--muted); display: grid; gap: .45rem; font-size: .95rem; }
.toc a:hover { color: var(--neon); }

.block { margin-top: clamp(2.8rem, 6vw, 4rem); scroll-margin-top: 90px; }
.block > h2 { font-size: clamp(1.4rem, 3.2vw, 2rem); }
.block p { color: var(--muted); max-width: 72ch; }
.block h3 { font-size: 1.05rem; margin: 1.8rem 0 .6rem; }
.block ul { color: var(--muted); max-width: 72ch; padding-left: 1.2rem; }
.block li { margin-bottom: .5rem; }
.block strong { color: var(--cream); }

.steps { list-style: none; padding: 0; margin: 1.6rem 0 0; display: grid; gap: .8rem; counter-reset: s; }
.steps li {
  counter-increment: s; position: relative; padding: 1.1rem 1.3rem 1.1rem 3.4rem;
  border: 1px solid var(--line-soft); border-radius: var(--radius); background: var(--panel-2);
  color: var(--muted); font-size: .95rem;
}
.steps li::before {
  content: counter(s, decimal-leading-zero); position: absolute; left: 1.2rem; top: 1.05rem;
  font-family: var(--display); color: var(--neon); font-size: .85rem;
}
.steps b { color: var(--cream); font-weight: 600; }

.note {
  border: 1px solid var(--line); border-left: 3px solid var(--neon);
  background: #54f4040a; border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.2rem 1.4rem; margin: 1.8rem 0 0; max-width: 72ch;
}
.note--warn { border-left-color: var(--red); background: #ffffff0d; }
.note p { margin: 0; color: var(--cream); font-size: .95rem; }
.note p + p { margin-top: .7rem; }
.note__title {
  font-family: var(--display); font-size: .75rem; letter-spacing: .14em;
  color: var(--neon); display: block; margin-bottom: .6rem;
}
.note--warn .note__title { color: var(--red); }

.tablewrap { overflow-x: auto; margin: 1.6rem 0 0; border: 1px solid var(--line-soft); border-radius: var(--radius); }
table { border-collapse: collapse; width: 100%; min-width: 460px; font-size: .93rem; }
th, td { text-align: left; padding: .85rem 1.1rem; border-bottom: 1px solid var(--line-soft); }
th { font-family: var(--display); font-size: .75rem; letter-spacing: .1em; color: var(--cyan); background: #ffffff08; }
td { color: var(--muted); }
td:last-child, th:last-child { text-align: right; }
tr:last-child td { border-bottom: 0; }
.table--last-strong tbody tr:last-child td { color: var(--cream); font-weight: 600; }

.nope { list-style: none; padding: 0; margin: 1.6rem 0 0; display: grid; gap: .7rem; max-width: 72ch; }
.nope li {
  padding: .9rem 1.2rem .9rem 2.6rem; position: relative;
  border: 1px solid var(--line-soft); border-radius: var(--radius);
  background: var(--panel-2); color: var(--muted); font-size: .95rem;
}
.nope li::before { content: "✕"; position: absolute; left: 1.1rem; color: var(--red); font-weight: 700; }

.faq details {
  border: 1px solid var(--line-soft); border-radius: var(--radius);
  background: var(--panel-2); margin-top: .7rem; overflow: hidden;
}
.faq summary {
  cursor: pointer; padding: 1.1rem 1.3rem; list-style: none;
  font-family: var(--display); font-size: .95rem; text-transform: uppercase;
  display: flex; justify-content: space-between; gap: 1rem; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--neon); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details[open] summary { color: var(--neon); }
.faq p { padding: 0 1.3rem 1.2rem; margin: 0; font-size: .95rem; }

.help { display: grid; grid-template-columns: repeat(3, 1fr); gap: .9rem; margin-top: 1.6rem; }
.help div { border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 1.3rem; background: var(--panel-2); }
.help h3 { margin: 0 0 .5rem; font-size: .98rem; }
.help p { margin: 0; font-size: .9rem; }
.help a { color: var(--cyan); text-decoration: underline; text-underline-offset: 3px; }
.help a:hover { color: var(--neon); }

/* Navegação entre guias */
.related { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: .9rem; margin-top: 1.6rem; }
.related a {
  border: 1px solid var(--line-soft); border-radius: var(--radius);
  background: var(--panel-2); padding: 1.3rem;
  transition: border-color .2s ease, transform .2s ease, background .2s ease;
}
.related a:hover { border-color: #54f40450; background: var(--panel); transform: translateY(-3px); }
.related strong {
  display: block; font-family: var(--display); font-size: .98rem;
  text-transform: uppercase; color: var(--cream); margin-bottom: .4rem;
}
.related span { color: var(--muted); font-size: .88rem; }

.legal { margin-top: clamp(3rem, 6vw, 4rem); padding-top: 1.8rem; border-top: 1px solid var(--line-soft); }
.legal p { color: var(--muted-2); font-size: .82rem; max-width: 80ch; }

@media (max-width: 720px) {
  .help { grid-template-columns: 1fr; }
  .related { grid-template-columns: 1fr; }
}
