/* Blauhaus design system.
   Brand tokens (--bh-primary, --bh-accent, --bh-surface, fonts, radius …) are injected per tenant in App.razor.
   Semantic status tokens below are fixed (not tenant-branded) so status colours stay accessible on every theme.
   Rule: no hard-coded colours outside this block; no static inline styles in markup (data-driven values may be
   passed inline only as CSS custom properties). */

:root {
    --bh-success: #2e7d4f;        /* white text on it: 5.0:1 */
    --bh-success-bg: #e7f6ec;
    --bh-success-ink: #17603a;    /* on success-bg: 7.0:1 */
    --bh-warning-bg: #fff4d6;
    --bh-warning-ink: #7a5300;    /* on warning-bg: 6.6:1 */
    --bh-attention: #c2410c;      /* "needs you"; white text on it: 5.2:1 */
    --bh-danger: #b42318;         /* white text on it: 6.0:1; on white: 6.0:1 */
    --bh-danger-bg: #fde8e4;
    --bh-danger-ink: #9a2a14;     /* on danger-bg: 6.9:1 */
    --bh-negative-accent: #ff7a59;
    --bh-on-status: #ffffff;
    --bh-qr-bg: #ffffff;          /* QR codes must stay dark-on-white to scan reliably */
    --bh-hairline: color-mix(in srgb, var(--bh-ink) 12%, transparent);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: var(--bh-surface);
    color: var(--bh-ink);
    font-family: var(--bh-font-body);
    font-size: 17px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: var(--bh-font-heading);
    line-height: 1.15;
    margin: 0 0 .5em;
    letter-spacing: -.01em;
}

h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.3rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
a { color: var(--bh-primary-bright); }
img { max-width: 100%; }

:focus-visible { outline: 3px solid var(--bh-accent); outline-offset: 2px; }

/* ---------- layout ---------- */
.bh-container { width: min(1160px, 100% - 32px); margin-inline: auto; }
.bh-section { padding-block: clamp(48px, 8vw, 96px); }
.bh-section--tight { padding-block: 32px; }
.bh-grid { display: grid; gap: 20px; }
.bh-grid--2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.bh-grid--3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.bh-grid--4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.bh-stack > * + * { margin-top: 12px; }
.bh-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.bh-spread { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.bh-muted { color: var(--bh-ink-muted); }
.bh-small { font-size: .875rem; }
.bh-eyebrow {
    font-family: var(--bh-font-heading);
    text-transform: uppercase;
    letter-spacing: .14em;
    font-size: .78rem;
    font-weight: 700;
    color: var(--bh-accent);
}
.bh-center { text-align: center; }

/* ---------- header / nav ---------- */
.bh-header {
    background: var(--bh-primary);
    color: var(--bh-on-primary);
    position: sticky;
    top: 0;
    z-index: 20;
}
.bh-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.bh-brand { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
.bh-brand img { height: 36px; width: auto; }
.bh-brand__name { font-family: var(--bh-font-heading); font-weight: 700; font-size: 1.15rem; letter-spacing: .02em; }
.bh-nav { display: flex; gap: 22px; align-items: center; margin-left: auto; }
.bh-nav a { text-decoration: none; font-weight: 600; font-size: .95rem; }
.bh-nav a:not(.bh-btn) { color: inherit; opacity: .92; }
.bh-nav a:not(.bh-btn):hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 760px) { .bh-nav .bh-nav__hide-sm { display: none; } }

/* ---------- hero ---------- */
.bh-hero {
    background:
        radial-gradient(1200px 500px at 85% -10%, color-mix(in srgb, var(--bh-accent) 22%, transparent), transparent 60%),
        linear-gradient(160deg, var(--bh-primary) 0%, var(--bh-primary-deep) 100%);
    color: var(--bh-on-primary);
}
.bh-hero h1 { color: var(--bh-on-primary); max-width: 16ch; }
.bh-hero p { font-size: 1.2rem; max-width: 52ch; opacity: .92; }
.bh-hero .bh-eyebrow { color: var(--bh-accent); }

.bh-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; margin-top: 40px; }
.bh-stat { border-top: 2px solid var(--bh-accent); padding-top: 12px; }
.bh-stat__value { font-family: var(--bh-font-heading); font-size: 2rem; font-weight: 700; }
.bh-stat__label { font-size: .9rem; opacity: .85; }

/* ---------- buttons ---------- */
.bh-btn {
    --_bg: var(--bh-accent);
    --_fg: var(--bh-primary-deep);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 10px 22px;
    border-radius: var(--bh-button-radius, var(--bh-radius));
    border: 2px solid var(--_bg);
    background: var(--_bg);
    color: var(--_fg);
    font-family: var(--bh-font-heading);
    font-weight: 700;
    font-size: .95rem;
    letter-spacing: .02em;
    text-decoration: none;
    cursor: pointer;
    transition: transform .12s ease, filter .12s ease;
}
.bh-btn:hover { filter: brightness(1.05); transform: translateY(-1px); }
.bh-btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.bh-btn--primary { --_bg: var(--bh-primary); --_fg: var(--bh-on-primary); }
.bh-btn--ghost { background: transparent; color: currentColor; border-color: currentColor; }
.bh-btn--quiet { background: transparent; border-color: transparent; color: var(--bh-primary-bright); padding-inline: 8px; }
.bh-btn--danger { --_bg: var(--bh-danger); --_fg: var(--bh-on-status); }
.bh-btn--sm { min-height: 36px; padding: 6px 14px; font-size: .85rem; }
.bh-btn--block { width: 100%; }

/* ---------- cards ---------- */
.bh-card {
    background: var(--bh-surface-raised);
    border: 1px solid color-mix(in srgb, var(--bh-ink) 10%, transparent);
    border-radius: calc(var(--bh-radius) * 1.6);
    padding: 22px;
    box-shadow: 0 1px 2px color-mix(in srgb, var(--bh-ink) 6%, transparent);
}
.bh-card--link { text-decoration: none; color: inherit; display: block; transition: transform .15s ease, box-shadow .15s ease; }
.bh-card--link:hover { transform: translateY(-2px); box-shadow: 0 10px 30px color-mix(in srgb, var(--bh-ink) 12%, transparent); }
.bh-card h3 { margin-bottom: .35em; }
.bh-card--accent { border-top: 4px solid var(--bh-accent); }
.bh-card--primary { background: var(--bh-primary); color: var(--bh-on-primary); border-color: transparent; }

.bh-pill {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 3px 10px; border-radius: 999px; font-size: .78rem; font-weight: 700;
    background: color-mix(in srgb, var(--bh-primary) 10%, transparent);
    color: var(--bh-primary);
    white-space: nowrap;
}
.bh-pill--accent { background: color-mix(in srgb, var(--bh-accent) 25%, transparent); color: var(--bh-ink); }
.bh-pill--ok { background: var(--bh-success-bg); color: var(--bh-success-ink); }
.bh-pill--warn { background: var(--bh-warning-bg); color: var(--bh-warning-ink); }
.bh-pill--action { background: var(--bh-danger-bg); color: var(--bh-danger-ink); }
.bh-pill--muted { background: color-mix(in srgb, var(--bh-ink) 8%, transparent); color: var(--bh-ink-muted); }

/* ---------- forms ---------- */
.bh-field { display: grid; gap: 6px; margin-bottom: 14px; }
.bh-field label, .bh-label { font-weight: 600; font-size: .92rem; }
.bh-input, .bh-field input:not([type=checkbox]):not([type=radio]), .bh-field select, .bh-field textarea {
    width: 100%;
    min-height: 46px;
    padding: 10px 12px;
    border-radius: var(--bh-radius);
    border: 1.5px solid color-mix(in srgb, var(--bh-ink) 22%, transparent);
    background: var(--bh-surface-raised);
    color: var(--bh-ink);
    font: inherit;
}
.bh-field textarea { min-height: 90px; resize: vertical; }
.bh-check { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; }
.bh-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.validation-message { color: var(--bh-danger); font-size: .85rem; }

/* ---------- footer ---------- */
.bh-footer { background: var(--bh-primary-deep); color: var(--bh-on-primary); padding-block: 48px 32px; font-size: .92rem; }
.bh-footer a { color: inherit; }
.bh-footer__legal { margin-top: 28px; padding-top: 18px; border-top: 1px solid color-mix(in srgb, var(--bh-on-primary) 18%, transparent); opacity: .8; font-size: .82rem; }

/* ---------- console ---------- */
.bh-console { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }
.bh-side { background: var(--bh-primary-deep); color: var(--bh-on-primary); padding: 20px 14px; position: sticky; top: 0; height: 100vh; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; gap: 4px; }
.bh-side__brand { padding: 4px 10px 18px; font-family: var(--bh-font-heading); font-weight: 700; font-size: 1.05rem; }
.bh-side__brand small { display: block; font-family: var(--bh-font-body); font-weight: 500; opacity: .65; font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; margin-top: 2px; }
.bh-side a { color: inherit; text-decoration: none; padding: 9px 12px; border-radius: 8px; font-weight: 600; font-size: .93rem; opacity: .85; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.bh-side a:hover { background: color-mix(in srgb, var(--bh-on-primary) 9%, transparent); opacity: 1; }
.bh-side a.active { background: color-mix(in srgb, var(--bh-accent) 26%, transparent); opacity: 1; }
.bh-side__spacer { flex: 1; }
.bh-side .bh-badge { background: var(--bh-accent); color: var(--bh-primary-deep); border-radius: 999px; font-size: .72rem; padding: 1px 8px; font-weight: 800; }
.bh-main { padding: 28px clamp(16px, 3vw, 40px) 60px; min-width: 0; }
.bh-pagehead { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.bh-pagehead h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0; }
@media (max-width: 900px) {
    .bh-console { grid-template-columns: 1fr; }
    .bh-side { position: static; height: auto; flex-direction: row; flex-wrap: wrap; }
    .bh-side__spacer { display: none; }
}

.bh-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.bh-table th { text-align: left; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--bh-ink-muted); padding: 8px 10px; border-bottom: 1px solid color-mix(in srgb, var(--bh-ink) 14%, transparent); }
.bh-table td { padding: 12px 10px; border-bottom: 1px solid color-mix(in srgb, var(--bh-ink) 8%, transparent); vertical-align: top; }
.bh-table tr:hover td { background: color-mix(in srgb, var(--bh-primary) 4%, transparent); }

.bh-progress { height: 10px; border-radius: 999px; background: color-mix(in srgb, var(--bh-ink) 10%, transparent); overflow: hidden; }
.bh-progress > span { display: block; height: 100%; background: linear-gradient(90deg, var(--bh-primary), var(--bh-accent)); border-radius: inherit; transition: width .6s ease; }

.bh-quote { border-left: 3px solid var(--bh-accent); padding: 6px 0 6px 14px; margin: 8px 0; font-family: var(--bh-font-quote); font-style: italic; font-size: 1.05rem; }

.bh-flash { animation: bh-flash 1.4s ease; }
@keyframes bh-flash { 0% { box-shadow: 0 0 0 0 var(--bh-accent); } 30% { box-shadow: 0 0 0 6px color-mix(in srgb, var(--bh-accent) 55%, transparent); } 100% { box-shadow: 0 0 0 0 transparent; } }

.bh-audit { font-size: .88rem; }
.bh-audit li { padding: 8px 0; border-bottom: 1px dashed color-mix(in srgb, var(--bh-ink) 12%, transparent); list-style: none; }
.bh-audit ul { padding: 0; margin: 0; }
.bh-audit time { color: var(--bh-ink-muted); font-variant-numeric: tabular-nums; margin-right: 8px; }

/* ---------- client pages ---------- */
.bh-client-head { background: var(--bh-primary); color: var(--bh-on-primary); padding: 18px 0; }
.bh-thumbs { display: flex; gap: 10px; }
.bh-thumbs label { flex: 1; }
.bh-thumbs input { position: absolute; opacity: 0; pointer-events: none; }
.bh-thumbs span {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 56px; border-radius: var(--bh-radius); border: 2px solid color-mix(in srgb, var(--bh-ink) 18%, transparent);
    font-weight: 700; font-size: 1.05rem; cursor: pointer; background: var(--bh-surface-raised);
}
.bh-thumbs input:checked + span { border-color: var(--bh-primary); background: color-mix(in srgb, var(--bh-primary) 10%, transparent); }
.bh-seg { display: flex; border: 2px solid color-mix(in srgb, var(--bh-ink) 18%, transparent); border-radius: var(--bh-radius); overflow: hidden; }
.bh-seg label { flex: 1; }
.bh-seg input { position: absolute; opacity: 0; pointer-events: none; }
.bh-seg span { display: block; text-align: center; padding: 10px 6px; font-weight: 600; cursor: pointer; }
.bh-seg input:checked + span { background: var(--bh-primary); color: var(--bh-on-primary); }

/* ---------- projector / live board ---------- */
.bh-live { min-height: 100vh; background: var(--bh-primary-deep); color: var(--bh-on-primary); padding: 32px clamp(16px, 4vw, 56px); }
.bh-live .bh-card { background: color-mix(in srgb, var(--bh-on-primary) 7%, transparent); border-color: color-mix(in srgb, var(--bh-on-primary) 14%, transparent); color: var(--bh-on-primary); box-shadow: none; }
.bh-live h1 { color: var(--bh-on-primary); }
.bh-live .bh-quote { border-color: var(--bh-accent); }
.bh-bignum { font-family: var(--bh-font-heading); font-size: clamp(2.6rem, 6vw, 4.6rem); font-weight: 800; line-height: 1; }
.bh-word { display: inline-block; margin: 4px 6px 4px 0; padding: 6px 14px; border-radius: 999px; background: color-mix(in srgb, var(--bh-accent) 26%, transparent); font-weight: 700; }
.bh-word--neg { background: color-mix(in srgb, var(--bh-negative-accent) 25%, transparent); }

/* ---------- chat (mobile back office) ---------- */
.bh-chat { display: flex; flex-direction: column; height: 100dvh; max-width: 560px; margin: 0 auto; background: var(--bh-surface); }
.bh-chat__head { background: var(--bh-primary); color: var(--bh-on-primary); padding: 14px 16px; display: flex; align-items: center; gap: 12px; }
.bh-chat__avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--bh-accent); color: var(--bh-primary-deep); display: grid; place-items: center; font-weight: 800; }
.bh-chat__log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.bh-msg { max-width: 86%; padding: 10px 14px; border-radius: 18px; line-height: 1.45; white-space: pre-wrap; }
.bh-msg--me { align-self: flex-end; background: var(--bh-primary); color: var(--bh-on-primary); border-bottom-right-radius: 6px; }
.bh-msg--md { white-space: normal; }
.bh-msg--md > :first-child { margin-top: 0; }
.bh-msg--md > :last-child { margin-bottom: 0; }
.bh-msg--md p, .bh-msg--md ul, .bh-msg--md ol { margin: 0 0 8px; }
.bh-msg--md ul, .bh-msg--md ol { padding-left: 20px; }
.bh-msg--bot { align-self: flex-start; background: var(--bh-surface-raised); border: 1px solid color-mix(in srgb, var(--bh-ink) 10%, transparent); border-bottom-left-radius: 6px; }
.bh-activity { align-self: flex-start; font-size: .8rem; color: var(--bh-ink-muted); display: flex; gap: 6px; align-items: center; }
.bh-activity::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--bh-accent); }
.bh-chat__compose { display: flex; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); border-top: 1px solid color-mix(in srgb, var(--bh-ink) 10%, transparent); background: var(--bh-surface-raised); }
.bh-chat__compose input { flex: 1; min-height: 46px; border-radius: 999px; border: 1.5px solid color-mix(in srgb, var(--bh-ink) 20%, transparent); padding: 0 16px; font: inherit; background: var(--bh-surface); color: var(--bh-ink); }
.bh-mic { width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--bh-accent); color: var(--bh-primary-deep); font-size: 1.2rem; cursor: pointer; }
.bh-mic.listening { animation: bh-pulse 1s infinite; }
@keyframes bh-pulse { 50% { box-shadow: 0 0 0 10px color-mix(in srgb, var(--bh-accent) 30%, transparent); } }
.bh-typing span { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--bh-ink-muted); margin-right: 3px; animation: bh-dot 1.2s infinite; }
.bh-typing span:nth-child(2) { animation-delay: .2s; }
.bh-typing span:nth-child(3) { animation-delay: .4s; }
@keyframes bh-dot { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }

/* action card (draft awaiting approval) */
.bh-action { align-self: stretch; border: 2px solid var(--bh-accent); border-radius: 16px; background: var(--bh-surface-raised); overflow: hidden; }
.bh-action__head { background: color-mix(in srgb, var(--bh-accent) 22%, transparent); padding: 8px 14px; font-size: .8rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; display: flex; justify-content: space-between; }
.bh-action__body { padding: 12px 14px; white-space: pre-wrap; font-size: .95rem; }
.bh-action__body textarea { width: 100%; min-height: 220px; font: inherit; border-radius: 8px; border: 1px solid color-mix(in srgb, var(--bh-ink) 20%, transparent); padding: 10px; background: var(--bh-surface); color: var(--bh-ink); }
.bh-action__cites { padding: 0 14px 10px; font-size: .82rem; color: var(--bh-ink-muted); }
.bh-action__cites summary { cursor: pointer; font-weight: 700; }
.bh-action__btns { display: flex; gap: 8px; padding: 10px 14px 14px; flex-wrap: wrap; }
.bh-action--done { border-color: var(--bh-success); }
.bh-action--rejected { border-color: color-mix(in srgb, var(--bh-ink) 25%, transparent); opacity: .7; }

/* ---------- launch board ---------- */
.bh-ms { display: grid; grid-template-columns: 40px 1fr auto; gap: 14px; align-items: start; padding: 16px 0; border-bottom: 1px solid color-mix(in srgb, var(--bh-ink) 9%, transparent); }
.bh-ms__num { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: .9rem; background: color-mix(in srgb, var(--bh-ink) 8%, transparent); }
.bh-ms--Done .bh-ms__num { background: var(--bh-success); color: var(--bh-on-status); }
.bh-ms--InProgress .bh-ms__num { background: var(--bh-accent); color: var(--bh-primary-deep); }
.bh-ms--NeedsYou .bh-ms__num { background: var(--bh-attention); color: var(--bh-on-status); }

/* ---------- brand kit ---------- */
.bh-swatches { display: flex; gap: 10px; flex-wrap: wrap; }
.bh-swatch { width: 92px; }
.bh-swatch i { display: block; height: 64px; background: var(--swatch); border-radius: 10px; border: 1px solid var(--bh-hairline); }
.bh-swatch b { display: block; font-size: .78rem; margin-top: 6px; }
.bh-swatch code { font-size: .74rem; color: var(--bh-ink-muted); }
.bh-preview { border-radius: 14px; overflow: hidden; border: 1px solid var(--bh-hairline); }

/* ---------- value page ---------- */
.bh-range { width: 100%; accent-color: var(--bh-primary); }

/* ---------- misc ---------- */
.bh-qr { background: var(--bh-qr-bg); padding: 12px; border-radius: 14px; display: inline-block; }
.bh-qr img { display: block; width: 240px; height: 240px; }
.bh-banner { padding: 12px 16px; border-radius: var(--bh-radius); background: color-mix(in srgb, var(--bh-accent) 18%, transparent); border: 1px solid color-mix(in srgb, var(--bh-accent) 45%, transparent); }
.bh-empty { padding: 28px; text-align: center; color: var(--bh-ink-muted); border: 2px dashed color-mix(in srgb, var(--bh-ink) 14%, transparent); border-radius: 14px; }

/* ---------- editable page content ---------- */
.bh-prose > :first-child { margin-top: 0; }
.bh-prose > :last-child { margin-bottom: 0; }
.bh-prose p, .bh-prose ul, .bh-prose ol { max-width: 68ch; }
.bh-prose li + li { margin-top: 4px; }
.bh-prose a { color: var(--bh-primary-bright); }
.bh-prose--hero p { font-size: 1.2rem; max-width: 52ch; opacity: .92; }
.bh-prose--hero a { color: inherit; }
.bh-prose table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: .95rem; display: block; overflow-x: auto; }
.bh-prose th, .bh-prose td { text-align: left; padding: 8px 12px; border-bottom: 1px solid var(--bh-hairline); vertical-align: top; }
.bh-prose th { font-family: var(--bh-font-heading); color: var(--bh-primary-deep); background: var(--bh-surface-raised); }
.bh-prose h4 { margin: 20px 0 6px; }
.bh-callout { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; }
.bh-callout h2 { color: var(--bh-on-primary); margin: 0 0 6px; }
.bh-callout .bh-row { margin-top: 0; }
.bh-faq { border-bottom: 1px solid var(--bh-hairline); padding: 14px 0; }
.bh-faq summary { cursor: pointer; font-weight: 700; font-size: 1.05rem; }
.bh-faq .bh-prose { margin-top: 10px; }
.bh-preview-bar { position: sticky; top: 0; z-index: 20; padding: 10px 16px; background: var(--bh-warning-bg); color: var(--bh-warning-ink); border-bottom: 1px solid color-mix(in srgb, var(--bh-warning-ink) 30%, transparent); font-size: .92rem; }
.bh-preview-bar a { color: inherit; font-weight: 700; margin-left: 8px; }

#blazor-error-ui { display: none; }

/* FocusOnNavigate moves focus to the page h1 for screen readers; don't draw a ring for that programmatic focus. */
h1:focus, h1:focus-visible { outline: none; }

@media (max-width: 520px) {
    .bh-client-head .bh-small { display: none; }
    .bh-header__inner { min-height: 60px; }
}

/* ---------- utilities (small, consistent set; prefer these over one-off styles) ---------- */
.bh-m-0 { margin: 0; }
.bh-mt-0 { margin-top: 0; }
.bh-mt-1 { margin-top: 6px; }
.bh-mt-2 { margin-top: 10px; }
.bh-mt-3 { margin-top: 16px; }
.bh-mt-4 { margin-top: 24px; }
.bh-mt-5 { margin-top: 32px; }
.bh-mb-2 { margin-bottom: 10px; }
.bh-mb-3 { margin-bottom: 16px; }
.bh-mb-4 { margin-bottom: 20px; }
.bh-mb-5 { margin-bottom: 40px; }
.bh-my-4 { margin-block: 20px; }
.bh-ml-2 { margin-left: 10px; }
.bh-subtitle { margin: 6px 0 0; }
.bh-gap-sm { gap: 8px; }
.bh-gap-lg { gap: 24px; }
.bh-items-start { align-items: start; }
.bh-items-center { align-items: center; }
.bh-items-end { align-items: end; }
.bh-p-0 { padding: 0; }
.bh-grow { flex: 1; min-width: min(100%, 240px); }
.bh-flex-1 { flex: 1; min-width: 0; }
.bh-list-tight { padding-left: 18px; margin: 0; }
.bh-label--spaced { display: block; margin: 12px 0 6px; }
.bh-maxw-xs { max-width: 460px; }
.bh-maxw-sm { max-width: 720px; }
.bh-maxw-md { max-width: 760px; }
.bh-maxw-lg { max-width: 900px; }
.bh-maxw-prose { max-width: 70ch; }
.bh-dim { opacity: .8; }
.bh-inherit { color: inherit; }
.bh-pre { white-space: pre-wrap; }
.bh-nowrap { white-space: nowrap; }
.bh-block { display: block; }
.bh-text-sm { font-size: .85rem; }
.bh-text-lg { font-size: 1.05rem; }
.bh-clickable { cursor: pointer; }
.bh-h1--page { font-size: clamp(1.7rem, 5vw, 2.5rem); }
.bh-h1--compact { font-size: 2rem; }
.bh-bignum--lg { font-size: 3rem; }
.bh-bignum--md { font-size: 2.3rem; }
.bh-bignum--sm { font-size: 1.7rem; }
.bh-quote--sm { font-size: .92rem; }
.bh-quote__who { font-style: normal; }
.bh-divided { padding: 10px 0; border-bottom: 1px solid var(--bh-hairline); }
.bh-grid--halves { grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); }
.bh-grid--main-side { grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr); }
@media (max-width: 900px) { .bh-grid--main-side { grid-template-columns: 1fr; } }
.bh-msg--error { border-color: var(--bh-danger); }
.bh-avatar--lg { width: 52px; height: 52px; font-size: 1.2rem; }

/* Colour chip: colour passed as data via --chip. */
.bh-chip { display: inline-block; width: 28px; height: 28px; border-radius: 6px; background: var(--chip); border: 1px solid var(--bh-hairline); }

/* Progress bar width passed as data via --pct. */
.bh-progress > span { width: var(--pct, 0%); }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
    .bh-btn:hover, .bh-card--link:hover { transform: none; }
}

/* ---------- page images (hero, text, image and card blocks) ---------- */
.bh-visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.bh-hero__split { display: grid; gap: 40px; align-items: center; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
.bh-hero__media { margin: 0; }
.bh-hero__media img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: calc(var(--bh-radius) * 1.6); box-shadow: 0 18px 50px color-mix(in srgb, var(--bh-ink) 30%, transparent); }
.bh-media-split { display: grid; gap: 32px; align-items: center; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.bh-figure { margin: 0; }
.bh-figure img { display: block; width: 100%; height: auto; border-radius: calc(var(--bh-radius) * 1.6); }
.bh-media-split .bh-figure img { aspect-ratio: 4 / 3; object-fit: cover; }
.bh-figure img { max-height: 80vh; object-fit: cover; }
.bh-figure figcaption { margin-top: 8px; font-size: .9rem; color: var(--bh-ink-muted); }
.bh-hero .bh-figure figcaption { color: var(--bh-on-primary); opacity: .8; }
.bh-ai-label { display: block; margin-top: 6px; font-size: .78rem; color: var(--bh-ink-muted); }
.bh-hero .bh-ai-label { color: var(--bh-on-primary); opacity: .75; }
.bh-card__img { display: block; width: calc(100% + 44px); max-width: none; margin: -22px -22px 16px; aspect-ratio: 16 / 10; object-fit: cover; border-radius: calc(var(--bh-radius) * 1.6) calc(var(--bh-radius) * 1.6) 0 0; }
@media (max-width: 760px) { .bh-hero__split, .bh-media-split { grid-template-columns: 1fr; } }

/* ---------- hero with a full-screen photo behind the text ---------- */
.bh-hero h1 strong, .bh-hero h2 strong { color: var(--bh-accent); font-weight: 800; }
.bh-hero--photo {
    --_shade: color-mix(in srgb, var(--bh-primary-deep) 55%, var(--bh-ink));
    position: relative; isolation: isolate; overflow: hidden;
    min-height: min(92svh, 920px); display: grid; align-items: end;
    background: var(--_shade);
}
.bh-hero--photo::after {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background:
        linear-gradient(90deg, color-mix(in srgb, var(--_shade) 88%, transparent) 0%, color-mix(in srgb, var(--_shade) 58%, transparent) 45%, color-mix(in srgb, var(--_shade) 15%, transparent) 78%),
        linear-gradient(0deg, color-mix(in srgb, var(--_shade) 75%, transparent), transparent 55%);
}
.bh-hero__bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: center 50%; }
.bh-hero__copy { max-width: 820px; padding-top: clamp(64px, 12vh, 140px); }
.bh-hero--photo h1 { font-size: clamp(2.8rem, 7.5vw, 6.2rem); line-height: .95; letter-spacing: -.04em; max-width: 14ch; text-wrap: balance; }
.bh-hero--photo .bh-prose--hero { max-width: 62ch; }
.bh-hero__chip { position: absolute; right: 16px; bottom: 12px; font-size: .75rem; padding: 4px 10px; border-radius: 999px; background: color-mix(in srgb, var(--_shade) 80%, transparent); color: var(--bh-on-primary); }
@media (max-width: 640px) {
    .bh-hero--photo { min-height: 86svh; }
    .bh-hero--photo::after { background: linear-gradient(0deg, color-mix(in srgb, var(--_shade) 92%, transparent) 10%, color-mix(in srgb, var(--_shade) 55%, transparent) 70%, color-mix(in srgb, var(--_shade) 35%, transparent)); }
}

/* ======================================================================
   Site designs (SiteTemplates). Same pages and blocks; each design changes layout and styling.
   Colours and fonts always come from the team's tokens. "classic" is the base styling above.
   ====================================================================== */

/* Preview bar for "?look=" (comparing designs) */
.bh-preview-bar { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; justify-content: center; padding: 8px 16px; font-size: .85rem; background: var(--bh-ink); color: var(--bh-surface); }
.bh-preview-bar a { color: inherit; opacity: .8; }
.bh-preview-bar a.bh-preview-bar__on { opacity: 1; font-weight: 700; text-decoration: none; border-bottom: 2px solid var(--bh-accent); }

/* ---------- reviews (Google) ---------- */
.bh-review { display: grid; gap: 8px; align-content: start; }
.bh-review__stars { color: var(--bh-accent); letter-spacing: 2px; }
.bh-review blockquote { font-family: var(--bh-font-quote); font-size: 1.05rem; }
.bh-reviews__score { font-size: .95rem; color: var(--bh-ink-muted); }
.bh-reviews__score strong { color: var(--bh-ink); font-size: 1.2rem; }
