/* 금 분석기 전용 스타일. 공통 토큰은 site.css를 따른다. */

[hidden] { display: none !important; }

.gold { padding-top: 48px; padding-bottom: 24px; }
.g-head { display: grid; gap: 14px; margin-bottom: 8px; }
.g-status { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 6px; font-size: .875rem; color: var(--ink-2); }
.glance { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; margin-top: 6px; background: var(--line); border: 1px solid var(--line); }
.glance__item { display: grid; gap: 4px; padding: 12px 14px; background: var(--surface); color: inherit; text-decoration: none; min-width: 0; }
.glance__item:hover, .glance__item:focus-visible { background: var(--sunken); }
.glance__label { font-size: .75rem; color: var(--mute); }
.glance__val { font-size: .875rem; font-weight: 600; line-height: 1.4; overflow-wrap: anywhere; }
@media (max-width: 860px) { .glance { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* 섹션 내비게이션 */
.g-subnav {
  position: sticky; top: var(--nav-h); z-index: 30;
  display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none;
  padding: 10px 0; margin: 24px 0 0;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.g-subnav::-webkit-scrollbar { display: none; }
.g-subnav a { flex: none; padding: 7px 14px; border-radius: var(--radius-pill); font-size: .875rem; color: var(--ink-2); transition: background .2s, color .2s; }
.g-subnav a:hover { background: var(--sunken); color: var(--ink); }
/* 현재 섹션 표시: 초록 밑줄이 항목 사이를 미끄러진다 */
.g-subnav a[aria-current="true"] { color: var(--ink); font-weight: 600; }
.g-subnav__bar { position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--accent); opacity: 0; border-radius: 2px; pointer-events: none; will-change: transform, width; }
.g-subnav__bar.is-animated { transition: transform .38s cubic-bezier(.4, 0, .2, 1), width .38s cubic-bezier(.4, 0, .2, 1); }
@media (prefers-reduced-motion: reduce) { .g-subnav__bar.is-animated { transition: none; } }

.g-section { padding-top: 56px; scroll-margin-top: calc(var(--nav-h) + 60px); }
.g-section__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin-bottom: 20px; }
.g-section__tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.g-label { font-size: .8125rem; color: var(--mute); font-weight: 600; margin-bottom: 6px; }

/* 세그먼트 버튼 (pill) */
.seg { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 3px; background: var(--sunken); border-radius: var(--radius-pill); }
.seg__btn {
  border: 0; background: transparent; padding: 8px 16px; border-radius: var(--radius-pill);
  font-size: .875rem; font-weight: 600; color: var(--ink-2); white-space: nowrap;
  transition: background .2s, color .2s;
}
.seg--sm .seg__btn { padding: 6px 12px; font-size: .8125rem; }
.seg__btn:hover { color: var(--ink); }
.seg__btn.is-active { background: var(--ink); color: var(--bg); }

.select, .input {
  font: inherit; color: var(--ink); background: var(--surface);
  border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 11px 14px; width: 100%;
}
.select { width: auto; padding: 8px 12px; font-size: .875rem; }
.input--sm { width: 180px; padding: 7px 14px; font-size: .875rem; border-radius: var(--radius-pill); }
.input:focus-visible, .select:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.input::placeholder { color: var(--mute); }
.input.num { text-align: right; font-size: 1.05rem; }
.link-btn { background: none; border: 0; padding: 4px 0; font-size: .875rem; color: var(--mute); text-decoration: underline; text-underline-offset: 3px; }
.link-btn:hover { color: var(--ink); }
.range { width: 100%; accent-color: var(--accent); }

/* 시세 */
.price-hero { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; padding: 8px 0 32px; }
.price-hero__num { font-size: clamp(2.5rem, 7vw, 4.5rem); line-height: 1.1; letter-spacing: -0.03em; font-weight: 700; margin: 0; }
.price-hero__side { text-align: right; }
.price-hero__sub { font-size: 1.5rem; font-weight: 600; margin: 0; }
@media (max-width: 560px) { .price-hero__side { text-align: left; } }

/* 표 */
.tbl-wrap { overflow-x: auto; border-top: 1px solid var(--ink); }
.tbl { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.tbl th, .tbl td { padding: 14px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.tbl thead th { font-size: .8125rem; font-weight: 600; color: var(--mute); padding-block: 12px; }
.tbl tbody th { font-weight: 600; }
.tbl .r { text-align: right; }
.tbl--dense th, .tbl--dense td { padding: 11px 10px; font-size: .875rem; }
.tbl__total th, .tbl__total td { border-bottom: 0; background: var(--sunken); }
.tbl .empty { text-align: center; color: var(--mute); }
.tag { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: var(--radius-pill); background: var(--warn-soft); color: var(--warn); font-size: .75rem; font-weight: 600; white-space: nowrap; }
.cal-item .tag { background: var(--sunken); color: var(--ink-2); margin-left: 0; }

.note { font-size: .8125rem; color: var(--mute); margin-top: 14px; max-width: 80ch; line-height: 1.6; }
.note--warn { color: var(--warn); background: var(--warn-soft); padding: 10px 14px; border-radius: var(--radius); }
.g-disclaimer { margin-top: 72px; }

/* 판정 색 (가격 방향이 아닌 환경 판정) */
/* 5단계 구간 색 (매우 비우호 - 비우호 - 중립 - 우호 - 매우 우호). 게이지 구간도 같은 변수를 쓴다 */
:root { --tone-pos2: var(--accent); --tone-pos: color-mix(in srgb, var(--accent) 55%, var(--line-strong)); --tone-neutral: var(--line-strong); --tone-neg: color-mix(in srgb, var(--warn) 55%, var(--line-strong)); --tone-neg2: var(--warn); }
.tone-pos2 { color: var(--accent); font-weight: 800; }
.tone-pos { color: var(--accent); font-weight: 600; }
.tone-neg { color: var(--warn); font-weight: 600; }
.tone-neg2 { color: var(--warn); font-weight: 800; }
.tone-neutral { color: var(--ink-2); }
.is-up { color: var(--up); }
.is-down { color: var(--down); }

/* 시세 변동 깜빡임: 상승 적색, 하락 청색 (한국 관례) */
@keyframes flash-up { from { background-color: color-mix(in srgb, var(--up) 22%, transparent); } to { background-color: transparent; } }
@keyframes flash-down { from { background-color: color-mix(in srgb, var(--down) 22%, transparent); } to { background-color: transparent; } }
.price-up-flash { animation: flash-up 1.1s ease-out; border-radius: 6px; }
.price-down-flash { animation: flash-down 1.1s ease-out; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) { .price-up-flash, .price-down-flash { animation: none; } }

/* 차트 */
.chart-card { border-top: 1px solid var(--ink); padding-top: 20px; }
.chart-controls { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 8px; }
.chart-controls__title { font-weight: 600; }
.chart-controls__group { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.chart-canvas { position: relative; height: clamp(280px, 46vw, 420px); }
.chart-canvas[hidden], .chart-tv[hidden] { display: none; }
.chart-tv { height: clamp(460px, 62vw, 680px); }
.chart-empty { position: absolute; inset: 0; display: grid; place-items: center; color: var(--mute); background: color-mix(in srgb, var(--bg) 70%, transparent); }

/* 종합 점수 */
.score-grid { display: grid; grid-template-columns: minmax(260px, 340px) 1fr; gap: 40px; align-items: start; border-top: 1px solid var(--ink); padding-top: 28px; }
@media (max-width: 860px) { .score-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; } }
.score-card { text-align: center; }
.gauge { width: min(360px, 100%); margin-inline: auto; overflow: visible; }
.gauge__seg { fill: none; stroke-width: 12; stroke-linecap: butt; opacity: .35; transition: opacity .3s, stroke-width .3s; }
.gauge__seg.is-active { opacity: 1; stroke-width: 16; }
.gauge__seg--tone-pos2 { stroke: var(--tone-pos2); }
.gauge__seg--tone-pos { stroke: var(--tone-pos); }
.gauge__seg--tone-neutral { stroke: var(--tone-neutral); }
.gauge__seg--tone-neg { stroke: var(--tone-neg); }
.gauge__seg--tone-neg2 { stroke: var(--tone-neg2); }
.gauge__label { font-size: 9px; fill: var(--mute); font-family: inherit; }
.gauge__label.is-active { fill: var(--ink); font-weight: 700; }
.gauge__needle { stroke: var(--ink); stroke-width: 3; stroke-linecap: round; transition: transform 1s var(--ease); }
.gauge__hub { fill: var(--ink); }
.score-card__num { font-size: 2.75rem; font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; margin-top: 4px; }
.score-card__band { font-size: 1.25rem; font-weight: 700; margin-top: 4px; }
.score-card__reason { margin-top: 12px; color: var(--ink-2); font-size: .9375rem; text-align: left; }
.score-card__legend { margin-top: 14px; font-size: .75rem; color: var(--mute); text-align: left; line-height: 1.6; }

.method { margin-top: 24px; border-top: 1px solid var(--line); }
.method summary { padding: 16px 0; cursor: pointer; font-weight: 600; font-size: .9375rem; list-style: none; display: flex; justify-content: space-between; }
.method summary::-webkit-details-marker { display: none; }
.method summary::after { content: "+"; font-weight: 400; color: var(--mute); }
.method[open] summary::after { content: "-"; }
.method__body { padding-bottom: 20px; color: var(--ink-2); font-size: .9rem; display: grid; gap: 12px; max-width: 80ch; }
.method__body ul { margin: 0; padding-left: 1.1em; display: grid; gap: 6px; }

/* 계산기 */
.tools-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 860px) { .tools-grid { grid-template-columns: 1fr; } }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: grid; gap: 18px; align-content: start; }
.panel__head { display: flex; justify-content: space-between; align-items: center; }
.panel__title { font-size: 1.05rem; font-weight: 650; margin: 0; }
.field { display: grid; gap: 8px; }
.field__label { font-size: .8125rem; font-weight: 600; color: var(--ink-2); }
.field__row { display: flex; justify-content: space-between; align-items: baseline; }
.kv { display: grid; gap: 0; margin: 0; border-top: 1px solid var(--line); }
.kv > div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.kv dt { color: var(--mute); font-size: .875rem; }
.kv dd { margin: 0; font-weight: 600; text-align: right; }
.target { display: grid; gap: 6px; padding-top: 4px; }
.target__head { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.target__main { font-size: 1.25rem; font-weight: 700; margin-top: 6px; }

/* 뉴스·일정 목록 */
.news-box { border-top: 1px solid var(--ink); min-height: 120px; }
.empty { padding: 36px 0; text-align: center; color: var(--mute); }
.news-list, .cal-list { list-style: none; margin: 0; padding: 0; }
.news-item { display: grid; gap: 4px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.news-title { font-weight: 600; line-height: 1.5; }
a.news-title:hover { text-decoration: underline; text-underline-offset: 3px; }
.news-orig, .news-meta { font-size: .8125rem; color: var(--mute); }
.cal-item { display: grid; grid-template-columns: 160px 1fr auto; gap: 8px 16px; align-items: start; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: .9375rem; }
.cal-when { color: var(--mute); font-size: .8125rem; padding-top: 2px; }
.cal-name { font-weight: 600; display: grid; gap: 2px; }
.cal-metrics { font-weight: 400; color: var(--mute); font-size: .8125rem; }
@media (max-width: 640px) { .cal-item { grid-template-columns: 1fr auto; } .cal-when { grid-column: 1 / -1; } }
.pagination { display: flex; justify-content: center; gap: 4px; padding: 20px 0 0; flex-wrap: wrap; }
.pg { min-width: 36px; height: 36px; padding: 0 12px; border-radius: var(--radius-pill); border: 1px solid var(--line-strong); background: transparent; font-size: .8125rem; font-weight: 600; }
.pg:hover:not(:disabled) { border-color: var(--ink); }
.pg.is-active { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.pg:disabled { opacity: .35; cursor: not-allowed; }

@media (max-width: 720px) {
  .gold { padding-top: 32px; }
  .g-section { padding-top: 44px; }
  .panel { padding: 20px; }
  .input--sm { width: 100%; }
}

/* 표 숫자 열은 머리글과 같은 쪽(오른쪽)으로 정렬 */
.tbl td.num, .tbl th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tbl .r { text-align: right; }
.th-sub { font-weight: 500; font-size: .72rem; opacity: .8; }

/* 종합 점수 표: 거시 세부 행과 합계 행 */
.tbl__group th, .tbl__group td { border-bottom-color: var(--line); background: var(--sunken); }
.tbl__sub th { padding-left: 28px; font-weight: 500; color: var(--ink-2); }
.tbl__sub td { color: var(--ink-2); }
.tbl__total th { text-align: left; }
.tbl__total td { font-weight: 700; }

/* 계산식 */
.equation { margin-top: 22px; }
.eq { display: grid; grid-template-columns: 1fr auto 1fr auto 1.2fr; align-items: stretch; gap: 12px; }
.eq__cell { display: flex; flex-direction: column; gap: 2px; padding: 16px 18px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--surface); }
.eq__cell--result { background: var(--ink); border-color: var(--ink); }
.eq__cell--result .eq__k, .eq__cell--result .eq__s { color: color-mix(in srgb, var(--bg) 72%, transparent); }
.eq__cell--result .eq__v { color: var(--bg); }
.eq__k { font-size: .78rem; color: var(--mute); font-weight: 600; }
.eq__v { font-size: 1.75rem; line-height: 1.2; font-weight: 700; }
.eq__s { font-size: .78rem; color: var(--mute); }
.eq__op { align-self: center; font-size: 1.4rem; color: var(--mute); }
@media (max-width: 560px) { .eq { grid-template-columns: 1fr; } .eq__op { display: none; } }

.tbl th .sub { display: block; margin-top: 2px; font-size: .75rem; font-weight: 500; color: var(--mute); }
.tbl td.src { font-size: .8125rem; color: var(--ink-2); line-height: 1.5; }
.tbl td.src a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

.tech-range { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tech-range__label { font-size: .8125rem; }
#technical .tbl-wrap + .tbl-wrap, #technical .note + .tbl-wrap { margin-top: 20px; }

/* 거시지표 그룹 설명 행 */
.tbl .tbl__gnote td { background: var(--sunken); color: var(--ink-2); font-size: .8125rem; line-height: 1.6; padding: 10px 10px; }
.tbl .tbl__gnote strong { color: var(--ink); margin-right: 6px; }

/* 경제일정: 해석과 실제 반응 */
.cal-impact { display: grid; gap: 2px; margin-top: 4px; font-size: .8125rem; color: var(--ink-2); font-weight: 400; }
.cal-impact b { font-weight: 650; }
.tone-up { color: var(--up); }
.tone-down { color: var(--down); }

/* 모바일: 그리드 자식이 표의 최소 너비 때문에 화면 밖으로 밀리지 않게 한다 */
.score-grid > *, .gold > * { min-width: 0; max-width: 100%; }
.tbl-wrap { max-width: 100%; }

/* 모바일 표: 이름 한 줄 + 값들이 이어지는 한 줄 (칸마다 줄바꿈되는 것을 막는다) */
@media (max-width: 640px) {
  .tbl-wrap { overflow-x: visible; }
  .tbl--stack, .tbl--stack tbody, .tbl--stack tr, .tbl--stack th, .tbl--stack td { display: block; width: auto; }
  .tbl--stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .tbl--stack tbody tr { padding: 12px 2px; border-bottom: 1px solid var(--line); }
  .tbl--stack th, .tbl--stack td { border: 0; padding: 0; }
  .tbl--stack tbody th { padding: 0 0 6px; font-size: .9375rem; line-height: 1.4; }
  .tbl--stack td { display: inline-block; margin: 0 12px 2px 0; font-size: .875rem; text-align: left; white-space: normal; }
  .tbl--stack td[data-label]::before { content: attr(data-label); display: inline-block; margin-right: 6px; color: var(--mute); font-size: .75rem; font-weight: 500; }
  .tbl--stack td.r { text-align: left; }
  .tbl--stack td.src, .tbl--stack td.mute { display: block; margin-top: 4px; }
  .tbl--stack .tbl__gnote { padding: 0; }
  .tbl--stack .tbl__gnote td { display: block; margin: 0; padding: 10px 12px; }
  .tbl--stack .tbl__sub { padding-left: 14px; }
  .tbl--stack .tbl__sub th { padding-left: 0; }
  .tbl--stack .tbl__total th { display: inline-block; padding: 0 12px 0 0; }
  .tbl--stack .tbl__total, .tbl--stack .tbl__group { background: var(--sunken); border-radius: 8px; }
  .tbl--stack .tbl__group { margin-top: 2px; }
  .tbl--stack td .tag { margin-left: 4px; }
  .th-sub { display: inline; }
}

/* KRX 괴리율 신호 (이 사이트의 첫 번째 목적): 시세 영역 맨 위 */
/* 카드 없이 다른 섹션과 같은 양식: 섹션 제목 + 본문 */
.premium-hero { display: grid; gap: 8px; padding: 20px 0 0; margin-bottom: 0; border: 0; border-top: 1px solid var(--ink); border-radius: 0; background: none; }
.premium-hero__title { margin: 0; font-size: clamp(1.35rem, 3.4vw, 2rem); line-height: 1.3; font-weight: 700; letter-spacing: -0.02em; }
.premium-hero[data-tone="cheap"] .premium-hero__title { color: var(--accent); }
.premium-hero[data-tone="expensive"] .premium-hero__title { color: var(--up); }
.premium-hero__detail { margin: 0; color: var(--ink-2); font-size: .9375rem; }
.premium-range { margin-top: 10px; max-width: 640px; }
.premium-range__track { position: relative; height: 6px; border-radius: 999px; background: linear-gradient(90deg, var(--accent-soft), var(--sunken) 50%, color-mix(in srgb, var(--up) 18%, var(--sunken))); }
.premium-range__avg { position: absolute; top: -3px; width: 2px; height: 12px; background: var(--ink-2); left: var(--avg, 50%); }
.premium-range__marker { position: absolute; top: -5px; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%; background: var(--ink); border: 3px solid var(--surface); box-shadow: 0 0 0 1px var(--ink); left: var(--pos, 50%); }
.premium-range__labels { display: flex; justify-content: space-between; margin-top: 8px; font-size: .75rem; }
.premium-hero .note { margin-top: 6px; }

/* 출처 링크 */
.note.src { margin-top: 10px; font-size: .75rem; }
.note.src a, .srclink { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.srclink { margin-left: 6px; font-size: .6875rem; font-weight: 500; }

/* 점수 계산 방식 (그룹별 요인 목록) */
.method__group { margin-top: 18px; }
.method__group h4 { margin: 0 0 8px; font-size: .9375rem; }
.method__group ul { margin: 0; padding-left: 1.1em; display: grid; gap: 10px; font-size: .875rem; line-height: 1.6; }
.method__group li .mute { font-size: .8125rem; }

/* 종합 점수: 그룹 접기/펼치기, 출처 링크를 항목명 앞에 같은 폭으로 정렬 */
.tbl [hidden] { display: none !important; }
.tbl__toggle { all: unset; box-sizing: border-box; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font: inherit; font-weight: 700; color: var(--ink); }
.tbl__toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.tbl__caret { width: 0; height: 0; border-left: 5px solid currentColor; border-top: 4px solid transparent; border-bottom: 4px solid transparent; transition: transform .15s; }
.tbl__toggle[aria-expanded="true"] .tbl__caret { transform: rotate(90deg); }
.rowhead { display: inline-flex; align-items: baseline; gap: 10px; }
.rowhead .srclink { margin-left: 0; width: 2.4em; flex: none; text-align: left; }
.srclink--none { display: inline-block; }

/* 합계 카드: 글자 가운데 정렬 */
.eq__cell { align-items: center; text-align: center; }
#premium-signal .premium-hero { margin-bottom: 0; }

.tbl-wrap--bare { border-top: 0; }
.tbl-tools { display: flex; justify-content: flex-end; gap: 14px; margin-bottom: 4px; }
.btn-text { all: unset; cursor: pointer; font-size: .8125rem; font-weight: 600; color: var(--mute); }
.btn-text:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.btn-text:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* 보조 모델(데이터 학습)과의 일치 여부 */
.score-card__fit { margin-top: 12px; padding: 10px 0 0; border-top: 1px solid var(--line); text-align: left; font-size: .8125rem; line-height: 1.6; color: var(--ink-2); }
.score-card__fit strong { color: var(--ink); }
.score-card__fit[data-tone="conflict"] strong { color: var(--down, #b45309); }
.score-card__fit[data-tone="agree"] strong { color: var(--accent); }

/* 표 머리글 고정: 표 영역을 지나는 동안 칼럼 제목만 상단(사이트 메뉴 + 바로가기 아래)에 붙는다. 별도 스크롤 영역은 만들지 않는다.
   표를 감싼 상자의 가로 스크롤(overflow)이 있으면 고정이 풀리므로 넓은 화면에서는 해제한다(좁은 화면은 카드형으로 쌓아 보여 줘서 필요 없음). */
:root { --subnav-h: 57px; }
@media (min-width: 641px) {
  .tbl-wrap { overflow: visible; }
  .tbl thead th { position: sticky; top: calc(var(--nav-h) + var(--subnav-h)); z-index: 4; background: var(--bg); box-shadow: inset 0 -1px 0 var(--line); }
}

.score-card__hist { margin-top: 8px; padding-top: 8px; color: var(--mute); }

/* 접히는 섹션: 제목 줄에 화살표와 한 줄 요약, 접힌 동안은 본문과 제목 줄 도구(기간 선택 등)를 숨긴다 */
.g-fold .g-section__head { justify-content: flex-start; align-items: baseline; cursor: pointer; }
.g-fold .g-section__head > h2 { margin: 0; }
.g-fold__btn { all: unset; box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; margin-right: 10px; cursor: pointer; align-self: center; border-radius: 4px; }
.g-fold__btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.g-fold__caret { width: 0; height: 0; border-left: 6px solid var(--ink-2); border-top: 5px solid transparent; border-bottom: 5px solid transparent; transition: transform .2s; }
.g-fold:not(.is-collapsed) .g-fold__caret { transform: rotate(90deg); }
.g-fold__summary { margin-left: 14px; font-size: .875rem; color: var(--mute); font-variant-numeric: tabular-nums; }
.g-fold.is-collapsed .g-fold__summary { color: var(--ink-2); }
.g-fold:not(.is-collapsed) .g-fold__summary { display: none; }
.g-fold.is-collapsed .g-section__head { margin-bottom: 0; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.g-fold.is-collapsed .g-section__tools, .g-fold.is-collapsed .tech-range, .g-fold.is-collapsed .g-section__head > .seg { display: none; }
.g-fold:not(.is-collapsed) .tech-range, .g-fold:not(.is-collapsed) .g-section__tools, .g-fold:not(.is-collapsed) .g-section__head > .seg { margin-left: auto; }
.g-fold__body[hidden] { display: none; }
.g-subnav__tools { margin-left: auto; display: inline-flex; gap: 12px; align-items: center; flex: none; padding-left: 16px; }
@media (max-width: 640px) { .g-fold__summary { display: block; margin: 4px 0 0 32px; flex-basis: 100%; } .g-fold .g-section__head { flex-wrap: wrap; } }

/* ===== 뉴스, 경제 일정 (예전 gold-feed.css) ===== */
/* ---------- 뉴스: "쉽게 읽기" ---------- */
.news-easy { justify-self: start; margin-top: 6px; display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: var(--radius-pill); border: 1px solid var(--line-strong); font-size: .8125rem; font-weight: 600; color: var(--accent); transition: border-color .2s, background .2s; }
.news-easy::after { content: "\2192"; }
.news-easy:hover { border-color: var(--accent); background: var(--accent-soft); }

/* ---------- 경제 일정: 타임라인 ---------- */
.cal-timeline { --cal-time: 56px; --cal-gap: 14px; --cal-mark: 14px; --cal-line-x: calc(var(--cal-time) + var(--cal-gap) + (var(--cal-mark) / 2) - 1px);
  list-style: none; margin: 0; padding: 0; }
.cal-day + .cal-day { margin-top: 8px; }
.cal-day__head { margin: 0; padding: 18px 0 8px; font-size: .9375rem; font-weight: 650; letter-spacing: -0.01em; color: var(--ink); display: flex; align-items: center; gap: 10px; }
.cal-day__today { display: inline-flex; padding: 2px 10px; border-radius: var(--radius-pill); background: var(--accent-soft); color: var(--accent); font-size: .75rem; font-weight: 700; }

.cal-timeline .cal-list { list-style: none; margin: 0; padding: 0; }
.cal-timeline .cal-item { position: relative; display: grid; grid-template-columns: var(--cal-time) var(--cal-mark) minmax(0, 1fr) auto; column-gap: var(--cal-gap); align-items: start; padding: 12px 0 14px; border-bottom: 0; font-size: .9375rem; }
.cal-timeline .cal-item::before { content: ""; position: absolute; left: var(--cal-line-x); top: 0; bottom: 0; width: 2px; background: var(--line); }
.cal-timeline .cal-item:first-child::before { top: 19px; }
.cal-timeline .cal-item:last-child::before { bottom: auto; height: 19px; }
.cal-timeline .cal-item:first-child:last-child::before { display: none; }

.cal-timeline .cal-when { grid-column: 1; padding-top: 1px; font-size: .875rem; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.cal-mark { grid-column: 2; position: relative; z-index: 1; width: var(--cal-mark); height: var(--cal-mark); margin-top: 4px; border-radius: 50%; border: 2px solid var(--line-strong); background: var(--bg); box-sizing: border-box; }
.cal-item--done .cal-mark { background: var(--accent); border-color: var(--accent); }
.cal-timeline .cal-name { grid-column: 3; }
.cal-timeline .cal-item > .tag { grid-column: 4; }

@media (max-width: 640px) {
  .cal-timeline { --cal-time: 46px; --cal-gap: 10px; }
  .cal-timeline .cal-item { grid-template-columns: var(--cal-time) var(--cal-mark) minmax(0, 1fr); }
  .cal-timeline .cal-when { grid-column: 1; }
  .cal-timeline .cal-item > .tag { grid-column: 3; grid-row: 2; justify-self: start; margin-top: 2px; }
}

@media (prefers-reduced-motion: reduce) {
  .news-easy { transition: none; }
}
