/* Public reading pages. Kept separate from the quiz layout and image controls. */
.content-page{max-width:64rem;margin:0 auto;padding:1.5rem 0 4rem;font-size:1rem;line-height:1.75;overflow-wrap:break-word}
.content-breadcrumbs{margin-bottom:2.5rem;font-size:.875rem;color:var(--muted)}
.content-breadcrumbs ol{display:flex;flex-wrap:wrap;align-items:center;gap:.5rem .7rem;list-style:none;margin:0;padding:0}
.content-breadcrumbs li+li::before{content:"/";margin-right:.7rem;color:var(--muted)}
.content-page a:not(.btn){color:var(--green);text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:.2em}
.content-page a:not(.btn):hover{text-decoration-thickness:2px}
.content-header{max-width:48rem;margin-bottom:3rem}
.content-header h1{font-size:clamp(2.25rem,5vw,3.75rem);line-height:1.12;letter-spacing:-.045em;margin:1rem 0 1.25rem;text-wrap:balance}
.content-page .content-intro{font-size:1.125rem;line-height:1.8;max-width:45rem;color:var(--muted)}
.content-section{margin-top:2.75rem}
.content-page h2{font-size:clamp(1.5rem,3.5vw,2rem);line-height:1.3;letter-spacing:-.025em;margin-bottom:1rem}
.content-page h3{font-size:1.1875rem;line-height:1.4;letter-spacing:-.015em;margin-bottom:.625rem}
.content-page p+p,.content-page details+p{margin-top:1rem}
.content-page p{max-width:48rem;font-size:1rem;line-height:1.8;color:var(--muted)}
.content-page strong{color:var(--ink)}
.content-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem;margin:1.5rem 0}
.content-grid-two{grid-template-columns:repeat(2,minmax(0,1fr))}
.content-card{padding:1.5rem;border:1px solid var(--line);border-radius:1rem;background:var(--white);min-width:0}
.content-steps,.content-list{max-width:48rem;margin:1rem 0 1.5rem;padding-left:1.5rem;color:var(--muted)}
.content-steps li,.content-list li{padding-left:.3rem;margin:.75rem 0}
.content-steps li::marker{font-weight:700;color:var(--green)}
.content-answer{max-width:48rem;margin:1.25rem 0;border:1px solid var(--line);border-radius:.875rem;background:var(--white);overflow:hidden}
.content-answer summary{padding:1rem 1.125rem;min-height:3rem;font-size:1rem;font-weight:650;line-height:1.5;cursor:pointer;color:var(--green)}
.content-answer summary:hover{background:var(--soft)}
.content-answer[open] summary{border-bottom:1px solid var(--line);background:var(--soft)}
.content-answer>div{padding:1rem 1.125rem}
.content-answer summary:focus-visible{outline-offset:-4px}
.content-practice-list{display:grid;gap:1.5rem}
.content-practice{padding:1.75rem;border:1px solid var(--line);border-radius:var(--radius);background:var(--white);scroll-margin-top:7rem}
.content-practice .content-question-number{margin-bottom:.625rem;font-size:.875rem;font-weight:650;letter-spacing:.025em;color:var(--green)}
.content-practice h2{font-size:clamp(1.375rem,3vw,1.75rem);max-width:44rem}
.content-options{display:flex;flex-wrap:wrap;gap:.625rem;list-style:none;padding:0;margin:1.25rem 0;max-width:48rem}
.content-options li{padding:.65rem 1rem;border:1px solid var(--line);border-radius:.625rem;background:var(--paper);font-size:1rem;color:var(--ink)}
.content-practice .content-answer{margin-bottom:0}
.content-chart{margin:1.5rem 0;max-width:38rem}
.content-chart svg{display:block;width:100%;height:auto;fill:none;stroke:none;border:1px solid var(--line);border-radius:1rem}
.content-chart figcaption{margin-top:.75rem;font-size:1rem;line-height:1.7;color:var(--muted)}
.content-callout{margin-top:2.75rem;padding:1.75rem;border:1px solid #d7e4cf;border-radius:var(--radius);background:var(--soft)}
.content-actions{display:flex;flex-wrap:wrap;gap:.75rem;margin-top:1.25rem}
.content-cta{display:flex;align-items:center;justify-content:space-between;gap:2rem;margin-top:3rem;padding:2rem;border-radius:var(--radius);background:var(--green);color:var(--white)}
.content-cta h2{font-size:1.5rem;margin-bottom:.5rem;letter-spacing:-.02em}
.content-cta p{color:#e0ebdf;max-width:32rem}
.content-cta .btn-primary{flex-shrink:0;background:var(--lime);color:var(--green-dark);text-align:center}
.content-cta .btn-primary:hover{background:#e2f1d1}
.content-cta a:focus-visible{outline-color:var(--white)}
@media(max-width:56rem){.content-grid{grid-template-columns:1fr}.content-grid-two{grid-template-columns:repeat(2,minmax(0,1fr))}.content-cta{align-items:flex-start;flex-direction:column;gap:1.25rem}}
@media(max-width:38rem){.content-page{padding-top:1.125rem;padding-bottom:3rem}.content-breadcrumbs{margin-bottom:2rem}.content-header{margin-bottom:2.25rem}.content-header h1{font-size:clamp(2rem,9vw,2.75rem)}.content-grid-two{grid-template-columns:1fr}.content-card,.content-practice,.content-callout,.content-cta{padding:1.25rem}.content-options{flex-direction:column;align-items:stretch}.content-section{margin-top:2.25rem}.content-cta .btn,.content-actions .btn{width:100%}.content-actions{width:100%}}

/* Topic practice remains useful without JS; enhancement only adds answer checks. */
.learning-tools{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:1rem;padding:1.25rem;margin:1.75rem 0;border:1px solid var(--line);border-radius:1rem;background:var(--soft)}
.learning-tools p{flex:1 1 22rem;color:#53665a}
.learning-jump-links{display:flex;flex-wrap:wrap;gap:.5rem 1rem;list-style:none;padding:0;margin:1rem 0 1.5rem}
.learning-jump-links a{display:inline-block;padding:.5rem 0;min-height:2.75rem}
.learning-question{padding:1.5rem;margin:1.5rem 0;border:1px solid var(--line);border-radius:1rem;background:var(--white);min-width:0;scroll-margin-top:7rem}
.learning-question h3{font-size:1.25rem;line-height:1.5}
.learning-options{border:0;padding:0;margin:1.25rem 0;min-width:0;display:grid;gap:.625rem;max-width:48rem}
.learning-options legend{font-weight:600;font-size:1rem;margin-bottom:.75rem;padding:0;color:var(--ink)}
.learning-option{display:flex;align-items:flex-start;gap:.75rem;padding:.875rem 1rem;border:1px solid #8c9e91;border-radius:.625rem;cursor:pointer;min-height:3rem;line-height:1.6;overflow-wrap:anywhere}
.learning-option input{width:1.125rem;height:1.125rem;flex:0 0 1.125rem;margin:.25rem 0 0;accent-color:var(--green)}
.learning-option:has(input:checked){background:var(--soft);border-color:var(--green)}
.learning-option[data-option-result="correct"]{border-color:var(--green);background:#edf6e8}
.learning-option[data-option-result="incorrect"]{border-color:var(--red);background:var(--red-bg)}
.learning-question [data-learning-feedback]{margin:1rem 0;color:#53665a;font-weight:600;max-width:48rem}
.learning-question [data-learning-feedback]:empty{display:none}
.learning-question [data-feedback="correct"]{color:var(--green)}
.learning-question [data-feedback="incorrect"]{color:#8c382e}
.learning-question .content-answer{margin-bottom:0}
.learning-figure{margin:1.5rem 0;max-width:40rem;min-width:0}
.learning-figure svg{display:block;width:100%;height:auto;fill:none;stroke:none;border:1px solid var(--line);border-radius:1rem}
.learning-figure figcaption{margin-top:.75rem;font-size:1rem;line-height:1.7;color:#53665a}
.learning-figure-description,.learning-editorial{font-size:1rem;line-height:1.7;color:#53665a}
.learning-figure table,.learning-data-table{border-collapse:collapse;width:100%;table-layout:fixed;margin:1rem 0;font-size:1rem;color:var(--ink)}
.learning-figure th,.learning-figure td,.learning-data-table th,.learning-data-table td{padding:.65rem;border:1px solid #a7b6a9;text-align:left;vertical-align:top;overflow-wrap:anywhere}
.learning-figure th,.learning-data-table th{background:var(--soft);font-weight:650}
.learning-figure caption,.learning-data-table caption{text-align:left;font-weight:600;padding:.75rem 0;line-height:1.5}
.learning-topic-grid h3{line-height:1.5}
@media(max-width:38rem){.learning-question{padding:1rem}.learning-option{padding:.75rem}.learning-tools{padding:1rem}.learning-tools .btn{width:100%}.learning-figure th,.learning-figure td,.learning-data-table th,.learning-data-table td{padding:.5rem}.learning-figure{margin-left:0;margin-right:0}}

.learning-table-wrap{max-width:100%;min-width:0}
.learning-jump-links ul{display:flex;flex-wrap:wrap;gap:.5rem 1.25rem;list-style:none;margin:0;padding:0}
.learning-option-letter{flex:0 0 1ch;font-weight:700;color:var(--green)}
.learning-option-text{min-width:0;flex:1}
.learning-topic{scroll-margin-top:7rem}
