/* Documents index — Reemoon VI (local layout, DB-driven list) */

.docs-page {
    --docs-brand: #00856f;
    --docs-brand-dark: #004d41;
    --docs-brand-muted: #eef6f3;
    --docs-text: #1a1a1a;
    --docs-text-soft: #5a756e;
    --docs-max: min(1480px, 100%);
    --docs-gutter: clamp(20px, 4vw, 80px);
    width: 100%;
    overflow-x: clip;
    color: var(--docs-text);
    background: #fff;
}

.docs-container {
    max-width: var(--docs-max);
    margin: 0 auto;
    padding-left: var(--docs-gutter);
    padding-right: var(--docs-gutter);
    box-sizing: border-box;
}

.docs-hero {
    padding: clamp(40px, 5vw, 64px) 0 clamp(32px, 4vw, 48px);
    background: linear-gradient(180deg, var(--docs-brand-muted) 0%, #fff 100%);
}

.docs-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 20px;
    font-size: 13px;
    color: var(--docs-text-soft);
}

.docs-breadcrumb a {
    color: var(--docs-brand);
    text-decoration: none;
}

.docs-hero__title {
    margin: 0 0 12px;
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 700;
    color: var(--docs-brand-dark);
}

.docs-hero__lead {
    margin: 0;
    max-width: 640px;
    line-height: 1.75;
    color: var(--docs-text-soft);
}

.docs-search {
    padding: clamp(24px, 3vw, 32px) 0;
}

.docs-search__form {
    display: flex;
    gap: 12px;
    max-width: 720px;
}

.docs-search__input {
    flex: 1;
    min-width: 0;
    padding: 14px 18px;
    border: 1px solid rgba(0, 133, 111, 0.2);
    border-radius: 12px;
    font-size: 1rem;
}

.docs-search__input:focus {
    outline: 2px solid rgba(0, 133, 111, 0.35);
    border-color: var(--docs-brand);
}

.docs-search__btn {
    padding: 14px 24px;
    border: none;
    border-radius: 12px;
    background: var(--docs-brand);
    color: #fff;
    font-weight: 600;
    cursor: pointer;
}

.docs-list {
    padding: 0 0 clamp(64px, 8vw, 96px);
}

.docs-list__head {
    margin: 0 0 20px;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--docs-brand-dark);
}

.docs-list__items {
    list-style: none;
    margin: 0;
    padding: 0;
    border: 1px solid rgba(0, 133, 111, 0.12);
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
}

.docs-list__item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    padding: 18px 22px;
    border-bottom: 1px solid rgba(0, 133, 111, 0.08);
}

.docs-list__item:last-child {
    border-bottom: none;
}

.docs-list__link {
    color: inherit;
    text-decoration: none;
    font-weight: 500;
}

.docs-list__link:hover {
    color: var(--docs-brand);
}

.docs-list__date {
    font-size: 0.875rem;
    color: var(--docs-text-soft);
    white-space: nowrap;
}

.docs-empty {
    padding: 32px 22px;
    text-align: center;
    color: var(--docs-text-soft);
}

body:has(.docs-page) .site-footer {
    margin-top: 0;
}

@media (max-width: 640px) {
    .docs-search__form {
        flex-direction: column;
    }

    .docs-list__item {
        grid-template-columns: 1fr;
    }
}
