/* WA Multi v1.9.9 — follow the existing w4 theme; do not paint separate teal blocks. */
.w4-shell {
  --wm9-card:rgba(255,255,255,.045);
  --wm9-card-hover:rgba(255,255,255,.075);
  --wm9-line:rgba(255,255,255,.12);
  --wm9-text:#f1f8f3;
  --wm9-muted:#aebdb4;
  --wm9-pop:#102019;
  --wm9-pop-shadow:0 26px 70px rgba(0,0,0,.35);
  --wm9-accent:#94edb9;
}
.w4-shell[data-theme="light"] {
  --wm9-card:rgba(6,38,23,.035);
  --wm9-card-hover:rgba(6,38,23,.065);
  --wm9-line:rgba(6,38,23,.13);
  --wm9-text:#172e23;
  --wm9-muted:#51675d;
  --wm9-pop:#fff;
  --wm9-pop-shadow:0 26px 70px rgba(4,37,19,.17);
  --wm9-accent:#116c43;
}
/* Clear v1.9.8's fixed-gradient panels and return the theme to the site shell. */
.w4-shell .wm8-discovery,
.w4-shell .wm8-download-hub,
.w4-shell .wm8-pagehero,
.w4-shell .wm8-section,
.w4-shell .wm8-section-alt {
  background:transparent!important;
  color:var(--wm9-text)!important;
  border-top:1px solid var(--wm9-line);
}
.w4-shell .wm8-discovery::before,.w4-shell .wm8-download-hub::before,.w4-shell .wm8-pagehero::before {display:none!important}
.w4-shell .wm8-overline,.w4-shell .wm8-detail-number,.w4-shell .wm8-step span {color:var(--wm9-accent)}
.w4-shell .wm8-discovery h2,.w4-shell .wm8-hub-heading h2,.w4-shell .wm8-section h2,.w4-shell .wm8-pagehero h1,
.w4-shell .wm8-discovery-card h3,.w4-shell .wm8-hub-card h3,.w4-shell .wm8-info h3,
.w4-shell .wm8-pkg-top strong,.w4-shell .wm8-requirements h3,.w4-shell .wm8-faq summary,.w4-shell .wm8-other h3,
.w4-shell .wm8-page-context strong {color:var(--wm9-text)!important}
.w4-shell .wm8-discovery-head p,.w4-shell .wm8-hub-heading p,.w4-shell .wm8-section-title p,.w4-shell .wm8-discovery-card p,
.w4-shell .wm8-hub-card p,.w4-shell .wm8-discovery-card small,.w4-shell .wm8-download-item p,.w4-shell .wm8-info p,
.w4-shell .wm8-faq p,.w4-shell .wm8-requirements p,.w4-shell .wm8-subhead,.w4-shell .wm8-step p,
.w4-shell .wm8-crumbs,.w4-shell .wm8-version,.w4-shell .wm8-hash,.w4-shell .wm8-notice {color:var(--wm9-muted)!important}
.w4-shell .wm8-discovery-card,.w4-shell .wm8-hub-card,.w4-shell .wm8-download-item,.w4-shell .wm8-info,
.w4-shell .wm8-faq,.w4-shell .wm8-requirements,.w4-shell .wm8-notice {
  background:var(--wm9-card)!important;
  border:1px solid var(--wm9-line)!important;
  box-shadow:none!important;
}
.w4-shell .wm8-discovery-card:hover {background:var(--wm9-card-hover)!important;border-color:var(--wm9-accent)!important}
.w4-shell .wm8-hub-card.is-windows {background:var(--wm9-card)!important;border-color:var(--wm9-accent)!important}
.w4-shell .wm8-discovery h2 em,.w4-shell .wm8-card-link,.w4-shell .wm8-view-all,
.w4-shell .wm8-linux-strip a,.w4-shell .wm8-hub-guide,.w4-shell .wm8-crumbs a,.w4-shell .wm8-other-links a,
.w4-shell .wm8-page-context a {color:var(--wm9-accent)!important}
.w4-shell .wm8-os-symbol,.w4-shell .wm8-os-glyph {background:var(--wm9-card)!important;border-color:var(--wm9-line)!important;color:var(--wm9-text)!important}
.w4-shell .wm8-hero-benefits,.w4-shell .wm8-other-links a,.w4-shell .wm8-hash code,.w4-shell .wm8-hub-guide {color:var(--wm9-text)!important}
.w4-shell .wm8-cta-secondary {background:var(--wm9-card)!important;border-color:var(--wm9-line)!important;color:var(--wm9-text)!important}
.w4-shell .wm8-other-links a {background:var(--wm9-card)!important;border-color:var(--wm9-line)!important}
.w4-shell .wm8-page-context {background:transparent!important;border-bottom:1px solid var(--wm9-line)!important;color:var(--wm9-muted)!important}
.w4-shell .wm8-page-context span {color:var(--wm9-muted)!important}
.w4-shell .wm8-steps .wm8-step {border-top-color:var(--wm9-line)}
.w4-shell .wm8-discovery-card,.w4-shell .wm8-hub-card {border-radius:18px}
.w4-shell .wm8-linux-strip {border-top:1px solid var(--wm9-line);margin-top:21px;gap:12px;padding-top:20px}
.w4-shell .wm8-linux-strip > span {color:var(--wm9-muted)}
.w4-shell .wm8-linux-strip > a {display:inline-flex;align-items:center;gap:10px;background:var(--wm9-card);border:1px solid var(--wm9-line);border-radius:12px;padding:9px 13px;text-decoration:none!important}
.w4-shell .wm8-linux-strip > a:hover {background:var(--wm9-card-hover)}
/* Brand artwork: downloaded into public/assets/os-logos, served locally. */
.wm9-mark-group {display:inline-flex;align-items:center;justify-content:center;gap:5px;flex:none;min-width:30px}
.wm9-mark-group img {width:29px;height:29px;display:block;object-fit:contain;flex:none}
.wm9-mark-group.is-multi img {width:24px;height:24px}
.wm9-mark-fallback {width:28px;height:28px;display:inline-grid;place-items:center;border:1px solid var(--wm9-line);border-radius:8px;font-size:14px;font-weight:900;color:var(--wm9-text)}
.wm8-os-symbol:has(.wm9-mark-group.is-multi),.wm8-os-glyph:has(.wm9-mark-group.is-multi) {width:auto;min-width:75px;padding:6px 9px}
.wm8-linux-strip .wm9-mark-group.is-multi img {width:20px;height:20px}
/* Exactly one Download nav item; details/summary supports keyboard, mouse and touch. */
.w4-header {overflow:visible!important;z-index:100}
.w4-header .w4-header-inner,.w4-header .w4-nav {overflow:visible!important}
.wm9-download-menu {position:relative;min-width:0;z-index:110}
.w4-nav .wm9-download-menu {display:inline-flex;align-items:center}
.wm9-download-menu summary {list-style:none;cursor:pointer;user-select:none}
.wm9-download-menu summary::-webkit-details-marker {display:none}
.wm9-download-trigger {display:inline-flex;align-items:center;gap:8px;color:inherit;font-weight:inherit;padding:10px 0;white-space:nowrap}
.wm9-download-trigger i {font-size:10px;transition:transform .18s}
.wm9-download-menu[open] .wm9-download-trigger i {transform:rotate(180deg)}
.wm9-download-trigger:hover,.wm9-download-trigger.active,.wm9-download-menu[open] .wm9-download-trigger {color:var(--wm9-accent)}
.wm9-download-trigger:focus-visible {outline:2px solid var(--wm9-accent);outline-offset:4px;border-radius:3px}
.wm9-mega-panel {position:absolute;top:calc(100% + 12px);left:50%;transform:translateX(-50%);width:min(770px,calc(100vw - 30px));padding:18px;color:var(--wm9-text);border:1px solid var(--wm9-line);border-radius:18px;background:var(--wm9-pop);box-shadow:var(--wm9-pop-shadow);z-index:999;max-height:min(85vh,720px);overflow:auto;overscroll-behavior:contain}
.wm9-mega-heading,.wm9-mega-footer {display:flex;justify-content:space-between;align-items:center;gap:16px}
.wm9-mega-heading {padding:2px 4px 15px;border-bottom:1px solid var(--wm9-line)}
.wm9-mega-kicker {font-size:11px;font-weight:850;letter-spacing:1.2px;color:var(--wm9-muted)}
.wm9-mega-heading a,.wm9-mega-footer a {font-size:12px;font-weight:800;color:var(--wm9-accent);text-decoration:none!important}
.wm9-mega-list {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:13px 0}
.wm9-mega-link {display:flex;align-items:center;gap:12px;padding:13px 11px;border:1px solid transparent;border-radius:12px;color:var(--wm9-text)!important;text-decoration:none!important;min-width:0;transition:background .15s,border-color .15s}
.wm9-mega-link:hover,.wm9-mega-link:focus-visible,.wm9-mega-link.is-current {background:var(--wm9-card-hover);border-color:var(--wm9-line);outline:none}
.wm9-mega-link .wm9-mark-group {min-width:35px}
.wm9-mega-link .wm9-mark-group.is-multi {min-width:76px}
.wm9-mega-label {display:flex;flex-direction:column;gap:4px;min-width:0;flex:1}
.wm9-mega-label strong {font-weight:800;font-size:14px;line-height:1.2;color:var(--wm9-text)}
.wm9-mega-label small {font-size:11px;line-height:1.35;color:var(--wm9-muted)}
.wm9-mega-channel {font-size:10px;border:1px solid var(--wm9-line);border-radius:20px;padding:4px 7px;color:var(--wm9-muted);font-weight:800;text-transform:uppercase}
.wm9-mega-channel.stable {color:#0f9a68;border-color:rgba(31,169,110,.36)}
.wm9-mega-channel.beta {color:#ba873a;border-color:rgba(197,144,58,.32)}
.wm9-mega-footer {border-top:1px solid var(--wm9-line);padding:14px 4px 2px;font-size:11px;color:var(--wm9-muted)}
.wm9-mega-footer i {margin-right:4px}
.wm9-download-menu.is-mobile {display:block;width:100%}
.wm9-download-menu.is-mobile .wm9-download-trigger {width:100%;display:flex;justify-content:space-between;padding:12px 0}
.wm9-download-menu.is-mobile .wm9-mega-panel {position:static;left:auto;top:auto;transform:none;width:100%;max-height:none;box-shadow:none;margin-bottom:14px;padding:13px}
.wm9-download-menu.is-mobile .wm9-mega-list {grid-template-columns:1fr}
.wm9-download-menu.is-mobile .wm9-mega-link {padding:11px 7px}
@media (max-width:900px) {
  .w4-nav .wm9-mega-panel {left:auto;right:-18px;transform:none}
}
@media (max-width:700px) {
  .wm9-mega-list{grid-template-columns:1fr}
  .wm9-mega-panel{padding:12px}
  .wm9-mega-heading,.wm9-mega-footer{align-items:start;flex-direction:column;gap:9px}
  .wm8-linux-strip > a{max-width:100%}
}
@media (prefers-reduced-motion:reduce){.wm9-download-trigger i,.wm9-mega-link{transition:none}}
