.lg-hero {
    background: var(--ar-bg-2);
    padding: 3.5rem 0 2.5rem;
    border-bottom: 1px solid var(--ar-border);
}
.lg-hero__label {
    font-size: var(--fz-legal);
    font-weight: var(--fw-bd);
    color: var(--ar-berry);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.lg-hero__h1 {
    font-family: var(--ff-head);
    font-size: var(--fz-h2);
    font-weight: var(--fw-bd);
    color: var(--ar-text);
    margin-bottom: 0.75rem;
    line-height: 1.18;
}
.lg-hero__meta {
    font-size: var(--fz-legal);
    font-weight: var(--fw-md);
    color: var(--ar-text-muted);
}

.lg-body {
    padding: 4rem 0 5rem;
    background: var(--ar-bg);
}
.lg-body__inner {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 4rem;
    align-items: start;
}
.lg-toc {
    position: sticky;
    top: 100px;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    background: var(--ar-bg-2);
    border: 1px solid var(--ar-border);
    border-radius: var(--radius);
    padding: 1.25rem;
}
.lg-toc__title {
    font-size: var(--fz-legal);
    font-weight: var(--fw-bd);
    color: var(--ar-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}
.lg-toc__link {
    font-size: var(--fz-legal);
    font-weight: var(--fw-sb);
    color: var(--ar-text-muted);
    text-decoration: none;
    padding: 0.3rem 0.5rem;
    border-radius: var(--radius-sm);
    transition: color 0.22s ease, background 0.22s ease;
    line-height: 1.45;
}
.lg-toc__link:hover {
    color: var(--ar-text);
    background: var(--ar-bg-3);
}
.lg-content {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}
.lg-section { scroll-margin-top: 100px; }
.lg-section__title {
    font-family: var(--ff-head);
    font-size: var(--fz-h4);
    font-weight: var(--fw-bd);
    color: var(--ar-text);
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--ar-border);
}
.lg-section p {
    font-size: var(--fz-sm);
    font-weight: var(--fw-md);
    color: var(--ar-text-soft);
    line-height: 1.78;
    margin-bottom: 1rem;
}
.lg-section p:last-child { margin-bottom: 0; }
.lg-section ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}
.lg-section ul li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: var(--fz-sm);
    font-weight: var(--fw-md);
    color: var(--ar-text-soft);
    line-height: 1.6;
}
.lg-section ul li::before {
    content: '—';
    color: var(--ar-berry);
    flex-shrink: 0;
    font-weight: var(--fw-bd);
}
.lg-section a {
    color: var(--ar-accent);
    text-underline-offset: 3px;
}
.lg-section a:hover { color: var(--ar-blush); }
.lg-disclaimer {
    background: var(--ar-bg-2);
    border: 1px solid var(--ar-border);
    border-radius: var(--radius);
    padding: 1.25rem 1.5rem;
    font-size: var(--fz-legal);
    font-weight: var(--fw-md);
    color: var(--ar-text-muted);
    line-height: 1.65;
}

@media (max-width: 899px) {
    .lg-body__inner { grid-template-columns: 1fr; gap: 2rem; }
    .lg-toc { position: static; flex-direction: row; flex-wrap: wrap; gap: 0.375rem; padding: 1rem; }
    .lg-toc__title { width: 100%; margin-bottom: 0; }
}

.lg-highlight {
    background: var(--ar-bg-2);
    border: 1px solid var(--ar-border);
    border-radius: var(--radius);
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
    margin-bottom: 1rem;
}
.lg-highlight__icon {
    width: 32px;
    height: 32px;
    background: var(--ar-bg-3);
    border: 1px solid var(--ar-border);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 0.1rem;
}
.lg-highlight__body {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}
.lg-highlight__title {
    font-size: var(--fz-sm);
    font-weight: var(--fw-bd);
    color: var(--ar-text);
    line-height: 1.35;
}
.lg-highlight__text {
    font-size: var(--fz-sm);
    font-weight: var(--fw-md);
    color: var(--ar-text-muted);
    line-height: 1.65;
    margin: 0;
}
.lg-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--ar-border);
    border-radius: var(--radius);
    margin-bottom: 1rem;
}
.lg-table {
    width: 100%;
    border-collapse: collapse;
}
.lg-table th {
    font-size: var(--fz-legal);
    font-weight: var(--fw-bd);
    color: var(--ar-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    background: var(--ar-bg-3);
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--ar-border);
}
.lg-table td {
    font-size: var(--fz-sm);
    font-weight: var(--fw-md);
    color: var(--ar-text-soft);
    padding: 0.875rem 1rem;
    border-bottom: 1px solid var(--ar-border);
    line-height: 1.5;
    vertical-align: top;
}
.lg-table tr:last-child td { border-bottom: none; }
.lg-table tr:nth-child(even) td { background: var(--ar-bg-2); }
.lg-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: var(--fz-legal);
    font-weight: var(--fw-bd);
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    white-space: nowrap;
}
.lg-badge--func {
    background: rgba(189,88,132,0.12);
    color: var(--ar-berry);
    border: 1px solid rgba(189,88,132,0.24);
}
.lg-badge--anal {
    background: rgba(235,126,168,0.12);
    color: var(--ar-coral);
    border: 1px solid rgba(235,126,168,0.24);
}