/* Nice Drop · polish layer
   Loaded after the app's own styles. It pares the interface back to one calm system:
   one accent (oxblood) for the main action and selected states, hairlines instead of heavy outlines,
   flat cards with no drop shadows, pale tints instead of solid colour blocks, the serif only for
   titles and wine names, and quiet, consistent focus, hover and press states. */

:root {
  --p-canvas: #F7F1E3;
  --p-card: #FFFCF5;
  --p-ink: #231B18;
  --p-ink-2: #6A5E57;
  --p-ink-3: #8B8077;
  --p-accent: #651F2A;
  --p-accent-tint: #F3E6E3;
  --p-hair: rgba(35, 27, 24, .1);
  --p-hair-strong: rgba(35, 27, 24, .18);
  --p-fill: rgba(35, 27, 24, .06);
  --p-fill-2: rgba(35, 27, 24, .1);
  --p-rose: #F5E5DF;
  --p-honey: #F5EBD2;
  --p-olive: #E8E8DA;
  --p-ring: rgba(101, 31, 42, .42);
  --p-ease: cubic-bezier(.2, .8, .2, 1);
}

/* ---------- Type: the serif for titles and wine names, DM Sans for everything else ---------- */
html body { font-variation-settings: "SOFT" 50, "WONK" 0; }
html body .large-title h1 { font-size: 2.25rem; line-height: 1.06; letter-spacing: -.01em; }
html body .o-head h2 { font-size: 1.875rem; line-height: 1.08; letter-spacing: 0; }
html body .o-head h2.long { font-size: 1.5rem; }
html body .section-head h2 { font-size: 1.375rem; }
html body .ss-say, html body .snob-school .ss-say { font-size: 1.5rem; }
/* small display names become crisp sans */
html body .rc-name, html body .cc-name, html body .gi-top b, html body .card h3, html body .fc-t, html body .sh-t,
html body .o-place .v, html body .cc-lbl, html body .prow .pv, html body .pair-name, html body .food-grid b {
  font-family: var(--ui); font-weight: 600; letter-spacing: -.005em;
}
html body .rc-name, html body .cc-name { font-size: 1rem; line-height: 1.25; }
html body .gi-top b, html body .fc-t, html body .card h3 { font-size: 1.0625rem; line-height: 1.3; }
html body .card > h3:first-child { font-size: 1.125rem; }
html body .sh-t, html body .cc-lbl { font-size: 1.125rem; line-height: 1.25; }
html body .pair .pn { font-family: var(--ui); font-size: 1rem; font-weight: 600; line-height: 1.3; }
html body .prow .pv { font-size: .875rem; font-weight: 500; color: var(--p-ink-2); }
html body .yr, html body span.yr { font-family: var(--ui); font-size: .9375rem; font-weight: 600; font-variant-numeric: tabular-nums; }

/* Labels: one quiet style instead of many monospaced kickers */
html body .kicker, html body .eyebrow, html body .tn-k, html body .v-k, html body .fb h4, html body .toolbar .count,
html body .fgroup .label, html body .prow .pk, html body .o-place .k, html body .stat span, html body .ul-head .kicker,
html body .snob-school .kicker, html body .quiz-result .kicker, html body .card .kicker, html body .dict-card .kicker,
html body .friends-card .kicker, html body .info-head .kicker, html body .cc-head .kicker, html body .pal-top .kicker {
  font-family: var(--ui); font-size: .6875rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
}
html body .stat span { font-size: .625rem; letter-spacing: .06em; color: var(--p-ink-3); }
html body .o-label { font-size: .875rem; font-weight: 600; }

/* ---------- Focus, hover and press ---------- */
html body :focus { outline: none; }
html body :focus-visible { outline: 2px solid var(--p-ring); outline-offset: 2px; border-radius: 10px; }
html body .btn:focus-visible, html body .pill:focus-visible, html body .sheet-head button:focus-visible { border-radius: 999px; outline-offset: 2px; }
html body .rate-stars button:focus-visible { outline-offset: -6px; border-radius: 10px; }
/* presses are small and quick; no bouncy overshoot */
html body .pill, html body .btn, html body .wcard, html body .row, html body .scan, html body .dict-card, html body .o-place,
html body .friends-card, html body .region-card, html body .cook-card, html body .rec-card, html body .see-more, html body .fam-tile,
html body .grape-item, html body .o-ic {
  transition: transform .16s var(--p-ease), background-color .18s ease, color .18s ease, box-shadow .18s ease !important;
}
html body .pill:active, html body .btn:active, html body .wcard:active, html body .row:active, html body .scan:active,
html body .dict-card:active, html body .o-place:active, html body .friends-card:active, html body .see-more:active,
html body .grape-item:active, html body .o-ic:active { transform: scale(.98); }
@media (hover: hover) and (pointer: fine) {
  html body .btn:not(.filled):not(.plain):hover { background: var(--p-fill-2); }
  html body .btn.filled:hover { background: #561A24; }
  html body .btn.plain:hover { background: var(--p-fill); }
  html body .pill:not([aria-pressed="true"]):not([aria-checked="true"]):hover { background: var(--p-fill); }
  html body .wcard:hover, html body .scan:hover, html body .o-place:hover, html body .grape-item:hover,
  html body .region-card:hover, html body .cook-card:hover { box-shadow: 0 0 0 1px var(--p-hair-strong); }
  html body .dict-card:hover, html body .friends-card:hover { filter: brightness(.98); }
  html body .tabbar button:hover { color: var(--p-ink); }
}

/* ---------- Sheets ---------- */
html body .sheet { border-radius: 20px 20px 0 0; box-shadow: 0 -8px 32px rgba(35, 27, 24, .14); }
html body .sheet-head { padding: 6px 12px 8px; min-height: 52px; }
html body .sheet-head .title { grid-column: 2; grid-row: 1; font-size: 1.0625rem; font-weight: 600; }
html body .sheet-head .btn.plain { min-height: 40px !important; padding: 0 10px; font-size: 1.0625rem; font-weight: 500; color: var(--p-ink); border-radius: 999px; }
html body .sheet-head .btn.plain.strong { font-weight: 600; }
/* A lone dismiss button belongs on the right, where Done lives on every other sheet */
html body .sheet-head:has(.r:empty) .l { grid-column: 3; grid-row: 1; justify-self: end; }
html body .sheet-head:has(.r:empty) .l .btn.plain { font-weight: 600; }
html body .grabber { width: 36px; height: 5px; border-radius: 3px; background: rgba(35, 27, 24, .16); }

/* ---------- Buttons ---------- */
html body .btn { box-shadow: none; border-radius: 999px; font-size: .9375rem; font-weight: 600; letter-spacing: 0; background: var(--p-fill); color: var(--p-ink); }
html body .btn.filled { background: var(--p-accent); color: #FFFCF5; min-height: 48px !important; }
html body .btn.plain { background: transparent; }
html body .btn:disabled { opacity: .45; }
html body .btn svg { width: 16px; height: 16px; }

/* ---------- Pills and choices: hairlines, one selected style ---------- */
html body .pill { box-shadow: inset 0 0 0 1px var(--p-hair-strong); border: 0; background: transparent; color: var(--p-ink);
  font-size: .875rem; font-weight: 500; min-height: 40px !important; padding: 0 14px; }
html body .pill[aria-pressed="true"], html body .pill[aria-checked="true"],
html body .shop-chips .pill[aria-pressed="true"] { background: var(--p-accent); color: #FFFCF5; box-shadow: none; }
html body .pill svg { width: 16px; height: 16px; }
/* the food pairing shortcut is an entry point, not a selected filter */
html body .pill.pair-pill { background: var(--p-accent-tint); color: var(--p-accent); box-shadow: none; }
html body .pill .sw { width: 12px; height: 12px; }
html body .pill img.sw { width: 20px !important; height: 20px !important; margin-left: -6px; }
html body .o-pills span { height: 32px; padding: 0 12px 0 9px; border-radius: 999px; background: var(--p-fill); font-size: .8125rem; font-weight: 500; }
html body .o-pills svg { width: 16px; height: 16px; }
html body .prompts button, html body .note-box .prompts button { background: var(--p-fill); box-shadow: none; font-weight: 500; }

/* ---------- Segmented controls: one iOS-style control everywhere ---------- */
html body .segmented { background: var(--p-fill); border: 0; border-radius: 11px; padding: 2px; gap: 2px; }
html body .segmented button { border: 0 !important; border-radius: 9px; min-height: 34px; font-size: .875rem; font-weight: 500; color: var(--p-ink-2); background: transparent; }
html body .segmented button[aria-pressed="true"], html body .segmented button[aria-checked="true"] {
  background: var(--p-card); color: var(--p-ink); font-weight: 600; box-shadow: 0 1px 2px rgba(35, 27, 24, .14), 0 0 0 .5px rgba(35, 27, 24, .06);
}
html body .o-segs { background: var(--p-fill); border-radius: 12px; padding: 3px; gap: 2px; }
html body .o-segs button { min-height: 36px; border-radius: 9px; font-size: .875rem; font-weight: 500; color: var(--p-ink-2); }
html body .o-segs button[aria-selected="true"] { background: var(--p-card); color: var(--p-ink); font-weight: 600; box-shadow: 0 1px 2px rgba(35, 27, 24, .14), 0 0 0 .5px rgba(35, 27, 24, .06); }
/* the sticky tab strip sits on the sheet colour so content never shows through */
html body .sheet .o-segs { box-shadow: 0 0 0 6px #FFFCF5; background: #F1EADC; }

/* ---------- Cards: flat, hairline, no drop shadows ---------- */
html body .card, html body .wcard, html body .stat, html body .region-card, html body .cook-card, html body .rec-card, html body .grape-item {
  box-shadow: 0 0 0 1px var(--p-hair); border-radius: 18px;
}
html body .sheet .card, html body .sheet .facts, html body .sheet .notes-list, html body .sheet .buy,
html body .sheet .look-preview, html body .sheet .tip { background: #FAF4E8; box-shadow: none; border-radius: 16px; }
html body .tip { font-size: .875rem; line-height: 1.5; padding: 12px 14px; }
html body .tip svg { width: 16px; height: 16px; color: var(--p-ink-3); }
html body .scan { box-shadow: 0 0 0 1px var(--p-hair); border-radius: 16px; background: var(--p-card); }
html body .scan .ic { background: var(--p-fill); color: var(--p-ink); border-radius: 12px; }

/* The place: a quiet card, not a solid block */
html body .o-place { background: var(--p-card); color: var(--p-ink); box-shadow: 0 0 0 1px var(--p-hair); border-radius: 16px; min-height: 64px; padding: 8px 16px 8px 8px; }
html body .o-place .ic { background: var(--p-canvas); border-radius: 12px; width: 48px; height: 48px; }
html body .o-place .k { color: var(--p-ink-3); }
html body .o-place .v { font-size: 1.0625rem; margin-top: 1px; }
html body .o-place svg:last-child { color: var(--p-ink-3); width: 18px; height: 18px; }

/* Colour blocks become pale tints with ink text */
html body .snob-school { background: var(--p-rose); color: var(--p-ink); border-radius: 18px; }
html body .snob-school .kicker { color: #8A3A3F; }
html body .snob-school .o-link { color: var(--p-ink); }
html body .dict-card { background: var(--p-olive); color: var(--p-ink); border-radius: 18px; }
html body .dict-card .kicker { color: #4C5236; }
html body .dict-card .dc-t { color: var(--p-ink); }
html body .dict-card .dc-s { color: var(--p-ink-2); }
html body .dict-card .mascot { color: var(--p-ink); }
html body .dict-card .mascot path[stroke="#231B18"], html body .dict-card .mascot circle[stroke="#231B18"] { stroke: #231B18; }
html body .dict-card .mascot [fill="#231B18"] { fill: #231B18; }
html body .dict-card > svg:last-child { color: var(--p-ink-3); }
html body .dict-card.quiz-card { background: var(--p-honey); }
html body .dict-card.quiz-card .kicker { color: #7A5A16; }
html body .dict-card.quiz-card .dc-s { color: var(--p-ink-2); }
html body .friends-card { background: var(--p-honey); border-radius: 18px; }
html body .friends-card .kicker { color: #7A5A16; }
html body .friends-card > svg:last-child { color: var(--p-ink-3); }
html body .scan-buy { background: var(--p-rose) !important; }
html body .scan-buy .ic { background: rgba(255, 252, 245, .7) !important; color: var(--p-accent) !important; }
html body .scan-buy span span { color: var(--p-ink-2); }
html body .scan-buy > svg:last-child { color: var(--p-ink-3) !important; }
html body .palate .verdict, html body .verdict { border-radius: 16px; }

/* ---------- Wine detail ---------- */
html body .o-ic { width: 40px; height: 40px; background: rgba(255, 252, 245, .92); box-shadow: 0 0 0 1px var(--p-hair); }
html body .o-ic svg { width: 18px; height: 18px; }
html body .o-ic.on { color: var(--p-accent); }
html body .rate-stars button { font-size: 1.25rem; color: #DCCFB0; }
html body .rate-stars button.on { color: var(--p-accent); }
html body .o-rate .rs-lbl, html body .rs-lbl { font-size: .8125rem; color: var(--p-ink-2); white-space: nowrap; }
html body .o-link { font-weight: 500; text-decoration-thickness: 1px; text-underline-offset: 3px; }

/* Read-only scales on Palate match the segmented control */
html body .scale { background: var(--p-fill); border-radius: 10px; padding: 2px; gap: 2px; }
html body .scale span { height: 28px; border-radius: 8px; background: transparent; font-size: .8125rem; color: var(--p-ink-3); }
html body .scale span.on { background: var(--p-card); color: var(--p-ink); font-weight: 600; box-shadow: 0 1px 2px rgba(35, 27, 24, .14), 0 0 0 .5px rgba(35, 27, 24, .06); }

/* ---------- Forms ---------- */
html body textarea, html body .note-box textarea, html body textarea.note { resize: none !important; }
html body .fields { border: 0; box-shadow: 0 0 0 1px var(--p-hair) !important; border-radius: 14px; }
html body .frow:focus-within { background: rgba(35, 27, 24, .03); }
html body .note-box:focus-within { box-shadow: 0 0 0 2px var(--p-ring); }
html body .note-box, html body .toggle-row, html body details.more, html body .rate-in, html body textarea.note, html body .confirm,
html body .banner, html body .look-preview, html body .fam-tile { box-shadow: 0 0 0 1px var(--p-hair); border-radius: 14px; }
html body .search svg { left: 12px; }
html body .search input { height: 44px; border: 0; border-radius: 12px; background: var(--p-fill); padding: 0 14px 0 38px; font-size: 1rem; }
html body .search input:focus-visible { box-shadow: none; outline: 2px solid var(--p-ring); outline-offset: 0; }
html body .dish-in { height: 44px; min-height: 44px; border-radius: 12px; background: var(--p-fill); padding: 0 14px; font-size: 1rem; }
html body .dish-in:focus-visible { outline: 2px solid var(--p-ring); outline-offset: 0; }
/* rating dots in the tasting flow: calmer size, label on one line */
html body .rate-in { flex-wrap: nowrap; gap: 8px; }
html body .rate-in button i, html body .rating button i { transform: scale(.82); }
html body .rate-in span, html body .rating span { white-space: nowrap; font-size: .875rem; }

/* ---------- Bottom bar ---------- */
html body .log-fab { width: 56px; height: 56px; top: -20px; background: var(--p-accent) !important; box-shadow: 0 6px 16px -4px rgba(101, 31, 42, .45) !important; }
html body .log-fab svg { width: 24px; height: 24px; }
html body .tabbar button { font-size: .6875rem; font-weight: 500; color: var(--p-ink-3); }
html body .tabbar button[aria-current="page"] { color: var(--p-accent); font-weight: 600; }

@media (prefers-reduced-motion: reduce) {
  html body * { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* Real wine photos in the list and on the colour choices */
html body .nd-wdot { object-fit: cover; background: none !important; box-shadow: none !important; border-radius: 50%; }
html body .nd-photo { display: block; }

/* ---------- Round two: the body font almost everywhere, and far fewer colours ----------
   The serif is kept for page titles, wine names and the wordmark only. Colour is reduced to the
   cream neutrals plus one accent, the wine red; the wine itself (bottles, photos, maps) brings the rest. */
:root { --display: "DM Sans", -apple-system, BlinkMacSystemFont, system-ui, sans-serif; --p-serif: "Fraunces", Georgia, serif; --p-sub: rgba(35, 27, 24, .04); }
html body .large-title h1, html body .o-head h2, html body .wcard .t, html body .tn-name, html body .row .t,
html body .wordmark, html body .pl-mark, html body .nd-signin h1 { font-family: var(--p-serif); }
html body h2, html body h3, html body .headline, html body .step-title, html body .dc-t, html body .sh-t, html body .cc-lbl,
html body .v-label, html body .section-head h2, html body .fc-t, html body .look-preview .lbl { font-weight: 600; letter-spacing: -.01em; }
html body .section-head h2 { font-size: 1.1875rem; }
html body .step-title { font-size: 1.625rem; }
html body .card .headline, html body .palate .headline { font-size: 1.3125rem; line-height: 1.25; }
html body .dc-t, html body .sh-t { font-size: 1.0625rem; line-height: 1.3; }
html body .look-preview .lbl { font-size: 1.0625rem; }
html body .r-line, html body .ss-say, html body .snob-school .ss-say, html body .say, html body .prophecy p, html body .fab-move p, html body .v-label {
  font-size: 1rem; line-height: 1.45; font-weight: 500; font-style: normal;
}
html body .snob-school .ss-say { font-size: 1.125rem; font-weight: 600; }
html body .omen { font-style: normal; font-size: .9375rem; }
html body .stat b, html body .v-score { font-weight: 600; letter-spacing: -.01em; }
html body .stat b { font-size: 1.5rem; }
html body .v-score { font-size: 1.125rem; }

/* Neutral surfaces in place of coloured blocks */
html body .snob-school, html body .dict-card, html body .dict-card.quiz-card, html body .friends-card, html body .scan-buy {
  background: var(--p-card) !important; color: var(--p-ink); box-shadow: 0 0 0 1px var(--p-hair) !important; border: 0 !important;
}
html body .verdict, html body .roast, html body .prophecy, html body .fab-move { background: var(--p-sub) !important; color: var(--p-ink); border-radius: 14px; }
html body .snob-school .kicker, html body .dict-card .kicker, html body .dict-card.quiz-card .kicker, html body .friends-card .kicker, html body .quiz-card .kicker,
html body .quiz-result .kicker, html body .verdict .v-k, html body .r-k, html body .prophecy .eyebrow, html body .fab-move .eyebrow { color: var(--p-ink-3) !important; font-family: var(--ui); }
html body .dict-card .dc-s, html body .dict-card.quiz-card .dc-s, html body .quiz-card .dc-s, html body .fc-s, html body .scan-buy span span { color: var(--p-ink-2) !important; }
html body .verdict .v-tease, html body .r-sentence { color: var(--p-ink-2); }
html body .r-crime { color: var(--p-accent); font-family: var(--ui); font-weight: 600; }
html body .verdict .v-bar i { background: rgba(35, 27, 24, .1); }
html body .verdict .v-bar i.on { background: var(--p-accent); }
html body .scan-buy .ic, html body .scan .ic { background: var(--p-fill) !important; color: var(--p-ink) !important; }
html body .ss-means b, html body .ss-means { background: none; color: var(--p-ink); }
html body .ss-means b { font-weight: 600; padding: 0; }
html body .o-circle, html body .tn-circle { background: #EFE6D3; }
html body .pair .pic.dish { background: var(--p-sub); }
html body .ai-note::before { background: var(--p-ink-3); }
html body .br-verdict { background: var(--p-fill) !important; color: var(--p-ink) !important; }
html body .buy-yes .br-verdict { background: var(--p-accent) !important; color: #FFFCF5 !important; }
html body .bm-track { background: rgba(35, 27, 24, .1); }
html body .switch[aria-checked="true"] { background: var(--p-accent); }
html body .count-pill i { background: var(--p-accent); }
html body .shop-chips .pill[aria-pressed="true"] svg { fill: #FFFCF5; }
html body .wordmark, html body .pl-mark { color: var(--p-ink); }

/* ---------- Header: iOS large-title pattern with the original logo ----------
   The bar is always solid, so nothing ever scrolls underneath the logo or the status bar.
   Once the page scrolls, it turns to a translucent material with a hairline and the screen
   name appears centred, as in Apple's own apps. The illustrated logo stays on the leading side. */
html body .navbar { height: 56px !important; padding-inline: 16px; }
html body .navbar::before { opacity: 1 !important; background: var(--p-canvas) !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
  border-bottom: .5px solid transparent; transition: background-color .2s ease, border-color .2s ease; }
html body .navbar.scrolled::before { background: rgba(247, 241, 227, .94) !important; -webkit-backdrop-filter: saturate(1.6) blur(18px) !important; backdrop-filter: saturate(1.6) blur(18px) !important;
  border-bottom-color: rgba(35, 27, 24, .14); }
html body .navbar .wordmark { display: inline-block; line-height: 0; }
html body .navbar .wordmark .nd-logo { display: block; height: 44px; width: auto; margin: 0 0 0 -2px; transform: none !important; animation: none; }
html body .navbar .compact { font-family: var(--ui); font-size: 1.0625rem; font-weight: 600; letter-spacing: -.01em; }
html body .me-btn { width: 32px; height: 32px; background: var(--p-fill); box-shadow: none; color: var(--p-ink); }
html body .me-btn svg { width: 18px; height: 18px; }
html body .me-btn .me-avatar { width: 32px; height: 32px; }
/* large titles: no kicker above, tighter to the bar */
html body .large-title { padding-top: 4px; }
html body .large-title .eyebrow { display: none; }
html body .large-title h1 { font-size: 2rem; line-height: 1.08; }

/* Cards say it in words; the side illustrations go */
html body .dict-card .dc-m, html body .card.snob .sh-m { display: none; }
html body .dict-card { grid-template-columns: minmax(0, 1fr) 20px; padding: 16px 16px 16px 18px; gap: 12px; }

/* Real cooked dishes in place of the food sketches */
html body img.food-art.food-photo { display: block; object-fit: cover; border-radius: 14px; background: var(--p-fill); overflow: hidden; }
html body .pair .pic:has(.food-photo) { background: var(--p-fill); box-shadow: none; overflow: hidden; }
html body .pair .pic img.food-photo { width: 100%; height: 100%; border-radius: 50%; }
html body .cc-art:has(.food-photo) { overflow: hidden; }
html body .cc-art img.food-photo { width: 100%; height: 100%; border-radius: inherit; }
html body .food-grid button img.food-photo { width: 64px; height: 64px; border-radius: 16px; }
html body .food-grid button[aria-pressed="true"] img.food-photo { box-shadow: 0 0 0 2px var(--p-card); }
html body .tn-food img.food-photo { width: 34px; height: 34px; border-radius: 10px; }
html body .quiz-opt img.food-photo { width: 46px; height: 46px; border-radius: 12px; }

/* Header: the hand-lettered Nice Drop wordmark (no glass), centred. It hands over to the page title on scroll, iOS style */
html body .navbar .start { grid-column: 2; grid-row: 1; justify-self: center; }
html body .navbar .compact { grid-column: 2; grid-row: 1; }
html body .navbar .end { grid-row: 1; }
html body .navbar .wordmark .nd-logo { display: none; }
html body .navbar .wordmark .nd-wordline { display: block; height: 44px; width: auto; transition: opacity .2s ease, transform .2s ease; }
html body .navbar.scrolled .start { pointer-events: none; }
html body .navbar.scrolled .wordmark .nd-wordline { opacity: 0; transform: translateY(-4px); }
@media (prefers-reduced-motion: reduce) { html body .navbar .wordmark .nd-wordline { transition: none; } }

/* Never show the Vercel feedback toolbar inside the app or the case-study phones */
vercel-live-feedback { display: none !important; }
