/* WDR FIX9 | Legacy-header removal, Nexus contextual Store download, typographic polish */
.wdr9-legacy-header-hidden,
body:has(.wdr-unified-header) header.site-header:not(.wdr-unified-header),
body:has(.wdr-unified-header) .site-header:not(.wdr-unified-header):not(:has(.wdr-unified-header)) {
  display:none!important;
}
/* Compact, controlled scale on secondary pages (long Browser headline and Orayth hero). */
body.wdr-theme-subpage main :is(h1,.page-title,.hero-title),
body.wdr-theme-subpage [role="main"] :is(h1,.page-title,.hero-title){
  font-size:clamp(2.05rem,4vw,3.5rem)!important;
  line-height:1.13!important;
  letter-spacing:-.035em!important;
  max-width:24ch;
  overflow-wrap:normal;
  word-break:normal;
  text-wrap:balance;
}
body.wdr-theme-subpage main :is(.hero,.page-hero,.intro,.hero-section,.page-intro){
  padding:clamp(22px,3.5vw,46px)!important;
}
body.wdr-theme-subpage main :is(.hero,.page-hero,.intro,.hero-section,.page-intro) :is(h1,.page-title,.hero-title){margin:0 0 .4em!important}
body.wdr-theme-subpage main :is(.hero,.page-hero,.intro,.hero-section,.page-intro) p{max-width:72ch;line-height:1.7}
body.wdr-theme-subpage main section{min-width:0}
body.wdr-theme-subpage main p{overflow-wrap:break-word}
/* Button rows must have real space between separate links, even when old HTML has no whitespace. */
.wdr9-action-row,.wdr9-nexus-actions{
  display:flex!important;flex-wrap:wrap!important;align-items:center!important;
  column-gap:12px!important;row-gap:12px!important;
  margin:16px 0 24px!important;
  width:100%;max-width:100%;
}
.wdr9-action-row a.wdr9-action,.wdr9-nexus-actions a.wdr9-action{
  box-sizing:border-box!important;
  display:inline-flex!important;align-items:center!important;justify-content:center!important;
  min-height:44px!important;padding:11px 17px!important;
  border:1px solid rgba(156,129,245,.65)!important;border-radius:12px!important;
  background:linear-gradient(120deg,#7843e2,#512aa3)!important;
  font:700 clamp(.9rem,1.5vw,.97rem)/1.4 system-ui,-apple-system,'Segoe UI',sans-serif!important;
  color:#fff!important;text-decoration:none!important;text-align:center!important;
  white-space:normal!important;word-spacing:normal!important;letter-spacing:normal!important;
  box-shadow:0 5px 22px rgba(75,48,165,.18)!important;
  margin:0!important;
}
.wdr9-action-row a.wdr9-secondary-action,.wdr9-nexus-actions a.wdr9-secondary-action{
  background:#19182f!important;color:#eee9ff!important;
  border-color:rgba(153,145,204,.46)!important;box-shadow:none!important;
}
.wdr9-action-row a:hover,.wdr9-nexus-actions a:hover{
  border-color:#78e6ef!important;color:#fff!important;background:#6540c0!important;
}
.wdr9-action-row a:focus-visible,.wdr9-nexus-actions a:focus-visible{outline:3px solid #67e8ee!important;outline-offset:3px!important}
/* Keep community CTA within its own section, not the shared navigation. */
.community-section .wdr9-nexus-actions{justify-content:flex-start!important;max-width:100%}
.wdr-unified-links a,.nav-links a{margin:0!important;letter-spacing:normal!important}
body.wdr-theme-subpage .wdr7-primary-breadcrumb{margin-bottom:clamp(16px,2.5vw,26px)!important}
@media(max-width:650px){
 body.wdr-theme-subpage main :is(h1,.page-title,.hero-title){font-size:clamp(1.9rem,8vw,2.7rem)!important;max-width:100%}
 .wdr9-action-row,.wdr9-nexus-actions{align-items:stretch!important;gap:10px!important}
 .wdr9-action-row a.wdr9-action,.wdr9-nexus-actions a.wdr9-action{max-width:100%;}
}
@media(prefers-reduced-motion:reduce){.wdr9-action-row *, .wdr9-nexus-actions *{transition:none!important}}
