/*
Theme Name: earth2city
Theme URI: https://earth2city.co.kr/
Description: 아파트 청약·시세 데이터 서비스 전용 클래식 테마. 블록 테마 아님. 웹폰트·jQuery·외부 CDN 미사용, 바닐라 JS/SVG 차트 자체 구현. 모바일 퍼스트. 공통 디자인 시스템(A부)+earth2city(B부) 적용.
Author: earth2city
Version: 0.2.0
Requires at least: 6.4
Requires PHP: 8.1
Text Domain: earth2city
*/

/* =========================================================================
   디자인 토큰 (CSS 변수) — 공통 디자인 시스템 A-1 적용.
   ※ A-0 매핑: 기존 변수명을 유지하고 "역할"만 공통 시스템 값으로 재매핑한다.
     --surface-1 → bg-card(#FFFFFF)   --plane → bg-page(#FAFAF9)
     --ink-1 → text-1   --ink-2 → text-2   --muted → text-3
     --border → 헤어라인(#E7E5E0)     --brand → c1(주 브랜드)
     --good → ok(상태)   --warn → warn(상태)
   브랜드 3색(B-1): c1=남색(청약·공고) / c2=틸(시세·데이터) / c3=주황(마감임박·일정)
   시스템 폰트 스택 — 웹폰트 금지. 라이트/다크 모두 대응.
   ========================================================================= */
:root {
  /* 표면·잉크 (A-1 기본) */
  --surface-1: #ffffff;      /* bg-card */
  --plane: #fafaf9;          /* bg-page */
  --ink-1: #1a1a18;          /* text-1 */
  --ink-2: #5f5e5a;          /* text-2 */
  --muted: #888780;          /* text-3 (축/캡션) */
  --border: #e7e5e0;         /* 헤어라인 */
  --grid: #ecebe6;           /* 차트 격자 */
  --baseline: #cbc9c1;       /* 차트 축선 */

  /* 브랜드 3색 (B-1) */
  --c1: #0c447c; --c1-bg: #e6f1fb; --c1-deep: #0c447c;   /* 주 — 청약·공고(남색) */
  --c2: #0f6e56; --c2-bg: #e1f5ee; --c2-deep: #04342c;   /* 보조 — 시세·데이터(틸) */
  --c3: #d85a30; --c3-bg: #faece7; --c3-deep: #993c1d;   /* 강조 — 마감임박·일정(주황) */

  /* --brand = c1 (기존 클래스 호환용 별칭) */
  --brand: var(--c1);
  --brand-ink: #ffffff;

  /* 상태색 (A-1) */
  --ok: #0f6e56;     --ok-bg: #e1f5ee;      /* 접수 중·정상 */
  --warn: #854f0b;   --warn-bg: #faeeda;    /* 마감 임박·주의 */
  --danger: #a32d2d; --danger-bg: #fcebeb;  /* 마감·경고 */
  --good: var(--ok); /* 기존 별칭 */
  --cancel: #a5a39c; /* 계약해제 표기(취소선) */

  /* 차트 시리즈 — 틸/주황(색맹 안전쌍, dataviz). 시세=c2 톤 정합 */
  --series-price: #0f6e56;   /* 실거래가 선형(틸) */
  --series-record: #d85a30;  /* 신고가 마커(주황) */
  --series-volume: #a9d3c8;  /* 거래량 막대(연틸·recede) */

  /* 치수 */
  --wrap: 1080px;
  --gap: 16px;
  --radius: 12px;            /* radius-card */
  --radius-chip: 9px;
  --radius-pill: 999px;
  --tap: 44px;               /* 최소 터치 타깃 */
  --font: system-ui, -apple-system, "Segoe UI", "Apple SD Gothic Neo",
          "Malgun Gothic", "맑은 고딕", Roboto, sans-serif;
  --shadow: 0 1px 2px rgba(11,11,11,.05);
}

@media (prefers-color-scheme: dark) {
  :root {
    --surface-1: #1a1a19;
    --plane: #101010;
    --ink-1: #f5f4f1;
    --ink-2: #c3c2b7;
    --muted: #8f8e88;
    --border: #2c2c2a;
    --grid: #26261f;
    --baseline: #3d3d38;

    --c1: #5aa0e6; --c1-bg: #14293d; --c1-deep: #bcd8f4;
    --c2: #47c2a0; --c2-bg: #10312a; --c2-deep: #bfe9dc;
    --c3: #e8825c; --c3-bg: #3a231a; --c3-deep: #f3c3ac;

    --brand-ink: #0b1a2a;
    --ok: #47c2a0;     --ok-bg: #10312a;
    --warn: #e6b45f;   --warn-bg: #3a2f14;
    --danger: #e08585; --danger-bg: #3a1c1c;
    --cancel: #7c7b74;

    --series-price: #47c2a0;
    --series-record: #e8825c;
    --series-volume: #2f5f54;
    --shadow: 0 1px 2px rgba(0,0,0,.4);
  }
}

/* =========================================================================
   리셋·기본
   ========================================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--ink-1);
  background: var(--plane);
  word-break: keep-all;
  overflow-wrap: anywhere;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--c1); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.32; margin: 0 0 .5em; font-weight: 500; letter-spacing: -.01em; }
h1 { font-size: 22px; }
h2 { font-size: 18px; }
strong, b { font-weight: 500; }
table { border-collapse: collapse; width: 100%; }
:focus-visible { outline: 2px solid var(--c1); outline-offset: 2px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 8px; top: 8px; background: var(--c1); color: #fff; padding: 8px 12px; border-radius: 6px; z-index: 100; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* 인라인 SVG 아이콘 (스프라이트 <symbol>, stroke 1.75) */
.icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.75;
  stroke-linecap: round; stroke-linejoin: round; flex: none; vertical-align: middle; }
.icon-chip {
  width: 42px; height: 42px; border-radius: var(--radius-chip);
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  background: var(--c1-bg); color: var(--c1-deep);
}
.icon-chip .icon { width: 22px; height: 22px; }
.icon-chip--c1 { background: var(--c1-bg); color: var(--c1-deep); }
.icon-chip--c2 { background: var(--c2-bg); color: var(--c2-deep); }
.icon-chip--c3 { background: var(--c3-bg); color: var(--c3-deep); }

/* =========================================================================
   개발 배너 (더미 데이터 표시) — 실데이터 전환 시 자동 소멸
   ========================================================================= */
.e2c-dummy-banner {
  background: var(--warn-bg); color: var(--warn); border-bottom: 1px solid var(--border);
  font-size: 13px; text-align: center; padding: 7px 12px; line-height: 1.5;
}
.e2c-dummy-banner b { font-weight: 500; }

/* =========================================================================
   헤더 / 내비
   ========================================================================= */
.site-header {
  background: var(--surface-1);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 50;
}
.site-header .wrap { display: flex; align-items: center; gap: 12px; min-height: 58px; }
.brand-logo { display: inline-flex; align-items: center; gap: 9px; font-weight: 500; font-size: 19px; color: var(--ink-1); letter-spacing: -.02em; white-space: nowrap; }
.brand-logo:hover { text-decoration: none; }
.brand-logo .icon { width: 26px; height: 26px; color: var(--c1); stroke-width: 1.9; }
.brand-logo b { color: var(--c1); font-weight: 600; }
.nav-toggle {
  margin-left: auto; display: none; width: var(--tap); height: var(--tap);
  align-items: center; justify-content: center; background: none; border: 1px solid var(--border);
  border-radius: var(--radius-chip); cursor: pointer; color: var(--ink-1);
}
.main-nav { margin-left: auto; }
.main-nav ul { list-style: none; display: flex; gap: 2px; margin: 0; padding: 0; }
.main-nav a {
  display: inline-flex; align-items: center; gap: 7px; min-height: var(--tap); padding: 0 12px;
  color: var(--ink-2); font-weight: 500; border-radius: var(--radius-chip); font-size: 15px;
}
.main-nav a .icon { width: 17px; height: 17px; color: var(--muted); }
.main-nav a:hover, .main-nav .current-menu-item > a { color: var(--c1-deep); background: var(--c1-bg); text-decoration: none; }
.main-nav a:hover .icon, .main-nav .current-menu-item > a .icon { color: var(--c1); }

@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  .main-nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--surface-1);
    border-bottom: 1px solid var(--border); margin: 0; padding: 6px 16px; display: none; box-shadow: var(--shadow); }
  .main-nav[data-open="1"] { display: block; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav a { border-bottom: 1px solid var(--border); border-radius: 0; }
  .main-nav li:last-child a { border-bottom: 0; }
}

/* =========================================================================
   섹션·카드 공통 (A-2)
   ========================================================================= */
.section { padding: 26px 0; }
.section > .wrap > h2 { font-size: 18px; margin-bottom: 4px; }
.section .sub { color: var(--ink-2); font-size: 14px; margin: 0 0 16px; }
.card {
  background: var(--surface-1); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow);
}
/* 기능/데이터 카드: 상단 3px 색 라인 (A-2) */
.card--c1, .card--c2, .card--c3 { position: relative; overflow: hidden; }
.card--c1::before, .card--c2::before, .card--c3::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px;
}
.card--c1::before { background: var(--c1); }
.card--c2::before { background: var(--c2); }
.card--c3::before { background: var(--c3); }

.grid { display: grid; gap: var(--gap); }

/* 배지(알약) — 상태색 + 브랜드색. 색만으로 의미 전달 금지: 텍스트 라벨 병기 */
.badge { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 500; padding: 3px 9px; border-radius: var(--radius-pill); line-height: 1.5; }
.badge .icon { width: 13px; height: 13px; }
.badge--ok, .badge.receiving { background: var(--ok-bg); color: var(--ok); }
.badge--warn, .badge.upcoming { background: var(--warn-bg); color: var(--warn); }
.badge--danger, .badge.closed { background: var(--danger-bg); color: var(--danger); }
.badge--c1, .badge.announcing { background: var(--c1-bg); color: var(--c1-deep); }
.badge--c2 { background: var(--c2-bg); color: var(--c2-deep); }
.badge--c3 { background: var(--c3-bg); color: var(--c3-deep); }
.badge--line { background: transparent; border: 1px solid var(--border); color: var(--ink-2); }
.dday { font-variant-numeric: tabular-nums; font-weight: 600; }

/* 통계/수치 (A-2) */
.stat { display: flex; flex-direction: column; gap: 2px; }
.stat .num { font-size: 22px; font-weight: 500; font-variant-numeric: tabular-nums; letter-spacing: -.02em; line-height: 1.1; }
.stat .num .unit { font-size: 13px; font-weight: 400; color: var(--ink-2); margin-left: 3px; }
.stat .cap { font-size: 12.5px; color: var(--muted); }

/* 데이터 기준일·출처 고지 */
.data-meta { font-size: 12.5px; color: var(--muted); margin-top: 10px; line-height: 1.7; }
.data-meta a { color: var(--ink-2); text-decoration: underline; }
.data-meta .icon { width: 13px; height: 13px; color: var(--muted); }
.ymyl-note {
  font-size: 12.5px; background: var(--c1-bg); border: 1px solid var(--border);
  border-radius: var(--radius-chip); padding: 9px 12px; margin: 12px 0 0; color: var(--ink-2); line-height: 1.6;
}
.snapshot-notice {
  font-size: 13px; background: var(--c1-bg); border: 1px solid var(--border);
  border-radius: var(--radius-chip); padding: 10px 12px; margin: 12px 0; color: var(--ink-2);
}

/* 빈 상태 (데이터 미수집 단지 등) B-3.2 */
.empty-state {
  text-align: center; padding: 40px 20px; color: var(--ink-2);
  background: var(--surface-1); border: 1px solid var(--border); border-radius: var(--radius);
}
.empty-state .icon-chip { margin: 0 auto 12px; }
.empty-state h3 { font-size: 16px; color: var(--ink-1); margin-bottom: 6px; }
.empty-state p { font-size: 13.5px; margin: 0 auto; max-width: 420px; }

/* =========================================================================
   프론트: 히어로 (B-2)
   ========================================================================= */
.hero { background: linear-gradient(180deg, var(--c1-bg), transparent 78%); }
.hero-inner { padding: 34px 22px 30px; border-radius: 16px; }
.hero .pill {
  display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 500;
  color: var(--c1-deep); background: var(--surface-1); border: 1px solid var(--border);
  padding: 5px 12px; border-radius: var(--radius-pill); margin-bottom: 14px;
}
.hero .pill .icon { width: 15px; height: 15px; color: var(--c1); }
.hero h1 { font-size: 27px; letter-spacing: -.025em; margin-bottom: 8px; font-weight: 500; }
.hero h1 b { color: var(--c1); font-weight: 600; }
.hero .lead { color: var(--ink-2); margin: 0 0 18px; font-size: 15.5px; max-width: 640px; }
.hero-search { display: flex; gap: 8px; max-width: 560px; }
.hero-search .inp {
  flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; background: var(--surface-1);
  border: 1px solid var(--baseline); border-radius: var(--radius-pill); padding: 0 16px; min-height: var(--tap);
}
.hero-search .inp .icon { color: var(--muted); }
.hero-search input { flex: 1; min-width: 0; width: 100%; border: 0; background: none; font: inherit; color: var(--ink-1); min-height: var(--tap); outline: none; }
.hero-search .btn { border-radius: var(--radius-pill); padding: 0 20px; flex: none; }
@media (min-width: 720px) { .hero h1 { font-size: 31px; } }

/* 청약 캘린더 3열 */
.cal-cols { grid-template-columns: 1fr; }
@media (min-width: 720px) { .cal-cols { grid-template-columns: 1fr 1fr 1fr; } }
.cal-col h3 { font-size: 14px; display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font-weight: 500; }
.cal-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.cal-item { display: block; padding: 12px 14px; min-height: var(--tap); }
.cal-item:hover { text-decoration: none; border-color: var(--c1); }
.cal-item .t { font-weight: 500; color: var(--ink-1); display: block; }
.cal-item .m { font-size: 13px; color: var(--ink-2); display: flex; justify-content: space-between; gap: 8px; margin-top: 4px; }

/* 지역 진입 칩 그리드 (A-2) */
.region-grid { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 560px) { .region-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 860px) { .region-grid { grid-template-columns: repeat(6, 1fr); } }
.region-cell { text-align: center; padding: 14px 8px; min-height: var(--tap); font-weight: 500; color: var(--ink-1); border-radius: var(--radius-chip); }
.region-cell span { display: block; font-size: 12px; color: var(--muted); font-weight: 400; margin-top: 2px; }
.region-cell:hover { border-color: var(--c1); background: var(--c1-bg); color: var(--c1-deep); text-decoration: none; }
.region-cell:hover span { color: var(--c1-deep); }

/* 주간 신고가 하이라이트 */
.hi-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.hi-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; padding: 13px 15px; align-items: center; }
.hi-row .name { font-weight: 500; }
.hi-row .area { font-size: 13px; color: var(--ink-2); }
.hi-row .price { text-align: right; font-variant-numeric: tabular-nums; font-weight: 500; font-size: 16px; }
.hi-row .delta { font-size: 12px; color: var(--ok); display: block; margin-top: 2px; }

/* =========================================================================
   시세 차트 컴포넌트 (SVG + 표 폴백) — c2(시세) 톤
   ========================================================================= */
.e2c-chart { padding: 16px; }
.e2c-chart figure { margin: 0; }
.e2c-chart .chart-head { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: baseline; margin-bottom: 8px; }
.e2c-chart .chart-head h3 { margin: 0; font-size: 16px; font-weight: 500; }
.chart-legend { display: flex; flex-wrap: wrap; gap: 12px; font-size: 12.5px; color: var(--ink-2); margin-left: auto; }
.chart-legend .k { display: inline-flex; align-items: center; gap: 6px; }
.chart-legend .sw { width: 14px; height: 3px; border-radius: 2px; display: inline-block; }
.chart-legend .sw.line { background: var(--series-price); }
.chart-legend .sw.rec { width: 10px; height: 10px; background: var(--series-record); transform: rotate(45deg); border-radius: 2px; }
.chart-legend .sw.vol { height: 10px; background: var(--series-volume); }
@media (max-width: 560px) { .chart-legend { width: 100%; margin-left: 0; } }

.chart-svg-holder { position: relative; width: 100%; overflow-x: auto; }
.chart-svg-holder svg { display: block; width: 100%; height: auto; }
.e2c-chart .axis text, .e2c-chart .tick text { fill: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.e2c-chart .grid-line { stroke: var(--grid); stroke-width: 1; }
.e2c-chart .axis-line { stroke: var(--baseline); stroke-width: 1; }
.e2c-chart .price-line { fill: none; stroke: var(--series-price); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.e2c-chart .price-dot { fill: var(--series-price); }
.e2c-chart .rec-marker { fill: var(--series-record); stroke: var(--surface-1); stroke-width: 1.5; }
.e2c-chart .rec-label { fill: var(--series-record); font-size: 11px; font-weight: 500; }
.e2c-chart .vol-bar { fill: var(--series-volume); }
.e2c-chart .crosshair { stroke: var(--baseline); stroke-width: 1; stroke-dasharray: 3 3; }

.chart-tooltip {
  position: absolute; pointer-events: none; background: var(--ink-1); color: var(--surface-1);
  font-size: 12px; padding: 6px 8px; border-radius: 6px; white-space: nowrap; transform: translate(-50%, -120%);
  opacity: 0; transition: opacity .08s; z-index: 3; font-variant-numeric: tabular-nums;
}
.chart-tooltip.on { opacity: 1; }

/* 표 폴백 — 항상 렌더(크롤러블·접근성) */
.chart-table-wrap { overflow-x: auto; margin-top: 14px; }
.chart-table { font-size: 13px; }
.chart-table caption { text-align: left; color: var(--ink-2); font-size: 12.5px; margin-bottom: 6px; }
.chart-table th, .chart-table td { padding: 8px 10px; border-bottom: 1px solid var(--border); text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.chart-table th:first-child, .chart-table td:first-child { text-align: left; }
.chart-table thead th { color: var(--ink-2); font-weight: 500; background: var(--plane); border-bottom: 1px solid var(--baseline); }
.chart-table tr.is-record td { font-weight: 500; }
.chart-table .tag-record { color: var(--series-record); font-size: 11px; font-weight: 500; }
.chart-table tr.is-cancel td { color: var(--cancel); text-decoration: line-through; }
.chart-table .tag-cancel { color: var(--cancel); font-size: 11px; text-decoration: none; display: inline-block; }
.js-on details.chart-table-details > summary { cursor: pointer; color: var(--c1); font-size: 13px; padding: 6px 0; min-height: var(--tap); display: flex; align-items: center; }

/* =========================================================================
   공고 상세 / 단지 시세 레이아웃
   ========================================================================= */
.detail-head { padding: 22px 0 6px; }
.detail-head h1 { font-size: 23px; margin-bottom: 8px; }
.detail-head .meta-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 4px; }
.detail-grid { grid-template-columns: 1fr; }
@media (min-width: 880px) { .detail-grid { grid-template-columns: minmax(0,1fr) 300px; align-items: start; } }
.spec-table th, .spec-table td { padding: 10px 12px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.spec-table thead th { background: var(--plane); }
.spec-table th { color: var(--ink-2); font-weight: 500; white-space: nowrap; }
.spec-table td { font-variant-numeric: tabular-nums; }

/* 일정 타임라인 */
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { position: relative; padding: 0 0 16px 22px; border-left: 2px solid var(--grid); }
.timeline li:last-child { border-left-color: transparent; padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 3px; width: 12px; height: 12px; border-radius: 50%; background: var(--surface-1); border: 2px solid var(--baseline); }
.timeline li.done::before { background: var(--c1); border-color: var(--c1); }
.timeline li.changed::before { background: var(--c3); border-color: var(--c3); }
.timeline .dt { font-weight: 500; font-variant-numeric: tabular-nums; }
.timeline .lbl { color: var(--ink-2); font-size: 14px; }
.timeline .chg { color: var(--c3-deep); font-size: 12.5px; margin-top: 2px; }

/* 지도 (lazy iframe/이미지) */
.map-embed { position: relative; aspect-ratio: 16 / 10; background: var(--grid); border-radius: var(--radius-chip); overflow: hidden; }
.map-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-embed .map-ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 13px; }

/* 사이드/관련 링크 */
.aside-box { padding: 15px 16px; }
.aside-box h3 { font-size: 13.5px; color: var(--ink-2); font-weight: 500; margin-bottom: 8px; }
.link-list { list-style: none; margin: 0; padding: 0; }
.link-list li { border-bottom: 1px solid var(--border); }
.link-list li:last-child { border-bottom: 0; }
.link-list a { display: block; padding: 11px 0; min-height: var(--tap); }

.noindex-note { font-size: 12.5px; color: var(--muted); border: 1px dashed var(--border); border-radius: var(--radius-chip); padding: 8px 12px; margin-top: 12px; }

/* 본문(매거진·리포트 자유 서술형) */
.entry-content { font-size: 16px; line-height: 1.75; }
.entry-content h2 { font-size: 20px; margin: 1.4em 0 .5em; }
.entry-content h3 { font-size: 17px; margin: 1.2em 0 .4em; }
.entry-content p { margin: 0 0 1em; }
.entry-content a { text-decoration: underline; }
.entry-content img { border-radius: var(--radius-chip); margin: 1em 0; }
.entry-content ul, .entry-content ol { padding-left: 1.4em; }

/* =========================================================================
   푸터
   ========================================================================= */
.site-footer { background: var(--surface-1); border-top: 1px solid var(--border); margin-top: 32px; padding: 26px 0; }
.footer-nav { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 0 0 14px; padding: 0; }
.footer-nav a { color: var(--ink-2); font-weight: 500; }
.footer-source { font-size: 12.5px; color: var(--muted); line-height: 1.7; }
.footer-copy { font-size: 12px; color: var(--muted); margin-top: 10px; line-height: 1.7; }

/* 유틸 */
.mt8{margin-top:8px}.mt16{margin-top:16px}.mt24{margin-top:24px}
.center{text-align:center}
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: var(--tap); padding: 0 18px; border-radius: var(--radius-chip); background: var(--c1); color: var(--brand-ink); font-weight: 500; border: 0; cursor: pointer; font-size: 15px; font-family: inherit; white-space: nowrap; }
.btn:hover { text-decoration: none; filter: brightness(1.06); }
.btn .icon { color: currentColor; width: 18px; height: 18px; }
.btn.ghost { background: transparent; color: var(--c1); border: 1px solid var(--border); }

/* 도구 폼 */
.tool-select { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 560px){ .tool-select { grid-template-columns: 1fr 1fr auto; align-items: end; } }
.field label { display: block; font-size: 13px; color: var(--ink-2); margin-bottom: 6px; font-weight: 500; }
.field select, .field input { width: 100%; min-height: var(--tap); padding: 0 12px; border: 1px solid var(--baseline); border-radius: var(--radius-chip); background: var(--surface-1); color: var(--ink-1); font-size: 15px; font-family: inherit; }

/* 페이지네이션 */
.pagination { display: flex; gap: 6px; flex-wrap: wrap; }
.pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: var(--tap); min-height: var(--tap); padding: 0 10px; border: 1px solid var(--border); border-radius: var(--radius-chip); color: var(--ink-2); }
.pagination .page-numbers.current { background: var(--c1); color: var(--brand-ink); border-color: var(--c1); }
