/* ==========================================================================
   자미 프로토타입 공통 스타일. 토큰은 tokens.css(--jm-*) 만 사용한다.
   원칙: 모서리 4px(원형 컨트롤 제외), 그림자·그라디언트·애니메이션 없음, 구분은 1px 선.
   ========================================================================== */
@font-face { font-family: "Pretendard"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/Pretendard-Regular.subset.woff2") format("woff2"); }
@font-face { font-family: "Pretendard"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/Pretendard-Bold.subset.woff2") format("woff2"); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--jm-canvas); color: var(--jm-fg);
  font-family: var(--jm-font); font-size: var(--jm-body-size); line-height: var(--jm-body-lh); font-weight: var(--jm-body-weight);
  word-break: keep-all; overflow-wrap: break-word;
}
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, fieldset { margin: 0; padding: 0; }
ul, ol { list-style: none; }
fieldset { border: 0; min-width: 0; }
legend { padding: 0; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
img, svg { max-width: 100%; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.jm-muted { color: var(--jm-muted); }
.jm-caption { font-size: var(--jm-caption-size); line-height: var(--jm-caption-lh); letter-spacing: var(--jm-caption-ls); color: var(--jm-muted); }
.jm-container { width: 100%; max-width: var(--jm-container); margin: 0 auto; padding: 0 var(--jm-gutter); }
.jm-narrow { max-width: 720px; margin-left: auto; margin-right: auto; }
.jm-skip { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--jm-dark); color: var(--jm-on-dark); padding: 8px 16px; border-radius: var(--jm-radius); }
.jm-skip:focus { top: 8px; }

/* ---------- 버튼 ---------- */
.jm-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: var(--jm-btn-height); padding: 0 20px; border-radius: var(--jm-radius);
  font-size: var(--jm-btn-size); font-weight: var(--jm-btn-weight); line-height: 1; text-decoration: none; white-space: nowrap;
  border: 0; background: none;
}
.jm-btn--primary { background: var(--jm-accent); color: #000; border: var(--jm-btn-border); }
.jm-btn--dark { background: var(--jm-dark); color: var(--jm-on-dark); }
.jm-btn--dark:hover, .jm-btn--dark:active { background: var(--jm-dark-hover); }
.jm-btn--ghost { background: var(--jm-surface); color: #000; }
.jm-btn--ghost:active { background: var(--jm-surface-press); }
.jm-btn--block { width: 100%; }
.jm-btn--sm { height: 40px; padding: 0 16px; }  /* 확장: 요약 바용 축소(40px) */
.jm-textlink { font-weight: 700; color: var(--jm-fg); text-decoration: underline; text-underline-offset: 3px; }
.jm-textlink:hover { color: var(--jm-link-hover); }

/* ---------- 칩 ---------- */
.jm-chiprow { display: flex; flex-wrap: wrap; gap: 8px; }
.jm-chip {
  display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border: 0; border-radius: var(--jm-radius);
  background: var(--jm-surface); color: #000; font-size: 14px; font-weight: 700; text-decoration: none; line-height: 1;
}
.jm-chip:active { background: var(--jm-surface-press); }
.jm-chip.is-on { background: var(--jm-dark); color: var(--jm-on-dark); }
.jm-chip--static { cursor: default; }
.jm-chip--static:active { background: var(--jm-surface); }
.jm-chip-mini { display: inline-flex; align-items: center; height: 18px; padding: 0 6px; border-radius: var(--jm-radius); background: var(--jm-surface); font-size: 12px; font-weight: 700; color: #000; line-height: 1; }

/* ---------- 내비게이션 ---------- */
.jm-nav { position: relative; background: var(--jm-canvas); border-bottom: var(--jm-line); }
.jm-nav-inner { height: 64px; display: flex; align-items: center; gap: 24px; }
.jm-logo { display: inline-flex; align-items: center; gap: 6px; font-size: 22px; font-weight: 700; color: var(--jm-dark); text-decoration: none; letter-spacing: -0.5px; }
.jm-logo-dot { width: 8px; height: 8px; background: var(--jm-accent); border-radius: 4px; display: inline-block; }
.jm-menu { display: flex; align-items: center; gap: 4px; flex: 1; }
.jm-menu a { display: inline-block; padding: 4px 16px 6px; border-radius: var(--jm-radius); font-size: var(--jm-nav-size); line-height: var(--jm-nav-lh); font-weight: 400; text-decoration: none; color: var(--jm-fg); }
.jm-menu a:hover, .jm-menu a:active, .jm-menu a[aria-current="page"] { background: var(--jm-nav-hover); }
.jm-menu .jm-nav-cta { margin-left: auto; height: 40px; padding: 0 20px; display: inline-flex; align-items: center; background: var(--jm-accent); border: var(--jm-btn-border); color: #000; font-size: 15px; font-weight: 700; line-height: 1; }
.jm-menu .jm-nav-cta:hover { background: var(--jm-accent); }
.jm-burger { display: none; margin-left: auto; width: 44px; height: 44px; border: 0; background: none; border-radius: var(--jm-radius); position: relative; }
.jm-burger span { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--jm-dark); }
.jm-burger span:nth-child(1) { top: 15px; } .jm-burger span:nth-child(2) { top: 21px; } .jm-burger span:nth-child(3) { top: 27px; }
.jm-burger:active { background: var(--jm-nav-hover); }

/* ---------- 폼 ---------- */
.jm-card { border: var(--jm-line); border-radius: var(--jm-radius); background: var(--jm-canvas); padding: var(--jm-space-5); }
.jm-form-title { font-size: var(--jm-card-title-size); line-height: var(--jm-card-title-lh); font-weight: 700; color: #000; margin-bottom: var(--jm-space-4); }
.jm-field { margin-bottom: 20px; }
.jm-field > label, .jm-fieldset > legend { display: block; font-size: var(--jm-label-size); font-weight: var(--jm-label-weight); color: #000; margin-bottom: 8px; line-height: 21px; }
.jm-input, .jm-select {
  display: block; width: 100%; height: var(--jm-input-height); padding: 0 16px; border: 0; border-radius: var(--jm-radius);
  background: var(--jm-surface); color: var(--jm-fg); font-size: var(--jm-input-size);
}
.jm-input::placeholder { color: var(--jm-muted); opacity: 1; }
.jm-select {
  appearance: none; -webkit-appearance: none; padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23111' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
.is-invalid { outline: 2px solid var(--jm-error-border); outline-offset: -2px; }
.is-invalid:focus-visible { outline: var(--jm-focus-ring); outline-offset: var(--jm-focus-offset); }
.jm-daterow { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 8px; }
.jm-datecell { min-width: 0; position: relative; }
.jm-help { margin-top: 6px; font-size: var(--jm-caption-size); line-height: var(--jm-caption-lh); letter-spacing: var(--jm-caption-ls); color: var(--jm-muted); }
.jm-help a { color: var(--jm-fg); font-weight: 700; }
.jm-error { margin-top: 6px; font-size: 13px; line-height: 19px; font-weight: 700; color: var(--jm-error); }
.jm-error-mark { display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; border: 1.5px solid currentColor; border-radius: var(--jm-radius); font-size: 11px; line-height: 1; font-weight: 700; vertical-align: 1px; }
.jm-segment { display: flex; gap: 4px; }
.jm-seg { position: relative; flex: 1; margin: 0 !important; font-weight: 400 !important; }
.jm-seg input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; margin: 0; cursor: pointer; }
.jm-seg span { display: flex; align-items: center; justify-content: center; height: 48px; padding: 0 8px; border-radius: var(--jm-radius); background: var(--jm-surface); color: var(--jm-fg); font-size: 15px; font-weight: 700; text-align: center; }
.jm-seg input:checked + span { background: var(--jm-dark); color: var(--jm-on-dark); }
.jm-seg input:focus-visible + span { outline: var(--jm-focus-ring); outline-offset: var(--jm-focus-offset); }
.jm-fieldset.is-invalid { outline: none; }
.jm-fieldset.is-invalid .jm-seg span { outline: 2px solid var(--jm-error-border); outline-offset: -2px; }
.jm-zi .jm-segment { flex-direction: column; }
.jm-check { display: flex !important; align-items: center; gap: 10px; min-height: 44px; font-weight: 400 !important; font-size: 15px !important; color: var(--jm-fg) !important; margin: 0 !important; }
.jm-check input { width: 24px; height: 24px; margin: 0; accent-color: var(--jm-dark); }
.jm-form-note { margin-top: 12px; text-align: center; }
.jm-notice { border: var(--jm-line); border-radius: var(--jm-radius); padding: 20px; margin-bottom: 20px; }
.jm-notice p + p { margin-top: 4px; }
.jm-notice .jm-btn, .jm-notice .jm-textlink { margin-top: 12px; }
.jm-notice-title { font-weight: 700; color: #000; }
.jm-notice--error { border-left: 4px solid var(--jm-error); }
.jm-notice--error .jm-notice-title { color: var(--jm-error); }
.jm-notice[hidden], .jm-error[hidden], .jm-field[hidden], .jm-reform[hidden], [hidden] { display: none !important; }

/* ---------- 섹션 공통 ---------- */
.jm-section { padding: var(--jm-section-y) 0; }
.jm-h2 { font-size: var(--jm-heading-size); line-height: var(--jm-heading-lh); font-weight: 700; color: #000; letter-spacing: var(--jm-heading-ls); }
.jm-lead-sub { margin-top: 8px; font-size: 16px; line-height: 26px; color: var(--jm-fg); }
.jm-label { display: inline-flex; align-items: center; gap: 8px; font-size: var(--jm-caption-size); line-height: var(--jm-caption-lh); font-weight: 700; color: var(--jm-fg); margin-bottom: 16px; }
.jm-label::before { content: ""; width: 8px; height: 8px; background: var(--jm-accent); border-radius: 4px; display: inline-block; }

/* 히어로 */
.jm-hero { padding: var(--jm-space-7) 0; }
.jm-hero-grid { display: grid; grid-template-columns: 7fr 5fr; gap: var(--jm-space-6); align-items: start; } /* 상단 정렬(게이트 2). TODO: 히어로 좌측 하단 일러스트 자리(미정) */
.jm-hero-title { font-size: var(--jm-display-size); line-height: var(--jm-display-lh); font-weight: var(--jm-display-weight); letter-spacing: var(--jm-display-ls); color: #000; }
.jm-hero-sub { margin-top: 20px; font-size: 16px; line-height: 26px; max-width: 520px; }
.jm-hero-trust { margin-top: 16px; font-size: var(--jm-body-size); color: var(--jm-muted); }
.jm-hero .jm-card { padding: 24px; }

/* 3단계 소개 */
.jm-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
.jm-step { display: flex; flex-direction: column; gap: 12px; }
.jm-step-no { width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--jm-radius); background: var(--jm-accent); color: #000; font-weight: 700; }
.jm-step h3 { font-size: var(--jm-card-title-size); line-height: var(--jm-card-title-lh); font-weight: 700; color: #000; }
.jm-step p { flex: 1; }
.jm-center-text { text-align: center; }

/* 다크 */
.jm-dark { background: var(--jm-dark); color: var(--jm-on-dark); }
.jm-dark .jm-h2 { color: var(--jm-on-dark); }
.jm-dark :focus-visible { outline-color: var(--jm-focus-color-on-dark); }
.jm-dark-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--jm-space-6); align-items: start; }
.jm-dark-items { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.jm-dark-item { border: 1px solid rgba(255, 255, 255, 0.2); border-radius: var(--jm-radius); padding: 20px; }
.jm-dark-item h3 { font-size: 18px; line-height: 28px; font-weight: 700; color: var(--jm-on-dark); margin-bottom: 4px; }
.jm-dark .jm-caption { color: var(--jm-on-dark); margin-top: 20px; }
.jm-dark .jm-btn { margin-top: 32px; }

/* 별 사전 미리보기 */
.jm-stars-head { margin-bottom: 24px; }
.jm-stars-cta { margin-top: 24px; }

/* 면책 */
.jm-disclaimer { background: var(--jm-surface); border-radius: var(--jm-radius); padding: 16px 20px; font-size: var(--jm-caption-size); line-height: var(--jm-caption-lh); letter-spacing: var(--jm-caption-ls); color: var(--jm-muted); }
.jm-disclaimer-wrap { padding-bottom: var(--jm-space-6); }
.jm-disclaimer-inline { margin-top: 20px; padding-top: 12px; border-top: var(--jm-line); font-size: var(--jm-caption-size); line-height: var(--jm-caption-lh); color: var(--jm-muted); }

/* 푸터 */
.jm-footer { border-top: var(--jm-line); padding: 40px 0; }
.jm-footer-top { display: flex; justify-content: space-between; gap: 24px; align-items: flex-start; flex-wrap: wrap; }
.jm-footer-links { display: flex; flex-wrap: wrap; gap: 8px; }
.jm-pill { display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border-radius: var(--jm-radius); background: var(--jm-surface); font-size: 12px; text-decoration: none; color: var(--jm-fg); }
.jm-footer-note { margin-top: 24px; display: grid; gap: 4px; }

/* ---------- 명반 결과 ---------- */
.jm-chart-main { padding: 24px 0 var(--jm-space-6); }
.jm-summary { display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; align-items: center; padding: 16px 0 20px; border-bottom: var(--jm-line); margin-bottom: 20px; }
.jm-summary-title { font-size: 16px; line-height: 24px; font-weight: 700; color: #000; }
.jm-summary-line { font-size: var(--jm-body-size); }
.jm-summary-actions { display: flex; gap: 8px; grid-row: 1 / span 2; grid-column: 2; }
.jm-summary-note { grid-column: 1 / -1; }
.jm-reform { margin-bottom: 20px; max-width: 520px; }

.jm-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: repeat(4, minmax(120px, auto));
  gap: 1px; background: var(--jm-border); border: var(--jm-line); border-radius: var(--jm-radius); overflow: hidden;
}
.jm-cell {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; text-align: left;
  padding: 8px 12px; border: 0; border-radius: 0; background: var(--jm-canvas); color: var(--jm-fg);
  font-size: var(--jm-cell-sub-size); line-height: var(--jm-cell-lh); overflow: hidden; overflow-wrap: anywhere; word-break: keep-all;
}
.jm-cell:hover { background: var(--jm-nav-hover); }
.jm-cell:active { background: var(--jm-surface-press); }
.jm-cell.is-rel { background: var(--jm-surface); }
.jm-cell.is-rel:hover { background: #e4e4e4; }
.jm-cell.is-sel::after { content: ""; position: absolute; inset: 0; border: 2px solid var(--jm-dark); pointer-events: none; }
.jm-cell.is-soul::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--jm-accent); z-index: 1; }
.jm-cell:focus-visible { outline-offset: -6px; }
.jm-cell-head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; width: 100%; padding-top: 2px; }
.jm-cell-name { font-size: var(--jm-cell-name-size); font-weight: 700; color: #000; }
.jm-cell-branch { margin-left: auto; font-size: var(--jm-cell-sub-size); color: var(--jm-muted); }
.jm-cell-tag { font-size: 12px; font-weight: 700; color: var(--jm-fg); }
.jm-cell-majors, .jm-cell-huaminors { display: flex; flex-wrap: wrap; gap: 2px 8px; font-size: var(--jm-cell-name-size); font-weight: 700; color: var(--jm-dark); }
.jm-cell-huaminors { font-weight: 400; font-size: var(--jm-cell-sub-size); color: var(--jm-fg); }
.jm-star { display: inline-flex; align-items: center; gap: 3px; }
.jm-cell-empty { font-weight: 400; font-size: var(--jm-cell-sub-size); color: var(--jm-muted); }
.jm-cell-minors { font-size: var(--jm-cell-sub-size); color: var(--jm-fg); }
.jm-cell-more { font-size: var(--jm-cell-sub-size); color: var(--jm-muted); }
.jm-cell-age { margin-top: auto; font-size: var(--jm-cell-sub-size); color: var(--jm-muted); }
.jm-hua { display: inline-flex; align-items: center; height: 18px; padding: 0 4px; border: 1px solid currentColor; border-radius: var(--jm-radius); background: var(--jm-canvas); font-size: 12px; font-weight: 700; line-height: 1; }
.jm-hua--lu { color: var(--jm-hua-lu); } .jm-hua--quan { color: var(--jm-hua-quan); } .jm-hua--ke { color: var(--jm-hua-ke); } .jm-hua--ji { color: var(--jm-hua-ji); }
.jm-center { grid-row: 2 / 4; grid-column: 2 / 4; background: var(--jm-canvas); padding: 20px; display: flex; flex-direction: column; justify-content: center; gap: 6px; min-width: 0; }
.jm-center-title { font-size: var(--jm-title-size); line-height: var(--jm-title-lh); font-weight: var(--jm-title-weight); color: #000; margin-bottom: 4px; }
.jm-center-line { font-size: var(--jm-body-size); }
.jm-center-title--ganzhi span { display: block; }
.jm-center-strong { font-weight: 700; color: #000; }
.jm-center-hint { margin-top: 8px; }

.jm-panel { margin-top: 20px; border: var(--jm-line); border-radius: var(--jm-radius); padding: 20px; }
.jm-panel-title { font-size: var(--jm-heading-size); line-height: var(--jm-heading-lh); font-weight: 700; color: #000; }
.jm-panel-head .jm-caption { margin: 4px 0 12px; }
.jm-panel-head .jm-chiprow { margin-bottom: 16px; }
.jm-tabs { display: flex; border-bottom: var(--jm-line); margin-bottom: 20px; overflow: hidden; }
.jm-tab { height: 44px; padding: 0 16px; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; background: none; font-size: 14px; font-weight: 700; color: var(--jm-muted); border-radius: 0; }
.jm-tab.is-on { color: #000; border-bottom-color: var(--jm-dark); }
.jm-tab:hover { color: #000; }
.jm-panel-body:focus-visible { outline-offset: 4px; }
.jm-read { font-size: var(--jm-read-size); line-height: var(--jm-read-lh); letter-spacing: var(--jm-read-ls); }
.jm-lead { font-weight: 700; color: #000; margin-bottom: 8px; }
.jm-read-sec { margin-bottom: 20px; }
.jm-read-star { font-size: 14px; line-height: 21px; font-weight: 700; color: #000; margin-bottom: 4px; }
.jm-hualines { margin-top: 20px; padding-top: 16px; border-top: var(--jm-line); }
.jm-hualine { font-size: 15px; line-height: 1.7; margin-bottom: 8px; }
.jm-hualine .jm-hua { margin-right: 4px; }
.jm-hualine--row { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.jm-hualine-item { display: inline-flex; align-items: center; gap: 4px; }
.jm-decadal-list { margin-top: 20px; }
.jm-skel-bars { display: grid; gap: 8px; margin-top: 12px; }
.jm-skel-bars span { display: block; height: 14px; background: var(--jm-surface); border-radius: var(--jm-radius); }
.jm-skel-bars span:nth-child(2) { width: 85%; } .jm-skel-bars span:nth-child(3) { width: 60%; }
.jm-cta-band { margin-top: var(--jm-space-6); padding: 24px; border: var(--jm-line); border-radius: var(--jm-radius); display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.jm-cta-band-text { font-size: 16px; font-weight: 700; color: #000; margin-right: auto; }

/* 스켈레톤(정적) — 렌더 결과(요약 바+격자+패널+CTA)와 블록 높이를 맞춰 로딩 전후 레이아웃 밀림(CLS)을 막는다(6단계).
   높이 근거(표본 명반 실측): 데스크톱 요약 145·격자 485·패널 340·CTA 98 / 모바일 요약 193·격자 389·패널 342·CTA 172 */
.jm-skel { margin-top: 12px; }
.jm-skel > p:first-child { margin: 0 0 20px; padding: 16px 0 20px; border-bottom: var(--jm-line); min-height: 109px; box-sizing: border-box; }
.jm-skel-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(4, 120px); gap: 1px; background: var(--jm-border); border: var(--jm-line); border-radius: var(--jm-radius); overflow: hidden; }
.jm-skel-grid span { background: var(--jm-surface); border-radius: 0; }
.jm-skel-grid .jm-skel-mid { grid-row: 2 / 4; grid-column: 2 / 4; }
.jm-skel-panel { margin-top: 20px; border: var(--jm-line); border-radius: var(--jm-radius); padding: 20px; min-height: 298px; box-sizing: border-box; }
.jm-skel-panel .jm-skel-tabs { display: block; height: 44px; border-bottom: var(--jm-line); margin-bottom: 20px; }
.jm-skel-panel span { display: block; height: 14px; background: var(--jm-surface); border-radius: var(--jm-radius); }
.jm-skel-panel span:nth-child(3) { width: 85%; } .jm-skel-panel span:nth-child(4) { width: 60%; }
.jm-skel::after { content: ""; display: block; margin-top: var(--jm-space-6); height: 96px; border: var(--jm-line); border-radius: var(--jm-radius); background: var(--jm-surface); }

/* ---------- 별 상세 ---------- */
.jm-crumbs { padding: 20px 0 0; }
.jm-crumbs ol { display: flex; flex-wrap: wrap; gap: 4px; }
.jm-crumbs li + li::before { content: ">"; margin-right: 4px; color: var(--jm-muted); }
.jm-crumbs a { text-decoration: none; }
.jm-crumbs a:hover { text-decoration: underline; }
.jm-page-head { padding: 24px 0 var(--jm-space-6); }
.jm-page-head h1 { font-size: var(--jm-heading-size); line-height: var(--jm-heading-lh); font-weight: 700; color: #000; display: inline; }
.jm-page-head .jm-headline { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 12px; }
.jm-page-head .jm-read { margin: 12px 0 16px; }
.jm-prose p { margin-bottom: 16px; }
.jm-prose p:last-child { margin-bottom: 0; }
.jm-list2 { display: grid; grid-template-columns: 1fr 1fr; column-gap: 40px; margin-top: 20px; }
.jm-list2 li { padding: 16px 0; border-top: var(--jm-line); }
.jm-list2 a { font-weight: 700; color: #000; }
.jm-list2 p { margin-top: 4px; }
.jm-band { padding: var(--jm-space-7) 0; text-align: center; }
.jm-band .jm-btn { margin-top: 20px; }
.jm-chip--kw { cursor: default; }

/* ---------- 반응형 ---------- */
@media (max-width: 991px) {
  .jm-hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .jm-dark-grid { grid-template-columns: 1fr; }
  .jm-menu a { padding: 4px 10px 6px; font-size: 16px; }
}
@media (max-width: 767px) {
  .jm-section, .jm-hero { padding: var(--jm-section-y) 0; }
  .jm-nav-inner { gap: 8px; }
  .jm-burger { display: block; }
  .js .jm-menu { display: none; position: absolute; left: 0; right: 0; top: 64px; z-index: 50; background: var(--jm-canvas); border-bottom: var(--jm-line); flex-direction: column; align-items: stretch; padding: 8px 16px 16px; gap: 0; }
  .js .jm-menu.is-open { display: flex; }
  .no-js .jm-menu { flex-wrap: wrap; }
  .jm-menu a { display: flex; align-items: center; height: 52px; padding: 0 16px; font-size: 17px; }
  .jm-menu .jm-nav-cta { margin: 8px 0 0; height: 48px; justify-content: center; }
  .jm-steps { grid-template-columns: 1fr; gap: 16px; margin-top: 24px; }
  .jm-dark-items { grid-template-columns: 1fr; }
  .jm-hero-sub { font-size: 15px; }
  .jm-hero .jm-card { padding: 16px; }
  .jm-card { padding: 16px; }
  .jm-footer-top { flex-direction: column; }
  .jm-summary { grid-template-columns: 1fr; }
  .jm-summary-actions { grid-row: auto; grid-column: 1; }
  .jm-summary-actions .jm-btn { flex: 1; height: 48px; }
  .jm-chart-main { padding-top: 8px; }
  .jm-grid { grid-template-rows: repeat(4, minmax(96px, auto)); }
  .jm-cell { padding: 6px 4px; gap: 2px; }
  .jm-cell-name { font-size: var(--jm-cell-sub-size); }
  .jm-center { padding: 8px; gap: 2px; justify-content: flex-start; }
  .jm-center-title { font-size: var(--jm-title-size); line-height: var(--jm-title-lh); margin-bottom: 2px; }
  .jm-center .jm-caption { margin: 0; }
  .jm-hua { height: 16px; padding: 0 3px; }
  .jm-panel { padding: 16px; margin-top: 16px; }
  .jm-panel-title { font-size: var(--jm-heading-size); line-height: var(--jm-heading-lh); }
  .jm-tab { padding: 0 10px; flex: 1; font-size: 13px; }
  .jm-list2 { grid-template-columns: 1fr; }
  .jm-cta-band .jm-btn { width: 100%; }
  /* 스켈레톤 모바일 높이(실측: 요약 193·격자 96px 행·패널 342·CTA 172) */
  .jm-skel > p:first-child { min-height: 157px; }
  .jm-skel-grid { grid-template-rows: repeat(4, 96px); }
  .jm-skel-panel { margin-top: 16px; padding: 16px; min-height: 306px; }
  .jm-skel::after { height: 168px; }
  .jm-band { padding: var(--jm-space-6) 0; }
  .jm-page-head .jm-btn { width: 100%; }
}
@media (max-width: 478px) {
  .jm-daterow { grid-template-columns: 1.2fr 1fr 1fr; gap: 6px; }
  .jm-select { padding-left: 12px; padding-right: 28px; background-position: right 10px center; }
}
.jm-dark .jm-lead-sub { color: var(--jm-on-dark); }
