/* Small set of app-specific rules layered on top of Bootstrap; everything else
   (layout, forms, tables, buttons, nav, pagination) uses Bootstrap classes directly. */

.kinase-image img {
    display: block;
    max-width: 16rem;
    max-height: 16rem;
    border: 1px solid var(--bs-border-color);
    border-radius: var(--bs-border-radius);
}

.kinase-image-placeholder,
.compound-image-placeholder,
.structure-viewer-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border: 1px dashed var(--bs-border-color);
    border-radius: var(--bs-border-radius);
    background: var(--bs-secondary-bg);
    color: var(--bs-secondary-color);
}

.kinase-image-placeholder {
    width: 16rem;
    height: 12rem;
    padding: 1rem;
    font-size: 0.9rem;
}

.compound-image-placeholder {
    width: 4rem;
    height: 4rem;
    font-size: 0.65rem;
    padding: 0.25rem;
}

.compound-image {
    display: block;
    width: 4rem;
    height: 4rem;
    object-fit: contain;
    border: 1px solid var(--bs-border-color);
    border-radius: var(--bs-border-radius);
    cursor: pointer;
    transition: width 0.15s ease, height 0.15s ease;
}

.compound-image-expanded {
    width: 500px;
    height: 500px;
}

.structure-viewer-placeholder {
    width: 100%;
    height: 16rem;
}

.navbar-logo {
    width: 2rem;
    height: 2rem;
    object-fit: contain;
}

body.home-page {
    background-image: linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.55)),
        url("../img/kinoteca-background-1.jpg");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    color: #fff;
}

body.home-page .lead {
    color: rgba(255, 255, 255, 0.85);
}

/* Cards that carry their own opaque background (the stats strip, the
   pipeline-diagram card) should keep normal dark-on-light text rather than
   inheriting the hero's white. */
body.home-page .bg-body-secondary,
body.home-page .card {
    color: var(--bs-body-color);
}

/* Kinase-list and kinase-detail pages: same fixed full-page background
   treatment as the home page, but these two source images are light/pastel
   already, so no dark overlay or text-color inversion is needed — existing
   dark-on-light Bootstrap text and opaque cards stay legible as-is. */
body.list-page {
    background-image: url("../img/kinoteca-background-2.jpg");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
}

body.detail-page {
    background-image: url("../img/kinoteca-background-3.jpg");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
}

.home-logo {
    display: block;
    width: 100%;
    max-width: 16rem;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    margin: 0 auto;
}

.home-pipeline-wrapper {
    max-width: 60rem;
}

.home-pipeline-diagram {
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--bs-border-radius);
}

.feature-image-card {
    width: 400px;
    height: 260px;
    max-width: 100%;
}

.feature-image-card .card-body {
    width: 100%;
    height: 100%;
}

.feature-image {
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    margin: 0 auto;
}

.chart-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 1rem 0;
}

.chart img {
    display: block;
    max-width: 100%;
}

.scaffold-smiles {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.85rem;
    word-break: break-all;
}

/* Markdown-rendered content (apps/docs) has no Bootstrap classes of its own — only tables
   and code spans need help, everything else (headings, lists, paragraphs) reads fine on
   Bootstrap's base typography. */
.docs-content table {
    width: 100%;
    margin-bottom: 1rem;
    border-collapse: collapse;
}

.docs-content th,
.docs-content td {
    padding: 0.5rem;
    border: 1px solid var(--bs-border-color);
}

.docs-content code {
    background: var(--bs-secondary-bg);
    border-radius: var(--bs-border-radius);
    padding: 0.1rem 0.3rem;
}

/* Numeric table columns: right-aligned with fixed-width digits so that, combined with the
   fixed decimal-place formatting used throughout, values line up by their decimal point. */
.text-numeric {
    text-align: right;
    font-variant-numeric: tabular-nums;
}
