/* 2026 design system. Scoped to body.ds so other pages keep styles.css. */

html { color-scheme: dark; }
html.theme-light { color-scheme: light; }

body.ds {
  --bg: #07080d;
  --bg-elev: rgba(255, 255, 255, 0.035);
  --card: rgba(255, 255, 255, 0.04);
  --card-solid: #101218;
  --text: #f4f4f5;
  --muted: #a1a1aa;
  --line: rgba(255, 255, 255, 0.1);
  --chip: rgba(255, 255, 255, 0.06);
  --accent: #a5b4fc;
  --shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
  --font: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --maxw: 1120px;
  font-family: var(--font);
  background:
    radial-gradient(900px 420px at 100% -10%, rgba(99, 102, 241, 0.16), transparent 55%),
    var(--bg);
  color: var(--text);
  line-height: 1.5;
  overflow-x: clip;
}

html.theme-light body.ds {
  --bg: #f5f6fb;
  --bg-elev: rgba(255, 255, 255, 0.8);
  --card: rgba(255, 255, 255, 0.78);
  --card-solid: #ffffff;
  --text: #0b1020;
  --muted: #52607a;
  --line: rgba(15, 23, 42, 0.1);
  --chip: rgba(15, 23, 42, 0.04);
  --accent: #4338ca;
  --shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
  background:
    radial-gradient(900px 420px at 100% -10%, rgba(99, 102, 241, 0.14), transparent 55%),
    var(--bg);
}

body.ds [hidden] { display: none !important; }
body.ds ::selection { background: rgba(129, 140, 248, 0.35); }
body.ds a { color: var(--accent); }
body.ds a:hover { color: #c7d2fe; }
html.theme-light body.ds a:hover { color: #312e81; }
body.ds :focus-visible { outline: 2px solid #22d3ee; outline-offset: 3px; }
body.ds h1, body.ds h2, body.ds h3 { font-weight: 700; letter-spacing: -0.035em; line-height: 1.08; color: var(--text); }
body.ds .wrap { max-width: var(--maxw); }

body.ds .site-header {
  background: rgba(7, 8, 13, 0.72);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}
html.theme-light body.ds .site-header { background: rgba(245, 246, 251, 0.82); }
body.ds .site-header > .wrap {
  display: flex;
  align-items: center;
  gap: 8px 12px;
  min-height: 64px;
  flex-wrap: wrap;
  padding-top: 8px;
  padding-bottom: 8px;
}
body.ds .brand { color: var(--text); text-decoration: none; min-width: 0; }
body.ds .brand span { color: var(--text); font-size: 0.95rem; font-weight: 700; letter-spacing: -0.03em; line-height: 1.15; }
body.ds .brand svg { width: 28px; height: 28px; }
body.ds .brand svg path:last-child { stroke: currentColor; }
body.ds .site-header nav { margin-left: auto; max-width: 100%; }
body.ds .nav { display: flex; flex-wrap: wrap; gap: 2px; align-items: center; }
body.ds .nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 550;
  font-weight: 600;
  padding: 8px 10px;
  border-radius: 8px;
}
body.ds .nav a:hover,
body.ds .nav a[aria-current="page"],
body.ds .nav a.active { color: var(--text); background: var(--chip); text-decoration: none; }
body.ds .theme-toggle {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--chip);
  color: var(--text);
  border-radius: 999px;
  min-height: 40px;
  padding: 0 14px;
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 650;
  font-weight: 600;
  cursor: pointer;
}
body.ds .theme-toggle:hover { border-color: rgba(129, 140, 248, 0.6); }

body.ds .nav-toggle {
  display: none;
  appearance: none;
  border: 1px solid var(--line);
  background: var(--chip);
  color: var(--text);
  border-radius: 999px;
  min-height: 40px;
  padding: 0 14px;
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
}
body.ds .nav-toggle:hover { border-color: rgba(129, 140, 248, 0.6); }

body.ds #free-tools .guides,
body.ds.page-tools .guides { grid-template-columns: minmax(0, 560px); }

@media (max-width: 860px) {
  body.ds .brand { flex: 1 1 auto; min-width: 0; }
  body.ds .theme-toggle { margin-left: auto; flex: none; }
  body.ds .site-header nav { margin-left: 0; flex: 1 1 100%; order: 3; }
  body.ds .brand span { font-size: 0.84rem; }
  html.has-js body.ds .brand { flex: 1 1 0; }
  html.has-js body.ds .brand span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  html.has-js body.ds .nav-toggle { display: inline-flex; align-items: center; margin-left: auto; flex: none; }
  html.has-js body.ds .theme-toggle { margin-left: 8px; }
  html.has-js body.ds .site-header nav { display: none; }
  html.has-js body.ds .site-header nav.is-open { display: block; }
  html.has-js body.ds .site-header nav.is-open .nav { flex-direction: column; align-items: stretch; padding-bottom: 8px; }
  html.has-js body.ds .site-header nav.is-open .nav a { display: block; }
}

body.ds .hero {
  position: relative;
  z-index: 2;
  isolation: isolate;
  overflow: visible;
  text-align: left;
  background: transparent;
  color: var(--text);
  padding: 48px 0 16px;
}
body.ds .hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 42%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 42%, transparent 100%);
}
body.ds .mesh,
body.ds .gridlines,
body.ds .grain { position: absolute; inset: -10%; }
body.ds .mesh {
  background:
    radial-gradient(ellipse 50% 45% at 18% 20%, rgba(99, 102, 241, 0.55), transparent 60%),
    radial-gradient(ellipse 42% 40% at 78% 8%, rgba(168, 85, 247, 0.42), transparent 62%),
    radial-gradient(ellipse 40% 36% at 62% 78%, rgba(34, 211, 238, 0.28), transparent 64%);
  filter: blur(8px);
  animation: mesh-drift 22s ease-in-out infinite alternate;
}
body.ds .gridlines {
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse at 50% 20%, #000 15%, transparent 72%);
}
html.theme-light body.ds .gridlines {
  background-image:
    linear-gradient(to right, rgba(15, 23, 42, 0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15, 23, 42, 0.06) 1px, transparent 1px);
}
body.ds .grain {
  opacity: 0.18;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.55'/></svg>");
}
@keyframes mesh-drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(-2%, 2%, 0) scale(1.06); }
}
body.ds .hero-copy { position: relative; max-width: 920px; }
body.ds .hero h1 {
  font-size: clamp(2.75rem, 8vw, 5.25rem);
  font-weight: 800;
  letter-spacing: -0.048em;
  line-height: 0.96;
  margin: 12px 0 16px;
}
body.ds .grad-text {
  background: linear-gradient(100deg, #ddd6fe 0%, #818cf8 42%, #22d3ee 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
html.theme-light body.ds .grad-text {
  background: linear-gradient(100deg, #4338ca, #7c3aed 45%, #0e7490);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
body.ds .hero .lede,
body.ds .lede { color: var(--muted); font-size: 1.0625rem; max-width: 42rem; margin: 0; }
body.ds .hero .eyebrow,
body.ds .eyebrow { color: var(--accent); margin-bottom: 0; }
body.ds .live-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  padding: 4px 10px 4px 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--chip);
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 650;
  font-weight: 600;
  letter-spacing: 0.04em;
}
body.ds .live-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #34d399;
  box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.15);
}
body.ds .hero-meta { margin: 14px 0 0; color: var(--muted); font-size: 0.875rem; }
body.ds .hero-compact { padding-top: 28px; }
body.ds .hero-compact h1 { font-size: clamp(2.15rem, 5vw, 3.5rem); letter-spacing: -0.04em; line-height: 1.02; }

body.ds .cmd { position: relative; margin-top: 28px; max-width: 720px; }
body.ds .cmd-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 60px;
  padding: 0 14px 0 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(10, 12, 18, 0.72);
  box-shadow: 0 0 0 1px rgba(129, 140, 248, 0.15), 0 18px 50px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(16px);
}
html.theme-light body.ds .cmd-bar {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(15, 23, 42, 0.1);
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.08);
}
body.ds .cmd-bar:focus-within { border-color: rgba(129, 140, 248, 0.7); box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.2); }
body.ds .cmd-icon { flex: none; color: var(--muted); }
body.ds .cmd-bar input {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 16px;
  padding: 16px 0;
  outline: none;
}
body.ds .cmd-bar input::placeholder { color: var(--muted); }
body.ds .cmd-hint { display: flex; align-items: center; gap: 4px; color: var(--muted); font-size: 0.75rem; }
body.ds .cmd-hint kbd {
  font-family: inherit;
  font-size: 0.75rem;
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 6px;
  padding: 2px 6px;
  background: var(--chip);
  color: var(--text);
}
body.ds .cmd-pop {
  /* In-flow on purpose: the dropdown pushes the hero down instead of covering it
     (Chris, Nov 3 — the absolute overlay hid the hero lede/slogan). */
  margin-top: 8px;
  padding: 8px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(14, 16, 24, 0.96);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  max-height: 380px;
  overflow: auto;
}
html.theme-light body.ds .cmd-pop { background: rgba(255, 255, 255, 0.98); }
body.ds .cmd-label, body.ds .cmd-empty { margin: 4px 8px 8px; color: var(--muted); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 700; }
body.ds .cmd-empty { letter-spacing: 0; text-transform: none; font-weight: 500; font-size: 0.875rem; }
body.ds .cmd-opt {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 8px;
  border-radius: 12px;
  cursor: pointer;
}
body.ds .cmd-opt.is-active, body.ds .cmd-opt:hover { background: rgba(129, 140, 248, 0.14); }
body.ds .cmd-name { font-weight: 650; font-weight: 600; }
body.ds .cmd-meta { margin-left: auto; color: var(--muted); font-size: 0.8125rem; }
@media (max-width: 720px) {
  body.ds .cmd-hint { display: none; }
  body.ds .cmd-meta { display: none; }
}

body.ds .block { padding: 28px 0; }
body.ds .section-kicker {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
body.ds .section-head h2,
body.ds .block > h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 0 0 8px; }
body.ds .section-head p,
body.ds .sub { color: var(--muted); margin: 0; max-width: 62ch; }

body.ds .bento {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 16px;
}
body.ds .bento-card {
  appearance: none;
  width: 100%;
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  min-height: 148px;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--card);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
body.ds .bento-card:hover {
  transform: translateY(-3px);
  border-color: rgba(129, 140, 248, 0.55);
  box-shadow: var(--shadow);
}
body.ds .bento-card[aria-checked="true"] {
  border-color: rgba(129, 140, 248, 0.85);
  box-shadow: 0 0 0 1px rgba(129, 140, 248, 0.45), var(--shadow);
}
body.ds .bento-card.lead {
  grid-column: span 2;
  min-height: 196px;
  padding: 20px;
  background:
    radial-gradient(120% 90% at 0% 0%, rgba(99, 102, 241, 0.38), transparent 55%),
    radial-gradient(90% 80% at 100% 100%, rgba(34, 211, 238, 0.16), transparent 50%),
    var(--card);
}
body.ds .bento-icon { font-size: 1.6rem; line-height: 1; }
body.ds .bento-card.lead .bento-icon { font-size: 2rem; }
body.ds .bento-name { font-size: 1rem; font-weight: 700; letter-spacing: -0.03em; line-height: 1.2; }
body.ds .bento-card.lead .bento-name { font-size: clamp(1.35rem, 3vw, 1.85rem); }
body.ds .bento-count { color: var(--muted); font-size: 0.8125rem; font-weight: 600; }
body.ds .bento-count.is-link { letter-spacing: 0.01em; }
body.ds .bento-tag { color: var(--muted); font-size: 0.875rem; }
body.ds .pill-flag {
  background: rgba(129, 140, 248, 0.16);
  color: #c7d2fe;
  border: 1px solid rgba(129, 140, 248, 0.35);
}
html.theme-light body.ds .pill-flag { color: #3730a3; }
@media (min-width: 960px) {
  body.ds .bento { grid-template-columns: repeat(4, 1fr); }
  body.ds .bento-card.lead { grid-column: span 2; grid-row: span 2; min-height: 280px; }
}

body.ds .tool-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 760px) { body.ds .tool-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1080px) { body.ds .tool-grid { grid-template-columns: 1fr 1fr 1fr; } }

body.ds .tool-card,
body.ds .guide-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
body.ds .tool-card:hover,
body.ds .guide-card:hover,
body.ds .board-row:hover,
body.ds .rank-item:hover {
  transform: translateY(-4px);
  border-color: rgba(129, 140, 248, 0.55);
  box-shadow: 0 0 0 1px rgba(129, 140, 248, 0.2), var(--shadow);
}
body.ds .tool-card-top { display: flex; align-items: flex-start; gap: 12px; }
body.ds .tool-card-id { min-width: 0; flex: 1; }
body.ds .tool-card h3,
body.ds .board-title h3,
body.ds .guide-card h3 { font-size: 1rem; margin: 0; letter-spacing: -0.02em; line-height: 1.25; }
body.ds .tool-desc { color: var(--muted); font-size: 0.875rem; margin: 0; }
body.ds .pill-row,
body.ds .board-title { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
body.ds .board-title h3 { margin-right: 4px; }
body.ds .pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1;
}
body.ds .price-free { color: #6ee7b7; background: rgba(16, 185, 129, 0.14); }
body.ds .price-freemium { color: #c7d2fe; background: rgba(99, 102, 241, 0.16); }
body.ds .price-paid { color: #fda4af; background: rgba(244, 63, 94, 0.14); }
html.theme-light body.ds .price-free { color: #047857; background: #d1fae5; }
html.theme-light body.ds .price-freemium { color: #3730a3; background: #e0e7ff; }
html.theme-light body.ds .price-paid { color: #9f1239; background: #ffe4e6; }
body.ds .tier {
  position: relative;
  min-width: 0;
  height: auto;
  border: 0;
  border-radius: 999px;
  padding: 2px 8px;
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 800;
}
body.ds .tier-S { color: #fbbf24; background: rgba(251, 191, 36, 0.14); }
body.ds .tier-A { color: #a5b4fc; background: rgba(99, 102, 241, 0.16); }
body.ds .tier-B { color: #67e8f9; background: rgba(34, 211, 238, 0.12); }
html.theme-light body.ds .tier-S { color: #92400e; background: #fef3c7; }
html.theme-light body.ds .tier-A { color: #3730a3; background: #e0e7ff; }
html.theme-light body.ds .tier-B { color: #155e75; background: #cffafe; }
body.ds .tier .tip {
  display: none;
  position: absolute;
  z-index: 5;
  left: 0;
  top: calc(100% + 6px);
  width: max-content;
  max-width: 240px;
  padding: 8px 10px;
  border-radius: 12px;
  background: #111827;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.4;
  white-space: normal;
}
body.ds .tier:hover .tip,
body.ds .tier:focus .tip,
body.ds .tier:focus-visible .tip { display: block; }
body.ds .watchout {
  background: none;
  color: var(--muted);
  border-radius: 0;
  padding: 0;
  font-size: 0.8125rem;
  line-height: 1.45;
  margin: 0;
}
body.ds .watch-label { color: var(--text); font-weight: 600; }
body.ds .logo {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  overflow: hidden;
  flex: none;
  display: grid;
  place-items: center;
  background: var(--chip);
  border: 1px solid var(--line);
}
body.ds .logo img { width: 40px; height: 40px; object-fit: cover; display: block; }
body.ds .logo-fallback {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(145deg, #4f46e5, #0891b2);
}
body.ds .save-btn {
  margin-left: auto;
  min-width: 44px;
  min-height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-size: 1.15rem;
  cursor: pointer;
}
body.ds .save-btn[aria-pressed="true"] {
  color: #fb7185;
  background: rgba(251, 113, 133, 0.12);
  border-color: transparent;
}
body.ds .visit {
  align-self: flex-start;
  margin-top: auto;
  font-size: 0.875rem;
  font-weight: 650;
  font-weight: 600;
  text-decoration: none;
}
body.ds .guide-card p { color: var(--muted); margin: 0; font-size: 0.875rem; }
body.ds .guides { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 760px) { body.ds .guides { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1080px) { body.ds .guides { grid-template-columns: 1fr 1fr 1fr 1fr; } }

body.ds .board { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
body.ds .board-row {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr) auto;
  gap: 12px 16px;
  align-items: center;
  padding: 12px 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--card);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
body.ds .board-no {
  font-variant-numeric: tabular-nums;
  font-weight: 750;
  font-weight: 700;
  color: var(--muted);
  min-width: 1.25rem;
  text-align: center;
}
body.ds .board-copy { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
body.ds .board-actions { display: flex; align-items: center; gap: 8px; }
@media (max-width: 720px) {
  body.ds .board-row { grid-template-columns: auto auto minmax(0, 1fr); }
  body.ds .board-actions { grid-column: 1 / -1; justify-content: space-between; }
}

body.ds .filter-bar { display: flex; flex-direction: column; gap: 16px; margin: 16px 0; }
body.ds .filter-label { display: block; margin-bottom: 8px; color: var(--muted); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
body.ds .choice-row, body.ds .chips { display: flex; flex-wrap: wrap; gap: 8px; }
body.ds .chip {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--chip);
  color: var(--text);
  border-radius: 999px;
  min-height: 36px;
  padding: 0 12px;
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
}
body.ds .chip[aria-checked="true"],
body.ds .chip[aria-pressed="true"],
body.ds .chip.active { background: #eef2ff; color: #312e81; border-color: transparent; }
html.theme-light body.ds .chip[aria-checked="true"],
html.theme-light body.ds .chip[aria-pressed="true"],
html.theme-light body.ds .chip.active { background: #312e81; color: #fff; }
body.ds #loadout-title { scroll-margin-top: 84px; }
body.ds .sort-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
body.ds .sort-row .filter-label { margin: 0; }
body.ds select {
  min-height: 40px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--card-solid);
  color: var(--text);
  font: inherit;
  padding: 0 12px;
}
body.ds .budget-note, body.ds .outside-note, body.ds .empty-state, body.ds .note { color: var(--muted); font-size: 0.875rem; }
body.ds .ranking-line { margin: 8px 0 0; }
body.ds .result-count { color: var(--muted); margin: 0; }

body.ds .sponsor-slot {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 16px 20px;
  align-items: center;
  margin: 0;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.22);
  color: var(--text);
}
html.theme-light body.ds .sponsor-slot {
  background: linear-gradient(180deg, #fff, #f8f7f4);
  border-color: rgba(15, 23, 42, 0.08);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.06);
}
body.ds .fp-logo {
  width: 64px;
  height: 64px;
  border-radius: 20%;
  overflow: hidden;
  display: block;
  flex: none;
}
body.ds .fp-logo img {
  width: 64px;
  height: 64px;
  border-radius: 20%;
  object-fit: cover;
  display: block;
}
body.ds .fp-kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--accent);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
body.ds .sponsor-slot h3 { margin: 4px 0 0; font-size: 1.15rem; color: var(--text); }
body.ds .sponsor-slot .fp-tagline {
  margin: 4px 0 0;
  max-width: none;
  font-size: 0.875rem;
  line-height: 1.45;
  font-weight: 500;
  color: #e7dfd2;
  overflow: visible;
  white-space: normal;
  text-overflow: clip;
  -webkit-line-clamp: unset;
  line-clamp: unset;
}
html.theme-light body.ds .sponsor-slot .fp-tagline { color: #1e3a63; }
body.ds .fp-tagline-accent { color: #B0522C; }
body.ds .sponsor-slot p { margin: 4px 0 0; max-width: 68ch; color: var(--muted); }
body.ds .sponsor-slot .subline { color: var(--text); font-weight: 500; font-size: 0.95rem; }
body.ds .sponsor-slot .badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
body.ds .fp-copy { min-width: 0; }
body.ds .sponsor-slot [data-sponsor-body] {
  display: block;
  overflow: visible;
  max-height: none;
  font-size: 0.875rem;
  line-height: 1.5;
  -webkit-line-clamp: unset;
  line-clamp: unset;
}
body.ds .sponsor-slot .btn,
body.ds .sponsor-slot .btn-primary {
  margin: 0;
  background: #f4f4f5;
  color: #111827;
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  min-height: 44px;
  white-space: nowrap;
  font-weight: 700;
}
body.ds .sponsor-slot .btn:hover,
body.ds .sponsor-slot .btn-primary:hover { background: #fff; color: #111827; }
html.theme-light body.ds .sponsor-slot .btn-primary,
html.theme-light body.ds .sponsor-slot .btn { background: #111827; color: #fff; }
html.theme-light body.ds .sponsor-slot .btn-primary:hover { background: #000; color: #fff; }
body.ds .sponsor-slot .fp-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: stretch;
  min-width: 0;
}
body.ds .sponsor-slot .fp-actions .btn {
  width: 100%;
  white-space: normal;
  text-align: center;
}
body.ds .sponsor-slot .btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.22);
}
body.ds .sponsor-slot .btn-secondary:hover { background: rgba(255, 255, 255, 0.08); color: var(--text); }
html.theme-light body.ds .sponsor-slot .btn-secondary {
  background: transparent;
  color: #111827;
  border-color: rgba(15, 23, 42, 0.18);
}
html.theme-light body.ds .sponsor-slot .btn-secondary:hover { background: #f4f4f5; color: #111827; }
@media (max-width: 720px) {
  body.ds .sponsor-slot { grid-template-columns: 64px minmax(0, 1fr); align-items: start; }
  body.ds .sponsor-slot .btn,
  body.ds .sponsor-slot .fp-actions { grid-column: 1 / -1; width: 100%; white-space: normal; }
}

body.ds .nl-frame {
  border-radius: 16px;
  padding: 1px;
  background: linear-gradient(120deg, #6366f1, #a855f7, #22d3ee);
}
body.ds .newsletter {
  background: var(--card-solid);
  border: 0;
  border-radius: 15px;
  padding: 24px;
  color: var(--text);
}
body.ds .newsletter h2 { margin: 0 0 8px; font-size: clamp(1.4rem, 3vw, 1.8rem); }
body.ds .newsletter p { color: var(--muted); margin: 0; }
body.ds .newsletter form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 16px; }
body.ds .newsletter input[type="email"] {
  flex: 1 1 220px;
  width: auto;
  max-width: none;
  margin: 0;
  min-height: 48px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 16px;
}
body.ds .newsletter .btn { margin: 0; min-height: 48px; border-radius: 12px; }
body.ds .form-msg.ok { color: #34d399; }
body.ds .form-msg.err { color: #fb7185; }

body.ds .faq-list { margin-top: 8px; border-top: 1px solid var(--line); }
body.ds .faq-item { border-bottom: 1px solid var(--line); }
body.ds .faq-item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
  padding: 12px 0;
  font-weight: 650;
  font-weight: 600;
  letter-spacing: -0.02em;
}
body.ds .faq-item summary::-webkit-details-marker { display: none; }
body.ds .faq-item summary::after { content: "+"; color: var(--muted); font-weight: 500; font-size: 1.25rem; }
body.ds .faq-item[open] summary::after { content: "–"; }
body.ds .faq-item p { color: var(--muted); margin: 0 0 16px; max-width: 70ch; }

body.ds .rank-list { gap: 12px; }
body.ds .rank-list.has-logo .rank-item { grid-template-columns: auto auto minmax(0, 1fr); align-items: start; }
body.ds .rank-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
body.ds .rank-item.top { border-color: rgba(129, 140, 248, 0.45); box-shadow: none; }
body.ds .rank-no { color: var(--muted); }
body.ds .rank-body p,
body.ds .maker { color: var(--muted); }
body.ds .for,
body.ds .for b { color: var(--text); }
body.ds .crumbs { color: var(--muted); }
body.ds .crumbs a { color: var(--muted); }
body.ds .uc-nav a {
  background: var(--card);
  color: var(--text);
  border-color: var(--line);
  border-radius: 999px;
}
body.ds .uc-nav a:hover { border-color: rgba(129, 140, 248, 0.6); color: var(--text); }

body.ds .site-footer {
  background: transparent;
  color: var(--muted);
  border-top: 1px solid var(--line);
  margin-top: 32px;
  padding: 40px 0 28px;
}
body.ds .site-footer .brand,
body.ds .site-footer .brand span,
body.ds .site-footer .cols h2 { color: var(--text); }
body.ds .site-footer p,
body.ds .site-footer .cols a,
body.ds .fine,
body.ds .copyright { color: var(--muted); }
body.ds .site-footer .cols a:hover { color: var(--text); }
body.ds .controls { gap: 16px; }

body.ds .card,
body.ds .pick-card,
body.ds .tier-card,
body.ds .tool-spot,
body.ds .slot {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
body.ds .card:hover,
body.ds .pick-card:hover,
body.ds .tier-card:hover,
body.ds .tool-spot:hover {
  transform: translateY(-4px);
  border-color: rgba(129, 140, 248, 0.55);
  box-shadow: 0 0 0 1px rgba(129, 140, 248, 0.2), var(--shadow);
}
body.ds .tier-card.highlight {
  border-color: rgba(129, 140, 248, 0.85);
  background:
    radial-gradient(120% 90% at 0% 0%, rgba(99, 102, 241, 0.28), transparent 55%),
    var(--card);
}
body.ds .card p,
body.ds .pick-card p,
body.ds .tier-card p,
body.ds .tier-card li,
body.ds .tool-spot p { color: var(--muted); }
body.ds .price { color: var(--text); }
body.ds .price small { color: var(--muted); font-weight: 500; }
body.ds .best-for {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  color: var(--text);
}
body.ds .price-badge {
  background: rgba(99, 102, 241, 0.16);
  color: #c7d2fe;
  border-radius: 999px;
}
html.theme-light body.ds .price-badge { color: #3730a3; background: #e0e7ff; }
body.ds .tags li { background: var(--chip); color: var(--text); }
body.ds .card.release time { color: var(--accent); font-size: 0.8125rem; font-weight: 600; }
body.ds .section-head .badge {
  border: 1px solid var(--line);
  color: var(--muted);
  background: var(--chip);
  border-radius: 999px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
body.ds .prose { max-width: 72ch; padding-top: 8px; }
body.ds .prose h1 {
  font-size: clamp(2.15rem, 5vw, 3.4rem);
  letter-spacing: -0.045em;
  line-height: 1.02;
  margin: 12px 0 16px;
  color: var(--text);
}
body.ds .prose h2,
body.ds .prose h3 { color: var(--text); }
body.ds .prose p,
body.ds .prose li,
body.ds .prose ul { color: var(--muted); }
body.ds .prose strong { color: var(--text); }
body.ds .prose code {
  background: var(--chip);
  padding: 1px 6px;
  border-radius: 6px;
  font-size: 0.92em;
}
body.ds .btn {
  border-radius: 999px;
  background: var(--chip);
  color: var(--text);
  border: 1px solid var(--line);
  text-decoration: none;
}
body.ds .btn:hover { border-color: rgba(129, 140, 248, 0.6); color: var(--text); text-decoration: none; }
body.ds .btn-primary { background: #f4f4f5; color: #111827; border-color: transparent; }
body.ds .btn-primary:hover { background: #fff; color: #111827; }
html.theme-light body.ds .btn-primary { background: #111827; color: #fff; }
html.theme-light body.ds .btn-primary:hover { background: #000; color: #fff; }
body.ds .btn-outline { color: var(--text); border-color: var(--line); background: transparent; }
body.ds .btn-outline:hover { color: var(--text); border-color: rgba(129, 140, 248, 0.6); background: var(--chip); }
body.ds .newsletter { max-width: none; }
body.ds .hero .updated,
body.ds .updated { color: var(--muted); }
body.ds.page-rank .hero h1,
body.ds.page-prose .hero h1,
body.ds.page-guide .guide h1,
body.ds.page-tools .hero h1 {
  font-size: clamp(2.15rem, 5vw, 3.5rem);
  letter-spacing: -0.04em;
  line-height: 1.02;
}
body.ds.page-guide .guide { padding-top: 36px; padding-bottom: 48px; }
body.ds .tool-spot { margin-bottom: 12px; }
body.ds .tool-spot-head h2 { font-size: 1.15rem; letter-spacing: -0.03em; }
body.ds .guide-faq h2,
body.ds .related h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
body.ds .related { border-top: 1px solid var(--line); }
body.ds .more { color: var(--accent); font-weight: 650; font-weight: 600; }
body.ds.page-rank:not(:has(.hero-bg)) main,
body.ds.page-prose main,
body.ds.page-guide main,
body.ds.page-tools main { position: relative; }
body.ds.page-rank:not(:has(.hero-bg)) main::before,
body.ds.page-prose main::before,
body.ds.page-guide main::before,
body.ds.page-tools main::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 380px;
  pointer-events: none;
  background:
    radial-gradient(ellipse 50% 45% at 18% 20%, rgba(99, 102, 241, 0.35), transparent 60%),
    radial-gradient(ellipse 42% 40% at 78% 8%, rgba(168, 85, 247, 0.28), transparent 62%),
    radial-gradient(ellipse 40% 36% at 62% 70%, rgba(34, 211, 238, 0.16), transparent 64%);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 42%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 42%, transparent 100%);
}
body.ds.page-rank:not(:has(.hero-bg)) main > *,
body.ds.page-prose main > *,
body.ds.page-guide main > *,
body.ds.page-tools main > * { position: relative; }

@media (prefers-reduced-motion: reduce) {
  body.ds .mesh { animation: none; }
  body.ds .tool-card:hover,
  body.ds .guide-card:hover,
  body.ds .bento-card:hover,
  body.ds .board-row:hover,
  body.ds .rank-item:hover,
  body.ds .card:hover,
  body.ds .pick-card:hover,
  body.ds .tier-card:hover,
  body.ds .tool-spot:hover { transform: none; }
}

/* Commercial films: fixed 16:9 frame. This lives in the stylesheet on purpose:
   the site CSP (style-src 'self') blocks inline style attributes, which is why the
   Nov 1 inline-style pin on the <video> tags never applied in a real browser. */
body.ds video.film { width: 100%; max-width: 880px; aspect-ratio: 16 / 9; height: auto; display: block; margin: 0 auto; border-radius: 16px; background: #050914; }

/* Film sections: center the kicker/headline (and lede) over the centered 880px film
   so the title and the video share one axis (Chris, Nov 3). */
body.ds .film-sec .section-kicker, body.ds .film-sec h2 { text-align: center; }
body.ds .film-sec .lede { max-width: 880px; margin-left: auto; margin-right: auto; text-align: center; }

/* Header search (Chris, Nov 3): the command search lives in the header row,
   right-aligned next to the theme toggle; full-width row on small screens. */
body.ds .site-header .cmd { position: relative; margin-top: 0; flex: 0 1 320px; min-width: 170px; }
body.ds .site-header .cmd-bar { min-height: 44px; border-radius: 12px; }
body.ds .site-header .cmd-bar input { padding: 10px 0; font-size: 15px; }
@media (max-width: 860px) {
  body.ds .site-header .cmd { order: 4; flex: 1 1 100%; }
}
/* Sponsor card at the top of the hero, in the spot the live-badge held (Chris, Nov 3). */
body.ds .hero-copy .sponsor-slot { margin: 2px 0 28px; }

/* Header rows (Chris, Nov 3 correction): the 1080px header row cannot hold the brand,
   all 10 nav links, the search, and the toggle — the search wrapped to a second row
   instead of sitting next to Light. At desktop widths the nav now takes its own row,
   so the top row is: brand left, search + Light toggle right, side by side. */
@media (min-width: 861px) {
  body.ds .site-header nav { order: 3; flex: 1 1 100%; margin-left: 0; }
  body.ds .site-header .cmd { margin-left: auto; flex-basis: 300px; }
}

/* Header arrangement (Chris, Nov 3, per his red-line screenshot): the search bar
   belongs at the RIGHT END OF THE NAV ROW, after the last link (Agent-Ready) —
   not on the brand row. The brand row keeps only the toggle at the right.
   This block supersedes the >=861px rules from the previous header PR. */
@media (min-width: 861px) {
  body.ds .site-header .theme-toggle { order: 1; margin-left: auto; }
  body.ds .site-header nav { order: 2; flex: 0 1 auto; }
  body.ds .site-header .cmd { order: 3; flex: 0 1 260px; margin-left: auto; }
  body.ds .site-header .nav a { padding: 8px 8px; }
}
