/* 템플릿 공통 뼈대 — 동작에 딸린 CSS 만. 생김새는 한 줄도 없다.
 *
 * 여기에 있는 것: 무JS 완성본을 만드는 분기, 접근성 최소선(초점 테두리·44px 터치),
 * 가로 넘침을 막는 장치, 모션 끔 대비, 서랍·토스트의 기계 장치.
 * 여기에 **없어야 하는 것**: 색·활자·간격·배치·그림자·모서리. 그건 벌마다 달라야 한다
 * (원자료 프롬프트가 「섹션 순서·이미지 비율을 다른 벌에서 복제 금지」를 명시한다).
 *
 * 쓰는 법: 벌의 styles.css 맨 위에 이 내용을 붙이고, 그 아래에 그 벌의 디자인을 쓴다.
 * 아래 값 중 색이 필요한 두 곳(스크림·초점 테두리)만 벌의 색으로 바꿔도 된다.
 */

/* ── 기본 ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  /* 한국어는 낱말 가운데서 끊으면 읽기 힘들다 — 낱말 단위로 넘긴다. */
  word-break: keep-all;
  overflow-wrap: break-word;
}

img, video { max-width: 100%; height: auto; }

/* 이미지 드래그가 포인터를 가로채지 않게 — JS 쪽 dragstart 차단과 한 쌍이다(§4-C 7) */
img { -webkit-user-drag: none; user-select: none; }

/* `.frame` 을 span 으로 두면 inline 이라 aspect-ratio 가 무시된다(§4 함정 5) */
.frame { display: block; }

/* ── 초점 ─────────────────────────────────────────────────────────── */
:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  padding: .75rem 1rem; background: Canvas; color: CanvasText;
}
.skip-link:focus { left: 0; }

/* ── 터치 영역 ─────────────────────────────────────────────────────
   검사기가 화면 좌표로 ±22px 을 찍어 44px 을 확인한다. 눈에 보이는 점이 작아도
   **단추 자체를 44×44 로 두고 시각 요소는 ::after 로** 그리면 둘 다 만족한다. */
@media (max-width: 767px) {
  .site-header a, .site-header button,
  .drawer a, .drawer button,
  .dots button, .pager button, .tab {
    min-width: 44px; min-height: 44px;
  }
}

/* ── 가로 넘침 ─────────────────────────────────────────────────────
   `overflow-x:auto` 상자가 `position:static` 이면 넘친 표가 문서 스크롤 폭을 밀어
   320·390px 에서 페이지 전체가 가로로 밀린다(§4-C 9). `overflow:hidden` 을 얹어도 안 고쳐진다. */
.scroll-x { overflow-x: auto; position: relative; -webkit-overflow-scrolling: touch; }

/* 넘침을 자를 때는 hidden 이 아니라 clip 을 쓴다.
   hidden 은 스크롤 컨테이너를 만들어 조상에 있으면 animation-timeline: view() 가
   얼어붙는다 — 스크롤해도 진행이 0 에서 안 움직이는데 콘솔은 조용하다(§4-C 13). */
.clip { overflow: clip; }

/* ── 무JS 완성본 ───────────────────────────────────────────────────
   JS 가 없으면 접힌 것이 전부 펼쳐지고, 등장 효과는 처음부터 보인다.
   `html.js` 는 kit.js 첫 줄이 붙인다. */
.acc-item .acc-panel { display: block; }          /* 무JS 기본값: 펼침 */
.js .acc-item .acc-panel { display: none; }
.js .acc-item.open .acc-panel { display: block; }

.js [role="tabpanel"][hidden] { display: none; }
[role="tabpanel"][hidden] { display: block; }      /* 무JS: 모든 탭 내용을 이어서 보여 준다 */

.reveal { opacity: 1; transform: none; }           /* 무JS 기본값: 이미 보임 */
.js .reveal {
  opacity: 0; transform: translateY(14px);
  transition: opacity .6s ease, transform .6s ease;
}
.js .reveal.in { opacity: 1; transform: none; }

/* JS 로만 동작하는 조작기는 무JS 에서 감춘다 — 「눌러도 반응 없는 단추」를 남기지 않는다.
   **방향에 주의**: `.js-only{display:none}` + `.js .js-only{display:revert}` 로 짜면
   revert 가 UA 기본값(대개 block)으로 되돌려, 그 요소가 원래 갖고 있던 display 나
   미디어쿼리의 `display:none` 을 덮어쓴다(모바일 전용 구매 Dock 이 데스크톱에도 떴다).
   숨기는 쪽에만 규칙을 걸어 요소 자신의 display 를 건드리지 않는다. */
html:not(.js) .js-only { display: none !important; }

/* `hidden` 속성은 `display:grid`·`flex` 에 진다 — 골격 클래스를 단 요소는 안 숨는다(§4-C 18).
   무JS 탭 규칙(위의 `[role="tabpanel"][hidden] { display:block }`)은 살려 두어야 하므로 :not 이 필요하다. */
:where([hidden]):not([role="tabpanel"]) { display: none !important; }

/* ── 모션 끔 ───────────────────────────────────────────────────────
   검사기가 reducedMotion 문맥을 따로 열어 본문이 실제로 보이는지 잰다.
   연출을 끄는 데 그치지 말고 **최종 상태로 고정**해야 한다. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .js .reveal { opacity: 1 !important; transform: none !important; }
}

/* ── 모바일 서랍 ───────────────────────────────────────────────────
   햄버거는 **모바일 전용**이다(§4-C 11). 데스크톱에 남기면 검사기가 눌러
   서랍이 열리고 그 뒤 클릭을 전부 삼킨다. */
.menu-btn { display: none; }
@media (max-width: 767px) { .menu-btn { display: inline-flex; } }

.drawer {
  position: fixed; inset: 0 0 0 auto; width: min(88vw, 360px);
  transform: translateX(100%); transition: transform .28s ease;
  z-index: 60; overflow-y: auto;
  visibility: hidden;
}
.drawer.open { transform: none; visibility: visible; }

.scrim {
  position: fixed; inset: 0; z-index: 50;
  background: rgb(0 0 0 / .45);
  opacity: 0; pointer-events: none; transition: opacity .28s ease;
}
.scrim.open { opacity: 1; pointer-events: auto; }

@media (min-width: 768px) { .drawer, .scrim { display: none; } }

/* ── 토스트 ───────────────────────────────────────────────────────
   `pointer-events:none` 이 없으면 덮개가 아래 단추의 클릭을 삼켜
   전폭 제출 단추가 안 눌린다(§4 함정 2). 지우지 마라. */
.toast {
  position: fixed; left: 50%; bottom: 24px; translate: -50% 0;
  z-index: 80; pointer-events: none;
  opacity: 0; transition: opacity .25s ease, translate .25s ease;
}
.toast.show { opacity: 1; translate: -50% -6px; }

/* ── 폼 ───────────────────────────────────────────────────────────
   동의 체크박스는 input 을 label **밖에** 두고 형제 선택자로 그린다.
   label 이 input 을 감싸면서 for 까지 걸면 두 번 토글돼 영영 안 켜진다(§4 함정 4). */
.agree input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.agree input:focus-visible + label .box { outline: 2px solid currentColor; outline-offset: 2px; }

.spinner {
  display: inline-block; width: 1em; height: 1em; vertical-align: -.125em;
  border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%;
  animation: kit-spin .7s linear infinite;
}
@keyframes kit-spin { to { rotate: 360deg; } }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}

/* ── 구획 리듬 ─────────────────────────────────────────────────────
   구획마다 위아래 절반씩 나눠 가지면 이웃한 구획 사이 간격이 겹치지 않는다.
   `--section` 값은 벌마다 정하라 — 이 파일은 규칙만 준다. */
.section { padding-block: calc(var(--section, 96px) / 2); }
.section-lead { padding-top: var(--section, 96px); }
.section-last { padding-bottom: var(--section, 96px); }


/* ═══════════════════════════════════════════════════════════════════
   해뜬면 — SUNNY SIDE DESIGN SYSTEM
   시안 정본: 00-디자인보드.png(색·활자·사이트맵) · 01-home.png(홈)
             02-페이지시안.png(나머지 4면) · 06-mobile.png(모바일 시퀀스)
   축: 태양 궤적과 지붕 권역 계산 — 화면의 주인공은 업종 소개가 아니라 이 구조다.
   ═══════════════════════════════════════════════════════════════════ */

:root {
  /* 색 — 디자인보드 01 / COLOR 에서 그대로 */
  --sun: #FFD400;
  --sun-ink: #8A6E00;
  --ground: #E9F3F1;
  --ground-2: #DEEDEA;
  --ink: #0C3F52;
  --paper: #FFFFFF;
  --ink-72: rgba(12, 63, 82, .72);
  --ink-55: rgba(12, 63, 82, .55);
  --line: rgba(12, 63, 82, .22);
  --line-2: rgba(12, 63, 82, .42);
  --on-ink: rgba(233, 243, 241, .78);

  /* 활자 — 디자인보드 02 / TYPE : Display 800 / Body 500 / Meta Mono */
  --sans: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, system-ui, "Malgun Gothic", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --section: 104px;
  --wrap: 1200px;
  --gut: clamp(20px, 4vw, 48px);
}

@media (max-width: 767px) { :root { --section: 64px; } }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--ground);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { margin: 0; font-weight: 800; line-height: 1.14; letter-spacing: -.022em; }
p { margin: 0; }
ul, ol, dl, dd { margin: 0; padding: 0; }
li { list-style: none; }
a { color: inherit; }
b, strong { font-weight: 800; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }

/* 메타 활자 — 디자인보드의 「01 / COLOR」 류 라벨 */
.meta {
  font-family: var(--mono);
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-55);
}
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; }

.sun-word { color: var(--ink); background: var(--sun); padding: 0 .18em; }

/* ── 머리 ───────────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: var(--ground);
  border-bottom: 1px solid var(--line);
}
.site-header.is-stuck { border-bottom-color: var(--line-2); }
.header-inner {
  max-width: var(--wrap); margin-inline: auto; padding: 0 var(--gut);
  min-height: 62px; display: flex; align-items: center; gap: 16px;
}
.brand { font-weight: 800; font-size: 1.12rem; letter-spacing: -.02em; text-decoration: none; }
.nav { margin-left: auto; display: flex; gap: clamp(14px, 2vw, 28px); }
.nav a {
  font-family: var(--mono); font-size: .72rem; letter-spacing: .08em;
  text-decoration: none; color: var(--ink-72); padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.nav a:hover { color: var(--ink); border-bottom-color: var(--line-2); }
.nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--sun); }
@media (max-width: 767px) { .nav { display: none; } }

.menu-btn {
  margin-left: auto; width: 44px; height: 44px; padding: 0;
  background: none; border: 1px solid var(--line-2); cursor: pointer;
  align-items: center; justify-content: center;
}
.menu-bar { display: block; width: 18px; height: 2px; background: var(--ink); position: relative; }
.menu-bar::before, .menu-bar::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: var(--ink);
}
.menu-bar::before { top: -6px; } .menu-bar::after { top: 6px; }

.drawer { background: var(--ground); border-left: 1px solid var(--line-2); padding: 18px var(--gut) 32px; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.drawer-close { background: none; border: 1px solid var(--line-2); font: inherit; font-size: .82rem; padding: 0 14px; cursor: pointer; }
.drawer-nav { display: block; margin-top: 6px; }
.drawer-nav a {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 0; border-bottom: 1px solid var(--line);
  text-decoration: none; font-weight: 800; font-size: 1.05rem;
}
.drawer-cta {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 22px; padding: 14px 18px; background: var(--sun);
  font-weight: 800; text-decoration: none;
}
.drawer-tel { margin-top: 14px; font-family: var(--mono); font-size: .82rem; }
.drawer-tel a { text-decoration: none; }

.skip-link { background: var(--sun); color: var(--ink); font-weight: 800; }

/* ── 홈 히어로 : 왼쪽 판독면 / 오른쪽 계기면 ──────────────────────
   시안 01-home 을 그대로 옮긴 2단 분할. 오른쪽 사진은 장식이 아니라
   계기면(사진 → 값)의 윗칸이다. */
.scan {
  display: grid;
  grid-template-columns: minmax(0, 1.52fr) minmax(0, 1fr);
  border-bottom: 1px solid var(--line);
}
.scan-read { padding: clamp(26px, 4vw, 52px) var(--gut) clamp(28px, 4vw, 46px); min-width: 0; }
.scan-read .meta { display: block; margin-bottom: clamp(18px, 3vw, 34px); }
.scan h1 {
  font-size: clamp(2.05rem, 5.1vw, 3.9rem);
  line-height: 1.06; letter-spacing: -.035em;
}
.sun-badge {
  display: inline-block; vertical-align: -.16em;
  width: clamp(38px, 4.4vw, 58px); height: clamp(38px, 4.4vw, 58px);
  margin-left: .28em; border-radius: 50%;
  background: var(--sun) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><g fill='none' stroke='%230C3F52' stroke-width='1.6' stroke-linecap='round'><circle cx='12' cy='12' r='3.4' fill='%230C3F52' stroke='none'/><path d='M12 3.2v2.1M12 18.7v2.1M3.2 12h2.1M18.7 12h2.1M5.8 5.8l1.5 1.5M16.7 16.7l1.5 1.5M18.2 5.8l-1.5 1.5M7.3 16.7l-1.5 1.5'/></g></svg>") center / 62% no-repeat;
}
.scan-lead { margin-top: clamp(16px, 2.4vw, 26px); max-width: 46ch; color: var(--ink-72); }

/* 궤적 캔버스 */
.arc { margin: clamp(18px, 3vw, 34px) 0 0; }
.arc svg { display: block; width: 100%; height: auto; }
.track-line { fill: none; stroke: var(--sun); stroke-width: 4; stroke-linecap: round; }
.track-ghost { fill: none; stroke: var(--line); stroke-width: 1.4; stroke-dasharray: 3 4; }
.track-horizon { stroke: var(--line-2); stroke-width: 1; }
.track-tick { stroke: var(--line-2); stroke-width: 1; }
/* SVG 글자는 그림과 함께 줄어든다 — 좁은 폭에서는 viewBox 안에서 키워 둔다 */
.track-label { font-family: var(--mono); font-size: 11px; fill: var(--ink-55); }
@media (max-width: 700px) { .track-label { font-size: 15px; } .face-lab, .face-val, .plan-n { font-size: 15px; } }
.track-drop { stroke: var(--ink); stroke-width: 1; stroke-dasharray: 2 3; }
.sun-dot { fill: var(--sun); stroke: var(--ink); stroke-width: 1.6; }
.js .sun-dot, .js .track-drop { transition: transform .18s linear; }
@media (prefers-reduced-motion: reduce) { .js .sun-dot, .js .track-drop { transition: none; } }

/* 시각 조절기 */
.scrub { margin-top: 14px; display: flex; align-items: center; gap: 10px 14px; flex-wrap: wrap; }
.scrub input[type="range"] { flex: 1 1 180px; min-width: 150px; }
.scrub-lab { font-family: var(--mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-55); }
.scrub-val { font-family: var(--mono); font-weight: 800; font-size: 1.02rem; font-variant-numeric: tabular-nums; min-width: 4.2em; text-align: right; }
.scrub .btn { font-size: .78rem; padding: 8px 12px; }
input[type="range"] {
  -webkit-appearance: none; appearance: none; width: 100%; height: 44px;
  background: transparent; cursor: pointer; margin: 0;
}
input[type="range"]::-webkit-slider-runnable-track { height: 2px; background: var(--line-2); }
input[type="range"]::-moz-range-track { height: 2px; background: var(--line-2); }
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 22px; height: 22px; margin-top: -10px;
  background: var(--sun); border: 2px solid var(--ink); border-radius: 50%;
}
input[type="range"]::-moz-range-thumb {
  width: 22px; height: 22px; background: var(--sun); border: 2px solid var(--ink); border-radius: 50%;
}

.readout { display: flex; flex-wrap: wrap; gap: 0 28px; margin-top: 18px; border-top: 1px solid var(--line); padding-top: 14px; }
.readout > div { min-width: 0; }
.readout dt { font-family: var(--mono); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-55); }
.readout dd { font-weight: 800; font-size: 1.02rem; font-variant-numeric: tabular-nums; }

/* 오른쪽 계기면 */
.scan-live { display: grid; grid-template-rows: minmax(0, 1fr) auto; min-width: 0; background: var(--ink); }
/* 사진이 제 키를 주장하면 오른쪽 기둥만 길어져 왼쪽에 빈 바닥이 남는다.
   액자를 절대 배치로 두어 「남는 높이만큼 채우는」 그림으로 만든다. */
.scan-frame { position: relative; overflow: clip; min-height: 260px; }
.scan-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.scan-panel { padding: clamp(22px, 2.6vw, 34px) clamp(20px, 2.4vw, 34px) clamp(26px, 3vw, 40px); color: var(--ground); }
.panel-label { font-weight: 800; font-size: 1.02rem; color: var(--paper); }
.live-search { margin-top: 16px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
.live-search input {
  font: inherit; font-size: .92rem; color: var(--paper);
  background: transparent; border: 1px solid rgba(233, 243, 241, .55);
  padding: 12px 14px; min-height: 44px; min-width: 0;
}
.live-search input::placeholder { color: rgba(233, 243, 241, .5); }
.live-search input:focus-visible { outline: 2px solid var(--sun); outline-offset: 1px; }
.btn-find {
  font: inherit; font-weight: 800; font-size: .88rem; cursor: pointer;
  background: var(--sun); color: var(--ink); border: 0; padding: 0 18px; min-height: 44px;
}
.find-msg { font-size: .82rem; color: var(--ink); min-height: 1.4em; margin-top: 8px; }
.scan-panel .find-msg { grid-column: 1 / -1; color: var(--sun); margin-top: 0; }
.find-msg:empty { min-height: 0; }
.panel-fallback { margin-top: 12px; font-size: .84rem; }
.panel-fallback a { color: var(--sun); text-underline-offset: 3px; }
.big-num { margin-top: clamp(18px, 2.6vw, 30px); display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 14px; }
.big-num .fig {
  font-family: var(--sans); font-weight: 800; font-size: clamp(2.6rem, 4.6vw, 3.7rem);
  color: var(--sun); line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums;
}
.big-num .unit { font-size: .92rem; color: var(--paper); font-weight: 800; }
.panel-sub { margin-top: 10px; font-size: .84rem; color: var(--on-ink); font-variant-numeric: tabular-nums; }
.panel-note { margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(233, 243, 241, .28); font-size: .78rem; color: var(--on-ink); }

@media (max-width: 900px) {
  /* 모바일은 축소가 아니라 재배열 — 판독면(글·궤적) → 사진 → 계기면 순서 */
  .scan { grid-template-columns: 1fr; }
  .scan-live { grid-template-rows: auto auto; }
  .scan-frame { min-height: 0; aspect-ratio: 16 / 10; }
}

/* ── 구획 공통 ──────────────────────────────────────────────────── */
.section { border-top: 1px solid var(--line); }
.section:first-child, .ctx + .section { border-top: 0; }
.sec-head { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: clamp(20px, 2.6vw, 32px); }
.sec-head h2 { font-size: clamp(1.32rem, 2.3vw, 1.9rem); }
.sec-head .meta { margin-left: auto; }
.sec-note { margin-top: 10px; color: var(--ink-72); max-width: 62ch; font-size: .92rem; }

/* 면 머리 (2~5면) */
.page-head { padding-top: clamp(34px, 5vw, 72px); }
.page-head .meta { display: block; margin-bottom: 16px; }
.page-head h1 { font-size: clamp(1.95rem, 4.6vw, 3.3rem); line-height: 1.08; letter-spacing: -.032em; }
.page-lead { margin-top: 18px; max-width: 56ch; color: var(--ink-72); }

/* ── 현재 선택 띠 (ContextIndex) ───────────────────────────────── */
.ctx { border-bottom: 1px solid var(--line); background: var(--ground-2); }
.ctx-in { max-width: var(--wrap); margin-inline: auto; padding: 14px var(--gut); display: flex; flex-wrap: wrap; align-items: center; gap: 10px 26px; }
.ctx-lab { font-family: var(--mono); font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-55); }
.ctx-list { display: flex; flex-wrap: wrap; gap: 6px 26px; }
.ctx-list > div { display: flex; align-items: baseline; gap: 8px; }
.ctx-list dt { font-size: .74rem; color: var(--ink-55); }
.ctx-list dd { font-size: .84rem; font-weight: 800; }
.ctx-note { font-size: .74rem; color: var(--ink-55); margin-left: auto; }

/* ── 01·02·03 행 목록 (디자인보드 03 / ACTION) ────────────────── */
.rows { border-top: 1px solid var(--line-2); }
.rows li { border-bottom: 1px solid var(--line); }
.rows a {
  display: grid; grid-template-columns: 52px minmax(0, 200px) minmax(0, 1fr) 28px;
  align-items: center; gap: 0 18px;
  padding: 22px 0; min-height: 76px; text-decoration: none;
}
.rows .r-idx { font-family: var(--mono); font-size: .8rem; color: var(--ink-55); }
.rows .r-ttl { font-weight: 800; font-size: 1.24rem; letter-spacing: -.02em; }
.rows .r-sub { color: var(--ink-72); font-size: .92rem; }
.rows .r-ar { justify-self: end; width: 18px; height: 18px; transition: transform .2s ease; }
.rows a:hover .r-ar, .rows a:focus-visible .r-ar { transform: translate(3px, -3px); }
.rows a:hover .r-ttl { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 2px; text-decoration-color: var(--sun); }
@media (max-width: 767px) {
  .rows a { grid-template-columns: 40px minmax(0, 1fr) 22px; padding: 18px 0; }
  .rows .r-sub { grid-column: 2 / 3; font-size: .86rem; }
}

/* ── 지붕 권역 도해 + 면 목록 ─────────────────────────────────── */
.zones { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.plan { border: 1px solid var(--line); background: var(--paper); padding: 14px; }
.plan svg { display: block; width: 100%; height: auto; }
.plan-cap { margin-top: 10px; font-size: .78rem; color: var(--ink-55); }
.face-fill { fill: var(--sun); stroke: var(--ink); stroke-width: 1.2; }
.face-lab { font-family: var(--mono); font-size: 12px; fill: var(--ink); font-weight: 500; }
.face-val { font-family: var(--mono); font-size: 12px; fill: var(--ink); }
.plan-sun { fill: var(--sun); stroke: var(--ink); stroke-width: 1.4; }
.plan-ray { stroke: var(--ink); stroke-width: 1; stroke-dasharray: 3 3; }
.plan-n { font-family: var(--mono); font-size: 12px; fill: var(--ink-55); }

.zone-list { border-top: 1px solid var(--line-2); }
.zone-row { border-bottom: 1px solid var(--line); }
.zone-h { margin: 0; font-size: 1rem; font-weight: 500; }
.zone-row .zone-in, .zone-row .acc-trigger {
  width: 100%; display: grid;
  align-items: center; gap: 0 14px; text-align: left;
  padding: 16px 0; min-height: 68px;
  background: none; border: 0; font: inherit; color: inherit; cursor: pointer;
}
.zone-row .zone-in { grid-template-columns: 40px minmax(0, 118px) minmax(0, 1fr) 74px 92px; }
.zone-row .acc-trigger { grid-template-columns: 40px minmax(0, 112px) minmax(0, 1fr) 68px 92px 22px; }
.zone-row .r-ar { width: 16px; height: 16px; justify-self: end; transition: transform .2s ease; }
.zone-row.open .r-ar { transform: rotate(90deg); }
.zone-row .acc-trigger:hover .z-name { text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--sun); text-decoration-thickness: 2px; }
.zone-row .z-idx { font-family: var(--mono); font-size: .78rem; color: var(--ink-55); }
.zone-row .z-name { font-weight: 800; font-size: 1.06rem; }
.zone-row .z-meta { font-size: .84rem; color: var(--ink-72); font-variant-numeric: tabular-nums; }
.zone-row .z-rel { font-family: var(--mono); font-weight: 800; font-size: 1.02rem; text-align: right; font-variant-numeric: tabular-nums; }
.zone-row .z-grade { display: flex; align-items: center; gap: 8px; justify-content: flex-end; font-size: .8rem; font-weight: 800; }
.bars { display: inline-flex; gap: 2px; }
.bars i { display: block; width: 6px; height: 14px; background: var(--line); }
.bars i.on { background: var(--sun); outline: 1px solid var(--ink); outline-offset: -1px; }
.zone-row.is-picked { background: var(--ground-2); box-shadow: inset 3px 0 0 var(--sun); }
.zone-row.is-picked .z-name::after { content: " · 선택됨"; font-size: .74rem; font-weight: 500; color: var(--ink-55); }
@media (max-width: 860px) {
  .zones { grid-template-columns: 1fr; }
  .zone-row .zone-in, .zone-row .acc-trigger {
    grid-template-columns: 34px minmax(0, 1fr) 58px 20px;
    grid-template-areas: "i n r a" ". m m m" ". g g g"; padding: 14px 0;
  }
  .zone-row .z-idx { grid-area: i; } .zone-row .z-name { grid-area: n; }
  .zone-row .z-meta { grid-area: m; } .zone-row .z-rel { grid-area: r; }
  .zone-row .r-ar { grid-area: a; }
  .zone-row .z-grade { grid-area: g; justify-content: flex-start; margin-top: 4px; }
}

/* 아코디언 본문 (근거 펼침) */
.acc-panel { padding: 0 0 22px; }
.acc-trigger .z-ar { display: none; }
.calc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(148px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.calc-grid > div { background: var(--ground); padding: 12px 14px; }
.calc-grid dt { font-size: .72rem; color: var(--ink-55); font-family: var(--mono); letter-spacing: .06em; }
.calc-grid dd { font-weight: 800; font-size: 1rem; font-variant-numeric: tabular-nums; }
.calc-grid dd small { display: block; font-weight: 500; font-size: .74rem; color: var(--ink-55); letter-spacing: 0; }

/* ── 산식 ───────────────────────────────────────────────────────── */
.formula { border: 1px solid var(--line-2); background: var(--paper); padding: clamp(18px, 2.4vw, 28px); }
.formula-line { font-family: var(--mono); font-size: clamp(.82rem, 1.5vw, 1rem); line-height: 2.1; }
.formula-line b { background: var(--sun); font-weight: 800; padding: .1em .3em; }
.formula-out { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.formula-out .fig { font-weight: 800; font-size: clamp(1.7rem, 3.4vw, 2.6rem); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.formula-out .unit { font-weight: 800; }
.formula-tag { font-family: var(--mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-55); }
.assume-list { margin-top: 18px; display: grid; gap: 8px; }
.assume-list li { display: grid; grid-template-columns: 168px minmax(0, 1fr); gap: 14px; font-size: .86rem; padding-top: 8px; border-top: 1px solid var(--line); }
.assume-list b { font-variant-numeric: tabular-nums; }
@media (max-width: 640px) { .assume-list li { grid-template-columns: 1fr; gap: 2px; } }

/* ── 표 ─────────────────────────────────────────────────────────── */
.tbl { width: 100%; border-collapse: collapse; font-size: .88rem; }
.tbl caption { text-align: left; font-weight: 800; padding-bottom: 10px; }
.tbl th, .tbl td { padding: 10px 14px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
.tbl thead th { font-family: var(--mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-55); border-bottom: 1px solid var(--line-2); }
.tbl td.n, .tbl th.n { text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums; }
.tbl tbody tr:hover { background: var(--ground-2); }
.tbl tfoot td { font-weight: 800; border-top: 1px solid var(--line-2); }
.tbl-note { margin-top: 10px; font-size: .78rem; color: var(--ink-55); }

/* ── 고르기 (주소면) ────────────────────────────────────────────── */
.picker { border: 1px solid var(--line-2); background: var(--paper); }
.pick { display: grid; grid-template-columns: 44px minmax(0, 260px) minmax(0, 1fr); gap: 4px 18px; padding: clamp(16px, 2.2vw, 22px) clamp(16px, 2.4vw, 26px); border-bottom: 1px solid var(--line); align-items: start; }
.pick:last-child { border-bottom: 0; }
.pick .p-idx { font-family: var(--mono); font-size: .78rem; color: var(--ink-55); padding-top: 4px; }
.pick .p-lab { font-weight: 800; font-size: 1.02rem; }
.pick .p-note { grid-column: 2 / 3; font-size: .8rem; color: var(--ink-55); }
.pick .p-ctl { grid-column: 3 / 4; grid-row: 1 / 3; min-width: 0; }
@media (max-width: 760px) {
  .pick { grid-template-columns: 40px minmax(0, 1fr); }
  .pick .p-note { grid-column: 2 / 3; }
  .pick .p-ctl { grid-column: 2 / 3; grid-row: auto; margin-top: 10px; }
}
select, .txt {
  font: inherit; font-size: .94rem; color: var(--ink); background: var(--paper);
  border: 1px solid var(--line-2); padding: 10px 12px; min-height: 44px; width: 100%; max-width: 380px;
}
select:focus-visible, .txt:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; }
.range-row { display: grid; grid-template-columns: minmax(0, 1fr) 96px; align-items: center; gap: 14px; max-width: 420px; }
.range-out { font-family: var(--mono); font-weight: 800; font-variant-numeric: tabular-nums; text-align: right; }
.range-scale { display: flex; justify-content: space-between; max-width: 420px; font-family: var(--mono); font-size: .68rem; color: var(--ink-55); }

.opts { display: grid; gap: 8px; }
.opt { display: block; position: relative; }
.opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.opt > span {
  display: grid; grid-template-columns: 16px minmax(0, 1fr) auto; gap: 12px; align-items: center;
  border: 1px solid var(--line); padding: 11px 14px; min-height: 46px; cursor: pointer; font-size: .9rem;
}
.opt .dot { width: 14px; height: 14px; border: 1px solid var(--line-2); border-radius: 50%; display: block; }
.opt input:checked + span { border-color: var(--ink); background: var(--ground); box-shadow: inset 3px 0 0 var(--sun); }
.opt input:checked + span .dot { background: var(--sun); border-color: var(--ink); box-shadow: inset 0 0 0 2px var(--paper); }
.opt input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.opt .k { font-family: var(--mono); font-size: .8rem; color: var(--ink-55); font-variant-numeric: tabular-nums; }

.find { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; max-width: 460px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 800; font-size: .92rem; cursor: pointer;
  background: var(--sun); color: var(--ink); border: 1px solid var(--ink);
  padding: 12px 20px; min-height: 44px; text-decoration: none;
}
.btn:hover { background: var(--ink); color: var(--sun); }
.btn-ghost { background: transparent; border-color: var(--line-2); }
.btn-ghost:hover { background: var(--ink); color: var(--ground); }
.state-msg { margin-top: 10px; font-size: .84rem; min-height: 1.4em; display: flex; gap: 8px; align-items: baseline; }
.state-msg .tag { font-family: var(--mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; border: 1px solid var(--line-2); padding: 1px 6px; }
.state-msg.is-err .tag { background: var(--ink); color: var(--sun); border-color: var(--ink); }
.state-msg.is-ok .tag { background: var(--sun); border-color: var(--ink); }

.picker-foot { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; padding: clamp(16px, 2.2vw, 22px) clamp(16px, 2.4vw, 26px); background: var(--ground); border-top: 1px solid var(--line-2); }
.picker-foot .spacer { margin-left: auto; }

/* ── 기준 사진 ──────────────────────────────────────────────────── */
.basis { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(22px, 3.4vw, 44px); align-items: start; }
.basis img { display: block; width: 100%; height: auto; border: 1px solid var(--line); }
.basis figcaption { margin-top: 12px; font-size: .82rem; color: var(--ink-55); }
.read-how { border-top: 1px solid var(--line-2); }
.read-how li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.read-how .h-idx { font-family: var(--mono); font-size: .78rem; color: var(--ink-55); }
.read-how b { display: block; font-size: 1rem; }
.read-how p { font-size: .88rem; color: var(--ink-72); margin-top: 2px; }
.basis-flip { grid-template-columns: minmax(0, 1fr) minmax(0, 300px); align-items: start; }
@media (max-width: 860px) { .basis, .basis-flip { grid-template-columns: 1fr; } }

/* ── 궤적 큰 캔버스 (일사량면) ─────────────────────────────────── */
.canvas { border: 1px solid var(--line-2); background: var(--paper); }
.canvas-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 340px); }
.canvas-arc { padding: clamp(16px, 2.4vw, 26px); min-width: 0; border-right: 1px solid var(--line); }
.canvas-side { padding: clamp(16px, 2.4vw, 26px); min-width: 0; }
.seasons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.legend { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 14px; display: grid; gap: 12px; font-size: .82rem; }
.legend div { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 2px 10px; align-items: center; }
.legend svg { width: 26px; height: 8px; }
.legend dt { font-weight: 800; }
.legend dd { grid-column: 2 / -1; }
.legend .k { font-family: var(--mono); font-size: .74rem; color: var(--ink-55); font-variant-numeric: tabular-nums; }
@media (max-width: 900px) {
  .canvas-top { grid-template-columns: 1fr; }
  .canvas-arc { border-right: 0; border-bottom: 1px solid var(--line); }
  .seasons { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ── 순서 띠 (예상 발전면) ─────────────────────────────────────── */
.steps { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.steps::before { content: ""; position: absolute; left: 26px; right: 26px; top: 26px; height: 2px; background: var(--ink); }
.step { position: relative; padding-top: 62px; }
.step .s-dot {
  position: absolute; top: 0; left: 0; width: 52px; height: 52px; border-radius: 50%;
  background: var(--sun); border: 2px solid var(--ink);
  display: grid; place-items: center; font-family: var(--mono); font-weight: 800; font-size: .84rem;
}
.step b { display: block; font-size: 1.02rem; }
.step p { margin-top: 6px; font-size: .86rem; color: var(--ink-72); }
.step .s-val { margin-top: 10px; font-family: var(--mono); font-weight: 800; font-size: 1.02rem; border-top: 1px solid var(--line); padding-top: 8px; font-variant-numeric: tabular-nums; }
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr; gap: 0; }
  .steps::before { left: 26px; right: auto; top: 26px; bottom: 26px; width: 2px; height: auto; }
  .step { padding: 0 0 24px 74px; min-height: 76px; }
  .step .s-dot { top: 0; }
}

/* ── 고지 ───────────────────────────────────────────────────────── */
.limits { display: grid; grid-template-columns: repeat(auto-fit, minmax(238px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.limits > div { background: var(--ground); padding: 18px 20px; }
/* 다섯 칸이면 마지막이 홀로 남아 회색 빈칸이 생긴다 — 한 줄로 편다 */
.limits > div:nth-child(5):last-child { grid-column: 1 / -1; }
.limits dt { font-weight: 800; font-size: .96rem; display: flex; gap: 8px; align-items: baseline; }
.limits dt .k { font-family: var(--mono); font-size: .7rem; color: var(--ink-55); }
.limits dd { margin-top: 6px; font-size: .86rem; color: var(--ink-72); }

.safety { border: 2px solid var(--ink); padding: clamp(18px, 2.4vw, 26px); background: var(--paper); display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px; align-items: start; }
.safety .s-mark { width: 44px; height: 44px; background: var(--sun); border: 2px solid var(--ink); display: grid; place-items: center; font-weight: 800; }
.safety h3 { font-size: 1.06rem; }
.safety p { margin-top: 8px; font-size: .9rem; color: var(--ink-72); }
.safety ul { margin-top: 10px; display: grid; gap: 6px; }
.safety li { font-size: .88rem; padding-left: 16px; position: relative; }
.safety li::before { content: ""; position: absolute; left: 0; top: .62em; width: 7px; height: 7px; background: var(--sun); outline: 1px solid var(--ink); }

.note-block { border-left: 3px solid var(--sun); padding: 4px 0 4px 16px; font-size: .88rem; color: var(--ink-72); }

/* ── 확인 카드 · 폼 (신청면) ───────────────────────────────────── */
.confirm { border: 1px solid var(--line-2); background: var(--paper); }
.confirm-row { display: grid; grid-template-columns: minmax(0, 180px) minmax(0, 1fr); gap: 14px; padding: 14px clamp(16px, 2.4vw, 26px); border-bottom: 1px solid var(--line); }
.confirm-row:last-child { border-bottom: 0; }
.confirm-row dt { font-size: .82rem; color: var(--ink-55); }
.confirm-row dd { font-weight: 800; font-variant-numeric: tabular-nums; }
.confirm-row dd small { display: block; font-weight: 500; font-size: .78rem; color: var(--ink-55); }
@media (max-width: 560px) { .confirm-row { grid-template-columns: 1fr; gap: 2px; } }

.inquiry-form { display: grid; gap: 18px; max-width: 640px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 800; font-size: .88rem; }
.control {
  font: inherit; font-size: .96rem; color: var(--ink); background: var(--paper);
  border: 1px solid var(--line-2); padding: 12px 14px; min-height: 48px; width: 100%;
}
.control:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; }
textarea.control { min-height: 132px; resize: vertical; }
.err { display: none; font-size: .82rem; font-weight: 800; }
.field.invalid .control, .agree.invalid .box { border-color: var(--ink); background: #FFF6CC; }
.field.invalid .err, .agree.invalid .err { display: block; }
.field.invalid .err::before, .agree.invalid .err::before { content: "! "; }
.counter { font-family: var(--mono); font-size: .72rem; color: var(--ink-55); text-align: right; }
.agree { position: relative; display: grid; gap: 6px; }
.agree label { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; align-items: start; font-size: .88rem; cursor: pointer; }
.agree .box { width: 22px; height: 22px; border: 1px solid var(--line-2); background: var(--paper); display: block; margin-top: 1px; }
.agree input:checked + label .box { background: var(--sun); border-color: var(--ink); }
.agree input:checked + label .box::after { content: ""; display: block; width: 12px; height: 6px; border-left: 2px solid var(--ink); border-bottom: 2px solid var(--ink); rotate: -45deg; margin: 5px 0 0 4px; }
.form-submit {
  font: inherit; font-weight: 800; font-size: 1rem; cursor: pointer;
  background: var(--sun); color: var(--ink); border: 1px solid var(--ink);
  padding: 16px 24px; min-height: 56px; width: 100%;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
}
.form-submit:hover { background: var(--ink); color: var(--sun); }
.form-hint { font-size: .8rem; color: var(--ink-55); }

.done { border: 2px solid var(--ink); background: var(--sun); padding: clamp(18px, 2.4vw, 26px); }
.done h3 { font-size: 1.12rem; }
.done p { margin-top: 8px; font-size: .9rem; }
.done .receipt { margin-top: 14px; font-family: var(--mono); font-size: .84rem; border-top: 1px solid var(--ink); padding-top: 12px; display: grid; gap: 4px; }

.after { border-top: 1px solid var(--line-2); }
.after li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.after .a-idx { font-family: var(--mono); font-size: .78rem; color: var(--ink-55); }
.after b { font-size: 1rem; }
.after p { font-size: .88rem; color: var(--ink-72); margin-top: 2px; }

/* ── 다음 행동 행 ───────────────────────────────────────────────── */
.next-row {
  display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); padding: 24px 0;
}
.next-row .n-t { font-weight: 800; font-size: clamp(1.1rem, 2.2vw, 1.5rem); }
.next-row .n-s { font-size: .88rem; color: var(--ink-72); margin-top: 4px; }

/* ── 토스트 ─────────────────────────────────────────────────────── */
.toast { background: var(--ink); color: var(--ground); padding: 13px 20px; font-size: .9rem; font-weight: 800; max-width: min(92vw, 460px); border-left: 4px solid var(--sun); }

/* ── 바닥 ───────────────────────────────────────────────────────── */
.site-footer { border-top: 1px solid var(--line-2); background: var(--ground-2); }
.footer-inner { max-width: var(--wrap); margin-inline: auto; padding: clamp(34px, 4vw, 54px) var(--gut); display: grid; gap: 18px; }
.footer-brand { font-weight: 800; font-size: 1.12rem; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-nav a { font-family: var(--mono); font-size: .76rem; letter-spacing: .06em; text-decoration: none; color: var(--ink-72); padding: 4px 0; }
.footer-nav a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.footer-biz { font-style: normal; font-size: .82rem; color: var(--ink-72); line-height: 2; border-top: 1px solid var(--line); padding-top: 16px; }
.footer-biz a { text-decoration: none; }
.footer-legal { display: flex; gap: 18px; flex-wrap: wrap; font-size: .8rem; }
.footer-legal a { text-underline-offset: 3px; }
.footer-copy { font-family: var(--mono); font-size: .72rem; color: var(--ink-55); }

/* 200% 확대에서도 판이 무너지지 않게 — 좁은 폭 규칙이 그대로 받는다 */
@media (max-width: 420px) {
  .scan h1 { font-size: clamp(1.75rem, 8.6vw, 2.3rem); }
  .rows .r-ttl { font-size: 1.1rem; }
}
