/* v0.5.6 - Timelines theme chrome retained; game workspace isolated. */
body.wgm-mordheim-route{--wgm-green:#22543e;--wgm-green-dark:#173e2e;--wgm-accent:#4b9c6d;--wgm-light:#e5f2e8;}
/* Hide Timelines sidebars and home-page sliders ONLY on Mordheim/account routes. */
body.wgm-mordheim-route aside:not(.wgm-dialog aside):not(.wg-shell aside),
body.wgm-mordheim-route #sidebar,
body.wgm-mordheim-route .sidebar,
body.wgm-mordheim-route .site-sidebar,
body.wgm-mordheim-route .widget-area,
body.wgm-mordheim-route .top-carousel,
body.wgm-mordheim-route .news-carousel,
body.wgm-mordheim-route .featured-carousel,
body.wgm-mordheim-route .featured-slider,
body.wgm-mordheim-route .swiper:not(.wgm-swiper),
body.wgm-mordheim-route .slick-slider,
body.wgm-mordheim-route .owl-carousel{display:none!important;}
/* Page root expands without trusting fixed widths from the Timelines sidebar grid. */
body.wgm-mordheim-route #wgm-dashboard,
body.wgm-mordheim-route main.wgm-builder-wrap,
body.wgm-mordheim-route main.wgm-account-wrap{
 box-sizing:border-box!important;position:relative!important;float:none!important;clear:both!important;
 display:block!important;flex:none!important;min-width:0!important;
 width:100%!important;max-width:1460px!important;margin:0 auto!important;
 padding:24px clamp(12px,2.5vw,36px) 60px!important;overflow:visible!important;
 color:#eaf2ee!important;
}
body.wgm-mordheim-route #wgm-dashboard .wgm-head h1,
body.wgm-mordheim-route #wgm-dashboard .wgm-section-head h2,
body.wgm-mordheim-route #wgm-dashboard .wgm-hero h1{color:#f3faf5!important;line-height:1.2!important;word-break:normal!important;overflow-wrap:break-word!important;}
body.wgm-mordheim-route #wgm-dashboard .wgm-head p{color:#bccdc2!important;}
body.wgm-mordheim-route #wgm-dashboard .wgm-card,
body.wgm-mordheim-route #wgm-dashboard .wgm-create,
body.wgm-mordheim-route #wgm-dashboard .wgm-table-wrap{min-width:0!important;}
body.wgm-mordheim-route #wgm-dashboard .wgm-cards{grid-template-columns:repeat(auto-fit,minmax(min(100%,275px),1fr))!important;}
body.wgm-mordheim-route #wgm-dashboard .wgm-primary,
body.wgm-mordheim-route #wgm-dashboard .wgm-open,
body.wgm-mordheim-route #wgm-dashboard .wgm-view button[aria-pressed=true]{background:var(--wgm-green)!important;color:white!important;border-color:var(--wgm-green)!important;}
body.wgm-mordheim-route #wgm-dashboard .wgm-profile{color:#d5ecd9!important;border-color:#648a72!important;}
body.wgm-mordheim-route #wgm-dashboard .wgm-create{background:#e4eee5!important;color:#153626!important;border-color:#bcd9c3!important;}
body.wgm-mordheim-route #wgm-dashboard .wgm-create p{color:#48644f!important;}
body.wgm-mordheim-route #wgm-dashboard .wgm-card,
body.wgm-mordheim-route #wgm-dashboard .wgm-table-wrap{background:#f9fcf9!important;color:#21362a!important;border-color:#c7dacb!important;}
body.wgm-mordheim-route #wgm-dashboard .wgm-card h3,
body.wgm-mordheim-route #wgm-dashboard .wgm-cost strong{color:#183e2b!important;}
body.wgm-mordheim-route #wgm-dashboard .wgm-table-wrap a{color:var(--wgm-green)!important;}
body.wgm-mordheim-route #wgm-dashboard .wgm-meter span{background:var(--wgm-accent)!important;}
body.wgm-mordheim-route #wgm-dashboard .wgm-filters{min-width:0!important;width:100%!important;}
body.wgm-mordheim-route #wgm-dashboard .wgm-filters>*{min-width:0!important;max-width:100%!important;}
body.wgm-mordheim-route #wgm-dashboard .wgm-table-wrap{max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch;}
body.wgm-mordheim-route .wg-header{position:relative!important;top:auto!important;z-index:2!important;background:#163f2d!important;color:#f5fff6!important;}
body.wgm-mordheim-route .wg-header h1{color:#f5fff6!important;}
body.wgm-mordheim-route .wg-header-actions button:not([disabled]){background:#276547!important;color:#fff!important;border-color:#5b9970!important;}
body.wgm-mordheim-route .wg-shell{max-width:100%!important;width:100%!important;margin:auto!important;}
body.wgm-mordheim-route .wg-main{background:#f4f9f3!important;color:#1c3827!important;}
body.wgm-mordheim-route .wg-fighter{background:#fff!important;border-color:#b9d8c2!important;}
body.wgm-mordheim-route .wg-groups h2{border-color:#b8d5bf!important;}
body.wgm-mordheim-route .wg-fighter .wg-eyebrow{color:#477f5b!important;}
body.wgm-mordheim-route .wg-fighter-head b{color:#24583b!important;}
body.wgm-mordheim-route .wg-fighter button,
body.wgm-mordheim-route .wg-main button{border-color:#8bb69a;}
body.wgm-mordheim-route .wg-rule-link{color:#206b42!important;}
body.wgm-mordheim-route .wg-editor-tabs button.active{background:#245a3b!important;}
body.wgm-mordheim-route .wgm-account button{background:#245a3b!important;}
body.wgm-mordheim-route .wgm-account a{color:#236441!important;}
@media(max-width:700px){
 body.wgm-mordheim-route #wgm-dashboard,
 body.wgm-mordheim-route main.wgm-builder-wrap,
 body.wgm-mordheim-route main.wgm-account-wrap{padding:12px 10px 40px!important;width:100%!important;}
 body.wgm-mordheim-route #wgm-dashboard .wgm-head{flex-wrap:wrap!important;}
 body.wgm-mordheim-route #wgm-dashboard .wgm-cards{grid-template-columns:1fr!important;}
 body.wgm-mordheim-route #wgm-dashboard .wgm-filters{display:flex!important;flex-direction:column!important;}
 body.wgm-mordheim-route #wgm-dashboard .wgm-filters>*{width:100%!important;flex-basis:auto!important;}
 body.wgm-mordheim-route #wgm-dashboard .wgm-table-wrap{overflow:visible!important;background:transparent!important;border:0!important;}
 body.wgm-mordheim-route #wgm-dashboard .wgm-table-wrap table,
 body.wgm-mordheim-route #wgm-dashboard .wgm-table-wrap tbody,
 body.wgm-mordheim-route #wgm-dashboard .wgm-table-wrap tr,
 body.wgm-mordheim-route #wgm-dashboard .wgm-table-wrap td{display:block!important;width:100%!important;min-width:0!important;box-sizing:border-box!important;}
 body.wgm-mordheim-route #wgm-dashboard .wgm-table-wrap table{min-width:0!important;}
 body.wgm-mordheim-route #wgm-dashboard .wgm-table-wrap thead{display:none!important;}
 body.wgm-mordheim-route #wgm-dashboard .wgm-table-wrap tr{background:#fff!important;border:1px solid #bfd7c5!important;border-radius:12px!important;padding:12px!important;margin:0 0 12px!important;}
 body.wgm-mordheim-route #wgm-dashboard .wgm-table-wrap td{border-bottom:1px solid #e0ece1!important;padding:8px 4px!important;display:flex!important;justify-content:space-between;gap:12px;align-items:flex-start;overflow-wrap:anywhere;}
 body.wgm-mordheim-route #wgm-dashboard .wgm-table-wrap td::before{content:attr(data-label);color:#64806b;flex:0 0 90px;font-size:12px;}
 body.wgm-mordheim-route #wgm-dashboard .wgm-table-wrap td.wgm-row-actions{justify-content:flex-end;gap:8px;}
 body.wgm-mordheim-route #wgm-dashboard .wgm-table-wrap td.wgm-row-actions::before{content:none;}
 body.wgm-mordheim-route .wg-header{position:relative!important;top:auto!important;}
}
@media print{body.wgm-mordheim-route .wg-header{position:static!important;background:white!important;color:black!important;}}
/* v0.5.7: width is measured against viewport in theme-fix.js, not column %. */
body.wgm-mordheim-route .wgm-theme-workspace-ancestor{overflow:visible!important;}
body.wgm-mordheim-route #wgm-dashboard,
body.wgm-mordheim-route main.wgm-builder-wrap,
body.wgm-mordheim-route main.wgm-account-wrap{max-width:none!important;min-width:0!important;overflow:visible!important;isolation:isolate;}
body.wgm-mordheim-route #wgm-dashboard .wgm-head,
body.wgm-mordheim-route #wgm-dashboard .wgm-create,
body.wgm-mordheim-route #wgm-dashboard .wgm-list,
body.wgm-mordheim-route #wgm-dashboard .wgm-filters,
body.wgm-mordheim-route #wgm-dashboard .wgm-cards{width:100%!important;max-width:100%!important;min-width:0!important;box-sizing:border-box!important;}
body.wgm-mordheim-route #wgm-dashboard .wgm-create{display:flex!important;flex-wrap:wrap!important;align-items:center!important;gap:14px!important;}
body.wgm-mordheim-route #wgm-dashboard .wgm-create>div{min-width:220px!important;flex:1 1 220px!important;}
body.wgm-mordheim-route #wgm-dashboard .wgm-section-head h2{overflow-wrap:normal!important;word-break:normal!important;}
@media(max-width:700px){body.wgm-mordheim-route #wgm-dashboard .wgm-create>div{min-width:0!important;flex:1 1 100%!important;}}
/* v0.5.10.1: remove leftover Timelines sidebar column/carousel chrome. */
body.wgm-mordheim-route .wgm-theme-chrome-hidden{display:none!important;width:0!important;min-width:0!important;max-width:0!important;height:0!important;margin:0!important;padding:0!important;border:0!important;visibility:hidden!important;}
body.wgm-mordheim-route #wgm-dashboard,
body.wgm-mordheim-route .wgm-builder-wrap,
body.wgm-mordheim-route .wgm-account-wrap{z-index:1;}

/* v0.5.10.2: actual Timelines Slick posts carousel selectors identified in DevTools.
   Strictly limited to Mordheim/account routes; no global Slick behavior changes. */
body.wgm-mordheim-route [class*="slick-posts-"],
body.wgm-mordheim-route .slick-prev,
body.wgm-mordheim-route .slick-next,
body.wgm-mordheim-route .slick-posts {
 display:none!important; visibility:hidden!important; height:0!important; min-height:0!important;
 margin:0!important; padding:0!important; border:0!important; pointer-events:none!important;
}

/* v0.5.12.5: viewport-bound workspace, including narrow Timelines parent columns. */
body.wgm-mordheim-route main.wgm-builder-wrap {
 box-sizing:border-box!important;
 max-width:none!important;
 min-width:0!important;
}
body.wgm-mordheim-route main.wgm-builder-wrap #wg-mordheim-app {
 display:block!important; width:100%!important; max-width:100%!important;
 min-width:0!important; box-sizing:border-box!important;
}
@media(max-width:700px){
 body.wgm-mordheim-route main.wgm-builder-wrap {padding:0!important;}
 body.wgm-mordheim-route main.wgm-builder-wrap .wg-tabs {flex-wrap:wrap!important;}
 body.wgm-mordheim-route main.wgm-builder-wrap .wg-tabs button {white-space:normal!important;}
}
