/*
 * Jeremy Wine Co. — Cream Ledger theme styles
 * Layout: 12-column grid, fine rules between sections, cream ground.
 * All text/background pairs below meet WCAG AA (ratios noted on the tokens).
 */

:root {
	--jwc-cream: #FFFBED;      /* page background */
	--jwc-paper: #F6EFD8;      /* tinted sections */
	--jwc-ink: #1E1B16;        /* 16.6:1 on cream */
	--jwc-stone: #5E5648;      /* 7.0:1 on cream — secondary text */
	--jwc-rule: #E2D9BF;       /* dividers only, never text */
	--jwc-wine: #6B1D2A;       /* 11.1:1 on cream — buttons, accents */
	--jwc-wine-dark: #561622;
	--jwc-open: #2F6B3A;
	--jwc-closed: #9A8F78;
	--jwc-gutter: clamp(16px, 4vw, 48px);
	--jwc-max: 1240px;
	--jwc-head-h: 72px;
	--jwc-display: "Playfair Display", Georgia, "Times New Roman", serif;
	--jwc-body: "Libre Franklin", "Helvetica Neue", Arial, sans-serif;
}

/* ---------- Commerce7 theme ----------
   Commerce7's stylesheet reads these variables, so the cart, checkout,
   account, product pages, reservations and side cart all pick up the site's
   colors and type without overriding individual elements. */
:root {
	--c7-page-width: var(--jwc-max);
	--c7-font-family: var(--jwc-body);
	--c7-heading-font-family: var(--jwc-display);
	--c7-heading-font-weight: 500;
	--c7-body-text-color: var(--jwc-ink);
	--c7-alt-text-color: var(--jwc-stone);
	--c7-heading-text-color: var(--jwc-ink);
	--c7-header-text-color: var(--jwc-ink);
	--c7-primary-color: var(--jwc-wine);
	--c7-primary-color-text: var(--jwc-wine);
	--c7-primary-color-dark: var(--jwc-wine-dark);
	--c7-primary-color-focus: rgba(107, 29, 42, .22);
	--c7-primary-button-text-color: var(--jwc-cream);
	--c7-alt-button-bg: var(--jwc-paper);
	--c7-alt-button-bg-hover: var(--jwc-rule);
	--c7-alt-button-text-color: var(--jwc-ink);
	--c7-bg: var(--jwc-cream);
	--c7-bg-alt: var(--jwc-paper);
	--c7-block-bg: #FFFDF5;
	--c7-border-color: var(--jwc-rule);
	--c7-field-bg: #FFFDF5;
	--c7-field-border-color: var(--jwc-stone);
	--c7-field-focus-border-color: var(--jwc-ink);
	--c7-field-placeholder: #766D5D; /* 5.0:1 on the field background */
	--c7-pill-bg: var(--jwc-paper);
	--c7-pill-text-color: var(--jwc-wine);
	--c7-cart-count-bg: var(--jwc-wine);
	--c7-cart-count-text-color: var(--jwc-cream);
	--c7-loading-bg: rgba(255, 251, 237, .6);
	--c7-info-bg: var(--jwc-paper);
	--c7-dropdown-hover: var(--jwc-paper);
	/* square corners everywhere, matching the rest of the site */
	--c7-border-radius: 0;
	--c7-field-border-radius: 0;
	--c7-button-border-radius: 0;
	--c7-block-border-radius: 0;
	--c7-modal-border-radius: 0;
	--c7-dropdown-border-radius: 0;
	--c7-block-shadow: none;
}

/* ---------- base ---------- */
body {
	margin: 0;
	background: var(--jwc-cream);
	color: var(--jwc-ink);
	font: 400 1rem/1.6 var(--jwc-body);
	-webkit-font-smoothing: antialiased;
}
*, *::before, *::after { box-sizing: border-box; }
img { display: block; max-width: 100%; height: auto; }
:where(a) { color: inherit; } /* :where keeps this from outranking button colors */
:where(p) { margin: 0; }
h1, h2, h3 {
	margin: 0;
	font-family: var(--jwc-display);
	font-weight: 500;
	line-height: 1.12;
	text-wrap: balance;
}
:focus-visible { outline: 2px solid var(--jwc-wine); outline-offset: 3px; }
main:focus { outline: none; }

.jwc-sr {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.jwc-skip {
	position: absolute; left: 12px; top: -80px; z-index: 1000;
	padding: 10px 16px; background: var(--jwc-ink); color: var(--jwc-cream); text-decoration: none;
}
.jwc-skip:focus { top: 12px; }

.jwc-in { width: 100%; max-width: var(--jwc-max); margin-inline: auto; padding-inline: var(--jwc-gutter); }
.jwc-eyebrow {
	font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--jwc-stone);
}

/* ---------- buttons ---------- */
.jwc-btn,
.c7-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 44px; padding: 0 22px;
	font: 500 .95rem/1 var(--jwc-body); letter-spacing: .01em; text-decoration: none; white-space: nowrap;
	background: var(--jwc-wine); color: var(--jwc-cream); border: 1.5px solid var(--jwc-wine); border-radius: 0;
	cursor: pointer; transition: background-color .15s ease, color .15s ease;
}
.jwc-btn:hover,

.c7-btn:hover { background: var(--jwc-wine-dark); border-color: var(--jwc-wine-dark); color: var(--jwc-cream); }
.jwc-btn--ghost { background: transparent; color: var(--jwc-ink); border-color: currentColor; }
.jwc-btn--ghost:hover { background: var(--jwc-ink); border-color: var(--jwc-ink); color: var(--jwc-cream); }
.jwc-btn--light { background: var(--jwc-cream); color: var(--jwc-ink); border-color: var(--jwc-cream); }
.jwc-btn--light:hover { background: var(--jwc-paper); border-color: var(--jwc-paper); color: var(--jwc-ink); }
.jwc-ctas { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- header ---------- */
.jwc-head {
	position: sticky; top: 0; z-index: 100;
	background: var(--jwc-cream); border-bottom: 1px solid var(--jwc-rule);
}
.admin-bar .jwc-head { top: 32px; }
@media (max-width: 782px) { .admin-bar .jwc-head { top: 46px; } }
@media (max-width: 600px) { .admin-bar .jwc-head { top: 0; } }

.jwc-head__row { display: flex; align-items: center; gap: 28px; min-height: var(--jwc-head-h); }
.jwc-logo { flex: none; display: block; width: 200px; }
.jwc-logo img { width: 100%; }

.jwc-nav { margin-left: auto; display: flex; align-items: center; gap: 22px; }
.jwc-nav__list { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; }
.jwc-nav__list a {
	display: block; padding-block: 8px; font-size: .95rem; text-decoration: none;
	border-bottom: 1.5px solid transparent;
}
.jwc-nav__list a:hover,
.jwc-nav__list .current-menu-item > a { border-bottom-color: currentColor; }
/* Sub-menus */
.jwc-nav__item { position: relative; }
.jwc-nav__row { display: flex; align-items: center; gap: 2px; }
.jwc-nav__toggle {
	display: grid; place-items: center; width: 28px; height: 36px; padding: 0;
	background: transparent; border: 0; color: inherit; cursor: pointer;
}
.jwc-nav__toggle svg { transition: transform .15s ease; }
.jwc-nav__toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.jwc-nav__sub {
	position: absolute; top: calc(100% + 10px); left: -16px; z-index: 110; min-width: 230px;
	list-style: none; margin: 0; padding: 8px 0;
	background: var(--jwc-cream); border: 1px solid var(--jwc-rule); border-top: 2px solid var(--jwc-ink);
	box-shadow: 0 10px 24px rgba(30, 27, 22, .08);
}
.jwc-nav__sub[hidden] { display: none; }
.jwc-nav__list .jwc-nav__sub a { padding: 10px 16px; border-bottom: 0; white-space: nowrap; }
.jwc-nav__list .jwc-nav__sub a:hover, .jwc-nav__list .jwc-nav__sub .current-menu-item > a { background: var(--jwc-paper); }
.jwc-nav__list .current-menu-parent > .jwc-nav__row > a,
.jwc-nav__list .current-menu-ancestor > .jwc-nav__row > a { border-bottom-color: currentColor; }
.jwc-nav__account:empty { display: none; }
.jwc-nav__account { font-size: .9rem; }

.jwc-head__actions { display: flex; align-items: center; gap: 10px; }
.jwc-cart { display: flex; align-items: center; min-width: 44px; min-height: 44px; justify-content: center; }
.jwc-cart .c7-link { color: var(--jwc-ink); }
.jwc-icon-btn {
	width: 44px; height: 44px; display: grid; place-items: center; padding: 0;
	background: transparent; color: var(--jwc-ink); border: 1px solid var(--jwc-rule); cursor: pointer;
}
.jwc-menu { display: none; }

/* ---------- sections ---------- */
.jwc-section { padding-block: clamp(56px, 7vw, 96px); scroll-margin-top: var(--jwc-head-h); }
.jwc-section--tint { background: var(--jwc-paper); }
.jwc-section--rule { border-top: 1px solid var(--jwc-rule); }
.jwc-sec-head {
	display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 32px;
	margin-bottom: 36px;
}
.jwc-sec-head h2 { font-size: clamp(1.9rem, 3.4vw, 2.75rem); }
.jwc-sec-head p { max-width: 48ch; color: var(--jwc-stone); }

/* ---------- hero ---------- */
.jwc-hero { border-bottom: 1px solid var(--jwc-rule); overflow-x: clip; }
.jwc-hero__grid {
	display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: stretch;
}
.jwc-hero__copy {
	grid-column: 1 / 6; display: grid; gap: 22px; align-content: center; padding-block: 64px;
}
.jwc-hero h1 { font-size: clamp(2.4rem, 5vw, 4.4rem); line-height: 1.04; }
.jwc-hero h1 em { font-style: italic; color: var(--jwc-wine); }
.jwc-lead { font-size: 1.125rem; max-width: 40ch; color: var(--jwc-stone); }
.jwc-hero__img {
	grid-column: 6 / 13; position: relative; min-height: 460px;
	/* bleed to the right edge of the window */
	margin-right: calc(-1 * (var(--jwc-gutter) + max(0px, (100vw - var(--jwc-max)) / 2)));
}
.jwc-hero__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ---------- tasting rooms ---------- */
.jwc-rooms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.jwc-room { display: grid; grid-template-rows: auto 1fr; border-top: 2px solid var(--jwc-ink); }
.jwc-room__body { display: grid; gap: 14px; align-content: start; padding-block: 20px 24px; }
.jwc-room h3 { font-size: 1.65rem; }
.jwc-room img { width: 100%; aspect-ratio: 5 / 2; object-fit: cover; align-self: end; }
.jwc-room dl {
	display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 18px; margin: 0; font-size: .95rem;
}
.jwc-room dt { color: var(--jwc-stone); }
.jwc-room dd { margin: 0; }
.jwc-room .jwc-ctas { margin-top: 4px; }

.jwc-status { display: inline-flex; align-items: center; gap: 8px; font-size: .875rem; font-weight: 500; }
.jwc-status::before {
	content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--jwc-closed); flex: none;
}
.jwc-status.is-open::before { background: var(--jwc-open); }

/* ---------- club tiers ---------- */
.jwc-tiers {
	display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
	border-top: 2px solid var(--jwc-ink);
}
.jwc-tier {
	position: relative; display: flex; flex-direction: column; gap: 12px;
	padding: 28px 22px 24px; border-left: 1px solid var(--jwc-rule);
	scroll-margin-top: calc(var(--jwc-head-h) + 16px);
}
.jwc-tier:first-child { border-left: 0; padding-left: 0; }
.jwc-tier:last-child { padding-right: 0; }
.jwc-tier img { height: 160px; width: auto; margin-inline: auto; object-fit: contain; }
.jwc-tier h3 { font-size: 1.4rem; }
.jwc-price { font-size: .95rem; }
.jwc-price b { font-size: 1.55rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.jwc-tier ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: .925rem; }
.jwc-tier li { position: relative; padding-left: 18px; }
.jwc-tier li::before {
	content: ""; position: absolute; left: 0; top: .7em; width: 8px; height: 1.5px; background: var(--jwc-wine);
}
.jwc-tier ul { margin-bottom: 8px; }
.jwc-tier__join { min-height: 44px; margin-top: auto; } /* pins join buttons to a shared baseline */
.jwc-tier__summary { font-size: .95rem; color: var(--jwc-stone); }
.jwc-anchor { position: absolute; top: calc(-1 * var(--jwc-head-h) - 16px); }
.jwc-tier__join .c7-btn { width: 100%; }
.jwc-club-foot {
	display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 20px; font-size: .9rem; color: var(--jwc-stone);
}
.jwc-club-foot a { color: var(--jwc-wine); }

/* ---------- Zin Lab ---------- */
.jwc-zl { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px 32px; align-items: center; }
.jwc-zl > img { grid-column: 1 / 8; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.jwc-zl__copy { grid-column: 8 / 13; display: grid; gap: 18px; }
.jwc-zl h2 { font-size: clamp(1.9rem, 3.2vw, 2.6rem); }
.jwc-zl__steps {
	list-style: none; margin: 0; padding: 14px 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px;
	border-block: 1px solid var(--jwc-rule); font-size: .875rem; color: var(--jwc-stone);
}
.jwc-zl__steps b { display: block; font-size: 1.05rem; font-weight: 600; color: var(--jwc-ink); }

/* ---------- Commerce7 product collections (every page) ---------- */
.c7-product-collection .c7-product-collection__product-list {
	display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; margin: 0;
}
.c7-product-collection .c7-product-collection__product-list > * { width: auto; max-width: none; padding: 0; flex: none; }
.c7-product-collection .card { display: grid; grid-template-rows: auto 1fr; gap: 12px; height: 100%; background: transparent; border: 0; text-align: left; }
.c7-product-collection .c7-product__photo {
	position: relative; width: 100%; aspect-ratio: 4 / 5; overflow: hidden;
	background: var(--jwc-paper); border: 1px solid var(--jwc-rule);
}
/* Commerce7 bottle shots are ~600px tall; pin them inside the box so they can't stretch the column */
.c7-product-collection .c7-product__photo img {
	position: absolute; inset: 20px; width: calc(100% - 40px); height: calc(100% - 40px); object-fit: contain;
}
/* title row absorbs extra height so price and button line up across cards */
.c7-product-collection .c7-product__info { display: grid; grid-template-rows: 1fr auto; gap: 10px; padding: 0; text-align: left; }
.c7-product-collection .c7-product__add-to-cart { display: grid; gap: 10px; }
.c7-product-collection .c7-product__title { margin: 0; font: 500 1.1rem/1.3 var(--jwc-display); }
.c7-product-collection .c7-product__title a { text-decoration: none; }
.c7-product-collection .c7-product__title a:hover { text-decoration: underline; }
.c7-product-collection .c7-product__add-to-cart__price {
	display: flex; justify-content: space-between; gap: 8px; font-size: .95rem;
	font-variant-numeric: tabular-nums;
}
.c7-product-collection .c7-product__add-to-cart__price__variant { color: var(--jwc-stone); }
.c7-product-collection .c7-product__add-to-cart__form { display: flex; gap: 8px; }
.c7-product-collection .c7-product__add-to-cart__form__quantity input {
	width: 56px; min-height: 44px; text-align: center; font: inherit;
	border: 1px solid var(--jwc-stone); background: transparent; color: var(--jwc-ink); border-radius: 0;
}
.c7-product-collection .c7-product__add-to-cart__form .c7-btn { flex: 1; padding-inline: 12px; }

/* ---------- heritage ---------- */
.jwc-heritage { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px 32px; align-items: center; }
.jwc-heritage > div { grid-column: 1 / 8; display: grid; gap: 18px; }
.jwc-heritage blockquote {
	margin: 0; font: 500 clamp(1.45rem, 2.6vw, 2.1rem)/1.28 var(--jwc-display);
}
.jwc-heritage a { color: var(--jwc-wine); }
.jwc-stats { grid-column: 9 / 13; display: grid; gap: 16px; margin: 0; }
.jwc-stats > div { border-top: 1px solid var(--jwc-rule); padding-top: 10px; }
.jwc-stats dt { font-size: .85rem; color: var(--jwc-stone); }
.jwc-stats dd { margin: 0; font-size: 1.55rem; font-weight: 600; line-height: 1.2; font-variant-numeric: tabular-nums; }

/* ---------- wine club page ---------- */
.jwc-eyebrow { margin-bottom: 12px; }
.jwc-club-head__member { font-size: .95rem; }
.jwc-club-head__member a { color: var(--jwc-wine); }
.jwc-section--flush-top { padding-top: 32px; }
.jwc-tier-jump { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.jwc-tier-jump a {
	display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px;
	border: 1px solid var(--jwc-rule); text-decoration: none; font-size: .9rem;
}
.jwc-tier-jump a:hover { border-color: var(--jwc-ink); }

.jwc-table-wrap { overflow-x: auto; }
.jwc-compare { width: 100%; min-width: 560px; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.jwc-compare th, .jwc-compare td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--jwc-rule); }
.jwc-compare thead th { font: 500 1.15rem/1.2 var(--jwc-display); border-bottom: 2px solid var(--jwc-ink); }
.jwc-compare tbody th { font-weight: 500; color: var(--jwc-stone); white-space: nowrap; }
.jwc-compare td:first-child, .jwc-compare th:first-child { padding-left: 0; }

.jwc-why { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.jwc-why li { border-top: 2px solid var(--jwc-ink); padding-top: 18px; display: grid; gap: 10px; align-content: start; }
.jwc-why h3 { font-size: 1.4rem; }
.jwc-why p { color: var(--jwc-stone); }

.jwc-club-story { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px 32px; }
.jwc-club-story > :first-child { grid-column: 1 / 5; }
.jwc-club-story > .jwc-prose { grid-column: 5 / 12; }
.jwc-club-story h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }

.jwc-club-help { display: grid; gap: 12px; }
.jwc-club-help > * { max-width: 64ch; }
.jwc-club-help h2 { font-size: 1.6rem; }
.jwc-club-help a { color: var(--jwc-wine); }

/* ---------- Jeremiah's Jug ---------- */
.jwc-jug-hero__img { grid-column: 6 / 13; display: grid; place-items: center; padding-block: 32px; }
.jwc-jug-hero__img img { width: min(100%, 480px); height: auto; }
.jwc-jug-tap { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px 32px; align-items: start; }
.jwc-jug-tap > :first-child { grid-column: 1 / 5; }
.jwc-jug-tap > .jwc-prose { grid-column: 5 / 12; font-size: 1.1rem; }
.jwc-jug-tap h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); }
.jwc-jug-buy { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; margin-bottom: 40px; }
.jwc-jug-product { display: flex; flex-direction: column; gap: 10px; padding-top: 18px; border-top: 2px solid var(--jwc-ink); }
.jwc-jug-product h3 { font-size: 1.5rem; }
.jwc-jug-product p { color: var(--jwc-stone); }
.jwc-jug-product .c7-buy-product { margin-top: auto; }
.jwc-jug-rooms { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.jwc-jug-rooms li { display: grid; gap: 8px; padding-top: 16px; border-top: 1px solid var(--jwc-rule); }
.jwc-jug-rooms h3 { font-size: 1.3rem; }
.jwc-jug-rooms a { color: var(--jwc-wine); }
.jwc-jug-club { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px 32px; align-items: center; }
.jwc-jug-club > :first-child { grid-column: 1 / 7; display: grid; gap: 14px; }
.jwc-jug-club > :last-child { grid-column: 8 / 13; }
.jwc-jug-club h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); }
.jwc-jug-club p { color: var(--jwc-stone); max-width: 52ch; }
/* signup form on a light background (the footer version is on dark) */
.jwc-signup--light { padding: 24px; background: var(--jwc-paper); border: 1px solid var(--jwc-rule); }
.jwc-signup--light h3 { font-size: 1.3rem; }
.jwc-signup.jwc-signup--light input { color: var(--jwc-ink); border-color: var(--jwc-stone); background: #FFFDF5; } /* doubled class: must beat the footer's cream-on-dark .jwc-signup input, which comes later */
.jwc-signup.jwc-signup--light .jwc-signup__msg { color: var(--jwc-ink); }

/* ---------- shop ---------- */
.jwc-shop-head__grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 48px; align-items: end; }
.jwc-shop-club {
	display: grid; gap: 12px; justify-items: start; max-width: 300px;
	padding: 20px; background: var(--jwc-paper); border: 1px solid var(--jwc-rule);
}
.jwc-shop-jump {
	position: sticky; top: var(--jwc-head-h); z-index: 50;
	background: var(--jwc-cream); border-bottom: 1px solid var(--jwc-rule);
}
.admin-bar .jwc-shop-jump { top: calc(var(--jwc-head-h) + 32px); }
.jwc-shop-jump .jwc-in { display: flex; gap: 8px 24px; overflow-x: auto; padding-block: 12px; white-space: nowrap; }
.jwc-shop-jump a { font-size: .95rem; text-decoration: none; padding-block: 6px; border-bottom: 1.5px solid transparent; }
.jwc-shop-jump a:hover { border-bottom-color: currentColor; }
.jwc-shop h2 { scroll-margin-top: calc(var(--jwc-head-h) + 72px); margin-top: 2.2em; }
.jwc-shop > p, .jwc-shop > h2 { max-width: 62ch; margin-inline: auto; }
.jwc-shop > .wp-block-c7wp-collection, .jwc-shop > .c7-product-collection { margin-top: 32px; }
.jwc-shop hr { margin-block: 3em; }

/* Bootstrap-style buttons left in editor content from the BOX era */
.jwc-prose .btn {
	display: inline-flex; align-items: center; min-height: 44px; padding: 0 22px; margin: 0;
	font-weight: 500; text-decoration: none; color: var(--jwc-ink); border: 1.5px solid currentColor;
}
.jwc-prose .btn:hover { background: var(--jwc-ink); color: var(--jwc-cream); }
/* Leftover empty code blocks from editing */
.jwc-prose pre:has(> code:empty) { display: none; }
/* Product titles inside editor content keep the ink color, not the link red */
.jwc-prose .c7-product-collection a { color: inherit; }
/* Collections that came back empty (see site.js) */
.is-empty-collection { display: none !important; }

/* ---------- visit ---------- */
.jwc-visit-facts { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 12px; }
.jwc-visit-facts li { font-size: .9rem; padding: 6px 12px; background: var(--jwc-paper); border: 1px solid var(--jwc-rule); }
.jwc-visit-room { scroll-margin-top: calc(var(--jwc-head-h) + 56px); position: relative; }
.jwc-visit-room + .jwc-visit-room { border-top: 1px solid var(--jwc-rule); }
.jwc-visit-room__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 32px; align-items: start; }
.jwc-visit-room__photos { grid-column: 1 / 7; display: grid; gap: 8px; }
.jwc-visit-room__photos img { width: 100%; height: auto; object-fit: cover; aspect-ratio: 4 / 3; }
.jwc-visit-room__photos--3 { grid-template-columns: 1fr 1fr; }
.jwc-visit-room__photos--3 img:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
.jwc-visit-room__body { grid-column: 7 / 13; display: grid; gap: 16px; align-content: start; }
/* alternate sides: second room puts photos on the right */
.jwc-visit-room + .jwc-visit-room .jwc-visit-room__photos { grid-column: 7 / 13; grid-row: 1; }
.jwc-visit-room + .jwc-visit-room .jwc-visit-room__body { grid-column: 1 / 7; grid-row: 1; }
.jwc-visit-room h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
.jwc-visit-dl { margin: 6px 0 4px; display: grid; gap: 0; border-top: 1px solid var(--jwc-rule); }
.jwc-visit-dl > div { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 16px; padding-block: 10px; border-bottom: 1px solid var(--jwc-rule); font-size: .95rem; }
.jwc-visit-dl dt { color: var(--jwc-stone); }
.jwc-visit-dl dd { margin: 0; }
.jwc-why a { color: var(--jwc-wine); }
.jwc-visit-jug { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px 32px; align-items: center; }
.jwc-visit-jug img { grid-column: 2 / 5; width: 100%; max-width: 280px; }
.jwc-visit-jug > div { grid-column: 6 / 12; display: grid; gap: 14px; }
.jwc-visit-jug h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.jwc-visit-jug p { color: var(--jwc-stone); max-width: 52ch; }

/* FAQ (native details/summary: keyboard and screen-reader friendly, no script) */
.jwc-faq { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px 32px; }
.jwc-faq > h2 { grid-column: 1 / 5; font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
.jwc-faq__list { grid-column: 5 / 13; border-top: 2px solid var(--jwc-ink); }
.jwc-faq__item { border-bottom: 1px solid var(--jwc-rule); }
.jwc-faq__item summary {
	display: flex; justify-content: space-between; gap: 16px; align-items: center;
	min-height: 56px; padding-block: 14px; cursor: pointer; font-weight: 500; list-style: none;
}
.jwc-faq__item summary::-webkit-details-marker { display: none; }
.jwc-faq__item summary::after { content: "+"; flex: none; font-size: 1.4rem; line-height: 1; color: var(--jwc-wine); }
.jwc-faq__item[open] summary::after { content: "−"; }
.jwc-faq__item p { padding-bottom: 18px; max-width: 64ch; color: var(--jwc-stone); }

/* ---------- Zin Lab ---------- */
.jwc-hero h1 em { font-style: italic; color: var(--jwc-wine); }
.jwc-hero .jwc-visit-facts { margin: 0; }
.jwc-zl-how { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 32px; align-items: start; }
.jwc-zl-how__intro { grid-column: 1 / 6; display: grid; gap: 16px; }
.jwc-zl-how__intro h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
.jwc-zl-how__intro p { color: var(--jwc-stone); }
.jwc-zl-how__intro img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; margin-top: 8px; }
/* Numbered steps: the order is real, so the numbers carry meaning */
.jwc-steps { grid-column: 7 / 13; list-style: none; margin: 0; padding: 0; counter-reset: step; border-top: 2px solid var(--jwc-ink); }
.jwc-steps li {
	counter-increment: step; display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 4px 16px;
	padding-block: 20px; border-bottom: 1px solid var(--jwc-rule);
}
.jwc-steps li::before {
	content: counter(step, decimal-leading-zero); grid-row: 1 / 3;
	font: 500 1.4rem/1.2 var(--jwc-display); color: var(--jwc-wine); font-variant-numeric: tabular-nums;
}
.jwc-steps h3 { font-size: 1.3rem; }
.jwc-steps p { color: var(--jwc-stone); }

.jwc-zl-wines { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.jwc-zl-wines li { background: var(--jwc-cream); border-top: 6px solid var(--wine); padding: 20px; display: grid; gap: 6px; align-content: start; }
.jwc-zl-wines h3 { font-size: 1.35rem; }
.jwc-zl-wines li > p { font-size: .875rem; color: var(--jwc-stone); font-variant-numeric: tabular-nums; }
.jwc-zl-wines dl { margin: 10px 0 0; display: grid; gap: 8px; }
.jwc-zl-wines dl > div { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 10px; align-items: center; font-size: .875rem; }
.jwc-zl-wines dt { color: var(--jwc-stone); }
.jwc-zl-wines dd { margin: 0; display: grid; grid-template-columns: minmax(0, 1fr) 28px; gap: 10px; align-items: center; font-variant-numeric: tabular-nums; text-align: right; }
.jwc-meter { display: block; height: 6px; background: var(--jwc-rule); }
.jwc-meter span { display: block; height: 100%; background: var(--wine); }

.jwc-zl-book { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 32px 48px; align-items: start; }
.jwc-zl-book__details { grid-column: 1 / 6; display: grid; gap: 14px; }
.jwc-zl-book__details h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
.jwc-zl-book__details h3, .jwc-zl-book__calendar h3 { font: 600 1rem/1.4 var(--jwc-body); margin-top: 8px; }
.jwc-zl-book__note { color: var(--jwc-stone); font-size: .95rem; }
.jwc-zl-book__note a { color: var(--jwc-wine); }
.jwc-zl-book__calendar { grid-column: 6 / 13; padding: 24px; background: var(--jwc-paper); border: 1px solid var(--jwc-rule); min-height: 320px; }
.jwc-checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.jwc-checklist li { position: relative; padding-left: 26px; }
.jwc-checklist li::before {
	content: ""; position: absolute; left: 2px; top: .45em; width: 12px; height: 7px;
	border-left: 2px solid var(--jwc-wine); border-bottom: 2px solid var(--jwc-wine); transform: rotate(-45deg);
}
.jwc-why--six { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 40px; }
.jwc-why--two { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 880px; }


/* ---------- about ---------- */
.jwc-about-hero__img { grid-column: 6 / 13; display: grid; place-items: end center; padding-top: 32px; }
.jwc-about-hero__img img { width: min(100%, 520px); height: auto; }
.jwc-about-story { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px 32px; }
.jwc-about-story > h2 { grid-column: 1 / 5; font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
.jwc-about-story > .jwc-prose { grid-column: 5 / 12; font-size: 1.075rem; }
.jwc-about-facts { margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.jwc-about-facts > div { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 6px; border-top: 2px solid var(--jwc-ink); padding-top: 14px; }
.jwc-about-facts dd { margin: 0; font: 500 clamp(1.8rem, 3.2vw, 2.4rem)/1.1 var(--jwc-display); font-variant-numeric: tabular-nums; }
.jwc-about-facts dt { font-size: .9rem; color: var(--jwc-stone); }
.jwc-about-cellar { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 32px; align-items: start; }
.jwc-about-cellar__photos { grid-column: 1 / 7; display: grid; grid-template-columns: 3fr 2fr; gap: 8px; }
.jwc-about-cellar__photos img { width: 100%; height: auto; object-fit: cover; }
.jwc-about-cellar__photos img:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
.jwc-about-cellar__photos img:last-child { grid-column: 2; aspect-ratio: 3 / 4; margin-top: -25%; border: 6px solid var(--jwc-cream); }
.jwc-about-cellar__copy { grid-column: 7 / 13; display: grid; gap: 14px; }
.jwc-about-cellar__copy h2, .jwc-about-vineyard h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
.jwc-about-vineyard { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px 32px; align-items: center; }
.jwc-about-vineyard > div { grid-column: 1 / 7; display: grid; gap: 14px; }
.jwc-about-vineyard > div > p:not(.jwc-eyebrow) { color: var(--jwc-stone); max-width: 52ch; }
.jwc-about-vineyard img { grid-column: 8 / 13; width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; }
.jwc-about-close { display: grid; gap: 28px; justify-items: start; }
.jwc-about-close blockquote { margin: 0; max-width: 34ch; }
.jwc-about-close blockquote p { font: italic 500 clamp(1.6rem, 3vw, 2.3rem)/1.3 var(--jwc-display); }
.jwc-about-close blockquote footer { margin-top: 14px; font-size: .95rem; color: var(--jwc-stone); }
.jwc-about-close blockquote footer::before { content: "— "; }

/* ---------- Choral's Vineyard ---------- */
.jwc-vy-hero { display: grid; }
.jwc-vy-hero > img { width: 100%; height: clamp(240px, 38vw, 460px); object-fit: cover; }
.jwc-vy-hero__copy { display: grid; gap: 14px; padding-block: 40px 8px; }
.jwc-vy-hero h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
.jwc-vy-hero__copy > p:last-child { max-width: 60ch; font-size: 1.1rem; color: var(--jwc-stone); }

.jwc-vy-map { margin-bottom: 40px; }
.jwc-vy-map svg { display: block; width: 100%; height: auto; }
.jwc-vy-block polygon, .jwc-vy-block rect, .jwc-vy-block path {
	fill: rgba(255, 251, 237, .28); stroke: var(--jwc-cream); stroke-width: 3; transition: fill .15s ease;
}
.jwc-vy-block circle { fill: var(--jwc-wine); stroke: var(--jwc-cream); stroke-width: 3; }
.jwc-vy-block text { fill: var(--jwc-cream); font: 600 28px var(--jwc-body); text-anchor: middle; pointer-events: none; }
.jwc-vy-block:hover polygon, .jwc-vy-block:hover rect, .jwc-vy-block:hover path,
.jwc-vy-block:focus-visible polygon, .jwc-vy-block:focus-visible rect, .jwc-vy-block:focus-visible path { fill: rgba(107, 29, 42, .45); }
.jwc-vy-block:focus { outline: none; }
.jwc-vy-block:focus-visible circle { stroke: var(--jwc-ink); stroke-width: 6; }

.jwc-vy-blocks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.jwc-vy-blocks li {
	display: grid; gap: 8px; align-content: start; padding: 18px; background: var(--jwc-cream);
	border-top: 3px solid var(--jwc-ink); scroll-margin-top: calc(var(--jwc-head-h) + 24px);
	transition: box-shadow .2s ease;
}
.jwc-vy-blocks li:target { border-top-color: var(--jwc-wine); box-shadow: 0 0 0 2px var(--jwc-wine); }
.jwc-vy-blocks__num { font-size: .75rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--jwc-wine); }
.jwc-vy-blocks h3 { font-size: 1.3rem; }
.jwc-vy-blocks p { font-size: .925rem; }
.jwc-vy-blocks__traits { color: var(--jwc-stone); }

.jwc-vy-history { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px 32px; }
.jwc-vy-history > h2 { grid-column: 1 / 5; font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
.jwc-timeline { grid-column: 5 / 13; list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--jwc-rule); }
.jwc-timeline li { position: relative; display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 4px 20px; padding: 0 0 28px 24px; }
.jwc-timeline li::before {
	content: ""; position: absolute; left: -7px; top: .35em; width: 12px; height: 12px; border-radius: 50%;
	background: var(--jwc-cream); border: 2px solid var(--jwc-wine);
}
.jwc-timeline__year { font: 500 1.15rem/1.3 var(--jwc-display); color: var(--jwc-wine); font-variant-numeric: tabular-nums; }
.jwc-timeline h3 { font-size: 1.2rem; margin-bottom: 4px; }
.jwc-timeline p:not(.jwc-timeline__year) { color: var(--jwc-stone); }

.jwc-vy-vine { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 32px; align-items: start; }
.jwc-vy-vine__img { grid-column: 1 / 7; position: relative; }
.jwc-vy-vine__img img { width: 100%; height: auto; }
.jwc-vy-pin {
	position: absolute; transform: translate(-50%, -50%); width: 30px; height: 30px; border-radius: 50%;
	display: grid; place-items: center; font: 600 .85rem/1 var(--jwc-body);
	background: var(--jwc-wine); color: var(--jwc-cream); border: 2px solid var(--jwc-cream);
}
.jwc-vy-vine > div:last-child { grid-column: 7 / 13; display: grid; gap: 14px; }
.jwc-vy-vine h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
.jwc-vy-vine__intro { color: var(--jwc-stone); }
.jwc-vy-vine .jwc-steps { grid-column: auto; }

/* ---------- sweet winemaking ---------- */
.jwc-sweet-hero__img { grid-column: 6 / 13; display: grid; gap: 20px; align-content: center; padding-block: 40px; }
.jwc-sweet-hero__img img { width: 100%; height: auto; aspect-ratio: 588 / 298; object-fit: cover; }
.jwc-sweet-hero__img blockquote { margin: 0; padding-left: 18px; border-left: 2px solid var(--jwc-wine); }
.jwc-sweet-hero__img blockquote p { font: italic 500 1.25rem/1.45 var(--jwc-display); }
.jwc-sweet-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 2px solid var(--jwc-ink); }
.jwc-sweet-steps li {
	display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 28px; align-items: start;
	padding-block: 28px; border-bottom: 1px solid var(--jwc-rule);
}
.jwc-sweet-steps img { width: 140px; height: 140px; border-radius: 50%; object-fit: cover; }
.jwc-sweet-steps li > div { display: grid; gap: 6px; max-width: 68ch; }
.jwc-sweet-steps__num { font-size: .75rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--jwc-wine); }
.jwc-sweet-steps h3 { font-size: 1.5rem; }
.jwc-sweet-steps__sub { color: var(--jwc-stone); font-style: italic; }
.jwc-sweet-steps__why { margin-top: 4px; padding-left: 14px; border-left: 2px solid var(--jwc-rule); color: var(--jwc-stone); font-size: .95rem; }
.jwc-sweet-compare { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.jwc-sweet-compare > div { display: grid; gap: 14px; align-content: start; padding-top: 18px; border-top: 2px solid var(--jwc-ink); }
.jwc-sweet-compare > div:last-child { border-top-color: var(--jwc-rule); }
.jwc-sweet-compare h3 { font-size: 1.35rem; }
.jwc-sweet-compare__other { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; color: var(--jwc-stone); }
.jwc-sweet-compare__other li { position: relative; padding-left: 26px; }
.jwc-sweet-compare__other li::before { content: ""; position: absolute; left: 2px; top: .75em; width: 12px; height: 2px; background: var(--jwc-closed); }
.jwc-sweet-next { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 32px; align-items: center; }
.jwc-sweet-next > div:first-child { grid-column: 1 / 7; display: grid; gap: 14px; }
.jwc-sweet-next h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
.jwc-sweet-next > div:first-child > p { color: var(--jwc-stone); max-width: 48ch; }
.jwc-sweet-club {
	grid-column: 8 / 13; display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 18px; align-items: center;
	padding: 20px; background: var(--jwc-paper); border: 1px solid var(--jwc-rule);
}
.jwc-sweet-club img { width: 96px; height: auto; }
.jwc-sweet-club > div { display: grid; gap: 6px; }
.jwc-sweet-club h3 { font-size: 1.3rem; }
.jwc-sweet-club p { font-size: .95rem; color: var(--jwc-stone); }
.jwc-sweet-club a { color: var(--jwc-wine); font-weight: 500; }

/* ---------- trade tools (JWC Tech Sheets plugin markup) ----------
   Selectors are scoped under .jwc-trade because the plugin's list.css loads
   after this file and would otherwise win ties. */
.jwc-visit-facts a { color: var(--jwc-wine); }
.jwc-trade-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-bottom: 24px; }
.jwc-trade-filter label { font-weight: 500; }
.jwc-trade-filter input {
	width: min(100%, 340px); min-height: 44px; padding: 0 12px; font: inherit;
	color: var(--jwc-ink); background: var(--jwc-cream); border: 1px solid var(--jwc-stone); border-radius: 0;
}
.jwc-trade-filter output { font-size: .9rem; color: var(--jwc-stone); }
.jwc-trade .jwc-ts-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 28px; margin: 0; }
.jwc-trade .jwc-ts-card {
	padding: 0; text-align: left; align-items: stretch; gap: 8px;
	background: transparent; border: 0; border-radius: 0;
}
.jwc-trade .jwc-ts-card[hidden] { display: none; }
.jwc-trade .jwc-ts-card-img {
	display: grid; place-items: center; aspect-ratio: 4 / 5; padding: 20px;
	background: var(--jwc-paper); border: 1px solid var(--jwc-rule);
}
.jwc-trade .jwc-ts-card-img img { height: 100%; max-height: 220px; width: auto; }
.jwc-trade .jwc-ts-card-title { margin: 6px 0 0; font: 500 1.1rem/1.3 var(--jwc-display); }
.jwc-trade .jwc-ts-card-sub { margin: 0; font-size: .875rem; color: var(--jwc-stone); }
.jwc-trade .jwc-ts-card-link {
	align-self: flex-start; margin-top: auto; min-height: 44px; display: inline-flex; align-items: center;
	padding: 0 16px; font: 500 .875rem/1 var(--jwc-body); letter-spacing: .01em; text-transform: none;
	color: var(--jwc-ink); border: 1.5px solid currentColor;
}
.jwc-trade .jwc-ts-card-link:hover { background: var(--jwc-ink); color: var(--jwc-cream); }

/* ---------- JOY & Jingle ---------- */
.jwc-joy-head { background: var(--jwc-wine); color: var(--jwc-cream); text-align: center; padding-block: 32px 40px; }
.jwc-joy-head .jwc-in { display: grid; justify-items: center; gap: 10px; }
.jwc-joy-head img { width: min(100%, 560px); height: auto; }
.jwc-joy-head h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.jwc-joy-head sup, .jwc-joy-off sup { font-size: .5em; vertical-align: super; line-height: 0; }
.jwc-joy-head p { opacity: .9; }
.jwc-joy > p, .jwc-joy > div:not(.wp-block-c7wp-collection) { max-width: 62ch; margin-inline: auto; text-align: center; }
.jwc-joy-off { display: grid; gap: 14px; justify-items: center; text-align: center; max-width: 560px; margin: 8px auto 0; }
.jwc-joy-off[hidden] { display: none; }
.jwc-joy-off h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.jwc-joy-off p { color: var(--jwc-stone); }
.jwc-joy-off .jwc-signup { width: 100%; text-align: left; }
.jwc-joy-off > p:last-child a { color: var(--jwc-wine); }

/* ---------- Commerce7 store pages ---------- */
.jwc-store { padding-block: clamp(32px, 5vw, 56px) clamp(56px, 7vw, 96px); min-height: 50vh; }
/* Commerce7 headings pick up the display face; keep them in the site's scale */
.jwc-store h1 { font-size: clamp(2rem, 4vw, 3rem); }
.jwc-store h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.jwc-store__title { margin-bottom: 24px; }
.jwc-store__empty { display: grid; gap: 14px; justify-items: start; padding-block: 24px 48px; }
.jwc-store__empty p:not(.jwc-ctas) { color: var(--jwc-stone); }

/* Product detail. The markup comes from the product template set in Commerce7's
   admin (titles, photo, info with add-to-cart, description and a spec table). */
.c7-product-detail {
	display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 48px; row-gap: 8px; align-items: start;
}
.c7-product-detail__photo {
	grid-column: 1 / 6; grid-row: 1 / span 2; display: grid; place-items: center;
	padding: clamp(20px, 4vw, 48px); background: var(--jwc-paper); border: 1px solid var(--jwc-rule);
}
.c7-product-detail__photo img { max-height: 560px; width: auto; }
.c7-product-detail__titles { grid-column: 7 / 13; display: grid; gap: 6px; }
.c7-product-detail__titles h1 { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.1; }
.c7-product-detail__subtitle { color: var(--jwc-stone); font-size: 1.05rem; }
.c7-product-detail__info { grid-column: 7 / 13; display: grid; gap: 16px; }
.c7-product-detail .c7-product__add-to-cart { margin: 12px 0 8px; display: grid; gap: 12px; }
.c7-product-detail .c7-product__add-to-cart__price { font: 500 1.6rem/1.2 var(--jwc-display); font-variant-numeric: tabular-nums; }
.c7-product-detail .c7-product__add-to-cart__price__variant { margin-left: 8px; font: 400 .95rem var(--jwc-body); color: var(--jwc-stone); }
.c7-product-detail .c7-product__add-to-cart__form { display: flex; gap: 10px; }
.c7-product-detail .c7-product__add-to-cart__form__quantity input { width: 64px; min-height: 48px; text-align: center; }
.c7-product-detail .c7-product__add-to-cart__form .c7-btn { min-height: 48px; padding-inline: 32px; }
.c7-product-detail__info p { max-width: 62ch; }
.c7-product-detail__info p + p { margin-top: 1em; }
.c7-badge {
	display: inline-block; margin: 0 6px 12px 0; padding: 4px 10px; font-size: .75rem; font-weight: 600;
	letter-spacing: .08em; text-transform: uppercase; background: var(--jwc-wine); color: var(--jwc-cream);
}
.c7-badge--limited { background: var(--jwc-ink); }
/* Spec table (Bootstrap classes from the Commerce7 template) */
.c7-product-detail table { width: 100%; max-width: 520px; border-collapse: collapse; font-size: .95rem; }
.c7-product-detail td { padding: 10px 12px; border: 1px solid var(--jwc-rule); }
.c7-product-detail td strong { font-weight: 600; font-size: .8rem; letter-spacing: .08em; color: var(--jwc-stone); }
.c7-product-detail tr:empty { display: none; }
.c7-product-detail table:not(:has(td)) { display: none; } /* specs not filled in Commerce7 */

/* ---------- email signup prompt (template-parts/signup-prompt.php) ---------- */
.jwc-prompt {
	width: min(760px, calc(100vw - 32px)); max-width: none; padding: 0; margin: auto;
	border: 0; border-top: 3px solid var(--jwc-wine); background: var(--jwc-cream); color: var(--jwc-ink);
	box-shadow: 0 20px 60px rgba(30, 27, 22, .25);
}
.jwc-prompt[open] { display: grid; grid-template-columns: 5fr 7fr; }
.jwc-prompt::backdrop { background: rgba(30, 27, 22, .55); }
.jwc-prompt__img img { width: 100%; height: 100%; object-fit: cover; }
.jwc-prompt__body { display: grid; gap: 12px; align-content: center; padding: 36px 32px 28px; }
.jwc-prompt__body h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); line-height: 1.12; padding-right: 24px; }
.jwc-prompt__body > p:not(.jwc-eyebrow):not(.jwc-prompt__fine) { color: var(--jwc-stone); }
.jwc-prompt__body strong { color: var(--jwc-ink); }
.jwc-prompt__form { padding: 0; background: transparent; border: 0; margin-top: 4px; }
.jwc-prompt__fine { font-size: .8125rem; color: var(--jwc-stone); }
.jwc-prompt__close {
	position: absolute; top: 8px; right: 8px; z-index: 1; width: 44px; height: 44px; display: grid; place-items: center;
	padding: 0; background: transparent; border: 0; color: var(--jwc-ink); cursor: pointer;
}
.jwc-prompt__later {
	justify-self: start; min-height: 44px; padding: 0; background: none; border: 0;
	font: inherit; font-size: .9rem; color: var(--jwc-stone); text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}
.jwc-prompt[open] { animation: jwc-prompt-in .25s ease-out; }
@keyframes jwc-prompt-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* Phone: a bottom sheet (non-modal), above the Join/Plan a visit bar */
.jwc-prompt.is-sheet[open] {
	position: fixed; inset: auto 0 0 0; z-index: 1000001; width: 100%; margin: 0;
	grid-template-columns: 1fr; max-height: 70vh; overflow-y: auto;
	box-shadow: 0 -10px 30px rgba(30, 27, 22, .2);
	animation-name: jwc-sheet-in;
}
body.jwc-cta-shown .jwc-prompt.is-sheet[open] { bottom: calc(66px + env(safe-area-inset-bottom, 0px)); }
.jwc-prompt.is-sheet .jwc-prompt__img, .jwc-prompt.is-sheet .jwc-eyebrow { display: none; }
.jwc-prompt.is-sheet .jwc-prompt__body { padding: 18px 16px 10px; gap: 6px; }
.jwc-prompt.is-sheet h2 { font-size: 1.3rem; padding-right: 40px; }
.jwc-prompt.is-sheet .jwc-prompt__body > p { font-size: .925rem; }
.jwc-prompt.is-sheet .jwc-prompt__form { gap: 4px; }
.jwc-prompt.is-sheet .jwc-signup__row .jwc-btn { padding-inline: 14px; }
.jwc-prompt.is-sheet .jwc-signup__msg:empty { display: none; }
.jwc-prompt.is-sheet .jwc-prompt__fine { font-size: .75rem; }
.jwc-prompt.is-sheet .jwc-prompt__later { min-height: 36px; }
/* Signed up: hide the field and fine print, keep the confirmation */
.jwc-prompt.is-done .jwc-prompt__form label,
.jwc-prompt.is-done .jwc-signup__row,
.jwc-prompt.is-done .jwc-prompt__fine { display: none; }
.jwc-prompt.is-done .jwc-signup__msg { font-weight: 600; color: var(--jwc-ink); }
@keyframes jwc-sheet-in { from { transform: translateY(100%); } to { transform: none; } }
/* The chat widget sits in the same corner; hide it while the sheet is open */
body.jwc-prompt-open #redchirp-iframe { visibility: hidden; }

/* ---------- inner pages ---------- */
.jwc-page-head { padding-block: clamp(40px, 6vw, 72px) 28px; border-bottom: 1px solid var(--jwc-rule); }
.jwc-page-head h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); max-width: 22ch; }
.jwc-page-head p { margin-top: 14px; max-width: 60ch; color: var(--jwc-stone); font-size: 1.1rem; }
.jwc-page-body { padding-block: clamp(36px, 5vw, 64px) clamp(56px, 7vw, 96px); }

/* Content from the WordPress editor */
.jwc-prose { max-width: 70ch; }
.jwc-prose--wide { max-width: none; }
.jwc-prose > * + * { margin-top: 1.1em; }
.jwc-prose h2 { font-size: clamp(1.6rem, 2.8vw, 2.1rem); margin-top: 1.8em; }
.jwc-prose h3 { font-size: 1.35rem; margin-top: 1.5em; }
.jwc-prose h4 { font: 600 1rem/1.4 var(--jwc-body); margin: 1.4em 0 0; }
.jwc-prose a { color: var(--jwc-wine); text-underline-offset: 3px; }
.jwc-prose ul, .jwc-prose ol { padding-left: 1.3em; }
.jwc-prose li + li { margin-top: .35em; }
.jwc-prose blockquote {
	margin-inline: 0; padding-left: 20px; border-left: 2px solid var(--jwc-wine);
	font: italic 500 1.25rem/1.45 var(--jwc-display);
}
.jwc-prose figure { margin-inline: 0; }
.jwc-prose figcaption { margin-top: 8px; font-size: .875rem; color: var(--jwc-stone); }
.jwc-prose table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.jwc-prose th, .jwc-prose td { text-align: left; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--jwc-rule); }
.jwc-prose hr { border: 0; border-top: 1px solid var(--jwc-rule); margin-block: 2em; }
.jwc-prose .wp-block-button__link { /* WordPress button block */
	display: inline-flex; align-items: center; min-height: 44px; padding: 0 22px; border-radius: 0;
	background: var(--jwc-wine); color: var(--jwc-cream); text-decoration: none; font-weight: 500;
}
.jwc-prose .alignwide, .jwc-prose .alignfull { max-width: none; }

/* ---------- footer ---------- */
.jwc-foot { background: var(--jwc-ink); color: var(--jwc-cream); padding-block: 64px 32px; }
.jwc-foot__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; }
.jwc-foot h2 { font: 600 1.05rem/1.3 var(--jwc-body); margin-bottom: 10px; }
.jwc-foot p, .jwc-foot li { font-size: .925rem; }
.jwc-foot p + p { margin-top: 10px; }
.jwc-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.jwc-foot a { color: var(--jwc-cream); text-underline-offset: 3px; }
.jwc-foot :focus-visible { outline-color: var(--jwc-cream); }
.jwc-signup { display: grid; gap: 8px; align-content: start; }
.jwc-signup label { font-size: .875rem; }
.jwc-signup__row { display: flex; gap: 8px; }
.jwc-signup input {
	flex: 1; min-width: 0; min-height: 44px; padding: 0 12px; font: inherit;
	color: var(--jwc-cream); background: transparent; border: 1px solid var(--jwc-cream); border-radius: 0;
}
.jwc-signup__msg { min-height: 1.5em; font-size: .875rem; }
.jwc-legal {
	display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; margin-top: 48px; padding-top: 18px;
	border-top: 1px solid rgba(255, 251, 237, .25); font-size: .8125rem;
}
.jwc-legal ul { display: flex; flex-wrap: wrap; gap: 6px 18px; }

.jwc-mobile-cta { display: none; }

/* ---------- tablet ---------- */
@media (max-width: 1060px) {
	.jwc-menu { display: grid; }
	.jwc-head__actions { margin-left: auto; }
	.jwc-nav {
		display: none; position: absolute; left: 0; right: 0; top: 100%;
		flex-direction: column; align-items: stretch; gap: 0;
		padding: 8px var(--jwc-gutter) 20px; background: var(--jwc-cream); border-bottom: 1px solid var(--jwc-rule);
	}
	.jwc-nav.is-open { display: flex; }
	.jwc-nav__list { flex-direction: column; gap: 0; }
	.jwc-nav__list a { padding-block: 12px; border-bottom: 1px solid var(--jwc-rule); font-size: 1.05rem; }
	.jwc-nav__account { padding-top: 12px; }
	/* phone menu: sub-menus expand in place */
	.jwc-nav__row { justify-content: space-between; border-bottom: 1px solid var(--jwc-rule); }
	.jwc-nav__row > a { flex: 1; border-bottom: 0 !important; }
	.jwc-nav__toggle { width: 44px; height: 44px; }
	.jwc-nav__sub { position: static; min-width: 0; padding: 0 0 8px 16px; border: 0; box-shadow: none; background: transparent; }
	.jwc-nav__list .jwc-nav__sub a { padding: 10px 0; white-space: normal; border-bottom: 1px solid var(--jwc-rule); font-size: 1rem; }

	.jwc-tiers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.jwc-tier:nth-child(n) { padding-inline: 22px; }
	.jwc-tier:nth-child(odd) { border-left: 0; padding-left: 0; }
	.jwc-tier:nth-child(even) { padding-right: 0; }
	.jwc-tier:nth-child(n+3) { border-top: 1px solid var(--jwc-rule); }
	.c7-product-collection .c7-product-collection__product-list { gap: 20px; }
	.jwc-foot__grid { grid-template-columns: 1fr 1fr; }
	.jwc-zl-wines { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.jwc-why--six { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.jwc-about-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.jwc-vy-blocks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- phone ---------- */
@media (max-width: 680px) {
	.jwc-logo { width: 156px; }
	.jwc-head__join { display: none; }
	.jwc-hero__grid > * { grid-column: 1 / -1; }
	.jwc-hero__copy { padding-block: 36px 32px; }
	.jwc-hero__img { min-height: 260px; margin-inline: calc(-1 * var(--jwc-gutter)); }
	.jwc-rooms, .jwc-foot__grid { grid-template-columns: 1fr; }
	.jwc-tiers { grid-template-columns: 1fr; }
	.jwc-tier:nth-child(n) { padding-inline: 0; border-left: 0; border-top: 1px solid var(--jwc-rule); }
	.jwc-tier:first-child { border-top: 0; }
	.jwc-tier img { height: 120px; }
	.jwc-zl > img, .jwc-zl__copy, .jwc-heritage > div, .jwc-stats { grid-column: 1 / -1; }
	.jwc-why { grid-template-columns: 1fr; gap: 24px; }
	.jwc-jug-hero__img { padding-block: 0 24px; }
	.jwc-jug-tap > *, .jwc-jug-club > * { grid-column: 1 / -1 !important; }
	.jwc-jug-buy, .jwc-jug-rooms { grid-template-columns: 1fr; }
	.jwc-shop-head__grid { grid-template-columns: 1fr; }
	.jwc-visit-room__grid > *, .jwc-visit-room + .jwc-visit-room .jwc-visit-room__grid > *,
	.jwc-visit-jug > *, .jwc-faq > * { grid-column: 1 / -1 !important; grid-row: auto !important; }
	.jwc-visit-jug img { max-width: 200px; }
	.jwc-zl-how > *, .jwc-zl-book > * { grid-column: 1 / -1 !important; }
	/* 12-column grids: on phones the column gaps alone are wider than the screen, so collapse to one track */
	.jwc-hero__grid, .jwc-zl, .jwc-heritage, .jwc-club-story, .jwc-jug-tap, .jwc-jug-club,
	.jwc-visit-room__grid, .jwc-visit-jug, .jwc-faq, .jwc-zl-how, .jwc-zl-book,
	.jwc-about-story, .jwc-about-cellar, .jwc-about-vineyard { grid-template-columns: minmax(0, 1fr); }
	.jwc-about-hero__img, .jwc-about-story > *, .jwc-about-cellar > *, .jwc-about-vineyard > *, .jwc-about-vineyard img { grid-column: 1 / -1 !important; }
	.jwc-about-hero__img img { width: min(100%, 360px); }
	.jwc-about-facts { grid-template-columns: 1fr 1fr; }
	.jwc-vy-history, .jwc-vy-vine { grid-template-columns: minmax(0, 1fr); }
	.jwc-vy-history > *, .jwc-timeline, .jwc-vy-vine > * { grid-column: 1 / -1 !important; }
	.jwc-vy-blocks { grid-template-columns: 1fr; }
	.jwc-sweet-hero__img, .jwc-sweet-next > * { grid-column: 1 / -1 !important; }
	.jwc-sweet-hero__img { padding-block: 0 24px; }
	.jwc-sweet-next { grid-template-columns: minmax(0, 1fr); }
	.jwc-sweet-steps li { grid-template-columns: 72px minmax(0, 1fr); gap: 16px; }
	.jwc-sweet-steps img { width: 72px; height: 72px; }
	.jwc-sweet-compare { grid-template-columns: 1fr; }
	.c7-product-detail { grid-template-columns: minmax(0, 1fr); }
	.c7-product-detail__photo, .c7-product-detail__titles, .c7-product-detail__info { grid-column: 1 / -1; grid-row: auto; }
	.c7-product-detail__titles { order: -1; }
	.c7-product-detail__photo img { max-height: 340px; }
	/* bigger map markers so they stay easy to tap at phone size */
	.jwc-vy-block circle { r: 46px; }
	.jwc-vy-block text { font-size: 48px; }
	.jwc-timeline li { grid-template-columns: 1fr; }
	.jwc-zl-wines, .jwc-why--six { grid-template-columns: 1fr; }
	.jwc-zl-book__calendar { padding: 16px; }
	.jwc-visit-dl > div { grid-template-columns: 100px minmax(0, 1fr); }
	.jwc-shop-club { max-width: none; }
	.jwc-club-story > :first-child, .jwc-club-story > .jwc-prose { grid-column: 1 / -1; }
	.c7-product-collection .c7-product-collection__product-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; }
	.c7-product-collection .c7-product__add-to-cart__form { flex-wrap: wrap; }

	.jwc-mobile-cta {
		display: flex; gap: 8px; position: sticky; bottom: 0; z-index: 90;
		padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
		background: var(--jwc-cream); border-top: 1px solid var(--jwc-rule);
	}
	.jwc-mobile-cta .jwc-btn { flex: 1; padding-inline: 10px; }
	.jwc-mobile-cta { transition: transform .2s ease, visibility .2s; }
	/* Lift the RedChirp chat widget (a fixed iframe in the bottom-right corner) above the bar */
	#redchirp-iframe { transition: bottom .2s ease; }
	body.jwc-cta-shown #redchirp-iframe { bottom: calc(66px + env(safe-area-inset-bottom, 0px)) !important; }
	.jwc-mobile-cta.is-hidden { transform: translateY(100%); visibility: hidden; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
