
* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: "Pretendard", "Noto Sans KR", Arial, sans-serif;
    color: #172033;
    background: #f7f9fc;
    line-height: 1.7;
}

a { color: inherit; text-decoration: none; }

.site-header {
    background: #fff;
    border-bottom: 1px solid #e8edf3;
    padding: 20px 0;
}

.container {
    max-width: 1160px;
    margin: auto;
    padding: 0 22px;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 23px;
    font-weight: 800;
    color: #183b78;
}

.logo span { color: #3485e8; }

.top-nav { font-size: 14px; color: #536177; }

.hero {
    background: linear-gradient(125deg,#122c56,#2256a2);
    color: #fff;
    padding: 74px 0;
}

.hero h1 {
    font-size: 40px;
    margin: 0 0 14px;
    letter-spacing: -1.5px;
}

.hero p { font-size: 16px; color: #dbe8ff; }

.section { padding: 48px 0; }

.section h2 {
    font-size: 26px;
    letter-spacing: -0.6px;
    margin: 0 0 20px;
}

.theme-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 20px;
}

.theme-card {
    background: #fff;
    border: 1px solid #e4eaf2;
    border-radius: 14px;
    padding: 25px;
    transition: .2s;
}

.theme-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(20,50,90,.08);
}

.theme-category {
    color: #2875c7;
    font-size: 13px;
    font-weight: 700;
}

.theme-card h3 {
    font-size: 23px;
    margin: 10px 0;
}

.theme-card p {
    color: #647084;
    font-size: 14px;
    min-height: 55px;
}

.theme-count {
    font-size: 13px;
    color: #697b92;
}

.site-footer {
    margin-top: 60px;
    background: #fff;
    padding: 35px 0;
    border-top: 1px solid #e5eaf1;
    color: #8993a3;
    font-size: 13px;
}

@media(max-width:800px) {
    .theme-grid { grid-template-columns: repeat(2,1fr); }
    .hero h1 { font-size: 31px; }
}

@media(max-width:520px) {
    .theme-grid { grid-template-columns: 1fr; }
    .hero { padding: 50px 0; }
    .hero h1 { font-size: 27px; }
}

.theme-card {
    display: block;
}

.th-detail {
    max-width: 1000px;
}

.th-breadcrumb {
    color: #8491a5;
    font-size: 13px;
    margin-bottom: 24px;
}

.th-detail-hero {
    background: #fff;
    border: 1px solid #e4eaf2;
    border-radius: 16px;
    padding: 38px;
}

.th-detail-hero h1 {
    font-size: 36px;
    margin: 10px 0;
}

.th-detail-hero p {
    color: #627087;
}

.th-detail-section {
    margin-top: 48px;
}

.th-detail-section h2 {
    font-size: 25px;
    margin-bottom: 20px;
}

.th-muted {
    color: #8491a5;
    font-size: 13px;
}

.th-stock-list {
    display: grid;
    gap: 16px;
}

.th-stock-card {
    background: #fff;
    padding: 26px;
    border: 1px solid #e4eaf2;
    border-radius: 14px;
}

.th-stock-head {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: center;
}

.th-stock-head h3 {
    font-size: 22px;
    margin: 0;
}

.th-relation {
    background: #e8f1ff;
    color: #2462b8;
    padding: 6px 12px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 700;
}

.th-reason {
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid #edf1f6;
}

.th-reason p {
    color: #526176;
    margin-bottom: 0;
}

@media(max-width:520px) {
    .th-detail-hero { padding: 25px; }
    .th-detail-hero h1 { font-size: 28px; }
    .th-stock-card { padding: 20px; }
}

/* 테마 산업 구조 */
.th-industry-box {
    background: #ffffff;
    border: 1px solid #e4eaf2;
    border-left: 4px solid #3485e8;
    border-radius: 12px;
    padding: 24px 28px;
    color: #526176;
    line-height: 2;
}

.th-detail-section > p {
    line-height: 1.9;
    color: #526176;
    word-break: keep-all;
}

@media (max-width: 520px) {
    .th-industry-box {
        padding: 20px;
    }
}

/* 네이버 금융 종목 링크 */
.th-stock-link {
    color: #172033;
    text-decoration: none;
    transition: color 0.2s;
}

.th-stock-link:hover {
    color: #2875c7;
}

.th-stock-link span {
    font-size: 15px;
    color: #8491a5;
    margin-left: 4px;
}

.th-stock-link:hover span {
    color: #2875c7;
}
