/* upptack-sheet.css — the wine sheet (upptack-sheet.js) and the röd tråd's simpler landing and producer page
   (docs/design/rod-trad.md §3–§4, 2026-10-11). The site's tokens (v9-shared.css); pink only for commitment. */

/* ── the wine sheet ── */
body.upv-open { overflow: hidden; }
.upv-root { position: fixed; inset: 0; z-index: 2000; }   /* over the site's top bar and the phone's tab bar */
.upv-shade { position: absolute; inset: 0; background: rgba(20, 14, 10, .45); opacity: 0; transition: opacity .2s ease; }
.upv { position: absolute; left: 0; right: 0; bottom: 0; max-height: 94vh; max-width: 640px; margin: 0 auto; display: flex; flex-direction: column;
  background: var(--white); border-radius: 20px 20px 0 0; box-shadow: 0 -10px 40px rgba(0,0,0,.18);
  transform: translateY(100%); transition: transform .26s cubic-bezier(.2,.8,.2,1); padding-bottom: env(safe-area-inset-bottom, 0px); }
.upv-root.in .upv-shade { opacity: 1; } .upv-root.in .upv { transform: none; }
.upv-bar { position: relative; flex: 0 0 auto; height: 34px; display: flex; align-items: center; justify-content: center; touch-action: none; }
.upv-grip { width: 42px; height: 5px; border-radius: 3px; background: var(--border); }
.upv-x { position: absolute; right: 10px; top: 4px; width: 32px; height: 32px; border: 0; border-radius: 50%; background: var(--bg); color: var(--text-mid); font-size: 15px; cursor: pointer; }
.upv-in { overflow-y: auto; padding: 0 20px 24px; -webkit-overflow-scrolling: touch; }
.upv-top { display: flex; gap: 16px; align-items: flex-start; }
/* the label big enough to read, natural shape, nothing to tap (Martin 2026-11-16, his ten #4: "when I look up a bottle
   I want to see the label" — and no zoom: the only buttons are heart, önska, book, share). 800 px sources. */
.upv-pic { display: block; width: auto; max-width: 100%; height: auto; max-height: 56vh; margin: 0 auto 14px; object-fit: contain; border-radius: 10px; }
.upv-top h2 { margin: 2px 0 4px; font-size: 22px; line-height: 1.15; text-wrap: balance; }
.upv-style { margin: 0; color: var(--text-mid); font-size: 14.5px; }
.upv-prod { display: inline-block; margin-top: 6px; font-weight: 600; color: var(--text); }
.upv-line { margin: 14px 0 0; font-size: 16px; line-height: 1.45; } .upv-line small { color: var(--text-light); }
.upv-sec { margin-top: 18px; } .upv-sec h3 { margin: 0 0 6px; font-size: 13px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--text-light); }
.upv-verdict { margin: 0 0 6px; font-weight: 700; font-size: 17px; } .upv-verdict.out { color: var(--text-mid); }
.upv-alt { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--border); font-size: 15px; }
.upv-more { margin-top: 18px; border-top: 1px solid var(--border); padding-top: 10px; }
.upv-more summary { cursor: pointer; font-weight: 700; padding: 6px 0; }
.upv-more .wine-box { margin-top: 10px; }

/* ── the landing: one group of three doors; the proof line in the band ── */
.up-proof { margin: 12px 0 0; font-size: 14px; opacity: .85; } .up-proof b { font-weight: 700; }
.up-doors.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 760px) { .up-doors.three { grid-template-columns: minmax(0, 1fr); } }

/* ── the producer page: the story in three lines, five wines per colour, folded side lists ── */
.up-sum.clamp { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; cursor: pointer; }
.up-sum.clamp::after { content: ''; }
.up-rows > .up-wine.more { display: none; } .up-rows.all > .up-wine.more { display: grid; }
.up-allw { margin: 6px 0 4px; background: none; border: 0; padding: 4px 0; color: var(--text-mid); font: inherit; font-weight: 600; cursor: pointer; }
.up-det { margin: 18px 0 0; border-top: 1px solid var(--border); padding-top: 8px; }
.up-det > summary { cursor: pointer; font-weight: 700; padding: 6px 0; list-style-position: inside; }
.up-det > summary small { color: var(--text-light); font-weight: 400; margin-left: 6px; }
.up-onward { margin: 18px 0 8px; color: var(--text-mid); font-size: 14.5px; }

/* ── Önska härnäst at the top of Hjärtan (upptack-next.js) ── */
.upn { margin: 10px 0 22px; padding: 18px 18px 8px; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); }
.upn h2 { margin: 0; font-size: 21px; } .upn-lead { margin: 4px 0 6px; color: var(--text-mid); font-size: 14.5px; }
.upn-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 14px 0; border-top: 1px solid var(--border); color: inherit; text-decoration: none; }
.upn-row .nm { font-weight: 700; font-size: 16.5px; } .upn-row .meta { color: var(--text-mid); font-size: 14px; }
.upn-row .why { color: var(--indigo); font-size: 14px; margin-top: 2px; }
.upn-goal { display: flex; align-items: center; gap: 10px; margin-top: 6px; font-size: 13.5px; color: var(--text-mid); }
.upn-goal .up-bar { flex: 0 0 90px; } .upn-goal b { color: var(--pink); }

/* ── 2026-11-16, Martin's ten for the release ── */
/* the bottle at a list row's head (#1, #4) — none held, none drawn */
.up-row.has-pic { grid-template-columns: 72px minmax(0, 1fr) auto; }
.up-row .up-pic { width: 72px; height: 104px; display: flex; align-items: center; justify-content: center; align-self: start; }
.up-row .up-pic img { max-width: 72px; max-height: 104px; object-fit: contain; border-radius: 4px; }
@media (max-width: 640px) {
  .up-row.has-pic { grid-template-columns: 72px minmax(0, 1fr); gap: 6px 14px; }
  .up-row.has-pic > .up-pic { grid-row: span 2; }
  .up-row.has-pic > .up-more, .up-row.has-pic > .up-hearts { grid-column: 2; }
}
/* a sheet opened FROM the wine sheet (önska, sign-in, booking) opens over it, never under (bug seen 2026-11-15) */
body.upv-open .sheet-veil, body.upv-open .fws-back, body.upv-open .fwc-back { z-index: 2040; }
body.upv-open .ask-sheet { z-index: 2050; }
/* the toast is tappable only while shown (the way to sign in after a kept heart), above the wine sheet */
.wish-toast { pointer-events: none; } .wish-toast.show { pointer-events: auto; z-index: 2100; }
/* the sign-in sheet (mockup v13.0): "eller" between Google and the e-mail; the code in large spaced digits */
.auth-or { display: flex; align-items: center; gap: 10px; color: var(--text-light); font-size: 13px; margin: 14px 0 2px; }
.auth-or::before, .auth-or::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.auth-code-in { font-size: 24px; letter-spacing: 8px; text-align: center; font-weight: 700; }
