html[data-style="editorial"] {
  --paper: oklch(0.985 0.001 250);
  --paper-2: oklch(0.965 0.002 250);
  --rule: oklch(0.88 0.002 250);
  --rule-soft: oklch(0.93 0.002 250);
  --editorial-ink: oklch(0.2 0.003 250);
  --editorial-ink-2: oklch(0.38 0.003 250);
  --editorial-ink-3: oklch(0.58 0.003 250);
  --editorial-accent: oklch(0.42 0.14 255);
  --editorial-accent-ink: oklch(0.32 0.12 255);
  --editorial-serif: Georgia, "Songti SC", "STSong", "Noto Serif CJK SC", serif;
  --editorial-sans: Inter, ui-sans-serif, system-ui, "PingFang SC", "Microsoft YaHei", sans-serif;
  --editorial-mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

html[data-style="editorial"] body {
  background-color: var(--paper);
  background-image: radial-gradient(circle at 1px 1px, rgba(20,22,28,.025) .7px, transparent .8px);
  background-size: 5px 5px;
  color: var(--editorial-ink);
  font-family: var(--editorial-sans);
}

html[data-style="editorial"] .topbar {
  height: 72px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 36px;
  color: var(--editorial-ink);
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}

html[data-style="editorial"] .brand {
  gap: 8px;
  font-family: var(--editorial-serif);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -.01em;
}

html[data-style="editorial"] .brand-mark {
  width: auto;
  height: auto;
  border: 0;
  border-radius: 0;
  color: var(--editorial-accent);
  font-size: 22px;
  font-style: italic;
}

html[data-style="editorial"] .brand::after {
  content: "✦";
  color: var(--editorial-accent);
  font-family: Georgia, serif;
  font-size: 12px;
  font-weight: 400;
  transform: translateY(-5px);
}

html[data-style="editorial"] .trial-label {
  padding: 5px 10px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  color: var(--editorial-ink-3);
  font-family: var(--editorial-mono);
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
}

html[data-style="editorial"] .style-switch {
  border-color: var(--rule);
  border-radius: 999px;
}

html[data-style="editorial"] .style-switch a {
  border-radius: 999px;
  color: var(--editorial-ink-3);
  font-family: var(--editorial-mono);
  font-size: 10px;
  letter-spacing: .04em;
}

html[data-style="editorial"] .style-switch a[aria-current="page"] {
  color: var(--paper);
  background: var(--editorial-ink);
}

html[data-style="editorial"] main { min-height: calc(100vh - 72px); }

html[data-style="editorial"] .search-shell {
  max-width: 1240px;
  margin: 0 auto;
  padding: 52px 36px 38px;
  background: transparent;
  border-bottom: 1px solid var(--rule);
}

html[data-style="editorial"] .title-row {
  max-width: none;
  margin-bottom: 30px;
  align-items: start;
}

html[data-style="editorial"] .eyebrow {
  color: var(--editorial-ink-3);
  font-family: var(--editorial-mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: .12em;
  text-transform: uppercase;
}

html[data-style="editorial"] .section-mark {
  display: inline;
  color: var(--editorial-accent);
}

html[data-style="editorial"] h1 {
  margin-top: 14px;
  font-family: var(--editorial-serif);
  font-size: clamp(46px, 7vw, 74px);
  font-weight: 400;
  line-height: .98;
  letter-spacing: -.035em;
  font-variation-settings: "opsz" 72;
}

html[data-style="editorial"] .database-meta {
  max-width: 260px;
  padding-top: 3px;
  color: var(--editorial-ink-3);
  font-family: var(--editorial-mono);
  font-size: 10px;
  line-height: 1.7;
  letter-spacing: .05em;
  text-transform: uppercase;
}

html[data-style="editorial"] .search-form {
  max-width: none;
  grid-template-columns: 1fr auto;
  gap: 0;
  border-top: 1px solid var(--editorial-ink);
  border-bottom: 1px solid var(--editorial-ink);
}

html[data-style="editorial"] .search-input-wrap {
  min-height: 62px;
  padding: 0 16px 0 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

html[data-style="editorial"] .search-input-wrap:focus-within { border: 0; box-shadow: none; }
html[data-style="editorial"] .search-input-wrap svg { width: 19px; stroke: var(--editorial-accent); stroke-width: 1.5; }
html[data-style="editorial"] .search-input-wrap input { color: var(--editorial-ink); font-family: var(--editorial-serif); font-size: 19px; }
html[data-style="editorial"] .search-input-wrap input::placeholder { color: var(--editorial-ink-3); font-style: italic; font-weight: 300; }
html[data-style="editorial"] kbd { border-color: var(--rule); border-radius: 2px; color: var(--editorial-ink-3); background: var(--paper-2); font-family: var(--editorial-mono); }

html[data-style="editorial"] .primary-button {
  min-width: 112px;
  min-height: 44px;
  margin: 8px 0;
  padding: 0 22px;
  border-color: var(--editorial-ink);
  border-radius: 999px;
  color: var(--paper);
  background: var(--editorial-ink);
  font-family: var(--editorial-sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .04em;
}

html[data-style="editorial"] .primary-button:hover { border-color: var(--editorial-accent-ink); background: var(--editorial-accent-ink); }

html[data-style="editorial"] .quick-searches {
  max-width: none;
  margin-top: 13px;
  color: var(--editorial-ink-3);
  font-family: var(--editorial-mono);
  font-size: 10px;
  letter-spacing: .06em;
  text-transform: uppercase;
}

html[data-style="editorial"] .quick-searches button {
  padding: 2px 4px;
  color: var(--editorial-accent-ink);
  font-family: var(--editorial-mono);
  font-size: 10px;
  text-transform: none;
}

html[data-style="editorial"] .workspace {
  max-width: 1240px;
  padding: 38px 36px 84px;
  grid-template-columns: minmax(0, 1fr);
  gap: 48px;
}

html[data-style="editorial"] .workspace.filters-open { grid-template-columns: 220px minmax(0, 1fr); }

html[data-style="editorial"] .filter-heading {
  margin-bottom: 20px;
  padding-top: 10px;
  border-top: 1px solid var(--editorial-ink);
}

html[data-style="editorial"] .filter-heading h2,
html[data-style="editorial"] .results-heading h2 {
  font-family: var(--editorial-serif);
  font-weight: 400;
}

html[data-style="editorial"] .filter-heading h2 { font-size: 20px; }
html[data-style="editorial"] .text-button { color: var(--editorial-accent-ink); font-family: var(--editorial-mono); font-size: 10px; text-transform: uppercase; }
html[data-style="editorial"] .filters > label { color: var(--editorial-ink-3); font-family: var(--editorial-mono); font-size: 10px; font-weight: 400; letter-spacing: .08em; text-transform: uppercase; }

html[data-style="editorial"] .filters select {
  min-height: 44px;
  padding-left: 0;
  border: 0;
  border-bottom: 1px solid var(--rule);
  border-radius: 0;
  color: var(--editorial-ink);
  background-color: transparent;
  font-family: var(--editorial-serif);
  font-size: 15px;
}

html[data-style="editorial"] .advanced-search { border-top-color: var(--rule); }
html[data-style="editorial"] .advanced-search summary { color: var(--editorial-ink-2); font-family: var(--editorial-serif); font-size: 15px; font-weight: 400; }
html[data-style="editorial"] .check-row input { accent-color: var(--editorial-accent); }
html[data-style="editorial"] .check-row strong { font-weight: 500; }
html[data-style="editorial"] .check-row small { color: var(--editorial-ink-3); }

html[data-style="editorial"] .quality-note {
  padding: 16px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  border-radius: 0;
  color: var(--editorial-ink-2);
  background: transparent;
  font-family: var(--editorial-serif);
  font-size: 13px;
}

html[data-style="editorial"] .quality-note strong {
  color: var(--editorial-accent-ink);
  font-family: var(--editorial-mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: .08em;
  text-transform: uppercase;
}

html[data-style="editorial"] .results-heading {
  min-height: 58px;
  margin-bottom: 0;
  padding: 5px 0 18px;
  border-top: 1px solid var(--editorial-ink);
  border-bottom: 1px solid var(--rule);
}

html[data-style="editorial"] .results-heading h2 { margin-bottom: 3px; font-size: 28px; letter-spacing: -.015em; }
html[data-style="editorial"] .results-heading p { color: var(--editorial-ink-3); font-family: var(--editorial-mono); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; }
html[data-style="editorial"] .results-list { gap: 0; }

html[data-style="editorial"] .result-card {
  position: relative;
  padding: 20px 12px 20px 0;
  border: 0;
  border-bottom: 1px solid var(--rule-soft);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transition: color .15s ease, background .15s ease;
}

html[data-style="editorial"] .result-card::after {
  content: "→";
  position: absolute;
  top: 22px;
  right: 2px;
  color: var(--editorial-ink-3);
  font-family: var(--editorial-mono);
  transition: transform .15s ease, color .15s ease;
}

html[data-style="editorial"] .result-card:hover {
  transform: none;
  border-color: var(--rule);
  background: var(--paper-2);
  box-shadow: none;
}

html[data-style="editorial"] .result-card:hover::after { color: var(--editorial-accent); transform: translateX(3px); }
html[data-style="editorial"] .result-card h3 { padding-right: 28px; font-family: var(--editorial-serif); font-size: 21px; font-weight: 500; letter-spacing: -.01em; }
html[data-style="editorial"] .result-card:hover h3 { color: var(--editorial-accent-ink); }
html[data-style="editorial"] .maker { padding-right: 28px; color: var(--editorial-ink-3); font-family: var(--editorial-mono); font-size: 10px; letter-spacing: .04em; text-transform: uppercase; }
html[data-style="editorial"] .inci { max-width: 68ch; color: var(--editorial-ink-2); font-family: var(--editorial-serif); font-size: 15px; line-height: 1.55; }
html[data-style="editorial"] .claims { max-width: 82ch; color: var(--editorial-ink-3); font-family: var(--editorial-serif); font-size: 13px; font-style: italic; }
html[data-style="editorial"] .card-meta { gap: 6px; }
html[data-style="editorial"] .tag { padding: 2px 6px; border: 1px solid var(--rule); border-radius: 2px; color: var(--editorial-ink-3); background: transparent; font-family: var(--editorial-mono); font-size: 9px; letter-spacing: .06em; text-transform: uppercase; }
html[data-style="editorial"] .tag.review { border-color: oklch(0.82 0.05 75); color: oklch(0.46 0.12 75); background: oklch(0.97 0.02 75); }

html[data-style="editorial"] .state-card {
  border: 0;
  border-bottom: 1px solid var(--rule);
  border-radius: 0;
  color: var(--editorial-ink-3);
  background: transparent;
  font-family: var(--editorial-serif);
}

html[data-style="editorial"] .pagination { justify-content: flex-start; }
html[data-style="editorial"] .pagination button { border: 0; border-radius: 999px; color: var(--editorial-ink-2); background: transparent; font-family: var(--editorial-mono); font-size: 11px; }
html[data-style="editorial"] .pagination button[aria-current="page"] { color: var(--paper); background: var(--editorial-ink); }

html[data-style="editorial"] .overlay { background: rgba(20,22,28,.35); backdrop-filter: blur(3px); }
html[data-style="editorial"] .drawer { width: min(740px, 94vw); background: var(--paper); box-shadow: -24px 0 70px rgba(20,22,28,.12); }
html[data-style="editorial"] .drawer-header { padding: 27px 34px 22px; border-bottom-color: var(--rule); background: color-mix(in srgb, #fafafa 94%, transparent); }
html[data-style="editorial"] .drawer-header h2 { font-family: var(--editorial-serif); font-size: 34px; font-weight: 400; letter-spacing: -.025em; }
html[data-style="editorial"] .icon-button { border-color: var(--rule); border-radius: 999px; color: var(--editorial-ink); background: var(--paper); font-family: var(--editorial-serif); font-weight: 300; }
html[data-style="editorial"] .drawer-content { padding: 32px 34px 70px; }
html[data-style="editorial"] .detail-section { margin-bottom: 34px; }
html[data-style="editorial"] .detail-section h3 { padding-bottom: 8px; border-bottom: 1px solid var(--editorial-ink); color: var(--editorial-accent); font-family: var(--editorial-mono); font-size: 10px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; }
html[data-style="editorial"] .detail-item { border-bottom-color: var(--rule-soft); }
html[data-style="editorial"] .detail-item dt { color: var(--editorial-ink-3); font-family: var(--editorial-mono); font-size: 9px; letter-spacing: .08em; text-transform: uppercase; }
html[data-style="editorial"] .detail-item dd { color: var(--editorial-ink); font-family: var(--editorial-serif); font-size: 16px; }
html[data-style="editorial"] .source-block { border-color: var(--rule); border-radius: 2px; color: var(--editorial-ink-2); background: var(--paper-2); font-family: var(--editorial-serif); }

@media (max-width: 760px) {
  html[data-style="editorial"] .topbar { height: 64px; padding-inline: 18px; }
  html[data-style="editorial"] .brand { font-size: 16px; }
  html[data-style="editorial"] .search-shell { padding: 34px 18px 28px; }
  html[data-style="editorial"] h1 { font-size: clamp(42px, 13vw, 58px); }
  html[data-style="editorial"] .search-form { grid-template-columns: 1fr; border-bottom: 0; }
  html[data-style="editorial"] .primary-button { width: 100%; margin-top: 10px; min-height: 48px; }
  html[data-style="editorial"] .workspace { padding: 28px 18px 60px; }
  html[data-style="editorial"] .filters { border-radius: 0; background: var(--paper); }
  html[data-style="editorial"] .result-card { padding-right: 20px; }
  html[data-style="editorial"] .drawer-header, html[data-style="editorial"] .drawer-content { padding-left: 22px; padding-right: 22px; }
}
