/* LES-topplistan bortom vinet – article-specific styles. Builds on assets/css/site.css.
   Colour groups (validated on the dark chart surfaces, all pairs): sprit = gold, likör & shots = rose,
   blanddryck & cider = teal. Shape carries packaging (circle = flaska, square = burk). */

:root { --c-sprit: #ae8c1e; --c-likor: #d9668a; --c-rtd: #2c9fbc; }
.c-sprit { --c: var(--c-sprit); } .c-likor { --c: var(--c-likor); } .c-rtd { --c: var(--c-rtd); }
.toc a i.c-sprit, .toc a i.c-likor, .toc a i.c-rtd { background: var(--c); }
.legend span[class^="c-"] i { background: var(--c); }

/* ---------- hero shelf: top 10 at true relative pack size ---------- */
.shelf { margin: 0 auto; }
.shelf__frame {
  --objh: clamp(170px, 21vw, 300px);
  /* a white display case: cut-out product photos read best on white, like on Systembolaget */
  position: relative; overflow: hidden; border-radius: 12px;
  background: radial-gradient(ellipse 80% 70% at 50% 0%, #ffffff 0%, #fdfbf8 55%, #f5f0ea 100%);
  padding: clamp(36px, 5vw, 72px) clamp(14px, 3vw, 48px) clamp(26px, 3.4vw, 44px);
  transform-origin: 50% 0;
}
.shelf__glow {
  position: absolute; left: 50%; top: 10%; width: min(90%, 900px); aspect-ratio: 2.4; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(140, 35, 55, 0.07), rgba(140, 35, 55, 0.02) 60%, transparent 75%);
  filter: blur(10px); pointer-events: none;
}
.shelf__rows {
  list-style: none; margin: 0; padding: 0; position: relative;
  display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); column-gap: clamp(6px, 1.2vw, 18px); row-gap: clamp(30px, 5vw, 48px);
}
.shelf__item { position: relative; display: grid; grid-template-rows: var(--objh) auto; justify-items: center; min-width: 0; }
.shelf__obj { width: 100%; height: 100%; display: flex; align-items: flex-end; justify-content: center; position: relative; z-index: 1; }
.shelf__obj svg { width: 100%; height: 100%; overflow: visible; }
.shelf__obj .shp { transition: transform 0.5s var(--ease); transform-origin: 50% 100%; transform-box: fill-box; }
.shelf__item:hover .shp, .shelf__item.is-on .shp { transform: translateY(-6px); }
/* product photos: height is set inline from pack volume and shape; width follows the photo */
.shelf__obj .shelf__img { width: auto; max-width: 118%; flex: none; object-fit: contain; position: relative; z-index: 1; filter: drop-shadow(0 10px 10px rgba(29, 22, 24, 0.16)); cursor: pointer; }
.shelf__obj::after { content: ""; position: absolute; bottom: -3px; left: 18%; right: 18%; height: 9px; background: radial-gradient(closest-side, rgba(29, 22, 24, 0.28), transparent); z-index: 0; }
/* the plank: each item draws its own segment so rows join up when the shelf wraps */
.shelf__item::after {
  content: ""; position: absolute; top: var(--objh); left: calc(clamp(6px, 1.2vw, 18px) / -2 - 1px); right: calc(clamp(6px, 1.2vw, 18px) / -2 - 1px);
  height: 12px; background: linear-gradient(180deg, #f7f3ee 0, #e6dfd5 3px, #dad1c5 100%);
  box-shadow: 0 8px 14px rgba(29, 22, 24, 0.1);
}
/* shelf-edge labels: dark tags on the light shelf, coloured edge = group */
.shelf__tag {
  position: relative; z-index: 2; margin-top: 4px; width: 100%; max-width: 132px; display: grid; gap: 2px; justify-items: start;
  background: #1d1618; color: #f4ece2; border: 0; border-top: 3px solid var(--c); border-radius: 2px 2px 4px 4px;
  padding: 8px 9px 9px; text-align: left; cursor: pointer; font: inherit; box-shadow: 0 6px 14px rgba(29, 22, 24, 0.18);
  transition: transform 0.35s var(--ease), box-shadow 0.35s;
}
.shelf__tag:hover, .shelf__tag:focus-visible, .shelf__item.is-on .shelf__tag { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(29, 22, 24, 0.26); }
.shelf__tag:focus-visible { outline: 2px solid #1d1618; outline-offset: 3px; }
.shelf__rk { font-family: var(--f-mono); font-size: 0.68rem; letter-spacing: 0.08em; color: #b4a6a0; }
.shelf__nm { font-size: 0.78rem; line-height: 1.2; font-weight: 500; min-height: 2.4em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.shelf__les { font-family: var(--f-mono); font-size: 0.68rem; color: #b4a6a0; font-variant-numeric: tabular-nums; }
.shelf__les b { font-family: var(--f-display); font-weight: 600; font-size: 1.35rem; color: #f4ece2; letter-spacing: -0.01em; margin-right: 3px; }
.shelf__cap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; margin-top: 16px; color: var(--mute); font-size: var(--t-s); }
.shelf__key { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 0.82rem; }
.shelf__key i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--c); margin-left: 6px; }
.shelf__key i:first-child { margin-left: 0; }
@media (max-width: 760px) {
  .shelf__frame { --objh: clamp(130px, 38vw, 200px); }
  .shelf__rows { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .shelf__nm { display: none; }
  .shelf__tag { padding: 6px 6px 7px; justify-items: center; text-align: center; }
  .shelf__les { display: grid; justify-items: center; gap: 3px; line-height: 1; }
  .shelf__les b { display: block; font-size: 1.1rem; line-height: 1; margin: 0; }
}

/* ---------- method ---------- */
.method { margin: clamp(56px, 7vw, 110px) 0 clamp(40px, 5vw, 72px); scroll-margin-top: calc(var(--hdr) + 16px); }
.method__h { font-family: var(--f-display); font-weight: 500; font-size: clamp(1.6rem, 2.8vw, 2.5rem); line-height: 1; letter-spacing: -0.01em; margin: 0 0 clamp(20px, 2.6vw, 32px); }
.method__grid { list-style: none; margin: clamp(10px, 2vw, 24px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(10px, 1.4vw, 18px); }
.method__card { border: 1px solid var(--line-2); border-radius: 12px; padding: clamp(16px, 1.8vw, 24px); display: grid; gap: 8px; align-content: start; background: rgba(255, 255, 255, 0.35); }
.method__k { display: inline-flex; align-items: center; gap: 8px; font-family: var(--f-mono); font-size: var(--t-xs); letter-spacing: 0.12em; text-transform: uppercase; color: var(--mute); }
.method__k i { width: 9px; height: 9px; border-radius: 50%; background: var(--c); }
.method__n { font-family: var(--f-display); font-weight: 600; font-size: clamp(2.4rem, 4vw, 3.6rem); line-height: 1; color: var(--paper); font-variant-numeric: lining-nums; }
.method__l { color: var(--soft); font-size: 0.95rem; line-height: 1.45; }
@media (max-width: 900px) { .method__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- pairs: same demand, different shelves ---------- */
.pairs-block { margin-top: 0; }
.pairs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 20px); }
.pair { border: 1px solid var(--line); border-radius: 12px; padding: clamp(16px, 2vw, 24px); display: grid; gap: 14px; align-content: start; background: rgba(244, 236, 226, 0.02); }
.pair__k { margin: 0; font-family: var(--f-mono); font-size: var(--t-xs); letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); }
.pair__h { margin: 0; font-family: var(--f-display); font-weight: 500; font-size: clamp(1.5rem, 2.2vw, 2rem); line-height: 1.05; color: var(--paper); }
.db { position: relative; height: 38px; margin: 6px 0 0; }
.db__track { position: absolute; left: 0; right: 0; top: 14px; height: 2px; background: var(--line-2); border-radius: 2px; }
.db__tick { position: absolute; top: 20px; transform: translateX(-50%); font-family: var(--f-mono); font-size: 0.66rem; color: var(--faint); }
.db__tick::before { content: ""; position: absolute; left: 50%; top: -9px; width: 1px; height: 6px; background: var(--line-2); }
.db__gap { position: absolute; top: 13px; height: 4px; border-radius: 2px; background: rgba(244, 236, 226, 0.4); }
.db__dot { position: absolute; top: 15px; width: 14px; height: 14px; border-radius: 50%; background: var(--c); transform: translate(-50%, -50%); box-shadow: 0 0 0 2px var(--ink-2); }
.db__dot.sq { border-radius: 3px; }
.pair__rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.pair__row { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; gap: 4px 12px; align-items: baseline; }
.pair__row > i { width: 9px; height: 9px; border-radius: 50%; background: var(--c); align-self: center; }
.pair__row > i.sq { border-radius: 2px; }
.pair__row .pm { font-size: 0.95rem; }
.pair__row small { grid-column: 2; color: var(--faint); font-family: var(--f-mono); font-size: 0.72rem; letter-spacing: 0.02em; }
.pair__row b { grid-row: 1 / span 2; grid-column: 3; font-family: var(--f-display); font-weight: 600; font-size: 1.6rem; line-height: 1; color: var(--paper); font-variant-numeric: lining-nums tabular-nums; }
.pair__row b small { display: block; grid-column: auto; text-align: right; font-family: var(--f-mono); font-weight: 400; font-size: 0.62rem; color: var(--faint); margin-top: 2px; }
@media (max-width: 760px) { .pairs { grid-template-columns: minmax(0, 1fr); } }

/* scatter: square marks for cans read as "burk" */
.scatter .ann text { font-size: 16px; }
