/* 메인 화면 애플 다듬기 (2026-10-12, PROPOSAL) — 운영자: 「메인화면 apple 스럽게 좀 다듬어봐」.
   뼈대(남색 · 흰 글 · 금)는 그대로. 애플 구조: 평평한 타일 · 머리카락 테두리 · 한 가지 강조색 · 광택 · 번짐 없음.
   금은 행동(단추) · 지금 자리 · 브랜드 표시에만. 저장 선택은 감사 B-2대로 체크박스 그대로(스위치 = 누르는 즉시 적용되는 설정만). */

/* 1. 배경 — 금빛 성운 번짐(남색 위 갈색 얼룩으로 보임)을 걷고 남색 성운만 조금 낮춰 남긴다 */
html body .ne-sky > .ne-a { display: none !important; }
html body .ne-sky > .ne-b { opacity: .6 !important; }

/* 2. 타일 — 「사주단자」(폰 막대 · PC 카드)와 예시 카드: 광택 그라데이션 · 큰 그림자 → 평평한 면 + 머리카락 테두리 */
/* design-pass.css 18번 규칙이 ID 넷(#formCard ×4)을 세므로 여기서는 다섯을 센다 */
html:not(:has(#result:not([hidden]))) body #formCard#formCard#formCard#formCard#formCard .s2-entry-intro .s2-card {
  background: #131c2f !important;
  background-image: none !important;
  box-shadow: inset 0 0 0 .5px rgba(235, 241, 255, .16) !important;
}
html body .ne-example .ne-ex-card {
  background: #131c2f !important;
  background-image: none !important;
  box-shadow: inset 0 0 0 .5px rgba(244, 239, 228, .14) !important;
}

/* 3. 위 막대 「무료로 시작」 — 금속 금(위아래 그라데이션 · 안쪽 빛)을 평평한 금으로 */
html:not(:has(#result:not([hidden]))) body .s2-bar .s2-bar-cta::before {
  background: var(--s-gold, #d5b681) !important;
  box-shadow: none !important;
}

/* 4. 첫 화면 보조 단추 「리포트 예시」 — 애플 보조 단추: 강조색 테두리 · 강조색 글자(주 단추는 금 채움 그대로) */
html body .s2-hero .s2-hero-actions .s2-btn.s2-btn-glass {
  background: rgba(10, 16, 28, .32) !important;
  background-image: none !important;
  box-shadow: inset 0 0 0 1px rgba(213, 182, 129, .9) !important;
  color: #e6cb93 !important;
  -webkit-backdrop-filter: blur(16px) !important;
  backdrop-filter: blur(16px) !important;
}
@media (hover: hover) {
  html body .s2-hero .s2-hero-actions .s2-btn.s2-btn-glass:hover { background: rgba(213, 182, 129, .12) !important; }
}

/* 5. PC — 「풀이마다 어떤 내 값에서 나왔는지 …」가 폼 위에 떠 있던 것을 폼 아래로(폰과 같은 차례) */
@media screen and (min-width: 1024px) {
  html:not(:has(#result:not([hidden]))) body #formCard#formCard .danja > #err { grid-row: 6; }
  html:not(:has(#result:not([hidden]))) body #formCard#formCard .danja > .notice { grid-row: 7; }
  html:not(:has(#result:not([hidden]))) body #formCard#formCard .danja > .archive-lite-import { grid-row: 8; }
  /* 그 안내가 비우고 간 자리만큼, 설명 문장과 카드 · 폼 사이 간격을 설명 문장 쪽에 둔다 */
  html:not(:has(#result:not([hidden]))) body #formCard#formCard#formCard .danja-lede { margin-bottom: 56px !important; }
}

@media (forced-colors: active) {
  html body :is(#formCard .s2-entry-intro .s2-card, .ne-example .ne-ex-card) { border: 1px solid CanvasText !important; }
  html body .s2-hero .s2-hero-actions .s2-btn.s2-btn-glass { border: 1px solid ButtonText !important; color: ButtonText !important; }
}

/* ── 디자인 고침 2(2026-10-28, 후보 R1 ASJ-FE-022 · R2-02 옮김): 한 화면에 금색 주 단추는 하나 ──
   site2.js 가 html.s2-form-in-view(입력 폼이 보임) · html.s2-hero-cta-in-view(첫 화면 금색 단추가 보임)를 붙인다. 결과가 보일 때는 그대로.
   폼이 보이면 막대의 같은 길 「무료로 시작」은 접고, 폰(479px 이하)에서도 「리포트 예시」를 보인다.
   첫 화면 금색 단추가 보이는 동안 막대 단추는 테두리만 — 금 채움은 앞 층(entry-night · design-pass 등)이 !important 로 칠해 같은 무게로 덮는다 */
html.s2-form-in-view:not(:has(#result:not([hidden]))) body .s2-bar .s2-bar-cta { display: none !important; }
@media (max-width: 479px) { html.s2-form-in-view:not(:has(#result:not([hidden]))) body .s2-bar .s2-bar-link { display: inline-flex !important; align-items: center; } }
html body .s2-bar-cta { transition: color .16s ease; }
html body .s2-bar-cta::before { transition: background-color .16s ease, box-shadow .16s ease; }
html.s2-hero-cta-in-view:not(:has(#result:not([hidden]))) body .s2-bar .s2-bar-cta { color: var(--s-gold-hi, #e2c79a) !important; } /* 단추 몸은 네모 — 테두리는 알약(::before)에만 */
html.s2-hero-cta-in-view:not(:has(#result:not([hidden]))) body .s2-bar .s2-bar-cta::before,
html.s2-hero-cta-in-view:not(:has(#result:not([hidden]))) body .s2-bar .s2-bar-cta:hover::before { background: rgba(213, 182, 129, .1) !important; box-shadow: inset 0 0 0 1px rgba(213, 182, 129, .62) !important; }
@media (prefers-reduced-motion: reduce) { html body .s2-bar-cta, html body .s2-bar-cta::before { transition: none; } }
