/*
 * Útmutató (#71) és a fejléc linkjei. Csak a style.css tokenjeit és alaposztályait használja (.card, .notice, .hint,
 * .back), saját színt nem vezet be.
 */

/* Fejléc: Útmutató-link a bejelentkezett és a belépés nélküli látogatónak is */
.appbar-links { display: flex; align-items: center; gap: 4px; min-width: 0; }
.appbar-nav a {
  display: flex; align-items: center; min-height: var(--tap); padding: 0 10px;
  font-size: 14px; font-weight: 600; text-decoration: none; color: var(--muted); white-space: nowrap;
  border-radius: var(--radius);
}
.appbar-nav a:hover, .appbar-nav a[aria-current="page"] { color: var(--text); }
.appbar-nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; text-decoration-color: var(--honey); }
.appbar-links .appbar-user a { max-width: 36vw; }

/* Oldal */
.guide { max-width: 720px; margin: 0 auto; }
.guide-lead { margin: 0 0 16px; font-size: 17px; color: var(--muted); }

.guide-toc h2 { font-size: 15px; margin: 0 0 4px; color: var(--muted); letter-spacing: 0; }
.guide-toc ol { margin: 0; padding-left: 22px; }
.guide-toc li { padding: 0; }
.guide-toc a { display: inline-flex; align-items: center; min-height: var(--tap); font-weight: 600; }

.guide-section h2 { margin: 0 0 8px; scroll-margin-top: 16px; }
.guide-section h2:focus { outline: none; }
.guide-section h2:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 4px; }
.guide-section h3 { font-size: 16px; margin: 22px 0 6px; }
.guide-section p { margin: 0 0 12px; line-height: 1.55; }
.guide-section p:last-child { margin-bottom: 0; }
.guide-section .notice { margin-bottom: 12px; }
.guide-section .hint { font-size: 14px; }

.guide .steps { margin: 0 0 12px; padding-left: 22px; }
.guide .steps > li { margin: 0 0 10px; padding-left: 4px; line-height: 1.55; }
.guide .steps > li::marker { font-weight: 800; color: var(--accent); }

.guide-copy { margin: 6px 0; }
.guide-copy code {
  display: inline-block; max-width: 100%; padding: 8px 12px; overflow-wrap: anywhere;
  background: var(--sunken); border: 1px solid var(--border); border-radius: var(--radius);
  font-size: 15px; font-weight: 600; user-select: all;
}
.guide code { font-size: .92em; overflow-wrap: anywhere; }

.guide-example {
  margin: 0 0 12px; padding: 10px 16px; background: var(--sunken);
  border-left: 3px solid var(--honey); border-radius: 0 var(--radius) var(--radius) 0;
}
.guide-example p { margin: 0; font-style: italic; }

.scopes { margin: 0 0 12px; display: grid; gap: 4px 0; }
.scopes dt { font-weight: 700; margin-top: 8px; }
.scopes dt:first-child { margin-top: 0; }
.scopes dd { margin: 0; line-height: 1.55; }

@media (min-width: 640px) {
  .guide-lead { font-size: 18px; }
}

.guide .steps ul { margin: 6px 0 0; padding-left: 18px; }
.guide .steps ul li { margin: 0 0 6px; }
