@font-face {
  font-family: 'Bodoni Moda';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/static/fonts/bodoni-moda-latin-opsz-normal.woff2') format('woff2');
}

@font-face {
  font-family: 'Bodoni Moda';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/static/fonts/bodoni-moda-latin-ext-opsz-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1EFF;
}

@font-face {
  font-family: 'Bodoni Moda';
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url('/static/fonts/bodoni-moda-latin-opsz-italic.woff2') format('woff2');
}

@font-face {
  font-family: 'Bodoni Moda';
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url('/static/fonts/bodoni-moda-latin-ext-opsz-italic.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1EFF;
}

@font-face {
  font-family: 'Spectral';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/static/fonts/spectral-latin-400-normal.woff2') format('woff2');
}

@font-face {
  font-family: 'Spectral';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/static/fonts/spectral-latin-ext-400-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1EFF;
}

@font-face {
  font-family: 'Spectral';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('/static/fonts/spectral-latin-400-italic.woff2') format('woff2');
}

@font-face {
  font-family: 'Spectral SC';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/static/fonts/spectral-sc-latin-500-normal.woff2') format('woff2');
}

@font-face {
  font-family: 'Spectral SC';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/static/fonts/spectral-sc-latin-ext-500-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1EFF;
}

@font-face {
  font-family: 'Courier Prime';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/static/fonts/courier-prime-latin-400-normal.woff2') format('woff2');
}

@font-face {
  font-family: 'Courier Prime';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/static/fonts/courier-prime-latin-ext-400-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1EFF;
}

@font-face {
  font-family: 'Courier Prime';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/static/fonts/courier-prime-latin-700-normal.woff2') format('woff2');
}

@font-face {
  font-family: 'Courier Prime';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/static/fonts/courier-prime-latin-ext-700-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1EFF;
}

:root {
  --bg: #FFFFFF;
  --ink: #151311;
  --rubric: #A3201B;
  --muted: #6B6560;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background-color: #FFFFFF;
  color: #151311;
  font-size: 19px;
}

body {
  margin: 0;
  padding: 0;
  background-color: #FFFFFF;
  color: #151311;
  font-family: 'Bodoni Moda', Georgia, serif;
  font-optical-sizing: auto;
  font-size: 19px;
  font-weight: 400;
  line-height: 1.58;
  hyphens: auto;
}

h1,
h2,
h3,
h4 {
  font-family: 'Spectral SC', Georgia, serif;
  letter-spacing: 0.06em;
  font-weight: 500;
  color: #151311;
  hyphens: manual;
  -webkit-hyphens: manual;
}

nav,
.site-header,
.site-nav,
.unit-nav,
.title-page-header,
.title-page-kicker,
.title-page-main,
.title-page-sub,
.title-page-edition,
.toc-heading,
.toc-work-title,
.apparatus-title,
.summa-article-title,
.summa-article-sub,
.rubric-heading,
.api-sidenav,
.api-path-header {
  hyphens: manual;
  -webkit-hyphens: manual;
}

a {
  color: #151311;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16em;
}

a:hover {
  color: #A3201B;
}

:focus-visible {
  outline: 1px solid #A3201B;
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background-color: #FFFFFF;
  color: #A3201B;
  padding: 0.4rem 0.8rem;
  border: 1px solid #A3201B;
  font-family: 'Spectral SC', Georgia, serif;
  letter-spacing: 0.06em;
  z-index: 100;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.page-shell {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 2rem;
  background-color: #FFFFFF;
}

/* Header */
.site-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 1.1rem 0 0.85rem;
  border-bottom: 1px solid #151311;
  font-family: 'Spectral SC', Georgia, serif;
  letter-spacing: 0.06em;
}

.site-brand {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.75rem;
}

.site-brand-title {
  font-family: 'Spectral SC', Georgia, serif;
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-decoration: none;
  color: #151311;
}

.site-brand-sub {
  font-family: 'Bodoni Moda', Georgia, serif;
  font-style: italic;
  font-size: 0.88rem;
  letter-spacing: 0;
  color: #6B6560;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 1.1rem;
  font-size: 0.85rem;
}

.site-nav a {
  text-decoration: none;
  color: #151311;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: #A3201B;
  text-decoration: underline;
}

.lang-switch {
  display: inline-flex;
  gap: 0.35rem;
  margin-left: 0.5rem;
  padding-left: 0.75rem;
  border-left: 1px solid #151311;
  font-size: 0.8rem;
}

.lang-switch a {
  color: #6B6560;
  text-decoration: none;
}

.lang-switch a[aria-current="true"] {
  color: #A3201B;
  text-decoration: underline;
}

/* Title-page headers (1836 style) */
.title-page-header {
  text-align: center;
  padding: 2.2rem 0 1.4rem;
  border-bottom: 1px solid #151311;
  margin-bottom: 1.8rem;
}

.title-page-double-rule {
  border-top: 1px solid #151311;
  padding-top: 3px;
  border-bottom: 1px solid #151311;
  margin: 1rem auto;
  max-width: 100%;
}

.title-page-kicker {
  font-family: 'Spectral SC', Georgia, serif;
  letter-spacing: 0.06em;
  font-size: 0.82rem;
  color: #A3201B;
  margin: 0 0 0.35rem;
}

.title-page-main {
  font-family: 'Spectral SC', Georgia, serif;
  letter-spacing: 0.06em;
  font-weight: 500;
  font-size: 2.1rem;
  line-height: 1.18;
  margin: 0.2rem 0;
  color: #151311;
}

.title-page-sub {
  font-family: 'Bodoni Moda', Georgia, serif;
  font-style: italic;
  font-size: 1.05rem;
  color: #151311;
  margin: 0.45rem 0 0.2rem;
}

.ref-title-label {
  font-family: 'Spectral', Georgia, serif;
  font-style: normal;
  font-size: 0.8rem;
  color: #6B6560;
  margin-right: 0.25rem;
}

.title-page-edition {
  font-family: 'Spectral', Georgia, serif;
  font-variant-numeric: oldstyle-nums;
  font-size: 0.86rem;
  color: #6B6560;
  margin: 0.35rem 0 0;
}

/* Status grid (single line / compact grid of tiny squares) */
.status-grid-wrap {
  margin: 1rem 0 0.2rem;
  text-align: center;
}

.status-grid {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 3px;
  max-width: 100%;
}

.status-square {
  display: inline-block;
  width: 9px;
  height: 9px;
  border: 1px solid #6B6560;
  background-color: #FFFFFF;
  text-decoration: none;
}

.status-square.is-reviewed {
  background-color: #A3201B;
  border-color: #A3201B;
}

.status-square.is-progress {
  background-color: #FFFFFF;
  border-color: #A3201B;
}

.status-square.is-todo {
  background-color: #FFFFFF;
  border-color: #6B6560;
}

.status-caption {
  font-family: 'Spectral', Georgia, serif;
  font-variant-numeric: oldstyle-nums;
  font-size: 0.8rem;
  color: #6B6560;
  margin-top: 0.45rem;
}

/* Table of contents on Home & Work indexes */
.toc-section {
  margin: 1.8rem 0 2.2rem;
}

.toc-heading {
  font-family: 'Spectral SC', Georgia, serif;
  letter-spacing: 0.06em;
  font-weight: 500;
  font-size: 0.95rem;
  color: #A3201B;
  margin: 0 0 0.9rem;
  border-bottom: 1px solid #151311;
  padding-bottom: 0.3rem;
}

.toc-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.toc-entry {
  padding: 0.55rem 0;
  font-family: 'Spectral', Georgia, serif;
  font-variant-numeric: oldstyle-nums;
}

.toc-line {
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
  width: 100%;
}

.toc-subline {
  margin: 0.15rem 0 0;
  font-family: 'Bodoni Moda', Georgia, serif;
  font-style: italic;
  font-size: 0.88rem;
  color: #6B6560;
  line-height: 1.4;
  hyphens: manual;
  -webkit-hyphens: manual;
}

.toc-entry.is-muted,
.toc-entry.is-muted a,
.toc-entry.is-muted .toc-count {
  color: #6B6560;
}

.toc-row {
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
  padding: 0.48rem 0;
  font-family: 'Spectral', Georgia, serif;
  font-variant-numeric: oldstyle-nums;
}

.toc-row.is-muted,
.toc-row.is-muted a {
  color: #6B6560;
}

.toc-work-title {
  font-family: 'Spectral SC', Georgia, serif;
  letter-spacing: 0.06em;
  font-weight: 500;
  font-size: 1rem;
  hyphens: manual;
  -webkit-hyphens: manual;
}

.toc-work-edition {
  font-family: 'Bodoni Moda', Georgia, serif;
  font-style: italic;
  font-size: 0.92rem;
  color: #6B6560;
}

.toc-dots {
  flex: 1 1 2rem;
  border-bottom: 1px dotted #6B6560;
  min-width: 1rem;
  height: 0.6em;
}

.toc-state {
  font-size: 0.86rem;
  color: #6B6560;
}

.toc-count {
  font-size: 0.88rem;
  color: #A3201B;
  white-space: nowrap;
  flex-shrink: 0;
  text-align: right;
}

.toc-row.is-muted .toc-count {
  color: #6B6560;
}

.home-prose {
  max-width: 44rem;
  margin: 2rem auto 2.5rem;
  text-align: justify;
  hyphens: auto;
}

.home-prose p {
  margin: 0 0 1rem;
}

.home-inline-figures {
  font-family: 'Spectral', Georgia, serif;
  font-variant-numeric: oldstyle-nums;
  color: #6B6560;
  font-size: 0.92rem;
  border-top: 1px solid #151311;
  padding-top: 0.7rem;
  margin-top: 1.2rem;
}

/* Chapter / Question Navigation bar */
.unit-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem 0;
  margin-bottom: 1.5rem;
  border-top: 1px solid #151311;
  border-bottom: 1px solid #151311;
  font-family: 'Spectral SC', Georgia, serif;
  letter-spacing: 0.06em;
  font-size: 0.85rem;
}

.unit-nav-links {
  display: flex;
  gap: 1.2rem;
  align-items: baseline;
}

.unit-nav-links a {
  text-decoration: none;
}

.unit-selector {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.unit-selector label {
  font-size: 0.8rem;
  color: #6B6560;
}

.unit-selector select {
  font-family: 'Spectral SC', Georgia, serif;
  letter-spacing: 0.04em;
  font-size: 0.82rem;
  color: #151311;
  background-color: #FFFFFF;
  border: 1px solid #151311;
  padding: 0.2rem 0.45rem;
}

.chapter-pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0.6rem 0 1.4rem;
  font-family: 'Spectral', Georgia, serif;
  font-variant-numeric: oldstyle-nums;
  font-size: 0.85rem;
}

.chapter-pill-list a {
  text-decoration: none;
  padding: 0.1rem 0.35rem;
  color: #6B6560;
}

.chapter-pill-list a[aria-current="page"] {
  color: #A3201B;
  border-bottom: 1px solid #A3201B;
}

.retranscribed-notice {
  font-family: 'Spectral', Georgia, serif;
  font-style: italic;
  font-size: 0.88rem;
  color: #6B6560;
  margin: 0 0 1.2rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #151311;
}

/* Reading layout: 2 columns of text + outer apparatus margin on desktop */
.reading-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 2.5rem;
  align-items: start;
  margin-bottom: 2.5rem;
}

.chapter-columns {
  column-count: 2;
  column-gap: 3.2rem;
  column-rule: 1px solid #151311;
  text-align: justify;
  hyphens: auto;
  padding-left: 0;
}

.verse {
  margin: 0 0 0.45rem;
  padding-left: 1.9rem;
  position: relative;
}

.verse-num {
  display: inline-block;
  min-width: 1.6rem;
  margin-left: -1.9rem;
  padding-right: 0.3rem;
  text-align: right;
  color: #A3201B;
  font-family: 'Spectral', Georgia, serif;
  font-variant-numeric: oldstyle-nums;
  font-size: 0.85rem;
  user-select: none;
}

.sigle {
  font-family: 'Spectral', Georgia, serif;
  font-variant-numeric: oldstyle-nums;
  font-size: 0.72em;
  line-height: 0;
  margin-left: 0.08em;
}

.sigle a {
  text-decoration: none;
  padding: 0 0.1em;
}

.sigle-corr a {
  color: #A3201B;
  font-weight: 600;
}

.sigle-var a {
  color: #6B6560;
}

.report-link {
  position: absolute;
  right: 0;
  bottom: 0;
  background-color: #FFFFFF;
  padding-left: 0.45rem;
  font-family: 'Spectral SC', Georgia, serif;
  letter-spacing: 0.06em;
  font-size: 0.66rem;
  line-height: 1.25;
  color: #6B6560;
  text-decoration: none;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
}

.verse:hover .report-link,
.verse:focus-within .report-link,
.summa-article:hover .report-link,
.summa-article:focus-within .report-link,
.report-link:focus {
  opacity: 1;
  pointer-events: auto;
}

/* Outer critical apparatus margin */
.chapter-apparatus {
  font-family: 'Spectral', Georgia, serif;
  font-variant-numeric: oldstyle-nums;
  font-size: 0.84rem;
  line-height: 1.42;
  color: #6B6560;
  border-left: 1px solid #151311;
  padding-left: 1rem;
}

.apparatus-title {
  font-family: 'Spectral SC', Georgia, serif;
  letter-spacing: 0.06em;
  font-size: 0.78rem;
  color: #A3201B;
  margin: 0 0 0.65rem;
  font-weight: 500;
}

.app-note {
  margin: 0 0 0.7rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #151311;
}

.app-note-line {
  display: block;
  font-family: 'Spectral', Georgia, serif;
  font-variant-numeric: oldstyle-nums;
}

.app-sigle {
  color: #A3201B;
  font-weight: 600;
  margin-right: 0.35rem;
}

.app-note.is-variant .app-sigle {
  color: #6B6560;
}

.app-lemma {
  color: #6B6560;
}

.app-reading {
  color: #151311;
}

.app-toggle-btn {
  background: #FFFFFF;
  border: none;
  padding: 0;
  margin-left: 0.25rem;
  font-family: 'Spectral SC', Georgia, serif;
  letter-spacing: 0.06em;
  font-size: 0.72rem;
  color: #A3201B;
  cursor: pointer;
  text-decoration: underline;
}

.app-note.is-variant .app-toggle-btn {
  color: #6B6560;
}

.app-scan {
  display: none;
  margin-top: 0.45rem;
  padding-top: 0.4rem;
  border-top: 1px solid #151311;
}

.app-note:hover .app-scan,
.app-note:focus-within .app-scan,
.app-note.is-open .app-scan {
  display: block;
}

.app-scan img {
  display: block;
  max-width: 100%;
  height: auto;
  border: 1px solid #151311;
}

.app-scan.is-fullpage img {
  max-height: 190px;
  object-fit: cover;
  object-position: top center;
  width: 100%;
}

.app-scan-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  margin-top: 0.25rem;
  color: #6B6560;
}

/* Summa question layout */
.summa-apparatus .app-note:not(.is-open) .app-scan {
  display: none;
}

.summa-columns {
  column-count: 2;
  column-gap: 3.2rem;
  column-rule: 1px solid #151311;
  text-align: justify;
  hyphens: auto;
  margin-bottom: 2.5rem;
}

.summa-prooemium {
  margin-bottom: 1.4rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid #151311;
}

.summa-article {
  margin-bottom: 1.5rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid #151311;
  position: relative;
}

.summa-article-title,
.rubric-heading {
  font-family: 'Spectral SC', Georgia, serif;
  letter-spacing: 0.06em;
  font-weight: 500;
  font-size: 1rem;
  color: #A3201B;
  margin: 0.8rem 0 0.45rem;
  text-align: left;
}

.summa-article-sub {
  font-family: 'Bodoni Moda', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0;
  color: #151311;
  font-size: 0.96rem;
}

.summa-para {
  margin: 0 0 0.55rem;
  text-indent: 1.2em;
  position: relative;
}

.summa-para:first-of-type {
  text-indent: 0;
}

.para-num {
  color: #A3201B;
  font-family: 'Spectral', Georgia, serif;
  font-variant-numeric: oldstyle-nums;
  margin-right: 0.25em;
}

.rubric-inline {
  font-family: 'Spectral SC', Georgia, serif;
  letter-spacing: 0.06em;
  color: #A3201B;
}

.source-banner {
  font-family: 'Spectral', Georgia, serif;
  font-variant-numeric: oldstyle-nums;
  font-size: 0.84rem;
  color: #6B6560;
  border-top: 1px solid #151311;
  padding-top: 0.65rem;
  margin-top: 1.5rem;
}

/* Prose / Editorial pages (Progetto, Metodo, Licenza, Scarica, Segnala) */
.editorial-content {
  max-width: 46rem;
  margin: 1.8rem auto 2.8rem;
  text-align: justify;
  hyphens: auto;
}

.editorial-content h1,
.editorial-content h2,
.editorial-content h3,
.api-main h1,
.api-main h2,
.api-main h3 {
  font-family: 'Spectral SC', Georgia, serif;
  letter-spacing: 0.06em;
  font-weight: 500;
  color: #151311;
  text-align: left;
}

.editorial-content h1,
.api-main h1 {
  font-size: 1.8rem;
  border-bottom: 1px solid #151311;
  padding-bottom: 0.4rem;
  margin-top: 0;
}

.editorial-content h2,
.api-main h2 {
  font-size: 1.15rem;
  color: #A3201B;
  margin-top: 2rem;
  border-bottom: 1px solid #151311;
  padding-bottom: 0.2rem;
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.2rem 0 1.8rem;
  font-family: 'Spectral', Georgia, serif;
  font-variant-numeric: oldstyle-nums;
  font-size: 0.88rem;
  text-align: left;
}

th,
td {
  border-top: 1px solid #151311;
  border-bottom: 1px solid #151311;
  padding: 0.45rem 0.6rem;
  vertical-align: top;
}

th {
  font-family: 'Spectral SC', Georgia, serif;
  letter-spacing: 0.06em;
  font-weight: 500;
  color: #A3201B;
}

.num-col {
  text-align: right;
}

/* Metodo live demonstration box */
.demo-collation {
  border: 1px solid #151311;
  padding: 1.2rem 1.4rem;
  margin: 1.8rem 0;
}

.demo-collation-header {
  font-family: 'Spectral SC', Georgia, serif;
  letter-spacing: 0.06em;
  color: #A3201B;
  font-size: 0.9rem;
  margin-bottom: 0.6rem;
  border-bottom: 1px solid #151311;
  padding-bottom: 0.3rem;
}

.demo-faulty {
  color: #6B6560;
  text-decoration: line-through;
}

.demo-emended {
  color: #A3201B;
  font-weight: 600;
}

.demo-scan-img {
  display: block;
  max-width: 100%;
  height: auto;
  border: 1px solid #151311;
  margin: 0.8rem 0 0.4rem;
}

/* API Documentation layout */
.api-layout {
  display: grid;
  grid-template-columns: 295px minmax(0, 1fr);
  gap: 2.5rem;
  align-items: start;
  margin: 1.8rem 0 2.8rem;
}

.api-sidenav {
  position: sticky;
  top: 1rem;
  min-width: 260px;
  border-right: 1px solid #151311;
  padding-right: 1rem;
  font-family: 'Spectral SC', Georgia, serif;
  letter-spacing: 0.06em;
  font-size: 0.8rem;
  hyphens: none;
  -webkit-hyphens: none;
}

.api-sidenav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.api-sidenav li {
  margin-bottom: 0.45rem;
}

.api-sidenav a {
  text-decoration: none;
  color: #6B6560;
}

.api-sidenav a:hover {
  color: #A3201B;
}

.api-nav-path {
  font-family: 'Courier Prime', monospace;
  font-style: normal;
  font-size: 14px;
  letter-spacing: 0;
  hyphens: none;
  -webkit-hyphens: none;
  overflow-wrap: anywhere;
  display: inline-block;
}

.api-endpoint {
  border-top: 1px solid #151311;
  padding-top: 1.4rem;
  margin-top: 2rem;
}

.api-path-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.6rem;
  font-family: 'Spectral SC', Georgia, serif;
  letter-spacing: 0.06em;
  margin-bottom: 0.5rem;
}

.api-method {
  color: #A3201B;
  border: 1px solid #A3201B;
  padding: 0.05rem 0.4rem;
  font-size: 0.78rem;
}

.api-path {
  font-family: 'Courier Prime', monospace;
  font-style: normal;
  font-size: 0.96rem;
  font-weight: 700;
}

/* Tabs for code examples */
.code-tabs {
  margin: 0.8rem 0 1.2rem;
  border: 1px solid #151311;
}

.code-tablist {
  display: flex;
  border-bottom: 1px solid #151311;
  background-color: #FFFFFF;
}

.code-tab {
  background-color: #FFFFFF;
  color: #6B6560;
  border: none;
  border-right: 1px solid #151311;
  padding: 0.35rem 0.85rem;
  font-family: 'Spectral SC', Georgia, serif;
  letter-spacing: 0.06em;
  font-size: 0.78rem;
  cursor: pointer;
}

.code-tab[aria-selected="true"] {
  color: #A3201B;
  text-decoration: underline;
}

.code-panel {
  padding: 0.75rem 1rem;
  margin: 0;
  overflow-x: auto;
  font-family: 'Courier Prime', monospace;
  font-style: normal;
  font-size: 0.82rem;
  line-height: 1.48;
  border: none;
}

.code-panel[hidden] {
  display: none;
}

pre,
code {
  font-family: 'Courier Prime', monospace;
  font-style: normal;
  font-size: 0.82rem;
  line-height: 1.48;
}

pre {
  border: 1px solid #151311;
  padding: 0.75rem 1rem;
  overflow-x: auto;
  background-color: #FFFFFF;
}

.api-example-block pre {
  margin-bottom: 0;
}

.api-truncation-note {
  margin: 0;
  padding: 0.4rem 1rem;
  border: 1px solid #151311;
  border-top: none;
  font-family: 'Spectral', Georgia, serif;
  font-style: italic;
  font-size: 0.84rem;
  color: #6B6560;
}

.api-truncation-note a {
  color: #6B6560;
}

.api-truncation-note a:hover {
  color: #A3201B;
}

/* Minimal JSON syntax highlighting */
.json-key {
  color: #A3201B;
  font-style: normal;
}

.json-str {
  color: #151311;
  font-style: normal;
}

.json-num {
  color: #6B6560;
  font-style: normal;
}

/* Interactive Try-it block and Forms */
.try-box,
.report-form-box {
  border: 1px solid #151311;
  padding: 1.2rem 1.4rem;
  margin: 1.5rem 0;
  background-color: #FFFFFF;
}

.form-row {
  margin-bottom: 0.9rem;
}

.form-row label {
  display: block;
  font-family: 'Spectral SC', Georgia, serif;
  letter-spacing: 0.06em;
  font-size: 0.82rem;
  margin-bottom: 0.25rem;
  color: #151311;
}

.form-row input,
.form-row textarea,
.form-row select {
  width: 100%;
  padding: 0.4rem 0.55rem;
  border: 1px solid #151311;
  background-color: #FFFFFF;
  color: #151311;
  font-family: 'Bodoni Moda', Georgia, serif;
  font-size: 0.95rem;
}

.btn-rubric {
  background-color: #FFFFFF;
  color: #A3201B;
  border: 1px solid #A3201B;
  padding: 0.4rem 0.95rem;
  font-family: 'Spectral SC', Georgia, serif;
  letter-spacing: 0.06em;
  font-size: 0.84rem;
  cursor: pointer;
}

.btn-rubric:hover {
  background-color: #A3201B;
  color: #FFFFFF;
}

.inline-report-form {
  border-top: 1px solid #151311;
  border-bottom: 1px solid #151311;
  padding: 0.75rem 0;
  margin: 0.5rem 0 0.8rem;
  font-family: 'Spectral', Georgia, serif;
  font-size: 0.84rem;
}

/* Colophon footer */
.site-colophon {
  border-top: 1px solid #151311;
  margin-top: 3rem;
  padding: 1.3rem 0 2.2rem;
  text-align: center;
  font-family: 'Spectral', Georgia, serif;
  font-variant-numeric: oldstyle-nums;
  font-size: 0.84rem;
  color: #6B6560;
}

.site-colophon p {
  margin: 0.25rem 0;
}

/* Touch screen adjustments */
@media (hover: none) {
  .report-link {
    opacity: 0.75;
    pointer-events: auto;
  }
}

@media (max-width: 959px) {
  .page-shell {
    padding: 0 1.1rem;
  }

  .reading-layout {
    display: block;
  }

  .chapter-columns,
  .summa-columns {
    column-count: 1;
    column-rule: none;
  }

  .chapter-apparatus {
    border-left: none;
    border-top: 1px solid #151311;
    padding-left: 0;
    padding-top: 1rem;
    margin-top: 1.5rem;
  }

  .api-layout {
    display: block;
  }

  .api-sidenav {
    position: static;
    min-width: 0;
    border-right: none;
    border-bottom: 1px solid #151311;
    padding-right: 0;
    padding-bottom: 0.8rem;
    margin-bottom: 1.5rem;
  }

  .toc-row {
    flex-wrap: wrap;
  }
}
