.path-link.active { background: #edf2e7; color: #4b6946; }
.course-section { margin-top: 39px; }
.new-stories { margin-top: 42px; }
.new-story-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 23px; }
.new-story-card { display: flex; flex-direction: column; align-items: flex-start; gap: 13px; min-width: 0; padding: 24px; text-align: left; border: 1px solid #e0e6dd; border-radius: 13px; background: #fffdf7; color: #28394e; }
.new-story-card:hover { border-color: #99b286; background: #f7f9f1; }
.new-story-card:focus-visible { outline: 3px solid #557c61; outline-offset: 4px; }
.new-story-category { color: #56704e; font-size: 12px; line-height: 1.8; }
.new-story-card > strong { font-size: 19px; line-height: 1.85; }
.new-story-description { font-size: 15px; line-height: 1.95; color: #60705f; }
.new-story-action { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; margin-top: auto; padding-top: 5px; font-size: 14px; color: #4d6d48; }
.new-story-action .icon { width: 18px; height: 18px; }
@media (max-width: 760px) {
  .new-story-grid { grid-template-columns: 1fr; gap: 14px; }
  .new-story-card { padding: 22px; }
}
.course-total { font-size: 12px; color: #718473; white-space: nowrap; }
.course-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 23px; }
.course-card { display: flex; flex-direction: column; padding: 24px 22px 20px; border: 1px solid #dfe8d8; border-radius: 13px; background: #f6f9f1; }
.course-intermediate { background: #f4f5fb; border-color: #e0e3ef; }
.course-advanced { background: #f1f4f8; border-color: #dde4ec; }
.course-card-top { display: flex; align-items: center; justify-content: space-between; gap: 9px; }
.course-card-top > span:first-child { font: 11px monospace; letter-spacing: .11em; color: #87957b; }
.level-badge { display: inline-flex; align-items: center; justify-content: center; width: max-content; max-width: 100%; font-size: 12px; font-weight: 500; line-height: 1.7; padding: 3px 10px; border-radius: 5px; border: 1px solid #d6e3cd; background: #eaf2e1; color: #56734d; white-space: nowrap; }
.level-intermediate { color: #6b6299; background: #eeebf8; border-color: #ded8ed; }
.level-advanced { color: #4e688b; background: #e5ecf5; border-color: #d0ddeb; }
.course-card h3 { font-size: 21px; line-height: 1.8; letter-spacing: .01em; margin: 19px 0 10px; font-weight: 600; }
.course-goal { font-size: 15px; line-height: 1.95; margin: 0 0 12px; color: #5b6e59; }
.course-intermediate .course-goal { color: #6c6d84; }
.course-advanced .course-goal { color: #61738b; }
.course-audience { font-size: 13px; line-height: 1.95; color: #7c8775; margin: 0 0 24px; }
.course-progress { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; color: #7a8774; margin-top: auto; margin-bottom: 8px; }
.course-progress-track { background: #e4eadf; height: 5px; border-radius: 20px; overflow: hidden; }
.course-progress-track > span { display: block; height: 100%; border-radius: inherit; background: #99b286; }
.course-intermediate .course-progress-track { background: #e5e3ee; }
.course-intermediate .course-progress-track > span { background: #a99cc6; }
.course-advanced .course-progress-track { background: #dde5ee; }
.course-advanced .course-progress-track > span { background: #8ca3bf; }
.course-card button { display: flex; align-items: center; justify-content: space-between; text-align: left; gap: 10px; min-height: 46px; width: 100%; border-top: 1px solid #dce5d5; margin-top: 20px; padding: 14px 0 0; font-size: 14px; line-height: 1.8; color: #57724b; }
.course-card button:hover { color: #25334b; }
.course-intermediate button { color: #74669a; border-color: #dfdceb; }
.course-advanced button { color: #58708e; border-color: #d7e1ec; }
.course-card button .icon { width: 17px; height: 17px; }
.level-filters { display: flex; flex-wrap: wrap; gap: 9px; border-bottom: 1px solid #e5e9e1; padding-bottom: 18px; margin-top: 27px; }
.level-filter { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 10px 15px; min-height: 45px; font-size: 14px; color: #788275; border-radius: 7px; background: #f5f7f1; border: 1px solid #e1e7db; }
.level-filter > span { font: 12px monospace; opacity: .75; }
.level-filter:hover { background: #ebf1e5; }
.level-filter.active { color: white; background: #2b3d52; border-color: #2b3d52; }
.level-filter[data-level=intermediate].active { background: #75658e; border-color: #75658e; }
.level-filter[data-level=advanced].active { background: #526c89; border-color: #526c89; }
.filter-row { margin-top: 18px; }
.lesson-card { display: flex; flex-direction: column; }
.lesson-art { flex-shrink: 0; }
.card-main { flex: 1; display: flex; flex-direction: column; }
.card-main > .card-depth { margin-bottom: 17px; }
.card-main > .card-meta { margin-top: auto; width: 100%; }
.card-level { position: absolute; left: 14px; bottom: 10px; }
.card-level > .level-badge { font-size: 11px; padding: 2px 8px; background: #f4f9eced; }
.card-level > .level-intermediate { background: #f4effced; }
.card-level > .level-advanced { background: #eef3fbed; }
.lesson-level-guide { display: flex; align-items: flex-start; gap: 12px; margin: 0 0 24px; padding: 17px 20px; background: #f3f6f0; border-radius: 9px; }
.lesson-level-guide .level-badge { flex-shrink: 0; margin-top: 1px; }
.lesson-level-guide > p { margin: 0; color: #657560; font-size: 15px; line-height: 1.95; }
.lesson-prerequisites { border: 1px solid #dde4d7; border-radius: 10px; padding: 19px 23px; margin: 0 0 28px; }
.lesson-prerequisites > summary { cursor: pointer; font-size: 16px; color: #617957; font-weight: 500; line-height: 1.9; }
.lesson-prerequisites > p { font-size: 14px; line-height: 1.9; color: #81917a; margin: 14px 0; }
.lesson-prerequisites > div { display: flex; flex-direction: column; gap: 9px; }
.lesson-prerequisites button { display: flex; align-items: center; gap: 10px; text-align: left; padding: 13px 15px; background: #f7f9f3; border-radius: 7px; border: 1px solid #e2e9da; line-height: 1.9; font-size: 15px; }
.lesson-prerequisites button:hover { background: #edf3e6; }
.lesson-prerequisites button > small { margin-left: auto; font-size: 12px; color: #7e9271; white-space: nowrap; }
.lesson-prerequisites button .icon { width: 15px; height: 15px; color: #789064; }
.code-example { margin: 27px 0; border-radius: 10px; overflow: hidden; border: 1px solid #2b405b; background: #25364d; }
.code-example figcaption { display: flex; align-items: center; justify-content: space-between; gap: 17px; padding: 14px 19px; border-bottom: 1px solid #ffffff18; color: #d4deeb; }
.code-example figcaption strong { font-size: 14px; font-weight: 500; line-height: 1.8; }
.code-example figcaption span { color: #a5b8cf; font: 11px monospace; text-transform: uppercase; white-space: nowrap; }
.code-example pre { padding: 21px; margin: 0; overflow-x: auto; max-width: 100%; color: #edf3e7; font: 15px/1.95 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; tab-size: 2; }
.code-example code { font: inherit; }
body.large-text .code-example pre { font-size: 17px; }
@media (min-width: 1081px) and (max-height: 820px) {
  .sidebar-bottom { padding-top: 20px; }
  .sidebar-note { display: none; }
  .sidebar-footer { margin-top: 7px; }
}
.glossary-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 13px; }
.glossary-card-top > small { min-width: 0; }
.glossary-card-top .level-badge { font-size: 10px; padding: 2px 7px; flex-shrink: 0; }
@media (max-width: 1350px) and (min-width: 1081px) {
  .course-grid { gap: 12px; }
  .course-card { padding: 22px 17px 18px; }
  .course-card h3 { font-size: 19px; }
  .course-goal { font-size: 14px; }
  .course-audience { font-size: 12px; }
  .course-card button { font-size: 13px; }
  .course-card-top > span:first-child { font-size: 10px; }
  .course-card-top .level-badge { font-size: 11px; padding: 3px 7px; }
}
@media (max-width: 760px) {
  .course-grid { grid-template-columns: 1fr; gap: 16px; }
  .course-card { padding: 23px 25px 19px; }
  .course-card h3 { margin-top: 14px; font-size: 24px; }
  .course-goal { font-size: 16px; margin-bottom: 9px; }
  .course-audience { font-size: 14px; margin-bottom: 18px; }
  .course-progress { font-size: 13px; }
  .course-card button { font-size: 15px; margin-top: 17px; }
  .course-total { font-size: 12px; }
  .level-filter { font-size: 13px; padding: 10px 12px; gap: 7px; }
  .level-filters { gap: 8px; }
  .lesson-level-guide { padding: 16px 18px; gap: 10px; }
  .lesson-level-guide > p { font-size: 14px; }
  .lesson-prerequisites { padding: 18px 20px; }
  .lesson-prerequisites > summary { font-size: 15px; }
  .lesson-prerequisites button { font-size: 14px; padding: 12px; }
}
@media (max-width: 560px) {
  .course-card h3 { font-size: 23px; }
  .course-card { padding: 22px; }
  .level-filter { font-size: 12px; padding: 10px; }
  .level-filter > span { font-size: 11px; }
  .lesson-level-guide { flex-direction: column; gap: 9px; padding: 17px 18px; }
  .lesson-level-guide > p { font-size: 15px; }
  .lesson-prerequisites { padding: 17px 18px; }
  .lesson-prerequisites button { font-size: 14px; flex-wrap: wrap; }
  .lesson-prerequisites button > span { width: 100%; }
  .lesson-prerequisites button > small { margin-left: 0; }
  .code-example figcaption { padding: 13px 16px; align-items: flex-start; }
  .code-example figcaption strong { font-size: 13px; }
  .code-example pre { padding: 18px; font-size: 15px; }
}
