/* EduDatasi — void + ember (ccapi.us live tokens; original copy) */

@font-face {
  font-family: "Overpass";
  src: url("../fonts/overpass-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Overpass Mono";
  src: url("../fonts/overpass-mono-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("../fonts/newsreader-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("../fonts/newsreader-latin-wght-italic.woff2") format("woff2");
  font-weight: 200 800;
  font-style: italic;
  font-display: swap;
}

:root,
[data-theme="dark"] {
  color-scheme: dark;
  --bg: #050507;
  --bg-elevated: #0e0e11;
  --panel: #111114;
  --control: #16161a;
  --card: #111114;
  --text: #f1ebdf;
  --soft: #c9c1b2;
  --muted: #8d877c;
  --nav-muted: #9a9385;
  --ember: #e7b465;
  --ember-bright: #efc47e;
  --ember-soft: #f5d6a3;
  --ember-deep: #c9913a;
  --hairline: rgb(241 235 223 / 0.11);
  --hairline-strong: rgb(241 235 223 / 0.18);
  --ember-ring: rgb(231 180 101 / 0.28);
  --ember-glow: rgb(231 180 101 / 0.18);
  --ember-fill: rgb(231 180 101 / 0.1);
  --primary: #e7b465;
  --primary-hover: #efc47e;
  --primary-soft: rgb(231 180 101 / 0.1);
  --accent: #efc47e;
  --accent-soft: rgb(231 180 101 / 0.1);
  --danger: #F87171;
  --ad-bg: #16161a;
  --orange: #F97316;
  --orange-hover: #EA580C;
  --btn-fg: #050507;
  --btn-bg: #f1ebdf;
  --btn-bg-hover: #fff8ec;
  --header-bg: color-mix(in srgb, #050507 94%, transparent);
  --nav-sheet: color-mix(in srgb, #050507 96%, transparent);
  --radius: 12px;
  --radius-sm: 10px;
  --shadow: 0 16px 40px rgb(0 0 0 / 0.4);
  --font: "Overpass", "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
  --font-mono: "Overpass Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --font-display: "Newsreader", "Songti SC", "Noto Serif CJK SC", "Source Han Serif SC", Georgia, serif;
  --max: 1280px;
}

[data-theme="light"] {
  color-scheme: light;
  --bg: #f7f4ee;
  --bg-elevated: #fffcf7;
  --panel: #ffffff;
  --control: #fffcf7;
  --card: #ffffff;
  --text: #1a1814;
  --soft: #4a453c;
  --muted: #6b655c;
  --nav-muted: #6b655c;
  --ember: #c9913a;
  --ember-bright: #b67d28;
  --ember-soft: #a06e24;
  --ember-deep: #9a6b22;
  --hairline: rgb(26 24 20 / 0.1);
  --hairline-strong: rgb(26 24 20 / 0.16);
  --ember-ring: rgb(201 145 58 / 0.28);
  --ember-glow: rgb(201 145 58 / 0.16);
  --ember-fill: rgb(201 145 58 / 0.1);
  --primary: #c9913a;
  --primary-hover: #b67d28;
  --primary-soft: rgb(201 145 58 / 0.1);
  --accent: #b67d28;
  --accent-soft: rgb(201 145 58 / 0.1);
  --danger: #DC2626;
  --ad-bg: #f0ebe3;
  --orange: #EA580C;
  --orange-hover: #C2410C;
  --btn-fg: #f7f4ee;
  --btn-bg: #1a1814;
  --btn-bg-hover: #2a2620;
  --header-bg: color-mix(in srgb, #f7f4ee 92%, transparent);
  --nav-sheet: color-mix(in srgb, #f7f4ee 96%, transparent);
  --shadow: 0 16px 40px rgb(26 24 20 / 0.08);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 15px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--ember); text-decoration: none; }
a:hover { color: var(--ember-soft); text-decoration: underline; }
img { max-width: 100%; }
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* —— Header —— */
.site-header {
  background: var(--header-bg);
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  border-bottom: 1px solid var(--hairline);
  position: sticky;
  top: 0;
  z-index: 40;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px 18px;
  min-height: 56px;
  padding: 6px 0;
  flex-wrap: wrap;
}
.header-inner .nav {
  flex: 1 1 auto;
  justify-content: flex-end;
}
.header-inner .header-actions {
  flex-shrink: 0;
  margin-left: 0;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 1.02rem;
  letter-spacing: 0.01em;
  color: var(--text);
  text-decoration: none;
}
.logo:hover { text-decoration: none; color: var(--text); }
.logo-mark {
  width: 26px; height: 26px; border-radius: 7px;
  background: var(--text);
  display: grid; place-items: center;
  color: var(--bg); font-size: 12px; font-weight: 800;
  font-family: var(--font-mono);
}
.nav { display: flex; flex-wrap: wrap; gap: 2px 16px; align-items: center; }
.nav a {
  position: relative;
  color: var(--nav-muted);
  font-size: 13px;
  padding: 6px 0;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color .15s;
}
.nav a:hover { color: var(--text); text-decoration: none; }
.nav a.active,
.nav a[aria-current="page"] {
  color: var(--text);
}
.nav a.active::after,
.nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: 0;
  height: 1px;
  background: var(--ember);
  box-shadow: 0 0 8px var(--ember-glow);
}
.nav-toggle {
  display: none;
  border: 1px solid var(--hairline);
  background: var(--control);
  border-radius: 8px;
  padding: 6px 10px;
  cursor: pointer;
  color: var(--text);
  font-family: inherit;
}
main { flex: 1; }

/* —— Hero —— */
.hero {
  position: relative;
  padding: 64px 0 48px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 55% 50% at 72% 42%, color-mix(in srgb, var(--ember) 12%, transparent), transparent 58%),
    radial-gradient(ellipse 40% 35% at 50% 0%, color-mix(in srgb, var(--text) 5%, transparent), transparent 55%),
    var(--bg);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.7;
  background-image:
    radial-gradient(1px 1px at 8% 14%, rgb(241 235 223 / 0.7), transparent),
    radial-gradient(1px 1px at 22% 38%, rgb(231 180 101 / 0.55), transparent),
    radial-gradient(1.2px 1.2px at 41% 18%, rgb(241 235 223 / 0.55), transparent),
    radial-gradient(1px 1px at 58% 48%, rgb(231 180 101 / 0.45), transparent),
    radial-gradient(1px 1px at 74% 22%, rgb(241 235 223 / 0.5), transparent),
    radial-gradient(1.2px 1.2px at 86% 44%, rgb(231 180 101 / 0.4), transparent),
    radial-gradient(1px 1px at 14% 62%, rgb(241 235 223 / 0.4), transparent),
    radial-gradient(1px 1px at 33% 76%, rgb(231 180 101 / 0.35), transparent),
    radial-gradient(1px 1px at 52% 68%, rgb(241 235 223 / 0.35), transparent),
    radial-gradient(1.2px 1.2px at 68% 80%, rgb(231 180 101 / 0.3), transparent),
    radial-gradient(1px 1px at 92% 70%, rgb(241 235 223 / 0.3), transparent);
}
.hero .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(340px, 1.15fr);
  gap: 24px 28px;
  align-items: center;
}
.hero-copy { text-align: left; max-width: 34em; }
.hero-visual {
  position: relative;
  min-height: 520px;
  height: 100%;
  display: grid;
  place-items: center;
  pointer-events: none;
  overflow: visible;
  transform: scale(1.22);
  transform-origin: center center;
}
.hero-orbit-canvas {
  width: 124%;
  max-width: none;
  height: 100%;
  min-height: 520px;
  display: block;
}

.hero-eyebrow {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(20px, 2.2vw, 26px);
  line-height: 1.35;
  letter-spacing: -0.005em;
  color: var(--ember);
}
.hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(48px, 6.2vw, 72px);
  line-height: 1.12;
  letter-spacing: -0.012em;
  color: var(--text);
}
.hero h1 .hero-line2 { display: block; }
.hero-rule {
  width: 48px;
  height: 1px;
  margin: 22px 0 18px;
  background: var(--hairline-strong);
  border: 0;
}
.hero .sub {
  margin: 0 0 28px;
  max-width: 30em;
  color: var(--soft);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.85;
}

.search-box {
  display: flex;
  gap: 10px;
  max-width: 520px;
  flex-wrap: wrap;
  justify-content: flex-start;
}
.search-box input {
  flex: 1 1 220px;
  height: 48px;
  padding: 0 16px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  font-size: 15px;
  font-family: inherit;
  background: var(--control);
  color: var(--text);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.search-box input::placeholder { color: var(--muted); }
.search-box input:focus {
  border-color: rgb(231 180 101 / 0.45);
  box-shadow: 0 0 0 3px var(--ember-ring);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  border: 1px solid transparent;
  text-decoration: none;
  white-space: nowrap;
  transition: background .15s, border-color .15s, color .15s, opacity .15s;
}
.btn:hover { text-decoration: none; }
.btn-primary {
  background: var(--btn-bg);
  color: var(--btn-fg);
  border-color: transparent;
  box-shadow: none;
}
.btn-primary:hover {
  background: var(--btn-bg-hover);
  color: var(--btn-fg);
}
.btn-secondary {
  background: transparent;
  color: var(--soft);
  border-color: var(--hairline-strong);
}
.btn-secondary:hover {
  background: rgb(241 235 223 / 0.04);
  color: var(--text);
}
.btn-ghost {
  background: transparent;
  color: var(--muted);
  height: auto;
  padding: 4px 8px;
  font-weight: 500;
  border-radius: 6px;
}
.btn-ghost:hover { color: var(--ember-bright); }
.btn-lg { height: 48px; padding: 0 22px; font-size: 15px; }
.btn:disabled, .btn.is-disabled {
  opacity: 0.45; cursor: not-allowed; pointer-events: none;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-start;
  margin-top: 20px;
}
.chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 13px;
  border-radius: 999px;
  background: var(--control);
  border: 1px solid var(--hairline);
  color: var(--text);
  font-size: 13px;
  text-decoration: none;
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
}
.chip:hover {
  border-color: rgb(231 180 101 / 0.45);
  color: var(--ember-soft);
  text-decoration: none;
}
.chip.featured {
  background: var(--ember-fill);
  border-color: rgb(231 180 101 / 0.4);
  color: var(--ember-bright);
  font-weight: 600;
}
.chip.active {
  background: var(--ember-fill);
  border-color: var(--ember);
  color: var(--ember-soft);
  font-weight: 600;
}
.chip.accent-feat {
  background: rgb(231 180 101 / 0.08);
  border-color: rgb(231 180 101 / 0.35);
  color: var(--ember-bright);
  font-weight: 600;
}

.section { padding: 36px 0; }
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  flex-wrap: wrap;
  border-top: 1px solid var(--hairline);
  padding-top: 28px;
}
.section-head h2 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--text);
  font-family: var(--font-display);
}
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}
.resource-card {
  background: var(--panel);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color .15s, background .15s;
  text-decoration: none;
  color: inherit;
  box-shadow: none;
}
.resource-card:hover {
  border-color: var(--hairline-strong);
  background: var(--bg-elevated);
  text-decoration: none;
}
.card-thumb {
  height: 1px;
  border-radius: 0;
  background: var(--hairline-strong);
  opacity: 1;
}
.resource-card h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text);
}
.resource-card .summary {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pills { display: flex; flex-wrap: wrap; gap: 6px; }
.pill {
  font-size: 11px;
  padding: 2px 9px;
  border-radius: 999px;
  background: transparent;
  color: var(--soft);
  border: 1px solid var(--hairline);
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}
.pill.blue {
  color: var(--ember-bright);
  border-color: rgb(231 180 101 / 0.28);
}
.pill.gray {
  color: var(--muted);
  border-color: var(--hairline);
}
.ad-slot {
  background: var(--ad-bg);
  border: 1px dashed var(--hairline);
  border-radius: var(--radius);
  color: var(--muted);
  display: grid;
  place-items: center;
  text-align: center;
  font-size: 13px;
  padding: 16px;
  min-height: 72px;
}
.ad-slot.banner { min-height: 90px; }
.ad-slot.feed { min-height: 64px; margin: 12px 0; }
.ad-slot.transit { min-height: 120px; margin: 20px 0; }

.site-footer {
  margin-top: 48px;
  border-top: 1px solid var(--hairline);
  background: var(--bg-elevated);
  padding: 28px 0;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--ember); }

.page-toolbar { padding: 28px 0 8px; }
.page-toolbar h1 {
  margin: 0 0 14px;
  font-size: clamp(28px, 4vw, 40px);
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--text);
}
.facet-bar {
  background: var(--panel);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin: 12px 0 16px;
}
.facet-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 10px;
}
.facet-row:last-child { margin-bottom: 0; }
.facet-label {
  font-size: 13px;
  color: var(--text-soft, var(--muted));
  min-width: 48px;
  font-weight: 600;
  font-family: var(--font);
  letter-spacing: 0.02em;
  text-transform: none;
}
.facet-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
  font-size: 13px;
  color: var(--muted);
}
.result-meta { margin: 8px 0 12px; color: var(--muted); font-size: 14px; }
.result-list { display: flex; flex-direction: column; gap: 12px; }
.result-list .resource-card { flex-direction: row; gap: 14px; align-items: flex-start; }
.result-list .card-thumb {
  width: 1px; height: auto; align-self: stretch; min-height: 64px;
  border-radius: 0; flex-shrink: 0;
  background: var(--hairline-strong);
}
.result-list .card-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.breadcrumb {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 12px;
  display: flex; flex-wrap: wrap; gap: 6px;
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--ember); }
.detail-panel {
  background: var(--panel);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: none;
}
.detail-panel h1 {
  margin: 0 0 12px;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.25;
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.01em;
}
.detail-panel .lead { color: var(--soft); margin: 12px 0 20px; line-height: 1.75; }
.drive-buttons { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.empty-state {
  text-align: center;
  padding: 48px 16px;
  background: var(--panel);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
}
.empty-state h2 { margin: 0 0 8px; font-size: 1.1rem; }
.empty-state p { color: var(--muted); margin: 0 0 16px; }
.transit-box {
  max-width: 480px;
  margin: 48px auto;
  background: var(--panel);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
}
.transit-box h1 { font-size: 1.25rem; margin: 0 0 8px; font-family: var(--font-display); font-weight: 400; }
.transit-box .meta { color: var(--muted); font-size: 14px; margin-bottom: 8px; }
.related { margin-top: 28px; }

@media (max-width: 900px) {
  .hero .container {
    grid-template-columns: 1fr;
  }
  .hero-visual {
    order: -1;
    min-height: 260px;
  }
  .hero-orbit-canvas { min-height: 320px; }
  .hero-visual { transform: scale(1.08); min-height: 320px; }
  .hero-copy { text-align: center; max-width: none; margin: 0 auto; }
  .hero-rule { margin-left: auto; margin-right: auto; }
  .search-box { justify-content: center; margin: 0 auto; }
  .hero .sub { margin-left: auto; margin-right: auto; }
}
@media (max-width: 720px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    display: none;
    position: absolute;
    left: 0; right: 0; top: 56px;
    background: var(--nav-sheet);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--hairline);
    padding: 12px 20px 16px;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .nav.open { display: flex; }
  .site-header { position: sticky; }
  .header-inner { position: relative; }
  .result-list .resource-card { flex-direction: column; }
  .result-list .card-thumb { width: 100%; height: 1px; min-height: 0; }
  .hero { padding: 40px 0 32px; }
  .detail-panel { padding: 18px; }
  .hero-visual { min-height: 220px; }
  .hero-orbit-canvas { min-height: 260px; }
  .hero-visual { transform: scale(1.05); min-height: 260px; }
}

/* —— 中转页 —— */
.btn-orange {
  background: var(--orange);
  color: #fff;
  border-color: var(--orange);
  box-shadow: 0 4px 18px rgb(249 115 22 / 0.3);
  width: 100%;
  height: 52px;
  font-size: 16px;
  border-radius: 999px;
}
.btn-orange:hover { background: var(--orange-hover); color: #fff; border-color: var(--orange-hover); }
.go-wrap {
  min-height: calc(100vh - 140px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 32px 16px 48px;
  background:
    radial-gradient(ellipse at 50% 0%, rgb(231 180 101 / 0.07), transparent 50%),
    var(--bg);
}
.go-card {
  width: 100%;
  max-width: 520px;
  background: var(--panel);
  border: 1px solid var(--hairline);
  border-radius: 16px;
  padding: 24px 24px 20px;
  box-shadow: none;
}
.go-back {
  display: inline-block;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 14px;
  text-decoration: none;
}
.go-back:hover { color: var(--ember); }
.go-via { font-size: 13px; color: var(--muted); margin: 0 0 10px; }
.go-via strong { color: var(--text); font-weight: 600; }
.go-card h1 {
  margin: 0 0 8px;
  font-size: 1.35rem;
  line-height: 1.35;
  font-family: var(--font-display);
  font-weight: 400;
}
.go-tags { font-size: 13px; color: var(--muted); margin: 0 0 18px; }
.extract-row {
  display: flex;
  gap: 10px;
  align-items: stretch;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.extract-box {
  flex: 1 1 180px;
  background: var(--control);
  border: 1px solid var(--hairline);
  border-radius: 10px;
  padding: 14px 16px;
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.extract-box .lbl { font-size: 14px; color: var(--muted); }
.extract-box .code {
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--ember);
}
.go-tips {
  margin-top: 16px;
  background: rgb(231 180 101 / 0.05);
  border: 1px solid var(--hairline);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 13px;
  color: var(--soft);
  text-align: left;
}
.go-tips ul { margin: 0; padding-left: 1.1em; }
.go-tips li { margin: 4px 0; }
.go-invalid {
  background: rgb(248 113 113 / 0.08);
  color: #FCA5A5;
  border: 1px solid rgb(248 113 113 / 0.25);
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 12px;
  font-size: 14px;
}

/* —— 首页分类 —— */
.home-cats {
  margin: 28px 0 0;
  max-width: 920px;
  background: var(--panel);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 14px 16px 8px;
  text-align: left;
  box-shadow: none;
  grid-column: 1 / -1;
}
.home-cats .facet-row {
  align-items: flex-start;
  margin-bottom: 10px;
  gap: 10px 12px;
}
.home-cats .facet-label {
  min-width: 56px;
  width: 56px;
  flex-shrink: 0;
  padding-top: 7px;
  line-height: 1.35;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font);
  color: var(--text-soft, #c9c1b2);
  text-transform: none;
  letter-spacing: 0.02em;
}
.home-cats .chips {
  margin-top: 0;
  justify-content: flex-start;
  flex: 1;
  min-width: 0;
  gap: 8px;
}
.home-cats .chip {
  padding: 6px 12px;
  background: var(--control);
}

/* —— 职业下拉 —— */
.nav-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.nav-drop-trigger { cursor: pointer; }
.nav-drop-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 6px;
  min-width: 120px;
  background: var(--panel);
  border: 1px solid var(--hairline);
  border-radius: 10px;
  box-shadow: 0 12px 32px rgb(0 0 0 / 0.5);
  padding: 6px;
  flex-direction: column;
  gap: 2px;
  z-index: 50;
}
.nav-drop-menu a {
  display: block;
  padding: 8px 12px !important;
  border-radius: 8px;
  color: var(--soft) !important;
  font-size: 13px;
  white-space: nowrap;
}
.nav-drop-menu a:hover {
  background: rgb(241 235 223 / 0.04);
  color: var(--text) !important;
  text-decoration: none;
}
.nav-drop-menu a::after { display: none !important; }
.nav-dropdown:hover .nav-drop-menu,
.nav-dropdown:focus-within .nav-drop-menu {
  display: flex;
}
@media (max-width: 720px) {
  .nav-dropdown {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
  }
  .nav-drop-menu {
    position: static;
    display: flex;
    box-shadow: none;
    border: none;
    margin: 4px 0 0 8px;
    padding: 0;
    background: transparent;
  }
  .home-cats { padding: 12px 14px 6px; }
  .home-cats .facet-label { width: 44px; min-width: 44px; }
}


/* —— Theme toggle —— */
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 32px;
  min-width: 32px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid var(--hairline);
  background: var(--control);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: color .15s, border-color .15s, background .15s;
}
.theme-toggle:hover {
  color: var(--text);
  border-color: var(--ember-ring);
}
.theme-toggle .theme-ico { font-size: 13px; line-height: 1; }
.theme-toggle .theme-label { display: none; }
@media (min-width: 960px) {
  .theme-toggle .theme-label { display: inline; }
}
@media (max-width: 720px) {
  .header-actions {
    order: 2;
    margin-left: 0;
  }
  .nav-toggle { order: 3; margin-left: auto; }
}


.ad-slot[hidden] { display: none !important; }
.ad-live {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between;
  padding: 12px 14px; border-radius: 12px;
  border: 1px dashed rgba(231,180,101,0.35);
  background: rgba(231,180,101,0.06);
  font-size: 0.85rem; color: var(--muted);
}
.ad-live .ad-label { color: var(--accent); }
