/* 임상시험 데이터 플랫폼 (ClinicalTrials.gov 연동 예정) */

.ct-main {
    max-width: 900px;
    margin: 0 auto;
}

.ct-section.ct-construction {
    text-align: center;
    padding: 2rem 1.5rem 2.25rem;
}

.ct-section.ct-construction h2 {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 1rem;
}

.ct-construction-home {
    margin-top: 1.5rem;
    margin-bottom: 0;
}

.ct-section {
    margin-bottom: 2.5rem;
    padding: 1.5rem 1.25rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.06);
}

.ct-section h2 {
    font-size: 1.15rem;
    color: #0b3c5d;
    margin: 0 0 1rem 0;
    font-weight: 700;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #40798c;
}

.ct-section p,
.ct-section li {
    color: #334155;
    line-height: 1.75;
    font-size: 0.95rem;
}

.ct-section ul {
    margin: 0.5rem 0 0 1.25rem;
    padding: 0;
}

.ct-section li {
    margin-bottom: 0.5rem;
}

.ct-pill {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #40798c;
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
    margin-bottom: 0.75rem;
}

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

.ct-grid-links a {
    display: block;
    padding: 0.85rem 1rem;
    border-radius: 10px;
    border: 1px solid #cbd5e1;
    background: #f8fafc;
    color: #0b3c5d;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.ct-grid-links a:hover {
    background: #f1f5f9;
    border-color: #40798c;
}

.ct-cta-stack {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1rem;
}

.ct-cta-stack a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.25rem;
    border-radius: 10px;
    font-weight: 700;
    text-decoration: none;
    font-size: 0.95rem;
    text-align: center;
}

.ct-cta-stack a.ct-cta--primary {
    background: linear-gradient(135deg, #40798c 0%, #1f363d 100%);
    color: #fff;
    border: none;
}

.ct-cta-stack a.ct-cta--primary:hover {
    filter: brightness(1.05);
}

.ct-cta-stack a.ct-cta--secondary {
    background: #fff;
    color: #0b3c5d;
    border: 2px solid #40798c;
}

.ct-cta-stack a.ct-cta--secondary:hover {
    background: #f0f9ff;
}

.ct-note {
    font-size: 0.85rem;
    color: #64748b;
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    background: #f8fafc;
    border-radius: 8px;
    border-left: 4px solid #94a3b8;
}

.ct-stat-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 1rem 0;
}

.ct-stat {
    flex: 1 1 140px;
    padding: 1rem;
    background: #f1f5f9;
    border-radius: 10px;
    text-align: center;
}

.ct-stat .v {
    font-size: 1.5rem;
    font-weight: 800;
    color: #0b3c5d;
}

.ct-stat .l {
    font-size: 0.75rem;
    color: #64748b;
    margin-top: 0.25rem;
}

/* 상태 분포 막대 */
.ct-status-list {
    margin-top: 1rem;
}

.ct-status-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(120px, 2fr) auto;
    gap: 0.5rem 0.75rem;
    align-items: center;
    margin-bottom: 0.65rem;
    font-size: 0.88rem;
}

.ct-status-label {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.ct-status-code {
    font-weight: 700;
    color: #0b3c5d;
    font-size: 0.8rem;
}

.ct-status-ko {
    font-size: 0.78rem;
    color: #64748b;
}

.ct-status-track {
    height: 10px;
    background: #e2e8f0;
    border-radius: 6px;
    overflow: hidden;
}

.ct-status-fill {
    height: 100%;
    background: linear-gradient(90deg, #40798c, #94a3b8);
    border-radius: 6px;
    min-width: 2px;
}

.ct-status-meta {
    font-variant-numeric: tabular-nums;
    color: #475569;
    white-space: nowrap;
    font-size: 0.8rem;
}

.ct-trial-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ct-trial-list li {
    padding: 0.85rem 0;
    border-bottom: 1px solid #e2e8f0;
    font-size: 0.92rem;
}

.ct-trial-list li:last-child {
    border-bottom: none;
}

.ct-trial-list a {
    font-weight: 700;
    color: #0b3c5d;
    text-decoration: none;
}

.ct-trial-list a:hover {
    text-decoration: underline;
}

.ct-trial-status {
    display: inline-block;
    margin-left: 0.5rem;
    font-size: 0.78rem;
    color: #64748b;
}

.ct-trial-title {
    display: block;
    margin-top: 0.35rem;
    color: #334155;
    line-height: 1.5;
}

.ct-dl {
    margin: 0;
}

.ct-dl dt {
    font-size: 0.78rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-top: 0.85rem;
}

.ct-dl dt:first-child {
    margin-top: 0;
}

.ct-dl dd {
    margin: 0.25rem 0 0 0;
    color: #0f172a;
    font-size: 0.95rem;
}

.ct-note-inline {
    font-size: 0.85rem;
    color: #64748b;
}

.ct-prose {
    color: #334155;
    line-height: 1.75;
    font-size: 0.95rem;
}

@media (max-width: 640px) {
    .ct-section {
        padding: 1.25rem 1rem;
    }

    .ct-status-row {
        grid-template-columns: 1fr;
    }

    .ct-status-meta {
        justify-self: start;
    }
}
