/* ── Reset ─────────────────────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Plus Jakarta Sans', 'Helvetica Neue', sans-serif;
  min-height: 100vh;
  line-height: 1.6;
  background: var(--bg);
  color: var(--text);
}

a {
  color: inherit;
  text-decoration: none;
}

ul[role="list"] {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

button {
  font-family: inherit;
  cursor: pointer;
}

/* ── Theme 1 — Lavender & Tangerine (default) ─────────────────────────── */
.theme-lavender {
  --primary: #4338CA;
  --primary-dark: #312E81;
  --primary-light: #E0E7FF;
  --primary-mid: #6366F1;
  --primary-bright: #818CF8;
  --accent: #F97316;
  --accent-text: #FFFFFF;
  --accent-light: #FFF1E6;
  --bg: #F1F0F9;
  --bg-card: #FFFFFF;
  --bg-hero: #EEEDF8;
  --bg-nav: #1E1B4B;
  --bg-group-hd: #EEF2FF;
  --bg-widget: #FFFFFF;
  --border: #DDD8F5;
  --border2: #C4BBEE;
  --text: #1E1B4B;
  --text-muted: #3730A3;
  --text-hint: #7C7AA8;
  --text-on-hero: #1E1B4B;
  --text-hero-sub: #5B5890;
  --text-hero-eye: #6366F1;
  --dot: #6366F1;
  --btn-add-bg: #E0E7FF;
  --btn-add-text: #312E81;
  --btn-add-hover: #4338CA;
  --nav-link: #A5B4FC;
  --nav-active: #F97316;
  --nav-bag-border: #4338CA;
  --nav-bag-text: #A5B4FC;
  --card-shadow: 0 2px 8px rgba(67, 56, 202, 0.07), 0 0 0 1px rgba(67, 56, 202, 0.05);
  --card-shadow-hover: 0 8px 28px rgba(67, 56, 202, 0.14), 0 0 0 1px rgba(67, 56, 202, 0.1);
}

/* ── Theme 2 — Navy & Gold ────────────────────────────────────────────── */
.theme-navy {
  --primary: #1E3A8A;
  --primary-dark: #1E2D6E;
  --primary-light: #DBEAFE;
  --primary-mid: #3B82F6;
  --primary-bright: #60A5FA;
  --accent: #F59E0B;
  --accent-text: #1a1a1a;
  --accent-light: #FEF3C7;
  --bg: #EEF3FB;
  --bg-card: #FFFFFF;
  --bg-hero: #E8EFF9;
  --bg-nav: #0F172A;
  --bg-group-hd: #EFF6FF;
  --bg-widget: #FFFFFF;
  --border: #BFDBFE;
  --border2: #93C5FD;
  --text: #0F172A;
  --text-muted: #1E3A8A;
  --text-hint: #5B7BB5;
  --text-on-hero: #0F172A;
  --text-hero-sub: #3D5A99;
  --text-hero-eye: #3B82F6;
  --dot: #3B82F6;
  --btn-add-bg: #DBEAFE;
  --btn-add-text: #1E2D6E;
  --btn-add-hover: #1E3A8A;
  --nav-link: #94A3B8;
  --nav-active: #F59E0B;
  --nav-bag-border: #3B82F6;
  --nav-bag-text: #93C5FD;
  --card-shadow: 0 2px 8px rgba(30, 58, 138, 0.07), 0 0 0 1px rgba(30, 58, 138, 0.05);
  --card-shadow-hover: 0 8px 28px rgba(30, 58, 138, 0.14), 0 0 0 1px rgba(30, 58, 138, 0.1);
}

/* ── Theme 3 — Midnight Dark ──────────────────────────────────────────── */
.theme-dark {
  --primary: #818CF8;
  --primary-dark: #6366F1;
  --primary-light: #312E81;
  --primary-mid: #A5B4FC;
  --primary-bright: #C7D2FE;
  --accent: #FB923C;
  --accent-text: #1a1a1a;
  --accent-light: #431407;
  --bg: #0F0E17;
  --bg-card: #1A1927;
  --bg-hero: #13121F;
  --bg-nav: #0A0917;
  --bg-group-hd: #1E1D2E;
  --bg-widget: #1E1D2E;
  --border: #2D2B45;
  --border2: #4A476A;
  --text: #F0EEFF;
  --text-muted: #C4BFFF;
  --text-hint: #9490C8;
  --text-on-hero: #F0EEFF;
  --text-hero-sub: #A89FD8;
  --text-hero-eye: #A5B4FC;
  --dot: #818CF8;
  --btn-add-bg: #2D2B45;
  --btn-add-text: #E0DBFF;
  --btn-add-hover: #4338CA;
  --nav-link: #7A779E;
  --nav-active: #FB923C;
  --nav-bag-border: #3730A3;
  --nav-bag-text: #A5B4FC;
  --card-shadow: 0 2px 8px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.04);
  --card-shadow-hover: 0 8px 28px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(129, 140, 248, 0.18);
}

/* ── Skip link ─────────────────────────────────────────────────────────── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 9999;
  background: var(--accent);
  color: var(--accent-text);
  padding: 0.5rem 1rem;
  border-radius: 0 0 10px 10px;
  font-weight: 700;
  font-size: 0.875rem;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 0;
}

/* ── Header & nav ──────────────────────────────────────────────────────── */
.site-header {
  background: var(--bg-nav);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: 64px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.logo-icon {
  font-size: 1.4rem;
  line-height: 1;
}

.logo-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.logo-primary {
  font-size: 0.9375rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.2px;
  line-height: 1.2;
}

.logo-sub {
  font-size: 0.6rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.12em;
  line-height: 1.2;
  text-transform: uppercase;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: auto;
}

.primary-nav ul {
  display: flex;
  gap: 0.125rem;
}

.nav-link {
  font-size: 0.875rem;
  color: var(--nav-link);
  padding: 0.375rem 0.875rem;
  border-radius: 8px;
  transition: color 0.15s, background 0.15s;
  display: block;
}

.nav-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.nav-link--active {
  color: #fff !important;
  font-weight: 600;
}

.nav-search {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.5);
  transition: background 0.15s, color 0.15s;
}

.nav-search:hover {
  background: rgba(255, 255, 255, 0.13);
  color: #fff;
}

.nav-bag {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--nav-bag-border);
  color: var(--nav-bag-text);
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.375rem 0.875rem;
  border-radius: 20px;
  margin-left: 0.5rem;
  transition: background 0.15s;
}

.nav-bag:hover {
  background: rgba(255, 255, 255, 0.12);
}

.bag-count {
  background: var(--accent);
  color: var(--accent-text);
  font-size: 0.625rem;
  font-weight: 700;
  border-radius: 50%;
  min-width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 6px;
  margin-left: auto;
}

.burger-bar {
  width: 22px;
  height: 2px;
  background: #aaa;
  border-radius: 2px;
  display: block;
}

/* ── Hero — two column split ───────────────────────────────────────────── */
.hero {
  background: var(--bg-hero);
  padding: 4rem 0 3.5rem;
  border-bottom: 1px solid var(--border);
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 3rem;
  align-items: center;
}

/* Single-column hero — used on all inner pages (category, about, bag) */
.hero-inner--single {
  display: block;
}

.hero-eyebrow {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-hero-eye);
  margin-bottom: 1rem;
}

.hero h1 {
  font-family: 'Plus Jakarta Sans', 'Helvetica Neue', sans-serif;
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 800;
  color: var(--text-on-hero);
  line-height: 1.1;
  margin-bottom: 1.25rem;
  letter-spacing: -0.75px;
}

.hero h1 em {
  font-style: italic;
  color: var(--accent);
}

.hero-sub {
  font-size: 1rem;
  color: var(--text-hero-sub);
  max-width: 460px;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.btn-hero-primary {
  background: var(--primary);
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 12px;
  border: none;
  transition: opacity 0.15s, transform 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.btn-hero-primary:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

.btn-hero-ghost {
  border: 1.5px solid var(--border2);
  color: var(--text-hero-sub);
  font-size: 0.9375rem;
  font-weight: 500;
  background: var(--bg-card);
  padding: 0.75rem 1.5rem;
  border-radius: 12px;
  transition: border-color 0.15s, color 0.15s;
}

.btn-hero-ghost:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* ── Today's Bag Widget ────────────────────────────────────────────────── */
.todays-bag-widget {
  background: var(--bg-widget);
  border-radius: 20px;
  padding: 1.25rem;
  box-shadow: var(--card-shadow-hover);
  border: 1px solid var(--border);
}

.widget-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.widget-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-hint);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.widget-date-badge {
  background: var(--accent);
  color: var(--accent-text);
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
}

.widget-ideas {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.widget-idea {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.625rem 0.75rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.625rem;
  transition: border-color 0.15s;
}

.widget-idea:hover {
  border-color: var(--border2);
}

.widget-idea-text {
  font-size: 0.8rem;
  color: var(--text);
  line-height: 1.45;
  flex: 1;
}

.widget-add-btn {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  flex-shrink: 0;
  border: 1.5px solid var(--border2);
  background: none;
  color: var(--text-hint);
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
  cursor: pointer;
  line-height: 1;
}

.widget-add-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}

.widget-add-btn.added {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  font-size: 10px;
}

.widget-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  padding-top: 0.875rem;
  gap: 0.5rem;
}

.widget-add-all {
  background: var(--primary);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.45rem 1rem;
  border-radius: 8px;
  border: none;
  transition: opacity 0.15s;
  cursor: pointer;
  white-space: nowrap;
}

.widget-add-all:hover {
  opacity: 0.85;
}

.widget-add-all.all-added {
  background: var(--btn-add-hover);
  opacity: 0.7;
}

.widget-actions-right {
  display: flex;
  gap: 1rem;
}

.widget-link {
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--text-hint);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.15s;
  padding: 0;
}

.widget-link:hover {
  color: var(--primary);
}

/* ── Search band ───────────────────────────────────────────────────────── */
.search-band {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 0;
}

.search-band-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.search-wrap {
  position: relative;
  max-width: 640px;
  margin: 0 auto;
}

.search-icon {
  position: absolute;
  left: 1.125rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-hint);
  pointer-events: none;
  display: flex;
  align-items: center;
}

.search-input {
  width: 100%;
  padding: 0.875rem 3rem 0.875rem 3rem;
  font-family: inherit;
  font-size: 0.9375rem;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  color: var(--text);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  -webkit-appearance: none;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.search-input::placeholder {
  color: var(--text-hint);
}

.search-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 15%, transparent);
}

.search-input::-webkit-search-cancel-button {
  display: none;
}

.search-clear {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 1.25rem;
  color: var(--text-hint);
  padding: 0 4px;
  line-height: 1;
  transition: color 0.15s;
  display: none;
}

.search-clear:hover {
  color: var(--text);
}

.search-clear.visible {
  display: block;
}

/* ── Page body ─────────────────────────────────────────────────────────── */
.page-body {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.5rem 2rem 5rem;
}

main#main-content {
  min-height: 80dvh;
}

/* ── Section labels ────────────────────────────────────────────────────── */
.section-eyebrow {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-hero-eye);
  margin-bottom: 0.5rem;
}

.section-heading {
  font-family: 'Plus Jakarta Sans', 'Helvetica Neue', sans-serif;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 800;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 0.5rem;
  letter-spacing: -0.5px;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.375rem;
}

.section-sub {
  font-size: 0.9rem;
  color: var(--text-hint);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.section-sub a,
.about-body a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.section-sub a:hover,
.about-body a:hover {
  text-decoration: none;
}

/* ── Back button ───────────────────────────────────────────────────────── */
.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-hint);
  margin-bottom: 1.75rem;
  padding: 0.5rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: color 0.15s, border-color 0.15s;
}

.back-btn:hover {
  color: var(--primary);
  border-color: var(--primary);
}

/* ── Breadcrumb ────────────────────────────────────────────────────────── */
.breadcrumb {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  padding: 0.625rem 0;
  font-size: 0.8125rem;
  color: var(--text-hint);
  display: flex;
  align-items: center;
}

.breadcrumb-inner {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  gap: 0.375rem;
  flex-wrap: wrap;
}

.crumb {
  color: var(--text-hint);
  transition: color 0.15s;
}

.crumb:hover {
  color: var(--primary);
}

.crumb.active {
  color: var(--text);
  font-weight: 600;
}

.sep {
  color: var(--border2);
  user-select: none;
}

/* ── Domain hero (category inner pages) ───────────────────────────────── */
.domain-hero {
  display: flex;
  align-items: flex-start;
  gap: 1.125rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2rem;
}

.hero-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
  color: #fff;
  margin-top: 0.25rem;
}

.domain-hero h2 {
  font-family: 'Plus Jakarta Sans', 'Helvetica Neue', sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.25rem;
  letter-spacing: -0.4px;
}

.domain-hero-sub {
  font-size: 0.9375rem;
  color: var(--text-hint);
}

.domain-description {
  margin-top: 0.5rem;
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.65;
}

.domain-note {
  margin-top: 0.75rem;
  padding: 0.75rem 1rem;
  background: var(--primary-light);
  border-left: 3px solid var(--primary);
  border-radius: 0 8px 8px 0;
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── Category (domain) grid — pillow cards ─────────────────────────────── */
.domain-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.25rem;
}

.domain-card {
  background: var(--bg-card);
  border-radius: 20px;
  padding: 1.5rem 1.375rem 1.25rem;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  position: relative;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--border);
  transition: box-shadow 0.2s, transform 0.2s;
  text-decoration: none;
  color: inherit;
}

.domain-card:hover,
.domain-card:focus-visible {
  box-shadow: var(--card-shadow-hover);
  transform: translateY(-2px);
  outline: none;
}

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: #fff;
  margin-bottom: 0.375rem;
}

.card-name {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}

.card-meta {
  font-size: 0.8125rem;
  color: var(--text-hint);
}

.card-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-top: 0.25rem;
  flex: 1;
}

.card-open {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--primary);
  margin-top: 0.875rem;
  transition: gap 0.15s;
}

.domain-card:hover .card-open {
  gap: 0.55rem;
}

.card-arrow {
  display: none;
}

/* ── Subdomain grid ────────────────────────────────────────────────────── */
.subdomain-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.sub-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.25rem 1.125rem;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  box-shadow: var(--card-shadow);
  transition: box-shadow 0.18s, transform 0.18s;
  text-decoration: none;
  color: inherit;
}

.sub-card:hover,
.sub-card:focus-visible {
  box-shadow: var(--card-shadow-hover);
  transform: translateY(-2px);
  outline: none;
}

.sub-pill {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 0.25rem;
  width: fit-content;
}

.sub-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}

.sub-count {
  font-size: 0.8125rem;
  color: var(--text-hint);
}

/* ── Idea groups ───────────────────────────────────────────────────────── */
.idea-groups {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.idea-group-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
}

.idea-group-header {
  width: 100%;
  padding: 1rem 1.375rem;
  font-size: 0.9375rem;
  font-weight: 700;
  font-family: inherit;
  background: var(--bg-group-hd);
  border: none;
  border-bottom: 1px solid transparent;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: left;
  color: var(--text);
  cursor: pointer;
  transition: background 0.15s;
}

.idea-group-header.open {
  border-bottom-color: var(--border);
}

.idea-group-header:hover {
  filter: brightness(0.97);
}

.group-count {
  color: var(--text-hint);
  font-weight: 400;
  font-size: 0.875rem;
}

.toggle-icon {
  color: var(--text-hint);
  font-size: 0.75rem;
  transition: transform 0.2s;
  display: inline-block;
  margin-left: 0.5rem;
}

.idea-group-header.open .toggle-icon {
  transform: rotate(180deg);
}

.ideas-list {
  list-style: none;
  display: none;
}

.ideas-list.open {
  display: block;
}

.idea-row {
  padding: 1rem 1.375rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  transition: background 0.12s;
}

.idea-row:last-child {
  border-bottom: none;
}

.idea-row.in-bag {
  background: color-mix(in srgb, var(--primary) 5%, var(--bg-card));
}

.idea-left {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  flex: 1;
  min-width: 0;
}

.idea-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--dot);
  flex-shrink: 0;
  margin-top: 0.5rem;
}

.idea-text {
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.65;
}

/* ── Skill pills on idea rows ──────────────────────────────────────────── */
.idea-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 6px;
}

.skill-pill {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 2px 9px;
  border-radius: 20px;
  background: var(--bg);
  border: 1px solid var(--border2);
  color: var(--text-hint);
  white-space: nowrap;
  letter-spacing: 0.02em;
}

/* ── Skills filter page ────────────────────────────────────────────────── */
.skills-filter-wrap {
  margin-bottom: 2.5rem;
}

.skills-filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 0.75rem;
}

.skill-filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 20px;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  color: var(--text-muted);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
  text-decoration: none;
}

.skill-filter-pill:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}

.skill-filter-pill.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.skill-filter-pill.active .skill-filter-count {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
}

.skill-filter-count {
  font-size: 0.6875rem;
  font-weight: 700;
  background: var(--bg);
  color: var(--text-hint);
  padding: 1px 7px;
  border-radius: 20px;
}

.skills-results-header {
  margin-bottom: 1.5rem;
}

.skills-results-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.4px;
  margin-bottom: 0.25rem;
}

.skills-results-meta {
  font-size: 0.875rem;
  color: var(--text-hint);
}

.skills-overview {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.skill-overview-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.25rem;
  box-shadow: var(--card-shadow);
  transition: box-shadow 0.18s, transform 0.18s;
  text-decoration: none;
  color: inherit;
  display: block;
  position: relative;
}

.skill-overview-card:hover {
  box-shadow: var(--card-shadow-hover);
  transform: translateY(-2px);
}

.skill-overview-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.skill-overview-count {
  font-size: 0.8125rem;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 6px;
}

.skill-overview-cats {
  font-size: 0.8rem;
  color: var(--text-hint);
  line-height: 1.5;
}

.skill-overview-arrow {
  position: absolute;
  bottom: 1.125rem;
  right: 1.25rem;
  color: var(--text-hint);
  opacity: 0;
  transition: opacity 0.15s;
}

.skill-overview-card:hover .skill-overview-arrow {
  opacity: 1;
}

.group-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.group-title-text {
  flex: 1;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.group-count-badge {
  font-size: 12px;
  color: var(--text-hint);
  background: var(--bg);
  border-radius: 20px;
  padding: 2px 9px;
}

.idea-meta {
  font-size: 0.78rem;
  color: var(--text-hint);
  margin-top: 0.25rem;
}

.idea-meta .meta-domain {
  color: var(--primary-mid);
  font-weight: 600;
}

.theme-dark .idea-meta .meta-domain {
  color: var(--primary-bright);
}

/* ── Buttons ───────────────────────────────────────────────────────────── */
.btn-add {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.8125rem;
  font-weight: 700;
  padding: 0.4rem 0.875rem;
  border-radius: 8px;
  border: none;
  background: var(--btn-add-bg);
  color: var(--btn-add-text);
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.btn-add:hover,
.btn-add:focus-visible {
  background: var(--btn-add-hover);
  color: #fff;
  outline: none;
}

.btn-add:focus-visible {
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 35%, transparent);
}

.btn-add.in-bag {
  background: var(--btn-add-hover);
  color: #fff;
}

.btn-remove {
  background: none;
  border: none;
  color: var(--text-hint);
  font-size: 1.25rem;
  line-height: 1;
  padding: 2px 6px;
  border-radius: 6px;
  cursor: pointer;
  flex-shrink: 0;
  transition: color 0.15s, background 0.15s;
}

.btn-remove:hover {
  color: #EF4444;
  background: rgba(239, 68, 68, 0.08);
}

/* ── Search results ────────────────────────────────────────────────────── */
.search-results {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.search-domain-block {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.search-domain-header {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.search-domain-name {
  font-family: 'Plus Jakarta Sans', 'Helvetica Neue', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
}

.search-result-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
}

.search-empty {
  text-align: center;
  padding: 3.5rem 1rem;
  color: var(--text-hint);
  font-size: 0.9375rem;
  line-height: 1.8;
}

mark {
  background: color-mix(in srgb, var(--accent) 30%, transparent);
  color: inherit;
  border-radius: 3px;
  padding: 0 3px;
}

/* ── Bag page ──────────────────────────────────────────────────────────── */
.bag-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.75rem;
}

.bag-title {
  font-family: 'Plus Jakarta Sans', 'Helvetica Neue', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.5px;
}

.bag-subtitle {
  font-size: 0.875rem;
  color: var(--text-hint);
  margin-top: 0.375rem;
}

.save-pdf-wrap {
  position: relative;
  display: inline-block;
}

.btn-save-pdf {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--primary);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 700;
  padding: 0.625rem 1.25rem;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: opacity 0.15s;
  white-space: nowrap;
}

.btn-save-pdf:hover {
  opacity: 0.85;
}

.pdf-tooltip {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  background: #1a1a1a;
  color: #fff;
  font-size: 0.8125rem;
  line-height: 1.5;
  padding: 0.625rem 0.875rem;
  border-radius: 10px;
  width: 240px;
  z-index: 10;
}

.pdf-tooltip::before {
  content: '';
  position: absolute;
  top: -5px;
  right: 1.125rem;
  width: 10px;
  height: 10px;
  background: inherit;
  transform: rotate(45deg);
}

.save-pdf-wrap:hover .pdf-tooltip,
.btn-save-pdf:focus+.pdf-tooltip {
  display: block;
}

.bag-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}

.bag-idea-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.125rem 1.25rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  box-shadow: var(--card-shadow);
}

.bag-idea-text {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1.55;
  margin-bottom: 0.3rem;
}

.bag-idea-meta {
  font-size: 0.8125rem;
  color: var(--text-hint);
}

.bag-idea-meta .meta-domain {
  color: var(--primary-mid);
  font-weight: 600;
}

.theme-dark .bag-idea-meta .meta-domain {
  color: var(--primary-bright);
}

.bag-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.btn-clear {
  font-size: 0.8125rem;
  color: var(--text-hint);
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.btn-clear:hover {
  color: #EF4444;
}

.btn-share {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--primary);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: opacity 0.15s;
}

.btn-share:hover {
  opacity: 0.75;
}

.bag-empty {
  text-align: center;
  padding: 4rem 1rem;
  color: var(--text-hint);
  line-height: 1.8;
}

.bag-empty a {
  color: var(--primary);
  font-weight: 700;
}

.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2rem 0;
}

/* ── About / feature grid ──────────────────────────────────────────────── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-bottom: 3rem;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1.375rem 1.25rem;
  box-shadow: var(--card-shadow);
}

.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.feature-title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.375rem;
}

.feature-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.about-section {
  margin-top: 2.5rem;
}

.about-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.about-title {
  font-family: 'Plus Jakarta Sans', 'Helvetica Neue', sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1.5rem;
  letter-spacing: -0.4px;
}

.about-body {
  max-width: 680px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.about-body p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.75;
}

/* ── Get involved page ─────────────────────────────────────────────────── */
.involve-section {
  margin-bottom: 2.5rem;
}

.involve-header {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  margin-bottom: 1.75rem;
}

.involve-icon {
  font-size: 2rem;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 0.25rem;
}

.involve-title {
  font-size: 1.375rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.3px;
  margin-bottom: 0.5rem;
}

.involve-desc {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 0.75rem;
}

.involve-prompts {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  padding-left: 0;
}

.involve-prompts li {
  font-size: 0.875rem;
  color: var(--text-hint);
  line-height: 1.6;
  padding-left: 1.25rem;
  position: relative;
}

.involve-prompts li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 600;
}

.involve-options {
  display: flex;
  flex-direction: column;
  gap: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  max-width: 600px;
  margin: 0 auto;
}

.involve-option {
  padding: 1.25rem 1.375rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.involve-option-header {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  flex: 1;
  min-width: 0;
}

.involve-option-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
}

.involve-option-title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2px;
}

.involve-option-sub {
  font-size: 0.8125rem;
  color: var(--text-hint);
  line-height: 1.5;
}

.involve-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0 1.375rem;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.involve-divider span {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-hint);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.5rem 0;
}

.btn-involve {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
  flex-shrink: 0;
  font-size: 0.875rem;
  font-weight: 700;
  padding: 0.5rem 1.125rem;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  border: 1.5px solid var(--primary);
  transition: opacity 0.15s;
  text-decoration: none;
}

.btn-involve:hover {
  opacity: 0.85;
}

.btn-involve--ghost {
  background: transparent;
  color: var(--primary);
  border-color: var(--border2);
}

.btn-involve--ghost:hover {
  background: var(--primary-light);
  border-color: var(--primary);
  opacity: 1;
}

.involve-hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2.5rem 0;
}

.involve-note {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  max-width: 600px;
  margin: 0 auto;
}

.involve-note p {
  font-size: 0.875rem;
  color: var(--text-hint);
  line-height: 1.65;
}

@media (max-width: 600px) {
  .involve-option {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .btn-involve {
    width: 100%;
    justify-content: center;
  }

  .involve-header {
    flex-direction: column;
    gap: 0.75rem;
  }
}

.sources-group {
  margin-bottom: 2.5rem;
}

.sources-cat-heading {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.sources-cat-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: #fff;
  flex-shrink: 0;
}

.sources-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding-left: 0;
}

.source-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.125rem 1.25rem;
  box-shadow: var(--card-shadow);
}

.source-citation {
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.65;
  margin-bottom: 0.625rem;
}

.source-citation em {
  font-style: italic;
}

.source-citation a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
  font-style: normal;
}

.source-citation a:hover {
  text-decoration: none;
}

.source-annotation {
  font-size: 0.8375rem;
  color: var(--text-hint);
  line-height: 1.65;
  border-top: 1px solid var(--border);
  padding-top: 0.625rem;
  margin-top: 0;
}

.loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 3rem;
  gap: 0.75rem;
}

.spinner {
  width: 24px;
  height: 24px;
  border: 2px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ── Footer ────────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--bg-nav);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 1.375rem 2rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-copy {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.7);
}

.theme-switcher {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.theme-switcher__label {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.theme-btn-group {
  display: flex;
  gap: 4px;
}

.theme-btn {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: none;
  color: rgba(255, 255, 255, 0.65);
  cursor: pointer;
  transition: all 0.15s;
}

.theme-btn:hover {
  border-color: rgba(255, 255, 255, 0.55);
  color: rgba(255, 255, 255, 0.9);
}

.theme-btn.active {
  background: var(--accent);
  color: var(--accent-text);
  border-color: var(--accent);
}

/* ── Print ─────────────────────────────────────────────────────────────── */
.print-header {
  display: none;
}

@media print {

  .site-header,
  .site-footer,
  .no-print {
    display: none !important;
  }

  .print-header {
    display: block;
    padding: 0 0 1rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #ccc;
  }

  .bag-idea-card {
    break-inside: avoid;
  }

  body {
    background: #fff;
    color: #000;
  }
}

/* ── Responsive ────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .todays-bag-widget {
    max-width: 480px;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .primary-nav {
    display: none;
    position: absolute;
    top: 64px;
    right: 0;
    left: 0;
    background: var(--bg-nav);
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 1.5rem 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    gap: 0.25rem;
    z-index: 99;
  }

  .primary-nav.open {
    display: flex;
  }

  .primary-nav ul {
    flex-direction: column;
    width: 100%;
  }

  .nav-bag {
    margin-left: 0;
  }

  .site-header {
    position: relative;
  }

  .domain-grid {
    grid-template-columns: 1fr 1fr;
  }

  .subdomain-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero {
    padding: 2.5rem 0 2.5rem;
  }

  .hero-inner {
    padding: 0 1.25rem;
  }

  .search-band {
    padding: 1.125rem 0;
  }

  .search-band-inner {
    padding: 0 1.25rem;
  }

  .page-body {
    padding: 2rem 1.25rem 4rem;
  }

  .breadcrumb {
    padding: 0;
  }

  .breadcrumb-inner {
    padding: 0.5rem 1.25rem;
  }

  .header-inner {
    padding: 0 1.25rem;
  }
}

@media (max-width: 480px) {
  .domain-grid {
    grid-template-columns: 1fr;
  }

  .subdomain-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn-hero-primary,
  .btn-hero-ghost {
    text-align: center;
    justify-content: center;
  }
}