@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.min.css');

html.ds-theme {
    --ds-navy: #0b3d91;
    --ds-navy-deep: #082a66;
    --ds-blue: #2563eb;
    --ds-blue-soft: #eff4ff;
    --ds-up: #10b981;
    --ds-up-soft: #ecfdf5;
    --ds-down: #ef4444;
    --ds-down-soft: #fef2f2;
    --ds-bg: #f8fafc;
    --ds-card: #ffffff;
    --ds-border: #e5eaf1;
    --ds-text: #0f172a;
    --ds-text-sub: #475569;
    --ds-text-muted: #64748b;
    --ds-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
    --ds-shadow-hover: 0 12px 28px rgba(15, 23, 42, 0.1);
    --ds-radius: 14px;
    --ds-radius-sm: 10px;
    --ds-header-h: 76px;
    --ds-max: 1480px;
    --ds-gutter: 28px;
    --sd-bg: #f8fafc;
    --sd-bg-sub: #f1f5f9;
    --sd-card-bg: #ffffff;
    --sd-text: #0f172a;
    --sd-text-sub: #475569;
    --sd-text-muted: #64748b;
    --sd-border: #e5eaf1;
    --sd-accent: #2563eb;
    --sd-fear: #ef4444;
    --sd-greed: #10b981;
    --sd-neutral: #f59e0b;
    --sd-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

html.ds-theme,
html.ds-theme body {
    background: var(--ds-bg) !important;
    color: var(--ds-text) !important;
    font-family: Pretendard, 'Noto Sans KR', 'Inter', sans-serif;
}

html.ds-theme body.sd-member-light-body {
    background: var(--ds-bg) !important;
    color: var(--ds-text) !important;
}

html.ds-theme .sd-main,
html.ds-theme body.sd-home-body .sd-main,
html.ds-theme body.sd-member-light-body .sd-main,
html.ds-theme body.sd-holiday-body .sd-main,
html.ds-theme body.sd-futures-body .sd-main,
html.ds-theme body.sd-fg-body .sd-main {
    min-height: calc(100vh - 280px);
    padding-top: calc(var(--ds-header-h) + 20px) !important;
    background: var(--ds-bg);
    color: var(--ds-text);
}

html.ds-theme a {
    color: inherit;
}

.ds-wrap {
    width: min(var(--ds-max), 100%);
    max-width: var(--ds-max);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--ds-gutter);
    padding-right: var(--ds-gutter);
    box-sizing: border-box;
}

html.ds-theme .container,
html.ds-theme .sd-footer .container,
html.ds-theme .sd-news-page__container,
html.ds-theme .sd-blog-page__container,
html.ds-theme .sd-market-insight__container,
html.ds-theme .sd-futures__container {
    width: min(var(--ds-max), 100%) !important;
    max-width: var(--ds-max) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: var(--ds-gutter) !important;
    padding-right: var(--ds-gutter) !important;
    box-sizing: border-box;
}

.ds-page {
    padding: 8px 0 64px;
}

.ds-page-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin: 8px 0 22px;
}

.ds-kicker {
    display: inline-block;
    margin-bottom: 6px;
    color: var(--ds-blue);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.ds-title {
    margin: 0;
    font-size: clamp(28px, 3vw, 36px);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.2;
}

.ds-lead {
    margin: 8px 0 0;
    color: var(--ds-text-sub);
    font-size: 15px;
}

.ds-section-title {
    margin: 0 0 14px;
    font-size: clamp(20px, 2.2vw, 26px);
    font-weight: 800;
    letter-spacing: -0.03em;
}

.ds-card {
    background: var(--ds-card);
    border: 1px solid var(--ds-border);
    border-radius: var(--ds-radius);
    box-shadow: var(--ds-shadow);
}

.ds-card--pad {
    padding: 20px;
}

.ds-card:hover {
    box-shadow: var(--ds-shadow-hover);
}

.ds-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 16px;
    border: 1px solid transparent;
    border-radius: 10px;
    background: var(--ds-navy);
    color: #fff !important;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none !important;
    cursor: pointer;
    transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.ds-btn:hover {
    background: var(--ds-navy-deep);
    transform: translateY(-1px);
}

.ds-btn--blue {
    background: var(--ds-blue);
}

.ds-btn--ghost {
    background: #fff;
    border-color: var(--ds-border);
    color: var(--ds-text) !important;
}

.ds-btn--ghost:hover {
    background: var(--ds-blue-soft);
}

.ds-chip-row {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
}

.ds-chip-row::-webkit-scrollbar {
    display: none;
}

.ds-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
    min-height: 36px;
    padding: 0 14px;
    border: 1px solid var(--ds-border);
    border-radius: 999px;
    background: #fff;
    color: var(--ds-text-sub);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.ds-chip.is-active,
.ds-chip[aria-selected="true"] {
    background: var(--ds-navy);
    border-color: var(--ds-navy);
    color: #fff;
}

.ds-badge {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 8px;
    border-radius: 999px;
    background: var(--ds-blue-soft);
    color: var(--ds-navy);
    font-size: 12px;
    font-weight: 700;
}

.ds-chg {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.ds-chg.is-up,
html.ds-theme .sd-chg-up,
html.ds-theme .is-up {
    color: var(--ds-up) !important;
}

.ds-chg.is-down,
html.ds-theme .sd-chg-down,
html.ds-theme .is-down {
    color: var(--ds-down) !important;
}

.ds-chg.is-flat {
    color: var(--ds-text-muted);
}

.ds-empty,
.ds-error {
    padding: 28px 18px;
    border: 1px dashed var(--ds-border);
    border-radius: var(--ds-radius);
    background: #fff;
    color: var(--ds-text-muted);
    text-align: center;
}

.ds-skel {
    display: grid;
    gap: 10px;
}

.ds-skel > span {
    display: block;
    height: 14px;
    border-radius: 8px;
    background: linear-gradient(90deg, #eef2f7 25%, #f8fafc 50%, #eef2f7 75%);
    background-size: 200% 100%;
    animation: ds-skel 1.2s linear infinite;
}

@keyframes ds-skel {
    to { background-position: -200% 0; }
}

html.ds-theme .sd-header.ds-header,
html.ds-theme .sd-header.ds-header.navbar,
html.ds-theme body.sd-member-light-body .sd-header.ds-header,
html.ds-theme body.sd-member-light-body .sd-header.ds-header.sd-header--scrolled {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    display: block;
    height: auto;
    min-height: var(--ds-header-h);
    padding: 0 !important;
    background: rgba(255, 255, 255, 0.96) !important;
    border-bottom: 1px solid var(--ds-border);
    box-shadow: none;
    backdrop-filter: blur(16px);
}

html.ds-theme .sd-header.ds-header.sd-header--scrolled {
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.ds-header .ds-header__bar {
    display: grid;
    grid-template-columns: auto minmax(260px, 1fr) auto auto;
    align-items: center;
    gap: 16px;
    min-height: var(--ds-header-h);
}

.ds-logo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--ds-navy) !important;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.04em;
    text-decoration: none !important;
    white-space: nowrap;
}

.ds-logo span {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: var(--ds-blue);
}

.ds-search {
    position: relative;
    display: flex;
    align-items: center;
    min-width: 0;
}

.ds-search input {
    width: 100%;
    height: 44px;
    padding: 0 44px 0 40px;
    border: 1px solid var(--ds-border);
    border-radius: 999px;
    background: #f8fafc;
    color: var(--ds-text);
    outline: none;
}

.ds-search input:focus {
    border-color: #93c5fd;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.ds-search__icon,
.ds-search button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: var(--ds-text-muted);
}

.ds-search__icon {
    left: 14px;
}

.ds-search button {
    right: 6px;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 999px;
    background: var(--ds-navy);
    color: #fff;
}

.ds-search__panel {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    display: none;
    padding: 12px;
    border: 1px solid var(--ds-border);
    border-radius: 14px;
    background: #fff;
    box-shadow: var(--ds-shadow);
    z-index: 20;
}

.ds-search.is-open .ds-search__panel {
    display: block;
}

.ds-search__panel small {
    display: block;
    margin-bottom: 8px;
    color: var(--ds-text-muted);
    font-weight: 700;
}

.ds-header__tools {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ds-icon-btn,
.ds-user-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 40px;
    padding: 0 12px;
    border: 1px solid var(--ds-border);
    border-radius: 999px;
    background: #fff;
    color: var(--ds-text) !important;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none !important;
}

.ds-icon-btn {
    width: 40px;
    padding: 0;
}

.ds-nav {
    display: flex;
    align-items: center;
    gap: 2px;
    overflow-x: auto;
    padding: 0;
    scrollbar-width: none;
}

.ds-nav::-webkit-scrollbar {
    display: none;
}

.ds-nav a {
    flex: 0 0 auto;
    padding: 8px 10px;
    border-radius: 8px;
    color: var(--ds-text-sub) !important;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none !important;
    white-space: nowrap;
}

.ds-nav a:hover,
.ds-nav a.is-active {
    color: var(--ds-navy) !important;
    background: var(--ds-blue-soft);
}

.ds-nav a.is-ai {
    color: var(--ds-blue) !important;
}

.ds-menu-toggle,
.ds-search-toggle {
    display: none;
}

html.ds-theme .sd-footer.ds-footer {
    background: #fff;
    border-top: 1px solid var(--ds-border);
    color: var(--ds-text-sub);
}

html.ds-theme .sd-footer.ds-footer .sd-footer__logo,
html.ds-theme .sd-footer.ds-footer .sd-footer__title,
html.ds-theme .sd-footer.ds-footer .sd-footer__lead {
    color: var(--ds-text);
}

html.ds-theme .sd-footer.ds-footer .sd-footer__link,
html.ds-theme .sd-footer.ds-footer .sd-footer__mail,
html.ds-theme .sd-footer.ds-footer .sd-footer__credit-link {
    color: var(--ds-text-sub);
}

html.ds-theme .sd-footer.ds-footer .sd-footer__link:hover {
    color: var(--ds-navy);
}

html.ds-theme .sd-floating-action,
html.ds-theme .sd-floating-main {
    background: var(--ds-navy);
    color: #fff;
}

.ds-hero__banner {
    position: relative;
    overflow: hidden;
    min-height: 200px;
    padding: 32px 26px 24px;
    border-radius: 18px;
    color: #fff;
    background:
        linear-gradient(180deg, rgba(8, 24, 64, 0.28) 0%, rgba(8, 24, 64, 0.55) 48%, rgba(11, 61, 145, 0.88) 100%),
        radial-gradient(120% 80% at 80% 10%, #93c5fd 0%, transparent 46%),
        linear-gradient(180deg, #7dd3fc 0%, #2563eb 42%, #0b3d91 100%);
}

.ds-hero__banner::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2px;
    height: 84px;
    background:
        radial-gradient(120px 60px at 12% 100%, #0f172a 40%, transparent 42%),
        radial-gradient(180px 80px at 38% 100%, #1e3a8a 42%, transparent 44%),
        radial-gradient(220px 90px at 68% 100%, #0b3d91 40%, transparent 42%),
        radial-gradient(160px 70px at 92% 100%, #082a66 40%, transparent 42%);
    pointer-events: none;
}

.ds-hero__banner > * {
    position: relative;
    z-index: 1;
}

.ds-hub-tabs {
    display: flex;
    gap: 8px;
    margin: 0 0 18px;
}

.ds-hub-tabs a {
    min-height: 40px;
    padding: 8px 14px;
    border: 1px solid var(--ds-border);
    border-radius: 10px;
    background: #fff;
    color: var(--ds-text-sub);
    font-weight: 800;
    text-decoration: none;
}

.ds-date-pick {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
}

.ds-date-pick label {
    font-size: 13px;
    font-weight: 800;
    color: var(--ds-text-sub);
}

.ds-date-pick input[type="date"] {
    height: 36px;
    border: 1px solid var(--ds-border);
    border-radius: 999px;
    padding: 0 12px;
    background: #fff;
    color: var(--ds-text);
}

.ds-market-status {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 18px;
}

.ds-market-status span {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    background: #f1f5f9;
    color: var(--ds-text-sub);
    font-size: 13px;
    font-weight: 800;
}

.ds-hub-tabs a.is-active {
    background: var(--ds-navy);
    border-color: var(--ds-navy);
    color: #fff;
}

.ds-quote-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.ds-quote {
    display: block;
    padding: 18px;
    text-decoration: none !important;
    color: inherit;
}

.ds-quote__name {
    color: var(--ds-text-sub);
    font-size: 13px;
    font-weight: 700;
}

.ds-quote__price {
    margin-top: 8px;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.03em;
    font-variant-numeric: tabular-nums;
}

.ds-quote__meta {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-top: 10px;
    color: var(--ds-text-muted);
    font-size: 12px;
}

.ds-news-grid,
.ds-report-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.ds-media-card {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 14px;
    padding: 14px;
    text-decoration: none !important;
    color: inherit;
}

.ds-media-card img,
.ds-thumb {
    width: 100%;
    height: 86px;
    object-fit: cover;
    border-radius: 10px;
    background:
        linear-gradient(180deg, rgba(8, 24, 64, 0.18) 0%, rgba(11, 61, 145, 0.62) 100%),
        radial-gradient(120% 80% at 80% 10%, #93c5fd 0%, transparent 46%),
        linear-gradient(180deg, #7dd3fc 0%, #2563eb 42%, #0b3d91 100%);
}

.ds-media-card h3,
.ds-media-card strong {
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    margin: 4px 0;
    font-size: 16px;
    line-height: 1.4;
}

.ds-media-card p {
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    margin: 0;
    color: var(--ds-text-sub);
    font-size: 13px;
}

.ds-article {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr) 280px;
    gap: 24px;
    align-items: start;
}

.ds-toc {
    position: sticky;
    top: calc(var(--ds-header-h) + 16px);
    padding: 16px;
}

.ds-toc a {
    display: block;
    padding: 6px 0;
    color: var(--ds-text-muted);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.ds-toc a.is-active {
    color: var(--ds-navy);
}

html.ds-theme .sd-blog-page,
html.ds-theme .sd-news-page,
html.ds-theme .sd-market-insight,
html.ds-theme .sd-futures,
html.ds-theme .sd-member-page {
    background: transparent !important;
    color: var(--ds-text) !important;
}

html.ds-theme .sd-insight-tab.is-active,
html.ds-theme .sd-blog-sidebar__link.is-active,
html.ds-theme .sd-blog-page__page-num.is-active {
    background: var(--ds-navy) !important;
    color: #fff !important;
}

html.ds-theme .hm {
    max-width: var(--ds-max);
    margin-left: auto;
    margin-right: auto;
    padding-top: 12px !important;
    padding-left: var(--ds-gutter);
    padding-right: var(--ds-gutter);
}

@media (min-width: 1200px) and (max-width: 1399px) {
    .ds-nav a {
        padding: 8px 7px;
        font-size: 13px;
    }
}

@media (max-width: 1199px) {
    .ds-header .ds-header__bar {
        grid-template-columns: auto minmax(200px, 1fr) auto;
    }

    .ds-header .ds-nav {
        display: none;
        grid-column: 1 / -1;
        flex-direction: column;
        align-items: stretch;
        padding: 8px 0 14px;
    }

    .ds-header.is-nav-open .ds-nav {
        display: flex;
    }

    .ds-menu-toggle {
        display: inline-flex;
    }
}

@media (max-width: 991px) {
    .ds-header .ds-header__bar {
        grid-template-columns: auto 1fr auto;
    }

    .ds-header .ds-search {
        display: none;
    }

    .ds-header.is-search-open .ds-search {
        display: flex;
        grid-column: 1 / -1;
        order: 5;
    }

    .ds-nav,
    .ds-header.is-nav-open .ds-nav {
        display: none;
        grid-column: 1 / -1;
        flex-direction: column;
        align-items: stretch;
        padding-bottom: 14px;
    }

    .ds-header.is-nav-open .ds-nav {
        display: flex;
    }

    .ds-menu-toggle,
    .ds-search-toggle {
        display: inline-flex;
    }

    .ds-user-link span {
        display: none;
    }

    .ds-quote-grid,
    .ds-news-grid,
    .ds-report-grid,
    .ds-article {
        grid-template-columns: 1fr;
    }

    .ds-toc {
        position: static;
    }

    .ds-media-card {
        grid-template-columns: 88px 1fr;
    }

    .ds-date-pick {
        width: 100%;
        flex-wrap: wrap;
    }

    .ds-title {
        font-size: 28px;
    }

    .ds-quote__price,
    .sd-futures-card__price {
        font-size: 22px;
    }
}
