/* ============================================================
   Página de tutorial (como-jogar-fivem-enhanced)
   Reaproveita tokens e componentes de style.css.
   ============================================================ */

/* Cabeçalho */
.g-hero {
  padding: 140px 0 64px; border-bottom: 1px solid var(--line);
  background:
    radial-gradient(ellipse 50% 80% at 85% 0%, rgba(241,229,66,.07), transparent 70%),
    var(--ink);
}
.crumbs { display: flex; gap: .6rem; flex-wrap: wrap; margin-bottom: 1.6rem; font: 500 .78rem/1.4 var(--f-mono); color: var(--paper-mute); }
.crumbs a { color: var(--paper-dim); text-decoration: none; }
.crumbs a:hover { color: var(--lamp); }
.g-hero__title {
  margin: 1.2rem 0 0; max-width: 16ch;
  font: 800 clamp(2.8rem, 7vw, 5.6rem)/.95 var(--f-display); text-transform: uppercase;
}
.g-hero__title span { color: transparent; -webkit-text-stroke: 1.5px var(--paper); }
.g-hero__lead { margin: 1.6rem 0 0; max-width: 62ch; color: var(--paper-dim); font-size: 1.12rem; }
.g-meta { list-style: none; margin: 2.2rem 0 0; padding: 0; display: flex; flex-wrap: wrap; border: 1px solid var(--line); width: fit-content; max-width: 100%; }
.g-meta li { padding: 12px 20px; border-left: 1px solid var(--line); font-size: .92rem; color: var(--paper); }
.g-meta li:first-child { border-left: 0; }
.g-meta b { display: block; margin-bottom: .3rem; font: 500 .64rem/1 var(--f-mono); letter-spacing: .18em; text-transform: uppercase; color: var(--paper-mute); }

/* Layout */
.g-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); padding: 64px 0 100px; }
.toc { position: sticky; top: 96px; align-self: start; }
.toc__title { margin: 0 0 1rem; font: 500 .7rem/1 var(--f-mono); letter-spacing: .2em; text-transform: uppercase; color: var(--paper-mute); }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.toc a {
  display: block; padding: 7px 0 7px 16px; margin-left: -1px; border-left: 1px solid transparent;
  color: var(--paper-dim); text-decoration: none; font-size: .9rem; transition: color .2s, border-color .2s;
}
.toc a:hover { color: var(--paper); }
.toc a.is-active { color: var(--paper); border-color: var(--lamp); }
.toc__cta { margin-top: 1.6rem; width: 100%; }

/* Artigo */
.g-article { max-width: 760px; min-width: 0; }
.g-sec { padding-bottom: 3.2rem; margin-bottom: 3.2rem; border-bottom: 1px solid var(--line); scroll-margin-top: 96px; }
.g-sec:last-of-type { border-bottom: 0; }
.g-article h2 { margin: 0 0 1.2rem; font: 800 clamp(1.9rem, 3.6vw, 2.6rem)/1.02 var(--f-display); text-transform: uppercase; letter-spacing: .01em; }
.g-article h3 { margin: 2rem 0 .8rem; font: 700 1.3rem/1.1 var(--f-display); text-transform: uppercase; letter-spacing: .05em; }
.g-article p { margin: 0 0 1.1rem; color: var(--paper-dim); }
.g-article strong { color: var(--paper); font-weight: 600; }
.g-article em { color: var(--paper); }
.g-article a { color: var(--paper); text-decoration-color: var(--lamp); text-underline-offset: 3px; }
.g-article a:hover { color: var(--lamp); }
.g-article code, .g-article kbd {
  font: 500 .86em/1 var(--f-mono); padding: .2em .45em; border-radius: 3px;
  background: var(--ink-3); border: 1px solid var(--line-2); color: var(--paper); white-space: nowrap;
}
.g-article kbd { border-bottom-width: 2px; }

.step-sec { position: relative; }
.step-sec__n { display: block; margin-bottom: .6rem; font: 800 3.6rem/1 var(--f-display); color: transparent; -webkit-text-stroke: 1px var(--paper-mute); }
.step-sec--epic .step-sec__n { -webkit-text-stroke-color: var(--lamp); }

.checks { list-style: none; margin: 0 0 1.4rem; padding: 0; counter-reset: c; }
.checks li { position: relative; padding: 12px 0 12px 46px; border-top: 1px solid var(--line); color: var(--paper-dim); counter-increment: c; }
.checks li:last-child { border-bottom: 1px solid var(--line); }
.checks li::before {
  content: counter(c); position: absolute; left: 0; top: 11px; width: 28px; height: 28px; display: grid; place-items: center;
  font: 600 .78rem/1 var(--f-mono); color: var(--ink); background: var(--paper); border-radius: 2px;
}

.quick { margin: 0; padding-left: 1.2rem; display: grid; gap: .55rem; color: var(--paper-dim); }
.quick li::marker { color: var(--lamp); font-family: var(--f-mono); }

.callout { margin: 1.6rem 0; padding: 20px 22px; border: 1px solid var(--line-2); background: var(--ink-2); }
.callout p:last-child { margin-bottom: 0; }
.callout__label { margin: 0 0 .7rem !important; font: 500 .7rem/1 var(--f-mono) !important; letter-spacing: .2em; text-transform: uppercase; color: var(--paper) !important; }
.callout--lamp { border-color: rgba(241,229,66,.4); background: linear-gradient(135deg, var(--lamp-soft), transparent 60%), var(--ink-2); }
.callout--lamp .callout__label { color: var(--lamp) !important; }
.callout--warn { border-left: 3px solid var(--lamp); }

.note { font-size: .93rem; padding-left: 14px; border-left: 2px solid var(--line-2); }

.cards3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); margin: 1.4rem 0 1.6rem; }
.mini { background: var(--ink-2); padding: 18px; }
.mini h3 { margin: 0 0 .5rem !important; font-size: 1.1rem !important; }
.mini p { margin: 0; font-size: .92rem; }

.table-wrap { overflow-x: auto; margin: 1.2rem 0 1.4rem; border: 1px solid var(--line); }
.specs { width: 100%; border-collapse: collapse; font-size: .93rem; min-width: 520px; }
.specs th, .specs td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.specs thead th { font: 500 .7rem/1 var(--f-mono); letter-spacing: .18em; text-transform: uppercase; color: var(--paper-mute); background: var(--ink-2); }
.specs tbody th { font: 700 1rem/1.2 var(--f-display); letter-spacing: .08em; text-transform: uppercase; color: var(--paper); white-space: nowrap; }
.specs td { color: var(--paper-dim); }
.specs td:last-child { color: var(--paper); }
.specs tr:last-child th, .specs tr:last-child td { border-bottom: 0; }

.errors details { border-top: 1px solid var(--line-2); }
.errors details:last-child { border-bottom: 1px solid var(--line-2); }
.errors summary {
  list-style: none; cursor: pointer; padding: 18px 0; display: flex; justify-content: space-between; gap: 1rem;
  font: 600 1.02rem/1.35 var(--f-body); color: var(--paper);
}
.errors summary::-webkit-details-marker { display: none; }
.errors summary::after { content: "+"; font: 400 1.4rem/1 var(--f-mono); color: var(--paper-mute); transition: transform .3s var(--ease), color .3s; }
.errors details[open] summary::after { transform: rotate(45deg); color: var(--lamp); }
.errors details p { margin: 0 0 18px; }

.g-cta {
  display: grid; grid-template-columns: auto 1fr; gap: 1.2rem 1.6rem; align-items: center;
  padding: 32px; margin: 1rem 0 2.4rem; border: 1px solid rgba(241,229,66,.35);
  background: linear-gradient(120deg, var(--lamp-soft), transparent 55%), var(--ink-2);
}
.g-cta img { border-radius: 6px; }
.g-cta h2 { font-size: clamp(1.6rem, 3vw, 2.1rem) !important; margin-bottom: .5rem !important; }
.g-cta p { margin: 0; }
.g-cta__btns { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }

.sources { font-size: .82rem !important; color: var(--paper-mute) !important; }
.sources a { color: var(--paper-dim) !important; }

@media (max-width: 980px) {
  .g-layout { grid-template-columns: 1fr; padding-top: 32px; }
  .toc { position: static; border: 1px solid var(--line); padding: 20px; background: var(--ink-2); }
  .toc ol { columns: 2; column-gap: 24px; }
  .toc__cta { display: none; }
}
@media (max-width: 640px) {
  .g-hero { padding-top: 110px; }
  .g-meta { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .g-meta li:nth-child(3) { border-left: 0; }
  .g-meta li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .toc ol { columns: 1; }
  .cards3 { grid-template-columns: 1fr; }
  .g-cta { grid-template-columns: 1fr; padding: 24px; }
  .g-cta__btns .btn { flex: 1; }
  .g-article code { white-space: normal; }
}

/* Botões dentro do índice e do artigo não herdam o estilo de link */
.toc a.btn, .g-article a.btn { display: inline-flex; padding: 0 1.2em; margin-left: 0; border-left: 0; text-decoration: none; }
.toc a.btn--primary, .g-article a.btn--primary, .g-article a.btn--primary:hover { color: var(--ink); }
.g-article a.btn { padding: 0 1.6em; }
.g-article a.btn--ghost { color: var(--paper); border: 1px solid var(--line-2); }
.g-article a.btn--ghost:hover { color: var(--paper); border-color: var(--paper); }
@media (max-width: 980px) { .toc .toc__cta { display: none; } }
