/* SSANCAR typography tokens + root fix (2026-11-24, owner's order: site-wide text size and readability).
 * Loaded as the LAST stylesheet of <head> on buyer pages: theme/ssancar/head.sub.php (every theme page),
 * the home page's own <head> (theme/ssancar/index.php), and buyer pages that print their own <head>.
 * Sizes are px on purpose: rem is 10px on theme pages (bundle-common: html{font-size:62.5%}) but 16px on the home page.
 * Phones <=767px and PCs >=1024px get fixed values; tablets slide between them (clamp).
 * Floors, never below — phone: body 15, car name/price/year/km 15, meta/footer 13, nav/badge/caption 12, inputs 16
 *                        PC:    body 16, car name/price/year/km 16, meta/footer 14, nav/badge/caption 13.
 * Rules, the order for tight spaces and the abbreviation list: server CLAUDE.md "Typography rules". */
:root{
  --ssc-fs-body:  16px;
  --ssc-fs-core:  clamp(15px, calc(15px + (100vw - 768px) * 0.00390625), 16px);
  --ssc-fs-price: clamp(17px, calc(17px + (100vw - 768px) * 0.00390625), 18px);
  --ssc-fs-meta:  clamp(13px, calc(13px + (100vw - 768px) * 0.00390625), 14px);
  --ssc-fs-small: clamp(12px, calc(12px + (100vw - 768px) * 0.00390625), 13px);
  --ssc-fs-input: 16px;
  --ssc-fs-h1:    clamp(26px, calc(26px + (100vw - 768px) * 0.0859375), 48px);
  --ssc-lh-body:  1.55;
  --ssc-lh-ui:    1.35;
}

/* Root fix. Theme pages inherit body 13px / line-height 1.1 / letter-spacing -1px from bundle-common
 * (theme default.css had 0.75em = 12px under it); the home page inherits 13px from new-site/css/style.css, and some pages
 * load style.css a second time inside <body> — hence "html body" (wins by specificity, not by order).
 * Only text that sets no size of its own changes here. Letter-spacing stays as it is: measured 2026-11-24, setting it to
 * normal site-wide made car names, words and boxes overflow (ellipsis 37 -> 59, clipped text 2 -> 10 on 19 sample pages). */
html body{font-size:var(--ssc-fs-body);line-height:var(--ssc-lh-body)}

/* iOS zooms the page when a field under 16px gets focus: every text field is 16px on touch-size screens. */
@media (max-width:1023px){
  input[type=text],input[type=search],input[type=email],input[type=tel],input[type=number],input[type=password],
  input[type=url],input[type=date],input:not([type]),select,textarea{font-size:var(--ssc-fs-input) !important}
}

/* Area sections below: each area deploy adds its rules between its own two markers only, so one area can be
 * reverted (git revert) without touching the others. Rules here win over page copies by specificity (html body …). */
/* ==== A: header, footer, bottom nav, home, company, terms / privacy / FAQ ==== */
/* ==== /A ==== */

/* ==== B: lists, search filter, car cards, auction results ==== */
/* ==== /B ==== */

/* ==== C: detail pages ==== */
/* ==== /C ==== */

/* ==== D: people, agencies, buyer network, landing pages, login / sign-up, My SSANCAR ==== */
/* ==== /D ==== */
