/* Desert Layer shop styles (deploy r8). Builds on the inline site base. Loaded by the shop pages and the home page. */
body.shop .wrap{width:min(1040px, 100% - var(--gutter)*2)}
:root{--surface:rgba(224,207,168,.045);--surface-2:rgba(224,207,168,.08)}

/* header with shop nav */
header.site{display:flex;align-items:center;justify-content:space-between;gap:1rem}
.shopnav{display:flex;gap:1.4rem;align-items:center}
.shopnav a{font-family:"IBM Plex Mono",monospace;font-size:12px;letter-spacing:.16em;text-transform:uppercase;color:var(--ink-dim);text-decoration:none;padding:.5rem 0}
.shopnav a:hover,.shopnav a[aria-current]{color:var(--ink)}
.shopnav .count{display:inline-block;min-width:1.6em;margin-left:.35em;padding:.05em .45em;border:1px solid var(--rule);border-radius:2px;text-align:center;color:var(--ink)}

.testbar{background:var(--purple);color:var(--sand);text-align:center;padding:.55rem var(--gutter);font-family:"IBM Plex Mono",monospace;font-size:11px;letter-spacing:.14em;text-transform:uppercase;line-height:1.5}
.testbar[hidden]{display:none}

main{padding:clamp(2.2rem,7vw,4rem) 0 3rem}
.crumbs{display:flex;gap:.6rem;flex-wrap:wrap}
.crumbs a{color:var(--ink-dim);text-decoration:none}
.crumbs a:hover{color:var(--ink)}

/* shop index */
.shop-head{max-width:62ch}
.shop-head h1{margin:.7rem 0 1rem}
.perks{display:flex;flex-wrap:wrap;gap:.5rem 1.6rem;margin-top:1.4rem}
.perks span{display:inline-flex;align-items:center;gap:.55rem}
.perks span::before{content:"";width:6px;height:6px;border-radius:50%;background:var(--sienna);flex:none}
.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr));gap:clamp(1rem,3vw,1.6rem);margin-top:clamp(2rem,6vw,3rem)}
.card{display:flex;flex-direction:column;color:var(--ink);text-decoration:none;border:1px solid var(--rule);border-radius:2px;background:var(--surface);transition:border-color .18s ease}
.card:hover{border-color:var(--sienna)}
.card .pic{aspect-ratio:4/3;overflow:hidden;border-bottom:1px solid var(--rule)}
.card .pic img{width:100%;height:100%;object-fit:cover;display:block}
.card .meta{padding:1rem 1.15rem 1.25rem;display:flex;flex-direction:column;gap:.35rem;flex:1}
.card .name{font-size:1.15rem;font-weight:600;letter-spacing:-.01em;line-height:1.3}
.card .short{color:var(--ink-dim);font-size:15px;line-height:1.5}
.card .from{margin-top:auto;padding-top:.6rem;color:var(--ink)}

/* product page */
.product{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:clamp(1.5rem,5vw,3.5rem);align-items:start;margin-top:1.4rem}
.gallery{position:sticky;top:1.2rem}
.gallery img{width:100%;height:auto;aspect-ratio:4/3;display:block;border:1px solid var(--rule);border-radius:2px;background:var(--surface)}
.gallery .caption{margin-top:.6rem}
.buybox h1{font-size:clamp(1.6rem,5.5vw,2.3rem);margin:.4rem 0 .5rem}
.price{font-size:clamp(1.4rem,4.5vw,1.75rem);font-weight:600;letter-spacing:-.01em}
.buybox .lede{margin-top:1rem;color:var(--ink-dim);font-size:16px}
form.buy{margin-top:1.6rem;max-width:none;gap:1.1rem}
.opts{border:0;display:flex;flex-direction:column;gap:.55rem}
.opts legend{margin-bottom:.55rem}
.opt{display:grid;grid-template-columns:auto 1fr auto;gap:.15rem .75rem;align-items:baseline;border:1px solid var(--rule);border-radius:2px;padding:.85rem 1rem;cursor:pointer;transition:border-color .15s ease,background .15s ease}
.opt:hover{border-color:rgba(224,207,168,.35)}
.opt:has(input:checked){border-color:var(--sienna);background:rgba(192,106,46,.09)}
.opt input{accent-color:var(--brick);width:16px;height:16px;align-self:center;margin:0}
.opt .opt-name{font-weight:600}
.opt .opt-price{font-family:"IBM Plex Mono",monospace;font-size:13px;color:var(--ink)}
.opt .opt-note{grid-column:2 / -1;color:var(--ink-dim);font-size:14px;line-height:1.5}
.single-note{color:var(--ink-dim);font-size:15px}
.qty-row{display:flex;align-items:center;gap:1rem;flex-wrap:wrap}
.qty{display:inline-flex;align-items:stretch;border:1px solid var(--rule);border-radius:2px}
.qty button{background:transparent;color:var(--ink);width:44px;min-height:44px;padding:0;font-size:20px;font-weight:400;line-height:1;align-self:stretch}
.qty button:hover{background:var(--surface-2)}
.qty input{width:3.2rem;min-height:44px;text-align:center;background:transparent;border:0;border-inline:1px solid var(--rule);color:var(--ink);font:inherit;font-size:16px;-moz-appearance:textfield;appearance:textfield}
.qty input::-webkit-outer-spin-button,.qty input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}
form.buy button.add{min-width:12rem}
.added{min-height:1.5em;font-size:15px;color:var(--ink-dim)}
.added a{color:var(--ink)}
.facts{display:flex;flex-direction:column;gap:.35rem;margin-top:1.4rem;padding-top:1.2rem;border-top:1px solid var(--rule)}
.facts span{display:inline-flex;gap:.55rem;align-items:center}
.facts span::before{content:"";width:6px;height:6px;border-radius:50%;background:var(--bar3);flex:none}
.spec{margin-top:clamp(2.4rem,7vw,3.6rem);display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr));gap:clamp(1.5rem,4vw,2.5rem)}
.spec h2{font-size:1.1rem;margin:.4rem 0 .7rem}
.spec ul{list-style:none;display:flex;flex-direction:column;gap:.55rem}
.spec li{color:var(--ink-dim);padding-left:1rem;position:relative;font-size:16px;line-height:1.55}
.spec li::before{content:"";position:absolute;left:0;top:.7em;width:5px;height:1px;background:var(--ink-dim)}
.disclaimer{margin-top:2.2rem;font-size:13px;color:var(--ink-dim);max-width:70ch}

/* cart */
.cart h1{margin:.6rem 0 1.4rem}
.lines{border-top:1px solid var(--rule)}
.line{display:grid;grid-template-columns:120px minmax(0,1fr) auto auto;gap:.6rem 1.4rem;align-items:center;padding:1.1rem 0;border-bottom:1px solid var(--rule)}
.line-thumb img{width:120px;height:90px;object-fit:cover;display:block;border:1px solid var(--rule);border-radius:2px;background:var(--surface)}
.line-name{color:var(--ink);text-decoration:none;font-weight:600;line-height:1.35}
.line-name:hover{color:var(--link-hover)}
.line-variant{color:var(--ink-dim);font-size:15px}
.line-each{margin-top:.2rem}
.line-controls{display:flex;align-items:center;gap:1rem}
button.line-remove{background:none;color:var(--ink-dim);padding:.4rem 0;min-height:44px;font-weight:400;font-size:14px;text-decoration:underline;text-underline-offset:3px;width:auto;align-self:center}
button.line-remove:hover{background:none;color:var(--ink)}
.line-total{font-weight:600;text-align:right;min-width:5.5rem}
.summary{margin-top:1.6rem;margin-left:auto;width:min(100%,380px);display:flex;flex-direction:column;gap:.9rem}
.summary dl{display:grid;grid-template-columns:1fr auto;gap:.45rem 0}
.summary dt{color:var(--ink-dim)}
.summary dd{text-align:right;padding-left:1rem}
.summary dt.grand{color:var(--ink)}
.summary .grand{font-weight:600;font-size:1.15rem;padding-top:.6rem;border-top:1px solid var(--rule)}
.summary .note{font-size:14px;color:var(--ink-dim)}
.summary button{align-self:stretch;width:100%}
.summary button:disabled{opacity:.6;cursor:progress}
.cart-error{color:#E9876F;font-size:15px;min-height:1px}
.cart-empty p+p{margin-top:1rem}
.cart-empty a,.thanks a{color:var(--ink)}

.thanks h1{margin:.6rem 0 1rem}
.thanks .lede+p{margin-top:1rem}

@media (max-width:820px){
  .product{grid-template-columns:1fr}
  .gallery{position:static}
}
@media (max-width:560px){
  .shopnav{gap:1rem}
  .line{grid-template-columns:88px minmax(0,1fr);grid-template-areas:"thumb info" "thumb total" "controls controls"}
  .line-thumb{grid-area:thumb;align-self:start}
  .line-thumb img{width:88px;height:66px}
  .line-info{grid-area:info}
  .line-total{grid-area:total;text-align:left}
  .line-controls{grid-area:controls;justify-content:space-between}
  form.buy button.add{width:100%}
}
.spec section{margin-top:0}
.lines:empty{display:none}
body.shop h1{line-height:1.15}

/* ---------- r7: glowing logo in the shop header (light behind the mark, mark untouched) ---------- */
header.site{position:relative}
header.site svg.neon{overflow:visible}

/* ---------- r7: Halo Frame picker (home + product page) ---------- */
form.pick{display:flex;flex-direction:column;gap:.85rem;max-width:540px;margin:0}
.seg{border:0;min-width:0}
.seg legend{margin-bottom:.45rem;padding:0}
.seg legend span{color:var(--ink);letter-spacing:.1em}
.chips{display:grid;gap:.5rem}
.chips.n2{grid-template-columns:repeat(2,minmax(0,1fr))}
.chips.n3{grid-template-columns:repeat(3,minmax(0,1fr))}
.chip{position:relative;cursor:pointer;display:block}
.chip input{position:absolute;opacity:0;width:1px;height:1px;pointer-events:none}
.chip > span{display:flex;flex-direction:column;justify-content:center;gap:.1rem;min-height:56px;padding:.55rem .8rem;border:1px solid var(--rule);border-radius:2px;
  transition:border-color .15s ease,background .15s ease,box-shadow .2s ease}
.chip b{font-weight:600;font-size:15.5px;line-height:1.25;color:var(--ink)}
.chip small{font-size:10.5px;letter-spacing:.1em;line-height:1.3}
.chip:hover > span{border-color:rgba(224,207,168,.38)}
.chip input:checked + span{border-color:var(--sienna);background:rgba(192,106,46,.12);box-shadow:0 0 0 1px var(--sienna),0 0 22px -4px rgba(242,199,143,.35)}
.chip input:checked + span small{color:var(--ink)}
.chip input:focus-visible + span{outline:2px solid var(--focus);outline-offset:3px}
.kit-note{color:var(--ink-dim);font-size:15px;line-height:1.45;min-height:1.45em;margin-top:-.15rem}
.addon-check{display:flex;align-items:center;gap:.6rem;font-size:15px;color:var(--ink-dim);cursor:pointer;min-height:32px}
.addon-check input{accent-color:var(--brick);width:17px;height:17px;flex:none;margin:0}
.addon-check .mono{font-size:11px;color:var(--ink);letter-spacing:.08em}
.buy-row{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding-top:.85rem;border-top:1px solid var(--rule)}
.buy-price{display:flex;flex-direction:column;gap:.1rem}
.buy-price .price{font-size:clamp(1.5rem,2.6vw,1.9rem);font-weight:650;letter-spacing:-.015em;line-height:1.1}
.ship-hint{font-size:10px}
.ship-hint.free{color:var(--led,#F2C78F)}
form.pick button.add{align-self:auto;min-width:min(15rem,52%);min-height:54px;font-size:17px;flex:none}
.perks{margin-top:1.1rem}
.buybox .perks{margin-top:1.4rem}
button.ghost{background:transparent;color:var(--ink);border:1px solid rgba(224,207,168,.32);font-weight:600;align-self:auto;min-height:44px;padding:.6rem 1rem}
button.ghost:hover{background:var(--forest);border-color:var(--forest)}
button.ghost.done{border-color:var(--sienna);color:var(--ink)}

/* product page art */
.gallery .art-product{aspect-ratio:4/5;width:100%}

/* added-to-cart toast */
.toast{position:fixed;z-index:20;left:50%;bottom:calc(1rem + env(safe-area-inset-bottom));transform:translateX(-50%);width:min(440px,calc(100% - 1.5rem));
  background:#2A2623;border:1px solid rgba(192,106,46,.6);border-radius:3px;padding:.9rem 1rem 1rem;
  box-shadow:0 18px 40px -12px rgba(0,0,0,.6),0 0 30px -10px rgba(242,199,143,.35);display:flex;flex-direction:column;gap:.65rem}
.toast[hidden]{display:none}
.toast-text{font-size:15px;line-height:1.4;padding-right:2rem}
.toast-meter{display:flex;align-items:center;gap:.7rem;font-family:"IBM Plex Mono",monospace;font-size:10.5px;letter-spacing:.12em;text-transform:uppercase;color:var(--ink-dim)}
.toast-meter .sm-bar{flex:1;width:auto;height:6px}
.toast-actions{display:flex;align-items:center;gap:.5rem;flex-wrap:wrap}
.toast-cart{flex:1;text-align:center;background:var(--brick);color:var(--sand);text-decoration:none;font-weight:600;font-size:14px;padding:.7rem .85rem;border-radius:2px;white-space:nowrap}
.toast-cart:hover{background:var(--forest)}
button.toast-nudge{font-size:14px;min-height:42px;padding:.55rem .8rem}
button.toast-nudge[hidden]{display:none}
button.toast-close{position:absolute;top:.35rem;right:.35rem;background:transparent;color:var(--ink-dim);font-size:22px;line-height:1;padding:.3rem .5rem;min-height:40px;font-weight:400}
button.toast-close:hover{background:transparent;color:var(--ink)}
@media (prefers-reduced-motion:no-preference){.toast:not([hidden]){animation:toastin .3s cubic-bezier(.2,.7,.3,1)}}
@keyframes toastin{from{opacity:0;transform:translate(-50%,12px)}to{opacity:1;transform:translate(-50%,0)}}

/* cart: free-shipping meter + no-drill upsell */
.freebar{height:6px;border-radius:3px;background:rgba(224,207,168,.1);overflow:hidden}
.freebar span{display:block;height:100%;background:linear-gradient(90deg,var(--sienna),#F2C78F);border-radius:3px;transition:width .4s ease}
.upsell{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin-top:1rem;padding:.9rem 1rem;border:1px dashed rgba(224,207,168,.28);border-radius:2px}
.upsell[hidden]{display:none}
.upsell-name{font-weight:600}
.upsell-name .mono{margin-left:.4rem;color:var(--ink);letter-spacing:.08em}
.upsell-note{color:var(--ink-dim);font-size:14px}

@media (max-width:560px){
  .chip > span{min-height:52px;padding:.5rem .6rem}
  .chip b{font-size:14.5px}
  form.pick button.add{min-width:0;flex:1}
  .buy-row{gap:.8rem}
}
@media (max-width:380px){
  .chip b{font-size:13.5px}
  .chip small{font-size:9.5px;letter-spacing:.06em}
}
/* phone buy bar: a thin live progress line along its top edge once the cart has something */
@media (min-width:901px){ .buy-row{position:relative} }
@media (max-width:900px){
  form.pick .buy-row{position:sticky;bottom:0;z-index:5;margin-inline:calc(var(--gutter,1.25rem)*-1);padding:.7rem var(--gutter,1.25rem) calc(.7rem + env(safe-area-inset-bottom));
    background:rgba(28,26,25,.94);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);border-top:1px solid var(--rule)}
}
html[data-cartful] .buy-row::before{content:"";position:absolute;left:0;top:-1px;height:3px;width:var(--ship-pct,0%);
  background:linear-gradient(90deg,var(--sienna),#F2C78F);transition:width .5s cubic-bezier(.2,.7,.3,1)}
html[data-cartful="free"] .buy-row::before{background:#F2C78F;box-shadow:0 0 10px rgba(242,199,143,.8)}
@media (min-width:901px){ html[data-cartful] .buy-row::before{display:none} }
.buybox form.pick{margin-top:1.5rem}
.upsell button.ghost{width:auto;align-self:center;flex:none;padding:.6rem 1.3rem}
header.site .shipmeter{bottom:.3rem}
@media (max-width:560px){ header.site .shipmeter{position:static} }

/* phones: the toast drops in from the top, compact, so it never covers the buy bar */
@media (max-width:900px){
  .toast{top:calc(.6rem + env(safe-area-inset-top));bottom:auto;padding:.7rem .8rem .75rem;gap:.5rem}
  .toast-text{font-size:14px}
  .toast-actions{flex-wrap:nowrap}
  .toast-cart{padding:.6rem .6rem;font-size:13.5px}
  button.toast-nudge{font-size:13px;min-height:38px;padding:.5rem .6rem;white-space:nowrap}
}
@media (max-width:900px) and (prefers-reduced-motion:no-preference){
  .toast:not([hidden]){animation:toastdown .3s cubic-bezier(.2,.7,.3,1)}
}
@keyframes toastdown{from{opacity:0;transform:translate(-50%,-12px)}to{opacity:1;transform:translate(-50%,0)}}

/* ---------- r8: lean copy, tabs, colour chips, kit tables, riser size finder ---------- */
body.shop .sub{color:var(--ink-dim);font-size:16px;line-height:1.45;margin-top:.4rem}
body.shop main > h1{margin:0}
.buybox h1{margin:0}
.chips.nauto{grid-template-columns:repeat(auto-fit,minmax(104px,1fr))}
.chip.slim > span{min-height:44px}
.was{color:var(--ink-dim);font-size:15px;margin-left:.3rem}
.was[hidden]{display:none}
.card .from{font-size:15px}
.extras{margin-top:1.4rem;font-size:15px;color:var(--ink-dim)}
.extras a{color:var(--ink)}
.spec.stack{display:block;max-width:820px}
.spec.stack section + section{margin-top:clamp(1.8rem,5vw,2.6rem)}
.spec h2{margin-top:0}
.tablewrap{overflow-x:auto;-webkit-overflow-scrolling:touch}
table.box,table.sizes{width:100%;border-collapse:collapse;font-size:15px;line-height:1.45}
table.box th,table.box td,table.sizes th,table.sizes td{text-align:left;padding:.6rem .9rem .6rem 0;border-bottom:1px solid var(--rule);vertical-align:top;font-weight:400;color:var(--ink-dim)}
table.box thead th,table.sizes thead th{color:var(--ink);font-weight:600;white-space:nowrap}
table.box tbody th,table.sizes tbody th{color:var(--ink)}
table.box td{min-width:5.5rem}
table.box td span{color:var(--ink)}
table.box td .no{color:var(--placeholder)}
ul.plain{list-style:none;display:flex;flex-direction:column;gap:.45rem;margin-top:1.4rem;color:var(--ink-dim);font-size:15px}
.finder{display:flex;flex-direction:column;gap:.5rem;max-width:none;margin:0 0 1.2rem}
.finder-row{display:flex;align-items:center;gap:.6rem}
.finder input{width:7.5rem;min-height:44px;background:transparent;border:1px solid var(--rule);border-radius:2px;color:var(--ink);font:inherit;font-size:16px;padding:.5rem .7rem}
.finder-out{min-height:1.5em;font-size:15px;color:var(--ink)}
.finder-out a{color:var(--ink)}
.line-each{font-size:14px;color:var(--ink-dim);margin-top:.2rem}
.line-each s{margin-right:.2rem}
.freebar[hidden]{display:none}
.summary .note:empty{display:none}
.summary [hidden]{display:none}
.spec.stack p{color:var(--ink-dim);font-size:16px;line-height:1.6;max-width:68ch}
.spec.stack p + p{margin-top:.9rem}
.about{margin-top:1.4rem}
.about p{color:var(--ink-dim);font-size:15px;line-height:1.6}
.kit-note[hidden]{display:none}
.kit-note{min-height:0;font-size:14px}
@media (max-width:560px){
  header.site .name{display:none}
  .shopnav a{white-space:nowrap}
  table.box{table-layout:fixed;font-size:14px}
  table.box th:first-child{width:31%}
  table.box td{font-size:13px}
  table.box th,table.box td{padding:.55rem .5rem .55rem 0}
  table.box td{min-width:0}
  table.box thead th{white-space:normal;vertical-align:bottom}
  table.sizes{font-size:14px}
  .perks{gap:.35rem 1.2rem}
}
/* r8.3: the Add-on offer (toast button, cart row) */
.upsell-name s,button.toast-nudge s{color:var(--ink-dim);font-weight:400;margin-right:.1rem}
.upsell{border-style:solid;border-color:var(--rule)}
.chip small s{margin-right:.3em}
button.toast-close{width:auto;left:auto;align-self:auto}

/* ---------- r8.5: cart icon, slide-in cart panel, dynamic free-shipping bar ---------- */
.cartlink{position:relative;display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;color:var(--ink)}
.cartlink .carticon{display:block}
.topnav .cartlink .count,.shopnav .cartlink .count{position:absolute;top:2px;right:-2px;min-width:18px;height:18px;margin:0;padding:0 5px;border:0;border-radius:9px;
  background:var(--brick);color:var(--sand);font-size:11px;line-height:18px;letter-spacing:0;text-align:center}
.cartlink .count.is-zero{display:none}
html.drawer-open{overflow:hidden}
.drawer-wrap{position:fixed;inset:0;z-index:60}
.drawer-wrap[hidden]{display:none}
.drawer-back{position:absolute;inset:0;background:rgba(0,0,0,.55);opacity:0;transition:opacity .25s ease}
.drawer{position:absolute;top:0;right:0;bottom:0;width:min(430px,100%);display:flex;flex-direction:column;background:#211e1c;border-left:1px solid var(--rule);
  transform:translateX(100%);transition:transform .25s cubic-bezier(.2,.7,.3,1);outline:0;box-shadow:-18px 0 40px rgba(0,0,0,.35)}
.drawer-wrap.is-open .drawer{transform:none}
.drawer-wrap.is-open .drawer-back{opacity:1}
.drawer-head{display:flex;align-items:center;justify-content:space-between;padding:1rem 1.25rem .6rem}
.drawer-head h2{font-size:1.35rem;font-weight:620;letter-spacing:-.01em;margin:0}
.drawer-n{color:var(--ink-dim);font-weight:400;font-size:1rem}
button.drawer-x{width:44px;height:44px;min-height:0;padding:0;margin-right:-.6rem;background:transparent;border:0;color:var(--ink);font-size:28px;line-height:1;cursor:pointer}
.drawer-ship{padding:.3rem 1.25rem 1.1rem;border-bottom:1px solid var(--rule)}
.drawer-ship[hidden],.drawer-foot[hidden],.drawer-recs[hidden],.drawer-empty[hidden]{display:none}
.drawer-ship-text{font-size:15px;color:var(--ink);margin-bottom:1.5rem}
.drawer-ship-text b{font-weight:650}
/* the bar: red, then amber, then green, with moving stripes and a truck riding the end */
.shipbar{--bar:#C8452F;position:relative;height:8px;border-radius:4px;background:rgba(224,207,168,.12)}
.is-mid .shipbar{--bar:#E0A93B}
.is-free .shipbar{--bar:#4E9A6B}
.shipbar i{display:block;height:100%;width:var(--ship-pct,0%);min-width:8px;border-radius:4px;background-color:var(--bar);
  background-image:linear-gradient(45deg,rgba(255,255,255,.22) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.22) 50%,rgba(255,255,255,.22) 75%,transparent 75%,transparent);
  background-size:20px 20px;animation:shipstripes 1.1s linear infinite;transition:width .6s cubic-bezier(.2,.7,.3,1),background-color .4s ease}
.shipbar .truck{position:absolute;bottom:7px;left:clamp(12px,var(--ship-pct,0%),calc(100% - 12px));transform:translateX(-50%);color:var(--bar);
  transition:left .6s cubic-bezier(.2,.7,.3,1),color .4s ease;line-height:0}
@keyframes shipstripes{from{background-position:0 0}to{background-position:20px 0}}
.is-free .drawer-ship-text{color:#7FC79A}
/* the small header meter follows the same colours */
.shipmeter.is-low .sm-bar i{background:#C8452F}
.shipmeter.is-mid .sm-bar i{background:#E0A93B}
.shipmeter.is-free .sm-bar i{background:#4E9A6B;box-shadow:none}
.shipmeter.is-free .sm-text{color:#7FC79A}
.drawer-body{flex:1;overflow-y:auto;-webkit-overflow-scrolling:touch;padding:0 1.25rem}
.drawer-empty{padding:2rem 0;color:var(--ink-dim)}
.d-line{display:grid;grid-template-columns:72px minmax(0,1fr) auto;gap:.9rem;align-items:start;padding:1rem 0;border-bottom:1px solid var(--rule)}
.d-line img{width:72px;height:54px;object-fit:cover;border-radius:2px;border:1px solid var(--rule)}
.d-name{font-weight:600;font-size:15px;line-height:1.3}
.d-variant,.d-note{color:var(--ink-dim);font-size:13.5px;line-height:1.4}
.d-price{font-size:14.5px;margin-top:.15rem}
.d-price s{color:var(--ink-dim)}
.d-ctl{display:flex;align-items:center;gap:1rem;margin-top:.6rem}
.d-ctl .qty{transform-origin:left center}
.d-ctl .qty button{width:38px;min-height:38px}
.d-ctl .qty input{width:42px;min-height:38px}
.drawer .line-remove{font-size:13.5px}
.drawer-recs{padding:1.2rem 0 .4rem}
.drawer-recs h3{font-size:13px;font-weight:600;color:var(--ink-dim);margin:0 0 .1rem}
.drawer-recs .d-line:last-child{border-bottom:0}
button.d-add{align-self:center;min-height:40px;padding:.4rem 1rem;width:auto}
.drawer-foot{padding:1rem 1.25rem calc(1rem + env(safe-area-inset-bottom));border-top:1px solid var(--rule);background:#211e1c}
.drawer-foot dl{display:grid;grid-template-columns:1fr auto;gap:.3rem 1rem;font-size:15px;margin-bottom:.9rem}
.drawer-foot dt{color:var(--ink-dim)}
.drawer-foot dd{text-align:right}
.drawer-foot [hidden]{display:none}
button.drawer-checkout{display:block;width:100%;min-height:52px;background:var(--brick);color:var(--sand);border:0;border-radius:2px;font:inherit;font-weight:650;font-size:17px;cursor:pointer;transition:background .18s ease}
button.drawer-checkout:hover{background:var(--forest)}
button.drawer-checkout:disabled{opacity:.6;cursor:default}
.drawer-view{display:block;text-align:center;margin-top:.8rem;color:var(--ink-dim);font-size:14.5px}
.drawer .cart-error:empty{display:none}
@media (prefers-reduced-motion:reduce){ .shipbar i{animation:none} .drawer,.drawer-back{transition:none} }
.cart-ship{margin-bottom:1.2rem}
.cart-ship[hidden]{display:none}
.summary .note[hidden]{display:none}
/* r8.7: one menu everywhere */
table.box th a{color:var(--ink)}
/* r8.8: kit options stay the same height when a name wraps */
.chips{align-items:stretch}
.chip{display:flex}
.chip > span{flex:1;height:auto}
.buy-row .buy-price{min-width:0;flex:1 1 0}
.buy-row .ship-hint{white-space:normal;line-height:1.4}
form.pick .buy-row button.add{white-space:nowrap;flex:0 0 auto;width:auto;min-width:9.5rem}
@media (min-width:561px){ form.pick .buy-row button.add{min-width:min(15rem,52%)} }
/* r9 */
.perks a{color:inherit;text-decoration:underline;text-underline-offset:3px}

/* ---------- r10: Tim's product-page design (kit rows, swatches, add-on row, deal bar, Wall Art sizing) ---------- */
.dealbar{background:var(--purple);color:var(--sand);text-align:center;padding:.5rem var(--gutter);font-family:"IBM Plex Mono",monospace;font-size:11px;letter-spacing:.1em;text-transform:uppercase;line-height:1.5}
.testbar + .dealbar{border-top:1px solid rgba(243,233,210,.25)}
/* perks: plain sentences, one per line */
ul.perks{list-style:none;display:flex;flex-direction:column;gap:.35rem;margin-top:1.4rem;padding:1.1rem 0 0;border-top:1px solid var(--rule);font-size:15px;line-height:1.45;color:var(--ink)}
ul.perks li{display:flex;gap:.6rem;align-items:baseline}
ul.perks li::before{content:"";width:6px;height:6px;border-radius:50%;background:var(--sienna);flex:none;transform:translateY(-2px)}
ul.perks li[hidden]{display:none}
/* kit: one row each, with what it is and its price */
.chips.rows{grid-template-columns:1fr}
.chip.row > span{display:grid;grid-template-columns:1fr auto;gap:.1rem 1rem;align-items:baseline;min-height:0;padding:.65rem .85rem}
.chip.row small{font-size:12.5px;letter-spacing:.04em;color:var(--ink)}
.chip.row em{grid-column:1 / -1;font-style:normal;font-size:14px;line-height:1.4;color:var(--ink-dim)}
.chip.mid > span{align-items:center;text-align:center}
.chips.presets{grid-template-columns:repeat(4,minmax(0,1fr))}
.chip b .sw{display:inline-block;width:14px;height:14px;border-radius:50%;border:1px solid rgba(224,207,168,.5);margin-right:.5rem;vertical-align:-2px}
/* optional add-on with its own stepper */
.addrow{display:flex;align-items:center;justify-content:space-between;gap:1rem;border:1px solid var(--rule);border-radius:2px;padding:.65rem .85rem;transition:border-color .15s ease,background .15s ease}
.addrow.is-on{border-color:var(--sienna);background:rgba(192,106,46,.12)}
.addinfo b{font-weight:600;font-size:15.5px}
.addprice{font-family:"IBM Plex Mono",monospace;font-size:12.5px;margin-left:.35rem}
.addnote{font-size:14px;line-height:1.4;color:var(--ink-dim);margin-top:.1rem}
.xqty{flex:none}
.xqty output{display:flex;align-items:center;justify-content:center;width:2.6rem;border-inline:1px solid var(--rule);font-size:16px}
.pick-extras{font-size:13.5px;color:var(--ink-dim)}
.pick-extras[hidden],.ship-hint[hidden]{display:none}
form.pick button.add:disabled{opacity:.45;cursor:not-allowed}
/* Wall Art: custom size, orientation, what the frame will be */
.custom-size{margin-top:.7rem}
.custom-size[hidden],.orient[hidden],.fit[hidden],.fit-error[hidden]{display:none}
.dims{display:flex;align-items:flex-end;gap:.6rem}
.dim{display:flex;flex-direction:column;gap:.25rem;font-size:13px;color:var(--ink-dim)}
.dim input{width:6.5rem;min-height:46px;background:transparent;border:1px solid rgba(224,207,168,.32);border-radius:2px;color:var(--ink);font:inherit;font-size:16px;padding:.5rem .7rem}
.dims > span{padding-bottom:.7rem;color:var(--ink-dim)}
.custom-size p{margin-top:.6rem;font-size:13.5px;line-height:1.5;color:var(--ink-dim)}
.custom-size a{color:var(--ink)}
.orient{display:inline-flex;margin-top:.7rem;border:1px solid var(--rule);border-radius:2px;overflow:hidden}
.orient label{cursor:pointer;display:block}
.orient input{position:absolute;opacity:0;width:1px;height:1px;pointer-events:none}
.orient span{display:block;padding:.6rem .95rem;min-height:44px;font-weight:600;font-size:14px;line-height:1.6}
.orient input:checked + span{background:rgba(192,106,46,.16);box-shadow:inset 0 0 0 1px var(--sienna)}
.orient input:focus-visible + span{outline:2px solid var(--focus);outline-offset:-2px}
dl.fit{display:grid;grid-template-columns:auto 1fr;gap:.2rem 1rem;margin-top:.8rem;padding:.75rem .9rem;border:1px solid var(--rule);border-radius:2px;background:var(--surface);font-size:14.5px;line-height:1.45}
dl.fit dt{color:var(--ink-dim)}
.fit-error{margin-top:.8rem;padding:.75rem .9rem;border:1px solid var(--sienna);border-radius:2px;font-size:14.5px;line-height:1.45}
/* Wall Art picture: a live diagram of the art, its glow and the hidden frame */
.wallprev{position:relative;aspect-ratio:4/3;background:#3B3936;border:1px solid var(--rule);border-radius:2px;display:flex;align-items:center;justify-content:center;overflow:hidden;
  --glow:rgba(255,196,120,.55);--glow2:rgba(255,170,90,.22)}
.wallprev:has(input[value="rgb"]:checked){--glow:rgba(120,150,255,.55);--glow2:rgba(200,90,220,.24)}
.wallprev[data-lit="0"]{--glow:rgba(0,0,0,.35);--glow2:rgba(0,0,0,0)}
.wp-art{position:relative;width:var(--art-w,36%);aspect-ratio:var(--art-ratio,11 / 14);background:#2A3B47;border:6px solid #141210;display:flex;align-items:center;justify-content:center;
  box-shadow:0 0 34px 12px var(--glow),0 0 90px 30px var(--glow2);transition:width .25s ease,box-shadow .4s ease;margin-bottom:6%}
.wp-frame{position:absolute;left:50%;top:50%;width:var(--frame-w,70%);height:var(--frame-h,76%);transform:translate(-50%,-50%);border:1.5px dashed rgba(224,207,168,.75);border-radius:6px}
.wp-art .mono{position:relative;font-size:10px;letter-spacing:.12em;color:rgba(224,207,168,.9);background:rgba(28,26,25,.6);padding:2px 6px;white-space:nowrap}
.wp-cap{margin-top:.6rem;font-size:13.5px;color:var(--ink-dim)}
.measure{display:flex;gap:.9rem;align-items:flex-start;margin-top:.8rem;padding:.85rem 1rem;border:1px solid var(--rule);border-radius:2px;background:var(--surface)}
.measure svg{flex:none}
.measure p{font-size:15px;line-height:1.5;color:var(--ink-dim)}
.measure strong{color:var(--ink);font-weight:600}
/* sections under the buy box */
.spec.stack{max-width:none}
.spec.stack > section{max-width:900px}
ol.steps{list-style:none;counter-reset:step;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1.1rem;margin:.2rem 0 0;padding:0}
ol.steps li{counter-increment:step;border-top:2px solid var(--sienna);padding-top:.6rem;font-size:15px;line-height:1.5;color:var(--ink-dim)}
ol.steps li b{display:block;color:var(--ink);font-weight:600;font-size:16px}
ol.steps li b::before{content:counter(step) ". "}
.spec .more{margin-top:.9rem;font-size:15px}
.spec .more a,.spec.stack a{color:var(--ink)}
table.weights td{text-align:right;white-space:nowrap;color:var(--ink);font-family:"IBM Plex Mono",monospace;font-size:13px}
table.weights{max-width:520px}
dl.speclist{display:grid;grid-template-columns:auto 1fr;gap:.35rem 1.2rem;margin-top:1rem;font-size:15.5px;line-height:1.5}
dl.speclist dt{color:var(--ink)}
dl.speclist dd{color:var(--ink-dim)}
.spec.stack p.fine{font-size:13px;line-height:1.5;margin-top:.7rem;max-width:80ch}
.spec.stack .tablewrap + p{margin-top:.8rem}
.spec.stack p + .tablewrap{margin-top:.9rem}
.spec details{border-bottom:1px solid var(--rule)}
.spec details:first-of-type{border-top:1px solid var(--rule)}
.spec summary{cursor:pointer;padding:.8rem 0;font-weight:600;font-size:16px;list-style:none;display:flex;justify-content:space-between;gap:1rem}
.spec summary::-webkit-details-marker{display:none}
.spec summary::after{content:"+";font-family:"IBM Plex Mono",monospace;color:var(--sienna);font-size:18px;line-height:1.3}
.spec details[open] > summary::after{content:"\2212"}
.spec details > p{margin:0 0 1rem}
.spec details.compat h3{font-size:15.5px;font-weight:600;margin:.9rem 0 .4rem}
.spec details.compat ul{gap:.35rem;margin-bottom:.6rem}
.spec details.compat li{font-size:14.5px}
.spec details.compat > p{font-size:14.5px;margin:.4rem 0 1rem}
.buy .btns{display:flex;flex-wrap:wrap;gap:.7rem}
@media (max-width:820px){
  ol.steps{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:560px){
  .dealbar{font-size:10px;letter-spacing:.06em;padding:.45rem .8rem}
  .chips.presets{grid-template-columns:repeat(3,minmax(0,1fr))}
  ol.steps{grid-template-columns:1fr;gap:.8rem}
  dl.speclist{grid-template-columns:1fr;gap:.05rem}
  dl.speclist dd{margin-bottom:.5rem}
  .addrow{gap:.7rem}
  .dim input{width:5.6rem}
}
ol.steps li{padding-left:0}
ol.steps li::before{content:none}
.measure.in-pick{display:none}
@media (max-width:820px){
  .gallery .measure{display:none}
  .measure.in-pick{display:flex;margin:0 0 .7rem;padding:.7rem .8rem}
  .measure.in-pick svg{width:48px;height:36px}
  .measure.in-pick p{font-size:14px}
}
/* r10 polish: keep Add to cart high on the page; one-line deal bar on phones; home hero makes room for the bar */
body.shop main{padding-top:clamp(1.6rem,5vw,2.6rem)}
.chip.row > span{padding:.5rem .85rem}
.addrow{padding:.5rem .85rem}
.dealbar [hidden]{display:none}
@media (max-width:560px){
  .dealbar .db-lead,.dealbar .db-ship{display:none}
  .dealbar{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
}

/* ---------- r13: pictures without boxes ---------- */
.card{border-color:transparent;background:transparent}
.card .pic{border-bottom:0;aspect-ratio:1/1;background:transparent}
.card .pic img{width:100%;height:100%;object-fit:cover;display:block}
.card .meta{padding-top:.2rem}
.gallery .stage{aspect-ratio:4/5;width:100%}
.gallery .art-photo{pointer-events:none}
.gallery .dots{margin-top:-.4rem}
.gallery img.plain{border:0;background:transparent;width:100%;height:auto;display:block}
.wallprev{background:transparent;border:0}
.wallprev .wp-art{box-shadow:0 0 30px 10px var(--glow),0 0 80px 26px var(--glow2)}
.gal .wp-cap{text-align:center}
.measure{background:transparent}
@media (max-width:820px){
  /* phones: the picture runs edge to edge, straight under the header */
  body.shop main:has(.gallery .glow){padding-top:0}
  .gallery:has(.glow){margin-inline:calc(var(--gutter,1.25rem)*-1)}
  .gallery:has(.glow) .measure{margin-inline:var(--gutter,1.25rem)}
  .product:has(.gallery .glow){gap:.4rem;margin-top:0}
}

/* ---------- r16: Parts & extras ---------- */
.xintro{max-width:60ch;margin:.2rem 0 0;color:var(--ink)}
.xgrid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr));gap:20px;margin-top:2rem}
.xcard{display:flex;flex-direction:column;border:1px solid rgba(224,207,168,.2);border-radius:2px;background:rgba(224,207,168,.035);overflow:hidden;scroll-margin-top:1rem}
.xpic{aspect-ratio:8/5;background:#ECE9E3;border-bottom:1px solid rgba(224,207,168,.12)}
.xpic .xph{display:block;width:100%;height:100%;object-fit:cover;-webkit-mask-image:none;mask-image:none}
.xpic .xph[hidden]{display:none}
.xbody{display:flex;flex-direction:column;gap:.55rem;flex:1;padding:18px 20px 20px}
.xhead{display:flex;justify-content:space-between;align-items:baseline;gap:12px}
.xhead h2{font-size:20px;font-weight:600;margin:0}
.xprice{font:500 15px "IBM Plex Mono",monospace;white-space:nowrap}
.xdesc{margin:0;font-size:15.5px}
.xpoints{margin:0 0 .3rem;padding-left:20px;font-size:14.5px;color:var(--ink-dim);display:flex;flex-direction:column;gap:4px}
.xpoints b{color:var(--ink);font-weight:600}
.xopt{border:0;margin:auto 0 0;padding:0;min-width:0;display:flex;flex-wrap:wrap;gap:6px}
.xopt legend{padding:0;margin-bottom:.4rem;font-size:11px;letter-spacing:.16em;text-transform:uppercase;color:var(--ink-dim)}
.xopt label{cursor:pointer}
.xopt input{position:absolute;opacity:0;width:1px;height:1px}
.xopt span{display:block;padding:.5rem .7rem;border:1px solid var(--rule);font-size:14px;white-space:nowrap}
.xopt input:checked + span{border-color:var(--sienna,#C06A2E);background:rgba(192,106,46,.14);color:var(--sand)}
.xopt input:focus-visible + span{outline:2px solid var(--focus);outline-offset:2px}
.xbody .add{margin-top:.5rem;align-self:flex-start;min-height:44px;padding:11px 22px}
.xbody > input[type=hidden] + .add,.xbody .xpoints + input + input + .add{margin-top:auto}
.xnotes{margin-top:2.5rem;border-top:1px solid var(--rule);padding-top:1.5rem;display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr));gap:24px}
.xnotes h2{font-size:18px;font-weight:600;margin:0 0 6px}
.xnotes p{margin:0;font-size:15.5px;color:var(--ink-dim)}
/* ways in: under the No-Drill Kit row in the picker, under What's in the box, and on the shop page */
.morex{margin:.5rem 0 0;font-size:13px;color:var(--ink-dim)}
.xline{margin:1rem 0 0;font-size:14px;color:var(--ink-dim)}
.xrow{display:flex;align-items:center;gap:1.2rem;margin-top:1.6rem;padding:1rem;border:1px solid var(--rule);text-decoration:none;color:inherit}
.xrow:hover{border-color:var(--sand)}
.xrow .xthumbs{display:flex;gap:6px;flex:none}
.xrow .xthumbs img{display:block;width:96px;height:60px;object-fit:cover}
.xrow .meta{display:flex;flex-direction:column;gap:.15rem;padding:0}
@media (max-width:560px){.xrow .xthumbs img{width:60px;height:38px}.xrow .xthumbs img:nth-child(3){display:none}}

#wled{scroll-margin-top:1.2rem}

  /* ---------- pictures. Real photos, as shot, at full sharpness. The glow is left alone: only the outermost few
     pixels of each picture are softened (--edge), so its edge is not a hard line on the dark page. One dot per
     picture switches it, with CSS only. ---------- */
  :root{--edge:6px}
  .glow{position:relative}
  .stage{position:relative;touch-action:pan-y}      /* sideways swipes change the picture, up and down still scrolls the page */
  .art-photo{position:absolute;inset:0}
  .ph,.soft,.card .pic img{-webkit-mask-image:linear-gradient(90deg,transparent,#000 var(--edge),#000 calc(100% - var(--edge)),transparent),linear-gradient(180deg,transparent,#000 var(--edge),#000 calc(100% - var(--edge)),transparent);-webkit-mask-composite:source-in;mask-image:linear-gradient(90deg,transparent,#000 var(--edge),#000 calc(100% - var(--edge)),transparent),linear-gradient(180deg,transparent,#000 var(--edge),#000 calc(100% - var(--edge)),transparent);mask-composite:intersect}
  .art-photo .ph{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block}
  .glowset{position:absolute;inset:0}
  .glowset > *{opacity:0;transition:opacity .5s ease}
  .glow:has(.dots label:nth-of-type(1) input:checked) .glowset > :nth-child(1),
  .glow:has(.dots label:nth-of-type(2) input:checked) .glowset > :nth-child(2),
  .glow:has(.dots label:nth-of-type(3) input:checked) .glowset > :nth-child(3),
  .glow:has(.dots label:nth-of-type(4) input:checked) .glowset > :nth-child(4),
  .glow:has(.dots label:nth-of-type(5) input:checked) .glowset > :nth-child(5),
  .glow:has(.dots label:nth-of-type(6) input:checked) .glowset > :nth-child(6),
  .glow:has(.dots label:nth-of-type(7) input:checked) .glowset > :nth-child(7),
  .glow:has(.dots label:nth-of-type(8) input:checked) .glowset > :nth-child(8),
  .glow:has(.dots label:nth-of-type(9) input:checked) .glowset > :nth-child(9),
  .glow:has(.dots label:nth-of-type(10) input:checked) .glowset > :nth-child(10),
  .glow:has(.dots label:nth-of-type(11) input:checked) .glowset > :nth-child(11),
  .glow:has(.dots label:nth-of-type(12) input:checked) .glowset > :nth-child(12){opacity:1}
  /* home: the first picture stays underneath, so the others fade in over it */
  .glow:not(.gal) .glowset > :first-child{opacity:1}
  /* the dots */
  .dots{display:flex;justify-content:center;align-items:center;border:0;margin:0;padding:0;min-width:0}
  .dots label{display:block;cursor:pointer;padding:15px 9px}
  .dots input{position:absolute;opacity:0;width:1px;height:1px;pointer-events:none}
  .dots .dot{position:relative;display:block;width:14px;height:14px;border-radius:50%;background:var(--c,var(--sand));opacity:.72;transition:opacity .2s ease}
  .dots .dot::after{content:"";position:absolute;inset:-5px;border-radius:50%;border:1.5px solid var(--c,var(--sand));box-shadow:0 0 12px 1px var(--c,var(--sand));opacity:0;transition:opacity .2s ease}
  .dots label:hover .dot{opacity:1}
  .dots input:checked + .dot{opacity:1}
  .dots input:not(.auto):checked + .dot::after{opacity:1}
  .dots input:focus-visible + .dot{outline:2px solid var(--focus);outline-offset:7px}
  /* product page viewer */
  .gal .sl{position:absolute;inset:0;pointer-events:none;display:none;transition:opacity .45s ease,display .45s allow-discrete}
  /* a picture that is not showing is display:none, so its photo is not downloaded until it is needed
     (the page script fetches the neighbours ahead of time). Newer browsers still cross-fade; older ones just switch. */
  .gal:has(.dots label:nth-of-type(1) input:checked) .glowset > :nth-child(1),
  .gal:has(.dots label:nth-of-type(2) input:checked) .glowset > :nth-child(2),
  .gal:has(.dots label:nth-of-type(3) input:checked) .glowset > :nth-child(3),
  .gal:has(.dots label:nth-of-type(4) input:checked) .glowset > :nth-child(4),
  .gal:has(.dots label:nth-of-type(5) input:checked) .glowset > :nth-child(5),
  .gal:has(.dots label:nth-of-type(6) input:checked) .glowset > :nth-child(6),
  .gal:has(.dots label:nth-of-type(7) input:checked) .glowset > :nth-child(7),
  .gal:has(.dots label:nth-of-type(8) input:checked) .glowset > :nth-child(8),
  .gal:has(.dots label:nth-of-type(9) input:checked) .glowset > :nth-child(9),
  .gal:has(.dots label:nth-of-type(10) input:checked) .glowset > :nth-child(10),
  .gal:has(.dots label:nth-of-type(11) input:checked) .glowset > :nth-child(11),
  .gal:has(.dots label:nth-of-type(12) input:checked) .glowset > :nth-child(12){display:block}
  .gal .sl.prev{display:none}
  .gal:has(.dots input[data-role="preview"]:checked) .sl.prev{display:flex}
  @starting-style{.gal .sl{opacity:0}}
  .gal .sl.wide .ph{inset:auto 0;top:50%;height:auto;aspect-ratio:16/9;transform:translateY(-50%)}
  .gal .sl.box .ph{inset:auto 0;top:50%;height:auto;aspect-ratio:4/3;transform:translateY(-50%)}
  .gal .sl .cap{position:absolute;left:0;right:0;bottom:12%;margin:0;text-align:center;font-family:"IBM Plex Mono",monospace;font-size:11px;letter-spacing:.14em;text-transform:uppercase;color:var(--ink-dim)}
  .gal .sl.tall .cap{bottom:4%;left:50%;right:auto;transform:translateX(-50%);color:var(--sand);background:rgba(28,26,25,.78);padding:.4rem .55rem}
  .gal .sl.prev{flex-direction:column;justify-content:center;padding:0 6%}
  .gal:has(.dots input[data-role="preview"]:checked) .sl.prev{pointer-events:auto}
  .dots.thumbs label{padding:13px 6px}
  .dots.thumbs .dot{width:9px;height:9px}
  .dots.thumbs .dot::after{inset:-4px;box-shadow:none}
  .dots.thumbs .th{display:none}
  @media (min-width:821px){
    .dots.thumbs{flex-wrap:wrap;gap:6px;margin-top:.7rem}
    .dots.thumbs label{padding:0}
    .dots.thumbs .dot{display:none}
    .dots.thumbs .th{display:block;width:36px;height:36px;object-fit:cover;opacity:.5;outline:2px solid transparent;outline-offset:2px;transition:opacity .2s ease}
    .dots.thumbs svg.th{padding:8px;color:var(--sand);box-sizing:border-box;background:rgba(224,207,168,.08)}
    .dots.thumbs label:hover .th{opacity:.85}
    .dots.thumbs input:checked ~ .th{opacity:1;outline-color:var(--sand)}
    .dots.thumbs input:focus-visible ~ .th{outline-color:var(--focus)}
  }
  /* a pair of photos of the same poster: drag the handle between them */
  .gal .stage{-webkit-user-select:none;user-select:none}
  .gal .sl.pair .b{clip-path:inset(0 0 0 var(--pos,50%))}
  .cmp-line,.cmp-knob,.cmp-range{display:none}
  .gal:has(.dots label.pair input:checked) .cmp-line{display:block}
  .gal:has(.dots label.pair input:checked) .cmp-knob{display:flex}
  .gal:has(.dots label.pair input:checked) .cmp-range{display:block}
  @media (hover:hover){.gal:has(.dots label.pair input:checked) .stage{cursor:ew-resize}}
  .cmp-line{position:absolute;top:0;bottom:0;left:var(--pos,50%);width:2px;margin-left:-1px;opacity:.9;pointer-events:none;background:var(--sand)}
  .cmp-knob{position:absolute;top:50%;left:var(--pos,50%);width:46px;height:46px;margin:-23px 0 0 -23px;border-radius:50%;background:var(--sand);color:var(--basalt);
    align-items:center;justify-content:center;box-shadow:0 2px 14px rgba(0,0,0,.55);pointer-events:none}
  .cmp-tag{position:absolute;bottom:4%;font-family:"IBM Plex Mono",monospace;font-size:10.5px;letter-spacing:.16em;text-transform:uppercase;color:var(--sand);
    background:rgba(28,26,25,.78);padding:.4rem .55rem;pointer-events:none;transition:opacity .2s ease}
  .cmp-tag.off{left:4%}
  .cmp-tag.on{right:4%}
  .gal.all-on .cmp-tag.off,.gal.all-off .cmp-tag.on{opacity:0}
  .cmp-range{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;pointer-events:none}
  .gal:has(.cmp-range:focus-visible) .cmp-knob{outline:2px solid var(--focus);outline-offset:3px}
  @media (prefers-reduced-motion:no-preference){
    .gal.is-ready:not(.is-touched){animation:cmphint 1.5s .7s cubic-bezier(.3,.6,.3,1) backwards}
  }
  /* on arrival the handle sweeps in from one side, so it reads as something to drag */
  @property --pos{syntax:"<percentage>";inherits:true;initial-value:50%}
  @keyframes cmphint{from{--pos:12%}}
  /* what's in the box: one photo per kit; a sideways strip on phones */
  .kitpics{display:grid;grid-template-columns:repeat(var(--n,3),minmax(0,1fr));gap:1rem;margin:0 0 1.4rem}
  .kitnote{margin:-.8rem 0 1.4rem;font-size:13px;color:var(--ink-dim)}
  .kitpics figure{margin:0}
  .kitpics .kp{display:block;width:100%;height:auto;border-radius:2px}
  .kitpics figcaption{margin-top:.5rem;font-family:"IBM Plex Mono",monospace;font-size:11px;letter-spacing:.12em;text-transform:uppercase;color:var(--ink-dim)}
  @media (max-width:820px){
    .kitpics{grid-template-columns:none;grid-auto-flow:column;grid-auto-columns:78%;overflow-x:auto;scroll-snap-type:x mandatory;-webkit-overflow-scrolling:touch;padding-bottom:.4rem}
    .kitpics figure{scroll-snap-align:start}
  }
  .lightmode{position:absolute;left:50%;bottom:.75rem;transform:translateX(-50%);display:flex;gap:2px;padding:3px;margin:0;border:0;border-radius:3px;
    background:rgba(28,26,25,.78);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}
  .lightmode label{cursor:pointer;display:block}
  .lightmode input{position:absolute;opacity:0;width:1px;height:1px;pointer-events:none}
  .lightmode label > span{display:block;font-family:"IBM Plex Mono",monospace;font-size:10.5px;letter-spacing:.14em;text-transform:uppercase;color:var(--ink-dim);
    padding:.55rem .8rem;border-radius:2px;line-height:1.3;white-space:nowrap;transition:background .2s ease,color .2s ease}
  .lightmode label:hover > span{color:var(--ink)}
  .lightmode input:checked + span{background:var(--sand);color:var(--basalt)}
  .lightmode input:focus-visible + span{outline:2px solid var(--focus);outline-offset:2px}
  .sr{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
  @media (max-width:560px){
    .lightmode{bottom:.45rem}
    .lightmode label > span{font-size:9.5px;letter-spacing:.1em;padding:.45rem .55rem}
    .lightmode .lm-long{display:none}
  }

  /* ---------- r7: live free-shipping meter (header, toast) ---------- */
  .shipmeter{position:absolute;right:0;bottom:-1.15rem;display:flex;align-items:center;gap:.6rem;pointer-events:none;
    font-family:"IBM Plex Mono",monospace;font-size:10px;letter-spacing:.12em;text-transform:uppercase;color:var(--ink-dim);white-space:nowrap}
  .shipmeter[hidden]{display:none}
  .sm-bar{display:block;width:120px;height:4px;border-radius:2px;background:rgba(224,207,168,.12);overflow:hidden}
  .sm-bar i{display:block;height:100%;width:var(--ship-pct,0%);border-radius:2px;background:linear-gradient(90deg,var(--sienna),#F2C78F);transition:width .5s cubic-bezier(.2,.7,.3,1)}
  .is-free .sm-bar i{background:#F2C78F;box-shadow:0 0 8px rgba(242,199,143,.85)}
  .is-free .sm-text{color:#F2C78F}
  @media (max-width:560px){
    /* phones: the meter takes the middle of the header row instead of hanging under it */
    .shipmeter{position:static;flex-direction:column;align-items:flex-start;gap:.3rem;font-size:9px;letter-spacing:.08em;order:1;margin-left:auto}
    .shipmeter .sm-bar{width:100%;min-width:110px}
    header.top .topnav,header.site .shopnav{order:2}
    html[data-cartful] .topnav a:not(.cartlink){display:none}
    html[data-cartful] header.site .name{display:none}
  }
