.hero.world.lg-hero { min-height: 0; padding: 144px 0 56px; justify-content: flex-start; }
.lg-hero .wrap { max-width: var(--wrap); }
.lg-kicker { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px; padding: 6px 12px; border-radius: 999px; background: var(--accent-soft); border: 1px solid rgba(110, 123, 255, .32); color: #D7DBFF; font: 600 13px/1 var(--f-text); letter-spacing: .12em; text-transform: uppercase; }
.lg-kicker svg { width: 16px; height: 16px; color: var(--accent); }
.lg-hero h1 { font-weight: 800; font-size: 50px; line-height: 1.08; letter-spacing: -.02em; }
.lg-lead { margin-top: 18px; max-width: 720px; font-size: 18px; color: #D9DCF0; }
.lg-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 24px; color: var(--muted); font-size: 14.5px; }
.lg-meta time { color: #fff; font-weight: 600; }
.lg-switch { display: inline-flex; gap: 6px; padding: 4px; background: var(--card); border: 1px solid var(--line); border-radius: 999px; }
.lg-switch a { white-space: nowrap; padding: 8px 16px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--text); transition: color .15s, background .15s; }
.lg-switch a:hover { color: #fff; }
.lg-switch a[aria-current="page"] { background: var(--accent); color: #0A0C22; }

.lg-body { padding: 24px 0 96px; }
.lg-grid { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 56px; align-items: start; }

.lg-toc { position: sticky; top: 96px; max-height: calc(100vh - 112px); overflow: auto; padding: 18px 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); }
.lg-toc summary { list-style: none; cursor: default; font: 700 13px/1 var(--f-text); letter-spacing: .1em; text-transform: uppercase; color: #fff; margin-bottom: 14px; }
.lg-toc summary::-webkit-details-marker { display: none; }
.lg-toc summary svg { display: none; }
.lg-toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: toc; }
.lg-toc li { counter-increment: toc; }
.lg-toc a { display: grid; grid-template-columns: 26px 1fr; gap: 4px; padding: 6px 10px; border-radius: 8px; font-size: 13.5px; line-height: 1.35; color: var(--text); transition: color .15s, background .15s; }
.lg-toc a::before { content: counter(toc) "."; color: var(--muted); font-variant-numeric: tabular-nums; }
.lg-toc a:hover { color: #fff; background: rgba(255, 255, 255, .04); }
.lg-toc a.is-on { color: #fff; background: var(--accent-soft); }
.lg-toc a.is-on::before { color: var(--accent); }

.lg-doc { min-width: 0; max-width: 780px; font-size: 16.5px; line-height: 1.7; color: var(--text); }
.lg-doc section { scroll-margin-top: 96px; padding-top: 8px; }
.lg-doc section + section { margin-top: 40px; padding-top: 40px; border-top: 1px solid var(--line); }
.lg-doc h2 { display: flex; gap: 12px; align-items: baseline; font-size: 26px; line-height: 1.25; margin-bottom: 16px; }
.lg-doc h2 .n { flex: none; color: var(--accent); font-variant-numeric: tabular-nums; }
.lg-doc h3 { font-size: 18.5px; line-height: 1.35; margin: 26px 0 10px; }
.lg-doc p { margin: 0 0 14px; }
.lg-doc ul, .lg-doc ol { margin: 0 0 16px; padding-left: 22px; }
.lg-doc li { margin-bottom: 8px; }
.lg-doc li::marker { color: var(--accent); }
.lg-doc strong { color: #fff; font-weight: 600; }
.lg-doc a { color: #AEB6FF; text-decoration: underline; text-decoration-color: rgba(174, 182, 255, .4); text-underline-offset: 3px; overflow-wrap: anywhere; }
.lg-doc a:hover { color: #fff; text-decoration-color: #fff; }
.lg-note { margin: 0 0 18px; padding: 16px 18px; background: var(--card); border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 10px; }
.lg-note p:last-child { margin-bottom: 0; }
.lg-todo { display: inline; padding: 1px 6px; border-radius: 6px; background: rgba(250, 191, 38, .16); border: 1px dashed rgba(250, 191, 38, .75); color: #FFD76A; font-size: .92em; font-weight: 600; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.lg-table { width: 100%; margin: 0 0 18px; border-collapse: collapse; font-size: 15px; line-height: 1.55; }
.lg-table th, .lg-table td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.lg-table th { color: #fff; font-weight: 600; background: var(--card); }
.lg-table td:first-child { color: #fff; }
.lg-table code { font-size: 13.5px; color: #D7DBFF; overflow-wrap: anywhere; }
.lg-contact { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin: 6px 0 0; }
.lg-contact a { display: flex; align-items: center; gap: 12px; padding: 16px 18px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; color: #fff; text-decoration: none; font-weight: 600; font-size: 15px; transition: border-color .15s, transform .2s; }
.lg-contact a:hover { border-color: #3A4180; transform: translateY(-2px); color: #fff; }
.lg-contact svg { width: 20px; height: 20px; flex: none; color: var(--accent); }
.lg-contact span { display: block; color: var(--muted); font-weight: 400; font-size: 13.5px; overflow-wrap: anywhere; }
.lg-addr { margin-top: 18px; color: var(--muted); }
.lg-top { display: inline-flex; align-items: center; gap: 6px; margin-top: 40px; color: var(--muted); font-size: 14px; }
.lg-top:hover { color: #fff; }
.lg-top svg { width: 16px; height: 16px; transform: rotate(180deg); }
.foot-list a.ab-up { text-transform: uppercase; }

@media (max-width: 960px) {
  .hero.world.lg-hero { padding: 116px 0 36px; }
  .lg-hero h1 { font-size: 38px; }
  .lg-lead { font-size: 16.5px; }
  .lg-grid { grid-template-columns: 1fr; gap: 28px; }
  .lg-toc { position: static; max-height: none; padding: 0; overflow: visible; }
  .lg-toc summary { display: flex; align-items: center; justify-content: space-between; min-height: 52px; margin: 0; padding: 0 18px; cursor: pointer; }
  .lg-toc summary svg { display: block; width: 18px; height: 18px; color: var(--accent); transition: transform .2s; }
  .lg-toc[open] summary svg { transform: rotate(180deg); }
  .lg-toc ol { padding: 0 10px 14px; }
  .lg-toc a { padding: 10px; min-height: 44px; align-items: center; }
  .lg-doc { font-size: 16px; }
  .lg-doc h2 { font-size: 22px; }
  .lg-doc section + section { margin-top: 32px; padding-top: 32px; }
}
@media (max-width: 640px) {
  .lg-hero h1 { font-size: 32px; }
  .lg-switch a { padding: 8px 12px; font-size: 13px; }
  .lg-body { padding-bottom: 72px; }
  .lg-table thead { display: none; }
  .lg-table, .lg-table tbody, .lg-table tr, .lg-table td { display: block; width: 100%; }
  .lg-table tr { padding: 12px 14px; margin-bottom: 10px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; }
  .lg-table td { padding: 4px 0; border: 0; }
  .lg-table td[data-k]::before { content: attr(data-k); display: block; color: var(--muted); font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; }
}
@media (prefers-reduced-motion: reduce) {
  .lg-contact a, .lg-toc summary svg { transition: none; }
}
