/* lxv-member-mode.css — the unified mobile site's shared card system (2026-11-03).
   Read includes/class-lxv-member-mode.php. Theme tokens only (styles.css :root --sc-* / --fs-*): no
   font-family names, no px font sizes. Every rule is scoped to .lxv-mm-* or html.lxv-mm-*, so nothing
   here touches a page until assets/lxv-member-mode.js draws a block. The resets mirror the
   styles.css global-element trap fix (memory lxvwine-site-pages): :where() so component classes win. */

.lxv-mm-strip, .lxv-mm-events {
  --mm-ink: var(--sc-char);
  --mm-dark: var(--sc-deep);
  --mm-on-dark: var(--sc-cream);
  --mm-wash: var(--sc-cream);
  --mm-line: color-mix(in srgb, var(--sc-char) 14%, transparent);
  --mm-gold: var(--sc-gold);
  box-sizing: border-box;
  max-width: 1120px;
  margin: 1.25rem auto;
  padding: 0 16px;
  font-family: var(--sc-sans);
  font-size: var(--fs-body);
  color: var(--mm-ink);
}
.lxv-mm-strip :where(h1, h2, h3, p, ul, li, a, span, button, img),
.lxv-mm-events :where(h1, h2, h3, p, ul, li, a, span, button, img) {
  font-family: inherit !important;
  font-style: normal;
  text-transform: none;
  letter-spacing: inherit;
  margin-left: 0;
  box-sizing: border-box;
}
.lxv-mm-strip :where(a), .lxv-mm-events :where(a) { color: inherit !important; text-decoration: none; }

.lxv-mm-hello { margin: 0 0 .6rem; font-family: var(--sc-serif) !important; font-size: var(--fs-h4); line-height: 1.25; }
.lxv-mm-cards { display: grid; gap: 10px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .lxv-mm-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .lxv-mm-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* MEMBER CARD — dark, kicker + title + one action (the Vault's card, verbatim in spirit). */
.lxv-mm-card {
  display: flex; align-items: center; gap: 12px; min-width: 0; min-height: 64px;
  padding: 14px 16px; border-radius: 14px;
  background: var(--mm-dark); color: var(--mm-on-dark) !important;
}
.lxv-mm-card--light { background: var(--mm-wash); color: var(--mm-ink) !important; border: 1px solid var(--mm-line); }
.lxv-mm-card--link { cursor: pointer; }
.lxv-mm-card--link:focus-visible, .lxv-mm-btn:focus-visible, .lxv-mm-chip:focus-visible { outline: 2px solid var(--mm-gold); outline-offset: 2px; }
.lxv-mm-card__main { display: flex; flex-direction: column; gap: 2px; flex: 1 1 auto; min-width: 0; }
.lxv-mm-kicker { font-size: var(--fs-micro); font-weight: 600; letter-spacing: .08em !important; text-transform: uppercase !important; opacity: .8; }
.lxv-mm-title { font-family: var(--sc-serif) !important; font-size: var(--fs-h5); line-height: 1.25; overflow-wrap: anywhere; }
.lxv-mm-sub { font-size: var(--fs-small, var(--fs-sm)); line-height: 1.4; opacity: .82; overflow-wrap: anywhere; }
.lxv-mm-chev { flex: 0 0 auto; font-size: var(--fs-h4); line-height: 1; opacity: .7; }
.lxv-mm-acts { display: flex; align-items: center; gap: 4px; flex: 0 0 auto; }

.lxv-mm-btn {
  display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto;
  min-height: 44px; padding: 0 16px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--mm-dark); color: var(--mm-on-dark) !important;
  font-weight: 600; font-size: var(--fs-small, var(--fs-sm)); line-height: 1.2; text-align: center; white-space: normal;
}
.lxv-mm-card:not(.lxv-mm-card--light) .lxv-mm-btn { background: var(--mm-on-dark); color: var(--mm-dark) !important; }
.lxv-mm-x { min-width: 44px; min-height: 44px; border: 0; background: none; color: inherit; font-size: var(--fs-h5); line-height: 1; cursor: pointer; }

.lxv-mm-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.lxv-mm-chip {
  display: inline-flex; align-items: center; min-height: 44px; max-width: 100%; padding: 6px 14px;
  border-radius: 999px; border: 1px solid var(--mm-line); background: var(--sc-white);
  font-size: var(--fs-small, var(--fs-sm)); line-height: 1.25; overflow-wrap: anywhere;
}

/* Done-count pill beside each Tock experience link on the Visit page. */
.lxv-mm-pill {
  display: inline-block; margin: 0 0 6px; padding: 3px 10px; border-radius: 999px;
  background: var(--sc-deep); color: var(--sc-cream) !important;
  font-family: var(--sc-sans) !important; font-size: var(--fs-micro); font-weight: 600; line-height: 1.4; letter-spacing: .04em; text-transform: none !important;
}
.lxv-mm-pill--new { background: var(--sc-gold); color: var(--sc-char) !important; }

/* CONTENT CARD rail — "Coming up" events, for everyone. */
.lxv-mm-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: .6rem; }
.lxv-mm-h { margin: 0; font-family: var(--sc-serif) !important; font-size: var(--fs-h3); line-height: 1.2; }
.lxv-mm-more { font-weight: 600; font-size: var(--fs-small, var(--fs-sm)); text-decoration: underline !important; text-underline-offset: 3px; flex: 0 0 auto; }
.lxv-mm-rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(78%, 280px); gap: 12px;
  margin: 0; padding: 0 0 8px; list-style: none; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
}
@media (min-width: 1024px) { .lxv-mm-rail { grid-auto-flow: row; grid-template-columns: repeat(4, minmax(0, 1fr)); overflow: visible; } }
.lxv-mm-ev {
  display: flex; flex-direction: column; gap: 6px; min-width: 0; margin: 0 !important; padding: 0 0 14px;
  border-radius: 14px; background: var(--sc-white); border: 1px solid var(--mm-line); overflow: hidden; scroll-snap-align: start;
}
.lxv-mm-ev > *:not(.lxv-mm-ev__img) { margin-inline: 14px !important; }
.lxv-mm-ev__img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: var(--sc-cream-dk); }
.lxv-mm-ev__img--none { display: none; }
.lxv-mm-ev__title { font-family: var(--sc-serif) !important; font-size: var(--fs-body); line-height: 1.3; overflow-wrap: anywhere; }
.lxv-mm-ev__desc { margin-block: 0 !important; font-family: var(--sc-sans) !important; font-size: var(--fs-micro); line-height: 1.4; opacity: .8; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.lxv-mm-ev .lxv-mm-btn { align-self: flex-start; margin-top: auto; position: relative; min-height: 34px; padding: 0 14px; font-size: var(--fs-micro); }
.lxv-mm-ev .lxv-mm-btn::after { content: ""; position: absolute; inset: -5px -4px; }   /* keeps a 44px tap target */
.lxv-mm-ev .lxv-mm-kicker { margin-top: 10px; }

/* Club page member mode (spec Part 8). The theme already hides .lxvc2-nomember for members. */
html.lxv-mm-club .lxvc2 .c7-club-join-button[data-club-slug="lxv-maya-club"],
html.lxv-mm-club .lxvc2 .c7-club-join-button[data-club-slug="lxv-kama-club"] { display: none !important; }
html.lxv-mm-mmclub .lxvc2-bdx { display: none !important; }
.lxv-mm-strip--club { max-width: 720px; }

/* Visit card actions in a row (Add to calendar · Directions · Manage on Tock). */
.lxv-mm-card--visit { align-items: flex-start; }
.lxv-mm-acts--row { flex-wrap: wrap; gap: 8px; margin-top: 10px; }

/* ── Unified Visit page (spec B; markup from includes/class-lxv-visit-page.php) ── */
.lxv-v2-hero { margin: 0 0 1rem; }
.lxv-v2-hero img, .lxv-v2-hero__img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 14px; }
.lxv-v2-hero-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 18px; margin-top: 22px; }
.lxv-v2 .lxv-v2-status-wrap { text-align: center; }
.lxv-v2 .lxv-v2-directions { font-family: var(--sc-sans) !important; font-size: var(--fs-sm); font-weight: 600; text-decoration: underline !important; text-underline-offset: 3px; min-height: 44px; display: inline-flex; align-items: center; }
.lxv-v2 .lxv-v2-status, .lxv-v2 .lxv-v2-next { font-family: var(--sc-sans) !important; font-size: var(--fs-sm); line-height: 1.4; margin: .75rem auto 0; text-align: center; }
.lxv-v2 .lxv-v2-status { display: flex !important; width: max-content; max-width: 100%; }
.lxv-v2 .lxv-v2-status { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: var(--sc-cream-dk); color: var(--sc-char) !important; font-weight: 600; }
.lxv-v2 .lxv-v2-status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--sc-stone); }
.lxv-v2 .lxv-v2-status.is-open::before { background: var(--sc-gold); }
.lxv-v2 .lxv-v2-next a { font-weight: 600; text-decoration: underline !important; text-underline-offset: 3px; }
.lxv-v2 .lxv-v2-h { font-family: var(--sc-serif) !important; font-size: var(--fs-h3); line-height: 1.2; margin: 2rem 0 1rem; scroll-margin-top: 90px; text-transform: none; }
.lxv-v2-member:empty { display: none; }
.lxv-v2-member .lxv-mm-strip { padding: 0; }
.lxv-v2-card__media { margin: 0; overflow: hidden; border-radius: 12px 12px 0 0; }
.lxv-v2-card__media img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
/* Featured cards are normal grid cells (two per row), stacked like the others: photo, accent bar, text. */
.lxv-pyv__card.lxv-pyv__card--featured { flex-direction: column; grid-column: auto; }
.lxv-pyv__card.lxv-pyv__card--featured > .lxv-pyv__accent { width: auto; height: 4px; }
.lxv-v2 .lxv-v2-signin, .lxv-v2 .lxv-v2-yourprice { font-family: var(--sc-sans) !important; font-size: var(--fs-sm); margin: .5rem 0; }
.lxv-v2 .lxv-v2-signin a { font-weight: 600; text-decoration: underline !important; }
html.lxv-mm-on .lxv-v2-signin { display: none; }
.lxv-v2 .lxv-v2-yourprice b { font-weight: 700; }
.lxv-v2-ships__tag { display: inline-block; margin-bottom: 6px; padding: 3px 10px; border-radius: 999px; background: var(--sc-gold); color: var(--sc-char); font-family: var(--sc-sans); font-size: var(--fs-micro); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.lxv-v2-week { list-style: none; margin: .4rem 0 .6rem; padding: 0; font-family: var(--sc-sans); font-size: var(--fs-sm); }
.lxv-v2-week li { display: flex; justify-content: space-between; gap: 12px; margin: 0 !important; padding: 2px 0; }
.lxv-v2-week li.is-today { font-weight: 700; }
/* FAQ: collapsed accordions, answers still in the HTML (AT-8). */
.lxv-v2 details.lxv-v2-q { border-top: 1px solid color-mix(in srgb, var(--sc-char) 14%, transparent); padding: 0; }
.lxv-v2 details.lxv-v2-q > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; padding: 10px 0; cursor: pointer; list-style: none; }
.lxv-v2 details.lxv-v2-q > summary::-webkit-details-marker { display: none; }
.lxv-v2 details.lxv-v2-q > summary::after { content: "+"; flex: 0 0 auto; font-family: var(--sc-sans); font-size: var(--fs-h4); line-height: 1; }
.lxv-v2 details.lxv-v2-q[open] > summary::after { content: "\2212"; }
.lxv-v2 details.lxv-v2-q > summary h3 { margin: 0 !important; font-size: var(--fs-h5); }
.lxv-v2 .lxv-v2-a { padding: 0 0 12px; }
/* Recognition: two lines until "All accolades". */
.lxv-v2-awards:not(.is-open) ul li:nth-child(n+3) { display: none; }
.lxv-v2 .lxv-v2-more { min-height: 44px; margin-top: 6px; padding: 0 16px; border: 1px solid color-mix(in srgb, var(--sc-char) 22%, transparent); border-radius: 999px; background: transparent; color: var(--sc-char); font-family: var(--sc-sans) !important; font-size: var(--fs-sm); cursor: pointer; }
.lxv-v2 .lxv-mm-events { padding: 0; }

/* ── Shop member mode (spec A §5.2) ── */
html.lxv-mm-tier .lxvs-row .lxvs-price-compare, html.lxv-mm-tier .lxvs-row .lxvs-price.club-only { display: none !important; }
.lxv-mm-tierprice { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; font-family: var(--sc-sans); }
.lxv-mm-tierprice b { font-size: var(--fs-price, var(--fs-h4)); font-weight: 700; color: var(--sc-deep); }
.lxv-mm-tierprice span { font-size: var(--fs-micro); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.lxvg-card.lxv-mm-hasTier .lxvg-price, .lxvg-card.lxv-mm-hasTier .lxvg-club { display: none !important; }
.lxv-mm-tierprice s { font-size: var(--fs-sm); opacity: .65; }
html.lxv-mm-hideowned .lxvs-row[data-lxv-owned] { display: none !important; }
.lxv-mm-again { padding: 0; margin: 0 0 1.25rem; }
.lxv-mm-ev__img--bottle { object-fit: contain; background: var(--sc-white); }
.lxv-mm-chip--toggle { cursor: pointer; font-family: var(--sc-sans); }
.lxv-mm-chip--toggle[aria-pressed="true"] { background: var(--sc-deep); color: var(--sc-cream); border-color: var(--sc-deep); }

/* ── Pair member mode (spec A §5.3) ── */
[data-lxvr-card] .lxv-mm-pill { align-self: flex-start; }
.lxvr-chip.lxv-mm-mine.is-on { background: var(--sc-deep); color: var(--sc-cream); }

@media print { .lxv-mm-strip, .lxv-mm-events { display: none !important; } }

/* Fix list 2026-11-03: A6 (kicker never leaves one word alone) and A8 (the Ask bubble clear of the hero text on phones). */
.lxv-pyv__kicker { text-wrap: balance; }
@media (max-width: 767px) { .lxv-v2 .lxv-pyv__header p { padding-right: 64px; } }

/* 2026-11-03 mobile QA (tasting room): the hero CTA rendered at 10px; "Book a tasting on Tock", "Get
   directions" and the email link were 19px tall, the event "Book" buttons 34px. Text floors at the micro
   token and every link/button in the visit page gets a 44px tap height. */
.lxv-v2 a.lxv-pyv__cta { font-size: var(--fs-micro) !important; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; }
.lxv-v2 .lxv-v2-next a, .lxv-v2 a[href^="mailto:"], .lxv-v2 a[href^="tel:"], .lxv-v2 .lxv-v2-signin a { display: inline-flex; align-items: center; min-height: 44px; }
.lxv-v2 .lxv-pyv__card a, .lxv-v2 .lxv-pyv__card button { min-height: 44px; box-sizing: border-box; }
