/* Shared shell and the observation, care, editorial and consultation pages. */
:root {
  --forest: #174b33;
  --forest-deep: #123b2a;
  --ink: #202e26;
  --muted: #516156;
  --green: #215b3e;
  --orange: #f59b45;
  --line: #d6e1d8;
  --pale: #eff5ed;
  --cream: #f7f9f5;
}

body { font-size: 1rem; }
html { scroll-padding-top: 5.75rem; }
::selection { background: #d5ead5; color: #153c2a; }
:is(a, button, input, select, textarea, summary):focus-visible {
  outline: 3px solid var(--forest);
  outline-offset: 3px;
}
.skip-link:focus-visible {
  color: var(--forest);
  outline-color: var(--forest);
}

.site-header {
  z-index: 30;
  background: white;
  border-color: #dce5dd;
}
.site-header .header-inner {
  min-height: 4.625rem;
  gap: clamp(.75rem, 1.65vw, 1.625rem);
}
.site-header .brand-lockup { width: clamp(10.25rem, 14.5vw, 13rem); }
.site-header nav {
  font-size: .925rem;
  font-weight: 550;
  gap: clamp(.75rem, 1.5vw, 1.55rem);
}
.site-header nav > a {
  display: flex;
  align-items: center;
  min-height: 3rem;
  padding: .625rem 0;
  color: #324c3b;
}
.site-header nav > a:hover, .site-header nav > a.is-active { color: var(--forest); }
.site-header nav > a.is-active::after { bottom: .25rem; background: var(--forest); }
.site-header .header-consult {
  min-height: 2.75rem;
  padding: .6rem 1.1rem;
  gap: .5rem;
  border-radius: .65rem;
  border-color: var(--orange);
  background: var(--orange);
  color: #2e2519;
  font-size: .9375rem;
}
.site-header .header-consult:hover { background: #f8a95e; border-color: #f8a95e; }

.site-footer {
  padding-top: clamp(2.6rem, 4vw, 4rem);
  border: 0;
  background: var(--forest-deep);
  color: #eff6ef;
}
.site-footer .footer-top {
  grid-template-columns: minmax(0, 1.25fr) repeat(3, minmax(0, 1fr));
  gap: clamp(1.25rem, 6vw, 6rem);
  padding-bottom: clamp(2rem, 4vw, 3.4rem);
}
.site-footer .footer-brand .brand {
  align-self: start;
  padding: .55rem .65rem;
  background: white;
  border-radius: .45rem;
}
.site-footer .brand-lockup { width: clamp(10rem, 15vw, 12rem); }
.site-footer .footer-top > div { align-items: start; gap: .2rem; }
.site-footer .footer-top > div > p {
  color: #dfecdf;
  font-size: 1rem;
  line-height: 1.6;
}
.site-footer .footer-brand p { margin-top: 1rem; }
.site-footer .eyebrow {
  margin-bottom: .55rem;
  color: #b1dbab;
  font-size: .75rem;
  letter-spacing: .12em;
}
.site-footer a:not(.brand) {
  display: inline-flex;
  align-items: center;
  min-height: 2.5rem;
  color: #f2f7f3;
  font-size: .9375rem;
  line-height: 1.5;
}
.site-footer a:not(.brand):hover {
  color: white;
  text-decoration: underline;
  text-underline-offset: .23em;
}
.site-footer a:focus-visible { outline-color: #ffd39c; }
.site-footer .footer-bottom {
  display: flex;
  gap: .5rem 1rem;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding-block: 1rem;
  border-color: #4b7059;
  color: #d1e2d3;
  font-size: .8125rem;
}
.site-footer .footer-bottom a { margin: 0; }

@media (max-width: 1050px) {
  .site-header .header-inner { min-height: 4.125rem; }
  .site-header .header-consult { display: inline-flex; margin-left: auto; }
  .site-header .menu-toggle {
    flex: none;
    display: grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    margin: 0;
    border: 1px solid var(--line);
    border-radius: .65rem;
    color: var(--forest);
    background: white;
  }
  .site-header .menu-toggle[aria-expanded="true"] {
    color: white;
    background: var(--forest);
    border-color: var(--forest);
  }
  .site-header nav.open {
    top: 100%;
    z-index: 1;
    max-height: calc(100dvh - 4.125rem);
    overflow-y: auto;
    padding: .6rem clamp(1rem, 4vw, 3rem) .8rem;
    border-bottom: 1px solid var(--line);
    background: white;
    box-shadow: 0 .65rem 1.5rem rgb(23 75 51 / 9%);
    gap: .18rem;
  }
  .site-header nav > a, .site-header nav > a.is-active {
    min-height: 2.875rem;
    padding: .68rem .8rem;
    border-radius: .5rem;
    font-size: 1rem;
  }
  .site-header nav > a.is-active { background: var(--pale); box-shadow: none; }
  .site-header nav > a:hover { background: #f4f7f1; }
  /* Consultation is already a visible mobile header action. */
  .site-header nav .nav-mobile-consult { display: none; }
}
@media (min-width: 581px) and (max-width: 800px) {
  .site-footer .footer-top { grid-template-columns: 1fr 1fr; gap: 1.6rem 2rem; }
}
@media (max-width: 580px) {
  html { scroll-padding-top: 4.875rem; }
  .site-header .header-inner { gap: .5rem; min-height: 3.875rem; }
  .site-header .brand-lockup { width: clamp(7.8rem, 33vw, 10.2rem); }
  .site-header .header-consult { min-height: 2.75rem; padding: .5rem .8rem; font-size: .875rem; }
  .site-header .header-consult span { display: none; }
  .site-header nav.open { max-height: calc(100dvh - 3.875rem); padding-inline: 1rem; }
  .site-footer .footer-top { grid-template-columns: 1fr 1fr; gap: 1.7rem 1.1rem; }
  .site-footer .footer-brand { grid-column: 1 / -1; }
  .site-footer a:not(.brand) { min-height: 2.75rem; }
  .site-footer .footer-top > div > p { margin-bottom: .25rem; }
  .site-footer .footer-bottom { align-items: flex-start; }
}

/* Keep controls and guidance legible across the reading and field-work tools. */
body:is([data-page="symptoms"],[data-page="care"],[data-page="consult"],[data-page="story"],[data-page="news"],[data-page="article"]) .breadcrumbs {
  padding-top: clamp(1rem, 2vw, 1.625rem);
  font-size: .875rem;
}
body:is([data-page="symptoms"],[data-page="care"],[data-page="news"]) .page-intro {
  padding-block: clamp(1.7rem, 3.7vw, 3.4rem);
  gap: clamp(1.4rem, 5vw, 5.25rem);
}
body:is([data-page="symptoms"],[data-page="care"],[data-page="news"]) .page-intro h1,
.consult-intro h1, .story-hero h1, .article-header h1 {
  color: var(--forest-deep);
  font-size: clamp(2.1rem, 4.3vw, 4.2rem);
  line-height: 1.06;
  letter-spacing: -.047em;
  font-weight: 650;
  text-wrap: balance;
}
body:is([data-page="symptoms"],[data-page="care"],[data-page="news"]) .page-intro p,
.consult-intro > p, .story-hero > div > p, .story-statement p, .story-path li p,
.news-card p, .news-card-lead p, .article-next p, .observation-note p,
.values-grid p, .care-phase-heading > p, .care-steps p, .care-watch li,
.assessment-intro, .form-intro {
  font-size: 1rem;
  line-height: 1.68;
}
body:is([data-page="news"],[data-page="article"],[data-page="symptoms"],[data-page="care"],[data-page="consult"],[data-page="story"]) .eyebrow {
  font-size: .75rem;
  letter-spacing: .09em;
}
body:is([data-page="symptoms"],[data-page="care"],[data-page="news"],[data-page="article"],[data-page="story"]) .closing-cta {
  border: 1px solid #cadbc9;
  border-radius: 1rem;
  background: var(--pale);
  color: var(--forest-deep);
}
body:is([data-page="symptoms"],[data-page="care"],[data-page="news"],[data-page="article"],[data-page="story"]) .closing-cta p { font-size: 1rem; }
body:is([data-page="symptoms"],[data-page="care"],[data-page="news"],[data-page="article"],[data-page="story"],[data-page="consult"]) .button {
  min-height: 2.875rem;
  font-size: .9375rem;
}
.intro-photo figcaption, .article-cover figcaption, .consult-photo figcaption, .story-path figcaption {
  color: var(--muted);
  font-size: .8125rem;
  line-height: 1.5;
}
.assessment-panel, .care-checklist-panel, .consult-form {
  border-color: #becfc0;
  border-radius: 1rem;
  box-shadow: 0 6px 24px rgb(29 65 38 / 5%);
}
.assessment-panel h2, .care-phase-heading h2, .consult-form h3 { color: var(--forest-deep); }
.assessment-side > p, .assessment-side-note, .care-toolbar p,
.assessment-photo, .assessment-error, .assessment-checks label {
  color: var(--muted);
  font-size: .9375rem;
  line-height: 1.6;
}
.assessment-step-count, .assessment-privacy, .assessment-fieldset legend > span,
.care-checklist-panel > small, .form-note, .summary-panel #copy-status {
  color: var(--muted);
  font-size: .8125rem;
  line-height: 1.55;
}
.assessment-fieldset legend, .assessment-field, .care-toolbar label, .consult-form label,
.assessment-progress b, .assessment-progress > li > span, .assessment-choice small,
.assessment-summary dt, .assessment-summary dd, .care-checklist-panel > p {
  font-size: .9375rem;
}
.assessment-progress b { color: #526155; }
.assessment-choice strong, .care-checks label { font-size: 1rem; line-height: 1.5; }
.assessment-checks input, .care-checks input { accent-color: var(--forest); }
.assessment-back, .assessment-secondary, .care-reset { min-height: 2.75rem; font-size: .875rem; }
.assessment-field :is(input,textarea,select), .care-toolbar select,
.consult-form :is(input,textarea), .news-tools > .search-box input {
  font-size: 1rem;
  min-height: 2.875rem;
}
.assessment-field :is(input,textarea,select), .care-toolbar select, .consult-form :is(input,textarea) {
  border-color: #99b09e;
  border-radius: .55rem;
}
.assessment-field :is(input,textarea,select):focus-visible, .care-toolbar select:focus-visible,
.consult-form :is(input,textarea):focus-visible {
  border-color: var(--forest);
  outline: 2px solid var(--forest);
  outline-offset: 2px;
}
.assessment-choice:has(input:focus-visible) {
  outline: 2px solid var(--forest);
  outline-offset: 3px;
}
.assessment-choice { min-height: 3.25rem; border-color: #bacbbd; }
.care-toolbar { background: var(--pale); border: 1px solid #d5e1d2; }
.phase-tabs button { font-size: .875rem; }
.care-watch .eyebrow { font-weight: 700; }
.care-checklist-panel > .text-link, .care-checklist-panel > .button { font-size: .9375rem; }
.care-checks { gap: .35rem; }
.care-checks label { min-height: 2.75rem; padding: .55rem 0; }
.consult-form > .button { background: var(--forest); color: white; border-color: var(--forest); }
.consult-form > .button:hover { background: var(--forest-deep); }
.consult-checklist > span, .consult-checklist b { font-size: .875rem; }
.news-landing .news-card-lead {
  padding: clamp(1rem, 2.6vw, 2.35rem);
  border: 1px solid var(--line);
  border-radius: 1.1rem;
  background: #f0f5ee;
}
.news-card-lead h3, .story-statement h2, .values-grid h3 { color: var(--forest-deep); }
.news-landing .news-card .text-link, .news-results-head > span,
.article-categories button, .article-toc a, .article-sources a {
  font-size: .9375rem;
}
.news-meta, .article-header .news-meta, .news-card-lead .news-meta, .article-dateline,
.article-cover figcaption { font-size: .8125rem; }
.article-categories button { min-height: 2.75rem; }
.article-header h1 { max-width: 24ch; }
.article-section :is(p, li) { font-size: clamp(1rem, 1.17vw, 1.125rem); line-height: 1.75; }
.article-section { scroll-margin-top: 5.5rem; }
.article-sources a { overflow-wrap: anywhere; }
.article-toc a { color: #344f3b; }
.article-toc a:hover { text-decoration: underline; text-underline-offset: .2em; }
.story-values { background: var(--pale); }
.story-brand-panel { border-color: #d0dfd1; background: #f1f6ef; }
.story-brand-panel img { mix-blend-mode: multiply; }

@media (max-width: 580px) {
  .assessment-panel, .care-checklist-panel, .consult-form { padding: 1.2rem 1rem; }
  .assessment-progress b { font-size: .8125rem; }
  .assessment-choice { padding: .7rem; }
  .assessment-progress small { font-size: .75rem; }
  .assessment-part-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .care-checks label { font-size: .9375rem; }
  .consult-form .form-row { grid-template-columns: 1fr; gap: 0; }
  .consult-checklist { gap: .65rem; }
  .phase-tabs button, .article-categories button { font-size: .875rem; }
  .article-toc a { display: flex; align-items: center; min-height: 2.75rem; }
  .article-toc { gap: .15rem; }
}
