:root {
  --color-carbon-950: #181a20;
  --color-carbon-900: #20232b;
  --color-ice-50: #f4f6f8;
  --color-metal-400: #a6adb8;
  --color-metal-700: #59616d;
  --color-electric-yellow: #f4e536;
  --color-intense-red: #e84343;
  --color-cobalt-blue: #3153c7;
  --color-ink: #12141a;
  --color-white: #ffffff;

  --font-heading: "Teko", sans-serif;
  --font-body: "IBM Plex Sans", sans-serif;

  --text-label: 0.75rem;
  --text-meta: 0.875rem;
  --text-base: 1rem;
  --text-intro: 1.125rem;
  --text-subtitle: 1.5rem;
  --text-section: clamp(1.875rem, 4vw, 2rem);
  --text-page: clamp(2.5rem, 6vw, 3rem);
  --text-display: clamp(2.625rem, 8vw, 4.5rem);

  --leading-label: 1.333;
  --leading-meta: 1.429;
  --leading-body: 1.625;
  --leading-intro: 1.556;
  --leading-heading: 0.98;
  --leading-display: 0.92;

  --tracking-technical: 0.08em;
  --tracking-navigation: 0.06em;
  --tracking-brand: 0.04em;

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;
  --space-10: 8rem;

  --container-max: 75rem;
  --container-padding: 2rem;
  --container-padding-mobile: 1.25rem;

  --section-space: clamp(3.5rem, 8vw, 7rem);
  --section-space-compact: clamp(2rem, 5vw, 4rem);

  --radius-none: 0;
  --radius-card: 0.125rem;
  --radius-control: 0.375rem;

  --border-metal-dark: rgba(166, 173, 184, 0.42);
  --border-metal-light: rgba(89, 97, 109, 0.42);
  --shadow-elevated: 0 12px 32px rgba(0, 0, 0, 0.18);

  --transition-fast: 160ms ease-out;
  --transition-base: 220ms ease-out;

  --surface-dark: var(--color-carbon-950);
  --surface-dark-raised: var(--color-carbon-900);
  --surface-light: var(--color-ice-50);
  --text-on-dark: var(--color-ice-50);
  --text-on-light: var(--color-ink);
  --text-muted-dark: var(--color-metal-400);
  --text-muted-light: var(--color-metal-700);
}

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

html {
  min-width: 320px;
  scroll-behavior: smooth;
  text-size-adjust: 100%;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background: var(--surface-light);
  color: var(--text-on-light);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 400;
  line-height: var(--leading-body);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

main,
header,
footer,
section,
article,
aside,
nav,
figure,
form,
fieldset,
table {
  min-width: 0;
}

img,
picture,
svg,
video,
canvas,
audio,
iframe {
  display: block;
  max-width: 100%;
}

img,
video {
  height: auto;
}

iframe {
  width: 100%;
  border: 0;
}

button,
input,
select,
textarea {
  color: inherit;
  font: inherit;
}

button,
select {
  cursor: pointer;
}

button {
  border: 0;
  background: none;
}

textarea {
  min-height: 7rem;
  resize: vertical;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--border-metal-light);
  border-radius: var(--radius-control);
  background: var(--color-white);
  color: var(--color-ink);
  line-height: 1.4;
}

input,
select {
  min-height: 2.75rem;
  padding: 0.625rem 0.75rem;
}

textarea {
  padding: 0.75rem;
}

input::placeholder,
textarea::placeholder {
  color: var(--color-metal-700);
  opacity: 1;
}

input:disabled,
select:disabled,
textarea:disabled,
button:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

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

a:hover {
  text-decoration-color: var(--color-electric-yellow);
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 3px solid var(--color-electric-yellow);
  outline-offset: 3px;
}

::selection {
  background: var(--color-electric-yellow);
  color: var(--color-carbon-950);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0 0 var(--space-4);
  color: inherit;
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: var(--leading-heading);
  letter-spacing: 0.015em;
  text-wrap: balance;
}

h1 {
  font-size: var(--text-page);
}

h2 {
  font-size: var(--text-section);
}

h3 {
  font-size: var(--text-subtitle);
}

h4 {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
}

h5,
h6 {
  font-size: 1.125rem;
}

p {
  margin: 0 0 var(--space-4);
}

ul,
ol {
  margin: 0 0 var(--space-4);
  padding-left: 1.25rem;
}

li {
  min-width: 0;
}

blockquote {
  margin: 0 0 var(--space-5);
  padding: var(--space-4) var(--space-5);
  border-left: 2px solid var(--color-electric-yellow);
  color: inherit;
}

figure {
  margin: 0 0 var(--space-5);
}

figcaption {
  margin-top: var(--space-2);
  color: var(--text-muted-light);
  font-size: var(--text-meta);
  line-height: var(--leading-meta);
}

hr {
  height: 1px;
  margin: var(--space-6) 0;
  border: 0;
  background: var(--border-metal-light);
}

small {
  font-size: var(--text-meta);
  line-height: var(--leading-meta);
}

strong {
  font-weight: 700;
}

table {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
  color: inherit;
  text-align: left;
}

caption {
  margin-bottom: var(--space-2);
  color: inherit;
  font-size: var(--text-meta);
  text-align: left;
}

th,
td {
  min-width: 0;
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--border-metal-light);
  overflow-wrap: anywhere;
  vertical-align: top;
}

th {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

details {
  margin: 0 0 var(--space-4);
  border-bottom: 1px solid var(--border-metal-light);
}

summary {
  min-height: 2.75rem;
  padding: var(--space-3) 0;
  cursor: pointer;
  font-weight: 600;
}

summary::marker {
  color: var(--color-cobalt-blue);
}

details > :not(summary) {
  margin-bottom: var(--space-4);
}

body > :last-child,
main > :last-child,
article > :last-child,
section > :last-child,
aside > :last-child,
header > :last-child,
footer > :last-child,
.card > :last-child,
.panel > :last-child,
.stack > :last-child,
.content-group > :last-child {
  margin-bottom: 0;
}

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

.section {
  padding-block: var(--section-space);
}

.section--compact {
  padding-block: var(--section-space-compact);
}

.surface-dark {
  --surface-current: var(--surface-dark);
  --text-current: var(--text-on-dark);
  --text-muted-current: var(--text-muted-dark);
  --border-current: var(--border-metal-dark);
  background: var(--surface-dark);
  color: var(--text-on-dark);
}

.surface-dark-raised {
  --surface-current: var(--surface-dark-raised);
  --text-current: var(--text-on-dark);
  --text-muted-current: var(--text-muted-dark);
  --border-current: var(--border-metal-dark);
  background: var(--surface-dark-raised);
  color: var(--text-on-dark);
}

.surface-light {
  --surface-current: var(--surface-light);
  --text-current: var(--text-on-light);
  --text-muted-current: var(--text-muted-light);
  --border-current: var(--border-metal-light);
  background: var(--surface-light);
  color: var(--text-on-light);
}

.surface-dark a:not(.button),
.surface-dark-raised a:not(.button) {
  color: var(--color-ice-50);
}

.surface-dark figcaption,
.surface-dark-raised figcaption,
.surface-dark small,
.surface-dark-raised small {
  color: var(--text-muted-dark);
}

.surface-dark input,
.surface-dark select,
.surface-dark textarea,
.surface-dark-raised input,
.surface-dark-raised select,
.surface-dark-raised textarea {
  border-color: var(--border-metal-dark);
  background: rgba(255, 255, 255, 0.04);
  color: var(--color-ice-50);
}

.surface-dark input::placeholder,
.surface-dark textarea::placeholder,
.surface-dark-raised input::placeholder,
.surface-dark-raised textarea::placeholder {
  color: var(--color-metal-400);
}

.surface-dark th,
.surface-dark td,
.surface-dark-raised th,
.surface-dark-raised td {
  border-color: var(--border-metal-dark);
}

.eyebrow,
.technical-label {
  margin: 0 0 var(--space-2);
  color: var(--text-muted-current, var(--text-muted-light));
  font-size: var(--text-label);
  font-weight: 700;
  letter-spacing: var(--tracking-technical);
  line-height: var(--leading-label);
  text-transform: uppercase;
}

.eyebrow--accent,
.technical-label--accent {
  color: var(--color-cobalt-blue);
}

.surface-dark .eyebrow--accent,
.surface-dark .technical-label--accent,
.surface-dark-raised .eyebrow--accent,
.surface-dark-raised .technical-label--accent {
  color: var(--color-electric-yellow);
}

.display {
  margin-bottom: var(--space-5);
  font-family: var(--font-heading);
  font-size: var(--text-display);
  font-weight: 600;
  line-height: var(--leading-display);
  letter-spacing: 0.01em;
  text-wrap: balance;
}

.intro {
  margin-bottom: var(--space-5);
  font-size: var(--text-intro);
  line-height: var(--leading-intro);
}

.muted {
  color: var(--text-muted-current, var(--text-muted-light));
}

.stack {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: stretch;
  gap: var(--space-4);
}

.stack--tight {
  gap: var(--space-2);
}

.stack--loose {
  gap: var(--space-6);
}

.cluster {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
}

.cluster > * {
  min-width: 0;
}

.cluster--tight {
  gap: var(--space-2);
}

.cluster--loose {
  gap: var(--space-5);
}

.button {
  display: inline-flex;
  min-width: 0;
  min-height: 2.75rem;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.625rem 1rem;
  border: 1px solid transparent;
  border-radius: var(--radius-card);
  font-family: var(--font-body);
  font-size: var(--text-meta);
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  transition:
    background-color var(--transition-fast),
    border-color var(--transition-fast),
    box-shadow var(--transition-fast),
    color var(--transition-fast),
    transform var(--transition-fast);
}

.button:hover {
  text-decoration: none;
}

.button--primary {
  background: var(--color-electric-yellow);
  color: var(--color-carbon-950);
}

.button--primary:hover {
  background: #fff15a;
  box-shadow: 0 0 0 3px rgba(244, 229, 54, 0.16);
}

.button--secondary {
  border-color: currentColor;
  background: transparent;
  color: var(--color-ink);
}

.button--secondary:hover {
  border-color: var(--color-cobalt-blue);
  background: rgba(49, 83, 199, 0.08);
  color: var(--color-cobalt-blue);
}

.surface-dark .button--secondary,
.surface-dark-raised .button--secondary {
  border-color: var(--border-metal-dark);
  color: var(--color-ice-50);
}

.surface-dark .button--secondary:hover,
.surface-dark-raised .button--secondary:hover {
  border-color: var(--color-electric-yellow);
  background: rgba(244, 229, 54, 0.1);
  color: var(--color-electric-yellow);
}

.button--blue {
  background: var(--color-cobalt-blue);
  color: var(--color-ice-50);
}

.button--blue:hover {
  background: #4167df;
}

.card,
.panel {
  min-width: 0;
  border: 1px solid var(--border-current, var(--border-metal-light));
  border-radius: var(--radius-card);
  background: var(--surface-current, var(--color-white));
}

.card {
  padding: var(--space-5);
  transition:
    border-color var(--transition-base),
    box-shadow var(--transition-base),
    transform var(--transition-base);
}

.card:hover {
  border-color: var(--color-cobalt-blue);
  box-shadow: var(--shadow-elevated);
  transform: translateY(-2px);
}

.surface-dark .card,
.surface-dark-raised .card,
.surface-dark .panel,
.surface-dark-raised .panel {
  box-shadow: none;
}

.surface-dark .card:hover,
.surface-dark-raised .card:hover {
  border-color: var(--color-electric-yellow);
  box-shadow: none;
}

.panel {
  padding: var(--space-6);
}

.card > :last-child,
.panel > :last-child {
  margin-bottom: 0;
}

.status-line {
  width: 100%;
  height: 2px;
  background: var(--color-electric-yellow);
}

.status-line--red {
  background: var(--color-intense-red);
}

.status-line--blue {
  background: var(--color-cobalt-blue);
}

.badge {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  justify-content: center;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-card);
  background: var(--color-cobalt-blue);
  color: var(--color-ice-50);
  font-size: var(--text-label);
  font-weight: 700;
  letter-spacing: var(--tracking-technical);
  line-height: var(--leading-label);
  text-transform: uppercase;
}

.badge--alert {
  background: var(--color-intense-red);
}

.badge--highlight {
  background: var(--color-electric-yellow);
  color: var(--color-carbon-950);
}

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

.content-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

.content-list:last-child {
  margin-bottom: 0;
}

.table-scroll {
  width: 100%;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: var(--space-3);
  left: var(--space-3);
  transform: translateY(-200%);
  padding: var(--space-3) var(--space-4);
  background: var(--color-electric-yellow);
  color: var(--color-carbon-950);
  font-weight: 700;
  text-decoration: none;
  transition: transform var(--transition-fast);
}

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

@media (max-width: 900px) {
  :root {
    --container-padding: 1.5rem;
  }

  .panel {
    padding: var(--space-5);
  }
}

@media (max-width: 720px) {
  :root {
    --container-padding: var(--container-padding-mobile);
    --text-display: clamp(2.625rem, 12vw, 3.25rem);
    --text-page: clamp(2.25rem, 10vw, 2.625rem);
    --text-section: clamp(1.75rem, 8vw, 2rem);
  }

  .section {
    padding-block: var(--section-space);
  }

  .card,
  .panel {
    padding: var(--space-4);
  }

  .cluster {
    align-items: stretch;
  }

  .cluster > .button {
    flex: 1 1 12rem;
  }

  th,
  td {
    padding: var(--space-3);
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}