/* ==========================================================================
   PUSAT DATA KEPEGAWAIAN DAN TATA LAKSANA
   Pengadilan Negeri Jakarta Selatan Kelas IA Khusus

   Mandiri penuh - tidak memuat Bootstrap maupun font ikon.
   Ikon memakai sprite SVG inline (pusatdata/_icons.php).
   ========================================================================== */

/* ==========================================================================
   1. TOKEN
   ========================================================================== */

:root {
    /* Hijau lambang */
    --g900: #042c18;
    --g800: #073f26;
    --g700: #0a5732;
    --g600: #0f6f41;
    --g500: #158a52;
    --g400: #2fa96c;
    --g300: #7cc3a1;
    --g100: #d6ecdf;
    --g050: #eef7f2;

    /* Emas lambang */
    --y700: #7d5f0d;
    --y600: #a67f16;
    --y500: #c9a227;
    --y400: #e0bc4f;
    --y100: #f6e9c2;
    --y050: #fdf8ea;

    /* Netral */
    --ink: #0e2018;
    --body: #3b4d45;
    --muted: #6b7d74;
    --faint: #93a49b;
    --line: #e4ece8;
    --line2: #cddbd4;
    --bg: #f4f8f6;
    --card: #ffffff;
    --card2: #f9fbfa;

    /* Aksen data */
    --info: #1668a8;
    --danger: #b02a2a;

    /* Radius */
    --r1: .5rem;
    --r2: .75rem;
    --r3: 1rem;
    --r4: 1.5rem;
    --r5: 2rem;

    /* Bayangan */
    --sh1: 0 1px 2px rgba(7, 63, 38, .04), 0 3px 10px rgba(7, 63, 38, .05);
    --sh2: 0 2px 4px rgba(7, 63, 38, .05), 0 12px 28px rgba(7, 63, 38, .08);
    --sh3: 0 24px 56px rgba(7, 63, 38, .13);

    --nav: 3.85rem;        /* tinggi bilah mengambang */
    --nav-top: .8rem;      /* jarak bilah dari tepi atas layar */
    --nav-w: 1180px;       /* lebar maksimum bilah */
    --ease: cubic-bezier(.22, 1, .36, 1);
}

/* ==========================================================================
   2. RESET RINGKAS (pengganti reboot Bootstrap)
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--nav) + var(--nav-top) + 1rem);
}

body {
    background: var(--bg);
    color: var(--body);
    font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    font-size: .95rem;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    padding-top: calc(var(--nav) + var(--nav-top) * 2);
    overflow-x: hidden;
}

h1, h2, h3, h4 { line-height: 1.2; font-weight: 800; color: var(--ink); letter-spacing: -.015em; }
p { line-height: 1.65; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input { font: inherit; }
ul { list-style: none; padding: 0; }
table { border-collapse: collapse; width: 100%; }

:focus-visible { outline: 2px solid var(--g500); outline-offset: 3px; border-radius: 4px; }

/* Ikon sprite */
.pd-i {
    width: 1.25em; height: 1.25em;
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ==========================================================================
   3. TATA LETAK & UTILITAS MINIMAL
   ========================================================================== */

.pd-shell { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: 1.25rem; }

.pd-grid { display: grid; gap: 1.15rem; }
.pd-g-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pd-g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
/* Pembagian tak sama rata. JANGAN ditulis sebagai style inline di HTML -
   inline style mengalahkan media query, sehingga kolomnya tidak mau menumpuk
   di layar kecil dan isi kartu ikut terpotong. */
.pd-g-5-7 { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.pd-g-auto { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

.pd-row { display: flex; flex-wrap: wrap; gap: .6rem; }
.pd-center { justify-content: center; }
.pd-mt { margin-top: 1.5rem; }
.pd-mb { margin-bottom: 1rem; }
.pd-small { font-size: .82rem; }
.pd-muted { color: var(--muted); }
.pd-faint { color: var(--faint); }
.pd-ink { color: var(--ink); }
.pd-hidden { display: none !important; }
.pd-sr {
    position: absolute; width: 1px; height: 1px;
    padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.pd-eyebrow {
    font-size: .7rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase;
    color: var(--g600); margin-bottom: .5rem;
}
.pd-rule {
    width: 3.5rem; height: 3px; border-radius: 999px; margin-bottom: 1.15rem;
    background: linear-gradient(90deg, var(--g600), var(--y500));
}

/* ==========================================================================
   4. TOMBOL
   ========================================================================== */

.pd-btn {
    display: inline-flex; align-items: center; gap: .45rem;
    font-size: .84rem; font-weight: 700;
    padding: .65rem 1.15rem;
    border-radius: var(--r2);
    border: 1px solid transparent;
    white-space: nowrap;
    transition: transform .2s var(--ease), box-shadow .2s var(--ease), background-color .2s, color .2s, border-color .2s;
}
.pd-btn .pd-i { width: 1.05em; height: 1.05em; }

.pd-btn-primary {
    background: linear-gradient(135deg, var(--g700), var(--g500));
    color: #fff;
    box-shadow: 0 8px 20px rgba(10, 87, 50, .24);
}
.pd-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 28px rgba(10, 87, 50, .3); }

.pd-btn-ghost { background: #fff; color: var(--g700); border-color: var(--line2); }
.pd-btn-ghost:hover { background: var(--g050); border-color: var(--g300); transform: translateY(-2px); }

/* ==========================================================================
   5. NAVBAR
   ========================================================================== */

/* Bilah mengambang ala "dynamic island": tidak menempel tepi kiri-kanan,
   melayang di tengah atas dan menyempit sedikit saat halaman digulir. */
.pd-nav {
    position: fixed; z-index: 100;
    top: var(--nav-top);
    left: 50%;
    width: min(var(--nav-w), calc(100% - 1.75rem));
    height: var(--nav);
    transform: translateX(-50%);
    display: flex; align-items: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, .78);
    backdrop-filter: saturate(180%) blur(18px);
    -webkit-backdrop-filter: saturate(180%) blur(18px);
    border: 1px solid var(--line);
    box-shadow: 0 6px 22px rgba(7, 63, 38, .08), 0 1px 2px rgba(7, 63, 38, .05);
    transition: width .35s var(--ease), background-color .3s, box-shadow .3s, border-color .3s;
}
.pd-nav.is-stuck {
    width: min(calc(var(--nav-w) - 110px), calc(100% - 1.75rem));
    background: rgba(255, 255, 255, .92);
    border-color: var(--line2);
    box-shadow: 0 12px 34px rgba(7, 63, 38, .13), 0 2px 4px rgba(7, 63, 38, .06);
}

.pd-nav-inner { display: flex; align-items: center; gap: 1rem; width: 100%; }
/* Di dalam pil, jarak tepi dibuat lebih rapat daripada pd-shell biasa */
.pd-nav .pd-shell { padding-inline: .85rem .7rem; max-width: none; }

.pd-brand { display: flex; align-items: center; gap: .7rem; min-width: 0; }
.pd-brand-logo {
    width: 2.7rem; height: 2.7rem; flex: 0 0 auto;
    display: grid; place-items: center;
    border-radius: .7rem; background: #fff;
    border: 1px solid var(--line); box-shadow: var(--sh1);
    overflow: hidden;
    transition: transform .3s var(--ease);
}
.pd-brand:hover .pd-brand-logo { transform: rotate(-6deg) scale(1.06); }
.pd-brand-logo img { width: 100%; height: 100%; object-fit: contain; padding: 2px; }
.pd-brand-text { min-width: 0; }
.pd-brand-title {
    display: block; font-size: .8rem; font-weight: 800; color: var(--ink); line-height: 1.2;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pd-brand-sub {
    display: block; font-size: .67rem; color: var(--muted); line-height: 1.3;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.pd-nav-links { display: flex; align-items: center; gap: .15rem; margin-left: auto; }
.pd-nav-link {
    position: relative;
    font-size: .82rem; font-weight: 600; color: var(--body);
    padding: .5rem .85rem; border-radius: var(--r1);
    transition: color .2s;
}
.pd-nav-link::after {
    content: ""; position: absolute; left: .85rem; right: .85rem; bottom: .3rem; height: 2px;
    border-radius: 2px; background: linear-gradient(90deg, var(--g600), var(--y500));
    transform: scaleX(0); transform-origin: left;
    transition: transform .3s var(--ease);
}
.pd-nav-link:hover { color: var(--g700); }
.pd-nav-link:hover::after { transform: scaleX(1); }

.pd-nav-toggle { display: none; padding: .5rem; border-radius: var(--r1); color: var(--ink); }
.pd-nav-toggle .pd-i { width: 1.5rem; height: 1.5rem; }
.pd-nav-toggle:hover { background: var(--g050); }

/* Panel menu di layar kecil - ikut mengambang di bawah bilah */
.pd-nav-mobile {
    position: fixed; z-index: 99;
    top: calc(var(--nav-top) + var(--nav) + .5rem);
    left: 50%;
    width: min(var(--nav-w), calc(100% - 1.75rem));
    transform: translateX(-50%);
    background: rgba(255, 255, 255, .96);
    backdrop-filter: saturate(180%) blur(18px);
    -webkit-backdrop-filter: saturate(180%) blur(18px);
    border: 1px solid var(--line);
    border-radius: var(--r3);
    box-shadow: var(--sh2);
    padding: .45rem 1rem .75rem;
    display: none;
    animation: pdSlideDown .28s var(--ease);
}
.pd-nav-mobile.is-open { display: block; }
.pd-nav-mobile a {
    display: flex; align-items: center; gap: .6rem;
    padding: .75rem .5rem; font-size: .9rem; font-weight: 600; color: var(--ink);
    border-bottom: 1px solid var(--line);
}
.pd-nav-mobile a:last-of-type { border-bottom: 0; }
.pd-nav-mobile a .pd-i { color: var(--g600); }

@keyframes pdSlideDown {
    from { opacity: 0; transform: translateX(-50%) translateY(-10px); }
    to   { opacity: 1; transform: translateX(-50%); }
}

/* ==========================================================================
   6. HERO
   ========================================================================== */

.pd-hero { position: relative; overflow: hidden; padding: 4rem 0 3.5rem; }

/* Lapisan gradasi bergerak pelan */
.pd-hero-bg { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.pd-blob {
    position: absolute; border-radius: 50%;
    filter: blur(70px);
    will-change: transform;
}
.pd-blob-1 { width: 30rem; height: 30rem; top: -12rem; left: -8rem; background: radial-gradient(circle, rgba(21,138,82,.28), transparent 70%); animation: pdFloat1 20s ease-in-out infinite alternate; }
.pd-blob-2 { width: 26rem; height: 26rem; top: -8rem; right: -6rem; background: radial-gradient(circle, rgba(201,162,39,.3), transparent 70%); animation: pdFloat2 24s ease-in-out infinite alternate; }
.pd-blob-3 { width: 22rem; height: 22rem; bottom: -12rem; left: 35%; background: radial-gradient(circle, rgba(47,169,108,.22), transparent 70%); animation: pdFloat3 28s ease-in-out infinite alternate; }

@keyframes pdFloat1 { to { transform: translate(6rem, 4rem) scale(1.15); } }
@keyframes pdFloat2 { to { transform: translate(-5rem, 5rem) scale(1.1); } }
@keyframes pdFloat3 { to { transform: translate(4rem, -4rem) scale(1.2); } }

/* Titik-titik halus */
.pd-hero-dots {
    position: absolute; inset: 0; pointer-events: none;
    background-image: radial-gradient(rgba(10, 87, 50, .1) 1px, transparent 1px);
    background-size: 24px 24px;
    -webkit-mask-image: radial-gradient(760px 380px at 22% 28%, #000, transparent 76%);
    mask-image: radial-gradient(760px 380px at 22% 28%, #000, transparent 76%);
}

.pd-hero-grid {
    position: relative; z-index: 1;
    display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 3rem; align-items: center;
}

.pd-chip {
    display: inline-flex; align-items: center; gap: .5rem;
    font-size: .72rem; font-weight: 700;
    padding: .45rem .9rem .45rem .55rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, .8);
    backdrop-filter: blur(8px);
    border: 1px solid var(--line);
    color: var(--g800);
    box-shadow: var(--sh1);
}
.pd-chip-dot {
    width: .5rem; height: .5rem; border-radius: 999px; background: var(--y500);
    box-shadow: 0 0 0 3px rgba(201, 162, 39, .22);
    animation: pdPulse 2.6s ease-in-out infinite;
}
@keyframes pdPulse {
    0%, 100% { box-shadow: 0 0 0 3px rgba(201, 162, 39, .22); }
    50%      { box-shadow: 0 0 0 6px rgba(201, 162, 39, .08); }
}

.pd-hero-title {
    font-size: clamp(2rem, 4.2vw, 3.35rem);
    font-weight: 800; line-height: 1.08; letter-spacing: -.03em;
    margin: 1.1rem 0 .9rem;
}
.pd-accent {
    background: linear-gradient(100deg, var(--g700) 0%, var(--g500) 45%, var(--y600) 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text; background-clip: text; color: transparent;
    animation: pdShimmer 8s ease-in-out infinite;
}
@keyframes pdShimmer { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }

.pd-hero-desc { font-size: 1rem; line-height: 1.75; max-width: 42rem; margin-bottom: 1.6rem; }

/* Pencarian */
.pd-search {
    display: flex; align-items: center; gap: .7rem;
    background: #fff;
    border: 1px solid var(--line2);
    border-radius: var(--r3);
    padding: .25rem .35rem .25rem 1rem;
    box-shadow: var(--sh2);
    max-width: 32rem;
    transition: border-color .2s, box-shadow .2s, transform .2s var(--ease);
}
.pd-search:focus-within {
    border-color: var(--g400);
    box-shadow: 0 0 0 4px rgba(21, 138, 82, .12), var(--sh2);
    transform: translateY(-1px);
}
.pd-search .pd-i { color: var(--faint); transition: color .2s; }
.pd-search:focus-within .pd-i { color: var(--g600); }
.pd-search input {
    flex: 1 1 auto; min-width: 0; border: 0; outline: 0; background: transparent;
    font-size: .93rem; color: var(--ink); padding: .7rem 0;
}
.pd-search input::placeholder { color: var(--faint); }
.pd-search-hint { font-size: .78rem; color: var(--muted); margin-top: .65rem; min-height: 1.2em; }

/* Statistik ringkas */
/* Menyesuaikan diri dengan jumlah ubin, tidak dipaku 4 kolom */
.pd-quickstats { display: grid; grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr)); gap: .75rem; margin-top: 2rem; }
.pd-qs {
    position: relative; overflow: hidden;
    background: rgba(255, 255, 255, .78);
    backdrop-filter: blur(8px);
    border: 1px solid var(--line);
    border-radius: var(--r2);
    padding: .9rem 1rem;
    box-shadow: var(--sh1);
    transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.pd-qs:hover { transform: translateY(-3px); box-shadow: var(--sh2); }
.pd-qs::before {
    content: ""; position: absolute; inset: 0 auto 0 0; width: 3px;
    background: linear-gradient(180deg, var(--g600), var(--y500));
}
.pd-qs-value { font-size: 1.6rem; font-weight: 800; color: var(--ink); line-height: 1.05; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.pd-qs-label { font-size: .72rem; color: var(--muted); font-weight: 600; margin-top: .2rem; }

/* Kartu lambang */
.pd-emblem {
    position: relative; overflow: hidden;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--r5);
    box-shadow: var(--sh3);
    padding: 2.25rem 1.75rem 1.6rem;
    text-align: center;
}
.pd-emblem::before {
    content: ""; position: absolute; inset: 0 0 auto 0; height: 5px;
    background: linear-gradient(90deg, var(--g700), var(--g500) 55%, var(--y500));
}
.pd-emblem-ring {
    width: 11.5rem; height: 11.5rem; margin: 0 auto 1rem;
    border-radius: 50%; display: grid; place-items: center;
    background: radial-gradient(circle at 50% 45%, #fff 0%, var(--g050) 68%, #fff 100%);
    border: 1px solid var(--g100);
    box-shadow: inset 0 0 0 8px rgba(255, 255, 255, .9), 0 12px 30px rgba(7, 63, 38, .1);
    animation: pdBreathe 7s ease-in-out infinite;
}
@keyframes pdBreathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.025); } }
.pd-emblem-ring img { width: 82%; height: 82%; object-fit: contain; }
.pd-emblem-name { font-size: .95rem; font-weight: 800; color: var(--ink); line-height: 1.35; }
.pd-emblem-sub { font-size: .76rem; color: var(--muted); margin-top: .2rem; }
.pd-emblem-motto {
    display: inline-block; margin-top: .95rem;
    font-size: .68rem; font-weight: 800; letter-spacing: .22em;
    color: var(--y700); background: var(--y050);
    border: 1px solid var(--y100); border-radius: 999px;
    padding: .38rem .95rem;
}
.pd-emblem-foot {
    margin-top: 1.2rem; padding-top: 1rem;
    border-top: 1px dashed var(--line2);
    display: flex; align-items: center; justify-content: center; gap: .5rem;
    font-size: .75rem; color: var(--muted);
}
.pd-emblem-foot .pd-i { color: var(--g600); }

/* --------------------------------------------------------------------------
   Kartu ketersediaan pejabat & aparatur (menggantikan kartu lambang di hero)
   -------------------------------------------------------------------------- */

.pd-avail {
    position: relative; overflow: hidden;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--r4);
    box-shadow: var(--sh3);
    padding: 1.5rem 1.4rem 1.3rem;
}
.pd-avail::before {
    content: ""; position: absolute; inset: 0 0 auto 0; height: 5px;
    background: linear-gradient(90deg, var(--g700), var(--g500) 55%, var(--y500));
}

.pd-avail-head { display: flex; gap: .8rem; align-items: flex-start; }
.pd-avail-icon {
    width: 2.6rem; height: 2.6rem; flex: 0 0 auto;
    display: grid; place-items: center; border-radius: var(--r2);
    background: linear-gradient(135deg, var(--g700), var(--g500));
    color: #fff; box-shadow: 0 8px 18px rgba(10, 87, 50, .22);
}
.pd-avail-title { font-size: .92rem; font-weight: 800; color: var(--ink); line-height: 1.3; }
.pd-avail-sub { font-size: .74rem; color: var(--muted); margin-top: .2rem; line-height: 1.45; }

.pd-avail-sum { display: grid; grid-template-columns: 1fr 1fr; gap: .65rem; margin: 1.15rem 0 1.1rem; }
.pd-avail-sum-item { border-radius: var(--r2); padding: .75rem .5rem; text-align: center; border: 1px solid transparent; }
.pd-avail-sum-item b { display: block; font-size: 1.75rem; font-weight: 800; line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.pd-avail-sum-item span { display: block; font-size: .64rem; font-weight: 800; letter-spacing: .1em; margin-top: .3rem; }
.pd-avail-sum-item.is-ada   { background: var(--g050); border-color: var(--g100); color: var(--g700); }
.pd-avail-sum-item.is-tidak { background: var(--y050); border-color: var(--y100); color: var(--y700); }

.pd-avail-label { font-size: .68rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: .65rem; }
.pd-avail-list { display: flex; flex-direction: column; gap: .6rem; }
.pd-avail-list li { display: flex; gap: .6rem; align-items: flex-start; padding-bottom: .6rem; border-bottom: 1px dashed var(--line); }
.pd-avail-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.pd-avail-list .pd-i { width: 1rem; height: 1rem; margin-top: .12rem; }
.pd-avail-list li.is-ada   .pd-i { color: var(--g500); }
.pd-avail-list li.is-tidak .pd-i { color: var(--y600); }
.pd-avail-nama { font-size: .82rem; font-weight: 700; color: var(--ink); line-height: 1.3; }
.pd-avail-jab { font-size: .72rem; color: var(--muted); }
.pd-avail-sebab {
    font-size: .6rem; font-weight: 800; letter-spacing: .05em;
    white-space: nowrap; margin-left: auto; align-self: center;
    padding: .25rem .55rem; border-radius: 999px; border: 1px solid transparent;
}
.pd-avail-sebab.is-ada   { background: var(--g050); color: var(--g700); border-color: var(--g100); }
.pd-avail-sebab.is-tidak { background: var(--y050); color: var(--y700); border-color: var(--y100); }

.pd-avail-none {
    display: flex; align-items: center; gap: .6rem;
    background: var(--g050); border: 1px solid var(--g100); color: var(--g700);
    border-radius: var(--r2); padding: .8rem .9rem; font-size: .82rem; font-weight: 600;
}

.pd-avail-more {
    display: flex; align-items: center; justify-content: center; gap: .45rem;
    width: 100%; margin-top: 1.15rem;
    font-size: .8rem; font-weight: 700; color: var(--g700);
    background: var(--g050); border: 1px solid var(--g100);
    border-radius: var(--r2); padding: .7rem 1rem;
    transition: all .22s var(--ease);
}
.pd-avail-more:hover {
    background: linear-gradient(135deg, var(--g700), var(--g500));
    border-color: transparent; color: #fff;
    box-shadow: 0 10px 20px rgba(10, 87, 50, .22);
}
.pd-avail-more .pd-i { transition: transform .28s var(--ease); }
.pd-avail-more[aria-expanded="true"] .pd-i { transform: rotate(180deg); }

/* --------------------------------------------------------------------------
   Daftar lengkap ketersediaan (bagian yang melebar saat tombol ditekan)
   -------------------------------------------------------------------------- */

.pd-avail-panel { display: none; }
.pd-avail-panel.is-open { display: block; animation: pdUnfold .45s var(--ease); }
@keyframes pdUnfold { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: none; } }

.pd-avail-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(268px, 1fr)); gap: .7rem; }

.pd-person {
    display: flex; align-items: center; gap: .75rem;
    background: var(--card); border: 1px solid var(--line);
    border-radius: var(--r2); padding: .8rem .9rem;
    transition: border-color .2s, box-shadow .2s, transform .2s var(--ease);
}
.pd-person:hover { border-color: var(--g100); box-shadow: var(--sh1); transform: translateY(-2px); }
.pd-person-dot { width: .55rem; height: .55rem; border-radius: 999px; flex: 0 0 auto; }
.pd-person.is-ada   .pd-person-dot { background: var(--g500); box-shadow: 0 0 0 3px rgba(21, 138, 82, .15); }
.pd-person.is-tidak .pd-person-dot { background: var(--y500); box-shadow: 0 0 0 3px rgba(201, 162, 39, .18); }
.pd-person-info { flex: 1 1 auto; min-width: 0; }
.pd-person-nama { font-size: .84rem; font-weight: 700; color: var(--ink); line-height: 1.3; }
.pd-person-jab { font-size: .73rem; color: var(--muted); line-height: 1.4; }
.pd-person-jab em { font-style: normal; color: var(--y700); font-weight: 700; }

.pd-pill {
    font-size: .62rem; font-weight: 800; letter-spacing: .06em;
    padding: .3rem .6rem; border-radius: 999px; white-space: nowrap; flex: 0 0 auto;
    border: 1px solid transparent;
}
.pd-pill-ada   { background: var(--g050); color: var(--g700); border-color: var(--g100); }
.pd-pill-tidak { background: var(--y050); color: var(--y700); border-color: var(--y100); }

/* ==========================================================================
   7. SECTION
   ========================================================================== */

.pd-section { padding: 3.75rem 0; }
.pd-section-alt { background: var(--card); border-block: 1px solid var(--line); }

.pd-section-head {
    display: flex; flex-wrap: wrap; gap: 1rem;
    align-items: flex-end; justify-content: space-between;
    margin-bottom: 1.9rem;
}
.pd-section-title { font-size: 1.55rem; margin-bottom: .4rem; }
.pd-section-desc { font-size: .89rem; color: var(--muted); max-width: 46rem; }
.pd-section-count {
    font-size: .78rem; font-weight: 700; color: var(--g800);
    background: var(--g050); border: 1px solid var(--g100);
    border-radius: 999px; padding: .45rem .95rem; white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

/* Filter kategori */
.pd-filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.6rem; }
.pd-filter {
    font-size: .78rem; font-weight: 700;
    padding: .48rem 1rem; border-radius: 999px;
    border: 1px solid var(--line2); background: #fff; color: var(--body);
    transition: all .2s var(--ease);
}
.pd-filter:hover { border-color: var(--g300); color: var(--g700); transform: translateY(-1px); }
.pd-filter.is-active {
    background: var(--g700); border-color: var(--g700); color: #fff;
    box-shadow: 0 8px 18px rgba(10, 87, 50, .22);
}

/* ==========================================================================
   8. KARTU MENU
   ========================================================================== */

.pd-menu-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 1rem; }

.pd-menu-card {
    position: relative; overflow: hidden;
    display: flex; flex-direction: column;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--r4);
    padding: 1.4rem 1.35rem 1.25rem;
    box-shadow: var(--sh1);
    transition: transform .28s var(--ease), box-shadow .28s var(--ease), border-color .28s;
}
/* Kilau lembut mengikuti kursor */
.pd-menu-card::before {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(16rem 16rem at var(--mx, 50%) var(--my, 0%), rgba(21, 138, 82, .09), transparent 70%);
    opacity: 0; transition: opacity .3s;
}
.pd-menu-card::after {
    content: ""; position: absolute; inset: auto 0 0 0; height: 3px;
    background: linear-gradient(90deg, var(--g600), var(--y500));
    transform: scaleX(0); transform-origin: left;
    transition: transform .35s var(--ease);
}
.pd-menu-card:hover { transform: translateY(-4px); box-shadow: var(--sh2); border-color: var(--g100); }
.pd-menu-card:hover::before { opacity: 1; }
.pd-menu-card:hover::after { transform: scaleX(1); }

.pd-menu-icon {
    width: 2.9rem; height: 2.9rem;
    display: grid; place-items: center;
    border-radius: var(--r2);
    background: linear-gradient(135deg, var(--g700), var(--g500));
    color: #fff;
    box-shadow: 0 8px 18px rgba(10, 87, 50, .22);
    margin-bottom: 1rem;
    transition: transform .28s var(--ease);
}
.pd-menu-icon .pd-i { width: 1.35rem; height: 1.35rem; stroke-width: 1.8; }
.pd-menu-card:hover .pd-menu-icon { transform: translateY(-2px) scale(1.06); }
.pd-menu-card[data-status="segera"] .pd-menu-icon {
    background: linear-gradient(135deg, #7f8c86, #a7b3ad);
    box-shadow: 0 8px 18px rgba(70, 85, 78, .16);
}

.pd-menu-name { font-size: 1.02rem; font-weight: 800; color: var(--ink); line-height: 1.3; margin-bottom: .4rem; }
.pd-menu-desc { font-size: .82rem; color: var(--muted); line-height: 1.55; flex: 1 1 auto; margin-bottom: 1rem; }
.pd-menu-foot { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.pd-menu-kat { font-size: .67rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.pd-menu-go { display: inline-flex; align-items: center; gap: .3rem; font-size: .79rem; font-weight: 700; color: var(--g700); }
.pd-menu-go .pd-i { width: 1rem; height: 1rem; transition: transform .25s var(--ease); }
.pd-menu-card:hover .pd-menu-go .pd-i { transform: translateX(4px); }
.pd-menu-card[data-status="segera"] .pd-menu-go { color: var(--faint); }

.pd-tag {
    position: absolute; top: 1.15rem; right: 1.15rem;
    font-size: .61rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase;
    padding: .3rem .6rem; border-radius: 999px; border: 1px solid transparent;
}
.pd-tag-aktif  { background: var(--g050); color: var(--g700); border-color: var(--g100); }
.pd-tag-segera { background: #f2f5f4; color: var(--muted); border-color: var(--line2); }

/* ==========================================================================
   9. KARTU APLIKASI
   ========================================================================== */

.pd-app-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 1.25rem; }

.pd-app-card {
    display: flex; flex-direction: column; height: 100%;
    background: var(--card); border: 1px solid var(--line);
    border-radius: var(--r4); overflow: hidden; box-shadow: var(--sh1);
    transition: transform .28s var(--ease), box-shadow .28s var(--ease), border-color .28s;
}
.pd-app-card:hover { transform: translateY(-4px); box-shadow: var(--sh2); border-color: var(--g100); }

.pd-app-thumb { position: relative; aspect-ratio: 16 / 9; background: var(--g050); overflow: hidden; }
.pd-app-thumb-empty { position: absolute; inset: 0; display: grid; place-items: center; color: var(--g300); }
.pd-app-thumb-empty .pd-i { width: 2.2rem; height: 2.2rem; }
.pd-app-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .45s var(--ease); }
.pd-app-card:hover .pd-app-thumb img { transform: scale(1.05); }
.pd-app-badge {
    position: absolute; left: .8rem; bottom: .8rem;
    font-size: .68rem; font-weight: 800; color: var(--g800);
    background: rgba(255, 255, 255, .93); backdrop-filter: blur(6px);
    border: 1px solid var(--line); border-radius: 999px; padding: .3rem .75rem;
}

.pd-app-body { padding: 1.1rem 1.2rem 1.25rem; display: flex; flex-direction: column; flex: 1 1 auto; }
.pd-app-name { font-size: 1.02rem; font-weight: 800; color: var(--ink); line-height: 1.3; margin-bottom: .4rem; }
.pd-app-desc { font-size: .83rem; color: var(--muted); line-height: 1.55; flex: 1 1 auto; margin-bottom: 1.1rem; }
.pd-app-open {
    display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
    width: 100%; font-size: .83rem; font-weight: 700;
    padding: .7rem 1rem; border-radius: var(--r2);
    background: var(--g050); color: var(--g700); border: 1px solid var(--g100);
    transition: all .22s var(--ease);
}
.pd-app-open .pd-i { width: 1rem; height: 1rem; }
.pd-app-open:hover {
    background: linear-gradient(135deg, var(--g700), var(--g500));
    border-color: transparent; color: #fff;
    box-shadow: 0 10px 20px rgba(10, 87, 50, .22);
}

/* Kosong */
.pd-empty {
    grid-column: 1 / -1; text-align: center; padding: 3rem 1rem;
    border: 1px dashed var(--line2); border-radius: var(--r4); background: var(--card2);
}
.pd-empty .pd-i { width: 2rem; height: 2rem; color: var(--faint); margin-inline: auto; }
.pd-empty-title { font-weight: 800; color: var(--ink); margin: .7rem 0 .25rem; }
.pd-empty-desc { font-size: .84rem; color: var(--muted); }

/* ==========================================================================
   10. PANEL INFORMASI
   ========================================================================== */

.pd-info-card {
    background: var(--card); border: 1px solid var(--line);
    border-radius: var(--r4); padding: 1.45rem 1.4rem;
    box-shadow: var(--sh1); display: flex; gap: 1rem;
    transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.pd-info-card:hover { transform: translateY(-3px); box-shadow: var(--sh2); }
.pd-info-icon {
    width: 2.6rem; height: 2.6rem; flex: 0 0 auto;
    display: grid; place-items: center; border-radius: var(--r2);
    background: var(--y050); border: 1px solid var(--y100); color: var(--y700);
}
.pd-info-label { font-size: .9rem; font-weight: 800; color: var(--ink); margin-bottom: .35rem; }
.pd-info-value { font-size: .84rem; color: var(--muted); line-height: 1.6; white-space: pre-line; }

/* ==========================================================================
   11. FOOTER
   ========================================================================== */

.pd-footer { position: relative; background: var(--g900); color: rgba(255, 255, 255, .72); padding: 3.25rem 0 1.5rem; }
.pd-footer::before {
    content: ""; position: absolute; inset: 0 0 auto 0; height: 4px;
    background: linear-gradient(90deg, var(--g500), var(--y500));
}
.pd-footer-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(2, minmax(0, 1fr)); gap: 2rem; }
.pd-footer-brand { display: flex; gap: 1rem; align-items: flex-start; }
.pd-footer-logo { width: 3.2rem; height: 3.2rem; flex: 0 0 auto; border-radius: .8rem; background: #fff; padding: .3rem; }
.pd-footer-logo img { width: 100%; height: 100%; object-fit: contain; }
.pd-footer-title { color: #fff; font-weight: 800; font-size: .92rem; line-height: 1.35; }
.pd-footer-sub { font-size: .8rem; margin-top: .3rem; line-height: 1.65; }
.pd-footer-h { color: #fff; font-size: .76rem; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; margin-bottom: .85rem; }
.pd-footer-list li { margin-bottom: .5rem; }
.pd-footer-list a { color: rgba(255, 255, 255, .72); font-size: .84rem; transition: color .2s, padding-left .2s; }
.pd-footer-list a:hover { color: var(--y400); padding-left: .25rem; }
.pd-footer-bar {
    margin-top: 2.4rem; padding-top: 1.3rem;
    border-top: 1px solid rgba(255, 255, 255, .12);
    display: flex; flex-wrap: wrap; gap: .5rem; justify-content: space-between; font-size: .78rem;
}

/* ==========================================================================
   12. HALAMAN DALAM
   ========================================================================== */

.pd-pagehead {
    position: relative; overflow: hidden;
    border-bottom: 1px solid var(--line);
    padding: 2.75rem 0 2.4rem;
}
.pd-pagehead .pd-hero-bg .pd-blob { filter: blur(60px); opacity: .8; }

.pd-crumb { position: relative; z-index: 1; display: flex; align-items: center; gap: .4rem; font-size: .78rem; color: var(--muted); margin-bottom: 1rem; flex-wrap: wrap; }
.pd-crumb a { color: var(--g700); font-weight: 600; }
.pd-crumb a:hover { text-decoration: underline; }
.pd-crumb .pd-i { width: .85rem; height: .85rem; color: var(--faint); }

.pd-pagehead-row { position: relative; z-index: 1; display: flex; align-items: flex-start; gap: 1.15rem; flex-wrap: wrap; }
.pd-pagehead-icon {
    width: 3.4rem; height: 3.4rem; flex: 0 0 auto;
    display: grid; place-items: center; border-radius: var(--r2);
    background: linear-gradient(135deg, var(--g700), var(--g500));
    color: #fff; box-shadow: 0 12px 26px rgba(10, 87, 50, .24);
}
.pd-pagehead-icon .pd-i { width: 1.6rem; height: 1.6rem; }
.pd-pagehead-title { font-size: clamp(1.6rem, 2.8vw, 2.2rem); margin-bottom: .4rem; }
.pd-pagehead-desc { font-size: .9rem; color: var(--muted); max-width: 52rem; }

/* Kartu statistik */
.pd-stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1rem; }
.pd-stat {
    position: relative; overflow: hidden;
    background: var(--card); border: 1px solid var(--line);
    border-radius: var(--r4); padding: 1.3rem 1.35rem; box-shadow: var(--sh1);
    transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.pd-stat:hover { transform: translateY(-3px); box-shadow: var(--sh2); }
.pd-stat-top { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: .7rem; }
.pd-stat-label { font-size: .76rem; font-weight: 700; color: var(--muted); }
.pd-stat-icon { width: 2.15rem; height: 2.15rem; display: grid; place-items: center; border-radius: var(--r1); background: var(--g050); color: var(--g700); }
.pd-stat-icon.is-gold   { background: var(--y050); color: var(--y700); }
.pd-stat-icon.is-info   { background: #e8f1f9; color: var(--info); }
.pd-stat-icon.is-danger { background: #fbeceb; color: var(--danger); }
.pd-stat-value { font-size: 2.1rem; font-weight: 800; color: var(--ink); line-height: 1; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.pd-stat-unit { font-size: .95rem; font-weight: 700; color: var(--muted); margin-left: .25rem; letter-spacing: 0; }
.pd-stat-note { font-size: .76rem; color: var(--faint); margin-top: .5rem; }

/* Panel
   JANGAN memakai height:100% di sini. Digabung dengan overflow:hidden, panel
   yang berisi tabel panjang akan terpotong dan tidak dapat digulir. Panel yang
   bersebelahan di dalam .pd-grid tetap sama tinggi dengan sendirinya karena
   grid item meregang (align-items: stretch) secara bawaan. */
.pd-panel {
    display: flex; flex-direction: column;
    background: var(--card); border: 1px solid var(--line);
    border-radius: var(--r4); box-shadow: var(--sh1); overflow: hidden;
}
.pd-panel-head {
    padding: 1.15rem 1.4rem; border-bottom: 1px solid var(--line);
    display: flex; align-items: center; gap: .75rem; background: var(--card2);
}
.pd-panel-head .pd-i { color: var(--g600); width: 1.2rem; height: 1.2rem; }
.pd-panel-title { font-size: .93rem; font-weight: 800; color: var(--ink); line-height: 1.3; }
.pd-panel-sub { font-size: .75rem; color: var(--muted); }
.pd-panel-body { padding: 1.3rem 1.4rem 1.4rem; flex: 1 1 auto; }

/* Bar horizontal - kolom otomatis untuk daftar panjang */
.pd-bars { display: grid; grid-template-columns: minmax(0, 1fr); gap: .95rem 2.25rem; }
.pd-bars.is-multi { grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); }
.pd-bar-top { display: flex; align-items: baseline; justify-content: space-between; gap: .75rem; margin-bottom: .38rem; }
.pd-bar-name { font-size: .83rem; font-weight: 600; color: var(--ink); line-height: 1.35; }
.pd-bar-val { font-size: .82rem; font-weight: 800; color: var(--g700); white-space: nowrap; font-variant-numeric: tabular-nums; }
.pd-bar-val small { font-weight: 600; color: var(--faint); margin-left: .3rem; }
.pd-bar-track { height: .45rem; border-radius: 999px; background: #eef2f0; overflow: hidden; }
.pd-bar-fill {
    display: block; height: 100%; border-radius: 999px; min-width: 3px;
    background: linear-gradient(90deg, var(--g700), var(--g400));
    width: var(--w);
}
/* Bar hanya tumbuh dari nol bila JS aktif; tanpa JS langsung penuh. */
.pd-js .pd-bar-fill { width: 0; transition: width 1s var(--ease); }
.pd-js .is-shown .pd-bar-fill { width: var(--w); }
.pd-bar-fill.is-gold { background: linear-gradient(90deg, var(--y600), var(--y400)); }
.pd-bar-fill.is-info { background: linear-gradient(90deg, #12557f, #3f9ada); }

/* Donut */
.pd-donut-wrap { display: flex; align-items: center; gap: 1.75rem; flex-wrap: wrap; justify-content: center; }
/* Donat mengecil mengikuti ruang yang tersedia, jadi tidak pernah terpotong
   walau kartunya sempit. */
.pd-donut-holder { position: relative; flex: 0 1 auto; max-width: 100%; }
.pd-donut-holder svg { width: 176px; max-width: 100%; height: auto; }
.pd-donut-holder circle[data-arc] {
    stroke-dasharray: var(--len) var(--rest);
    stroke-dashoffset: var(--off);
}
.pd-js .pd-donut-holder circle[data-arc] { opacity: 0; transition: opacity .5s ease; }
.pd-js .is-shown .pd-donut-holder circle[data-arc] { opacity: 1; animation: pdDraw 1.1s var(--ease) both; }
@keyframes pdDraw { from { stroke-dasharray: 0 var(--circ); } to { stroke-dasharray: var(--len) var(--rest); } }
.pd-donut-center { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.pd-donut-center b { display: block; font-size: 1.5rem; font-weight: 800; color: var(--ink); line-height: 1; font-variant-numeric: tabular-nums; }
.pd-donut-center span { font-size: .7rem; color: var(--muted); }
.pd-legend { flex: 1 1 160px; min-width: 160px; }
.pd-legend li { display: flex; align-items: center; gap: .6rem; padding: .45rem 0; border-bottom: 1px dashed var(--line); font-size: .83rem; }
.pd-legend li:last-child { border-bottom: 0; }
.pd-legend-dot { width: .7rem; height: .7rem; border-radius: 3px; flex: 0 0 auto; }
.pd-legend-name { flex: 1 1 auto; color: var(--body); }
.pd-legend-val { font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; }
.pd-legend-pct { font-size: .74rem; color: var(--faint); min-width: 3.2rem; text-align: right; font-variant-numeric: tabular-nums; }

/* Tabel rincian (mis. rekap cuti) - digeser sendiri bila layar sempit */
.pd-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-inline: -.35rem; padding-inline: .35rem; }
.pd-table { width: 100%; border-collapse: collapse; font-size: .84rem; }
.pd-table th {
    text-align: left; font-size: .68rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase;
    color: var(--muted); padding: .6rem .65rem; border-bottom: 2px solid var(--line-strong, var(--line2));
    white-space: nowrap; position: sticky; top: 0; background: var(--card);
}
.pd-table td { padding: .65rem; border-bottom: 1px solid var(--line); color: var(--body); vertical-align: top; }
.pd-table tbody tr:last-child td { border-bottom: 0; }
.pd-table tbody tr:hover { background: var(--card2); }
.pd-table .pd-num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pd-table td.pd-num { font-weight: 700; color: var(--ink); }
.pd-nowrap { white-space: nowrap; }

/* Tag pendek di dalam sel tabel - dipakai agar markup barisnya tetap ringkas */
.pd-table td b { display: block; font-weight: 700; color: var(--ink); line-height: 1.3; }
.pd-table td small { display: block; font-size: .73rem; color: var(--muted); line-height: 1.4; }
.pd-table td.pd-tgl { white-space: nowrap; }

.pd-table td code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: .72rem; color: var(--g700);
    background: var(--g050); border: 1px solid var(--g100);
    border-radius: .45rem; padding: .15rem .4rem;
    white-space: nowrap;
}

.pd-jenis {
    display: inline-block; font-style: normal;
    font-size: .7rem; font-weight: 700; white-space: nowrap;
    padding: .22rem .55rem; border-radius: 999px;
    background: var(--g050); color: var(--g700); border: 1px solid var(--g100);
}
.pd-jenis.is-peka { background: var(--y050); color: var(--y700); border-color: var(--y100); }

/* Sisa hak cuti - angka diberi warna sesuai tingkat ketersediaannya */
.pd-table th small { display: block; font-size: .6rem; font-weight: 700; letter-spacing: .06em; color: var(--faint); margin-top: .1rem; }
.pd-sisa {
    display: inline-block; min-width: 2.6rem; text-align: center;
    font-weight: 800; font-variant-numeric: tabular-nums;
    padding: .2rem .5rem; border-radius: 999px;
    background: var(--g050); color: var(--g700); border: 1px solid var(--g100);
}
.pd-sisa.is-menipis { background: var(--y050); color: var(--y700); border-color: var(--y100); }
.pd-sisa.is-habis   { background: #fbeceb; color: var(--danger); border-color: #f3d3d1; }

/* Tiga ubin ringkasan ketersediaan sisa cuti */
.pd-sisa-ring {
    border-radius: var(--r2); padding: 1rem 1.15rem;
    border: 1px solid transparent; text-align: center;
}
.pd-sisa-ring b { display: block; font-size: 1.85rem; font-weight: 800; line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.pd-sisa-ring span { display: block; font-size: .76rem; font-weight: 600; margin-top: .35rem; }
.pd-sisa-ring.is-ok   { background: var(--g050); border-color: var(--g100); color: var(--g700); }
.pd-sisa-ring.is-warn { background: var(--y050); border-color: var(--y100); color: var(--y700); }
.pd-sisa-ring.is-bad  { background: #fbeceb; border-color: #f3d3d1; color: var(--danger); }

.pd-note {
    display: flex; gap: .7rem; align-items: flex-start;
    background: var(--y050); border: 1px solid var(--y100); color: var(--y700);
    border-radius: var(--r2); padding:1rem 1.15rem; font-size: .84rem; line-height: 1.6;
}
.pd-note .pd-i { flex: 0 0 auto; margin-top: .1rem; }

.pd-alert-soft {
    background: #fbeceb; border: 1px solid #f3d3d1; color: #8e2320;
    border-radius: var(--r2); padding: 1rem 1.15rem; font-size: .85rem;
    display: flex; gap: .7rem; align-items: flex-start;
}

/* --------------------------------------------------------------------------
   Daftar Nama Pegawai (direktori)
   -------------------------------------------------------------------------- */

.pd-nama-tools { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; }
.pd-nama-tools .pd-search { flex: 1 1 20rem; max-width: 28rem; margin: 0; }

.pd-select {
    flex: 0 1 18rem;
    font-size: .84rem; font-weight: 600; color: var(--ink);
    background: #fff url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7d74' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right .8rem center / 1.05rem;
    border: 1px solid var(--line2);
    border-radius: var(--r2);
    padding: .78rem 2.4rem .78rem 1rem;
    appearance: none; -webkit-appearance: none;
    cursor: pointer;
    box-shadow: var(--sh1);
    transition: border-color .2s, box-shadow .2s;
    max-width: 100%;
}
.pd-select:hover { border-color: var(--g300); }
.pd-select:focus { outline: 0; border-color: var(--g400); box-shadow: 0 0 0 4px rgba(21, 138, 82, .12); }

.pd-group { margin-top: 2.25rem; }
.pd-group:first-of-type { margin-top: 0; }
.pd-group-head {
    display: flex; align-items: baseline; gap: .75rem; flex-wrap: wrap;
    padding-bottom: .7rem; margin-bottom: 1rem;
    border-bottom: 2px solid var(--line);
}
.pd-group-title { font-size: 1.05rem; font-weight: 800; color: var(--ink); }
.pd-group-count {
    font-size: .72rem; font-weight: 700; color: var(--g700);
    background: var(--g050); border: 1px solid var(--g100);
    border-radius: 999px; padding: .22rem .65rem;
}

.pd-nama-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(278px, 1fr)); gap: .7rem; }

.pd-nama-card {
    display: flex; align-items: center; gap: .8rem;
    background: var(--card); border: 1px solid var(--line);
    border-radius: var(--r2); padding: .75rem .85rem;
    transition: border-color .2s, box-shadow .2s, transform .2s var(--ease);
}
.pd-nama-card:hover { border-color: var(--g100); box-shadow: var(--sh1); transform: translateY(-2px); }

.pd-ava {
    width: 2.45rem; height: 2.45rem; flex: 0 0 auto;
    border-radius: 50%; display: grid; place-items: center;
    font-size: .76rem; font-weight: 800; letter-spacing: .02em; color: #fff;
    box-shadow: 0 4px 10px rgba(7, 63, 38, .18);
}
.pd-ava-1 { background: linear-gradient(135deg, var(--g700), var(--g500)); }
.pd-ava-2 { background: linear-gradient(135deg, var(--y700), var(--y500)); }
.pd-ava-3 { background: linear-gradient(135deg, #14506e, #2f88b8); }

.pd-nama-info { flex: 1 1 auto; min-width: 0; }
.pd-nama-nama { font-size: .85rem; font-weight: 700; color: var(--ink); line-height: 1.3; }
.pd-nama-meta { font-size: .73rem; color: var(--muted); line-height: 1.45; }
.pd-nama-no { font-size: .7rem; font-weight: 700; color: var(--faint); flex: 0 0 auto; font-variant-numeric: tabular-nums; }

/* --------------------------------------------------------------------------
   Surat Keputusan Internal
   -------------------------------------------------------------------------- */

/* Kartu pilihan tahun penetapan */
.pd-tahun-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(295px, 1fr)); gap: 1.1rem; }

.pd-tahun-card {
    position: relative; overflow: hidden;
    display: flex; flex-direction: column;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--r4);
    padding: 1.5rem 1.4rem 1.25rem;
    box-shadow: var(--sh1);
    transition: transform .28s var(--ease), box-shadow .28s var(--ease), border-color .28s;
}
.pd-tahun-card::after {
    content: ""; position: absolute; inset: auto 0 0 0; height: 3px;
    background: linear-gradient(90deg, var(--g600), var(--y500));
    transform: scaleX(0); transform-origin: left;
    transition: transform .35s var(--ease);
}
.pd-tahun-card:hover { transform: translateY(-4px); box-shadow: var(--sh2); border-color: var(--g100); }
.pd-tahun-card:hover::after { transform: scaleX(1); }

/* Ilustrasi berkas, mengambang lembut di pojok kanan atas */
.pd-tahun-ilus {
    position: absolute; top: .9rem; right: .8rem;
    width: 6.5rem; opacity: .5;
    pointer-events: none;
    transition: transform .35s var(--ease), opacity .35s;
}
.pd-tahun-ilus .pd-ilus { width: 100%; height: auto; display: block; }
.pd-tahun-card:hover .pd-tahun-ilus { transform: translateY(-3px) rotate(-3deg); opacity: .78; }

.pd-tahun-teks { position: relative; z-index: 1; }
.pd-tahun-label {
    display: block; font-size: .7rem; font-weight: 800;
    letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
    max-width: 9.5rem; line-height: 1.4;
}
.pd-tahun-angka {
    display: block; margin: .35rem 0 .9rem;
    font-size: 2.75rem; font-weight: 800; line-height: 1; letter-spacing: -.04em;
    background: linear-gradient(100deg, var(--g700), var(--g500) 55%, var(--y600));
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.pd-tahun-rinci { display: flex; flex-wrap: wrap; gap: .3rem 1rem; }
.pd-tahun-rinci span { display: inline-flex; align-items: center; gap: .35rem; font-size: .79rem; font-weight: 600; color: var(--body); }
.pd-tahun-rinci .pd-i { width: .95rem; height: .95rem; color: var(--g600); }
.pd-tahun-terbaru {
    display: inline-flex; align-items: center; gap: .35rem;
    margin-top: .45rem; font-size: .74rem; color: var(--muted);
}
.pd-tahun-terbaru .pd-i { width: .9rem; height: .9rem; color: var(--faint); }

.pd-tahun-buka {
    position: relative; z-index: 1;
    display: inline-flex; align-items: center; gap: .35rem;
    margin-top: 1.15rem; padding-top: .95rem;
    border-top: 1px dashed var(--line2);
    font-size: .8rem; font-weight: 700; color: var(--g700);
}
.pd-tahun-buka .pd-i { width: 1rem; height: 1rem; transition: transform .25s var(--ease); }
.pd-tahun-card:hover .pd-tahun-buka .pd-i { transform: translateX(4px); }

/* Varian kartu: arsip Google Drive (emas) dan bagian yang belum siap (abu) */
.pd-tahun-card.is-drive .pd-tahun-angka {
    background: linear-gradient(100deg, var(--y700), var(--y500) 60%, var(--y400));
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.pd-tahun-card.is-drive::after { background: linear-gradient(90deg, var(--y600), var(--y400)); }
.pd-tahun-card.is-drive .pd-tahun-rinci .pd-i { color: var(--y600); }
.pd-tahun-card.is-drive .pd-tahun-buka { color: var(--y700); }
.pd-tahun-card.is-drive:hover { border-color: var(--y100); }
.pd-tahun-card.is-drive .pd-tahun-ilus { filter: grayscale(.35) sepia(.35); }

.pd-tahun-card.is-segera .pd-tahun-angka {
    background: none; -webkit-text-fill-color: currentColor; color: var(--faint);
}
.pd-tahun-card.is-segera::after { background: linear-gradient(90deg, #9aa8a2, #c3cfc9); }
.pd-tahun-card.is-segera .pd-tahun-rinci .pd-i,
.pd-tahun-card.is-segera .pd-tahun-buka { color: var(--muted); }
.pd-tahun-card.is-segera .pd-tahun-ilus { filter: grayscale(1); opacity: .32; }

.pd-sk-list { display: flex; flex-direction: column; gap: .7rem; }

.pd-sk {
    display: flex; align-items: center; gap: 1.1rem; flex-wrap: wrap;
    background: var(--card); border: 1px solid var(--line);
    border-radius: var(--r2); padding: 1rem 1.15rem;
    transition: border-color .2s, box-shadow .2s, transform .2s var(--ease);
}
.pd-sk:hover { border-color: var(--g100); box-shadow: var(--sh1); transform: translateY(-2px); }

.pd-sk-main { flex: 1 1 22rem; min-width: 0; }
.pd-sk-judul { font-size: .93rem; font-weight: 800; color: var(--ink); line-height: 1.4; margin-bottom: .4rem; }

.pd-sk-nomor {
    display: inline-flex; align-items: center; gap: .35rem;
    font-size: .74rem; font-weight: 700; color: var(--g700);
    background: var(--g050); border: 1px solid var(--g100);
    border-radius: var(--r1); padding: .22rem .55rem;
    max-width: 100%;
}
.pd-sk-nomor .pd-i { width: .85rem; height: .85rem; flex: 0 0 auto; }
.pd-sk-nomor span { overflow-wrap: anywhere; }

.pd-sk-meta { display: flex; flex-wrap: wrap; gap: .3rem 1.1rem; margin-top: .5rem; }
.pd-sk-meta span { display: inline-flex; align-items: center; gap: .35rem; font-size: .76rem; color: var(--muted); }
.pd-sk-meta .pd-i { width: .9rem; height: .9rem; color: var(--faint); }

.pd-sk-buka {
    flex: 0 0 auto;
    display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
    font-size: .79rem; font-weight: 700;
    padding: .6rem 1rem; border-radius: var(--r2);
    background: var(--g050); color: var(--g700); border: 1px solid var(--g100);
    transition: all .22s var(--ease);
}
.pd-sk-buka .pd-i { width: .95rem; height: .95rem; }
.pd-sk-buka:hover {
    background: linear-gradient(135deg, var(--g700), var(--g500));
    border-color: transparent; color: #fff;
    box-shadow: 0 8px 18px rgba(10, 87, 50, .2);
}
.pd-sk-buka.is-mati {
    background: #f2f5f4; color: var(--faint); border-color: var(--line2);
    cursor: default; box-shadow: none;
}

/* Halaman "segera" */
.pd-soon {
    max-width: 40rem; margin-inline: auto; text-align: center;
    background: var(--card); border: 1px solid var(--line);
    border-radius: var(--r5); box-shadow: var(--sh2); padding: 3.25rem 2rem;
}
.pd-soon-icon {
    width: 4.5rem; height: 4.5rem; margin: 0 auto 1.35rem;
    display: grid; place-items: center; border-radius: var(--r3);
    background: var(--g050); color: var(--g600); border: 1px solid var(--g100);
}
.pd-soon-icon .pd-i { width: 2rem; height: 2rem; }
.pd-soon h2 { font-size: 1.45rem; margin-bottom: .7rem; }
.pd-soon p { font-size: .9rem; color: var(--muted); margin-bottom: 1.6rem; }

/* ==========================================================================
   13. ANIMASI MUNCUL
   ========================================================================== */

/* Konten disembunyikan HANYA bila JavaScript benar-benar berjalan (kelas .pd-js
   dipasang oleh skrip kecil di <head>). Tanpa JS, atau bila skrip gagal dimuat,
   seluruh isi halaman tetap terlihat apa adanya. */
.pd-js .pd-reveal { opacity: 0; transform: translateY(16px); }
.pd-js .pd-reveal.is-shown { animation: pdUp .6s var(--ease) forwards; }
@keyframes pdUp { to { opacity: 1; transform: none; } }

/* ==========================================================================
   14. RESPONSIF
   ========================================================================== */

@media (max-width: 991.98px) {
    .pd-hero-grid { grid-template-columns: minmax(0, 1fr); gap: 2.25rem; }
    .pd-emblem { max-width: 24rem; margin-inline: auto; }
    .pd-footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .pd-footer-brand { grid-column: 1 / -1; }
    .pd-nav-links { display: none; }
    .pd-nav-toggle { display: block; margin-left: auto; }
    .pd-g-2, .pd-g-3, .pd-g-5-7 { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 767.98px) {
    :root { --nav: 3.5rem; --nav-top: .6rem; }
    /* Di layar kecil pil tidak perlu menyempit lagi saat digulir */
    .pd-nav.is-stuck { width: calc(100% - 1.4rem); }
    .pd-nav, .pd-nav-mobile { width: calc(100% - 1.4rem); }
    .pd-nav .pd-shell { padding-inline: .7rem .55rem; }
    .pd-hero { padding: 2.75rem 0 2.5rem; }
    .pd-section { padding: 2.75rem 0; }
    .pd-quickstats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pd-brand-sub { display: none; }
    .pd-menu-grid { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
    .pd-donut-wrap { flex-direction: column; gap: 1.25rem; }
    .pd-section-title { font-size: 1.35rem; }
    .pd-bars.is-multi { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 479.98px) {
    .pd-shell { padding-inline: 1rem; }
    .pd-menu-grid, .pd-app-grid { grid-template-columns: minmax(0, 1fr); }
    .pd-footer-grid { grid-template-columns: minmax(0, 1fr); }
    .pd-emblem-ring { width: 9rem; height: 9rem; }
    .pd-stat-value { font-size: 1.85rem; }
}

/* ==========================================================================
   15. AKSESIBILITAS & CETAK
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .pd-js .pd-reveal { opacity: 1; transform: none; animation: none !important; }
    .pd-js .pd-bar-fill { width: var(--w); transition: none; }
    .pd-js .pd-donut-holder circle[data-arc] { opacity: 1; animation: none !important; }
    .pd-blob, .pd-emblem-ring, .pd-chip-dot, .pd-accent { animation: none !important; }
    *, *::before, *::after { transition-duration: .01ms !important; }
}

@media print {
    .pd-nav, .pd-nav-mobile, .pd-footer, .pd-filters, .pd-search, .pd-btn, .pd-hero-bg, .pd-hero-dots { display: none !important; }
    body { padding-top: 0; background: #fff; }
    .pd-panel, .pd-stat { box-shadow: none; break-inside: avoid; }
    .pd-bar-fill { width: var(--w) !important; }
}

