.infection-main {
  max-width: 940px;
  margin: auto;
  padding: 24px clamp(16px, 4vw, 40px) 60px;
  line-height: 1.8;
}
.infection-hero {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  align-items: center;
  gap: 24px;
  margin: 20px 0;
  padding: clamp(20px, 4vw, 36px);
  border-radius: 22px;
  background: #eef5ed;
}
.infection-hero h1 { color: #38584b; margin: .2em 0; overflow-wrap: anywhere; }
.infection-figure {
  --mascot: #ffc28e;
  margin: 0;
  padding: 12px;
  border-radius: 18px;
  background: #fffbf3;
  text-align: center;
  color: #38584b;
}
.infection-figure.mint { --mascot: #b9d6bc; }
.infection-figure.rose { --mascot: #f3b6b4; }
.infection-figure.lilac { --mascot: #d6c6e9; }
.infection-figure.sky { --mascot: #b4d7e4; }
.infection-art {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 150px;
}
.infection-mascot {
  position: relative;
  display: block;
  width: clamp(68px, 12vw, 120px);
  aspect-ratio: 1;
  border-radius: 48% 48% 44% 44%;
  border: 3px solid #758b91;
  background: radial-gradient(circle at 24% 63%, #e58d8866 0 7%, transparent 8%),
              radial-gradient(circle at 76% 63%, #e58d8866 0 7%, transparent 8%),
              var(--mascot);
}
.infection-mascot::before, .infection-mascot::after {
  content: "";
  position: absolute;
  top: 40%;
  width: 12%;
  height: 9%;
  border-bottom: 3px solid #536f76;
  border-radius: 50%;
}
.infection-mascot::before { left: 28%; }
.infection-mascot::after { right: 28%; }
.infection-mouth {
  position: absolute;
  left: 44%;
  top: 62%;
  width: 12%;
  height: 10%;
  border-radius: 50%;
  background: #795e60;
}
.infection-symbol { font-size: clamp(20px, 3vw, 34px); }
.infection-symbol.left { transform: translateY(12px) rotate(-12deg); }
.infection-symbol.right { transform: translateY(-26px) rotate(12deg); }
.infection-figure figcaption { font-weight: 700; }
.infection-return {
  background: #f3f4e9;
  border-radius: 18px;
  padding: 18px 24px;
}
.infection-return dt { font-weight: 700; }
.infection-return dd { margin: 0 0 12px; }
@media (max-width: 640px) {
  .infection-hero { grid-template-columns: 1fr; }
}

/* Infection character educational text */
.infection-pathogen { border: 1px solid #dce7dd; background: #fbfcf8; border-radius: 18px; padding: 16px 22px; margin: 24px 0; }
.infection-pathogen h2 { margin-top: 0; }
.infection-pathogen p { margin: .5em 0; }
.infection-figure.character-figure { background: #f8faf6; padding: 12px; }
.infection-figure.character-figure img { width: 100%; max-width: 320px; height: auto; aspect-ratio: 1; object-fit: contain; display: block; margin: auto; }
.infection-figure.character-figure figcaption { font-weight: 600; font-size: .92rem; line-height: 1.5; margin-top: 6px; }

/* Reusable date calendar for each infection detail page */
.infection-calendar { border:1px solid #cfdfd3; background:#f9fcf8; border-radius:20px; padding:clamp(14px,3vw,24px); margin:24px 0; }
.infection-calendar h3 { color:#38584b; margin:0 0 10px; font-size:1.15rem; }
.infection-calendar-fields { display:flex; flex-wrap:wrap; gap:14px; margin:14px 0; }
.infection-calendar-fields label { display:flex; flex-direction:column; gap:5px; flex:1 1 175px; font-weight:600; font-size:.95rem; }
.infection-calendar-fields input,.infection-calendar-fields select { border:1px solid #a7b9ab; border-radius:10px; background:white; font:inherit; padding:8px; width:100%; max-width:100%; color:#253c31; }
.infection-calendar-result { background:#edf5e8; padding:12px; border-radius:12px; font-weight:700; }
.infection-calendar-nav { display:flex; align-items:center; justify-content:space-between; margin:14px 0 8px; gap:10px; }
.infection-calendar-nav button { background:#fff; border:1px solid #aac2ad; border-radius:10px; color:#345646; font:inherit; padding:6px 10px; cursor:pointer; }
.infection-calendar-grid { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); gap:4px; }
.infection-calendar-dayname { text-align:center; font-weight:700; font-size:.9rem; }
.infection-calendar-day { display:flex; align-items:center; justify-content:center; min-height:38px; padding:4px; border-radius:9px; background:#fff; border:1px solid #e0e8df; font-variant-numeric:tabular-nums; }
.infection-calendar-day.is-start { background:#d9e7f6; border-color:#7d9bb7; }
.infection-calendar-day.is-wait { background:#fff1d8; border-color:#e7cd95; }
.infection-calendar-day.is-earliest { background:#d3ead6; border:2px solid #528665; font-weight:800; }
.infection-calendar-day.is-today { box-shadow:inset 0 0 0 2px #75828b; }
.infection-calendar-legend,.infection-calendar-note { font-size:.9rem; line-height:1.7; }
@media(max-width:480px){.infection-calendar-day{min-height:34px;font-size:.9rem}.infection-calendar-grid{gap:3px}}

/* Infection detail cards: shared with all sixteen pages */
.infection-main > section:not(.infection-calendar),
.flu-main > section:not(.infection-calendar) {
  background: #fff;
  border: 1px solid #dce8df;
  border-radius: 20px;
  padding: clamp(18px,3.2vw,28px);
  margin: 22px 0;
  box-shadow: 0 4px 15px rgba(41,81,61,.045);
}
.infection-main > section:not(.infection-calendar) > h2,
.flu-main > section:not(.infection-calendar) > h2 {
  color: #375a4b; margin: 0 0 .7em;
  font-size: clamp(1.15rem,2.8vw,1.42rem);
}
.infection-main > section.infection-return,
.flu-main > section.flu-return { background: #f4f7ed; }
.infection-main > section.infection-pathogen,
.flu-main > section.infection-pathogen { background: #f7fbf7; }
.infection-main > section.infection-spread,
.flu-main > section.infection-spread { background: #fffdf9; }
.infection-route-buttons { display:flex; flex-wrap:wrap; gap:8px; margin:10px 0 16px; }
.infection-route-button {
  appearance:none; border:1px solid #a9ccc4; border-radius:999px;
  padding:8px 15px; font:inherit; font-size:.94rem; font-weight:700;
  background:#e6f4ee; color:#285d54; cursor:pointer;
  transition:background .15s,box-shadow .15s;
}
.infection-route-button:hover { background:#d6ede4; }
.infection-route-button:focus-visible { outline:3px solid #638db3; outline-offset:3px; }
.infection-route-button[aria-pressed="true"] { border-color:#357b71; background:#cbe7dc; box-shadow:inset 0 0 0 1px #357b71; }
.infection-route-explainer { border:1px solid #d7e3da; border-radius:12px; background:#fafcfb; padding:10px 14px; margin:10px 0 16px; }
.infection-route-explainer summary { cursor:pointer; color:#365f54; font-weight:700; }
.infection-route-explainer dl { margin:14px 0 0; }
.infection-route-explainer dl > div { padding:8px 0; border-top:1px solid #e3e9e5; }
.infection-route-explainer dt { font-weight:700; color:#28594f; }
.infection-route-explainer dd { margin:3px 0 0; }
.infection-route-explainer dl > div.is-selected { background:#eef7f2; border-radius:8px; padding:8px; }
.infection-cleaning-steps { padding-left:1.5em; }
.infection-cleaning-steps li { padding:5px 0 5px 4px; }
.infection-cleaning-table { width:100%; border-collapse:collapse; margin:15px 0; }
.infection-cleaning-table th,.infection-cleaning-table td { border:1px solid #d8e5dd; padding:9px; text-align:left; vertical-align:top; }
.infection-cleaning-table th { background:#edf5ee; }
.infection-cleaning-note { border-left:4px solid #bf855d; background:#fff8ef; padding:12px 14px; border-radius:0 10px 10px 0; }
@media(max-width:600px){
  .infection-cleaning-table { font-size:.88rem; }
  .infection-cleaning-table th,.infection-cleaning-table td { padding:7px 5px; }
  .infection-route-button { font-size:.88rem; }
}

/* Readability: clearly separate readable text, actionable links, and controls. */
body.theme-kids-youth .infection-main,
body.theme-kids-youth .flu-main {
  --detail-text: #282d30;
  --detail-muted: #53616a;
  --detail-heading: #273e44;
  --detail-link: #075d91;
  color: var(--detail-text);
  line-height: 1.85;
  font-size: 1.04rem;
}
body.theme-kids-youth .infection-main p,
body.theme-kids-youth .flu-main p,
body.theme-kids-youth .infection-main li,
body.theme-kids-youth .flu-main li,
body.theme-kids-youth .infection-main dd,
body.theme-kids-youth .flu-main dd {
  color: var(--detail-text);
  line-height: 1.85;
}
body.theme-kids-youth .infection-main a:not(.brand),
body.theme-kids-youth .flu-main a:not(.brand) {
  color: var(--detail-link);
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: .2em;
  font-weight: 600;
}
body.theme-kids-youth .infection-main a:hover,
body.theme-kids-youth .flu-main a:hover { color:#08426b; background:#e8f3fb; }
body.theme-kids-youth .infection-main a:focus-visible,
body.theme-kids-youth .flu-main a:focus-visible { outline:3px solid #347ca4; outline-offset:3px; }
body.theme-kids-youth .infection-main .breadcrumb,
body.theme-kids-youth .flu-main .breadcrumb { font-size:.9rem; color:var(--detail-muted); margin-bottom:14px; }
body.theme-kids-youth .infection-hero,
body.theme-kids-youth .flu-hero {
  background:#f0f5ef;
  border:1px solid #d7e4d9;
  box-shadow:none;
  padding:clamp(20px,4vw,32px);
  margin:12px 0 26px;
}
body.theme-kids-youth .infection-hero h1,
body.theme-kids-youth .flu-hero h1 {
  color:var(--detail-heading);
  font-size:clamp(1.55rem,3.8vw,2.15rem);
  line-height:1.4;
  margin:0 0 12px;
}
body.theme-kids-youth .infection-hero p,
body.theme-kids-youth .flu-hero p { margin:0 0 12px; }
body.theme-kids-youth .infection-main > section:not(.infection-calendar),
body.theme-kids-youth .flu-main > section:not(.infection-calendar) {
  background:#fff;
  border:1px solid #dde3df;
  border-radius:16px;
  box-shadow:none;
  margin:18px 0;
  padding:clamp(18px,3.5vw,30px);
}
body.theme-kids-youth .infection-main > section:not(.infection-calendar) > h2,
body.theme-kids-youth .flu-main > section:not(.infection-calendar) > h2 {
  color:var(--detail-heading);
  line-height:1.45;
  font-size:clamp(1.24rem,2.8vw,1.48rem);
  font-weight:800;
  letter-spacing:0;
  border-left:5px solid #86a89c;
  padding-left:13px;
  margin:0 0 16px;
}
body.theme-kids-youth .infection-main > section.infection-return,
body.theme-kids-youth .flu-main > section.flu-return {
  background:#f8faf6;
  border-color:#cdddcf;
}
body.theme-kids-youth .infection-main > section.infection-pathogen,
body.theme-kids-youth .flu-main > section.infection-pathogen,
body.theme-kids-youth .infection-main > section.infection-spread,
body.theme-kids-youth .flu-main > section.infection-spread {
  background:#fff;
}
body.theme-kids-youth .infection-main section > p:last-child,
body.theme-kids-youth .flu-main section > p:last-child { margin-bottom:0; }
body.theme-kids-youth .infection-main strong,
body.theme-kids-youth .flu-main strong { color:#26363b; }
body.theme-kids-youth .infection-main .infection-return dt,
body.theme-kids-youth .flu-main .infection-return dt { color:#2b4245; font-size:1.02rem; }
body.theme-kids-youth .infection-route-buttons { margin:0 0 15px; }
body.theme-kids-youth .infection-route-button {
  background:#eaf2f1;
  border-color:#8baea9;
  color:#244d50;
  font-weight:700;
  text-decoration:none;
}
body.theme-kids-youth .infection-route-button[aria-pressed="true"] {
  background:#d8eae6; color:#153e42;
}
body.theme-kids-youth .infection-route-explainer { background:#f7fafb; border-color:#d8e4e7; }
body.theme-kids-youth .infection-route-explainer summary { color:#274e62; }
body.theme-kids-youth .infection-route-explainer dt { color:#243b47; }
body.theme-kids-youth .infection-calendar {
  background:#f9fbfc;
  border:1px solid #d7e0e5;
  border-radius:16px;
  padding:clamp(18px,3.5vw,28px);
  box-shadow:none;
  margin:18px 0;
}
body.theme-kids-youth .infection-calendar h3 {
  color:var(--detail-heading);
  font-size:clamp(1.24rem,2.8vw,1.48rem);
  border-left:5px solid #86a89c;
  padding-left:13px;
  line-height:1.45;
}
body.theme-kids-youth .infection-calendar .infection-calendar-note,
body.theme-kids-youth .infection-calendar .infection-calendar-legend {
  color:var(--detail-muted);
  font-size:.91rem;
}
body.theme-kids-youth .infection-calendar .infection-calendar-result { color:#254236; }
body.theme-kids-youth .infection-jump {
  display:inline-flex; align-items:center;
  gap:7px;
  padding:9px 15px;
  background:#fff;
  border:1px solid #9bb5c3;
  border-radius:9px;
  font-size:.92rem;
  margin-top:4px;
}
body.theme-kids-youth .infection-main a.infection-jump,
body.theme-kids-youth .flu-main a.infection-jump {
  text-decoration:none; color:#19577c;
  font-weight:700;
}
body.theme-kids-youth .infection-main .infection-references,
body.theme-kids-youth .flu-main .infection-references {
  background:#fbfbfb !important;
  border-color:#e4e4e4 !important;
}
body.theme-kids-youth .infection-references li { margin:7px 0; font-size:.94rem; }
body.theme-kids-youth .infection-references h2 { font-size:1.18rem !important; }
body.theme-kids-youth .infection-main .infection-medication-link,
body.theme-kids-youth .flu-main .infection-medication-link { background:#fbfbfb; }
body.theme-kids-youth .infection-main .infection-medication-link p,
body.theme-kids-youth .flu-main .infection-medication-link p { font-size:.94rem; }
@media(max-width:640px){
  body.theme-kids-youth .infection-main,body.theme-kids-youth .flu-main {font-size:1rem;line-height:1.8;}
  body.theme-kids-youth .infection-hero,body.theme-kids-youth .flu-hero {gap:12px;}
  body.theme-kids-youth .infection-main > section:not(.infection-calendar),
  body.theme-kids-youth .flu-main > section:not(.infection-calendar) {margin:14px 0;}
}
