/* Section Line Tire Co. · catalog.css (catalog agent)
   #/tires/:line (category) and #/tires/:line/:model (detail). Tokens, components and the size book come
   from base.css; this file only lays out the catalog views. One primitive: the counter (tool panel + rail). */

.cx { --gap: 32px; }
.cx-sec { padding-top: 88px; }
.cx-crumbs, .dx-crumbs { padding-top: 22px; }

/* ================= category: the head band (loose around the headline) ================= */
.cx-head-g { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: var(--gap); align-items: center; }
.cx-head-l { padding: 36px 0 32px; }
.cx-h1 { white-space: nowrap; }
.cx-intro { margin: 20px 0 0; font-size: 18px; line-height: 1.45; color: var(--ink-2); max-width: 48ch; }
.cx-intro .mono { color: var(--ink); font-size: 16.5px; }
.cx-facts { margin: 18px 0 0; font-size: 14px; color: var(--ink-2); }
.cx-acts { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 22px; margin-top: 28px; }
.cx-acts .btn-l { --h: auto; padding: 2px 0; font-weight: 500; }
.cx-tire { margin: 0; min-width: 0; --mt-h: 440px; }

/* ================= category: model blocks ================= */
.cx-models { display: grid; }
.mb { display: grid; grid-template-columns: 240px minmax(0, 1fr) 300px; align-items: stretch; }
.mb + .mb { border-top: 1px solid var(--rule-2); }
.mb-ph { position: relative; display: block; background: var(--inset); border-right: 1px solid var(--rule); min-height: 240px; overflow: hidden; }
.mb-ph::after { content: ""; position: absolute; left: 44px; right: 44px; bottom: 16px; height: 12px; border-radius: 50%; background: radial-gradient(closest-side, rgba(var(--shadow-rgb),.26), rgba(var(--shadow-rgb),0)); }
.mb-ph img { position: absolute; z-index: 1; left: 50%; bottom: 20px; width: 196px; height: 196px; margin-left: -98px; object-fit: contain; transition: transform .2s var(--ease); }
@media (hover:hover) { .mb:hover .mb-ph img { transform: translateY(-3px); } }
.mb-tx { padding: 26px 32px 28px; min-width: 0; }
.mb-tx h3 { margin: 0; font-size: 28px; line-height: 1.15; font-weight: 680; letter-spacing: -0.01em; }
.mb-tx h3 a { text-decoration: none; border-radius: 3px; }
@media (hover:hover) { .mb-tx h3 a:hover { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 5px; } }
.mb-kind { margin: 4px 0 0; font-size: 14px; color: var(--ink-2); }
.mb-blurb { margin: 14px 0 0; max-width: 60ch; }
.mb-feat { margin: 14px 0 0; padding-top: 10px; border-top: 1px solid var(--rule); font-size: 13px; line-height: 1.5; color: var(--ink-2); max-width: 70ch; }
.mb-side { padding: 22px 24px 24px 0; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; min-width: 0; }
.mb-facts { margin: 0; width: 100%; display: grid; }
.mb-facts div { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--rule); font-size: 14px; }
.mb-facts dt { color: var(--ink-2); }
.mb-facts dd { margin: 0; font-weight: 600; text-align: right; }
.mb-side .btn { margin-top: auto; }

/* ================= category: the counter (size book + trade-note rail) ================= */
.cx-counter { display: grid; grid-template-columns: minmax(0, 1fr) 312px; column-gap: var(--gap); align-items: start; }
.cx-counter .bar-in { flex-wrap: nowrap; padding: 11px 14px; }
.cx-counter .fbar { gap: 8px 20px; min-width: 0; }
.cx-fbar .fgroup { flex-wrap: wrap; row-gap: 8px; }
.cx-cat[data-line="ag"] .cx-fbar .chip { padding: 0 10px; }
.cx-cat[data-line="ag"] .cx-fbar { gap: 8px 16px; }
.cx-clear { --h: 28px; font-size: 13px; font-weight: 500; }
.cx-rail { align-self: stretch; min-width: 0; }
.cx-rail-in { position: sticky; top: 16px; }
.cx-note .bar-in { padding: 14px 16px 12px; }
.cx-note h2 { margin: 0; font-size: 15px; font-weight: 680; line-height: 1.3; }
.note-b { padding: 14px 16px 18px; font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.note-b > p { margin: 0 0 12px; }
.note-b > p:last-child { margin-bottom: 0; }
.note-b b { color: var(--ink); font-weight: 600; }
.note-b .mono { color: var(--ink); font-size: 13px; }
.fine2 { font-size: 13px; }
.ntab { width: 100%; border-collapse: collapse; margin: 4px 0 14px; font-size: 13.5px; }
.ntab th { text-align: left; font-size: 11px; line-height: 1.2; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); padding: 0 0 7px; border-bottom: 1px solid var(--rule-2); }
.ntab td { padding: 6px 0; border-bottom: 1px solid var(--rule); color: var(--ink); }
.ntab .r { text-align: right; }
.ntab tr.on td { font-weight: 680; color: var(--ink); box-shadow: inset 0 1px 0 var(--ink), inset 0 -1px 0 var(--ink); }
.ntab tr.on td:first-child { box-shadow: inset 1px 1px 0 var(--ink), inset 0 -1px 0 var(--ink); border-radius: 4px 0 0 4px; }
.ntab tr.on td:last-child { box-shadow: inset -1px 1px 0 var(--ink), inset 0 -1px 0 var(--ink); border-radius: 0 4px 4px 0; }
.ntab tr.on td:first-child { padding-left: 8px; }
.ntab tr.on td:last-child { padding-right: 8px; }
.ntab .nt { font-size: 12px; font-weight: 450; color: var(--ink-2); margin-left: 6px; }
.dc { margin: 16px -16px 0; padding: 16px 16px 0; border-top: 1px solid var(--rule); }
.dc h3 { margin: 0 0 6px; font-size: 14px; font-weight: 680; color: var(--ink); }
.dc p { margin: 0; }
.dc-f { display: flex; align-items: center; gap: 10px; margin: 12px 0 10px; }
.dc-f label { font-size: 13px; font-weight: 600; color: var(--ink); }
.dc-f .inp { width: 128px; height: 36px; font-size: 16px; }
.dc-o { min-height: 42px; font-size: 13.5px; }
.dc-o.warn b { color: var(--warn); }
.dc-o.ok b { color: var(--ok); }
.tcodes { list-style: none; margin: 0 0 14px; padding: 0; }
.tcodes li { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--rule); }
.tcodes li:first-child { padding-top: 2px; }
.tc { font-weight: 680; color: var(--ink); font-size: 15px; }
.tcodes p { margin: 0 0 4px; }
.tcodes a { color: var(--ink); font-weight: 600; text-decoration: none; margin-right: 8px; }
@media (hover:hover) { .tcodes a:hover { text-decoration: underline; text-underline-offset: 3px; } }
.tcodes .dp { font-size: 12.5px; color: var(--ink-3); white-space: nowrap; }
.cx-more { --h: auto; font-size: 13px; font-weight: 500; padding: 0; }

/* ================= detail: gallery + quote box ================= */
.dx-top { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: 48px; align-items: start; padding-top: 18px; }
.gal { min-width: 0; --gal-h: 600px; }
.gal-stage { position: relative; height: var(--gal-h); border-radius: var(--r-panel); overflow: hidden; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.gs { position: absolute; inset: 0; margin: 0; opacity: 0; visibility: hidden; transition: opacity .18s ease, transform .2s var(--ease), visibility 0s linear .2s; }
.gs.is-on { opacity: 1; visibility: visible; transition: opacity .18s ease, transform .2s var(--ease); }
.gs-mt { display: flex; flex-direction: column; justify-content: center; padding: 8px 0 18px; }
.gs-mt .mt { --mt-h: calc(var(--gal-h) - 96px); }
.gs.photo { background: var(--inset); cursor: zoom-in; }
.gs.photo img { width: 100%; height: 100%; object-fit: cover; }
.gs.cut { cursor: zoom-in; }
.gs-mt.cut { cursor: default; }
.gs.cut:not(.gs-mt) img { position: absolute; left: 50%; top: 24px; bottom: 44px; height: calc(100% - 68px); width: auto; max-width: 92%; transform: translateX(-50%); object-fit: contain; z-index: 1; }
.gs-shadow { position: absolute; left: 22%; right: 22%; bottom: 34px; height: 18px; border-radius: 50%; background: radial-gradient(closest-side, rgba(var(--shadow-rgb),.32), rgba(var(--shadow-rgb),0)); }
.gs.cut:not(.gs-mt)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 42px; height: 1px; background: var(--ground); }
.gal-foot { position: absolute; z-index: 6; right: 12px; bottom: 12px; display: flex; align-items: center; gap: 8px; }
.gal-n { font-size: 12.5px; color: var(--ink-2); padding: 0 8px; height: 30px; display: inline-flex; align-items: center; border-radius: var(--r-ctl); background: color-mix(in srgb, var(--bg) 86%, transparent); }
.gal-zoom { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border: 0; border-radius: var(--r-ctl); background: var(--raised); box-shadow: inset 0 0 0 1px var(--rule-2), 0 1px 2px rgba(var(--shadow-rgb),.08); font-size: 13px; font-weight: 600; cursor: pointer; transition: box-shadow .12s ease, transform .1s ease; }
.gal-zoom:active { transform: scale(.97); }
@media (hover:hover) { .gal-zoom:hover { box-shadow: inset 0 0 0 1px var(--ink-3); } }
.gal-zoom:focus-visible { box-shadow: inset 0 0 0 1px var(--ink-2), var(--ring); border-radius: var(--r-ctl); }
.gal-nav { position: absolute; z-index: 6; top: 50%; width: 40px; height: 40px; margin-top: -20px; border: 0; border-radius: 50%; background: var(--raised); box-shadow: inset 0 0 0 1px var(--rule-2), 0 1px 3px rgba(var(--shadow-rgb),.1); color: var(--ink); display: grid; place-items: center; cursor: pointer; opacity: 0; transition: opacity .15s ease, transform .1s ease; }
.gal-nav.prev { left: 12px; } .gal-nav.next { right: 12px; }
.gal-nav:active { transform: scale(.95); }
.gal-stage:hover .gal-nav, .gal-nav:focus-visible { opacity: 1; }
.gal-nav:focus-visible { box-shadow: inset 0 0 0 1px var(--ink-2), var(--ring); border-radius: 50%; }
.gal-thumbs { display: flex; gap: 8px; margin-top: 12px; overflow-x: auto; scrollbar-width: none; padding: 3px; margin-left: -3px; margin-right: -3px; }
.gal-thumbs::-webkit-scrollbar { display: none; }
.gt { position: relative; flex: none; width: 96px; padding: 0; border: 0; background: none; cursor: pointer; text-align: left; border-radius: var(--r-ctl); }
.gt img { width: 96px; height: 72px; object-fit: cover; border-radius: 6px; background: var(--inset); box-shadow: inset 0 0 0 1px var(--rule); transition: box-shadow .12s ease, opacity .12s ease; opacity: .82; }
.gt.cut img { object-fit: contain; padding: 4px; }
.gt span { display: block; margin-top: 5px; font-size: 12px; color: var(--ink-2); white-space: nowrap; }
.gt[aria-current="true"] img { opacity: 1; box-shadow: 0 0 0 1.5px var(--ink); }
.gt[aria-current="true"] span { color: var(--ink); font-weight: 600; }
.gt[aria-current="true"]::after { content: ""; position: absolute; top: 0; right: 0; border-style: solid; border-width: 0 9px 9px 0; border-color: transparent var(--or) transparent transparent; border-top-right-radius: 6px; }
@media (hover:hover) { .gt:hover img { opacity: 1; } }
.gt:focus-visible { box-shadow: none; }
.gt:focus-visible img { box-shadow: 0 0 0 2px var(--bg), 0 0 0 3.5px var(--ink); }

.dx-buy { min-width: 0; padding-top: 12px; }
.dx-h1 { margin: 0; font-size: 48px; line-height: 1.04; font-weight: 680; letter-spacing: -0.02em; }
.dx-kind { margin: 10px 0 0; font-size: 16px; color: var(--ink-2); }
.dx-blurb { margin: 18px 0 0; max-width: 54ch; }
.dx-box { margin-top: 26px; }
.dx-box .bar-in { padding: 11px 16px; }
.dx-bh { margin: 0; font-size: 14px; font-weight: 680; }
.dx-in { padding: 16px 16px 18px; display: grid; gap: 16px; }
.dx-sizes { display: flex; flex-wrap: wrap; gap: 6px; }
.dsz { position: relative; display: inline-flex; align-items: baseline; gap: 6px; height: 34px; padding: 0 12px; border: 0; border-radius: var(--r-ctl); background: var(--raised); box-shadow: inset 0 0 0 1px var(--rule-2); cursor: pointer; overflow: hidden; align-items: center; transition: box-shadow .12s ease, transform .1s ease; }
.dsz .mono { font-size: 13.5px; }
.dsz small { font-size: 12px; color: var(--ink-3); }
.dsz:active { transform: scale(.97); }
@media (hover:hover) { .dsz:hover { box-shadow: inset 0 0 0 1px var(--ink-3); } }
.dsz[aria-checked="true"] { box-shadow: inset 0 0 0 1.5px var(--ink); }
.dsz[aria-checked="true"] small { color: var(--ink-2); }
.dsz[aria-checked="true"]::after { content: ""; position: absolute; top: 0; right: 0; border-style: solid; border-width: 0 8px 8px 0; border-color: transparent var(--or) transparent transparent; }
.dsz:focus-visible { box-shadow: inset 0 0 0 1.5px var(--ink), var(--ring); border-radius: var(--r-ctl); }
.dx-code { display: flex; flex-direction: column; gap: 2px; padding-top: 2px; }
.dx-code .mono { font-size: 17px; color: var(--ink); }
.dx-code span:not(.mono) { font-size: 13.5px; color: var(--ink-2); }
.dx-l { font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.dx-qrow .set { margin-top: 6px; }
.dx-load { padding-top: 14px; border-top: 1px solid var(--rule); }
.dx-cta { display: grid; gap: 8px; }
.dx-cta .btn { width: 100%; }
.dx-cta .reply { text-align: left; max-width: none; }

/* variant table (reuses the size book's table styles) */
.vbook { position: relative; container: vbook / inline-size; }
.vt .vsel { border: 0; background: none; padding: 0; font: inherit; color: inherit; cursor: pointer; border-radius: 3px; -webkit-text-stroke: inherit; }
.vt td.sz { font-size: 14px; }
.vt td { padding-top: 10px; padding-bottom: 10px; }
.rowq.in { display: inline-flex; align-items: center; gap: 4px; }
.dx-sub { margin: 8px 0 18px; color: var(--ink-2); }
.dx-sub .mono { color: var(--ink); font-size: 14px; }
.dx-sec .sec-h { margin-bottom: 22px; }
.dx-sec .sec-h a { color: var(--ink); font-weight: 600; }

/* specs + fits */
.dx-spec-g { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.spec { margin: 0; display: grid; grid-template-columns: 1fr; }
.spec div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 16px; border-bottom: 1px solid var(--rule); font-size: 14px; }
.spec dt { color: var(--ink-2); }
.spec dd { margin: 0; text-align: right; font-weight: 600; }
.spec dd .mono { font-weight: 400; font-size: 13.5px; }
.spec-f { list-style: none; margin: 0; padding: 14px 16px 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; background: var(--inset); font-size: 14px; }
.spec-f svg { color: var(--ink); }
.spec-f li, .fit li { display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: 8px; align-items: start; }
.spec-f svg, .fit svg { margin-top: 4px; }
.fit { padding: 16px 18px 18px; }
.fit + .fit { border-top: 1px solid var(--rule); }
.fit h3 { margin: 0 0 10px; font-size: 14px; font-weight: 680; }
.fit ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; font-size: 14px; color: var(--ink-2); }
.fit li span { color: var(--ink); }
.fit svg { color: var(--ink); }
.fit.no { background: var(--inset); }
.fit.no svg { color: var(--ink-2); }

/* related */
.dx-rel { list-style: none; margin: 0; padding: 0; }
.dx-rel li + li { border-top: 1px solid var(--rule); }
.dx-rel a { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto 20px; gap: 24px; align-items: center; padding: 10px 20px 10px 10px; text-decoration: none; }
.rel-ph { width: 96px; height: 96px; border-radius: var(--r-in); background: var(--inset); display: grid; place-items: center; overflow: hidden; }
.rel-ph img { width: 84px; height: 84px; object-fit: contain; }
.rel-tx b { display: block; font-size: 20px; font-weight: 680; letter-spacing: -0.005em; }
.rel-tx span, .rel-sz { font-size: 14px; color: var(--ink-2); }
.dx-rel svg { color: var(--ink-2); }
@media (hover:hover) { .dx-rel a:hover { background: var(--hover); } .dx-rel a:hover b { text-decoration: underline; text-underline-offset: 4px; } .dx-rel a:hover svg { color: var(--ink); } }

/* phone sticky Inquire bar */
.dx-bar { display: none; }

/* ================= lightbox ================= */
html.lb-open { overflow: hidden; }
.lb { --lb-bg: #FFFFFF; position: fixed; inset: 0; z-index: 95; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; background: var(--lb-bg); opacity: 0; transition: opacity .18s ease; }
.lb.on { opacity: 1; }
:root[data-theme="dark"] .lb { --lb-bg: #1A1A17; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .lb { --lb-bg: #1A1A17; } }
.lb-top { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px 12px 24px; border-bottom: 1px solid var(--rule); }
.lb-t { display: inline-flex; align-items: baseline; gap: 12px; font-size: 15px; }
.lb-t b { font-weight: 680; }
.lb-n { font-size: 13px; color: var(--ink-2); }
.lb-x { width: 40px; height: 40px; border: 0; border-radius: var(--r-ctl); background: none; color: var(--ink); display: grid; place-items: center; cursor: pointer; }
@media (hover:hover) { .lb-x:hover { background: var(--inset); } }
.lb-stage { position: relative; min-height: 0; margin: 20px 80px; touch-action: none; overflow: hidden; cursor: zoom-in; transform: scale(.985); transition: transform .2s var(--ease); background: radial-gradient(50% 50% at 50% 52%, var(--stage-light), transparent 72%); }
.lb.on .lb-stage { transform: none; }
.lb-z { position: absolute; inset: 0; transform-origin: 50% 50%; will-change: transform; }
.lb-stage.zoomed { cursor: grab; }
.lb-stage.zoomed:active { cursor: grabbing; }
.lb-stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; user-select: none; -webkit-user-drag: none; pointer-events: none; }
.lb-hint { position: absolute; left: 50%; top: 8px; transform: translateX(-50%); font-size: 12px; color: var(--ink-3); pointer-events: none; transition: opacity .15s ease; }
.lb-stage.zoomed .lb-hint { opacity: 0; }
.lb-hi { opacity: 0; transition: opacity .18s ease; }
.lb-hi.on { opacity: 1; }
.lb-load { position: absolute; left: 50%; bottom: -10px; width: 96px; height: 2px; margin-left: -48px; background: var(--rule-2); overflow: hidden; border-radius: 1px; transition: opacity .15s ease; }
.lb-load::after { content: ""; position: absolute; top: 0; bottom: 0; width: 40%; background: var(--ink-2); animation: lbload .9s var(--ease) infinite; }
.lb-stage.ready .lb-load { opacity: 0; }
@keyframes lbload { from { left: -40%; } to { left: 100%; } }
.lb-nav { position: absolute; top: 50%; width: 48px; height: 48px; margin-top: -24px; border: 0; border-radius: 50%; background: var(--raised); color: var(--ink); box-shadow: inset 0 0 0 1px var(--rule-2); display: grid; place-items: center; cursor: pointer; transition: transform .1s ease; }
.lb-nav.prev { left: 16px; } .lb-nav.next { right: 16px; }
.lb-nav:active { transform: scale(.95); }
.lb-nav:focus-visible { box-shadow: inset 0 0 0 1px var(--ink-2), var(--ring); border-radius: 50%; }
.lb-cap { margin: 0; padding: 12px 24px 18px; text-align: center; font-size: 14px; color: var(--ink-2); }

/* ================= reflow ================= */
@media (max-width: 1340px) { .cx-tire { --mt-h: 420px; } }
@media (max-width: 1240px) {
  .cx-counter { grid-template-columns: minmax(0, 1fr) 280px; column-gap: 24px; }
  .cx-counter .bar-in { flex-wrap: wrap; }
  .mb { grid-template-columns: 200px minmax(0, 1fr) 260px; }
  .mb-ph img { width: 168px; height: 168px; margin-left: -84px; }
  .dx-top { column-gap: 36px; }
  .gal { --gal-h: 540px; }
}
@media (max-width: 1100px) {
  .cx-counter { grid-template-columns: minmax(0, 1fr); }
  .cx-rail { margin-top: 24px; }
  .cx-rail-in { position: static; max-width: 640px; }
  .mb { grid-template-columns: 200px minmax(0, 1fr); }
  .mb-side { grid-column: 2; padding: 0 32px 26px; }
  .mb-facts { grid-template-columns: 1fr 1fr; column-gap: 24px; }
  .dx-top { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .gal { --gal-h: 480px; }
  .dx-h1 { font-size: 40px; }
  .dx-spec-g { grid-template-columns: minmax(0, 1fr); gap: 56px; }
}
@media (max-width: 860px) {
  .cx-head-g { grid-template-columns: minmax(0, 1fr); }
  .cx-head-l { padding: 24px 0 8px; }
  .cx-tire { --mt-h: 340px; }
  .dx-top { grid-template-columns: minmax(0, 1fr); }
  .gal { --gal-h: 440px; }
  .dx-buy { padding-top: 24px; }
}
@media (max-width: 760px) {
  .cx-sec { padding-top: 64px; }
  .cx-crumbs, .dx-crumbs { padding-top: 16px; }
  .cx-h1 { white-space: normal; }
  .cx-intro { font-size: 16px; margin-top: 14px; }
  .cx-facts { margin-top: 12px; font-size: 13.5px; }
  .cx-acts { margin-top: 20px; }
  .cx-tire { --mt-h: 280px; margin-top: 8px; }
  .cx-counter .bar-in { padding: 10px 16px 12px; gap: 8px; flex-direction: column; align-items: flex-start; }
  .cx-counter .fbar { margin: 0 -16px; width: calc(100% + 32px); flex-direction: column; align-items: stretch; flex-wrap: nowrap; gap: 8px; }
  .cx-fbar .fgroup { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding: 2px 16px; -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 24px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 24px), transparent); }
  .cx-fbar .fgroup::-webkit-scrollbar { display: none; }
  .cx-fbar .fgroup::after { content: ""; flex: none; width: 16px; height: 1px; }
  .cx-fbar .fgroup .chip { flex: none; }
  .cx-fbar .fgroup > .fl { flex: none; min-width: 72px; }
  .cx-fbar .cx-clear { align-self: flex-start; margin-left: 16px; }
  .cx-rail { margin: 24px -16px 0; }
  .cx-rail-in.panel { border-radius: 0; border-left: 0; border-right: 0; }
  .mb { grid-template-columns: 112px minmax(0, 1fr); }
  .mb-ph { min-height: 132px; grid-row: 1; }
  .mb-ph img { width: 96px; height: 96px; margin-left: -48px; bottom: 16px; }
  .mb-ph::after { left: 18px; right: 18px; bottom: 12px; height: 8px; }
  .mb-tx { padding: 18px 16px 4px; }
  .mb-tx h3 { font-size: 22px; }
  .mb-kind { font-size: 13px; }
  .mb-blurb { grid-column: 1 / -1; font-size: 14.5px; }
  .mb-feat { grid-column: 1 / -1; margin-top: 10px; }
  .mb-side { grid-column: 1 / -1; padding: 0 16px 20px; }
  .mb-tx .mb-blurb { margin-top: 8px; }
  .mb-side .btn { width: 100%; margin-top: 4px; }
  .mb-facts { column-gap: 16px; }
  .mb-facts div { font-size: 13px; }

  .gal { --gal-h: 340px; margin: 0 -16px; }
  .gal-stage { border-radius: 0; }
  .gal-thumbs { padding: 3px 16px; margin: 10px 0 0; }
  .gt { width: 76px; }
  .gt img { width: 76px; height: 57px; }
  .gal-nav { display: none; }
  .gs-mt { padding: 4px 0 10px; }
  .gs-mt .mt { --mt-h: calc(var(--gal-h) - 64px); }
  .gal-foot { right: 16px; bottom: auto; top: 10px; }
  .dx-h1 { font-size: 34px; }
  .dx-kind { font-size: 14.5px; margin-top: 6px; }
  .dx-blurb { font-size: 14.5px; margin-top: 12px; }
  .dx-box { margin: 20px -16px 0; border-radius: 0; border-left: 0; border-right: 0; }
  .dx-sec .tool.bleed { border-radius: 0; }
  .dx-spec-g { gap: 44px; }
  .spec { grid-template-columns: 1fr; }
  .spec-f { grid-template-columns: 1fr; }
  .dx-spec, .dx-fits { margin: 0 -16px; border-radius: 0; border-left: 0; border-right: 0; }
  .dx-rel { margin: 0 -16px; border-radius: 0; border-left: 0; border-right: 0; }
  .dx-rel a { grid-template-columns: 64px minmax(0, 1fr) 16px; gap: 14px; padding: 10px 16px; }
  .rel-ph { width: 64px; height: 64px; }
  .rel-ph img { width: 56px; height: 56px; }
  .rel-tx b { font-size: 17px; }
  .rel-sz { display: none; }

  .lb-top { padding: 8px 8px 8px 16px; }
  .lb-stage { margin: 12px 0; }
  .lb-nav { display: none; }
  .lb-cap { padding: 10px 16px 18px; font-size: 13px; }
}
@media (max-width: 720px) {
  .dx-bar { display: block; position: fixed; z-index: 60; left: 0; right: 0; bottom: 0; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--bg); border-top: 1px solid var(--rule-2); box-shadow: 0 -6px 18px rgba(var(--shadow-rgb),.06); transform: translateY(100%); visibility: hidden; transition: transform .2s var(--ease), visibility 0s linear .2s; }
  .dx-bar.on { transform: none; visibility: visible; transition: transform .2s var(--ease); }
  .dx-bar-in { display: flex; align-items: center; gap: 12px; }
  .dx-bar-t { flex: 1; min-width: 0; display: grid; line-height: 1.3; }
  .dx-bar-t .mono { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .dx-bar-t span:not(.mono) { font-size: 12.5px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .dx-bar .btn { flex: none; height: 44px; }
  body.has-dxbar .foot { padding-bottom: 96px; }
  body.dxbar-on .toasts { bottom: 84px; }
}

/* variant table: stacked rows when its column is narrow */
@container vbook (max-width: 720px) {
  .vt thead { display: none; }
  .vt, .vt tbody { display: block; }
  .vt tr.r { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 12px; row-gap: 8px; padding: 12px 16px 14px; border-bottom: 1px solid var(--rule); position: relative; }
  .vt tr.r td { display: block; padding: 0; border: 0; text-align: left; font-size: 13.5px; white-space: normal; }
  .vt tr.r td:first-child, .vt tr.r td:last-child { padding: 0; }
  .vt tr.r td[data-l]::before { content: attr(data-l); display: block; font-size: 11.5px; line-height: 1.3; color: var(--ink-3); }
  .vt tr.r td.sz { grid-column: 1 / 3; font-size: 15px; display: flex; align-items: center; }
  .vt tr.r td.sz::before { display: none; }
  .vt tr.r td.q { grid-column: 3; grid-row: 1; text-align: right; align-self: center; }
  .vt tr.r.is-flag { border-bottom-color: transparent; }
  .vt tr.is-flag td[data-l]::before { color: color-mix(in srgb, var(--wash-ink) 64%, transparent); }
  .vt .rowq { min-height: 32px; padding: 0 4px; }
}
/* category book: the model column is wide, so overall diameter drops out a step earlier than on home */
@container book (max-width: 1100px) { .cx-counter .sizes .c-od { display: none; } }
.tcodes a { display: block; margin: 0; }
.tcodes .dp { display: block; }

/* ================= round 1 additions ================= */
/* quote box: text this size */
.dx-sms { justify-self: start; font-size: 13px; color: var(--ink-2); text-decoration: underline; text-decoration-color: var(--rule-2); text-underline-offset: 3px; border-radius: 3px; }
@media (hover:hover) { .dx-sms:hover { color: var(--ink); text-decoration-color: currentColor; } }

/* one other model: an inline row, not a lonely card */
.dx-also { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; margin: 72px 0 0; padding: 16px 0; border-top: 1px solid var(--rule-2); border-bottom: 1px solid var(--rule); font-size: 15px; color: var(--ink-2); }
.dx-also a { color: var(--ink); text-decoration: none; border-radius: 3px; }
.dx-also a b { font-weight: 680; }
.dx-also a svg { vertical-align: -2px; margin-left: 2px; }
@media (hover:hover) { .dx-also a:hover b { text-decoration: underline; text-underline-offset: 4px; } }
.dx-also .dx-all { margin-left: auto; font-size: 14px; font-weight: 600; }

/* ag table: TT/TL pill beside IF */
.tag-tt { letter-spacing: .04em; }

/* trailer: what your trailer asks of each tire (under the counter) */
.cx-load { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: 48px; align-items: start; margin-top: 56px; padding: 40px 0 0; border-top: 1px solid var(--rule-2); }
.ls-lede p { margin: 12px 0 0; color: var(--ink-2); }
.ls-calc { margin-top: 22px; display: grid; gap: 14px; }
.ls-calc .inp { width: 150px; }
.ls-seg { display: inline-flex; border-radius: var(--r-ctl); box-shadow: inset 0 0 0 1px var(--rule-2); background: var(--raised); padding: 2px; max-width: 100%; }
.ls-seg button { height: 32px; padding: 0 12px; border: 0; background: none; border-radius: 6px; font-size: 13px; color: var(--ink-2); cursor: pointer; white-space: nowrap; }
.ls-seg button[aria-pressed="true"] { color: var(--ink); font-weight: 680; box-shadow: inset 0 0 0 1.5px var(--ink); }
@media (hover:hover) { .ls-seg button:hover { color: var(--ink); } }
.ls-need { margin: 0; font-size: 15px; color: var(--ink-2); }
.ls-need b { display: block; font-size: 28px; line-height: 1.15; font-weight: 680; color: var(--ink); letter-spacing: -0.01em; }
.ls-chart { border: 1px solid var(--rule-2); border-radius: var(--r-panel); padding: 8px 18px 14px; min-width: 0; }
.ls-h, .ls-pick { display: grid; grid-template-columns: 236px minmax(0, 1fr) 96px; gap: 12px; align-items: center; }
.ls-h { padding: 8px 0; border-bottom: 1px solid var(--rule-2); font-size: 11px; line-height: 1.2; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.ls-h .r { text-align: right; }
.ls-bars { position: relative; padding-top: 22px; }
.ls-bars ul { list-style: none; margin: 0; padding: 0; }
.ls-bars li { border-bottom: 1px solid var(--rule); }
.ls-bars li:last-child { border-bottom: 0; }
.ls-pick { width: 100%; height: 36px; border: 0; background: none; padding: 0; font: inherit; color: inherit; text-align: left; cursor: pointer; border-radius: 4px; }
@media (hover:hover) { .ls-pick:hover { background: var(--hover); } .ls-pick:hover .mono { text-decoration: underline; text-underline-offset: 3px; } }
.ls-pick .nm { font-size: 13px; white-space: nowrap; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.ls-pick .nm .mono { font-size: 13px; }
.ls-pick .nm span:not(.mono) { color: var(--ink-3); margin-left: 6px; }
.ls-pick .tr { position: relative; height: 10px; }
.ls-pick .tr i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 2px; background: var(--bar); }
.ls-pick .v { text-align: right; font-size: 13.5px; white-space: nowrap; line-height: 1.15; }
.ls-pick .v small { display: block; font-size: 13px; color: var(--ok); }
.ls-bars li.short .tr i { background: color-mix(in srgb, var(--ink) 35%, transparent); }
.ls-bars li.short .nm, .ls-bars li.short .v, .ls-bars li.short .v small { color: var(--ink-3); }
.ls-thr { position: absolute; top: 0; bottom: 0; width: 0; border-left: 1.5px dashed var(--ink); pointer-events: none; transition: left .2s var(--ease); z-index: 1; }
.ls-thr[hidden] { display: none; }
.ls-thr span { position: absolute; top: 2px; right: 6px; font-size: 13px; line-height: 1.2; font-weight: 600; white-space: nowrap; }
.ls-f { margin: 12px 0 0; font-size: 13px; color: var(--ink-2); }
@media (max-width: 1100px) { .cx-load { grid-template-columns: minmax(0, 1fr); gap: 28px; } }
@media (max-width: 760px) {
  .cx-load { margin-top: 48px; padding-top: 32px; }
  .ls-seg button { padding: 0 9px; }
  .ls-chart { padding: 6px 12px 12px; margin: 0 -16px; border-radius: 0; border-left: 0; border-right: 0; }
  .ls-h, .ls-pick { grid-template-columns: 104px minmax(0, 1fr) 76px; gap: 8px; }
  .ls-pick .nm span:not(.mono) { display: none; }
  .ls-pick .nm .mono, .ls-pick .v { font-size: 12px; }
  .dx-also .dx-all { margin-left: 0; }
}

/* ag phone: the stacked rows keep the load index (overall diameter already drops) */
@container book (max-width: 720px) {
  .cx-cat[data-line="ag"] .sizes tr.r td.c-li { display: block; grid-row: 4; grid-column: 1 / 5; text-align: left; margin-top: 2px; color: var(--ink-2); }
  .cx-cat[data-line="ag"] .sizes tr.r td.c-li::before { content: "Load index "; color: var(--ink-3); }
}

/* ================= round 2 ================= */
/* ag aside: tread-section drawings */
.tsec { display: block; margin-top: 8px; color: var(--ink); overflow: visible; }
.tsec path { fill: none; stroke: currentColor; stroke-width: 1; vector-effect: non-scaling-stroke; }
.tsec .cc { stroke: var(--ink-3); }
.ls-bars li.short .v small { color: var(--ink-2); }
/* field shot: a 3:1 band under the gallery */
.gal-band { position: relative; display: block; width: 100%; margin-top: 16px; padding: 0; border: 0; background: var(--inset); border-radius: var(--r-panel); overflow: hidden; cursor: zoom-in; aspect-ratio: 3 / 1; }
.gal-band img { width: 100%; height: 100%; object-fit: cover; transition: transform .2s var(--ease); }
@media (hover:hover) { .gal-band:hover img { transform: scale(1.015); } }
.gal-band-l { position: absolute; left: 12px; bottom: 12px; height: 28px; display: inline-flex; align-items: center; padding: 0 10px; border-radius: var(--r-ctl); background: color-mix(in srgb, var(--bg) 88%, transparent); font-size: 13px; font-weight: 600; color: var(--ink); }
.gal-band:focus-visible { box-shadow: var(--ring); }
@media (max-width: 760px) { .gal-band { width: calc(100% - 32px); margin: 14px 16px 0; border-radius: var(--r-ctl); } }
.tsec .rf { stroke: var(--ink-3); stroke-dasharray: 2 2; }
.tsec .cc { stroke: var(--ink); }
