/* Ship the exact serif used by the approved preview, including genuine emphasis faces. */
@font-face {
 font-family: "BM Quote Serif";
 src: url("fonts/liberation-serif/LiberationSerif-Regular.woff2") format("woff2");
 font-weight: 400;
 font-style: normal;
 font-display: swap;
}
@font-face {
 font-family: "BM Quote Serif";
 src: url("fonts/liberation-serif/LiberationSerif-Italic.woff2") format("woff2");
 font-weight: 400;
 font-style: italic;
 font-display: swap;
}
@font-face {
 font-family: "BM Quote Serif";
 src: url("fonts/liberation-serif/LiberationSerif-Bold.woff2") format("woff2");
 font-weight: 700;
 font-style: normal;
 font-display: swap;
}
@font-face {
 font-family: "BM Quote Serif";
 src: url("fonts/liberation-serif/LiberationSerif-BoldItalic.woff2") format("woff2");
 font-weight: 700;
 font-style: italic;
 font-display: swap;
}

/* Fit the complete card below the header, scaling every dimension together. */
.bm-home-grid {
 --bm-home-text-size: 1.125rem;
 --bm-portrait-text-gap: clamp(1.5rem, 3vw, 2rem);
 --bm-intro-section-gap: max(1.5rem, calc(clamp(3rem, 5vw, 5rem) - 1.75rem));
 --bm-quote-fit-height: min(920px, calc(100svh - var(--bm-header-height) - var(--bm-admin-offset) - 16px));
 --bm-quote-grid-gap: 2.5%;
}
.bm-home-grid .bm-portrait-row .bm-content--image { margin-bottom: 0; }
.bm-home-grid .bm-portrait-caption-row .bm-content--richtext { margin-block: var(--bm-portrait-text-gap) var(--bm-intro-section-gap); text-align: center; }
.bm-home-grid .bm-portrait-caption-row .bm-content__text { font-size: 1rem; line-height: 1.65; }
/* Restore the original centered introduction above the separately editable portrait. */
.bm-home-grid .bm-intro-row .bm-content__text { font-size: 1rem; line-height: 1.75; }
.bm-home-grid .bm-intro-row .bm-content--richtext { max-width: 1100px; margin-top: var(--bm-intro-section-gap); margin-bottom: var(--bm-portrait-text-gap); text-align: center; }
.bm-home-grid .bm-quote-row {
 /* Reference grid: 624 + 32 + 624px wide, each card 920px tall. */
 max-width: min(var(--bm-width), calc(var(--bm-quote-fit-height) * 1.391304348));
}
.bm-home-grid .panel-grid > .bm-quote-row.panel-row-style {
 display: grid !important;
 grid-template-columns: repeat(2, minmax(0, 1fr));
 align-items: stretch;
 gap: var(--bm-quote-grid-gap);
}
.bm-home-grid .bm-quote-row > .panel-grid-cell { width: 100% !important; margin: 0 !important; }
.bm-home-grid .bm-content--quote { max-width: none; }
.bm-home-grid .bm-content--quote .bm-content__surface {
 /* Original approved proportions: 624px wide by 920px tall. */
 --bm-quote-card-height: 147.435897cqw;
 min-height: var(--bm-quote-card-height);
 aspect-ratio: 78 / 115;
}
.bm-home-grid .bm-content--quote .bm-content__image { transform: none; }
.bm-home-grid .bm-content--quote .bm-content__overlay { position: relative; gap: 5.128205cqw; padding: 5.5cqw; }
.bm-home-grid .bm-content--quote .bm-content__top,
.bm-home-grid .bm-content--quote .bm-content__bottom { max-width: 42rem; }
.bm-home-grid .bm-content--quote .bm-content__text {
 font-family: "BM Quote Serif", "Times New Roman", serif;
 /* Exactly 18px at the approved 624px card width; no fixed-size floor. */
 font-size: 2.884615cqw;
 line-height: 1.55;
}
.bm-home-grid .bm-content--quote .bm-content__text p { margin-bottom: .7em; }
.bm-home-grid .bm-content--quote .bm-content__text p:last-child { margin-bottom: 0; }
/* Tighten only the three marked opening quotation glyphs, preserving the text. */
.bm-home-grid .bm-content--quote .bm-quote-opening-tight {
 display: inline-block;
 margin-inline-end: -.08em;
}
.bm-home-grid .bm-content--quote .bm-content__attribution { margin-top: 3.589744cqw; text-align: left; }
.bm-home-grid .bm-content--quote .bm-content__author { font-size: 2.410256cqw; }
.bm-home-grid .bm-content--quote .bm-content__author-role { font-size: 2.076923cqw; margin-top: .512821cqw; }
.bm-home-grid .bm-lauterwasser-spacing .bm-content__surface { overflow: hidden; }
.bm-home-grid .bm-lauterwasser-spacing .bm-content__image { transform: none; object-position: center; }
/* All three quotations fit above the face with the proportional card typography. */
@media (min-width: 701px) {
 /* Leave only 8px above and below a height-fitted card at its anchor. */
 .bm-home-grid .bm-quote-row,
 .bm-home-grid .bm-quote-row [id] { scroll-margin-top: -16px; }
 /* Keep the top edge covered while the slight zoom lowers the head. */
 .bm-home-grid .bm-lauterwasser-original .bm-content__surface { overflow: hidden; }
 .bm-home-grid .bm-lauterwasser-original .bm-content__image {
  transform: scale(1.08);
  transform-origin: center top;
 }
}

/* The supplied hero quotations stay at the image bottom, independent of title parallax. */
.bm-home-grid .bm-content--banner .bm-content__overlay:has(> .bm-content__text) {
 padding-bottom: clamp(1.25rem, 2.5vw, 2.5rem);
 background: linear-gradient(180deg, #17241da1 0, #17241d29 43%, #17241d00 60%, #17241d80 100%);
}
.bm-home-grid .bm-content--banner .bm-content__overlay > .bm-content__text {
 margin-top: auto;
 margin-inline: 0;
 align-self: flex-start;
 text-align: left;
 padding-top: 1.5rem;
 max-width: min(100%, 1100px);
 font-family: var(--bm-heading-font);
 font-size: .875rem;
 line-height: 1.45;
 text-shadow: 0 1px 4px #000a;
 transform: none;
}
.bm-home-grid .bm-content--banner .bm-content__text p { margin-bottom: .35em; }
.bm-home-grid .bm-content--banner .bm-content__text p:last-child { margin-bottom: 0; }

@media (max-width: 900px) {
 .bm-home-grid .panel-grid > .bm-quote-row.panel-row-style { grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
 .bm-home-grid .bm-quote-row { max-width: calc(var(--bm-quote-fit-height) * .67826087); }
}

@media (max-width: 700px) {
 .bm-home-grid { --bm-home-text-size: 1.2rem; }
 /* One extra text line before the first quote photo on phones. */
 .bm-home-grid .bm-portrait-caption-row .bm-content--richtext { margin-bottom: calc(var(--bm-intro-section-gap) + 1.65rem); }
 .bm-home-grid .bm-intro-row .bm-content--richtext,
 .bm-home-grid .bm-intro-row .bm-content__text > p { text-align: justify; text-align-last: left; hyphens: auto; }
 .bm-home-grid .bm-content--quote .bm-content__text p { text-align: center; text-align-last: auto; hyphens: none; overflow-wrap: normal; word-break: normal; }
 .bm-home-grid .bm-quote-row { width: 90%; max-width: none; margin-bottom: 0; }
 .bm-home-grid .bm-content--quote { margin-bottom: 3.5rem; }
 .bm-home-grid .bm-content--quote .bm-content__surface { display: block; min-height: 0; aspect-ratio: auto; }
 .bm-home-grid .bm-content--quote .bm-content__media { position: static; }
 .bm-home-grid .bm-content--quote .bm-content__image { min-height: 0; max-height: none; height: auto; }
 .bm-home-grid .bm-content--quote .bm-content__overlay { position: static; display: block; padding: 1.75rem 0 0; background: none; color: var(--bm-text); text-shadow: none; }
 .bm-home-grid .bm-content--quote .bm-content__bottom { margin-top: 1.75rem; }
 .bm-home-grid .bm-content--quote .bm-content__text { font-size: var(--bm-home-text-size); line-height: 1.65; }
 .bm-home-grid .bm-content--quote .bm-content__attribution { margin-top: 1.4rem; }
 .bm-home-grid .bm-content--quote .bm-content__author { font-size: .86rem; }
 .bm-home-grid .bm-content--quote .bm-content__author-role { font-size: .81rem; margin-top: .2rem; }
 .bm-home-grid .bm-content--banner .bm-content__surface:has(.bm-content__text) { min-height: 820px; height: max(820px, 100svh); }
 .bm-home-grid .bm-content--banner .bm-content__overlay > .bm-content__text { font-size: .85rem; line-height: 1.5; }
}

.bm-home-grid .bm-content--quote.bm-content--without-image .bm-content__surface { min-height: 0; aspect-ratio: auto; }
.bm-home-grid .bm-content--quote.bm-content--without-image .bm-content__overlay { color: var(--bm-text); background: none; text-shadow: none; }

/* November 2 document: selected second portrait, original width and top edge. */
.bm-home-grid .bm-home-portrait-nov02 .bm-content__media {
 position: relative;
 overflow: hidden;
 aspect-ratio: 4 / 5;
}
.bm-home-grid .bm-home-portrait-nov02 .bm-content__image {
 position: absolute;
 inset: 0;
 width: 100%;
 height: 100%;
 object-fit: cover;
 object-position: center top;
}

