/* --- SVG and Stage Graphic Styles --- */
.stage-circle {
    fill: #fff;
    stroke: #2196F3;
    stroke-width: 3;
}

.stage-label {
    text-anchor: middle;
    font-size: 14px;
    fill: #1a3c80;
}

.progress-path {
    fill: none;
    stroke: #2196F3;
    stroke-width: 8;
    stroke-linecap: round;
}

/* --- HTML Text Styles for Drug Header --- */
.asset-name {
    font-size: 18px;
    font-weight: bold;
    color: #1a1a1a;
    margin: 0;
    line-height: 1.2;
}

.asset-indication {
    font-size: 14px;
    color: #555;
    margin: 0;
    line-height: 1.2;
}

/* Container for the drug info header */
.drug-info-box {
    background-color: rgba(33, 150, 243, 0.1);
    border-radius: 10px;
    width: 500px;
    max-width: 90%;
    margin: 0 auto 5px auto;
    /* reduced bottom margin for tighter spacing */
    padding: 10px 12px 8px 12px;
    /* sufficient top padding so text isn’t clipped */
    text-align: center;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
    line-height: 1.3;
}

/* --- General Layout and SVG Container Styles --- */
.svg-container {
    width: 100%;
    overflow-x: hidden;
}

.drug-row {
    padding-bottom: 20px;
}

/* SVG for pipeline stage header and progress graphics */
.pipeline-svg {
    width: 100%;
    max-width: 1000px;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* --- Media Queries --- */

/* Tablets and small laptops */
@media (max-width: 768px) {
    .asset-name {
        font-size: 20px;
    }

    .asset-indication {
        font-size: 16px;
    }

    .stage-label {
        font-size: 20px;
    }

    .pipeline-svg {
        width: 100%;
    }
}

/* Mobile phones – make headers slightly smaller to avoid oversized text */
@media (max-width: 480px) {
    .asset-name {
        font-size: 18px;
    }

    .asset-indication {
        font-size: 14px;
    }

    .stage-label {
        font-size: 18px;
    }

    .pipeline-svg {
        width: 100%;
    }
}

/* Read the stages without sideways scrolling on a phone. */
.pipeline-stages { display: none; }
.pipeline-explanation { max-width: 760px; margin-inline: auto; }
.pipeline-explanation a { color: #176baf; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 640px) {
    .pipeline-stages-chart { display: none; }
    .pipeline-stages { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; list-style: none; margin: 0; padding: 2rem var(--page-gutter); }
    .pipeline-stages li { display: flex; align-items: center; gap: .65rem; font-size: .9rem; color: #1a3c80; }
    .pipeline-stages span { display: grid; place-items: center; flex: 0 0 28px; height: 28px; border: 1px solid #2196f3; border-radius: 50%; background: #fff; font-size: .75rem; }
}
