/* Beranda redesign. Prefix `bd-` keeps it isolated from the legacy template (bootstrap + main.css). */

:root {
    --bd-bg: #f7f6f2;
    --bd-surface: #ffffff;
    --bd-ink: #18201b;
    --bd-muted: #5b655e;
    --bd-line: #e3e1d9;
    --bd-line-strong: #cfccc1;
    --bd-hover: rgba(24, 32, 27, .05);
    --bd-primary: #1e5b3a;
    --bd-primary-hover: #174a2f;
    --bd-accent: #b7832f;
    --bd-skeleton: #eae8e1;
    --bd-primary-tint: #e7efe9;
    --bd-accent-soft: #e3cfa6;
    --bd-radius: 12px;
    --bd-font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --bd-ease: cubic-bezier(.2, .7, .2, 1);
    --bd-header-h: 72px;
}

.bd-container {
    width: 100%;
    max-width: 1200px;
    margin-inline: auto;
    padding-inline: 20px;
}

/* ---------- Loader ---------- */
.bd-loader { display: none; }
.js .bd-loader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: grid;
    place-items: center;
    background: var(--bd-bg);
    transition: opacity .35s var(--bd-ease), visibility .35s;
    animation: bd-hide 0s 5s forwards; /* failsafe if JS breaks */
}
.bd-loader.is-done { opacity: 0; visibility: hidden; }
.bd-loader__inner { display: grid; justify-items: center; gap: 18px; }
.bd-loader__inner img { width: 56px; height: 56px; object-fit: contain; }
.bd-loader__bar {
    position: relative;
    width: 120px;
    height: 2px;
    overflow: hidden;
    border-radius: 2px;
    background: var(--bd-line);
}
.bd-loader__bar::after {
    content: "";
    position: absolute;
    inset: 0;
    width: 40%;
    background: var(--bd-primary);
    animation: bd-bar 1s var(--bd-ease) infinite;
}
@keyframes bd-bar { from { transform: translateX(-100%); } to { transform: translateX(250%); } }
@keyframes bd-hide { to { opacity: 0; visibility: hidden; } }

/* ---------- Lazy image + skeleton ---------- */
.bd-img {
    position: relative;
    display: block;
    overflow: hidden;
    background: var(--bd-skeleton);
}
.bd-img::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .5), transparent);
    transform: translateX(-100%);
    animation: bd-shimmer 1.4s infinite;
}
.bd-img img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity .5s var(--bd-ease);
}
.bd-img.is-loaded::before,
.bd-img.is-error::before { display: none; }
.bd-img.is-loaded img { opacity: 1; }
@keyframes bd-shimmer { to { transform: translateX(100%); } }

/* ---------- Buttons ---------- */
.bd-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 46px;
    padding: 0 22px;
    border: 1px solid transparent;
    border-radius: 8px;
    font: 600 15px/1 var(--bd-font);
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color .2s, border-color .2s, color .2s, transform .15s;
}
.bd-btn:hover { text-decoration: none; }
.bd-btn:active { transform: translateY(1px); }
.bd-btn--primary,
.bd-btn--primary:hover,
.bd-btn--primary:focus { color: #fff; }
.bd-btn--primary { background: var(--bd-primary); }
.bd-btn--primary:hover { background: var(--bd-primary-hover); }
.bd-btn--primary svg { transition: transform .2s var(--bd-ease); }
.bd-btn--primary:hover svg { transform: translateX(2px); }
.bd-btn--ghost { color: var(--bd-ink); background: transparent; border-color: var(--bd-line-strong); }
.bd-btn--ghost:hover { color: var(--bd-ink); border-color: var(--bd-ink); }

:where(.bd-header, .bd-hero) :focus-visible {
    outline: 2px solid var(--bd-primary);
    outline-offset: 2px;
}

/* ---------- Header ---------- */
.bd-header {
    position: sticky;
    top: 0;
    z-index: 100;
    font-family: var(--bd-font);
    /* white bar + thin green top rule so the header reads as its own layer over the cream page */
    background: rgba(255, 255, 255, .96);
    backdrop-filter: saturate(1.4) blur(8px);
    -webkit-backdrop-filter: saturate(1.4) blur(8px);
    border-top: 3px solid var(--bd-primary);
    border-bottom: 1px solid var(--bd-line);
    transition: box-shadow .25s;
}
.bd-header.is-scrolled,
.bd-header.is-open { box-shadow: 0 6px 24px -12px rgba(20, 30, 24, .18); }
.bd-header__inner {
    display: flex;
    align-items: center;
    gap: 24px;
    height: var(--bd-header-h);
}

.bd-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    margin-right: auto;
    color: var(--bd-ink);
    text-decoration: none;
}
.bd-brand:hover { color: var(--bd-ink); text-decoration: none; }
.bd-brand img { flex: none; width: 40px; height: 40px; object-fit: contain; }
.bd-brand span { min-width: 0; }
.bd-brand strong { display: block; font-size: 16px; font-weight: 700; line-height: 1.25; }
.bd-brand small {
    display: block;
    overflow: hidden;
    font-size: 12.5px;
    line-height: 1.35;
    color: var(--bd-muted);
    white-space: nowrap;
    text-overflow: ellipsis;
}

.bd-nav { display: flex; align-items: center; gap: 16px; }
.bd-nav ul { margin: 0; padding: 0; list-style: none; }
.bd-nav > ul { display: flex; gap: 2px; }
.bd-nav a,
.bd-nav__dropdown > button {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 8px 12px;
    border: 0;
    border-radius: 6px;
    background: none;
    font: 500 14.5px/1.4 var(--bd-font);
    color: var(--bd-ink);
    text-decoration: none;
    cursor: pointer;
    transition: background-color .15s, color .15s;
}
.bd-nav a:hover,
.bd-nav__dropdown > button:hover { background: var(--bd-hover); color: var(--bd-ink); text-decoration: none; }
.bd-nav a[aria-current="page"] { color: var(--bd-primary); font-weight: 600; }

.bd-nav__dropdown { position: relative; }
.bd-nav__dropdown svg { transition: transform .2s var(--bd-ease); }
.bd-nav__dropdown.is-open svg { transform: rotate(180deg); }
.bd-nav__dropdown ul {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 210px;
    padding: 6px;
    background: var(--bd-surface);
    border: 1px solid var(--bd-line);
    border-radius: 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity .18s var(--bd-ease), transform .18s var(--bd-ease), visibility .18s;
}
.bd-nav__dropdown ul::before { content: ""; position: absolute; inset: -9px 0 auto; height: 9px; } /* hover bridge */
.bd-nav__dropdown ul a { display: flex; width: 100%; }
.bd-nav__dropdown:hover ul,
.bd-nav__dropdown:focus-within ul,
.bd-nav__dropdown.is-open ul { opacity: 1; visibility: visible; transform: none; }

.bd-nav .bd-nav__cta,
.bd-nav .bd-nav__cta:hover { height: 40px; padding: 0 16px; font-size: 14px; color: #fff; }
.bd-nav .bd-nav__cta { background: var(--bd-primary); }
.bd-nav .bd-nav__cta:hover { background: var(--bd-primary-hover); }

.bd-nav-toggle { display: none; }

@media (max-width: 991.98px) {
    .bd-nav-toggle {
        display: inline-grid;
        place-items: center;
        flex: none;
        width: 44px;
        height: 44px;
        padding: 0;
        background: var(--bd-surface);
        border: 1px solid var(--bd-line);
        border-radius: 8px;
        cursor: pointer;
    }
    .bd-nav-toggle span,
    .bd-nav-toggle span::before,
    .bd-nav-toggle span::after {
        display: block;
        width: 18px;
        height: 1.5px;
        background: var(--bd-ink);
        transition: transform .2s var(--bd-ease), background-color .2s;
    }
    .bd-nav-toggle span { position: relative; }
    .bd-nav-toggle span::before,
    .bd-nav-toggle span::after { content: ""; position: absolute; left: 0; }
    .bd-nav-toggle span::before { top: -6px; }
    .bd-nav-toggle span::after { top: 6px; }
    .is-open .bd-nav-toggle span { background: transparent; }
    .is-open .bd-nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
    .is-open .bd-nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

    .bd-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        max-height: calc(100dvh - var(--bd-header-h));
        overflow-y: auto;
        padding: 8px 20px 20px;
        background: var(--bd-surface);
        border-bottom: 1px solid var(--bd-line);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-6px);
        transition: opacity .2s var(--bd-ease), transform .2s var(--bd-ease), visibility .2s;
    }
    .bd-header.is-open .bd-nav { opacity: 1; visibility: visible; transform: none; }
    .bd-nav > ul { flex-direction: column; }
    .bd-nav > ul > li + li { border-top: 1px solid var(--bd-line); }
    .bd-nav a,
    .bd-nav__dropdown > button { width: 100%; justify-content: space-between; padding: 14px 4px; font-size: 15.5px; border-radius: 0; }
    .bd-nav a:hover,
    .bd-nav__dropdown > button:hover { background: none; color: var(--bd-primary); }
    .bd-nav__dropdown ul {
        position: static;
        display: none;
        min-width: 0;
        padding: 0 0 8px 12px;
        background: none;
        border: 0;
        opacity: 1;
        visibility: visible;
        transform: none;
    }
    .bd-nav__dropdown ul a { padding: 10px 4px; font-size: 15px; color: var(--bd-muted); }
    .bd-nav__dropdown.is-open ul { display: block; }
    .bd-nav .bd-nav__cta,
    .bd-nav .bd-nav__cta:hover { width: 100%; height: 48px; justify-content: center; font-size: 15px; }
}

/* ---------- Hero ---------- */
.bd-hero {
    padding: 56px 0 80px;
    font-family: var(--bd-font);
    color: var(--bd-ink);
    background: var(--bd-bg);
}
.bd-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: 64px;
    align-items: center;
}
.bd-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 20px;
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--bd-primary);
}
.bd-eyebrow::before { content: ""; width: 20px; height: 2px; background: var(--bd-accent); }
.bd-hero h1 {
    margin: 0 0 18px;
    font: 700 clamp(38px, 5vw, 60px)/1.05 var(--bd-font);
    letter-spacing: -.03em;
    color: var(--bd-ink);
}
.bd-hero__lead {
    max-width: 44ch;
    margin: 0 0 32px;
    font-size: 17px;
    line-height: 1.65;
    color: var(--bd-muted);
}
.bd-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 48px; }

.bd-hero__stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 0;
    padding-top: 24px;
    border-top: 1px solid var(--bd-line);
}
.bd-hero__stats div { display: flex; flex-direction: column; padding-right: 16px; }
.bd-hero__stats dd { margin-top: auto !important; } /* values stay on one baseline when a label wraps */
.bd-hero__stats div + div { padding-left: 20px; border-left: 1px solid var(--bd-line); }
.bd-hero__stats dt { margin-bottom: 6px; font-size: 13px; font-weight: 500; line-height: 1.3; color: var(--bd-muted); }
.bd-hero__stats dd {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -.01em;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

/* Slider */
.bd-slider {
    position: relative;
    aspect-ratio: 5 / 4;
    overflow: hidden;
    border-radius: var(--bd-radius);
    background: var(--bd-skeleton);
}
.bd-slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity .8s var(--bd-ease); }
.bd-slide.is-active { z-index: 1; opacity: 1; }
.bd-slide .bd-img { width: 100%; height: 100%; }
.bd-slide figcaption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 64px 24px 64px;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.5;
    color: #fff;
    background: linear-gradient(to top, rgba(0, 0, 0, .6), transparent);
}
.bd-slider__bar {
    position: absolute;
    z-index: 2;
    left: 24px;
    right: 24px;
    bottom: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    color: #fff;
}
.bd-slider__dots { display: flex; flex: 1; gap: 6px; }
.bd-slider__dots button {
    position: relative;
    flex: 1;
    max-width: 44px;
    height: 3px;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 2px;
    background: rgba(255, 255, 255, .35);
    cursor: pointer;
}
.bd-slider__dots button::before { content: ""; position: absolute; inset: -10px 0; } /* bigger hit area */
.bd-slider__dots button::after {
    content: "";
    position: absolute;
    inset: 0;
    background: #fff;
    transform: scaleX(0);
    transform-origin: left;
}
.bd-slider__dots button.is-active::after { animation: bd-progress 6s linear forwards; }
.bd-slider.is-paused .bd-slider__dots button.is-active::after { animation-play-state: paused; }
@keyframes bd-progress { to { transform: scaleX(1); } }
.bd-slider__count { font-size: 13px; font-weight: 500; font-variant-numeric: tabular-nums; opacity: .9; }
.bd-slider__nav { display: flex; gap: 6px; }
.bd-slider__nav button {
    display: inline-grid;
    place-items: center;
    width: 36px;
    height: 36px;
    padding: 0;
    color: #fff;
    background: rgba(0, 0, 0, .25);
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 50%;
    cursor: pointer;
    transition: background-color .2s;
}
.bd-slider__nav button:hover { background: rgba(0, 0, 0, .45); }
.bd-slider--empty { display: grid; place-content: center; justify-items: center; gap: 12px; color: var(--bd-muted); font-size: 14px; }
.bd-slider--empty img { opacity: .5; object-fit: contain; }

@media (max-width: 991.98px) {
    .bd-hero { padding: 32px 0 56px; }
    .bd-hero__grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
    .bd-slider { aspect-ratio: 4 / 3; }
}
@media (max-width: 575.98px) {
    .bd-hero__actions .bd-btn { flex: 1; }
    .bd-hero__stats dd { font-size: 18px; }
    .bd-hero__stats div { padding-right: 8px; }
    .bd-hero__stats div + div { padding-left: 12px; }
    .bd-slider__bar { left: 16px; right: 16px; bottom: 14px; }
    .bd-slider__nav { display: none; }
    .bd-slide figcaption { padding: 48px 16px 44px; font-size: 14px; }
}

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: no-preference) {
    .js [data-reveal] {
        opacity: 0;
        transform: translateY(14px);
        transition: opacity .6s var(--bd-ease), transform .6s var(--bd-ease);
        transition-delay: calc(var(--d, 0) * 70ms);
    }
    .js [data-reveal].is-visible { opacity: 1; transform: none; }

    .bd-slide img { transform: scale(1.04); transition: opacity .5s var(--bd-ease), transform 7s linear; }
    .bd-slide.is-active img { transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
    .bd-img::before, .bd-loader__bar::after { animation: none; }
    .bd-slider__dots button.is-active::after { animation: none; transform: scaleX(1); } /* no autoplay */
}

/* =====================================================================
   Base (the homepage no longer loads bootstrap/main.css)
   ===================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--bd-header-h) + 16px); }
body.bd-body {
    margin: 0;
    font-family: var(--bd-font);
    font-size: 16px;
    line-height: 1.6;
    color: var(--bd-ink);
    background: var(--bd-bg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
/* :where() = zero specificity, so component rules always win over the reset */
:where(.bd-body) img { max-width: 100%; }
:where(.bd-body) :where(h1, h2, h3) { margin: 0; }
:where(.bd-body) button { font-family: inherit; }
.bd-body :focus-visible { outline: 2px solid var(--bd-primary); outline-offset: 2px; }
.bd-skip {
    position: absolute;
    top: -60px;
    left: 16px;
    z-index: 1000;
    padding: 10px 16px;
    border-radius: 8px;
    background: var(--bd-ink);
    color: #fff;
    font-weight: 600;
    text-decoration: none;
}
.bd-skip:focus { top: 12px; }

/* ---------- Sections ---------- */
.bd-section { padding: 96px 0; border-top: 1px solid var(--bd-line); }
.bd-section--tight { padding: 48px 0 56px; }
main > section:nth-of-type(even) { background: var(--bd-surface); }

.bd-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 40px;
}
.bd-head .bd-eyebrow { margin-bottom: 12px; }
.bd-h2 {
    margin: 0;
    font: 700 clamp(28px, 3.2vw, 38px)/1.15 var(--bd-font);
    letter-spacing: -.02em;
    color: var(--bd-ink);
}
.bd-head__desc { max-width: 56ch; margin: 12px 0 0; font-size: 16px; line-height: 1.6; color: var(--bd-muted); }

.bd-link {
    display: inline-flex;
    flex: none;
    align-items: center;
    gap: 6px;
    font-size: 15px;
    font-weight: 600;
    color: var(--bd-primary);
    text-decoration: none;
    white-space: nowrap;
}
.bd-link:hover { color: var(--bd-primary-hover); text-decoration: underline; text-underline-offset: 4px; }
.bd-link svg { transition: transform .2s var(--bd-ease); }
.bd-link:hover svg { transform: translateX(2px); }
.bd-link--sm { font-size: 14px; }

.bd-card { background: var(--bd-surface); border: 1px solid var(--bd-line); border-radius: var(--bd-radius); }
.bd-empty {
    padding: 36px 24px;
    border: 1px dashed var(--bd-line-strong);
    border-radius: var(--bd-radius);
    font-size: 15px;
    text-align: center;
    color: var(--bd-muted);
}
.bd-grid { display: grid; gap: 32px 24px; }
.bd-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.bd-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ---------- Akses cepat ---------- */
.bd-quick { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.bd-quick__item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 22px;
    border: 1px solid var(--bd-line);
    border-radius: var(--bd-radius);
    color: var(--bd-ink);
    text-decoration: none;
    transition: border-color .2s, background-color .2s;
}
.bd-quick__item:hover { color: var(--bd-ink); text-decoration: none; border-color: var(--bd-primary); background: var(--bd-primary-tint); }
.bd-icon {
    display: inline-grid;
    flex: none;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    color: var(--bd-primary);
    background: var(--bd-primary-tint);
    transition: background-color .2s, color .2s;
}
.bd-quick__item:hover .bd-icon { background: var(--bd-primary); color: #fff; }
.bd-quick__text strong { display: block; margin-bottom: 4px; font-size: 16px; font-weight: 700; line-height: 1.3; }
.bd-quick__text span { display: block; font-size: 14px; line-height: 1.5; color: var(--bd-muted); }

.bd-surat { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: 24px; font-size: 14px; }
.bd-surat__label { margin-right: 4px; color: var(--bd-muted); }
.bd-chip {
    display: inline-flex;
    align-items: center;
    height: 34px;
    padding: 0 14px;
    border: 1px solid var(--bd-line);
    border-radius: 999px;
    font-weight: 500;
    color: var(--bd-ink);
    text-decoration: none;
    transition: border-color .2s, color .2s;
}
.bd-chip:hover { color: var(--bd-primary); border-color: var(--bd-primary); text-decoration: none; }
.bd-surat .bd-link { margin-left: 6px; }

/* ---------- Sambutan ---------- */
.bd-welcome { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 72px; align-items: center; }
.bd-welcome--solo { grid-template-columns: minmax(0, 760px); }
.bd-welcome__photo { margin: 0; }
.bd-welcome__photo .bd-img { border-radius: var(--bd-radius); }
.bd-welcome__photo img, .bd-person img { object-position: center top; }
.bd-welcome__body .bd-h2 { max-width: 22ch; margin-bottom: 20px; }
.bd-prose { max-width: 62ch; font-size: 16.5px; line-height: 1.75; color: var(--bd-muted); }
.bd-prose p { margin: 0 0 16px; }
.bd-prose > :last-child { margin-bottom: 0; }
.bd-sign { display: grid; gap: 2px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--bd-line); }
.bd-sign strong { font-size: 16px; }
.bd-sign span { font-size: 14px; color: var(--bd-muted); }

/* ---------- Penduduk ---------- */
.bd-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 0;
    border: 1px solid var(--bd-line);
    border-radius: var(--bd-radius);
}
.bd-stats div { padding: 28px; }
.bd-stats div + div { border-left: 1px solid var(--bd-line); }
.bd-stats dt { margin-bottom: 8px; font-size: 14px; font-weight: 500; color: var(--bd-muted); }
.bd-stats dd {
    margin: 0;
    font-size: clamp(28px, 3vw, 36px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -.02em;
    font-variant-numeric: tabular-nums;
}
.bd-ratio { margin-top: 24px; }
.bd-ratio__bar { height: 8px; overflow: hidden; border-radius: 999px; background: var(--bd-accent-soft); }
.bd-ratio__bar span { display: block; height: 100%; background: var(--bd-primary); transform-origin: left; }
.bd-ratio__legend { display: flex; justify-content: space-between; margin-top: 10px; font-size: 14px; color: var(--bd-muted); }
.bd-ratio__legend i { display: inline-block; width: 10px; height: 10px; margin-right: 8px; border-radius: 3px; vertical-align: -1px; }
.bd-ratio__legend .is-a { background: var(--bd-primary); }
.bd-ratio__legend .is-b { background: var(--bd-accent-soft); }

/* ---------- APBDes ---------- */
.bd-budget { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.bd-budget__item { padding: 28px; }
.bd-budget__item h3 { margin: 0 0 8px; font-size: 14px; font-weight: 600; color: var(--bd-muted); }
.bd-budget__value {
    margin: 0 0 20px;
    font-size: clamp(22px, 2.4vw, 28px);
    font-weight: 700;
    letter-spacing: -.01em;
    font-variant-numeric: tabular-nums;
}
.bd-progress { height: 6px; overflow: hidden; border-radius: 999px; background: var(--bd-skeleton); }
.bd-progress span { display: block; height: 100%; border-radius: inherit; background: var(--bd-primary); transform-origin: left; }
.bd-budget__meta { display: flex; justify-content: space-between; margin: 14px 0 0; }
.bd-budget__meta dt { font-size: 13px; color: var(--bd-muted); }
.bd-budget__meta dd { margin: 0; font-size: 14.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
.bd-budget__meta div:last-child { text-align: right; }
.bd-budget__item--muted { background: transparent; }
.bd-budget__note { margin: 0; font-size: 14px; line-height: 1.55; color: var(--bd-muted); }

/* ---------- Perangkat ---------- */
.bd-person .bd-img, .bd-avatar { margin-bottom: 14px; border-radius: 10px; }
.bd-avatar {
    display: grid;
    place-items: center;
    aspect-ratio: 4 / 5;
    font-size: clamp(28px, 3vw, 40px);
    font-weight: 700;
    letter-spacing: .02em;
    color: var(--bd-primary);
    background: var(--bd-primary-tint);
}
.bd-person h3 { margin: 0 0 2px; font-size: 16px; font-weight: 700; line-height: 1.35; }
.bd-person p { margin: 0; font-size: 14px; color: var(--bd-muted); }

/* ---------- Berita ---------- */
.bd-post__media { display: block; margin-bottom: 16px; }
.bd-post__media .bd-img { border-radius: 10px; }
.bd-post__meta { display: flex; gap: 6px 14px; flex-wrap: wrap; margin-bottom: 8px; font-size: 13px; color: var(--bd-muted); }
.bd-post h3 { margin: 0 0 8px; font-size: 18px; font-weight: 700; line-height: 1.4; }
.bd-post h3 a {
    display: -webkit-box;
    overflow: hidden;
    color: var(--bd-ink);
    text-decoration: none;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.bd-post h3 a:hover { color: var(--bd-primary); }
.bd-post p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--bd-muted); }

/* ---------- Produk ---------- */
.bd-product { display: flex; flex-direction: column; overflow: hidden; }
.bd-product__body { display: flex; flex: 1; flex-direction: column; gap: 8px; padding: 20px; }
.bd-product h3 { margin: 0; font-size: 17px; font-weight: 700; }
.bd-product p { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--bd-muted); }
.bd-product .bd-link { margin-top: auto; padding-top: 6px; }

/* Subtle zoom on media hover */
.bd-person img, .bd-post__media img, .bd-product img, .bd-gallery__item img {
    transition: opacity .5s var(--bd-ease), transform .6s var(--bd-ease);
}
.bd-person:hover img, .bd-post:hover .bd-post__media img, .bd-product:hover img, .bd-gallery__item:hover img { transform: scale(1.03); }

/* ---------- Galeri + lightbox ---------- */
.bd-gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.bd-gallery__item {
    display: block;
    aspect-ratio: 4 / 3;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 10px;
    background: none;
    cursor: zoom-in;
}
.bd-gallery__item .bd-img { width: 100%; height: 100%; }

.bd-lightbox {
    width: min(1100px, calc(100vw - 32px));
    max-width: none;
    max-height: none;
    padding: 0;
    overflow: visible;
    border: 0;
    background: transparent;
    color: #fff;
}
.bd-lightbox::backdrop { background: rgba(10, 14, 12, .9); }
.bd-lightbox[open] { animation: bd-fade .25s var(--bd-ease); }
@keyframes bd-fade { from { opacity: 0; } }
.bd-lightbox figure { display: grid; justify-items: center; gap: 12px; margin: 0; }
.bd-lightbox img { max-width: 100%; max-height: calc(100dvh - 120px); border-radius: 8px; object-fit: contain; }
.bd-lightbox figcaption { font-size: 15px; text-align: center; opacity: .9; }
.bd-lightbox figcaption:empty { display: none; }
.bd-lightbox__close, .bd-lightbox__nav {
    position: fixed;
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 50%;
    color: #fff;
    background: rgba(255, 255, 255, .08);
    cursor: pointer;
    transition: background-color .2s;
}
.bd-lightbox__close:hover, .bd-lightbox__nav:hover { background: rgba(255, 255, 255, .18); }
.bd-lightbox__close { top: 16px; right: 16px; }
.bd-lightbox__nav { top: 50%; transform: translateY(-50%); }
.bd-lightbox__nav.is-prev { left: 16px; }
.bd-lightbox__nav.is-next { right: 16px; }
.bd-lightbox.is-single .bd-lightbox__nav { display: none; }

/* ---------- Lokasi ---------- */
.bd-location { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: center; }
.bd-info { margin: 24px 0 28px; }
.bd-info div { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--bd-line); }
.bd-info div:first-child { border-top: 1px solid var(--bd-line); }
.bd-info dt { font-size: 14px; color: var(--bd-muted); }
.bd-info dd { margin: 0; font-size: 15px; font-weight: 500; }
.bd-map {
    position: relative;
    aspect-ratio: 16 / 11;
    overflow: hidden;
    border: 1px solid var(--bd-line);
    border-radius: var(--bd-radius);
    background: var(--bd-skeleton);
}
.bd-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Footer ---------- */
.bd-footer { padding: 72px 0 0; font-size: 15px; color: rgba(255, 255, 255, .7); background: #132019; }
.bd-footer :focus-visible { outline-color: #fff; }
.bd-footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 56px; }
.bd-footer h3 { margin: 0 0 16px; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #fff; }
.bd-footer ul { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.bd-footer a { color: rgba(255, 255, 255, .7); text-decoration: none; transition: color .2s; }
.bd-footer a:hover { color: #fff; }
.bd-footer address { font-style: normal; line-height: 1.7; }
.bd-footer__brand { display: flex; align-items: flex-start; gap: 14px; }
.bd-footer__brand img { flex: none; width: 44px; height: 44px; object-fit: contain; }
.bd-footer__brand strong { display: block; margin-bottom: 4px; font-size: 17px; color: #fff; }
.bd-footer__brand span { display: block; font-size: 14px; line-height: 1.6; }
.bd-footer__bottom {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, .1);
    font-size: 13.5px;
    color: rgba(255, 255, 255, .5);
}
.bd-footer__bottom a { color: rgba(255, 255, 255, .5); }

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
    .bd-section { padding: 72px 0; }
    .bd-quick { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .bd-welcome { grid-template-columns: minmax(0, 1fr); gap: 36px; }
    .bd-welcome__photo { max-width: 300px; }
    .bd-budget { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .bd-budget__item--muted { grid-column: 1 / -1; }
    .bd-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .bd-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .bd-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .bd-location { grid-template-columns: minmax(0, 1fr); gap: 36px; }
    .bd-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .bd-footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 767.98px) {
    .bd-head { flex-direction: column; align-items: flex-start; gap: 16px; margin-bottom: 28px; }
    .bd-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .bd-stats div { padding: 20px; }
    .bd-stats div:nth-child(3) { border-left: 0; }
    .bd-stats div:nth-child(n + 3) { border-top: 1px solid var(--bd-line); }
    .bd-budget { grid-template-columns: minmax(0, 1fr); }
    .bd-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
}
@media (max-width: 575.98px) {
    .bd-section { padding: 56px 0; }
    .bd-section--tight { padding: 32px 0 40px; }
    .bd-quick { grid-template-columns: minmax(0, 1fr); gap: 10px; }
    .bd-quick__item { padding: 18px; }
    .bd-grid { gap: 28px 16px; }
    .bd-grid--3 { grid-template-columns: minmax(0, 1fr); }
    .bd-person h3 { font-size: 15px; }
    .bd-person p { font-size: 13px; }
    .bd-info div { grid-template-columns: 100px 1fr; }
    .bd-footer__grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
    .bd-footer__bottom { flex-direction: column; gap: 6px; }
}

/* ---------- Motion (sections) ---------- */
@media (prefers-reduced-motion: no-preference) {
    html { scroll-behavior: smooth; }
    .bd-ratio__bar span, .bd-progress span { transition: transform 1s var(--bd-ease) .25s; }
    .js .bd-ratio:not(.is-visible) .bd-ratio__bar span,
    .js .bd-budget__item:not(.is-visible) .bd-progress span { transform: scaleX(0); }
}

/* =====================================================================
   Inner pages
   ===================================================================== */
.bd-pagehead { padding: 48px 0 44px; border-bottom: 1px solid var(--bd-line); }
.bd-crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; padding: 0; list-style: none; font-size: 14px; color: var(--bd-muted); }
.bd-crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--bd-line-strong); }
.bd-crumbs a { color: var(--bd-muted); text-decoration: none; }
.bd-crumbs a:hover { color: var(--bd-ink); text-decoration: underline; text-underline-offset: 3px; }
.bd-crumbs [aria-current] { color: var(--bd-ink); font-weight: 500; }
.bd-pagehead h1 { margin: 0 0 12px; font: 700 clamp(30px, 4vw, 46px)/1.1 var(--bd-font); letter-spacing: -.025em; }
.bd-pagehead p { max-width: 62ch; margin: 0; font-size: 17px; line-height: 1.6; color: var(--bd-muted); }
.bd-jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.bd-jump .bd-chip { gap: 8px; background: var(--bd-surface); }
.bd-jump .bd-chip span { font-size: 12.5px; font-weight: 600; color: var(--bd-muted); font-variant-numeric: tabular-nums; }

/* ---------- SOTK directory ---------- */
.bd-section--dir { padding: 64px 0; }
.bd-dirhead { margin-bottom: 24px; }
.bd-dirhead h2 { display: flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 700; letter-spacing: -.01em; }
.bd-dirhead h2 span {
    display: inline-grid;
    place-items: center;
    min-width: 26px;
    height: 26px;
    padding: 0 8px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    color: var(--bd-primary);
    background: var(--bd-primary-tint);
}
.bd-dirhead p { max-width: 64ch; margin: 6px 0 0; font-size: 15px; line-height: 1.55; color: var(--bd-muted); }

.bd-leaders { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.bd-leader { display: grid; grid-template-columns: 148px minmax(0, 1fr); gap: 24px; align-items: center; padding: 16px; }
.bd-leader__photo { border-radius: 8px; margin: 0; }
.bd-leader__photo img { object-position: center top; }
.bd-leader .bd-avatar { margin: 0; font-size: 36px; }
.bd-leader__role { margin: 0 0 4px; font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--bd-primary); }
.bd-leader h3 { margin: 0 0 10px; font-size: 22px; font-weight: 700; letter-spacing: -.01em; line-height: 1.25; }
.bd-leader__desc { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--bd-muted); }

.bd-members { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.bd-member {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    padding: 14px 16px;
    border: 1px solid var(--bd-line);
    border-radius: 10px;
    background: var(--bd-surface);
}
.bd-member__avatar {
    display: inline-grid;
    flex: none;
    place-items: center;
    width: 48px;
    height: 48px;
    overflow: hidden;
    border-radius: 50%;
    font-size: 15px;
    font-weight: 700;
    color: var(--bd-primary);
    background: var(--bd-primary-tint);
}
.bd-member__avatar img { object-position: center top; }
.bd-member__text { min-width: 0; }
.bd-member__text strong { display: block; overflow: hidden; font-size: 15px; font-weight: 600; line-height: 1.35; white-space: nowrap; text-overflow: ellipsis; }
.bd-member__text span { display: block; font-size: 13.5px; line-height: 1.4; color: var(--bd-muted); }

@media (max-width: 991.98px) {
    .bd-leaders { grid-template-columns: minmax(0, 1fr); }
    .bd-members { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 575.98px) {
    .bd-pagehead { padding: 32px 0 32px; }
    .bd-section--dir { padding: 44px 0; }
    .bd-leader { grid-template-columns: 104px minmax(0, 1fr); gap: 16px; padding: 12px; }
    .bd-leader h3 { font-size: 18px; }
    .bd-leader__desc { font-size: 13.5px; }
    .bd-members { grid-template-columns: minmax(0, 1fr); gap: 8px; }
}

/* ---------- Profil desa ---------- */
.bd-profile { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px; align-items: start; }
.bd-profile__id { padding: 28px; }
.bd-profile__brand { display: flex; align-items: center; gap: 16px; }
.bd-profile__brand img { flex: none; width: 64px; height: 64px; object-fit: contain; }
.bd-profile__brand strong { display: block; font-size: 20px; font-weight: 700; letter-spacing: -.01em; line-height: 1.25; }
.bd-profile__brand span { display: block; font-size: 14px; color: var(--bd-muted); }
.bd-profile__id .bd-info { margin: 24px 0 0; }
.bd-profile__id .bd-info div:last-child { border-bottom: 0; padding-bottom: 0; }
.bd-profile__side { display: grid; gap: 24px; }

.bd-stats--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); background: var(--bd-surface); }
.bd-stats--2 div:nth-child(3) { border-left: 0; }
.bd-stats--2 div:nth-child(n + 3) { border-top: 1px solid var(--bd-line); }

.bd-dusun h2 { margin-bottom: 12px; font-size: 15px; font-weight: 600; color: var(--bd-muted); }
.bd-dusun ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.bd-dusun li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 36px;
    padding: 0 14px;
    border: 1px solid var(--bd-line);
    border-radius: 999px;
    font-size: 14px;
    font-weight: 500;
    background: var(--bd-surface);
}
.bd-dusun li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--bd-accent); }

.bd-vision { max-width: 860px; margin-bottom: 64px; }
.bd-vision blockquote {
    margin: 0;
    padding-left: 24px;
    border-left: 3px solid var(--bd-accent);
    font: 600 clamp(22px, 2.6vw, 32px)/1.35 var(--bd-font);
    letter-spacing: -.015em;
    color: var(--bd-ink);
}
.bd-mission__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.bd-mission__list li {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    border: 1px solid var(--bd-line);
    border-radius: 10px;
    background: var(--bd-surface);
}
.bd-mission__no { flex: none; font-size: 13px; font-weight: 700; line-height: 1.7; color: var(--bd-primary); font-variant-numeric: tabular-nums; }
.bd-mission__list p { margin: 0; font-size: 15.5px; line-height: 1.6; }

/* Rich text from the admin editor: neutralise its inline fonts and oversized headings */
.bd-prose--doc { max-width: 72ch; color: var(--bd-ink); }
.bd-prose--doc * { font-family: inherit !important; }
.bd-prose--doc :is(h1, h2, h3, h4) { margin: 32px 0 12px; font-size: 20px; font-weight: 700; line-height: 1.35; color: var(--bd-ink); }
.bd-prose--doc > :first-child { margin-top: 0; }
.bd-prose--doc :is(ul, ol) { margin: 0 0 16px; padding-left: 22px; }
.bd-prose--doc li { margin-bottom: 6px; }
.bd-prose--doc img { height: auto; border-radius: 10px; }

.bd-next { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }

@media (max-width: 991.98px) {
    .bd-profile { grid-template-columns: minmax(0, 1fr); }
    .bd-next { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 767.98px) {
    .bd-mission__list { grid-template-columns: minmax(0, 1fr); }
    .bd-vision { margin-bottom: 44px; }
    .bd-vision blockquote { padding-left: 18px; }
}
@media (max-width: 575.98px) {
    .bd-profile__id { padding: 20px; }
    .bd-mission__list li { padding: 16px; gap: 12px; }
}

/* ---------- Pemerintahan: org chart ---------- */
.bd-pagehead__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.bd-org { --bd-conn: var(--bd-line-strong); }
.bd-org__top { position: relative; display: flex; justify-content: center; padding-bottom: 32px; }
.bd-org__top::after { content: ""; position: absolute; bottom: 0; left: 50%; width: 1px; height: 32px; background: var(--bd-conn); }
.bd-org__head { display: flex; align-items: center; gap: 14px; min-width: 300px; padding: 16px 22px; border-color: var(--bd-primary); }
.bd-org__head .bd-member__avatar { width: 56px; height: 56px; font-size: 17px; }
.bd-org__head .bd-member__text strong { font-size: 16px; }

.bd-org__units { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; padding-top: 32px; }
/* horizontal rail from the centre of the first column to the centre of the last */
.bd-org__units::before {
    content: "";
    position: absolute;
    top: 0;
    left: calc((100% - 32px) / 6);
    right: calc((100% - 32px) / 6);
    height: 1px;
    background: var(--bd-conn);
}
.bd-org__unit { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 20px; }
.bd-org__unit::before { content: ""; position: absolute; top: -33px; left: 50%; width: 1px; height: 32px; background: var(--bd-conn); }
.bd-org__unit-head h3 { margin: 0 0 4px; font-size: 17px; font-weight: 700; }
.bd-org__unit-head p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--bd-muted); }
.bd-org__lead { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 8px; background: var(--bd-primary-tint); }
.bd-org__list { display: grid; margin: 0; padding: 0; list-style: none; }
.bd-org__list li { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 10px 0; border-top: 1px solid var(--bd-line); }
.bd-org__list li:first-child { border-top: 0; }
.bd-org__list .bd-member__avatar,
.bd-org__lead .bd-member__avatar { width: 36px; height: 36px; font-size: 12.5px; }
.bd-org__lead .bd-member__avatar { background: var(--bd-surface); }
.bd-org__unit > .bd-link { margin-top: auto; padding-top: 4px; }
.bd-org__empty { margin: 0; font-size: 14px; color: var(--bd-muted); }

.bd-bodies { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.bd-body-card { display: flex; flex-direction: column; gap: 12px; padding: 28px; }
.bd-body-card .bd-leader__role { margin: 0; }
.bd-body-card h3 { margin: 0; font-size: 22px; font-weight: 700; letter-spacing: -.01em; }
.bd-body-card__count { margin: -6px 0 4px; font-size: 14px; color: var(--bd-muted); }
.bd-body-card > ul:not(.bd-org__list) { display: grid; gap: 6px; margin: 0; padding-left: 20px; font-size: 15px; line-height: 1.6; }
.bd-body-card > ul:not(.bd-org__list) li::marker { color: var(--bd-accent); }
.bd-org__list--inline { margin-top: 4px; padding-top: 8px; border-top: 1px solid var(--bd-line); }
.bd-body-card > .bd-link { margin-top: auto; padding-top: 4px; }

@media (max-width: 991.98px) {
    .bd-org__top { padding-bottom: 24px; }
    .bd-org__top::after { height: 24px; }
    .bd-org__units { grid-template-columns: minmax(0, 1fr); gap: 24px; padding-top: 0; }
    .bd-org__units::before { display: none; }
    .bd-org__unit::before { top: -25px; height: 24px; }
    .bd-org__head { width: 100%; min-width: 0; }
}
@media (max-width: 767.98px) {
    .bd-bodies { grid-template-columns: minmax(0, 1fr); }
    .bd-body-card { padding: 22px; }
}

/* =====================================================================
   Infografis
   ===================================================================== */
.bd-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.bd-toolbar { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px 32px; flex-wrap: wrap; margin-bottom: 28px; }
.bd-toolbar .bd-head__desc { margin-top: 8px; }
.bd-select { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--bd-muted); }
.bd-select select {
    height: 42px;
    padding: 0 40px 0 14px;
    border: 1px solid var(--bd-line-strong);
    border-radius: 8px;
    font: 600 15px var(--bd-font);
    color: var(--bd-ink);
    background: var(--bd-surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%235b655e' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center;
    appearance: none;
    cursor: pointer;
}
.bd-select select:hover { border-color: var(--bd-ink); }
.bd-empty a { color: var(--bd-primary); font-weight: 600; }

/* KPI cards */
.bd-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; }
.bd-kpi { display: flex; flex-direction: column; gap: 6px; padding: 22px; }
.bd-kpi h3 { margin: 0; font-size: 14px; font-weight: 600; color: var(--bd-muted); }
.bd-kpi__value { margin: 2px 0 0; font-size: clamp(24px, 2.4vw, 30px); font-weight: 700; letter-spacing: -.02em; line-height: 1.15; font-variant-numeric: tabular-nums; }
.bd-kpi__sub { margin: 0 0 6px; font-size: 13.5px; line-height: 1.5; color: var(--bd-muted); }
.bd-kpi .bd-progress { margin-top: auto; }
.bd-kpi__pct { margin: 4px 0 0; font-size: 13px; font-weight: 600; color: var(--bd-primary); }
.bd-kpi.is-positive .bd-kpi__value { color: var(--bd-primary); }
.bd-kpi.is-negative .bd-kpi__value { color: #a4402b; }

/* Chart cards */
.bd-charts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; }
.bd-chart { padding: 24px; }
.bd-chart--wide { grid-column: 1 / -1; }
.bd-chart__head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; align-items: start; margin-bottom: 20px; }
.bd-chart__head h3 { margin: 0; font-size: 17px; font-weight: 700; }
.bd-chart__head p { grid-column: 1; margin: 0; font-size: 14px; line-height: 1.5; color: var(--bd-muted); }
.bd-chart__head .bd-legend { grid-column: 2; grid-row: 1 / span 2; }
.bd-chart__empty { margin: 0; padding: 24px 0; font-size: 14px; text-align: center; color: var(--bd-muted); }
.bd-chart__note { margin: 14px 0 0; font-size: 12.5px; color: var(--bd-muted); }

.bd-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12.5px; color: var(--bd-muted); }
.bd-legend span { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.bd-legend i { width: 10px; height: 10px; border-radius: 3px; }
.bd-legend .is-plan { background: var(--bd-primary-tint); box-shadow: inset 0 0 0 1px #c9dccf; }
.bd-legend .is-real { background: var(--bd-primary); }
.bd-legend .is-m { background: var(--bd-primary); }
.bd-legend .is-f { background: var(--bd-accent); }

/* Budget bullet bars: light = budget, solid = realised */
.bd-budgetbars { display: grid; gap: 18px; margin: 0; padding: 0; list-style: none; }
.bd-budgetbars__top { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 6px; font-size: 14.5px; }
.bd-budgetbars__label { font-weight: 500; }
.bd-budgetbars__value { flex: none; font-weight: 600; font-variant-numeric: tabular-nums; }
.bd-budgetbars__track { position: relative; height: 10px; border-radius: 999px; background: var(--bd-bg); }
.bd-budgetbars__track span { position: absolute; top: 0; left: 0; height: 100%; border-radius: inherit; transform-origin: left; }
.bd-budgetbars__track .is-plan { background: var(--bd-primary-tint); box-shadow: inset 0 0 0 1px #c9dccf; }
.bd-budgetbars__track .is-real { background: var(--bd-primary); }
.bd-budgetbars__meta { display: flex; justify-content: space-between; gap: 12px; margin-top: 6px; font-size: 12.5px; color: var(--bd-muted); font-variant-numeric: tabular-nums; }

/* Distribution bars */
.bd-bars { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.bd-bars li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; align-items: baseline; }
.bd-bars__label { font-size: 14.5px; }
.bd-bars__value { font-size: 14.5px; font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }
.bd-bars__value small { margin-left: 6px; font-size: 12.5px; font-weight: 500; color: var(--bd-muted); }
.bd-bars__track { grid-column: 1 / -1; height: 8px; border-radius: 999px; background: var(--bd-bg); overflow: hidden; }
.bd-bars__track span { display: block; height: 100%; border-radius: inherit; background: var(--bd-primary); transform-origin: left; }

/* Detail table */
.bd-tablecard { padding: 24px 0 8px; }
.bd-tablecard .bd-chart__head { padding: 0 24px; }
.bd-tablewrap { overflow-x: auto; }
.bd-tablewrap:focus-visible { outline-offset: -2px; }
.bd-table { width: 100%; min-width: 760px; border-collapse: collapse; font-size: 14.5px; font-variant-numeric: tabular-nums; }
.bd-table th, .bd-table td { padding: 12px 16px; border-top: 1px solid var(--bd-line); text-align: right; white-space: nowrap; }
.bd-table th:first-child { padding-left: 24px; text-align: left; white-space: normal; }
.bd-table :is(th, td):last-child { padding-right: 24px; }
.bd-table thead th { border-top: 0; font-size: 12.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--bd-muted); background: var(--bd-bg); }
.bd-table tbody th { font-weight: 400; }
.bd-table .is-jenis :is(th, td) { font-weight: 700; background: var(--bd-primary-tint); border-top-color: #c9dccf; }
.bd-table .is-kelompok :is(th, td) { font-weight: 600; }
.bd-table .is-item th { padding-left: 44px; color: var(--bd-muted); }
.bd-table .is-item td { color: var(--bd-muted); }
.bd-table tfoot :is(th, td) { font-weight: 600; border-top: 1px solid var(--bd-line-strong); }
.bd-table tfoot tr + tr :is(th, td) { border-top-color: var(--bd-line); }
.bd-table tfoot .is-total :is(th, td) { font-weight: 700; color: var(--bd-primary); }

/* Population */
.bd-stats--6 { grid-template-columns: repeat(6, minmax(0, 1fr)); margin-bottom: 16px; background: var(--bd-surface); }
.bd-stats--6 div { padding: 22px; }
.bd-stats--6 dd { font-size: clamp(24px, 2.4vw, 30px); }
.bd-stats__hint { display: block; margin-top: 4px; font-size: 12px; line-height: 1.4; color: var(--bd-muted); }

.bd-pyramid { width: 100%; border-collapse: separate; border-spacing: 0 4px; font-size: 13px; font-variant-numeric: tabular-nums; }
.bd-pyramid th { width: 64px; padding: 0 8px; font-weight: 500; text-align: center; color: var(--bd-muted); white-space: nowrap; }
.bd-pyramid td { width: 50%; height: 20px; padding: 0; }
.bd-pyramid__cell { display: flex; align-items: center; }
.bd-pyramid .is-m .bd-pyramid__cell { justify-content: flex-end; }
.bd-pyramid__bar { flex: 0 1 auto; height: 16px; min-width: 0; }
.bd-pyramid .is-m .bd-pyramid__bar { border-radius: 4px 0 0 4px; background: var(--bd-primary); transform-origin: right; }
.bd-pyramid .is-f .bd-pyramid__bar { border-radius: 0 4px 4px 0; background: var(--bd-accent); transform-origin: left; }
.bd-pyramid__n { flex: none; min-width: 24px; padding: 0 6px; color: var(--bd-muted); }
.bd-pyramid .is-m .bd-pyramid__n { text-align: right; }

@media (max-width: 1199.98px) {
    .bd-stats--6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .bd-stats--6 div:nth-child(4) { border-left: 0; }
    .bd-stats--6 div:nth-child(n + 4) { border-top: 1px solid var(--bd-line); }
}
@media (max-width: 991.98px) {
    .bd-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .bd-charts { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 767.98px) {
    .bd-stats--6 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .bd-stats--6 div:nth-child(4) { border-left: 1px solid var(--bd-line); }
    .bd-stats--6 div:nth-child(odd) { border-left: 0; }
    .bd-stats--6 div:nth-child(n + 3) { border-top: 1px solid var(--bd-line); }
    .bd-chart__head { grid-template-columns: minmax(0, 1fr); }
    .bd-chart__head .bd-legend { grid-column: 1; grid-row: auto; margin-top: 6px; }
}
@media (max-width: 575.98px) {
    .bd-kpis { grid-template-columns: minmax(0, 1fr); gap: 10px; }
    .bd-chart { padding: 18px; }
    .bd-tablecard { padding-top: 18px; }
    .bd-tablecard .bd-chart__head { padding: 0 18px; }
    .bd-stats--6 div { padding: 16px; }
    .bd-select { width: 100%; justify-content: space-between; }
}

@media (prefers-reduced-motion: no-preference) {
    .bd-budgetbars__track span, .bd-bars__track span, .bd-pyramid__bar { transition: transform .9s var(--bd-ease) .15s; }
    .js .bd-chart:not(.is-visible) :is(.bd-budgetbars__track span, .bd-bars__track span, .bd-pyramid__bar),
    .js .bd-kpi:not(.is-visible) .bd-progress span { transform: scaleX(0); }
    .bd-kpi .bd-progress span { transition: transform 1s var(--bd-ease) .25s; }
}

/* =====================================================================
   Listing pages (berita, produk) + article
   ===================================================================== */
.bd-search {
    display: flex;
    align-items: center;
    gap: 10px;
    width: min(100%, 520px);
    height: 50px;
    padding: 0 5px 0 16px;
    border: 1px solid var(--bd-line-strong);
    border-radius: 10px;
    color: var(--bd-muted);
    background: var(--bd-surface);
    transition: border-color .2s;
}
.bd-search:focus-within { border-color: var(--bd-primary); }
.bd-search input {
    flex: 1;
    min-width: 0;
    height: 100%;
    border: 0;
    outline: 0;
    font: 400 15.5px var(--bd-font);
    color: var(--bd-ink);
    background: transparent;
}
.bd-search .bd-btn { height: 40px; padding: 0 18px; }
.bd-btn--sm { height: 38px; padding: 0 14px; font-size: 14px; }

.bd-resultinfo { margin: 0 0 24px; font-size: 15px; color: var(--bd-muted); }
.bd-resultinfo strong { color: var(--bd-ink); }
.bd-resultinfo a { margin-left: 6px; font-weight: 600; color: var(--bd-primary); }

.bd-empty--lg { display: grid; justify-items: center; gap: 8px; padding: 64px 24px; }
.bd-empty--lg svg { margin-bottom: 6px; color: var(--bd-line-strong); }
.bd-empty--lg strong { font-size: 17px; color: var(--bd-ink); }
.bd-empty--lg span { max-width: 44ch; }

.bd-noimg { display: grid; place-items: center; border-radius: 10px; background: var(--bd-skeleton); }
.bd-noimg img { width: 56px; height: 56px; object-fit: contain; opacity: .35; filter: grayscale(1); }

/* Featured article */
.bd-feature { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px; align-items: center; margin-bottom: 56px; padding-bottom: 56px; border-bottom: 1px solid var(--bd-line); }
.bd-feature__media { display: block; }
.bd-feature__media .bd-img, .bd-feature__media .bd-noimg { border-radius: var(--bd-radius); }
.bd-feature__media img { transition: opacity .5s var(--bd-ease), transform .6s var(--bd-ease); }
.bd-feature:hover .bd-feature__media .bd-img img { transform: scale(1.02); }
.bd-feature h2 { margin: 0 0 14px; font-size: clamp(24px, 2.6vw, 32px); font-weight: 700; line-height: 1.25; letter-spacing: -.02em; }
.bd-feature h2 a { color: var(--bd-ink); text-decoration: none; }
.bd-feature h2 a:hover { color: var(--bd-primary); }
.bd-feature__body > p:not(.bd-eyebrow) { margin: 0 0 16px; font-size: 16px; line-height: 1.7; color: var(--bd-muted); }
.bd-feature .bd-post__meta { margin-bottom: 20px; }
.bd-post__media .bd-noimg { border-radius: 10px; }

/* Pagination */
.bd-pager { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 48px; }
.bd-pager ul { display: flex; gap: 4px; margin: 0; padding: 0; list-style: none; }
.bd-pager__page, .bd-pager__step, .bd-pager__gap {
    display: inline-grid;
    place-items: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: 8px;
    font-size: 14.5px;
    font-weight: 500;
    color: var(--bd-ink);
    text-decoration: none;
}
.bd-pager a:hover { background: var(--bd-hover); color: var(--bd-ink); }
.bd-pager__step { border: 1px solid var(--bd-line); }
.bd-pager__step.is-disabled { color: var(--bd-line-strong); }
.bd-pager__page.is-current { color: #fff; background: var(--bd-primary); }
.bd-pager__gap { color: var(--bd-muted); }

/* Product cards */
.bd-product .bd-noimg { border-radius: 0; }
.bd-product__name { margin: 0; font-size: 17px; font-weight: 700; line-height: 1.35; }
.bd-product__desc {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    font-size: 14.5px;
    line-height: 1.55;
    color: var(--bd-muted);
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}
.bd-product__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--bd-line); }
.bd-product__phone { font-size: 13.5px; color: var(--bd-muted); font-variant-numeric: tabular-nums; }
.bd-note {
    display: grid;
    gap: 4px;
    margin-top: 48px;
    padding: 20px 24px;
    border-left: 3px solid var(--bd-accent);
    border-radius: 0 10px 10px 0;
    font-size: 15px;
    color: var(--bd-muted);
    background: var(--bd-surface);
}
.bd-note strong { color: var(--bd-ink); }

/* Article */
.bd-container--narrow { max-width: 800px; }
.bd-pagehead--article { border-bottom: 0; padding-bottom: 28px; }
.bd-pagehead--article h1 { font-size: clamp(28px, 3.6vw, 42px); line-height: 1.2; }
.bd-article__meta { margin: 16px 0 0; font-size: 14px; }
.bd-article__meta > * + *::before { content: "·"; margin-right: 14px; color: var(--bd-line-strong); }
.bd-article__body { padding-bottom: 72px; }
.bd-article__cover { margin: 0 0 36px; }
.bd-article__cover .bd-img { border-radius: var(--bd-radius); }
.bd-prose--article { max-width: none; font-size: 17.5px; line-height: 1.8; color: #2a332d; }
.bd-prose--article p { margin-bottom: 20px; }
.bd-prose--article a { color: var(--bd-primary); }
.bd-prose--article img { max-width: 100%; margin: 8px 0; }
.bd-prose--article blockquote { margin: 24px 0; padding-left: 20px; border-left: 3px solid var(--bd-accent); color: var(--bd-muted); }
.bd-share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--bd-line); font-size: 14px; color: var(--bd-muted); }
.bd-share span { margin-right: 6px; }
.bd-share .bd-chip { background: var(--bd-surface); cursor: pointer; font-family: inherit; font-size: 14px; }

.bd-nav__dropdown > button.is-current { color: var(--bd-primary); font-weight: 600; }

@media (max-width: 991.98px) {
    .bd-feature { grid-template-columns: minmax(0, 1fr); gap: 24px; margin-bottom: 40px; padding-bottom: 40px; }
}
@media (max-width: 575.98px) {
    .bd-search { height: 48px; }
    .bd-search .bd-btn { padding: 0 14px; }
    .bd-pager__step { padding: 0 10px; }
    .bd-pager ul { order: -1; width: 100%; justify-content: center; }
    .bd-product__foot { flex-direction: column; align-items: stretch; }
    .bd-product__foot .bd-btn { width: 100%; }
    .bd-prose--article { font-size: 16.5px; }
}

/* ---------- Galeri page ---------- */
.bd-album + .bd-album { margin-top: 48px; }
.bd-album__title { display: flex; align-items: baseline; gap: 10px; margin-bottom: 16px; font-size: 18px; font-weight: 700; }
.bd-album__title span { font-size: 13.5px; font-weight: 500; color: var(--bd-muted); }
.bd-gallery__item { position: relative; }
.bd-gallery__cap {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 28px 12px 10px;
    overflow: hidden;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
    text-align: left;
    white-space: nowrap;
    text-overflow: ellipsis;
    color: #fff;
    background: linear-gradient(to top, rgba(0, 0, 0, .55), transparent);
    opacity: 0;
    transition: opacity .2s;
}
.bd-gallery__item:hover .bd-gallery__cap,
.bd-gallery__item:focus-visible .bd-gallery__cap { opacity: 1; }
@media (hover: none) { .bd-gallery__cap { opacity: 1; } }

.bd-video { display: grid; gap: 6px; color: var(--bd-ink); text-decoration: none; }
.bd-video:hover { color: var(--bd-ink); text-decoration: none; }
.bd-video__thumb { position: relative; display: block; margin-bottom: 8px; overflow: hidden; border-radius: 10px; }
.bd-video__thumb img { transition: opacity .5s var(--bd-ease), transform .6s var(--bd-ease); }
.bd-video:hover .bd-video__thumb img { transform: scale(1.03); }
.bd-video__play {
    position: absolute;
    top: 50%;
    left: 50%;
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    padding-left: 3px;
    border-radius: 50%;
    color: #fff;
    background: rgba(0, 0, 0, .55);
    transform: translate(-50%, -50%);
    transition: background-color .2s;
}
.bd-video:hover .bd-video__play { background: var(--bd-primary); }
.bd-video__title { font-size: 16px; font-weight: 600; line-height: 1.4; }
.bd-video:hover .bd-video__title { color: var(--bd-primary); }
.bd-video__date { font-size: 13px; color: var(--bd-muted); }

/* ---------- Kontak ---------- */
.bd-contact { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px; align-items: start; }
.bd-channels { display: grid; margin: 0; padding: 0; list-style: none; }
.bd-channels li { display: flex; align-items: flex-start; gap: 16px; padding: 20px 0; border-top: 1px solid var(--bd-line); }
.bd-channels li:first-child { padding-top: 0; border-top: 0; }
.bd-channels h2 { margin: 0 0 4px; font-size: 14px; font-weight: 600; color: var(--bd-muted); }
.bd-channels address, .bd-channels p { margin: 0 0 6px; font-style: normal; font-size: 16px; line-height: 1.6; }
.bd-channels a:not(.bd-link) { font-size: 17px; font-weight: 600; color: var(--bd-ink); text-decoration: none; }
.bd-channels a:not(.bd-link):hover { color: var(--bd-primary); }
.bd-contact .bd-note { margin-top: 12px; }
.bd-contact .bd-note a { font-weight: 600; color: var(--bd-primary); }
.bd-contact__map { aspect-ratio: 4 / 3; }
.bd-contact__sub { margin-top: 36px; }

.bd-compose { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 40px; align-items: start; }
.bd-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 16px; padding: 28px; }
.bd-field { display: grid; gap: 6px; }
.bd-field--full { grid-column: 1 / -1; }
.bd-field label { font-size: 14px; font-weight: 600; }
.bd-field label span { font-weight: 400; color: var(--bd-muted); }
.bd-field :is(input, select, textarea) {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid var(--bd-line-strong);
    border-radius: 8px;
    font: 400 15.5px/1.5 var(--bd-font);
    color: var(--bd-ink);
    background: var(--bd-surface);
    transition: border-color .2s, box-shadow .2s;
}
.bd-field select {
    height: 46px;
    padding-right: 40px;
    background: var(--bd-surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%235b655e' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center;
    appearance: none;
}
.bd-field textarea { resize: vertical; min-height: 120px; }
.bd-field :is(input, select, textarea):focus { outline: 0; border-color: var(--bd-primary); box-shadow: 0 0 0 3px var(--bd-primary-tint); }
.bd-form__foot { display: flex; justify-content: flex-end; }

@media (max-width: 991.98px) {
    .bd-contact, .bd-compose { grid-template-columns: minmax(0, 1fr); gap: 28px; }
}
@media (max-width: 575.98px) {
    .bd-form { grid-template-columns: minmax(0, 1fr); padding: 20px; }
    .bd-form__foot .bd-btn { width: 100%; }
}
.bd-footer__contact { margin-top: 12px !important; }

/* ---------- Layanan surat ---------- */
.bd-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; counter-reset: none; }
.bd-steps li { display: flex; align-items: flex-start; gap: 14px; }
.bd-steps__no {
    display: inline-grid;
    flex: none;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 14px;
    font-weight: 700;
    color: var(--bd-primary);
    background: var(--bd-primary-tint);
}
.bd-steps strong { display: block; margin-bottom: 2px; font-size: 15.5px; }
.bd-steps li span:not(.bd-steps__no) { display: block; font-size: 14px; line-height: 1.5; color: var(--bd-muted); }

.bd-service { display: flex; flex-direction: column; gap: 10px; padding: 24px; color: var(--bd-ink); text-decoration: none; transition: border-color .2s; }
.bd-service:hover { color: var(--bd-ink); text-decoration: none; border-color: var(--bd-primary); }
.bd-service .bd-icon { margin-bottom: 6px; }
.bd-service:hover .bd-icon { color: #fff; background: var(--bd-primary); }
.bd-service h3 { margin: 0; font-size: 17px; font-weight: 700; line-height: 1.35; }
.bd-service p { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--bd-muted); }
.bd-service__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--bd-line); font-size: 13px; color: var(--bd-muted); }
.bd-note a { font-weight: 600; color: var(--bd-primary); }

/* Application form */
.bd-apply { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 24px; align-items: start; }
.bd-form--stack { grid-template-columns: minmax(0, 1fr); gap: 18px; }
.bd-form__intro h2 { margin-bottom: 4px; font-size: 18px; font-weight: 700; }
.bd-form__intro p { margin: 0; font-size: 14px; color: var(--bd-muted); }
.bd-form__text { margin: 8px 0 0; padding-top: 16px; border-top: 1px solid var(--bd-line); font-size: 14.5px; line-height: 1.6; color: var(--bd-muted); }
.bd-form--stack .bd-form__foot { justify-content: space-between; align-items: center; gap: 16px; padding-top: 18px; border-top: 1px solid var(--bd-line); }
.bd-form--stack .bd-form__foot p { margin: 0; font-size: 13.5px; color: var(--bd-muted); }
.bd-alert { padding: 14px 16px; border: 1px solid #e8c3b9; border-radius: 8px; font-size: 14.5px; color: #8a3523; background: #fbefeb; }

.bd-apply__side { position: sticky; top: calc(var(--bd-header-h) + 20px); display: grid; gap: 16px; }
.bd-side { padding: 22px; }
.bd-side h2 { margin-bottom: 12px; font-size: 16px; font-weight: 700; }
.bd-side p { margin: 12px 0 0; font-size: 14px; line-height: 1.55; color: var(--bd-muted); }
.bd-side h2 + p { margin-top: 0; }
.bd-side .bd-link { margin-top: 10px; }
.bd-checklist { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; font-size: 15px; }
.bd-checklist li { display: flex; gap: 10px; line-height: 1.45; }
.bd-checklist li::before {
    content: "";
    flex: none;
    width: 18px;
    height: 18px;
    margin-top: 1px;
    border-radius: 50%;
    background: var(--bd-primary-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%231e5b3a' stroke-width='3'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E") no-repeat center;
}

@media (max-width: 991.98px) {
    .bd-apply { grid-template-columns: minmax(0, 1fr); }
    .bd-apply__side { position: static; order: -1; } /* requirements before the form on small screens */
    .bd-steps { grid-template-columns: minmax(0, 1fr); gap: 14px; }
}
@media (max-width: 575.98px) {
    .bd-form--stack .bd-form__foot { flex-direction: column; align-items: stretch; }
}
.bd-services > [hidden] { display: none; }

/* =====================================================================
   Auth (login)
   ===================================================================== */
.bd-auth { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); min-height: 100dvh; }
.bd-auth__aside {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 40px 48px;
    overflow: hidden;
    color: #fff;
    background: #17402a;
}
/* photo under a solid green wash so text stays readable whatever the image */
.bd-auth__aside::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--bd-auth-img, none) center / cover no-repeat;
    opacity: .28;
    filter: grayscale(.3);
}
.bd-auth__aside > * { position: relative; }
.bd-auth__brand { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; }
.bd-auth__brand:hover { color: #fff; text-decoration: none; }
.bd-auth__brand img { flex: none; width: 44px; height: 44px; object-fit: contain; }
.bd-auth__brand strong { display: block; font-size: 16px; }
.bd-auth__brand small { display: block; font-size: 13px; color: rgba(255, 255, 255, .72); }
.bd-auth__claim { max-width: 26ch; }
.bd-auth__claim p { margin: 0 0 12px; font-size: 12.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #e3cfa6; }
.bd-auth__claim h2 { font-size: clamp(26px, 2.6vw, 34px); font-weight: 700; line-height: 1.25; letter-spacing: -.02em; }

.bd-auth__main { display: grid; place-items: center; padding: 40px 24px; background: var(--bd-bg); }
.bd-auth__box { width: 100%; max-width: 380px; }
.bd-auth__logo { display: none; width: 56px; height: 56px; margin-bottom: 20px; object-fit: contain; }
.bd-auth__box h1 { margin-bottom: 6px; font-size: 30px; font-weight: 700; letter-spacing: -.02em; }
.bd-auth__lead { margin: 0 0 28px; font-size: 15px; color: var(--bd-muted); }
.bd-auth .bd-alert { margin-bottom: 20px; }
.bd-auth__form { display: grid; gap: 18px; }
.bd-auth__form .bd-field input[aria-invalid="true"] { border-color: #c9705c; }
.bd-auth__submit { width: 100%; height: 48px; margin-top: 4px; }
.bd-auth__back { display: inline-flex; align-items: center; gap: 6px; margin-top: 28px; font-size: 14px; color: var(--bd-muted); text-decoration: none; }
.bd-auth__back:hover { color: var(--bd-ink); }

.bd-password { position: relative; }
.bd-password input { padding-right: 96px; }
.bd-password button {
    position: absolute;
    top: 50%;
    right: 6px;
    height: 34px;
    padding: 0 12px;
    border: 0;
    border-radius: 6px;
    font: 600 13px var(--bd-font);
    color: var(--bd-primary);
    background: transparent;
    transform: translateY(-50%);
    cursor: pointer;
}
.bd-password button:hover { background: var(--bd-primary-tint); }

@media (max-width: 899.98px) {
    .bd-auth { grid-template-columns: minmax(0, 1fr); }
    .bd-auth__aside { display: none; }
    .bd-auth__logo { display: block; }
}

/* =====================================================================
   Motion: navigation progress + hover lift
   ===================================================================== */
.bd-navprogress {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 10000;
    width: 100%;
    height: 3px;
    background: var(--bd-accent);
    transform: scaleX(0);
    transform-origin: left;
    opacity: 0;
    pointer-events: none;
}
.bd-navprogress.is-loading { opacity: 1; transform: scaleX(.9); transition: transform 6s cubic-bezier(.08, .8, .2, 1), opacity .1s; }

@media (prefers-reduced-motion: no-preference) {
    /* `translate` (not `transform`) so the lift composes with the reveal animation's transform */
    .js :is(.bd-quick__item, .bd-service, .bd-dkpi, .bd-product, .bd-video, .bd-member)[data-reveal] {
        transition: opacity .6s var(--bd-ease) calc(var(--d, 0) * 70ms), transform .6s var(--bd-ease) calc(var(--d, 0) * 70ms), translate .25s var(--bd-ease), border-color .2s, background-color .2s;
    }
    :is(.bd-quick__item, .bd-service, .bd-dkpi, .bd-product, .bd-video, .bd-member) { transition: translate .25s var(--bd-ease), border-color .2s, background-color .2s; }
    :is(.bd-quick__item, .bd-service, .bd-dkpi, .bd-product):hover { translate: 0 -3px; }
    :is(.bd-video, .bd-member):hover { translate: 0 -2px; }
    .bd-btn:hover { transform: translateY(-1px); }
    .bd-btn:active { transform: translateY(1px); }
}

/* =====================================================================
   Error pages
   ===================================================================== */
.bd-error { display: flex; flex-direction: column; min-height: 100dvh; }
.bd-error__top { padding: 0 20px; height: 72px; display: flex; align-items: center; justify-content: center; border-top: 3px solid var(--bd-primary); border-bottom: 1px solid var(--bd-line); background: var(--bd-surface); }
.bd-error__top .bd-brand { margin: 0; max-width: 1160px; width: 100%; }
.bd-error__main { flex: 1; display: grid; place-items: center; padding: 56px 20px; }
.bd-error__box { width: 100%; max-width: 560px; text-align: center; }
.bd-error__code {
    display: inline-block;
    margin: 0 0 18px;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--bd-primary);
    background: var(--bd-primary-tint);
}
.bd-error__box h1 { margin: 0 0 12px; font-size: clamp(28px, 4vw, 40px); font-weight: 700; letter-spacing: -.02em; line-height: 1.15; }
.bd-error__msg { margin: 0 auto 28px; max-width: 46ch; font-size: 16.5px; line-height: 1.65; color: var(--bd-muted); }
.bd-error__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.bd-error__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--bd-line); font-size: 14.5px; color: var(--bd-muted); }
.bd-error__links span { flex-basis: 100%; }
.bd-error__links a { font-weight: 600; color: var(--bd-primary); text-decoration: none; }
.bd-error__links a:hover { text-decoration: underline; text-underline-offset: 3px; }
.bd-error__foot { padding: 20px; text-align: center; font-size: 13px; color: var(--bd-muted); border-top: 1px solid var(--bd-line); }
@media (max-width: 575.98px) { .bd-error__actions .bd-btn { flex: 1; } }
