@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;500;600&display=swap");

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #ffffff;
  color: #111;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

body.nav-open {
  overflow: hidden;
}

body.flash-open {
  overflow: hidden;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 32px;
  border-bottom: 1px solid #e5e5e5;
  font-weight: 500;
  letter-spacing: 0.02em;
  gap: 12px;
}

.nav-left {
  font-weight: 600;
  letter-spacing: 0.04em;
}

.nav-center {
  display: flex;
  list-style: none;
  gap: 24px;
  padding: 0;
  margin: 0;
}

.nav-center li {
  cursor: pointer;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-size: 13px;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid #e6e6e6;
  background: #fff;
  padding: 6px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.nav-toggle-bar {
  display: block;
  width: 24px;
  height: 2px;
  background: #111;
  margin: 3px 0;
  border-radius: 999px;
}

.nav-icon {
  width: 20px;
  display: inline-flex;
  justify-content: center;
  font-size: 16px;
}

.nav-center li:hover {
  text-decoration: underline;
  text-underline-offset: 6px;
}

.hero {
  padding: 120px 32px;
  text-align: center;
}

.hero h1 {
  font-size: 56px;
  margin-bottom: 16px;
  font-weight: 600;
}

.hero p {
  font-size: 20px;
  color: #444;
}


.page {
  max-width: 1080px;
  margin: 0 auto;
  padding: 48px 32px 96px;
  width: 100%;
}

#footer {
  margin-top: auto;
  width: 100%;
}

.site-footer {
  padding: 18px 32px 28px;
  text-align: center;
  font-size: 12px;
  color: #777;
  border-top: 1px solid #eee;
}

.page-head {
  margin: 24px 0 28px;
}

.page-head h1 {
  margin: 0 0 10px;
  font-size: 44px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.page-sub {
  margin: 0;
  font-size: 16px;
  color: #444;
}

.nav-path {
  margin-top: 24px;
}

.nav-path-list {
  display: grid;
  gap: 16px;
}

.nav-path-item {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-radius: 20px;
  border: 1px solid #f0e3c7;
  background: #fff;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 10px 24px rgba(0,0,0,0.05);
  flex-wrap: wrap;
}

.nav-path-item:hover {
  border-color: #d9b97a;
  box-shadow: 0 14px 30px rgba(0,0,0,0.08);
}

.nav-path-item-body {
  display: grid;
  gap: 8px;
  max-width: 640px;
}

.nav-path-item-title {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
}

.nav-path-item-desc {
  margin: 0;
  color: #444;
  line-height: 1.6;
}

.nav-path-item-meta {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  flex-wrap: wrap;
}

.nav-path-card {
  border: 1px solid #e8e8e8;
  border-radius: 24px;
  background: #fffdf7;
  box-shadow: 0 14px 36px rgba(0,0,0,0.06);
  padding: 26px;
}

.nav-section {
  margin-top: 24px;
}

.nav-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.nav-section-title {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 999px;
  background: #f7edd7;
  border: 1px solid #e1c89a;
  color: #5a3c11;
}

.nav-section-sub {
  margin: 0;
  font-size: 14px;
  color: #555;
}

.nav-lectures {
  display: grid;
  gap: 18px;
}

.nav-lecture-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 16px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid #f0e3c7;
  background: #fff;
  text-align: left;
  box-shadow: 0 10px 24px rgba(0,0,0,0.05);
  cursor: pointer;
}

.nav-lecture-row:hover {
  border-color: #d9b97a;
  box-shadow: 0 12px 26px rgba(0,0,0,0.08);
}

.nav-lecture-thumb {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: #000;
  aspect-ratio: 16 / 9;
}

.nav-lecture-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.nav-lecture-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 28px;
  color: #fff;
  text-shadow: 0 6px 18px rgba(0,0,0,0.5);
}

.nav-lecture-info {
  display: grid;
  gap: 8px;
  align-content: center;
}

.nav-lecture-title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
}

.nav-lecture-desc {
  margin: 0;
  color: #444;
  line-height: 1.55;
}

.nav-lecture-meta {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #7d5a1f;
}

.nav-lecture-player {
  margin-top: 18px;
  border: 1px solid #f0e3c7;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 14px 30px rgba(0,0,0,0.08);
  padding: 18px;
}

.nav-lecture-player-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.nav-lecture-player-title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
}

.nav-lecture-close {
  appearance: none;
  border: 1px solid #e6e6e6;
  background: #ffffff;
  color: #111;
  border-radius: 999px;
  padding: 6px 12px;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
}

.nav-lecture-close:hover {
  background: #f5f5f5;
}

.nav-lecture-frame {
  position: relative;
  padding-top: 56.25%;
  background: #000;
  border-radius: 14px;
  overflow: hidden;
}

.nav-lecture-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width: 720px) {
  .nav-lecture-row {
    grid-template-columns: 1fr;
  }
}

.nav-path-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.nav-path-kicker {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #7d5a1f;
}

.nav-path-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #5a3c11;
  text-decoration: none;
  border: 1px solid #d9b97a;
  background: #fff;
  padding: 8px 12px;
  border-radius: 999px;
  box-shadow: 0 8px 18px rgba(0,0,0,0.06);
}

.nav-path-back:hover {
  background: #f7edd7;
}

.nav-path-back-outer {
  margin: 0 0 14px;
}

.nav-path-title {
  margin: 0 0 8px;
  font-size: 28px;
  font-weight: 700;
}

.nav-path-desc {
  margin: 0;
  color: #444;
  line-height: 1.6;
  max-width: 640px;
}

.nav-path-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-self: flex-start;
}

.nav-path-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid #efd9b6;
  background: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #6c4b16;
}

.nav-timeline {
  position: relative;
  display: grid;
  gap: 16px;
  padding-left: 6px;
}

.nav-timeline::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: #e1c89a;
}

.nav-step {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 16px;
  text-decoration: none;
  color: inherit;
  padding: 12px 14px;
  border: 1px solid #f0e3c7;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(0,0,0,0.04);
  position: relative;
}

.nav-step:hover {
  border-color: #d9b97a;
  box-shadow: 0 12px 26px rgba(0,0,0,0.08);
}

.nav-step-node {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #f7edd7;
  border: 1px solid #e1c89a;
  font-weight: 700;
  color: #5a3c11;
}

.nav-step-body {
  display: grid;
  gap: 6px;
}

.nav-step-title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
}

.nav-step-note {
  margin: 0;
  color: #4a4a4a;
  line-height: 1.5;
}

.nav-step-cta {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7d5a1f;
}

.search-panel {
  margin: 20px 0 16px;
  padding: 18px 20px;
  border: 1px solid #ececec;
  border-radius: 18px;
  background: #fafafa;
}

.search-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #666;
  margin-bottom: 8px;
}

.search-input {
  width: 100%;
  border-radius: 14px;
  border: 1px solid #e0e0e0;
  padding: 12px 14px;
  font-size: 16px;
  font-family: inherit;
}

.search-input:focus {
  outline: none;
  border-color: #111;
  box-shadow: 0 0 0 3px rgba(17,17,17,0.08);
}

.search-filters {
  margin-top: 12px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.search-filter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #444;
}

.search-filter input {
  width: 16px;
  height: 16px;
}

.search-meta {
  margin: 10px 0 0;
  font-size: 13px;
  color: #666;
}

.search-results {
  display: grid;
  gap: 14px;
}

.browse-topics {
  margin-top: 32px;
}

.browse-title {
  margin: 0 0 12px;
  font-size: 22px;
  font-weight: 700;
}

.browse-topics-grid {
  display: grid;
  gap: 16px;
}

.browse-topic {
  border: 1px solid #e6e6e6;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(0,0,0,0.05);
  overflow: hidden;
}

.browse-topic-btn {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 24px 14px 18px;
  background: #f5f5f5;
  border: none;
  font: inherit;
  cursor: pointer;
  list-style: none;
  box-sizing: border-box;
}

.browse-topic-btn::marker {
  display: none;
}

.browse-topic-btn::-webkit-details-marker {
  display: none;
}

.browse-topic-title {
  font-size: 18px;
  font-weight: 700;
  flex: 1 1 auto;
}

.browse-topic-count {
  min-width: 80px;
  flex: 0 0 auto;
  text-align: right;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #666;
}

.browse-topic-panel {
  padding: 14px 18px 18px;
}

.browse-subtopics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.browse-subtopic {
  appearance: none;
  border: 1px solid #e6e6e6;
  background: #ffffff;
  color: #111;
  border-radius: 999px;
  padding: 6px 12px;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
}

.browse-subtopic.is-active {
  background: #111;
  color: #fff;
  border-color: #111;
}

.browse-subtopic span {
  margin-left: 6px;
  font-size: 11px;
  opacity: 0.7;
}

.browse-cards {
  display: grid;
  gap: 10px;
}

.browse-card {
  display: grid;
  gap: 6px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid #eee;
  text-decoration: none;
  color: inherit;
  background: #fff;
}

.browse-card:hover {
  border-color: #cfcfcf;
}

.browse-card-title {
  font-weight: 700;
}

.browse-card-summary {
  font-size: 13px;
  color: #444;
}
.search-result {
  border: 1px solid #ececec;
  border-radius: 18px;
  padding: 16px 18px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(0,0,0,0.04);
}

.search-result-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.search-result-title {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
}

.search-result-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #111;
  text-decoration: none;
  border: 1px solid #e6e6e6;
  padding: 8px 12px;
  border-radius: 999px;
}

.search-result-link:hover {
  background: #f5f5f5;
}

.search-result-summary {
  margin: 10px 0 0;
  color: #333;
  line-height: 1.55;
}

.about-hero {
  background: radial-gradient(120% 140% at 0% 0%, #f8f4ea 0%, #ffffff 55%);
  border: 1px solid #efe6d6;
  border-radius: 24px;
  padding: 36px 32px;
  box-shadow: 0 18px 40px rgba(0,0,0,0.06);
}

.about-hero .page-sub {
  max-width: 640px;
  font-size: 18px;
}

.about-kicker {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #7d5a1f;
}

.about-hero-actions {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.about-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  background: #ffffff;
  border: 1px solid #efdfc2;
  color: #5c4314;
}

.about-grid {
  display: grid;
  gap: 22px;
  margin-top: 26px;
}

.about-card {
  background: #ffffff;
}

.about-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
}

.about-steps li {
  border: 1px solid #ececec;
  border-radius: 14px;
  padding: 12px 14px;
  background: #fafafa;
}

.about-step-title {
  display: block;
  font-weight: 700;
  margin-bottom: 4px;
}

.about-step-text {
  display: block;
  color: #333;
  line-height: 1.55;
}

.about-usage {
  margin-top: 22px;
}

.about-usage-grid {
  display: grid;
  gap: 16px;
}

.about-usage-item {
  border-left: 3px solid #d1b173;
  padding-left: 12px;
}

.about-usage-title {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.nav-brand, .nav-link {
  color: inherit;
  text-decoration: none;
}

.nav-link {
  display: inline-block;
  padding: 6px 0;
}

.nav-link:hover {
  text-decoration: underline;
  text-underline-offset: 6px;
}

.card-stage {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.nt-card {
  border: 1px solid #e8e8e8;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
  overflow: hidden;
}

.nt-card-contrast {
  border-color: #e1e1e1;
  box-shadow: 0 10px 28px rgba(0,0,0,0.08);
}

.nt-card-top {
  padding: 18px 20px 14px;
  background: #fafafa;
}

.nt-card-divider {
  height: 1px;
  background: #e6e6e6;
  margin: 0;
}

.nt-path-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: #f7f0e1;
  border-bottom: 1px solid #e6d6b5;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6a4a16;
}

.nt-path-label {
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid #e1c89a;
  background: #fff;
}

.nt-path-title {
  font-weight: 700;
}

.nt-path-meta {
  margin-left: auto;
  color: #7d5a1f;
}

.nt-card.is-flashcards .nt-card-top,
.nt-card.is-flashcards .nt-card-divider {
  display: none;
}

.nt-flash-overlay {
  position: fixed;
  inset: 0;
  background: #ffffff;
  display: none;
  z-index: 2000;
  padding: 24px;
}

.nt-flash-overlay.is-open {
  display: block;
}

.nt-flash-modal {
  max-width: 720px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.nt-flash-modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.nt-flash-close {
  appearance: none;
  border: 1px solid #e6e6e6;
  background: #ffffff;
  color: #111;
  border-radius: 999px;
  padding: 8px 14px;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
}

.nt-flash-close:hover {
  background: #f5f5f5;
}

.nt-flash-overlay .nt-flashcard {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}

.nt-flash-overlay .nt-flash-title {
  font-size: 24px;
}

@media (max-width: 720px) {
  .nt-flash-overlay {
    padding: 16px;
  }
}

.nt-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #333;
  background: #f3f3f3;
  border: 1px solid #e6e6e6;
  border-radius: 999px;
  padding: 6px 10px;
  margin-bottom: 12px;
}

.nt-title {
  margin: 0;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #111;
}

.nt-tabs {
  display: flex;
  gap: 8px;
  padding: 12px 14px 14px;
  flex-wrap: wrap;
}

.nt-tab {
  appearance: none;
  border: 1px solid #e6e6e6;
  background: #ffffff;
  color: #111;
  border-radius: 999px;
  padding: 8px 12px;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
}

.nt-tab:hover {
  background: #f5f5f5;
}

.nt-tab.is-active {
  background: #111;
  color: #fff;
  border-color: #111;
}

.nt-body {
  padding: 0 20px 20px;
}

.nt-headline {
  font-size: 16px;
  font-weight: 600;
  margin: 4px 0 10px;
}

.nt-bullets {
  margin: 0;
  padding-left: 18px;
  color: #222;
  line-height: 1.55;
}

.nt-bullets li {
  margin: 6px 0;
}

@media (min-width: 900px) {
  .page-head h1 {
    font-size: 52px;
  }

  .about-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-usage-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .cards-head {
    display: none;
  }

  .page {
    padding: 32px 20px 64px;
  }

  .navbar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 14px 20px;
    position: relative;
    z-index: 1002;
    background: #fff;
  }

  .nav-left {
    flex: 1;
  }

  .nav-center {
    position: fixed;
    inset: 0;
    padding: 90px 32px 32px;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 20px;
    background: #ffffff;
    display: none;
    z-index: 1001;
    text-align: center;
  }

  .nav-center.is-open {
    display: flex;
  }

  .nav-center li {
    width: 100%;
    max-width: 320px;
    font-size: 20px;
    letter-spacing: 0.14em;
    color: #111;
    text-align: center;
  }

  .nav-center a {
    color: #111;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 14px;
    width: 100%;
    border-radius: 12px;
    text-align: center;
  }

  .nav-center a:hover {
    background: #f5f5f5;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    z-index: 1003;
  }

  .nav-toggle.is-open {
    background: transparent;
    border-color: #2c3a55;
  }

  .nav-toggle.is-open .nav-toggle-bar {
    background: #111;
  }

  .nt-arrows {
    flex-direction: column;
    gap: 10px;
  }

  .nt-counter {
    width: 100%;
    text-align: center;
  }

  .nav-path-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-path-card {
    padding: 20px;
  }

  .nav-lecture-row {
    grid-template-columns: 1fr;
  }

  .nav-step {
    grid-template-columns: 36px 1fr;
    gap: 12px;
  }

  .browse-topic-btn {
    padding: 12px 16px;
  }

  .browse-topic-title {
    font-size: 16px;
  }
}


.nt-card-head {
  padding: 22px 22px 12px;
}

.nt-subtitle {
  margin: 6px 0 0;
  font-size: 14px;
  color: #444;
}


.nt-paragraph {
  margin: 0;
  color: #222;
  line-height: 1.6;
}

.nt-md-block + .nt-md-block {
  margin-top: 16px;
}

.nt-markdown p {
  margin: 0 0 10px;
  color: #222;
  line-height: 1.6;
}

.nt-markdown p:last-child {
  margin-bottom: 0;
}

.nt-markdown a {
  color: #111;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.nt-markdown .nt-code {
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 13px;
  padding: 2px 6px;
  border-radius: 6px;
  background: #f2f2f2;
  border: 1px solid #e6e6e6;
}

.nt-md-list {
  margin: 0 0 10px;
  padding-left: 20px;
  line-height: 1.6;
  color: #222;
}

.nt-md-list:last-child {
  margin-bottom: 0;
}

.nt-md-h1,
.nt-md-h2,
.nt-md-h3,
.nt-md-h4,
.nt-md-h5,
.nt-md-h6 {
  margin: 0 0 8px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.nt-md-h1 { font-size: 22px; }
.nt-md-h2 { font-size: 20px; }
.nt-md-h3 { font-size: 18px; }
.nt-md-h4 { font-size: 16px; }
.nt-md-h5 { font-size: 15px; }
.nt-md-h6 { font-size: 14px; }

.nt-qna {
  display: grid;
  gap: 10px;
}

.nt-qa {
  border: 1px solid #ececec;
  border-radius: 14px;
  padding: 12px 14px;
  background: #fff;
}

.nt-qna-controls {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 6px;
}

.nt-qna-list {
  display: grid;
  gap: 10px;
}

.nt-qna-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #444;
}

.nt-qna-toggle input {
  width: 16px;
  height: 16px;
}

.nt-qa-toggle {
  appearance: none;
  border: 1px solid #e6e6e6;
  background: #ffffff;
  color: #111;
  border-radius: 999px;
  padding: 6px 12px;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
}

.nt-qa-toggle:hover {
  background: #f5f5f5;
}

.nt-q {
  font-weight: 700;
  margin: 0 0 10px;
}

.nt-a {
  margin: 0;
  color: #222;
  line-height: 1.55;
}

.nt-links {
  margin: 0;
  padding-left: 18px;
  line-height: 1.55;
}

.nt-links a {
  color: #111;
  text-decoration: underline;
  text-underline-offset: 4px;
}


.nt-card-head-lined {
  border-bottom: 1px solid #ccc;
  padding: 10px;
  text-align: center;
}

.nt-card-title-lined {
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 13px;
}

.nt-card-nav {
  display: flex;
  justify-content: space-between;
  padding: 8px 12px;
}

.nt-arrow {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
}


/* Cards navigation controls (scoped) */
.nt-arrows{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin: 18px 0 18px;
}
.nt-arrow{
  width:56px;
  height:44px;
  border-radius:14px;
  border:1px solid #e6e6e6;
  background:#fff;
  font: inherit;
  font-weight:700;
  cursor:pointer;
  box-shadow: 0 8px 20px rgba(0,0,0,0.06);
}
.nt-arrow:hover{
  background:#f5f5f5;
}
.nt-counter{
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #333;
  background: #f3f3f3;
  border: 1px solid #e6e6e6;
  border-radius: 999px;
  padding: 8px 12px;
}


/* Nav link styling override */
nav a {
  color: black;
  text-decoration: none;
}

nav a:hover {
  text-decoration: underline;
}

/* Card type bar */
.nt-card-type {
  background: linear-gradient(#eee, #ccc);
  border-radius: 6px 6px 0 0;
  padding: 6px 12px;
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
}


/* Card type bar (matches header strip style) */
.nt-card-typebar {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #111;
  background: linear-gradient(#f2f2f2, #cfcfcf);
  border-bottom: 1px solid #bdbdbd;
}

.nt-card-typebar-title {
  flex: 1;
  text-align: center;
}

.nt-card-nav-btn {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid #d6d6d6;
  background: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}

.nt-card-nav-btn:hover {
  background: #f5f5f5;
}

/* Make title more prominent (H2-like) */
.nt-title-lg {
  font-size: 30px;
  font-weight: 600;
}

/* Resource sections */
.nt-section {
  margin: 0 0 18px;
  padding: 12px 14px;
  border: 1px solid #ececec;
  border-radius: 14px;
  background: #fafafa;
}

.nt-section-title {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #111;
  display: inline-block;
  cursor: pointer;
  list-style: none;
}

.nt-section-title::marker {
  display: none;
}

.nt-section-title::-webkit-details-marker {
  display: none;
}

.nt-section-title::after {
  content: "+";
  margin-left: auto;
  font-weight: 700;
  color: #111;
}

.nt-section[open] .nt-section-title::after {
  content: "–";
  color: #111;
}

.nt-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nt-section-body {
  margin-top: 10px;
}

.nt-resources {
  display: grid;
  gap: 12px;
}

.nt-resources-controls {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.nt-resources-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #444;
}

.nt-resources-toggle input {
  width: 16px;
  height: 16px;
}
.nt-section-body .nt-bullets {
  margin: 0;
}

.nt-muted {
  color: #666;
  font-style: italic;
  margin: 0;
}

/* Resource list */
.nt-resource-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.nt-resource-item {
  border: 1px solid #e6e6e6;
  border-radius: 12px;
  padding: 10px 12px;
  background: #fff;
}

.nt-resource-label {
  font-weight: 600;
  color: #111;
}

.nt-resource-link {
  color: #111;
  text-decoration: none;
  font-weight: 600;
}

.nt-resource-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.nt-resource-meta {
  margin-top: 6px;
  font-size: 13px;
  color: #444;
}

.nt-code-item .nt-resource-label {
  margin-bottom: 8px;
}

.nt-code-block {
  margin: 0;
  padding: 12px;
  border-radius: 12px;
  background: #f2f2f2;
  border: 1px solid #e2e2e2;
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 12px;
  line-height: 1.5;
  white-space: pre-wrap;
}

.nt-diagram-item {
  padding: 0;
  overflow: hidden;
}

.nt-diagram-figure {
  margin: 0;
  display: grid;
  gap: 10px;
}

.nt-diagram-img {
  width: auto;
  max-width: 100%;
  height: auto;
  display: block;
}

.nt-diagram-caption {
  padding: 12px 12px 0;
  display: grid;
  gap: 6px;
}

.nt-diagram-title {
  font-weight: 700;
  color: #111;
}

.nt-diagram-desc {
  font-size: 13px;
  color: #444;
}

/* References list */
.nt-ref-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.nt-ref-item {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid #ececec;
  border-radius: 14px;
  background: #fafafa;
  margin-bottom: 10px;
}

.nt-ref-type {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid #e2e2e2;
  background: #f3f3f3;
  color: #222;
}

.nt-ref-link {
  color: #111;
  text-decoration: none;
  font-weight: 600;
}

.nt-ref-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.nt-ref-icon {
  margin-left: 6px;
  font-size: 12px;
  opacity: 0.7;
}

.nt-card-footer {
  display: flex;
  padding: 14px 20px 18px;
  border-top: 1px solid #e6e6e6;
  background: #fafafa;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: center;
  gap: 12px;
}

.nt-footer-meta {
  margin-left: auto;
  font-size: 13px;
  font-style: normal;
  color: #9a9a9a;
}

.nt-flashcard-mode {
  appearance: none;
  border: 1px solid #e6e6e6;
  background: #ffffff;
  color: #111;
  border-radius: 999px;
  padding: 8px 14px;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
}

.nt-flashcard-mode:hover {
  background: #f5f5f5;
}

.nt-flashcard {
  border: 1px solid #ececec;
  border-radius: 16px;
  padding: 18px 18px 16px;
  background: #fafafa;
}

.nt-flash-title {
  margin: 0 0 12px;
  font-size: 30px;
  font-weight: 700;
}

.nt-flash-subtitle {
  margin: -6px 0 12px;
  font-size: 13px;
  color: #666;
}

.nt-flash-toggle {
  appearance: none;
  border: 1px solid #e6e6e6;
  background: #ffffff;
  color: #111;
  border-radius: 999px;
  padding: 8px 14px;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  min-width: 120px;
  text-align: center;
}

.nt-flash-toggle:hover {
  background: #f5f5f5;
}

.nt-flash-qna {
  appearance: none;
  border: 1px solid #e6e6e6;
  background: #ffffff;
  color: #111;
  border-radius: 999px;
  padding: 8px 14px;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
}

.nt-flash-qna:hover {
  background: #f5f5f5;
}

.nt-flash-qna.is-active {
  background: #111;
  color: #fff;
  border-color: #111;
}

.nt-flash-qna:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.nt-flash-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.nt-flash-showall {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #444;
}

.nt-flash-showall input {
  width: 16px;
  height: 16px;
}

.nt-flash-actions-wrap {
  margin: 12px calc(50% - 50vw) 10px;
  padding: 12px 24px;
  border-top: 1px solid #e6e6e6;
  border-bottom: 1px solid #e6e6e6;
  background: #f5f5f5;
}

.nt-flash-actions {
  padding: 0;
}

.nt-flash-next {
  appearance: none;
  border: 1px solid #e6e6e6;
  background: #ffffff;
  color: #111;
  border-radius: 999px;
  padding: 8px 14px;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
}

.nt-flash-next:hover {
  background: #f5f5f5;
}

.nt-flash-body {
  margin-top: 14px;
}
