/* 청약 모아보기 — 투알앤(IIRN) 브랜드 토큰(잉크·형광 노랑·설계 용지)을 씁니다. */
:root {
  --ink: #1A1F2B; --ink-2: #2B3242; --pencil: #586272; --rule: #D5DAE2; --sheet: #E9EDF1; --paper: #F8F9FB; --surface: #FFFFFF;
  --marker: #FFD23F; --corner: #F5B400; --ok: #12805C; --blue: #1D4ED8; --red: #B42318;
  --font: "Wanted Sans Variable", "Wanted Sans", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --wrap: 1080px; --gutter: clamp(16px, 4vw, 32px); --r: 12px;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 76px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font); font-size: 16.5px; line-height: 1.65; font-weight: 450; word-break: keep-all; overflow-wrap: anywhere; -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { display: block; }
a { color: inherit; text-underline-offset: .2em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 100; background: var(--marker); padding: 8px 12px; border-radius: 8px; }
:focus-visible { outline: 3px solid var(--corner); outline-offset: 2px; border-radius: 4px; }

.top { position: sticky; top: 0; z-index: 50; background: rgba(248, 249, 251, .9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--rule); }
.top .wrap { display: flex; align-items: center; gap: 16px; min-height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; font-size: 1.08rem; letter-spacing: -.02em; }
.brand b { font-weight: 800; }
.top nav { display: flex; gap: 2px; margin-left: auto; }
.top nav a { padding: 8px 11px; border-radius: 8px; text-decoration: none; font-weight: 600; font-size: .94rem; color: var(--ink-2); white-space: nowrap; }
.top nav a:hover { background: var(--sheet); }
.sample { margin: 0; padding: 8px var(--gutter); background: var(--marker); text-align: center; font-size: .9rem; font-weight: 700; }

main { padding-top: 36px; padding-bottom: 56px; }
main > section, .doc h2 { margin-top: 48px; }
h1 { font-size: clamp(1.8rem, 4.4vw, 2.7rem); line-height: 1.2; font-weight: 850; letter-spacing: -.035em; }
h2 { font-size: clamp(1.3rem, 2.6vw, 1.6rem); line-height: 1.3; font-weight: 800; letter-spacing: -.025em; padding-bottom: 12px; border-bottom: 2px solid var(--ink); margin-bottom: 18px; }
h2 small, h3 small { font-size: .82rem; font-weight: 600; color: var(--pencil); margin-left: 6px; letter-spacing: 0; }
mark { background: linear-gradient(transparent 56%, var(--marker) 56%, var(--marker) 92%, transparent 92%); color: inherit; }
.lede { margin-top: 14px; font-size: 1.06rem; color: var(--ink-2); max-width: 46em; }
.sub { margin: -8px 0 16px; color: var(--pencil); font-size: .95rem; }
.kicker { display: inline-block; font-size: .84rem; font-weight: 800; background: var(--marker); padding: 3px 10px; margin-bottom: 14px; }
.crumbs { font-size: .88rem; color: var(--pencil); margin-bottom: 10px; }
.crumbs a { text-decoration: none; font-weight: 600; }
.empty { padding: 22px; border: 1.5px dashed var(--rule); border-radius: var(--r); color: var(--pencil); text-align: center; }
.note { margin-top: 10px; font-size: .86rem; color: var(--pencil); }
.source { margin-top: 56px; padding-top: 16px; border-top: 1px solid var(--rule); font-size: .85rem; color: var(--pencil); }

/* 숫자 요약 */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0; margin-top: 26px; border-top: 2px solid var(--ink); border-bottom: 1px solid var(--rule); background: var(--surface); }
.stats li { padding: 16px 18px; border-left: 1px solid var(--rule); }
.stats li:first-child { border-left: 0; }
.stats b { display: block; font-size: clamp(1.5rem, 3.4vw, 2.1rem); font-weight: 850; letter-spacing: -.03em; line-height: 1.2; font-variant-numeric: tabular-nums; }
.stats span { font-size: .88rem; color: var(--pencil); font-weight: 600; }

/* 단지 카드 */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.card { display: flex; flex-direction: column; gap: 8px; background: var(--surface); border: 1.5px solid var(--rule); border-radius: var(--r); padding: 18px; transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease; }
.card:hover { border-color: var(--ink); box-shadow: 5px 5px 0 var(--ink); transform: translateY(-3px); }
.card-top, .title { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.title { margin-bottom: 10px; }
.where { font-weight: 800; font-size: .9rem; margin-right: 2px; }
.card h3 { font-size: 1.15rem; line-height: 1.35; font-weight: 800; letter-spacing: -.02em; }
.card h3 a { text-decoration: none; }
.card h3 a:hover { text-decoration: underline; }
.addr { font-size: .88rem; color: var(--pencil); }
.dates { display: grid; gap: 2px; margin-top: 4px; padding: 10px 12px; background: var(--paper); border-radius: 8px; font-size: .92rem; }
.dates div { display: flex; justify-content: space-between; gap: 12px; }
.dates dt { color: var(--pencil); }
.dates dd { font-weight: 700; font-variant-numeric: tabular-nums; }
.dates .today dd { background: var(--marker); padding: 0 6px; margin-right: -6px; border-radius: 4px; }
.meta { margin-top: auto; padding-top: 4px; font-size: .86rem; color: var(--ink-2); }
.meta i { color: var(--rule); font-style: normal; }
.badge { font-size: .76rem; font-weight: 800; padding: 3px 9px; border-radius: 999px; background: var(--sheet); color: var(--pencil); white-space: nowrap; }
.badge.open { background: var(--ink); color: var(--marker); }
.badge.upcoming { background: var(--marker); color: var(--ink); }
.badge.closed { background: rgba(29, 78, 216, .1); color: var(--blue); }
.chip { font-size: .75rem; font-weight: 600; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--rule); color: var(--pencil); white-space: nowrap; }
.day { margin: 26px 0 12px; font-size: 1.05rem; font-weight: 800; }
.day:first-of-type { margin-top: 4px; }

/* 표 */
.scroll { overflow-x: auto; border: 1px solid var(--rule); border-radius: var(--r); background: var(--surface); }
.data { width: 100%; border-collapse: collapse; font-size: .93rem; font-variant-numeric: tabular-nums; }
.data th, .data td { padding: 10px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--rule); }
.data thead th { background: var(--sheet); font-size: .82rem; font-weight: 700; color: var(--ink-2); white-space: nowrap; border-bottom: 1.5px solid var(--ink); }
.data tbody tr:last-child > * { border-bottom: 0; }
.data tbody tr:hover { background: #FFFBEA; }
.data .r { text-align: right; white-space: nowrap; }
.data .nowrap { white-space: nowrap; }
.data td small { display: block; color: var(--pencil); font-size: .82rem; }
.data td a { font-weight: 700; text-decoration: none; }
.data td a:hover { text-decoration: underline; }
.data.bands tbody th { font-weight: 800; white-space: nowrap; }

/* 지역 */
.regions { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.regions a { display: grid; gap: 2px; padding: 14px 16px; background: var(--surface); border: 1.5px solid var(--rule); border-radius: var(--r); text-decoration: none; transition: border-color .15s ease, box-shadow .15s ease; }
.regions a:hover { border-color: var(--ink); box-shadow: 4px 4px 0 var(--ink); }
.regions b { font-size: 1.15rem; font-weight: 800; }
.regions span { font-size: .84rem; color: var(--pencil); }
.regions em { font-style: normal; font-size: .78rem; font-weight: 800; color: var(--ink); background: var(--marker); justify-self: start; padding: 1px 7px; border-radius: 999px; margin-top: 4px; }
.pills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 20px; }
.pills a { padding: 4px 12px; border-radius: 999px; border: 1px solid var(--rule); background: var(--surface); font-size: .88rem; font-weight: 600; text-decoration: none; }
.pills a:hover { border-color: var(--ink); }
.pills a[aria-current] { background: var(--ink); border-color: var(--ink); color: #fff; }

/* 단지 상세 */
.timeline { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); border: 1px solid var(--rule); border-radius: var(--r); background: var(--surface); overflow: hidden; }
.timeline li { padding: 14px 16px; border-left: 1px solid var(--rule); border-top: 3px solid var(--rule); margin-left: -1px; }
.timeline li.past { color: var(--pencil); border-top-color: var(--ink); }
.timeline li.now { background: #FFFBEA; border-top-color: var(--corner); }
.timeline b { display: block; font-size: .84rem; }
.timeline span { font-weight: 800; font-size: 1rem; font-variant-numeric: tabular-nums; }
.info { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 0 32px; }
.info div { display: flex; gap: 14px; padding: 9px 0; border-bottom: 1px solid var(--rule); }
.info dt { flex: none; width: 5.5em; color: var(--pencil); font-size: .92rem; }
.btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.btn { display: inline-flex; align-items: center; min-height: 46px; padding: 0 18px; border-radius: 10px; border: 1.5px solid var(--ink); font-weight: 700; font-size: .96rem; text-decoration: none; }
.btn.ink { background: var(--ink); color: #fff; }
.btn.line:hover { background: var(--surface); }

/* 글 */
.doc { max-width: 760px; }
.doc h2 { border: 0; padding: 0; margin-bottom: 8px; font-size: 1.25rem; }
.doc p { margin: 10px 0; color: var(--ink-2); }
.doc p a { font-weight: 700; }
.terms div { padding: 12px 0; border-bottom: 1px solid var(--rule); }
.terms dt { font-weight: 800; }
.terms dd { color: var(--ink-2); font-size: .96rem; }

.foot { background: #12161F; color: rgba(255, 255, 255, .65); font-size: .88rem; padding: 26px 0 30px; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.foot a { color: rgba(255, 255, 255, .85); text-decoration: none; }
.foot a:hover { color: var(--marker); }

@media (max-width: 640px) {
  body { font-size: 16px; }
  .top .wrap { flex-wrap: wrap; padding-top: 8px; padding-bottom: 6px; gap: 2px 12px; }
  .top nav { margin-left: -8px; width: 100%; overflow-x: auto; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats li:nth-child(odd) { border-left: 0; }
  .stats li:nth-child(n+3) { border-top: 1px solid var(--rule); }
  .cards { grid-template-columns: 1fr; }
  .data th, .data td { padding: 8px 10px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
