body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  margin: 0;
  background: #f7f8fa;
  color: #222;
}

.site-header {
  background: white;
  padding: 22px 36px 16px 36px;
  border-bottom: 1.1px solid #ddd;
}

.site-title a {
  font-size: 2rem;
  font-weight: 650;  
  font-size: 2.6rem;
  text-decoration: none;
  color: #041935;
}

.top-nav {
  margin-top: 14px;
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.top-nav a {
  text-decoration: none;
  color: #2d4a6d;
  font-size: 1rem;
  padding-bottom: 4px;
}

.top-nav a:hover {
  color: #1b314a;
}

.top-nav a.active {
  font-weight: 600;
  color: #1b314a;
}

.page-layout {
  display: flex;
  min-height: calc(100vh - 110px);
}

.sidebar {
  width: 250px;
  padding: 28px 24px;
  background: #e9edf2;
  border-right: 1px solid #ddd;
  box-sizing: border-box;
}

.sidebar h3 {
  margin-top: 0;
  font-size: 1.5rem;
}

.sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar li {
  margin-bottom: 12px;
}

.sidebar a {
  text-decoration: none;
  color: #2d4a6d;
}

.sidebar a:hover {
  text-decoration: underline;
}

.content {
  flex: 1;
  padding: 40px;
  background: #f7f8fa;
}

.content h1 {
  margin-top: 0;
  margin-bottom: 24px;
  font-size: 2.1rem;
  color: #041b36;
}

.content h1,
.content h2,
.content h3,
.content p,
.content ul,
.content ol {
  max-width: 800px;
}

.content img,
.content img.enriched-slide {
  max-width: 800px;
  width: 100%;
  display: block;
  margin: 28px 0 0 0;
  background: white;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.14);
}

.topic-list,
.slide-list,
.subslide-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.topic-item + .topic-item {
  margin-top: 26px;
}

.topic-link {
  text-decoration: none;
  color: #2d4a6d;
  font-weight: 500;
  font-size: 1.12rem;
  display: block;
  margin-bottom: 10px;
}

.topic-link.active-topic {
  font-weight: 600;
  color: #1b314a;
}

.slide-list {
  margin-top: 10px;
  margin-left: 48px;
}

.slide-list li {
  margin-bottom: 10px;
}

.slide-link,
.slide-list a {
  display: block;
  text-decoration: none;
  color: #5c6f8d;
  font-size: 0.9rem;
  font-weight: 400;
  line-height: 1.1;
  padding-left: 12px;
  text-indent: -6px;
}

.slide-link.active-slide,
.slide-list a.active-slide {
  color: #1b314a;
  font-weight: 500;
}


.subtopic-link {
  display: block;
  text-decoration: none;
  color: #2d4a6d;
  font-size: 0.92rem;
  font-weight: 700;
  margin-top: 10px;
  margin-bottom: 6px;
  margin-left: 1px;
}

.subtopic-link.active-slide {
  color: #1b314a;
}

.subslide-list {
  margin-top: 4px;
  margin-left: 15px!important;
  padding-left: 15px !important;
  border-left: 4px solid #d6dde6;
}

.subslide-list li {
  margin-bottom: 6px;
}

.subslide-link {
  display: block;
  text-decoration: none;
  color: #5c6f8d;
  font-size: 0.76rem !important;
  font-weight: 300;
  line-height: 1.4;
  padding-left: 15px !important;
}

.subslide-link.active-slide {
  color: #1b314a;
  font-weight: 500;
}

.search-wrap {
  position: relative;
  margin-top: 18px;
  max-width: 320px;
}

#search-box {
  width: 100%;
  padding: 10px 12px;
  font-size: 0.95rem;
  border: 1px solid #cfd6df;
  border-radius: 8px;
  background: white;
  color: #223;
  box-sizing: border-box;
}

#search-box:focus {
  outline: none;
  border-color: #7d91ad;
}

.search-results {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: white;
  border: 1px solid #cfd6df;
  border-radius: 8px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  z-index: 50;
}

.search-result-item {
  display: block;
  padding: 10px 12px;
  text-decoration: none;
  color: #2d4a6d;
  font-size: 0.94rem;
  border-bottom: 1px solid #eef2f6;
}

.search-result-item:last-child {
  border-bottom: none;
}

.search-result-item:hover {
  background: #f4f7fb;
}

.slide-nav {
  max-width: 800px;
  margin: 10px 0 18px 0;
}

.slide-nav a {
  display: block;
  color: #6a35a0;
  text-decoration: underline;
  margin-bottom: 8px;
}

.slide-text {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid #e3e6eb;
  color: #444;
}

.nav-left,
.nav-right {
  text-align: left;
}

.slide-nav + * {
  margin-top: 42px;
}

.slide-text table {
  border-collapse: collapse;
  margin-top: 12px;
}

.slide-text td {
  padding: 4px 12px 4px 0;
  vertical-align: top;
}

.slide-text td:first-child {
  font-weight: 600;
  width: 220px;
}

.site-footer {
  text-align: center;
  font-size: 0.9rem;
  color: #666;
  padding: 18px 24px 28px 24px;
  border-top: 1px solid #ddd;
  background: #f7f8fa;
}

.main ul {
  margin-top: 14px;
}

ul li {
  margin-bottom: 16px;
}

@media (max-width: 900px) {
  .page-layout {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid #ddd;
  }

  .content {
    padding: 24px 18px 40px 18px;
  }

  .top-nav {
    gap: 14px;
  }

  .slide-nav {
    font-size: 0.95rem;
  }
}

.section-text {
  max-width: 700px;
  color: #222;
}

.section-text p {
  font-weight: 400;
    font-size: 1.17rem;
    color: #0c213a;
    line-height: 1.2;
}



.section-divider {
  max-width: 800px;
  margin: 16px 0 24px 0;
  border: none;
  border-top: 1px solid #e3e6eb;
}

.section-list-items {
  max-width: 800px;
  margin: 0;
  padding-left: 28px;
  list-style: disc;
}

.section-list-item {
  margin-bottom: 14px;
}

.section-list-link {
  color: #2d4a6d;
  font-weight: 500;
  font-size: 1.05rem;
  text-decoration: none;
}

.section-list-link:hover {
  text-decoration: underline;
  color: #1b314a;
}

.section-list-description {
  margin-top: 4px;
  color: #5c6f8d;
  font-size: 0.92rem;
  line-height: 1.4;
}

.section-list-description {
  margin-top: 2px;
}