.note-detail-page {
  min-height: 100vh;
  color: var(--ink-2);
  font-family: var(--font-sans);
  font-weight: 400;
  background: var(--bg);
}

.note-detail-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 250, 247, 0.82);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
}

.note-detail-header nav {
  width: min(100%, 1120px);
  min-height: 70px;
  margin: 0 auto;
  padding: 14px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: var(--ink-2);
  font-size: 13px;
}

.note-detail-brand {
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 700;
}

.note-detail-shell {
  width: min(100%, 860px);
  margin: 0 auto;
  padding: 86px 40px 110px;
}

.note-article-header {
  padding-bottom: 46px;
  border-bottom: 1px solid var(--line-2);
}

.note-article-category {
  color: var(--green-deep);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
}

.note-article-header h1 {
  margin: 28px 0 0;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: clamp(34px, 4vw, 50px);
  font-weight: 700;
  letter-spacing: -1.2px;
  line-height: 1.28;
}

.note-article-lead {
  margin-top: 24px;
  color: var(--ink-2);
  font-size: 17px;
  line-height: 1.8;
}

.note-article-meta {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  color: var(--ink-3);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.5px;
}

.note-article-body {
  margin-top: 54px;
  color: var(--ink-2);
  font-family: var(--font-sans);
  font-weight: 400;
}

.note-article-body,
.note-article-body * {
  font-family: var(--font-sans) !important;
}

.note-article-body > section {
  max-width: 100%;
}

.note-article-body img {
  max-width: 100% !important;
  height: auto !important;
}

.note-article-body a {
  color: #0052ff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.training-news-cover {
  margin: 0 0 42px;
  overflow: hidden;
  border-radius: 14px;
  background: var(--green-mist);
}

.training-news-cover img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 8.8;
  object-fit: cover;
}

.training-news-inline-image {
  margin: 34px 0 38px;
  overflow: hidden;
  border-radius: 14px;
  background: var(--green-mist);
}

.training-news-inline-image img {
  display: block;
  width: 100%;
}

.training-news-inline-image-tall {
  max-height: 760px;
  overflow: auto;
}

.training-news-body > p,
.training-news-body > h2 {
  margin: 0 0 24px;
  font-size: 17px;
  line-height: 1.95;
}

.training-news-body > h2 {
  margin-top: 48px;
  color: var(--ink);
  font-size: 26px;
  line-height: 1.35;
}

.training-news-note {
  padding: 18px 20px;
  color: var(--green-deep);
  background: var(--green-tint);
  border-left: 3px solid var(--green);
}

.note-article-body .code-snippet__fix {
  margin: 18px 0 28px;
  padding: 20px 22px;
  overflow: hidden;
  color: #374151;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
}

.note-article-body .code-snippet__line-index {
  display: none;
}

.note-article-body .code-snippet__fix pre {
  margin: 0;
  overflow: visible;
  color: inherit;
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.8;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.note-article-body .code-snippet__fix code {
  display: block;
  color: inherit;
  font: inherit;
}

.note-article-body .code-snippet__fix code + code {
  margin-top: 8px;
}

.note-article-source {
  margin-top: 64px;
  padding: 26px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: var(--green-tint);
  border: 1px solid rgba(30, 177, 120, 0.16);
  border-radius: 12px;
}

.note-article-source p {
  display: none;
  max-width: 520px;
  color: var(--ink-2);
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 12px;
  line-height: 1.7;
}

.note-article-source a {
  flex: 0 0 auto;
  color: var(--green-deep);
  font-size: 12px;
  font-weight: 700;
}

.note-detail-footer {
  padding: 32px 20px;
  text-align: center;
  color: var(--white);
  background: var(--ink);
}

.note-detail-footer a {
  font-size: 13px;
}

@media (max-width: 620px) {
  .note-detail-header nav,
  .note-detail-shell {
    padding-right: 20px;
    padding-left: 20px;
  }

  .note-detail-shell {
    padding-top: 58px;
    padding-bottom: 76px;
  }

  .note-article-header h1 {
    font-size: clamp(30px, 8.5vw, 38px);
    letter-spacing: -0.8px;
  }

  .note-article-lead {
    font-size: 15px;
  }

  .note-article-body {
    margin-top: 42px;
  }

  .note-article-body,
  .note-article-body p {
    font-size: 16px !important;
  }

  .note-article-body .code-snippet__fix {
    padding: 16px;
  }

  .note-article-body .code-snippet__fix pre {
    font-size: 13px;
  }

  .note-article-source {
    align-items: flex-start;
    flex-direction: column;
  }
}
