/* ============================================================
   HRIS Public Docs
   ============================================================ */

.lp-header--solid {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #e2e8f0;
    padding: 1rem 0;
}

.lp-menu a.is-active {
    color: var(--lp-blue);
    font-weight: 600;
}

body.docs-page {
    background: var(--lp-bg);
}

.docs-shell {
    width: min(1240px, calc(100% - 3rem));
    margin: 1.5rem auto 3rem;
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 2rem;
    align-items: start;
}

.docs-sidebar-toggle {
    display: none;
}

.docs-sidebar {
    position: sticky;
    top: 5.25rem;
    max-height: calc(100vh - 6.5rem);
    overflow: auto;
    background: var(--lp-white);
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 1rem 0.75rem 1.25rem;
}

.docs-sidebar-home {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--lp-navy);
    padding: 0.55rem 0.7rem;
    border-radius: 10px;
}

.docs-sidebar-home.is-active,
.docs-sidebar-list a.is-active {
    background: var(--lp-blue-pale);
    color: var(--lp-blue);
}

.docs-sidebar-group {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--lp-muted);
    margin: 1rem 0.7rem 0.35rem;
}

.docs-sidebar-list {
    list-style: none;
}

.docs-sidebar-list a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.88rem;
    color: var(--lp-text);
    padding: 0.45rem 0.7rem;
    border-radius: 10px;
}

.docs-sidebar-list a:hover,
.docs-sidebar-home:hover {
    background: var(--lp-bg);
}

.docs-sidebar-list i,
.docs-sidebar-home i {
    font-size: 1.05rem;
    color: var(--lp-blue);
}

.docs-main {
    min-width: 0;
}

.docs-hero,
.docs-article {
    background: var(--lp-white);
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 1.75rem 1.75rem 2rem;
}

.docs-kicker {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--lp-blue);
    margin-bottom: 0.4rem;
}

.docs-hero h1,
.docs-article h1 {
    font-family: var(--lp-display);
    font-size: clamp(1.6rem, 2.4vw, 2.1rem);
    color: var(--lp-navy);
    line-height: 1.25;
    margin-bottom: 0.6rem;
}

.docs-lead {
    color: var(--lp-muted);
    max-width: 42rem;
    margin-bottom: 1.25rem;
}

.docs-search {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 0.7rem 0.9rem;
    background: var(--lp-bg);
    max-width: 28rem;
}

.docs-search i {
    color: var(--lp-muted);
    font-size: 1.15rem;
}

.docs-search input {
    border: 0;
    outline: 0;
    background: transparent;
    width: 100%;
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--lp-text);
}

.docs-search-empty {
    margin: 1rem 0 0;
    color: var(--lp-muted);
}

.docs-group {
    margin-top: 1.75rem;
}

.docs-group h2 {
    font-family: var(--lp-display);
    font-size: 1.1rem;
    color: var(--lp-navy);
    margin-bottom: 0.85rem;
}

.docs-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 0.85rem;
}

.docs-card {
    display: block;
    background: var(--lp-white);
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 1.1rem 1.15rem 1.2rem;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.docs-card[hidden],
.docs-group[hidden] {
    display: none;
}

.docs-card:hover {
    border-color: #bfdbfe;
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.08);
    transform: translateY(-1px);
}

.docs-card h3 {
    font-size: 1rem;
    color: var(--lp-navy);
    margin: 0.55rem 0 0.35rem;
}

.docs-card p {
    font-size: 0.88rem;
    color: var(--lp-muted);
    margin-bottom: 0.7rem;
}

.docs-card-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--lp-blue-pale);
    color: var(--lp-blue);
    display: grid;
    place-items: center;
    font-size: 1.15rem;
}

.docs-card-icon--lg {
    width: 48px;
    height: 48px;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.docs-badge {
    display: inline-flex;
    align-items: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--lp-blue);
    background: var(--lp-blue-pale);
    border-radius: 999px;
    padding: 0.2rem 0.65rem;
}

.docs-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    font-size: 0.85rem;
    color: var(--lp-muted);
    margin-bottom: 1.25rem;
}

.docs-breadcrumb a {
    color: var(--lp-blue);
}

.docs-article-head {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid #e2e8f0;
}

.docs-section {
    margin-top: 1.6rem;
}

.docs-section h2 {
    font-family: var(--lp-display);
    font-size: 1.15rem;
    color: var(--lp-navy);
    margin-bottom: 0.65rem;
}

.docs-section h3 {
    font-size: 1rem;
    color: var(--lp-navy);
    margin: 1rem 0 0.4rem;
}

.docs-section p,
.docs-section li {
    color: var(--lp-text);
    font-size: 0.96rem;
}

.docs-section ul,
.docs-section ol {
    padding-left: 1.2rem;
    margin: 0.4rem 0 0.75rem;
}

.docs-section li + li {
    margin-top: 0.3rem;
}

.docs-steps {
    list-style: none;
    padding-left: 0;
    counter-reset: docs-step;
}

.docs-steps li {
    position: relative;
    padding: 0.55rem 0.75rem 0.55rem 2.6rem;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: var(--lp-bg);
    counter-increment: docs-step;
}

.docs-steps li + li {
    margin-top: 0.5rem;
}

.docs-steps li::before {
    content: counter(docs-step);
    position: absolute;
    left: 0.7rem;
    top: 0.55rem;
    width: 1.4rem;
    height: 1.4rem;
    border-radius: 999px;
    background: var(--lp-blue);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    display: grid;
    place-items: center;
}

.docs-status {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    list-style: none;
    padding: 0;
}

.docs-status li {
    font-size: 0.82rem;
    font-weight: 600;
    background: var(--lp-bg);
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    padding: 0.25rem 0.7rem;
}

.docs-note {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 12px;
    padding: 0.85rem 1rem;
    color: var(--lp-navy);
    font-size: 0.92rem;
    margin-top: 0.85rem;
}

.docs-related {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.docs-related a {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    padding: 0.4rem 0.85rem;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--lp-navy);
}

.docs-related a:hover {
    border-color: #bfdbfe;
    color: var(--lp-blue);
}

@media (max-width: 960px) {
    .docs-shell {
        width: calc(100% - 1.75rem);
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .docs-sidebar-toggle {
        display: inline-flex;
        align-items: center;
        gap: 0.4rem;
        border: 1px solid #e2e8f0;
        background: white;
        border-radius: 10px;
        padding: 0.55rem 0.85rem;
        font-family: inherit;
        font-weight: 600;
        color: var(--lp-navy);
        cursor: pointer;
    }

    .docs-sidebar {
        display: none;
        position: static;
        max-height: none;
    }

    .docs-sidebar.is-open {
        display: block;
    }

    .docs-hero,
    .docs-article {
        padding: 1.25rem 1.15rem 1.5rem;
    }

    .docs-article-head {
        flex-direction: column;
    }
}
