/*
 * International Fax Number Formatter — styles.
 *
 * WPCode snippet 7785 "International Fax Number Formatter 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 9,011 bytes of HTML each.
 *
 * Loaded ONLY on /how-to/fax-number-examples-and-formats/ and /how-to/international-faxing/, from src/pages/how-to/[slug].astro.
 * Live scopes it the same way, by URL condition:
 *   "page_url contains /fax-number-examples-and-formats/ OR page_url contains /international-faxing/"
 * Do NOT move this into cf.css / the shared bundle — see CLAUDE.md.
 *
 * ---------------------------------------------------------------------------
 * THREE SELECTORS ARE NOT VERBATIM: `.cf-page .iff-title` and both
 * `.cf-page .ifc-title` rules. THE DELIVERY CHANGED THE CASCADE.
 *
 * Live injects this sheet INLINE IN THE HEAD, AFTER the cf- CSS. `.iff-title`
 * and `.cf-page :where(h3)` are both (0,1,0), so the tie goes to source order
 * and live's titles render 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, on both pages.
 *
 * THE @media STEP HAD TO MOVE WITH THE BASE, and that is the part easy to get
 * wrong. `.ifc-title` carries a 24px step at max-width:640. Scoping only the
 * base to (0,2,0) would leave the step at (0,1,0), losing to the very rule it
 * is meant to override — the step would die silently and 390 would render
 * 28px. Live renders 24px there; measured. Both are (0,2,0) now and the later
 * one wins, which is the relationship the file already had.
 *
 * Scoped up rather than reordering the sheets, because reordering fixes these
 * titles and leaves the mechanism live for the next sheet we ship that live
 * inlines. The h3 base keeps its `:where()`. No `!important`. CLAUDE.md rule 1,
 * the second of its two fixes; rule 2's seventh instance.
 */
/* International Fax Number Formatter — how-to pages */

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

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

.iff-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 .iff-title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 8px;
  line-height: 1.2;
}

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

.iff-form {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
  background: #f0f6ff;
  border: 1.5px solid #bfdbfe;
  border-radius: 14px;
  padding: 1.5rem 1.75rem;
  margin-bottom: 1.5rem;
}

.iff-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

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

.iff-select,
.iff-input {
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  color: #0f172a;
  background: #fff;
  border: 1.5px solid #bfdbfe;
  border-radius: 8px;
  padding: 9px 12px;
  outline: none;
  transition: border-color 0.12s;
  width: 100%;
}

.iff-select:focus,
.iff-input:focus { border-color: #2563eb; }

.iff-input::placeholder { color: #cbd5e1; }

.iff-result-block {
  background: #fff;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  padding: 1.5rem 1.75rem;
  margin-bottom: 1.25rem;
}

.iff-result-block.iff-has-result {
  border: 2.5px solid #2563eb;
  background: #eff6ff;
}

.iff-result-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #94a3b8;
  margin: 0 0 12px;
}

.iff-has-result .iff-result-label { color: #60a5fa; }

.iff-formats {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.iff-format-row + .iff-format-row {
  border-top: 1px solid #bfdbfe;
  padding-top: 16px;
  margin-top: 16px;
}

.iff-format-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 16px;
  align-items: start;
  padding: 4px 0;
}

.iff-format-tag-cell {
  display: flex;
  padding-top: 6px;
}

.iff-format-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: #dbeafe;
  color: #1d4ed8;
  padding: 4px 12px;
  border-radius: 20px;
  white-space: nowrap;
  display: inline-block;
}

.iff-format-tag.iff-tag-preferred {
  background: #2563eb;
  color: #fff;
}

.iff-format-val {
  font-size: 28px;
  font-weight: 700;
  color: #1d4ed8;
  letter-spacing: 0.02em;
  line-height: 1.1;
  word-break: break-all;
  margin: 0;
}

.iff-format-note {
  font-size: 14px;
  color: #64748b;
  margin: 5px 0 0;
  font-weight: 500;
  line-height: 1.4;
}

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

.iff-error {
  font-size: 16px;
  font-weight: 600;
  color: #dc2626;
}

.iff-explainer {
  background: #fafafa;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.25rem;
}

.iff-explainer-title {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 10px;
}

.iff-steps {
  display: flex;
  gap: 0;
  flex-wrap: wrap;
  align-items: center;
}

.iff-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 80px;
}

.iff-step-val {
  font-size: 18px;
  font-weight: 700;
  color: #2563eb;
  background: #eff6ff;
  border: 1.5px solid #bfdbfe;
  border-radius: 8px;
  padding: 6px 12px;
  white-space: nowrap;
}

.iff-step-lbl {
  font-size: 11px;
  font-weight: 600;
  color: #94a3b8;
  text-align: center;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.iff-step-sep {
  font-size: 22px;
  font-weight: 700;
  color: #cbd5e1;
  padding: 0 6px;
  margin-top: -16px;
}

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

@media (max-width: 640px) {
  .iff-form { grid-template-columns: 1fr; }
  .iff-format-val { font-size: 20px; }
  .iff-format-row { grid-template-columns: 90px 1fr; }
}

/* International Fax Cost Estimator — international-faxing */

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

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

.ifc-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. Its @media step below is scoped to
   match, or the step would lose to this rule. */
.cf-page .ifc-title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 8px;
  line-height: 1.2;
}

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

.ifc-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: flex-end;
  background: #f0f6ff;
  border: 1.5px solid #bfdbfe;
  border-radius: 14px;
  padding: 1.5rem 1.75rem;
  margin-bottom: 1.5rem;
}

.ifc-ctrl {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  min-width: 180px;
}

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

.ifc-select {
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  color: #0f172a;
  background: #fff;
  border: 1.5px solid #bfdbfe;
  border-radius: 8px;
  padding: 9px 12px;
  outline: none;
  width: 100%;
}

.ifc-select:focus { border-color: #2563eb; }

.ifc-pages-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.ifc-pages-row input[type=range] {
  -webkit-appearance: none;
  appearance: none;
  flex: 1;
  height: 6px;
  background: #bfdbfe;
  border-radius: 3px;
  outline: none;
  cursor: pointer;
}

.ifc-pages-row input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #2563eb;
  cursor: pointer;
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px #2563eb;
}

.ifc-pages-val {
  font-size: 22px;
  font-weight: 700;
  color: #0f172a;
  min-width: 36px;
  line-height: 1;
}

.ifc-pages-unit {
  font-size: 15px;
  color: #64748b;
  font-weight: 500;
}

.ifc-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 1.25rem;
}

.ifc-card {
  background: #fff;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  padding: 1.3rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: relative;
}

.ifc-card.ifc-winner {
  border: 2.5px solid #16a34a;
  background: #f0fdf4;
}

.ifc-card.ifc-online {
  border: 2.5px solid #2563eb;
  background: #eff6ff;
}

.ifc-badge {
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 0 0 7px 7px;
  white-space: nowrap;
}

.ifc-winner .ifc-badge { background: #16a34a; color: #fff; }
.ifc-online .ifc-badge { background: #2563eb; color: #fff; }

.ifc-store {
  font-size: 13px;
  font-weight: 700;
  color: #64748b;
  margin: 0 0 4px;
}

.ifc-winner .ifc-store { color: #15803d; }
.ifc-online .ifc-store { color: #1d4ed8; }

.ifc-price {
  font-size: 28px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1;
  margin: 0;
}

.ifc-winner .ifc-price { color: #15803d; }
.ifc-online .ifc-price { color: #1d4ed8; }

.ifc-detail {
  font-size: 12px;
  font-weight: 500;
  color: #94a3b8;
  line-height: 1.4;
  margin: 4px 0 0;
  min-height: 30px;
}

.ifc-winner .ifc-detail { color: #4ade80; }
.ifc-online .ifc-detail { color: #60a5fa; }

.ifc-verdict {
  border-radius: 12px;
  padding: 1.1rem 1.5rem;
  margin-bottom: 1.25rem;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.55;
}

.ifc-verdict.ifc-v-online {
  background: #eff6ff;
  border: 1.5px solid #93c5fd;
  color: #1e3a8a;
}

.ifc-verdict.ifc-v-store {
  background: #f0fdf4;
  border: 1.5px solid #86efac;
  color: #14532d;
}

.ifc-verdict strong { font-weight: 700; }

.ifc-region-note {
  font-size: 13px;
  color: #64748b;
  background: #f8faff;
  border: 1.5px solid #dbeafe;
  border-radius: 8px;
  padding: 0.75rem 1.1rem;
  margin-bottom: 1.25rem;
  line-height: 1.5;
}

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

@media (max-width: 640px) {
  .ifc-cards { grid-template-columns: repeat(2, 1fr); }
  /* (0,2,0) to match the scoped base above — a media query adds no
     specificity, so at (0,1,0) this step would lose to it. Live renders 24px
     here; measured at 390. */
  .cf-page .ifc-title { font-size: 24px; }
}
