/* v6: compact scientific questions and evidence in the established green/cream palette. */
.hero-question {
  border-left: 3px solid #9b783d;
  padding: 10px 14px;
  margin: 18px 0;
  background: #efecdf;
  max-width: 34em;
}
.hero-question > span {
  display: block;
  font-size: 12px;
  color: #58674c;
  line-height: 1.8;
}
.hero-question h2 {
  font-size: clamp(17px, 1.45vw, 21px);
  line-height: 1.6;
  color: #294d3d;
  margin: 3px 0;
}
.hero-question p {
  font-size: 14px;
  line-height: 1.85;
  color: #43583f;
}
.evidence-note {
  margin: 14px 0;
  border: 1px solid #bacab5;
  border-left: 3px solid #648151;
  border-radius: 4px;
  background: #f3f3e9;
  color: #294d3d;
  min-width: 0;
}
.evidence-note > summary {
  padding: 11px 13px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.75;
  cursor: pointer;
  overflow-wrap: anywhere;
}
.evidence-body {
  padding: 0 14px 14px;
  border-top: 1px solid #d0dac8;
}
.evidence-body p,
.ingredient-detail .evidence-body p {
  font-size: 14px !important;
  line-height: 1.9 !important;
  color: #354f3e !important;
  margin-top: 10px;
}
.evidence-body strong {
  font-weight: 600;
  color: #31573e;
}
.evidence-sources {
  display: grid;
  gap: 6px;
  margin-top: 12px;
  min-width: 0;
}
.evidence-sources > span {
  font-size: 12px;
  line-height: 1.8;
  color: #53684b;
}
.evidence-sources > a {
  font-size: 13px;
  line-height: 1.8;
  color: #315b48;
  text-decoration: underline;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
  padding-block: 4px;
}
.source-target {
  background: #e9eddb;
  outline: 3px solid #8a692c;
  outline-offset: 3px;
  scroll-margin-block: 24px;
}
.model-help {
  line-height: 1.85 !important;
}
.model-help#molecule-keys {
  font-size: 13px;
  color: #415f47;
  padding: 8px 0;
}
:where(button, a, input, summary, canvas, [role='tab'], [role='tabpanel']):focus-visible {
  outline: 3px solid #96621c;
  outline-offset: 4px;
}
#main .answer-feedback:focus,
#main .quiz-panel h1:focus {
  outline: 3px solid #96621c;
  outline-offset: 5px;
}
[role='tabpanel'] {
  min-width: 0;
  scroll-margin-top: 24px;
}
@media (max-width: 760px) {
  .hero-question {
    margin-block: 14px;
    padding: 9px 12px;
  }
  .hero-question h2 {
    font-size: 18px;
  }
  .hero-question p {
    font-size: 14px;
  }
  .source-target {
    scroll-margin-top: 180px;
  }
  .evidence-note > summary {
    font-size: 14px;
  }
  .header-tools .motion-toggle {
    white-space: nowrap;
  }
}
@media (max-width: 360px) {
  .hero-question h2 {
    font-size: 17px;
  }
  .motion-toggle {
    padding-inline: 5px !important;
  }
  .header-tools {
    gap: 4px !important;
  }
}
@media (forced-colors: active) {
  .evidence-note,
  .hero-question {
    border: 1px solid CanvasText;
  }
  .source-target {
    outline: 3px solid Highlight;
  }
}
/* v7: the default page carries the conclusion; interaction adds the condition comparison. */
.home-story {
  padding: 26px 0 28px;
  border-top: 1px solid #c7d2bf;
  border-bottom: 1px solid #c7d2bf;
  margin: 4px 0 24px;
}
.home-story > h2 {
  font-size: clamp(23px, 2.1vw, 30px);
  line-height: 1.55;
  color: #294d3d;
  margin: 8px 0 10px;
}
.story-lead {
  font-size: 16px;
  line-height: 1.9;
  color: #354f3e;
  max-width: 58em;
}
.story-chain {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-top: 22px;
}
.story-chain article {
  min-width: 0;
  border-top: 3px solid #82976c;
  padding-top: 13px;
}
.story-step {
  font-size: 13px;
  color: #52664c;
}
.story-chain h3 {
  font-size: 19px;
  line-height: 1.6;
  color: #31573e;
  margin: 8px 0 10px;
}
.story-chain article > p {
  font-size: 15px;
  line-height: 1.9;
  color: #354f3e;
}
.story-chain .story-path {
  font-size: 14px;
  margin-top: 12px;
  color: #31573e;
  border-left: 2px solid #a48b50;
  padding-left: 10px;
}
.story-refs,
.evidence-brief > div {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 14px;
  margin-top: 10px;
}
.story-refs a,
.evidence-brief a {
  font-size: 13px;
  color: #315b48;
  text-decoration: underline;
  text-underline-offset: 3px;
  line-height: 1.8;
  padding-block: 4px;
  overflow-wrap: anywhere;
}
.home-story .story-boundary {
  font-size: 13px;
  line-height: 1.85;
  color: #52664c;
  margin-top: 20px;
}
.evidence-brief {
  padding: 12px 0 2px;
  margin: 9px 0;
  min-width: 0;
}
.evidence-brief p,
.ingredient-detail .evidence-brief p {
  font-size: 14px !important;
  line-height: 1.9 !important;
  color: #354f3e !important;
}
.evidence-brief strong {
  color: #31573e;
}
.evidence-brief + .evidence-note {
  margin-top: 7px;
}
.condition-argument {
  border-block: 1px solid #c9d5c0;
  padding-block: 14px;
  margin: 16px 0 18px;
}
.condition-argument h4 {
  font-size: 17px;
  line-height: 1.7;
  color: #31573e;
}
.condition-argument table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  margin-top: 10px;
  font-size: 14px;
  color: #354f3e;
  line-height: 1.8;
}
.condition-argument caption {
  text-align: left;
  font-size: 12px;
  color: #52664c;
  margin-bottom: 8px;
}
.condition-argument th,
.condition-argument td {
  text-align: left;
  vertical-align: top;
  padding: 9px 10px;
  border-bottom: 1px solid #d3ddcc;
  overflow-wrap: anywhere;
}
.condition-argument th:first-child {
  width: 29%;
}
.condition-argument thead {
  background: #e8eddf;
}
.condition-argument th {
  font-weight: 600;
}
.condition-argument .current-condition {
  background: #edf0e4;
}
.condition-argument > p {
  font-size: 13px;
  color: #52664c;
  line-height: 1.85;
  margin-top: 11px;
}
.assistive-status {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
#motion-toggle:disabled {
  opacity: 1;
  color: #48604d;
  cursor: default;
}
@media (max-width: 900px) {
  .story-chain {
    gap: 16px;
  }
  .story-chain h3 {
    font-size: 17px;
  }
}
@media (max-width: 600px) {
  .home-story {
    padding-block: 23px;
  }
  .home-story > h2 {
    font-size: 24px;
  }
  .story-chain {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .story-chain h3 {
    font-size: 19px;
    margin-block: 6px;
  }
  .story-chain article > p {
    font-size: 15px;
  }
  .condition-argument th,
  .condition-argument td {
    padding: 8px;
  }
  .condition-argument h4 {
    font-size: 16px;
  }
}
