/* 글 페이지(자격 확인·신청 방법·직불금·보조금·귀농인의 집·일자리) 공통. 토큰·메뉴는 style.css. */
body.page { overflow: auto; background: var(--bg-page); padding-left: var(--rail); }
.page-top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg-page) 92%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.page-top .inner { max-width: 1120px; margin: 0 auto; padding: 0 32px; }
.crumb { height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--faint); }
.crumb a { color: var(--faint); text-decoration: none; }
.crumb a:hover { color: var(--text); }
.crumb .sep { margin: 0 6px; }
.crumb b { color: var(--text); }
.page-top .subtabs { margin: 0; border-bottom: 0; }
main { max-width: 880px; margin: 0 auto; padding: 40px 32px 72px; }
main h2 { font-size: 34px; line-height: 1.25; letter-spacing: -0.035em; margin: 0 0 8px; word-break: keep-all; }
main h2 em { font-style: normal; }
main h3 { font-size: 15px; margin: 36px 0 10px; color: var(--muted); }
main p, main li { font-size: 14.5px; line-height: 1.65; color: var(--text); word-break: keep-all; }
main .lead { color: var(--muted); font-size: 15px; margin: 0 0 28px; }
.card { background: var(--surface-solid); border: 1px solid var(--line); border-radius: 12px; padding: 20px; }
.card + .card { margin-top: 10px; }
.hint { font-size: 12.5px; color: var(--faint); display: flex; gap: 6px; align-items: flex-start; line-height: 1.6; }
.hint a { color: inherit; }

/* 폼 */
.field { margin-bottom: 24px; }
.field > label, .field > .lbl { display: block; font-size: 13px; font-weight: 500; color: var(--muted); margin-bottom: 8px; }
.input-unit { display: flex; align-items: center; height: 64px; padding: 0 8px 0 18px; border-radius: 10px; box-shadow: inset 0 0 0 1px var(--line); background: var(--surface-solid); }
.input-unit:focus-within { box-shadow: inset 0 0 0 1.5px var(--text); }
.input-unit input { flex: 1; min-width: 0; border: 0; outline: none; background: none; font-size: 28px; font-weight: 600; letter-spacing: -0.03em; }
.input-unit input::placeholder { font-size: 16px; font-weight: 400; letter-spacing: 0; color: var(--faint); }
.input-unit .unit { display: flex; padding: 3px; border-radius: 8px; background: var(--surface-2); }
.input-unit .unit button { border: 0; background: none; font-size: 14px; font-weight: 500; color: var(--faint); cursor: pointer; height: 32px; padding: 0 12px; border-radius: 6px; }
.input-unit .unit button.on { color: var(--text); font-weight: 600; background: var(--surface-solid); box-shadow: 0 1px 2px rgba(10, 11, 10, .12); }
.field .under { margin-top: 8px; font-size: 12px; color: var(--faint); }
main a { color: var(--text); text-underline-offset: 3px; }
.choice { display: grid; grid-template-columns: 1fr 1fr; padding: 3px; border-radius: 10px; background: var(--surface-2); }
.choice button { height: 42px; border: 0; border-radius: 8px; background: none; font-size: 15px; font-weight: 500; color: var(--muted); cursor: pointer; }
.choice button.on { background: var(--surface-solid); color: var(--text); font-weight: 600; box-shadow: 0 1px 2px rgba(10, 11, 10, .12); }
.cta { display: block; width: 100%; height: 52px; border: 0; border-radius: 10px; background: var(--text); color: var(--bg); font-size: 16px; font-weight: 600; cursor: pointer; margin-top: 8px; }
.cta:disabled { opacity: .35; cursor: default; }

/* 결과 */
.result { margin-top: 24px; }
.big-won { font-size: 34px; font-weight: 600; letter-spacing: -0.035em; margin: 2px 0 4px; }
.big-won small { font-size: 16px; font-weight: 500; color: var(--faint); margin-left: 4px; }
table.calc { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: 13.5px; }
table.calc th, table.calc td { padding: 8px 4px; border-top: 1px solid var(--line); text-align: right; }
table.calc th:first-child, table.calc td:first-child { text-align: left; }
table.calc th { color: var(--faint); font-weight: 500; }
details { margin-top: 12px; }
summary { cursor: pointer; font-weight: 500; font-size: 14px; }

/* 직불금: 왼쪽 입력, 오른쪽 결과 초점 카드 (좁으면 결과가 위) */
main.wide { max-width: 1120px; }
.pay-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 56px; align-items: start; }
.pay-result { position: sticky; top: 80px; padding: 32px; display: grid; gap: 24px; }
.pay-result .label { font-size: 13px; }
.pay-result .won { display: flex; align-items: baseline; gap: 6px; margin-top: 6px; }
.pay-result .won .num { font-size: 60px; line-height: 1; font-weight: 600; letter-spacing: -0.045em; }
.pay-result .won .u { font-size: 20px; }
.pay-result .cond { font-size: 14px; margin-top: 8px; }
.pay-result .empty-msg { font-size: 20px; line-height: 1.4; font-weight: 500; margin: 6px 0 0; }
.tiers { display: grid; gap: 10px; }
.tiers .bar { display: grid; grid-template-columns: 2fr 4fr 2fr; gap: 3px; height: 10px; }
.tiers .bar span { background: color-mix(in srgb, var(--focus-text) 14%, transparent); overflow: hidden; }
.tiers .bar span:first-child { border-radius: 3px 0 0 3px; }
.tiers .bar span:last-child { border-radius: 0 3px 3px 0; }
.tiers .bar i { display: block; height: 100%; background: var(--signal); }
.tiers .lab { display: grid; grid-template-columns: 2fr 4fr 2fr; gap: 3px; font-size: 12px; }
.tiers .lab b { display: block; color: var(--focus-text); font-weight: 600; }
.pay-after { margin-top: 28px; display: grid; gap: 10px; }
.cmp { display: grid; gap: 8px; }
.cmp .r { display: flex; justify-content: space-between; font-size: 14px; color: var(--muted); padding: 8px 0; border-bottom: 1px solid var(--line-soft); }
.cmp .r.now { color: var(--text); font-weight: 600; }
.small-link { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 10px; background: var(--bg-subtle); font-size: 13.5px; color: var(--muted); }
.small-link b { color: var(--text); }
.small-link details { margin: 0; }

/* 링크 카드 */
.links { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.links a { display: block; padding: 16px; border-radius: 12px; background: var(--surface-solid); border: 1px solid var(--line); text-decoration: none; color: inherit; }
.links a:hover { border-color: var(--text); }
.links b { display: block; font-size: 15px; margin-bottom: 4px; }
.links span { font-size: 13px; color: var(--muted); line-height: 1.5; display: block; }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: s; position: relative; padding: 0 0 16px 40px; }
.steps li::before { content: counter(s, decimal-leading-zero); position: absolute; left: 0; top: 1px; font-size: 13px; font-weight: 600; color: var(--faint); }
.doc-frame { width: 100%; height: 70vh; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.doc-img { width: 100%; border-radius: 12px; border: 1px solid var(--line); }

/* 초점 카드 줄: 곧 끝나는 것 2~3개만 검정 카드로 */
.focus-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; margin: 0 0 32px; }
.focus-row h3 { grid-column: 1 / -1; margin: 0 0 2px; }
.fcard { display: flex; gap: 16px; align-items: center; padding: 18px; text-decoration: none; color: var(--focus-text) !important; transition: transform .12s; }
.fcard:hover { transform: translateY(-2px); }
.fcard .dd { flex: none; width: 66px; display: grid; gap: 4px; }
.fcard .dd b { font-size: 28px; line-height: 1; letter-spacing: -0.04em; color: var(--signal); }
.fcard .dd small { font-size: 12px; }
.fcard .tt { min-width: 0; display: grid; gap: 4px; }
.fcard .tt b { font-size: 15.5px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; word-break: keep-all; }
.fcard .tt span { font-size: 12.5px; color: var(--focus-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* 흰 카드 안에 조용한 목록 */
.list-card { background: var(--surface-solid); border: 1px solid var(--line); border-radius: 14px; padding: 4px 20px; }
.list-card .sub-item:last-of-type { border-bottom: 0; }
.list-card .more { margin: 8px 0 14px; }
.toolbar .search { background: var(--surface-solid); }
.toolbar select { background-color: var(--surface-solid); box-shadow: inset 0 0 0 1px var(--line); }

/* 보조금 목록 */
.toolbar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.toolbar .search { flex: 1 1 260px; }
.toolbar select { flex: 0 0 auto; height: 40px; }
.sub-item { border-bottom: 1px solid var(--line-soft); }
.sub-item summary { list-style: none; display: flex; align-items: center; gap: 16px; padding: 15px 0; cursor: pointer; }
.sub-item summary::-webkit-details-marker { display: none; }
.sub-item .sub-name { flex: 1; font-size: 15px; font-weight: 500; line-height: 1.4; word-break: keep-all; }
.sub-item .left { flex: none; text-align: right; font-size: 14px; font-weight: 500; color: var(--muted); }
.sub-item .left.urgent { color: var(--text); font-weight: 600; }
.sub-item .left small { display: block; font-size: 11px; font-weight: 400; color: var(--faint); }
.sub-item[open] { background: var(--bg-subtle); margin: 0 -20px; padding: 0 20px; }
.sub-item .sub-body { padding: 0 0 18px; }
.sub-item .meta { font-size: 12.5px; color: var(--faint); display: flex; flex-wrap: wrap; gap: 4px 10px; margin-bottom: 8px; }
.sub-item p { margin: 0 0 6px; font-size: 13.5px; color: var(--text); }
.sub-item p b { color: var(--faint); font-weight: 500; margin-right: 6px; }
.sub-item a.more-link { display: inline-grid; place-items: center; height: 40px; padding: 0 16px; margin-top: 6px; border-radius: 8px; background: var(--text); color: var(--bg); font-size: 13.5px; font-weight: 500; text-decoration: none; }
.empty-box { text-align: center; color: var(--muted); padding: 36px 12px; }

/* 귀농인의 집: 가장 가까운 집 하나를 크게 */
.house-hero { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); margin: 0 0 32px; overflow: hidden; text-decoration: none; color: var(--focus-text) !important; }
.house-hero .ph { min-height: 280px; background: #6f7b55 center / cover no-repeat; position: relative; }
.house-hero .ph .badge { position: absolute; left: 14px; top: 14px; padding: 4px 9px; border-radius: 6px; background: var(--signal); color: #0a0b0a; font-size: 12px; font-weight: 600; }
.house-hero .bd { padding: 26px; display: grid; align-content: center; gap: 18px; }
.house-hero h4 { margin: 0; font-size: 24px; line-height: 1.3; letter-spacing: -0.02em; font-weight: 600; }
.house-hero .sub { margin: 6px 0 0; font-size: 13.5px; color: var(--focus-muted); }
.house-hero .nums { display: flex; gap: 28px; }
.house-hero .nums span { display: grid; gap: 2px; font-size: 12px; color: var(--focus-muted); }
.house-hero .nums b { font-size: 34px; line-height: 1.05; letter-spacing: -0.04em; color: var(--signal); }
.house-hero .nums b small { font-size: 14px; color: var(--focus-muted); margin-left: 2px; letter-spacing: 0; }
.house-hero .go { justify-self: start; display: grid; place-items: center; height: 44px; padding: 0 18px; border-radius: 10px; background: var(--focus-text); color: var(--focus-bg); font-size: 14px; font-weight: 600; }

/* 귀농인의 집 카드 */
.house-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.house { display: block; border-radius: 12px; overflow: hidden; background: var(--surface-solid); border: 1px solid var(--line); text-decoration: none; color: inherit; }
.house:hover { border-color: var(--text); }
.house .thumb { position: relative; aspect-ratio: 4 / 3; background: #c9cdb9 center / cover no-repeat; }
.house .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.house .badge { position: absolute; left: 10px; top: 10px; padding: 3px 8px; border-radius: 6px; background: var(--signal); color: #0a0b0a; font-size: 12px; font-weight: 600; }
.house .badge.wait { background: #fff; color: #0a0b0a; }
.house .body { padding: 12px 14px 14px; display: grid; gap: 3px; }
.house .body b { font-size: 15px; line-height: 1.4; }
.house .body span { font-size: 13px; color: var(--faint); }
.house .body .dist { color: var(--text); font-weight: 600; font-size: 15px; }
.house .body .row { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-top: 6px; }
.house .body .fee { color: var(--text); font-weight: 600; font-size: 16px; }

/* 자격 확인 */
.goals { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; }
.goals button { text-align: left; padding: 14px; border-radius: 10px; border: 0; box-shadow: inset 0 0 0 1px var(--line); background: var(--surface-solid); cursor: pointer; display: grid; gap: 3px; }
.goals button b { font-size: 15px; }
.goals button span { font-size: 12.5px; color: var(--faint); }
.goals button.on { background: var(--text); box-shadow: none; }
.goals button.on b, .goals button.on span { color: var(--bg); }
.q { padding: 16px 0; border-top: 1px solid var(--line-soft); }
.q:first-child { border-top: 0; padding-top: 2px; }
.ql { font-size: 14.5px; font-weight: 500; margin-bottom: 10px; line-height: 1.5; word-break: keep-all; }
.ql small { display: block; font-weight: 400; font-size: 12.5px; color: var(--faint); }
.pills { display: flex; flex-wrap: wrap; gap: 6px; }
.pills button { border: 0; box-shadow: inset 0 0 0 1px var(--line); background: var(--surface-solid); border-radius: 8px; height: 36px; padding: 0 13px; font-size: 13.5px; font-weight: 500; cursor: pointer; }
.pills button.on { background: var(--text); color: var(--bg); box-shadow: none; }
.input-unit.small { height: 46px; max-width: 180px; }
.input-unit.small input { font-size: 18px; }
.input-unit .u { color: var(--faint); font-weight: 500; padding-right: 10px; }
.result-item { border: 1px solid var(--line); }
.result-item.ok:first-of-type { background: var(--focus-bg); color: var(--focus-text); border-color: transparent; }
.result-item.ok:first-of-type .info, .result-item.ok:first-of-type .why li, .result-item.ok:first-of-type .rhead .tag { color: var(--focus-muted); }
.result-item.ok:first-of-type .lvl, .result-item.ok:first-of-type .rlinks a { color: var(--signal); }
.rhead { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rhead b { font-size: 16px; }
.rhead .tag { font-size: 12px; color: var(--faint); }
.rhead .lvl { margin-left: auto; font-size: 14px; font-weight: 600; }
.ok .lvl { color: var(--ok); } .maybe .lvl { color: var(--text); } .no .lvl { color: var(--warn); }
.why { list-style: none; padding: 0; margin: 10px 0 8px; }
.why li { font-size: 13.5px; padding: 3px 0; display: flex; gap: 8px; line-height: 1.5; }
.why li i { font-style: normal; font-weight: 600; width: 14px; flex: none; text-align: center; }
.why li.ok i { color: var(--ok); } .why li.no i { color: var(--warn); }
.result-item .info { font-size: 13px; color: var(--faint); margin: 0 0 10px; }
.rlinks { display: flex; gap: 14px; flex-wrap: wrap; }
.rlinks a { font-size: 13.5px; font-weight: 500; color: var(--text); text-underline-offset: 3px; }

/* 자격 확인: 왼쪽 질문, 오른쪽 결과 (가장 유력한 사업 하나만 초점 카드) */
.check-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: start; margin-top: 8px; }
.check-grid #results { position: sticky; top: 80px; }
.check-grid h3 { margin-top: 28px; }
.check-top { padding: 24px; display: grid; gap: 12px; }
.check-top > span { font-size: 13px; }
.check-top .lvl { font-size: 44px; line-height: 1; letter-spacing: -0.04em; }
.check-top .lvl.ok { color: var(--signal); }
.check-top .lvl.maybe { color: var(--focus-text); }
.check-top .lvl.no { color: #ff7a66; }
.check-top h4 { margin: 0; font-size: 20px; line-height: 1.35; letter-spacing: -0.02em; font-weight: 600; }
.check-top h4 small { font-size: 13px; font-weight: 400; color: var(--focus-muted); }
.check-top .why { margin: 0; }
.check-top .why li { color: var(--focus-text); }
.check-top .why li.ok i { color: var(--signal); }
.check-top .why li.no i { color: #ff7a66; }
.check-top .info { margin: 0; font-size: 13px; }
.check-top .rlinks { align-items: center; gap: 16px; }
.check-top .rlinks a { color: var(--focus-text); }
.check-top .rlinks a.btn-on-focus { color: var(--focus-bg) !important; text-decoration: none; }
.sub-name small { display: block; margin-top: 2px; font-size: 12.5px; font-weight: 400; color: var(--faint); }
.sub-item .left.lv-ok { color: var(--ok); font-weight: 600; }
.sub-item .left.lv-maybe { color: var(--text); }
.sub-item .left.lv-no { color: var(--warn); }

/* 맨 아래 안내 */
.site-foot { border-top: 1px solid var(--line); }
.site-foot div { max-width: 760px; margin: 0 auto; padding: 20px 32px 32px; font-size: 12px; line-height: 1.7; color: var(--faint); word-break: keep-all; }
.site-foot b { color: var(--muted); }

@media (max-width: 1000px) {
  .check-grid { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .check-grid #results { position: static; }
  .pay-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .pay-result { position: static; order: -1; padding: 24px; }
  .pay-result .won .num { font-size: 44px; }
}
@media (max-width: 760px) {
  body.page { padding-left: 0; padding-bottom: var(--tabbar); }
  .page-top .inner { padding: 0 16px; }
  .crumb { height: 48px; }
  #crumbNote { display: none; }
  main { padding: 24px 16px 48px; }
  main h2 { font-size: 26px; }
  .toolbar select { flex: 1 1 0; min-width: 0; }
  .house-hero { grid-template-columns: minmax(0, 1fr); }
  .house-hero .ph { min-height: 180px; }
  .house-hero .bd { padding: 20px; }
  .list-card { padding: 4px 16px; }
  .sub-item[open] { margin: 0 -16px; padding: 0 16px; }
  .site-foot div { padding: 18px 16px 24px; }
}

/* 매물 상세 /farm/:id — 위성 사진이 먼저, 오른쪽에 따라오는 결정 카드 하나 (모바일은 아래 고정 바) */
main.farm-main { max-width: 1120px; padding: 24px 32px 64px; display: grid; gap: 28px; }
.f-tools { display: flex; gap: 8px; }
.tool-btn { height: 34px; padding: 0 12px; border: 0; border-radius: 8px; background: var(--surface-solid); box-shadow: inset 0 0 0 1px var(--line); color: var(--text); font: inherit; font-size: 13px; font-weight: 500; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.tool-btn svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.tool-btn.on { background: var(--signal); color: #0a0b0a; box-shadow: none; }
.f-hero { position: relative; height: 420px; border-radius: 16px; overflow: hidden; background: #4e5a3a; }
.f-hero img, .f-hero .f-lines { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.f-hero .f-sat { transition: opacity .3s; }
.f-hero .f-sat:not([src]) { opacity: 0; }
.f-lines polygon { fill: rgba(196, 245, 74, .16); stroke: #c4f54a; stroke-width: 2.5; stroke-linejoin: round; }
.f-lines .no circle { fill: #c4f54a; }
.f-lines .no text { font: 600 13px var(--font); fill: #0a0b0a; text-anchor: middle; }
.f-hero-tools { position: absolute; right: 16px; top: 16px; display: flex; border-radius: 10px; overflow: hidden; background: #fff; box-shadow: 0 2px 8px rgba(10, 11, 10, .18); }
.f-hero-tools > * { height: 36px; padding: 0 14px; border: 0; background: #fff; color: #0a0b0a; font: inherit; font-size: 13px; font-weight: 500; display: grid; place-items: center; text-decoration: none; cursor: pointer; }
.f-hero-tools > * + * { border-left: 1px solid #f0f0ee; }
.f-hero-tools [aria-pressed="true"] { background: #0a0b0a; color: #fff; }
.f-tag { position: absolute; left: 16px; bottom: 16px; font-size: 12px; font-weight: 500; color: #fff; background: rgba(10, 11, 10, .6); padding: 5px 10px; border-radius: 8px; }
.f-back, .f-hero-m { display: none; }
body.closed .f-sat { filter: grayscale(.85) brightness(.9); }
body.closed .f-tag { background: #0a0b0a; font-weight: 600; }

.f-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 40px; align-items: start; }
.f-body { display: grid; gap: 36px; min-width: 0; }
.f-body section { display: grid; gap: 12px; }
.f-body h2 { margin: 0; font-size: 15px; font-weight: 600; letter-spacing: 0; color: var(--muted); }
.f-title { gap: 10px !important; }
.f-meta { font-size: 13px; color: var(--faint); }
.f-meta i { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; }
.f-new { padding: 1px 6px; border-radius: 4px; background: var(--signal); color: #0a0b0a; font-weight: 600; }
.f-title h1 { margin: 0; font-size: 34px; line-height: 1.25; font-weight: 600; letter-spacing: -0.035em; word-break: keep-all; }
body.closed .f-title h1 { color: var(--muted); }
.f-closed-msg { margin: 0; font-size: 14px; color: var(--faint); }
.f-nums { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 14px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.f-nums > div { padding: 16px 0 16px 20px; display: grid; gap: 4px; min-width: 0; }
.f-nums > div:first-child { padding-left: 0; }
.f-nums > div + div { border-left: 1px solid var(--line); }
.f-nums .k, .f-nums .s { font-size: 12px; color: var(--faint); }
.f-nums .s { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.f-nums .v { font-size: 40px; line-height: 1; font-weight: 600; letter-spacing: -0.04em; }
.f-nums .v small { font-size: 15px; font-weight: 500; color: var(--faint); margin-left: 3px; letter-spacing: 0; }
body.closed .f-nums { display: none; }

.f-dec { position: sticky; top: 80px; padding: 24px; display: grid; gap: 14px; }
.f-dec .lbl { font-size: 13px; color: var(--focus-muted); }
.f-dec .big { font-size: 48px; line-height: 1; font-weight: 600; letter-spacing: -0.045em; color: var(--signal); margin-top: -6px; }
.f-dec .big small { font-size: 18px; font-weight: 500; margin-left: 4px; letter-spacing: 0; }
.f-dec .closed-t { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.f-dec .muted { font-size: 13px; }
.f-dec .foot { font-size: 12px; text-align: center; }
.f-dec dl, .f-dec-m dl { margin: 0; display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 10px; font-size: 14px; padding: 14px 0; border-top: 1px solid color-mix(in srgb, var(--focus-text) 12%, transparent); border-bottom: 1px solid color-mix(in srgb, var(--focus-text) 12%, transparent); }
.f-dec dt, .f-dec-m dt { color: var(--focus-muted); }
.f-dec dd, .f-dec-m dd { margin: 0; }
.f-dec .btn-on-focus { height: 48px; font-size: 15px; }
.f-dec-m { display: none !important; }
/* 마감일 · D-day 는 빨강. 검정 초점 카드 위에서는 밝은 빨강 */
.f-due { color: var(--warn); font-weight: 600; }
.focus .f-due { color: #ff7a66; }
@media (prefers-color-scheme: dark) { .focus .f-due { color: #c8321e; } }   /* 어두운 화면에선 초점 카드가 밝다 */
.f-off { color: var(--faint); font-weight: 400; }
.f-jimok-note { grid-column: 1 / -1; margin: 0 0 4px; font-size: 13px; color: var(--warn); }
.f-prio { padding: 18px 20px; display: grid; gap: 12px; }
.f-prio-head { margin: 0; font-size: 15px; line-height: 1.5; }
.f-prio-head b { font-weight: 600; }
.f-prio-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(4, auto); grid-auto-flow: column; gap: 0 24px; }
.f-prio-list li { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line-soft); font-size: 14px; color: var(--faint); }
.f-prio-list .rk { flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 11.5px; font-weight: 600; background: var(--surface-2); color: var(--muted); }
.f-prio-list .t { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.f-prio-list b { font-weight: 600; }
.f-prio-list li.on { color: var(--text); }
.f-prio-list li.on .rk { background: var(--text); color: var(--bg); }
.f-prio-note { margin: 0; font-size: 12px; line-height: 1.6; color: var(--faint); }
.f-prio-note a { color: inherit; }

.f-table { background: var(--surface-solid); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.f-table .tr { display: grid; grid-template-columns: 32px minmax(0, 1.6fr) 64px 110px 110px; gap: 12px; align-items: center; padding: 13px 20px; font-size: 14px; border-bottom: 1px solid var(--line-soft); }
.f-table .th { font-size: 12px; color: var(--faint); background: var(--bg-subtle); padding: 11px 20px; }
.f-table .r { text-align: right; }
.f-table .no { width: 24px; height: 24px; border-radius: 50%; background: var(--signal); color: #0a0b0a; display: grid; place-items: center; font-size: 12px; font-weight: 600; }
.f-table .addr { font-weight: 500; }
.f-table small { font-size: 12px; color: var(--faint); }
.f-table .tf { padding: 12px 20px; font-size: 12px; color: var(--faint); }

.f-dl { margin: 0; display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 10px 12px; font-size: 14px; line-height: 1.55; }
.f-dl dt { color: var(--faint); }
.f-dl dd { margin: 0; word-break: keep-all; }
.f-dl .muted { color: var(--faint); font-weight: 400; }
.f-photos { display: flex; gap: 8px; overflow-x: auto; }
.f-photos img { height: 120px; border-radius: 10px; display: block; }
.f-where { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); padding: 0; overflow: hidden; }
.f-minimap { height: 240px; background: #eceae2; }
.f-where .f-dl { padding: 20px; align-content: center; }
.f-mach { display: grid; gap: 7px; align-content: start; }
.f-mach .head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.f-mach .head b, .f-mach .head .name { font-weight: 600; color: var(--text); text-decoration: none; }
.f-mach .head .name:hover { text-decoration: underline; text-underline-offset: 3px; }
.f-mach .tel { margin-left: auto; height: 30px; padding: 0 12px; border-radius: 8px; box-shadow: inset 0 0 0 1px var(--line); color: var(--text); font-size: 12.5px; font-weight: 500; text-decoration: none; display: inline-flex; align-items: center; align-self: center; }
.f-mach .chips { display: flex; flex-wrap: wrap; gap: 5px; }
.f-mach .chips > span { padding: 3px 8px; border-radius: 999px; background: var(--bg-page); font-size: 12px; }
.f-mach .chips > .rest { padding: 3px 4px; background: none; color: var(--faint); }
.f-mach .note { font-size: 12px; }
.f-pay { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 20px; }
.f-pay > div { display: grid; gap: 4px; }
.f-pay .k, .f-pay .s { font-size: 12.5px; color: var(--faint); }
.f-pay .v { font-size: 26px; font-weight: 600; letter-spacing: -0.03em; }
.f-pay .v small { font-size: 14px; font-weight: 500; color: var(--faint); }
.f-pay a { font-size: 14px; font-weight: 500; white-space: nowrap; }

.f-sim { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.f-simc { background: var(--surface-solid); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; text-decoration: none; display: grid; color: var(--text); }
.f-simc:hover { border-color: var(--text); }
.f-simc .th { height: 110px; background: #55633d center / cover; }
.f-simc .t { padding: 12px 14px; display: grid; gap: 3px; min-width: 0; }
.f-simc b { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.f-simc .muted { font-size: 12px; color: var(--faint); }
.f-simc .p { font-size: 15px; font-weight: 600; }
.f-near-list { display: grid; gap: 10px; }
.f-near { display: flex; gap: 12px; align-items: center; padding: 14px; border-radius: 14px; background: var(--surface-solid); border: 1px solid var(--line); text-decoration: none; color: var(--text); }
.f-near.focus { border: 0; background: var(--focus-bg); color: var(--focus-text); }
.f-near .th { flex: none; width: 56px; height: 56px; border-radius: 8px; background: #55633d center / cover; }
.f-near .t { flex: 1; min-width: 0; display: grid; gap: 2px; }
.f-near b { font-size: 14.5px; font-weight: 600; }
.f-near .t span { font-size: 12px; color: var(--faint); }
.f-near.focus .t span { color: var(--focus-muted); }
.f-near .p { flex: none; font-size: 15px; font-weight: 600; }
.f-near.focus .p { color: var(--signal); }
.f-source { margin: 0; font-size: 12px; line-height: 1.7; color: var(--faint); }
.f-source a { color: inherit; }
.f-bar, .f-rec { display: none; }
.f-rec { margin-top: 6px; padding: 12px 14px; font-size: 13px; }
main.farm-main.gone > :not(.f-missing) { display: none; }
.f-missing { padding: 48px 0; }

@media (max-width: 1240px) {
  .f-where { grid-template-columns: minmax(0, 1fr); }
  .f-minimap { height: 200px; }
}
@media (max-width: 1000px) {
  .f-grid { grid-template-columns: minmax(0, 1fr); }
  .f-dec { display: none; }
  .f-rec { display: grid !important; }
  .f-dec-m { display: grid !important; padding: 18px; gap: 12px; }
  .f-dec-m dl { border-top: 0; padding-top: 0; }
  .f-bar:not([hidden]) { display: flex; position: fixed; z-index: 20; left: 0; right: 0; bottom: 0; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--bg-page) 96%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--line); align-items: center; gap: 12px; }
  .f-bar span { flex: none; display: grid; gap: 1px; }
  .f-bar small { font-size: 11px; color: var(--faint); }
  .f-bar small .f-due { font-size: 11.5px; }
  .f-bar b { font-size: 18px; font-weight: 600; letter-spacing: -0.02em; }
  .f-bar a { flex: 1; height: 46px; border-radius: 10px; background: var(--text); color: var(--bg); font-size: 15px; font-weight: 600; text-decoration: none; display: grid; place-items: center; }
  body.farm:not(.closed) { padding-bottom: 72px; }
  body.farm .site-foot { padding-bottom: 72px; }
}
@media (max-width: 760px) {
  body.farm .page-top { display: none; }
  main.farm-main { padding: 0 0 32px; gap: 20px; }
  .f-hero { height: 260px; border-radius: 0; }
  .f-back { display: grid; position: absolute; left: 12px; top: 12px; width: 38px; height: 38px; border-radius: 10px; background: rgba(255, 255, 255, .94); place-items: center; }
  .f-back svg { width: 18px; height: 18px; fill: none; stroke: #0a0b0a; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
  .f-hero-m { display: flex; gap: 6px; position: absolute; right: 12px; top: 12px; }
  .f-hero-m button { width: 38px; height: 38px; border: 0; border-radius: 10px; background: rgba(255, 255, 255, .94); color: #0a0b0a; font-size: 16px; display: grid; place-items: center; cursor: pointer; }
  .f-hero-m svg { width: 17px; height: 17px; fill: none; stroke: #0a0b0a; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
  .f-hero-tools { right: 12px; top: auto; bottom: 12px; }
  #tCad { display: none; }
  .f-hero-tools > * { height: 34px; padding: 0 11px; font-size: 12.5px; }
  .f-tag { left: 12px; bottom: 12px; font-size: 11px; }
  .f-grid, .f-missing { padding: 0 16px; }
  .f-body { gap: 26px; }
  .f-body h2 { font-size: 14px; }
  .f-title h1 { font-size: 24px; line-height: 1.3; }
  .f-nums { margin-top: 8px; }
  .f-nums > div { padding: 12px 0 12px 12px; gap: 2px; }
  .f-nums .v { font-size: 22px; letter-spacing: -0.03em; }
  .f-nums .v small { font-size: 12px; }
  .f-nums .s { display: none; }
  .f-table .tr { grid-template-columns: 24px minmax(0, 1fr) auto; gap: 4px 12px; padding: 12px 16px; }
  .f-table .tr > :nth-child(3) { display: none; }
  .f-table .tr > :nth-child(5) { grid-column: 2 / 4; text-align: left; font-size: 12px; color: var(--faint); margin-top: -4px; }
  .f-table .th { display: none; }
  .f-table .tf { padding: 10px 16px 12px; font-size: 11.5px; }
  .f-where { grid-template-columns: minmax(0, 1fr); }
  .f-minimap { height: 160px; }
  .f-where .f-dl { padding: 14px 16px; grid-template-columns: 70px minmax(0, 1fr); font-size: 13.5px; }
  .f-dl { grid-template-columns: 70px minmax(0, 1fr); font-size: 13.5px; }
  .f-pay { padding: 14px 16px; }
  .f-prio { padding: 14px 16px; }
  .f-prio-list { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; grid-auto-flow: row; }
  .f-pay .v { font-size: 22px; }
  .f-sim { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .f-sim > :nth-child(3) { display: none; }
  .f-simc .th { height: 84px; }
  .f-bar:not([hidden]) { bottom: var(--tabbar); }
  body.farm:not(.closed) { padding-bottom: calc(var(--tabbar) + 68px); }
  body.farm .site-foot { padding-bottom: 0; }
}
/* 약관 · 개인정보처리방침 */
main.doc { max-width: 760px; }
main.doc p, main.doc li { font-size: 14.5px; line-height: 1.75; color: var(--text); word-break: keep-all; }
main.doc ul { padding-left: 20px; margin: 0 0 8px; }
main.doc h3 { color: var(--text); font-size: 16px; margin-top: 32px; }
.site-foot .links { margin-top: 6px; }
.site-foot .links a { color: var(--muted); }

/* ---------- 농기계 사업소 상세 /machine/:id: 매물 상세와 같은 두 칸 ---------- */
main.o-main { max-width: 1120px; padding: 24px 32px 64px; display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 32px; align-items: start; }
main.o-main[hidden] { display: none; }
.o-body { display: grid; gap: 28px; min-width: 0; }
.o-title h2 { margin: 0; }
.o-title .lead { margin: 6px 0 0; }
.o-map { height: 220px; border-radius: 14px; overflow: hidden; background: #eceae2; }
.o-h { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-bottom: 12px; }
.o-h h3 { margin: 0; font-size: 18px; color: var(--text); }
.o-find { margin-left: auto; width: 220px; height: 36px; }
.o-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.o-tile { display: grid; gap: 2px; padding: 10px 12px; border-radius: 10px; background: var(--surface-solid); box-shadow: inset 0 0 0 1px var(--line); }
.o-tile span { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.o-tile b { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }
.o-tile b small { font-size: 12px; font-weight: 500; color: var(--faint); margin-left: 1px; }
.o-tile.zero { opacity: .45; }
.o-tile.hl, .o-tr.hl, .o-group > span.hl { background: color-mix(in srgb, var(--signal) 22%, var(--surface-solid)); box-shadow: inset 3px 0 0 var(--signal); }
.o-groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 20px; }
.o-group { display: grid; gap: 0; align-content: start; }
.o-group > b { font-size: 12.5px; font-weight: 600; color: var(--faint); padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.o-group > span { display: flex; justify-content: space-between; gap: 8px; padding: 6px 4px; border-bottom: 1px solid var(--line-soft); font-size: 13.5px; }
.o-group > span.dim { opacity: .35; }
.o-table { padding: 4px 16px; max-height: 520px; overflow-y: auto; }
.o-tr { display: grid; grid-template-columns: minmax(0, 1fr) 110px 48px 140px; gap: 10px; padding: 9px 4px; border-bottom: 1px solid var(--line-soft); font-size: 13.5px; align-items: baseline; }
.o-tr > span:nth-child(3) { text-align: right; }
.o-tr > b { font-weight: 600; text-align: right; }
.o-th { position: sticky; top: 0; background: var(--surface-solid); font-size: 12px; color: var(--faint); }
.o-th > span:last-child { text-align: right; }
.o-none { padding: 16px 4px; }
.o-body .hint { display: block; margin: 8px 0 0; }
.o-side { position: sticky; top: 80px; padding: 24px; display: grid; gap: 14px; }
.o-side .lbl { font-size: 13px; color: var(--focus-muted); }
.o-side .big { font-size: 48px; line-height: 1; font-weight: 600; letter-spacing: -0.045em; color: var(--signal); margin-top: -6px; }
.o-side .big small { font-size: 18px; font-weight: 500; margin-left: 4px; letter-spacing: 0; color: var(--focus-text); }
.o-side .muted { font-size: 13px; }
.o-side .foot { font-size: 12px; line-height: 1.6; }
.o-side dl { margin: 0; display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 10px; font-size: 14px; padding: 14px 0; border-top: 1px solid color-mix(in srgb, var(--focus-text) 12%, transparent); border-bottom: 1px solid color-mix(in srgb, var(--focus-text) 12%, transparent); }
.o-side dt { color: var(--focus-muted); }
.o-side dd { margin: 0; word-break: keep-all; }
.o-side .btn-on-focus { height: 48px; font-size: 15px; }
@media (prefers-color-scheme: dark) { .o-side .big { color: var(--focus-text); } .o-side .big small { color: var(--focus-muted); } }
@media (max-width: 1000px) {
  main.o-main { grid-template-columns: minmax(0, 1fr); }
  .o-side { position: static; }
}
@media (max-width: 760px) {
  main.o-main { padding: 18px 16px 96px; gap: 22px; }
  .o-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .o-find { width: 100%; margin-left: 0; }
  .o-tr { grid-template-columns: minmax(0, 1fr) 40px 88px; }
  .o-tr > span:nth-child(2) { display: none; }
  .o-side { display: none; }
  .o-bar:not([hidden]) a { margin-left: auto; height: 44px; padding: 0 18px; border-radius: 10px; background: var(--text); color: var(--bg); display: grid; place-items: center; font-weight: 600; text-decoration: none; }
}
