/* Spill Your Bag — stylesheet for the generated pages (idea, trending, play,
   learn, about…). The homepage is React and Material UI; these are the same
   tokens written as custom properties so the two read as one site.
   Kept in sync by hand with src/home/theme.js. */

:root {
  --bg: #fff6fa;
  --paper: #ffffff;
  --text: #2f1f2e;
  --text2: #6b5570;
  --divider: #f3d3e2;
  --primary: #ff4d8d;
  --on-primary: #ffffff;
  --secondary: #b388ff;
  --tint: #fff0f6;

  /* Zone colours. Fixed values, used only as dots and small tags beside a
     numbered zone list. They are never applied to an image. */
  --zone-tech: #bfdbfe;
  --zone-beauty: #fbcfe8;
  --zone-health: #bbf7d0;
  --zone-snacks: #fde68a;
  --zone-docs: #e9d5ff;
  --on-zone: #2f1f2e;

  --r: 16px;
  --r-lg: 22px;
  --shadow: 0 1px 2px rgba(47, 31, 46, .06), 0 8px 24px rgba(47, 31, 46, .07);
  --shadow-sm: 0 1px 2px rgba(47, 31, 46, .06), 0 3px 10px rgba(47, 31, 46, .06);
  --sans: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Bricolage Grotesque", Verdana, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1c1420; --paper: #2a1f2e; --text: #fbf2f7; --text2: #c9b6c6;
    --divider: #4d3a4d; --primary: #ff7ab0; --on-primary: #1c1420;
    --secondary: #c7a6ff; --tint: #33263a;
    --shadow: 0 1px 2px rgba(0, 0, 0, .35), 0 8px 24px rgba(0, 0, 0, .35);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3), 0 3px 10px rgba(0, 0, 0, .3);
  }
}
:root[data-theme="dark"] {
  --bg: #1c1420; --paper: #2a1f2e; --text: #fbf2f7; --text2: #c9b6c6;
  --divider: #4d3a4d; --primary: #ff7ab0; --on-primary: #1c1420;
  --secondary: #c7a6ff; --tint: #33263a;
  --shadow: 0 1px 2px rgba(0, 0, 0, .35), 0 8px 24px rgba(0, 0, 0, .35);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3), 0 3px 10px rgba(0, 0, 0, .3);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); scroll-padding-top: 72px; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--sans); font-size: 16px; line-height: 1.6;
  overflow-x: hidden;
  padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--text); }
h1, h2, h3 { font-family: var(--display); font-weight: 800; letter-spacing: -.02em; line-height: 1.15; margin: 0 0 .4em; }
h1 { font-size: clamp(26px, 6vw, 40px); }
h2 { font-size: clamp(20px, 4.4vw, 28px); }
h3 { font-size: 18px; }
p { margin: 0 0 1em; }
.muted { color: var(--text2); }
.small { font-size: 13px; }
.centre { text-align: center; }
.stack > * + * { margin-top: 14px; }
.section { margin: 26px 0; }
hr { border: 0; border-top: 1px solid var(--divider); margin: 24px 0; }

:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 3px solid var(--primary); outline-offset: 2px; border-radius: 8px;
}
/* Off-screen upwards, not sideways: -9999px to the left widens the page on a
   phone, which is the one thing the layout must never do. */
.skip { position: absolute; left: 0; top: 0; z-index: 99; background: var(--paper);
  padding: 12px 16px; border-radius: 0 0 var(--r) 0; box-shadow: var(--shadow);
  transform: translateY(-120%); }
.skip:focus { transform: translateY(0); }

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 16px; position: relative; z-index: 1; }
.narrow { max-width: 820px; }

/* ---------- surfaces ---------- */
.box { background: var(--paper); border-radius: var(--r); box-shadow: var(--shadow); padding: 18px; }
.box-quiet { background: var(--tint); border-radius: var(--r); padding: 16px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 22px; border-radius: 999px;
  font: 700 15px/1.2 var(--sans); text-decoration: none; cursor: pointer;
  background: var(--paper); color: var(--text); border: 1px solid var(--divider);
  transition: transform .12s ease, box-shadow .12s ease;
}
.btn:hover { box-shadow: var(--shadow-sm); }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--primary); color: var(--on-primary); border-color: transparent; }
.btn-ghost { background: transparent; }
.btn-block { width: 100%; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--divider); padding-top: env(safe-area-inset-top); }
.header-in { display: flex; align-items: center; gap: 6px; min-height: 58px; flex-wrap: wrap; }
.wordmark { font-family: var(--display); font-weight: 800; font-size: 18px; text-decoration: none;
  display: flex; align-items: center; gap: 6px; margin-right: auto; }
.wordmark b { color: var(--primary); }
.nav { display: flex; gap: 2px; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px;
  font-weight: 600; font-size: 14px; text-decoration: none; border-radius: 999px; color: var(--text2); }
.nav a[aria-current="page"] { color: var(--primary); background: var(--tint); }
.icon-btn { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center;
  background: none; border: 0; border-radius: 50%; cursor: pointer; font-size: 17px; color: var(--text2); padding: 0; }
.icon-btn:hover { background: var(--tint); }
/* A phone cannot fit the wordmark and four links on one line, so the links
   drop to a second row. A two-row header would eat too much of a small
   screen, so it stops being sticky there. */
@media (max-width: 560px) {
  .site-header { position: static; }
  .wordmark { font-size: 16px; }
  .header-in { min-height: 52px; padding-bottom: 6px; }
  /* wordmark and the theme button share the first row, the links take the
     second — without the order the button wraps onto a third row */
  .nav { width: 100%; justify-content: center; order: 3; }
  .site-header .icon-btn { order: 2; }
  .nav a { padding: 0 10px; font-size: 13.5px; min-height: 40px; }
}

/* ---------- floaters (same decoration as the homepage) ---------- */
/* Fixed, so it escapes body's overflow clip. Its width is set from the
   document width in core.js — left to the viewport it can be a scrollbar
   wider than the page and drag a sideways scroll with it. */
.floaters { position: fixed; top: 0; bottom: 0; left: 0; width: 100%; overflow: hidden;
  pointer-events: none; z-index: 0; }
.floaters span { position: absolute; top: 0; line-height: 1; user-select: none; will-change: transform; }
@keyframes syb-rise { from { transform: translateY(110vh) rotate(0deg); } to { transform: translateY(-15vh) rotate(25deg); } }
@keyframes syb-sway { 0%, 100% { margin-left: 0; } 50% { margin-left: var(--sway); } }

/* ---------- idea page ---------- */
.idea-top { display: grid; gap: 16px; }
.idea-media { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); background: var(--paper); }
figure { margin: 0; }
figcaption { font-size: 12px; color: var(--text2); padding-top: 8px; }
.illus { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 700;
  color: var(--text2); background: var(--tint); border-radius: 999px; padding: 3px 10px; }
.meta-line { font-size: 14px; color: var(--text2); }
.zones { list-style: none; counter-reset: z; padding: 0; margin: 0; display: grid; gap: 10px; }
.zones li { counter-increment: z; display: grid; grid-template-columns: 30px 1fr; gap: 12px; align-items: start; }
.zones li::before {
  content: counter(z); width: 28px; height: 28px; margin-top: 2px;
  display: flex; align-items: center; justify-content: center;
  font: 700 13px/1 var(--display); color: var(--on-zone);
  border-radius: 50%; background: var(--zone, var(--tint));
}
.zones .zl { font-weight: 700; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.zones .zi { font-size: 14px; color: var(--text2); }
.dot { width: 12px; height: 12px; border-radius: 50%; flex: none; display: inline-block; }
.z-tech { background: var(--zone-tech); } .z-beauty { background: var(--zone-beauty); }
.z-health { background: var(--zone-health); } .z-snacks { background: var(--zone-snacks); }
.z-docs { background: var(--zone-docs); }
.tip { background: var(--tint); border-radius: var(--r); padding: 16px; }
.tip strong { font-family: var(--display); display: block; margin-bottom: 2px; }
.checked { display: inline-flex; gap: 6px; align-items: center; font-size: 13px; font-weight: 600;
  background: var(--zone-health); color: var(--on-zone); border-radius: 999px; padding: 4px 12px; }
.prevnext { display: flex; gap: 10px; justify-content: space-between; flex-wrap: wrap; }

/* ---------- products ---------- */
.disclosure { font-size: 12.5px; color: var(--text2); background: var(--tint);
  border-radius: 10px; padding: 8px 12px; margin: 10px 0; }
.lede { font-size: 14px; color: var(--text2); margin-bottom: 4px; }
.products { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); padding: 0; margin: 0; list-style: none; }
@media (min-width: 760px) { .products { grid-template-columns: repeat(4, 1fr); } }
.product { background: var(--paper); border-radius: var(--r); box-shadow: var(--shadow-sm);
  overflow: hidden; display: flex; flex-direction: column; }
.product img { width: 100%; background: var(--tint); }
.product .pb { padding: 12px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product .pn { font-weight: 600; font-size: 14px; line-height: 1.35; }
.product .pp { font-weight: 800; font-family: var(--display); }
.product .btn { margin-top: auto; font-size: 14px; padding: 8px 16px; }
.zone-tag { align-self: flex-start; font-size: 11px; font-weight: 700; border-radius: 999px;
  padding: 2px 9px; color: var(--on-zone); }

/* ---------- printable, signup ---------- */
.printable, .signup { border-radius: var(--r-lg); padding: 18px; display: grid; gap: 12px; }
.printable { background: var(--zone-health); color: var(--on-zone); }
.signup { background: var(--zone-tech); color: var(--on-zone); }
@media (min-width: 620px) { .printable { grid-template-columns: 1fr auto; align-items: center; } }
.printable h2, .signup h2 { margin: 0; font-size: 20px; }
.signup form { display: flex; flex-wrap: wrap; gap: 8px; }
.signup input[type="email"] { flex: 1 1 220px; min-height: 48px; padding: 10px 16px;
  font: 500 16px/1.2 var(--sans); border: 1px solid rgba(47,31,46,.2); border-radius: 999px;
  background: #fff; color: #2f1f2e; }
.signup label { font-weight: 700; display: block; margin-bottom: 6px; }
.signup .btn-primary { border: 0; }

/* ---------- trending ---------- */
.trend-list { display: grid; gap: 16px; padding: 0; margin: 0; list-style: none; }
@media (min-width: 760px) { .trend-list { grid-template-columns: repeat(2, 1fr); } }
.trend { display: grid; grid-template-columns: 88px 1fr; gap: 14px; align-items: start;
  background: var(--paper); border-radius: var(--r); box-shadow: var(--shadow-sm); padding: 14px; }
.trend img { border-radius: 12px; background: var(--tint); }
.evidence { font-size: 13px; color: var(--text2); background: var(--tint); border-radius: 10px; padding: 8px 12px; }

/* ---------- pack it ---------- */
.play-grid { display: grid; gap: 18px; }
@media (min-width: 900px) { .play-grid { grid-template-columns: minmax(0, 1fr) 330px; align-items: start; } }
.table-scene { position: relative; min-height: 320px; border-radius: var(--r-lg); overflow: hidden;
  touch-action: none; box-shadow: var(--shadow); background-color: #c79355;
  background-image: repeating-linear-gradient(90deg, rgba(0,0,0,.08) 0 2px, transparent 2px 48px),
                    repeating-linear-gradient(90deg, rgba(255,255,255,.05) 0 1px, transparent 1px 14px); }
.table-scene.over { outline: 3px dashed var(--primary); outline-offset: -8px; }
.scene-hint { position: absolute; left: 12px; right: 12px; bottom: 10px; text-align: center;
  font-size: 12px; font-weight: 600; color: #4a2f16; }
.placed { position: absolute; display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px;
  min-height: 44px; font: 600 13px/1.1 var(--sans); color: var(--on-zone);
  border-radius: 999px; box-shadow: var(--shadow-sm); cursor: grab; touch-action: none;
  user-select: none; -webkit-user-select: none; }
.placed.bag { background: #fff; font-weight: 700; font-size: 14px; padding: 14px 18px; }
.placed.dragging { cursor: grabbing; transform: scale(1.06); z-index: 5; }
.tray { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; list-style: none; }
.tile { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 8px 14px;
  border: 0; font: 600 13px/1.2 var(--sans); color: var(--on-zone); border-radius: 999px;
  cursor: pointer; box-shadow: var(--shadow-sm); }
.tile[aria-pressed="true"] { opacity: .5; box-shadow: none; }
.tile .px { font-weight: 800; }
.meter { height: 12px; border-radius: 999px; background: var(--tint); overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--zone-health); transition: width .2s ease; }
.meter i.over { background: var(--primary); }
.meter-row { display: grid; gap: 5px; margin-bottom: 12px; }
.meter-row .lab { display: flex; justify-content: space-between; font-size: 13px; font-weight: 600; }
.verdict { font-weight: 700; }
.streak { font-family: var(--display); font-weight: 800; }
.musts { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; font-size: 14px; }
.musts li::before { content: "○ "; font-weight: 700; color: var(--text2); }
.musts li.got::before { content: "● "; color: var(--primary); }
.tips { background: var(--zone-snacks); color: var(--on-zone); border-radius: var(--r); padding: 16px; }

/* ---------- learn ---------- */
.grid-2 { display: grid; gap: 14px; }
@media (min-width: 720px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 44px; display: inline-flex; align-items: center; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--divider);
  background: var(--paper); color: var(--text); font: 600 14px/1 var(--sans); cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--primary); color: var(--on-primary); border-color: transparent; }
.shape-head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.shape-head .e { font-size: 26px; }
.kv { font-size: 14px; margin: 0; }
.kv dt { font-weight: 700; font-size: 11px; text-transform: uppercase; letter-spacing: .06em;
  color: var(--text2); margin-top: 10px; }
.kv dd { margin: 0; }
.plain { background: var(--tint); border-radius: 12px; padding: 10px 12px; }
.fit label { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: 15px; cursor: pointer; }
.fit input { width: 20px; height: 20px; accent-color: var(--primary); }
.sel { min-height: 48px; padding: 10px 16px; font: 600 16px/1 var(--sans); background: var(--paper);
  color: var(--text); border: 1px solid var(--divider); border-radius: 999px; }
.search { width: 100%; min-height: 48px; padding: 12px 18px; font: 500 16px/1.2 var(--sans);
  background: var(--paper); color: var(--text); border: 1px solid var(--divider);
  border-radius: 999px; box-shadow: var(--shadow-sm); }

/* ---------- footer + consent ---------- */
.site-footer { border-top: 1px solid var(--divider); background: var(--paper); margin-top: 40px;
  padding: 24px 0 calc(24px + env(safe-area-inset-bottom)); font-size: 13px; color: var(--text2); position: relative; z-index: 1; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 0 16px; margin-bottom: 10px; }
/* Footer links are tap targets too, so they get the full 44px. */
.site-footer nav a, .site-footer nav button { display: inline-flex; align-items: center; min-height: 44px; }
.site-footer a { font-weight: 600; color: var(--text); }
.site-footer .independent { max-width: 64ch; }
body:has(.consent:not([hidden])) { padding-bottom: 190px; }
.consent { position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom));
  z-index: 60; max-width: 560px; margin: 0 auto; background: var(--paper); border-radius: var(--r);
  box-shadow: var(--shadow); padding: 16px; font-size: 14px; }
.consent[hidden] { display: none; }
.consent .row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.consent .row .btn { flex: 1 1 auto; font-size: 14px; padding: 8px 16px; }
.consent fieldset { border: 0; padding: 0; margin: 12px 0 0; }
.consent fieldset label { display: flex; gap: 10px; align-items: flex-start; min-height: 44px; }
.pin-note { font-size: 12px; color: var(--text2); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* ---------- style hubs ---------- */
.hub { display: grid; gap: 26px; }
@media (min-width: 900px) {
  .hub { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 32px; }
}
.hub-cell { min-width: 0; }
.hub-cell h1 { margin-top: 14px; }
/* The hero is the biggest thing on the page, not the whole first screen. */
.hub-cell .idea-media img { max-height: 330px; width: 100%; object-fit: contain; background: var(--bg); }
.hub-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
a.chip { text-decoration: none; }

.talk { display: grid; gap: 12px; }
@media (min-width: 560px) { .talk { grid-template-columns: 1fr 1fr; } }
.talk-col { border-radius: var(--r); padding: 14px 16px; }
.talk-col h3 { font-size: 15px; margin-bottom: 6px; }
.talk-col ul { margin: 0; padding-left: 18px; font-size: 14px; }
.talk-col li + li { margin-top: 6px; }
.talk-col.good { background: var(--zone-health); color: var(--on-zone); }
.talk-col.watch { background: var(--zone-snacks); color: var(--on-zone); }

.timeline { list-style: none; counter-reset: t; padding: 0; margin: 0; }
.timeline li { counter-increment: t; position: relative; padding: 0 0 16px 26px; }
.timeline li::before {
  content: ""; position: absolute; left: 5px; top: 7px; width: 10px; height: 10px;
  border-radius: 50%; background: var(--primary);
}
.timeline li::after {
  content: ""; position: absolute; left: 9.5px; top: 20px; bottom: 0; width: 2px; background: var(--divider);
}
.timeline li:last-child { padding-bottom: 0; }
.timeline li:last-child::after { display: none; }
.tl-label { display: block; font-weight: 700; }
.tl-text { display: block; font-size: 14px; color: var(--text2); }

.idea-form { display: grid; gap: 6px; }
.idea-form textarea, .idea-form input[type="text"] {
  width: 100%; padding: 10px 14px; font: 500 16px/1.4 var(--sans);
  background: var(--bg); color: var(--text);
  border: 1px solid var(--divider); border-radius: var(--r);
}
.idea-form textarea { resize: vertical; min-height: 88px; }
.idea-form .btn { justify-self: start; margin-top: 4px; }

/* ---------- product rows ---------- */
.shop-block { margin-bottom: 8px; }
.row-wrap { position: relative; }
.products.row {
  display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 2px 2px 10px; margin: 0; list-style: none; grid-template-columns: none;
  scrollbar-width: thin;
}
.products.row .product { flex: 0 0 200px; scroll-snap-align: start; }
.row-arrow {
  display: none; position: absolute; top: 40%; z-index: 2;
  width: 40px; height: 40px; border-radius: 50%; cursor: pointer;
  background: var(--paper); color: var(--text); border: 1px solid var(--divider);
  box-shadow: var(--shadow-sm); font-size: 16px;
}
.row-arrow.prev { left: -14px; } .row-arrow.next { right: -14px; }
@media (min-width: 900px) and (pointer: fine) { .row-arrow { display: block; } }
.tier { align-self: flex-start; font-size: 11px; font-weight: 700; border-radius: 999px;
  padding: 2px 9px; color: var(--on-zone); }
.tier-everyday { background: var(--zone-health); }
.tier-sweet { background: var(--zone-tech); }
.tier-splurge { background: var(--zone-docs); }
.product .brand { font-size: 12px; color: var(--text2); font-weight: 600; }
.product .pnote { font-size: 12px; color: var(--text2); line-height: 1.4; }
.empty-row { font-size: 14px; color: var(--text2); }

/* ---------- board and style cards ---------- */
.board-grid { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 720px) { .board-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.board-card { display: block; text-decoration: none; border-radius: var(--r); overflow: hidden;
  background: var(--paper); box-shadow: var(--shadow-sm); }
.board-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.bc-title { display: block; padding: 8px 10px 2px; font-weight: 700; font-size: 14px; line-height: 1.3; }
.bc-meta { display: block; padding: 0 10px 10px; font-size: 12px; color: var(--text2); }
.bc-title:last-child { padding-bottom: 10px; }
.guide-link { display: block; text-decoration: none; }

/* ---------- size tables ---------- */
.table-wrap { overflow-x: auto; }
table.sizes { width: 100%; border-collapse: collapse; font-size: 14px; }
table.sizes th, table.sizes td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--divider); }
table.sizes thead th { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--text2); }
.cmp { display: grid; gap: 18px; }
@media (min-width: 720px) { .cmp { grid-template-columns: 1fr 1fr; } }
.cmp-col { background: var(--paper); border-radius: var(--r); box-shadow: var(--shadow-sm); padding: 16px; }

/* A product we have named but not pictured: a plain card, no borrowed image. */
.product.no-pic .no-pic-mark {
  display: flex; align-items: center; justify-content: center; min-height: 92px;
  background: var(--tint); color: var(--text2);
  font-family: var(--display); font-weight: 800; font-size: 15px; text-align: center; padding: 8px;
}
.product .nop { font-family: var(--sans); font-weight: 600; font-size: 13px; color: var(--text2); }

/* Product pictures come in every shape: drawn placeholders are square, a
   photo is whatever the camera gave. One frame, nothing cropped off. */
.product img { aspect-ratio: 1 / 1; object-fit: contain; background: var(--tint); }

/* ---------- the clip band ---------- */
.band { margin: 22px 0 4px; }
.band-video {
  display: block; width: 100%; height: auto;
  border-radius: var(--r-lg); background: var(--tint);
}
.band-note { margin: 8px 0 0; font-size: 12px; color: var(--text2); }


/* ---------- colour and pattern switchers ---------- */
.switcher { margin-top: 12px; }
.switcher .filter-label { display: block; margin-bottom: 6px; }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.swatch { width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; cursor: pointer; position: relative;
  background: var(--paper); box-shadow: var(--shadow-sm); }
.swatch::before { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: var(--sw, #ccc);
  box-shadow: inset 0 0 0 1px rgba(47,31,46,.12); }
.swatch[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--primary); }
.swatch.rainbow::before { background: conic-gradient(#c9313f, #ef8a3c, #f2d565, #7f9a72, #3f5a86, #9d84c8, #c9313f); }
.soon-line { margin-top: 10px; }
.nav-soon { opacity: .75; }
.signin { min-height: 44px; padding: 6px 14px; font-size: 13.5px; }
@media (max-width: 560px) { .signin { order: 2; } }



/* ---------- the hub after the rework: picture left, heart on it, wheel ---------- */
.header-full { width: 100%; max-width: none; padding: 0 16px; }
.header-search { flex: 1 1 260px; max-width: 520px; margin: 0 8px; }
.header-search input { min-height: 40px; }
@media (max-width: 760px) { .header-search { order: 5; width: 100%; max-width: none; margin: 0 0 6px; flex-basis: 100%; } }
.hub-left .hero-fig { margin: 0; }
.hero-left { position: relative; }
.hero-left img { max-height: none; width: 100%; object-fit: contain; object-position: left center; }
.hero-heart {
  position: absolute; top: 10px; right: 10px; width: 44px; height: 44px; border: 0; border-radius: 50%; cursor: pointer;
  background: var(--paper); color: var(--primary); font-size: 22px; line-height: 1; box-shadow: var(--shadow-sm);
  opacity: 0; transition: opacity .15s ease, transform .15s ease;
}
.hero-left:hover .hero-heart, .hero-heart:focus-visible, .hero-heart[aria-pressed="true"] { opacity: 1; }
@media (hover: none) { .hero-heart { opacity: 1; } }
.hero-heart:hover { transform: scale(1.06); }
.colour-row { display: flex; gap: 18px; align-items: flex-start; flex-wrap: wrap; }
.wheel { display: inline-flex; flex-direction: column; gap: 6px; }
.wheel input[type="color"] {
  width: 56px; height: 56px; padding: 0; border: 0; border-radius: 50%; cursor: pointer; background: none;
  box-shadow: var(--shadow-sm); overflow: hidden;
}
.wheel input[type="color"]::-webkit-color-swatch-wrapper { padding: 4px; }
.wheel input[type="color"]::-webkit-color-swatch { border: 0; border-radius: 50%; }
.wheel input[type="color"]::-moz-color-swatch { border: 0; border-radius: 50%; }

/* the timeline on its side */
.timeline-x { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 1fr); gap: 16px; overflow-x: auto;
  padding: 10px 2px 8px; scroll-snap-type: x proximity; scrollbar-width: thin; }
.timeline-x li { padding: 0 0 0 0; scroll-snap-align: start; position: relative; padding-top: 22px; }
.timeline-x li::before { left: 0; top: 0; }
.timeline-x li::after { left: 16px; right: -16px; top: 4px; bottom: auto; width: auto; height: 2px; }
.timeline-x li:last-child::after { display: none; }
.comments { background: var(--tint); border-radius: var(--r-lg); padding: 18px; }
.comments h2 { margin-bottom: 4px; }

/* the logo in the wordmark */
.wordmark .logo { width: 32px; height: 32px; vertical-align: -9px; margin-right: 2px; }

/* ---------- timeline years, page kind, index cards ---------- */
.tl-year { display: block; font: 700 12px/1.2 var(--sans); color: var(--primary); letter-spacing: .04em; text-transform: uppercase; margin-bottom: 2px; }
.kind-label { margin: 12px 0 -8px; }
.hub-card { position: relative; }
.hub-card img.outline { object-fit: contain; background: #fff6fa; }
.bc-kind { position: absolute; top: 8px; left: 8px; padding: 3px 9px; border-radius: 999px; background: var(--primary); color: var(--on-primary);
  font: 700 11px/1.4 var(--sans); letter-spacing: .03em; text-transform: uppercase; }
#facet-chips .chip { padding: 8px 14px; font-size: 13px; }
