/* Starfield guide content within the existing notebook components. */
body[data-guide] .character-table { table-layout: fixed; }
body[data-guide] .character-table th:nth-child(1) { width: 34%; }
body[data-guide] .character-table th:nth-child(2) { width: 24%; }
body[data-guide] .character-table th:nth-child(3) { width: 42%; }
body[data-guide] .character-table td { overflow-wrap: anywhere; white-space: normal; }
body[data-guide] [data-guide-columns="2"] .character-table th:first-child { width: 60%; }
body[data-guide] [data-guide-columns="2"] .character-table th:nth-child(2) { width: 40%; }
body[data-guide] .site-intro-copy { max-width: none; text-align: left; margin: 8px 0; }
body[data-guide] [data-static-section], body[data-guide] [data-static-list] { scroll-margin-top: 16px; margin: 18px 0; }
body[data-guide] [data-static-section] { background: var(--surface, #fff); border-radius: 12px; padding: 14px; }
body[data-guide] h2 { font-size: 1.2rem; line-height: 1.5; color: var(--accent); }
body[data-guide] h3 { font-size: 1rem; line-height: 1.5; }
body[data-guide] p, body[data-guide] li { line-height: 1.75; overflow-wrap: anywhere; }
body[data-guide] ol, body[data-guide] ul { padding-left: 1.4rem; }
.guide-toc a, .guide-links a { display: inline-block; padding: 6px 0; }
.guide-toc a, .guide-links a, .guide-related-intro a { color: var(--accent); }
.guide-card-supplement { margin: 0; padding: 0 10px 10px; font-size: .85rem; }
.guide-related-intro { margin: 6px 0; font-size: .9rem; }
body[data-guide] .character-detail-item { grid-template-columns: minmax(0, 1fr); gap: 4px; }
body[data-guide] .character-detail-item :is(h3,h4) { white-space: normal; font-size: .82rem; }
body[data-guide] .guide-detail-wide { grid-column: 1 / -1; }
.guide-toc-group summary { cursor: pointer; min-height: 44px; padding: 10px 4px; box-sizing: border-box; color: var(--accent); font-weight: 700; }
.guide-toc-group + .guide-toc-group { border-top: 1px solid var(--brand-light); }
.guide-group { margin: 28px 0 18px; scroll-margin-top: 16px; }
body[data-guide] .guide-group[data-static-section] { background: transparent; padding: 0; border-radius: 0; }
.guide-group > h2 { border-bottom: 2px solid var(--brand-light); padding-bottom: 8px; }
.guide-group > [data-static-list] > h3,
.guide-group > [data-static-section] > h3 { font-size: 1.1rem; color: var(--accent); }
.guide-group h4 { font-size: 1rem; line-height: 1.5; }
.guide-contents-link a { display: inline-block; padding: 8px 0; color: var(--accent); }
@media (max-width: 850px) {
  body[data-guide] .character-card-summary--with-value { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
  body[data-guide] [data-static-section] { padding: 10px; }
  body[data-guide] .character-detail { grid-template-columns: minmax(0, 1fr); }
  body[data-guide] [data-guide-stack] .character-card-summary { grid-template-columns: minmax(0, 1fr); }
}
