/* 첫 화면(pages/home)과 참가 가능 공고 화면(home_matches) — iter-416.
 * 공고 화면 톤(책상 바탕·종이·한강 남색). 색은 whereabouts.css 의 --wh-* (layouts/bid 의 body.bid-page 에 걸린다).
 * 모든 화면에 함께 실리므로 이름은 hm- 로 시작한다. 고령 사용자 — 본문 16px 이상, 누를 곳 44px 이상 */
.hm { color: var(--wh-ink); font-size: 16px; line-height: 1.7; word-break: keep-all; overflow-wrap: break-word; }
.hm :is(h1, h2, h3, p, ul, fieldset) { margin: 0; }

/* 서두 — 로고 장면을 가로로 넓힌 띠 */
.hm-opener { position: relative; height: 340px; overflow: hidden; }
.hm-scene { position: absolute; left: 0; top: 0; width: 100%; height: 100%; display: block; }
.hm-scene--narrow { display: none; }
.hm-opener-in { position: relative; max-width: 1200px; margin: 0 auto; padding: 58px 40px 0; box-sizing: border-box; }
.hm-wordmark { display: block; height: 60px; width: auto; color: var(--color-paper); }
.hm .hm-tagline { margin-top: 18px; font-size: 24px; font-weight: 700; color: var(--color-paper); letter-spacing: -.4px; }
.hm-br-narrow { display: none; }
.hm .hm-pill { display: inline-block; margin-top: 18px; padding: 8px 16px; border-radius: 999px; background: var(--wh-route); color: var(--color-paper); font-size: 15px; font-weight: 700; }

/* 조회 칸과 결과 칸 — 서두 띠에 걸쳐 올라온다 */
.hm-wrap { max-width: 1200px; margin: 0 auto; padding: 0 40px 80px; box-sizing: border-box; }
.hm-hero { position: relative; z-index: 2; margin-top: -64px; display: grid; grid-template-columns: 440px minmax(0, 1fr); gap: 32px; align-items: start; }
.hm-paper { background: var(--wh-sheet); border: 1px solid var(--wh-rule); border-radius: 2px; }
.hm-form { padding: 28px; }
.hm .hm-h1 { font-size: 30px; line-height: 1.35; font-weight: 800; letter-spacing: -.8px; }
.hm .hm-lead { margin-top: 12px; font-size: 17px; color: var(--color-text-2); }
.hm-pick { margin-top: 22px; }
.hm-field { margin-top: 18px; border: 0; padding: 0; min-width: 0; }
.hm-flabel { display: block; margin-bottom: 10px; padding: 0; font-size: 15px; font-weight: 700; }
.hm-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.hm-chip { position: relative; cursor: pointer; }
.hm-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.hm-chip span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 15px; border: 1px solid var(--wh-rule); border-radius: 999px; background: var(--color-paper); font-size: 15px; }
.hm-chip input:checked + span { background: var(--wh-route); border-color: var(--wh-route); color: var(--color-paper); font-weight: 700; }
.hm-chip input:focus-visible + span { outline: 3px solid var(--wh-route); outline-offset: 2px; }
.hm-more { margin-top: 10px; }
.hm-more summary { cursor: pointer; min-height: 44px; display: inline-flex; align-items: center; font-size: 15px; font-weight: 600; color: var(--wh-route); }
.hm-more .hm-chips { margin-top: 6px; }
.hm select { box-sizing: border-box; width: 100%; height: 48px; border: 1px solid var(--wh-rule); border-radius: 4px; padding: 0 14px; font: inherit; font-size: 16px; background: var(--color-paper); color: var(--wh-ink); }
.hm-btn { display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; min-height: 48px; padding: 0 22px; border: 0; border-radius: 4px; background: var(--wh-route); color: var(--color-paper) !important; font: inherit; font-size: 16px; font-weight: 700; text-decoration: none; cursor: pointer; }
.hm-btn:hover { background: var(--wh-route-strong); }
.hm-btn--wide { width: 100%; margin-top: 20px; }
.hm .hm-note { margin-top: 12px; font-size: 14px; color: var(--wh-ink-2); }
.hm-note a { color: var(--wh-route); text-decoration: underline; text-underline-offset: 3px; }
.hm .hm-pad { margin: 0; padding: 12px 22px 18px; }

/* 결과 칸 */
.hm-frame { display: block; }
.hm-res { overflow: hidden; }
.hm-band { padding: 18px 22px; background: var(--wh-route-wash); border-bottom: 1px solid var(--color-navy-200); }
.hm-band p { font-size: 15px; font-weight: 700; color: var(--wh-route); }
.hm .hm-band h2 { margin-top: 4px; font-size: 26px; font-weight: 800; letter-spacing: -.5px; }
.hm-band span { display: block; margin-top: 4px; font-size: 15px; color: var(--color-text-2); }
.hm-bid { padding: 18px 22px; border-bottom: 1px solid var(--wh-rule-soft); }
.hm .hm-org { font: 400 14px/1.5 var(--wh-serif); color: var(--wh-ink-2); }
.hm .hm-bid-title { margin-top: 4px; font: 800 19px/1.45 var(--wh-serif); letter-spacing: -.3px; }
.hm-bid-title a { color: var(--wh-ink); text-decoration: none; }
.hm-bid-title a:hover { text-decoration: underline; text-underline-offset: 3px; }
.hm .hm-meta { margin-top: 8px; font-size: 15px; color: var(--color-text-2); }
.hm-meta b { color: var(--wh-ink); }
.hm-dday { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 3px; background: var(--wh-seal-wash); color: var(--color-danger); font-size: 13px; font-weight: 700; }
.hm .hm-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.hm-tag { padding: 3px 9px; border-radius: 3px; font-size: 13px; font-weight: 600; background: var(--wh-shut-wash); color: var(--color-text-2); }
.hm-locked { position: relative; min-height: 300px; }
.hm-locked-rows { filter: blur(4px); pointer-events: none; user-select: none; }
.hm-lockbox { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(440px, calc(100% - 24px)); box-sizing: border-box; padding: 22px; background: var(--color-paper); border: 1px solid var(--wh-rule); box-shadow: 0 12px 32px rgba(22, 24, 29, .12); text-align: center; }
.hm-lockbox p { font-size: 16px; font-weight: 700; }
.hm-lockbox small { display: block; margin-top: 10px; font-size: 14px; line-height: 1.6; color: var(--wh-ink-2); }
.hm-empty { padding: 20px 22px; }
.hm-empty .hm-btn { margin-top: 14px; }
.hm .hm-more-link { padding: 14px 22px; }
.hm-more-link a { color: var(--wh-route); font-weight: 700; }
.hm-stick { display: none; }

/* 아래 칸 */
.hm-sec { padding-top: 64px; }
.hm .hm-h2 { font-size: 28px; line-height: 1.35; font-weight: 800; letter-spacing: -.6px; }
.hm .hm-sub { margin-top: 8px; font-size: 16px; color: var(--wh-ink-2); }
.hm .hm-tiles { list-style: none; padding: 0; margin: 24px 0 20px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.hm-tile { padding: 14px 16px; background: var(--wh-sheet); border: 1px solid var(--wh-rule); border-radius: 2px; }
.hm-tile b { display: block; font-size: 16px; }
.hm-tile span { display: block; margin-top: 3px; font-size: 14px; line-height: 1.5; color: var(--color-text-2); }
.hm-tile em { display: inline-block; margin-top: 8px; font-style: normal; font-size: 13px; font-weight: 700; color: var(--color-success); }
.hm-tile em.hm-member { color: var(--wh-route); }
.hm-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 24px; }
.hm-stat { padding: 20px; }
.hm-stat p { font-size: 15px; color: var(--wh-ink-2); }
.hm-stat strong { display: block; margin-top: 6px; font-size: 32px; font-weight: 800; letter-spacing: -.5px; }
.hm-alert { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin-top: 16px; padding: 20px; }
.hm-alert p { font-size: 16px; font-weight: 700; }
.hm-plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 24px; }
.hm-plan { padding: 24px; }
.hm-plan h3 { font-size: 20px; }
.hm .hm-price { margin-top: 8px; font-size: 30px; font-weight: 800; }
.hm-price span { margin-left: 6px; font-size: 15px; font-weight: 500; color: var(--wh-ink-2); }
.hm .hm-plan ul { margin-top: 16px; padding-left: 20px; font-size: 16px; line-height: 1.9; list-style: disc; }
.hm-plan--pro { border: 2px solid var(--wh-route); }
.hm-again { padding: 28px; }
.hm-again-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 240px; gap: 16px; align-items: end; margin-top: 16px; }
.hm-again-form .hm-field { margin-top: 0; }

/* 참가 가능 공고 화면 */
.hm-page .hm-wrap { padding-top: 32px; }
.hm-back a { font-size: 15px; color: var(--wh-route); }
.hm-page .hm-h1 { margin-top: 8px; }
.hm-page-res { margin-top: 24px; }
.hm-page .hm-alert { margin-top: 24px; }

@media (max-width: 900px) {
  .hm-hero { grid-template-columns: minmax(0, 1fr); }
  .hm .hm-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hm-again-form { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .hm-opener { height: 300px; }
  .hm-scene--wide { display: none; }
  .hm-scene--narrow { display: block; }
  .hm-opener-in { padding: 36px 16px 0; }
  .hm-wordmark { height: 40px; }
  .hm .hm-tagline { font-size: 19px; }
  .hm-br-narrow { display: inline; }
  .hm .hm-pill { font-size: 14px; padding: 7px 14px; }
  .hm-wrap { padding: 0 16px 120px; }
  .hm-hero { margin-top: -48px; gap: 16px; }
  .hm-form { padding: 18px; }
  .hm .hm-h1 { font-size: 24px; }
  .hm .hm-lead { font-size: 16px; }
  .hm .hm-band h2 { font-size: 22px; }
  .hm-bid, .hm-band { padding-left: 16px; padding-right: 16px; }
  .hm .hm-bid-title { font-size: 18px; }
  .hm-sec { padding-top: 44px; }
  .hm .hm-h2 { font-size: 22px; }
  .hm-stats, .hm-plans { grid-template-columns: minmax(0, 1fr); }
  .hm-stick { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 12px 16px; background: var(--color-paper); border-top: 1px solid var(--wh-rule); box-shadow: 0 -6px 18px rgba(22, 24, 29, .08); }
  .hm-stick .hm-btn--wide { margin-top: 0; }
}
