/*
Theme Name: 집마중
Theme URI: https://jipmajung.kr
Description: 공공분양/공공임대/청약 공고 정보 테마. 집마중 코어 플러그인과 함께 사용하세요.
Version: 1.18.3
Requires at least: 6.3
Requires PHP: 8.0
Author: 집마중
Text Domain: jipmajung
*/

:root {
  --g: #00A862; --g-d: #007A47; --g-s: #E6F7EF; --g-dd: #0E7A4F;
  --ink: #191F28; --ink2: #333D4B; --ink3: #4E5968; --mu: #6B7684; --mu2: #8B95A1;
  --line: #E8EBED; --line2: #F2F4F6; --bg: #F2F4F6; --card: #fff;
  --red: #F04452; --red-d: #D61F2C; --red-s: #FFEBEE;
  --blue: #2F6FE4; --blue-s: #EAF1FF; --amber-s: #FFF6E5; --amber-d: #7A4A00;
  --r: 20px;
  --font: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.5; word-break: keep-all; overflow-wrap: anywhere; -webkit-font-smoothing: antialiased; letter-spacing: -0.01em; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
h1, h2, h3, p { margin: 0; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--g); outline-offset: 2px; border-radius: 8px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: #fff; padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
.wrap { max-width: 1200px; margin: 0 auto; padding-inline: 24px; }
.row { display: flex; align-items: center; }
.gap6 { gap: 6px; }
.muted { color: var(--mu); }
.small { font-size: 13px; }
.card { background: var(--card); border-radius: var(--r); }
.note { font-size: 12px; color: var(--mu2); line-height: 1.6; }
.jm-ico, .jm-line { flex: none; display: block; }
.jm-tile { flex: none; display: inline-flex; align-items: center; justify-content: center; box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 1px 2px rgba(15,40,30,.06); }

/* 배지 */
.pill { display: inline-flex; align-items: center; justify-content: center; gap: 3px; padding: 2px 8px; border-radius: 7px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.st-open { background: var(--red-s); color: var(--red-d); }
.st-soon { background: var(--g-s); color: var(--g-d); }
.st-closed { background: var(--line2); color: var(--mu); }
.pill.solid.st-open { background: var(--red); color: #fff; }
.pill.solid.st-soon, .pill.solid.st-closed { background: #fff; }
.src { display: inline-flex; align-items: center; height: 18px; padding: 0 6px; border-radius: 5px; background: var(--line2); color: var(--mu); font-size: 10px; font-weight: 700; }
.chip { display: inline-flex; align-items: center; gap: 5px; height: 32px; padding: 0 11px; border-radius: 16px; background: var(--line2); font-size: 12.5px; font-weight: 500; color: var(--ink2); white-space: nowrap; flex: none; }
.chip.line { background: #fff; border: 1px solid var(--g); color: var(--g-d); font-weight: 700; }
.chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }

/* 상단 */
.top { position: sticky; top: 0; z-index: 40; background: #fff; border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; gap: 24px; min-height: 60px; }
.logo { display: flex; align-items: center; gap: 8px; font-size: 20px; font-weight: 900; letter-spacing: -0.04em; }
.logo-mark { width: 30px; height: 30px; border-radius: 9px; background: var(--g); display: flex; align-items: center; justify-content: center; }
.nav { display: flex; align-self: stretch; gap: 20px; font-size: 15px; }
.nav a { display: flex; align-items: center; gap: 5px; color: var(--ink3); font-weight: 500; }
.nav a[aria-current] { color: var(--ink); font-weight: 700; box-shadow: inset 0 -2px 0 var(--g); }
.top-tools { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.search-box { display: flex; align-items: center; gap: 8px; width: 220px; height: 40px; padding: 0 12px; border-radius: 10px; background: var(--line2); color: var(--mu2); }
.search-box input { border: 0; background: transparent; outline: 0; font: 500 14px var(--font); width: 100%; color: var(--ink); }
.icon-btn { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; color: var(--ink3); background: transparent; border: 0; }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--g-s); color: var(--g-d); font-weight: 900; display: flex; align-items: center; justify-content: center; }

/* 하단 탭바 (모바일) */
.tabbar { display: none; }

/* 섹션 공통 */
.sec { padding-top: 48px; }
.sec-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.sec-head h2 { display: flex; align-items: center; gap: 8px; font-size: 22px; font-weight: 900; letter-spacing: -0.03em; }
.card .sec-head h2 { font-size: 17px; }
.more { font-size: 13px; color: var(--mu); white-space: nowrap; }
.empty { padding: 32px 16px; text-align: center; color: var(--mu); line-height: 1.8; }

/* 홈: 맞춤 영역 */
.personal { background: var(--bg); padding: 28px 0 40px; }
.hello-sub { font-size: 14px; color: var(--mu); }
.hello h1 { margin-top: 4px; font-size: 28px; font-weight: 900; letter-spacing: -0.03em; line-height: 1.35; }
.hello h1 em { font-style: normal; color: var(--g); }
.sync-note { margin-top: 6px; font-size: 12px; color: var(--mu2); }
.p-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 18px; }
.dcard { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 10px; padding: 22px; border-radius: 22px; background: var(--g); color: #fff; }
.dcard::after { content: ''; position: absolute; right: -40px; bottom: -60px; width: 200px; height: 200px; border-radius: 50%; background: rgba(255,255,255,.1); }
.dcard .tag { align-self: flex-start; padding: 4px 9px; border-radius: 7px; background: rgba(255,255,255,.2); font-size: 12px; font-weight: 700; }
.dcard .big { font-size: 44px; line-height: 1; font-weight: 900; letter-spacing: -0.04em; }
.dcard h3 { font-size: 20px; font-weight: 900; }
.dcard p { font-size: 13.5px; color: #D9F5E8; }
.dcard .btns { position: relative; z-index: 1; display: flex; gap: 8px; margin-top: auto; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 46px; padding: 0 18px; border-radius: 12px; font-size: 15px; font-weight: 700; border: 0; }
.btn-white { background: #fff; color: var(--g-d); flex: 1; }
.btn-ghost { background: rgba(255,255,255,.2); color: #fff; flex: 1; }
.btn-primary { background: var(--g); color: #fff; }
.btn-soft { background: var(--g-s); color: var(--g-d); }
.btn-dark { background: var(--ink); color: #fff; }
.mini-card { padding: 20px 22px; display: flex; flex-direction: column; gap: 12px; }
.donut-row { display: flex; align-items: center; gap: 18px; }
.type-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.type-list li { display: flex; align-items: center; gap: 8px; }
.type-list li.no { color: #B0B8C1; }
.ok-dot { width: 18px; height: 18px; border-radius: 50%; background: var(--g-s); display: inline-flex; align-items: center; justify-content: center; color: var(--g); flex: none; }
.no .ok-dot { background: var(--line2); color: #B0B8C1; }
.bar { height: 10px; border-radius: 5px; background: var(--line2); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 5px; background: var(--g); }
.setup-cta { display: flex; align-items: center; gap: 16px; padding: 22px; border-radius: 22px; background: #fff; }
.setup-cta strong { font-size: 18px; font-weight: 900; }
.p-two { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 16px; margin-top: 16px; }

/* 목록 행 */
.jm-row { display: flex; gap: 14px; padding: 14px; border-radius: 16px; align-items: flex-start; }
.jm-row:hover { background: #F9FAFB; }
.jm-row-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.jm-row-top { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 12px; }
.jm-row-name { font-size: 16px; font-weight: 800; }
.jm-row-price { font-size: 15px; }
.jm-verdict { align-self: flex-start; display: inline-flex; align-items: center; gap: 5px; margin-top: 4px; padding: 5px 9px; border-radius: 8px; font-size: 12px; font-weight: 700; }
.v-ok { background: var(--g-s); color: var(--g-d); }
.v-mid { background: var(--amber-s); color: #9A5B00; }
.v-no { background: var(--red-s); color: var(--red-d); }
.v-na { background: var(--line2); color: var(--mu); }
.list-card { padding: 18px 8px 8px; }
.list-card .sec-head { padding: 0 14px; }

/* 썸네일 */
.jm-thumb { position: relative; display: block; flex: none; overflow: hidden; }
.jm-thumb .b { position: absolute; }
.jm-thumb .g { position: absolute; left: 0; right: 0; bottom: 0; background: #A9D29A; }
.jm-thumb .tb { position: absolute; top: 10px; left: 10px; }
.jm-thumb.photo { background-size: cover; background-position: center; }

/* 가로 카드 */
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.jm-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: #fff; }
.jm-card-body { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px 16px; }
.jm-card-name { font-size: 17px; font-weight: 800; letter-spacing: -0.02em; }
.jm-card .kind { font-size: 12px; font-weight: 700; color: var(--g-d); }
.jm-card-foot { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-top: 10px; padding-top: 12px; border-top: 1px solid var(--line2); }

/* 배너 */
.hero { position: relative; display: block; height: 380px; border-radius: 20px; overflow: hidden; }
.jm-hero-art { position: absolute; inset: 0; background: linear-gradient(180deg, #9CCBEF 0%, #DCEDF8 60%, #EFF6E8 100%); }
.jm-hero-art .sun { position: absolute; right: 11%; top: 10%; width: 64px; height: 64px; border-radius: 50%; background: #FFF6CF; box-shadow: 0 0 0 14px rgba(255,246,207,.4); }
.jm-hero-art .b { position: absolute; bottom: 12%; }
.jm-hero-art .far { background-color: #BFD5E6; background-image: repeating-linear-gradient(0deg, #BFD5E6 0 4px, transparent 4px 11px), repeating-linear-gradient(90deg, #BFD5E6 0 5px, #B1C9DD 5px 11px); }
.jm-hero-art .near { bottom: 9%; background-color: #fff; background-image: repeating-linear-gradient(0deg, #fff 0 5px, transparent 5px 14px), repeating-linear-gradient(90deg, #fff 0 6px, #B6CBDD 6px 13px); box-shadow: inset -12px 0 0 rgba(25,31,40,.05); }
.jm-hero-art .near.alt { background-color: #EDF1F5; background-image: repeating-linear-gradient(0deg, #EDF1F5 0 5px, transparent 5px 14px), repeating-linear-gradient(90deg, #EDF1F5 0 6px, #A3B8CC 6px 13px); }
.jm-hero-art .trees { position: absolute; left: 0; right: 0; bottom: 7%; height: 9%; background: radial-gradient(circle at 50% 60%, #4E9C62 45%, transparent 47%) repeat-x; background-size: 34px 100%; }
.jm-hero-art .grass { position: absolute; left: 0; right: 0; bottom: 0; height: 10%; background: #8DC481; }
.jm-hero-art .shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14,24,32,0) 30%, rgba(14,24,32,.86) 100%); }
.hero-text { position: absolute; left: 28px; right: 28px; bottom: 26px; display: flex; flex-direction: column; gap: 8px; color: #fff; }
.hero-text .tag { align-self: flex-start; padding: 4px 10px; border-radius: 6px; background: var(--g); font-size: 12.5px; font-weight: 700; }
.hero-text strong { font-size: 28px; line-height: 1.3; font-weight: 900; letter-spacing: -0.03em; }
.hero-text span { font-size: 14.5px; color: #DCE6E2; }
.split { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.news { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 24px; margin-top: 16px; }
.news a { display: flex; flex-direction: column; gap: 6px; padding: 14px 0; border-top: 2px solid var(--ink); }
.news .k { font-size: 12px; font-weight: 700; color: var(--g-d); }
.news strong { font-size: 15.5px; line-height: 1.45; }

/* 이번 주 일정 */
.week { border: 1px solid var(--line); border-radius: 20px; padding: 20px; background: #fff; }
.week-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; margin-bottom: 10px; }
.week-days button { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 0; border: 0; border-radius: 12px; background: transparent; }
.week-days .dw { font-size: 12px; color: var(--mu); }
.week-days .dn { font-size: 16px; font-weight: 700; }
.week-days .dot { width: 5px; height: 5px; border-radius: 50%; background: transparent; }
.week-days .dot.has { background: var(--g); }
.week-days .dot.end { background: var(--red); }
.week-days button.today { box-shadow: inset 0 0 0 2px var(--g); }
.week-days button[aria-pressed="true"] { background: var(--g); box-shadow: none; }
.week-days button[aria-pressed="true"] .dw, .week-days button[aria-pressed="true"] .dn { color: #fff; }
.week-days button[aria-pressed="true"] .dot { background: transparent; }
.ev-list { list-style: none; margin: 0; padding: 0; }
.ev-list li a { display: flex; gap: 10px; align-items: flex-start; padding: 11px 0; border-top: 1px solid var(--line2); }
.ev-list strong { font-size: 14.5px; line-height: 1.4; display: block; }
.tag-ev { flex: none; width: 44px; text-align: center; padding: 2px 0; border-radius: 6px; font-size: 12px; font-weight: 700; }
.t-접수 { background: var(--g-s); color: var(--g-d); } .t-마감 { background: var(--red-s); color: var(--red-d); }
.t-발표 { background: var(--blue-s); color: #1B57C9; } .t-계약 { background: var(--line2); color: var(--ink3); }

/* 표 */
.tbl { width: 100%; border-collapse: collapse; font-size: 15px; }
.tbl th { text-align: left; font-size: 12.5px; font-weight: 600; color: var(--mu); padding: 10px 12px; border-bottom: 1px solid var(--line); background: #F9FAFB; }
.tbl td { padding: 13px 12px; border-bottom: 1px solid var(--line2); }
.tbl-wrap { overflow-x: auto; }
.rank { list-style: none; margin: 0; padding: 0; }
.rank li a { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line2); }
.rank li:first-child a { border-top: 0; }
.rank .n { width: 20px; font-size: 18px; font-weight: 900; font-style: italic; color: var(--mu2); }
.rank li:nth-child(-n+3) .n { color: var(--g); }
.seg { display: inline-flex; padding: 4px; border-radius: 12px; background: var(--line2); gap: 2px; }
.seg a, .seg button { display: inline-flex; align-items: center; height: 32px; padding: 0 14px; border-radius: 9px; font-size: 13px; font-weight: 700; color: var(--mu); border: 0; background: transparent; white-space: nowrap; }
.seg [aria-current], .seg [aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.region-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.region-tabs button, .region-tabs a { height: 34px; padding: 0 14px; border: 1px solid #D1D6DB; border-radius: 17px; background: #fff; color: var(--ink2); font-size: 13.5px; font-weight: 700; display: inline-flex; align-items: center; }
.region-tabs [aria-pressed="true"], .region-tabs [aria-current] { background: var(--ink); color: #fff; border-color: var(--ink); }

/* 광고 */
.jm-ad { margin: 24px 0; min-height: 90px; }
.jm-ad-label { display: block; font-size: 11px; color: var(--mu2); margin-bottom: 4px; }
.jm-ad-ph { display: flex; align-items: center; justify-content: center; border: 1.5px dashed #C9CFD6; border-radius: 14px; color: var(--mu); font-size: 13px; background: rgba(255,255,255,.6); }

/* 공고 상세 */
.d-head { background: #fff; padding: 20px 0 22px; }
.crumb { display: flex; gap: 6px; font-size: 13px; color: var(--mu2); margin-bottom: 12px; }
.d-head h1 { margin-top: 10px; font-size: 30px; font-weight: 900; letter-spacing: -0.03em; line-height: 1.3; }
.d-head .addr { margin-top: 6px; font-size: 15px; color: var(--mu); }
.d-tabs { position: sticky; top: 60px; z-index: 30; background: #fff; border-bottom: 1px solid var(--line); }
.d-tabs .wrap { display: flex; gap: 22px; overflow-x: auto; scrollbar-width: none; }
.d-tabs a { display: flex; align-items: center; height: 48px; font-size: 15px; font-weight: 500; color: var(--mu2); white-space: nowrap; }
.d-tabs a.on { color: var(--ink); font-weight: 700; box-shadow: inset 0 -2px 0 var(--ink); }
.d-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: start; padding-top: 20px; padding-bottom: 60px; }
.d-main { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.d-side { position: sticky; top: 128px; display: flex; flex-direction: column; gap: 12px; }
.d-sec { scroll-margin-top: 120px; display: flex; flex-direction: column; gap: 14px; }
.box { background: #fff; border-radius: 20px; padding: 20px; }
.box h2 { display: flex; align-items: center; gap: 8px; font-size: 18px; font-weight: 900; margin-bottom: 12px; }
.box h2 .r { margin-left: auto; font-size: 12px; font-weight: 500; color: var(--mu2); }
.dday-box { display: flex; align-items: center; gap: 12px; padding: 16px; border-radius: 16px; background: var(--bg); }
.dday-box .big { font-size: 32px; font-weight: 900; letter-spacing: -0.03em; line-height: 1.2; }
.dday-box .big.st-open { color: var(--red); background: none; } .dday-box .big.st-soon { color: var(--g); background: none; } .dday-box .big.st-closed { color: var(--mu); background: none; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.stats > div { display: flex; flex-direction: column; gap: 4px; padding: 12px; border-radius: 14px; border: 1px solid var(--line); }
.stats > div > span { font-size: 12px; color: var(--mu); }
.stats strong { font-size: 16px; overflow-wrap: normal; }
.stats strong .nw { white-space: nowrap; }
.stats strong small { display: block; margin-top: 2px; font-size: 13px; font-weight: 600; color: var(--ink3); }
.steps { list-style: none; margin: 0; padding: 0; }
.steps li { position: relative; display: flex; align-items: center; gap: 12px; padding: 10px 0; }
.steps li:not(:last-child)::after { content: ''; position: absolute; left: 6px; top: 30px; bottom: -10px; width: 2px; background: var(--line); }
.steps li.done:not(:last-child)::after { background: var(--g); }
.steps .dot { width: 14px; height: 14px; border-radius: 50%; border: 3px solid var(--line); background: #fff; flex: none; position: relative; z-index: 1; }
.steps .done .dot { background: var(--g); border-color: var(--g); }
.steps .now .dot { border-color: var(--g); }
.steps .lbl { flex: 1; font-size: 15px; font-weight: 600; }
.steps .dt { font-size: 14px; color: var(--ink3); }
.kv { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line2); font-size: 15px; }
.kv:last-child { border-bottom: 0; }
.kv .k { display: flex; align-items: center; gap: 10px; color: var(--mu); }
.kv .v { font-weight: 600; text-align: right; }
.fit { background: var(--g-s); }
.fit h2 { color: #005C35; }
.fit ul { list-style: none; margin: 0; padding: 0; font-size: 14.5px; color: #1E4D36; line-height: 2; }
.fit li { display: flex; align-items: center; gap: 8px; }
.fit.no { background: var(--red-s); } .fit.no h2, .fit.no ul { color: #8A1C25; }
.fit.unknown { background: var(--bg); } .fit.unknown h2, .fit.unknown ul { color: var(--ink2); }
.loan-pill { display: inline-flex; align-items: center; gap: 3px; padding: 2px 7px; border-radius: 6px; font-size: 11px; font-weight: 700; }
.lp-ok { background: var(--g-s); color: var(--g-d); } .lp-no { background: var(--red-s); color: var(--red-d); }
.money-big { font-size: 30px; font-weight: 900; letter-spacing: -0.03em; }
.stack { position: relative; margin-top: 16px; }
.stack .track { display: flex; height: 14px; border-radius: 7px; overflow: hidden; background: var(--line2); }
.stack .track i { display: block; height: 14px; }
.legend { display: flex; justify-content: space-between; gap: 6px; margin-top: 8px; font-size: 12px; color: var(--mu); flex-wrap: wrap; }
.legend span { display: inline-flex; align-items: center; gap: 5px; }
.legend i { width: 8px; height: 8px; border-radius: 2px; display: inline-block; }
.callout { display: flex; gap: 10px; align-items: flex-start; padding: 13px 14px; border-radius: 14px; font-size: 13px; line-height: 1.55; }
.callout.amber { background: var(--amber-s); color: var(--amber-d); }
.callout.green { background: var(--g-s); color: #005C35; }
.callout.gray { background: #F7F8FA; color: var(--ink3); }
.cmp { display: grid; grid-template-columns: 90px 1fr 1fr; font-size: 14px; }
.cmp > * { padding: 10px 6px; border-top: 1px solid var(--line2); text-align: right; }
.cmp > .k { text-align: left; color: var(--mu); padding-left: 0; }
.cmp .hl { background: #F3FBF7; }
.cmp .tot { font-weight: 900; font-size: 16px; border-top: 2px solid var(--ink); }
.hbar { position: relative; height: 8px; border-radius: 4px; background: var(--line2); margin-top: 6px; }
.hbar i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 4px; background: #C9D2DC; }
.hbar b { position: absolute; top: -3px; width: 3px; height: 14px; border-radius: 2px; background: var(--g); transform: translateX(-50%); }
.stat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.stat-grid > div { display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: 16px; background: #FAFBFC; border: 1px solid #F0F2F4; }
.stat-grid span { font-size: 12px; color: var(--mu2); }
.stat-grid strong { font-size: 16px; }
.map-box { height: 320px; border-radius: 14px; overflow: hidden; background: #F1EFEA; }
.cta-box { display: flex; flex-direction: column; gap: 8px; }
.cta-box .btn { height: 52px; }
.m-cta { display: none; }
.entry { font-size: 15.5px; line-height: 1.85; color: var(--ink2); }
.entry p { margin: 0 0 1em; }
.checks { list-style: none; margin: 0; padding: 0; }
.checks li { display: flex; gap: 10px; padding: 7px 0; font-size: 14.5px; color: var(--ink3); }

/* 지도 페이지 */
.map-page { display: grid; grid-template-columns: 400px minmax(0, 1fr); height: calc(100vh - 61px); }
.admin-bar .map-page { height: calc(100vh - 93px); }
.map-side { display: flex; flex-direction: column; min-height: 0; background: #fff; border-right: 1px solid var(--line); }
.map-side-head { padding: 16px 18px 12px; border-bottom: 1px solid var(--line2); display: flex; flex-direction: column; gap: 10px; }
.map-list { flex: 1; overflow-y: auto; }
.map-list .jm-row { border-radius: 0; border-bottom: 1px solid var(--line2); }
.map-list .jm-row.sel { background: #F3FBF7; box-shadow: inset 3px 0 0 var(--g); }
.map-canvas { position: relative; background: #F1EFEA; }
#jm-map { position: absolute; inset: 0; }
.map-chips { position: absolute; top: 14px; left: 14px; right: 14px; z-index: 5; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.map-chips button { flex: none; height: 36px; padding: 0 13px; border: 0; border-radius: 18px; background: #fff; color: var(--ink2); font-size: 13px; font-weight: 600; box-shadow: 0 2px 8px rgba(25,31,40,.14); display: inline-flex; align-items: center; gap: 5px; }
.map-chips button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.map-chips button.mine[aria-pressed="true"] { background: var(--g); }
.mk { transform: translate(-50%, -100%); display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px 3px 3px; border: 2px solid #fff; border-radius: 11px; color: #fff; font: 700 12px var(--font); white-space: nowrap; box-shadow: 0 4px 12px rgba(25,31,40,.24); cursor: pointer; }
.mk em { font-style: normal; padding: 1px 5px; border-radius: 7px; background: #fff; font-size: 11px; }
.mk.open { background: var(--red); } .mk.open em { color: var(--red-d); }
.mk.soon { background: var(--g); } .mk.soon em { color: var(--g-d); }
.mk.dim { background: #8B95A1; } .mk.dim em { color: var(--ink3); }
.mk.sel { background: var(--ink); } .mk.sel em { color: var(--ink); }
.iw { padding: 14px 16px; font: 14px/1.5 var(--font); color: var(--ink); width: 260px; }
.iw strong { display: block; font-size: 15px; margin: 4px 0; }
.iw a { display: inline-flex; margin-top: 8px; color: var(--g-d); font-weight: 700; }
.map-fallback { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center; padding: 24px; color: var(--mu); }

/* 캘린더 */
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal .dow { text-align: center; font-size: 12.5px; color: var(--mu2); padding: 6px 0; }
.cal .cell { min-height: 108px; padding: 8px; border-radius: 12px; background: #fff; display: flex; flex-direction: column; gap: 4px; }
.cal .cell.out { background: transparent; }
.cal .cell .num { font-size: 13px; font-weight: 700; }
.cal .cell.today .num { display: inline-flex; width: 24px; height: 24px; border-radius: 50%; background: var(--g); color: #fff; align-items: center; justify-content: center; }
.cal .ev { display: block; font-size: 11.5px; line-height: 1.35; padding: 2px 5px; border-radius: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* 내 조건 */
.form-card { padding: 6px 20px; }
.f-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line2); }
.f-row:last-child { border-bottom: 0; }
.f-row label, .f-row .lab { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--ink3); }
.f-row input, .f-row select { font: 600 15px var(--font); color: var(--ink); border: 1px solid var(--line); border-radius: 10px; height: 42px; padding: 0 12px; width: 180px; text-align: right; background: #fff; }
.f-row select { text-align-last: right; }
.opt-group { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.opt-group button { height: 38px; padding: 0 13px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; font-size: 13.5px; font-weight: 600; color: var(--ink2); }
.opt-group button[aria-pressed="true"] { border-color: var(--g); background: var(--g-s); color: var(--g-d); }
.result-bar { position: sticky; bottom: 0; z-index: 20; margin-top: 16px; padding: 16px 20px 18px; border-radius: 22px 22px 0 0; background: #fff; box-shadow: 0 -8px 28px rgba(25,31,40,.12); }

/* 글 */
.article { max-width: 760px; margin: 28px auto 64px; padding: 36px 40px; }
.article h1 { font-size: 32px; font-weight: 900; letter-spacing: -0.03em; line-height: 1.3; margin-bottom: 8px; }
.article .entry h2 { font-size: 22px; font-weight: 800; margin: 36px 0 10px; }
.article .entry a { color: var(--g-d); text-decoration: underline; }
.post-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.post-list a { display: flex; flex-direction: column; gap: 8px; padding: 20px; border-radius: 18px; background: #fff; height: 100%; }
.post-list strong { font-size: 17px; line-height: 1.4; }

/* 하단 */
.foot { margin-top: 56px; background: var(--ink); color: var(--mu2); font-size: 13px; }
.foot-in { display: flex; flex-wrap: wrap; gap: 28px 56px; padding-top: 40px; padding-bottom: 56px; }
.foot-in > div:first-child { flex: 2 1 360px; display: flex; flex-direction: column; gap: 10px; line-height: 1.8; }
.foot .logo { color: #fff; font-size: 20px; }
.foot nav { flex: 1 1 160px; display: flex; flex-direction: column; gap: 8px; }
.foot nav strong { color: #fff; font-size: 14px; }
.float-map { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 50; display: inline-flex; align-items: center; gap: 8px; height: 50px; padding: 0 22px; border-radius: 25px; background: var(--ink); color: #fff; font-size: 15px; font-weight: 700; box-shadow: 0 8px 24px rgba(25,31,40,.28); }

/* 반응형 */
@media (max-width: 1080px) {
  .p-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav a:nth-child(n+5) { display: none; }
}
@media (max-width: 860px) {
  .split, .p-two, .d-grid { grid-template-columns: minmax(0, 1fr); }
  .d-side { position: static; }
  .post-list { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  .wrap { padding-inline: 16px; }
  .nav, .search-box, .avatar, .float-map { display: none; }
  .top-in { min-height: 56px; }
  .tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); height: calc(64px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); align-items: stretch; background: #fff; border-top: 1px solid var(--line); }
  .tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 11px; font-weight: 500; color: var(--mu2); }
  .tabbar a[aria-current] { color: var(--g-dd); font-weight: 700; }
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  .p-grid { grid-template-columns: minmax(0, 1fr); }
  .hello h1 { font-size: 24px; }
  .cards { display: flex; overflow-x: auto; scrollbar-width: none; margin-inline: -16px; padding-inline: 16px; }
  .cards .jm-card { flex: none; width: 240px; }
  .hero { height: 250px; } .hero-text strong { font-size: 20px; } .hero-text { left: 18px; right: 18px; bottom: 18px; }
  .news { grid-template-columns: minmax(0, 1fr); }
  .sec { padding-top: 36px; }
  .sec-head h2 { font-size: 19px; }
  .d-head h1 { font-size: 24px; }
  .d-tabs { top: 56px; }
  .d-side { display: none; }
  .m-cta { position: fixed; left: 0; right: 0; bottom: calc(64px + env(safe-area-inset-bottom)); z-index: 45; display: flex; gap: 8px; padding: 10px 16px; background: #fff; border-top: 1px solid var(--line); }
  .m-cta .btn { flex: 1; height: 48px; }
  body.single-jm_notice { padding-bottom: calc(132px + env(safe-area-inset-bottom)); }
  .map-page { grid-template-columns: minmax(0, 1fr); grid-template-rows: 55vh minmax(0, 1fr); height: calc(100vh - 56px - 64px - env(safe-area-inset-bottom)); }
  .map-canvas { order: -1; }
  .map-side { border-right: 0; border-radius: 20px 20px 0 0; margin-top: -18px; position: relative; z-index: 6; box-shadow: 0 -6px 24px rgba(25,31,40,.12); }
  .cal .cell { min-height: 64px; padding: 4px; }
  .cal .ev { font-size: 0; height: 6px; padding: 0; }
  .article { padding: 22px 18px; margin: 12px 0 32px; border-radius: 0; }
  .f-row { flex-direction: column; align-items: stretch; }
  .f-row input, .f-row select { width: 100%; text-align: left; }
  .opt-group { justify-content: flex-start; }
  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }

/* 보조 */
[data-region-cards] > div { display: contents; }
[data-region-cards] > div[hidden] { display: none; }
.icon-btn[data-m-only] { display: none; }
.foot nav ul, .foot nav li { list-style: none; margin: 0; padding: 0; }
.foot nav li a, .foot nav a { color: var(--mu2); }
.foot nav a:hover { color: #fff; }
@media (max-width: 720px) { .icon-btn[data-m-only] { display: flex; } }
.pager { display: flex; justify-content: center; gap: 4px; margin: 24px 0; }
.pager .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 38px; height: 38px; padding: 0 10px; border-radius: 10px; background: #fff; font-size: 14px; font-weight: 600; color: var(--ink3); }
.pager .page-numbers.current { background: var(--ink); color: #fff; }
.jm-toast { position: fixed; left: 50%; bottom: 96px; z-index: 90; transform: translate(-50%, 12px); padding: 12px 18px; border-radius: 12px; background: rgba(25,31,40,.92); color: #fff; font-size: 14px; font-weight: 600; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
.jm-toast.on { opacity: 1; transform: translate(-50%, 0); }
.chip[aria-pressed], button.chip { cursor: pointer; font-family: inherit; }
@media (min-width: 721px) { .chips.wrap-d { flex-wrap: wrap; overflow: visible; } }
.dday-box .big { white-space: nowrap; }
@media (max-width: 720px) { .dday-box .big { font-size: 24px; } .stats strong { font-size: 14px; } }
@media (max-width: 720px) { .hide-m { display: none; } .tbl td, .tbl th { padding-inline: 8px; } }
.f-row .muted.small { white-space: nowrap; }
@media (max-width: 720px) { .result-bar { bottom: calc(64px + env(safe-area-inset-bottom)); border-radius: 18px; } }

/* 위치 지도 이미지 */
.jm-thumb img.map { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.jm-thumb .tb { z-index: 1; }
.map-box { position: relative; }
.map-box .map-static { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.map-load { position: absolute; right: 12px; bottom: 12px; z-index: 2; display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px; border: 0; border-radius: 19px; background: #fff; color: var(--ink); font-size: 13px; font-weight: 700; box-shadow: 0 2px 10px rgba(25,31,40,.18); }

/* 승인 전/채워지지 않은 광고는 빈 칸을 남기지 않음 */
.jm-ad { min-height: 0; }
.jm-ad:has(ins.adsbygoogle[data-ad-status="unfilled"]) { display: none; }
ins.adsbygoogle[data-ad-status="unfilled"] { display: none !important; }

/* 긴 공고 이름은 두 줄까지 */
.jm-row-name, .jm-card-name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* 캘린더 모바일: 날짜에 점, 누르면 그날 일정 */
.cal .dots, .cal-hint { display: none; }
.d-접수 { background: var(--g); } .d-마감 { background: var(--red); } .d-발표 { background: var(--blue); } .d-계약 { background: var(--mu2); }
@media (max-width: 720px) {
  .cal { gap: 2px; }
  .cal .cell { min-height: 56px; padding: 6px 2px; align-items: center; gap: 5px; border-radius: 10px; }
  .cal .cell .ev, .cal .cell > a.muted { display: none; }
  .cal .cell.has { cursor: pointer; }
  .cal .cell.sel { box-shadow: inset 0 0 0 2px var(--ink); }
  .cal .dots { display: flex; align-items: center; gap: 2px; }
  .cal .dots i { width: 5px; height: 5px; border-radius: 50%; }
  .cal .dots b { font-size: 10px; font-weight: 700; color: var(--mu); margin-left: 1px; }
  .cal-hint { display: block; margin: 0 4px 10px; }
  .js-cal .day-box { display: none; }
  .js-cal .day-box.on { display: block; }
}
button.chip { border: 0; }

/* 홈 맞춤 영역: 켜고 끄기, 작게 */
.hello-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.p-switch { flex: none; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px 0 8px; border: 1px solid var(--line); border-radius: 20px; background: #fff; color: var(--ink2); font-size: 14px; font-weight: 700; }
.p-switch[hidden] { display: none; }
.p-switch .track { position: relative; width: 36px; height: 22px; border-radius: 11px; background: #D1D6DB; transition: background .15s; }
.p-switch .knob { position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.2); transition: transform .15s; }
.p-switch[aria-pressed="true"] .track { background: var(--g); }
.p-switch[aria-pressed="true"] .knob { transform: translateX(14px); }
.p-grid.compact { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 14px; }
.dcard.compact { padding: 18px 20px; gap: 6px; border-radius: 18px; }
.dcard.compact h3 { font-size: 18px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dcard.compact p { font-size: 13px; }
.dcard.compact .btn { height: 38px; font-size: 14px; }
.dcard.compact::after { width: 140px; height: 140px; right: -30px; bottom: -50px; }
.sum-card { padding: 18px 20px; display: flex; flex-direction: column; gap: 12px; border-radius: 18px; }
.sum-card.wide { grid-column: 1 / -1; }
.sum-stats { display: flex; gap: 28px; }
.sum-stats div { display: flex; flex-direction: column; gap: 2px; }
.sum-stats strong { font-size: 26px; font-weight: 900; line-height: 1.1; letter-spacing: -0.03em; }
.sum-stats strong small { font-size: 15px; color: var(--mu); font-weight: 700; }
.sum-stats span { font-size: 12.5px; color: var(--mu); }
.kind-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.kc { display: inline-flex; align-items: center; gap: 4px; height: 28px; padding: 0 10px; border-radius: 14px; background: var(--g-s); color: var(--g-d); font-size: 12.5px; font-weight: 700; }
.kc.no { background: var(--line2); color: var(--mu); }
.personal { padding: 22px 0 32px; }
@media (max-width: 720px) {
  .hello-row { flex-direction: column; gap: 10px; }
  .p-grid.compact { grid-template-columns: minmax(0, 1fr); }
  .sum-stats { gap: 20px; }
}
.setup-cta[hidden] { display: none; }

/* 정보가 없을 때: 바로 이동 카드 */
.link-card { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 16px; background: var(--g-s); color: var(--ink); }
.link-card:hover { background: #D8F2E5; }
.link-card .lc-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.link-card strong { font-size: 15.5px; font-weight: 800; }
.link-card .lc-body span { font-size: 13px; color: var(--ink3); line-height: 1.5; }
.link-card .lc-btn { flex: none; display: inline-flex; align-items: center; gap: 4px; height: 40px; padding: 0 14px; border-radius: 11px; background: var(--g); color: #fff; font-size: 14px; font-weight: 700; }
@media (max-width: 720px) { .link-card { flex-wrap: wrap; } .link-card .lc-btn { width: 100%; justify-content: center; } }

/* 필요 자금 계산기 */
#jm-money .m-label { margin: 14px 0 8px; font-size: 13px; font-weight: 700; color: var(--ink3); }
#jm-money .m-label:first-child { margin-top: 0; }
.opt-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.opt-cards button { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 14px; background: #fff; text-align: left; font-size: 13px; color: var(--ink3); }
.opt-cards button strong { font-size: 14.5px; color: var(--ink); }
.opt-cards button[aria-pressed="true"] { border-color: var(--g); background: var(--g-s); }
.loan-info { display: flex; gap: 8px; align-items: flex-start; margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: #F7F8FA; font-size: 13px; color: var(--ink3); line-height: 1.55; }
.loan-info svg { margin-top: 3px; flex: none; color: var(--g); }
.loan-info em { font-style: normal; color: var(--red-d); }
.amount-row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-top: 16px; }
.amount-row b { font-size: 16px; }
input.amount { width: 100%; margin: 10px 0 4px; accent-color: var(--g); height: 28px; }
.amount-quick { display: flex; gap: 6px; }
.amount-quick button { height: 30px; padding: 0 12px; border: 0; border-radius: 15px; background: var(--line2); font-size: 12.5px; font-weight: 600; color: var(--ink3); }
.m-result { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line2); }
.m-compare { margin-top: 18px; }
.m-compare table { width: 100%; border-collapse: collapse; font-size: 14px; }
.m-compare th, .m-compare td { padding: 9px 8px; border-bottom: 1px solid var(--line2); text-align: right; font-weight: 500; }
.m-compare th:first-child { text-align: left; color: var(--mu); font-weight: 500; }
.m-compare thead th { font-size: 12.5px; color: var(--mu); font-weight: 700; }
.m-compare .on { background: #F3FBF7; }
.m-compare thead .on { color: var(--g-d); }
.m-compare .tot th, .m-compare .tot td { font-weight: 800; border-top: 2px solid var(--ink); border-bottom: 0; }
.zone-note { display: flex; gap: 6px; align-items: center; margin: 12px 0 0; font-size: 12.5px; color: var(--ink3); }
.zone-note svg { color: var(--blue); flex: none; }

/* 안내/면책 문구 */
.disclaimer { margin: 12px 0 0; font-size: 12px; line-height: 1.65; color: var(--mu2); }
.disclaimer a { color: var(--mu); text-decoration: underline; }
.disclaimer-box { background: transparent; padding: 4px 4px 0; }
.foot-legal { font-size: 12px; color: #6B7684; line-height: 1.7; }

.d-photo { position: relative; margin: 16px 0 0; border-radius: 18px; overflow: hidden; background: var(--line2); max-height: 360px; }
.d-photo img { display: block; width: 100%; height: 360px; object-fit: cover; }
.d-photo figcaption { position: absolute; right: 10px; bottom: 10px; padding: 3px 8px; border-radius: 6px; background: rgba(25,31,40,.6); color: #fff; font-size: 11px; }
@media (max-width: 720px) { .d-photo img { height: 220px; } }
.map-admin-why { margin-top: 14px; max-width: 520px; padding: 12px 14px; border-radius: 12px; background: #FFF6E5; color: #7A4A00; font-size: 12.5px; line-height: 1.7; text-align: left; }

/* 가격 표: 금액은 줄바꿈하지 않음, 모바일은 카드처럼 */
.tbl .num { white-space: nowrap; text-align: right; }
.tbl-terms .c-type .muted { display: block; margin-top: 2px; }
.tbl-terms .c-type .muted:empty { display: none; }
@media (max-width: 720px) {
  .tbl-terms thead { display: none; }
  .tbl-terms, .tbl-terms tbody { display: block; }
  .tbl-terms tr { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; padding: 14px 4px; border-bottom: 1px solid var(--line2); }
  .tbl-terms td { display: contents; border: 0; padding: 0; }
  .tbl-terms td.c-type { display: block; grid-column: 1 / -1; padding-bottom: 4px; font-size: 15.5px; }
  .tbl-terms td.c-units { display: none; }
  .tbl-terms td.num::before { content: attr(data-label); color: var(--mu); font-size: 13px; font-weight: 500; text-align: left; white-space: nowrap; }
  .tbl-terms td.num > * , .tbl-terms td.num { font-size: 15px; }
}

/* 관심 지역 시/군/구 */
.city-row { flex-direction: column; align-items: stretch; gap: 8px; }
.city-row .city-hint { margin: 0 0 4px; }
.city-group { margin-bottom: 10px; }
.city-group p { margin: 0 0 6px; font-size: 14px; font-weight: 700; color: var(--ink2); }
.city-hint { margin: 0 0 12px; font-size: 13px; color: var(--mu); line-height: 1.5; }
.city-group .opt-group button { height: 34px; padding: 0 11px; font-size: 13px; }
.city-row[hidden] { display: none; }
@media (max-width: 720px) {
  .tbl-terms td.num > * { justify-self: end; text-align: right; }
  .tbl-terms td.num.is-empty { display: none; }
  .tbl-terms td.num::before { align-self: center; }
}
@media (max-width: 360px) {
  .stats > div { padding: 12px 10px; }
  .stats strong { font-size: 15px; letter-spacing: -0.03em; }
}

/* 목록 중간 광고 */
.feed-ad { padding: 6px 6px 10px; border-top: 1px solid var(--line2); border-bottom: 1px solid var(--line2); margin: 4px 0; }
.feed-ad .jm-ad { margin: 0; }
.feed-ad:has(ins.adsbygoogle[data-ad-status="unfilled"]) { display: none; }
.day-box + .feed-ad, .feed-ad + .day-box { margin-top: 10px; }
#calendar .feed-ad, .sec > .feed-ad { border: 0; padding: 0; margin-bottom: 10px; }

/* 좁은 화면(320~360px)에서도 상태/분류 버튼이 화면 밖으로 나가지 않게 */
.seg { max-width: 100%; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.seg::-webkit-scrollbar { display: none; }
@media (max-width: 360px) {
  .seg a, .seg button { padding: 0 10px; }
}
.btn { white-space: nowrap; }
.m-cta .btn { min-width: 0; }
.result-bar .btn { flex: 0 0 auto; }
@media (max-width: 360px) {
  .m-cta { gap: 6px; }
  .m-cta .btn { padding: 0 10px; font-size: 14px; }
  .m-cta .btn:first-child { flex-basis: 46px !important; }
  .result-bar .btn { padding: 0 12px; font-size: 14px; }
  .result-bar [data-my-result] { font-size: 15px !important; }
}

/* 고정 크기 광고: 화면 폭에 따라 정해진 크기만 차지 (높이가 갑자기 늘지 않음) */
.jm-ad-fx { text-align: center; }
.jm-ad-fx .jm-ad-label { text-align: center; }
/* 광고 칸 크기는 애드센스 안내대로 페이지 안 <style>에 넣음 (플러그인 jm_ad_size_css) */

/* 상세 요약 바로 아래 광고: 섹션 간격 안에 붙게 */
.jm-ad.jm-ad-between { margin: -4px 0 12px; }

/* 상세 맨 위 광고 */
.jm-ad.jm-ad-head { margin: 4px 0 14px; }


/* 웹앱 설치 */
.install-card { display: grid; grid-template-columns: 52px 1fr; gap: 6px 14px; align-items: center; margin-top: 18px; padding: 18px; }
.install-card[hidden] { display: none; }
.install-card img { border-radius: 14px; grid-row: span 2; align-self: start; }
.install-card strong { font-size: 16px; }
.install-card p { margin: 4px 0 0; font-size: 13.5px; color: var(--mu); line-height: 1.55; }
.install-card .btn { grid-column: 1 / -1; margin-top: 10px; }
/* 아래에서 올라오는 설치 알림: 흰 유리 + 은은한 그라데이션 */
.ins-pop { position: fixed; left: 0; right: 0; bottom: 0; z-index: 150; padding: 0 10px calc(10px + env(safe-area-inset-bottom)); pointer-events: none; }
.ins-card {
  position: relative; max-width: 460px; margin: 0 auto; padding: 14px 16px 14px; border-radius: 26px; pointer-events: auto;
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(214, 245, 228, .75) 0%, rgba(214, 245, 228, 0) 55%),
    radial-gradient(120% 140% at 100% 100%, rgba(225, 236, 255, .7) 0%, rgba(225, 236, 255, 0) 55%),
    linear-gradient(180deg, rgba(255, 255, 255, .86), rgba(255, 255, 255, .72));
  -webkit-backdrop-filter: blur(22px) saturate(180%); backdrop-filter: blur(22px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, .85);
  box-shadow: 0 18px 50px -12px rgba(16, 40, 30, .28), 0 2px 8px rgba(16, 40, 30, .06), inset 0 1px 0 rgba(255, 255, 255, .9);
  transform: translateY(calc(100% + 40px)); opacity: 0;
  transition: transform .5s cubic-bezier(.2, .9, .25, 1.05), opacity .3s ease;
}
.ins-pop.on .ins-card { transform: translateY(0); opacity: 1; }
.ins-grab { display: block; width: 38px; height: 4px; margin: -4px auto 10px; border-radius: 4px; background: rgba(0, 0, 0, .14); }
.ins-head { display: flex; align-items: center; gap: 12px; }
.ins-icon { flex: 0 0 46px; height: 46px; border-radius: 12px; background: url(assets/brand/icon-192.png) center / cover; box-shadow: 0 4px 12px rgba(0, 168, 98, .25); }
.ins-txt { flex: 1; min-width: 0; line-height: 1.35; }
.ins-txt b { display: block; font-size: 16px; color: var(--ink); }
.ins-txt small { font-size: 13px; color: var(--ink3); }
.ins-x { flex: 0 0 32px; height: 32px; border: 0; border-radius: 50%; background: rgba(0, 0, 0, .05); color: var(--mu); font-size: 20px; line-height: 1; }
.ins-body { margin: 14px 0 2px; }
.ins-body[hidden] { display: none; }
.ins-steps { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.ins-steps li { display: flex; align-items: center; gap: 10px; font-size: 14.5px; color: var(--ink2); line-height: 1.4; }
.ins-steps li > span { flex: 0 0 24px; height: 24px; border-radius: 50%; background: var(--g-s); color: var(--g-dd); font-size: 13px; font-weight: 800; display: grid; place-items: center; }
.ins-steps em { font-style: normal; }
.ins-share { vertical-align: -3px; color: #007AFF; margin: 0 1px; }
.ins-note { margin: 0; font-size: 14px; line-height: 1.6; color: var(--ink2); }
.ins-acts { display: flex; gap: 8px; margin-top: 14px; }
.ins-acts button { flex: 1; height: 46px; border: 0; border-radius: 14px; font: inherit; font-size: 15px; font-weight: 700; }
.ins-later { background: rgba(0, 0, 0, .05); color: var(--ink3); }
.ins-go { background: var(--g); color: #fff; box-shadow: 0 6px 16px -6px rgba(0, 168, 98, .6); }
.ins-pop.open .ins-later { display: none; }
@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) { .ins-card { background: #fff; } }
@media (prefers-reduced-motion: reduce) { .ins-card { transition: none; } }
@media (min-width: 900px) { .ins-pop { left: auto; right: 24px; bottom: 24px; padding: 0; width: 400px; } }
/* 앱으로 열었을 때: 아이폰 노치/홈 바 영역 */
.is-app header.top { padding-top: env(safe-area-inset-top); }

/* 페이지 전환: 위 머리말과 아래 메뉴는 그대로 두고 내용만 부드럽게 바뀜
   (크롬/사파리 18.2+는 브라우저 기능, 그 밖에는 새 페이지 내용이 살짝 떠오르며 나타남) */
@view-transition { navigation: auto; }
header.top { view-transition-name: jm-head; }
.tabbar { view-transition-name: jm-tabbar; }
::view-transition-group(jm-head), ::view-transition-group(jm-tabbar) { animation-duration: 0s; }
::view-transition-old(root) { animation: jm-vt-out .5s ease both; }
::view-transition-new(root) { animation: jm-vt-in .5s cubic-bezier(.22, .61, .36, 1) both; }
@keyframes jm-vt-out { to { opacity: 0; } }
@keyframes jm-vt-in { from { opacity: 0; transform: translateY(5px); } }
html.no-vt #main { animation: jm-fade-in .5s cubic-bezier(.22, .61, .36, 1) both; }
@keyframes jm-fade-in { from { opacity: 0; transform: translateY(5px); } }
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  html.no-vt #main { animation: none; }
}

/* 홈 이번 주 청약 (브랜드 컬러 헤더) */
.wk1 { border-radius: 26px; overflow: hidden; background: #fff; box-shadow: 0 10px 30px -18px rgba(0, 122, 71, .45); display: flex; flex-direction: column; }
.wk1-top { background: var(--g); color: #fff; padding: 22px 18px 18px; }
.wk1-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding: 0 4px; }
.wk1-week { font-size: 13px; font-weight: 600; color: #C9F2DE; }
.wk1-head h2 { margin: 4px 0 0; font-size: 23px; font-weight: 800; letter-spacing: -.03em; line-height: 1.3; color: #fff; }
.wk1-head h2 em { font-style: normal; color: #FFE27A; }
.wk1-cal { flex: none; height: 34px; padding: 0 13px; border-radius: 999px; background: rgba(255, 255, 255, .18); display: inline-flex; align-items: center; font-size: 13px; font-weight: 600; color: #fff; text-decoration: none; }
.wk1-days { margin-top: 18px; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; text-align: center; }
.wk1-day { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 0 8px; border: 0; border-radius: 16px; background: transparent; color: #fff; font: inherit; cursor: pointer; text-decoration: none; transition: background-color .2s ease, color .2s ease; -webkit-tap-highlight-color: transparent; }
.wk1-day:active { background: rgba(255, 255, 255, .14); }
.wk1-dow { font-size: 12px; }
.wk1-num { font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums; }
.wk1-dots { display: flex; gap: 3px; height: 5px; }
.wk1-dots i { width: 5px; height: 5px; border-radius: 50%; }
.wk1-dots .s { background: #FFE27A; } .wk1-dots .e { background: #FF9AA4; } .wk1-dots .o { background: rgba(255, 255, 255, .85); }
.wk1-day.is-past { color: rgba(255, 255, 255, .55); }
.wk1-day.is-past .wk1-dots i { background: rgba(255, 255, 255, .55); }
.wk1-day.is-today .wk1-dow { font-weight: 700; }
/* 고른 날짜: 흰 칸 */
.wk1-day[aria-pressed="true"] { background: #fff; color: var(--g-d); box-shadow: 0 6px 14px -6px rgba(0, 0, 0, .35); }
.wk1-day[aria-pressed="true"] .wk1-num { font-weight: 800; }
.wk1-day[aria-pressed="true"] .wk1-dots .s { background: #E5A00D; } .wk1-day[aria-pressed="true"] .wk1-dots .e { background: var(--red); } .wk1-day[aria-pressed="true"] .wk1-dots .o { background: var(--blue); }
.wk1-day:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.wk1-body { padding: 18px 18px 6px; display: flex; flex-direction: column; gap: 6px; }
.wk1-when { margin: 0 4px 6px; font-size: 14px; font-weight: 700; color: var(--ink); }
.wk1-when span { color: var(--mu2); font-weight: 500; margin-left: 2px; }
.wk1-item { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 16px; color: var(--ink); text-decoration: none; }
.wk1-item.is-end { background: #FFF1F2; } .wk1-item.is-start { background: #EEF9F3; }
.wk1-badge { flex: 0 0 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; color: #fff; font-size: 13px; font-weight: 800; letter-spacing: -.02em; }
.is-end .wk1-badge { background: var(--red); } .is-start .wk1-badge { background: var(--g); }
.wk1-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.wk1-txt b { font-size: 15px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wk1-txt small { font-size: 12.5px; font-weight: 600; }
.is-end .wk1-txt small { color: var(--red-d); } .is-start .wk1-txt small { color: var(--g-dd); }
.wk1-empty { margin: 0 4px 8px; font-size: 14px; line-height: 1.6; color: var(--mu); }
.wk1-foot { margin: 8px 18px 16px; padding-top: 14px; border-top: 1px solid #F2F4F6; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); text-align: center; }
.wk1-foot a { display: flex; flex-direction: column; gap: 2px; color: var(--ink); text-decoration: none; }
.wk1-foot a + a { border-left: 1px solid #F2F4F6; }
.wk1-foot b { font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; }
.wk1-foot b.r { color: var(--red); } .wk1-foot b.g { color: var(--g); }
.wk1-foot b i { font-style: normal; color: #B0B8C1; font-weight: 500; font-size: 16px; margin: 0 3px; }
.wk1-foot span { font-size: 12px; color: var(--mu); }
@media (hover: hover) { .wk1-day:not([aria-pressed="true"]):hover { background: rgba(255, 255, 255, .12); } .wk1-item:hover { filter: brightness(.98); } }
@media (max-width: 374px) { .wk1-head h2 { font-size: 20px; } .wk1-num { font-size: 15px; } .wk1-dow { font-size: 11px; } .wk1-top { padding: 20px 12px 14px; } .wk1-days { gap: 2px; } }

/* 지도 페이지(휴대폰): 아래 공고 목록을 끌어 올리면 지도를 덮고, 내리면 지도가 다시 보임 */
.sheet-grab, .sheet-mapbtn { display: none; }
@media (max-width: 720px) {
  .map-page { position: relative; display: block; height: calc(100vh - 56px - 64px - env(safe-area-inset-bottom)); height: calc(100dvh - 56px - 64px - env(safe-area-inset-bottom)); overflow: hidden; }
  .map-canvas { position: absolute; inset: 0; }
  .map-side { position: absolute; left: 0; right: 0; bottom: 0; top: auto; margin: 0; height: var(--sheet-h, 50%); max-height: 100%; z-index: 8;
    border-radius: 22px 22px 0 0; box-shadow: 0 -8px 28px rgba(25, 31, 40, .16); transition: height .38s cubic-bezier(.2, .85, .25, 1), border-radius .3s ease; }
  .map-side.is-dragging { transition: none; }
  .map-side.is-full { border-radius: 0; box-shadow: none; }
  .map-side-head { position: relative; padding-top: 22px; touch-action: none; cursor: grab; user-select: none; -webkit-user-select: none; }
  .sheet-grab { display: block; position: absolute; left: 50%; top: 0; width: 72px; height: 22px; margin-left: -36px; padding: 0; border: 0; background: none; cursor: grab; }
  .sheet-grab span { display: block; width: 38px; height: 5px; margin: 9px auto 0; border-radius: 5px; background: #D1D6DB; }
  .map-list { overscroll-behavior: contain; }
  .map-side:not(.is-full) .map-list { overflow-y: hidden; }
  .sheet-mapbtn { position: absolute; left: 50%; bottom: 18px; z-index: 9; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 18px; border: 0; border-radius: 22px;
    background: var(--ink); color: #fff; font: inherit; font-size: 14px; font-weight: 700; box-shadow: 0 8px 20px -6px rgba(0, 0, 0, .45); }
  .sheet-mapbtn[hidden] { display: none; }
}

/* 합친 카드: 마감 가까운 공고 + 고른 날짜 일정 */
.p-two .wk1 { align-self: start; }
.wk1-near { margin-bottom: 4px; align-items: flex-start; padding: 14px; }
.wk1-near .wk1-badge { flex-basis: 56px; height: 56px; border-radius: 16px; font-size: 17px; }
.wk1-near .wk1-txt { gap: 3px; }
.wk1-near .wk1-txt small { font-size: 12px; }
.wk1-near .wk1-txt b { font-size: 16px; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.35; }
.wk1-meta { font-size: 12.5px; color: var(--ink3); line-height: 1.45; }
.wk1-when { margin: 10px 4px 2px; }
.wk1-evs { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.wk1-evs li + li { border-top: 1px solid #F2F4F6; }
.wk1-evs a { display: flex; align-items: flex-start; gap: 10px; padding: 11px 4px; color: var(--ink); text-decoration: none; }
.wk1-evs .tag-ev { flex: none; margin-top: 1px; }
.wk1-ev { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.wk1-ev b { font-size: 14.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wk1-ev small { font-size: 12.5px; color: var(--mu); }
.wk1-none { padding: 12px 4px 8px; font-size: 13.5px; color: var(--mu); }
.wk1-more { display: block; margin: 2px 4px 6px; padding: 10px 0; text-align: center; border-radius: 12px; background: #F7F8FA; font-size: 13.5px; font-weight: 600; color: var(--ink2); text-decoration: none; }
.p-grid > .setup-cta:only-child { grid-column: 1 / -1; }
@media (max-width: 860px) { .p-two .wk1 { order: -1; } }

/* v1.17 – mobile-first notice cards. Local rails only, no page-level horizontal scrolling. */
.jm-detail-box,.jm-source-info,#jm-money{min-width:0;max-width:100%;scroll-margin-top:120px}
.jm-card-rail{display:flex;align-items:stretch;gap:10px;max-width:100%;min-width:0;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x proximity;scroll-padding-inline:2px;-webkit-overflow-scrolling:touch;overscroll-behavior-x:contain;padding:3px 2px 8px;margin:0;list-style:none;scrollbar-width:thin;scrollbar-color:#d2e1d8 transparent}
.jm-card-rail> *{flex:0 0 142px;min-width:0;scroll-snap-align:start;margin:0;white-space:normal;overflow-wrap:anywhere}
.jm-pastel{--pc:#008b5d;--pb:#e3f6ec;background:var(--pb);color:var(--pc);border:1px solid transparent;border-radius:15px;padding:12px;display:flex;flex-direction:column;align-items:flex-start;gap:8px;text-align:left;line-height:1.35;font:inherit;box-sizing:border-box;min-width:0}
.jm-pastel .jm-tile{background:#fff!important;flex-shrink:0}
.jm-pastel>span:not(.jm-tile),.jm-pastel>small{font-size:13px;color:#53635c;line-height:1.4}
.jm-pastel strong{font-size:20px;font-weight:800;color:var(--pc);letter-spacing:-.03em;line-height:1.2;overflow-wrap:anywhere}
.jm-pastel small{font-size:12px;line-height:1.35;overflow-wrap:anywhere}
.jm-tone-green{--pc:#008b5d;--pb:#e3f6ec}.jm-tone-blue{--pc:#2866bf;--pb:#eaf2ff}.jm-tone-rose{--pc:#b84269;--pb:#fff0f4}.jm-tone-violet{--pc:#7752c4;--pb:#f2edff}.jm-tone-amber{--pc:#9a640d;--pb:#fff3db}.jm-tone-teal{--pc:#087c83;--pb:#e3f4f5}.jm-tone-slate{--pc:#596b80;--pb:#edf1f5}
button.jm-pastel{cursor:pointer;appearance:none;min-height:44px;border:1px solid transparent}button.jm-pastel[aria-pressed=true]{border-color:var(--pc);box-shadow:inset 0 0 0 1px var(--pc)}button.jm-pastel:focus-visible,.jm-card-rail:focus-visible{outline:2px solid #007a47;outline-offset:2px}
.jm-special-card{min-height:156px}.jm-special-card.is-no,.jm-loan-card.is-no{--pc:#657181;--pb:#eef1f4}.jm-special-card.is-no .jm-tile,.jm-loan-card.is-no .jm-tile{filter:grayscale(1)}.jm-special-card.is-unknown,.jm-loan-card.is-unknown{--pc:#946a2a;--pb:#fff6e7}.jm-special-card[data-fit="match"] small{color:#007a47;font-weight:700}
.jm-rail-hint{text-align:center;font-size:12px;color:var(--mu);margin:8px 0}.jm-selection-note{font-size:14px;line-height:1.6;padding:12px;border-radius:12px;background:#f1f5f3;color:#33483c;margin-top:6px}.jm-mini-heading{font-size:16px;margin:14px 0 8px}.jm-schedule .jm-pastel{flex-basis:138px}.jm-schedule strong{font-size:16px}.jm-unit-rail .jm-unit-card{flex-basis:116px;min-height:103px}.jm-unit-card strong{font-size:22px}.jm-floor-card{--pb:#f5f7f6;--pc:#32453b;flex-basis:148px!important;gap:5px;min-height:170px}.jm-floor-card[aria-pressed=true]{--pb:#e3f6ec;--pc:#008b5d}.jm-floor-card .jm-floor-svg{width:94px;height:84px;align-self:center}.jm-floor-card b{font-size:14px;line-height:1.4;overflow-wrap:anywhere}.jm-floor-selected{padding:16px;margin-top:8px}.jm-floor-selected strong{font-size:24px}.jm-floor-link{margin-top:12px;width:100%;justify-content:center}.jm-result-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin:10px 0}.jm-result-grid .jm-pastel strong{font-size:clamp(16px,4.4vw,23px)}.jm-result-grid .jm-pastel{min-width:0}.jm-result-grid .jm-tile{height:36px!important;width:36px!important}.jm-floor-range .jm-pastel{gap:5px}.jm-floor-range strong{font-size:17px!important}.jm-loan-card{flex-basis:148px;min-height:126px}.jm-loan-card strong{font-size:17px}.jm-payment-card{flex-basis:150px;min-height:116px}.jm-payment-card strong{font-size:17px}.jm-control{padding:12px;background:#f6f8f7;border-radius:13px;margin:12px 0}.jm-control label{font-size:14px;font-weight:700;display:block}.jm-control input[type=range]{width:100%;accent-color:#00a862;min-height:36px}.jm-control .amount-row{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}.jm-control output{font-size:17px;font-weight:800;color:#008b5d}.jm-option-list{display:grid;gap:6px;margin:8px 0}.jm-option-list label{display:flex;align-items:center;gap:8px;min-height:44px;padding:10px;border:1px solid #e5e9e6;border-radius:10px;font-size:13px}.jm-option-list input{accent-color:#00a862;flex-shrink:0;width:18px;height:18px}.jm-option-list b{margin-left:auto;text-align:right;white-space:normal}.jm-source-info p{line-height:1.65}.jm-fit-cash{font-size:12px;color:var(--mu)}
@media(max-width:480px){.jm-card-rail{gap:8px}.jm-card-rail>*{flex-basis:132px}.jm-unit-rail .jm-unit-card{flex-basis:112px}.jm-floor-card{flex-basis:139px!important}.jm-pastel{padding:11px}.jm-pastel strong{font-size:19px}.jm-result-grid .jm-pastel strong{font-size:clamp(15px,4.4vw,21px)}.jm-schedule .jm-pastel{flex-basis:130px}.jm-payment-card{flex-basis:140px}.jm-floor-range strong{font-size:15px!important}}
@media(prefers-reduced-motion:reduce){.jm-card-rail{scroll-behavior:auto}}

.jm-detail-box [hidden],#jm-money[hidden]{display:none!important}.jm-card-rail .jm-pastel svg{flex-shrink:0}.jm-card-rail button.jm-pastel{white-space:normal}.jm-pastel>strong,.jm-pastel>b{font-variant-numeric:tabular-nums}.jm-control output{display:block;margin-top:6px}.jm-floor-card .jm-floor-svg{max-width:100%}.jm-detail-box .jm-pastel small{color:#53635c}.jm-special-card.is-no small{color:#657181}
/* 1.17.1: mobile-first matched finance and special supply cards */
#jm-money{background:#f3f7f5;padding:16px;border-radius:22px}#jm-money h2{margin-bottom:4px}#jm-money .jm-money-sub{color:#68786e;margin:0 0 20px 50px;font-size:13px}#jm-money .jm-question{font-size:16px;color:#17251e;margin-bottom:13px}#jm-money .jm-unit-card{--pb:#fff;--pc:#334155;flex-basis:148px;min-height:145px;border-color:#dfe7e2;gap:9px}#jm-money .jm-unit-card[aria-pressed=true]{--pb:#e3f6ec;--pc:#009565;border-color:#00a66a}#jm-money .jm-unit-card b{font-size:14px;font-weight:500;color:#24352b}#jm-money .jm-unit-card>small{font-size:13px}#jm-money .jm-unit-card svg{color:#8da0b6}#jm-money .jm-unit-card[aria-pressed=true] svg{color:#009565}
.jm-finance-panel{background:#fff;border-radius:20px;padding:16px;margin:16px 0}.jm-selected-price{display:flex;flex-direction:column;gap:10px;padding:0 0 18px;border-bottom:1px solid #e5e9e6}.jm-selected-price span,.jm-selected-price small{color:#617168;font-size:14px}.jm-selected-price strong{font-size:27px;letter-spacing:-.04em;color:#17251e}.jm-finance-panel .jm-control{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:10px;padding:18px 0;margin:0;background:#fff;border-bottom:1px solid #e5e9e6;border-radius:0}.jm-finance-panel .jm-control:last-child{border:0;padding-bottom:0}.jm-finance-panel .jm-control label{display:flex;align-items:center;gap:9px;color:#17251e;font-size:15px}.jm-control-icon{display:inline-grid;place-items:center;width:36px;height:36px;flex:0 0 36px;background:#e3f6ec;color:#009565;border-radius:10px}.jm-control-icon.blue{background:#eaf2ff;color:#3478d9}.jm-control-icon.amber{background:#fff3db;color:#a96f16}.jm-control-icon svg{width:21px;height:21px}.jm-finance-panel .jm-control output{margin:0;white-space:nowrap;font-size:18px}.jm-finance-panel .jm-ratio output{color:#3478d9}.jm-finance-panel #jm-extra{accent-color:#c68c20}.jm-finance-panel [data-extra-out]{color:#a96f16}.jm-finance-panel input[type=range]{grid-column:1/-1;margin:0;min-height:44px;cursor:pointer}.jm-ratio-quick{grid-column:1/-1;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px}.jm-ratio-quick button,.jm-mode-row button{background:#f2f5f3;border:0;border-radius:10px;min-height:44px;color:#586a7a;font:inherit;font-size:14px;padding:8px 3px}.jm-ratio-quick button[aria-pressed=true],.jm-mode-row button[aria-pressed=true]{background:#e0f4e9;color:#008b5d;font-weight:700}.jm-ratio .note{grid-column:1/-1;margin:0}.jm-mode-row{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:10px 0}.jm-mode-row button{padding:8px 12px}.jm-prepared{background:#fff;border-radius:14px;padding:14px;margin:12px 0;color:#008b5d}.jm-prepared progress{display:block;width:100%;height:12px;accent-color:#00a66a;margin-top:10px}.jm-special-summary{background:#f1f6f3;border-radius:14px;padding:14px;margin:0 0 13px}.jm-special-summary b,.jm-special-summary small{display:block}.jm-special-summary b{font-size:16px;color:#263c30}.jm-special-summary small{color:#64756a;margin-top:4px;font-size:13px}.jm-special-icon{display:flex;align-items:center;justify-content:space-between;width:100%;gap:6px}.jm-special-check{display:none;align-items:center;justify-content:center;color:var(--pc);border:1.5px solid currentColor;border-radius:50%;width:20px;height:20px;flex-shrink:0}.jm-special-card[data-fit=match] .jm-special-check,#jm-money .jm-unit-card[aria-pressed=true] .jm-special-check{display:inline-flex}.jm-special-card{flex-basis:148px;min-height:174px;gap:10px}.jm-special-card strong{font-size:23px}.jm-special-card[data-fit=match] small{color:var(--pc)}.jm-special-card.is-no .jm-special-check{display:none}.jm-special-card.is-no{--pc:#657181;--pb:#eef1f4}.jm-special-card.is-no .jm-tile{filter:grayscale(1)}.jm-special-card.is-unknown{--pc:#886b36;--pb:#fff6e7}
@media(max-width:480px){#jm-money{padding:11px}.jm-finance-panel{padding:12px}#jm-money .jm-unit-card,.jm-special-card{flex-basis:133px;min-height:144px}.jm-finance-panel .jm-control label{font-size:13px;gap:6px}.jm-control-icon{width:30px;height:30px;flex-basis:30px}.jm-finance-panel .jm-control output{font-size:15px}.jm-selected-price strong{font-size:24px}.jm-ratio-quick button{font-size:13px}.jm-special-card strong{font-size:21px}}

/* 1.17.3: compact rules and distinct special supply icons */
.jm-rule-rail .jm-rule-card{flex:0 0 178px;padding:12px;min-height:172px;overflow-wrap:normal;word-break:keep-all}
.jm-rule-card summary{display:flex;flex-direction:column;gap:8px;cursor:pointer;list-style:none;width:100%;min-width:0}.jm-rule-card summary::-webkit-details-marker{display:none}.jm-rule-card summary>span:not(.jm-tile){font-size:13px;color:#53635c}.jm-rule-card summary strong{font-size:19px;line-height:1.3;word-break:keep-all;overflow-wrap:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.jm-rule-card summary small{display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden;word-break:keep-all;overflow-wrap:normal}.jm-rule-card summary .jm-rule-more{font-size:11px;color:var(--pc);text-decoration:underline}.jm-rule-card[open] summary strong,.jm-rule-card[open] summary small{display:block;overflow:visible;overflow-wrap:break-word}.jm-rule-full{font-size:12px;line-height:1.6;color:#334155;word-break:keep-all;overflow-wrap:break-word;border-top:1px solid #0001;padding-top:8px;margin-top:8px}.jm-rule-rail{align-items:flex-start}
#jm-special .jm-special-card{flex:0 0 148px;height:178px;min-height:178px;padding:12px;gap:10px;overflow:hidden;border-radius:16px;word-break:keep-all;overflow-wrap:normal}
#jm-special .jm-special-card.is-unknown.jm-tone-green{--pc:#008b5d;--pb:#e3f6ec}#jm-special .jm-special-card.is-unknown.jm-tone-blue{--pc:#2866bf;--pb:#eaf2ff}#jm-special .jm-special-card.is-unknown.jm-tone-rose{--pc:#b84269;--pb:#fff0f4}#jm-special .jm-special-card.is-unknown.jm-tone-violet{--pc:#7752c4;--pb:#f2edff}#jm-special .jm-special-card.is-unknown.jm-tone-amber{--pc:#9a640d;--pb:#fff3db}#jm-special .jm-special-card.is-unknown.jm-tone-teal{--pc:#087c83;--pb:#e3f4f5}#jm-special .jm-special-card.is-unknown.jm-tone-slate{--pc:#596b80;--pb:#edf1f5}
#jm-special .jm-special-card.is-no{--pc:#748092;--pb:#edf0f3}.jm-custom-icon{display:grid;place-items:center;width:44px;height:44px;background:#fff;border-radius:12px;color:var(--pc);flex:none}.jm-custom-icon svg{width:27px;height:27px;color:inherit}.jm-special-card strong em{font-style:normal;font-size:13px;font-weight:500}.jm-special-card>strong{margin-top:auto;white-space:nowrap}.jm-special-card>small[data-special-status]{color:var(--pc);font-size:11px;line-height:1.4;word-break:keep-all;overflow-wrap:normal}.jm-special-card>span:not(.jm-tile){font-size:15px;color:#334155}.jm-special-card.is-no>span:not(.jm-tile){color:#748092}
@media(max-width:480px){.jm-rule-rail .jm-rule-card{flex-basis:146px;min-height:164px;padding:11px}.jm-rule-card summary strong{font-size:16px}#jm-special .jm-special-card{flex-basis:132px;height:168px;min-height:168px;padding:11px;gap:8px}.jm-custom-icon{width:40px;height:40px}.jm-custom-icon svg{width:25px;height:25px}}

/* 1.17.5 — equal-size mobile rails; full rule text opens outside the rail. */
.jm-card-rail{align-items:stretch;gap:10px;scrollbar-width:none;-ms-overflow-style:none}
.jm-card-rail::-webkit-scrollbar{display:none}
.jm-card-rail>.jm-pastel{flex-shrink:0;box-sizing:border-box;word-break:keep-all;overflow-wrap:break-word}
.jm-card-rail>.jm-pastel>strong{word-break:keep-all;overflow-wrap:break-word}
.jm-rule-rail>.jm-rule-card{flex:0 0 148px;width:148px;height:180px;min-height:180px;max-height:180px;padding:12px;gap:8px;display:flex;align-items:flex-start;overflow:hidden;text-align:left}
.jm-rule-card>.jm-tile{width:42px!important;height:42px!important;flex:0 0 42px}
.jm-rule-card>.jm-rule-label{font-size:13px;line-height:18px;height:18px;flex:none;color:#53635c;white-space:nowrap}
.jm-rule-card>strong{font-size:17px;line-height:1.35;min-height:46px;max-height:46px;width:100%;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;word-break:keep-all;overflow-wrap:break-word;letter-spacing:-.025em}
.jm-rule-card>.jm-rule-more{margin-top:auto;font-size:12px;line-height:18px;color:var(--pc);text-decoration:underline;flex:none}
.jm-rule-dialog{box-sizing:border-box;width:min(420px,calc(100% - 32px));max-height:80vh;max-height:80dvh;overflow:auto;padding:20px;border:0;border-radius:20px;color:#263b32;background:#fff;box-shadow:0 12px 48px #0003}
.jm-rule-dialog::backdrop{background:#142b225c}.jm-rule-dialog-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.jm-rule-dialog-head h3{margin:0;font-size:19px}.jm-rule-dialog form{margin:0}.jm-rule-dialog-head button{width:44px;height:44px;border:0;border-radius:12px;background:#f1f5f3;color:#33483c;font-size:24px;cursor:pointer}.jm-rule-dialog p,.jm-rule-fallback{font-size:15px;line-height:1.7;white-space:pre-wrap;word-break:keep-all;overflow-wrap:break-word}.jm-rule-dialog .jm-rule-close{display:block;width:100%;min-height:44px;border:0;border-radius:12px;background:#008b5d;color:white;font:inherit;font-weight:700;cursor:pointer}.jm-rule-fallback{margin-top:12px;padding:12px;border-radius:12px;background:#f1f5f3}
#jm-special .jm-special-card{width:148px;height:180px;min-height:180px;max-height:180px;flex-basis:148px}
#jm-special .jm-special-card>small[data-special-status]{height:32px;min-height:32px;max-height:32px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
#jm-special .jm-special-card>strong{margin-top:auto}
.jm-card-rail>.jm-unit-card,.jm-card-rail>.jm-floor-card,.jm-card-rail>.jm-loan-card,.jm-card-rail>.jm-pastel:not(button){align-self:stretch}
.jm-card-rail>.jm-pastel:not(button)>small,.jm-card-rail>.jm-loan-card>small,.jm-card-rail>.jm-floor-card>small{margin-top:auto}
.jm-card-rail>.jm-floor-card{height:190px;min-height:190px;max-height:190px}
.jm-card-rail>.jm-loan-card{height:154px;min-height:154px;max-height:154px;overflow:hidden}
#jm-money .jm-unit-rail>.jm-unit-card{height:164px;min-height:164px;max-height:164px}
.jm-schedule>.jm-pastel{min-height:150px}
@media(max-width:480px){.jm-card-rail{gap:10px}.jm-rule-rail>.jm-rule-card,#jm-special .jm-special-card{flex-basis:132px;width:132px;padding:11px}.jm-rule-card>strong{font-size:16px}.jm-rule-card>.jm-rule-label{font-size:12px}#jm-money .jm-unit-rail>.jm-unit-card{height:158px;min-height:158px;max-height:158px}}

/* 1.17.5: consistent pastel colors and amount-safe cards */
#jm-money .jm-unit-card.jm-tone-green,.jm-floor-card.jm-tone-green{--pb:#e3f6ec;--pc:#008b5d}
#jm-money .jm-unit-card.jm-tone-blue,.jm-floor-card.jm-tone-blue{--pb:#eaf2ff;--pc:#2866bf}
#jm-money .jm-unit-card.jm-tone-violet,.jm-floor-card.jm-tone-violet{--pb:#f2edff;--pc:#7752c4}
#jm-money .jm-unit-card.jm-tone-rose,.jm-floor-card.jm-tone-rose{--pb:#fff0f4;--pc:#b84269}
#jm-money .jm-unit-card.jm-tone-amber,.jm-floor-card.jm-tone-amber{--pb:#fff3db;--pc:#9a640d}
#jm-money .jm-unit-card.jm-tone-teal,.jm-floor-card.jm-tone-teal{--pb:#e3f4f5;--pc:#087c83}
#jm-money .jm-unit-card[aria-pressed=true],.jm-floor-card[aria-pressed=true]{border-color:var(--pc);box-shadow:inset 0 0 0 1px var(--pc)}
#jm-money .jm-unit-card svg,#jm-money .jm-unit-card[aria-pressed=true] svg,#jm-money .jm-unit-card b,.jm-floor-card b{color:var(--pc)}
.jm-floor-card .jm-floor-svg{color:var(--pc);height:72px;flex:0 0 72px}
.jm-card-rail>.jm-floor-card{height:222px;min-height:222px;max-height:222px;flex-basis:158px!important;gap:5px;padding:12px;overflow:hidden}
.jm-floor-card b,.jm-floor-card .jm-floor-upper{font-size:13px;line-height:1.35;max-width:100%;overflow-wrap:anywhere;white-space:normal}
.jm-floor-card>small{font-size:11px}
.jm-floor-selected select{width:100%;max-width:100%;min-height:44px;border:1px solid #bfd9ca;background:#fff;color:#24352b;border-radius:9px;padding:8px;font:inherit;font-size:14px}
.jm-floor-selected label{font-size:13px;color:#53635c}
#jm-money .jm-payment-rail>.jm-pastel{flex-basis:152px;height:164px;min-height:164px;max-height:164px;padding:12px;gap:7px;overflow:hidden}
#jm-money .jm-payment-rail>.jm-pastel>strong{font-size:16px;line-height:1.35;letter-spacing:-.035em;white-space:normal;overflow-wrap:anywhere;word-break:keep-all;max-width:100%;min-width:0}
#jm-money .jm-payment-rail>.jm-pastel>small{margin-top:auto;font-size:11px;max-width:100%}
@media(max-width:480px){.jm-card-rail>.jm-floor-card{flex-basis:143px!important;height:222px;min-height:222px;max-height:222px;padding:10px}#jm-money .jm-payment-rail>.jm-pastel{flex-basis:132px;padding:10px}#jm-money .jm-payment-rail>.jm-pastel>strong{font-size:15px}#jm-money .jm-unit-card>b{max-width:100%;font-size:13px;overflow-wrap:anywhere;white-space:normal}}

/* 1.17.6 — multi-complex selector; fixed cards, responsive rail */
.jm-complex-rail{scroll-snap-type:x proximity;padding:3px 2px 7px}
.jm-complex-rail>.jm-complex-card{flex:0 0 174px;width:174px;height:188px;min-height:188px;max-height:188px;display:flex;flex-direction:column;align-items:flex-start;gap:7px;padding:12px;border:2px solid transparent;overflow:hidden;text-decoration:none;scroll-snap-align:start;background:var(--pb);color:var(--pc)}
.jm-complex-card[aria-current=true]{border-color:var(--pc);box-shadow:inset 0 0 0 1px var(--pc)}
.jm-complex-card:focus-visible{outline:2px solid var(--pc);outline-offset:2px}
.jm-complex-icon{display:flex;align-items:center;justify-content:space-between;width:100%;flex:0 0 42px}
.jm-complex-check{display:grid;place-items:center;border:1px solid currentColor;border-radius:100%;width:24px;height:24px}
.jm-complex-rail>.jm-complex-card>strong{font-size:16px;line-height:1.35;height:44px;min-height:44px;max-height:44px;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;word-break:keep-all;overflow-wrap:anywhere;color:#34465a}
.jm-complex-card>b{font-size:17px;line-height:1.3;max-width:100%;overflow-wrap:anywhere;color:var(--pc)}
.jm-complex-card>small{margin-top:auto;font-size:12px;color:#53635c}
.jm-complex-current{background:#eef4f0;border-radius:10px;padding:10px 12px;color:#40564b;font-size:13px;margin:8px 0 0;overflow-wrap:anywhere}
.jm-selected-complex-head{font-weight:700;color:var(--g-d);margin:6px 0}
#jm-complex-selector{scroll-margin-top:110px}
@media(max-width:480px){.jm-complex-rail>.jm-complex-card{width:140px;flex-basis:140px;padding:10px;height:182px;min-height:182px;max-height:182px}.jm-complex-card>b{font-size:16px}.jm-complex-rail>.jm-complex-card>strong{font-size:14px}}

/* Desktop mouse drag; touch scrolling and hidden scrollbars remain unchanged. */
@media (hover:hover) and (pointer:fine){
  .jm-card-rail{cursor:grab;scrollbar-width:none;-ms-overflow-style:none}
  .jm-card-rail::-webkit-scrollbar{display:none}
  .jm-card-rail.jm-mouse-dragging,.jm-card-rail.jm-mouse-dragging *{cursor:grabbing!important;user-select:none!important;-webkit-user-select:none!important}
  .jm-card-rail.jm-mouse-dragging{scroll-snap-type:none!important;scroll-behavior:auto!important}
  .jm-card-rail img{-webkit-user-drag:none}
}

/* Rental labels: separate unit and eligibility, stretch all cards to the tallest. */
#jm-money.jm-money-rent .jm-unit-rail>.jm-unit-card{height:auto;min-height:180px;max-height:none;flex-basis:148px;gap:6px;overflow:visible;justify-content:flex-start}
#jm-money.jm-money-rent .jm-unit-card>strong{font-size:23px;line-height:1.2;max-width:100%;overflow-wrap:anywhere}
#jm-money.jm-money-rent .jm-unit-card>.jm-unit-group{font-size:13px;line-height:1.45;font-weight:600;color:var(--pc);max-width:100%;overflow-wrap:anywhere;word-break:keep-all}
#jm-money.jm-money-rent .jm-unit-card>b{margin-top:auto;max-width:100%;overflow-wrap:anywhere;white-space:normal}
#jm-money.jm-money-rent .jm-unit-card>small{max-width:100%;margin-top:2px}
@media(max-width:480px){#jm-money.jm-money-rent .jm-unit-rail>.jm-unit-card{flex-basis:132px;min-height:170px;padding:10px}#jm-money.jm-money-rent .jm-unit-card>strong{font-size:21px}#jm-money.jm-money-rent .jm-unit-card>.jm-unit-group{font-size:12px}}

/* v1.18.0 — mobile home editor; normal server layout remains available. */
.jm-home-layout,.jm-home-ad,.jm-home-layout [data-home-part="personal"]{display:contents}
.jm-home-editbar[hidden],.jm-home-editbar [hidden]{display:none!important}
.wk1-period{display:inline}
.wk1-period::before{content:", "}
@media(max-width:720px){
 .wk1-near{display:grid;grid-template-columns:56px minmax(0,1fr);gap:10px;align-items:start;padding:12px}
 .wk1-near .wk1-badge{width:56px;height:56px;min-width:0;display:flex;align-items:center;justify-content:center;text-align:center;line-height:1.2;font-size:14px;white-space:normal;overflow-wrap:normal;word-break:keep-all;padding:5px;letter-spacing:-.03em}
 .wk1-near .wk1-txt{min-width:0}.wk1-near .wk1-txt small{font-size:11px}.wk1-near .wk1-txt b{font-size:16px}
 .wk1-period{display:block;margin-top:4px;white-space:normal;overflow-wrap:normal;word-break:keep-all;font-size:12px}.wk1-period::before{content:none}
 .jm-home-layout.is-custom{display:grid;grid-template-columns:minmax(0,1fr);gap:16px;padding:20px 16px 28px;max-width:100%;min-width:0}
 .jm-home-layout.is-custom>.personal,.jm-home-layout.is-custom>.wrap,.jm-home-layout.is-custom>.personal>.wrap,.jm-home-layout.is-custom .p-two,.jm-home-layout.is-custom .jm-home-split{display:contents}
 .jm-home-layout.is-custom [data-home-part],.jm-home-layout.is-custom .jm-home-ad{display:block;min-width:0;max-width:100%;order:var(--home-order,0);margin:0;align-self:start}
 .jm-home-layout.is-custom [data-home-part][hidden]{display:none!important}
 .jm-home-layout.is-custom [data-home-part].sec{padding-top:0}
 .jm-home-layout.is-custom [data-home-part="personal"] .p-grid{margin:0}
 .jm-home-layout.is-custom [data-home-fixed]{order:var(--home-order,0);min-width:0}
 .jm-home-layout.is-custom .jm-home-ad:empty{display:none}
 .jm-home-editbar{display:block;min-width:0}.jm-home-editbar button{border:1px solid #dce6e0;background:#fff;color:#007a47;border-radius:10px;padding:9px 12px;font-weight:700;font-size:13px;min-height:44px}
 .jm-home-editbar>[data-home-edit]{display:block;margin-left:auto}
 .jm-home-editbar [data-home-panel]{margin-top:10px;padding:14px;background:#fff;border-radius:18px}
 .jm-home-editbar h2{font-size:17px}.jm-home-editbar p{font-size:12px;color:var(--mu);margin:6px 0 12px}
 .jm-home-option{display:flex;align-items:center;gap:5px;padding:8px 0;border-bottom:1px solid var(--line);min-width:0}
 .jm-home-option label{display:flex;align-items:center;gap:6px;flex:1;min-width:0;font-size:13px;font-weight:600;overflow-wrap:anywhere}
 .jm-home-option input{accent-color:var(--g);width:18px;height:18px;flex:none}.jm-home-option button{min-width:38px;padding:6px}.jm-home-option button:disabled{opacity:.35}
 .jm-home-editactions{display:flex;gap:6px;flex-wrap:wrap;margin-top:12px}.jm-home-editactions button{flex:1}.jm-home-editactions [data-home-save]{background:var(--g);color:#fff;border-color:var(--g)}
}
@media(min-width:721px){.jm-home-editbar{display:none!important}.jm-home-layout [data-home-part][hidden]{display:revert!important}}
@media(prefers-reduced-motion:reduce){::view-transition-old(root),::view-transition-new(root){animation:none!important}}
@media(max-width:720px){
 .wk1-date-piece{display:inline-block;white-space:nowrap}
 .jm-home-layout.is-custom .wk1{display:flex}
 .jm-home-layout.is-custom [data-home-part="personal"]:not([hidden]){display:block}
}

/* Preserve exact horizontal offsets after calculator updates. */
#jm-money .jm-card-rail{scroll-snap-type:none;scroll-behavior:auto;overflow-anchor:none}
