/* Section Line Tire Co. · base.css (foundation)
   Counter Book: hairline-flat with row states. Radius 4 inner / 8 control / 12 tool panel; chips pill.
   One accent: flagging-tape orange. It marks the row being quoted (wash + notch), the active size-code
   segment, the ground notch under the measured tire and the quote count. CTAs are graphite. */

/* ---------- tokens ---------- */
:root, .theme-light {
  --bg:#FFFFFF; --inset:#F6F5F1; --hover:#F8F7F3; --raised:#FFFFFF;
  --rule:#E6E4DD; --rule-2:#CFCCC2; --ink:#141310; --ink-2:#55524A; --ink-3:#6B6B6B;
  --or-50:#FFF1EA; --or-100:#FFDCC9; --or-200:#FFB892; --or-300:#FF8D58; --or:#FF5F1F; --or-600:#DB4710; --or-ink:#A8360A;
  --seg:#C8410C;
  --wash:var(--or-100); --wash-rule:transparent; --wash-ink:var(--ink); --qline:#FAF7F3; --qrule:var(--or); --plate:#FFFFFF; --plate-rule:var(--rule);
  --cta:#1E1E1E; --cta-ink:#FFFFFF; --cta-hover:#3A3833;
  --ok:#1F7A4D; --warn:#A65A00; --err:#C2271B; --info:#1D5FB8; --ph:#6B6B6B; --rowq:#6B6B6B;
  --bar:#55524A; --bar-off:#CFCCC2;
  --dim:#55524A; --ground:#CFCCC2; --shadow-rgb:20,19,16; --stage-light:transparent;
  --r-in:4px; --r-ctl:8px; --r-panel:12px;
  --ring:0 0 0 2px var(--bg), 0 0 0 3.5px var(--ink);
  --ring-or:0 0 0 2px var(--bg), 0 0 0 4px var(--or);
  --ease:cubic-bezier(.2,.7,.2,1);
  --t-fast:120ms; --t-base:200ms; --t-slow:320ms; --t-wash:180ms;
  --hd:64px;
  --sans:"Libre Franklin", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono:"Fragment Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg:#131311; --inset:#1A1A17; --hover:#1C1C19; --raised:#22221E;
  --rule:#2B2A26; --rule-2:#3A3934; --ink:#EEECE5; --ink-2:#B3AFA4; --ink-3:#85817A;
  --or-ink:#FF8D58; --seg:#FF7A3D; --wash:#3A1D10; --wash-rule:#FF6A2B; --wash-ink:#FFF4EC; --qline:#1A1A17; --qrule:#FF6A2B; --plate:#2A2724; --plate-rule:transparent;
  --cta:#EEECE5; --cta-ink:#141310; --cta-hover:#FFFFFF;
  --ok:#5CC48F; --warn:#F0A94B; --err:#FF7A6E; --info:#7FB0F0; --ph:#8A8782; --rowq:#B5B2AB;
  --bar:#B3AFA4; --bar-off:#3A3934;
  --dim:#B3AFA4; --ground:#4A4842; --shadow-rgb:0,0,0; --stage-light:#26251F;
  color-scheme: dark; } }
:root[data-theme="dark"], .theme-dark {
  --bg:#131311; --inset:#1A1A17; --hover:#1C1C19; --raised:#22221E;
  --rule:#2B2A26; --rule-2:#3A3934; --ink:#EEECE5; --ink-2:#B3AFA4; --ink-3:#85817A;
  --or-ink:#FF8D58; --seg:#FF7A3D; --wash:#3A1D10; --wash-rule:#FF6A2B; --wash-ink:#FFF4EC; --qline:#1A1A17; --qrule:#FF6A2B; --plate:#2A2724; --plate-rule:transparent;
  --cta:#EEECE5; --cta-ink:#141310; --cta-hover:#FFFFFF;
  --ok:#5CC48F; --warn:#F0A94B; --err:#FF7A6E; --info:#7FB0F0; --ph:#8A8782; --rowq:#B5B2AB;
  --bar:#B3AFA4; --bar-off:#3A3934;
  --dim:#B3AFA4; --ground:#4A4842; --shadow-rgb:0,0,0; --stage-light:#26251F;
  color-scheme: dark; }

/* scoped themes (component sheet): a subtree in one theme regardless of the page */
.theme-light, .theme-dark { background: var(--bg); color: var(--ink); }

/* ---------- base ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font: 450 15px/1.5 var(--sans); font-variant-numeric: tabular-nums; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { text-wrap: balance; }
p { text-wrap: pretty; }
.mono { font-family: var(--mono); font-weight: 400; letter-spacing: 0; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: 1440px; margin: 0 auto; padding: 0 32px; }
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 4px; }
[tabindex="-1"]:focus { outline: none; box-shadow: none; }
.skip { position: absolute; left: 12px; top: -48px; z-index: 100; background: var(--cta); color: var(--cta-ink); padding: 8px 14px; border-radius: var(--r-ctl); text-decoration: none; font-weight: 600; font-size: 14px; }
.skip:focus { top: 10px; }
#app { min-height: 60vh; }

/* ---------- type scale ---------- */
.t-display { margin: 0; font-size: 56px; line-height: 1.02; font-weight: 680; letter-spacing: -0.018em; }
.t-title, h2.t { margin: 0; font-size: 28px; line-height: 1.15; font-weight: 680; letter-spacing: -0.01em; }
.t-lead { margin: 0; font-size: 18px; line-height: 1.4; font-weight: 450; color: var(--ink-2); }
.t-small { font-size: 12px; line-height: 1.4; }
.t-caps { font-size: 11px; line-height: 1.2; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }

/* ---------- header ---------- */
.site { position: relative; z-index: 40; border-bottom: 1px solid var(--rule); background: var(--bg); }
.site .wrap { display: flex; align-items: center; height: var(--hd); gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-size: 15px; font-weight: 680; letter-spacing: -0.005em; white-space: nowrap; }
.brand span { font-weight: 450; color: var(--ink-2); }
.brand svg { flex: none; }
.nav { display: flex; gap: 2px; margin-left: 8px; }
.nav a { text-decoration: none; font-size: 14px; font-weight: 500; color: var(--ink-2); padding: 6px 10px; border-radius: var(--r-ctl); white-space: nowrap; }
.nav a.l { color: var(--ink); }
.nav a[aria-current="page"] { box-shadow: inset 0 -1.5px 0 var(--ink); border-radius: 0; color: var(--ink); }
.nav .sep { width: 1px; background: var(--rule-2); margin: 8px 8px; }
@media (hover:hover) { .nav a:hover { background: var(--inset); color: var(--ink); } .nav a[aria-current="page"]:hover { background: none; } }
.hd-r { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.phone { font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.phone small { font-weight: 450; color: var(--ink-3); font-size: 12px; margin-left: 6px; }
.menu-b { display: none; }

/* quote count badge (header button) */
.qbtn { position: relative; display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 6px 0 12px; border: 0; border-radius: var(--r-ctl); background: var(--raised); box-shadow: inset 0 0 0 1px var(--rule-2); font-size: 14px; font-weight: 500; cursor: pointer; text-decoration: none; white-space: nowrap; transition: box-shadow var(--t-fast) ease, transform var(--t-fast) ease; }
.qbtn:active { transform: scale(.97); }
.qn { position: relative; min-width: 24px; height: 22px; padding: 0 7px; border-radius: 4px; background: var(--inset); font-size: 13px; font-weight: 680; display: inline-grid; place-items: center; overflow: hidden; }
.qn.has { background: var(--ink); color: var(--bg); }
.qn.has::after { content: ""; position: absolute; top: 0; right: 0; border-style: solid; border-width: 0 7px 7px 0; border-color: transparent var(--or) transparent transparent; }
.qn.bump { animation: qbump var(--t-base) var(--ease); }
@keyframes qbump { 40% { transform: scale(1.12); } }
@media (hover:hover) { .qbtn:hover { box-shadow: inset 0 0 0 1px var(--ink-3); } }
.qbtn:focus-visible { box-shadow: inset 0 0 0 1px var(--ink-2), var(--ring); }

/* phone sheet nav */
.sheet { display: none; }
.scrim-g { position: fixed; inset: 0; z-index: 65; background: rgba(10,10,8,.42); opacity: 0; visibility: hidden; transition: opacity var(--t-base) ease, visibility 0s linear var(--t-base); }
.scrim-g.open { opacity: 1; visibility: visible; transition: opacity var(--t-base) ease; }
.xbtn { display: grid; place-items: center; width: 30px; height: 30px; border: 0; background: none; border-radius: var(--r-in); cursor: pointer; color: var(--ink-2); }
@media (hover:hover) { .xbtn:hover { background: var(--inset); color: var(--ink); } }

/* ---------- footer ---------- */
.foot { margin-top: 96px; border-top: 1px solid var(--rule-2); background: var(--inset); padding: 40px 0 32px; font-size: 14px; color: var(--ink-2); }
.foot-g { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 32px; }
.foot h2 { margin: 0 0 10px; font-size: 13px; font-weight: 600; color: var(--ink); }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.foot a { text-decoration: none; }
@media (hover:hover) { .foot a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; } }
.foot .brand { margin-bottom: 12px; color: var(--ink); }
.foot p { margin: 0; max-width: 34ch; }
.foot-b { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 40px; padding-top: 18px; border-top: 1px solid var(--rule-2); font-size: 12.5px; color: var(--ink-3); }
.fb-r { display: inline-flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.theme { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; border: 0; border-radius: var(--r-ctl); background: none; box-shadow: inset 0 0 0 1px var(--rule-2); font-size: 12.5px; color: var(--ink-2); cursor: pointer; }
@media (hover:hover) { .theme:hover { background: var(--bg); color: var(--ink); } }

/* ---------- buttons ---------- */
.btn { --h: 40px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: var(--h); padding: 0 18px; border-radius: var(--r-ctl); border: 0; font-size: 14px; font-weight: 600; cursor: pointer; white-space: nowrap; text-decoration: none; transition: background-color var(--t-fast) ease, box-shadow var(--t-fast) ease, transform var(--t-fast) ease; }
.btn:active { transform: scale(.97); }
.btn-sm { --h: 32px; padding: 0 12px; font-size: 13px; }
.btn-lg { --h: 48px; padding: 0 22px; font-size: 15px; }
.btn-q { background: var(--cta); color: var(--cta-ink); }
@media (hover:hover) { .btn-q:hover { background: var(--cta-hover); } }
.btn-q:focus-visible, .btn-q.is-armed:focus { outline: none; box-shadow: var(--ring-or); border-radius: var(--r-ctl); }
.btn-s { background: var(--raised); color: var(--ink); box-shadow: inset 0 0 0 1px var(--rule-2); }
@media (hover:hover) { .btn-s:hover { box-shadow: inset 0 0 0 1px var(--ink-3); background: var(--inset); } }
.btn-s:focus-visible { box-shadow: inset 0 0 0 1px var(--ink-2), var(--ring); border-radius: var(--r-ctl); }
.btn-g { background: none; color: var(--ink); padding: 0 10px; }
@media (hover:hover) { .btn-g:hover { background: var(--inset); } }
.btn-l { --h: auto; padding: 2px 0; background: none; color: var(--ink); text-decoration: underline; text-decoration-color: var(--rule-2); text-underline-offset: 4px; text-decoration-thickness: 1px; border-radius: 3px; }
@media (hover:hover) { .btn-l:hover { text-decoration-color: currentColor; } }
.btn-l:active { transform: none; }
.btn[aria-busy="true"] { cursor: progress; }
.btn:disabled, .btn[aria-disabled="true"] { cursor: not-allowed; }
.btn-q:disabled { opacity: .35; box-shadow: inset 0 0 0 1px var(--ink); }
.btn-s:disabled { color: var(--ink-3); box-shadow: inset 0 0 0 1px var(--rule); background: var(--raised); }
.btn:disabled:active { transform: none; }
.btn svg { flex: none; }
.spin { width: 14px; height: 14px; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- chips ---------- */
.chip { position: relative; height: 28px; padding: 0 11px; border-radius: 999px; border: 0; background: var(--raised); box-shadow: inset 0 0 0 1px var(--rule-2); font-size: 13px; cursor: pointer; white-space: nowrap; overflow: hidden; transition: box-shadow var(--t-fast) ease, background-color var(--t-fast) ease, transform var(--t-fast) ease; }
.chip:active { transform: scale(.97); }
.chip b { font-weight: 450; color: var(--ink-3); margin-left: 5px; }
.chip[aria-pressed="true"] { box-shadow: inset 0 0 0 1.5px var(--ink); font-weight: 600; }
.chip[aria-pressed="true"] b { font-weight: 450; color: var(--ink-2); }
.chip[aria-pressed="true"]:not([data-v="all"])::after { content: ""; position: absolute; top: 0; right: 0; border-style: solid; border-width: 0 8px 8px 0; border-color: transparent var(--or) transparent transparent; }
.chip:disabled { color: var(--ink-3); cursor: default; box-shadow: inset 0 0 0 1px var(--rule); }
.chip:disabled:active { transform: none; }
.chip:focus-visible { box-shadow: inset 0 0 0 1.5px var(--ink), var(--ring); border-radius: 999px; }
@media (hover:hover) { .chip:not(:disabled):hover { background: var(--hover); box-shadow: inset 0 0 0 1px var(--ink-3); } .chip[aria-pressed="true"]:hover { box-shadow: inset 0 0 0 1.5px var(--ink); } }
.fgroup { display: flex; align-items: center; gap: 5px; }
.fgroup > .fl { font-size: 13px; color: var(--ink-2); margin-right: 5px; white-space: nowrap; }
.fbar { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 22px; }
.pill { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--rule-2); font-size: 13px; color: var(--ink-2); white-space: nowrap; }
.pill b { color: var(--ink); font-weight: 600; margin-right: 4px; }
.tag-if { display: inline-flex; align-items: center; height: 18px; vertical-align: 1px; font-family: var(--sans); font-size: 11px; line-height: 1; font-weight: 600; letter-spacing: .08em; margin-left: 8px; padding: 0 7px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--rule-2); color: var(--ink-2); }

/* ---------- size field with Try chips ---------- */
.sf { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.sf-row { display: flex; align-items: center; gap: 8px 16px; min-width: 0; }
.sf-row .try { flex: 1 1 auto; }
.sizebox { position: relative; display: flex; align-items: center; height: 40px; width: 300px; max-width: 100%; flex: none; border-radius: var(--r-ctl); background: var(--raised); box-shadow: inset 0 0 0 1.5px var(--ink); padding: 0 6px 0 12px; gap: 10px; cursor: text; }
.sizebox label { font-size: 13px; font-weight: 600; white-space: nowrap; }
.sizebox input { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; font-family: var(--mono); font-size: 15px; outline: none; }
.sizebox input::placeholder { color: var(--ph); opacity: 1; }
.sizebox:focus-within { box-shadow: inset 0 0 0 1.5px var(--ink), var(--ring); }
.sf-lg .sizebox { height: 56px; width: 100%; padding: 0 10px 0 18px; gap: 14px; border-radius: 10px; box-shadow: inset 0 0 0 2px var(--ink); }
.sf-lg .sizebox:focus-within { box-shadow: inset 0 0 0 2px var(--ink), var(--ring); }
.sf-lg .sizebox label { font-size: 15px; }
.sf-lg .sizebox input { font-size: 20px; }
.sf-lg .sizebox .sf-go { height: 40px; }
.clr { width: 28px; height: 28px; flex: none; border: 0; background: none; border-radius: var(--r-in); color: var(--ink-3); cursor: pointer; display: grid; place-items: center; }
.clr[hidden] { display: none; }
@media (hover:hover) { .clr:hover { background: var(--inset); color: var(--ink); } }
.try { display: flex; align-items: center; gap: 6px; min-width: 0; flex-wrap: wrap; }
.try > span { font-size: 13px; color: var(--ink-2); margin-right: 2px; }
.tchip { height: 30px; padding: 0 11px; border: 0; border-radius: 999px; background: var(--raised); box-shadow: inset 0 0 0 1px var(--rule-2); font-family: var(--mono); font-size: 13px; cursor: pointer; white-space: nowrap; transition: box-shadow var(--t-fast) ease, transform var(--t-fast) ease; }
.tchip:active, .tchip.is-press { transform: scale(.97); }
@media (hover:hover) { .tchip:hover { box-shadow: inset 0 0 0 1px var(--ink); } }
.tchip:focus-visible { box-shadow: inset 0 0 0 1px var(--ink), var(--ring); border-radius: 999px; }
.sf-msg { font-size: 13px; color: var(--ink-2); min-height: 20px; }
.sf-msg b { color: var(--ink); font-weight: 680; }

/* ---------- panels ---------- */
.tool, .panel { min-width: 0; border: 1px solid var(--rule-2); border-radius: var(--r-panel); background: var(--bg); overflow: clip; }
.bar { background: var(--inset); border-bottom: 1px solid var(--rule-2); }
.bar-in { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 22px; padding: 12px 14px; }
.count { margin-left: auto; font-size: 14px; color: var(--ink-2); white-space: nowrap; }
.count b { font-weight: 680; color: var(--ink); font-size: 15px; }

/* ---------- size table (the size book) ---------- */
.book { position: relative; }
.flag { position: absolute; left: 0; right: 0; top: 0; height: 0; z-index: 0; background: var(--wash); box-shadow: inset 0 1px 0 var(--wash-rule), inset 0 -1px 0 var(--wash-rule); transform-origin: 0 50%; transform: scaleX(0); pointer-events: none; transition: top var(--t-base) var(--ease); }
.flag::after { content: ""; position: absolute; top: 0; right: 0; border-style: solid; border-width: 0 12px 12px 0; border-color: transparent var(--or) transparent transparent; }
.flag[hidden] { display: none; }
table.sizes { position: relative; z-index: 1; width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14px; line-height: 20px; }
.sizes th { position: sticky; top: 0; z-index: 3; background: var(--bg); text-align: left; padding: 10px 12px 8px; border-bottom: 1px solid var(--rule-2); white-space: nowrap; font-size: 11px; line-height: 1.2; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.sizes th:first-child, .sizes td:first-child { padding-left: 16px; }
.sizes th:last-child, .sizes td:last-child { padding-right: 16px; }
.sizes th.r, .sizes td.r { text-align: right; }
.sortb { display: inline-flex; align-items: center; gap: 4px; border: 0; background: none; padding: 2px 4px; margin: -2px -4px; font: inherit; letter-spacing: inherit; text-transform: inherit; color: inherit; cursor: pointer; border-radius: 4px; }
.sortb svg { opacity: .55; transition: transform var(--t-fast) var(--ease); }
.sortb[data-dir] { color: var(--ink); }
.sortb[data-dir] svg { opacity: 1; }
@media (hover:hover) { .sortb:hover { color: var(--ink); } }
.sizes td { padding: 7px 12px; border-bottom: 1px solid var(--rule); white-space: nowrap; background: transparent; }
.sizes td.sz { font-family: var(--mono); font-size: 13.5px; font-weight: 500; color: var(--ink); -webkit-text-stroke: .25px currentColor; }
.mth { display: inline-block; vertical-align: middle; width: 28px; height: 28px; margin: -4px 10px -4px 0; border-radius: 4px; background: var(--plate); overflow: hidden; box-shadow: inset 0 0 0 1px var(--plate-rule); }
.mth img { width: 28px; height: 28px; object-fit: contain; }
.sizes td .u { color: var(--ink-3); margin-left: 4px; }
.sizes tr.r { cursor: pointer; }
@media (hover:hover) { .sizes tr.r:not(.is-flag):hover td { background: var(--hover); } }
.sizes tr.r:not(.is-flag).is-hover td { background: var(--hover); }
.sizes tr.is-flag td { color: var(--wash-ink); border-bottom-color: transparent; }
.sizes tr.is-flag td .u { color: color-mix(in srgb, var(--wash-ink) 64%, transparent); }
.sizes tbody .other td { color: var(--ink-2); }
.sizes tbody .other td .u { color: var(--ink-3); }
.sizes tr.grp td { padding: 16px 16px 6px; font-size: 13px; color: var(--ink-2); cursor: default; }
.sizes tr.grp td b { color: var(--ink); font-weight: 600; }
.sizes tr.grp td .mono { color: var(--ink); }
.rowq { border: 0; background: none; padding: 2px 0; font-size: 13px; color: var(--rowq); cursor: pointer; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 3px; border-radius: 3px; }
@media (hover:hover) { .sizes tr.r:hover .rowq { color: var(--ink); text-decoration-color: currentColor; } }
tr.is-flag .rowq { color: var(--or-ink); font-weight: 600; text-decoration: none; }
.sizes .empty td { padding: 0; white-space: normal; }
.sizes tr.cap-hide { display: none !important; }
.sizes tr.more td { padding: 0; border-bottom: 0; }
.more-b { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 44px; border: 0; border-top: 1px solid var(--rule-2); background: var(--inset); font-size: 14px; font-weight: 600; color: var(--ink); cursor: pointer; }
@media (hover:hover) { .more-b:hover { background: var(--hover); text-decoration: underline; text-underline-offset: 3px; } }
.more-b:focus-visible { box-shadow: inset var(--ring); border-radius: 0 0 var(--r-panel) var(--r-panel); }
.sizes tr.qline td { background: var(--qline); padding: 14px 16px 16px; border-bottom: 0; box-shadow: inset 0 1px 0 var(--qrule), inset 0 -1px 0 var(--qrule); cursor: default; white-space: normal; }
.qwrap { display: grid; grid-template-columns: 56px minmax(170px, 1.1fr) minmax(220px, 1.4fr) auto; align-items: center; gap: 14px 24px; }
.qthumb { width: 56px; height: 56px; border-radius: var(--r-in); background: var(--plate); overflow: hidden; box-shadow: inset 0 0 0 1px var(--plate-rule); display: grid; place-items: center; }
.qthumb img { width: 56px; height: 56px; object-fit: contain; }
.qid { min-width: 0; }
.qname { font-size: 14px; font-weight: 600; line-height: 1.3; }
.qname .mono { font-weight: 400; font-size: 13.5px; }
.qact { display: flex; flex-direction: column; align-items: flex-end; gap: 7px; }
.reply { font-size: 13px; color: var(--ink-2); text-align: right; max-width: 210px; line-height: 1.35; }
.qfade { transition: opacity var(--t-wash) ease; }

/* ---------- set stepper ---------- */
.set { display: inline-flex; align-items: center; height: 32px; margin-top: 8px; border-radius: var(--r-ctl); background: var(--raised); box-shadow: inset 0 0 0 1px var(--rule-2); max-width: 100%; }
.set .stp { width: 30px; height: 32px; flex: none; border: 0; background: none; cursor: pointer; color: var(--ink-2); border-radius: var(--r-ctl); display: grid; place-items: center; }
.set .stp:active { transform: scale(.97); }
.set .stp:disabled { opacity: .35; cursor: default; }
.presets { display: flex; align-items: center; height: 32px; padding: 0 3px; border-left: 1px solid var(--rule); }
.pre { height: 26px; }
.pre { height: 32px; padding: 0 10px; border: 0; background: none; font-size: 13px; color: var(--ink-2); cursor: pointer; white-space: nowrap; position: relative; }
.pre[aria-pressed="true"] { color: var(--ink); font-weight: 680; box-shadow: inset 0 0 0 1.5px var(--ink); border-radius: 6px; }
.set .qin { width: 46px; height: 32px; border: 0; border-left: 1px solid var(--rule); border-right: 1px solid var(--rule); background: transparent; text-align: center; font-size: 14px; font-weight: 680; font-variant-numeric: tabular-nums; padding: 0 4px; }
.set .qin:focus-visible { outline: none; box-shadow: inset 0 0 0 1.5px var(--ink); border-radius: 4px; }
.set .presets { border-right: 0; }
@media (hover:hover) { .pre:hover { color: var(--ink); } .set .stp:not(:disabled):hover { color: var(--ink); background: var(--inset); } }
.qunit { font-size: 13px; color: var(--ink-2); margin-top: 8px; }

/* ---------- load line ---------- */
.lhead { font-size: 13.5px; color: var(--ink-2); }
.lhead b { color: var(--ink); font-weight: 680; font-size: 15px; }
.lbar { position: relative; height: 6px; border-radius: 3px; background: var(--rule-2); margin: 8px 0 7px; }
.lbar i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 3px; background: var(--ink); transition: width var(--t-slow) var(--ease); }
.lbar.over i { background: var(--err); }
.lbar s, .lbar u { position: absolute; top: -4px; bottom: -4px; width: 2px; margin-left: -1px; border-radius: 1px; text-decoration: none; }
.lbar s { background: var(--ink); }
.lbar u { background: var(--or); top: -6px; bottom: -6px; }
.loadline:not(.has-w) .lbar { display: none; }
.loadline:not(.has-w) .lfoot .pct { color: var(--ink-3); }
.lfoot { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 12.5px; color: var(--ink-2); }
.lfoot label { display: inline-flex; align-items: center; gap: 6px; }
.lfoot input { width: 7.5ch; min-width: 104px; height: 26px; border: 0; border-radius: 6px; background: var(--raised); box-shadow: inset 0 0 0 1px var(--rule-2); padding: 0 8px; font-size: 13px; text-align: right; }
.lfoot input::placeholder { color: var(--ph); opacity: 1; }
.lfoot input:focus-visible { box-shadow: inset 0 0 0 1.5px var(--ink), var(--ring); border-radius: 6px; }
.lfoot .pct b { color: var(--ink); font-weight: 600; }
.lfoot .pct.over b { color: var(--err); }
.fine { font-size: 13px; color: var(--ink-2); margin-top: 3px; }

/* ---------- measured tire (the hero object) ---------- */
.mt { position: relative; margin: 0; color: var(--ink); }
.mt-stage { position: relative; width: 100%; height: var(--mt-h, 520px); background: radial-gradient(48% 46% at 50% 56%, var(--stage-light), transparent 72%); }
.mt-img { position: absolute; left: 0; top: 0; z-index: 2; opacity: 0; transition: opacity var(--t-base) ease; user-select: none; -webkit-user-drag: none; }
.mt-img.on { opacity: 1; }
.mt-svg { position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; overflow: visible; pointer-events: none; color: var(--dim); }
.mt-svg .ln { stroke: currentColor; stroke-width: .75; fill: none; vector-effect: non-scaling-stroke; shape-rendering: geometricPrecision; }
.mt-svg .ext { stroke: currentColor; stroke-width: .75; fill: none; opacity: .8; }
.mt-svg .ah { fill: currentColor; stroke: none; }
.mt-svg .gl { stroke: var(--ground); stroke-width: 1; shape-rendering: crispEdges; }
.mt-svg .notch { fill: var(--or); }
.mt-svg g.is-on { color: var(--ink); }
.mt-shadow { position: absolute; z-index: 1; height: 6px; margin-top: -11px; border-radius: 50%; transform: translateX(-50%); background: transparent; box-shadow: 0 6px 10px rgba(var(--shadow-rgb),.28), 0 18px 32px rgba(var(--shadow-rgb),.10); pointer-events: none; }
.mt-lab { position: absolute; z-index: 4; font: 500 12px/16px var(--sans); font-variant-numeric: tabular-nums; color: var(--ink); white-space: nowrap; padding: 0 4px; background: var(--bg); transform: translate(-50%, -50%); pointer-events: auto; cursor: default; border-radius: 2px; }
.mt-lab.l-r { transform: translate(0, -50%); }
.mt-lab.l-t { transform: translate(-50%, -100%); background: transparent; }
.mt-lab .k { color: var(--ink-2); font-weight: 450; margin-left: 3px; }
.mt-code { display: flex; justify-content: center; flex-wrap: wrap; margin-top: 12px; font-family: var(--mono); font-size: 22px; line-height: 1.2; letter-spacing: 0; color: var(--ink); white-space: nowrap; }
.mt-code .s { position: relative; padding-bottom: 6px; transition: color var(--t-fast) ease; }
.mt-code .s::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--or); transform: scaleX(0); transform-origin: 0 50%; transition: transform var(--t-wash) ease-out; }
.mt-code .s.on { color: var(--seg); }
.mt-code .s.on::after { transform: scaleX(1); }
.mt-code .sp { width: .6em; }
.mt-cap { margin-top: 6px; text-align: center; font-size: 13px; color: var(--ink-2); }
.mt-cap b { color: var(--ink); font-weight: 680; margin-right: 6px; }
.mt.min .mt-code { font-size: 17px; margin-top: 12px; }
.mt.sm .mt-code { font-size: 15px; margin-top: 10px; }

/* ---------- breadcrumb ---------- */
.crumbs { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; align-items: center; font-size: 13px; color: var(--ink-2); }
.crumbs li { display: inline-flex; align-items: center; }
.crumbs li + li::before { content: "/"; margin: 0 8px; color: var(--ink-3); }
.crumbs a { text-decoration: none; border-radius: 3px; }
@media (hover:hover) { .crumbs a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; } }
.crumbs [aria-current="page"] { color: var(--ink); font-weight: 500; }

/* ---------- section head ---------- */
.sec { padding: 96px 0 0; }
.sec-h { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; margin-bottom: 28px; }
.sec-h p { margin: 0; font-size: 18px; line-height: 1.4; color: var(--ink-2); max-width: 52ch; justify-self: end; }

/* ---------- empty state ---------- */
.empty-s { padding: 28px 16px 30px; }
.empty-s p { margin: 0 0 12px; max-width: 56ch; color: var(--ink-2); }
.empty-s p b { color: var(--ink); font-weight: 600; }
.empty-s .acts { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- toast ---------- */
.toasts { position: fixed; z-index: 90; left: max(16px, calc((100vw - 1440px) / 2 + 32px)); bottom: 24px; display: grid; gap: 8px; justify-items: start; pointer-events: none; width: max-content; max-width: calc(100vw - 32px); }
.toast { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 8px 8px 14px; border-radius: 8px; background: var(--cta); color: var(--cta-ink); font-size: 14px; box-shadow: 0 1px 2px rgba(20,19,16,.18), 0 8px 24px rgba(20,19,16,.18); pointer-events: auto; animation: toastin var(--t-wash) ease-out; max-width: 100%; position: relative; overflow: hidden; }
.toast::after { content: ""; position: absolute; top: 0; right: 0; border-style: solid; border-width: 0 10px 10px 0; border-color: transparent var(--or) transparent transparent; }
.toast.out { opacity: 0; transform: translateY(6px) scale(.98); transition: opacity var(--t-base) ease, transform var(--t-base) ease; }
.toast svg { flex: none; }
.toast .ok { color: #7ED3A6; }
:root[data-theme="dark"] .toast .ok { color: var(--ok); filter: brightness(.6); }
.toast .ta { border: 0; background: none; color: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; padding: 4px 6px; border-radius: 4px; white-space: nowrap; }
.toast .ta:focus-visible { box-shadow: 0 0 0 2px var(--or); }
@keyframes toastin { from { opacity: 0; transform: translateY(8px); } }

/* ---------- page shells (area agents) ---------- */
.page { padding-top: 28px; }
.page-h { margin: 18px 0 28px; }
.stub { padding: 48px 0; max-width: 60ch; }
.stub p { color: var(--ink-2); }
.nf { padding: 56px 0 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.nf .code { font-family: var(--mono); font-size: 15px; color: var(--ink-2); }
.nf p { color: var(--ink-2); font-size: 18px; line-height: 1.4; max-width: 44ch; }
.nf .acts { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }

/* ---------- reflow ---------- */
@media (max-width: 1240px) { .phone small { display: none; } }
@media (max-width: 1100px) { .nav a:not(.l), .nav .sep { display: none; } }
@media (max-width: 860px) {
  .nav { display: none; }
  .phone { display: none; }
  .menu-b { display: inline-flex; align-items: center; height: 34px; padding: 0 12px; border: 0; border-radius: var(--r-ctl); background: none; box-shadow: inset 0 0 0 1px var(--rule-2); font-size: 14px; font-weight: 500; cursor: pointer; }
  .sheet { display: block; position: fixed; z-index: 70; top: 0; left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--rule-2); padding: 12px 16px 20px; transform: translateY(-102%); visibility: hidden; transition: transform var(--t-base) var(--ease), visibility 0s linear var(--t-base); }
  .sheet.open { transform: none; visibility: visible; transition: transform var(--t-base) var(--ease); }
  .sheet .sh-top { display: flex; justify-content: space-between; align-items: center; height: 40px; margin-bottom: 8px; }
  .sheet nav { display: grid; }
  .sheet nav a { text-decoration: none; font-size: 18px; font-weight: 600; padding: 12px 0; border-bottom: 1px solid var(--rule); }
  .sheet nav a span { display: block; font-size: 13px; font-weight: 450; color: var(--ink-2); }
  .sheet .sh-b { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; font-size: 14px; color: var(--ink-2); }
  .sheet .sh-b a { font-weight: 600; text-decoration: none; color: var(--ink); }
  .nf { grid-template-columns: 1fr; gap: 12px; }
}
@media (max-width: 760px) {
  :root { --hd: 56px; }
  .wrap { padding: 0 16px; }
  .site .wrap { gap: 12px; }
  .brand span { display: none; }
  .hd-r { gap: 8px; }
  .qbtn .lbl { display: none; }
  .qbtn { padding: 0 6px 0 10px; }
  .t-display { font-size: 40px; line-height: 1.04; letter-spacing: -0.015em; }
  .t-lead { font-size: 16px; }
  .sec { padding-top: 64px; }
  .sec-h { grid-template-columns: 1fr; gap: 12px; }
  .sec-h p { justify-self: start; font-size: 16px; }
  .sizebox { width: 100%; }
  .sf-lg .sizebox { height: 52px; }
  .sf-lg .sizebox input { font-size: 18px; }
  .try { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 2px 16px; }
  .sf-row { flex-direction: column; align-items: flex-start; }
  .sf-row .try { width: calc(100% + 32px); }
  .try::-webkit-scrollbar { display: none; }
  .tchip { height: 32px; flex: none; }
  .tool.bleed, .panel.bleed { margin: 0 -16px; border-radius: 0; border-left: 0; border-right: 0; }
  .count { margin-left: 0; font-size: 13px; }
  .fbar.scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .fbar.scroll::-webkit-scrollbar { display: none; }
  .foot { margin-top: 64px; }
  .foot-g { grid-template-columns: 1fr 1fr; }
  .foot-g > div:first-child { grid-column: 1 / -1; }
  .mt-code { font-size: 17px; }
}
/* the size book reflows by its own width (container query), so it works in any column */
.book { container: book / inline-size; }
@container book (max-width: 980px) { .sizes .c-li, .sizes .c-od, .sizes .c-tr { display: none; } }
@container book (max-width: 860px) { .sizes .c-line { display: none; } .sizes th, .sizes td { padding-left: 9px; padding-right: 9px; } .qwrap { grid-template-columns: 56px minmax(0, 1fr) auto; } .qwrap .qload { grid-column: 2 / -1; grid-row: 2; } }
@container book (max-width: 720px) {
  .sizes thead { display: none; }
  .sizes, .sizes tbody { display: block; }
  .sizes tr.r { display: grid; grid-template-columns: auto auto auto 1fr auto; column-gap: 14px; row-gap: 2px; padding: 11px 16px; border-bottom: 1px solid var(--rule); }
  .sizes tr.r td { display: block; padding: 0; border: 0; font-size: 13px; }
  .sizes tr.r td:first-child, .sizes tr.r td:last-child { padding: 0; }
  .sizes tr.r td.sz { grid-row: 1; grid-column: 1 / 5; font-size: 15px; }
  .sizes tr.r td.md { grid-row: 2; grid-column: 1 / 5; font-size: 13px; color: var(--ink-2); }
  .sizes tr.r td.q { grid-row: 1 / 3; grid-column: 5; align-self: center; text-align: right; }
  .sizes tr.r td.ld { grid-row: 3; grid-column: 1; text-align: left; margin-top: 4px; }
  .sizes tr.r td.sp { grid-row: 3; grid-column: 2; text-align: left; margin-top: 4px; }
  .sizes tr.r td.rm { grid-row: 3; grid-column: 3; text-align: left; margin-top: 4px; }
  .sizes tr.r td.lr { grid-row: 3; grid-column: 4; text-align: left; margin-top: 4px; }
  .sizes tr.r td.c-line, .sizes tr.r td.c-li, .sizes tr.r td.c-od, .sizes tr.r td.c-tr { display: none; }
  .sizes tr.r.is-flag { border-bottom-color: transparent; }
  .sizes tr.grp, .sizes tr.empty, .sizes tr.qline, .sizes tr.more { display: block; }
  .sizes tr.grp td, .sizes tr.empty td, .sizes tr.qline td, .sizes tr.more td { display: block; }
  .sizes tr.qline td { padding: 14px 16px 18px; }
  .qwrap { grid-template-columns: 56px minmax(0, 1fr); gap: 14px; }
  .qwrap .loadline, .qwrap .qact { grid-column: 1 / -1; grid-row: auto; }
  .qact { align-items: stretch; }
  .qact .btn { width: 100%; }
  .reply { text-align: left; max-width: none; }
  .pre { padding: 0 8px; }
  .sizes tr.r:not(.is-flag).is-hover { background: var(--hover); }
  @media (hover:hover) { .sizes tr.r:not(.is-flag):hover { background: var(--hover); } .sizes tr.r:not(.is-flag):hover td { background: transparent; } }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; }
}
