/* ============================================================
   Type pairing preview — one screen, three readings, no score.
   Reuses the article measure and the site's paper/ink materials.
   ============================================================ */

.tool-hero { padding-block: clamp(32px, 5vw, 56px) clamp(16px, 2vw, 24px); }

.tool-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.tool-topline .eyebrow { margin-bottom: 0; }

.tool-hero h1 {
  font-size: clamp(30px, 4.4vw, 46px);
  letter-spacing: -0.035em;
  line-height: 1.07;
}
.tool-hero .lede {
  margin-top: 18px;
  color: var(--muted);
  font-size: clamp(16px, 1.7vw, 19px);
  line-height: 1.6;
  max-width: 60ch;
}

.tool-shell { padding-bottom: clamp(48px, 6vw, 80px); }

.pair-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  gap: 14px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
}

.pair-field { display: grid; gap: 8px; }
.pair-field > span {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--faint);
}
.pair-field select {
  width: 100%;
  padding: 12px 14px;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 650;
  color: var(--text);
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  appearance: none;
  cursor: pointer;
  padding-right: 40px;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%2367616F' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round' d='M1 1.5 6 6.5 11 1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
}
.pair-field select:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.pair-swap { padding-bottom: 12px; color: var(--faint); font-size: 13px; }

.pair-out { display: grid; gap: 14px; margin-top: 18px; }

.pair-card {
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
}
.pair-card-accent { border-color: var(--accent); background: var(--accent-soft); }
.pair-label {
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--faint);
}
.pair-card-accent .pair-label { color: var(--accent-ink); }
.pair-text { margin-top: 8px; font-size: 16.5px; line-height: 1.65; color: #2B2534; }

.tool-note {
  margin-top: 18px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--faint);
  max-width: 66ch;
}
.tool-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 22px;
}
.tool-fine { margin-top: 14px; font-size: 12.5px; color: var(--faint); }

@media (max-width: 640px) {
  .pair-grid { grid-template-columns: 1fr; gap: 10px; padding: 18px; }
  .pair-swap { padding: 0; }
}
