:root {
  color-scheme: light;
  --bg: #f7f8f6;
  --surface: #ffffff;
  --surface-muted: #f0f3f1;
  --text: #24302d;
  --muted: #68746f;
  --heading: #17201d;
  --line: #dce3df;
  --line-strong: #c8d2cd;
  --accent: #087f70;
  --accent-dark: #075e54;
  --accent-soft: #dff3ee;
  --blue: #3562a8;
  --amber: #a46100;
  --red: #b23b38;
  --shadow: 0 12px 30px rgba(24, 46, 39, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-size: 15px;
  line-height: 1.6;
  font-weight: 400;
}

a {
  color: var(--accent-dark);
  text-decoration: none;
}

a:hover,
a:focus {
  color: var(--accent);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(200, 210, 205, 0.86);
  background: rgba(247, 248, 246, 0.94);
  backdrop-filter: blur(14px);
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1320px, calc(100% - 40px));
  min-height: 62px;
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--heading);
  font-size: 15px;
  font-weight: 760;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 7px;
  background: var(--accent);
  color: white;
}

.nav-shell nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-shell nav a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.icon-link {
  display: grid !important;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  font-size: 10px !important;
  font-weight: 850 !important;
}

.page-shell {
  width: min(1320px, calc(100% - 40px));
  min-width: 0;
  margin: 0 auto;
  padding: 42px 0 72px;
}

.mode-switch {
  display: inline-flex;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: var(--surface);
}

.mode-switch a {
  min-width: 108px;
  padding: 7px 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
  text-align: center;
}

.mode-switch a + a {
  border-left: 1px solid var(--line-strong);
}

.mode-switch a.active {
  background: var(--accent);
  color: white;
}

.intro-band {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(360px, 0.55fr);
  gap: 44px;
  align-items: end;
  padding: 24px 0 38px;
}

.intro-copy,
.matrix-section,
.notes-section {
  min-width: 0;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--heading);
  letter-spacing: 0;
}

h1 {
  max-width: 790px;
  font-size: clamp(44px, 6vw, 76px);
  line-height: 1.02;
  text-wrap: balance;
}

h2 {
  font-size: 29px;
  line-height: 1.15;
}

.lede {
  max-width: 770px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.intro-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  padding: 9px 14px;
  font-size: 14px;
  font-weight: 700;
}

.button.primary {
  border-color: var(--accent);
  background: var(--accent);
  color: white;
}

.button.secondary {
  background: var(--surface);
  color: var(--heading);
}

.summary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.summary-grid div {
  min-height: 112px;
  background: var(--surface);
  padding: 20px;
}

.summary-grid dt {
  color: var(--heading);
  font-size: 34px;
  font-weight: 780;
  line-height: 1;
}

.summary-grid dd {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.data-paths {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.data-paths > a {
  display: flex;
  min-height: 96px;
  align-items: center;
  gap: 15px;
  padding: 19px 20px;
  color: var(--text);
}

.data-paths > a + a {
  border-left: 1px solid var(--line);
}

.data-paths > a:hover {
  background: #f3f7f5;
}

.path-index {
  display: grid;
  width: 38px;
  height: 38px;
  flex: none;
  place-items: center;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 11px;
  font-weight: 850;
}

.data-paths strong,
.data-paths small {
  display: block;
}

.data-paths strong {
  color: var(--heading);
  font-size: 14px;
}

.data-paths small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.coverage-notice {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  margin-top: 14px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 8px;
  background: var(--surface);
  padding: 16px 18px;
}

.coverage-code {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 6px;
  background: var(--surface-muted);
  color: var(--accent-dark);
  font-size: 11px;
  font-weight: 850;
}

.coverage-notice h2 {
  font-size: 15px;
}

.coverage-notice p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.coverage-notice > a {
  white-space: nowrap;
  font-size: 12px;
  font-weight: 760;
}

.matrix-section,
.notes-section {
  margin-top: 52px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 16px;
}

.section-summary {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.export-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.export-links a {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  padding: 6px 9px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.matrix-toolbar {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) 210px;
  gap: 10px;
  margin-bottom: 12px;
}

.search-field {
  display: flex;
  min-height: 40px;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: var(--surface);
  padding: 0 12px;
  color: var(--muted);
}

.search-field input,
.matrix-toolbar select {
  width: 100%;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--text);
  font: inherit;
}

.matrix-toolbar select {
  min-height: 40px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: var(--surface);
  padding: 0 10px;
}

.matrix-guidance {
  display: grid;
  grid-template-columns: minmax(220px, 0.7fr) minmax(360px, 1.3fr);
  gap: 12px 28px;
  margin: 0 0 13px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #f7faf8;
  padding: 13px 16px;
}

.matrix-guidance p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.matrix-guidance strong {
  color: var(--heading);
}

.matrix-block {
  scroll-margin-top: 84px;
}

.matrix-block + .matrix-block {
  margin-top: 42px;
}

.matrix-heading {
  display: grid;
  grid-template-columns: minmax(240px, 0.7fr) minmax(360px, 1fr);
  gap: 32px;
  align-items: end;
  margin: 18px 0 13px;
}

.matrix-heading h2 {
  font-size: 24px;
}

.matrix-heading p:last-child {
  max-width: 680px;
  justify-self: end;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.table-wrap {
  position: relative;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  max-height: 660px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.matrix {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13px;
  table-layout: fixed;
}

.matrix-gate {
  min-width: 720px;
}

.matrix-tickets {
  min-width: 720px;
}

.matrix-bus {
  min-width: 920px;
}

.matrix th,
.matrix td {
  height: 72px;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid #e9eeeb;
  padding: 10px;
  text-align: center;
  vertical-align: middle;
}

.matrix tr > :last-child {
  border-right: 0;
}

.matrix thead th {
  position: sticky;
  top: 0;
  z-index: 5;
  height: 54px;
  background: #e9efec;
  color: #42514b;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.03em;
  line-height: 1.25;
  text-transform: uppercase;
}

.matrix .location-column,
.matrix .location-cell {
  width: 145px;
  min-width: 145px;
  text-align: left;
}

.matrix .system-column,
.matrix .system-cell {
  width: 190px;
  min-width: 190px;
  text-align: left;
}

.matrix thead th:nth-child(1),
.matrix tbody td:nth-child(1) {
  position: sticky;
  left: 0;
  z-index: 3;
}

.matrix thead th:nth-child(2),
.matrix tbody th:nth-child(2) {
  position: sticky;
  left: 145px;
  z-index: 3;
}

.matrix tbody td:nth-child(1),
.matrix tbody th:nth-child(2) {
  background: var(--surface);
}

.matrix thead th:nth-child(-n + 2) {
  z-index: 8;
  background: #e9efec;
}

.matrix thead th:nth-child(2),
.matrix tbody th:nth-child(2) {
  box-shadow: 8px 0 12px -12px rgba(23, 32, 29, 0.65);
}

.matrix tbody tr:hover td,
.matrix tbody tr:hover th {
  background: #f3f7f5;
}

.matrix tbody tr:last-child th,
.matrix tbody tr:last-child td {
  border-bottom: 0;
}

.matrix .system-cell a {
  color: var(--muted);
  font-weight: 600;
}

.matrix .location-cell strong,
.matrix .system-cell strong {
  display: block;
  font-size: 12px;
  line-height: 1.35;
}

.matrix .location-cell small,
.matrix .system-cell a {
  display: block;
  margin-top: 4px;
  font-size: 10px;
  line-height: 1.35;
}

.matrix-value {
  display: grid;
  gap: 5px;
  justify-items: center;
}

.matrix-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text);
  font-size: 11px;
  font-weight: 760;
  line-height: 1.2;
  white-space: nowrap;
}

.matrix-status .status-dot {
  width: 8px;
  height: 8px;
  flex: none;
  border-radius: 50%;
  background: currentColor;
}

.matrix-status.status-yes {
  color: #087263;
}

.matrix-status.status-partial {
  color: var(--amber);
}

.matrix-status.status-planned {
  color: var(--blue);
}

.matrix-status.status-no,
.matrix-status.status-deprecated {
  color: var(--red);
}

.matrix-status.status-unknown {
  color: #5f6965;
}

.matrix-value small {
  display: -webkit-box;
  max-width: 180px;
  overflow: hidden;
  color: var(--muted);
  font-size: 9px;
  font-weight: 500;
  line-height: 1.3;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.validation-status {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.validation-required {
  border-color: #edb6b2;
  background: #fff0ef;
  color: var(--red);
}

.validation-not_required {
  border-color: #a9ded2;
  background: var(--accent-soft);
  color: #087263;
}

.validation-route_dependent {
  border-color: #efd49b;
  background: #fff5dc;
  color: var(--amber);
}

.support {
  display: inline-flex;
  min-width: 28px;
  min-height: 28px;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 3px 7px;
  font-size: 10px;
  font-weight: 820;
  line-height: 1;
}

.support::before {
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 50%;
  background: currentColor;
  content: "";
}

.support-yes {
  border-color: #a9ded2;
  background: var(--accent-soft);
  color: #087263;
}

.support-partial {
  border-color: #efd49b;
  background: #fff5dc;
  color: var(--amber);
}

.support-planned {
  border-color: #a9c1e8;
  background: #edf4ff;
  color: var(--blue);
}

.support-no,
.support-deprecated {
  border-color: #edb6b2;
  background: #fff0ef;
  color: var(--red);
}

.support-unknown {
  border-color: #d3d9d6;
  background: #f2f4f3;
  color: #7b8581;
}

.reference-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 24px;
}

.reference-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 22px;
}

.reference-panel h2 {
  margin-bottom: 18px;
  font-size: 22px;
}

.scope-list,
.status-list {
  margin: 0;
}

.scope-list div,
.status-list div {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 10px;
  align-items: center;
  border-top: 1px solid var(--line);
  padding: 9px 0;
}

.scope-list dt,
.status-list dt {
  color: var(--heading);
  font-size: 12px;
  font-weight: 800;
}

.scope-list dd,
.status-list dd {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 7px;
  border-radius: 50%;
}

.dot-yes {
  background: var(--accent);
}

.dot-partial {
  background: #d89017;
}

.dot-planned {
  background: var(--blue);
}

.dot-no {
  background: var(--red);
}

.dot-deprecated {
  border: 2px solid var(--red);
  background: transparent;
}

.dot-unknown {
  background: #9aa39f;
}

.scheme-key {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.notes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.notes-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 16px;
}

.notes-grid article > a {
  color: var(--heading);
  font-weight: 760;
}

.notes-grid article > p {
  margin: 2px 0 12px;
  color: var(--muted);
  font-size: 12px;
}

.notes-grid dl {
  display: grid;
  gap: 8px;
  margin: 0;
}

.notes-grid dl div {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 8px;
}

.notes-grid dt {
  color: var(--muted);
  font-size: 11px;
}

.notes-grid dd {
  margin: 0;
  color: var(--text);
  font-size: 12px;
}

.contribute-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-top: 52px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 30px 0;
}

.contribute-band p:not(.eyebrow) {
  max-width: 760px;
  margin: 8px 0 0;
  color: var(--muted);
}

.detail-page {
  max-width: 1120px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 14px 0 28px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.breadcrumbs {
  color: var(--muted);
  font-size: 12px;
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.breadcrumbs li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.breadcrumbs li + li::before {
  color: #9aa39f;
  content: "/";
}

.breadcrumbs a {
  font-weight: 700;
}

.breadcrumbs li[aria-current="page"] {
  color: var(--text);
}

.detail-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: 34px;
  align-items: end;
}

.detail-intro h1 {
  font-size: clamp(42px, 5vw, 66px);
}

.detail-intro .button {
  margin-top: 22px;
}

.detail-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
  gap: 1px;
}

.detail-summary div {
  background: var(--surface);
  padding: 20px;
}

.detail-summary dt {
  color: var(--heading);
  font-size: 25px;
  font-weight: 780;
}

.detail-summary dd {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.answer-panel {
  margin-top: 28px;
  border: 1px solid #b9ddd5;
  border-radius: 8px;
  background: var(--accent-soft);
  padding: 22px;
}

.answer-panel h2 {
  max-width: 820px;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.18;
  text-wrap: balance;
}

.answer-panel > p:not(.eyebrow) {
  max-width: 880px;
  margin: 10px 0 0;
  color: var(--text);
  font-size: 16px;
}

.answer-panel > a {
  display: inline-flex;
  margin-top: 14px;
  font-size: 12px;
  font-weight: 780;
}

.answer-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 12px 0 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 13px;
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 34px;
}

.detail-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 22px;
}

.detail-panel:last-child {
  grid-column: 1 / -1;
}

.detail-panel h2 {
  margin-bottom: 18px;
  font-size: 22px;
}

.payment-cell {
  display: grid;
  gap: 6px;
  border-top: 1px solid var(--line);
  padding: 12px 0;
}

.payment-cell-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.payment-cell-heading h3 {
  margin: 0;
  color: var(--heading);
  font-size: 13px;
  font-weight: 760;
  line-height: 1.35;
}

.payment-values {
  color: var(--text);
  font-size: 12px;
  font-weight: 650;
}

.payment-cell small {
  color: var(--muted);
  font-size: 12px;
}

.source-link {
  width: fit-content;
  color: var(--accent);
  font-size: 10px;
  font-weight: 750;
  text-transform: uppercase;
}

.source-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.source-list li {
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.source-list small {
  display: block;
  color: var(--muted);
  font-size: 11px;
}

.related-section {
  margin-top: 34px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.related-grid a {
  display: grid;
  gap: 4px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 16px;
  transition:
    border-color 0.15s ease,
    transform 0.15s ease;
}

.related-grid a:hover,
.related-grid a:focus {
  border-color: var(--accent);
  transform: translateY(-1px);
}

.related-grid small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.related-grid strong {
  color: var(--heading);
  font-size: 15px;
  line-height: 1.35;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1320px, calc(100% - 40px));
  margin: 0 auto;
  border-top: 1px solid var(--line);
  padding: 24px 0 32px;
  color: var(--muted);
  font-size: 12px;
}

.site-footer p {
  margin: 0;
}

.site-footer nav {
  display: flex;
  gap: 16px;
}

.site-footer a {
  font-weight: 700;
}

.privacy-grid .detail-panel:last-child {
  grid-column: auto;
}

@media (max-width: 960px) {
  .intro-band,
  .detail-intro,
  .reference-grid {
    grid-template-columns: 1fr;
  }

  .matrix-guidance {
    grid-template-columns: 1fr;
  }

  .data-paths,
  .notes-grid,
  .related-grid {
    grid-template-columns: 1fr 1fr;
  }

  .data-paths > a:nth-child(3) {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .matrix-heading {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .matrix-heading p:last-child {
    justify-self: start;
  }
}

@media (max-width: 680px) {
  .nav-shell {
    width: min(100% - 24px, 1320px);
  }

  .nav-shell nav a:not(.icon-link) {
    display: none;
  }

  .page-shell {
    width: min(100% - 24px, 1320px);
    padding-top: 24px;
  }

  .mode-switch {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }

  .mode-switch a {
    min-width: 0;
  }

  .intro-band {
    gap: 24px;
  }

  h1 {
    max-width: 100%;
    font-size: 38px;
    line-height: 1.06;
    overflow-wrap: break-word;
  }

  .summary-grid {
    grid-template-columns: 1fr 1fr;
  }

  .summary-grid div {
    min-height: 98px;
    padding: 16px;
  }

  .summary-grid dt {
    font-size: 29px;
  }

  .data-paths,
  .notes-grid {
    grid-template-columns: 1fr;
  }

  .data-paths > a + a {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .coverage-notice {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .coverage-notice > a {
    grid-column: 2;
    white-space: normal;
  }

  .section-heading,
  .contribute-band {
    align-items: flex-start;
    flex-direction: column;
  }

  .matrix-toolbar {
    grid-template-columns: 1fr;
  }

  .matrix .location-column,
  .matrix .location-cell {
    width: 112px;
    min-width: 112px;
  }

  .matrix .system-column,
  .matrix .system-cell {
    width: 180px;
    min-width: 180px;
  }

  .matrix thead th:nth-child(2),
  .matrix tbody th:nth-child(2) {
    left: auto;
  }

  .matrix tbody th:nth-child(2) {
    position: static;
    box-shadow: none;
  }

  .matrix thead th:nth-child(2) {
    z-index: 5;
    box-shadow: none;
  }

  .reference-panel {
    padding: 18px;
  }

  .detail-grid {
    grid-template-columns: 1fr;
  }

  .detail-panel:last-child {
    grid-column: auto;
  }

  .related-grid {
    grid-template-columns: 1fr;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    width: min(100% - 24px, 1320px);
  }
}
