/* Learning space: the existing sage palette, with an editorial reading rhythm. */
[hidden] { display: none !important; }
.academy-page { background: #f5f6f0; }
.academy-page .shell { width: min(1160px, calc(100% - 48px)); }
.academy-page .site-header { background: #f5f6f0f5; }
.academy-page .nav { min-height: 76px; }
.guide-brand-label { display: block; color: var(--muted); font-size: .68rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; }
.guide-home { font-size: .83rem; text-decoration: none; }
.academy-page .tester-link { font-size: .83rem; font-weight: 600; }
.academy-page .button { width: auto; display: inline-flex; align-items: center; justify-content: center; gap: 18px; padding: 12px 20px; border: 1px solid var(--brand); border-radius: 8px; background: var(--brand); color: #fff; font-weight: 600; text-decoration: none; cursor: pointer; }
.academy-page .button:hover { background: var(--brand-dark); }
.academy-page p { text-wrap: pretty; }
.academy-page h1, .academy-page h2 { font-family: Georgia, Cambria, "Times New Roman", serif; font-weight: 400; }
.academy-page h1 { font-size: clamp(2.6rem, 4.7vw, 4.4rem); line-height: 1.06; max-width: 740px; }
.academy-page h1 em { display: block; color: var(--brand); font-style: normal; }
.guide-hero { display: grid; grid-template-columns: 1.4fr 1fr; gap: 7%; padding-block: 70px 64px; align-items: center; }
.guide-kicker { color: var(--brand); font-size: .69rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; margin: 0 0 19px; }
.guide-lead { color: var(--muted); font-size: 1.08rem; line-height: 1.8; margin: 25px 0; max-width: 570px; }
.guide-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; margin-block: 26px 18px; }
.guide-free { font-size: .78rem; color: var(--brand-dark); font-weight: 600; margin: 22px 0 7px; }
.guide-small { font-size: .78rem; line-height: 1.65; color: var(--muted); }
.guide-hero-note { position: relative; padding: 32px; background: #e6ede3; border: 1px solid #c7d5c6; border-radius: 100px 18px 18px 18px; }
.guide-hero-note > .guide-kicker { text-align: end; font-size: .62rem; }
.guide-hero-note h2 { font-size: 1.5rem; line-height: 1.25; margin-block: 22px 16px; }
.guide-hero-note blockquote { border-inline-start: 3px solid #ab8546; margin: 0; padding-inline-start: 15px; font-size: 1.1rem; font-family: Georgia, Cambria, serif; }
.guide-hero-note > p:not(.guide-kicker) { font-size: .85rem; color: var(--muted); line-height: 1.7; }
.paper-motif { margin-inline: auto; width: 78%; max-width: 245px; padding: 20px 23px; border: 1px solid #c5d2c6; background: #fbfcf7; border-radius: 5px 5px 22px 5px; transform: rotate(-4deg); box-shadow: 9px 10px 0 #cddbcc; }
.paper-motif > span { color: #7b714f; font-family: Georgia, serif; font-size: 1.35rem; }
.paper-motif i { display: block; height: 4px; background: #d7e1d5; margin-top: 9px; border-radius: 2px; width: 90%; }
.paper-motif i:nth-of-type(2n) { width: 60%; }
.paper-motif > div { display: flex; align-items: center; justify-content: space-between; gap: 7px; border-block: 1px solid #dbe2d7; padding-block: 13px; margin-top: 15px; direction: ltr; }
.paper-motif b { color: #285c48; font-weight: 500; font-size: 1.3rem; }
.paper-motif small { color: #355e4b; font-size: .7rem; background: #e4eddf; padding: 3px; }
.guide-chapters { display: flex; flex-wrap: wrap; border-block: 1px solid var(--line); padding-block: 18px; gap: 12px 28px; }
.guide-chapters a { display: inline-flex; align-items: center; gap: 10px; font-size: .84rem; font-weight: 600; text-decoration: none; min-height: 36px; }
.guide-chapters a > span:first-child { border: 1px solid #c7d2c4; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: .65rem; font-weight: 400; }
.guide-chapters a:hover { text-decoration: underline; text-underline-offset: 5px; }
.guide-progress { margin-block: 28px 10px; display: flex; justify-content: space-between; gap: 30px; padding: 24px 28px; background: #e9eee6; border-radius: 12px; }
.guide-progress h2 { font-family: inherit; font-weight: 650; font-size: .94rem; letter-spacing: 0; margin: 0 0 6px; }
.guide-progress p { margin: 5px 0; font-size: .8rem; }
.guide-progress > div:first-child { flex: 1; }
progress { display: block; width: min(100%, 330px); height: 7px; border: 0; border-radius: 8px; overflow: hidden; background: #cdd8ca; accent-color: #36664e; margin: 12px 0; }
progress::-webkit-progress-bar { background: #cdd8ca; } progress::-webkit-progress-value { background: #36664e; }
.progress-resume { font-size: .78rem; text-underline-offset: 4px; }
.progress-options { max-width: 400px; }
.progress-options label { display: flex; align-items: flex-start; gap: 10px; font-size: .8rem; font-weight: 500; cursor: pointer; }
input[type=checkbox] { width: 18px; height: 18px; accent-color: #216654; flex-shrink: 0; margin-block-start: 3px; }
.quiet-button { border: 1px solid #b6c6b6; border-radius: 7px; background: transparent; color: var(--brand-dark); cursor: pointer; padding: 8px 12px; min-height: 40px; font-size: .8rem; }
.quiet-button:hover { background: #e0e9dc; }
.progress-options .quiet-button { border: 0; padding-inline: 0; min-height: 30px; text-decoration: underline; text-underline-offset: 3px; }
.guide-section { padding-block: 70px; scroll-margin-top: 96px; }
.guide-section-heading { margin-bottom: 30px; max-width: 690px; }
.guide-section-heading h2 { font-size: clamp(1.9rem, 3.3vw, 2.7rem); }
.guide-section-heading > p:last-child { color: var(--muted); line-height: 1.75; font-size: .97rem; }
.report-walkthrough { display: grid; grid-template-columns: .9fr 1.1fr; border: 1px solid #bccdbb; border-radius: 16px; overflow: hidden; }
.practice-report { background: #e5ece2; padding: 28px; }
.practice-report-top { padding-bottom: 20px; border-bottom: 1px solid #c2d0bf; margin-bottom: 12px; }
.fiction-label { color: #566b59; font-size: .63rem; letter-spacing: .04em; font-weight: 600; }
.practice-report h3 { font-family: Georgia, serif; font-size: 1.75rem; font-weight: 400; margin-top: 12px; }
.practice-report .guide-small { margin-bottom: 0; }
.report-zones { display: grid; gap: 6px; }
.report-zone { min-height: 68px; width: 100%; background: transparent; border: 1px solid transparent; color: var(--ink); display: flex; align-items: center; gap: 12px; padding: 10px 12px; text-align: start; border-radius: 8px; cursor: pointer; }
.report-zone[aria-pressed=true] { border-color: #9eb59d; background: #fbfcf7; box-shadow: 0 3px 10px #243f3010; }
.report-zone:hover { border-color: #acbda8; }
.report-zone strong { display: block; font-weight: 600; font-size: .87rem; }
.report-zone small { display: block; color: var(--muted); font-size: .73rem; margin-top: 2px; }
.zone-index { font-size: .66rem; color: #5f745e; font-variant-numeric: tabular-nums; }
.report-zone > span:last-child { margin-inline-start: auto; }
.report-explainer { background: #fbfcf8; padding: 38px; position: relative; }
.explainer-number { display: inline-block; font-family: Georgia, serif; font-size: 2.8rem; color: #9c7b3c; line-height: 1; margin-bottom: 24px; }
.report-explainer h3 { font-family: Georgia, serif; font-size: 1.7rem; font-weight: 400; line-height: 1.25; }
.report-explainer > p { font-size: .95rem; line-height: 1.8; color: var(--muted); }
.explain-caution, .explain-reflex { padding-top: 22px; margin-top: 22px; border-top: 1px solid #d5dfd0; }
.report-explainer strong { font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: #7a5e29; }
.explain-reflex strong { color: var(--brand); }
.report-explainer div p { font-size: .88rem; line-height: 1.75; margin: 8px 0 0; }
.report-count { text-align: end; font-size: .7rem; color: #72846e; margin-top: 28px; }
.lesson-complete { display: inline-flex; min-height: 44px; align-items: center; border: 1px solid #9fb69a; border-radius: 8px; background: #f5f6f0; color: var(--brand-dark); font-size: .84rem; font-weight: 600; cursor: pointer; padding: 10px 16px; margin-top: 25px; }
.lesson-complete[aria-pressed=true] { background: #dce9d5; border-color: #6b8f60; }
.chart-section { background: #e6ece3; border-block: 1px solid #c9d6c5; }
.chart-selector { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 18px; }
.chart-selector button { min-height: 44px; border: 1px solid #b7c8b1; border-radius: 8px; padding: 9px 13px; color: var(--brand-dark); background: transparent; font-size: .8rem; cursor: pointer; }
.chart-selector button[aria-pressed=true] { background: #244f3e; color: #fff; border-color: #244f3e; }
.chart-studio { display: grid; grid-template-columns: 1.5fr 1fr; background: #fcfdf8; border: 1px solid #c3d2bd; border-radius: 13px; overflow: hidden; }
.chart-canvas { padding: 26px; min-width: 0; }
.chart-heading h3 { font-size: 1.1rem; line-height: 1.4; font-weight: 600; }
.chart-heading p { margin-block: 4px 12px; }
.learning-chart { width: 100%; min-height: 300px; }
.learning-chart svg { display: block; width: 100%; height: auto; overflow: visible; direction: ltr; }
.learning-chart svg text { font-family: "Segoe UI", Arial, sans-serif; font-size: 12px; fill: #4c6451; }
.plot-grid { stroke: #dbe4d6; stroke-width: 1; }
.plot-line { fill: none; stroke-width: 2.4; stroke-linejoin: round; stroke-linecap: round; }
.plot-a { stroke: #24664e; } .plot-b { stroke: #a07329; } .plot-c { stroke: #516f9b; }
.plot-band { fill: #c2d8bb; opacity: .5; }
.plot-drawdown { fill: #e4cbb8; opacity: .6; }
.plot-zero { stroke: #9c7b3c; stroke-dasharray: 5 4; }
.chart-legend { display: flex; flex-wrap: wrap; gap: 7px 16px; min-height: 30px; font-size: .7rem; color: #48604d; }
.chart-legend span { display: inline-flex; align-items: center; gap: 7px; }
.chart-legend i { height: 3px; width: 18px; background: #24664e; display: inline-block; }
.chart-legend .legend-b i { background: #a07329; }.chart-legend .legend-c i { background: #516f9b; }.chart-legend .legend-band i { height: 9px; background: #c2d8bb; }
.chart-explainer { background: #f1f4ec; padding: 30px; border-inline-start: 1px solid #d4dfce; }
.chart-explainer h4 { margin: 0 0 8px; color: var(--brand-dark); font-size: .78rem; letter-spacing: .025em; }
.chart-explainer p { font-size: .85rem; line-height: 1.8; margin: 0; }
.chart-explainer > div + div { border-top: 1px solid #d3decb; margin-top: 25px; padding-top: 25px; }
.chart-explainer > div + div h4 { color: #7a5e29; }
.chart-special-note { margin-top: 24px !important; padding: 13px; border: 1px solid #d6d0b5; border-radius: 7px; background: #f3f0e2; font-size: .78rem !important; }
.chart-values { margin-top: 14px; border-top: 1px solid #dae3d6; font-size: .75rem; padding-top: 12px; }
.chart-values summary { cursor: pointer; }
.table-scroll { overflow-x: auto; }
.chart-values th, .chart-values td { padding: 8px; border-bottom: 1px solid #d7e0d1; text-align: start; font-variant-numeric: tabular-nums; }
.chart-values table { width: 100%; border-collapse: collapse; margin-top: 12px; }
.glossary-tools { display: grid; grid-template-columns: 1.6fr 1fr; gap: 25px; background: #e9eee5; padding: 24px; border-radius: 12px; }
.glossary-tools label { display: block; font-size: .82rem; font-weight: 600; margin-bottom: 8px; }
.search-row { display: flex; gap: 8px; }
.glossary-tools input { min-width: 0; width: 100%; background: #fff; min-height: 46px; border: 1px solid #adbea7; border-radius: 7px; padding: 10px; }
.search-row button { max-width: 135px; }
.glossary-tools select { width: 100%; height: 46px; border: 1px solid #adbea7; border-radius: 7px; background: #fff; color: var(--ink); padding: 8px; }
.glossary-count { font-size: .77rem; color: var(--muted); margin: 20px 0; }
.glossary-list { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: 0 35px; }
.glossary-term { border-bottom: 1px solid #c7d4c2; }
.glossary-term summary { cursor: pointer; font-size: .94rem; font-weight: 600; padding-block: 17px; padding-inline-end: 12px; }
.glossary-term > div { padding: 0 3px 18px; }
.glossary-term p { font-size: .86rem; line-height: 1.75; margin: 8px 0; }
.term-example { color: #3a6149; }
.term-caution { color: #725c37; border-inline-start: 2px solid #c5b78e; padding-inline-start: 12px; }
.memo-section { background: #e0e8dc; border-block: 1px solid #c5d3bf; }
.memo-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 7%; }
.memo-grid h2 { font-size: clamp(1.9rem, 3.1vw, 2.6rem); }
.memo-grid > div > p:not(.guide-kicker) { color: var(--muted); font-size: .9rem; }
.memo-actions { display: flex; align-items: start; flex-wrap: wrap; gap: 15px; margin-top: 25px; }
.memo-sheet { background: #fbfcf7; padding: 27px; border: 1px solid #bdccb5; border-radius: 4px 4px 22px 4px; box-shadow: 8px 8px 0 #cad8c2; }
.memo-brand { font-family: Georgia, serif; font-size: .95rem; color: #416149; border-bottom: 1px solid #d1ddc9; padding-bottom: 15px; margin-bottom: 10px; }
.memo-item { display: flex; gap: 12px; align-items: start; padding: 13px 0; font-weight: 400; font-size: .86rem; cursor: pointer; line-height: 1.7; }
.guide-cta { display: grid; grid-template-columns: 1fr 150px; align-items: center; gap: 35px; }
.guide-cta h2 { font-size: 2.4rem; }
.guide-cta p { max-width: 740px; color: var(--muted); }
.cta-monogram { font-family: Georgia, serif; font-size: 8rem; color: #b7c9ad; text-align: center; }
.guide-sources { border-top: 1px solid var(--line); padding-block: 35px 55px; }
.guide-sources h2 { font-family: inherit; font-size: 1rem; font-weight: 600; letter-spacing: 0; }
.guide-sources > p { font-size: .8rem; color: var(--muted); max-width: 850px; }
.guide-sources ul { columns: 2; padding-inline-start: 18px; font-size: .8rem; line-height: 2; }
.guide-sources li { break-inside: avoid; }
.academy-page .site-footer { margin: 0; background: #e9eee5; }
.academy-page .footer-links { display: flex; flex-wrap: wrap; gap: 24px; }
.no-js-note { margin-top: 20px; padding: 15px; border: 1px solid #b5c6ae; }
.academy-page[dir=rtl] h1 { font-family: "Segoe UI", Tahoma, Arial, sans-serif; font-size: clamp(2.5rem, 4.5vw, 4rem); line-height: 1.4; }
html[dir=rtl] .academy-page h1, html[dir=rtl] .academy-page h2, html[dir=rtl] .academy-page h3, html[dir=rtl] .academy-page blockquote { font-family: "Segoe UI", Tahoma, Arial, sans-serif; letter-spacing: 0; line-height: 1.6; }
html[dir=rtl] .paper-motif { transform: rotate(4deg); }
html[dir=rtl] .academy-page .guide-kicker { letter-spacing: 0; }
@media (max-width: 1000px) {
 .guide-hero { gap: 35px; grid-template-columns: 1.2fr 1fr; }
 .guide-hero-note { padding: 25px; }
 .chart-studio { grid-template-columns: 1fr; }
 .chart-explainer { border-inline-start: 0; border-top: 1px solid #d4dfce; display: grid; grid-template-columns: 1fr 1fr; gap: 25px; }
 .chart-explainer > div + div { border-top: 0; padding-top: 0; margin-top: 0; }
 .chart-special-note { grid-column: 1 / -1; margin-top: 0 !important; }
 .report-explainer { padding: 28px; }
}
@media (max-width: 767px) {
 .academy-page .shell { width: calc(100% - 32px); }
 .academy-page .nav { min-height: 68px; gap: 8px; }
 .academy-page .brand { font-size: .9rem; gap: 7px; }
 .academy-page .brand img { width: 27px; height: 27px; }
 .academy-page .nav-actions { gap: 10px; }
 .academy-page .tester-link { font-size: .71rem; }
 .academy-page .guide-home { display: none; }
 .academy-page .language-select { width: 55px; padding-inline: 7px; font-size: .78rem; }
 .guide-hero { grid-template-columns: 1fr; padding-block: 35px 32px; gap: 28px; }
 .academy-page h1 { font-size: clamp(2.5rem, 10vw, 3.7rem); }
 .guide-lead { font-size: .97rem; margin-top: 20px; }
 .guide-actions { gap: 10px; }
 .guide-actions .button { width: 100%; }
 .guide-hero-note { border-radius: 50px 14px 14px 14px; }
 .paper-motif { width: 180px; }
 .guide-hero-note h2 { font-size: 1.4rem; }
 .guide-chapters { gap: 6px 14px; padding-block: 12px; }
 .guide-chapters a { flex: 1 0 42%; font-size: .74rem; gap: 7px; }
 .guide-progress { flex-direction: column; padding: 20px; gap: 20px; }
 .guide-section { padding-block: 45px; scroll-margin-top: 82px; }
 .report-walkthrough { grid-template-columns: 1fr; }
 .practice-report { padding: 20px; }
 .report-zone { min-height: 60px; }
 .report-explainer { padding: 25px 20px; }
 .explainer-number { font-size: 2rem; margin-bottom: 15px; }
 .chart-canvas { padding: 20px 12px; }
 .chart-heading { padding-inline: 6px; }
 .chart-selector { gap: 6px; }
 .chart-selector button { font-size: .75rem; padding: 8px 10px; }
 .chart-explainer { display: block; padding: 22px; }
 .chart-explainer > div + div { padding-top: 20px; margin-top: 20px; border-top: 1px solid #d3decb; }
 .chart-special-note { margin-top: 20px !important; }
 .glossary-tools { grid-template-columns: 1fr; padding: 19px; gap: 18px; }
 .search-row { flex-direction: column; align-items: start; }
 .glossary-list { grid-template-columns: 1fr; }
 .memo-grid { grid-template-columns: 1fr; gap: 30px; }
 .memo-sheet { padding: 22px 18px; }
 .guide-cta { grid-template-columns: 1fr; }
 .guide-cta h2 { font-size: 2rem; }
 .cta-monogram { display: none; }
 .guide-sources ul { columns: 1; }
 .guide-sources a { overflow-wrap: anywhere; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
@media print {
 @page { margin: 15mm; }
 .academy-page { background: #fff; color: #111; }
 .academy-page header.site-header, .academy-page main > :not(#routine), .academy-page footer, .memo-actions, .skip-link { display: none !important; }
 .academy-page #routine { display: block !important; background: #fff; padding: 0; border: 0; }
 .academy-page .shell { width: 100%; }
 .memo-grid { display: block; }
 .memo-sheet { box-shadow: none; border-color: #777; margin-top: 20px; break-inside: avoid; }
 .memo-grid h2 { font-size: 25pt; }
 .memo-item { font-size: 11pt; }
 .guide-kicker, .guide-small { color: #333; }
}
/* Matrix numbers need their own contrast against each cell. */
.learning-chart svg text.corr-value { fill: inherit; font-size: 15px; font-weight: 600; }
.learning-chart svg text.corr-value[fill="#ffffff"] { fill: #fff; }
.learning-chart svg text.corr-value[fill="#20352f"] { fill: #20352f; }
