/* Slate Row site: the editor's desk (DESIGN.md, locked 5 Oct 2026).
   First ported from the reference build's site CSS (5 Oct); since 7-8 Oct this file and
   the hub's templates are the site's design (DESIGN.md §15, §17; checked with
   scripts/site_goldens.py, never through the reference). Colours and faces come from tokens.css (generated
   from design/tokens.json). No inline styles anywhere: the CSP allows only this file and
   tokens.css, so every variant is a class. Page types add their own file under pages/. */

/* ---------- base ---------- */
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--ground);color:var(--ink);font:16px/1.55 var(--sans);-webkit-font-smoothing:antialiased;
  --s-diary:var(--blue);--s-giftc:var(--peach);--s-gift:var(--pink);--s-letter:var(--green);--s-strip:var(--blue)}
::selection{background:#F0B9AE;color:var(--ink)}
a{color:inherit}
button,select,input{font:inherit;color:inherit}
:focus-visible{outline:2px solid var(--ink2);outline-offset:2px}
img{display:block;max-width:100%}
.vh{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.sw{max-width:1140px;margin:0 auto;padding-inline:clamp(16px,4vw,52px)}
.sec{padding-block:clamp(44px,6vw,80px)}
.sec.top0{padding-top:0}
.sec.on-paper{background:var(--paper)}
.tnum{font-variant-numeric:tabular-nums lining-nums}

/* ---------- type ---------- */
.disp{font-family:var(--display);font-weight:var(--dw);letter-spacing:var(--dtrack);margin:0;text-wrap:balance;line-height:1.06}
.h1{font-size:clamp(34px,4vw,48px)}
.h2{font-size:clamp(30px,3.4vw,42px)}
.h3{font-size:24px}
.lede{font-size:17px;color:color-mix(in srgb,var(--ink) 78%,transparent);max-width:46ch;margin:12px 0 0}
.lbl{font:400 11.5px/1.3 var(--label);letter-spacing:.14em;text-transform:uppercase;color:color-mix(in srgb,var(--ink) 74%,transparent);margin:0}
/* a head's rhythm, on every page and section (owner, 7 Oct: room to breathe): the top
   line, 16 px, the heading, 20 px, the lede. Pages never set their own. */
.lbl + h1,.lbl + .h2{margin-top:16px}
h1 + .lede,.h2 + .lede,.rowhead + .lede{margin-top:20px}
.when{font:400 12px/1.35 var(--label);letter-spacing:.06em;text-transform:uppercase;color:color-mix(in srgb,var(--ink) 74%,transparent);margin:4px 0 0}
.small{font-size:13px;color:color-mix(in srgb,var(--ink) 72%,transparent);max-width:80ch}
.hand{font-family:var(--handf);font-weight:500;color:var(--hand);font-size:24px;transform:rotate(-1.5deg);transform-origin:left;margin:14px 0 0}
.price{font:var(--dw) 40px/1 var(--display);letter-spacing:-.01em;font-variant-numeric:tabular-nums lining-nums}
.price.big{font-size:52px}
.price.mid{font-size:28px}
.price.sm{font-size:24px}
.price small,.at{font:400 14px/1.3 var(--sans);letter-spacing:0;color:color-mix(in srgb,var(--ink) 70%,transparent)}
.price small{margin-left:8px}

/* ---------- links and buttons ---------- */
.btn{display:inline-flex;align-items:center;gap:8px;border:0;cursor:pointer;background:var(--ink);color:var(--paper);padding:13px 20px;font-weight:500;text-decoration:none;white-space:nowrap}
a.btn{color:var(--paper)}
.btn:hover{background:var(--ink2)}
.btn:active{transform:translateY(1px)}
.lnk{font-weight:500;text-decoration:underline;text-underline-offset:6px;text-decoration-thickness:1.5px;text-decoration-color:var(--accent)}

/* ---------- the top line, header, issue line ---------- */
.disc{font-size:13px;background:var(--paper);border-bottom:1px solid var(--rule);color:color-mix(in srgb,var(--ink) 82%,transparent);margin:0}
.disc .sw{display:flex;gap:10px;align-items:baseline;padding-block:8px}
.disc .ad{font-family:var(--display);font-weight:var(--dw);color:var(--ink);background:var(--ground);padding:1px 7px;border-radius:4px;box-shadow:0 0 0 1px var(--rule)}
.hdr .sw{display:flex;align-items:center;justify-content:space-between;gap:18px;padding-block:20px 14px;flex-wrap:wrap}
.wm{display:inline-flex;align-items:center;gap:.45em;color:var(--ink);text-decoration:none;font:var(--dw) 24px/1 var(--display);letter-spacing:-.01em}
.wm .mark{width:auto;height:1.2em}
.mark{display:inline-block;vertical-align:middle;color:var(--ink)}
.nav{display:flex;flex-wrap:wrap;gap:4px 22px;font-size:15px}
.nav a{text-decoration:none;color:color-mix(in srgb,var(--ink) 85%,transparent);padding:4px 0}
.nav a:hover{color:var(--ink);text-decoration:underline;text-underline-offset:5px;text-decoration-color:var(--accent)}
.nav a[aria-current]{color:var(--ink);font-weight:500;text-decoration:underline;text-underline-offset:6px;text-decoration-thickness:2px;text-decoration-color:var(--ink2)}
.hdr .issue{flex:1 1 100%}
.issue{display:flex;justify-content:space-between;flex-wrap:wrap;gap:6px 22px;border-top:2px solid var(--ink);border-bottom:1px solid var(--ink);padding:9px 0 8px;margin:0;font:400 12px/1.3 var(--label);letter-spacing:.13em;text-transform:uppercase}
.issue b{font-weight:500;color:var(--ink2)}
/* a page's one top line, where it is filed then its name ("Guides / Damp-season kit"); its
   first part links to that index while the index is live (owner, 7 Oct: no crumbs) */
.trail a{text-decoration:none}
.trail a:hover{text-decoration:underline;text-underline-offset:3px;text-decoration-color:var(--accent)}

/* ---------- shared marks ---------- */
.pm{display:block;color:var(--ink2);overflow:visible;width:84px;height:84px}
.pm text{font-family:var(--label)}
.pm.lg{width:104px;height:104px}
.pm.drop{color:var(--drop-postmark)}
.stamp-mask{--r:6px;
  -webkit-mask:radial-gradient(var(--r),#0000 97%,#000) round calc(-1.5*var(--r)) calc(-1.5*var(--r))/calc(3*var(--r)) calc(3*var(--r)),linear-gradient(#000 0 0) no-repeat 50%/calc(100% - 3*var(--r)) calc(100% - 3*var(--r));
          mask:radial-gradient(var(--r),#0000 97%,#000) round calc(-1.5*var(--r)) calc(-1.5*var(--r))/calc(3*var(--r)) calc(3*var(--r)),linear-gradient(#000 0 0) no-repeat 50%/calc(100% - 3*var(--r)) calc(100% - 3*var(--r))}
.stamp-mask.r5{--r:5px}
.stamp-mask.r7{--r:7px}
.pinked{--z:12px;-webkit-mask:conic-gradient(from -45deg at bottom,#0000,#000 1deg 89deg,#0000 90deg) 50% / var(--z) 100%;mask:conic-gradient(from -45deg at bottom,#0000,#000 1deg 89deg,#0000 90deg) 50% / var(--z) 100%}
.foil{background:conic-gradient(from 210deg,#F6D9E4,#DCE3FA,#D7F1EA,#F8F0CF,#F3D6EA,#D9E0FA,#F6D9E4);box-shadow:inset 0 0 0 1px rgba(255,255,255,.7),0 1px 3px var(--shadow)}
.washi{position:absolute;z-index:7;background:repeating-linear-gradient(90deg,var(--tape) 0 9px,color-mix(in srgb,var(--tape) 68%,#fff) 9px 18px);opacity:.92;
  -webkit-mask:conic-gradient(from 45deg at left,#0000,#000 1deg 89deg,#0000 90deg) left/51% 6px repeat-y,conic-gradient(from -135deg at right,#0000,#000 1deg 89deg,#0000 90deg) right/51% 6px repeat-y;
          mask:conic-gradient(from 45deg at left,#0000,#000 1deg 89deg,#0000 90deg) left/51% 6px repeat-y,conic-gradient(from -135deg at right,#0000,#000 1deg 89deg,#0000 90deg) right/51% 6px repeat-y}
.washi.blue{--tape:var(--tape-blue)}
.washi.green{--tape:var(--tape-green)}
/* postmark lines: pearl gradients (defined once per page in base.html), only where DESIGN.md §4 lists */
.pml{position:absolute;pointer-events:none;overflow:visible}
.pml path{fill:none;stroke-linecap:round;stroke:url(#pearl);opacity:.78}
.pml path:nth-child(even){stroke:url(#pearl2)}
.pml.key{position:static;width:36px;height:18px}
/* photo mount: the frame takes the photo's own shape; the photo is never cropped (§11).
   The <img> carries its width and height; max-width/max-height keep its shape. */
.mount{display:flex;justify-content:center;align-items:center;position:relative;filter:drop-shadow(0 4px 8px var(--shadow));height:calc(var(--mh,300px) + 2*var(--fp,12px) + 12px)}
/* the shared mount sizes (reference): the box a photo is fitted into before it loads */
.mount.m-find{--fp:14px;--mw:300px;--mh:300px}.mount.m-pp{--fp:16px;--mw:420px;--mh:420px}.mount.m-drop{--fp:9px;--mw:230px;--mh:170px}.mount.m-row{--fp:8px;--mw:170px;--mh:150px}
.frame{position:relative;background:var(--white);max-width:100%;padding:var(--fp,12px);transform:rotate(-1.2deg);--r:calc(var(--fp,12px) * .34);
  -webkit-mask:radial-gradient(var(--r),#0000 97%,#000) round calc(-1.5*var(--r)) calc(-1.5*var(--r))/calc(3*var(--r)) calc(3*var(--r)),linear-gradient(#000 0 0) no-repeat 50%/calc(100% - 3*var(--r)) calc(100% - 3*var(--r));
          mask:radial-gradient(var(--r),#0000 97%,#000) round calc(-1.5*var(--r)) calc(-1.5*var(--r))/calc(3*var(--r)) calc(3*var(--r)),linear-gradient(#000 0 0) no-repeat 50%/calc(100% - 3*var(--r)) calc(100% - 3*var(--r))}
.frame::after{content:"";position:absolute;inset:calc(var(--fp,12px) * .62);border:1px solid color-mix(in srgb,var(--ink) 22%,transparent);pointer-events:none}
.frame img{max-width:100%;height:auto;background:var(--white)}  /* width and height come fitted from the build */
/* hang tag on a string: the tag's hole is the origin */
.hang{position:absolute;width:0;height:0;z-index:8;--hy:20px;--hd:12px}
.hang svg.str{position:absolute;left:0;top:0;width:1px;height:1px;overflow:visible}
.hang .tg{position:absolute;transform-origin:50% var(--hy);transform:rotate(var(--tr,8deg));background:var(--paper);color:var(--ink);text-align:center;font-family:var(--display);font-weight:var(--dw);line-height:1.02;
  clip-path:polygon(50% 0,100% 20%,100% 100%,0 100%,0 20%);filter:drop-shadow(0 2px 3px var(--shadow))}
.hang .tg::before{content:"";position:absolute;left:50%;top:var(--hy);width:var(--hd);height:var(--hd);margin:calc(var(--hd)/-2) 0 0 calc(var(--hd)/-2);border-radius:50%;background:var(--holebg,var(--ground));box-shadow:inset 0 0 0 1.5px color-mix(in srgb,var(--ink) 25%,transparent)}
.hang .tg small{display:block;font:400 .42em/1 var(--label);letter-spacing:.14em;text-transform:uppercase;margin-bottom:.35em;color:color-mix(in srgb,var(--ink) 74%,transparent)}
.hang .anchor{position:absolute;z-index:2}
/* drop stamp: a real price drop and its size (doc H "Price claims"); beside a price, never on a photo */
.dropstamp{display:inline-grid;place-content:center;gap:2px;text-align:center;color:var(--accent-ink);border:2px solid currentColor;outline:1px solid currentColor;outline-offset:-6px;border-radius:50%;width:82px;height:82px;padding:6px;font:400 8px/1.1 var(--label);letter-spacing:.04em;text-transform:uppercase;transform:rotate(-12deg);background:color-mix(in srgb,var(--paper) 70%,transparent);flex:none}
.dropstamp b{font:var(--dw) 18px/1 var(--display);letter-spacing:0;text-transform:none;display:block}
.dropstamp.key{width:34px;height:34px;font-size:5px;border-width:1.5px}
.realdrop{display:flex;gap:14px;align-items:center;background:var(--pink);padding:12px 16px;margin-top:16px;max-width:62ch}
.realdrop p{margin:0;font-size:15px}
/* status tabs: Received / Checked / Filed */
.ftabs{--ftuck:10px;display:flex;gap:4px;padding-left:22px;position:relative;z-index:0;margin-bottom:calc(-1 * var(--ftuck))}
/* the tabs sit behind their card, as an index card's tabs sit behind the card in front
   (owner, 7 Oct): their feet run 10 px under its stamp edge, so the holes show the tab */
.ftabs + .card{position:relative;z-index:1}
.ftabs span{display:grid;align-content:start;gap:3px;font:400 10.5px/1 var(--label);letter-spacing:.14em;text-transform:uppercase;padding:9px 16px calc(10px + var(--ftuck));border-radius:9px 9px 0 0;color:color-mix(in srgb,var(--ink) 74%,transparent);box-shadow:inset 0 1px 0 rgba(255,255,255,.6)}
.ftabs span b{font:var(--dw) 17px/1.05 var(--display);letter-spacing:0;text-transform:none;color:var(--ink)}
/* "Filed in <group>": a long group takes its own line, so the tab is only as wide as its
   longest line, never stretched by a wrapped label (owner, 16 Oct); on a phone every group */
.ftabs em,.ftabs em i,.ftabs em .fi{font-style:normal;font-size:inherit}
.ftabs em .own{display:block}
/* Received and Price checked keep their value on one line ("Not now", "Today 01:22"); the
   Filed tab takes what room is left and its value wraps if it must (fix batch, 16 Oct) */
.ftabs .received,.ftabs .checked{flex:none}
.ftabs .received b,.ftabs .checked b{white-space:nowrap}
.ftabs .filed{min-width:0}
/* on a phone a long group stands alone as the label, so the tab stays two lines */
@media (max-width:520px){.ftabs em.long .fi{display:none}.ftabs em .own{display:inline}}
/* Every page's tabs: labels and values start at the top, so one tab's two-line name never
   moves the others; on a phone a little tighter, so "Filed in Home" stays on one line
   (owner, 17 Oct: the home page's tabs "not aligned again at iphone size") */
@media (max-width:520px){.ftabs{gap:3px}.ftabs span,.find .ftabs span{padding-inline:9px;letter-spacing:.1em}}
@media (max-width:380px){.ftabs span,.find .ftabs span{padding-inline:7px}}
.ftabs span{background:var(--tint)}  /* tint-*: the Filed tab its category's, the others green and blue unless they'd match it */
/* numbered steps: butter circles (a kit's things on home and on its guide); each page lays out its own rows */
.stops{list-style:none;margin:0;padding:0;display:grid}
.stops > li > .num{width:46px;height:46px;border-radius:50%;display:grid;place-items:center;background:var(--butter);font:var(--dw) 20px/1 var(--display);font-variant-numeric:lining-nums}

/* a card's pastel field: its category's site colour (render.site_tint; Pins: pin_plan.pin_tint) */
.tint-blue{--tint:var(--blue)}.tint-green{--tint:var(--green)}.tint-pink{--tint:var(--pink)}.tint-peach{--tint:var(--peach)}.tint-butter{--tint:var(--butter)}.tint-lilac{--tint:var(--lilac)}
.sprig{display:block;color:var(--ink);opacity:.75;width:52px}

/* ---------- the price link (owner, 7 Oct 2026: the price is the shop link; desk blue sweep) ---------- */
/* A card, list item or price box holding a price link gets `lights`: hovering anywhere on it
   lights the link (decoration only; the card is not a link); keyboard focus does the same.
   On the pastel cards the band is ink2, which keeps 4.5:1 on every pastel (sweep_blue is
   3.6 to 4.0:1 there). */
[class*="tint-"]{--sweep-blue:var(--ink2)}
.pricelink{display:inline-block;text-decoration:none;color:var(--ink);position:relative;margin-top:16px}
.pricelink .pl{display:inline-flex;flex-wrap:wrap;align-items:baseline;gap:2px 10px;padding-bottom:6px;
  background:linear-gradient(var(--sweep-blue) 0 0) no-repeat 0 100%/0% 2px;transition:background-size 1.4s ease-in-out}
.pricelink .go{display:inline}  /* the arrow joins the last word (a no-break space), so it never sits alone */
.pricelink .arr{white-space:nowrap}
.pricelink .shop{font-weight:500;font-size:16px;color:var(--ink)}
.pricelink .arr{display:inline-block;color:var(--accent-ink);font:500 22px/1 var(--sans);transition:transform .3s ease,color .3s ease}
.plus{font-size:14px;color:color-mix(in srgb,var(--ink) 70%,transparent);margin:2px 0 0}
.plus + .when{margin-top:4px}
.at.ask{font-size:16px;color:var(--ink)}  /* the page's own line, not a footnote */
/* lit: on hover anywhere on its card, or keyboard focus on the link */
.lights:hover .pricelink .pl,.pricelink:focus-visible .pl{background-size:100% 2px}
.lights:hover .pricelink .arr,.pricelink:focus-visible .arr{transform:translateX(6px);color:var(--sweep-blue)}
/* the sweep: a band of the desk blue (about 40% of the text) passes once across the price and
   the shop's name, then they rest on ink. Only where text clipping works, so a browser
   without it never shows transparent text. */
@supports (-webkit-background-clip:text) or (background-clip:text){
  .pricelink :is(.price,.shop){background:linear-gradient(100deg,var(--ink) 0 38%,var(--sweep-blue) 43% 57%,var(--ink) 62% 100%) 100% 0/300% 100%;-webkit-background-clip:text;background-clip:text;color:transparent}
  .lights:hover .pricelink :is(.price,.shop),.pricelink:focus-visible :is(.price,.shop){animation:pl-sweep 1.4s ease-in-out 1 both}
}
@keyframes pl-sweep{from{background-position:100% 0}to{background-position:0 0}}
/* phones and other touch screens: no hover, so the shop's name rests underlined in a light
   tint of the desk blue, with the arrow */
@media (hover:none){
  .pricelink .shop{text-decoration:underline;text-decoration-color:color-mix(in srgb,var(--sweep-blue) 35%,transparent);text-underline-offset:5px;text-decoration-thickness:1.5px}
}
/* reduced motion: no sweep and nothing moves; the text and arrow take the desk blue, and the
   underline shows at once */
@media (prefers-reduced-motion:reduce){
  .pricelink :is(.price,.shop){background:none;color:var(--ink);animation:none!important}
  .pricelink .arr{transform:none!important}
  .pricelink .pl{transition:none}
  .lights:hover .pricelink :is(.price,.shop),.pricelink:focus-visible :is(.price,.shop){color:var(--sweep-blue)}
}
/* Windows high contrast: the system's link colour, no clipped text */
@media (forced-colors:active){
  .pricelink :is(.price,.shop),.pricelink .arr{background:none;color:LinkText}
}

/* ---------- the price diary note (Caveat in hand, the find card's one handwritten line) ---------- */
.diarynote{display:inline-flex;align-items:baseline;gap:8px;margin-top:19px;font-family:var(--handf);font-weight:500;font-size:27px;line-height:1.1;
  color:var(--hand);text-decoration:none;transform:rotate(-1.5deg);transform-origin:left;transition:color .2s ease}
.diarynote .arr{display:inline-block;transition:transform .25s ease}
.diarynote:hover,.diarynote:focus-visible{color:var(--ink2)}
.diarynote:hover .arr,.diarynote:focus-visible .arr{transform:translateX(4px)}
@media (prefers-reduced-motion:reduce){.diarynote .arr{transform:none!important}}

/* ---------- the Real price drop stamp as the link to its price diary ---------- */
/* .dropstamp is desk.css's; a page places it (e.g. home's .drop .dropmark). The stamp lifts
   and turns a little on direct hover or focus, like picking up a stamp. */
a.dropstamp{position:relative;text-decoration:none;cursor:pointer;transition:transform .28s cubic-bezier(.16,1,.3,1),box-shadow .28s}
a.dropstamp:hover,a.dropstamp:focus-visible{transform:translateY(-5px) rotate(-4deg);box-shadow:0 10px 16px var(--shadow)}
a.dropstamp:focus-visible{outline:2px solid var(--ink2);outline-offset:4px}
.dropstamp .corner{position:absolute;right:-1px;bottom:1px;width:18px;height:18px;border-radius:50%;background:var(--accent-ink);color:var(--paper);
  display:grid;place-items:center;font:500 10px/1 var(--sans);transform:rotate(12deg);box-shadow:0 1px 3px var(--shadow)}
@media (prefers-reduced-motion:reduce){a.dropstamp:hover,a.dropstamp:focus-visible{transform:rotate(-12deg);box-shadow:none}}

/* ---------- footer ---------- */
.ftr{background:var(--paper);border-top:1px solid var(--rule);font-size:14px;color:color-mix(in srgb,var(--ink) 80%,transparent)}
.ftr .sw{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr) minmax(0,1fr);gap:34px;padding-block:44px}
.ftr h2{font:400 11.5px/1 var(--label);letter-spacing:.14em;text-transform:uppercase;margin:0 0 12px;color:var(--ink)}
.ftr ul{list-style:none;margin:0;padding:0;display:grid;gap:9px}
.ftr .keyrow{display:flex;gap:10px;align-items:center}
.ftr .keyrow .ico{flex:none;width:36px;height:36px;display:grid;place-items:center;position:relative}
.ftr .keyrow .pm{width:36px;height:36px}
.ftr .keyrow .tabs{display:flex;gap:2px;align-items:flex-end}.ftr .keyrow .tabs i{width:9px;height:13px;border-radius:3px 3px 0 0}.ftr .keyrow .tabs .received{background:var(--green)}.ftr .keyrow .tabs .checked{background:var(--blue);height:16px}.ftr .keyrow .tabs .filed{background:var(--butter)}  /* any category's colour: the key only shows the shape */
.ftr p{margin:10px 0 0;max-width:42ch}
.ftr .first{margin-top:0}
/* About and contact (the trader's details), the privacy notice, our email: one a line */
.ftr .ftr-links{margin-top:14px;gap:8px}
.ftr .ftr-links .lnk{text-underline-offset:4px;overflow-wrap:break-word}
.collect{display:flex;flex-wrap:wrap;gap:6px;margin-top:12px}
.collect span{font:400 12px/1 var(--label);padding:7px 9px;border:1px solid var(--rule);border-radius:4px}
.collect span.lit{background:var(--ink);color:var(--paper);border-color:var(--ink)}

/* ---------- the round-up page (/r/) ---------- */
.ru-head .sw{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:24px;align-items:end;padding-block:28px 10px}
.ru-list{display:grid;gap:22px;padding-block:18px 10px}
.ru-item{position:relative;filter:drop-shadow(0 8px 18px var(--shadow))}
.ru-item .face{position:relative;background:var(--paper);padding:24px 28px 26px}
.ru-item .face::after{content:"";position:absolute;inset:10px;border:1.4px dashed color-mix(in srgb,var(--ink) 22%,transparent);pointer-events:none}
.ru-item h2{font-size:clamp(24px,2.6vw,32px);position:relative;z-index:1}
.ru-item .note{margin:8px 0 0;max-width:60ch;position:relative;z-index:1}
.offers{list-style:none;margin:14px 0 0;padding:0;display:grid;gap:14px;position:relative;z-index:1}
.offers li{border-top:1px solid var(--rule);padding-top:14px}
.offers .row{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 10px}
.kit-total{display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px 20px;align-items:baseline;background:var(--white);padding:18px 24px 26px;font:400 14px/1.45 var(--label);border-top:2px solid var(--ink)}
.kit-total b{font:var(--dw) 28px/1 var(--display)}
.ru-empty{background:var(--paper);padding:26px 28px}
.ru-small{padding-block:8px 34px}
.ru-small > div{max-width:80ch}
.ru-small p{margin:6px 0 0}

/* ---------- phone ---------- */
@media (max-width:820px){
  .ftr .sw{grid-template-columns:1fr;gap:26px}
  .ru-head .sw{grid-template-columns:minmax(0,1fr) auto}
  .ru-head .pm.lg{width:72px;height:72px}
}
@media (prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}

/* Real price drop cards (home, /drops/): stamp cards hung from binder clips on a yarn line;
   the `dropcard` and `yarnline` macros (components/desk.html). */
.line-row{position:relative;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:30px;padding-top:34px;margin-top:22px}
.line-row > svg.yarn{position:absolute;left:-24px;top:0;width:calc(100% + 48px);height:44px;overflow:visible}
.yarn path{fill:none;stroke:var(--yarn);stroke-width:3.4;stroke-dasharray:10 6;stroke-linecap:round;vector-effect:non-scaling-stroke}
.yarn path.thread{stroke:var(--yarn2);stroke-width:1.1;transform:translateY(-.25px)}
.drop{position:relative}
.drop.d1{transform:rotate(-1.5deg)}.drop.d2{transform:rotate(1deg)}.drop.d3{transform:rotate(-.7deg)}
.drop .card{filter:drop-shadow(0 6px 12px var(--shadow))}
.drop .s{background:var(--white);padding:12px}
.drop .in{background:var(--tint,var(--blue));padding:16px 16px 18px;position:relative;overflow:hidden}
.drop h3{font:var(--dw) 21px/1.12 var(--display);letter-spacing:var(--dtrack);margin:12px 0 8px;overflow-wrap:break-word}
/* the price line and the Real price drop stamp side by side: the stamp has its own column
   (lower right), so a long shop name wraps in the text column and never runs under it */
.drop .dbody{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:16px;align-items:end;position:relative;z-index:3}
.drop .dtext{min-width:0}
.drop .dtext .pricelink{margin-top:0;max-width:100%}
.drop .dtext .shop{overflow-wrap:anywhere}
.drop .dropmark{position:relative;margin:0 -2px 4px 0}
.drop .pml{left:0;right:0;bottom:0;width:100%;height:80px}
.drop .clip{position:absolute;left:50%;top:-34px;width:30px;height:46px;margin-left:-15px;z-index:4;filter:drop-shadow(0 2px 2px rgba(37,40,72,.18))}
.clip .wire{fill:none;stroke:#9AA0B4;stroke-width:1.3}
.clip .wire2{fill:none;stroke:#C3C7D4;stroke-width:.9}
.clip .jaw{fill:var(--ink)}
.clip .band{stroke:#4A4F78;stroke-width:1}
.clip .lip{fill:#3A3F66}
@media (max-width:900px){
  .line-row{grid-template-columns:minmax(0,1fr);gap:46px}
  .line-row > svg.yarn{display:none}
}
@media (prefers-reduced-motion:no-preference){
  .drop{transition:transform .5s cubic-bezier(.16,1,.3,1)}
}

/* The search box (DESIGN.md §7 "Search"; home's hero and the search page): paper input,
   1 px ink-22% border, the joined ink button, the label visually hidden. */
.search{display:flex;margin-top:22px;max-width:620px}
.search label{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.search input{flex:1;min-width:0;border:1px solid color-mix(in srgb,var(--ink) 22%,transparent);background:var(--paper);padding:14px 16px;font-size:16px;border-radius:0;-webkit-appearance:none;appearance:none}
.search input::placeholder{color:color-mix(in srgb,var(--ink) 74%,transparent);opacity:1}
.search .btn{border-radius:0}
@media (max-width:420px){.search .btn{padding-inline:16px}}

/* ---------- the groups (U90, Option A; owner, 14 Oct) ---------- */
/* The panel's groups as paper tabs, each with a band of pearl postmark lines along its top
   edge (the site's own pearl, on lines only, never behind the words: DESIGN.md §4). The
   current group's tab is white and joins its drawer below; the drawer holds the group's
   rows as small tabs, each in its category's own colour. */
.gnav{padding-top:4px}
/* the tabs: one line that never wraps (review, 15 Oct: two rows of tabs at 761-1100 px
   with many groups), scrolled sideways like a drawer's row, with the same soft fade; the
   line overlaps the drawer's top edge by 1 px so the current tab joins it */
.gtabs{list-style:none;margin:0 0 -1px;padding:0 36px 0 var(--gtabs-in,0px);display:flex;flex-wrap:nowrap;gap:6px 5px;position:relative;z-index:1;
  overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x proximity;scrollbar-width:none;scroll-padding-inline:var(--gtabs-in,0px) 48px;
  -webkit-mask-image:linear-gradient(90deg,#000 calc(100% - 36px),transparent);
          mask-image:linear-gradient(90deg,#000 calc(100% - 36px),transparent)}
.gtabs::-webkit-scrollbar{display:none}
.gtabs li{flex:none;scroll-snap-align:start}
.gtabs a{white-space:nowrap}
.gtabs a:focus-visible{outline-offset:-3px}
/* arriving at /diaries/home/#tab-home scrolls the line to its tab, never the page down to
   it (the tabs are near the top), and keeps the line's inset before it */
.gtabs a{scroll-margin-top:100vh;scroll-margin-inline:var(--gtabs-in,0px) 0}
.dhead{display:none;margin:0 0 8px;font:500 11.5px/1.3 var(--label);letter-spacing:.12em;text-transform:uppercase;color:color-mix(in srgb,var(--ink) 74%,transparent)}
.gtabs a{position:relative;display:flex;align-items:baseline;gap:9px;padding:21px 18px 11px;margin-bottom:-1px;border:1px solid color-mix(in srgb,var(--ink) 18%,transparent);border-bottom-color:transparent;border-radius:10px 10px 0 0;background:var(--paper);text-decoration:none;font:var(--dw) 18px/1.05 var(--display);letter-spacing:var(--dtrack);overflow:hidden}
.gtabs a{margin-bottom:0}
.gtabs a b{font:400 11px/1 var(--label);letter-spacing:.1em;color:color-mix(in srgb,var(--ink) 74%,transparent)}
.gtabs .gpml{left:10px;right:10px;top:5px;width:calc(100% - 20px);height:11px}
.gtabs .gpml path{opacity:.7}
.gtabs a:hover{text-decoration:underline;text-underline-offset:4px;text-decoration-color:var(--accent)}
.gtabs a:hover .gpml path,.gtabs a[aria-current] .gpml path{opacity:.95}
.gtabs a[aria-current]{background:var(--white);border-bottom-color:var(--white)}
.drawer{position:relative;background:var(--white);border:1px solid color-mix(in srgb,var(--ink) 18%,transparent);border-radius:10px;padding:16px calc(var(--strip-pad) + var(--cell-pad) - 1px);box-shadow:0 8px 16px var(--shadow)}
/* A group's rows: one line that never wraps (owner, 15 Oct: "the bar … is scrollable … so
   it doesnt fold down like wrap down"; then "i think simpler to just do soft fade
   everywhere"). Swipe or trackpad to scroll, snapping to a tab; no scrollbar, no buttons, no
   scripts. A soft fade at the right end while there is more: the line ends in 36 px of
   room under the fade, so a line that fits never fades a tab, and the last tab comes clear
   when scrolled to the end. Where the browser ties an animation to the scroll
   (animation-timeline: Chrome 115, Safari 26, Firefox 159), the fades follow the scroll at
   both ends instead: the left one once scrolled, the right one gone at the end. */
.drawer .cats-row{display:flex;align-items:center;min-width:0}
.drawer .cats{list-style:none;margin:0;padding:2px 36px 2px 0;display:flex;flex-wrap:nowrap;gap:6px;min-width:0;flex:1;
  overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x proximity;scrollbar-width:none;
  -webkit-mask-image:linear-gradient(90deg,#000 calc(100% - 36px),transparent);
          mask-image:linear-gradient(90deg,#000 calc(100% - 36px),transparent)}
.drawer .cats::-webkit-scrollbar{display:none}
.drawer .cats{scroll-padding-inline:0 48px;position:relative}  /* hidden words stay inside the row */
.drawer .cats a:focus-visible{outline-offset:-3px}
/* a browser leaves a partly shown tab where it is when the keyboard reaches it: while a tab
   in the line has keyboard focus, the line drops its fade, so the ring and the words show */
.drawer .cats:has(a:focus-visible),.gtabs:has(a:focus-visible){-webkit-mask-image:none!important;mask-image:none!important}
.drawer .cats li{flex:none;scroll-snap-align:start}
.drawer .cats a{white-space:nowrap}
@property --fade-l{syntax:"<length>";inherits:false;initial-value:0px}
@property --fade-r{syntax:"<length>";inherits:false;initial-value:0px}
@keyframes cats-fade{
  0%{--fade-l:0px;--fade-r:44px}
  6%{--fade-l:44px}
  94%{--fade-r:44px}
  100%{--fade-l:44px;--fade-r:0px}
}
@media (prefers-reduced-motion:no-preference){
@supports (animation-timeline:scroll()){
  .drawer .cats{padding-right:0;
    -webkit-mask-image:linear-gradient(90deg,transparent,#000 var(--fade-l),#000 calc(100% - var(--fade-r)),transparent);
            mask-image:linear-gradient(90deg,transparent,#000 var(--fade-l),#000 calc(100% - var(--fade-r)),transparent);
    animation:cats-fade linear both;animation-duration:auto;animation-timeline:scroll(self inline)}
}
}
/* the group tabs' line the same way, at every width (owner, 15 Oct: "i think scroll") */
@media (prefers-reduced-motion:no-preference){
@supports (animation-timeline:scroll()){
  .gtabs{padding-right:0;
    -webkit-mask-image:linear-gradient(90deg,transparent,#000 var(--fade-l),#000 calc(100% - var(--fade-r)),transparent);
            mask-image:linear-gradient(90deg,transparent,#000 var(--fade-l),#000 calc(100% - var(--fade-r)),transparent);
    animation:cats-fade linear both;animation-duration:auto;animation-timeline:scroll(self inline)}
}
}
.drawer .cats a{display:flex;align-items:baseline;gap:8px;padding:7px 12px 8px;border-radius:7px;background:var(--tint);text-decoration:none;font:var(--dw) 16px/1.05 var(--display);box-shadow:inset 0 1px 0 rgba(255,255,255,.6)}
.drawer .cats a b{font:400 11px/1 var(--label);letter-spacing:.1em;color:color-mix(in srgb,var(--ink) 74%,transparent)}
.drawer .cats a:hover{text-decoration:underline;text-underline-offset:4px;text-decoration-color:var(--accent)}
.drawer .dgroup{display:grid;grid-template-columns:minmax(150px,200px) minmax(0,1fr);gap:8px 18px;align-items:center;padding-block:9px}
.drawer .dgroup + .dgroup{border-top:1px dashed color-mix(in srgb,var(--ink) 20%,transparent)}
.drawer .gname{font:500 11.5px/1.3 var(--label);letter-spacing:.12em;text-transform:uppercase;text-decoration:none;color:color-mix(in srgb,var(--ink) 74%,transparent)}
.drawer .gname:hover{text-decoration:underline;text-underline-offset:4px;text-decoration-color:var(--accent)}
@media (max-width:760px){
  /* phones (owner, 15 Oct: "do the wrap down or is that also a scroll? i think scroll";
     "the spacing on the new group tabs is inconsistent to the larger boxes"; "all groups is
     selected but theres nothing below"): the same folder tabs as on a desktop, one line
     that scrolls with the soft fade, inset as the rows below them; the current tab joins
     the drawer, which always shows: a group's rows, or on the index each group's rows */
  .gtabs{gap:4px}
  .gtabs a{font-size:15px;padding:17px 11px 9px;gap:6px}  /* a little of the next tab shows before the fade */
  .gtabs .gpml{top:5px;height:10px}
  .drawer{padding:12px calc(var(--strip-pad,8px) + var(--cell-pad,8px) - 1px)}
  .drawer .dgroup{grid-template-columns:minmax(0,1fr);gap:6px;padding-block:8px}
  .drawer .cats a{font-size:15px;padding:6px 10px 7px}
  .dhead{display:block}  /* the selected tab's group by name, under the tabs */
}
