:root {
  --bg: #080b0f;
  --bg-deep: #05070a;
  --surface: #0d1218;
  --surface-2: #111820;
  --surface-3: #17202a;
  --line: #26313d;
  --line-soft: rgba(157, 174, 191, 0.14);
  --text: #f3f6f8;
  --text-soft: #b3bec9;
  --text-dim: #778492;
  --red: #c7233e;
  --red-bright: #ff5267;
  --green: #6fd3a5;
  --font-sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  color-scheme: dark;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 94px;
  background: var(--bg);
}

body {
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 82% -5%, rgba(199, 35, 62, 0.09), transparent 28rem),
    var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  background-image:
    linear-gradient(rgba(143, 158, 174, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(143, 158, 174, 0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  content: "";
  mask-image: linear-gradient(to bottom, #000, transparent 75%);
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

code,
pre,
kbd {
  font-family: var(--font-mono);
}

svg {
  display: block;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 2px solid var(--red-bright);
  outline-offset: 4px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 9px 14px;
  border-radius: 6px;
  background: var(--text);
  color: var(--bg);
  transform: translateY(-160%);
  transition: transform 150ms ease;
}

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

.docs-header {
  position: fixed;
  z-index: 100;
  top: 0;
  right: 0;
  left: 0;
  display: grid;
  height: 72px;
  padding: 0 24px;
  border-bottom: 1px solid var(--line);
  background: rgba(8, 11, 15, 0.93);
  backdrop-filter: blur(16px);
  grid-template-columns: 300px 1fr auto;
  align-items: center;
}

.brand {
  display: inline-flex;
  width: max-content;
  color: var(--text);
  align-items: center;
  gap: 9px;
}

.brand svg {
  width: 29px;
  height: 29px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.1;
}

.brand .brand-core {
  stroke: var(--red-bright);
}

.brand span {
  font-size: 1rem;
  font-weight: 720;
  letter-spacing: -0.035em;
}

.brand b {
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 520;
}

.header-state {
  display: flex;
  color: var(--text-dim);
  align-items: center;
  gap: 8px;
}

.header-state > span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(111, 211, 165, 0.08);
}

.header-state strong,
.header-state small {
  font-family: var(--font-mono);
  font-size: 0.66rem;
}

.header-state strong {
  color: var(--text-soft);
}

.docs-header > nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.docs-header > nav > a:not(.header-cta) {
  color: var(--text-dim);
  font-size: 0.78rem;
  font-weight: 580;
}

.docs-header > nav > a:hover {
  color: var(--text);
}

.header-cta {
  display: inline-flex;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--red);
  border-radius: 5px;
  background: var(--red);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 680;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.header-cta:hover {
  border-color: var(--red-bright);
  background: #d32945;
}

.mobile-nav-button {
  display: none;
}

.docs-shell {
  display: grid;
  min-height: 100vh;
  padding-top: 72px;
  grid-template-columns: 300px minmax(0, 1fr);
}

.docs-sidebar {
  position: sticky;
  top: 72px;
  display: flex;
  height: calc(100vh - 72px);
  padding: 24px 20px;
  border-right: 1px solid var(--line);
  background: #080c11;
  flex-direction: column;
  overflow-y: auto;
}

.sidebar-search > label {
  display: block;
  margin-bottom: 7px;
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 650;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.sidebar-search > div {
  position: relative;
}

.sidebar-search svg {
  position: absolute;
  top: 50%;
  left: 11px;
  width: 16px;
  fill: none;
  stroke: var(--text-dim);
  stroke-width: 1.5;
  transform: translateY(-50%);
}

.sidebar-search input {
  width: 100%;
  height: 42px;
  padding: 0 40px 0 36px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--text);
  font-size: 0.78rem;
}

.sidebar-search input::placeholder {
  color: #65717d;
}

.sidebar-search kbd {
  position: absolute;
  top: 50%;
  right: 10px;
  display: grid;
  width: 21px;
  height: 21px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--text-dim);
  font-size: 0.65rem;
  transform: translateY(-50%);
  place-items: center;
}

.sidebar-search > p {
  min-height: 18px;
  margin: 7px 0 0;
  color: var(--text-dim);
  font-size: 0.67rem;
}

.docs-nav {
  padding: 14px 0 28px;
}

.docs-nav section {
  margin-top: 21px;
}

.docs-nav h2 {
  margin: 0 0 7px;
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 660;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.docs-nav a {
  position: relative;
  display: block;
  padding: 6px 10px;
  border-left: 2px solid transparent;
  color: #929eaa;
  font-size: 0.79rem;
  line-height: 1.35;
}

.docs-nav a:hover,
.docs-nav a.active {
  color: var(--text);
}

.docs-nav a.active {
  border-left-color: var(--red);
  background: linear-gradient(90deg, rgba(199, 35, 62, 0.1), transparent);
}

.sidebar-foot {
  padding: 15px;
  margin-top: auto;
  border: 1px solid rgba(199, 35, 62, 0.3);
  border-left: 3px solid var(--red);
  border-radius: 6px;
  background: rgba(199, 35, 62, 0.045);
}

.sidebar-foot span {
  color: var(--red-bright);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
}

.sidebar-foot p {
  margin: 7px 0 0;
  color: var(--text-dim);
  font-size: 0.7rem;
  line-height: 1.5;
}

.docs-content {
  min-width: 0;
}

.docs-section {
  padding: 104px clamp(30px, 6vw, 104px);
  border-bottom: 1px solid var(--line-soft);
}

.docs-hero {
  display: grid;
  min-height: calc(100vh - 72px);
  padding-top: 90px;
  padding-bottom: 72px;
  background:
    linear-gradient(90deg, rgba(199, 35, 62, 0.045) 1px, transparent 1px),
    linear-gradient(rgba(199, 35, 62, 0.035) 1px, transparent 1px);
  background-size: 58px 58px;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.62fr);
  align-content: center;
  gap: 54px;
}

.eyebrow,
.section-header > span,
.doc-index,
.release-contract > span,
.search-empty > span {
  color: var(--red-bright);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.eyebrow {
  display: flex;
  margin: 0 0 22px;
  align-items: center;
  gap: 10px;
}

.eyebrow > span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red-bright);
}

.hero-copy h1 {
  max-width: 850px;
  margin: 0;
  font-size: clamp(3.2rem, 7vw, 7.4rem);
  font-weight: 510;
  letter-spacing: -0.065em;
  line-height: 0.88;
}

.hero-copy > p:last-child {
  max-width: 730px;
  margin: 30px 0 0;
  color: var(--text-soft);
  font-size: clamp(1rem, 1.7vw, 1.18rem);
  line-height: 1.7;
}

.release-contract {
  position: relative;
  display: flex;
  min-height: 330px;
  padding: 26px;
  border: 1px solid rgba(199, 35, 62, 0.35);
  border-top: 3px solid var(--red);
  border-radius: 8px;
  background:
    radial-gradient(circle at 100% 0, rgba(199, 35, 62, 0.14), transparent 15rem),
    rgba(12, 18, 24, 0.95);
  flex-direction: column;
}

.release-contract strong {
  margin-top: 44px;
  font-size: 1.22rem;
  font-weight: 590;
  line-height: 1.4;
}

.release-contract p {
  margin: 13px 0 22px;
  color: var(--text-dim);
  font-size: 0.82rem;
}

.release-contract a {
  margin-top: auto;
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 650;
}

.release-contract a:hover {
  color: var(--red-bright);
}

.hero-index {
  display: grid;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #0a0f14;
  grid-column: 1 / -1;
  grid-template-columns: repeat(4, 1fr);
  overflow: hidden;
}

.hero-index > div {
  display: grid;
  min-height: 92px;
  padding: 17px;
  grid-template-columns: 34px 1fr;
  align-content: center;
}

.hero-index > div:not(:last-child) {
  border-right: 1px solid var(--line-soft);
}

.hero-index span {
  color: var(--red-bright);
  font-family: var(--font-mono);
  font-size: 0.69rem;
}

.hero-index strong {
  font-size: 0.77rem;
  letter-spacing: 0.05em;
}

.hero-index small {
  color: var(--text-dim);
  font-size: 0.68rem;
  grid-column: 2;
}

.section-header {
  display: grid;
  max-width: 1120px;
  margin-bottom: 58px;
  grid-template-columns: 0.65fr 1.35fr;
  align-items: end;
  gap: 24px 52px;
}

.section-header > span {
  grid-column: 1 / -1;
}

.section-header h2 {
  margin: 0;
  font-size: clamp(2.4rem, 5vw, 5.2rem);
  font-weight: 510;
  letter-spacing: -0.06em;
  line-height: 0.98;
}

.section-header > p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.98rem;
  line-height: 1.75;
}

.section-header code,
.doc-copy code,
.compact-table code,
.release-grid code {
  color: #d5dee6;
  font-size: 0.9em;
}

.doc-block {
  display: grid;
  max-width: 1280px;
  padding: 58px 0;
  border-top: 1px solid var(--line-soft);
  grid-template-columns: minmax(280px, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(40px, 7vw, 92px);
}

.doc-block:last-child {
  padding-bottom: 0;
}

.doc-copy h3 {
  margin: 10px 0 14px;
  font-size: clamp(1.8rem, 3vw, 2.65rem);
  font-weight: 530;
  letter-spacing: -0.045em;
  line-height: 1.05;
}

.doc-copy > p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.91rem;
  line-height: 1.75;
}

.code-stack {
  min-width: 0;
}

.code-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #070a0e;
  box-shadow: 0 28px 68px rgba(0, 0, 0, 0.22);
  overflow: hidden;
}

.code-head {
  display: flex;
  min-height: 47px;
  padding: 9px 13px;
  border-bottom: 1px solid var(--line);
  background: #111820;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.code-head span {
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.66rem;
}

.code-head button {
  min-width: 54px;
  min-height: 29px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #0a0f14;
  color: var(--text-soft);
  font-size: 0.67rem;
  cursor: pointer;
}

.code-head button:hover {
  border-color: var(--red);
  color: var(--text);
}

.code-card pre {
  min-width: 0;
  padding: 20px;
  margin: 0;
  color: #bdc8d2;
  font-size: clamp(0.72rem, 1.3vw, 0.82rem);
  line-height: 1.72;
  overflow: auto;
  white-space: pre;
}

.code-card-large pre {
  max-height: 620px;
}

.code-foot {
  padding: 14px 18px;
  border-top: 1px solid var(--line);
  background: #0d1319;
  overflow-x: auto;
}

.code-foot code {
  color: var(--text-soft);
  font-size: 0.72rem;
  white-space: nowrap;
}

.release-push-stack {
  min-width: 0;
}

.release-push-stack .hostname-state {
  margin-bottom: 12px;
  border: 1px solid rgba(111, 211, 165, 0.24);
  border-radius: 6px;
  background: rgba(111, 211, 165, 0.035);
}

.release-push-stack .hostname-state b {
  color: var(--green);
}

.release-command-note {
  padding: 14px;
  margin: 12px 0 0;
  border: 1px solid var(--line-soft);
  border-left: 3px solid var(--red);
  border-radius: 6px;
  background: #0c1218;
  color: var(--text-dim);
  font-size: 0.7rem;
  line-height: 1.55;
}

.download-runbook {
  display: inline-flex;
  min-height: 40px;
  padding: 0 13px;
  margin-top: 12px;
  border: 1px solid var(--red);
  border-radius: 5px;
  background: rgba(199, 35, 62, 0.08);
  color: var(--text);
  font-size: 0.72rem;
  font-weight: 650;
  align-items: center;
}

.download-runbook:hover {
  background: var(--red);
  color: #fff;
}

.control-note {
  padding: 15px;
  margin-top: 16px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--line);
  border-radius: 6px;
  background: #0c1218;
}

.control-note-red {
  border-color: rgba(199, 35, 62, 0.3);
  border-left-color: var(--red);
  background: rgba(199, 35, 62, 0.04);
}

.control-note strong {
  color: var(--text);
  font-size: 0.78rem;
}

.control-note p {
  margin: 5px 0 0;
  color: var(--text-dim);
  font-size: 0.72rem;
  line-height: 1.55;
}

.compact-table {
  width: 100%;
  margin-top: 20px;
  border: 1px solid var(--line);
  border-collapse: collapse;
  background: #0a0f14;
  font-size: 0.7rem;
}

.compact-table th,
.compact-table td {
  padding: 10px;
  border-bottom: 1px solid var(--line-soft);
  text-align: left;
  vertical-align: top;
}

.compact-table th {
  background: #111820;
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  text-transform: uppercase;
}

.compact-table td {
  color: var(--text-soft);
}

.check-list {
  padding: 0;
  margin: 22px 0 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding: 9px 0 9px 20px;
  border-top: 1px solid var(--line-soft);
  color: var(--text-soft);
  font-size: 0.78rem;
}

.check-list li::before {
  position: absolute;
  left: 0;
  color: var(--red-bright);
  content: "◇";
}

.inheritance-stack {
  margin-top: 24px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #0a0f14;
  overflow: hidden;
}

.inheritance-stack > div {
  display: grid;
  min-height: 68px;
  padding: 12px;
  border-bottom: 1px solid var(--line-soft);
  grid-template-columns: 34px 1fr;
  align-content: center;
}

.inheritance-stack > div:last-child {
  border-bottom: 0;
}

.inheritance-stack span {
  color: var(--red-bright);
  font-family: var(--font-mono);
  font-size: 0.67rem;
}

.inheritance-stack strong {
  font-size: 0.78rem;
}

.inheritance-stack small {
  color: var(--text-dim);
  font-size: 0.68rem;
  grid-column: 2;
}

.resolution-rules,
.kms-console {
  border: 1px solid var(--line);
  border-top: 3px solid var(--red);
  border-radius: 8px;
  background: #0b1016;
  overflow: hidden;
}

.resolution-rules > span {
  display: block;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  color: var(--red-bright);
  font-family: var(--font-mono);
  font-size: 0.69rem;
  font-weight: 700;
}

.resolution-rules dl,
.kms-console dl {
  margin: 0;
}

.resolution-rules dl > div,
.kms-console dl > div {
  display: grid;
  min-height: 78px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line-soft);
  grid-template-columns: 110px 1fr;
  align-items: center;
  gap: 18px;
}

.resolution-rules dt,
.kms-console dt {
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  text-transform: uppercase;
}

.resolution-rules dd,
.kms-console dd {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.8rem;
}

.isolation-grid {
  display: grid;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0a0f14;
  grid-template-columns: repeat(2, 1fr);
  overflow: hidden;
}

.isolation-grid > div {
  display: flex;
  min-height: 165px;
  padding: 20px;
  flex-direction: column;
}

.isolation-grid > div:nth-child(odd) {
  border-right: 1px solid var(--line-soft);
}

.isolation-grid > div:nth-child(-n + 2) {
  border-bottom: 1px solid var(--line-soft);
}

.isolation-grid span,
.kms-console > div span,
.release-grid span {
  color: var(--red-bright);
  font-family: var(--font-mono);
  font-size: 0.67rem;
}

.isolation-grid strong {
  margin-top: 24px;
  font-size: 0.85rem;
  font-weight: 610;
}

.isolation-grid small {
  margin-top: 6px;
  color: var(--text-dim);
  font-size: 0.71rem;
}

.kms-console > div {
  display: flex;
  min-height: 55px;
  padding: 13px 18px;
  border-bottom: 1px solid var(--line);
  background: #111820;
  align-items: center;
  justify-content: space-between;
}

.kms-console > div b {
  color: var(--green);
  font-family: var(--font-mono);
  font-size: 0.67rem;
}

.kms-console > p {
  padding: 18px;
  margin: 0;
  color: var(--text-dim);
  font-size: 0.73rem;
}

.official-links {
  display: flex;
  margin-top: 22px;
  flex-direction: column;
  gap: 7px;
}

.official-links a {
  color: var(--text-soft);
  font-size: 0.77rem;
  font-weight: 600;
}

.official-links a:hover {
  color: var(--red-bright);
}

.release-grid {
  display: grid;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0a0f14;
  grid-template-columns: repeat(3, 1fr);
  overflow: hidden;
}

.release-grid > div {
  display: flex;
  min-height: 185px;
  padding: 18px;
  border-right: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  flex-direction: column;
}

.release-grid > div:nth-child(3n) {
  border-right: 0;
}

.release-grid > div:nth-last-child(-n + 3) {
  border-bottom: 0;
}

.release-grid strong {
  margin-top: 22px;
  font-size: 0.84rem;
}

.release-grid small {
  margin-top: 6px;
  color: var(--text-dim);
  font-size: 0.69rem;
}

.release-grid b {
  margin-top: auto;
  padding-top: 12px;
  color: var(--text-soft);
  font-family: var(--font-mono);
  font-size: 0.62rem;
}

.hostname-runbook,
.cache-runbook,
.conflict-console {
  min-width: 0;
}

.hostname-runbook,
.conflict-console {
  border: 1px solid var(--line);
  border-top: 3px solid var(--red);
  border-radius: 8px;
  background: #090e13;
  overflow: hidden;
}

.hostname-state {
  display: flex;
  min-height: 50px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  background: #111820;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.hostname-state span {
  color: var(--red-bright);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.hostname-state b {
  color: var(--amber);
  font-family: var(--font-mono);
  font-size: 0.61rem;
}

.dns-manifest {
  width: calc(100% - 32px);
  margin: 16px;
  border: 1px solid var(--line);
  border-collapse: collapse;
  border-radius: 6px;
  background: #070a0e;
  overflow: hidden;
}

.dns-manifest tr {
  display: grid;
  min-height: 66px;
  padding: 12px;
  border-bottom: 1px solid var(--line-soft);
  grid-template-columns: 0.36fr 1fr 1.8fr;
  align-items: center;
  gap: 12px;
}

.dns-manifest tbody tr:last-child {
  border-bottom: 0;
}

.dns-manifest .dns-manifest-head {
  min-height: 38px;
  background: #0f161d;
}

.dns-manifest th,
.dns-manifest td,
.dns-manifest code {
  min-width: 0;
  font-size: 0.62rem;
}

.dns-manifest thead th {
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-weight: 500;
  text-align: left;
}

.dns-manifest tbody th {
  color: var(--red-bright);
  font-family: var(--font-mono);
  text-align: left;
}

.dns-manifest code {
  color: var(--text-soft);
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.fqdn-note {
  padding: 0 16px;
  margin: 0;
  color: var(--text-dim);
  font-size: 0.65rem;
  line-height: 1.55;
}

.fqdn-note code {
  color: var(--text-soft);
}

.runbook-steps {
  padding: 0 16px;
  margin: 18px 0;
  list-style: none;
}

.runbook-steps li {
  display: grid;
  min-height: 76px;
  padding: 13px 0;
  border-top: 1px solid var(--line-soft);
  grid-template-columns: 36px 1fr;
  align-items: start;
  gap: 10px;
}

.runbook-steps li > span {
  color: var(--red-bright);
  font-family: var(--font-mono);
  font-size: 0.64rem;
}

.runbook-steps li p {
  margin: 0;
  color: var(--text-dim);
  font-size: 0.7rem;
  line-height: 1.56;
}

.runbook-steps li strong {
  display: block;
  margin-bottom: 3px;
  color: var(--text-soft);
  font-size: 0.76rem;
}

.runbook-steps li code {
  color: var(--text-soft);
}

.hostname-checks {
  margin: 16px;
}

.hash-manifest {
  padding: 16px;
  margin-top: 20px;
  border: 1px solid rgba(199, 35, 62, 0.28);
  border-left: 3px solid var(--red);
  border-radius: 6px;
  background: rgba(199, 35, 62, 0.04);
}

.hash-manifest > span {
  color: var(--red-bright);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
}

.hash-manifest dl {
  margin: 12px 0 0;
}

.hash-manifest dl > div {
  display: grid;
  padding: 9px 0;
  border-top: 1px solid var(--line-soft);
  grid-template-columns: 94px 1fr;
  gap: 12px;
}

.hash-manifest dt,
.hash-manifest dd {
  min-width: 0;
  margin: 0;
}

.hash-manifest code {
  color: var(--text-soft);
  font-size: 0.61rem;
  overflow-wrap: anywhere;
}

.cache-runbook {
  display: grid;
  gap: 14px;
}

.cache-acceptance {
  display: grid;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0a0f14;
  grid-template-columns: repeat(2, 1fr);
  overflow: hidden;
}

.cache-acceptance > div {
  display: flex;
  min-height: 135px;
  padding: 16px;
  flex-direction: column;
}

.cache-acceptance > div:nth-child(odd) {
  border-right: 1px solid var(--line-soft);
}

.cache-acceptance > div:nth-child(-n + 2) {
  border-bottom: 1px solid var(--line-soft);
}

.cache-acceptance span {
  color: var(--red-bright);
  font-family: var(--font-mono);
  font-size: 0.61rem;
}

.cache-acceptance strong {
  margin-top: 24px;
  color: var(--text-soft);
  font-size: 0.7rem;
  font-weight: 570;
  line-height: 1.55;
}

.cache-acceptance code {
  color: var(--text);
}

.conflict-console .hostname-state b {
  color: var(--red-bright);
}

.conflict-row {
  display: grid;
  min-height: 108px;
  padding: 17px;
  border-bottom: 1px solid var(--line-soft);
  grid-template-columns: 38px 1fr;
  align-items: start;
  gap: 10px;
}

.conflict-row:last-child {
  border-bottom: 0;
}

.conflict-row > span {
  color: var(--red-bright);
  font-family: var(--font-mono);
  font-size: 0.64rem;
}

.conflict-row strong {
  display: block;
  color: var(--text);
  font-size: 0.78rem;
}

.conflict-row small {
  display: block;
  margin-top: 5px;
  color: var(--text-dim);
  font-size: 0.69rem;
  line-height: 1.55;
}

.conflict-row code {
  color: var(--text-soft);
}

.search-empty {
  min-height: 520px;
  padding: 100px clamp(30px, 6vw, 104px);
}

.search-empty h2 {
  margin: 12px 0;
  font-size: clamp(2.2rem, 5vw, 4.5rem);
  font-weight: 520;
  letter-spacing: -0.05em;
}

.search-empty p {
  color: var(--text-dim);
}

.docs-footer {
  display: grid;
  min-height: 270px;
  padding: 54px clamp(30px, 6vw, 104px);
  background: #06090d;
  grid-template-columns: 1fr auto;
  align-content: center;
  gap: 24px 60px;
}

.docs-footer > div > p {
  margin: 15px 0 0;
  color: var(--text-dim);
  font-size: 0.76rem;
}

.docs-footer nav {
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 7px 28px;
}

.docs-footer nav a {
  color: var(--text-soft);
  font-size: 0.77rem;
}

.docs-footer > p {
  margin: 0;
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  grid-column: 1 / -1;
}

.error-body {
  min-height: 100vh;
}

.error-page {
  display: flex;
  width: min(1100px, calc(100vw - 48px));
  min-height: 100vh;
  margin: 0 auto;
  flex-direction: column;
  justify-content: center;
}

.error-page > div {
  max-width: 780px;
  margin-top: 80px;
}

.error-page > div > p {
  color: var(--red-bright);
  font-family: var(--font-mono);
  font-size: 0.72rem;
}

.error-page h1 {
  margin: 14px 0 32px;
  font-size: clamp(3rem, 7vw, 6.4rem);
  font-weight: 510;
  letter-spacing: -0.06em;
  line-height: 0.95;
}

@media (max-width: 1120px) {
  .docs-header {
    grid-template-columns: 250px 1fr auto;
  }

  .docs-shell {
    grid-template-columns: 250px minmax(0, 1fr);
  }

  .docs-header > nav > a:not(.header-cta),
  .header-state small {
    display: none;
  }

  .docs-hero,
  .section-header,
  .doc-block {
    grid-template-columns: 1fr;
  }

  .docs-hero {
    gap: 34px;
  }

  .hero-copy h1 {
    max-width: 900px;
  }

  .release-contract {
    min-height: 250px;
  }

  .section-header {
    gap: 20px;
  }

  .section-header > p {
    max-width: 760px;
  }

  .doc-block {
    gap: 34px;
  }
}

@media (max-width: 780px) {
  html {
    scroll-padding-top: 78px;
  }

  .docs-header {
    height: 64px;
    padding: 0 16px;
    grid-template-columns: 1fr auto auto;
    gap: 12px;
  }

  .header-state,
  .docs-header > nav {
    display: none;
  }

  .mobile-nav-button {
    display: flex;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--surface);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
  }

  .mobile-nav-button i {
    width: 18px;
    height: 1px;
    background: var(--text);
  }

  .docs-shell {
    display: block;
    padding-top: 64px;
  }

  .docs-sidebar {
    position: fixed;
    z-index: 90;
    top: 64px;
    bottom: 0;
    left: 0;
    width: min(330px, calc(100vw - 40px));
    height: auto;
    box-shadow: 30px 0 80px rgba(0, 0, 0, 0.55);
    transform: translateX(-105%);
    transition: transform 180ms ease;
  }

  .docs-sidebar.open {
    transform: translateX(0);
  }

  .docs-section {
    padding: 76px 22px;
  }

  .docs-hero {
    min-height: auto;
    padding-top: 76px;
  }

  .hero-copy h1 {
    font-size: clamp(3rem, 15vw, 5.2rem);
  }

  .hero-index {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-index > div:nth-child(2) {
    border-right: 0;
  }

  .hero-index > div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line-soft);
  }

  .compact-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  .isolation-grid,
  .release-grid,
  .cache-acceptance {
    grid-template-columns: 1fr;
  }

  .isolation-grid > div,
  .release-grid > div,
  .cache-acceptance > div {
    border-right: 0 !important;
    border-bottom: 1px solid var(--line-soft) !important;
  }

  .isolation-grid > div:last-child,
  .release-grid > div:last-child,
  .cache-acceptance > div:last-child {
    border-bottom: 0 !important;
  }

  .dns-manifest tr {
    grid-template-columns: 0.34fr 0.8fr 1.55fr;
  }

  .docs-footer {
    padding: 46px 22px;
    grid-template-columns: 1fr;
  }

  .docs-footer > p {
    grid-column: 1;
  }
}

@media (max-width: 520px) {
  .hostname-state {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .dns-manifest tr {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .dns-manifest .dns-manifest-head {
    display: none;
  }

  .dns-manifest tbody th::after {
    margin-left: 7px;
    color: var(--text-dim);
    content: "record";
  }

  .hash-manifest dl > div {
    grid-template-columns: 1fr;
    gap: 5px;
  }
}

/* Version 4: signed outbound webhooks and customer-owned alert routing */
.integrations-docs-section {
  background: radial-gradient(circle at 92% 4%, rgba(199, 35, 62, 0.09), transparent 27rem), #090d12;
}

.webhook-verification-stack,
.payload-tabs-static {
  display: grid;
  min-width: 0;
  gap: 16px;
}

.webhook-route {
  display: grid;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0a0f14;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 10px;
}

.webhook-route > div {
  display: flex;
  min-height: 104px;
  padding: 14px;
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  background: var(--surface);
  flex-direction: column;
  justify-content: center;
}

.webhook-route > div.route-critical {
  border-color: rgba(199, 35, 62, 0.5);
  background: rgba(199, 35, 62, 0.06);
}

.webhook-route span,
.delivery-contract span,
.destination-head span,
.integration-acceptance > span {
  color: var(--red-bright);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
}

.webhook-route strong {
  margin-top: 8px;
  font-size: 0.77rem;
}

.webhook-route small {
  margin-top: 4px;
  color: var(--text-dim);
  font-size: 0.63rem;
  line-height: 1.4;
}

.webhook-route > i {
  color: var(--red-bright);
  font-style: normal;
}

.delivery-contract {
  display: grid;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #0c1117;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
}

.delivery-contract > div {
  display: flex;
  min-height: 132px;
  padding: 18px;
  flex-direction: column;
}

.delivery-contract > div:not(:last-child) {
  border-right: 1px solid var(--line-soft);
}

.delivery-contract strong {
  margin-top: 20px;
  font-size: 0.78rem;
}

.delivery-contract small {
  margin-top: 7px;
  color: var(--text-dim);
  font-size: 0.68rem;
  line-height: 1.5;
}

.destination-grid {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.destination-grid > article {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0a0f14;
}

.destination-head {
  display: grid;
  grid-template-columns: 32px 1fr;
  align-items: center;
  gap: 10px;
}

.destination-head > span {
  display: grid;
  width: 31px;
  height: 31px;
  border: 1px solid rgba(199, 35, 62, 0.45);
  border-radius: 5px;
  background: rgba(199, 35, 62, 0.07);
  place-items: center;
}

.destination-head strong {
  font-size: 0.8rem;
}

.destination-head b {
  margin-top: 6px;
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 620;
  grid-column: 2;
}

.destination-grid p {
  min-height: 112px;
  margin: 18px 0 0;
  color: var(--text-soft);
  font-size: 0.72rem;
  line-height: 1.58;
}

.destination-grid pre {
  min-height: 210px;
  padding: 13px;
  margin: 14px 0;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #05070a;
  color: #cad4de;
  font-size: 0.61rem;
  line-height: 1.55;
}

.destination-grid a {
  color: var(--text-soft);
  font-size: 0.68rem;
  font-weight: 650;
}

.destination-grid a:hover {
  color: var(--red-bright);
}

.integration-acceptance {
  display: grid;
  max-width: 1280px;
  padding: 24px;
  margin-top: 58px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--red);
  border-radius: 8px;
  background: #0c1117;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.integration-acceptance > span {
  grid-column: 1 / -1;
}

.integration-acceptance > div {
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
}

.integration-acceptance strong,
.integration-acceptance small {
  display: block;
}

.integration-acceptance strong {
  font-size: 0.8rem;
}

.integration-acceptance small {
  margin-top: 7px;
  color: var(--text-dim);
  font-size: 0.67rem;
  line-height: 1.5;
}

@media (max-width: 1180px) {
  .webhook-route { grid-template-columns: repeat(4, 1fr); }
  .webhook-route > i { display: none; }
  .destination-grid { grid-template-columns: 1fr; }
  .destination-grid p { min-height: 0; }
}

@media (max-width: 760px) {
  .webhook-route,
  .delivery-contract,
  .integration-acceptance { grid-template-columns: 1fr; }
  .delivery-contract > div:not(:last-child) { border-right: 0; border-bottom: 1px solid var(--line-soft); }
  .integration-acceptance > span { grid-column: auto; }
}

/* V1.0 general-availability release notes */
.release-notes-page {
  background: #080b0f;
}

.release-notes-main {
  padding-top: 72px;
}

.release-notes-shell {
  width: min(1320px, calc(100vw - 56px));
  margin: 0 auto;
}

.release-notes-hero {
  display: flex;
  min-height: calc(100vh - 72px);
  padding: 100px 0 78px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 85% 12%, rgba(199, 35, 62, 0.15), transparent 24rem),
    linear-gradient(90deg, rgba(199, 35, 62, 0.045) 1px, transparent 1px),
    linear-gradient(rgba(199, 35, 62, 0.035) 1px, transparent 1px);
  background-size: auto, 58px 58px, 58px 58px;
  align-items: center;
}

.release-notes-hero h1 {
  max-width: 1020px;
  margin: 24px 0 28px;
  font-size: clamp(4rem, 8.5vw, 8rem);
  font-weight: 500;
  letter-spacing: -0.075em;
  line-height: 0.86;
}

.release-notes-hero .release-notes-shell > p:last-of-type {
  max-width: 850px;
  margin: 0;
  color: var(--text-soft);
  font-size: clamp(1rem, 1.7vw, 1.2rem);
  line-height: 1.72;
}

.release-facts {
  display: grid;
  margin-top: 58px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0a0f14;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
}

.release-facts > div {
  display: flex;
  min-height: 96px;
  padding: 18px;
  flex-direction: column;
  justify-content: center;
}

.release-facts > div:not(:last-child) {
  border-right: 1px solid var(--line-soft);
}

.release-facts span,
.release-section-head > span,
.ga-feature > span,
.release-contract-table > div > span,
.release-security-callout > div > span,
.upgrade-checklist > div > span {
  color: var(--red-bright);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.075em;
}

.release-facts strong {
  margin-top: 9px;
  font-size: 0.9rem;
  font-weight: 620;
}

.release-notes-body {
  padding: 112px 0;
  background: #090d12;
}

.release-section-head {
  display: grid;
  max-width: 1160px;
  margin-bottom: 58px;
  grid-template-columns: 1fr 0.72fr;
  align-items: end;
  gap: 22px 54px;
}

.release-section-head > span {
  grid-column: 1 / -1;
}

.release-section-head h2,
.release-contract-table h2,
.release-security-callout h2,
.upgrade-checklist h2 {
  margin: 0;
  font-size: clamp(2.5rem, 5vw, 5rem);
  font-weight: 510;
  letter-spacing: -0.06em;
  line-height: 0.96;
}

.release-section-head p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.94rem;
  line-height: 1.75;
}

.ga-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.ga-feature {
  display: flex;
  min-height: 520px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0c1117;
  flex-direction: column;
}

.ga-feature-primary {
  border-top: 4px solid var(--red);
  background: radial-gradient(circle at 100% 0, rgba(199, 35, 62, 0.12), transparent 16rem), #0c1117;
}

.ga-feature h3 {
  margin: 46px 0 16px;
  font-size: clamp(1.65rem, 2.4vw, 2.3rem);
  font-weight: 540;
  letter-spacing: -0.045em;
  line-height: 1.05;
}

.ga-feature h3 code {
  color: var(--text);
  font-size: 0.88em;
}

.ga-feature > p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.83rem;
  line-height: 1.7;
}

.ga-feature ul {
  padding: 0;
  margin: 24px 0;
  list-style: none;
}

.ga-feature li {
  position: relative;
  padding: 11px 0 11px 18px;
  border-top: 1px solid var(--line-soft);
  color: var(--text-dim);
  font-size: 0.75rem;
  line-height: 1.5;
}

.ga-feature li::before {
  position: absolute;
  top: 17px;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red);
  content: "";
}

.ga-feature > b {
  margin-top: auto;
  color: var(--text-soft);
  font-family: var(--font-mono);
  font-size: 0.66rem;
}

.release-contract-table,
.release-security-callout,
.upgrade-checklist {
  margin-top: 76px;
  border-top: 1px solid var(--line);
}

.release-contract-table > div,
.upgrade-checklist > div {
  display: grid;
  padding: 58px 0 38px;
  grid-template-columns: 0.4fr 1.6fr;
  align-items: end;
  gap: 34px;
}

.release-contract-table table {
  width: 100%;
  border: 1px solid var(--line);
  border-collapse: collapse;
  background: #0a0f14;
}

.release-contract-table th,
.release-contract-table td {
  padding: 18px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--text-soft);
  font-size: 0.78rem;
  line-height: 1.55;
  text-align: left;
}

.release-contract-table thead th {
  background: #111820;
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.05em;
}

.release-contract-table tbody th {
  color: var(--text);
  font-weight: 620;
}

.release-security-callout {
  display: grid;
  padding: 58px 0 0;
  grid-template-columns: 1.2fr 0.58fr;
  gap: 54px;
}

.release-security-callout > div > p {
  max-width: 760px;
  margin: 24px 0 0;
  color: var(--text-soft);
  line-height: 1.75;
}

.release-security-callout aside {
  display: flex;
  min-height: 290px;
  padding: 26px;
  border: 1px solid rgba(199, 35, 62, 0.45);
  border-left: 4px solid var(--red);
  border-radius: 8px;
  background: rgba(199, 35, 62, 0.055);
  flex-direction: column;
}

.release-security-callout aside strong {
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.68rem;
}

.release-security-callout aside b {
  margin-top: 42px;
  color: var(--red-bright);
  font-size: 1.7rem;
}

.release-security-callout aside p {
  color: var(--text-dim);
  font-size: 0.78rem;
}

.release-security-callout aside a {
  margin-top: auto;
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 650;
}

.upgrade-checklist ol {
  padding: 0;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0a0f14;
  list-style: none;
}

.upgrade-checklist li {
  display: grid;
  min-height: 100px;
  padding: 20px 22px;
  border-bottom: 1px solid var(--line-soft);
  grid-template-columns: 54px 1fr;
  align-items: center;
  gap: 16px;
}

.upgrade-checklist li:last-child {
  border-bottom: 0;
}

.upgrade-checklist li > b {
  color: var(--red-bright);
  font-family: var(--font-mono);
  font-size: 0.72rem;
}

.upgrade-checklist li p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.82rem;
  line-height: 1.6;
}

.release-links {
  display: grid;
  margin-top: 76px;
  border: 1px solid var(--line);
  border-radius: 8px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
}

.release-links a {
  display: flex;
  min-height: 92px;
  padding: 18px;
  color: var(--text-soft);
  font-size: 0.78rem;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.release-links a:not(:last-child) {
  border-right: 1px solid var(--line-soft);
}

.release-links a:hover {
  background: rgba(199, 35, 62, 0.055);
  color: var(--text);
}

.release-notes-footer {
  border-top: 1px solid var(--line);
}

@media (max-width: 980px) {
  .ga-feature-grid { grid-template-columns: 1fr; }
  .ga-feature { min-height: 0; }
  .release-section-head,
  .release-security-callout { grid-template-columns: 1fr; }
  .release-links { grid-template-columns: repeat(2, 1fr); }
  .release-links a:nth-child(2) { border-right: 0; }
  .release-links a:nth-child(-n + 2) { border-bottom: 1px solid var(--line-soft); }
}

@media (max-width: 680px) {
  .release-notes-shell { width: min(100% - 36px, 1320px); }
  .release-notes-hero { padding: 74px 0 58px; }
  .release-notes-hero h1 { font-size: clamp(3.4rem, 17vw, 5.2rem); }
  .release-facts { grid-template-columns: repeat(2, 1fr); }
  .release-facts > div:nth-child(2) { border-right: 0; }
  .release-facts > div:nth-child(-n + 2) { border-bottom: 1px solid var(--line-soft); }
  .release-contract-table > div,
  .upgrade-checklist > div { grid-template-columns: 1fr; }
  .release-contract-table { overflow-x: auto; }
  .release-contract-table table { min-width: 760px; }
  .release-links { grid-template-columns: 1fr; }
  .release-links a { border-right: 0 !important; border-bottom: 1px solid var(--line-soft); }
  .release-links a:last-child { border-bottom: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
