/**
 * tbacking 레이아웃 — 좌측 메뉴 + 메인 패널
 * 폰트: 기존 index(tb-container)와 동일 Pretendard + 원래 크기 체계
 */
:root {
    --tb-font: 'Pretendard', -apple-system, BlinkMacSystemFont, sans-serif;
    --tb-black: #111111;
    --tb-accent: #fd7e14;
    --tb-accent-dark: #c2410c;
    --tb-text: #334155;
    --tb-text-light: #475569;
    --tb-muted: #94a3b8;
    --tb-border: #dee2e6;
    --tb-border-light: #e5e7eb;
    --tb-bg-soft: #f8fafc;
    --tb-table-head: #2c3e50;
    /* typography scale — title > subtitle > body > nav > meta > label */
    --tb-fs-title: 1.05rem;
    --tb-fs-subtitle: 0.9375rem;
    --tb-fs-body: 0.875rem;
    --tb-fs-table: 0.875rem;
    --tb-fs-nav: 0.8125rem;
    --tb-fs-meta: 0.75rem;
    --tb-fs-btn: 0.75rem;
    --tb-fs-label: 0.6875rem;
    --tb-lh: 1.45;
    --tb-line: #e2e8f0;
    --tb-ink: var(--tb-black);
    --tb-card-shadow: 4px 4px 0 rgba(0, 0, 0, 0.05);
    --tb-section-gap: 2rem;
    --tb-head-pad: 6px;
    --tb-sidebar-ratio: 30%;
    --tb-main-ratio: 70%;
    --tb-sidebar-bg: #f6f8fb;
}

/* ── 레이아웃 ── */
.tb-layout-row {
    align-items: flex-start;
}

.tb-left-sidebar-col {
    padding-right: 1rem;
}

@media (min-width: 992px) {
    .tb-left-sidebar-col {
        padding-right: 1.65rem;
    }

    .tb-main-col {
        padding-left: 0.5rem;
    }

    .tb-main-panel:has(.tb-postx-article) {
        padding: 1.15rem 1.2rem 1.35rem;
    }

    .tb-main-panel:has(.tb-guide-page) {
        padding: 1.35rem 1.5rem 1.75rem;
    }

    .tb-layout-row > .tb-left-sidebar-col {
        flex: 0 0 var(--tb-sidebar-ratio);
        max-width: var(--tb-sidebar-ratio);
    }

    .tb-layout-row > .tb-main-col {
        flex: 0 0 var(--tb-main-ratio);
        max-width: var(--tb-main-ratio);
    }
}

.tb-main-col {
    min-width: 0;
}

.tb-main-panel {
    font-family: var(--tb-font);
    font-size: var(--tb-fs-nav);
    color: var(--tb-text);
    background: #fff;
    border: 1px solid var(--tb-border-light);
    border-radius: 4px;
    padding: 1rem 0.95rem 1.25rem;
}

/* 메인 홈 — 좌측 메뉴와 동일 타이포 축 (nav · meta · label) */
.tb-main-panel article {
    font-family: var(--tb-font);
    font-size: var(--tb-fs-nav);
    color: var(--tb-text);
    line-height: var(--tb-lh);
}

.tb-main-panel article .tb-section,
.tb-main-panel article #weekly-briefing-section {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    line-height: inherit;
}

.tb-left-sidebar {
    font-family: var(--tb-font);
    font-size: var(--tb-fs-nav);
    color: var(--tb-black);
    background: var(--tb-sidebar-bg);
    border: none;
    border-radius: 6px;
    padding: 1rem 0.95rem 1.25rem;
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.05);
}

.tb-main-panel .single-page-post {
    padding: 0;
    margin: 0;
}

.tb-main-panel ul:not(.db-info-list),
.tb-main-panel ol:not(.db-info-list),
.tb-left-sidebar ul,
.tb-left-sidebar ol {
    padding-left: 0 !important;
}

.tb-main-panel h2,
.tb-main-panel h3,
.tb-main-panel h4 {
    margin: 0;
}

/* ── 섹션 헤더 (기존 title-bar + custom-title) ── */
.tb-section {
    margin-bottom: var(--tb-section-gap);
}

.tb-section:last-child {
    margin-bottom: 0;
}

.tb-section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: var(--tb-head-pad);
    padding-bottom: var(--tb-head-pad);
    border-bottom: 1px solid var(--tb-border);
}

.tb-section-head-left {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.tb-section-desc {
    margin: 2px 0 0;
    font-size: var(--tb-fs-meta);
    font-weight: 600;
    color: #94a3b8;
    line-height: 1.35;
}

.tb-title-bar {
    width: 4px;
    height: 16px;
    background: var(--tb-black);
    flex-shrink: 0;
}

.tb-title-bar--accent {
    background: var(--tb-accent);
}

.tb-title-bar--report {
    background: #64748b;
}

.tb-title-bar--ai {
    background: #7c3aed;
}

.tb-nav-section--report .tb-nav-badge {
    background: #f1f5f9;
    color: #475569;
}

.tb-section-title {
    font-family: var(--tb-font);
    font-size: var(--tb-fs-title) !important;
    font-weight: 700 !important;
    line-height: 1.2;
    text-transform: uppercase;
    color: var(--tb-black);
    margin: 0 !important;
    white-space: nowrap;
}

.tb-section-sub {
    margin-left: 8px;
    font-size: var(--tb-fs-meta);
    font-weight: 600;
    color: var(--tb-muted);
    text-transform: none;
    letter-spacing: 0;
}

.tb-btn-more,
.tb-btn-detail {
    height: 26px;
    padding: 0 8px;
    font-family: var(--tb-font);
    font-size: var(--tb-fs-btn);
    font-weight: 700;
    color: #64748b !important;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    transition: background 0.12s ease, border-color 0.12s ease;
}

.tb-btn-more:hover,
.tb-btn-detail:hover {
    background: var(--tb-bg-soft);
    border-color: #cbd5e1;
    color: #334155 !important;
}

/* ── 공지 목록 (기존 notice-item) ── */
.tb-notice-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.tb-notice-item {
    padding: 0.8rem 0;
    border-bottom: 1px dashed #e2e8f0;
}

.tb-notice-item:last-child {
    border-bottom: none;
}

.tb-notice-line {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    flex-wrap: wrap;
}

.tb-notice-date {
    font-size: var(--tb-fs-meta);
    color: var(--tb-muted);
    font-weight: 700;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.tb-notice-body {
    flex: 1;
    min-width: 220px;
    font-size: var(--tb-fs-body);
    color: var(--tb-text);
    line-height: var(--tb-lh);
    word-break: keep-all;
}

.tb-notice-tag {
    color: var(--tb-accent);
    font-weight: 700;
    margin-right: 4px;
}

.tb-notice-body mark {
    background: #fff7ed;
    color: var(--tb-accent-dark);
    padding: 0 2px;
}

.tb-notice-action {
    margin-left: auto;
}

.tb-table-wrap {
    width: 100%;
    overflow-x: auto;
    margin-top: 0.5rem;
    min-width: 0;
}

/* ── 콜아웃 / 스윙 가이드 ── */
.tb-callout {
    margin-bottom: 12px;
    padding: 10px 14px;
    font-size: var(--tb-fs-nav);
    color: var(--tb-text-light);
    line-height: var(--tb-lh);
    background: var(--tb-bg-soft);
    border: 1px solid #e2e8f0;
    border-left: 3px solid var(--tb-accent);
    border-radius: 4px;
}

.tb-callout strong {
    color: var(--tb-black);
}

.tb-callout-note {
    color: var(--tb-muted);
}

.tb-callout--below {
    margin-bottom: 0;
    margin-top: 12px;
}

/* ── 2열 그리드 ── */
.tb-data-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--tb-section-gap);
}

@media (min-width: 768px) {
    .tb-data-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem var(--tb-section-gap);
    }

    .tb-data-grid .tb-section--full {
        grid-column: span 2;
    }
}

/* 그리드 내부 — gap만 사용 (tb-section margin-bottom 이중 방지) */
.tb-data-grid > .tb-section {
    margin-bottom: 0;
    min-width: 0;
}

/* 메인 index 요약 테이블 — 52주 신고가·볼린저 등 (2열) */
.tb-main-panel .tb-index-table {
    margin: 0 !important;
    width: 100%;
}

.tb-main-panel .tb-index-table--pair {
    table-layout: fixed;
}

#rank-section .tb-index-table {
    table-layout: auto;
}

/* 주식테마 순위 — 4열, auto 레이아웃 + 열 너비 */
.tb-section--full .tb-index-table {
    table-layout: auto;
}

.tb-section--full .tb-index-table th:nth-child(1),
.tb-section--full .tb-index-table td:nth-child(1) {
    width: 14%;
    white-space: nowrap;
}

.tb-section--full .tb-index-table th:nth-child(2),
.tb-section--full .tb-index-table td:nth-child(2),
.tb-section--full .tb-index-table th:nth-child(3),
.tb-section--full .tb-index-table td:nth-child(3) {
    width: 10%;
    text-align: center !important;
    white-space: nowrap;
}

.tb-main-panel .tb-index-table td.text-left {
    white-space: normal !important;
    word-break: keep-all;
    line-height: 1.55;
}

.tb-main-panel .tb-section--full .tb-index-table td:last-child {
    white-space: normal !important;
    word-break: keep-all;
    text-align: left;
}

.tb-data-grid .tb-table-wrap {
    min-width: 0;
    overflow-x: auto;
}

/* ── AdSense ── */
.tb-ad-slot {
    margin-bottom: var(--tb-section-gap);
    min-height: 90px;
    overflow: hidden;
}

/* ── 테이블 (postx-datatable 제외 — PostX·메인 표는 postx-datatable.css) ── */
.tb-main-panel .tb-blog-table:not(.postx-datatable),
.tb-main-panel .tb-index-table,
.tb-left-sidebar .tb-blog-table {
    font-family: var(--tb-font);
    font-size: var(--tb-fs-nav);
    color: var(--tb-text);
    border-top: 2px solid var(--tb-table-head);
}

.tb-main-panel .tb-blog-table:not(.postx-datatable) thead th,
.tb-main-panel .tb-index-table thead th,
.tb-left-sidebar .tb-blog-table thead th {
    background: #f8f9fa;
    color: var(--tb-table-head);
    font-family: var(--tb-font);
    font-size: var(--tb-fs-nav);
    font-weight: 600;
    padding: 10px 8px;
    border-bottom: 2px solid #edf2f7;
    text-transform: none;
    letter-spacing: 0;
}

.tb-main-panel .tb-blog-table:not(.postx-datatable) tbody td,
.tb-main-panel .tb-index-table tbody td,
.tb-left-sidebar .tb-blog-table tbody td {
    padding: 10px 8px;
    font-family: var(--tb-font);
    font-size: var(--tb-fs-nav);
    font-weight: 500;
    color: var(--tb-text);
    line-height: var(--tb-lh);
    border-bottom: 1px solid var(--tb-border-light);
}

.tb-main-panel .tb-blog-table:not(.postx-datatable) a,
.tb-main-panel .tb-index-table a {
    font-weight: 600;
    color: var(--tb-text);
    text-decoration: none;
}

.tb-main-panel .tb-blog-table:not(.postx-datatable) a:hover,
.tb-main-panel .tb-index-table a:hover {
    color: var(--tb-accent);
}

.tb-main-panel .tb-blog-table:not(.postx-datatable) tbody tr:last-child td {
    border-bottom: 1px solid var(--tb-table-head);
}

/* ── 좌측 — 사이트 · 바로가기 (방문글 박스 톤) ── */
.tb-nav-item--shortcuts {
    align-items: flex-start;
    padding: 6px 0;
}

.tb-nav-shortcuts-title {
    flex-shrink: 0;
    font-size: var(--tb-fs-nav);
    font-weight: 700;
    color: var(--tb-text);
    line-height: var(--tb-lh);
    padding: 5px 0;
}

.tb-nav-shortcut-boxes {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 4px;
    max-width: 68%;
}

.tb-nav-shortcut-box {
    padding: 2px 7px;
}

.tb-nav-shortcuts-mobile {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 8px;
    padding: 0.25rem 0.15rem 0.5rem;
}

.tb-nav-shortcuts-mobile .tb-nav-shortcut-boxes {
    max-width: none;
    justify-content: flex-start;
}

.tb-nav-section--mobile-shortcuts {
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #eef2f6;
}

/* ── 좌측 네비 ── */
.tb-nav-section {
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eef2f6;
}

.tb-nav-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.tb-nav-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--tb-border);
}

.tb-nav-head .tb-section-title {
    font-size: var(--tb-fs-subtitle) !important;
    text-transform: none;
    letter-spacing: -0.01em;
}

.tb-nav-badge {
    margin-left: auto;
    padding: 1px 8px;
    font-size: var(--tb-fs-btn);
    font-weight: 700;
    color: var(--tb-accent);
    background: #fff7ed;
    border-radius: 999px;
}

.tb-nav-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.tb-nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 5px 4px;
    font-size: var(--tb-fs-nav);
    font-weight: 500;
    color: var(--tb-text);
    text-decoration: none;
    line-height: var(--tb-lh);
    border-radius: 4px;
    transition: background 0.12s ease, color 0.12s ease;
}

.tb-nav-link:hover {
    background: rgba(255, 255, 255, 0.72);
    color: var(--tb-black);
}

.tb-nav-link-title {
    flex: 1;
    min-width: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.tb-nav-link-title-text {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tb-nav-link--pinned {
    background: linear-gradient(90deg, rgba(253, 126, 20, 0.1) 0%, rgba(255, 255, 255, 0.72) 72%);
    border-radius: 6px;
    font-weight: 600;
}

.tb-nav-link--pinned:hover {
    background: linear-gradient(90deg, rgba(253, 126, 20, 0.16) 0%, rgba(255, 255, 255, 0.88) 72%);
}

/* PostX 배지 — 좌측 메뉴·메인 스크리닝·가이드 공통 (분석명 --tb-fs-nav 보다 작게) */
.tb-pill-badge {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 18px;
    padding: 0 6px;
    border-radius: 999px;
    font-family: var(--tb-font);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.05em;
    line-height: 1;
    white-space: nowrap;
    text-transform: uppercase;
    color: #fff !important;
    -webkit-text-fill-color: #fff;
    text-decoration: none !important;
    -webkit-font-smoothing: antialiased;
}

.tb-pill-badge--new {
    background: linear-gradient(180deg, #ef4444 0%, #dc2626 55%, #b91c1c 100%);
    border: 1px solid #991b1b;
    box-shadow:
        0 1px 3px rgba(185, 28, 28, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.tb-pill-badge--hot {
    background: linear-gradient(180deg, #fb923c 0%, var(--tb-accent) 55%, var(--tb-accent-dark) 100%);
    border: 1px solid #c2410c;
    box-shadow:
        0 1px 3px rgba(194, 65, 12, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.tb-pill-badge--best {
    background: linear-gradient(180deg, #34d399 0%, #10b981 55%, #059669 100%);
    border: 1px solid #047857;
    box-shadow:
        0 1px 3px rgba(5, 150, 105, 0.26),
        inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.tb-nav-section--postx .tb-nav-list--nested .tb-pill-badge {
    position: relative;
    top: 0;
    font-size: 10px;
    color: #fff !important;
    -webkit-text-fill-color: #fff;
    font-weight: 800;
}

/* 모바일 nav — pill이 링크 색을 물려받지 않도록 */
#navbarSupportedContent .tb-left-nav--mobile .tb-pill-badge {
    min-height: 18px;
    min-width: 28px;
    padding: 0 6px;
    font-size: 10px;
    color: #fff !important;
    -webkit-text-fill-color: #fff;
}

@media (max-width: 767px) {
    .tb-pill-badge {
        min-height: 18px;
        min-width: 28px;
        padding: 0 6px;
        font-size: 10px;
    }

    .tb-nav-link--pinned {
        padding: 0.35rem 0.4rem;
    }
}

.tb-nav-link-meta {
    flex-shrink: 0;
    font-size: var(--tb-fs-meta);
    font-weight: 700;
    color: var(--tb-muted);
    font-variant-numeric: tabular-nums;
}

.tb-nav-signal {
    flex-shrink: 0;
    min-width: 2.4rem;
    padding: 1px 5px;
    font-size: var(--tb-fs-meta);
    font-weight: 700;
    line-height: 1.35;
    text-align: right;
    border-radius: 4px;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.tb-nav-signal--ret.tb-nav-signal--pos {
    color: #dc3545;
    background: #fdecec;
}

.tb-nav-signal--ret.tb-nav-signal--neg {
    color: #0d6efd;
    background: #e9f0ff;
}

.tb-nav-signal--count,
.tb-nav-signal--na {
    color: #cbd5e1;
    background: transparent;
    font-weight: 600;
}

.tb-nav-signal--date,
.tb-nav-signal--label,
.tb-nav-signal--muted {
    color: var(--tb-muted);
    background: transparent;
    font-weight: 600;
}

.tb-has-tip {
    cursor: help;
}

.tb-nav-section--postx {
    padding-top: 2px;
}

.tb-nav-section--meta {
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eef2f6;
}

.tb-nav-section--meta .tb-nav-link {
    padding: 6px 0;
}

.tb-nav-link--easy-search .tb-nav-link-title {
    color: var(--tb-accent-dark);
    font-weight: 700;
}

.tb-nav-section--meta .tb-nav-sponsor {
    font-size: var(--tb-fs-meta);
    font-weight: 600;
    color: #94a3b8;
}

.tb-nav-link--guide .tb-nav-link-title {
    color: var(--tb-accent-dark);
    font-weight: 700;
}

.tb-nav-link--guide:hover .tb-nav-link-title {
    color: var(--tb-accent);
}

.tb-nav-item--split {
    display: flex;
    align-items: center;
    gap: 6px;
}

.tb-nav-link--grow {
    flex: 1;
    min-width: 0;
}

.tb-nav-guestbook-box {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 26px;
    padding: 2px 9px;
    border: 1px solid #cbd5e1;
    border-radius: 5px;
    background: #f8fafc;
    font-size: var(--tb-fs-meta);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #475569;
    text-decoration: none;
    line-height: 1.2;
    white-space: nowrap;
}

.tb-nav-guestbook-box:hover {
    border-color: var(--tb-accent);
    color: var(--tb-accent-dark);
    background: #fff7ed;
}

.tb-nav-guestbook-box--mobile {
    display: inline-flex;
    margin-left: 0.35rem;
    vertical-align: middle;
}

.tb-nav-link--notice .tb-nav-link-title {
    font-weight: 600;
}

.tb-nav-signal--notice {
    color: var(--tb-accent-dark);
    font-weight: 800;
    font-size: var(--tb-fs-label);
    letter-spacing: 0.02em;
}

.tb-notice-page-kicker {
    margin: 0.35rem 0 0;
    font-size: var(--tb-fs-meta);
    font-weight: 700;
    color: var(--tb-muted);
}

.tb-notice-page-link {
    display: inline-block;
    margin-left: 0.75rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--tb-accent-dark);
    text-decoration: none;
}

.tb-notice-page-link:hover {
    color: var(--tb-accent);
    text-decoration: underline;
}

/* ── 사이트 이용 가이드 ── */
.tb-guide-page {
    width: 100%;
    max-width: none;
    font-family: var(--tb-font);
    font-size: 1rem;
    line-height: 1.75;
    color: var(--tb-text);
    word-break: keep-all;
}

.tb-guide-head {
    margin-bottom: 2rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--tb-line);
}

.tb-guide-title {
    margin: 0.5rem 0 0.65rem;
    font-size: clamp(1.55rem, 3vw, 1.95rem);
    font-weight: 800;
    color: var(--tb-black);
    letter-spacing: -0.025em;
    line-height: 1.35;
}

.tb-guide-lead {
    margin: 0;
    font-size: 1.0625rem;
    line-height: 1.75;
    color: var(--tb-text-light);
}

.tb-guide-section {
    margin-bottom: 2.25rem;
}

.tb-guide-section--last {
    margin-bottom: 0;
}

.tb-guide-h2 {
    margin: 0 0 0.85rem;
    padding-bottom: 0.4rem;
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--tb-accent-dark);
    border-bottom: 2px solid #ffedd5;
    line-height: 1.4;
}

.tb-guide-h3 {
    margin: 1.35rem 0 0.55rem;
    font-size: 1.02rem;
    font-weight: 700;
    color: var(--tb-black);
    line-height: 1.45;
}

.tb-guide-section > p {
    margin: 0 0 0.85rem;
    font-size: 1rem;
    line-height: 1.75;
    color: var(--tb-text);
}

.tb-guide-list,
.tb-guide-steps,
.tb-guide-faq {
    margin: 0.35rem 0 0.85rem;
    padding-left: 1.35rem !important;
    font-size: 1rem;
    line-height: 1.75;
    color: var(--tb-text);
}

.tb-guide-steps {
    padding-left: 1.5rem !important;
}

.tb-guide-list li,
.tb-guide-steps li {
    margin-bottom: 0.55rem;
}

.tb-guide-list li:last-child,
.tb-guide-steps li:last-child {
    margin-bottom: 0;
}

.tb-guide-list code {
    font-size: 0.92em;
    padding: 0.12em 0.4em;
    border-radius: 4px;
    background: #f1f5f9;
    color: #475569;
}

.tb-guide-note {
    margin: 0.75rem 0 0;
    padding: 0.65rem 0.85rem;
    font-size: 0.9375rem;
    line-height: 1.65;
    color: var(--tb-text-light);
    background: var(--tb-bg-soft);
    border-radius: 6px;
    border-left: 3px solid #cbd5e1;
}

.tb-disqus-help {
    margin: 0 0 1.25rem;
    font-size: 0.9375rem;
    line-height: 1.65;
}

.tb-disqus-help-title {
    margin: 0 0 0.35rem;
}

.tb-disqus-help p {
    margin: 0 0 0.5rem;
}

.tb-disqus-help-list {
    margin: 0.5rem 0 0.65rem 1.15rem;
    padding: 0;
}

.tb-disqus-help-list li {
    margin-bottom: 0.35rem;
}

.tb-disqus-help-note {
    margin: 0.5rem 0 0 !important;
    font-size: var(--tb-fs-meta);
    color: var(--tb-muted);
}

.tb-disqus-reload-btn {
    display: inline;
    padding: 0 0.35rem;
    border: none;
    border-radius: 4px;
    background: transparent;
    font: inherit;
    font-weight: 700;
    color: var(--tb-accent-dark);
    text-decoration: underline;
    cursor: pointer;
}

.tb-disqus-reload-btn:hover {
    color: var(--tb-accent);
}

.tb-guestbook-page #disqus_thread {
    min-height: 120px;
}

.tb-guide-callout {
    margin-top: 1rem;
    margin-bottom: 0;
    font-size: 0.975rem;
    line-height: 1.7;
}

.tb-guide-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
    margin: 0.85rem 0 0.5rem;
}

@media (max-width: 575px) {
    .tb-guide-cards {
        grid-template-columns: 1fr;
    }
}

.tb-guide-card {
    padding: 0.75rem 0.85rem;
    background: var(--tb-bg-soft);
    border: 1px solid #e8edf2;
    border-radius: 8px;
}

.tb-guide-card-label {
    display: block;
    margin-bottom: 0.3rem;
    font-size: 0.8125rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: var(--tb-accent-dark);
}

.tb-guide-card p {
    margin: 0;
    font-size: 0.9375rem;
    line-height: 1.65;
    color: var(--tb-text-light);
}

.tb-guide-colors li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tb-guide-swatch {
    display: inline-block;
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
    flex-shrink: 0;
}

.tb-guide-swatch--orange { background: #fd7e14; }
.tb-guide-swatch--blue { background: #2563eb; }
.tb-guide-swatch--red { background: #dc2626; }
.tb-guide-swatch--purple { background: #7c3aed; }

.tb-guide-faq dt {
    margin-top: 0.85rem;
    font-weight: 700;
    color: var(--tb-black);
}

.tb-guide-faq dt:first-child {
    margin-top: 0;
}

.tb-guide-faq dd {
    margin: 0.25rem 0 0;
    padding-left: 0;
    color: var(--tb-text-light);
}

.tb-guide-footer {
    margin: 1.25rem 0 0;
}

.tb-guide-home-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.55rem 1.1rem;
    border-radius: 6px;
    font-size: 0.9375rem;
    font-weight: 700;
    color: #fff !important;
    text-decoration: none !important;
    background: var(--tb-accent);
    box-shadow: 0 2px 6px rgba(253, 126, 20, 0.25);
}

.tb-guide-home-btn:hover {
    background: var(--tb-accent-dark);
    color: #fff !important;
}

.tb-guide-page a:not(.tb-guide-home-btn) {
    color: var(--tb-accent-dark);
    font-weight: 600;
    text-decoration: none;
}

.tb-guide-page a:not(.tb-guide-home-btn):hover {
    color: var(--tb-accent);
    text-decoration: underline;
}

.tb-nav-empty {
    padding: 4px;
    font-size: var(--tb-fs-nav);
    color: var(--tb-muted);
}

/* ── PostX·구 post: 카테고리 그룹 (공통) ── */
.tb-nav-section--grouped {
    padding-top: 2px;
}

.tb-nav-section--grouped .tb-nav-category {
    margin-bottom: 10px;
    padding: 7px 8px 5px;
    background: rgba(255, 255, 255, 0.58);
    border-radius: 6px;
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.05);
}

.tb-nav-section--grouped .tb-nav-category:last-child {
    margin-bottom: 0;
}

.tb-nav-section--grouped .tb-nav-category-head {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    margin: 0 0 6px;
    padding: 2px 2px 7px;
    border: none;
    border-bottom: 1px solid rgba(15, 23, 42, 0.07);
    border-radius: 0;
    background: transparent;
    cursor: pointer;
    text-align: left;
    font-family: var(--tb-font);
    transition: color 0.12s ease;
}

.tb-nav-section--grouped .tb-nav-category-head:hover {
    background: transparent;
    color: var(--tb-black);
}

.tb-nav-section--grouped .tb-nav-category-head[aria-expanded="true"] {
    border-bottom-color: rgba(253, 126, 20, 0.22);
}

.tb-nav-section--postx .tb-nav-category-head--static {
    cursor: default;
    pointer-events: none;
}

.tb-nav-section--report .tb-nav-category-head--link {
    text-decoration: none;
    color: inherit;
}

.tb-nav-section--report .tb-nav-category-head--link:hover {
    color: var(--tb-black);
    background: rgba(100, 116, 139, 0.08);
}

.tb-nav-section--report .tb-nav-category-head--link .tb-nav-signal {
    flex-shrink: 0;
    margin-left: auto;
}

.tb-nav-category-hint {
    flex-shrink: 1;
    min-width: 0;
    margin-left: auto;
    max-width: 52%;
    font-size: var(--tb-fs-meta);
    font-weight: 600;
    color: #64748b;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: right;
}

.tb-nav-section--grouped .tb-nav-category-name {
    flex: 1;
    min-width: 0;
    font-size: var(--tb-fs-body);
    font-weight: 800;
    letter-spacing: -0.01em;
    color: #0f172a;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tb-nav-section--grouped .tb-nav-category-count {
    flex-shrink: 0;
    padding: 1px 7px;
    font-size: var(--tb-fs-label);
    font-weight: 700;
    color: #64748b;
    background: rgba(248, 250, 252, 0.95);
    border-radius: 999px;
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.06);
}

.tb-nav-section--grouped .tb-toggle-icon {
    flex-shrink: 0;
    font-size: var(--tb-fs-label);
    font-weight: 700;
    color: #94a3b8;
}

.tb-nav-list--nested {
    margin: 0;
    padding: 0 0 0 10px;
    border-left: 2px solid rgba(253, 126, 20, 0.28);
}

.tb-nav-list--nested .tb-nav-item {
    position: relative;
}

.tb-nav-list--nested .tb-nav-link {
    position: relative;
    padding: 4px 6px 4px 8px;
    font-size: var(--tb-fs-nav);
    font-weight: 400;
    color: #64748b;
    line-height: 1.4;
}

.tb-nav-list--nested .tb-nav-link::before {
    content: "";
    position: absolute;
    left: -10px;
    top: 50%;
    width: 4px;
    height: 1px;
    background: rgba(100, 116, 139, 0.45);
    transform: translateY(-50%);
}

.tb-nav-list--nested .tb-nav-link:hover {
    background: rgba(255, 255, 255, 0.85);
    color: #334155;
}

.tb-nav-list--nested .tb-nav-link-title {
    font-weight: 400;
    color: inherit;
}

.tb-nav-list--nested .tb-nav-link-meta {
    font-size: var(--tb-fs-meta);
    font-weight: 600;
    color: #b0bac7;
}

.tb-nav-list--nested .tb-nav-signal {
    min-width: 2.1rem;
    padding: 0 4px;
    font-size: var(--tb-fs-meta);
    font-weight: 700;
    line-height: 1.45;
}

.tb-nav-list--nested .tb-nav-signal--na {
    background: transparent;
}

/* ── 구 post (레거시 전용 보조) ── */
.tb-nav-section--legacy {
    padding-top: 0;
}

.tb-nav-item[hidden],
.tb-hidden-item[hidden] {
    display: none !important;
}

.tb-tag-filter-head .tag-ret-note {
    font-size: var(--tb-fs-label);
    line-height: 1.2;
}

/* ── 주간 투자 브리핑 ── */
#weekly-briefing-section {
    font-family: var(--tb-font);
    font-size: var(--tb-fs-nav);
    color: var(--tb-text);
    line-height: var(--tb-lh);
}

#weekly-briefing-section.tb-brief-section {
    --tb-brief-macro: #2563eb;
    --tb-brief-macro-soft: #eff6ff;
    --tb-brief-industry: #059669;
    --tb-brief-industry-soft: #ecfdf5;
    --tb-brief-earnings: #7c3aed;
    --tb-brief-earnings-soft: #f5f3ff;
    --tb-brief-panel-bg: linear-gradient(180deg, #fafbfd 0%, #ffffff 42%);
    --tb-brief-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 24px rgba(15, 23, 42, 0.05);
}

.tb-brief-week-badge {
    display: inline-flex;
    align-items: center;
    height: 24px;
    padding: 0 10px;
    margin-left: 4px;
    font-size: var(--tb-fs-meta);
    font-weight: 700;
    color: #9a3412;
    background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
    border: 1px solid #fed7aa;
    border-radius: 999px;
    letter-spacing: 0.01em;
    font-variant-numeric: tabular-nums;
}

#weekly-briefing-section .tb-brief-panel {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
}

#weekly-briefing-section .tb-brief-lastweek {
    margin-bottom: 0.95rem;
    padding: 0.9rem 1rem;
    background: #fff;
    border: 1px solid #e7edf4;
    border-left: 3px solid #64748b;
    border-radius: 10px;
    box-shadow: 0 1px 0 rgba(15, 23, 42, 0.03);
}

#weekly-briefing-section .tb-brief-lastweek-head {
    display: flex;
    align-items: baseline;
    gap: 0.45rem;
    margin-bottom: 0.5rem;
}

#weekly-briefing-section .tb-brief-lastweek-label {
    display: inline-flex;
    align-items: center;
    height: 20px;
    padding: 0 8px;
    font-size: var(--tb-fs-label);
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #475569;
    background: #f1f5f9;
    border-radius: 999px;
}

#weekly-briefing-section .tb-brief-lastweek-note {
    font-size: var(--tb-fs-meta);
    font-weight: 600;
    color: #94a3b8;
}

#weekly-briefing-section .tb-brief-lastweek-text {
    margin: 0;
    font-size: var(--tb-fs-nav);
    line-height: var(--tb-lh);
    color: var(--tb-text);
}

#weekly-briefing-section .tb-brief-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

@media (min-width: 992px) {
    #weekly-briefing-section .tb-brief-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.7rem;
    }
}

#weekly-briefing-section .tb-brief-col {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: 0;
    background: #fff;
    border: 1px solid #e7edf4;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 1px 0 rgba(15, 23, 42, 0.03);
}

#weekly-briefing-section .tb-brief-col-head {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin: 0;
    padding: 0.7rem 0.85rem;
    border-bottom: 1px solid #edf2f7;
    background: #fbfcfe;
}

#weekly-briefing-section .tb-brief-col-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    font-size: var(--tb-fs-label);
    font-weight: 900;
    border-radius: 6px;
    flex-shrink: 0;
}

#weekly-briefing-section .tb-brief-col--macro .tb-brief-col-badge {
    color: var(--tb-brief-macro);
    background: var(--tb-brief-macro-soft);
}

#weekly-briefing-section .tb-brief-col--industry .tb-brief-col-badge {
    color: var(--tb-brief-industry);
    background: var(--tb-brief-industry-soft);
}

#weekly-briefing-section .tb-brief-col--earnings .tb-brief-col-badge {
    color: var(--tb-brief-earnings);
    background: var(--tb-brief-earnings-soft);
}

#weekly-briefing-section .tb-brief-col-title {
    flex: 1;
    min-width: 0;
    font-size: var(--tb-fs-nav);
    font-weight: 800;
    color: var(--tb-black);
    line-height: 1.35;
    letter-spacing: -0.02em;
}

#weekly-briefing-section .tb-brief-col-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    font-size: var(--tb-fs-label);
    font-weight: 800;
    color: #64748b;
    background: #f1f5f9;
    border-radius: 999px;
    font-variant-numeric: tabular-nums;
}

#weekly-briefing-section .tb-brief-col--macro {
    border-top: 3px solid var(--tb-brief-macro);
}

#weekly-briefing-section .tb-brief-col--industry {
    border-top: 3px solid var(--tb-brief-industry);
}

#weekly-briefing-section .tb-brief-col--earnings {
    border-top: 3px solid var(--tb-brief-earnings);
}

#weekly-briefing-section .tb-brief-list {
    margin: 0;
    padding: 0.35rem 0.75rem 0.55rem;
    list-style: none;
    flex: 1;
}

#weekly-briefing-section .tb-brief-item {
    display: flex;
    gap: 0.55rem;
    padding: 0.65rem 0;
    border-bottom: 1px solid #f1f5f9;
}

#weekly-briefing-section .tb-brief-item:last-child {
    border-bottom: none;
    padding-bottom: 0.25rem;
}

#weekly-briefing-section .tb-brief-item-marker {
    width: 7px;
    height: 7px;
    margin-top: 0.45rem;
    border-radius: 50%;
    background: #cbd5e1;
    flex-shrink: 0;
}

#weekly-briefing-section .tb-brief-col--macro .tb-brief-item-marker {
    background: #93c5fd;
}

#weekly-briefing-section .tb-brief-col--industry .tb-brief-item-marker {
    background: #6ee7b7;
}

#weekly-briefing-section .tb-brief-col--earnings .tb-brief-item-marker {
    background: #c4b5fd;
}

#weekly-briefing-section .tb-brief-item-main {
    min-width: 0;
    flex: 1;
}

#weekly-briefing-section .tb-brief-item-head {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    align-items: flex-start;
}

#weekly-briefing-section .tb-brief-item-title {
    font-size: var(--tb-fs-nav);
    font-weight: 800;
    color: var(--tb-black);
    line-height: var(--tb-lh);
}

#weekly-briefing-section .tb-brief-col--macro .tb-brief-item-title {
    color: #1d4ed8;
}

#weekly-briefing-section .tb-brief-col--industry .tb-brief-item-title {
    color: #047857;
}

#weekly-briefing-section .tb-brief-col--earnings .tb-brief-item-title {
    color: #6d28d9;
}

#weekly-briefing-section .tb-brief-item-date {
    font-size: var(--tb-fs-label);
    font-weight: 700;
    color: #475569;
    background: #f8fafc;
    padding: 2px 7px;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    font-variant-numeric: tabular-nums;
    flex-shrink: 0;
    line-height: 1.35;
}

#weekly-briefing-section .tb-brief-item-date--ongoing {
    color: #9a3412;
    background: #fff7ed;
    border-color: #fed7aa;
}

#weekly-briefing-section .tb-brief-item-body {
    margin: 0.35rem 0 0;
    font-size: var(--tb-fs-nav);
    color: var(--tb-text-light);
    line-height: var(--tb-lh);
}

#weekly-briefing-section .tb-brief-em {
    color: var(--tb-accent);
    font-weight: 800;
}

#weekly-briefing-section .tb-brief-strategy {
    margin-top: 0.95rem;
    padding: 0.95rem 1rem 1rem;
    background: linear-gradient(135deg, #fff7ed 0%, #ffffff 55%);
    border: 1px solid #fed7aa;
    border-radius: 10px;
}

#weekly-briefing-section .tb-brief-strategy-head {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.45rem;
}

#weekly-briefing-section .tb-brief-strategy-icon {
    width: 24px;
    height: 24px;
    border-radius: 8px;
    background: linear-gradient(135deg, #fb923c 0%, #ea580c 100%);
    box-shadow: 0 2px 6px rgba(234, 88, 12, 0.25);
    position: relative;
    flex-shrink: 0;
}

#weekly-briefing-section .tb-brief-strategy-icon::after {
    content: "";
    position: absolute;
    inset: 7px 8px 7px 9px;
    border: 2px solid #fff;
    border-top: none;
    border-radius: 0 0 4px 4px;
}

#weekly-briefing-section .tb-brief-strategy-title {
    font-size: var(--tb-fs-nav);
    font-weight: 800;
    color: var(--tb-black);
    letter-spacing: -0.02em;
}

#weekly-briefing-section .tb-brief-strategy-body {
    margin: 0;
    font-size: var(--tb-fs-nav);
    color: var(--tb-text);
    line-height: var(--tb-lh);
}

@media (max-width: 767px) {
    #weekly-briefing-section .tb-section-head-left,
    .db-daily-brief .tb-section-head-left {
        flex-wrap: wrap;
        row-gap: 0.35rem;
    }

    #weekly-briefing-section .tb-brief-item-head {
        flex-direction: column;
        gap: 0.35rem;
    }
}

/* 구형 브리핑 HTML 정규화 */
.tb-main-panel #weekly-briefing-section.data-section,
.tb-main-panel .mindmap-card,
.tb-main-panel .mindmap-body {
    margin: 0;
    padding: 0;
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
}

.tb-main-panel .section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin: 0 0 var(--tb-head-pad) 0 !important;
    padding: 0 0 var(--tb-head-pad) 0 !important;
    border-bottom: 1px solid var(--tb-border) !important;
}

.tb-main-panel .title-bar {
    width: 4px;
    height: 16px;
    background: var(--tb-black);
    display: inline-block;
    margin-right: 0;
}

.tb-main-panel .custom-title,
.tb-main-panel .section-header h4 {
    font-family: var(--tb-font) !important;
    font-size: var(--tb-fs-title) !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    color: var(--tb-black) !important;
    margin: 0 !important;
    white-space: normal !important;
}

.tb-main-panel .mindmap-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

@media (min-width: 992px) {
    .tb-main-panel .mindmap-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.tb-main-panel .mindmap-item > div:first-child,
.tb-main-panel .mindmap-item > div[style*="border-bottom"] {
    font-size: var(--tb-fs-body) !important;
    font-weight: 800 !important;
    color: var(--tb-black) !important;
    border-bottom: 2px solid var(--tb-black) !important;
    margin: 0 0 10px 0 !important;
    padding: 0 0 6px 0 !important;
    display: inline-block !important;
    line-height: 1.3 !important;
    text-transform: none !important;
}

.tb-main-panel .mindmap-item > div:last-child {
    font-size: var(--tb-fs-body) !important;
    line-height: var(--tb-lh) !important;
    color: var(--tb-text-light) !important;
}

.tb-main-panel .mindmap-item b[style*="B4FD"],
.tb-main-panel .mindmap-item b[style*="b4fd"] {
    color: #5a9fd4 !important;
    font-weight: 800 !important;
    font-size: inherit !important;
    background: transparent !important;
}

.tb-main-panel .mindmap-item b[style*="fd7e14"],
.tb-main-panel .highlight-box b[style*="fd7e14"],
.tb-main-panel .mindmap-item strong,
.tb-main-panel .highlight-box strong {
    color: var(--tb-accent) !important;
    font-weight: 800 !important;
    font-size: inherit !important;
    background: transparent !important;
    padding: 0 !important;
    border-radius: 0 !important;
}

.tb-main-panel .highlight-box {
    margin-top: 0.85rem !important;
    padding: 14px 16px !important;
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-left: 3px solid var(--tb-accent) !important;
    border-radius: 6px !important;
}

.tb-main-panel .highlight-box > div:first-child {
    font-size: var(--tb-fs-body) !important;
    font-weight: 800 !important;
    color: var(--tb-black) !important;
    margin-bottom: 6px !important;
}

.tb-main-panel .highlight-box > div:last-child {
    font-size: var(--tb-fs-body) !important;
    line-height: var(--tb-lh) !important;
    color: var(--tb-text-light) !important;
}

/* ── 스크리닝 종목 순위 · AI 종목 순위 (앵커) ── */
#daily-brief {
    scroll-margin-top: 4.5rem;
}

#rank-section {
    scroll-margin-top: 4.5rem;
}

#ai-rank-section {
    scroll-margin-top: 6.75rem;
}

#ai-rank-section .tb-index-table {
    table-layout: auto;
}

#rank-section .tb-blog-table td:has(.swing-signal-tags) {
    white-space: normal !important;
    text-align: left !important;
    vertical-align: middle;
    min-width: 5.5rem;
    max-width: 7.25rem;
    padding: 6px 5px !important;
}

#rank-section .swing-signal-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    align-items: flex-start;
    width: 100%;
}

#rank-section a.tag-item.swing-signal-tag {
    display: inline-flex;
    align-items: center;
    margin: 0 !important;
    border: 1px solid #e5e7eb;
    background: var(--tb-bg-soft);
    color: var(--tb-text-light);
    font-size: var(--tb-fs-meta);
    font-weight: 600;
    padding: 3px 7px;
    border-radius: 4px;
    white-space: nowrap;
    text-decoration: none !important;
}

#rank-section .swing-key-news {
    font-size: var(--tb-fs-nav);
    font-weight: 500;
    color: var(--tb-text-light);
    line-height: var(--tb-lh);
}

#disqus_thread {
    margin-top: var(--tb-section-gap);
    padding-top: 1rem;
    border-top: 1px solid var(--tb-border);
}

@media (max-width: 767px) {
    .tb-notice-line {
        flex-direction: column;
        align-items: flex-start;
    }

    .tb-notice-body {
        min-width: 100%;
    }

    .tb-notice-action {
        width: 100%;
        text-align: right;
        margin-left: 0;
    }

    .tb-section-title {
        white-space: normal;
    }

    /* 메인 패널 — 모바일 단일 박스, 좌우 여백 최소화 */
    .tb-main-panel {
        padding: 0.7rem 0.55rem 0.9rem;
        border-left: none;
        border-right: none;
        border-radius: 0;
    }

    .tb-section-head {
        margin-bottom: 4px;
    }

    #postx-dashboard.db--dense {
        margin-bottom: 1.25rem;
    }
}

header.default-header .navbar-toggler {
    align-items: center;
    justify-content: center;
    border: 1px solid #e2e8f0;
    padding: 5px 9px;
    border-radius: 6px;
    box-shadow: none;
}

header.default-header .navbar-toggler:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(253, 126, 20, 0.2);
}

@media (max-width: 991px) {
    .tb-left-sidebar-col {
        display: none !important;
    }

    header.default-header .navbar-toggler {
        display: inline-flex !important;
    }
}

/* 가로 모드 — 좌우 여백 중간 (세로 모바일·PC 사이) */
@media (max-width: 991px) and (orientation: landscape) {
    header.default-header .navbar form[role="search"] {
        max-width: 32vw;
    }

    header.default-header .navbar form[role="search"] input {
        width: 100% !important;
        max-width: none !important;
        font-size: 0.82rem;
        padding: 0.25rem 0.45rem;
    }

    header.default-header .navbar form[role="search"] button {
        padding: 0.2rem 0.4rem;
    }

    header.default-header .container {
        max-width: 97% !important;
        padding-left: 8px !important;
        padding-right: 8px !important;
    }

    #google_translate_element {
        transform: scale(0.9);
        transform-origin: right center;
    }

    .post-wrapper.pt-30 {
        padding-top: 0.85rem !important;
    }

    .post-wrapper.pb-50 {
        padding-bottom: 1.1rem !important;
    }

    .post-wrapper .container {
        max-width: 97% !important;
        width: 100% !important;
        padding-left: 8px !important;
        padding-right: 8px !important;
    }

    .tb-layout-row {
        --bs-gutter-x: 0.65rem;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .tb-main-col {
        padding-left: 2px !important;
        padding-right: 2px !important;
        flex: 0 0 100% !important;
        max-width: 100% !important;
        width: 100% !important;
    }

    .tb-main-panel {
        padding: 0.65rem 0.5rem 0.75rem !important;
        border-left: 1px solid var(--tb-border-light);
        border-right: 1px solid var(--tb-border-light);
        border-radius: 3px;
    }

    .tb-main-panel .single-page-post {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    #postx-dashboard.db--dense {
        margin-bottom: 0.9rem;
    }

    .tb-section-head {
        margin-bottom: 3px;
    }
}

@media (min-width: 992px) {
    header.default-header .navbar-toggler {
        display: none !important;
    }
}

#navbarSupportedContent.tb-mobile-nav-panel.collapse:not(.show) {
    display: none !important;
}

#navbarSupportedContent.tb-mobile-nav-panel.collapse.show {
    display: block !important;
}

/* ── 햄버거 드로어 (태블릿·모바일 — PC 좌측 사이드바와 별도) ── */
#navbarSupportedContent.tb-mobile-nav-panel {
    flex-basis: 100%;
    width: 100%;
    max-height: calc(100dvh - 52px);
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    margin: 0.35rem 0 0;
    padding: 0.65rem 0 1rem;
    border-top: 1px solid #e8edf2;
    background: #f8fafc;
}

#navbarSupportedContent .tb-mobile-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

#navbarSupportedContent .navbar-nav {
    margin-top: 0 !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
}

#navbarSupportedContent .navbar-nav a {
    text-transform: none !important;
}

#navbarSupportedContent .tb-mobile-nav-meta .nav-link {
    display: block;
    padding: 5px 0 !important;
    font-size: var(--tb-fs-body) !important;
    font-weight: 500 !important;
    color: #64748b !important;
    line-height: 1.45;
    text-transform: none !important;
}

#navbarSupportedContent .tb-mobile-nav-meta .nav-link:first-child {
    font-weight: 700 !important;
    color: #334155 !important;
}

#navbarSupportedContent .tb-nav-sponsor {
    font-size: var(--tb-fs-meta);
    font-weight: 600;
    color: #94a3b8;
}

#navbarSupportedContent .tb-mobile-nav-meta .nav-link:hover {
    color: var(--tb-accent) !important;
}

#navbarSupportedContent .tb-mobile-nav-meta {
    margin-bottom: 0.85rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e2e8f0;
}

#navbarSupportedContent .tb-mobile-nav-body {
    margin: 0;
    padding: 0 !important;
}

.tb-nav-filter-wrap {
    position: sticky;
    top: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 0.75rem;
    padding-bottom: 0.65rem;
    border-bottom: 1px solid #e2e8f0;
    background: #f8fafc;
}

.tb-nav-filter-input {
    flex: 1;
    min-width: 0;
    height: 34px;
    padding: 0 10px;
    font-family: var(--tb-font);
    font-size: var(--tb-fs-nav);
    color: var(--tb-black);
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
}

.tb-nav-filter-input:focus {
    outline: none;
    border-color: var(--tb-accent);
    box-shadow: 0 0 0 2px rgba(253, 126, 20, 0.15);
}

.tb-nav-filter-clear {
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    padding: 0;
    font-size: 1.2rem;
    line-height: 1;
    color: #94a3b8;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    cursor: pointer;
}

.tb-left-nav--mobile.is-filtering .tb-nav-item.tb-nav-filter-hidden,
.tb-left-nav--mobile.is-filtering .tb-nav-category.tb-nav-filter-hidden,
.tb-left-nav--mobile.is-filtering .tb-nav-section.tb-nav-filter-hidden,
.tb-left-nav--mobile.is-filtering .tag-item.tb-nav-filter-hidden,
.tb-left-nav--mobile.is-filtering .tb-tag-group-label,
.tb-left-nav--mobile.is-filtering .tb-tag-group-divider {
    display: none !important;
}

.tb-left-nav--mobile.is-filtering .tb-nav-section--tags:not(.tb-nav-filter-hidden) .tag-item:not(.tb-nav-filter-show) {
    display: none !important;
}

.tb-left-nav--mobile.is-filtering .tag-item.tb-nav-filter-show {
    display: inline-flex !important;
}

.tb-left-nav--mobile.is-filtering .tb-nav-item.tb-nav-filter-show,
.tb-left-nav--mobile.is-filtering .tb-hidden-item.tb-nav-filter-show {
    display: block !important;
}

.tb-left-nav--mobile.is-filtering .tb-hidden-item.tb-nav-filter-show[hidden] {
    display: block !important;
}

#navbarSupportedContent .tb-left-nav--mobile a.tb-nav-link {
    padding: 8px 0 !important;
    text-transform: none !important;
    font-weight: 500 !important;
}

.tb-left-nav--mobile .tb-nav-section,
.tb-left-nav--mobile .tb-nav-category,
.tb-left-nav--mobile .tb-nav-list,
.tb-left-nav--mobile .tb-nav-list--nested,
.tb-left-nav--mobile .tb-nav-item {
    margin-left: 0;
    padding-left: 0;
}

.tb-left-nav--mobile .tb-nav-head .tb-section-title {
    font-size: var(--tb-fs-subtitle) !important;
    font-weight: 700 !important;
    text-transform: none !important;
    letter-spacing: -0.01em;
}

.tb-left-nav--mobile .tb-nav-section {
    margin-bottom: 0.85rem;
    padding-bottom: 0.65rem;
    border-bottom: 1px solid #e8edf2;
}

.tb-left-nav--mobile .tb-nav-section:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.tb-left-nav--mobile .tb-nav-head {
    margin-bottom: 4px;
    padding-bottom: 4px;
    border-bottom: none;
}

.tb-left-nav--mobile .tb-nav-section--grouped .tb-nav-category {
    margin-bottom: 0.35rem;
    padding: 0;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
}

.tb-left-nav--mobile .tb-nav-section--grouped .tb-nav-category:last-child {
    margin-bottom: 0;
}

.tb-left-nav--mobile .tb-nav-section--grouped .tb-nav-category-head {
    margin-bottom: 0;
    padding: 6px 0 4px;
    border-bottom: none;
}

.tb-left-nav--mobile .tb-nav-section--grouped .tb-nav-category-name {
    font-size: var(--tb-fs-meta);
    font-weight: 700;
    color: var(--tb-accent-dark);
}

.tb-left-nav--mobile .tb-nav-category-hint {
    font-size: var(--tb-fs-label);
    max-width: 48%;
    color: #94a3b8;
}

.tb-left-nav--mobile .tb-nav-list--nested {
    margin: 0;
    padding: 0 !important;
    border-left: none;
}

.tb-left-nav--mobile .tb-nav-list--nested .tb-nav-link {
    padding: 7px 0 !important;
}

.tb-left-nav--mobile .tb-nav-link-title {
    font-size: inherit;
    font-weight: inherit;
    color: inherit;
}

.tb-left-nav--mobile .tb-nav-signal {
    font-size: var(--tb-fs-meta);
    font-weight: 600;
}

.tb-left-nav--mobile .tb-nav-item:last-child .tb-nav-link {
    border-bottom: none;
}

.tb-left-nav--mobile .tb-nav-list--nested .tb-nav-link::before {
    display: none;
}

.tb-left-nav--mobile .tb-nav-link {
    padding: 8px 0 !important;
    border-bottom: 1px solid #eef2f6;
    border-radius: 0;
    font-family: var(--tb-font);
    font-size: var(--tb-fs-nav) !important;
    font-weight: 500 !important;
    color: #475569 !important;
    text-transform: none !important;
    line-height: 1.45;
}

.tb-left-nav--mobile .tb-tag-filter-head {
    border-bottom-color: #e2e8f0 !important;
}

.tb-left-nav--mobile .tb-tag-group-divider {
    border-top-color: #e8edf2 !important;
}

/* ── PostX 상세 (view.html) ── */
.tb-postx-article {
    --tb-postx-rail: 4px;
    --tb-postx-rail-gap: 10px;
    font-family: var(--tb-font);
    color: var(--tb-black);
}

.tb-postx-header {
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--tb-border);
}

.tb-postx-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.tb-postx-head-main {
    display: flex;
    align-items: stretch;
    gap: var(--tb-postx-rail-gap);
    min-width: 0;
    flex: 1;
}

.tb-postx-head-main > .tb-title-bar {
    width: var(--tb-postx-rail);
    height: auto;
    min-height: 2.5rem;
    align-self: stretch;
    flex-shrink: 0;
}

.tb-postx-head-stack {
    min-width: 0;
    flex: 1;
}

.tb-postx-kicker {
    display: block;
    margin-bottom: 4px;
    font-size: var(--tb-fs-meta);
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--tb-accent-dark);
}

.tb-postx-title {
    margin: 0 !important;
    font-size: clamp(1.15rem, 2.4vw, 1.45rem) !important;
    font-weight: 800 !important;
    line-height: 1.35 !important;
    letter-spacing: -0.02em;
    color: var(--tb-black) !important;
    word-break: keep-all;
}

.tb-postx-head-badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    flex-shrink: 0;
}

.tb-postx-badge {
    display: inline-flex;
    align-items: center;
    height: 22px;
    padding: 0 8px;
    border-radius: 4px;
    font-size: var(--tb-fs-meta);
    font-weight: 700;
    letter-spacing: 0.02em;
}

.tb-postx-badge--dev {
    color: #92400e;
    background: #fef3c7;
    border: 1px solid #fde68a;
}

.tb-postx-signal {
    display: inline-flex;
    align-items: center;
    min-width: 2.6rem;
    height: 24px;
    padding: 0 8px;
    border-radius: 4px;
    font-size: var(--tb-fs-meta);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
}

.tb-postx-signal--ret.tb-postx-signal--pos {
    color: #dc3545;
    background: #fdecec;
    border: 1px solid rgba(220, 53, 69, 0.12);
}

.tb-postx-signal--ret.tb-postx-signal--neg {
    color: #0d6efd;
    background: #e9f0ff;
    border: 1px solid rgba(13, 110, 253, 0.12);
}

.tb-postx-signal--count {
    color: #64748b;
    background: var(--tb-bg-soft);
    border: 1px solid #e2e8f0;
}

.tb-postx-signal--date,
.tb-postx-signal--label,
.tb-postx-signal--muted {
    color: var(--tb-muted);
    background: transparent;
    border: 1px solid #e2e8f0;
}

.tb-postx-meta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 14px;
    margin-top: 8px;
    font-size: var(--tb-fs-meta);
    color: var(--tb-text-light);
}

.tb-postx-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.tb-postx-meta-ref {
    gap: 5px;
}

.tb-postx-meta-ref-val {
    display: inline-block;
    padding: 1px 7px;
    border-radius: 4px;
    background: #eef2ff;
    color: #3730a3;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    line-height: 1.35;
}

.tb-postx-meta-label {
    color: var(--tb-muted);
    font-weight: 600;
    margin-right: 2px;
}

.tb-postx-summary {
    margin-top: 12px;
    margin-bottom: 0;
    font-size: var(--tb-fs-body);
    line-height: var(--tb-lh);
    border-left: 1px solid #e2e8f0;
}

.tb-postx-related {
    margin-top: 1rem;
    padding-top: 0.85rem;
    border-top: 1px dashed var(--tb-border);
}

.tb-postx-related-head {
    margin-bottom: 0.55rem;
}

.tb-postx-related-kicker {
    font-size: var(--tb-fs-meta);
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--tb-muted);
}

.tb-postx-related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
    gap: 10px;
}

.tb-postx-related-card {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-height: 100%;
    padding: 12px 14px;
    border: 1px solid var(--tb-border);
    border-radius: 10px;
    background: linear-gradient(135deg, #fff 0%, #f8fafc 100%);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    text-decoration: none !important;
    color: inherit;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.tb-postx-related-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
    transform: translateY(-1px);
}

.tb-postx-related-card-tag {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--tb-related-accent, var(--tb-accent-dark));
}

.tb-postx-related-card-title {
    font-size: 0.92rem;
    font-weight: 800;
    line-height: 1.35;
    color: var(--tb-black);
    word-break: keep-all;
}

.tb-postx-related-card-summary {
    font-size: 0.78rem;
    line-height: 1.45;
    color: var(--tb-muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tb-postx-dev-note {
    margin: 10px 0 0;
    font-size: var(--tb-fs-meta);
    color: var(--tb-muted);
}

.tb-postx-body {
    font-size: var(--tb-fs-body);
    line-height: var(--tb-lh);
    color: var(--tb-text);
}

/* legacy blog post — 제목·본문 좌측 라인 일치 (markdown.css center 제거) */
.tb-main-panel .tb-blog-post-head {
    margin: 0 0 var(--tb-head-pad);
    padding: 0 0 var(--tb-head-pad);
    border-bottom: 1px solid var(--tb-border);
}

.tb-main-panel .tb-blog-post-head .tb-postx-head-main {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.tb-main-panel .tb-blog-post-title {
    margin: 0;
    font-family: var(--tb-font);
    font-size: var(--tb-fs-title);
    font-weight: 700;
    line-height: 1.3;
    color: var(--tb-accent);
}

.tb-main-panel .tb-blog-body.post-content {
    max-width: none;
    margin: 0;
    padding: 0;
    text-align: left;
}

.tb-main-panel .tb-blog-body.post-content > h3:first-child {
    margin-top: 0.85rem !important;
}

.tb-main-panel .tb-blog-body.post-content h3 {
    font-family: var(--tb-font);
    font-size: var(--tb-fs-nav);
    font-weight: 800;
    color: var(--tb-black);
    margin: 1.35rem 0 0.55rem !important;
    padding: 0;
    border: none;
}

.tb-main-panel .tb-blog-body.post-content p,
.tb-main-panel .tb-blog-body.post-content ul,
.tb-main-panel .tb-blog-body.post-content ol {
    font-size: var(--tb-fs-body);
    line-height: 1.7;
    color: var(--tb-text);
}

.tb-main-panel .tb-blog-body.post-content table {
    width: 100%;
    margin: 0.5rem 0 1rem;
}

.tb-main-panel .tb-blog-body.post-content th,
.tb-main-panel .tb-blog-body.post-content td {
    font-size: var(--tb-fs-body);
    padding: 0.45rem 0.55rem;
}

.tb-main-panel .tb-blog-body.post-content strong {
    color: var(--tb-accent-dark);
}

/* markdown.css post-content — PostX 본문은 전폭·좌정렬 (헤더와 동일 축) */
.tb-main-panel .tb-postx-body.post-content {
    max-width: none;
    margin: 0;
    padding: 0;
    text-align: left;
}

.tb-main-panel .tb-postx-body.post-content h2,
.tb-main-panel .tb-postx-body.post-content h3,
.tb-main-panel .tb-postx-body.post-content h4 {
    font-family: var(--tb-font);
}

.tb-main-panel .tb-postx-body.post-content h2 {
    display: flex;
    align-items: center;
    gap: var(--tb-postx-rail-gap);
    margin: 1.75rem 0 0.75rem !important;
    padding: 0 0 8px !important;
    border-bottom: 1px solid var(--tb-border) !important;
    font-size: var(--tb-fs-title) !important;
    font-weight: 700 !important;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--tb-black) !important;
}

.tb-main-panel .tb-postx-body.post-content > h2:first-child {
    margin-top: 0.25rem !important;
}

.tb-main-panel .tb-postx-body.post-content h2::before {
    content: '';
    width: var(--tb-postx-rail);
    height: 16px;
    background: var(--tb-black);
    border-radius: 1px;
    flex-shrink: 0;
}

.tb-main-panel .tb-postx-body.post-content h3 {
    display: flex;
    align-items: center;
    gap: var(--tb-postx-rail-gap);
    margin: 2.25rem 0 1rem !important;
    padding: 10px 12px 11px;
    background: #fafbfc;
    border: 1px solid #e8edf2;
    border-bottom: 2px solid var(--tb-accent);
    border-radius: 4px;
    font-size: var(--tb-fs-body) !important;
    font-weight: 700 !important;
    color: #1e293b !important;
    line-height: 1.35;
}

.tb-main-panel .tb-postx-body.post-content h2 + h3 {
    margin-top: 1.35rem !important;
}

.tb-main-panel .tb-postx-body.post-content h3::before {
    content: '';
    width: var(--tb-postx-rail);
    height: 14px;
    background: var(--tb-accent);
    border-radius: 1px;
    flex-shrink: 0;
}

.tb-main-panel .tb-postx-body.post-content h4 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 1.15rem 0 0.55rem calc(var(--tb-postx-rail) + var(--tb-postx-rail-gap)) !important;
    padding: 0 0 7px;
    border-bottom: 1px solid #e2e8f0;
    font-size: var(--tb-fs-body) !important;
    font-weight: 700 !important;
    color: #334155 !important;
    line-height: 1.35;
}

.tb-main-panel .tb-postx-body.post-content h3 + h4 {
    margin-top: 0.65rem !important;
}

.tb-main-panel .tb-postx-body.post-content h4::before {
    content: '';
    width: 3px;
    height: 12px;
    background: var(--tb-accent);
    border-radius: 1px;
    flex-shrink: 0;
}

.tb-main-panel .tb-postx-body.post-content h3 + p,
.tb-main-panel .tb-postx-body.post-content h3 + ul,
.tb-main-panel .tb-postx-body.post-content h3 + ol,
.tb-main-panel .tb-postx-body.post-content h4 + p,
.tb-main-panel .tb-postx-body.post-content h4 + ul,
.tb-main-panel .tb-postx-body.post-content h4 + ol {
    margin-top: 0.15rem;
}

.tb-main-panel .tb-postx-body.post-content p,
.tb-main-panel .tb-postx-body.post-content ul,
.tb-main-panel .tb-postx-body.post-content ol {
    margin-bottom: 0.65rem;
    padding-left: calc(var(--tb-postx-rail) + var(--tb-postx-rail-gap));
    color: var(--tb-text);
}

.tb-main-panel .tb-postx-body.post-content ul,
.tb-main-panel .tb-postx-body.post-content ol {
    margin-top: 0.35rem;
}

.tb-main-panel .tb-postx-body.post-content strong {
    color: #1e293b;
    font-weight: 700;
}

.tb-main-panel .tb-postx-body.post-content blockquote {
    margin: 0.65rem 0 1rem;
    padding: 10px 14px 10px calc(var(--tb-postx-rail) + var(--tb-postx-rail-gap) + 6px);
    border: none;
    border-left: 3px solid #cbd5e1;
    background: #f8fafc;
    border-radius: 0 4px 4px 0;
    color: var(--tb-text-light);
    font-style: normal;
    font-size: var(--tb-fs-body);
    box-shadow: none;
}

.tb-postx-tags {
    margin-top: 2rem;
    padding-top: 1.25rem;
    border-top: 1px dashed #e2e8f0;
}

.tb-postx-tags-head {
    margin-bottom: 10px;
    padding-bottom: 0;
    border-bottom: none;
}

.tb-postx-tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 8px;
}

@media (max-width: 767px) {
    .tb-postx-head {
        flex-direction: column;
        gap: 8px;
    }

    .tb-postx-head-badges {
        justify-content: flex-start;
    }

    .tb-postx-title {
        font-size: 1.12rem !important;
    }
}

/* ── 검색 결과 (search.html) ── */
.tb-search-page {
    font-family: var(--tb-font);
    color: var(--tb-black);
}

.tb-search-page .tb-section-title {
    font-size: var(--tb-fs-title) !important;
    text-transform: uppercase;
}

.tb-search-desc {
    margin: 0 0 1rem;
    font-size: var(--tb-fs-body);
    color: var(--tb-text-light);
    line-height: var(--tb-lh);
}

.tb-search-form {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: stretch;
    max-width: 36rem;
}

.tb-search-input {
    flex: 1 1 12rem;
    min-width: 0;
    height: 36px;
    padding: 0 12px;
    font-family: var(--tb-font);
    font-size: var(--tb-fs-body);
    color: var(--tb-black);
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    transition: border-color 0.12s ease;
}

.tb-search-input:focus {
    outline: none;
    border-color: var(--tb-accent);
    box-shadow: 0 0 0 2px rgba(253, 126, 20, 0.15);
}

.tb-search-submit {
    height: 36px;
    padding: 0 14px;
    font-family: var(--tb-font);
    font-size: var(--tb-fs-btn);
    font-weight: 700;
    color: #64748b;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.12s ease, border-color 0.12s ease, color 0.12s ease;
}

.tb-search-submit:hover {
    background: var(--tb-bg-soft);
    border-color: #cbd5e1;
    color: #334155;
}

.tb-search-meta {
    margin: 0 0 0.85rem;
    font-size: var(--tb-fs-body);
    color: var(--tb-muted);
    line-height: var(--tb-lh);
}

.tb-search-meta strong {
    color: var(--tb-text);
    font-weight: 700;
}

.tb-search-meta--warn {
    color: #b45309;
}

.tb-search-list {
    border-top: 2px solid var(--tb-table-head);
}

.tb-search-item {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid #eef2f6;
    text-decoration: none !important;
    color: inherit;
    transition: background 0.1s ease;
}

.tb-search-item:last-child {
    border-bottom: 1px solid var(--tb-table-head);
}

.tb-search-item:hover {
    background: #fffaf5;
}

.tb-search-item-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 6px 10px;
    margin-bottom: 4px;
}

.tb-search-kind {
    display: inline-flex;
    align-items: center;
    height: 20px;
    padding: 0 7px;
    font-size: var(--tb-fs-label);
    font-weight: 700;
    letter-spacing: 0.02em;
    border-radius: 4px;
}

.tb-search-kind--postx {
    color: var(--tb-accent-dark);
    background: #fff7ed;
    border: 1px solid rgba(253, 126, 20, 0.2);
}

.tb-search-kind--post {
    color: #64748b;
    background: var(--tb-bg-soft);
    border: 1px solid #e2e8f0;
}

.tb-search-date {
    font-size: var(--tb-fs-meta);
    font-weight: 600;
    color: var(--tb-muted);
    font-variant-numeric: tabular-nums;
}

.tb-search-title {
    margin: 0 0 4px !important;
    font-size: var(--tb-fs-subtitle) !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    color: var(--tb-black) !important;
    word-break: keep-all;
}

.tb-search-item:hover .tb-search-title {
    color: var(--tb-accent-dark) !important;
}

.tb-search-snippet {
    margin: 0;
    font-size: var(--tb-fs-nav);
    line-height: 1.55;
    color: var(--tb-text-light);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tb-search-empty {
    margin: 0;
    padding: 1.25rem 0;
    font-size: var(--tb-fs-body);
    color: var(--tb-muted);
    text-align: center;
}

@media (max-width: 767px) {
    .tb-search-form {
        max-width: none;
    }

    .tb-search-submit {
        flex: 0 0 auto;
    }

    .tb-search-item {
        padding: 10px 0;
    }

    .tb-search-title {
        font-size: var(--tb-fs-body) !important;
    }
}

/* ── 쉬운 종목 검색 (/topics — 버튼·검색·하단 결과) ── */
.tb-easy-search .tb-section {
    margin-bottom: 0;
}

.tb-easy-search-panel {
    margin-bottom: 1rem;
}

.tb-easy-search-head {
    margin-bottom: 0.35rem;
}

.tb-easy-search-intro {
    margin: 0 0 0.25rem;
}

.tb-easy-search-note {
    margin: 0 0 0 !important;
}

.tb-easy-search-block {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid #eef2f6;
}

.tb-easy-search-block--search {
    margin-top: 0.65rem;
}

.tb-easy-search-block--topics {
    padding-bottom: 0;
}

.tb-easy-search-label {
    margin: 0 0 0.4rem;
    font-size: var(--tb-fs-meta);
    font-weight: 700;
    color: var(--tb-muted);
    text-transform: none;
    letter-spacing: 0;
}

.tb-topic-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 8px;
}

.tb-topic-chip {
    display: inline-block;
    padding: 6px 12px;
    font-size: var(--tb-fs-meta);
    font-weight: 700;
    color: var(--tb-text);
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    text-decoration: none !important;
    white-space: nowrap;
    transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.tb-topic-chip:hover {
    border-color: rgba(253, 126, 20, 0.45);
    background: #fffaf5;
    color: var(--tb-accent-dark);
}

.tb-topic-chip--active {
    color: #fff;
    background: var(--tb-accent);
    border-color: var(--tb-accent);
}

.tb-topic-chip--active:hover {
    color: #fff;
    background: var(--tb-accent-dark);
    border-color: var(--tb-accent-dark);
}

.tb-easy-search-output {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 2px solid var(--tb-table-head);
}

.tb-topic-guide-box--live {
    margin: 0 0 0.75rem;
    animation: tb-easy-search-fade-in 0.2s ease-out;
}

@keyframes tb-easy-search-fade-in {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tb-easy-search-results .tb-search-meta {
    margin: 0 0 0.5rem;
}

.tb-easy-search-idle {
    margin: 0;
    padding: 0.15rem 0;
    font-size: var(--tb-fs-meta);
    color: var(--tb-muted);
    text-align: center;
}

.tb-easy-search-promo {
    padding: 14px 16px;
    background: linear-gradient(135deg, #fffaf5 0%, #fff 100%);
    border: 1px solid rgba(253, 126, 20, 0.22);
    border-radius: 10px;
}

.tb-easy-search-promo-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.tb-easy-search-promo-title {
    margin: 0;
    font-size: var(--tb-fs-subtitle);
    font-weight: 700;
    color: var(--tb-text);
}

.tb-easy-search-promo-desc {
    margin: 0 0 12px;
    font-size: var(--tb-fs-body);
    line-height: 1.55;
    color: var(--tb-text-light);
}

.tb-easy-search-promo-desc strong {
    color: var(--tb-accent-dark);
    font-weight: 700;
}

.tb-easy-search-promo-btn {
    display: inline-block;
    padding: 8px 16px;
    font-size: var(--tb-fs-body);
    font-weight: 700;
    color: #fff !important;
    background: var(--tb-accent);
    border-radius: 8px;
    text-decoration: none !important;
    transition: background 0.15s, transform 0.1s;
}

.tb-easy-search-promo-btn:hover {
    background: var(--tb-accent-dark);
    transform: translateY(-1px);
}

.tb-section--easy-search {
    margin-top: 0.5rem;
}

.tb-search-meta--muted {
    color: var(--tb-muted) !important;
    font-weight: 500 !important;
}

.tb-topic-picker-group {
    margin-top: 0.15rem;
}

.tb-topic-picker-group-title {
    margin: 0 0 0.6rem;
    font-size: var(--tb-fs-body);
    font-weight: 700;
    color: var(--tb-text-light);
}

.tb-topic-picker {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 10px;
}

.tb-topic-picker-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 14px 16px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    text-decoration: none !important;
    color: inherit;
    transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}

.tb-topic-picker-card:hover {
    border-color: rgba(253, 126, 20, 0.45);
    background: #fffaf5;
    box-shadow: 0 3px 10px rgba(15, 23, 42, 0.06);
}

.tb-topic-picker-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.tb-topic-picker-card-kicker {
    font-size: var(--tb-fs-meta);
    font-weight: 700;
    color: var(--tb-accent-dark);
}

.tb-topic-picker-card-arrow {
    font-size: var(--tb-fs-meta);
    font-weight: 700;
    color: var(--tb-muted);
    transition: transform 0.15s, color 0.15s;
}

.tb-topic-picker-card:hover .tb-topic-picker-card-arrow {
    color: var(--tb-accent-dark);
    transform: translateX(2px);
}

.tb-topic-picker-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--tb-text);
    line-height: 1.35;
}

.tb-topic-picker-card-guide {
    font-size: var(--tb-fs-body);
    color: var(--tb-text-light);
    line-height: 1.5;
}

.tb-topic-guide-box {
    margin: 0 0 0.75rem;
    padding: 12px 14px;
    background: linear-gradient(135deg, #fffaf5 0%, #fff 100%);
    border: 1px solid rgba(253, 126, 20, 0.18);
    border-radius: 8px;
}

.tb-topic-guide-label {
    margin: 0 0 4px;
    font-size: var(--tb-fs-meta);
    font-weight: 700;
    color: var(--tb-accent-dark);
}

.tb-topic-guide-title {
    margin: 0 0 6px;
    font-size: var(--tb-fs-body);
    font-weight: 700;
    color: var(--tb-text);
}

.tb-topic-guide-text {
    margin: 0;
    font-size: var(--tb-fs-body);
    line-height: 1.6;
    color: var(--tb-text-light);
}

.tb-section-title--sub {
    font-size: var(--tb-fs-subtitle) !important;
}

.tb-topic-breadcrumb {
    margin: 0 0 0.65rem;
    font-size: var(--tb-fs-meta);
    color: var(--tb-muted);
}

.tb-topic-breadcrumb a {
    color: var(--tb-accent-dark);
    font-weight: 600;
    text-decoration: none;
}

.tb-topic-breadcrumb a:hover {
    text-decoration: underline;
}

.tb-topic-linked-postx {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0 0 0.5rem;
}

.tb-topic-linked-postx-chip {
    display: inline-block;
    padding: 2px 10px;
    font-size: var(--tb-fs-meta);
    font-weight: 600;
    color: var(--tb-text-light);
    background: var(--tb-bg-soft);
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    text-decoration: none !important;
}

.tb-topic-linked-postx-chip:hover {
    color: var(--tb-accent-dark);
    border-color: rgba(253, 126, 20, 0.35);
    background: #fffaf5;
}

/* ── 주제 허브 (topics — search 결과와 동일 토큰) ── */
.tb-topic-nav {
    margin: 0 0 0.85rem;
}

.tb-topic-nav-meta {
    margin-bottom: 0.85rem !important;
}

.tb-topic-nav-meta a {
    color: var(--tb-muted);
    font-weight: 600;
    text-decoration: none;
}

.tb-topic-nav-meta a:hover {
    color: var(--tb-accent-dark);
}

.tb-topic-nav-meta a.tb-topic-nav-active {
    color: var(--tb-text);
    font-weight: 700;
}

.tb-topic-item:hover {
    background: #fffaf5;
}

.tb-topic-item-link {
    display: block;
    text-decoration: none !important;
    color: inherit;
}

.tb-topic-item-link:hover .tb-search-title {
    color: var(--tb-accent-dark) !important;
}

.tb-topic-item-labels {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.tb-topic-item-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.tb-topic-stocks {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
}

.tb-topic-stock-chip {
    display: inline-block;
    padding: 1px 8px;
    font-size: var(--tb-fs-meta);
    font-weight: 600;
    color: var(--tb-text-light);
    background: var(--tb-bg-soft);
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    text-decoration: none !important;
}

a.tb-topic-stock-chip:hover {
    color: var(--tb-accent-dark);
    border-color: rgba(253, 126, 20, 0.35);
    background: #fffaf5;
}

.tb-topic-tags {
    margin-top: 4px;
    font-size: var(--tb-fs-meta);
    color: var(--tb-muted);
}

.tb-search-meta a {
    color: var(--tb-accent-dark);
    font-weight: 600;
    text-decoration: none;
}

.tb-search-meta a:hover {
    text-decoration: underline;
}

@media (max-width: 767px) {
    .tb-topic-item {
        padding: 10px 0;
    }
}

/* ── 메인 스포트라이트 (tbacking-layout — 모바일 캐시·별도 CSS 누락 대비) ── */
.db-report-spotlight-wrap {
    margin-bottom: var(--tb-section-gap);
}

.db-report-spotlight {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 14px;
    background: #fff;
    border: 1px solid #e2e8f0;
    box-shadow:
        0 1px 2px rgba(15, 23, 42, 0.04),
        0 8px 24px rgba(15, 23, 42, 0.06);
    text-decoration: none !important;
    color: #0f172a !important;
    -webkit-tap-highlight-color: transparent;
    transition: box-shadow 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
}

.db-report-spotlight:hover {
    border-color: #cbd5e1;
    box-shadow:
        0 2px 4px rgba(15, 23, 42, 0.05),
        0 14px 32px rgba(15, 23, 42, 0.1);
    transform: translateY(-2px);
    color: #0f172a !important;
}

.db-report-spotlight__bar {
    display: block;
    height: 3px;
    background: linear-gradient(
        90deg,
        var(--tb-accent, #fd7e14) 0%,
        #f59e0b 38%,
        #2563eb 100%
    );
}

.db-report-spotlight__inner {
    padding: 16px 18px 18px;
    background:
        radial-gradient(ellipse 120% 80% at 100% 0%, rgba(253, 126, 20, 0.07) 0%, transparent 55%),
        radial-gradient(ellipse 90% 70% at 0% 100%, rgba(37, 99, 235, 0.05) 0%, transparent 50%),
        #fff;
}

.db-report-spotlight__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 10px;
    margin-bottom: 10px;
}

.db-report-spotlight__head .tb-pill-badge--new {
    position: relative;
    top: -1px;
}

.db-report-spotlight__badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #334155;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
}

.db-report-spotlight__signal {
    padding: 2px 8px;
    font-size: var(--tb-fs-meta);
    font-weight: 700;
    border-radius: 6px;
    font-variant-numeric: tabular-nums;
}

.db-report-spotlight__title {
    margin: 0;
    font-size: clamp(1.05rem, 2.8vw, 1.28rem);
    font-weight: 800;
    color: #0f172a;
    line-height: 1.32;
    letter-spacing: -0.02em;
}

.db-report-spotlight__summary {
    margin: 8px 0 0;
    font-size: var(--tb-fs-meta);
    font-weight: 500;
    color: #64748b;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.db-report-spotlight__foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 16px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px dashed #e2e8f0;
}

.db-report-spotlight__stats {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px 14px;
    min-width: 0;
}

.db-report-spotlight__stat {
    font-size: 12px;
    font-weight: 600;
    color: #94a3b8;
    white-space: nowrap;
}

.db-report-spotlight__stat strong {
    margin-right: 4px;
    font-size: 15px;
    font-weight: 800;
    color: #0f172a;
    font-variant-numeric: tabular-nums;
}

.db-report-spotlight__btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    border-radius: 999px;
    font-size: var(--tb-fs-meta);
    font-weight: 800;
    color: #fff !important;
    background: linear-gradient(135deg, var(--tb-accent, #fd7e14) 0%, #ea580c 100%);
    box-shadow: 0 2px 8px rgba(253, 126, 20, 0.35);
    transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.db-report-spotlight:hover .db-report-spotlight__btn {
    box-shadow: 0 4px 14px rgba(253, 126, 20, 0.45);
}

@media (max-width: 520px) {
    .db-report-spotlight__inner {
        padding: 14px 14px 16px;
    }

    .db-report-spotlight__foot {
        flex-direction: column;
        align-items: stretch;
    }

    .db-report-spotlight__btn {
        width: 100%;
        text-align: center;
    }
}
