/* =========================================================================
   부산에코 (BUSAN ECO) — Design System
   비영리 개인 지역·환경 정보 아카이브 · 2026.11 시범 운영
   ========================================================================= */

/* ---------- 0. Web font: 나눔바른고딕 (NanumBarunGothic) ----------
   전 페이지 단일 서체. jsDelivr(@kfonts) CDN의 한글 전체 글리프 woff2.
   CDN 장애 시 로컬 설치본(local) → 시스템 고딕 순으로 대체된다. */
@font-face {
  font-family: 'NanumBarunGothic';
  src: local('NanumBarunGothic'), local('나눔바른고딕'),
       url('https://cdn.jsdelivr.net/npm/@kfonts/nanum-barun-gothic@0.3.0/NanumBarunGothicUltraLight.woff2') format('woff2'),
       url('https://cdn.jsdelivr.net/npm/@kfonts/nanum-barun-gothic@0.3.0/NanumBarunGothicUltraLight.woff') format('woff');
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'NanumBarunGothic';
  src: local('NanumBarunGothic Light'), local('나눔바른고딕 Light'),
       url('https://cdn.jsdelivr.net/npm/@kfonts/nanum-barun-gothic@0.3.0/NanumBarunGothicLight.woff2') format('woff2'),
       url('https://cdn.jsdelivr.net/npm/@kfonts/nanum-barun-gothic@0.3.0/NanumBarunGothicLight.woff') format('woff');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'NanumBarunGothic';
  src: local('NanumBarunGothic'), local('나눔바른고딕'),
       url('https://cdn.jsdelivr.net/npm/@kfonts/nanum-barun-gothic@0.3.0/NanumBarunGothic.woff2') format('woff2'),
       url('https://cdn.jsdelivr.net/npm/@kfonts/nanum-barun-gothic@0.3.0/NanumBarunGothic.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'NanumBarunGothic';
  src: local('NanumBarunGothic Bold'), local('나눔바른고딕 Bold'),
       url('https://cdn.jsdelivr.net/npm/@kfonts/nanum-barun-gothic@0.3.0/NanumBarunGothicBold.woff2') format('woff2'),
       url('https://cdn.jsdelivr.net/npm/@kfonts/nanum-barun-gothic@0.3.0/NanumBarunGothicBold.woff') format('woff');
  font-weight: 700 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- 1. Tokens ---------- */
:root {
  --navy: #0F2942;
  --navy-700: #16375A;
  --navy-900: #081A2B;
  --teal: #0D7A5F;
  --teal-600: #0B6B54;
  --green: #14967F;
  --mint: #E7F4EF;
  --mint-2: #D3EAE1;
  --bg: #F8FAFB;
  --paper: #FFFFFF;
  --ink: #14202B;
  --ink-2: #33465A;
  --muted: #6B7C8C;
  --muted-2: #93A2AF;
  --line: #E3EAF0;
  --line-strong: #CFD9E2;
  --red: #C1382C;
  --gold: #C9A227;

  /* 전 페이지 단일 서체: 나눔바른고딕 (본문·제목 구분 없이 통일) */
  --sans: 'NanumBarunGothic', '나눔바른고딕', sans-serif;
  --serif: 'NanumBarunGothic', '나눔바른고딕', sans-serif;

  --max: 1280px;
  --gutter: 24px;
  --radius: 3px;
  --shadow-1: 0 1px 2px rgba(15, 41, 66, .04), 0 4px 14px rgba(15, 41, 66, .05);
  --shadow-2: 0 8px 30px rgba(15, 41, 66, .12);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- 2. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
/* 가로 스크롤 완전 차단: Android Chrome/WebView 대응
   - clip 은 스크롤 컨테이너를 만들지 않아 sticky 네비게이션이 정상 동작한다.
   - clip 을 모르는 구형 WebView 는 앞의 hidden 을 그대로 쓴다(CSS cascade 폴백).
   - overscroll-behavior-x: none 으로 좌우 오버스크롤(당겨서 흔들림)도 막는다. */
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  font-family: var(--sans);
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  overflow-x: clip;
  overscroll-behavior-x: none;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: hidden;
  overflow-x: clip;
  overscroll-behavior-x: none;
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, p, figure, blockquote, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
/* 어떤 미디어·표도 화면 폭을 넘지 않게 */
svg, video, canvas, iframe { max-width: 100%; }
table { max-width: 100%; border-collapse: collapse; }
figure, blockquote, pre { max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
::selection { background: var(--mint-2); color: var(--navy); }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 2px; }
.ko { word-break: keep-all; overflow-wrap: anywhere; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); width: 100%; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; top: -60px; left: 16px; z-index: 999;
  background: var(--navy); color: #fff; padding: 10px 16px; border-radius: var(--radius);
  transition: top .2s;
}
.skip-link:focus { top: 12px; }

/* ---------- 3. Utility bar ---------- */
.utility {
  background: var(--navy);
  color: rgba(255, 255, 255, .82);
  font-size: 12.5px;
  letter-spacing: 0;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.utility .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; height: 42px;
}
.util-left { display: flex; align-items: center; gap: 14px; white-space: nowrap; }
.util-date { color: #fff; font-weight: 600; letter-spacing: -0.01em; }
.util-issue {
  padding: 2px 8px; border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 2px; font-size: 11px; letter-spacing: .04em; color: rgba(255,255,255,.9);
}
.util-weather { display: flex; align-items: center; gap: 10px; }
.util-weather .sep { width: 1px; height: 11px; background: rgba(255,255,255,.22); }
.util-weather b { color: #fff; font-weight: 600; }
.util-weather .badge {
  display: inline-flex; align-items: center; gap: 5px;
  background: rgba(20, 150, 127, .22); color: #7FDCC4;
  padding: 1px 7px; border-radius: 2px; font-size: 11px;
}
.util-right { display: flex; align-items: center; gap: 8px; }
.util-btn {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 11px; border-radius: 2px; font-size: 12px; font-weight: 500;
  border: 1px solid rgba(255, 255, 255, .22); color: #fff;
  transition: background .18s, border-color .18s;
}
.util-btn:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255,255,255,.4); }
.util-btn.primary { background: var(--teal); border-color: var(--teal); }
.util-btn.primary:hover { background: var(--green); border-color: var(--green); }
.search-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 50%;
  color: #fff; transition: background .18s;
}
.search-toggle:hover { background: rgba(255,255,255,.12); }

/* ---------- 4. Masthead ---------- */
.masthead { background: var(--paper); border-bottom: 1px solid var(--line); }
.masthead .wrap {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  gap: 16px; padding-top: 17px; padding-bottom: 15px;
}
.mast-meta { font-size: 11.5px; color: var(--muted); line-height: 1.6; letter-spacing: 0; }
.mast-meta b { display: block; color: var(--ink-2); font-size: 12px; font-weight: 600; }
.mast-meta.right { text-align: right; }

.brand { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.brand-link { display: flex; align-items: center; gap: 14px; }
.brand-mark { width: 52px; height: 52px; flex: none; }
.brand-name {
  font-family: var(--serif);
  font-size: 50px; font-weight: 700; line-height: 1;
  letter-spacing: -0.045em; color: var(--navy);
}
.brand-sub {
  font-size: 11px; letter-spacing: .32em; color: var(--teal);
  font-weight: 600; text-transform: uppercase;
  display: flex; align-items: center; gap: 10px;
}
.brand-sub::before, .brand-sub::after {
  content: ""; width: 22px; height: 1px; background: var(--line-strong);
}
.brand-tag {
  font-size: 12.5px; color: var(--muted); letter-spacing: .02em; margin-top: 2px;
}

.mast-weather {
  display: inline-flex; align-items: center; gap: 10px;
  border: 1px solid var(--line); border-radius: 2px;
  padding: 8px 14px; background: var(--bg); min-width: 172px;
}
.mast-weather .temp { font-family: var(--serif); font-size: 24px; font-weight: 700; color: var(--navy); line-height: 1; }
.mast-weather .desc { font-size: 11.5px; color: var(--muted); line-height: 1.55; white-space: nowrap; }
.mast-weather .desc b { color: var(--teal); font-weight: 600; }

/* ---------- 5. Navigation ---------- */
.gnb-shell {
  position: sticky; top: 0; z-index: 90;
  background: var(--paper);
  border-top: 1px solid var(--navy);
  border-bottom: 2px solid var(--navy);
  transition: box-shadow .2s;
}
.gnb-shell.stuck { box-shadow: 0 6px 18px rgba(15, 41, 66, .09); }
.gnb { display: flex; align-items: stretch; justify-content: space-between; height: 50px; }
.gnb-list { display: flex; align-items: stretch; gap: 0; }
.gnb-item {
  position: relative; display: flex; align-items: center;
  padding: 0 20px; font-size: 15.5px; font-weight: 600; color: var(--ink-2);
  letter-spacing: -0.02em; transition: color .15s;
  white-space: nowrap;
}
.gnb-item:first-child { padding-left: 4px; }
.gnb-item::after {
  content: ""; position: absolute; left: 20px; right: 20px; bottom: -2px; height: 3px;
  background: transparent; transition: background .18s;
}
.gnb-item:first-child::after { left: 4px; }
.gnb-item:hover { color: var(--teal); }
.gnb-item.active { color: var(--navy); }
.gnb-item.active::after { background: var(--teal); }
.gnb-right { display: flex; align-items: center; gap: 14px; }
.live-chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--muted); letter-spacing: 0;
}
.live-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--red);
  box-shadow: 0 0 0 0 rgba(193, 56, 44, .6); animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(193, 56, 44, .55); }
  70% { box-shadow: 0 0 0 7px rgba(193, 56, 44, 0); }
  100% { box-shadow: 0 0 0 0 rgba(193, 56, 44, 0); }
}
.live-chip b { color: var(--red); font-weight: 600; }
.gnb-brand {
  display: none; align-items: center; gap: 8px;
  font-family: var(--serif); font-weight: 700; font-size: 19px; color: var(--navy);
  letter-spacing: -0.03em;
}
.gnb-shell.stuck .gnb-brand { display: inline-flex; }
.gnb-shell.stuck .gnb-right .live-chip { display: none; }
.menu-btn { display: none; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 600; color: var(--navy); }

/* ---------- 6. Breaking ticker ---------- */
.ticker {
  background: var(--navy-900);
  color: #fff; overflow: hidden;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.ticker .wrap { display: flex; align-items: center; gap: 0; height: 42px; padding: 0; max-width: none; }
.ticker-label {
  flex: none; display: flex; align-items: center; gap: 7px;
  background: var(--red); color: #fff; height: 100%;
  padding: 0 18px 0 24px; font-size: 12.5px; font-weight: 700; letter-spacing: .06em;
  clip-path: polygon(0 0, 100% 0, calc(100% - 12px) 100%, 0 100%);
  padding-right: 26px;
}
.ticker-label .dot { width: 5px; height: 5px; border-radius: 50%; background: #fff; animation: blink 1.4s steps(1) infinite; }
@keyframes blink { 50% { opacity: .25; } }
.ticker-viewport { flex: 1; overflow: hidden; position: relative; height: 100%; }
.ticker-track {
  display: flex; align-items: center; gap: 0; height: 100%;
  width: max-content; animation: marquee 34s linear infinite;
}
.ticker:hover .ticker-track, .ticker.paused .ticker-track { animation-play-state: paused; }
.ticker-track > a {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 0 26px; font-size: 13.5px; color: rgba(255,255,255,.85);
  white-space: nowrap; transition: color .15s;
}
.ticker-track > a:hover { color: #fff; }
.ticker-track > a::after { content: "·"; color: rgba(255,255,255,.3); margin-left: 14px; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- 7. Page shell ---------- */
.page { padding: 22px 0 0; }
.page-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 20px; border-bottom: 1px solid var(--line-strong);
  padding-bottom: 10px; margin-bottom: 22px;
}
.page-head h1 {
  font-family: var(--serif); font-size: 27px; letter-spacing: -0.03em; color: var(--navy);
  display: flex; align-items: center; gap: 10px;
}
.page-head h1 .square { width: 9px; height: 9px; background: var(--teal); display: inline-block; }
.page-head .count { font-size: 13px; color: var(--muted); font-weight: 400; letter-spacing: 0; }
.page-head .aside-note { font-size: 12.5px; color: var(--muted); }

/* ---------- 8. Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.42fr) minmax(0, 1fr) minmax(0, .82fr);
  gap: 0;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-1);
}
.hero > * { padding: 20px; }
.hero-main { border-right: 1px solid var(--line); display: flex; flex-direction: column; }
.hero-side { border-left: 1px solid var(--line); background: #FCFDFD; display: flex; flex-direction: column; gap: 18px; }

.kicker {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 11.5px; font-weight: 700; letter-spacing: .06em;
  color: var(--teal); text-transform: uppercase;
}
.kicker .bar { width: 14px; height: 2px; background: var(--teal); }
.kicker.breaking { color: var(--red); }
.kicker.breaking .bar { background: var(--red); }

.hero-photo {
  position: relative; overflow: hidden; border-radius: 2px;
  margin: 10px 0 14px; background: var(--line);
}
.hero-photo img { width: 100%; aspect-ratio: 16 / 9.2; object-fit: cover; transition: transform .7s var(--ease); }
.hero-photo:hover img { transform: scale(1.035); }
.hero-photo .photo-tag {
  position: absolute; left: 12px; bottom: 12px;
  background: rgba(8, 26, 43, .82); color: #fff;
  font-size: 11.5px; padding: 3px 9px; border-radius: 2px; letter-spacing: 0;
  backdrop-filter: blur(4px);
}
.hero-title {
  font-family: var(--serif); font-size: 33px; line-height: 1.34; font-weight: 700;
  letter-spacing: -0.035em; color: var(--navy); text-wrap: balance;
  transition: color .18s;
}
.hero-title:hover { color: var(--teal-600); }
.hero-mini { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); }
.hero-mini .hm-head {
  font-size: 12px; font-weight: 700; color: var(--navy); letter-spacing: -0.01em;
  display: flex; align-items: center; gap: 7px; margin-bottom: 6px;
}
.hero-mini .hm-head .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--red); animation: pulse 2s infinite; }
.hero-mini ul li { border-top: 1px dashed var(--line); }
.hero-mini ul li:first-child { border-top: 0; }
.hero-mini a { display: flex; align-items: center; gap: 9px; padding: 6px 0; font-size: 13px; color: var(--ink-2); letter-spacing: -0.02em; }
.hero-mini a:hover { color: var(--teal-600); }
.hero-mini .hm-t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hero-mini .hm-time { font-size: 11px; color: var(--muted-2); letter-spacing: 0; flex: none; }
.hero-lead {
  margin-top: 12px; font-size: 15px; line-height: 1.75; color: var(--ink-2);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.meta {
  display: flex; align-items: center; flex-wrap: wrap; gap: 7px;
  font-size: 12.5px; color: var(--muted); letter-spacing: 0; margin-top: 16px;
}
.meta .sep { width: 1px; height: 10px; background: var(--line-strong); }
.meta .author { color: var(--ink-2); font-weight: 600; }
.meta .views::before {
  content: "◉"; font-size: 9px; margin-right: 4px; color: var(--muted-2); vertical-align: 1px;
}

/* hero middle list */
.hero-list { display: flex; flex-direction: column; }
.hero-list > .kicker { margin-bottom: 8px; }
.list-item {
  display: grid; grid-template-columns: 1fr 96px; gap: 14px;
  padding: 13px 0; border-bottom: 1px solid var(--line);
  transition: background .15s;
}
.hero-list .list-item:first-of-type { padding-top: 6px; }
.hero-list .list-item:last-child { border-bottom: 0; padding-bottom: 0; }
.list-item:hover .li-title { color: var(--teal-600); }
.li-title {
  font-size: 16px; font-weight: 600; line-height: 1.45; letter-spacing: -0.025em;
  color: var(--ink); transition: color .15s;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.li-sum {
  font-size: 12.5px; color: var(--muted); line-height: 1.6; margin-top: 5px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.li-meta { font-size: 11.5px; color: var(--muted-2); margin-top: 6px; letter-spacing: 0; }
.li-thumb { overflow: hidden; border-radius: 2px; background: var(--line); align-self: start; }
.li-thumb img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .6s var(--ease); }
.list-item:hover .li-thumb img { transform: scale(1.06); }

/* ---------- 9. Sidebar ---------- */
.side-card { background: var(--paper); border: 1px solid var(--line); border-radius: 2px; }
.side-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 13px; border-bottom: 1px solid var(--line);
}
.side-head h3 {
  font-size: 13.5px; font-weight: 700; letter-spacing: -0.01em; color: var(--navy);
  display: flex; align-items: center; gap: 7px;
}
.side-head h3 .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--teal); }
.side-head .more { font-size: 11.5px; color: var(--muted); letter-spacing: 0; }
.side-head .more:hover { color: var(--teal); }
.side-head.live h3 .dot { background: var(--red); animation: pulse 2s infinite; box-shadow: none; }
.side-body { padding: 6px 13px 12px; }

.top5 li { border-bottom: 1px dashed var(--line); }
.top5 li:last-child { border-bottom: 0; }
.top5 a { display: grid; grid-template-columns: 22px 1fr; gap: 8px; padding: 9px 0; align-items: start; }
.top5 .rank {
  font-family: var(--serif); font-size: 15px; font-weight: 700; color: var(--teal);
  line-height: 1.35; letter-spacing: 0; font-variant-numeric: tabular-nums;
}
.top5 li:nth-child(1) .rank { color: var(--navy); }
.top5 .t {
  font-size: 13px; font-weight: 500; line-height: 1.5; letter-spacing: -0.02em; color: var(--ink-2);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  transition: color .15s;
}
.top5 a:hover .t { color: var(--teal-600); }

/* eco brief widget */
.brief {
  background: linear-gradient(160deg, #0F2942 0%, #0C3C3A 55%, #0D7A5F 100%);
  color: #fff; border-radius: 3px; overflow: hidden; position: relative;
}
.brief::after {
  content: ""; position: absolute; right: -30px; top: -30px; width: 120px; height: 120px;
  border-radius: 50%; background: radial-gradient(circle, rgba(20,150,127,.45), transparent 70%);
  pointer-events: none;
}
.brief-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 11px 13px 8px; position: relative; z-index: 1;
}
.brief-head h3 { font-size: 13px; font-weight: 700; letter-spacing: .02em; display: flex; align-items: center; gap: 7px; }
.brief-head .live { font-size: 10.5px; color: #9FE3D2; letter-spacing: .04em; display: flex; align-items: center; gap: 5px; }
.brief-head .live i { width: 5px; height: 5px; border-radius: 50%; background: #4FD1AE; animation: pulse 2s infinite; }
.brief-body { padding: 0 13px 12px; position: relative; z-index: 1; }
.brief-main {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 10px;
  padding-bottom: 9px; border-bottom: 1px solid rgba(255,255,255,.14);
}
.brief-main .label { font-size: 11px; color: rgba(255,255,255,.6); letter-spacing: .02em; }
.brief-main .value { font-family: var(--serif); font-size: 30px; font-weight: 700; line-height: 1.1; margin-top: 2px; }
.brief-main .value span { font-size: 13px; font-family: var(--sans); font-weight: 500; color: rgba(255,255,255,.7); margin-left: 3px; }
.brief-main .grade {
  font-size: 12px; font-weight: 700; color: #05130F; background: #6FE3C2;
  padding: 3px 9px; border-radius: 2px; letter-spacing: 0;
}
.brief-rows { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; padding-top: 10px; }
.brief-row .k { font-size: 10.5px; color: rgba(255,255,255,.6); letter-spacing: 0; }
.brief-row .v { font-size: 13px; font-weight: 600; margin-top: 1px; }
.brief-row .v small { font-size: 11px; font-weight: 400; color: rgba(255,255,255,.6); margin-left: 2px; }
.brief-bar { margin-top: 10px; }
.brief-bar .bar-label { display: flex; justify-content: space-between; font-size: 10.5px; color: rgba(255,255,255,.65); margin-bottom: 4px; }
.brief-bar .track { height: 4px; background: rgba(255,255,255,.16); border-radius: 2px; overflow: hidden; }
.brief-bar .fill { height: 100%; width: 62%; background: linear-gradient(90deg, #4FD1AE, #A7F0DC); border-radius: 2px; }
.brief-foot {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 10px; font-size: 10.5px; color: rgba(255,255,255,.45); letter-spacing: 0;
}

/* report / newsletter card */
.cta-card {
  border: 1px solid var(--line); border-radius: 3px; overflow: hidden; background: var(--paper);
  display: flex; flex-direction: column;
}
.cta-top {
  background: var(--mint); padding: 12px 13px 10px;
  border-bottom: 1px solid var(--mint-2);
}
.cta-top h3 { font-size: 13.5px; font-weight: 700; color: var(--navy); display: flex; align-items: center; gap: 6px; }
.cta-top p { font-size: 11.5px; color: var(--teal-600); margin-top: 3px; line-height: 1.5; letter-spacing: 0; }
.cta-body { padding: 10px 13px 12px; display: flex; flex-direction: column; gap: 8px; }
.cta-row { display: flex; gap: 6px; }
.cta-input {
  flex: 1; min-width: 0; border: 1px solid var(--line-strong); border-radius: 2px;
  padding: 7px 9px; font-size: 12px; background: #fff; letter-spacing: 0;
}
.cta-input::placeholder { color: var(--muted-2); }
.cta-btn {
  flex: none; background: var(--navy); color: #fff; font-size: 12px; font-weight: 600;
  padding: 7px 12px; border-radius: 2px; transition: background .15s;
}
.cta-btn:hover { background: var(--teal); }
.cta-btn.ghost { background: #fff; color: var(--navy); border: 1px solid var(--line-strong); }
.cta-btn.ghost:hover { background: var(--mint); color: var(--teal-600); border-color: var(--mint-2); }
.cta-note { font-size: 10.5px; color: var(--muted-2); letter-spacing: 0; }

/* ---------- 10. Section headers ---------- */
.section { margin-top: 34px; }
.section-head {
  display: flex; align-items: center; gap: 14px;
  border-bottom: 1px solid var(--line-strong); padding-bottom: 9px; margin-bottom: 18px;
}
.section-head h2 {
  font-family: var(--serif); font-size: 22px; font-weight: 700; color: var(--navy);
  letter-spacing: -0.03em; display: flex; align-items: center; gap: 9px; flex: none;
}
.section-head h2 .sq { width: 8px; height: 8px; background: var(--teal); display: inline-block; }
.section-head .desc { font-size: 12.5px; color: var(--muted); letter-spacing: 0; flex: 1; }
.section-head .more {
  font-size: 12.5px; color: var(--muted); display: inline-flex; align-items: center; gap: 4px;
  flex: none; letter-spacing: 0;
}
.section-head .more:hover { color: var(--teal); }

/* ---------- 11. Eco feature (dark) ---------- */
.eco {
  margin-top: 40px; position: relative; overflow: hidden;
  background:
    radial-gradient(900px 400px at 85% -10%, rgba(20, 150, 127, .38), transparent 65%),
    linear-gradient(120deg, #0B2138 0%, #0F2942 45%, #0A332C 100%);
  color: #fff;
}
.eco::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 100% 34px; opacity: .5; pointer-events: none;
}
.eco .wrap { position: relative; z-index: 1; padding-top: 30px; padding-bottom: 34px; }
.eco-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.eco-head .eyebrow {
  font-size: 11px; letter-spacing: .28em; color: #6FE3C2; font-weight: 700; text-transform: uppercase;
  display: flex; align-items: center; gap: 9px; margin-bottom: 7px;
}
.eco-head .eyebrow::before { content: ""; width: 18px; height: 1px; background: #6FE3C2; }
.eco-head h2 {
  font-family: var(--serif); font-size: 28px; letter-spacing: -0.035em; font-weight: 700; color: #fff;
}
.eco-head p { font-size: 13px; color: rgba(255,255,255,.55); margin-top: 5px; letter-spacing: 0; }
.eco-head .eco-more {
  font-size: 12.5px; color: rgba(255,255,255,.75); border: 1px solid rgba(255,255,255,.24);
  padding: 7px 14px; border-radius: 2px; white-space: nowrap; transition: all .18s;
}
.eco-head .eco-more:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.5); }
.eco-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.eco-card {
  background: rgba(255, 255, 255, .045);
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 3px; overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .25s var(--ease), background .25s, border-color .25s;
}
.eco-card:hover { transform: translateY(-3px); background: rgba(255,255,255,.08); border-color: rgba(111, 227, 194, .5); }
.eco-img { overflow: hidden; position: relative; }
.eco-img img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; opacity: .92; transition: transform .7s var(--ease), opacity .3s; }
.eco-card:hover .eco-img img { transform: scale(1.05); opacity: 1; }
.eco-img .tag {
  position: absolute; top: 10px; left: 10px; font-size: 10.5px; font-weight: 700;
  letter-spacing: .04em; padding: 2px 8px; border-radius: 2px;
  background: rgba(8, 26, 43, .75); color: #8FEBD2; backdrop-filter: blur(3px);
}
.eco-body { padding: 12px 13px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.eco-body .eco-kicker { font-size: 10.5px; color: #6FE3C2; letter-spacing: .08em; font-weight: 600; }
.eco-body h3 {
  font-size: 15px; font-weight: 600; line-height: 1.5; letter-spacing: -0.025em; color: #fff;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.eco-body .eco-sum {
  font-size: 12px; color: rgba(255,255,255,.55); line-height: 1.6; letter-spacing: 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.eco-body .eco-meta { margin-top: auto; font-size: 11px; color: rgba(255,255,255,.4); letter-spacing: 0; padding-top: 4px; }

/* ---------- 12. District section ---------- */
.district-bar {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  padding: 10px 0 14px; border-bottom: 1px solid var(--line);
}
.chip {
  font-size: 13px; font-weight: 500; color: var(--ink-2);
  border: 1px solid var(--line-strong); background: #fff;
  padding: 5px 13px; border-radius: 100px; letter-spacing: -0.01em;
  transition: all .16s;
}
.chip:hover { border-color: var(--teal); color: var(--teal-600); }
.chip.active { background: var(--navy); border-color: var(--navy); color: #fff; font-weight: 600; }
.district-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; padding-top: 18px; }
.d-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: 3px; overflow: hidden;
  display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s, border-color .2s;
}
.d-card:hover { box-shadow: var(--shadow-1); transform: translateY(-2px); border-color: var(--line-strong); }
.d-card .d-img { overflow: hidden; }
.d-card .d-img img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .7s var(--ease); }
.d-card:hover .d-img img { transform: scale(1.04); }
.d-card .d-body { padding: 14px 15px 16px; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.d-card .d-tag {
  font-size: 11px; color: var(--teal); font-weight: 700; letter-spacing: .04em;
  display: flex; align-items: center; gap: 6px;
}
.d-card .d-tag .dist { color: var(--muted); font-weight: 500; letter-spacing: 0; }
.d-card h3 {
  font-size: 16.5px; font-weight: 600; line-height: 1.45; letter-spacing: -0.03em; color: var(--ink);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.d-card:hover h3 { color: var(--teal-600); }
.d-card .d-sum {
  font-size: 12.5px; color: var(--muted); line-height: 1.65; letter-spacing: 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.d-card .d-meta { margin-top: auto; padding-top: 8px; font-size: 11.5px; color: var(--muted-2); letter-spacing: 0; }
.empty-state {
  grid-column: 1 / -1; text-align: center; padding: 46px 20px; color: var(--muted);
  border: 1px dashed var(--line-strong); border-radius: 3px; background: #fff;
}
.empty-state b { display: block; color: var(--ink-2); font-size: 15px; margin-bottom: 4px; }
.empty-state span { font-size: 13px; }

/* ---------- 13. Latest + opinion ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 26px; }
.latest-list { background: var(--paper); border: 1px solid var(--line); }
.latest-row {
  display: grid; grid-template-columns: 62px 1fr auto; gap: 14px; align-items: center;
  padding: 13px 16px; border-bottom: 1px solid var(--line);
  transition: background .15s;
}
.latest-row:last-child { border-bottom: 0; }
.latest-row:hover { background: #FBFCFD; }
.latest-row:hover .lr-title { color: var(--teal-600); }
.lr-time { font-size: 12px; color: var(--muted-2); font-variant-numeric: tabular-nums; letter-spacing: 0; text-align: center; }
.lr-time b { display: block; font-size: 11px; color: var(--teal); font-weight: 600; }
.lr-title {
  font-size: 14.5px; font-weight: 500; line-height: 1.5; letter-spacing: -0.025em; color: var(--ink);
  transition: color .15s;
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
}
.lr-cat { font-size: 11.5px; color: var(--muted); border: 1px solid var(--line); padding: 2px 7px; border-radius: 2px; white-space: nowrap; letter-spacing: 0; }

.opinion-stack { display: flex; flex-direction: column; gap: 14px; }
.op-card {
  background: var(--paper); border: 1px solid var(--line); border-left: 3px solid var(--navy);
  padding: 16px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1;
  transition: border-color .18s, box-shadow .2s;
}
.op-card:hover { border-left-color: var(--teal); box-shadow: var(--shadow-1); }
.op-card .op-kicker { font-size: 11px; font-weight: 700; letter-spacing: .08em; color: var(--teal); }
.op-card h3 {
  font-family: var(--serif); font-size: 18px; line-height: 1.5; letter-spacing: -0.03em; color: var(--navy);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.op-card p {
  font-size: 12.5px; color: var(--muted); line-height: 1.7; letter-spacing: 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.op-author { display: flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 6px; }
.avatar {
  width: 26px; height: 26px; border-radius: 50%; background: var(--mint); color: var(--teal-600);
  display: grid; place-items: center; font-size: 11px; font-weight: 700; flex: none; letter-spacing: 0;
}
.op-author .name { font-size: 12px; color: var(--ink-2); font-weight: 600; letter-spacing: 0; }
.op-author .role { font-size: 11px; color: var(--muted-2); letter-spacing: 0; }

/* ---------- 14. Category view ---------- */
.cat-panel { display: none; }
body.cat-view .home-hero,
body.cat-view .home-eco,
body.cat-view .home-district,
body.cat-view .home-latest { display: none; }
body.cat-view .cat-panel { display: block; }
.cat-panel .cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; }
.cat-panel .d-card h3 { font-size: 17px; -webkit-line-clamp: 3; }

/* ---------- 15. Footer ---------- */
.site-footer { margin-top: 56px; background: var(--navy); color: rgba(255,255,255,.72); }
.footer-top { padding: 34px 0 26px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-top .wrap { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 28px; }
.f-brand .f-name { font-family: var(--serif); font-size: 24px; font-weight: 700; color: #fff; letter-spacing: -0.03em; }
.f-brand .f-name-en { font-size: 9.5px; letter-spacing: .3em; color: #6FE3C2; margin-top: 5px; }
.f-brand p { font-size: 12.5px; line-height: 1.8; color: rgba(255,255,255,.5); margin-top: 12px; }
.f-col h4 { font-size: 12px; font-weight: 700; color: #fff; letter-spacing: .02em; margin-bottom: 10px; }
.f-col li { margin-bottom: 6px; }
.f-col a { font-size: 12.5px; color: rgba(255,255,255,.58); transition: color .15s; letter-spacing: 0; }
.f-col a:hover { color: #fff; }
.footer-legal { padding: 20px 0 26px; }
.legal-lines { display: flex; flex-wrap: wrap; gap: 6px 0; font-size: 12px; line-height: 1.9; color: rgba(255,255,255,.55); letter-spacing: 0; }
.legal-lines span { white-space: nowrap; }
.legal-lines .sep { color: rgba(255,255,255,.2); margin: 0 10px; }
.copyright { margin-top: 14px; font-size: 11.5px; color: rgba(255,255,255,.38); line-height: 1.85; letter-spacing: 0; }
.copyright strong { color: rgba(255,255,255,.6); font-weight: 600; }
.demo-note {
  display: inline-flex; align-items: center; gap: 7px; margin-top: 12px;
  font-size: 11px; color: #9FE3D2; background: rgba(20,150,127,.14);
  border: 1px solid rgba(20,150,127,.3); border-radius: 2px; padding: 4px 10px; letter-spacing: 0;
}

/* ---------- 16. Modal / toast ---------- */
.modal-root { position: fixed; inset: 0; z-index: 200; display: none; }
.modal-root.open { display: block; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(8, 26, 43, .55); backdrop-filter: blur(3px); animation: fade .18s; }
.modal {
  position: relative; margin: 8vh auto 0; width: min(520px, calc(100vw - 32px));
  background: #fff; border-radius: 4px; box-shadow: var(--shadow-2);
  animation: rise .22s var(--ease); overflow: hidden;
}
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.modal-head h3 { font-size: 16px; font-weight: 700; color: var(--navy); letter-spacing: -0.02em; }
.modal-close { width: 30px; height: 30px; border-radius: 50%; color: var(--muted); display: grid; place-items: center; font-size: 18px; }
.modal-close:hover { background: var(--bg); color: var(--ink); }
.modal-body { padding: 18px 20px 20px; }
.field { margin-bottom: 12px; }
.field label { display: block; font-size: 12px; font-weight: 600; color: var(--ink-2); margin-bottom: 5px; letter-spacing: 0; }
.field input, .field textarea {
  width: 100%; border: 1px solid var(--line-strong); border-radius: 2px;
  padding: 9px 11px; font-size: 13.5px; background: #fff; letter-spacing: 0;
}
.field input:focus, .field textarea:focus { border-color: var(--teal); outline: none; box-shadow: 0 0 0 3px rgba(13,122,95,.1); }
.field textarea { min-height: 96px; resize: vertical; }
.modal-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 16px; }
.btn {
  font-size: 13px; font-weight: 600; padding: 9px 16px; border-radius: 2px;
  background: var(--navy); color: #fff; transition: background .15s;
}
.btn:hover { background: var(--teal); }
.btn.line { background: #fff; color: var(--ink-2); border: 1px solid var(--line-strong); }
.btn.line:hover { background: var(--bg); color: var(--ink); }
.form-note { font-size: 11px; color: var(--muted-2); margin-top: 10px; line-height: 1.6; letter-spacing: 0; }

.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px);
  background: var(--navy); color: #fff; font-size: 13px; padding: 11px 18px;
  border-radius: 3px; box-shadow: var(--shadow-2); opacity: 0; pointer-events: none;
  transition: all .25s var(--ease); z-index: 300; letter-spacing: -0.01em;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- 17. Search overlay ---------- */
.search-panel {
  position: fixed; inset: 0; z-index: 180; display: none;
  background: rgba(8, 26, 43, .45); backdrop-filter: blur(4px);
}
.search-panel.open { display: block; }
.search-box {
  background: #fff; box-shadow: var(--shadow-2); padding: 22px 0 6px;
  animation: rise .2s var(--ease);
}
.search-form { display: flex; align-items: center; gap: 12px; border-bottom: 2px solid var(--navy); padding-bottom: 10px; }
.search-form > svg { flex: none; }
.search-form input {
  flex: 1 1 0; min-width: 0; width: 100%; border: 0; background: transparent; font-size: 20px; font-weight: 500;
  letter-spacing: -0.02em; outline: none;
}
.search-form input::placeholder { color: var(--muted-2); }
.search-form .go { background: var(--navy); color: #fff; font-size: 13px; font-weight: 600; padding: 8px 16px; border-radius: 2px; }
.search-form .go:hover { background: var(--teal); }
.search-results { padding: 10px 0 8px; max-height: 52vh; overflow: auto; }
.sr-row { display: flex; gap: 10px; align-items: center; padding: 10px 4px; border-bottom: 1px solid var(--line); }
.sr-row:hover { background: var(--bg); }
.sr-row .sr-cat { font-size: 11px; color: var(--teal); font-weight: 700; flex: none; width: 74px; letter-spacing: 0; }
.sr-row .sr-title { font-size: 14px; color: var(--ink); letter-spacing: -0.02em; line-height: 1.45; }
.sr-row .sr-title mark { background: var(--mint); color: var(--teal-600); font-weight: 700; padding: 0 1px; }
.sr-empty { padding: 22px 4px; color: var(--muted); font-size: 13.5px; }
.search-hint { font-size: 11.5px; color: var(--muted-2); padding: 8px 4px 14px; letter-spacing: 0; }
.search-close { color: var(--muted); font-size: 13px; padding: 4px 8px; }

/* ---------- 18. Floating ---------- */
.to-top {
  position: fixed; right: 22px; bottom: 26px; z-index: 120;
  width: 44px; height: 44px; border-radius: 50%; background: var(--navy); color: #fff;
  display: grid; place-items: center; box-shadow: var(--shadow-2);
  opacity: 0; pointer-events: none; transform: translateY(10px);
  transition: all .25s var(--ease);
}
.to-top.show { opacity: 1; pointer-events: auto; transform: none; }
.to-top:hover { background: var(--teal); }

/* ---------- 19. Reading progress ---------- */
.read-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--teal), #4FD1AE); z-index: 150;
  transition: width .1s linear;
}

/* =========================================================================
   ARTICLE PAGE
   ========================================================================= */
.article-head { background: var(--paper); border-bottom: 1px solid var(--line); }
.article-head .wrap { padding-top: 26px; padding-bottom: 26px; }
.head-inner { max-width: 860px; }
.crumbs { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); letter-spacing: 0; }
.crumbs a:hover { color: var(--teal); }
.crumbs .sep { color: var(--line-strong); }
.crumbs .now { color: var(--ink-2); font-weight: 600; }

.article-title {
  font-family: var(--serif); font-size: 40px; line-height: 1.32; font-weight: 700;
  letter-spacing: -0.04em; color: var(--navy); margin: 14px 0 10px; text-wrap: balance;
}
.article-sub {
  font-size: 18px; line-height: 1.65; color: var(--ink-2); font-weight: 400; letter-spacing: -0.02em;
  max-width: 780px;
}
.article-toolbar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  border-top: 1px solid var(--line); margin-top: 20px; padding-top: 12px; flex-wrap: wrap;
}
.byline { display: flex; align-items: center; gap: 10px; }
.byline .avatar { width: 34px; height: 34px; font-size: 13px; }
.byline .who { font-size: 12.5px; color: var(--muted); line-height: 1.5; letter-spacing: 0; }
.byline .who b { display: block; font-size: 13px; color: var(--ink-2); font-weight: 600; }
.byline .date { font-size: 12px; color: var(--muted-2); letter-spacing: 0; padding-left: 10px; border-left: 1px solid var(--line); }
.tools { display: flex; align-items: center; gap: 6px; }
.font-tools { display: flex; align-items: center; border: 1px solid var(--line-strong); border-radius: 2px; overflow: hidden; }
.font-tools span { font-size: 10.5px; color: var(--muted-2); padding: 0 6px; letter-spacing: 0; border-right: 1px solid var(--line); height: 28px; display: grid; place-items: center; }
.font-tools button {
  width: 32px; height: 28px; color: var(--ink-2);
  transition: background .15s; line-height: 1;
}
.font-tools button[data-fs="1"] { font-size: 12px; }
.font-tools button[data-fs="2"] { font-size: 14.5px; font-weight: 600; }
.font-tools button[data-fs="3"] { font-size: 17px; font-weight: 700; }
.font-tools button:hover { background: var(--bg); }
.font-tools button.on { background: var(--navy); color: #fff; }
.share-btn {
  display: inline-flex; align-items: center; gap: 5px; height: 30px; padding: 0 11px;
  border: 1px solid var(--line-strong); border-radius: 2px; font-size: 12px; color: var(--ink-2);
  transition: all .15s; letter-spacing: 0;
}
.share-btn:hover { border-color: var(--teal); color: var(--teal-600); background: #F5FBF9; }

.article-body-wrap { padding: 30px var(--gutter) 0; }
.article-layout { display: grid; grid-template-columns: minmax(0, 800px) 300px; gap: 56px; justify-content: space-between; }
/* 그리드 아이템의 min-width:auto 로 인한 가로 확장(넘침) 방지 */
.article-layout > * { min-width: 0; }
.article-body {
  font-size: 17px; line-height: 1.95; color: #1E2C3A; letter-spacing: -0.012em;
  max-width: 800px;
  transition: font-size .15s;
}
.article-body.fs-1 { font-size: 15.5px; }
.article-body.fs-2 { font-size: 17px; }
.article-body.fs-3 { font-size: 19px; }
.article-body .lead {
  font-size: 1.1em; font-weight: 500; color: var(--ink); line-height: 1.85;
  padding-bottom: 20px; letter-spacing: -0.02em;
}
.article-body p { margin: 0 0 20px; }
.article-body h2 {
  font-family: var(--serif); font-size: 1.32em; font-weight: 700; color: var(--navy);
  letter-spacing: -0.03em; line-height: 1.45;
  margin: 34px 0 14px; padding-top: 16px; border-top: 1px solid var(--line); max-width: 100%;
}
.article-body h2:first-of-type { border-top: 0; padding-top: 0; }
.article-body blockquote {
  margin: 26px 0; padding: 18px 22px; border-left: 3px solid var(--teal);
  background: linear-gradient(90deg, #F3FAF7, #FAFCFB 70%, #fff);
  font-family: var(--serif); font-size: 1.08em; line-height: 1.8; color: var(--navy);
  letter-spacing: -0.025em;
}
.article-body blockquote cite { display: block; margin-top: 8px; font-family: var(--sans); font-size: 12.5px; font-style: normal; color: var(--muted); letter-spacing: 0; }
.article-body ul.body-list { margin: 0 0 22px; padding: 14px 18px; background: var(--bg); border: 1px solid var(--line); border-radius: 2px; }
.article-body ul.body-list li { position: relative; padding-left: 14px; font-size: .93em; line-height: 1.8; margin-bottom: 4px; color: var(--ink-2); }
.article-body ul.body-list li::before { content: ""; position: absolute; left: 0; top: .8em; width: 5px; height: 5px; background: var(--teal); border-radius: 1px; }

.figure { margin: 26px 0 28px; }
.figure img { width: 100%; border-radius: 2px; }
.figure figcaption { font-size: 12px; color: var(--muted); line-height: 1.65; margin-top: 8px; padding-left: 2px; letter-spacing: 0; }

.article-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 34px; padding-top: 20px; border-top: 1px solid var(--line); }
.tag { font-size: 12px; color: var(--muted); background: var(--bg); border: 1px solid var(--line); padding: 4px 10px; border-radius: 100px; letter-spacing: 0; }
.tag:hover { color: var(--teal-600); border-color: var(--mint-2); background: var(--mint); }

.article-aside { display: flex; flex-direction: column; gap: 16px; }
.sticky { position: sticky; top: 76px; }

/* comments / report */
.reaction {
  margin-top: 30px; border: 1px solid var(--line); background: var(--paper); border-radius: 3px; padding: 18px;
}
.reaction-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.reaction-head h3 { font-size: 14.5px; font-weight: 700; color: var(--navy); letter-spacing: -0.02em; }
.reaction-head .note { font-size: 11.5px; color: var(--muted-2); letter-spacing: 0; }
.comment-form { display: flex; gap: 8px; margin-top: 12px; }
.comment-form input { flex: 1; min-width: 0; border: 1px solid var(--line-strong); border-radius: 2px; padding: 9px 11px; font-size: 13px; }
.comment-form #commentName { flex: 0 0 96px; }
.comment-form input:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(13,122,95,.1); }
.comments { margin-top: 12px; }
.comment { padding: 12px 0; border-top: 1px solid var(--line); }
.comment .c-head { display: flex; align-items: center; gap: 7px; }
.comment .c-head b { font-size: 12.5px; color: var(--ink-2); }
.comment .c-head time { font-size: 11px; color: var(--muted-2); letter-spacing: 0; }
.comment p { font-size: 13.5px; color: var(--ink-2); line-height: 1.7; margin-top: 4px; letter-spacing: 0; }
.report-strip {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  margin-top: 18px; padding: 14px 18px; background: var(--mint); border-radius: 3px;
  border: 1px solid var(--mint-2);
}
.report-strip .txt { font-size: 12.5px; color: var(--teal-600); line-height: 1.6; letter-spacing: 0; }
.report-strip .txt b { color: var(--navy); }

.related { margin-top: 44px; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.article-nav { display: flex; justify-content: space-between; gap: 16px; margin-top: 34px; border-top: 1px solid var(--line-strong); padding-top: 18px; }
.article-nav a { display: flex; flex-direction: column; gap: 3px; max-width: 46%; }
.article-nav .lbl { font-size: 11px; color: var(--muted-2); letter-spacing: 0; }
.article-nav .ttl { font-size: 14px; color: var(--ink); font-weight: 500; letter-spacing: -0.02em; line-height: 1.45; }
.article-nav a:hover .ttl { color: var(--teal-600); }
.article-nav .next { text-align: right; margin-left: auto; align-items: flex-end; }

/* =========================================================================
   RESPONSIVE
   ========================================================================= */
@media (max-width: 1180px) {
  .hero { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, .82fr); }
  .hero > * { padding: 18px; }
  .hero-title { font-size: 29px; }
  .gnb-item { padding: 0 15px; font-size: 14.5px; }
  .eco-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1020px) {
  .hero { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }
  .hero-side { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--line); flex-direction: row; flex-wrap: wrap; }
  .hero-side > * { flex: 1 1 260px; }
  .article-layout { grid-template-columns: minmax(0, 1fr); }
  .article-aside { display: none; }
  .footer-top .wrap { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  :root { --gutter: 18px; }
  .masthead .wrap { grid-template-columns: 1fr; justify-items: center; gap: 12px; padding-top: 16px; padding-bottom: 14px; }
  .mast-meta { display: none; }
  .brand-name { font-size: 40px; }
  .brand-mark { width: 42px; height: 42px; }
  .brand-sub { font-size: 9.5px; letter-spacing: .26em; }
  .gnb { height: auto; justify-content: flex-start; }
  /* 모바일 카테고리: 좌우 스크롤을 없애고 모든 항목이 한눈에 보이게 줄바꿈 배치 */
  .gnb-list {
    display: flex; flex: 1 1 100%; flex-wrap: wrap; justify-content: center;
    gap: 0; width: 100%; overflow: visible;
  }
  .gnb-list > li { display: flex; }
  .gnb-item {
    flex: 1 1 auto; justify-content: center; height: 42px;
    padding: 0 14px; font-size: 13.5px; letter-spacing: -0.03em;
  }
  .gnb-item::after { left: 50%; right: auto; width: 26px; margin-left: -13px; bottom: 4px; height: 2.5px; }
  .gnb-item:first-child { padding-left: 14px; }
  .gnb-item:first-child::after { left: 50%; }
  .gnb-brand, .gnb-right, .menu-btn { display: none; }
  /* 스크롤 후 고정 상태에서도 사이트 이름을 다시 띄우지 않는다 (네비 폭을 잠식해 글자가 잘리던 원인) */
  .gnb-shell.stuck .gnb-brand { display: none; }
  .hero-mini { display: none; }
  .page { padding-top: 18px; }
  .page-head { flex-direction: column; align-items: flex-start; gap: 5px; padding-bottom: 9px; margin-bottom: 16px; }
  .page-head h1 { font-size: 22px; flex-wrap: wrap; row-gap: 2px; }
  .page-head .aside-note { font-size: 11.5px; }
  .section-head h2 { font-size: 19px; }
  .section-head .desc { display: none; }
  .split { grid-template-columns: 1fr; }
  .district-grid, .cat-panel .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .article-title { font-size: 30px; }
  .article-sub { font-size: 16px; }
  .related-grid { grid-template-columns: 1fr 1fr; }
  .utility .wrap { height: auto; padding-top: 7px; padding-bottom: 7px; flex-wrap: wrap; gap: 6px; }
  .util-weather .sep, .util-weather .heavy { display: none; }
  .util-right { margin-left: auto; }
}
@media (max-width: 720px) {
  .hero { grid-template-columns: 1fr; border: 0; box-shadow: none; background: transparent; }
  .hero-main { border-right: 0; background: var(--paper); border: 1px solid var(--line); padding: 18px 16px 20px; }
  .hero-title { font-size: 25px; }
  .hero-lead { font-size: 14px; -webkit-line-clamp: 4; }
  .hero-list { background: var(--paper); border: 1px solid var(--line); border-top: 0; padding: 6px 16px 14px; }
  .hero-side { flex-direction: column; border: 0; padding: 16px 0 0; gap: 14px; }
  .hero-side > * { flex: none; }
  .list-item { grid-template-columns: 1fr 88px; }
  .eco-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .eco-head { flex-direction: column; align-items: flex-start; gap: 10px; }
  .eco-head h2 { font-size: 22px; }
  .eco-body h3 { font-size: 13.5px; -webkit-line-clamp: 3; }
  .eco-body .eco-sum { display: none; }
  .district-grid, .cat-panel .cat-grid { grid-template-columns: 1fr; }
  .latest-row { grid-template-columns: 48px 1fr; }
  .lr-cat { display: none; }
  .article-title { font-size: 26px; }
  .article-toolbar { gap: 10px; }
  .byline .date { display: none; }
  .article-body { font-size: 16px; }
  .article-body.fs-1 { font-size: 15px; }
  .article-body.fs-2 { font-size: 16px; }
  .article-body.fs-3 { font-size: 18px; }
  .related-grid { grid-template-columns: 1fr; }
  .footer-top .wrap { grid-template-columns: 1fr 1fr; gap: 20px; }
  .activity-none { display: none; }
  .brand-name { font-size: 32px; }
  .masthead .wrap { padding-top: 12px; padding-bottom: 11px; gap: 7px; }
  .brand { gap: 4px; }
  .brand-tag { font-size: 11.5px; text-align: center; }
  .ticker .wrap { padding: 0; }
  .ticker-label { padding-left: 16px; font-size: 11.5px; }
  .ticker-track > a { font-size: 12.5px; padding: 0 18px; }
  .reaction { padding: 14px; }
  .report-strip { flex-direction: column; align-items: flex-start; gap: 8px; }
  .article-nav .ttl { font-size: 13px; }
  .to-top { right: 14px; bottom: 16px; width: 40px; height: 40px; }
}
@media (max-width: 420px) {
  .brand-name { font-size: 30px; }
  .brand-mark { width: 36px; height: 36px; }
  .util-btn { padding: 4px 8px; font-size: 11.5px; }
  .util-date { font-size: 11.5px; }
  .util-issue, .util-weather { display: none; }
  .utility .wrap { flex-wrap: wrap; }
  .util-left { flex-wrap: wrap; white-space: normal; min-width: 0; }
  .mast-weather { display: none; }
  .eco-grid { grid-template-columns: 1fr; }
  .hero-title { font-size: 23px; }
  .page-head h1 { font-size: 22px; }
}

@media (max-width: 480px) {
  /* 좌우가 좁은 화면에서는 댓글 폼을 한 줄씩 쌓아 가로 넘침을 막는다 */
  .reaction-head { flex-wrap: wrap; gap: 4px 10px; }
  .reaction-head .note { flex: 1 1 100%; }
  .comment-form { flex-wrap: wrap; }
  .comment-form input,
  .comment-form #commentName,
  .comment-form input::placeholder { font-size: 13px; }
  .comment-form #commentName { flex: 1 1 100%; }
  .comment-form #commentText { flex: 1 1 100%; }
  .comment-form .btn { flex: 1 1 100%; }
  /* 푸터 법정 표기·공유 도구도 좁은 화면에서 줄바꿈 */
  .legal-lines { display: block; }
  .legal-lines span { white-space: normal; }
  .legal-lines .sep { margin: 0 6px; }
  .article-toolbar .tools { flex-wrap: wrap; row-gap: 6px; }
  .byline { flex-wrap: wrap; }
  .byline .who { min-width: 0; }
}

@media (max-width: 600px) {
  /* 좁은 폰: 4+3 두 줄 고정 폭 칸으로 나누어 모든 카테고리를 조밀하게 */
  .gnb-list > li { flex: 0 0 25%; max-width: 25%; }
  .gnb-item { flex: 1 1 auto; padding: 0 2px; font-size: 12.5px; height: 38px; }
  .gnb-item:first-child { padding-left: 2px; }
}

/* 모바일 검색 패널: 입력창이 자기 기본 폭(min-content)을 주장해
   검색·닫기 버튼이 화면 밖으로 밀려나던 문제 수정 */
@media (max-width: 560px) {
  .search-box { padding: 14px 0 4px; }
  .search-form { gap: 8px; padding-bottom: 8px; }
  .search-form input { font-size: 16px; }
  .search-form input::placeholder { font-size: 13.5px; }
  .search-form .go { flex: none; padding: 7px 12px; font-size: 12.5px; white-space: nowrap; }
  .search-close { flex: none; font-size: 12px; padding: 4px 2px; white-space: nowrap; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
}

@media print {
  .utility, .gnb-shell, .ticker, .search-panel, .to-top, .article-aside, .site-footer { display: none; }
  body { background: #fff; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   MOBILE OVERFLOW HARDENING (2026-11-29)
   실제 안드로이드에서 좌우로 밀리는 원인을 남기지 않기 위한 최종 보강.
   ═══════════════════════════════════════════════════════════════════════════ */
/* 넘치는 요소가 생겨도 화면 밖으로 나가지 않도록 폭을 고정한다 */
.masthead, .utility, .gnb-shell, .ticker, .site-footer, main, section, footer { max-width: 100%; }
.hero, .hero > *, .split > *, .eco-grid > *, .district-grid > *, .related-grid > *,
.latest-list, .latest-row, .latest-row > *, .side-card, .brief, .cta-card, .list-item > *,
.d-card, .d-card .d-body, .op-card, .reaction, .report-strip, .article-body, .figure { min-width: 0; max-width: 100%; }
/* 긴 단어·URL·주소가 줄을 뚫고 나가지 않게 */
.article-body, .article-sub, .article-title, .legal-lines, .copyright { overflow-wrap: anywhere; }
/* 토스트가 화면보다 넓어지지 않게 */
.toast { max-width: calc(100vw - 32px); text-align: center; }
