/* FitzChecks Typography 0.1.0: script-aware, locally hosted fonts only.
   Loaded AFTER the existing Pilot Sync and Minimal Home stylesheets. */
body.fitzchecks-shell {
  --fitz-font-ui: "Fitz Heading", Arial, sans-serif;
  --fitz-font-body: "Fitz Body", Arial, sans-serif;
  --fitz-font-sku: "Fitz SKU", Arial, sans-serif;
  font-family: var(--fitz-font-body);
  font-weight: 400;
}

/* English glyphs use Inter; Thai glyphs use Noto Sans Thai in UI/headings. */
body.fitzchecks-shell :is(h1,h2,h3,h4,h5,h6),
body.fitzchecks-shell :is(header,nav,button,label,input,textarea,select),
body.fitzchecks-shell .fitz-site-header,
body.fitzchecks-shell .fitz-site-nav,
body.fitzchecks-shell .fitz-home-vehicle-card strong,
body.fitzchecks-shell .fitz-home-directory-card strong,
body.fitzchecks-shell .fitz-home-result strong {
  font-family: var(--fitz-font-ui);
}

/* Body copy and descriptive text: Sarabun Thai + Inter Latin. */
body.fitzchecks-shell :is(p,article,blockquote),
body.fitzchecks-shell .fitz-home-vehicle-content > span,
body.fitzchecks-shell .fitz-home-about p {
  font-family: var(--fitz-font-body);
}

/* Latin-only identifiers: consistent SKU, numbers and model codes. */
body.fitzchecks-shell .fitz-sku,
body.fitzchecks-shell .fitz-sku-card-code,
body.fitzchecks-shell .fitz-sku-title,
body.fitzchecks-shell .fitz-home-mono,
body.fitzchecks-shell .fitz-color-code,
body.fitzchecks-shell .fitz-color-part-sku {
  font-family: var(--fitz-font-sku);
}

/* v0.1.2: Search remains blue; selected language is charcoal to distinguish actions.
   Scoped to FitzChecks frontend pages (TH/EN, desktop/mobile). */
body.fitzchecks-shell .fitz-search button,
body.fitzchecks-shell .fitz-home-hero-search-row button {
  background-color: #145ec5;
  border-color: #145ec5;
  color: #fff;
}
body.fitzchecks-shell .fitz-search button:is(:hover,:focus-visible),
body.fitzchecks-shell .fitz-home-hero-search-row button:is(:hover,:focus-visible) {
  background-color: #0f4ca2;
  border-color: #0f4ca2;
}
/* Show current language as a neutral state indicator, not a Search action. */
body.fitzchecks-shell .fitz-header-actions a.is-active {
  background-color: #151515;
  border-color: #151515;
  color: #fff;
}
body.fitzchecks-shell .fitz-header-actions a.is-active:is(:hover,:focus-visible) {
  background-color: #303030;
  border-color: #303030;
  color: #fff;
}


/* v0.1.3: Native Gutenberg FitzChecks pages participate in the same typography
   contract as plugin-rendered body.fitzchecks-shell pages. */
body.fitz-ui-theme-page {
  --fitz-font-ui: "Fitz Heading", Arial, sans-serif;
  --fitz-font-body: "Fitz Body", Arial, sans-serif;
  --fitz-font-sku: "Fitz SKU", Arial, sans-serif;
}

/* Header controls/navigation: Noto Sans Thai for Thai + Inter for Latin. */
body.fitz-ui-theme-page .fitz-site-header,
body.fitz-ui-theme-page .fitz-site-header :is(a, button, input, label, select, textarea),
body.fitz-ui-theme-page .fitz-site-nav,
body.fitz-ui-theme-page .fitz-site-nav :is(a, span) {
  font-family: var(--fitz-font-ui);
}

/* Search is an action; selected locale is a state indicator. */
body.fitz-ui-theme-page .fitz-search button {
  background-color: #145ec5;
  border-color: #145ec5;
  color: #fff;
}
body.fitz-ui-theme-page .fitz-search button:is(:hover,:focus-visible) {
  background-color: #0f4ca2;
  border-color: #0f4ca2;
}
body.fitz-ui-theme-page .fitz-header-actions a.is-active {
  background-color: #151515;
  border-color: #151515;
  color: #fff;
}
body.fitz-ui-theme-page .fitz-header-actions a.is-active:is(:hover,:focus-visible) {
  background-color: #303030;
  border-color: #303030;
  color: #fff;
}

/* Footer copy is descriptive text: Sarabun Thai + Inter Latin.
   Keep small-screen flex items shrinkable; long Thai text must not overflow. */
body.fitz-ui-theme-page .fitz-site-footer-inner > span,
body.fitzchecks-shell .fitz-site-footer-inner > span {
  font-family: var(--fitz-font-body);
  min-width: 0;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
}
body.fitz-ui-theme-page .fitz-site-footer-inner > span a {
  font-family: inherit;
}
