/* Shelf Check: road-sign world. Concrete ground, navy ink, Overpass lettering.
   Signature: the inverted ticket (dark, leads with how long the "Was" price lasted).
   No supermarket colours: no red, no yellow ticket fills, no green. Every verdict sign carries its text label. */
@font-face { font-family: Overpass; src: url(fonts/overpass-latin.woff2) format('woff2'); font-weight: 100 900; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Overpass; src: url(fonts/overpass-latin-ext.woff2) format('woff2'); font-weight: 100 900; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --ground: #eceeed;
  --paper: #ffffff;
  --ink: #13212c;
  --muted: #4b5863;
  --line: #d3d8d7;
  --seg: #dce0df;
  --amber: #f2b705;
  --amber-ink: #8a6400;
  --blue: #1d4e89;
  --blue-soft: #9cc3f0;
  --night: #13212c;
  --night-2: #22333f;
  --night-text: #c8d1d8;
  --night-rule: #3a4b57;
  --font: Overpass, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100dvh; display: flex; flex-direction: column;
  background: var(--ground); color: var(--ink);
  font: 400 1rem/1.45 var(--font); font-variant-numeric: tabular-nums;
  -webkit-tap-highlight-color: transparent;
}
::selection { background: var(--amber); color: var(--ink); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 8px; }
a { color: inherit; text-underline-offset: 3px; }
main, .top, .foot { width: 100%; max-width: 40rem; margin-inline: auto; padding-inline: 1.125rem; }
main { flex: 1; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Verdict signs: self-contained SVGs, readable on light and dark grounds. */
.sign { display: inline-block; width: 24px; height: 24px; flex: none; background: center / contain no-repeat; }
.sign.pattern { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='4' y='4' width='16' height='16' rx='2' transform='rotate(45 12 12)' fill='%23f2b705' stroke='%2313212c' stroke-width='1.6'/%3E%3Cpath d='M12 7.8v5.4M12 16.3v.2' stroke='%2313212c' stroke-width='2.3' stroke-linecap='round'/%3E%3C/svg%3E"); }
.sign.real { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='3' y='3' width='18' height='18' rx='4' fill='%231d4e89' stroke='%239cc3f0' stroke-width='1'/%3E%3Cpath d='m7.5 12.3 3 3 6-6.3' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.sign.no_steady { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='9.5' fill='%23dce8f5' stroke='%231d4e89' stroke-width='1.6'/%3E%3Cpath d='M6.8 12.6c1.3-2.4 2.6-2.4 3.9 0s2.6 2.4 3.9 0 2.6-2.4 3.9 0' fill='none' stroke='%231d4e89' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); }
.sign.not_special { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='3' y='3' width='18' height='18' rx='4' fill='%23e3e7e6' stroke='%234b5863' stroke-width='1.4'/%3E%3Cpath d='M8 12h8' stroke='%2313212c' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E"); }
.sign.not_enough { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='9.5' fill='%23fff' stroke='%234b5863' stroke-width='1.6' stroke-dasharray='3 2.4'/%3E%3Ccircle cx='8' cy='12' r='1.4' fill='%2313212c'/%3E%3Ccircle cx='12' cy='12' r='1.4' fill='%2313212c'/%3E%3Ccircle cx='16' cy='12' r='1.4' fill='%2313212c'/%3E%3C/svg%3E"); }

/* Shell */
.top { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding-block: 1rem .25rem; }
.brand { display: inline-flex; align-items: center; gap: .5rem; font-weight: 800; font-size: 1.125rem; letter-spacing: -0.01em; text-decoration: none; }
.brand .logo { display: inline-block; width: 30px; height: 30px; background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Crect width='64' height='64' rx='14' fill='%2313212c'/%3E%3Crect x='9' y='22' width='46' height='24' rx='3' fill='%23fff'/%3E%3Crect x='9' y='19' width='46' height='5' rx='1.5' fill='%239aa7b1'/%3E%3Crect x='15' y='30' width='16' height='3.5' rx='1.75' fill='%2313212c'/%3E%3Crect x='15' y='36.5' width='10' height='3.5' rx='1.75' fill='%2313212c' opacity='.45'/%3E%3Crect x='37' y='27' width='13' height='13' rx='2.5' transform='rotate(45 43.5 33.5)' fill='%23f2b705' stroke='%2313212c' stroke-width='1.4'/%3E%3Cpath d='M43.5 29v5M43.5 37.4v.2' stroke='%2313212c' stroke-width='2.6' stroke-linecap='round'/%3E%3C/svg%3E"); }
.stores { display: flex; background: var(--seg); border-radius: 10px; padding: 3px; }
.stores button {
  font: 700 .8125rem/1 var(--font); color: var(--muted); background: transparent; border: 0; border-radius: 8px;
  padding: .55rem .7rem; min-height: 36px; cursor: pointer;
}
.stores button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.stores button:not([aria-pressed="true"]):hover { color: var(--ink); }

.lede { font-weight: 800; font-size: clamp(2rem, 9vw, 2.6rem); line-height: 1; letter-spacing: -0.03em; margin: 1.25rem 0 .6rem; text-wrap: balance; }
.lede-sub { margin: 0 0 1.1rem; color: var(--muted); font-weight: 600; max-width: 34ch; }

.search { position: sticky; top: 0; z-index: 2; background: var(--ground); padding-block: .35rem .5rem; }
.search label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.search .box { display: flex; align-items: center; gap: .6rem; background: var(--paper); border: 2px solid var(--ink); border-radius: 12px; padding-inline: .9rem; }
.search .box:focus-within { box-shadow: 0 0 0 4px rgb(29 78 137 / .22); }
.search svg { flex: none; }
.search input { flex: 1; min-width: 0; font: 400 1.0625rem var(--font); color: var(--ink); background: transparent; border: 0; padding: .85rem 0; outline: none; }
.search input::placeholder { color: #66717b; }
.search input::-webkit-search-cancel-button { cursor: pointer; }

.status { min-height: 1.4em; margin: .35rem 0; font-size: .875rem; color: var(--muted); }
.status:empty { min-height: 0; margin: 0; }
.chips { display: flex; gap: .5rem; overflow-x: auto; scrollbar-width: none; margin: .25rem -1.125rem 0; padding: .25rem 1.125rem; }
.chips[hidden] { display: none; }
.chips::-webkit-scrollbar { display: none; }
.chips button {
  display: inline-flex; align-items: center; gap: .4rem; flex: none; min-height: 40px; padding: 0 .9rem;
  font: 700 .875rem/1 var(--font); color: var(--ink); background: var(--paper); border: 1.5px solid var(--line); border-radius: 999px; cursor: pointer;
  transition: background-color .15s ease-out, border-color .15s ease-out;
}
.chips button .sign { width: 16px; height: 16px; }
.chips button span:last-child { color: var(--muted); font-weight: 600; }
.chips button:hover { border-color: var(--ink); }
.chips button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.chips button[aria-pressed="true"] span:last-child { color: var(--night-text); }

/* Result rows */
.results { list-style: none; margin: 0; padding: 0; }
.results li + li { border-top: 1px solid var(--line); }
.results a {
  display: grid; grid-template-columns: 26px 1fr auto; align-items: center; column-gap: .75rem;
  padding: .75rem .25rem; text-decoration: none; min-height: 56px; border-radius: 10px;
}
.results a:hover .name { text-decoration: underline; }
.results a:active { background: #e2e6e5; }
.name { font-weight: 700; line-height: 1.25; }
.size { font-weight: 600; color: var(--muted); }
.verdict-label { display: block; font-size: .8125rem; color: var(--muted); font-weight: 500; margin-top: .1rem; }
.price { font-weight: 800; font-size: 1.0625rem; text-align: right; }
.price.special { display: grid; justify-items: end; line-height: 1.15; }
.price .was { font-size: .8125rem; font-weight: 600; color: var(--muted); }

/* Sections on home */
.sect { display: flex; justify-content: space-between; align-items: baseline; gap: .75rem; margin: 2rem 0 .75rem; }
.sect h2 { font-size: 1.25rem; font-weight: 800; letter-spacing: -0.015em; line-height: 1.1; margin: 0; }
.sect a { color: var(--blue); font-weight: 700; font-size: .875rem; white-space: nowrap; text-decoration: none; }
.sect a:hover { text-decoration: underline; }

/* The inverted ticket, small: the daily list on home and the list page */
.deck { display: flex; gap: .75rem; overflow-x: auto; margin-inline: -1.125rem; padding: .125rem 1.125rem .5rem;
  scroll-snap-type: x mandatory; scroll-padding-inline: 1.125rem; scrollbar-width: none; overscroll-behavior-x: contain; }
.deck::-webkit-scrollbar { display: none; }
.mini {
  flex: 0 0 15rem; scroll-snap-align: start; display: grid; gap: .6rem; align-content: start;
  background: var(--night); color: #fff; border-radius: 14px; padding: .9rem; text-decoration: none;
  box-shadow: 0 1px 2px rgb(19 33 44 / .2), 0 8px 18px -10px rgb(19 33 44 / .45);
  transition: transform .2s cubic-bezier(.2, .8, .2, 1);
}
.mini:hover { transform: translateY(-2px); }
.mini:active { transform: translateY(0); }
.mini .plate { display: flex; gap: .5rem; align-items: flex-start; font-size: .8125rem; font-weight: 800; line-height: 1.25; color: var(--amber); }
.mini .plate .sign { width: 18px; height: 18px; }
.mini .nm { font-weight: 700; line-height: 1.2; }
.mini .nm small { display: block; color: var(--night-text); font-weight: 600; font-size: .8125rem; margin-top: .1rem; }
.mini .was { font-size: 1.65rem; font-weight: 800; line-height: 1; letter-spacing: -0.02em; }
.mini .was small { display: block; font-size: .8125rem; font-weight: 600; color: var(--night-text); letter-spacing: 0; margin-top: .3rem; }
.mini .now { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--night-rule); padding-top: .55rem; font-size: .8125rem; color: var(--night-text); }
.mini .now strong { color: #fff; font-size: 1.125rem; }
.stack { display: grid; gap: .75rem; list-style: none; margin: 0; padding: 0; }

/* Product page */
.back { display: inline-flex; align-items: center; min-height: 44px; color: var(--blue); font-weight: 700; text-decoration: none; }
.back:hover { text-decoration: underline; }
.p-name { font-size: clamp(1.5rem, 6.5vw, 1.9rem); font-weight: 800; line-height: 1.08; letter-spacing: -0.02em; margin: .25rem 0 .2rem; text-wrap: balance; }
.p-meta { margin: 0 0 1rem; color: var(--muted); font-weight: 600; }
.sep { display: inline-block; width: 4px; height: 4px; border-radius: 50%; background: currentColor; vertical-align: middle; margin: 0 .55em; }

.ticket { background: var(--night); color: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 2px 4px rgb(19 33 44 / .18), 0 16px 30px -18px rgb(19 33 44 / .6); }
.ticket .plate { display: flex; gap: .85rem; align-items: center; padding: 1rem; background: var(--night-2); }
.ticket .plate .sign { width: 40px; height: 40px; }
.ticket .plate h2 { margin: 0; font-size: 1.2rem; font-weight: 800; line-height: 1.15; }
.ticket .body { padding: 1rem; }
.ticket .lead { display: block; color: var(--night-text); font-weight: 600; }
.ticket .big { display: block; font-size: clamp(1.75rem, 8vw, 2.2rem); font-weight: 800; line-height: 1.05; letter-spacing: -0.025em; margin: .15rem 0 .35rem; }
.ticket .yard { margin: 0; color: var(--night-text); }
.ticket.pattern .yard em, .ticket.pattern .plate h2 { font-style: normal; }
.ticket .lines p { margin: 0 0 .35rem; color: var(--night-text); }
.ticket .now { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-top: .9rem; padding-top: .75rem; border-top: 1px dashed #4a5c69; color: var(--night-text); }
.ticket .now strong { font-size: 1.6rem; color: #fff; letter-spacing: -0.02em; }

.steps { list-style: none; margin: .85rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); background: var(--paper); border: 1px solid var(--line); border-radius: 14px; }
.steps li { padding: .75rem .7rem; }
.steps li + li { border-left: 1px solid var(--line); }
.steps b { display: block; font-size: 1.3rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
.steps span { display: block; font-size: .8125rem; line-height: 1.3; color: var(--muted); margin-top: .2rem; }
.steps .up b { color: var(--amber-ink); }

.p-chart { margin: .85rem 0 0; padding: .85rem .75rem .5rem; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; }
.p-chart figcaption { font-weight: 800; font-size: .9375rem; margin: 0 0 .35rem .15rem; }
.chart { display: block; width: 100%; height: auto; }
.chart .grid { stroke: #e3e6e5; stroke-width: 1; }
.chart .tick { font: 500 10.5px var(--font); fill: var(--muted); }
.chart .line { fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-linejoin: round; }
.chart .band.pattern { fill: var(--amber); opacity: .28; }
.chart .band.real { fill: var(--blue-soft); opacity: .4; }
.chart .bandlabel { font: 800 10.5px var(--font); fill: var(--ink); transition: opacity .12s ease-out; }
.chart.scrubbing .bandlabel { opacity: 0; }
.chart .cut { fill: var(--ink); stroke: #fff; stroke-width: 2; }
.chart[tabindex] { touch-action: pan-y; cursor: crosshair; -webkit-user-select: none; user-select: none; }
.chart .guide { stroke: var(--ink); stroke-width: 1.2; stroke-dasharray: 3 3; }
.chart .scrubdot { fill: var(--amber); stroke: var(--ink); stroke-width: 2; }
.chart .tip rect { fill: var(--night); }
.chart .tip text { font: 700 11px var(--font); fill: #fff; }
.p-chart .hint { font-size: .8125rem; color: var(--muted); margin: .25rem .15rem 0; }
.steps li { transition: background-color .15s ease-out; }
.steps li.lit { background: #fdf3cc; }
.steps li:first-child.lit { border-radius: 13px 0 0 13px; }
.steps li:last-child.lit { border-radius: 0 13px 13px 0; }

.p-lines { margin: 0 0 .75rem; padding: 0; list-style: none; }
.p-lines li { padding: .4rem 0; border-bottom: 1px solid var(--line); }
.p-why { margin: 1rem 0; padding: .25rem 1rem; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; }
.p-why summary { font-weight: 800; cursor: pointer; min-height: 44px; display: flex; align-items: center; }
.p-why a { color: var(--blue); font-weight: 700; }
.p-caveat { font-size: .875rem; color: var(--muted); margin: 1rem 0 1.5rem; }

.share {
  display: flex; align-items: center; justify-content: center; gap: .55rem; width: 100%; min-height: 48px; margin: 1rem 0 0;
  font: 800 1rem/1 var(--font); color: var(--ink); background: var(--paper); border: 2px solid var(--ink); border-radius: 12px; cursor: pointer;
  transition: background-color .15s ease-out, transform .15s ease-out;
}
.share:hover { background: #f6f7f7; }
.share:active { transform: scale(.98); }
.share:disabled { opacity: .6; cursor: progress; }
.share-status:empty { display: none; }

/* List page */
.list-intro { color: var(--muted); margin: 0 0 .5rem; }
.empty { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 1rem; color: var(--muted); }

#view-other h1 { font-size: 1.6rem; letter-spacing: -0.02em; margin: .5rem 0; }

.foot { padding-block: 1.5rem 2rem; font-size: .8125rem; color: var(--muted); margin-top: 2rem; border-top: 1px solid var(--line); }
.foot p { margin: .2rem 0; }
.foot a { color: var(--blue); font-weight: 700; }

/* About */
.about h1 { font-size: clamp(1.75rem, 7vw, 2.2rem); font-weight: 800; line-height: 1.05; letter-spacing: -0.025em; margin: .25rem 0 1rem; }
.about h2 { font-size: 1.15rem; font-weight: 800; margin: 1.75rem 0 .35rem; }
.about p, .about li { max-width: 68ch; }
.about a { color: var(--blue); font-weight: 700; }
.key { list-style: none; padding: 0; margin: .5rem 0 0; display: grid; gap: .75rem; }
.key li { display: grid; grid-template-columns: 24px 1fr; gap: .75rem; align-items: start; }

@media (prefers-reduced-motion: reduce) { .mini { transition: none; } .mini:hover { transform: none; } }
