/* ==========================================================================
   Transition Radar — 화면 디자인
   매거진 Transition 과 같은 체계를 쓴다.
   - 색: 밤 남색, 종이색, 호박색 강조
   - 글꼴: 제호·큰 숫자 League Gothic, 제목 Hahmlet, 본문·표 IBM Plex Sans KR
   - 선: 가는 선 1px, 구획 선 2px, 강조 선 4px
   지도는 상자에 넣지 않는다. 머리말의 남색 바탕에 육지를 바로 그려 배경과 이어지게 한다.
   지도의 점 색은 세 묶음(전환 기술, 석유·가스, 전력·물·산업)에만 주고,
   묶음 안의 분야는 모양으로 나눈다. 색 열 개는 서로 구분되지 않기 때문이다.
   ========================================================================== */

:root {
  color-scheme: light;
  --night: #0A1420; --navy: #10233B; --mist: #AEBBCB; --soft: #D5DDE6;
  --paper: #F2EFE9; --white: #FFFFFF; --ink: #10151B; --ink2: #56616D; --rule: #D9D3C7;
  --amber: #F7A823; --amber-ink: #955400;
  --f-mast: "League Gothic", "Bahnschrift Condensed", "Arial Narrow", sans-serif;
  --f-head: "Hahmlet", "Noto Serif KR", "Nanum Myeongjo", Batang, serif;
  --f-sans: "IBM Plex Sans KR", "Pretendard Variable", Pretendard, "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  --f-cond: "IBM Plex Sans Condensed", "IBM Plex Sans KR", "Malgun Gothic", sans-serif;
  --gutter: 40px;
  --shell: min(1320px, calc(100% - 2 * var(--gutter)));
  --edge: max(var(--gutter), calc((100% - 1320px) / 2));
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; background: var(--night); }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 15px/1.6 var(--f-sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
button { padding: 0; border: 0; background: none; cursor: pointer; }
button:disabled { cursor: default; }
select, summary { cursor: pointer; }
h1, h2, h3, p, dl, dd, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
h1, h2, h3, p, dt, dd, li, td, th { word-break: keep-all; overflow-wrap: anywhere; }
:focus-visible { outline: 2px solid var(--amber-ink); outline-offset: 3px; }
[id] { scroll-margin-top: 76px; }
.shell { width: var(--shell); margin-inline: auto; }
.visually-hidden, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { position: fixed; z-index: 40; top: 12px; left: 12px; padding: 10px 14px; color: var(--ink); background: var(--white); }
.unknown { color: #626D79; }
.notice { padding: 24px 0; color: var(--ink2); }

/* 작은 머리표: 영문 대문자 + 한글 */
.kicker { display: flex; align-items: center; gap: 8px; font: 600 12px/1 var(--f-cond); letter-spacing: .2em; text-transform: uppercase; color: var(--amber-ink); }
.kicker::before { content: ""; width: 8px; height: 8px; flex: none; background: var(--amber); }
.kicker i { font: 600 12.5px/1 var(--f-sans); font-style: normal; letter-spacing: .02em; text-transform: none; color: var(--ink2); }
.glyph { width: 12px; height: 12px; flex: none; }

/* ---------- 머리 ---------- */
.site-header { position: sticky; z-index: 20; top: 0; color: #EDF2F7; background: rgba(10, 20, 32, .94); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(255, 255, 255, .08); }
.site-header :focus-visible, .stage :focus-visible, .site-footer :focus-visible { outline-color: var(--amber); }
.header-inner { display: flex; align-items: center; gap: 36px; min-height: 64px; }
.brand { padding-top: 3px; color: #fff; font: 400 31px/1 var(--f-mast); letter-spacing: .035em; text-decoration: none; white-space: nowrap; }
.brand span { margin-left: .3em; color: var(--amber); }
.main-nav { display: flex; align-items: center; gap: clamp(16px, 2.2vw, 34px); margin-left: auto; color: var(--mist); font-size: 14px; font-weight: 500; white-space: nowrap; }
.main-nav a { position: relative; display: grid; align-items: center; min-height: 44px; text-decoration: none; }
.main-nav a:hover, .main-nav a[aria-current] { color: #fff; }
.main-nav a[aria-current]::after { content: ""; position: absolute; left: 0; right: 0; bottom: 6px; height: 2px; background: var(--amber); }
.magazine-link { display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 6px 14px; border: 1px solid rgba(255, 255, 255, .32); border-radius: 2px; color: #fff; font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.magazine-link:hover { background: var(--amber); border-color: var(--amber); color: var(--night); }

/* ---------- 머리말 + 지도 (남색 바탕) ---------- */
.stage { position: relative; color: #EDF2F7; background: radial-gradient(95% 62% at 50% 76%, #15293F 0%, #0F1F31 44%, #0A1420 82%) #0A1420; }
.stage .kicker { color: var(--amber); }
.stage .kicker i { color: var(--soft); }
.hero { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr) minmax(0, .8fr); gap: clamp(24px, 3.2vw, 52px); align-items: end; padding: 30px 0 26px; }
.hero h1 { margin-top: 13px; font: 800 clamp(32px, 3.5vw, 52px)/1.18 var(--f-head); letter-spacing: -.045em; text-wrap: balance; }
.hero-deck { max-width: 31em; color: var(--soft); font-size: 15px; line-height: 1.72; text-wrap: pretty; }
.metrics { display: grid; grid-template-columns: repeat(4, auto); justify-content: space-between; gap: 0 16px; margin-top: 16px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .24); }
.metrics div { display: flex; flex-direction: column-reverse; justify-content: flex-end; }
.metrics dt { max-width: 8.6em; margin-top: 5px; color: var(--mist); font-size: 12px; line-height: 1.35; }
.metrics dd { display: flex; align-items: baseline; gap: 3px; }
.metrics b { color: var(--amber); font: 400 44px/.9 var(--f-mast); letter-spacing: .01em; }
.metrics dd span { color: var(--mist); font-size: 12px; }
.issue { position: relative; display: flex; align-items: flex-end; min-height: 172px; padding: 16px 18px; isolation: isolate; overflow: hidden; border-radius: 2px; color: #fff; text-decoration: none; background: #17324F url("art/panorama.jpg") 70% 64% / auto 210% no-repeat; }
.issue::before { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(0deg, rgba(10, 20, 32, .95) 0%, rgba(10, 20, 32, .6) 40%, rgba(10, 20, 32, .06) 78%); }
.issue small { display: block; color: var(--amber); font: 600 11.5px/1 var(--f-cond); letter-spacing: .16em; }
.issue strong { display: block; margin-top: 8px; font: 800 22px/1.25 var(--f-head); letter-spacing: -.035em; }
.issue em { display: inline-block; margin-top: 8px; font-size: 13px; font-style: normal; font-weight: 600; }
.issue:hover em { text-decoration: underline; text-underline-offset: 4px; }
.issue-credit { position: absolute; top: 8px; right: 8px; padding: 2px 6px; background: rgba(10, 20, 32, .62); color: var(--soft); font-size: 11px; }

/* 조건 고르기 */
.controls { display: grid; gap: 14px; padding-bottom: 14px; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.search { display: flex; flex: 1 1 250px; max-width: 380px; height: 44px; align-items: center; gap: 10px; padding: 0 12px; border: 1px solid rgba(255, 255, 255, .2); border-radius: 3px; background: rgba(255, 255, 255, .07); }
.search:focus-within { border-color: var(--amber); background: rgba(255, 255, 255, .11); }
.search svg { flex: 0 0 18px; height: 18px; color: var(--mist); }
.search input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; color: #fff; font-size: 14.5px; }
.search input::placeholder { color: #9FB0C2; }
.seg { display: flex; height: 44px; overflow: hidden; border: 1px solid rgba(255, 255, 255, .2); border-radius: 3px; }
.seg button { padding: 0 13px; border-left: 1px solid rgba(255, 255, 255, .14); color: var(--soft); font-size: 13.5px; font-weight: 500; white-space: nowrap; }
.seg button:first-child { border-left: 0; }
.seg button:hover { background: rgba(255, 255, 255, .09); color: #fff; }
.seg button[aria-pressed="true"] { background: var(--amber); color: var(--night); font-weight: 700; }
.seg button:focus-visible { outline-offset: -3px; }
.stage-select { display: none; }
.stage-select select { width: 100%; height: 44px; padding: 0 10px; border: 1px solid rgba(255, 255, 255, .2); border-radius: 3px; background: #14263A; color: #fff; font-size: 14px; }
.switch { display: inline-flex; align-items: center; gap: 9px; height: 44px; padding: 0 13px; border: 1px solid rgba(255, 255, 255, .2); border-radius: 3px; color: var(--soft); font-size: 13.5px; font-weight: 500; white-space: nowrap; cursor: pointer; }
.switch input { position: relative; flex: none; width: 30px; height: 18px; margin: 0; appearance: none; border-radius: 9px; background: rgba(255, 255, 255, .24); transition: background .15s; cursor: pointer; }
.switch input::after { content: ""; position: absolute; left: 2px; top: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: transform .15s; }
.switch input:checked { background: var(--amber); }
.switch input:checked::after { transform: translateX(12px); background: var(--night); }
.switch:has(input:checked) { border-color: rgba(247, 168, 35, .75); color: #fff; }
.count { margin-left: auto; color: var(--mist); font-size: 13.5px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.count b { margin-right: 1px; color: #fff; font: 400 27px/1 var(--f-mast); letter-spacing: .02em; }
.reset { height: 44px; padding: 0 14px; border: 1px solid rgba(255, 255, 255, .2); border-radius: 3px; color: var(--amber); font-size: 13.5px; font-weight: 600; }
.reset:not(:disabled):hover { border-color: var(--amber); }
.reset:disabled { opacity: .4; }
/* 분야: 범례이면서 고르는 단추 */
.legend { display: flex; flex-wrap: wrap; gap: 12px 30px; }
.legend-label { display: block; margin-bottom: 7px; color: var(--mist); font: 600 12px/1 var(--f-sans); letter-spacing: .02em; }
.legend-label::before { content: ""; display: inline-block; width: 14px; height: 3px; margin-right: 7px; vertical-align: 3.5px; background: var(--c); }
.legend-label:hover { color: #fff; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 11px 0 9px; border: 1px solid rgba(255, 255, 255, .17); border-radius: 16px; color: var(--soft); font-size: 13px; font-weight: 500; white-space: nowrap; }
.chip b { color: #93A5B9; font-size: 12px; font-weight: 500; font-variant-numeric: tabular-nums; }
.chip:hover { border-color: rgba(255, 255, 255, .55); color: #fff; }
.chip[aria-pressed="true"] { border-color: rgba(255, 255, 255, .78); background: rgba(255, 255, 255, .13); color: #fff; }
.legend.has-pick .chip[aria-pressed="false"] { opacity: .52; }
.chip.is-empty { opacity: .38; }

/* 지도 */
.atlas-wrap { position: relative; }
.atlas { position: relative; height: clamp(400px, calc(43.35vw + 56px), 920px); }
#atlas-canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; cursor: grab; touch-action: pan-y; }
#atlas-canvas.dragging { cursor: grabbing; }
#atlas-canvas.is-hit { cursor: pointer; }
#atlas-canvas:focus-visible { outline: 2px solid var(--amber); outline-offset: -3px; }
.map-tools { position: absolute; z-index: 3; left: var(--edge); bottom: 50px; display: grid; gap: 6px; }
.map-tools button { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid rgba(255, 255, 255, .24); border-radius: 3px; background: rgba(10, 20, 32, .74); backdrop-filter: blur(6px); color: #fff; font: 400 22px/1 var(--f-sans); }
.map-tools button:hover { border-color: var(--amber); }
.map-tools button:disabled { opacity: .4; }
.map-tools svg { width: 19px; height: 19px; }
.map-tooltip { position: absolute; z-index: 4; max-width: 290px; padding: 8px 11px 9px; border-radius: 2px; background: #fff; box-shadow: 0 8px 26px rgba(0, 0, 0, .42); color: var(--ink); font-size: 12.5px; line-height: 1.45; pointer-events: none; }
.map-tooltip strong { display: block; font-size: 13.5px; font-weight: 700; }
.map-tooltip span { color: var(--ink2); }
.map-hint { position: absolute; z-index: 4; left: 50%; top: 16px; padding: 7px 14px; transform: translateX(-50%); border: 1px solid rgba(255, 255, 255, .24); border-radius: 17px; background: rgba(10, 20, 32, .88); color: #fff; font-size: 13px; white-space: nowrap; pointer-events: none; }
.map-foot { position: absolute; z-index: 2; left: 0; right: 0; bottom: 14px; color: #93A5B9; font-size: 12px; pointer-events: none; }
.pip-key { position: relative; display: inline-block; width: 10px; height: 10px; margin: 0 6px 0 12px; border-radius: 50%; background: #6E88A4; vertical-align: -1px; }
.pip-key::after { content: ""; position: absolute; left: 3.5px; top: 3.5px; width: 3px; height: 3px; border-radius: 50%; background: #fff; }

/* 사업 정보 카드: 남색 지도 위에 놓인 흰 색인 카드 */
.card { position: absolute; z-index: 5; top: 14px; right: var(--edge); width: 392px; max-height: calc(100% - 28px); overflow: auto; overscroll-behavior: contain; border-top: 4px solid var(--amber); border-radius: 2px; background: #fff; box-shadow: 0 22px 60px rgba(0, 0, 0, .5); color: var(--ink); }
.card:focus { outline: none; }
/* 고른 점이 오른쪽에 있으면 카드를 왼쪽에 놓아 점을 가리지 않는다 */
.atlas-wrap.card-left .card { right: auto; left: var(--edge); }
.atlas-wrap.card-left .map-tools { left: auto; right: var(--edge); }
.card > :last-child { margin-bottom: 16px; }
.card a { color: var(--amber-ink); text-underline-offset: 2px; }
.card-head { position: relative; padding: 15px 46px 14px 18px; }
.card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 7px; color: var(--ink2); font-size: 12.5px; font-weight: 600; }
.card-meta span + span::before { content: "·"; margin-right: 7px; color: #9AA3AD; }
.card-close { position: absolute; top: 7px; right: 7px; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 2px; color: var(--ink2); font-size: 23px; line-height: 1; }
.card-close:hover { background: var(--paper); color: var(--ink); }
.card h3 { margin-top: 8px; font: 800 21px/1.28 var(--f-head); letter-spacing: -.04em; }
.card-app { margin-top: 5px; color: var(--ink2); font-size: 13.5px; line-height: 1.5; }
.card-stage { display: flex; flex-wrap: wrap; align-items: center; gap: 3px 8px; margin-top: 11px; font-size: 13px; }
.card-stage b { font-weight: 700; }
.card-stage .stage-note { color: var(--ink2); }
.card-figures { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; padding: 12px 18px 13px; background: var(--paper); }
.card-figures div:only-child { grid-column: 1 / -1; }
.card-figures dt { color: var(--ink2); font-size: 12px; font-weight: 600; }
.card-figures dd { margin-top: 3px; font-size: 13px; }
.card-figures b { margin-right: 3px; font: 400 30px/1 var(--f-mast); letter-spacing: .02em; }
.card-facts { display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 9px 12px; padding: 14px 18px 0; font-size: 13.5px; line-height: 1.5; }
.card-facts dt { padding-top: 1px; font-size: 12.5px; font-weight: 700; }
.card-facts dd { color: #2B343D; }
.card-summary { margin: 13px 18px 0; padding-top: 12px; border-top: 1px solid var(--rule); color: #2B343D; font-size: 13.5px; line-height: 1.62; }
.card-facts.sub { margin: 13px 18px 0; padding: 12px 0 0; border-top: 1px solid var(--rule); font-size: 12.5px; }
.card-facts.sub dt { color: var(--ink2); font-size: 12px; font-weight: 600; }
.card-notes { margin: 12px 18px 0; color: var(--ink2); font-size: 12.5px; line-height: 1.55; }
.card-notes summary { color: var(--amber-ink); font-weight: 600; }
.card-notes p { margin-top: 6px; }
.stage-dots { display: inline-flex; gap: 3px; margin-right: 7px; vertical-align: 1px; }
.stage-dots i { width: 7px; height: 7px; border: 1px solid #8B95A1; border-radius: 50%; }
.stage-dots i.on { border-color: var(--amber-ink); background: var(--amber); }

/* ---------- 종이색 본문 ---------- */
.section { padding-top: 78px; }
.section.last { padding-bottom: 72px; }
.section-head { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 14px 48px; align-items: end; margin-bottom: 26px; padding-top: 16px; border-top: 2px solid var(--ink); }
.section-head h2 { margin-top: 11px; font: 800 clamp(28px, 2.9vw, 42px)/1.18 var(--f-head); letter-spacing: -.045em; }
.section-head .lede { justify-self: end; max-width: 38em; color: var(--ink2); font-size: 15px; text-wrap: pretty; }
.section-note { margin-top: 10px; color: var(--ink2); font-size: 12.5px; }

/* 프로젝트 목록 */
.ledger-tools { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 36px; margin-bottom: 10px; color: var(--ink2); font-size: 13.5px; }
.ledger-tools b { color: var(--ink); font-weight: 700; }
.sort { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.sort select { height: 36px; padding: 0 8px; border: 1px solid #B9B2A4; border-radius: 2px; background: #fff; font-size: 13.5px; }
.ledger { width: 100%; border-collapse: collapse; font-size: 13.5px; line-height: 1.45; }
.ledger thead th { padding: 0 14px 9px 0; border-bottom: 2px solid var(--ink); color: var(--ink2); font-size: 12px; font-weight: 600; letter-spacing: .02em; text-align: left; white-space: nowrap; }
.ledger tbody th, .ledger td { padding: 13px 14px 14px 0; border-bottom: 1px solid var(--rule); font-weight: 400; text-align: left; vertical-align: top; }
.ledger tbody tr { cursor: pointer; }
.ledger tbody tr:hover { background: #fff; }
.ledger tbody tr[aria-current="true"] { background: #fff; box-shadow: inset 4px 0 var(--amber); }
.ledger .c-name { width: 28%; padding-left: 14px; }
.ledger .c-sector { width: 11%; white-space: nowrap; }
.ledger .c-country { width: 11%; }
.ledger .c-stage { width: 12%; white-space: nowrap; }
.ledger .c-owner { width: 14%; }
.ledger .c-amount { width: 10%; padding-right: 14px; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.row-open { display: block; font-size: 15px; font-weight: 700; letter-spacing: -.015em; line-height: 1.36; text-align: left; }
.row-app { display: block; margin-top: 2px; color: var(--ink2); font-size: 13px; }
.row-meta { display: none; }
.c-sector .glyph { margin-right: 6px; vertical-align: -1px; }
.c-country small { color: var(--ink2); font-size: 12.5px; }
/* 긴 칸은 세 줄까지만 보여 준다. 전체 내용은 줄을 누르면 카드에 나온다 */
.clamp { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; }
.c-country .clamp { -webkit-line-clamp: 2; line-clamp: 2; }
.c-owner, .c-epc { color: #2B343D; }
.c-amount b { font: 400 22px/1 var(--f-mast); letter-spacing: .02em; }
.c-amount small { display: block; margin-top: 2px; color: var(--ink2); font-size: 12px; }
.badge-kr { display: inline-block; margin-left: 6px; padding: 0 5px; border: 1px solid var(--ink); border-radius: 2px; font-size: 11.5px; font-weight: 600; line-height: 1.5; white-space: nowrap; vertical-align: 1px; }
.ledger .empty { padding: 30px 14px; color: var(--ink2); cursor: default; }
.ledger .empty button { margin-left: 10px; padding: 6px 12px; border: 1px solid var(--ink); border-radius: 2px; font-weight: 600; }
.more { display: block; margin: 22px auto 0; padding: 12px 24px; border: 1px solid var(--ink); border-radius: 2px; font-size: 14px; font-weight: 600; }
.more:hover { background: var(--ink); color: #fff; }

/* 막대: 가늘게, 바탕선에 붙여서 */
.bar { display: block; height: 6px; }
.bar i { display: block; width: var(--w); height: 100%; border-radius: 0 3px 3px 0; background: var(--c, var(--navy)); transform-origin: left center; }
[data-reveal] .bar i { transform: scaleX(0); transition: transform .9s cubic-bezier(.2, .7, .2, 1); transition-delay: calc(var(--i, 0) * 45ms); }
[data-reveal].is-in .bar i { transform: none; }

/* 분야별 규모 */
.table-hint { display: none; margin-bottom: 6px; color: var(--ink2); font-size: 12.5px; }
.sector-table-wrap { overflow-x: auto; }
.sector-table { width: 100%; min-width: 720px; border-collapse: collapse; text-align: right; font-size: 14px; font-variant-numeric: tabular-nums; }
.sector-table th, .sector-table td { padding: 11px 14px 12px; border-bottom: 1px solid var(--rule); font-weight: 400; }
.sector-table th:first-child { padding-left: 14px; text-align: left; }
.sector-table thead th { padding-top: 0; padding-bottom: 9px; border-bottom: 2px solid var(--ink); color: var(--ink2); font-size: 12px; font-weight: 600; letter-spacing: .02em; white-space: nowrap; }
.sector-table thead button { color: inherit; font-weight: 600; }
.sector-table thead button:hover { color: var(--ink); }
.sector-table thead [aria-sort] button { color: var(--ink); }
.sector-table thead [aria-sort="descending"] button::after { content: " ↓"; }
.sector-table thead [aria-sort="ascending"] button::after { content: " ↑"; }
.sector-table tbody tr:hover { background: #fff; }
.sector-table tbody th button { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 700; text-align: left; }
.sector-table tbody th button:hover { text-decoration: underline; text-underline-offset: 3px; }
.sector-table tbody th small { display: block; margin: 1px 0 0 20px; color: var(--ink2); font-size: 12px; font-weight: 400; }
.sector-table td.n b { font: 400 22px/1 var(--f-mast); letter-spacing: .02em; }
.amount { display: grid; grid-template-columns: 98px minmax(60px, 1fr); align-items: center; gap: 12px; white-space: nowrap; }
.amount-epc .bar i { background: #DE9717; }
.sector-table tfoot th, .sector-table tfoot td { border-bottom: 0; border-top: 2px solid var(--ink); font-weight: 700; }

/* 국내 참여와 단계 */
.analysis { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 56px; }
.panel h3, .method h3 { font: 800 20px/1.3 var(--f-head); letter-spacing: -.035em; }
.panel > p, .method p { margin-top: 7px; color: var(--ink2); font-size: 14px; text-wrap: pretty; }
.rank { margin-top: 18px; border-top: 1px solid var(--ink); }
.rank li { display: grid; grid-template-columns: 26px minmax(104px, .9fr) minmax(40px, 2fr) 34px; align-items: center; gap: 10px; padding: 8px 0 9px; border-bottom: 1px solid var(--rule); font-size: 14px; }
.rank .rk { color: var(--ink2); font: 400 17px/1 var(--f-mast); letter-spacing: .03em; }
.rank .nm { font-weight: 600; }
.rank b { font: 400 21px/1 var(--f-mast); letter-spacing: .02em; text-align: right; }
.pipe { display: flex; gap: 2px; height: 58px; margin-top: 18px; clip-path: inset(0 0 0 0); }
[data-reveal] .pipe { clip-path: inset(0 100% 0 0); transition: clip-path 1.1s cubic-bezier(.2, .7, .2, 1) .1s; }
[data-reveal].is-in .pipe { clip-path: inset(0 0 0 0); }
.pipe button { display: flex; flex: var(--n) 1 0; min-width: 30px; align-items: flex-end; padding: 0 8px 7px; background: var(--c); color: var(--t); font: 400 25px/1 var(--f-mast); letter-spacing: .02em; }
.pipe button:hover { filter: brightness(1.12); }
.pipe button:focus-visible { outline-offset: -3px; outline-color: var(--amber); }
.pipe-key { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0 12px; margin-top: 12px; }
.pipe-key button { display: block; width: 100%; padding-top: 8px; border-top: 4px solid var(--c); text-align: left; }
.pipe-key strong { display: block; font-size: 14px; font-weight: 700; }
.pipe-key span { display: block; margin-top: 2px; color: var(--ink2); font-size: 12.5px; line-height: 1.4; }
.pipe-key button:hover strong { text-decoration: underline; text-underline-offset: 3px; }
.pipe-sum { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; margin-top: 30px; padding-top: 16px; border-top: 1px solid var(--ink); }
.pipe-sum dt { color: var(--ink2); font-size: 13px; font-weight: 600; }
.pipe-sum dd { font-size: 14px; }
.pipe-sum b { margin-right: 3px; font: 400 54px/1.05 var(--f-mast); letter-spacing: .01em; }
.pipe-sum .sub { margin-top: 2px; color: var(--ink2); font-size: 13px; }

/* 데이터 안내 */
.method { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 36px; }
.method article { padding-top: 14px; border-top: 1px solid var(--ink); }
.method .fact { color: var(--ink); font-size: 13px; font-weight: 600; }
.note { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 14px 40px; align-items: start; margin-top: 46px; padding: 30px 34px 32px; border-radius: 2px; background: var(--night); color: #EDF2F7; }
.note .kicker { margin-top: 6px; color: var(--amber); }
.note .kicker i { color: var(--soft); }
.note h3 { font: 800 23px/1.3 var(--f-head); letter-spacing: -.04em; }
.note div p { max-width: 58em; margin-top: 8px; color: var(--soft); font-size: 14.5px; line-height: 1.72; text-wrap: pretty; }

/* ---------- 바닥 ---------- */
.site-footer { background: var(--night); color: var(--mist); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 28px; min-height: 96px; padding: 22px 0; font-size: 12.5px; line-height: 1.6; }
.site-footer .brand { font-size: 26px; }
.footer-link { color: #fff; font-size: 14px; font-weight: 600; text-decoration: none; }
.footer-link:hover { color: var(--amber); }

/* ---------- 화면 크기별 ---------- */
/* 분야 단추가 한 줄에 들어가도록, 화면이 좁아지면 건수를 숨긴다 */
@media (max-width: 1399px) {
  .chip b { display: none; }
  .chip { padding: 0 12px 0 10px; }
}
/* 높이가 낮은 노트북 화면에서는 머리말을 줄여 지도가 첫 화면에 더 많이 보이게 한다 */
@media (min-width: 1051px) and (max-height: 860px) {
  .hero { padding: 20px 0 18px; }
  .hero h1 { margin-top: 10px; font-size: clamp(30px, 3vw, 42px); }
  .hero-deck { font-size: 14.5px; line-height: 1.62; }
  .metrics { margin-top: 12px; padding-top: 11px; }
  .metrics b { font-size: 38px; }
  .issue { min-height: 140px; }
  .controls { gap: 12px; padding-bottom: 10px; }
}
@media (max-width: 1180px) {
  .hero { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
  .issue { grid-column: 1 / -1; min-height: 132px; background-position: 50% 62%; }
  .ledger .c-owner { display: none; }
  .ledger .c-name { width: 34%; }
}

@media (max-width: 1050px) {
  :root { --gutter: 24px; }
  .header-inner { gap: 20px; }
  .analysis { gap: 0 32px; }
  .seg { display: none; }
  .stage-select { display: block; flex: 0 0 150px; }
}

@media (max-width: 899px) {
  /* 좁은 화면에서는 카드가 지도를 가리지 않도록 지도 아래에 놓는다 */
  .card { position: static; width: auto; max-height: none; margin: 0 var(--gutter) 22px; box-shadow: none; }
  .ledger .c-sector { display: none; }
  .ledger .c-name { width: 40%; }
  .analysis { grid-template-columns: 1fr; gap: 40px 0; }
  .method { grid-template-columns: 1fr; gap: 22px 0; }
}

@media (max-width: 719px) {
  :root { --gutter: 16px; }
  body { font-size: 15px; }
  [id] { scroll-margin-top: 104px; }
  .header-inner { display: grid; grid-template-columns: 1fr auto; gap: 0 14px; min-height: 0; padding-top: 8px; }
  .brand { grid-area: 1 / 1; font-size: 26px; }
  .magazine-link { grid-area: 1 / 2; min-height: 34px; padding: 4px 10px; font-size: 13px; }
  .main-nav { grid-area: 2 / 1 / 3 / -1; gap: 18px; margin-left: 0; overflow-x: auto; font-size: 13px; scrollbar-width: none; }
  .main-nav a { min-height: 40px; }
  .main-nav a[aria-current]::after { bottom: 3px; }
  /* 지도가 첫 화면에 들어오도록, 매거진 카드는 지도 아래로 내린다 */
  .stage { display: flex; flex-direction: column; }
  .hero { display: contents; }
  .hero-copy, .hero-side, .issue { width: var(--shell); margin-inline: auto; }
  .hero-copy { order: 1; padding-top: 20px; }
  .hero-side { order: 2; margin-top: 12px; }
  .controls { order: 3; margin-top: 18px; }
  .atlas-wrap { order: 4; }
  .issue { order: 5; min-height: 126px; margin-top: 6px; margin-bottom: 26px; }
  .hero h1 { margin-top: 11px; font-size: clamp(29px, 8.2vw, 40px); }
  .hero-deck { font-size: 14.5px; line-height: 1.62; }
  .metrics { gap: 0 10px; margin-top: 12px; padding-top: 11px; }
  .metrics b { font-size: 36px; }
  .metrics dt { font-size: 11.5px; }
  .issue strong { font-size: 20px; }
  .toolbar { gap: 8px; }
  .search { flex: 1 1 100%; max-width: none; }
  .stage-select { flex: 1 1 0; }
  .switch { flex: 1 1 0; justify-content: center; padding: 0 8px; }
  .count { margin-left: 0; }
  .reset { margin-left: auto; height: 38px; }
  .legend { flex-wrap: nowrap; gap: 0 22px; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); overflow-x: auto; scrollbar-width: none; }
  .legend-group { flex: none; }
  .chips { flex-wrap: nowrap; }
  .map-tools { bottom: 62px; }
  .map-foot { bottom: 10px; font-size: 11.5px; line-height: 1.45; }
  .section { padding-top: 54px; }
  .section.last { padding-bottom: 48px; }
  .section-head { grid-template-columns: 1fr; margin-bottom: 20px; }
  .section-head .lede { justify-self: start; font-size: 14px; }
  /* 목록은 카드처럼 */
  .ledger thead { display: none; }
  .ledger, .ledger tbody { display: block; }
  .ledger tbody tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 12px; padding: 13px 4px 14px 10px; border-bottom: 1px solid var(--rule); }
  .ledger tbody tr:first-child { border-top: 2px solid var(--ink); }
  .ledger tbody th, .ledger td { padding: 0; border: 0; }
  .ledger .c-name { width: auto; padding-left: 0; }
  .ledger .c-amount { width: auto; padding-right: 0; }
  .ledger .c-country, .ledger .c-stage, .ledger .c-epc { display: none; }
  .row-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0 6px; margin-top: 5px; color: var(--ink2); font-size: 12.5px; }
  .row-meta .glyph { margin-right: 0; }
  .ledger .empty { display: block; }
  .ledger-tools { flex-wrap: wrap; }
  .table-hint { display: block; }
  .rank li { grid-template-columns: 22px minmax(96px, 1fr) minmax(30px, 1.2fr) 30px; gap: 8px; }
  .pipe-key { grid-template-columns: 1fr; gap: 8px; }
  .pipe-key button { display: grid; grid-template-columns: 1fr auto; padding: 0 0 0 10px; border-top: 0; border-left: 4px solid var(--c); }
  .pipe-key span { grid-column: 1 / -1; }
  .note { grid-template-columns: 1fr; padding: 22px 20px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] .bar i, [data-reveal] .pipe { transform: none; clip-path: none; transition: none; }
}
