/* ==========================================================================
   APE Distribution Kits — Dokumentasi Page
   Scoped to body.ape-dokumentasi-page
   ========================================================================== */

body.ape-dokumentasi-page {
    --dok-primary: #2563eb;
    --dok-primary-dark: #1e40af;
    --dok-navy: #10213c;
    --dok-muted: #64748b;
    --dok-line: #e4eaf3;
    --dok-soft: #f7faff;
    --dok-card-radius: 24px;
    --dok-card-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
    font-family: Inter, Arial, sans-serif;
    color: var(--dok-navy);
    background: #ffffff;
}

.ape-dokumentasi {
    overflow: hidden;
}

.ape-dokumentasi *,
.ape-dokumentasi *::before,
.ape-dokumentasi *::after {
    box-sizing: border-box;
}

.dok-container {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

.dok-eyebrow {
    display: inline-block;
    margin-bottom: 12px;
    color: var(--dok-primary);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.dok-hero {
    padding: 92px 0 48px;
    background:
        radial-gradient(circle at 82% 18%, rgba(37, 99, 235, 0.14), transparent 28%),
        radial-gradient(circle at 18% 72%, rgba(20, 184, 166, 0.10), transparent 30%),
        linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

.dok-hero-copy {
    max-width: 760px;
}

.dok-hero-copy h1 {
    margin: 0 0 16px;
    color: var(--dok-navy);
    font-size: clamp(32px, 4vw, 48px);
    line-height: 1.12;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.dok-hero-copy p {
    margin: 0;
    max-width: 720px;
    color: var(--dok-muted);
    font-size: 17px;
    line-height: 1.7;
}

.dok-gallery-section {
    padding: 24px 0 72px;
    background: var(--dok-soft);
}

.dok-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.dok-gallery-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    border: 1px solid var(--dok-line);
    border-radius: var(--dok-card-radius);
    background: #ffffff;
    box-shadow: var(--dok-card-shadow);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.dok-gallery-card:hover {
    transform: translateY(-4px);
    border-color: #c7dcfb;
    box-shadow: 0 20px 42px rgba(15, 23, 42, 0.10);
}

.dok-gallery-trigger {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    text-align: left;
}

.dok-gallery-trigger:focus {
    outline: none;
}

.dok-gallery-trigger:focus-visible .dok-gallery-media {
    box-shadow: inset 0 0 0 3px rgba(37, 99, 235, 0.35);
}

.dok-gallery-media {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #eef2f7;
}

.dok-gallery-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.28s ease;
}

.dok-gallery-card:hover .dok-gallery-media img {
    transform: scale(1.03);
}

.dok-gallery-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 10px;
    padding: 22px 22px 24px;
}

.dok-gallery-body h2 {
    margin: 0;
    color: var(--dok-navy);
    font-size: 20px;
    line-height: 1.3;
    font-weight: 800;
}

.dok-gallery-body p {
    margin: 0;
    color: var(--dok-muted);
    font-size: 15px;
    line-height: 1.62;
}

.dok-gallery-location {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
    color: var(--dok-primary-dark);
    font-size: 13px;
    font-weight: 700;
}

.dok-empty-state {
    padding: 56px 32px;
    border: 1px dashed #c7dcfb;
    border-radius: var(--dok-card-radius);
    background: #ffffff;
    box-shadow: var(--dok-card-shadow);
    text-align: center;
}

.dok-empty-icon {
    display: grid;
    width: 72px;
    height: 72px;
    margin: 0 auto 18px;
    place-items: center;
    border-radius: 22px;
    background: #eff6ff;
    color: var(--dok-primary);
    font-size: 28px;
}

.dok-empty-state h2 {
    margin: 0 0 10px;
    color: var(--dok-navy);
    font-size: 28px;
    font-weight: 800;
}

.dok-empty-state p {
    margin: 0 auto;
    max-width: 520px;
    color: var(--dok-muted);
    font-size: 16px;
    line-height: 1.65;
}

.dok-photo-modal .modal-content {
    border: 0;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.18);
}

.dok-photo-modal .modal-header {
    border-bottom: 1px solid var(--dok-line);
}

.dok-photo-modal .modal-title {
    color: var(--dok-navy);
    font-weight: 800;
}

.dok-photo-modal-image {
    display: block;
    width: 100%;
    max-height: 70vh;
    margin: 0 auto 16px;
    object-fit: contain;
    border-radius: 12px;
    background: #f1f5f9;
}

.dok-photo-modal-caption,
.dok-photo-modal-location {
    margin: 0;
    color: var(--dok-muted);
    line-height: 1.6;
}

.dok-photo-modal-location {
    margin-top: 8px;
    color: var(--dok-primary-dark);
    font-weight: 700;
}

@media (max-width: 980px) {
    .dok-gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {
    .dok-container {
        width: min(100% - 28px, 1180px);
    }

    .dok-hero {
        padding: 72px 0 36px;
    }

    .dok-gallery-section {
        padding-bottom: 56px;
    }

    .dok-gallery-grid {
        grid-template-columns: 1fr;
    }

    .dok-gallery-body h2 {
        font-size: 18px;
    }
}
