/* Homepage "Core liquid" shelf cards — cbco-core.php (2026-10-23).
   Section, head, eyebrow and pills come from cbco-location.css (.cbco-loc__sec--navy);
   the cards copy the Our Beer catalog card (css/cbco-beers.css .cbco-beer). */
.cbco-core { --cc-gap: 18px; --cc-ash: #f0f1f5; }
.cbco-core__top { display: flex; align-items: flex-end; justify-content: space-between; gap: 22px 40px; flex-wrap: wrap; margin-bottom: 34px; }
.cbco-core h2 { color: #fff; }
.cbco-core .cbco-loc__head p { color: var(--lp-on-dark-text); }
.cbco-core .cbco-loc__head p, .cbco-core__style, .cbco-core__flav { letter-spacing: 0; } /* Salient's body tracking reads airy at these sizes */

.cbco-core ul.cbco-core__track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 4 * var(--cc-gap)) / 5); gap: var(--cc-gap); overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; padding-bottom: 6px; }
.cbco-core__track::-webkit-scrollbar { display: none; }
.cbco-core ul.cbco-core__track:not(.is-ready) { scroll-snap-type: none; } /* js/cbco-core.js turns snapping on once the phone padding is set, or the first card snaps to the screen edge */
.cbco-core ul.cbco-core__track:focus-visible { outline-offset: 6px; }
.cbco-core li.cbco-core__item { display: flex; scroll-snap-align: start; min-width: 0; }

.cbco-core a.cbco-core__card { display: flex; flex-direction: column; flex: 1; min-width: 0; background: #fff; border-radius: 10px; overflow: hidden; text-decoration: none; color: var(--lp-ink); transition: transform .18s ease, box-shadow .18s ease; }
.cbco-core a.cbco-core__card:hover { transform: translateY(-4px); box-shadow: 0 14px 28px rgba(1, 15, 82, .35); }
.cbco-core__can { position: relative; display: grid; place-items: center; aspect-ratio: 1 / 1; background: var(--cc-ash); overflow: hidden; }
.cbco-core .cbco-core__can img.cbco-core__img { width: 86%; height: 86%; max-width: 86%; object-fit: contain; mix-blend-mode: multiply; margin: 0; }
.cbco-core .cbco-core__can img.cbco-core__img--small { transform-origin: 50% 86.2%; scale: 1.235; translate: 0 8.5%; mix-blend-mode: normal; } /* transparent Easy Course renders, see cbco_core_small_renders() */
.cbco-core__abv { position: absolute; right: 10px; bottom: 10px; background: #fff; color: var(--lp-ink); border: 1px solid #dcdee6; border-radius: 4px; padding: 3px 8px; font-weight: 600; font-size: 13px; line-height: 1.3; letter-spacing: .3px; font-variant-numeric: tabular-nums; }
.cbco-core__medal { position: absolute; top: 10px; right: 10px; width: 38px; height: 38px; border-radius: 50%; background: var(--lp-gold); color: #fff; display: grid; place-items: center; box-shadow: 0 3px 8px rgba(0, 0, 0, .2); }

.cbco-core__body { display: flex; flex-direction: column; gap: 5px; flex: 1; padding: 14px 14px 16px; }
.cbco-core h3.cbco-core__name { font-size: 19px; font-weight: 600; line-height: 1.08; letter-spacing: -.3px; color: var(--lp-ink); }
.cbco-core__style { font-family: 'Oswald', Arial, sans-serif; font-weight: 400; font-size: 15px; line-height: 1.3; color: var(--lp-navy); }
.cbco-core__flav { font-size: 13px; line-height: 1.35; color: var(--lp-muted); }
.cbco-core__score { display: inline-flex; align-self: flex-start; align-items: baseline; gap: 5px; margin-top: 2px; border: 1.5px solid var(--lp-gold); border-radius: 4px; padding: 3px 7px; color: #9a6514; font-family: 'Oswald', Arial, sans-serif; font-weight: 600; font-size: 15px; line-height: 1; font-variant-numeric: tabular-nums; }
.cbco-core__score small { font-family: 'Open Sans', Arial, sans-serif; font-weight: 700; font-size: 9px; letter-spacing: .5px; text-transform: uppercase; }
.cbco-core__foot { margin-top: auto; padding-top: 8px; min-height: 38px; }
.cbco-core .cbco-pour--core { display: inline-block; white-space: normal; padding: 5px 9px; font-size: 10.5px; letter-spacing: .06em; line-height: 1.3; }
.cbco-core .cbco-pour--core i { display: inline-block; vertical-align: 1px; margin-right: 7px; }
.cbco-core .cbco-pour--core b { font-weight: 600; text-transform: none; letter-spacing: 0; }

.cbco-core__ctl { display: flex; align-items: center; gap: 12px; margin-top: 26px; }
.cbco-core__ctl[hidden] { display: none; }
.cbco-core__bar { position: relative; flex: 1; height: 3px; margin-right: 12px; border-radius: 3px; background: rgba(255, 255, 255, .2); }
.cbco-core__bar i { position: absolute; top: 0; bottom: 0; left: 0; width: 50%; border-radius: 3px; background: #fff; }
.cbco-core button.cbco-core__arr { display: grid; place-items: center; width: 46px; height: 46px; min-width: 0; margin: 0; padding: 0; border: 2px solid rgba(255, 255, 255, .75); border-radius: 50% !important; background: transparent; color: #fff; cursor: pointer; transition: background .15s ease, color .15s ease, opacity .15s ease; }
.cbco-core button.cbco-core__arr:hover { background: #fff; color: var(--lp-navy); }
.cbco-core button.cbco-core__arr:disabled { opacity: .35; cursor: default; background: transparent; color: #fff; }
.cbco-core .screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }

@media (max-width: 1000px) {
	.cbco-core ul.cbco-core__track { grid-auto-columns: calc((100% - 2 * var(--cc-gap)) / 3); }
}
@media (max-width: 760px) {
	.cbco-core { --cc-gap: 12px; }
	.cbco-core__top { margin-bottom: 24px; }
	.cbco-core .cbco-loc__acts { width: 100%; }
	.cbco-core .cbco-loc__acts a.cbco-loc__btn { flex: 1 1 0; justify-content: center; padding: .8em 1em; }
	/* swipe row to the screen edges; the first card still lines up with the text */
	.cbco-core ul.cbco-core__track { grid-auto-columns: 66%; margin-inline: calc(50% - 50vw); padding-inline: calc(50vw - 50%); scroll-padding-inline: calc(50vw - 50%); }
	.cbco-core__ctl { margin-top: 18px; }
	.cbco-core button.cbco-core__arr { display: none; }
	.cbco-core__bar { margin-right: 0; }
}
@media (prefers-reduced-motion: reduce) {
	.cbco-core ul.cbco-core__track { scroll-behavior: auto; }
	.cbco-core a.cbco-core__card, .cbco-core button.cbco-core__arr { transition: none; }
	.cbco-core a.cbco-core__card:hover { transform: none; }
}
