.article-head h1 {
  max-width: 980px;
  font-size: clamp(39px, 5.8vw, 78px);
  line-height: 1.04;
}
.article-head h1 > span { display: block; white-space: nowrap; }
.sitebar__section { margin-left: auto; }

.article-copy > h2 { scroll-margin-top: 30px; }
.article-copy > h2:first-child { margin-top: 0; }
.article-lead {
  font-size: clamp(20px, 2.1vw, 24px);
  line-height: 1.48;
  font-weight: 400;
}
.rome-invitation {
  margin: 36px 0 26px !important;
  padding-left: 18px;
  border-left: 4px solid var(--pink);
  font-size: clamp(21px, 2.5vw, 28px);
  line-height: 1.35;
  font-weight: 600;
}

.cohort-visual { margin: 36px 0 48px !important; }
.cohort-visual img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--ink);
}
.cohort-cover { margin-top: 0 !important; }
.cohort-cover img { aspect-ratio: 3 / 2; object-fit: cover; }
.cohort-visual figcaption { margin-top: 10px; }
.map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 13px 0 0 !important;
  padding: 0 !important;
  list-style: none;
  color: var(--ink);
  font: 12px/1.5 var(--mono);
}
.map-legend li { display: inline-flex; align-items: center; gap: 7px; margin: 0; }
.map-legend i { display: inline-block; width: 14px; height: 3px; flex: 0 0 auto; }
.map-legend__mark { background: #8e3027; }
.map-legend__titus { background: #3a6d40; }
.map-legend__lucius { background: #2b6498; }
.map-open { display: inline-block; margin-top: 9px; font: 12px/1.4 var(--mono); }
.closing-line {
  margin: 48px 0 0 !important;
  padding-top: 21px;
  border-top: 1px solid var(--ink);
  font-size: clamp(20px, 2.1vw, 24px);
  line-height: 1.4;
  font-weight: 500;
}

.commander-mention {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin: 0 2px;
  white-space: nowrap;
  vertical-align: middle;
  font-weight: 500;
}
.commander-avatar {
  display: block;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 50%;
  object-fit: cover;
}
.commander-avatar--inline { width: 1.45em; height: 1.45em; }
.commander-table-name {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.commander-avatar--table { width: 30px; height: 30px; }

.dialogue-line {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  width: fit-content;
  max-width: 94%;
  margin: 18px 0;
}
.dialogue-line + .dialogue-line { margin-top: 12px; }
.dialogue-line--emperor {
  flex-direction: row-reverse;
  margin-left: auto;
}
.dialogue-line img {
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  object-fit: cover;
  background: var(--bg);
  transform: scaleX(-1);
}
.dialogue-line__body {
  min-width: 0;
  padding: 11px 15px 13px;
  border: 1px solid #c9d4d8;
  border-radius: 12px 12px 12px 3px;
  background: #e9f0f1;
}
.dialogue-line--emperor .dialogue-line__body {
  border-color: #e8bfd0;
  border-radius: 12px 12px 3px 12px;
  background: #fbeaf1;
}
.dialogue-line__speaker {
  display: block;
  margin: 0 0 4px;
  color: #41626b;
  font: 600 13px/1.3 var(--text);
}
.dialogue-line--emperor .dialogue-line__speaker { color: #9a4d6a; }
.dialogue-line p { margin: 0; line-height: 1.5; }
.article-copy p.dialogue-beat {
  max-width: 80%;
  margin: 8px auto 14px;
  color: #5e5b56;
  font-size: 16px;
  font-style: italic;
  line-height: 1.5;
  text-align: center;
}
.dialogue-beat + .dialogue-line { margin-top: 0; }

.article-copy .table-wrapper {
  max-width: 100%;
  margin: 28px 0 38px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-color: var(--muted) transparent;
}
.cohort-table {
  min-width: 620px;
  border-collapse: collapse;
  background: #fff;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}
.cohort-table--report { min-width: 580px; }
.cohort-table th,
.cohort-table td { padding: 11px 12px; text-align: right; vertical-align: middle; }
.cohort-table thead th { color: var(--ink); text-align: right; font: 500 11px/1.35 var(--mono); white-space: normal; }
.cohort-table thead th:first-child { text-align: left; }
.cohort-table tbody th[scope="row"] {
  position: sticky;
  left: 0;
  z-index: 1;
  min-width: 125px;
  background: #fff;
  text-align: left;
  font-weight: 600;
}
.cohort-table tbody tr:last-child th,
.cohort-table tbody tr:last-child td { border-bottom-width: 2px; }
.cohort-table--report tbody tr:first-child th,
.cohort-table--report tbody tr:first-child td,
.cohort-table--first-month tbody tr:first-child th,
.cohort-table--first-month tbody tr:first-child td,
.cohort-table--four-month tbody tr:first-child th,
.cohort-table--four-month tbody tr:first-child td { background: #fff1f7; }
.cohort-table--march thead th:nth-child(4),
.cohort-table--march tbody td:nth-child(4) { background: #fff1f7; }
.cohort-table--history { min-width: 716px; font-size: 14px; }
.cohort-table--history tbody tr:nth-child(4) td:nth-child(5) { background: #fff1f7; box-shadow: inset 0 0 0 2px var(--pink); }
.cohort-table--history tbody tr:nth-child(4) td:nth-child(6) { background: #fff1f7; }
.cohort-table--forecast { min-width: 630px; }
.cohort-table--forecast thead th:first-child,
.cohort-table--forecast tbody th[scope="row"] {
  width: 185px;
  min-width: 185px;
  max-width: 185px;
  white-space: normal;
}
.cohort-table--forecast tbody tr:last-child th,
.cohort-table--forecast tbody tr:last-child td,
.cohort-table--history tbody tr:last-child th,
.cohort-table--history tbody tr:last-child td,
.cohort-table--march tbody tr:last-child th,
.cohort-table--march tbody tr:last-child td { background: #f4f2ed; font-weight: 700; }
.cohort-table--forecast tbody tr:last-child th,
.cohort-table--forecast tbody tr:last-child td { background: #fff1f7; }
.table-scroll-hint { display: none; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.origin-note {
  position: sticky;
  top: 24px;
  height: calc(100vh - 48px);
  display: flex;
  flex-direction: column;
  gap: 42px;
}
.aside-about { flex: 0 0 auto; }
.aside-block > summary {
  display: inline-flex;
  align-items: center;
  color: var(--pink);
  font: 12px/1.4 var(--mono);
  text-transform: uppercase;
  cursor: pointer;
  list-style: none;
}
.aside-block > summary::-webkit-details-marker { display: none; }
.aside-block__body { padding-top: 12px; }
#toc { min-height: 0; margin-top: auto; display: flex; flex-direction: column; }
.toc-title { margin: 0 0 12px; color: var(--pink); font: 12px/1.4 var(--mono); text-transform: uppercase; }
.toc { min-height: 0; margin: 0; padding: 0; overflow-y: auto; list-style: none; scrollbar-width: thin; }
.toc a { display: block; padding: 8px 0; border-top: 1px solid var(--line); color: var(--muted); text-decoration: none; font: 12px/1.4 var(--mono); }
.toc li:first-child a { border-top: 0; }
.toc a:hover,
.toc a.active { color: var(--pink); }
.toc a.active { margin-left: -10px; padding-left: 8px; border-left: 2px solid var(--pink); }
.toc-to-top { display: block; margin-top: 15px; padding: 9px 10px; border: 1px solid var(--ink); color: var(--ink); text-align: center; text-decoration: none; font: 11px/1.3 var(--mono); text-transform: uppercase; }
.toc-to-top:hover { background: var(--ink); color: var(--bg); }
.toc-study-ai { display: block; width: 100%; margin-top: 8px; padding: 9px 10px; border: 1px solid var(--pink); background: transparent; color: var(--pink); text-align: center; font: 11px/1.3 var(--mono); text-transform: uppercase; cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.toc-study-ai:hover { background: var(--pink); color: #fff; }
.toc-study-ai.copied { border-color: var(--ink); background: var(--ink); color: var(--bg); }
.mobilebar-wrap { display: none; }

@media (max-width: 800px) {
  .article-layout > .origin-note { display: none; }
  .article-copy { grid-row: 1; }
  .article-head h1 { font-size: clamp(25px, 6.4vw, 50px); }
  .mobilebar-wrap { position: sticky; top: 0; z-index: 50; display: block; border-bottom: 1px solid var(--ink); background: var(--bg); }
  .mobilebar { display: flex; align-items: center; gap: 12px; padding: 9px 18px; }
  .mb-toc { flex: 1; min-width: 0; display: flex; gap: 8px; padding: 0; border: 0; background: none; text-align: left; font: 12px/1.4 var(--mono); text-transform: uppercase; }
  .mb-toc__label { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
  .mb-toc__chev { color: var(--pink); }
  .mb-avatar { width: 36px; height: 36px; padding: 0; overflow: hidden; border: 1px solid var(--ink); border-radius: 50%; background: none; }
  .mb-avatar img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); }
  .mb-panel { position: absolute; top: 100%; right: 0; left: 0; max-height: 72vh; overflow-y: auto; padding: 12px 18px 18px; border-bottom: 1px solid var(--ink); background: var(--bg); box-shadow: 0 16px 26px rgba(17,17,16,.12); }
  .mb-panel[hidden] { display: none; }
  .mb-panel ul { margin: 0; padding: 0; list-style: none; }
  .mb-panel a { display: block; padding: 10px 0; border-top: 1px solid var(--line); color: var(--ink); text-decoration: none; font: 13px/1.4 var(--mono); }
  .mb-about p { margin: 0 0 12px; font: 14px/1.55 var(--text); }
  .mb-about a { display: inline-block; margin-right: 12px; border: 0; }
  .article-copy > h2 { scroll-margin-top: 74px; }
  .cohort-visual { margin: 28px -18px 36px !important; }
  .cohort-visual figcaption { padding: 0 18px; }
  .map-legend { padding: 0 18px !important; }
  .map-open { margin-left: 18px; }
  .article-copy .table-wrapper { width: calc(100% + 36px); max-width: none; margin-left: -18px; padding-left: 18px; }
  .table-scroll-hint { display: block; position: sticky; left: 0; width: max-content; margin: 0 0 7px; color: var(--muted); font: 11px/1.3 var(--mono); }
}

@media (max-width: 520px) {
  .article-head h1 { font-size: clamp(19px, 6.4vw, 34px); }
  .article-lead { font-size: 20px; }
  .dialogue-line { max-width: 100%; gap: 8px; margin: 15px 0; }
  .dialogue-line img { flex-basis: 40px; width: 40px; height: 40px; }
  .dialogue-line__body { padding: 10px 12px 12px; }
  .dialogue-line p { font-size: 17px; }
  .article-copy p.dialogue-beat { max-width: 100%; font-size: 15px; }
  .cohort-visual figcaption { font-size: 11px; }
}
