.interactive-guide-page {
  background:
    radial-gradient(ellipse at 86% 4%, rgba(227,166,58,.14), transparent 28rem),
    radial-gradient(ellipse at 8% 24%, rgba(13,107,97,.1), transparent 30rem),
    var(--cream);
}
.interactive-guide-page .account-header nav { align-items: center; }
.guide-language-switch {
  display: inline-flex; gap: .15rem; padding: .2rem;
  border: 1px solid var(--line); border-radius: 999px; background: var(--paper);
}
.guide-language-switch button {
  padding: .35rem .65rem; border: 0; border-radius: 999px;
  background: transparent; color: var(--ink-soft); font-size: .75rem;
  font-weight: 800; cursor: pointer;
}
.guide-language-switch button[aria-pressed="true"] { background: var(--teal); color: white; }
.health-guide-wrap { width: min(1120px, calc(100% - 40px)); margin: 2rem auto 4rem; }
.health-guide-hero { max-width: 820px; margin: 0 auto 1.6rem; text-align: center; }
.health-guide-hero h1 {
  margin: 0 auto .8rem; font-family: var(--serif);
  font-size: clamp(2.2rem, 5vw, 3.8rem); line-height: 1.08; letter-spacing: -.04em;
}
.health-guide-hero > p:not(.account-eyebrow) {
  max-width: 720px; margin: 0 auto 1.2rem; color: var(--ink-soft); font-size: 1.05rem;
}
.health-guide-hero .privacy-note { border-radius: 16px; }
.health-guide-emergency {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center; gap: .75rem; margin: 0 auto 1.3rem; padding: .9rem 1rem;
  border: 1px solid #efb6ae; border-radius: 16px; background: var(--red-soft); color: #75251f;
  font-size: .88rem;
}
.health-guide-emergency a {
  padding: .45rem .8rem; border-radius: 999px; background: var(--red);
  color: white; font-weight: 900; text-decoration: none;
}
.health-guide-grid { display: grid; grid-template-columns: minmax(0, 860px); justify-content: center; gap: 1rem; align-items: start; }
.symptom-guide-card { width: 100%; }
.health-tool-card {
  min-width: 0; padding: clamp(1.1rem, 3vw, 1.65rem);
  border: 1px solid rgba(23,49,46,.09); border-radius: 22px;
  background: var(--paper); box-shadow: var(--shadow-sm);
}
.health-tool-heading { display: flex; align-items: center; gap: .85rem; margin-bottom: .85rem; }
.health-tool-heading .account-eyebrow { margin-bottom: .2rem; }
.health-tool-heading h2 { margin: 0; font-family: var(--serif); font-size: clamp(1.4rem, 3vw, 1.85rem); line-height: 1.2; }
.lab-result-tool { margin: .2rem 0 1.2rem; padding: 1rem; border: 1px solid var(--line); border-radius: 15px; background: rgba(242,248,244,.72); }
.lab-result-tool h3 { margin: 0 0 .25rem; font-family: var(--serif); font-size: 1.15rem; }
.lab-result-intro { margin: 0 0 .65rem; color: var(--ink-soft); font-size: .8rem; line-height: 1.5; }
.lab-result-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; }
.lab-result-row { min-width: 0; margin: 0; padding: .65rem .75rem; border: 1px solid var(--line); border-radius: 11px; background: #fff; }
.lab-result-row legend { padding: 0 .2rem; color: var(--ink); font-size: .85rem; font-weight: 800; }
.lab-result-row p { margin: 0 0 .45rem; color: var(--muted); font-size: .72rem; line-height: 1.4; }
.lab-range-choices { display: flex; flex-wrap: wrap; gap: .4rem; }
.lab-range-choice { display: inline-flex; align-items: center; gap: .35rem; padding: .3rem .5rem; border: 1px solid var(--line); border-radius: 8px; background: #f9fbfa; color: var(--ink-soft); font-size: .76rem; cursor: pointer; }
.lab-range-choice input { width: 15px; height: 15px; margin: 0; accent-color: var(--teal); }
.lab-range-choice:focus-within { outline: 2px solid rgba(13,107,97,.18); border-color: var(--teal); }
.lab-choice-clear { width: 28px; height: 28px; margin-left: auto; padding: 0; flex: 0 0 auto; border: 0; background: transparent; cursor: pointer; }
.lab-choice-clear:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.lab-result-form .account-button { grid-column: 1 / -1; margin-top: 0; min-height: 42px; }
.health-tool-icon {
  width: 48px; height: 48px; flex: 0 0 auto; display: grid; place-items: center;
  border-radius: 15px; background: var(--teal-soft); color: var(--teal-dark);
  font-size: 1.7rem; font-weight: 700;
}
.symptom-icon { background: var(--coral-soft); color: #a44731; }
.tool-intro { min-height: 4.7rem; margin-bottom: .9rem; color: var(--ink-soft); font-size: .87rem; line-height: 1.55; }
.symptom-form legend { display: block; margin: .45rem 0 .3rem; font-size: .83rem; font-weight: 800; }
.symptom-option input:focus-visible {
  outline: 3px solid rgba(13,107,97,.18); border-color: var(--teal);
}
.other-symptom-label { display: block; margin: .9rem 0 .3rem; font-size: .83rem; font-weight: 800; }
.symptom-form textarea {
  display: block; width: 100%; min-height: 84px; padding: .7rem .75rem;
  border: 1px solid var(--line-strong); border-radius: 10px;
  background: #fff; color: var(--ink); font: inherit; resize: vertical;
}
.symptom-form textarea:focus { outline: 3px solid rgba(13,107,97,.18); border-color: var(--teal); }
.other-symptom-hint { margin: .35rem 0 .5rem; color: var(--muted); font-size: .75rem; }
.health-tool-card .account-button { width: 100%; }
.symptom-form fieldset { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .45rem; margin: 0; padding: 0; border: 0; }
.symptom-form legend { margin-bottom: .55rem; }
.symptom-group-label { grid-column: 1 / -1; margin: .55rem 0 .15rem; color: var(--teal-dark); font-size: .78rem; font-weight: 850; }
.symptom-option {
  display: grid !important; grid-template-columns: 18px minmax(0, 1fr); align-items: start;
  gap: .6rem; margin: 0 !important; padding: .55rem .65rem;
  border: 1px solid var(--line); border-radius: 11px; background: #fff;
  font-size: .82rem !important; font-weight: 500 !important; line-height: 1.45;
}
.symptom-option input { width: 17px; height: 17px; margin: .15rem 0 0; accent-color: var(--teal); }
.symptom-option.urgent-option { border-color: #efc5bf; background: #fff8f6; }
.health-result { margin-top: 1rem; padding: .9rem 1rem; border: 1px solid #b7d4cb; border-radius: 14px; background: #f2f8f4; }
.health-result h3 { margin: 0 0 .4rem; color: var(--teal-dark); font-size: .98rem; }
.health-result h4 { margin: 0 0 .4rem; color: var(--teal-dark); font-size: .98rem; }
.health-result p { margin: 0; color: var(--ink-soft); font-size: .84rem; line-height: 1.55; }
.health-result p + p { margin-top: .55rem; }
.recommendation-list {
  display: grid; gap: .45rem; margin: .65rem 0 0; padding-left: 1.2rem;
  color: var(--ink-soft); font-size: .84rem; line-height: 1.55;
}
.recommendation-list li { padding-left: .1rem; }
.symptom-details { display: grid; gap: .7rem; margin-top: .85rem; }
.symptom-detail { padding: .75rem .85rem; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.82); }
.symptom-detail-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: .7rem; }
.symptom-detail-heading h4 { margin: 0; color: var(--ink); font-size: .9rem; }
.urgency-pill { flex: 0 0 auto; padding: .2rem .5rem; border-radius: 999px; background: var(--teal-soft); color: var(--teal-dark); font-size: .68rem; font-weight: 850; }
.urgency-urgent { background: #ffe2dc; color: #8f2118; }
.urgency-same-day { background: #fff0c8; color: #805000; }
.guide-sources { margin-top: .7rem !important; }
.guide-sources a { color: var(--teal-dark); font-weight: 700; }
.health-result[data-level="urgent"] { border-color: #e8a79e; background: #fff1ee; }
.health-result[data-level="urgent"] h3 { color: #8f2118; }
.health-result[data-level="same-day"] { border-color: #efcd8f; background: #fff8e9; }
.health-result[data-level="same-day"] h3 { color: #805000; }
.result-question { font-weight: 700; }
.health-guide-note {
  margin-top: 1rem; padding: 1.15rem 1.3rem;
  border: 1px solid #c9ded4; border-radius: 18px; background: rgba(255,255,255,.62);
}
.health-guide-note h2 { margin: 0 0 .4rem; font-family: var(--serif); font-size: 1.25rem; }
.health-guide-note p { margin: 0; color: var(--ink-soft); font-size: .86rem; }
.interactive-guide-page .account-footer .tl,
.interactive-guide-page .account-footer .en { display: inline; }
@media (max-width: 820px) {
  .health-guide-grid { grid-template-columns: minmax(0, 1fr); }
  .tool-intro { min-height: 0; }
}
@media (max-width: 600px) {
  .health-guide-wrap { width: calc(100% - 28px); margin-top: 1.4rem; }
  .guide-language-switch button { padding: .32rem .5rem; }
  .symptom-form fieldset { grid-template-columns: 1fr; }
  .symptom-group-label { grid-column: 1; }
  .lab-result-form { grid-template-columns: 1fr; }
  .lab-result-form .account-button { grid-column: 1; }
  .health-guide-emergency { grid-template-columns: 1fr auto; gap: .4rem .7rem; }
  .health-guide-emergency > span { grid-column: 1; }
  .health-guide-emergency a { grid-column: 2; grid-row: 1 / span 2; }
}
@media (max-width: 1080px) {
  .interactive-guide-page .header-inner {
    height: auto;
    min-height: var(--header-h);
    flex-wrap: wrap;
    gap: .25rem .75rem;
    padding-block: .4rem;
  }
  .interactive-guide-page .header-inner > div { order: 1; }
  .interactive-guide-page .main-nav {
    display: flex;
    order: 2;
    flex: 0 0 100%;
    width: 100%;
    gap: .2rem;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
  }
  .interactive-guide-page .main-nav a {
    flex: 0 0 auto;
    white-space: nowrap;
    padding: 8px 10px;
  }
}

/* Tighten the labs & symptoms page */
.health-guide-wrap { margin-top: .6rem; }
.health-guide-hero { margin: 0 auto .8rem; }
.health-guide-hero h1 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); margin: 0 auto .4rem; letter-spacing: -.03em; }
.health-guide-hero > p:not(.account-eyebrow) { font-size: .95rem; margin: 0 auto .6rem; }
.health-guide-hero .privacy-note { padding: .45rem .85rem; font-size: .78rem; }
.health-tool-card { padding: .95rem 1rem; border-radius: 18px; }
.health-tool-heading { margin-bottom: .5rem; }
.lab-result-tool { padding: .7rem .75rem; margin: 0 0 .7rem; }
.lab-result-intro { margin-bottom: .45rem; }
.lab-result-row { padding: .45rem .55rem; }
.lab-result-row p { margin: 0 0 .3rem; font-size: .7rem; }
.lab-range-choices { gap: .3rem; }
.lab-range-choices label { padding: .3rem .45rem; font-size: .78rem; }
.symptom-option { padding: .45rem .5rem; }
@media (min-width: 1000px) {
  .lab-result-form { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Align the labs hero with the rest of the site and close the gaps */
.health-guide-wrap { margin: .5rem auto 2rem; }
.health-guide-hero { max-width: none; margin: 0 0 .7rem; text-align: left; }
.health-guide-hero h1 { margin: 0 0 .45rem; }
.health-guide-hero .account-eyebrow { margin: 0 0 .15rem; }
.health-guide-hero .privacy-note { width: auto; max-width: 620px; margin: 0; }
.health-guide-grid { gap: .7rem; }

/* Compact lab rows: one line per test option */
.lab-result-row { padding: .4rem .5rem; min-height: 0; }
.lab-result-row legend { font-size: .8rem; }
.lab-range-choices { gap: .25rem; }
.lab-range-choices label {
  min-height: 0 !important; padding: .22rem .4rem !important;
  font-size: .74rem; line-height: 1.2; display: inline-flex;
  align-items: center; gap: .3rem; border-radius: 8px;
}
.lab-range-choices input { width: 14px; height: 14px; margin: 0; }
@media (min-width: 900px) {
  .lab-result-form { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Match the other subpages: menu lives in the top-right button */
@media (max-width: 1080px) {
  .interactive-guide-page .main-nav { display: none !important; }
  .interactive-guide-page .header-inner {
    height: var(--header-h);
    min-height: var(--header-h);
    flex-wrap: nowrap;
    padding-block: 0;
  }
  .interactive-guide-page .header-inner > div { order: 0; }
}

/* Lab tiles: clearer selection state */
.lab-result-row { background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--teal); border-radius: 12px; }
.lab-result-row legend { font-weight: 800; color: var(--ink); }
.lab-range-choices label { border: 1px solid var(--line-strong); background: #fff; border-radius: 999px; }
.lab-range-choices label:hover { border-color: var(--teal); color: var(--teal-dark); }
.lab-range-choices label:has(input:checked) { background: var(--red-soft); border-color: #f2b8b5; color: #991b1b; font-weight: 700; }
.symptom-option { border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.symptom-option:hover { border-color: var(--teal); }
.symptom-option:has(input:checked) { background: var(--teal-soft); border-color: var(--teal); }
