/*
 * SIHAKI V3 - PATCH 09 | Refinement Guest
 * Khusus Guest (root), dimuat SETELAH app.css dan guest-profesional-v7.css.
 * Tidak mengubah struktur data, AJAX, query, maupun area apps/admin.
 */

/* 1. Navbar harus selalu berada di atas sidebar sticky pada Panduan. */
.sihaki-navbar.sticky-top {
    position: sticky;
    top: 0;
    z-index: 1040;
}

/* Bootstrap memberi sticky-top z-index 1020. Turunkan hanya sidebar Panduan. */
.guide-menu.sticky-lg-top {
    z-index: 5;
    top: 90px !important;
}

/* 2. Header halaman internal: pusat, lebih bertenaga, tema hijau tetap. */
.page-header {
    position: relative;
    color: #fff;
}

.page-header > .container,
.page-header > .container.py-5,
.page-header .page-header-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: 4.35rem !important;
    padding-bottom: 4.35rem !important;
    text-align: center;
}

.page-header .hero-kicker,
.page-header .page-header-label {
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 650;
}

.page-header h1,
.page-header h1.h2,
.page-header .page-header-title {
    max-width: 900px;
    margin: 15px auto 15px;
    font-size: clamp(2.35rem, 4vw, 3.25rem);
    font-weight: 760;
    line-height: 1.18;
    letter-spacing: -0.018em;
    text-wrap: balance;
}

.page-header p,
.page-header p.mb-0,
.page-header .page-header-description {
    max-width: 760px;
    margin: 0 auto;
    font-size: 1.04rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.89);
    text-wrap: pretty;
}

/* 3. Judul Beranda/section dan judul formulir akses. */
.home-hero h1 {
    font-size: clamp(2.35rem, 4.25vw, 3.85rem);
    font-weight: 760;
    line-height: 1.15;
    letter-spacing: -0.018em;
}

.home-hero h1 span {
    font-weight: 780;
}

.section-title-row {
    flex-direction: column;
    align-items: center !important;
    justify-content: center;
    gap: 10px;
    text-align: center;
}

.section-title-row > div {
    width: 100%;
}

.section-title-row .section-eyebrow {
    justify-content: center;
}

.section-title-row h2,
.process-title,
.ki-statistics-heading h2 {
    margin: 12px auto;
    font-size: clamp(1.95rem, 3vw, 2.5rem);
    font-weight: 740;
    line-height: 1.25;
    letter-spacing: -0.018em;
}

.section-title-row p,
.process-description {
    max-width: 760px;
    margin-right: auto;
    margin-left: auto;
}

.section-title-row .section-link {
    margin-top: 2px;
}

.auth-heading {
    text-align: center;
}

.auth-heading .eyebrow {
    justify-content: center;
}

.home-cta h2 {
    font-weight: 740;
}

.auth-title,
.auth-card h1.h3 {
    font-size: clamp(1.75rem, 3vw, 2.15rem);
    font-weight: 740;
    line-height: 1.25;
}

/* 4. Katalog publik: panel + tabel mudah dibaca dan responsif. */
.ki-catalog-section {
    background: #f7faf8;
}

.ki-catalog-toolbar {
    padding: 24px;
    border: 1px solid #dee8e3;
    border-radius: 13px;
    box-shadow: 0 5px 20px rgba(16, 49, 34, 0.045);
}

.ki-catalog-filter-intro {
    margin-bottom: 20px;
}

.ki-catalog-filter-intro h2 {
    margin: 0 0 4px;
    color: #173b2d;
    font-size: 1.17rem;
    font-weight: 720;
    letter-spacing: -0.01em;
}

.ki-catalog-filter-intro p {
    margin: 0;
    color: #6a7b71;
    font-size: 0.9rem;
    line-height: 1.5;
}

.ki-catalog-panel {
    overflow: hidden;
    border: 1px solid #dde7e1;
    border-radius: 13px;
    background: #fff;
    box-shadow: 0 8px 25px rgba(18, 47, 34, 0.045);
}

.ki-catalog-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 21px 24px;
    border-bottom: 1px solid #e4ebe6;
    background: #fff;
}

.ki-catalog-panel-header h2 {
    margin: 0 0 4px;
    color: #243e30;
    font-size: 1.16rem;
    font-weight: 730;
}

.ki-catalog-panel-header p {
    margin: 0;
    color: #708278;
    font-size: 0.87rem;
    line-height: 1.5;
}

.ki-catalog-summary {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 12px;
    border: 1px solid #d9e9df;
    border-radius: 7px;
    background: #eef7f1;
    color: #246246;
    font-size: 0.84rem;
    font-weight: 650;
    white-space: nowrap;
}

.ki-catalog-scroll {
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
}

.ki-catalog-scroll:focus-visible {
    outline: 2px solid var(--sihaki-primary);
    outline-offset: -2px;
}

.ki-catalog-table {
    width: 100%;
    min-width: 950px;
    table-layout: auto;
    border-collapse: separate;
    border-spacing: 0;
}

.ki-catalog-table thead th {
    padding: 15px 18px;
    background: #ecf5ef;
    color: #335642;
    border-bottom: 2px solid #d7e8db;
    font-size: 0.79rem;
    font-weight: 680;
    letter-spacing: normal;
    text-transform: none;
    white-space: nowrap;
}

.ki-catalog-table tbody td {
    padding: 18px;
    border-bottom: 1px solid #e9efeb;
    color: #425349;
    font-size: 0.91rem;
    line-height: 1.55;
    vertical-align: top;
}

.ki-catalog-table tbody tr:nth-child(even) td {
    background: #fafcfb;
}

.ki-catalog-table tbody tr:hover td {
    background: #f2f8f3;
}

.ki-catalog-table tbody tr:last-child td {
    border-bottom: 0;
}

.ki-catalog-table th:nth-child(1) { min-width: 145px; }
.ki-catalog-table th:nth-child(2) { min-width: 235px; }
.ki-catalog-table th:nth-child(3) { min-width: 175px; }
.ki-catalog-table th:nth-child(4) { min-width: 155px; }
.ki-catalog-table th:nth-child(5) { min-width: 80px; }
.ki-catalog-table th:nth-child(6) { min-width: 180px; }

.ki-type-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 9px;
    border: 1px solid #cee5d7;
    border-radius: 6px;
    background: #eef7f1;
    color: #216044;
    font-size: 0.8rem;
    font-weight: 660;
    white-space: nowrap;
}

.ki-type-paten {
    color: #705324;
    background: #fcf7e9;
    border-color: #eee0b7;
}

.ki-type-merek {
    color: #2d577b;
    background: #eef4fb;
    border-color: #d5e4f4;
}

.ki-type-desain-industri {
    color: #61517c;
    background: #f4f0fa;
    border-color: #e1d8ef;
}

.ki-catalog-title {
    margin-bottom: 7px;
    color: #193b29;
    font-size: 0.98rem;
    font-weight: 710;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.ki-catalog-subline {
    color: #788780;
    font-size: 0.78rem;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.ki-catalog-people,
.ki-catalog-unit {
    overflow-wrap: anywhere;
}

.ki-catalog-unit {
    display: flex;
    align-items: flex-start;
    gap: 7px;
}

.ki-catalog-unit > i {
    margin-top: 2px;
    color: #648571;
}

.ki-catalog-year {
    display: inline-block;
    padding: 4px 9px;
    border: 1px solid #e1e8e2;
    border-radius: 6px;
    background: #f5f7f5;
    color: #435c4d;
    font-size: 0.83rem;
    font-variant-numeric: tabular-nums;
}

.ki-catalog-certificate {
    display: inline-block;
    color: #205c45;
    font-size: 0.87rem;
    font-weight: 660;
    letter-spacing: normal;
    overflow-wrap: anywhere;
}

.ki-catalog-empty {
    padding: 55px 20px !important;
    text-align: center;
}

.ki-catalog-empty i,
.ki-catalog-empty strong,
.ki-catalog-empty span {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.ki-catalog-empty i {
    color: #779b84;
    font-size: 2rem;
}

.ki-catalog-empty strong {
    margin-top: 10px;
    color: #274335;
    font-weight: 700;
}

.ki-catalog-empty span {
    color: #718278;
    font-size: 0.9rem;
}

.ki-catalog-panel-footer {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 13px 24px;
    border-top: 1px solid #edf1ee;
    color: #728177;
    font-size: 0.82rem;
    line-height: 1.5;
}

.ki-catalog-scroll-hint {
    display: none;
}

/* 5. Footer lebih mudah dibaca tanpa mengubah warna atau komposisi. */
.footer-brand strong {
    font-size: 1.12rem;
    font-weight: 730;
}

.footer-brand small {
    font-size: 0.81rem;
}

.footer-description,
.sihaki-footer a:not(.btn),
.sihaki-footer .small {
    font-size: 0.96rem;
    line-height: 1.7;
}

.sihaki-footer h6 {
    font-size: 1.01rem;
    font-weight: 710;
    margin-bottom: 16px;
}

.footer-bottom {
    font-size: 0.88rem;
    line-height: 1.65;
}

/* 6. Layar kecil: pertahankan hierarki dan kemampuan scroll tabel. */
@media (max-width: 991.98px) {
    .page-header > .container,
    .page-header > .container.py-5,
    .page-header .page-header-inner {
        padding-top: 3.5rem !important;
        padding-bottom: 3.5rem !important;
    }

    .home-hero h1 {
        font-size: clamp(2.25rem, 5.3vw, 3.15rem);
    }
}

@media (max-width: 767.98px) {
    .page-header > .container,
    .page-header > .container.py-5,
    .page-header .page-header-inner {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }

    .page-header h1,
    .page-header h1.h2,
    .page-header .page-header-title {
        font-size: clamp(2rem, 8vw, 2.6rem);
    }

    .page-header p,
    .page-header p.mb-0 {
        font-size: 0.98rem;
    }

    .home-hero h1 {
        font-size: clamp(2.12rem, 8vw, 2.75rem);
    }

    .section-title-row h2,
    .process-title,
    .ki-statistics-heading h2 {
        font-size: clamp(1.8rem, 6.5vw, 2.2rem);
    }

    .ki-catalog-toolbar {
        padding: 20px;
    }

    .ki-catalog-panel-header {
        flex-direction: column;
        align-items: flex-start;
        padding: 18px;
    }

    .ki-catalog-panel-footer {
        padding: 13px 18px;
        align-items: flex-start;
    }

    .ki-catalog-scroll-hint {
        display: inline;
    }
}
