/* Documentation overview. API/reference pages keep their own reading layouts. */
.docs-overview .article-layout { grid-template-columns:minmax(0,1080px); gap:0; padding:40px 44px 0; }
.docs-intro { padding-bottom:8px; }
.docs-intro .breadcrumbs { margin-bottom:28px; }
.docs-intro h1 { font-size:clamp(2rem,3.5vw,2.9rem); letter-spacing:-.045em; line-height:1.12; margin-bottom:16px; text-wrap:balance; }
.docs-intro .article-intro { max-width:650px; font-size:1.05rem; line-height:1.75; margin-bottom:24px; }
.docs-jump-links { display:flex; gap:8px 28px; flex-wrap:wrap; }
.docs-jump-links a { display:flex; align-items:center; gap:14px; padding:6px 0; font-size:.84rem; text-decoration:none; }
.docs-jump-links a:hover { text-decoration:underline; }
.docs-overview .docs-section { margin:34px 0 46px; scroll-margin-top:96px; }
.docs-section-heading { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:20px; }
.docs-overview .docs-section h2 { margin:0 0 8px; border:0; padding:0; font-size:1.55rem; }
.docs-overview .docs-section-heading p { margin:0; font-size:.88rem; line-height:1.65; color:var(--muted); }
.docs-section-label { flex-shrink:0; color:var(--muted); font-size:.72rem; }
.docs-overview .docs-game-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; margin:0; }
.docs-overview .docs-card { display:grid; grid-template-columns:72px minmax(0,1fr); gap:16px; align-content:start; padding:22px; background:var(--panel); border:1px solid transparent; border-radius:8px; min-width:0; text-decoration:none; transition:background-color .16s,border-color .16s; }
.docs-overview .docs-card:hover { background:var(--bg); border-color:var(--accent); }
.docs-game-art { display:flex; align-items:center; justify-content:center; width:72px; height:64px; padding:7px; border-radius:5px; background:#20232b; flex-shrink:0; overflow:hidden; }
.docs-game-art img { display:block; width:100%; height:100%; object-fit:contain; }
.docs-game-cover { padding:0; }
.docs-game-cover img { object-fit:cover; }
.docs-overview .docs-kind { display:block; margin-bottom:5px; color:var(--muted); font-size:.67rem; line-height:1.5; }
.docs-overview .docs-card h3 { display:block; margin:0 0 8px; font-size:1.06rem; line-height:1.35; font-weight:650; }
.docs-overview .docs-card p { margin:0; font-size:.8rem; line-height:1.65; color:var(--muted); }
.docs-overview .docs-card-foot { grid-column:1/-1; display:flex; justify-content:space-between; align-items:baseline; gap:8px 16px; flex-wrap:wrap; margin-top:3px; font-size:.67rem; color:var(--muted); line-height:1.6; }
.docs-card-foot>span { color:var(--accent); font-size:.74rem; white-space:nowrap; }
.docs-native-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
.docs-native-link { display:flex; align-items:center; gap:16px; padding:16px 12px; border-radius:6px; text-decoration:none; transition:background-color .16s; min-width:0; }
.docs-native-link:hover { background:var(--panel); }
.docs-native-link .docs-game-art { width:54px; height:54px; }
.docs-native-link>span:nth-child(2) { flex:1; min-width:0; }
.docs-native-link strong,.docs-resource-links strong { display:block; font-weight:650; font-size:.96rem; color:var(--text); }
.docs-native-link>span:nth-child(2)>span,.docs-resource-links a>span>span { display:block; margin-top:4px; color:var(--muted); font-size:.78rem; line-height:1.6; }
.docs-link-arrow { margin-left:auto; }
.docs-overview .docs-reference-note { max-width:680px; margin:16px 0 0; font-size:.81rem; line-height:1.75; color:var(--muted); }
.docs-resource-links { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:6px 20px; }
.docs-resource-links a { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:14px 12px; border-radius:6px; text-decoration:none; }
.docs-resource-links a:hover { background:var(--panel); }
.docs-support { margin-top:26px; padding:22px 24px; border-left:3px solid var(--accent); background:var(--panel); }
.docs-overview .docs-support h3 { margin:0 0 8px; font-size:1rem; }
.docs-overview .docs-support p { max-width:680px; margin:0 0 10px; font-size:.85rem; line-height:1.75; }
.docs-overview .docs-support p:last-child { margin-bottom:0; color:var(--muted); }
.docs-overview :is(a,summary):focus-visible { outline:2px solid var(--accent); outline-offset:4px; }
.docs-overview .wiki-sidebar .sidebar-game { margin:26px 0 0; }
.docs-overview .wiki-sidebar .sidebar-game>summary { padding:0 8px 12px; }
.docs-overview .wiki-sidebar .sidebar-game-title { font-size:.87rem; }
.docs-overview .wiki-sidebar .sidebar-game .sidebar-guide-link { font-size:.79rem; padding:7px 12px; }
.docs-overview .sidebar-resources { border-top:0; margin-top:28px; }
.docs-overview .wiki-footer { border-top:0; margin-top:36px; }
@media(min-width:1600px) { .docs-overview .article-layout { padding-left:60px; padding-right:60px; } }
@media(max-width:1100px) { .docs-overview .article-layout { padding:36px 28px 0; } .docs-overview .docs-card { grid-template-columns:56px minmax(0,1fr); padding:18px; gap:12px; } .docs-card .docs-game-art { width:56px; height:56px; } }
@media(max-width:900px) { .docs-overview .article-layout { max-width:1080px; } }
@media(max-width:650px) {
    .docs-overview .article-layout { padding:28px 20px 0; }
    .docs-intro .breadcrumbs { margin-bottom:24px; font-size:.7rem; }
    .docs-intro .article-intro { font-size:.95rem; }
    .docs-jump-links { gap:6px 20px; }
    .docs-jump-links a { font-size:.78rem; gap:8px; }
    .docs-section-heading { align-items:flex-start; }
    .docs-section-label { display:none; }
    .docs-overview .docs-section h2 { font-size:1.4rem; }
    .docs-overview .docs-game-grid,.docs-native-grid,.docs-resource-links { grid-template-columns:1fr; }
    .docs-overview .docs-card { padding:20px; }
    .docs-overview .docs-section { margin-bottom:36px; }
    .docs-support { padding:18px; }
}
@media(prefers-reduced-motion:reduce) { .docs-overview .docs-card,.docs-native-link { transition:none; } }
@media print {
    .docs-overview .article-layout { margin:0; padding:0; display:block; }
    .docs-jump-links { display:none; }
    .docs-overview .docs-card,.docs-native-link,.docs-support { break-inside:avoid; }
    .docs-overview .docs-game-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
