/* Scoped WordPress Theme V11-compatible private pilot. No global element overrides. */
.madw-root{--madw-line:rgba(255,255,255,.13);--madw-panel:rgba(20,25,30,.88);--madw-ink:#f3f7f9;--madw-muted:#b3c0c9;max-width:1100px;margin:0 auto;padding:clamp(10px,2vw,24px);color:var(--madw-ink);font-size:1rem;line-height:1.65}
.madw-root *{box-sizing:border-box}.madw-root .madw-status{font-size:.7rem;font-weight:700;letter-spacing:.07em;color:#ffbf6f}.madw-root .madw-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:12px;padding:12px 16px;border:1px solid var(--madw-line);border-radius:12px;background:var(--madw-panel)}
.madw-toolbar label{font-size:.84rem;color:var(--madw-muted)}.madw-toolbar select,.madw-toolbar button{min-height:34px;border:1px solid var(--madw-line);border-radius:7px;padding:4px 10px;background:#22313b;color:var(--madw-ink)}.madw-toolbar button{cursor:pointer;background:#146172}.madw-toolbar input{margin-right:5px}
.madw-heading{padding:18px 0 12px}.madw-root h2{margin:6px 0 8px;font-size:clamp(1.6rem,2.5vw,2.5rem);line-height:1.2}.madw-root h3{font-size:1.1rem;margin:16px 0 8px}.madw-root h4{font-size:1rem;margin:8px 0}.madw-root p{margin:.5rem 0}.madw-root .madw-lead{color:var(--madw-muted);max-width:74ch}.madw-root .madw-kicker{font-size:.75rem;letter-spacing:.1em;text-transform:uppercase;color:#2ee5ff}.madw-root .madw-breadcrumb{font-size:.77rem;color:var(--madw-muted)}
.madw-root a{color:#67e6ff}.madw-root .madw-index{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:9px;padding:0;list-style:none}.madw-index li,.madw-related{background:var(--madw-panel);border:1px solid var(--madw-line);border-radius:10px;padding:11px}.madw-root small{display:block;font-size:.7rem;color:var(--madw-muted)}
.madw-accordion{margin:9px 0;background:var(--madw-panel);border:1px solid var(--madw-line);border-radius:12px;overflow:hidden}.madw-accordion summary{cursor:pointer;padding:12px 16px;font-weight:700;line-height:1.3;list-style:revert}.madw-accordion[open] summary{border-bottom:1px solid var(--madw-line)}.madw-accordion-body{padding:4px 16px 16px}.madw-section{margin:10px 0;padding-bottom:9px;border-bottom:1px solid var(--madw-line)}.madw-section:last-child{border-bottom:0}.madw-flavors{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));gap:10px;padding-top:12px}.madw-flavor{margin:0;border:1px solid var(--madw-line);border-radius:9px;padding:12px;background:rgba(255,255,255,.035);font-size:.88rem}.madw-related{margin:12px 0}.madw-related ul{margin:5px 0;padding-left:24px}.madw-related li{margin-bottom:6px}

/* V006: readable, keyboard-usable inline universe links. */
.madw-prose a,.madw-flavor a{color:#73eaff;text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px}
.madw-prose a:hover,.madw-flavor a:hover{color:#fff5c9;text-decoration-thickness:2px}
.madw-root a:focus-visible{outline:2px solid #ffd77c;outline-offset:2px;border-radius:2px}
.madw-scope-empty{padding:1rem;border:1px solid var(--madw-line);border-radius:10px;background:var(--madw-panel)}

/* V007 — private editorial article layout, no theme-wide overrides. */
/* Theme V11 constrains its page content to 840px; center this one shortcode
   within the viewport without altering the site theme or other pages. */
.page-id-116 .wp-block-post-title{display:none!important}
.page-id-116 main.wp-block-group{padding-top:clamp(12px,2vw,28px)!important}
.page-id-116 .wp-block-post-content{overflow:visible}
.madw-root{position:relative;left:50%;transform:translateX(-50%);width:min(1420px,calc(100vw - 52px));max-width:none;padding:0 0 38px;font-size:.98rem}
.madw-topline{display:flex;justify-content:space-between;gap:14px;font-size:.7rem;letter-spacing:.09em;font-weight:700;color:#ffcf86;padding:0 0 11px}
.madw-topline span+span{color:#b3c0c9;font-weight:500}
.madw-scope{border:1px solid var(--madw-line);background:rgba(20,25,30,.88);border-radius:11px;margin:0 0 15px;overflow:hidden}
.madw-scope>summary{cursor:pointer;display:flex;align-items:center;gap:14px;justify-content:space-between;padding:9px 14px;font-size:.85rem;font-weight:650}
.madw-scope>summary:hover{background:rgba(255,255,255,.025)}
.madw-scope-value{color:#95cdda;font-weight:500;font-size:.8rem;margin-left:auto}
.madw-scope>.madw-toolbar{border:0;border-top:1px solid var(--madw-line);border-radius:0;padding:12px}
.madw-layout{display:grid;grid-template-columns:minmax(190px,228px) minmax(0,1fr);gap:clamp(20px,2.8vw,40px);align-items:start}
.madw-sidebar{min-width:0}.madw-sidebar-sticky{position:sticky;top:clamp(90px,8vw,145px);max-height:calc(100vh - 150px);overflow-y:auto;scrollbar-width:thin;border:1px solid var(--madw-line);border-radius:12px;background:#141b22}
.madw-nav-disclosure{padding:0}.madw-nav-disclosure>summary{padding:12px 14px;font-size:.86rem;font-weight:750;cursor:pointer;color:#e8f2f6;border-bottom:1px solid var(--madw-line)}
.madw-sidebar nav{display:flex;flex-direction:column;gap:1px;padding:8px 10px}.madw-sidebar nav a{text-decoration:none;line-height:1.45;border-radius:5px;padding:5px 8px;font-size:.79rem}
.madw-sidebar nav a:hover{background:#21313a;color:#f9fcff}
.madw-nav-group{font-weight:750;color:#f3f7f9!important;margin-top:7px}
.madw-sidebar nav a.madw-nav-section{padding-left:16px;font-size:.76rem;color:#bacbd3}
.madw-nav-subhead{padding:9px 8px 1px 16px;color:#b5a1c8;font-size:.69rem;font-weight:700;letter-spacing:.07em;text-transform:uppercase}
.madw-sidebar nav .madw-nav-top{font-size:.75rem;color:#67e6ff}
.madw-nav-actions{display:flex;gap:6px;padding:10px;border-top:1px solid var(--madw-line)}.madw-nav-actions button{flex:1;background:#23323b;border:1px solid var(--madw-line);border-radius:6px;color:#e9f8ff;font-size:.72rem;cursor:pointer;padding:5px 3px}
.madw-article{min-width:0;width:100%;max-width:1010px}.madw-heading{padding:4px 0 16px}.madw-root .madw-heading h1{font-size:clamp(1.9rem,3vw,3rem);margin:4px 0 12px;line-height:1.16;letter-spacing:-.018em}
.madw-root .madw-lead{max-width:88ch;font-size:1.04rem;line-height:1.73;color:#d1dfe7}
.madw-root .madw-breadcrumb{margin:1px 0 10px;font-size:.8rem}
.madw-accordion{margin:10px 0}.madw-accordion>summary,.madw-book>summary{display:flex;justify-content:space-between;align-items:center;gap:12px;list-style:none!important}
.madw-accordion>summary::-webkit-details-marker,.madw-book>summary::-webkit-details-marker{display:none}
.madw-accordion>summary{font-size:1rem;padding:12px 17px}.madw-chevron{display:inline-block;font-size:1.3rem;transition:transform .14s ease;line-height:1}
.madw-accordion[open]>summary .madw-chevron,.madw-book[open]>summary .madw-chevron{transform:rotate(180deg)}
.madw-accordion-body{padding:10px clamp(14px,2vw,24px) 18px}
.madw-book{border:1px solid rgba(255,255,255,.075);border-radius:8px;margin:5px 0 12px;background:rgba(255,255,255,.015)}
.madw-book>summary{font-size:.92rem;font-weight:750;cursor:pointer;padding:10px 13px}
.madw-book[open]>summary{border-bottom:1px solid var(--madw-line)}
.madw-book-body{padding:5px 13px 13px}
.madw-section{scroll-margin-top:135px;padding-bottom:14px;margin:12px 0 18px}
.madw-root .madw-section h3{font-size:1.12rem;line-height:1.3;margin:12px 0}
.madw-prose{max-width:90ch}.madw-prose p{margin:.65rem 0 1rem;line-height:1.75}
.madw-section-nav{display:flex;justify-content:flex-end;gap:16px;font-size:.73rem;margin-top:8px}
.madw-section-nav a{font-weight:600;text-decoration:none}
.madw-accordion,.madw-book,.madw-related{scroll-margin-top:135px}
.madw-related{margin-top:15px}
@media (min-width:1500px){.madw-root{width:min(1490px,calc(100vw - 110px))}.madw-layout{grid-template-columns:240px minmax(0,1fr);gap:46px}}
@media (max-width:920px){.madw-root{width:calc(100vw - 32px)}.madw-layout{grid-template-columns:minmax(0,1fr);gap:9px}.madw-sidebar-sticky{position:static;max-height:none}.madw-sidebar nav{max-height:340px;overflow-y:auto}.madw-article{max-width:none}.madw-topline span+span{display:none}}
@media (max-width:620px){.madw-root{width:calc(100vw - 28px)}.madw-root .madw-lead{font-size:1rem}.madw-scope>summary{flex-wrap:wrap;gap:4px}.madw-scope-value{font-size:.75rem}.madw-accordion-body{padding:8px 10px 14px}.madw-book-body{padding:4px 10px 12px}.madw-sidebar nav a{padding:7px 9px}}
@media(prefers-reduced-motion:reduce){.madw-chevron{transition:none}html{scroll-behavior:auto}}

/* V008: condensed narrative introduction and safe in-flow figure layout. */
.madw-at-a-glance{padding:clamp(12px,2vw,22px);background:linear-gradient(120deg,rgba(46,229,255,.075),rgba(255,255,255,.018));border:1px solid rgba(46,229,255,.24)!important;border-radius:11px}
.madw-root .madw-at-a-glance h3{margin:0 0 12px;font-size:1.08rem;color:#b9f7ff;letter-spacing:.015em}
.madw-at-a-glance .madw-prose{max-width:76ch;font-size:1.025rem;line-height:1.7}
.madw-inline-figure{display:block;max-width:min(100%,740px);margin:20px auto;border-radius:10px;overflow:hidden;background:#18242c;border:1px solid var(--madw-line)}
.madw-inline-figure img{display:block;width:100%;height:auto;object-fit:contain}
.madw-inline-figure figcaption{padding:8px 12px;color:#b8c8d0;font-size:.78rem;line-height:1.5}
@media(min-width:1050px){.madw-article{max-width:1100px}}
@media(max-width:620px){.madw-at-a-glance{padding:12px}.madw-at-a-glance .madw-prose{font-size:1rem}}


/* V009 — use real viewport width inside Theme V11's 840px page template.
   These overrides ONLY apply to the private QA page. They do not alter the
   installed theme or any other public page. WordPress's constrained-block
   wrappers must ALL be widened; widening only the inner wiki is insufficient. */
body.page-id-116 main.wp-block-group.is-layout-constrained {
  box-sizing: border-box;
  max-width: none;
  width: 100%;
}
body.page-id-116 main.wp-block-group.is-layout-constrained > .wp-block-post-content,
body.page-id-116 main.wp-block-group .wp-block-post-content,
body.page-id-116 .wp-block-post-content > .wp-block-shortcode {
  box-sizing: border-box;
  max-width: none !important;
  width: 100% !important;
  min-width: 0;
}
body.page-id-116 .wp-block-post-content > .wp-block-shortcode > .madw-root,
body.page-id-116 .madw-root {
  position: static !important;
  left: auto !important;
  transform: none !important;
  box-sizing: border-box;
  margin: 0 auto 40px !important;
  padding: 0 !important;
  width: min(100%, 1480px) !important;
  max-width: none !important;
  container: madw / inline-size;
}
/* A readable line length, but not a hard 500px-wide article column. */
body.page-id-116 .madw-layout {
  display: grid;
  grid-template-columns: clamp(205px, 17vw, 238px) minmax(0, 1fr);
  gap: clamp(20px, 2.5vw, 36px);
  align-items: start;
}
body.page-id-116 .madw-article {
  width: 100%;
  min-width: 0;
  max-width: none;
}
/* V010: fill the actual content column, not an outdated character-based cap.
   On wide screens the article itself already has a responsive max-width and
   inner padding; do not create an artificial blank right-hand column. */
body.page-id-116 .madw-article .madw-prose,
body.page-id-116 .madw-article .madw-lead,
body.page-id-116 .madw-article .madw-at-a-glance .madw-prose {
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  min-width: 0;
}
/* Hide the side rail when the *actual wiki width*, not just device width,
   would leave an uncomfortable reading column. The same TOC becomes a
   collapsible horizontal section above the article. */
@container madw (max-width: 1030px) {
  body.page-id-116 .madw-layout, .madw-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }
  .madw-sidebar, .madw-sidebar-sticky { width: 100%; max-width: none; }
  .madw-sidebar-sticky { position: static; max-height: none; overflow: visible; }
  .madw-nav-disclosure > summary { padding: 10px 13px; }
  .madw-sidebar nav { max-height: min(44vh, 310px); overflow-y: auto; }
  .madw-nav-actions { padding: 8px; }
  .madw-article { max-width: none; }
}
/* Fallback for browsers without container query support. */
@supports not (container-type: inline-size) {
  @media (max-width: 1120px) {
    body.page-id-116 .madw-layout { grid-template-columns: minmax(0,1fr); gap:10px; }
    body.page-id-116 .madw-sidebar-sticky { position:static;max-height:none; }
  }
}
@media (max-width: 700px) {
  body.page-id-116 main.wp-block-group { padding-left: 14px !important; padding-right: 14px !important; }
  body.page-id-116 .madw-root { width: 100% !important; }
  body.page-id-116 .madw-root .madw-heading h1 { font-size: clamp(1.9rem, 7vw, 2.6rem); }
  body.page-id-116 .madw-root .madw-lead { line-height: 1.62; }
  body.page-id-116 .madw-accordion-body { padding: 8px 10px 14px; }
  body.page-id-116 .madw-section-nav { gap: 12px; }
}

/* V015 RC2 — restore the V014 editorial hierarchy; scoped to the private wiki. */
.madw-root.madw-v015{--madw-panel:#151b24;--madw-line:rgba(214,224,246,.13);--madw-ink:#ecf0fb;--madw-muted:#bac5d8;color:var(--madw-ink);font-size:1rem}
.madw-v015 .madw-hub-nav{display:flex;flex-wrap:wrap;align-items:center;gap:7px;margin:0 0 13px;padding:6px;border:1px solid var(--madw-line);border-radius:11px;background:#151928}
.madw-v015 .madw-hub-nav a{display:inline-flex;align-items:center;justify-content:center;padding:8px 16px;border-radius:7px;color:#e5e9f4;text-decoration:none;font-size:.85rem;font-weight:650;transition:background-color .15s ease}
.madw-v015 .madw-hub-nav a:hover{background:#293347;color:#fff}
.madw-v015 .madw-hub-nav a[aria-current=page]{background:#353052;color:#fff6d7;box-shadow:inset 0 -2px 0 #dfb566}
.madw-v015 .madw-scope{margin-bottom:22px}.madw-v015 .madw-scope summary{font-size:.85rem}.madw-v015 .madw-scope .madw-toolbar{display:flex;gap:12px}
.madw-v015 .madw-toolbar label{display:inline-block;align-self:center}.madw-v015 .madw-toolbar select{min-width:140px}.madw-v015 .madw-toolbar button{font-weight:650;padding:7px 14px}
.madw-v015 .madw-landing{padding:clamp(22px,4vw,52px) clamp(20px,3.6vw,48px);margin-bottom:21px;border:1px solid var(--madw-line);border-radius:16px;background:radial-gradient(ellipse at 100% 0%,rgba(100,77,149,.18),transparent 55%),linear-gradient(125deg,#19182d,#131b26 68%)}
.madw-v015 .madw-landing h1{font-size:clamp(2rem,3.7vw,3.3rem);line-height:1.12;margin:6px 0 14px;letter-spacing:-.02em}
.madw-v015 .madw-landing>p:not(.madw-kicker){max-width:65ch;color:#c9d4e5;font-weight:400;line-height:1.75;font-size:1.05rem}
.madw-v015 .madw-hub-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px;margin:10px 0 26px}
.madw-v015 .madw-hub-card{display:flex;flex-direction:column;gap:8px;padding:19px;border:1px solid var(--madw-line);border-radius:13px;background:#19212c;text-decoration:none!important}
.madw-v015 .madw-hub-card:hover{background:#252d3d;border-color:rgba(220,179,103,.45)}
.madw-v015 .madw-hub-card strong{font-size:1.17rem;color:#f4e3c2}.madw-v015 .madw-hub-card span{font-size:.87rem;font-weight:400;line-height:1.55;color:#c2cad8}
.madw-v015 .madw-index-group{margin:20px 0}.madw-v015 .madw-index-group h3{font-size:1.09rem;letter-spacing:.02em;margin:0 0 11px;color:#f0e0c5}
.madw-v015 .madw-index{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:10px;margin:0;padding:0}
.madw-v015 .madw-index li{padding:0;overflow:hidden;background:#19212d}
.madw-v015 .madw-index li a{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:48px;padding:11px 14px;text-decoration:none;color:#e1ebf3;font-size:.9rem;font-weight:600}
.madw-v015 .madw-index li a span{font-size:.9rem;color:#9eb4c9}
.madw-v015 .madw-index li a:hover{background:#26374b;color:#fff}
.madw-v015 .madw-layout{grid-template-columns:clamp(205px,17vw,240px) minmax(0,1fr);align-items:start;gap:clamp(16px,2.7vw,37px)}
.madw-v015 .madw-sidebar-sticky{background:#171c2b}.madw-v015 .madw-sidebar nav a.madw-nav-section{color:#c0ccdc;font-weight:450;overflow-wrap:anywhere}
.madw-v015 .madw-heading{margin:0 0 16px;padding:0 0 13px;border-bottom:1px solid var(--madw-line)}
.madw-v015 .madw-heading h1{font-weight:800;font-size:clamp(1.9rem,3vw,3rem);letter-spacing:-.025em;color:#fff}
.madw-v015 .madw-prose{max-width:78ch!important;color:#dde4f0;font-size:1rem;line-height:1.72;font-weight:400}
.madw-v015 .madw-prose p{font-size:1rem;line-height:1.76;font-weight:400;margin:.75em 0 1em}
.madw-v015 .madw-section h3{color:#f5e4cd;font-size:1.15rem;font-weight:740;line-height:1.38}
.madw-v015 .madw-book{background:rgba(255,255,255,.012)}.madw-v015 .madw-book>summary{color:#e6d9f1}
.madw-v015 .madw-at-a-glance{margin:0 0 20px;padding:clamp(16px,2vw,25px);background:linear-gradient(115deg,rgba(81,69,130,.2),rgba(43,117,123,.08));border-color:rgba(175,162,217,.25)!important}
.madw-v015 .madw-at-a-glance h2{font-size:1.22rem;margin:0 0 8px;color:#e9e0ff}
.madw-v015 .madw-at-a-glance .madw-prose{font-size:1.03rem}
.madw-v015 .madw-accordion{margin:12px 0}.madw-v015 .madw-accordion>summary{font-size:1rem;font-weight:730}
.madw-v015 .madw-related{padding:18px 20px}.madw-v015 .madw-related h2{font-size:1.24rem;margin:0 0 10px}
.madw-v015 .madw-related-list{display:flex;flex-wrap:wrap;gap:9px;padding:0;list-style:none}
.madw-v015 .madw-related-list li{margin:0}.madw-v015 .madw-related-list a{display:block;padding:7px 12px;border:1px solid rgba(255,255,255,.13);border-radius:8px;background:#1e2935;text-decoration:none;font-size:.85rem}
.madw-v015 .madw-empty{padding:17px 20px;background:#18212b;border:1px solid var(--madw-line);border-radius:11px;color:#d1dbe8;font-weight:400}
@container madw (max-width:1030px){body.page-id-116 .madw-v015 .madw-layout,.madw-v015 .madw-layout{grid-template-columns:minmax(0,1fr);gap:12px}}
@media(max-width:920px){.madw-v015 .madw-layout{grid-template-columns:minmax(0,1fr);gap:12px}.madw-v015 .madw-sidebar-sticky{position:static;max-height:none}.madw-v015 .madw-sidebar nav{max-height:270px;overflow:auto}}
@media(max-width:640px){.madw-v015 .madw-hub-nav{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:2px}.madw-v015 .madw-hub-nav a{font-size:.76rem;padding:9px 3px}.madw-v015 .madw-hub-grid{grid-template-columns:1fr}.madw-v015 .madw-landing{padding:22px 17px}.madw-v015 .madw-toolbar{align-items:stretch}.madw-v015 .madw-toolbar select,.madw-v015 .madw-toolbar button{width:100%}.madw-v015 .madw-prose,.madw-v015 .madw-prose p{font-size:.96rem}}
@media(prefers-reduced-motion:reduce){.madw-v015 .madw-hub-nav a{transition:none}}
