#text-size-control { position:fixed; right:16px; bottom:calc(92px + env(safe-area-inset-bottom)); z-index:110; font-family:"LINE Seed Sans TH",system-ui,sans-serif; }
#text-size-control button { cursor:pointer; border:1px solid #b6cce0; color:#173b60; background:#fff; border-radius:12px; font:inherit; }
#text-size-control .text-size-trigger { width:48px; min-height:48px; font-size:1rem; font-weight:700; box-shadow:0 4px 20px #09253d26; }
#text-size-control section { position:absolute; right:0; bottom:58px; width:min(280px,calc(100vw - 32px)); padding:16px; border:1px solid #c8d9e8; border-radius:16px; background:#fff; color:#173b60; box-shadow:0 10px 32px #09253d33; }
#text-size-control section[hidden] { display:none; }
#text-size-control strong { display:block; font-size:1rem; margin-bottom:12px; }
#text-size-control section div { display:flex; gap:8px; }
#text-size-control [data-size] { flex:1; min-width:0; min-height:44px; font-size:.875rem; }
#text-size-control [aria-pressed=true] { color:#fff; background:#126bdc; border-color:#126bdc; }
#text-size-control button:focus-visible { outline:3px solid #05aac9; outline-offset:3px; }
html:not([data-text-size='100']) body { overflow-wrap:anywhere; }
html:not([data-text-size='100']) :is(main,section,article,form,label,.finance-output,.calculator-panel) { min-width:0; }
html:not([data-text-size='100']) :is(.field-head,.standalone-finance-head,.quick-specs,.header-actions,.spec-sheet-intro) { flex-wrap:wrap; }
html:not([data-text-size='100']) :is(.home-model-meta strong,.home-model-meta small,.vehicle-title h1) { white-space:normal; overflow:visible; }
html:not([data-text-size='100']) :is(.hero-stage,.quick-specs,.selector-row,.site-header,.site-header-inner) { height:auto; min-height:initial; }
html:not([data-text-size='100']) .spec-item { min-width:0; }
html:not([data-text-size='100']) .compare-demo-table { min-width:900px; }
html:not([data-text-size='100']) .compare-demo-table.compare-four-cars { min-width:1200px; }
html:not([data-text-size='100']) .compare-demo-table-scroll { max-width:100%; overflow-x:auto; }
html:not([data-text-size='100']) .compare-demo-choice { padding-top:40px; }
html:not([data-text-size='100']) .vehicle-compare-tools { flex-wrap:wrap; }
html:not([data-text-size='100']) .autolist-logo { overflow-wrap:normal; white-space:nowrap; }
html:not([data-text-size='100']) .quick-specs { grid-template-columns:repeat(auto-fit,minmax(160px,1fr)); }
@media(max-width:1100px) { html:not([data-text-size='100']) .desktop-nav { display:none; } }
@media(max-width:760px) {
 html:not([data-text-size='100']) .compare-demo-choice { grid-template-columns:1fr; }
 html:not([data-text-size='100']) .site-header-inner { gap:8px; padding-top:12px; padding-bottom:12px; flex-wrap:wrap; }
 html:not([data-text-size='100']) .header-actions { margin-left:auto; }
 html:not([data-text-size='100']) .site-header .autolist-lockup strong { font-size:16px; }
 html:not([data-text-size='100']) .site-header .autolist-lockup small { font-size:7px; white-space:nowrap; }
 html:not([data-text-size='100']) .site-header .autolist-logo { gap:6px; }
 html:not([data-text-size='100']) .hero-stage { min-height:540px; }
}
/* Keep the browser's preferred base size; grow from 16 to 20px on wide displays. */
:root { --base-text-size:clamp(100%, calc(75% + .3125vw), 125%); }
@media print { #text-size-control { display:none; } }
