:root {
  --paper: #fbfaf6;
  --surface: #ffffff;
  --surface-warm: #f4f0e7;
  --ink: #1f2a2e;
  --ink-soft: #5e6b68;
  --ink-muted: #87918d;
  --line: #ded8ca;
  --line-soft: #ece7da;
  --accent: #176b55;
  --accent-strong: #0f4f3f;
  --accent-soft: #e6f1ec;
  --amber: #b97924;
  --amber-soft: #f8eddc;
  --blue: #315f7a;
  --blue-soft: #e6edf1;
  --maxw: 1160px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  display: flex;
  flex-direction: column;
  font-family: "IBM Plex Sans", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.68;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.mono {
  font-family: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.serif { font-family: "Spectral", Georgia, serif; }

.topbar {
  background: rgba(255, 255, 255, .94);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
}

.topbar .wrap {
  align-items: center;
  display: flex;
  gap: 22px;
  justify-content: space-between;
  margin: 0 auto;
  max-width: var(--maxw);
  padding: 14px 28px;
  position: relative;
}

.brand {
  align-items: center;
  color: var(--ink);
  display: flex;
  min-width: max-content;
}

.brand-logo {
  display: block;
  height: 38px;
  width: auto;
}

.nav {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.nav a {
  color: var(--ink-soft);
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  padding: 10px 11px;
}

.nav a:hover {
  background: var(--surface-warm);
  border-color: var(--line);
  color: var(--accent);
  text-decoration: none;
}

.nav a.current {
  background: var(--accent-soft);
  border-color: rgba(23, 107, 85, .2);
  color: var(--accent);
}

.nav-toggle,
.nav-button {
  display: none;
}

.nav-button {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  cursor: pointer;
  height: 40px;
  justify-content: center;
  width: 42px;
}

.nav-button span {
  background: var(--ink);
  border-radius: 999px;
  display: block;
  height: 2px;
  position: relative;
  width: 18px;
}

.nav-button span::before,
.nav-button span::after {
  background: var(--ink);
  border-radius: 999px;
  content: "";
  height: 2px;
  left: 0;
  position: absolute;
  width: 18px;
}

.nav-button span::before { top: -6px; }
.nav-button span::after { top: 6px; }

main {
  flex: 1 0 auto;
}

.container {
  margin: 0 auto;
  max-width: var(--maxw);
  padding-left: 28px;
  padding-right: 28px;
  width: 100%;
}

.eyebrow {
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.btn {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--ink);
  display: inline-flex;
  font-size: 14px;
  font-weight: 600;
  gap: 9px;
  justify-content: center;
  min-height: 40px;
  padding: 8px 14px;
}

.btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  text-decoration: none;
}

.btn.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.btn.primary:hover {
  background: var(--accent-strong);
  border-color: var(--accent-strong);
  color: #fff;
}

.btn.disabled {
  color: var(--ink-muted);
  cursor: not-allowed;
  opacity: .72;
}

.hero { padding: 58px 0 42px; }

.hero-grid {
  align-items: center;
  display: grid;
  gap: 42px;
  grid-template-columns: minmax(0, 1.1fr) minmax(340px, .9fr);
}

.hero h1,
.doc-title {
  font-family: "Spectral", Georgia, serif;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.06;
  margin: 12px 0 18px;
  overflow-wrap: anywhere;
}

.hero h1 { font-size: clamp(42px, 6vw, 70px); max-width: 820px; }
.doc-title { font-size: clamp(36px, 5vw, 54px); max-width: 900px; }

.hero-copy,
.doc-subtitle {
  color: var(--ink-soft);
  font-family: "Spectral", Georgia, serif;
  font-size: 21px;
  line-height: 1.55;
  margin: 0 0 24px;
  max-width: 760px;
}

.release-note {
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
  border-radius: 0 6px 6px 0;
  color: var(--accent-strong);
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  margin: 0 0 20px;
  padding: 7px 10px;
}

.hero-actions,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
}

.section-actions {
  margin-top: 20px;
}

.service-map {
  background:
    linear-gradient(90deg, transparent 31px, rgba(31, 42, 46, .045) 32px),
    linear-gradient(transparent 31px, rgba(31, 42, 46, .045) 32px),
    var(--surface-warm);
  background-size: 32px 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow-x: hidden;
  padding: 22px;
}

.map-title {
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.network-diagram {
  align-items: stretch;
  display: grid;
  gap: 14px 6px;
  grid-template-areas:
    "manufacturer c1 hub c2 provider"
    "customer c3 hub c4 training";
  grid-template-columns: minmax(72px, 1fr) 20px minmax(86px, 1.05fr) 20px minmax(72px, 1fr);
  margin-top: 20px;
  min-width: 0;
}

.map-node {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 6px;
  box-shadow: 0 16px 34px rgba(46, 37, 22, .08);
  padding: 10px 10px;
  min-width: 0;
}

.map-node strong {
  display: block;
  font-family: "Spectral", Georgia, serif;
  font-size: 17px;
  line-height: 1.2;
}

.map-node span {
  color: var(--ink-soft);
  display: block;
  font-size: 12px;
  line-height: 1.45;
  margin-top: 4px;
}

.map-node.manufacturer { grid-area: manufacturer; }
.map-node.provider { border-left-color: var(--blue); grid-area: provider; }
.map-node.customer { border-left-color: var(--blue); grid-area: customer; }
.map-node.training { grid-area: training; }

.map-node.hub {
  align-content: center;
  align-self: center;
  background: var(--accent-strong);
  border-color: rgba(15, 79, 63, .5);
  border-left-color: var(--amber);
  color: #fff;
  display: grid;
  grid-area: hub;
  min-height: 108px;
  text-align: center;
}

.map-node.hub strong {
  font-size: 28px;
}

.map-node.hub span {
  color: rgba(255, 255, 255, .82);
}

.map-connector {
  align-self: center;
  color: var(--ink-muted);
  font-family: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 10px;
  line-height: 1.2;
  min-width: 0;
  position: relative;
  text-align: center;
  text-transform: uppercase;
}

.map-connector.c1 { grid-area: c1; }
.map-connector.c2 { grid-area: c2; }
.map-connector.c3 { grid-area: c3; }
.map-connector.c4 { grid-area: c4; }

.map-connector::before {
  border-top: 1px dashed rgba(31, 42, 46, .35);
  content: "";
  left: 0;
  position: absolute;
  right: 0;
  top: 50%;
}

.map-connector::after {
  border-bottom: 4px solid transparent;
  border-left: 6px solid rgba(31, 42, 46, .46);
  border-top: 4px solid transparent;
  content: "";
  position: absolute;
  right: -1px;
  top: calc(50% - 4px);
}

.map-connector.reverse::after {
  border-left: 0;
  border-right: 6px solid rgba(31, 42, 46, .46);
  left: -1px;
  right: auto;
}

.map-connector span {
  background: var(--surface-warm);
  display: inline-block;
  max-width: 42px;
  padding: 0 3px;
  position: relative;
  z-index: 1;
}

.band {
  border-top: 1px solid var(--line);
  padding: 42px 0;
}

.section-head {
  align-items: end;
  display: flex;
  gap: 28px;
  justify-content: space-between;
  margin-bottom: 24px;
}

.section-head h2,
.article h2,
.article h3,
.item h3,
.aside-panel h3 {
  font-family: "Spectral", Georgia, serif;
  font-weight: 600;
  letter-spacing: 0;
}

.section-head h2 {
  font-size: 34px;
  line-height: 1.15;
  margin: 4px 0 0;
}

.section-head p {
  color: var(--ink-soft);
  margin: 0;
  max-width: 540px;
}

.three-col,
.four-col,
.two-col,
.chapter-grid {
  display: grid;
  gap: 16px;
}

.three-col { grid-template-columns: repeat(3, 1fr); }
.four-col { grid-template-columns: repeat(4, 1fr); }
.two-col { grid-template-columns: repeat(2, 1fr); }
.chapter-grid { grid-template-columns: repeat(3, 1fr); margin-top: 16px; }

.item,
.institution-panel,
.paper-page,
.aside-panel,
.status-grid,
.notice-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.item { padding: 18px; }
.institution-panel { padding: 22px; }
.paper-page { min-width: 0; padding: 34px; }
.aside-panel { min-width: 0; padding: 18px; }

.item h3 {
  font-size: 22px;
  line-height: 1.2;
  margin: 0 0 8px;
}

.item p,
.aside-panel p,
.aside-panel li {
  color: var(--ink-soft);
  font-size: 14.5px;
  margin: 0;
}

.kicker-list { display: grid; gap: 12px; margin-top: 18px; }

.kicker-row {
  border-bottom: 1px dashed var(--line);
  display: grid;
  gap: 14px;
  grid-template-columns: 122px 1fr;
  padding: 9px 0;
}

.kicker-row:last-child { border-bottom: 0; }
.kicker-row .k { color: var(--ink-soft); font-size: 13px; }
.kicker-row .v { font-weight: 500; min-width: 0; overflow-wrap: anywhere; }

.doc-masthead { padding: 42px 0 30px; }
.crumb { color: var(--ink-soft); font-size: 13px; margin-bottom: 18px; }

.status-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: 1.25fr .85fr;
  margin-top: 26px;
  min-width: 0;
  padding: 22px;
}

.meta-row {
  border-bottom: 1px dashed var(--line-soft);
  display: flex;
  gap: 12px;
  padding: 6px 0;
}

.meta-row:last-child { border-bottom: 0; }
.meta-row .k { color: var(--ink-soft); flex: 0 0 128px; font-size: 13.5px; }
.meta-row .v { font-weight: 500; min-width: 0; overflow-wrap: anywhere; }

.badge {
  background: var(--accent-soft);
  border-radius: 4px;
  color: var(--accent-strong);
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  padding: 1px 8px;
}

.download-stack {
  align-items: stretch;
  display: flex;
  flex-direction: column;
  gap: 9px;
  min-width: 0;
}

.download-stack .btn {
  flex: 0 0 48px;
  height: 48px;
  min-height: 48px;
  padding-bottom: 0;
  padding-top: 0;
}

.small-note { color: var(--ink-soft); font-size: 12.5px; margin: 10px 0 0; }

.content-layout,
.whitepaper-layout {
  display: grid;
  gap: 36px;
  grid-template-columns: minmax(0, 1fr) 320px;
  padding-bottom: 72px;
}

.aside-panel {
  align-self: start;
  position: sticky;
  top: 94px;
}

.aside-panel h3 { font-size: 22px; line-height: 1.2; margin: 0 0 8px; }
.aside-panel ul { margin: 12px 0 0; padding-left: 18px; }

.article { min-width: 0; }
.article section { margin-bottom: 38px; }
.article h2 { font-size: 31px; line-height: 1.22; margin: 0 0 6px; }
.article h3 { font-size: 22px; line-height: 1.25; margin: 28px 0 6px; }
.article p { margin: 0 0 15px; }
.article .lede {
  color: var(--ink-soft);
  font-family: "Spectral", Georgia, serif;
  font-size: 19px;
}

.roadmap-block {
  border-bottom: 1px solid var(--line);
  padding-bottom: 34px;
}

.roadmap-block + .roadmap-block {
  padding-top: 6px;
}

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

.callout {
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
  border-radius: 0 7px 7px 0;
  margin: 18px 0;
  padding: 13px 16px;
}

.callout.amber { background: var(--amber-soft); border-left-color: var(--amber); }

.callout-label {
  color: var(--accent-strong);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.std-table {
  border-collapse: collapse;
  font-size: 13.5px;
  margin: 16px 0 20px;
  table-layout: fixed;
  width: 100%;
}

.std-table th {
  background: var(--accent-strong);
  color: #fff;
  font-weight: 600;
  overflow-wrap: anywhere;
  padding: 9px 11px;
  text-align: left;
}

.std-table td {
  border-bottom: 1px solid var(--line);
  overflow-wrap: anywhere;
  padding: 9px 11px;
  vertical-align: top;
}

.std-table tr:nth-child(even) td { background: rgba(255, 255, 255, .58); }

.published-table .status-col {
  width: 112px;
}

.published-table th:first-child,
.published-table td:first-child {
  white-space: nowrap;
  width: 112px;
}

.timeline { display: grid; gap: 14px; }

.timeline-item {
  border-left: 3px solid var(--accent);
  padding: 2px 0 16px 18px;
}

.timeline-item h3 {
  font-family: "Spectral", Georgia, serif;
  font-size: 21px;
  line-height: 1.2;
  margin: 0 0 5px;
}

.timeline-item p { color: var(--ink-soft); margin: 0; }

.faq-list details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-bottom: 10px;
  padding: 14px 16px;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 700;
}

.faq-list p { color: var(--ink-soft); margin: 10px 0 0; }

.notice-box {
  background: var(--amber-soft);
  padding: 18px;
}

.intake-form {
  background: var(--surface-warm);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 16px;
  margin-top: 18px;
  padding: 18px;
}

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

.intake-form label,
.intake-form fieldset {
  display: grid;
  gap: 6px;
}

.intake-form label span,
.intake-form legend {
  color: var(--ink-soft);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.intake-form input,
.intake-form select,
.intake-form textarea {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  font: inherit;
  min-height: 42px;
  padding: 8px 10px;
  width: 100%;
}

.intake-form textarea {
  min-height: 112px;
  resize: vertical;
}

.intake-form fieldset {
  border: 1px dashed var(--line);
  border-radius: 7px;
  margin: 0;
  padding: 12px;
}

.intake-form fieldset label {
  align-items: center;
  color: var(--ink-soft);
  display: flex;
  font-size: 14px;
  gap: 8px;
  line-height: 1.35;
}

.intake-form input[type="checkbox"] {
  min-height: auto;
  width: auto;
}

.form-actions {
  align-items: flex-start;
  display: grid;
  gap: 10px;
}

.footer {
  background: var(--surface);
  border-top: 1px solid var(--line);
  flex-shrink: 0;
}

.footer .wrap {
  align-items: center;
  color: var(--ink-soft);
  display: flex;
  flex-wrap: wrap;
  font-size: 13px;
  gap: 14px;
  justify-content: space-between;
  margin: 0 auto;
  max-width: var(--maxw);
  padding: 24px 28px;
}

.footer a {
  color: var(--ink-soft);
  margin-left: 14px;
}

.footer a:hover {
  color: var(--accent);
}

.footer-links {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
}

@media (max-width: 980px) {
  .four-col { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-grid,
  .status-grid,
  .content-layout,
  .whitepaper-layout,
  .two-col,
  .three-col,
  .chapter-grid {
    grid-template-columns: 1fr;
  }

  .aside-panel { max-height: none; position: static; }
  .network-diagram {
    grid-template-areas:
      "manufacturer c1 hub c2 provider"
      "customer c3 hub c4 training";
    grid-template-columns: minmax(66px, 1fr) 16px minmax(72px, .95fr) 16px minmax(66px, 1fr);
    min-width: 0;
  }
  .map-node { margin-top: 0; }
}

@media (max-width: 560px) {
  .topbar .wrap,
  .container,
  .footer .wrap {
    padding-left: 18px;
    padding-right: 18px;
  }

  .topbar .wrap {
    display: grid;
    gap: 10px;
    grid-template-columns: 1fr auto;
  }

  .brand-logo {
    height: 34px;
  }

  .service-map {
    padding: 12px;
  }

  .network-diagram {
    gap: 10px 4px;
    grid-template-columns: minmax(62px, 1fr) 14px minmax(68px, .9fr) 14px minmax(62px, 1fr);
    margin-top: 14px;
  }

  .map-title {
    font-size: 10px;
  }

  .map-node {
    border-left-width: 3px;
    padding: 7px 6px;
  }

  .map-node strong {
    font-size: 13px;
  }

  .map-node span {
    font-size: 10px;
    line-height: 1.35;
  }

  .map-node.hub {
    min-height: 78px;
  }

  .map-node.hub strong {
    font-size: 20px;
  }

  .map-connector {
    font-size: 8px;
  }

  .map-connector span {
    max-width: 28px;
    padding: 0 1px;
  }

  .nav-button {
    background: var(--surface);
    display: flex !important;
    position: absolute;
    right: 18px;
    top: 12px;
  }

  .nav {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 16px 34px rgba(46, 37, 22, .08);
    display: none;
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 8px;
    position: absolute;
    right: 18px;
    top: calc(100% - 4px);
    width: min(260px, calc(100vw - 36px));
    z-index: 30;
  }

  .nav a {
    border-radius: 6px;
    font-size: 14.5px;
    padding: 11px 12px;
  }

  .nav-toggle:not(:checked) ~ .nav {
    display: none;
  }

  .nav-toggle:checked ~ .nav {
    display: grid;
  }

  .hero { padding-top: 38px; }
  .hero-copy, .doc-subtitle { font-size: 18px; max-width: 330px; }
  .doc-title { font-size: 31px; line-height: 1.08; max-width: 330px; }
  .four-col { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .kicker-row { grid-template-columns: 1fr; }
  .meta-row { display: block; }
  .meta-row .k, .meta-row .v { display: block; }
  .meta-row .k { margin-bottom: 2px; }
  .meta-row .v.mono,
  .doc-masthead .mono {
    font-size: 14px;
    line-height: 1.6;
  }
  .doc-masthead { padding-top: 32px; }
  .paper-page,
  .status-grid,
  .aside-panel {
    max-width: calc(100vw - 36px);
    padding: 18px;
    width: calc(100vw - 36px);
  }
  .download-stack .btn {
    max-width: 100%;
    width: 100%;
  }
  .article h2 { font-size: 27px; }
  .article .lede { font-size: 17px; }
  .article p,
  .article h2,
  .article h3,
  .item p {
    overflow-wrap: anywhere;
  }
  .std-table {
    border-collapse: separate;
    border-spacing: 0;
    display: block;
    font-size: 12px;
    max-width: 100%;
  }
  .std-table thead {
    display: none;
  }
  .std-table tbody,
  .std-table tr,
  .std-table td {
    display: block;
    width: 100%;
  }
  .std-table tr {
    border: 1px solid var(--line);
    border-radius: 7px;
    margin-bottom: 10px;
    overflow: hidden;
  }
  .std-table th,
  .std-table td {
    border-bottom: 1px solid var(--line-soft);
    padding: 8px;
    word-break: break-word;
  }
  .std-table td:first-child {
    background: var(--accent-soft);
    color: var(--accent-strong);
    font-weight: 700;
  }
  .std-table td:last-child {
    border-bottom: 0;
  }
  .published-table .status-col,
  .published-table th:first-child,
  .published-table td:first-child {
    white-space: normal;
    width: 100%;
  }
}
