/* Quiet documentation layout, scoped to the personal notes module. */
body:has(.notes-app) > .container {
  max-width: 1360px;
}
.notes-app {
  --notes-accent: #39776d;
  --notes-soft: rgba(57, 119, 109, 0.08);
  --notes-line: var(--global-divider-color, #e4e5e2);
  --notes-muted: var(--global-text-color-light, #777);
  color: var(--global-text-color, #252724);
  min-height: 70vh;
}
html[data-theme="dark"] .notes-app {
  --notes-accent: #8fc4b7;
  --notes-soft: rgba(143, 196, 183, 0.1);
}
.notes-app [hidden] {
  display: none !important;
}
.notes-app a {
  color: inherit;
  text-decoration: none;
  border: 0;
  box-shadow: none;
}
.notes-app a:hover {
  color: var(--notes-accent);
  text-decoration: none;
}
.notes-app a:focus:not(:focus-visible),
.notes-app button:focus:not(:focus-visible),
.notes-app summary:focus:not(:focus-visible) {
  outline: none;
  box-shadow: none;
}
.notes-app :focus-visible {
  outline: 2px solid var(--notes-accent);
  outline-offset: 3px;
  border-radius: 3px;
}
.notes-app ::selection {
  background: #cfe3dc;
  color: #1c3830;
}
.notes-top {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 0 0 20px;
  border-bottom: 1px solid var(--notes-line);
  margin-bottom: 28px;
}
.notes-brand {
  min-width: 214px;
}
.notes-brand a {
  font:
    650 27px/1.2 Georgia,
    "Noto Serif SC",
    serif;
  letter-spacing: -0.8px;
}
.notes-brand span {
  margin-left: 12px;
  font: 400 12px/1.4 var(--global-font-family, sans-serif);
  letter-spacing: 0.05em;
  color: var(--notes-muted);
}
.notes-modes {
  display: flex;
  gap: 26px;
  align-self: stretch;
  align-items: center;
}
.notes-modes a {
  position: relative;
  font-size: 14px;
  color: var(--notes-muted);
  padding: 7px 0;
}
.notes-modes a[aria-current] {
  color: var(--notes-accent);
  font-weight: 650;
}
.notes-modes a[aria-current]::after {
  content: "";
  position: absolute;
  height: 2px;
  background: var(--notes-accent);
  bottom: -21px;
  left: 0;
  right: 0;
}
.notes-menu {
  display: none;
  margin-left: auto;
}
.notes-grid {
  display: grid;
  grid-template-columns: 214px minmax(0, 1fr) 154px;
  gap: 34px;
  align-items: start;
}
.notes-sidebar {
  position: sticky;
  top: 88px;
  max-height: calc(100vh - 110px);
  overflow-y: auto;
  padding: 1px 12px 24px 0;
  scrollbar-width: thin;
}
.notes-search-label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--notes-muted);
  margin-bottom: 7px;
}
.notes-search {
  width: 100%;
  padding: 8px 10px;
  font: inherit;
  font-size: 12px;
  border: 1px solid var(--notes-line);
  border-radius: 5px;
  background: transparent;
  color: inherit;
  margin-bottom: 20px;
}
.notes-search:focus {
  border-color: var(--notes-accent);
}
.notes-nav-group {
  margin: 20px 0 0;
}
.notes-nav-group h2 {
  font-weight: 500;
  line-height: 1.5;
  font-size: 11px;
  letter-spacing: 0.09em;
  color: var(--notes-muted);
  margin: 0 0 7px 11px;
}
.notes-nav-link {
  position: relative;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 11px;
  font-size: 13px;
  line-height: 1.5;
  border-radius: 4px;
  margin: 1px 0;
}
.notes-nav-link:hover {
  background: var(--notes-soft);
}
.notes-nav-link[aria-current] {
  color: var(--notes-accent);
  background: var(--notes-soft);
  font-weight: 600;
}
.notes-nav-link[aria-current]::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--notes-accent);
}
.notes-nav-link small {
  color: var(--notes-muted);
  font:
    10px/1.4 ui-monospace,
    monospace;
  font-weight: 400;
}
.notes-chapter summary {
  cursor: pointer;
  font-size: 13px;
  padding: 7px 5px 7px 11px;
  list-style: none;
  display: flex;
  justify-content: space-between;
}
.notes-chapter summary::-webkit-details-marker {
  display: none;
}
.notes-chapter summary::after {
  content: "›";
  color: var(--notes-muted);
  transition: transform 0.15s;
}
.notes-chapter[open] > summary::after {
  transform: rotate(90deg);
}
.notes-chapter ul {
  list-style: none;
  margin: 2px 0 8px 10px;
  padding: 0 0 0 9px;
  border-left: 1px solid var(--notes-line);
}
.notes-chapter li {
  margin: 0;
}
.notes-main {
  min-width: 0;
  padding-bottom: 54px;
}
.notes-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  font-size: 11px;
  color: var(--notes-muted);
  margin: 1px 0 28px;
  min-height: 16px;
}
.notes-eyebrow {
  font:
    10px/1.5 ui-monospace,
    monospace;
  letter-spacing: 0.14em;
  color: var(--notes-accent);
  margin: 0 0 10px;
}
.notes-doc-head h1 {
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.4;
  font-weight: 650;
  letter-spacing: -0.035em;
  margin: 0 0 15px;
  overflow-wrap: anywhere;
}
.notes-description {
  color: var(--notes-muted);
  font-size: 14px;
  line-height: 1.8;
  margin: 0 0 24px;
}
.notes-content {
  font-size: 15px;
  line-height: 1.9;
  overflow-wrap: anywhere;
}
.notes-content > :first-child {
  margin-top: 0;
}
.notes-content h2 {
  font-size: 23px;
  margin: 1.9em 0 0.7em;
  scroll-margin-top: 90px;
}
.notes-content h3 {
  font-size: 18px;
  margin: 1.7em 0 0.6em;
  scroll-margin-top: 90px;
}
.notes-content img {
  max-width: 100%;
  height: auto;
}
.notes-content .katex-display,
.notes-file-preview .katex-display {
  overflow-x: auto;
  overflow-y: hidden;
  padding: 4px 0;
}
.notes-content a:not([data-notes-route]):not(.notes-open-file) {
  color: var(--notes-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.notes-content blockquote {
  border-left: 2px solid var(--notes-accent);
  padding-left: 20px;
  color: var(--notes-muted);
}
.notes-content pre {
  padding: 18px;
  background: var(--global-code-bg-color, #f4f5f3);
  border: 1px solid var(--notes-line);
  border-radius: 5px;
  font-size: 12px;
  line-height: 1.7;
  overflow-x: auto;
}
.notes-content table {
  max-width: 100%;
  display: block;
  overflow-x: auto;
}
.notes-content th,
.notes-content td {
  padding: 7px 12px;
  border: 1px solid var(--notes-line);
}
.notes-section-list {
  margin-top: 30px;
}
.notes-section-list h2 {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--notes-muted);
  margin: 0 0 3px;
}
.notes-section-row {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  padding: 16px 2px;
  border-bottom: 1px solid var(--notes-line) !important;
}
.notes-section-row strong {
  font-size: 15px;
  font-weight: 500;
}
.notes-section-row small {
  display: block;
  color: var(--notes-muted);
  font-size: 12px;
  margin-top: 3px;
}
.notes-list-end {
  flex: none;
  font-size: 11px;
  color: var(--notes-muted);
}
.notes-empty {
  padding: 25px 0 34px;
  color: var(--notes-muted);
  font-size: 13px;
}
.notes-empty h2 {
  font-size: 18px;
  color: var(--global-text-color, #333);
  font-weight: 500;
  margin: 12px 0 8px;
}
.notes-empty p {
  margin: 0;
}
.notes-empty-rule {
  display: block;
  width: 28px;
  height: 2px;
  background: var(--notes-accent);
  opacity: 0.5;
}
.notes-child-pages {
  display: grid;
  border-top: 1px solid var(--notes-line);
  margin: 24px 0;
}
.notes-child-pages a {
  display: flex;
  justify-content: space-between;
  padding: 13px 0;
  border-bottom: 1px solid var(--notes-line);
}
.notes-related {
  border-top: 1px solid var(--notes-line);
  margin-top: 36px;
  padding-top: 18px;
  font-size: 12px;
}
.notes-related a {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.notes-related span {
  color: var(--notes-muted);
}
.notes-pagination {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 40px;
  font-size: 13px;
}
.notes-pagination a {
  padding-top: 15px;
  border-top: 1px solid var(--notes-line);
}
.notes-pagination small {
  display: block;
  color: var(--notes-muted);
  font-size: 10px;
  margin-bottom: 5px;
}
.notes-pagination > :last-child {
  text-align: right;
}
.notes-toc {
  position: sticky;
  top: 94px;
  border-left: 1px solid var(--notes-line);
  padding-left: 17px;
  margin-top: 72px;
  max-height: calc(100vh - 130px);
  overflow-y: auto;
}
.notes-toc p {
  font-size: 11px;
  color: var(--notes-muted);
  margin: 0 0 12px;
}
.notes-toc a {
  display: block;
  font-size: 11px;
  line-height: 1.7;
  margin: 7px 0;
  color: var(--notes-muted);
}
.notes-toc .notes-toc-h3 {
  padding-left: 11px;
}
.notes-search-caption {
  font-size: 10px;
  color: var(--notes-muted);
  margin: 0 0 10px;
}
.notes-search-hit {
  display: block;
  padding: 11px 9px;
  border-bottom: 1px solid var(--notes-line) !important;
}
.notes-search-hit strong {
  display: block;
  font-size: 12px;
  font-weight: 500;
}
.notes-search-hit small {
  display: block;
  font-size: 10px;
  color: var(--notes-muted);
  margin-top: 4px;
  overflow-wrap: anywhere;
}
.notes-file {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 10px 0;
  font-size: 12px;
  border-bottom: 1px solid var(--notes-line) !important;
}
.notes-file-kind {
  flex: 0 0 34px;
  font:
    9px/1.7 ui-monospace,
    monospace;
  color: var(--notes-muted);
}
.notes-file-name {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}
.notes-file small {
  flex: none;
  color: var(--notes-muted);
  font:
    10px/1.7 ui-monospace,
    monospace;
}
.notes-resource-folder {
  padding-left: 14px;
  margin: 6px 0;
  border-left: 1px solid var(--notes-line);
}
.notes-resource-folder summary {
  font-size: 13px;
  cursor: pointer;
  padding: 7px 0;
}
.notes-library-tools {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 11px;
  padding: 2px 0 18px;
  color: var(--notes-muted);
}
.notes-library-tools span {
  display: flex;
  gap: 18px;
}
.notes-frame {
  width: 100%;
  height: max(500px, calc(100vh - 250px));
  border: 1px solid var(--notes-line);
  border-radius: 4px;
  background: white;
}
.notes-resource-image {
  display: block;
  margin: 18px auto;
}
.notes-open-file {
  display: inline-block;
  margin-top: 20px;
  color: var(--notes-accent) !important;
}
.notes-loading {
  padding: 50px 0;
  color: var(--notes-muted);
}
@media (max-width: 1150px) {
  .notes-grid {
    grid-template-columns: 204px minmax(0, 1fr);
    gap: 30px;
  }
  .notes-toc {
    display: none;
  }
}
@media (max-width: 720px) {
  .notes-top {
    gap: 14px;
    padding-bottom: 15px;
    margin-bottom: 24px;
    flex-wrap: wrap;
  }
  .notes-brand {
    min-width: 0;
    flex: 1;
  }
  .notes-brand a {
    font-size: 24px;
  }
  .notes-brand span {
    display: none;
  }
  .notes-modes {
    gap: 20px;
  }
  .notes-modes a {
    font-size: 12px;
  }
  .notes-modes a[aria-current]::after {
    bottom: -16px;
  }
  .notes-menu {
    display: block;
    background: transparent;
    border: 1px solid var(--notes-line);
    border-radius: 4px;
    color: inherit;
    font-size: 11px;
    padding: 5px 8px;
  }
  .notes-grid {
    display: block;
  }
  .notes-sidebar {
    display: none;
    position: static;
    max-height: 58vh;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--notes-line);
    margin-bottom: 24px;
  }
  .notes-app[data-menu="open"] .notes-sidebar {
    display: block;
  }
  .notes-breadcrumbs {
    margin-bottom: 22px;
  }
  .notes-doc-head h1 {
    font-size: 28px;
  }
  .notes-content {
    font-size: 14px;
  }
  .notes-section-row {
    gap: 12px;
  }
  .notes-section-row strong {
    font-size: 14px;
  }
  .notes-section-row small {
    font-size: 11px;
  }
  .notes-frame {
    min-height: 400px;
    height: 70vh;
  }
}
@media (prefers-reduced-motion: reduce) {
  .notes-app * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

.notes-app[data-mode="resources"] .notes-grid {
  grid-template-columns: 214px minmax(0, 1fr);
}
@media (max-width: 720px) {
  .notes-app[data-mode="resources"] .notes-grid {
    display: block;
  }
}
