:root {
    --blue: #0F7BC1;
    --blue-dark: #0A5A91;
    --yellow: #F7A81B;
    --red: #EF4136;
    --cyan: #00AEEF;
    --ink: #1f2933;
    --muted: #5b6770;
    --bg-soft: #f4f8fb;
    --nav-h: 56px;      /* diperbarui otomatis oleh main.js */
    --header-h: 170px;  /* tinggi bar logo + navbar, diperbarui oleh main.js */
}

html { scroll-padding-top: calc(var(--nav-h) + 8px); }
body { font-family: 'Montserrat', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; color: var(--ink); background: #fff; }
a { color: var(--blue); }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
main:focus { outline: none; }
.skip-link { position: absolute; z-index: 2000; background: #fff; padding: .5rem 1rem; }

/* ---------- Header baris 1: bar logo ---------- */
.logo-bar {
    background: #fff;
    padding: .6rem 0;
    border-bottom: 4px solid;
    border-image: linear-gradient(90deg, var(--blue) 0 25%, var(--yellow) 25% 50%, var(--red) 50% 75%, var(--cyan) 75% 100%) 1;
}
.logo-bar__inner { display: grid; grid-template-columns: repeat(2, 1fr); gap: .5rem 1rem; align-items: center; }
.logo-bar__item { display: flex; align-items: center; justify-content: center; min-width: 0; }
.logo-bar__item img { height: 36px; width: auto; max-width: 100%; object-fit: contain; }
@media (min-width: 768px) {
    .logo-bar__inner { display: flex; justify-content: space-between; gap: 1rem; }
    .logo-bar__item img { height: 56px; }
}
@media (min-width: 1200px) { .logo-bar__item img { height: 64px; } }

/* ---------- Header baris 2: navbar ---------- */
.main-nav { background: var(--blue); padding: 0; }
.main-nav .container { min-height: 48px; }
.main-nav .navbar-brand { color: #fff; font-weight: 700; font-size: .95rem; }
.main-nav .navbar-toggler { border: 1px solid rgba(255, 255, 255, .7); color: #fff; font-size: 1.5rem; line-height: 1; padding: .2rem .5rem; }
.main-nav .navbar-toggler:focus { box-shadow: 0 0 0 .2rem rgba(247, 168, 27, .6); }
.main-nav .offcanvas { background: var(--blue); }
.main-nav .offcanvas-title { color: #fff; font-weight: 700; font-size: 1rem; }
.main-nav .nav-link { color: #fff; font-weight: 600; font-size: .9rem; }
.main-nav .nav-link:hover, .main-nav .nav-link:focus { color: #fff; background: rgba(255, 255, 255, .14); }
.main-nav .nav-link.active { color: #fff; }
.main-nav .dropdown-item { font-weight: 500; white-space: normal; }
.main-nav .dropdown-menu { margin: 0; }

.submenu-toggle {
    display: none;
    background: transparent; border: 0; border-left: 1px solid rgba(255, 255, 255, .2);
    color: #fff; width: 3rem;
}
.submenu-toggle i { transition: transform .2s; }
.submenu-toggle.is-open i { transform: rotate(180deg); }

/* Mobile & tablet (< xl): offcanvas + accordion */
@media (max-width: 1199.98px) {
    .main-nav .offcanvas-body { padding: 0 0 1rem; }
    .main-nav .navbar-nav > li { border-top: 1px solid rgba(255, 255, 255, .18); }
    .main-nav .nav-link { padding: .85rem 1rem; }
    .main-nav .nav-link.active { box-shadow: inset 4px 0 0 var(--yellow); }

    .main-nav li.dropdown, .main-nav li.dropdown-submenu { display: flex; flex-wrap: wrap; align-items: stretch; }
    .main-nav li.dropdown > a, .main-nav li.dropdown-submenu > a { flex: 1 1 0; min-width: 0; }
    .submenu-toggle { display: block; }
    .main-nav .dropdown-toggle::after { display: none; }

    .main-nav .dropdown-menu {
        flex: 0 0 100%; position: static; border: 0; border-radius: 0; padding: 0;
        background: rgba(0, 0, 0, .16); box-shadow: none;
    }
    .main-nav .dropdown-menu .dropdown-menu { background: rgba(0, 0, 0, .12); }
    .main-nav .dropdown-menu.is-open { display: block; }

    .main-nav .dropdown-item { color: #fff; padding: .65rem 1rem .65rem 1.5rem; }
    .main-nav .dropdown-menu .dropdown-menu .dropdown-item { padding-left: 2.25rem; }
    .main-nav .dropdown-item:hover, .main-nav .dropdown-item:focus { background: rgba(255, 255, 255, .14); color: #fff; }
    .main-nav .dropdown-item.active { background: rgba(255, 255, 255, .2); color: #fff; font-weight: 700; box-shadow: inset 4px 0 0 var(--yellow); }
}

/* Desktop (>= xl): dropdown muncul saat hover / fokus keyboard */
@media (min-width: 1200px) {
    .main-nav .offcanvas-body { flex-grow: 1; }
    .main-nav .navbar-nav { width: 100%; justify-content: space-between; }
    .main-nav .nav-link { padding: .95rem .75rem; }
    .main-nav .nav-link.active { box-shadow: inset 0 -4px 0 var(--yellow); }

    .main-nav .dropdown-menu {
        top: 100%; left: 0; min-width: 17rem; max-width: 26rem; padding: .5rem 0;
        border: 0; border-top: 3px solid var(--yellow); border-radius: 0 0 .5rem .5rem;
        box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .18);
    }
    .main-nav .dropdown-item { font-size: .875rem; padding: .55rem 1.1rem; }
    .main-nav .dropdown-item:hover, .main-nav .dropdown-item:focus,
    .main-nav .dropdown-item.active { background: #e8f3fb; color: var(--blue-dark); }
    .main-nav .dropdown-item.active { font-weight: 700; }

    .main-nav .dropdown:hover > .dropdown-menu,
    .main-nav .dropdown:focus-within > .dropdown-menu,
    .main-nav .dropdown-submenu:hover > .dropdown-menu,
    .main-nav .dropdown-submenu:focus-within > .dropdown-menu { display: block; }

    .main-nav .dropdown-submenu { position: relative; }
    .main-nav .dropdown-submenu > .dropdown-menu { top: -.5rem; left: 100%; border-radius: .5rem; }
    .main-nav .dropdown-submenu > .dropdown-toggle::after { float: right; margin-top: .6em; transform: rotate(-90deg); }

    /* 3 menu terakhir dibuka ke kiri agar tidak keluar layar */
    .main-nav .navbar-nav > .nav-item:nth-last-child(-n+3) > .dropdown-menu { left: auto; right: 0; }
}

/* ---------- Breadcrumb ---------- */
.breadcrumb-bar { background: var(--bg-soft); border-bottom: 1px solid #e3ebf1; }
.breadcrumb-bar .breadcrumb { margin: 0; padding: .75rem 0; font-size: .85rem; }
.breadcrumb-bar .breadcrumb-item.active { color: var(--muted); }

/* ---------- Konten halaman ---------- */
.page-content { padding: 2rem 0 3rem; min-height: 55vh; }
.page-title {
    position: relative; font-weight: 700; font-size: 1.75rem; color: var(--blue-dark);
    margin-bottom: 1.5rem; padding-bottom: .7rem;
}
.page-title::after {
    content: ""; position: absolute; left: 0; bottom: 0; width: 72px; height: 4px;
    background: linear-gradient(90deg, var(--yellow), var(--red));
}
.menu-card {
    display: flex; gap: .85rem; align-items: flex-start; height: 100%;
    padding: 1rem 1.1rem; background: #fff; color: var(--ink); text-decoration: none;
    border: 1px solid #dbe6ee; border-radius: .6rem; transition: box-shadow .2s, border-color .2s, transform .2s;
}
.menu-card:hover, .menu-card:focus-visible {
    border-color: var(--blue); box-shadow: 0 .25rem .75rem rgba(15, 123, 193, .15); transform: translateY(-2px); color: var(--ink);
}
.menu-card i { color: var(--blue); font-size: 1.4rem; line-height: 1.2; }
.menu-card__title { font-weight: 600; }

/* ---------- Footer (4 kolom) ---------- */
.site-footer { background: var(--blue-dark); color: #e8f1f8; border-top: 4px solid var(--yellow); }
.site-footer a { color: #fff; }

.footer-grid { display: grid; grid-template-columns: 1.3fr 1.2fr 1.2fr .9fr; gap: 2rem; padding: 3rem 0 2.5rem; }
@media (max-width: 991.98px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 575.98px) { .footer-grid { grid-template-columns: 1fr; gap: 2.25rem; } }

.footer-title { color: #fff; font-size: 1rem; font-weight: 700; margin-bottom: 1rem; padding-bottom: .5rem; border-bottom: 3px solid var(--yellow); display: inline-block; }

.footer-col__logo { height: 56px; width: auto; margin-bottom: 1rem; }
.footer-col__desc { font-size: .875rem; line-height: 1.6; color: #d5e6f2; margin: 0; }

.footer-contact { list-style: none; padding: 0; margin: 0 0 1.25rem; font-size: .9rem; }
.footer-contact li { display: flex; gap: .65rem; align-items: flex-start; margin-bottom: .75rem; line-height: 1.5; }
.footer-contact i { color: var(--yellow); font-size: 1.05rem; margin-top: .15rem; flex: 0 0 auto; }
.footer-contact a { color: #fff; text-decoration: none; }
.footer-contact a:hover { text-decoration: underline; }

.footer-social { display: flex; gap: .6rem; }
.footer-social a {
    width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
    background: rgba(255, 255, 255, .12); color: #fff; font-size: 1.1rem; transition: background .2s;
}
.footer-social a:hover { background: var(--yellow); color: var(--blue-dark); }

.footer-map { border: 0; width: 100%; height: 190px; border-radius: .5rem; filter: grayscale(.15); }
.footer-map-link { display: inline-block; margin-top: .6rem; font-size: .8rem; color: #cfe5f4; }

.footer-qr { text-align: center; }
.footer-qr img { width: 128px; height: 128px; background: #fff; border-radius: .5rem; padding: .5rem; }
.footer-qr p { font-size: .8rem; color: #d5e6f2; margin: .75rem 0 0; }

.footer-bottom { background: rgba(0, 0, 0, .2); font-size: .8rem; }

/* =====================================================
   BERANDA (Fase 4)
   ===================================================== */

/* ---------- Carousel fullscreen ---------- */
.hero-carousel { position: relative; background: var(--blue-dark); }
.hero-carousel .carousel-item {
    height: calc(100vh - var(--header-h));
    min-height: 340px;
    background: linear-gradient(135deg, var(--blue) 0%, var(--cyan) 100%); /* cadangan bila gambar belum ada */
}
@supports (height: 100svh) {
    .hero-carousel .carousel-item { height: calc(100svh - var(--header-h)); }
}
.hero-carousel .carousel-item:nth-child(2) { background: linear-gradient(135deg, var(--blue-dark), var(--blue)); }
.hero-carousel .carousel-item:nth-child(3) { background: linear-gradient(135deg, #b3261e, var(--red)); }
.hero-carousel .carousel-item img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(6, 40, 66, .85) 0%, rgba(6, 40, 66, .5) 55%, rgba(6, 40, 66, .15) 100%);
}
.hero-caption { position: absolute; inset: 0; display: flex; align-items: center; z-index: 1; }
.hero-caption .container { padding-inline: 3.5rem; }
.hero-caption__box { max-width: 640px; color: #fff; }
.hero-title { font-weight: 700; font-size: clamp(1.6rem, 4vw, 3rem); line-height: 1.2; margin-bottom: 1rem; text-shadow: 0 2px 8px rgba(0, 0, 0, .4); }
.hero-text { font-size: clamp(.95rem, 1.6vw, 1.2rem); margin-bottom: 1.5rem; text-shadow: 0 1px 4px rgba(0, 0, 0, .4); }
.hero-carousel .carousel-indicators { z-index: 3; }
.hero-carousel .carousel-control-prev, .hero-carousel .carousel-control-next { z-index: 3; width: 6%; min-width: 3rem; }


@media (max-width: 575.98px) {
    .hero-caption .container { padding-inline: 3rem; }
    .hero-overlay { background: linear-gradient(0deg, rgba(6, 40, 66, .85), rgba(6, 40, 66, .45)); }
}

/* ---------- Section umum ---------- */
.section { padding: 3.5rem 0; }
.section--soft { background: var(--bg-soft); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 1rem; margin-bottom: 1.75rem; }
.section-title {
    position: relative; margin: 0; padding-bottom: .7rem;
    font-weight: 700; font-size: 1.5rem; color: var(--blue-dark);
}
.section-title::after {
    content: ""; position: absolute; left: 0; bottom: 0; width: 72px; height: 4px;
    background: linear-gradient(90deg, var(--yellow), var(--red));
}

/* ---------- Layanan Cepat ---------- */
.accent-blue   { --accent: var(--blue);   --on-accent: #fff; }
.accent-yellow { --accent: var(--yellow); --on-accent: #1f2933; }
.accent-red    { --accent: var(--red);    --on-accent: #fff; }
.accent-cyan   { --accent: var(--cyan);   --on-accent: #062843; }

.service-card {
    display: flex; flex-direction: column; align-items: flex-start; height: 100%;
    padding: 1.5rem; background: #fff; color: var(--ink); text-decoration: none;
    border: 1px solid #dbe6ee; border-top: 5px solid var(--accent, var(--blue)); border-radius: .75rem;
    transition: transform .2s, box-shadow .2s;
}
.service-card:hover, .service-card:focus-visible {
    transform: translateY(-4px); box-shadow: 0 .5rem 1.25rem rgba(10, 90, 145, .15); color: var(--ink);
}
.service-card__icon {
    width: 56px; height: 56px; margin-bottom: 1rem; border-radius: 50%;
    display: grid; place-items: center; font-size: 1.6rem;
    background: var(--accent, var(--blue)); color: var(--on-accent, #fff);
}
.service-card__title { font-weight: 700; font-size: 1.05rem; margin-bottom: .35rem; }
.service-card__desc { color: var(--muted); font-size: .9rem; }

/* ---------- Pengumuman ---------- */
.announce-item { display: flex; gap: 1.25rem; align-items: flex-start; padding: 1rem 0; border-bottom: 1px solid #dbe6ee; }
.announce-item:last-child { border-bottom: 0; }
.announce-date {
    flex: 0 0 76px; text-align: center; padding: .5rem .25rem; border-radius: .5rem;
    background: var(--blue); color: #fff; line-height: 1.1;
}
.announce-date__day { display: block; font-size: 1.6rem; font-weight: 700; }
.announce-date__month { display: block; font-size: .75rem; font-weight: 500; }
.announce-title { font-size: 1.05rem; font-weight: 600; margin: 0; }
.announce-title a { color: var(--ink); text-decoration: none; }
.announce-title a:hover { color: var(--blue); text-decoration: underline; }

/* ---------- Statistik ---------- */
.stats-band { background: linear-gradient(135deg, var(--blue-dark), var(--blue)); color: #fff; }
.stats-band .section-title { color: #fff; }
.stat { text-align: center; padding: 1rem .5rem; }
.stat i { font-size: 1.9rem; color: var(--yellow); }
.stat__num {
    display: flex; align-items: center; justify-content: center;
    min-height: 3.25rem; font-size: clamp(2rem, 5vw, 3rem); font-weight: 700; line-height: 1.1;
    margin-top: .35rem; white-space: nowrap;
}
.stat__num--sm { font-size: clamp(.95rem, 3.2vw, 1.85rem); }
.stat__label { margin-top: .5rem; font-size: .9rem; font-weight: 500; }

/* ---------- Tautan Terkait ---------- */
.link-tile {
    display: flex; align-items: center; gap: .75rem; height: 100%;
    padding: .9rem 1rem; background: #fff; color: var(--ink); text-decoration: none;
    border: 1px solid #dbe6ee; border-radius: .6rem; font-weight: 600; font-size: .9rem;
    transition: border-color .2s, background .2s;
}
.link-tile i { color: var(--blue); font-size: 1.35rem; }
.link-tile:hover, .link-tile:focus-visible { border-color: var(--blue); background: #f0f8fd; color: var(--blue-dark); }

/* ---------- FAQ ---------- */
.accordion-button { font-weight: 600; }
.accordion-button:not(.collapsed) { background: #e8f3fb; color: var(--blue-dark); }

/* =====================================================
   HALAMAN STATIS (Fase 5)
   ===================================================== */
.page-lead { font-size: 1.1rem; line-height: 1.7; margin-bottom: 1.5rem; }
.menu-card__desc { color: var(--muted); font-size: .85rem; font-weight: 400; margin-top: .25rem; }

.external-box {
    padding: 1.25rem 1.5rem; margin-bottom: 1.5rem;
    background: #f0f8fd; border: 1px solid #cfe5f4; border-radius: .6rem;
}
.notice-box {
    display: flex; gap: .9rem; align-items: flex-start; padding: 1rem 1.25rem;
    background: #fff8e6; border: 1px solid #f3d58a; border-left: 5px solid var(--yellow); border-radius: .5rem;
}
.notice-box i { color: #8a5a00; font-size: 1.4rem; line-height: 1.2; }
.cta-box { margin-top: 2.5rem; padding: 1.5rem; background: var(--bg-soft); border-radius: .75rem; }

.side-nav { border: 1px solid #dbe6ee; border-radius: .75rem; overflow: hidden; background: #fff; }
.side-nav__title { margin: 0; padding: .85rem 1rem; background: var(--blue); color: #fff; font-size: .95rem; font-weight: 700; }
.side-nav__link {
    display: block; padding: .65rem 1rem; color: var(--ink); text-decoration: none; font-size: .875rem;
    border-top: 1px solid #e3ebf1; border-left: 4px solid transparent;
}
.side-nav__link:hover, .side-nav__link:focus-visible { background: #f0f8fd; color: var(--blue-dark); }
.side-nav__link.active { background: #e8f3fb; color: var(--blue-dark); font-weight: 700; border-left-color: var(--yellow); }

/* =====================================================
   HALAMAN KHUSUS & FAQ (Fase 6)
   ===================================================== */

/* ---------- Teks: visi, misi, tugas & fungsi ---------- */
.content-heading { font-size: 1.25rem; font-weight: 700; color: var(--blue-dark); margin: 1.75rem 0 .75rem; }
.vision-quote {
    margin: 0 0 1.5rem; padding: 1.5rem 1.75rem; background: #f0f8fd;
    border-left: 6px solid var(--yellow); border-radius: .5rem;
    font-size: 1.25rem; font-weight: 600; line-height: 1.6; color: var(--blue-dark);
}
.vision-quote p { margin: 0; }
.content-list { padding-left: 1.25rem; }
.content-list li { margin-bottom: .6rem; line-height: 1.7; }

/* ---------- Prosedur: langkah/alur ---------- */
.steps { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.steps__item { position: relative; display: flex; gap: 1rem; padding-bottom: 1.5rem; }
.steps__item:not(:last-child)::before {
    content: ""; position: absolute; left: 19px; top: 44px; bottom: 4px; width: 2px; background: #cfe5f4;
}
.steps__num {
    flex: 0 0 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
    background: var(--blue); color: #fff; font-weight: 700;
}
.steps__title { font-size: 1.05rem; font-weight: 700; margin: .5rem 0 .25rem; }
.steps__body p { margin: 0; }

/* ---------- Tabel dokumen ---------- */
.doc-tools { max-width: 420px; margin-bottom: 1rem; }
.doc-table thead th { background: var(--blue); color: #fff; font-weight: 600; font-size: .875rem; white-space: nowrap; }
.doc-table td { font-size: .925rem; }

/* ---------- Gambar struktur organisasi ---------- */
.org-figure { margin: 0 0 1.5rem; text-align: center; }
.org-figure img { max-width: 100%; height: auto; border: 1px solid #dbe6ee; border-radius: .5rem; background: #fff; }
.org-figure figcaption { margin-top: .6rem; color: var(--muted); font-size: .875rem; }

/* ---------- FAQ ---------- */
.faq-tools { max-width: 480px; margin-bottom: 1.25rem; }

/* =====================================================
   HERO CAROUSEL FULL-BLEED (menu transparan di atas carousel, Beranda saja)
   ===================================================== */
body.home-hero .hero-carousel .carousel-item { height: 100vh; }
@supports (height: 100svh) {
    body.home-hero .hero-carousel .carousel-item { height: 100svh; }
}
body.home-hero .site-header {
    position: relative; z-index: 20;
    background: linear-gradient(180deg, rgba(6, 40, 66, .6) 0%, rgba(6, 40, 66, .28) 55%, transparent 100%);
}
body.home-hero .hero-carousel { margin-top: calc(-1 * var(--header-h)); }
body.home-hero .logo-bar { background: transparent; border-bottom: none; padding-top: 1rem; }
body.home-hero .logo-bar img { filter: drop-shadow(0 1px 4px rgba(0, 0, 0, .55)); }
body.home-hero .main-nav { background: transparent; }
body.home-hero .main-nav .navbar-toggler { border-color: rgba(255, 255, 255, .85); }
body.home-hero .main-nav .nav-link { text-shadow: 0 1px 3px rgba(0, 0, 0, .6); }

/* Di desktop (xl+), offcanvas jadi bar menu biasa (bukan drawer) — ikut transparan.
   Di mobile/tablet tetap solid biru (drawer .offcanvas sudah diberi latar biru di Fase 3). */
@media (min-width: 1200px) {
    body.home-hero .main-nav .offcanvas { background: transparent; }
}

/* =====================================================
   MENU AKSESIBILITAS
   ===================================================== */
.a11y-widget {
    --a11y-navy: #0B2A5B;
    --a11y-btn-bg: #F3F7FB;
    --a11y-btn-border: #D5E2EF;
    position: fixed;
    right: max(1.25rem, env(safe-area-inset-right, 0px));
    bottom: max(1.25rem, env(safe-area-inset-bottom, 0px));
    z-index: 1080;
    font-family: 'Montserrat', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;           /* tidak ikut membesar saat ukuran teks halaman diubah */
    line-height: 1.4;
    letter-spacing: normal; word-spacing: normal;
}

/* Tombol bulat mengambang di kanan bawah */
.a11y-toggle {
    position: relative;
    width: 60px; height: 60px; padding: 0; margin: 0;
    border: 0; border-radius: 50%;
    background: #0B4FA8; color: #fff;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    box-shadow: 0 .5rem 1.25rem rgba(11, 42, 91, .35);
    transition: background-color .2s, transform .2s;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}
/* Area klik diperluas sedikit ke segala sisi */
.a11y-toggle::before { content: ''; position: absolute; inset: -6px; border-radius: 50%; }
/* Ikon tidak menangkap klik, sehingga seluruh lingkaran merespons klik yang sama */
.a11y-toggle * { pointer-events: none; }
.a11y-toggle:hover { background: var(--a11y-navy); transform: scale(1.05); }
.a11y-toggle:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
.a11y-widget.is-open .a11y-toggle { background: var(--a11y-navy); }

/* Panel pop-up */
.a11y-panel {
    position: absolute; right: 0; bottom: calc(100% + 14px);
    width: 340px; max-width: calc(100vw - 2.5rem);
    max-height: calc(100vh - 110px); overflow-y: auto;
    background: #fff; color: var(--ink);
    border-radius: 18px;
    box-shadow: 0 1rem 2.5rem rgba(11, 42, 91, .22);
    padding: 1.25rem 1.1rem 1rem;
    transform-origin: bottom right;
    animation: a11yPop .18s ease-out;
}
.a11y-panel[hidden] { display: none; }
@keyframes a11yPop { from { opacity: 0; transform: translateY(8px) scale(.97); } to { opacity: 1; transform: none; } }

.a11y-panel__title {
    margin: 0 0 1rem; font-size: 1.125rem; font-weight: 700; color: var(--a11y-navy);
}

.a11y-size { display: grid; grid-template-columns: repeat(3, 1fr); gap: .65rem; margin-bottom: .65rem; }
.a11y-size .a11y-btn { background: #fff; font-weight: 700; font-size: .95rem; padding: .6rem .25rem; }

.a11y-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .55rem .65rem; }

.a11y-btn {
    display: flex; align-items: center; justify-content: center;
    width: 100%; min-height: 42px; padding: .55rem .4rem; margin: 0;
    border: 1px solid var(--a11y-btn-border); border-radius: 10px;
    background: var(--a11y-btn-bg); color: var(--a11y-navy);
    font: inherit; font-size: .8rem; font-weight: 600; text-align: center; line-height: 1.25;
    cursor: pointer;
    transition: background-color .15s, border-color .15s, color .15s;
}
.a11y-btn:hover { background: #E6EEF7; border-color: #B9CDE3; }
.a11y-btn:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
.a11y-option[aria-pressed="true"] { background: var(--a11y-navy); border-color: var(--a11y-navy); color: #fff; }

.a11y-reset {
    width: 100%; margin-top: .9rem; padding: .7rem;
    border: 0; border-radius: 10px;
    background: var(--a11y-navy); color: #fff;
    font: inherit; font-size: .9rem; font-weight: 700; cursor: pointer;
    transition: background-color .15s;
}
.a11y-reset:hover { background: #071D40; }
.a11y-reset:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }

.a11y-note { margin: .75rem 0 0; font-size: .72rem; line-height: 1.5; color: var(--muted); }

@media (max-width: 400px) {
    .a11y-widget { right: 1rem; bottom: 1rem; }
    .a11y-toggle { width: 54px; height: 54px; }
    .a11y-panel { width: calc(100vw - 2rem); padding: 1rem .9rem .85rem; }
}

/* ---------- Efek yang diaktifkan lewat menu aksesibilitas ---------- */
html.a11y-text-sm  { font-size: 90%; }
html.a11y-text-lg  { font-size: 112.5%; }
html.a11y-text-xl  { font-size: 125%; }
html.a11y-text-xxl { font-size: 137.5%; }

/* Skala abu-abu: filter dipasang pada elemen selain widget supaya tombol tetap fixed */
html.a11y-grayscale body > *:not(.a11y-widget) { filter: grayscale(1); }

html.a11y-underline-links a:not(.btn) { text-decoration: underline !important; }

html.a11y-readable-font body,
html.a11y-readable-font body *:not(.bi):not([class^="bi-"]):not([class*=" bi-"]) {
    font-family: Verdana, Tahoma, 'Segoe UI', Arial, sans-serif !important;
}

html.a11y-spacing body :is(p, li, dd, dt, td, th, blockquote, label, .page-body) {
    line-height: 1.9 !important; letter-spacing: .06em !important; word-spacing: .16em !important;
}
html.a11y-spacing body :is(p, li) { margin-bottom: 1.1em !important; }

html.a11y-big-cursor, html.a11y-big-cursor * {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48'%3E%3Cpath d='M6 3l30 21-13 2 8 16-6 3-8-16-11 9z' fill='%23000' stroke='%23fff' stroke-width='2.5' stroke-linejoin='round'/%3E%3C/svg%3E") 4 2, auto !important;
}
html.a11y-big-cursor :is(a, button, [role="button"], label, select, summary),
html.a11y-big-cursor :is(a, button, [role="button"], label, select, summary) * {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48'%3E%3Cpath d='M17 4a4 4 0 0 1 4 4v13l14 3c3 .7 4.5 3 4 6l-2.5 12H16L7 28c-1.5-2 .5-5 3-4l3 2V8a4 4 0 0 1 4-4z' fill='%23000' stroke='%23fff' stroke-width='2.5' stroke-linejoin='round'/%3E%3C/svg%3E") 16 4, pointer !important;
}

html.a11y-reduce-motion *, html.a11y-reduce-motion *::before, html.a11y-reduce-motion *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important; scroll-behavior: auto !important;
}

/* Mode gelap */
html.a11y-dark { color-scheme: dark; }
html.a11y-dark body { background: #0f1720 !important; color: #e3e9ef !important; }
html.a11y-dark .logo-bar, html.a11y-dark .breadcrumb-bar, html.a11y-dark .section--soft,
html.a11y-dark .menu-card, html.a11y-dark .service-card, html.a11y-dark .link-tile,
html.a11y-dark .side-nav, html.a11y-dark .external-box, html.a11y-dark .cta-box,
html.a11y-dark .doc-table, html.a11y-dark .card, html.a11y-dark .page-body blockquote {
    background-color: #17222e !important; color: #e3e9ef !important; border-color: #2c3b4b !important;
}
html.a11y-dark :is(h1, h2, h3, h4, h5, h6, .page-body h2, .page-body h3, .page-body h4) { color: #f1f5f9 !important; }
html.a11y-dark a:not(.btn) { color: #7cc4f5; }
html.a11y-dark .text-muted, html.a11y-dark .text-secondary { color: #a3b1bf !important; }
html.a11y-dark .main-nav, html.a11y-dark .site-footer { background-color: #0a1119 !important; }
html.a11y-dark .a11y-panel { background: #17222e; color: #e3e9ef; }
html.a11y-dark .a11y-panel__title { color: #fff; }
html.a11y-dark .a11y-btn { background: #1f2d3b; border-color: #34475a; color: #e3e9ef; }
html.a11y-dark .a11y-size .a11y-btn { background: #17222e; }
html.a11y-dark .a11y-btn:hover { background: #2a3b4d; }
html.a11y-dark .a11y-option[aria-pressed="true"] { background: #7cc4f5; border-color: #7cc4f5; color: #0b1a2a; }
html.a11y-dark .a11y-reset { background: #7cc4f5; color: #0b1a2a; }
html.a11y-dark .a11y-note { color: #a3b1bf; }

/* Kontras tinggi */
html.a11y-contrast body { background: #000 !important; color: #fff !important; }
html.a11y-contrast .logo-bar, html.a11y-contrast .breadcrumb-bar, html.a11y-contrast .section--soft,
html.a11y-contrast .menu-card, html.a11y-contrast .service-card, html.a11y-contrast .link-tile,
html.a11y-contrast .side-nav, html.a11y-contrast .external-box, html.a11y-contrast .cta-box,
html.a11y-contrast .doc-table, html.a11y-contrast .card, html.a11y-contrast .a11y-panel {
    background: #000 !important; color: #fff !important; border-color: #fff !important;
}
html.a11y-contrast :is(h1, h2, h3, h4, h5, h6) { color: #fff !important; }
html.a11y-contrast a { color: #ffd447 !important; }
html.a11y-contrast .main-nav, html.a11y-contrast .site-footer { background: #000 !important; }
html.a11y-contrast .btn-primary, html.a11y-contrast .btn-warning { background: #ffd447 !important; color: #000 !important; border-color: #ffd447 !important; }
html.a11y-contrast .a11y-panel { border: 2px solid #fff !important; }
html.a11y-contrast .a11y-panel__title, html.a11y-contrast .a11y-note { color: #fff !important; }
html.a11y-contrast .a11y-btn { background: #000 !important; color: #fff !important; border: 2px solid #fff !important; }
html.a11y-contrast .a11y-option[aria-pressed="true"], html.a11y-contrast .a11y-reset,
html.a11y-contrast .a11y-toggle { background: #ffd447 !important; color: #000 !important; border-color: #ffd447 !important; }

/* =====================================================
   NAVBAR TETAP DI ATAS (pin via JS, menggantikan sticky-top)
   ===================================================== */
#navSentinel { height: 0; }
.main-nav { position: relative; z-index: 1030; }
.main-nav.is-pinned { position: fixed; top: 0; left: 0; right: 0; }
.main-nav-spacer { height: 0; overflow: hidden; }
.main-nav-spacer.is-active { height: var(--nav-h); }

/* Di Beranda: navbar transparan saat masih di atas carousel,
   tapi begitu terkunci (sudah discroll), kembali solid biru agar tetap terbaca
   di atas konten biasa (bukan lagi di atas gambar carousel). */
body.home-hero .main-nav.is-pinned { background: var(--blue); }
body.home-hero .main-nav.is-pinned .nav-link { text-shadow: none; }
@media (min-width: 1200px) {
    body.home-hero .main-nav.is-pinned .offcanvas { background: var(--blue); }
}

/* =====================================================
   PROFIL SINGKAT (foto membungkus teks, seperti referensi)
   ===================================================== */
.profil-singkat { overflow: hidden; } /* clearfix supaya tinggi kontainer ikut menyesuaikan foto */
.profil-singkat__photo {
    float: left; width: 220px; max-width: 40%; height: auto;
    margin: 0 1.5rem 1rem 0; border-radius: .5rem; border: 1px solid #dbe6ee;
}
.profil-singkat__closing { clear: both; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid #dbe6ee; }

@media (max-width: 575.98px) {
    .profil-singkat__photo { float: none; display: block; margin: 0 auto 1.25rem; width: 180px; max-width: 60%; }
}

/* =====================================================
   KONTEN HALAMAN DARI DATABASE (page-body, HTML dari admin)
   ===================================================== */
.page-body { font-size: 1.05rem; line-height: 1.75; margin-bottom: 1.5rem; }
.page-body p { margin-bottom: 1rem; }
.page-body h2, .page-body h3, .page-body h4 { color: var(--blue-dark); font-weight: 700; margin: 1.5rem 0 .75rem; }
.page-body ul, .page-body ol { padding-left: 1.25rem; margin-bottom: 1rem; }
.page-body blockquote { margin: 0 0 1.5rem; padding: 1.25rem 1.5rem; background: #f0f8fd; border-left: 6px solid var(--yellow); border-radius: .5rem; }
