/* ==========================================================================
   Bajo Marina — minimal luxury editorial theme
   Layout language follows labuanbajoluxury.com (framed hero, floating panel,
   two-tone Playfair headings, pill tabs, soft rounded cards, black footer),
   re-tuned as a harbour-master's ledger: warm sand, deep harbour ink, bronze.
   ========================================================================== */

/* -------------------------------------------------------------------------
   1. Tokens
   ------------------------------------------------------------------------- */
:root {
    --bm-canvas: #f3ede6;
    --bm-canvas-2: #ebe2d8;
    --bm-paper: #fbf9f6;
    --bm-white: #ffffff;

    --bm-ink: #0f181b;
    --bm-ink-2: #1b2a2e;
    --bm-text: #2b3437;
    --bm-soft: #5a6564;
    --bm-mute: #6f7a78;

    --bm-line: rgba(15, 24, 27, .10);
    --bm-line-2: rgba(15, 24, 27, .16);

    --bm-bronze: #94673a;
    --bm-bronze-h: #84592f;
    --bm-bronze-deep: #7a5230;
    --bm-bronze-soft: #c9a06f;
    --bm-bronze-tint: #efe2d2;

    --bm-deep: #0c1619;
    --bm-deep-2: #132327;
    --bm-sea: #2f6068;

    --font-display: 'Playfair Display', 'Iowan Old Style', Georgia, 'Times New Roman', serif;
    --font-text: 'Lato', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

    --r-sm: 12px;
    --r-md: 20px;
    --r-lg: 28px;
    --r-pill: 999px;

    --shadow-sm: 0 2px 12px rgba(15, 24, 27, .05);
    --shadow-md: 0 12px 32px rgba(15, 24, 27, .08);
    --shadow-lg: 0 28px 64px rgba(15, 24, 27, .16);

    --container: 1216px;
    --gutter: clamp(18px, 4vw, 32px);
    --header-h: 76px;

    --fs-hero: clamp(2.9rem, 1.1rem + 6.2vw, 5.6rem);
    --fs-h1: clamp(2.4rem, 1.3rem + 3.6vw, 4.4rem);
    --fs-h2: clamp(1.85rem, 1.15rem + 2.3vw, 3.05rem);
    --fs-h3: clamp(1.3rem, 1.1rem + .8vw, 1.65rem);

    --ease: cubic-bezier(.22, .7, .2, 1);
}

/* -------------------------------------------------------------------------
   2. Reset & base
   ------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
    -webkit-text-size-adjust: 100%;
    scroll-padding-top: calc(var(--header-h) + 24px);
    color-scheme: light;
    -webkit-tap-highlight-color: rgba(148, 103, 58, .14);
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
    margin: 0;
    background: var(--bm-canvas);
    color: var(--bm-text);
    font-family: var(--font-text);
    font-size: 1rem;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    overflow-x: clip;
}
body.bm-lock { overflow: hidden; }

img, svg, video { max-width: 100%; display: block; }
img { height: auto; }
a { color: inherit; text-decoration: none; touch-action: manipulation; }
button { font: inherit; color: inherit; touch-action: manipulation; }
ul, ol { margin: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); color: var(--bm-ink); font-weight: 700; line-height: 1.12; letter-spacing: -.012em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
hr { border: 0; border-top: 1px solid var(--bm-line); margin: 0; }
[hidden] { display: none !important; }

:focus-visible { outline: 2px solid var(--bm-bronze); outline-offset: 3px; border-radius: 6px; }
.bm-on-dark :focus-visible, .bm-footer :focus-visible, .bm-hero :focus-visible, .bm-cta :focus-visible { outline-color: var(--bm-bronze-soft); }

.bm-skip {
    position: absolute; left: 12px; top: -80px; z-index: 300;
    background: var(--bm-ink); color: #fff; padding: 12px 18px; border-radius: var(--r-pill);
    font-weight: 700; transition: top .2s var(--ease);
}
.bm-skip:focus { top: 12px; }

.screen-reader-text {
    position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
    clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}

/* -------------------------------------------------------------------------
   3. Layout helpers
   ------------------------------------------------------------------------- */
.bm-container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.bm-section { padding-block: clamp(64px, 9vw, 120px); }
.bm-section--tight { padding-block: clamp(40px, 6vw, 72px); }
.bm-section--paper { background: var(--bm-paper); }

.bm-eyebrow {
    display: inline-flex; align-items: center; gap: 10px;
    font-size: .75rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
    color: var(--bm-bronze-deep);
}
.bm-eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; opacity: .7; }
.bm-on-dark .bm-eyebrow, .bm-hero .bm-eyebrow { color: var(--bm-bronze-soft); }

.bm-h-lead { color: inherit; }
.bm-h-tail { color: var(--bm-bronze); font-weight: 400; }
.bm-on-dark .bm-h-tail, .bm-hero .bm-h-tail { color: #f0d8b8; }

.bm-section-head { display: grid; gap: 16px 48px; align-items: end; margin-bottom: clamp(32px, 5vw, 56px); }
@media (min-width: 900px) { .bm-section-head--split { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); } }
.bm-section-head h2 { font-size: var(--fs-h2); }
.bm-section-head p { color: var(--bm-soft); font-size: 1.0625rem; max-width: 52ch; }
.bm-section-head--center { text-align: center; justify-items: center; }
.bm-section-head--center p { margin-inline: auto; }

/* -------------------------------------------------------------------------
   4. Buttons & pills
   ------------------------------------------------------------------------- */
.bm-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    min-height: 48px; padding: 0 26px; border-radius: var(--r-pill);
    font-weight: 700; font-size: .95rem; letter-spacing: .01em; line-height: 1;
    border: 1px solid transparent; cursor: pointer; text-align: center;
    transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
}
.bm-btn svg { flex: none; transition: transform .25s var(--ease); }
.bm-btn:hover svg.bm-ico-go { transform: translate(2px, -2px); }
.bm-btn--primary { background: var(--bm-bronze); color: #fff; box-shadow: 0 8px 22px rgba(148, 103, 58, .28); }
.bm-btn--primary:hover { background: var(--bm-bronze-h); transform: translateY(-1px); box-shadow: 0 12px 28px rgba(148, 103, 58, .34); }
.bm-btn--ghost { background: transparent; color: var(--bm-ink); border-color: var(--bm-line-2); }
.bm-btn--ghost:hover { border-color: var(--bm-ink); background: rgba(255, 255, 255, .6); }
.bm-btn--light { background: #fff; color: var(--bm-ink); }
.bm-btn--light:hover { background: var(--bm-bronze-tint); }
.bm-btn--outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .55); }
.bm-btn--outline-light:hover { background: rgba(255, 255, 255, .12); border-color: #fff; }
.bm-btn--sm { min-height: 42px; padding: 0 20px; font-size: .9rem; }

.bm-pill {
    display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px;
    border-radius: var(--r-pill); background: var(--bm-paper); border: 1px solid var(--bm-line-2);
    font-size: .92rem; font-weight: 400; color: var(--bm-ink); cursor: pointer;
    transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.bm-pill:hover { border-color: var(--bm-bronze); }
.bm-pill.is-active, .bm-pill[aria-pressed="true"] { background: var(--bm-bronze-deep); border-color: var(--bm-bronze-deep); color: #fff; }
.bm-pill i { font-size: 18px; color: var(--bm-bronze); }
.bm-pill.is-active i, .bm-pill[aria-pressed="true"] i { color: #fff; }

.bm-arrow-btn {
    display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
    background: #fff; color: var(--bm-ink); box-shadow: var(--shadow-sm);
    transition: background-color .25s var(--ease), color .25s var(--ease), transform .25s var(--ease);
}
a:hover > .bm-arrow-btn, .bm-arrow-btn:hover { background: var(--bm-bronze); color: #fff; transform: translate(2px, -2px); }

/* -------------------------------------------------------------------------
   5. Header & navigation
   ------------------------------------------------------------------------- */
.bm-header {
    position: sticky; top: 0; z-index: 100;
    border-bottom: 1px solid transparent;
    transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
/* Frosted bar lives on a pseudo-element: a backdrop-filter on the header itself would trap the fixed mobile drawer. */
.bm-header::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: rgba(251, 249, 246, .9);
    -webkit-backdrop-filter: saturate(1.3) blur(14px); backdrop-filter: saturate(1.3) blur(14px);
}
.admin-bar .bm-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .bm-header { top: 46px; } }
.bm-header.is-scrolled { border-bottom-color: var(--bm-line); box-shadow: 0 6px 24px rgba(15, 24, 27, .05); }

.bm-header__bar {
    display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px;
    height: var(--header-h);
}
.bm-brand { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; }
.bm-brand img { height: 38px; width: auto; }
.bm-brand__mark {
    display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
    border: 1px solid var(--bm-bronze); color: var(--bm-bronze-deep);
}
.bm-brand__name { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; letter-spacing: -.01em; color: var(--bm-ink); line-height: 1; white-space: nowrap; }
.bm-brand__name em { font-style: normal; font-weight: 400; color: var(--bm-bronze); }

.bm-nav { justify-self: center; }
.bm-nav__list { display: flex; align-items: center; gap: 2px; list-style: none; }
.bm-nav__item { position: relative; display: flex; align-items: center; }
.bm-nav__link {
    display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px;
    font-size: .95rem; font-weight: 400; color: var(--bm-ink); border-radius: var(--r-pill);
    transition: color .2s var(--ease), background-color .2s var(--ease);
}
.bm-nav__link:hover { color: var(--bm-bronze-deep); }
.bm-nav__item.is-current > .bm-nav__link, .bm-nav__item.is-ancestor > .bm-nav__link { color: var(--bm-bronze-deep); font-weight: 700; }
.bm-nav__toggle {
    display: inline-grid; place-items: center; width: 28px; height: 44px; margin-left: -10px;
    background: none; border: 0; padding: 0; cursor: pointer; color: var(--bm-soft);
}
.bm-nav__toggle svg { transition: transform .25s var(--ease); }
.bm-nav__toggle[aria-expanded="true"] svg { transform: rotate(180deg); }

.bm-subnav {
    list-style: none; position: absolute; top: calc(100% + 6px); left: 50%; min-width: 300px;
    transform: translate(-50%, 8px); opacity: 0; visibility: hidden; pointer-events: none;
    background: var(--bm-paper); border: 1px solid var(--bm-line); border-radius: var(--r-md);
    box-shadow: var(--shadow-lg); padding: 10px;
    transition: opacity .2s var(--ease), transform .25s var(--ease), visibility 0s linear .25s;
}
.bm-nav__item.has-children:hover > .bm-subnav,
.bm-nav__item.has-children:focus-within > .bm-subnav,
.bm-nav__item.has-children.is-open > .bm-subnav {
    opacity: 1; visibility: visible; pointer-events: auto; transform: translate(-50%, 0);
    transition: opacity .2s var(--ease), transform .25s var(--ease), visibility 0s;
}
.bm-nav__item.has-children::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 12px; } /* hover bridge */
.bm-subnav__item { display: block; }
.bm-subnav__link {
    display: block; padding: 11px 14px; border-radius: 12px; font-size: .93rem; line-height: 1.35; color: var(--bm-ink);
    transition: background-color .2s var(--ease), color .2s var(--ease);
}
.bm-subnav__link:hover { background: var(--bm-bronze-tint); color: var(--bm-bronze-deep); }
.bm-subnav__item.is-current > .bm-subnav__link { color: var(--bm-bronze-deep); font-weight: 700; }

.bm-header__actions { display: flex; align-items: center; gap: 10px; }
.bm-burger {
    display: none; place-items: center; width: 46px; height: 46px; border-radius: 50%;
    background: transparent; border: 1px solid var(--bm-line-2); cursor: pointer; color: var(--bm-ink);
}
.bm-burger .bm-ico-close { display: none; }
.bm-burger[aria-expanded="true"] .bm-ico-open { display: none; }
.bm-burger[aria-expanded="true"] .bm-ico-close { display: block; }

@media (max-width: 1080px) {
    .bm-header__bar { grid-template-columns: 1fr auto; }
    .bm-burger { display: inline-grid; }
    .bm-header__actions .bm-btn { display: none; }
    .bm-nav {
        position: fixed; inset: calc(var(--header-h) + var(--bm-admin-h, 0px)) 0 0 0; z-index: 90;
        background: var(--bm-paper); padding: 12px var(--gutter) 40px; overflow-y: auto; overscroll-behavior: contain;
        transform: translateY(-8px); opacity: 0; visibility: hidden;
        transition: opacity .25s var(--ease), transform .3s var(--ease), visibility 0s linear .3s;
    }
    .bm-nav.is-open { opacity: 1; transform: none; visibility: visible; transition: opacity .25s var(--ease), transform .3s var(--ease), visibility 0s; }
    .bm-nav__list { flex-direction: column; align-items: stretch; gap: 0; }
    .bm-nav__item { flex-wrap: wrap; border-bottom: 1px solid var(--bm-line); }
    .bm-nav__link { flex: 1; font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; padding: 16px 0; min-height: 60px; border-radius: 0; }
    .bm-nav__toggle { width: 52px; height: 60px; margin: 0; }
    .bm-subnav {
        position: static; left: auto; transform: none; opacity: 1; visibility: visible; pointer-events: auto; min-width: 0; width: 100%;
        background: transparent; border: 0; box-shadow: none; padding: 0 0 12px 4px; display: none;
    }
    .bm-nav__item.is-open > .bm-subnav { display: block; }
    .bm-nav__item.has-children:hover > .bm-subnav, .bm-nav__item.has-children:focus-within > .bm-subnav, .bm-nav__item.has-children.is-open > .bm-subnav { transform: none; left: auto; }
    .bm-nav__item.has-children::after { display: none; }
    .bm-subnav__link { font-size: 1rem; padding: 12px 8px; }
    .bm-nav__cta { display: block; margin-top: 28px; }
}
@media (min-width: 1081px) { .bm-nav__cta { display: none; } }

/* -------------------------------------------------------------------------
   6. Home hero
   ------------------------------------------------------------------------- */
.bm-hero { padding: 14px var(--gutter) 0; }
.bm-hero__frame {
    position: relative; isolation: isolate; overflow: hidden; color: #fff;
    max-width: var(--container); margin-inline: auto; border-radius: var(--r-lg);
    min-height: clamp(560px, calc(100svh - var(--header-h) - 60px), 780px);
    display: flex; flex-direction: column; justify-content: space-between;
    padding: clamp(20px, 3vw, 32px) clamp(22px, 5vw, 64px) clamp(120px, 12vw, 148px);
}
.bm-hero__media { position: absolute; inset: 0; z-index: -2; }
.bm-hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
.bm-hero__frame::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background:
        linear-gradient(180deg, rgba(8, 14, 16, .34) 0%, rgba(8, 14, 16, 0) 28%, rgba(8, 14, 16, .38) 58%, rgba(8, 14, 16, .80) 100%),
        linear-gradient(90deg, rgba(8, 14, 16, .42) 0%, rgba(8, 14, 16, 0) 62%);
}
.bm-hero__top { display: flex; justify-content: flex-end; }
.bm-chip {
    display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px;
    background: rgba(255, 255, 255, .94); color: var(--bm-ink); border-radius: var(--r-pill);
    font-size: .875rem; font-weight: 400; font-variant-numeric: tabular-nums; box-shadow: var(--shadow-sm);
}
.bm-chip svg { color: var(--bm-bronze); }
.bm-hero__body { max-width: 780px; }
.bm-hero__body .bm-eyebrow { margin-bottom: 20px; color: #f3dfc3; text-shadow: 0 1px 14px rgba(0, 0, 0, .55); }
.bm-hero h1 { font-size: var(--fs-hero); color: #fff; line-height: 1.02; letter-spacing: -.02em; text-shadow: 0 2px 30px rgba(0, 0, 0, .25); }
.bm-hero h1 .bm-h-lead { display: block; }
.bm-hero__sub { margin-top: 22px; max-width: 46ch; font-size: clamp(1.05rem, 1rem + .4vw, 1.25rem); line-height: 1.6; color: rgba(255, 255, 255, .92); }

.bm-hero__panel {
    position: relative; z-index: 2; max-width: calc(var(--container) - 64px); margin: -92px auto 0;
    background: var(--bm-paper); border: 1px solid var(--bm-line); border-radius: var(--r-md);
    box-shadow: var(--shadow-lg); padding: clamp(22px, 3vw, 32px) clamp(22px, 3.4vw, 40px);
    display: grid; gap: 22px 40px; align-items: center;
}
@media (min-width: 960px) { .bm-hero__panel { grid-template-columns: minmax(0, 1fr) auto; margin-top: -104px; } }
.bm-quick__label { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--bm-bronze-deep); margin-bottom: 8px; }
.bm-quick__text { font-size: 1.0625rem; line-height: 1.65; color: var(--bm-ink-2); max-width: 78ch; }
.bm-quick__text a { color: var(--bm-bronze-deep); text-decoration: underline; text-underline-offset: 3px; }
.bm-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* -------------------------------------------------------------------------
   7. Inner page header
   ------------------------------------------------------------------------- */
.bm-pagehead { padding: 14px var(--gutter) 0; }
.bm-pagehead__frame {
    position: relative; isolation: isolate; overflow: hidden; color: #fff; text-align: left;
    max-width: var(--container); margin-inline: auto; border-radius: var(--r-lg);
    min-height: clamp(360px, 46vh, 460px); display: flex; flex-direction: column; justify-content: flex-end; gap: 18px;
    padding: clamp(24px, 4vw, 56px);
}
.bm-pagehead__media { position: absolute; inset: 0; z-index: -2; }
.bm-pagehead__media img { width: 100%; height: 100%; object-fit: cover; }
.bm-pagehead__frame::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(180deg, rgba(8, 14, 16, .30) 0%, rgba(8, 14, 16, .12) 34%, rgba(8, 14, 16, .78) 100%),
                linear-gradient(90deg, rgba(8, 14, 16, .45) 0%, rgba(8, 14, 16, 0) 70%);
}
.bm-pagehead h1 { font-size: var(--fs-h1); color: #fff; max-width: 18ch; text-shadow: 0 2px 28px rgba(0, 0, 0, .25); }
.bm-pagehead .bm-eyebrow { color: var(--bm-bronze-soft); }
.bm-pagehead .bm-h-tail, .bm-cta .bm-h-tail { color: #f0d8b8; }
.bm-pagehead .bm-chip { position: absolute; top: clamp(18px, 2.4vw, 28px); right: clamp(18px, 2.4vw, 28px); }
.bm-pagehead__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }

.bm-breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; list-style: none; font-size: .875rem; }
.bm-breadcrumb li { display: inline-flex; align-items: center; gap: 10px; color: rgba(255, 255, 255, .8); }
.bm-breadcrumb li + li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--bm-bronze-soft); }
.bm-breadcrumb a { color: rgba(255, 255, 255, .92); border-bottom: 1px solid rgba(255, 255, 255, .35); transition: border-color .2s var(--ease); }
.bm-breadcrumb a:hover { border-color: #fff; }
.bm-breadcrumb [aria-current] { color: #fff; }
.bm-breadcrumb--dark li { color: var(--bm-soft); }
.bm-breadcrumb--dark a { color: var(--bm-ink); border-color: var(--bm-line-2); }
.bm-breadcrumb--dark [aria-current] { color: var(--bm-ink); }

/* -------------------------------------------------------------------------
   8. Facts strip (intro tiles)
   ------------------------------------------------------------------------- */
.bm-intro { display: grid; gap: clamp(28px, 5vw, 72px); align-items: stretch; }
@media (min-width: 960px) { .bm-intro { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); } }
.bm-intro__media { position: relative; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-md); aspect-ratio: 4 / 3.4; }
@media (min-width: 960px) { .bm-intro__media { aspect-ratio: auto; min-height: 480px; } }
.bm-intro__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bm-intro__copy { display: grid; gap: 22px; }
.bm-intro__copy h2 { font-size: var(--fs-h2); }
.bm-intro__copy .bm-lead { color: var(--bm-text); font-size: 1.125rem; line-height: 1.75; }
.bm-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.bm-fact { background: var(--bm-paper); border-radius: var(--r-md); padding: 20px 20px 18px; box-shadow: var(--shadow-sm); border: 1px solid var(--bm-line); }
.bm-fact__value { display: block; font-family: var(--font-display); font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2.1rem); font-weight: 500; color: var(--bm-bronze); line-height: 1.1; font-variant-numeric: tabular-nums; }
.bm-fact__label { display: block; margin-top: 8px; font-size: .84rem; line-height: 1.4; color: var(--bm-soft); }
@media (max-width: 560px) { .bm-facts { grid-template-columns: 1fr; } .bm-fact { display: flex; align-items: baseline; gap: 14px; } .bm-fact__label { margin: 0; } }

/* -------------------------------------------------------------------------
   9. Photo cards
   ------------------------------------------------------------------------- */
.bm-cards { display: grid; gap: 16px; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.bm-cards > * { grid-column: span 2; min-width: 0; }
.bm-cards > *:nth-child(-n+2) { grid-column: span 3; }
.bm-cards[data-n="1"] > * { grid-column: 1 / -1; }
.bm-cards[data-n="2"] > *, .bm-cards[data-n="4"] > * { grid-column: span 3; }
.bm-cards[data-n="3"] > *, .bm-cards[data-n="6"] > * { grid-column: span 2; }
@media (max-width: 899px) { .bm-cards > *, .bm-cards > *:nth-child(-n+2) { grid-column: span 3; } .bm-cards > *:last-child:nth-child(odd) { grid-column: 1 / -1; } }
@media (max-width: 599px) { .bm-cards { grid-template-columns: 1fr; } .bm-cards > *, .bm-cards > *:nth-child(-n+2), .bm-cards > *:last-child:nth-child(odd) { grid-column: auto; } }

.bm-card {
    position: relative; display: block; isolation: isolate; overflow: hidden; color: #fff;
    border-radius: var(--r-md); aspect-ratio: 4 / 3.3; box-shadow: var(--shadow-sm);
}
.bm-card__media { position: absolute; inset: 0; z-index: -2; }
.bm-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.bm-card:hover .bm-card__media img { transform: scale(1.05); }
.bm-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(8, 14, 16, .10) 30%, rgba(8, 14, 16, .78) 100%); }
.bm-card__body { position: absolute; inset: auto 0 0 0; padding: 22px 22px 20px; display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.bm-card__title { font-family: var(--font-display); font-size: clamp(1.15rem, 1rem + .5vw, 1.45rem); font-weight: 600; line-height: 1.2; color: #fff; text-wrap: balance; }
.bm-card__eyebrow { display: block; margin-bottom: 8px; font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--bm-bronze-soft); font-weight: 700; }
.bm-card .bm-arrow-btn { flex: none; }

/* Journal card (light) */
.bm-post-grid { display: grid; gap: 28px 20px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.bm-post { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.bm-post__media { position: relative; overflow: hidden; border-radius: var(--r-md); aspect-ratio: 4 / 3; background: var(--bm-canvas-2); }
.bm-post__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.bm-post:hover .bm-post__media img { transform: scale(1.04); }
.bm-post__meta { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--bm-bronze-deep); font-weight: 700; }
.bm-post__title { font-size: clamp(1.15rem, 1.05rem + .5vw, 1.4rem); font-weight: 600; line-height: 1.25; }
.bm-post__title a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .35s var(--ease); }
.bm-post:hover .bm-post__title a { background-size: 100% 1px; }
.bm-post__excerpt { color: var(--bm-soft); font-size: .95rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* -------------------------------------------------------------------------
   10. Chapters (home editorial sections) & disclosure
   ------------------------------------------------------------------------- */
.bm-chapters { display: grid; gap: clamp(56px, 8vw, 104px); }
.bm-chapter { display: grid; gap: clamp(24px, 4vw, 64px); align-items: start; }
.bm-chapter__media { position: relative; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 1 / 1; box-shadow: var(--shadow-md); }
.bm-chapter__media img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 960px) {
    .bm-chapter { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
    .bm-chapter:nth-child(even) { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
    .bm-chapter:nth-child(even) .bm-chapter__media { order: 2; }
    .bm-chapter__media { position: sticky; top: calc(var(--header-h) + 28px); }
}
.bm-chapter__index {
    position: absolute; left: 20px; top: 18px; z-index: 1; min-width: 46px; height: 46px; padding: 0 14px;
    display: inline-grid; place-items: center; border-radius: var(--r-pill);
    background: rgba(251, 249, 246, .94); color: var(--bm-bronze-deep); font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; font-variant-numeric: tabular-nums;
}
.bm-chapter__copy { display: grid; gap: 22px; min-width: 0; }
.bm-chapter__copy h2 { font-size: clamp(1.75rem, 1.1rem + 2vw, 2.7rem); }
.bm-chapter__copy .bm-lead { font-size: 1.125rem; line-height: 1.8; }
.bm-chapter__topics { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.bm-chapter__topics li { padding: 8px 14px; border-radius: var(--r-pill); background: var(--bm-paper); border: 1px solid var(--bm-line); font-size: .85rem; color: var(--bm-ink-2); }

.bm-more { border-top: 1px solid var(--bm-line); }
.bm-more > summary {
    list-style: none; display: inline-flex; align-items: center; gap: 12px; margin-top: 18px; min-height: 48px; padding: 0 22px 0 8px;
    cursor: pointer; font-weight: 700; color: var(--bm-ink); border-radius: var(--r-pill); user-select: none;
}
.bm-more > summary::-webkit-details-marker { display: none; }
.bm-more > summary .bm-more__ico { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--bm-bronze-tint); color: var(--bm-bronze-deep); transition: transform .3s var(--ease), background-color .2s var(--ease), color .2s var(--ease); }
.bm-more > summary:hover .bm-more__ico { background: var(--bm-bronze); color: #fff; }
.bm-more[open] > summary .bm-more__ico { transform: rotate(45deg); }
.bm-more[open] > summary .bm-more__open, .bm-more:not([open]) > summary .bm-more__close { display: none; }
.bm-more__body { padding-top: 12px; }

/* -------------------------------------------------------------------------
   11. Editorial article
   ------------------------------------------------------------------------- */
.bm-article-wrap { display: grid; gap: clamp(32px, 5vw, 64px); padding-block: clamp(40px, 6vw, 80px) clamp(56px, 8vw, 104px); }
@media (min-width: 1000px) { .bm-article-wrap { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; } }
.bm-article { min-width: 0; max-width: 780px; }
.bm-aside { display: grid; gap: 18px; min-width: 0; }
@media (min-width: 1000px) { .bm-aside { position: sticky; top: calc(var(--header-h) + 24px); } }

.bm-quick { background: var(--bm-paper); border: 1px solid var(--bm-line); border-left: 3px solid var(--bm-bronze); border-radius: var(--r-md); padding: 22px 26px; margin-bottom: clamp(28px, 4vw, 44px); box-shadow: var(--shadow-sm); }

.bm-lead { font-size: clamp(1.0625rem, 1rem + .3vw, 1.2rem); line-height: 1.75; color: var(--bm-ink-2); }
.bm-lead p + p { margin-top: 1.1em; }
.bm-intro-block { margin-bottom: clamp(36px, 5vw, 56px); }

.bm-prose { font-size: 1.0625rem; line-height: 1.85; color: var(--bm-text); }
.bm-prose > * + * { margin-top: 1.15em; }
.bm-prose a { color: var(--bm-bronze-deep); text-decoration: underline; text-decoration-color: rgba(122, 82, 48, .4); text-underline-offset: 3px; text-decoration-thickness: 1px; transition: text-decoration-color .2s var(--ease), color .2s var(--ease); overflow-wrap: anywhere; }
.bm-prose a:hover { color: var(--bm-ink); text-decoration-color: currentColor; }
.bm-prose strong { color: var(--bm-ink); font-weight: 700; }
.bm-prose h3 { font-size: var(--fs-h3); margin-top: 1.9em; font-weight: 600; }
.bm-prose h3::before { content: ""; display: block; width: 32px; height: 2px; background: var(--bm-bronze); margin-bottom: 14px; }
.bm-prose h4 { font-size: 1.15rem; margin-top: 1.6em; }
.bm-prose ul, .bm-prose ol { padding-left: 1.3em; }
.bm-prose li { margin-top: .5em; padding-left: .2em; }
.bm-prose li::marker { color: var(--bm-bronze); }
.bm-prose blockquote { margin-inline: 0; padding: 4px 0 4px 24px; border-left: 2px solid var(--bm-bronze); font-family: var(--font-display); font-size: 1.3rem; line-height: 1.5; color: var(--bm-ink); }
.bm-table-wrap { overflow-x: auto; border: 1px solid var(--bm-line); border-radius: var(--r-md); background: var(--bm-paper); }
.bm-prose table { width: 100%; border-collapse: collapse; font-size: .95rem; line-height: 1.5; }
.bm-prose th, .bm-prose td { padding: 14px 18px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--bm-line); min-width: 120px; font-variant-numeric: tabular-nums; }
.bm-prose th { font-family: var(--font-display); color: var(--bm-ink); background: var(--bm-canvas-2); }
.bm-prose tr:last-child td { border-bottom: 0; }

.bm-sec { padding-top: clamp(34px, 5vw, 56px); border-top: 1px solid var(--bm-line); }
.bm-sec + .bm-sec { margin-top: clamp(34px, 5vw, 56px); }
.bm-sec:first-of-type { border-top: 0; padding-top: 0; }
.bm-sec__head { display: grid; gap: 10px; margin-bottom: 22px; scroll-margin-top: calc(var(--header-h) + 24px); }
.bm-sec__num { font-size: .75rem; font-weight: 700; letter-spacing: .2em; color: var(--bm-bronze-deep); font-variant-numeric: tabular-nums; }
.bm-sec__head h2 { font-size: clamp(1.6rem, 1.15rem + 1.6vw, 2.35rem); }

.bm-toc, .bm-side-card { background: var(--bm-paper); border: 1px solid var(--bm-line); border-radius: var(--r-md); padding: 22px 22px 20px; box-shadow: var(--shadow-sm); }
.bm-side-card h2, .bm-toc h2 { font-size: .75rem; font-family: var(--font-text); font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--bm-bronze-deep); margin-bottom: 14px; }
.bm-toc ol { list-style: none; display: grid; gap: 2px; counter-reset: toc; max-height: 46vh; overflow-y: auto; overscroll-behavior: contain; }
.bm-toc a { display: grid; grid-template-columns: 26px 1fr; gap: 6px; padding: 8px 10px 8px 8px; border-radius: 10px; font-size: .9rem; line-height: 1.35; color: var(--bm-soft); counter-increment: toc; transition: background-color .2s var(--ease), color .2s var(--ease); }
.bm-toc a::before { content: counter(toc, decimal-leading-zero); font-size: .72rem; font-weight: 700; color: var(--bm-bronze); padding-top: 2px; font-variant-numeric: tabular-nums; }
.bm-toc a:hover { color: var(--bm-ink); background: var(--bm-bronze-tint); }
.bm-toc a.is-active { color: var(--bm-ink); background: var(--bm-bronze-tint); font-weight: 700; }
.bm-side-card p { font-size: .93rem; color: var(--bm-soft); }
.bm-side-card p + p { margin-top: 8px; }
.bm-side-card--dark { background: var(--bm-deep); border-color: transparent; color: rgba(255, 255, 255, .8); }
.bm-side-card--dark h2 { color: var(--bm-bronze-soft); }
.bm-side-card--dark p { color: rgba(255, 255, 255, .78); }
.bm-side-card .bm-btn { margin-top: 16px; width: 100%; }
.bm-side-list { list-style: none; display: grid; gap: 10px; margin-top: 14px; }
.bm-side-list a { display: flex; align-items: center; gap: 10px; color: rgba(255, 255, 255, .92); overflow-wrap: anywhere; }
.bm-side-list svg { color: var(--bm-bronze-soft); flex: none; }
.bm-side-list a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

/* author card (About the Editorial Desk) */
.bm-author { display: grid; gap: 14px; background: var(--bm-deep); color: rgba(255, 255, 255, .84); border-radius: var(--r-lg); padding: clamp(28px, 4vw, 48px); margin-bottom: clamp(36px, 5vw, 60px); }
.bm-author h2 { color: #fff; font-size: var(--fs-h2); }
.bm-author__role { color: var(--bm-bronze-soft); font-weight: 700; letter-spacing: .04em; }
.bm-author a { color: #f0d8b8; text-decoration: underline; text-underline-offset: 3px; }
.bm-author strong { color: #fff; }

/* -------------------------------------------------------------------------
   12. Itinerary timeline
   ------------------------------------------------------------------------- */
.bm-timeline { position: relative; display: grid; gap: clamp(20px, 3vw, 28px); }
.bm-sec + .bm-timeline, .bm-timeline + .bm-sec, .bm-intro-block + .bm-timeline { margin-top: clamp(34px, 5vw, 56px); }
.bm-day { display: grid; gap: 18px; position: relative; background: var(--bm-paper); border: 1px solid var(--bm-line); border-radius: var(--r-lg); padding: clamp(22px, 3.4vw, 40px); box-shadow: var(--shadow-sm); }
@media (min-width: 760px) { .bm-day { grid-template-columns: 88px minmax(0, 1fr); gap: 28px; } }
.bm-day__badge { display: flex; align-items: center; gap: 14px; }
@media (min-width: 760px) { .bm-day__badge { flex-direction: column; align-items: flex-start; gap: 8px; position: sticky; top: calc(var(--header-h) + 24px); align-self: start; } }
.bm-day__label { font-size: .75rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--bm-bronze-deep); }
.bm-day__num { font-family: var(--font-display); font-size: clamp(2.6rem, 2rem + 2vw, 3.6rem); font-weight: 500; line-height: 1; color: var(--bm-bronze); font-variant-numeric: tabular-nums; }
.bm-day__title { font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2rem); margin-bottom: 18px; scroll-margin-top: calc(var(--header-h) + 24px); }

/* -------------------------------------------------------------------------
   13. FAQ
   ------------------------------------------------------------------------- */
.bm-faq { max-width: 900px; margin-inline: auto; }
.bm-faq__tools { display: grid; gap: 18px; margin-bottom: 28px; }
.bm-faq__nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.bm-faq__search { position: relative; max-width: 520px; width: 100%; margin-inline: auto; }
.bm-faq__search svg { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: var(--bm-bronze); pointer-events: none; }
.bm-faq__search input {
    width: 100%; min-height: 52px; padding: 0 20px 0 50px; border-radius: var(--r-pill);
    border: 1px solid var(--bm-line-2); background: var(--bm-paper); font: inherit; color: var(--bm-ink);
    transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.bm-faq__search input:focus-visible { outline: none; border-color: var(--bm-bronze); box-shadow: 0 0 0 3px rgba(148, 103, 58, .22); }
.bm-faq__count { text-align: center; font-size: .85rem; color: var(--bm-soft); min-height: 1.4em; font-variant-numeric: tabular-nums; }
.bm-faq__list { display: grid; gap: 12px; }
.bm-qa { background: var(--bm-white); border: 1px solid var(--bm-line); border-radius: var(--r-md); box-shadow: var(--shadow-sm); transition: border-color .25s var(--ease), box-shadow .25s var(--ease); }
.bm-faq--long .bm-qa { content-visibility: auto; contain-intrinsic-size: auto 76px; }
.bm-qa[open] { border-color: var(--bm-bronze-soft); box-shadow: var(--shadow-md); }
.bm-qa > summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 20px 22px; cursor: pointer; min-height: 72px; border-radius: var(--r-md); }
.bm-qa > summary::-webkit-details-marker { display: none; }
.bm-qa > summary h3 { font-size: clamp(1.02rem, .98rem + .25vw, 1.15rem); font-weight: 600; line-height: 1.35; margin: 0; }
.bm-qa__ico { flex: none; display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--bm-bronze-tint); color: var(--bm-bronze-deep); transition: transform .3s var(--ease), background-color .2s var(--ease), color .2s var(--ease); }
.bm-qa > summary:hover .bm-qa__ico { background: var(--bm-bronze); color: #fff; }
.bm-qa[open] .bm-qa__ico { transform: rotate(45deg); background: var(--bm-bronze); color: #fff; }
.bm-qa__a { padding: 0 24px 24px; color: var(--bm-soft); font-size: 1rem; line-height: 1.8; }
.bm-qa__a a { color: var(--bm-bronze-deep); text-decoration: underline; text-underline-offset: 3px; }
.bm-faq__empty { text-align: center; padding: 40px 0; color: var(--bm-soft); }
.bm-faq__group-title { font-size: 1.25rem; margin: 26px 0 4px; }

/* -------------------------------------------------------------------------
   14. Contact
   ------------------------------------------------------------------------- */
.bm-form { display: grid; gap: 16px; }
.bm-field { display: grid; gap: 8px; }
.bm-field label { font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--bm-bronze-deep); }
.bm-field input, .bm-field textarea {
    width: 100%; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--bm-line-2); background: var(--bm-white);
    font: inherit; color: var(--bm-ink); min-height: 50px; transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.bm-field textarea { min-height: 150px; resize: vertical; }
.bm-field input:focus-visible, .bm-field textarea:focus-visible { outline: none; border-color: var(--bm-bronze); box-shadow: 0 0 0 3px rgba(148, 103, 58, .22); }
.bm-field input::placeholder, .bm-field textarea::placeholder { color: #8b9492; }
.bm-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.bm-notice { padding: 14px 18px; border-radius: 14px; font-size: .95rem; line-height: 1.5; border: 1px solid; }
.bm-notice--ok { background: #eef5ef; border-color: #b9d3bd; color: #234a2c; }
.bm-notice--err { background: #fbeeea; border-color: #e4b9ad; color: #6c2a1a; }
.bm-formcard { background: var(--bm-paper); border: 1px solid var(--bm-line); border-radius: var(--r-lg); padding: clamp(24px, 3.4vw, 36px); box-shadow: var(--shadow-md); }
.bm-formcard h2 { font-size: 1.6rem; margin-bottom: 20px; }

/* -------------------------------------------------------------------------
   15. CTA band
   ------------------------------------------------------------------------- */
.bm-cta { padding: 0 var(--gutter); }
.bm-cta__frame {
    position: relative; isolation: isolate; overflow: hidden; color: #fff; text-align: center;
    max-width: var(--container); margin-inline: auto; border-radius: var(--r-lg);
    padding: clamp(56px, 9vw, 116px) clamp(22px, 5vw, 64px); display: grid; justify-items: center; gap: 22px;
    box-shadow: var(--shadow-lg);
}
.bm-cta__media { position: absolute; inset: 0; z-index: -2; }
.bm-cta__media img { width: 100%; height: 100%; object-fit: cover; }
.bm-cta__frame::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(8, 14, 16, .55), rgba(8, 14, 16, .72)); }
.bm-cta h2 { color: #fff; font-size: var(--fs-h2); max-width: 20ch; }
.bm-cta p { max-width: 56ch; font-size: 1.125rem; color: rgba(255, 255, 255, .92); }
.bm-cta__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 8px; }

/* -------------------------------------------------------------------------
   16. Footer
   ------------------------------------------------------------------------- */
.bm-footer { margin-top: clamp(64px, 9vw, 120px); background: var(--bm-deep); color: rgba(255, 255, 255, .78); border-radius: 40px 40px 0 0; padding-top: clamp(56px, 8vw, 96px); }
.bm-footer a { transition: color .2s var(--ease); }
.bm-footer a:hover { color: #fff; }
.bm-footer__grid { display: grid; gap: 40px 32px; grid-template-columns: repeat(2, minmax(0, 1fr)); padding-bottom: clamp(40px, 6vw, 72px); }
@media (min-width: 900px) { .bm-footer__grid { grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); } }
.bm-footer__brand { grid-column: 1 / -1; display: grid; gap: 20px; align-content: start; max-width: 40ch; }
@media (min-width: 900px) { .bm-footer__brand { grid-column: auto; } }
.bm-footer .bm-brand__name { color: #fff; }
.bm-footer .bm-brand__mark { border-color: var(--bm-bronze-soft); color: var(--bm-bronze-soft); }
.bm-footer .bm-brand__name em { color: var(--bm-bronze-soft); }
.bm-footer h2, .bm-footer h3 { font-family: var(--font-display); font-size: 1rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--bm-bronze-soft); margin-bottom: 18px; }
.bm-footer ul { list-style: none; display: grid; gap: 4px; }
.bm-footer li a { display: inline-flex; align-items: center; gap: 10px; min-height: 36px; font-size: .95rem; }
.bm-footer__note { font-size: .95rem; line-height: 1.7; }
.bm-social { display: flex; flex-wrap: wrap; gap: 10px; }
.bm-social a { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, .08); color: #fff; transition: background-color .25s var(--ease), color .25s var(--ease); }
.bm-social a:hover { background: var(--bm-bronze); }
.bm-footer__sources { border-top: 1px solid rgba(255, 255, 255, .1); padding-block: 32px; display: grid; gap: 28px 32px; }
@media (min-width: 900px) { .bm-footer__sources { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.bm-footer__sources ul { display: flex; flex-wrap: wrap; gap: 4px 22px; }
.bm-footer__tagline { border-top: 1px solid rgba(255, 255, 255, .1); padding-block: 26px; font-size: .95rem; }
.bm-footer__tagline a { color: #f0d8b8; text-decoration: underline; text-underline-offset: 3px; }
.bm-footer__legal { border-top: 1px solid rgba(255, 255, 255, .1); padding-block: 24px 32px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; font-size: .9rem; }
.bm-footer__legal ul { display: flex; gap: 8px 22px; }
.bm-footer__legal li a { min-height: 32px; color: rgba(255, 255, 255, .7); }

/* -------------------------------------------------------------------------
   17. Floating actions & cookie notice
   ------------------------------------------------------------------------- */
.bm-fab { position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 80; display: grid; gap: 12px; justify-items: end; }
.bm-fab a, .bm-fab button {
    display: inline-grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; border: 0; cursor: pointer;
    background: var(--bm-bronze); color: #fff; box-shadow: 0 14px 34px rgba(15, 24, 27, .28);
    transition: background-color .25s var(--ease), transform .25s var(--ease);
}
.bm-fab a:hover { background: var(--bm-bronze-h); transform: translateY(-2px); }
.bm-fab .bm-top { width: 46px; height: 46px; background: var(--bm-paper); color: var(--bm-ink); border: 1px solid var(--bm-line-2); opacity: 0; visibility: hidden; transform: translateY(8px); }
.bm-fab .bm-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.bm-fab .bm-top:hover { background: var(--bm-ink); color: #fff; }

.bm-consent { position: fixed; left: max(16px, env(safe-area-inset-left)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 95; width: min(460px, calc(100vw - 32px)); padding: 18px 20px; border-radius: var(--r-md); background: var(--bm-deep); color: rgba(255, 255, 255, .9); box-shadow: var(--shadow-lg); display: grid; gap: 14px; font-size: .9rem; line-height: 1.55; }
.bm-consent a { color: #f0d8b8; text-decoration: underline; text-underline-offset: 3px; }
.bm-consent .bm-btn { min-height: 42px; justify-self: start; }
.bm-consent[hidden] { display: none; }
@media (max-width: 560px) { body.has-consent .bm-fab { bottom: calc(max(16px, env(safe-area-inset-bottom)) + 150px); } }

/* -------------------------------------------------------------------------
   18. Utility pages (404, search, journal header)
   ------------------------------------------------------------------------- */
.bm-center-page { min-height: 56vh; display: grid; place-content: center; justify-items: center; text-align: center; gap: 22px; padding-block: 96px; }
.bm-center-page h1 { font-size: var(--fs-h1); }
.bm-center-page p { max-width: 52ch; color: var(--bm-soft); }
.bm-numeral { font-family: var(--font-display); font-size: clamp(5rem, 4rem + 8vw, 10rem); line-height: .9; color: var(--bm-bronze); font-weight: 400; }
.bm-plainhead { padding-block: clamp(40px, 6vw, 72px) 0; display: grid; gap: 18px; }
.bm-plainhead h1 { font-size: var(--fs-h1); max-width: 20ch; }
.bm-plainhead p { color: var(--bm-soft); max-width: 60ch; font-size: 1.0625rem; }
.bm-pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 48px; }
.bm-pagination .page-numbers { display: inline-grid; place-items: center; min-width: 46px; height: 46px; padding: 0 14px; border-radius: var(--r-pill); border: 1px solid var(--bm-line-2); background: var(--bm-paper); font-variant-numeric: tabular-nums; transition: background-color .2s var(--ease), color .2s var(--ease); }
.bm-pagination .page-numbers:hover { border-color: var(--bm-bronze); }
.bm-pagination .page-numbers.current { background: var(--bm-bronze-deep); color: #fff; border-color: var(--bm-bronze-deep); }
.bm-searchform { display: flex; gap: 10px; max-width: 560px; }
.bm-searchform input { flex: 1; min-width: 0; min-height: 50px; padding: 0 20px; border-radius: var(--r-pill); border: 1px solid var(--bm-line-2); background: var(--bm-paper); font: inherit; }
.bm-searchform input:focus-visible { outline: none; border-color: var(--bm-bronze); box-shadow: 0 0 0 3px rgba(148, 103, 58, .22); }

/* single post */
.bm-post-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; color: rgba(255, 255, 255, .88); font-size: .9rem; }

/* -------------------------------------------------------------------------
   19. Reveal-on-scroll (progressive: content is visible without JS)
   ------------------------------------------------------------------------- */
.js [data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .7s var(--ease); will-change: opacity, transform; }
.js [data-reveal].is-in { opacity: 1; transform: none; will-change: auto; }
@media (prefers-reduced-motion: reduce) {
    .js [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* -------------------------------------------------------------------------
   20. Print
   ------------------------------------------------------------------------- */
@media print {
    .bm-header, .bm-fab, .bm-consent, .bm-footer, .bm-aside, .bm-cta { display: none !important; }
    body { background: #fff; }
    .bm-pagehead__frame { min-height: 0; color: #000; }
    .bm-pagehead__media, .bm-pagehead__frame::before { display: none; }
    .bm-pagehead h1, .bm-pagehead .bm-eyebrow { color: #000; }
}

/* -------------------------------------------------------------------------
   21. Home additions
   ------------------------------------------------------------------------- */
.bm-byline { display: inline-flex; align-items: center; gap: 10px; font-size: .875rem; color: var(--bm-soft); }
.bm-byline::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--bm-bronze); flex: none; }
.bm-quicklinks { display: flex; flex-wrap: wrap; gap: 10px; }
.bm-section-head--row { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 20px 32px; }
.bm-section-head--row > div { min-width: 0; }
.bm-section--paper .bm-fact { background: var(--bm-canvas); }

@media (max-width: 560px) {
    .bm-fab a, .bm-fab button { width: 52px; height: 52px; }
    .bm-fab .bm-top { width: 42px; height: 42px; }
}
