.geometry-learning {
  --geo-paper: var(--background);
  --geo-ink: var(--color-slate-100);
  --geo-muted: var(--color-slate-400);
  --geo-line: var(--color-slate-800);
  --geo-accent: var(--color-indigo-400);
  --geo-secondary: var(--color-slate-400);
  --geo-tint: color-mix(in srgb, var(--color-indigo-500) 10%, transparent);
  min-height: calc(100dvh - 56px);
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-study);
  font-size: 16px;
  container-type: inline-size;
}
.geometry-learning * { box-sizing: border-box; }
.geometry-learning a { text-decoration: none; }
.geometry-learning button { cursor: pointer; }
.geometry-learning button:disabled { cursor: default; opacity: .4; }
.geometry-learning :is(a, button, input):focus-visible { outline: 3px solid var(--geo-accent); outline-offset: 5px; border-radius: 4px; }
.geometry-learning .font-semibold { color: var(--geo-ink); }
.geometry-learning :is(h1, h2, h3, p) { margin: 0; }
.geo-overview { max-width: 1150px; margin: auto; padding: 42px 48px 64px; }
.geo-topic-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; align-items: start; }
.geo-topic-card { border: 1px solid var(--geo-line); border-radius: 14px; overflow: hidden; background: transparent; }
.geo-topic-visual { position: relative; display: block; background: transparent; border-bottom: 1px solid var(--geo-line); overflow: hidden; }
.geo-topic-card:nth-child(2) .geo-topic-visual { background: transparent; }
.geo-topic-art { display: block; width: 100%; }
.geo-topic-art text { fill: var(--geo-ink); stroke: none; font-size: 15px; font-family: Georgia, serif; }
.geo-topic-art .geo-art-equation { fill: var(--geo-accent); font-size: 27px; font-style: italic; }
.geo-topic-open { display: grid; place-items: center; position: absolute; right: 18px; bottom: 18px; width: 35px; height: 35px; border: 1px solid var(--geo-line); border-radius: 50%; transition: background .15s; }
.geo-topic-visual:hover .geo-topic-open { background: var(--geo-tint); }
.geo-topic-card-body { padding: 27px 27px 22px; }
.geo-topic-card h3 { font-family: Georgia, serif; font-size: clamp(27px, 2.7vw, 34px); font-weight: 400; letter-spacing: -.04em; margin-top: 10px; }
.geo-topic-card-body > p { font-size: 15px; line-height: 1.65; color: var(--geo-muted); margin-top: 12px; min-height: 50px; }
.geo-topic-card ol { list-style: none; padding: 20px 0 14px; margin: 0; }
.geo-topic-card li a { display: flex; align-items: center; gap: 12px; padding: 11px 0; font-size: 14px; border-bottom: 1px solid var(--geo-line); }
.geo-topic-card li a:hover { color: var(--geo-accent); }
.geo-topic-card li a > span { color: var(--geo-muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.geo-topic-card li a > svg { margin-left: auto; color: var(--geo-muted); flex-shrink: 0; }
.geo-topic-cta { display: flex; align-items: center; justify-content: space-between; font-weight: 600; color: var(--geo-accent); padding: 8px 0 2px; font-size: 14px; }
.geo-course { max-width: 1550px; margin: auto; padding: 0 32px 48px; }
.geo-breadcrumb { display: flex; gap: 11px; flex-wrap: wrap; align-items: center; font-size: 12px; color: var(--geo-muted); padding: 22px 0; border-bottom: 1px solid var(--geo-line); }
.geo-breadcrumb a:hover { color: var(--geo-accent); }
.geo-breadcrumb > span:last-child { color: var(--geo-ink); }
.geo-reader-layout { display: grid; grid-template-columns: 192px minmax(0, 1fr); gap: 32px; }
.geo-toc { border-right: 1px solid var(--geo-line); padding: 30px 20px 0 0; }
.geo-toc-content { position: sticky; top: 90px; max-height: calc(100dvh - 112px); overflow-y: auto; padding-bottom: 18px; scrollbar-width: thin; }
.geo-toc-toggle { display: none; }
.geo-toc-group { margin-bottom: 24px; }
.geo-toc-group > p { display: flex; align-items: baseline; gap: 9px; font-size: 13px; line-height: 1.6; font-weight: 600; margin-bottom: 10px; }
.geo-toc-group > p > span { font-size: 10px; color: var(--geo-muted); }
.geo-toc-group a { display: flex; gap: 9px; align-items: baseline; padding: 9px 6px 9px 10px; border-left: 2px solid transparent; color: var(--geo-muted); font-size: 13px; line-height: 1.55; }
.geo-toc-group a:hover { color: var(--geo-accent); background: transparent; }
.geo-toc-group a.is-active { background: var(--geo-tint); border-left-color: var(--geo-accent); color: var(--geo-accent); font-weight: 600; }
.geo-toc-number { font-size: 10px; min-width: 15px; font-variant-numeric: tabular-nums; }
.geo-reading-progress { border-top: 1px solid var(--geo-line); padding-top: 18px; }
.geo-reading-progress > span { display: flex; justify-content: space-between; font-size: 12px; color: var(--geo-muted); }
.geo-reading-progress progress { appearance: none; width: 100%; height: 3px; display: block; margin: 10px 0; border: 0; background: var(--geo-line); }
.geo-reading-progress progress::-webkit-progress-bar { background: var(--geo-line); }
.geo-reading-progress progress::-webkit-progress-value { background: var(--geo-accent); }
.geo-reading-progress progress::-moz-progress-bar { background: var(--geo-accent); }
.geo-reading-progress p { font-size: 11px; color: var(--geo-muted); line-height: 1.6; }
.geo-lesson { min-width: 0; padding-top: 34px; }
.geo-lesson-header { padding-bottom: 30px; }
.geo-lesson-header .geo-eyebrow { font-size: 11px; flex-wrap: wrap; gap: 12px; }
.geo-lesson-header .geo-eyebrow > span:last-child { color: var(--geo-muted); font-size: 10px; padding-left: 12px; border-left: 1px solid var(--geo-line); }
.geo-lesson-header h2 { font-family: Georgia, 'Times New Roman', serif; font-size: clamp(34px, 3.4vw, 51px); font-weight: 400; letter-spacing: -.055em; line-height: 1.15; margin: 14px 0; text-wrap: balance; }
.geo-lesson-header > p { color: var(--geo-muted); font-size: 16px; line-height: 1.6; }
.geo-outcomes { margin: 0 0 42px; padding: 22px 24px; border: 1px solid var(--geo-line); border-radius: 10px; background: color-mix(in srgb, var(--geo-accent) 5%, transparent); }
.geo-outcomes-heading { display: flex; align-items: flex-start; gap: 12px; }
.geo-outcomes-heading > svg { flex-shrink: 0; margin-top: 2px; color: var(--geo-accent); }
.geo-outcomes-heading h3 { font-size: 15px; font-weight: 600; line-height: 1.5; }
.geo-outcomes ul { display: grid; gap: 10px; margin: 17px 0 0; padding: 0; list-style: none; }
.geo-outcomes li { display: flex; align-items: flex-start; gap: 10px; color: var(--color-slate-300); font-size: 14px; line-height: 1.65; }
.geo-outcomes li > svg { flex-shrink: 0; margin-top: 5px; color: var(--geo-accent); }
.geo-outcomes li > div { display: flex; align-items: baseline; gap: 9px; min-width: 0; }
.geo-outcome-code { flex-shrink: 0; padding: 2px 6px; border-radius: 4px; background: var(--geo-tint); color: var(--geo-accent); font-size: 11px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.geo-exploration { display: grid; grid-template-columns: minmax(245px, .85fr) minmax(320px, 1.2fr); gap: 28px; align-items: start; }
.geo-story { min-width: 0; padding-top: 5px; }
.geo-step-content h3 { font-family: Georgia, serif; font-size: 25px; font-weight: 400; letter-spacing: -.03em; line-height: 1.3; margin-bottom: 16px; }
.geo-body { font-size: 16px; line-height: 1.85; color: var(--color-slate-300); overflow-wrap: break-word; }
.geometry-learning .lesson-math .katex { font-size: 1.32em; color: var(--geo-ink); white-space: nowrap; }
.lesson-math .math-inline { display: inline-block; max-width: 100%; padding: .2em .12em; overflow-x: auto; overflow-y: hidden; vertical-align: middle; line-height: 1.5; }
.lesson-math strong > .math-inline { color: var(--geo-accent); background: var(--geo-tint); border-radius: 5px; padding: .25em .4em; margin: .12em .08em; font-weight: 400; }
.geometry-learning .lesson-math strong > .math-inline .katex { color: var(--geo-accent); }
.lesson-math .math-block { padding: 18px 20px; border-left: 2px solid var(--geo-accent); background: var(--geo-tint); border-radius: 0 6px 6px 0; }
.geometry-learning .lesson-math .math-block .katex { font-size: 1.5em; }
.lesson-math .math-block .katex-display { margin: 0; text-align: left; }
.lesson-math .math-block .katex-display > .katex { text-align: left; }
.geo-svg { width: 100%; height: auto; display: block; overflow: hidden; }
.geo-svg text { font-family: Georgia, serif; }
.geo-takeaway { margin: 32px 0; padding: 20px 23px; background: var(--geo-tint); border-left: 3px solid var(--geo-accent); }
.geo-takeaway > div { margin-top: 10px; font-size: 16px; line-height: 1.85; }
.geo-takeaway .geo-mini-label { color: var(--geo-accent); }
.geo-example { padding: 28px; border: 1px solid var(--geo-line); border-radius: 10px; scroll-margin-top: 100px; background: transparent; }
.geo-example h3 { font-family: Georgia, serif; font-weight: 400; font-size: 24px; margin-top: 5px; letter-spacing: -.02em; }
.geo-question { font-size: 17px; line-height: 1.85; margin: 24px 0; }
.geo-example-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.geo-text-button { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--geo-muted); padding: 10px 0; }
.geo-solid-button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; font-size: 13px; background: var(--geo-accent); color: #fff; border-radius: 6px; padding: 12px 16px; }
.geo-example-hint { font-size: 14px; line-height: 1.8; background: transparent; border-radius: 5px; padding: 14px 17px; margin-top: 20px; }
.geo-solution-step { display: flex; gap: 15px; border-top: 1px solid var(--geo-line); padding-top: 20px; margin-top: 20px; font-size: 16px; line-height: 1.85; }
.geo-solution-step > span { flex-shrink: 0; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--geo-tint); font-size: 12px; color: var(--geo-accent); margin-top: 2px; }
.geo-solution-step > div { min-width: 0; }
.geo-answer { display: flex; align-items: center; gap: 9px; color: var(--geo-accent); font-size: 16px; margin-top: 22px; flex-wrap: wrap; }
.geo-answer button { margin-left: auto; font-size: 12px; text-decoration: underline; color: var(--geo-muted); padding: 8px 0; }
.geo-caution { display: flex; gap: 18px; margin: 24px 0 35px; font-size: 13px; line-height: 1.8; }
.geo-caution > span { color: var(--geo-accent); font-weight: 600; flex-shrink: 0; }
.geo-caution > p { color: var(--geo-muted); }
.geo-complete-row { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 0 0 25px; flex-wrap: wrap; }
.geo-complete { display: inline-flex; gap: 8px; align-items: center; font-size: 13px; color: var(--geo-muted); padding: 10px 12px; border: 1px solid var(--geo-line); border-radius: 6px; }
.geo-complete.is-complete { background: var(--geo-tint); color: var(--geo-accent); border-color: var(--geo-accent); }
.geo-complete-row > a { display: inline-flex; align-items: center; gap: 7px; color: var(--geo-accent); font-size: 13px; }
.geo-chapter-nav { display: flex; justify-content: space-between; gap: 25px; border-top: 1px solid var(--geo-line); padding-top: 25px; }
.geo-chapter-nav > a { display: flex; align-items: center; gap: 14px; font-size: 14px; max-width: 48%; }
.geo-chapter-nav small { display: block; font-size: 9px; color: var(--geo-muted); letter-spacing: .11em; margin-bottom: 7px; }
.geo-next-chapter { text-align: right; color: var(--geo-accent); margin-left: auto; }
/* Drawings belong to the page itself, without a separate card or control panel. */
.geo-overview { max-width: 1060px; padding: 36px 36px 64px; }
.geo-overview h1 { font-size: 28px; font-weight: 600; letter-spacing: -.035em; margin-bottom: 32px; }
.geo-overview-catalog { max-width: 1360px; }
.geo-overview-catalog .geo-toc { padding-top: 0; }
.geo-overview-selected { min-width: 0; }
.geo-topic-grid { gap: 52px; }
.geo-topic-card { border: 0; border-radius: 0; background: transparent; }
.geo-topic-visual { border: 0; background: transparent; }
.geo-topic-card:nth-child(2) .geo-topic-visual { background: transparent; }
.geo-topic-art { max-height: 210px; }
.geo-topic-card-body { padding: 22px 0 0; }
.geo-topic-card h3 { font-family: inherit; font-size: 25px; font-weight: 600; }
.geo-topic-card li a { font-size: 15px; padding: 13px 0; }
.geo-topic-card li a > span { font-size: 13px; }
.geo-topic-open { border: 0; color: var(--geo-muted); }
.geo-topic-cta { font-size: 15px; }
.geo-course { max-width: 1360px; padding: 0 36px 48px; }
.geo-breadcrumb { font-size: 14px; padding: 24px 0; }
.geo-reader-layout { grid-template-columns: 190px minmax(0, 1fr); gap: 42px; }
.geo-toc { border: 0; padding-top: 32px; }
.geo-toc-content { top: 82px; max-height: calc(100dvh - 110px); }
.geo-toc-group > p { font-size: 15px; margin-bottom: 12px; }
.geo-toc-group a { font-size: 14px; line-height: 1.6; }
.geo-toc-number { font-size: 12px; }
.geo-reading-progress > span { font-size: 13px; }
.geo-reading-progress p { font-size: 12px; }
.geo-lesson-header h2 { font-family: inherit; font-size: clamp(28px, 3vw, 36px); font-weight: 600; }
.geo-exploration { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 38px; align-items: center; }
.geo-step-content h3 { font-family: inherit; font-size: 23px; font-weight: 500; }
.geo-body { font-size: 17px; line-height: 1.95; }
.geo-figure { min-width: 0; width: 100%; margin: 0 auto; max-width: 620px; align-self: center; }
.geo-svg { max-height: 420px; overflow: visible; }
.geo-figure-language { max-width: 540px; }
.geo-equations { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px 30px; margin: 12px 0 0; }
.geo-equations > span { display: flex; align-items: baseline; gap: 8px; }
.geo-equations > span > span { color: var(--geo-muted); font-size: 14px; }
.geo-equations strong { font-family: Georgia, serif; font-size: 24px; font-weight: 400; font-variant-numeric: tabular-nums; }
.geo-figure[data-started="false"] .geo-draw { stroke-dasharray: 1; stroke-dashoffset: 1; }
.geo-figure[data-started="true"] .geo-draw { animation: geo-line-draw 1.1s ease-out both; }
.geo-figure .geo-appear { opacity: 0; }
.geo-figure[data-started="true"] .geo-appear { animation: geo-appear .6s ease-out both; }
.geo-figure .geo-svg { opacity: 0; }
.geo-figure[data-started="true"] .geo-svg { opacity: 1; }
@keyframes geo-line-draw { from { stroke-dasharray: 1; stroke-dashoffset: 1; } to { stroke-dasharray: 1; stroke-dashoffset: 0; } }
@keyframes geo-appear { from { opacity: 0; } to { opacity: 1; } }
.geo-takeaway { margin: 36px 0; padding: 0 0 0 20px; background: transparent; border-left: 2px solid var(--geo-accent); }
.geo-takeaway > div { font-size: 17px; }
.geo-example { padding: 30px 0; border: 0; border-top: 1px solid var(--geo-line); border-radius: 0; background: transparent; scroll-margin-top: 82px; }
.geo-example h3 { font-family: inherit; font-size: 24px; font-weight: 500; }
.geo-text-button { font-size: 14px; }
.geo-solid-button { font-size: 14px; color: var(--geo-accent); background: transparent; padding: 10px 0; }
.geo-example-hint { font-size: 16px; padding: 0 0 0 17px; border-left: 2px solid var(--geo-line); border-radius: 0; }
.geo-solution-step { border: 0; }
.geo-solution-step > span { background: transparent; font-size: 15px; }
.geo-answer button { font-size: 14px; }
.geo-caution { display: block; font-size: 15px; }
.geo-caution > span { color: var(--geo-ink); font-weight: 500; }
.geo-caution > p { margin-top: 5px; }
.geo-complete { border: 0; padding: 10px 0; font-size: 14px; }
.geo-complete.is-complete { background: transparent; }
.geo-chapter-nav > a { font-size: 15px; }
@container (max-width: 1000px) {
 .geo-reader-layout { grid-template-columns: 174px minmax(0, 1fr); gap: 25px; }
 .geo-exploration { grid-template-columns: minmax(0, 1fr); gap: 24px; }
 .geo-figure { max-width: 530px; }
 .geo-course { padding-left: 26px; padding-right: 26px; }
}
@container (max-width: 740px) {
 .geo-overview-selected { padding-top: 24px; }
 .geo-overview-selected .geo-topic-grid { grid-template-columns: minmax(0, 1fr); }
 .geo-reader-layout { display: block; }
 .geo-toc { padding: 16px 0; border-bottom: 1px solid var(--geo-line); }
 .geo-toc-toggle { display: flex; width: 100%; align-items: center; gap: 9px; font-size: 15px; color: var(--geo-muted); }
 .geo-toc-toggle > svg:last-child { margin-left: auto; }
 .geo-toc-content { display: none; position: static; max-height: 65dvh; padding: 22px 0 5px; }
 .geo-toc-content.is-open { display: block; }
 .geo-topic-grid { gap: 32px; }
}
@media (max-width: 620px) {
 .geo-overview { padding: 28px 22px 42px; }
 .geo-topic-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
 .geo-topic-card h3 { font-size: 25px; }
 .geo-course { padding: 0 20px 34px; }
 .geo-breadcrumb { font-size: 13px; gap: 8px; padding: 20px 0; }
 .geo-lesson-header h2 { font-size: 30px; }
 .geo-lesson-header { padding-bottom: 24px; }
 .geo-outcomes { margin-bottom: 34px; padding: 19px 18px; }
 .geo-outcomes li > div { display: grid; gap: 3px; }
 .geo-outcome-code { justify-self: start; }
 .geo-lesson { padding-top: 26px; }
 .geo-exploration { gap: 20px; }
 .geo-step-content h3 { font-size: 23px; }
 .geo-body { font-size: 16px; }
 .geo-equations { gap: 15px; }
 .geo-equations > span { gap: 6px; }
 .geo-equations strong { font-size: 23px; }
 .geo-equations > span > span { font-size: 13px; }
 .geo-example h3 { font-size: 23px; }
 .geo-question { font-size: 16px; }
 .geo-example-actions { align-items: stretch; flex-direction: column; }
 .geo-text-button { justify-content: flex-start; }
 .geo-solid-button { justify-content: flex-start; }
 .geo-chapter-nav { gap: 15px; }
 .geo-chapter-nav > a { font-size: 14px; gap: 9px; }
 .geo-takeaway { padding-left: 16px; }
}
@media (prefers-reduced-motion: reduce) {
 .geometry-learning * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
 .geo-figure .geo-svg, .geo-figure .geo-appear { opacity: 1; }
 .geo-figure .geo-draw { stroke-dasharray: none !important; stroke-dashoffset: 0 !important; }
}

.geo-lesson-flow { display: grid; grid-template-columns: minmax(0, 1fr); gap: 64px; padding: 12px 0 24px; }
.geo-lesson-flow > section { min-width: 0; scroll-margin-top: 90px; }
@media (max-width: 620px) {
  .geo-lesson-flow { gap: 48px; padding-top: 8px; }
}

.geo-figure-actions { display: flex; justify-content: flex-end; gap: 2px; margin-bottom: 6px; }
.geo-figure-actions button { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 6px; color: var(--geo-muted); }
.geo-figure-actions button:hover { color: var(--geo-accent); background: var(--geo-tint); }
.geo-figure[data-paused="true"] * { animation-play-state: paused !important; }
.geo-example { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 32px; padding: 36px 0; border-bottom: 1px solid var(--geo-line); }
.geo-example-intro h3 { font-size: 22px; margin: 0; }
.geo-example-intro p { color: var(--geo-muted); font-size: 14px; line-height: 1.7; margin-top: 10px; }
.geo-example-work { min-width: 0; }
.geo-example .geo-question { margin: 0 0 22px; font-size: 18px; line-height: 1.8; }
.geo-example-actions { justify-content: flex-start; gap: 20px; }
.geo-solution-toggle { display: inline-flex; align-items: center; justify-content: center; gap: 14px; padding: 10px 14px; border: 1px solid var(--geo-line); border-radius: 7px; color: var(--geo-ink); font-size: 14px; font-weight: 500; }
.geo-solution-toggle:hover { border-color: var(--geo-accent); color: var(--geo-accent); }
.geo-solution-toggle svg { transition: transform .2s; }
.geo-solution-toggle .is-open { transform: rotate(180deg); }
.geo-example .geo-solution-step { margin-top: 24px; padding-top: 0; }
.geo-example .geo-solution-step > span { justify-content: start; color: var(--geo-muted); font-size: 12px; }
.geo-example-note { margin-top: 28px !important; padding-left: 14px; border-left: 2px solid var(--geo-line); color: var(--geo-muted); font-size: 14px; line-height: 1.7; }
.geo-lesson-footer { padding-top: 20px; }
.geo-complete-row { padding-bottom: 20px; }
.geo-complete { gap: 10px; }
.geo-complete > svg { border: 1px solid var(--geo-line); border-radius: 4px; padding: 2px; width: 21px; height: 21px; color: transparent; }
.geo-complete.is-complete > svg { color: var(--geo-accent); border-color: var(--geo-accent); background: var(--geo-tint); }
.geo-chapter-nav { border-top: 0; padding-top: 4px; }
.geo-chapter-nav > a { padding: 12px 0; }
@container (max-width: 1000px) {
 .geo-example { grid-template-columns: minmax(0, 1fr); gap: 24px; }
 .geo-example-intro p { margin-top: 6px; }
}
@media (max-width: 620px) {
 .geo-example { padding: 28px 0; }
 .geo-example .geo-question { font-size: 16px; }
 .geo-example-actions { flex-direction: row; align-items: center; }
}

.geo-topic-reading { min-width: 0; padding-top: 30px; }
.geo-topic-title { font-size: 14px; font-weight: 500; color: var(--geo-muted); }
.geo-topic-reading > .geo-lesson { scroll-margin-top: 80px; padding-top: 24px; }
.geo-topic-reading > .geo-lesson + .geo-lesson { margin-top: 64px; border-top: 1px solid var(--geo-line); padding-top: 48px; }
.geo-topic-reading > .geo-chapter-nav { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--geo-line); }

.geo-figure[data-animated="false"] * { animation: none !important; }
.geo-figure[data-animated="false"] .geo-appear, .geo-figure[data-animated="false"] .geo-svg { opacity: 1; }
.geo-figure[data-animated="false"] .geo-draw { stroke-dasharray: none; stroke-dashoffset: 0; }
.geo-exploration.geo-text-only { display: block; }
.geo-text-only .geo-story { max-width: 720px; }

/* A single construction gets a readable size; comparisons retain more width. */
.geo-figure-special, .geo-figure-pythagoras { max-width: 460px; }
.geo-figure-special .geo-svg, .geo-figure-pythagoras .geo-svg { max-height: 340px; }
@media (max-width: 620px) {
 .geo-figure-special, .geo-figure-pythagoras { max-width: 390px; }
 .geo-figure-special .geo-svg, .geo-figure-pythagoras .geo-svg { max-height: 300px; }
}

.geo-topic-test { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; margin-top: 36px; padding: 28px 0; border-top: 1px solid var(--geo-line); }
.geo-topic-test p { color: var(--geo-muted); font-size: 16px; }
.geo-topic-test a { display: inline-flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 8px; background: var(--geo-tint); color: var(--geo-accent); font-size: 15px; font-weight: 600; }
.geo-topic-test a:hover { background: color-mix(in srgb, var(--geo-accent) 18%, transparent); }
.geo-topic-test + .geo-chapter-nav { margin-top: 0; }

.geo-concept-note { color: var(--geo-muted); font-size: 15px; line-height: 1.8; margin: 18px 0 30px; }
.geo-concept-note strong { color: var(--geo-ink); font-weight: 600; }

.geo-body > p + p { margin-top: 14px; }

.geo-source-note { margin: 0 0 36px; padding: 16px 0; border-block: 1px solid var(--geo-line); color: var(--geo-muted); font-size: 14px; line-height: 1.8; }
.geo-source-note summary { cursor: pointer; color: var(--geo-ink); }
.geo-source-note p { margin-block: 12px; }
.geo-source-note a { color: var(--geo-accent); text-decoration: underline; text-underline-offset: 3px; }
.geo-ayt-figure figcaption { margin: 12px auto 0; max-width: 48ch; color: var(--geo-muted); font-size: 13px; line-height: 1.65; text-align: center; }

/* Free chapter preview and upgrade boundary. */
.geo-preview-notice { display:flex; align-items:center; gap:14px; padding:18px 20px; margin-bottom:24px; border:1px solid color-mix(in srgb,var(--geo-accent) 28%,var(--geo-line)); border-radius:14px; background:var(--geo-tint); }
.geo-preview-notice > svg { flex-shrink:0; color:var(--geo-accent); }
.geo-preview-notice > div { flex:1; }
.geo-preview-notice strong { font-size:15px; color:var(--geo-ink); }
.geo-preview-notice p { margin-top:4px; font-size:13px; line-height:1.6; color:var(--geo-muted); }
.geo-preview-notice > a { display:inline-flex; align-items:center; gap:6px; flex-shrink:0; font-size:12px; font-weight:600; color:var(--geo-accent); padding:8px 0; }
.geo-toc-group a.is-locked { color:var(--geo-muted); }
.geo-toc-group a.is-locked .geo-toc-number { color:var(--geo-accent); }
.geo-preview-gate { margin-top:36px; border:1px solid color-mix(in srgb,var(--geo-accent) 32%,var(--geo-line)); border-radius:22px; overflow:hidden; scroll-margin-top:100px; background:linear-gradient(155deg,var(--geo-tint),transparent 65%),var(--geo-paper); }
.geo-preview-boundary { display:flex; align-items:center; justify-content:center; gap:8px; padding:15px 20px; border-bottom:1px solid var(--geo-line); font-size:12px; color:var(--geo-muted); text-align:center; }
.geo-preview-boundary svg { color:var(--geo-accent); flex-shrink:0; }
.geo-preview-gate-body { display:flex; align-items:center; flex-direction:column; padding:36px; text-align:center; }
.geo-preview-lock { display:grid; place-items:center; width:60px; height:60px; border-radius:18px; background:var(--geo-tint); border:1px solid color-mix(in srgb,var(--geo-accent) 30%,transparent); color:var(--geo-accent); box-shadow:0 0 45px var(--geo-tint); }
.geo-preview-plan { margin-top:20px; color:var(--geo-accent); font-size:11px; font-weight:700; letter-spacing:.14em; }
.geo-preview-gate h2 { margin-top:12px; max-width:460px; font-size:clamp(24px,3vw,32px); line-height:1.25; font-weight:650; letter-spacing:-.035em; color:var(--geo-ink); text-wrap:balance; }
.geo-preview-gate-body > p { margin-top:14px; max-width:460px; color:var(--geo-muted); font-size:15px; line-height:1.8; }
.geo-preview-upcoming { width:100%; max-width:460px; margin-top:26px; padding:18px; border:1px solid var(--geo-line); border-radius:12px; background:var(--geo-paper); text-align:left; }
.geo-preview-upcoming > p { display:flex; justify-content:space-between; flex-wrap:wrap; gap:6px; font-size:12px; color:var(--geo-ink); }
.geo-preview-upcoming > p > span { color:var(--geo-muted); font-size:11px; }
.geo-preview-upcoming ul { margin:12px 0 0; padding:0; list-style:none; }
.geo-preview-upcoming li { display:flex; align-items:center; gap:10px; padding:10px 0; font-size:13px; color:var(--geo-muted); }
.geo-preview-upcoming li + li { border-top:1px solid var(--geo-line); }
.geo-preview-upcoming li > svg { flex-shrink:0; color:var(--geo-accent); }
.geo-preview-upcoming li > span:first-of-type { flex:1; min-width:0; overflow-wrap:anywhere; }
.geo-preview-pro-tag { padding:3px 6px; background:var(--geo-tint); color:var(--geo-accent); border-radius:4px; font-size:9px; font-weight:700; letter-spacing:.05em; }
.geo-preview-more { display:block; margin-top:7px; font-size:12px; color:var(--geo-muted); }
.geo-preview-cta { display:inline-flex; justify-content:center; align-items:center; gap:12px; margin-top:26px; padding:15px 22px; border-radius:12px; background:var(--color-indigo-600); color:white; font-size:14px; font-weight:600; line-height:1.5; transition:background .15s; }
.geo-preview-cta:hover { background:var(--color-indigo-700); }
.geo-preview-cta svg { flex-shrink:0; }
.geo-preview-caption { margin-top:12px; font-size:12px; line-height:1.6; color:var(--geo-muted); }
@media (max-width:640px) {
 .geo-preview-notice { flex-wrap:wrap; padding:16px; gap:10px; }
 .geo-preview-notice > a { margin-left:30px; }
 .geo-preview-gate-body { padding:28px 18px; }
 .geo-preview-upcoming { padding:14px; }
 .geo-preview-cta { width:100%; padding-inline:14px; }
}

/* Yalnız kaldırılan konularda küçük müfredat etiketi. */
.curriculum-badge { display: inline-block; max-width: 100%; border: 1px solid var(--geo-line); color: var(--geo-muted); border-radius: 6px; padding: 3px 8px; margin: 8px 0; font-size: 12px; line-height: 1.5; }
.curriculum-badge:hover { color: var(--geo-accent); }
/* Uygulamadaki gibi: okuyucu çerçevesi sans, ders metni serif. */
.geometry-learning :is(.geo-topic-title, .math-topic-title, .geo-lesson-header > p, .geo-body, .geo-takeaway, .geo-concept-note, .geo-question, .geo-solution-step > div, .geo-example-hint, .geo-caution > p) { font-family: 'Newsreader Variable', Georgia, serif; }
