/* Containers, sections, header, drawer, footer. */
.bmc-container { width: 100%; max-width: var(--bmc-container); margin: 0 auto; padding: 0 var(--bmc-gutter); }
.bmc-container--narrow { max-width: calc(var(--bmc-narrow) + 2 * var(--bmc-gutter)); }
.bmc-section { padding: var(--bmc-section) 0; }
.bmc-section--tight { padding: 24px 0; }
.bmc-section--soft { background: var(--bmc-soft); }
.bmc-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 40px; }
.bmc-section-head .bmc-display { margin: 0; }
.bmc-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 24px; }
.bmc-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* Announcement bar */
.bmc-announce { background: var(--bmc-navy); color: #fff; text-align: center; font-size: .85rem; padding: 8px var(--bmc-gutter); }
.bmc-announce p { margin: 0; letter-spacing: .02em; }

/* Header */
.bmc-header { position: sticky; top: 0; z-index: 100; background: #fff; transition: box-shadow .25s var(--bmc-ease); }
.bmc-header.is-scrolled { box-shadow: 0 2px 10px rgba(0, 0, 0, .08); }
.bmc-header__inner { display: flex; align-items: center; gap: 24px; height: var(--bmc-header-h); }
.bmc-logo { display: block; flex-shrink: 0; color: var(--bmc-navy); }
.bmc-logo svg { height: 52px; width: auto; }
.bmc-nav { flex: 1; display: flex; justify-content: center; }
.bmc-nav__menu, .bmc-nav ul { display: flex; gap: 32px; list-style: none; margin: 0; padding: 0; }
.bmc-nav a { font-size: 1.02rem; font-weight: 500; color: #000; padding: 8px 0; }
.bmc-nav a:hover, .bmc-nav .current-menu-item > a { color: var(--bmc-primary); }
.bmc-header__actions { display: flex; align-items: center; gap: 18px; }
.bmc-header__quiz { font-weight: 500; text-decoration: underline; text-underline-offset: 4px; color: #000; white-space: nowrap; }
.bmc-header__icon { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 0; background: none; color: #000; cursor: pointer; border-radius: 50%; }
.bmc-header__icon:hover { color: var(--bmc-primary); background: var(--bmc-soft); }
.bmc-bag-count {
	position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 999px;
	background: var(--bmc-navy); color: #fff; font-size: .68rem; font-weight: 600; line-height: 18px; text-align: center;
}
.bmc-header__burger { display: none; border: 0; background: none; padding: 8px; margin-left: -8px; cursor: pointer; }

.bmc-search { border-top: 1px solid var(--bmc-border-2); background: #fff; padding: 16px 0; }
.bmc-search__form { display: flex; align-items: center; gap: 12px; border: 1px solid var(--bmc-border); border-radius: var(--bmc-radius-sm); padding: 4px 4px 4px 14px; }
.bmc-search__form input[type="search"] { flex: 1; border: 0; outline: 0; padding: 10px 0; background: transparent; font-size: 1rem; }
.bmc-search__form .bmc-btn { min-height: 42px; }

/* Mobile drawer */
.bmc-drawer { position: fixed; inset: 0; z-index: 1000; }
.bmc-drawer__scrim { position: absolute; inset: 0; background: rgba(11, 19, 36, .45); }
.bmc-drawer__panel {
	position: relative; z-index: 1; width: min(380px, 88vw); height: 100%; background: #fff; overflow-y: auto;
	padding: 18px 22px 40px; display: flex; flex-direction: column; gap: 28px; animation: bmc-slide .25s var(--bmc-ease);
}
@keyframes bmc-slide { from { transform: translateX(-100%); } to { transform: none; } }
.bmc-drawer__top { display: flex; align-items: center; justify-content: space-between; }
.bmc-logo--drawer svg { height: 44px; }
.bmc-drawer__menu { list-style: none; margin: 0; padding: 0; }
.bmc-drawer__menu a { display: block; padding: 14px 0; font-family: var(--bmc-font-display); font-size: 1.6rem; border-bottom: 1px solid var(--bmc-border-2); color: var(--bmc-ink); }
.bmc-drawer__moods ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 16px; }
.bmc-drawer__moods a { display: flex; align-items: center; gap: 10px; padding: 8px 0; font-weight: 500; }
body.bmc-locked { overflow: hidden; }

/* Footer */
.bmc-footer { background: var(--bmc-navy-deep); color: rgba(255, 255, 255, .78); padding: 72px 0 0; font-size: .95rem; }
.bmc-footer__grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 40px; }
.bmc-logo--footer svg { height: 64px; margin-bottom: 26px; }
.bmc-footer__title { color: #fff; font-size: 1.75rem; margin-bottom: .4em; }
.bmc-footer h3 { font-family: var(--bmc-font-body); font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #fff; margin: 6px 0 20px; }
.bmc-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.bmc-footer a { color: rgba(255, 255, 255, .78); overflow-wrap: anywhere; }
.bmc-footer a:hover { color: #fff; }
.bmc-footer__muted { color: rgba(255, 255, 255, .55); }
.bmc-footer__form { display: flex; margin-top: 18px; max-width: 380px; border: 1px solid rgba(255, 255, 255, .25); border-radius: var(--bmc-radius-sm); overflow: hidden; }
.bmc-footer__form input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 14px; color: #fff; }
.bmc-footer__form input::placeholder { color: rgba(255, 255, 255, .5); }
.bmc-footer__form button { border: 0; background: #fff; color: var(--bmc-navy); padding: 0 22px; font-weight: 600; }
.bmc-footer__form :disabled { cursor: not-allowed; opacity: .7; }
.bmc-footer__note { font-size: .8rem; color: rgba(255, 255, 255, .5); margin-top: 10px; }
.bmc-footer__legal { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-top: 64px; padding-top: 24px; padding-bottom: 28px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .82rem; color: rgba(255, 255, 255, .5); }
.bmc-footer__legal p { margin: 0; }
.bmc-footer .bmc-footer__legal-links { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; margin: 0; padding: 0; }
.bmc-footer__legal-links a { color: rgba(255, 255, 255, .6); }
.bmc-footer__safety { flex-basis: 100%; }

/* Generic pages */
.bmc-page-hero { background: var(--bmc-soft); padding: clamp(40px, 6vw, 80px) 0; }
.bmc-page-hero__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.bmc-page-hero .bmc-page-title { font-size: clamp(2.6rem, 5vw, 4.25rem); margin-bottom: .35em; }
.bmc-page-hero__lead { font-size: 1.2rem; line-height: 1.55; color: #374151; max-width: 34rem; margin: 0; }
.bmc-page-hero__media { margin: 0; justify-self: end; width: fit-content; max-width: 100%; border-radius: var(--bmc-radius); overflow: hidden; background: var(--bmc-soft-2); box-shadow: var(--bmc-shadow); }
/* Whole photo, never cropped: landscape photos are limited by the column, portrait ones by height. */
.bmc-page-hero__media img { display: block; width: auto; max-width: 100%; height: auto; max-height: min(70vh, 600px); }
.bmc-page-hero + .bmc-section { padding-top: clamp(40px, 5vw, 72px); }
@media (max-width: 900px) {
	.bmc-page-hero__inner { grid-template-columns: 1fr; }
	.bmc-page-hero__media { order: -1; justify-self: stretch; width: auto; }
	.bmc-page-hero__media img { width: 100%; max-height: none; }
}
.bmc-page--store { background: #fff; }
.bmc-post-list { display: grid; gap: 28px; }
.bmc-404 { padding: 120px 0; }

@media (max-width: 1100px) {
	.bmc-nav, .bmc-header__quiz { display: none; }
	.bmc-header__burger { display: inline-flex; }
	.bmc-header__inner { justify-content: space-between; }
	.bmc-header .bmc-logo { position: absolute; left: 50%; transform: translateX(-50%); }
	.bmc-footer__grid { grid-template-columns: 1fr 1fr; }
	.bmc-footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
	.bmc-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
}
@media (max-width: 600px) {
	:root { --bmc-header-h: 68px; }
	.bmc-logo svg { height: 42px; }
	.bmc-header__actions { gap: 4px; }
	.bmc-header__account { display: none; }
	.bmc-grid--3 { grid-template-columns: 1fr 1fr; gap: 12px; }
	.bmc-footer__grid { grid-template-columns: 1fr 1fr; gap: 32px 20px; }
}
