/* WDR SITEWIDE THEME FIX4
   Self-contained CSS, embedded into existing HTML pages by the installer.
   Deliberately excludes the already themed WDR homepage. */
:root{color-scheme:dark;--wdr-bg:#090b15;--wdr-panel:#111529;--wdr-panel2:#171c31;--wdr-line:#2c3150;--wdr-fg:#f3f4ff;--wdr-muted:#a9b0c8;--wdr-purple:#a67aff;--wdr-cyan:#57dfee}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body.wdr-theme-subpage{margin:0!important;min-height:100vh!important;background:radial-gradient(ellipse at 80% 0%,rgba(106,61,229,.18),transparent 37%),radial-gradient(ellipse at 5% 38%,rgba(20,166,220,.08),transparent 45%),var(--wdr-bg)!important;color:var(--wdr-fg)!important;font:16px/1.65 system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif!important;overflow-x:hidden}
body.wdr-theme-subpage :is(h1,h2,h3,h4,h5,h6){color:var(--wdr-fg);font-family:inherit;letter-spacing:-.035em;line-height:1.16}
body.wdr-theme-subpage h1{font-size:clamp(2.65rem,6vw,4.6rem);margin:.25em 0 .35em;font-weight:800}
body.wdr-theme-subpage h2{font-size:clamp(1.7rem,3.4vw,2.6rem);margin:.55em 0 .45em;font-weight:750}
body.wdr-theme-subpage h3{font-size:clamp(1.22rem,2vw,1.65rem);margin:.5em 0 .4em}
body.wdr-theme-subpage :is(p,li,small,time,dd,dt){color:inherit}
body.wdr-theme-subpage p{line-height:1.75}
body.wdr-theme-subpage a{color:#b6a2ff;text-decoration:none;transition:color .18s ease,border-color .18s ease,transform .18s ease}
body.wdr-theme-subpage a:hover{color:#65e3f6}
body.wdr-theme-subpage a:focus-visible{outline:2px solid #65e3f6;outline-offset:3px}
body.wdr-theme-subpage button,body.wdr-theme-subpage input,body.wdr-theme-subpage select,body.wdr-theme-subpage textarea{font:inherit}
body.wdr-theme-subpage :is(input,textarea,select){color:var(--wdr-fg);background:#141a2c;border:1px solid var(--wdr-line);border-radius:10px;padding:.68rem .85rem}
body.wdr-theme-subpage button{cursor:pointer}
body.wdr-theme-subpage :is(main,[role='main']){width:min(1200px,calc(100% - 48px));max-width:1200px;margin:0 auto;padding:42px 0 72px;min-height:50vh}
body.wdr-theme-subpage :is(main,[role='main']) :is(.container,.wrap,.content,.page-width){max-width:100%;}
body.wdr-theme-subpage :is(main,[role='main'])>section{margin:0 auto 38px}
body.wdr-theme-subpage :is(.hero,.page-hero,.intro,.hero-section,.page-intro){position:relative;padding:clamp(26px,5vw,66px);border:1px solid rgba(135,111,228,.25);border-radius:23px;background:radial-gradient(ellipse at top right,rgba(103,58,224,.19),transparent 58%),linear-gradient(120deg,rgba(18,22,42,.9),rgba(15,20,35,.7));margin-bottom:34px}
body.wdr-theme-subpage :is(.eyebrow,.overline,.kicker,.label,.tagline,.section-label,.badge){color:#7ce3f2!important;letter-spacing:.1em;text-transform:uppercase;font-size:.78rem;font-weight:700}
body.wdr-theme-subpage :is(.project-grid,.product-grid,.feature-grid,.card-grid,.cards,.tiles,.projects-grid,.tools-grid){display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));gap:18px;margin:22px 0 34px;align-items:stretch}
body.wdr-theme-subpage :is(article,.card,.project-card,.feature-card,.product-card,.tool-card,.download-card,.link-card,.info-card,.feature-tile){background:linear-gradient(145deg,rgba(26,30,52,.95),rgba(15,19,34,.96))!important;color:var(--wdr-fg)!important;border:1px solid var(--wdr-line)!important;border-radius:18px!important;box-shadow:0 10px 32px rgba(0,0,0,.15);padding:clamp(17px,2.6vw,27px);min-width:0}
body.wdr-theme-subpage :is(.card,.project-card,.feature-card,.product-card,.tool-card,.link-card):hover{transform:translateY(-2px);border-color:#6655a9!important}
body.wdr-theme-subpage :is(article,.card,.project-card,.feature-card,.product-card,.tool-card,.download-card) p{color:var(--wdr-muted)!important}
body.wdr-theme-subpage :is(.grid,.columns,.row){gap:18px}
body.wdr-theme-subpage :is(.button,.btn,.cta,.primary-button,.outline-button,a.button,a.btn,a.cta){display:inline-flex;align-items:center;justify-content:center;gap:8px;border-radius:11px;border:1px solid rgba(147,103,250,.65);padding:.7rem 1.05rem;background:linear-gradient(125deg,#6f42d9,#5133ab);color:#fff!important;font-weight:650;text-align:center}
body.wdr-theme-subpage :is(.button,.btn,.cta,.primary-button,.outline-button,a.button,a.btn,a.cta):hover{background:linear-gradient(125deg,#8857fa,#6646c5);transform:translateY(-1px)}
body.wdr-theme-subpage :is(hr){border:0;border-top:1px solid var(--wdr-line);margin:28px 0}
body.wdr-theme-subpage :is(table){border-collapse:collapse;max-width:100%;width:100%;overflow:auto}
body.wdr-theme-subpage :is(th,td){padding:12px 14px;border-bottom:1px solid var(--wdr-line);text-align:left}
body.wdr-theme-subpage th{background:#1d2340}
body.wdr-theme-subpage pre{overflow:auto;background:#12172a;border:1px solid var(--wdr-line);padding:16px;border-radius:12px}
body.wdr-theme-subpage code{color:#87ddef}
body.wdr-theme-subpage :is(img,video,svg){max-width:100%;height:auto}
body.wdr-theme-subpage :is(footer,.site-footer){background:rgba(9,12,23,.88);border-top:1px solid var(--wdr-line);color:var(--wdr-muted);padding:24px max(24px,calc((100vw - 1200px)/2));}
body.wdr-theme-subpage :is(footer,.site-footer) a{color:#d2c1ff}
/* The old header is hidden only when it contains an existing navigation, which the WDR bar replaces. */
body.wdr-theme-subpage>header:not(.wdr-unified-header):has(nav),body.wdr-theme-subpage>.site-header:not(.wdr-unified-header):has(nav){display:none!important}
.wdr-unified-header{position:sticky;top:0;z-index:1000;background:rgba(11,14,27,.94)!important;border-bottom:1px solid rgba(121,103,199,.28)!important;backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px);color:#f4f1ff!important;box-shadow:0 6px 22px rgba(0,0,0,.14);padding:0!important}
.wdr-unified-header *{box-sizing:border-box}
.wdr-unified-bar{width:min(1200px,calc(100% - 44px));margin:0 auto;min-height:78px;display:flex;align-items:center;justify-content:space-between;gap:18px}
.wdr-unified-brand{display:flex;align-items:center;gap:11px;color:#f4f1ff!important;text-decoration:none!important;flex-shrink:0}
.wdr-brand-tile{display:grid;place-items:center;background:linear-gradient(135deg,#6c33e4,#34227f);border:1px solid #8157e9;box-shadow:0 0 16px rgba(115,73,216,.2);width:44px;height:44px;border-radius:12px;font-size:15px;font-weight:900;letter-spacing:-.08em;color:#fff!important;position:relative}
.wdr-brand-tile:after{content:'';position:absolute;left:11px;right:10px;bottom:11px;height:2px;transform:rotate(-20deg);background:#49def1;box-shadow:0 0 7px #49def1}
.wdr-brand-copy{display:flex;flex-direction:column;gap:0;line-height:1.15;text-align:left}
.wdr-brand-copy strong{color:#f6f1ff!important;font-size:.88rem;letter-spacing:.015em;font-weight:760;white-space:nowrap}
.wdr-brand-copy small{font-size:.62rem;letter-spacing:.14em;font-weight:800;color:#6fe1f0!important;margin-top:5px;white-space:nowrap}
.wdr-unified-links{display:flex;align-items:center;flex-wrap:wrap;justify-content:flex-end;gap:4px}
.wdr-unified-links a{display:inline-flex;align-items:center;padding:.6rem .8rem;border-radius:9px;font-size:.91rem;color:#c9c9e2!important;text-decoration:none!important;font-weight:560}
.wdr-unified-links a:hover,.wdr-unified-links a[aria-current='page']{background:rgba(140,91,236,.15);color:#fff!important}
.wdr-unified-links a[aria-current='page']{box-shadow:inset 0 -2px #6edfeb}
.wdr-legacy-notice{width:min(1200px,calc(100% - 48px));margin:20px auto 0;font-size:.8rem;color:var(--wdr-muted)}
@media(max-width:800px){.wdr-unified-bar{align-items:flex-start;flex-direction:column;padding:13px 0;gap:10px}.wdr-unified-links{justify-content:flex-start;overflow:auto;flex-wrap:nowrap;width:100%;scrollbar-width:thin}.wdr-unified-links a{white-space:nowrap;font-size:.86rem;padding:.48rem .6rem}body.wdr-theme-subpage :is(main,[role='main']){width:calc(100% - 28px);padding-top:28px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;transition:none!important}}
