/* LogicByte guides (/learn). Uses site-v2 tokens (--x-*). Prefix: lbl- */
.lbl { color: var(--x-ink); font-family: var(--x-text); background: #fff; }
.lbl h1, .lbl h2, .lbl h3 { font-family: var(--x-display); letter-spacing: -.02em; color: var(--x-ink); }
.lbl svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
.lbl :where(a:not(.lbx-btn)) { color: var(--x-blue); }
.lbl :focus-visible { outline: 3px solid rgba(36, 87, 230, .45); outline-offset: 2px; border-radius: 6px; }

.lbl-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 18px; font-size: 14px; color: var(--x-muted); }
.lbl-crumbs a { color: var(--x-ink-2); text-decoration: none; }
.lbl-crumbs a:hover { color: var(--x-blue); text-decoration: underline; }

/* ---------- hub ---------- */
.lbl-hub-hero { padding: 48px 0 34px; background: var(--x-paper); border-bottom: 1px solid var(--x-line); }
.lbl-hub-hero h1 { margin: 0; max-width: 18ch; font-size: clamp(34px, 5vw, 56px); line-height: 1.03; font-weight: 800; }
.lbl-hub-hero > .lbx-wrap > p { margin: 16px 0 0; max-width: 60ch; font-size: 18px; line-height: 1.55; color: var(--x-ink-2); }
.lbl-find { display: flex; align-items: center; gap: 10px; margin: 26px 0 0; max-width: 560px; min-height: 52px; padding: 0 16px; border: 1.5px solid var(--x-line); border-radius: 14px; background: #fff; color: var(--x-muted); }
.lbl-find:focus-within { border-color: var(--x-blue); box-shadow: 0 0 0 4px rgba(36, 87, 230, .12); }
.lbl-find input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: 500 16px var(--x-text); color: var(--x-ink); }
.lbl-skillchips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.lbl-skillchips button { display: inline-flex; align-items: center; gap: 7px; min-height: 38px; padding: 0 14px; border: 1px solid var(--x-line); border-radius: 999px; background: #fff; color: var(--x-ink-2); font: 600 14px var(--x-text); cursor: pointer; }
.lbl-skillchips button:hover { border-color: var(--x-blue); color: var(--x-blue); }
.lbl-skillchips button.is-on { background: var(--x-ink); border-color: var(--x-ink); color: #fff; }
.lbl-hub-body { padding: 26px 0 64px; }
.lbl-group { padding-top: 26px; }
.lbl-group[hidden] { display: none; }
.lbl-group h2 { margin: 0 0 12px; font-size: 22px; font-weight: 700; }
.lbl-group-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.lbl-group-head a { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; text-decoration: none; font-size: 15px; }
.lbl-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--x-line); }
.lbl-list li { border-bottom: 1px solid var(--x-line); }
.lbl-list li[hidden] { display: none; }
.lbl-list a { display: grid; grid-template-columns: 44px minmax(0, 1fr) 24px; align-items: center; gap: 16px; padding: 16px 6px; text-decoration: none; color: inherit; }
.lbl-list a:hover strong { color: var(--x-blue); }
.lbl-list a:hover .lbl-list-go { color: var(--x-blue); transform: translateX(3px); }
.lbl-list-skill { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--x-paper); border: 1px solid var(--x-line); }
.lbl-list-skill b { font: 800 12px var(--x-text); color: var(--x-muted); }
.lbl-list-text strong { display: block; font-size: 17px; font-weight: 700; line-height: 1.35; transition: color .15s; }
.lbl-list-text small { display: block; margin-top: 4px; color: var(--x-muted); font-size: 14.5px; line-height: 1.5; }
.lbl-list-go { color: var(--x-muted); transition: transform .15s var(--x-ease), color .15s; }
.lbl-posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.lbl-post { display: grid; gap: 8px; align-content: start; padding: 20px; border: 1px solid var(--x-line); border-radius: 16px; text-decoration: none; color: inherit; }
.lbl-post:hover { border-color: var(--x-blue); }
.lbl-post span { font-size: 13px; font-weight: 700; color: var(--x-blue); }
.lbl-post strong { font-size: 17px; line-height: 1.35; }
.lbl-post small { color: var(--x-muted); font-size: 14px; line-height: 1.5; }
.lbl-empty { padding: 20px 0; color: var(--x-ink-2); }

/* ---------- guide ---------- */
.lbl-preview-bar { padding: 10px 20px; background: #fff4e5; color: #7a4100; text-align: center; font-size: 14px; font-weight: 600; }
.lbl-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; align-items: start; padding: 36px 0 56px; }
.lbl-article { max-width: 760px; min-width: 0; }
.lbl-article h1 { margin: 0; font-size: clamp(30px, 4.2vw, 46px); line-height: 1.08; font-weight: 800; }
.lbl-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; margin: 16px 0 0; color: var(--x-muted); font-size: 14px; }
.lbl-meta-skill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 6px; border-radius: 999px; background: var(--x-sky); color: var(--x-blue-deep); font-weight: 700; }

/* The one loud element: the answer you came for. */
.lbl-answer { margin: 26px 0 8px; padding: 22px 24px 22px 26px; border-radius: 4px 16px 16px 4px; border-left: 6px solid var(--x-marigold); background: #fff8ee; }
.lbl-answer h2 { margin: 0 0 8px; font: 800 13px/1 var(--x-text); letter-spacing: .04em; color: #9a5300; }
.lbl-answer p { margin: 0; font-size: 19px; line-height: 1.6; color: var(--x-ink); }

.lbl-toc-m { display: none; margin: 18px 0 0; border: 1px solid var(--x-line); border-radius: 12px; padding: 12px 16px; }
.lbl-toc-m summary { cursor: pointer; font-weight: 700; }
.lbl-toc-m ol { margin: 10px 0 0; padding-left: 20px; line-height: 1.8; }

.lbl-prose { margin-top: 10px; font-size: 17px; line-height: 1.75; color: #24304b; overflow-wrap: break-word; }
.lbl-prose h2 { margin: 42px 0 12px; font-size: 28px; line-height: 1.2; font-weight: 700; scroll-margin-top: 90px; }
.lbl-prose h3 { margin: 28px 0 8px; font-size: 20px; line-height: 1.3; font-weight: 700; }
.lbl-prose p { margin: 0 0 16px; }
.lbl-prose ul, .lbl-prose ol { margin: 0 0 18px; padding-left: 24px; }
.lbl-prose li { margin: 6px 0; }
.lbl-prose code { padding: 2px 6px; border-radius: 6px; background: var(--x-sky); color: var(--x-blue-deep); font: 500 .88em var(--x-mono); }
.lbl-prose pre, .lbl-q pre { margin: 0 0 18px; padding: 16px 18px; border-radius: 12px; background: #0f1a36; color: #e6ecfb; overflow-x: auto; font: 14px/1.65 var(--x-mono); tab-size: 2; }
.lbl-prose pre code, .lbl-q pre code { padding: 0; background: none; color: inherit; font: inherit; }
.lbl-prose blockquote { margin: 0 0 18px; padding: 4px 0 4px 18px; border-left: 4px solid var(--x-blue); color: var(--x-ink-2); }
.lbl-prose img { max-width: 100%; height: auto; border-radius: 12px; margin: 6px 0 18px; }
.lbl-prose table { width: 100%; margin: 0 0 22px; border-collapse: collapse; font-size: 15.5px; line-height: 1.5; display: block; overflow-x: auto; }
.lbl-prose th, .lbl-prose td { padding: 11px 14px; border-bottom: 1px solid var(--x-line); text-align: left; vertical-align: top; }
.lbl-prose thead th { background: var(--x-paper); font-weight: 700; color: var(--x-ink); border-bottom: 2px solid var(--x-line); }
.lbl-prose tbody td:first-child { font-weight: 600; color: var(--x-ink); }
.lbl-prose a { text-underline-offset: 3px; }

.lbl-practice { margin-top: 46px; padding-top: 34px; border-top: 1px solid var(--x-line); scroll-margin-top: 90px; }
.lbl-practice h2, .lbl-faq h2, .lbl-related h2 { margin: 0; font-size: 28px; font-weight: 700; }
.lbl-practice-sub { margin: 8px 0 18px; color: var(--x-muted); }
.lbl-qs { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.lbl-q { padding: 20px; border: 1px solid var(--x-line); border-radius: 16px; background: #fff; }
.lbl-q-text { display: flex; gap: 12px; margin: 0 0 14px; font-weight: 600; font-size: 17px; line-height: 1.5; }
.lbl-q-n { flex: 0 0 28px; height: 28px; display: grid; place-items: center; border-radius: 8px; background: var(--x-ink); color: #fff; font: 700 14px var(--x-text); }
.lbl-q-img { max-width: 100%; height: auto; border-radius: 10px; margin: 0 0 14px; }
.lbl-q-opts { display: grid; gap: 8px; }
.lbl-q-opts button { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 10px; align-items: center; width: 100%; min-height: 46px; padding: 8px 12px; border: 1.5px solid var(--x-line); border-radius: 12px; background: #fff; color: var(--x-ink); font: 500 15.5px/1.45 var(--x-text); text-align: left; cursor: pointer; transition: border-color .15s, background .15s; }
.lbl-q-opts button:hover:not(:disabled) { border-color: var(--x-blue); background: #f7f9ff; }
.lbl-q-opts button b { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: var(--x-paper); font-weight: 700; }
.lbl-q-opts button:disabled { cursor: default; }
.lbl-q-opts button.is-right { border-color: var(--x-mint); background: #eaf8f2; }
.lbl-q-opts button.is-right b { background: var(--x-mint); color: #fff; }
.lbl-q-opts button.is-wrong { border-color: var(--x-rose); background: #fdeeee; }
.lbl-q-opts button.is-wrong b { background: var(--x-rose); color: #fff; }
.lbl-q-answer { margin-top: 12px; }
.lbl-q-answer summary { display: inline-flex; cursor: pointer; font-weight: 700; color: var(--x-blue); font-size: 15px; }
.lbl-q-answer p { margin: 10px 0 0; line-height: 1.6; color: var(--x-ink-2); }
.lbl-practice-more { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; font-weight: 700; text-decoration: none; }
.lbl-practice-more:hover { text-decoration: underline; }

.lbl-faq { margin-top: 46px; }
.lbl-faq details { border-bottom: 1px solid var(--x-line); }
.lbl-faq h2 + details { margin-top: 12px; border-top: 1px solid var(--x-line); }
.lbl-faq summary { position: relative; padding: 18px 40px 18px 0; cursor: pointer; list-style: none; font-weight: 700; font-size: 17px; line-height: 1.45; }
.lbl-faq summary::-webkit-details-marker { display: none; }
.lbl-faq summary::after { content: "+"; position: absolute; right: 6px; top: 14px; font: 400 26px/1 var(--x-text); color: var(--x-blue); transition: transform .2s var(--x-ease); }
.lbl-faq details[open] summary::after { transform: rotate(45deg); }
.lbl-faq details p { margin: 0 0 18px; line-height: 1.65; color: var(--x-ink-2); }

.lbl-related { margin-top: 46px; }
.lbl-related ul { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.lbl-related a { display: grid; gap: 6px; height: 100%; box-sizing: border-box; padding: 16px 18px; border: 1px solid var(--x-line); border-radius: 14px; text-decoration: none; color: inherit; }
.lbl-related a:hover { border-color: var(--x-blue); }
.lbl-related span { font-size: 13px; font-weight: 700; color: var(--x-blue); }
.lbl-related strong { line-height: 1.4; }

.lbl-aside { position: sticky; top: 92px; display: grid; gap: 18px; }
.lbl-toc h2 { margin: 0 0 10px; font: 700 14px var(--x-text); color: var(--x-muted); letter-spacing: 0; }
.lbl-toc ol { list-style: none; margin: 0; padding: 0 0 0 14px; border-left: 2px solid var(--x-line); display: grid; gap: 9px; }
.lbl-toc a { color: var(--x-ink-2); text-decoration: none; font-size: 14.5px; line-height: 1.4; }
.lbl-toc a:hover { color: var(--x-blue); }
.lbl-testcard { display: grid; gap: 10px; padding: 22px; border-radius: 18px; background: var(--x-ink); color: #fff; }
.lbl-testcard strong { font: 700 20px/1.25 var(--x-display); }
.lbl-testcard p { margin: 0; color: #c4cee6; font-size: 14.5px; line-height: 1.5; }
.lbl-testcard .lbx-btn { margin-top: 4px; }
.lbl a.lbl-testcard-link { color: #fff; font-size: 14px; text-align: center; text-underline-offset: 3px; }

@media (max-width: 1020px) {
  .lbl-layout { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .lbl-aside { position: static; }
  .lbl-toc { display: none; }
  .lbl-toc-m { display: block; }
  .lbl-article { max-width: none; }
}
@media (max-width: 760px) {
  .lbl-posts { grid-template-columns: 1fr; }
  .lbl-related ul { grid-template-columns: 1fr; }
  .lbl-answer p { font-size: 17.5px; }
  .lbl-prose { font-size: 16.5px; }
  .lbl-prose h2 { font-size: 24px; }
  .lbl-list a { grid-template-columns: 38px minmax(0, 1fr) 18px; gap: 12px; }
  .lbl-list-skill { width: 38px; height: 38px; }
  .lbl-q { padding: 16px; }
}
@media (prefers-reduced-motion: reduce) { .lbl * { transition: none !important; } }
.lbl-tools { margin: 14px 0 0; font-size: 15px; color: var(--x-ink-2); }
.lbl-tools a { font-weight: 700; }
