/* Notes library: warm paper, legible mathematics and deliberate reading space. */
.notes-library {
  --nl-ink: #17241d;
  --nl-green: #174f3b;
  --nl-muted: #5d6b60;
  --nl-paper: #fffdf8;
  --nl-line: #deddd0;
  --nl-soft: #edf1e9;
  color: var(--nl-ink);
  min-width: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.notes-library.learning-view { width: min(1280px, calc(100% - 80px)); margin: 0 auto; padding: 28px 0 0; }
.notes-library[hidden] { display: none !important; }
.notes-library * { box-sizing: border-box; }
.notes-library a { color: inherit; text-decoration: none; }
.notes-library button, .notes-library input, .notes-library select { font: inherit; }
.notes-library button, .notes-library a, .notes-library summary, .notes-library select { -webkit-tap-highlight-color: transparent; }
.notes-library button { cursor: pointer; }
.notes-library :focus-visible { outline: 2px solid var(--nl-green); outline-offset: 4px; }
/* Route headings receive focus for screen readers without becoming visual controls. */
.notes-library [data-nl-heading]:focus { outline: none; }
.notes-library h1, .notes-library h2, .notes-library h3, .notes-library p { margin: 0; }
.notes-library h1, .nl-subject-card h2, .nl-course-card h3, .nl-component-card h3, .nl-reading-paper h2, .nl-empty h2 { font-family: Georgia, "Times New Roman", serif; font-weight: 500; }
.nl-shell { min-width: 0; }
.nl-preview { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; padding: 12px 16px; margin-bottom: 24px; border: 1px solid #e0d8bc; border-radius: 10px; background: #f7f2e1; color: #635026; font-size: 13px; line-height: 1.5; }
.nl-preview-dot { width: 7px; height: 7px; flex: 0 0 7px; border-radius: 100%; background: #947434; }
.nl-preview strong { font-weight: 650; }
.nl-preview > span:last-child { flex: 1 1 400px; }
.nl-breadcrumbs { font-size: 12px; color: var(--nl-muted); margin: 0 0 24px; line-height: 1.65; }
.nl-breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 6px 12px; padding: 0; margin: 0; list-style: none; }
.nl-breadcrumbs li { display: flex; gap: 12px; max-width: 100%; }
.nl-breadcrumbs li > span[aria-hidden] { color: #a5aa9f; }
.nl-breadcrumbs a:hover { color: var(--nl-green); text-decoration: underline; text-underline-offset: 4px; }
.nl-breadcrumbs [aria-current] { color: var(--nl-ink); }
.nl-hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin: 24px 0 32px; }
.nl-hero > div { min-width: 0; }
.nl-eyebrow { color: var(--nl-green); font-size: 11px; line-height: 1.6; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.nl-hero h1 { font-size: clamp(38px, 4.2vw, 58px); line-height: 1.14; letter-spacing: -.035em; margin: 10px 0 16px; max-width: 900px; text-wrap: balance; }
.nl-intro { max-width: 65ch; color: var(--nl-muted); font-size: 16px; line-height: 1.8; }
.nl-hero .nl-soft-link { flex: 0 0 auto; margin-bottom: 5px; }
.nl-soft-link, .nl-text-link { display: inline-flex; align-items: center; gap: 12px; font-size: 13px; font-weight: 650; color: var(--nl-green) !important; line-height: 1.6; min-height: 44px; }
.nl-soft-link { border-bottom: 1px solid #b5c4b8; }
.nl-soft-link:hover, .nl-text-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.nl-search { margin: 0 0 40px; }
.nl-search > label { display: block; font-size: 12px; font-weight: 650; margin-bottom: 9px; }
.nl-search-field { display: flex; align-items: center; gap: 16px; padding: 8px 8px 8px 20px; border: 1px solid #d6d8cc; border-radius: 12px; background: var(--nl-paper); box-shadow: 0 3px 10px #26372903; }
.nl-search-field:focus-within { border-color: #799781; box-shadow: 0 0 0 3px #174f3b0c; }
.nl-search-field svg { width: 21px; height: 21px; flex: 0 0 21px; color: #607566; }
.notes-library .nl-search-field input { flex: 1; min-width: 0; width: 100%; height: 44px; border: 0; border-radius: 0; background: transparent; color: var(--nl-ink); padding: 0; font-size: 15px; box-shadow: none; }
.nl-search-field input:focus { outline: none; }
.nl-search-field input::placeholder { color: #778279; opacity: 1; }
.nl-search-field button, .nl-button { display: inline-flex; justify-content: center; align-items: center; gap: 20px; min-height: 44px; padding: 11px 19px; border: 1px solid var(--nl-green); border-radius: 8px; background: var(--nl-green); color: #fffdf8 !important; font-weight: 650; font-size: 13px; line-height: 1.5; white-space: nowrap; }
.nl-search-field button:hover, .nl-button:hover { background: #123e2f; }
.nl-search-options { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 12px; color: var(--nl-muted); }
.nl-search-options > label { display: flex; align-items: center; gap: 8px; font-size: 12px; }
.notes-library .nl-search-options select, .notes-library .nl-reader-version select { min-height: 40px; width: auto; max-width: 100%; padding: 7px 30px 7px 10px; border: 1px solid var(--nl-line); border-radius: 7px; background-color: var(--nl-paper); color: var(--nl-ink); font-size: 12px; }
.nl-search-hint { font-size: 11px; margin-left: auto; }
.nl-section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin: 32px 0 16px; }
.nl-section-heading h2 { font-size: 19px; font-weight: 600; line-height: 1.5; letter-spacing: -.02em; }
.nl-section-heading > span { color: var(--nl-muted); font-size: 12px; }
.nl-subject-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.nl-subject-card { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 175px; align-items: center; gap: 12px; min-height: 276px; padding: 32px; background: var(--nl-green); color: #fffdf3 !important; border: 1px solid var(--nl-green); border-radius: 14px; overflow: hidden; transition: background 150ms ease, box-shadow 150ms ease; }
.nl-subject-card:only-child { grid-column: 1 / -1; max-width: 870px; grid-template-columns: minmax(0, 1fr) 250px; }
.nl-subject-card:hover { background: #1b5841; box-shadow: 0 10px 26px #174f3b13; }
.nl-subject-card .nl-eyebrow { color: #d2e1cb; }
.nl-subject-card h2 { font-size: 38px; line-height: 1.2; letter-spacing: -.02em; margin: 16px 0 12px; }
.nl-subject-card p:not(.nl-eyebrow) { max-width: 43ch; font-size: 14px; line-height: 1.8; color: #deeadc; }
.nl-subject-art { width: 100%; opacity: .88; color: #d6e4cd; }
.nl-subject-footer { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 28px; margin-top: 32px; font-size: 12px; color: #d2e1cb; }
.nl-subject-footer strong { color: #fffdf3; font-size: 13px; }
.nl-subject-footer strong span { margin-left: 10px; }
.nl-library-caption { display: flex; align-items: flex-start; gap: 12px; margin-top: 20px; color: var(--nl-muted); max-width: 780px; font-size: 13px; line-height: 1.8; }
.nl-library-caption > span { color: #6f8974; }
.nl-course-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.nl-course-card { display: flex; flex-direction: column; gap: 0; background: var(--nl-paper); border: 1px solid var(--nl-line); border-radius: 13px; padding: 28px; min-width: 0; transition: border-color 150ms ease, box-shadow 150ms ease; }
.nl-course-card:hover, .nl-component-card:hover { border-color: #94ab97; box-shadow: 0 8px 20px #18382106; }
.nl-course-kicker { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--nl-muted); font-size: 10px; font-weight: 650; letter-spacing: .08em; }
.nl-course-index { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid #dce4d6; border-radius: 50%; color: var(--nl-green); background: #f3f6ed; font-size: 12px; }
.nl-course-card h3 { font-size: 29px; line-height: 1.2; letter-spacing: -.025em; margin: 28px 0 14px; }
.nl-course-card > p { color: var(--nl-muted); font-size: 13px; line-height: 1.85; margin-bottom: 30px; }
.nl-course-bottom { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: auto; padding-top: 20px; border-top: 1px solid #e7e6dc; font-size: 12px; color: var(--nl-green); }
.nl-course-bottom small { display: block; font-size: 11px; color: var(--nl-muted); margin-top: 6px; }
.nl-course-bottom > span:last-child { font-size: 24px; }
.nl-pathway-note { margin-top: 28px; padding: 20px 0; border-top: 1px solid var(--nl-line); font-size: 13px; line-height: 1.8; }
.nl-pathway-note p { color: var(--nl-muted); margin-top: 4px; max-width: 85ch; }
.nl-component-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.nl-component-card { border: 1px solid var(--nl-line); border-radius: 12px; background: var(--nl-paper); padding: 25px; min-width: 0; transition: border-color 150ms ease, box-shadow 150ms ease; }
.nl-card-top { display: flex; justify-content: space-between; align-items: center; color: #667b68; font-size: 12px; }
.nl-card-top > span:last-child { font-size: 21px; }
.nl-component-card h3 { font-size: 25px; line-height: 1.27; margin: 24px 0 12px; }
.nl-component-card > p, .nl-card-note { color: var(--nl-muted); font-size: 12px; line-height: 1.7; }
.nl-card-note { display: block; margin-top: 12px; border-top: 1px solid #e5e6da; padding-top: 12px; }
.nl-unit-list, .nl-lesson-list { border: 1px solid var(--nl-line); border-radius: 12px; background: var(--nl-paper); overflow: hidden; }
.nl-unit-card { display: flex; align-items: center; gap: 22px; padding: 23px 26px; min-height: 98px; }
.nl-unit-card + .nl-unit-card, .nl-lesson-row + .nl-lesson-row { border-top: 1px solid #e7e7dc; }
.nl-unit-card:hover, .nl-lesson-row:hover { background: #f4f6ee; }
.nl-unit-index { flex: 0 0 27px; font-size: 12px; color: #7a897a; }
.nl-unit-card > div { flex: 1; min-width: 0; }
.nl-unit-card h3 { font-size: 17px; font-weight: 550; line-height: 1.4; }
.nl-unit-card p { margin-top: 7px; color: var(--nl-muted); font-size: 12px; }
.nl-unit-card > span:last-child { font-size: 22px; color: var(--nl-green); }
.nl-unit-overview { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(250px, .65fr); gap: 16px; margin: 30px 0 22px; }
.nl-unit-summary, .nl-unit-prerequisites { min-width: 0; padding: 22px 24px; border: 1px solid #dfe5d8; border-radius: 10px; background: #f4f7ef; }
.nl-unit-summary > p:not(.nl-eyebrow), .nl-unit-prerequisites > p:not(.nl-eyebrow) { color: var(--nl-muted); font-size: 13px; line-height: 1.8; }
.nl-unit-code { display: block; margin-top: 18px; color: #6d816d; font-size: 11px; letter-spacing: .04em; }
.nl-unit-prerequisites ul { margin: 12px 0 0; padding-left: 18px; }
.nl-unit-prerequisites li { margin: 6px 0; font-size: 13px; line-height: 1.6; }
.nl-unit-prerequisites a, .nl-unit-objectives a { color: var(--nl-green); text-decoration: underline; text-underline-offset: 3px; }
.nl-unit-prerequisites.is-start { background: #fafaf5; }
.nl-unit-objectives { margin: 0 0 28px; border: 1px solid var(--nl-line); border-radius: 10px; background: var(--nl-paper); overflow: hidden; }
.nl-unit-objectives > summary { display: flex; justify-content: space-between; gap: 16px; padding: 17px 21px; cursor: pointer; list-style: none; color: var(--nl-green); font-size: 13px; font-weight: 600; }
.nl-unit-objectives > summary::-webkit-details-marker { display: none; }
.nl-unit-objectives > summary > span:last-child { color: var(--nl-muted); font-size: 11px; font-weight: 500; }
.nl-unit-objectives ul { margin: 0; padding: 0; list-style: none; border-top: 1px solid #e7e7dc; }
.nl-unit-objectives li { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; padding: 13px 21px; border-top: 1px solid #eef0e8; font-size: 13px; line-height: 1.65; }
.nl-unit-objectives li:first-child { border-top: 0; }
.nl-unit-objectives li > span { min-width: 0; color: var(--nl-ink); }
.nl-unit-objectives li > a { flex: 0 0 auto; font-size: 11px; white-space: nowrap; }
.nl-lesson-row { display: flex; align-items: center; gap: 18px; padding: 21px 24px; min-width: 0; min-height: 94px; }
.nl-lesson-number { display: flex; align-items: center; justify-content: center; flex: 0 0 26px; color: #7b897c; font-size: 12px; }
.nl-lesson-number svg { width: 23px; height: 23px; color: #6c826d; }
.nl-lesson-copy { min-width: 0; flex: 1; }
.nl-lesson-copy strong { display: block; font-size: 15px; font-weight: 550; line-height: 1.5; }
.nl-row-context { display: block; color: var(--nl-green); font-size: 11px; line-height: 1.55; margin-bottom: 5px; }
.nl-row-subtitle { display: block; color: var(--nl-muted); font-size: 11px; line-height: 1.6; margin-top: 4px; }
.nl-row-arrow { margin-left: 8px; color: var(--nl-green); font-size: 19px; }
.nl-status { display: inline-flex; align-items: center; gap: 6px; width: fit-content; flex: 0 0 auto; border-radius: 5px; padding: 5px 8px; font-size: 10px; font-weight: 600; line-height: 1.5; white-space: nowrap; }
.nl-status.is-ready { background: #e7f0e4; color: #2b5837; }
.nl-status.is-draft { background: #f6eed9; color: #725920; }
.nl-status.is-planned { background: #eeefe8; color: #626d60; }
.nl-resume { display: flex; align-items: center; gap: 20px; border: 1px solid #cbd8c7; border-radius: 11px; padding: 21px 24px; margin-bottom: 28px; background: #f0f4e9; }
.nl-resume-icon { display: grid; place-items: center; width: 44px; height: 44px; flex: 0 0 44px; color: var(--nl-green); background: #e5eddc; border-radius: 10px; }
.nl-resume-icon svg { width: 24px; height: 24px; }
.nl-resume > div { min-width: 0; flex: 1; }
.nl-resume h2 { font-size: 16px; font-weight: 600; margin: 4px 0; line-height: 1.5; }
.nl-resume p:last-child { color: var(--nl-muted); font-size: 12px; line-height: 1.6; }
.nl-empty { max-width: 760px; margin: 48px auto; padding: 45px; border: 1px solid var(--nl-line); border-radius: 13px; background: var(--nl-paper); text-align: center; }
.nl-empty-mark { display: inline-flex; width: 44px; height: 44px; color: #728972; margin-bottom: 24px; }
.nl-empty-mark svg { width: 100%; height: 100%; }
.nl-empty h2 { font-size: 32px; line-height: 1.2; margin-bottom: 16px; }
.nl-empty > p { font-size: 14px; line-height: 1.8; color: var(--nl-muted); max-width: 54ch; margin: 0 auto 24px; }
.nl-empty .nl-button { margin-top: 4px; }
.nl-muted, .nl-small { color: var(--nl-muted); font-size: 12px; line-height: 1.8; }
.nl-year-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--nl-line); background: var(--nl-paper); border-radius: 10px; overflow: hidden; margin: 32px 0; }
.nl-year-tabs a { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 18px 24px; font-size: 14px; font-weight: 600; }
.nl-year-tabs a + a { border-left: 1px solid var(--nl-line); }
.nl-year-tabs a > span { font-size: 11px; color: #7b8b7d; }
.nl-year-tabs a.is-active { color: #fffdf8; background: var(--nl-green); }
.nl-year-tabs a.is-active > span { color: #c4d4bd; }
.nl-route-intro { margin: 28px 0; }
.nl-route-intro h2 { font-size: 24px; margin-bottom: 12px; }
.nl-route-intro p { color: var(--nl-muted); font-size: 14px; line-height: 1.8; max-width: 75ch; }
.nl-route-intro .nl-small { margin-top: 8px; font-size: 12px; }
.nl-route-group { border: 1px solid var(--nl-line); border-radius: 10px; background: var(--nl-paper); overflow: hidden; margin-bottom: 12px; }
.nl-route-group > summary { display: flex; justify-content: space-between; align-items: center; padding: 22px 26px; cursor: pointer; list-style: none; }
.nl-route-group > summary::-webkit-details-marker { display: none; }
.nl-route-group > summary strong { font-weight: 600; font-size: 16px; }
.nl-route-group > summary small { display: block; font-size: 11px; color: var(--nl-muted); margin-top: 7px; }
.nl-route-group > summary > span:last-child { font-size: 22px; font-weight: 400; color: var(--nl-green); }
.nl-route-group[open] > summary > span:last-child { transform: rotate(45deg); }
.nl-route-group .nl-lesson-list { border-radius: 0; border-width: 1px 0 0; }
.nl-optional-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.nl-optional-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 16px; padding: 24px; border: 1px solid var(--nl-line); border-radius: 10px; background: var(--nl-paper); }
.nl-optional-card > span:first-child { grid-column: 1 / -1; font-size: 11px; color: var(--nl-muted); }
.nl-optional-card strong { font-size: 15px; }
.nl-optional-card:hover { border-color: #94ab97; }
.nl-reader-grid { display: grid; grid-template-columns: 238px minmax(0, 1fr); gap: 34px; align-items: start; }
.nl-sidepanel { position: sticky; top: 104px; min-width: 0; }
.nl-menu-toggle { display: none; }
.nl-sidebody { max-height: calc(100vh - 132px); overflow-y: auto; overscroll-behavior: contain; padding: 12px 12px 24px 0; scrollbar-width: thin; }
.nl-sidebody > .nl-eyebrow { font-size: 10px; letter-spacing: .1em; }
.nl-sidebody > h2 { font-family: Georgia, serif; font-size: 22px; font-weight: 500; line-height: 1.3; margin: 10px 0 22px; }
.nl-unit-nav { padding-bottom: 20px; border-bottom: 1px solid var(--nl-line); }
.nl-unit-nav a { display: flex; align-items: flex-start; gap: 8px; padding: 12px 11px; font-size: 12px; line-height: 1.7; color: var(--nl-muted); border-radius: 6px; margin: 3px 0; }
.nl-unit-nav a > span { flex: 1; }
.nl-unit-nav a:hover, .nl-unit-nav a.is-current { color: var(--nl-green); background: #e8eee2; }
.nl-unit-nav a.is-current { font-weight: 600; }
.nl-unit-nav i { width: 5px; height: 5px; flex: 0 0 5px; border-radius: 50%; background: #5d7a56; margin: 8px 1px 0 0; }
.nl-unit-nav i.is-planned { border: 1px solid #939e8d; background: transparent; }
.nl-contents { padding: 24px 0; }
.nl-contents h3 { font-size: 11px; font-weight: 650; color: var(--nl-muted); margin-bottom: 12px; }
.nl-contents ol { margin: 0; padding: 0; list-style: none; }
.nl-contents a { display: block; padding: 8px 10px; margin: 2px 0; border-left: 1px solid #d8dfcf; color: var(--nl-muted); font-size: 11px; line-height: 1.7; }
.nl-contents a:hover, .nl-contents a.is-current { color: var(--nl-green); border-color: var(--nl-green); background: #eff2e8; }
.nl-back-unit { font-size: 12px; color: var(--nl-green) !important; display: block; min-height: 44px; padding-top: 8px; }
.nl-reading-paper { min-width: 0; max-width: 970px; border: 1px solid var(--nl-line); border-radius: 14px; background: var(--nl-paper); padding: 36px 48px 32px; }
.nl-reader-topline { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 20px; }
.nl-reader-topline > .nl-eyebrow { font-size: 10px; letter-spacing: .11em; }
.nl-reader-version { display: flex; align-items: center; gap: 8px; color: var(--nl-muted); font-size: 11px; }
.nl-reader-header h1 { font-size: clamp(32px, 3vw, 46px); line-height: 1.18; letter-spacing: -.035em; margin: 24px 0 20px; max-width: 23ch; text-wrap: balance; }
.nl-reader-header .nl-intro { font-size: 15px; line-height: 1.8; }
.nl-reader-meta { display: flex; flex-wrap: wrap; gap: 9px 16px; align-items: center; margin: 24px 0; color: var(--nl-muted); font-size: 11px; }
.nl-draft-note { padding: 13px 16px; background: #f8f2e3; border-left: 2px solid #b29a5a; border-radius: 0 6px 6px 0; color: #6d5b32; font-size: 12px; line-height: 1.7; }
.nl-prerequisites { border: 1px solid #e0e4d7; border-radius: 7px; margin-top: 22px; padding: 0 16px; color: var(--nl-muted); font-size: 13px; line-height: 1.8; }
.nl-prerequisites summary { cursor: pointer; color: var(--nl-green); padding: 13px 0; font-weight: 550; }
.nl-prerequisites ul { padding-left: 18px; margin: 8px 0 16px; }
.nl-prerequisites a { color: var(--nl-green); text-decoration: underline; text-underline-offset: 3px; }
.nl-prerequisites li > span { display: block; font-size: 11px; }
.nl-prose { max-width: 75ch; margin: 0 auto; font-size: 16px; line-height: 1.9; overflow-wrap: break-word; }
.nl-content-section { padding-top: 40px; margin-top: 36px; border-top: 1px solid #e3e5d9; scroll-margin-top: 112px; }
.nl-section-index { font-size: 10px; color: #80907d; font-weight: 600; letter-spacing: .1em; margin-bottom: 10px !important; }
.nl-content-section > h2 { font-size: 29px; line-height: 1.3; letter-spacing: -.02em; margin: 0 0 22px; }
.nl-prose p { margin-bottom: 16px; }
.nl-prose h3 { font-size: 19px; margin: 30px 0 13px; line-height: 1.4; }
.nl-prose h4, .nl-prose h5 { font-size: 17px; line-height: 1.5; margin: 24px 0 10px; }
.nl-prose ul, .nl-prose ol { padding-left: 24px; margin: 12px 0 24px; }
.nl-prose li { padding-left: 4px; margin: 7px 0; }
.nl-prose li::marker { color: #6d846a; }
.nl-prose a { color: var(--nl-green); text-decoration: underline; text-underline-offset: 3px; }
.nl-prose code { font-size: .9em; background: #eff0e8; border-radius: 3px; padding: 1px 4px; overflow-wrap: anywhere; }
.nl-prose pre { padding: 16px; overflow-x: auto; background: #eff0e8; border-radius: 7px; }
.nl-prose pre code { padding: 0; }
.nl-prose hr { border: 0; border-top: 1px solid var(--nl-line); margin: 28px 0; }
.nl-equation { max-width: 100%; min-width: 0; padding: 8px 16px; margin: 24px 0; background: #f4f5ee; border-radius: 7px; overflow-x: auto; }
.nl-prose .math-display, .nl-prose .katex-display { max-width: 100%; overflow-x: auto; overflow-y: hidden; }
.nl-prose .katex-display { margin: 1em 0; padding: 3px 0; }
.nl-prose .math-inline { max-width: 100%; }
.nl-prose .katex { position: relative; }
.nl-teaching-tip { padding: 18px 20px; border-left: 2px solid #8aa47a; background: #f0f4e9; margin: 24px 0; border-radius: 0 6px 6px 0; }
.nl-table-scroll { max-width: 100%; overflow-x: auto; margin: 24px 0; border: 1px solid #dce1d4; border-radius: 8px; }
.nl-prose table { border-collapse: collapse; width: 100%; min-width: 420px; font-size: 13px; line-height: 1.8; }
.nl-prose th, .nl-prose td { padding: 13px 16px; border-bottom: 1px solid #e2e6db; text-align: left; vertical-align: top; }
.nl-prose thead th { font-weight: 650; color: #305438; background: #eef3e7; }
.nl-prose tbody th { font-weight: 550; }
.nl-prose tr:last-child th, .nl-prose tr:last-child td { border-bottom: 0; }
.nl-figure { margin: 30px 0; padding: 20px 16px 14px; background: #fafbf5; border: 1px solid #e2e6d7; border-radius: 10px; }
.nl-media-scroll { width: 100%; overflow-x: auto; }
.nl-figure img { display: block; width: 100%; max-width: 640px; min-width: 300px; height: auto; margin: 0 auto; }
.nl-figure img[src$=".svg"] { min-width: 480px; }
.nl-media-scroll:focus-visible { outline: 2px solid var(--nl-green); outline-offset: 3px; }
.nl-diagram-scroll-hint { display: none; }
@media (max-width: 520px) {
  .nl-figure .nl-diagram-scroll-hint { display: block; margin: 10px 0 0; color: var(--nl-muted); font-size: 11px; }
}
.nl-figure figcaption { font-size: 12px; line-height: 1.8; color: var(--nl-muted); padding-top: 15px; }
.nl-figure figcaption a { display: inline-block; margin-left: 5px; }
.nl-media-unavailable { color: var(--nl-muted); }
.nl-prose .nl-worked-example { padding: 26px; margin-top: 24px; border: 1px solid #d8e2ce; border-radius: 10px; background: #f4f7ee; }
.nl-worked-example > .nl-eyebrow { font-size: 10px; margin-bottom: 9px; }
.nl-worked-example h2 { font-size: 27px; }
.nl-example-question { padding-bottom: 10px; margin-bottom: 20px; border-bottom: 1px solid #dbe3d2; }
.nl-example-question p { margin-bottom: 12px; }
.nl-prose .nl-example-steps { padding-left: 22px; margin-bottom: 24px; }
.nl-example-steps > li { padding-left: 8px; margin: 17px 0; }
.nl-example-steps > li::marker { color: #55774d; font-size: 12px; font-weight: 700; }
.nl-example-steps > li > p:last-child { margin-bottom: 0; }
.nl-example-answer { padding: 16px 19px; background: #e7efdf; border-radius: 7px; margin: 22px 0 18px; }
.nl-example-answer > span, .nl-example-check > span { display: block; color: #426236; font-size: 11px; line-height: 1.5; font-weight: 700; margin-bottom: 9px; }
.nl-example-answer > p:last-child, .nl-example-check > p:last-child { margin: 0; }
.nl-example-check { font-size: 14px; color: #465e42; line-height: 1.85; }
.nl-summary-section { padding: 26px !important; border: 1px solid #dbe2d2; border-radius: 9px; background: #f3f5eb; }
.nl-summary-section li { margin-bottom: 12px; }
.nl-section-sources { font-size: 12px; line-height: 1.7; color: var(--nl-muted); margin-top: 26px; border-top: 1px solid #e0e4d7; }
.nl-section-sources > summary { cursor: pointer; width: fit-content; padding: 13px 0; }
.nl-section-sources > summary > span { display: inline-flex; align-items: center; justify-content: center; font-size: 10px; min-width: 18px; height: 18px; border-radius: 4px; background: #e9eddf; margin-left: 5px; }
.nl-prose .nl-section-sources ul, .nl-prose .nl-all-sources ul { list-style: none; margin: 0; padding: 0; }
.nl-prose .nl-section-sources li, .nl-prose .nl-all-sources li { padding: 12px 0; margin: 0; border-bottom: 1px solid #e1e4d9; }
.nl-prose .nl-section-sources li:last-child, .nl-prose .nl-all-sources li:last-child { border-bottom: 0; }
.nl-section-sources li > div > span, .nl-all-sources li > div > span { display: block; margin-top: 4px; font-size: 11px; color: var(--nl-muted); }
.nl-section-sources li p, .nl-all-sources li p { font-size: 12px; margin: 5px 0; }
.nl-section-sources li small, .nl-all-sources li small { font-size: 10px; color: var(--nl-muted); }
.nl-all-sources { margin-top: 40px; border-top: 1px solid #dce2d3; padding: 4px 0; font-size: 13px; scroll-margin-top: 112px; }
.nl-all-sources > summary { display: flex; justify-content: space-between; gap: 12px; padding: 18px 0; font-size: 14px; font-weight: 600; color: var(--nl-green); cursor: pointer; list-style: none; }
.nl-all-sources > summary::-webkit-details-marker { display: none; }
.nl-all-sources[open] > summary > span:last-child { transform: rotate(45deg); }
.nl-next-previous { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; border-top: 1px solid var(--nl-line); padding-top: 24px; margin-top: 24px; }
.nl-next-previous a { display: flex; flex-direction: column; justify-content: space-between; padding: 16px; border: 1px solid #e0e4d7; border-radius: 8px; gap: 9px; min-height: 95px; }
.nl-next-previous a:last-child { text-align: right; }
.nl-next-previous a:hover { background: #f1f5e9; border-color: #a7baa0; }
.nl-next-previous span { font-size: 11px; color: var(--nl-muted); }
.nl-next-previous strong { color: var(--nl-green); font-size: 13px; line-height: 1.65; font-weight: 550; }
.nl-practice-link { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 32px; border: 1px solid #d6e0ce; border-radius: 10px; background: #edf3e5; padding: 26px; }
.nl-practice-link h2 { font-size: 23px; margin: 9px 0; font-family: Georgia, serif; font-weight: 500; }
.nl-practice-link p:last-child { color: var(--nl-muted); font-size: 13px; line-height: 1.7; }
.nl-reading-paper .nl-practice-link { padding: 20px; }
.nl-reading-paper .nl-practice-link h2 { font-size: 21px; }
.nl-show-more { display: flex; justify-content: center; margin-top: 24px; }
.nl-show-more button { min-height: 44px; padding: 12px 24px; border: 1px solid #cbd7c1; border-radius: 8px; background: var(--nl-paper); color: var(--nl-green); font-size: 13px; font-weight: 550; }
.nl-show-more button span { color: var(--nl-muted); font-size: 11px; padding-left: 12px; }
.nl-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 24px 0 30px; border-top: 1px solid var(--nl-line); margin-top: 56px; color: #71806e; font-size: 11px; line-height: 1.7; }
.nl-footer > span:first-child { font-weight: 650; color: #5c7458; }
.nl-loading { display: flex; flex-direction: column; align-items: center; gap: 20px; min-height: 420px; justify-content: center; color: var(--nl-muted); font-size: 14px; }
.nl-loading > span { width: 36px; height: 36px; color: #78916d; animation: nl-breathe 1.6s ease-in-out infinite alternate; }
.nl-loading svg { width: 100%; height: 100%; }
@keyframes nl-breathe { from { opacity: .35; } to { opacity: 1; } }
@media (max-width: 1100px) {
  .notes-library.learning-view { width: calc(100% - 56px); }
  .nl-course-grid { gap: 16px; }
  .nl-course-card { padding: 24px; }
  .nl-course-card h3 { font-size: 26px; }
  .nl-reader-grid { grid-template-columns: 204px minmax(0, 1fr); gap: 24px; }
  .nl-reading-paper { padding: 28px 32px; }
  .nl-component-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nl-search-hint { flex-basis: 100%; margin-top: -5px; }
  .nl-hero { align-items: flex-start; }
  .nl-hero .nl-soft-link { max-width: 165px; flex: 0 0 165px; margin-top: 15px; }
}
@media (max-width: 900px) {
  .nl-reader-grid { display: block; }
  .nl-sidepanel { position: static; margin-bottom: 20px; }
  .nl-menu-toggle { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 50px; padding: 13px 18px; border: 1px solid var(--nl-line); border-radius: 9px; background: #f1f4e9; color: var(--nl-green); font-size: 13px; font-weight: 600; }
  .nl-menu-toggle > span:first-child { display: flex; align-items: center; gap: 10px; }
  .nl-menu-toggle svg { width: 20px; height: 20px; }
  .nl-menu-toggle > span:last-child { font-size: 22px; line-height: 1; font-weight: 400; }
  .nl-sidebody { display: none; max-height: min(65vh, 640px); background: var(--nl-paper); border: 1px solid var(--nl-line); border-radius: 0 0 9px 9px; padding: 24px; }
  .nl-sidepanel.is-open .nl-sidebody { display: block; }
  .nl-sidepanel.is-open .nl-menu-toggle { border-radius: 9px 9px 0 0; border-bottom: 0; }
  .nl-sidepanel.is-open .nl-menu-toggle > span:last-child { transform: rotate(45deg); }
  .nl-unit-nav a, .nl-contents a { font-size: 13px; min-height: 44px; }
  .nl-sidebody > h2 { font-size: 25px; }
  .nl-reading-paper { max-width: none; padding: 32px 40px; }
  .nl-course-grid { grid-template-columns: 1fr; }
  .nl-course-card { display: grid; grid-template-columns: minmax(0, 1fr) 1fr; gap: 12px 28px; }
  .nl-course-kicker { grid-column: 1; justify-content: flex-start; }
  .nl-course-card h3 { grid-column: 1; font-size: 29px; margin: 8px 0; }
  .nl-course-card > p { grid-column: 2; grid-row: 1 / 3; align-self: center; margin: 0; }
  .nl-course-bottom { grid-column: 1 / -1; margin-top: 8px; padding-top: 16px; }
  .nl-course-bottom small { display: inline; margin-left: 16px; }
  .nl-subject-card:only-child { grid-template-columns: minmax(0, 1fr) 200px; }
  .nl-year-tabs a { padding: 16px; gap: 9px; font-size: 13px; }
  .nl-resume { flex-wrap: wrap; }
  .nl-resume > .nl-text-link { margin-left: 64px; margin-top: -8px; }
  .nl-content-section, .nl-all-sources { scroll-margin-top: 96px; }
}
@media (max-width: 620px) {
  .notes-library.learning-view { width: calc(100% - 32px); padding-top: 18px; }
  .nl-preview { margin-bottom: 20px; font-size: 11px; gap: 6px 8px; padding: 10px 12px; }
  .nl-preview > span:last-child { flex-basis: 100%; font-size: 11px; }
  .nl-breadcrumbs { font-size: 10px; margin-bottom: 20px; }
  .nl-breadcrumbs ol, .nl-breadcrumbs li { gap: 5px 8px; }
  .nl-hero { display: block; margin: 16px 0 26px; }
  .nl-hero h1 { font-size: 39px; margin: 8px 0 14px; }
  .nl-eyebrow { font-size: 10px; }
  .nl-intro { font-size: 14px; line-height: 1.8; }
  .nl-hero .nl-soft-link { max-width: none; margin-top: 16px; }
  .nl-search { margin-bottom: 28px; }
  .nl-search-field { gap: 10px; padding: 7px 7px 7px 13px; border-radius: 9px; }
  .nl-search-field svg { width: 18px; height: 18px; flex-basis: 18px; }
  .notes-library .nl-search-field input { font-size: 16px; height: 44px; }
  .nl-search-field button { font-size: 12px; gap: 0; min-height: 42px; padding: 10px 13px; }
  .nl-search-field button > span { display: none; }
  .nl-search-options { gap: 8px 12px; }
  .nl-search-options > label { font-size: 11px; flex: 1 1 auto; }
  .notes-library .nl-search-options select { min-width: 0; width: auto; max-width: 245px; flex: 1; font-size: 12px; }
  .nl-search-hint { font-size: 10px; margin: 0; }
  .nl-section-heading { margin-top: 28px; flex-wrap: wrap; gap: 4px 12px; }
  .nl-section-heading h2 { font-size: 17px; }
  .nl-section-heading > span { font-size: 11px; }
  .nl-subject-grid { display: block; }
  .nl-subject-card, .nl-subject-card:only-child { display: block; position: relative; min-height: 277px; padding: 26px 24px; }
  .nl-subject-card h2 { position: relative; z-index: 1; font-size: 35px; }
  .nl-subject-card p:not(.nl-eyebrow) { max-width: 28ch; font-size: 13px; position: relative; z-index: 1; }
  .nl-subject-art { position: absolute; width: 145px; right: -15px; bottom: 24px; opacity: .25; }
  .nl-subject-footer { margin-top: 30px; gap: 10px 18px; position: relative; z-index: 1; }
  .nl-subject-footer strong { font-size: 12px; }
  .nl-library-caption { font-size: 12px; }
  .nl-course-card { display: flex; padding: 24px; gap: 0; }
  .nl-course-card h3 { font-size: 29px; margin: 22px 0 13px; }
  .nl-course-card > p { margin-bottom: 24px; }
  .nl-course-bottom { margin-top: auto; }
  .nl-course-bottom small { display: block; margin: 6px 0 0; }
  .nl-pathway-note { font-size: 12px; }
  .nl-component-grid { grid-template-columns: 1fr; gap: 12px; }
  .nl-component-card { padding: 22px; }
  .nl-component-card h3 { margin-top: 15px; font-size: 26px; }
  .nl-unit-card { padding: 20px 17px; gap: 13px; }
  .nl-unit-index { flex-basis: 21px; font-size: 11px; }
  .nl-unit-card h3 { font-size: 15px; }
  .nl-unit-card p { font-size: 11px; line-height: 1.6; }
  .nl-unit-overview { grid-template-columns: 1fr; gap: 10px; margin-top: 24px; }
  .nl-unit-summary, .nl-unit-prerequisites { padding: 19px 18px; }
  .nl-unit-objectives li { align-items: flex-start; flex-direction: column; gap: 7px; padding: 13px 17px; }
  .nl-unit-objectives li > a { white-space: normal; }
  .nl-lesson-row { display: grid; grid-template-columns: 20px minmax(0, 1fr) 14px; gap: 8px 12px; padding: 18px 16px; }
  .nl-lesson-number { grid-row: 1; align-self: start; padding-top: 4px; font-size: 10px; }
  .nl-lesson-number svg { width: 19px; height: 19px; }
  .nl-lesson-copy strong { font-size: 14px; }
  .nl-lesson-row .nl-status { grid-column: 2; grid-row: 2; font-size: 10px; }
  .nl-row-arrow { grid-column: 3; grid-row: 1 / 3; margin-left: 0; font-size: 18px; }
  .nl-resume { padding: 18px; gap: 14px; }
  .nl-resume-icon { display: none; }
  .nl-resume h2 { font-size: 15px; }
  .nl-resume > .nl-text-link { margin: 0; font-size: 12px; min-height: 36px; }
  .nl-empty { padding: 32px 22px; margin: 28px auto; }
  .nl-empty h2 { font-size: 29px; }
  .nl-empty > p { font-size: 13px; }
  .nl-year-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 24px 0; }
  .nl-year-tabs a { min-height: 55px; }
  .nl-year-tabs a:nth-child(3) { border-left: 0; }
  .nl-year-tabs a:nth-child(n+3) { border-top: 1px solid var(--nl-line); }
  .nl-route-group > summary { padding: 18px; }
  .nl-route-group > summary strong { font-size: 15px; }
  .nl-optional-grid { grid-template-columns: 1fr; }
  .nl-reading-paper { padding: 24px 20px; border-radius: 11px; }
  .nl-reader-header h1 { font-size: 34px; line-height: 1.16; margin: 20px 0 18px; }
  .nl-reader-header .nl-intro { font-size: 14px; }
  .nl-reader-topline { gap: 14px; }
  .nl-reader-topline > .nl-eyebrow { font-size: 9px; }
  .nl-reader-version { font-size: 11px; }
  .notes-library .nl-reader-version select { min-height: 38px; padding-top: 6px; padding-bottom: 6px; }
  .nl-reader-meta { gap: 8px 12px; font-size: 10px; margin: 20px 0; }
  .nl-draft-note { padding: 12px; font-size: 11px; }
  .nl-prerequisites { font-size: 12px; padding: 0 12px; }
  .nl-prose { font-size: 15px; line-height: 1.9; }
  .nl-content-section { margin-top: 30px; padding-top: 30px; }
  .nl-content-section > h2 { font-size: 27px; margin-bottom: 18px; }
  .nl-prose h3 { font-size: 18px; }
  .nl-prose ul, .nl-prose ol { padding-left: 20px; }
  .nl-equation { padding: 5px 10px; margin: 20px 0; }
  .nl-prose .katex { font-size: 1.08em; }
  .nl-teaching-tip { padding: 15px; }
  .nl-figure { padding: 12px 10px; margin: 24px 0; }
  .nl-figure figcaption { font-size: 11px; }
  .nl-prose .nl-worked-example { padding: 20px 16px; margin-left: -5px; margin-right: -5px; }
  .nl-worked-example h2 { font-size: 25px; }
  .nl-example-answer { padding: 14px; }
  .nl-example-check { font-size: 13px; }
  .nl-summary-section { padding: 20px 16px !important; }
  .nl-all-sources > summary { font-size: 13px; }
  .nl-next-previous { gap: 10px; }
  .nl-next-previous a { padding: 12px; }
  .nl-next-previous strong { font-size: 12px; }
  .nl-next-previous span { font-size: 10px; }
  .nl-practice-link { align-items: flex-start; flex-direction: column; gap: 18px; padding: 22px; }
  .nl-footer { margin-top: 36px; font-size: 10px; gap: 6px; padding-bottom: 24px; }
  .nl-loading { min-height: 320px; }
}
@media (prefers-reduced-motion: reduce) {
  .notes-library *, .notes-library *::before, .notes-library *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media print {
  .nl-sidepanel, .nl-preview, .nl-footer, .nl-next-previous, .nl-practice-link, .nl-breadcrumbs, .nl-reader-version { display: none !important; }
  .notes-library.learning-view { width: 100%; }
  .nl-reader-grid { display: block; }
  .nl-reading-paper { border: 0; padding: 0; }
  .nl-content-section { break-inside: auto; }
  .nl-figure, .nl-example-answer { break-inside: avoid; }
}
