:root {
  --ink: #0d1726;
  --ink-2: #334155;
  --muted: #64748b;
  --line: #e5e8ee;
  --bg: #ffffff;
  --bg-soft: #f5f7fa;
  --accent: #1f5eff;
  --accent-ink: #0b3bd1;
  --up: #0e9f6e;
  --test: #d97706;
  --down: #dc2626;
  --radius: 14px;
  --maxw: 1180px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; color: var(--ink); background: var(--bg);
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  font-size: 16px; line-height: 1.7; word-break: keep-all; overflow-wrap: anywhere;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.muted { color: var(--muted); }

/* header */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.92); backdrop-filter: saturate(180%) blur(10px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: var(--ink); color: #fff; font-size: 13px; letter-spacing: .5px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; font-size: 17px; }
.brand-text small { font-size: 11px; font-weight: 600; color: var(--accent); letter-spacing: .2px; margin-top: 2px; }
.nav { display: flex; gap: 4px; overflow-x: auto; }
.nav a { padding: 8px 12px; border-radius: 8px; font-weight: 600; font-size: 15px; color: var(--ink-2); white-space: nowrap; }
.nav a:hover, .nav a.on { background: var(--bg-soft); color: var(--ink); }

/* hero */
.hero { background: radial-gradient(1200px 400px at 80% -10%, rgba(31,94,255,.18), transparent 60%), linear-gradient(180deg, #0b1422 0%, #0d1a2e 100%); color: #fff; padding: 72px 0 64px; margin-bottom: 40px; }
.eyebrow { text-transform: uppercase; letter-spacing: 2px; font-size: 12px; font-weight: 700; color: #8fb0ff; margin: 0 0 12px; }
.hero h1 { font-size: clamp(34px, 6vw, 56px); line-height: 1.15; margin: 0 0 18px; letter-spacing: -1px; }
.hero-lead { max-width: 640px; font-size: 18px; color: #c9d4e5; margin: 0 0 28px; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.btn { display: inline-flex; align-items: center; justify-content: center; padding: 11px 18px; border-radius: 10px; background: var(--accent); color: #fff; font-weight: 700; font-size: 15px; white-space: nowrap; }
.btn:hover { background: var(--accent-ink); }
.btn.ghost { background: transparent; border: 1px solid rgba(255,255,255,.35); }
.btn.ghost:hover { background: rgba(255,255,255,.08); }

/* sections */
section.wrap { margin-bottom: 56px; }
.page-title { font-size: 32px; margin: 36px 0 6px; letter-spacing: -.5px; }
.lead { color: var(--muted); margin: 0 0 20px; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 12px; }
.sec-head a { color: var(--accent); font-weight: 600; font-size: 14px; }
.sec-title { font-size: 22px; margin: 0 0 12px; letter-spacing: -.3px; }
.empty { color: var(--muted); padding: 24px 0; }

.sector-nav { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 20px; }
.sector-nav a { border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.sector-nav a span { color: var(--muted); font-weight: 500; margin-left: 2px; }
.sector-nav a.on, .sector-nav a:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.sector-nav a.on span, .sector-nav a:hover span { color: #cbd5e1; }

/* cards */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; transition: transform .15s, box-shadow .15s; }
.card:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(13,23,38,.08); }
.card-thumb { position: relative; aspect-ratio: 4 / 3; background: var(--bg-soft); overflow: hidden; }
.card-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.card-sector { position: absolute; left: 12px; top: 12px; background: rgba(13,23,38,.85); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.card-body { padding: 14px 16px 16px; }
.card-meta { font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.card h3 { font-size: 17px; line-height: 1.45; margin: 0 0 10px; letter-spacing: -.2px; }
.chips { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.chip { font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 6px; }
.chip.v-강화 { background: #e7f7f0; color: var(--up); }
.chip.v-시험 { background: #fff4e5; color: var(--test); }
.chip.v-약화 { background: #fdecec; color: var(--down); }

/* rows */
.rows { border-top: 1px solid var(--line); }
.row { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 14px 4px; border-bottom: 1px solid var(--line); }
.row:hover .row-title { color: var(--accent); }
.row-type { font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 6px; background: var(--bg-soft); color: var(--ink-2); }
.row-type.t-column { background: #eef3ff; color: var(--accent); }
.row-title { font-weight: 600; }
.row-date { font-size: 13px; color: var(--muted); }

.two-col { display: grid; grid-template-columns: 1fr 320px; gap: 32px; align-items: start; }

/* CTA */
.cta { display: flex; gap: 16px; align-items: center; justify-content: space-between; background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; margin: 36px 0 12px; }
.cta p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.cta.vertical { flex-direction: column; align-items: flex-start; margin: 0; }

/* post */
.post { padding-bottom: 12px; }
.crumbs { font-size: 14px; color: var(--muted); margin: 32px 0 10px; }
.crumbs a:hover { color: var(--accent); }
.post h1 { font-size: clamp(26px, 4vw, 34px); line-height: 1.35; margin: 0 0 12px; letter-spacing: -.6px; }
.post-meta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; font-size: 14px; color: var(--muted); padding-bottom: 20px; border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.prose { font-size: 17px; }
.prose > p:first-child { font-size: 18px; color: var(--ink-2); }
.prose h2 { font-size: 21px; line-height: 1.45; margin: 44px 0 14px; padding-top: 22px; border-top: 1px solid var(--line); letter-spacing: -.3px; }
.prose h3 { font-size: 18px; margin: 28px 0 10px; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li { margin: 4px 0; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.prose blockquote { margin: 16px 0; padding: 4px 16px; border-left: 3px solid var(--line); color: var(--ink-2); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 32px 0; }
.prose img { border-radius: 10px; }

.gallery { margin: 28px 0 8px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.gallery img { border-radius: 10px; border: 1px solid var(--line); }
.gallery figcaption { grid-column: 1 / -1; font-size: 13px; color: var(--muted); text-align: center; }

.diag { margin: 18px 0 12px; padding: 14px 16px; border-radius: 12px; background: var(--bg-soft); border-left: 4px solid var(--muted); }
.diag p { margin: 4px 0 0; font-size: 16px; }
.diag-label { font-size: 13px; font-weight: 700; color: var(--ink-2); letter-spacing: .3px; }
.diag-label b { margin-left: 4px; }
.diag.v-강화 { border-left-color: var(--up); background: #f1fbf6; }
.diag.v-강화 .diag-label b { color: var(--up); }
.diag.v-시험 { border-left-color: var(--test); background: #fff8ee; }
.diag.v-시험 .diag-label b { color: var(--test); }
.diag.v-약화 { border-left-color: var(--down); background: #fef3f3; }
.diag.v-약화 .diag-label b { color: var(--down); }

.stocks { margin: 0 0 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; }
.stocks-label { font-size: 13px; font-weight: 700; color: var(--accent); margin-bottom: 4px; }
.stocks ul { margin: 0; padding-left: 1.1em; font-size: 15.5px; }

.disclaimer { font-size: 13px; color: var(--muted); margin-top: 8px; }

/* footer */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-soft); padding: 36px 0 28px; margin-top: 40px; }
.footer-inner { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-inner p { margin: 10px 0 0; font-size: 14px; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.footer-links a:hover { color: var(--accent); }
.fine { font-size: 12px; color: var(--muted); margin-top: 22px; }

@media (max-width: 960px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .two-col { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .grid { grid-template-columns: 1fr; }
  .header-inner { height: auto; padding-top: 10px; padding-bottom: 8px; flex-direction: column; align-items: flex-start; gap: 6px; }
  .nav { width: 100%; margin-left: -12px; }
  .hero { padding: 48px 0 44px; }
  .gallery { grid-template-columns: 1fr; }
  .cta { flex-direction: column; align-items: flex-start; }
  .row { grid-template-columns: auto 1fr; }
  .row-date { grid-column: 2; }
}

/* ---------- 시황 세트 글: 카드 캐러셀 · 뉴스 사이드바 · 뉴스별 대표 카드 (2026-09-24) ---------- */
.post-set h1 { max-width: 920px; }
.post-lead { font-size: 18px; line-height: 1.75; color: var(--ink-2); max-width: 820px; margin: 0 0 28px; }

.cc { --cc-w: min(400px, 68vw); background: #1d2025; border: 1px solid #2c3036; border-radius: 22px; padding: 28px 0 22px; margin: 8px 0 44px; color: #cbd2dc; overflow: hidden; }
.cc-stage { position: relative; }
.cc-track { position: relative; height: calc(var(--cc-w) * 1.25); outline: none; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.cc-track:focus-visible { box-shadow: inset 0 0 0 2px #ff4d3d; border-radius: 12px; }
.cc-slide { position: absolute; top: 0; left: 50%; width: var(--cc-w); margin: 0; transform: translateX(-50%) scale(.7); opacity: 0; transition: transform .45s cubic-bezier(.2,.7,.2,1), opacity .35s, filter .35s; pointer-events: none; }
.cc-slide img { width: 100%; height: auto; border-radius: 14px; border: 1px solid rgba(255,255,255,.14); box-shadow: 0 18px 50px rgba(0,0,0,.45); background: #111; }
.cc-slide[data-offset="0"] { transform: translateX(-50%) scale(1); opacity: 1; z-index: 3; pointer-events: auto; cursor: zoom-in; }
.cc-slide[data-offset="-1"], .cc-slide[data-offset="1"] { opacity: .42; z-index: 2; pointer-events: auto; cursor: pointer; filter: saturate(.6) brightness(.8); }
.cc-slide[data-offset="-1"] { transform: translateX(calc(-50% - var(--cc-w) * .8)) scale(.8); }
.cc-slide[data-offset="1"] { transform: translateX(calc(-50% + var(--cc-w) * .8)) scale(.8); }
.cc-slide[data-offset="-2"] { transform: translateX(calc(-50% - var(--cc-w) * 1.4)) scale(.66); }
.cc-slide[data-offset="2"] { transform: translateX(calc(-50% + var(--cc-w) * 1.4)) scale(.66); }
.cc-nav { position: absolute; top: 50%; z-index: 5; transform: translateY(-50%); width: 52px; height: 72px; border: 0; border-radius: 14px; background: #fff; color: #111; font-size: 34px; line-height: 1; cursor: pointer; box-shadow: 0 6px 20px rgba(0,0,0,.35); }
.cc-nav:hover { background: #f1f3f6; }
.cc-prev { left: max(10px, calc(50% - var(--cc-w) / 2 - 76px)); }
.cc-next { right: max(10px, calc(50% - var(--cc-w) / 2 - 76px)); }
.cc-caption { max-width: 700px; min-height: 50px; margin: 18px auto 0; padding: 0 20px; text-align: center; font-size: 15px; line-height: 1.6; color: #d7dde6; }
.cc-cap { display: none; margin: 0; }
.cc-cap.is-current { display: block; }
.cc-cap b { color: #fff; }
.cc-jump { margin-left: 6px; color: #ff6b5b; font-weight: 700; white-space: nowrap; }
.cc-jump:hover { color: #ff8b7e; }
.cc-dots { display: flex; flex-wrap: wrap; justify-content: center; gap: 9px; margin-top: 14px; padding: 0 16px; }
.cc-dot { width: 10px; height: 10px; padding: 0; border: 0; border-radius: 50%; background: #4a5059; cursor: pointer; transition: transform .2s, background .2s; }
.cc-dot.is-current { background: #ff4d3d; transform: scale(1.35); }
.cc-hint { margin: 10px 0 0; text-align: center; font-size: 13px; color: #8b93a0; }

.news-layout { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 40px; align-items: start; }
.nn { position: sticky; top: calc(var(--header-h, 64px) + 20px); display: flex; flex-direction: column; gap: 8px; max-height: calc(100vh - var(--header-h, 64px) - 40px); overflow: auto; padding: 16px; border-radius: 18px; background: #0d1726; color: #e2e8f0; box-shadow: 0 12px 32px rgba(13,23,38,.2); }
.nn-title { margin: 2px 4px 6px; font-size: 13px; font-weight: 800; letter-spacing: .06em; color: #93a4bd; }
.nn-item { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border: 1px solid rgba(255,255,255,.06); border-radius: 12px; background: rgba(255,255,255,.04); transition: background .15s, border-color .15s, transform .15s, box-shadow .15s; }
.nn-item:hover { background: rgba(255,255,255,.1); transform: translateX(2px); }
.nn-item.is-spy:not(.is-on) { border-color: rgba(255,255,255,.4); background: rgba(255,255,255,.09); }
.nn-item.is-on { border-color: #1f5eff; background: #1f5eff; box-shadow: 0 8px 20px rgba(31,94,255,.45); }
.nn-num { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: rgba(255,255,255,.12); color: #fff; font-size: 15px; font-weight: 800; }
.nn-item.is-on .nn-num { background: #fff; color: #1f5eff; }
.nn-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.nn-tags { display: flex; gap: 6px; }
.nn-text { display: -webkit-box; overflow: hidden; color: #fff; font-size: 14px; font-weight: 700; line-height: 1.45; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.nn-sub { font-size: 12px; color: #93a4bd; }
.nn-item.is-on .nn-sub { color: #dbe6ff; }

.mk, .vd { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 6px; font-size: 11.5px; font-weight: 800; white-space: nowrap; }
.mk { background: #e3ecff; color: #1d3f9a; }
.mk-us { background: #ece9ff; color: #4338ca; }
.mk-cn { background: #fde8e8; color: #b42318; }
.mk-etc { background: #eef2f6; color: #475569; }
.vd.v-강화 { background: #e2f6ec; color: #067a52; }
.vd.v-시험 { background: #fff1dc; color: #b45309; }
.vd.v-중립 { background: #eef2f6; color: #475569; }
.vd.v-약화 { background: #fde8e8; color: #b42318; }

.news { padding: 6px 0 36px; margin-bottom: 36px; border-bottom: 1px solid var(--line); scroll-margin-top: calc(var(--header-h, 64px) + 28px); }
.news:last-child { border-bottom: 0; margin-bottom: 0; }
.news-head { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 18px; }
.news-num { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--ink); color: #fff; font-size: 20px; font-weight: 800; }
.news-tags { display: flex; gap: 6px; margin-bottom: 6px; }
.news-head h2 { margin: 0; font-size: clamp(21px, 2.6vw, 27px); line-height: 1.4; letter-spacing: -.4px; }
.news-card { margin: 0 0 26px; }
.news-card-btn { display: block; width: 100%; max-width: 520px; margin: 0 auto; padding: 0; border: 0; background: none; cursor: zoom-in; }
.news-card img { width: 100%; height: auto; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 16px 40px rgba(13,23,38,.16); }
.news-detail { max-width: 780px; font-size: 17px; line-height: 1.85; color: var(--ink); }
.news-detail p { margin: 0 0 6px; }
.hc { max-width: 780px; margin: 24px 0 18px; padding: 16px 18px; border-left: 5px solid #64748b; border-radius: 14px; background: #f1f5f9; }
.hc.v-강화 { border-left-color: var(--up); background: #ecfbf4; }
.hc.v-시험 { border-left-color: var(--test); background: #fff7eb; }
.hc.v-약화 { border-left-color: var(--down); background: #fdf0f0; }
.hc-label { margin-bottom: 6px; font-size: 13px; font-weight: 800; color: var(--ink-2); }
.hc-label b { margin-left: 6px; padding: 1px 8px; border-radius: 6px; background: #fff; }
.hc.v-강화 .hc-label b { color: #067a52; }
.hc.v-시험 .hc-label b { color: #b45309; }
.hc p { margin: 0 0 4px; font-size: 16px; line-height: 1.75; color: var(--ink); }
.stk { max-width: 780px; margin: 0 0 18px; }
.stk-label { margin-bottom: 8px; font-size: 13px; font-weight: 800; color: var(--muted); }
.stk ul { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.st { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.st-impact { align-self: flex-start; padding: 1px 8px; border-radius: 999px; color: #fff; font-size: 11.5px; font-weight: 800; }
.st-impact.up { background: var(--up); }
.st-impact.down { background: var(--down); }
.st-name { font-size: 15px; font-weight: 800; }
.st-name a { color: var(--ink); text-decoration: underline; text-decoration-color: rgba(31,94,255,.35); text-underline-offset: 3px; }
.st-name a:hover { color: var(--accent); }
.st-name small { margin-left: 6px; font-size: 12px; font-weight: 600; color: var(--muted); }
.st-reason { font-size: 14px; line-height: 1.55; color: var(--ink-2); }
.news-all { display: none; margin-top: 8px; font-size: 14px; font-weight: 700; color: var(--accent); }
.news-list[data-focus] .news-all { display: inline-block; }
.news-list[data-focus] .news { border-bottom: 0; }

.lb { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 24px; background: rgba(8,10,14,.93); }
.lb[hidden] { display: none; }
.lb-fig { display: flex; flex-direction: column; align-items: center; gap: 12px; max-width: min(92vw, 720px); margin: 0; }
.lb-fig img { width: auto; max-width: 100%; max-height: 84vh; border-radius: 12px; box-shadow: 0 20px 60px rgba(0,0,0,.6); }
.lb-fig figcaption { font-size: 14px; text-align: center; color: #d7dde6; }
.lb-close { position: fixed; top: 16px; right: 16px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: #fff; font-size: 28px; line-height: 1; cursor: pointer; }
.lb-nav { position: fixed; top: 50%; transform: translateY(-50%); width: 48px; height: 64px; border: 0; border-radius: 12px; background: rgba(255,255,255,.92); font-size: 30px; cursor: pointer; }
.lb-prev { left: 16px; }
.lb-next { right: 16px; }
html.lb-open { overflow: hidden; }

@media (max-width: 899px) {
  .news-layout { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .nn { top: calc(var(--header-h, 64px) + 6px); z-index: 10; flex-direction: row; max-height: none; overflow-x: auto; overflow-y: hidden; margin: 0 -8px; padding: 10px; gap: 8px; border-radius: 14px; scrollbar-width: none; }
  .nn::-webkit-scrollbar { display: none; }
  .nn-title { display: none; }
  .nn-item { flex: none; width: 200px; padding: 9px 10px; }
  .nn-item.nn-all { width: auto; }
  .nn-item:hover { transform: none; }
  .nn-text { font-size: 13px; }
  .news { scroll-margin-top: calc(var(--header-h, 64px) + 96px); }
  .cc { margin: 8px -8px 32px; padding: 18px 0 16px; border-radius: 16px; }
  .cc-nav { width: 40px; height: 56px; font-size: 26px; }
  .news-detail { font-size: 16px; }
  .lb-nav { width: 40px; height: 52px; }
}
