.docs-library { max-width:1100px; margin:0 auto; padding:2rem 1rem 4rem; color:var(--bp-text,#1e293b); }
.docs-hero { background:var(--bp-fill-blue,#253f88); color:#fff; padding:clamp(1.4rem,4vw,3rem); border-radius:20px; margin-bottom:1.5rem; }
.docs-hero .docs-kicker { margin:0 0 .65rem; color:#fff; font-size:.8rem; font-weight:700; letter-spacing:.1em; text-transform:uppercase; }
.docs-hero h1 { margin:0 0 .8rem; color:#fff; font-size:clamp(1.8rem,5vw,2.8rem); overflow-wrap:anywhere; }
.docs-hero .docs-intro { color:#fff; max-width:760px; line-height:1.7; margin:0 0 1.4rem; }
.docs-hero .docs-public { display:flex; align-items:center; gap:.55rem; margin:0; color:#fff; font-size:.86rem; line-height:1.6; }
.docs-public svg { width:20px; height:20px; flex:none; }
.docs-topics { display:grid; gap:1.25rem; }
.docs-topic { background:var(--bp-surface,#fff); border:1px solid var(--bp-line,#bdc9db); border-radius:16px; overflow:hidden; }
.docs-topic-intro { display:flex; align-items:flex-start; gap:1.2rem; padding:clamp(1.2rem,3vw,2rem); }
.docs-topic-intro > div { min-width:0; }
.docs-topic-icon { display:grid; place-items:center; flex:none; width:52px; height:52px; border-radius:12px; color:var(--bp-ink-blue,#233d85); background:var(--bp-surface-blue,#edf2ff); }
.docs-topic-icon svg { width:28px; height:28px; }
.docs-topic h2 { font-size:clamp(1.2rem,3vw,1.6rem); margin:0 0 .75rem; line-height:1.4; }
.docs-topic h2 a { color:var(--bp-ink-blue,#233d85); text-decoration:none; }
.docs-topic-intro p { color:var(--bp-muted,#475569); max-width:780px; margin:0 0 1.25rem; line-height:1.8; }
.docs-topic .docs-read { display:inline-flex; align-items:center; gap:.9rem; min-height:44px; padding:.6rem 1rem; border-radius:9px; font-size:.9rem; font-weight:700; text-decoration:none; color:#fff; background:var(--bp-fill-blue,#253f88); }
.docs-topic-contents { padding:1.2rem clamp(1.2rem,3vw,2rem); background:var(--bp-surface-soft,#f2f5fa); border-top:1px solid var(--bp-line,#bdc9db); }
.docs-topic-contents h3 { color:var(--bp-text,#1e293b); margin:0 0 .8rem; font-size:.9rem; }
.docs-topic-contents ul { list-style:none; padding:0; margin:0; display:grid; grid-template-columns:1fr 1fr; gap:.4rem 1.8rem; }
.docs-topic-contents a { display:flex; align-items:center; justify-content:space-between; gap:1rem; padding:.55rem 0; min-height:44px; color:var(--bp-ink-blue,#233d85); font-size:.9rem; line-height:1.5; text-decoration:none; }
.docs-topic-contents a span { flex:none; }
.docs-topic a:hover { text-decoration:underline; text-underline-offset:3px; }
.docs-library a:focus-visible,.docs-breadcrumb a:focus-visible { outline:3px solid var(--bp-ink-blue,#233d85); outline-offset:4px; }
.docs-breadcrumb { margin:0 0 1.25rem; color:var(--bp-muted,#475569); font-size:.85rem; line-height:1.6; }
.docs-breadcrumb ol { list-style:none; display:flex; flex-wrap:wrap; align-items:center; gap:.45rem .65rem; padding:0; margin:0; }
.docs-breadcrumb li+li::before { content:"/"; margin-right:.65rem; color:var(--bp-muted,#475569); }
.docs-breadcrumb a { color:var(--bp-ink-blue,#233d85); font-weight:600; }
.docs-hero .docs-profile-link { display:inline-flex; align-items:center; gap:.8rem; padding:.65rem 1rem; border-radius:9px; background:var(--bp-surface,#fff); color:var(--bp-ink-blue,#233d85); font-weight:700; text-decoration:none; }
.docs-howto-note { margin:1.25rem 0; padding:1.1rem 1.3rem; border-left:4px solid var(--bp-line-blue,#253f88); border-radius:8px; background:var(--bp-surface-blue,#edf2ff); line-height:1.75; }
.docs-howto-note p { margin:0 0 .7rem; color:inherit; }
.docs-howto-note p:last-child { margin-bottom:0; }
.docs-step { margin:1.4rem 0; border:1px solid var(--bp-line,#bdc9db); border-radius:16px; background:var(--bp-surface,#fff); overflow:hidden; scroll-margin-top:100px; }
.docs-step > h2 { display:flex; align-items:center; gap:.8rem; margin:0; padding:1rem 1.3rem; background:var(--bp-fill-blue,#253f88); color:#fff; font-size:1.18rem; line-height:1.5; }
.docs-step-number { display:grid; place-items:center; width:30px; height:30px; flex:none; border:1px solid rgba(255,255,255,.55); border-radius:50%; font-size:.95rem; }
.docs-step-body { padding:1.3rem; line-height:1.8; }
.docs-step-body p { color:inherit; margin:0 0 1rem; }
.docs-step-body p:last-child { margin-bottom:0; }
.docs-step-body ol { padding-left:1.5rem; margin:0 0 1rem; }
.docs-step-body li { margin:.4rem 0; }
.docs-screenshot { max-width:724px; margin:1.4rem auto .5rem; }
.docs-screenshot-modal { max-width:424px; }
.docs-screenshot a { display:block; border-radius:12px; }
.docs-screenshot img { display:block; width:100%; height:auto; border-radius:12px; }
.docs-screenshot figcaption { margin-top:.65rem; font-size:.8rem; color:var(--bp-muted,#475569); line-height:1.6; }
@media(max-width:600px) {
    .docs-library { padding:1rem .65rem 2rem; }
    .docs-topic-intro { flex-direction:column; gap:.9rem; }
    .docs-topic-contents ul { grid-template-columns:1fr; gap:.1rem; }
    .docs-step-body { padding:1rem; }
    .docs-step > h2 { padding:1rem; font-size:1.05rem; }
}

/* The tournament guide uses larger text and a reference list rather than wide tables. */
.docs-admin-guide { font-size:1.05rem; }
.docs-admin-guide h3 { color:var(--bp-text,#1e293b); font-size:1.12rem; margin:1.5rem 0 .7rem; }
.docs-guide-toc { padding:1.2rem 1.4rem; border:1px solid var(--bp-line,#bdc9db); border-radius:14px; background:var(--bp-surface,#fff); }
.docs-guide-toc h2 { font-size:1.2rem; color:var(--bp-text,#1e293b); margin:0 0 .6rem; }
.docs-guide-toc ol { margin:0; padding-left:1.5rem; }
.docs-guide-toc a { display:inline-block; padding:.55rem .15rem; line-height:1.5; }
.docs-admin-guide a { color:var(--bp-ink-blue,#233d85); }
.docs-control-list { margin:1rem 0; }
.docs-control-list dt { font-weight:750; padding:.85rem 0 .2rem; border-top:1px solid var(--bp-line,#bdc9db); color:var(--bp-ink-blue,#233d85); }
.docs-control-list dd { margin:0 0 .8rem; }
.docs-admin-guide .docs-screenshot { max-width:100%; }
.docs-admin-guide .docs-screenshot-modal { max-width:450px; }
.docs-admin-guide .docs-screenshot img { border:1px solid var(--bp-line,#bdc9db); object-fit:contain; }
.docs-admin-guide .docs-screenshot figcaption { font-size:.9rem; }
.docs-image-pair { display:flex; align-items:flex-start; justify-content:center; gap:1.4rem; flex-wrap:wrap; }
.docs-image-pair .docs-screenshot { flex:1 1 280px; min-width:0; }
.docs-admin-guide img { max-width:100%; }
@media(max-width:600px) { .docs-admin-guide { font-size:1rem; } .docs-image-pair { display:block; } .docs-guide-toc { padding:1rem; } }

/* Documentation discovery: compact guide cards and direct section search. */
.docs-hub [hidden] { display:none !important; }
.docs-discovery { margin:1.5rem 0; padding:1.4rem; border:1px solid var(--bp-line,#bdc9db); border-radius:14px; background:var(--bp-surface,#fff); }
.docs-discovery label { display:block; font-weight:750; font-size:1.2rem; margin-bottom:.7rem; color:var(--bp-text,#1e293b); }
.docs-search-row { display:flex; gap:.6rem; }
.docs-search-row input { min-width:0; flex:1; padding:.85rem; border:1px solid var(--bp-line,#bdc9db); border-radius:9px; background:var(--bp-surface-soft,#f5f7fb); color:var(--bp-text,#1e293b); font:inherit; }
.docs-hub button { min-height:44px; padding:.55rem .85rem; border:1px solid var(--bp-line,#bdc9db); border-radius:9px; background:var(--bp-surface,#fff); color:var(--bp-ink-blue,#233d85); font:inherit; font-weight:650; cursor:pointer; }
.docs-hub button[aria-pressed="true"] { background:#253f88; color:white; border-color:#253f88; }
.docs-hub :is(button,input,a,summary):focus-visible { outline:3px solid #e9a328; outline-offset:3px; }
.docs-filters,.docs-suggestions { display:flex; flex-wrap:wrap; align-items:center; gap:.5rem; margin-top:.9rem; }
.docs-suggestions button { border:0; text-decoration:underline; }
#docs-search-help,#docs-search-status { color:var(--bp-muted,#475569); font-size:.9rem; margin:.7rem 0; }
#docs-search-results h2 { font-size:1.15rem; }
#docs-search-results ul { list-style:none; padding:0; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.6rem; }
#docs-search-results li { padding:.8rem; border:1px solid var(--bp-line,#bdc9db); border-radius:9px; }
#docs-search-results a { font-weight:750; color:var(--bp-ink-blue,#233d85); display:block; padding:.25rem 0; }
#docs-search-results small { display:block; color:var(--bp-muted,#475569); }
.docs-topic-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); align-items:start; gap:1rem; }
.docs-hub .docs-topic { margin:0; min-width:0; }
.docs-hub .docs-topic-intro { padding:1.25rem; }
.docs-hub .docs-topic h2 { font-size:1.3rem; }
.docs-category-label { font-size:.75rem; text-transform:uppercase; font-weight:750; letter-spacing:.04em; }
.docs-hub summary { cursor:pointer; font-weight:700; padding:.35rem 0; min-height:36px; color:var(--bp-text,#1e293b); }
.docs-hub .docs-topic-contents ul { grid-template-columns:1fr; }
@media(max-width:650px) { .docs-topic-grid,#docs-search-results ul { grid-template-columns:1fr; } .docs-discovery { padding:1rem; } .docs-search-row { flex-wrap:wrap; } .docs-search-row input { flex-basis:220px; } }
