/* The approved ink compendium treatment is loaded only by /weapons.
   Reuse the audited palette: cinnabar text always uses --accent-text. */
body.weapons-page .article-grid {
  grid-template-columns: minmax(0, 1fr) 224px;
  gap: 64px;
}

body.weapons-page .prose { max-width: none; }
body.weapons-page .prose p { max-width: 68ch; }

body.weapons-page .page-heading {
  padding-bottom: 24px;
  margin-bottom: 40px;
}

body.weapons-page .page-heading h1 {
  max-width: 790px;
  font-size: 64px;
  line-height: 1.04;
  letter-spacing: -.035em;
}

body.weapons-page .page-heading .updated { margin-top: 24px; }
body.weapons-page .page-heading .lead { margin-top: 24px; font-size: 18px; }

body.weapons-page .content-section > h2 {
  margin-bottom: 24px;
  padding: 0;
  border: 0;
  font-size: 28px;
}

body.weapons-page .content-section + .content-section { margin-top: 64px; }
body.weapons-page .content-section p + p { margin-top: 16px; }

body.weapons-page .content-section[aria-labelledby="weapon-count"] {
  padding: 32px;
  background: var(--surface);
}

body.weapons-page .reference-entry {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 24px;
}

body.weapons-page .reference-entry + .reference-entry { margin-top: 32px; }
body.weapons-page .reference-entry h3 {
  margin-bottom: 12px;
  font-size: 24px;
  color: var(--text);
}

body.weapons-page .desktop-toc {
  top: 32px;
  padding: 24px;
  border: 0;
  background: var(--surface);
}

body.weapons-page .desktop-toc .label {
  margin-bottom: 16px;
  font-size: 16px;
  text-transform: none;
  letter-spacing: 0;
  color: var(--text);
}

body.weapons-page .desktop-toc a { padding-block: 6px; }
body.weapons-page .mobile-toc {
  padding: 8px 16px;
  border: 0;
  background: var(--surface);
}
body.weapons-page .mobile-toc a { padding-block: 8px; }

body.weapons-page .table-wrap { margin-block: 24px; }
body.weapons-page .data-table { table-layout: fixed; font-size: 16px; }
body.weapons-page .data-table th:first-child { width: 34%; }
body.weapons-page .data-table th:nth-child(2) { width: 32%; }
body.weapons-page .data-table th,
body.weapons-page .data-table td { padding: 16px; }
body.weapons-page .data-table tbody tr:nth-child(odd) { background: var(--surface); }
body.weapons-page .data-table tbody tr:hover { background: var(--surface-2); }
body.weapons-page .data-table tbody th {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 24px;
  line-height: 1.3;
}
body.weapons-page .source-list { font-size: 14px; }
body.weapons-page .site-footer .label { color: var(--text-dim); }

@media (max-width: 959px) {
  body.weapons-page .article-grid { grid-template-columns: 1fr; gap: 32px; }
  body.weapons-page .page-heading h1 { max-width: 760px; font-size: 52px; }
}

@media (max-width: 599px) {
  body.weapons-page .container { width: calc(100% - 40px); }
  body.weapons-page main { padding-top: 24px; }
  body.weapons-page .article-grid { gap: 24px; }
  body.weapons-page .page-heading { padding-bottom: 0; margin-bottom: 32px; }
  body.weapons-page .page-heading h1 {
    font-size: 32px;
    line-height: 1.12;
    letter-spacing: -.025em;
  }
  body.weapons-page .page-heading .updated { margin-top: 16px; }
  body.weapons-page .page-heading .lead { margin-top: 20px; font-size: 16px; }
  body.weapons-page .content-section > h2 { font-size: 24px; }
  body.weapons-page .content-section + .content-section { margin-top: 48px; }
  body.weapons-page .content-section[aria-labelledby="weapon-count"] {
    margin-inline: -20px;
    padding: 24px 20px;
  }
  body.weapons-page .reference-entry { display: block; }
  body.weapons-page .data-table { font-size: 14px; }
  body.weapons-page .data-table th,
  body.weapons-page .data-table td { padding: 14px 8px; overflow-wrap: anywhere; }
  body.weapons-page .data-table tbody th {
    font-family: 'IBM Plex Sans', system-ui, sans-serif;
    font-size: 14px;
    line-height: 1.7;
  }
}
