/* ==========================================================================
   Birthday Magazine — front-end design system
   Editorial, formal, uncluttered. Uses the full available width.
   ========================================================================== */

:root {
	--bm-accent: #c8102e;
	--bm-ink: #141414;
	--bm-paper: #fbfaf7;
	--bm-bg: var(--bm-paper);
	--bm-surface: #ffffff;
	--bm-surface-2: #f3f1ec;
	--bm-text: var(--bm-ink);
	--bm-muted: #5f5b55;
	--bm-faint: #8d877e;
	--bm-line: #e4e0d8;
	--bm-line-strong: #cfc9bd;
	--bm-accent-soft: color-mix(in srgb, var(--bm-accent) 10%, transparent);
	--bm-shadow: 0 1px 2px rgba(20, 20, 20, .04), 0 8px 24px -12px rgba(20, 20, 20, .16);
	--bm-shadow-lg: 0 2px 4px rgba(20, 20, 20, .05), 0 24px 48px -20px rgba(20, 20, 20, .28);
	--bm-radius: 14px;
	--bm-radius-sm: 9px;
	--bm-gutter: clamp(16px, 3vw, 32px);
	--bm-max: 1440px;
	--bm-header-h: 64px;
	--bm-ease: cubic-bezier(.2, .7, .2, 1);
	--el-fire: #e4572e;
	--el-earth: #5f9142;
	--el-air: #3d9ad1;
	--el-water: #34508f;
	color-scheme: light;
}

[data-theme="dark"] {
	--bm-bg: #111110;
	--bm-surface: #1a1a18;
	--bm-surface-2: #222220;
	--bm-text: #f1eee8;
	--bm-muted: #b3ada3;
	--bm-faint: #8a857c;
	--bm-line: #2e2d2a;
	--bm-line-strong: #3d3b37;
	--bm-shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px -12px rgba(0, 0, 0, .6);
	--bm-shadow-lg: 0 24px 48px -20px rgba(0, 0, 0, .8);
	color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--bm-header-h) + 16px); }
body.bm-app {
	margin: 0;
	background: var(--bm-bg);
	color: var(--bm-text);
	font: 400 16px/1.6 var(--bm-font-body);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
}
.bm-app img { max-width: 100%; height: auto; display: block; }
.bm-app a { color: inherit; text-decoration: none; }
.bm-app button { font: inherit; color: inherit; }
.bm-app h1, .bm-app h2, .bm-app h3, .bm-app h4 { margin: 0; font-family: var(--bm-font-display); font-weight: 700; line-height: 1.12; letter-spacing: -.01em; }
.bm-app p { margin: 0; }
.bm-app :focus-visible { outline: 2px solid var(--bm-accent); outline-offset: 2px; border-radius: 4px; }
.bm-app [hidden] { display: none !important; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.bm-skip { position: absolute; left: -999px; top: 8px; z-index: 1000; background: var(--bm-ink); color: #fff; padding: 8px 14px; border-radius: 8px; }
.bm-skip:focus { left: 8px; }
.bm-wrap { width: min(var(--bm-max), 100% - 2 * var(--bm-gutter)); margin-inline: auto; }
.bm-main { min-height: 60vh; padding-bottom: 48px; }
.bm-muted { color: var(--bm-muted); }
.bm-accent { color: var(--bm-accent); }
.bm-center { display: flex; align-items: center; justify-content: center; }
.bm-ico { flex: none; }
.bm-glyph { font-family: "Segoe UI Symbol", "Noto Sans Symbols", "DejaVu Sans", system-ui, sans-serif; font-variant-emoji: text; }
.bm-flag { font-size: 1.1em; line-height: 1; }

.bm-eyebrow {
	display: inline-flex; align-items: center; gap: 6px;
	font: 600 12px/1.2 var(--bm-font-body); letter-spacing: .12em; text-transform: uppercase;
	color: var(--bm-accent); margin-bottom: 8px !important;
}

/* ---------- Buttons & chips ---------- */
.bm-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	height: 42px; padding: 0 18px; border-radius: 999px;
	border: 1px solid var(--bm-line-strong); background: var(--bm-surface);
	font: 600 14px/1 var(--bm-font-body); cursor: pointer; white-space: nowrap;
	transition: background .2s, border-color .2s, transform .2s var(--bm-ease), color .2s;
}
.bm-btn:hover { border-color: var(--bm-text); transform: translateY(-1px); }
.bm-btn--accent { background: var(--bm-accent); border-color: var(--bm-accent); color: #fff !important; }
.bm-btn--accent:hover { background: color-mix(in srgb, var(--bm-accent) 86%, #000); border-color: transparent; }
.bm-btn--ghost { background: transparent; }
.bm-btn--small { height: 36px; padding: 0 14px; font-size: 13px; }
.bm-btn--icon { width: 40px; height: 40px; padding: 0; }
.bm-iconbtn {
	display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
	border: 0; background: transparent; cursor: pointer; transition: background .2s;
}
.bm-iconbtn:hover { background: var(--bm-surface-2); }
.bm-chip {
	display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px;
	background: var(--bm-surface-2); color: var(--bm-muted); font: 600 12px/1.6 var(--bm-font-body); white-space: nowrap;
}
.bm-chip--accent { background: var(--bm-accent-soft); color: var(--bm-accent); }
.bm-chip--link { border: 1px solid var(--bm-line); background: var(--bm-surface); color: var(--bm-text); padding: 6px 12px; font-size: 13px; transition: border-color .2s, background .2s; }
.bm-chip--link:hover { border-color: var(--bm-text); }
.bm-tag { display: inline-block; padding: 1px 8px; border-radius: 6px; background: var(--bm-surface-2); color: var(--bm-muted); font: 600 11px/1.7 var(--bm-font-body); letter-spacing: .04em; text-transform: uppercase; }
.bm-link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14px; color: var(--bm-text); border-bottom: 1px solid transparent; transition: gap .2s var(--bm-ease), color .2s; }
.bm-link-arrow:hover { gap: 10px; color: var(--bm-accent); }

/* ---------- Header ---------- */
.bm-header { position: relative; z-index: 50; background: color-mix(in srgb, var(--bm-bg) 88%, transparent); border-bottom: 1px solid var(--bm-line); }
.bm-header.is-sticky { position: sticky; top: 0; backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); }
.admin-bar .bm-header.is-sticky { top: 32px; }
.bm-header__inner { display: flex; align-items: center; gap: 24px; height: var(--bm-header-h); transition: height .25s var(--bm-ease); }
.bm-header.is-scrolled .bm-header__inner { height: 56px; }
.bm-header__brand { display: flex; align-items: center; gap: 14px; min-width: 0; }
.bm-header__menu { display: none; }
.bm-logo { display: inline-flex; align-items: center; gap: 10px; font: 800 21px/1 var(--bm-font-display); letter-spacing: -.02em; white-space: nowrap; }
.bm-logo__mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--bm-accent); color: #fff; }
.bm-logo__img { height: var(--bm-logo-h); width: auto; }
.bm-logo__img--dark, [data-theme="dark"] .bm-logo__img--light:has(+ .bm-logo__img--dark) { display: none; }
[data-theme="dark"] .bm-logo__img--dark { display: block; }
.bm-header__date { font-size: 13px; color: var(--bm-faint); padding-left: 14px; border-left: 1px solid var(--bm-line); white-space: nowrap; }
.bm-nav { display: flex; gap: 4px; margin-left: auto; }
.bm-nav a { padding: 8px 12px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--bm-muted); transition: color .2s, background .2s; white-space: nowrap; }
.bm-nav a:hover, .bm-nav a[aria-current] { color: var(--bm-text); background: var(--bm-surface-2); }
.bm-header__tools { display: flex; align-items: center; gap: 4px; }
.bm-header__cta { margin-left: 6px; }
[data-theme="dark"] .bm-only-light, [data-theme="light"] .bm-only-dark, :root:not([data-theme]) .bm-only-dark { display: none; }

.bm-progress { position: fixed; inset: 0 0 auto; height: 3px; z-index: 60; pointer-events: none; }
.bm-progress span { display: block; height: 100%; width: 100%; background: var(--bm-accent); transform-origin: 0 50%; transform: scaleX(0); }

/* ---------- Search overlay ---------- */
.bm-search { position: fixed; inset: 0; z-index: 100; display: grid; justify-items: center; align-items: start; padding: 10vh var(--bm-gutter) 0; }
.bm-search[hidden] { display: none; }
.bm-search__backdrop { position: absolute; inset: 0; background: rgba(10, 10, 10, .45); backdrop-filter: blur(4px); animation: bmFade .2s; }
.bm-search__panel { position: relative; width: min(720px, 100%); background: var(--bm-surface); border-radius: 18px; box-shadow: var(--bm-shadow-lg); overflow: hidden; animation: bmPop .25s var(--bm-ease); }
.bm-search__form { display: flex; align-items: center; gap: 12px; padding: 14px 14px 14px 20px; border-bottom: 1px solid var(--bm-line); color: var(--bm-faint); }
.bm-search__form input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: 500 19px/1.4 var(--bm-font-body); color: var(--bm-text); }
.bm-search__results { list-style: none; margin: 0; padding: 6px; max-height: 52vh; overflow: auto; }
.bm-search__results:empty { display: none; }
.bm-search__results a { display: flex; align-items: center; gap: 14px; padding: 10px 12px; border-radius: 12px; }
.bm-search__results a:hover, .bm-search__results a[aria-selected="true"] { background: var(--bm-surface-2); }
.bm-search__results img, .bm-search__results .bm-initials { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex: none; }
.bm-search__results strong { display: block; font-weight: 600; }
.bm-search__results small { color: var(--bm-muted); }
.bm-search__results .is-empty { padding: 18px; color: var(--bm-muted); }
.bm-search__hints { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 14px 20px; font-size: 13px; color: var(--bm-faint); background: var(--bm-surface-2); }
.bm-search__hints a { padding: 4px 10px; border-radius: 999px; background: var(--bm-surface); color: var(--bm-text); border: 1px solid var(--bm-line); }

/* ---------- Sections ---------- */
.bm-sec { padding-block: clamp(32px, 5vw, 56px); border-top: 1px solid var(--bm-line); }
.bm-home > .bm-sec:first-child { border-top: 0; }
.bm-sec__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 24px; flex-wrap: wrap; }
.bm-sec__title { font-size: clamp(26px, 3.2vw, 40px); }
.bm-sec__titles { min-width: 0; }

/* ---------- Portrait ---------- */
.bm-portrait { position: relative; display: block; overflow: hidden; background: var(--bm-surface-2); container-type: inline-size; }
.bm-portrait .bm-img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; transition: opacity .45s ease, transform .6s var(--bm-ease); }
.bm-portrait .bm-img--photo { position: absolute; inset: 0; opacity: 0; }
.bm-portrait .bm-img--sketch { filter: contrast(1.05); }
[data-theme="dark"] .bm-portrait .bm-img--sketch { filter: invert(.9) contrast(1.1); mix-blend-mode: normal; }
.bm-portrait .bm-img--css-sketch { filter: grayscale(1) contrast(1.35) brightness(1.08); }
.bm-portrait.is-hover:hover .bm-img--photo, a:hover > * > .bm-portrait.is-hover .bm-img--photo, .bm-card__link:hover .bm-portrait.is-hover .bm-img--photo { opacity: 1; }
.bm-card__link:hover .bm-portrait .bm-img { transform: scale(1.035); }
.bm-initials { display: grid; place-items: center; width: 100%; height: 100%; aspect-ratio: 1; font: 700 clamp(10px, 32cqi, 72px)/1 var(--bm-font-display); color: hsl(var(--h) 35% 30%); background: linear-gradient(135deg, hsl(var(--h) 45% 90%), hsl(calc(var(--h) + 40) 45% 82%)); }
[data-theme="dark"] .bm-initials { color: hsl(var(--h) 50% 85%); background: linear-gradient(135deg, hsl(var(--h) 25% 22%), hsl(calc(var(--h) + 40) 25% 16%)); }
.bm-face { width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--bm-surface); margin-left: -8px; flex: none; }
.bm-face:first-child { margin-left: 0; }

/* ---------- Cards ---------- */
.bm-grid { display: grid; gap: clamp(14px, 2vw, 24px); }
.bm-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.bm-grid--rows { grid-template-columns: 1fr; gap: 4px; }
.bm-grid--2col { grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); column-gap: 24px; }
.bm-card { position: relative; min-width: 0; }
.bm-card__link { display: flex; flex-direction: column; height: 100%; }
.bm-card__media { position: relative; border-radius: var(--bm-radius); overflow: hidden; }
.bm-card--default .bm-card__media .bm-portrait, .bm-card--upcoming .bm-card__media .bm-portrait { aspect-ratio: 4 / 5; }
.bm-card__sign { position: absolute; top: 10px; right: 10px; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: color-mix(in srgb, var(--bm-surface) 88%, transparent); backdrop-filter: blur(6px); font-size: 16px; font-family: "Segoe UI Symbol", "Noto Sans Symbols", "DejaVu Sans", sans-serif; }
.bm-card__badge { position: absolute; left: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; background: var(--bm-accent); color: #fff; font: 600 12px/1 var(--bm-font-body); box-shadow: var(--bm-shadow); }
.bm-card__rank { position: absolute; z-index: 2; top: -6px; left: -6px; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--bm-ink); color: #fff; font: 700 15px/1 var(--bm-font-display); box-shadow: var(--bm-shadow); }
[data-theme="dark"] .bm-card__rank { background: var(--bm-text); color: var(--bm-bg); }
.bm-card__body { padding: 12px 2px 0; display: flex; flex-direction: column; gap: 4px; }
.bm-card__kicker { font: 600 11px/1.3 var(--bm-font-body); letter-spacing: .1em; text-transform: uppercase; color: var(--bm-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bm-card__name { font-size: 20px; transition: color .2s; }
.bm-card__link:hover .bm-card__name { color: var(--bm-accent); }
.bm-card__dek { color: var(--bm-muted); font-size: 15px; }
.bm-card__note { color: var(--bm-muted); font-size: 14px; }
.bm-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; color: var(--bm-muted); margin-top: 2px !important; }

/* row variant */
.bm-card--row .bm-card__link { flex-direction: row; align-items: center; gap: 14px; padding: 10px; border-radius: 12px; transition: background .2s; }
.bm-card--row .bm-card__link:hover { background: var(--bm-surface-2); }
.bm-card--row .bm-card__media { width: 56px; height: 56px; border-radius: 50%; flex: none; }
.bm-card--row .bm-portrait { width: 100%; height: 100%; }
.bm-card--row .bm-card__body { padding: 0; min-width: 0; flex: 1; gap: 2px; }
.bm-card--row .bm-card__name { font-size: 17px; }
.bm-card--row .bm-card__meta { margin: 0 !important; }
.bm-card--row.is-today .bm-card__media { box-shadow: 0 0 0 2px var(--bm-bg), 0 0 0 4px var(--bm-accent); }

/* feature variant */
.bm-card--feature .bm-card__link { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(18px, 3vw, 36px); align-items: end; }
.bm-card--feature .bm-portrait { aspect-ratio: 4 / 5; }
.bm-card--feature .bm-card__body { padding: 0 0 8px; gap: 10px; }
.bm-card--feature .bm-card__name { font-size: clamp(34px, 4.4vw, 64px); line-height: 1; }
.bm-card--feature .bm-card__dek { font-size: 17px; }

/* mini variant */
.bm-mini { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 92px; text-align: center; }
.bm-mini__img { width: 72px; height: 72px; border-radius: 50%; box-shadow: 0 0 0 1px var(--bm-line); transition: transform .3s var(--bm-ease), box-shadow .3s; }
.bm-mini:hover .bm-mini__img { transform: translateY(-3px); box-shadow: 0 0 0 2px var(--bm-accent); }
.bm-mini__name { font-size: 13px; font-weight: 600; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- Rail ---------- */
.bm-rail { position: relative; }
.bm-rail__track { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, calc((100% - 3 * 22px) / 4)); gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 6px 2px 10px; }
.bm-rail__track::-webkit-scrollbar { display: none; }
.bm-rail__track > * { scroll-snap-align: start; }
.bm-rail__btn { position: absolute; top: 38%; z-index: 3; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--bm-line); background: var(--bm-surface); box-shadow: var(--bm-shadow); display: grid; place-items: center; cursor: pointer; transition: opacity .2s, transform .2s; }
.bm-rail__btn.is-prev { left: -14px; }
.bm-rail__btn.is-next { right: -14px; }
.bm-rail__btn[disabled] { opacity: 0; pointer-events: none; }

/* ---------- Edition (homepage masthead) ---------- */
.bm-edition { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); grid-template-areas: "date stats" "finder finder"; gap: 28px 48px; padding-top: 12px; align-items: end; }
.bm-edition__date { grid-area: date; }
.bm-edition__day { font: 500 18px/1 var(--bm-font-body); color: var(--bm-muted); margin-bottom: 6px !important; }
.bm-edition__big { font-size: clamp(44px, 7.4vw, 128px); line-height: .9; letter-spacing: -.035em; font-weight: 800; white-space: nowrap; }
.bm-edition__big em { font-style: italic; font-weight: 400; color: var(--bm-accent); }
.bm-edition__sub { margin-top: 14px !important; font-size: 17px; color: var(--bm-muted); }
.bm-edition__stats { grid-area: stats; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.bm-stat { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; align-content: center; padding: 16px 18px; border: 1px solid var(--bm-line); border-radius: var(--bm-radius); background: var(--bm-surface); transition: border-color .2s, transform .25s var(--bm-ease), box-shadow .25s; }
a.bm-stat:hover { border-color: var(--bm-text); transform: translateY(-2px); box-shadow: var(--bm-shadow); }
.bm-stat__icon { grid-row: span 2; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--bm-accent-soft); color: var(--bm-accent); }
.bm-stat__glyph { font-size: 22px; font-family: "Segoe UI Symbol", "Noto Sans Symbols", "DejaVu Sans", sans-serif; }
.bm-stat > strong { font: 700 24px/1.1 var(--bm-font-display); align-self: end; }
.bm-stat > strong + span { align-self: start; }
.bm-stat > span:last-child { font-size: 13px; color: var(--bm-muted); }
.bm-stat--ring { display: flex; align-items: center; justify-content: center; padding: 8px; }
.bm-stat--ring .bm-ring { width: 104px; height: 104px; }
.bm-stat--ring .bm-ring__txt strong { font-size: 26px; }
.bm-edition__finder { grid-area: finder; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 12px; padding: 14px; border-radius: 18px; background: var(--bm-surface); border: 1px solid var(--bm-line); box-shadow: var(--bm-shadow); }
.bm-searchbox { display: flex; align-items: center; gap: 12px; width: 100%; height: 52px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--bm-line); background: var(--bm-surface-2); color: var(--bm-muted); cursor: text; text-align: left; }
.bm-searchbox span { flex: 1; }
.bm-searchbox kbd { font: 600 12px/1 var(--bm-font-body); padding: 4px 7px; border-radius: 6px; border: 1px solid var(--bm-line-strong); background: var(--bm-surface); }

/* Birthday twin finder */
.bm-twin { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; min-width: 0; width: 100%; }
.bm-edition__finder > *, .bm-center > *, .bm-pagehead__aside > * { min-width: 0; max-width: 100%; }
.bm-twin__label { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; white-space: nowrap; }
.bm-twin__label svg { color: var(--bm-accent); }
.bm-twin__fields { display: flex; gap: 8px; flex: 1; min-width: 260px; }
.bm-twin select, .bm-filters select, .bm-filters input {
	height: 44px; padding: 0 36px 0 14px; border-radius: 12px; border: 1px solid var(--bm-line); background: var(--bm-surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center;
	appearance: none; -webkit-appearance: none; font: 500 15px/1 var(--bm-font-body); color: var(--bm-text); min-width: 0;
}
.bm-twin select[name="m"] { flex: 1.4; }
.bm-twin select[name="d"] { flex: .7; }
.bm-twin .bm-btn { height: 44px; flex: none; }
.bm-twin.is-compact { flex-direction: column; flex-wrap: nowrap; align-items: stretch; }
.bm-twin.is-compact .bm-twin__fields { min-width: 0; }

/* ---------- Born today (cover story) ---------- */
.bm-daypicker { display: flex; gap: 6px; align-items: center; }
.bm-daybody { transition: opacity .25s; }
.bm-daybody.is-loading { opacity: .35; pointer-events: none; }
.bm-cover { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 44px); align-items: start; }
.bm-cover__side { display: flex; flex-direction: column; gap: 14px; padding-left: clamp(0px, 2vw, 28px); border-left: 1px solid var(--bm-line); }
.bm-cover__side .bm-btn { align-self: flex-start; }

/* ---------- Week strip ---------- */
.bm-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; }
.bm-week__day { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 16px; border-radius: var(--bm-radius); border: 1px solid var(--bm-line); background: var(--bm-surface); transition: transform .25s var(--bm-ease), border-color .2s, box-shadow .25s; min-width: 0; }
.bm-week__day:hover { transform: translateY(-3px); border-color: var(--bm-text); box-shadow: var(--bm-shadow); }
.bm-week__day.is-today { background: var(--bm-ink); color: #fff; border-color: var(--bm-ink); }
[data-theme="dark"] .bm-week__day.is-today { background: var(--bm-accent); border-color: var(--bm-accent); }
.bm-week__dow { font: 600 12px/1 var(--bm-font-body); letter-spacing: .1em; text-transform: uppercase; opacity: .7; }
.bm-week__num { font: 800 40px/1 var(--bm-font-display); margin-top: 6px; }
.bm-week__mon { font-size: 13px; opacity: .7; }
.bm-week__faces { display: flex; margin: 14px 0 8px; min-height: 32px; }
.bm-week__count { font-size: 12px; opacity: .75; }

/* ---------- Trending ---------- */
.bm-trend { display: grid; gap: 28px; }
.bm-trend__more { padding-top: 20px; border-top: 1px dashed var(--bm-line); }

/* ---------- Milestones ---------- */
.bm-miles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 12px; }
.bm-mile { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--bm-radius); border: 1px solid var(--bm-line); background: var(--bm-surface); transition: transform .25s var(--bm-ease), box-shadow .25s; }
.bm-mile:hover { transform: translateY(-2px); box-shadow: var(--bm-shadow); }
.bm-mile__age { font: 800 40px/1 var(--bm-font-display); color: var(--bm-accent); min-width: 56px; }
.bm-mile__img { width: 52px; height: 52px; border-radius: 50%; flex: none; }
.bm-mile__txt { display: flex; flex-direction: column; min-width: 0; }
.bm-mile__txt strong { font-family: var(--bm-font-display); font-size: 18px; }
.bm-mile__txt span { font-size: 13px; color: var(--bm-muted); }

/* ---------- Zodiac wheel ---------- */
.bm-zodiac { display: grid; grid-template-columns: minmax(0, 520px) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.bm-wheel { position: relative; width: 100%; max-width: 520px; aspect-ratio: 1; }
.bm-wheel svg { width: 100%; height: 100%; overflow: visible; }
.bm-wheel__seg path { fill: var(--bm-surface); stroke: var(--bm-bg); stroke-width: 3; transition: fill .25s, transform .3s var(--bm-ease); transform-origin: 200px 200px; }
.bm-wheel__seg.el-fire path { fill: color-mix(in srgb, var(--el-fire) 14%, var(--bm-surface)); }
.bm-wheel__seg.el-earth path { fill: color-mix(in srgb, var(--el-earth) 14%, var(--bm-surface)); }
.bm-wheel__seg.el-air path { fill: color-mix(in srgb, var(--el-air) 14%, var(--bm-surface)); }
.bm-wheel__seg.el-water path { fill: color-mix(in srgb, var(--el-water) 16%, var(--bm-surface)); }
.bm-wheel__seg:hover path, .bm-wheel__seg:focus path, .bm-wheel__seg.is-active path { transform: scale(1.04); }
.bm-wheel__seg.el-fire:hover path, .bm-wheel__seg.el-fire.is-active path { fill: var(--el-fire); }
.bm-wheel__seg.el-earth:hover path, .bm-wheel__seg.el-earth.is-active path { fill: var(--el-earth); }
.bm-wheel__seg.el-air:hover path, .bm-wheel__seg.el-air.is-active path { fill: var(--el-air); }
.bm-wheel__seg.el-water:hover path, .bm-wheel__seg.el-water.is-active path { fill: var(--el-water); }
.bm-wheel__seg text { text-anchor: middle; dominant-baseline: central; fill: var(--bm-text); pointer-events: none; transition: fill .2s; }
.bm-wheel__seg:hover text, .bm-wheel__seg.is-active text { fill: #fff; }
.bm-wheel__glyph { font-size: 26px; font-family: "Segoe UI Symbol", "Noto Sans Symbols", "DejaVu Sans", sans-serif; }
.bm-wheel__count { font: 600 12px var(--bm-font-body); opacity: .7; }
.bm-wheel__center { position: absolute; inset: 29%; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 4px; background: var(--bm-surface); box-shadow: inset 0 0 0 1px var(--bm-line); padding: 8%; pointer-events: none; }
.bm-wheel__name { font: 700 clamp(20px, 2.6vw, 30px)/1.1 var(--bm-font-display); }
.bm-wheel__meta { font-size: 12px; color: var(--bm-muted); }
.bm-wheel__traits { font-size: 12px; color: var(--bm-faint); line-height: 1.35; }
.bm-zodiac__side { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.bm-zodiac__title { font-size: clamp(30px, 3.6vw, 46px); display: flex; align-items: center; gap: 12px; }
.bm-zodiac__title .bm-glyph { color: var(--bm-accent); }
.bm-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 8px; }
.el-fire.bm-dot { background: var(--el-fire); } .el-earth.bm-dot { background: var(--el-earth); } .el-air.bm-dot { background: var(--el-air); } .el-water.bm-dot { background: var(--el-water); }

/* ---------- Profession tiles ---------- */
.bm-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 180px), 1fr)); gap: 12px; }
.bm-tile { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 18px; border-radius: var(--bm-radius); border: 1px solid var(--bm-line); background: var(--bm-surface); overflow: hidden; transition: transform .25s var(--bm-ease), border-color .2s, box-shadow .25s; }
.bm-tile::after { content: ""; position: absolute; right: -30px; bottom: -30px; width: 90px; height: 90px; border-radius: 50%; background: var(--bm-accent-soft); transition: transform .4s var(--bm-ease); }
.bm-tile:hover { transform: translateY(-3px); border-color: var(--bm-text); box-shadow: var(--bm-shadow); }
.bm-tile:hover::after { transform: scale(1.8); }
.bm-tile__icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--bm-surface-2); color: var(--bm-accent); position: relative; z-index: 1; }
.bm-tile__name { font: 700 18px/1.2 var(--bm-font-display); position: relative; z-index: 1; }
.bm-tile__count { position: absolute; top: 16px; right: 16px; font: 600 13px/1 var(--bm-font-body); color: var(--bm-faint); }

/* ---------- Quote ---------- */
.bm-quote { position: relative; margin: 0; padding: clamp(28px, 5vw, 64px); border-radius: 24px; background: var(--bm-ink); color: #fff; overflow: hidden; }
[data-theme="dark"] .bm-quote { background: var(--bm-surface-2); }
.bm-quote__mark { position: absolute; right: clamp(20px, 4vw, 56px); top: clamp(20px, 4vw, 48px); color: var(--bm-accent); opacity: .9; }
.bm-quote__mark svg { width: clamp(48px, 7vw, 96px); height: auto; }
.bm-quote .bm-eyebrow { color: #ffb4b4; }
.bm-quote blockquote { margin: 10px 0 28px; max-width: 1100px; }
.bm-quote blockquote p { font: 400 clamp(26px, 3.6vw, 48px)/1.18 var(--bm-font-display); font-style: italic; letter-spacing: -.01em; }
.bm-quote figcaption a { display: inline-flex; align-items: center; gap: 14px; }
.bm-quote__img { width: 52px; height: 52px; border-radius: 50%; }
.bm-quote__who strong { display: block; font-size: 17px; }
.bm-quote__who em { display: block; font-style: normal; font-size: 13px; opacity: .7; }

/* ---------- Panels & charts ---------- */
.bm-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.bm-split--wide { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); margin-bottom: 28px; }
.bm-card-panel { display: flex; flex-direction: column; padding: clamp(16px, 2.4vw, 28px); border-radius: 18px; border: 1px solid var(--bm-line); background: var(--bm-surface); min-width: 0; }
.bm-card-panel > .bm-cols { flex: 1; min-height: 220px; height: auto; }
.bm-panel__title { font: 600 13px/1.3 var(--bm-font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--bm-faint); margin-bottom: 16px !important; }

.bm-heat__dow, .bm-heat__grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.bm-heat__dow span { font: 600 11px/1 var(--bm-font-body); text-transform: uppercase; letter-spacing: .08em; color: var(--bm-faint); text-align: center; padding-bottom: 8px; }
.bm-heat__day { position: relative; aspect-ratio: 1; border-radius: 10px; display: flex; flex-direction: column; justify-content: space-between; padding: 6px 7px; background: var(--bm-surface-2); font-size: 13px; transition: transform .2s var(--bm-ease), box-shadow .2s; }
.bm-heat__day:hover { transform: scale(1.08); z-index: 2; box-shadow: var(--bm-shadow); }
.bm-heat__n { font-weight: 600; }
.bm-heat__c { align-self: flex-end; font-size: 11px; font-weight: 700; }
.bm-heat .lvl-1 { background: color-mix(in srgb, var(--bm-accent) 16%, var(--bm-surface)); }
.bm-heat .lvl-2 { background: color-mix(in srgb, var(--bm-accent) 34%, var(--bm-surface)); }
.bm-heat .lvl-3 { background: color-mix(in srgb, var(--bm-accent) 58%, var(--bm-surface)); color: #fff; }
.bm-heat .lvl-4 { background: var(--bm-accent); color: #fff; }
.bm-heat__day.is-today { box-shadow: 0 0 0 2px var(--bm-text); }
.bm-heat__legend { display: flex; align-items: center; justify-content: flex-end; gap: 4px; margin-top: 12px; font-size: 11px; color: var(--bm-faint); }
.bm-heat__legend i { width: 14px; height: 14px; border-radius: 4px; background: var(--bm-surface-2); }
.bm-heat__legend span { margin: 0 4px; }

.bm-cols { display: flex; align-items: flex-end; gap: clamp(4px, 1vw, 12px); height: 220px; padding-top: 24px; }
.bm-cols--wide { height: 180px; }
.bm-cols--mini { height: 100px; gap: 4px; padding-top: 0; }
.bm-cols__col { position: relative; flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 8px; min-width: 0; }
.bm-cols__bar { position: relative; width: 100%; max-width: 46px; height: var(--h); min-height: 3px; border-radius: 8px 8px 3px 3px; background: color-mix(in srgb, var(--bm-accent) 30%, var(--bm-surface-2)); transform-origin: bottom; transition: background .2s; }
.bm-cols__col:hover .bm-cols__bar { background: var(--bm-accent); }
.bm-cols__label { font-size: 11px; color: var(--bm-faint); white-space: nowrap; }
.bm-cols--mini .bm-cols__label { font-size: 10px; }
.bm-cols__tip { position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translate(-50%, 4px); padding: 4px 8px; border-radius: 6px; background: var(--bm-ink); color: #fff; font-size: 12px; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
.bm-cols__col:hover .bm-cols__tip { opacity: 1; transform: translate(-50%, 0); }
.bm-anim .bm-cols__bar { transform: scaleY(0); transition: transform .9s var(--bm-ease), background .2s; }
.bm-anim .is-in .bm-cols__bar, .bm-anim .bm-cols.is-in .bm-cols__bar { transform: scaleY(1); }

.bm-bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.bm-bars__row { display: grid; grid-template-columns: minmax(110px, 200px) minmax(0, 1fr) auto; align-items: center; gap: 14px; }
.bm-bars__label { display: flex; align-items: center; gap: 8px; font-weight: 500; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bm-bars__label a:hover { color: var(--bm-accent); }
.bm-bars__track { height: 10px; border-radius: 999px; background: var(--bm-surface-2); overflow: hidden; }
.bm-bars__fill { display: block; height: 100%; width: var(--w); border-radius: inherit; background: linear-gradient(90deg, color-mix(in srgb, var(--bm-accent) 60%, transparent), var(--bm-accent)); }
.bm-anim .bm-bars__row .bm-bars__fill { width: 0; transition: width 1.1s var(--bm-ease); }
.bm-anim .bm-bars__row.is-in .bm-bars__fill { width: var(--w); }
.bm-bars__val { font: 600 14px/1 var(--bm-font-body); color: var(--bm-muted); min-width: 40px; text-align: right; }

.bm-ring { position: relative; width: 132px; height: 132px; flex: none; }
.bm-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.bm-ring circle { fill: none; stroke-width: 7; }
.bm-ring__bg { stroke: var(--bm-surface-2); }
.bm-ring__fg { stroke: var(--bm-accent); stroke-linecap: round; stroke-dashoffset: var(--off); transition: stroke-dashoffset 1.4s var(--bm-ease); }
.bm-anim .bm-ring:not(.is-in) .bm-ring__fg { stroke-dashoffset: var(--len); }
.bm-ring__txt { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.bm-ring__txt strong { font: 800 32px/1 var(--bm-font-display); }
.bm-ring__txt span { font-size: 12px; color: var(--bm-muted); margin-top: 4px; }

/* ---------- Page heads, toolbars ---------- */
.bm-pagehead { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: end; padding: clamp(28px, 5vw, 56px) 0 clamp(20px, 3vw, 32px); border-bottom: 1px solid var(--bm-line); margin-bottom: 28px; }
.bm-pagehead__title { font-size: clamp(36px, 6vw, 76px); letter-spacing: -.03em; line-height: .98; }
.bm-pagehead__intro { margin-top: 14px !important; font-size: 18px; color: var(--bm-muted); max-width: 900px; }
.bm-pagehead__aside { min-width: 0; }
.bm-crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; padding: 0; font-size: 13px; color: var(--bm-faint); }
.bm-crumbs li + li::before { content: "/"; margin-right: 6px; opacity: .5; }
.bm-crumbs a:hover { color: var(--bm-accent); }
.bm-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.bm-datenav { display: inline-flex; align-items: center; gap: 12px; font: 600 16px/1 var(--bm-font-body); }
.bm-filter { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.bm-toolbar .bm-filter { margin: 0; }
.bm-filter button { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 13px; border-radius: 999px; border: 1px solid var(--bm-line); background: var(--bm-surface); cursor: pointer; font-size: 13px; font-weight: 500; transition: all .2s; }
.bm-filter button span { font-size: 11px; color: var(--bm-faint); }
.bm-filter button.is-active { background: var(--bm-text); border-color: var(--bm-text); color: var(--bm-bg); }
.bm-filter button.is-active span { color: inherit; opacity: .7; }
[hidden].bm-filter-item, .bm-filter-item[hidden], li[hidden] { display: none !important; }
.bm-filters { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px; margin-bottom: 18px; border-radius: 18px; background: var(--bm-surface); border: 1px solid var(--bm-line); }
.bm-filters select { flex: 1 1 140px; }
.bm-filters__search { flex: 2 1 220px; display: flex; align-items: center; gap: 8px; padding-left: 14px; border-radius: 12px; border: 1px solid var(--bm-line); background: var(--bm-surface-2); color: var(--bm-faint); }
.bm-filters__search input { flex: 1; border: 0 !important; background: transparent !important; padding-left: 0; }
.bm-resultcount { font-size: 14px; color: var(--bm-muted); margin-bottom: 16px !important; }
.bm-pagination { margin-top: 40px; }
.bm-pagination ul { list-style: none; display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.bm-pagination .page-numbers { display: grid; place-items: center; min-width: 42px; height: 42px; padding: 0 10px; border-radius: 12px; border: 1px solid var(--bm-line); background: var(--bm-surface); font-weight: 600; }
.bm-pagination .page-numbers.current { background: var(--bm-text); color: var(--bm-bg); border-color: var(--bm-text); }
.bm-empty { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 56px 20px; border-radius: 18px; border: 1px dashed var(--bm-line-strong); color: var(--bm-muted); text-align: center; }

/* Day page */
.bm-daycard { display: flex; flex-direction: column; align-items: center; width: 170px; padding: 18px 16px; border-radius: 20px; background: var(--bm-surface); border: 1px solid var(--bm-line); box-shadow: var(--bm-shadow); text-align: center; }
.bm-daycard__m { font: 700 13px/1 var(--bm-font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--bm-accent); }
.bm-daycard__d { font: 800 84px/1 var(--bm-font-display); letter-spacing: -.04em; }
.bm-daycard__z { display: inline-flex; gap: 6px; font-size: 13px; color: var(--bm-muted); }

/* Month page */
.bm-monthnav { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.bm-monthnav a { padding: 8px 10px; border-radius: 10px; border: 1px solid var(--bm-line); text-align: center; font-size: 13px; font-weight: 600; background: var(--bm-surface); }
.bm-monthnav a[aria-current], .bm-monthnav a:hover { background: var(--bm-text); color: var(--bm-bg); border-color: var(--bm-text); }
.bm-days { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); gap: 14px; }
.bm-days__day { padding: 16px; border-radius: 18px; border: 1px solid var(--bm-line); background: var(--bm-surface); }
.bm-days__head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.bm-days__head:hover { color: var(--bm-accent); }
.bm-days__num { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--bm-surface-2); font: 800 22px/1 var(--bm-font-display); }
.bm-days__label { flex: 1; display: flex; flex-direction: column; font: 700 18px/1.2 var(--bm-font-display); }
.bm-days__label small { font: 500 13px var(--bm-font-body); color: var(--bm-muted); }
.bm-days__people { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: thin; padding-bottom: 4px; }

/* Year calendar */
.bm-year { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 16px; margin-top: 24px; }
.bm-year__month { padding: 18px; border-radius: 18px; border: 1px solid var(--bm-line); background: var(--bm-surface); }
.bm-year__month.is-current { border-color: var(--bm-accent); box-shadow: 0 0 0 1px var(--bm-accent); }
.bm-year__head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 12px; }
.bm-year__head h2 { font-size: 22px; }
.bm-year__head span { font-size: 13px; color: var(--bm-muted); }
.bm-year__head:hover h2 { color: var(--bm-accent); }
.bm-year .bm-heat__grid, .bm-year .bm-heat__dow { gap: 3px; }
.bm-year .bm-heat__day { border-radius: 6px; padding: 3px 4px; font-size: 10px; }
.bm-year .bm-heat__c, .bm-year .bm-heat__legend { display: none; }
.bm-year .bm-heat__dow span { font-size: 9px; padding-bottom: 4px; }

/* Zodiac hub & sign */
.bm-zodiac--hub { margin-bottom: 40px; }
.bm-signs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.bm-mt { margin-top: 24px !important; }
.bm-neighbours { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.bm-neighbours a { display: grid; grid-template-columns: 70px 1fr auto; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 10px; transition: background .2s; }
.bm-neighbours a:hover { background: var(--bm-surface-2); }
.bm-neighbours__d { font-weight: 700; }
.bm-neighbours__faces { display: flex; min-height: 32px; }
.bm-neighbours__n { font-size: 13px; color: var(--bm-muted); }
.bm-sign { --c: var(--bm-accent); position: relative; display: flex; flex-direction: column; gap: 4px; padding: 20px; border-radius: 18px; border: 1px solid var(--bm-line); background: var(--bm-surface); overflow: hidden; transition: transform .25s var(--bm-ease), box-shadow .25s; }
.bm-sign.el-fire { --c: var(--el-fire); } .bm-sign.el-earth { --c: var(--el-earth); } .bm-sign.el-air { --c: var(--el-air); } .bm-sign.el-water { --c: var(--el-water); }
.bm-sign::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: var(--c); }
.bm-sign:hover { transform: translateY(-3px); box-shadow: var(--bm-shadow); }
.bm-sign.is-active { box-shadow: 0 0 0 2px var(--c); }
.bm-sign__glyph { font-size: 40px; line-height: 1; color: var(--c); font-family: "Segoe UI Symbol", "Noto Sans Symbols", "DejaVu Sans", sans-serif; }
.bm-sign__name { font: 700 24px/1.1 var(--bm-font-display); margin-top: 8px; }
.bm-sign__dates { font-size: 14px; font-weight: 600; }
.bm-sign__meta, .bm-sign__count { font-size: 13px; color: var(--bm-muted); }
.bm-sign__faces { display: flex; margin: 10px 0 2px; min-height: 32px; }
.bm-signnav { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 8px; margin-bottom: 24px; scrollbar-width: thin; }
.bm-signnav a { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 999px; border: 1px solid var(--bm-line); background: var(--bm-surface); white-space: nowrap; font-size: 14px; }
.bm-signnav a[aria-current] { background: var(--bm-text); color: var(--bm-bg); border-color: var(--bm-text); }
.bm-signcard { display: flex; gap: 18px; align-items: center; padding: 18px 22px; border-radius: 20px; background: var(--bm-surface); border: 1px solid var(--bm-line); box-shadow: var(--bm-shadow); }
.bm-signcard__glyph { font-size: 72px; line-height: 1; color: var(--bm-accent); font-family: "Segoe UI Symbol", "Noto Sans Symbols", "DejaVu Sans", sans-serif; }
.bm-signcard.el-fire .bm-signcard__glyph { color: var(--el-fire); } .bm-signcard.el-earth .bm-signcard__glyph { color: var(--el-earth); } .bm-signcard.el-air .bm-signcard__glyph { color: var(--el-air); } .bm-signcard.el-water .bm-signcard__glyph { color: var(--el-water); }
.bm-signcard dl { margin: 0; display: grid; grid-template-columns: auto auto; gap: 4px 16px; font-size: 14px; }
.bm-signcard dl div { display: contents; }
.bm-signcard dt { color: var(--bm-muted); }
.bm-signcard dd { margin: 0; font-weight: 600; }

/* ---------- Profile ---------- */
.bm-cover-band { position: relative; height: clamp(160px, 22vw, 300px); overflow: hidden; background: linear-gradient(120deg, hsl(var(--h) 40% 86%), hsl(calc(var(--h) + 50) 40% 78%)); }
[data-theme="dark"] .bm-cover-band { background: linear-gradient(120deg, hsl(var(--h) 25% 18%), hsl(calc(var(--h) + 50) 25% 12%)); }
.bm-cover-band__img { width: 100%; height: 100%; object-fit: cover; }
.bm-cover-band__blur { position: absolute; inset: -40px; background-size: cover; background-position: center 25%; filter: blur(36px) saturate(1.3); opacity: .75; transform: scale(1.1); }
.bm-cover-band__pattern { position: absolute; inset: 0; font-size: 34px; line-height: 1.6; letter-spacing: .6em; word-break: break-all; color: rgba(255, 255, 255, .22); padding: 10px; pointer-events: none; font-family: "Segoe UI Symbol", "Noto Sans Symbols", "DejaVu Sans", sans-serif; mix-blend-mode: overlay; }
.bm-cover-band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, var(--bm-bg)); }
.bm-hero { position: relative; display: grid; grid-template-columns: clamp(180px, 22vw, 300px) minmax(0, 1fr) auto; gap: clamp(20px, 3vw, 44px); align-items: end; margin-top: clamp(-150px, -12vw, -90px); z-index: 2; padding-bottom: 28px; border-bottom: 1px solid var(--bm-line); }
.bm-hero__portrait { position: relative; }
.bm-hero__img { aspect-ratio: 4 / 5; border-radius: 22px; box-shadow: var(--bm-shadow-lg); border: 5px solid var(--bm-bg); }
.bm-hero__hint { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; background: rgba(0, 0, 0, .55); color: #fff; font-size: 11px; white-space: nowrap; opacity: .9; transition: opacity .3s; pointer-events: none; }
.bm-hero__portrait:hover .bm-hero__hint { opacity: 0; }
.bm-hero__main { min-width: 0; padding-bottom: 6px; }
.bm-hero__bday { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: var(--bm-accent); color: #fff; font-weight: 600; font-size: 14px; margin-bottom: 12px !important; animation: bmPulse 2.4s infinite; }
.bm-hero__name { font-size: clamp(40px, 6.4vw, 92px); line-height: .95; letter-spacing: -.035em; font-weight: 800; }
.bm-hero__real { margin-top: 8px !important; color: var(--bm-muted); }
.bm-hero__real span { color: var(--bm-text); font-weight: 600; }
.bm-hero__tagline { margin-top: 10px !important; font: italic 400 clamp(18px, 1.8vw, 23px)/1.35 var(--bm-font-display); color: var(--bm-muted); }
.bm-hero__tagline::first-letter { text-transform: uppercase; }
.bm-hero__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.bm-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.bm-hero__bdcard { display: flex; align-items: center; gap: 18px; padding: 18px 22px; border-radius: 22px; background: var(--bm-surface); border: 1px solid var(--bm-line); box-shadow: var(--bm-shadow); margin-bottom: 6px; }
.bm-hero__bdlist { margin: 0; display: grid; gap: 8px; font-size: 14px; }
.bm-hero__bdlist dt { font: 600 11px/1 var(--bm-font-body); letter-spacing: .1em; text-transform: uppercase; color: var(--bm-faint); margin-bottom: 3px; }
.bm-hero__bdlist dd { margin: 0; font-weight: 600; white-space: nowrap; }
.bm-hero__bdlist a:hover { color: var(--bm-accent); }

.bm-profile__layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); padding-top: 32px; }
.bm-sticky { position: sticky; top: calc(var(--bm-header-h) + 20px); display: grid; gap: 20px; }
.admin-bar .bm-sticky { top: calc(var(--bm-header-h) + 52px); }
.bm-toc__title { font: 600 12px/1 var(--bm-font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--bm-faint); margin-bottom: 12px !important; }
.bm-toc ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--bm-line); }
.bm-toc a { display: flex; align-items: center; gap: 10px; padding: 8px 12px; margin-left: -2px; border-left: 2px solid transparent; font-size: 14px; color: var(--bm-muted); transition: color .2s, border-color .2s, background .2s; }
.bm-toc a svg { opacity: .6; }
.bm-toc a:hover { color: var(--bm-text); }
.bm-toc a.is-active { color: var(--bm-accent); border-left-color: var(--bm-accent); font-weight: 600; background: linear-gradient(90deg, var(--bm-accent-soft), transparent); }
.bm-toc a.is-active svg { opacity: 1; }
.bm-profile__main { min-width: 0; }

.bm-glance { display: flex; flex-wrap: wrap; gap: 1px; border-radius: 18px; overflow: hidden; border: 1px solid var(--bm-line); background: var(--bm-line); margin-bottom: 12px; }
.bm-glance__item { flex: 1 1 200px; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px; padding: 16px 18px; background: var(--bm-surface); }
.bm-glance__icon { grid-row: span 2; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--bm-surface-2); color: var(--bm-accent); }
.bm-glance__label { font: 600 11px/1.3 var(--bm-font-body); letter-spacing: .1em; text-transform: uppercase; color: var(--bm-faint); }
.bm-glance__value { font-weight: 600; font-size: 15px; line-height: 1.35; }
.bm-glance__value a:hover { color: var(--bm-accent); }

.bm-block { padding: clamp(28px, 4vw, 44px) 0; border-bottom: 1px solid var(--bm-line); }
.bm-block__title { display: flex; align-items: center; gap: 12px; font-size: clamp(26px, 3vw, 36px); margin-bottom: 20px !important; }
.bm-block__title svg { width: 26px; height: 26px; color: var(--bm-accent); }
.bm-block__sub { font-size: 21px; margin: 24px 0 10px !important; }
.bm-lead { font: 400 clamp(19px, 1.8vw, 23px)/1.55 var(--bm-font-display); margin-bottom: 18px !important; }
.bm-lead::first-letter { float: left; font-size: 3.3em; line-height: .85; font-weight: 800; padding: 4px 10px 0 0; color: var(--bm-accent); }
.bm-prose { font-size: 17.5px; line-height: 1.75; color: color-mix(in srgb, var(--bm-text) 88%, var(--bm-bg)); }
.bm-prose p { margin: 0 0 1.1em; }
.bm-prose a { color: var(--bm-accent); text-decoration: underline; text-underline-offset: 3px; }
.bm-prose--narrow { max-width: 860px; margin-bottom: 28px; }

.bm-timeline { list-style: none; margin: 24px 0 0; padding: 0; position: relative; }
.bm-timeline::before { content: ""; position: absolute; left: 86px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(var(--bm-accent), var(--bm-line)); }
.bm-timeline__item { position: relative; display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 32px; padding-bottom: 18px; }
.bm-timeline__item::before { content: ""; position: absolute; left: 80px; top: 6px; width: 14px; height: 14px; border-radius: 50%; background: var(--bm-bg); border: 3px solid var(--bm-accent); transition: transform .25s; }
.bm-timeline__item:hover::before { transform: scale(1.3); background: var(--bm-accent); }
.bm-timeline__item.kind-breakthrough::before, .bm-timeline__item.kind-record::before { background: var(--bm-accent); }
.bm-timeline__year { font: 800 22px/1 var(--bm-font-display); text-align: right; padding-top: 2px; }
.bm-timeline__year small { display: block; font: 500 11px/1.6 var(--bm-font-body); color: var(--bm-faint); }
.bm-timeline__card { padding: 14px 18px; border-radius: 14px; background: var(--bm-surface); border: 1px solid var(--bm-line); transition: border-color .2s, box-shadow .2s; }
.bm-timeline__card:hover { border-color: var(--bm-line-strong); box-shadow: var(--bm-shadow); }
.bm-timeline__card h3 { font-size: 18px; margin: 4px 0 4px; }
.bm-timeline__card p { color: var(--bm-muted); font-size: 15px; }

.bm-works { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--bm-line); }
.bm-works li { display: grid; grid-template-columns: 64px minmax(0, 1.5fr) minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 12px 4px; border-bottom: 1px solid var(--bm-line); transition: background .2s; }
.bm-works li:hover { background: var(--bm-surface); }
.bm-works__year { font-weight: 700; color: var(--bm-faint); }
.bm-works__title { font: 600 17px/1.3 var(--bm-font-display); }
.bm-works__role { color: var(--bm-muted); font-size: 14px; }

.bm-awardstats { display: flex; flex-wrap: wrap; gap: 14px; align-items: stretch; margin-bottom: 20px; }
.bm-bigstat { display: flex; flex-direction: column; justify-content: center; padding: 18px 24px; border-radius: 16px; background: var(--bm-surface); border: 1px solid var(--bm-line); }
.bm-bigstat strong { font: 800 44px/1 var(--bm-font-display); color: var(--bm-accent); }
.bm-bigstat span { font-size: 13px; color: var(--bm-muted); margin-top: 4px; }
.bm-awardstats__chart { flex: 1; min-width: 220px; padding: 14px 18px; border-radius: 16px; background: var(--bm-surface); border: 1px solid var(--bm-line); }
.bm-awards { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.bm-awards li { flex: 1 1 320px; display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--bm-line); background: var(--bm-surface); }
.bm-awards__icon { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; flex: none; background: linear-gradient(135deg, #f5d37a, #d4a017); color: #5a3e00; }
.bm-awards li.is-nominated .bm-awards__icon { background: var(--bm-surface-2); color: var(--bm-faint); }
.bm-awards__body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.bm-awards__body strong { font-size: 15px; line-height: 1.3; }
.bm-awards__body span { font-size: 13px; color: var(--bm-muted); }
.bm-awards__year { font: 700 15px/1 var(--bm-font-display); color: var(--bm-faint); }

.bm-edu { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.bm-edu li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 16px 18px; border-radius: 14px; border: 1px solid var(--bm-line); background: var(--bm-surface); }
.bm-edu__dot { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--bm-accent-soft); color: var(--bm-accent); }
.bm-edu li div { display: flex; flex-direction: column; }
.bm-edu strong { font: 700 17px/1.3 var(--bm-font-display); }
.bm-edu span, .bm-edu em { font-size: 14px; color: var(--bm-muted); }
.bm-edu__years { font-weight: 700; color: var(--bm-faint); white-space: nowrap; }

.bm-facts { margin: 0 0 20px; display: flex; flex-wrap: wrap; gap: 10px; }
.bm-facts div { flex: 1 1 220px; padding: 14px 16px; border-radius: 14px; background: var(--bm-surface); border: 1px solid var(--bm-line); }
.bm-facts dt { font: 600 11px/1.3 var(--bm-font-body); letter-spacing: .1em; text-transform: uppercase; color: var(--bm-faint); }
.bm-facts dd { margin: 4px 0 0; font-weight: 600; }

.bm-quotes { position: relative; border-radius: 22px; background: var(--bm-surface); border: 1px solid var(--bm-line); overflow: hidden; }
.bm-quotes__track { display: flex; transition: transform .5s var(--bm-ease); }
.bm-quotes__item { flex: 0 0 100%; margin: 0; padding: clamp(24px, 4vw, 48px); }
.bm-quotes__item blockquote { margin: 0; }
.bm-quotes__item p { font: italic 400 clamp(22px, 2.6vw, 32px)/1.3 var(--bm-font-display); }
.bm-quotes__item p::before { content: "“"; color: var(--bm-accent); }
.bm-quotes__item p::after { content: "”"; color: var(--bm-accent); }
.bm-quotes__item figcaption { margin-top: 14px; color: var(--bm-muted); font-size: 14px; }
.bm-quotes__nav { display: flex; align-items: center; gap: 12px; padding: 0 clamp(24px, 4vw, 48px) 24px; font-size: 13px; color: var(--bm-muted); }

.bm-social { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.bm-social__item { flex: 1 1 230px; display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--bm-line); background: var(--bm-surface); transition: transform .25s var(--bm-ease), border-color .2s, box-shadow .25s; }
.bm-social__item:hover { transform: translateY(-2px); border-color: var(--bm-text); box-shadow: var(--bm-shadow); }
.bm-social__icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--bm-surface-2); flex: none; }
.is-instagram .bm-social__icon { background: linear-gradient(45deg, #f9ce34, #ee2a7b, #6228d7); color: #fff; }
.is-youtube .bm-social__icon { background: #ff0000; color: #fff; }
.is-x .bm-social__icon, .is-threads .bm-social__icon, .is-tiktok .bm-social__icon { background: #111; color: #fff; }
.is-facebook .bm-social__icon { background: #1877f2; color: #fff; }
.is-spotify .bm-social__icon { background: #1db954; color: #fff; }
.is-linkedin .bm-social__icon { background: #0a66c2; color: #fff; }
.bm-social__txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.bm-social__txt span { font-size: 13px; color: var(--bm-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bm-social__n { font: 800 20px/1 var(--bm-font-display); }

.bm-bfacts { display: flex; flex-wrap: wrap; gap: 10px; }
.bm-bfacts__item { flex: 1 1 180px; display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border-radius: 14px; background: var(--bm-surface); border: 1px solid var(--bm-line); }
.bm-bfacts__item svg { color: var(--bm-accent); margin-bottom: 6px; }
.bm-bfacts__item span { font: 600 11px/1.3 var(--bm-font-body); letter-spacing: .1em; text-transform: uppercase; color: var(--bm-faint); }
.bm-bfacts__item strong { font: 700 19px/1.25 var(--bm-font-display); }
.bm-twins { margin-top: 24px; }
.bm-twins__row { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-start; }
.bm-twins__more { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 92px; font-size: 13px; font-weight: 600; }
.bm-twins__more svg { width: 72px; height: 72px; padding: 24px; border-radius: 50%; border: 1px dashed var(--bm-line-strong); }

.bm-trivia { list-style: none; margin: 0; padding: 0; counter-reset: t; display: flex; flex-wrap: wrap; gap: 10px; }
.bm-trivia li { flex: 1 1 300px; counter-increment: t; position: relative; padding: 18px 18px 18px 64px; border-radius: 14px; background: var(--bm-surface); border: 1px solid var(--bm-line); }
.bm-trivia li::before { content: counter(t, decimal-leading-zero); position: absolute; left: 18px; top: 16px; font: 800 22px/1 var(--bm-font-display); color: var(--bm-accent); }

.bm-video { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 18px; background: #000 center / cover no-repeat; cursor: pointer; overflow: hidden; }
.bm-video__play { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; background: rgba(0, 0, 0, .25); transition: background .2s; }
.bm-video:hover .bm-video__play { background: rgba(0, 0, 0, .1); }
.bm-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.bm-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px; }
.bm-gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; }

.bm-faq { display: grid; gap: 8px; }
.bm-faq details { border-radius: 14px; border: 1px solid var(--bm-line); background: var(--bm-surface); overflow: hidden; transition: border-color .2s; }
.bm-faq details[open] { border-color: var(--bm-line-strong); }
.bm-faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 20px; cursor: pointer; font: 600 17px/1.35 var(--bm-font-body); }
.bm-faq summary::-webkit-details-marker { display: none; }
.bm-faq summary svg { transition: transform .25s; flex: none; color: var(--bm-faint); }
.bm-faq details[open] summary svg { transform: rotate(180deg); color: var(--bm-accent); }
.bm-faq details > div { padding: 0 20px 18px; color: var(--bm-muted); }
.bm-profile__foot { padding: 24px 0; font-size: 13px; }

.bm-related { margin-top: 24px; }
.bm-tabs { display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--bm-surface-2); overflow-x: auto; max-width: 100%; }
.bm-tabs button { border: 0; background: transparent; padding: 8px 16px; border-radius: 999px; cursor: pointer; font-weight: 600; font-size: 14px; color: var(--bm-muted); white-space: nowrap; }
.bm-tabs button[aria-selected="true"] { background: var(--bm-surface); color: var(--bm-text); box-shadow: var(--bm-shadow); }

/* Lists */
.bm-listing { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.bm-listing__item { display: grid; grid-template-columns: auto 220px minmax(0, 1fr); gap: 24px; align-items: center; padding: 18px; border-radius: 20px; background: var(--bm-surface); border: 1px solid var(--bm-line); }
.bm-listing:not(.is-numbered) .bm-listing__item { grid-template-columns: 220px minmax(0, 1fr); }
.bm-listing__n { font: 800 64px/1 var(--bm-font-display); color: var(--bm-accent); min-width: 72px; text-align: center; }
.bm-listing__img .bm-portrait { aspect-ratio: 4 / 5; border-radius: 14px; }
.bm-listing__body { display: flex; flex-direction: column; gap: 8px; }
.bm-listing__body h2 { font-size: clamp(24px, 2.6vw, 34px); }
.bm-listing__body h2 a:hover { color: var(--bm-accent); }
.bm-lists { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 16px; }
.bm-listcard { display: flex; flex-direction: column; gap: 10px; padding: 22px; border-radius: 20px; border: 1px solid var(--bm-line); background: var(--bm-surface); transition: transform .25s var(--bm-ease), box-shadow .25s; }
.bm-listcard:hover { transform: translateY(-3px); box-shadow: var(--bm-shadow); }
.bm-listcard__faces { display: flex; }
.bm-listcard__faces .bm-face { width: 48px; height: 48px; }
.bm-listcard__title { font: 700 24px/1.15 var(--bm-font-display); }
.bm-listcard__intro { color: var(--bm-muted); font-size: 15px; }

/* 404 */
.bm-404 { display: flex; flex-direction: column; align-items: center; text-align: center; padding: clamp(40px, 8vw, 96px) 0 24px; }
.bm-404__art { color: var(--bm-accent); width: min(260px, 70vw); margin-bottom: 18px; }
.bm-404__art svg { width: 100%; height: auto; }
.bm-404__flame { animation: bmFlicker 1.4s infinite alternate; transform-origin: center bottom; }
.bm-404__title { font-size: clamp(34px, 5vw, 60px); letter-spacing: -.03em; }
.bm-404__text { color: var(--bm-muted); margin-top: 12px !important; max-width: 560px; font-size: 18px; }
.bm-404__search { display: flex; align-items: center; gap: 10px; width: min(560px, 100%); margin-top: 24px; padding: 6px 6px 6px 18px; border-radius: 999px; border: 1px solid var(--bm-line); background: var(--bm-surface); box-shadow: var(--bm-shadow); color: var(--bm-faint); }
.bm-404__search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: 500 16px var(--bm-font-body); color: var(--bm-text); }
.bm-404__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 20px; }

/* Ads */
.bm-ad { width: min(var(--bm-max), 100% - 2 * var(--bm-gutter)); margin: 20px auto; text-align: center; overflow: hidden; }
.bm-profile__main .bm-ad, .bm-sticky .bm-ad { width: 100%; }
.bm-ad__label { display: block; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--bm-faint); margin-bottom: 6px; }
.bm-html { min-width: 0; }

/* ---------- Footer ---------- */
.bm-footer { margin-top: 40px; padding: 56px 0 24px; background: var(--bm-surface); border-top: 1px solid var(--bm-line); }
.bm-footer__grid { display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr)); gap: 40px; }
.bm-footer__about p { margin-top: 14px !important; color: var(--bm-muted); font-size: 15px; max-width: 420px; }
.bm-footer__social { display: flex; gap: 6px; margin-top: 16px; }
.bm-footer__social a { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--bm-line); }
.bm-footer__social a:hover { border-color: var(--bm-text); }
.bm-footer__h { font: 600 12px/1 var(--bm-font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--bm-faint); margin-bottom: 16px !important; }
.bm-footer__months { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.bm-footer__months a { padding: 6px 0; border-radius: 8px; text-align: center; font-size: 13px; font-weight: 600; background: var(--bm-surface-2); }
.bm-footer__months a:hover { background: var(--bm-text); color: var(--bm-bg); }
.bm-footer__signs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px 12px; }
.bm-footer__signs a { display: flex; gap: 8px; font-size: 14px; color: var(--bm-muted); padding: 3px 0; }
.bm-footer__signs a span { width: 18px; text-align: center; font-family: "Segoe UI Symbol", "Noto Sans Symbols", "DejaVu Sans", sans-serif; }
.bm-footer__signs a:hover, .bm-footer__links a:hover { color: var(--bm-accent); }
.bm-footer__links { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 8px; font-size: 15px; color: var(--bm-muted); }
.bm-footer__bottom { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--bm-line); font-size: 13px; color: var(--bm-faint); }
.bm-totop { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--bm-line); background: transparent; cursor: pointer; display: grid; place-items: center; }
.bm-totop svg { transform: rotate(90deg); }

.bm-appbar { display: none; }

/* ---------- Motion ---------- */
@keyframes bmFade { from { opacity: 0; } }
@keyframes bmPop { from { opacity: 0; transform: translateY(-8px) scale(.98); } }
@keyframes bmPulse { 0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--bm-accent) 45%, transparent); } 50% { box-shadow: 0 0 0 8px transparent; } }
@keyframes bmFlicker { from { transform: scaleY(1) skewX(0); opacity: 1; } to { transform: scaleY(.85) skewX(4deg); opacity: .75; } }
.bm-anim [data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--bm-ease), transform .6s var(--bm-ease); }
.bm-anim [data-reveal].is-in { opacity: 1; transform: none; }
.bm-anim .bm-bars__row[data-reveal] { transform: none; }
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; }
	.bm-anim [data-reveal] { opacity: 1; transform: none; }
	.bm-anim .bm-bars__row .bm-bars__fill { width: var(--w); }
	.bm-anim .bm-cols__bar { transform: none; }
	html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
	.bm-header__date { display: none; }
	.bm-hero { grid-template-columns: clamp(170px, 24vw, 260px) minmax(0, 1fr); }
	.bm-hero__bdcard { grid-column: 1 / -1; justify-self: start; }
	.bm-profile__layout { grid-template-columns: 200px minmax(0, 1fr); }
	.bm-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.bm-grid--4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.bm-signs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.bm-rail__track { grid-auto-columns: minmax(220px, calc((100% - 2 * 22px) / 3)); }
}
@media (max-width: 960px) {
	:root { --bm-header-h: 58px; }
	.bm-header__menu { display: inline-grid; }
	.bm-nav { position: fixed; inset: var(--bm-header-h) 0 auto; flex-direction: column; gap: 0; padding: 8px var(--bm-gutter) 18px; background: var(--bm-bg); border-bottom: 1px solid var(--bm-line); box-shadow: var(--bm-shadow-lg); transform: translateY(-110%); visibility: hidden; transition: transform .3s var(--bm-ease), visibility .3s; }
	.bm-nav.is-open { transform: none; visibility: visible; }
	.bm-nav a { padding: 14px 4px; border-radius: 0; border-bottom: 1px solid var(--bm-line); font-size: 17px; background: none !important; }
	.bm-header__tools { margin-left: auto; }
	.bm-edition { grid-template-columns: 1fr; grid-template-areas: "date" "stats" "finder"; }
	.bm-edition__finder { grid-template-columns: 1fr; }
	.bm-cover { grid-template-columns: 1fr; }
	.bm-cover__side { border-left: 0; padding-left: 0; }
	.bm-week { grid-template-columns: repeat(7, minmax(120px, 1fr)); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; }
	.bm-week__day { scroll-snap-align: start; }
	.bm-zodiac { grid-template-columns: 1fr; justify-items: center; }
	.bm-signs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.bm-zodiac__side { width: 100%; }
	.bm-split, .bm-split--wide { grid-template-columns: 1fr; }
	.bm-pagehead { grid-template-columns: 1fr; }
	.bm-profile__layout { grid-template-columns: 1fr; }
	.bm-profile__side { display: none; }
	.bm-listing__item, .bm-listing:not(.is-numbered) .bm-listing__item { grid-template-columns: 120px minmax(0, 1fr); }
	.bm-listing__n { position: absolute; font-size: 32px; min-width: 0; margin: -6px 0 0 -6px; background: var(--bm-surface); border-radius: 50%; width: 52px; height: 52px; display: grid; place-items: center; box-shadow: var(--bm-shadow); }
	.bm-listing__item { position: relative; }
}
@media (max-width: 720px) {
	body.bm-app { font-size: 15.5px; padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
	.bm-header__cta { display: none; }
	.bm-logo { font-size: 18px; }
	.bm-logo__mark { width: 30px; height: 30px; }
	.bm-edition__stats { grid-template-columns: 1fr 1fr; gap: 8px; }
	.bm-stat { padding: 12px; grid-template-columns: 1fr; text-align: left; }
	.bm-stat__icon { grid-row: auto; width: 36px; height: 36px; margin-bottom: 8px; }
	.bm-stat > strong { font-size: 20px; }
	.bm-ring { width: 108px; height: 108px; }
	.bm-twin__fields { min-width: 0; width: 100%; flex: 1 1 100%; flex-wrap: wrap; }
	.bm-twin select[name="m"], .bm-twin select[name="d"] { flex: 1 1 0; width: 0; }
	.bm-twin .bm-btn { flex: 1 1 100%; }
	.bm-card--feature .bm-card__link { grid-template-columns: 1fr; }
	.bm-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
	.bm-signs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.bm-edition__big { font-size: 54px; }
	.bm-card__name { font-size: 17px; }
	.bm-card__sign { width: 28px; height: 28px; font-size: 14px; }
	.bm-rail__track { grid-auto-columns: 62%; gap: 14px; }
	.bm-rail__btn { display: none; }
	.bm-hero { grid-template-columns: 1fr; justify-items: center; text-align: center; margin-top: -110px; }
	.bm-hero__portrait { width: 200px; }
	.bm-hero__chips, .bm-actions { justify-content: center; }
	.bm-crumbs ol { justify-content: center; }
	.bm-hero__bdcard { justify-self: stretch; text-align: left; }
	.bm-timeline::before { left: 8px; }
	.bm-timeline__item { grid-template-columns: 1fr; gap: 6px; padding-left: 32px; }
	.bm-timeline__item::before { left: 2px; }
	.bm-timeline__year { text-align: left; }
	.bm-timeline__year small { display: inline; margin-left: 8px; }
	.bm-works li { grid-template-columns: 52px minmax(0, 1fr); }
	.bm-works__role { grid-column: 2; }
	.bm-works li .bm-tag { grid-column: 2; justify-self: start; }
	.bm-bars__row { grid-template-columns: minmax(90px, 120px) minmax(0, 1fr) auto; gap: 10px; }
	.bm-footer__grid { grid-template-columns: 1fr; gap: 28px; }
	.bm-footer__bottom { margin-bottom: 8px; }
	.bm-monthnav { grid-template-columns: repeat(4, 1fr); }
	.bm-daycard { width: 100%; flex-direction: row; justify-content: center; gap: 14px; }
	.bm-daycard__d { font-size: 56px; }
	.bm-appbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; inset: auto 0 0; z-index: 70; height: calc(62px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: color-mix(in srgb, var(--bm-bg) 92%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--bm-line); }
	.bm-appbar a, .bm-appbar button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; border: 0; background: none; font-size: 11px; font-weight: 600; color: var(--bm-faint); cursor: pointer; }
	.bm-appbar [aria-current] { color: var(--bm-accent); }
	.bm-search { padding-top: 12px; }
	.bm-heat__day { padding: 4px; font-size: 11px; border-radius: 7px; }
	.bm-heat__c { font-size: 9px; }
	.bm-quote blockquote p { font-size: 24px; }
}
@media (max-width: 420px) {
	.bm-grid--4 { grid-template-columns: 1fr 1fr; gap: 10px; }
	.bm-card__kicker { font-size: 10px; }
}

/* ---------- Print ---------- */
@media print {
	.bm-header, .bm-footer, .bm-appbar, .bm-profile__side, .bm-actions, .bm-ad, .bm-related, .bm-search, .bm-progress, .bm-cover-band, .bm-video, .bm-quotes__nav { display: none !important; }
	body.bm-app { background: #fff; color: #000; padding: 0; }
	.bm-hero { margin-top: 0; grid-template-columns: 160px 1fr; }
	.bm-profile__layout { grid-template-columns: 1fr; }
	[data-reveal] { opacity: 1 !important; transform: none !important; }
	.bm-quotes__track { flex-direction: column; transform: none !important; }
	.bm-faq details > div { display: block; }
}
