* { box-sizing: border-box; }
html { scroll-padding-top: 2rem; }
body { margin: 0; }
button, input { font: inherit; }
a { min-height: 44px; }
.guide-mast, main, .guide-footer { width: min(100% - 5rem, 1240px); margin-inline: auto; }
.guide-mast { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding-block: 1.5rem; }
.guide-mast a { display: inline-flex; align-items: center; padding-block: .5rem; }
.guide-opening { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 5rem; align-items: center; padding-block: 4rem 6rem; }
.opening-words { min-width: 0; }
.guide-kicker { margin: 0 0 1.4rem; }
h1 { margin: 0 0 1.8rem; }
.opening-words > p { max-width: 35rem; }
.opening-answer { margin-bottom: 1rem; }
.plain-switch { display: inline-flex; gap: .85rem; align-items: center; min-height: 52px; margin-top: 1.1rem; cursor: pointer; }
.plain-switch input { flex: 0 0 52px; width: 52px; height: 44px; margin: 0; position: relative; cursor: pointer; }
.reading-map { position: relative; min-width: 0; min-height: 520px; }
.reading-ring { position: absolute; width: 340px; height: 340px; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.map-centre { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); margin: 0; width: 12rem; padding: 1.1rem; text-align: center; }
.reading-map a { position: absolute; display: flex; flex-direction: column; gap: .2rem; width: 15rem; padding: .85rem 1.1rem; }
.medicine-route { top: 0; left: 10%; }
.care-route { right: 0; top: 64%; }
.cost-route { bottom: 0; left: 0; }
.guide-path { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 5rem; align-items: start; padding-block: 1rem 5rem; }
.contents-rail { position: sticky; top: 1.5rem; min-width: 0; }
.contents-rail summary { min-height: 48px; padding: .65rem .75rem; cursor: pointer; }
.reading-topics section { padding-top: 1.2rem; }
.reading-topics .topic-group { margin: 0 0 .5rem; padding-left: .75rem; }
.reading-topics ul { list-style: none; margin: 0; padding: 0; }
.reading-topics a { display: flex; align-items: center; padding: .6rem .75rem; }
.continuous-reading { min-width: 0; max-width: 48rem; }
.continuous-reading .guide-topic { margin: 0 0 4.5rem; padding-top: 2rem; scroll-margin-top: 1rem; }
.topic-heading { margin-bottom: 1.75rem; }
.topic-label { margin: 0 0 .8rem; }
h2, h3, h4 { margin-top: 0; }
.topic-heading h3 { margin-bottom: 0; }
h4 { margin-bottom: .65rem; }
p { margin: 0 0 1.1rem; }
.continuous-reading p { max-width: 38rem; }
.medicine-names { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-block: 1.75rem; }
.medicine-names > section { padding: 1.3rem; }
.medicine-names p:last-child { margin-bottom: 0; }
.conversation, .word-note, .attention-note, .urgent-note { margin-block: 1.75rem; padding: 1.6rem 1.75rem; }
.conversation p:last-child, .word-note p:last-child, .attention-note p:last-child, .urgent-note p:last-child { margin-bottom: 0; }
.care-steps > section, .health-notes > section { padding-block: 1rem; }
.care-steps > section + section, .health-notes > section + section { margin-top: .6rem; padding-top: 1.8rem; }
.source-link { display: flex; align-items: center; width: fit-content; max-width: 100%; padding: .65rem 0; margin-bottom: 1rem; }
.product-checks, .visit-questions { list-style: none; padding: 0; margin: 1.75rem 0; }
.visit-questions { max-width: 40rem; }
.product-checks li { padding-block: 1.2rem; }
.product-checks p:last-child { margin-bottom: 0; }
.cost-notes { margin-block: 1.75rem; }
.cost-notes > section { padding: 1.3rem 1.5rem; }
.cost-notes > section + section { margin-top: .6rem; }
.cost-notes p:last-child { margin-bottom: 0; }
.visit-questions li { position: relative; padding: 1.2rem 0 1.2rem 2.25rem; }
.visit-questions li::before { position: absolute; left: .1rem; top: 1.45rem; width: .8rem; height: .8rem; content: ''; }
.annotated-reading { list-style: none; margin: 1.75rem 0 0; padding: 0; }
.annotated-reading li { padding: 1.5rem 0; }
.annotated-reading .source-link { margin-bottom: .45rem; padding-block: .5rem; }
.reading-title { margin: 0; }
.reading-purpose { margin-bottom: .3rem; }
.annotated-reading p:last-child { margin-bottom: 0; }
.guide-footer { padding-block: 2rem 3rem; display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 3rem; }
.guide-footer p { max-width: 38rem; margin: 0; }
.guide-footer nav { display: flex; flex-direction: column; align-items: start; }
.guide-footer a { display: flex; align-items: center; padding-block: .65rem; }
[hidden] { display: none !important; }
body:has(#plain-language:not(:checked)) [data-plain-note] { display: none; }
@media (max-width: 1050px) {
  .guide-opening { gap: 2.5rem; }
  .reading-ring { width: 285px; height: 285px; }
  .reading-map a { width: 13rem; }
  .medicine-route { left: 0; }
  .guide-path { grid-template-columns: 210px minmax(0, 1fr); gap: 2.5rem; }
}
@media (max-width: 760px) {
  .guide-mast, main, .guide-footer { width: min(100% - 2.5rem, 44rem); }
  .guide-mast { gap: .5rem; padding-block: 1rem; flex-wrap: wrap; }
  .guide-opening { grid-template-columns: minmax(0, 1fr); gap: 2rem; padding-block: 2.5rem 3.5rem; }
  .opening-words > p { max-width: 36rem; }
  .reading-map { display: grid; grid-template-columns: minmax(0, 1fr); gap: .75rem; padding-top: 265px; min-height: 0; width: min(100%, 420px); margin-inline: auto; }
  .reading-ring { width: 245px; height: 245px; top: 0; transform: translateX(-50%); }
  .reading-map a { position: relative; inset: auto; width: 100%; padding: .8rem 1rem; }
  .map-centre { width: 10rem; top: 122.5px; }
  .guide-path { grid-template-columns: minmax(0, 1fr); gap: 1rem; padding-block: 0 1rem; }
  .contents-rail { position: static; padding: .5rem; }
  .reading-topics { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem 1rem; padding-bottom: .7rem; }
  .reading-topics .decide-topics { grid-column: 1 / -1; }
  .decide-topics ul { display: grid; grid-template-columns: 1fr 1fr; }
  .continuous-reading .guide-topic { margin-bottom: 2.6rem; padding-top: 2.2rem; }
  .medicine-names { grid-template-columns: minmax(0, 1fr); gap: .8rem; }
  .conversation, .word-note, .attention-note, .urgent-note { padding: 1.3rem; }
  .cost-notes > section { padding: 1.2rem; }
  .guide-footer { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
  .guide-footer nav { align-items: stretch; }
}
@media print {
  .guide-mast, .reading-map, .contents-rail, .plain-switch, .guide-footer nav { display: none; }
  main, .guide-footer { width: 100%; }
  .guide-opening, .guide-path, .guide-footer { display: block; padding-block: 1rem; }
  .continuous-reading { max-width: none; }
  .continuous-reading .guide-topic { margin-bottom: 2rem; }
  .conversation, .word-note, .attention-note, .urgent-note, .medicine-names > section { break-inside: avoid; }
}
