:root {
      --paper: #fbfcfd;
      --ink: #20242c;
      --body: #333a45;
      --muted: #66707d;
      --faint: #f0f3f7;
      --line: #d9e0e8;
      --teal: #108984;
      --teal-soft: #e0f4f1;
      --amber: #d77a21;
      --amber-soft: #fff1df;
      --rose: #c9465d;
      --rose-soft: #fde8ed;
      --violet: #6555a9;
      --violet-soft: #ece9ff;
      --green: #287c4d;
      --green-soft: #e5f5eb;
      --panel: #ffffff;
      --radius: 8px;
      --shadow: 0 14px 34px rgba(31, 37, 49, .08);
    }

    * {
      box-sizing: border-box;
    }

    html {
      scroll-behavior: smooth;
    }

    body {
      margin: 0;
      background: var(--paper);
      color: var(--ink);
      font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
      line-height: 1.55;
    }

    a {
      color: var(--teal);
      text-decoration-thickness: 1px;
      text-underline-offset: 3px;
    }

    button,
    input,
    select {
      font: inherit;
    }

    .topbar {
      position: sticky;
      top: 0;
      z-index: 20;
      border-bottom: 1px solid rgba(217, 224, 232, .86);
      background: rgba(251, 252, 253, .9);
      backdrop-filter: blur(16px);
    }

    .topbar-inner {
      max-width: 1180px;
      min-height: 60px;
      margin: 0 auto;
      padding: 0 22px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 20px;
    }

    .brand {
      display: flex;
      align-items: center;
      gap: 11px;
      color: var(--ink);
      font-weight: 900;
      text-decoration: none;
    }

    .mark {
      width: 33px;
      height: 33px;
      display: grid;
      place-items: center;
      border-radius: 8px;
      background: var(--ink);
      color: #fff;
      font-size: 13px;
      line-height: 1;
    }

    .nav {
      display: flex;
      gap: 4px;
      flex-wrap: wrap;
      justify-content: flex-end;
    }

    .nav a {
      border-radius: 7px;
      color: var(--muted);
      padding: 7px 9px;
      font-size: 14px;
      font-weight: 750;
      text-decoration: none;
    }

    .nav a:hover,
    .nav a:focus {
      color: var(--ink);
      background: var(--faint);
      outline: none;
    }

    .article-head {
      max-width: 1050px;
      margin: 0 auto;
      padding: 72px 22px 34px;
    }

    .kicker {
      display: inline-flex;
      align-items: center;
      gap: 9px;
      margin: 0 0 18px;
      color: var(--teal);
      font-size: 13px;
      font-weight: 900;
      letter-spacing: .08em;
      text-transform: uppercase;
    }

    .kicker::before {
      content: "";
      width: 28px;
      height: 2px;
      background: currentColor;
    }

    h1,
    h2,
    h3,
    p {
      margin-top: 0;
    }

    h1 {
      max-width: 900px;
      margin-bottom: 20px;
      color: #171b22;
      font-family: Georgia, "Times New Roman", serif;
      font-size: clamp(42px, 7vw, 82px);
      line-height: .98;
      letter-spacing: 0;
    }

    .dek {
      max-width: 800px;
      margin-bottom: 24px;
      color: var(--body);
      font-family: Georgia, "Times New Roman", serif;
      font-size: clamp(20px, 3vw, 28px);
      line-height: 1.35;
    }

    .meta {
      display: flex;
      flex-wrap: wrap;
      gap: 10px 18px;
      color: var(--muted);
      font-size: 14px;
      font-weight: 700;
    }

    .lede-grid {
      max-width: 1050px;
      margin: 0 auto;
      padding: 0 22px 48px;
      display: grid;
      grid-template-columns: minmax(0, .95fr) minmax(340px, 1.05fr);
      gap: 26px;
      align-items: stretch;
    }

    .abstract {
      border-left: 4px solid var(--teal);
      background: #fff;
      padding: 22px;
      box-shadow: var(--shadow);
    }

    .abstract h2 {
      margin-bottom: 10px;
      font-size: 18px;
      letter-spacing: .03em;
      text-transform: uppercase;
    }

    .abstract p {
      margin-bottom: 14px;
      color: var(--body);
      font-family: Georgia, "Times New Roman", serif;
      font-size: 18px;
    }

    .abstract p:last-child {
      margin-bottom: 0;
    }

    .language-figure {
      position: relative;
      min-height: 420px;
      border: 1px solid var(--line);
      border-radius: var(--radius);
      background:
        linear-gradient(125deg, rgba(16, 137, 132, .08), transparent 34%),
        linear-gradient(235deg, rgba(215, 122, 33, .13), transparent 38%),
        #fff;
      overflow: hidden;
      box-shadow: var(--shadow);
    }

    .language-figure svg {
      width: 100%;
      height: 100%;
      min-height: 420px;
      display: block;
    }

    .article-grid {
      max-width: 1180px;
      margin: 0 auto;
      padding: 0 22px 80px;
      display: grid;
      grid-template-columns: 220px minmax(0, 760px) minmax(120px, 1fr);
      gap: 28px;
      align-items: start;
    }

    .toc {
      position: sticky;
      top: 86px;
      border-right: 1px solid var(--line);
      padding-right: 18px;
      color: var(--muted);
      font-size: 13px;
    }

    .toc strong {
      display: block;
      margin-bottom: 10px;
      color: var(--ink);
      font-size: 12px;
      letter-spacing: .08em;
      text-transform: uppercase;
    }

    .toc a {
      display: block;
      margin: 7px 0;
      color: var(--muted);
      text-decoration: none;
    }

    .toc a:hover,
    .toc a:focus {
      color: var(--ink);
      outline: none;
    }

    .prose {
      min-width: 0;
    }

    .prose section {
      padding: 24px 0 46px;
      border-top: 1px solid var(--line);
    }

    .prose section:first-child {
      border-top: 0;
      padding-top: 0;
    }

    .prose h2 {
      margin-bottom: 16px;
      color: #171b22;
      font-family: Georgia, "Times New Roman", serif;
      font-size: clamp(30px, 4.2vw, 46px);
      line-height: 1.08;
      letter-spacing: 0;
    }

    .prose h3 {
      margin: 28px 0 10px;
      color: #20242c;
      font-size: 20px;
      line-height: 1.25;
    }

    .prose p,
    .prose li {
      color: var(--body);
      font-family: Georgia, "Times New Roman", serif;
      font-size: 19px;
      line-height: 1.72;
    }

    .prose p {
      margin-bottom: 18px;
    }

    .prose ul,
    .prose ol {
      margin: 0 0 20px;
      padding-left: 24px;
    }

    .prose li {
      margin: 7px 0;
    }

    .prose code {
      border: 1px solid var(--line);
      border-radius: 5px;
      background: #fff;
      padding: 1px 5px;
      font-family: "Cascadia Mono", Consolas, monospace;
      font-size: .88em;
    }

    .aside-note {
      border-left: 3px solid var(--amber);
      margin: 22px 0;
      padding: 14px 16px;
      background: var(--amber-soft);
      color: #5c3b16;
      font-size: 15px;
      line-height: 1.55;
    }

    .aside-note strong {
      display: block;
      margin-bottom: 4px;
      color: #40280d;
    }

    .callout {
      border: 1px solid var(--line);
      border-radius: var(--radius);
      background: #fff;
      padding: 18px;
      box-shadow: 0 10px 24px rgba(31, 37, 49, .06);
    }

    .callout h3 {
      margin-top: 0;
      font-family: Inter, ui-sans-serif, system-ui, sans-serif;
      font-size: 17px;
    }

    .callout p,
    .callout li {
      font-family: Inter, ui-sans-serif, system-ui, sans-serif;
      font-size: 15px;
      line-height: 1.56;
    }

    .example-strip {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 10px;
      margin: 24px 0 8px;
    }

    .example-card {
      border: 1px solid var(--line);
      border-radius: var(--radius);
      background: #fff;
      padding: 14px;
    }

    .example-card small {
      display: block;
      margin-bottom: 8px;
      color: var(--muted);
      font-family: Inter, ui-sans-serif, system-ui, sans-serif;
      font-size: 12px;
      font-weight: 900;
      letter-spacing: .04em;
      text-transform: uppercase;
    }

    .example-card p {
      margin: 0;
      font-family: "Cascadia Mono", Consolas, monospace;
      font-size: 14px;
      line-height: 1.48;
    }

    .wide-figure {
      width: min(100%, 980px);
      margin: 28px auto 34px;
      border: 1px solid var(--line);
      border-radius: var(--radius);
      background: #fff;
      box-shadow: var(--shadow);
      overflow: hidden;
    }

    .wide-figure .figure-inner {
      padding: 20px;
    }

    .wide-figure figcaption {
      border-top: 1px solid var(--line);
      background: #f8fafc;
      padding: 14px 18px;
      color: var(--muted);
      font-family: Inter, ui-sans-serif, system-ui, sans-serif;
      font-size: 14px;
      line-height: 1.5;
    }

    .figure-title {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 16px;
      margin-bottom: 16px;
    }

    .figure-title h3 {
      margin: 0;
      font-size: 20px;
    }

    .figure-title p {
      max-width: 520px;
      margin: 0;
      color: var(--muted);
      font-family: Inter, ui-sans-serif, system-ui, sans-serif;
      font-size: 14px;
      line-height: 1.5;
    }

    .badge {
      display: inline-flex;
      align-items: center;
      width: fit-content;
      border-radius: 999px;
      padding: 5px 9px;
      background: var(--teal-soft);
      color: var(--teal);
      font-size: 12px;
      font-weight: 900;
      white-space: nowrap;
    }

    .badge.amber {
      background: var(--amber-soft);
      color: var(--amber);
    }

    .badge.rose {
      background: var(--rose-soft);
      color: var(--rose);
    }

    .badge.violet {
      background: var(--violet-soft);
      color: var(--violet);
    }

    .timeline-controls {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 10px;
    }

    .timeline-button {
      min-height: 142px;
      border: 1px solid var(--line);
      border-radius: var(--radius);
      background: #fff;
      padding: 14px;
      text-align: left;
      cursor: pointer;
    }

    .timeline-button.active {
      border-color: rgba(16, 137, 132, .55);
      background: var(--teal-soft);
    }

    .timeline-button small {
      display: block;
      margin-bottom: 8px;
      color: var(--teal);
      font-weight: 950;
    }

    .timeline-button strong {
      display: block;
      margin-bottom: 6px;
      font-size: 15px;
      line-height: 1.2;
    }

    .timeline-button span {
      display: block;
      color: var(--muted);
      font-size: 13px;
      line-height: 1.35;
    }

    .timeline-detail {
      margin-top: 12px;
      border: 1px solid var(--line);
      border-radius: var(--radius);
      background: #fff;
      padding: 18px;
      display: grid;
      grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
      gap: 20px;
    }

    .timeline-detail h4 {
      margin: 6px 0 8px;
      font-size: 19px;
    }

    .timeline-detail p,
    .timeline-detail li {
      font-family: Inter, ui-sans-serif, system-ui, sans-serif;
      font-size: 14px;
      line-height: 1.55;
    }

    .timeline-detail ul {
      margin: 0;
      padding-left: 18px;
    }

    .toolbar {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      margin-bottom: 14px;
    }

    .pill {
      border: 1px solid var(--line);
      border-radius: 999px;
      background: #fff;
      color: var(--body);
      padding: 7px 10px;
      cursor: pointer;
      font-size: 13px;
      font-weight: 850;
    }

    .pill.active {
      border-color: var(--ink);
      background: var(--ink);
      color: #fff;
    }

    .matrix-layout {
      display: grid;
      grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr);
      gap: 18px;
      align-items: start;
    }

    .table-wrap {
      overflow-x: auto;
      border: 1px solid var(--line);
      border-radius: var(--radius);
      background: #fff;
    }

    table {
      width: 100%;
      min-width: 780px;
      border-collapse: collapse;
      font-size: 14px;
    }

    th,
    td {
      padding: 12px 11px;
      border-bottom: 1px solid var(--line);
      text-align: left;
      vertical-align: top;
    }

    th {
      background: #f8fafc;
      color: var(--muted);
      font-size: 12px;
      letter-spacing: .04em;
      text-transform: uppercase;
    }

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

    .route-cell {
      min-width: 154px;
      font-weight: 900;
    }

    .mini-bar strong {
      display: block;
      margin-bottom: 6px;
      font-size: 13px;
    }

    .bar-track {
      height: 7px;
      border-radius: 999px;
      background: #edf1f5;
      overflow: hidden;
    }

    .bar-fill {
      height: 100%;
      width: var(--score);
      border-radius: inherit;
      background: var(--teal);
    }

    .bar-fill.mid {
      background: var(--amber);
    }

    .bar-fill.low {
      background: var(--rose);
    }

    .rank-panel,
    .route-panel {
      border: 1px solid var(--line);
      border-radius: var(--radius);
      background: #fff;
      padding: 16px;
    }

    .rank-panel h4,
    .route-panel h4 {
      margin: 0 0 12px;
      font-size: 18px;
    }

    .ranking {
      display: grid;
      gap: 10px;
    }

    .rank-row {
      display: grid;
      grid-template-columns: minmax(120px, .8fr) minmax(110px, 1fr) 44px;
      gap: 8px;
      align-items: center;
      font-size: 13px;
    }

    .rank-row span:first-child {
      font-weight: 850;
    }

    .route-picker {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 8px;
      margin-bottom: 16px;
    }

    .route-button {
      min-height: 54px;
      border: 1px solid var(--line);
      border-radius: var(--radius);
      background: #fff;
      padding: 10px;
      color: var(--ink);
      cursor: pointer;
      text-align: left;
      font-size: 13px;
      font-weight: 900;
    }

    .route-button span {
      display: block;
      margin-top: 2px;
      color: var(--muted);
      font-size: 12px;
      font-weight: 700;
    }

    .route-button.active {
      border-color: rgba(16, 137, 132, .6);
      background: var(--teal-soft);
    }

    .route-layout {
      display: grid;
      grid-template-columns: minmax(270px, .84fr) minmax(0, 1.16fr);
      gap: 18px;
      align-items: center;
    }

    .radar-card {
      min-height: 326px;
      display: grid;
      place-items: center;
      border: 1px solid var(--line);
      border-radius: var(--radius);
      background: linear-gradient(180deg, #fff, #f8fafc);
    }

    .radar-card svg {
      width: min(100%, 330px);
      height: auto;
      display: block;
    }

    .stats {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 9px;
      margin: 14px 0;
    }

    .stat {
      border: 1px solid var(--line);
      border-radius: var(--radius);
      background: #f8fafc;
      padding: 11px;
    }

    .stat small {
      display: block;
      margin-bottom: 4px;
      color: var(--muted);
      font-size: 12px;
      font-weight: 900;
    }

    .stat strong {
      display: block;
      font-size: 24px;
      line-height: 1;
    }

    .route-panel p,
    .route-panel li {
      font-family: Inter, ui-sans-serif, system-ui, sans-serif;
      font-size: 14px;
      line-height: 1.55;
    }

    .route-panel ul {
      margin: 0;
      padding-left: 18px;
    }

    .pivot-layout {
      display: grid;
      grid-template-columns: minmax(0, .94fr) minmax(0, 1.06fr);
      gap: 18px;
      align-items: stretch;
    }

    .pivot-box {
      border: 1px solid var(--line);
      border-radius: var(--radius);
      background: #fff;
      padding: 18px;
    }

    .pivot-box h4 {
      margin: 0 0 10px;
      font-size: 18px;
    }

    .pivot-box p {
      margin-bottom: 0;
      color: var(--body);
      font-family: Inter, ui-sans-serif, system-ui, sans-serif;
      font-size: 14px;
      line-height: 1.55;
    }

    .pivot-path {
      display: grid;
      grid-template-columns: 1fr auto 1fr auto 1fr;
      gap: 10px;
      align-items: center;
      margin: 14px 0;
    }

    .node {
      border: 1px solid var(--line);
      border-radius: var(--radius);
      background: #f8fafc;
      padding: 13px 9px;
      text-align: center;
      font-weight: 900;
    }

    .node.bridge {
      border-color: rgba(215, 122, 33, .42);
      background: var(--amber-soft);
      color: #8d4a12;
    }

    .arrow {
      color: var(--muted);
      font-weight: 950;
    }

    .similarity-list {
      display: grid;
      gap: 12px;
    }

    .similarity-row {
      display: grid;
      grid-template-columns: 180px 1fr 52px;
      gap: 12px;
      align-items: center;
      font-size: 14px;
    }

    .claim-grid {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 12px;
      margin: 24px 0;
    }

    .claim-box {
      border: 1px solid var(--line);
      border-radius: var(--radius);
      background: #fff;
      padding: 17px;
    }

    .claim-box.safe {
      border-top: 5px solid var(--green);
    }

    .claim-box.careful {
      border-top: 5px solid var(--amber);
    }

    .claim-box.avoid {
      border-top: 5px solid var(--rose);
    }

    .claim-box h3 {
      margin-top: 0;
      font-family: Inter, ui-sans-serif, system-ui, sans-serif;
      font-size: 17px;
    }

    .claim-box li {
      font-family: Inter, ui-sans-serif, system-ui, sans-serif;
      font-size: 14px;
      line-height: 1.5;
    }

    .article-quote {
      border-left: 4px solid var(--violet);
      margin: 26px 0;
      padding: 18px 20px;
      background: var(--violet-soft);
      color: #302b55;
      font-family: Georgia, "Times New Roman", serif;
      font-size: 21px;
      line-height: 1.55;
    }

    .side-column {
      position: sticky;
      top: 86px;
      display: grid;
      gap: 12px;
    }

    .side-column .callout {
      padding: 14px;
      box-shadow: none;
    }

    .side-column h3 {
      margin: 0 0 8px;
      font-size: 14px;
      letter-spacing: .05em;
      text-transform: uppercase;
    }

    .side-column p,
    .side-column li {
      font-family: Inter, ui-sans-serif, system-ui, sans-serif;
      font-size: 13px;
      line-height: 1.5;
    }

    .footer {
      border-top: 1px solid var(--line);
      padding: 32px 22px 44px;
      color: var(--muted);
      font-size: 14px;
    }

    .footer-inner {
      max-width: 1050px;
      margin: 0 auto;
      display: flex;
      justify-content: space-between;
      gap: 18px;
      flex-wrap: wrap;
    }

    @media (max-width: 1080px) {
      .article-grid {
        grid-template-columns: minmax(0, 1fr);
      }

      .toc,
      .side-column {
        position: static;
        border-right: 0;
        padding-right: 0;
      }

      .toc {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 8px;
        border: 1px solid var(--line);
        border-radius: var(--radius);
        background: #fff;
        padding: 14px;
      }

      .toc strong {
        grid-column: 1 / -1;
      }

      .side-column {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }
    }

    @media (max-width: 880px) {
      .lede-grid,
      .matrix-layout,
      .route-layout,
      .pivot-layout,
      .timeline-detail {
        grid-template-columns: 1fr;
      }

      .timeline-controls,
      .example-strip,
      .claim-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }

      .side-column,
      .toc {
        grid-template-columns: 1fr;
      }
    }

    @media (max-width: 640px) {
      .topbar-inner {
        align-items: flex-start;
        flex-direction: column;
        padding-top: 12px;
        padding-bottom: 12px;
      }

      .nav {
        justify-content: flex-start;
      }

      .article-head {
        padding-top: 42px;
      }

      h1 {
        font-size: 40px;
      }

      .timeline-controls,
      .example-strip,
      .claim-grid,
      .stats,
      .route-picker {
        grid-template-columns: 1fr;
      }

      .pivot-path {
        grid-template-columns: 1fr;
      }

      .arrow {
        justify-self: center;
        transform: rotate(90deg);
      }

      .similarity-row,
      .rank-row {
        grid-template-columns: 1fr;
        gap: 6px;
      }

      .figure-title {
        display: block;
      }

      .figure-title p {
        margin-top: 8px;
      }
    }

/* TOBALM Research Journal skin */
:root {
  --paper: #f7f8f2;
  --panel: #fffefa;
  --ink: #10231d;
  --body: #2f463c;
  --muted: #5a7066;
  --faint: #edf4ec;
  --line: #d8e2d7;
  --teal: #063f31;
  --teal-soft: #e8f1e8;
  --amber: #b98845;
  --amber-soft: #f3eadb;
  --rose: #8f4d41;
  --rose-soft: #f4e7e1;
  --violet: #46615a;
  --violet-soft: #e7efec;
  --green: #063f31;
  --green-soft: #e8f1e8;
  --radius: 16px;
  --shadow: 0 18px 48px rgba(15, 52, 39, 0.09);
}

body {
  background:
    linear-gradient(180deg, rgba(232, 241, 232, 0.78), rgba(247, 248, 242, 0) 28rem),
    var(--paper);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.68;
  text-rendering: optimizeLegibility;
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

a {
  color: var(--green);
}

.topbar {
  border-bottom-color: rgba(216, 226, 215, 0.88);
  background: rgba(247, 248, 242, 0.92);
}

.topbar-inner {
  max-width: 1280px;
}

.brand {
  color: var(--green);
}

.mark {
  border-radius: 10px;
  background: var(--green);
}

.nav a {
  border-radius: 999px;
  color: var(--muted);
}

.nav a:hover,
.nav a:focus {
  background: var(--green-soft);
  color: var(--green);
}

.article-head {
  max-width: 1280px;
  padding-top: 68px;
}

.kicker {
  color: var(--muted);
}

h1 {
  max-width: 980px;
  color: var(--green);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(42px, 7vw, 78px);
  font-weight: 900;
  letter-spacing: -0.035em;
}

.dek {
  max-width: 860px;
  color: var(--body);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(20px, 2.6vw, 27px);
  line-height: 1.42;
}

.meta {
  color: var(--muted);
}

.lede-grid,
.article-grid {
  max-width: 1280px;
}

.abstract,
.language-figure,
.wide-figure,
.callout,
.example-card,
.timeline-detail,
.table-wrap,
.rank-panel,
.route-panel,
.radar-card,
.pivot-box,
.claim-box {
  border-color: var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.abstract {
  border-left: 5px solid var(--green);
}

.language-figure {
  background:
    radial-gradient(circle at 50% 20%, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.72) 42%, rgba(232, 241, 232, 0.95)),
    var(--green-soft);
}

.language-figure path,
.language-figure circle,
.language-figure rect {
  stroke: var(--green);
}

.language-figure path {
  stroke: var(--green);
}

.language-figure circle,
.language-figure rect {
  fill: #ffffff;
}

.language-figure text {
  fill: var(--green);
}

.article-grid {
  grid-template-columns: 180px minmax(0, 840px) minmax(220px, 1fr);
  gap: 34px;
}

.toc {
  border-right-color: var(--line);
}

.toc strong {
  color: var(--green);
}

.toc a {
  border-radius: 999px;
  padding: 0.42rem 0.6rem;
}

.toc a:hover,
.toc a:focus {
  background: var(--green-soft);
  color: var(--green);
}

.prose section {
  border-top-color: var(--line);
}

.prose h2 {
  color: var(--green);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 900;
  letter-spacing: -0.026em;
}

.prose h3 {
  color: var(--ink);
}

.prose p,
.prose li {
  color: var(--body);
  font-size: 19px;
  line-height: 1.78;
}

.prose code {
  border-color: var(--line);
  background: #ffffff;
  color: var(--green);
}

.aside-note {
  border-left-color: var(--amber);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--amber-soft);
}

.wide-figure {
  width: min(100%, 1040px);
  overflow: hidden;
}

.wide-figure figcaption {
  background: #f4f7f2;
  color: var(--muted);
}

.figure-title h3 {
  color: var(--ink);
}

.figure-title p {
  color: var(--muted);
}

.badge,
.badge.amber,
.badge.rose,
.badge.violet {
  border: 1px solid rgba(6, 63, 49, 0.14);
  background: var(--green-soft);
  color: var(--green);
}

.badge.amber {
  border-color: rgba(185, 136, 69, 0.24);
  background: var(--amber-soft);
  color: #765025;
}

.timeline-button,
.pill,
.route-button {
  transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease, color 160ms ease, transform 160ms ease;
}

.timeline-button {
  border-color: var(--line);
  border-radius: 14px;
  background: #ffffff;
}

.timeline-button small {
  color: var(--green);
}

.timeline-button.active,
.timeline-button:hover,
.timeline-button:focus,
.route-button.active,
.route-button:hover,
.route-button:focus,
.pill.active,
.pill:hover,
.pill:focus {
  border-color: var(--green);
  background: var(--green);
  color: #ffffff;
  box-shadow: 0 14px 30px rgba(6, 63, 49, 0.16);
  transform: translateY(-1px);
}

.timeline-button.active *,
.timeline-button:hover *,
.timeline-button:focus *,
.route-button.active *,
.route-button:hover *,
.route-button:focus * {
  color: #ffffff;
}

.pill {
  border-color: var(--line);
  background: #ffffff;
  color: var(--green);
}

th {
  background: var(--green-soft);
  color: var(--green);
}

.bar-track {
  background: #e4ece4;
}

.bar-fill,
.bar-fill.mid {
  background: var(--green);
}

.bar-fill.low {
  background: var(--amber);
}

.rank-panel,
.route-panel,
.radar-card {
  background: #ffffff;
}

.route-button {
  min-height: 66px;
  border-color: var(--line);
  border-radius: 14px;
  background: #ffffff;
  color: var(--green);
}

.route-button span {
  color: var(--muted);
}

.route-button::after {
  content: "›";
  float: right;
  margin-top: -1.55rem;
  color: currentColor;
  font-size: 1.15rem;
  font-weight: 900;
}

.stat {
  background: var(--green-soft);
}

.node {
  border-color: var(--line);
  border-radius: 999px;
  background: #ffffff;
  color: var(--green);
  min-width: 0;
  padding: 0.9rem 0.95rem;
  line-height: 1.15;
}

.node.bridge {
  border-color: rgba(185, 136, 69, 0.28);
  background: var(--amber-soft);
  color: #765025;
}

.article-quote {
  border-left-color: var(--green);
  background: var(--green-soft);
  color: var(--green);
}

.footer {
  border-top-color: var(--line);
}

.pivot-box {
  min-width: 0;
}

.pivot-path {
  grid-template-columns: minmax(5.8rem, 1fr) 1.6rem minmax(7.2rem, 1fr) 1.6rem minmax(5.8rem, 1fr);
  gap: 0.8rem;
  align-items: center;
  margin: 1.2rem 0 1.25rem;
}

.pivot-path .arrow {
  justify-self: center;
}

@media (max-width: 1080px) {
  .toc {
    border-color: var(--line);
    background: #ffffff;
  }
}

@media (max-width: 640px) {
  *,
  *::before,
  *::after {
    min-width: 0;
  }

  .topbar-inner,
  .article-head,
  .lede-grid,
  .article-grid,
  .footer-inner,
  .prose,
  .toc,
  .side-column,
  .abstract,
  .language-figure,
  .wide-figure {
    width: calc(100vw - 4.5rem) !important;
    max-width: calc(100vw - 4.5rem) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 0;
    padding-right: 0;
  }

  .article-head {
    padding-top: 38px;
  }

  .lede-grid,
  .article-grid,
  .matrix-layout,
  .route-layout,
  .pivot-layout,
  .timeline-detail {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .article-grid {
    display: block;
  }

  .topbar-inner {
    gap: 0.65rem;
  }

  .nav {
    max-width: 100%;
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .nav a {
    flex: 0 0 auto;
  }

  h1 {
    max-width: 16ch;
    font-size: 25px;
    line-height: 1.04;
    overflow-wrap: break-word;
    letter-spacing: -0.02em;
  }

  .dek {
    font-size: 16px;
    max-width: 30ch;
  }

  .meta {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .prose p,
  .prose li,
  .abstract p,
  .dek {
    font-size: 16px;
    max-width: 31ch;
    overflow-wrap: break-word;
  }

  .prose p,
  .prose li {
    max-width: 31ch;
  }

  .abstract,
  .callout,
  .wide-figure,
  .timeline-detail,
  .rank-panel,
  .route-panel,
  .pivot-box {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .language-figure svg {
    width: 100%;
    min-height: 320px;
  }

  .pivot-path {
    grid-template-columns: 1fr;
    gap: 0.65rem;
    justify-items: stretch;
  }

  .pivot-path .arrow {
    transform: rotate(90deg);
  }

  .node {
    width: 100%;
  }

  .abstract,
  .callout,
  .wide-figure,
  .timeline-detail,
  .rank-panel,
  .route-panel,
  .pivot-box {
    max-width: 100%;
  }

  .table-wrap {
    max-width: 100%;
  }
}

/* Consistent reading/content layout */
@media (min-width: 1081px) {
  .article-grid {
    max-width: 1280px;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 38px;
  }

  .prose {
    grid-column: 2;
    width: 100%;
  }

  .side-column {
    grid-column: 2;
    position: static;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 0;
  }

  .prose section > h2,
  .prose section > h3,
  .prose section > p,
  .prose section > ul,
  .prose section > ol,
  .prose section > .aside-note,
  .article-quote {
    max-width: 780px;
  }

  .wide-figure {
    width: 100%;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
  }

  .wide-figure .figure-inner {
    padding: 1.4rem;
  }

  .pivot-layout {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 1.35rem;
  }

  .pivot-path {
    grid-template-columns: minmax(7.5rem, 1fr) 2rem minmax(9rem, 1fr) 2rem minmax(7.5rem, 1fr);
    gap: 1rem;
  }
}
