/* /technology: the developer voice. Sans headings (not the story's serif), mono counters and
   labels, a dotted canvas behind diagrams, code on dark panes. Same tokens as the rest. */

.tech h1,
.tech h2 {
  font-family: var(--sans);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.05;
}
.tech h1 {
  font-size: clamp(2.5rem, 1.5rem + 3.8vw, 5.25rem);
}
.tech h2 {
  font-size: clamp(1.875rem, 1.3rem + 2vw, 3.25rem);
}
.t-eyebrow,
.t-count {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--faint);
}
.t-accent {
  color: var(--accent);
}

.t-hero {
  padding-block: clamp(48px, 3rem + 4vw, 128px);
  background: radial-gradient(circle, var(--rule-strong) 1px, transparent 1.2px) 0 0 / 22px 22px, var(--paper);
}
.t-hero-row {
  display: grid;
  gap: 40px;
  align-items: center;
}
.t-hero-text {
  display: grid;
  gap: 22px;
}
.t-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--muted);
}
.t-trust li::before {
  content: "· ";
  color: var(--accent);
}
.t-thread {
  border-radius: 16px;
  background: var(--night);
  color: var(--night-ink);
  overflow: hidden;
  box-shadow: 0 40px 80px -40px rgba(29, 26, 22, 0.55);
}
.t-thread-bar {
  display: flex;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--night-rule);
  font-family: var(--mono);
  font-size: 0.6875rem;
  color: var(--night-muted);
}
.t-steps {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 18px;
  list-style: none;
  font-size: 0.875rem;
}
.t-step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 10px;
}
.t-who {
  font-family: var(--mono);
  font-size: 0.6875rem;
  color: var(--night-muted);
  padding-top: 2px;
}
.t-tool {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--night-accent);
}
@media (min-width: 1000px) {
  .t-hero-row {
    grid-template-columns: 6fr 5fr;
    gap: 64px;
  }
}

.t-band {
  padding-block: clamp(64px, 3rem + 4vw, 144px);
  border-top: 1px solid var(--rule);
}
.t-dark {
  background: var(--night);
  color: var(--night-ink);
  border-top-color: var(--night);
}
.t-dark .lede,
.t-dark .t-count {
  color: var(--night-muted);
}
.t-head {
  display: grid;
  gap: 16px;
  max-width: 46rem;
  margin-bottom: clamp(32px, 3vw, 56px);
}
.t-split {
  display: grid;
  gap: 32px;
}
@media (min-width: 1000px) {
  .t-split {
    grid-template-columns: 5fr 7fr;
    gap: 72px;
    align-items: start;
  }
  .t-split .t-head {
    position: sticky;
    top: calc(var(--header) + 40px);
  }
}

/* 01: the flow */
.t-flow {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 20px;
  list-style: none;
  border-radius: 18px;
  background: radial-gradient(circle, var(--rule-strong) 1px, transparent 1.2px) 0 0 / 18px 18px, var(--paper-2);
}
.t-node {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border: 1px solid var(--rule-strong);
  border-radius: 6px;
  background: var(--white);
}
.t-node-key {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.t-node-n {
  font-family: var(--mono);
  font-size: 0.6875rem;
  color: var(--faint);
}
.t-node-name {
  font-family: var(--mono);
  font-size: 0.875rem;
  font-weight: 500;
}
.t-node-key .t-node-name {
  color: var(--accent);
}
.t-node-what {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.45;
}
@media (min-width: 1100px) {
  .t-flow {
    grid-template-columns: repeat(6, 1fr);
    padding: 28px;
  }
  .t-node {
    position: relative;
  }
  .t-node:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 24px;
    right: -13px;
    width: 12px;
    border-top: 1px dashed var(--accent);
  }
}

/* 02: SDK tabs (CSS only) */
.t-tablist {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}
.t-tablist label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: var(--tap);
  padding: 0 16px;
  border: 1px solid var(--rule-strong);
  border-radius: 10px;
  background: var(--white);
  font-weight: 520;
  cursor: pointer;
}
.t-tab-n {
  font-family: var(--mono);
  font-size: 0.6875rem;
  color: var(--faint);
}
.t-panels > .t-code {
  display: none;
}
.t-tabs > .t-radio:nth-of-type(1):checked ~ .t-panels > .t-code:nth-child(1),
.t-tabs > .t-radio:nth-of-type(2):checked ~ .t-panels > .t-code:nth-child(2),
.t-tabs > .t-radio:nth-of-type(3):checked ~ .t-panels > .t-code:nth-child(3),
.t-tabs > .t-radio:nth-of-type(4):checked ~ .t-panels > .t-code:nth-child(4),
.t-tabs > .t-radio:nth-of-type(5):checked ~ .t-panels > .t-code:nth-child(5),
.t-tabs > .t-radio:nth-of-type(6):checked ~ .t-panels > .t-code:nth-child(6) {
  display: block;
}
.t-tabs > .t-radio:nth-of-type(1):checked ~ .t-tablist > label:nth-child(1),
.t-tabs > .t-radio:nth-of-type(2):checked ~ .t-tablist > label:nth-child(2),
.t-tabs > .t-radio:nth-of-type(3):checked ~ .t-tablist > label:nth-child(3),
.t-tabs > .t-radio:nth-of-type(4):checked ~ .t-tablist > label:nth-child(4),
.t-tabs > .t-radio:nth-of-type(5):checked ~ .t-tablist > label:nth-child(5),
.t-tabs > .t-radio:nth-of-type(6):checked ~ .t-tablist > label:nth-child(6) {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.t-tabs > .t-radio:focus-visible ~ .t-tablist {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 12px;
}
.t-code {
  margin: 0;
  border-radius: 14px;
  background: var(--night);
  color: var(--night-ink);
  overflow: hidden;
  min-width: 0;
}
.t-code figcaption {
  padding: 10px 16px;
  border-bottom: 1px solid var(--night-rule);
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--night-muted);
}
.t-code pre {
  margin: 0;
  padding: 18px 20px;
  overflow-x: auto;
  font-size: clamp(0.75rem, 0.7rem + 0.2vw, 0.875rem);
  line-height: 1.7;
}
.t-code-note {
  padding: 12px 20px 16px;
  border-top: 1px solid var(--night-rule);
  font-size: 0.875rem;
  color: var(--night-muted);
}

/* 03: content types → fields → editor */
.t-three {
  display: grid;
  gap: 14px;
}
.t-fields,
.t-form {
  margin: 0;
  border: 1px solid var(--rule-strong);
  border-radius: 14px;
  background: var(--white);
  overflow: hidden;
}
.t-fields figcaption,
.t-form figcaption {
  padding: 10px 16px;
  border-bottom: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--faint);
}
.t-fields ul {
  margin: 0;
  padding: 8px 16px;
  list-style: none;
}
.t-fields li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 0.9375rem;
}
.t-fields li:last-child {
  border-bottom: 0;
}
.t-type {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--accent);
}
.t-form dl {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 16px;
}
.t-form dt {
  font-size: 0.8125rem;
  font-weight: 560;
  margin-bottom: 4px;
}
.t-form dd {
  margin: 0;
  height: 36px;
  border: 1px solid var(--rule-strong);
  border-radius: 8px;
  background: var(--paper);
}
.t-strip {
  margin: 0 16px 16px;
  padding: 8px 12px;
  border-radius: 8px;
  background: var(--accent-soft);
  font-size: 0.8125rem;
}
.t-claude {
  font-weight: 600;
}
.t-undo {
  color: var(--accent);
  font-weight: 560;
}
.t-points {
  display: grid;
  gap: 0;
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
}
.t-points li {
  padding: 12px 0;
  border-bottom: 1px solid var(--rule);
  color: var(--ink-2);
}
@media (min-width: 1000px) {
  .t-three {
    grid-template-columns: 6fr 4fr 4fr;
    align-items: start;
  }
  .t-points {
    grid-template-columns: 1fr 1fr;
    column-gap: 40px;
  }
}

/* 04: the build refuses */
.t-term {
  border-radius: 14px;
  background: #0d0b09;
  border: 1px solid var(--night-rule);
  overflow: hidden;
}
.t-term-bar {
  padding: 10px 16px;
  border-bottom: 1px solid var(--night-rule);
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--night-muted);
}
.t-term-body {
  display: grid;
  gap: 10px;
  padding: 18px 20px;
  font-family: var(--mono);
  font-size: clamp(0.75rem, 0.72rem + 0.15vw, 0.8125rem);
  line-height: 1.55;
}
.t-cmd {
  color: var(--night-muted);
}
.t-find {
  display: grid;
  grid-template-columns: auto auto 1fr;
  gap: 2px 10px;
  color: var(--night-ink);
}
.t-x {
  color: #f08a7a;
}
.t-code-id {
  color: #f6c38b;
}
.t-file {
  color: var(--night-muted);
}
.t-msg {
  grid-column: 2 / -1;
  color: var(--night-muted);
}
.t-none {
  padding: 8px 0;
  border-top: 1px dashed var(--night-rule);
  border-bottom: 1px dashed var(--night-rule);
  color: #f08a7a;
}
.t-ok {
  color: var(--night-accent);
}

/* 05: isolation cards */
.t-cards {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.t-cards li {
  display: grid;
  gap: 8px;
  align-content: start;
  padding: 20px;
  border: 1px solid var(--rule-strong);
  border-radius: 14px;
  background: var(--white);
}
.t-cards p {
  color: var(--muted);
  font-size: 0.9375rem;
}
.t-chip {
  justify-self: start;
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--paper-2);
  font-family: var(--mono);
  font-size: 0.6875rem !important;
  color: var(--accent) !important;
}
@media (min-width: 700px) {
  .t-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1100px) {
  .t-cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* 06: lifecycle and modes */
.t-life {
  margin: 0;
  padding: 0 0 0 26px;
  list-style: none;
  border-left: 1px solid var(--rule-strong);
  counter-reset: life;
}
.t-life li {
  position: relative;
  padding: 0 0 24px;
  counter-increment: life;
}
.t-life li::before {
  content: counter(life, decimal-leading-zero);
  position: absolute;
  left: -42px;
  top: 0;
  width: 30px;
  height: 22px;
  display: grid;
  place-items: center;
  background: var(--paper);
  font-family: var(--mono);
  font-size: 0.6875rem;
  color: var(--accent);
}
.t-life p {
  color: var(--muted);
}
.t-modes {
  display: grid;
  gap: 10px;
  margin: 12px 0 0;
}
.t-modes > div {
  padding: 14px 16px;
  border: 1px solid var(--rule-strong);
  border-radius: 12px;
  background: var(--white);
}
.t-modes dt {
  font-family: var(--mono);
  font-size: 0.8125rem;
  color: var(--accent);
}
.t-modes dd {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.9375rem;
}
@media (min-width: 800px) {
  .t-modes {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* 07: connect */
.t-agents {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.t-agents li {
  display: flex;
  align-items: center;
  gap: 12px;
}
.t-agent-name {
  font-weight: 560;
}
.t-connect {
  display: grid;
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.t-connect p {
  color: var(--muted);
}
.t-line {
  margin: 8px 0 0;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--night);
  color: var(--night-ink);
  font-size: 0.8125rem;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.t-prompts {
  margin-top: 28px;
  padding: 18px 20px;
  border-radius: 14px;
  background: var(--paper-2);
}
.t-prompts ul {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}
.t-prompts li {
  padding: 8px 0;
  border-bottom: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 0.8125rem;
}
.t-prompts li:last-child {
  border-bottom: 0;
}

/* 08: repos */
.t-repos {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.t-repos li {
  display: grid;
  gap: 6px;
  padding: 18px 20px;
  border: 1px solid var(--rule-strong);
  border-radius: 14px;
  background: var(--white);
}
.t-repo-name {
  font-family: var(--mono);
  font-size: 0.9375rem;
}
.t-repo-what {
  font-weight: 560;
}
.t-repo-files {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--faint);
}
.t-repo-links {
  display: flex;
  gap: 16px;
}
@media (min-width: 700px) {
  .t-repos {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1100px) {
  .t-repos {
    grid-template-columns: repeat(3, 1fr);
  }
}

.t-close {
  padding-block: clamp(80px, 4rem + 5vw, 176px);
  background: var(--night);
  color: var(--night-ink);
}
.t-close h2 {
  max-width: 16ch;
}
.t-close .lede {
  margin-top: 18px;
  color: var(--night-muted);
}
.t-close .actions {
  margin-top: 28px;
}
.t-mcp {
  margin-top: 28px;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--night-muted);
  overflow-wrap: anywhere;
}
.t-mcp span {
  margin-left: 8px;
  padding: 4px 8px;
  border: 1px solid var(--night-rule);
  border-radius: 6px;
  color: var(--night-ink);
}
