:root {
  color-scheme: dark light;
  --bg: #0b1018;
  --bg-deep: #070b11;
  --surface: #111925;
  --surface-raised: #162131;
  --surface-soft: #0f1722;
  --line: #263548;
  --line-strong: #3a4c62;
  --text: #f3f7fb;
  --muted: #9aabbe;
  --quiet: #718398;
  --accent: #65e6b5;
  --accent-ink: #09251b;
  --violet: #a99cf8;
  --warning: #e8c879;
  --shadow: 0 24px 70px rgb(0 0 0 / 28%);
  --radius: 18px;
  --content: 1180px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 280px;
  background: var(--bg-deep);
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 0%, rgb(101 230 181 / 8%), transparent 30rem),
    radial-gradient(circle at 95% 15%, rgb(169 156 248 / 7%), transparent 34rem),
    var(--bg);
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration-color: color-mix(in srgb, currentColor 42%, transparent);
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-color: currentColor;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
  border-radius: 5px;
}

code,
pre {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

code {
  overflow-wrap: anywhere;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  color: var(--accent-ink);
  background: var(--accent);
  border-radius: 8px;
  font-weight: 800;
  transform: translateY(-180%);
  transition: transform 120ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: relative;
  z-index: 10;
  border-bottom: 1px solid rgb(154 171 190 / 16%);
  background: rgb(11 16 24 / 88%);
  backdrop-filter: blur(18px);
}

.header-inner,
main,
.site-footer {
  width: min(calc(100% - 40px), var(--content));
  margin-inline: auto;
}

.header-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  letter-spacing: -0.01em;
}

.brand > span:last-child {
  display: grid;
  line-height: 1.05;
}

.brand b {
  font-size: 0.98rem;
}

.brand small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 750;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.brand-mark {
  width: 34px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid rgb(101 230 181 / 45%);
  border-radius: 50%;
  box-shadow: inset 0 0 0 7px rgb(101 230 181 / 7%);
}

.brand-mark i {
  width: 8px;
  aspect-ratio: 1;
  display: block;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 16px var(--accent);
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: 5px;
}

.site-header nav a {
  padding: 9px 13px;
  color: var(--muted);
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
}

.site-header nav a:hover,
.site-header nav a[aria-current="page"] {
  color: var(--text);
  background: var(--surface-raised);
}

main {
  min-height: 72vh;
  padding-block: 62px 100px;
}

section + section {
  margin-top: 76px;
}

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

h1,
h2,
h3 {
  line-height: 1.08;
  letter-spacing: -0.035em;
}

h1 {
  max-width: 800px;
  margin-bottom: 22px;
  font-size: clamp(2.65rem, 7vw, 5.75rem);
  font-weight: 760;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(1.45rem, 3vw, 2.15rem);
}

h3 {
  margin-bottom: 8px;
  font-size: 1.08rem;
}

.lead {
  max-width: 760px;
  color: var(--muted);
  font-size: clamp(1.03rem, 2vw, 1.24rem);
}

.eyebrow,
.kicker,
.card-label,
.profile-kind,
.record-type {
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 18px;
}

.eyebrow > span {
  width: 7px;
  aspect-ratio: 1;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 15px var(--accent);
}

.kicker {
  margin-bottom: 7px;
  color: var(--quiet);
}

.map-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 340px);
  align-items: end;
  gap: 48px;
  margin-top: 4px;
}

.campaign-counts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, var(--surface-raised), var(--surface-soft));
  box-shadow: var(--shadow);
  overflow: hidden;
}

.campaign-counts > div {
  min-height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
}

.campaign-counts > div + div {
  border-left: 1px solid var(--line);
}

.campaign-counts dt {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.campaign-counts dd {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.campaign-counts strong {
  display: block;
  color: var(--text);
  font-size: 2.6rem;
  line-height: 1;
}

.identity-panel {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgb(17 25 37 / 82%);
}

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

.text-link {
  flex: none;
  color: var(--accent);
  font-size: 0.86rem;
  font-weight: 750;
  text-decoration: none;
}

.identity-grid {
  display: grid;
  grid-template-columns: 1.6fr 0.55fr 0.7fr 1fr;
  gap: 1px;
  margin: 0;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}

.identity-grid > div {
  min-width: 0;
  padding: 18px;
  background: var(--surface-soft);
}

.identity-grid dt,
.card-facts dt,
.evidence-list dt,
.metadata-list dt,
.package-row dt {
  margin-bottom: 6px;
  color: var(--quiet);
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.identity-grid dd,
.card-facts dd,
.evidence-list dd,
.metadata-list dd,
.package-row dd {
  margin: 0;
}

.identity-grid code {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
}

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

.actor-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, var(--surface), var(--surface-soft));
  overflow: hidden;
  transition: border-color 150ms ease, transform 150ms ease;
}

.actor-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
}

.actor-card-link {
  min-height: 180px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: start;
  gap: 18px;
  padding: 25px;
  text-decoration: none;
}

.address-mark {
  --mark-color: hsl(var(--mark-hue) 78% 68%);
  width: 62px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  flex: none;
  color: var(--mark-color);
  border: 1px solid color-mix(in srgb, var(--mark-color) 42%, var(--line));
  border-radius: 16px;
  background: color-mix(in srgb, var(--mark-color) 10%, var(--surface-soft));
  box-shadow: inset 0 0 24px color-mix(in srgb, var(--mark-color) 8%, transparent);
}

.address-mark svg {
  width: 72%;
  shape-rendering: geometricPrecision;
  fill: currentColor;
}

.address-mark.compact {
  width: 48px;
  border-radius: 13px;
}

.actor-card-copy {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.actor-card-copy b {
  font-size: 1.18rem;
}

.actor-card-copy code,
.directory-row code {
  color: var(--quiet);
  font-size: 0.72rem;
}

.actor-tagline {
  min-height: 1.5em;
  color: var(--muted);
  font-size: 0.9rem;
}

.card-arrow {
  color: var(--quiet);
}

.card-facts {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  margin: 0;
  border-top: 1px solid var(--line);
}

.card-facts > div {
  min-width: 0;
  padding: 16px 24px;
}

.card-facts > div + div {
  border-left: 1px solid var(--line);
}

.card-facts dd {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.78rem;
  text-overflow: ellipsis;
}

.package-list,
.record-stack {
  display: grid;
  gap: 12px;
}

.package-row {
  display: grid;
  grid-template-columns: minmax(180px, 0.7fr) minmax(0, 1.3fr);
  gap: 30px;
  padding: 23px 25px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-soft);
}

.package-row dl {
  min-width: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 0;
}

.package-row code {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 42px;
  color: var(--quiet);
  font-size: 0.8rem;
}

.breadcrumbs a {
  color: var(--muted);
}

.page-heading {
  margin-bottom: 60px;
}

.profile-directory {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.directory-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 18px;
  padding: 19px 22px;
  background: var(--surface-soft);
  text-decoration: none;
}

.directory-row + .directory-row {
  border-top: 1px solid var(--line);
}

.directory-row:hover {
  background: var(--surface-raised);
}

.directory-row > span:nth-child(2) {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.directory-row small {
  color: var(--muted);
}

.directory-kind {
  padding: 5px 10px;
  color: var(--accent);
  border: 1px solid rgb(101 230 181 / 26%);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 750;
  text-transform: uppercase;
}

.profile {
  margin-top: -12px;
}

.profile-header {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface-soft);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.profile-cover {
  height: 150px;
  position: relative;
  background:
    linear-gradient(115deg, rgb(101 230 181 / 15%), transparent 48%),
    radial-gradient(circle at 75% 25%, rgb(169 156 248 / 18%), transparent 36%),
    var(--surface-raised);
  overflow: hidden;
}

.profile-cover span {
  position: absolute;
  border: 1px solid rgb(101 230 181 / 20%);
  border-radius: 50%;
}

.profile-cover span:nth-child(1) {
  width: 280px;
  height: 280px;
  top: -160px;
  right: 8%;
}

.profile-cover span:nth-child(2) {
  width: 160px;
  height: 160px;
  top: -90px;
  right: 17%;
}

.profile-cover span:nth-child(3) {
  width: 8px;
  height: 8px;
  top: 58px;
  right: 23%;
  background: var(--accent);
  box-shadow: 0 0 22px var(--accent);
}

.profile-identity {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: end;
  gap: 22px;
  padding: 0 28px 28px;
}

.profile-mark {
  width: 112px;
  margin-top: -55px;
  border: 7px solid var(--surface-soft);
  border-radius: 26px;
}

.profile-title h1 {
  margin-bottom: 5px;
  font-size: clamp(2rem, 5vw, 3.6rem);
}

.profile-title p {
  margin-bottom: 8px;
  color: var(--muted);
}

.identity-code {
  display: block;
  max-width: 100%;
  color: var(--quiet);
  font-size: 0.78rem;
}

.profile-actions {
  display: flex;
  gap: 8px;
}

.profile-actions a {
  padding: 9px 12px;
  color: var(--text);
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  font-size: 0.78rem;
  font-weight: 750;
  text-decoration: none;
}

.profile-actions a:first-child {
  color: var(--accent-ink);
  border-color: var(--accent);
  background: var(--accent);
}

.profile-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(280px, 0.75fr);
  align-items: start;
  gap: 22px;
  margin-top: 22px;
}

.profile-main,
.profile-rail {
  display: grid;
  gap: 22px;
}

.profile-main section + section,
.profile-rail section + section {
  margin-top: 0;
}

.profile-section,
.profile-rail > section {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.compact-heading {
  align-items: center;
  margin-bottom: 18px;
}

.compact-heading h2 {
  font-size: 1.05rem;
  letter-spacing: -0.015em;
}

.evidence-list,
.metadata-list {
  display: grid;
  gap: 1px;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--line);
  overflow: hidden;
}

.evidence-list > div,
.metadata-list > div {
  min-width: 0;
  padding: 14px 16px;
  background: var(--bg);
}

.evidence-list code,
.metadata-list code {
  display: block;
  color: var(--muted);
  font-size: 0.74rem;
  white-space: pre-wrap;
}

.record-card {
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--bg);
  overflow: hidden;
}

.record-card > header,
.record-card > footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 17px;
}

.record-card > header {
  border-bottom: 1px solid var(--line);
}

.record-card > header > span,
.record-card > header > code {
  color: var(--quiet);
  font-size: 0.7rem;
  overflow-wrap: anywhere;
}

.record-card h3 {
  margin: 3px 0 0;
  font-size: 0.96rem;
  letter-spacing: -0.01em;
}

.record-card pre {
  max-width: 100%;
  margin: 0;
  padding: 18px;
  color: #c9d7e5;
  background: #080d14;
  font-size: 0.78rem;
  line-height: 1.6;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.record-card > footer {
  justify-content: flex-start;
  border-top: 1px solid var(--line);
}

.record-card > footer a,
.evidence-link {
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 750;
}

.chronicle-links {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.chronicle-links li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.chronicle-links li > a:first-child {
  min-width: 0;
  display: grid;
  text-decoration: none;
}

.chronicle-links code {
  color: var(--quiet);
  font-size: 0.66rem;
}

.empty-state {
  margin: 0;
  padding: 20px;
  color: var(--muted);
  border: 1px dashed var(--line-strong);
  border-radius: 12px;
  background: rgb(113 131 152 / 5%);
}

.page-position {
  display: inline-flex;
  margin: 6px 0 0;
  padding: 6px 10px;
  color: var(--accent);
  border: 1px solid rgb(101 230 181 / 24%);
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 750;
}

.chronicle-stack {
  display: grid;
  gap: 16px;
}

.chronicle-event {
  scroll-margin-top: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
  overflow: hidden;
}

.chronicle-event:target {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgb(101 230 181 / 9%);
}

.chronicle-event > header,
.chronicle-event > footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 21px;
}

.chronicle-event > header {
  border-bottom: 1px solid var(--line);
}

.chronicle-event > header h3 {
  margin: 5px 0 0;
  font-size: 1.3rem;
}

.chronicle-event > header > code {
  color: var(--quiet);
  font-size: 0.72rem;
}

.chronicle-event > footer {
  justify-content: flex-end;
  border-top: 1px solid var(--line);
}

.chronicle-event > footer a {
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 750;
  text-decoration: none;
}

.event-fields,
.registry-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  background: var(--line);
}

.event-fields > div,
.registry-fields > div {
  min-width: 0;
  padding: 17px 20px;
  background: var(--bg);
}

.event-fields > .block-field,
.registry-fields > .block-field {
  grid-column: 1 / -1;
}

.event-fields dt,
.registry-fields dt {
  margin-bottom: 7px;
  color: var(--quiet);
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.event-fields dd,
.registry-fields dd {
  min-width: 0;
  margin: 0;
}

.event-fields code,
.registry-fields code {
  color: var(--muted);
  font-size: 0.76rem;
}

.event-fields pre,
.registry-fields pre,
.source-view {
  max-height: 36rem;
  margin: 0;
  padding: 16px;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #080d14;
  line-height: 1.6;
  white-space: pre-wrap;
  overflow: auto;
  overflow-wrap: anywhere;
}

.archive-event-directory {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.archive-event-link {
  scroll-margin-top: 24px;
  display: grid;
  gap: 3px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface-soft);
  text-decoration: none;
}

.archive-event-link:target {
  border-color: var(--accent);
}

.archive-event-link span {
  font-weight: 750;
}

.archive-event-link code {
  color: var(--quiet);
  font-size: 0.7rem;
}

.page-navigation {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
  margin-top: 42px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.8rem;
}

.page-navigation a {
  color: var(--accent);
  font-weight: 750;
  text-decoration: none;
}

.page-navigation a:last-child {
  text-align: right;
}

.registry-directory {
  display: grid;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}

.registry-directory > a {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  padding: 16px 19px;
  background: var(--surface-soft);
  text-decoration: none;
}

.registry-directory > a + a {
  border-top: 1px solid var(--line);
}

.registry-directory > a:hover {
  background: var(--surface-raised);
}

.registry-directory > a > span:first-child {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.registry-directory code {
  color: var(--quiet);
  font-size: 0.72rem;
}

.registry-record {
  display: grid;
  gap: 22px;
}

.registry-record section {
  margin-top: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
  overflow: hidden;
}

.registry-record section > .section-heading {
  padding: 24px 24px 0;
}

.registry-record-header {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--surface-raised), var(--surface-soft));
}

.registry-record-header h1 {
  margin-bottom: 9px;
  font-size: clamp(2rem, 5vw, 3.8rem);
}

.registry-record-header .eyebrow {
  margin-bottom: 10px;
}

.technical-header {
  min-height: 210px;
}

.registry-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.registry-actions a {
  padding: 9px 13px;
  color: var(--accent-ink);
  border-radius: 9px;
  background: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  text-decoration: none;
}

.source-view {
  margin: 0 24px 24px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  padding-block: 38px 52px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 0.8rem;
}

.site-footer p {
  margin: 5px 0 0;
}

.footer-revision {
  max-width: 45%;
  text-align: right;
}

@media (max-width: 900px) {
  .map-hero,
  .profile-layout {
    grid-template-columns: 1fr;
  }

  .campaign-counts {
    max-width: 520px;
  }

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

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

  .profile-actions {
    grid-column: 1 / -1;
  }
}

@media (max-width: 680px) {
  .header-inner,
  main,
  .site-footer {
    width: min(calc(100% - 26px), var(--content));
  }

  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 13px;
    padding-block: 16px;
  }

  .site-header nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 3px;
  }

  .site-header nav a {
    flex: none;
  }

  main {
    padding-block: 42px 72px;
  }

  section + section {
    margin-top: 54px;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .campaign-counts,
  .card-facts,
  .package-row,
  .package-row dl,
  .identity-grid {
    grid-template-columns: 1fr;
  }

  .campaign-counts > div + div,
  .card-facts > div + div {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .actor-card-link {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .card-arrow {
    display: none;
  }

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

  .directory-kind {
    display: none;
  }

  .profile-cover {
    height: 112px;
  }

  .profile-identity {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .profile-mark {
    width: 92px;
  }

  .profile-actions {
    grid-column: auto;
    flex-wrap: wrap;
  }

  .record-card > header,
  .record-card > footer,
  .chronicle-event > header,
  .chronicle-event > footer,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .event-fields,
  .registry-fields,
  .archive-event-directory {
    grid-template-columns: 1fr;
  }

  .page-navigation {
    grid-template-columns: 1fr;
  }

  .page-navigation a:last-child {
    text-align: left;
  }

  .registry-record-header {
    align-items: flex-start;
    flex-direction: column;
    padding: 22px;
  }

  .footer-revision {
    max-width: 100%;
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f4f7fb;
    --bg-deep: #e9eef5;
    --surface: #fff;
    --surface-raised: #edf3f7;
    --surface-soft: #f8fafc;
    --line: #ccd7e2;
    --line-strong: #9cadbd;
    --text: #132031;
    --muted: #52667a;
    --quiet: #6c7f91;
    --accent: #087d59;
    --accent-ink: #fff;
    --violet: #5e50bd;
    --shadow: 0 20px 55px rgb(42 60 80 / 13%);
  }

  .site-header {
    background: rgb(244 247 251 / 90%);
  }

  .record-card pre {
    color: #263a4d;
    background: #edf2f6;
  }

  .event-fields pre,
  .registry-fields pre,
  .source-view {
    color: #263a4d;
    background: #edf2f6;
  }
}
