/* Drug information page styles. Shared across /drugs/<name>/ templates.
   Visual language matches /drug-genetics/<slug>/ pages so the two feel
   like one product. */

.drug-page {
    max-width: 820px;
    margin: 0 auto;
    padding: 0 20px;
    color: #343a40;
    line-height: 1.7;
}

.drug-page-hero {
    margin: 2rem 0 2rem;
    padding: 2rem 1.75rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e7f5ff 100%);
    border-radius: 15px;
    text-align: left;
}

.drug-page .drug-title {
    font-size: 2.4rem;
    font-weight: 700;
    color: #343a40;
    margin: 0 0 0.4rem;
    line-height: 1.15;
    text-align: left;
}

.drug-page .drug-class {
    display: inline-block;
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #1864ab;
    background: rgba(255, 255, 255, 0.7);
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    margin: 0;
}

.drug-page .section {
    margin-bottom: 2.25rem;
}

.drug-page .section-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #343a40;
    margin: 2.25rem 0 1rem;
    padding-bottom: 0.4rem;
    border-bottom: 2px solid #e9ecef;
    line-height: 1.3;
}

.drug-page .subsection-title {
    font-size: 1.08rem;
    font-weight: 700;
    color: #343a40;
    margin: 1.4rem 0 0.5rem;
}

.drug-page .content {
    font-size: 1rem;
    color: #343a40;
}

.drug-page .content p {
    margin: 0 0 0.9rem;
}

.drug-page .content ul {
    padding-left: 0;
    margin: 0.5rem 0 1.2rem;
    list-style: none;
}

.drug-page .content ul li {
    position: relative;
    padding: 0.2rem 0 0.2rem 1.25rem;
    line-height: 1.55;
}

.drug-page .content ul li::before {
    content: "";
    position: absolute;
    left: 0.15rem;
    top: 0.75rem;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #00ACD0;
}

.drug-page .content a {
    color: #00ACD0;
    text-decoration: none;
    border-bottom: 1px solid rgba(0, 172, 208, 0.3);
}
.drug-page .content a:hover {
    color: #00ACD0;
    border-bottom-color: #00ACD0;
}

.drug-page table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    margin: 1rem 0 1.5rem;
    box-shadow: 0 0 0 1px #e9ecef;
}

.drug-page th {
    background: #f8f9fa;
    text-align: left;
    padding: 0.75rem 0.9rem;
    font-weight: 700;
    color: #495057;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    border: none;
    border-bottom: 1px solid #e9ecef;
}

.drug-page td {
    padding: 0.85rem 0.9rem;
    border: none;
    border-bottom: 1px solid #f1f3f5;
    vertical-align: top;
    line-height: 1.55;
}

.drug-page tr:last-child td { border-bottom: none; }

.drug-page .disclaimer {
    font-size: 0.85rem;
    color: #6c757d;
    padding: 1rem 1.1rem;
    border-left: 3px solid #e9ecef;
    background: #fbfbfb;
    border-radius: 4px;
    line-height: 1.55;
    margin: 2rem 0 1rem;
    font-style: normal;
}

.drug-page .disclaimer strong {
    color: #495057;
    display: block;
    margin-bottom: 0.25rem;
}

.drug-page .center-content {
    background: linear-gradient(135deg, #00ACD0 0%, #009688 100%);
    color: white;
    padding: 2.25rem 1.5rem;
    border-radius: 15px;
    text-align: center;
    margin: 2.5rem 0 1.5rem;
}

.drug-page .call-to-action {
    font-size: 1.05rem;
    color: white;
    font-weight: 400;
    margin: 0 auto 1.25rem;
    max-width: 640px;
    opacity: 0.95;
}

.drug-page .call-to-action em {
    font-style: italic;
}

.drug-page .back-btn {
    display: inline-block;
    background: white;
    color: #00ACD0;
    padding: 0.8rem 1.75rem;
    border-radius: 22px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
}

.drug-page .back-btn:hover {
    color: #00ACD0;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
}

.drug-brand-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.drug-brand-card {
    display: block;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 0.9rem 1rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

.drug-brand-card:hover {
    border-color: #00ACD0;
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(0, 172, 208, 0.12);
    text-decoration: none;
    color: inherit;
}

.drug-brand-name {
    font-weight: 600;
    color: #343a40;
    font-size: 1rem;
}

.drug-brand-meta {
    font-size: 0.8rem;
    color: #6c757d;
    margin-top: 0.2rem;
}

.drug-genesight-callout {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border-radius: 14px;
    padding: 1.5rem 1.75rem;
    margin: 2rem 0;
}
.drug-genesight-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}
.drug-genesight-lead { flex: 1; min-width: 260px; }
.drug-genesight-lead strong {
    display: block;
    font-size: 1.05rem;
    color: #343a40;
    margin-bottom: 0.35rem;
}
.drug-genesight-lead p {
    margin: 0;
    font-size: 0.95rem;
    color: #495057;
    line-height: 1.55;
}
.drug-genesight-cta {
    display: inline-block;
    background: white;
    color: #856404;
    padding: 0.75rem 1.4rem;
    border-radius: 22px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    border: 2px solid #ffc107;
    white-space: nowrap;
    transition: all 0.2s ease;
}
.drug-genesight-cta:hover {
    background: #ffc107;
    color: #343a40;
    transform: translateY(-1px);
    text-decoration: none;
}

.drug-gene-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 0.65rem;
    margin-top: 0.75rem;
}
.drug-gene-card {
    display: block;
    padding: 0.75rem 0.95rem;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    transition: all 0.15s ease;
}
.drug-gene-card:hover {
    border-color: #00ACD0;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(0,172,208,0.1);
    text-decoration: none;
    color: inherit;
}
.drug-gene-symbol {
    font-family: ui-monospace, SFMono-Regular, monospace;
    font-weight: 700;
    color: #1864ab;
    font-size: 1rem;
}
.drug-gene-fullname {
    font-size: 0.75rem;
    color: #6c757d;
    margin-top: 0.2rem;
    line-height: 1.3;
}

.drug-page .drug-class a {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px dotted rgba(24, 100, 171, 0.4);
}
.drug-page .drug-class a:hover {
    color: #1864ab;
    border-bottom-color: #1864ab;
}

.drug-page-breadcrumb {
    font-size: 0.88rem;
    color: #6c757d;
    margin: 1.5rem 0 0;
}
.drug-page-breadcrumb a {
    color: #00ACD0;
    text-decoration: none;
}
.drug-page-breadcrumb a:hover { text-decoration: underline; }

@media (max-width: 640px) {
    .drug-page .drug-title { font-size: 1.75rem; }
    .drug-page-hero { padding: 1.5rem 1.1rem; }
    .drug-page .section-title { font-size: 1.2rem; }
    .drug-page table {
        display: block;
        overflow-x: auto;
    }
}
