/* Operation Curly: blush, cocoa and one loud headline face. */
:root {
  --blush: #FDF1F4;
  --blush-2: #F8E1E8;
  --white: #FFFFFF;
  --cocoa: #2E1A14;
  --cocoa-2: rgba(46, 26, 20, 0.62);
  --line: rgba(46, 26, 20, 0.1);
  --pink: #FF6F9F;
  --pink-soft: #FFD3E1;
  --safe: #BDEFD5;
  --safe-ink: #13623E;
  --bad: #FF5A47;
  --bad-ink: #B2251A;
  --warn: #FFD166;

  --display: 'Shrikhand', 'Georgia', serif;
  --sans: 'Onest', system-ui, -apple-system, sans-serif;

  --t-xs: 0.8125rem;
  --t-sm: 0.9375rem;
  --t-md: 1.0625rem;
  --t-lg: 1.375rem;
  --t-xl: clamp(2.4rem, 11vw, 4.75rem);
  --t-verdict: clamp(3.4rem, 17vw, 5.5rem);

  --ease: cubic-bezier(.2, .9, .25, 1.05);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 400 var(--t-md)/1.5 var(--sans);
  color: var(--cocoa);
  background: var(--blush);
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-underline-offset: 3px; }
:focus-visible { outline: 2.5px solid var(--pink); outline-offset: 3px; border-radius: 10px; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
svg { display: block; }
.curl path { fill: none; stroke: currentColor; stroke-width: 7; stroke-linecap: round; }

/* ---------- header ---------- */
.bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  max-width: 1120px; margin: 0 auto;
  padding: max(14px, env(safe-area-inset-top)) 20px 6px;
}
.logo { display: inline-flex; text-decoration: none; color: var(--cocoa); }
.wm {
  display: inline-flex; align-items: baseline; white-space: nowrap;
  font: 400 1.75rem/1 var(--display); letter-spacing: 0;
}
.wm:has(.wm-op) { position: relative; padding-top: .52em; font-size: 2.05rem; }
/* "operation" is a pink tape label stuck across the top of "cur(l)y" */
.wm-op {
  position: absolute; left: -.08em; top: .02em; z-index: 1;
  font: 400 .4em/1 var(--display); letter-spacing: .02em; color: #fff;
  background: var(--pink); padding: .16em .42em .2em; border-radius: .18em;
  transform: rotate(-5deg); transform-origin: 0 100%;
  box-shadow: 0 .06em 0 rgba(46, 26, 20, .18);
}
.wm-l {
  height: 1em; width: .3em; overflow: visible; margin: 0 .1em 0 .03em;
  transform: skewX(-12deg); transform-origin: 50% 100%;
}
.wm-l path {
  fill: none; stroke: var(--cocoa); stroke-width: 6.5; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 1; stroke-dashoffset: 0;
  animation: curl-draw 1.4s cubic-bezier(.55, 0, .3, 1) .2s both;
}
@keyframes curl-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
.logo:hover .wm-l, .logo:focus-visible .wm-l { animation: curl-boing .9s cubic-bezier(.3, .7, .3, 1.2); }
@keyframes curl-boing {
  0%, 100% { transform: skewX(-12deg); }
  25% { transform: skewX(-20deg); }
  50% { transform: skewX(-5deg); }
  75% { transform: skewX(-14deg); }
}

.region-btn {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  border: 0; background: var(--white); border-radius: 999px;
  padding: 8px 12px 8px 10px; font-weight: 600; font-size: var(--t-sm);
}
.pin { width: 13px; height: 16px; }
.pin path, .pin circle { fill: none; stroke: var(--pink); stroke-width: 1.8; }
.chev { width: 11px; height: 8px; }
.chev path { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- page ---------- */
.page { max-width: 1120px; margin: 0 auto; padding: 0 20px 56px; display: grid; gap: 28px; }
.hero { padding-top: 18px; min-width: 0; display: grid; gap: 24px; }
.hero-text { min-width: 0; }
@media (min-width: 920px) {
  .hero { grid-template-columns: minmax(0, 1fr) 400px; align-items: center; padding-top: 48px; gap: 48px; }
}
.hero h1 {
  font: 400 var(--t-xl)/0.98 var(--display); letter-spacing: -0.01em; margin: 0 0 12px;
}
.lede { margin: 0 0 22px; color: var(--cocoa-2); max-width: 36ch; }
@media (min-width: 920px) { .lede { font-size: var(--t-lg); line-height: 1.4; } }

.suggest { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 14px 0 0; font-size: var(--t-sm); }
.suggest > span { color: var(--cocoa-2); margin-right: 2px; }
.suggest button {
  border: 0; cursor: pointer; border-radius: 999px; padding: 6px 12px; font-weight: 500; font-size: var(--t-sm);
  background: var(--blush-2); color: var(--cocoa);
}
.suggest button:hover { background: var(--pink-soft); }

.hero-art { display: none; position: relative; padding-bottom: 8px; }
@media (min-width: 920px) { .hero-art { display: grid; justify-items: center; align-content: start; gap: 22px; } }
.deck { position: relative; isolation: isolate; width: 270px; height: 340px; margin-bottom: 34px; }
.scard {
  position: absolute; inset: 0; display: grid; grid-template-rows: 1fr auto; gap: 12px; padding: 22px 22px 20px;
  background: var(--white); border-radius: 28px; box-shadow: 0 24px 50px -24px rgba(46, 26, 20, .35);
  cursor: pointer; transition: transform .5s cubic-bezier(.3, .7, .3, 1), opacity .5s;
  transform-origin: 50% 110%;
}
.scard .art { display: grid; place-items: center; border-radius: 20px; background: var(--blush); min-height: 0; }
.scard .art img { height: 200px; width: auto; }
.scard .brand { margin: 0; font-size: .8rem; font-weight: 600; letter-spacing: .02em; color: #8a7069; }
.scard .name { margin: 2px 0 0; font-weight: 700; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.scard.p1 { transform: translateY(16px) scale(.94); }
.scard.p2 { transform: translateY(32px) scale(.88); opacity: .7; }
.scard.p1, .scard.p2 { pointer-events: none; }
.scard.out-yes { transform: translateX(130%) rotate(16deg); opacity: 0; transition-duration: .65s; }
.scard.out-no { transform: translateX(-130%) rotate(-16deg); opacity: 0; transition-duration: .65s; }
.stamp {
  position: absolute; top: 34px; padding: 6px 12px; border: 3px solid; border-radius: 12px;
  font: 400 1.35rem/1 var(--display); background: rgba(255, 255, 255, .85);
  opacity: 0; transform: scale(1.4); transition: opacity .2s, transform .25s cubic-bezier(.3, .7, .3, 1.4);
}
.stamp.yes { left: 22px; color: #1f8a5b; border-color: #1f8a5b; rotate: -14deg; }
.stamp.no { right: 22px; color: var(--bad); border-color: var(--bad); rotate: 14deg; }
.scard.show-yes .stamp.yes, .scard.show-no .stamp.no { opacity: 1; transform: scale(1); }
.deck-buttons { display: flex; gap: 22px; }
.db { border: 0; padding: 0; cursor: pointer; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: var(--white); box-shadow: 0 10px 22px -12px rgba(46, 26, 20, .4); transition: transform .2s, background .2s; }
.db svg { width: 22px; height: 22px; fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.db.no svg { stroke: var(--bad); }
.db.yes svg { stroke: #1f8a5b; }
.db:hover { transform: scale(1.06); }
.db.hit { transform: scale(1.15); }
.db.lean { transform: scale(1.1); }
.db:focus-visible { outline: 2px solid var(--cocoa); outline-offset: 3px; }
.deck-hint { margin: -6px 0 0; min-height: 1.4em; font-size: var(--t-sm); color: var(--cocoa-2); text-align: center; }
.deck-hint b { color: var(--cocoa); }
.scard.dragging { transition: none; cursor: grabbing; }
.deck .scard:first-child { touch-action: none; }
.db.no.hit { background: #FFE3DF; }
.db.yes.hit { background: var(--safe); }

.checks {
  margin: 0; padding: 16px 20px; border-radius: 22px; background: var(--white);
  font-size: var(--t-sm); line-height: 1.55; color: var(--cocoa-2);
}
.checks strong { color: var(--cocoa); font-weight: 600; }
.checks .text-btn { font-size: var(--t-sm); color: var(--cocoa); }

.types { min-width: 0; }
.types h2, .history h2 { font-size: var(--t-md); margin-bottom: 12px; }
.row-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.row-head h2 { margin: 0; }
.arrows { display: none; gap: 6px; }
@media (hover: hover) and (min-width: 700px) { .arrows { display: flex; } }
.arrows .icon-btn { background: var(--white); width: 36px; height: 36px; }
.arrows path { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.type-row {
  list-style: none; margin: 0 -20px; padding: 2px 20px 8px; display: flex; gap: 10px;
  overflow-x: auto; scrollbar-width: none;
  overscroll-behavior-x: contain;
}
.type-row::-webkit-scrollbar { display: none; }
@media (min-width: 1160px) { .type-row { margin: 0; padding-left: 0; padding-right: 0; } }
.type-row li { flex: 0 0 116px; }
@media (min-width: 920px) { .type-row li { flex-basis: 140px; } }
.type-row button {
  width: 100%; height: 100%; display: grid; justify-items: center; align-content: start; gap: 6px; cursor: pointer; border: 0;
  background: var(--white); border-radius: 22px; padding: 12px 8px 14px; font-weight: 600; font-size: var(--t-sm);
  line-height: 1.2; text-align: center; transition: background .15s, transform .2s var(--ease);
}
.type-row button:hover { transform: translateY(-2px); }
.type-row button[aria-pressed='true'] { box-shadow: inset 0 0 0 3px var(--cocoa); background: var(--white); color: var(--cocoa); }
.type-row img { width: 64px; height: 80px; object-fit: contain; }

.catalog-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.catalog-head h2 { font: 400 clamp(2rem, 8vw, 3rem)/1 var(--display); margin: 0; letter-spacing: 0; }
.catalog-head .count { margin: 0; }
.catalog .chip-row { margin-top: 14px; margin-bottom: 20px; }

.search-wrap { display: flex; gap: 8px; max-width: 760px; }
.search-wrap .search { flex: 1; min-width: 0; }
.search.big input { padding-top: 18px; padding-bottom: 18px; font-size: 1.125rem; box-shadow: 0 10px 30px -18px rgba(46, 26, 20, .35); }
.scan-btn {
  flex: none; display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  border: 0; border-radius: 999px; padding: 0 20px 0 16px; min-height: 58px;
  background: var(--cocoa); color: var(--white); font-weight: 600;
}
.scan-btn svg { width: 22px; height: 22px; }
.scan-btn path { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 420px) { .scan-btn span { display: none; } .scan-btn { padding: 0 17px; } }

.history { min-width: 0; }
.catalog { min-width: 0; }
.count { color: var(--cocoa-2); font-size: var(--t-sm); }
.empty-state {
  display: grid; justify-items: start; gap: 10px; padding: 26px 24px; border-radius: 28px; background: var(--white);
  max-width: 560px;
}
.empty-title { margin: 0; font: 400 1.9rem/1 var(--display); }
.empty-state .empty { margin: 0 0 6px; }

/* ---------- scanner overlay (full-bleed camera, controls float on top) ---------- */
.scan-overlay {
  position: fixed; inset: 0; z-index: 9; background: #1C0F0B; color: var(--white);
  display: grid; grid-template-rows: auto 1fr auto; overflow: hidden;
  animation: fade .25s ease;
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.scan-overlay .viewfinder { position: absolute; inset: 0; z-index: 0; }
.viewfinder { overflow: hidden; isolation: isolate; background: #1C0F0B; color: var(--white); }
.viewfinder video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.scan-top, .scan-bottom { position: relative; z-index: 1; width: 100%; max-width: 560px; margin: 0 auto; }
.scan-top {
  display: grid; grid-template-columns: 48px 1fr 48px; align-items: center;
  padding: max(14px, env(safe-area-inset-top)) 16px 10px;
}
.scan-top h2 { margin: 0; text-align: center; font-size: var(--t-md); text-shadow: 0 1px 12px rgba(0, 0, 0, .5); }
.scan-icon {
  width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center;
  background: rgba(28, 15, 11, .45); color: var(--white); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  transition: background .2s, transform .12s;
}
.scan-icon:active { transform: scale(.94); }
.scan-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
#torch[aria-pressed='true'] { background: var(--warn); color: var(--cocoa); }
#torch:not([hidden]) + .scan-icon-spacer { display: none; }
.scan-icon:focus-visible, .scan-side:focus-within .scan-icon, .modes button:focus-visible, .shutter:focus-visible { outline: 2.5px solid var(--pink); outline-offset: 3px; }

.scan-bottom {
  grid-row: 3; display: grid; gap: 14px; justify-items: center;
  padding: 18px 16px max(22px, env(safe-area-inset-bottom));
  background: linear-gradient(to top, rgba(28, 15, 11, .85) 40%, rgba(28, 15, 11, 0));
}
.guide {
  margin: 0; padding: 9px 16px; border-radius: 999px; text-align: center;
  font-size: var(--t-sm); font-weight: 600; background: rgba(28, 15, 11, .5);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.viewfinder[data-state='idle'] ~ .scan-bottom .guide { visibility: hidden; }
.scan-hint {
  margin: 0; display: flex; align-items: center; gap: 10px; padding: 6px 6px 6px 16px; border-radius: 999px;
  background: var(--white); color: var(--cocoa); font-size: var(--t-sm); font-weight: 600;
  animation: hint-in .35s cubic-bezier(.2, .8, .3, 1.2);
}
.scan-hint button { border: 0; border-radius: 999px; padding: 8px 14px; background: var(--pink); color: var(--cocoa); font-weight: 700; cursor: pointer; }
@keyframes hint-in { from { opacity: 0; transform: translateY(8px); } }

/* frame: corner brackets, dimmed surroundings, moving laser for barcodes */
.window {
  position: absolute; left: 10%; right: 10%; top: 38%; height: 20%;
  border-radius: 22px; box-shadow: 0 0 0 100vmax rgba(28, 15, 11, .45);
  transition: top .35s var(--ease), height .35s var(--ease), left .35s var(--ease), right .35s var(--ease), box-shadow .3s;
  opacity: 0;
}
@media (min-width: 700px) { .window { left: calc(50% - 240px); right: calc(50% - 240px); } }
.viewfinder[data-mode='front'] .window { top: 20%; height: 50%; left: 22%; right: 22%; border-radius: 36px; }
@media (min-width: 700px) { .viewfinder[data-mode='front'] .window { left: calc(50% - 150px); right: calc(50% - 150px); } }
.viewfinder[data-mode='label'] .window { top: 15%; height: 58%; }
.viewfinder[data-state='live'] .window { opacity: 1; }
.window .c { position: absolute; width: 34px; height: 34px; border: 4px solid var(--white); transition: border-color .2s; }
.window .tl { top: -2px; left: -2px; border-right: 0; border-bottom: 0; border-top-left-radius: 22px; }
.window .tr { top: -2px; right: -2px; border-left: 0; border-bottom: 0; border-top-right-radius: 22px; }
.window .bl { bottom: -2px; left: -2px; border-right: 0; border-top: 0; border-bottom-left-radius: 22px; }
.window .br { bottom: -2px; right: -2px; border-left: 0; border-top: 0; border-bottom-right-radius: 22px; }
.window .laser { display: none; position: absolute; left: 6%; right: 6%; height: 2px; border-radius: 2px; background: var(--pink); box-shadow: 0 0 14px 2px var(--pink); top: 50%; }
.viewfinder[data-mode='barcode'][data-state='live'] .laser { display: block; animation: laser 2.2s ease-in-out infinite; }
@keyframes laser { 0%, 100% { top: 18%; } 50% { top: 82%; } }
.viewfinder.found .window .c { border-color: #3ddc97; }
.viewfinder.found .window { box-shadow: 0 0 0 100vmax rgba(28, 15, 11, .6), 0 0 0 6px rgba(61, 220, 151, .35); }
.viewfinder.found .laser { display: none !important; }

.idle {
  position: absolute; inset: 0; display: grid; place-content: center; justify-items: center;
  gap: 20px; padding: 24px; text-align: center;
}
.viewfinder[data-state='live'] .idle { display: none; }
.curl.big { width: 96px; height: 96px; color: var(--pink); }
.idle-note { margin: 0; font-size: var(--t-xs); opacity: .7; max-width: 30ch; }

/* controls row: gallery · shutter · type it */
.scan-controls { width: 100%; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.scan-side {
  justify-self: center; display: grid; justify-items: center; gap: 6px; border: 0; background: none; padding: 0;
  color: var(--white); font: inherit; font-size: var(--t-xs); font-weight: 600; cursor: pointer;
}
.shutter-spacer { width: 78px; height: 78px; }
.shutter:not([hidden]) + .shutter-spacer { display: none; }
.scan-overlay .shutter {
  width: 78px; height: 78px; margin: 0; border-radius: 50%; cursor: pointer;
  background: var(--white); border: 0; box-shadow: inset 0 0 0 4px #1C0F0B, 0 0 0 4px var(--white);
}
.scan-overlay .shutter:active { transform: scale(.93); }
.scan-overlay .modes {
  margin: 0; width: min(100%, 400px); background: rgba(28, 15, 11, .5);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.scan-overlay .modes button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; white-space: nowrap; color: rgba(255, 255, 255, .78); }
.scan-overlay .modes svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.scan-overlay .modes button[aria-selected='true'] { background: var(--white); color: var(--cocoa); }
.scan-overlay .mode-banner { color: var(--cocoa); width: min(100%, 420px); }
@media (prefers-reduced-motion: reduce) { .window .laser { animation: none !important; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 999px; padding: 14px 24px; min-height: 52px;
  font-weight: 600; cursor: pointer; text-decoration: none;
  transition: transform .12s ease;
}
.btn:active { transform: scale(.97); }
.btn-pink { background: var(--pink); color: var(--cocoa); }
.btn-dark { background: var(--cocoa); color: var(--white); }
.btn-quiet { background: var(--white); color: var(--cocoa); }
.btn-ghost { background: transparent; box-shadow: inset 0 0 0 1.5px var(--line); }
.text-btn {
  background: none; border: 0; padding: 4px 2px; cursor: pointer; font-weight: 600;
  text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px;
  text-decoration-color: var(--pink);
}
.text-btn:focus-within { outline: 2.5px solid var(--pink); outline-offset: 3px; border-radius: 6px; }
.icon-btn {
  width: 38px; height: 38px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center; background: var(--blush);
}
.icon-btn svg { width: 14px; height: 14px; }
.icon-btn path { stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

/* ---------- mode switch + shutter ---------- */
.modes {
  position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 2px; margin-top: 12px;
  background: var(--white); border-radius: 999px; padding: 4px;
}
.modes button {
  border: 0; background: transparent; border-radius: 999px; padding: 11px 8px;
  font-weight: 600; cursor: pointer; color: var(--cocoa-2); transition: background .2s, color .2s;
}
.modes button[aria-selected='true'] { background: var(--cocoa); color: var(--white); }

.actions { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 14px; }
.actions > .text-btn { font-size: var(--t-sm); }
.shutter {
  width: 74px; height: 74px; border-radius: 50%; cursor: pointer; margin: 4px 0;
  background: var(--pink); border: 5px solid var(--blush); box-shadow: 0 0 0 3px var(--cocoa);
}
.shutter:active { transform: scale(.93); }
.mode-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%;
  margin: 0; padding: 10px 10px 10px 18px; border-radius: 999px; background: var(--warn);
  font-weight: 600; font-size: var(--t-sm);
}
.mode-banner .text-btn { text-decoration-color: currentColor; }

/* ---------- recent scans strip ---------- */
.strip {
  list-style: none; margin: 0 -20px; padding: 2px 20px 6px; display: flex; gap: 10px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
}
.strip::-webkit-scrollbar { display: none; }
.strip li { flex: 0 0 auto; scroll-snap-align: start; }
.strip button {
  width: 150px; display: grid; gap: 4px; text-align: left; border: 0; cursor: pointer;
  background: var(--white); border-radius: 22px; padding: 8px 8px 12px;
}
.strip .thumb { width: 100%; height: 96px; border-radius: 16px; margin-bottom: 4px; }
.strip .h-name, .strip .h-meta { padding: 0 4px; }
.strip .verdict-tag { margin: 2px 4px 0; }
@media (min-width: 920px) {
  .strip { flex-wrap: wrap; margin: 0; padding: 0; overflow: visible; }
}
.thumb {
  object-fit: contain; background: var(--blush); display: grid; place-items: center;
  font-size: 1.6rem;
}
.h-name {
  font-weight: 600; font-size: var(--t-sm); line-height: 1.25;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.h-meta { font-size: var(--t-xs); color: var(--cocoa-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.empty { margin: 0; color: var(--cocoa-2); max-width: 40ch; font-size: var(--t-sm); }

/* verdict marker used in lists: coloured dot + word */
.verdict-tag {
  display: inline-flex; align-items: center; gap: 6px; font-size: var(--t-xs); font-weight: 600;
  white-space: nowrap;
}
.verdict-tag::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: var(--line); flex: none; }
.verdict-tag.approved { color: var(--safe-ink); }
.verdict-tag.approved::before { background: #2DBE7E; }
.verdict-tag.caution { color: #8A5A00; }
.verdict-tag.caution::before { background: #F2B11B; }
.verdict-tag.not-approved { color: var(--bad-ink); }
.verdict-tag.not-approved::before { background: var(--bad); }

/* ---------- catalog ---------- */
.sample-tag {
  display: inline-block; font-size: 0.6875rem; font-weight: 600; padding: 2px 8px; border-radius: 999px;
  background: var(--blush-2); color: var(--cocoa-2); margin-left: 6px; vertical-align: 1px;
}

.search {
  position: relative; display: block;
}
.search svg {
  position: absolute; left: 18px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%);
  pointer-events: none;
}
.search circle, .search path { fill: none; stroke: var(--cocoa-2); stroke-width: 2; stroke-linecap: round; }
.search input {
  width: 100%; border: 0; border-radius: 999px; background: var(--white);
  padding: 15px 18px 15px 48px; font-size: var(--t-md); -webkit-appearance: none; appearance: none;
}
.search input::placeholder { color: var(--cocoa-2); }
.search input:focus { outline: none; box-shadow: 0 0 0 2.5px var(--pink); }

.chip-row {
  display: flex; gap: 8px; margin: 14px -20px 0; padding: 2px 20px 4px;
  overflow-x: auto; scrollbar-width: none;
}
.chip-row::-webkit-scrollbar { display: none; }
@media (min-width: 920px) { .chip-row { margin-left: 0; margin-right: 0; padding: 2px 0 4px; flex-wrap: wrap; } }
.chip {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 7px; cursor: pointer;
  border: 0; border-radius: 999px; padding: 9px 14px; font-weight: 600; font-size: var(--t-sm);
  background: var(--white); color: var(--cocoa); white-space: nowrap;
  transition: background .15s, color .15s;
}
.chip .chev { width: 10px; height: 7px; opacity: .7; }
.chip[aria-pressed='true'], .chip.active { background: var(--cocoa); color: var(--white); }
.chip .dot { width: 8px; height: 8px; border-radius: 50%; }
.chip-sep { flex: 0 0 1px; background: var(--line); margin: 6px 2px; }

.grid {
  list-style: none; margin: 0; padding: 0; display: grid; gap: 20px 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 640px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 920px) { .grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 28px 16px; } }
.card {
  width: 100%; display: grid; align-content: start; gap: 3px; text-align: left;
  border: 0; background: none; padding: 0; cursor: pointer;
}
.card-img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: contain; border-radius: 22px;
  background: var(--white); padding: 14px; margin-bottom: 8px;
  display: grid; place-items: center; font-size: 2.6rem;
  transition: transform .2s var(--ease);
}
.card:hover .card-img { transform: translateY(-2px); }
.card-brand { font-size: var(--t-xs); color: var(--cocoa-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-name {
  font-weight: 600; font-size: var(--t-sm); line-height: 1.3; min-height: 2.6em;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: 3px; }
.card-rating { font-size: var(--t-xs); color: var(--cocoa-2); white-space: nowrap; }
.more { display: flex; margin: 28px auto 0; }

.fine { font-size: var(--t-xs); color: var(--cocoa-2); max-width: 64ch; }

/* ---------- bottom sheet ---------- */
.sheet-backdrop { position: fixed; inset: 0; background: rgba(46, 26, 20, .42); z-index: 10; }
.sheet {
  position: fixed; z-index: 11; left: 0; right: 0; bottom: 0;
  max-height: 94dvh; overflow-y: auto; overscroll-behavior: contain;
  background: var(--white); border-radius: 30px 30px 0 0;
  max-width: 560px; margin: 0 auto;
  animation: rise .42s var(--ease);
}
.sheet:focus { outline: none; }
@keyframes rise { from { transform: translateY(100%); } to { transform: none; } }
@media (min-width: 920px) {
  .sheet { bottom: 50%; transform: translateY(50%); border-radius: 30px; animation: pop .3s var(--ease); max-height: 88dvh; }
  @keyframes pop { from { opacity: 0; transform: translateY(calc(50% + 16px)); } to { opacity: 1; transform: translateY(50%); } }
}

.verdict { padding: 30px 24px 24px; position: relative; overflow: hidden; }
.verdict.approved { background: var(--safe); }
.verdict.caution { background: var(--warn); }
.verdict.not-approved { background: var(--bad); color: var(--white); }
.verdict.unreadable, .verdict.pending, .verdict.missing { background: var(--blush); }
.verdict .curl.bg { position: absolute; right: -50px; top: -40px; width: 240px; height: 240px; opacity: .16; }
.verdict-word {
  position: relative; display: block; margin: 0 0 8px;
  font: 400 var(--t-verdict)/0.95 var(--display); letter-spacing: -0.01em;
}
.verdict.pending .verdict-word, .verdict.missing .verdict-word, .verdict.unreadable .verdict-word {
  font-size: clamp(2.2rem, 10vw, 3rem);
}
.verdict-line { position: relative; margin: 0; font-size: var(--t-md); max-width: 34ch; }
.product { position: relative; display: flex; gap: 12px; align-items: center; margin-top: 20px; }
.product img { width: 58px; height: 58px; border-radius: 16px; object-fit: contain; background: var(--white); padding: 4px; }
.product strong { display: block; font-weight: 600; line-height: 1.3; }
.product span { font-size: var(--t-sm); opacity: .8; }
.rating-line { position: relative; display: flex; align-items: center; gap: 8px; margin: 14px 0 0; font-size: var(--t-sm); font-weight: 600; }
.stars { letter-spacing: 1px; }

.sheet-body { padding: 22px 24px 30px; display: grid; gap: 20px; }
.note { margin: 0; padding: 14px 16px; border-radius: 18px; background: var(--blush); font-size: var(--t-sm); }
.note strong { display: block; font-size: var(--t-md); margin-bottom: 2px; }
.finding h3 { margin: 0 0 8px; font-size: var(--t-md); }
.finding p { margin: 8px 0 0; font-size: var(--t-sm); color: var(--cocoa-2); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { border-radius: 999px; padding: 5px 12px; font-weight: 600; font-size: var(--t-xs); background: var(--blush); }
.tag.fail { background: var(--bad); color: var(--white); }
.tag.caution { background: var(--warn); }
.tag.ok { background: var(--safe); }

details { border-top: 1px solid var(--line); padding-top: 14px; }
details summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: '+'; font-size: 1.3rem; line-height: 1; }
details[open] summary::after { content: '–'; }
.all-ingredients { margin: 12px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 4px 6px; font-size: var(--t-xs); }
.all-ingredients li { padding: 3px 9px; border-radius: 8px; background: var(--blush); }
.all-ingredients li.fail { background: var(--bad); color: var(--white); }
.all-ingredients li.caution { background: var(--warn); }
.sheet-actions { display: grid; gap: 10px; }

.progress { position: relative; height: 6px; border-radius: 6px; background: var(--white); overflow: hidden; margin-top: 18px; }
.progress span { display: block; height: 100%; width: 8%; background: var(--pink); border-radius: 6px; transition: width .3s; }

/* matches */
.matches { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.matches button {
  width: 100%; display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; align-items: center; gap: 14px;
  border: 0; text-align: left; cursor: pointer; padding: 8px 16px 8px 8px; background: var(--blush); border-radius: 20px;
}
.matches .thumb { width: 56px; height: 56px; border-radius: 14px; background: var(--white); }

/* reviews */
.reviews { border-top: 1px solid var(--line); padding-top: 18px; }
.reviews h3 { margin: 0 0 12px; font-size: var(--t-lg); letter-spacing: -0.02em; }
.review-list { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 16px; }
.review-list li { display: grid; gap: 4px; }
.review-list p { margin: 0; }
.review-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.curl-tag { font-size: var(--t-xs); font-weight: 600; background: var(--pink-soft); border-radius: 999px; padding: 1px 9px; }
.muted { color: var(--cocoa-2); font-size: var(--t-xs); margin: 0; }

/* ---------- forms ---------- */
.form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field > span, .field > legend { font-weight: 600; font-size: var(--t-sm); padding: 0; }
.field input:not([type='radio']), .field textarea {
  width: 100%; border: 0; border-radius: 16px; background: var(--blush);
  padding: 14px 16px; font-size: var(--t-md);
}
.field textarea { resize: vertical; min-height: 120px; line-height: 1.45; }
.field input:focus, .field textarea:focus { outline: none; box-shadow: 0 0 0 2.5px var(--pink); }
.radio-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.radio-chips label { cursor: pointer; }
.radio-chips input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.radio-chips span {
  display: inline-block; padding: 8px 14px; border-radius: 999px; background: var(--blush);
  font-weight: 600; font-size: var(--t-sm);
}
.radio-chips input:checked + span { background: var(--cocoa); color: var(--white); }
.radio-chips input:focus-visible + span { outline: 2.5px solid var(--pink); outline-offset: 2px; }

.star-input { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 2px; }
.star-input label { cursor: pointer; font-size: 2.1rem; line-height: 1; color: var(--blush-2); transition: color .1s; }
.star-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.star-input label:has(input:checked), .star-input label:has(input:checked) ~ label,
.star-input label:hover, .star-input label:hover ~ label { color: var(--pink); }
.star-input label:has(input:focus-visible) { outline: 2.5px solid var(--pink); border-radius: 6px; }

.form-error { color: var(--bad-ink); font-weight: 600; margin: 0; font-size: var(--t-sm); }
.form-error:empty { display: none; }
.row { display: flex; gap: 10px; flex-wrap: wrap; }
.small { font-size: var(--t-xs); color: var(--cocoa-2); margin: 0; }

/* ---------- picker + rules dialogs ---------- */
.picker {
  border: 0; padding: 0; color: var(--cocoa); background: var(--white);
  width: 100%; max-width: 480px; max-height: 80dvh;
  margin: auto auto 0; border-radius: 28px 28px 0 0;
  display: none; flex-direction: column;
}
.picker[open] { display: flex; animation: rise .35s var(--ease); }
.picker::backdrop { background: rgba(46, 26, 20, .42); }
@media (min-width: 920px) {
  .picker { margin: auto; border-radius: 28px; }
  .picker[open] { animation: none; }
}
.picker-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 20px 12px 24px; }
.picker-head h2 { margin: 0; }
.small-search { margin: 0 20px 8px; }
.small-search input { background: var(--blush); padding-top: 12px; padding-bottom: 12px; }
.picker-list { list-style: none; margin: 0; padding: 4px 12px max(16px, env(safe-area-inset-bottom)); overflow-y: auto; }
.picker-list button {
  width: 100%; display: flex; align-items: center; gap: 12px; text-align: left; cursor: pointer;
  border: 0; background: none; border-radius: 14px; padding: 13px 12px; font-weight: 500;
}
.picker-list button:hover { background: var(--blush); }
.picker-list button[aria-selected='true'] { font-weight: 700; }
.picker-list button[aria-selected='true']::after {
  content: ''; margin-left: auto; width: 10px; height: 10px; border-radius: 50%; background: var(--pink);
}
.picker-list .opt-meta { color: var(--cocoa-2); font-size: var(--t-xs); font-weight: 500; }
.picker-list .group { padding: 14px 12px 4px; font-size: var(--t-xs); color: var(--cocoa-2); font-weight: 600; }

.rules-body { padding: 0 24px 26px; overflow-y: auto; font-size: var(--t-sm); }
.rules-body p { margin: 0 0 8px; }
.rules-body h3 { margin: 18px 0 4px; font-size: var(--t-md); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
.reviews > .btn { margin-bottom: 10px; }
.card-img { font-size: 2rem; }

/* ---------- article pages (How it works) ---------- */
.btn-small { min-height: 40px; padding: 8px 16px; font-size: var(--t-sm); }
.article { max-width: 720px; margin: 0 auto; padding: 24px 20px 40px; }
@media (min-width: 920px) { .article { padding-top: 56px; } }
.article h1 { font: 400 var(--t-xl)/0.98 var(--display); margin: 0 0 16px; max-width: 12ch; }
.article .lede { margin-bottom: 8px; }
.article section { margin-top: 48px; }
.article h2 { font-size: var(--t-lg); margin-bottom: 10px; }
.article p { margin: 0 0 12px; max-width: 64ch; }
.article p a { text-decoration-color: var(--pink); }
.article > .btn { margin-top: 44px; }

.steps { list-style: none; counter-reset: step; margin: 18px 0 0; padding: 0; display: grid; gap: 12px; }
.steps li {
  counter-increment: step; position: relative; padding: 22px 22px 20px 96px;
  background: var(--white); border-radius: 22px;
}
.steps li::before {
  content: counter(step); position: absolute; left: 22px; top: 14px;
  font: 400 4rem/1 var(--display); color: var(--pink);
}
.steps h3 { margin: 0 0 4px; font-size: var(--t-md); }
.steps p { margin: 0; font-size: var(--t-sm); color: var(--cocoa-2); }
.steps strong { color: var(--cocoa); }

.rule-list { display: grid; gap: 12px; margin-top: 16px; }
.rule { background: var(--white); border-radius: 22px; padding: 18px 20px; }
.rule h3 { margin: 0 0 4px; font-size: var(--t-md); }
.rule > p { color: var(--cocoa-2); font-size: var(--t-sm); margin: 0 0 12px; }
.rule dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; font-size: var(--t-sm); }
.rule dt { font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.rule dt::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: var(--bad); }
.rule dt:nth-of-type(2)::before { background: #2DBE7E; }
.rule dd { margin: 0; }
.aside { margin-top: 16px !important; padding: 14px 18px; border-radius: 18px; background: var(--blush-2); font-size: var(--t-sm); }
.article-foot { max-width: 1120px; margin: 0 auto; padding: 22px 20px 40px; }
@media (min-width: 1160px) {
  .type-row { -webkit-mask-image: linear-gradient(90deg, transparent, #000 40px, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(90deg, transparent, #000 40px, #000 calc(100% - 40px), transparent); }
}

/* ---------- How it works ---------- */
.how { max-width: 1120px; margin: 0 auto; padding: 16px 20px 24px; }
.how-hero { display: grid; gap: 28px; align-items: center; padding-top: 8px; }
@media (min-width: 920px) { .how-hero { grid-template-columns: minmax(0, 1fr) minmax(0, 480px); gap: 56px; padding-top: 48px; } }
.how-hero h1 { font: 400 var(--t-xl)/0.98 var(--display); margin: 0 0 14px; max-width: 11ch; }
.how-hero .lede { margin-bottom: 20px; }
.jump { display: flex; flex-wrap: wrap; gap: 8px; }
.jump a {
  text-decoration: none; font-weight: 600; font-size: var(--t-sm); padding: 8px 14px; border-radius: 999px;
  background: var(--white);
}
.jump a:hover { background: var(--pink-soft); }

.demo-card { margin: 0; border-radius: 30px; overflow: hidden; background: var(--white); box-shadow: 0 30px 60px -36px rgba(46, 26, 20, .45); transform: rotate(1.5deg); }
.demo-verdict { background: var(--safe); padding: 34px 32px 28px; display: grid; gap: 8px; }
.demo-word { font: 400 clamp(3.2rem, 6vw, 4.4rem)/0.95 var(--display); }
.demo-line { font-size: var(--t-sm); }
.demo-product { display: flex; align-items: center; gap: 16px; padding: 18px 28px 24px; }
.demo-product img { width: 84px; height: 104px; object-fit: contain; }
.demo-product strong { display: block; font-size: var(--t-md); }
.demo-product span { font-size: var(--t-xs); color: var(--cocoa-2); }

.how-section { margin-top: 64px; scroll-margin-top: 20px; }
.how-section > h2 { font: 400 clamp(1.9rem, 7vw, 2.6rem)/1.02 var(--display); margin: 0 0 14px; letter-spacing: 0; }
.how-section > p { max-width: 64ch; margin: 0 0 14px; }
.how .small { max-width: 64ch; }

.steps.three { margin-top: 18px; }
@media (min-width: 760px) { .steps.three { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.verdict-cards { display: grid; gap: 12px; }
@media (min-width: 760px) { .verdict-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.vcard { border-radius: 26px; padding: 24px 22px 20px; min-height: 170px; display: grid; align-content: space-between; gap: 18px; }
.vcard.approved { background: var(--safe); }
.vcard.caution { background: var(--warn); }
.vcard.not-approved { background: var(--bad); color: var(--white); }
.vword { font: 400 2.2rem/1 var(--display); }
.vcard p { margin: 0; font-size: var(--t-sm); }

.example-list { display: flex; flex-wrap: wrap; gap: 6px; padding: 18px; border-radius: 22px; background: var(--white); max-width: 720px; }
.example-list span { padding: 5px 11px; border-radius: 10px; background: var(--blush); font-size: var(--t-sm); }
.example-list .bad { background: var(--bad); color: var(--white); font-weight: 600; }

.rule-list.two { margin-top: 18px; }
@media (min-width: 760px) { .rule-list.two { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.rule.soft { background: var(--blush-2); }
.rule.soft dt::before { background: #F2B11B; }

.split { display: grid; gap: 18px; align-items: center; }
@media (min-width: 920px) { .split { grid-template-columns: minmax(0, 1fr) 380px; gap: 64px; } }
.split h2 { font: 400 clamp(1.9rem, 7vw, 2.6rem)/1.02 var(--display); margin: 0 0 14px; }
.split p { margin: 0; max-width: 60ch; }
.pull { font: 400 1.6rem/1.15 var(--display) !important; color: var(--pink); padding: 0; }

.faq-wrap { display: grid; gap: 28px; }
@media (min-width: 920px) { .faq-wrap { grid-template-columns: 340px minmax(0, 1fr); gap: 64px; align-items: start; } .faq-intro { position: sticky; top: 24px; } }
.faq-intro h2 { margin-top: 0; }
.faq-intro > p { margin: 0 0 22px; color: var(--cocoa-2); max-width: 36ch; }
.faq-ask { display: grid; gap: 6px; justify-items: start; padding: 22px; border-radius: 24px; background: var(--blush-2); }
.faq-ask span { color: var(--cocoa-2); font-size: var(--t-sm); margin-bottom: 10px; }
.faq { display: grid; gap: 10px; }
.faq details { background: var(--white); border-radius: 22px; padding: 0; border: 0; transition: box-shadow .2s; }
.faq details[open] { box-shadow: 0 18px 36px -24px rgba(46, 26, 20, .35); }
.faq summary { font-weight: 600; gap: 16px; align-items: center; padding: 18px 20px 18px 24px; }
.faq summary::after { content: none; }
.faq summary i { flex: none; position: relative; width: 32px; height: 32px; border-radius: 50%; background: var(--blush-2); transition: background .2s, transform .3s; }
.faq summary i::before, .faq summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; border-radius: 2px; background: var(--cocoa); translate: -50% -50%; }
.faq summary i::after { rotate: 90deg; transition: rotate .3s; }
.faq details[open] summary i { background: var(--pink-soft); }
.faq details[open] summary i::after { rotate: 0deg; }
.faq summary:hover i { background: var(--pink-soft); }
.faq summary:focus-visible { outline: 2px solid var(--cocoa); outline-offset: -2px; border-radius: 22px; }
.faq details p { margin: 0; padding: 0 24px 22px; color: var(--cocoa-2); max-width: 62ch; animation: faq-in .3s ease both; }
@keyframes faq-in { from { opacity: 0; transform: translateY(-4px); } }

.doubt { padding: 72px 0 12px; }
.quote {
  position: relative; margin: 0 auto; max-width: 860px; padding: 56px 40px 40px; text-align: center;
  background: linear-gradient(160deg, var(--white), var(--blush-2)); border-radius: 36px;
  box-shadow: 0 30px 60px -40px rgba(46, 26, 20, .35);
}
.quote-mark {
  position: absolute; left: 50%; top: -34px; transform: translateX(-50%);
  width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; padding-top: 22px;
  background: var(--pink); color: var(--white); font: 400 5rem/1 var(--display);
  box-shadow: 0 12px 26px -12px rgba(255, 111, 159, .8);
}
.quote blockquote { margin: 0; }
.quote blockquote p { margin: 0 auto; max-width: 22ch; font: 400 clamp(1.8rem, 4.2vw, 2.8rem)/1.12 var(--display); color: var(--cocoa); }
.quote figcaption { margin-top: 18px; font-weight: 700; font-size: var(--t-sm); color: var(--pink); letter-spacing: .02em; }
.quote figcaption::before { content: "— "; }

.cta-band {
  margin-top: 72px; border-radius: 32px; background: var(--cocoa); color: var(--white);
  padding: 40px 28px; display: grid; justify-items: start; gap: 10px;
}
.cta-band h2 { font: 400 clamp(2rem, 8vw, 3rem)/1 var(--display); margin: 0; }
.cta-band p { margin: 0 0 10px; opacity: .8; }

/* ---------- product view: phone sheet, desktop two-column window ---------- */
.product-view { position: relative; }
.sheet-close { position: absolute; top: 14px; right: 14px; z-index: 2; background: rgba(255, 255, 255, .7); }
.sheet-close path { stroke: var(--cocoa); }
.sheet-expand { position: absolute; top: 14px; right: 60px; z-index: 2; background: rgba(255, 255, 255, .7); color: var(--cocoa); }
.sheet-expand svg { width: 15px; height: 15px; }
.sheet-expand path { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sheet-expand:hover, .sheet-close:hover { background: var(--white); }
.pv-bottle { display: none; }
@media (min-width: 920px) {
  .sheet.wide {
    max-width: 1000px; width: calc(100% - 64px); height: min(780px, 88dvh); max-height: none;
    overflow: hidden; padding: 0;
  }
  .sheet.wide .product-view { display: grid; grid-template-columns: 420px minmax(0, 1fr); height: 100%; }
  .sheet.wide .verdict {
    display: grid; grid-template-rows: auto auto minmax(0, 1fr) auto auto; align-content: stretch;
    overflow-y: auto; padding: 34px 34px 30px;
  }
  .sheet.wide .verdict .curl.bg { display: none; }
  /* verdict as a badge with an icon, not a giant word */
  .sheet.wide .verdict-word {
    display: inline-flex; align-items: center; gap: 12px; width: fit-content; margin: 0; white-space: nowrap;
    padding: 9px 22px 9px 9px; border-radius: 999px; background: rgba(255, 255, 255, .6);
    font: 400 2.1rem/1 var(--display); letter-spacing: 0;
  }
  .sheet.wide .verdict-word::before {
    content: "✓"; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
    font: 700 1.3rem/1 var(--sans); background: #1F7A52; color: var(--white);
  }
  .sheet.wide .verdict.not-approved .verdict-word { background: rgba(255, 255, 255, .18); color: var(--white); }
  .sheet.wide .verdict.not-approved .verdict-word::before { content: "✕"; background: var(--white); color: var(--bad); }
  .sheet.wide .verdict.caution .verdict-word::before { content: "!"; background: var(--cocoa); }
  .sheet.wide .verdict.unreadable .verdict-word::before, .sheet.wide .verdict.pending .verdict-word::before, .sheet.wide .verdict.missing .verdict-word::before { content: "?"; background: var(--cocoa); }
  .sheet.wide .verdict-line { margin-top: 14px; font-size: var(--t-sm); max-width: 36ch; opacity: .9; }
  /* bottle in a polaroid; the photo carries the verdict colour, the panel stays calm */
  .sheet.wide .verdict.approved { background: #EAF8F0; }
  .sheet.wide .verdict.caution { background: #FFF6DC; }
  .sheet.wide .verdict.not-approved { background: #FFF0EC; color: var(--cocoa); }
  .sheet.wide .verdict.not-approved .verdict-word { background: var(--bad); color: var(--white); }
  .sheet.wide .verdict.not-approved .verdict-word::before { background: var(--white); color: var(--bad); }
  .sheet.wide .verdict.approved .verdict-word { background: var(--safe); }
  .sheet.wide .verdict.caution .verdict-word { background: var(--warn); }
  .sheet.wide .pv-bottle {
    display: flex; flex-direction: column; position: relative; align-self: center; justify-self: center;
    width: min(100%, 270px); max-height: 100%; min-height: 0; margin: 18px 0 14px;
    padding: 12px 12px 0; background: var(--white); border-radius: 3px;
    transform: rotate(-2.5deg);
    box-shadow: 0 1px 2px rgba(46, 26, 20, .08), 0 18px 34px -10px rgba(46, 26, 20, .22);
  }
  .sheet.wide .pv-photo { min-height: 0; flex: 1; display: grid; place-items: center; padding: 18px 26px 12px; border-radius: 1px; background: var(--safe); }
  .sheet.wide .verdict.caution .pv-photo { background: var(--warn); }
  .sheet.wide .verdict.not-approved .pv-photo { background: #FFB8AA; }
  .sheet.wide .verdict.unreadable .pv-photo, .sheet.wide .verdict.pending .pv-photo, .sheet.wide .verdict.missing .pv-photo { background: var(--pink-soft); }
  .sheet.wide .pv-photo img { display: block; width: 100%; max-height: 100%; object-fit: contain; filter: drop-shadow(0 12px 14px rgba(46, 26, 20, .18)); }
  .sheet.wide .pv-bottle figcaption { padding: 12px 4px 14px; text-align: center; font: 400 1.05rem/1.2 var(--display); color: var(--cocoa); }
  .sheet.wide .pv-bottle:not(:has(figcaption)) { padding-bottom: 40px; }
  .sheet.wide .product img { display: none; }
  .sheet.wide .product { margin-top: 6px; }
  .sheet.wide .product > div { display: flex; flex-direction: column-reverse; gap: 6px; }
  .sheet.wide .product span { font-size: var(--t-xs); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; opacity: .7; }
  .sheet.wide .product strong { font-size: 1.55rem; font-weight: 700; line-height: 1.15; letter-spacing: -0.01em; }
  .sheet.wide .rating-line { margin-top: 12px; }
  .sheet.wide .sheet-body { overflow-y: auto; padding: 72px 40px 0; display: flex; flex-direction: column; gap: 22px; }
  /* the buttons stay pinned to the bottom, however long the ingredient list is */
  .sheet.wide .sheet-actions {
    position: sticky; bottom: 0; z-index: 1; margin: auto -40px 0; padding: 18px 40px 28px;
    background: linear-gradient(rgba(255, 255, 255, 0), var(--white) 18px);
    box-shadow: 0 -1px 0 var(--line);
  }
  .sheet.wide .sheet-actions { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
  .sheet.wide .sheet-actions > :only-child { grid-column: 1 / -1; }
}

/* ---------- footer ---------- */
.site-foot {
  position: relative; margin-top: 120px; background: var(--cocoa); color: #F6E7EC;
  padding: 40px 20px 28px;
}
.site-foot::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: calc(100% - 1px); height: 84px;
  background: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 56'><g fill='%232E1A14'><circle cx='-12' cy='60' r='30'/><circle cx='22' cy='58' r='32'/><circle cx='72' cy='52' r='38'/><circle cx='126' cy='60' r='32'/><circle cx='176' cy='50' r='40'/><circle cx='228' cy='60' r='30'/><rect x='0' y='44' width='240' height='12'/></g></svg>") repeat-x left bottom / 360px 84px;
}
.foot-inner, .foot-base { max-width: 1120px; margin: 0 auto; }
.foot-inner { display: grid; gap: 40px; }
@media (min-width: 820px) { .foot-inner { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.6fr); gap: 56px; } }
.foot-logo { color: #FDF1F4; }
.foot-logo .wm { font-size: 2.6rem; }
.foot-logo .wm-l path { stroke: #FDF1F4; }
.foot-logo .wm-op { color: var(--cocoa); background: var(--pink-soft); box-shadow: none; }
.foot-tag { margin: 14px 0 18px; max-width: 34ch; color: rgba(253, 241, 244, .78); line-height: 1.5; }
.site-foot .account { margin: 0; font-size: var(--t-sm); color: rgba(253, 241, 244, .7); }
.site-foot .account .text-btn, .site-foot .account a { color: #FDF1F4; }
.foot-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
@media (min-width: 620px) { .foot-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.foot-cols h2 { margin: 0 0 14px; font-size: var(--t-sm); font-weight: 600; color: var(--pink-soft); letter-spacing: 0; }
.foot-cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.foot-cols a { color: #FDF1F4; text-decoration: none; }
.foot-cols a:hover { text-decoration: underline; text-decoration-color: var(--pink); text-underline-offset: 4px; }
.site-foot a:focus-visible, .site-foot button:focus-visible { outline: 2px solid var(--pink); outline-offset: 3px; border-radius: 4px; }
.foot-base {
  margin-top: 44px; padding-top: 20px; border-top: 1px solid rgba(253, 241, 244, .14);
  display: grid; gap: 6px; font-size: var(--t-xs); color: rgba(253, 241, 244, .6);
}
/* centred bottom line: legal links, source note, copyright */
.foot-base { justify-items: center; text-align: center; }
.foot-legal { justify-content: center; }
.foot-base p { margin: 0; }
.faq details[open] summary::after { content: none; }
.country h2, .faq-intro h2 { font: 400 clamp(1.9rem, 7vw, 2.6rem)/1.02 var(--display); margin: 0 0 14px; }
.country p { margin: 0; max-width: 60ch; }

/* compact product meta line */
.meta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: var(--t-xs); color: var(--cocoa-2); }
.meta-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; background: var(--blush); color: var(--cocoa); font-weight: 600; text-decoration: none; }
.meta-chip .dot { width: 7px; height: 7px; border-radius: 50%; background: #2fb37a; }
.meta-chip.warn { background: #FFF3D6; }
.meta-chip.warn .dot { background: #E0A100; }
.meta-chip.link { font-weight: 500; color: var(--cocoa-2); }
.meta-chip.link:hover { color: var(--cocoa); text-decoration: underline; text-underline-offset: 3px; }
.meta-chip.link:focus-visible { outline: 2px solid var(--pink); outline-offset: 2px; }

/* language picker */
.bar-actions { display: flex; align-items: center; gap: 8px; }
.lang { position: relative; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 14px; border: 0; border-radius: 999px;
  background: var(--white); color: var(--cocoa); font: inherit; font-weight: 700; font-size: var(--t-sm); cursor: pointer;
}
.lang-btn svg { width: 18px; height: 18px; fill: none; stroke: var(--pink); stroke-width: 1.8; }
.lang-btn:focus-visible { outline: 2.5px solid var(--pink); outline-offset: 2px; }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 8; min-width: 170px; padding: 6px;
  display: grid; background: var(--white); border-radius: 18px; box-shadow: 0 18px 40px -18px rgba(46, 26, 20, .45);
}
.lang-menu button {
  text-align: left; border: 0; background: none; padding: 10px 12px; border-radius: 12px; font: inherit; color: var(--cocoa); cursor: pointer;
}
.lang-menu button:hover, .lang-menu button:focus-visible { background: var(--blush); outline: none; }
.lang-menu button[aria-checked='true'] { font-weight: 700; }
.lang-menu button[aria-checked='true']::after { content: ' ✓'; color: var(--pink); }
@media (max-width: 420px) { .lang-btn { padding: 0 11px; } .lang-btn svg { display: none; } }

/* country map */
.country { display: grid; gap: 28px; align-items: center; }
@media (min-width: 920px) { .country { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 48px; } }
.world { margin: 0; padding: 22px 22px 16px; background: var(--white); border-radius: 28px; }
.world svg { display: block; width: 100%; height: auto; }
.world .land circle { fill: #EBD3DB; }
.world .pin circle { fill: var(--pink); stroke: var(--white); stroke-width: 2; }
.world .pin .halo { fill: var(--pink); stroke: none; opacity: .25; transform-box: fill-box; transform-origin: center; animation: pin-pulse 2.6s ease-out infinite; }
.world .pin:nth-child(3n) .halo { animation-delay: .9s; } .world .pin:nth-child(3n+1) .halo { animation-delay: 1.7s; }
@keyframes pin-pulse { 0% { transform: scale(.6); opacity: .45; } 100% { transform: scale(2.2); opacity: 0; } }
.world figcaption { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: var(--t-xs); color: var(--cocoa-2); }
.dotkey { width: 10px; height: 10px; border-radius: 50%; background: var(--pink); }

#catalog { scroll-margin-top: 16px; }

/* catalog search + clear filters */
.catalog-search { max-width: 520px; margin: 4px 0 12px; }
.catalog-search input { padding-top: 12px; padding-bottom: 12px; font-size: var(--t-sm); }
.catalog-search:focus-within input { box-shadow: 0 0 0 2.5px var(--pink); }
.chip.clear { background: none; box-shadow: inset 0 0 0 1.5px var(--cocoa); color: var(--cocoa); }
.chip.clear:hover { background: var(--white); }
.chip.clear svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }

/* what a check looks like: before / after */
.check-compare { display: grid; gap: 14px; margin-top: 22px; align-items: stretch; }
@media (min-width: 860px) { .check-compare { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 18px; } }
.check-card { background: var(--white); border-radius: 28px; overflow: hidden; box-shadow: 0 24px 50px -36px rgba(46, 26, 20, .4); }
.check-card header { display: grid; gap: 4px; padding: 22px 24px 18px; }
.check-card.is-bad header { background: #FFE1DC; }
.check-card.is-good header { background: var(--safe); }
.check-label { font-size: var(--t-xs); font-weight: 700; color: var(--cocoa-2); }
.check-verdict { font: 400 2.4rem/1 var(--display); }
.check-card.is-bad .check-verdict { color: #C0392B; }
.check-sub { font-size: var(--t-sm); color: var(--cocoa); }
.inci { list-style: none; margin: 0; padding: 14px 16px 18px; display: grid; gap: 6px; counter-reset: inci; }
.inci li {
  counter-increment: inci; display: grid; grid-template-columns: 24px minmax(0, 1fr); column-gap: 8px; align-items: baseline;
  padding: 8px 12px; border-radius: 14px; font-size: var(--t-sm);
}
.inci li::before { content: counter(inci); grid-row: span 2; font-size: var(--t-xs); color: var(--cocoa-2); font-variant-numeric: tabular-nums; }
.inci li em { grid-column: 2; font-style: normal; font-size: var(--t-xs); font-weight: 600; margin-top: 2px; }
.inci li.flag { background: #FFE1DC; }
.inci li.flag span { font-weight: 700; color: #B03A2E; }
.inci li.flag em { color: #B03A2E; }
.inci li.swap { background: #DDF6EA; }
.inci li.swap span { font-weight: 700; color: #1F7A52; }
.inci li.swap em { color: #1F7A52; }
.inci li.gone span { text-decoration: line-through; text-decoration-thickness: 2px; color: var(--cocoa-2); }
.inci li.gone em { color: var(--cocoa-2); }
.swap-arrow { display: grid; justify-items: center; align-content: center; gap: 6px; color: var(--pink); }
.swap-arrow svg { width: 48px; height: 24px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.swap-arrow span { font-weight: 700; font-size: var(--t-sm); color: var(--cocoa); background: var(--white); padding: 6px 12px; border-radius: 999px; }
@media (max-width: 859px) { .swap-arrow svg { transform: rotate(90deg); } }

/* product view tabs */
.pv-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 999px; background: var(--blush); }
.pv-tab {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 999px;
  padding: 11px 14px; background: transparent; font: inherit; font-weight: 700; color: var(--cocoa-2); cursor: pointer;
  transition: background .2s, color .2s;
}
.pv-tab[aria-selected='true'] { background: var(--white); color: var(--cocoa); box-shadow: 0 6px 16px -10px rgba(46, 26, 20, .45); }
.pv-tab:focus-visible { outline: 2.5px solid var(--pink); outline-offset: 2px; }
.pv-count { min-width: 24px; padding: 2px 8px; border-radius: 999px; background: var(--blush-2); font-size: var(--t-xs); font-weight: 700; color: var(--cocoa); }
.pv-tab[aria-selected='true'] .pv-count { background: var(--pink-soft); }
.pv-panel { display: grid; gap: 18px; align-content: start; }
.review-summary { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-radius: 20px; background: var(--blush); }
.review-avg { font: 400 2.6rem/1 var(--display); }
.review-summary .stars { display: block; font-size: 1.1rem; }

/* share */
.catalog-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
.share-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; cursor: pointer;
  padding: 9px 14px; border-radius: 999px; background: var(--white); color: var(--cocoa); font: inherit; font-weight: 700; font-size: var(--t-sm);
  box-shadow: inset 0 0 0 1.5px var(--line);
}
.share-btn:hover { box-shadow: inset 0 0 0 1.5px var(--pink); }
.share-btn:focus-visible { outline: 2.5px solid var(--pink); outline-offset: 2px; }
.share-btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sheet-actions .share-btn { min-height: 52px; }
.toast {
  position: fixed; left: 50%; bottom: max(24px, env(safe-area-inset-bottom)); z-index: 30; transform: translate(-50%, 20px);
  padding: 12px 18px; border-radius: 999px; background: var(--cocoa); color: var(--white); font-weight: 600; font-size: var(--t-sm);
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .25s cubic-bezier(.2, .8, .3, 1.2);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- curl wall ---------- */
.nav-link {
  text-decoration: none; font-weight: 600; font-size: var(--t-sm); padding: 8px 14px; border-radius: 999px;
  white-space: nowrap; transition: background .15s;
}
.nav-link:hover, .nav-link[aria-current='page'] { background: var(--white); }
.nav-link { display: inline-flex; align-items: center; gap: 6px; }
.nav-ico { display: none; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 520px) { .nav-link { padding: 8px 10px; } .bar-actions > .btn-small { display: none; } }

.wall-page { max-width: 1000px; }
.wall-head { display: grid; gap: 10px; justify-items: start; padding-top: 18px; }
.wall-head h1 { margin: 0; font: 400 var(--t-xl)/1 var(--display); letter-spacing: -0.01em; }
.wall-head p { margin: 0 0 6px; max-width: 46ch; color: var(--cocoa-2); font-size: var(--t-md); }
.wall-layout { display: grid; gap: 28px; }
.wall-main { min-width: 0; display: grid; gap: 18px; align-content: start; }
.wall-tools { display: grid; gap: 0; }
.wall-tools .chip-row { margin-top: 0; }
.wall-tools .wall-curls { margin-top: 8px; }
.wall-sort .chip[aria-pressed='true'] { background: var(--cocoa); color: var(--white); }
.wall-curls .chip { min-width: 46px; justify-content: center; }
.wall-curls .chip[aria-pressed='true'] { background: var(--white); color: var(--cocoa); box-shadow: inset 0 0 0 2px var(--cocoa); }
.wall-feed { display: grid; gap: 26px; }
.wall-more { justify-self: center; }
.wall-aside { display: none; }
@media (min-width: 920px) {
  /* on wide screens the side card has the button, so the header doesn't need one */
  .wall-page .wall-head #share-curls { display: none; }
  .wall-layout { grid-template-columns: minmax(0, 600px) 300px; justify-content: space-between; }
  .wall-aside { display: grid; gap: 14px; align-content: start; position: sticky; top: 24px; }
}
.wall-card { background: var(--white); border-radius: 28px; padding: 24px; display: grid; gap: 14px; }
.wall-card h2 { margin: 0; font: 400 1.6rem/1.1 var(--display); }
.wall-rules { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; counter-reset: r; font-size: var(--t-sm); }
.wall-rules li { counter-increment: r; display: grid; grid-template-columns: 28px 1fr; gap: 10px; color: var(--cocoa-2); }
.wall-rules li::before { content: counter(r); display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--pink-soft); color: var(--cocoa); font-weight: 700; font-size: var(--t-xs); }
.wall-rules strong { color: var(--cocoa); }

/* a post is a polaroid */
.post {
  background: var(--white); border-radius: 6px; padding: 12px 12px 14px; display: grid; gap: 10px;
  box-shadow: 0 1px 2px rgba(46, 26, 20, .06), 0 22px 40px -26px rgba(46, 26, 20, .35);
}
.post.skeleton { height: 520px; background: linear-gradient(100deg, var(--white) 40%, var(--blush-2) 50%, var(--white) 60%) 0 0 / 300% 100%; animation: shimmer 1.4s linear infinite; }
@keyframes shimmer { to { background-position: -150% 0; } }
.post-photo-btn { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 3px; }
.post-photo { width: 100%; overflow: hidden; border-radius: 3px; background: var(--blush-2); }
.post-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-meta { display: flex; align-items: center; gap: 10px; padding: 2px 4px 0; font-size: var(--t-xs); color: var(--cocoa-2); }
.curl-badge { font: 400 1rem/1 var(--display); color: var(--cocoa); background: var(--pink-soft); padding: 6px 10px 5px; border-radius: 999px; }
.post-caption { margin: 0; padding: 0 4px; font-size: var(--t-md); line-height: 1.45; overflow-wrap: anywhere; white-space: pre-line; }
.post-credit { margin: 0; padding: 0 4px; font-size: var(--t-xs); color: var(--cocoa-2); }
.post-credit a { color: inherit; }
.post-caption.big { font-size: var(--t-lg); line-height: 1.35; }
.used { list-style: none; margin: 0; padding: 0 4px; display: flex; flex-wrap: wrap; gap: 6px; }
.used a, .used .pill {
  display: inline-flex; align-items: center; gap: 6px; max-width: 100%; text-decoration: none;
  background: var(--blush); border-radius: 999px; padding: 4px 12px 4px 4px; font-size: var(--t-xs); font-weight: 600;
}
.used a:hover { background: var(--pink-soft); }
.used img { width: 24px; height: 24px; border-radius: 50%; background: var(--white); object-fit: contain; flex: none; }
.used span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.used .pill button { border: 0; background: none; padding: 2px; cursor: pointer; display: grid; margin-right: -4px; }
.used .pill .ico svg { width: 10px; height: 10px; }
.used .pill path { stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; fill: none; }

.post-actions { display: flex; align-items: center; gap: 6px; padding: 2px 0 0; flex-wrap: wrap; }
.ico { display: inline-grid; }
.ico svg { width: 18px; height: 18px; }
.votes { display: inline-flex; align-items: center; background: var(--blush); border-radius: 999px; padding: 3px; margin-right: 4px; }
.votes .score { min-width: 34px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.vote { width: 38px; height: 38px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center; background: transparent; color: var(--cocoa); transition: background .15s, color .15s; }
.vote svg path { fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linejoin: round; }
.vote:hover { background: var(--white); }
.vote.up[aria-pressed='true'] { background: var(--pink); }
.vote.up[aria-pressed='true'] path { fill: var(--cocoa); }
.vote.down[aria-pressed='true'] { background: var(--cocoa); color: var(--white); }
.vote.down[aria-pressed='true'] path { fill: var(--white); }
.vote.pop { animation: votepop .38s var(--ease); }
@keyframes votepop { 40% { transform: scale(1.25); } }
.act { display: inline-flex; align-items: center; gap: 7px; border: 0; background: none; cursor: pointer; font-weight: 600; font-size: var(--t-sm); padding: 9px 12px; border-radius: 999px; }
.act:hover { background: var(--blush); }
.act svg path, .act svg circle { fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.post-actions .act:last-child { margin-left: auto; }
@media (max-width: 420px) { .act-label { display: none; } }

.wall-empty { background: var(--white); border-radius: 28px; padding: 40px 24px; text-align: center; display: grid; gap: 8px; justify-items: center; }
.wall-empty p { margin: 0; color: var(--cocoa-2); }
.wall-empty .wall-empty-title { font: 400 1.8rem/1.1 var(--display); color: var(--cocoa); }
.wall-empty .btn { margin-top: 10px; }

/* post view and upload sheets */
.wall-sheet .sheet-close .ico svg { width: 14px; height: 14px; }
.wall-sheet .sheet-close path { stroke: var(--cocoa); stroke-width: 2; stroke-linecap: round; fill: none; }
.post-view { display: grid; }
.post-view-photo { background: var(--cocoa); display: grid; place-items: center; }
.post-view-photo .post-photo { border-radius: 0; max-height: 70dvh; }
.post-view-photo .post-photo img { object-fit: contain; }
.post-view-side { padding: 20px 22px 28px; display: grid; gap: 14px; align-content: start; }
.post-view-side .post-meta, .post-view-side .post-caption, .post-view-side .used { padding-left: 0; padding-right: 0; }
.comments { border-top: 1px solid var(--line); padding-top: 16px; display: grid; gap: 14px; }
.comments h2 { margin: 0; font-size: var(--t-lg); letter-spacing: -0.01em; }
.comment-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.comment-list li p { margin: 2px 0 0; overflow-wrap: anywhere; white-space: pre-line; }
.comment-head { display: flex; gap: 8px; align-items: baseline; }
.comment-head time { font-size: var(--t-xs); color: var(--cocoa-2); }
.comment-form { display: grid; gap: 10px; }
.trap { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.comment-form textarea { min-height: 84px; }
.comment-form .btn { justify-self: start; }
@media (min-width: 920px) {
  .wall-sheet.wide { max-width: 1000px; width: calc(100% - 64px); height: min(760px, 88dvh); overflow: hidden; padding: 0; }
  .wall-sheet.wide .post-view { grid-template-columns: minmax(0, 1fr) 380px; height: 100%; }
  .wall-sheet.wide .post-view-photo { height: 100%; }
  .wall-sheet.wide .post-view-photo .post-photo { aspect-ratio: auto !important; height: 100%; max-height: none; }
  .wall-sheet.wide .post-view-side { overflow-y: auto; padding: 56px 28px 28px; }
}

.upload { gap: 16px; }
.upload-title { margin: 0; font: 400 2rem/1.05 var(--display); padding-right: 40px; }
.upload-sub { margin-top: -10px; font-size: var(--t-sm); }
.upload-form { gap: 18px; }
.drop {
  display: grid; justify-items: center; gap: 6px; text-align: center; cursor: pointer;
  padding: 32px 20px; border-radius: 24px; border: 2px dashed var(--pink); background: var(--blush);
  transition: background .15s, transform .15s;
}
.drop:hover, .drop.over { background: var(--pink-soft); }
.drop.busy { opacity: .6; pointer-events: none; }
.drop .ico svg { width: 40px; height: 40px; }
.drop svg path, .drop svg circle { fill: none; stroke: var(--cocoa); stroke-width: 1.6; stroke-linejoin: round; }
.drop strong { font-size: var(--t-lg); }
.drop span:last-child { font-size: var(--t-sm); color: var(--cocoa-2); }
input[type='file']:focus-visible + .drop { outline: 2.5px solid var(--pink); outline-offset: 3px; }
.drop-preview { position: relative; }
.drop-preview img { width: 100%; max-height: 340px; object-fit: cover; border-radius: 18px; display: block; }
.drop-preview .btn { position: absolute; right: 12px; bottom: 12px; }
.curl-pick { display: flex; flex-wrap: wrap; gap: 6px; }
.curl-pick .chip { background: var(--blush); min-width: 48px; justify-content: center; }
.curl-pick .chip[aria-pressed='true'] { background: var(--cocoa); color: var(--white); }
.tag-search { position: relative; }
.tag-search input { width: 100%; border: 0; border-radius: 16px; background: var(--blush); padding: 14px 16px; }
.tag-search input:focus { outline: none; box-shadow: 0 0 0 2.5px var(--pink); }
.tag-results {
  position: absolute; z-index: 3; left: 0; right: 0; top: calc(100% + 6px); list-style: none; margin: 0; padding: 6px;
  background: var(--white); border-radius: 18px; box-shadow: 0 18px 40px -12px rgba(46, 26, 20, .3);
}
.tag-results button { width: 100%; display: flex; align-items: center; gap: 10px; text-align: left; border: 0; background: none; cursor: pointer; padding: 8px 10px; border-radius: 12px; font-size: var(--t-sm); }
.tag-results button:hover, .tag-results button:focus-visible { background: var(--blush); }
.tag-results img { width: 32px; height: 32px; flex: none; }
.tag-results .muted { padding: 10px; }
.used.editable:empty { display: none; }
.consent { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; font-size: var(--t-sm); }
.consent input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--cocoa); }
.sent { display: grid; gap: 12px; justify-items: center; text-align: center; padding: 10px 0; }
.sent img { width: 180px; aspect-ratio: 4 / 5; object-fit: cover; border: 10px solid var(--white); border-bottom-width: 34px; box-shadow: 0 18px 34px -14px rgba(46, 26, 20, .35); transform: rotate(-3deg); }
.sent h2 { margin: 8px 0 0; font: 400 2rem/1 var(--display); }
.sent p { margin: 0; max-width: 34ch; color: var(--cocoa-2); }
@media (prefers-reduced-motion: reduce) { .vote.pop, .post.skeleton { animation: none; } }

/* ---------- legal pages ---------- */
.foot-legal { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.foot-legal a { color: inherit; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .35); text-underline-offset: 3px; }
.foot-legal a:hover { text-decoration-color: currentColor; }
html:not([lang='es']) .legal-es, html[lang='es'] .legal-en { display: none; }
.legal-page { max-width: 820px; gap: 22px; padding-top: 10px; }
.legal-nav { display: flex; flex-wrap: wrap; gap: 8px; }
.legal-nav a { text-decoration: none; font-weight: 600; font-size: var(--t-sm); padding: 8px 14px; border-radius: 999px; background: var(--white); }
.legal-nav a[aria-current='page'] { background: var(--cocoa); color: var(--white); }
.legal-body { background: var(--white); border-radius: 28px; padding: clamp(22px, 5vw, 44px); }
.legal-body h1 { margin: 0; font: 400 clamp(2.2rem, 7vw, 3.4rem)/1.02 var(--display); }
.legal-date { margin: 10px 0 26px; font-size: var(--t-sm); color: var(--cocoa-2); }
.legal-body h2 { margin: 30px 0 8px; font-size: var(--t-lg); letter-spacing: -0.01em; }
.legal-body p, .legal-body li { max-width: 68ch; line-height: 1.6; }
.legal-body ul { padding-left: 1.2em; }
.legal-body li { margin: 4px 0; }
.legal-body .lead { font-size: var(--t-lg); line-height: 1.45; margin-top: 0; }
.legal-body .facts { list-style: none; padding: 16px 20px; border-radius: 18px; background: var(--blush); }
.legal-body a { text-decoration-color: var(--pink); text-decoration-thickness: 1.5px; }
.table-wrap { overflow-x: auto; margin: 12px 0; border-radius: 16px; box-shadow: inset 0 0 0 1px var(--line); }
.legal-body table { border-collapse: collapse; width: 100%; min-width: 640px; font-size: var(--t-sm); }
.legal-body th, .legal-body td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); line-height: 1.45; }
.legal-body thead th { background: var(--blush); font-weight: 700; }
.legal-body tr:last-child td { border-bottom: 0; }
.legal-body code { font-size: .92em; background: var(--blush); padding: 1px 6px; border-radius: 6px; }
.todo { background: var(--warn); border-radius: 4px; padding: 0 4px; font-weight: 700; }
@media (max-width: 640px) {
  .table-wrap { box-shadow: none; overflow: visible; }
  .legal-body table, .legal-body tbody, .legal-body tr, .legal-body td { display: block; min-width: 0; }
  .legal-body thead { display: none; }
  .legal-body tr { background: var(--blush); border-radius: 16px; padding: 6px 14px; margin-bottom: 10px; }
  .legal-body td { border: 0; padding: 6px 0; }
  .legal-body td::before { content: attr(data-label); display: block; font-size: var(--t-xs); font-weight: 700; color: var(--cocoa-2); }
}

/* ---------- phones ---------- */
.region-code { display: none; font-weight: 700; }
@media (max-width: 560px) {
  .bar { gap: 8px; padding-left: 16px; padding-right: 16px; }
  .bar .wm { font-size: 1.75rem; }
  .bar-actions { gap: 4px; min-width: 0; }
  /* the wall link becomes a round icon button, like the language one */
  .nav-link { width: 40px; height: 40px; padding: 0; justify-content: center; border-radius: 50%; background: var(--white); flex: none; }
  .nav-link .nav-text { display: none; }
  .nav-ico { display: block; }
  .bar .logo { min-width: 0; flex-shrink: 1; }
  #region-name { display: none; }
  .region-code { display: inline; }
}

/* product popup on phones: same calm look as the wide view */
.verdict .curl.bg { display: none; }
.verdict.approved { background: #EAF8F0; }
.verdict.caution { background: #FFF6DC; }
.verdict.not-approved { background: #FFF0EC; color: var(--cocoa); }
.verdict-word {
  display: inline-flex; align-items: center; gap: 10px; width: fit-content; max-width: calc(100% - 96px); white-space: nowrap;
  padding: 7px 18px 7px 7px; border-radius: 999px; background: var(--safe);
  font: 400 1.7rem/1 var(--display); letter-spacing: 0; margin: 0;
}
.verdict-word::before {
  content: "✓"; display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 50%;
  font: 700 1.05rem/1 var(--sans); background: #1F7A52; color: var(--white);
}
.verdict.caution .verdict-word { background: var(--warn); }
.verdict.caution .verdict-word::before { content: "!"; background: var(--cocoa); }
.verdict.not-approved .verdict-word { background: var(--bad); color: var(--white); }
.verdict.not-approved .verdict-word::before { content: "✕"; background: var(--white); color: var(--bad); }
.verdict.unreadable .verdict-word, .verdict.pending .verdict-word, .verdict.missing .verdict-word { background: var(--white); font-size: 1.4rem; white-space: normal; }
.verdict.unreadable .verdict-word::before, .verdict.pending .verdict-word::before, .verdict.missing .verdict-word::before { content: "?"; background: var(--cocoa); }
.verdict-line { margin-top: 12px; font-size: var(--t-sm); }
@media (max-width: 919px) {
  /* roomy phone layout: verdict, a big polaroid of the bottle, then the name */
  .verdict { padding: 22px 22px 24px; }
  .verdict-line { max-width: 30ch; }
  .pv-bottle {
    display: flex; flex-direction: column; width: min(64vw, 250px); margin: 22px auto 4px;
    padding: 10px 10px 0; background: var(--white); border-radius: 3px; transform: rotate(-2deg);
    box-shadow: 0 1px 2px rgba(46, 26, 20, .08), 0 18px 32px -12px rgba(46, 26, 20, .28);
  }
  .pv-photo { display: grid; place-items: center; aspect-ratio: 4 / 5; padding: 16px 22px 8px; border-radius: 1px; background: var(--safe); }
  .verdict.caution .pv-photo { background: var(--warn); }
  .verdict.not-approved .pv-photo { background: #FFB8AA; }
  .verdict.unreadable .pv-photo, .verdict.pending .pv-photo, .verdict.missing .pv-photo { background: var(--pink-soft); }
  .pv-photo img { display: block; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 10px 12px rgba(46, 26, 20, .18)); }
  .pv-bottle figcaption { padding: 10px 4px 12px; text-align: center; font: 400 1rem/1.2 var(--display); color: var(--cocoa); }
  .pv-bottle:not(:has(figcaption)) { padding-bottom: 30px; }
  .verdict:has(.pv-bottle) .product img { display: none; }
  .product { margin-top: 18px; }
  .product > div { display: flex; flex-direction: column-reverse; gap: 4px; }
  .product strong { font-size: 1.3rem; line-height: 1.2; letter-spacing: -0.01em; }
  .product span { font-size: var(--t-xs); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; opacity: .7; }
  .product img { width: 64px; height: 78px; padding: 6px 6px 14px; border-radius: 3px; background: var(--white);
    box-shadow: 0 8px 18px -10px rgba(46, 26, 20, .4); transform: rotate(-3deg); }
  .rating-line { margin-top: 10px; }
  .sheet-body { padding: 22px 22px 0; gap: 22px; }
  .product-view .sheet-actions {
    position: sticky; bottom: 0; z-index: 1; margin: 6px -22px 0; padding: 12px 22px calc(14px + env(safe-area-inset-bottom));
    background: var(--white); box-shadow: 0 -1px 0 var(--line), 0 -10px 20px -12px rgba(46, 26, 20, .18);
  }
  .sheet-actions { grid-template-columns: repeat(auto-fit, minmax(120px, auto)); }
  .product-view .sheet-actions:has(.share-btn) { grid-template-columns: minmax(0, 1fr) 48px; }
  .sheet-actions .btn, .sheet-actions .share-btn { min-width: 0; min-height: 48px; padding: 8px 16px; font-size: var(--t-sm); line-height: 1.2; text-align: center; }
  /* share is an icon on phones, so the main button gets the room */
  .product-view .sheet-actions .share-btn { width: 48px; padding: 0; justify-content: center; }
  .product-view .sheet-actions .share-btn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  /* long verdict words (other languages) shrink and wrap instead of running under the buttons */
  .verdict-word { font-size: clamp(1.25rem, 6.4vw, 1.7rem); white-space: normal; line-height: 1.05; padding-top: 6px; padding-bottom: 6px; }
  .pv-tabs { margin: 0; }
}

/* product cards on phones: a tidy tile */
@media (max-width: 639px) {
  .grid { gap: 12px 10px; }
  .card { background: var(--white); border-radius: 20px; padding: 6px 6px 12px; gap: 2px; }
  .card-img { aspect-ratio: 1 / 1; border-radius: 15px; background: var(--blush); padding: 10px; margin-bottom: 6px; }
  .card-brand, .card-name, .card-foot { padding: 0 6px; }
  .card-name { font-size: .875rem; }
  .card-foot { margin-top: 4px; }
}

/* rotating globe (how it works) */
.globe-fig { display: grid; justify-items: center; }
.globe { display: block; width: min(100%, 440px); aspect-ratio: 1; cursor: grab; touch-action: pan-y; }
.globe:active { cursor: grabbing; }

/* country + language button and panel */
.locale-btn { gap: 7px; }
.locale-btn .locale-flag { font-size: 1.15rem; line-height: 1; }
.locale-sheet {
  border: 0; padding: 0; width: min(560px, calc(100% - 32px)); max-height: min(720px, 86dvh); border-radius: 28px;
  background: var(--white); color: var(--cocoa); box-shadow: 0 30px 80px -30px rgba(46, 26, 20, .5); overflow: auto;
}
.locale-sheet::backdrop { background: rgba(46, 26, 20, .42); }
.locale-sheet[open] { animation: pop .28s var(--ease); }
.locale-head { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 20px 22px 14px; background: var(--white); }
.locale-head h2 { margin: 0; font: 400 1.6rem/1.1 var(--display); }
.locale-close svg { width: 14px; height: 14px; }
.locale-close path { stroke: var(--cocoa); stroke-width: 2; stroke-linecap: round; }
.locale-sheet section { padding: 4px 22px 18px; }
.locale-sheet h3 { margin: 0 0 10px; font-size: var(--t-md); }
.locale-sheet h4 { margin: 14px 0 8px; font-size: var(--t-xs); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--cocoa-2); }
.locale-note { margin: -4px 0 4px; font-size: var(--t-sm); color: var(--cocoa-2); }
.locale-langs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.locale-countries { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; }
.locale-sheet section button {
  display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 12px; border: 0; border-radius: 14px;
  background: var(--blush); color: var(--cocoa); font: inherit; font-size: var(--t-sm); font-weight: 600; text-align: left; cursor: pointer;
}
.locale-sheet section button:hover { background: var(--pink-soft); }
.locale-sheet section button[aria-pressed='true'] { background: var(--white); box-shadow: inset 0 0 0 2px var(--cocoa); }
.locale-sheet .locale-flag { font-size: 1.2rem; line-height: 1; }
@media (max-width: 560px) {
  .locale-sheet { width: 100%; max-width: none; margin: auto 0 0; border-radius: 28px 28px 0 0; max-height: 88dvh; }
  .locale-sheet[open] { animation: rise .36s var(--ease); }
  .locale-countries { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
