/*
 * US Fax Number Validator — styles.
 *
 * WPCode snippet 7790 "US Fax Number Validator CSS", verbatim, from
 * data/wpcode-snippets-export-2026-09-04.json. Live injects this INLINE in the
 * head; we serve it as a file so the two pages that need it can share one
 * cached copy instead of carrying 4,377 bytes of HTML each.
 *
 * Loaded ONLY on /how-to/fax-number-examples-and-formats/, from src/pages/how-to/[slug].astro.
 * Live scopes it the same way, by URL condition:
 *   "page_url contains /fax-number-examples-and-formats/"
 * Do NOT move this into cf.css / the shared bundle — see CLAUDE.md.
 *
 * ---------------------------------------------------------------------------
 * ONE SELECTOR IS NOT VERBATIM: `.cf-page .usv-title`. THE DELIVERY CHANGED THE
 * CASCADE.
 *
 * Live injects this sheet INLINE IN THE HEAD, AFTER the cf- CSS. `.usv-title`
 * and `.cf-page :where(h3)` are both (0,1,0), so the tie goes to source order
 * and live's title renders 28px/700. We serve the same bytes as a FILE that
 * loads BEFORE the cf.css bundle, which reverses the tie. Measured against
 * live at 1280: ours 25px/600 against live's 28px/700.
 *
 * Scoped up to (0,2,0) rather than reordering the sheets, because reordering
 * fixes this one title and leaves the mechanism live for the next sheet we ship
 * that live inlines. The h3 base keeps its `:where()` — it is a default many
 * components want to override, which is why it carries one. No `!important`.
 * CLAUDE.md rule 1, the second of its two fixes; rule 2's seventh instance.
 */
/* US Fax Number Validator — fax-number-examples-and-formats */

.usv-wrap {
  max-width: 1060px;
  margin: 0 auto;
  font-family: inherit;
  padding: 2.5rem 1.25rem 2rem;
}

.usv-header { margin-bottom: 2rem; }

.usv-eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #2563eb;
  margin: 0 0 10px;
}

/* SCOPED UP to (0,2,0) — see the header. Live inlines this sheet after the cf-
   CSS and wins the tie; we file it before and lost. */
.cf-page .usv-title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 8px;
  line-height: 1.2;
}

.usv-desc {
  font-size: 17px;
  color: #475569;
  margin: 0;
  line-height: 1.5;
}

.usv-input-row {
  display: flex;
  gap: 12px;
  align-items: flex-end;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.usv-input-field {
  flex: 1;
  min-width: 240px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.usv-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
}

.usv-input {
  font-family: inherit;
  font-size: 18px;
  font-weight: 600;
  color: #0f172a;
  background: #fff;
  border: 1.5px solid #bfdbfe;
  border-radius: 10px;
  padding: 11px 16px;
  outline: none;
  transition: border-color 0.12s;
  width: 100%;
}

.usv-input:focus { border-color: #2563eb; }
.usv-input::placeholder { color: #cbd5e1; font-weight: 400; font-size: 16px; }
.usv-input.usv-valid   { border-color: #16a34a; }
.usv-input.usv-invalid { border-color: #dc2626; }

.usv-result {
  background: #fff;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  padding: 1.5rem 1.75rem;
  margin-bottom: 1.25rem;
  transition: border-color 0.15s, background 0.15s;
}

.usv-result.usv-state-valid   { border: 2.5px solid #16a34a; background: #f0fdf4; }
.usv-result.usv-state-invalid { border: 2.5px solid #dc2626; background: #fef2f2; }
.usv-result.usv-state-warn    { border: 2.5px solid #f59e0b; background: #fffbeb; }

.usv-result-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 1.25rem;
}

.usv-metric {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.usv-metric-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #94a3b8;
}

.usv-state-valid   .usv-metric-label { color: #4ade80; }
.usv-state-invalid .usv-metric-label { color: #fca5a5; }
.usv-state-warn    .usv-metric-label { color: #fbbf24; }

.usv-metric-val {
  font-size: 22px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.1;
}

.usv-metric-sub {
  font-size: 13px;
  font-weight: 500;
  color: #64748b;
  line-height: 1.3;
}

.usv-formatted-block {
  border-top: 1px solid #e2e8f0;
  padding-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.usv-state-valid   .usv-formatted-block { border-color: #bbf7d0; }
.usv-state-invalid .usv-formatted-block { border-color: #fecaca; }
.usv-state-warn    .usv-formatted-block { border-color: #fde68a; }

.usv-fmt-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 12px;
  align-items: baseline;
}

.usv-fmt-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: #dbeafe;
  color: #1d4ed8;
  padding: 3px 10px;
  border-radius: 20px;
  white-space: nowrap;
  display: inline-block;
  text-align: center;
}

.usv-fmt-tag.usv-tag-preferred {
  background: #2563eb;
  color: #fff;
}

.usv-fmt-val {
  font-size: 20px;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: 0.02em;
}

.usv-empty {
  font-size: 17px;
  color: #cbd5e1;
  font-weight: 500;
  margin: 0;
}

.usv-error-msg {
  font-size: 17px;
  font-weight: 600;
  color: #dc2626;
  margin: 0;
}

.usv-warn-msg {
  font-size: 15px;
  font-weight: 500;
  color: #92400e;
  background: #fef3c7;
  border-radius: 8px;
  padding: 10px 14px;
  margin-top: 4px;
}

.usv-footnote {
  font-size: 13px;
  color: #94a3b8;
  line-height: 1.7;
  border-top: 1px solid #f1f5f9;
  padding-top: 1rem;
  margin: 0;
}

@media (max-width: 600px) {
  .usv-result-grid { grid-template-columns: 1fr 1fr; }
  .usv-metric-val { font-size: 18px; }
  .usv-fmt-row { grid-template-columns: 100px 1fr; }
  .usv-fmt-val { font-size: 17px; }
}
