:root {
  --bg: #f4f8f5;
  --surface: #ffffff;
  --surface-2: #eef4f0;
  --ink: #22302b;
  --muted: #5f6f68;
  --line: #dde7e1;
  --forest: #1e5c4c;
  --forest-ink: #164536;
  --forest-soft: #e3efe9;
  --coral: #d95b43;
  --coral-soft: #fbeae5;
  --gold: #b9862b;
  --gold-soft: #f6ecd7;
  --radius: 8px;
  --max-width: 1120px;
  --shadow: 0 1px 2px rgba(34, 48, 43, 0.05), 0 8px 24px -14px rgba(34, 48, 43, 0.2);
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: var(--coral-soft);
  color: var(--forest-ink);
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  font-size: 1.25rem;
  line-height: 1.3;
  letter-spacing: 0;
}

h2 {
  font-size: 1.05rem;
  letter-spacing: 0;
}

.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;
}

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  padding: 1rem 1rem 0.9rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.brand-mark {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  background: var(--forest);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
}

.brand-sub {
  color: var(--muted);
  font-size: 0.82rem;
  margin-top: 0.15rem;
}

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem 1rem 2rem;
}

.search-panel {
  position: sticky;
  top: 0;
  z-index: 10;
  padding: 0.75rem 0 0.6rem;
  background: linear-gradient(to bottom, var(--bg) 82%, rgba(244, 248, 245, 0));
}

#search-input {
  width: 100%;
  min-height: 46px;
  padding: 0.6rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  box-shadow: var(--shadow);
  -webkit-appearance: none;
  appearance: none;
}

#search-input:focus {
  outline: none;
  border-color: var(--forest);
  box-shadow: 0 0 0 3px rgba(30, 92, 76, 0.16);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.7rem;
}

.chip {
  min-height: 38px;
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font: inherit;
  font-size: 0.9rem;
  cursor: pointer;
}

.chip.is-active {
  border-color: var(--forest);
  background: var(--forest-soft);
  color: var(--forest);
  font-weight: 600;
}

.result-count {
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 0.55rem;
}

.entry-list {
  display: grid;
  gap: 0.9rem;
  margin-top: 0.9rem;
}

.entry-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.entry-summary {
  display: block;
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  text-decoration: none;
}

.entry-summary:active {
  background: var(--surface-2);
}

.entry-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
}

.entry-title {
  font-size: 1.05rem;
  font-weight: 700;
}

.entry-latin {
  color: var(--muted);
  font-size: 0.84rem;
  font-style: italic;
  margin-top: 0.1rem;
}

.entry-detail {
  padding: 1.25rem 1.1rem 1.5rem;
  border-top: 1px solid var(--line);
}

.entry-detail--page {
  padding: 0.6rem 0 0;
  border-top: 0;
}

.entry-page-head {
  margin: 0 0 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--line);
  box-shadow: inset 0 -3px 0 var(--gold);
}

.entry-page-head h2 {
  font-size: 1.45rem;
  color: var(--forest-ink);
}

.entry-page-head .entry-latin {
  margin-top: 0.2rem;
}

.overview-intro {
  margin: 0 0 1rem;
  padding: 0.8rem 0.9rem;
  border-left: 4px solid var(--forest);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: linear-gradient(135deg, var(--forest-soft), #f2f8f5);
  color: var(--forest-ink);
  font-size: 0.92rem;
  line-height: 1.8;
}

.latin-speak {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 0.55rem;
  padding: 0.3rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--forest);
  cursor: pointer;
  vertical-align: middle;
}

.latin-speak:hover {
  color: var(--coral);
  border-color: var(--coral);
}

.back-link {
  display: inline-block;
  margin-bottom: 0.8rem;
  color: var(--forest);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}

.back-link:hover {
  text-decoration: underline;
}

.section-nav {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 1.1rem;
  padding: 0.55rem 0.1rem;
  background: rgba(244, 248, 245, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.section-nav-list {
  display: flex;
  gap: 0.45rem;
  overflow-x: auto;
  scrollbar-width: none;
  flex: 1;
}

.section-nav-list::-webkit-scrollbar {
  display: none;
}

.section-nav-chip {
  flex: none;
  padding: 0.32rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 0.82rem;
  text-decoration: none;
  white-space: nowrap;
}

.section-nav-chip:hover {
  border-color: var(--forest);
  color: var(--forest);
}

.section-nav-chip.is-active {
  background: var(--forest-soft);
  border-color: var(--forest);
  color: var(--forest-ink);
  font-weight: 600;
}

.condensed-toggle {
  flex: none;
  padding: 0.32rem 0.7rem;
  border: 1px solid var(--gold);
  border-radius: 999px;
  background: var(--gold-soft);
  color: #7a5a1c;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.condensed-toggle:hover {
  border-color: var(--gold);
}

[id] {
  scroll-margin-top: 3.8rem;
}

.entry-detail.is-condensed .detail-section {
  display: none;
}

.entry-detail.is-condensed #evidence,
.entry-detail.is-condensed #safety {
  display: block;
}

.entry-detail.is-condensed .related-list {
  display: none;
}

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

.detail-section h2 {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 1.1rem;
  padding: 0 0 0.65rem;
  border-bottom: 1px solid var(--line);
  box-shadow: inset 0 -2px 0 var(--forest);
  color: var(--forest-ink);
}

.detail-section h2::before {
  content: "";
  flex: none;
  width: 0.35rem;
  height: 1.05em;
  border-radius: 2px;
  background: var(--coral);
}

.detail-section p {
  color: var(--ink);
  font-size: 0.97rem;
  line-height: 1.8;
}

.detail-section p + p {
  margin-top: 0.9rem;
}

.related-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.related-list a {
  color: var(--forest);
  font-weight: 600;
  text-decoration: none;
}

.related-list a:hover {
  text-decoration: underline;
}

.related-note {
  display: block;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.6;
}

.method-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
}

.method-list li {
  display: grid;
  gap: 0.25rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
}

.method-list strong {
  color: var(--forest-ink);
}

.method-product {
  color: var(--coral);
  font-size: 0.9rem;
  font-weight: 600;
}

.method-text {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

.grade-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
}

.grade-list li {
  display: grid;
  gap: 0.25rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
}

.grade-list strong {
  color: var(--forest-ink);
}

.grade-chem,
.grade-note {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

.grade-chem {
  color: var(--coral);
}

.table-wrap {
  overflow-x: auto;
}

.comparison-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.comparison-table th,
.comparison-table td {
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.comparison-table th {
  background: linear-gradient(180deg, var(--forest-soft), var(--surface-2));
  color: var(--forest-ink);
  font-weight: 700;
  border-bottom: 2px solid var(--forest);
}

.comparison-table td {
  color: var(--ink);
  line-height: 1.6;
}

.comparison-table tbody tr:hover td {
  background: rgba(227, 239, 233, 0.55);
}

.info-card {
  margin: 0;
  padding: 0.8rem 0.9rem;
  border-left: 4px solid var(--forest);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: linear-gradient(135deg, var(--forest-soft), #f2f8f5);
  color: var(--forest-ink);
  font-size: 0.92rem;
  line-height: 1.8;
}

.info-card p {
  margin: 0;
  color: inherit;
  font-size: inherit;
  line-height: inherit;
}

.info-card p + p {
  margin-top: 0.8rem;
}

.detail-section ul {
  margin: 0;
  padding-left: 1.1rem;
}

.detail-section li {
  font-size: 0.96rem;
  line-height: 1.75;
  margin-bottom: 0.4rem;
}

.safety-list {
  display: grid;
  gap: 0.9rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.safety-list li {
  display: grid;
  grid-template-columns: 5.2rem 1fr;
  gap: 0.6rem;
  font-size: 0.92rem;
  line-height: 1.72;
  margin-bottom: 0;
}

.safety-list .label {
  color: var(--coral);
  font-weight: 600;
}

.contra-list {
  display: grid;
  gap: 0.55rem;
}

.contra-item {
  position: relative;
  display: block;
  padding-left: 1.15rem;
  font-size: 0.92rem;
  line-height: 1.75;
}

.contra-item::before {
  content: "";
  position: absolute;
  left: 0.1rem;
  top: 0.85em;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--coral);
}

.pet-alert {
  margin: 0 0 0.55rem;
  padding: 0.7rem 0.85rem;
  border-left: 4px solid var(--coral);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--coral-soft);
  color: #7c2d1d;
  font-size: 0.92rem;
  line-height: 1.7;
}

.pet-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.pet-row {
  display: grid;
  grid-template-columns: 4rem 1fr;
  gap: 0.5rem;
}

.pet-label {
  color: var(--coral);
  font-weight: 600;
}

.oral-list {
  display: grid;
  gap: 0.55rem;
}

.oral-item {
  position: relative;
  display: block;
  padding-left: 1.15rem;
  font-size: 0.92rem;
  line-height: 1.75;
}

.oral-item::before {
  content: "";
  position: absolute;
  left: 0.1rem;
  top: 0.85em;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--gold);
}

.drug-list {
  display: grid;
  gap: 0.55rem;
}

.drug-item {
  position: relative;
  display: block;
  padding-left: 1.15rem;
  font-size: 0.92rem;
  line-height: 1.75;
}

.drug-item::before {
  content: "";
  position: absolute;
  left: 0.1rem;
  top: 0.85em;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--gold);
}

.recipe-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
}

.recipe-box {
  padding: 0.85rem 0.95rem;
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius);
  background: var(--surface-2);
  box-shadow: var(--shadow);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.recipe-box:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px -16px rgba(34, 48, 43, 0.28);
}

.recipe-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  margin-bottom: 0.4rem;
}

.recipe-head h3 {
  font-size: 0.98rem;
  line-height: 1.4;
}

.recipe-category {
  flex: none;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  background: var(--gold-soft);
  color: #7a5a1c;
  font-size: 0.75rem;
  font-weight: 600;
}

.recipe-box ul {
  margin: 0 0 0.5rem;
}

.status-badge {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.22rem 0.6rem;
  border-radius: 999px;
  background: var(--gold-soft);
  color: #7a5a1c;
  font-size: 0.76rem;
}

.meta-line {
  margin-top: 0.45rem;
  color: var(--muted);
  font-size: 0.8rem;
}

.rich-item strong {
  color: var(--forest);
}

.rich-item--highlight {
  font-weight: 600;
}

.rich-bullet {
  display: list-item;
  list-style: disc;
  list-style-position: outside;
  margin-left: 1.45em;
  margin-top: 0.5rem;
  padding-left: 0.15em;
}

.rich-bullet:first-child {
  margin-top: 0.25rem;
}

.rich-conclusion {
  display: block;
  margin: 0.5rem 0 1.35rem;
  padding-left: 0.6rem;
  border-left: 3px solid var(--coral);
  color: var(--forest-ink);
  font-weight: 600;
  line-height: 1.7;
}

.quick-facts-card {
  margin: 0;
  padding: 1.05rem 1.15rem 1rem;
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius);
  background:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.55) 0 1px, transparent 1px 8px),
    linear-gradient(135deg, var(--forest-soft), #f7f1df);
  box-shadow: var(--shadow);
}

.rich-item--summary {
  margin-top: 1.1rem;
  padding: 0.85rem 1rem;
  border-left: 4px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
  background:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.55) 0 1px, transparent 1px 8px),
    linear-gradient(135deg, var(--gold-soft), #fbf6ea);
  box-shadow: var(--shadow);
}

.quick-facts-head {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.7rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid rgba(185, 134, 43, 0.35);
  color: var(--forest-ink);
  font-size: 0.98rem;
  font-weight: 700;
}

.quick-facts-head::before {
  content: "";
  flex: none;
  width: 0.35rem;
  height: 1.05em;
  border-radius: 2px;
  background: var(--gold);
}

.quick-facts {
  margin: 0;
}

.quick-facts-row {
  display: grid;
  grid-template-columns: 6.4rem 1fr;
  gap: 0.8rem;
  padding: 0.7rem 0;
  border-bottom: 1px dashed rgba(31, 92, 76, 0.22);
  font-size: 0.95rem;
  line-height: 1.75;
}

.quick-facts-row:last-child {
  border-bottom: 0;
  padding-bottom: 0.1rem;
}

.quick-facts-label {
  color: var(--forest-ink);
  font-weight: 700;
  white-space: nowrap;
}

.quick-facts-text {
  color: var(--ink);
}

.guide-family-entry {
  margin: 0.8rem 0 0;
}

.guide-family-entry a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.42rem 0.75rem;
  border: 1px solid rgba(31, 92, 76, 0.24);
  border-radius: var(--radius);
  background: var(--forest-soft);
  color: var(--forest-ink);
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
}

.guide-family-entry a::before {
  content: "";
  flex: none;
  width: 0.44rem;
  height: 0.44rem;
  border-radius: 999px;
  background: var(--gold);
}

#home-ad-slot,
#entry-ad-slot-bottom {
  margin-top: 1.1rem;
}

#home-ad-slot[hidden],
#entry-ad-slot-bottom[hidden] {
  display: none;
}

.longform-heading {
  margin: 1.8rem 0 0.45rem;
  font-size: 1.05rem;
  line-height: 1.4;
  color: var(--forest-ink);
}

.longform-list {
  margin: 0.4rem 0 0.9rem;
  padding-left: 1.3rem;
}

.longform-list li {
  margin: 0.3rem 0;
  line-height: 1.7;
}

.info-grid {
  display: grid;
  gap: 0.5rem;
}

.info-row {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 0.6rem;
  font-size: 0.95rem;
  line-height: 1.7;
}

.info-label {
  color: var(--forest);
  font-weight: 600;
}

.chem-list {
  list-style: none;
  margin: 0 0 0.6rem;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.chem-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.2rem 0.9rem;
  margin: 0;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
  font-size: 0.93rem;
}

.chem-list strong {
  color: var(--forest-ink);
  font-weight: 700;
}

.chem-range {
  align-self: center;
  color: var(--coral);
  font-size: 0.9rem;
  font-weight: 700;
  white-space: nowrap;
}

.chem-note {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 0.86rem;
}

.chem-footnote {
  grid-column: 1 / -1;
  margin-top: 0.4rem;
  padding: 0.45rem 0.6rem;
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--forest) 16%, white);
  color: var(--forest-ink);
  font-size: 0.85rem;
  line-height: 1.6;
}

.chem-marker {
  margin: 0.75rem 0 0.45rem;
  padding: 0.75rem 0.9rem;
  border-left: 4px solid var(--forest);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--forest-soft);
  color: var(--forest-ink);
  font-size: 0.92rem;
  line-height: 1.75;
}

.chem-variation {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.75;
}

.ref-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.ref-list li {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.4rem;
  align-items: start;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
}

.ref-level {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  padding: 0.12rem 0.5rem;
  border-radius: 999px;
  background: var(--gold-soft);
  color: #7a5a1c;
  font-size: 0.74rem;
  font-weight: 600;
  white-space: nowrap;
}

.ref-title {
  font-size: 0.92rem;
  line-height: 1.6;
}

.ref-note-text {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.6;
}

.empty-state {
  padding: 2.2rem 1rem;
  text-align: center;
  color: var(--muted);
}

.site-footer {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.2rem 1rem 2rem;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.7;
}

.site-footer p + p {
  margin-top: 0.3rem;
}

.site-footer-meta a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

@media (min-width: 640px) {
  .site-header {
    padding: 1.2rem 2rem 1rem;
  }

  main,
  .site-footer {
    padding-left: 2rem;
    padding-right: 2rem;
  }

  .entry-list {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

@media (min-width: 960px) {
  .entry-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
  }
}

@media (min-width: 640px) {
  .entry-detail {
    padding: 1.5rem 1.7rem 1.7rem;
  }
}

@media (min-width: 900px) {
  .entry-detail {
    display: block;
  }
}

.ref-note {
  margin: 0.75rem 0 0;
  padding-top: 0.6rem;
  border-top: 1px dashed var(--line);
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.7;
}

.guide-shortcut {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.15rem 0 0.8rem;
}

.guide-shortcut a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--forest-ink);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: var(--shadow);
}

.guide-shortcut a::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  background: var(--gold);
}

.guide-hero {
  display: grid;
  gap: 0.35rem;
  padding: 1.4rem 0 1rem;
  border-bottom: 1px solid var(--line);
}

.guide-hero h2 {
  font-size: 1.65rem;
  color: var(--forest-ink);
}

.guide-hero p {
  max-width: 62ch;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.7;
}

.guide-search-panel {
  padding: 1rem 0 0.6rem;
}

.guide-search {
  width: 100%;
  max-width: 560px;
  padding: 0.62rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 0.94rem;
}

.guide-chips {
  margin-top: 0.7rem;
}

.guide-content {
  display: grid;
  gap: 1.6rem;
  padding: 1.2rem 0 0.4rem;
}

.guide-category {
  --cat: var(--forest);
  --cat-soft: var(--forest-soft);
  scroll-margin-top: 1.2rem;
  padding: 1.15rem 0 0;
  border-top: 3px solid var(--cat);
}

.guide-category[data-cat="high-saturated"] {
  --cat: #8b5a2b;
  --cat-soft: #f2e7db;
}

.guide-category[data-cat="high-oleic"] {
  --cat: #9a6a2f;
  --cat-soft: #f6ecdd;
}

.guide-category[data-cat="high-linoleic"] {
  --cat: #6f7f4f;
  --cat-soft: #edf0e2;
}

.guide-category[data-cat="butter-wax"] {
  --cat: #2f6d70;
  --cat-soft: #e5f1f0;
}

.guide-category[data-cat="high-potency"] {
  --cat: #b65f44;
  --cat-soft: #faeae4;
}

.guide-category[data-cat="balanced-special"] {
  --cat: #627b8a;
  --cat-soft: #e9f0f2;
}

.guide-category[data-cat="monoterpenes"] {
  --cat: #b7791f;
  --cat-soft: #f5ead3;
}

.guide-category[data-cat="alcohols"] {
  --cat: #2f7d66;
  --cat-soft: #e0efe9;
}

.guide-category[data-cat="esters"] {
  --cat: #a05c6f;
  --cat-soft: #f4e3e8;
}

.guide-category[data-cat="oxides"] {
  --cat: #2f6d7a;
  --cat-soft: #e1eef0;
}

.guide-category[data-cat="ketones"] {
  --cat: #7b5280;
  --cat-soft: #efe5f2;
}

.guide-category[data-cat="aldehydes"] {
  --cat: #b26b3f;
  --cat-soft: #f7e9de;
}

.guide-category[data-cat="sesquiterpenes"] {
  --cat: #7a5634;
  --cat-soft: #efe6da;
}

.guide-category[data-cat="overviews"] {
  --cat: #55657d;
  --cat-soft: #e9edf2;
}

.guide-category[data-cat="daily"] {
  --cat: #2f7d66;
  --cat-soft: #e0efe9;
}

.guide-category[data-cat="advanced"] {
  --cat: #a06a20;
  --cat-soft: #f5ead3;
}

.guide-category[data-cat="caution"] {
  --cat: #b65f44;
  --cat-soft: #faeae4;
}

.risk-summary {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.7rem;
  padding: 1.2rem 0 0;
}

.risk-summary-card {
  --cat: var(--forest);
  --cat-soft: var(--forest-soft);
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-top: 3px solid var(--cat);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.risk-summary-card[data-level="daily"] {
  --cat: #2f7d66;
  --cat-soft: #e0efe9;
}

.risk-summary-card[data-level="advanced"] {
  --cat: #a06a20;
  --cat-soft: #f5ead3;
}

.risk-summary-card[data-level="caution"] {
  --cat: #b65f44;
  --cat-soft: #faeae4;
}

.risk-summary-card h3 {
  color: var(--cat);
  font-size: 1rem;
}

.risk-summary-card p {
  margin-top: 0.35rem;
  color: var(--ink);
  font-size: 0.86rem;
  line-height: 1.65;
}

.risk-summary-card ul {
  display: grid;
  gap: 0.3rem;
  margin: 0.65rem 0 0;
  padding: 0;
  list-style: none;
}

.risk-summary-card li {
  position: relative;
  padding-left: 0.85rem;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.55;
}

.risk-summary-card li::before {
  content: "";
  position: absolute;
  top: 0.55em;
  left: 0;
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 999px;
  background: var(--cat);
}

.guide-category-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.guide-category-head h3 {
  font-size: 1.2rem;
  color: var(--ink);
}

.guide-category-head p {
  color: var(--muted);
  font-size: 0.88rem;
}

.guide-count {
  flex: none;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  background: var(--cat-soft);
  color: var(--cat);
  font-size: 0.8rem;
  font-weight: 700;
}

.guide-category-intro {
  max-width: 68ch;
  margin: 0.6rem 0 0.8rem;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

.guide-oil-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.7rem;
  align-items: stretch;
}

.guide-oil-card {
  display: grid;
  align-content: start;
  gap: 0.32rem;
  min-height: 150px;
  padding: 0.85rem 0.9rem;
  border: 1px solid var(--line);
  border-top: 2px solid var(--cat);
  border-radius: var(--radius);
  background: var(--surface);
  color: inherit;
  text-decoration: none;
  box-shadow: var(--shadow);
}

.guide-oil-head {
  display: grid;
  gap: 0.2rem;
}

.guide-oil-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--forest-ink);
}

.guide-oil-en {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.4;
}

.guide-oil-latin {
  color: var(--muted);
  font-size: 0.74rem;
  font-style: italic;
  line-height: 1.5;
}

.guide-oil-variant {
  justify-self: start;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: var(--cat-soft);
  color: var(--cat);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.4;
}

.guide-oil-level {
  justify-self: start;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: var(--cat-soft);
  color: var(--cat);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.4;
}

.guide-oil-comp {
  color: var(--ink);
  font-size: 0.84rem;
  line-height: 1.65;
}

.guide-oil-risk {
  color: #8a4a2f;
  font-size: 0.78rem;
  line-height: 1.55;
}

.guide-empty {
  padding: 1.6rem 1rem;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--muted);
  text-align: center;
  font-size: 0.88rem;
}

.guide-lower-section {
  padding: 1.7rem 0 0.4rem;
  border-top: 1px solid var(--line);
}

.guide-lower-section h2 {
  font-size: 1.2rem;
  color: var(--forest-ink);
}

#replacement-list,
#no-swap-list {
  display: grid;
  gap: 0.7rem;
  margin-top: 0.8rem;
}

.replacement-row {
  display: grid;
  grid-template-columns: minmax(150px, 220px) 1fr;
  gap: 0.6rem 1.1rem;
  align-items: start;
  padding: 0.85rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.replacement-ask span {
  display: block;
  font-weight: 700;
  color: var(--ink);
  font-size: 0.94rem;
}

.replacement-ask p,
.replacement-note {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.6;
}

.replacement-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.replacement-options a {
  display: inline-flex;
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
  background: var(--gold-soft);
  color: #7a5a1c;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
}

.replacement-note {
  grid-column: 2;
  margin: 0;
}

.no-swap-row {
  display: grid;
  grid-template-columns: minmax(150px, 220px) 1fr;
  gap: 0.3rem 1rem;
  align-items: start;
  padding: 0.85rem 0.9rem;
  border-left: 3px solid var(--coral);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--coral-soft);
}

.no-swap-row h3 {
  font-size: 0.95rem;
}

.no-swap-row a {
  color: var(--forest-ink);
  text-decoration: none;
}

.no-swap-row p {
  color: #5c4a3a;
  font-size: 0.86rem;
  line-height: 1.65;
}

@media (min-width: 640px) {
  .guide-hero {
    padding-top: 2rem;
  }

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

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

@media (min-width: 960px) {
  .guide-oil-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .replacement-row,
  .no-swap-row {
    grid-template-columns: 1fr;
  }

  .replacement-note {
    grid-column: 1;
  }
}
