/* Daftar arsip publik — index.html & arsip.html */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

.pal-section {
    padding: 2.5rem 0 3rem;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 40%);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.pal-section--page {
    padding-top: 1.5rem;
}

.pal-section-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.pal-eyebrow {
    display: inline-block;
    margin-bottom: 0.35rem;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    background: #eff6ff;
    color: #2563eb;
    font-weight: 600;
}

.pal-section-title {
    margin: 0 0 0.35rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.3;
}

.pal-section-sub {
    margin: 0;
    max-width: 36rem;
    color: #64748b;
    line-height: 1.55;
}

.pal-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.125rem;
}

.pal-card {
    min-width: 0;
}

.pal-card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 1.125rem;
    border-radius: 1rem;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.pal-card-link:hover {
    border-color: #bfdbfe;
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.1);
    transform: translateY(-2px);
    text-decoration: none;
    color: inherit;
}

.pal-card-top {
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
    margin-bottom: 0.875rem;
}

.pal-card-icon {
    flex-shrink: 0;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
}

.pal-card-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pal-card-body {
    flex: 1;
    min-width: 0;
}

.pal-card-title {
    margin: 0 0 0.5rem;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.4;
    overflow: hidden;
    display: block;
    max-height: 4.2em;
}

.pal-card {
    display: flex;
    flex-direction: column;
}

.pal-card-link {
    flex: 1;
}

.pal-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.pal-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    color: #64748b;
    font-weight: 500;
}

.pal-meta-item i {
    color: #94a3b8;
}

.pal-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: auto;
}

.pal-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.55rem;
    border-radius: 6px;
    background: #f1f5f9;
    color: #475569;
    font-weight: 500;
}

.pal-tag--cat {
    background: #eff6ff;
    color: #1d4ed8;
}

.pal-card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 0.875rem;
    padding-top: 0.75rem;
    border-top: 1px solid #f1f5f9;
    color: #2563eb;
    font-weight: 600;
}

.pal-card-foot i {
    transition: transform 0.15s ease;
}

.pal-card-link:hover .pal-card-foot i {
    transform: translateX(3px);
}

/* Search hero — arsip.html */
.pal-search-hero {
    /* Offset header absolute (~100px) + jarak title */
    padding: 7rem 0 1.25rem;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.pal-search-head {
    max-width: 42rem;
    margin: 0 auto 1rem;
    text-align: center;
}

.pal-search-head .pal-section-title {
    margin-bottom: 0.35rem;
}

.pal-search-form {
    max-width: 42rem;
    margin: 0 auto;
}

.pal-search-wrap {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 1rem;
    border-radius: 12px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.pal-search-wrap:focus-within {
    border-color: #93c5fd;
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.12);
}

.pal-search-wrap > i {
    color: #94a3b8;
    flex-shrink: 0;
}

.pal-search-input {
    flex: 1;
    min-width: 0;
    border: none;
    background: transparent;
    outline: none;
    color: #0f172a;
    font-family: inherit;
    font-weight: 500;
}

.pal-search-input::placeholder {
    color: #94a3b8;
}

.pal-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.pal-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
    padding: 0.35rem;
    border-radius: 12px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
}

.pal-tab {
    padding: 0.45rem 0.875rem;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: #64748b;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.pal-tab:hover {
    background: #f8fafc;
    color: #334155;
}

.pal-tab.is-active {
    background: #2563eb;
    color: #ffffff;
}

.pal-result-count {
    margin: 0 0 1rem;
    color: #64748b;
    font-weight: 500;
}

/* List layout — arsip.html */
.pal-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.pal-list-item {
    display: block;
    width: 100%;
}

.pal-list-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
    min-height: 4.5rem;
    padding: 1rem 1.125rem;
    border-radius: 1rem;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 6px rgba(15, 23, 42, 0.04);
    text-decoration: none;
    color: #0f172a;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.pal-list-link:hover {
    border-color: #bfdbfe;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.08);
    text-decoration: none;
    color: #0f172a;
}

.pal-list-icon {
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
}

.pal-list-icon img {
    width: 1.5rem;
    height: 1.5rem;
    object-fit: contain;
}

.pal-list-main {
    flex: 1;
    min-width: 0;
}

.pal-list-match {
    color: #2563eb;
    font-weight: 500;
    line-height: 1.4;
}

    margin: 0 0 0.35rem;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.4;
    word-break: break-word;
}

.pal-list-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.75rem;
    color: #64748b;
}

.pal-list-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    flex-shrink: 0;
}

.pal-list-arrow {
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #eff6ff;
    color: #2563eb;
}

.pal-load-more {
    margin-top: 1.5rem;
    text-align: center;
}

.pal-progress {
    height: 4px;
    margin: 0 auto 1rem;
    max-width: 20rem;
    border-radius: 999px;
    background: #e2e8f0;
    overflow: hidden;
}

.pal-progress span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: #2563eb;
    transition: width 0.25s ease;
}

.pal-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.55rem 1rem;
    border-radius: 10px;
    font-weight: 600;
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.pal-btn--ghost {
    background: #ffffff;
    border-color: #e2e8f0;
    color: #475569;
}

.pal-btn--ghost:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #0f172a;
    text-decoration: none;
}

.pal-load-more-hint {
    color: #94a3b8;
    font-weight: 500;
}

/* Loading skeleton */
.pal-loading-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.125rem;
}

.pal-skeleton {
    height: 11rem;
    border-radius: 1rem;
    background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
    background-size: 200% 100%;
    animation: pal-shimmer 1.2s ease-in-out infinite;
}

.pal-loading--list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.pal-skeleton--row {
    height: 4.5rem;
    border-radius: 1rem;
    background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
    background-size: 200% 100%;
    animation: pal-shimmer 1.2s ease-in-out infinite;
}

@keyframes pal-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.pal-empty {
    padding: 2.5rem 1rem;
    text-align: center;
    color: #64748b;
    border-radius: 1rem;
    background: #ffffff;
    border: 1px dashed #e2e8f0;
}

.pal-empty i {
    display: block;
    margin-bottom: 0.75rem;
    color: #cbd5e1;
}

@media (max-width: 768px) {
    .pal-search-hero {
        padding-top: 5.5rem;
    }
}

@media (max-width: 991px) {
    .pal-grid,
    .pal-loading-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .pal-grid,
    .pal-loading-grid {
        grid-template-columns: 1fr;
    }

    .pal-list-link {
        flex-wrap: wrap;
    }

    .pal-list-tags {
        width: 100%;
    }

    .pal-list-arrow {
        margin-left: auto;
    }
}

/* Telusuri Arsip — kategori rata tengah & rapi */
.job-categories .job-categories-row {
    justify-content: center;
}

.job-categories .category-block .inner-box {
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
}
