:root {
  --c-green-900: #0E3B33;
  --c-green-800: #145247;
  --c-green-500: #2F7D6A;
  --c-ink-900: #101B2D;
  --c-ink-800: #1D2E49;
  --c-amber: #E3A93C;
  --c-amber-soft: #F7D9A0;
  --c-coral: #C0422B;
  --c-paper: #F4EFE4;
  --c-black: #0F1512;
  --c-mist: #9BB0A8;
  --c-line: #C9CFC7;
  --rail-width: 232px;
  --quickbar-height: 36px;
  --content-max: 1280px;
  --gutter: clamp(18px, 4vw, 48px);
  --dur: 160ms;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --font-display: "Noto Serif SC", "Songti SC", "STSong", "SimSun", serif;
  --font-body: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", "SFMono-Regular", Consolas, ui-monospace, monospace;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  background: var(--c-green-900);
}

body {
  margin: 0;
  padding-top: var(--quickbar-height);
  padding-left: var(--rail-width);
  min-height: 100vh;
  background:
    radial-gradient(circle at 20% 8%, rgba(47, 125, 106, .20), transparent 34rem),
    var(--c-green-900);
  color: var(--c-paper);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: .01em;
}

body,
button,
input,
textarea,
select {
  font-family: var(--font-body);
}

img,
svg {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
h4,
p,
figure,
blockquote {
  margin: 0;
}

h1,
h2,
h3,
h4 {
  line-height: 1.2;
}

ul,
ol {
  margin-top: 0;
}

address {
  font-style: normal;
}

button {
  font: inherit;
}

a {
  color: var(--c-amber);
  text-decoration-thickness: 1px;
  text-underline-offset: .18em;
}

a:hover {
  color: var(--c-amber-soft);
}

::selection {
  background: var(--c-amber);
  color: var(--c-black);
}

:where(a, button, input, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--c-amber);
  outline-offset: 3px;
}

[hidden] {
  display: none !important;
}

[id] {
  scroll-margin-top: calc(var(--quickbar-height) + 20px);
}

#main-content:focus {
  outline: none;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: calc(var(--rail-width) + 16px);
  z-index: 1000;
  padding: 10px 14px;
  background: var(--c-amber-soft);
  color: var(--c-black);
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-180%);
  transition: transform var(--dur) var(--ease);
}

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

.site-header {
  position: relative;
  z-index: 100;
}

.quickbar {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 100;
  height: var(--quickbar-height);
  background: var(--c-ink-900);
  color: var(--c-paper);
  border-bottom: 1px solid var(--c-green-500);
}

.quickbar__inner {
  display: flex;
  align-items: center;
  gap: clamp(10px, 2vw, 26px);
  height: 100%;
  padding: 0 18px 0 calc(var(--rail-width) + 24px);
}

.quickbar__brand {
  display: none;
  align-items: center;
  gap: 8px;
  color: var(--c-paper);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.quickbar__seal {
  display: grid;
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  place-items: center;
  border: 1px solid var(--c-amber);
  border-radius: 50%;
  color: var(--c-amber);
  font-family: var(--font-display);
  font-size: 12px;
  line-height: 1;
}

.quickbar__name {
  max-width: 5em;
  overflow: hidden;
  text-overflow: ellipsis;
}

.quickbar__version {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--c-mist);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  line-height: 1;
  white-space: nowrap;
}

.status-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-amber);
  box-shadow: 0 0 0 3px rgba(227, 169, 60, .14);
}

.quickbar__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.quickbar__feedback {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 10px;
  border: 1px solid var(--c-amber);
  background: transparent;
  color: var(--c-amber-soft);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .04em;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  clip-path: polygon(0 0, 100% 0, calc(100% - 6px) 100%, 0 100%);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}

.quickbar__feedback:hover {
  background: var(--c-amber);
  color: var(--c-black);
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 7px;
  min-height: 28px;
  padding: 3px 9px;
  border: 1px solid var(--c-green-500);
  background: var(--c-ink-800);
  color: var(--c-paper);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .06em;
  line-height: 1;
  cursor: pointer;
}

.nav-toggle:hover {
  border-color: var(--c-amber);
  color: var(--c-amber-soft);
}

.nav-toggle__lines {
  display: grid;
  gap: 4px;
  width: 16px;
}

.nav-toggle__lines i {
  display: block;
  width: 16px;
  height: 1px;
  background: var(--c-amber);
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__lines i:nth-child(1) {
  transform: translateY(2.5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__lines i:nth-child(2) {
  transform: translateY(-2.5px) rotate(-45deg);
}

.nav-toggle__text {
  white-space: nowrap;
}

.scroll-meter {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: rgba(47, 125, 106, .35);
  pointer-events: none;
}

.scroll-meter__bar {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--c-amber), var(--c-amber-soft));
  transition: width 80ms linear;
}

.rail-shell {
  position: fixed;
  top: var(--quickbar-height);
  bottom: 0;
  left: 0;
  z-index: 90;
  display: flex;
  flex-direction: column;
  width: var(--rail-width);
  padding: 30px 20px 18px;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: linear-gradient(180deg, var(--c-ink-900), #0b1525 78%);
  color: var(--c-paper);
  border-right: 1px solid var(--c-green-500);
}

.rail-shell::before {
  content: "";
  position: absolute;
  top: 42%;
  right: -82px;
  width: 160px;
  height: 160px;
  border: 1px solid rgba(227, 169, 60, .16);
  border-radius: 50%;
  box-shadow: inset 0 0 0 18px rgba(227, 169, 60, .035);
  pointer-events: none;
}

.rail-shell__edge {
  position: absolute;
  top: 36px;
  right: -1px;
  width: 3px;
  height: 72px;
  background: var(--c-amber);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 72%, 0 100%);
}

.brand-lockup {
  position: relative;
  z-index: 1;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(155, 176, 168, .25);
}

.brand-lockup__link {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--c-paper);
  text-decoration: none;
}

.brand-lockup__seal {
  position: relative;
  display: grid;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--c-amber);
  border-radius: 50%;
  color: var(--c-amber);
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
}

.brand-lockup__seal::before {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(227, 169, 60, .45);
  border-radius: 50%;
}

.brand-lockup__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.brand-lockup__title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: .02em;
  line-height: 1.1;
}

.brand-lockup__sub {
  color: var(--c-mist);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .08em;
  line-height: 1.4;
}

.brand-lockup__link:hover .brand-lockup__title {
  text-decoration: underline;
  text-decoration-color: var(--c-amber);
  text-decoration-thickness: 3px;
  text-underline-offset: 5px;
}

.brand-lockup__version {
  margin-top: 14px;
  color: var(--c-amber);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  line-height: 1.3;
}

.brand-lockup__version span {
  margin-left: 6px;
  color: var(--c-mist);
}

.rail-nav {
  position: relative;
  z-index: 1;
  margin-top: 26px;
}

.rail-nav__index {
  display: flex;
  justify-content: space-between;
  padding-bottom: 9px;
  border-bottom: 1px solid rgba(155, 176, 168, .25);
  color: var(--c-mist);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .12em;
  line-height: 1.2;
}

.rail-nav__count {
  color: var(--c-amber);
}

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

.rail-nav__link {
  position: relative;
  display: grid;
  grid-template-columns: 30px 1fr;
  align-items: center;
  min-height: 42px;
  padding: 7px 10px;
  border: 1px solid transparent;
  color: var(--c-paper);
  text-decoration: none;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}

.rail-nav__num {
  color: var(--c-green-500);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .08em;
  line-height: 1;
}

.rail-nav__label {
  font-size: 14px;
  letter-spacing: .04em;
  line-height: 1.35;
}

.rail-nav__link:hover {
  background: rgba(20, 82, 71, .48);
  border-color: rgba(47, 125, 106, .8);
}

.rail-nav__link:hover .rail-nav__label {
  text-decoration: underline;
  text-decoration-color: var(--c-amber);
  text-decoration-thickness: 3px;
  text-underline-offset: 5px;
}

.rail-nav__link[aria-current="page"] {
  background: var(--c-amber);
  color: var(--c-black);
  border-color: transparent;
  clip-path: polygon(0 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
}

.rail-nav__link[aria-current="page"] .rail-nav__num {
  color: var(--c-ink-900);
}

.rail-nav__link[aria-current="page"] .rail-nav__label {
  font-weight: 700;
}

.rail-nav__oldentry {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  padding: 12px 10px;
  border: 1px dashed rgba(227, 169, 60, .55);
  color: var(--c-amber-soft);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .06em;
  line-height: 1.3;
  text-decoration: none;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.rail-nav__oldentry:hover {
  background: var(--c-green-800);
  color: var(--c-paper);
  border-style: solid;
}

.rail-nav__arrow {
  color: var(--c-amber);
  font-size: 15px;
}

.rail-shell__foot {
  position: relative;
  z-index: 1;
  margin-top: auto;
  padding-top: 28px;
}

.rail-shell__rule {
  display: block;
  width: 36px;
  height: 2px;
  margin-bottom: 10px;
  background: var(--c-amber);
}

.rail-shell__foot p {
  color: var(--c-mist);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .08em;
  line-height: 1.4;
}

.rail-shell__foot p span {
  color: var(--c-amber);
}

.page-shell {
  width: 100%;
  max-width: calc(var(--content-max) + (var(--gutter) * 2));
  margin-inline: auto;
  padding: clamp(28px, 5vw, 64px) var(--gutter);
}

.content-container {
  width: min(100%, var(--content-max));
  margin-inline: auto;
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(18px, 2.6vw, 36px);
}

.content-grid--4-8 {
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
}

.content-grid--3-9 {
  grid-template-columns: minmax(0, 3fr) minmax(0, 9fr);
}

.content-grid--5-7 {
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
}

.content-grid--single {
  grid-template-columns: minmax(0, 1fr);
}

.section-stack > * + * {
  margin-top: clamp(18px, 3.2vw, 40px);
}

.surface-paper {
  background: var(--c-paper);
  color: var(--c-black);
}

.surface-ink {
  background: var(--c-ink-800);
  color: var(--c-paper);
}

.surface-green {
  background: var(--c-green-800);
  color: var(--c-paper);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--c-amber);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  line-height: 1.4;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: currentColor;
}

.display-title {
  font-family: var(--font-display);
  font-size: clamp(48px, 7vw, 96px);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: .95;
}

.lede {
  max-width: 62ch;
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.7;
  opacity: .9;
}

.meta-line {
  color: var(--c-mist);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  line-height: 1.5;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6em;
  min-height: 44px;
  padding: .65em 1.1em;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease), filter var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.button:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.button--amber {
  background: var(--c-amber);
  color: var(--c-black);
}

.button--amber:hover {
  background: var(--c-amber-soft);
  color: var(--c-black);
}

.button--feedback {
  background: var(--c-coral);
  color: var(--c-paper);
}

.button--feedback:hover {
  background: #d14e36;
  color: var(--c-paper);
}

.button--ghost {
  border-color: var(--c-green-500);
  background: transparent;
  color: var(--c-paper);
}

.button--ghost:hover {
  border-color: var(--c-amber);
  background: rgba(227, 169, 60, .10);
  color: var(--c-amber-soft);
}

.breadcrumb {
  font-size: 12px;
}

.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.breadcrumb__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.breadcrumb__link {
  color: var(--c-mist);
  text-decoration: none;
}

.breadcrumb__link:hover {
  color: var(--c-amber);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.breadcrumb__sep {
  color: var(--c-green-500);
}

.breadcrumb__current {
  color: var(--c-amber);
}

.panel-cut {
  position: relative;
  padding: clamp(20px, 3vw, 32px);
  clip-path: polygon(0 0, calc(100% - 24px) 0, 100% 24px, 100% 100%, 24px 100%, 0 calc(100% - 24px));
}

.panel-cut--paper {
  background: var(--c-paper);
  color: var(--c-black);
}

.panel-cut--ink {
  background: var(--c-ink-800);
  color: var(--c-paper);
}

.panel-cut--amber {
  background: var(--c-amber-soft);
  color: var(--c-black);
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 2px 8px;
  border: 1px solid currentColor;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .08em;
  line-height: 1.3;
  white-space: nowrap;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  border-left: 3px solid var(--c-amber);
  background: rgba(20, 82, 71, .6);
  color: var(--c-paper);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .06em;
  line-height: 1.4;
}

.table-scroll {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--c-line);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--c-paper);
  color: var(--c-black);
  font-size: 14px;
  line-height: 1.5;
}

.data-table caption {
  padding: 10px 12px;
  background: var(--c-ink-900);
  color: var(--c-paper);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  text-align: left;
}

.data-table th {
  padding: 10px 12px;
  border-bottom: 1px solid var(--c-green-500);
  background: var(--c-green-800);
  color: var(--c-paper);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-align: left;
  vertical-align: bottom;
}

.data-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--c-line);
  vertical-align: top;
}

.data-table tbody tr:nth-child(even) {
  background: rgba(20, 82, 71, .06);
}

.data-table tbody tr:hover {
  background: rgba(227, 169, 60, .18);
}

.data-table .is-num {
  text-align: right;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.media-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  margin: 0;
  overflow: hidden;
  background: linear-gradient(135deg, var(--c-green-800), var(--c-ink-800));
}

.media-frame--device {
  aspect-ratio: 4 / 3;
  border: 10px solid var(--c-ink-900);
  border-radius: 4px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, .28);
}

.media-frame--archive {
  aspect-ratio: 5 / 4;
  border: 1px solid var(--c-line);
  background: linear-gradient(135deg, var(--c-paper), #e7dfcf);
}

.media-frame__placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background-image: radial-gradient(circle at center, transparent 0 34%, rgba(227, 169, 60, .16) 34.5% 35%, transparent 35.5%);
  color: var(--c-paper);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  line-height: 1.6;
  text-align: center;
}

.media-frame--archive .media-frame__placeholder {
  color: var(--c-black);
}

.media-frame img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-frame__caption {
  margin-top: 8px;
  color: var(--c-mist);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .04em;
  line-height: 1.5;
}

.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 120;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--c-amber);
  background: var(--c-ink-900);
  color: var(--c-amber);
  font-family: var(--font-mono);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility var(--dur) var(--ease), background var(--dur) var(--ease), color var(--dur) var(--ease);
}

.back-to-top[data-visible="true"] {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--c-amber);
  color: var(--c-black);
}

.site-footer {
  position: relative;
  margin-top: clamp(48px, 8vw, 96px);
  padding: clamp(36px, 6vw, 72px) var(--gutter) 24px;
  overflow: hidden;
  background:
    linear-gradient(135deg, transparent 0 49.6%, rgba(227, 169, 60, .05) 49.6% 50.4%, transparent 50.4%) 0 0 / 120px 120px,
    var(--c-ink-900);
  color: var(--c-paper);
  border-top: 1px solid var(--c-green-500);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: -80px;
  right: -80px;
  width: 260px;
  height: 260px;
  border: 1px solid rgba(227, 169, 60, .18);
  border-radius: 50%;
  box-shadow: inset 0 0 0 28px rgba(227, 169, 60, .035);
  pointer-events: none;
}

.site-footer__top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(155, 176, 168, .25);
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--c-paper);
  text-decoration: none;
}

.footer-brand__seal {
  display: grid;
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  place-items: center;
  border: 1px solid var(--c-amber);
  border-radius: 50%;
  color: var(--c-amber);
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
  line-height: 1;
  box-shadow: inset 0 0 0 5px rgba(227, 169, 60, .08);
}

.footer-brand__text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.footer-brand__text strong {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 800;
  letter-spacing: .02em;
  line-height: 1.1;
}

.footer-brand__text small {
  color: var(--c-mist);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .08em;
  line-height: 1.4;
}

.footer-brand:hover .footer-brand__text strong {
  text-decoration: underline;
  text-decoration-color: var(--c-amber);
  text-decoration-thickness: 3px;
  text-underline-offset: 6px;
}

.site-footer__edition {
  color: var(--c-amber);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  line-height: 1.5;
  white-space: nowrap;
}

.site-footer__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(140px, .8fr) minmax(150px, .9fr) minmax(260px, 1.25fr);
  gap: clamp(24px, 4vw, 56px);
  padding: 32px 0;
}

.footer-col {
  min-width: 0;
}

.footer-col__title {
  margin: 0 0 14px;
  color: var(--c-amber);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
  line-height: 1.4;
  text-transform: uppercase;
}

.footer-col__list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-col__link {
  color: var(--c-paper);
  font-size: 14px;
  line-height: 1.5;
  text-decoration: none;
}

.footer-col__link:hover {
  color: var(--c-amber-soft);
  text-decoration: underline;
  text-decoration-color: var(--c-amber);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.footer-feedback {
  position: relative;
  padding: 20px 20px 22px;
  background: linear-gradient(135deg, var(--c-green-900), var(--c-green-800));
  border: 1px solid rgba(227, 169, 60, .45);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 22px), calc(100% - 22px) 100%, 0 100%);
}

.footer-feedback__kicker {
  color: var(--c-amber);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .12em;
  line-height: 1.4;
}

.footer-feedback__title {
  margin-top: 6px;
  color: var(--c-paper);
  font-family: var(--font-display);
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 800;
  letter-spacing: .02em;
  line-height: 1.2;
}

.footer-feedback__text {
  margin: 8px 0 16px;
  color: var(--c-mist);
  font-size: 13px;
  line-height: 1.6;
}

.footer-feedback .button {
  width: 100%;
}

.footer-feedback__link {
  display: inline-block;
  margin-top: 12px;
  color: var(--c-amber-soft);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .04em;
  line-height: 1.5;
  text-decoration: none;
}

.footer-feedback__link:hover {
  color: var(--c-amber);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.site-footer__contact {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  padding: 24px 0;
  border-top: 1px solid rgba(155, 176, 168, .25);
  border-bottom: 1px solid rgba(155, 176, 168, .25);
}

.footer-contact__item {
  min-width: 0;
}

.footer-contact__label {
  display: block;
  margin-bottom: 4px;
  color: var(--c-amber);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .1em;
  line-height: 1.4;
}

.footer-contact__value {
  display: block;
  color: var(--c-paper);
  font-size: 13px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.footer-contact__note {
  grid-column: 1 / -1;
  color: var(--c-mist);
  font-size: 12px;
  line-height: 1.6;
}

.site-footer__legal {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  padding-top: 20px;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-legal__link {
  color: var(--c-mist);
  font-size: 12px;
  line-height: 1.5;
  text-decoration: none;
}

.footer-legal__link:hover {
  color: var(--c-amber);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.site-footer__copy {
  color: var(--c-mist);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .04em;
  line-height: 1.6;
}

@media (min-width: 921px) and (max-width: 1180px) {
  :root {
    --rail-width: 208px;
  }

  .rail-shell {
    padding-right: 16px;
    padding-left: 16px;
  }
}

@media (max-width: 920px) {
  :root {
    --rail-width: 0px;
  }

  body {
    padding-left: 0;
  }

  .skip-link {
    left: 12px;
  }

  .quickbar__inner {
    gap: 10px;
    padding-right: 12px;
    padding-left: 12px;
  }

  .quickbar__brand {
    display: inline-flex;
  }

  .quickbar__version {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .rail-shell {
    width: min(86vw, 328px);
    transform: translateX(-105%);
    visibility: hidden;
    box-shadow: 16px 0 40px rgba(0, 0, 0, .35);
    transition: transform var(--dur) var(--ease), visibility var(--dur) var(--ease);
  }

  .site-header[data-open="true"] .rail-shell {
    transform: translateX(0);
    visibility: visible;
  }

  .site-footer__grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-feedback {
    grid-column: 1 / -1;
  }

  .site-footer__contact {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .content-grid,
  .content-grid--4-8,
  .content-grid--3-9,
  .content-grid--5-7 {
    grid-template-columns: minmax(0, 1fr);
  }

  .display-title {
    font-size: clamp(36px, 12vw, 56px);
  }
}

@media (max-width: 640px) {
  .quickbar__feedback {
    padding-inline: 8px;
    font-size: 10px;
  }

  .site-footer__top {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-footer__grid {
    grid-template-columns: 1fr;
  }

  .footer-feedback {
    grid-column: auto;
  }

  .site-footer__contact {
    grid-template-columns: 1fr;
  }

  .site-footer__legal {
    align-items: flex-start;
    flex-direction: column;
  }

  .back-to-top {
    right: 14px;
    bottom: 14px;
  }
}

@media (max-width: 420px) {
  .quickbar__brand {
    font-size: 11px;
  }

  .quickbar__name {
    max-width: 4em;
  }
}

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

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

  .button:hover,
  .back-to-top {
    transform: none;
  }
}

@media print {
  body {
    padding: 0;
    background: #fff;
    color: #000;
    font-size: 11pt;
  }

  .quickbar,
  .rail-shell,
  .nav-toggle,
  .back-to-top,
  .skip-link {
    display: none !important;
  }

  .site-footer {
    margin: 0;
    padding: 16pt 0;
    background: #fff;
    color: #000;
    border-top: 1px solid #000;
  }

  .site-footer::before {
    display: none;
  }

  .site-footer a,
  .footer-col__link,
  .footer-legal__link {
    color: #000;
  }

  .page-shell {
    padding: 0;
  }

  .data-table {
    font-size: 9pt;
  }
}
