/* ═══════════════════════════════════════════════════════════
   DOCS PAGE
   Page-specific styles only. Base site styles remain in styles.css.
   ═══════════════════════════════════════════════════════════ */

.nav a.link.active {
    color: var(--text);
}

.docs-hub {
    padding: 70px 0;
}

.docs-head {
    text-align: center;
    margin-bottom: 36px;
}

.docs-head .kicker {
    margin-bottom: 12px;
}

.docs-head h2 {
    font-family: 'Chakra Petch', sans-serif;
    font-size: clamp(30px, 4vw, 40px);
    font-weight: 700;
    line-height: 1.15;
    color: var(--text-title);
}

.docs-head p {
    margin-top: 12px;
    color: var(--muted);
    font-size: 16px;
}

.docs-list {
    max-width: 820px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.doc-card {
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 22px 24px;
    transition: transform .2s, border-color .2s, box-shadow .2s;
}

.doc-card:hover {
    transform: translateY(-4px);
    border-color: var(--line-strong);
    box-shadow: 0 12px 34px rgba(28, 34, 46, .12);
}

.doc-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.doc-card h3 {
    margin-top: 5px;
    font-family: 'Chakra Petch', sans-serif;
    font-size: 21px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-title);
}

.doc-tag {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--accent);
}

.doc-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

/* Uses the site's base .btn styling, with a compact file layout. */
.doc-download {
    padding: 8px 12px;
    gap: 10px;
    background: var(--bg-card);
    color: var(--text);
}

.doc-download:hover {
    border-color: var(--line-strong);
    box-shadow: 0 6px 18px rgba(28, 34, 46, .08);
}

/* File badges — intentionally more visible than metadata. */
.doc-file-icon {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .04em;
    user-select: none;
}

.doc-file-icon-pdf {
    background: rgba(255, 107, 74, .14);
    border: 1px solid rgba(217, 87, 61, .42);
    color: #c9472f;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .45);
}

.doc-file-icon-md {
    background: rgba(79, 195, 221, .15);
    border: 1px solid rgba(27, 140, 168, .38);
    color: #167f98;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .45);
}

.doc-file-info {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
    text-align: left;
}

.doc-file-info strong {
    font-family: 'Chakra Petch', sans-serif;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    color: var(--text);
    white-space: nowrap;
}

.doc-file-info > span {
    font-family: 'JetBrains Mono', monospace;
    font-size: 9.5px;
    line-height: 1.2;
    color: var(--muted);
    white-space: nowrap;
}

.doc-download-arrow {
    margin-left: 3px;
    flex-shrink: 0;
    color: var(--faint);
    font-family: 'JetBrains Mono', monospace;
    font-size: 15px;
    line-height: 1;
    transition: color .2s, transform .2s;
}

.doc-download:hover .doc-download-arrow {
    color: var(--accent);
    transform: translateY(2px);
}

@media (max-width: 560px) {
    .docs-hub {
        padding: 52px 0;
    }

    .docs-head {
        margin-bottom: 26px;
    }

    .docs-head h2 {
        font-size: 28px;
    }

    .doc-card {
        padding: 18px;
    }

    .doc-links {
        flex-direction: column;
        align-items: stretch;
    }

    .doc-download {
        width: 100%;
    }

    .doc-download-arrow {
        margin-left: auto;
    }
}