@font-face {
  font-family: "Space Grotesk";
  src: url("/fonts/space-grotesk.woff2") format("woff2");
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Sans";
  src: url("/fonts/ibm-plex-sans.woff2") format("woff2");
  font-display: swap;
}

@font-face {
  font-family: "JetBrains Mono";
  src: url("/fonts/jetbrains-mono.woff2") format("woff2");
  font-display: swap;
}

:root {
  --bg: #f6f0e7;
  --surface: rgba(255, 251, 245, 0.88);
  --surface-strong: #fffaf2;
  --surface-ink: #1f2d25;
  --text: #17221e;
  --muted: #57645d;
  --line: rgba(23, 34, 30, 0.12);
  --accent: #e37132;
  --accent-dark: #c85b1c;
  --accent-soft: rgba(227, 113, 50, 0.12);
  --brand: #0d6a52;
  --brand-soft: rgba(13, 106, 82, 0.12);
  --gold: #c89a32;
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --shadow-lg: 0 24px 60px rgba(17, 24, 21, 0.08);
  --shadow-sm: 0 10px 24px rgba(17, 24, 21, 0.06);
  --max: 1240px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(227, 113, 50, 0.18), transparent 28%),
    radial-gradient(circle at right center, rgba(13, 106, 82, 0.14), transparent 24%),
    linear-gradient(180deg, #fff8ef 0%, var(--bg) 100%);
}

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

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.page-shell {
  min-height: 100vh;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: rgba(246, 240, 231, 0.82);
  border-bottom: 1px solid rgba(23, 34, 30, 0.08);
}

.site-header-inner,
.section-inner,
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-top: 16px;
  padding-bottom: 16px;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent), #f3c354);
  box-shadow: var(--shadow-sm);
  position: relative;
}

.brand-mark::before,
.brand-mark::after {
  content: "";
  position: absolute;
  inset: 11px;
  border-radius: 10px;
}

.brand-mark::before {
  background: rgba(255, 255, 255, 0.48);
}

.brand-mark::after {
  inset: 17px 11px 11px 17px;
  border-top: 2px solid #18322a;
  border-left: 2px solid #18322a;
  border-radius: 0 0 0 12px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.brand-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.brand-subtitle {
  font-size: 0.8rem;
  color: var(--muted);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.site-nav a {
  color: var(--muted);
  font-weight: 600;
}

.nav-save-pill {
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--surface-strong);
  border: 1px solid var(--line);
}

.section {
  padding: 32px 0 28px;
}

.hero {
  padding: 46px 0 20px;
}

.hero-panel {
  background:
    linear-gradient(135deg, rgba(255, 250, 242, 0.96), rgba(255, 244, 230, 0.94));
  border: 1px solid rgba(23, 34, 30, 0.08);
  border-radius: 36px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  position: relative;
}

.hero-panel::after {
  content: "";
  position: absolute;
  right: -100px;
  top: -80px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(13, 106, 82, 0.16), transparent 68%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  padding: 36px;
  position: relative;
  z-index: 1;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(23, 34, 30, 0.06);
  color: var(--brand);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.76rem;
  font-weight: 700;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  line-height: 1.05;
}

h1 {
  font-size: clamp(2.8rem, 6vw, 5.3rem);
  margin-top: 18px;
}

h2 {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
}

h3 {
  font-size: 1.2rem;
}

.hero-copy p,
.section-copy,
.card-copy,
.meta-copy,
.empty-copy {
  color: var(--muted);
  line-height: 1.7;
}

.hero-copy p {
  max-width: 62ch;
  font-size: 1.08rem;
  margin: 18px 0 0;
}

.hero-search {
  margin-top: 26px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.field,
.select,
.textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  padding: 15px 16px;
  color: var(--text);
  outline: none;
}

.field:focus,
.select:focus,
.textarea:focus {
  border-color: rgba(13, 106, 82, 0.38);
  box-shadow: 0 0 0 3px rgba(13, 106, 82, 0.1);
}

.hero-search .field {
  flex: 1 1 340px;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.button,
.button-secondary,
.button-ghost {
  border: 0;
  border-radius: 999px;
  padding: 14px 18px;
  font-weight: 700;
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.button:hover,
.button-secondary:hover,
.button-ghost:hover {
  transform: translateY(-1px);
}

.button {
  background: var(--accent);
  color: #fff7f2;
}

.button:hover {
  background: var(--accent-dark);
}

.button-secondary {
  background: var(--brand);
  color: #f4faf7;
}

.button-ghost {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--surface-ink);
}

.hero-side {
  display: grid;
  gap: 16px;
}

.glass-card,
.stats-grid .stat-card,
.category-card,
.tool-card,
.collection-card,
.newsletter-card,
.submit-card,
.panel,
.empty-state,
.submit-process,
.detail-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.glass-card {
  padding: 18px;
}

.glass-card strong,
.stat-card strong,
.meta-metric strong {
  display: block;
  font-family: "Space Grotesk", sans-serif;
}

.hero-notes {
  display: grid;
  gap: 12px;
}

.hero-note {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
}

.hero-note-badge {
  width: 14px;
  height: 14px;
  margin-top: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--accent));
}

.stats-grid,
.admin-stats,
.category-grid,
.card-grid,
.collection-grid,
.shortlist-grid,
.directory-layout,
.admin-layout,
.submit-grid {
  display: grid;
  gap: 18px;
}

.stats-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.admin-stats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.stat-card {
  padding: 20px;
}

.stat-card strong {
  font-size: 2rem;
  margin-bottom: 6px;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.section-head p {
  margin: 10px 0 0;
  color: var(--muted);
  max-width: 60ch;
}

.category-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.category-card,
.tool-card,
.collection-card,
.newsletter-card,
.submit-card,
.submit-process,
.detail-card {
  padding: 22px;
}

.category-card .count,
.meta-chip,
.pill,
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  font-size: 0.82rem;
  padding: 8px 12px;
}

.category-card .count {
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: 700;
}

.card-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.shortlist-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tool-card {
  display: grid;
  gap: 14px;
}

.tool-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 12px;
}

.tool-name {
  font-size: 1.26rem;
}

.tool-subcategory {
  color: var(--muted);
  font-size: 0.92rem;
  margin-top: 6px;
}

.rating-chip {
  background: rgba(200, 154, 50, 0.14);
  color: #735510;
  font-weight: 700;
}

.meta-row,
.tag-row,
.tool-actions,
.filter-row,
.saved-strip,
.submit-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.meta-chip {
  background: rgba(23, 34, 30, 0.06);
  color: var(--muted);
}

.meta-chip.is-accent {
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.meta-chip.is-brand {
  background: var(--brand-soft);
  color: var(--brand);
}

.pill {
  background: #f3ece2;
  color: #4d5952;
}

.tool-actions .button,
.tool-actions .button-ghost,
.tool-actions .button-secondary {
  padding: 12px 15px;
  font-size: 0.92rem;
}

.collection-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.collection-card {
  background: linear-gradient(180deg, rgba(255, 251, 245, 0.96), rgba(244, 238, 228, 0.96));
}

.collection-tools {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.newsletter-card,
.submit-card {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
  background: linear-gradient(135deg, rgba(13, 106, 82, 0.92), rgba(24, 45, 37, 0.96));
  color: #f3f7f5;
}

.newsletter-card p,
.submit-card p,
.submit-process p {
  color: rgba(243, 247, 245, 0.82);
}

.newsletter-form {
  display: grid;
  gap: 12px;
}

.newsletter-card .field,
.newsletter-card .select,
.submit-card .field,
.submit-card .select,
.submit-card .textarea,
.submit-form .field,
.submit-form .select,
.submit-form .textarea {
  background: rgba(255, 255, 255, 0.96);
}

.directory-layout {
  grid-template-columns: 290px 1fr;
  align-items: start;
}

.admin-layout {
  grid-template-columns: 1.1fr 0.9fr;
  align-items: start;
}

.admin-stack {
  display: grid;
  gap: 18px;
}

.admin-form {
  display: grid;
  gap: 14px;
  padding: 22px;
}

.admin-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.admin-queue {
  display: grid;
  gap: 14px;
}

.results-stack {
  display: grid;
  gap: 18px;
}

.detail-card {
  display: grid;
  gap: 14px;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.detail-metric {
  border-radius: var(--radius-md);
  background: rgba(23, 34, 30, 0.05);
  border: 1px solid rgba(23, 34, 30, 0.06);
  padding: 14px;
}

.detail-metric strong {
  display: block;
  margin-bottom: 6px;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filters-panel {
  position: sticky;
  top: 92px;
  padding: 22px;
}

.filters-panel h3,
.results-panel h3,
.submit-process h3,
.detail-card h3 {
  margin-bottom: 12px;
}

.filter-group + .filter-group {
  margin-top: 18px;
}

.filter-group label,
.submit-form label {
  display: block;
  font-weight: 700;
  margin-bottom: 8px;
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-pill {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  padding: 10px 12px;
  color: var(--muted);
  font-weight: 600;
}

.filter-pill.is-active {
  background: var(--brand);
  color: #f5fbf7;
  border-color: var(--brand);
}

.results-panel {
  display: grid;
  gap: 18px;
}

.results-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 18px 22px;
}

.empty-state {
  padding: 26px;
}

.shortlist-empty {
  padding: 22px;
}

.submit-grid {
  grid-template-columns: 1.1fr 0.9fr;
}

.submit-form {
  display: grid;
  gap: 14px;
  padding: 26px;
}

.submit-process {
  background: linear-gradient(180deg, rgba(24, 45, 37, 0.96), rgba(13, 106, 82, 0.92));
  color: #f3f7f5;
}

.process-list {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.process-step {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  align-items: start;
}

.step-number {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.12);
  font-family: "Space Grotesk", sans-serif;
}

.footer {
  padding: 36px 0 50px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted);
  flex-wrap: wrap;
}

.status {
  min-height: 20px;
  color: var(--brand);
  font-weight: 700;
}

.status.error {
  color: #a1381e;
}

.hidden {
  display: none !important;
}

@media (max-width: 1080px) {
  .hero-grid,
  .newsletter-card,
  .submit-card,
  .directory-layout,
  .admin-layout,
  .submit-grid {
    grid-template-columns: 1fr;
  }

  .filters-panel {
    position: static;
  }

  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .card-grid,
  .collection-grid,
  .shortlist-grid,
  .detail-grid,
  .admin-form-grid,
  .admin-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .site-header-inner,
  .section-inner,
  .footer-inner {
    padding-left: 16px;
    padding-right: 16px;
  }

  .site-nav {
    gap: 10px;
  }

  .hero-grid {
    padding: 22px;
  }

  h1 {
    font-size: 2.5rem;
  }

  .category-grid,
  .card-grid,
  .collection-grid,
  .shortlist-grid,
  .stats-grid,
  .detail-grid,
  .admin-form-grid,
  .admin-stats {
    grid-template-columns: 1fr;
  }

  .section-head,
  .results-toolbar,
  .footer-inner {
    flex-direction: column;
    align-items: start;
  }
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.trust-item {
  padding: 16px 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: rgba(255, 251, 245, 0.76);
  color: var(--muted);
  font-weight: 600;
}

.home-feed-layout,
.creator-spotlight {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 18px;
}

.home-category-rail {
  padding: 22px;
  position: sticky;
  top: 92px;
  align-self: start;
}

.category-rail {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.category-rail-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  padding: 12px;
  border-radius: var(--radius-md);
  background: rgba(23, 34, 30, 0.04);
  border: 1px solid rgba(23, 34, 30, 0.06);
}

.category-rail-item strong {
  display: block;
  font-family: "Space Grotesk", sans-serif;
}

.category-rail-copy {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.category-rail-icon,
.feed-card-logo,
.creator-avatar {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  background: linear-gradient(135deg, rgba(227, 113, 50, 0.18), rgba(13, 106, 82, 0.18));
  color: var(--surface-ink);
}

.home-feed-main {
  display: grid;
  gap: 16px;
}

.feed-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.feed-tab {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.7);
  color: var(--muted);
  border-radius: 999px;
  padding: 12px 16px;
  font-weight: 700;
}

.feed-tab.is-active {
  background: var(--brand);
  color: #f4faf7;
  border-color: var(--brand);
}

.home-feed-grid,
.catalog-grid,
.creator-grid {
  display: grid;
  gap: 16px;
}

.discovery-shell {
  display: grid;
  grid-template-columns: 290px 1fr;
  gap: 18px;
  align-items: start;
}

.feed-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 22px;
}

.feed-card-top,
.feed-card-brand,
.creator-card-head,
.catalog-toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.feed-card-brand,
.creator-card-head {
  justify-content: flex-start;
}

.feed-card-title {
  margin: 0;
  font-size: 1.45rem;
}

.feed-card-subtitle {
  margin-top: 6px;
  color: var(--muted);
}

.feed-card-metrics,
.creator-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.course-feed-card {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 18px;
  align-items: stretch;
}

.course-media {
  min-height: 190px;
  border-radius: var(--radius-md);
  background:
    linear-gradient(135deg, rgba(13, 106, 82, 0.86), rgba(227, 113, 50, 0.74)),
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.3), transparent 42%);
  position: relative;
  overflow: hidden;
}

.course-media-badge {
  position: absolute;
  left: 14px;
  top: 14px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--surface-ink);
  font-size: 0.82rem;
  font-weight: 700;
}

.course-copy {
  display: grid;
  gap: 12px;
}

.section-dark .section-inner {
  background: linear-gradient(180deg, #10211c, #172f27);
  border-radius: 32px;
  padding-top: 36px;
  padding-bottom: 36px;
}

.section-dark h2,
.section-dark p {
  color: #f3f7f5;
}

.category-spotlight-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.category-spotlight-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--surface-ink);
  font-weight: 700;
}

.category-spotlight-chip span {
  color: var(--muted);
  font-weight: 600;
}

.creator-spotlight {
  background: linear-gradient(180deg, rgba(255, 251, 245, 0.96), rgba(241, 235, 225, 0.92));
  border: 1px solid var(--line);
  border-radius: 32px;
  box-shadow: var(--shadow-sm);
  padding: 24px;
}

.creator-spotlight-copy,
.creator-spotlight-side,
.spotlight-card-stack {
  display: grid;
  gap: 14px;
}

.creator-spotlight-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.meta-metric {
  padding: 16px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(23, 34, 30, 0.08);
}

.spotlight-link-list,
.spotlight-pill-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.spotlight-link-list a {
  color: var(--brand);
  font-weight: 700;
}

.creator-card {
  padding: 22px;
  display: grid;
  gap: 14px;
}

.catalog-toolbar {
  padding: 20px 22px;
}

@media (max-width: 1080px) {
  .trust-strip,
  .home-feed-layout,
  .creator-spotlight,
  .course-feed-card,
  .discovery-shell {
    grid-template-columns: 1fr;
  }

  .home-category-rail {
    position: static;
  }
}

@media (max-width: 720px) {
  .creator-spotlight-stats {
    grid-template-columns: 1fr;
  }
}

/* Home Page Refresh */
body[data-page="home"] {
  --bg: #f4f7fb;
  --surface: #ffffff;
  --surface-strong: #ffffff;
  --surface-ink: #111a2c;
  --text: #121a2f;
  --muted: #5a6683;
  --line: rgba(25, 44, 84, 0.14);
  --accent: #0a6cff;
  --accent-dark: #0852c2;
  --accent-soft: rgba(10, 108, 255, 0.1);
  --brand: #0f8f6d;
  --brand-soft: rgba(15, 143, 109, 0.12);
  --shadow-lg: 0 22px 60px rgba(15, 31, 62, 0.1);
  --shadow-sm: 0 12px 28px rgba(15, 31, 62, 0.08);
  background:
    radial-gradient(circle at 0% -10%, rgba(10, 108, 255, 0.16), transparent 36%),
    radial-gradient(circle at 100% 8%, rgba(15, 143, 109, 0.12), transparent 30%),
    linear-gradient(180deg, #f8fbff 0%, #f2f6fc 100%);
}

body[data-page="home"] .site-header {
  background: rgba(248, 251, 255, 0.9);
  border-bottom: 1px solid rgba(25, 44, 84, 0.1);
}

body[data-page="home"] .home-header-inner {
  gap: 24px;
}

body[data-page="home"] .home-site-nav {
  gap: 10px;
}

body[data-page="home"] .home-nav-link {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.92rem;
}

body[data-page="home"] .home-nav-link:hover {
  border-color: rgba(25, 44, 84, 0.12);
  background: rgba(255, 255, 255, 0.8);
}

body[data-page="home"] .home-nav-link--cta {
  background: var(--accent);
  color: #f3f8ff;
}

body[data-page="home"] .home-nav-link--cta:hover {
  background: var(--accent-dark);
  border-color: transparent;
}

body[data-page="home"] .hero {
  padding-top: 36px;
}

body[data-page="home"] .home-signal-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

body[data-page="home"] .home-signal-bar span {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(25, 44, 84, 0.12);
  color: var(--muted);
  font-size: 0.83rem;
  font-weight: 700;
}

body[data-page="home"] .home-hero-panel {
  border: 1px solid rgba(25, 44, 84, 0.1);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(246, 250, 255, 0.95));
}

body[data-page="home"] .home-hero-grid {
  grid-template-columns: 1.15fr 0.85fr;
  gap: 20px;
  padding: 30px;
}

body[data-page="home"] .home-hero-copy h1 {
  max-width: 14ch;
}

body[data-page="home"] .home-hero-copy p {
  max-width: 58ch;
}

body[data-page="home"] .home-hero-search .button {
  min-width: 168px;
}

body[data-page="home"] .home-popular-queries {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.9rem;
}

body[data-page="home"] .home-popular-queries a {
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(10, 108, 255, 0.08);
  border: 1px solid rgba(10, 108, 255, 0.16);
  color: #1554b5;
  font-weight: 700;
}

body[data-page="home"] .home-hero-side {
  gap: 12px;
}

body[data-page="home"] .home-live-card,
body[data-page="home"] .home-saved-card,
body[data-page="home"] .home-editor-note {
  background: rgba(255, 255, 255, 0.92);
}

body[data-page="home"] .home-live-list {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

body[data-page="home"] .home-live-list li {
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(12, 34, 70, 0.05);
  border: 1px solid rgba(12, 34, 70, 0.08);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

body[data-page="home"] .home-live-list span {
  color: var(--muted);
  font-size: 0.86rem;
}

body[data-page="home"] .home-live-list strong {
  font-size: 0.92rem;
  text-align: right;
}

body[data-page="home"] .home-saved-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

body[data-page="home"] .home-saved-head a {
  color: var(--accent-dark);
  font-size: 0.86rem;
  font-weight: 700;
}

body[data-page="home"] #savedStrip {
  margin-top: 12px;
}

body[data-page="home"] .trust-strip {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

body[data-page="home"] .trust-item {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(25, 44, 84, 0.12);
  font-size: 0.93rem;
}

body[data-page="home"] .home-stats-grid .stat-card {
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(25, 44, 84, 0.12);
  position: relative;
  overflow: hidden;
}

body[data-page="home"] .home-stats-grid .stat-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--brand));
}

body[data-page="home"] .home-feed-layout {
  grid-template-columns: 300px 1fr;
  align-items: start;
}

body[data-page="home"] .home-category-rail {
  top: 86px;
  background: rgba(255, 255, 255, 0.94);
}

body[data-page="home"] .category-rail-item {
  transition: transform 140ms ease, border-color 140ms ease, background-color 140ms ease;
}

body[data-page="home"] .category-rail-item:hover {
  transform: translateY(-1px);
  border-color: rgba(10, 108, 255, 0.3);
  background: rgba(10, 108, 255, 0.08);
}

body[data-page="home"] .feed-tabs {
  gap: 8px;
}

body[data-page="home"] .feed-tab {
  background: #fff;
}

body[data-page="home"] .feed-tab.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #f5f9ff;
}

body[data-page="home"] .feed-card {
  background: #fff;
  border-color: rgba(25, 44, 84, 0.12);
  transition: transform 140ms ease, box-shadow 140ms ease;
}

body[data-page="home"] .feed-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(15, 31, 62, 0.12);
}

body[data-page="home"] .home-category-zone .section-inner {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(247, 251, 255, 0.95));
  border: 1px solid rgba(25, 44, 84, 0.1);
  border-radius: 30px;
  padding-top: 30px;
  padding-bottom: 30px;
}

body[data-page="home"] .category-spotlight-chip {
  border: 1px solid rgba(25, 44, 84, 0.12);
  background: #fff;
}

body[data-page="home"] .creator-spotlight {
  border-color: rgba(25, 44, 84, 0.12);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 250, 255, 0.96));
}

body[data-page="home"] .collection-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 255, 0.96));
}

body[data-page="home"] .newsletter-card,
body[data-page="home"] .submit-card {
  border: 1px solid rgba(25, 44, 84, 0.14);
}

@media (max-width: 1180px) {
  body[data-page="home"] .home-site-nav {
    justify-content: flex-end;
  }
}

@media (max-width: 1080px) {
  body[data-page="home"] .home-hero-grid,
  body[data-page="home"] .home-feed-layout,
  body[data-page="home"] .trust-strip {
    grid-template-columns: 1fr;
  }

  body[data-page="home"] .home-category-rail {
    position: static;
  }
}

@media (max-width: 720px) {
  body[data-page="home"] .home-site-nav {
    gap: 8px;
  }

  body[data-page="home"] .home-nav-link,
  body[data-page="home"] .nav-save-pill {
    font-size: 0.84rem;
    padding: 8px 11px;
  }

  body[data-page="home"] .home-hero-grid {
    padding: 20px;
  }

  body[data-page="home"] .home-popular-queries a {
    font-size: 0.82rem;
  }
}

/* Home Polish v2: simplify visuals and increase whitespace */
body[data-page="home"] .home-hero-panel {
  background: #ffffff;
}

body[data-page="home"] .hero-panel::after {
  display: none;
}

body[data-page="home"] .home-hero-grid {
  padding: 38px;
  gap: 26px;
}

body[data-page="home"] .home-hero-copy h1 {
  max-width: 13ch;
  letter-spacing: -0.02em;
}

body[data-page="home"] .home-hero-copy p {
  margin-top: 16px;
}

body[data-page="home"] .home-live-card,
body[data-page="home"] .home-saved-card,
body[data-page="home"] .home-editor-note,
body[data-page="home"] .trust-item,
body[data-page="home"] .home-stats-grid .stat-card,
body[data-page="home"] .feed-card,
body[data-page="home"] .collection-card,
body[data-page="home"] .creator-spotlight,
body[data-page="home"] .category-spotlight-chip {
  border-color: rgba(25, 44, 84, 0.1);
}

body[data-page="home"] .home-live-list li {
  background: #f7faff;
}

body[data-page="home"] .home-category-zone .section-inner {
  background: #ffffff;
}

body[data-page="home"] .section {
  padding-top: 42px;
  padding-bottom: 30px;
}

@media (max-width: 720px) {
  body[data-page="home"] .home-hero-grid {
    padding: 24px;
  }

  body[data-page="home"] .section {
    padding-top: 32px;
    padding-bottom: 22px;
  }
}

/* Directory Page Refresh */
body[data-page="directory"] {
  --bg: #f4f7fb;
  --surface: #ffffff;
  --surface-strong: #ffffff;
  --surface-ink: #111a2c;
  --text: #121a2f;
  --muted: #5a6683;
  --line: rgba(25, 44, 84, 0.14);
  --accent: #0a6cff;
  --accent-dark: #0852c2;
  --accent-soft: rgba(10, 108, 255, 0.1);
  --brand: #0f8f6d;
  --brand-soft: rgba(15, 143, 109, 0.12);
  background:
    radial-gradient(circle at 0% -10%, rgba(10, 108, 255, 0.12), transparent 34%),
    linear-gradient(180deg, #f8fbff 0%, #f2f6fc 100%);
}

body[data-page="directory"] .site-header {
  background: rgba(248, 251, 255, 0.92);
  border-bottom: 1px solid rgba(25, 44, 84, 0.1);
}

body[data-page="directory"] .site-header-inner {
  gap: 20px;
}

body[data-page="directory"] .site-nav a {
  padding: 10px 13px;
  border-radius: 999px;
  font-size: 0.9rem;
}

body[data-page="directory"] .site-nav a:hover {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(25, 44, 84, 0.12);
}

body[data-page="directory"] .nav-save-pill {
  background: rgba(255, 255, 255, 0.88);
}

body[data-page="directory"] .hero {
  padding-top: 34px;
}

body[data-page="directory"] .hero-panel {
  border: 1px solid rgba(25, 44, 84, 0.1);
  background: #ffffff;
}

body[data-page="directory"] .hero-panel::after {
  display: none;
}

body[data-page="directory"] .hero-grid {
  padding: 34px;
  gap: 22px;
}

body[data-page="directory"] .directory-layout {
  grid-template-columns: 312px 1fr;
  gap: 20px;
}

body[data-page="directory"] .filters-panel,
body[data-page="directory"] .results-toolbar,
body[data-page="directory"] .detail-card,
body[data-page="directory"] .tool-card,
body[data-page="directory"] .empty-state {
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(25, 44, 84, 0.12);
}

body[data-page="directory"] .filters-panel {
  top: 86px;
}

body[data-page="directory"] .filter-group label {
  color: #21304d;
}

body[data-page="directory"] .filter-pill {
  background: #ffffff;
}

body[data-page="directory"] .filter-pill.is-active {
  background: var(--accent);
  border-color: var(--accent);
}

body[data-page="directory"] .results-toolbar {
  align-items: center;
}

body[data-page="directory"] .tool-card {
  transition: transform 140ms ease, box-shadow 140ms ease;
}

body[data-page="directory"] .tool-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(15, 31, 62, 0.12);
}

body[data-page="directory"] .detail-card {
  background: linear-gradient(180deg, #ffffff, #f8fbff);
}

body[data-page="directory"] .detail-metric {
  background: #f6f9ff;
  border-color: rgba(25, 44, 84, 0.1);
}

@media (max-width: 1080px) {
  body[data-page="directory"] .hero-grid,
  body[data-page="directory"] .directory-layout {
    grid-template-columns: 1fr;
  }

  body[data-page="directory"] .filters-panel {
    position: static;
  }
}

@media (max-width: 720px) {
  body[data-page="directory"] .hero-grid {
    padding: 22px;
  }
}
