@charset "utf-8";

/* 3-column tabs (실시간 시세조회) */
.company-tabs--3 {
    grid-template-columns: repeat(3, 1fr);
}

/* 본문: 국내 시세 */
.dm-market {
    padding: 80px 0 120px;
    background: #fff;
}

.dm-market__head {
    text-align: center;
    margin-bottom: 48px;
}

.dm-market__title {
    margin: 0;
    font-size: 32px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.2;
}

.dm-market__sub {
    margin: 7px 0 0;
    font-size: 16px;
    font-weight: 400;
    color: #64748b;
    line-height: 1.6;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

.dm-market__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 48px;
}

.dm-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.dm-card__media {
    height: 192px;
    overflow: hidden;
    background: #f1f5f9;
}

.dm-card__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.dm-card__body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex: 1;
}

.dm-card__name {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.4;
}

.dm-card__price {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: -0.02em;
}

.dm-card__price--gold,
.dm-card__price--cyanide {
    color: #d97706;
}

.dm-card__price--silver {
    color: #334155;
}

.dm-card__change {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
}

.dm-card__change--up {
    color: #dc2626;
}

.dm-card__change--down {
    color: #2563eb;
}

.dm-card__change--flat {
    color: #94a3b8;
}

.dm-card__change--flat .dm-card__change-ico {
    width: 8px;
    height: 2px;
    border: none;
    background: #94a3b8;
    border-radius: 1px;
}

.dm-card__change-ico {
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    flex-shrink: 0;
}

.dm-card__change--up .dm-card__change-ico {
    border-bottom: 7px solid #dc2626;
}

.dm-card__change--down .dm-card__change-ico {
    border-top: 7px solid #2563eb;
}

.dm-card__meta {
    margin-top: auto;
    padding-top: 17px;
    border-top: 1px solid #f1f5f9;
    display: flex;
    justify-content: flex-end;
}

.dm-card__time {
    font-size: 14px;
    color: #94a3b8;
    line-height: 1.43;
}

.dm-notice {
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    border-radius: 8px;
    padding: 49px 40px;
}

.dm-notice__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    flex-wrap: wrap;
}

.dm-notice__text {
    flex: 1 1 360px;
    min-width: 0;
}

.dm-notice__heading {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 7px;
}

.dm-notice__icon {
    display: flex;
    flex-shrink: 0;
}

.dm-notice__icon img {
    display: block;
    width: 20px;
    height: 20px;
}

.dm-notice__title {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.4;
}

.dm-notice__desc {
    margin: 0;
    font-size: 14px;
    font-weight: 400;
    color: #64748b;
    line-height: 1.625;
    max-width: 672px;
}

.dm-notice__cta {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 56px;
    padding: 16px 32px;
    background: #f59e0b;
    color: #020617;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
    text-decoration: none;
    border-radius: 2px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

.dm-notice__cta:hover,
.dm-notice__cta:focus {
    background: #d97706;
    color: #020617;
}

@media (max-width: 1024px) {
    .company-tabs--3 {
        grid-template-columns: 1fr;
        height: auto;
        padding: 10px 0;
    }

    .dm-market__grid {
        grid-template-columns: 1fr;
    }

    .dm-notice {
        padding: 36px 28px;
    }

    .dm-notice__inner {
        flex-direction: column;
        align-items: stretch;
    }

    .dm-notice__cta {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .dm-market {
        padding: 56px 0 80px;
    }

    .dm-market__title {
        font-size: 24px;
    }

    .dm-market__sub {
        font-size: 15px;
    }

    .dm-notice {
        padding: 28px 20px;
    }
}
