/* Shared Wiki shell; reference pages retain their own content layouts. */
body.pt-wiki-theme { --bg:#0c1015; --panel:#141b23; --text:#eef2f6; --muted:#a1afbf; --line:#2a3541; --accent:#ffad62; --gold:#dfbb72; background:var(--bg); color:var(--text); font:14px/1.5 system-ui,sans-serif; }
body.pt-wiki-theme .wrap { max-width:1440px; padding:20px 28px 40px; }
body.pt-wiki-theme .page-top { display:flex; justify-content:space-between; align-items:center; gap:16px; padding:0 0 18px; margin:0 0 24px; border:0; border-bottom:1px solid var(--line); background:transparent; }
body.pt-wiki-theme .page-top .site-brand { display:flex; align-items:center; gap:10px; text-decoration:none; }
body.pt-wiki-theme .page-top .brand-mark { width:32px; height:32px; background:#ffad6212; border:1px solid #ffad6240; border-radius:5px; }
body.pt-wiki-theme .top-actions .button { background:transparent; border:1px solid var(--line); color:var(--muted); font-size:12px; padding:8px 12px; }
body.pt-wiki-theme .tactical-shell { display:grid; grid-template-columns:170px minmax(0,1fr); gap:28px; align-items:start; }
body.pt-wiki-theme .tactical-nav { position:sticky; top:20px; display:grid; gap:24px; padding:6px 16px 20px 0; border-right:1px solid var(--line); }
body.pt-wiki-theme .tactical-nav-group { display:grid; gap:4px; }
body.pt-wiki-theme .tactical-nav-label { font-size:10px; letter-spacing:.09em; text-transform:uppercase; color:var(--muted); margin:0 0 6px 10px; }
body.pt-wiki-theme .tactical-nav a { display:block; padding:9px 10px; border-radius:4px; color:var(--muted); text-decoration:none; font-size:12px; }
body.pt-wiki-theme .tactical-nav a:hover { color:var(--text); background:#ffffff06; }
body.pt-wiki-theme .tactical-nav a[aria-current] { background:#ffad6212; color:var(--accent); box-shadow:inset 2px 0 var(--accent); }
body.pt-wiki-theme :is(.page-heading,.hero) { display:block; margin:0 0 24px; }
body.pt-wiki-theme :is(.page-heading,.hero) h1 { margin:6px 0 8px; font:700 clamp(26px,3.2vw,36px)/1.15 system-ui,sans-serif; }
body.pt-wiki-theme :is(.page-caption,.subtitle) { font-size:13px; line-height:1.6; margin:0; max-width:740px; }
body.pt-wiki-theme .wiki-breadcrumb { font-size:11px; color:var(--muted); margin:0 0 14px; }
body.pt-wiki-theme .wiki-breadcrumb a { color:var(--accent); text-decoration:none; }
body.pt-wiki-theme :is(a,button,input,select):focus-visible { outline:2px solid var(--accent); outline-offset:3px; }
body.pt-wiki-theme .footer { margin:32px 0 0; color:var(--muted); font-size:11px; text-align:center; }
body.pt-wiki-theme .hero-stats { display:flex; flex-wrap:wrap; gap:10px; margin-top:18px; }
body.pt-wiki-theme .hero-stat { display:flex; align-items:center; gap:10px; padding:8px 12px; min-width:0; }
body.pt-wiki-theme .hero-stat strong { font-size:18px; }
body.pt-wiki-theme .wiki-shell { display:block; }
body.pt-wiki-theme .side-rail { position:static; display:grid; gap:12px; margin:0 0 24px; padding:14px; }
body.pt-wiki-theme .category-nav { display:flex; flex-wrap:wrap; gap:6px; }
body.pt-wiki-theme .category-button { display:flex; width:auto; gap:12px; font-size:11px; font-weight:500; padding:8px 10px; }
body.pt-wiki-theme .result-line { font-weight:400; }
body.pt-wiki-theme .section-title p { font-weight:400; font-size:12px; }
body.pt-wiki-theme .wiki-grid { grid-template-columns:repeat(3,minmax(0,1fr)); grid-auto-rows:1fr; }
body.pt-wiki-theme .wiki-card { grid-template-rows:minmax(86px,auto) 1fr auto; min-height:250px; gap:14px; padding:18px; background:var(--panel); }
body.pt-wiki-theme .card-top { align-items:start; gap:12px; }
body.pt-wiki-theme .card-icon { width:44px; height:44px; }
body.pt-wiki-theme .card-icon img { max-width:32px; max-height:32px; }
body.pt-wiki-theme .card-title h3 { font:650 16px/1.3 system-ui,sans-serif; }
body.pt-wiki-theme .card-title p { font-size:9px; font-weight:500; line-height:1.5; }
body.pt-wiki-theme .card-copy { font-size:12px; font-weight:400; }
body.pt-wiki-theme .card-bottom { align-items:center; }
body.pt-wiki-theme :is(.stat-pill,.open-pill) { font-size:10px; font-weight:500; }
@media(max-width:1100px) { body.pt-wiki-theme .wiki-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:800px) {
    body.pt-wiki-theme .wrap { padding:16px; }
    body.pt-wiki-theme .tactical-shell { grid-template-columns:minmax(0,1fr); gap:18px; }
    body.pt-wiki-theme .tactical-nav { position:static; display:flex; overflow-x:auto; gap:14px; border:0; border-bottom:1px solid var(--line); padding:0 0 12px; }
    body.pt-wiki-theme .tactical-nav-group { display:flex; align-items:center; flex-shrink:0; gap:4px; }
    body.pt-wiki-theme .tactical-nav-label { display:none; }
    body.pt-wiki-theme .tactical-nav a { white-space:nowrap; }
}
@media(max-width:520px) {
    body.pt-wiki-theme .wrap { padding:12px; }
    body.pt-wiki-theme .wiki-grid { grid-template-columns:minmax(0,1fr); }
    body.pt-wiki-theme .page-top { flex-wrap:wrap; }
    body.pt-wiki-theme .wiki-card { min-height:230px; }
}

body.pt-wiki-theme .tactical-nav { max-height:calc(100dvh - 40px); overflow-y:auto; }
body.pt-wiki-subpage { --accent:#ffad62; }
body.pt-wiki-subpage .wiki-subpage-wrap { max-width:1680px; margin:0 auto; padding:20px 28px 40px; }
body.pt-wiki-subpage .tactical-shell { display:grid; grid-template-columns:170px minmax(0,1fr); gap:28px; align-items:start; }
body.pt-wiki-subpage .tactical-nav { position:sticky; top:20px; display:grid; gap:24px; padding:6px 16px 20px 0; border-right:1px solid var(--line); max-height:calc(100dvh - 40px); overflow-y:auto; }
body.pt-wiki-subpage .tactical-nav-group { display:grid; gap:4px; }
body.pt-wiki-subpage .tactical-nav-label { font-size:10px; letter-spacing:.09em; text-transform:uppercase; color:var(--muted); margin:0 0 6px 10px; }
body.pt-wiki-subpage .tactical-nav a { display:block; padding:9px 10px; border-radius:4px; color:var(--muted); text-decoration:none; font:12px/1.5 system-ui,sans-serif; }
body.pt-wiki-subpage .tactical-nav a:hover { color:var(--text); background:#ffffff06; }
body.pt-wiki-subpage .tactical-nav a[aria-current] { background:#ffad6212; color:var(--accent); box-shadow:inset 2px 0 var(--accent); }
body.pt-wiki-subpage .wiki-subpage-content { min-width:0; }
body.pt-wiki-subpage .wiki-subpage-content > :is(.wrap,.builder-wrap) { width:100%; max-width:none; padding:0; margin:0; }
.wiki-search-target { outline:2px solid #ffad62; outline-offset:4px; scroll-margin:24px; }
body.pt-wiki-theme [hidden] { display:none !important; }
body.pt-wiki-theme .wiki-global-search { margin:0 0 20px; padding:22px; border:1px solid #ffad6280; border-radius:8px; background:linear-gradient(120deg,#ffad6212,#141b23); box-shadow:0 8px 24px #0003; }
body.pt-wiki-theme .wiki-global-search label { display:block; color:var(--text); font:650 20px/1.3 system-ui,sans-serif; }
body.pt-wiki-theme .wiki-global-search p { margin:7px 0 16px; color:var(--muted); font-size:13px; }
body.pt-wiki-theme .wiki-global-search .search { width:100%; min-width:0; padding:16px 18px; background:#0c1015; border:2px solid #ffad6260; color:var(--text); font:16px/1.4 system-ui,sans-serif; }
body.pt-wiki-theme .wiki-global-search .search:focus { border-color:var(--accent); }
body.pt-wiki-theme .wiki-search-coverage { display:block; margin-top:10px; color:var(--muted); font-size:11px; }
body.pt-wiki-theme .wiki-search-results { margin-bottom:24px; padding:18px; border:1px solid var(--line); border-radius:7px; background:var(--panel); }
body.pt-wiki-theme .wiki-search-results h2 { margin:0; font-size:17px; }
body.pt-wiki-theme .wiki-search-results p { color:var(--muted); font-size:12px; }
body.pt-wiki-theme .wiki-search-results ul { list-style:none; padding:0; margin:12px 0; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
body.pt-wiki-theme .wiki-search-results li { min-width:0; }
body.pt-wiki-theme .wiki-search-results a { display:grid; gap:4px; padding:12px; border:1px solid var(--line); border-radius:5px; color:var(--text); text-decoration:none; overflow-wrap:anywhere; }
body.pt-wiki-theme .wiki-search-results a:hover { border-color:var(--accent); background:#ffad6208; }
body.pt-wiki-theme .wiki-search-results a span { color:var(--muted); font-size:11px; }
body.pt-wiki-theme .wiki-search-results button { padding:10px 14px; color:var(--accent); background:transparent; border:1px solid var(--line); border-radius:5px; cursor:pointer; }
@media(max-width:800px) {
    body.pt-wiki-theme .tactical-nav { max-height:none; }
    body.pt-wiki-subpage .wiki-subpage-wrap { padding:16px; }
    body.pt-wiki-subpage .tactical-shell { grid-template-columns:minmax(0,1fr); gap:18px; }
    body.pt-wiki-subpage .tactical-nav { position:static; display:flex; overflow-x:auto; max-height:none; gap:14px; border:0; border-bottom:1px solid var(--line); padding:0 0 12px; }
    body.pt-wiki-subpage .tactical-nav-group { display:flex; align-items:center; flex-shrink:0; gap:4px; }
    body.pt-wiki-subpage .tactical-nav-label { display:none; }
    body.pt-wiki-subpage .tactical-nav a { white-space:nowrap; }
}
@media(max-width:520px) {
    body.pt-wiki-subpage .wiki-subpage-wrap { padding:12px; }
    body.pt-wiki-theme .wiki-global-search { padding:16px; }
    body.pt-wiki-theme .wiki-search-results ul { grid-template-columns:minmax(0,1fr); }
}
