/* CLW Global Typography Harmony & Mobile Readability Normalization */
:root {
  --sans: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: Georgia, "Times New Roman", serif;
}

/* 1. Unify font-family stacks across all templates (strictly 2 cohesive families: --serif & --sans) */
body,
button,
input,
select,
textarea,
.trust-page,
.parent-hub,
.equipment-page,
.tender-page,
.mvp-page {
  font-family: var(--sans);
}

h1, h2, h3,
.trust-page h1, .trust-page h2, .trust-page h3,
.parent-hub h1, .parent-hub h2, .parent-hub h3,
.equipment-page h1, .equipment-page h2, .equipment-page h3,
.tender-page h1, .tender-page h2, .tender-page h3 {
  font-family: var(--serif);
  letter-spacing: -0.02em;
}

/* Preserve sans-serif on compact form headings where intended */
.trust-page .trust-quote-top .trust-checklist h2,
.mvp-page .mvp-side h2 {
  font-family: var(--sans);
  letter-spacing: 0;
}

/* 2. Harmonize H1 scale across subpages so desktop (<=54px) and mobile (32-36px) stay consistent */
.trust-page h1,
.trust-page .trust-quote-top h1,
.parent-hub h1,
.parent-hub .ph-tenders-hero h1,
.equipment-page h1,
.equipment-page .eq-flow-hero h1,
.tender-page h1,
.tender-page .td-doc-hero h1 {
  font-size: clamp(2rem, 3.6vw, 3.35rem);
  line-height: 1.12;
}

@media (max-width: 760px) {
  .trust-page .trust-hero-copy h1,
  .trust-page .trust-quote-top h1,
  .parent-hub h1,
  .parent-hub .ph-tenders-hero h1,
  .equipment-page h1,
  .equipment-page .eq-flow-hero h1,
  .tender-page h1,
  .tender-page .td-doc-hero h1 {
    font-size: clamp(1.95rem, 7.6vw, 2.25rem);
    line-height: 1.14;
  }
}

/* 3. Enforce 12px minimum readable floor (eliminate all 8px-11.5px micro text site-wide) */
.utility-row {
  font-size: max(12px, 0.78rem);
}

.hero-facts dd {
  font-size: max(12.5px, 0.82rem);
}

.trust-page .trust-kicker,
.parent-hub .ph-kicker,
.parent-hub .ph-equipment-opening .ph-kicker,
.parent-hub .ph-traceability .ph-kicker,
.parent-hub .ph-equipment-equation > div > span,
.parent-hub .ph-route-label,
.parent-hub .ph-path-row .ph-path-meta,
.parent-hub .ph-process-index > p,
.parent-hub .ph-process-index > span,
.parent-hub .ph-process-index dl > div,
.parent-hub .ph-traceability li > span,
.parent-hub .ph-tender-route > a,
.equipment-page .eq-kicker,
.equipment-page .eq-mini-label,
.equipment-page .eq-route-map b,
.equipment-page .eq-route-map > p:last-child,
.equipment-page .eq-option-pair > section > span,
.equipment-page .eq-process-step aside > span,
.equipment-page .eq-frame-panel > p,
.equipment-page .eq-frame-panel > span,
.equipment-page .eq-frame-panel dl > div,
.tender-page .td-kicker,
.tender-page .td-sheet-top,
.tender-page .td-sheet-bottom,
.tender-page .td-side-nav p,
.tender-page .td-side-nav a,
.tender-page .td-cover-tab,
.tender-page .td-cover-footer {
  font-size: 12px;
  line-height: 1.45;
}

/* 4. Prevent iOS Safari input auto-zoom and improve mobile tap readability on ALL forms */
@media (max-width: 760px) {
  input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
  select,
  textarea,
  .clw-hc .hc-field input,
  .clw-hc .hc-field select,
  .clw-hc .hc-field textarea {
    font-size: 16px;
  }
}

/* Close final high-specificity micro text & mobile form rules */
.footer .homecopy-footer-note {
  font-size: 12px;
  line-height: 1.5;
}

.parent-hub .ph-path-row p.ph-path-meta,
.parent-hub .ph-path-meta {
  font-size: 12px;
  line-height: 1.45;
}

@media (max-width: 760px) {
  .trust-page .trust-rfq input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
  .trust-page .trust-rfq select,
  .trust-page .trust-rfq textarea,
  .equipment-page input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
  .equipment-page select,
  .equipment-page textarea,
  .tender-page input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
  .tender-page select,
  .tender-page textarea {
    font-size: 16px;
  }
}
