.guide-toc ul { display: flex; flex-wrap: wrap; gap: 6px 20px; padding-left: 20px; }
.guide-toc a { display: inline-block; padding: 5px 0; }
.guide-section { scroll-margin-top: 12px; }
.guide-section > h2, .guide-section > h3 { margin-top: 0; }
.guide-section > p, .guide-section > ul, .guide-section > ol { line-height: 1.85; }
.guide-section > ol > li, .guide-section > ul > li { margin: 8px 0; }
.guide-section .character-table th:nth-child(1) { width: 29%; }
.guide-section .character-table th:nth-child(2) { width: 17%; }
.guide-section .character-table th:nth-child(3) { width: 54%; }
.guide-section .character-table td { overflow-wrap: anywhere; line-height: 1.65; }
.guide-section .character-name-button, .guide-section .character-name-static { white-space: normal; }
.guide-section .character-detail-item { min-width: 0; }
.guide-section .guide-procedure { grid-column: 1 / -1; display: block; }
.guide-section .guide-procedure h4 { margin-bottom: 6px; }
.guide-section .guide-procedure ol { margin: 0; padding-left: 1.5em; line-height: 1.8; }
.guide-section .guide-procedure li + li { margin-top: 6px; }
.guide-section .character-detail-item p { line-height: 1.8; overflow-wrap: anywhere; }
.guide-section .character-detail-item h3, .guide-section .character-detail-item h4 { font-size: .92rem; margin: 0; }
.guide-section .character-role-note { line-height: 1.65; overflow-wrap: anywhere; }
.guide-section .character-list-panel { padding: 0; box-shadow: none; border: 0; }
.guide-section .character-search-panel, .guide-section .character-filter-panel { box-shadow: none; }
.guide-section .character-filter-grid { gap: 10px; }
@media (max-width: 850px) {
 .guide-section .character-mobile-list-head, .guide-section .character-card-summary--with-value { grid-template-columns: minmax(0,1fr) minmax(72px,.38fr); }
 .guide-section .character-card-value { white-space: normal; line-height: 1.5; }
 .guide-section .character-role-note { margin: 6px 0 2px; }
 .guide-section > ol, .guide-section > ul { padding-left: 1.5em; }
 .guide-toc ul { display: block; }
}
.guide-toc ul { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 4px 16px; list-style: none; padding: 0; }
.guide-toc a { display: flex; align-items: center; min-height: 44px; line-height: 1.5; }
.guide-topic > summary { cursor: pointer; min-height: 44px; padding: 8px 0; line-height: 1.6; }
.guide-topic > summary h2 { display: inline; margin: 0; border: 0; font-size: 1.12rem; }
.guide-topic > summary:focus-visible { outline: 2px solid var(--accent,#be185d); outline-offset: 4px; border-radius: 4px; }
.guide-topic-body { padding-top: 14px; }
.guide-topic .guide-section { padding: 16px 0; border: 0; box-shadow: none; background: transparent; }
.guide-topic .guide-section > h3 { font-size: 1.1rem; color: var(--accent,#be185d); border-bottom: 1px dashed var(--brand-light,#fbcfe8); padding-bottom: 8px; }
.guide-local-toc { margin: 16px 0; }
.guide-local-toc ul { display: flex; flex-wrap: wrap; gap: 8px 20px; padding-left: 20px; }
.guide-local-toc a, .guide-topic-return a { display: inline-block; padding: 8px 0; }
.guide-topic-return { margin: 20px 0 0; }
.guide-topic, .guide-toc, #overview, #edition { scroll-margin-top: 16px; }
.main-content { --brand: #be185d; --text-muted: #4b5563; }
.main-content .site-intro > p { color: #4b5563; }
.main-content .page-updated-at { color: #4b5563; font-size: .75rem; }
@media (max-width: 850px) {
 .guide-toc ul { grid-template-columns: minmax(0, 1fr); }
 .guide-topic .guide-section { padding: 14px 0; }
 .guide-topic > summary h2 { font-size: 1.02rem; }
 .guide-local-toc ul { display: block; }
}
