/* BR SITE SHARED THEME V1
   One shared public theme for homepage + all public subpages.
   Header/footer are the single visual source of truth here.
*/

:root {
    --br-green: #169447;
    --br-green-dark: #0e7335;
    --br-green-soft: #eaf6ee;
    --br-navy: #062b55;
    --br-navy-deep: #031d3a;
    --br-ink: #142235;
    --br-muted: #617082;
    --br-line: #dfe6ec;
    --br-page: #f6f8fa;
    --br-white: #fff;
}

html body.siteBody {
    background: var(--br-page) !important;
    color: var(--br-ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* ============================================================
   SHARED HEADER — source of truth for every public page
   ============================================================ */

html body.siteBody header.top,
html body.siteBody .top {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    background: #fff !important;
    border-bottom: 1px solid #edf1f4 !important;
    box-shadow: 0 5px 20px rgba(6,43,85,.035) !important;
    position: relative !important;
    z-index: 30 !important;
}

html body.siteBody header.top .wrap.nav,
html body.siteBody .top .wrap.nav {
    width: min(1180px, calc(100% - 40px)) !important;
    min-height: 112px !important;
    margin: 0 auto !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 34px !important;
}

html body.siteBody header.top .brand,
html body.siteBody .top .brand {
    display: inline-flex !important;
    align-items: center !important;
    gap: 13px !important;
    min-width: 300px !important;
    color: var(--br-navy) !important;
    text-decoration: none !important;
    opacity: 1 !important;
    visibility: visible !important;
}

html body.siteBody header.top .brand .logoMark,
html body.siteBody .top .brand .logoMark {
    display: block !important;
    width: 72px !important;
    height: 72px !important;
    flex: 0 0 72px !important;
    font-size: 0 !important;
    line-height: 0 !important;
    color: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: var(--br-green) !important;
    -webkit-mask: url("/assets/images/home/bractwo-logo-mark.png") center/contain no-repeat !important;
    mask: url("/assets/images/home/bractwo-logo-mark.png") center/contain no-repeat !important;
}

html body.siteBody header.top .brand > span:last-child,
html body.siteBody .top .brand > span:last-child {
    display: flex !important;
    flex-direction: column !important;
}

html body.siteBody header.top .brand b,
html body.siteBody .top .brand b {
    display: block !important;
    color: var(--br-green) !important;
    -webkit-text-fill-color: var(--br-green) !important;
    text-transform: uppercase !important;
    font-size: 24px !important;
    font-weight: 820 !important;
    line-height: .94 !important;
    letter-spacing: -.6px !important;
    max-width: 190px;
}

html body.siteBody header.top .brand small,
html body.siteBody .top .brand small {
    display: block !important;
    color: #667484 !important;
    -webkit-text-fill-color: #667484 !important;
    margin-top: 7px !important;
    font-size: 12px !important;
    line-height: 1.25 !important;
}

/* Very subtle shared menu panel — accepted homepage direction. */
html body.siteBody header.top nav,
html body.siteBody .top nav {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 4px !important;
    flex-wrap: wrap !important;
    margin-left: auto !important;
    padding: 6px 8px !important;
    border: 1px solid rgba(23,83,117,.09) !important;
    border-radius: 13px !important;
    background: linear-gradient(
        100deg,
        rgba(22,148,71,.055) 0%,
        rgba(255,255,255,.76) 46%,
        rgba(6,43,85,.050) 100%
    ) !important;
    box-shadow:
        0 5px 16px rgba(6,43,85,.035),
        inset 0 1px 0 rgba(255,255,255,.82) !important;
}

html body.siteBody header.top nav a,
html body.siteBody header.top nav a:link,
html body.siteBody header.top nav a:visited,
html body.siteBody .top nav a,
html body.siteBody .top nav a:link,
html body.siteBody .top nav a:visited {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 37px !important;
    padding: 0 13px !important;
    border-radius: 7px !important;
    color: var(--br-navy) !important;
    -webkit-text-fill-color: var(--br-navy) !important;
    background: transparent !important;
    text-decoration: none !important;
    font-weight: 690 !important;
    font-size: 14px !important;
    box-shadow: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    transition: background .16s ease, color .16s ease, transform .16s ease !important;
}

html body.siteBody header.top nav a:hover,
html body.siteBody header.top nav a:focus-visible,
html body.siteBody .top nav a:hover,
html body.siteBody .top nav a:focus-visible {
    color: var(--br-green-dark) !important;
    -webkit-text-fill-color: var(--br-green-dark) !important;
    background: rgba(255,255,255,.80) !important;
    transform: translateY(-1px) !important;
}

/* ============================================================
   SHARED SUBPAGE FRAME
   Homepage is not affected because its direct child is .brHomeV1,
   not .wrap.
   ============================================================ */

html body.siteBody > main > .wrap {
    width: min(1180px, calc(100% - 40px)) !important;
    margin: 28px auto 46px !important;
    padding: clamp(26px, 4vw, 42px) !important;
    box-sizing: border-box;
    background:
        linear-gradient(180deg, rgba(255,255,255,.995), rgba(255,255,255,.97)) !important;
    border: 1px solid var(--br-line) !important;
    border-radius: 17px !important;
    box-shadow: 0 14px 42px rgba(8,42,73,.055) !important;
}

/* Some historical detail views use a nested <main class="wrap article">. */
html body.siteBody > main > main.wrap {
    display: block;
}

html body.siteBody > main > .wrap > .eyebrow,
html body.siteBody > main > .wrap > p.eyebrow,
html body.siteBody > main > .wrap .eyebrow.green {
    display: inline-block;
    margin: 0 0 10px !important;
    color: var(--br-green) !important;
    font-size: 11px !important;
    line-height: 1 !important;
    font-weight: 820 !important;
    letter-spacing: .10em !important;
    text-transform: uppercase !important;
}

html body.siteBody > main > .wrap > h1,
html body.siteBody > main > .wrap > div:first-child > h1 {
    max-width: 900px;
    margin: 0 0 13px !important;
    color: var(--br-navy) !important;
    font-size: clamp(30px, 4.2vw, 48px) !important;
    line-height: 1.04 !important;
    letter-spacing: -1.25px !important;
    font-weight: 820 !important;
}

html body.siteBody > main > .wrap > h1::after,
html body.siteBody > main > .wrap > div:first-child > h1::after {
    content: "";
    display: block;
    width: 58px;
    height: 4px;
    margin-top: 16px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--br-green), #60ce80);
}

html body.siteBody > main .articleDate,
html body.siteBody > main .blogMeta,
html body.siteBody > main .weeklyMeta {
    color: #758393 !important;
    font-size: 12px !important;
    line-height: 1.5 !important;
}

html body.siteBody > main .muted {
    color: var(--br-muted) !important;
}

/* ============================================================
   ARTICLE / CMS CONTENT
   ============================================================ */

html body.siteBody > main .prose {
    max-width: 920px;
    color: #24364a !important;
    font-size: 16px !important;
    line-height: 1.76 !important;
}

html body.siteBody > main .prose p {
    margin: 0 0 1.15em;
}

html body.siteBody > main .prose h2,
html body.siteBody > main .prose h3,
html body.siteBody > main .prose h4 {
    color: var(--br-navy) !important;
    line-height: 1.18 !important;
    letter-spacing: -.35px;
}

html body.siteBody > main .prose h2 {
    margin: 1.6em 0 .55em !important;
    font-size: 27px !important;
}

html body.siteBody > main .prose h3 {
    margin: 1.4em 0 .5em !important;
    font-size: 21px !important;
}

html body.siteBody > main .prose a,
html body.siteBody > main .articleSource a {
    color: var(--br-green-dark) !important;
    text-decoration-color: rgba(14,115,53,.35);
    text-underline-offset: 3px;
}

html body.siteBody > main .prose a:hover,
html body.siteBody > main .articleSource a:hover {
    color: var(--br-navy) !important;
}

html body.siteBody > main .prose blockquote {
    margin: 1.5em 0 !important;
    padding: 18px 22px !important;
    border-left: 4px solid var(--br-green) !important;
    border-radius: 0 10px 10px 0;
    background: linear-gradient(90deg, #eef8f1, #f7f9fb) !important;
    color: var(--br-navy) !important;
}

html body.siteBody > main .prose img {
    max-width: 100% !important;
    height: auto !important;
    border-radius: 12px;
}

html body.siteBody > main .prose table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    border-collapse: collapse;
}

html body.siteBody > main .prose th,
html body.siteBody > main .prose td {
    padding: 9px 11px;
    border: 1px solid var(--br-line);
}

html body.siteBody > main .prose th {
    background: #f0f5f8;
    color: var(--br-navy);
}

html body.siteBody > main .backLink,
html body.siteBody > main .curiosityBackBottom a,
html body.siteBody > main .weeklyBackBottom a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--br-green-dark) !important;
    text-decoration: none !important;
    font-weight: 720;
}

html body.siteBody > main .backLink {
    margin-bottom: 20px;
}

/* ============================================================
   ARCHIVES / CARDS
   ============================================================ */

html body.siteBody > main .blogList,
html body.siteBody > main .weeklyList,
html body.siteBody > main .curiosityGrid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 16px !important;
    margin-top: 26px !important;
}

html body.siteBody > main .blogCard,
html body.siteBody > main .weeklyCard,
html body.siteBody > main .curiosityCard {
    position: relative;
    min-width: 0;
    padding: 21px 22px !important;
    border: 1px solid var(--br-line) !important;
    border-radius: 13px !important;
    background: #fff !important;
    box-shadow: 0 7px 22px rgba(8,42,73,.035);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

html body.siteBody > main .blogCard::before,
html body.siteBody > main .weeklyCard::before,
html body.siteBody > main .curiosityCard::before {
    content: "";
    position: absolute;
    left: 0;
    top: 17px;
    bottom: 17px;
    width: 3px;
    border-radius: 0 99px 99px 0;
    background: var(--br-green);
    opacity: .8;
}

html body.siteBody > main .blogCard:hover,
html body.siteBody > main .weeklyCard:hover,
html body.siteBody > main .curiosityCard:hover {
    transform: translateY(-2px);
    border-color: #cddfd3 !important;
    box-shadow: 0 13px 30px rgba(8,42,73,.075);
}

html body.siteBody > main .blogCard h2,
html body.siteBody > main .weeklyCard h2,
html body.siteBody > main .curiosityCard h2 {
    margin: 8px 0 9px !important;
    color: var(--br-navy) !important;
    font-size: 19px !important;
    line-height: 1.2 !important;
}

html body.siteBody > main .blogCard h2 a,
html body.siteBody > main .weeklyCard h2 a,
html body.siteBody > main .curiosityCard h2 a {
    color: inherit !important;
    text-decoration: none !important;
}

html body.siteBody > main .blogCard h2 a:hover,
html body.siteBody > main .weeklyCard h2 a:hover,
html body.siteBody > main .curiosityCard h2 a:hover {
    color: var(--br-green-dark) !important;
}

html body.siteBody > main .blogCard p,
html body.siteBody > main .weeklyCard p,
html body.siteBody > main .curiosityCard p {
    color: var(--br-muted) !important;
    font-size: 13px !important;
    line-height: 1.55 !important;
}

html body.siteBody > main .blogCard > a:last-child,
html body.siteBody > main .weeklyMore,
html body.siteBody > main .curiosityMore {
    color: var(--br-green-dark) !important;
    text-decoration: none !important;
    font-size: 12px !important;
    font-weight: 760 !important;
}

html body.siteBody > main .curiosityNumber {
    display: inline-flex;
    padding: 4px 8px;
    border-radius: 999px;
    background: var(--br-green-soft);
    color: var(--br-green-dark);
    font-size: 10px;
    font-weight: 800;
}

/* Golden thoughts keep one-column editorial layout. */
html body.siteBody > main .goldenThoughtList {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 13px !important;
    margin-top: 25px !important;
}

html body.siteBody > main .goldenThoughtItem {
    padding: 20px 24px !important;
    border-left: 4px solid var(--br-green) !important;
    border-radius: 0 12px 12px 0 !important;
    background: linear-gradient(90deg,#f0f7f2,#f7f9fb) !important;
}

html body.siteBody > main .goldenThoughtItem blockquote {
    margin: 0 !important;
    color: var(--br-navy) !important;
    font-size: 19px !important;
    line-height: 1.5 !important;
}

html body.siteBody > main .goldenThoughtSource {
    margin: 9px 0 0 !important;
    color: var(--br-muted) !important;
    font-size: 12px !important;
}

/* Gallery cards on trip pages. */
html body.siteBody > main .newsGrid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0,1fr)) !important;
    gap: 13px !important;
}

html body.siteBody > main .newsGrid .card {
    overflow: hidden;
    padding: 9px !important;
    border: 1px solid var(--br-line) !important;
    border-radius: 12px !important;
    background: #fff !important;
}

/* Pager + states */
html body.siteBody > main .blogPager {
    margin-top: 25px !important;
    padding: 13px 15px !important;
    display: grid !important;
    grid-template-columns: 1fr auto 1fr !important;
    gap: 14px !important;
    align-items: center !important;
    border: 1px solid var(--br-line);
    border-radius: 11px;
    background: #f7f9fb;
    color: var(--br-muted);
    font-size: 12px;
}

html body.siteBody > main .blogPager span:last-child {
    text-align: right;
}

html body.siteBody > main .blogPager a {
    color: var(--br-green-dark) !important;
    text-decoration: none !important;
    font-weight: 720;
}

html body.siteBody > main .alert {
    padding: 14px 16px !important;
    border-radius: 10px !important;
    border: 1px solid #d9e3e8 !important;
    background: #f5f8fa !important;
    color: #435569 !important;
}

html body.siteBody > main .alert.error {
    border-color: #efc5ca !important;
    background: #fff4f5 !important;
    color: #7b2933 !important;
}

html body.siteBody > main .blogStatus {
    display: inline-flex;
    margin-left: 7px;
    padding: 3px 7px;
    border-radius: 999px;
    background: #fff1d8;
    color: #875d08;
    font-size: 9px;
    font-weight: 800;
}

/* ============================================================
   SHARED FOOTER — current accepted compact version
   ============================================================ */

html body.siteBody footer {
    position: relative !important;
    margin-top: 0 !important;
    padding-top: 0 !important;
    border-top: 3px solid var(--br-green) !important;
    background:
        radial-gradient(circle at 8% 18%,rgba(22,148,71,.12),transparent 27%),
        linear-gradient(135deg,#062f5a 0%,#031d3a 74%) !important;
    color: rgba(255,255,255,.82) !important;
    overflow: hidden !important;
}

html body.siteBody footer::after {
    content: "" !important;
    position: absolute !important;
    right: -34px !important;
    top: -38px !important;
    width: 185px !important;
    height: 185px !important;
    opacity: .018 !important;
    background: #fff !important;
    -webkit-mask: url("/assets/images/home/bractwo-logo-mark.png") center/contain no-repeat !important;
    mask: url("/assets/images/home/bractwo-logo-mark.png") center/contain no-repeat !important;
    pointer-events: none !important;
}

html body.siteBody footer .wrap.foot.footRich {
    position: relative !important;
    z-index: 2 !important;
    width: min(1180px,calc(100% - 40px)) !important;
    min-height: 0 !important;
    margin: 0 auto !important;
    padding: 18px 0 19px !important;
    display: grid !important;
    grid-template-columns:
        minmax(330px,1.55fr)
        minmax(155px,.62fr)
        minmax(210px,.82fr) !important;
    align-items: start !important;
    gap: 44px !important;
}

html body.siteBody footer .footBrand {
    position: relative !important;
    min-height: 0 !important;
    padding: 0 0 0 72px !important;
    margin: 0 !important;
    align-self: start !important;
    color: rgba(255,255,255,.78) !important;
}

html body.siteBody footer .footBrand::before {
    content: "" !important;
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    width: 55px !important;
    height: 55px !important;
    background: #4bd273 !important;
    -webkit-mask: url("/assets/images/home/bractwo-logo-mark.png") center/contain no-repeat !important;
    mask: url("/assets/images/home/bractwo-logo-mark.png") center/contain no-repeat !important;
}

html body.siteBody footer .footBrand strong {
    display: block !important;
    margin-bottom: 3px !important;
    color: #5bdd80 !important;
    font-size: 18px !important;
    line-height: 1.15 !important;
}

html body.siteBody footer .footBrand > span {
    color: rgba(255,255,255,.73) !important;
    font-size: 12px !important;
}

html body.siteBody footer .footBrand p {
    max-width: 390px !important;
    margin: 9px 0 0 !important;
    color: rgba(255,255,255,.61) !important;
    font-size: 12px !important;
    line-height: 1.45 !important;
}

html body.siteBody footer .footGroup {
    position: relative !important;
    min-height: 0 !important;
    padding: 0 0 0 27px !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    align-self: start !important;
}

html body.siteBody footer .footGroup::before {
    content: "" !important;
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    bottom: 0 !important;
    width: 1px !important;
    background: linear-gradient(
        180deg,
        rgba(255,255,255,0),
        rgba(255,255,255,.15) 22%,
        rgba(22,148,71,.24) 72%,
        rgba(255,255,255,0)
    ) !important;
}

html body.siteBody footer .footGroupTitle {
    display: block !important;
    margin: 0 0 9px !important;
    padding: 0 !important;
    color: #68df88 !important;
    font-size: 10px !important;
    font-weight: 800 !important;
    line-height: 1.15 !important;
    letter-spacing: .10em !important;
    text-transform: uppercase !important;
}

html body.siteBody footer .footGroup nav {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 5px !important;
}

html body.siteBody footer .footGroup nav a,
html body.siteBody footer .footGroup nav a:link,
html body.siteBody footer .footGroup nav a:visited {
    position: relative !important;
    padding-left: 12px !important;
    color: rgba(255,255,255,.86) !important;
    -webkit-text-fill-color: rgba(255,255,255,.86) !important;
    text-decoration: none !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    line-height: 1.35 !important;
    transition: color .15s ease, transform .15s ease !important;
}

html body.siteBody footer .footGroup nav a::before {
    content: "" !important;
    position: absolute !important;
    left: 0 !important;
    top: .55em !important;
    width: 4px !important;
    height: 4px !important;
    border-radius: 50% !important;
    background: var(--br-green) !important;
    opacity: .85 !important;
}

html body.siteBody footer .footGroup nav a:hover {
    color: #74e491 !important;
    -webkit-text-fill-color: #74e491 !important;
    transform: translateX(2px) !important;
}

html body.siteBody footer .footBottom {
    position: relative !important;
    z-index: 2 !important;
    border-top: 1px solid rgba(255,255,255,.10) !important;
    background: rgba(0,0,0,.055) !important;
}

html body.siteBody footer .footBottom .wrap {
    width: min(1180px,calc(100% - 40px)) !important;
    min-height: 35px !important;
    margin: 0 auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 24px !important;
    color: rgba(255,255,255,.48) !important;
    font-size: 10px !important;
}

html body.siteBody footer .footBottom a,
html body.siteBody footer .footBottom a:visited {
    color: rgba(255,255,255,.68) !important;
    -webkit-text-fill-color: rgba(255,255,255,.68) !important;
    text-decoration: none !important;
}

html body.siteBody footer .footBottom a:hover {
    color: #65dc86 !important;
    -webkit-text-fill-color: #65dc86 !important;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 980px) {
    html body.siteBody header.top .wrap.nav,
    html body.siteBody .top .wrap.nav {
        min-height: 96px !important;
        gap: 18px !important;
    }

    html body.siteBody header.top .brand,
    html body.siteBody .top .brand {
        min-width: 240px !important;
    }

    html body.siteBody header.top .brand .logoMark,
    html body.siteBody .top .brand .logoMark {
        width: 58px !important;
        height: 58px !important;
        flex-basis: 58px !important;
    }

    html body.siteBody header.top .brand b,
    html body.siteBody .top .brand b {
        font-size: 20px !important;
    }

    html body.siteBody header.top nav,
    html body.siteBody .top nav {
        gap: 2px !important;
        padding: 5px 6px !important;
    }

    html body.siteBody header.top nav a,
    html body.siteBody .top nav a {
        min-height: 35px !important;
        padding: 0 10px !important;
        font-size: 13px !important;
    }

    html body.siteBody footer .wrap.foot.footRich {
        grid-template-columns: minmax(270px,1.3fr) minmax(145px,.65fr) minmax(185px,.8fr) !important;
        gap: 26px !important;
    }

    html body.siteBody footer .footGroup {
        padding-left: 20px !important;
    }
}

@media (max-width: 760px) {
    html body.siteBody header.top .wrap.nav,
    html body.siteBody .top .wrap.nav {
        width: min(100% - 24px,1180px) !important;
        min-height: auto !important;
        padding: 14px 0 !important;
        flex-direction: column !important;
        align-items: flex-start !important;
    }

    html body.siteBody header.top .brand .logoMark,
    html body.siteBody .top .brand .logoMark {
        width: 52px !important;
        height: 52px !important;
        flex-basis: 52px !important;
    }

    html body.siteBody header.top nav,
    html body.siteBody .top nav {
        width: 100% !important;
        margin-left: 0 !important;
        justify-content: flex-start !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    html body.siteBody header.top nav::-webkit-scrollbar,
    html body.siteBody .top nav::-webkit-scrollbar {
        display: none;
    }

    html body.siteBody header.top nav a,
    html body.siteBody .top nav a {
        flex: 0 0 auto !important;
    }

    html body.siteBody > main > .wrap {
        width: min(100% - 24px,1180px) !important;
        margin-top: 16px !important;
        margin-bottom: 28px !important;
        padding: 23px 20px !important;
        border-radius: 13px !important;
    }

    html body.siteBody > main .blogList,
    html body.siteBody > main .weeklyList,
    html body.siteBody > main .curiosityGrid {
        grid-template-columns: 1fr !important;
    }

    html body.siteBody > main .newsGrid {
        grid-template-columns: repeat(2,minmax(0,1fr)) !important;
    }

    html body.siteBody > main .blogPager {
        grid-template-columns: 1fr !important;
    }

    html body.siteBody > main .blogPager span:last-child {
        text-align: left;
    }

    html body.siteBody footer .wrap.foot.footRich {
        width: min(100% - 32px,1180px) !important;
        min-height: auto !important;
        padding: 21px 0 19px !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 22px 20px !important;
    }

    html body.siteBody footer .footBrand {
        grid-column: 1/-1 !important;
    }

    html body.siteBody footer .footGroup {
        padding-left: 17px !important;
    }

    html body.siteBody footer .footBottom .wrap {
        width: min(100% - 32px,1180px) !important;
        min-height: 0 !important;
        padding: 8px 0 !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 5px !important;
    }
}

@media (max-width: 520px) {
    html body.siteBody > main .newsGrid {
        grid-template-columns: 1fr !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    html body.siteBody header.top nav a,
    html body.siteBody .top nav a,
    html body.siteBody > main .blogCard,
    html body.siteBody > main .weeklyCard,
    html body.siteBody > main .curiosityCard,
    html body.siteBody footer .footGroup nav a {
        transition: none !important;
    }
}


/* ============================================================
   BR SITE SHARED THEME V2 — WIDE SUBPAGE SHELL
   Desktop composition matches header width, while readable text
   stays in the primary column. The right rail is intentionally
   content-neutral for now and can later host contextual modules.
   ============================================================ */

html body.siteBody main.siteMainSubpage {
    width: min(1180px, calc(100% - 40px)) !important;
    margin: 28px auto 46px !important;
    padding: 0 !important;
    display: grid !important;
    grid-template-columns: minmax(0, 820px) minmax(240px, 1fr) !important;
    gap: 28px !important;
    align-items: start !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

/* Existing view .wrap becomes the readable primary panel. */
html body.siteBody main.siteMainSubpage > .wrap {
    grid-column: 1 !important;
    grid-row: 1 !important;
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
    padding: clamp(28px, 3.3vw, 40px) !important;
    box-sizing: border-box !important;
    background:
        linear-gradient(180deg, rgba(255,255,255,.995), rgba(255,255,255,.975)) !important;
    border: 1px solid var(--br-line) !important;
    border-radius: 17px !important;
    box-shadow: 0 14px 42px rgba(8,42,73,.055) !important;
}

/* A quiet right-side visual rail. No fake content is inserted. */
html body.siteBody main.siteMainSubpage::after {
    content: "" !important;
    grid-column: 2 !important;
    grid-row: 1 !important;
    display: block !important;
    min-height: 205px !important;
    border: 1px solid rgba(20,75,108,.08) !important;
    border-radius: 17px !important;
    background:
        radial-gradient(circle at 80% 18%, rgba(22,148,71,.12), transparent 32%),
        radial-gradient(circle at 15% 84%, rgba(6,43,85,.08), transparent 35%),
        linear-gradient(145deg, rgba(255,255,255,.92), rgba(239,245,248,.95)) !important;
    box-shadow: 0 12px 34px rgba(8,42,73,.035) !important;
    -webkit-mask-image: linear-gradient(#000,#000);
}

/* Add the brand watermark inside the rail without adding text/content. */
html body.siteBody main.siteMainSubpage {
    position: relative !important;
}

html body.siteBody main.siteMainSubpage::before {
    content: "" !important;
    position: absolute !important;
    right: 56px !important;
    top: 54px !important;
    z-index: 1 !important;
    width: 105px !important;
    height: 105px !important;
    opacity: .075 !important;
    background: var(--br-green) !important;
    -webkit-mask: url("/assets/images/home/bractwo-logo-mark.png") center/contain no-repeat !important;
    mask: url("/assets/images/home/bractwo-logo-mark.png") center/contain no-repeat !important;
    pointer-events: none !important;
}

/* Primary text remains readable rather than stretching across the full panel. */
html body.siteBody main.siteMainSubpage > .wrap > .prose,
html body.siteBody main.siteMainSubpage > .wrap > .articleBody,
html body.siteBody main.siteMainSubpage > .wrap > .pageBody {
    max-width: 740px !important;
}

/* CMS page headings get slightly more breathing room in the wider composition. */
html body.siteBody main.siteMainSubpage > .wrap > h1,
html body.siteBody main.siteMainSubpage > .wrap > div:first-child > h1 {
    max-width: 760px !important;
}

/* Archive/list pages keep their internal card grids within the primary column. */
html body.siteBody main.siteMainSubpage .blogList,
html body.siteBody main.siteMainSubpage .weeklyList,
html body.siteBody main.siteMainSubpage .curiosityGrid {
    grid-template-columns: 1fr !important;
}

/* The rail is a desktop/tablet composition aid. On narrower layouts,
   collapse to one column and let content breathe. */
@media (max-width: 1020px) {
    html body.siteBody main.siteMainSubpage {
        grid-template-columns: minmax(0, 1fr) 220px !important;
        gap: 20px !important;
    }

    html body.siteBody main.siteMainSubpage::before {
        right: 53px !important;
        width: 86px !important;
        height: 86px !important;
    }
}

@media (max-width: 860px) {
    html body.siteBody main.siteMainSubpage {
        width: min(100% - 24px, 1180px) !important;
        margin-top: 16px !important;
        margin-bottom: 28px !important;
        grid-template-columns: 1fr !important;
        gap: 0 !important;
    }

    html body.siteBody main.siteMainSubpage > .wrap {
        grid-column: 1 !important;
        width: 100% !important;
        padding: 23px 20px !important;
        border-radius: 13px !important;
    }

    html body.siteBody main.siteMainSubpage::after,
    html body.siteBody main.siteMainSubpage::before {
        display: none !important;
    }
}
