/* ==========================================================================
   APE Distribution Kits — Dokumentasi & Panduan
   Scoped to body.ape-dokumentasi-page
   Aligned with /page/kits + /page/summary palette (blue #2563eb, teal #14b8a6)
   ========================================================================== */

body.ape-dokumentasi-page {
    --dok-primary: #2563eb;
    --dok-primary-dark: #1e40af;
    --dok-teal: #14b8a6;
    --dok-btn-a: #347ed1;
    --dok-btn-b: #2b6fbe;
    --dok-navy: #10213c;
    --dok-muted: #64748b;
    --dok-line: #e4eaf3;
    --dok-soft: #f7faff;
    --dok-library: #f3f7fc;
    --dok-card-radius: 20px;
    --dok-card-shadow: 0 12px 28px rgba(30, 64, 175, 0.06);
    --dok-card-shadow-hover: 0 18px 38px rgba(30, 64, 175, 0.10);
    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-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    color: var(--dok-primary);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.dok-eyebrow::before {
    content: '';
    display: inline-block;
    width: 18px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--dok-primary), var(--dok-teal));
}

/* --------------------------------------------------------------------------
   Hero — same treatment family as .kits-hero
   -------------------------------------------------------------------------- */

.dok-hero {
    position: relative;
    overflow: hidden;
    padding: 72px 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%);
    border-bottom: 1px solid rgba(31, 85, 150, 0.08);
}

.dok-hero-bg-dots {
    position: absolute;
    left: 0;
    top: 18px;
    width: 170px;
    height: 230px;
    opacity: 0.28;
    background-image: radial-gradient(#2f80ed 1.4px, transparent 1.4px);
    background-size: 14px 14px;
    pointer-events: none;
    z-index: 0;
}

.dok-hero .dok-container {
    position: relative;
    z-index: 1;
}

.dok-hero-copy {
    max-width: 720px;
}

.dok-hero-copy h1 {
    margin: 0 0 14px;
    color: var(--dok-navy);
    font-size: clamp(32px, 4vw, 46px);
    line-height: 1.12;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.dok-hero-copy p {
    margin: 0;
    max-width: 640px;
    color: var(--dok-muted);
    font-size: 17px;
    line-height: 1.75;
}

/* --------------------------------------------------------------------------
   Filter chips
   -------------------------------------------------------------------------- */

.dok-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
}

.dok-filter-chip {
    appearance: none;
    -webkit-appearance: none;
    border: 1px solid rgba(37, 99, 235, 0.16);
    background: #ffffff;
    color: #31445f;
    border-radius: 999px;
    min-height: 40px;
    padding: 9px 16px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.04);
    outline: none;
    transition: 0.2s ease;
}

.dok-filter-chip:hover {
    border-color: rgba(37, 99, 235, 0.35);
    background: rgba(239, 246, 255, 0.95);
    color: var(--dok-primary-dark);
}

.dok-filter-chip.is-active,
.dok-filter-chip.active {
    color: #ffffff;
    border-color: transparent;
    background: linear-gradient(135deg, #2563eb, #14b8a6);
    box-shadow: 0 10px 22px rgba(37, 99, 235, 0.22);
}

.dok-filter-chip:focus-visible {
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.22);
}

/* --------------------------------------------------------------------------
   Sections — alternating backgrounds
   -------------------------------------------------------------------------- */

.dok-section-head {
    max-width: 720px;
    margin-bottom: 28px;
}

.dok-section-head--center {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.dok-section-head--center .dok-eyebrow {
    justify-content: center;
}

.dok-section-head h2 {
    margin: 0 0 10px;
    color: var(--dok-navy);
    font-size: clamp(26px, 3vw, 34px);
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.dok-section-head p {
    margin: 0;
    color: var(--dok-muted);
    font-size: 15px;
    line-height: 1.7;
}

.dok-featured-section {
    padding: 72px 0;
    background: #ffffff;
}

.dok-library-section {
    position: relative;
    padding: 72px 0 80px;
    background:
        radial-gradient(circle at 12% 0%, rgba(37, 99, 235, 0.06), transparent 34%),
        radial-gradient(circle at 88% 100%, rgba(20, 184, 166, 0.05), transparent 30%),
        var(--dok-library);
}

.dok-featured-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.dok-library-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

/* --------------------------------------------------------------------------
   Featured cards
   -------------------------------------------------------------------------- */

.dok-featured-card {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 22px;
    align-items: stretch;
    min-width: 0;
    padding: 20px;
    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.98),
            rgba(242, 247, 255, 0.98)
        );
    border: 1px solid rgba(37, 99, 235, 0.10);
    border-radius: 22px;
    box-shadow: var(--dok-card-shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.dok-featured-card:hover {
    transform: translateY(-3px);
    border-color: rgba(37, 99, 235, 0.22);
    box-shadow: var(--dok-card-shadow-hover);
}

.dok-featured-card.is-filtered-out {
    display: none !important;
}

.dok-featured-cover {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
    padding: 14px;
    border-radius: 18px;
    background:
        linear-gradient(
            145deg,
            #eaf2ff,
            #eef9fa
        );
    overflow: hidden;
}

.dok-featured-cover img {
    display: block;
    width: 100%;
    aspect-ratio: 3 / 4;
    height: auto;
    object-fit: cover;
    object-position: top center;
    border-radius: 12px;
    box-shadow: 0 10px 24px rgba(30, 64, 175, 0.10);
}

.dok-featured-body {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 2px 0;
}

.dok-featured-card .dok-doc-title {
    font-size: 20px;
    margin: 6px 0 10px;
}

.dok-featured-card .dok-doc-desc {
    font-size: 14px;
    line-height: 1.65;
}

.dok-featured-card .dok-doc-actions {
    margin-top: auto;
    padding-top: 18px;
}

/* --------------------------------------------------------------------------
   Library cards
   -------------------------------------------------------------------------- */

.dok-doc-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    height: 100%;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(37, 99, 235, 0.08);
    border-radius: var(--dok-card-radius);
    box-shadow: var(--dok-card-shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.dok-doc-card:hover {
    transform: translateY(-3px);
    border-color: rgba(37, 99, 235, 0.18);
    box-shadow: var(--dok-card-shadow-hover);
}

.dok-doc-card.is-filtered-out {
    display: none !important;
}

.dok-doc-cover {
    position: relative;
    padding: 18px;
    background:
        linear-gradient(
            145deg,
            #eaf2ff,
            #eef9fa
        );
    overflow: hidden;
}

.dok-doc-cover img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    height: auto;
    object-fit: cover;
    object-position: top center;
    border-radius: 12px;
    box-shadow: 0 8px 18px rgba(30, 64, 175, 0.08);
}

.dok-doc-cover-fallback {
    display: grid;
    place-items: center;
    gap: 10px;
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 12px;
    color: var(--dok-primary);
    font-weight: 800;
    background: rgba(255, 255, 255, 0.55);
}

.dok-doc-cover-fallback i {
    font-size: 36px;
}

.dok-featured-cover .dok-doc-cover-fallback {
    aspect-ratio: 3 / 4;
}

.dok-doc-body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 8px;
    padding: 18px;
}

/* --------------------------------------------------------------------------
   Shared typography / tags / actions
   -------------------------------------------------------------------------- */

.dok-doc-type {
    display: inline-flex;
    align-self: flex-start;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--dok-primary);
    background: transparent;
    padding: 0;
}

.dok-doc-card--teal .dok-doc-type,
.dok-featured-card--teal .dok-doc-type {
    color: #0f766e;
}

.dok-doc-title {
    margin: 0;
    color: var(--dok-navy);
    font-size: 17px;
    line-height: 1.35;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.dok-doc-desc {
    margin: 0;
    color: var(--dok-muted);
    font-size: 14px;
    line-height: 1.65;
}

.dok-doc-card .dok-doc-desc {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.dok-doc-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 14px 0 0;
    padding: 0;
    list-style: none;
}

.dok-doc-tag,
.dok-doc-tags li {
    padding: 6px 10px;
    border-radius: 999px;
    background: #eef4ff;
    font-size: 12px;
    font-weight: 600;
    color: #40536e;
    list-style: none;
}

.dok-doc-source {
    margin: 14px 0 0;
    font-size: 12px;
    color: #6b7d95;
    line-height: 1.5;
}

.dok-doc-source a {
    color: var(--dok-primary);
    font-weight: 600;
    text-decoration: none;
}

.dok-doc-source a:hover {
    text-decoration: underline;
    text-underline-offset: 2px;
}

.dok-doc-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: auto;
    padding-top: 14px;
}

.dok-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 10px 16px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    transition: 0.18s ease;
}

.dok-btn-primary {
    color: #ffffff;
    background: linear-gradient(135deg, #347ed1, #2b6fbe);
    border: 1px solid transparent;
    box-shadow: 0 12px 26px rgba(52, 126, 209, 0.22);
}

.dok-btn-secondary {
    color: #347ed1;
    background: #ffffff;
    border: 1px solid #d9e6f8;
}

.dok-btn:hover {
    transform: translateY(-1px);
    text-decoration: none;
}

.dok-btn-primary:hover {
    color: #ffffff;
    box-shadow: 0 14px 28px rgba(37, 99, 235, 0.26);
}

.dok-btn-secondary:hover {
    border-color: rgba(37, 99, 235, 0.35);
    color: var(--dok-primary-dark);
}

.dok-empty-state {
    margin: 28px 0 0;
    padding: 22px;
    border: 1px dashed rgba(37, 99, 235, 0.28);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.8);
    color: var(--dok-muted);
    text-align: center;
}

/* --------------------------------------------------------------------------
   Testimonials — soft teal/blue (prepared)
   -------------------------------------------------------------------------- */

.dok-testimonial-section {
    padding: 72px 0 80px;
    background:
        radial-gradient(circle at 15% 20%, rgba(20, 184, 166, 0.10), transparent 34%),
        radial-gradient(circle at 85% 80%, rgba(37, 99, 235, 0.08), transparent 36%),
        linear-gradient(135deg, #eef8fb, #f3f6ff);
}

.dok-testimonial-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.dok-testimonial-card {
    margin: 0;
    padding: 28px;
    border: 1px solid rgba(37, 99, 235, 0.10);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--dok-card-shadow);
}

.dok-testimonial-photo {
    width: 88px;
    height: 88px;
    margin: 0 auto 18px;
    overflow: hidden;
    border-radius: 50%;
    border: 3px solid #ffffff;
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.12);
}

.dok-testimonial-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dok-testimonial-card blockquote {
    position: relative;
    margin: 0 0 18px;
    padding: 0;
    border: 0;
}

.dok-quote-mark {
    display: block;
    margin-bottom: 4px;
    color: rgba(37, 99, 235, 0.28);
    font-size: 42px;
    line-height: 1;
    font-weight: 700;
}

.dok-testimonial-card blockquote p {
    margin: 0;
    color: var(--dok-navy);
    font-size: 16px;
    line-height: 1.7;
}

.dok-testimonial-card figcaption {
    display: grid;
    gap: 2px;
}

.dok-testimonial-card figcaption strong {
    color: var(--dok-navy);
    font-size: 15px;
    font-weight: 800;
}

.dok-testimonial-card figcaption span {
    color: var(--dok-muted);
    font-size: 13px;
    line-height: 1.5;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 991px) {
    .dok-featured-grid {
        grid-template-columns: 1fr;
    }

    .dok-library-grid,
    .dok-testimonial-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .dok-container {
        width: min(100% - 32px, 1180px);
    }

    .dok-hero {
        padding: 56px 0 36px;
    }

    .dok-hero-bg-dots {
        opacity: 0.18;
        width: 120px;
        height: 160px;
    }

    .dok-hero-copy h1 {
        font-size: clamp(28px, 8vw, 34px);
    }

    .dok-hero-copy p {
        font-size: 15px;
    }

    .dok-filter-bar {
        margin-top: 22px;
        gap: 8px;
    }

    .dok-filter-chip {
        min-height: 36px;
        padding: 8px 13px;
        font-size: 12px;
    }

    .dok-featured-section,
    .dok-library-section,
    .dok-testimonial-section {
        padding: 48px 0;
    }

    .dok-library-section {
        padding-bottom: 64px;
    }

    .dok-featured-grid,
    .dok-library-grid,
    .dok-testimonial-list {
        grid-template-columns: 1fr;
    }

    .dok-featured-card {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 16px;
    }

    .dok-featured-cover {
        max-width: 220px;
        margin: 0 auto;
    }

    .dok-featured-card .dok-doc-title {
        font-size: 18px;
    }

    .dok-doc-actions {
        flex-direction: column;
    }

    .dok-btn {
        width: 100%;
    }
}
