/* 오늘의 금시세 — 뽀르띠 테마 톤 (테마 변수 없으면 기본값 사용) */
.gp {
    --gp-ink: var(--pt-ink, #222);
    --gp-text: var(--pt-text, #353535);
    --gp-gray: var(--pt-gray, #888);
    --gp-light: #b3b3b3;
    --gp-line: var(--pt-line, #e5e5e5);
    --gp-soft: #f7f7f5;
    --gp-accent: var(--pt-accent, #f3a51b);
    --gp-accent-deep: #c97e00;
    --gp-up: #e5383b;
    --gp-down: #2b6de0;
    --gp-sell: #3a3a3a;
    max-width: 1100px; margin: 0 auto 90px; padding: 0 0 0; box-sizing: border-box;
    font-family: "Pretendard Variable", Pretendard, var(--pt-font, sans-serif); color: var(--gp-text); font-size: 14px;
    -webkit-font-smoothing: antialiased;
}
.gp *, .gp *::before, .gp *::after { box-sizing: border-box; }
.gp h2, .gp h3, .gp p, .gp ul, .gp dl, .gp dd { margin: 0; padding: 0; }
.gp ul { list-style: none; }
.gp a { text-decoration: none; color: inherit; }
.gp button { font-family: inherit; cursor: pointer; }
.gp [data-don] { font-variant-numeric: tabular-nums; }

/* 상단 상태줄 */
.gp-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: -8px 0 18px; }
.gp-status { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; font-size: 13px; color: var(--gp-gray); }
.gp-status b { color: var(--gp-ink); font-weight: 600; }
.gp-live { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 999px; background: #fff0f0; color: var(--gp-up); font-size: 11px; font-weight: 800; letter-spacing: .06em; }
.gp-live i { width: 6px; height: 6px; border-radius: 50%; background: var(--gp-up); animation: gp-pulse 1.6s infinite; }
@keyframes gp-pulse { 0% { box-shadow: 0 0 0 0 rgba(229,56,59,.5); } 70% { box-shadow: 0 0 0 7px rgba(229,56,59,0); } 100% { box-shadow: 0 0 0 0 rgba(229,56,59,0); } }
.gp-every { padding-left: 10px; border-left: 1px solid var(--gp-line); }
.gp-badge { height: 22px; padding: 0 8px; border-radius: 6px; background: #fff4dc; color: var(--gp-accent-deep); font-size: 11px; font-weight: 700; line-height: 22px; }
.gp-unit, .gp-seg { display: inline-flex; padding: 3px; border-radius: 10px; background: #f1f1ef; }
.gp-unit button, .gp-seg button { height: 32px; padding: 0 14px; border: 0; border-radius: 8px; background: transparent; font-size: 13px; font-weight: 600; color: var(--gp-gray); transition: background .15s, color .15s; }
.gp-unit button:hover, .gp-seg button:hover { color: var(--gp-ink); }
.gp-unit button.is-on, .gp-seg button.is-on { background: #fff; color: var(--gp-ink); box-shadow: 0 1px 3px rgba(0,0,0,.08); }

/* 순금 */
.gp-hero { position: relative; overflow: hidden; padding: 30px 36px 32px; border: 1px solid #efe4cc; border-radius: 22px; background: radial-gradient(120% 140% at 100% 0%, #fff4d6 0%, #fffaf0 38%, #fff 70%); }
.gp-hero::after { display: none;  content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, rgba(255,214,120,.55), rgba(243,165,27,0) 70%); pointer-events: none; }
.gp-hero__head { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; margin-bottom: 26px; }
.gp-hero__name { display: flex; align-items: center; gap: 14px; }
.gp-coin { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; background: linear-gradient(145deg, #ffe08a 0%, #f3b234 45%, #d68f0c 100%); box-shadow: inset 0 2px 0 rgba(255,255,255,.55), inset 0 -3px 0 rgba(150,90,0,.25), 0 6px 14px -6px rgba(201,126,0,.6); color: #6b4300; font-size: 13px; font-weight: 800; letter-spacing: -.02em; }
.gp-hero__name h2 { font-size: 22px; font-weight: 700; letter-spacing: -.02em; color: var(--gp-ink); }
.gp-hero__name p { margin-top: 2px; font-size: 12px; color: var(--gp-gray); letter-spacing: .02em; }
.gp-hero__unit { font-size: 12.5px; color: var(--gp-gray); }
.gp-hero__cols { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; }
.gp-hero__col { padding: 4px 0 0; }
.gp-hero__col + .gp-hero__col { padding-left: 40px; border-left: 1px solid rgba(201,126,0,.18); }
.gp-tag { display: inline-flex; align-items: center; height: 26px; padding: 0 11px; border-radius: 999px; font-size: 12.5px; font-weight: 700; }
.gp-is-buy .gp-tag { background: var(--gp-accent); color: #3a2500; }
.gp-is-sell .gp-tag { background: var(--gp-sell); color: #fff; }
.gp-big { display: block; margin: 14px 0 10px; font-size: 46px; font-weight: 700; line-height: 1.05; letter-spacing: -.035em; color: var(--gp-ink); }
.gp-big::after { content: "원"; margin-left: 4px; font-size: 20px; font-weight: 600; letter-spacing: 0; color: var(--gp-text); }
.gp-foot { margin-top: 12px !important; font-size: 12px; color: var(--gp-light); }

/* 등락 */
.gp-chg { display: inline-flex; align-items: baseline; gap: 4px; font-size: 14px; font-weight: 700; white-space: nowrap; }
.gp-chg i { font-style: normal; font-size: 10px; }
.gp-chg em { font-style: normal; font-weight: 500; opacity: .85; }
.gp-chg.is-up { color: var(--gp-up); }
.gp-chg.is-down { color: var(--gp-down); }
.gp-chg.is-flat { color: var(--gp-light); font-weight: 500; }
.gp-flash { animation: gp-flash 1.2s ease-out; }
@keyframes gp-flash { 0% { background: #fff1c9; } 100% { background: transparent; } }

/* 품목 카드 */
.gp-items { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.gp-item { padding: 18px 20px 16px; border: 1px solid var(--gp-line); border-radius: 16px; background: #fff; }
.gp-item__head { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.gp-item__head b { font-size: 16px; font-weight: 700; color: var(--gp-ink); }
.gp-item__head small { font-size: 11.5px; color: var(--gp-light); }
.gp-dot { width: 10px; height: 10px; border-radius: 50%; }
.gp-k18 .gp-dot { background: linear-gradient(135deg, #f6d27a, #d9a031); }
.gp-k14 .gp-dot { background: linear-gradient(135deg, #f0c99a, #c98c4b); }
.gp-pt .gp-dot { background: linear-gradient(135deg, #e6e9ee, #9aa2ad); }
.gp-ag .gp-dot { background: linear-gradient(135deg, #f1f3f6, #b9c0c9); }
.gp-item dl { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; padding: 7px 0; }
.gp-item dl + dl { border-top: 1px dashed var(--gp-line); }
.gp-item dt { padding-top: 3px; font-size: 12.5px; color: var(--gp-gray); }
.gp-item dd { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.gp-item dd > span:first-child { font-size: 19px; font-weight: 700; letter-spacing: -.02em; color: var(--gp-ink); }
.gp-item dd .gp-chg { font-size: 12px; }
.gp-item__note { margin-top: 6px !important; font-size: 11.5px; color: var(--gp-light); text-align: right; }

/* 차트 */
.gp-chart { margin-top: 40px; padding: 26px 28px 18px; border: 1px solid var(--gp-line); border-radius: 20px; background: #fff; }
.gp-chart__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.gp-chart__head h3, .gp-card h3 { font-size: 18px; font-weight: 700; letter-spacing: -.02em; color: var(--gp-ink); }
.gp-chart__sum { margin-top: 6px !important; font-size: 13px; color: var(--gp-gray); }
.gp-chart__sum b { color: var(--gp-ink); font-weight: 600; }
.gp-chart__sum .is-up { color: var(--gp-up); font-weight: 700; }
.gp-chart__sum .is-down { color: var(--gp-down); font-weight: 700; }
.gp-tabs { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.gp-seg button { height: 30px; padding: 0 12px; font-size: 12.5px; }
.gp-legend { display: flex; align-items: center; gap: 6px; margin: 16px 0 4px; font-size: 12.5px; color: var(--gp-gray); }
.gp-legend button { display: inline-flex; align-items: center; gap: 7px; height: 28px; padding: 0 11px; border: 1px solid var(--gp-line); border-radius: 999px; background: #fff; font-size: 12.5px; font-weight: 600; color: var(--gp-light); transition: all .15s; }
.gp-legend button.is-on { color: var(--gp-ink); border-color: #d6d6d6; background: #fafafa; }
.gp-legend button:not(.is-on) i { opacity: .35; }
.gp-legend__hint { margin-left: 6px; font-size: 11.5px; color: var(--gp-light); }
.gp-legend i { width: 14px; height: 3px; border-radius: 2px; }
.gp-legend .is-buy i { background: var(--gp-accent); }
.gp-legend .is-sell i { background: var(--gp-sell); }
.gp-chart__box { position: relative; height: 300px; }
.gp-chart__box svg { display: block; overflow: visible; }
.gp-chart__box text { font-family: inherit; font-size: 11px; fill: #a6a6a6; }
.gp-chart__box .g { stroke: #f0f0ee; }
.gp-chart__box .lb { fill: none; stroke: var(--gp-accent); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.gp-chart__box .ls { fill: none; stroke: var(--gp-sell); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; opacity: .85; }
.gp-chart__box .cx { stroke: #d4d4d4; stroke-dasharray: 3 3; }
.gp-chart__box .pb { fill: #fff; stroke: var(--gp-accent); stroke-width: 2.5; }
.gp-chart__box .ps { fill: #fff; stroke: var(--gp-sell); stroke-width: 2.5; }
.gp-chart__box .hi { fill: var(--gp-up); font-weight: 700; font-size: 11px; }
.gp-chart__box .lo { fill: var(--gp-down); font-weight: 700; font-size: 11px; }
.gp-loading, .gp-nodata { position: absolute; inset: 0; display: grid; place-items: center; color: var(--gp-light); font-size: 13px; }
.gp-tip { position: absolute; z-index: 3; min-width: 170px; padding: 11px 13px; border-radius: 12px; background: #222; color: #ddd; font-size: 12px; pointer-events: none; box-shadow: 0 12px 30px -10px rgba(0,0,0,.45); }
.gp-tip strong { display: block; margin-bottom: 7px; color: #fff; font-size: 12.5px; }
.gp-tip span { display: flex; align-items: center; gap: 7px; margin-top: 3px; }
.gp-tip span i { width: 8px; height: 8px; border-radius: 50%; }
.gp-tip b { margin-left: auto; color: #fff; font-variant-numeric: tabular-nums; }
.gp-tip small { display: block; margin-top: 6px; color: #9a9a9a; font-size: 11px; }

/* 하단 2단 */
.gp-split { display: grid; grid-template-columns: 380px 1fr; gap: 16px; margin-top: 16px; align-items: start; }
.gp-card { padding: 24px 26px; border: 1px solid var(--gp-line); border-radius: 20px; background: #fff; }
.gp-card h3 { margin-bottom: 14px !important; }
.gp-card h3 small { margin-left: 6px; font-size: 12px; font-weight: 500; color: var(--gp-light); letter-spacing: 0; }
.gp-intl li { display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; column-gap: 12px; padding: 13px 0; border-top: 1px solid #f0f0ee; }
.gp-intl li:first-child { border-top: 0; padding-top: 4px; }
.gp-intl__name { grid-row: span 2; align-self: center; font-size: 14px; font-weight: 600; color: var(--gp-ink); }
.gp-intl__name small { display: block; margin-top: 2px; font-size: 11.5px; font-weight: 400; color: var(--gp-light); }
.gp-intl b { justify-self: end; font-size: 17px; font-weight: 700; letter-spacing: -.01em; color: var(--gp-ink); font-variant-numeric: tabular-nums; }
.gp-intl .gp-chg { justify-self: end; font-size: 12px; }
.gp-intl__krw { margin-top: 4px; padding: 13px 14px !important; border: 0 !important; border-radius: 12px; background: var(--gp-soft); }
.gp-daily table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.gp-daily th, .gp-daily td { height: 42px; padding: 0 10px; border-bottom: 1px solid #f0f0ee; text-align: right; font-size: 13.5px; white-space: nowrap; }
.gp-daily thead th { height: 36px; border-bottom: 1px solid var(--gp-line); font-size: 12px; font-weight: 600; color: var(--gp-gray); }
.gp-daily thead th:first-child, .gp-daily tbody th { text-align: left; }
.gp-daily tbody th { font-weight: 600; color: var(--gp-ink); }
.gp-daily tbody th small { margin-left: 3px; font-weight: 400; color: var(--gp-light); }
.gp-daily td { color: var(--gp-text); }
.gp-daily td:nth-child(2) span { font-weight: 700; color: var(--gp-ink); }
.gp-daily tbody tr:first-child { background: #fffaf0; }
.gp-daily tbody tr:last-child th, .gp-daily tbody tr:last-child td { border-bottom: 0; }
.gp-mini { margin-left: 5px; font-style: normal; font-size: 9px; }
.gp-mini.is-up { color: var(--gp-up); }
.gp-mini.is-down { color: var(--gp-down); }
.gp-none { padding: 40px 0; text-align: center; color: var(--gp-light); }

/* 안내 · 바로가기 */
.gp-info { margin-top: 22px; padding: 16px 20px; border-radius: 14px; background: var(--gp-soft); font-size: 12.5px; line-height: 1.7; color: var(--gp-gray); }
.gp-info i { margin-right: 6px; color: var(--gp-light); }
.gp-src { margin-top: 2px !important; padding-left: 19px; color: var(--gp-light); }
.gp-cta { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; padding: 22px 28px; border-radius: 18px; background: #222; color: #fff !important; transition: background .15s; }
.gp-cta:hover { background: #000; }
.gp-cta small { display: block; margin-bottom: 4px; font-size: 12.5px; color: #c9c9c9; }
.gp-cta b { font-size: 18px; font-weight: 700; }
.gp-cta i { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: var(--gp-accent); color: #3a2500; font-size: 20px; }

.gp-empty { padding: 120px 0; text-align: center; color: var(--gp-gray); }
.gp-empty i { font-size: 40px; color: #ddd; }
.gp-empty p { margin-top: 16px !important; font-size: 17px; font-weight: 600; color: var(--gp-ink); }

/* 모바일 */
@media (max-width: 768px) {
    .gp { margin-bottom: 50px; padding: 0 14px; font-size: 13px; }
    .gp-top { flex-direction: column; align-items: stretch; margin: 6px 0 14px; }
    .gp-every { display: none; }
    .gp-unit { align-self: flex-start; }
    .gp-hero { padding: 22px 20px; border-radius: 18px; }
    .gp-hero__head { margin-bottom: 18px; }
    .gp-hero__unit { display: none; }
    .gp-hero__cols { grid-template-columns: 1fr; gap: 18px; }
    .gp-hero__col + .gp-hero__col { padding: 18px 0 0; border-left: 0; border-top: 1px solid rgba(201,126,0,.18); }
    .gp-big { font-size: 36px; margin: 10px 0 6px; }
    .gp-items { grid-template-columns: 1fr 1fr; gap: 10px; }
    .gp-item { padding: 14px; }
    .gp-item dd > span:first-child { font-size: 16px; }
    .gp-chart { margin-top: 24px; padding: 18px 14px 10px; border-radius: 16px; }
    .gp-chart__head { flex-direction: column; }
    .gp-tabs { justify-content: flex-start; }
    .gp-chart__box { height: 240px; }
    .gp-split { grid-template-columns: 1fr; }
    .gp-card { padding: 18px; border-radius: 16px; }
    .gp-daily { overflow-x: auto; }
    .gp-daily th, .gp-daily td { padding: 0 6px; font-size: 12.5px; }
}
.gp-big.is-na::after { content: none; }
.gp-legend button { white-space: nowrap; }
@media (max-width: 768px) { .gp-legend__hint { display: none; } }
