/* =========================================================================
   Clone Radar — "Archive" design system
   Warm editorial reference-tool: bone paper, espresso ink, single terracotta
   accent, Fraunces for names, Inter for prose, IBM Plex Mono for data.
   ========================================================================= */

@import url("fonts/fonts.css");

:root {
  --paper:    #F3F2EF;
  --paper-2:  #FAF9F6;
  --surface:  #FFFFFF;
  --ink:      #1B1A17;
  --ink-2:    #5C564D;
  --muted:    #6E675B;   /* secondary text — AA on paper/surface (was #9C978C, 2.6:1) */
  --muted-soft: #9C978C; /* decorative only: hairline icons/dividers, never text */
  --line:     #ECE9E3;
  --line-2:   #E1DCD2;
  --on-ink:   #FFFFFF;   /* text/icons on an --ink-filled surface (flips in dark) */

  --accent:      #AE4F33;   /* terracotta — used sparingly */
  --accent-deep: #8C3B22;
  --accent-soft: #F2E2D7;
  --gold:        #BBA06D;   /* decorative fills/borders only */
  --gold-ink:    #7C6428;   /* gold AS TEXT — AA on paper */
  --sage:        #7E8A6A;   /* decorative fills/borders only */
  --sage-ink:    #566249;   /* sage AS TEXT — AA on paper */
  --sage-deep:   #5F6C48;   /* sage badge fill under white text — AA */

  --display: "Bricolage Grotesque", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; /* display voice — characterful grotesque, no serif */
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono:  "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --r-sm: 8px;
  --r:    14px;
  --r-lg: 26px;
  --shadow-sm: 0 1px 2px rgba(28,24,21,.03), 0 6px 18px rgba(28,24,21,.04);
  --shadow:    0 12px 36px rgba(28,24,21,.06), 0 28px 64px rgba(28,24,21,.06);
  --shadow-lg: 0 36px 90px rgba(28,24,21,.12);
  --ease: cubic-bezier(.22,.61,.36,1);
  --maxw: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(900px 500px at 10% -12%, rgba(187,160,109,.05), transparent 60%),
    radial-gradient(820px 560px at 102% 0%, rgba(174,79,51,.03), transparent 55%);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
h1,h2,h3,h4 { font-weight: 600; line-height: 1.08; margin: 0; letter-spacing: -.025em; }
h1,h2 { font-family: var(--display); letter-spacing: -.02em; }  /* characterful display voice */
h3,h4 { font-family: var(--sans); }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }

.eyebrow {
  font-family: var(--mono);
  font-size: 11.5px; font-weight: 500;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--accent-deep);
}
.eyebrow.gold { color: var(--gold-ink); }

/* tabular numerals everywhere mono is used */
.mono, .n, .price, .dprice, .mpct, .vn, .rating-num, .match-pill, .acc-mini,
.card-views, .result-count { font-family: var(--mono); font-variant-numeric: tabular-nums; }

/* ============================ Top bar ================================= */
.topbar {
  position: sticky; top: 0; z-index: 60;
  background: rgba(245,241,232,.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.topbar.scrolled { border-bottom-color: var(--line); background: rgba(245,241,232,.94); }
.bar-inner { display: flex; align-items: center; gap: 18px; height: 72px; }
.brand { display: flex; align-items: center; gap: 11px; cursor: pointer; }
.brand-mark { width: 38px; height: 38px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--display); font-size: 20px; font-weight: 600; letter-spacing: -.025em; }
.brand-sub { font-family: var(--sans); font-size: 11px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-top: 5px; }

.nav { display: flex; gap: 1px; margin-left: 4px; }
.nav a {
  padding: 7px 11px; border-radius: 999px;
  font-size: 14px; font-weight: 500; color: var(--ink-2); white-space: nowrap;
  transition: color .2s var(--ease), background .2s var(--ease);
}
.nav a:hover { color: var(--ink); background: rgba(174,79,51,.07); }

.topbar-search-btn { margin-left: auto; width: 44px; height: 44px; flex: none; display: grid; place-items: center; border: 1px solid var(--line-2); border-radius: 50%; background: var(--surface); color: var(--ink-2); transition: color .18s var(--ease), border-color .18s var(--ease), background .18s var(--ease); }
.topbar-search-btn:hover { color: var(--accent-deep); border-color: var(--accent); background: var(--accent-soft); }
.topbar-search-btn svg { width: 19px; height: 19px; }

/* ============================ Buttons ================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: none; font-weight: 600; font-size: 14.5px; border-radius: 999px; white-space: nowrap;
  transition: transform .18s var(--ease), background .2s var(--ease), box-shadow .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
/* keep button icons small — unsized inline SVGs otherwise render huge and wrap the label */
.btn svg { width: 18px; height: 18px; flex: 0 0 auto; }
.btn-primary { background: var(--ink); color: var(--on-ink); padding: 12px 22px; }
.btn-primary:hover { background: var(--accent); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn-shop {
  background: var(--accent); color: #fff; padding: 10px 16px; font-size: 13px;
  font-family: var(--mono); font-weight: 500; letter-spacing: .02em;
}
.btn-shop:hover { background: var(--accent-deep); transform: translateY(-1px); }

/* ============================ Hero ==================================== */
.hero { position: relative; padding: 80px 0 72px; }  /* no overflow clip — hero search dropdown must escape */
.hero-grid { display: grid; grid-template-columns: 1.04fr .96fr; gap: 60px; align-items: center; }
.hero-copy { min-width: 0; }
.hero-copy .eyebrow { margin-bottom: 16px; }
.hero h1 { font-size: clamp(40px, 5.2vw, 68px); letter-spacing: -.03em; }
.hero h1 em { font-style: italic; color: var(--accent); }
.hero .lede { font-size: 18px; color: var(--ink-2); max-width: 42ch; margin: 22px 0 0; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }

/* ---- Hero live search ---- */
.hero-search { position: relative; margin-top: 30px; max-width: 540px; z-index: 30; }
.hero-search .hs-icon { position: absolute; left: 20px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--muted); pointer-events: none; transition: color .2s var(--ease); }
.hero-search:focus-within .hs-icon { color: var(--accent); }
#hero-q {
  width: 100%; height: 62px; padding: 0 52px 0 54px;
  border: 1.5px solid var(--line-2); border-radius: 18px;
  background: var(--surface); color: var(--ink);
  font-family: var(--sans); font-size: 17px; font-weight: 500;
  box-shadow: var(--shadow-sm);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
#hero-q::placeholder { color: var(--muted); font-weight: 400; }
#hero-q:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft), var(--shadow); }
.hs-clear { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border: none; background: none; color: var(--muted); border-radius: 50%; display: grid; place-items: center; }
.hs-clear:hover { background: var(--paper); color: var(--ink); }
.hs-clear svg { width: 16px; height: 16px; }

.hero-results {
  position: absolute; top: calc(100% + 10px); left: 0; right: 0;
  background: var(--surface); border-radius: 18px; box-shadow: var(--shadow-lg);
  padding: 8px; max-height: min(62vh, 460px); overflow-y: auto; overscroll-behavior: contain;
  animation: heroResIn .18s var(--ease);
}
@keyframes heroResIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .hero-results { animation: none; } }
.hero-results .sr-empty { padding: 22px 14px; color: var(--ink-2); }
.hero-results .sr-hint { padding: 10px 12px 4px; font-size: 12.5px; color: var(--muted); }

.hero-quiz { border: none; background: none; color: var(--accent-deep); font-size: 13.5px; font-weight: 600; padding: 6px 4px; }
.hero-quiz:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---- Popular bottles carousel (below the hero search) ---- */
.hero-popular { margin-top: 40px; position: relative; }
.hpop-tip { position: absolute; transform: translate(-50%, -100%); z-index: 6; pointer-events: none; background: var(--ink); color: var(--on-ink); font-size: 12.5px; font-weight: 600; letter-spacing: -.01em; padding: 6px 11px; border-radius: 9px; white-space: nowrap; box-shadow: var(--shadow); }
.hpop-tip::after { content: ""; position: absolute; left: 50%; bottom: -5px; transform: translateX(-50%) rotate(45deg); width: 9px; height: 9px; background: var(--ink); border-radius: 2px; }
.hero-pop-head { display: flex; align-items: center; justify-content: center; gap: 14px; margin-bottom: 16px; }
.hero-pop-lab { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.hero-carousel {
  overflow: hidden; width: 100%;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.hpop-track { display: flex; width: max-content; }
.hpop-set { display: flex; flex: 0 0 auto; gap: 14px; padding-right: 14px; animation: hpop-scroll 60s linear infinite; }
.hero-carousel:hover .hpop-set { animation-play-state: paused; }
@keyframes hpop-scroll { from { transform: translateX(0); } to { transform: translateX(-100%); } }
.hpop-cell {
  flex: 0 0 auto; display: block; border: none; background: none; cursor: pointer;
  padding: 6px; border-radius: 14px; transition: transform .18s var(--ease);
}
.hpop-cell:hover { transform: translateY(-3px); }
.hpop-thumb { width: 76px; height: 92px; border-radius: 12px; background: var(--paper-2); border: 1px solid var(--line); display: grid; place-items: center; overflow: hidden; transition: border-color .18s var(--ease); }
.hpop-cell:hover .hpop-thumb { border-color: var(--accent); }
.hpop-thumb .sr-thumb { width: 100%; height: 100%; border: none; background: none; border-radius: 0; }
.hpop-thumb img { max-width: 82%; max-height: 82%; object-fit: contain; mix-blend-mode: multiply; }
:root[data-theme="dark"] .hpop-thumb img { mix-blend-mode: normal; }
@media (prefers-reduced-motion: reduce) {
  .hero-carousel { overflow-x: auto; scrollbar-width: none; }
  .hero-carousel::-webkit-scrollbar { display: none; }
  .hpop-set { animation: none; }
  .hpop-set[aria-hidden="true"] { display: none; }
}

/* ---- Search-led hero (the search IS the hero) ---- */
.hero-lead { display: flex; flex-direction: column; justify-content: center; padding: clamp(44px, 7vh, 92px) 0 40px; }
.hero-center { max-width: 760px; margin: 0 auto; text-align: center; display: flex; flex-direction: column; align-items: center; }
.hero-lead h1 { font-size: clamp(38px, 5.4vw, 66px); letter-spacing: -.03em; }
.hero-center .lede { max-width: 54ch; margin: 20px auto 0; text-align: center; }
.hero-center .hero-search { margin: 38px auto 0; max-width: 744px; width: 100%; }
.hero-center #hero-q { height: 80px; font-size: 21px; border-radius: 22px; padding: 0 62px 0 64px; }
.hero-center .hs-icon { left: 24px; width: 23px; height: 23px; }
.hero-center .hs-clear { right: 16px; width: 40px; height: 40px; }

/* radar-pulse highlight — loops until the user interacts (or prefers reduced motion) */
.hero-lead .hero-search::after {
  content: ""; position: absolute; inset: 0; border-radius: 22px; z-index: -1; pointer-events: none;
  animation: heroRadar 2.9s var(--ease) infinite;
}
@keyframes heroRadar {
  0%   { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 34%, transparent); }
  70%  { box-shadow: 0 0 0 18px color-mix(in srgb, var(--accent) 0%, transparent); }
  100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 0%, transparent); }
}
.hero-search.is-active::after, .hero-search:focus-within::after { animation: none; box-shadow: none; }
@media (prefers-reduced-motion: reduce) { .hero-lead .hero-search::after { animation: none; } }
.hero-center .hero-results { text-align: left; }
.hero-center .hero-chips { justify-content: center; margin-top: 20px; }

/* ---- Featured match + stats (pushed below the hero) ---- */
.featured-band { padding-top: 8px; }
.featured-layout { display: grid; grid-template-columns: 1.5fr .8fr; gap: 52px; align-items: center; }
.featured-layout .hero-feature { max-width: 640px; }
.featured-aside { display: flex; flex-direction: column; gap: 26px; }
.fa-lead { font-size: 17.5px; line-height: 1.55; color: var(--ink-2); margin: 0; max-width: 42ch; }
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 30px; margin: 0; padding: 0; }
.stat-grid .stat { border: none; padding: 0; }
.stat-grid .n { font-family: var(--display); font-size: clamp(26px, 2.6vw, 34px); font-weight: 600; color: var(--ink); margin: 0; letter-spacing: -.02em; }
.stat-grid .l { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }
.featured-aside .btn { align-self: flex-start; }
@media (max-width: 900px) {
  .featured-layout { grid-template-columns: 1fr; gap: 34px; }
}

.hero-stats { display: flex; flex-wrap: wrap; gap: 20px 44px; margin: 40px 0 0; padding: 0; }
.hero-stats .stat { padding: 0; border: none; }
.hero-stats .n { font-family: var(--display); font-size: clamp(24px, 2.4vw, 30px); font-weight: 600; color: var(--ink); margin: 0; letter-spacing: -.01em; }
.hero-stats .l { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }

/* hero featured-match card (JS-rendered) — image-forward: one big original
   + a compact "the copy" chip */
.hero-feature { position: relative; width: 100%; min-width: 0; }
.cmp { max-width: 100%; }
.cmp {
  position: relative; cursor: pointer; background: var(--surface);
  transition: opacity .4s var(--ease), box-shadow .3s var(--ease);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow); overflow: hidden;   /* elevation via shadow only (no ghost-card border) */
}
.cmp:hover { box-shadow: var(--shadow-lg); }
.hv-top { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px 0; }
.hv-lab { font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.hv-match { font-family: var(--mono); font-weight: 600; font-size: 12px; color: var(--accent-deep); background: var(--accent-soft); padding: 5px 11px; border-radius: 999px; }
.hv-stage { height: 304px; display: grid; place-items: center; margin: 16px 22px 0; border-radius: var(--r); background: linear-gradient(165deg, #ffffff 0%, var(--fs, var(--paper-2)) 132%); }
.hv-bottle { max-height: 266px; max-width: 64%; object-fit: contain; mix-blend-mode: multiply; filter: drop-shadow(0 22px 34px rgba(28,24,21,.18)); transition: transform .4s var(--ease); }
.cmp:hover .hv-bottle { transform: translateY(-4px); }
.hv-orig { padding: 18px 22px 0; }
.hv-orig-name { font-family: var(--display); font-size: 23px; font-weight: 600; letter-spacing: -.01em; line-height: 1.1; }
.hv-orig-sub { font-size: 13px; color: var(--muted); margin-top: 5px; }
.hv-orig-sub b { color: var(--ink-2); font-weight: 600; }
.hv-copy { display: flex; align-items: center; gap: 13px; margin: 16px 22px 18px; padding: 11px 13px; background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--r); }
.hv-copy-thumb { width: 66px; height: 66px; flex: none; border-radius: 11px; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; overflow: hidden; }
.hv-copy-thumb img { max-width: 100%; max-height: 100%; object-fit: contain; padding: 5px; mix-blend-mode: multiply; }
.hv-copy-thumb .bottle { height: 46px; }
.hv-copy-info { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.hv-copy-lab { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-deep); }
.hv-copy-name { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hv-copy-price { margin-left: auto; font-family: var(--mono); font-weight: 700; font-size: 18px; color: var(--ink); }
.cmp .cmp-dots { margin: 0 0 16px; }

/* ---- Featured match: side-by-side original vs. copy ---- */
.hv-pair { padding: 20px 26px 6px; }
.hv-photos { position: relative; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; }
.hv-photos::before { content: ""; position: absolute; top: 50%; left: 12%; right: 12%; height: 0; border-top: 2px dashed var(--line-2); z-index: 0; }
.hv-photo { position: relative; z-index: 1; aspect-ratio: 5/6; border-radius: var(--r); background: linear-gradient(160deg, #fff 0%, var(--fs, var(--paper-2)) 128%); display: grid; place-items: center; overflow: hidden; }
.hv-photo img { height: 84%; width: auto; max-width: 90%; object-fit: contain; mix-blend-mode: multiply; }
:root[data-theme="dark"] .hv-photo img { mix-blend-mode: normal; }
.hv-vs { position: relative; z-index: 2; display: grid; place-items: center; width: 62px; height: 62px; border-radius: 50%; background: var(--surface); border: 1px solid var(--line-2); box-shadow: var(--shadow-sm); }
.hv-vs b { font-family: var(--display); font-size: 16px; font-weight: 600; letter-spacing: -.02em; color: var(--accent-deep); }
.hv-titles { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 18px; }
.hv-side { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; }
.hv-role { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.hv-role--copy { color: var(--accent-deep); }
.hv-name { font-family: var(--display); font-size: 18px; font-weight: 600; letter-spacing: -.02em; color: var(--ink); margin-top: 5px; line-height: 1.15; }
.hv-house { font-size: 13px; color: var(--ink-2); }
.hv-price { font-family: var(--mono); font-weight: 700; font-size: 16px; color: var(--ink); margin-top: 6px; }
@media (max-width: 480px) {
  .hv-pair { padding: 16px 16px 4px; }
  .hv-vs { width: 50px; height: 50px; } .hv-vs b { font-size: 13px; }
  .hv-name { font-size: 16px; } .hv-titles { gap: 14px; }
}
:root[data-theme="dark"] .hv-stage { background: linear-gradient(165deg, #ffffff 0%, var(--fs, #ECE7DD) 132%); }
:root[data-theme="dark"] .hv-copy-thumb { background: #f2f0ea; }
@media (prefers-reduced-motion: reduce) { .cmp:hover .hv-bottle { transform: none; } }

/* ============================ Sections ================================ */
section.block { padding: 88px 0; }
.section-head { display: grid; grid-template-columns: auto 1fr auto; gap: 22px; align-items: end; margin-bottom: 40px; }
.sec-no { font-family: var(--mono); font-size: 13px; font-weight: 500; color: var(--accent); padding-bottom: 6px; letter-spacing: .06em; }
.sec-titles h2 { font-size: clamp(26px, 3.4vw, 38px); }
.sec-titles p { color: var(--ink-2); margin: 9px 0 0; max-width: 52ch; font-size: 15px; }
.section-head .link {
  font-family: var(--mono); font-weight: 500; font-size: 12.5px; letter-spacing: .04em;
  color: var(--accent-deep); display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; padding-bottom: 6px;
}
.section-head .link svg { width: 15px; height: 15px; transition: transform .2s var(--ease); }
.section-head .link:hover svg { transform: translateX(3px); }

/* ---- best copies feature band ---- */
.feature-band {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line);
  border-radius: var(--r-lg); overflow: hidden;
}
.feature-cell { background: var(--surface); padding: 24px; display: flex; flex-direction: column; gap: 16px; cursor: pointer; transition: background .25s var(--ease); }
.feature-cell:hover { background: var(--paper-2); }
.fc-top { display: flex; align-items: center; gap: 16px; }
.fc-thumb { width: 64px; height: 80px; flex: none; border-radius: var(--r-sm); background: var(--paper-2); border: 1px solid var(--line); display: grid; place-items: center; overflow: hidden; }
.fc-thumb img { width: 100%; height: 100%; object-fit: contain; padding: 5px; }
.fc-orig { font-family: var(--mono); font-size: 11px; color: var(--muted); letter-spacing: .04em; }
.fc-orig b { color: var(--ink); font-weight: 600; font-family: var(--sans); }
.fc-dupe { font-family: var(--display); font-size: 22px; font-weight: 600; margin-top: 4px; }
.fc-brand { font-size: 13px; color: var(--ink-2); }
.fc-meta { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.match-pill { background: var(--accent-soft); color: var(--accent-deep); font-weight: 600; font-size: 12px; padding: 4px 10px; border-radius: 999px; }
.fc-price { font-family: var(--mono); font-weight: 600; font-size: 14px; }
.fc-price s { color: var(--muted); font-weight: 400; margin-right: 6px; }

/* ============================ Index layout ============================ */
.index-layout { display: grid; grid-template-columns: 232px 1fr; gap: 36px; align-items: start; }

.filters { position: sticky; top: 92px; display: flex; flex-direction: column; max-height: calc(100vh - 110px); overflow-y: auto; padding-right: 4px; }
.filters::-webkit-scrollbar { width: 6px; }
.filters::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 999px; }
.filters-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 2px 10px; }
.filters-title { font-family: var(--mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink); }

.fgroup { border-top: 1px solid var(--line); }
.fgroup summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; padding: 12px 2px; user-select: none; -webkit-tap-highlight-color: transparent; }
.fgroup summary::-webkit-details-marker { display: none; }
.fg-label { margin-right: auto; font-size: 14px; font-weight: 500; color: var(--ink); }
.fgroup summary:hover .fg-label { color: var(--accent-deep); }
.fgroup summary::after { content: ""; width: 7px; height: 7px; flex: none; border-right: 1.6px solid var(--muted); border-bottom: 1.6px solid var(--muted); transform: rotate(45deg); transition: transform .22s var(--ease); }
.fgroup[open] summary::after { transform: rotate(-135deg); }
.fcount { font-family: var(--mono); font-size: 11px; font-weight: 600; color: #fff; background: var(--accent); min-width: 17px; height: 17px; padding: 0 5px; border-radius: 999px; display: none; align-items: center; justify-content: center; }
.fcount.on { display: inline-flex; }

.pillset { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 2px 14px; }
.perf-sub { display: flex; flex-direction: column; gap: 4px; padding-bottom: 12px; }
.perf-lab { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }
.perf-sub .pillset { padding: 4px 2px 0; }
.filters .pill { padding: 5px 11px; font-size: 12.5px; }
.pill {
  border: 1px solid var(--line-2); background: var(--surface); color: var(--ink-2);
  border-radius: 999px; padding: 6px 13px; font-size: 13px; font-weight: 500;
  display: inline-flex; align-items: center; gap: 7px; transition: all .16s var(--ease);
}
.pill .dot { width: 9px; height: 9px; border-radius: 50%; }
.pill:hover { border-color: var(--accent); color: var(--ink); }
.pill.active { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.pill.active .dot { box-shadow: 0 0 0 2px rgba(255,255,255,.35); }
.filter-reset {
  background: none; border: none; padding: 3px 0;
  font-family: var(--mono); font-size: 11.5px; color: var(--accent-deep); letter-spacing: .03em;
  border-bottom: 1px solid transparent;
}
.filter-reset[hidden] { display: none; }
.filter-reset:hover { border-bottom-color: var(--accent); }

.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 18px; margin-bottom: 22px; border-bottom: 1px solid var(--line); }
.result-count { font-size: 13px; color: var(--ink-2); letter-spacing: .02em; }
.toolbar-right { display: flex; align-items: center; gap: 14px; }
.sort-wrap { position: relative; display: inline-flex; align-items: center; gap: 8px; }
.sort-label { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.sort-wrap select {
  appearance: none; border: 1px solid var(--line-2); background: var(--surface); border-radius: 999px;
  padding: 8px 34px 8px 14px; font-family: var(--sans); font-size: 13.5px; font-weight: 500; color: var(--ink); cursor: pointer;
}
.sort-wrap select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.sort-wrap > svg { position: absolute; right: 13px; width: 14px; height: 14px; color: var(--muted); pointer-events: none; }
.view-toggle { display: inline-flex; border: 1px solid var(--line-2); border-radius: 999px; overflow: hidden; background: var(--surface); }
.view-btn { border: none; background: none; padding: 8px 11px; color: var(--muted); display: grid; place-items: center; transition: background .18s var(--ease), color .18s var(--ease); }
.view-btn svg { width: 17px; height: 17px; }
.view-btn.active { background: var(--ink); color: var(--on-ink); }
.view-btn:not(.active):hover { color: var(--ink); }

/* ============================ Card grid =============================== */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(252px, 1fr)); gap: 30px; }
.card {
  position: relative;
  background: var(--surface); border: 1px solid transparent; border-radius: 18px;
  overflow: hidden; cursor: pointer; display: flex; flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card-visual { position: relative; height: 240px; display: flex; align-items: center; justify-content: center; overflow: hidden; background: var(--surface); }
.card-visual .bottle { height: 132px; transition: transform .4s var(--ease); }
.cv-fallback { position: absolute; inset: 0; display: grid; place-items: center; }
.card-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 26px; transition: transform .5s var(--ease); }
.cv-empty { font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); opacity: .5; text-align: center; padding: 0 20px; line-height: 1.5; }
.card:hover .card-photo { transform: translateY(-5px) scale(1.05); }
.card:hover .card-visual .bottle { transform: translateY(-4px) scale(1.04); }

/* Product photos are mostly white-background studio shots — multiply blends
   that white into the (light) container so the bottle appears to float. */
.card-photo, .dh-photo, .dh-thumb img, .cmp-photo img, .cd-thumb img,
.dupe-thumb, .lthumb img, .fc-thumb img, .ct-photo, .rcard-photo { mix-blend-mode: multiply; }
.card-fam {
  position: absolute; top: 16px; left: 16px; font-family: var(--mono);
  font-size: 11px; letter-spacing: .08em; color: var(--muted);
  display: inline-flex; align-items: center; gap: 6px;
}
.card-fam .dot { width: 8px; height: 8px; border-radius: 50%; }
.card-views {
  position: absolute; top: 16px; right: 16px; font-size: 11px; color: var(--muted);
  display: inline-flex; align-items: center; gap: 5px;
}
.card-views svg { width: 12px; height: 12px; opacity: .5; }
.card-disc {
  position: absolute; left: 16px; bottom: 14px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--on-ink); background: var(--ink); padding: 4px 9px; border-radius: 999px;
}

/* Heroes section */
.heroes-block { background: var(--paper-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.heroes-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.disc-note { display: inline-block; margin-top: 14px; font-family: var(--mono); font-size: 12px; color: var(--accent-deep); background: var(--accent-soft); padding: 7px 13px; border-radius: 999px; }

.card-body { padding: 4px 20px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-house { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.card-name { font-family: var(--display); font-size: 20px; font-weight: 600; line-height: 1.12; }
.rating-row { display: flex; align-items: center; gap: 8px; }
.stars { display: inline-flex; gap: 1.5px; }
.stars svg { width: 14px; height: 14px; }
.rating-num { font-size: 12.5px; font-weight: 600; }
.rating-count { font-size: 12px; color: var(--muted); }

.card-accords { display: flex; flex-wrap: wrap; gap: 6px; }
.acc-mini { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; letter-spacing: .02em; text-transform: capitalize; color: var(--ink-2); }
.acc-mini i { width: 8px; height: 8px; border-radius: 2px; }

.card-dupe { margin-top: auto; background: none; border: none; border-top: 1px solid var(--line); border-radius: 0; padding: 14px 0 0; display: flex; align-items: center; gap: 11px; }
.cd-thumb { width: 56px; height: 72px; flex: none; border-radius: 7px; overflow: hidden; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; }
.cd-thumb img { width: 100%; height: 100%; object-fit: contain; padding: 3px; }
.cd-thumb.noimg { background: var(--paper); }
.cd-text { min-width: 0; flex: 1; }
.card-dupe .label { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-deep); }
.card-dupe .dname { font-size: 13px; font-weight: 600; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.card-dupe .dprice { font-family: var(--mono); font-size: 11.5px; color: var(--ink-2); }
.card-dupe .ring { margin-left: auto; flex: none; }
.match-ring { position: relative; width: 44px; height: 44px; }
.match-ring .val { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--mono); font-size: 11px; font-weight: 600; color: var(--accent-deep); }
.match-ring[data-tier="high"] .val { color: #2F8F5B; }
.match-ring[data-tier="mid"]  .val { color: #B07F1E; }
:root[data-theme="dark"] .match-ring[data-tier="high"] .val { color: #5FC98C; }
:root[data-theme="dark"] .match-ring[data-tier="mid"]  .val { color: #D6B660; }

/* ---- list view ---- */
.list { display: flex; flex-direction: column; }
.lrow {
  display: grid; grid-template-columns: 56px 1fr 200px 92px 116px; gap: 18px; align-items: center;
  padding: 14px 12px; border-bottom: 1px solid var(--line); cursor: pointer;
  transition: background .18s var(--ease);
}
.lrow:hover { background: var(--surface); }
.lrow:first-child { border-top: 1px solid var(--line); }
.lthumb { width: 48px; height: 60px; border-radius: 6px; overflow: hidden; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; }
.lthumb img { width: 100%; height: 100%; object-fit: contain; padding: 3px; }
.lmain .lhouse { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.lmain .lname { font-family: var(--display); font-size: 19px; font-weight: 600; line-height: 1.1; margin: 1px 0 5px; }
.lmain .laccords { display: flex; flex-wrap: wrap; gap: 8px; }
.lcopy .lc-lab { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.lcopy .lc-name { font-size: 13px; font-weight: 600; line-height: 1.2; }
.lcopy .lc-brand { font-size: 12px; color: var(--ink-2); }
.lmatch { text-align: center; }
.lmatch .mv { font-family: var(--mono); font-size: 15px; font-weight: 600; color: var(--accent-deep); }
.lmatch .mbar { height: 5px; background: var(--paper); border-radius: 999px; overflow: hidden; margin-top: 6px; }
.lmatch .mbar i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), var(--accent)); border-radius: 999px; }
.lprice { text-align: right; }
.lprice .lp-now { font-family: var(--mono); font-size: 17px; font-weight: 600; }
.lprice .lp-was { font-family: var(--mono); font-size: 11px; color: var(--muted); }
.lprice .lp-go { font-family: var(--mono); font-size: 11px; color: var(--accent-deep); display: inline-flex; align-items: center; gap: 4px; margin-top: 4px; }
.lprice .lp-go svg { width: 12px; height: 12px; }

.empty { grid-column: 1/-1; text-align: center; padding: 70px 20px; color: var(--muted); }
.empty svg { width: 44px; height: 44px; margin-bottom: 14px; opacity: .5; }

/* ---- rail ---- */
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(244px, 1fr); gap: 22px; overflow-x: auto; padding-bottom: 4px; scroll-snap-type: x mandatory; scrollbar-width: none; -ms-overflow-style: none; }
.rail .card { scroll-snap-align: start; }
.rail::-webkit-scrollbar { display: none; }

/* ===================== Quick-browse strip ============================= */
.quicknav-wrap { padding: 0 0 6px; }
.quicknav {
  display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--shadow-sm); overflow: hidden;
}
.qn-item {
  display: flex; flex-direction: column; align-items: center; gap: 9px;
  padding: 20px 12px; background: none; border: none; border-right: 1px solid var(--line);
  cursor: pointer; font: inherit; color: var(--ink-2);
  transition: background .2s var(--ease), color .2s var(--ease);
}
.qn-item:last-child { border-right: none; }
.qn-item svg { width: 26px; height: 26px; color: var(--ink); transition: color .2s var(--ease), transform .2s var(--ease); }
.qn-item span { font-size: 12.5px; letter-spacing: .01em; }
.qn-item:hover { background: var(--paper-2); color: var(--ink); }
.qn-item:hover svg { color: var(--accent); transform: translateY(-2px); }
.qn-item:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
@media (prefers-reduced-motion: reduce) { .qn-item:hover svg { transform: none; } }
@media (max-width: 760px) {
  .quicknav { grid-auto-columns: minmax(92px, 1fr); overflow-x: auto; border-radius: var(--r); scrollbar-width: none; }
  .quicknav::-webkit-scrollbar { display: none; }
  .qn-item { padding: 15px 10px; }
  .qn-item span { font-size: 11.5px; }
}

/* ===================== Editor's edit (Heroes) ========================= */
.edit-band {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 44px; align-items: center;
  background: var(--paper-2); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 44px 48px; margin: 8px 0;
}
.edit-copy h2 { font-size: clamp(28px, 3.4vw, 40px); letter-spacing: -.02em; margin: 6px 0 14px; }
.edit-copy h2 em { font-style: italic; color: var(--accent); }
.edit-copy p { color: var(--ink-2); font-size: 15.5px; margin: 0 0 24px; max-width: 46ch; }
.edit-visual { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.eh-card {
  display: flex; flex-direction: column; gap: 5px; cursor: pointer; font: inherit; color: inherit;
  text-align: center; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); padding-bottom: 13px; overflow: hidden;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.eh-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.eh-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.eh-well { position: relative; height: 124px; display: grid; place-items: center; margin-bottom: 9px; background: linear-gradient(158deg, #ffffff 0%, var(--fs) 120%); }
.eh-well .cv-fallback { position: absolute; inset: 0; display: grid; place-items: center; }
.eh-well .bottle { height: 80px; }
.eh-photo { position: relative; max-height: 102px; max-width: 70%; object-fit: contain; mix-blend-mode: multiply; }
.eh-name { font-family: var(--display); font-size: 14px; font-weight: 600; line-height: 1.2; padding: 0 8px; }
.eh-house { font-family: var(--mono); font-size: 11px; letter-spacing: .03em; color: var(--muted); }
:root[data-theme="dark"] .eh-well { background: linear-gradient(158deg, #ffffff 0%, var(--fs) 120%); }
@media (prefers-reduced-motion: reduce) { .eh-card:hover { transform: none; } }
@media (max-width: 820px) { .edit-band { grid-template-columns: 1fr; gap: 28px; padding: 32px; } }

/* ===================== Cross-checked sources ========================== */
.sources { text-align: center; padding: 16px 0 6px; }
.sources-lab { font-family: var(--sans); font-size: 13px; letter-spacing: 0; color: var(--muted); margin: 0 0 18px; }
.sources-list { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px 14px; padding: 0; margin: 0 0 16px; }
.sources-list li { display: inline-flex; align-items: center; gap: 9px; font-family: var(--sans); font-size: 14px; font-weight: 500; color: var(--ink-2); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 7px 15px 7px 9px; }
.sources-list li img { width: 22px; height: 22px; border-radius: 6px; object-fit: contain; flex: none; }
.sources-foot { font-size: 13px; color: var(--ink-2); font-style: italic; margin: 0; }

/* ===================== Scent-family showcase ========================== */
.fam-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.famcard {
  display: flex; flex-direction: column; text-align: left; cursor: pointer; padding: 0;
  font: inherit; color: inherit; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r); overflow: hidden;
  transition: transform .26s var(--ease), box-shadow .26s var(--ease), border-color .26s var(--ease);
}
.famcard:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); border-color: var(--line-2); }
.famcard:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.famcard-well {
  position: relative; height: 134px; display: grid; place-items: center;
  background: linear-gradient(158deg, #ffffff 0%, var(--fs) 118%);
}
.famcard-well .cv-fallback { position: absolute; inset: 0; display: grid; place-items: center; }
.famcard-well .bottle { height: 78px; width: auto; opacity: .9; }
.famcard-photo {
  position: relative; max-height: 108px; max-width: 72%; width: auto; object-fit: contain;
  mix-blend-mode: multiply; transition: transform .3s var(--ease);
}
.famcard:hover .famcard-photo { transform: scale(1.045); }
.famcard-body { padding: 14px 16px 15px; display: flex; flex-direction: column; gap: 2px; }
.famcard-name { font-family: var(--display); font-size: 18px; font-weight: 600; letter-spacing: -.01em; }
.famcard-desc { font-size: 12.5px; color: var(--muted); }
.famcard-foot { margin-top: 9px; display: flex; align-items: center; gap: 5px; font-size: 12px; color: var(--ink-2); }
.famcard-foot b { font-family: var(--mono); font-weight: 600; color: var(--ink); }
.famcard-go { margin-left: auto; display: inline-flex; color: var(--accent); transition: transform .2s var(--ease); }
.famcard-go svg { width: 16px; height: 16px; }
.famcard:hover .famcard-go { transform: translateX(3px); }
/* keep the photo well light in dark mode — mix-blend multiply needs it */
:root[data-theme="dark"] .famcard-well { background: linear-gradient(158deg, #ffffff 0%, var(--fs) 118%); }
@media (prefers-reduced-motion: reduce) {
  .famcard, .famcard-photo, .famcard-go { transition: none; }
  .famcard:hover { transform: none; }
}
@media (max-width: 560px) {
  .fam-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .famcard-well { height: 116px; }
}
@media (max-width: 1180px) and (min-width: 761px) {
  .fam-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 760px) and (min-width: 561px) {
  .fam-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
}

/* ============================ Method ================================== */
.how { background: var(--paper-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.how-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.how-step { background: var(--paper-2); padding: 30px 28px; display: flex; flex-direction: column; gap: 10px; }
.how-step .num { font-family: var(--mono); font-size: 13px; color: var(--accent); letter-spacing: .06em; }
.how-step h3 { font-size: 21px; margin-top: 4px; }
.how-step p { color: var(--ink-2); font-size: 14.5px; margin: 0; }

/* ============================ Detail ================================== */
.detail { display: none; padding: 28px 0 70px; }
.detail.active { display: block; animation: fade .4s var(--ease); }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .detail.active { animation: none; } }

.back-link { display: inline-flex; align-items: center; gap: 7px; font-family: var(--mono); font-size: 12.5px; letter-spacing: .04em; color: var(--ink-2); margin-bottom: 22px; }
.back-link:hover { color: var(--accent-deep); }
.back-link svg { width: 16px; height: 16px; }

/* ---- Detail hero — floating "specimen" card + explore rail ------------- */
.detail-hero { display: grid; grid-template-columns: 1.04fr .96fr; gap: 56px; align-items: center; padding: 8px 0 18px; }

.dh-stage { display: flex; flex-direction: column; gap: 18px; }
.dh-card {
  position: relative; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 16px 16px 20px; box-shadow: var(--shadow); overflow: hidden;
}
.dh-card-top { position: relative; z-index: 2; display: flex; justify-content: space-between; align-items: center; padding: 4px 6px 0; }
.dh-ref { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; color: var(--muted); }
.dh-chip { display: inline-flex; align-items: center; gap: 7px; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 5px 11px; }

/* the specimen plate — a bright, airy stage the bottle floats on (stays light in dark theme too) */
.dh-visual {
  position: relative; z-index: 1; aspect-ratio: 1 / 1; display: grid; place-items: center;
  margin: 10px 0 4px; overflow: hidden; border-radius: var(--r);
  background: linear-gradient(168deg, #ffffff 0%, var(--fs, var(--paper-2)) 132%);
}
/* faint archive dot-grid + family-tinted wash, faded toward the edges */
.dh-visual::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: .6;
  background:
    radial-gradient(120% 82% at 50% -6%, color-mix(in srgb, var(--fs, var(--paper-2)) 70%, #fff) 0%, transparent 60%),
    radial-gradient(circle at 1px 1px, rgba(28,24,21,.055) 1px, transparent 0);
  background-size: auto, 18px 18px;
  -webkit-mask-image: radial-gradient(84% 80% at 50% 46%, #000 50%, transparent 100%);
  mask-image: radial-gradient(84% 80% at 50% 46%, #000 50%, transparent 100%);
}
.dh-visual .cv-fallback { position: absolute; inset: 0; display: grid; place-items: center; }
/* once a real photo paints, drop the SVG bottle so it can't bleed through */
.dh-visual.has-photo .cv-fallback, .has-photo > .cv-fallback { display: none; }
.dh-visual .bottle { height: 188px; }
.dh-photo {
  position: relative; z-index: 2; max-width: 74%; max-height: 88%; object-fit: contain;
  transition: opacity .3s var(--ease), transform .5s var(--ease);
}
.dh-visual.swapping .dh-photo { transform: scale(.97); }
/* soft platform shadow so the specimen appears to float */
.dh-glow { position: absolute; z-index: 0; left: 50%; bottom: 6%; transform: translateX(-50%); width: 52%; height: 24px; border-radius: 50%; background: radial-gradient(ellipse at center, rgba(28,24,21,.15), transparent 70%); filter: blur(3px); }
.dh-cap { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 1px; text-align: center; margin-top: 2px; }
.dh-cap b { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-deep); }
.dh-cap span { font-size: 13px; color: var(--muted); }

/* explore rail — the scent and its copies, scannable at a glance */
.dh-rail { display: flex; gap: 10px; flex-wrap: wrap; }
.dh-thumb { position: relative; flex: 0 0 auto; width: 70px; height: 70px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); padding: 8px; display: grid; place-items: center; transition: border-color .18s var(--ease), transform .18s var(--ease), box-shadow .18s var(--ease); }
.dh-thumb img { max-width: 100%; max-height: 100%; object-fit: contain; }
.dh-thumb .dh-thumb-svg { display: grid; place-items: center; }
.dh-thumb .dh-thumb-svg .bottle { height: 42px; }
.dh-thumb:hover { transform: translateY(-2px); border-color: var(--line-2); }
.dh-thumb.on { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.dh-thumb:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.dh-thumb-tag { position: absolute; top: -6px; left: -6px; font-family: var(--mono); font-size: 11px; letter-spacing: .06em; background: var(--accent); color: #fff; border-radius: 5px; padding: 2px 5px; line-height: 1; }

/* price face-off — the reason to scroll, made instantly scannable */
.dh-price { display: flex; align-items: flex-end; gap: 16px; margin-top: 24px; flex-wrap: wrap; }
.pf-copy { display: flex; flex-direction: column; gap: 3px; }
.pf-lab { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.pf-now { font-family: var(--display); font-size: 42px; font-weight: 600; color: var(--accent-deep); line-height: .9; letter-spacing: -.025em; }
.pf-face { display: flex; flex-direction: column; gap: 5px; padding-bottom: 4px; }
.pf-was { font-size: 13.5px; color: var(--ink-2); }
.pf-was s { color: var(--muted); }
.pf-save { align-self: flex-start; font-family: var(--mono); font-size: 11px; letter-spacing: .03em; color: #5c6b48; background: color-mix(in srgb, var(--sage) 16%, #fff); border-radius: 999px; padding: 3px 9px; }

/* spec strip — four core facts, one horizontal scan */
.dh-specs { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 22px; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--surface); }
.dh-spec { padding: 12px 14px; border-left: 1px solid var(--line); display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.dh-spec:first-child { border-left: none; }
.dh-spec span { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.dh-spec b { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.db-crumbs { font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--accent-deep); }
.dh-info h1 { font-size: clamp(36px, 5vw, 60px); letter-spacing: -.025em; margin-top: 14px; }
.db-house { font-size: 16px; color: var(--ink-2); margin-top: 16px; display: flex; flex-direction: column; align-items: flex-start; gap: 9px; }
.db-house-meta { color: var(--muted); font-size: 14px; letter-spacing: .02em; }
/* house logos — consistent monochrome treatment (multiply drops white grounds) */
.house-mark { display: inline-flex; align-items: center; }
.house-logo { display: block; width: auto; object-fit: contain; object-position: left center; filter: grayscale(1); mix-blend-mode: multiply; opacity: .9; }
.db-house .house-logo { height: 58px; max-width: 320px; }
@media (max-width: 640px) { .db-house .house-logo { height: 46px; max-width: 240px; } }
:root[data-theme="dark"] .house-logo { filter: grayscale(1) invert(1); mix-blend-mode: screen; opacity: .92; }
/* light/white-ink logos (flagged by treatHouseLogos): flip the invert per theme
   so they render as a dark mark on light and a light mark on dark */
.house-logo.logo-invert { filter: grayscale(1) invert(1); }
:root[data-theme="dark"] .house-logo.logo-invert { filter: grayscale(1); }

/* Houses marquee — seamless auto-scrolling logo band above the footer */
.houses-band { border-top: 1px solid var(--line); padding: 54px 0 60px; background: var(--paper); }
.hb-head { margin-bottom: 26px; }
.hb-eyebrow { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
.hb-intro h2 { font-size: clamp(22px, 3vw, 30px); margin: 0; }
.hb-intro h2 em { font-style: italic; color: var(--accent); }
/* edge fade so logos dissolve in/out rather than clip at the rails */
.hb-track { display: flex; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
/* Calm, user-scrollable logo strip — no auto-marquee */
.hb-track { scrollbar-width: none; }
.hb-track::-webkit-scrollbar { display: none; }
.hb-set { display: flex; flex: 0 0 auto; will-change: transform; animation: hb-scroll 90s linear infinite; }
.hb-track:hover .hb-set { animation-play-state: paused; }
@keyframes hb-scroll { from { transform: translateX(0); } to { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) {
  .hb-track { overflow-x: auto; }
  .hb-set { animation: none; }
  .hb-set[aria-hidden="true"] { display: none; }
}
.hb-cell { flex: 0 0 auto; width: 176px; height: 92px; margin-right: 14px; display: grid; place-items: center; padding: 0 24px; border: 1px solid var(--line); border-radius: var(--radius, 14px); background: var(--paper-2); cursor: pointer; overflow: hidden; transition: border-color .18s, background .18s, transform .18s; }
.hb-cell:hover { border-color: var(--accent); background: var(--surface); transform: translateY(-2px); }
.hb-cell:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.hb-cell .house-logo { height: 40px; max-width: 124px; opacity: 1; object-position: center; }
/* square logos: narrower, format-matching cell lets the mark sit bigger */
.hb-cell.hb-cell--sq { width: 98px; padding: 0 12px; }
.hb-cell.hb-cell--sq .house-logo { height: 54px; max-width: 66px; }

/* House overlay — fragrances we carry from a tapped house */
.house-panel { max-width: 1040px; }
.hov-head-l { display: flex; align-items: center; gap: 18px; min-width: 0; }
.house-panel .ov-head .house-logo { height: 30px; max-width: 180px; }
.hov-name { font-size: 22px; font-weight: 600; }
.hov-count { font-family: var(--mono); font-size: 12px; letter-spacing: .04em; color: var(--muted); white-space: nowrap; }
.hov-body { overflow-y: auto; padding: 24px 26px 30px; }
.hov-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(216px, 1fr)); gap: 18px; }
@media (max-width: 560px) {
  .hov-head-l { gap: 12px; }
  .house-panel .ov-head .house-logo { height: 24px; max-width: 130px; }
  .hov-count { display: none; }
  .hov-body { padding: 16px; }
  .hov-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .hb-track { overflow-x: auto; -webkit-mask-image: none; mask-image: none; scrollbar-width: none; }
  .hb-track::-webkit-scrollbar { display: none; }
  .hb-set { animation: none; }
  .hb-set[aria-hidden="true"] { display: none; }
}
@media (max-width: 640px) { .hb-cell { width: 146px; height: 80px; margin-right: 12px; padding: 0 18px; } .hb-cell .house-logo { height: 32px; max-width: 104px; } .hb-cell.hb-cell--sq { width: 84px; padding: 0 12px; } .hb-cell.hb-cell--sq .house-logo { height: 46px; max-width: 56px; } }
.db-rating { display: flex; align-items: center; gap: 10px; margin-top: 20px; flex-wrap: wrap; font-family: var(--mono); font-size: 13px; color: var(--ink-2); }
.db-num { color: var(--ink); font-weight: 600; }
.db-sep { color: var(--line-2); }

.detail-body { display: grid; grid-template-columns: 1fr 326px; gap: 44px; margin-top: 38px; align-items: start; }
.lead-desc { font-size: 18px; line-height: 1.62; color: var(--ink-2); margin: 0 0 6px; max-width: 60ch; }
.lead-desc::first-letter { font-family: var(--display); font-size: 3.1em; font-weight: 600; float: left; line-height: .82; padding: 6px 10px 0 0; color: var(--accent); }
.viz-block { margin-top: 38px; }
.viz-block h3 { font-family: var(--mono); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 500; margin-bottom: 18px; }

.accord-list { display: flex; flex-direction: column; gap: 12px; }
.accord-row { display: grid; grid-template-columns: 104px 1fr; align-items: center; gap: 14px; }
.accord-name { font-size: 13.5px; font-weight: 500; text-transform: capitalize; text-align: right; }
.accord-track { height: 13px; background: var(--paper); border-radius: 999px; overflow: hidden; }
.accord-fill { height: 100%; border-radius: 999px; transition: width .9s var(--ease); }

.pyramid { display: flex; flex-direction: column; gap: 18px; }
.pyr-row { display: grid; grid-template-columns: 104px 1fr; gap: 14px; align-items: start; }
.pyr-label { font-family: var(--mono); font-size: 11px; letter-spacing: .04em; text-transform: uppercase; color: var(--accent-deep); padding-top: 8px; text-align: right; }
.pyr-notes { display: flex; flex-wrap: wrap; gap: 9px; }
.note-chip { display: inline-flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 6px 13px 6px 7px; font-size: 13.5px; font-weight: 500; transition: transform .18s var(--ease), border-color .18s var(--ease); }
.note-chip:hover { transform: translateY(-2px); border-color: var(--line-2); }
.note-ico { width: 26px; height: 26px; flex: none; display: grid; place-items: center; border-radius: 50%; color: var(--c); background: color-mix(in srgb, var(--c) 16%, #fff); }
.note-ico svg { width: 16px; height: 16px; }

.detail-side { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 92px; }
.side-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px 22px; }
.side-card h4 { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 500; margin-bottom: 16px; }
.facts { list-style: none; margin: 0; padding: 0; }
.facts li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 14px; }
.facts li:first-child { border-top: none; padding-top: 0; }
.facts li span { color: var(--muted); }
.facts li b { font-weight: 600; display: inline-flex; align-items: center; gap: 7px; }
.facts li b.accent, .facts li b.mono { font-family: var(--mono); }
.facts li b.accent { color: var(--accent-deep); font-size: 15px; }
.fam-dot { width: 9px; height: 9px; border-radius: 50%; }

.meter-row { margin-bottom: 14px; }
.meter-row:last-child { margin-bottom: 0; }
.meter-head { display: flex; justify-content: space-between; align-items: center; font-size: 13px; margin-bottom: 6px; }
.meter-head span { color: var(--ink-2); }
.meter-head b { color: var(--accent-deep); font-weight: 600; }
.meter-track { height: 8px; background: var(--paper); border-radius: 999px; overflow: hidden; }
.meter-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--gold), var(--accent)); transition: width .9s var(--ease); }

/* Metric explainer — info dot + tooltip on each performance label */
.meter-label { display: inline-flex; align-items: center; gap: 5px; }
.metric-info { position: relative; display: inline-flex; }
.info-dot { display: inline-grid; place-items: center; width: 17px; height: 17px; padding: 0; border: none; background: none; color: var(--muted); cursor: pointer; border-radius: 999px; transition: color .18s var(--ease); }
.info-dot svg { width: 14px; height: 14px; }
.info-dot:hover, .info-dot[aria-expanded="true"] { color: var(--accent-deep); }
.info-dot:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.info-pop {
  position: absolute; top: calc(100% + 10px); left: -8px; z-index: 40;
  width: 250px; max-width: calc(100vw - 40px); display: flex; gap: 12px; align-items: center;
  padding: 13px 15px; border-radius: var(--r);
  background: var(--surface); border: 1px solid var(--line-2); box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity .16s var(--ease), transform .16s var(--ease), visibility .16s;
  pointer-events: none;
}
.info-pop::before { content: ""; position: absolute; top: -6px; left: 13px; width: 11px; height: 11px; background: var(--surface); border-left: 1px solid var(--line-2); border-top: 1px solid var(--line-2); transform: rotate(45deg); }
.metric-info.open .info-pop { opacity: 1; visibility: visible; transform: none; pointer-events: auto; }
@media (hover: hover) {
  .metric-info:hover .info-pop, .metric-info:focus-within .info-pop { opacity: 1; visibility: visible; transform: none; pointer-events: auto; }
}
.ip-art { flex: none; width: 46px; height: 46px; display: grid; place-items: center; color: var(--accent); border-radius: 12px; background: var(--accent-soft); }
.ip-art svg { width: 30px; height: 30px; }
.ip-text { font-size: 12.5px; line-height: 1.42; color: var(--ink-2); }
.ip-text b { display: block; color: var(--ink); font-family: var(--sans); font-weight: 600; font-size: 13px; margin-bottom: 3px; }

.season-list { display: flex; flex-direction: column; gap: 11px; }
.season-row { display: grid; grid-template-columns: 22px 54px 1fr; align-items: center; gap: 10px; }
.season-ico { width: 20px; height: 20px; }
.season-ico svg { width: 20px; height: 20px; }
.season-name { font-size: 13px; color: var(--ink-2); }
.season-track { height: 8px; background: var(--paper); border-radius: 999px; overflow: hidden; }
.season-fill { height: 100%; border-radius: 999px; transition: width .9s var(--ease); }
.daynight { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.dn span { font-size: 12.5px; color: var(--ink-2); display: block; margin-bottom: 6px; }
.dn-day { background: linear-gradient(90deg, #E6C56A, #D9A441); }
.dn-night { background: linear-gradient(90deg, #8E88B6, #5E588A); }

/* dupes ranking */
.dupes-section { margin-top: 52px; }
.dupes-section h2 { font-size: 30px; margin-bottom: 6px; }
.dupes-section .sub { color: var(--ink-2); margin: 0 0 24px; font-size: 15px; }
.relationship-section + .relationship-section { margin-top: 64px; }
.relationship-kicker { display: block; margin-bottom: 7px; font-family: var(--mono); font-size: 11px; letter-spacing: .13em; text-transform: uppercase; color: var(--accent-deep); }
.relationship-section[data-relationship="inspired"] { padding-top: 34px; border-top: 1px solid var(--line); }
.relationship-section[data-relationship="inspired"] .relationship-kicker { color: #6f7752; }
.clone-empty-state { display: grid; grid-template-columns: 132px minmax(0, 1fr) auto; align-items: center; gap: 30px; padding: 28px 32px; border: 1px dashed var(--line-2); border-radius: var(--r-lg); background: color-mix(in oklab, var(--surface) 82%, var(--paper-2)); }
.clone-empty-slot { width: 132px; height: 168px; display: grid; place-items: center; align-content: center; gap: 9px; border: 1px solid var(--line); border-radius: 12px; color: var(--muted); background: var(--paper-2); }
.clone-empty-slot svg { width: 66px; height: 84px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; opacity: .72; }
.clone-empty-slot span { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.clone-empty-copy { max-width: 66ch; }
.clone-empty-copy h3 { margin: 0 0 8px; font-family: var(--display); font-size: 23px; }
.clone-empty-copy p { margin: 0; color: var(--ink-2); font-size: 14.5px; line-height: 1.58; }
.clone-empty-copy .clone-empty-invite { margin-top: 9px; color: var(--muted); }
.clone-empty-action { white-space: nowrap; }
.dupe-list { display: flex; flex-direction: column; gap: 20px; }
.dupe-row { position: relative; display: grid; grid-template-columns: 180px minmax(0, 1fr) minmax(250px, 280px); column-gap: 32px; row-gap: 0; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px 32px; transition: border-color .2s var(--ease), box-shadow .2s var(--ease); }
.dupe-info, .dupe-decision { min-width: 0; }
.dupe-row:hover { border-color: var(--line-2); box-shadow: var(--shadow); }
.dupe-row.best { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.dupe-rank { position: absolute; z-index: 2; top: 18px; left: 18px; width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); font-family: var(--mono); font-size: 14px; font-weight: 700; color: var(--muted); box-shadow: 0 4px 14px rgba(24, 21, 17, .08); }
.dupe-row.best .dupe-rank { color: var(--accent); }
.dupe-thumb-wrap { width: 180px; height: 228px; border-radius: 14px; overflow: hidden; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; }
.dupe-thumb { width: 100%; height: 100%; object-fit: contain; padding: 3px; }
.dupe-thumb-wrap.noimg { background: var(--paper-2); }
.cd-thumb .bottle, .dupe-thumb-wrap .bottle, .lthumb .bottle { height: 88%; width: auto; }
.dupe-info .dbrand { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.dupe-info .dtitle { font-family: var(--display); font-size: 21px; font-weight: 600; display: flex; align-items: center; gap: 10px; margin-top: 2px; }
.relationship-pill { flex: none; display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: 999px; padding: 3px 8px; font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: .08em; line-height: 1.2; text-transform: uppercase; color: var(--accent-deep); background: var(--accent-soft); }
.relationship-pill[data-relationship="inspired"] { color: #626a46; background: color-mix(in oklab, #8b9469 13%, transparent); border-color: color-mix(in oklab, #8b9469 34%, var(--line)); }
.relationship-pill[data-relationship="successor"] { color: #1c7771; background: color-mix(in oklab, #4fa49d 13%, transparent); }
/* accolade badges — colour + icon coded by category (see accoladeMeta) */
.best-tag {
  --cat: var(--accent-deep);
  display: inline-flex; align-items: center; gap: 5px; max-width: 100%;
  font-family: var(--mono); font-size: 11px; font-weight: 600;
  letter-spacing: .07em; text-transform: uppercase;
  padding: 3px 9px 3px 7px; border-radius: 999px; line-height: 1.3;
  background: color-mix(in oklab, var(--cat) 14%, transparent);
  color: var(--cat);
  border: 1px solid color-mix(in oklab, var(--cat) 30%, transparent);
}
.best-tag svg { width: 12px; height: 12px; flex: none; }
.best-tag .bt-txt { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.best-tag[data-cat="grail"]   { --cat: #2F8F5B; }
.best-tag[data-cat="value"]   { --cat: #3E78A0; }
.best-tag[data-cat="beast"]   { --cat: #C2562F; }
.best-tag[data-cat="crowd"]   { --cat: #9A7A2A; }
.best-tag[data-cat="revival"] { --cat: #7A63A8; }
.best-tag[data-cat="successor"] { --cat: #1C8A82; }
:root[data-theme="dark"] .best-tag             { --cat: var(--accent-deep); }
:root[data-theme="dark"] .best-tag[data-cat="grail"]   { --cat: #5FC98C; }
:root[data-theme="dark"] .best-tag[data-cat="value"]   { --cat: #74B4DC; }
:root[data-theme="dark"] .best-tag[data-cat="beast"]   { --cat: #E8835C; }
:root[data-theme="dark"] .best-tag[data-cat="crowd"]   { --cat: #D6B660; }
:root[data-theme="dark"] .best-tag[data-cat="revival"] { --cat: #B6A0E0; }
:root[data-theme="dark"] .best-tag[data-cat="successor"] { --cat: #5FC9C1; }
.card-dupe .best-tag { margin-bottom: 4px; font-size: 11px; }
.card-dupe .relationship-pill { width: fit-content; margin-bottom: 4px; }
.dupe-info .dnote { font-size: 14.5px; line-height: 1.58; color: var(--ink-2); margin-top: 10px; max-width: 60ch; }
.dupe-info .dnote.intel { padding-left: 15px; border-left: 2px solid var(--accent-soft); }
.intel-tag { display: inline-flex; align-items: center; gap: 5px; font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-deep); margin-right: 6px; vertical-align: 1px; }
.intel-tag svg { width: 12px; height: 12px; }
.intel-tag[data-confidence="tested"],
.intel-tag[data-confidence="high"] { color: #2F8F5B; }
.intel-tag[data-confidence="medium"],
.intel-tag[data-confidence="legacy"] { color: var(--accent-deep); }
.intel-tag[data-confidence="adjacent"] { color: #6A6F52; }
.intel-tag[data-confidence="provisional"] { color: #A66D18; }
.intel-tag[data-confidence="discovery"] { color: var(--muted); }
/* evidence — a soft tinted panel; elevation declared once via a hairline border */
.evidence-summary {
  margin-top: 16px;
  max-width: 66ch;
  padding: 15px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: color-mix(in oklab, var(--paper-2) 55%, transparent);
}
.evidence-summary[data-confidence="tested"],
.evidence-summary[data-confidence="high"] { border-left-color: #4E9A6C; }
.evidence-summary[data-confidence="medium"],
.evidence-summary[data-confidence="legacy"] { border-left-color: var(--accent); }
.evidence-summary[data-confidence="adjacent"] { border-left-color: #858A65; }
.evidence-summary[data-confidence="provisional"] { border-left-color: #C58A2A; }
.evidence-facts { display: flex; flex-wrap: wrap; gap: 8px; }
.evidence-facts span {
  padding: 4px 10px;
  border-radius: 999px;
  background: color-mix(in oklab, var(--surface) 80%, transparent);
  border: none;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .02em;
  color: var(--ink-2);
}
.evidence-summary p { margin: 11px 0 0; font-size: 12px; line-height: 1.5; color: var(--muted); }
.evidence-summary p b { color: var(--ink-2); font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; margin-right: 5px; }
.evidence-summary .evidence-dissent { color: var(--ink-2); }
.evidence-links { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; margin-top: 13px; font-family: var(--mono); font-size: 11px; color: var(--muted); }
.evidence-links .review-due { color: #B0492F; font-weight: 600; }
.evidence-link { display: inline-flex; align-items: center; gap: 3px; color: var(--accent-deep); text-decoration: underline; text-underline-offset: 2px; }
.evidence-link svg { width: 10px; height: 10px; }
.dupe-info .dmeta { display: flex; align-items: center; gap: 10px 22px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); flex-wrap: wrap; font-size: 12.5px; color: var(--muted); }
.dupe-info .dm-rating { display: inline-flex; align-items: center; gap: 5px; }
.dupe-info .dm-rating b { font-family: var(--mono); color: var(--ink-2); font-weight: 600; }
.dupe-info .dm-sub { color: var(--muted); }
.dupe-info .dm-perf b { font-family: var(--mono); color: var(--ink-2); font-weight: 600; }
.dupe-info .retailer { font-family: var(--mono); font-size: 11.5px; color: var(--muted); display: inline-flex; align-items: center; gap: 5px; }

/* decision panel — match -> price -> buy -> vote, in a clear right-hand column */
.dupe-decision { align-self: stretch; display: flex; flex-direction: column; justify-content: center; gap: 20px; padding-left: 30px; border-left: 1px solid var(--line); }
.dd-lab { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); display: block; margin-bottom: 8px; }
.matchbar { width: 100%; }
.matchbar .mpct { font-family: var(--mono); font-size: 30px; font-weight: 700; color: var(--ink); line-height: 1; display: block; }
.matchbar .track { height: 6px; background: var(--paper); border-radius: 999px; overflow: hidden; margin-top: 10px; }
.matchbar .fill { height: 100%; background: linear-gradient(90deg, var(--gold), var(--accent)); border-radius: 999px; }
.dd-price { display: flex; flex-direction: column; gap: 4px; }
.dd-now { font-family: var(--mono); font-size: 23px; font-weight: 600; color: var(--ink); }
.dd-was { font-family: var(--mono); font-size: 11.5px; color: var(--muted); display: block; }
.dd-was s { margin-right: 4px; }
.dd-shop { width: 100%; justify-content: center; border: none; cursor: pointer; padding-inline: 18px; white-space: nowrap; }
/* set the community-vote zone apart from the buy decision above it */
.dd-vote { display: flex; flex-direction: column; gap: 11px; padding-top: 18px; border-top: 1px solid var(--line); }

/* voting */
.match-vote { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.mv-q { font-family: var(--mono); font-size: 11px; color: var(--muted); margin-right: 3px; }
.vote-btn { display: inline-flex; align-items: center; gap: 5px; border: 1px solid var(--line-2); background: var(--surface); border-radius: 999px; padding: 5px 11px; font-family: var(--mono); font-size: 12px; font-weight: 500; color: var(--ink-2); transition: border-color .18s var(--ease), color .18s var(--ease), background .18s var(--ease), transform .12s var(--ease); }
.vote-btn svg { width: 14px; height: 14px; }
.vote-btn:hover { transform: translateY(-1px); }
.vote-btn.up:hover { border-color: var(--accent); color: var(--accent-deep); }
.vote-btn.down:hover { border-color: #C2705E; color: #B0492F; }
.vote-btn.up.on { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-deep); }
.vote-btn.down.on { background: #F4DCD3; border-color: #C2705E; color: #A8472F; }
.mv-total { font-family: var(--mono); font-size: 11px; color: var(--muted); }
.mv-thanks { color: var(--accent-deep); }
.vn { display: inline-block; }
.vn.bump { animation: vbump .4s var(--ease); }
@keyframes vbump { 0% { transform: scale(1); } 42% { transform: scale(1.42); } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .vn.bump { animation: none; } }

/* "keep exploring" related rails on the detail page */
.related-section { margin-top: 52px; }
.related-head { margin-bottom: 20px; }
.related-head h2 { font-size: 26px; margin-bottom: 4px; }
.related-head p { color: var(--ink-2); font-size: 14.5px; margin: 0; }
.related-rail { margin-bottom: 6px; }

/* reverse-lookup hint: shown on a result card when the search matched a copy */
.card-via {
  display: flex; width: fit-content; max-width: 100%; align-items: center; gap: 5px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .02em; font-weight: 500;
  color: var(--accent-deep); background: var(--accent-soft);
  padding: 3px 9px; border-radius: 999px; margin-bottom: 9px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.card-via b { font-weight: 600; }
.card-via svg { flex: none; }
.lmain .card-via { margin-bottom: 6px; }

/* visitor clone suggestions */
.suggest-section { margin-top: 52px; }
.suggest-section .sg-head h2 { font-size: 30px; margin-bottom: 6px; }
.suggest-section .sg-head .sub { color: var(--ink-2); margin: 0 0 22px; font-size: 15px; }
.sg-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 26px; }
.sg-empty { color: var(--muted); font-size: 14px; font-style: italic; margin: 0; padding: 4px 2px; }
.sg-card {
  display: grid; grid-template-columns: 76px 1fr auto; align-items: center; gap: 16px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px;
}
.sg-conf { display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; }
.sg-pct { font-family: var(--mono); font-weight: 700; font-size: 18px; color: var(--cf); }
.sg-band { font-size: 11px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.sg-name { font-weight: 600; font-size: 16px; margin-bottom: 7px; }
.sg-links { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.sg-buy, .sg-ref {
  display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 500;
  color: var(--accent-deep); text-decoration: none;
}
.sg-buy:hover, a.sg-ref:hover { text-decoration: underline; }
.sg-personal { color: var(--muted); font-weight: 500; cursor: default; }
.sg-del {
  background: none; border: none; color: var(--muted); cursor: pointer; padding: 4px;
  border-radius: 8px; width: 30px; height: 30px; display: grid; place-items: center;
}
.sg-del svg { width: 16px; height: 16px; }
.sg-del:hover { background: #F4DCD3; color: #A8472F; }

.sg-form {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  padding: 22px 24px; display: flex; flex-direction: column; gap: 16px;
}
.sg-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.sg-field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 500; color: var(--ink-2); }
.sg-field i { color: var(--accent); font-style: normal; }
.sg-field input, .sg-field select, .sg-field textarea, .sg-refurl {
  font: inherit; font-size: 14px; font-weight: 400; color: var(--ink);
  background: var(--paper-2); border: 1px solid var(--line-2); border-radius: 10px; padding: 10px 12px;
}
.sg-field textarea { resize: vertical; min-height: 42px; }
.sg-field input:focus, .sg-field select:focus, .sg-field textarea:focus, .sg-refurl:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft);
}
.sg-basis { border: 1px solid var(--line-2); border-radius: 12px; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.sg-basis legend { font-size: 13px; font-weight: 500; color: var(--ink-2); padding: 0 6px; }
.sg-basis legend i { color: var(--accent); font-style: normal; }
.sg-radio { display: flex; align-items: center; gap: 9px; font-size: 14px; color: var(--ink); cursor: pointer; }
.sg-radio input { accent-color: var(--accent); width: 16px; height: 16px; }
.sg-refurl { margin-top: 2px; }
.sg-refurl.hide { display: none; }
.sg-actions { display: flex; align-items: center; justify-content: flex-end; gap: 16px; }
.sg-err { color: var(--accent-deep); font-size: 13px; font-weight: 500; margin-right: auto; }
.sg-form .btn-shop { border: none; cursor: pointer; }
@media (max-width: 640px) {
  .sg-row { grid-template-columns: 1fr; }
  .sg-card { grid-template-columns: 60px 1fr auto; gap: 12px; padding: 14px; }
}
:root[data-theme="dark"] .sg-pct { filter: brightness(1.4); }

/* reviews */
.reviews-section { margin-top: 52px; }
.reviews-section h2 { font-size: 30px; margin-bottom: 22px; }
.review-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.review { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 22px 24px; }
.review .rhead { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.review .avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-family: var(--display); font-weight: 600; font-size: 16px; color: #fff; flex: none; }
.review .ru { font-weight: 600; font-size: 14.5px; display: flex; align-items: center; gap: 7px; }
.review .verified { color: var(--accent-deep); display: inline-flex; }
.review .verified svg { width: 14px; height: 14px; }
.review .rdate { font-family: var(--mono); font-size: 11px; color: var(--muted); }
.review .rtext { font-size: 14.5px; color: var(--ink-2); line-height: 1.55; margin: 0; }
.review .stars { margin-bottom: 10px; }

/* ============================ Newsletter / footer ===================== */
.cta { margin: 62px 0; background: linear-gradient(135deg, var(--ink), #2a221d); border-radius: var(--r-lg); padding: 54px 46px; color: #fff; display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: center; overflow: hidden; position: relative; }
.cta::after { content: ""; position: absolute; right: -60px; top: -60px; width: 320px; height: 320px; background: radial-gradient(circle, rgba(174,79,51,.5), transparent 65%); pointer-events: none; }
.cta h2 { font-size: clamp(26px, 3vw, 36px); color: #fff; }
.cta p { color: rgba(255,255,255,.72); margin: 10px 0 0; max-width: 42ch; }
.cta-form { display: flex; gap: 10px; position: relative; z-index: 1; }
.cta-form input { height: 50px; width: 260px; border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.08); border-radius: 999px; padding: 0 18px; color: #fff; font-family: var(--sans); font-size: 15px; }
.cta-form input::placeholder { color: rgba(255,255,255,.5); }
.cta-form input:focus { outline: none; border-color: var(--gold); }
.cta-form .btn-primary { background: var(--gold); color: var(--ink); }
.cta-form .btn-primary:hover { background: #fff; }
/* CTA is a permanently-dark surface: use the light gold, not the light-mode text gold */
.cta .eyebrow.gold { color: var(--gold); }

footer { border-top: 1px solid var(--line); padding: 52px 0 40px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.foot-brand .brand-name { font-size: 22px; }
.foot-brand p { color: var(--ink-2); font-size: 14px; max-width: 32ch; margin: 14px 0 0; }
.foot-col h3 { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; font-weight: 500; }
.foot-col a { display: block; color: var(--ink-2); font-size: 14px; padding: 5px 0; transition: color .18s var(--ease); }
.foot-col a:hover { color: var(--accent-deep); }
.foot-bottom { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); }
.foot-bottom .disclaimer { max-width: 62ch; }

/* ============================ Compare & Finder ======================== */
.btn-ghost { background: var(--surface); color: var(--ink); border: 1px solid var(--line-2); padding: 11px 18px; }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-deep); }
.nav-finder { border: 1px solid var(--line-2); background: var(--surface); color: var(--accent-deep); font-family: var(--sans); font-weight: 600; font-size: 13px; padding: 7px 12px; border-radius: 999px; cursor: pointer; white-space: nowrap; margin-left: 2px; transition: all .2s var(--ease); }
.nav-finder:hover { border-color: var(--accent); background: var(--accent-soft); }

/* pin-to-compare button on cards */
.pin-btn {
  position: absolute; right: 14px; bottom: 14px; width: 30px; height: 30px;
  border-radius: 50%; border: 1px solid var(--line-2); background: rgba(255,255,255,.92);
  backdrop-filter: blur(4px); color: var(--ink-2); display: grid; place-items: center;
  opacity: 0; transform: translateY(4px);
  transition: opacity .2s var(--ease), transform .2s var(--ease), background .18s, color .18s, border-color .18s;
}
.card:hover .pin-btn, .pin-btn.on, .pin-btn:focus-visible { opacity: 1; transform: none; }
.pin-btn svg { width: 15px; height: 15px; }
.pin-btn:hover { border-color: var(--accent); color: var(--accent-deep); }
.pin-btn.on { background: var(--accent); border-color: var(--accent); color: #fff; }

/* save / bookmark toggle — mirrors the pin button, anchored bottom-left */
.save-btn {
  position: absolute; left: 14px; bottom: 14px; width: 30px; height: 30px;
  border-radius: 50%; border: 1px solid var(--line-2); background: rgba(255,255,255,.92);
  backdrop-filter: blur(4px); color: var(--ink-2); display: grid; place-items: center; cursor: pointer;
  opacity: 0; transform: translateY(4px);
  transition: opacity .2s var(--ease), transform .2s var(--ease), background .18s, color .18s, border-color .18s;
}
.card:hover .save-btn, .save-btn.on, .save-btn:focus-visible { opacity: 1; transform: none; }
.save-btn svg { width: 14px; height: 14px; }
.save-btn:hover { border-color: var(--accent); color: var(--accent-deep); }
.save-btn.on { background: var(--accent); border-color: var(--accent); color: #fff; }

/* compare tray (docked) */
.compare-tray { position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -12px 34px rgba(28,24,21,.10); padding: 12px 0; }
.compare-tray[hidden] { display: none; }
.ct-inner { display: flex; align-items: center; gap: 16px; }
.ct-label { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); flex: none; }
.ct-items { display: flex; gap: 8px; flex-wrap: wrap; flex: 1; }
.ct-chip { display: inline-flex; align-items: center; gap: 9px; background: var(--paper-2); border: 1px solid var(--line); border-radius: 999px; padding: 6px 11px 6px 13px; font-size: 13px; font-weight: 500; color: var(--ink); cursor: pointer; }
.ct-chip span { color: var(--muted); font-size: 11px; }
.ct-chip:hover { border-color: #C2705E; color: #A8472F; }
.ct-actions { display: flex; align-items: center; gap: 14px; flex: none; }
.ct-clear { background: none; border: none; font-family: var(--mono); font-size: 12px; color: var(--ink-2); cursor: pointer; }
.ct-clear:hover { color: var(--accent-deep); }
.ct-go:disabled { opacity: .4; cursor: not-allowed; }
.compare-tray.shake { animation: shake .4s var(--ease); }
@keyframes shake { 0%,100%{transform:none} 25%{transform:translateX(-6px)} 75%{transform:translateX(6px)} }
body.has-tray { padding-bottom: 78px; }

/* overlays (modal) */
.overlay { position: fixed; inset: 0; z-index: 90; display: flex; align-items: center; justify-content: center; padding: 24px; }
.overlay[hidden] { display: none; }
.ov-backdrop { position: absolute; inset: 0; background: rgba(28,24,21,.45); backdrop-filter: blur(3px); animation: fade .3s var(--ease); }
.ov-panel { position: relative; background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); width: 100%; max-height: 88vh; display: flex; flex-direction: column; overflow: hidden; animation: pop .32s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: none; } }
.compare-panel { max-width: 980px; }
.finder-panel { max-width: 560px; }
.ov-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 26px; border-bottom: 1px solid var(--line); flex: none; }
.ov-head h2 { font-size: 24px; }
.ov-close { background: none; border: none; font-size: 17px; color: var(--muted); cursor: pointer; width: 34px; height: 34px; border-radius: 50%; }
.ov-close:hover { background: var(--paper); color: var(--ink); }
body.ov-open { overflow: hidden; }
@media (prefers-reduced-motion: reduce) { .ov-backdrop, .ov-panel { animation: none; } }

/* ===================== Global search overlay ===================== */
.search-trigger { cursor: pointer; }
.search-overlay { align-items: flex-start; padding: 0; }
.search-overlay .ov-backdrop { background: rgba(28,24,21,.4); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.search-panel {
  position: relative; width: 100%; max-width: 600px; margin: 9vh auto 24px;
  background: var(--surface); border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg); display: flex; flex-direction: column; max-height: 78vh; overflow: hidden;
  animation: pop .26s var(--ease);
}
@media (prefers-reduced-motion: reduce) { .search-panel { animation: none; } }
.search-head { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); flex: none; }
.search-ic { width: 20px; height: 20px; color: var(--muted); flex: none; }
#search-input { flex: 1; min-width: 0; border: none; background: none; outline: none; font: inherit; font-size: 18px; color: var(--ink); padding: 4px 0; }
#search-input::placeholder { color: var(--muted); }
.search-esc { flex: none; font-family: var(--mono); font-size: 11px; letter-spacing: .06em; color: var(--muted); border: 1px solid var(--line-2); border-radius: 7px; padding: 4px 8px; background: var(--paper-2); cursor: pointer; }
.search-esc:hover { color: var(--ink); border-color: var(--accent); }
.search-results { overflow-y: auto; padding: 8px; overscroll-behavior: contain; }
.sr-group { padding: 6px 0; }
.sr-group + .sr-group { border-top: 1px solid var(--line); margin-top: 4px; }
.sr-grouphead { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding: 8px 12px 6px; }
.sr-row { display: flex; align-items: center; gap: 13px; width: 100%; text-align: left; padding: 9px 12px; border: none; background: none; border-radius: 12px; cursor: pointer; font: inherit; transition: background .12s; }
.sr-row:hover, .sr-row.active { background: var(--paper); }
.sr-thumb { flex: none; width: 46px; height: 46px; border-radius: 10px; background: var(--paper-2); border: 1px solid var(--line); display: grid; place-items: center; overflow: hidden; }
.sr-thumb img { max-width: 86%; max-height: 86%; object-fit: contain; mix-blend-mode: multiply; }
:root[data-theme="dark"] .sr-thumb img { mix-blend-mode: normal; }
.sr-thumb-logo img.house-logo { width: auto; height: 18px; max-width: 38px; }
.sr-swatch { width: 18px; height: 18px; border-radius: 50%; }
.sr-initial { font-family: var(--display); font-size: 18px; color: var(--ink-2); }
.sr-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.sr-name { font-size: 15px; color: var(--ink); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sr-name mark { background: rgba(174,79,51,.18); color: inherit; border-radius: 3px; padding: 0 1px; }
.sr-sub { font-size: 12.5px; color: var(--muted); display: flex; align-items: center; gap: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sr-sub svg { width: 12px; height: 12px; flex: none; }
.sr-meta { flex: none; font-family: var(--mono); font-size: 12px; color: var(--ink-2); }
.sr-lead-row { border: 1px solid color-mix(in srgb, var(--gold) 38%, var(--line)); background: color-mix(in srgb, var(--gold) 7%, var(--surface)); }
.sr-lead-row:hover, .sr-lead-row.active { background: color-mix(in srgb, var(--gold) 13%, var(--surface)); }
.sr-lead-tag { display: inline-flex; align-items: center; width: fit-content; color: #79623A; background: rgba(187,160,109,.18); border-radius: 999px; padding: 1px 6px; font: 11px var(--mono); letter-spacing: .04em; text-transform: uppercase; }
.sr-lead-meta { color: #79623A; font-size: 11px; max-width: 12ch; text-align: right; }
.sr-empty { text-align: center; padding: 40px 20px; color: var(--ink-2); display: flex; flex-direction: column; gap: 6px; }
.sr-empty span { color: var(--muted); font-size: 13.5px; }
@media (max-width: 600px) {
  .search-panel { margin: 0; max-width: none; max-height: 100vh; height: 100%; border-radius: 0; border: none; }
  .search-overlay { padding: 0; }
}

/* Search-visible research leads: a quiet evidence drawer, deliberately
   separate from scored clone recommendations. */
.lead-overlay { justify-content: flex-end; padding: 0; align-items: stretch; }
.lead-overlay .ov-backdrop { background: rgba(28,24,21,.36); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.lead-drawer { position: relative; z-index: 1; width: min(100%, 530px); min-height: 100%; overflow-y: auto; background: var(--surface); border-left: 1px solid var(--line); box-shadow: -28px 0 80px rgba(28,24,21,.14); animation: leadIn .32s var(--ease); outline: none; }
.lead-drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--line); background: var(--paper-2); }
.lead-drawer-body { padding: 24px 20px 36px; }
.lead-bottle { min-height: 176px; margin: 0 0 18px; padding: 12px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: var(--r); background: var(--paper-2); }
.lead-bottle img { width: min(100%, 136px); height: 146px; object-fit: contain; mix-blend-mode: multiply; }
:root[data-theme="dark"] .lead-bottle img { mix-blend-mode: normal; }
.lead-bottle figcaption { align-self: end; justify-self: start; color: var(--muted); font: 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.lead-bottle-fallback .bottle { height: 138px; }
.lead-status-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.lead-checked { color: var(--muted); font: 11px var(--mono); }
.lead-kicker { margin: 0 0 8px; color: var(--accent-deep); font: 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.lead-drawer h2 { font-size: clamp(30px, 9vw, 46px); line-height: .96; margin: 0 0 20px; }
.lead-drawer h2 em { font-style: normal; color: var(--ink-2); }
.lead-route { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.lead-route span { grid-column: 1 / -1; color: var(--muted); font: 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.lead-route strong { font: 500 20px/1.15 var(--display); }
.lead-route small { align-self: end; color: var(--ink-2); font-size: 12px; text-align: right; }
.lead-section { padding: 20px 0; border-bottom: 1px solid var(--line); }
.lead-section h3 { display: flex; align-items: baseline; justify-content: space-between; font: 11px var(--mono); color: var(--muted); letter-spacing: .1em; text-transform: uppercase; }
.lead-section h3 span { color: var(--accent-deep); }
.lead-section p { margin: 9px 0 0; color: var(--ink-2); font-size: 14px; line-height: 1.55; }
.lead-next { background: color-mix(in srgb, var(--gold) 9%, transparent); margin-inline: -10px; padding-inline: 10px; }
.lead-source-list { display: grid; gap: 8px; margin-top: 11px; }
.lead-source-list a { display: flex; align-items: center; gap: 7px; width: fit-content; max-width: 100%; color: var(--accent-deep); font: 12px var(--mono); text-decoration: underline; text-underline-offset: 3px; }
.lead-source-list svg { width: 13px; flex: none; }
.lead-source-empty { color: var(--muted) !important; font-style: italic; }
.lead-backlog-link { display: flex; justify-content: center; align-items: center; min-height: 48px; margin-top: 22px; border: 1px solid var(--line-2); border-radius: 10px; color: var(--accent-deep); font-size: 13px; font-weight: 600; }
.lead-backlog-link:hover { border-color: var(--accent); background: var(--accent-soft); }
@keyframes leadIn { from { transform: translateX(28px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .lead-drawer { animation: none; } }
@media (min-width: 640px) { .lead-drawer-head { padding-inline: 28px; } .lead-drawer-body { padding: 30px 28px 44px; } }

/* compare table */
.compare-scroll { overflow: auto; padding: 6px 26px 26px; }
.compare-table { width: 100%; border-collapse: collapse; }
.compare-table th, .compare-table td { padding: 12px 14px; border-bottom: 1px solid var(--line); font-size: 14px; text-align: center; vertical-align: middle; }
.compare-table tbody th[scope="row"] { font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 500; white-space: nowrap; width: 120px; text-align: left; }
.compare-table thead th { vertical-align: bottom; }
.ct-h { min-width: 158px; position: relative; }
.ct-h-photo { height: 124px; display: flex; align-items: center; justify-content: center; overflow: hidden; background: var(--paper-2); border-radius: var(--r); border: 1px solid var(--line); margin-bottom: 10px; }
.ct-photo { max-width: 100%; max-height: 100%; object-fit: contain; padding: 10px; }
.ct-h-name { font-family: var(--display); font-size: 17px; font-weight: 600; line-height: 1.12; }
.ct-h-house { font-size: 12px; color: var(--muted); }
.ct-h-rm { position: absolute; top: -8px; right: 4px; background: var(--surface); border: 1px solid var(--line); width: 24px; height: 24px; border-radius: 50%; color: var(--muted); cursor: pointer; font-size: 12px; }
.ct-h-rm:hover { border-color: #C2705E; color: #A8472F; }
.ct-accords { display: inline-flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.ct-match { font-family: var(--mono); font-weight: 600; color: var(--accent-deep); font-size: 16px; }
.ct-save { font-family: var(--mono); font-weight: 600; color: var(--accent-deep); }
.ct-price { font-family: var(--mono); font-weight: 600; }
.ct-was { color: var(--muted); font-size: 12px; }
.ct-sub { color: var(--muted); font-size: 12px; }

/* finder */
.fd-progress { display: flex; gap: 6px; padding: 16px 26px 0; }
.fd-dot { flex: 1; height: 4px; border-radius: 999px; background: var(--line); transition: background .2s var(--ease); }
.fd-dot.on, .fd-dot.done { background: var(--accent); }
.fd-step { padding: 18px 26px 6px; overflow-y: auto; }
.fd-stepno { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0; }
.fd-title { font-size: 26px; margin: 8px 0 4px; }
.fd-sub { color: var(--ink-2); font-size: 14px; margin: 0 0 18px; }
.fd-opts { display: flex; gap: 10px; flex-wrap: wrap; }
.fd-opt { border: 1px solid var(--line-2); background: var(--surface); border-radius: 12px; padding: 14px 18px; font-size: 15px; font-weight: 500; color: var(--ink); cursor: pointer; flex: 1 1 auto; min-width: 130px; text-align: center; transition: all .16s var(--ease); }
.wrap-opts .fd-opt { flex: 0 1 auto; min-width: 0; }
.fd-opt:hover { border-color: var(--accent); }
.fd-opt.sel { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-deep); }
.fd-sub-label { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 16px 0 8px; }
.fd-reverse { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.fd-reverse > span { font-size: 13px; color: var(--ink-2); display: block; margin-bottom: 8px; }
.fd-reverse form { display: flex; gap: 8px; }
.fd-reverse input { flex: 1; min-width: 0; height: 42px; border: 1px solid var(--line-2); border-radius: 999px; padding: 0 16px; font-family: var(--sans); font-size: 14px; }
.fd-reverse input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.fd-foot { display: flex; align-items: center; gap: 12px; padding: 16px 26px 22px; border-top: 1px solid var(--line); flex: none; }
.fd-back { background: none; border: none; font-size: 14px; color: var(--ink-2); cursor: pointer; }
.fd-back.hidden { visibility: hidden; }
.fd-count { font-family: var(--mono); font-size: 12.5px; color: var(--muted); margin-left: auto; margin-right: 12px; }
.dh-compare { margin-top: 20px; display: inline-flex; align-items: center; gap: 8px; }
.dh-compare svg { width: 15px; height: 15px; }
.dh-compare.on { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-deep); }

/* ============================ Reveal ================================== */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ============================ Responsive ============================== */
/* Collapse the horizontal nav to the hamburger before it can crowd/overflow
   the bar (brand + full nav + search + toggle need ~1180px to sit cleanly). */
@media (max-width: 1180px) {
  .nav { display: none; }
  .nav-toggle { display: flex; }
  body.nav-open .mobile-menu { display: flex; }
  .mobile-menu .mm-finder { display: inline-flex; }
}
@media (max-width: 1000px) {
  .index-layout { grid-template-columns: 1fr; gap: 24px; }
  .filters { position: static; max-height: none; overflow: visible; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 6px 16px 2px; }
  .filters-bar { padding-top: 10px; }
  .pin-btn, .save-btn { opacity: 1; transform: none; }
  .nav-finder { display: none; }
}
@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-feature { max-width: 460px; }
  .feature-band { grid-template-columns: 1fr; }
  .how-grid { grid-template-columns: 1fr; }
  .detail-hero { grid-template-columns: 1fr; gap: 28px; }
  .detail-body { grid-template-columns: 1fr; gap: 28px; }
  .detail-side { position: static; flex-direction: row; flex-wrap: wrap; }
  .detail-side .side-card { flex: 1 1 240px; }
  .review-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .cta { grid-template-columns: 1fr; }
  .nav { display: none; }
  .lrow { grid-template-columns: 48px 1fr 110px; }
  .lrow .lcopy { display: none; }
}
@media (max-width: 620px) {
  .wrap { padding: 0 18px; }
  .topbar-search { display: none; }
  .hero { padding: 40px 0 32px; }
  .hero-search { flex-wrap: wrap; }
  .hero-search .field { flex-basis: 100%; }
  .hero-search .btn { flex: 1 1 auto; }
  .hero-stats { gap: 18px 24px; }
  .hero-stats .stat { flex: 1 1 40%; padding: 0; }
  .section-head { grid-template-columns: auto 1fr; }
  .section-head .link { grid-column: 1 / -1; }
  .dh-visual { aspect-ratio: 1 / 1; }
  .dh-photo { max-width: 62%; max-height: 74%; }
  .dh-specs { grid-template-columns: 1fr 1fr; }
  .dh-specs .dh-spec:nth-child(3) { border-left: none; }
  .dh-specs .dh-spec:nth-child(n+3) { border-top: 1px solid var(--line); }
  .dh-thumb { width: 62px; height: 62px; }
  .pf-now { font-size: 36px; }
  .accord-row, .pyr-row { grid-template-columns: 84px 1fr; }
  .detail-side { flex-direction: column; }
  .dupe-row { grid-template-columns: 120px 1fr; gap: 14px 18px; padding: 20px 18px; }
  .clone-empty-state { grid-template-columns: 104px 1fr; gap: 18px 20px; padding: 20px 18px; }
  .clone-empty-slot { width: 104px; height: 132px; }
  .clone-empty-slot svg { width: 52px; height: 66px; }
  .clone-empty-action { grid-column: 1 / -1; width: 100%; min-height: 44px; }
  .dupe-rank { top: 12px; left: 12px; width: 30px; height: 30px; font-size: 12px; }
  .dupe-thumb-wrap { width: 120px; height: 152px; }
  .dupe-info { grid-column: 2; }
  .dupe-info .dtitle { flex-wrap: wrap; align-items: flex-start; gap: 7px; }
  .dupe-decision { grid-column: 1 / -1; align-self: auto; border-left: none; padding-left: 0; border-top: 1px solid var(--line); padding-top: 16px; margin-top: 2px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; align-items: end; }
  .dd-match, .dd-price { align-self: end; }
  .dd-shop, .dd-vote { grid-column: 1 / -1; }
  .vote-btn { min-height: 40px; padding: 8px 13px; }
  .evidence-link { min-height: 32px; padding: 7px 2px; }
  .evidence-summary { padding: 10px; }
  .evidence-facts { gap: 5px; }
  .evidence-facts span { font-size: 11px; }
  .back-link { min-height: 44px; display: inline-flex; align-items: center; }
  .sg-form .btn-shop { min-height: 44px; }
  .lrow { grid-template-columns: 48px 1fr 92px; }
  .cta { padding: 36px 26px; }
  .cta-form { flex-direction: column; }
  .cta-form input { width: 100%; }
}

/* =========================================================================
   Theme toggle + mobile navigation chrome
   ========================================================================= */
.theme-toggle {
  flex: none; width: 40px; height: 40px;
  display: inline-grid; place-items: center;
  border: 1px solid var(--line-2); border-radius: 50%;
  background: var(--surface); color: var(--ink-2);
  transition: color .2s var(--ease), border-color .2s var(--ease), background .3s var(--ease);
}
.theme-toggle:hover { color: var(--accent-deep); border-color: var(--accent); }
.theme-toggle:focus-visible { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .ic-sun { display: none; }
.theme-toggle .ic-moon { display: block; }
:root[data-theme="dark"] .theme-toggle .ic-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .ic-sun { display: block; }

.nav-toggle {
  display: none; flex: none; width: 42px; height: 40px;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  border: 1px solid var(--line-2); border-radius: 11px; background: var(--surface);
}
.nav-toggle span { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--ink);
  transition: transform .25s var(--ease), opacity .2s var(--ease); }
body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu { display: none; flex-direction: column; gap: 2px; padding: 8px 18px 18px;
  background: var(--surface); border-top: 1px solid var(--line); }
.mobile-menu a { padding: 13px 6px; font-size: 16px; font-weight: 500; color: var(--ink);
  border-bottom: 1px solid var(--line); }
.mobile-menu a:hover { color: var(--accent-deep); }
.mm-search { display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 16px;
  margin: 6px 0 10px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--paper-2); }
.mm-search svg { flex: none; width: 18px; height: 18px; color: var(--muted); }
.mm-search input { flex: 1; min-width: 0; border: none; background: none; outline: none;
  font-family: var(--sans); font-size: 15px; color: var(--ink); }
.mm-finder { margin-top: 12px; align-self: flex-start; }
@media (prefers-reduced-motion: reduce) { .nav-toggle span, .theme-toggle { transition: none; } }

/* let the index columns shrink below their content min-width so the single-
   column mobile layout can't force horizontal overflow */
.index-main, .filters { min-width: 0; }

/* =========================================================================
   Theme: dark  (applied via [data-theme="dark"] on <html>)
   ========================================================================= */
:root[data-theme="dark"] {
  --paper:    #15130F;
  --paper-2:  #1C1915;
  --surface:  #221E18;
  --ink:      #F1ECE3;
  --ink-2:    #B7AE9F;
  --muted:    #A29A88;   /* lifted for AA on the dark paper */
  --muted-soft: #8A8273;
  --line:     #2E2920;
  --line-2:   #3A3328;
  --on-ink:   #15130F;   /* dark text on the now-light --ink surface */
  --accent:      #C96B4C;
  --accent-deep: #E2916F;   /* lightened so it reads on dark */
  --accent-soft: #3A2820;   /* dark warm tint for active states */
  --gold:        #CBB17C;
  --gold-ink:    #CBB17C;   /* the light gold already passes on dark */
  --sage:        #93A07C;
  --sage-ink:    #A6B491;   /* lifted sage text for AA on dark */
  --sage-deep:   #5F6C48;   /* dark sage badge keeps white text readable in both themes */
  --shadow-sm: 0 1px 2px rgba(0,0,0,.34), 0 6px 18px rgba(0,0,0,.38);
  --shadow:    0 14px 38px rgba(0,0,0,.46), 0 30px 66px rgba(0,0,0,.44);
  --shadow-lg: 0 38px 92px rgba(0,0,0,.58);
}
:root[data-theme="dark"] body::before {
  background:
    radial-gradient(900px 500px at 10% -12%, rgba(203,177,124,.06), transparent 60%),
    radial-gradient(820px 560px at 102% 0%, rgba(201,107,76,.06), transparent 55%);
}
:root[data-theme="dark"] .topbar { background: rgba(21,19,15,.78); }
:root[data-theme="dark"] .topbar.scrolled { background: rgba(21,19,15,.95); }
:root[data-theme="dark"] .nav a:hover { background: rgba(226,145,111,.12); }


/* keep product-photo wells light: bottle photos are multiply-blended and only
   read correctly over a light surface (multiply on dark would crush them) */
:root[data-theme="dark"] .card-visual,
:root[data-theme="dark"] .rcard-visual,
:root[data-theme="dark"] .ct-h-photo,
:root[data-theme="dark"] .lthumb,
:root[data-theme="dark"] .cd-thumb,
:root[data-theme="dark"] .fc-thumb { background: #f2f0ea; }
:root[data-theme="dark"] .dh-visual { background: linear-gradient(168deg, #ffffff 0%, var(--fs, #ECE7DD) 132%); }
:root[data-theme="dark"] .dh-thumb { background: #f4f2ec; border-color: #e2ded6; }
:root[data-theme="dark"] .dh-thumb.on { border-color: var(--accent); }
:root[data-theme="dark"] .dupe-thumb-wrap { background: #f7f5f1; }
:root[data-theme="dark"] .dupe-thumb-wrap.noimg { background: #ece9e2; }

/* the inverted CTA card uses --ink in its gradient (now light) — pin it dark */
:root[data-theme="dark"] .cta { background: linear-gradient(135deg, #2b2521, #16120e); }

/* =========================================================================
   Responsive — mobile nav + small-screen polish
   ========================================================================= */
@media (max-width: 940px) {
  .bar-inner { gap: 14px; }
  .nav-toggle { display: flex; }
  body.nav-open .mobile-menu { display: flex; }
  .mobile-menu .mm-finder { display: inline-flex; }
}
@media (max-width: 620px) {
  .bar-inner { height: 62px; gap: 12px; }
  .theme-toggle { margin-left: auto; }
  .theme-toggle, .nav-toggle { width: 40px; height: 40px; }
  .hero h1 { font-size: clamp(33px, 8.6vw, 44px); }
  .hero .lede { font-size: 16.5px; }
  .hv-stage { height: 232px; margin: 14px 16px 0; }
  .hv-bottle { max-height: 200px; max-width: 70%; }
  .hv-top, .hv-orig { padding-left: 16px; padding-right: 16px; }
  .hv-copy { margin-left: 16px; margin-right: 16px; }
  .edit-band { padding: 26px 22px; }
  .edit-visual { gap: 10px; }
  .toolbar { flex-wrap: wrap; row-gap: 12px; }
  .mobile-menu {
    max-height: calc(100dvh - 62px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .mobile-menu .mm-finder { min-height: 44px; }
  .search-esc {
    min-width: 44px;
    min-height: 44px;
    display: grid;
    place-items: center;
  }
  .ov-close { width: 44px; height: 44px; }
  .compare-tray { padding: 10px 0; }
  .ct-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }
  .ct-label { display: none; }
  .ct-items {
    min-width: 0;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .ct-items::-webkit-scrollbar { display: none; }
  .ct-actions { width: 100%; justify-content: space-between; }
  .ct-clear, .ct-go { min-height: 40px; }
  body.has-tray { padding-bottom: 122px; }
}
@media (max-width: 420px) {
  .toolbar-right { width: 100%; gap: 10px; justify-content: space-between; }
  .sort-label { display: none; }
  .dupe-row { grid-template-columns: 1fr; padding: 18px; }
  .clone-empty-state { grid-template-columns: 1fr; padding: 18px; text-align: center; }
  .clone-empty-slot { justify-self: center; }
  .clone-empty-copy { justify-self: center; }
  .dupe-thumb-wrap {
    grid-column: 1;
    width: 112px;
    height: 142px;
    justify-self: center;
  }
  .dupe-info, .dupe-decision { grid-column: 1; }
}
@media (max-width: 380px) {
  .bar-inner { gap: 8px; }
  .brand { min-width: 0; gap: 8px; }
  .brand-mark { width: 32px; height: 32px; }
  .brand-name { font-size: 18px; }
  .brand-sub { display: none; }
}

/* =========================================================================
   Trending rail — lighter, compact cards
   ========================================================================= */
.rail { grid-auto-columns: minmax(208px, 1fr); gap: 18px; }
.rcard { scroll-snap-align: start; display: flex; flex-direction: column; cursor: pointer; background: transparent; border: none; }
.rcard-visual {
  position: relative; height: 188px; border-radius: 16px; overflow: hidden;
  background: var(--paper-2); border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  transition: transform .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.rcard:hover .rcard-visual { transform: translateY(-4px); border-color: var(--line-2); box-shadow: var(--shadow-sm); }
.rcard-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 22px; transition: transform .4s var(--ease); }
.rcard:hover .rcard-photo { transform: scale(1.04); }
.rcard-visual .bottle { height: 104px; }
.rcard-rank { position: absolute; top: 11px; left: 13px; font-family: var(--mono); font-size: 11px; font-weight: 600; color: var(--muted); letter-spacing: .04em; }
.rcard-body { padding: 12px 4px 2px; display: flex; flex-direction: column; gap: 4px; }
.rcard-name { font-family: var(--display); font-size: 16.5px; font-weight: 600; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rcard-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 2px; }
.rcard-fam { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.rcard-fam .dot { width: 7px; height: 7px; border-radius: 50%; }
.rcard-match { font-family: var(--mono); font-size: 11px; font-weight: 600; color: var(--accent-deep); white-space: nowrap; }
.rcard-match[data-tier="high"] { color: #2F8F5B; }
.rcard-match[data-tier="mid"]  { color: #B07F1E; }
:root[data-theme="dark"] .rcard-match[data-tier="high"] { color: #5FC98C; }
:root[data-theme="dark"] .rcard-match[data-tier="mid"]  { color: #D6B660; }

/* =========================================================================
   Hero featured-match — rotation dots
   ========================================================================= */
.cmp-dots { display: flex; gap: 2px; justify-content: center; margin-top: 16px; }
.cmp-dot { width: 22px; height: 22px; padding: 0; border: none; background: none; cursor: pointer; display: inline-grid; place-items: center; }
.cmp-dot::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--line-2); transition: background .2s var(--ease), transform .2s var(--ease); }
.cmp-dot:hover::before { background: var(--accent-deep); }
.cmp-dot.on::before { background: var(--accent); transform: scale(1.3); }
@media (prefers-reduced-motion: reduce) { .cmp { transition: none; } .rcard-visual, .rcard-photo { transition: none; } }

/* =========================================================================
   Heroes — dedicated page
   ========================================================================= */
.index-page { padding: 40px 0 84px; animation: heroesIn .5s var(--ease); }
@media (prefers-reduced-motion: reduce) { .index-page { animation: none; } }
.heroes-page { padding: 40px 0 84px; animation: heroesIn .5s var(--ease); }
@keyframes heroesIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .heroes-page { animation: none; } }
.heroes-hero { max-width: 660px; margin: 20px 0 38px; }
.heroes-hero .eyebrow { display: block; margin-bottom: 12px; }
.heroes-hero h1 { font-size: clamp(34px, 5.2vw, 58px); letter-spacing: -.025em; }
.heroes-hero h1 em { font-style: italic; color: var(--accent); }
.heroes-hero .lede { font-size: 17px; color: var(--ink-2); max-width: 56ch; margin: 16px 0 0; }
.heroes-page .back-link { display: inline-flex; align-items: center; gap: 7px; font-family: var(--mono); font-size: 12.5px; letter-spacing: .04em; color: var(--ink-2); cursor: pointer; }
.heroes-page .back-link svg { width: 16px; height: 16px; }
.heroes-page .back-link:hover { color: var(--accent-deep); }

/* ===================== Scent wardrobe builder ======================== */
.wardrobe-page { padding: 40px 0 84px; animation: heroesIn .5s var(--ease); }
@media (prefers-reduced-motion: reduce) { .wardrobe-page { animation: none; } }
.wardrobe-page .back-link { display: inline-flex; align-items: center; gap: 7px; font-family: var(--mono); font-size: 12.5px; letter-spacing: .04em; color: var(--ink-2); cursor: pointer; }
.wardrobe-page .back-link svg { width: 16px; height: 16px; }
.wardrobe-page .back-link:hover { color: var(--accent-deep); }
.wr-hero { max-width: 680px; margin: 20px 0 30px; }
.wr-hero .eyebrow { display: block; margin-bottom: 12px; }
.wr-hero h1 { font-size: clamp(34px, 5.2vw, 58px); letter-spacing: -.025em; }
.wr-hero h1 em { font-style: italic; color: var(--accent); }
.wr-hero .lede { font-size: 17px; color: var(--ink-2); max-width: 60ch; margin: 16px 0 0; }
.wr-controls { display: flex; flex-direction: column; gap: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px 26px; margin-bottom: 20px; }
.wr-field { display: flex; flex-direction: column; gap: 10px; }
.wr-lab { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.wr-lab i { font-family: var(--sans); font-style: normal; letter-spacing: 0; text-transform: none; color: var(--muted); }
.wr-opts { display: flex; flex-wrap: wrap; gap: 9px; }
.wr-chip { font: inherit; font-size: 13.5px; padding: 8px 15px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--paper-2); color: var(--ink-2); cursor: pointer; transition: background .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease); }
.wr-chip:hover { border-color: var(--accent); color: var(--accent-deep); }
.wr-chip.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.wr-summary { font-size: 15px; color: var(--ink-2); margin: 0 0 22px; }
.wr-summary b { color: var(--ink); font-weight: 600; }

/* Saved (bookmarks) page — reuses .wr-hero, .grid, .back-link */
.saved-page { padding: 40px 0 84px; animation: heroesIn .5s var(--ease); }
@media (prefers-reduced-motion: reduce) { .saved-page { animation: none; } }
.saved-page .back-link { display: inline-flex; align-items: center; gap: 7px; font-family: var(--mono); font-size: 12.5px; letter-spacing: .04em; color: var(--ink-2); cursor: pointer; }
.saved-page .back-link svg { width: 16px; height: 16px; }
.saved-page .back-link:hover { color: var(--accent-deep); }
.saved-page .wr-summary { margin-top: 14px; }
.saved-empty { text-align: center; max-width: 420px; margin: 40px auto 0; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.saved-empty[hidden] { display: none; }
.saved-empty-mark { width: 56px; height: 56px; color: var(--muted); }
.saved-empty-mark svg { width: 100%; height: 100%; }
.saved-empty h2 { font-size: 22px; }
.saved-empty p { color: var(--ink-2); font-size: 15px; margin: 0; }
.saved-empty .btn { margin-top: 6px; }

/* detail-page action row + save button */
.dh-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.dh-actions .btn { margin-top: 0; }
.dh-save { display: inline-flex; align-items: center; gap: 7px; }
.dh-save svg { width: 16px; height: 16px; }
.dh-save.on { background: var(--accent); border-color: var(--accent); color: #fff; }

/* nav saved count badge */
.nav-count { display: inline-grid; place-items: center; min-width: 17px; height: 17px; padding: 0 4px; margin-left: 5px; border-radius: 999px; background: var(--accent); color: #fff; font-family: var(--mono); font-size: 11px; line-height: 1; vertical-align: middle; }
.nav-count[hidden] { display: none; }

/* "I have this" — own toggle on each dupe row */
.own-btn {
  width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 9px 14px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line-2); background: var(--surface); color: var(--ink-2);
  font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: .02em;
  transition: border-color .18s var(--ease), background .18s var(--ease), color .18s var(--ease);
}
.own-btn svg { width: 15px; height: 15px; }
.own-btn:hover { border-color: var(--ink-2); color: var(--ink); }
.own-btn.on { background: var(--accent-soft); border-color: transparent; color: var(--accent-deep); }

/* ============================ Shelf page ============================ */
.shelf-page { padding: 40px 0 84px; animation: heroesIn .5s var(--ease); }
@media (prefers-reduced-motion: reduce) { .shelf-page { animation: none; } }
.shelf-page .back-link { display: inline-flex; align-items: center; gap: 7px; font-family: var(--mono); font-size: 12.5px; letter-spacing: .04em; color: var(--ink-2); cursor: pointer; }
.shelf-page .back-link svg { width: 16px; height: 16px; }
.shelf-page .back-link:hover { color: var(--accent-deep); }
.shelf-page .wr-summary { margin-top: 14px; }

.shelf-controls { margin: 4px 0 26px; }
.shelf-toggle { display: inline-flex; border: 1px solid var(--line-2); border-radius: 999px; overflow: hidden; background: var(--surface); }
.shelf-view-btn { border: none; background: none; padding: 9px 20px; color: var(--ink-2); font-family: var(--mono); font-size: 12px; letter-spacing: .04em; cursor: pointer; transition: background .18s var(--ease), color .18s var(--ease); }
.shelf-view-btn.active { background: var(--ink); color: var(--on-ink); }
.shelf-view-btn:not(.active):hover { color: var(--ink); }

.sc-match { font-family: var(--mono); font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }
.sc-match[data-tier="high"] { color: var(--sage-ink); }
.sc-match[data-tier="mid"]  { color: var(--gold-ink); }
.sc-match[data-tier="low"]  { color: var(--muted); }
.sc-price { font-family: var(--mono); font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.sc-link { border: none; background: none; padding: 0; cursor: pointer; color: var(--accent-deep); font: inherit; text-decoration: underline; text-underline-offset: 2px; text-decoration-color: var(--accent-soft); }
.sc-link:hover { text-decoration-color: currentColor; }

.shelf-remove {
  position: absolute; top: 12px; right: 12px; width: 28px; height: 28px; flex: none;
  display: grid; place-items: center; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line); background: var(--surface); color: var(--muted);
  transition: color .18s var(--ease), border-color .18s var(--ease), background .18s var(--ease);
}
.shelf-remove svg { width: 14px; height: 14px; }
.shelf-remove:hover { color: var(--accent-deep); border-color: var(--accent-soft); background: var(--accent-soft); }

/* Seamless crossfade when swapping between the two perspectives */
.shelf-grid { transition: opacity .2s var(--ease), transform .2s var(--ease); }
.shelf-grid.swapping { opacity: 0; transform: translateY(6px); }
@media (prefers-reduced-motion: reduce) { .shelf-grid { transition: none; } .shelf-grid.swapping { transform: none; } }

/* --- By clone --- */
.shelf-grid.by-clone { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.shelf-clone { position: relative; display: flex; gap: 16px; padding: 18px; padding-right: 46px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); transition: border-color .2s var(--ease), box-shadow .2s var(--ease); }
.shelf-clone:hover { border-color: var(--line-2); box-shadow: var(--shadow-sm); }
.sc-thumb { width: 72px; height: 94px; flex: none; border-radius: var(--r-sm); background: var(--paper-2); border: 1px solid var(--line); display: grid; place-items: center; overflow: hidden; }
.sc-thumb img { width: 100%; height: 100%; object-fit: contain; padding: 8px; mix-blend-mode: multiply; }
:root[data-theme="dark"] .sc-thumb img { mix-blend-mode: normal; }
.sc-thumb.noimg svg { width: 42px; height: auto; }
.sc-body { min-width: 0; flex: 1; display: flex; flex-direction: column; }
.sc-brand { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.sc-name { font-family: var(--display); font-size: 19px; font-weight: 600; color: var(--ink); margin-top: 3px; line-height: 1.15; }
.sc-orig { font-size: 13px; color: var(--ink-2); margin: 9px 0 0; }
.sc-meta { margin-top: auto; padding-top: 14px; display: flex; align-items: center; gap: 14px; }

/* --- By original --- */
.shelf-grid.by-original { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 16px; align-items: start; }
.shelf-orig { display: flex; gap: 18px; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); transition: border-color .2s var(--ease), box-shadow .2s var(--ease); }
.shelf-orig:hover { border-color: var(--line-2); box-shadow: var(--shadow-sm); }
.so-thumb { width: 84px; height: 108px; flex: none; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--paper-2); display: grid; place-items: center; overflow: hidden; cursor: pointer; padding: 0; }
.so-thumb img { width: 100%; height: 100%; object-fit: contain; padding: 9px; mix-blend-mode: multiply; }
:root[data-theme="dark"] .so-thumb img { mix-blend-mode: normal; }
.so-thumb.noimg svg { width: 46px; height: auto; }
.so-body { min-width: 0; flex: 1; }
.so-house { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.so-name { font-size: 21px; margin: 3px 0 0; }
.so-count { font-family: var(--mono); font-size: 11.5px; color: var(--accent-deep); margin: 8px 0 12px; }
.so-clones { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.so-clones li { position: relative; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 10px 34px 10px 0; border-top: 1px solid var(--line); }
.so-clones li:first-child { border-top: none; }
.so-cl-name { min-width: 0; font-size: 14px; color: var(--ink-2); }
.so-cl-name b { color: var(--ink); font-weight: 600; }
.so-cl-meta { flex: none; display: inline-flex; align-items: baseline; gap: 10px; }
.so-clones .shelf-remove { top: 6px; right: 0; width: 24px; height: 24px; }
.so-clones .shelf-remove svg { width: 12px; height: 12px; }

@media (max-width: 620px) {
  .shelf-grid.by-clone, .shelf-grid.by-original { grid-template-columns: 1fr; }
  .shelf-clone { padding-right: 44px; }
}

/* ===================== Community proposals page ===================== */
.proposals-page { padding: 40px 0 84px; animation: heroesIn .5s var(--ease); }
@media (prefers-reduced-motion: reduce) { .proposals-page { animation: none; } }
.proposals-page .back-link { display: inline-flex; align-items: center; gap: 7px; font-family: var(--mono); font-size: 12.5px; letter-spacing: .04em; color: var(--ink-2); cursor: pointer; }
.proposals-page .back-link svg { width: 16px; height: 16px; }
.proposals-page .back-link:hover { color: var(--accent-deep); }
.prop-form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; margin: 8px 0 28px; box-shadow: var(--shadow-sm); }
.proposal-card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding-bottom: 13px; margin-bottom: 15px; border-bottom: 1px solid var(--line); }
.proposal-card-head p { margin: 0; max-width: 48ch; color: var(--ink-2); font-size: 13px; text-align: right; }
.proposal-step { font: 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--accent-deep); white-space: nowrap; }
.prop-form-card h2 { font-size: 24px; margin-bottom: 12px; }
.pf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.pf-grid .pf-wide { grid-column: 1 / -1; }
@media (max-width: 620px) { .pf-grid { grid-template-columns: 1fr; } }
.pf-intro { font-size: 13.5px; color: var(--ink-2); margin: 0 0 16px; }
.pf-group { margin-bottom: 16px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r); background: var(--paper-2); }
.pf-glabel { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-deep); margin-bottom: 12px; }
.prop-form .sg-actions { margin-top: 14px; }
.research-backlog { position: relative; margin: 34px 0 42px; padding: 28px; border: 1px solid var(--line); border-radius: var(--r-lg); background: color-mix(in srgb, var(--surface) 88%, var(--accent-soft)); overflow: hidden; }
.backlog-head { align-items: flex-end; margin-bottom: 8px; }
.backlog-head .eyebrow { display: block; margin-bottom: 5px; }
.backlog-intro { position: relative; max-width: 70ch; color: var(--ink-2); font-size: 14px; line-height: 1.6; margin-bottom: 19px; }
.backlog-snapshot { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--r); background: color-mix(in srgb, var(--paper-2) 82%, var(--surface)); margin-bottom: 20px; overflow: hidden; }
.backlog-metric { min-width: 0; padding: 14px 15px; border-left: 1px solid var(--line); }
.backlog-metric:first-child { border-left: 0; }
.backlog-metric b { display: inline-block; margin-right: 6px; color: var(--accent-deep); font: 600 24px/1 var(--display); }
.backlog-metric span { font: 11px var(--mono); color: var(--ink-2); text-transform: uppercase; letter-spacing: .06em; }
.backlog-metric small { display: block; margin-top: 7px; color: var(--muted); font-size: 11.5px; line-height: 1.3; }
.backlog-controls { position: relative; display: grid; grid-template-columns: minmax(210px, .85fr) minmax(0, 2fr) minmax(144px, .5fr); gap: 14px; align-items: end; margin-bottom: 18px; }
.backlog-search { display: grid; gap: 6px; font-size: 11px; font-family: var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.backlog-search input { min-width: 0; height: 42px; padding: 0 13px; color: var(--ink); background: var(--paper); border: 1px solid var(--line-2); border-radius: 10px; font: 14px var(--sans); }
.backlog-search input:focus { outline: 2px solid color-mix(in srgb, var(--accent) 35%, transparent); border-color: var(--accent); }
.backlog-sort { display: grid; gap: 6px; color: var(--muted); font: 11px var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.backlog-sort select { height: 42px; min-width: 0; padding: 0 28px 0 12px; color: var(--ink); background: var(--paper); border: 1px solid var(--line-2); border-radius: 10px; font: 14px var(--sans); }
.backlog-sort select:focus { outline: 2px solid color-mix(in srgb, var(--accent) 35%, transparent); border-color: var(--accent); }
.backlog-filters { display: flex; flex-wrap: wrap; gap: 7px; justify-content: flex-end; }
.backlog-filters .wr-chip { min-height: 38px; }
.backlog-filters .wr-chip span { font-family: var(--mono); opacity: .7; margin-left: 3px; }
.backlog-list { display: grid; gap: 11px; }
.backlog-more { width: 100%; min-height: 44px; border: 1px dashed var(--line-2); border-radius: var(--r); color: var(--ink-2); background: var(--paper-2); font-weight: 600; cursor: pointer; }
.backlog-more:hover { color: var(--accent-deep); border-color: var(--accent); }
.backlog-more span { margin-left: 5px; color: var(--muted); font: 11px var(--mono); font-weight: 400; }
.backlog-card { padding: 17px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); transition: border-color .18s var(--ease), box-shadow .18s var(--ease); }
.backlog-card:hover { border-color: color-mix(in srgb, var(--accent) 42%, var(--line)); box-shadow: var(--shadow-sm); }
.backlog-card.has-bottle { display: block; }
.backlog-copy { min-width: 0; }
.backlog-bottle { min-width: 0; margin: 0 0 14px; display: flex; align-items: center; gap: 15px; min-height: 126px; padding: 8px 14px; border-radius: calc(var(--r) - 4px); background: var(--paper-2); border: 1px solid var(--line); }
.backlog-bottle img { display: block; width: 88px; height: 108px; object-fit: contain; mix-blend-mode: multiply; }
[data-theme="dark"] .backlog-bottle img { mix-blend-mode: normal; }
.backlog-bottle figcaption { color: var(--muted); font: 11px var(--mono); letter-spacing: .09em; text-transform: uppercase; }
.backlog-card-head { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; margin-bottom: 10px; }
.backlog-date, .backlog-wave { font: 11px var(--mono); color: var(--muted); letter-spacing: .02em; }
.backlog-wave { margin-left: auto; padding: 3px 7px; border-radius: 999px; background: var(--paper-2); }
.backlog-wave.current { color: var(--accent-deep); background: var(--accent-soft); }
.prop-stage.stage-edition { color: #7357A6; border-color: #7357A644; background: #7357A614; }
.prop-stage.stage-candidate { color: #8A6A20; border-color: #8A6A2044; background: #8A6A2014; }
.prop-stage.stage-availability { color: #39758A; border-color: #39758A44; background: #39758A14; }
.backlog-target { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: baseline; gap: 7px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.backlog-target span, .backlog-candidate span { font: 11px var(--mono); color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }
.backlog-target strong { min-width: 0; font: 500 18px/1.15 var(--display); }
.backlog-target small { color: var(--ink-2); font-size: 12px; white-space: nowrap; }
.backlog-candidate { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 9px; padding-top: 10px; }
.backlog-candidate b { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.backlog-why { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 22px; margin: 13px 0 0; }
.backlog-why div { min-width: 0; }
.backlog-why dt { font: 11px var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 4px; }
.backlog-why dd { margin: 0; color: var(--ink-2); font-size: 13px; line-height: 1.5; }
.backlog-sources { display: flex; align-items: center; flex-wrap: wrap; gap: 7px 13px; padding-top: 12px; margin-top: 12px; border-top: 1px solid var(--line); font-size: 11.5px; color: var(--muted); }
.backlog-sources a { display: inline-flex; align-items: center; gap: 5px; color: var(--ink-2); }
.backlog-sources svg { width: 12px; height: 12px; }
.backlog-sources.empty { font-style: italic; }
@media (max-width: 760px) {
  .research-backlog { padding: 22px 15px; margin-inline: -4px; }
  .research-backlog::before { right: 12px; top: 15px; font-size: 58px; }
  .backlog-snapshot { grid-template-columns: 1fr 1fr; }
  .backlog-metric:nth-child(3) { border-left: 0; border-top: 1px solid var(--line); }
  .backlog-metric:nth-child(4) { border-top: 1px solid var(--line); }
  .backlog-controls { grid-template-columns: 1fr; }
  .backlog-filters { justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 3px; scrollbar-width: thin; }
  .backlog-filters .wr-chip { flex: 0 0 auto; }
  .backlog-why { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .proposal-card-head { display: block; }
  .proposal-card-head p { margin-top: 7px; text-align: left; }
  .prop-form-card { padding: 19px 15px; margin-inline: -4px; }
  .backlog-wave { margin-left: 0; }
  .backlog-card { padding: 15px 14px; }
  .backlog-bottle { min-height: 112px; margin-bottom: 12px; padding: 7px 11px; }
  .backlog-bottle img { width: 76px; height: 94px; }
  .backlog-bottle figcaption { font-size: 11px; }
  .backlog-target { grid-template-columns: 1fr; gap: 3px; }
  .backlog-target small { white-space: normal; }
}
.prop-open-dupe { color: var(--accent-deep); text-decoration: underline; cursor: pointer; }
.prop-new { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-deep); background: var(--accent-soft); border-radius: 999px; padding: 2px 7px; vertical-align: middle; }

.prop-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 18px; }
.prop-legend-note { font-size: 13px; color: var(--muted); flex: 1 1 260px; min-width: 0; }
.prop-stage { display: inline-flex; align-items: center; font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; padding: 4px 9px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--ink-2); background: var(--paper-2); white-space: nowrap; }
.prop-stage.stage-ready { color: #2E7D57; border-color: #2E7D5744; background: #2E7D5714; }
.prop-stage.stage-verified { color: #1C8A82; border-color: #1C8A8244; background: #1C8A8214; }
.prop-stage.stage-contested { color: var(--accent-deep); border-color: color-mix(in srgb, var(--accent) 35%, transparent); background: var(--accent-soft); }

.prop-list-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.prop-list-head h2 { font-size: 20px; }
.prop-list { display: flex; flex-direction: column; gap: 12px; }
.prop-card { display: grid; grid-template-columns: 66px 1fr auto; gap: 16px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; }
.prop-conf { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; width: 66px; height: 66px; border-radius: 12px; border: 1px solid color-mix(in srgb, var(--cf) 35%, transparent); background: color-mix(in srgb, var(--cf) 10%, transparent); color: var(--cf); }
.prop-conf .sg-pct { font-family: var(--mono); font-weight: 700; font-size: 15px; }
.prop-conf .sg-band { font-size: 11px; letter-spacing: .04em; margin-top: 2px; }
.prop-main { min-width: 0; }
.prop-pair { font-size: 15.5px; line-height: 1.35; }
.prop-pair b { font-weight: 600; }
.prop-arrow { color: var(--muted); font-size: 13px; margin: 0 2px; }
.prop-orig { color: var(--ink-2); }
.prop-note { font-size: 13.5px; color: var(--ink-2); margin: 6px 0 0; }
.prop-basis { margin-top: 8px; }
.prop-basis .sg-ref { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ink-2); }
.prop-basis .sg-ref svg { width: 13px; height: 13px; }
.prop-grad { display: flex; align-items: center; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.prop-bar { flex: 1 1 120px; min-width: 90px; max-width: 220px; height: 6px; border-radius: 999px; background: var(--line); overflow: hidden; }
.prop-fill { display: block; height: 100%; background: var(--accent); border-radius: 999px; transition: width .3s var(--ease); }
.prop-net { font-family: var(--mono); font-size: 11.5px; color: var(--muted); }
.prop-vote { display: flex; flex-direction: column; gap: 8px; }
.prop-card .vote-btn { display: inline-flex; align-items: center; gap: 7px; }
.prop-loading { color: var(--muted); padding: 20px 4px; }
.prop-empty { text-align: center; padding: 40px 20px; border: 1px dashed var(--line-2); border-radius: var(--r); }
.prop-empty h3 { font-size: 19px; margin-bottom: 6px; }
.prop-empty p { color: var(--ink-2); font-size: 14.5px; max-width: 46ch; margin: 0 auto; }
@media (max-width: 620px) {
  .prop-card { grid-template-columns: 52px 1fr; gap: 12px 12px; }
  .prop-conf { width: 52px; height: 52px; }
  .prop-vote { grid-column: 1 / -1; flex-direction: row; }
  .prop-card .vote-btn { flex: 1; justify-content: center; }
}
.wr-save { color: var(--accent-deep); font-weight: 600; }
/* signature "throne" — the centrepiece of the profile */
.wr-throne { display: grid; grid-template-columns: auto 1fr; gap: 30px; align-items: center; background: var(--surface); border: 1px solid var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--shadow); border-radius: var(--r-lg); padding: 28px 32px; margin-bottom: 28px; cursor: pointer; transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.wr-throne-info, .wr-throne-dupe, .wr-throne-dupe-row { min-width: 0; }
.wr-throne:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.wr-throne:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.wr-well-lg { width: 132px; height: 172px; border-radius: 12px; }
.wr-well-lg .bottle { height: 78%; }
.wr-throne-eyebrow { display: inline-flex; align-items: center; gap: 7px; font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-deep); }
.wr-throne-eyebrow svg { width: 15px; height: 15px; }
.wr-throne-name { font-family: var(--display); font-size: clamp(26px, 3.4vw, 38px); font-weight: 600; letter-spacing: -.02em; line-height: 1.04; margin: 9px 0 7px; }
.wr-throne-house { font-size: 14px; color: var(--ink-2); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.wr-throne-hint { color: var(--muted); font-size: 14px; margin: 11px 0 16px; max-width: 48ch; }
.wr-throne-hint em { font-style: italic; color: var(--ink-2); }
.wr-throne-dupe { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 16px; margin-bottom: 16px; }
.wr-throne-dupe-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-family: var(--mono); margin-top: 3px; }
.wr-throne-dupe-row .wr-dupe-name { font-family: var(--sans); font-weight: 600; font-size: 14px; }
.wr-throne-dupe-row b { font-size: 17px; color: var(--ink); }
.wr-throne-dupe-row s { color: var(--muted); font-size: 12px; }
.wr-throne-cta { border: none; cursor: pointer; }
.wr-rest-head { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; }
@media (max-width: 600px) { .wr-throne { grid-template-columns: 1fr; gap: 18px; padding: 22px; } .wr-well-lg { width: 100px; height: 130px; } }

.wr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.wr-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; cursor: pointer; transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease); }
.wr-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); border-color: var(--line-2); }
.wr-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.wr-slot { padding: 16px 18px 12px; border-bottom: 1px solid var(--line); }
.wr-slot h3 { font-family: var(--display); font-size: 19px; font-weight: 600; }
.wr-slot p { font-size: 12.5px; color: var(--muted); margin: 3px 0 0; }
.wr-pick { display: flex; align-items: center; gap: 14px; padding: 16px 18px; }
.wr-well { position: relative; width: 72px; height: 94px; flex: none; border-radius: 9px; overflow: hidden; border: 1px solid var(--line); display: grid; place-items: center; background: linear-gradient(158deg, #ffffff 0%, var(--paper-2) 120%); }
.wr-well .cv-fallback { position: absolute; inset: 0; display: grid; place-items: center; }
.wr-well .bottle { height: 76%; width: auto; }
.wr-photo { position: relative; max-width: 80%; max-height: 84%; object-fit: contain; mix-blend-mode: multiply; }
.wr-pick-info { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.wr-house { font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.wr-name { font-family: var(--display); font-size: 18px; font-weight: 600; line-height: 1.15; }
.wr-fam { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-2); margin-top: 2px; }
.wr-fam .dot { width: 8px; height: 8px; border-radius: 50%; }
.wr-dupe { margin-top: auto; padding: 13px 18px; background: var(--paper-2); border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 3px; }
.wr-dupe-lab { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-deep); }
.wr-dupe-name { font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wr-dupe-meta { display: flex; align-items: center; gap: 10px; font-family: var(--mono); margin-top: 1px; }
.wr-dupe-meta b { font-size: 16px; color: var(--ink); }
.wr-dupe-meta s { color: var(--muted); font-size: 12px; }
.wr-match { font-size: 11px; font-weight: 600; color: var(--accent-deep); }
.wr-card.empty { cursor: default; }
.wr-card.empty:hover { transform: none; box-shadow: none; border-color: var(--line); }
.wr-none { padding: 22px 18px; color: var(--muted); font-size: 13px; font-style: italic; }
:root[data-theme="dark"] .wr-well { background: linear-gradient(158deg, #ffffff 0%, #ECE7DD 120%); }
@media (max-width: 560px) { .wr-grid { grid-template-columns: 1fr; } .wr-controls { padding: 20px; } }

/* ============== Search field inside the Refine panel ================== */
.filter-search { display: flex; align-items: center; gap: 9px; height: 42px; padding: 0 14px; margin-bottom: 14px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--paper-2); transition: border-color .2s var(--ease), box-shadow .2s var(--ease); }
.filter-search svg { flex: none; width: 16px; height: 16px; color: var(--muted); }
.filter-search input { flex: 1; min-width: 0; border: none; background: none; outline: none; font-family: var(--sans); font-size: 13.5px; color: var(--ink); }
.filter-search input::placeholder { color: var(--muted); }
.filter-search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }

/* ===================== Developers / API docs page ===================== */
.developers-page, .admin-page { padding: 40px 0 84px; animation: heroesIn .5s var(--ease); }
@media (prefers-reduced-motion: reduce) { .developers-page, .admin-page { animation: none; } }
.developers-page .back-link, .admin-page .back-link { display: inline-flex; align-items: center; gap: 7px; font-family: var(--mono); font-size: 12.5px; letter-spacing: .04em; color: var(--ink-2); cursor: pointer; }
.developers-page .back-link svg, .admin-page .back-link svg { width: 16px; height: 16px; }
.developers-page .back-link:hover, .admin-page .back-link:hover { color: var(--accent-deep); }

.api-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin: 6px 0 34px; }
.api-meta-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; }
.api-meta-card span { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.api-meta-card code, .api-meta-card b { font-family: var(--mono); font-size: 13px; color: var(--ink); word-break: break-all; }

.api-section { margin: 0 0 34px; max-width: 760px; }
.api-section h2 { font-size: 22px; margin-bottom: 10px; }
.api-section p { color: var(--ink-2); font-size: 15px; line-height: 1.6; }
.api-doc code, .api-section code, .api-fields code, .api-params code {
  font-family: var(--mono); font-size: .86em; background: var(--paper-2);
  border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; color: var(--accent-deep); white-space: nowrap;
}

.api-endpoint { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px 26px; margin: 0 0 18px; }
.api-ep-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.api-method { font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: .08em; color: #fff; background: var(--sage-deep); padding: 4px 9px; border-radius: 6px; }
.api-ep-head code { font-family: var(--mono); font-size: 15px; color: var(--ink); background: none; border: none; padding: 0; white-space: normal; }
.api-endpoint > p { color: var(--ink-2); font-size: 14.5px; margin: 0 0 16px; }

.api-params, .api-fields { width: 100%; border-collapse: collapse; margin: 0 0 4px; }
.api-params th, .api-fields th { text-align: left; vertical-align: top; font-family: var(--mono); font-size: 12.5px; color: var(--ink); font-weight: 600; padding: 8px 16px 8px 0; white-space: nowrap; width: 1%; }
.api-params td, .api-fields td { vertical-align: top; font-size: 13.5px; color: var(--ink-2); padding: 8px 0; border-top: 1px solid var(--line); line-height: 1.5; }
.api-params tr:first-child td, .api-params tr:first-child th { border-top: none; }
.api-fields td { border-top: 1px solid var(--line); }
.api-fields tr:first-child th, .api-fields tr:first-child td { border-top: none; }

.api-example { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
.api-code { min-width: 0; }
.api-code span { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.api-code pre, .api-try-out {
  margin: 0; background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--r);
  padding: 14px 16px; overflow-x: auto; font-family: var(--mono); font-size: 12px; line-height: 1.55; color: var(--ink);
  white-space: pre;
}
:root[data-theme="dark"] .api-code pre, :root[data-theme="dark"] .api-try-out { background: #14120E; }

.api-try { margin-top: 40px; max-width: 760px; }
.api-try h2 { font-size: 22px; margin-bottom: 8px; }
.api-try > p { color: var(--ink-2); font-size: 15px; margin: 0 0 16px; }
.api-try-form { display: flex; flex-direction: column; gap: 10px; }
.api-try-row { display: flex; gap: 10px; }
.api-try-row input { flex: 1; min-width: 0; }
.api-try-form input {
  padding: 11px 14px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--surface);
  font-family: var(--sans); font-size: 14px; color: var(--ink); outline: none;
}
.api-try-form input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.api-try-form .btn { align-self: flex-start; margin-top: 2px; }
.api-try-out { margin-top: 16px; }

/* ============================ Admin page ============================ */
.admin-field { display: block; max-width: 460px; margin: 0 0 18px; }
.admin-field span { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 7px; }
.admin-field input {
  width: 100%; padding: 11px 14px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--surface);
  font-family: var(--mono); font-size: 14px; color: var(--ink); outline: none;
}
.admin-field input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.admin-gate { border-bottom: 1px solid var(--line); padding-bottom: 22px; }
.admin-create { display: flex; align-items: flex-end; gap: 14px; flex-wrap: wrap; margin-top: 22px; }
.admin-create .admin-field { margin-bottom: 0; flex: 1; min-width: 220px; }
.admin-create .btn { margin: 0; }
.admin-create-out { margin: 16px 0 0; font-size: 14px; color: var(--ink-2); }
.admin-newkey { background: var(--accent-soft); border: 1px solid var(--accent); border-radius: var(--r); padding: 14px 16px; }
.admin-newkey b { display: block; color: var(--accent-deep); font-size: 13px; margin-bottom: 8px; }
.admin-key-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.admin-key-row code { font-family: var(--mono); font-size: 13px; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 6px 10px; word-break: break-all; }
.admin-copy { font-family: var(--mono); font-size: 12px; padding: 6px 12px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface); color: var(--ink); cursor: pointer; }
.admin-copy:hover { border-color: var(--ink-2); }

.admin-list-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 40px 0 16px; }
.admin-list-head h2 { font-size: 22px; }
.admin-list-head .btn { margin: 0; }
.admin-hint { color: var(--muted); font-size: 14px; }
.admin-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); }
.admin-table { width: 100%; border-collapse: collapse; min-width: 560px; }
.admin-table th { text-align: left; font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 500; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.admin-table td { padding: 13px 16px; font-size: 13.5px; color: var(--ink-2); border-bottom: 1px solid var(--line); }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr.revoked { opacity: .5; }
.admin-badge { font-family: var(--mono); font-size: 11px; padding: 3px 9px; border-radius: 999px; }
.admin-badge.active { background: var(--accent-soft); color: var(--accent-deep); }
.admin-badge.revoked { background: var(--line); color: var(--muted); }
.admin-revoke { font-family: var(--mono); font-size: 12px; color: var(--accent-deep); background: none; border: 1px solid var(--line-2); border-radius: 999px; padding: 5px 12px; cursor: pointer; }
.admin-revoke:hover { border-color: var(--accent); background: var(--accent-soft); }
.admin-revoke:disabled { opacity: .5; cursor: default; }

@media (max-width: 620px) {
  .api-example { grid-template-columns: 1fr; }
  .api-try-row { flex-direction: column; }
}

/* ===================== Proposals page — tabs + suggest drawer ===================== */
.prop-hero-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 22px; }
.prop-hero-actions .btn { margin: 0; }
.prop-hero-note { font-size: 13px; color: var(--muted); max-width: 42ch; }

.prop-tabs { display: inline-flex; gap: 4px; padding: 4px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface); margin: 4px 0 22px; }
.prop-tab { display: inline-flex; align-items: center; gap: 8px; border: none; background: none; cursor: pointer; padding: 9px 18px; border-radius: 999px; font-family: var(--sans); font-size: 14px; font-weight: 500; color: var(--ink-2); transition: background .18s var(--ease), color .18s var(--ease); }
.prop-tab:hover { color: var(--ink); }
.prop-tab.active { background: var(--ink); color: var(--on-ink); }
.prop-tab-count { font-family: var(--mono); font-size: 11px; min-width: 18px; height: 18px; padding: 0 5px; display: inline-grid; place-items: center; border-radius: 999px; background: var(--line); color: var(--ink-2); }
.prop-tab.active .prop-tab-count { background: color-mix(in srgb, var(--on-ink) 22%, transparent); color: var(--on-ink); }
.prop-tab-count:empty { display: none; }

.prop-panel { animation: heroesIn .3s var(--ease); }
@media (prefers-reduced-motion: reduce) { .prop-panel { animation: none; } }
.backlog-summary { margin: 2px 0 16px; }

/* Suggest-a-pairing drawer (inherits .lead-overlay / .lead-drawer) */
.propose-drawer .lead-drawer-body { padding-top: 20px; }
.propose-drawer h2 { font-size: clamp(28px, 8vw, 40px); margin-bottom: 18px; }
.propose-drawer .pf-grid { grid-template-columns: 1fr; }

/* =========================================================================
   Touch-target hardening — comfortable 44px hit areas on coarse pointers
   (desktop density is untouched)
   ========================================================================= */
@media (pointer: coarse) {
  .theme-toggle, .nav-toggle, .ov-close, .lead-close, .save-btn {
    min-width: 44px; min-height: 44px;
  }
  .nav a, .mobile-menu a, .qn-item, .vote-btn, .shelf-view-btn,
  .pf-save, .btn, .nav-finder, .prop-tab, .tab, .chip {
    min-height: 44px;
    display: inline-flex; align-items: center; justify-content: center;
  }
  /* tiny inline tooltip trigger: keep it visually small, expand the tap area */
  .info-dot { position: relative; }
  .info-dot::after {
    content: ""; position: absolute; top: 50%; left: 50%;
    width: 44px; height: 44px; transform: translate(-50%, -50%);
  }
}

/* Price honesty note under clone lists */
.price-note { display: flex; align-items: center; gap: 7px; margin: 16px 2px 0; font-size: 12.5px; color: var(--muted); }
.price-note svg { width: 14px; height: 14px; flex: none; }

/* Index pagination */
.index-more { display: flex; justify-content: center; margin: 34px 0 8px; }
.index-more .btn { min-width: 240px; }

/* Sync-across-devices dialog */
.sync-panel { max-width: 460px; margin: auto; padding: 30px 30px 26px; }
.sync-panel h2 { font-size: 24px; margin-bottom: 6px; }
.sync-lede { color: var(--ink-2); font-size: 14.5px; margin: 0 0 20px; }
.sync-block { border-top: 1px solid var(--line); padding-top: 18px; margin-top: 18px; }
.sync-block:first-of-type { border-top: none; padding-top: 0; margin-top: 0; }
.sync-block h3 { font-size: 12px; font-family: var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.sync-code-row { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
#sync-code { font-family: var(--mono); font-size: 22px; font-weight: 600; letter-spacing: .06em; color: var(--ink); background: var(--paper-2); border: 1px solid var(--line-2); border-radius: 10px; padding: 8px 14px; }
.sync-restore-row { display: flex; gap: 10px; }
#sync-input { flex: 1; height: 46px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--surface); padding: 0 14px; font-family: var(--mono); font-size: 16px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); }
#sync-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.sync-status { font-size: 13.5px; color: var(--ink-2); margin: 16px 0 0; min-height: 1.2em; }

/* First-run orientation hint */
.hero-hint { display: block; text-align: center; margin: 14px auto 0; max-width: 560px; font-size: 13.5px; line-height: 1.5; color: var(--muted); }
.hero-hint b { color: var(--accent-deep); font-weight: 600; white-space: nowrap; }
.hero-hint-x { display: inline-flex; align-items: center; justify-content: center; vertical-align: middle; margin-left: 8px; width: 20px; height: 20px; border: none; background: transparent; border-radius: 50%; color: var(--muted); font-size: 11px; line-height: 1; cursor: pointer; transition: background .15s, color .15s; }
.hero-hint-x:hover { background: rgba(0,0,0,.06); color: var(--ink); }
:root[data-theme="dark"] .hero-hint-x:hover { background: rgba(255,255,255,.1); }

/* Scent overlap ribbons (opening · heart · dry-down) */
:root { --phase-o: #C0674A; --phase-c: #6E8A9C; --phase-s: #5A4640; --phase-blend: multiply; --phase-alpha: .6; }
:root[data-theme="dark"] { --phase-o: #D0694B; --phase-c: #5E88A3; --phase-s: #E9D6CC; --phase-blend: screen; --phase-alpha: .85; }
.phase { margin: 12px 0 4px; padding: 12px 14px 8px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); max-width: 520px; }
.phase-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.phase-title { font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.phase-story, .phase-st small { opacity: 0; transition: opacity .2s ease; }
.phase:hover .phase-story, .phase:hover .phase-st small,
.phase.open .phase-story, .phase.open .phase-st small,
.phase:focus-within .phase-story, .phase:focus-within .phase-st small { opacity: 1; }
.phase-story { font-size: 12px; font-weight: 600; color: var(--ink-2); }
.phase-svg { display: block; width: 100%; height: 92px; margin-top: 4px; overflow: visible; }
.phase-band { mix-blend-mode: var(--phase-blend); opacity: var(--phase-alpha); }
.phase-stages { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0 -6px; }
.phase-st { appearance: none; border: 0; background: none; font: inherit; color: var(--ink); cursor: pointer; padding: 5px 6px; border-radius: 10px; text-align: center; }
.phase-st:first-child { text-align: left; } .phase-st:last-child { text-align: right; }
.phase-st b { display: block; font-size: 13px; font-weight: 600; }
.phase-st small { display: block; font-size: 12px; color: var(--muted); min-height: 1.3em; }
.phase-st:hover, .phase-st[aria-pressed="true"] { background: var(--paper-2); }
.phase-st:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.phase-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.phase-notes { max-height: 0; overflow: hidden; opacity: 0; transition: max-height .25s ease, opacity .2s ease, margin .25s ease; }
.phase-notes.on { max-height: 200px; opacity: 1; margin-top: 8px; }
.pchip { font-size: 12px; padding: 3px 10px; border-radius: 999px; border: 1.5px solid transparent; line-height: 1.4; }
.pchip em { font-style: normal; opacity: .75; font-size: 11px; margin-left: 2px; }
.pchip.sh { background: var(--phase-s); color: var(--paper); }
.pchip.oo { border-color: var(--phase-o); color: var(--ink); }
.pchip.co { border-color: var(--phase-c); color: var(--ink); }
.phase-key { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 11.5px; color: var(--muted); margin-top: 8px; }
.phase-key i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 5px; }
.phase-key .k-o { background: var(--phase-o); } .phase-key .k-c { background: var(--phase-c); } .phase-key .k-s { background: var(--phase-s); }
@media (hover: none) { .phase-story { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .phase-story, .phase-st small, .phase-notes { transition: none; } }
.phase { container-type: inline-size; }
.phase-st b, .phase-st small { white-space: nowrap; }
@container (max-width: 300px) {
  .phase-st { padding: 4px 4px; }
  .phase-st b { font-size: 12px; }
  .phase-st small { font-size: 10.5px; }
}

/* ===== Clone card v3 — photo column + question-ordered content ===== */
.dupe-list { gap: 20px; container-type: inline-size; }
.dupe-row.cc { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 36px; padding: 28px; align-items: start; }
.dupe-row.cc.best { box-shadow: none; border-color: var(--accent); }
.cc-photo { position: sticky; top: 88px; aspect-ratio: 4 / 5; border-radius: 18px; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; overflow: hidden; }
.cc-photo img { width: 100%; height: 100%; object-fit: contain; padding: 14px; mix-blend-mode: multiply; }
.cc-photo.noimg { background: var(--paper-2); }
.cc-photo > svg { width: 55%; height: auto; }
:root[data-theme="dark"] .cc-photo { background: #f7f5f1; }
.cc-rank { position: absolute; top: 12px; left: 12px; z-index: 1; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: rgba(255,255,255,.92); color: #3F3B35; font-size: 12.5px; font-weight: 700; box-shadow: 0 1px 4px rgba(0,0,0,.12); }
.dupe-row.cc.best .cc-rank { background: var(--accent); color: #fff; }
.cc-body { min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.cc-brand { font-size: 13px; font-weight: 500; color: var(--muted); }
.cc-name { font-family: var(--display); font-size: 26px; line-height: 1.15; font-weight: 600; letter-spacing: -.01em; margin: 4px 0 12px; color: var(--ink); text-wrap: balance; }
.cc-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.cc-accolade { font-size: 13px; font-weight: 500; color: var(--gold-ink, var(--ink-2)); }
.cc-accolade::before { content: "★"; margin-right: 5px; font-size: 11px; }
.cc-decide { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto; align-items: center; gap: 24px; padding: 16px 18px; border-radius: 16px; background: var(--paper-2); }
.cc-match .matchbar { display: grid; grid-template-columns: auto 1fr; align-items: baseline; column-gap: 10px; }
.cc-match .mpct { font-family: var(--sans); font-size: 28px; font-weight: 700; letter-spacing: -.02em; line-height: 1; }
.cc-match-lab { font-size: 12.5px; color: var(--muted); line-height: 1.3; }
.cc-match .track { grid-column: 1 / -1; margin-top: 10px; height: 5px; background: var(--line); }
.cc-price { display: flex; flex-direction: column; gap: 3px; }
.cc-now { font-size: 22px; font-weight: 600; color: var(--ink); line-height: 1; }
.cc-was { font-size: 12.5px; color: var(--muted); }
.cc-shop { justify-content: center; border: none; white-space: nowrap; padding-inline: 22px; }
.cc-verdict { max-width: 66ch; }
.cc-tier { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
.cc-tier::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.cc-tier[data-confidence="tested"]::before, .cc-tier[data-confidence="high"]::before { background: #4E9A6C; }
.cc-tier[data-confidence="adjacent"]::before { background: #858A65; }
.cc-tier[data-confidence="provisional"]::before { background: #C58A2A; }
.cc-verdict p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--ink-2); }
.dupe-row.cc .phase { margin: 0; background: transparent; border: 0; padding: 0; max-width: 560px; }
.cc-evidence { border-top: 1px solid var(--line); padding-top: 14px; }
.cc-evidence summary { list-style: none; cursor: pointer; display: flex; align-items: baseline; gap: 12px; font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.cc-evidence summary::-webkit-details-marker { display: none; }
.cc-evidence summary small { font-weight: 400; color: var(--muted); font-size: 13px; }
.cc-evidence summary i { margin-left: auto; width: 8px; height: 8px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: rotate(45deg); transition: transform .2s; align-self: center; }
.cc-evidence[open] summary i { transform: rotate(-135deg); }
.cc-evidence summary:hover span { color: var(--ink); }
.cc-evidence-body { padding-top: 14px; }
.cc-evidence-body .evidence-summary { margin-top: 0; }
.cc-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px 24px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 16px; margin-top: -8px; }
.cc-facts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; font-size: 13px; color: var(--muted); }
.cc-facts b { color: var(--ink-2); font-weight: 600; }
.cc-facts .dm-rating { display: inline-flex; align-items: center; gap: 5px; }
.cc-retailer { display: inline-flex; align-items: center; gap: 5px; }
.cc-actions { display: flex; align-items: center; gap: 10px 16px; flex-wrap: wrap; }
.cc-actions .own-btn { width: auto; flex: none; }
.cc-actions .match-vote { display: inline-flex; align-items: center; gap: 8px; }
.cc-actions .mv-total { font-size: 12.5px; color: var(--muted); }
:root[data-theme="dark"] { --phase-blend: normal; --phase-alpha: .7; --phase-s: #8A6A5E; }
:root[data-theme="dark"] .pchip.sh { color: #fff; }

/* medium: narrower photo, decision strip wraps */
@container (max-width: 760px) {
  .dupe-row.cc { grid-template-columns: 150px minmax(0, 1fr); gap: 24px; }
  .cc-name { font-size: 22px; }
  .cc-decide { grid-template-columns: 1fr auto; gap: 14px 20px; }
  .cc-price { align-items: flex-end; text-align: right; }
  .cc-shop { grid-column: 1 / -1; width: 100%; }
}
/* phone: photo on top */
@container (max-width: 480px) {
  .dupe-row.cc { grid-template-columns: 1fr; gap: 18px; }
  .cc-photo { position: relative; top: auto; aspect-ratio: auto; height: 240px; }
  .cc-body { gap: 18px; }
  .cc-name { font-size: 21px; margin: 2px 0 10px; }
  .cc-decide { padding: 14px; }
  .cc-foot { flex-direction: column; align-items: flex-start; margin-top: 0; }
  .cc-actions { width: 100%; justify-content: space-between; }
  .cc-evidence summary { flex-wrap: wrap; row-gap: 2px; }
  .cc-evidence summary small { order: 3; flex-basis: 100%; }
}
@media (max-width: 640px) { .dupe-row.cc { padding: 18px; } }

.phase-guides line { stroke: var(--line); stroke-width: 1; stroke-dasharray: 2 4; }
.dupe-row.cc .phase-stages { margin-top: 6px; }

.phase[data-stages="2"] .phase-stages { grid-template-columns: 1fr 1fr; }
.phase-say { margin: 0 0 10px; font-size: 13.5px; line-height: 1.55; color: var(--ink-2); max-width: 60ch; }
.phase-notes-lab { font-size: 11.5px; font-weight: 600; color: var(--muted); margin: 2px 0 6px; }
.phase-src { margin-top: 10px; font-size: 12px; color: var(--muted); }
.phase-src a { color: var(--accent-deep); text-decoration: underline; text-underline-offset: 2px; }
.phase-notes.on { max-height: 360px; }
