/* ============================================================
   Situs publik — Yayasan Wakaf Cendekia Takengon
   Bergantung pada css/tokens.css. Gaya portal: terang, berbasis kartu,
   tombol pill, hijau elegan yayasan. Token --pub-* hanya berlaku di situs
   publik (berkas ini tidak dimuat panel admin maupun alur pendaftaran).
   Tanpa pustaka luar.
   ============================================================ */

:root {
    /* Hijau utama: emerald tua yang tenang */
    --pub-green-950: #0b2a21;
    --pub-green-900: #0f3a2d;
    --pub-green-800: #144a3a;
    --pub-green-700: #1a5c48;
    --pub-green-600: #1e6e55;
    --pub-green-500: #2b8468;
    --pub-green-400: #4e9f82;
    --pub-green-100: #e3f0e9;
    --pub-green-50: #f2f8f4;

    /* Emas lembut: lingkaran ikon, badge, garis eyebrow. Bukan latar teks putih. */
    --pub-gold-500: #c9a24b;
    --pub-gold-100: #f4ead2;
    --pub-gold-ink: #6b5214;
    --pub-maroon: #8c2a28;

    --pub-ink: #26332e;
    --pub-text: #56635d;
    --pub-muted: #66726d;
    --pub-line: #e3e8e4;
    --pub-bg: #fff;
    --pub-bg-alt: #f6f8f6;
    --pub-surface: #fff;
    --pub-on-green: #fff;

    --pub-fs-h1: clamp(1.625rem, 1.1rem + 1.6vw, 2.25rem);
    --pub-fs-h2: clamp(1.5rem, 1rem + 1.5vw, 2rem);
    --pub-fs-banner: clamp(1.375rem, 1rem + 1.1vw, 1.75rem);
    --pub-fs-h3: clamp(1.125rem, 1rem + 0.4vw, 1.3125rem);

    --pub-r-sm: 6px;
    --pub-r-lg: 12px;
    --pub-shadow: 0 0 4px rgba(15, 58, 45, 0.14);
    --pub-shadow-hover: 0 6px 18px rgba(15, 58, 45, 0.12);
    --pub-focus: 0 0 0 3px rgba(30, 110, 85, 0.45);

    /* Peran semantik bersama diarahkan ke palet publik. */
    --brand-950: var(--pub-green-950);
    --brand-900: var(--pub-green-900);
    --brand-800: var(--pub-green-800);
    --brand-700: var(--pub-green-700);
    --brand-600: var(--pub-green-600);
    --brand-500: var(--pub-green-500);
    --brand-400: var(--pub-green-400);
    --brand-100: var(--pub-green-100);
    --brand-50: var(--pub-green-50);
    --ink: var(--pub-ink);
    --ink-2: var(--pub-text);
    --muted: var(--pub-muted);
    --line: var(--pub-line);
    --paper: var(--pub-bg-alt);
    --surface: var(--pub-bg);
    --link: var(--pub-green-600);
    --link-hover: var(--pub-green-800);
    --accent: var(--pub-maroon);
    --focus-ring: var(--pub-focus);

    --shell: 1200px;
    --gutter: 16px;
    --header-h: 80px;
    --section-y: clamp(40px, 6vw, 64px);
}

/* Mode gelap: hijau yang sama, diturunkan untuk latar gelap (kontras WCAG AA). */
:root[data-theme="dark"] {
    --pub-green-950: #08140f;
    --pub-green-900: #0c1f18;
    --pub-green-800: #123a2e;
    --pub-green-700: #17493a;
    --pub-green-600: #2b8468;
    --pub-green-500: #33916f;
    --pub-green-400: #5fb393;
    --pub-green-100: #183a2e;
    --pub-green-50: #13261f;
    --pub-gold-500: #d8b562;
    --pub-gold-100: #3a3220;
    --pub-gold-ink: #f0d79a;
    --pub-maroon: #ec9a94;
    --pub-ink: #e6ece9;
    --pub-text: #c3cec9;
    --pub-muted: #9aa8a2;
    --pub-line: #26362f;
    --pub-bg: #0e1814;
    --pub-bg-alt: #121e19;
    --pub-surface: #15211c;
    --pub-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06);
    --pub-shadow-hover: 0 8px 22px rgba(0, 0, 0, 0.45);
    --pub-focus: 0 0 0 3px rgba(95, 179, 147, 0.55);

    --brand-950: var(--pub-green-950);
    --brand-900: var(--pub-green-900);
    --brand-800: var(--pub-green-800);
    --brand-700: var(--pub-green-700);
    --brand-600: var(--pub-green-600);
    --brand-100: var(--pub-green-100);
    --brand-50: var(--pub-green-50);
    --ink: var(--pub-ink);
    --ink-2: var(--pub-text);
    --muted: var(--pub-muted);
    --line: var(--pub-line);
    --paper: var(--pub-bg-alt);
    --surface: var(--pub-surface);
    --surface-raised: var(--pub-surface);
    --link: #74cfa5;
    --link-hover: #9be0bf;
    --accent: var(--pub-maroon);
    --focus-ring: var(--pub-focus);
}

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

html {
    min-width: 320px;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 16px);
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    color: var(--pub-text);
    background: var(--pub-bg);
    font-family: var(--font-sans);
    font-size: var(--fs-base);
    line-height: 1.5;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.menu-open {
    overflow: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
}

h1, h2, h3 {
    margin: 0;
    text-wrap: balance;
}

h1, h2, h3 {
    color: var(--pub-ink);
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: 0;
    line-height: 1.3;
}

h3 {
    font-size: var(--pub-fs-h3);
}

::selection {
    color: var(--on-brand);
    background: var(--brand-700);
}

p {
    margin: 0;
    text-wrap: pretty;
}

ul, ol, dl {
    margin: 0;
    padding: 0;
    list-style: none;
}

dd {
    margin: 0;
}

:focus-visible {
    outline: 3px solid var(--pub-green-600);
    outline-offset: 2px;
    border-radius: var(--r-xs);
}

.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.skip-link {
    position: absolute;
    top: -80px;
    left: 16px;
    z-index: 300;
    padding: 12px 18px;
    color: #fff;
    background: var(--brand-800);
    border-radius: 0 0 var(--r-sm) var(--r-sm);
    font-size: var(--fs-sm);
    font-weight: 700;
    text-decoration: none;
}

.skip-link:focus {
    top: 0;
}

.shell {
    width: min(100% - var(--gutter) * 2, var(--shell));
    margin-inline: auto;
}

.icon,
.i-arrow,
.i-check {
    width: 18px;
    height: 18px;
    flex: none;
}

.spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    flex: none;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spin 700ms linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ---------------- Tombol ---------------- */

/* Tombol pill: 14px/600, huruf kapital, tinggi minimal 44px. */
.button {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 26px;
    border: 1.5px solid transparent;
    border-radius: var(--r-pill);
    font: inherit;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    line-height: 1.2;
    text-decoration: none;
    text-transform: uppercase;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.button:active {
    transform: translateY(1px);
}

.button:focus-visible {
    outline: none;
    box-shadow: var(--pub-focus);
}

.button .icon--arrow,
.button .i-arrow {
    width: 16px;
    height: 16px;
    transition: transform 180ms var(--ease-out);
}

.button:hover .icon--arrow,
.button:hover .i-arrow {
    transform: translateX(3px);
}

.button--lg {
    min-height: 48px;
    padding: 13px 28px;
}

.button--sm {
    min-height: 36px;
    padding: 8px 16px;
    font-size: 0.8125rem;
}

.button--primary {
    color: var(--pub-on-green);
    background: var(--pub-green-600);
}

.button--primary:hover {
    background: var(--pub-green-800);
}

.button--accent {
    color: #fff;
    background: var(--pub-maroon);
}

.button--accent:hover {
    background: var(--maroon-800);
}

.button--secondary {
    color: var(--pub-green-600);
    background: transparent;
    border-color: var(--pub-green-600);
}

.button--secondary:hover {
    color: var(--pub-on-green);
    background: var(--pub-green-600);
}

.button--quiet {
    color: var(--pub-ink);
    background: transparent;
    border-color: var(--pub-line);
}

.button--quiet:hover {
    background: var(--pub-bg-alt);
    border-color: var(--pub-muted);
}

/* Di atas blok hijau: pill putih bertulisan hijau, atau garis putih. */
.button--light {
    color: var(--pub-green-700);
    background: #fff;
}

.button--light:hover {
    background: var(--pub-green-100);
}

:root[data-theme="dark"] .button--light {
    color: #0f3a2d;
}

.button--ghost-light {
    color: #fff;
    background: transparent;
    border-color: #fff;
}

.button--ghost-light:hover {
    background: rgba(255, 255, 255, 0.12);
}

/* Link aksi: huruf kapital hijau dengan chevron. */
.text-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--pub-green-600);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-decoration: none;
    text-transform: uppercase;
}

.text-link .icon {
    display: none;
}

.text-link::after {
    content: '\203A';
    font-size: 1.25em;
    line-height: 1;
    transition: transform 160ms ease;
}

.text-link:hover {
    color: var(--pub-green-800);
}

.text-link:hover::after {
    transform: translateX(3px);
}

:root[data-theme="dark"] .text-link {
    color: var(--link);
}

/* ---------------- Lencana ---------------- */

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: var(--r-pill);
    font-size: var(--fs-sm);
    font-weight: 700;
    line-height: 1.4;
    white-space: nowrap;
}

.badge::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.badge--success { color: var(--success-fg); background: var(--success-bg); }
.badge--warning { color: var(--warning-fg); background: var(--warning-bg); }
.badge--neutral { color: var(--muted); background: var(--paper-2); }

.tag {
    display: inline-block;
    padding: 2px 8px;
    color: var(--link);
    background: var(--brand-50);
    border-radius: var(--r-xs);
    font-size: var(--fs-xs);
    font-weight: 700;
}

/* ---------------- Header ---------------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 60;
    background: var(--pub-surface);
    border-bottom: 1px solid var(--pub-line);
    transition: box-shadow 200ms ease;
}

/* Dipasang js/site.js setelah halaman di-scroll. */
.site-header.is-scrolled {
    box-shadow: 0 4px 16px rgba(15, 58, 45, 0.08);
}

.header-inner {
    --shell: 1320px;
    min-height: var(--header-h);
    display: flex;
    align-items: center;
    gap: 16px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    flex: none;
    margin-right: auto;
    text-decoration: none;
}

.brand-logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.brand-copy {
    display: grid;
    line-height: 1.25;
}

.brand-copy strong {
    color: var(--pub-ink);
    font-size: 1rem;
    font-weight: 700;
}

.brand-copy small {
    color: var(--pub-muted);
    font-size: 0.75rem;
    font-weight: 400;
}

.primary-navigation {
    display: flex;
    align-items: center;
    gap: 12px;
}

.primary-navigation .nav-apply {
    min-height: 40px;
    padding: 10px 20px;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 2px;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-height: 44px;
    padding: 8px 10px;
    color: var(--pub-text);
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    transition: color 150ms ease, box-shadow 150ms ease;
}

.nav-link .icon {
    width: 14px;
    height: 14px;
    transition: transform 180ms var(--ease-out);
}

.nav-link:hover,
.nav-item:focus-within > .nav-link {
    color: var(--pub-green-600);
}

.nav-link.is-current {
    color: var(--pub-green-600);
    font-weight: 600;
    box-shadow: inset 0 -2px 0 var(--pub-green-600);
}

:root[data-theme="dark"] .nav-link:hover,
:root[data-theme="dark"] .nav-link.is-current {
    color: var(--link);
    box-shadow: inset 0 -2px 0 var(--link);
}

.subnav {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    z-index: 5;
    min-width: 230px;
    padding: 8px 0;
    background: var(--pub-surface);
    border: 1px solid var(--pub-line);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(15, 58, 45, 0.12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity 150ms ease, transform 150ms var(--ease-out), visibility 0s linear 150ms;
}

.subnav::before {
    content: '';
    position: absolute;
    inset: -10px 0 auto;
    height: 10px;
}

.has-children:hover > .subnav,
.has-children:focus-within > .subnav {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity 150ms ease, transform 150ms var(--ease-out), visibility 0s;
}

.has-children:hover > .nav-link .icon,
.has-children:focus-within > .nav-link .icon {
    transform: rotate(180deg);
}

.subnav a {
    display: block;
    padding: 10px 16px;
    color: var(--pub-text);
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
}

.subnav a:hover,
.subnav a:focus-visible {
    color: var(--pub-green-700);
    background: var(--pub-green-50);
}

:root[data-theme="dark"] .subnav a:hover,
:root[data-theme="dark"] .subnav a:focus-visible {
    color: var(--pub-ink);
}

.header-tools {
    display: flex;
    align-items: center;
    gap: 8px;
}

.theme-toggle,
.menu-toggle {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    padding: 0;
    color: var(--pub-ink);
    background: transparent;
    border: 1px solid var(--pub-line);
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 150ms ease, border-color 150ms ease;
}

.theme-toggle:hover,
.menu-toggle:hover {
    background: var(--pub-green-50);
    border-color: var(--pub-green-400);
}

.theme-toggle:focus-visible,
.menu-toggle:focus-visible {
    outline: none;
    box-shadow: var(--pub-focus);
}

.theme-toggle .icon {
    width: 18px;
    height: 18px;
    grid-area: 1 / 1;
    transition: transform 260ms var(--ease-out), opacity 200ms ease;
}

.theme-toggle .icon--sun,
[data-theme="dark"] .theme-toggle .icon--moon {
    opacity: 0;
    transform: rotate(-60deg) scale(0.6);
}

[data-theme="dark"] .theme-toggle .icon--sun {
    opacity: 1;
    transform: none;
}

.menu-toggle {
    display: none;
    gap: 4px;
    place-content: center;
}

.menu-toggle span {
    display: block;
    width: 16px;
    height: 2px;
    background: var(--pub-ink);
    border-radius: var(--r-xs);
    transition: transform 200ms var(--ease-out), opacity 150ms ease;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------------- Kerangka bagian ---------------- */

.section {
    padding: var(--section-y) 0;
}

.section--tinted {
    background: var(--paper);
    border-block: 1px solid var(--line);
}

.section--tight {
    padding-top: clamp(40px, 5vw, 64px);
}

.section-head {
    max-width: 64ch;
    margin-bottom: clamp(32px, 4vw, 48px);
}

.section-head h2 {
    font-size: var(--pub-fs-h2);
}

.section-head p:not(.kicker) {
    margin-top: 14px;
    color: var(--muted);
    font-size: var(--fs-md);
}

.section-head a {
    color: var(--link);
    font-weight: 700;
}

.section-head--split {
    max-width: none;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
}

.section-head--split > div {
    max-width: 64ch;
}

.section-head__meta {
    flex: none;
    color: var(--muted);
    font-size: var(--fs-sm) !important;
}

.kicker {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    color: var(--pub-maroon);
    font-size: var(--fs-xs);
    font-weight: 700;
    letter-spacing: var(--tracking-caps);
    line-height: 1.4;
    text-transform: uppercase;
}

.kicker::before {
    content: '';
    width: 24px;
    height: 2px;
    flex: none;
    background: var(--pub-gold-500);
    border-radius: var(--r-pill);
}

/* Header halaman dalam */
.page-hero {
    padding: clamp(48px, 7vw, 88px) 0 clamp(40px, 5vw, 64px);
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(720px 320px at 92% -10%, var(--brand-100), transparent 70%),
        radial-gradient(520px 260px at 0% 110%, var(--maroon-50), transparent 70%),
        var(--paper);
    border-bottom: 1px solid var(--line);
}

.page-hero h1 {
    max-width: 22ch;
    font-size: var(--pub-fs-h1);
}

.page-hero p:not(.kicker):not(.ppdb-summary__eyebrow) {
    max-width: 62ch;
    margin-top: 18px;
    color: var(--ink-2);
    font-size: var(--fs-md);
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 18px;
    color: var(--muted);
    font-size: var(--fs-sm);
}

.breadcrumbs li + li::before {
    content: '/';
    margin-right: 6px;
    color: var(--line-strong);
}

.breadcrumbs a {
    color: var(--muted);
    text-decoration: none;
}

.breadcrumbs a:hover {
    color: var(--link);
    text-decoration: underline;
}

.subpage-nav {
    position: sticky;
    top: var(--header-h);
    z-index: 40;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
}

.subpage-nav ul {
    display: flex;
    gap: 4px;
    overflow-x: auto;
    scrollbar-width: none;
}

.subpage-nav a {
    display: block;
    padding: 14px 12px;
    color: var(--muted);
    font-size: var(--fs-sm);
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
}

.subpage-nav a:hover,
.subpage-nav a.is-active {
    color: var(--link);
    border-bottom-color: var(--link);
}

/* ---------------- Konten dari admin ---------------- */

.prose {
    max-width: 70ch;
    color: var(--ink-2);
    font-size: var(--fs-md);
    line-height: 1.8;
}

.prose > * + * {
    margin-top: 1em;
}

.prose h2,
.prose h3 {
    margin-top: 1.6em;
    color: var(--ink);
}

.prose h2 {
    font-size: var(--fs-xl);
}

.prose h3 {
    font-family: var(--font-sans);
    font-size: var(--fs-lg);
}

.prose ul,
.prose ol {
    padding-left: 1.3em;
}

.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }

.prose li + li {
    margin-top: 0.4em;
}

.prose a {
    color: var(--link);
    text-underline-offset: 3px;
}

.prose blockquote {
    margin: 1.4em 0;
    padding: 4px 0 4px 20px;
    color: var(--ink);
    border-left: 3px solid var(--maroon-700);
    font-family: var(--font-display);
    font-size: var(--fs-lg);
    line-height: 1.6;
}

.empty-note {
    display: grid;
    gap: 6px;
    max-width: 56ch;
    padding: 24px;
    color: var(--muted);
    background: var(--paper);
    border: 1px dashed var(--line-strong);
    border-radius: var(--r-md);
}

.empty-note strong {
    color: var(--ink);
}

/* ---------------- Beranda: slider ---------------- */

/* Tata letak terbelah: teks di kiri, foto slide berbingkai di kanan. */
.hero-slider {
    position: relative;
    overflow: hidden;
    padding: clamp(24px, 3.5vw, 40px) 0;
    background: linear-gradient(135deg, var(--pub-green-50) 0%, var(--pub-bg) 70%);
    isolation: isolate;
}

/* Ornamen lengkung tipis, murni CSS. */
.hero-slider::before,
.hero-slider::after {
    content: '';
    position: absolute;
    z-index: -1;
    border: 1.5px solid color-mix(in srgb, var(--pub-green-600) 14%, transparent);
    border-radius: 50%;
    pointer-events: none;
}

.hero-slider::before {
    width: 720px;
    height: 720px;
    top: -380px;
    right: -160px;
}

.hero-slider::after {
    width: 460px;
    height: 460px;
    bottom: -300px;
    left: -140px;
}

.hero-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(32px, 5vw, 64px);
    min-height: clamp(400px, 34vw, 480px);
}

.hero-slider__content .kicker {
    color: var(--pub-maroon);
}

.hero-slider h1 {
    max-width: 18ch;
    font-size: var(--pub-fs-h1);
    font-weight: 600;
    line-height: 1.3;
}

.hero-slider__lead {
    max-width: 52ch;
    margin-top: 16px;
    color: var(--pub-text);
    font-size: 1rem;
}

.hero-slider__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

/* Tombol hero di atas latar terang: utama hijau penuh, kedua garis hijau. */
.hero-slider--split .button--light,
:root[data-theme="dark"] .hero-slider--split .button--light {
    color: var(--pub-on-green);
    background: var(--pub-green-600);
}

.hero-slider--split .button--light:hover {
    background: var(--pub-green-800);
}

.hero-slider--split .button--ghost-light {
    color: var(--pub-green-600);
    border-color: var(--pub-green-600);
}

.hero-slider--split .button--ghost-light:hover {
    color: var(--pub-on-green);
    background: var(--pub-green-600);
}

:root[data-theme="dark"] .hero-slider--split .button--ghost-light {
    color: var(--link);
    border-color: var(--link);
}

.hero-slider__caption {
    min-height: 1.6em;
    margin-top: 18px;
    color: var(--pub-muted);
    font-size: 0.875rem;
    transition: opacity 450ms ease;
}

.hero-slider__caption.is-fading {
    opacity: 0;
}

.hero-slider__more {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: 8px;
    color: var(--pub-green-600);
    font-weight: 600;
    text-decoration: none;
}

.hero-slider__more:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.hero-slider__more .icon {
    width: 14px;
    height: 14px;
}

.hero-slider__more[hidden] {
    display: none;
}

.hero-slider__controls {
    margin-top: 20px;
}

.slider-dots {
    display: flex;
    align-items: center;
    gap: 4px;
}

.slider-dots button {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: var(--r-pill);
    cursor: pointer;
}

.slider-dots button::before {
    content: '';
    width: 10px;
    height: 10px;
    background: color-mix(in srgb, var(--pub-green-600) 30%, transparent);
    border-radius: var(--r-pill);
    transition: width 250ms var(--ease-out), background-color 200ms ease;
}

.slider-dots button[aria-current="true"]::before {
    width: 28px;
    background: var(--pub-green-600);
}

.slider-dots button:focus-visible {
    outline: none;
    box-shadow: var(--pub-focus);
}

/* Bingkai foto: radius 24px, garis putih 6px, rasio 4:3. */
.hero-split__media {
    position: relative;
}

.hero-slider__track {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--pub-green-100);
    border: 6px solid #fff;
    border-radius: 24px;
    box-shadow: 0 18px 40px -12px rgba(15, 58, 45, 0.28);
}

:root[data-theme="dark"] .hero-slider__track {
    border-color: var(--pub-surface);
}

.hero-slide {
    position: absolute;
    inset: 0;
    z-index: 0;
    margin: 0;
    opacity: 0;
    visibility: hidden;
}

/* Crossfade: slide baru memudar masuk di atas slide lama yang tetap terlihat
   sampai transisi selesai, sehingga tidak ada kedipan di antaranya. */
.hero-slide.is-active {
    z-index: 2;
    opacity: 1;
    visibility: visible;
    transition: opacity var(--slide-fade, 1400ms) cubic-bezier(0.45, 0, 0.25, 1);
}

.hero-slide.is-leaving {
    z-index: 1;
    opacity: 1;
    visibility: visible;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.04);
}

.hero-slide.is-active img,
.hero-slide.is-leaving img {
    transform: scale(1);
    transition: transform 9s cubic-bezier(0.25, 0.1, 0.25, 1);
}

/* Badge bulat emas di sudut foto. Teks hijau tua di atas emas muda (kontras AA). */
.hero-split__badge {
    position: absolute;
    top: -18px;
    right: -14px;
    z-index: 3;
    width: 104px;
    height: 104px;
    display: grid;
    place-content: center;
    padding: 8px;
    color: var(--pub-green-900);
    background: var(--pub-gold-100);
    border: 4px solid #fff;
    border-radius: 50%;
    box-shadow: 0 8px 20px rgba(15, 58, 45, 0.16);
    font-size: 0.8125rem;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
}

.hero-split__badge small {
    color: var(--pub-gold-ink);
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

:root[data-theme="dark"] .hero-split__badge {
    color: #0f3a2d;
    background: #f4ead2;
    border-color: var(--pub-surface);
}

:root[data-theme="dark"] .hero-split__badge small {
    color: #6b5214;
}

@media (max-width: 860px) {
    .hero-split {
        grid-template-columns: minmax(0, 1fr);
        min-height: 0;
        gap: 28px;
    }

    .hero-split__media {
        order: -1;
    }

    .hero-split__badge {
        top: auto;
        right: 12px;
        bottom: -22px;
        width: 88px;
        height: 88px;
        font-size: 0.75rem;
    }

    .hero-slider__actions .button {
        flex: 1 1 100%;
    }
}

/* ---------------- Beranda: profil singkat ---------------- */

.section--profile {
    background: var(--pub-green-100);
}

.intro {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: clamp(32px, 6vw, 80px);
    align-items: center;
}

.intro h2 {
    font-size: var(--pub-fs-banner);
    line-height: 1.35;
}

.intro__body {
    margin-top: 16px;
}

/* Ringkasan beranda dipotong empat baris; teks lengkap ada di halaman Tentang. */
.section--profile .intro__body {
    display: -webkit-box;
    max-width: 62ch;
    overflow: hidden;
    color: var(--pub-text);
    font-size: 1rem;
    line-height: 1.5;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    line-clamp: 4;
}

.section--profile .intro__body > * + * {
    margin-top: 0;
}

.intro .text-link {
    margin-top: 20px;
}

.fact-stack {
    display: grid;
    padding: 8px 28px;
    background: var(--pub-surface);
    border: 1px solid var(--pub-line);
    border-radius: var(--pub-r-lg);
    box-shadow: var(--pub-shadow);
}

.fact-stack > div {
    display: grid;
    gap: 2px;
    padding: 18px 0;
    border-bottom: 1px solid var(--pub-line);
}

.fact-stack > div:last-child {
    border-bottom: 0;
}

.fact-stack dt {
    color: var(--pub-muted);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.fact-stack dd {
    color: var(--pub-ink);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.45;
}

/* Ikon dalam lingkaran emas muda di kiri label dan nilai. */
.fact-stack--icons > div {
    grid-template-columns: 44px minmax(0, 1fr);
    column-gap: 14px;
    align-items: center;
}

.fact-stack--icons dt {
    display: contents;
}

.fact-stack__icon {
    grid-row: span 2;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    align-self: center;
    color: var(--pub-gold-ink);
    background: var(--pub-gold-100);
    border-radius: 50%;
}

.fact-stack__icon .icon {
    width: 20px;
    height: 20px;
}

/* ---------------- Kartu unit ---------------- */

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

.unit-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-1);
    text-decoration: none;
    transition: border-color 160ms ease, box-shadow 200ms ease, transform 200ms var(--ease-out);
}

.unit-card:hover {
    border-color: var(--brand-200);
    box-shadow: var(--shadow-3);
    transform: translateY(-4px);
}

.unit-card__media {
    position: relative;
    aspect-ratio: 4 / 3;
    display: grid;
    place-items: center;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
}

.unit-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.unit-card__media .unit-card__logo {
    width: 44%;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 6px 12px rgba(16, 32, 26, 0.12));
}

.unit-card__code {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 3px 9px;
    color: #fff;
    background: var(--brand-900);
    border-radius: var(--r-xs);
    font-size: var(--fs-sm);
    font-weight: 800;
}

.unit-card__body {
    display: grid;
    gap: 6px;
    padding: 16px;
}

.unit-card__body h3 {
    font-size: var(--fs-base);
}

.unit-card__body p {
    color: var(--muted);
    font-size: var(--fs-sm);
}

/* ---------------- Beranda: blok unit pendidikan ---------------- */

.unit-block {
    padding: clamp(28px, 4vw, 48px);
    color: #fff;
    background: var(--pub-green-700);
    border-radius: var(--pub-r-lg);
}

.section-head--center {
    max-width: 640px;
    margin-inline: auto;
    text-align: center;
}

.section-head--center.section-head--split {
    display: grid;
    justify-items: center;
    gap: 16px;
}

.unit-block .section-head h2 {
    color: #fff;
    font-size: var(--pub-fs-h2);
}

.unit-block .kicker {
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
}

.unit-block .section-head p:not(.kicker) {
    color: rgba(255, 255, 255, 0.85);
}

.unit-block .text-link,
.unit-block .text-link:hover,
:root[data-theme="dark"] .unit-block .text-link {
    color: #fff;
}

.unit-grid.unit-grid--list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

/* Item daftar putih: lingkaran foto/kode, nama unit, chevron. */
.unit-card.unit-card--row {
    flex-direction: row;
    align-items: center;
    gap: 16px;
    padding: 20px 16px;
    color: var(--pub-ink);
    background: var(--pub-surface);
    border: 0;
    border-radius: var(--pub-r-sm);
    box-shadow: var(--pub-shadow);
}

.unit-card.unit-card--row:hover {
    border-color: transparent;
    box-shadow: var(--pub-shadow-hover), 0 0 0 1px rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

.unit-card.unit-card--row:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px #fff, var(--pub-focus);
}

.unit-card--row .unit-card__media {
    width: 52px;
    height: 52px;
    flex: none;
    aspect-ratio: auto;
    overflow: hidden;
    background: var(--pub-gold-100);
    border: 0;
    border-radius: 50%;
}

.unit-card--row .unit-card__media.has-photo {
    background: var(--pub-green-100);
}

.unit-card--row .unit-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Tanpa foto: lingkaran emas berisi singkatan jenjang, bukan logo bawaan. */
.unit-card--row .unit-card__logo {
    display: none;
}

.unit-card--row .unit-card__code {
    position: static;
    padding: 0;
    color: var(--pub-green-800);
    background: none;
    font-size: 0.875rem;
    font-weight: 700;
}

.unit-card--row .has-photo .unit-card__code {
    display: none;
}

:root[data-theme="dark"] .unit-card--row .unit-card__code {
    color: var(--pub-gold-ink);
}

.unit-card--row .unit-card__body {
    flex: 1;
    min-width: 0;
    gap: 2px;
    padding: 0;
}

.unit-card--row .unit-card__body h3 {
    font-size: var(--pub-fs-h3);
    font-weight: 600;
    line-height: 1.3;
}

.unit-card--row .unit-card__body p {
    color: var(--pub-text);
    font-size: 0.875rem;
}

.unit-card__chevron {
    flex: none;
    color: var(--pub-green-600);
    font-size: 1.75rem;
    line-height: 1;
    transition: transform 160ms ease;
}

.unit-card--row:hover .unit-card__chevron {
    transform: translateX(3px);
}

:root[data-theme="dark"] .unit-card__chevron {
    color: var(--link);
}

@media (max-width: 760px) {
    .unit-grid.unit-grid--list {
        grid-template-columns: minmax(0, 1fr);
    }

    .unit-block {
        padding: 28px 12px 12px;
    }

    .unit-card.unit-card--row {
        gap: 12px;
        padding: 16px 12px;
    }

    .unit-card--row .unit-card__media {
        width: 44px;
        height: 44px;
    }
}

/* ---------------- Video ---------------- */

/* Pita hijau tua lebar penuh dengan kartu putih: video kiri, teks kanan. */
.section--video {
    padding-block: clamp(40px, 5vw, 56px);
    background: var(--pub-green-800);
}

.video-block {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: clamp(24px, 4vw, 48px);
    align-items: center;
}

.video-card {
    padding: clamp(16px, 2.5vw, 28px);
    background: var(--pub-surface);
    border-radius: var(--pub-r-lg);
    box-shadow: 0 18px 40px -16px rgba(0, 0, 0, 0.35);
}

.video-card > div:first-child {
    order: 2;
    padding-right: clamp(0px, 2vw, 16px);
}

.video-block h2 {
    font-size: var(--pub-fs-h2);
}

.video-block p:not(.kicker) {
    margin-top: 12px;
    color: var(--pub-text);
}

.video-frame {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #000;
    border-radius: 8px;
}

.video-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

@media (max-width: 860px) {
    .video-block {
        grid-template-columns: minmax(0, 1fr);
    }

    .video-card > div:first-child {
        padding-right: 0;
    }
}

/* ---------------- Berita ---------------- */

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px 24px;
}

.news-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.news-card__media {
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
}

.news-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 400ms var(--ease-out);
}

.news-card:hover .news-card__media img {
    transform: scale(1.03);
}

.news-card__placeholder {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
}

.news-card__placeholder img {
    width: 24%;
    height: auto;
    object-fit: contain;
    opacity: 0.75;
}

.news-card:hover .news-card__placeholder img {
    transform: none;
}

.news-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 12px;
    margin-top: 14px;
    color: var(--muted);
    font-size: var(--fs-sm);
}

.news-card h3 {
    margin-top: 8px;
    font-size: var(--fs-md);
}

.news-card h3 a {
    text-decoration: none;
}

.news-card h3 a:hover {
    color: var(--link);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.news-card p {
    margin-top: 8px;
    color: var(--ink-2);
    font-size: var(--fs-base);
}

.news-card--lead {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: 32px;
    align-items: center;
}

.news-card--lead .news-meta {
    margin-top: 0;
}

.news-card--lead h3 {
    font-family: var(--font-display);
    font-size: var(--fs-3xl);
    line-height: 1.2;
}

.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 32px;
}

.filter-chips a {
    padding: 7px 14px;
    color: var(--ink-2);
    border: 1px solid var(--line-strong);
    border-radius: var(--r-pill);
    font-size: var(--fs-sm);
    font-weight: 600;
    text-decoration: none;
}

.filter-chips a:hover {
    border-color: var(--link);
    color: var(--link);
}

.filter-chips a[aria-current="true"] {
    color: var(--on-brand);
    background: var(--brand-700);
    border-color: var(--brand-700);
}

.pager {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 48px;
}

.pager a,
.pager span {
    min-width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    padding: 0 12px;
    color: var(--ink-2);
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    font-size: var(--fs-sm);
    font-weight: 700;
    text-decoration: none;
}

.pager a:hover {
    border-color: var(--link);
    color: var(--link);
}

.pager [aria-current="page"] {
    color: var(--on-brand);
    background: var(--brand-700);
    border-color: var(--brand-700);
}

.article {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
}

.article__head {
    width: min(100%, 760px);
}

.article__head h1 {
    font-size: var(--fs-4xl);
}

.article__lead {
    margin-top: 16px;
    color: var(--ink-2);
    font-size: var(--fs-md);
}

.article__cover {
    width: min(100%, 1040px);
    margin: 36px 0 0;
}

.article__cover img {
    width: 100%;
    max-height: 600px;
    object-fit: cover;
    border-radius: var(--r-lg);
}

.article__body {
    width: min(100%, 760px);
    margin-top: 40px;
}

.article__body .prose {
    max-width: none;
}

.article__share {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    width: min(100%, 760px);
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: var(--fs-sm);
}

/* ---------------- Beranda: berita dan kegiatan ---------------- */

/* Blok tanggal hanya dipakai di daftar berita beranda. */
.news-card__date {
    display: none;
}

/* Gambar kosong atau gagal dimuat: latar hijau muda dengan logo kecil. */
.news-card__media {
    background: var(--pub-green-100) url("img/logo-display.png") center / 56px no-repeat;
}

.news-card__placeholder img {
    visibility: hidden;
}

.section--news {
    background: var(--pub-bg);
}

.news-grid.news-grid--home {
    grid-template-columns: minmax(0, 55fr) minmax(0, 45fr);
    grid-template-rows: auto auto auto 1fr;
    align-items: start;
    gap: 16px 32px;
}

.news-grid--home .news-card {
    overflow: hidden;
    background: var(--pub-surface);
    border-radius: var(--pub-r-lg);
    box-shadow: var(--pub-shadow);
    transition: box-shadow 200ms ease, transform 200ms var(--ease-out);
}

.news-grid--home .news-card:hover {
    box-shadow: var(--pub-shadow-hover);
    transform: translateY(-2px);
}

/* Berita utama: gambar 16:9 di atas, lalu badge, tanggal, judul, ringkasan. */
.news-grid--home .news-card--lead {
    grid-column: 1;
    grid-row: 1 / -1;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.news-grid--home .news-card--lead .news-card__media {
    aspect-ratio: 16 / 9;
    border: 0;
    border-radius: 0;
}

.news-grid--home .news-card--lead > div {
    padding: 20px 24px 24px;
}

.news-grid--home .news-meta {
    margin-top: 0;
    color: var(--pub-muted);
    font-size: 0.875rem;
}

.news-grid--home .tag {
    padding: 3px 12px;
    color: var(--pub-green-700);
    background: var(--pub-green-100);
    border-radius: var(--r-pill);
    font-size: 0.75rem;
    font-weight: 700;
}

:root[data-theme="dark"] .news-grid--home .tag {
    color: var(--pub-ink);
}

.news-grid--home .news-card--lead h3 {
    margin-top: 10px;
    font-size: var(--pub-fs-h3);
    font-weight: 600;
    line-height: 1.3;
}

.news-grid--home .news-card--lead p:not(.news-meta) {
    display: -webkit-box;
    overflow: hidden;
    color: var(--pub-text);
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
}

.news-grid--home .news-card h3 a {
    color: var(--pub-ink);
}

.news-grid--home .news-card h3 a:hover {
    color: var(--pub-green-600);
}

/* Berita lainnya: blok tanggal hijau di kiri, judul di kanan. */
.news-grid--home .news-card:not(.news-card--lead) {
    grid-column: 2;
    display: grid;
    grid-template-columns: 80px minmax(0, 1fr);
    align-items: stretch;
}

.news-grid--home .news-card:not(.news-card--lead) .news-card__date {
    display: grid;
    align-content: center;
    justify-items: center;
    padding: 12px 6px;
    color: #fff;
    background: var(--pub-green-500);
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.25;
    text-transform: uppercase;
}

.news-card__date b {
    font-size: 1.625rem;
    font-weight: 700;
    line-height: 1.1;
}

.news-grid--home .news-card:not(.news-card--lead) .news-card__media,
.news-grid--home .news-card:not(.news-card--lead) .news-meta,
.news-grid--home .news-card:not(.news-card--lead) p {
    display: none;
}

.news-grid--home .news-card:not(.news-card--lead) > div {
    align-self: center;
    padding: 16px 20px;
}

.news-grid--home .news-card:not(.news-card--lead) h3 {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.35;
}

@media (max-width: 860px) {
    .news-grid.news-grid--home {
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: none;
    }

    .news-grid--home .news-card--lead,
    .news-grid--home .news-card:not(.news-card--lead) {
        grid-column: 1;
        grid-row: auto;
    }
}

/* ---------------- PPDB band di beranda ---------------- */

.ppdb-band {
    position: relative;
    display: grid;
    justify-items: center;
    gap: 28px;
    overflow: hidden;
    padding: clamp(36px, 5vw, 56px) clamp(20px, 4vw, 56px);
    color: #fff;
    text-align: center;
    background: linear-gradient(135deg, var(--pub-green-700) 0%, var(--pub-green-600) 100%);
    border-radius: var(--pub-r-lg);
    isolation: isolate;
}

/* Ornamen lingkaran putih transparan di sudut. */
.ppdb-band::before,
.ppdb-band::after {
    content: "";
    position: absolute;
    z-index: -1;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    pointer-events: none;
}

.ppdb-band::before {
    width: 280px;
    height: 280px;
    top: -120px;
    right: -80px;
}

.ppdb-band::after {
    width: 200px;
    height: 200px;
    bottom: -110px;
    left: -60px;
}

.ppdb-band__mark {
    display: none;
}

.ppdb-band .kicker {
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
}

.ppdb-band h2 {
    color: #fff;
    font-size: var(--pub-fs-h2);
}

.ppdb-band p:not(.kicker) {
    max-width: 56ch;
    margin: 12px auto 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
}

.ppdb-band__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

@media (max-width: 520px) {
    .ppdb-band__actions .button {
        flex: 1 1 100%;
    }
}

/* ---------------- Tentang ---------------- */

.welcome {
    display: grid;
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    gap: clamp(28px, 5vw, 72px);
    align-items: start;
}

.welcome__photo {
    margin: 0;
}

.welcome__photo img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: var(--r-lg);
}

.welcome h2 {
    font-size: var(--fs-3xl);
}

.welcome .prose {
    margin-top: 22px;
}

.people-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 32px 20px;
}

.person {
    min-width: 0;
}

.person__photo {
    aspect-ratio: 1;
    overflow: hidden;
    display: grid;
    place-items: center;
    color: var(--muted);
    background: var(--paper-2);
    border-radius: var(--r-lg);
    font-family: var(--font-display);
    font-size: var(--fs-4xl);
    font-weight: 700;
}

.person__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.person h3 {
    margin-top: 14px;
}

.person__role {
    color: var(--maroon-700);
    font-size: var(--fs-sm);
    font-weight: 600;
}

.person__bio {
    margin-top: 8px;
    color: var(--ink-2);
    font-size: var(--fs-sm);
}

.vision {
    display: grid;
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    gap: clamp(28px, 5vw, 72px);
}

.vision h2 {
    font-size: var(--fs-3xl);
}

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

.facility {
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
}

.facility__media {
    aspect-ratio: 16 / 10;
    background: var(--paper-2);
}

.facility__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.facility__body {
    padding: 18px;
}

.facility__body p {
    margin-top: 6px;
    color: var(--ink-2);
    font-size: var(--fs-base);
}

.legal-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-top: 2px solid var(--ink);
}

.legal-list > div {
    padding: 18px 20px 18px 0;
    border-bottom: 1px solid var(--line);
}

.legal-list dt {
    color: var(--muted);
    font-size: var(--fs-sm);
}

.legal-list dd {
    margin-top: 4px;
    font-weight: 700;
}

/* ---------------- Kurikulum ---------------- */

.curriculum {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: clamp(32px, 5vw, 72px);
    align-items: start;
}

.curriculum__toc {
    position: sticky;
    top: calc(var(--header-h) + 24px);
    display: grid;
    gap: 2px;
    padding-left: 14px;
    border-left: 2px solid var(--line);
}

.curriculum__toc a {
    position: relative;
    padding: 8px 0;
    color: var(--muted);
    font-size: var(--fs-base);
    font-weight: 600;
    text-decoration: none;
}

.curriculum__toc a::before {
    content: '';
    position: absolute;
    top: 8px;
    bottom: 8px;
    left: -16px;
    width: 2px;
    background: transparent;
}

.curriculum__toc a:hover,
.curriculum__toc a.is-active {
    color: var(--link);
}

.curriculum__toc a.is-active::before {
    background: var(--link);
}

.curriculum__section + .curriculum__section {
    margin-top: clamp(48px, 6vw, 80px);
    padding-top: clamp(48px, 6vw, 80px);
    border-top: 1px solid var(--line);
}

.curriculum__section h2 {
    font-size: var(--fs-3xl);
}

.curriculum__subtitle {
    margin-top: 8px;
    color: var(--muted);
}

.curriculum__section .prose,
.curriculum__section .empty-note {
    margin-top: 22px;
}

.curriculum__image {
    margin: 24px 0 0;
}

.curriculum__image img {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    border-radius: var(--r-lg);
}

/* ---------------- Unit ---------------- */

.unit-profile {
    display: grid;
    grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
    gap: clamp(32px, 5vw, 72px);
    align-items: start;
}

.unit-profile__photo {
    margin: 0 0 32px;
}

.unit-profile__photo img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: var(--r-lg);
}

.side-card {
    padding: 24px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
}

.side-card + .side-card {
    margin-top: 20px;
}

.side-card h2 {
    font-family: var(--font-sans);
    font-size: var(--fs-md);
}

.side-card dl {
    display: grid;
    gap: 14px;
    margin-top: 16px;
}

.side-card dt {
    color: var(--muted);
    font-size: var(--fs-sm);
}

.side-card dd {
    font-weight: 600;
    overflow-wrap: anywhere;
}

.side-card dd a {
    color: var(--link);
}

.side-card .badge {
    margin-top: 14px;
}

.side-card .button {
    width: 100%;
    margin-top: 18px;
}

/* ---------------- Kontak ---------------- */

.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: clamp(28px, 5vw, 64px);
    align-items: start;
}

.contact-list {
    display: grid;
    border-top: 2px solid var(--ink);
}

.contact-list li {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 14px;
    padding: 18px 0;
    border-bottom: 1px solid var(--line);
}

.contact-list .icon {
    margin-top: 3px;
    color: var(--link);
}

.contact-list strong {
    display: block;
    color: var(--muted);
    font-size: var(--fs-sm);
    font-weight: 600;
}

.contact-list a {
    color: var(--ink);
    font-weight: 700;
    overflow-wrap: anywhere;
}

.map-frame {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
}

.map-frame iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.table-scroll {
    overflow-x: auto;
}

.data-list {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--fs-base);
}

.data-list th,
.data-list td {
    padding: 14px 16px 14px 0;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid var(--line);
}

.data-list thead th {
    color: var(--muted);
    font-size: var(--fs-sm);
    font-weight: 600;
    border-bottom: 2px solid var(--ink);
}

.data-list a {
    color: var(--link);
    overflow-wrap: anywhere;
}

/* ---------------- PPDB: papan unit ---------------- */

.unit-board {
    display: grid;
    gap: 12px;
}

.unit-row {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr) minmax(260px, 320px) 200px;
    align-items: center;
    gap: 16px 32px;
    padding: 20px 24px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-1);
    transition: border-color 160ms ease, box-shadow 200ms ease;
}

.unit-row:hover {
    border-color: var(--brand-200);
    box-shadow: var(--shadow-2);
}

.unit-row__code {
    width: 64px;
    height: 64px;
    display: grid;
    place-items: center;
    color: var(--muted);
    background: var(--paper);
    border-radius: var(--r-md);
    font-size: var(--fs-base);
    font-weight: 800;
    letter-spacing: 0.02em;
    line-height: 1;
}

.unit-row.is-open .unit-row__code {
    color: var(--on-brand);
    background: var(--brand-700);
}

.unit-row__capacity {
    display: grid;
    gap: 10px;
}

.unit-row__meter {
    display: block;
    height: 6px;
    overflow: hidden;
    background: var(--paper-2);
    border-radius: var(--r-pill);
}

.unit-row__meter span {
    display: block;
    height: 100%;
    min-width: 6px;
    background: linear-gradient(90deg, var(--brand-500), var(--brand-700));
    border-radius: inherit;
}

.unit-row__identity h3 {
    font-size: var(--fs-md);
}

.unit-row__identity h3 a {
    text-decoration: none;
}

.unit-row__identity h3 a:hover {
    color: var(--link);
    text-decoration: underline;
}

.unit-row__identity p {
    margin-top: 4px;
    color: var(--muted);
    font-size: var(--fs-sm);
}

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

.unit-row__numbers div {
    display: grid;
    gap: 2px;
}

.unit-row__numbers dt {
    color: var(--muted);
    font-size: var(--fs-xs);
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
}

.unit-row__numbers dd {
    font-size: var(--fs-xl);
    font-weight: 800;
    letter-spacing: var(--tracking-snug);
    line-height: 1.15;
    font-variant-numeric: tabular-nums;
}

.unit-row__status {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: nowrap;
    gap: 10px;
}

.unit-board__note {
    max-width: 72ch;
    margin-top: 20px;
    color: var(--muted);
    font-size: var(--fs-sm);
}

/* ---------------- PPDB: hero dan ringkasan ---------------- */

.ppdb-hero {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(280px, 4fr);
    align-items: center;
    gap: clamp(28px, 5vw, 64px);
}

.page-hero--ppdb h1 {
    max-width: 20ch;
}

.ppdb-summary {
    padding: 24px;
    color: #fff;
    background: linear-gradient(150deg, var(--pub-green-700) 0%, var(--pub-green-900) 100%);
    border-radius: var(--pub-r-lg);
    box-shadow: 0 18px 40px -16px rgba(15, 58, 45, 0.45);
}

.ppdb-summary__eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #f0d79a;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ppdb-summary__eyebrow::before {
    content: '';
    width: 24px;
    height: 2px;
    background: var(--pub-gold-500);
}

.ppdb-summary dl {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    margin: 16px 0 0;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.14);
    border-radius: var(--pub-r-sm);
}

.ppdb-summary dl > div {
    padding: 14px 16px;
    background: rgba(11, 42, 33, 0.55);
}

.ppdb-summary dt {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.ppdb-summary dd {
    margin: 2px 0 0;
    color: #fff;
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.2;
    font-variant-numeric: tabular-nums;
}

.ppdb-summary dd small {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    font-weight: 600;
}

.ppdb-summary__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 16px;
    color: #fff;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-decoration: none;
    text-transform: uppercase;
}

.ppdb-summary__link::after {
    content: '\203A';
    font-size: 1.25em;
    line-height: 1;
}

.ppdb-summary__link:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Subnavigasi halaman: tab pill. */
.subpage-nav ul {
    gap: 6px;
    padding-block: 10px;
}

.subpage-nav a {
    padding: 8px 16px;
    color: var(--pub-text);
    border: 1px solid transparent;
    border-bottom: 1px solid transparent;
    border-radius: var(--r-pill);
    font-size: 0.875rem;
    font-weight: 600;
}

.subpage-nav a:hover {
    color: var(--pub-green-700);
    background: var(--pub-green-50);
    border-color: transparent;
}

.subpage-nav a.is-active {
    color: #fff;
    background: var(--pub-green-600);
    border-color: var(--pub-green-600);
}

/* ---------------- PPDB: alur ---------------- */

.steps {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.step,
.step + .step {
    position: relative;
    padding: 28px 24px 24px;
    background: var(--pub-surface);
    border: 0;
    border-radius: var(--pub-r-lg);
    box-shadow: var(--pub-shadow);
}

/* Garis penghubung antarlangkah di layar lebar. */
.step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 52px;
    right: -24px;
    width: 24px;
    height: 2px;
    background: var(--pub-gold-500);
}

.step__number {
    display: grid;
    width: 48px;
    height: 48px;
    margin-bottom: 18px;
    place-items: center;
    color: var(--pub-green-800);
    background: var(--pub-gold-100);
    border-radius: 50%;
    font-size: 1.125rem;
    font-weight: 700;
}

:root[data-theme="dark"] .step__number {
    color: var(--pub-gold-ink);
}

.step h3 {
    font-size: var(--pub-fs-h3);
}

.step p {
    margin-top: 10px;
    color: var(--pub-text);
    font-size: 1rem;
}

.step .step__meta {
    display: inline-flex;
    margin-top: 16px;
    padding: 4px 12px;
    color: var(--pub-green-700);
    background: var(--pub-green-100);
    border-radius: var(--r-pill);
    font-size: 0.8125rem;
    font-weight: 600;
}

:root[data-theme="dark"] .step .step__meta {
    color: var(--pub-ink);
}

/* ---------------- PPDB: persiapan ---------------- */

.prep-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 24px;
}

.prep-block {
    grid-column: span 4;
    display: flex;
    flex-direction: column;
    padding: 28px;
    background: var(--pub-surface);
    border: 0;
    border-radius: var(--pub-r-lg);
    box-shadow: var(--pub-shadow);
}

.prep-block h3 {
    margin-bottom: 18px;
    font-size: 1.125rem;
}

.prep-block__note {
    margin-top: auto;
    padding-top: 18px;
    color: var(--pub-muted);
    font-size: 0.875rem;
}

.prep-block--accent {
    color: #fff;
    background: linear-gradient(160deg, var(--pub-green-700) 0%, var(--pub-green-900) 100%);
}

.prep-block--accent h3 {
    color: #f0d79a;
}

.prep-block--accent .prep-block__note {
    color: rgba(255, 255, 255, 0.78);
}

.checklist {
    display: grid;
    gap: 12px;
}

.checklist li {
    display: flex;
    gap: 12px;
    color: var(--pub-text);
    font-size: 1rem;
}

.checklist .i-check,
.checklist .icon {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    padding: 3px;
    color: var(--pub-green-700);
    background: var(--pub-green-100);
    border-radius: 50%;
}

.age-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9375rem;
}

.age-table th,
.age-table td {
    padding: 10px 0;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid var(--pub-line);
}

.age-table thead th {
    padding-top: 0;
    color: var(--pub-muted);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.age-table tbody th {
    padding-right: 12px;
    color: var(--pub-ink);
    font-weight: 600;
}

.age-table td {
    color: var(--pub-green-700);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

:root[data-theme="dark"] .age-table td {
    color: var(--link);
}

.age-table td small {
    display: block;
    margin-top: 2px;
    color: var(--pub-muted);
    font-size: 0.8125rem;
    font-weight: 400;
    white-space: normal;
}

.program-list li {
    display: flex;
    gap: 10px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    font-size: 0.9375rem;
    font-weight: 600;
}

.program-list li::before {
    content: '';
    width: 8px;
    height: 8px;
    flex: none;
    margin-top: 8px;
    background: var(--pub-gold-500);
    border-radius: 50%;
}

.program-list li:first-child {
    padding-top: 0;
}

/* ---------------- PPDB: angka ---------------- */

.metrics {
    display: grid;
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    gap: 24px;
}

.metric-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-content: start;
    gap: 12px;
    background: transparent;
    border: 0;
}

.metric,
.metric:nth-child(n) {
    display: grid;
    align-content: start;
    gap: 2px;
    padding: 20px;
    background: var(--pub-surface);
    border: 0;
    border-radius: var(--pub-r-lg);
    box-shadow: var(--pub-shadow);
}

.metric dt {
    color: var(--pub-muted);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.metric dd {
    color: var(--pub-green-700);
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
    font-variant-numeric: tabular-nums;
}

:root[data-theme="dark"] .metric dd {
    color: var(--link);
}

.metric dd.metric__note {
    color: var(--pub-muted);
    font-size: 0.8125rem;
    font-weight: 400;
}

.chart-card {
    min-width: 0;
    padding: 24px;
    background: var(--pub-surface);
    border: 0;
    border-radius: var(--pub-r-lg);
    box-shadow: var(--pub-shadow);
}

.chart-card header {
    margin-bottom: 16px;
}

.chart-card h3 {
    font-size: 1.125rem;
}

.chart-card p {
    margin-top: 2px;
    color: var(--pub-muted);
    font-size: 0.875rem;
}

.visit-chart {
    position: relative;
    height: 240px;
    touch-action: pan-y;
    --chart: var(--pub-green-600);
    --chart-soft: color-mix(in srgb, var(--pub-green-600) 14%, transparent);
}

.visit-chart svg {
    display: block;
    width: 100%;
    height: 100%;
    overflow: visible;
}

.visit-chart .grid-line { stroke: var(--pub-line); stroke-width: 1; }
.visit-chart .axis-text { fill: var(--pub-muted); font-family: var(--font-sans); font-size: var(--fs-xs); font-variant-numeric: tabular-nums; }
.visit-chart .area { fill: var(--chart-soft); }
.visit-chart .line { fill: none; stroke: var(--chart); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.visit-chart .crosshair { stroke: var(--faint); stroke-width: 1; stroke-dasharray: 3 3; }
.visit-chart .marker { fill: var(--chart); stroke: var(--pub-surface); stroke-width: 2; }

.stats-tooltip {
    position: fixed;
    z-index: 70;
    min-width: 150px;
    padding: 10px 12px;
    color: var(--pub-ink);
    background: var(--pub-surface);
    border: 1px solid var(--pub-line);
    border-radius: 8px;
    box-shadow: var(--pub-shadow-hover);
    font-size: var(--fs-sm);
    line-height: 1.45;
    pointer-events: none;
}

.stats-tooltip__title { margin-bottom: 4px; color: var(--pub-muted); font-size: var(--fs-xs); font-weight: 600; }
.stats-tooltip__row { display: flex; align-items: center; gap: 8px; }
.stats-tooltip__row strong { font-size: var(--fs-sm); font-variant-numeric: tabular-nums; }
.stats-tooltip__row span { color: var(--pub-muted); }
.stats-tooltip__key { flex: none; width: 12px; height: 2px; background: var(--pub-green-600); }
.stats-tooltip__key.is-muted { background: var(--faint); }

.stats-table {
    margin-top: 16px;
    font-size: var(--fs-sm);
}

.stats-table summary {
    width: fit-content;
    color: var(--pub-green-600);
    font-weight: 600;
    cursor: pointer;
}

.stats-table__scroll {
    max-height: 260px;
    margin-top: 12px;
    overflow: auto;
    border: 1px solid var(--pub-line);
    border-radius: 8px;
}

.stats-table table { width: 100%; border-collapse: collapse; }
.stats-table th,
.stats-table td { padding: 8px 12px; text-align: left; border-bottom: 1px solid var(--pub-line); font-variant-numeric: tabular-nums; }
.stats-table th { position: sticky; top: 0; color: var(--pub-muted); background: var(--pub-bg-alt); font-size: var(--fs-sm); font-weight: 600; }
.stats-table td + td,
.stats-table th + th { text-align: right; }

/* ---------------- FAQ ---------------- */

.faq {
    display: grid;
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    gap: clamp(24px, 5vw, 64px);
    align-items: start;
}

.faq .section-head {
    margin-bottom: 0;
}

.faq .section-head a {
    color: var(--pub-green-600);
}

.faq-list {
    display: grid;
    gap: 12px;
    border: 0;
}

.faq-item {
    overflow: hidden;
    background: var(--pub-surface);
    border: 0;
    border-radius: var(--pub-r-lg);
    box-shadow: var(--pub-shadow);
    transition: box-shadow 200ms ease;
}

.faq-item[open] {
    box-shadow: var(--pub-shadow-hover);
}

.faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 20px;
    color: var(--pub-ink);
    cursor: pointer;
    list-style: none;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary:hover {
    color: var(--pub-green-600);
}

.faq-item summary:focus-visible {
    outline: none;
    box-shadow: inset var(--pub-focus);
}

.faq-item__icon {
    width: 32px;
    height: 32px;
    flex: none;
    padding: 6px;
    color: var(--pub-green-700);
    background: var(--pub-green-100);
    border-radius: 50%;
    transition: transform 220ms var(--ease-out);
}

.faq-item[open] .faq-item__icon {
    transform: rotate(180deg);
}

:root[data-theme="dark"] .faq-item__icon {
    color: var(--pub-ink);
}

.faq-item__answer p {
    max-width: 66ch;
    padding: 0 20px 20px;
    color: var(--pub-text);
}

/* ---------------- Penutup ---------------- */

.closing {
    padding: clamp(48px, 7vw, 80px) 0;
    color: #fff;
    background: var(--pub-green-900);
}

.closing h2 {
    max-width: 22ch;
    color: #fff;
    font-size: var(--pub-fs-h2);
}

.closing p {
    margin-top: 12px;
    color: rgba(255, 255, 255, 0.85);
}

.closing__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

/* Penutup halaman PPDB: kartu gradien seperti pita PPDB beranda. */
.closing--card {
    padding: 0 0 var(--section-y);
    background: transparent;
}

.closing--card .closing__inner {
    position: relative;
    overflow: hidden;
    padding: clamp(32px, 5vw, 56px);
    background: linear-gradient(135deg, var(--pub-green-700) 0%, var(--pub-green-600) 100%);
    border-radius: var(--pub-r-lg);
    isolation: isolate;
}

.closing--card .closing__inner::before {
    content: '';
    position: absolute;
    z-index: -1;
    width: 260px;
    height: 260px;
    top: -110px;
    right: -70px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
}

@media (max-width: 1060px) {
    .ppdb-hero {
        grid-template-columns: minmax(0, 1fr);
    }

    .step:not(:last-child)::after {
        display: none;
    }
}

@media (max-width: 640px) {
    .closing__inner {
        align-items: stretch;
        flex-direction: column;
    }

    .closing--card .closing__inner .button {
        width: 100%;
    }
}

/* ---------------- Footer ---------------- */

.site-footer {
    padding: 64px 0 24px;
    color: rgba(255, 255, 255, 0.8);
    background: var(--pub-green-950);
    font-size: 0.875rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 0.8fr) minmax(0, 1fr);
    gap: 40px;
    padding-bottom: 40px;
}

.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
}

.footer-brand img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.footer-identity > p {
    margin-top: 14px;
    color: #fff;
    font-size: 1rem;
}

.footer-contact {
    display: grid;
    gap: 10px;
    margin-top: 20px;
}

.footer-contact li {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    gap: 10px;
}

.footer-contact .icon {
    margin-top: 2px;
    color: var(--pub-gold-500);
}

.footer-heading {
    margin-bottom: 16px;
    color: var(--pub-gold-500);
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 1.4;
    text-transform: uppercase;
}

.footer-heading--spaced {
    margin-top: 28px;
}

.footer-list {
    display: grid;
    gap: 10px;
}

.site-footer a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    overflow-wrap: anywhere;
    transition: color 150ms ease;
}

.site-footer a:hover {
    color: #fff;
}

.site-footer .footer-brand,
.footer-contact a {
    color: #fff;
}

/* Kartu PPDB di kolom keempat. */
.footer-ppdb {
    padding: 20px;
    background: var(--pub-green-700);
    border-radius: var(--pub-r-lg);
}

.footer-ppdb .footer-heading {
    margin-bottom: 8px;
    color: #f0d79a;
}

.footer-note {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.55;
}

.footer-cta {
    margin-top: 16px;
}

.site-footer a.footer-cta,
.site-footer a.footer-cta:hover {
    color: #0f3a2d;
}

/* Ikon media sosial bulat bergaris. */
.footer-social {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    color: #fff;
    border: 1.5px solid rgba(255, 255, 255, 0.35);
    border-radius: 50%;
    transition: background-color 150ms ease, border-color 150ms ease;
}

.site-footer .footer-social a:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
}

.footer-social .icon {
    width: 18px;
    height: 18px;
}

.site-footer a:focus-visible {
    outline: 3px solid var(--pub-green-400);
    outline-offset: 2px;
}

.footer-legal {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px 24px;
    padding-top: 20px;
    color: rgba(255, 255, 255, 0.6);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.75rem;
}

/* ---------------- Asisten AI ---------------- */

.assistant {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 90;
}

.assistant__launcher {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 52px;
    padding: 0 20px 0 16px;
    color: var(--on-brand);
    background: var(--brand-700);
    border: 0;
    border-radius: var(--r-pill);
    box-shadow: var(--shadow-3);
    font: inherit;
    font-size: var(--fs-base);
    font-weight: 700;
    cursor: pointer;
    transition: background-color 150ms ease, transform 200ms var(--ease-out);
}

.assistant__launcher:hover {
    background: var(--brand-800);
    transform: translateY(-1px);
}

.assistant__launcher .icon {
    width: 22px;
    height: 22px;
}

.assistant__launcher[aria-expanded="true"] {
    display: none;
}

.assistant__panel {
    width: min(400px, calc(100vw - 32px));
    height: min(620px, calc(100vh - 110px));
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--surface-raised);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-3);
    animation: panel-in 220ms var(--ease-out);
}

.assistant__panel[hidden] {
    display: none;
}

@keyframes panel-in {
    from { opacity: 0; transform: translateY(12px) scale(0.98); }
}

.assistant__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px;
    color: #fff;
    background: var(--brand-900);
}

.assistant__head h2 {
    font-family: var(--font-sans);
    font-size: var(--fs-base);
}

.assistant__head p {
    color: rgba(255, 255, 255, 0.72);
    font-size: var(--fs-sm);
}

.assistant__close {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    flex: none;
    color: #fff;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--r-sm);
    cursor: pointer;
}

.assistant__log {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 18px;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.assistant__msg {
    max-width: 88%;
    padding: 10px 14px;
    border-radius: var(--r-lg);
    font-size: var(--fs-base);
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.assistant__msg p + p,
.assistant__msg ul,
.assistant__msg ol {
    margin-top: 8px;
}

.assistant__msg ul,
.assistant__msg ol {
    padding-left: 18px;
    list-style: disc;
}

.assistant__msg a {
    color: var(--link);
}

.assistant__msg--bot {
    align-self: flex-start;
    color: var(--ink);
    background: var(--paper-2);
    border-bottom-left-radius: 4px;
}

.assistant__msg--user {
    align-self: flex-end;
    color: var(--on-brand);
    background: var(--brand-700);
    border-bottom-right-radius: 4px;
}

.assistant__msg--error {
    color: var(--danger-fg);
    background: var(--danger-bg);
}

.assistant__typing {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--muted);
    font-size: var(--fs-sm);
}

.assistant__suggest {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.assistant__suggest button {
    padding: 8px 12px;
    color: var(--link);
    background: transparent;
    border: 1px solid var(--brand-200);
    border-radius: var(--r-pill);
    font: inherit;
    font-size: var(--fs-sm);
    font-weight: 600;
    text-align: left;
    cursor: pointer;
}

.assistant__suggest button:hover {
    background: var(--brand-50);
}

.assistant__form {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    padding: 12px;
    border-top: 1px solid var(--line);
}

.assistant__form textarea {
    flex: 1;
    min-height: 44px;
    max-height: 140px;
    padding: 11px 12px;
    resize: none;
    color: var(--ink);
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: var(--r-md);
    font: inherit;
    font-size: var(--fs-base);
    line-height: 1.45;
}

.assistant__form textarea:focus {
    border-color: var(--link);
    outline: none;
    box-shadow: var(--focus-ring);
}

.assistant__send {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    flex: none;
    color: var(--on-brand);
    background: var(--brand-700);
    border: 0;
    border-radius: var(--r-md);
    cursor: pointer;
}

.assistant__send:disabled {
    opacity: 0.6;
    cursor: wait;
}

.assistant__note {
    padding: 0 14px 12px;
    color: var(--muted);
    font-size: var(--fs-xs);
}

/* ---------------- Responsif ---------------- */

@media (max-width: 1180px) {
    .unit-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .people-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 1100px) {
    .unit-row {
        grid-template-columns: 64px minmax(0, 1fr) minmax(240px, 300px);
    }

    .unit-row__status {
        grid-column: 2 / -1;
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .prep-block {
        grid-column: span 6;
    }

    .prep-block--accent {
        grid-column: span 12;
    }

    .metrics {
        grid-template-columns: minmax(0, 1fr);
    }

    .metric-list {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

}

/* Tombol akordeon submenu dibuat js/site.js; hanya tampil di menu ponsel. */
.subnav-toggle {
    display: none;
}

@media (max-width: 1320px) {
    .menu-toggle {
        display: grid;
    }

    .primary-navigation {
        position: fixed;
        inset: var(--header-h) 0 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 0 var(--gutter);
        overflow: hidden;
        background: var(--pub-surface);
        visibility: hidden;
        opacity: 0;
        transform: translateY(-8px);
        transition: opacity 220ms ease, transform 220ms var(--ease-out), visibility 0s linear 220ms;
    }

    .primary-navigation.is-open {
        padding: 8px var(--gutter) 32px;
        overflow-y: auto;
        visibility: visible;
        opacity: 1;
        transform: none;
        transition: opacity 220ms ease, transform 220ms var(--ease-out), visibility 0s;
    }

    .nav-list {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    .nav-item {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        border-bottom: 1px solid var(--pub-line);
    }

    .nav-link {
        width: 100%;
        min-height: 52px;
        padding: 14px 4px;
        font-size: 1rem;
    }

    .nav-link .icon {
        display: none;
    }

    .nav-link.is-current,
    :root[data-theme="dark"] .nav-link.is-current {
        box-shadow: inset 3px 0 0 var(--pub-green-600);
        padding-left: 14px;
    }

    .subnav-toggle {
        width: 44px;
        height: 44px;
        display: grid;
        place-items: center;
        padding: 0;
        color: var(--pub-text);
        background: transparent;
        border: 0;
        border-radius: 50%;
        cursor: pointer;
    }

    .subnav-toggle::before {
        content: "";
        width: 9px;
        height: 9px;
        border-right: 2px solid currentColor;
        border-bottom: 2px solid currentColor;
        transform: translateY(-2px) rotate(45deg);
        transition: transform 180ms var(--ease-out);
    }

    .is-expanded > .subnav-toggle::before {
        transform: translateY(2px) rotate(-135deg);
    }

    .subnav-toggle:focus-visible {
        outline: none;
        box-shadow: var(--pub-focus);
    }

    .subnav,
    .has-children:hover > .subnav,
    .has-children:focus-within > .subnav {
        position: static;
        grid-column: 1 / -1;
        display: none;
        min-width: 0;
        margin: 0 0 12px;
        padding: 4px 0;
        background: var(--pub-green-50);
        border: 0;
        border-radius: 8px;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        transition: none;
    }

    .has-children.is-expanded > .subnav {
        display: block;
    }

    .subnav a {
        padding: 12px 16px;
        font-size: 0.9375rem;
    }

    .primary-navigation .nav-apply {
        min-height: 48px;
        margin-top: 24px;
    }
}

@media (max-width: 1060px) {
    .intro,
    .video-block,
    .welcome,
    .vision,
    .faq,
    .contact-grid,
    .unit-profile,
    .curriculum {
        grid-template-columns: minmax(0, 1fr);
    }

    .curriculum__toc {
        display: none;
    }

    .news-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .news-card--lead {
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
    }

    .news-card--lead .news-meta {
        margin-top: 14px;
    }

    .facility-grid,
    .legal-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .steps {
        grid-template-columns: minmax(0, 1fr);
        gap: 28px;
    }

    .step,
    .step + .step {
        display: grid;
        grid-template-columns: 48px minmax(0, 1fr);
        column-gap: 18px;
        padding: 20px;
    }

    .step__number {
        grid-row: span 3;
        margin: 0;
    }

    .welcome__photo {
        max-width: 320px;
    }

    .footer-grid {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }

    .footer-identity {
        grid-column: 1 / -1;
    }
}

@media (max-width: 720px) {
    .unit-grid,
    .people-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ppdb-band {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 640px) {
    .brand-copy small {
        display: none;
    }

    .brand-copy strong {
        font-size: var(--fs-sm);
    }

    .section-head--split {
        display: block;
    }

    .section-head__meta {
        margin-top: 8px !important;
    }

    .news-grid,
    .facility-grid,
    .legal-list {
        grid-template-columns: minmax(0, 1fr);
    }

    .unit-row {
        grid-template-columns: 48px minmax(0, 1fr);
        gap: 16px 14px;
        padding: 18px;
    }

    .unit-row__code {
        width: 48px;
        height: 48px;
        align-self: start;
        font-size: var(--fs-sm);
    }

    .unit-row__capacity,
    .unit-row__status {
        grid-column: 1 / -1;
    }

    .unit-row__numbers dd {
        font-size: var(--fs-lg);
    }

    .prep-block,
    .prep-block--accent {
        grid-column: span 12;
        padding: 22px;
    }

    .metric-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .metric,
    .metric:nth-child(n) {
        padding: 16px;
    }

    .chart-card {
        padding: 18px;
    }

    .visit-chart {
        height: 210px;
    }

    .footer-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .assistant {
        right: 12px;
        bottom: 12px;
    }

    .assistant__launcher span {
        display: none;
    }

    .assistant__launcher {
        width: 56px;
        height: 56px;
        justify-content: center;
        padding: 0;
    }

    .assistant__panel {
        position: fixed;
        inset: auto 8px 8px;
        width: auto;
        height: min(640px, calc(100vh - 80px));
    }
}

/* Halaman program, galeri, cerita, dan direktori unit. */
.unit-directory-filter {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(180px, .8fr) auto;
    align-items: end;
    gap: 16px;
    margin-bottom: 44px;
    padding: 22px;
    border: 1px solid var(--line-soft);
    border-radius: var(--r-lg);
    background: var(--surface);
    box-shadow: var(--shadow-1);
}
.unit-directory-filter__field { display: grid; gap: 8px; }
.unit-directory-filter__field label { color: var(--ink); font-size: var(--fs-sm); font-weight: 700; }
.unit-directory-filter__field input,
.unit-directory-filter__field select {
    width: 100%; min-height: 48px; padding: 10px 13px; border: 1px solid var(--line);
    border-radius: var(--r-md); color: var(--ink); background: var(--surface); font: inherit;
}
.unit-directory-filter__field input:focus,
.unit-directory-filter__field select:focus { outline: 3px solid color-mix(in srgb, var(--brand) 22%, transparent); border-color: var(--brand); }
.unit-directory-filter__actions { display: flex; flex-wrap: wrap; gap: 9px; }
.unit-directory-heading { margin-bottom: 22px; }
.showcase-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.showcase-card { overflow: hidden; border: 1px solid var(--line-soft); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow-1); }
.showcase-card__image { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: var(--paper-2); }
.showcase-card__body { padding: 22px; }
.showcase-card__body h3 { margin: 0; color: var(--ink); font-family: var(--font-display); font-size: var(--fs-lg); }
.showcase-card__summary { margin: 9px 0 0; color: var(--ink-muted); }
.showcase-card .prose { margin-top: 14px; }
.showcase-grid--stories { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.showcase-card--story .showcase-card__body { padding: 26px; }
.showcase-card--story blockquote { margin: 0 0 20px; padding-left: 18px; border-left: 3px solid var(--brand); }
.showcase-card__byline { margin: 4px 0 0; color: var(--ink-muted); font-size: var(--fs-sm); }
.gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.gallery-card { position: relative; overflow: hidden; margin: 0; min-height: 260px; border-radius: var(--r-lg); background: var(--paper-2); }
.gallery-card img { display: block; width: 100%; height: 100%; min-height: 260px; object-fit: cover; transition: transform .35s ease; }
.gallery-card:hover img { transform: scale(1.035); }
.gallery-card figcaption { position: absolute; inset: auto 0 0; display: grid; gap: 4px; padding: 38px 18px 17px; color: #fff; background: linear-gradient(transparent, rgb(10 24 18 / 88%)); }
.gallery-card figcaption span { font-size: var(--fs-xs); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.gallery-card figcaption strong { font-size: var(--fs-md); }
.gallery-card figcaption small { opacity: .88; }

@media (max-width: 760px) {
    .unit-directory-filter { grid-template-columns: 1fr; padding: 18px; margin-bottom: 32px; }
    .unit-directory-filter__actions .button { flex: 1; justify-content: center; }
    .showcase-grid, .showcase-grid--stories, .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
    .showcase-card__body, .showcase-card--story .showcase-card__body { padding: 17px; }
    .gallery-card, .gallery-card img { min-height: 210px; }
}
@media (max-width: 520px) {
    .showcase-grid, .showcase-grid--stories, .gallery-grid { grid-template-columns: 1fr; }
    .gallery-card, .gallery-card img { min-height: 250px; }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }


    .spinner {
        animation-duration: 1.6s !important;
        animation-iteration-count: infinite !important;
    }

    /* Pudar bukan gerakan: crossfade slider tetap halus, efek zoom dimatikan. */
    .hero-slide.is-active {
        transition-duration: var(--slide-fade, 1400ms) !important;
    }

    .hero-slider__caption {
        transition-duration: 450ms !important;
    }

    .hero-slide img {
        transform: none !important;
    }
}
