/* ---------------------------------------------------------
   rop documentation styles (v1.2 - dark theme, softer)
--------------------------------------------------------- */

.docs-container {
    max-width: 51.25rem;
    margin: 0 auto;
    padding: 0 1.25rem 1.5rem 1.25rem;
    line-height: 1.65;
    font-size: 1.06rem;
    color: #e4e4e4;
}

.docs-container h1,
.docs-container h2,
.docs-container h3 {
    font-weight: 500;
    margin-top: 1.2em; /* reduced from 1.6em */
    margin-bottom: 0.5em;
    line-height: 1.25;
    color: #fafafa;
}

.docs-container h1:first-child {
    margin-top: 0.4em; /* tightens the gap under the nav */
}

.docs-container h1 {
    font-size: 1.65rem;
    letter-spacing: 0.01875rem;
}

.docs-container h2 {
    font-size: 1.28rem;
    letter-spacing: 0.0125rem;
}

.docs-container p {
    margin: 0.9em 0;
    color: #d6d6d6;
}

.docs-container ul {
    margin: 0.8em 0 0.8em 1.4em;
}

.docs-container li {
    margin: 0.35em 0;
    color: #d0d0d0;
}

.docs-container strong {
    font-weight: 600;
    color: #ffffff;
}

.docs-container a {
    color: #4da3ff;
    text-decoration: none;
}

.docs-container a:hover {
    text-decoration: underline;
}

/* ============================================================
   Documentation card grids (docs index + page directory)
   .doc-card        = whole tile is a link (hover-lift)
   .doc-card-static = reference entry; links live in the text
   ============================================================ */
.doc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
    gap: 0.9rem;
    margin: 0.75rem 0 0.5rem;
}

.doc-card,
.doc-card-static {
    padding: 0.9rem 1.05rem;
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 0.6rem;
    background: rgba(255, 255, 255, 0.03);
}

.doc-card {
    display: block;
    text-decoration: none;
    transition: transform 0.12s ease, box-shadow 0.12s ease,
                border-color 0.12s ease, background 0.12s ease;
}

.doc-card:hover {
    transform: translateY(-2px);
    border-color: #4da3ff;
    background: rgba(77, 163, 255, 0.08);
    box-shadow: 0 0.4rem 1.1rem rgba(0, 0, 0, 0.35);
}

.doc-card .doc-card-title { color: #4da3ff; }
.doc-card-static .doc-card-title { color: #ffffff; }

.doc-card-title {
    display: block;
    font-weight: 700;
    font-size: 1.02rem;
    margin-bottom: 0.3rem;
}

.doc-card-desc {
    display: block;
    color: #c3c9d4;
    font-size: 0.88rem;
    line-height: 1.4;
}

/* ============================================================
   .no-bullets — the marker-free definition list the docs pages
   already ask for by class but never had a rule for. Renders as
   clean "bold label — description" rows with light dividers.
   Scoped to .docs-container so it overrides .docs-container ul.
   ============================================================ */
.docs-container ul.no-bullets {
    list-style: none;
    margin: 0.75rem 0 1rem;
    padding-left: 0;
}

.docs-container ul.no-bullets li {
    margin: 0;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    line-height: 1.5;
}

.docs-container ul.no-bullets li:last-child {
    border-bottom: none;
}
