/* BmoreNews Maryland Election Hub — scoped front-end design. */
.bmeh {
    --bmeh-navy: #003264;
    --bmeh-navy-2: #062444;
    --bmeh-red: #ff1008;
    --bmeh-red-dark: #d4100b;
    --bmeh-black: #0b0f13;
    --bmeh-text: #111820;
    --bmeh-muted: #697585;
    --bmeh-line: #dde2e8;
    --bmeh-bg: #f1f3f6;
    --bmeh-white: #fff;
    --bmeh-font-body: 'Inter', Arial, sans-serif;
    --bmeh-font-display: 'Montserrat', Arial, sans-serif;
    position: relative;
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    background: var(--bmeh-bg);
    color: var(--bmeh-text);
    font-family: var(--bmeh-font-body);
    -webkit-font-smoothing: antialiased;
    overflow: hidden;
}
.bmeh *, .bmeh *::before, .bmeh *::after { box-sizing: border-box; }
.bmeh a { color: inherit; text-decoration: none; }
.bmeh-shell { width: min(1240px, calc(100% - 48px)); margin: 0 auto; }
.bmeh-hero {
    position: relative;
    background: var(--bmeh-navy);
    color: #fff;
    padding: 68px 0 72px;
    overflow: hidden;
}
.bmeh-hero::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: var(--bmeh-red);
}
.bmeh-hero__bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 79% 32%, rgba(255,16,8,.17), transparent 29%),
        linear-gradient(122deg, transparent 0 60%, rgba(255,255,255,.055) 60% 60.15%, transparent 60.15% 63%, rgba(255,255,255,.04) 63% 63.15%, transparent 63.15%),
        linear-gradient(90deg, transparent 0 64%, rgba(255,255,255,.025) 64% 100%);
}
.bmeh-hero__bg::after {
    content: "MD";
    position: absolute;
    right: max(calc((100% - 1240px) / 2), 28px);
    bottom: -44px;
    color: rgba(255,255,255,.045);
    font-size: clamp(180px, 25vw, 350px);
    font-weight: 900;
    letter-spacing: -.1em;
    line-height: 1;
}
.bmeh-hero__grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(480px, 1fr) 420px;
    gap: 64px;
    align-items: center;
}
.bmeh-kicker {
    display: flex;
    gap: 14px;
    align-items: center;
    color: rgba(255,255,255,.78);
    font-size: 12px;
    line-height: 1;
    letter-spacing: .13em;
    font-weight: 800;
    margin-bottom: 25px;
}
.bmeh-live-dot {
    position: relative;
    width: 9px; height: 9px;
    border-radius: 50%;
    background: var(--bmeh-red);
}
.bmeh-live-dot::after {
    content: "";
    position: absolute; inset: -4px;
    border-radius: inherit;
    border: 1px solid rgba(255,16,8,.55);
    animation: bmeh-pulse 1.8s infinite;
}
@keyframes bmeh-pulse { 0% { transform: scale(.8); opacity: 1; } 100% { transform: scale(2.2); opacity: 0; } }
.bmeh-kicker__divide { width: 24px; height: 1px; background: rgba(255,255,255,.35); }
.bmeh h1 {
    color: #fff;
    margin: 0 0 21px;
    font-size: clamp(62px, 7.4vw, 98px);
    font-weight: 900;
    letter-spacing: -.075em;
    line-height: .87;
}
.bmeh h1 span { color: var(--bmeh-red); }
.bmeh-deck {
    max-width: 620px;
    margin: 0 0 34px;
    color: rgba(255,255,255,.82);
    font-size: clamp(17px, 1.55vw, 20px);
    line-height: 1.5;
    font-weight: 500;
}
.bmeh-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.bmeh-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    min-height: 50px;
    padding: 0 20px;
    border-radius: 2px;
    font-size: 12px;
    letter-spacing: .075em;
    font-weight: 850;
    transition: transform .18s ease, background-color .18s ease, border-color .18s ease;
}
.bmeh-button:hover { transform: translateY(-1px); }
.bmeh-button span { font-size: 18px; line-height: 1; }
.bmeh-button--red { color: #fff; background: var(--bmeh-red); }
.bmeh-button--red:hover { background: var(--bmeh-red-dark); }
.bmeh-button--outline { border: 1px solid rgba(255,255,255,.48); color: #fff; }
.bmeh-button--outline:hover { border-color: #fff; background: rgba(255,255,255,.06); }
.bmeh-button--dark { background: var(--bmeh-navy); color: #fff; margin-top: 20px; }
.bmeh-countdown {
    position: relative;
    background: #fff;
    color: var(--bmeh-text);
    padding: 28px 28px 26px;
    box-shadow: 0 24px 70px rgba(0,0,0,.25);
}
.bmeh-countdown::after {
    content: "";
    position: absolute;
    right: 0; top: 0;
    width: 6px; height: 100%;
    background: var(--bmeh-red);
}
.bmeh-countdown__status { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 30px; }
.bmeh-status-pill {
    background: var(--bmeh-red);
    color: #fff;
    font-size: 10px;
    letter-spacing: .08em;
    font-weight: 850;
    padding: 9px 11px;
}
.bmeh-status-date { color: var(--bmeh-muted); font-size: 12px; letter-spacing: .08em; font-weight: 800; }
.bmeh-countdown__label { margin: 0 0 14px; color: var(--bmeh-navy); font-size: 12px; letter-spacing: .15em; font-weight: 900; }
.bmeh-clock { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.bmeh-clock div {
    border: 1px solid var(--bmeh-line);
    background: #f7f8fa;
    text-align: center;
    padding: 15px 4px 12px;
}
.bmeh-clock strong { display: block; color: var(--bmeh-black); font-size: clamp(28px, 2.5vw, 35px); line-height: 1; font-weight: 900; letter-spacing: -.06em; }
.bmeh-clock small { display: block; margin-top: 9px; font-size: 9px; font-weight: 800; letter-spacing: .16em; color: var(--bmeh-muted); }
.bmeh-countdown__foot { color: var(--bmeh-muted); font-size: 12px; font-weight: 600; line-height: 1.45; margin: 19px 0 0; }
.bmeh-alert { background: var(--bmeh-black); color: #fff; }
.bmeh-alert__inner {
    min-height: 64px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 20px;
    align-items: center;
    padding-top: 12px;
    padding-bottom: 12px;
}
.bmeh-alert__tag {
    background: var(--bmeh-red);
    padding: 9px 12px;
    color: #fff;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .09em;
    white-space: nowrap;
}
.bmeh-alert p { margin: 0; font-size: 13px; line-height: 1.45; font-weight: 550; color: rgba(255,255,255,.85); }
.bmeh-alert a { color: #fff; font-size: 11px; font-weight: 850; letter-spacing: .08em; white-space: nowrap; }
.bmeh-main { padding: 42px 0 70px; }
.bmeh-tabs {
    display: flex;
    align-items: stretch;
    background: #fff;
    border-bottom: 1px solid var(--bmeh-line);
    padding: 0 22px;
    margin-bottom: 44px;
}
.bmeh-tabs button {
    appearance: none;
    border: 0;
    background: transparent;
    cursor: pointer;
    height: 63px;
    padding: 0 28px;
    font-family: inherit;
    font-size: 12px;
    font-weight: 850;
    letter-spacing: .085em;
    color: var(--bmeh-muted);
    border-bottom: 4px solid transparent;
}
.bmeh-tabs button.is-active { color: var(--bmeh-navy); border-color: var(--bmeh-red); }
.bmeh-panel { display: none; }
.bmeh-panel.is-active { display: block; animation: bmeh-enter .28s ease; }
@keyframes bmeh-enter { from { opacity: .15; transform: translateY(7px); } to { opacity: 1; transform: none; } }
.bmeh-section-head {
    display: flex;
    justify-content: space-between;
    gap: 28px;
    align-items: end;
    margin-bottom: 24px;
}
.bmeh-overline {
    display: block;
    color: var(--bmeh-red);
    letter-spacing: .14em;
    font-size: 11px;
    font-weight: 900;
    margin-bottom: 8px;
}
.bmeh-overline--red { color: var(--bmeh-red); }
.bmeh-section-head h2, .bmeh-news__head h2 {
    margin: 0;
    font-size: clamp(33px, 4vw, 51px);
    letter-spacing: -.065em;
    line-height: .94;
    font-weight: 900;
    color: var(--bmeh-black);
}
.bmeh-source {
    display: grid;
    gap: 5px;
    text-align: right;
    font-size: 10px;
    letter-spacing: .1em;
    font-weight: 800;
    color: var(--bmeh-muted);
}
.bmeh-source strong { color: var(--bmeh-text); font-size: 11px; }
.bmeh-source a { color: var(--bmeh-red); }
.bmeh-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 22px;
}
.bmeh-stat {
    min-height: 130px;
    background: #fff;
    border: 1px solid var(--bmeh-line);
    padding: 22px 21px 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.bmeh-stat span { color: var(--bmeh-muted); letter-spacing: .105em; font-size: 10px; line-height: 1.3; font-weight: 900; }
.bmeh-stat strong { color: var(--bmeh-navy); font-size: clamp(32px, 3.4vw, 44px); letter-spacing: -.065em; line-height: 1; font-weight: 900; }
.bmeh-stat small { color: var(--bmeh-muted); font-weight: 600; font-size: 11px; margin-top: 8px; }
.bmeh-stat--highlight { background: var(--bmeh-navy); border-color: var(--bmeh-navy); }
.bmeh-stat--highlight span { color: rgba(255,255,255,.65); }
.bmeh-stat--highlight strong { color: #fff; }
.bmeh-grid { display: grid; gap: 18px; }
.bmeh-grid--feature { grid-template-columns: 1.07fr .93fr; margin-bottom: 46px; }
.bmeh-card { background: #fff; border: 1px solid var(--bmeh-line); padding: 28px; }
.bmeh-card--dark { background: var(--bmeh-navy); border-color: var(--bmeh-navy); color: #fff; }
.bmeh-card__head { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; margin-bottom: 27px; }
.bmeh-card h3 {
    margin: 0;
    font-size: clamp(22px, 2.1vw, 28px);
    line-height: 1.02;
    letter-spacing: -.045em;
    font-weight: 900;
}
.bmeh-card--dark h3 { color: #fff; }
.bmeh-mini-live {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 10px;
    letter-spacing: .1em;
    font-weight: 900;
    color: rgba(255,255,255,.7);
}
.bmeh-mini-live i { width: 7px; height: 7px; border-radius: 50%; background: var(--bmeh-red); }
.bmeh-location + .bmeh-location { margin-top: 25px; }
.bmeh-location__title { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; font-weight: 850; letter-spacing: .075em; margin-bottom: 9px; }
.bmeh-location__title span { color: rgba(255,255,255,.68); font-size: 11px; }
.bmeh-location__stats { display: flex; justify-content: space-between; font-size: 12px; color: rgba(255,255,255,.67); margin-bottom: 10px; }
.bmeh-location__stats b { color: #fff; font-weight: 750; }
.bmeh-meter { width: 100%; height: 8px; overflow: hidden; background: #e5e9ee; }
.bmeh-meter span { display: block; height: 100%; min-width: 2px; max-width: 100%; background: var(--bmeh-red); transition: width .3s ease; }
.bmeh-meter--light { background: rgba(255,255,255,.17); }
.bmeh-card--dates { padding: 30px 30px 25px; }
.bmeh-card--dates h3 { margin-bottom: 27px; }
.bmeh-timeline div {
    position: relative;
    display: grid;
    grid-template-columns: 82px 1fr;
    gap: 15px;
    padding: 15px 0 15px 18px;
    border-bottom: 1px solid var(--bmeh-line);
}
.bmeh-timeline div:last-child { border-bottom: 0; }
.bmeh-timeline div::before { content: ""; position: absolute; left: 0; top: 22px; width: 7px; height: 7px; border-radius: 50%; background: var(--bmeh-navy); }
.bmeh-timeline div.is-next::before { background: var(--bmeh-red); }
.bmeh-timeline time { color: var(--bmeh-navy); font-size: 12px; font-weight: 900; letter-spacing: .08em; }
.bmeh-timeline p { margin: 0; font-size: 14px; line-height: 1.36; font-weight: 650; }
.bmeh-news { padding-top: 3px; }
.bmeh-news__head { display: flex; justify-content: space-between; gap: 20px; align-items: end; margin-bottom: 22px; }
.bmeh-news__head a { color: var(--bmeh-navy); font-size: 11px; letter-spacing: .1em; font-weight: 900; padding-bottom: 9px; }
.bmeh-news__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; }
.bmeh-news-card { background: #fff; border: 1px solid var(--bmeh-line); min-height: 340px; }
.bmeh-news-card__image { display: block; aspect-ratio: 1.55/1; background: var(--bmeh-navy); overflow: hidden; }
.bmeh-news-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform .32s ease; }
.bmeh-news-card:hover img { transform: scale(1.035); }
.bmeh-news-card__image span { display: block; height: 100%; background: linear-gradient(135deg, var(--bmeh-navy), #10151b); }
.bmeh-news-card__body { padding: 17px 17px 16px; }
.bmeh-news-card__body small { color: var(--bmeh-red); font-size: 9px; letter-spacing: .12em; font-weight: 900; }
.bmeh-news-card__body h3 { margin: 9px 0 18px; font-size: 19px; line-height: 1.1; letter-spacing: -.035em; font-weight: 900; }
.bmeh-read { border: 1px solid #b7bec7; display: inline-flex; padding: 8px 11px; font-size: 10px; letter-spacing: .08em; font-weight: 900; }
.bmeh-mail-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 18px; }
.bmeh-county-explorer label {
    color: var(--bmeh-red);
    display: block;
    font-size: 10px;
    letter-spacing: .13em;
    font-weight: 900;
    margin-bottom: 12px;
}
.bmeh-county-explorer select {
    display: block;
    width: 100%;
    min-height: 51px;
    border: 1px solid var(--bmeh-line);
    border-radius: 0;
    background: #f7f8fa;
    padding: 0 15px;
    color: var(--bmeh-text);
    font-family: inherit;
    font-size: 13px;
    letter-spacing: .06em;
    font-weight: 750;
    margin-bottom: 26px;
}
.bmeh-county-name { font-size: clamp(27px, 3vw, 36px); line-height: 1; letter-spacing: -.055em; font-weight: 900; margin-bottom: 19px; }
.bmeh-county-kpis { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--bmeh-line); margin-bottom: 25px; }
.bmeh-county-kpis div { padding: 17px 12px 15px; border-right: 1px solid var(--bmeh-line); }
.bmeh-county-kpis div:last-child { border-right: 0; }
.bmeh-county-kpis strong { display: block; font-size: clamp(25px, 2.5vw, 33px); letter-spacing: -.06em; line-height: 1; font-weight: 900; color: var(--bmeh-navy); }
.bmeh-county-kpis span { display: block; color: var(--bmeh-muted); font-size: 9px; font-weight: 900; letter-spacing: .12em; margin-top: 9px; }
.bmeh-return-meter__line { display: flex; justify-content: space-between; gap: 14px; font-size: 12px; font-weight: 700; margin-bottom: 10px; color: var(--bmeh-muted); }
.bmeh-return-meter__line strong { color: var(--bmeh-navy); }
.bmeh-methodology h3 { margin: 0 0 21px; font-size: 29px; }
.bmeh-methodology p { font-size: 15px; line-height: 1.55; color: #46515d; margin: 0 0 18px; }
.bmeh-text-link { display: inline-flex; margin-top: 9px; color: var(--bmeh-red); letter-spacing: .09em; font-size: 11px; font-weight: 900; }
.bmeh-tools { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 28px; }
.bmeh-tool {
    min-height: 290px;
    padding: 27px 25px 25px;
    background: #fff;
    border: 1px solid var(--bmeh-line);
    display: flex;
    flex-direction: column;
    transition: border-color .2s ease, transform .2s ease;
}
.bmeh-tool:hover { border-color: var(--bmeh-navy); transform: translateY(-2px); }
.bmeh-tool > span { color: var(--bmeh-red); font-size: 11px; letter-spacing: .15em; font-weight: 900; margin-bottom: 42px; }
.bmeh-tool h3 { margin: 0 0 15px; font-size: clamp(22px, 2vw, 27px); line-height: .99; letter-spacing: -.05em; font-weight: 900; }
.bmeh-tool p { margin: 0 0 25px; color: var(--bmeh-muted); font-size: 14px; line-height: 1.52; font-weight: 500; }
.bmeh-tool b { margin-top: auto; color: var(--bmeh-navy); letter-spacing: .09em; font-size: 11px; }
.bmeh-races { background: var(--bmeh-navy); color: #fff; display: grid; grid-template-columns: 290px 1fr; gap: 38px; padding: 30px; align-items: center; }
.bmeh-races__intro h3 { color: #fff; margin: 0; font-size: 35px; line-height: .93; letter-spacing: -.055em; font-weight: 900; }
.bmeh-race-list { display: flex; flex-wrap: wrap; gap: 10px; }
.bmeh-race-list span { border: 1px solid rgba(255,255,255,.2); padding: 12px 13px; color: rgba(255,255,255,.86); font-size: 11px; line-height: 1; font-weight: 800; letter-spacing: .075em; }
.bmeh-results-live { background: #fff; border: 1px solid var(--bmeh-line); padding: 12px 14px; color: var(--bmeh-muted); font-size: 10px; font-weight: 900; letter-spacing: .12em; }
.bmeh-results-live.is-live { background: var(--bmeh-red); color: #fff; border-color: var(--bmeh-red); }
.bmeh-results-wait {
    padding: clamp(32px, 6vw, 64px);
    background: #fff;
    border: 1px solid var(--bmeh-line);
    display: grid;
    grid-template-columns: 148px 1fr;
    gap: 40px;
    align-items: center;
}
.bmeh-results-wait__icon {
    height: 148px;
    display: grid;
    place-items: center;
    background: var(--bmeh-navy);
    color: #fff;
    font-size: 52px;
    letter-spacing: -.08em;
    font-weight: 900;
    border-bottom: 8px solid var(--bmeh-red);
}
.bmeh-results-wait h3 { margin: 0 0 13px; color: var(--bmeh-black); font-size: clamp(28px, 3vw, 37px); line-height: .95; letter-spacing: -.06em; font-weight: 900; }
.bmeh-results-wait p { margin: 0; max-width: 680px; color: #4c5663; font-size: 16px; line-height: 1.55; }
.bmeh-result-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; }
.bmeh-result-card { background: #fff; border: 1px solid var(--bmeh-line); padding: 24px; }
.bmeh-result-card h3 { color: var(--bmeh-navy); font-size: 22px; letter-spacing: -.04em; line-height: 1.1; font-weight: 900; margin: 0 0 18px; }
.bmeh-result-row { display: grid; grid-template-columns: 1fr auto auto; gap: 13px; border-top: 1px solid var(--bmeh-line); padding: 12px 0; font-size: 13px; font-weight: 650; }
.bmeh-result-row strong { color: var(--bmeh-navy); }
.bmeh-result-row b { color: var(--bmeh-red); min-width: 50px; text-align: right; }
.bmeh-result-card > a { display: inline-flex; margin-top: 14px; color: var(--bmeh-red); font-size: 10px; letter-spacing: .1em; font-weight: 900; }
.bmeh-disclaimer { margin: 19px 0 0; color: var(--bmeh-muted); font-size: 12px; font-weight: 550; }
@media (max-width: 1060px) {
    .bmeh-hero__grid { grid-template-columns: 1fr; gap: 40px; }
    .bmeh-countdown { max-width: 490px; }
    .bmeh-news__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 840px) {
    .bmeh-shell { width: min(100% - 32px, 1240px); }
    .bmeh-hero { padding: 50px 0 48px; }
    .bmeh-hero__grid { display: block; }
    .bmeh-countdown { margin-top: 34px; padding: 22px 20px 21px; }
    .bmeh-alert__inner { display: flex; flex-wrap: wrap; gap: 11px 16px; padding: 15px 0; }
    .bmeh-alert p { order: 3; width: 100%; }
    .bmeh-main { padding: 25px 0 50px; }
    .bmeh-tabs { padding: 0; overflow-x: auto; margin-bottom: 32px; -webkit-overflow-scrolling: touch; }
    .bmeh-tabs button { flex: 0 0 auto; padding: 0 19px; height: 56px; }
    .bmeh-section-head { flex-direction: column; align-items: flex-start; margin-bottom: 20px; }
    .bmeh-source { text-align: left; }
    .bmeh-stats { grid-template-columns: repeat(2, 1fr); }
    .bmeh-grid--feature, .bmeh-mail-grid, .bmeh-tools { grid-template-columns: 1fr; }
    .bmeh-grid--feature { margin-bottom: 35px; }
    .bmeh-races { display: block; }
    .bmeh-races__intro { margin-bottom: 22px; }
    .bmeh-results-wait { grid-template-columns: 1fr; gap: 24px; padding: 24px; }
    .bmeh-results-wait__icon { height: 92px; width: 92px; font-size: 34px; }
    .bmeh-result-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
    .bmeh-shell { width: min(100% - 26px, 1240px); }
    .bmeh-hero { padding: 43px 0 41px; }
    .bmeh-kicker { flex-wrap: wrap; gap: 10px; font-size: 10px; margin-bottom: 19px; }
    .bmeh h1 { font-size: clamp(52px, 17vw, 67px); }
    .bmeh-deck { font-size: 16px; margin-bottom: 26px; }
    .bmeh-actions { display: grid; }
    .bmeh-button { width: 100%; }
    .bmeh-countdown__status { margin-bottom: 23px; }
    .bmeh-clock strong { font-size: 28px; }
    .bmeh-tabs button { padding: 0 14px; font-size: 10.5px; }
    .bmeh-section-head h2, .bmeh-news__head h2 { font-size: 36px; }
    .bmeh-stats { gap: 9px; }
    .bmeh-stat { min-height: 108px; padding: 16px 14px; }
    .bmeh-stat strong { font-size: 30px; }
    .bmeh-card { padding: 21px 17px; }
    .bmeh-card__head { margin-bottom: 22px; }
    .bmeh-card h3 { font-size: 23px; }
    .bmeh-timeline div { grid-template-columns: 72px 1fr; padding-left: 15px; }
    .bmeh-news__head { align-items: flex-start; flex-direction: column; }
    .bmeh-news__grid { grid-template-columns: 1fr; }
    .bmeh-news-card { min-height: 0; }
    .bmeh-county-kpis { grid-template-columns: 1fr; }
    .bmeh-county-kpis div { border-right: 0; border-bottom: 1px solid var(--bmeh-line); }
    .bmeh-county-kpis div:last-child { border-bottom: 0; }
    .bmeh-races { padding: 22px 17px; }
}


/* Typography refresh: modern, clean and independent of the theme's serif headings. */
.bmeh h1,
.bmeh h2,
.bmeh h3,
.bmeh h4,
.bmeh strong,
.bmeh .bmeh-button,
.bmeh .bmeh-tabs button,
.bmeh .bmeh-overline,
.bmeh .bmeh-status-pill,
.bmeh .bmeh-alert__tag,
.bmeh .bmeh-race-list span,
.bmeh .bmeh-party,
.bmeh .bmeh-candidate-more {
    font-family: var(--bmeh-font-display);
}
.bmeh h1 { letter-spacing: -.065em; line-height: .91; }
.bmeh-section-head h2, .bmeh-news__head h2 { letter-spacing: -.055em; line-height: .98; }
.bmeh-deck, .bmeh-alert p, .bmeh-timeline p, .bmeh-tool p, .bmeh-results-wait p { font-family: var(--bmeh-font-body); }

/* Candidate center */
.bmeh-candidate-center {
    margin: 50px 0 54px;
    padding-top: 45px;
    border-top: 1px solid var(--bmeh-line);
}
.bmeh-section-head--candidate { margin-bottom: 27px; }
.bmeh-section-copy {
    max-width: 720px;
    margin: 15px 0 0;
    color: var(--bmeh-muted);
    font-size: 16px;
    line-height: 1.55;
    font-weight: 500;
}
.bmeh-race-presets {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    margin-bottom: 18px;
}
.bmeh-race-presets button {
    appearance: none;
    min-height: 105px;
    padding: 18px 17px 16px;
    border: 1px solid var(--bmeh-line);
    background: #fff;
    color: var(--bmeh-text);
    text-align: left;
    cursor: pointer;
    transition: transform .18s ease, border-color .18s ease, background-color .18s ease;
}
.bmeh-race-presets button:hover,
.bmeh-race-presets button.is-active { border-color: var(--bmeh-navy); transform: translateY(-1px); }
.bmeh-race-presets button.is-active { background: var(--bmeh-navy); color: #fff; }
.bmeh-race-presets small {
    display: block;
    margin-bottom: 10px;
    color: var(--bmeh-red);
    font: 800 9px/1 var(--bmeh-font-display);
    letter-spacing: .13em;
}
.bmeh-race-presets button.is-active small { color: #ff4039; }
.bmeh-race-presets strong {
    display: block;
    font-size: 16px;
    line-height: 1.05;
    letter-spacing: -.03em;
    margin-bottom: 9px;
}
.bmeh-race-presets span {
    display: block;
    color: var(--bmeh-muted);
    font-size: 11px;
    line-height: 1;
    font-weight: 600;
}
.bmeh-race-presets button.is-active span { color: rgba(255,255,255,.68); }
.bmeh-candidate-explorer {
    background: #fff;
    border: 1px solid var(--bmeh-line);
    padding: 24px;
}
.bmeh-filter-bar {
    display: grid;
    grid-template-columns: 1.3fr repeat(4, minmax(135px, .8fr));
    gap: 12px;
    align-items: end;
    padding: 0 0 24px;
    border-bottom: 1px solid var(--bmeh-line);
}
.bmeh-filter-bar label {
    display: block;
    margin-bottom: 9px;
    color: var(--bmeh-muted);
    font: 800 10px/1 var(--bmeh-font-display);
    letter-spacing: .11em;
}
.bmeh-filter-bar input,
.bmeh-filter-bar select {
    appearance: none;
    display: block;
    width: 100%;
    min-height: 49px;
    padding: 0 13px;
    border: 1px solid var(--bmeh-line);
    border-radius: 0;
    background: #f7f8fa;
    color: var(--bmeh-text);
    font: 600 12px/1 var(--bmeh-font-body);
}
.bmeh-filter-bar input:focus,
.bmeh-filter-bar select:focus { outline: 2px solid var(--bmeh-navy); outline-offset: -1px; }
.bmeh-candidate-results-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
    margin: 26px 0 18px;
}
.bmeh-candidate-results-head h3 {
    margin: 0;
    font-size: clamp(24px, 2.7vw, 32px);
    line-height: 1;
    letter-spacing: -.045em;
}
.bmeh-candidate-results-head span {
    color: var(--bmeh-muted);
    font: 800 10px/1 var(--bmeh-font-display);
    letter-spacing: .12em;
    white-space: nowrap;
}
.bmeh-candidate-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}
.bmeh-candidate-card {
    min-height: 267px;
    border: 1px solid var(--bmeh-line);
    padding: 18px 18px 16px;
    display: flex;
    flex-direction: column;
    background: #fff;
    transition: border-color .18s ease, transform .18s ease;
}
.bmeh-candidate-card:hover { border-color: #bac2cc; transform: translateY(-1px); }
.bmeh-candidate-card__meta {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
    margin-bottom: 19px;
}
.bmeh-party {
    display: inline-flex;
    min-height: 27px;
    align-items: center;
    padding: 0 9px;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .09em;
    color: #fff;
}
.bmeh-party--dem { background: var(--bmeh-navy); }
.bmeh-party--gop { background: var(--bmeh-red); }
.bmeh-party--other { background: var(--bmeh-black); }
.bmeh-candidate-card__meta small {
    color: #778290;
    font: 750 9px/1 var(--bmeh-font-display);
    letter-spacing: .12em;
}
.bmeh-candidate-card h3 {
    margin: 0 0 7px;
    color: var(--bmeh-black);
    font-size: 22px;
    letter-spacing: -.04em;
    line-height: 1.05;
}
.bmeh-running-mate {
    margin: 0 0 18px;
    color: var(--bmeh-muted);
    font-size: 13px;
    line-height: 1.35;
}
.bmeh-running-mate strong { color: var(--bmeh-text); font-size: 13px; letter-spacing: -.01em; }
.bmeh-candidate-office {
    margin: auto 0 5px;
    color: var(--bmeh-navy);
    font: 700 12px/1.3 var(--bmeh-font-display);
    letter-spacing: .015em;
}
.bmeh-candidate-district {
    margin: 0 0 16px;
    color: var(--bmeh-muted);
    font-size: 11px;
    font-weight: 600;
}
.bmeh-candidate-links {
    display: flex;
    flex-wrap: wrap;
    gap: 13px;
    border-top: 1px solid var(--bmeh-line);
    padding-top: 12px;
}
.bmeh-candidate-links a {
    color: var(--bmeh-red);
    font: 800 9px/1 var(--bmeh-font-display);
    letter-spacing: .1em;
}
.bmeh-candidate-more-wrap { text-align: center; margin-top: 18px; }
.bmeh-candidate-more {
    appearance: none;
    background: var(--bmeh-navy);
    border: 0;
    color: #fff;
    cursor: pointer;
    min-height: 45px;
    padding: 0 22px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .1em;
}
.bmeh-candidate-note {
    color: var(--bmeh-muted);
    font-size: 12px;
    line-height: 1.5;
    border-top: 1px solid var(--bmeh-line);
    margin: 25px 0 0;
    padding: 18px 0 0;
}
.bmeh-candidate-empty {
    grid-column: 1 / -1;
    padding: 32px 20px;
    border: 1px dashed var(--bmeh-line);
    color: var(--bmeh-muted);
    text-align: center;
    font-size: 14px;
}
@media (max-width: 1060px) {
    .bmeh-race-presets { grid-template-columns: repeat(3, 1fr); }
    .bmeh-filter-bar { grid-template-columns: repeat(2, 1fr); }
    .bmeh-filter-search { grid-column: 1 / -1; }
    .bmeh-candidate-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 840px) {
    .bmeh-candidate-center { margin: 38px 0 42px; padding-top: 34px; }
    .bmeh-race-presets { display: flex; overflow-x: auto; padding-bottom: 4px; -webkit-overflow-scrolling: touch; }
    .bmeh-race-presets button { flex: 0 0 190px; }
    .bmeh-candidate-explorer { padding: 18px; }
}
@media (max-width: 560px) {
    .bmeh-race-presets button { min-height: 94px; padding: 15px 14px; flex-basis: 172px; }
    .bmeh-filter-bar { display: block; }
    .bmeh-filter-bar > div + div { margin-top: 14px; }
    .bmeh-candidate-results-head { display: block; }
    .bmeh-candidate-results-head span { display: block; margin-top: 11px; }
    .bmeh-candidate-grid { grid-template-columns: 1fr; }
    .bmeh-candidate-card, .bmeh-candidate-card__body { min-height: 206px; }
}


/* Compact editorial candidate cards — intentionally image-free for complete, consistent coverage. */
.bmeh-candidate-card {
    position: relative;
    min-height: 222px;
    padding: 0;
    overflow: hidden;
}
.bmeh-candidate-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 4px;
    background: var(--bmeh-black);
}
.bmeh-candidate-card[data-party="dem"]::before { background: var(--bmeh-navy); }
.bmeh-candidate-card[data-party="gop"]::before { background: var(--bmeh-red); }
.bmeh-candidate-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-height: 222px;
    padding: 22px 20px 16px;
}
.bmeh-candidate-card__meta { margin-bottom: 18px; }
.bmeh-candidate-card h3 { font-size: 23px; }

/* Fully automatic fixed-content office explainer. */
.bmeh-office-guide {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 32px;
    margin-top: 28px;
    padding: 29px 27px;
    border: 1px solid var(--bmeh-line);
    background: var(--bmeh-white);
}
.bmeh-office-guide__head h3 {
    margin: 12px 0 12px;
    font-size: 27px;
    line-height: 1.02;
    letter-spacing: -.055em;
}
.bmeh-office-guide__head p {
    margin: 0;
    color: var(--bmeh-muted);
    font-size: 13px;
    line-height: 1.55;
}
.bmeh-office-guide__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    border-left: 1px solid var(--bmeh-line);
}
.bmeh-office-guide__grid article {
    min-height: 115px;
    padding: 5px 19px 20px;
    border-bottom: 1px solid var(--bmeh-line);
}
.bmeh-office-guide__grid article:nth-last-child(-n+3) { border-bottom: 0; padding-top: 20px; padding-bottom: 5px; }
.bmeh-office-guide__grid strong {
    display: block;
    margin-bottom: 8px;
    color: var(--bmeh-navy);
    font-size: 11px;
    line-height: 1.3;
    letter-spacing: .07em;
}
.bmeh-office-guide__grid p {
    margin: 0;
    color: var(--bmeh-muted);
    font-size: 12.5px;
    line-height: 1.5;
}
@media (max-width: 1060px) {
    .bmeh-office-guide { grid-template-columns: 1fr; gap: 26px; }
    .bmeh-office-guide__grid { border-left: 0; border-top: 1px solid var(--bmeh-line); padding-top: 22px; }
}
@media (max-width: 720px) {
    .bmeh-office-guide { padding: 23px 18px; }
    .bmeh-office-guide__grid { grid-template-columns: 1fr; }
    .bmeh-office-guide__grid article,
    .bmeh-office-guide__grid article:nth-last-child(-n+3) {
        min-height: 0;
        padding: 15px 0;
        border-bottom: 1px solid var(--bmeh-line);
    }
    .bmeh-office-guide__grid article:last-child { border-bottom: 0; padding-bottom: 0; }
    .bmeh-candidate-card__body { min-height: 206px; }
}

/* Election desk: balanced newest-first coverage grid — v1.7.0. */
.bmeh-news {
    margin-top: 64px;
    padding: 46px 0 2px;
    border-top: 1px solid var(--bmeh-line);
}
.bmeh-news__head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 26px;
    margin-bottom: 30px;
}
.bmeh-news__head h2 { margin: 7px 0 9px; }
.bmeh-news__head p {
    margin: 0;
    max-width: 700px;
    color: #596675;
    font-size: 15px;
    line-height: 1.5;
    font-weight: 500;
}
.bmeh-news__head > a {
    flex-shrink: 0;
    align-self: end;
    margin-bottom: 10px;
    color: var(--bmeh-navy);
    font-family: var(--bmeh-font-display);
    font-size: 11px;
    letter-spacing: .075em;
    font-weight: 800;
}
.bmeh-news__head > a:hover { color: var(--bmeh-red); }
.bmeh-news__top {
    display: grid;
    grid-template-columns: minmax(0, 1.68fr) minmax(330px, .92fr);
    gap: 18px;
    margin-bottom: 18px;
}
.bmeh-news__highlights {
    display: grid;
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: 18px;
}
.bmeh-news__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}
.bmeh-news-card {
    min-height: 0;
    background: #fff;
    border: 1px solid var(--bmeh-line);
    overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.bmeh-news-card:hover {
    transform: translateY(-2px);
    border-color: #cfd7e0;
    box-shadow: 0 12px 27px rgba(8, 22, 39, .07);
}
/* Smart media frames preserve portrait/poster creatives instead of cutting off faces or text. */
.bmeh-news-card__image {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    isolation: isolate;
    overflow: hidden;
    width: 100%;
    min-width: 0;
    aspect-ratio: auto; /* Reset the older tile ratio on horizontal lead/side cards. */
    background: var(--bmeh-navy-2);
}
.bmeh-news-card > *,
.bmeh-news__top > *,
.bmeh-news__highlights > * {
    min-width: 0;
}
.bmeh-news-card__body {
    min-width: 0;
    overflow: hidden;
}
.bmeh-news-card__body h3 a {
    overflow-wrap: anywhere;
}
.bmeh-news-card__image.has-image::before {
    content: "";
    position: absolute;
    inset: -22px;
    z-index: -1;
    background-image: var(--bmeh-news-image);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    filter: blur(16px) brightness(.7);
    transform: scale(1.10);
}
.bmeh-news-card__image.has-image::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: rgba(5, 18, 35, .12);
}
.bmeh-news-card__image .bmeh-news-card__photo {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: transform .28s ease;
}
.bmeh-news-card:hover .bmeh-news-card__photo { transform: scale(1.018); }
.bmeh-news-card__fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    width: 100%;
    height: 100%;
    color: #fff;
    font-family: var(--bmeh-font-display);
    font-size: 23px;
    font-weight: 800;
    letter-spacing: -.055em;
}
.bmeh-news-card__fallback b {
    padding: 2px 4px 2px 0;
    color: #fff;
}
.bmeh-news-card__body { padding: 18px 19px 19px; }
.bmeh-news-card__meta {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}
.bmeh-news-card__meta small {
    color: var(--bmeh-red);
    font-family: var(--bmeh-font-display);
    font-size: 9px;
    letter-spacing: .105em;
    font-weight: 800;
}
.bmeh-news-card__meta time {
    flex-shrink: 0;
    color: #687687;
    font-size: 10px;
    letter-spacing: .08em;
    font-weight: 700;
}
.bmeh-news-card__body h3 {
    margin: 10px 0 18px;
    color: var(--bmeh-black);
    font-family: var(--bmeh-font-display);
    font-weight: 800;
    letter-spacing: -.045em;
}
.bmeh-news-card__body h3 a:hover { color: var(--bmeh-navy); }
.bmeh-news-card .bmeh-read {
    display: inline-flex;
    border: 1px solid #bdc8d5;
    padding: 9px 12px 8px;
    color: var(--bmeh-navy);
    font-family: var(--bmeh-font-display);
    font-size: 10px;
    letter-spacing: .06em;
    font-weight: 800;
}
.bmeh-news-card .bmeh-read:hover {
    background: var(--bmeh-navy);
    border-color: var(--bmeh-navy);
    color: #fff;
}
.bmeh-news-card--lead {
    display: grid;
    grid-template-columns: minmax(300px, 1.08fr) minmax(255px, .92fr);
    min-height: 408px;
}
.bmeh-news-card--lead .bmeh-news-card__image { height: 100%; min-height: 408px; }
.bmeh-news-card--lead .bmeh-news-card__body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 29px 27px;
}
.bmeh-news-card--lead .bmeh-news-card__body h3 {
    margin: 16px 0 26px;
    font-size: clamp(24px, 2vw, 30px);
    line-height: 1.08;
}
.bmeh-news-card--side {
    display: grid;
    grid-template-columns: 138px minmax(0, 1fr);
    height: 195px;
}
.bmeh-news-card--side .bmeh-news-card__image { height: 100%; min-height: 195px; }
.bmeh-news-card--side .bmeh-news-card__body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 16px 15px;
}
.bmeh-news-card--side .bmeh-news-card__body h3 {
    margin: 9px 0 13px;
    font-size: 15.5px;
    line-height: 1.14;
}
.bmeh-news-card--side .bmeh-read { padding: 8px 10px 7px; }
.bmeh-news-card--tile {
    display: flex;
    flex-direction: column;
}
.bmeh-news-card--tile .bmeh-news-card__image { aspect-ratio: 16 / 9; }
.bmeh-news-card--tile .bmeh-news-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 17px 18px 18px;
}
.bmeh-news-card--tile .bmeh-news-card__body h3 {
    margin: 10px 0 18px;
    font-size: 17px;
    line-height: 1.15;
}
.bmeh-news-card--tile .bmeh-read { margin-top: auto; align-self: flex-start; }
.bmeh-news__note {
    margin: 19px 0 0;
    color: #697585;
    font-size: 11px;
    letter-spacing: .025em;
    line-height: 1.5;
}
@media (max-width: 1180px) {
    .bmeh-news-card--lead { grid-template-columns: 1fr; min-height: 0; }
    .bmeh-news-card--lead .bmeh-news-card__image { aspect-ratio: 16 / 9; height: auto; min-height: 0; }
    .bmeh-news-card--lead .bmeh-news-card__body { padding: 22px 23px 23px; }
}
@media (max-width: 1000px) {
    .bmeh-news__top { grid-template-columns: 1fr; }
    .bmeh-news__highlights { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: none; }
    .bmeh-news-card--side { display: block; height: auto; }
    .bmeh-news-card--side .bmeh-news-card__image { aspect-ratio: 16 / 9; height: auto; min-height: 0; }
    .bmeh-news__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
    .bmeh-news { margin-top: 44px; padding-top: 33px; }
    .bmeh-news__head { display: block; margin-bottom: 22px; }
    .bmeh-news__head h2 { font-size: clamp(29px, 9vw, 38px); }
    .bmeh-news__head > a { display: inline-block; margin: 18px 0 0; }
    .bmeh-news__highlights, .bmeh-news__grid { grid-template-columns: 1fr; gap: 12px; }
    .bmeh-news__top { gap: 12px; margin-bottom: 12px; }
    .bmeh-news-card--lead .bmeh-news-card__body { padding: 18px 17px 19px; }
    .bmeh-news-card--lead .bmeh-news-card__body h3 { font-size: 23px; margin: 12px 0 18px; }
    .bmeh-news-card--side,
    .bmeh-news-card--tile {
        display: grid;
        grid-template-columns: 124px minmax(0, 1fr);
    }
    .bmeh-news-card--side .bmeh-news-card__image,
    .bmeh-news-card--tile .bmeh-news-card__image {
        aspect-ratio: auto;
        height: 100%;
        min-height: 128px;
    }
    .bmeh-news-card--side .bmeh-news-card__body,
    .bmeh-news-card--tile .bmeh-news-card__body { padding: 13px 13px 13px; }
    .bmeh-news-card--side .bmeh-news-card__body h3,
    .bmeh-news-card--tile .bmeh-news-card__body h3 { font-size: 15px; margin: 8px 0 13px; }
}
@media (max-width: 460px) {
    .bmeh-news-card--side,
    .bmeh-news-card--tile { grid-template-columns: 1fr; }
    .bmeh-news-card--side .bmeh-news-card__image,
    .bmeh-news-card--tile .bmeh-news-card__image { aspect-ratio: 16 / 9; height: auto; min-height: 0; }
}
