/* V13.3 — high contrast reading theme + Symptom Assistant conversion entry */
:root{
  --sg-body-text:#111827;
  --sg-body-strong:#0B1520;
  --sg-body-muted:#334155;
  --sg-soft-text:#475569;
}

/* Core reading rule: on light content surfaces, copy is dark and readable. */
body{color:var(--sg-body-text)}
main{color:var(--sg-body-text)}
main h1,main h2,main h3,main h4,main h5,main h6,
main strong,main b{color:var(--sg-body-strong)}
main p,main li,main dd,main dt,main td,main th,
main .lead,main .meta,main .description{color:var(--sg-body-muted)}

/* Light cards should never inherit white text from a dark parent. */
.symptom-selection-summary,
.symptom-next-step,
.symptom-result-card,
.clinical-note,
.warning-card,
.v11-answer-card,
.v11-prose,
.v11-symptom-card,
.v11-pillar-card,
.v13-proof-grid>a,
.v13-world-grid>a{
  color:var(--sg-body-text);
}
.symptom-selection-summary strong,
.symptom-next-step strong,
.symptom-result-card strong,
.clinical-note strong,
.warning-card strong{color:var(--sg-body-strong)!important}
.symptom-selection-summary p,
.symptom-next-step p,
.symptom-result-card p,
.clinical-note p,
.warning-card p{color:var(--sg-body-muted)!important}

/* The result area is an information panel, not a dark promotional banner. */
.symptom-combination-results{
  background:#F8FAFC!important;
  color:var(--sg-body-text)!important;
  border:1px solid #D8E1E8;
  box-shadow:0 18px 55px rgba(15,23,42,.08);
}
.symptom-combination-results>header span{color:#0F766E!important}
.symptom-combination-results h2{color:var(--sg-body-strong)!important}
.symptom-combination-results header p{color:var(--sg-body-muted)!important}
.symptom-no-overlap{color:var(--sg-body-muted)!important}
.symptom-combination-results>aside{
  background:#FFF7ED!important;
  border:1px solid #FED7AA!important;
  color:var(--sg-body-text)!important;
}
.symptom-combination-results>aside strong{color:#7C2D12!important}
.symptom-combination-results>aside p{color:#7C2D12!important}
.symptom-selection-summary{background:#EEF6FF!important;border:1px solid #D6E8FA}
.symptom-selection-summary small{color:#1267C4!important}
.symptom-selection-summary strong{color:#0B1520!important}
.symptom-next-step{background:#F0FDF4!important;border:1px solid #BBF7D0}
.symptom-next-step small{color:#047857!important}
.symptom-next-step p{color:#334155!important}

/* Selection toolbar and cards */
.symptom-basket-toolbar{color:var(--sg-body-text)}
.symptom-basket-toolbar small{color:#475569}
.symptom-select-card>button{color:var(--sg-body-text)}
.symptom-select-card strong{color:var(--sg-body-strong)}
.symptom-select-card small{color:#475569}

/* Evaluation bar remains high contrast: one purposeful dark interaction strip. */
.symptom-evaluate-bar strong{color:#FFFFFF!important}
.symptom-evaluate-bar small{color:#D6E2EC!important}
.symptom-evaluate-bar button{color:#0B2036!important}

/* Dark CTA/buttons/header keep white text by design for accessible contrast. */
.apple-site-header,.sg-context-bar,.apple-site-header a,
.mobile-patient-dock,.mobile-patient-dock a,
.symptom-whatsapp-cta,.symptom-appointment-cta,
.v11-button.primary,.v11-button.whatsapp,
.button,.apple-appointment,.apple-wa-link{color:#fff}

/* A visible, non-diagnostic conversion entry in the sticky menu. */
.apple-main-nav .symptom-assistant-link{
  display:inline-flex!important;
  align-items:center;
  gap:7px;
  min-height:38px;
  padding:0 14px!important;
  border-radius:999px;
  background:#E8F7F3;
  border:1px solid #B9E8DC;
  color:#075E54!important;
  font-weight:850!important;
  white-space:nowrap;
}
.apple-main-nav .symptom-assistant-link::before{
  content:'✦';
  width:21px;height:21px;
  display:grid;place-items:center;
  border-radius:50%;
  background:#0F8A78;
  color:#fff;
  font-size:10px;
}
.apple-main-nav .symptom-assistant-link:hover{
  background:#D9F3EC;
  border-color:#8FD5C6;
  transform:translateY(-1px);
}

@media(max-width:1280px){
  .apple-main-nav .symptom-assistant-link{
    width:100%;
    min-height:58px!important;
    justify-content:flex-start;
    padding:0 16px!important;
    margin:6px 0 14px;
    border-radius:16px;
    font-size:18px!important;
  }
  .apple-main-nav .symptom-assistant-link::after{
    content:'→';
    margin-left:auto;
    font-size:18px;
  }
}

@media(max-width:640px){
  main p,main li{line-height:1.65}
  .symptom-combination-results{padding:18px!important}
  .symptom-selection-summary strong{font-size:15px!important;line-height:1.5}
  .symptom-next-step{padding:18px!important}
}
