/* Embeddable calculators and the /embed/ hub. No ads, no extra chrome. */
.embed-body { background: var(--surface); }
.embed {
  max-width: 720px;
  margin: 0 auto;
  padding: 1.25rem 1rem 1.5rem;
}
.embed h1 {
  font-size: clamp(1.45rem, 4vw, 1.85rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.embed-lead { margin-top: 0.45rem; color: var(--text-2); font-size: 0.98rem; }
.embed-form { margin-top: 1.1rem; }
.embed-fields { display: grid; gap: 0.75rem; }
@media (min-width: 560px) { .embed-fields { grid-template-columns: 1fr 1fr; } }
.embed-field { display: flex; flex-direction: column; gap: 0.3rem; min-width: 0; }
.embed-field-wide { grid-column: 1 / -1; }
.embed-field label { font-size: 0.86rem; font-weight: 600; color: var(--text-2); }
.embed-field input, .embed-field select {
  width: 100%;
  min-height: var(--tap);
  padding: 0.55rem 0.7rem;
  font: inherit;
  font-size: 1rem;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
}
.embed-field input:focus, .embed-field select:focus { outline: none; border-color: var(--brand); box-shadow: var(--ring); }
.embed-hint { color: var(--text-muted); font-size: 0.78rem; }
.embed-out { margin-top: 1rem; }
.embed-summary { display: grid; gap: 0.5rem; margin: 0; }
@media (min-width: 560px) { .embed-summary { grid-template-columns: 1fr 1fr; } }
.embed-summary div { padding: 0.65rem 0.75rem; border-radius: var(--r-md); background: var(--bg); border: 1px solid var(--line); min-width: 0; }
.embed-summary dt { font-size: 0.78rem; color: var(--text-muted); }
.embed-summary dd { margin: 0.12rem 0 0; font-weight: 650; overflow-wrap: anywhere; }
.embed-warn { margin-top: 0.75rem; padding: 0.65rem 0.75rem; border-radius: var(--r-md); background: var(--warning-bg); border: 1px solid var(--warning-line); font-size: 0.88rem; }
.embed-credit { margin-top: 0.9rem; font-size: 0.82rem; }
.embed-credit a { font-weight: 600; }

/* Hub */
.embed-hub { max-width: 1060px; }
.embed-note { margin-top: 0.75rem; color: var(--text-2); line-height: 1.6; }
.embed-tool { margin-top: 2.5rem; }
.embed-tool h2 { font-size: var(--fs-2xl); letter-spacing: -0.025em; }
.embed-tool > p { margin-top: 0.4rem; color: var(--text-2); }
.embed-preview { margin-top: 1rem; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--surface); height: 860px; }
.embed-preview iframe { width: 100%; height: 100%; border: 0; display: block; background: var(--surface); }
.snippet-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem; margin-top: 0.9rem; }
.snippet-bar p { color: var(--text-muted); font-size: 0.88rem; }
.snippet {
  margin-top: 0.55rem;
  padding: 0.85rem 1rem;
  overflow-x: auto;
  border-radius: var(--r-md);
  background: var(--ink-950);
  color: #f8fafc;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.82rem;
  line-height: 1.5;
  white-space: pre-wrap;
}
.snippet code { font: inherit; color: inherit; }
