/* Dandy's World 1.0 Hub — Bespoke "Gardenview Broadcast & CRT Lab" Design System */
:root {
  --bg: #090b10;
  --bg-elev: #121622;
  --bg-card: #171c2b;
  --bg-card-hover: #1e2538;
  --cream: #f6efe0;
  --cream-ink: #171923;
  --ink: #eef2fb;
  --ink-dim: #a9b5ce;
  --ink-muted: #7a87a3;
  --border: #283149;
  --border-strong: #394566;
  --petal-red: #ff536b;
  --petal-orange: #ff9f43;
  --petal-yellow: #ffe15c;
  --petal-green: #4ade80;
  --petal-blue: #4aa3ff;
  --petal-purple: #a855f7;
  --crt-mint: #4ade80;
  --crt-cyan: #22d3ee;
  --lethal-red: #ff3e5f;
  --rainbow: linear-gradient(90deg, #ff536b 0%, #ff9f43 18%, #ffe15c 36%, #4ade80 56%, #4aa3ff 78%, #a855f7 100%);
  --font-display: "Fredoka", "Nunito", "Segoe UI", system-ui, sans-serif;
  --font-body: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow-card: 0 10px 28px rgba(0, 0, 0, 0.42);
  --shadow-pop: 4px 4px 0 #040508;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 900px 480px at 14% -4%, rgba(74, 222, 128, 0.10), transparent 65%),
    radial-gradient(ellipse 760px 420px at 88% 8%, rgba(255, 83, 107, 0.10), transparent 60%),
    radial-gradient(ellipse 680px 520px at 50% 95%, rgba(168, 85, 247, 0.08), transparent 65%);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.68;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

img, svg, iframe, video { max-width: 100%; height: auto; }
a { color: var(--crt-cyan); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.22; letter-spacing: 0.01em; margin: 0 0 12px; color: #ffffff; }

/* Rainbow Reading Progress Bar */
.dw-progress-track { position: fixed; top: 0; left: 0; right: 0; height: 4px; z-index: 90; background: rgba(255, 255, 255, 0.05); }
.dw-progress-fill { height: 100%; width: 0%; background: var(--rainbow); transition: width 0.08s linear; }

/* Header & Gardenview Broadcast Nav */
.dw-header {
  position: sticky; top: 4px; z-index: 80;
  background: rgba(11, 14, 22, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.dw-header-bar {
  max-width: 1320px; margin: 0 auto; padding: 10px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
}
.dw-brand {
  display: inline-flex; align-items: center; gap: 11px; color: #fff; font-weight: 700;
  font-family: var(--font-display); font-size: 1.12rem; text-decoration: none; flex-shrink: 0;
}
.dw-brand:hover { text-decoration: none; opacity: 0.94; }
.dw-brand-logo {
  width: 38px; height: 38px; border-radius: 10px; border: 2px solid #fff;
  box-shadow: 0 0 0 2px #090b10, 0 4px 14px rgba(255, 83, 107, 0.25);
  object-fit: cover;
}
.dw-brand-badge {
  display: inline-block; font-family: var(--font-mono); font-size: 0.7rem;
  background: rgba(74, 222, 128, 0.14); color: var(--crt-mint);
  border: 1px solid rgba(74, 222, 128, 0.35); padding: 1px 7px; border-radius: 999px;
  margin-left: 6px; vertical-align: middle;
}

.dw-nav { display: flex; align-items: center; gap: 4px; flex-wrap: nowrap; }
.dw-nav-link, .dw-drop-btn {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 7px 11px; border-radius: 9px; font-size: 0.9rem; font-weight: 600;
  color: var(--ink-dim); background: transparent; border: 0; cursor: pointer; font-family: inherit;
  white-space: nowrap; text-decoration: none;
}
.dw-nav-link:hover, .dw-drop-btn:hover { background: rgba(255, 255, 255, 0.06); color: #fff; text-decoration: none; }
.dw-nav-link.active {
  background: rgba(74, 222, 128, 0.15); color: var(--crt-mint);
  box-shadow: inset 0 0 0 1px rgba(74, 222, 128, 0.4);
}

.dw-header-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.dw-icon-btn {
  display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 11px;
  border-radius: 9px; background: var(--bg-card); border: 1px solid var(--border-strong);
  color: var(--ink); font-size: 0.85rem; font-weight: 600; cursor: pointer; font-family: inherit;
}
.dw-icon-btn:hover { border-color: var(--crt-cyan); color: #fff; }
.dw-kbd { font-family: var(--font-mono); font-size: 0.72rem; padding: 1px 5px; border-radius: 4px; background: rgba(255,255,255,0.08); color: var(--ink-dim); }

.dw-dropdown { position: relative; }
.dw-dropdown-menu {
  display: none; position: absolute; right: 0; top: calc(100% + 8px); min-width: 196px;
  background: var(--bg-elev); border: 1px solid var(--border-strong); border-radius: 12px;
  padding: 6px; box-shadow: 0 18px 36px rgba(0, 0, 0, 0.55); z-index: 95;
}
.dw-dropdown.open .dw-dropdown-menu { display: block; }
.dw-dropdown-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 11px; border-radius: 8px; color: var(--ink-dim); font-size: 0.88rem; font-weight: 600;
  text-decoration: none;
}
.dw-dropdown-item:hover { background: rgba(255, 255, 255, 0.07); color: #fff; text-decoration: none; }
.dw-dropdown-item.active { color: var(--crt-mint); background: rgba(74, 222, 128, 0.12); }

.dw-mobile-btn { display: none; }

/* Mobile Drawer */
.dw-drawer {
  display: none; position: fixed; inset: 0; z-index: 120;
  background: rgba(5, 7, 12, 0.76); backdrop-filter: blur(6px);
}
.dw-drawer.open { display: flex; justify-content: flex-end; }
.dw-drawer-panel {
  width: min(86vw, 340px); height: 100%; background: var(--bg-elev);
  border-left: 1px solid var(--border-strong); padding: 18px; overflow-y: auto;
  display: flex; flex-direction: column; gap: 12px;
}
.dw-drawer-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.dw-drawer-nav { display: flex; flex-direction: column; gap: 4px; }
.dw-drawer-nav a { padding: 10px 12px; border-radius: 9px; color: var(--ink); font-weight: 600; text-decoration: none; }
.dw-drawer-nav a.active { background: rgba(74, 222, 128, 0.15); color: var(--crt-mint); }
.dw-drawer-langs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; padding-top: 8px; border-top: 1px solid var(--border); }
.dw-drawer-langs a { padding: 7px 10px; border-radius: 8px; border: 1px solid var(--border); font-size: 0.84rem; color: var(--ink-dim); text-align: center; }
.dw-drawer-langs a.active { border-color: var(--crt-mint); color: var(--crt-mint); }

/* Page Container & 2-Column Editorial Shell */
.dw-wrap { max-width: 1320px; margin: 0 auto; padding: 24px 20px 64px; }
.dw-breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 0.84rem; color: var(--ink-muted); margin-bottom: 16px; }
.dw-breadcrumbs a { color: var(--ink-dim); }

/* Hero Section (No Ads Allowed Inside/Above Hero) */
.dw-hero {
  position: relative; border-radius: var(--radius-lg);
  background: linear-gradient(155deg, #161b2b 0%, #0f131f 100%);
  border: 1px solid var(--border-strong); box-shadow: var(--shadow-card);
  overflow: hidden; margin-bottom: 24px;
}
.dw-hero::before { content: ""; display: block; height: 5px; width: 100%; background: var(--rainbow); }
.dw-hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.32fr) minmax(0, 0.98fr); gap: 26px;
  padding: 28px; align-items: center;
}
.dw-eyebrow {
  display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-mono);
  font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--petal-yellow); background: rgba(255, 225, 92, 0.10);
  border: 1px solid rgba(255, 225, 92, 0.30); border-radius: 999px;
  padding: 4px 11px; margin-bottom: 12px;
}
.dw-hero h1 { font-size: clamp(1.75rem, 3.2vw, 2.55rem); margin-bottom: 14px; }
.dw-hero-lead {
  font-size: 1.04rem; line-height: 1.65; color: #dbe5f8; margin: 0 0 20px;
}
.dw-cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.dw-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 10px 17px; border-radius: 11px; font-weight: 700; font-size: 0.92rem;
  font-family: var(--font-display); cursor: pointer; border: 2px solid transparent;
  text-decoration: none; transition: transform 0.12s ease, filter 0.12s ease;
}
.dw-btn:hover { transform: translateY(-1px); text-decoration: none; filter: brightness(1.06); }
.dw-btn-rainbow {
  background: var(--rainbow); color: #090b10; border-color: #ffffff;
  box-shadow: var(--shadow-pop);
}
.dw-btn-crt {
  background: rgba(74, 222, 128, 0.16); color: var(--crt-mint);
  border-color: rgba(74, 222, 128, 0.55);
}
.dw-btn-ghost {
  background: rgba(255, 255, 255, 0.05); color: #fff; border-color: var(--border-strong);
}

.dw-hero-stats {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px;
}
.dw-stat-chip {
  background: rgba(9, 11, 16, 0.55); border: 1px solid var(--border);
  border-radius: 10px; padding: 9px 12px; min-width: 0;
}
.dw-stat-chip small { display: block; font-size: 0.74rem; color: var(--ink-muted); text-transform: uppercase; letter-spacing: 0.05em; }
.dw-stat-chip strong { display: block; font-size: 0.94rem; color: #fff; font-weight: 700; overflow: hidden; text-overflow: ellipsis; }

.dw-hero-media {
  position: relative; border-radius: 14px; overflow: hidden;
  border: 2px solid var(--border-strong); background: #07090e;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5);
}
.dw-hero-media img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

/* Main Content + Sticky TOC Grid */
.dw-layout {
  display: grid; grid-template-columns: minmax(0, 1fr) 268px; gap: 28px; align-items: start;
}
.dw-main { min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.dw-toc {
  position: sticky; top: 82px;
  background: var(--bg-elev); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 16px;
}
.dw-toc h3 { font-size: 0.92rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--petal-yellow); margin-bottom: 10px; }
.dw-toc-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 4px; }
.dw-toc-list a {
  display: block; padding: 5px 9px; border-radius: 7px; font-size: 0.85rem; color: var(--ink-dim);
  border-left: 2px solid transparent; text-decoration: none;
}
.dw-toc-list a:hover { color: #fff; background: rgba(255,255,255,0.04); }
.dw-toc-list a.active { color: var(--crt-mint); border-left-color: var(--crt-mint); background: rgba(74, 222, 128, 0.09); font-weight: 600; }

/* Cards, Sections & Gardenview Cream Callouts */
.dw-section {
  background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 24px; min-width: 0;
}
.dw-section h2 { font-size: clamp(1.28rem, 2.2vw, 1.65rem); color: #fff; margin-bottom: 12px; display: flex; align-items: center; gap: 10px; }
.dw-section h2::before { content: ""; width: 6px; height: 22px; border-radius: 4px; background: var(--rainbow); flex-shrink: 0; }
.dw-section p { margin: 0 0 12px; color: var(--ink-dim); }
.dw-section ul { margin: 10px 0 6px; padding-left: 20px; color: var(--ink); }
.dw-section li { margin-bottom: 8px; }

.dw-cream-callout {
  margin-top: 16px; padding: 16px 18px; border-radius: 12px;
  background: var(--cream); color: var(--cream-ink);
  border: 2px solid #090b10; box-shadow: var(--shadow-pop);
}
.dw-cream-callout strong { display: block; font-family: var(--font-display); font-size: 1.02rem; margin-bottom: 4px; color: #11131b; }
.dw-cream-callout p { margin: 0; color: #2b3040; font-size: 0.94rem; }

/* Hub Cards Grid */
.dw-hub-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.dw-hub-card {
  display: flex; flex-direction: column; justify-content: space-between;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 18px; text-decoration: none; transition: border-color 0.14s, transform 0.14s;
  min-width: 0;
}
.dw-hub-card:hover { border-color: var(--crt-mint); transform: translateY(-2px); text-decoration: none; }
.dw-badge {
  display: inline-block; width: fit-content; font-family: var(--font-mono); font-size: 0.72rem;
  font-weight: 700; padding: 3px 9px; border-radius: 999px; margin-bottom: 10px;
  background: rgba(74, 163, 255, 0.15); color: var(--petal-blue); border: 1px solid rgba(74, 163, 255, 0.35);
}
.dw-badge.new { background: rgba(74, 222, 128, 0.15); color: var(--crt-mint); border-color: rgba(74, 222, 128, 0.4); }
.dw-badge.lethal { background: rgba(255, 62, 95, 0.18); color: #ff859b; border-color: rgba(255, 62, 95, 0.48); }
.dw-badge.main { background: rgba(168, 85, 247, 0.18); color: #d8b4fe; border-color: rgba(168, 85, 247, 0.45); }
.dw-badge.rare { background: rgba(255, 159, 67, 0.16); color: #ffc078; border-color: rgba(255, 159, 67, 0.42); }
.dw-badge.uncommon { background: rgba(34, 211, 238, 0.15); color: #67e8f9; border-color: rgba(34, 211, 238, 0.4); }
.dw-hub-card h3 { font-size: 1.08rem; color: #fff; margin-bottom: 6px; }
.dw-hub-card p { font-size: 0.9rem; color: var(--ink-dim); margin: 0; }

/* Interactive Widget Shell */
.dw-widget {
  background: var(--bg-elev); border: 1px solid var(--border-strong);
  border-radius: var(--radius-md); padding: 22px; min-width: 0;
}
.dw-widget-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.dw-widget-head h2 { margin: 0; font-size: 1.32rem; }
.dw-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 14px; }
.dw-pill {
  padding: 6px 12px; border-radius: 999px; font-size: 0.84rem; font-weight: 700;
  font-family: var(--font-body); background: var(--bg-card); color: var(--ink-dim);
  border: 1px solid var(--border-strong); cursor: pointer;
}
.dw-pill:hover { color: #fff; border-color: var(--crt-cyan); }
.dw-pill.active { background: var(--crt-mint); color: #070a0f; border-color: var(--crt-mint); }

.dw-input, .dw-select {
  width: 100%; max-width: 100%; padding: 9px 13px; border-radius: 10px;
  background: #0b0e16; border: 1px solid var(--border-strong); color: #fff;
  font-family: inherit; font-size: 0.92rem;
}
.dw-input:focus, .dw-select:focus { outline: 2px solid var(--crt-cyan); border-color: transparent; }

/* Tracker Meter */
.dw-tracker-bar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 15px; border-radius: 11px; background: #0c0f18; border: 1px solid var(--border);
  margin-bottom: 14px;
}
.dw-meter-wrap { flex: 1 1 200px; height: 10px; background: rgba(255,255,255,0.08); border-radius: 999px; overflow: hidden; }
.dw-meter-fill { height: 100%; width: 0%; background: var(--rainbow); transition: width 0.2s ease; }

/* Toon Cards & Star Bars */
.dw-cards-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.dw-entity-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 13px;
  padding: 16px; display: flex; flex-direction: column; gap: 10px; min-width: 0;
}
.dw-entity-card.done { border-color: rgba(74, 222, 128, 0.55); background: rgba(74, 222, 128, 0.05); }
.dw-entity-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.dw-entity-top h3 { font-size: 1.12rem; margin: 0; }
.dw-hearts { color: #ff536b; font-size: 0.95rem; letter-spacing: 1px; white-space: nowrap; }
.dw-stat-bars { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.dw-stat-col { background: rgba(9, 11, 16, 0.5); border-radius: 7px; padding: 5px 6px; text-align: center; }
.dw-stat-col span { display: block; font-size: 0.67rem; color: var(--ink-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dw-stat-col strong { font-family: var(--font-mono); font-size: 0.8rem; color: var(--petal-yellow); }
.dw-meta-line { font-size: 0.85rem; color: var(--ink-dim); margin: 0; overflow-wrap: anywhere; }
.dw-check-label { display: inline-flex; align-items: center; gap: 6px; font-size: 0.82rem; font-weight: 700; color: var(--crt-mint); cursor: pointer; }
.dw-check-label input { width: 16px; height: 16px; accent-color: var(--crt-mint); }

/* Simulator Panels */
.dw-sim-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.dw-sim-result {
  margin-top: 14px; padding: 15px; border-radius: 12px;
  background: rgba(34, 211, 238, 0.08); border: 1px solid rgba(34, 211, 238, 0.35);
}
.dw-kpi-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.dw-kpi-box { background: #0c0f18; border: 1px solid var(--border); border-radius: 10px; padding: 11px; text-align: center; }
.dw-kpi-box small { display: block; font-size: 0.74rem; color: var(--ink-muted); }
.dw-kpi-box strong { font-family: var(--font-mono); font-size: 1.25rem; color: var(--crt-mint); }

/* Tables */
.dw-table-wrap { width: 100%; max-width: 100%; overflow-x: auto; border: 1px solid var(--border); border-radius: 12px; }
.dw-table { width: 100%; border-collapse: collapse; min-width: 560px; font-size: 0.9rem; }
.dw-table th, .dw-table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
.dw-table th { background: #0d1019; font-family: var(--font-display); font-size: 0.85rem; color: var(--petal-yellow); white-space: nowrap; }
.dw-table tr:hover td { background: rgba(255, 255, 255, 0.025); }
.dw-code-chip {
  font-family: var(--font-mono); font-weight: 700; font-size: 0.95rem;
  background: #0a0c12; color: var(--crt-mint); border: 1px solid rgba(74, 222, 128, 0.45);
  padding: 3px 9px; border-radius: 7px; display: inline-block;
}
.dw-copy-btn {
  padding: 5px 10px; border-radius: 7px; border: 1px solid var(--border-strong);
  background: var(--bg-card); color: #fff; font-size: 0.8rem; font-weight: 700; cursor: pointer;
}
.dw-copy-btn:hover { border-color: var(--crt-mint); color: var(--crt-mint); }

/* Click-to-Play YouTube Video Cards */
.dw-video-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.dw-video-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 13px;
  overflow: hidden; display: flex; flex-direction: column;
}
.dw-video-stage { position: relative; aspect-ratio: 16 / 9; background: #05070c; }
.dw-video-stage iframe { width: 100%; height: 100%; border: 0; display: block; }
.dw-video-trigger {
  position: relative; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: pointer; display: block;
}
.dw-video-trigger img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dw-play-badge {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 60px; height: 42px; border-radius: 12px; background: rgba(255, 62, 95, 0.94);
  border: 2px solid #fff; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}
.dw-play-badge::after {
  content: ""; position: absolute; left: 24px; top: 11px;
  border-style: solid; border-width: 9px 0 9px 16px; border-color: transparent transparent transparent #fff;
}
.dw-video-body { padding: 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.dw-video-body h3 { font-size: 1.02rem; margin: 0; }
.dw-video-body p { font-size: 0.86rem; color: var(--ink-dim); margin: 0; }
.dw-video-actions { margin-top: auto; padding-top: 8px; display: flex; align-items: center; justify-content: space-between; font-size: 0.82rem; }

/* FAQs & Related */
.dw-faq-list { display: flex; flex-direction: column; gap: 10px; }
.dw-faq-item { background: var(--bg-card); border: 1px solid var(--border); border-radius: 11px; padding: 14px 16px; }
.dw-faq-item summary { font-family: var(--font-display); font-weight: 700; cursor: pointer; color: #fff; }
.dw-faq-item p { margin: 8px 0 0; color: var(--ink-dim); font-size: 0.94rem; }
.dw-related-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }

/* Adsterra Safe Collapsed Slots */
.dw-ad-slot { display: none; width: 100%; max-width: 100%; overflow: hidden; text-align: center; }
.dw-ad-slot.is-active { display: flex; justify-content: center; align-items: center; margin: 18px auto; }
.dw-ad-inner { max-width: 100%; overflow: hidden; }

/* Search Modal */
.dw-modal {
  display: none; position: fixed; inset: 0; z-index: 140;
  background: rgba(5, 7, 12, 0.80); backdrop-filter: blur(8px);
  padding: 64px 16px 24px; align-items: flex-start; justify-content: center;
}
.dw-modal.open { display: flex; }
.dw-modal-box {
  width: min(680px, 100%); background: var(--bg-elev); border: 1px solid var(--border-strong);
  border-radius: 16px; padding: 18px; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7);
}
.dw-modal-head { display: flex; gap: 10px; margin-bottom: 12px; }
.dw-search-results { max-height: 55vh; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; }
.dw-search-item {
  display: block; padding: 10px 12px; border-radius: 10px;
  background: var(--bg-card); border: 1px solid var(--border); text-decoration: none;
}
.dw-search-item:hover { border-color: var(--crt-mint); text-decoration: none; }
.dw-search-item strong { display: block; color: #fff; font-size: 0.96rem; }
.dw-search-item span { display: block; color: var(--ink-dim); font-size: 0.84rem; }

/* Footer */
.dw-footer { border-top: 1px solid var(--border); background: #07090e; padding: 36px 20px; margin-top: 40px; }
.dw-footer-inner {
  max-width: 1320px; margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 0.7fr)); gap: 24px;
}
.dw-footer h4 { font-size: 0.95rem; color: var(--petal-yellow); margin-bottom: 10px; }
.dw-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; font-size: 0.88rem; }
.dw-footer a { color: var(--ink-dim); }
.dw-footer a:hover { color: #fff; }
.dw-footer-note { font-size: 0.85rem; color: var(--ink-muted); margin-top: 10px; }

/* Responsive Breakpoints */
@media (max-width: 1080px) {
  .dw-layout { grid-template-columns: minmax(0, 1fr); }
  .dw-toc { display: none; }
  .dw-hub-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .dw-nav { display: none; }
  .dw-mobile-btn { display: inline-flex; }
  .dw-hero-grid { grid-template-columns: minmax(0, 1fr); padding: 20px; }
  .dw-cards-grid, .dw-video-grid, .dw-sim-grid, .dw-footer-inner { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .dw-wrap { padding: 14px 14px 48px; }
  .dw-header-bar { padding: 9px 12px; gap: 8px; }
  .dw-brand { font-size: 0.96rem; gap: 8px; flex-shrink: 1; min-width: 0; }
  .dw-brand span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .dw-brand-logo { width: 32px; height: 32px; flex-shrink: 0; }
  .dw-brand-badge, .dw-kbd, #dw-search-open span:nth-child(2) { display: none; }
  .dw-icon-btn { height: 34px; padding: 0 9px; font-size: 0.82rem; }
  .dw-header-actions { gap: 6px; }
  .dw-hero-stats, .dw-hub-grid, .dw-related-grid, .dw-kpi-row { grid-template-columns: minmax(0, 1fr); }
  .dw-stat-bars { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; }
  .dw-section, .dw-widget { padding: 16px; }
}
