@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/Inter-Regular.otf') format('opentype');
}

@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('assets/fonts/Inter-Medium.otf') format('opentype');
}

@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('assets/fonts/Inter-SemiBold.otf') format('opentype');
}

@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('assets/fonts/Inter-Bold.otf') format('opentype');
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
}

button {
  font: inherit;
  cursor: pointer;
}

input {
  font: inherit;
}

textarea {
  font: inherit;
}

select {
  font: inherit;
  cursor: pointer;
}

summary {
  cursor: pointer;
  color: var(--tgx-accent);
}

a {
  color: var(--tgx-accent);
  text-underline-offset: 4px;
}

img {
  max-width: 100%;
}

h1 {
  margin: 0;
  line-height: 1.22;
  font-size: clamp(30px, 3.2vw, 46px);
  font-weight: 500;
  letter-spacing: -0.05em;
}

h2 {
  margin: 0;
  line-height: 1.22;
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.035em;
}

h3 {
  margin: 0;
  line-height: 1.22;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

p {
  margin: 0;
}

main {
  max-width: 1600px;
  margin: auto;
  padding: 42px 4.5% 0;
}

kbd {
  padding: 2px 4px;
  border: 1px solid var(--tgx-line);
  border-radius: 3px;
}

details {
  margin-top: 28px;
  font-size: 12px;
}

pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin: 18px 0 0;
  padding: 20px;
  background: var(--tgx-subtle);
  font-size: 11px;
  line-height: 1.9;
}

dialog {
  max-width: min(600px, calc(100% - 32px));
  width: 600px;
  padding: 30px;
  border: 1px solid var(--tgx-line);
  border-radius: 6px;
  color: var(--tgx-text);
  background: var(--tgx-surface);
  box-shadow: 0 20px 70px #0003;
}

p + p {
  margin-top: 12px;
}

dialog::backdrop {
  background: #001b26b3;
}

dialog h2 {
  margin: 20px 0;
}

dialog p {
  color: var(--tgx-muted);
  font-size: 13px;
}

:root {
  --cds-button-primary: #006779;
  --cds-button-primary-hover: #005466;
  --cds-button-primary-active: #003d4b;
  --cds-button-tertiary: #006779;
  --cds-button-tertiary-hover: #005466;
  --cds-button-tertiary-active: #003d4b;
  --tgx-deep: #00232b;
  --tgx-petrol: #087e91;
  --tgx-cyan: #30cadd;
  --tgx-light: #9beff5;
  --tgx-soft: #ccf8fb;
  --tgx-ice: #e9fcfd;
  --tgx-surface: #fff;
  --tgx-line: #d4e1e3;
  --tgx-subtle: #edf3f3;
  --tgx-text: #00232b;
  --tgx-muted: #49636a;
  --tgx-accent: #006779;
  --tgx-success: #11643d;
  --tgx-success-bg: #e2f5e9;
  --tgx-warning: #805414;
  --tgx-warning-bg: #fff2d6;
  --tgx-error: #a12835;
  --tgx-error-bg: #fff0f0;
  --tgx-info: #225e8c;
  --tgx-info-bg: #eaf4fc;

  font-family: Inter, Arial, sans-serif;
  color: var(--tgx-text);
  background: var(--cds-background);
  font-synthesis: none;
  text-size-adjust: 100%;
}

[data-theme='dark'] {
  --cds-button-primary: #087e91;
  --cds-button-primary-hover: #086d7d;
  --cds-button-primary-active: #005565;
  --cds-button-tertiary: #9beff5;
  --cds-button-tertiary-hover: #087e91;
  --cds-button-tertiary-active: #005565;
  --tgx-surface: #102b33;
  --tgx-line: #33515a;
  --tgx-subtle: #18363e;
  --tgx-text: #e6f3f4;
  --tgx-muted: #a8c2c7;
  --tgx-accent: #9beff5;
  --tgx-success: #8be3b6;
  --tgx-success-bg: #173e33;
  --tgx-warning: #f3cb82;
  --tgx-warning-bg: #3d3424;
  --tgx-error: #ffb0b8;
  --tgx-error-bg: #432a32;
  --tgx-info: #aad5f8;
  --tgx-info-bg: #183d52;
}

[hidden] {
  display: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.logo {
  width: 105px;
  height: auto;
  display: block;
}

.logo-dark {
  display: none;
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 250px;
  padding: 34px 22px 24px;
  background: var(--tgx-surface);
  border-right: 1px solid var(--tgx-line);
  display: flex;
  flex-direction: column;
  z-index: 10;
}

.brand-link {
  display: block;
  margin-left: 12px;
  width: fit-content;
}

.sidebar-caption {
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--tgx-muted);
  margin: 20px 12px 36px;
}

.nav-number {
  font-size: 10px;
  font-weight: 400;
}

.sidebar-note {
  margin: auto 12px 0;
  padding-top: 40px;
  font-size: 10px;
}

.status-dot {
  width: 7px;
  height: 7px;
  background: var(--tgx-success);
  border-radius: 50%;
  display: inline-block;
  margin-right: 8px;
}

.warning-dot {
  background: var(--tgx-warning);
}

.error-dot {
  background: var(--tgx-error);
}

.info-dot {
  background: var(--tgx-info);
}

.workspace {
  margin-left: 250px;
}

.topbar {
  min-height: 65px;
  border-bottom: 1px solid var(--tgx-line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 4.5%;
  background: var(--tgx-surface);
}

.breadcrumb {
  color: var(--tgx-muted);
  font-size: 11px;
}

.mobile-menu {
  display: none;
}

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

.eyebrow {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  line-height: 1.6;
}

.lead {
  font-size: 19px;
  letter-spacing: -0.025em;
  line-height: 1.5;
}

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

.foundation-hero {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  background: var(--tgx-deep);
  color: #fff;
  overflow: hidden;
  padding: 44px 40px 30px;
  min-height: 380px;
  border-radius: 6px;
  gap: 22px;
}

.hero-meta {
  display: flex;
  gap: 22px;
  font-size: 9px;
  color: var(--tgx-light);
  margin-top: 32px;
}

.brand-art {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 260px;
}

.art-orbit {
  position: absolute;
  border: 1px solid #9beff530;
  border-radius: 50%;
}

.orbit-one {
  width: 220px;
  height: 220px;
}

.orbit-two {
  width: 300px;
  height: 300px;
}

.art-coordinate {
  position: absolute;
  font-size: 8px;
  letter-spacing: 0.15em;
  color: var(--tgx-light);
}

.coordinate-one {
  top: 20px;
  left: 0;
}

.coordinate-two {
  bottom: 0;
  left: 5px;
}

.coordinate-three {
  top: 40%;
  right: 0;
}

.principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.section {
  margin-top: 50px;
  padding-bottom: 8px;
  scroll-margin-top: 20px;
}

.section-heading {
  display: flex;
  gap: 20px;
  margin-bottom: 26px;
}

.section-number {
  color: var(--tgx-accent);
  font-size: 11px;
  padding-top: 4px;
}

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

.swatch {
  height: 100px;
  border-radius: 4px;
  border: 1px solid var(--tgx-line);
}

.swatch-deep {
  background: var(--tgx-deep);
}

.swatch-petrol {
  background: var(--tgx-petrol);
}

.swatch-cyan {
  background: var(--tgx-cyan);
}

.swatch-light {
  background: var(--tgx-light);
}

.swatch-soft {
  background: var(--tgx-soft);
}

.swatch-ice {
  background: var(--tgx-ice);
}

.notice {
  padding: 15px 18px;
  margin: 24px 0;
  border-left: 2px solid var(--tgx-petrol);
  background: var(--tgx-subtle);
  color: var(--tgx-muted);
  font-size: 11px;
}

.semantic-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  font-size: 11px;
}

.type-specimen {
  background: var(--tgx-surface);
  border: 1px solid var(--tgx-line);
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  padding: 30px;
  gap: 35px;
}

.type-large {
  font-size: 104px;
  font-weight: 500;
  letter-spacing: -0.08em;
  line-height: 1;
}

.type-scale {
  display: grid;
  align-content: center;
  gap: 16px;
}

.type-body {
  font-size: 14px;
  color: var(--tgx-muted);
}

.numeric-specimen {
  font-size: 24px;
  font-variant-numeric: tabular-nums;
}

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

.panel {
  background: var(--tgx-surface);
  border: 1px solid var(--tgx-line);
  padding: 24px;
  border-radius: 4px;
  min-width: 0;
}

.space-sample {
  display: flex;
  align-items: end;
  gap: 6px;
  height: 52px;
  margin: 18px 0;
}

.example-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.example-card {
  text-decoration: none;
  padding: 30px;
  border-radius: 4px;
  border: 1px solid var(--tgx-line);
  color: var(--tgx-text);
}

.institutional-card {
  background: var(--tgx-subtle);
}

.dashboard-card {
  background: var(--tgx-surface);
}

.page-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 35px 4.5%;
  font-size: 10px;
  color: var(--tgx-muted);
  margin-top: 45px;
}

.anchor-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  border-bottom: 1px solid var(--tgx-line);
  padding: 20px 0;
  margin-top: 10px;
  font-size: 12px;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

[class~='cds--btn'] {
  font-family: inherit;
  font-size: 12px;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  text-decoration: none;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px 20px;
}

.field {
  min-width: 0;
}

.field-wide {
  grid-column: 1 / -1;
}

[class~='cds--label'] {
  color: var(--tgx-text);
  font-family: inherit;
  font-size: 12px;
}

[class~='cds--text-input'] {
  font-family: inherit;
  font-size: 13px;
  width: 100%;
}

[class~='cds--select-input'] {
  font-family: inherit;
  font-size: 13px;
  width: 100%;
}

.field-help {
  font-size: 11px;
  color: var(--tgx-muted);
  margin-top: 8px;
}

[aria-invalid='true'] {
  outline: 2px solid var(--tgx-error);
  outline-offset: -2px;
}

.choice-group {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}

.form-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 32px;
}

.form-result {
  font-size: 12px;
  color: var(--tgx-success);
}

[data-form-result] {
  font-size: 12px;
  color: var(--tgx-success);
}

.state-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.message {
  padding: 22px;
  border-left: 3px solid;
  border-radius: 3px;
}

.success {
  color: var(--tgx-success);
  background: var(--tgx-success-bg);
}

.warning {
  color: var(--tgx-warning);
  background: var(--tgx-warning-bg);
}

.error {
  color: var(--tgx-error);
  background: var(--tgx-error-bg);
}

.info {
  color: var(--tgx-info);
  background: var(--tgx-info-bg);
}

.state-panels {
  margin-top: 20px;
}

.empty-state {
  padding: 25px;
  text-align: center;
  color: var(--tgx-muted);
}

.tag {
  display: inline-flex;
  padding: 4px 9px;
  font-size: 10px;
  font-weight: 500;
  border-radius: 3px;
  white-space: nowrap;
  line-height: 1.5;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.loading-line {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 20px 0;
}

.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid var(--tgx-line);
  border-radius: 50%;
  border-top-color: var(--tgx-accent);
  animation: spin 1s linear infinite;
}

.dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.icon-button {
  border: 0;
  background: transparent;
  color: var(--tgx-text);
  font-size: 25px;
  min-width: 40px;
  min-height: 40px;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  padding: 0;
  max-width: calc(100% - 48px);
}

.dashboard-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 26px 0;
}

.table-section {
  border: 1px solid var(--tgx-line);
  background: var(--tgx-surface);
  padding-bottom: 0;
  border-radius: 4px;
}

.table-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.table-toolbar {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 18px;
  padding: 0 24px 24px;
}

.table-scroll {
  overflow-x: auto;
}

[class~='cds--data-table'] {
  min-width: 800px;
  color: var(--tgx-text);
}

.strong {
  font-weight: 600;
}

.row-title {
  display: block;
  font-weight: 600;
}

.row-subtitle {
  display: block;
  font-size: 9px;
  color: var(--tgx-muted);
  margin-top: 5px;
}

.table-action {
  border: 0;
  background: transparent;
  color: var(--tgx-accent);
  font-size: 11px;
  padding: 10px 0;
  white-space: nowrap;
  min-height: 40px;
}

.table-result {
  font-size: 10px;
  padding: 15px 24px;
  color: var(--tgx-muted);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 20px;
  margin-top: 24px;
}

.payout-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 12px;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid var(--tgx-line);
  font-size: 11px;
}

.timeline {
  padding-left: 20px;
  margin: 24px 0 0;
  font-size: 12px;
}

.detail-list {
  margin: 24px 0;
}

.rules-grid {
  display: grid;
  grid-template-columns: 1.65fr 1fr;
  gap: 24px;
  align-items: start;
}

.rule-summary {
  padding: 28px;
  background: var(--tgx-subtle);
  border: 1px solid var(--tgx-line);
}

.summary-percent {
  font-size: 80px;
  letter-spacing: -0.07em;
  line-height: 1.2;
  margin-top: 30px;
}

.prose {
  max-width: 850px;
}

.site-header {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 24px 6%;
  max-width: 1600px;
  margin: auto;
}

.site-hero {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 60px;
  padding: 80px 6%;
  background: var(--tgx-deep);
  color: #fff;
  align-items: center;
}

.flow-visual {
  display: grid;
  justify-items: center;
  padding: 20px 10px;
}

.flow-node {
  border: 1px solid #3e6972;
  background: #0a333d;
  padding: 18px 24px;
  border-radius: 5px;
  min-width: 180px;
}

.flow-connector {
  height: 35px;
  width: 1px;
  background: var(--tgx-petrol);
}

.flow-center {
  border-radius: 50%;
  width: 155px;
  height: 155px;
  border: 1px solid #3e6972;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 10px;
}

.flow-destinations {
  display: flex;
  gap: 16px;
}

.site-section {
  padding: 70px 6%;
}

.site-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  margin-bottom: 40px;
}

.site-dark {
  background: var(--tgx-deep);
  color: white;
}

.site-contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  padding: 25px 6%;
  font-size: 11px;
  max-width: 1600px;
  margin: auto;
  border-top: 1px solid var(--tgx-line);
}

button:disabled {
  cursor: not-allowed;
}

a:hover {
  text-decoration-thickness: 2px;
}

button:focus-visible {
  outline: 3px solid var(--cds-focus);
  outline-offset: 4px;
}

a:focus-visible {
  outline: 3px solid var(--cds-focus);
  outline-offset: 4px;
}

summary:focus-visible {
  outline: 3px solid var(--cds-focus);
  outline-offset: 4px;
}

input:focus-visible {
  outline: 3px solid var(--cds-focus);
  outline-offset: 4px;
}

select:focus-visible {
  outline: 3px solid var(--cds-focus);
  outline-offset: 4px;
}

textarea:focus-visible {
  outline: 3px solid var(--cds-focus);
  outline-offset: 4px;
}

.sidebar-caption span {
  float: right;
  letter-spacing: 0;
}

.sidebar nav {
  display: grid;
  gap: 5px;
}

.sidebar-note p {
  color: var(--tgx-muted);
  margin-top: 12px;
  line-height: 1.8;
}

.breadcrumb span {
  margin: 0 12px;
  color: var(--tgx-muted);
}

.theme-control select {
  appearance: auto;
  border: 1px solid var(--tgx-line);
  border-radius: 4px;
  background: var(--tgx-surface);
  color: var(--tgx-text);
  padding: 8px 12px;
  min-height: 40px;
  font-size: 11px;
}

.foundation-hero h2 {
  font-size: clamp(29px, 3vw, 44px);
  letter-spacing: -0.05em;
}

.foundation-hero em {
  color: var(--tgx-cyan);
  font-style: normal;
}

.site-hero em {
  color: var(--tgx-cyan);
  font-style: normal;
}

.brand-art img {
  width: 120px;
  height: 120px;
  z-index: 1;
}

.principles article {
  padding: 30px 22px;
  border-bottom: 1px solid var(--tgx-line);
}

.principles span {
  font-size: 9px;
  color: var(--tgx-muted);
  letter-spacing: 0.09em;
}

.principles h2 {
  font-size: 16px;
  margin: 12px 0;
}

.principles h3 {
  font-size: 16px;
  margin: 12px 0;
}

.principles p {
  font-size: 12px;
  color: var(--tgx-muted);
}

.section-heading h2 {
  font-size: 25px;
}

.section-heading p {
  color: var(--tgx-muted);
  font-size: 12px;
  margin-top: 9px;
}

.swatches h3 {
  font-size: 12px;
  margin: 12px 0 4px;
}

.swatches code {
  font-size: 10px;
  color: var(--tgx-muted);
}

.type-large span {
  display: block;
  font-size: 11px;
  letter-spacing: 0;
  margin-top: 22px;
}

.type-scale h3 {
  font-size: 28px;
  font-weight: 500;
}

.space-sample i {
  background: var(--tgx-petrol);
  width: 8px;
  height: 8px;
}

.example-card h3 {
  font-size: 27px;
  margin: 28px 0 14px;
  font-weight: 500;
}

.example-card p {
  font-size: 12px;
  color: var(--tgx-muted);
}

.page-footer b {
  font-weight: 400;
  margin-left: 8px;
}

.button-row + p {
  margin-top: 22px;
}

textarea[class~='cds--text-input'] {
  padding-top: 10px;
  min-height: 90px;
}

.choice-group legend {
  padding: 0;
  margin-bottom: 12px;
  font-size: 12px;
  font-weight: 500;
}

.choice-group label {
  display: flex;
  gap: 9px;
  align-items: center;
  font-size: 12px;
  margin-bottom: 12px;
}

input[type='checkbox'] {
  accent-color: var(--tgx-petrol);
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

input[type='radio'] {
  accent-color: var(--tgx-petrol);
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.message h3 {
  font-size: 15px;
}

.message p {
  margin-top: 9px;
  font-size: 12px;
}

.empty-state > span {
  display: block;
  font-size: 30px;
}

.empty-state h3 {
  margin: 10px 0;
}

.metrics article {
  background: var(--tgx-surface);
  border: 1px solid var(--tgx-line);
  border-radius: 4px;
  padding: 24px;
  border-top: 2px solid var(--tgx-petrol);
}

.metrics strong {
  display: block;
  font-size: clamp(20px, 2.3vw, 32px);
  margin: 20px 0 8px;
  font-weight: 500;
  letter-spacing: -0.055em;
  font-variant-numeric: tabular-nums;
}

.metrics p {
  font-size: 11px;
  color: var(--tgx-muted);
}

.table-heading h2 {
  font-size: 20px;
}

.table-heading p {
  margin-top: 7px;
}

.table-toolbar label {
  font-size: 11px;
  display: block;
  margin-bottom: 8px;
}

[class~='cds--data-table'] th {
  font-size: 10px;
  background: var(--tgx-subtle);
  color: var(--tgx-text);
}

[class~='cds--data-table'] td {
  font-size: 11px;
  padding-block: 19px;
  background: var(--tgx-surface);
  border-bottom-color: var(--tgx-line);
}

.payout-row b {
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.timeline li {
  padding: 0 0 20px 8px;
}

.timeline b {
  display: block;
  font-weight: 500;
}

.timeline span {
  display: block;
  color: var(--tgx-muted);
  font-size: 11px;
  margin-top: 6px;
}

.detail-list > div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0;
  border-bottom: 1px solid var(--tgx-line);
  font-size: 12px;
}

.detail-list dt {
  color: var(--tgx-muted);
}

.detail-list dd {
  margin: 0;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.rule-editor > h2 {
  margin: 12px 0 8px;
}

.rule-summary h2 {
  margin-top: 22px;
  font-size: 23px;
  overflow-wrap: anywhere;
}

.summary-percent small {
  font-size: 28px;
  margin-left: 5px;
}

.rule-summary dd {
  text-align: left;
  margin-top: 6px;
}

.prose p {
  max-width: 720px;
}

.site-header nav {
  display: flex;
  gap: 26px;
  margin-left: auto;
  font-size: 12px;
}

.institutional main {
  max-width: 1600px;
  padding: 0;
}

.site-hero h1 {
  font-size: clamp(36px, 4.7vw, 66px);
  line-height: 1.08;
  letter-spacing: -0.065em;
}

.flow-node span {
  color: var(--tgx-light);
  display: block;
  font-size: 8px;
  letter-spacing: 0.1em;
}

.flow-node b {
  display: block;
  font-size: 13px;
  font-weight: 500;
  margin-top: 8px;
}

.flow-center span {
  font-size: 9px;
  color: var(--tgx-light);
}

.site-intro h2 {
  font-size: clamp(30px, 3.2vw, 44px);
}

.site-dark h2 {
  font-size: clamp(30px, 3.2vw, 44px);
}

.site-contact h2 {
  font-size: clamp(30px, 3.2vw, 44px);
}

.site-intro p {
  max-width: 480px;
  color: var(--tgx-muted);
}

.sidebar nav a {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 13px 12px;
  text-decoration: none;
  color: var(--tgx-muted);
  font-size: 12px;
  border-radius: 3px;
  border-left: 2px solid transparent;
}

.principles article + article {
  border-left: 1px solid var(--tgx-line);
}

.panel h3 + p {
  margin-top: 14px;
}

.prose p + p {
  margin-top: 18px;
}

.site-header nav a {
  text-decoration: none;
  color: var(--tgx-text);
}

[tabindex]:focus-visible {
  outline: 3px solid var(--cds-focus);
  outline-offset: 4px;
}

.skip:focus {
  top: 12px;
  left: 12px;
  width: auto;
  height: auto;
  z-index: 100;
  background: var(--tgx-surface);
  padding: 12px;
}

[data-theme='dark'] .logo-light {
  display: none;
}

[data-theme='dark'] .logo-dark {
  display: block;
}

.page-heading .eyebrow {
  color: var(--tgx-muted);
  margin-bottom: 14px;
}

.foundation-hero .eyebrow {
  color: var(--tgx-light);
  margin-bottom: 22px;
}

.foundation-hero [class~='cds--btn'] {
  background: var(--tgx-cyan);
  color: var(--tgx-deep);
  border-color: transparent;
}

.site-dark [class~='cds--btn'] {
  background: var(--tgx-cyan);
  color: var(--tgx-deep);
  border-color: transparent;
}

.example-card:hover {
  border-color: var(--tgx-accent);
}

[aria-invalid='true'] + .field-help {
  color: var(--tgx-error);
}

.tag.neutral {
  background: var(--tgx-subtle);
  color: var(--tgx-muted);
}

.toast:not(:empty) {
  padding: 16px 24px;
  color: var(--tgx-text);
  background: var(--tgx-surface);
  border: 1px solid var(--tgx-line);
  box-shadow: 0 8px 28px #0002;
  z-index: 50;
}

.metrics .eyebrow {
  font-size: 9px;
  color: var(--tgx-muted);
}

.table-section > .table-heading {
  padding: 24px;
}

[class~='cds--data-table'] .numeric {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.payout-row + .muted {
  margin-top: 18px;
}

.rule-editor > .muted {
  margin-bottom: 30px;
}

.site-hero .eyebrow {
  color: var(--tgx-light);
  margin-bottom: 30px;
}

.site-hero .button-row {
  margin: 30px 0 0;
}

.site-hero [class~='cds--btn--primary'] {
  background: var(--tgx-cyan);
  color: var(--tgx-deep);
}

.site-hero [class~='cds--btn--tertiary'] {
  color: var(--tgx-light);
  border-color: var(--tgx-light);
}

.site-hero .hero-small {
  font-size: 10px;
  margin-bottom: 0;
}

.flow-destinations .flow-node {
  min-width: 0;
  padding: 15px;
}

.site-section > .eyebrow {
  color: var(--tgx-accent);
  margin-bottom: 26px;
}

.site-dark > .eyebrow {
  color: var(--tgx-light);
}

.site-contact .eyebrow {
  margin-bottom: 24px;
  color: var(--tgx-accent);
}

.site-contact [class~='cds--btn'] {
  margin: 20px 0;
}

.foundation-hero p:not(.eyebrow) {
  color: var(--tgx-soft);
  margin: 20px 0 26px;
  max-width: 430px;
  font-size: 13px;
}

.principles article:first-child {
  padding-left: 0;
}

.principles article:last-child {
  padding-right: 0;
}

.panel > p:not(.eyebrow) {
  color: var(--tgx-muted);
  font-size: 12px;
}

.space-sample i:nth-child(2) {
  width: 16px;
  height: 16px;
}

.space-sample i:nth-child(3) {
  width: 24px;
  height: 24px;
}

.space-sample i:nth-child(4) {
  width: 32px;
  height: 32px;
}

.example-card > span:last-child {
  display: block;
  margin-top: 28px;
  font-size: 12px;
}

[class~='cds--btn'] span[aria-hidden] {
  margin-left: auto;
  font-size: 18px;
}

[class~='cds--data-table'] td:first-child {
  min-width: 160px;
}

.rule-summary > p:not(.eyebrow) {
  color: var(--tgx-muted);
  font-size: 11px;
}

.rule-summary .detail-list > div {
  display: block;
  font-size: 11px;
}

.site-hero p:not(.eyebrow) {
  color: var(--tgx-soft);
  max-width: 530px;
  margin: 28px 0;
}

.site-dark > p:not(.eyebrow) {
  max-width: 600px;
  margin: 24px 0 30px;
  color: var(--tgx-soft);
}

.sidebar nav a:hover {
  background: var(--tgx-subtle);
  color: var(--tgx-text);
}

.sidebar nav a[aria-current] {
  background: var(--tgx-subtle);
  border-left-color: var(--tgx-petrol);
  color: var(--tgx-text);
  font-weight: 600;
}

.foundation-hero [class~='cds--btn']:hover {
  background: var(--tgx-light);
}

.site-dark [class~='cds--btn']:hover {
  background: var(--tgx-light);
}

.site-hero [class~='cds--btn--primary']:hover {
  background: var(--tgx-light);
}

.site-hero [class~='cds--btn--tertiary']:hover {
  background: #12434c;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (width >= 1600px) {
  main {
    padding-top: 56px;
  }

  .foundation-hero {
    padding: 60px;
  }
}

@media (width <= 1200px) {
  .sidebar {
    width: 220px;
    padding-inline: 14px;
  }

  .workspace {
    margin-left: 220px;
  }

  .foundation-hero {
    padding: 32px 25px;
    grid-template-columns: 1.6fr 1fr;
  }

  .orbit-one {
    width: 160px;
    height: 160px;
  }

  .orbit-two {
    width: 220px;
    height: 220px;
  }

  .coordinate-three {
    display: none;
  }

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

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


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

  .site-hero {
    gap: 32px;
    padding-block: 60px;
  }

  .brand-art img {
    width: 90px;
    height: 90px;
  }

  .metrics article {
    padding: 18px;
  }

  .metrics strong {
    font-size: 23px;
  }
}

@media (width <= 800px) {
  main {
    padding: 30px 5% 0;
  }

  .sidebar {
    position: static;
    width: 100%;
    padding: 20px 5%;
    border-right: 0;
    border-bottom: 1px solid var(--tgx-line);
  }

  .sidebar-caption {
    display: none;
  }

  .sidebar-note {
    display: none;
  }

  .nav-number {
    display: none;
  }

  .workspace {
    margin-left: 0;
  }

  .topbar {
    min-height: 58px;
    padding-inline: 5%;
  }

  .breadcrumb {
    margin-right: auto;
  }

  .mobile-menu {
    display: block;
    padding: 6px 12px;
    margin-right: 14px;
    min-height: 40px;
    border: 1px solid var(--tgx-line);
    background: var(--tgx-surface);
    color: var(--tgx-text);
    font-size: 11px;
  }

  .foundation-hero {
    grid-template-columns: 1fr;
    padding: 30px;
  }

  .brand-art {
    display: none;
  }

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

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

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

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

  .type-specimen {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .type-large {
    font-size: 80px;
  }

  .page-footer {
    flex-wrap: wrap;
    padding-inline: 5%;
  }

  .metrics {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .dashboard-intro {
    align-items: start;
    flex-direction: column;
  }

  .site-header {
    flex-wrap: wrap;
    padding-inline: 5%;
    gap: 14px;
  }

  .site-hero {
    grid-template-columns: 1fr;
    gap: 25px;
    padding: 48px 6%;
  }

  .flow-visual {
    padding-top: 20px;
  }

  .site-intro {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .site-contact {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .site-section {
    padding: 48px 6%;
  }

  .sidebar nav {
    display: flex;
    overflow-x: auto;
    margin-top: 18px;
  }

  .foundation-hero h2 {
    font-size: 36px;
  }

  .principles article {
    padding: 24px 0;
  }

  .metrics strong {
    font-size: 28px;
    margin-top: 12px;
  }

  .site-header nav {
    order: 3;
    width: 100%;
    margin: 8px 0 0;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 11px;
  }

  .site-hero h1 {
    font-size: 43px;
  }

  .sidebar nav a {
    flex-shrink: 0;
    padding: 10px;
    border-left: 0;
  }

  .principles article + article {
    border-left: 0;
  }

  .sidebar .brand-link {
    margin-left: 0;
  }

  .site-header .theme-control {
    margin-left: auto;
  }

  .principles article:first-child {
    padding: 24px 0;
  }

  .sidebar nav a[aria-current] {
    border-bottom: 2px solid var(--tgx-petrol);
  }

  .js-ready .sidebar nav:not(.is-open) {
    display: none;
  }
}

@media (width <= 480px) {
  .foundation-hero {
    padding: 26px 22px;
  }

  .hero-meta {
    gap: 16px;
    font-size: 8px;
  }

  .form-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

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

  .panel {
    padding: 20px;
  }

  .table-toolbar {
    grid-template-columns: 1fr;
    padding-inline: 18px;
  }

  .table-heading {
    align-items: start;
    flex-direction: column;
  }

  .payout-row {
    grid-template-columns: 1fr auto;
  }

  .semantic-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .flow-destinations {
    gap: 8px;
  }

  .site-footer {
    flex-direction: column;
    gap: 12px;
  }

  .foundation-hero h2 {
    font-size: 30px;
  }

  .site-hero h1 {
    font-size: 36px;
  }

  .flow-destinations b {
    font-size: 11px;
  }

  .detail-list > div {
    flex-direction: column;
    gap: 5px;
  }

  .detail-list dd {
    text-align: left;
  }

  .table-section > .table-heading {
    padding: 18px;
  }

  .payout-row .tag {
    justify-self: start;
  }

  .flow-destinations .flow-node {
    padding: 12px;
  }

  .page-footer > span:nth-child(2) {
    width: 100%;
    order: 3;
  }
}

@media (prefers-reduced-motion: reduce) {
  .spinner {
    animation: none;
  }
}

@media (forced-colors: active) {
  .tag {
    border: 1px solid CanvasText;
  }

  .message {
    border: 1px solid CanvasText;
  }

  [class~='cds--btn'] {
    border: 1px solid CanvasText;
  }
}
