.league-guide-page {
    --guide-ink: #17243a;
    --guide-muted: #52647a;
    --guide-line: #d7e1eb;
    --guide-green: #456332;
    --guide-pale: #f2f6ee;
    background: #f6f8fb;
    color: var(--guide-ink);
}

.lg-wrap { width: min(1380px, calc(100% - 32px)); margin: 24px auto 48px; }
.lg-hero { padding: clamp(22px, 4vw, 42px); color: #fff; background: linear-gradient(120deg, #101d32, #1d3148); border-radius: 20px; }
.lg-eyebrow { color: #b7d496; font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.lg-hero h1 { max-width: 900px; margin: 8px 0 12px; font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.08; }
.lg-hero p { max-width: 850px; color: #d1dbea; line-height: 1.65; }
.lg-hero a { color: #d5efae; }
.lg-role-paths { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 20px; }
.lg-role-paths a, .lg-action { display: inline-flex; min-height: 42px; align-items: center; padding: 8px 13px; border: 1px solid #78916c; border-radius: 9px; color: #fff; background: #263d32; font-weight: 750; text-decoration: none; }
.lg-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); align-items: start; gap: 20px; margin-top: 18px; }
.lg-toc { position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow: auto; padding: 16px; background: #fff; border: 1px solid var(--guide-line); border-radius: 14px; }
.lg-toc h2 { margin: 0 0 10px; font-size: 1rem; }
.lg-toc details summary { min-height: 42px; display: flex; align-items: center; cursor: pointer; font-weight: 800; }
.lg-toc nav { display: grid; gap: 3px; }
.lg-toc nav a { min-height: 38px; display: flex; align-items: center; padding: 6px 8px; border-radius: 7px; color: #33465e; font-size: .9rem; text-decoration: none; }
.lg-toc nav a:hover, .lg-toc nav a:focus-visible { background: var(--guide-pale); color: #263f1d; }
.lg-content { min-width: 0; }
.lg-search-card, .lg-chapter { padding: clamp(16px, 2.5vw, 26px); background: #fff; border: 1px solid var(--guide-line); border-radius: 14px; }
.lg-search-card { margin-bottom: 14px; }
.lg-search-row { display: flex; align-items: end; gap: 12px; }
.lg-search-row label { display: grid; flex: 1; gap: 5px; font-weight: 800; }
.lg-search-row input { width: 100%; min-height: 44px; padding: 9px 12px; border: 1px solid #9aaabd; border-radius: 9px; color: var(--guide-ink); background: #fff; }
.lg-progress { height: 8px; margin-top: 12px; overflow: hidden; border-radius: 20px; background: #e8edf2; }
.lg-progress span { display: block; width: 0; height: 100%; background: #769656; transition: width .15s linear; }
.lg-search-status { min-height: 1.5em; margin: 7px 0 0; color: var(--guide-muted); font-size: .88rem; }
.lg-chapter { margin-bottom: 14px; scroll-margin-top: 16px; }
.lg-chapter h2 { margin: 0 0 12px; font-size: clamp(1.35rem, 3vw, 1.8rem); line-height: 1.2; }
.lg-chapter h3 { margin: 22px 0 8px; font-size: 1.12rem; }
.lg-chapter p, .lg-chapter li { line-height: 1.65; }
.lg-chapter li { margin: 5px 0; }
.lg-chapter a { color: #315522; text-underline-offset: 3px; }
.lg-note { margin: 12px 0; padding: 13px 15px; border-left: 4px solid #769656; border-radius: 8px; background: #f2f6ee; line-height: 1.6; }
.lg-note.warn { border-color: #b87916; background: #fff8e9; }
.lg-note.limit { border-color: #64748b; background: #f1f5f9; }
.lg-table-wrap { overflow-x: auto; }
.lg-table { width: 100%; border-collapse: collapse; }
.lg-table th, .lg-table td { min-width: 120px; padding: 9px 11px; border: 1px solid var(--guide-line); text-align: left; vertical-align: top; }
.lg-table th { background: #f1f5f8; }
.lg-flow { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; padding: 0; list-style: none; counter-reset: flow; }
.lg-flow li { min-height: 98px; padding: 12px; border: 1px solid #cad9bf; border-radius: 10px; background: #f7faf4; }
.lg-flow strong { display: block; margin-bottom: 5px; }
.lg-scenario { margin: 12px 0; padding: 14px 16px; border: 1px solid var(--guide-line); border-radius: 11px; background: #fff; }
.lg-scenario summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; font-weight: 800; }
.lg-scenario dl { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 4px 12px; margin: 0; }
.lg-scenario dt { font-weight: 800; }
.lg-scenario dd { margin: 0; line-height: 1.55; }
.lg-checklist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 0; list-style: none; }
.lg-checklist li { padding: 9px 11px; border: 1px solid var(--guide-line); border-radius: 8px; background: #fbfcfd; }
.lg-checklist li::before { content: "□"; margin-right: 8px; color: var(--guide-green); font-weight: 900; }
.lg-guide-footer { display: flex; justify-content: space-between; gap: 12px; margin-top: 16px; padding: 14px 0; color: var(--guide-muted); }
.lg-hidden { display: none !important; }
.lg-content :focus-visible, .lg-toc :focus-visible, .lg-hero :focus-visible { outline: 3px solid #8eae69; outline-offset: 3px; }
@media (max-width: 900px) {
    .lg-layout { grid-template-columns: 1fr; }
    .lg-toc { position: static; max-height: none; }
    .lg-toc nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .lg-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .lg-flow li:last-child { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
    .lg-wrap { width: calc(100% - 20px); margin-top: 10px; }
    .lg-hero { border-radius: 13px; }
    .lg-toc nav, .lg-checklist { grid-template-columns: 1fr; }
    .lg-search-row { align-items: stretch; flex-direction: column; }
    .lg-flow { grid-template-columns: 1fr; }
    .lg-flow li:last-child { grid-column: auto; }
    .lg-scenario dl { grid-template-columns: 1fr; gap: 2px; }
    .lg-scenario dd { margin-bottom: 6px; }
    .lg-guide-footer { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) { .lg-progress span { transition: none; } }
