:root {
  --hedron-teal: #14b8a6;
  --hedron-cyan: #67e8f9;
  --hedron-ink: #102a43;
  --hedron-muted: #526579;
  --hedron-surface: #f6f9fc;
  --hedron-border: rgba(25, 55, 85, 0.12);
  --md-primary-fg-color: #123047;
  --md-primary-fg-color--light: #1d4962;
  --md-primary-fg-color--dark: #0b2234;
  --md-accent-fg-color: #0f9488;
}

[data-md-color-scheme="slate"] {
  --hedron-ink: #edf8ff;
  --hedron-muted: #a9bfd0;
  --hedron-surface: rgba(20, 45, 62, 0.46);
  --hedron-border: rgba(151, 201, 220, 0.16);
  --md-default-bg-color: #0b1620;
  --md-default-fg-color: #e6f1f7;
  --md-code-bg-color: #101f2b;
  --md-accent-fg-color: #5eead4;
}

body {
  letter-spacing: -0.006em;
}

.md-header {
  background: rgba(13, 40, 58, 0.94);
  backdrop-filter: blur(16px);
}

.md-tabs {
  background: #0d283a;
}

.md-header__button.md-logo img,
.md-header__button.md-logo svg {
  height: 1.7rem;
  width: 1.7rem;
}

.md-typeset h1,
.md-typeset h2,
.md-typeset h3 {
  color: var(--hedron-ink);
  font-weight: 750;
  letter-spacing: -0.035em;
}

.md-typeset h1 {
  font-size: clamp(2rem, 5vw, 3.15rem);
}

.md-typeset h2 {
  margin-top: 2.4em;
}

.md-typeset code {
  border-radius: 0.35rem;
}

.md-typeset .highlight {
  border: 1px solid var(--hedron-border);
  border-radius: 0.7rem;
  box-shadow: 0 18px 45px rgba(9, 31, 45, 0.08);
  overflow: hidden;
}

.md-typeset .admonition,
.md-typeset details {
  border-radius: 0.65rem;
  box-shadow: none;
}

.md-footer {
  background: #081923;
}

.hedron-hero {
  margin: 0 -0.6rem 3.5rem;
  padding: 3.3rem 0.6rem 1.2rem;
  position: relative;
}

.hedron-hero::before {
  background:
    radial-gradient(circle at 15% 20%, rgba(103, 232, 249, 0.17), transparent 29rem),
    radial-gradient(circle at 88% 12%, rgba(20, 184, 166, 0.14), transparent 27rem);
  content: "";
  inset: -3rem -8vw -2rem;
  pointer-events: none;
  position: absolute;
  z-index: -1;
}

.hedron-eyebrow {
  align-items: center;
  color: var(--md-accent-fg-color);
  display: flex;
  font-size: 0.72rem;
  font-weight: 750;
  gap: 0.55rem;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.hedron-eyebrow::before {
  background: var(--hedron-teal);
  border-radius: 99px;
  content: "";
  height: 0.45rem;
  width: 0.45rem;
}

.hedron-hero h1 {
  font-size: clamp(2.6rem, 7vw, 5.25rem);
  letter-spacing: -0.06em;
  line-height: 0.98;
  margin: 0;
  max-width: 15ch;
}

.hedron-gradient-text {
  background: linear-gradient(110deg, #0f9488 15%, #1787a8 80%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

[data-md-color-scheme="slate"] .hedron-gradient-text {
  background-image: linear-gradient(110deg, var(--hedron-cyan), #5eead4);
}

.hedron-lede {
  color: var(--hedron-muted);
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  line-height: 1.65;
  margin: 1.35rem 0 1.65rem;
  max-width: 47rem;
}

.hedron-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hedron-actions p {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 0;
}

.md-typeset .hedron-actions .md-button {
  border-radius: 0.5rem;
  padding: 0.65em 1.25em;
}

.md-typeset .hedron-actions .md-button--primary {
  background: #0f9488;
  border-color: #0f9488;
  box-shadow: 0 10px 30px rgba(15, 148, 136, 0.22);
}

.hedron-signal-row {
  color: var(--hedron-muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 0.76rem;
  gap: 0.6rem 1.2rem;
  margin-top: 1.7rem;
}

.hedron-signal-row span::before {
  color: var(--hedron-teal);
  content: "✓";
  font-weight: 800;
  margin-right: 0.38rem;
}

.hedron-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 1.4rem 0 3.2rem;
}

.hedron-card {
  background: var(--hedron-surface);
  border: 1px solid var(--hedron-border);
  border-radius: 0.8rem;
  color: var(--hedron-muted);
  min-height: 10rem;
  padding: 1.25rem;
  transition: border-color 150ms ease, transform 150ms ease, box-shadow 150ms ease;
}

a.hedron-card:hover {
  border-color: rgba(20, 184, 166, 0.55);
  box-shadow: 0 14px 35px rgba(9, 31, 45, 0.08);
  transform: translateY(-2px);
}

.hedron-card strong {
  color: var(--hedron-ink);
  display: block;
  font-size: 1rem;
  margin: 0.55rem 0 0.35rem;
}

.hedron-card p {
  font-size: 0.82rem;
  margin: 0;
}

.hedron-card__icon {
  color: var(--md-accent-fg-color);
  display: inline-flex;
  font-size: 1.2rem;
}

.hedron-path {
  counter-reset: path-step;
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 1.4rem 0 3rem;
}

.hedron-path > a {
  border-top: 1px solid var(--hedron-border);
  color: var(--hedron-muted);
  counter-increment: path-step;
  padding: 1rem 0.5rem 0 0;
}

.hedron-path > a::before {
  color: var(--hedron-teal);
  content: "0" counter(path-step);
  display: block;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin-bottom: 0.45rem;
}

.hedron-path strong {
  color: var(--hedron-ink);
  display: block;
  margin-bottom: 0.25rem;
}

.hedron-availability {
  align-items: center;
  background: linear-gradient(115deg, rgba(20, 184, 166, 0.09), rgba(103, 232, 249, 0.07));
  border: 1px solid rgba(20, 184, 166, 0.22);
  border-radius: 0.8rem;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin: 2.5rem 0;
  padding: 1.2rem 1.4rem;
}

.hedron-availability p {
  margin: 0;
}

.hedron-availability code {
  white-space: nowrap;
}

@media screen and (max-width: 76.2344em) {
  .md-nav--primary .md-nav__title[for="__drawer"] {
    background: #0d283a;
  }
}

@media screen and (max-width: 50em) {
  .hedron-grid,
  .hedron-path {
    grid-template-columns: 1fr;
  }

  .hedron-card {
    min-height: 0;
  }

  .hedron-availability {
    align-items: flex-start;
    flex-direction: column;
  }
}

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

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

.hedron-demo {
  --demo-bg: #f5f7fa;
  --demo-panel: #ffffff;
  --demo-nav: #102a3a;
  --demo-text: #183144;
  --demo-muted: #6a7c89;
  --demo-line: #dde5ea;
  --demo-teal: #0d9488;
  background: var(--demo-bg);
  border: 1px solid var(--hedron-border);
  border-radius: 0.9rem;
  box-shadow: 0 24px 65px rgba(9, 31, 45, 0.14);
  color: var(--demo-text);
  font-size: 0.72rem;
  margin: 1.6rem 0 2.6rem;
  overflow: hidden;
}

[data-md-color-scheme="slate"] .hedron-demo {
  --demo-bg: #0d1922;
  --demo-panel: #13232e;
  --demo-nav: #08151d;
  --demo-text: #e8f2f6;
  --demo-muted: #9cb0bc;
  --demo-line: #29404d;
}

.hedron-demo button,
.hedron-demo input,
.hedron-demo select {
  font: inherit;
}

.hedron-demo__chrome {
  align-items: center;
  background: #e8edf1;
  border-bottom: 1px solid #d5dfe5;
  display: flex;
  gap: 0.35rem;
  height: 2.15rem;
  padding: 0 0.75rem;
}

[data-md-color-scheme="slate"] .hedron-demo__chrome {
  background: #101d26;
  border-bottom-color: #263a46;
}

.hedron-demo__chrome > span {
  background: #a9b7c0;
  border-radius: 50%;
  height: 0.45rem;
  width: 0.45rem;
}

.hedron-demo__chrome > span:first-child { background: #f4756b; }
.hedron-demo__chrome > span:nth-child(2) { background: #eab953; }
.hedron-demo__chrome > span:nth-child(3) { background: #53bd79; }

.hedron-demo__address {
  background: rgba(255, 255, 255, 0.65);
  border-radius: 0.35rem;
  color: #627581;
  font-size: 0.57rem;
  margin: 0 auto;
  padding: 0.28rem 1rem;
  text-align: center;
  width: min(25rem, 58%);
}

[data-md-color-scheme="slate"] .hedron-demo__address {
  background: rgba(255, 255, 255, 0.06);
  color: #8fa5b2;
}

.hedron-app-shell,
.hedron-explorer-shell {
  display: grid;
  grid-template-columns: 10.5rem minmax(0, 1fr);
  min-height: 34rem;
}

.hedron-app-nav,
.hedron-explorer-nav {
  background: var(--demo-nav);
  color: #afc0ca;
  display: flex;
  flex-direction: column;
  padding: 1rem 0.75rem;
}

.hedron-app-brand {
  align-items: center;
  color: #f5fbfd;
  display: flex;
  font-size: 0.78rem;
  font-weight: 750;
  gap: 0.5rem;
  margin: 0 0.4rem 1.5rem;
}

.hedron-app-brand img {
  height: 1.2rem;
  width: 1.2rem;
}

.hedron-app-nav nav {
  display: grid;
  gap: 0.2rem;
}

.hedron-app-nav nav a {
  align-items: center;
  border-radius: 0.38rem;
  color: #9fb2bd;
  display: flex;
  gap: 0.55rem;
  padding: 0.55rem 0.65rem;
}

.hedron-app-nav nav a:hover,
.hedron-app-nav nav a.is-active {
  background: rgba(94, 234, 212, 0.1);
  color: #eefbfb;
}

.hedron-app-nav nav a.is-active {
  box-shadow: inset 2px 0 #5eead4;
}

.hedron-app-user {
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  gap: 0.5rem;
  margin-top: auto;
  padding: 0.85rem 0.25rem 0;
}

.hedron-app-user > span {
  align-items: center;
  background: #226b72;
  border-radius: 50%;
  color: white;
  display: inline-flex;
  height: 1.65rem;
  justify-content: center;
  width: 1.65rem;
}

.hedron-app-user strong,
.hedron-app-user small {
  display: block;
  line-height: 1.35;
}

.hedron-app-user strong { color: #e8f2f6; }
.hedron-app-user small { color: #7f96a3; font-size: 0.52rem; }

.hedron-app-main,
.hedron-explorer-main {
  background: var(--demo-bg);
  padding: 1.65rem;
}

.hedron-app-heading,
.hedron-explorer-heading {
  align-items: flex-start;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
}

.hedron-app-kicker {
  color: var(--demo-teal);
  display: block;
  font-size: 0.52rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  margin-bottom: 0.2rem;
  text-transform: uppercase;
}

.hedron-demo h2,
.hedron-demo h3 {
  color: var(--demo-text);
  letter-spacing: -0.03em;
  margin: 0;
}

.hedron-demo h2 { font-size: 1.35rem; }
.hedron-demo h3 { font-size: 0.85rem; }

.hedron-app-heading p,
.hedron-app-toolbar p,
.hedron-preview-canvas p,
.hedron-explorer-panel > p {
  color: var(--demo-muted);
  margin: 0.18rem 0 0;
}

.hedron-ui-button {
  background: var(--demo-panel);
  border: 1px solid var(--demo-line);
  border-radius: 0.38rem;
  color: var(--demo-text);
  cursor: pointer;
  font-weight: 700;
  padding: 0.48rem 0.75rem;
}

.hedron-ui-button:hover { border-color: var(--demo-teal); }
.hedron-ui-button--primary { background: var(--demo-teal); border-color: var(--demo-teal); color: white; }

.hedron-app-metrics {
  display: grid;
  gap: 0.65rem;
  grid-template-columns: repeat(3, 1fr);
  margin: 1.25rem 0;
}

.hedron-app-metrics > div {
  background: var(--demo-panel);
  border: 1px solid var(--demo-line);
  border-radius: 0.5rem;
  display: grid;
  padding: 0.8rem;
}

.hedron-app-metrics span { color: var(--demo-muted); font-size: 0.58rem; }
.hedron-app-metrics strong { color: var(--demo-text); font-size: 1.2rem; line-height: 1.4; }
.hedron-app-metrics small { color: var(--demo-muted); font-size: 0.52rem; }

.hedron-app-panel {
  background: var(--demo-panel);
  border: 1px solid var(--demo-line);
  border-radius: 0.55rem;
  overflow: hidden;
}

.hedron-app-toolbar {
  align-items: center;
  border-bottom: 1px solid var(--demo-line);
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  padding: 0.85rem 1rem;
}

.hedron-demo-search {
  align-items: center;
  background: var(--demo-bg);
  border: 1px solid var(--demo-line);
  border-radius: 0.35rem;
  color: var(--demo-muted);
  display: flex;
  gap: 0.35rem;
  padding: 0.35rem 0.5rem;
}

.hedron-demo-search:focus-within { border-color: var(--demo-teal); box-shadow: 0 0 0 2px rgba(13, 148, 136, 0.14); }
.hedron-demo-search input { background: transparent; border: 0; color: var(--demo-text); outline: 0; width: 7rem; }

.hedron-demo-table-wrap { overflow-x: auto; }
.hedron-demo table { border-collapse: collapse; display: table; font-size: 0.61rem; margin: 0; width: 100%; }
.hedron-demo th { background: transparent; color: var(--demo-muted); font-size: 0.5rem; letter-spacing: 0.06em; text-transform: uppercase; }
.hedron-demo th,
.hedron-demo td { border-bottom: 1px solid var(--demo-line); padding: 0.65rem 0.8rem; text-align: left; vertical-align: middle; }
.hedron-demo tbody tr:last-child td { border-bottom: 0; }
.hedron-demo td:first-child { align-items: center; display: flex; gap: 0.5rem; }

.hedron-avatar {
  align-items: center;
  background: #7656c8;
  border-radius: 50%;
  color: white;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 0.5rem;
  font-weight: 800;
  height: 1.55rem;
  justify-content: center;
  width: 1.55rem;
}

.hedron-avatar--blue { background: #3376b8; }
.hedron-avatar--amber { background: #b9782f; }
.hedron-avatar--teal { background: #178b82; }

.hedron-role,
.hedron-status,
.hedron-stable-pill,
.hedron-method,
.hedron-ok {
  background: rgba(13, 148, 136, 0.12);
  border-radius: 99px;
  color: #08766e;
  display: inline-block;
  font-size: 0.5rem;
  font-weight: 750;
  padding: 0.18rem 0.4rem;
}

[data-md-color-scheme="slate"] .hedron-role,
[data-md-color-scheme="slate"] .hedron-status,
[data-md-color-scheme="slate"] .hedron-stable-pill,
[data-md-color-scheme="slate"] .hedron-ok { color: #62dfd3; }

.hedron-role--muted { background: rgba(106, 124, 137, 0.12); color: var(--demo-muted); }
.hedron-status::before { background: #13a36f; border-radius: 50%; content: ""; display: inline-block; height: 0.3rem; margin-right: 0.25rem; width: 0.3rem; }
.hedron-demo-empty { color: var(--demo-muted); padding: 1rem; text-align: center; }

.hedron-demo-dialog {
  background: var(--demo-panel);
  border: 1px solid var(--demo-line);
  border-radius: 0.65rem;
  box-shadow: 0 24px 70px rgba(4, 20, 30, 0.3);
  color: var(--demo-text);
  max-width: min(24rem, calc(100vw - 2rem));
  padding: 1.2rem;
  width: 100%;
}

.hedron-demo-dialog::backdrop { background: rgba(4, 20, 30, 0.7); backdrop-filter: blur(3px); }
.hedron-demo-dialog form { display: grid; gap: 0.75rem; }
.hedron-dialog-heading { align-items: flex-start; display: flex; justify-content: space-between; }
.hedron-dialog-close { background: transparent; border: 0; color: var(--demo-muted); cursor: pointer; font-size: 1.2rem; }
.hedron-demo-dialog label { color: var(--demo-text); display: grid; font-size: 0.6rem; font-weight: 700; gap: 0.28rem; }
.hedron-demo-dialog input,
.hedron-demo-dialog select { background: var(--demo-bg); border: 1px solid var(--demo-line); border-radius: 0.35rem; color: var(--demo-text); padding: 0.48rem; }
.hedron-demo-dialog input:focus,
.hedron-demo-dialog select:focus { border-color: var(--demo-teal); outline: 2px solid rgba(13, 148, 136, 0.15); }
.hedron-dialog-actions { display: flex; gap: 0.5rem; justify-content: flex-end; margin-top: 0.35rem; }

.hedron-explorer-shell { grid-template-columns: 11rem minmax(0, 1fr); min-height: 28rem; }
.hedron-explorer-nav small { color: #69818f; font-size: 0.48rem; font-weight: 800; letter-spacing: 0.1em; margin: 0 0.4rem 0.4rem; }
.hedron-explorer-item {
  background: transparent;
  border: 0;
  border-radius: 0.35rem;
  color: #91a7b3;
  cursor: pointer;
  display: flex;
  font: inherit;
  justify-content: space-between;
  padding: 0.45rem 0.55rem;
  text-align: left;
  width: 100%;
}
.hedron-explorer-item:hover { color: #d7e6ee; }
.hedron-explorer-item:focus-visible {
  outline: 2px solid rgba(94, 234, 212, 0.55);
  outline-offset: 2px;
}
.hedron-explorer-item.is-selected { background: rgba(94, 234, 212, 0.1); color: white; }
.hedron-explorer-mobile-select { display: none; margin: 0 0.4rem 0.75rem; }
.hedron-explorer-mobile-select select {
  background: rgba(15, 35, 46, 0.9);
  border: 1px solid var(--demo-line);
  border-radius: 0.35rem;
  color: var(--demo-text);
  font: inherit;
  padding: 0.45rem 0.55rem;
  width: 100%;
}
.hedron-explorer-heading { border-bottom: 1px solid var(--demo-line); padding-bottom: 1rem; }
.hedron-demo-tabs { border-bottom: 1px solid var(--demo-line); display: flex; gap: 1rem; margin-top: 0.6rem; }
.hedron-demo-tabs button { background: transparent; border: 0; border-bottom: 2px solid transparent; color: var(--demo-muted); cursor: pointer; padding: 0.6rem 0.15rem 0.5rem; }
.hedron-demo-tabs button[aria-selected="true"] { border-bottom-color: var(--demo-teal); color: var(--demo-text); font-weight: 750; }
.hedron-explorer-panel { padding-top: 1rem; }

.hedron-preview-canvas {
  align-items: center;
  background-image: radial-gradient(var(--demo-line) 0.6px, transparent 0.6px);
  background-size: 10px 10px;
  border: 1px solid var(--demo-line);
  border-radius: 0.5rem;
  display: flex;
  justify-content: center;
  min-height: 10rem;
  padding: 1rem;
}

.hedron-preview-canvas article { align-items: center; background: var(--demo-panel); border: 1px solid var(--demo-line); border-radius: 0.5rem; box-shadow: 0 10px 30px rgba(4, 20, 30, 0.1); display: flex; gap: 0.65rem; padding: 0.8rem; width: min(19rem, 90%); }
.hedron-preview-canvas article > div { flex: 1; }
.hedron-preview-canvas p { font-size: 0.55rem; }
.hedron-preview-banner {
  background: rgba(51, 118, 184, 0.12);
  border: 1px solid rgba(51, 118, 184, 0.35);
  border-radius: 0.5rem;
  display: grid;
  gap: 0.25rem;
  padding: 0.85rem 1rem;
  width: min(22rem, 95%);
}
.hedron-preview-banner strong { color: var(--demo-text); font-size: 0.72rem; }
.hedron-preview-banner span { color: var(--demo-muted); font-size: 0.55rem; }
.hedron-preview-table {
  background: var(--demo-panel);
  border-collapse: collapse;
  border: 1px solid var(--demo-line);
  border-radius: 0.45rem;
  font-size: 0.62rem;
  overflow: hidden;
  width: min(20rem, 95%);
}
.hedron-preview-table th,
.hedron-preview-table td { border-bottom: 1px solid var(--demo-line); padding: 0.45rem 0.6rem; text-align: left; }
.hedron-preview-table th { color: var(--demo-muted); font-size: 0.5rem; font-weight: 700; }
.hedron-preview-table tr:last-child td { border-bottom: 0; }
.hedron-explorer-facts { display: grid; gap: 0.6rem; grid-template-columns: repeat(3, 1fr); margin-top: 0.75rem; }
.hedron-explorer-facts > div { background: var(--demo-panel); border: 1px solid var(--demo-line); border-radius: 0.4rem; display: grid; padding: 0.6rem; }
.hedron-explorer-facts span { color: var(--demo-muted); font-size: 0.5rem; }
.hedron-explorer-facts strong { color: var(--demo-text); font-size: 0.68rem; }
.hedron-explorer-facts strong.is-clean { color: var(--demo-teal); }
.hedron-request-line { align-items: center; background: var(--demo-panel); border: 1px solid var(--demo-line); border-radius: 0.45rem; display: flex; gap: 0.6rem; padding: 0.75rem; }
.hedron-method { background: rgba(51, 118, 184, 0.15); color: #3376b8; }
.hedron-ok { margin-left: auto; }
.hedron-explorer-panel pre { border: 1px solid var(--demo-line); border-radius: 0.45rem; margin-top: 0.65rem; }

@media screen and (max-width: 50em) {
  .hedron-app-shell,
  .hedron-explorer-shell { grid-template-columns: 1fr; }
  .hedron-app-nav { display: none; }
  .hedron-explorer-nav {
    border-bottom: 1px solid var(--demo-line);
    display: block;
    padding: 1rem 1rem 0.75rem;
  }
  .hedron-explorer-nav > small,
  .hedron-explorer-nav > .hedron-explorer-item { display: none; }
  .hedron-explorer-mobile-select { display: block; }
  .hedron-app-main,
  .hedron-explorer-main { padding: 1rem; }
  .hedron-app-metrics { grid-template-columns: 1fr; }
  .hedron-app-heading,
  .hedron-app-toolbar { align-items: stretch; flex-direction: column; }
  .hedron-demo-search input { width: 100%; }
  .hedron-explorer-facts { grid-template-columns: 1fr; }
  .hedron-demo__address { width: 72%; }
}
