* {
  box-sizing: border-box;
}

html {
  overflow-y: scroll;
}

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

.tm-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.tm-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background-color: #ffffff;
  border-bottom: 1px solid #eeeeee;
}

.tm-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.tm-logo {
  color: inherit;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 13px;
}

.tm-nav-link {
  font-size: 14px;
  text-decoration: none;
  color: #111111;
  padding: 6px 10px;
  border-radius: 999px;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.tm-nav-link:hover {
  background-color: #111111;
  color: #ffffff;
}

.tm-nav-coming-soon {
  cursor: default;
  opacity: 0.55;
  pointer-events: none;
}

.tm-main {
  padding-bottom: 80px;
}

.tm-hero {
  padding: 80px 0 48px;
}

.tm-hero-title {
  margin: 0 0 16px;
  font-size: clamp(28px, 3.4vw, 38px);
  line-height: 1.1;
  text-align: center;
}

.tm-hero-text {
  margin: 0 auto;
  max-width: 70%;
  font-size: 16px;
  line-height: 1.6;
  color: #555555;
}

.tm-hero-text p {
  margin: 0 0 12px;
}

.tm-hero-subtitle {
  margin: 12px auto 0;
  max-width: 640px;
  font-size: 17px;
  line-height: 1.6;
  text-align: center;
  color: #555555;
}

.tm-section {
  padding: 40px 0 0;
  border-top: 1px solid #f3f3f3;
}

.tm-section-title {
  margin: 0 0 12px;
  font-size: 18px;
}

.tm-section-text {
  margin: 0;
  max-width: 520px;
  font-size: 15px;
  line-height: 1.6;
  color: #666666;
}

.tm-section-intro {
  padding-top: 0;
}

.tm-section-intro-text {
  margin-top: 8px;
  max-width: 640px;
}

.tm-principles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
  margin-top: 24px;
}

.tm-principle-title {
  margin: 0 0 8px;
  font-size: 18px;
}

.tm-principle-text {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
  color: #555555;
}

.tm-section-join {
  padding-bottom: 56px;
}

.tm-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 20px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid #111111;
  background-color: #111111;
  color: #ffffff;
  font-size: 14px;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease,
    border-color 0.15s ease;
}

.tm-button:hover {
  background-color: transparent;
  color: #111111;
}

.tm-about-text p {
  margin: 0 0 12px;
}

.tm-blog-hidden {
  display: none;
}

.blog-list {
  margin-top: 24px;
  margin-bottom: 32px;
}

.blog-list-item {
  display: block;
  padding: 16px 0;
  border-bottom: 1px solid #f0f0f0;
  text-decoration: none;
  color: inherit;
}

.blog-list-item:first-child {
  border-top: 1px solid #f0f0f0;
}

.blog-list-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #999999;
  margin-bottom: 4px;
}

.blog-list-title {
  margin: 0 0 6px;
  font-size: 18px;
}

.blog-list-excerpt {
  margin: 0;
  font-size: 14px;
  color: #666666;
}

.blog-list-item:hover .blog-list-title {
  text-decoration: underline;
}

.article {
  margin-top: 32px;
  max-width: 720px;
}

.article-tufte {
  position: relative;
  max-width: 680px;
  padding-right: 18rem;
}

.article-header {
  margin-bottom: 24px;
}

.article-title {
  margin: 0 0 8px;
  font-size: 28px;
  line-height: 1.2;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #999999;
}

.article-sidenote {
  margin-top: 4px;
}

.article-abstract {
  margin-bottom: 24px;
  padding-left: 16px;
  border-left: 3px solid #eeeeee;
}

.article-subheading {
  margin: 0 0 8px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #999999;
}

.article-abstract p {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
}

.article-toc {
  margin-bottom: 24px;
  padding: 12px 16px;
  border-radius: 8px;
  background-color: #fafafa;
  border: 1px solid #f0f0f0;
}

.article-toc ol {
  margin: 0;
  padding-left: 18px;
  font-size: 14px;
}

.article-toc a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.article-toc a:hover {
  border-bottom-color: #111111;
}

.article-section {
  margin-bottom: 32px;
}

.article-section p {
  position: relative;
  margin: 0 0 12px;
  font-size: 15px;
  line-height: 1.7;
}

.article-section ul {
  margin: 0 0 12px 20px;
  padding: 0;
  font-size: 15px;
  line-height: 1.7;
}

.article-figure {
  margin: 16px 0 12px;
  padding: 16px;
  border-radius: 10px;
  background-color: #fafafa;
  border: 1px solid #f0f0f0;
}

.article-figure-media {
  margin-bottom: 8px;
  padding: 16px;
  border-radius: 6px;
  border: 1px dashed #dddddd;
  text-align: center;
  font-size: 13px;
  color: #999999;
}

.article-figure-caption {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: #777777;
}

.article-equation {
  margin: 16px 0 12px;
  padding: 12px 16px;
  border-radius: 8px;
  background-color: #fafafa;
  border: 1px solid #f0f0f0;
  overflow-x: auto;
  overflow-y: hidden;
}

.article-equation pre {
  margin: 0;
  font-family: "SF Mono", ui-monospace, Menlo, Monaco, Consolas,
    "Liberation Mono", "Courier New", monospace;
  font-size: 13px;
  white-space: pre;
}

@media (min-width: 960px) {
  .article-tufte {
    padding-right: 20rem;
  }

  .article-sidenote {
    position: absolute;
    top: 0;
    right: 0;
    width: 16rem;
    display: block;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    font-size: 11px;
    line-height: 1.5;
  }

  .article-sidenote span {
    display: block;
  }
}

.tm-footer {
  padding: 40px 0 56px;
  border-top: 1px solid #d7e2ea;
}

.tm-footer-inner {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px 28px;
}

.tm-footer-copy {
  max-width: 640px;
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: #607d93;
}

.tm-footer-nav {
  display: flex;
  gap: 20px;
}

.tm-footer-nav a {
  font-size: 13px;
  color: #0a304f;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.tm-footer-nav a:hover {
  color: #2475b4;
  border-bottom-color: #2475b4;
}

body {
  background:
    radial-gradient(circle at 18% 8%, rgba(36, 117, 180, 0.12), transparent 34rem),
    linear-gradient(135deg, rgba(36, 117, 180, 0.045) 0 1px, transparent 1px 18px),
    #f7fafc;
  color: #061522;
}

.tm-header {
  background-color: rgba(247, 250, 252, 0.94);
  border-bottom-color: #d7e2ea;
  backdrop-filter: blur(12px);
}

.tm-container {
  max-width: 980px;
}

.tm-logo,
.tm-nav-link,
.tm-kicker,
.tm-rail span,
.tm-ledger-type {
  font-family: "SF Mono", ui-monospace, Menlo, Monaco, Consolas,
    "Liberation Mono", "Courier New", monospace;
}

.tm-logo,
.tm-nav-link {
  color: #0a304f;
}

.tm-nav-link:hover {
  background-color: #0a304f;
  color: #f7fafc;
}

.tm-hero {
  padding: 92px 0 56px;
}

.tm-kicker {
  margin: 0 0 16px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #2475b4;
}

.tm-hero-title {
  max-width: 850px;
  margin-bottom: 18px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-size: clamp(42px, 7.5vw, 86px);
  font-weight: 750;
  letter-spacing: -0.07em;
  line-height: 0.96;
  text-align: left;
}

.tm-hero-subtitle {
  margin: 0;
  max-width: 660px;
  color: #31485c;
  text-align: left;
}

.tm-hero-tagline {
  margin: 0 0 22px;
  max-width: 660px;
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 500;
  line-height: 1.35;
  color: #0a304f;
  text-align: left;
}

.tm-rail {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-top: 36px;
  border-top: 1px solid #9dbbd1;
  border-bottom: 1px solid #d7e2ea;
}

.tm-rail p {
  margin: 0;
  padding: 13px 18px 13px 0;
  border-right: 1px solid #d7e2ea;
}

.tm-rail p:last-child {
  border-right: 0;
}

.tm-rail span,
.tm-ledger-type {
  display: block;
  margin-bottom: 5px;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #607d93;
}

.tm-rail strong {
  color: #0a304f;
  font-size: 14px;
  font-weight: 650;
}

.tm-rail-link {
  color: #0a304f;
  text-decoration: none;
  border-bottom: 1px solid #9dbbd1;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.tm-rail-link:hover {
  color: #0b68a9;
  border-color: #0b68a9;
}

.tm-rail {
  grid-template-columns: repeat(6, minmax(max-content, 1fr));
  overflow-x: auto;
}

.tm-rail p {
  border-right: 0;
}

.tm-rail span,
.tm-rail strong {
  white-space: nowrap;
}

.tm-hero {
  padding-bottom: 34px;
}

.tm-section,
.tm-section-intro {
  padding-top: 0;
  border-top: 0;
}

.tm-section > .tm-container {
  padding-top: 60px;
}

.tm-hero + .tm-section > .tm-container {
  padding-top: 18px;
}

.tm-cols > .tm-section-title {
  grid-column: 1;
}

.tm-cols > :not(.tm-section-title) {
  grid-column: 2;
}

.tm-cols > .tm-section-text + .tm-section-text {
  margin-top: 0;
}

.tm-cols > .tm-contact-links {
  grid-column: 1;
  grid-row: 2;
  margin-top: -48px;
}

.tm-cols {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  column-gap: 52px;
  align-items: start;
}

.tm-section-title {
  position: sticky;
  top: 88px;
  margin: 0;
  max-width: 220px;
  font-size: 15px;
  line-height: 1.25;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #0a304f;
}

.tm-section-title::before {
  content: "";
  display: block;
  width: 52px;
  height: 2px;
  margin-bottom: 14px;
  background-color: #2475b4;
}

.tm-section-text {
  max-width: 640px;
  margin-bottom: 12px;
  color: #31485c;
  font-size: 16px;
}

.tm-section-text:last-child {
  margin-bottom: 0;
}

.tm-ledger {
  width: 100%;
  max-width: 680px;
  border-top: 2px solid #2475b4;
}

.tm-ledger article {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 24px;
  padding: 20px 0;
}

.tm-ledger h3,
.tm-ledger p {
  margin: 0;
}

.tm-ledger h3 {
  color: #061522;
  font-size: 16px;
  line-height: 1.35;
}

.tm-ledger p {
  color: #31485c;
  font-size: 14px;
  line-height: 1.65;
}

.tm-ledger-type {
  margin-bottom: 0;
  color: #2475b4;
}

.tm-ledger-link {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 24px;
  padding: 20px 0;
  text-decoration: none;
  color: inherit;
  transition: background-color 0.15s ease;
}

.tm-ledger-link:hover {
  background-color: rgba(36, 117, 180, 0.05);
}

.tm-ledger-link:hover h3 {
  color: #0b68a9;
}

.tm-ledger-coming {
  cursor: default;
  pointer-events: none;
}

.tm-badge {
  display: inline-block;
  margin-top: 8px;
  font-family: "SF Mono", ui-monospace, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #777777;
  border: 1px solid #d0d0d0;
  border-radius: 999px;
  padding: 3px 10px;
}

.tm-contact-links a {
  color: #0b68a9;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.tm-signature {
  margin-top: 28px;
  font-family: "SF Mono", ui-monospace, Menlo, Monaco, Consolas,
    "Liberation Mono", "Courier New", monospace;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #0a304f;
}

.tm-subscribe {
  display: flex;
  align-items: baseline;
  gap: 10px;
  max-width: 400px;
  margin: 0 0 12px;
  padding: 10px 0;
  border-bottom: 2px solid #2475b4;
}

.tm-subscribe:has(.tm-subscribe-label) {
  display: block;
  padding: 0;
  margin: 0;
  border-bottom: 0;
}

.tm-subscribe-label {
  display: block;
  max-width: 400px;
  margin: 0 0 12px;
  padding: 10px 0;
  border-bottom: 2px solid #2475b4;
  font-family: "SF Mono", ui-monospace, Menlo, Monaco, Consolas,
    "Liberation Mono", "Courier New", monospace;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0;
  text-transform: none;
  color: #31485c;
}

.tm-subscribe-input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  font-family: "SF Mono", ui-monospace, Menlo, Monaco, Consolas,
    "Liberation Mono", "Courier New", monospace;
  font-size: 14px;
  color: #061522;
  outline: none;
  padding: 0;
}

.tm-subscribe-input::placeholder {
  color: #607d93;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 12px;
}

.tm-subscribe-input:focus {
  border-bottom-color: #2475b4;
}

.tm-subscribe-arrow {
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  font-family: "SF Mono", ui-monospace, Menlo, Monaco, Consolas,
    "Liberation Mono", "Courier New", monospace;
  font-size: 16px;
  color: #2475b4;
  cursor: pointer;
  line-height: 1;
}

.tm-subscribe-promise {
  margin: 8px 0 0;
  font-family: "SF Mono", ui-monospace, Menlo, Monaco, Consolas,
    "Liberation Mono", "Courier New", monospace;
  font-size: 11px;
  color: #607d93;
  letter-spacing: 0.04em;
}

.note-hero {
  padding-top: 36px;
  padding-bottom: 44px;
}

.note-kicker {
  margin: 0 0 16px;
  font-family: "SF Mono", ui-monospace, Menlo, Monaco, Consolas,
    "Liberation Mono", "Courier New", monospace;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #2475b4;
}

.note-title {
  max-width: 760px;
  margin: 0 0 14px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-size: clamp(32px, 4.6vw, 50px);
  font-weight: 720;
  letter-spacing: -0.04em;
  line-height: 1.03;
  color: #061522;
}

.note-byline {
  margin: 0 0 22px;
  font-family: "SF Mono", ui-monospace, Menlo, Monaco, Consolas,
    "Liberation Mono", "Courier New", monospace;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #607d93;
}

.note-abstract {
  max-width: 640px;
  margin: 0;
  padding-left: 16px;
  border-left: 3px solid #2475b4;
  font-size: 16px;
  line-height: 1.65;
  color: #31485c;
}

.notes-register-heading {
  margin: 0 0 10px;
  font-family: "SF Mono", ui-monospace, Menlo, Monaco, Consolas,
    "Liberation Mono", "Courier New", monospace;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #0a304f;
}

.notes-search {
  width: 100%;
  margin: 0 0 14px;
  padding: 10px 0;
  border: 0;
  border-bottom: 2px solid #2475b4;
  background: transparent;
  font-family: "SF Mono", ui-monospace, Menlo, Monaco, Consolas,
    "Liberation Mono", "Courier New", monospace;
  font-size: 14px;
  color: #061522;
  outline: none;
}

.notes-search::placeholder {
  color: #607d93;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 12px;
}

.notes-search:focus {
  border-bottom-color: #2475b4;
}

.notes-register {
  margin-top: 10px;
}

.notes-register-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
  gap: 44px;
  padding: 24px 0;
  text-decoration: none;
  color: inherit;
  align-items: baseline;
  transition: background-color 0.15s ease;
}

.notes-register-item:hover {
  background-color: rgba(36, 117, 180, 0.05);
}

.notes-register-meta {
  margin: 0 0 8px;
  font-family: "SF Mono", ui-monospace, Menlo, Monaco, Consolas,
    "Liberation Mono", "Courier New", monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #607d93;
}

.notes-register-title {
  margin: 0;
  font-size: 20px;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: #061522;
}

.notes-register-summary {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
  color: #31485c;
}

.notes-register-item:hover .notes-register-title {
  color: #0b68a9;
}

.note-body {
  margin-top: 8px;
}

.note-section {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr) 244px;
  gap: 36px;
  align-items: start;
  padding: 30px 0;
}

.note-section:first-of-type {
  padding-top: 0;
}

.note-section-name {
  position: sticky;
  top: 88px;
  margin: 0;
  font-family: "SF Mono", ui-monospace, Menlo, Monaco, Consolas,
    "Liberation Mono", "Courier New", monospace;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #0a304f;
}

.note-section-name::before {
  content: "";
  display: block;
  width: 44px;
  height: 2px;
  margin-bottom: 12px;
  background-color: #2475b4;
}

.note-section-body {
  min-width: 0;
  font-size: 15px;
  line-height: 1.7;
  color: #31485c;
}

.note-section-chart .note-figure-wide {
  grid-column: 2 / -1;
  grid-row: 2;
  min-width: 0;
}

.note-figure-chart {
  min-width: 0;
}

.note-section-body p {
  margin: 0 0 12px;
}

.note-section-body p:last-child {
  margin-bottom: 0;
}

.note-section-body ul {
  margin: 0 0 12px 20px;
  padding: 0;
}

.note-section-body em {
  color: #061522;
}

.note-tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 36px;
}

.note-tags-label {
  font-family: "SF Mono", ui-monospace, Menlo, Monaco, Consolas,
    "Liberation Mono", "Courier New", monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #607d93;
}

.note-tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.note-tags-list a {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background-color: rgba(36, 117, 180, 0.08);
  color: #0a304f;
  font-family: "SF Mono", ui-monospace, Menlo, Monaco, Consolas,
    "Liberation Mono", "Courier New", monospace;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: background-color 0.15s ease;
}

.note-tags-list a:hover {
  background-color: rgba(36, 117, 180, 0.18);
}

.note-section:first-of-type .note-aside {
  margin-top: 44px;
}

.note-aside {
  font-size: 13px;
  line-height: 1.55;
  color: #607d93;
}

.note-aside p {
  margin: 0 0 12px;
}

.note-aside-label {
  display: block;
  margin-bottom: 6px;
  font-family: "SF Mono", ui-monospace, Menlo, Monaco, Consolas,
    "Liberation Mono", "Courier New", monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #2475b4;
}

.note-aside .article-figure {
  margin: 0 0 14px;
  padding: 12px;
}

.note-aside .article-figure-media {
  margin-bottom: 6px;
  padding: 18px 10px;
  font-size: 12px;
}

.note-aside .article-figure-caption {
  font-size: 12px;
}

.note-code {
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: 8px;
  background-color: #0a304f;
  color: #e8f6ff;
  overflow-x: auto;
}

.radar-chart {
  width: 100%;
  height: auto;
  margin: 12px 0 4px;
}

.scatter-chart {
  width: 100%;
  height: auto;
  margin: 12px 0 4px;
}

.radar-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  margin: 0 0 12px;
}

.radar-controls-label {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #607d93;
}

.radar-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  line-height: 1.4;
  color: #31485c;
  cursor: pointer;
  user-select: none;
}

.radar-toggle input {
  accent-color: var(--c, #2475b4);
  margin: 0;
}

.radar-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  flex: none;
}

.note-code pre {
  margin: 0;
  font-family: "SF Mono", ui-monospace, Menlo, Monaco, Consolas,
    "Liberation Mono", "Courier New", monospace;
  font-size: 12px;
  line-height: 1.55;
  white-space: pre;
}

.note-section-body .article-equation {
  margin: 16px 0 14px;
}

@media (max-width: 1024px) {
  .note-section {
    grid-template-columns: 150px minmax(0, 1fr) 210px;
    gap: 28px;
  }
}

@media (max-width: 880px) {
  .note-section {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .note-section-chart .note-figure-wide {
    grid-column: auto;
    grid-row: auto;
  }

  .note-table.numeric {
    table-layout: fixed;
    font-size: 11px;
  }

  .note-table.numeric th,
  .note-table.numeric td {
    padding: 6px 2px;
  }

  .note-table.numeric th {
    font-size: 9px;
    letter-spacing: 0;
  }

  .note-table.numeric td {
    white-space: nowrap;
  }

  .note-section-name {
    position: static;
  }

  .notes-register-item {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .tm-cols {
    grid-template-columns: 1fr;
  }

  .tm-cols > .tm-section-title {
    position: static;
    max-width: none;
    margin-bottom: 16px;
  }

  .tm-cols > :not(.tm-section-title) {
    grid-column: auto;
  }

  .tm-cols > .tm-contact-links {
    grid-column: auto;
    grid-row: auto;
    margin-top: 0;
  }

  .tm-ledger article,
  .tm-ledger-link {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .tm-rail {
    grid-template-columns: repeat(2, 1fr);
    overflow-x: visible;
  }

  .tm-rail p {
    white-space: normal;
  }
}

.note-section-equation .note-section-name {
  grid-row: 1 / span 2;
}

.note-section-equation .note-section-body {
  grid-column: 2;
  grid-row: 1;
}

.note-section-equation .note-wide-equation {
  grid-column: 2 / -1;
  grid-row: 2;
}

@media (max-width: 880px) {
  .note-section-equation .note-section-name,
  .note-section-equation .note-section-body,
  .note-section-equation .note-wide-equation {
    grid-column: auto;
    grid-row: auto;
  }
}

.note-remark {
  float: right;
  clear: right;
  width: 244px;
  margin: 0 -280px 0 0;
  font-size: 13px;
  line-height: 1.55;
  font-style: italic;
  color: #607d93;
}

.note-preview {
  margin: 20px 0 0;
  padding: 12px 16px;
  border: 1px solid #d8a63b;
  border-radius: 8px;
  background: #fff8e8;
  color: #5c4a00;
  font-size: 14px;
  line-height: 1.55;
}

@media (max-width: 1024px) {
  .note-remark {
    width: 210px;
    margin-right: -238px;
  }
}

@media (max-width: 880px) {
  .note-remark {
    float: none;
    display: block;
    width: auto;
    margin: 6px 0;
    padding-left: 12px;
    border-left: 2px solid #d7e2ea;
  }
}

.note-xref {
  font-family: "SF Mono", ui-monospace, Menlo, Monaco, Consolas,
    "Liberation Mono", "Courier New", monospace;
  font-size: 0.9em;
  color: #0b68a9;
  text-decoration: none;
  white-space: nowrap;
}

.note-xref:hover {
  text-decoration: underline;
}

.note-theorem {
  margin: 14px 0 16px;
  padding: 14px 16px;
  border-left: 3px solid #2475b4;
  background-color: rgba(36, 117, 180, 0.05);
  border-radius: 0 6px 6px 0;
}

.note-theorem p {
  margin: 0;
}

.note-theorem p + p {
  margin-top: 10px;
}

.note-theorem-label {
  display: block;
  margin-bottom: 6px;
  font-family: "SF Mono", ui-monospace, Menlo, Monaco, Consolas,
    "Liberation Mono", "Courier New", monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #0a304f;
  font-weight: 600;
}

.note-theorem-body {
  font-size: 15px;
  line-height: 1.7;
  color: #31485c;
}

.note-proof {
  border-left-color: #8fb3d3;
  background-color: transparent;
}

.note-proof::after {
  content: "□";
  display: inline-block;
  margin-left: 6px;
  color: #607d93;
}

.note-cite {
  font-size: 0.75em;
  vertical-align: super;
  line-height: 0;
  white-space: nowrap;
  color: #0b68a9;
  text-decoration: none;
  margin: 0 1px;
}

.note-cite:hover {
  text-decoration: underline;
}

.note-references-list {
  margin: 0;
  padding-left: 0;
  list-style: none;
  counter-reset: ref;
  font-size: 13px;
  line-height: 1.6;
  color: #31485c;
}

.note-references-list li {
  counter-increment: ref;
  position: relative;
  padding-left: 2.4em;
  margin-bottom: 10px;
}

.note-references-list li::before {
  content: "[" counter(ref) "]";
  position: absolute;
  left: 0;
  top: 0;
  font-family: "SF Mono", ui-monospace, Menlo, Monaco, Consolas,
    "Liberation Mono", "Courier New", monospace;
  color: #0a304f;
}

.note-references-list a {
  color: #0b68a9;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

.note-references-list li,
.article-equation[id],
.note-section[id] {
  scroll-margin-top: 84px;
}

.note-table {
  width: 100%;
  margin: 16px 0 14px;
  border-collapse: collapse;
  font-size: 13px;
}

.note-table caption {
  caption-side: top;
  text-align: left;
  padding: 0 0 8px;
  font-size: 13px;
  color: #31485c;
}

.note-table th,
.note-table td {
  padding: 8px 10px;
  border-bottom: 1px solid #d7e2ea;
  text-align: left;
}

.note-table th {
  font-family: "SF Mono", ui-monospace, Menlo, Monaco, Consolas,
    "Liberation Mono", "Courier New", monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #607d93;
  border-bottom: 2px solid #2475b4;
}

.note-table td.num {
  font-family: "SF Mono", ui-monospace, Menlo, Monaco, Consolas,
    "Liberation Mono", "Courier New", monospace;
  text-align: right;
}

.note-table.numeric th:not(:first-child),
.note-table.numeric td:not(:first-child) {
  text-align: right;
}

.note-table-scroll {
  max-width: 100%;
  overflow-x: auto;
}

.note-article {
  counter-reset: notefig notetbl;
}

.note-article .article-figure-caption::before {
  content: "Figure " counter(notefig) ". ";
  counter-increment: notefig;
  font-weight: 600;
  color: #0a304f;
}

.note-article .note-table caption::before {
  content: "Table " counter(notetbl) ". ";
  counter-increment: notetbl;
  font-weight: 600;
  color: #0a304f;
}

.note-equation-caption {
  margin: 6px 0 0;
  font-size: 12px;
  line-height: 1.5;
  color: #607d93;
}

.note-section-body .article-equation.note-equation-plain,
.note-wide-equation.note-equation-plain {
  margin: 12px 0;
  padding: 2px 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  overflow: visible;
}

.note-algorithm {
  margin: 16px 0 14px;
  border: 1px solid #d7e2ea;
  border-radius: 8px;
  background-color: #fbfdff;
  overflow: hidden;
}

.note-algorithm-head {
  padding: 8px 14px;
  border-bottom: 1px solid #d7e2ea;
  font-family: "SF Mono", ui-monospace, Menlo, Monaco, Consolas,
    "Liberation Mono", "Courier New", monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #0a304f;
}

.note-algorithm ol {
  margin: 0;
  padding: 10px 14px 12px 42px;
  font-family: "SF Mono", ui-monospace, Menlo, Monaco, Consolas,
    "Liberation Mono", "Courier New", monospace;
  font-size: 12.5px;
  line-height: 1.75;
  color: #31485c;
}

.note-algorithm ol li::marker {
  color: #8fb3d3;
}

.note-algorithm b {
  color: #0a304f;
  font-weight: 600;
}

.note-code .hljs {
  background: transparent;
  padding: 0;
}

@media print {
  .tm-header {
    position: static !important;
    background: #fff !important;
    border: 0 !important;
  }

  body {
    background: #fff !important;
    color: #000 !important;
  }

  .tm-container {
    max-width: 100% !important;
  }

  body {
    font-size: 10.5pt;
  }

  .note-kicker,
  .note-byline {
    font-size: 9pt !important;
  }

  .note-title {
    font-size: 20pt !important;
    line-height: 1.1 !important;
  }

  .note-abstract {
    font-size: 10.5pt !important;
    line-height: 1.45 !important;
  }

  .note-section-name {
    font-size: 9.5pt !important;
  }

  .note-section-body {
    font-size: 10.5pt !important;
    line-height: 1.45 !important;
  }

  .note-aside,
  .note-references-list {
    font-size: 9pt !important;
  }

  .note-table {
    font-size: 9.5pt !important;
  }

  .note-table th {
    font-size: 8pt !important;
  }

  .note-code pre {
    font-size: 8.5pt !important;
    line-height: 1.4 !important;
  }

  .note-algorithm ol {
    font-size: 9pt !important;
  }

  .note-algorithm-head {
    font-size: 8.5pt !important;
  }

  .article-equation,
  .article-equation mjx-container,
  .note-wide-equation,
  .note-wide-equation mjx-container {
    font-size: 9pt !important;
  }

  .note-section {
    grid-template-columns: 130px minmax(0, 1fr) 190px !important;
    gap: 20px !important;
  }

  .note-section-name {
    position: static !important;
  }

  .note-aside,
  .note-remark {
    color: #444 !important;
  }

  .article-equation,
  .note-theorem,
  .note-table,
  .note-algorithm,
  .article-figure,
  .note-code {
    break-inside: avoid;
  }

  .note-code {
    background: #f4f6f8 !important;
    color: #111 !important;
  }

  .note-code .hljs,
  .note-code .hljs span {
    background: transparent !important;
    color: #111 !important;
  }

  a,
  .note-cite,
  .note-xref {
    color: #000 !important;
  }
}
