/* "How a vision model is made" (vision-model.html), from the design handoff of
   2026-10-09. Colours come from the site tokens; the handoff's own values map
   onto them (grey-100 → --grey-50, cyan text → --cyan-700, line →
   --line-card). */

.vm-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: clamp(64px, 8vw, 96px) clamp(20px, 5vw, 80px);
}

.vm-grey { background: var(--grey-50); }
.vm-white { background: var(--white); }

.vm-head {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 1000px;
  margin-bottom: 40px;
}

.vm-head h2 {
  text-wrap: balance;
}

.vm-head h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(30px, 3.4vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--ink-900);
}

.vm-lead {
  margin: 0;
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-lead-light);
}

/* ── Owner pills: the text is always present ──────────────── */

.owner {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  padding: 5px 10px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--ink-900);
}

.owner--together { background: var(--white); border: 2px solid var(--cyan-500); padding: 3px 8px; }
.owner--augmenticon { background: var(--cyan-500); }
.owner--you { background: var(--blue-300); }

/* ── Hero chain ────────────────────────────────────────────── */

.vm-hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 4px;
}

.vm-chain {
  position: relative;
  margin-top: 40px;
}

.vm-chain__line {
  position: absolute;
  left: 22px;
  right: 22px;
  top: 21px;
  height: 2px;
  background: var(--cyan-500);
  opacity: 0.55;
}

.vm-chain ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 12px;
}

.vm-chain li {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.vm-node {
  position: relative;
  z-index: 1;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 15px;
  color: var(--ink-900);
}

.vm-node--together { background: var(--white); box-shadow: inset 0 0 0 3px var(--cyan-500); }
.vm-node--augmenticon { background: var(--cyan-500); }
.vm-node--you { background: var(--blue-300); }

.vm-chain__title {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--white);
}

.vm-chain__owner {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--text-muted-dark);
}

.vm-chain__owner--augmenticon { color: var(--cyan-500); }
.vm-chain__owner--you { color: var(--blue-300); }

.vm-loop {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.vm-loop span {
  grid-column: 3 / 8;
  margin-left: 21px;
  margin-right: calc(100% / 5 - 21px);
  height: 22px;
  border: 1.5px dashed var(--ink-400);
  border-top: none;
  border-radius: 0 0 10px 10px;
}

.vm-loop-note {
  margin: 8px 0 0;
  padding-left: calc(25% + 21px);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted-dark);
}

/* ── Legend ────────────────────────────────────────────────── */

.vm-legend {
  max-width: 1280px;
  margin: 0 auto;
  padding: 32px clamp(20px, 5vw, 80px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 40px;
}

.vm-legend__label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--text-muted-light);
}

.vm-legend__item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
}

/* ── Step rows ─────────────────────────────────────────────── */

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

.vm-step {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr) 320px;
  gap: 48px;
  padding: 56px 0;
  border-top: 1px solid var(--line-card);
}

.vm-step__no {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.vm-step__no b {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 56px;
  line-height: 1;
  color: var(--ink-900);
}

.vm-step h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 30px;
  line-height: 1.2;
  color: var(--ink-900);
}

.vm-step__lead {
  margin: 12px 0 0;
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-lead-light);
}

.vm-step ul {
  margin: 16px 0 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 16px;
  line-height: 1.55;
  color: var(--text-strong-light);
}

.vm-side {
  align-self: start;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px 22px;
  background: var(--grey-50);
  border-radius: 12px;
}

.vm-side dt {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--text-muted-light);
}

.vm-side dt:not(:first-child) { margin-top: 10px; }

.vm-side dd {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-lead-light);
}

.vm-side dd.vm-result {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink-900);
}

.vm-side a,
.vm-text a { color: var(--cyan-700); text-decoration: underline; }

/* ── Annex 22 map ──────────────────────────────────────────── */

.vm-map {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.vm-map th {
  padding: 0 0 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--text-muted-light);
  border-bottom: 1px solid var(--line-card);
}

.vm-map td {
  padding: 18px 32px 18px 0;
  font-size: 16px;
  line-height: 1.5;
  border-bottom: 1px solid var(--line-card);
  vertical-align: top;
}

.vm-map td:last-child {
  width: 40%;
  font-weight: 600;
  padding-right: 0;
}

.vm-small {
  margin: 24px 0 0;
  max-width: 840px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted-light);
}

/* ── Shared responsibility ─────────────────────────────────── */

.vm-keep {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.vm-keep li {
  padding-top: 16px;
  border-top: 3px solid var(--blue-300);
  font-size: 16px;
  line-height: 1.5;
}

/* ── Documentation cards ───────────────────────────────────── */

.vm-docs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.vm-doc {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 140px;
  padding: 22px;
  background: var(--white);
  border: 1px solid transparent;
  border-radius: 12px;
  color: var(--ink-900);
  text-decoration: none;
}

.vm-doc:hover {
  border-color: var(--cyan-700);
  color: var(--ink-900);
  text-decoration: none;
}

.vm-doc__eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--text-muted-light);
}

.vm-doc__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
}

.vm-doc__text {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-lead-light);
}

/* ── Smaller screens ───────────────────────────────────────── */

@media (max-width: 900px) {
  .vm-chain ol { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 28px; }
  .vm-chain__line, .vm-loop, .vm-loop-note { display: none; }
  .vm-step { grid-template-columns: minmax(0, 1fr); gap: 20px; padding: 40px 0; }
  .vm-step__no { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 12px; }
  .vm-docs, .vm-keep { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vm-map thead { display: none; }
  .vm-map tr { display: block; padding: 16px 0; border-bottom: 1px solid var(--line-card); }
  .vm-map td { display: block; width: auto !important; padding: 0; border: 0; }
  .vm-map td:last-child { padding-top: 4px; }
}

@media (max-width: 520px) {
  .vm-docs, .vm-keep { grid-template-columns: minmax(0, 1fr); }
  .vm-chain ol { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
