/* ============================================================
   CONNECT GUIDE — extends style.css, same tokens
   ============================================================ */

.top-bar__home {
  text-decoration: none;
}

/* ---------- HERO (shorter than the notes page) ---------- */
.guide-hero {
  max-width: 760px;
  margin: 0 auto;
  padding: 140px 24px var(--space-lg);
  text-align: center;
}

.guide-hero__kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-sm);
}

.guide-hero__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin-bottom: var(--space-md);
}

.guide-hero__sub {
  font-size: 20px;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 34ch;
  margin: 0 auto var(--space-lg);
}

/* ---------- FLOW DIAGRAM ---------- */
.flow {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flow__box {
  flex: 1 1 0;
  max-width: 180px;
  padding: 16px 12px;
  border: 2.5px solid var(--ink);
  box-shadow: var(--shadow-block-sm);
  background: var(--paper-pure);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.flow__box--accent {
  background: var(--accent-quiet);
}

.flow__label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 19px;
}

.flow__sub {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-quiet);
  line-height: 1.4;
}

.flow__arrow {
  flex: 0 0 48px;
  height: 2.5px;
  background: var(--ink);
  position: relative;
}

.flow__arrow::after {
  content: "";
  position: absolute;
  right: -1px;
  top: 50%;
  width: 9px;
  height: 9px;
  border-top: 2.5px solid var(--ink);
  border-right: 2.5px solid var(--ink);
  transform: translateY(-50%) rotate(45deg);
}

.flow__arrow--named {
  flex-basis: 96px;
}

.flow__arrow--named::before {
  content: attr(data-name);
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--accent);
  white-space: nowrap;
}

/* ---------- CHECKLIST / STEPS ---------- */
.checklist,
.steps {
  margin: 0 0 var(--space-md) 0;
  padding: 0;
  color: var(--ink-soft);
}

.checklist {
  list-style: none;
}

.checklist li {
  position: relative;
  padding-left: 28px;
  margin-bottom: var(--space-sm);
  line-height: 1.6;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 12px;
  height: 12px;
  border: 2px solid var(--ink);
  box-shadow: 2px 2px 0 var(--ink);
  background: var(--paper-pure);
}

.checklist strong,
.steps strong {
  color: var(--ink);
  font-weight: 600;
}

.steps {
  list-style: none;
  counter-reset: step;
}

.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 44px;
  margin-bottom: var(--space-sm);
  line-height: 1.6;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.1em;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--paper-pure);
  background: var(--ink);
}

/* UI labels the reader should look for */
.ui {
  font-family: var(--font-mono);
  font-size: 0.82em;
  padding: 1px 6px;
  border: 1.5px solid var(--ink);
  background: var(--paper-pure);
  color: var(--ink);
  white-space: nowrap;
}

/* ---------- URL BOX ---------- */
.url-box {
  display: flex;
  align-items: stretch;
  border: 2.5px solid var(--ink);
  box-shadow: var(--shadow-block);
  background: var(--paper-pure);
  margin: var(--space-sm) 0 var(--space-md);
}

.url-box code {
  flex: 1;
  min-width: 0;
  padding: 16px 18px;
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--ink);
  overflow-x: auto;
  white-space: nowrap;
}

.url-box__copy {
  flex: none;
  border: none;
  border-left: 2.5px solid var(--ink);
  background: var(--ink);
  color: var(--paper-pure);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0 22px;
  cursor: pointer;
  transition: background 180ms ease;
}

.url-box__copy:hover {
  background: var(--accent);
}

/* ---------- SKETCHES (drawn, not screenshots) ---------- */
.sketch {
  margin: var(--space-lg) 0;
}

.sketch svg {
  width: 100%;
  height: auto;
}

.sketch figcaption {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--ink-quiet);
  text-align: center;
  max-width: 50ch;
  margin: var(--space-sm) auto 0;
  line-height: 1.5;
}

.s-frame {
  fill: var(--paper-pure);
  stroke: var(--ink);
  stroke-width: 2.5;
  stroke-dasharray: 8 6;
}

.s-h {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  fill: var(--ink);
}

.s-label {
  font-family: var(--font-mono);
  font-size: 12px;
  fill: var(--ink-quiet);
}

.s-field {
  fill: var(--paper);
  stroke: var(--rule-strong);
  stroke-width: 1.5;
}

.s-field--hot {
  stroke: var(--accent);
  stroke-width: 2.5;
}

.s-value {
  font-family: var(--font-mono);
  font-size: 14px;
  fill: var(--ink);
}

.s-btn {
  fill: var(--ink);
}

.s-btn-text {
  font-family: var(--font-mono);
  font-size: 13px;
  text-anchor: middle;
  fill: var(--paper-pure);
}

.s-pin {
  fill: var(--accent);
}

.s-pin-text {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  text-anchor: middle;
  fill: var(--paper-pure);
}

/* ---------- EXAMPLES ---------- */
.examples {
  margin: var(--space-md) 0;
  border-left: 3px solid var(--accent);
  padding-left: var(--space-sm);
}

.chapter .example {
  font-size: 19px;
  color: var(--ink);
  margin-bottom: var(--space-xs);
  font-style: italic;
}

/* ---------- FAQ ---------- */
.faq dt {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  color: var(--ink);
  margin-top: var(--space-md);
}

.faq dt:first-child {
  margin-top: 0;
}

.faq dd {
  color: var(--ink-soft);
  margin: var(--space-xs) 0 0;
  line-height: 1.65;
}

/* ---------- MOBILE ---------- */
@media (max-width: 768px) {
  .guide-hero {
    padding: 100px 20px var(--space-md);
  }

  .guide-hero__sub {
    font-size: 18px;
  }

  .url-box {
    box-shadow: var(--shadow-block-sm);
  }

  .url-box code {
    font-size: 13px;
    padding: 14px 12px;
  }

  .url-box__copy {
    padding: 0 14px;
  }

  .flow {
    flex-direction: column;
  }

  .flow__box {
    width: 100%;
    max-width: 260px;
  }

  .flow__arrow {
    flex: 0 0 36px;
    width: 2.5px;
    height: 36px;
  }

  .flow__arrow::after {
    right: auto;
    left: 50%;
    top: auto;
    bottom: -1px;
    transform: translateX(-50%) rotate(135deg);
  }

  .flow__arrow--named::before {
    bottom: auto;
    top: 50%;
    left: 14px;
    transform: translateY(-50%);
  }
}
