/* BuildingMaterial.com: design tokens and base components (design system v0.1). */

:root {
	--bm-ink: #16181d;
	--bm-muted: #555b66;
	--bm-muted-strong: #3d424b;
	--bm-steel: #1e5a7a;
	--bm-steel-dark: #123b52;
	--bm-steel-tint: #eaf1f5;
	--bm-steel-light: #3c8dbc;
	--bm-ground: #f6f7f8;
	--bm-surface: #fff;
	--bm-line: #dde1e6;
	--bm-field: #8a9099;
	--bm-sponsored-bg: #fff9f1;
	--bm-sponsored-tint: #fff4e5;
	--bm-sponsored-line: #f0c98f;
	--bm-sponsored-ink: #8a4106;
	--bm-verified-bg: #e7f4ec;
	--bm-verified-ink: #1d5e35;
	--bm-neutral-bg: #eef0f2;
	--bm-radius: 12px;
	--bm-radius-sm: 8px;
	--bm-font-body: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--bm-font-head: "Space Grotesk", Inter, system-ui, sans-serif;
	--bm-wrap: 1200px;
	--bm-gutter: 24px;
}

@media (max-width: 600px) {
	:root { --bm-gutter: 16px; }
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--bm-surface); color: var(--bm-ink); font: 400 1.0625rem/1.65 var(--bm-font-body); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { font-family: var(--bm-font-head); line-height: 1.15; margin: 0 0 0.5em; }
h1 { font-size: clamp(2rem, 4vw, 2.75rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 2.5vw, 1.875rem); font-weight: 600; }
h3 { font-size: 1.375rem; font-weight: 600; }
a { color: var(--bm-steel); }
a:hover { color: var(--bm-steel-dark); }
img { max-width: 100%; height: auto; }
:focus-visible { outline: 3px solid var(--bm-steel-light); outline-offset: 2px; }

.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: -9999px; top: 0; }
.bm-skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--bm-surface); padding: 8px 12px; border-radius: var(--bm-radius-sm); }

.bm-wrap { max-width: var(--bm-wrap); margin: 0 auto; padding-inline: var(--bm-gutter); }
.bm-stack { display: flex; flex-direction: column; gap: 16px; }
.bm-section { padding-block: 48px; }
.bm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; list-style: none; margin: 0; padding: 0; }

/* Buttons */
.bm-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 18px; border-radius: var(--bm-radius-sm); border: 1px solid transparent; font: 600 0.9375rem var(--bm-font-body); text-decoration: none; cursor: pointer; }
.bm-btn--primary { background: var(--bm-steel); color: #fff; }
.bm-btn--primary:hover { background: var(--bm-steel-dark); color: #fff; }
.bm-btn--secondary { background: var(--bm-surface); color: var(--bm-steel); border-color: var(--bm-steel); }
.bm-btn--light { background: var(--bm-steel-light); color: #0b1620; font-weight: 700; }

/* Header */
.bm-header { background: var(--bm-surface); border-bottom: 1px solid var(--bm-line); }
.bm-header__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 28px; padding-block: 12px; }
.bm-logo { font: 700 1.375rem var(--bm-font-head); color: var(--bm-ink); text-decoration: none; }
.bm-logo span { color: var(--bm-steel); }
.bm-nav { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; margin: 0; padding: 0; font-weight: 600; font-size: 0.9375rem; }
.bm-nav a { color: var(--bm-ink); text-decoration: none; }
.bm-search { display: flex; gap: 8px; flex: 1 1 260px; max-width: 460px; }
.bm-search input, .bm-hero__search input { flex: 1; min-height: 44px; padding: 0 14px; border: 1px solid var(--bm-field); border-radius: var(--bm-radius-sm); font: 1rem var(--bm-font-body); }

/* Hero */
.bm-hero { background: var(--bm-ink); color: #fff; padding-block: 64px 56px; }
.bm-hero h1 { max-width: 820px; }
.bm-hero__lead { color: #c9ced6; font-size: 1.1875rem; max-width: 720px; margin: 0; }
.bm-hero__search { display: flex; flex-wrap: wrap; gap: 12px; max-width: 860px; }
.bm-hero__search input { min-height: 52px; border: 0; flex: 1 1 360px; }

/* Cards */
.bm-card { background: var(--bm-surface); border: 1px solid var(--bm-line); border-radius: var(--bm-radius); padding: 20px; font: 600 1.125rem var(--bm-font-head); }
.bm-card a { color: var(--bm-ink); text-decoration: none; }

/* Badges: text and colour together, never colour alone */
.bm-badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font: 600 0.8125rem var(--bm-font-body); }
.bm-badge--verified { background: var(--bm-verified-bg); color: var(--bm-verified-ink); }
.bm-badge--unclaimed { background: var(--bm-neutral-bg); color: var(--bm-muted-strong); }
.bm-badge--sponsored { background: var(--bm-sponsored-tint); color: var(--bm-sponsored-ink); font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase; }
.bm-badge--declared { border: 1px dashed var(--bm-field); color: var(--bm-muted-strong); border-radius: 6px; }

/* Sponsored module */
.bm-sponsored { background: var(--bm-sponsored-bg); border: 1px solid var(--bm-sponsored-line); border-radius: var(--bm-radius); padding: 16px; display: flex; flex-direction: column; gap: 10px; }

/* Banner slot: fixed size so it never shifts layout */
.bm-ad { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.bm-ad__label { font-size: 0.75rem; color: var(--bm-muted); }
.bm-ad__slot { width: 100%; max-width: 728px; aspect-ratio: 728 / 90; }
@media (max-width: 600px) { .bm-ad__slot { max-width: 320px; aspect-ratio: 320 / 100; } }

/* Breadcrumbs */
.bm-crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; font-size: 0.875rem; color: var(--bm-muted); }
.bm-crumbs li + li::before { content: "›"; margin-right: 6px; }

/* Prose */
.bm-prose { max-width: 780px; }
.bm-prose table { width: 100%; border-collapse: collapse; }
.bm-prose th, .bm-prose td { padding: 10px 12px; border-top: 1px solid var(--bm-line); text-align: left; }

/* Footer */
.bm-footer { background: var(--bm-ink); color: #c9ced6; margin-top: 64px; font-size: 0.875rem; }
.bm-footer a { color: #c9ced6; }
.bm-footer__cols { display: flex; flex-wrap: wrap; gap: 32px 64px; padding-block: 40px 16px; }
.bm-footer__heading { color: #fff; font-weight: 600; margin: 0 0 8px; }
.bm-footer__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.bm-footer__base { padding-block: 16px 32px; border-top: 1px solid #2a2e36; }

/* ---------- Knowledge pages (R1) ---------- */
.bm-knowledge { padding-block: 20px 64px; }
.bm-knowledge__cols { display: flex; flex-wrap: wrap; gap: 40px; margin-top: 20px; }
.bm-knowledge__main { flex: 999 1 640px; min-width: 0; max-width: 820px; display: flex; flex-direction: column; gap: 28px; }
.bm-knowledge__side { flex: 1 1 280px; display: flex; flex-direction: column; gap: 16px; }
.bm-knowledge__head h1 { margin: 0; }
.bm-kicker { margin: 0; font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--bm-steel); }
.bm-muted { color: var(--bm-muted); margin: 0; font-size: 0.9375rem; }
.bm-byline { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0; font-size: 0.875rem; color: var(--bm-muted-strong); }
.bm-byline__review { display: inline-flex; gap: 6px; align-items: center; }
.bm-byline__review svg { color: var(--bm-verified-ink); }
.bm-answer { padding: 20px 24px; background: var(--bm-steel-tint); border-radius: var(--bm-radius); }
.bm-answer__label { margin: 0 0 6px; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; color: var(--bm-steel); text-transform: uppercase; }
.bm-answer__text { margin: 0; font-size: 1.125rem; line-height: 1.55; }
.bm-section-block h2 { margin-bottom: 12px; }
.bm-table-wrap { overflow-x: auto; border: 1px solid var(--bm-line); border-radius: 10px; }
.bm-table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 0.9375rem; }
.bm-table th, .bm-table td { padding: 12px 16px; text-align: left; border-top: 1px solid var(--bm-line); vertical-align: top; }
.bm-table thead th { background: var(--bm-ground); border-top: 0; }
.bm-table tbody th { font-weight: 600; }
.bm-std { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.bm-std__item { padding: 16px; border: 1px solid var(--bm-line); border-radius: 10px; }
.bm-std__region { margin: 0 0 4px; font-weight: 600; }
.bm-sources { padding: 20px; background: var(--bm-ground); border-radius: var(--bm-radius); font-size: 0.875rem; }
.bm-sources h2 { font-size: 1.25rem; }
.bm-sources ol { padding-left: 20px; display: flex; flex-direction: column; gap: 4px; }
.bm-reviewer { display: flex; gap: 16px; align-items: center; padding: 20px; border: 1px solid var(--bm-line); border-radius: var(--bm-radius); }
.bm-reviewer__photo { border-radius: 50%; width: 64px; height: 64px; object-fit: cover; }
.bm-reviewer__name { margin: 0 0 4px; font-weight: 600; }
.bm-box { padding: 20px; border: 1px solid var(--bm-line); border-radius: var(--bm-radius); }
.bm-box__title { margin: 0 0 10px; font: 600 1.0625rem var(--bm-font-head); }
.bm-toc ol, .bm-linklist { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; font-size: 0.9375rem; }
.bm-linklist { list-style: none; padding-left: 0; }
.bm-card--link a { font: 600 1.125rem var(--bm-font-head); }
.bm-card__text { margin: 8px 0 0; font: 400 0.9375rem/1.5 var(--bm-font-body); color: var(--bm-muted); }
.bm-person { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; }
.bm-person__photo { border-radius: 50%; width: 120px; height: 120px; object-fit: cover; }
.bm-prose h2 { margin-top: 1.6em; }
.bm-prose h2[id], .bm-prose h3[id], .bm-section-block h2 { scroll-margin-top: 16px; }

/* ---------- Calculators (R1) ---------- */
.bm-lead { margin: 0; font-size: 1.0625rem; color: var(--bm-muted-strong); max-width: 780px; }
.bm-tool__head { margin: 16px 0 24px; }
.bm-calc { display: flex; flex-wrap: wrap; gap: 24px; align-items: stretch; }
.bm-calc__form { flex: 1 1 360px; display: flex; flex-direction: column; gap: 14px; padding: 24px; border: 1px solid var(--bm-line); border-radius: 14px; }
.bm-field { display: flex; flex-direction: column; gap: 6px; }
.bm-field[hidden] { display: none; }
.bm-field label { font-weight: 600; font-size: 0.9375rem; }
.bm-field input, .bm-field select { min-height: 44px; padding: 0 12px; border: 1px solid var(--bm-field); border-radius: var(--bm-radius-sm); font: 1rem var(--bm-font-body); background: #fff; }
.bm-field__help { margin: 0; font-size: 0.8125rem; color: var(--bm-muted); }
.bm-calc__result { flex: 1 1 360px; padding: 24px; background: var(--bm-ink); color: #fff; border-radius: 14px; }
.bm-calc__label { margin: 0 0 12px; font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.06em; color: #9fb7c7; text-transform: uppercase; }
.bm-calc__list { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.bm-calc__list div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding-bottom: 10px; border-bottom: 1px solid #2a2e36; }
.bm-calc__list dt { color: #c9ced6; }
.bm-calc__list dd { margin: 0; font-size: 1.125rem; }
.bm-calc__list dd strong { font: 700 1.5rem var(--bm-font-head); }
.bm-calc__note, .bm-calc__empty { color: #c9ced6; font-size: 0.875rem; margin: 12px 0 0; }
.bm-calc__errors { margin: 0; padding-left: 18px; color: #ffd7a8; }
.bm-calc__method { margin-top: 28px; max-width: 820px; }
.bm-tool__body { margin-top: 28px; }

/* Cookie choice banner (equal-weight Accept and Reject) */
.bm-consent { position: fixed; inset: auto 16px 16px 16px; z-index: 1000; max-width: 560px; background: var(--bm-surface); color: var(--bm-ink); border: 1px solid var(--bm-line); border-radius: var(--bm-radius); box-shadow: 0 8px 32px rgba(22, 24, 29, 0.18); }
.bm-consent[hidden] { display: none; }
.bm-consent__inner { padding: 20px; }
.bm-consent__title { font-size: 1.125rem; margin: 0 0 8px; }
.bm-consent__text { margin: 0 0 16px; font-size: 0.9375rem; line-height: 1.55; color: var(--bm-muted-strong); }
.bm-consent__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.bm-consent__actions .bm-btn { flex: 1 1 160px; }
.bm-footer__link { background: none; border: 0; padding: 0; margin-left: 8px; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; }
@media (max-width: 600px) { .bm-consent { inset: auto 8px 8px 8px; } }

/* ---------- Theme 0.3.0: navigation, home page, search ---------- */
:root {
	--bm-accent: #e8792b;
	--bm-accent-dark: #b85a17;
	--bm-shadow: 0 1px 2px rgba(22, 24, 29, 0.06), 0 8px 24px rgba(22, 24, 29, 0.06);
}
.bm-icon { width: 24px; height: 24px; flex: none; }

/* Header */
.bm-header { position: sticky; top: 0; z-index: 50; }
.admin-bar .bm-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .bm-header { top: 0; position: relative; } }
.bm-header__nav { flex: 1 1 auto; }
.bm-nav a { padding: 6px 2px; border-bottom: 2px solid transparent; }
.bm-nav a:hover, .bm-nav .current-menu-item a { border-bottom-color: var(--bm-accent); color: var(--bm-ink); }
.bm-search { position: relative; flex: 0 1 320px; }
.bm-search input { padding-right: 44px; background: var(--bm-ground); border-color: var(--bm-line); }
.bm-search__btn { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; display: grid; place-items: center; border: 0; background: none; color: var(--bm-muted-strong); cursor: pointer; border-radius: 6px; }
.bm-search__btn:hover { color: var(--bm-steel); }
.bm-search--page { max-width: 640px; flex: none; }
.bm-search--page input { background: var(--bm-surface); padding-right: 14px; }
@media (max-width: 900px) {
	.bm-header__nav { order: 3; flex-basis: 100%; overflow-x: auto; scrollbar-width: none; }
	.bm-nav { flex-wrap: nowrap; white-space: nowrap; }
	.bm-search { flex: 1 1 200px; }
}

/* Buttons */
.bm-btn--accent { background: var(--bm-accent); color: #16181d; font-weight: 700; }
.bm-btn--accent:hover { background: #f08c45; color: #16181d; }

/* Home hero */
.bm-hero--home { position: relative; overflow: hidden; padding-block: 56px 64px; background: radial-gradient(1200px 500px at 85% -10%, #1f3a4d 0%, rgba(31, 58, 77, 0) 60%), var(--bm-ink); }
.bm-hero__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 40px; align-items: center; }
.bm-hero__kicker { margin: 0; display: inline-flex; align-self: flex-start; padding: 6px 12px; border: 1px solid #3a4250; border-radius: 999px; font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.04em; color: #c9ced6; }
.bm-hero--home h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); line-height: 1.05; letter-spacing: -0.01em; margin: 0; }
.bm-hero__accent { color: var(--bm-accent); }
.bm-hero__search input { background: #fff; }
.bm-chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.bm-chips a { display: inline-block; padding: 6px 12px; border-radius: 999px; background: #232831; color: #e3e6ea; font-size: 0.875rem; text-decoration: none; border: 1px solid #343b46; }
.bm-chips a:hover { border-color: var(--bm-accent); color: #fff; }
.bm-chips--light a { background: var(--bm-steel-tint); color: var(--bm-steel-dark); border-color: transparent; }
.bm-chips--light a:hover { color: var(--bm-steel-dark); }
.bm-hero__art { position: relative; }
.bm-hero__svg { width: 100%; height: auto; display: block; }
.bm-hero__result { position: absolute; right: 0; top: 6%; display: flex; flex-direction: column; gap: 2px; padding: 14px 18px; background: #fff; color: var(--bm-ink); border-radius: 12px; box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35); text-decoration: none; border-left: 4px solid var(--bm-accent); transition: transform .15s; }
.bm-hero__result:hover { color: var(--bm-ink); transform: translateY(-2px); }
.bm-hero__result-label { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--bm-steel); }
.bm-hero__result-q { font-size: 0.875rem; color: var(--bm-muted-strong); }
.bm-hero__result-a { font: 700 1.625rem var(--bm-font-head); }
.bm-hero__result-a small { font: 500 0.875rem var(--bm-font-body); color: var(--bm-muted); }
@media (max-width: 860px) {
	.bm-hero__grid { grid-template-columns: 1fr; }
	.bm-hero__art { max-width: 440px; }
}

/* Stats strip */
.bm-stats { background: var(--bm-steel-dark); color: #dbe7ee; }
.bm-stats__row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 28px; padding-block: 18px; }
.bm-stats p { margin: 0; font-size: 0.9375rem; }
.bm-stats strong { color: #fff; font: 700 1.25rem var(--bm-font-head); margin-right: 4px; }

/* Section heads */
.bm-section__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; margin-bottom: 24px; }
.bm-section__head h2 { margin: 4px 0 0; }
.bm-more { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; }
.bm-more .bm-icon { width: 18px; height: 18px; transition: transform .15s; }
.bm-more:hover .bm-icon { transform: translateX(3px); }
.bm-kicker--light { color: #9fc4da; }

/* Calculator tiles */
.bm-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; list-style: none; margin: 0; padding: 0; }
.bm-tile a { height: 100%; display: flex; flex-direction: column; gap: 8px; padding: 22px; border: 1px solid var(--bm-line); border-radius: 14px; background: var(--bm-surface); color: var(--bm-ink); text-decoration: none; transition: border-color .15s, box-shadow .15s, transform .15s; }
.bm-tile a:hover { border-color: var(--bm-steel-light); box-shadow: var(--bm-shadow); transform: translateY(-2px); color: var(--bm-ink); }
.bm-tile__icon, .bm-mat__icon, .bm-card__icon { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 10px; background: var(--bm-steel-tint); color: var(--bm-steel); }
.bm-tile__icon { background: #fdeee2; color: var(--bm-accent-dark); }
.bm-tile__title { font: 600 1.1875rem var(--bm-font-head); }
.bm-tile__text { color: var(--bm-muted); font-size: 0.9375rem; line-height: 1.5; flex: 1; }
.bm-tile__go { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 0.9375rem; color: var(--bm-steel); }
.bm-tile__go .bm-icon { width: 18px; height: 18px; }

/* Material band */
.bm-band { background: var(--bm-ground); border-block: 1px solid var(--bm-line); }
.bm-mats { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; list-style: none; margin: 0; padding: 0; }
.bm-mat a { height: 100%; display: flex; gap: 14px; align-items: flex-start; padding: 18px; border-radius: 12px; background: var(--bm-surface); border: 1px solid var(--bm-line); color: var(--bm-ink); text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.bm-mat a:hover { border-color: var(--bm-steel-light); box-shadow: var(--bm-shadow); color: var(--bm-ink); }
.bm-mat__body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.bm-mat__title { font: 600 1.0625rem var(--bm-font-head); }
.bm-mat__text { font-size: 0.875rem; line-height: 1.45; color: var(--bm-muted); }
.bm-mat__meta { font-size: 0.8125rem; font-weight: 600; color: var(--bm-steel); }

/* Comparisons */
.bm-vs { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; list-style: none; margin: 0; padding: 0; }
@media (max-width: 400px) { .bm-vs { grid-template-columns: 1fr; } }
.bm-vs__item a { height: 100%; display: flex; flex-direction: column; gap: 10px; padding: 20px; border: 1px solid var(--bm-line); border-radius: 14px; color: var(--bm-ink); text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.bm-vs__item a:hover { border-color: var(--bm-steel-light); box-shadow: var(--bm-shadow); color: var(--bm-ink); }
.bm-vs__names { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font: 600 1.0625rem var(--bm-font-head); }
.bm-vs__badge { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--bm-ink); color: #fff; font: 700 0.75rem var(--bm-font-body); text-transform: uppercase; }
.bm-vs__text { font-size: 0.9375rem; line-height: 1.5; color: var(--bm-muted); }

/* Trust band */
.bm-trust { background: var(--bm-ink); color: #dfe3e8; margin-top: 16px; }
.bm-trust h2 { color: #fff; margin-top: 4px; }
.bm-trust__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 28px; list-style: none; margin: 24px 0 0; padding: 0; }
.bm-trust__grid h3 { color: #fff; font-size: 1.125rem; margin: 12px 0 6px; }
.bm-trust__grid p { margin: 0; font-size: 0.9375rem; color: #b8bfc9; }
.bm-trust__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; background: #232831; color: var(--bm-accent); }

/* Guides and standards */
.bm-refs { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 32px 48px; }
.bm-reflist { list-style: none; margin: 12px 0 0; padding: 0; border-top: 1px solid var(--bm-line); }
.bm-reflist a { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 4px; border-bottom: 1px solid var(--bm-line); color: var(--bm-ink); text-decoration: none; font-weight: 600; }
.bm-reflist a:hover { color: var(--bm-steel); }
.bm-reflist .bm-icon { width: 18px; height: 18px; color: var(--bm-steel); }

/* Closing call to action */
.bm-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding: 32px; border-radius: 18px; background: linear-gradient(120deg, var(--bm-steel-dark), var(--bm-steel)); color: #fff; }
.bm-cta h2 { color: #fff; margin: 0 0 6px; }
.bm-cta p { margin: 0; color: #d6e4ec; max-width: 620px; }

/* Cards in archives and search */
.bm-card { transition: border-color .15s, box-shadow .15s; display: flex; flex-direction: column; gap: 6px; }
.bm-card:hover { border-color: var(--bm-steel-light); box-shadow: var(--bm-shadow); }
.bm-card__icon { margin-bottom: 6px; }
.bm-card__type { margin: 0; font: 700 0.75rem var(--bm-font-body); letter-spacing: 0.06em; text-transform: uppercase; color: var(--bm-steel); }

/* Footer */
.bm-footer__brand { flex: 1 1 280px; max-width: 360px; }
.bm-footer__brand p { margin: 10px 0 0; }
.bm-logo--footer { color: #fff; }
.bm-logo--footer span { color: var(--bm-accent); }
