.library-hero {background:var(--wash);padding:40px 0 56px}
.library-hero h1 {font-size:clamp(2.5rem,5.4vw,4.4rem)}
.library-intro {display:grid;grid-template-columns:1.75fr 1fr;gap:40px;align-items:end}
.library-search label {display:block;font-weight:600;margin-bottom:8px}
.library-search input {width:100%;padding:13px 15px;border:1px solid var(--teal);border-radius:8px;font:inherit;color:var(--ink);background:white}
.library-search input:focus-visible {outline:3px solid #b65b00;outline-offset:3px}
section.library {padding-top:32px}
.topic-filters {display:flex;flex-wrap:wrap;gap:8px}
.topic-filters button {background:white;color:var(--ink);border:1px solid var(--line);border-radius:30px;padding:8px 15px;min-height:44px;font-size:14px}
.topic-filters button[aria-pressed=true] {background:var(--ink);color:white;border-color:var(--ink)}
.result-count {color:var(--muted);font-size:14px;margin:18px 0}
.guide-grid {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.guide {border:1px solid var(--line);border-radius:20px;padding:24px}
.guide h2 {font-size:24px}
.guide p:not(.eyebrow) {margin:12px 0;color:var(--muted)}
.guide .eyebrow {margin-bottom:10px}
.guide-meta {font-size:14px;color:var(--teal);font-weight:600}
.featured-guide {grid-column:1/-1;background:var(--aqua);display:grid;grid-template-columns:1.65fr 1fr;gap:24px;align-items:center;padding:32px}
.featured-guide h2 {font-size:clamp(2rem,4vw,3rem)}
.featured-guide .btn {margin-top:8px}
.guide-contents {background:var(--gold);border-radius:14px;padding:22px}
.guide-contents ul {margin:12px 0 0;padding-left:22px;font-size:15px}
.guide[hidden] {display:none}
.guide-byline {display:flex;gap:10px 18px;flex-wrap:wrap;margin-top:22px;color:var(--muted);font-size:14px}
.guide-byline strong {color:var(--teal)}
.symptom-layout {display:grid;grid-template-columns:190px minmax(0,700px);gap:clamp(24px,6vw,84px);padding-top:34px;padding-bottom:72px}
.symptom-index {align-self:start;position:sticky;top:24px;border-left:3px solid var(--aqua);padding-left:16px}
.symptom-index h2 {font-size:17px;margin-bottom:10px}
.symptom-index a,.guide-related a {display:block;padding:5px 0;color:var(--teal);font-size:15px}
.symptom-body h2 {font-size:clamp(1.45rem,3vw,2rem);margin-bottom:12px}
.symptom-body p+p {margin-top:12px}
.symptom-body .btn {margin-top:16px}
.symptom-section,.guide-related {margin-top:32px}
.symptom-section,.urgent-callout {scroll-margin-top:24px}
.urgent-callout {background:#fff0eb;border-left:4px solid #a8422b;border-radius:0 12px 12px 0;padding:20px 22px}
.urgent-callout h2 {color:#78311f;font-size:clamp(1.25rem,2.4vw,1.6rem)}
.guide-related {background:var(--wash);border-radius:16px;padding:20px}
body.article-reading .mobile-book {display:none}
@media(max-width:850px) {.guide-grid {grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:650px) {
  .library-hero {padding:26px 0 30px}
  .library-intro,.guide-grid,.featured-guide,.symptom-layout {grid-template-columns:1fr}
  .library-intro,.symptom-layout {gap:24px}
  .guide,.featured-guide {padding:20px}
  .symptom-body {display:contents}
  .symptom-layout > .symptom-index {position:static;order:1}
  .symptom-body > .symptom-section,.symptom-body > .guide-related {order:2;margin-top:8px}
  .symptom-layout {padding-top:20px;padding-bottom:36px}
  .symptom-index a {display:inline-block;margin-right:12px}
}

.reading-crosslink {margin-top:30px;color:var(--muted)}
.reading-crosslink a {color:var(--teal);font-weight:600}
@media(min-width:651px) and (max-width:785px) {
  .nav {height:95px;position:relative}
  .nav>.btn {display:none}
  .menu {display:block}
  .links {display:none;position:absolute;top:95px;left:0;right:0;background:white;z-index:5;padding:20px;box-shadow:0 15px 20px #01394618;flex-direction:column;align-items:stretch}
  .links.open {display:flex}
  .links a {font-size:16px;padding:8px}
}

/* Editorial layouts shared by the symptom library and parent articles. */
.library-hero h1 {
  font-size:clamp(2rem,4vw,3.35rem);
  font-weight:500;
  letter-spacing:-.045em;
  line-height:1.15;
}
.library-hero .lead {font-size:clamp(1rem,1.7vw,1.125rem);margin-top:14px}
.library-hero .crumb {margin-bottom:20px}
.guide-grid .guide {padding:0;overflow:hidden}
.editorial-card {display:flex;flex-direction:column;height:100%;text-decoration:none;color:var(--ink)}
.editorial-image {display:block;width:100%;aspect-ratio:16/10;object-fit:cover;background:var(--cream)}
.editorial-image[src$="doctors-editorial.jpg"] {object-position:center 25%}
.editorial-card-copy {padding:20px 22px 22px}
.guide .editorial-topic {margin:0 0 6px;font-size:13px;font-weight:600;color:var(--teal)}
.editorial-card h2 {font-size:clamp(1.2rem,2.1vw,1.5rem);font-weight:500;letter-spacing:-.025em;line-height:1.28}
.guide .editorial-card-copy>p:not(.editorial-topic) {font-size:15px;margin:9px 0 0}
a.editorial-card:hover {background:var(--cream)}
a.editorial-card:hover h2 {color:var(--teal);text-decoration:underline;text-decoration-thickness:1px}
a.editorial-card:focus-visible {outline-offset:-4px}
.guide-meta {display:inline-block;margin-top:12px}
.family-grid {grid-template-columns:repeat(4,minmax(0,1fr))}
.symptom-layout {
  grid-template-areas:"urgent urgent" "index body";
  grid-template-columns:205px minmax(0,680px);
  justify-content:center;
  gap:24px clamp(28px,5vw,68px);
}
.symptom-index {grid-area:index;padding:14px 15px;background:var(--cream);border:0;border-radius:12px}
.symptom-index h2 {font-weight:600;margin-bottom:8px}
.symptom-index a,.guide-related a {text-decoration:none}
.symptom-index a:hover,.guide-related a:hover {text-decoration:underline}
.symptom-body {grid-area:body}
.urgent-callout {grid-area:urgent;max-width:none;padding:17px 20px}
.urgent-callout h2 {font-size:clamp(1.05rem,2.2vw,1.4rem);font-weight:600;margin-bottom:6px;letter-spacing:-.02em}
.urgent-callout p {max-width:85ch}
.symptom-body .symptom-section:first-child {margin-top:0}
.symptom-body h2,.post-reading h2 {font-size:clamp(1.25rem,2.5vw,1.65rem);font-weight:500;letter-spacing:-.025em}
.symptom-body p,.post-reading p {line-height:1.75}
.reading-photo {margin:24px 0 0}
.reading-photo img {width:100%;height:auto;max-height:340px;object-fit:cover;border-radius:15px;display:block}
.reading-list {padding-left:22px;margin:12px 0 0}
.reading-list li+li {margin-top:6px}
.reading-sources {border-top:1px solid var(--line);padding-block:12px}
.reading-sources summary {margin-left:18px}
.post-hero {display:grid;grid-template-columns:1fr 1fr;gap:clamp(24px,5vw,64px);align-items:center}
.post-hero>.editorial-image {border-radius:18px;aspect-ratio:16/10}
.post-reading {max-width:765px;padding-top:34px;padding-bottom:64px}
.post-reading section+section {margin-top:28px}
.post-reading section h2 {margin-bottom:9px}
@media (max-width:950px) {.family-grid {grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:650px) {
  .guide-grid,.family-grid,.post-hero {grid-template-columns:1fr}
  .symptom-layout {grid-template-areas:"urgent" "index" "body";grid-template-columns:minmax(0,1fr);gap:18px}
  .symptom-body {display:block}
  .symptom-layout>.symptom-index {order:initial}
  .symptom-body>.symptom-section,.symptom-body>.guide-related {order:initial;margin-top:24px}
  .symptom-index a {display:inline-block;padding:7px 2px}
  .post-reading {padding-top:25px;padding-bottom:36px}
  body.article-reading .footer {padding-bottom:40px}
}
