/* WDR SOFTWARE FIX5 — site-wide user interface enhancement. Pure CSS; no external fonts. */
:root{--w5-bg:#080b17;--w5-surface:#11172a;--w5-elevated:#181e36;--w5-border:#2f395c;--w5-violet:#af8cff;--w5-purple:#7755e5;--w5-cyan:#65e4ee;--w5-ink:#f4f6ff;--w5-soft:#b0bdd4;--w5-radius:18px}
html{scroll-behavior:smooth}
body.wdr-theme-subpage,body:has(.topbar){color:var(--w5-ink)}
body.wdr-theme-subpage .wdr-unified-header,body .topbar{box-shadow:0 8px 38px rgba(0,0,0,.16);backdrop-filter:blur(20px)}
body.wdr-theme-subpage :is(main,[role='main']){padding-top:32px}
body.wdr-theme-subpage :is(main,[role='main'])>h1,body.wdr-theme-subpage :is(main,[role='main'])>header h1{letter-spacing:-.047em}
/* Stronger hierarchy, calmer surfaces */
body.wdr-theme-subpage :is(.hero,.page-hero,.intro,.hero-section,.page-intro){background:radial-gradient(circle at 87% 10%,rgba(103,73,217,.23),transparent 55%),linear-gradient(120deg,#171c33,#11172a)!important;border:1px solid rgba(164,135,255,.3)!important;box-shadow:0 24px 50px rgba(0,0,0,.12)}
body.wdr-theme-subpage :is(p,.muted,.description){max-width:80ch}
body.wdr-theme-subpage :is(a.button,a.btn,a.cta,.button,.btn,.cta){box-shadow:0 5px 18px rgba(48,27,122,.2)}
body.wdr-theme-subpage :is(a.button,a.btn,a.cta,.button,.btn,.cta):focus-visible,body .wdr-card-enhanced:focus-visible{outline:3px solid var(--w5-cyan)!important;outline-offset:4px}
/* Clear project card layout across the home and real subpages */
body .wdr-project-grid,body.wdr-theme-subpage .wdr-project-grid,body .product-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:18px!important;align-items:stretch!important;margin-top:20px!important}
body .wdr-card-enhanced,body .product-grid>.product-card,body .product-grid>a{position:relative;min-width:0;min-height:265px;display:flex!important;flex-direction:column!important;align-items:flex-start!important;gap:0;overflow:hidden;border:1px solid var(--w5-border)!important;border-radius:19px!important;padding:25px!important;background:radial-gradient(circle at 94% 5%,rgba(114,80,239,.12),transparent 55%),linear-gradient(160deg,#171e35,#101627)!important;color:var(--w5-ink)!important;text-decoration:none!important;box-shadow:0 12px 30px rgba(0,0,0,.13)!important;transition:transform .2s ease,border-color .2s ease,box-shadow .2s ease!important}
body .wdr-card-enhanced:before,body .product-grid>.product-card:before{content:"";height:3px;position:absolute;top:0;left:26px;right:26px;background:linear-gradient(90deg,var(--w5-purple),var(--w5-cyan));opacity:.7;border-radius:0 0 8px 8px}
body .wdr-card-enhanced:hover,body .product-grid>.product-card:hover,body .product-grid>a:hover{transform:translateY(-4px)!important;border-color:#8c6bee!important;box-shadow:0 18px 40px rgba(15,12,45,.42)!important}
body .wdr-card-enhanced:is(:focus-visible,:focus-within){border-color:var(--w5-cyan)!important}
body .wdr-card-enhanced .wdr-card-head{display:flex;align-items:center;gap:12px;width:100%;margin-bottom:15px}
body .wdr-card-icon{display:grid;place-items:center;width:50px;height:50px;flex:0 0 50px;border-radius:14px;color:#c7aeff;background:linear-gradient(140deg,#362a65,#202a46);border:1px solid rgba(163,126,247,.42);font-size:24px;line-height:1;font-weight:900}
body .wdr-card-icon svg{width:25px;height:25px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
body .wdr-card-label{font-size:10px;font-weight:800;letter-spacing:.15em;color:#8be2ee;text-transform:uppercase}
body .wdr-card-enhanced :is(h2,h3,h4),body .product-grid>.product-card h3{font-size:clamp(19px,1.7vw,23px)!important;line-height:1.25!important;letter-spacing:-.04em!important;margin:0 0 12px!important;color:#f4f4ff!important}
body .wdr-card-enhanced p,body .product-grid>.product-card p{font-size:14px!important;line-height:1.7!important;color:var(--w5-soft)!important;margin:0 0 20px!important;flex-grow:1}
body .wdr-card-enhanced .wdr-card-cta,body .wdr-card-enhanced .product-link,body .product-grid>.product-card .product-link{font-size:13px!important;font-weight:780!important;color:#c5aaff!important;margin-top:auto!important;display:inline-flex;align-items:center;gap:8px}
body .wdr-card-enhanced .wdr-card-cta:after{content:'↗';color:#68e4eb;font-size:16px}
body .product-grid>.product-card .product-symbol{background:linear-gradient(125deg,#372b68,#242443);border:1px solid #584589;width:51px;height:51px;font-size:25px}
body .product-grid>.product-card .product-kind{margin-bottom:9px;color:#8de3ee;font-size:10px}
body .wdr-card-enhanced.wdr-card-orayth .wdr-card-icon{background:#12344a;color:#7ee5ed;border-color:#317388}
body .wdr-card-enhanced.wdr-card-nexus .wdr-card-icon{background:#2b235e;color:#cdadff}
/* Search and filter: intentionally fully operational, never decorative */
.wdr-filters{margin:24px 0 19px;display:flex;flex-wrap:wrap;align-items:center;gap:13px;padding:16px;border:1px solid var(--w5-border);border-radius:16px;background:rgba(19,26,46,.8)}
.wdr-filter-label{font-size:13px;color:#c6d2ed;font-weight:750;white-space:nowrap}
.wdr-search{flex:1 1 230px;min-width:150px;background:#0d1426!important;color:#f5f6ff!important;border:1px solid #435078!important;border-radius:10px!important;padding:12px 14px!important;font-size:14px!important;outline:none}
.wdr-search:focus-visible{border-color:var(--w5-cyan)!important;box-shadow:0 0 0 3px rgba(81,216,236,.17)}
.wdr-filter-count{color:#a4b0ce;font-size:12px;white-space:nowrap}
.wdr-filter-empty{grid-column:1/-1;color:#c7c9df;font-size:14px;border:1px dashed #586182;border-radius:13px;padding:22px}
.wdr-card-enhanced[hidden],body .product-grid>[hidden]{display:none!important}
/* Breadcrumbs and scroll aid */
.wdr-breadcrumbs{margin:6px auto 18px;display:flex;gap:8px;align-items:center;flex-wrap:wrap;font-size:13px;color:#a9b6d2}
.wdr-breadcrumbs a{color:#b8a5ff!important;text-decoration:none}.wdr-breadcrumbs a:hover{color:#78e3ec!important}
.wdr-backtop{position:fixed;bottom:20px;right:20px;z-index:50;display:none;align-items:center;gap:8px;border:1px solid #5f5b8f;border-radius:999px;background:rgba(21,23,48,.96);color:#e8e6ff;padding:11px 16px;font:700 13px system-ui,sans-serif;box-shadow:0 10px 30px #0005;cursor:pointer}
.wdr-backtop.is-visible{display:inline-flex}.wdr-backtop:hover{border-color:#a789ff;background:#2d2851}
/* Asset error fallback replaces actual broken <img> with readable title, not fake art. */
.wdr-image-fallback{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:9px;text-align:center;min-height:150px;max-width:100%;background:radial-gradient(circle at 70% 20%,#49358155,transparent 52%),linear-gradient(145deg,#1b2040,#111829);border:1px dashed #6f5c9b;border-radius:15px;padding:25px;color:#f1eeff}
.wdr-image-fallback .wdr-fallback-mark{display:grid;place-items:center;width:54px;height:54px;border-radius:15px;background:linear-gradient(125deg,#7449d5,#332461);font-size:19px;letter-spacing:-.07em;font-weight:950;color:white}
.wdr-image-fallback small{display:block;color:#bac4db;font-size:12px;overflow-wrap:anywhere}
.wdr-image-fallback strong{overflow-wrap:anywhere;font-size:15px}
/* Light touch for long-form/legal pages */
body.wdr-theme-subpage :is(main,[role='main']) :is(ul,ol){padding-left:1.6rem}
body.wdr-theme-subpage :is(main,[role='main']) :is(li){margin-bottom:.5em}
body.wdr-theme-subpage :is(main,[role='main']) :is(img){border-radius:12px;max-width:100%;height:auto}
body.wdr-theme-subpage :is(main,[role='main']) .wdr-project-grid img{max-height:130px;object-fit:contain}
@media(max-width:1050px){body .wdr-project-grid,body.wdr-theme-subpage .wdr-project-grid,body .product-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:700px){body .wdr-project-grid,body.wdr-theme-subpage .wdr-project-grid,body .product-grid{grid-template-columns:minmax(0,1fr)!important}body .wdr-card-enhanced,body .product-grid>.product-card{min-height:0!important;padding:22px!important}.wdr-filters{align-items:stretch}.wdr-search{flex-basis:100%}.wdr-filter-count{margin-left:auto}body.wdr-theme-subpage :is(main,[role='main']){width:calc(100% - 32px);padding-top:25px}body .wdr-backtop{right:12px;bottom:12px}}
@media(prefers-reduced-motion:reduce){body .wdr-card-enhanced,body .product-grid>.product-card{transition:none!important;transform:none!important}}
