/* Carpet Warehouses — "Swatch book": deep teal, terracotta and wool cream, carpet-pile textures, fringed edges and
   whipped (stitched) swatch edges. Fonts: Josefin Sans (headings, labels) + Merriweather Sans (text), self-hosted,
   SIL OFL (see /assets/fonts/OFL.txt). Illustrations are the site's own inline SVG. */
@font-face { font-family: "Josefin Sans"; src: url(/assets/fonts/josefin-sans.woff2) format("woff2"); font-weight: 100 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Merriweather Sans"; src: url(/assets/fonts/merriweather-sans.woff2) format("woff2"); font-weight: 300 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Merriweather Sans"; src: url(/assets/fonts/merriweather-sans-italic.woff2) format("woff2"); font-weight: 300 800; font-style: italic; font-display: swap; }

:root {
  --teal: #0E4A4F; --teal-deep: #0A3438; --teal-2: #13606A; --teal-soft: #DCE9E7;
  --terra: #B4502D; --terra-ink: #A84A2A; --terra-hi: #E08A62; --rust: #8E3B20;
  --wool: #F6EFE2; --card: #FFFBF4; --linen: #EDE3D0; --sand: #CDB892; --fringe: #E9DCC3;
  --ink: #1F2A2B; --muted: #55605F; --line: #DCCDB0;
  --display: "Josefin Sans", "Century Gothic", "Avenir Next", system-ui, sans-serif;
  --text: "Merriweather Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --wrap: 1180px; --radius: 6px;
  --weave: repeating-linear-gradient(45deg, rgba(255,255,255,.045) 0 2px, transparent 2px 7px), repeating-linear-gradient(-45deg, rgba(0,0,0,.09) 0 2px, transparent 2px 7px);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--wool); color: var(--ink); font: 400 1rem/1.7 var(--text); overflow-wrap: anywhere; }
img, svg { max-width: 100%; }
img { height: auto; }
a { color: var(--teal); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--terra-ink); }
:focus-visible { outline: 3px solid var(--terra); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.15; color: var(--teal-deep); margin: 0 0 .5em; letter-spacing: -.005em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.1rem); }
h2 { font-size: clamp(1.45rem, 2.7vw, 1.95rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
strong { font-weight: 700; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: 16px; padding-right: 16px; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--terra); color: #fff; padding: 10px 16px; font-weight: 700; border-radius: 4px; }
.skip:focus { top: 12px; color: #fff; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { display: inline-block; vertical-align: -.2em; flex: none; }
.small { font-size: .9rem; }
.muted { color: var(--muted); }
.mono { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .92em; }
.kicker { font: 700 .82rem/1.3 var(--display); letter-spacing: .16em; text-transform: uppercase; color: var(--terra-ink); margin-bottom: .7em; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.lede { font-size: 1.1rem; max-width: 46rem; }

/* ---------- "a guide, not a shop" notice (every page) */
.notice { margin: 0; background: var(--linen); color: var(--ink); border-bottom: 1px solid var(--line); font-size: .88rem; line-height: 1.45; }
.notice-in { display: flex; gap: 8px; align-items: flex-start; padding-top: 7px; padding-bottom: 7px; }
.notice svg { flex: none; margin-top: 2px; color: var(--terra-ink); }

/* ---------- header with a fringed bottom edge */
.site-head { position: relative; background-color: var(--teal); background-image: var(--weave); color: var(--wool); border-bottom: 6px solid var(--terra); }
.head-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 28px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--wool); text-decoration: none; }
.brand:hover { color: #fff; }
.brand-mark { color: var(--terra-hi); background: var(--teal-deep); border-radius: 8px; padding: 4px; box-shadow: inset 0 0 0 2px rgba(233,220,195,.35); }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font: 700 1.55rem/1 var(--display); letter-spacing: .02em; text-transform: uppercase; }
.brand-sub { font-size: .76rem; letter-spacing: .06em; color: var(--fringe); margin-top: 5px; }
.site-nav ul { display: flex; flex-wrap: wrap; gap: 4px; list-style: none; margin: 0; padding: 0; }
.site-nav a { display: block; padding: 9px 13px 7px; color: var(--wool); text-decoration: none; font: 600 1rem/1.2 var(--display); letter-spacing: .05em; text-transform: uppercase; border-radius: 4px; }
.site-nav a:hover { background: rgba(255,255,255,.1); color: #fff; }
.site-nav a[aria-current] { background: var(--wool); color: var(--teal-deep); }
.site-nav a:focus-visible { outline-color: var(--terra-hi); }
.fringe { position: absolute; left: 0; right: 0; bottom: -20px; height: 14px; pointer-events: none;
  background: repeating-linear-gradient(90deg, var(--sand) 0 2px, transparent 2px 7px), repeating-linear-gradient(90deg, transparent 0 4px, rgba(205,184,146,.6) 4px 5px, transparent 5px 7px);
  background-size: 100% 14px, 100% 10px; background-repeat: no-repeat; }
.fringe.up { position: static; height: 14px; margin-top: -14px; background-position: 0 0, 0 4px; }

/* ---------- buttons */
.btn-main, .btn-ghost, .btn-amz, .btn-more, .btn-shelf { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 18px 8px; border-radius: 4px; font: 700 .98rem/1.2 var(--display); letter-spacing: .04em; text-decoration: none; }
.btn-main { background: var(--terra); color: #fff; box-shadow: inset 0 -3px 0 rgba(0,0,0,.18); }
.btn-main:hover { background: var(--rust); color: #fff; }
.btn-ghost { color: var(--wool); box-shadow: inset 0 0 0 2px var(--fringe); }
.btn-ghost:hover { background: rgba(255,255,255,.1); color: #fff; }
.btn-amz { background: var(--terra); color: #fff; }
.btn-amz:hover { background: var(--rust); color: #fff; }
.btn-amz.big { min-height: 52px; font-size: 1.08rem; width: 100%; }
.btn-more { color: var(--teal); box-shadow: inset 0 0 0 2px var(--teal); background: transparent; }
.btn-more:hover { background: var(--teal); color: var(--wool); }
.btn-shelf { color: var(--teal-deep); background: var(--card); box-shadow: inset 0 0 0 2px var(--teal); text-align: left; }
.btn-shelf:hover { background: var(--teal); color: var(--wool); }

/* ---------- hero */
.hero { background-color: var(--teal-deep); background-image: var(--weave); color: var(--wool); padding: 44px 0 52px; }
.hero-in { display: grid; gap: 20px; align-items: center; }
.hero-in > * { min-width: 0; }
.hero h1 { color: var(--wool); }
.hero h1 em { font-style: normal; color: var(--terra-hi); }
.hero .kicker { color: var(--fringe); }
.hero-acts { display: flex; flex-wrap: wrap; gap: 10px; margin: 1.3em 0 1em; }
.hero-note { display: flex; gap: 8px; align-items: flex-start; font-size: .9rem; color: var(--fringe); max-width: 40rem; }
.hero-note .icon { margin-top: 3px; color: var(--terra-hi); }
.hero-art { display: none; justify-self: center; }
@media (min-width: 860px) { .hero-in { grid-template-columns: 1.45fr 1fr; } .hero-art { display: block; } .hero { padding: 58px 0 68px; } }

/* ---------- sections */
.band { padding-top: 38px; padding-bottom: 8px; }
.band-wool { background: var(--linen); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding-bottom: 28px; margin-top: 28px; margin-bottom: 18px;
  background-image: repeating-linear-gradient(0deg, rgba(205,184,146,.18) 0 1px, transparent 1px 5px); }
.sec-h { display: flex; align-items: center; gap: 10px; }
.sec-h::before { content: ""; flex: none; width: 18px; height: 18px; border-radius: 2px; background: var(--terra); box-shadow: inset 0 0 0 3px var(--card), 0 0 0 1px var(--terra); }
.sec-h .icon { color: var(--teal); }
.sec-sub { color: var(--muted); margin-top: -.3em; max-width: 48rem; }
.page { padding-top: 34px; padding-bottom: 44px; }
.crumbs { font-size: .88rem; color: var(--muted); margin-bottom: 14px; }
.empty { padding: 18px; background: var(--card); border: 1px dashed var(--line); border-radius: var(--radius); }
.h-icon { color: var(--terra); vertical-align: -.12em; }

/* aisle signs */
.aisles { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 165px), 1fr)); gap: 12px; }
.aisle { position: relative; display: grid; gap: 4px; align-content: start; padding: 14px 14px 16px; height: 100%; background: var(--card); border: 1px solid var(--line); border-top: 5px solid var(--teal); border-radius: 0 0 var(--radius) var(--radius); color: var(--ink); text-decoration: none; }
.aisle .icon { color: var(--terra); margin-top: 4px; }
.aisle:hover { border-color: var(--terra); color: var(--ink); background: #fff; }
.aisle-no { justify-self: start; font: 700 .72rem/1 var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--wool); background: var(--teal); padding: 5px 7px 3px; border-radius: 2px; }
.aisle-name { font: 700 1.14rem/1.2 var(--display); color: var(--teal-deep); }
.aisle-n { font-size: .85rem; color: var(--muted); }
.aisle-intro { font-size: .92rem; margin-top: 4px; }
.aisles.big { grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); }
/* aisle/pick tiles with a photo: the photo fills the top of the tile under the teal edge, with a terracotta line
   under it; the photo credit sits under the tile (outside the link), as on the guide cards. */
.aisles li { display: flex; flex-direction: column; min-width: 0; }
.aisles li > .aisle { flex: 1 1 auto; height: auto; }
.aisles .has-photo > .aisle { padding-top: 0; overflow: hidden; }
.aisle-thumb { display: block; width: calc(100% + 28px); max-width: none; height: auto; aspect-ratio: 3 / 2; object-fit: cover;
  margin: 0 -14px 8px; border-bottom: 3px solid var(--terra); background: var(--linen); }
.aisles.big .aisle-thumb { aspect-ratio: 16 / 9; }
/* in a row where some tiles have photos, a tile without one shows a woven pile swatch in its place so the tiles line up */
.aisles:has(.has-photo) li:not(.has-photo) > .aisle { padding-top: 0; overflow: hidden; }
.aisles:has(.has-photo) li:not(.has-photo) > .aisle::before { content: ""; display: block; aspect-ratio: 3 / 2; margin: 0 -14px 8px; border-bottom: 3px solid var(--terra);
  background-color: var(--teal-2); background-image: var(--weave); }
.aisles.big:has(.has-photo) li:not(.has-photo) > .aisle::before { aspect-ratio: 16 / 9; }
.aisle-credit { margin: 5px 4px 0; font-size: .74rem; line-height: 1.35; color: var(--muted); }
.aisle-credit a { color: var(--teal-2); }

/* ---------- product swatches (the site's motif: a carpet sample with pile texture and a whipped edge) */
.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 268px), 1fr)); gap: 20px 18px; margin: 12px 0 14px; }
.swatch { position: relative; display: flex; flex-direction: column; padding: 0 18px 16px; background: var(--card); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius);
  outline: 1.5px dashed var(--sand); outline-offset: -6px; box-shadow: 0 3px 0 var(--line); }
.swatch-pile { height: 46px; margin: 0 -18px 0; border-radius: var(--radius) var(--radius) 0 0; border-bottom: 3px solid var(--card);
  background-color: var(--terra); background-image: repeating-linear-gradient(90deg, rgba(0,0,0,.14) 0 1px, transparent 1px 4px), repeating-linear-gradient(0deg, rgba(255,255,255,.12) 0 1px, transparent 1px 3px); }
.tone-2 .swatch-pile { background-color: var(--teal-2); background-image: repeating-linear-gradient(45deg, rgba(255,255,255,.14) 0 2px, transparent 2px 5px), repeating-linear-gradient(-45deg, rgba(0,0,0,.14) 0 2px, transparent 2px 5px); }
.tone-3 .swatch-pile { background-color: var(--sand); background-image: radial-gradient(circle at 2px 2px, rgba(120,90,40,.35) 1px, transparent 1.4px), radial-gradient(circle at 5px 5px, rgba(255,255,255,.35) 1px, transparent 1.4px); background-size: 6px 6px, 6px 6px; }
.tone-4 .swatch-pile { background-color: var(--teal-deep); background-image: repeating-linear-gradient(90deg, var(--terra) 0 6px, transparent 6px 14px, var(--fringe) 14px 16px, transparent 16px 22px); }
.swatch-label { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; margin: -14px 0 10px; padding: 5px 9px 3px; background: var(--card); border: 1px solid var(--line); border-radius: 3px;
  font: 700 .72rem/1.2 var(--display); letter-spacing: .1em; text-transform: uppercase; color: var(--teal-deep); position: relative; }
.swatch-label .icon { color: var(--terra); }
.swatch-name { font-size: 1.18rem; margin-bottom: .35em; }
.swatch-name a { color: var(--teal-deep); text-decoration: none; }
.swatch-name a:hover { color: var(--terra-ink); text-decoration: underline; }
.swatch-spec { align-self: flex-start; padding: 3px 10px; border-radius: 3px; background: var(--linen); font-size: .86rem; font-weight: 700; margin-bottom: .6em; }
.swatch-for { font-size: .9rem; margin-bottom: .5em; }
.swatch-for span { font-weight: 700; color: var(--teal); }
.swatch-sum { font-size: .9rem; color: var(--muted); }
.swatch-acts { display: flex; flex-wrap: wrap; gap: 8px; margin: auto 0 0; padding-top: 10px; border-top: 1px dashed var(--line); }
.swatch-acts a { flex: 1 1 auto; min-height: 42px; padding: 9px 12px 7px; font-size: .92rem; }
.amz-note { font-size: .86rem; color: var(--muted); border-left: 3px solid var(--terra); padding-left: 10px; max-width: 60rem; }

/* picks list */
.picks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 12px; }
.picks a { display: flex; gap: 12px; align-items: flex-start; padding: 14px; background: var(--card); border-radius: var(--radius); border: 1px solid var(--line); text-decoration: none; color: var(--ink); height: 100%; }
.picks a:hover { border-color: var(--terra); }
.picks .icon { color: var(--terra); margin-top: 2px; }
.picks strong { display: block; font: 700 1.12rem/1.25 var(--display); color: var(--teal-deep); }
.picks small { display: block; font-size: .88rem; color: var(--muted); }

/* guides */
.guide-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 12px; }
.guide-list a { display: block; height: 100%; padding: 15px 16px 15px 22px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); text-decoration: none; position: relative; }
.guide-list a::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 8px; border-radius: var(--radius) 0 0 var(--radius);
  background: var(--teal); background-image: repeating-linear-gradient(0deg, rgba(255,255,255,.18) 0 1px, transparent 1px 3px); }
.guide-list a:hover::before { background-color: var(--terra); }
.guide-list strong { display: block; font: 700 1.14rem/1.25 var(--display); color: var(--teal-deep); margin-bottom: 4px; }
.guide-list span { font-size: .92rem; color: var(--muted); }
/* guide cards with a photo: the photo fills the top of the card beside the woven binding stripe, with a terracotta
   edge under it; the photo credit sits under the card (outside the link). Cards without a photo look as before. */
.guide-list li { display: flex; flex-direction: column; min-width: 0; }
.guide-list li > a { flex: 1 1 auto; height: auto; }
.guide-list .has-photo > a { padding-top: 0; overflow: hidden; }
.guide-list .gl-thumb { display: block; width: calc(100% + 30px); max-width: none; height: auto; aspect-ratio: 16 / 9; object-fit: cover;
  margin: 0 -16px 13px -14px; border-bottom: 3px solid var(--terra); background: var(--linen); }
.guide-list .gl-credit { margin: 5px 4px 0 10px; font-size: .76rem; line-height: 1.35; color: var(--muted); }
.guide-list .gl-credit span { font-size: inherit; }
.guide-list .gl-credit a { display: inline; height: auto; padding: 0; background: none; border: 0; border-radius: 0; position: static; color: var(--teal-2); text-decoration: underline; }
.guide-list .gl-credit a::before { content: none; }

/* jump links + chips */
.jump ul, .chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 18px; align-items: center; }
.jump a, .chips a { display: inline-block; padding: 6px 12px 4px; border-radius: 3px; background: var(--card); border: 1px solid var(--line); text-decoration: none; font: 700 .9rem/1.3 var(--display); letter-spacing: .03em; }
.jump a:hover, .chips a:hover { border-color: var(--terra); }
.group { margin-top: 30px; }
.shelf-link { font-size: .92rem; color: var(--muted); }

/* Amazon shelf box on aisle pages */
.shelf { margin: 26px 0 20px; padding: 18px 18px 6px; background: var(--card); border: 2px dashed var(--sand); border-radius: var(--radius); }
.shelf-list { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- product page */
.product { display: grid; gap: 24px; align-items: start; }
.product > * { min-width: 0; }
@media (min-width: 900px) { .product { grid-template-columns: minmax(0, 1fr) 330px; gap: 40px; } .buy-box { position: sticky; top: 16px; } }
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 160px), 1fr)); gap: 10px; margin: 18px 0 22px; padding: 0; }
.facts div { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 14px; }
.facts .wide { grid-column: 1 / -1; }
.facts dt { font: 700 .74rem/1.3 var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--terra-ink); }
.facts dd { margin: 3px 0 0; font-weight: 700; }
.buy-box { padding: 20px; background-color: var(--teal); background-image: var(--weave); color: var(--wool); border-radius: var(--radius); outline: 1.5px dashed rgba(233,220,195,.55); outline-offset: -7px; }
.buy-h { font: 700 1.3rem/1.2 var(--display); color: #fff; }
.buy-box a { color: var(--fringe); }
.buy-box a:hover { color: #fff; }
.buy-box .btn-amz { color: #fff; }
.callout { background: var(--card); border: 1px solid var(--line); border-left: 6px solid var(--terra); border-radius: var(--radius); padding: 12px 16px; margin: 1.2em 0; }
.callout p:last-child { margin-bottom: 0; }
.callout.caution { border-left-color: var(--teal); }

/* guide page: article + aisle sidebar */
.guide-layout { display: grid; gap: 28px; align-items: start; }
.guide-layout > * { min-width: 0; }
.guide-side { display: none; }
@media (min-width: 1000px) { .guide-layout { grid-template-columns: minmax(0, 1fr) 290px; gap: 48px; } .guide-side { display: block; position: sticky; top: 16px; } }
.side-card { background: var(--card); border: 1px solid var(--line); border-top: 5px solid var(--teal); border-radius: 0 0 var(--radius) var(--radius); padding: 16px 18px 6px; outline: 1.5px dashed var(--sand); outline-offset: -6px; }
.side-h { font: 700 .82rem/1.3 var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--terra-ink); }
.side-list { list-style: none; margin: 0 0 12px; padding: 0; }
.side-list a { display: flex; align-items: center; gap: 8px; padding: 6px 0; font-weight: 700; text-decoration: none; border-bottom: 1px dashed var(--line); }
.side-list a:hover { text-decoration: underline; }
.side-list .icon { color: var(--terra); }
.mobile-buy { display: grid; gap: 6px; margin: 0 0 20px; }
.mobile-buy .small { color: var(--muted); }
@media (min-width: 900px) { .mobile-buy { display: none; } }

/* ---------- prose */
.prose { max-width: 46rem; }
.prose h2 { margin-top: 1.5em; }
.prose h3 { margin-top: 1.2em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .4em; }
.prose-page .prose { margin-top: 10px; }
.guide .lede { color: var(--muted); }
.checked-chip { display: inline-block; font: 700 .78rem/1.2 var(--display); letter-spacing: .1em; text-transform: uppercase; color: var(--teal-deep); background: var(--teal-soft); padding: 6px 10px 4px; border-radius: 3px; }
.sources { font-size: .93rem; }
.checked { font-size: .9rem; color: var(--muted); }
.sources-box { margin-top: 30px; padding-top: 8px; border-top: 2px dashed var(--line); }
.photo { margin: 1.2em 0; }
.photo img { border-radius: var(--radius); display: block; }
.photo figcaption { font-size: .85rem; color: var(--muted); margin-top: 6px; }
.guide-photo { max-width: 760px; }
.guide-photo img { width: auto; max-width: 100%; height: auto; max-height: min(75vh, 620px); } /* a portrait photo (the stair runner) stays in view */
/* aisle/pick page: intro beside the photo on wide screens, photo under the intro on phones */
.term-top { display: grid; gap: 4px 32px; align-items: start; margin-bottom: 8px; }
.term-top > * { min-width: 0; }
figure.term-photo { margin: 0 0 1em; }
.term-photo img { margin: 0; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border: 5px solid var(--card); outline: 1.5px dashed var(--sand); outline-offset: -9px; box-shadow: 0 3px 0 var(--line); }
@media (min-width: 900px) { .term-top { grid-template-columns: minmax(0, 1fr) 460px; } figure.term-photo { margin-top: 4px; } }
/* home hero photo: framed like a carpet sample (cream binding, stitched edge, terracotta shadow) */
figure.hero-photo { margin: 6px 0 0; justify-self: center; width: 100%; max-width: 520px; }
.hero-photo img { margin: 0; display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border: 6px solid var(--fringe); border-radius: 4px;
  outline: 1.5px dashed var(--sand); outline-offset: -11px; box-shadow: 8px 8px 0 var(--terra); }
.hero-photo figcaption { margin-top: 12px; font-size: .8rem; color: var(--fringe); }
.hero-photo figcaption a { color: var(--fringe); }
.about-photo img { margin: 0; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }

/* FAQ */
.faq { max-width: 50rem; display: grid; gap: 10px; margin-bottom: 18px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 0 16px; }
.faq summary { cursor: pointer; padding: 14px 0 12px; font: 700 1.08rem/1.35 var(--display); color: var(--teal-deep); }
.faq details[open] summary { border-bottom: 1px dashed var(--line); margin-bottom: 10px; }
.faq .prose { padding-bottom: 6px; }

/* 404 */
.nf-links { font-size: 1.1rem; }

/* ---------- footer with a fringed top edge */
.site-foot { margin-top: 48px; background-color: var(--teal-deep); background-image: var(--weave); color: #E8E0CF; border-top: 6px solid var(--terra); }
.site-foot a { color: var(--fringe); }
.site-foot a:hover { color: #fff; }
.foot-in { display: grid; gap: 24px; padding-top: 30px; padding-bottom: 12px; }
.foot-in > * { min-width: 0; }
@media (min-width: 860px) { .foot-in { grid-template-columns: 1.6fr 1fr; } }
.foot-name { font: 700 1.4rem/1.1 var(--display); text-transform: uppercase; letter-spacing: .04em; color: var(--wool); margin-bottom: .5em; }
.foot-brand p { font-size: .9rem; }
.foot-nav { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.foot-nav ul { list-style: none; margin: 0; padding: 0; }
.foot-nav li { margin-bottom: 6px; }
.copy { font-size: .86rem; padding-top: 12px; padding-bottom: 24px; border-top: 1px solid rgba(255,255,255,.14); }

/* ---------- cookie choice (5od) */
.cookie-bar[hidden] { display: none !important; }
.cookie-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: var(--card); color: var(--ink); border-top: 6px solid var(--terra); box-shadow: 0 -6px 24px rgba(0,0,0,.2); padding: 14px 0 16px; max-height: 80vh; overflow-y: auto; }
.cookie-in { display: grid; gap: 12px 32px; align-items: center; }
@media (min-width: 860px) { .cookie-in { grid-template-columns: minmax(0, 1fr) auto; } }
.cookie-h { font: 700 1.35rem/1.1 var(--display); color: var(--teal-deep); margin: 0 0 6px; }
.cookie-txt p { margin: 0 0 6px; font-size: .94rem; }
.cookie-now { font-weight: 700; color: var(--teal); }
.cookie-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie-btn { flex: 1 1 12rem; min-height: 48px; padding: 10px 20px 8px; border: 0; border-radius: 4px; background: var(--teal); color: var(--wool); font: 700 1rem/1.2 var(--display); letter-spacing: .03em; cursor: pointer; }
.cookie-btn:hover { background: var(--terra); color: #fff; }
.cookie-h:focus { outline: none; }
.cookie-h:focus-visible { outline: 3px solid var(--terra); }
@media (prefers-reduced-motion: no-preference) { .cookie-bar { animation: cookie-up .25s ease-out; } .aisle, .swatch-name a, .btn-amz, .btn-more { transition: background-color .15s, border-color .15s, color .15s; } }
@keyframes cookie-up { from { transform: translateY(100%); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* ---------- small screens */
@media (max-width: 520px) {
  .brand-name { font-size: 1.3rem; }
  .site-nav a { padding: 8px 9px 6px; font-size: .92rem; }
  .hero { padding: 32px 0 40px; }
}

/* ---------- print */
@media print {
  .site-nav, .fringe, .cookie-bar, .hero-art, .swatch-acts, .skip, .foot-nav, .jump, .shelf, .notice svg { display: none !important; }
  body, .site-head, .hero, .site-foot, .buy-box, .band-wool { background: #fff !important; color: #000 !important; }
  .hero h1, .brand, .buy-h, .foot-name, .site-foot, .hero .kicker, .hero-note { color: #000 !important; }
  .swatch { break-inside: avoid; outline: none; box-shadow: none; }
  .swatch-pile { display: none; }
  .swatch-label { margin-top: 10px; }
  a { color: #000; }
  .btn-amz::after { content: " (Amazon.co.uk)"; }
}

/* Floating banner (bottom centre). Restyled to the swatch-book look; mechanics kept:
   - visibility (not display) hides it until 5od fills it, so t.js can still measure the width and see it;
   - inner width = up to 728px (760 max - 2 x 15px padding - 2 x 1px border), so t.js picks 728x90 / 468x60 / 320x50 by the space available;
   - its z-index (35) stays BELOW the cookie bar's (60), so the bar always covers it when reopened. */
.ad-float[hidden] { display: none !important; }
.ad-float { position: fixed; left: 50%; bottom: 0; z-index: 35; box-sizing: border-box; width: 100%; max-width: 760px;
  padding: 10px 15px 6px; background: var(--card, #fff); border: 1px solid var(--line, #ddd); border-bottom: 0; border-top: 4px solid var(--teal, #0E4A4F); border-radius: 6px 6px 0 0;
  box-shadow: 0 -8px 28px rgba(10, 52, 56, .25); transform: translate(-50%, 0); visibility: visible; }
.ad-float:not(:has(ins.fiveod[data-fiveod="filled"])) { visibility: hidden; transform: translate(-50%, 110%); box-shadow: none; }
.ad-float-in { width: 100%; }
.ad-float-x { position: absolute; top: -16px; right: 10px; width: 30px; height: 30px; padding: 0; border-radius: 50%;
  border: 2px solid var(--card, #fff); background: var(--terra, #B4502D); color: #fff; font: 700 18px/1 system-ui, sans-serif;
  cursor: pointer; display: grid; place-items: center; }
.ad-float-x:hover { background: var(--rust, #8E3B20); }
.ad-float-x:focus-visible { outline: 3px solid var(--teal, #0E4A4F); outline-offset: 2px; }
body:has(.ad-float:not([hidden]) ins.fiveod[data-fiveod="filled"]) { padding-bottom: 130px; }
@media (max-width: 759px) { body:has(.ad-float:not([hidden]) ins.fiveod[data-fiveod="filled"]) { padding-bottom: 92px; } }
@media (prefers-reduced-motion: no-preference) { .ad-float { transition: transform .3s ease-out, visibility 0s; } }
@media print { .ad-float { display: none !important; } }

/* blog (/blog/, /blog/{slug}/, "From the blog" on the home page) — cards reuse .guide-list, lists reuse .swatches/.aisles */
.post-list .post-date { display: block; margin-bottom: 6px; font: 700 .74rem/1.2 var(--display); letter-spacing: .1em; text-transform: uppercase; color: var(--terra-ink); }
.post-list .has-photo .post-date { margin-top: 2px; }
.post-meta { margin: -4px 0 12px; font: 700 .8rem/1.3 var(--display); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.post .prose + .prose { margin-top: 0; }
.post-products, .post-aisles { margin: 18px 0 24px; }
.post-products .swatches { grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); }
.post-products .amz-note { margin-top: 10px; }
.post-more { margin: 8px 0 0; font-weight: 700; }
.post-more a::after { content: " →"; }
@media print { .post-products .swatch-acts, .post-more { display: none; } }

/* other shops: "Also sold by" box on aisle pages + /where-to-buy/ */
.shops-box { margin: 26px 0 20px; padding: 18px 18px 6px; background: var(--card); border: 1px solid var(--line); border-left: 6px solid var(--teal); border-radius: var(--radius); }
.shops-box .sec-h { font-size: 1.25rem; }
.shops-box-list { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 8px; }
.shops-box-list li { line-height: 1.5; }
.shop-name { font-weight: 700; }
.shop-what { color: var(--muted); font-size: .92rem; }
.shops-note { margin: 0 0 22px; }
.shops { list-style: none; margin: 0 0 30px; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.shop { background: var(--card); border: 1px solid var(--line); border-top: 5px solid var(--terra); border-radius: var(--radius); padding: 16px 18px 8px; }
.shop h2 { font-size: 1.3rem; margin-bottom: .35em; }
.shop > p { font-size: .95rem; margin: 0 0 .7em; }
.shop-links { margin: 0 0 10px; padding-left: 1.1em; font-size: .93rem; }
.shop-links li { margin-bottom: 4px; }
.shop-aisle { color: var(--muted); }
