/* wiki.css v1 (2026-10-12): /wiki/ pages. Loaded after modules.css; every selector is scoped like the module CSS. Colours = the site's bands (tan, green, blue, navy, maroon). */
body.ws-mod .wsm .wk-page{max-width:none;margin:0;padding:clamp(28px,4vw,56px) 0;font-size:1.05rem;line-height:1.7;overflow-x:clip;background:#fff}
body.ws-mod .wsm .wk-in{max-width:1370px;margin:0 auto;padding:0 20px}
body.ws-mod .wsm .wk-layout{display:grid;grid-template-columns:240px minmax(0,1fr) 210px;gap:26px;align-items:start}
body.ws-mod .wsm .wk-layout-index{grid-template-columns:230px minmax(0,1fr)}
/* left: wiki menu */
body.ws-mod .wsm .wk-menu{position:sticky;top:12px;max-height:calc(100vh - 24px);overflow:auto;background:#fbf3e4;border-radius:12px;padding:6px 14px 14px;font-size:.95rem;line-height:1.35}
body.ws-mod .wsm .wk-menu-s{cursor:pointer;font-family:var(--f-display,'Bricolage Grotesque',sans-serif);font-weight:800;font-size:1.1rem;color:#0B1F3A;padding:10px 0}
body.ws-mod .wsm .wk-menu p{margin:0}
body.ws-mod .wsm .wk-mh a{font-weight:800;color:#680000}
body.ws-mod .wsm .wk-mg{margin:14px 0 4px!important;font-weight:800;color:#0B1F3A;border-bottom:2px solid #e3d3b0;padding-bottom:3px}
body.ws-mod .wsm .wk-menu ul{list-style:none;margin:0;padding:0}
body.ws-mod .wsm .wk-menu li{margin:0;padding:0}
body.ws-mod .wsm .wk-menu a{color:#1b1b1b;text-decoration:none;display:block;padding:3px 6px;border-radius:6px;font-weight:600}
body.ws-mod .wsm .wk-menu a:hover,body.ws-mod .wsm .wk-menu a:focus-visible{background:#fff;color:#680000;text-decoration:underline}
body.ws-mod .wsm .wk-menu a[aria-current="page"]{background:#680000;color:#fff;font-weight:800}
body.ws-mod .wsm .wk-menu ul.wk-sub{margin:2px 0 6px 12px;border-left:3px solid #680000}
body.ws-mod .wsm .wk-menu ul.wk-sub a{font-weight:500;font-size:.9rem;padding:2px 8px}
/* middle */
body.ws-mod .wsm .wk-main{min-width:0}
body.ws-mod .wsm .wk-lead{font-size:1.2rem;line-height:1.6;font-weight:600;color:#0B1F3A;margin:0 0 22px;max-width:70ch}
body.ws-mod .wsm .wk-sec{border-radius:12px;padding:clamp(20px,3vw,32px);margin:0 0 22px;scroll-margin-top:14px}
body.ws-mod .wsm .wk-sec>:last-child{margin-bottom:0}
body.ws-mod .wsm .wk-nw{white-space:nowrap}
body.ws-mod .wsm .wk-tan{background:#fbf3e4;border-left:6px solid #e3b869}
body.ws-mod .wsm .wk-green{background:#ecf7ef;border-left:6px solid #7bbf8e}
body.ws-mod .wsm .wk-blue{background:#eaf2fb;border-left:6px solid #7aa7d9}
body.ws-mod .wsm .wk-sec h2{font-family:var(--f-display,'Bricolage Grotesque',sans-serif);font-weight:800;line-height:1.15;font-size:clamp(1.5rem,1.1rem + 1.4vw,2.1rem);margin:0 0 .6em;color:#0B1F3A}
body.ws-mod .wsm .wk-sec h3{font-family:var(--f-display,'Bricolage Grotesque',sans-serif);font-weight:800;font-size:1.2rem;line-height:1.3;margin:1.2em 0 .4em;color:#0B1F3A}
body.ws-mod .wsm .wk-sec p{margin:0 0 1em;max-width:72ch;font-weight:500;color:#1b1b1b}
body.ws-mod .wsm .wk-sec a{color:#680000;font-weight:700}
body.ws-mod .wsm .wk-by{background:#fff;border-radius:8px;padding:8px 12px;display:inline-block}
body.ws-mod .wsm .wk-list,body.ws-mod .wsm .wk-refs{margin:0 0 1em;padding-left:1.4em;max-width:74ch}
body.ws-mod .wsm .wk-list li,body.ws-mod .wsm .wk-refs li{margin:0 0 .7em;font-weight:500}
body.ws-mod .wsm .wk-pub{color:#4a4a4a;font-weight:500}
body.ws-mod .wsm .wk-latest{background:#fff;border-radius:10px;padding:6px 16px 4px;margin-top:8px}
/* code boxes: same size, grid, black, 12px radius, wrap */
body.ws-mod .wsm .wk-grid-code{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,250px),1fr));gap:20px 16px;justify-content:start;margin-top:10px}
body.ws-mod .wsm .wk-ex{margin:0;max-width:340px;min-width:0}
body.ws-mod .wsm .wk-ex figcaption{font-weight:800;color:#0B1F3A;margin:0 0 6px;font-size:.98rem;line-height:1.3;min-height:2.6em}
body.ws-mod .wsm .wk-code{box-sizing:border-box;margin:0;width:100%;max-width:340px;height:340px;overflow:auto;background:#000;color:#f2f2f2;border-radius:12px;padding:14px 16px;font:500 .82rem/1.55 ui-monospace,SFMono-Regular,Menlo,Consolas,'Liberation Mono',monospace;white-space:pre-wrap;overflow-wrap:anywhere;word-break:break-word;tab-size:2}
body.ws-mod .wsm .wk-code code{font:inherit;background:none;color:inherit;padding:0}
body.ws-mod .wsm .wk-code:focus-visible{outline:3px solid #F5B800;outline-offset:2px}
body.ws-mod .wsm .wk-sec p.wk-note{font-size:.95rem;line-height:1.5;margin:8px 0 0}
/* CTA */
body.ws-mod .wsm .wk-cta{background:#0B1F3A;border-left:6px solid #F5B800;color:#fff}
body.ws-mod .wsm .wk-cta h2,body.ws-mod .wsm .wk-cta p{color:#fff!important}
body.ws-mod .wsm .wk-cta p.wk-cta-btns{display:flex;flex-wrap:wrap;gap:14px 22px;align-items:center;margin-top:1.4em}
body.ws-mod .wsm .wk-cta a.wk-call{color:#fff;text-decoration:underline;font-weight:700}
body.ws-mod .wsm .wk-cta a.btn-yellow{color:#0B1F3A}
/* right column */
body.ws-mod .wsm .wk-side{position:sticky;top:12px;display:flex;flex-direction:column;gap:14px;align-items:center}
body.ws-mod .wsm .wk-art{margin:0;width:150px;height:150px;border-radius:12px;overflow:hidden;background:#eaf2fb}
body.ws-mod .wsm .wk-art img{display:block;width:150px;height:150px;object-fit:cover}
body.ws-mod .wsm .wk-logo{margin:0;background:#fff;border:1px solid #e3d3b0;border-radius:10px;padding:8px 12px;max-width:100%;display:flex;justify-content:center}
body.ws-mod .wsm .wk-logo img{display:block;width:150px;max-width:100%;height:48px;object-fit:contain}
body.ws-mod .wsm .wk-fact{background:#fbf3e4;border-radius:12px;padding:14px 16px;width:100%;box-sizing:border-box;font-size:.93rem;line-height:1.45}
body.ws-mod .wsm .wk-fact h2{font-family:var(--f-display,'Bricolage Grotesque',sans-serif);font-size:1.1rem;margin:0 0 8px;color:#0B1F3A}
body.ws-mod .wsm .wk-fact dl{margin:0}
body.ws-mod .wsm .wk-fact dt{font-weight:800;color:#0B1F3A;margin-top:8px}
body.ws-mod .wsm .wk-fact dd{margin:0;font-weight:500}
body.ws-mod .wsm .wk-factoid{margin:12px 0 0;padding-top:10px;border-top:2px solid #e3d3b0;font-weight:600}
/* index */
body.ws-mod .wsm .wk-index{margin:0;padding-left:1.2em;columns:1}
body.ws-mod .wsm .wk-index li{margin:0 0 .5em;font-weight:500;max-width:80ch}
/* tablet + phone */
@media (max-width:1060px){
 body.ws-mod .wsm .wk-layout,body.ws-mod .wsm .wk-layout-index{grid-template-columns:minmax(0,1fr)}
 body.ws-mod .wsm .wk-menu{position:static;max-height:none;overflow:visible;order:1}
 body.ws-mod .wsm .wk-side{position:static;order:3;flex-direction:row;flex-wrap:wrap;align-items:flex-start;justify-content:flex-start}
 body.ws-mod .wsm .wk-fact{flex:1 1 260px;width:auto}
 body.ws-mod .wsm .wk-main{order:2}
}
@media (max-width:600px){
 body.ws-mod .wsm .wk-in{padding:0 16px}
 body.ws-mod .wsm .wk-grid-code{grid-template-columns:minmax(0,1fr)}
 body.ws-mod .wsm .wk-ex figcaption{min-height:0}
}
@media (prefers-reduced-motion:reduce){body.ws-mod .wsm .wk-page *{transition:none!important}}

/* cards, not bare lists (operator rule 2026-10-12, prompt 7): one color scheme per grid */
body.ws-mod .wsm .wk-cards{list-style:none;margin:0 0 1em;padding:0;display:grid;gap:14px;grid-template-columns:repeat(auto-fill,minmax(min(100%,250px),1fr))}
body.ws-mod .wsm .wk-card{background:#fff;border:1px solid #e3d3b0;border-radius:12px;padding:16px 18px;margin:0;min-width:0}
body.ws-mod .wsm .wk-card h4{font-family:var(--f-display,'Bricolage Grotesque',sans-serif);font-weight:800;font-size:1.08rem;line-height:1.25;margin:0 0 6px;color:#0B1F3A}
body.ws-mod .wsm .wk-card p{margin:0 0 .5em;font-size:.97rem;line-height:1.55;max-width:none}
body.ws-mod .wsm .wk-card p:last-child{margin-bottom:0}
body.ws-mod .wsm .wk-card h4 a{color:#680000;text-decoration:underline;text-underline-offset:3px}
body.ws-mod .wsm .wk-rank{display:flex;align-items:center;justify-content:center;width:38px;height:38px;border-radius:50%;background:#680000;color:#fff;font-weight:800;font-size:1.05rem;margin:0 0 8px}
body.ws-mod .wsm .wk-card .wk-pub{color:#4a4a4a;font-weight:600;font-size:.9rem}
body.ws-mod .wsm .wk-cards-refs{grid-template-columns:repeat(auto-fill,minmax(min(100%,300px),1fr))}
body.ws-mod .wsm .wk-cards-terms{grid-template-columns:repeat(auto-fill,minmax(min(100%,300px),1fr))}
body.ws-mod .wsm .wk-term{padding:0;overflow:hidden}
body.ws-mod .wsm .wk-term-a{display:flex;gap:14px;align-items:stretch;text-decoration:none;color:#1b1b1b;height:100%}
body.ws-mod .wsm .wk-term-a img{flex:0 0 96px;width:96px;height:auto;min-height:96px;object-fit:cover;display:block}
body.ws-mod .wsm .wk-term-t{display:flex;flex-direction:column;gap:4px;padding:12px 14px 12px 0;font-size:.95rem;line-height:1.45}
body.ws-mod .wsm .wk-term-t b{font-family:var(--f-display,'Bricolage Grotesque',sans-serif);font-size:1.08rem;color:#680000}
body.ws-mod .wsm .wk-term-a:hover b,body.ws-mod .wsm .wk-term-a:focus-visible b{text-decoration:underline}
body.ws-mod .wsm .wk-sec a.wk-term-a{color:#1b1b1b;font-weight:500;text-decoration:none}
body.ws-mod .wsm .wk-sec a.wk-term-a .wk-term-t span{color:#1b1b1b;font-weight:500}

/* unverified-fact footnotes (operator 2026-10-12): small text at the bottom of the page */
body.ws-mod .wsm sup.wk-fnref{font-size:.7em;line-height:0;margin-left:1px}
body.ws-mod .wsm sup.wk-fnref a{color:#680000;font-weight:800;text-decoration:none;padding:0 2px}
body.ws-mod .wsm .wk-footnotes{margin:4px 0 24px;padding:12px 6px 0;border-top:2px solid #e3d3b0;font-size:.8rem;line-height:1.5;color:#3a3a3a}
body.ws-mod .wsm .wk-footnotes ol{list-style:none;margin:0;padding:0}
body.ws-mod .wsm .wk-footnotes li{margin:0 0 6px}
body.ws-mod .wsm .wk-footnotes a{color:#680000;font-weight:600}
body.ws-mod .wsm .wk-footnotes ol,body.ws-mod .wsm .wk-footnotes ol li{list-style:none!important;margin-left:0;padding-left:0}
body.ws-mod .wsm .wk-footnotes li::marker{content:''}
body.ws-mod .wsm .wk-footnotes p.wk-fn-item{margin:0 0 6px;font-size:.8rem;line-height:1.5;max-width:none;color:#3a3a3a}
body.ws-mod .wsm .wk-footnotes p.wk-fn-item sup{font-size:.75em;margin-right:3px}
