@charset "UTF-8";
:root {
  --bg: #FFFFFF;
  --surface: #FFFFFF;
  --text: #333333;
  --text-secondary: #555;
  --heading: #1E293B;
  --accent: #2A7EC1;
  --accent-hover: #5F9ED1;
  --accent-light: #EBF3FA;
  --border: #E6E8EA;
  --code-bg: #F5F6F8;
  --diagram-bg: #F8F9FA;
  --diagram-stroke: #1E293B;
  --diagram-fill: #FFFFFF;
  --diagram-accent: #2A7EC1;
  --diagram-muted: #8A8A8A;
  --tag-bg: #EDEEF0;
  --serif: 'Source Serif 4', Georgia, serif;
  --mono: 'JetBrains Mono', 'Consolas', monospace;
  --sans: 'DM Sans', -apple-system, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 17px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--serif);
  color: var(--text);
  background: var(--bg);
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
}

.site-nav {
  max-width: 740px;
  margin: 0 auto;
  padding: 1.1rem 2rem 0;
  font-family: var(--sans);
  font-size: 0.8rem;
  color: var(--text-secondary);
}
.site-nav a {
  color: var(--text-secondary);
  text-decoration: none;
  border-bottom: none;
  transition: color 0.2s;
}
.site-nav a:hover {
  color: var(--accent);
}
.site-nav .sep {
  margin: 0 0.35rem;
  color: var(--border);
}

.page-header {
  max-width: 740px;
  margin: 0 auto;
  padding: 3.5rem 2rem 3rem;
  text-align: left;
}
.page-header h1 {
  font-family: var(--serif);
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--heading);
  margin-bottom: 0.8rem;
}
.page-header .subtitle {
  font-family: var(--sans);
  font-size: 1.02rem;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 620px;
}
.page-header .meta {
  font-family: var(--sans);
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.toc {
  max-width: 740px;
  margin: 0 auto;
  padding: 0 2rem 2rem;
}

.toc-inner {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.2rem 1.6rem;
  background: var(--diagram-bg);
}
.toc-inner ol {
  list-style: none;
  counter-reset: toc;
}
.toc-inner ol li {
  counter-increment: toc;
  margin-bottom: 0.25rem;
}
.toc-inner ol li::before {
  content: counter(toc) ".";
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--accent);
  margin-right: 0.5rem;
}
.toc-inner a {
  font-family: var(--sans);
  font-size: 0.9rem;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.toc-inner a:hover {
  border-bottom-color: var(--accent);
}

.toc-label {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  margin-bottom: 0.6rem;
}

.article {
  max-width: 740px;
  margin: 0 auto;
  padding: 1rem 2rem 6rem;
}

.section {
  margin-bottom: 3.5rem;
}

.section-number {
  display: block;
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.25rem;
}

h2 {
  font-family: var(--serif);
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -0.015em;
  color: var(--heading);
  margin-bottom: 1.1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--border);
}

h3 {
  font-family: var(--sans);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--heading);
  margin-top: 2rem;
  margin-bottom: 0.6rem;
}

h4 {
  font-family: var(--sans);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-top: 1.4rem;
  margin-bottom: 0.4rem;
}

p {
  margin-bottom: 1rem;
}

strong {
  font-weight: 600;
}

em {
  font-style: italic;
}

a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(42, 126, 193, 0.25);
  transition: border-color 0.2s, color 0.2s;
}
a:hover {
  color: var(--accent-hover);
  border-bottom-color: var(--accent-hover);
}

ul, ol {
  margin-bottom: 1rem;
  padding-left: 1.3rem;
}

li {
  margin-bottom: 0.4rem;
}

code {
  font-family: var(--mono);
  font-size: 0.84em;
  background: var(--code-bg);
  padding: 0.15em 0.4em;
  border-radius: 3px;
}

pre {
  font-family: var(--mono);
  font-size: 0.82rem;
  line-height: 1.55;
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.1rem 1.3rem;
  overflow-x: auto;
  margin-bottom: 1.2rem;
}
pre code {
  background: none;
  padding: 0;
  font-size: inherit;
}

.callout {
  border-left: 3px solid var(--accent);
  background: var(--accent-light);
  padding: 0.9rem 1.2rem;
  border-radius: 0 6px 6px 0;
  margin-bottom: 1.2rem;
}
.callout p:last-child {
  margin-bottom: 0;
}

.callout-label {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 0.25rem;
}

.callout-neutral {
  border-left-color: var(--border);
  background: var(--diagram-bg);
}
.callout-neutral .callout-label {
  color: var(--text-secondary);
}

.tag {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 500;
  padding: 0.2em 0.55em;
  border-radius: 3px;
  background: var(--tag-bg);
  color: var(--text-secondary);
  margin-right: 0.3rem;
  vertical-align: middle;
}

.diagram-wrap {
  margin: 1.5rem 0 1.8rem;
  background: var(--diagram-bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.5rem 1rem;
  overflow-x: auto;
}
.diagram-wrap svg {
  display: block;
  margin: 0 auto;
  max-width: 100%;
  height: auto;
}

.diagram-caption {
  font-family: var(--sans);
  font-size: 0.78rem;
  color: var(--text-secondary);
  text-align: center;
  margin-top: 0.8rem;
}

.table-wrap {
  overflow-x: auto;
  margin: 1.2rem 0 1.5rem;
  border: 1px solid var(--border);
  border-radius: 6px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--sans);
  font-size: 0.84rem;
}

th {
  text-align: left;
  font-weight: 600;
  padding: 0.65rem 0.85rem;
  background: var(--code-bg);
  border-bottom: 2px solid var(--border);
  white-space: nowrap;
  color: var(--heading);
}

td {
  padding: 0.55rem 0.85rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

tr:last-child td {
  border-bottom: none;
}

.pipeline {
  display: flex;
  gap: 0;
  margin: 1.2rem 0;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--border);
  font-family: var(--sans);
  font-size: 0.74rem;
  font-weight: 500;
}

.pipeline-step {
  flex: 1;
  padding: 0.5rem 0.45rem;
  text-align: center;
  background: var(--surface);
  border-right: 1px solid var(--border);
  position: relative;
  color: var(--text-secondary);
}
.pipeline-step:last-child {
  border-right: none;
}
.pipeline-step::after {
  content: "→";
  position: absolute;
  right: -0.45rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--border);
  font-size: 0.9rem;
  z-index: 1;
}
.pipeline-step:last-child::after {
  content: none;
}

figure {
  margin: 1.5rem 0;
}
figure img {
  max-width: 100%;
  border-radius: 6px;
  border: 1px solid var(--border);
}

figcaption {
  font-family: var(--sans);
  font-size: 0.78rem;
  color: var(--text-secondary);
  text-align: center;
  margin-top: 0.6rem;
}

hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 3rem 0;
}

.ref-list {
  font-size: 0.87rem;
  line-height: 1.65;
}
.ref-list li {
  margin-bottom: 0.6rem;
}

.page-footer {
  max-width: 740px;
  margin: 0 auto;
  padding: 1.5rem 2rem 3rem;
  border-top: 1px solid var(--border);
  font-family: var(--sans);
  font-size: 0.75rem;
  color: var(--text-secondary);
}
.page-footer a {
  color: var(--text-secondary);
  border-bottom: none;
}
.page-footer a:hover {
  color: var(--accent);
}

.notes-filters {
  margin-bottom: 1.5rem;
}

.notes-search {
  display: block;
  width: 100%;
  font-family: var(--sans);
  font-size: 0.9rem;
  padding: 0.6rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg);
  color: var(--text);
  outline: none;
  transition: border-color 0.2s;
}
.notes-search::placeholder {
  color: var(--text-secondary);
}
.notes-search:focus {
  border-color: var(--accent);
}

.notes-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.75rem;
}

.notes-tag-btn {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  padding: 0.25em 0.6em;
  border: 1px solid var(--border);
  border-radius: 3px;
  background: var(--bg);
  color: var(--text-secondary);
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.notes-tag-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.notes-tag-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.notes-list {
  list-style: none;
  padding-left: 0;
  margin-top: 1rem;
}

.notes-list-item {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}
.notes-list-item:last-child {
  border-bottom: none;
}

.notes-list-title {
  font-size: 1.1rem;
  font-weight: 600;
}
.notes-list-title a {
  border-bottom: none;
}
.notes-list-title a:hover {
  border-bottom: 1px solid var(--accent);
}

.notes-list-meta {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 0.2rem;
}

.notes-list-subtitle {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-top: 0.3rem;
}

.notes-empty {
  font-family: var(--sans);
  font-size: 0.9rem;
  color: var(--text-secondary);
}

@media (max-width: 600px) {
  html {
    font-size: 15.5px;
  }
  .page-header {
    padding: 2.5rem 1.2rem 2rem;
  }
  .page-header h1 {
    font-size: 1.8rem;
  }
  .article {
    padding: 1rem 1.2rem 4rem;
  }
  .toc {
    padding: 0 1.2rem 1.5rem;
  }
  .site-nav {
    padding: 0.8rem 1.2rem 0;
  }
  .pipeline {
    flex-wrap: wrap;
  }
  .pipeline .pipeline-step {
    flex: none;
    width: 50%;
    border-bottom: 1px solid var(--border);
  }
  .pipeline .pipeline-step::after {
    content: none;
  }
}
@media print {
  .site-nav,
  .page-footer {
    display: none;
  }
  .article {
    padding-bottom: 0;
  }
  a {
    border-bottom: none;
  }
  .diagram-wrap,
  .callout,
  .callout-neutral,
  .toc-inner {
    break-inside: avoid;
  }
}

/*# sourceMappingURL=note.css.map */