/**
 * 임상시험 — 인사이트(블로그·about)와 동일 계열 스타일
 * 브랜드: #40798C, #1F363D, #0B3C5D, #70A9A1
 */

.ct-main {
    max-width: 100%;
    margin: 0 auto;
}

/* —— 콘텐츠 섹션 (블로그 카드와 동일 톤) —— */
.ct-section {
    margin-bottom: 2rem;
    padding: 1.5rem 1.5rem 1.75rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.ct-section h2 {
    font-size: 1.25rem;
    color: #1f363d;
    margin: 0 0 0.85rem 0;
    font-weight: 700;
    padding-bottom: 0.65rem;
    border-bottom: 2px solid #40798c;
}

.ct-section h3.ct-group-title,
.ct-group-title {
    margin: 1.75rem 0 0.85rem;
    font-size: 1.05rem;
    font-weight: 600;
    color: #40798c;
}

.ct-group-title:first-of-type {
    margin-top: 1.25rem;
}

.ct-section p,
.ct-section li {
    color: #4b5563;
    line-height: 1.7;
    font-size: 0.95rem;
}

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

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

.ct-section a:not(.ct-topic-card):not(.ct-cta-button):not(.ct-cta-link) {
    color: #40798c;
    font-weight: 600;
    text-decoration: none;
}

.ct-section a:not(.ct-topic-card):not(.ct-cta-button):not(.ct-cta-link):hover {
    color: #1f363d;
    text-decoration: underline;
}

/* —— 주제 링크: 블로그 .card-container 패턴 —— */
.ct-topic-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
    gap: 1rem;
    margin: 0 0 0.5rem;
}

.ct-topic-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 0.5rem;
    min-height: 5.5rem;
    padding: 1.1rem 1.15rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    color: #1f363d;
    text-decoration: none;
    transition: all 0.3s ease;
}

.ct-topic-card:hover {
    transform: translateY(-3px);
    border-color: #40798c;
    box-shadow: 0 8px 25px rgba(64, 121, 140, 0.15);
    color: #1f363d;
    text-decoration: none;
}

.ct-topic-card__title {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
    word-break: keep-all;
}

.ct-topic-card__meta {
    font-size: 0.8rem;
    font-weight: 500;
    color: #70a9a1;
}

/* —— 최근 3상 완료 하이라이트 —— */
.ct-spotlight-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: 1rem;
    margin-top: 0.75rem;
}

.ct-spotlight-card {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    min-height: 9rem;
    padding: 1.15rem 1.2rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    color: #1f363d;
    text-decoration: none;
    transition: all 0.3s ease;
}

.ct-spotlight-card:hover {
    transform: translateY(-3px);
    border-color: #40798c;
    box-shadow: 0 8px 25px rgba(64, 121, 140, 0.15);
    color: #1f363d;
    text-decoration: none;
}

.ct-spotlight-card__title {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.45;
}

.ct-spotlight-card__facts {
    margin: 0;
    display: grid;
    gap: 0.55rem;
}

.ct-spotlight-card__fact {
    display: grid;
    grid-template-columns: 4.5rem minmax(0, 1fr);
    gap: 0.5rem;
    align-items: start;
}

.ct-spotlight-card__fact dt {
    margin: 0;
    font-size: 0.75rem;
    font-weight: 600;
    color: #70a9a1;
}

.ct-spotlight-card__fact dd {
    margin: 0;
    font-size: 0.84rem;
    color: #475569;
    line-height: 1.45;
    word-break: keep-all;
}

/* —— 지표 —— */
.ct-stat-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 1rem 0 0;
}

.ct-stat {
    flex: 1 1 140px;
    padding: 1.1rem 1rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    text-align: center;
}

.ct-stat .v {
    font-size: 1.6rem;
    font-weight: 700;
    color: #1f363d;
    letter-spacing: -0.02em;
}

.ct-stat .l {
    font-size: 0.8rem;
    color: #70a9a1;
    margin-top: 0.35rem;
    font-weight: 500;
}

.ct-stat-group {
    margin-top: 1.5rem;
}

.ct-stat-group-title {
    margin: 0 0 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    color: #1f363d;
}

.ct-note--compact {
    margin-top: 0.75rem;
}

/* —— 보조 안내 (블로그 TLDR / 노트 톤) —— */
.ct-note {
    font-size: 0.875rem;
    color: #64748b;
    margin-top: 1rem;
    padding: 0.85rem 1.15rem;
    background: #f8f9fa;
    border-radius: 4px;
    border-left: 4px solid #40798c;
    line-height: 1.6;
}

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

.ct-status-row {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(100px, 2fr) auto;
    gap: 0.5rem 0.85rem;
    align-items: center;
    margin-bottom: 0.7rem;
    font-size: 0.9rem;
}

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

.ct-status-ko {
    font-weight: 600;
    color: #1f363d;
    font-size: 0.9rem;
}

.ct-status-code {
    font-size: 0.72rem;
    color: #94a3b8;
    font-weight: 500;
    letter-spacing: 0.02em;
}

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

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

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

/* —— 표본 목록 —— */
.ct-trial-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

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

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

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

.ct-trial-list a:hover {
    color: #1f363d;
    text-decoration: underline;
}

.ct-trial-status {
    display: inline-block;
    margin-left: 0.4rem;
    margin-top: 0.15rem;
    padding: 0.15rem 0.55rem;
    font-size: 0.72rem;
    font-weight: 500;
    color: #40798c;
    background: #e2e8f0;
    border-radius: 16px;
}

.ct-trial-title {
    display: block;
    margin-top: 0.4rem;
    color: #4b5563;
    line-height: 1.55;
}

/* —— 상세 dl —— */
.ct-dl {
    margin: 0;
}

.ct-dl dt {
    font-size: 0.8rem;
    font-weight: 600;
    color: #70a9a1;
    margin-top: 1rem;
}

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

.ct-dl dd {
    margin: 0.3rem 0 0 0;
    color: #1f363d;
    font-size: 0.95rem;
    line-height: 1.55;
}

.ct-note-inline {
    font-size: 0.85rem;
    color: #94a3b8;
    font-weight: 400;
}

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

.ct-back {
    margin: 0 0 1.5rem;
    font-size: 0.95rem;
}

.ct-back a {
    color: #40798c;
    font-weight: 600;
    text-decoration: none;
}

.ct-back a:hover {
    color: #1f363d;
    text-decoration: underline;
}

/* —— CTA: about .cta-section 톤 —— */
.ct-cta-section {
    background: linear-gradient(135deg, #1f363d 0%, #40798c 100%);
    color: #fff;
    text-align: center;
    padding: 2.5rem 1.75rem;
    margin: 2.5rem 0 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(64, 121, 140, 0.15);
}

.ct-cta-section h2 {
    font-size: 1.5rem;
    margin: 0 0 0.75rem;
    font-weight: 700;
    color: #fff;
    border: none;
    padding: 0;
}

.ct-cta-section p {
    font-size: 1rem;
    margin: 0 0 1.5rem;
    opacity: 0.92;
    color: #fff;
    line-height: 1.6;
}

.ct-cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.ct-cta-button {
    display: inline-block;
    background: #fff;
    color: #40798c;
    padding: 0.85rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    border: 2px solid #fff;
}

.ct-cta-button:hover {
    background: transparent;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.25);
    text-decoration: none;
}

.ct-cta-link {
    display: inline-block;
    color: #fff;
    padding: 0.85rem 1.15rem;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: underline;
    text-underline-offset: 3px;
    opacity: 0.95;
}

.ct-cta-link:hover {
    opacity: 1;
    color: #fff;
}

/* —— 공사 중 / empty —— */
.ct-section.ct-construction {
    text-align: center;
    padding: 2.5rem 1.5rem;
}

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

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

.ct-construction-home .ct-cta-button {
    background: linear-gradient(135deg, #40798c 0%, #1f363d 100%);
    color: #fff;
    border-color: transparent;
}

.ct-construction-home .ct-cta-button:hover {
    filter: brightness(1.06);
    background: linear-gradient(135deg, #40798c 0%, #1f363d 100%);
    color: #fff;
    transform: translateY(-2px);
}

.ct-tag {
    display: inline-block;
    background: #e2e8f0;
    color: #40798c;
    padding: 0.25rem 0.75rem;
    border-radius: 16px;
    font-size: 0.75rem;
    font-weight: 500;
    margin-bottom: 0.85rem;
}

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

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

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

    .ct-cta-section {
        padding: 2rem 1.25rem;
    }

    .ct-cta-section h2 {
        font-size: 1.25rem;
    }

    .ct-cta-actions {
        flex-direction: column;
        align-items: stretch;
    }
}
