/* Styles for the introductory reading path and its worked examples. */
.reader-page .hero { padding-bottom: 2rem; }
.reader-page h1 { font-size: clamp(1.9rem, 3.1vw, 2.6rem); }
.reader-page .intro { max-width: 67ch; }
.reader-route { display: flex; flex-wrap: wrap; gap: .4rem 1.6rem; margin-top: 1.8rem; padding-top: 1rem; border-top: 1px solid #b8cbd1; font-size: .92rem; }
.reader-route a { display: inline-flex; align-items: center; min-height: 40px; color: var(--teal); font-weight: 600; text-decoration: none; }
.reader-route a:hover { text-decoration: underline; }
.reader-page .section-kicker { color: var(--teal); margin-bottom: .6rem; }
.reader-page h2 { max-width: 32ch; }
.definition-formula { margin-block: 1rem; }
.worked-example { margin-top: 1.8rem; padding: 1.4rem 1.5rem; border: 1px solid var(--line); border-top: 3px solid var(--teal); background: var(--soft); border-radius: 0; }
.worked-example > p { color: var(--muted); font-size: .94rem; }
.example-controls { display: flex; flex-wrap: wrap; align-items: flex-end; gap: .7rem 1rem; margin-block: 1rem; }
.example-controls label { display: grid; flex: 1; gap: .35rem; font-size: .85rem; color: var(--muted); min-width: 0; }
.example-controls select { width: 100%; max-width: 100%; min-height: 42px; padding: .5rem .65rem; border: 1px solid #91a8b1; border-radius: 3px; background: var(--white); color: var(--ink); font: .92rem var(--sans); }
.example-button { min-height: 42px; padding: .45rem .8rem; border: 1px solid var(--teal); border-radius: 3px; background: var(--white); color: var(--teal); font: 500 .9rem var(--sans); cursor: pointer; }
.example-button:hover { background: var(--teal-soft); }
.example-button:disabled { color: var(--muted); border-color: var(--line); cursor: default; }
.secondary-example { border-color: var(--line); color: var(--muted); }
.weight-table { width: 100%; border-collapse: collapse; margin-block: 1.2rem; font-size: .94rem; table-layout: fixed; }
.weight-table caption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.weight-table th, .weight-table td { border-bottom: 1px solid var(--line); padding: .7rem .2rem; text-align: center; font-variant-numeric: tabular-nums; }
.weight-table th { font-weight: 500; color: var(--muted); }
.weight-table th:first-child { width: 30%; text-align: left; }
.weight-table #measurement-row td { font-size: 1.15rem; font-weight: 600; }
.weight-table #centered-row td { color: var(--teal); font-weight: 600; }
.example-result { padding-block: .3rem; font-size: 1rem !important; color: var(--ink) !important; }
.symbol-guide { margin: 1.2rem 0 1.5rem; }
.symbol-guide > div { display: grid; grid-template-columns: 90px 1fr; gap: 1rem; padding: .65rem 0; border-bottom: 1px solid var(--line); }
.symbol-guide dt { color: var(--ink); }
.symbol-guide dd { margin: 0; color: var(--muted); }
.reader-detail { margin-top: .65rem; border-top: 1px solid var(--line); }
.reader-detail summary { padding: .85rem 0; color: var(--teal); font-size: .95rem; font-weight: 500; cursor: pointer; }
.reader-detail > div { padding: .25rem 0 1.1rem; }
.reader-detail p { font-size: .95rem; }
.reader-detail .detail-last { margin-bottom: 0; }
.reader-detail .formula { margin-block: .7rem; }
.reader-detail h3 { font-size: 1.05rem; }
.lean-reference .symbol-guide > div { grid-template-columns: 150px 1fr; }
.lean-reference code { overflow-wrap: anywhere; }
.reference-link { margin-top: 1rem; }
.reader-steps { margin-bottom: 1rem; }
.reader-steps li { padding-block: 1.2rem; }
.reader-steps h3 { margin-bottom: .5rem; }
.term-detail { margin-top: .7rem; font-size: .9rem; }
.term-detail summary { color: var(--teal); cursor: pointer; }
.term-detail p { padding-top: .5rem; }
.figure-instruction { color: var(--muted); font-size: .92rem; margin-bottom: .8rem; max-width: 65ch; }
.subset-controls { justify-content: flex-start; margin-top: .75rem; }
.math-figure .example-result { max-width: 64ch; }
.math-figure figcaption { font-size: .92rem; }
.onward-links h2 { margin-bottom: 1.2rem; }
.onward-links > a { display: block; padding-block: 1rem; border-top: 1px solid var(--line); text-decoration: none; }
.onward-links > a strong { font-size: 1rem; font-weight: 500; text-decoration: underline; }
.onward-links > a span { display: block; margin-top: .25rem; color: var(--muted); font-size: .92rem; }
@media (max-width: 680px) {
  .reader-page h1 { font-size: 1.9rem; }
  .reader-page h2 { font-size: 1.5rem; }
  .reader-route { gap: .5rem 1.2rem; }
  .worked-example { padding: 1rem .8rem; }
  .example-controls label { flex-basis: 100%; }
  .example-controls select { font-size: .85rem; }
  .weight-table { font-size: .85rem; }
  .weight-table th:first-child { width: 32%; }
  .symbol-guide > div { grid-template-columns: 52px 1fr; gap: .65rem; }
  .lean-reference .symbol-guide > div { grid-template-columns: 1fr; gap: .3rem; }
}
@media print {
  .example-controls { display: none; }
  .worked-example { background: white; break-inside: avoid; }
}
