.learning-topics-heading{scroll-margin-top:12px;outline:none}.learning-topics-heading:focus-visible{outline:2px solid #416e7a;outline-offset:6px}.learning-topic-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.learning-topic{display:flex;flex-direction:column;border:1px solid #cedde1;border-radius:12px;padding:22px 24px;background:#f5f8f8;min-width:0;transition:background .2s,border-color .2s}.learning-topic:hover{background:#edf3f3;border-color:#8da9b0}.learning-topic[hidden]{display:none}.learning-topic-meta{display:flex;justify-content:space-between;gap:12px;font-size:13.75px;color:#758b94}.learning-topic h3{font-size:26.25px;font-weight:500;line-height:1.7;margin:16px 0 23px;text-wrap:pretty}.learning-topic-bottom{display:flex;justify-content:space-between;flex-wrap:wrap;gap:12px;font-size:15px;color:#416e7a;margin-top:auto}.topic-read-progress{display:inline-block;margin-left:12px;color:#71858b}.topic-page{padding-bottom:65px}.topic-page .container{max-width:920px}.topic-intro{padding-block:38px 26px;border-bottom:1px solid #dce4e8}.topic-intro .back-link{margin-bottom:23px}.topic-intro .eyebrow{margin-bottom:10px}.topic-intro h1{font-size:40px;line-height:1.65;margin:0 0 19px}.topic-intro-meta{display:flex;gap:24px;font-size:16.25px;color:#536e7b}.reading-local-note{font-size:13.75px;color:#7b8b96;margin:10px 0 0}.topic-lessons{padding-top:25px}.topic-lesson-list{list-style:none;margin:0;padding:0;display:grid;gap:15px}.topic-lesson-list li{margin:0;padding:0}.topic-lesson{display:block;border:1px solid #d5e0e5;border-radius:12px;padding:22px 25px;background:#f7f9fa;transition:background .2s}.topic-lesson:hover{background:#eef4f4}.topic-lesson-meta{display:flex;align-items:center;flex-wrap:wrap;gap:10px;font-size:13.75px;color:#627b88;margin-bottom:12px}.topic-exercise{margin-left:auto;padding:3px 9px;border:1px solid #d2dfe1;border-radius:20px;background:#fff}.lesson-read-badge{font-size:13.75px;font-weight:500;color:#3e7062;background:#e4f0e9;border:1px solid #c2dacf;border-radius:20px;padding:3px 10px;white-space:nowrap}.lesson-read-badge[hidden]{display:none!important}.topic-lesson h2{font-size:26.25px;font-weight:500;line-height:1.7;margin:0 0 10px;text-wrap:pretty}.topic-lesson p{font-size:16.25px;color:#6b7f8d;line-height:1.9;margin:0 0 16px}.topic-lesson-action{font-size:15px;color:#416e7a}.topic-lesson-action span{margin-left:8px}.article-reading-controls{display:flex;align-items:center;flex-wrap:wrap;gap:14px;margin-top:24px}.article-reading-controls button{font:inherit;font-size:15px;padding:8px 14px;border:1px solid #b8cbd0;border-radius:6px;background:#f1f6f5;color:#416e7a;cursor:pointer}.article-reading-controls button[aria-pressed=true]{background:#e4f0e9;color:#3e7062}.article-reading-controls p{font-size:13.75px;color:#7b8b96;margin:0}.article-reading-controls [role=status]{width:100%}.article-reading-controls [role=status]:empty{display:none}.lesson-end-marker{height:2px}.topic-page a:focus-visible,.branch-library a:focus-visible{outline:2px solid #416e7a;outline-offset:4px}.learning-topic-grid~.branch-empty{border-radius:12px}@media(max-width:700px){.learning-topic-grid{grid-template-columns:1fr}.learning-topic{padding:19px 20px}.learning-topic h3{font-size:25px;margin:13px 0 18px}.learning-topic-meta{font-size:12.5px}.topic-page{padding-bottom:40px}.topic-intro{padding-block:28px 22px}.topic-intro h1{font-size:33.75px}.topic-intro-meta{gap:16px;font-size:15px}.topic-lesson{padding:20px}.topic-lesson h2{font-size:25px}.topic-exercise{font-size:12.5px}.topic-lesson-meta{gap:8px}.learning-topics-heading{scroll-margin-top:12px}}

.article-body .lesson-practice-template {
  margin: 16px 0 24px;
  padding: 4px 0 4px 18px;
  border: 0;
  border-inline-start: 3px solid var(--accent);
  background: transparent;
  font: inherit;
  color: var(--text);
}

.article-body .lesson-practice-template p {
  margin: 0;
}

.article-body .lesson-practice-template p + p {
  margin-top: 6px;
}

.practice-table-scroll {
  margin: 25px 0;
  overflow-x: auto;
}

.practice-table-scroll:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.article-body .practice-table-scroll table {
  display: table;
  width: 100%;
  margin: 0;
}

.article-body .practice-table-scroll :is(th, td) {
  min-width: 0;
  padding: 8px 12px;
  overflow-wrap: normal;
}

.article-body .practice-table-scroll th[scope="row"] {
  background: transparent;
  font-weight: normal;
}

.article-body .practice-table-scroll th[scope="col"] {
  white-space: nowrap;
}

.article-body:is([data-reading-lesson],.markdown-note) img {
  max-width: 100%;
  height: auto;
}

.article-body:is([data-reading-lesson],.markdown-note) pre,
.note-preview-scroll pre {
  overflow-x: auto;
  padding: 14px 16px;
  background: #f0f4f7;
}

.markdown-note :is(h1, h2) {
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.55;
}

.markdown-note {
  overflow-wrap: anywhere;
}

.article-share {
  margin: 24px 0;
  color: var(--ink);
}

.article-share summary {
  width: fit-content;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}

.article-share-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.article-share-actions :is(a, button) {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 7px 12px;
  border: 1px solid #b8cbd0;
  border-radius: 8px;
  background: #f1f6f5;
  color: #274e58;
  font: inherit;
  cursor: pointer;
}

.article-share-actions :is(a, button):hover { background: #e4eded; }
.article-share :focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.article-share [hidden], .article-share-status:empty { display: none; }

.article-share-status, .article-share-url {
  margin: 8px 0 0;
  font-size: .875rem;
}

.article-share-url input {
  display: block;
  width: 100%;
  max-width: 32rem;
  margin-top: 4px;
}

.lesson-reading .article-body thead th {
  padding-inline: 9px;
  white-space: nowrap;
}

@media (min-width: 801px) {
  .lesson-reading :is(.article-header, .reading-layout) {
    width: calc(100% - clamp(48px, 6vw, 112px));
    max-width: var(--main-content-max-width, 1200px);
  }

  .lesson-reading .article-header :is(h1, p) {
    max-width: 1140px;
  }

  .lesson-reading .reading-layout {
    grid-template-columns: clamp(175px, 17vw, 235px) minmax(0, 1fr);
    gap: clamp(24px, 3.3vw, 55px);
  }
}

@media (max-width: 800px) {
  .lesson-reading .toc:not(:has(nav)) {
    display: none;
  }
}

.article-return {
  position: fixed;
  z-index: 29;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
}

@media (max-width: 800px) {
  .article-return {
    bottom: calc(68px + max(10px, env(safe-area-inset-bottom, 0px)));
  }
}

.article-return-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #327480;
  color: #fff;
  box-shadow: 0 3px 8px #162c4630;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
}

.article-return-link::before {
  content: '';
  width: 9px;
  height: 9px;
  border-top: 2px solid currentColor;
  border-left: 2px solid currentColor;
  transform: translateY(2px) rotate(45deg);
}

.article-return-link:is(:hover,:focus-visible) {
  background: #265d66;
  color: #fff;
}

.article-return-link:focus-visible {
  outline: 2px solid #265d66;
  outline-offset: 4px;
}
.news-card-meta .topic-exercise { margin-left: 0; }
.news-card-meta .news-publication-date { margin-left: auto; font-variant-numeric: tabular-nums; }

.branch-library :is(.learning-topic-grid, .branch-empty .button)[hidden] { display: none; }
.note-search-result h3 { margin: .45rem 0; line-height: 1.45; }
.note-search-result p { margin: 0 0 .7rem; color: var(--uj-text); font-size: .95rem; line-height: 1.65; }

.systems-breadcrumbs { display: flex; flex-wrap: wrap; gap: .35rem .6rem; margin-bottom: 1rem; font-size: .875rem; line-height: 1.7; }
.systems-breadcrumbs a, .systems-updated a { color: var(--uj-teal); text-decoration: underline; text-underline-offset: .2em; }
.systems-topic .container { max-width: 72rem; }
.systems-topic-summary { max-width: 42em; line-height: 1.8; }
.systems-topic-start, .systems-section-heading {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: end;
  gap: .75rem 1.5rem;
}
.systems-topic-links { display: flex; flex-wrap: wrap; gap: .55rem; }
.systems-topic-start { margin-top: 1.35rem; }
.systems-topic-progress { width: min(100%, 15rem); color: var(--uj-text); font-size: .875rem; }
.systems-topic-progress .reading-local-note { margin: 0; }
.systems-topic-progress progress {
  display: block;
  width: 100%;
  height: .5rem;
  margin-block: .3rem;
  accent-color: var(--uj-teal);
}
.systems-primary-link, .systems-secondary-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: .35rem .8rem;
  border: 1px solid var(--uj-teal);
  border-radius: 8px;
  color: var(--uj-teal);
  font-size: .9375rem;
  font-weight: 600;
  line-height: 1.45;
}
.systems-primary-link { background: var(--uj-teal); color: #fff; }
.systems-primary-link:hover { background: var(--uj-ink); color: #fff; }
.systems-secondary-link:hover { background: var(--uj-sage); }
.systems-topic-overview { margin-block: 2rem; }
.systems-topic :is(.systems-topic-overview h2, #topic-lessons-title) {
  margin: 0 0 .35rem;
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  line-height: 1.45;
}
.systems-topic-overview p { font-size: 1rem; line-height: 1.85; color: var(--uj-text); }
.systems-section-heading p { margin: 0; }
.systems-system-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .65rem;
  list-style: none;
  margin: 1rem 0;
  padding: 0;
}
.systems-system-grid a {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: .35rem;
  height: 100%;
  padding: .85rem 1rem;
  border: 1px solid var(--uj-line);
  border-top: 3px solid var(--uj-teal);
  border-radius: 10px;
  background: var(--uj-mist);
  color: var(--uj-text);
  font-size: .9375rem;
  line-height: 1.6;
}
.systems-system-grid a:hover { border-color: var(--uj-teal); background: var(--uj-sage); }
.systems-system-grid strong { color: var(--uj-ink); font-size: 1.1rem; }
.systems-system-need { color: var(--uj-teal); font-weight: 600; }
.systems-topic-overview .systems-updated { margin-bottom: 0; font-size: .875rem; }
.systems-topic .topic-lessons { padding-top: 1.25rem; border-top: 1px solid var(--uj-line); }
.systems-topic .topic-lesson-list { grid-auto-rows: 1fr; gap: .65rem; margin-top: 1rem; }
.systems-topic .topic-lesson-list li { min-width: 0; }
.systems-topic .topic-lesson { display: flex; flex-direction: column; height: 100%; padding: 1rem; background: #fff; }
.systems-topic .topic-lesson:hover { border-color: var(--uj-teal); background: var(--uj-mist); }
.systems-topic .topic-lesson h3 { margin: 0 0 .5rem; font-size: clamp(1.125rem, 2.1vw, 1.35rem); line-height: 1.5; text-wrap: pretty; }
.systems-topic .topic-lesson p { margin-bottom: .7rem; color: var(--uj-text); }
.systems-topic .topic-lesson-action { margin-top: auto; color: var(--uj-teal); text-decoration: underline; text-underline-offset: .2em; }

.site-inner main :is(.topic-page.systems-topic .topic-intro, .lesson-reading.systems-lesson .article-header).container { padding-block: clamp(1rem, 3vw, 2.2rem); }
.systems-lesson .article-meta { margin-bottom: .45rem; }
.systems-lesson .article-subtitle { line-height: 1.75; }
.systems-lesson .article-reading-controls { margin-top: .9rem; gap: .45rem .75rem; }
.systems-lesson .article-reading-controls button { min-height: 44px; }
.systems-lesson .reading-layout {
  grid-template-columns: minmax(0, 1fr);
  gap: .8rem;
  padding-top: 0;
}
.systems-lesson .toc {
  position: static;
  min-width: 0;
  padding: 0;
  border: 1px solid var(--uj-line);
  border-radius: 10px;
  background: var(--uj-mist);
}
.systems-toc summary { min-height: 44px; padding: .55rem .85rem; color: var(--uj-ink); font-weight: 650; cursor: pointer; }
.systems-toc nav { gap: .25rem; padding: .15rem .65rem .7rem; font-size: .9375rem; line-height: 1.5; }
.systems-toc nav a { display: block; padding: .4rem .55rem; }
.systems-toc nav a:is(:hover,.is-current) { background: #fff; color: var(--uj-teal); }
.systems-lesson .article-body { font-size: clamp(1.0625rem, 2.1vw, 1.1875rem); line-height: 1.95; }
.systems-lesson .article-body > h2:not(:first-child) {
  margin-block: 2rem .8rem;
  padding-top: .8rem;
  border-top: 1px solid var(--uj-line);
}
.systems-lesson .article-body h2 { font-size: clamp(1.4rem, 3.1vw, 1.95rem); line-height: 1.5; }
.systems-lesson .article-body h3 { font-size: clamp(1.18rem, 2.5vw, 1.45rem); line-height: 1.55; }
.systems-lesson .article-body blockquote { padding: .9rem 1rem; background: var(--uj-paper); font-size: inherit; }
.systems-lesson .article-body blockquote p:last-child { margin-bottom: 0; }
.systems-lesson .practice-table-scroll { max-width: 100%; border: 1px solid var(--uj-line); border-radius: 10px; }
.systems-lesson .practice-table-scroll table { font-size: .9375rem; line-height: 1.7; }
.systems-lesson .practice-table-scroll :is(th,td) { padding: .6rem; overflow-wrap: anywhere; }
.systems-lesson .practice-table-scroll thead th { background: var(--uj-sage); white-space: normal; }
.systems-lesson .practice-table-scroll tbody tr:nth-child(even) { background: var(--uj-mist); }
.systems-lesson .practice-table-scroll table:has(tr > :nth-child(4)) { min-width: 32rem; }
.article-body .systems-answer { padding: clamp(15px, 3vw, 25px); margin-bottom: 1.5rem; border: 1px solid #cbdcd5; border-inline-start: 4px solid var(--uj-teal); border-radius: 10px; background: #edf4f1; }
.article-body .systems-answer h2 { margin-top: 0; }
.article-body .systems-answer p { margin-bottom: 0; }
.article-body :is(.systems-questions,.systems-related,.systems-sources) { margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid #dce3df; }
.article-body .systems-questions details { margin-bottom: .5rem; padding: 0; border-radius: 8px; background: var(--uj-mist); }
.article-body .systems-questions summary { min-height: 44px; padding: .65rem .85rem; font-weight: 600; cursor: pointer; }
.article-body .systems-questions details p { margin: 0; padding: 0 .85rem .85rem; }
.article-body .systems-sources { font-size: 1rem; }
.systems-article-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
.systems-article-nav a { display: grid; padding: .75rem .9rem; border: 1px solid var(--uj-line); border-radius: 8px; background: var(--uj-mist); font-size: 1rem; line-height: 1.5; }
.systems-article-nav a:hover { border-color: var(--uj-teal); background: var(--uj-sage); }
.systems-article-nav a span { color: var(--uj-teal); font-size: .875rem; }
.systems-article-nav .systems-return-to-topic { grid-column: 1 / -1; justify-self: start; align-items: center; min-height: 44px; color: var(--uj-teal); }
.systems-topic :is(#systems-overview, #topic-lessons), .systems-lesson .article-body :is([data-lesson-heading], [id^="systems-"]) { scroll-margin-block-start: 12px; }

@media (min-width: 740px) {
  .systems-topic .topic-lesson-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 801px) {
  .site-inner main:is(.systems-topic, .systems-lesson) .container {
    width: calc(100% - 11.5rem);
    max-width: 68rem;
  }
}
@media (min-width: 960px) {
  .systems-system-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .systems-lesson .reading-layout {
    grid-template-columns: clamp(12rem, 21vw, 15rem) minmax(0, 1fr);
    gap: clamp(1.35rem, 4vw, 3.8rem);
  }
  .systems-lesson .toc { position: sticky; top: var(--site-header-height, 104px); }
  .systems-toc nav { max-height: min(60vh, 30rem); overflow-y: auto; }
}
@media (max-width: 520px) {
  .systems-system-grid, .systems-article-nav { grid-template-columns: minmax(0, 1fr); }
}
