/**
 * BSMC Single Event — standalone template styles (BSMC Event Detail
 * redesign 2026-08). All rules scoped to `body.bsmc-single-event-body`
 * so nothing leaks into BB parent pages, and a font + color reclaim
 * block at the top overrides BuddyBoss's global Montserrat + heading
 * tint (same pattern as clubhouse.css / code-of-conduct.css).
 */

/* ─── Font + color reclaim ────────────────────────────────────── */
body.bsmc-single-event-body,
html body.bsmc-single-event-body p,
html body.bsmc-single-event-body a,
html body.bsmc-single-event-body div,
html body.bsmc-single-event-body li,
html body.bsmc-single-event-body ul,
html body.bsmc-single-event-body ol,
html body.bsmc-single-event-body span,
html body.bsmc-single-event-body em,
html body.bsmc-single-event-body button,
html body.bsmc-single-event-body blockquote {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif !important;
}
html body.bsmc-single-event-body h1,
html body.bsmc-single-event-body h2,
html body.bsmc-single-event-body h3,
html body.bsmc-single-event-body h4,
html body.bsmc-single-event-body h5,
html body.bsmc-single-event-body h6,
html body.bsmc-single-event-body .bsmc-se-title,
html body.bsmc-single-event-body .bsmc-se-badge,
html body.bsmc-single-event-body .bsmc-se-btn,
html body.bsmc-single-event-body .bsmc-se-nav__brand span,
html body.bsmc-single-event-body .bsmc-se-nav__cta,
html body.bsmc-single-event-body .bsmc-se-location__name,
html body.bsmc-single-event-body .bsmc-se-location__link,
html body.bsmc-single-event-body .bsmc-se-footer__pitch {
    font-family: 'Bebas Neue', Impact, 'Oswald', sans-serif !important;
    font-weight: 400 !important;
}
html body.bsmc-single-event-body a { text-decoration: none !important; }

/* home3.css sets `body.bsmc-home3-body h1..h6 { color:#edeadf }` for the
   dark app-landing page. This page's body carries bsmc-home3-body too
   (needed for the shared marketing header styling) — reclaim ink black
   on content-area titles + restore white on the dark hero band. */
html body.bsmc-single-event-body.bsmc-home3-body h1,
html body.bsmc-single-event-body.bsmc-home3-body h2,
html body.bsmc-single-event-body.bsmc-home3-body h3,
html body.bsmc-single-event-body.bsmc-home3-body h4,
html body.bsmc-single-event-body.bsmc-home3-body h5,
html body.bsmc-single-event-body.bsmc-home3-body h6,
html body.bsmc-single-event-body.bsmc-home3-body .bsmc-se-location__name {
    color: var(--se-ink) !important;
    -webkit-text-fill-color: var(--se-ink) !important;
}
html body.bsmc-single-event-body.bsmc-home3-body .bsmc-se-hero .bsmc-se-title,
html body.bsmc-single-event-body.bsmc-home3-body .bsmc-se-hero h1 {
    color: #FFFFFF !important;
    -webkit-text-fill-color: #FFFFFF !important;
}

/* ─── Tokens + base ───────────────────────────────────────────── */
:root {
    --se-accent: #A18A55;
    --se-accent-hover: #B89A5F;
    --se-ink: #0F0E0C;
    --se-body: #3B3931;
    --se-body-muted: #55524B;
    --se-line: #E2DFD8;
    --se-panel: #F7F6F3;
    --se-max: 1240px;
}
body.bsmc-single-event-body {
    margin: 0;
    padding: 0;
    background: #FFFFFF !important;   /* reclaims from body.bsmc-mhome dark bg if any */
    color: var(--se-ink);
    font-size: 17px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: clip;
}
body.bsmc-single-event-body * { box-sizing: border-box; }
body.bsmc-single-event-body img { max-width: 100%; display: block; }
html body.bsmc-single-event-body a:hover { color: var(--se-accent); }

/* Kill any BB parent chrome that might slip through — sidebars,
   admin bar spacers, buddypanel — since we bypass get_header/get_footer
   nothing else should render, but belt-and-braces. */
body.bsmc-single-event-body .buddypanel,
body.bsmc-single-event-body .site-header,
body.bsmc-single-event-body .site-footer,
body.bsmc-single-event-body #wpadminbar,
body.bsmc-single-event-body .bb-header-buttons { display: none !important; }
body.bsmc-single-event-body { padding-top: 0 !important; }

/* Top nav is now the shared home3-header template part — styles live
   in assets/css/home-public.css + assets/css/home3.css. */

/* ─── 2 · Event hero (design lines 40–73) ─────────────────────── */
.bsmc-se-hero {
    background: var(--se-ink);
    color: #FFFFFF;
}
.bsmc-se-hero__inner {
    max-width: var(--se-max);
    margin: 0 auto;
    padding: 0 clamp(20px, 4vw, 40px);
}
.bsmc-se-hero__back {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin: 26px 0 0;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6) !important;
}
.bsmc-se-hero__back:hover { color: var(--se-accent) !important; }
.bsmc-se-hero__back-arrow { font-size: 15px; line-height: 1; }

.bsmc-se-hero__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: clamp(28px, 4vw, 56px);
    align-items: center;
    padding: clamp(28px, 4vw, 44px) 0 clamp(48px, 6vw, 76px);
}
.bsmc-se-hero__copy { min-width: 0; }

.bsmc-se-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 22px;
}
.bsmc-se-badge {
    font-size: 13px;
    letter-spacing: 0.16em;
    padding: 6px 11px;
    font-weight: 400;
    line-height: 1.2;
}
.bsmc-se-badge--filled {
    background: var(--se-accent);
    color: var(--se-ink) !important;
    -webkit-text-fill-color: var(--se-ink) !important;
}
.bsmc-se-badge--outline {
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #FFFFFF !important;
    -webkit-text-fill-color: #FFFFFF !important;
}

.bsmc-se-title {
    margin: 0 0 14px;
    font-size: clamp(44px, 6.4vw, 88px);
    line-height: 0.9;
    letter-spacing: 0.005em;
    color: #FFFFFF !important;
    -webkit-text-fill-color: #FFFFFF !important;
}
/* Description under the title. Sentence-case body text (not the design's
   short-caps gold kicker) — real event descriptions run long, so a caps
   label reads poorly. Matches .bsmc-ec-card__subtitle on the calendar. */
.bsmc-se-subtitle {
    margin: 0 0 28px;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: 0;
    text-transform: none;
    color: rgba(255, 255, 255, 0.85) !important;
    -webkit-text-fill-color: rgba(255, 255, 255, 0.85) !important;
}

.bsmc-se-facts {
    margin: 0 0 32px;
    padding: 20px 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}
.bsmc-se-facts li {
    display: flex;
    gap: 12px;
    font-size: 17px;
    line-height: 1.35;
    color: #FFFFFF;
}
.bsmc-se-facts__dot { color: var(--se-accent); }

.bsmc-se-cta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 10px;
}
.bsmc-se-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    padding: 15px 34px;
    font-size: 19px;
    letter-spacing: 0.1em;
    line-height: 1;
    cursor: pointer;
    border: 1px solid transparent;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
    text-align: center;
}
.bsmc-se-btn--primary {
    background: #FFFFFF !important;
    color: var(--se-ink) !important;
    -webkit-text-fill-color: var(--se-ink) !important;
}
.bsmc-se-btn--primary:hover { background: var(--se-accent) !important; color: var(--se-ink) !important; -webkit-text-fill-color: var(--se-ink) !important; }
.bsmc-se-btn--ghost {
    background: transparent;
    color: #FFFFFF !important;
    -webkit-text-fill-color: #FFFFFF !important;
    border-color: rgba(255, 255, 255, 0.45);
    padding: 15px 24px;
}
.bsmc-se-btn--ghost:hover { border-color: #FFFFFF; background: rgba(255, 255, 255, 0.08); color: #FFFFFF !important; -webkit-text-fill-color: #FFFFFF !important; }
.bsmc-se-btn--icon svg { display: inline-block; }

.bsmc-se-hero__img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
}

/* ─── 2b · Add-to-Calendar dropdown ────────────────────────────── */
.bsmc-se-addcal { position: relative; }
.bsmc-se-addcal__menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 220px;
    background: #FFFFFF;
    border: 1px solid var(--se-line);
    padding: 8px 0;
    z-index: 20;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}
.bsmc-se-addcal__menu a {
    display: block;
    padding: 10px 16px;
    color: var(--se-ink) !important;
    -webkit-text-fill-color: var(--se-ink) !important;
    font-size: 15px;
    font-weight: 500;
}
.bsmc-se-addcal__menu a:hover { background: var(--se-panel); color: var(--se-accent) !important; -webkit-text-fill-color: var(--se-accent) !important; }
.bsmc-se-addcal__menu[hidden] { display: none; }

/* ─── 3 · Post body (design lines 75–103) ─────────────────────── */
.bsmc-se-body {
    background: #FFFFFF;
}
.bsmc-se-body__inner {
    max-width: 760px;
    margin: 0 auto;
    padding: clamp(48px, 7vw, 90px) clamp(20px, 4vw, 40px);
    color: var(--se-body);
}
/* Editor content — first paragraph is the standfirst, larger + inky. */
.bsmc-se-body__inner > p:first-of-type {
    margin: 0 0 26px;
    font-size: 21px;
    line-height: 1.6;
    color: var(--se-ink);
    text-wrap: pretty;
}
.bsmc-se-body__inner p {
    margin: 0 0 22px;
    font-size: 18px;
    line-height: 1.7;
    color: var(--se-body);
    text-wrap: pretty;
}
.bsmc-se-body__inner h2 {
    margin: 42px 0 16px;
    font-size: clamp(28px, 3.4vw, 42px);
    line-height: 1.0;
    color: var(--se-ink) !important;
    -webkit-text-fill-color: var(--se-ink) !important;
}
.bsmc-se-body__inner h3 {
    margin: 32px 0 14px;
    font-size: clamp(22px, 2.6vw, 30px);
    line-height: 1.1;
    color: var(--se-ink) !important;
    -webkit-text-fill-color: var(--se-ink) !important;
}
.bsmc-se-body__inner ul,
.bsmc-se-body__inner ol {
    margin: 0 0 30px;
    padding: 0 0 0 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.bsmc-se-body__inner ul li,
.bsmc-se-body__inner ol li {
    display: flex;
    gap: 12px;
    font-size: 18px;
    line-height: 1.55;
    color: var(--se-body);
}
.bsmc-se-body__inner ul li::before {
    content: "·";
    color: var(--se-accent);
    flex-shrink: 0;
}
.bsmc-se-body__inner ol { counter-reset: se; }
.bsmc-se-body__inner ol li::before {
    counter-increment: se;
    content: counter(se) ".";
    color: var(--se-accent);
    flex-shrink: 0;
    font-weight: 600;
    min-width: 20px;
}
.bsmc-se-body__inner figure {
    margin: 0 0 34px;
}
.bsmc-se-body__inner figure img,
.bsmc-se-body__inner > img,
.bsmc-se-body__inner .wp-block-image img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
}
.bsmc-se-body__inner figcaption,
.bsmc-se-body__inner .wp-block-image figcaption {
    margin: 12px 0 0;
    font-size: 14px;
    letter-spacing: 0.02em;
    color: var(--se-body-muted);
    text-align: left;
}
.bsmc-se-body__inner blockquote {
    margin: 0 0 34px;
    padding: 0 0 0 24px;
    border-left: 1px solid var(--se-accent);
}
.bsmc-se-body__inner blockquote p {
    margin: 0;
    font-family: 'Bebas Neue', Impact, sans-serif !important;
    font-size: clamp(24px, 3vw, 34px);
    line-height: 1.12;
    letter-spacing: 0.02em;
    color: var(--se-ink);
}
.bsmc-se-body__inner a {
    color: var(--se-accent) !important;
    -webkit-text-fill-color: var(--se-accent) !important;
    border-bottom: 1px solid rgba(161, 138, 85, 0.35);
}
.bsmc-se-body__inner a:hover { border-bottom-color: var(--se-accent); }

/* ─── 4 · Location widget (design lines 105–119) ──────────────── */
.bsmc-se-location {
    border-top: 1px solid var(--se-line);
    background: var(--se-panel);
}
.bsmc-se-location__inner {
    max-width: var(--se-max);
    margin: 0 auto;
    padding: clamp(40px, 5vw, 64px) clamp(20px, 4vw, 40px);
}
.bsmc-se-location__label {
    margin: 0 0 20px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--se-accent) !important;
}
.bsmc-se-location__card {
    display: block;
    max-width: 50%;
    min-width: 300px;
    border: 1px solid var(--se-line);
    background: #FFFFFF;
    color: var(--se-ink) !important;
    overflow: hidden;
    transition: border-color 0.15s ease;
}
.bsmc-se-location__card:hover { border-color: var(--se-accent); }
.bsmc-se-location__card-body {
    padding: clamp(26px, 3vw, 38px);
    display: flex;
    flex-direction: column;
    gap: 14px;
    justify-content: center;
}
.bsmc-se-location__name {
    margin: 0;
    font-size: clamp(28px, 3.2vw, 40px);
    line-height: 1.0;
    color: var(--se-ink) !important;
    -webkit-text-fill-color: var(--se-ink) !important;
}
.bsmc-se-location__addr {
    margin: 0;
    font-size: 17px;
    line-height: 1.5;
    color: var(--se-body);
}
.bsmc-se-location__link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 6px;
    font-size: 18px;
    letter-spacing: 0.1em;
    color: var(--se-accent) !important;
}

@media (max-width: 640px) {
    .bsmc-se-location__card { max-width: 100%; min-width: 0; }
}

/* Footer is now the shared home3-footer template part — styles live
   in assets/css/home3.css. */
