.knowledge-main {
  width: min(1250px, calc(100% - 64px));
  margin: auto;
  padding: 42px 0 70px;
  min-height: calc(100dvh - 140px);
}
.knowledge-layout {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 60px;
  align-items: start;
}
.knowledge-toc {
  position: sticky;
  top: 30px;
  padding-top: 3px;
}
.toc-back {
  display: block;
  font-size: 11px;
  margin-bottom: 34px;
  color: #91b5bd;
}
.knowledge-toc .eyebrow {
  font-size: 9px;
  margin-bottom: 18px;
}
.knowledge-toc nav {
  display: grid;
  gap: 0;
  border-left: 1px solid #29454e;
}
.knowledge-toc nav a {
  padding: 11px 0 11px 17px;
  font-size: 12px;
  color: #98b5be;
}
.knowledge-toc nav a:hover {
  border-left: 2px solid #8bd7c0;
  margin-left: -1px;
  color: #b9eedd;
}
.toc-coordinate {
  display: grid;
  gap: 9px;
  margin: 32px 0 26px;
  padding-top: 22px;
  border-top: 1px solid #29434c;
}
.toc-coordinate span {
  font-size: 12px;
  color: #b4cbd0;
}
.toc-coordinate strong {
  font-size: 11px;
  font-weight: 400;
  color: #8bd8b7;
}
.toc-coordinate small {
  font:
    9px ui-monospace,
    monospace;
  color: #7f9da7;
}
.toc-atlas {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 11px;
}
.toc-atlas svg {
  width: 13px;
  height: 13px;
}
.knowledge-article {
  min-width: 0;
}
.knowledge-hero {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
  padding: 0 0 27px;
  border-bottom: 1px solid #2c414a;
  background: none;
  box-shadow: none;
  border-radius: 0;
}
.knowledge-hero .eyebrow {
  margin: 0 0 18px;
}
.knowledge-hero h1 {
  max-width: 900px;
  margin: 0;
  font-size: 42px;
  line-height: 1.16;
  font-weight: 400;
  overflow-wrap: anywhere;
}
.knowledge-lede {
  max-width: 780px;
  margin: 21px 0 0;
  color: #a9c0c8;
  font-size: 17px;
  line-height: 1.8;
}
.status-stack {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}
.status-chip,
.authority-chip {
  font-size: 10px;
  line-height: 1.5;
  color: #91afbb;
}
.status-chip {
  color: #8eddbc;
}
.status-chip:before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  margin-right: 7px;
}
.status-chip.open,
.status-chip.tail {
  color: #e5c376;
}
.status-chip.semantic {
  color: #82b5e0;
}
.authority-chip {
  border-left: 1px solid #40525b;
  padding-left: 16px;
}
.concept-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-bottom: 1px solid #2c414a;
  gap: 22px;
  padding: 20px 0;
}
.concept-metrics > div {
  min-width: 0;
}
.concept-metrics span {
  display: block;
  font:
    8px/1.5 ui-monospace,
    monospace;
  color: #83a1ac;
}
.concept-metrics strong {
  font-size: 24px;
  line-height: 1.6;
  font-weight: 400;
  color: #b6dfd8;
}
.knowledge-theorem {
  border-left: 2px solid #74c6b3;
  padding: 4px 0 4px 20px;
  margin: 30px 0 40px;
}
.knowledge-theorem b {
  font:
    9px ui-monospace,
    monospace;
  color: #83afa9;
}
.knowledge-theorem p {
  font:
    20px/1.65 Georgia,
    serif;
  color: #b9dad2;
  margin: 9px 0 0;
}
.knowledge-section {
  padding: 28px 0;
  border-top: 1px solid #293f48;
  min-width: 0;
  scroll-margin-top: 24px;
}
.knowledge-section h2 {
  font-size: 22px;
  margin: 0;
  color: #d3e7e9;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 22px;
}
.section-kicker {
  margin: 0 0 10px;
}
.section-heading .text-link {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  white-space: nowrap;
}
.section-heading svg {
  width: 13px;
  height: 13px;
}
.knowledge-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 35px;
}
.knowledge-relations {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  display: grid;
  gap: 0;
}
.knowledge-relations a {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 13px 0;
  border-bottom: 1px solid #273e47;
  font-size: 13px;
  line-height: 1.6;
  overflow-wrap: anywhere;
  color: #c7dce0;
}
.knowledge-relations a:hover {
  color: #a5ead5;
}
.knowledge-relations small {
  color: #849faa;
  font:
    9px/1.5 ui-monospace,
    monospace;
}
.knowledge-empty {
  color: #829faa;
  font-size: 12px;
  line-height: 1.7;
}
.reference-heading {
  margin-top: 30px !important;
}
.other-relations {
  font-size: 12px;
  margin-top: 24px;
  color: #92adb7;
}
.other-relations summary {
  cursor: pointer;
}
.provenance-section .section-heading {
  align-items: flex-start;
}
.source-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 11px;
}
.knowledge-metadata {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0;
  margin: 0;
  border-top: 1px solid #293f48;
}
.knowledge-metadata > div {
  padding: 17px 15px 17px 0;
  border-bottom: 1px solid #263b45;
  min-width: 0;
}
.knowledge-metadata dt {
  font:
    9px ui-monospace,
    monospace;
  color: #82a1ac;
  margin-bottom: 9px;
  text-transform: uppercase;
}
.knowledge-metadata dd {
  margin: 0;
  font:
    11px/1.7 ui-monospace,
    monospace;
  color: #b0cad2;
  overflow-wrap: anywhere;
}
.authority-note {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid #2d424a;
}
.authority-note h2 {
  font-size: 14px !important;
  margin: 0;
  color: #9db9c1;
}
.authority-note p {
  font-size: 12px;
  line-height: 1.8;
  color: #829faa;
}
.release-banner {
  padding: 9px 24px;
  background: #182e2a;
  border-bottom: 1px solid #39594f;
  color: #acd3c4;
  font:
    10px ui-monospace,
    monospace;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}
.mini-graph-shell {
  max-height: 390px;
  overflow: auto;
  border: 1px solid #2d414a;
  border-radius: 6px;
  background: #0b1116;
}
.mini-graph {
  display: block;
  width: 100%;
  min-width: 640px;
  height: auto;
}
.mini-edges path {
  stroke: #79bbac;
  stroke-width: 1.5;
  fill: none;
}
.mini-node rect {
  fill: #152229;
  stroke: #44646b;
  stroke-width: 1.2;
}
.mini-node.current rect {
  fill: #1b4238;
  stroke: #91e4cd;
  stroke-width: 2;
}
.mini-node text {
  fill: #d2e8e9;
  font:
    11px Arial,
    sans-serif;
}
.mini-node:hover rect {
  stroke: #e8c779;
  stroke-width: 2;
}
.knowledge-index-hero {
  padding-bottom: 28px;
  border-bottom: 1px solid #2b424b;
}
.knowledge-index-hero h1 {
  font-size: 40px !important;
  margin: 12px 0 15px;
}
.knowledge-index-hero h1 span {
  color: #77c8b0;
}
.knowledge-index-hero > p {
  font-size: 15px;
  color: #97b1bb;
}
.index-stats {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr) 200px;
  gap: 25px;
  padding-top: 20px;
  margin: 28px 0 0;
  border-top: 1px solid #293f48;
}
.index-stats > div {
  min-width: 0;
}
.index-stats dt {
  font:
    9px ui-monospace,
    monospace;
  color: #7f9da8;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.index-stats dd {
  font:
    12px/1.7 ui-monospace,
    monospace;
  color: #b6d5d8;
  overflow-wrap: anywhere;
  margin: 0;
}
.index-stats > div:first-child dd {
  font-size: 27px;
  line-height: 1.2;
}
.concept-browser {
  margin-top: 30px;
}
.concept-toolbar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) 180px 200px;
  align-items: center;
  gap: 15px;
  padding: 20px 0;
  border-block: 1px solid #2a414b;
  scroll-margin-top: 20px;
}
.concept-toolbar label {
  font-size: 12px;
  color: #a2bdc6;
}
.concept-toolbar input,
.concept-toolbar select {
  min-height: 42px;
  width: 100%;
  max-width: 100%;
  padding: 10px 12px;
  font:
    12px Arial,
    sans-serif;
  color: #c9e0e4;
  background: #111f27;
  border: 1px solid #34515d;
  border-radius: 4px;
}
.library-results-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  font:
    10px ui-monospace,
    monospace;
  color: #8eabb7;
}
.library-results-bar a {
  display: flex;
  align-items: center;
  gap: 5px;
}
.library-results-bar svg {
  width: 12px;
  height: 12px;
}
.knowledge-index-page .concept-list {
  display: grid;
}
.knowledge-index-page .concept-row {
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 17px 12px;
  border-bottom: 1px solid #263e48;
  text-decoration: none;
}
.knowledge-index-page .concept-row:nth-child(2n) {
  background: #101a21;
}
.knowledge-index-page .concept-row:hover {
  background: #162831;
}
.concept-state {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #8ecdae;
}
.concept-state.open,
.concept-state.tail {
  background: #e5c77c;
}
.concept-state.semantic {
  background: #83b9e0;
}
.knowledge-index-page .concept-row strong {
  display: block;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.55;
  color: #c7e0e5;
  overflow-wrap: anywhere;
}
.knowledge-index-page .concept-row small {
  display: block;
  font:
    10px/1.5 ui-monospace,
    monospace;
  color: #849faa;
  margin-top: 5px;
}
.knowledge-index-page .concept-row em {
  font:
    10px ui-monospace,
    monospace;
  color: #8caab5;
}
.library-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 25px;
  padding: 26px 0;
  font:
    11px ui-monospace,
    monospace;
  color: #9db8c0;
}
.library-pagination button {
  border: 1px solid #36545e;
  border-radius: 4px;
  width: 35px;
  height: 35px;
  padding: 0;
  display: grid;
  place-items: center;
  background: #14242c;
  color: #a5d6d0;
}
.library-pagination button:disabled {
  opacity: 0.35;
  cursor: default;
}
.library-pagination svg {
  width: 16px;
  height: 16px;
}
#library-empty {
  color: #a6bcc3;
  font-size: 13px;
  padding: 30px 0;
}
.node-detail-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 12px 0;
}
.node-detail-actions a,
.node-detail-actions button,
.graph-concept-index {
  padding: 7px 10px;
  border: 1px solid #3b5761;
  background: #172b32;
  border-radius: 4px;
  font-size: 11px;
  color: #a9d8d0;
  text-decoration: none;
}
@media (max-width: 1050px) {
  .knowledge-layout {
    grid-template-columns: 160px minmax(0, 1fr);
    gap: 32px;
  }
  .concept-toolbar {
    grid-template-columns: 1fr 1fr;
  }
  .concept-toolbar label {
    grid-column: 1/-1;
  }
  .concept-toolbar input {
    grid-column: 1/-1;
  }
  .knowledge-hero h1 {
    font-size: 35px;
  }
  .knowledge-lede {
    font-size: 16px;
  }
  .index-stats {
    grid-template-columns: 130px minmax(0, 1fr) 150px;
  }
}
@media (max-width: 760px) {
  .knowledge-main {
    width: calc(100% - 36px);
    padding-top: 25px;
  }
  .knowledge-layout {
    display: block;
  }
  .knowledge-toc {
    position: static;
    padding: 0 0 22px;
    margin-bottom: 25px;
    border-bottom: 1px solid #2e4650;
  }
  .knowledge-toc .toc-back {
    margin-bottom: 15px;
  }
  .knowledge-toc .eyebrow,
  .toc-coordinate {
    display: none;
  }
  .knowledge-toc nav {
    display: flex;
    gap: 14px;
    overflow: auto;
    border: 0;
    padding-bottom: 8px;
  }
  .knowledge-toc nav a {
    padding: 4px 0;
    white-space: nowrap;
    font-size: 10px;
  }
  .toc-atlas {
    margin-top: 12px;
  }
  .knowledge-hero h1 {
    font-size: 29px;
  }
  .knowledge-lede {
    font-size: 15px;
    line-height: 1.8;
  }
  .concept-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }
  .concept-metrics strong {
    font-size: 23px;
  }
  .knowledge-theorem p {
    font-size: 18px;
  }
  .knowledge-columns {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }
  .knowledge-section h2 {
    font-size: 21px;
  }
  .knowledge-metadata {
    grid-template-columns: 1fr;
  }
  .source-actions {
    margin-top: 8px;
  }
  .knowledge-index-hero h1 {
    font-size: 31px !important;
  }
  .index-stats {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .index-stats > div:first-child dd {
    font-size: 25px;
  }
  .knowledge-index-page .concept-row {
    gap: 11px;
    padding-inline: 5px;
  }
  .knowledge-index-page .concept-row strong {
    font-size: 12px;
  }
  .knowledge-index-page .concept-row small {
    font-size: 8px;
  }
  .knowledge-index-page .concept-row em {
    display: none;
  }
  .concept-toolbar {
    gap: 10px;
  }
  .release-banner {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }
  .knowledge-header nav {
    width: 100%;
    border-top: 1px solid #263b44;
  }
  .knowledge-header .brand {
    margin-top: 13px;
  }
  .knowledge-header .header-coordinate {
    display: none;
  }
}
