:root{
  --bg:#d9e8f8;                 /* bluer overall background */
  --card:#fffbe8;               /* pale parchment yellow */
  --text:#0f1720;
  --muted:#4b5563;
  --line:#d6d9c8;               /* warm border to match yellow */
  --accent:#1e4f7a;             /* steel blue */
  --accent-soft:#e6f0f7;        /* very light blue */
  --link:#1e4f7a;
  --shadow: 0 1px 0 rgba(15,23,32,0.04), 0 6px 18px rgba(15,23,32,0.06);
}

*{ box-sizing:border-box; }
html,body{ height:100%; }

body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color:var(--text);
  background:
    radial-gradient(1200px 550px at 50% -220px, rgba(30,79,122,0.22), transparent 62%),
    radial-gradient(900px 450px at 15% 15%, rgba(30,79,122,0.12), transparent 60%),
    var(--bg);
  line-height:1.55;
}

a{ color:var(--link); text-decoration:none; }
a:hover{ text-decoration:underline; }

.wrap{
  max-width: 980px;
  margin: 0 auto;
  padding: 0 16px;
}

.skip-link{
  position:absolute;
  left:-999px;
  top:auto;
  width:1px;
  height:1px;
  overflow:hidden;
}
.skip-link:focus{
  left:16px; top:16px;
  width:auto; height:auto;
  padding:10px 12px;
  background:#fff;
  border:1px solid var(--line);
  border-radius:10px;
}

.site-header{
  background: rgba(255,255,255,0.94);
  border-bottom:1px solid var(--line);
}

.brand{ padding: 14px 0 8px; }
.brand__name{ font-size: 22px; font-weight: 800; letter-spacing: 0.2px; }
.brand__tagline{ margin-top:4px; color:var(--muted); font-size: 14px; }

.nav{
  display:flex;
  flex-wrap:wrap;
  gap:10px 14px;
  padding: 10px 0 14px;
  border-top:1px solid var(--line);
}
.nav a{
  display:inline-block;
  padding:6px 10px;
  border-radius:10px;
}
.nav a:hover{ background: var(--accent-soft); }
.nav a[aria-current="page"]{ background: var(--accent-soft); font-weight: 700; }

main.wrap{ padding-top: 18px; padding-bottom: 36px; }

.panel{
  background:var(--card);
  border:1px solid var(--line);
  border-radius:14px;
  padding:16px;
  margin-top: 14px;
  box-shadow: var(--shadow);
}

h1{ margin:0 0 10px; font-size: 22px; }
h2{ margin:0 0 8px; font-size: 18px; color: var(--accent); }
h3{ margin:0 0 6px; font-size: 16px; }

.lede{ font-size: 16px; margin-top: 8px; }

.example{
  padding:10px 12px;
  background:#f5f0d6;
  border:1px solid #e1d9a8;
  border-radius:12px;
}

.muted{ color:var(--muted); }

.grid{
  display:grid;
  grid-template-columns: 1.4fr 1fr;
  gap:14px;
}
@media (max-width: 760px){
  .grid{ grid-template-columns: 1fr; }
}

.links, .bullets{
  margin:10px 0 0;
  padding-left: 18px;
}
.links li, .bullets li{ margin: 6px 0; }

figure{ margin: 10px 0 0; }
img{
  max-width:100%;
  height:auto;
  width:auto;
  border:1px solid var(--line);
  border-radius:12px;
  background:#fff;
}
figcaption{ margin-top:10px; color:var(--muted); font-size: 14px; }

.cards{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:12px;
  margin-top: 10px;
}
@media (max-width: 760px){
  .cards{ grid-template-columns: 1fr; }
}
.card{
  border:1px solid var(--line);
  border-radius:14px;
  padding:14px;
  background:#fffef3;
}

/* hub/link cards: match the darker "button" look used on the Symptoms hub */
.cards > a.card,
.grid > a.card{
  display:block;
  padding:12px 12px;
  border:1px solid #c8d7e6;
  border-radius:12px;
  background: rgba(30,79,122,0.10);
  color: var(--accent);
  text-decoration:none;
  font-weight:700;
}
.cards > a.card:hover,
.grid > a.card:hover{ background: rgba(30,79,122,0.14); }

.cards > a.card span{
  color: var(--text);
  font-weight:500;
}

.card strong{display:inline-block; margin-right:6px;}
.card span{display:inline;}

.site-footer{
  margin-top: 18px;
  color:var(--muted);
  font-size: 14px;
  text-align:center;
}
.fineprint{ margin-top: 6px; font-size: 12px; }

/* symptoms chooser table */
.sr-only{
  position:absolute!important;
  width:1px;height:1px;
  padding:0;margin:-1px;
  overflow:hidden;clip:rect(0,0,0,0);
  white-space:nowrap;border:0;
}
.symptom-chooser{ margin-top:14px; }
.chooser-grid{
  display:grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap:12px;
}
@media (max-width: 760px){
  .chooser-grid{ grid-template-columns: 1fr; }
}
.chooser-left{ display:grid; gap:10px; }
.chooser-chip{
  display:block;
  padding:12px 12px;
  border:1px solid #c8d7e6;
  border-radius:12px;
  background: rgba(30,79,122,0.10);
  color: var(--accent);
  text-decoration:none;
  font-weight:700;
}
.chooser-chip em{ font-style: italic; font-weight:800; }
.chooser-chip:hover{ background: rgba(30,79,122,0.14); }

.chooser-col{ display:grid; gap:10px; }
.chooser-link{
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  padding:12px 10px;
  border:1px solid #c8d7e6;
  border-radius:12px;
  background: rgba(30,79,122,0.10);
  color: var(--accent);
  text-decoration:none;
  font-weight:800;
}
.chooser-link:hover{ background: rgba(30,79,122,0.14); }

/* simple breadcrumb */
.breadcrumb{
  margin-top: 10px;
  font-size: 14px;
  color: var(--muted);
}
.breadcrumb a{ color: var(--accent); }


/* media images inside content */
.media{ display:block; margin:10px 0; }
