@font-face {
    font-family: "Barlow Semi Condensed";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("../fonts/barlow-semi-condensed-700-latin.woff2") format("woff2");
}
@font-face {
    font-family: "Barlow Semi Condensed";
    font-style: normal;
    font-weight: 800;
    font-display: swap;
    src: url("../fonts/barlow-semi-condensed-800-latin.woff2") format("woff2");
}

:root {
    color-scheme: light;
    --bg: #f6f4ee;
    --panel: #fff;
    --text: #242823;
    --muted: #545b52;
    --border: #d8d9cf;
    --accent: #f26a00;
    --accent-dark: #c25400;
    --accent-soft: #fff1e6;
    --focus: #285d46;
    --ink: #262f27;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text);
    background: var(--bg);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; line-height: 1.55; }
a { color: var(--focus); text-underline-offset: .18em; }
a:hover { text-decoration-thickness: .12em; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
img { display: block; max-width: 100%; }
input, select, textarea, button { font: inherit; color: inherit; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.16; text-wrap: balance; }
h1 { font-size: clamp(2rem, 4vw, 3.5rem); font-weight: 750; letter-spacing: -.045em; margin-bottom: .6em; }
h2 { font-size: clamp(1.25rem, 2.5vw, 1.85rem); letter-spacing: -.023em; margin-bottom: .65em; }
h3 { font-size: 1.05rem; }
.container { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
.site-main { flex: 1; padding-block: 34px 72px; }
.site-header, .site-footer { background: var(--panel); border-color: var(--border); }
.site-header { border-bottom: 1px solid var(--border); }
.site-footer { border-top: 1px solid var(--border); }
.service-bar { background: var(--ink); color: #eeefe6; font-size: .85rem; }
.service-inner { padding-block: 7px; text-align: center; font-weight: 700; }
.hero-serial:focus-visible { outline-color: #ffae6d; }
.masthead, .footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.masthead { min-height: 76px; }
.footer-inner { padding-block: 30px; align-items: start; }
.footer-brand { font-size: 1.2rem; }
.footer-inner nav { justify-content: end; max-width: 630px; }
.masthead nav, .footer-inner nav { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.masthead nav a, .footer-inner a { color: var(--text); text-decoration: none; font-weight: 600; }
.masthead nav a:hover, .footer-inner a:hover { color: var(--accent-dark); text-decoration: underline; }
.wordmark { display: flex; align-items: center; width: 148px; height: 58px; flex: 0 0 auto; }
.wordmark img { width: 100%; height: 100%; object-fit: contain; object-position: left center; }
.masthead .cart-link { display: inline-flex; align-items: center; min-height: 40px; padding-inline: 12px; gap: 5px; background: var(--accent-soft); border-radius: 6px; }
.cart-count { min-width: 1.45rem; padding-inline: 4px; border-radius: 20px; background: var(--accent-soft); text-align: center; font-size: .85rem; }
.skip-link { position: absolute; left: 8px; top: 8px; transform: translateY(-170%); background: white; padding: 8px; z-index: 4; }
.skip-link:focus { transform: none; }
.breadcrumbs { color: var(--muted); font-size: .9rem; margin-bottom: 24px; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 4px 10px; margin: 0; padding: 0; list-style: none; }
.breadcrumbs li + li::before { content: '/'; margin-right: 10px; color: var(--muted); }
.muted { color: var(--muted); }

/* Accueil de la boutique */
.home-page {
    --store-ink: #241f1a;
    --store-orange: #ff781f;
    --store-paper: #f5eee2;
    --store-line: #e0d5c6;
    --store-rust: #963a11;
    --store-stage: #f2e3d0;
    --store-display: "Barlow Semi Condensed", system-ui, sans-serif;
    background: #fffdfa;
}
.home-page .container { width: min(1280px, calc(100% - 48px)); }
.home-page .site-main { padding-top: 24px; }
.home-page .service-bar { background: var(--store-ink); color: #fff3e4; }
.home-page .site-header { border-color: var(--store-line); }
.home-page .masthead .cart-link { background: var(--store-ink); color: #fffaf1; border-radius: 4px; }
.home-page .cart-count { background: var(--store-orange); color: var(--store-ink); }
.home-page ::selection { background: var(--store-ink); color: #fff8eb; }
.home-page a:focus-visible, .home-page button:focus-visible, .home-page input:focus-visible { outline-color: #78300e; }

.storefront-hero { background: var(--store-paper); color: var(--store-ink); border: 1px solid #e7dbcc; border-radius: 16px; }
.storefront-hero:focus-within { border-color: #d7b797; }
.storefront-hero-split { display: grid; grid-template-columns: minmax(0, 1.11fr) minmax(0, 1fr); }
.storefront-intro { padding: clamp(26px, 4.15vw, 60px); align-self: center; }
.storefront-intro h1 {
    margin: 0 0 clamp(22px, 2.8vw, 39px);
    font: 800 clamp(2.85rem, 5.58vw, 5rem)/.97 var(--store-display);
    letter-spacing: -.032em;
    text-wrap: initial;
}
.storefront-intro h1 span { display: block; color: var(--store-rust); }
.storefront-search { display: grid; gap: 8px; max-width: 620px; }
.storefront-search label { font-weight: 750; font-size: 1rem; }
.storefront-search-row { display: grid; grid-template-columns: minmax(0, 1fr) max-content; gap: 5px; padding: 4px; background: #fffdfa; border: 1px solid #c9b296; border-radius: 10px; }
.storefront-search input { min-height: 48px; border: 1px solid transparent; border-radius: 6px; padding-inline: 11px; caret-color: var(--store-ink); }
.storefront-search input::placeholder { color: #65554b; }
.storefront-search .button { padding-inline: 18px; border-radius: 6px; background: var(--store-orange); color: var(--store-ink); }
.storefront-search .button:hover { background: #ff9048; }
.storefront-feature .button:hover { background: #4c3021; }
.storefront-serial { display: inline-flex; align-items: center; gap: 10px; margin-top: 15px; color: var(--store-rust); font-weight: 650; }
.storefront-arrow { position: relative; display: inline-block; width: 12px; height: 12px; flex: none; vertical-align: middle; }
.storefront-arrow::before, .storefront-arrow::after { content: ""; position: absolute; }
.storefront-arrow::before { top: 5px; left: 0; width: 10px; border-top: 1.5px solid currentColor; }
.storefront-arrow::after { top: 2px; right: 1px; width: 7px; height: 7px; border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; transform: rotate(45deg); }

.storefront-feature { display: grid; grid-template-rows: 1fr auto; background: #fffaf0; min-width: 0; margin: 10px; border-radius: 12px; }
.storefront-feature-info h2 { margin: 0; text-wrap: initial; }
.storefront-feature-image, .storefront-item-photo { display: grid; place-items: center; overflow: hidden; }
.storefront-feature-image { min-height: 278px; padding: 14px 22px 8px; border-radius: 12px 12px 0 0; background: radial-gradient(ellipse at 44% 34%, #fcf2e5 13%, var(--store-stage) 77%); }
.storefront-feature-image:focus-visible { outline-offset: -5px; }
.storefront-feature-image img { width: 100%; height: clamp(222px, 22vw, 328px); object-fit: contain; mix-blend-mode: multiply; transform: scale(var(--store-photo-scale, 1)); }
.storefront-feature-image img, .storefront-item-photo img { transition: transform 320ms cubic-bezier(.2,.7,.2,1); }
.storefront-feature-image:hover img { transform: scale(calc(var(--store-photo-scale, 1) + .045)); }
.storefront-item-link:hover img { transform: scale(1.045); }
.storefront-feature-info { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px 18px; padding: 17px 21px; }
.storefront-feature-info .storefront-product-name { font: 800 clamp(1.55rem, 2.1vw, 2rem)/1.08 var(--store-display); }
.storefront-feature-info .storefront-buy { margin: 0; flex-wrap: nowrap; align-items: center; gap: 12px; }
.storefront-feature-info .storefront-price { font-size: 1.65rem; }
.storefront-feature .button { background: var(--store-ink); color: #fffaf1; }
.storefront-example { display: grid; align-content: center; gap: 8px; padding: 24px; background: #fffaf0; margin: 10px; border-radius: 12px; color: var(--store-ink); }
.storefront-example img { width: 100%; height: 260px; object-fit: contain; mix-blend-mode: multiply; }
.storefront-example span { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; }

.storefront-families { display: flex; align-items: stretch; flex-wrap: wrap; gap: 0; margin-top: 18px; border-bottom: 1px solid var(--store-line); }
.storefront-families a { display: inline-flex; align-items: center; gap: 9px; padding: 9px 14px; min-height: 53px; font-size: .9rem; font-weight: 650; color: var(--store-ink); text-decoration: none; }
.storefront-families a:hover { text-decoration: underline; }
.storefront-families .storefront-family-all { padding-inline-start: 0; font-weight: 800; }
.storefront-families a + a { border-inline-start: 1px solid var(--store-line); }
.storefront-families a:hover { background: var(--store-paper); }

.storefront-shelf { margin-top: clamp(32px, 4vw, 57px); }
.storefront-section-heading { display: flex; align-items: baseline; flex-wrap: wrap; justify-content: space-between; gap: 9px 20px; }
.storefront-section-heading h2 { font: 700 clamp(2rem, 3.5vw, 3.4rem)/1 var(--store-display); letter-spacing: -.022em; }
.storefront-section-heading h2 { margin-bottom: 16px; }
.storefront-section-heading a { color: var(--store-ink); font-weight: 650; }
.storefront-products { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 19px; padding: 0; margin: 0; list-style: none; }
.storefront-item { display: flex; flex-direction: column; height: 100%; }
.storefront-item-link { display: block; text-decoration: none; color: var(--store-ink); border-radius: 12px; }
.storefront-item-link:hover h3 { text-decoration: underline; }
.storefront-item-photo { aspect-ratio: 1.44; background: #f5eee4; padding: 14px; border-radius: 12px; }
.storefront-item-photo img { width: 100%; height: 100%; min-height: 0; object-fit: contain; mix-blend-mode: multiply; }
.storefront-item-copy { padding-top: 12px; margin-bottom: 11px; }
.storefront-item-copy h3 { font: 700 clamp(1.14rem, 1.7vw, 1.5rem)/1.13 var(--store-display); margin: 0 0 4px; }
.storefront-product-name { color: var(--store-ink); text-decoration: none; }
.storefront-product-name:hover { text-decoration: underline; }
.storefront-ref, .storefront-stock { display: block; color: #58483c; font-size: .8rem; }
.storefront-buy { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 6px 9px; margin-top: auto; }
.storefront-price { display: block; color: var(--store-ink); font: 800 1.85rem/1.08 var(--store-display); font-variant-numeric: tabular-nums; white-space: nowrap; }
.storefront-price small { font: 650 .75rem/1 system-ui, sans-serif; }
.storefront-item .storefront-buy { border-top: 1px solid var(--store-line); padding-top: 11px; }
.storefront-buy .button { min-height: 44px; border-radius: 6px; gap: 7px; padding-inline: 11px; }
.storefront-item .button { background: #fff7ed; color: var(--store-rust); border-color: #e5c6ab; }
.storefront-item .button:hover { background: #fae8d7; }
.storefront-plus { position: relative; width: 9px; height: 9px; }
.storefront-plus::before, .storefront-plus::after { content: ""; position: absolute; background: currentColor; }
.storefront-plus::before { width: 9px; height: 1.5px; top: 4px; left: 0; }
.storefront-plus::after { width: 1.5px; height: 9px; left: 4px; top: 0; }

.storefront-service { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 24px; margin-top: clamp(32px, 5vw, 60px); }
.storefront-service a { display: grid; padding-block: 8px; border-bottom: 1px solid var(--store-line); color: var(--store-ink); text-decoration: none; }
.storefront-service a:hover span { text-decoration: underline; }
.storefront-service span { font-size: .9rem; color: #58483c; }

@media (min-width: 821px) and (max-width: 1100px) {
    .storefront-feature-info { grid-template-columns: minmax(0, 1fr); }
    .storefront-feature-info .storefront-buy { justify-content: space-between; }
}
@media (max-width: 820px) {
    .home-page .container { width: min(100% - 32px, 1280px); }
    .storefront-hero-split { grid-template-columns: minmax(0, 1fr); }
    .storefront-intro h1 { font-size: clamp(2.75rem, 8vw, 4.5rem); }
    .storefront-feature { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto; align-items: stretch; }
    .storefront-feature-image { min-height: 0; padding: 9px; border-radius: 12px 0 0 12px; }
    .storefront-feature-image img { --store-photo-scale: 1.24; height: clamp(134px, 26vw, 220px); }
    .storefront-feature-info { grid-template-columns: minmax(0, 1fr); align-content: center; padding: 12px; }
    .storefront-example img { height: 160px; }
    .storefront-families a { min-height: 44px; }
    .storefront-products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; }
}
@media (max-width: 470px) {
    .storefront-intro { padding: 20px; }
    .storefront-intro h1 { font-size: clamp(2.125rem, 11.2vw, 2.75rem); margin-bottom: 23px; }
    .storefront-search-row { grid-template-columns: minmax(0, 1fr); }
    .storefront-search .button, .storefront-search input { min-height: 46px; }
    .storefront-serial { margin-top: 13px; font-size: .9rem; }
    .storefront-feature { grid-template-columns: .83fr 1.17fr; }
    .storefront-feature-info .storefront-product-name { font-size: 1.35rem; }
    .storefront-feature-info .storefront-price { font-size: 1.52rem; }
    .storefront-feature-info .storefront-buy { flex-wrap: wrap; gap: 6px 10px; }
    .storefront-feature-info .button { font-size: .86rem; }
    .storefront-families { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .storefront-family-all { grid-column: 1 / -1; }
    .storefront-families a { font-size: .85rem; line-height: 1.3; padding: 7px 8px; }
    .storefront-families a + a { border-inline-start: 0; border-top: 1px solid var(--store-line); }
    .storefront-service { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
    .storefront-feature-image img, .storefront-item-photo img { transition: none; }
    .storefront-feature-image:hover img { transform: scale(var(--store-photo-scale, 1)); }
    .storefront-item-link:hover img { transform: none; }
}
.search-form { border: 1px solid var(--border); border-radius: 12px; background: var(--panel); padding: 18px; }
.search-fields, .search-form.compact { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; }
.search-fields + .search-fields, .search-form details { margin-top: 16px; }
.search-query { flex: 1 1 230px; }
.search-form.compact label { flex: 1 1 240px; }
.search-filters { margin-top: 12px; }
summary { cursor: pointer; }
label { display: flex; flex-direction: column; gap: 5px; font-size: .95rem; font-weight: 650; }
input, select, textarea { min-height: 43px; border: 1px solid #94a3b8; border-radius: 7px; background: white; padding: 8px 10px; width: 100%; min-width: 0; }
textarea { resize: vertical; }
input:read-only:not([type=search]) { background: #f8fafc; }
.button { display: inline-flex; align-items: center; min-height: 43px; justify-content: center; border: 1px solid transparent; background: var(--accent); color: #1d0e00; border-radius: 8px; padding: 8px 16px; font-weight: 730; text-decoration: none; cursor: pointer; }
.button:hover { background: #ff8324; }
.button-outline { background: white; border-color: var(--border); color: var(--text); }
.button-outline:hover { background: var(--accent-soft); }
.section { margin-top: 36px; }
.section-heading, .help-panel, .actions { display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: 12px 20px; }
.section-heading h2, .help-panel h2 { margin-bottom: 0; }
.section-heading { margin-bottom: 14px; }
.tile-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(215px, 100%), 1fr)); gap: 12px; }
.tile { height: 100%; min-height: 74px; display: flex; justify-content: space-between; align-items: center; gap: 10px; border: 1px solid var(--border); background: var(--panel); border-radius: 10px; padding: 14px 17px; color: var(--text); text-decoration: none; }
.tile span { color: var(--accent-dark); }
.tile:hover, .list-panel a:hover { background: var(--accent-soft); text-decoration: underline; }
.diagram-list + h3 { margin-top: 22px; }
.help-panel { margin-top: 46px; border-radius: 12px; padding: 22px; background: var(--panel); border: 1px solid var(--border); }
.help-panel p { margin: 6px 0 0; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips a { background: white; color: var(--text); border: 1px solid var(--border); text-decoration: none; padding: 5px 12px; border-radius: 25px; }
.chips a[aria-current] { background: var(--accent-soft); border-color: var(--accent-dark); font-weight: 700; }
.list-panel { padding: 0; margin: 0; list-style: none; border: 1px solid var(--border); border-radius: 10px; background: white; }
.list-panel li + li { border-top: 1px solid var(--border); }
.list-panel a { display: flex; align-items: baseline; justify-content: space-between; gap: 8px 14px; padding: 12px 15px; text-decoration: none; color: var(--text); }
.list-panel span { color: var(--muted); font-size: .9rem; text-align: right; }
.pagination { display: flex; justify-content: center; padding-top: 16px; gap: 20px; }
.notice { padding: 12px 16px; background: var(--accent-soft); border: 1px solid #e0ac85; border-radius: 4px; }
.help-form { max-width: 640px; display: grid; gap: 14px; }
.help-form .button { justify-self: start; }
.product-heading { margin-bottom: 20px; }
.product-heading h1 { margin-bottom: 6px; }
.product-brand { font-weight: 700; margin-bottom: 5px; color: var(--muted); }
.product-reference { color: var(--muted); margin-bottom: 0; overflow-wrap: anywhere; }
.product-reference strong { color: var(--text); }
.product-overview { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .8fr); gap: 24px; align-items: start; }
.product-overview > :only-child,
.product-overview:has(.product-details[hidden]) .purchase-panel { grid-column: 1 / -1; max-width: 620px; }
.product-details[hidden], .product-media[hidden] { display: none; }
.product-details { display: grid; gap: 12px; }
.product-media { border: 1px solid var(--border); }
.product-media img { width: 100%; height: clamp(175px, 27vw, 390px); object-fit: contain; padding: 10px; }
.product-media h2 { font-size: 1rem; margin: 0 0 3px; }
.product-fit { padding: 12px 16px; border-inline-start: 3px solid #577b66; background: #eeeee6; }
.product-fit p { margin: 4px 0 0; }
.product-fit h2 { font-size: 1.1rem; margin: 0 0 5px; }
.purchase-panel { display: grid; gap: 13px; padding: clamp(16px, 3vw, 24px); border: 1px solid var(--border); border-radius: 7px; background: white; }
.purchase-panel p { margin: 0; }
.purchase-panel h2 { margin: 0; }
.part-price { font-size: clamp(2rem, 4vw, 2.8rem); line-height: 1; letter-spacing: -.035em; }
.product-availability { width: fit-content; padding: 2px 7px; background: var(--accent-soft); border-radius: 3px; font-weight: 700; }
.product-availability.is-in-stock { background: #e5efe7; color: #28553c; }
.product-delivery { display: grid; gap: 2px; margin: 0; padding-block: 10px; border-block: 1px solid var(--border); }
.product-delivery dt { font-weight: 700; }
.product-delivery dt:not(:first-child) { margin-top: 6px; }
.product-delivery dd { margin: 0; color: var(--muted); }
.product-add .button { flex: 1 1 140px; padding-inline: 10px; }
.purchase-terms { font-size: .9rem; }
.purchase-terms p + p { margin-top: 4px; }
.support-layout { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: 22px; align-items: start; }
.contact-aside p:last-child { margin: 12px 0 0; color: var(--muted); }
.quantity-actions, .cart-line-actions { display: flex; align-items: end; flex-wrap: wrap; gap: 8px; }
.quantity-actions input { width: 5rem; }
.shop-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.shop-panel, .account-card { padding: clamp(16px, 3vw, 26px); background: var(--panel); border: 1px solid var(--border); border-radius: 12px; }
.shop-summary { position: sticky; top: 16px; }
.shop-summary .button { width: 100%; }
.shop-summary small { display: block; margin-top: 8px; }
.price-summary { margin: 0 0 8px; }
.price-summary > div, .cart-line-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.price-summary dd { margin: 0; text-align: right; }
.price-total { border-top: 1px solid var(--border); margin-top: 8px; padding-top: 8px; font-weight: 750; }
.basket-terms { border-top: 1px solid var(--border); margin-top: 14px; padding-top: 10px; font-size: .9rem; }
.basket-terms p { margin-bottom: 3px; }
.cart-lines > * + * { margin-top: 14px; }
.cart-lines > a { display: inline-block; }
.cart-line { border-bottom: 1px solid var(--border); padding-bottom: 16px; }
.cart-line-heading h2 { margin: 0 0 5px; font-size: 1.2rem; overflow-wrap: anywhere; }
.cart-line-heading > strong { text-align: right; }
.cart-line-heading p { margin-bottom: 2px; }
.button-text { background: transparent; color: var(--focus); text-decoration: underline; padding-inline: 8px; }
.button-text:hover { background: var(--accent-soft); }
.order-items { padding-left: 20px; margin: 0 0 14px; }
.address-fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 12px; padding: 0; border: 0; margin-inline: 0; min-width: 0; }
.address-fields legend { padding: 0; margin-bottom: 10px; font-weight: 750; }
.field-wide { grid-column: 1 / -1; }
.terms-check { display: flex; align-items: start; gap: 8px; }
.terms-check input { width: 1.2rem; height: 1.2rem; min-height: 0; flex: none; margin: 2px 0 0; accent-color: var(--accent-dark); }
.account-card { max-width: 620px; margin-inline: auto; }
.account-card form { display: grid; gap: 12px; }
.account-card form .button { justify-self: start; }
.account-card > p:last-child, .account-card .notice p:last-child { margin-bottom: 0; }
.diagram-workspace { display: grid; grid-template-columns: minmax(0, 1.32fr) minmax(0, 1fr); align-items: start; gap: 16px; }
.diagram-panel, .parts-panel { min-width: 0; padding: 12px; background: white; border: 1px solid var(--border); border-radius: 12px; }
.diagram-viewport { overflow: auto; max-height: 72vh; overscroll-behavior: contain; }
.diagram-image { position: relative; width: var(--diagram-width, 100%); }
.diagram-image img { width: 100%; height: auto; }
.diagram-marker { position: absolute; left: var(--marker-x); top: var(--marker-y); transform: translate(-50%, -50%); display: grid; place-items: center; min-width: 1.6rem; min-height: 1.6rem; border: 1px solid var(--accent-dark); padding: 2px 4px; border-radius: 20px; color: #7c2e00; background: #fff5e7; text-decoration: none; font-size: .75rem; font-weight: 750; }
.diagram-marker[aria-current], .diagram-marker:hover { z-index: 2; background: var(--accent); color: #1d0e00; }
.diagram-controls { display: flex; justify-content: end; gap: 4px; margin-bottom: 8px; }
.diagram-controls[hidden] { display: none; }
.diagram-controls button { min-width: 40px; min-height: 36px; background: white; border: 1px solid var(--border); border-radius: 6px; cursor: pointer; }
.parts-panel h2 { font-size: 1.3rem; }
.table-scroll { overflow: auto; max-height: 70vh; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th, td { border-bottom: 1px solid var(--border); padding: 8px; vertical-align: top; }
thead th { position: sticky; top: 0; background: white; }
td small { display: block; color: var(--muted); }
tr:target, tr.is-current { background: var(--accent-soft); }
tr:target th a, tr.is-current th a { text-decoration-thickness: .18em; }
.machine-plate-guide summary { cursor: pointer; font-weight: 650; }
.machine-plate-guide-body { margin-top: 12px; max-width: 34rem; }
.machine-plate-guide figure { margin: 0; }
.machine-plate-guide img { width: 100%; height: auto; border-radius: 8px; }
.machine-plate-guide figcaption { color: var(--muted); font-size: .88rem; }

@media (max-width: 740px) {
    .container { width: calc(100% - 32px); }
    .site-main { padding-top: 24px; }
    .masthead { position: relative; align-items: start; flex-direction: column; gap: 2px; padding-block: 4px 8px; }
    .masthead nav { gap: 4px 14px; }
    .masthead nav a { font-size: .9rem; }
    .wordmark { height: 48px; width: 124px; }
    .masthead .cart-link { position: absolute; inset-block-start: 8px; inset-inline-end: 0; }
    .diagram-workspace { grid-template-columns: minmax(0, 1fr); }
    .list-panel a { align-items: start; flex-direction: column; }
    .list-panel span { text-align: left; }
    .table-scroll { max-height: none; }
    .shop-grid, .product-overview, .support-layout { grid-template-columns: minmax(0, 1fr); }
    .product-overview { gap: 14px; }
    .product-heading { margin-bottom: 14px; }
    .breadcrumbs { margin-bottom: 15px; }
    .product-plan { display: grid; grid-template-columns: 96px minmax(0, 1fr); }
    .product-plan img { height: 112px; padding: 6px; }
    .product-plan figcaption { border-top: 0; border-inline-start: 1px solid var(--border); align-content: center; padding: 9px 12px; }
    .product-delivery { grid-template-columns: 7.2rem minmax(0, 1fr); gap: 4px 8px; align-items: baseline; }
    .product-delivery dt:not(:first-child) { margin-top: 0; }
    .purchase-panel { gap: 10px; }
    .shop-summary { position: static; }
    .footer-inner { display: grid; gap: 18px; }
    .footer-inner nav { justify-content: start; }
}
@media (max-width: 335px) {
    .service-inner { font-size: .75rem; }
    .masthead nav { gap: 3px 9px; }
    .masthead nav a { font-size: .84rem; }
    .product-plan { grid-template-columns: 80px minmax(0, 1fr); }
    .product-reference { font-size: .94rem; }
}
