/* =====================================================
   FINANCE ASSISTANT
   SITEMAP
===================================================== */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;

    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Arial,
        sans-serif;

    background: #f7f8fa;
    color: #1f2937;

    -webkit-font-smoothing: antialiased;
}


/* =====================================================
   HEADER
===================================================== */

.sitemap-header {
    position: sticky;
    top: 0;
    z-index: 1000;

    width: 100%;

    background: rgba(255, 255, 255, 0.96);

    border-bottom: 1px solid #e5e7eb;

    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.sitemap-header-inner {
    width: 100%;
    max-width: 760px;

    min-height: 60px;

    margin: 0 auto;
    padding: 0 16px;

    display: flex;
    align-items: center;
}


/* =====================================================
   MENU BUTTON
===================================================== */

.sitemap-menu-button {
    width: 42px;
    height: 42px;

    padding: 0;
    margin: 0 10px 0 0;

    border: 0;
    border-radius: 10px;

    background: transparent;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;

    cursor: pointer;

    -webkit-tap-highlight-color: transparent;
}

.sitemap-menu-button span {
    display: block;

    width: 21px;
    height: 2px;

    border-radius: 2px;

    background: #1f2937;

    transition:
        transform 0.2s ease,
        opacity 0.2s ease;
}

.sitemap-menu-button:active {
    background: #f1f3f5;
}


/* =====================================================
   BRAND
===================================================== */

.sitemap-brand {
    display: flex;
    align-items: center;
    gap: 9px;

    color: #1f2937;

    text-decoration: none;

    font-size: 16px;
    font-weight: 600;
}

.sitemap-brand img {
    width: 30px;
    height: 30px;

    border-radius: 7px;

    object-fit: cover;
}


/* =====================================================
   OVERLAY
===================================================== */

.sitemap-menu-overlay {
    position: fixed;
    inset: 0;

    z-index: 1990;

    background: rgba(0, 0, 0, 0.38);

    opacity: 0;
    visibility: hidden;

    transition:
        opacity 0.25s ease,
        visibility 0.25s ease;
}

body.sitemap-menu-open {
    overflow: hidden;
}

body.sitemap-menu-open
.sitemap-menu-overlay {
    opacity: 1;
    visibility: visible;
}


/* =====================================================
   DRAWER
===================================================== */

.sitemap-drawer {
    position: fixed;

    top: 0;
    left: 0;
    bottom: 0;

    z-index: 2000;

    width: min(82vw, 320px);

    padding: 0;

    background: #ffffff;

    box-shadow:
        8px 0 30px rgba(0, 0, 0, 0.12);

    transform: translateX(-105%);

    transition:
        transform 0.25s ease;

    overflow-y: auto;

    -webkit-overflow-scrolling: touch;
}

body.sitemap-menu-open
.sitemap-drawer {
    transform: translateX(0);
}


/* =====================================================
   DRAWER HEADER
===================================================== */

.sitemap-drawer-header {
    min-height: 64px;

    padding: 0 16px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    border-bottom: 1px solid #e5e7eb;
}

.sitemap-drawer-brand {
    display: flex;
    align-items: center;
    gap: 9px;

    font-size: 15px;
    font-weight: 600;

    color: #1f2937;
}

.sitemap-drawer-brand img {
    width: 30px;
    height: 30px;

    border-radius: 7px;

    object-fit: cover;
}


/* =====================================================
   DRAWER CLOSE
===================================================== */

.sitemap-drawer-close {
    width: 40px;
    height: 40px;

    padding: 0;

    border: 0;
    border-radius: 10px;

    background: transparent;

    color: #4b5563;

    font-size: 28px;
    font-weight: 300;
    line-height: 1;

    cursor: pointer;

    -webkit-tap-highlight-color: transparent;
}

.sitemap-drawer-close:active {
    background: #f1f3f5;
}


/* =====================================================
   DRAWER NAVIGATION
===================================================== */

.sitemap-drawer-nav {
    padding: 12px 10px 24px;
}

.sitemap-drawer-nav a {
    display: flex;
    align-items: center;

    min-height: 46px;

    padding: 10px 14px;

    border-radius: 10px;

    color: #374151;

    text-decoration: none;

    font-size: 15px;
    font-weight: 500;

    transition:
        background 0.18s ease,
        color 0.18s ease;
}

.sitemap-drawer-nav a:hover {
    background: #f3f4f6;
}

.sitemap-drawer-nav a:active {
    background: #e5e7eb;
}


/* =====================================================
   MAIN
===================================================== */

.sitemap-main {
    width: 100%;
    max-width: 760px;

    margin: 0 auto;

    padding: 24px 16px 48px;
}


/* =====================================================
   HERO
===================================================== */

.sitemap-hero {
    padding: 8px 2px 24px;
}

.sitemap-hero h1 {
    margin: 0 0 8px;

    color: #111827;

    font-size: 28px;
    font-weight: 700;
    line-height: 1.2;
}

.sitemap-hero p {
    margin: 0;

    max-width: 600px;

    color: #6b7280;

    font-size: 14px;
    line-height: 1.6;
}


/* =====================================================
   CONTENT
===================================================== */

.sitemap-content {
    display: flex;
    flex-direction: column;

    gap: 16px;
}


/* =====================================================
   CARD
===================================================== */

.sitemap-card {
    width: 100%;

    background: #ffffff;

    border: 1px solid #e5e7eb;
    border-radius: 16px;

    overflow: hidden;

    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.035);
}


/* =====================================================
   CARD HEADER
===================================================== */

.sitemap-card-header {
    display: flex;
    align-items: flex-start;

    gap: 12px;

    padding: 18px 16px;

    border-bottom: 1px solid #eef0f2;
}

.sitemap-card-icon {
    flex: 0 0 auto;

    width: 38px;
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 10px;

    background: #f3f4f6;

    font-size: 18px;
}

.sitemap-card-header h2 {
    margin: 0 0 4px;

    color: #111827;

    font-size: 17px;
    font-weight: 650;
    line-height: 1.3;
}

.sitemap-card-header p {
    margin: 0;

    color: #6b7280;

    font-size: 13px;
    line-height: 1.5;
}


/* =====================================================
   LINK LIST
===================================================== */

.sitemap-link-list {
    padding: 6px 8px 8px;
}

.sitemap-link {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 12px;

    min-height: 46px;

    padding: 10px 10px;

    border-radius: 10px;

    color: #374151;

    text-decoration: none;

    font-size: 14px;
    line-height: 1.4;

    transition:
        background 0.18s ease,
        color 0.18s ease;
}

.sitemap-link:hover {
    background: #f5f6f7;
}

.sitemap-link:active {
    background: #eef0f2;
}

.sitemap-link-title {
    min-width: 0;
}

.sitemap-link-arrow {
    flex: 0 0 auto;

    color: #9ca3af;

    font-size: 17px;

    transition:
        transform 0.18s ease,
        color 0.18s ease;
}

.sitemap-link:hover
.sitemap-link-arrow {
    color: #4b5563;

    transform: translateX(2px);
}


/* =====================================================
   NEWS
===================================================== */

.sitemap-news-scroll {
    max-height: 470px;

    padding: 6px 8px 8px;

    overflow-y: auto;

    overscroll-behavior: contain;

    -webkit-overflow-scrolling: touch;
}


/* Scrollbar News */

.sitemap-news-scroll::-webkit-scrollbar {
    width: 5px;
}

.sitemap-news-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.sitemap-news-scroll::-webkit-scrollbar-thumb {
    background: #d1d5db;

    border-radius: 10px;
}


/* =====================================================
   NEWS LINK
===================================================== */

.sitemap-news-scroll .sitemap-link {
    border-bottom: 1px solid #f0f1f2;

    border-radius: 8px;
}

.sitemap-news-scroll .sitemap-link:last-child {
    border-bottom: 0;
}


/* =====================================================
   FOCUS
===================================================== */

.sitemap-menu-button:focus-visible,
.sitemap-drawer-close:focus-visible,
.sitemap-drawer-nav a:focus-visible,
.sitemap-link:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}


/* =====================================================
   TABLET / DESKTOP
   Tetap mempertahankan gaya mobile-first.
===================================================== */

@media (min-width: 768px) {

    .sitemap-header-inner {
        padding-left: 20px;
        padding-right: 20px;
    }

    .sitemap-main {
        padding-top: 32px;
    }

    .sitemap-hero h1 {
        font-size: 30px;
    }

}
