@font-face{font-family:Inter;src:url('/assets/fonts/inter-regular.woff2') format('woff2');font-weight:400;font-display:swap}
@font-face{font-family:Inter;src:url('/assets/fonts/inter-bold.woff2') format('woff2');font-weight:600 900;font-display:swap}
@font-face{font-family:SourceHan;src:url('/assets/fonts/source-han-sans-sc.woff2') format('woff2');font-weight:400;font-display:swap}

:root {
  --bg: #f8f9fa;
  --surface: #ffffff;
  --surface-subtle: #f3f4f6;
  --surface-hover: #f1f3f5;
  --border: #e2e4e9;
  --border-subtle: #edf0f3;
  --border-strong: #cbd0d8;
  --text-primary: #111827;
  --text-secondary: #4b5563;
  --text-muted: #6b7280;
  --accent: #d9441e;
  --accent-hover: #b83412;
  --accent-subtle: #fef3f0;
  --accent-border: #fed7cc;
  --font: Inter, SourceHan, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 6px 18px rgba(0,0,0,0.06);
}

html[lang=zh-Hans] {
  --font: SourceHan, Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: 28px;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text-primary);
  font: 15px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button, a, select { -webkit-tap-highlight-color: transparent; }
button, select { cursor: pointer; color: inherit; }
button:disabled { cursor: wait; opacity: 0.65; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
[hidden] { display: none !important; }

svg { display: block; }
svg:not(.art) {
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.wrap {
  width: min(1200px, calc(100% - 48px));
  margin-inline: auto;
}

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

.skip {
  position: fixed;
  top: -100px;
  left: 20px;
  background: var(--text-primary);
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  z-index: 100;
  font-weight: 600;
}
.skip:focus { top: 12px; }

/* Site Header */
.site-header {
  height: 68px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border);
  gap: 24px;
}
.brand {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--text-primary);
  white-space: nowrap;
  transition: opacity 0.15s ease;
}
.brand:hover {
  opacity: 0.8;
}
.site-header nav {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: auto;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-secondary);
}
.site-header nav a {
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.15s ease;
}
.site-header nav a:hover {
  color: var(--text-primary);
}
.site-header nav a[aria-current="page"] {
  color: var(--accent);
  font-weight: 600;
}
.nav-saved svg {
  width: 16px;
  height: 16px;
}
.saved-count {
  background: var(--surface-subtle);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 12px;
  min-width: 20px;
  height: 20px;
  display: inline-grid;
  place-items: center;
  font-weight: 600;
  color: var(--text-primary);
  padding: 0 4px;
}
.language {
  display: flex;
  align-items: center;
  gap: 6px;
  border-left: 1px solid var(--border);
  padding-left: 18px;
  color: var(--text-secondary);
}
.language svg {
  width: 16px;
  height: 16px;
}
.language select {
  border: 0;
  background: transparent;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  padding: 4px 6px;
  border-radius: var(--radius-sm);
}
.language select:hover {
  background: var(--surface-subtle);
}

/* Hero Section */
.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 36px;
  align-items: stretch;
  padding: 36px 0 28px;
}
.hero-intro-pane {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.independent-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  width: fit-content;
  margin-bottom: 14px;
}
.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}
.hero h1 {
  font-size: clamp(28px, 3.2vw, 38px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.18;
  margin: 0 0 12px;
  color: var(--text-primary);
}
.hero h1 span {
  color: var(--accent);
}
.hero-desc {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 0 20px;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.button {
  background: var(--text-primary);
  color: #fff;
  padding: 10px 18px;
  border: 1px solid var(--text-primary);
  border-radius: var(--radius-sm);
  display: inline-flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  min-height: 42px;
  transition: background 0.15s ease, transform 0.15s ease;
}
.button:hover {
  background: #27272a;
  transform: translateY(-1px);
}
.button svg {
  width: 16px;
  height: 16px;
}
.button.secondary {
  background: var(--surface);
  color: var(--text-primary);
  border-color: var(--border);
}
.button.secondary:hover {
  background: var(--surface-hover);
  border-color: var(--border-strong);
}
.button.tertiary {
  background: transparent;
  color: var(--text-secondary);
  border-color: var(--border);
}
.button.tertiary:hover {
  color: var(--text-primary);
  background: var(--surface-hover);
}
.hero-benefits {
  display: flex;
  gap: 12px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  flex-wrap: wrap;
}

/* Featured Card in Hero */
.hero-featured-pane {
  display: flex;
}
.featured-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.featured-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}
.featured-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.featured-badge {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--accent-subtle);
  color: var(--accent);
  border: 1px solid var(--accent-border);
  padding: 2px 7px;
  border-radius: 4px;
}
.featured-issue {
  font-size: 12px;
  color: var(--text-muted);
}
.featured-body {
  margin: 4px 0 14px;
}
.featured-topic {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  display: block;
  margin-bottom: 4px;
}
.featured-body h2 {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}
.featured-body h2 a:hover {
  color: var(--accent);
}
.featured-body p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.55;
  margin: 0 0 10px;
}
.featured-hook-preview {
  background: var(--surface-subtle);
  border-left: 3px solid var(--accent);
  padding: 8px 12px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.featured-hook-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  display: block;
  margin-bottom: 2px;
}
.featured-hook-preview blockquote {
  margin: 0;
  font-size: 12px;
  font-style: italic;
  line-height: 1.45;
  color: var(--text-primary);
}
.featured-footer {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.featured-meta {
  font-size: 12px;
  color: var(--text-muted);
}
.featured-link {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: color 0.15s ease;
}
.featured-link:hover {
  color: var(--accent);
}
.featured-link svg {
  width: 15px;
  height: 15px;
}

/* Radar & Discovery Section */
.radar {
  padding-top: 24px;
}
.section-heading {
  border-top: 1px solid var(--border);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
}
.eyebrow {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}
.section-heading h2 {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin: 0 0 4px;
}
.section-heading p {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0;
}
.edition-note {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
}
.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  flex-shrink: 0;
}

/* Toolbar */
.toolbar {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  margin: 20px 0 14px;
}
.search {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 9px 12px;
  width: 380px;
  max-width: 100%;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.search:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-subtle);
}
.search svg {
  width: 16px;
  height: 16px;
  color: var(--text-muted);
  flex-shrink: 0;
}
.search input {
  border: 0;
  background: transparent;
  color: var(--text-primary);
  width: 100%;
  font-size: 13.5px;
  outline: none;
}
.search input::placeholder {
  color: var(--text-muted);
}
.sort select {
  font-size: 13px;
  font-weight: 500;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  color: var(--text-secondary);
}
.sort select:hover {
  background: var(--surface-hover);
}

/* Category Filters */
.filters {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.filters button {
  padding: 6px 13px;
  font-size: 13px;
  font-weight: 500;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-secondary);
  transition: all 0.15s ease;
  min-height: 34px;
}
.filters button:hover {
  background: var(--surface-hover);
  color: var(--text-primary);
  border-color: var(--border-strong);
}
.filters button[aria-pressed=true] {
  background: var(--text-primary);
  border-color: var(--text-primary);
  color: #fff;
}

/* Results Row */
.results-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 12px 0 16px;
  font-size: 12.5px;
  color: var(--text-muted);
  min-height: 22px;
}
.text-button {
  padding: 2px 0;
  border: 0;
  background: transparent;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
}
.text-button:hover {
  text-decoration: underline;
}

/* Idea Card Grid */
.idea-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.idea-card {
  min-width: 0;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  padding: 20px 22px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.15s ease, transform 0.15s ease, border-color 0.15s ease;
}
.idea-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}

.card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}
.card-head-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.card-category-badge {
  font-size: 12px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.cat-ai { background: #fdf2ef; color: #b83917; border: 1px solid #f8cbbe; }
.cat-story { background: #fef7ed; color: #b45309; border: 1px solid #fde68a; }
.cat-gaming { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
.cat-culture { background: #eef2ff; color: #4338ca; border: 1px solid #c7d2fe; }
.cat-learn { background: #f0f9ff; color: #0369a1; border: 1px solid #bae6fd; }
.cat-lifestyle { background: #f0fdfa; color: #0f766e; border: 1px solid #99f6e4; }

.card-format {
  font-size: 12px;
  color: var(--text-muted);
}
.card-date {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
}

.card-body h3 {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}
.card-body h3 a, .featured-body h2 a { display: block; }
.card-body h3 a:hover {
  color: var(--accent);
}
.card-angle {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.55;
  margin: 0 0 12px;
}
.card-hook-callout {
  background: var(--surface-subtle);
  border-left: 3px solid var(--accent);
  padding: 8px 12px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-bottom: 12px;
}
.hook-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  display: block;
  margin-bottom: 2px;
}
.card-hook-callout blockquote {
  margin: 0;
  font-size: 12px;
  font-style: italic;
  line-height: 1.45;
  color: var(--text-primary);
}
.card-meta-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.card-effort b {
  color: var(--text-primary);
}

.card-footer {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
  margin-top: auto;
}
.card-open {
  min-height: 44px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.15s ease;
}
.card-open:hover {
  color: var(--accent);
}
.card-open svg {
  width: 15px;
  height: 15px;
}
.save-button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all 0.15s ease;
}
.save-button svg {
  width: 14px;
  height: 14px;
}
.save-button:hover {
  background: var(--surface-hover);
  color: var(--text-primary);
}
.save-button[aria-pressed=true] {
  color: var(--accent);
  background: var(--accent-subtle);
  border-color: var(--accent-border);
}
.save-button[aria-pressed=true] svg {
  fill: var(--accent);
}

/* Empty State */
.empty-state {
  padding: 48px 20px;
  text-align: center;
  border: 1px dashed var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--text-muted);
}
.empty-icon svg {
  width: 32px;
  height: 32px;
  margin: 0 auto 10px;
  color: var(--text-muted);
}
.empty-state h3 {
  font-size: 16px;
  color: var(--text-primary);
  margin: 0 0 6px;
}
.empty-state p {
  font-size: 13px;
  margin: 0;
}

/* How It Works Section */
.how-section {
  padding-top: 48px;
  padding-bottom: 24px;
  border-top: 1px solid var(--border);
  margin-top: 48px;
}
.how-section h2 {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 4px 0 24px;
}
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.step-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
}
.step-number {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-subtle);
  border: 1px solid var(--accent-border);
  display: inline-block;
  padding: 2px 7px;
  border-radius: 4px;
  margin-bottom: 12px;
}
.step-card h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 8px;
}
.step-card p {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* Method Section */
.method {
  margin: 28px auto 48px;
}
.method-inner {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px 32px;
}
.method-header h2 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 4px 0 10px;
}
.method p {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.65;
  margin: 0;
  max-width: 840px;
}

/* Detail View */
.detail {
  padding-top: 24px;
  padding-bottom: 64px;
}
.detail-nav {
  margin-bottom: 16px;
}
.back-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.15s ease;
}
.back-link:hover {
  color: var(--accent);
}

.detail-header {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px 32px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}
.detail-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 14px;
}
.detail-pill {
  font-size: 12px;
  font-weight: 500;
  padding: 3px 10px;
  background: var(--surface-subtle);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-secondary);
}
.detail-pill.cat-ai, .detail-pill.cat-story, .detail-pill.cat-gaming,
.detail-pill.cat-culture, .detail-pill.cat-learn, .detail-pill.cat-lifestyle {
  font-weight: 600;
}
.detail-pill.date-pill {
  margin-left: auto;
  border-color: transparent;
  background: transparent;
}
.detail-header h1 {
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.25;
  margin: 0 0 10px;
  color: var(--text-primary);
}
.detail-angle-lead {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.65;
  margin: 0 0 20px;
  max-width: 820px;
}
.detail-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

/* Brief Layout: Content & Sidebar */
.brief-layout {
  display: grid;
  grid-template-columns: 1.65fr 1fr;
  gap: 24px;
  align-items: start;
}
.brief-content {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px 32px;
  box-shadow: var(--shadow-sm);
  min-width: 0;
}
.brief-section {
  padding: 20px 0;
  border-top: 1px solid var(--border-subtle);
}
.brief-section:first-child {
  padding-top: 0;
  border-top: none;
}
.brief-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.brief-num {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-subtle);
  border: 1px solid var(--accent-border);
  padding: 1px 6px;
  border-radius: 4px;
}
.brief-label h2 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--text-muted);
  margin: 0;
}

.brief-box {
  background: var(--surface-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
}
.title-sample {
  font-size: 19px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.02em;
  margin: 0;
}
.hook-box {
  border-left: 3px solid var(--accent);
}
.hook-box blockquote {
  margin: 0;
  font-size: 16px;
  font-style: italic;
  line-height: 1.6;
  color: var(--text-primary);
}

.outline-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.outline-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--surface-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
}
.act-badge {
  font-size: 12px;
  font-weight: 700;
  padding: 2px 7px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text-primary);
  white-space: nowrap;
  flex-shrink: 0;
}
.act-text {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-primary);
}

.brief-bottom-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  padding-top: 20px;
  border-top: 1px solid var(--border-subtle);
  margin-top: 20px;
}
.editorial-note {
  font-size: 12px;
  line-height: 1.6;
  color: var(--text-muted);
  margin-top: 16px;
}

/* Source Panel / Sidebar */
.source-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px 26px;
  box-shadow: var(--shadow-sm);
}
.source-badge {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 2px 7px;
  background: var(--surface-subtle);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text-muted);
  display: inline-block;
  margin-bottom: 10px;
}
.source-panel h2 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
}
.source-evidence {
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--text-secondary);
  margin: 0 0 16px;
}
.source-citation {
  background: var(--surface-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin-bottom: 16px;
}
.source-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.source-link:hover {
  color: var(--accent-hover);
}
.source-title {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 6px 0 0;
}
.source-dates {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 16px;
  font-size: 12.5px;
  margin: 14px 0;
}
.source-dates dt {
  color: var(--text-muted);
}
.source-dates dd {
  color: var(--text-primary);
  font-weight: 500;
  text-align: right;
  margin: 0;
}
.source-divider {
  border: 0;
  border-top: 1px solid var(--border-subtle);
  margin: 16px 0;
}
.source-window h3 {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin: 0 0 6px;
}
.source-window p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.55;
  margin: 0;
}
.source-independent-note {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
  font-size: 12px;
  line-height: 1.55;
  color: var(--text-muted);
}

/* 404 */
.not-found {
  padding: 80px 0 120px;
  text-align: center;
}
.not-found h1 {
  font-size: 40px;
  letter-spacing: -0.03em;
  margin: 12px 0 8px;
}
.not-found p {
  color: var(--text-secondary);
  margin-bottom: 24px;
}

/* Footer */
footer {
  border-top: 1px solid var(--border);
  padding: 36px 0 24px;
  margin-top: 48px;
}
.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.footer-tagline {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0 auto 0 20px;
}
.footer-middle {
  margin: 16px 0;
  padding: 14px 18px;
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
}
.footer-independent {
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0;
}
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 12.5px;
  color: var(--text-muted);
  flex-wrap: wrap;
}
.locale-links {
  display: flex;
  gap: 16px;
  font-size: 12.5px;
}
.locale-links a {
  color: var(--text-secondary);
  transition: color 0.15s ease;
}
.locale-links a:hover {
  color: var(--accent);
}
.locale-links a[aria-current="page"] {
  font-weight: 600;
  color: var(--text-primary);
}

/* Consent Banner */
.consent {
  position: fixed;
  bottom: 20px;
  left: 20px;
  width: min(440px, calc(100% - 40px));
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  box-shadow: 0 12px 36px rgba(0,0,0,0.12);
  border-radius: var(--radius-md);
  z-index: 50;
}
.consent strong {
  font-size: 13.5px;
  font-weight: 600;
}
.consent p {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.55;
  margin: 6px 0 14px;
}
.consent-actions {
  display: flex;
  gap: 8px;
}
.button.small {
  font-size: 12px;
  min-height: 34px;
  padding: 6px 14px;
}

/* Dialog */
dialog {
  background: var(--surface);
  color: var(--text-primary);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  max-width: 540px;
  width: calc(100% - 32px);
  padding: 28px 32px;
  box-shadow: 0 20px 48px rgba(0,0,0,0.18);
}
dialog::backdrop {
  background: rgba(17, 24, 39, 0.45);
  backdrop-filter: blur(4px);
}
dialog h2 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 12px 0 8px;
}
dialog p {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.65;
}
.dialog-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.dialog-top .eyebrow {
  margin-bottom: 0;
}
.icon-button {
  background: transparent;
  border: 0;
  color: var(--text-secondary);
  font-size: 20px;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.icon-button:hover {
  background: var(--surface-hover);
  color: var(--text-primary);
}

/* Toast */
#toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  padding: 10px 20px;
  background: var(--text-primary);
  color: #fff;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  box-shadow: 0 4px 18px rgba(0,0,0,0.18);
  z-index: 100;
  max-width: 90%;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
#toast.visible {
  opacity: 1;
}

/* Responsive */
@media (max-width: 1050px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-top: 24px;
  }
  .idea-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .brief-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 760px) {
  .wrap {
    width: calc(100% - 32px);
  }
  .site-header {
    height: 60px;
    gap: 14px;
  }
  .site-header .nav-how,
  .site-header .nav-discover,
  .nav-saved span {
    display: none;
  }
  .language {
    padding-left: 12px;
  }
  .hero {
    padding-top: 20px;
  }
  .hero h1 {
    font-size: 28px;
  }
  .section-heading {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .search {
    width: 100%;
  }
  .sort {
    align-self: flex-end;
  }
  .steps {
    grid-template-columns: 1fr;
  }
  .footer-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .footer-tagline {
    margin: 0;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .detail-header {
    padding: 20px;
  }
  .detail-header h1 {
    font-size: 26px;
  }
  .detail-pill.date-pill {
    margin-left: 0;
  }
  .brief-content {
    padding: 20px;
  }
  .source-panel {
    padding: 20px;
  }
}

@media (max-width: 520px) {
  .idea-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero > div { min-width: 0; }
  .featured-header, .featured-footer { flex-wrap: wrap; }
  .card-head { align-items: flex-start; }
}

@media (max-width: 380px) {
  .site-header { gap: 8px; }
  .site-header .brand { font-size: 16px; }
  .language { padding-left: 6px; }
  .language svg { display: none; }
  .language select { width: 90px; font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }
}
