/* Database landing pages (/databases, /databases/*) - page-specific rules ONLY.
   Shared primitives (tokens, headings, links, buttons, eyebrows, cards, pills,
   .table/.table-wrap) come from site.css; do not re-declare them here. The
   section, FAQ, status-mark and CTA treatments mirror compare.css. */

/* ---------- Page head extras ---------- */
.db-crumbs { font-family: "JetBrains Mono", monospace; font-size: .8rem; color: var(--muted); margin-bottom: 18px; }
.db-crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; }
.db-crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--muted); }
.db-crumbs [aria-current="page"] { color: var(--heading); }

.db-facts {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px;
    margin: 28px 0 0; padding: 0; max-width: 960px;
}
.db-facts > div { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; }
.db-facts dt { font-family: "JetBrains Mono", monospace; font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0 0 6px; }
.db-facts dd { margin: 0; color: var(--heading); font-weight: 500; line-height: 1.45; }
.db-head-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }

/* ---------- Sections ---------- */
.db-sec { padding: clamp(48px, 6vw, 72px) 0; border-top: 1px solid var(--line); }
.page-head + .db-sec { border-top: none; margin-top: 24px; }
.db-sec h2 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); margin: 0 0 12px; }
.db-sec .db-intro { color: var(--muted); font-size: 1.06rem; max-width: 68ch; margin: 0 0 28px; }
.db-sec .db-intro.db-after { margin: 22px 0 0; }
.db-sr {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Highlight cards ---------- */
.db-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 22px; }
.db-grid .card { display: flex; flex-direction: column; }
.db-grid .card h3 { font-size: 1.2rem; margin: 0 0 10px; }
.db-grid .card p { color: var(--muted); font-size: .98rem; margin: 0 0 14px; }
.db-grid .card .db-more { margin-top: auto; font-weight: 600; font-size: .92rem; }

/* ---------- Setup steps ---------- */
.db-steps { counter-reset: step; list-style: none; padding: 0; margin: 0; max-width: 78ch; }
.db-steps li { counter-increment: step; position: relative; padding: 14px 0 14px 48px; border-bottom: 1px solid var(--line); line-height: 1.6; }
.db-steps li:last-child { border-bottom: none; }
.db-steps li::before {
    content: counter(step); position: absolute; left: 0; top: 12px;
    width: 30px; height: 30px; border-radius: 999px;
    display: grid; place-items: center;
    font-family: "JetBrains Mono", monospace; font-size: .85rem; font-weight: 600;
    color: var(--blue-lift); background: var(--blue-soft);
}
.db-steps li strong { color: var(--heading); }

/* ---------- Tool tables ---------- */
.db-tools { min-width: 520px; }
.db-tools thead th:last-child { width: 55%; }
.db-tools tbody th,
.db-matrix tbody th {
    font-family: inherit; font-size: .95rem; font-weight: 600;
    text-transform: none; letter-spacing: 0;
    color: var(--heading); vertical-align: top; text-align: left;
    padding: 14px 18px; border-bottom: 1px solid var(--line);
}
.db-tools tbody tr:last-child th,
.db-matrix tbody tr:last-child th { border-bottom: none; }
.db-tools td { vertical-align: top; }
.db-tools .cell-note { display: block; margin-top: 6px; font-size: .88rem; color: var(--muted); line-height: 1.5; }

.db-matrix { min-width: 1080px; }
.db-matrix thead th { white-space: nowrap; }
.db-matrix thead th a { color: inherit; font-weight: 500; }
.db-matrix tbody th { font-size: .9rem; min-width: 220px; }
.db-matrix td { text-align: center; padding: 12px 10px; }

/* Status marks - honest Yes / Partial / No (same palette as compare.css). */
.mark {
    display: inline-block;
    font-family: "JetBrains Mono", monospace; font-size: .74rem; font-weight: 500;
    padding: 4px 11px; border-radius: 999px; white-space: nowrap;
}
.mark.yes { color: var(--green); background: var(--green-soft); }
.mark.partial { color: var(--blue-lift); background: var(--blue-soft); }
.mark.no { color: var(--muted); background: var(--line); }

/* ---------- Chips (compatible / modeled engines) ---------- */
.db-chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.db-chips li {
    font-size: .92rem; font-weight: 500; color: var(--heading);
    background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px;
}
.db-chips-muted li { color: var(--muted); }

/* ---------- FAQ ---------- */
.db-faq { display: grid; gap: 18px; max-width: 80ch; }
.db-faq .card h3 { font-size: 1.15rem; margin: 0 0 8px; }
.db-faq .card p { color: var(--muted); margin: 0; }

/* ---------- Read-more link columns ---------- */
.db-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px; }
.db-links h3 { font-size: 1.05rem; margin: 0 0 10px; }
.db-links ul { list-style: none; padding: 0; margin: 0; }
.db-links li { padding: 5px 0; }

/* ---------- Hub ---------- */
.db-hub-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; }
.db-hub-card {
    display: flex; flex-direction: column; gap: 10px;
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 28px; color: var(--ink);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.db-hub-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: transparent; text-decoration: none; }
.db-hub-card h3 { font-size: 1.35rem; margin: 0; }
.db-hub-card p { color: var(--muted); margin: 0; font-size: .98rem; }
.db-hub-card .db-family { font-family: "JetBrains Mono", monospace; font-size: .74rem; color: var(--muted); }
.db-hub-card .db-more { margin-top: auto; color: var(--link); font-weight: 600; font-size: .92rem; }

/* ---------- CTA strip (same treatment as the Compare and Features CTAs) ---------- */
.db-cta {
    background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 60%, var(--blue) 130%);
    color: #cfe0ff; text-align: center; margin-top: 24px;
}
.db-cta h2 { color: #fff; font-size: clamp(2rem, 4vw, 2.8rem); margin: 0 0 14px; }
.db-cta p { color: #aebfe2; max-width: 560px; margin: 0 auto 28px; font-size: 1.08rem; }
.db-cta .eyebrow { background: rgba(243, 118, 137, .18); color: var(--pink-soft); }
.db-cta .db-cta-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.db-cta .btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .35); }

@media (prefers-reduced-motion: reduce) {
    .db-hub-card { transition: none; }
    .db-hub-card:hover { transform: none; }
}
