/* Wiki UX v012 — layout-only. Approved editorial sections and server-side spoiler filters are not modified. */
.mad-site-header{box-shadow:0 2px 16px #09041635!important}
.mad-site-header.wp-block-group{padding-top:9px!important;padding-bottom:9px!important;min-height:62px}
.mad-site-header .wp-block-site-title{font-size:clamp(1.1rem,2.15vw,1.75rem)!important;line-height:1.15!important;display:flex;align-items:center;white-space:nowrap}
.mad-site-header .wp-block-site-title::before{box-sizing:border-box;width:31px!important;height:31px!important;min-width:31px;flex:0 0 31px;font-size:1.22rem;line-height:1;display:inline-flex!important;align-items:center;justify-content:center;border-radius:9px!important;margin:0 10px 0 0!important;box-shadow:0 0 0 2px #ad77e944!important;vertical-align:middle;overflow:hidden}
.mad-site-header .wp-block-navigation{font-size:.76rem!important;letter-spacing:.04em!important;gap:clamp(10px,1.35vw,22px)}
/* Keep the wiki navigation immediately below the global site header. */
body.page-id-131 .wp-site-blocks>main{margin-block-start:0!important}
body.page-id-131 main.wp-block-group.is-layout-constrained{padding-top:7px!important}
body.page-id-131 main .wp-block-post-content,
body.page-id-131 main .wp-block-post-content>.wp-block-shortcode{margin-block-start:0!important;margin-block-end:0!important}
body.page-id-131 .madw-root.madw-public{margin-top:0!important;padding-top:0!important}
.madw-public .madw-topline{display:none!important}
.madw-public .madw-hub-nav{position:relative;align-items:center;gap:5px!important;padding:5px!important;margin-bottom:9px!important}
.madw-public .madw-hub-nav>a{min-height:36px;padding:7px 13px!important}
.madw-public .madw-hub-nav .madw-scope{position:relative;overflow:visible;margin:0 0 0 auto!important;max-width:100%;border:0!important;background:none!important;border-radius:0!important;z-index:20}
.madw-public .madw-hub-nav .madw-scope>summary{display:flex;gap:7px;align-items:center;padding:7px 12px!important;min-height:36px;border:1px solid #576078;border-radius:8px;line-height:1.25;list-style:none;white-space:nowrap;cursor:pointer;background:#22283b}
.madw-public .madw-hub-nav .madw-scope>summary::-webkit-details-marker{display:none}
.madw-public .madw-hub-nav .madw-scope>summary::before{content:'⚙';color:#ffce84;font-size:1rem}
.madw-public .madw-scope-value{font-size:.7rem!important;color:#ace6f2;font-weight:600}
.madw-public .madw-scope[open]>summary{background:#354059;border-color:#8d9cba}
.madw-public .madw-scope-panel{position:absolute;right:0;top:calc(100% + 9px);width:min(390px,calc(100vw - 38px));padding:15px;border:1px solid #68708b;border-radius:13px;box-shadow:0 24px 45px #000b;background:#1b2332;color:#e3edf7}
.madw-public .madw-scope-heading{margin:0 0 9px!important;font-size:.9rem;color:#e6e8f3}
.madw-public .madw-scope-panel .madw-show-all{display:inline-flex;background:#344258;border:1px solid #8894aa;border-radius:7px;color:#fff0d5;font-weight:700;text-decoration:none;padding:7px 12px;margin:0 0 12px;font-size:.84rem}
.madw-public .madw-scope-panel .madw-toolbar{display:grid!important;grid-template-columns:1fr;gap:8px!important;margin:0!important;padding:12px 0!important;background:transparent!important;border:0!important;border-top:1px solid #ffffff1e!important;border-radius:0!important}
.madw-public .madw-scope-panel .madw-toolbar label{margin:0;font-size:.82rem;line-height:1.35}
.madw-public .madw-scope-panel .madw-toolbar select,.madw-public .madw-scope-panel .madw-toolbar button{width:100%;min-height:38px}
.madw-public .madw-scope-panel .madw-scope-hint{padding:8px 0 0!important;margin:0!important;border-top:1px solid #ffffff1e!important;font-size:.76rem;line-height:1.45;color:#a5b9cc}
.madw-public .madw-landing{padding:clamp(20px,2.7vw,35px)!important;margin-bottom:16px!important}
.madw-public .madw-landing h2{font-size:clamp(1.9rem,3vw,2.6rem);margin:6px 0}
.madw-public .madw-landing>p:not(.madw-kicker){font-size:.96rem!important;line-height:1.55!important;max-width:75ch}
.madw-public .madw-hub-grid{margin:4px 0 14px;gap:11px}
.madw-public .madw-hub-card{padding:15px;gap:5px}
.madw-public .madw-discovery-heading{margin:19px 0 11px!important;font-size:clamp(1.25rem,2vw,1.65rem)!important}
.madw-public .madw-section-intro p{font-size:.9rem;line-height:1.55;max-width:70ch;color:#becbda}
.madw-public .madw-spotlights{margin:17px 0 23px}
.madw-public .madw-spotlight-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:11px;margin:12px 0 20px}
.madw-public .madw-spotlight{min-height:175px;padding:15px 16px;gap:8px;line-height:1.4}
.madw-public .madw-spotlight strong{font-size:1.03rem}
.madw-public .madw-spotlight>span{font-size:.83rem;line-height:1.48}
.madw-public .madw-spotlight em{font-size:.78rem}
.madw-public .madw-topic-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:14px 0 28px;align-items:start}
.madw-public .madw-topic-group{border:1px solid #4b4f67;border-radius:13px;background:linear-gradient(145deg,#201e34,#1a2531);min-width:0;overflow:hidden}
.madw-public .madw-topic-group>summary{display:flex;flex-direction:column;gap:8px;padding:19px 20px;cursor:pointer;min-height:158px;list-style:none}
.madw-public .madw-topic-group>summary::-webkit-details-marker{display:none}
.madw-public .madw-topic-group>summary:hover{background:#2a2942}
.madw-public .madw-topic-group[open]>summary{border-bottom:1px solid #ffffff20}
.madw-public .madw-topic-title{color:#fff0d2;font-size:1.13rem;font-weight:800;line-height:1.2}
.madw-public .madw-book-kicker{font-size:.69rem;color:#8ee7f6;font-weight:800;text-transform:uppercase;letter-spacing:.09em}
.madw-public .madw-topic-count{font-size:.73rem;letter-spacing:.03em;color:#a9e9f6}
.madw-public .madw-topic-intro{color:#c6d0df;font-size:.86rem;line-height:1.5}
.madw-public .madw-topic-action{color:#a8eaff;font-size:.77rem;font-weight:750;margin-top:auto}
.madw-public .madw-topic-group .madw-index{display:grid;grid-template-columns:1fr;gap:6px!important;padding:12px!important;margin:0}
.madw-public .madw-topic-group .madw-index li{border-radius:7px}
.madw-public .madw-topic-group .madw-index li a{min-height:35px;padding:7px 10px;font-size:.83rem;line-height:1.35}
.madw-public .madw-article .madw-heading{margin-bottom:8px;padding:5px 0 8px}
.madw-public .madw-sidebar-sticky{top:78px}
@media(max-width:1200px){.madw-public .madw-spotlight-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:900px){.madw-public .madw-spotlight-grid,.madw-public .madw-topic-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.mad-site-header .wp-block-site-title{font-size:1.25rem!important}}
@media(max-width:640px){.mad-site-header.wp-block-group{padding:8px 12px!important}.mad-site-header .wp-block-site-title{font-size:1rem!important;white-space:normal}.mad-site-header .wp-block-site-title::before{width:27px!important;height:27px!important;min-width:27px;flex-basis:27px;font-size:1rem}.madw-public .madw-hub-nav{display:flex!important;grid-template-columns:none!important;flex-wrap:wrap!important;gap:4px!important}.madw-public .madw-hub-nav>a{padding:7px 9px!important;font-size:.77rem}.madw-public .madw-hub-nav .madw-scope{position:static;margin-left:auto!important}.madw-public .madw-hub-nav .madw-scope>summary{padding:7px 8px!important}.madw-public .madw-scope-panel{top:calc(100% + 6px);left:0;right:0;width:auto}.madw-public .madw-scope-value{display:none}.madw-public .madw-spotlight-grid,.madw-public .madw-topic-grid{grid-template-columns:1fr}.madw-public .madw-spotlight{min-height:0}.madw-public .madw-topic-group>summary{min-height:0}.madw-public .madw-landing{padding:20px!important}}
.madw-public .madw-hub-grid-two{grid-template-columns:repeat(2,minmax(0,1fr));margin:5px 0 16px}
.madw-public .madw-index-tools{display:flex;align-items:center;flex-wrap:wrap;gap:10px 14px;margin:10px 0 16px}
.madw-public .madw-index-tools label{color:#f4e5cf;font-size:.86rem;font-weight:800;white-space:nowrap}
.madw-public .madw-index-tools input{min-width:220px;max-width:410px;flex:1;min-height:40px;padding:8px 12px;border:1px solid #6e7894;border-radius:9px;background:#1b2433;color:#fff;font:inherit;font-size:.9rem}
.madw-public .madw-index-tools input:focus-visible{outline:2px solid #f8d18a;outline-offset:2px}
.madw-public .madw-index-tools [role=status]{color:#9fdae9;font-size:.8rem}
.madw-public .madw-index li[hidden],.madw-public .madw-topic-group[hidden]{display:none!important}
@media(max-width:640px){.madw-public .madw-hub-grid-two{grid-template-columns:1fr}.madw-public .madw-index-tools{align-items:stretch;flex-direction:column}.madw-public .madw-index-tools input{width:100%;max-width:none}}
/* V012.1: correct the actual block-theme wrappers, not only the inner wiki.
   Header/logo and navigation sit on the same vertical centre; no phantom space
   between the site header and the wiki subnavigation. */
.mad-site-header.wp-block-group{
  box-sizing:border-box;
  display:flex!important;
  align-items:center!important;
  justify-content:center;
  min-height:56px!important;
  padding-block:5px!important;
  margin-block:0!important;
}
.mad-site-header>.wp-block-group.alignwide{
  width:100%;
  min-height:46px;
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  margin-block:0!important;
  gap:16px;
}
.mad-site-header .wp-block-site-title{
  display:flex!important;
  align-items:center!important;
  line-height:1!important;
  min-height:38px;
  margin:0!important;
  padding:0!important;
}
.mad-site-header .wp-block-site-title>a{display:inline-flex;align-items:center;min-height:38px;line-height:1.1}
.mad-site-header .wp-block-navigation,
.mad-site-header .wp-block-navigation__container,
.mad-site-header .wp-block-navigation-item{
  align-self:center!important;
  align-items:center!important;
  margin-block:0!important;
  line-height:1.15!important;
}
body.page-id-131 .wp-site-blocks>.wp-block-template-part{
  margin-block:0!important;padding-block:0!important;
}
body.page-id-131 .wp-site-blocks>main.wp-block-group{
  margin:0!important;
  padding-top:0!important;
}
body.page-id-131 .wp-site-blocks>main>.wp-block-post-title{display:none!important;margin:0!important}
body.page-id-131 .wp-site-blocks>main .wp-block-post-content{
  margin:0!important;padding-block:0!important;
}
body.page-id-131 .wp-site-blocks>main .madw-root.madw-public{
  margin:0 auto!important;padding-top:0!important;
}
body.page-id-131 .madw-public .madw-hub-nav{margin-top:0!important}
@media(max-width:782px){
  .mad-site-header>.wp-block-group.alignwide{min-height:42px;gap:8px}
  .mad-site-header.wp-block-group{min-height:52px!important;padding-block:4px!important}
}
/* V012.2: compact site-wide footer. No content removed. */
.wp-site-blocks>footer.wp-block-template-part{margin-block-start:0!important;padding-block:0!important}
.mad-site-footer.wp-block-group{
  box-sizing:border-box;
  margin-block:0!important;
  padding:16px clamp(16px,3vw,48px)!important;
}
.mad-site-footer>.wp-block-group.alignwide{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  flex-wrap:wrap!important;
  gap:12px 25px;
  margin-block:0!important;
}
.mad-site-footer .mad-footer-brand{
  display:grid!important;
  grid-template-columns:auto minmax(0,1fr);
  align-items:baseline;
  column-gap:14px;
  row-gap:4px;
  flex:1 1 540px;
  min-width:0;
  margin:0!important;
}
.mad-site-footer .mad-footer-brand .wp-block-site-title{
  grid-column:1/-1;
  margin:0!important;
  font-size:1.15rem!important;
  font-weight:800;
  line-height:1.25;
}
.mad-site-footer .mad-footer-brand>p{
  margin:0!important;
  font-size:.78rem!important;
  line-height:1.4;
  color:#aebccd;
}
.mad-site-footer .mad-footer-brand .wp-block-shortcode{
  margin:0!important;
  min-width:0;
}
.mad-site-footer .mad-global-external{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  align-items:center;
  font-size:.77rem;
  line-height:1.4;
}
.mad-site-footer .mad-global-external a{color:#c7d6e6;text-decoration:underline}
.mad-site-footer .wp-block-navigation{margin:0!important;gap:clamp(10px,1.25vw,20px)!important;font-size:.78rem!important}
.mad-site-footer .wp-block-navigation a{text-decoration:none}
@media(max-width:890px){
  .mad-site-footer>.wp-block-group.alignwide{align-items:flex-start!important;gap:10px}
  .mad-site-footer .mad-footer-brand{flex-basis:100%}
}
@media(max-width:600px){
  .mad-site-footer.wp-block-group{padding:14px 18px!important}
  .mad-site-footer .mad-footer-brand{grid-template-columns:1fr;row-gap:5px}
  .mad-site-footer .mad-footer-brand .wp-block-site-title,
  .mad-site-footer .mad-footer-brand>p,
  .mad-site-footer .mad-footer-brand .wp-block-shortcode{grid-column:1}
  .mad-site-footer .wp-block-navigation{gap:9px 13px!important}
}
@media(prefers-reduced-motion:reduce){.madw-public .madw-spotlight,.madw-public .madw-topic-group{transition:none}}
