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

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

body {
  font-family: 'DM 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 variables ***************************************************************** */

/* Option 1 — Teal & Gold (default) */
.theme-teal {
  --primary: #086554;
  --primary-dark: #044a3a;
  --primary-light: #c0ead8;
  --primary-mid: #21A884;
  --primary-bright: #3EC2CF;
  --accent: #FFD400;
  --accent-text: #242424;
  --bg: #F2F9F7;
  --bg-card: #ffffff;
  --bg-hero: #086554;
  --bg-nav: #242424;
  --bg-group-hd: #e0f2ec;
  --border: #c2ddd8;
  --border2: #9dcdc5;
  --text: #1a1a1a;
  --text-muted: #4a7a6d;
  --text-hint: #6b9990;
  --text-on-hero: #ffffff;
  --text-hero-sub: #a8d9cf;
  --text-hero-eye: #70C7AF;
  --dot: #1D9E75;
  --btn-add-bg: #c0ead8;
  --btn-add-text: #044a3a;
  --btn-add-hover: #086554;
  --nav-link: #aaaaaa;
  --nav-active: #FFD400;
  --nav-bag-border: #086554;
  --nav-bag-text: #70C7AF;
  --ring1: #086554;
  --ring2: #21A884;
  --ring3: #3EC2CF;
}

/* Option 2 — Navy & Gold */
.theme-navy {
  --primary: #234BA0;
  --primary-dark: #0c2460;
  --primary-light: #b8cff0;
  --primary-mid: #3599CC;
  --primary-bright: #3EC2CF;
  --accent: #FFD400;
  --accent-text: #242424;
  --bg: #F0F4FB;
  --bg-card: #ffffff;
  --bg-hero: #234BA0;
  --bg-nav: #242424;
  --bg-group-hd: #e0e9f7;
  --border: #c4d2ee;
  --border2: #9ab2e0;
  --text: #1a1a1a;
  --text-muted: #3a5080;
  --text-hint: #5a7aa8;
  --text-on-hero: #ffffff;
  --text-hero-sub: #c0d3f0;
  --text-hero-eye: #93b3e0;
  --dot: #3599CC;
  --btn-add-bg: #b8cff0;
  --btn-add-text: #0c2460;
  --btn-add-hover: #234BA0;
  --nav-link: #aaaaaa;
  --nav-active: #FFD400;
  --nav-bag-border: #3599CC;
  --nav-bag-text: #93b3e0;
  --ring1: #234BA0;
  --ring2: #3599CC;
  --ring3: #3EC2CF;
}

/* Option 3 — Midnight & Gold */
.theme-dark {
  --primary: #FFD400;
  --primary-dark: #1a1a1a;
  --primary-light: #FFD400;
  --primary-mid: #3EC2CF;
  --primary-bright: #3EC2CF;
  --accent: #FFD400;
  --accent-text: #1a1a1a;
  --bg: #242424;
  --bg-card: #2E2E2E;
  --bg-hero: #2E2E2E;
  --bg-nav: #1A1A1A;
  --bg-group-hd: #383838;
  --border: #3a3a3a;
  --border2: #575655;
  --text: #ffffff;
  --text-muted: #b0b0b0;
  --text-hint: #888888;
  --text-on-hero: #ffffff;
  --text-hero-sub: #aaaaaa;
  --text-hero-eye: #3EC2CF;
  --dot: #FFD400;
  --btn-add-bg: #FFD400;
  --btn-add-text: #1a1a1a;
  --btn-add-hover: #1a1a1a;
  --nav-link: #888888;
  --nav-active: #FFD400;
  --nav-bag-border: #575655;
  --nav-bag-text: #FFD400;
  --ring1: #2E2E2E;
  --ring2: #3EC2CF;
  --ring3: #575655;
}

/* ** 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 8px 8px;
  font-weight: 600;
  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 1.5rem; */
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: 64px;
}

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

.logo-mark {
  display: none;
}

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

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

.logo-sub {
  font-size: 1rem;
  font-weight: 700;
  color: #FFD400;
  letter-spacing: 0.02em;
  line-height: 1.2;
  text-transform: none;
}

/* Nav */
.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.75rem;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
  display: block;
}

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

.nav-link--active {
  color: var(--nav-active) !important;
}

/* Nav search link */
.nav-search {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  color: var(--nav-bag-border);
  transition: background 0.15s, color 0.15s;
  text-decoration: none;
}

.nav-search:hover {
  background: var(--bg-card);
  color: var(--primary);
}

/* Bag nav item */
.nav-bag {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--nav-bag-border);
  color: var(--nav-bag-text);
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.375rem 0.75rem;
  border-radius: 6px;
  margin-left: 0.75rem;
  transition: background 0.15s;
}

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

.bag-count {
  background: #FFD400;
  color: #1a1a1a;
  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;
}

/* Hamburger */
.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;
  transition: all 0.2s;
  display: block;
}

/* Nav tool-tip */
.nav-tooltip-wrap {
  position: relative;
}

.nav-tooltip-wrap [data-tooltip]::after {
  content: attr(data-tooltip);
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #1a1a1a;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 400;
  line-height: 1.5;
  padding: 0.5rem 0.75rem;
  border-radius: 7px;
  width: 220px;
  z-index: 200;
  white-space: normal;
}

.nav-tooltip-wrap [data-tooltip]:hover::after {
  display: block;
}

/* ** Hero banner ***************************************************************** */
.hero {
  background: var(--bg-hero);
  padding: 2.5rem 1.5rem 2rem;
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
}

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

.hero h1 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 400;
  color: var(--text-on-hero);
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

.hero-sub {
  font-size: 0.9375rem;
  color: var(--text-hero-sub);
  max-width: 560px;
  line-height: 1.6;
}

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

.btn-hero-primary {
  background: var(--accent);
  color: var(--accent-text);
  font-size: 0.875rem;
  font-weight: 700;
  padding: 0.625rem 1.25rem;
  border-radius: 8px;
  border: none;
  transition: opacity 0.15s;
}

.btn-hero-primary:hover {
  opacity: 0.9;
}

.btn-hero-ghost {
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  color: var(--text-hero-sub);
  font-size: 0.875rem;
  font-weight: 500;
  background: transparent;
  padding: 0.625rem 1.25rem;
  border-radius: 8px;
  transition: border-color 0.15s, color 0.15s;
}

.btn-hero-ghost:hover {
  border-color: rgba(255, 255, 255, 0.6);
  color: #fff;
}

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

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

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

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

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

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

/* ** Main layout ***************************************************************** */
.page-body {
  max-width: 1200px;
  margin: 0 auto;
  /* padding: 2rem 1.5rem 4rem; */
  padding: 2rem 0 4rem;
}

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

/* ** Section labels and links ***************************************************************** */
.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.875rem;
  color: var(--text-hint);
  margin-bottom: 1.25rem;
}

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

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

/* ** Search bar ***************************************************************** */
.search-wrap {
  position: relative;
  max-width: 600px;
  margin: 0 auto 2rem;
}

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

.search-input {
  width: 100%;
  padding: 0.75rem 2.75rem;
  font-family: inherit;
  font-size: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 100px;
  color: var(--text);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  -webkit-appearance: none;
}

.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) 20%, transparent);
}

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

.search-clear {
  position: absolute;
  right: 0.875rem;
  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;
}

/* ** Domain grid ***************************************************************** */
.domain-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
}

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

.domain-card:hover,
.domain-card:focus-visible {
  border-color: var(--border2);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.07);
  outline: none;
}

.card-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: #fff;
}

.card-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
}

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

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

.card-arrow {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  color: var(--text-hint);
  opacity: 0;
  font-size: 1rem;
  transition: opacity 0.15s;
}

.domain-card:hover .card-arrow,
.domain-card:focus-visible .card-arrow {
  opacity: 1;
}

/* ** Domain hero (subdomain page) ***************************************************************** */
.domain-hero {
  display: flex;
  align-items: start;
  gap: 1rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.75rem;
}

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

.domain-hero h2 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.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.6;
  padding-right: 1.5rem;
}

/* ** 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: 14px;
  padding: 1.125rem 1rem;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  transition: border-color 0.15s, box-shadow 0.15s;
  text-decoration: none;
  color: inherit;
}

.sub-card:hover,
.sub-card:focus-visible {
  border-color: var(--border2);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  outline: none;
}

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

.sub-name {
  font-size: 1rem;
  font-weight: 600;
  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: 0.875rem;
}

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

.idea-group-header {
  width: 100%;
  padding: 0.875rem 1.25rem;
  font-size: 0.9375rem;
  font-weight: 600;
  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 ease;
  display: inline-block;
  margin-left: 0.5rem;
}

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

/* Idea rows */
.ideas-list {
  list-style: none;
  display: none;
}

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

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

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

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

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

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

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

.idea-meta {
  /* shown only in search results and bag page */
  font-size: 0.78rem;
  color: var(--text-hint);
  margin-top: 0.2rem;
}

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

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

/* ** Steering committee ***************************************************************** */
/* Steering committee members list */
.steering-title {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--text);
  margin: 2rem 0 1rem;
}

.steering-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.steering-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.875rem 1rem;
}

.steering-name {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.steering-role {
  font-size: 0.8125rem;
  color: var(--text-hint);
  line-height: 1.4;
}

/* ** Add-to-bag button ***************************************************************** */
/* Default (not in bag) — filled tinted, dark text, high contrast */
.btn-add {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.8125rem;
  font-weight: 700;
  padding: 0.375rem 0.875rem;
  border-radius: 6px;
  border: none;
  background: var(--btn-add-bg);
  color: var(--btn-add-text);
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

/* Teal:  #044a3a on #c0ead8 → 7.2:1 ✓
   Navy:  #0c2460 on #b8cff0 → 8.1:1 ✓
   Dark:  #1a1a1a on #FFD400 → 14.4:1 ✓ */
.btn-add:hover,
.btn-add:focus-visible {
  background: var(--btn-add-hover);
  color: #fff;
  outline: none;
}

/* Dark theme hover: deepen the gold rather than flipping to dark bg + dark text */
.theme-dark .btn-add:hover,
.theme-dark .btn-add:focus-visible {
  background: #e6be00;
  color: #1a1a1a;
  border: 2px solid #FFD400;
}

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

/* In-bag state — full primary fill, white text */
.btn-add.in-bag {
  background: var(--btn-add-hover);
  color: #fff;
}

/* Dark theme: "In bag" uses gold bg with dark text — same as "Add to bag" default,
   but with a darker gold to signal the confirmed/active state.
   #1a1a1a on #FFD400 → 14.4:1 ✓ */
.theme-dark .btn-add.in-bag {
  background: #e6be00;
  color: #1a1a1a;
  border: 2px solid #FFD400;
}

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

.btn-remove:hover {
  color: #c0392b;
  background: rgba(192, 57, 43, 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: 'DM Serif Display', Georgia, serif;
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--text);
}

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

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

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

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

.bag-title {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 1.75rem;
  font-weight: 400;
  color: var(--text);
}

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

/* Save as PDF button */
.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: 8px;
  border: none;
  cursor: pointer;
  transition: opacity 0.15s;
  white-space: nowrap;
}

.theme-dark .btn-save-pdf {
  background: var(--accent);
  color: var(--accent-text);
}

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

.btn-save-pdf:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.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: 8px;
  width: 240px;
  z-index: 10;
}

.theme-dark .pdf-tooltip {
  background: #fff;
  color: #1a1a1a;
}

.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 */
.bag-list {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  margin-bottom: 1.5rem;
}

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

.bag-idea-text {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1.5;
  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: 500;
}

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

.bag-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  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;
}

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

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

.theme-dark .btn-share {
  color: var(--accent);
}

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

.bag-empty {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-hint);
}

.bag-empty p {
  margin-bottom: 1rem;
  font-size: 0.9375rem;
  line-height: 1.8;
}

.bag-empty a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: underline;
}

.theme-dark .bag-empty a {
  color: var(--accent);
}

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

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

.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.875rem;
}

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

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

.about-section {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

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

.theme-dark .about-label {
  color: var(--primary-bright);
}

.about-title {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 1rem;
}

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

.about-body p+p {
  margin-top: 0.875rem;
}

.domain-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.domain-pill {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
}

/* ** Resources page ***************************************************************** */
.resources-grid {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.resource-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.125rem 1.25rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  transition: border-color 0.15s;
}

.resource-card:hover {
  border-color: var(--border2);
}

.resource-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.resource-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.25rem;
}

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

.resource-link {
  font-size: 0.8125rem;
  color: var(--primary);
  font-weight: 600;
  margin-top: 0.375rem;
  display: inline-block;
}

.theme-dark .resource-link {
  color: var(--accent);
}

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

.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: #a0a0a0;
}

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

.theme-switcher__label {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #a0a0a0;
}

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

.theme-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.3rem 0.5rem;
  border-radius: 14px;

  border: 1.5px solid #444;
  background: #2a2a2a;
  color: #888;
  font-size: 0.6875rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.theme-btn:hover {
  border-color: #FFD400;
  color: #FFD400;
}

.theme-btn.active {
  background: #FFD400;
  border-color: #FFD400;
  color: #1a1a1a;
}

/* ** Utilities ***************************************************************** */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

.loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 4rem;
  color: var(--text-hint);
}

.spinner {
  width: 28px;
  height: 28px;
  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);
  }
}

/* Back button */
.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.9375rem;
  color: var(--text-hint);
  margin-bottom: 1.25rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 0;
  transition: color 0.15s;
  text-decoration: none;
}

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

/* ** Responsive ***************************************************************** */
@media (max-width: 1300px) {
  .header-inner {
    padding: 0 1rem;
  }

  .page-body {
    padding: 1.25rem 1rem 3rem;
  }
}

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

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

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

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

  .nav-link {
    padding: 0.625rem 0.75rem;
    font-size: 1rem;
  }

  .nav-bag {
    margin-left: 0;
    margin-top: 0.5rem;
    justify-content: center;
  }

  .hero {
    padding: 2rem 1rem 1.5rem;
  }

  .hero h1 {
    font-size: 1.5rem;
  }

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

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

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

  .bag-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .search-wrap {
    margin-bottom: 1.5rem;
  }
}

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

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

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

  .idea-row {
    flex-direction: column;
    gap: 0.625rem;
  }

  .btn-add {
    align-self: flex-start;
  }
}

@media (max-width: 602px) {
  .footer-inner {
    justify-content: center;
    text-align: center;
  }
}

/* ** Print styles (PDF download page) ******************************** */
@media print {

  .site-header,
  .site-footer,
  .btn-save-pdf,
  .save-pdf-wrap,
  .bag-actions,
  .btn-remove,
  .no-print {
    display: none !important;
  }

  body {
    background: #fff !important;
    color: #000 !important;
    font-size: 11pt;
  }

  .print-header {
    display: block !important;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2pt solid #086554;
  }

  .bag-idea-card {
    break-inside: avoid;
    border: 0.5pt solid #ccc;
    border-radius: 0;
    margin-bottom: 0.5rem;
  }

  .bag-idea-text {
    font-size: 11pt;
  }

  .bag-idea-meta {
    font-size: 9pt;
    color: #555;
  }

  a[href]::after {
    content: none !important;
  }
}

.print-header {
  display: none;
}

/* ── Our Story: timeline ─────────────────────────────────────────────────── */

.story-timeline {
  position: relative;
  margin: 2.5rem 0 3.5rem;
  padding-left: 0;
}

/* Vertical rule running down the left of all milestones */
.story-timeline::before {
  content: '';
  position: absolute;
  left: 5.5rem;
  top: 0.6rem;
  bottom: 0;
  width: 2px;
  background: var(--border);
}

.story-milestone {
  display: flex;
  gap: 2rem;
  margin-bottom: 3rem;
  position: relative;
}

.story-milestone-marker {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.35rem;
  flex-shrink: 0;
  width: 5.5rem;
  padding-top: 0.15rem;
}

.milestone-year {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--primary);
  white-space: nowrap;
}

.milestone-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--primary);
  border: 2px solid var(--bg);
  outline: 2px solid var(--primary);
  margin-right: -7px;
  /* centres on the vertical rule */
  flex-shrink: 0;
}

.story-milestone--present .milestone-dot {
  background: var(--gold, #F5C400);
  outline-color: var(--gold, #F5C400);
}

.story-milestone--present .milestone-year {
  color: var(--gold, #F5C400);
}

.story-milestone-content {
  flex: 1;
  min-width: 0;
  background: var(--bg-card);
  border: 0.5px solid var(--border);
  border-radius: 14px;
  padding: 1.25rem 1.5rem;
}

.story-milestone-title {
  font-family: 'DM Serif Display', serif;
  font-size: 1.25rem;
  color: var(--text);
  margin: 0 0 0.75rem;
}

.story-milestone-content p {
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.7;
  margin: 0 0 0.75rem;
  padding-right: 1.5rem;
}

.story-milestone-content p:last-child {
  margin-bottom: 0;
}

/* ── Our Story: call to action ───────────────────────────────────────────── */

.story-cta {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 2.5rem;
  margin-top: 1rem;
  text-align: center;
}

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

.story-cta .btn-hero-ghost:hover {
  background: var(--primary);
  color: var(--bg);
}

.story-cta-title {
  font-family: 'DM Serif Display', serif;
  font-size: 1.75rem;
  color: var(--text);
  margin: 0 0 0.75rem;
}

.story-cta-body {
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.7;
  max-width: 55ch;
  margin: 0 auto 1.75rem;
}

.story-cta-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Responsive ──────────────────────────────────────────────────────────── */

@media (max-width: 600px) {
  .story-timeline::before {
    left: 3.75rem;
  }

  .story-milestone-marker {
    width: 3.75rem;
  }

  .milestone-year {
    font-size: 0.6875rem;
  }

  .story-milestone-content p {
    padding-right: 0;
  }
}

/* ── Call to action button ──────────────────────────────────────────────────────────── */

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 1.25rem;
  border-radius: 8px;
  border: 1.5px solid var(--primary);
  color: var(--primary);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}

.btn-ghost:hover {
  background: var(--primary);
  color: #fff;
}

.theme-dark .btn-ghost:hover {
  color: var(--bg);
}

/* ── Our Team: coming soon ───────────────────────────────────────────────── */

.team-coming-soon {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 4rem 1.5rem;
  max-width: 480px;
  margin: 0 auto;
}

.team-coming-soon-icon {
  color: var(--primary);
  margin-bottom: 1.5rem;
  opacity: 0.8;
}

.team-coming-soon-title {
  font-family: 'DM Serif Display', serif;
  font-size: 1.75rem;
  color: var(--text);
  margin: 0 0 1rem;
}

.team-coming-soon-body {
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.7;
  margin: 0 0 0.75rem;
}

.team-coming-soon-body a {
  color: var(--primary);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.team-coming-soon-body a:hover {
  text-decoration: none;
}