/* 산단 필지 검토. 시안 '콘크리트 문장': 말은 콘크리트에 쓰고, 땅은 에폭시로 칠한다.
   흰색은 사람이 채운 칸과 그 칸이 가리키는 땅에만 쓴다. */
:root {
  color-scheme: light;
  --ground: #D6D8D3;      /* 콘크리트 */
  --ink: #16241E;         /* 먹 */
  --soft: #39473F;        /* 콘크리트 위 보조 글자 */
  --white: #FFFFFF;
  --sheet-line: #DDE0DA;
  --sheet-hover: #EEF0EC;
  --land: #1E5843;        /* 진녹 에폭시 */
  --land-lot: #2E7259;    /* 판 위 업종이 정해진 필지 */
  --land-cand: #0E3226;   /* 판 위 후보 필지 */
  --land-line: #8DB8A6;
  --on-land: #EEF1EC;
  --on-land-soft: #CFDDD5;
  --press: #174836;
  --land-rule: rgba(238, 241, 236, .34);
  --say: 'Hahmlet', 'Noto Serif KR', serif;
  --body: 'Gowun Dodum', 'Noto Sans KR', sans-serif;
  --g: clamp(16px, 2.8vw, 40px);
  --ask: clamp(38px, min(5.85vw, 11.2vh), 90px);   /* 대체 글꼴(폭 8.3em)에서도 빈칸의 자리표시자가 줄지 않는 크기 */
  --answer: clamp(30px, min(5vw, 8vh), 72px);
  --panel: clamp(400px, 37vw, 532px);
}

* { box-sizing: border-box; font-synthesis: none; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; min-height: 100dvh;
  background: var(--ground); color: var(--ink);
  font-family: var(--body); font-size: 16px; line-height: 1.5;
  word-break: keep-all; overflow-wrap: break-word;
}
h1, h2, h3, p, ul, dl, dd, figure { margin: 0; padding: 0; }
ul { list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; border: 0; background: none; padding: 0; margin: 0; cursor: pointer; }
input { margin: 0; border: 0; border-radius: 0; font: inherit; color: var(--ink); background: var(--white); caret-color: var(--land); }
input::placeholder { color: var(--soft); opacity: 1; }
::selection { background: var(--land); color: var(--white); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.noscript, .boot-fail { padding: 24px var(--g); font-size: 16px; }

:focus-visible { outline: 3px solid var(--land); outline-offset: 2px; }
.r-right :focus-visible, .board :focus-visible { outline-color: var(--white); }

/* ── 공통 글 ── */
.brand { margin: 0; font-family: var(--say); font-weight: 600; font-size: 17px; line-height: 1.3; }
.brand:focus { outline: 0; }
.brand--link { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.line { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; white-space: nowrap; }
.line:hover { text-decoration-thickness: 2px; }
.line--quiet { position: relative; display: inline; min-height: 0; }
/* 글줄 안 링크. 바로 윗줄이 다른 링크일 수 있어 누르는 자리는 아래로 넓힌다 */
.line--quiet::before { content: ""; position: absolute; left: 50%; top: -2px; width: max(100%, 44px); height: 44px; transform: translateX(-50%); }
.line-btn { min-height: 44px; font-family: var(--say); font-weight: 600; font-size: 15px; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; white-space: nowrap; }
.links { display: flex; align-items: center; gap: clamp(14px, 2vw, 24px); }
.head { font-family: var(--say); font-weight: 600; font-size: 16px; line-height: 24px; }
.p-head { font-family: var(--say); font-weight: 600; font-size: 20px; line-height: 28px; color: var(--white); }

/* ── 문장 속 빈칸 ── */
.slot { position: relative; display: inline-grid; min-width: 0; max-width: 100%; background: var(--white); }
.slot-mirror, .slot-input { grid-area: 1 / 1; min-width: 0; font: inherit; letter-spacing: inherit; }
.slot-mirror { visibility: hidden; overflow: hidden; white-space: pre; }
.slot-input { width: 100%; padding: 0; background: transparent; outline: 0; text-overflow: ellipsis; }

.ask { display: flex; align-items: center; column-gap: .13em; padding: 12px var(--g) 0; position: relative; z-index: 2; font-family: var(--say); font-weight: 700; font-size: var(--ask); line-height: 1.31; letter-spacing: -.035em; }
.ask-head { display: inline-flex; align-items: center; min-width: 0; flex: 0 1 auto; column-gap: .13em; }
.ask-josa, .ask-rest { flex: none; white-space: nowrap; }
.slot--big { flex: 0 1 auto; border-radius: 8px 8px 0 0; }
.slot--big .slot-mirror { padding: 0 .4em 0 .27em; }
.slot--big .slot-input { padding: 0 .1em 0 .27em; height: 1.31em; border-radius: inherit; }
.slot:focus-within { box-shadow: inset 0 0 0 3px var(--land); }

/* ── 초기 화면 ── */
.home { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
.home-top { display: flex; align-items: center; gap: clamp(14px, 2vw, 28px); min-height: 60px; padding: 8px var(--g) 0; }
.home-top .brand { margin-right: auto; }
.home-official { font-size: 15px; white-space: nowrap; }
.home-main { display: flex; flex: 1; flex-direction: column; min-width: 0; }
.home-grid { display: grid; flex: 1; grid-template-columns: minmax(0, 1fr) minmax(0, .86fr); column-gap: 40px; padding-left: var(--g); }
.home-left { display: flex; flex-direction: column; min-width: 0; }

.sheet { background: var(--white); color: var(--ink); border-radius: 0 8px 8px 8px; box-shadow: 0 10px 28px rgba(22, 36, 30, .16); overflow: hidden; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 46px; padding: 10px 24px; font-size: 15px; color: var(--soft); }
.sheet-label { font-family: var(--say); font-weight: 600; color: var(--ink); }
.sheet-count { flex: none; color: var(--soft); }
.sheet-count:empty { display: none; }
.lead-short, .foot-official { display: none; }
.sheet-notice { padding: 0 24px 10px; font-family: var(--say); font-weight: 600; font-size: 15px; }
.sheet-more, .sheet-miss { padding: 12px 24px; border-top: 1px solid var(--sheet-line); font-size: 15px; color: var(--soft); }
.sheet-miss { padding-block: 16px; font-family: var(--say); font-weight: 600; font-size: 16px; color: var(--ink); }
.examples-head { padding: 8px 24px 6px; border-top: 1px solid var(--sheet-line); font-size: 15px; color: var(--soft); }

.opts { max-height: min(58vh, 460px); overflow-y: auto; }
.opt { display: grid; grid-template-columns: minmax(0, 11em) minmax(0, 5.4em) minmax(0, 1fr) auto; align-items: center; gap: 12px; min-height: 54px; padding: 8px 24px; border-top: 1px solid var(--sheet-line); color: inherit; font-size: 15px; line-height: 1.35; text-decoration: none; cursor: pointer; transition: background-color .15s ease-out; }
.opts--parks .opt { grid-template-columns: minmax(0, 10em) minmax(0, 8em) minmax(0, 1fr) auto; }
.opt:hover { background: var(--sheet-hover); }
.opt:focus-visible { outline-offset: -4px; }
.opt-j { min-width: 0; font-family: var(--say); font-weight: 600; font-size: 17px; overflow-wrap: anywhere; }
.opt-b, .opt-z, .opt-a { color: var(--soft); }
.opt-a { white-space: nowrap; }
.opt-go { display: none; align-items: center; height: 44px; padding: 0 16px; background: var(--white); color: var(--ink); border-radius: 4px; font-family: var(--say); font-weight: 600; font-size: 15px; white-space: nowrap; }
.opt.is-active { min-height: 72px; background: var(--land); color: var(--white); border-top-color: var(--land); }
.opt.is-active .opt-j { font-weight: 700; font-size: 19px; }
.opt.is-active .opt-b, .opt.is-active .opt-z { color: var(--white); }
.opt.is-active .opt-a { display: none; }
.opt.is-active .opt-go { display: inline-flex; }

.home-say { margin-top: clamp(20px, 4vh, 34px); text-wrap: balance; font-family: var(--say); font-weight: 600; font-size: clamp(20px, 1.85vw, 26px); line-height: 1.46; letter-spacing: -.015em; }
.home-foot { margin-top: auto; padding: 20px var(--g) 18px 0; font-size: 14px; line-height: 21px; color: var(--soft); }

.board { display: flex; flex-direction: column; min-width: 0; margin-top: 16px; padding: 18px 24px 14px 32px; background: var(--land); color: var(--on-land); border-radius: 8px 0 0 0; }
.board-maps { display: flex; align-items: flex-start; gap: clamp(14px, 2vw, 30px); width: min(100%, max(380px, calc((100vh - 300px) * .84))); }
.park { min-width: 0; }
.park--tall { flex: 1 1 0; }
.park-col { display: flex; flex: 1 1 0; flex-direction: column; gap: 14px; min-width: 0; }
.park-name { font-size: 15px; line-height: 21px; margin-bottom: 6px; }
.park-name b { font-family: var(--say); font-weight: 600; }
.park-short { display: none; }
.park-name span { color: var(--on-land-soft); white-space: nowrap; }
.park svg { display: block; width: 100%; height: auto; overflow: visible; }
.board-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 18px; margin-top: auto; padding-top: 14px; font-size: 15px; line-height: 22px; }
.legend { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.legend li { display: inline-flex; align-items: center; gap: 7px; }
.swatch { flex: none; width: 14px; height: 14px; border-radius: 2px; border: 1px solid var(--white); }
.swatch--pick { background: var(--white); }
.swatch--cand { background: var(--land-cand); border-color: var(--on-land); }
.swatch--zoned { background: var(--land-lot); border-color: var(--land-line); }
.board-date { white-space: nowrap; }

/* 지적 */
.lot { fill: none; stroke: none; fill-rule: evenodd; vector-effect: non-scaling-stroke; }
.lot--zoned { fill: var(--land-lot); stroke: var(--land); stroke-width: .5; }
.lot--other { stroke: var(--land-line); stroke-width: .5; opacity: .75; }
.lot--cand { fill: var(--land-cand); stroke: var(--on-land); stroke-width: .7; opacity: 1; }
.lot--pick { fill: var(--white); stroke: var(--white); stroke-width: 1; opacity: 1; }
.lot--near { fill: var(--land-lot); stroke: var(--on-land); stroke-width: 1; }
.lot--far { stroke: var(--land-line); stroke-width: .8; opacity: .7; }
.lot--dim { fill: var(--land-lot); stroke: var(--land); stroke-width: .3; }
.lot-ring { fill: none; stroke: var(--white); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.lot-text { font-family: var(--body); fill: var(--on-land); text-anchor: middle; dominant-baseline: central; pointer-events: none; }
.lot-text--pick { font-family: var(--say); font-weight: 700; fill: var(--ink); }
.lot-text--sub { font-family: var(--body); font-weight: 400; fill: var(--ink); }
/* 흰 테두리: 글자가 흰 땅 밖 녹색에 놓여도 읽힌다. 굵기는 review.js 가 화면 픽셀로 맞춘다 */
.lot-text--pick, .lot-text--sub { paint-order: stroke; stroke: var(--white); stroke-linejoin: round; }

/* ── 검토 화면 ── */
.review { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
.r-top { position: relative; z-index: 30; display: flex; align-items: center; gap: clamp(14px, 2.2vw, 32px); min-height: 72px; padding: 8px var(--g); }
.r-back { display: none; flex: none; align-items: center; justify-content: center; width: 44px; height: 44px; margin-left: -12px; }
.r-ask { position: relative; display: flex; flex: 0 1 auto; align-items: center; min-width: 0; font-family: var(--say); font-weight: 600; font-size: 20px; letter-spacing: -.01em; }
.slot--top { flex: 0 1 auto; min-width: 8.8em; border-radius: 6px; }
.slot--top .slot-mirror { padding: 0 1em 0 14px; }
.slot--top .slot-input { height: 48px; padding: 0 14px; border-radius: inherit; }
.r-ask-rest { flex: none; margin-left: 7px; white-space: nowrap; }
.links--top { flex: none; margin-left: auto; }

.drop { position: absolute; left: 0; top: calc(100% + 6px); z-index: 40; width: min(720px, calc(100vw - 2 * var(--g))); font-family: var(--body); font-weight: 400; font-size: 15px; letter-spacing: 0; background: var(--white); color: var(--ink); border-radius: 8px; box-shadow: 0 10px 28px rgba(22, 36, 30, .22); overflow: hidden; }
.sheet-head--drop { padding-block: 8px; }

.r-main { flex: 1; min-width: 0; }
.r-answer { padding: 4px var(--g) 0; }
.answer { display: inline; font-family: var(--say); font-weight: 700; font-size: var(--answer); line-height: 1.19; letter-spacing: -.035em; }
.answer--long { font-size: clamp(28px, min(3.7vw, 6.4vh), 54px); }
.answer:focus { outline: 0; }
.answer::after { content: ""; display: inline-block; width: .3em; }
.phrase { display: inline-block; max-width: 100%; }
.side { display: inline-flex; flex-wrap: wrap; align-items: flex-end; gap: 8px 18px; max-width: 100%; vertical-align: bottom; padding-bottom: 8px; }
.side-text { font-family: var(--say); font-weight: 600; font-size: clamp(16px, 1.4vw, 19px); line-height: 1.42; letter-spacing: -.01em; }
.copy { flex: none; min-height: 44px; padding: 0 14px; border: 1px solid var(--ink); border-radius: 4px; font-family: var(--say); font-weight: 600; font-size: 15px; white-space: nowrap; transition: background-color .15s ease-out; }
.copy:hover { background: rgba(22, 36, 30, .08); }
.side-copy { display: flex; flex-direction: column; gap: 2px; }
.copy-msg { font-size: 14px; line-height: 20px; color: var(--soft); }
.copy-msg:empty { display: none; }
.r-sub { display: none; }

.r-body { display: grid; grid-template-columns: minmax(0, 1fr) var(--panel); column-gap: clamp(28px, 3vw, 44px); margin-top: 14px; padding-left: var(--g); }
.r-left { display: flex; flex-direction: column; gap: 18px; min-width: 0; padding-bottom: 28px; }
.r-right { min-width: 0; background: var(--land); color: var(--on-land); border-radius: 8px 0 0 8px; overflow: hidden; }

.kinds-head { font-family: var(--say); font-weight: 700; font-size: 18px; line-height: 26px; }
.kinds--table .kinds-head { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.kind-cols { columns: 2; column-gap: 32px; }
.kind-group { break-inside: avoid; margin-bottom: 12px; }
.kind-group h3 { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 4px; padding-bottom: 3px; border-bottom: 1px solid var(--ink); font-family: var(--say); font-weight: 600; font-size: 16px; line-height: 24px; }
.kind-group h3 span { flex: none; font-weight: 500; font-size: 15px; white-space: nowrap; }
.kind { display: grid; grid-template-columns: 52px minmax(0, 1fr); align-items: start; padding: 2px 0; font-size: 15px; line-height: 23px; }
.kind-code { font-family: var(--say); font-weight: 500; font-size: 14px; color: var(--soft); }
.kind--cond .kind-code { font-weight: 700; color: var(--ink); }
.kind--cond .kind-name { font-family: var(--say); font-weight: 600; font-size: 14.5px; }
.tag--short { white-space: nowrap; }
.tag { margin-left: 2px; padding: 1px 7px; background: var(--ink); color: var(--white); border-radius: 3px; font-family: var(--body); font-weight: 400; font-size: 14px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.kind-note { font-size: 14px; line-height: 20px; color: var(--soft); }
.quote li { padding: 10px 0; border-top: 1px solid var(--ink); font-family: var(--say); font-weight: 500; font-size: clamp(18px, 1.6vw, 22px); line-height: 1.5; letter-spacing: -.01em; }
.quote li:last-child { border-bottom: 1px solid var(--ink); }
.plain-note { margin-top: 6px; font-family: var(--say); font-weight: 500; font-size: clamp(18px, 1.6vw, 22px); line-height: 1.5; letter-spacing: -.01em; }

.mine { max-width: 520px; }
.mine-label { display: block; margin-bottom: 4px; font-family: var(--say); font-weight: 600; font-size: 16px; line-height: 24px; }
.mine-row { display: flex; gap: 8px; }
.mine-input { flex: 1; min-width: 0; height: 46px; padding: 0 12px; border-radius: 6px; font-size: 16px; }
.mine-go { flex: none; min-height: 46px; padding: 0 16px; background: var(--ink); color: var(--white); border-radius: 6px; font-family: var(--say); font-weight: 600; font-size: 15px; white-space: nowrap; transition: background-color .15s ease-out; }
.mine-go:hover { background: #2B3B33; }
.mine-out { font-size: 15px; line-height: 23px; }
.mine-out:not(:empty) { margin-top: 10px; }
.mine-hint { margin-top: 5px; font-size: 14px; line-height: 20px; color: var(--soft); }
.res-title { font-family: var(--say); font-weight: 600; }
.res-chip { display: inline-block; margin-right: 6px; padding: 0 7px; border: 1px solid var(--ink); border-radius: 3px; font-family: var(--body); font-weight: 400; font-size: 14px; line-height: 20px; }
.res-chip--full { background: var(--ink); color: var(--white); }
.res-chip--part { border-style: double; border-width: 3px; }
.res-chip--absent { border-style: dashed; }
.res-rows { margin-top: 4px; }
.res-rows li { padding-left: 12px; text-indent: -12px; }
.res-rows li::before { content: "· "; }
.res-terms { margin-top: 6px; color: var(--soft); }

.prose { font-size: 15px; line-height: 22px; }
.prose-list li + li { margin-top: 2px; }
.prose-strong { font-family: var(--say); font-weight: 600; }
.memo-tag { color: var(--soft); }
.memo q { quotes: "“" "”"; }

.block-map { overflow: hidden; }
.block-map svg { display: block; width: 100%; height: auto; }
.land-text { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: start; padding: 10px clamp(20px, 2.2vw, 32px) 0; font-size: 16px; line-height: 24px; }
.locator svg { display: block; overflow: visible; }
.panel-foot { padding: 0 clamp(20px, 2.2vw, 32px) 20px; font-size: 14px; line-height: 20px; color: var(--on-land-soft); }
.land-pnu { overflow-wrap: anywhere; }

.size { padding: 10px clamp(20px, 2.2vw, 32px) 0; }
.size-rows { margin-top: 4px; }
.size-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 12px; padding: 2px 0; border-top: 1px solid var(--land-rule); }
.size-rows .size-row:last-child { border-bottom: 1px solid var(--land-rule); }
.size-row dt { font-size: 16px; line-height: 24px; }
.size-row dt b { font-family: var(--say); font-weight: 600; }
.size-row dt span { margin-left: 6px; color: var(--on-land-soft); font-size: 15px; white-space: nowrap; }
.size-row dd { font-family: var(--say); font-weight: 700; font-size: 28px; line-height: 34px; letter-spacing: -.02em; text-align: right; color: var(--white); white-space: nowrap; }
.size-row dd.is-long { max-width: 13.5em; font-weight: 600; font-size: 16px; line-height: 24px; letter-spacing: 0; white-space: normal; }
.size-unit { margin-left: .08em; font-family: var(--body); font-weight: 400; font-size: max(15px, .58em); letter-spacing: 0; }
.size-why { margin-top: 6px; font-family: var(--say); font-weight: 600; font-size: 15px; line-height: 22px; color: var(--white); }
.size-note { margin-top: 6px; padding: 0 clamp(20px, 2.2vw, 32px); font-size: 14px; line-height: 20px; color: var(--on-land-soft); }
.size-area { display: none; }
.nb { white-space: nowrap; }

.sources { padding: 10px clamp(20px, 2.2vw, 32px) 10px; font-size: 15px; line-height: 21px; }
.sources:focus { outline: 0; }
.source-list li + li { margin-top: 6px; }
.source-list span { display: block; color: var(--on-land-soft); }

.r-foot { padding: 0 var(--g) 18px; font-size: 14px; line-height: 20px; color: var(--soft); }
.links--foot { display: none; }
.bar { display: none; }

/* ── 좁은 화면: 지도 판이 위아래로 끊어져 내려온다 ── */
@media (max-width: 1023px) {
  .ask { flex-wrap: wrap; }
  .slot--big { border-radius: 6px; }
  .home-grid { display: flex; flex-direction: column; padding-left: 0; }
  .home-left { padding: 0 var(--g); }
  .sheet { margin-top: 6px; border-radius: 8px; }
  .home-say { font-size: 18px; }
  .home-foot { padding: 14px 0 16px; }
  .board { margin-top: 4px; padding: 12px 16px 14px; border-radius: 8px 8px 0 0; }
  .board-maps { width: min(100%, 520px); }

  .r-top { gap: 8px; min-height: 60px; padding: 8px var(--g); }
  .brand--link, .links--top, .r-ask-rest { display: none; }
  .r-back { display: inline-flex; }
  .r-ask { position: static; flex: 1; font-size: 17px; }
  .slot--top { display: grid; width: 100%; }
  .slot--top .slot-input { height: 44px; padding: 0 12px; }
  .drop { left: var(--g); right: var(--g); top: calc(100% - 2px); width: auto; }

  .answer::after { display: none; }
  .side { display: flex; margin: 8px 0 0; padding: 0; align-items: center; }
  .side-text { font-size: 16px; }
  .side-check { display: none; }
  .r-sub { display: grid; grid-template-columns: minmax(0, 1fr) 72px; gap: 10px; align-items: center; margin-top: 6px; padding: 0 var(--g); font-size: 15px; line-height: 21px; }
  .r-shape svg { display: block; width: 100%; height: 44px; }
  .r-shape path { fill: var(--white); stroke: var(--ink); stroke-width: 1.5; vector-effect: non-scaling-stroke; fill-rule: evenodd; }

  .r-body { display: flex; flex-direction: column; margin-top: 10px; padding-left: 0; }
  .r-left, .r-right { display: contents; }
  .size { order: 1; padding: 8px var(--g) 6px; background: var(--land); color: var(--on-land); }
  .size-note { order: 1; margin: 0; padding: 0 var(--g) 10px; background: var(--land); }
  .size .p-head { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .size-rows { margin-top: 0; }
  .size-row, .size-rows .size-row:last-child { border: 0; padding: 2px 0; }
  .size-row dt { font-size: 15px; line-height: 22px; }
  .size-row dd { font-size: 24px; line-height: 28px; }
  .kinds { order: 2; padding: 12px var(--g) 0; }
  .kinds--table .kinds-head { position: static; width: auto; height: auto; overflow: visible; clip-path: none; white-space: normal; margin-bottom: 6px; }
  .mine { order: 3; max-width: none; padding: 8px var(--g) 0; }
  .land { order: 4; margin-top: 20px; background: var(--land); color: var(--on-land); padding-bottom: 14px; }
  .land-text { padding: 10px var(--g) 0; }
  .sources { order: 5; padding: 18px var(--g) 0; color: var(--ink); }
  .sources .p-head { color: var(--ink); font-size: 18px; line-height: 26px; }
  .source-list span { color: var(--soft); }
  .panel-foot { order: 5; padding: 8px var(--g) 0; color: var(--soft); }
  #terms { order: 6; padding: 16px var(--g) 0; }
  #notes { order: 7; padding: 16px var(--g) 0; }
  #missing { order: 8; padding: 16px var(--g) 18px; }
  .links--top { display: none; }
  .links--foot { display: flex; flex-wrap: wrap; }
  .r-foot { padding-bottom: 22px; }   /* 슬로씨 링크의 누르는 자리가 아래 고정 띠에 가리지 않게 */
  .bar { position: sticky; bottom: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 4px var(--g); background: var(--ground); border-top: 1px solid var(--ink); font-size: 15px; line-height: 21px; }
  .bar-go { flex: none; }
}

@media (max-width: 640px) {
  .home-top { min-height: 48px; padding-top: 2px; }
  .home-top .links .line:nth-child(2) { display: none; }
  .home-official { display: none; }
  .ask { padding-top: 0; }
  .foot-official { display: block; }
  .lead-wide { display: none; }
  .lead-short { display: inline; }
  .kind-cols { columns: 1; }

  /* 폰 초기 화면: 네 단지를 한 줄로 두고 안내 글은 판 아래로 */
  .home-left { display: contents; }
  .sheet { order: 1; margin: 6px var(--g) 0; }
  .board { order: 2; margin-top: 14px; padding: 12px var(--g); border-radius: 0; }
  .home-say { order: 3; margin: 14px var(--g) 0; }
  .home-foot { order: 4; padding: 14px var(--g) 16px; }
  .board-maps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; width: 100%; }
  .park-col { display: contents; }
  .park[data-park="science"] { order: -2; }
  .park[data-park="sme"] { order: -1; }
  .park { display: flex; flex-direction: column-reverse; align-items: center; justify-content: flex-end; }
  .park svg { width: 100% !important; height: 72px; }
  .park-name { margin: 4px 0 0; white-space: nowrap; }
  .park-full, .park-name span { display: none; }
  .park-short { display: inline; font-weight: 500; }
  .board-foot { padding-top: 10px; }

  /* 폰 검토 화면: 첫 화면에 대분류가 모두 보이게. 설명과 복사 단추는 표 아래로 내린다 */
  .r-main { display: flex; flex-direction: column; }
  .r-answer, .r-body { display: contents; }
  .answer { display: block; padding: 4px var(--g) 0; }
  .r-sub { order: 1; }
  .size { order: 2; padding-bottom: 10px; }
  .kinds { order: 3; }
  .mine { order: 4; }
  .side { order: 5; flex-direction: column; align-items: flex-start; padding: 12px var(--g) 0; margin: 0; }
  .side-dup { display: none; }   /* 바로 위 표 머리나 안내 글과 같은 말 */
  .land { order: 6; padding-bottom: 0; }
  .size-note { order: 7; padding: 8px var(--g) 14px; }
  .size-area { display: inline; color: var(--on-land); }
  .sources { order: 8; }
  .panel-foot { order: 9; }
  #terms { order: 10; }
  #notes { order: 11; }
  #missing { order: 12; }
  .r-foot { order: 13; }
  .size-rows .size-row:first-child:not(:last-child) { display: none; }

  .kinds--table .kinds-head { margin-bottom: 4px; }
  .kind-group { margin-bottom: 6px; }
  .kind-group h3 { margin-bottom: 0; padding-bottom: 0; border-bottom: 0; }
  .kind-group ul { display: flex; flex-wrap: wrap; column-gap: .3em; }
  .kind-group--same ul { display: none; }
  .kind { display: block; padding: 0; line-height: 21px; color: var(--soft); }
  .kind-code, .kind-note { display: none; }   /* 코드 칸을 접으므로 코드 안내도 접는다 */
  .kind--cond { order: -1; flex: 1 0 100%; padding: 1px 0; color: var(--ink); }
  .kind--sep .kind-name::after { content: " /"; }
  .sheet-head { padding: 8px 14px; min-height: 36px; }
  .sheet-notice, .sheet-more, .sheet-miss, .examples-head { padding-inline: 14px; }
  .opt, .opts--parks .opt { grid-template-columns: minmax(0, 1fr) auto; gap: 0 8px; min-height: 56px; padding: 6px 14px; }
  .opt-z { grid-column: 1 / -1; grid-row: 2; }
  .opt-a { display: none; }
  .opt-j { font-size: 16px; }
  .opt.is-active { min-height: 64px; }
  .opt.is-active .opt-j { font-size: 16px; }
  .opt.is-active .opt-b { display: none; }
  .opt.is-active .opt-go { height: 44px; padding: 0 12px; }
  .prose, .kind { font-size: 15px; }
  .kind-code, .kind--cond .kind-name, .tag, .res-chip { font-size: 15px; }
  .board-foot, .home-foot { font-size: 15px; line-height: 22px; }
  .kind-note, .mine-hint, .size-note, .panel-foot, .copy-msg, .r-foot { font-size: 15px; line-height: 21px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
