/* Package-owned styles (storefront). Uses the tokens defined in site.css. Mobile first. */

/* ===== Header navigation ===== */
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; align-items: center; }
.nav-link, .nav-dd > summary { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; color: var(--ink); text-decoration: none; font-weight: 700; padding: 8px 12px; border-radius: 999px; cursor: pointer; white-space: nowrap; }
.nav-link:hover, .nav-link.active, .nav-dd > summary:hover, .nav-dd > summary.active, .nav-dd[open] > summary { background: var(--brand-50); color: var(--brand-700); }
.nav-dd { position: relative; }
.nav-dd > summary { list-style: none; }
.nav-dd > summary::-webkit-details-marker, .mobile-menu > summary::-webkit-details-marker { display: none; }
.nav-dd > summary svg { transition: transform .15s ease; }
.nav-dd[open] > summary svg { transform: rotate(180deg); }
.nav-dd-menu { position: absolute; top: calc(100% + 6px); left: 0; z-index: 45; min-width: 260px; list-style: none; margin: 0; padding: 8px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.nav-dd-menu a { display: flex; align-items: center; gap: 6px; min-height: 44px; padding: 10px 14px; border-radius: 12px; color: var(--ink); font-weight: 700; text-decoration: none; }
.nav-dd-menu a:hover, .nav-dd-menu a[aria-current="page"] { background: var(--brand-50); color: var(--brand-700); }
.nav-dd-all { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 6px; }
.header-row { position: relative; }

/* Mobile menu: a native disclosure, so it opens without JavaScript; site.js closes it on link tap, Escape or outside tap. */
.mobile-menu { display: none; }
.menu-toggle { list-style: none; }
.menu-toggle .i-close, .mobile-menu[open] .menu-toggle .i-open { display: none; }
.mobile-menu[open] .menu-toggle .i-close { display: inline; }
.mobile-nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--cream-50); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); padding: 8px 16px 16px; max-height: calc(100dvh - 76px); overflow: auto; }
.mobile-nav ul { list-style: none; margin: 0; padding: 0; display: grid; }
.mobile-nav a { display: flex; align-items: center; min-height: 48px; padding: 10px 12px; font-weight: 700; color: var(--ink); text-decoration: none; border-radius: 12px; }
.mobile-nav a:hover, .mobile-nav a[aria-current="page"] { background: var(--brand-50); color: var(--brand-700); }
.mobile-nav-group { margin: 6px 12px 0; font-family: var(--font-head); font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--brand-700); }
.mobile-nav-main { border-top: 1px solid var(--line); margin-top: 8px !important; padding-top: 8px !important; }
@media (max-width: 1080px) {
    .nav { display: none; }
    .mobile-menu { display: block; position: static; }
    .menu-toggle { display: inline-grid; }
}
@media (max-width: 900px) { .brand img { height: 48px; } }
@media (min-width: 1081px) and (max-width: 1240px) { .nav-link, .nav-dd > summary { padding: 8px 9px; } }

/* ===== Announcement bar ===== */
.ann { background: var(--ann-bg, var(--ink)); color: var(--ann-fg, var(--cream)); font-size: .92rem; }
.ann-inner { width: min(100% - 24px, var(--container)); margin-inline: auto; min-height: 44px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 14px; padding: 6px 36px 6px 0; position: relative; text-align: center; }
.ann-msg { margin: 0; font-weight: 700; }
.ann-cd { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-weight: 800; color: var(--ann-cd, var(--butter)); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ann-btn { display: inline-flex; align-items: center; min-height: 32px; padding: 4px 14px; border-radius: 999px; background: var(--ann-btn-bg, var(--brand-btn)); color: var(--ann-btn-fg, #fff); font-weight: 800; text-decoration: none; white-space: nowrap; }
.ann-btn:hover { filter: brightness(.92); color: var(--ann-btn-fg, #fff); }
.ann-close { position: absolute; right: 0; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; display: grid; place-items: center; color: inherit; border-radius: 999px; }
.ann-close:hover { background: rgba(255, 255, 255, .12); color: inherit; }
.ann-close svg { width: 18px; height: 18px; }
@media (max-width: 599px) { .ann--no-mobile { display: none; } .ann { font-size: .85rem; } }
@media (min-width: 600px) and (max-width: 1023px) { .ann--no-tablet { display: none; } }
@media (min-width: 1024px) { .ann--no-desktop { display: none; } }
/* A sticky bar sits inside the sticky header, so the menu tabs move down to clear it. */
body:has(.site-header .ann) .menu-tabs { top: var(--header-h, 120px); }
@media (max-width: 599px) { body:has(.site-header .ann) .menu-tabs { top: var(--header-h, 136px); } }

/* ===== Footer ===== */
.footer-legal { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px 18px; flex-wrap: wrap; }
.footer-legal a { display: inline-block; padding-block: 10px; }

/* ===== Home: quick-order storefront ===== */
/* Category jump bar right under the values strip: every section is one tap from the first screen. */
.home-tabs { position: sticky; top: var(--header-h, 76px); z-index: 30; background: rgba(255, 249, 241, .97); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.home-tabs .container { display: flex; gap: 6px; overflow-x: auto; padding: 8px 0; scrollbar-width: none; }
.home-tabs .container::-webkit-scrollbar { display: none; }
.home-tabs a { flex: none; display: inline-flex; align-items: center; min-height: 40px; padding: 6px 14px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); color: var(--ink); font-weight: 800; font-size: .9rem; text-decoration: none; white-space: nowrap; }
.home-tabs a:hover, .home-tabs a[aria-current="true"] { border-color: var(--ink); background: var(--ink); color: #fff; }
body:has(.site-header .ann) .home-tabs { top: var(--header-h, 120px); }
@media (max-width: 599px) { body:has(.site-header .ann) .home-tabs { top: var(--header-h, 136px); } }
@media (max-width: 560px) { .home-tabs a { min-height: 44px; } }

/* Saturday drop as one swipeable row on phones and tablets */
@media (max-width: 860px) {
    .menu-section--drop .card-grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; padding-bottom: 8px; margin-inline: -16px; padding-inline: 16px; scrollbar-width: thin; }
    .menu-section--drop .card-grid > .shop-card { flex: 0 0 min(220px, 62vw); scroll-snap-align: start; }
}
/* Phones: a shorter hero so the first product's "Add to order" is on the first screen. */
@media (max-width: 560px) {
    .hero2 .lede, .hero2-cta .btn--ghost { display: none; }
}
@media (min-width: 700px) and (max-width: 1023px) {
    .hero2 .container { grid-template-columns: minmax(0, 1fr) minmax(0, 300px); }
    .hero2-spot { max-width: 300px; }
}

/* Stats counters */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; text-align: center; margin: 0; padding: 0; list-style: none; }
.stat { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 16px; box-shadow: var(--shadow-sm); }
.stat-num { display: block; font-family: var(--font-head); font-weight: 700; font-size: clamp(2rem, 6vw, 2.8rem); line-height: 1.05; color: var(--brand-700); font-variant-numeric: tabular-nums; }
.stat-label { display: block; margin-top: 6px; font-weight: 800; color: var(--ink-2); }

/* Retailers by city */
/* Find a retailer: a jump link per city, then each city's stores as cards that fill the row evenly. */
.retail-summary { margin: 0 0 12px; color: var(--ink-2); font-weight: 700; }
.retail-jump { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.retail-jump a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 10px 8px 16px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); color: var(--ink); font-weight: 700; text-decoration: none; transition: border-color .15s, color .15s; }
.retail-jump a:hover { border-color: var(--brand-700); color: var(--brand-700); }
.retail-jump .chip-n { min-width: 26px; height: 26px; padding: 0 7px; border-radius: 999px; background: var(--brand-50); color: var(--brand-700); font-size: .8rem; display: inline-grid; place-items: center; }
.retail-city { scroll-margin-top: 96px; }
.retail-city + .retail-city { margin-top: 36px; }
.retail-city-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.retail-city-head h2 { margin: 0; font-size: 1.45rem; }
.retail-pin { width: 40px; height: 40px; flex: none; border-radius: 999px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand-700); }
.retail-pin svg { width: 20px; height: 20px; }
.retail-count { color: var(--ink-2); font-weight: 700; font-size: .9rem; }
.retail-stores { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); gap: 14px; }
.retail-store { display: flex; gap: 14px; padding: 18px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); transition: box-shadow .2s ease, transform .2s ease; }
.retail-store:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.retail-store-icon { width: 42px; height: 42px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--cream); color: var(--brand-700); }
.retail-store-icon svg { width: 20px; height: 20px; }
.retail-store-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1; }
.retail-store h3 { margin: 0; font-size: 1.05rem; line-height: 1.3; }
.retail-address, .retail-notes { margin: 0; color: var(--ink-2); font-size: .92rem; line-height: 1.45; }
.retail-directions { align-self: flex-start; margin-top: auto; }
.retail-store-body > p:last-of-type { margin-bottom: 10px; }
.retail-city .map-hint { display: inline-flex; align-items: center; gap: 4px; color: var(--brand-700); font-weight: 700; font-size: .85rem; }

/* Testimonials */
.quotes--home { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
@media (max-width: 700px) {
    .quotes--home { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; margin-inline: -16px; padding: 0 16px 8px; }
    .quotes--home .quote { flex: 0 0 82%; scroll-snap-align: start; }
}
.quote .stars { font-size: 1.05rem; }

/* ===== Content pages ===== */
.page-narrow { max-width: 820px; }
.content-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; align-items: start; }
@media (min-width: 900px) { .content-grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); } }
.feature-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.feature { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.feature svg { width: 28px; height: 28px; color: var(--brand-700); margin-bottom: 8px; }
.feature h3 { font-size: 1.05rem; margin-bottom: 4px; }
.feature p { margin: 0; color: var(--ink-2); }
.bake-steps { counter-reset: bake; list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.bake-steps li { counter-increment: bake; position: relative; padding: 16px 18px 16px 64px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.bake-steps li::before { content: counter(bake); position: absolute; left: 16px; top: 14px; width: 34px; height: 34px; border-radius: 999px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand-700); font-family: var(--font-head); font-weight: 700; }
.bake-steps strong { display: block; }
.callout { background: var(--warn-50); border: 1px dashed var(--butter); border-radius: var(--radius); padding: 16px 20px; color: var(--ink-2); }
.callout strong { color: var(--ink); }
.cta-band { background: var(--ink); color: var(--cream); border-radius: var(--radius-lg); padding: clamp(24px, 5vw, 44px); display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; }
.cta-band h2 { color: #fff; margin: 0 0 4px; font-size: clamp(1.4rem, 3vw, 1.9rem); }
.cta-band p { margin: 0; color: #E8D9C6; }
.pickup-card { display: flex; gap: 14px; align-items: flex-start; }
.pickup-card svg { width: 26px; height: 26px; color: var(--brand-700); flex: none; margin-top: 2px; }
.legal h2 { font-size: 1.25rem; margin-top: 1.6em; }
.legal ul { padding-left: 1.2em; }
.legal li { margin-bottom: 6px; }
.updated { color: var(--muted); font-size: .92rem; }
.form-success { text-align: center; padding: 32px 8px; }
/* Panel headings are flex rows (for step numbers); centre this one like the tick and the line under it. */
.form-success h2 { justify-content: center; }
.form-success svg { width: 56px; height: 56px; color: var(--success); margin: 0 auto 10px; }

/* ===== Product reviews ===== */
.reviews-block { scroll-margin-top: 8px; }
.reviews-summary { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin-bottom: 20px; }
.reviews-avg { font-family: var(--font-head); font-size: 2.4rem; font-weight: 700; line-height: 1; }
.star-row { display: inline-flex; gap: 2px; color: var(--star); }
.star-row svg { width: 18px; height: 18px; }
.star-row .on { fill: currentColor; }
.star-row .off { color: #CDBBA5; }
.review-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.review { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.review h3 { font-size: 1.02rem; margin: 6px 0 4px; }
.review p { margin: 0 0 6px; color: var(--ink-2); white-space: pre-line; }
.review-meta { font-size: .88rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; }
.verified { display: inline-flex; align-items: center; gap: 4px; color: var(--success); font-weight: 800; }
.review-reply { margin-top: 10px; padding: 10px 14px; border-left: 3px solid var(--brand-700); background: var(--cream); border-radius: 0 12px 12px 0; }
.review-reply strong { display: block; font-size: .9rem; }
.review-form { margin-top: 24px; }
.rating-input { border: 0; padding: 0; margin: 0 0 16px; }
.rating-input legend { font-weight: 800; margin-bottom: 6px; padding: 0; }
.rating-input .choices { grid-template-columns: repeat(5, minmax(0, 1fr)); max-width: 420px; }
.rating-input .choice > span { text-align: center; padding: 10px 6px; }
/* Star tiles are narrow: keep the dark selected border but no tick and no extra right padding. */
.rating-input .choice input:checked + span { padding-right: 6px; }
.rating-input .choice input:checked + span::after { content: none; }
@media (max-width: 1080px) { .reviews-grid { grid-template-columns: 1fr !important; } }
.reviews-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: 32px; align-items: start; }
.menu-section--drop .date-badge { margin-bottom: 8px; }
.h3 { font-size: 1.15rem; font-weight: 600; }
.feature .h3 { font-size: 1.05rem; margin-bottom: 4px; }

/* ===== Round 2 storefront UX (reviewer 3) ===== */
/* Shop on phones: the category pills are one swipeable row instead of three wrapped rows above the results. */
@media (max-width: 560px) {
    .toolbar { gap: 10px; margin: 16px 0 20px; }
    .toolbar .pills { min-width: 0; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: -16px; padding: 2px 16px; width: calc(100% + 32px); }
    .toolbar .pills::-webkit-scrollbar { display: none; }
    .toolbar .pill { flex: none; min-height: 44px; }
}
/* Product page */
.product-badge { margin-bottom: 10px; }
.product-was { font-size: 1.1rem; }
.btn-price { font-variant-numeric: tabular-nums; }
@media (max-width: 420px) { .buy-row .btn { flex-basis: 100%; } }
.page-head-cta { margin-top: 16px; }
/* Newsletter pages: the success tick filled only a quarter of its 48px box (the Icon is a child component). */
.nl-icon svg { width: 48px; height: 48px; }
/* "Added to cart" page: the item on the left, the subtotal and next steps on the right (one column on phones). */
.added-panel { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px 32px; align-items: center; }
.added-item { display: flex; gap: 18px; align-items: center; min-width: 0; }
.added-thumb { flex: 0 0 112px; width: 112px; height: 112px; border-radius: 16px; overflow: hidden; background: var(--cream); }
.added-thumb img { width: 100%; height: 100%; object-fit: cover; }
.added-title { display: flex; align-items: center; gap: 10px; margin: 0 0 6px; font-size: 1.5rem; }
.added-title svg { width: 28px; height: 28px; color: var(--success); flex: none; }
.added-name { margin: 0 0 2px; font-weight: 700; }
.added-name a { color: var(--ink); }
.added-item .meta { margin: 0; color: var(--ink-2); font-size: .92rem; }
.added-item .hint { margin: 6px 0 0; }
.added-summary { display: grid; gap: 10px; padding-left: 24px; border-left: 1px solid var(--line); }
.added-subtotal { margin: 0 0 4px; }
.added-continue { justify-self: center; font-weight: 700; }
.added-more { margin-top: 36px; }
.added-more h2 { margin-bottom: 16px; }
@media (max-width: 760px) {
    .added-panel { grid-template-columns: 1fr; }
    .added-summary { padding-left: 0; border-left: 0; padding-top: 18px; border-top: 1px solid var(--line); }
    .added-thumb { flex-basis: 84px; width: 84px; height: 84px; }
    .added-title { font-size: 1.25rem; }
}
/* "Stores near you": a slim note under the header, and a panel at checkout. */
.local-note { background: var(--brand-50); border-bottom: 1px solid var(--line); }
.local-note-inner { display: flex; align-items: center; gap: 10px; padding-top: 10px; padding-bottom: 10px; }
.local-note-inner > svg { width: 18px; height: 18px; flex: none; color: var(--brand-700); }
.local-note p { margin: 0; flex: 1; font-size: .92rem; color: var(--ink); }
.local-note a { font-weight: 700; }
.local-note-close { flex: none; width: 36px; height: 36px; border: 0; border-radius: 999px; background: transparent; color: var(--ink-2); display: grid; place-items: center; cursor: pointer; }
.local-note-close:hover { background: rgba(255, 255, 255, .7); color: var(--ink); }
.local-note-close svg { width: 16px; height: 16px; }
.local-stores { margin-bottom: 20px; }
.local-stores h2 svg { width: 20px; height: 20px; color: var(--brand-700); }
.local-stores-list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); gap: 10px; }
.local-stores-list li { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); }
.local-stores-list a { margin-top: 4px; font-weight: 700; font-size: .9rem; }

/* Owner request 2026-11-19: confetti when the prize wheel lands (made by prize-wheel.js, so not in a scoped file). */
.prize-confetti { position: absolute; left: 50%; top: 42%; width: 0; height: 0; pointer-events: none; z-index: 5; }
.prize-confetti span {
    position: absolute; width: 9px; height: 14px; border-radius: 2px; opacity: 0;
    animation: prize-confetti 1.7s cubic-bezier(.2, .7, .4, 1) var(--d, 0s) forwards;
}
@keyframes prize-confetti {
    0% { opacity: 1; transform: translate(0, 0) rotate(0); }
    45% { opacity: 1; transform: translate(calc(var(--x) * .6), var(--y)) rotate(calc(var(--r) * .5)); }
    100% { opacity: 0; transform: translate(var(--x), 240px) rotate(var(--r)); }
}
@media (prefers-reduced-motion: reduce) { .prize-confetti { display: none; } }

/* ===== Product description (owner request 2026-11-19) =====
   A full-width section under the photos and buy box. Text keeps a readable line length; photo banners, side-by-side
   blocks, photo grids, videos and tables use the whole width. The markup comes from ContentSanitizer.Render (classes
   rc-*, RichContentPolicy); nothing in it can be wider than the screen: tables scroll inside their own box. */
.product-description { margin-top: clamp(40px, 6vw, 72px); padding-top: clamp(28px, 4vw, 44px); border-top: 1px solid var(--line); }
.product-description > h2 { margin-bottom: 20px; }
/* Owner request 2026-11-20: a designed description (DesignCss scopes its stylesheet to this box). The box keeps whatever
   the design draws inside it: nothing can cover the page around it (paint containment also holds fixed positioning). */
.product-description--design { padding-top: clamp(20px, 3vw, 32px); }
.rd-scope { position: relative; display: block; contain: paint; isolation: isolate; overflow-wrap: break-word; }
.rd-scope img { max-width: 100%; }
@media (prefers-reduced-motion: reduce) {
    .rd-scope *, .rd-scope *::before, .rd-scope *::after {
        animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important;
    }
}
.rich { color: var(--ink-2); overflow-wrap: break-word; }
.rich > p, .rich > ul, .rich > ol, .rich > blockquote, .rich > h3, .rich > h4, .rich > h5 { max-width: 72ch; }
.rich h3, .rich h4, .rich h5 { font-family: var(--font-head); color: var(--ink); line-height: 1.25; }
.rich h3 { font-size: clamp(1.25rem, 2.2vw, 1.5rem); font-weight: 700; margin: 1.6em 0 .5em; }
.rich h4 { font-size: 1.15rem; font-weight: 600; margin: 1.4em 0 .4em; }
.rich h5 { font-size: 1rem; font-weight: 600; margin: 1.2em 0 .3em; }
.rich > :first-child { margin-top: 0; }
.rich ul, .rich ol { padding-left: 1.3em; margin: 0 0 1em; }
.rich li { margin: .2em 0; }
.rich li > p { margin: 0; }
.rich blockquote { margin: 1.2em 0; padding: 4px 0 4px 18px; border-left: 4px solid var(--butter); color: var(--ink); font-style: italic; }
.rich hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.rich strong, .rich b { color: var(--ink); }
.rich img { width: 100%; height: auto; border-radius: var(--radius); background: var(--cream); }
.rich figure { margin: 1.6em 0; }
.rich figcaption { margin-top: 8px; font-size: .92rem; color: var(--muted); }
.rich figcaption:empty { display: none; }
.rich .rc-figure { max-width: 760px; }
/* A single photo keeps its whole picture: tall ones get narrower instead of filling the screen. */
.rich .rc-figure img { width: auto; max-width: 100%; max-height: min(640px, 80vh); }
.rich .rc-banner { max-width: none; }
/* Banners are a wide strip: a tall or square photo is cropped to fill it rather than taking over the page. */
.rich .rc-banner img { max-height: min(520px, 60vh); object-fit: cover; border-radius: var(--radius-lg); }
.rich .rc-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 48px); align-items: center; margin: 2em 0; }
.rich .rc-split--reverse > .rc-split-media { order: 2; }
.rich .rc-split-media { margin: 0; }
.rich .rc-split-media img { max-height: 480px; object-fit: cover; }
.rich .rc-split-text > :first-child { margin-top: 0; }
.rich .rc-split-text > :last-child { margin-bottom: 0; }
.rich .rc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 16px; margin: 2em 0; }
.rich .rc-grid > figure { margin: 0; max-width: none; }
.rich .rc-grid img { width: 100%; max-height: none; aspect-ratio: 4 / 3; object-fit: cover; }
.rich .rc-video { position: relative; max-width: 960px; aspect-ratio: 16 / 9; margin: 2em 0; border-radius: var(--radius); overflow: hidden; background: var(--ink); }
.rich .rc-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.rich .rc-table { max-width: 100%; overflow-x: auto; margin: 1.6em 0; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--white); }
.rich .rc-table:focus-visible { outline-offset: 2px; }
.rich table { border-collapse: collapse; width: 100%; min-width: min(100%, 420px); font-size: .97rem; }
.rich caption { caption-side: top; text-align: left; padding: 12px 14px 4px; font-weight: 700; color: var(--ink); }
.rich th, .rich td { padding: 10px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.rich tr:last-child > th, .rich tr:last-child > td { border-bottom: 0; }
.rich th { background: var(--cream); color: var(--ink); font-weight: 700; }
.rich td > p, .rich th > p { margin: 0; }
.rich td > p + p, .rich th > p + p { margin-top: .5em; }
@media (max-width: 760px) {
    .rich .rc-split { grid-template-columns: 1fr; }
    .rich .rc-split--reverse > .rc-split-media { order: 0; }
    .rich .rc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
}
