/* TBS Oil Slick. Dark only. No drop shadows. --slick is limited to the places listed in docs/design/dichro-oil-slick.md */
:root {
	color-scheme: dark;
	--ink: #0A0A12; --surface: #161624; --raise: #1F1F31; --line: #2A2A40;
	--muted: #8C8CA6; --text: #F0F0F5;
	--teal: #19D3C5; --violet: #8B5CF6; --magenta: #F0509B;
	--slick: linear-gradient(100deg, #19D3C5, #8B5CF6 52%, #F0509B);
	--r-btn: 10px; --r-card: 12px; --r-pill: 999px;
	--f-head: Unbounded, 'Arial Black', system-ui, sans-serif;
	--f-body: Figtree, system-ui, -apple-system, 'Segoe UI', sans-serif;
	--f-mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
body { background: var(--ink); color: var(--text); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.wp-site-blocks > * + * { margin-block-start: 0; }

/* Focus: visible magenta ring everywhere */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
	outline: 2px solid var(--magenta); outline-offset: 3px; border-radius: 6px;
}
.tbs-chip input:focus-visible + label { outline: 2px solid var(--magenta); outline-offset: 2px; }

/* ---------- Buttons ---------- */
.tbs-btn, .wp-block-button__link, .woocommerce button.button, .wc-block-components-button {
	display: inline-flex; align-items: center; justify-content: center; gap: .5em;
	border-radius: var(--r-btn); border: 1px solid transparent; cursor: pointer;
	font: 700 .9375rem/1 var(--f-body); padding: .85em 1.4em; text-decoration: none;
}
.tbs-btn--primary { background: var(--teal); color: var(--ink); }
.tbs-btn--primary:hover { background: #3FE3D6; text-decoration: none; }
.tbs-btn--ghost { background: var(--raise); color: var(--text); border-color: var(--line); }
.tbs-btn--ghost:hover { border-color: var(--muted); text-decoration: none; }
.tbs-btn--sm { padding: .6em 1em; font-size: .875rem; }
.tbs-btn--block { width: 100%; }
.tbs-btn[disabled] { background: var(--raise); color: var(--text); border-color: var(--line); cursor: not-allowed; } /* a clearly "off" look WITHOUT opacity, which dropped the label below AA contrast */
.tbs-link { color: var(--teal); }
.tbs-iconbtn { background: var(--raise); color: var(--text); border: 1px solid var(--line); border-radius: var(--r-btn); width: 40px; height: 40px; cursor: pointer; }

/* ---------- Announcement bar (solid, not a gradient) and header ---------- */
.tbs-announce { background: var(--raise); color: var(--teal); border-bottom: 1px solid var(--line); font: 600 .8125rem/1.2 var(--f-body); padding: .5rem 1rem; }
.tbs-announce p { margin: 0; color: var(--teal); }
.tbs-header { position: sticky; top: 0; z-index: 50; background: rgba(10,10,18,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); padding: .75rem 1rem; }
.admin-bar .tbs-header { top: 32px; }
.tbs-header__row { gap: 1rem 1.5rem; }
.tbs-header__tools { gap: .75rem; margin-inline-start: auto; }
.tbs-logo { display: inline-flex; align-items: center; gap: .6rem; color: var(--text); font: 800 1.05rem/1 var(--f-head); text-decoration: none; }
.tbs-logo:hover { text-decoration: none; }
.tbs-nav ul { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; list-style: none; margin: 0; padding: 0; }
.tbs-nav a { color: var(--text); font-weight: 600; font-size: .9375rem; text-decoration: none; padding: .35rem 0; display: inline-block; }
.tbs-nav a:hover { color: var(--teal); }
.tbs-footer .tbs-nav ul { flex-direction: column; }
@media (max-width: 899px) {
	.tbs-header__row { display: grid !important; grid-template-columns: minmax(0, 1fr) auto; } /* minmax(0,..): a plain 1fr grows to the nav's full width and stretches the whole page */
	.tbs-header__row > * { min-width: 0; }
	.tbs-header .tbs-nav { grid-row: 2; grid-column: 1 / -1; overflow-x: auto; max-width: 100%; }
	.tbs-header .tbs-nav ul { flex-wrap: nowrap; white-space: nowrap; }
	.admin-bar .tbs-header { top: 46px; }
}
/* Small phones: logo, a compact search and the cart share one row without clipping the wordmark. */
@media (max-width: 479px) {
	.tbs-header__row { column-gap: .5rem; }
	.tbs-header .tbs-logo { font-size: .9rem; gap: .4rem; white-space: nowrap; }
	.tbs-header .tbs-logo__mark { width: 26px; height: 26px; }
	.tbs-header__tools { gap: .5rem; }
	.tbs-header .tbs-search__input { min-width: 0; width: 5.25rem; padding-inline: .75rem; }
}

/* Search + predictive list */
.tbs-search { position: relative; }
.tbs-search__input { width: min(30vw, 280px); min-width: 150px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-pill); color: var(--text); padding: .6rem 1rem; font: 500 .9375rem var(--f-body); }
.tbs-search__input::placeholder { color: var(--muted); }
.tbs-search__list { position: absolute; right: 0; top: calc(100% + 8px); width: min(92vw, 380px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); list-style: none; margin: 0; padding: .35rem; max-height: 70vh; overflow: auto; z-index: 60; }
.tbs-search__list li a { display: grid; grid-template-columns: 48px 1fr auto; gap: .75rem; align-items: center; padding: .5rem; border-radius: 8px; color: var(--text); text-decoration: none; }
.tbs-search__list li[aria-selected="true"] a, .tbs-search__list li a:hover { background: var(--raise); }
.tbs-search__list img { width: 48px; height: 48px; object-fit: contain; background: #000; border-radius: 6px; }
.tbs-search__list small { display: block; color: var(--muted); font: 400 .75rem var(--f-mono); }
.tbs-search__list .tbs-price { font-size: .8125rem; }
.tbs-search__all a { grid-template-columns: 1fr !important; color: var(--teal) !important; font-weight: 600; }

.tbs-cart-btn { position: relative; background: var(--raise); color: var(--text); border: 1px solid var(--line); border-radius: var(--r-btn); width: 44px; height: 44px; display: grid; place-items: center; cursor: pointer; }
.tbs-cart-btn__count { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: var(--r-pill); background: var(--teal); color: var(--ink); font: 700 .75rem/20px var(--f-mono); text-align: center; }
.tbs-cart-btn__count:empty, .tbs-cart-btn__count[data-n="0"] { display: none; }

/* ---------- Typography helpers ---------- */
.tbs-eyebrow { font: 500 .8125rem/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 1rem; }
.tbs-slick-text { background: var(--slick); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.tbs-price, .tbs-price .amount, .tbs-price bdi { font-family: var(--f-mono); font-weight: 500; color: var(--magenta); }
.tbs-price del, .tbs-price del .amount, .tbs-price del bdi { color: var(--muted); }
.tbs-price ins { text-decoration: none; }
.tbs-price--lg { font-size: 1.5rem; }
.tbs-plainlist { list-style: none; padding: 0; margin: 0; }
.tbs-plainlist a { color: var(--text); }

/* ---------- Badges / chips ---------- */
.tbs-badge { display: inline-block; border-radius: var(--r-pill); padding: .3em .75em; font: 500 .75rem/1.2 var(--f-mono); background: var(--raise); color: var(--text); border: 1px solid var(--line); }
.tbs-badge--set { background: var(--slick); color: var(--ink); border: 0; font-weight: 500; }
.tbs-badge--out { color: var(--muted); }
.tbs-badge--sale { color: var(--teal); }

/* ---------- Hero ---------- */
.tbs-hero { position: relative; isolation: isolate; overflow: hidden; padding: clamp(2.5rem, 7vw, 6rem) 1rem; min-height: min(78vh, 680px); display: flex; align-items: center; }
.tbs-hero::before { content: ''; position: absolute; inset: -20% -10% auto auto; width: 70%; aspect-ratio: 1; z-index: -2; background: radial-gradient(closest-side, rgba(139,92,246,.28), transparent); } /* ambient violet glow */
.tbs-hero__media { position: absolute; inset: 0 0 0 38%; z-index: -1; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 40%); mask-image: linear-gradient(90deg, transparent 0, #000 40%); }
.tbs-hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.tbs-hero__copy { width: min(1280px, 100%); margin-inline: auto; }
.tbs-hero__copy > * { max-width: 34rem; }
.tbs-hero__title { font-size: var(--wp--preset--font-size--hero); font-weight: 800; margin: 0 0 1rem; }
.tbs-hero__lead { font-size: 1.1875rem; color: var(--text); margin: 0 0 1.5rem; }
.tbs-specstrip { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1.75rem; padding: 0; }
.tbs-specstrip div { background: rgba(31,31,49,.85); border: 1px solid var(--line); border-radius: var(--r-btn); padding: .5rem .85rem; }
.tbs-specstrip dt { color: var(--muted); font: 400 .6875rem/1 var(--f-mono); text-transform: uppercase; letter-spacing: .08em; }
.tbs-specstrip dd { margin: .25rem 0 0; font: 500 .9375rem/1 var(--f-mono); }
.tbs-hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; }
@media (max-width: 799px) { .tbs-hero__media { inset: 0; opacity: .35; -webkit-mask-image: linear-gradient(180deg, #000, transparent 85%); mask-image: linear-gradient(180deg, #000, transparent 85%); } }

/* ---------- Fit Finder ---------- */
.tbs-fitbar { margin-block: 1rem 3rem; padding: 1px; border-radius: var(--r-card); background: var(--slick); } /* 1px gradient outline */
.tbs-fitbar__inner { display: flex; flex-wrap: wrap; align-items: end; gap: 1rem; background: var(--ink); border-radius: calc(var(--r-card) - 1px); padding: 1rem 1.25rem; }
.tbs-fitbar__title { font: 800 1rem var(--f-head); margin: 0 1rem 0 0; align-self: center; }
.tbs-field { display: grid; gap: .3rem; }
.tbs-field label { font: 500 .75rem var(--f-mono); color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.tbs-field select, .woocommerce select, .wp-block-woocommerce-catalog-sorting select, .variations select, input[type="number"], .tbs-fit select {
	background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: var(--r-btn); padding: .65rem .9rem; font: 500 .9375rem var(--f-body); min-width: 9rem;
}
.tbs-chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.tbs-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tbs-chip label { display: inline-flex; gap: .45rem; align-items: baseline; background: var(--raise); border: 1px solid var(--line); border-radius: var(--r-pill); padding: .45rem .9rem; cursor: pointer; font: 500 .875rem var(--f-body); color: var(--text); }
.tbs-chip label small { font: 400 .75rem var(--f-mono); color: var(--muted); }
.tbs-chip input:checked + label { background: var(--teal); border-color: var(--teal); color: var(--ink); }
.tbs-chip input:checked + label small { color: var(--ink); }

/* Shop layout: filters left, grid right */
.tbs-shop__layout { display: grid; gap: 2rem; grid-template-columns: minmax(0, 1fr); align-items: start; } /* minmax(0,..) everywhere: a plain 1fr grows to its content and stretches the page past a phone's width */
.tbs-shop__layout > * { min-width: 0; }
@media (min-width: 900px) { .tbs-shop__layout { grid-template-columns: 260px minmax(0, 1fr); } .tbs-fit { position: sticky; top: 96px; } }
.tbs-fit { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 1rem 1.1rem; }
.tbs-fit > summary { cursor: pointer; font: 800 1rem var(--f-head); list-style: none; display: flex; justify-content: space-between; }
.tbs-fit > summary::-webkit-details-marker { display: none; }
.tbs-fit__n { font: 500 .8125rem var(--f-mono); color: var(--teal); }
.tbs-fit__group { border: 0; padding: 0; margin: 1.1rem 0 0; }
.tbs-fit__group legend { font: 500 .75rem var(--f-mono); color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin-bottom: .5rem; padding: 0; }
.tbs-fit__actions { margin: 1.25rem 0 0; }
.tbs-results[data-busy="true"] { opacity: .5; transition: opacity .15s; }
.tbs-toolbar { margin-bottom: 1.25rem; align-items: center; }
.tbs-toolbar .woocommerce-result-count { color: var(--muted); font: 400 .875rem var(--f-mono); margin: 0; }

/* ---------- Category tiles ---------- */
.tbs-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1rem; list-style: none; padding: 0; margin: 0 auto 4rem; }
.tbs-tile { position: relative; display: block; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); color: var(--text); text-decoration: none; aspect-ratio: 4/5; }
.tbs-tile { background: #000; }
.tbs-tile img { width: 100%; height: 100%; object-fit: contain; transition: transform .4s; } /* product shots on black: show the whole product, no crop */
.tbs-tile:hover img { transform: scale(1.04); }
.tbs-tile::after { content: ''; position: absolute; inset: 40% 0 0; background: linear-gradient(transparent, var(--ink)); }
.tbs-tile__label, .tbs-tile__count { position: absolute; left: 1rem; z-index: 1; }
.tbs-tile__label { bottom: 2.1rem; font: 600 1.125rem var(--f-head); }
.tbs-tile__count { bottom: 1rem; font: 400 .8125rem var(--f-mono); color: var(--muted); }

/* ---------- Product grid + card ---------- */
.tbs-section { margin-bottom: 4.5rem; }
.tbs-collection .wc-block-product-template, .tbs-grid { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 1rem; list-style: none; padding: 0; margin: 0; }
.tbs-collection .wc-block-product-template > li { margin: 0; width: auto; }
.tbs-grid > li { margin: 0; }
@media (max-width: 599px) { .tbs-collection .wc-block-product-template, .tbs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; } }
.tbs-card { min-width: 0; }
.tbs-card__title, .tbs-card__spec { overflow-wrap: anywhere; }

.tbs-card { display: flex; flex-direction: column; height: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; }
.tbs-card__media { position: relative; display: block; aspect-ratio: 1; background: #000; overflow: hidden; } /* photos are shot on pure black: no frame */
.tbs-card__media img { width: 100%; height: 100%; object-fit: contain; }
.tbs-card__media .tbs-badge { position: absolute; top: .6rem; left: .6rem; z-index: 2; }
@property --sheen { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
.tbs-card__media::after { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0; mix-blend-mode: screen; transition: opacity .35s;
	background: conic-gradient(from var(--sheen), transparent 0deg, rgba(25,211,197,.22) 70deg, rgba(139,92,246,.26) 150deg, rgba(240,80,155,.22) 230deg, transparent 300deg); }
.tbs-card:hover .tbs-card__media::after, .tbs-card:focus-within .tbs-card__media::after { opacity: 1; animation: tbs-sheen 8s linear infinite; }
@keyframes tbs-sheen { to { --sheen: 360deg; } }
.tbs-card__body { display: flex; flex-direction: column; gap: .5rem; padding: .9rem 1rem 1rem; flex: 1; }
.tbs-card__title { margin: 0; font: 600 .9375rem/1.3 var(--f-body); }
.tbs-card__title a { color: var(--text); text-decoration: none; }
.tbs-card__title a:hover { color: var(--teal); }
.tbs-card__spec { margin: 0; font: 400 .75rem/1.4 var(--f-mono); color: var(--muted); }
.tbs-swatches { display: flex; flex-wrap: wrap; gap: .35rem; list-style: none; margin: 0; padding: 0; }
.tbs-swatches a { display: inline-block; background: var(--raise); border: 1px solid var(--line); border-radius: var(--r-pill); padding: .2rem .6rem; font: 500 .75rem var(--f-mono); color: var(--text); text-decoration: none; }
.tbs-swatches a:hover { border-color: var(--teal); }
.tbs-card__foot { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; padding-top: .5rem; }
.tbs-card__foot .tbs-price { font-size: .9375rem; }

/* ---------- Product page ---------- */
.tbs-pdp__top { display: grid; gap: 2rem; grid-template-columns: 1fr; margin-block: 1rem 3rem; }
@media (min-width: 900px) { .tbs-pdp__top { grid-template-columns: 1.15fr 1fr; gap: 3rem; } .tbs-gallery { position: sticky; top: 100px; align-self: start; } }
.tbs-gallery__main { background: #000; border-radius: var(--r-card); overflow: hidden; }
.tbs-gallery__main img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.tbs-gallery__thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 72px)); gap: .5rem; list-style: none; padding: 0; margin: .75rem 0 0; }
.tbs-thumb { padding: 0; background: #000; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; cursor: pointer; }
.tbs-thumb[aria-pressed="true"] { border-color: var(--teal); }
.tbs-thumb img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.tbs-spec { width: 100%; border-collapse: collapse; margin-top: 1.5rem; font-size: .9375rem; }
.tbs-spec th, .tbs-spec td { text-align: left; padding: .65rem 0; border-bottom: 1px solid var(--line); }
.tbs-spec th { color: var(--muted); font: 400 .8125rem var(--f-mono); text-transform: uppercase; letter-spacing: .06em; width: 40%; }
.tbs-spec td { font-family: var(--f-mono); }

/* Variant buttons (progressive enhancement of Woo's selects, see product.js) */
.tbs-opts { display: flex; flex-wrap: wrap; gap: .5rem; }
.tbs-opt { background: var(--raise); color: var(--text); border: 1px solid var(--line); border-radius: var(--r-btn); padding: .6rem 1rem; font: 500 .9375rem var(--f-mono); cursor: pointer; }
.tbs-opt[aria-pressed="true"] { background: var(--teal); border-color: var(--teal); color: var(--ink); }
.tbs-opt[disabled] { opacity: .4; text-decoration: line-through; cursor: not-allowed; }
.variations { width: 100%; border-collapse: collapse; margin-bottom: 1rem; }
.variations th, .variations td { text-align: left; padding: .4rem 0; display: block; }
.variations th label { font: 500 .8125rem var(--f-mono); color: var(--muted); text-transform: uppercase; }
.reset_variations { color: var(--muted); font-size: .8125rem; }
form.cart { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
form.cart .single_add_to_cart_button { background: var(--teal); color: var(--ink); border-radius: var(--r-btn); border: 0; padding: .95rem 1.8rem; font: 700 1rem var(--f-body); cursor: pointer; }
form.cart .single_add_to_cart_button.disabled, form.cart .single_add_to_cart_button:disabled { background: var(--raise); color: var(--text) !important; border: 1px solid var(--line); cursor: not-allowed; opacity: 1; }
.woocommerce-variation-add-to-cart, .single_variation_wrap { width: 100%; }
.woocommerce-variation-price .price { font-family: var(--f-mono); }
.quantity input.qty { width: 4.5rem; text-align: center; }
/* Category description: 2 lines until "Read more" (JS sets data-collapsed; without JS the full text shows) */
.tbs-termdesc-wrap .tbs-termdesc { max-width: none; margin-inline: 0; }
.tbs-termdesc { color: var(--muted); }
.tbs-termdesc > * { max-width: 70ch; }
.tbs-termdesc > :first-child { margin-top: 0; }
.tbs-termdesc { line-height: 1.6; }
.tbs-termdesc[data-collapsed="true"] { max-height: 4.8em; overflow: hidden; } /* 3 lines */
.tbs-termdesc[data-collapsed="true"] > * { margin: 0; }
.tbs-termdesc__toggle { background: none; border: 0; padding: .25rem 0; margin-bottom: 1.5rem; color: var(--teal); font: 600 .9375rem var(--f-body); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.tbs-fits, .tbs-reviews { margin-block: 3.5rem; }
.tbs-fits__note, .tbs-pick .tbs-pick__note { display: inline-block; margin: .5rem 0 0; padding: .15rem .6rem; border: 1px solid var(--line); border-radius: var(--r-pill); background: var(--raise); color: var(--muted); font: 500 .75rem var(--f-mono); }
.tbs-pick .tbs-pick__note { margin: 0 .75rem .75rem; }
.tbs-reviews .star-rating { color: var(--teal); }
.tbs-reviews textarea, .tbs-reviews input[type=text], .tbs-reviews input[type=email], input[type=text], input[type=email], input[type=tel], input[type=password], input[type=search], textarea { background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: var(--r-btn); padding: .7rem .9rem; font: 400 1rem var(--f-body); }
.tbs-reviews .commentlist { list-style: none; padding: 0; }
.tbs-reviews .commentlist li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 1rem; margin-bottom: .75rem; }
.tbs-reviews .comment-form-rating select { display: none; } /* Woo swaps in .stars (jQuery) */
.tbs-reviews .stars a { color: var(--teal); }

/* Sticky add-to-cart (mobile only) */
.tbs-sticky { display: none; }
@media (max-width: 799px) {
	.tbs-sticky:not([hidden]) { position: fixed; inset: auto 0 0 0; z-index: 40; display: flex; align-items: center; justify-content: space-between; gap: 1rem; background: var(--surface); border-top: 1px solid var(--line); padding: .75rem 1rem calc(.75rem + env(safe-area-inset-bottom)); }
	.tbs-sticky__info { display: grid; min-width: 0; }
	.tbs-sticky__info strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .875rem; }
	.tbs-pdp { padding-bottom: 6rem; }
}

/* ---------- Build a Set ---------- */
.tbs-set { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 1000px) { .tbs-set { grid-template-columns: 1fr 340px; align-items: start; } }
.tbs-set__steps { display: grid; gap: 2rem; }
.tbs-set__step h2 { font-size: 1.125rem; display: flex; align-items: center; gap: .75rem; }
.tbs-set__step h2 span { display: inline-grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--raise); border: 1px solid var(--line); font: 500 .875rem var(--f-mono); }
.tbs-set__step[data-locked="true"] .tbs-pick img { filter: grayscale(.9) brightness(.7); } /* locked step: dim the pictures only, never the text */ /* dim only the inactive picks: heading and message stay at full contrast (AA) */
.tbs-set__options { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .75rem; }
.tbs-pick { text-align: left; background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: var(--r-card); padding: 0; cursor: pointer; overflow: hidden; }
.tbs-pick[aria-pressed="true"] { border-color: var(--teal); }
.tbs-pick img { width: 100%; aspect-ratio: 1; object-fit: contain; background: #000; }
.tbs-pick span { display: block; padding: .5rem .75rem 0; font-size: .8125rem; line-height: 1.3; }
.tbs-pick small { display: block; padding: .15rem .75rem .75rem; font: 500 .8125rem var(--f-mono); color: var(--muted); }
.tbs-set__summary { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 1.25rem; position: sticky; top: 100px; }
.tbs-set__summary ul { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: .6rem; font-size: .875rem; }
.tbs-set__summary li { display: flex; justify-content: space-between; gap: 1rem; }
.tbs-set__row { display: flex; justify-content: space-between; font: 500 .9375rem var(--f-mono); margin-block: .35rem; }
.tbs-set__row--total { font-size: 1.25rem; border-top: 1px solid var(--line); padding-top: .75rem; margin-top: .75rem; }
.tbs-set__msg { color: var(--muted); font-size: .875rem; margin: .75rem 0 0; }
.tbs-setteaser { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: clamp(1.5rem, 4vw, 3rem); }
.tbs-setteaser h2 { margin-top: 1rem; }

/* ---------- Trust row, footer ---------- */
.tbs-trust { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1rem; list-style: none; padding: 0; margin: 0 auto 4rem; }
.tbs-trust li { border-left: 2px solid var(--line); padding-left: 1rem; display: grid; gap: .2rem; }
.tbs-trust span { color: var(--muted); font-size: .875rem; }
.tbs-footer { padding: 0 1rem 2rem; margin-top: 3rem; }
.tbs-footer__rule { height: 1px; background: var(--slick); margin-bottom: 2.5rem; }
.tbs-footer .wp-block-heading { font: 600 .8125rem var(--f-mono); color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.tbs-legal { margin: 2rem 0 0; color: var(--muted); font-size: .8125rem; max-width: 60ch; }
.tbs-legal strong { color: var(--text); }

/* ---------- Cart drawer + age gate (native <dialog>: focus trap + Esc for free) ---------- */
dialog { color: var(--text); padding: 0; border: 0; }
dialog::backdrop { background: rgba(5,5,10,.72); }
.tbs-drawer { margin: 0 0 0 auto; width: min(100vw, 420px); height: 100dvh; max-height: 100dvh; background: var(--surface); border-left: 1px solid var(--line); }
.tbs-drawer[open] { animation: tbs-slide .25s ease-out; }
@keyframes tbs-slide { from { transform: translateX(100%); } }
.tbs-drawer__panel { display: flex; flex-direction: column; height: 100%; }
.tbs-drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.25rem; border-bottom: 1px solid var(--line); }
.tbs-drawer__head h2 { margin: 0; font-size: 1.125rem; }
.tbs-drawer__ship { margin: 0; padding: .75rem 1.25rem; font-size: .875rem; color: var(--text); background: var(--raise); }
.tbs-meter { height: 4px; background: var(--line); border-radius: 4px; margin-top: .5rem; overflow: hidden; }
.tbs-meter > i { display: block; height: 100%; background: var(--teal); }
.tbs-drawer__body { flex: 1; overflow: auto; padding: 1rem 1.25rem; }
.tbs-line { display: grid; grid-template-columns: 64px 1fr auto; gap: .75rem; padding-bottom: 1rem; margin-bottom: 1rem; border-bottom: 1px solid var(--line); }
.tbs-line img { width: 64px; height: 64px; object-fit: contain; background: #000; border-radius: 8px; }
.tbs-line__name { font-weight: 600; font-size: .9375rem; line-height: 1.3; color: var(--text); text-decoration: none; }
.tbs-line__meta { display: block; font: 400 .75rem var(--f-mono); color: var(--muted); }
.tbs-qty { display: inline-flex; align-items: center; margin-top: .4rem; border: 1px solid var(--line); border-radius: var(--r-pill); }
.tbs-qty button { background: none; border: 0; color: var(--text); width: 32px; height: 32px; cursor: pointer; font-size: 1rem; }
.tbs-qty output { min-width: 1.5rem; text-align: center; font: 500 .875rem var(--f-mono); }
.tbs-line__right { text-align: right; display: grid; align-content: space-between; justify-items: end; }
.tbs-line__rm { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: .75rem; text-decoration: underline; padding: 0; }
.tbs-empty { color: var(--muted); }
.tbs-drawer__upsell { padding: 1rem 1.25rem; border-top: 1px solid var(--line); background: var(--ink); }
.tbs-drawer__upsell h3 { font: 500 .75rem var(--f-mono); color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin: 0 0 .6rem; }
.tbs-up { display: grid; grid-template-columns: 48px 1fr auto; gap: .65rem; align-items: center; margin-bottom: .5rem; font-size: .875rem; }
.tbs-up img { width: 48px; height: 48px; object-fit: contain; background: #000; border-radius: 6px; }
.tbs-drawer__foot { padding: 1rem 1.25rem calc(1rem + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); display: grid; gap: .75rem; text-align: center; }
.tbs-drawer__sub { display: flex; justify-content: space-between; margin: 0; }

.tbs-modal { margin: auto; width: min(92vw, 440px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); }
.tbs-modal::backdrop { background: #05050A; } /* plain dark overlay: no blur (a blur mirrored and repeated the page at the edges) */
.tbs-modal__box { padding: 2rem; text-align: center; }
.tbs-modal__box h2 { margin-top: 0; font-size: 1.5rem; }
.tbs-modal__actions { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; margin-top: 1.5rem; }
.tbs-modal__deny { color: var(--magenta); font-weight: 600; }

/* ---------- Woo cart/checkout/account: dark integration ---------- */
.wc-block-components-text-input input, .wc-blocks-components-select select, .wc-block-components-textarea { background: var(--surface) !important; color: var(--text) !important; border-color: var(--line) !important; }
.wc-block-components-text-input label, .wc-block-components-product-metadata, .wc-block-components-product-name { color: var(--muted) !important; }
.wc-block-components-product-name { color: var(--text) !important; }
.wc-block-components-button:not(.is-link) { background: var(--teal) !important; color: var(--ink) !important; }
.woocommerce-message, .woocommerce-info, .woocommerce-error { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-btn); padding: .9rem 1.1rem; list-style: none; color: var(--text); }
table { border-color: var(--line); }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; }
	.tbs-card__media::after { display: none; } /* conic sheen off */
}

/* Build a Set: step 1 quick filters */
.tbs-set__filters { display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; margin-bottom: 1rem; }
.tbs-set__fgroup { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; }
.tbs-set__flabel { font: 500 .75rem var(--f-mono); color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin-inline-end: .25rem; }
.tbs-set__chip { background: var(--raise); color: var(--text); border: 1px solid var(--line); border-radius: var(--r-pill); padding: .4rem .85rem; font: 600 .8125rem var(--f-body); cursor: pointer; }
.tbs-set__chip:hover { border-color: var(--muted); }
.tbs-set__chip[aria-pressed="true"] { border-color: var(--teal); color: var(--teal); }
.tbs-set__chip--clear { background: none; color: var(--teal); border-color: transparent; text-decoration: underline; text-underline-offset: 3px; }
.tbs-set__more { margin-top: 1rem; }

/* New arrivals: 8 products always fill complete rows (4 across, or 2 across on small screens) */
.tbs-section--arrivals .tbs-collection .wc-block-product-template { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 899px) { .tbs-section--arrivals .tbs-collection .wc-block-product-template { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Prices never wrap: a range reads "From $29.95" */
.tbs-price { white-space: nowrap; }
.tbs-from { font: 400 .75rem var(--f-body); color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin-inline-end: .2em; }
.tbs-set__hidden { color: var(--muted); font-size: .875rem; margin: .75rem 0 0; max-width: 60ch; }
.tbs-set__hidden a { color: var(--teal); }
/* Category description sits UNDER the product grid and pagination */
.tbs-termdesc-wrap { margin-block: 3rem 1rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }

/* ---------- WooCommerce classic elements (cart, checkout, my account) on the dark palette, WCAG AA ----------
   WooCommerce's own selectors are more specific than the theme's, so these repeat them. */
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .woocommerce #respond input#submit,
.woocommerce a.button.alt, .woocommerce button.button.alt, .woocommerce input.button.alt, .woocommerce #respond input#submit.alt,
form.cart .single_add_to_cart_button, .woocommerce #payment #place_order {
	background-color: var(--teal); color: var(--ink) !important; border: 0; border-radius: var(--r-btn); font-weight: 700;
}
.woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce input.button:hover, .woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover, form.cart .single_add_to_cart_button:hover, .woocommerce #payment #place_order:hover { background-color: #3FE3D6; color: var(--ink) !important; }
.woocommerce button.button:disabled, .woocommerce button.button[disabled], .woocommerce a.button.disabled { background-color: var(--raise); color: var(--text) !important; opacity: .7; }
.woocommerce .woocommerce-info, .woocommerce .woocommerce-message, .woocommerce .woocommerce-error, .woocommerce-form-coupon-toggle .woocommerce-info,
.woocommerce form.checkout_coupon, .woocommerce form.woocommerce-form-login, .woocommerce-checkout #payment, .woocommerce-checkout #payment div.payment_box {
	background-color: var(--surface) !important; color: var(--text) !important; border: 1px solid var(--line); border-top-color: var(--line);
}
.woocommerce-checkout #payment div.payment_box::before { border-bottom-color: var(--surface) !important; }
.woocommerce .woocommerce-info::before, .woocommerce .woocommerce-message::before { color: var(--teal) !important; }
.woocommerce .woocommerce-info a, .woocommerce .woocommerce-message a:not(.button), .woocommerce .woocommerce-error a { color: var(--teal) !important; text-decoration: underline; text-underline-offset: 3px; }
.woocommerce a.remove, .woocommerce a.remove:visited { color: var(--magenta) !important; background: transparent !important; font-weight: 700; }
.woocommerce a.remove:hover { color: var(--ink) !important; background: var(--magenta) !important; }
.woocommerce form .form-row .required, .woocommerce abbr.required { color: var(--magenta) !important; text-decoration: none; }
/* WooCommerce block-style notices (checkout "Click here to login", coupon, errors) ship as a light box with dark text */
.wc-block-components-notice-banner, .wc-block-components-notice-banner.is-info, .wc-block-components-notice-banner.is-success, .wc-block-components-notice-banner.is-warning, .wc-block-components-notice-banner.is-error {
	background-color: var(--surface) !important; color: var(--text) !important; border: 1px solid var(--line) !important; border-radius: var(--r-card);
}
.wc-block-components-notice-banner a, .wc-block-components-notice-banner .wc-forward { color: var(--teal) !important; text-decoration: underline; text-underline-offset: 3px; }
.wc-block-components-notice-banner > svg { background-color: var(--teal) !important; fill: var(--ink) !important; }
.wc-block-components-notice-banner.is-error { border-color: var(--magenta) !important; }
.wc-block-components-notice-banner.is-error > svg { background-color: var(--magenta) !important; }

/* ---------- Footer columns (4 across; 2 x 2 on phones) ---------- */
.tbs-footer__brand { margin-bottom: 2rem; }
.tbs-footer__brand p { max-width: 46ch; margin: .75rem 0 0; }
.tbs-fcols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem 1.5rem; }
@media (max-width: 699px) { .tbs-fcols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tbs-fcol__title { font: 600 .8125rem var(--f-mono); color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin: 0 0 .75rem; }
.tbs-fcol ul { display: grid; gap: .1rem; }
.tbs-fcol a { display: inline-block; padding: .4rem 0; min-height: 24px; color: var(--text); text-decoration: none; }
.tbs-fcol a:hover { color: var(--teal); text-decoration: underline; }

/* ---------- Content pages (About, Contact, Returns, Privacy, Terms) ---------- */
.tbs-page { padding-inline: 1rem; }
.tbs-page .wp-block-post-content h2 { margin-top: 2.5rem; font-size: 1.5rem; }
.tbs-page .wp-block-post-content h3 { margin-top: 2rem; font-size: 1.15rem; }
.tbs-page .wp-block-post-content h4 { margin-top: 1.5rem; font-size: 1rem; }
.tbs-page .wp-block-post-content ul { list-style: disc; padding-left: 1.25rem; }
.tbs-page .wp-block-post-content ol { list-style: decimal; padding-left: 1.25rem; }
.tbs-page .wp-block-post-content a { color: var(--teal); }
.tbs-page .wp-block-post-content .wp-block-button__link { display: inline-flex; background: var(--teal); color: var(--ink); border-radius: var(--r-btn); padding: .85em 1.4em; font: 700 .9375rem/1 var(--f-body); text-decoration: none; }
.tbs-page .wp-block-post-content .wp-block-button__link:hover { background: #3FE3D6; }
.tbs-quote { margin: 1.25rem 0; padding: .25rem 0 .25rem 1rem; border-left: 2px solid var(--line); }
.tbs-quote p { margin: 0 0 .25rem; }
.tbs-quote cite { color: var(--muted); font: 400 .875rem var(--f-mono); font-style: normal; }

/* ---------- Contact form ---------- */
.tbs-contact { max-width: 640px; }
.tbs-form__row { display: grid; gap: .4rem; margin: 0 0 1.25rem; }
.tbs-form label { font: 500 .8125rem var(--f-mono); color: var(--text); letter-spacing: .04em; }
.tbs-form input[type="text"], .tbs-form input[type="email"], .tbs-form textarea {
	width: 100%; background: var(--surface); color: var(--text); border: 1px solid var(--muted); border-radius: var(--r-btn);
	padding: .8rem .9rem; font: 400 1rem var(--f-body); box-sizing: border-box;
}
.tbs-form textarea { min-height: 9rem; resize: vertical; }
.tbs-form [aria-invalid="true"] { border-color: var(--magenta); border-width: 2px; }
.tbs-req { color: var(--magenta); }
.tbs-form__err { color: var(--magenta); font-size: .9rem; }
.tbs-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.tbs-notice { border: 1px solid var(--line); border-left-width: 4px; border-radius: var(--r-btn); background: var(--surface); padding: 1rem 1.25rem; margin: 0 0 1.5rem; color: var(--text); }
.tbs-notice--ok { border-left-color: var(--teal); }
.tbs-notice--err { border-left-color: var(--magenta); }
.tbs-notice ul { margin: .5rem 0 0; padding-left: 1.25rem; }
.tbs-notice a { color: var(--text); text-decoration: underline; }

/* ---------- Product video thumbnail + player ---------- */
.tbs-thumb--video { position: relative; display: grid; place-items: center; width: 100%; aspect-ratio: 1; background: var(--raise); }
.tbs-thumb--video img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tbs-thumb__play { position: relative; }
.tbs-gallery__video { display: grid; place-items: center; width: 100%; aspect-ratio: 1; background: #000; }
.tbs-gallery__video iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; display: block; }

/* Articles: tall photos stay readable, tables and galleries fit the column */
.tbs-page .wp-block-post-content figure.wp-block-image img { height: auto; max-height: 80vh; width: auto; max-width: 100%; margin-inline: auto; display: block; }
.tbs-page .wp-block-post-content .wp-block-table table { width: 100%; border-collapse: collapse; }
.tbs-page .wp-block-post-content .wp-block-table th, .tbs-page .wp-block-post-content .wp-block-table td { border: 1px solid var(--muted); padding: .5rem .75rem; text-align: left; }
.tbs-page .wp-block-post-content .wp-block-gallery { margin-block: 2rem; }

/* ---------- "Which banger?" quiz (docs/design/quiz.md). Gradient only on the "Best match" badge (.tbs-badge--set). ---------- */
.tbs-fitbar__quiz { align-self: center; color: var(--teal); font: 600 .875rem var(--f-body); text-decoration: underline; text-underline-offset: 3px; }
.tbs-quizbanner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1.5rem; margin-block: 0 1.5rem; padding: 1rem 1.25rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); }
.tbs-quizbanner p { margin: 0; max-width: 62ch; }
.tbs-quiz { max-width: 960px; margin-inline: auto; }
.tbs-quiz__progress { margin-bottom: 1.5rem; }
.tbs-quiz__count { margin: 0 0 .5rem; font: 500 .8125rem var(--f-mono); color: var(--muted); }
.tbs-quiz__bar { height: 4px; background: var(--raise); border-radius: var(--r-pill); overflow: hidden; }
.tbs-quiz__bar span { display: block; height: 100%; background: var(--teal); }
.tbs-quiz__q { border: 0; margin: 0; padding: 0; min-width: 0; }
.tbs-quiz__q legend { padding: 0; margin-bottom: 1rem; }
.tbs-quiz__q h2, .tbs-quiz h2:focus { font-size: clamp(1.25rem, 3.5vw, 1.75rem); margin: 0; outline: none; }
.tbs-quiz__opts { display: grid; gap: .6rem; grid-template-columns: 1fr; }
@media (min-width: 700px) { .tbs-quiz__opts { grid-template-columns: 1fr 1fr; } }
.tbs-quiz__opt { display: flex; align-items: center; gap: .75rem; min-height: 56px; padding: .75rem 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); cursor: pointer; font-size: 1rem; line-height: 1.35; }
.tbs-quiz__opt:hover { border-color: var(--muted); }
.tbs-quiz__opt:has(input:checked) { border-color: var(--teal); background: var(--raise); }
.tbs-quiz__opt:has(input:focus-visible) { outline: 2px solid var(--magenta); outline-offset: 2px; }
.tbs-quiz__opt input { accent-color: var(--teal); width: 1.25rem; height: 1.25rem; flex: none; margin: 0; }
.tbs-quiz__hint { margin-top: 1rem; color: var(--muted); font-size: .9375rem; max-width: 68ch; }
.tbs-quiz__hint summary { cursor: pointer; color: var(--teal); font-weight: 600; }
.tbs-quiz__hint p { margin: .5rem 0 0; }
.tbs-quiz__nav, .tbs-quiz__foot { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.tbs-quiz__nav .tbs-btn[disabled] { background: var(--raise); color: #B8B8CC; border-color: var(--line); cursor: not-allowed; } /* readable (AA) while waiting for an answer */
.tbs-quiz__chips { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; margin: 1rem 0; padding: 0; }
.tbs-quiz__status { font-size: 1.0625rem; margin: 1rem 0; max-width: 68ch; }
.tbs-quiz__tip { margin: 0 0 1.25rem; padding: .85rem 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); color: var(--muted); font-size: .9375rem; max-width: 76ch; }
.tbs-quiz__tip strong { color: var(--text); }
.tbs-quiz__results { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
.tbs-qcard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 1.25rem; display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; overflow-wrap: anywhere; }
.tbs-qcard__main { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 1rem; align-items: start; }
@media (min-width: 700px) { .tbs-qcard__main { grid-template-columns: 160px minmax(0, 1fr); } }
.tbs-qcard__main img { width: 100%; aspect-ratio: 1; object-fit: contain; background: #000; border-radius: 8px; }
.tbs-qcard h3 { font-size: 1.125rem; margin: .5rem 0 .25rem; }
.tbs-qcard h3 a { color: var(--text); text-decoration: none; }
.tbs-qcard h3 a:hover { text-decoration: underline; }
.tbs-qcard__spec { margin: 0 0 .25rem; font: 500 .8125rem var(--f-mono); color: var(--muted); }
.tbs-qcard__why { margin: .5rem 0 0; color: var(--teal); font-size: .9375rem; }
.tbs-qcard__diff { margin: .5rem 0 0; color: var(--text); font-size: .9375rem; border-left: 3px solid var(--magenta); padding-left: .75rem; }
.tbs-qcard__check { margin: .5rem 0 0; color: var(--muted); font-size: .875rem; }
.tbs-qcard__parts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: .5rem; }
.tbs-qpart { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: .75rem; align-items: center; padding: .6rem; background: var(--ink); border: 1px solid var(--line); border-radius: 10px; }
.tbs-qpart img { width: 56px; height: 56px; object-fit: contain; background: #000; border-radius: 6px; }
.tbs-qpart__t small { display: block; font: 500 .6875rem var(--f-mono); color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.tbs-qpart__t a { color: var(--text); font-size: .9375rem; line-height: 1.3; }
.tbs-qpart .tbs-pick__note { margin: .25rem 0 0; }
.tbs-qswap { grid-column: 1 / -1; }
.tbs-qswap:empty { display: none; }
.tbs-qswap__panel { margin-top: .5rem; display: grid; grid-template-columns: minmax(0, 1fr); gap: .4rem; }
.tbs-qswap__panel fieldset { border: 0; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: .4rem; min-width: 0; }
.tbs-qswap__opt { display: flex; align-items: center; gap: .6rem; padding: .5rem .75rem; background: var(--raise); border: 1px solid var(--line); border-radius: 8px; cursor: pointer; font-size: .875rem; }
.tbs-qswap__opt:has(input:checked) { border-color: var(--teal); }
.tbs-qswap__opt input { accent-color: var(--teal); }
.tbs-qcard__none { color: var(--muted); font-size: .875rem; padding: .25rem .1rem; }
.tbs-qcard__sum { max-width: 360px; }
.tbs-qcard__act { display: flex; flex-wrap: wrap; gap: .75rem; }
.tbs-quiz a:not(.tbs-btn) { color: var(--teal); }
.tbs-quiz .tbs-qcard h3 a, .tbs-quiz .tbs-qpart__t a { color: var(--text); }
.tbs-qswap__panel[hidden] { display: none; }

/* Q3 drawings: muted grey lines, teal on the chosen option. Stay readable and tappable at 390px. */
.tbs-quiz__opt--pic { color: var(--muted); }
.tbs-quiz__opt--pic > span:last-child { color: var(--text); }
.tbs-quiz__opt--pic:has(input:checked) .tbs-quiz__pic { color: var(--teal); }
.tbs-quiz__opt { --qbg: var(--surface); }
.tbs-quiz__opt:has(input:checked) { --qbg: var(--raise); }
.tbs-quiz__pic { flex: none; display: block; width: 124px; line-height: 0; }
.tbs-quiz__pic svg { width: 100%; height: auto; display: block; }
@media (max-width: 520px) { .tbs-quiz__opt--pic { gap: .6rem; padding: .5rem .75rem .5rem .6rem; min-height: 80px; } .tbs-quiz__pic { width: 100px; } }

/* ---------- Carb Caps: "Shop by style" tiles beside the category text (inc/cap-styles.php) ---------- */
.tbs-catinfo { margin-block: 3rem 1rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.tbs-catinfo .tbs-termdesc-wrap { margin: 0; padding: 0; border: 0; }
.tbs-capstyles-wrap { margin-top: 2rem; }
@media (min-width: 900px) {
	.tbs-catinfo--styles { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 440px); gap: 3rem; align-items: start; }
	.tbs-capstyles-wrap { margin-top: 0; position: sticky; top: 96px; }
}
.tbs-capstyles__title { margin: 0 0 1rem; font: 600 1.125rem var(--f-head); color: var(--text); }
.tbs-capstyles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .875rem; }
.tbs-capstyle { height: 100%; box-sizing: border-box; display: flex; flex-direction: column; align-items: center; gap: .3rem; padding: 1rem .75rem 1.1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); color: var(--text); text-decoration: none; text-align: center; transition: border-color .2s, transform .2s, box-shadow .2s; }
.tbs-capstyle svg { width: 88px; height: 88px; color: var(--teal); flex: none; }
.tbs-capstyle:hover, .tbs-capstyle:focus-visible { border-color: var(--magenta); transform: translateY(-2px); box-shadow: 0 6px 24px rgba(240, 80, 155, .15); }
.tbs-capstyle[aria-current="true"] { border-color: var(--teal); box-shadow: inset 0 0 0 1px var(--teal); }
.tbs-capstyle__name { font: 600 1rem var(--f-head); }
.tbs-capstyle__blurb { font-size: .8125rem; line-height: 1.4; color: var(--muted); }
.tbs-capstyle__count { font: 400 .75rem var(--f-mono); color: var(--teal); }
.tbs-capstyles__wide { grid-column: 1 / -1; }
.tbs-capstyle--wide { flex-direction: row; text-align: left; gap: 1rem; padding: .875rem 1.25rem; }
.tbs-capstyle--wide svg { width: 72px; height: 72px; }
.tbs-capstyle--wide > span { display: flex; flex-direction: column; gap: .3rem; }
@media (prefers-reduced-motion: reduce) { .tbs-capstyle { transition: none; } .tbs-capstyle:hover { transform: none; } }
.tbs-activefilter { flex-basis: 100%; margin: .25rem 0 0; font-size: .875rem; color: var(--muted); }
.tbs-activefilter strong { color: var(--text); }
.tbs-activefilter a { color: var(--teal); }
