:root {
  --maroon: #6a1030;
  --maroon-dark: #4e0b23;
  --orange: #e8631a;
  --blue: #1b97d4;
  --blue2: #0f6b97;
  --teal: #176b7c;
  --ink: #3a2530;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif; background: #fff; color: var(--ink); line-height: 1.5; }

/* header */
.topbar { display: flex; justify-content: flex-end; padding: 8px 24px; font-size: .8rem; }
.adverse { color: var(--maroon); text-decoration: none; }
.adverse::first-letter { color: var(--orange); }
header.site { display: flex; align-items: center; gap: 14px; padding: 8px 24px 14px; border-bottom: 1px solid #eee; }
header.site .gsk { height: 38px; width: auto; }
.site-note { font-size: .78rem; color: #666; line-height: 1.3; }
.site-note b { font-weight: 500; }

main { max-width: 900px; margin: 0 auto; padding: 0 16px 32px; }
.bexsero-logo { display: block; width: 300px; max-width: 70%; margin: 14px 0 0 -8px; mix-blend-mode: multiply; }

.banner { background: var(--orange); color: #fff; font-weight: 300; font-size: clamp(1.1rem, 3.4vw, 1.75rem); line-height: 1.35; padding: 18px 28px; border-radius: 14px; text-align: center; margin: 8px 0 28px; }

/* wheel */
.wheel-wrap { text-align: center; }
#wheel { width: 100%; max-width: 620px; height: auto; cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
#wheel.dragging { cursor: grabbing; }
.ring-bg { fill: var(--maroon); }
.seg { fill: var(--maroon); stroke: #fff; stroke-width: 1; cursor: pointer; transition: fill .15s; }
.seg:hover, .seg:focus { fill: #8d1b45; outline: none; }
.seg.dose1 { fill: var(--blue); }
.seg.dose2 { fill: var(--blue2); }
.seg.booster { fill: var(--orange); }
.seg-label { fill: #fff; font-size: 13px; font-weight: 600; text-anchor: middle; dominant-baseline: middle; pointer-events: none; }
.seg-sub { fill: #f0d6de; font-size: 6px; font-weight: 400; text-anchor: middle; pointer-events: none; }
.seg-label.small { font-size: 10px; }
.arrow { fill: none; stroke: var(--orange); stroke-width: 9; stroke-linecap: round; }
.mark { stroke: #fff; stroke-width: 2.5; }
.mark.dose1 { fill: var(--blue); } .mark.dose2 { fill: var(--blue2); } .mark.booster { fill: var(--orange); }
.mark-text { fill: #fff; font-size: 9.5px; font-weight: 700; text-anchor: middle; dominant-baseline: central; }
.mark-caption { font-size: 9.5px; font-weight: 600; text-anchor: middle; dominant-baseline: central; paint-order: stroke; stroke: #fff; stroke-width: 3px; stroke-linejoin: round; }
.mark-caption.dose1 { fill: var(--blue); } .mark-caption.dose2 { fill: var(--blue2); } .mark-caption.booster { fill: var(--orange); }
.legend { display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; font-size: .85rem; margin-top: 4px; }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; }
.legend .d1 { background: var(--blue); } .legend .d2 { background: var(--blue2); } .legend .bo { background: var(--orange); }
.hint { color: #888; font-size: .85rem; margin: 6px 0 0; }

/* interactive panel */
.panel { max-width: 640px; margin: 20px auto 8px; border: 1px solid #cfdde6; border-radius: 12px; padding: 16px; }
.controls { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.controls label { display: flex; flex-direction: column; font-size: .78rem; color: #777; flex: 1 1 150px; }
.controls select, .controls input { margin-top: 4px; padding: 8px; font: inherit; font-size: .95rem; border: 1px solid #cfdde6; border-radius: 8px; background: #fff; }
.result.empty { color: #999; text-align: center; padding: 10px 0; font-size: .9rem; }
.group-title { display: inline-block; background: var(--blue); color: #fff; padding: 3px 16px; border-radius: 99px; font-weight: 600; margin-bottom: 10px; }
.steps { list-style: none; padding: 0; margin: 0; }
.steps li { display: flex; gap: 12px; padding: 10px 12px; border-left: 4px solid var(--blue); background: #f2f9fd; border-radius: 0 10px 10px 0; margin-bottom: 8px; }
.steps li.second { border-left-color: var(--blue2); background: #eef5f9; }
.steps li.booster { border-left-color: var(--orange); background: #fff3ea; }
.steps li.none { border-left-color: #999; background: #f3f3f3; }
.steps .name { font-weight: 600; color: var(--maroon); }
.steps .detail { font-size: .85rem; }
.steps .date { font-weight: 600; color: var(--maroon-dark); font-size: .9rem; margin-top: 2px; }
.badge { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .85rem; }
.second .badge { background: var(--blue2); } .booster .badge { background: var(--orange); } .none .badge { background: #999; }
.warn { font-size: .8rem; color: #7a4a00; background: #fff6df; border-radius: 8px; padding: 8px 10px; margin-top: 8px; }

/* schedule table (as in PDF) */
.sched { margin-top: 28px; border: 1.5px solid #8fb4cc; border-radius: 4px; padding: 14px 10px 6px; display: grid; gap: 0; }
.sched-head, .sched-row { display: grid; grid-template-columns: 130px 1fr 1.1fr 2fr; gap: 10px; align-items: stretch; }
.h-cell { background: var(--orange); color: #fff; border-radius: 12px 12px 0 0; text-align: center; padding: 6px 4px; font-size: .78rem; font-weight: 500; display: grid; place-items: center; line-height: 1.25; }
.h-cell.booster { font-size: 1.1rem; }
.sched-row { padding: 14px 0; border-bottom: 1px solid transparent; transition: background .2s; }
.sched-row.active { background: #fff6ef; outline: 2px solid var(--orange); outline-offset: -2px; border-radius: 8px; }
.age { display: grid; place-items: center; }
.age span { background: var(--blue); color: #fff; font-weight: 600; font-size: .85rem; padding: 6px 12px; border-radius: 999px; box-shadow: 0 2px 0 #12648c; white-space: nowrap; }
.cell { display: flex; align-items: center; justify-content: center; text-align: center; color: var(--maroon); }
.cell .s { width: 28px; height: 52px; }
.cell.gap { gap: 8px; font-size: 1.15rem; }
.cell.gap .arr { font-size: 1.8rem; line-height: 1; color: var(--maroon); }
.cell.gap i { font-weight: 400; font-size: .95rem; }
.cell.gap b { font-weight: 600; }
.cell.boost { justify-content: flex-start; gap: 10px; text-align: left; }
.cell.boost p { margin: 0; font-size: .82rem; line-height: 1.35; }
.cell.nob { flex-direction: column; align-items: center; text-align: center; justify-content: center; }
.cell.nob h4 { margin: 0; font-size: 1.6rem; font-weight: 500; }
.cell.nob p { font-size: .78rem; }
.foot-note { text-align: center; font-weight: 600; font-size: .82rem; margin: 18px 0 30px; }
.foot-note span { }

/* SmPC text */
.smpc { font-size: .72rem; line-height: 1.5; color: #333; text-align: justify; }
.smpc p { margin: 0 0 6px; }
.smpc .pi { color: var(--maroon); }
.approval { text-align: center; font-size: .78rem; margin-top: 30px; }
.approval img { width: 130px; height: auto; }
.approval p { margin: 12px 0 0; }
.approval .ref { margin-top: 28px; }

/* footer */
.site-foot { background: #f4f4f4; padding: 32px 24px; margin-top: 20px; }
.foot-top { max-width: 900px; margin: 0 auto; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 20px; align-items: start; }
.foot-top h2 { grid-column: 1; margin: 0; font-family: "Playfair Display", serif; font-style: italic; font-weight: 400; font-size: 2rem; color: #555; }
.contact { grid-column: 1; justify-self: start; background: var(--teal); color: #fff; text-decoration: none; padding: 12px 40px; border-radius: 999px; font-weight: 600; }
.foot-top ul { grid-column: 2 / 4; grid-row: 1 / 3; list-style: none; margin: 0; padding: 0; font-size: .8rem; font-weight: 600; color: var(--teal); display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; }
.foot-small { max-width: 900px; margin: 28px auto 0; font-size: .72rem; color: #444; }

/* responsive */
@media (max-width: 720px) {
  .sched-head { display: none; }
  .sched-row { grid-template-columns: 1fr 1fr; gap: 8px; border-top: 1px solid #cfdde6; }
  .age { grid-column: 1 / 3; }
  .cell.boost { grid-column: 1 / 3; }
  .foot-top { grid-template-columns: 1fr; }
  .foot-top ul { grid-column: 1; grid-row: auto; }
}

/* fixed pointer + small boxes (as in the PDF) */
.pointer { fill: var(--blue); stroke: #fff; stroke-width: 2; stroke-linejoin: round; }
.ptr-label { fill: #fff; font-size: 8.5px; font-weight: 600; text-anchor: middle; }
.ptr-value { fill: #fff; font-size: 17px; font-weight: 700; text-anchor: middle; }
.sbox { fill: #fff; stroke-width: 2; }
.sbox.dose2 { stroke: var(--blue2); }
.sbox.booster { stroke: var(--orange); }
.sbox-label { font-size: 8px; font-weight: 600; text-anchor: middle; }
.sbox-label.dose2 { fill: var(--blue2); } .sbox-label.booster { fill: var(--orange); }
.sbox-value { font-size: 13px; font-weight: 700; text-anchor: middle; fill: var(--maroon); }
.sbox-value.none { font-size: 11px; fill: #888; }
.seg { transition: fill .25s; }

/* labelled pills that follow their segment */
.pill rect { stroke: #fff; stroke-width: 2.5; }
.pill.dose2 rect { fill: var(--blue2); }
.pill.booster rect { fill: var(--orange); }
.pill-text { fill: #fff; font-size: 9.5px; font-weight: 600; text-anchor: middle; dominant-baseline: central; }
