/* 2026.4.13.(월) 오전 5:57 홈화면 개편 */

* {
  box-sizing: border-box;
}

/* =============================
   기본 타이포 & 반응형 글자 크기
   ============================= */
html {
  font-size: 16px; /* PC 기본 rem 기준 */
}

@media (max-width: 600px) {
  html {
    font-size: 15px; /* 모바일은 전체 스케일 자연스럽게 감소 */
  }
}

body {
  margin: 0;
  padding: 0;
  background: #fff;
  color: #111;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, "Apple SD Gothic Neo", "Noto Sans KR", "맑은 고딕", sans-serif;
  line-height: 1.5;
  word-break: keep-all;
}

/* 링크 기본 */
a {
  text-decoration: none;
  color: inherit;
}

/* =============================
   전역 헤딩 계층
   ============================= */

/* 페이지 제목: 사이트 전체에서 최우선 */
body h1 {
  font-size: 2.2rem;
  margin: 28px 0 18px;
  text-align: center !important;
  color: #111;
  font-weight: 700;
}

/* 큰 섹션 제목 */
body h2 {
  font-size: 1.6rem;
  margin: 28px 0 12px;
  color: #222;
  font-weight: 700;
}

/* 중간 소제목 */
body h3 {
  font-size: 1.4rem;
  margin: 20px 0 10px;
  color: #222;
  font-weight: 600;
}

/* 소단락 제목 */
body h4 {
  font-size: 1.2rem;
  margin: 16px 0 8px;
  color: #333;
  font-weight: 600;
}

/* =============================
   본문 텍스트
   ============================= */

body p,
body li,
body div,
body span {
  font-size: 1.1rem;
  line-height: 1.65;
  color: #333;
}

body p {
  margin: 14px 0;
}

body li {
  margin: 4px 0;
  line-height: 1.55;
}

ul, ol {
  margin: 12px 0 18px;
  padding-left: 22px;
}

body .muted {
  font-size: 0.95rem;
  color: #666;
}

/* =============================
   예외 클래스(local-*)
   ============================= */

.local-h2 { font-size: 1.3rem !important; }
.local-h3 { font-size: 1.1rem !important; }
.local-large { font-size: 1.2rem !important; }
.local-small { font-size: 0.9rem !important; }
.local-tight { margin-bottom: 6px !important; }
.local-accent { color: #0051a8 !important; }

/* =============================
   레이아웃 공통
   ============================= */

.shell {
  max-width: 880px;
  margin: 0 auto;
}

/* main에 컨테이너 역할(폭/패딩)을 주지 않음: .container에서 관리 */
main {
  margin: 0 auto;
}

.sub {
  margin: 0.25rem 0 0;
  font-size: 1rem;
  color: #555;
}

/* 상단 헤더 */
.site-header {
  background: #fff;
  border-bottom: 1px solid #e8e8ef;
}

.site-header .shell {
  padding: 16px;
}

/* 섹션 카드 */
.section {
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  padding: 20px 22px;
  margin: 18px 0;
  background: #fff;
}

/* 내부 카드 */
.card {
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  padding: 14px 16px;
  margin: 14px 0;
  background: #fafafa;
}

/* =============================
   레이아웃 유틸
   ============================= */

.row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.row.between { justify-content: space-between; }
.row.gap { gap: 10px; }

.grid {
  display: grid;
  gap: 12px;
}

.grid.two { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.grid.three { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }

@media (max-width: 640px) {
  .row { flex-wrap: wrap; align-items: flex-start; }
  .grid.two, .grid.three { grid-template-columns: 1fr; }
}

/* =============================
   버튼 스타일
   ============================= */

.btn {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 12px;
  border: 1px solid #222;
  font-weight: 600;
  font-size: 1rem;
  color: #111;
  background: #fff;
  cursor: pointer;
}

.btn + .btn { margin-left: 10px; }
.btn:hover { background: #f3f4f6; }

.btn.primary { background: #111; color: #fff; }
.btn.primary:hover { background: #000; }


.btn.black { background: #111; color: #fff; }
.btn.black:hover { background: #000; }

.btn.ghost { background: #f9fafb; border-color: #d4d4d8; }
.btn.ghost:hover { background: #eef2ff; }

.btn-desc {
  font-size: 1rem;
  margin: 6px 0 18px;
  color: #333;
}

.btn-lightgrey {
  padding: 8px 14px;
  border-radius: 10px;
  background: #f3f4f6;
  border: 1px solid #d4d4d8;
}

/* 메인으로 돌아가기 */
.home-link-wrap {
  max-width: 880px;
  margin: 16px auto 0;
  padding: 0 16px;
  display: flex;
  justify-content: flex-start;
  gap: 8px;
  flex-wrap: wrap;
}

.btn-home {
  padding: 8px 16px;
  border: 1px solid #d1d5db;
  border-radius: 999px;
  background: #f9fafb;
  font-size: 1rem;
  white-space: nowrap;
}

.btn-home:hover {
  background: #eef2ff;
}

/* =============================
   푸터
   ============================= */

.site-footer {
  border-top: 1px solid #e8e8ef;
  margin-top: 32px;
  padding: 16px 0 20px;
  color: #444;
  font-size: 1rem;
}

.site-footer p { margin: 4px 0; }

/* =============================
   입력 UI
   ============================= */

input,
select,
button,
textarea {
  font: inherit;
}

input[type="text"],
input[type="number"],
input[type="time"],
input[type="date"],
select,
textarea {
  padding: 10px 12px;
  border: 1px solid #d9d9e3;
  border-radius: 12px;
  background: #f9fafb;
  outline: none;
  min-width: 0;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.02);
}

input:focus,
select:focus,
textarea:focus {
  border-color: #b4b4d0;
  box-shadow: 0 0 0 2px rgba(180, 180, 208, 0.25);
  background: #fff;
}

input:disabled,
select:disabled,
textarea:disabled {
  background: #f6f7fb;
  color: #888;
}

.numeric { text-align: right; }

/* =============================
   구분선(hr)
   ============================= */

hr {
  border-top: 1px solid #ddd;
  margin: 26px 0;
  opacity: 0.9;
}

body h2 + hr {
  margin-top: 10px !important;
}

/* =============================
   테이블 스타일
   ============================= */

.table-wrap,
.table-wrapper {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 12px 0;
  padding-bottom: 6px;
}

.table-wrap table,
.table-wrapper table {
  min-width: 800px;
  border-collapse: collapse;
}

.sheetlike {
  width: 100%;
  border-collapse: collapse;
  font-size: 1rem;
  background: #fff;
}

.sheetlike th,
.sheetlike td {
  border: 1px solid #e5e7eb;
  padding: 8px 10px;
}

.sheetlike th {
  background: #f9fafb;
  font-weight: 600;
}

/* =============================
   ↓↓↓ 요청사항 적용 부분 ↓↓↓
   simple-table 정렬
   ============================= */

.simple-table th {
  text-align: left;
}

.simple-table td {
  text-align: right;
  padding-right: 4px;
}

.note {
  margin-top: 8px;
  font-size: 1rem;
  color: #555;
}

/* =============================
   header/footer 레이아웃 통일
   ============================= */

.site-header .shell,
.site-footer .shell {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 16px;
}

/* 모든 셀렉트 박스가 그리드 밖으로 넘치지 않도록 강제 */
.field select {
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
}

/* =========================================================
   index.html 전용(기존 인라인 스타일 제거 후 통합)
   ========================================================= */

/* main 컨테이너 */
.container {
  max-width: 880px;
  margin: 0 auto;
  padding: 24px 16px;
}

/* index 서브타이틀 */
.subtitle {
  margin: 0 0 12px;
  color: #444;
  font-size: 0.98rem;
  text-align: center;
}

/* 다운로드 섹션 약간 강조 */
.dl-section {
  background: #fafafa;
}

/* 다운로드 섹션 설명(간격만) */
.dl-desc {
  margin: 0 0 10px;
}

/* 다운로드 섹션 - 프로그램 스크린샷 */
.dl-shot{
  margin: 14px 0 0;
  padding: 12px;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  background: #fff;
}

.dl-shot img{
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
}

/* 캡션: 이미지 위 배치 기준 */
.dl-caption{
  margin: 0 0 8px;
  font-size: 0.95rem;
  color: #666;
}

/* =================================================
   업무 경감 프로그램 카드형 UI
   ================================================= */

.tool-grid {
  display: grid;
  gap: 18px;
}

.tool-card {
  border: 1px solid #e5e5e5;
  border-radius: 14px;
  padding: 18px 20px;
  background: #fff;
}

.tool-head { margin-bottom: 10px; }

.tool-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 0 4px;
  color: #111;
}

.tool-sub {
  font-size: 0.95rem;
  color: #555;
  margin: 0;
}

.tool-body { margin-top: 10px; }

.tool-list {
  margin: 0 0 12px;
  padding-left: 0;
  list-style: none;
}

.tool-list li {
  font-size: 0.95rem;
  color: #333;
  margin: 4px 0;
}

.tool-btn { margin-top: 6px; }

.tool-shot {
  margin-top: 14px;
  padding: 10px;
  border-radius: 12px;
  background: #fafafa;
  border: 1px solid #e5e5e5;
}

.tool-caption {
  margin: 0 0 8px;
  font-size: 0.9rem;
  color: #666;
}

.tool-shot img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  display: block;
}

@media (max-width: 640px) {
  .tool-card { padding: 16px; }
}

/* ===============================
   이미지 오버플로우 강제 방지
   =============================== */

.section,
.tool-card,
.tool-shot {
  overflow-x: hidden;
}

.tool-shot {
  padding: 0;
  margin-top: 14px;
  border-radius: 12px;
  background: #fafafa;
  border: 1px solid #e5e5e5;
}

.tool-shot img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}

@media (max-width: 640px) {
  .tool-shot img {
    width: 100%;
    max-width: 100vw;
  }
}

.tool-thumb {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  cursor: zoom-in;
}

/* 모달 */
.img-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
}

.img-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
}

.img-modal-stage {
  position: absolute;
  inset: 0;
  overflow: hidden;
  touch-action: none;
}

.img-modal-content {
  position: absolute;
  top: 50%;
  left: 50%;
  max-width: 92vw;
  max-height: 92vh;
  transform: translate(0px, 0px) scale(1);
  transform-origin: center center;
  translate: -50% -50%;
  border-radius: 12px;
  background: #fff;
  cursor: zoom-out;
  will-change: transform;
}

.img-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.35);
  background: rgba(0,0,0,0.45);
  color: #fff;
  font-size: 28px;
  line-height: 36px;
  cursor: pointer;
}

.img-modal-hint {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(0,0,0,0.45);
  color: #fff;
  font-size: 0.9rem;
}

/* ===============================
   실행화면 접기/펼치기
   =============================== */

.shot-details {
  margin-top: 12px;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  background: #fafafa;
  padding: 10px 12px;
}

.shot-summary {
  cursor: pointer;
  font-weight: 700;
  color: #111;
  font-size: 0.98rem;
  list-style: none;
}

.shot-summary::-webkit-details-marker {
  display: none;
}

.shot-summary::before {
  content: "▸ ";
}

.shot-details[open] .shot-summary::before {
  content: "▾ ";
}

.shot-summary:hover {
  text-decoration: underline;
}

.shot-details[open] .tool-shot {
  margin-top: 10px;
}

.tool-shot {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.site-footer {
  margin-top: 64px;
  padding: 24px 16px;
  border-top: 1px solid #e5e7eb;
  background: #fafafa;
  color: #6b7280;
  font-size: 0.875rem;
}

.site-footer .shell {
  max-width: 1024px;
  margin: 0 auto;
  text-align: center;
  line-height: 1.6;
}

.row .btn + .btn { margin-left: 0; }

.dash-summary{
  display:flex;
  align-items:baseline;
  gap:8px;
  cursor:pointer;
  list-style:none;
}

.dash-summary::-webkit-details-marker{
  display:none;
}

.dash-title{
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.2;
}

#btnToTop{
  position: fixed;
  right: 16px;
  bottom: 16px;
  display: none;
  z-index: 999;
  border-radius: 999px;
  padding: 10px 12px;
}


/* ===============================
   이미지 클릭 확대/축소 (CSS-only)
   =============================== */

details.img-zoom {
  margin: 0;
}

details.img-zoom > summary {
  list-style: none;
  padding: 0;
  margin: 0;
  display: block;
  cursor: zoom-in;
  -webkit-tap-highlight-color: transparent;
}

details.img-zoom > summary::-webkit-details-marker {
  display: none;
}

details.img-zoom > summary img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid #eee;
  background: #fff;
  cursor: inherit;
}

details.img-zoom[open] > summary {
  cursor: zoom-out;
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
  background: rgba(0, 0, 0, 0.65);
}

details.img-zoom[open] > summary img {
  width: auto;
  max-width: 96vw;
  max-height: 92vh;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.45);
}

details.img-zoom > summary:focus-visible {
  outline: 2px solid rgba(17, 17, 17, 0.35);
  outline-offset: 4px;
  border-radius: 14px;
}

details.img-zoom[open] > summary:focus-visible {
  outline-color: rgba(255, 255, 255, 0.65);
}

@supports selector(body:has(details[open])) {
  body:has(details.img-zoom[open]) {
    overflow: hidden;
  }
}

img.thumb {
  cursor: zoom-in;
}

/* =========================================================
   ✅ 가독성 개선(2026.3.3) — index 중심 추가/보강
   ========================================================= */

/* 스킵 링크(키보드 사용자) */
.skip-link{
  position: absolute;
  left: -9999px;
  top: 10px;
  z-index: 10001;
  padding: 10px 12px;
  border-radius: 12px;
  background: #111;
  color: #fff;
  font-weight: 700;
}
.skip-link:focus{
  left: 10px;
}

/* 섹션/카드 내부 첫 제목 위 여백 과다 방지 */
.section > h2:first-child,
.section > h3:first-child,
.section > h4:first-child{
  margin-top: 0;
}
.card > h2:first-child,
.card > h3:first-child,
.card > h4:first-child{
  margin-top: 0;
}

/* 섹션 내부 hr 간격을 조금 더 촘촘하게 */
.section hr{
  margin: 18px 0;
}

/* 앵커 점프 시 살짝 여유 */
section[id]{
  scroll-margin-top: 16px;
}

/* ✅ index 전용 배경: 흰색으로 고정 */
.page-index{
  background: #fff;
}

/* 상단 헤드 */
.page-head{
  text-align: center;
}
.page-head .callout{
  text-align: left;
  margin-top: 14px;
}

/* 콜아웃(공지/안내 박스) */
.callout{
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  border-radius: 12px;
  padding: 12px 14px;
}
.list-tight{
  margin: 0;
  padding-left: 20px;
}
.list-tight li{
  margin: 6px 0;
}

/* 빠른 이동(칩 메뉴) */
.quick-nav{
  background: #fff;
}
.chip-row{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.chip{
  display: inline-flex;
  align-items: center;
  padding: 8px 10px;
  border: 1px solid #d1d5db;
  border-radius: 999px;
  background: #f9fafb;
  font-weight: 700;
  font-size: 0.95rem;
  white-space: nowrap;
}
.chip:hover{
  background: #eef2ff;
}
@media (max-width: 640px){
  .chip-row{
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 6px;
  }
}

/* 링크 목록(버튼+설명) */
.link-list{
  display: grid;
  gap: 14px;
}
.link-item{
  display: grid;
  gap: 6px;
}
.page-index .link-item .btn{
  display: block;
  width: 100%;
  text-align: left;
  padding: 12px 16px;
}
.page-index .link-item .btn-desc{
  margin: 0;
  font-size: 0.98rem;
  color: #4b5563;
}

/* 대시보드 summary에 화살표 표시(가독성/인지성 ↑) */
.dash-summary::before{
  content: "▸";
  font-weight: 900;
  margin-right: 6px;
}
.dash-details[open] .dash-summary::before{
  content: "▾";
}

/* summary 영역을 ‘헤더’처럼 보이게 */
.dash-summary{
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
}
.dash-details[open] .dash-summary{
  margin-bottom: 12px;
}

/* =========================================================
   ✅ 레트로 감성 + 직관성 업그레이드 (2026.3.3)
   - footer.js에서 html[data-theme] 값을 "retro" / "classic" 으로 토글
   - 기본값은 "retro"
   ========================================================= */

/* -------------------------------
   0) 직관성: 빠른 이동(칩) 현재 위치 표시 (공통)
   ------------------------------- */
.chip.is-active,
.chip[aria-current="location"]{
  border-color: #111;
  background: #eef2ff;
}

/* 키보드 포커스 가시성(공통) */
.chip:focus-visible{
  outline: 2px solid rgba(17, 17, 17, 0.35);
  outline-offset: 2px;
}

/* -------------------------------
   1) 푸터: 테마 토글 UI (공통)
   ------------------------------- */
.site-footer .footer-tools{
  margin-top: 14px;
}
.site-footer .theme-switch{
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 6px;
}
.site-footer .btn.btn-theme{
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.95rem;
}
.site-footer .btn.btn-theme.is-active{
  background: #111;
  color: #fff;
  border-color: #111;
}
.site-footer .footer-hint{
  margin-top: 8px;
}

/* =========================================================
   2) 레트로 테마 (html[data-theme="retro"])
   - 너무 과하면 업무 사이트에서 피로해지니, '레트로 감성'은 살리고
     가독성/정확도(실무)를 우선으로 조절
   ========================================================= */

html[data-theme="retro"]{
  color-scheme: light;
}

html[data-theme="retro"] body{
  /* 색 변수(레트로-문구/종이 느낌) */
  --retro-bg: #fff5d8;          /* 따뜻한 종이색 */
  --retro-surface: #fffdf1;     /* 카드 배경 */
  --retro-surface-2: #ffffff;   /* 버튼/입력 기본 */
  --retro-ink: #121212;         /* 본문 텍스트 */
  --retro-muted: #48505c;       /* 설명 텍스트 */
  --retro-border: #161616;      /* 굵은 라인 */
  --retro-shadow: rgba(22, 22, 22, 0.55);
  --retro-focus: rgba(56, 189, 248, 0.55);
  --retro-accent: #ff5d8f;

  /* 레트로 배경(얇은 그리드 + 잉크 번짐 느낌 라이트 버전) */
  background:
    linear-gradient(rgba(22,22,22,0.035) 1px, transparent 1px) 0 0 / 22px 22px,
    linear-gradient(90deg, rgba(22,22,22,0.035) 1px, transparent 1px) 0 0 / 22px 22px,
    radial-gradient(circle at 10% 0%, rgba(255, 184, 107, 0.26), transparent 45%),
    radial-gradient(circle at 90% 18%, rgba(124, 131, 255, 0.18), transparent 52%),
    var(--retro-bg);

  color: var(--retro-ink);
  background-attachment: fixed;
}

/* 본문/보조텍스트 톤 정리 */
html[data-theme="retro"] body p,
html[data-theme="retro"] body li,
html[data-theme="retro"] body div,
html[data-theme="retro"] body span{
  color: #1f2937;
}
html[data-theme="retro"] body .muted{
  color: var(--retro-muted);
}

/* 헤딩/컨트롤: 모노스페이스로 레트로 감성(본문은 그대로) */
html[data-theme="retro"] body h1,
html[data-theme="retro"] body h2,
html[data-theme="retro"] body h3,
html[data-theme="retro"] body h4,
html[data-theme="retro"] body .btn,
html[data-theme="retro"] body .chip,
html[data-theme="retro"] body summary,
html[data-theme="retro"] body th{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
    "Courier New", "Apple SD Gothic Neo", "Noto Sans KR", "맑은 고딕", monospace;
  letter-spacing: -0.01em;
}

html[data-theme="retro"] body h1,
html[data-theme="retro"] body h2{
  text-shadow: 1px 1px 0 rgba(0,0,0,0.06);
}

/* 섹션/카드: 굵은 라인 + 오프셋 섀도(90s 윈도우/잡지 느낌) */
html[data-theme="retro"] .section,
html[data-theme="retro"] .card,
html[data-theme="retro"] .tool-card,
html[data-theme="retro"] .callout,
html[data-theme="retro"] .shot-details,
html[data-theme="retro"] .dl-shot{
  background: var(--retro-surface);
  border: 2px solid var(--retro-border);
  box-shadow: 6px 6px 0 var(--retro-shadow);
}

/* 대시보드 summary/접기영역도 살짝 레트로하게 */
html[data-theme="retro"] .dash-summary,
html[data-theme="retro"] .shot-summary{
  background: rgba(255,255,255,0.72);
  border: 2px solid var(--retro-border);
}

/* 버튼: 눌리는 3D 느낌(과하지 않게) */
html[data-theme="retro"] .btn{
  border: 2px solid var(--retro-border);
  border-radius: 10px;
  background: var(--retro-surface-2);
  box-shadow: 4px 4px 0 var(--retro-shadow);
  transition:
    transform 0.07s ease,
    box-shadow 0.07s ease,
    background-color 0.15s ease,
    filter 0.15s ease;
}

html[data-theme="retro"] .btn:hover{
  transform: translate(-1px, -1px);
  box-shadow: 5px 5px 0 var(--retro-shadow);
  filter: saturate(1.02);
}

html[data-theme="retro"] .btn:active{
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--retro-shadow);
}

html[data-theme="retro"] .btn.primary{
  background: #111;
  color: #fff;
  border-color: #111;
}

/* 칩도 동일한 '툭'한 느낌 */
html[data-theme="retro"] .chip{
  border: 2px solid var(--retro-border);
  background: rgba(255,255,255,0.85);
  box-shadow: 3px 3px 0 var(--retro-shadow);
}

html[data-theme="retro"] .chip:hover{
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 var(--retro-shadow);
}

html[data-theme="retro"] .chip.is-active,
html[data-theme="retro"] .chip[aria-current="location"]{
  background: rgba(56,189,248,0.18);
  border-color: var(--retro-border);
}
html[data-theme="retro"] .chip.is-active::after,
html[data-theme="retro"] .chip[aria-current="location"]::after{
  content: "●";
  font-size: 0.7em;
  margin-left: 6px;
  color: var(--retro-accent);
}

/* 입력 UI: 종이 위 펜 느낌(테두리 강조) */
html[data-theme="retro"] input[type="text"],
html[data-theme="retro"] input[type="number"],
html[data-theme="retro"] input[type="time"],
html[data-theme="retro"] input[type="date"],
html[data-theme="retro"] select,
html[data-theme="retro"] textarea{
  border: 2px solid var(--retro-border);
  background: rgba(255,255,255,0.72);
  box-shadow: inset 2px 2px 0 rgba(0,0,0,0.06);
}

html[data-theme="retro"] input:focus,
html[data-theme="retro"] select:focus,
html[data-theme="retro"] textarea:focus{
  outline: 3px solid var(--retro-focus);
  outline-offset: 2px;
  border-color: var(--retro-border);
  box-shadow: inset 2px 2px 0 rgba(0,0,0,0.05);
}

/* 구분선: 점선으로 레트로 느낌 */
html[data-theme="retro"] hr{
  border: 0;
  border-top: 2px dashed rgba(22,22,22,0.35);
  opacity: 1;
}

/* 표: 약간 두꺼운 선 + 헤더 배경 강조 */
html[data-theme="retro"] .sheetlike th,
html[data-theme="retro"] .sheetlike td{
  border-color: rgba(22,22,22,0.35);
}
html[data-theme="retro"] .sheetlike th{
  background: rgba(255, 93, 143, 0.10);
}

/* 푸터도 카드처럼 보이게 */
html[data-theme="retro"] .site-footer{
  background: var(--retro-surface);
  border-top: 2px solid var(--retro-border);
}

/* 레트로 모드에서 테마 버튼 active는 포인트 컬러 */
html[data-theme="retro"] .site-footer .btn.btn-theme.is-active{
  background: var(--retro-accent);
  color: #111;
  border-color: var(--retro-border);
}

/* 모바일에서 빠른이동을 조금 더 '툴바'처럼 (너무 강하면 피곤하니 약하게) */
@media (max-width: 640px){
  html[data-theme="retro"] .quick-nav{
    position: sticky;
    top: 8px;
    z-index: 1000;
    backdrop-filter: blur(6px);
  }
}

/* 모바일에서는 fixed 배경이 버벅일 수 있어 스크롤로 */
@media (max-width: 640px){
  html[data-theme="retro"] body{
    background-attachment: scroll;
  }
}


/* ✅ retro 모드: 섹션 카드(.section) 배경만 순백으로 */
html[data-theme="retro"] .section{
  background: #fff;
}


/* =========================================================
   ✅ retro 모드에서도 버튼 고유 색 유지 (2026.3.20)
   - style.css 맨 아래에 추가
   - 기존 버튼 모양(레트로 입체감)은 유지
   - 버튼별 원래 배경색만 다시 살아나게 함
   ========================================================= */

/* 1) 버튼 색 정보를 변수로 통일 */
.btn{
  --btn-bg: #fff;
  --btn-bg-hover: #f3f4f6;
  --btn-text: #111;
  --btn-border: #222;
}

.btn.primary{
  --btn-bg: #111;
  --btn-bg-hover: #000;
  --btn-text: #fff;
  --btn-border: #111;
}

.btn.ghost{
  --btn-bg: #f9fafb;
  --btn-bg-hover: #eef2ff;
  --btn-text: #111;
  --btn-border: #d4d4d8;
}

.btn.btn-lightgrey{
  --btn-bg: #f3f4f6;
  --btn-bg-hover: #e9eaee;
  --btn-text: #111;
  --btn-border: #d4d4d8;
}

.btn[class*="pastel-"],
.btn.paste-pink{
  --btn-text: #111;
  --btn-border: #222;
}

.btn.pastel-yellow{
  --btn-bg: #FFF4B8;
  --btn-bg-hover: #FFEFA0;
}

.btn.pastel-blue{
  --btn-bg: #E6F0FF;
  --btn-bg-hover: #D7E8FF;
}

.btn.paste-pink{
  --btn-bg: #FFE4EF;
  --btn-bg-hover: #FFD4E4;
}

.btn.pastel-mint{
  --btn-bg: #DFF7EA;
  --btn-bg-hover: #CFF2E1;
}

.btn.pastel-green{
  --btn-bg: #E3F6C9;
  --btn-bg-hover: #D4F0B4;
}

.btn.pastel-orange{
  --btn-bg: #FFE8D1;
  --btn-bg-hover: #FFDDBE;
}

.btn.pastel-red{
  --btn-bg: #FFD7D7;
  --btn-bg-hover: #FFC4C4;
}

.btn.pastel-purple{
  --btn-bg: #EFE2FF;
  --btn-bg-hover: #E3D1FF;
}

.btn.pastel-grey{
  --btn-bg: #F3F4F6;
  --btn-bg-hover: #E9EAEE;
  --btn-text: #111;
  --btn-border: #D4D4D8;
}

.btn.pastel-teal{
  --btn-bg: #D9F5F3;
  --btn-bg-hover: #C7F0ED;
}

/* 2) retro에서는 입체감만 적용하고, 색은 각 버튼의 원래 값 유지 */
html[data-theme="retro"] .btn{
  background: var(--btn-bg, var(--retro-surface-2));
  color: var(--btn-text, #111);
  border-color: var(--btn-border, var(--retro-border));
}

html[data-theme="retro"] .btn:hover{
  background: var(--btn-bg-hover, var(--btn-bg, var(--retro-surface-2)));
}

/* 3) footer의 테마 버튼 active는 기존 포인트 컬러 유지 */
html[data-theme="retro"] .site-footer .btn.btn-theme.is-active{
  background: var(--retro-accent);
  color: #111;
  border-color: var(--retro-border);
}


/* =========================================================
   페이지 메인 래퍼 표준화 (레이아웃 전용)
   ========================================================= */

:root{
  --page-main-pad-x: 16px;
  --page-main-pad-top: 24px;
  --page-main-pad-bottom: 56px;
}

.page-main{
  width: 100%;
  max-width: var(--page-main-max, 880px);
  margin: 0 auto;
  padding: var(--page-main-pad-top) var(--page-main-pad-x) var(--page-main-pad-bottom);
}

.page-main--compact{ --page-main-max: 720px; }
.page-main--slim{ --page-main-max: 860px; }
.page-main--narrow{ --page-main-max: 880px; }
.page-main--medium{ --page-main-max: 960px; }
.page-main--wide{ --page-main-max: 1120px; }
.page-main--xwide{ --page-main-max: 1280px; }
.page-main--xxwide{ --page-main-max: 1360px; }
.page-main--full{ --page-main-max: 1800px; }

.page-toolbar,
.action-row,
.btnrow{
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.page-toolbar.end,
.action-row.end,
.btnrow.end{
  justify-content: flex-end;
}

.tablewrap{
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 12px 0;
  padding-bottom: 6px;
}

@media (max-width: 640px){
  .page-main{
    padding: 20px 14px 48px;
  }

  .section{
    padding: 16px;
  }

  .card{
    padding: 12px 14px;
  }
}

/* =========================================================
   Alien side background layout (2026.3.21 fast-light)
   - /static/alien.jpg 한 장만 cover + no-repeat
   - 배경 노출을 더 늘리고, 스크롤 지연을 줄이도록 효과를 가볍게 정리
   - 공통 트리거: body.alien-side-bg
   - 공통 래퍼: .alien-page-frame
   - 래퍼가 없는 페이지는 direct header/main/footer를 fallback 패널로 처리
   ========================================================= */

body.alien-side-bg{
  --alien-frame-gutter: clamp(72px, 16vw, 320px);
  --alien-frame-max: 1500px;
  --alien-panel-bg: rgba(255, 252, 248, 0.82);
  --alien-panel-bg-solid: rgba(255, 252, 248, 0.88);
  --alien-line: rgba(64, 48, 35, 0.12);
  --alien-shadow-1: rgba(43, 30, 18, 0.11);
  --alien-shadow-2: rgba(43, 30, 18, 0.05);
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  margin: 0;
  padding: 0;
  background: #eae3db;
}

body.alien-side-bg::before,
body.alien-side-bg::after{
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}

body.alien-side-bg::before{
  z-index: -2;
  background: url("/static/alien.jpg") center center / cover no-repeat;
  background-attachment: scroll;
  filter: none;
}

body.alien-side-bg::after{
  z-index: -1;
  background:
    linear-gradient(
      90deg,
      rgba(255,255,255,0.02) 0%,
      rgba(255,255,255,0.00) 16%,
      rgba(247,243,238,0.06) 34%,
      rgba(247,243,238,0.14) 50%,
      rgba(247,243,238,0.06) 66%,
      rgba(255,255,255,0.00) 84%,
      rgba(255,255,255,0.02) 100%
    );
}

body.alien-side-bg > .alien-page-frame,
body.alien-side-bg > header.site-header,
body.alien-side-bg > main,
body.alien-side-bg > .home-link-wrap,
body.alien-side-bg > footer.site-footer,
body.alien-side-bg > .simple-footer{
  width: calc(100% - var(--alien-frame-gutter));
  max-width: var(--alien-frame-max);
  margin-left: auto;
  margin-right: auto;
}

body.alien-side-bg > .alien-page-frame{
  position: relative;
  z-index: 1;
  margin-top: clamp(10px, 1.4vw, 18px);
  padding: clamp(14px, 1.6vw, 22px);
}

body.alien-side-bg > .alien-page-frame,
body.alien-side-bg > header.site-header,
body.alien-side-bg > main,
body.alien-side-bg > footer.site-footer,
body.alien-side-bg > .simple-footer{
  border: 1px solid var(--alien-line);
  border-radius: clamp(20px, 2.2vw, 30px);
  background: var(--alien-panel-bg);
  box-shadow:
    0 14px 34px var(--alien-shadow-1),
    0 3px 10px var(--alien-shadow-2);
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

body.alien-side-bg > header.site-header,
body.alien-side-bg > main,
body.alien-side-bg > footer.site-footer,
body.alien-side-bg > .simple-footer{
  margin-top: clamp(10px, 1.4vw, 18px);
}

body.alien-side-bg > .alien-page-frame .site-header,
body.alien-side-bg > .alien-page-frame .topnav,
body.alien-side-bg > .alien-page-frame .site-footer,
body.alien-side-bg > .alien-page-frame .simple-footer{
  background: transparent;
}

body.alien-side-bg > .alien-page-frame .site-header,
body.alien-side-bg > header.site-header{
  border-bottom-color: rgba(64, 48, 35, 0.08);
}

body.alien-side-bg > .alien-page-frame .site-footer,
body.alien-side-bg > footer.site-footer{
  border-top-color: rgba(64, 48, 35, 0.08);
}

body.alien-side-bg > .alien-page-frame .site-header .shell,
body.alien-side-bg > .alien-page-frame .topnav .shell,
body.alien-side-bg > .alien-page-frame header .wrap,
body.alien-side-bg > .alien-page-frame main .wrap,
body.alien-side-bg > .alien-page-frame > .shell{
  max-width: 100%;
}

body.alien-side-bg .section,
body.alien-side-bg .card,
body.alien-side-bg .tool-card,
body.alien-side-bg .callout,
body.alien-side-bg .shot-details,
body.alien-side-bg .dl-shot,
body.alien-side-bg .dropzone,
body.alien-side-bg .result,
body.alien-side-bg .table-scroll,
body.alien-side-bg .file-list-wrap{
  box-shadow: 0 6px 16px rgba(43, 30, 18, 0.05);
}

body.alien-side-bg > .home-link-wrap{
  margin-top: 16px;
}

body.alien-side-bg > .home-link-wrap .btn,
body.alien-side-bg > .home-link-wrap .btn-home{
  background: rgba(255, 252, 248, 0.86);
  border-color: rgba(64, 48, 35, 0.18);
  box-shadow: 0 6px 16px rgba(43, 30, 18, 0.08);
}

body.alien-side-bg > footer.site-footer,
body.alien-side-bg > .simple-footer{
  padding: clamp(14px, 1.8vw, 22px);
}

body.alien-side-bg > footer.site-footer .shell,
body.alien-side-bg > .simple-footer{
  width: 100%;
  max-width: none;
  margin: 0;
}

body.alien-side-bg #btnToTop,
body.alien-side-bg #back-to-top-fab .btn,
body.alien-side-bg .to-top{
  box-shadow: 0 8px 18px rgba(43, 30, 18, 0.10);
}

@media (max-width: 1200px){
  body.alien-side-bg{
    --alien-frame-gutter: clamp(28px, 8vw, 120px);
    --alien-panel-bg: rgba(255, 252, 248, 0.86);
    --alien-panel-bg-solid: rgba(255, 252, 248, 0.90);
  }
}

@media (max-width: 900px){
  body.alien-side-bg{
    --alien-frame-gutter: 14px;
    --alien-panel-bg: rgba(255, 252, 248, 0.92);
    --alien-panel-bg-solid: rgba(255, 252, 248, 0.95);
  }

  body.alien-side-bg::after{
    background:
      linear-gradient(180deg, rgba(248,244,239,0.08), rgba(238,232,224,0.20));
  }

  body.alien-side-bg > .alien-page-frame{
    padding: 12px;
  }

  body.alien-side-bg > .alien-page-frame,
  body.alien-side-bg > header.site-header,
  body.alien-side-bg > main,
  body.alien-side-bg > footer.site-footer,
  body.alien-side-bg > .simple-footer{
    border-radius: 18px;
  }
}

@media print{
  body.alien-side-bg::before,
  body.alien-side-bg::after{
    display: none !important;
  }

  body.alien-side-bg > .alien-page-frame,
  body.alien-side-bg > header.site-header,
  body.alien-side-bg > main,
  body.alien-side-bg > footer.site-footer,
  body.alien-side-bg > .simple-footer{
    background: #fff !important;
    box-shadow: none !important;
    border-color: #ddd !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
}


/* =========================================================
   제목/서브문구 정렬 공통 고정 (2026.3.22)
   - h1은 항상 가운데 정렬
   - <p class="sub">는 항상 왼쪽 정렬
   - 상세 페이지 개별 inline CSS보다 우선하도록 specificity를 높임
   ========================================================= */

body h1,
body .site-header h1,
body .page-head h1,
body main.overtime-app h1{
  text-align: center !important;
}

body p.sub,
body .site-header p.sub,
body .page-head p.sub,
body main.overtime-app p.sub{
  text-align: left !important;
}



/* =========================================================
   버튼 색상 팔레트 (2026.2.25)
   ========================================================= */

.btn[class*="pastel-"],
.btn.pastel-pink {
  border-color: #222;
  color: #111;
  transition: background-color 0.15s ease, transform 0.05s ease;
}

.btn[class*="pastel-"]:hover,
.btn.pastel-pink:hover {
  transform: translateY(-1px);
}

.btn[class*="pastel-"]:focus-visible,
.btn.pastel-pink:focus-visible {
  outline: 2px solid rgba(17, 17, 17, 0.35);
  outline-offset: 2px;
}

.btn.pastel-yellow { background: #FFF4B8; }
.btn.pastel-yellow:hover { background: #FFEFA0; }

.btn.pastel-blue { background: #E6F0FF; }
.btn.pastel-blue:hover { background: #D7E8FF; }

.btn.paste-pink { background: #FFE4EF; border-color: #222; color: #111; }
.btn.paste-pink:hover { background: #FFD4E4; }
.btn.paste-pink:focus-visible{
  outline: 2px solid rgba(255, 123, 176, 0.55);
  outline-offset: 2px;
}

.btn.pastel-mint { background: #DFF7EA; }
.btn.pastel-mint:hover { background: #CFF2E1; }

.btn.pastel-green { background: #E3F6C9; }
.btn.pastel-green:hover { background: #D4F0B4; }

.btn.pastel-orange { background: #FFE8D1; }
.btn.pastel-orange:hover { background: #FFDDBE; }

.btn.pastel-red { background: #FFD7D7; }
.btn.pastel-red:hover { background: #FFC4C4; }

.btn.pastel-purple { background: #EFE2FF; }
.btn.pastel-purple:hover { background: #E3D1FF; }

.btn.pastel-grey { background: #F3F4F6; border-color: #D4D4D8; }
.btn.pastel-grey:hover { background: #E9EAEE; }

.btn.pastel-teal { background: #D9F5F3; }
.btn.pastel-teal:hover { background: #C7F0ED; }

:root{
  /* 원본(진한 파스텔) */
  --rose-500: #FF5D8F;
  --coral-500:#FF6B6B;
  --peach-500:#FF9F68;
  --apricot-500:#FFB86B;
  --butter-500:#FFE08A;
  --amber-500:#FBBF24;
  --mint-500:#2DD4BF;
  --seafoam-500:#34D399;
  --pistachio-500:#A7F3A0;
  --sky-500:#38BDF8;
  --ice-500:#60A5FA;
  --periwinkle-500:#7C83FF;
  --lavender-500:#A78BFA;
  --grape-500:#C084FC;
  --lilac-500:#E879F9;

  /* 어두운 버전(텍스트용) */
  --rose-700: #C74970;
  --coral-700:#C25151;
  --peach-700:#A66744;
  --apricot-700:#996E40;
  --butter-700:#857448;
  --amber-700:#947115;
  --mint-700:#1C8376;
  --seafoam-700:#218560;
  --pistachio-700:#577E53;
  --sky-700:#257DA4;
  --ice-700:#4678B6;
  --periwinkle-700:#666BD1;
  --lavender-700:#7D68BC;
  --grape-700:#8E62BA;
  --lilac-700:#A757B3;
}

/* 유틸리티 클래스(텍스트 색) */
.text-rose { color: var(--rose-700); }
.text-sky  { color: var(--sky-700); }
.text-mint { color: var(--mint-700); }
.text-grape{ color: var(--grape-700); }

/* 강조는 별도로 */
.accent { font-weight: 700; }

.badge-rose{
  background: var(--rose-500);
  color: var(--rose-700);
  padding: .2em .6em;
  border-radius: 999px;
  font-weight: 700;
}

.table-wrap .simple-table th,
.table-wrap .simple-table td {
  text-align: center;
}



/* =========================================================
   2026 리뉴얼: 홈 전용 허브 UI + 안내 페이지 + 푸터 구조 개선
   ========================================================= */

.sr-only{
  position:absolute !important;
  width:1px !important;
  height:1px !important;
  padding:0 !important;
  margin:-1px !important;
  overflow:hidden !important;
  clip:rect(0,0,0,0) !important;
  white-space:nowrap !important;
  border:0 !important;
}

/* ---------- 홈 공통 ---------- */
.home-page .home-main{
  display:block;
}

.home-page .home-hero{
  position:relative;
  overflow:hidden;
}

.home-page .home-hero::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(circle at top left, rgba(99,102,241,0.08), transparent 42%),
    radial-gradient(circle at bottom right, rgba(34,197,94,0.08), transparent 34%);
  pointer-events:none;
}

.home-page .home-hero-inner{
  position:relative;
  z-index:1;
}

.home-page .home-kicker{
  margin:0 0 8px;
  font-size:0.95rem;
  font-weight:800;
  color:#1d4ed8;
  letter-spacing:0.01em;
  text-align:center;
}

.home-page .home-signature{
  margin:0 0 10px;
  text-align:center;
  color:#4b5563;
  font-size:0.98rem;
  font-weight:600;
}

.home-page .home-hero-copy{
  max-width:780px;
  margin:14px auto 0;
  text-align:center;
  color:#374151;
}

.home-page .home-hero-actions{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:10px;
  margin-top:18px;
}

.home-page .home-hero-actions .btn{
  margin-left:0;
}

.home-badge-row{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  align-items:center;
}

.home-page .home-hero-keywords{
  justify-content:center;
  margin-top:16px;
}

.home-text-pill,
.home-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:999px;
  padding:0.36rem 0.82rem;
  font-size:0.92rem;
  font-weight:700;
  white-space:nowrap;
  border:1px solid #d1d5db;
  background:#fff;
  color:#111827;
}

.home-text-pill{
  background:#f8fafc;
  color:#334155;
}

.home-badge--featured{
  background:#eef2ff;
  border-color:#c7d2fe;
  color:#3730a3;
}

.home-badge--live{
  background:#ecfdf5;
  border-color:#bbf7d0;
  color:#166534;
}

.home-badge--checking{
  background:#fff7ed;
  border-color:#fed7aa;
  color:#9a3412;
}

.home-badge--custom{
  background:#eff6ff;
  border-color:#bfdbfe;
  color:#1d4ed8;
}

.home-badge--experiment{
  background:#f5f3ff;
  border-color:#ddd6fe;
  color:#6d28d9;
}

.home-badge--neutral{
  background:#f9fafb;
  border-color:#e5e7eb;
  color:#374151;
}

.home-section-head{
  display:flex;
  flex-wrap:wrap;
  justify-content:space-between;
  gap:12px;
  align-items:flex-end;
  margin-bottom:14px;
}

.home-section-kicker{
  margin:0 0 4px;
  font-size:0.9rem;
  font-weight:800;
  color:#1d4ed8;
  letter-spacing:0.01em;
}

.home-page .home-section-head h2{
  margin:0;
}

.home-notice-banner{
  padding:14px 16px;
  border:1px solid #f59e0b;
  border-radius:14px;
  background:#fff7ed;
  color:#7c2d12;
  font-weight:700;
}

.home-notice-details{
  margin-top:14px;
  border:1px solid #e5e7eb;
  border-radius:14px;
  padding:12px 14px;
  background:#f9fafb;
}

.home-notice-details > summary{
  list-style:none;
  cursor:pointer;
  font-weight:700;
  display:flex;
  align-items:center;
  gap:8px;
}

.home-notice-details > summary::-webkit-details-marker{
  display:none;
}

.home-notice-details > summary::before{
  content:"▸";
}

.home-notice-details[open] > summary::before{
  content:"▾";
}

.home-search-box{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:12px;
  align-items:stretch;
}

.home-search-box input{
  width:100%;
  min-width:0;
  background:#fff;
  padding:14px 18px;
  border:1px solid #d1d5db;
  border-radius:20px;
  box-shadow:0 1px 2px rgba(17, 24, 39, 0.05);
}

.home-search-box input:focus{
  background:#fff;
  border-color:#b4b4d0;
  box-shadow:0 0 0 3px rgba(180, 180, 208, 0.18);
}

.home-search-actions{
  display:flex;
  align-items:stretch;
  gap:10px;
}

.home-search-actions .btn{
  margin-left:0;
  min-width:108px;
  border-radius:18px;
}

.home-search-submit{
  box-shadow:0 6px 18px rgba(17, 24, 39, 0.08);
}

.home-search-chip-row{
  margin-top:14px;
}

.home-search-status{
  margin:14px 0 0;
  font-weight:700;
  color:#111827;
}

.home-search-results{
  margin-top:16px;
  border-radius:16px;
  border:1px solid #e5e7eb;
  background:#f8fafc;
}

.home-search-results-head{
  display:flex;
  flex-wrap:wrap;
  justify-content:space-between;
  gap:12px;
  align-items:flex-end;
  margin-bottom:14px;
}

.home-search-results-head h3{
  margin:0;
}

.home-search-results-grid{
  display:grid;
  gap:16px;
  grid-template-columns:repeat(2, minmax(0, 1fr));
}

.home-search-results-grid > .card{
  margin:0;
}

.home-search-result-card{
  height:100%;
}

.home-search-result-source{
  display:inline-flex;
  align-items:center;
  width:max-content;
  margin:0;
  padding:6px 10px;
  border-radius:999px;
  background:#eff6ff;
  border:1px solid #bfdbfe;
  color:#1d4ed8;
  font-size:0.88rem;
  font-weight:800;
}

.home-index-note{
  margin:6px 0 0;
  color:#6b7280;
  font-size:0.96rem;
}

.home-search-mark{
  padding:0 0.18em;
  border-radius:0.35em;
  background:#fef08a;
  color:inherit;
}

.home-empty-state{
  margin-top:14px;
}

.home-feature-grid,
.home-package-grid,
.home-guide-grid,
.home-update-grid,
.home-support-grid{
  display:grid;
  gap:16px;
  grid-template-columns:repeat(2, minmax(0, 1fr));
}

.home-card-top{
  display:flex;
  flex-direction:column;
  gap:10px;
}

.home-card-title{
  margin:0;
  font-size:1.18rem;
  line-height:1.35;
}

.home-card-desc{
  margin:0;
  color:#4b5563;
}

.home-card-cta{
  width:100%;
  text-align:center;
  margin-top:auto;
}

.home-feature-card,
.home-package-card,
.home-guide-card,
.home-update-card,
.home-support-card,
.home-index-item{
  height:100%;
  display:flex;
  flex-direction:column;
  gap:14px;
}

.home-meta-list,
.home-compact-meta{
  display:grid;
  gap:10px;
  margin:0;
}

.home-meta-list div,
.home-compact-meta div{
  display:grid;
  grid-template-columns:68px minmax(0,1fr);
  gap:8px;
  align-items:start;
  padding:10px 12px;
  border-radius:12px;
  background:#fff;
  border:1px solid #e5e7eb;
}

.home-meta-list dt,
.home-compact-meta dt{
  font-weight:800;
  color:#111827;
}

.home-meta-list dd,
.home-compact-meta dd{
  margin:0;
  color:#374151;
}

.home-flow-list{
  counter-reset:flow;
  list-style:none;
  margin:0;
  padding:0;
  display:grid;
  gap:10px;
}

.home-flow-list li{
  position:relative;
  padding:12px 12px 12px 46px;
  border:1px solid #e5e7eb;
  border-radius:12px;
  background:#fff;
}

.home-flow-list li::before{
  counter-increment:flow;
  content:counter(flow);
  position:absolute;
  left:12px;
  top:50%;
  transform:translateY(-50%);
  width:24px;
  height:24px;
  border-radius:999px;
  background:#111;
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:0.85rem;
  font-weight:800;
}

.home-inline-links{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}

.home-inline-links--stack{
  flex-direction:column;
  align-items:flex-start;
}

.home-support-card .home-inline-links--stack{
  align-items:stretch;
}

.home-support-card .home-inline-links--stack > a.btn{
  display:block;
  width:100%;
  margin-left:0;
  text-align:center;
}

.home-inline-link{
  display:inline-flex;
  align-items:center;
  padding:8px 12px;
  border-radius:999px;
  border:1px solid #d1d5db;
  background:#fff;
  color:#111827;
  font-weight:700;
}

.home-inline-link:hover{
  background:#eef2ff;
}

.home-guide-preview > .btn{
  margin-top:16px;
}

.home-guide-lead{
  margin:0 0 16px;
}

.home-guide-story{
  margin-top:16px;
}

.home-bullet-list{
  margin:0;
  padding-left:20px;
}

.home-bullet-list li{
  margin:6px 0;
}

.home-category-section{
  margin:14px 0 0;
  padding:0;
  overflow:hidden;
}

.home-category-section:last-child{
  margin-bottom:0;
}

.home-accordion{
  border:1px solid #e5e7eb;
  border-radius:14px;
  background:#fff;
  overflow:hidden;
}

.home-accordion > summary{
  list-style:none;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  padding:16px 18px;
  cursor:pointer;
  background:#f8fafc;
  font-weight:800;
}

.home-accordion > summary::-webkit-details-marker{
  display:none;
}

.home-accordion > summary::before{
  content:"▸";
  flex:0 0 auto;
  margin-right:4px;
}

.home-accordion[open] > summary::before{
  content:"▾";
}

.home-accordion > summary .home-accordion-title{
  margin-right:auto;
}

.home-accordion-meta{
  color:#6b7280;
  font-size:0.95rem;
  font-weight:700;
}

.home-category-desc{
  margin:0;
  padding:0 18px 14px;
  color:#4b5563;
}

.home-index-grid{
  display:grid;
  gap:14px;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  padding:0 18px 18px;
}

.home-index-item-head{
  display:flex;
  flex-wrap:wrap;
  justify-content:space-between;
  gap:10px;
  align-items:flex-start;
}

.home-index-item-title{
  margin:0;
  font-size:1.05rem;
  line-height:1.4;
}

.home-index-item-title a{
  color:inherit;
}

.home-index-item-title a:hover{
  text-decoration:underline;
}

.home-index-open{
  width:100%;
  text-align:center;
  margin-top:auto;
}

.home-downloads .tool-grid{
  margin-top:16px;
  grid-template-columns:repeat(2, minmax(0, 1fr));
}

.home-support-grid{
  align-items:stretch;
}

/* ---------- 푸터 링크 구조 ---------- */
.site-footer .footer-brand{
  margin-bottom:14px;
}

.site-footer .footer-brand-mark{
  display:block;
  font-size:1rem;
  font-weight:800;
  color:#111827;
}

.site-footer .footer-brand-sub{
  display:block;
  margin-top:4px;
  color:#4b5563;
}

.site-footer .footer-link-grid{
  display:grid;
  gap:14px;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  text-align:left;
  margin:18px 0;
}

.site-footer .footer-link-group{
  border:1px solid #e5e7eb;
  border-radius:14px;
  background:#fff;
  padding:14px 16px;
}

.site-footer .footer-link-group-title{
  display:block;
  margin-bottom:8px;
  color:#111827;
  font-weight:800;
}

.site-footer .footer-links{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}

.site-footer .footer-links a{
  display:inline-flex;
  align-items:center;
  padding:7px 10px;
  border-radius:999px;
  border:1px solid #d1d5db;
  background:#f9fafb;
  font-weight:700;
  color:#111827;
}

.site-footer .footer-links a:hover{
  background:#eef2ff;
}

.site-footer .footer-meta{
  margin-top:10px;
  color:#6b7280;
}

/* ---------- FAQ / Contact / Notice ---------- */
.page-hero-sm{
  text-align:center;
}

.page-hero-sm .subtitle{
  margin-top:6px;
}

.info-grid{
  display:grid;
  gap:14px;
  grid-template-columns:repeat(2, minmax(0, 1fr));
}

.faq-list{
  display:grid;
  gap:14px;
}

.faq-item{
  border:1px solid #e5e7eb;
  border-radius:14px;
  background:#fafafa;
  padding:12px 14px;
}

.faq-item summary{
  list-style:none;
  cursor:pointer;
  font-weight:800;
  display:flex;
  align-items:center;
  gap:8px;
}

.faq-item summary::-webkit-details-marker{
  display:none;
}

.faq-item summary::before{
  content:"Q";
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:24px;
  height:24px;
  border-radius:999px;
  background:#111;
  color:#fff;
  font-size:0.86rem;
}

.faq-item .faq-answer{
  margin-top:12px;
  color:#4b5563;
}

.contact-list{
  margin:0;
  padding-left:20px;
}

.contact-list li{
  margin:8px 0;
}

.support-note{
  border:1px dashed #d1d5db;
  border-radius:14px;
  padding:14px 16px;
  background:#fff;
}

/* ---------- 반응형 ---------- */
@media (max-width: 900px){
  .home-feature-grid,
  .home-package-grid,
  .home-guide-grid,
  .home-update-grid,
  .home-support-grid,
  .home-downloads .tool-grid,
  .home-index-grid,
  .home-search-results-grid,
  .info-grid,
  .site-footer .footer-link-grid{
    grid-template-columns:1fr;
  }
}

@media (max-width: 640px){
  .home-search-box{
    grid-template-columns:1fr;
  }

  .home-search-actions{
    display:grid;
    grid-template-columns:repeat(2, minmax(0, 1fr));
  }

  .home-search-actions .btn,
  .home-search-submit{
    width:100%;
    min-width:0;
  }

  .home-search-results-grid{
    grid-template-columns:1fr;
  }

  .home-page .home-hero-actions{
    flex-direction:column;
  }

  .home-page .home-hero-actions .btn,
  .home-card-cta,
  .home-index-open{
    width:100%;
    text-align:center;
  }

  .home-accordion > summary{
    align-items:flex-start;
  }

  .home-meta-list div,
  .home-compact-meta div{
    grid-template-columns:60px minmax(0,1fr);
  }
}


.home-search-chip.is-active,
.home-search-chip[aria-pressed="true"]{
  border-color:#111827;
  background:#eef2ff;
}



/* ===== home search submit + result cards ===== */
.home-search-box{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:12px;
  align-items:center;
}

.home-search-actions{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}

.home-search-box input{
  width:100%;
  min-width:0;
  padding:14px 16px;
  border:1px solid #d1d5db;
  border-radius:18px;
  background:#fff;
  color:#111827;
  font-size:1rem;
  line-height:1.4;
  box-shadow:inset 0 1px 2px rgba(15, 23, 42, 0.04);
}

.home-search-box input:focus{
  outline:none;
  border-color:#2563eb;
  box-shadow:0 0 0 4px rgba(37, 99, 235, 0.12);
}

.home-search-results{
  margin-top:16px;
  padding-top:16px;
  border-top:1px solid #e5e7eb;
}

.home-search-results-head{
  display:flex;
  flex-wrap:wrap;
  justify-content:space-between;
  gap:8px;
  align-items:flex-start;
  margin-bottom:12px;
}

.home-search-result-grid,
.home-feature-grid,
.home-package-grid,
.home-guide-grid,
.home-update-grid,
.home-support-grid{
  display:grid;
  gap:16px;
  grid-template-columns:repeat(2, minmax(0, 1fr));
}

.home-search-result-card{
  height:100%;
  display:flex;
  flex-direction:column;
  gap:14px;
}

.home-support-card .home-inline-links--stack{
  align-items:stretch;
}

.home-support-card .home-inline-links--stack > a{
  display:block;
  width:100%;
  box-sizing:border-box;
  text-align:center;
}

@media (max-width: 900px){
  .home-search-result-grid,
  .home-feature-grid,
  .home-package-grid,
  .home-guide-grid,
  .home-update-grid,
  .home-support-grid,
  .home-downloads .tool-grid,
  .home-index-grid,
  .info-grid,
  .site-footer .footer-link-grid{
    grid-template-columns:1fr;
  }
}

@media (max-width: 640px){
  .home-search-box{
    grid-template-columns:1fr;
  }

  .home-search-actions{
    width:100%;
  }

  .home-search-actions .btn,
  .home-page .home-hero-actions .btn,
  .home-card-cta,
  .home-index-open{
    width:100%;
    text-align:center;
  }
}


/* ---------- 홈 검색 버튼형 UX 보강 ---------- */
.home-search-box{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:12px;
  align-items:stretch;
}

.home-search-box input{
  width:100%;
  min-width:0;
  min-height:52px;
  padding:14px 16px;
  border-radius:18px;
  background:#fff;
}

.home-search-actions{
  display:flex;
  gap:10px;
}

.home-search-actions .btn{
  min-height:52px;
  border-radius:18px;
  white-space:nowrap;
}

.home-search-help{
  margin:10px 0 0;
  color:#6b7280;
}

.home-search-results{
  margin-top:16px;
}

.home-search-results-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:12px;
  margin-bottom:14px;
}

.home-search-result-grid{
  display:grid;
  gap:14px;
  grid-template-columns:repeat(2, minmax(0, 1fr));
}

.home-search-result-card{
  height:100%;
}

.home-support-card .home-inline-links--stack{
  align-items:stretch;
}

.home-support-card .home-inline-links--stack > a.btn{
  display:block;
  width:100%;
  box-sizing:border-box;
  text-align:center;
}

@media (max-width: 900px){
  .home-search-result-grid{
    grid-template-columns:1fr;
  }
}

@media (max-width: 640px){
  .home-search-actions{
    display:grid;
    grid-template-columns:repeat(2, minmax(0, 1fr));
  }

  .home-search-actions .btn{
    width:100%;
    text-align:center;
  }

  .home-search-results-head{
    flex-direction:column;
  }
}

/* ===== home search interaction v2 ===== */
.home-search-box{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto auto;
  gap:12px;
  align-items:stretch;
}

.home-search-box input{
  width:100%;
  min-width:0;
  min-height:50px;
  padding:0 16px;
  border:1px solid #d1d5db;
  border-radius:18px;
  background:#fff;
  color:#111827;
  font-size:1rem;
  line-height:1.4;
  box-shadow:inset 0 1px 2px rgba(15, 23, 42, 0.04);
}

.home-search-box input:focus{
  outline:none;
  border-color:#2563eb;
  box-shadow:0 0 0 4px rgba(37, 99, 235, 0.12);
}

.home-search-box .btn{
  min-height:50px;
  border-radius:18px;
  margin-left:0;
}

.home-search-result-head{
  margin-bottom:12px;
}

.home-search-result-head h3{
  margin:0;
}

.home-search-result-grid{
  display:grid;
  gap:16px;
  grid-template-columns:repeat(2, minmax(0, 1fr));
}

.home-search-result-grid > .card{
  margin:0;
}

.home-search-result-card{
  height:100%;
  display:flex;
  flex-direction:column;
  gap:14px;
}

.home-support-card .home-inline-links--stack{
  gap:12px;
  align-items:stretch;
}

.home-support-card .home-inline-links--stack > a.btn{
  display:block;
  width:100%;
  box-sizing:border-box;
  text-align:center;
  margin-left:0;
}

@media (max-width: 900px){
  .home-search-result-grid{
    grid-template-columns:1fr;
  }
}

@media (max-width: 640px){
  .home-search-box{
    grid-template-columns:1fr;
  }

  .home-search-box .btn{
    width:100%;
  }

  .home-search-result-grid{
    grid-template-columns:1fr;
  }
}

/* ===== home search UX polish (submit-based search) ===== */
.home-search-box{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:12px;
  align-items:stretch;
}

.home-search-actions{
  display:flex;
  gap:10px;
  align-items:stretch;
}

.home-search-box input{
  width:100%;
  min-width:0;
  min-height:56px;
  padding:14px 18px;
  border:1px solid #d1d5db;
  border-radius:22px;
  background:#fff;
  color:#111827;
  font-size:1rem;
  line-height:1.4;
}

.home-search-box input:focus,
.home-search-box input:focus-visible{
  outline:none;
  border-color:#2563eb;
  box-shadow:0 0 0 4px rgba(37, 99, 235, 0.12);
}

.home-search-actions .btn,
.home-search-submit{
  min-height:56px;
  border-radius:18px;
  margin-left:0;
}

.home-search-results{
  margin-top:18px;
  padding-top:18px;
  border-top:1px solid #e5e7eb;
}

.home-search-results-grid{
  display:grid;
  gap:16px;
  grid-template-columns:repeat(2, minmax(0, 1fr));
}

.home-search-result-item{
  height:100%;
}

@media (max-width: 640px){
  .home-search-box{
    grid-template-columns:1fr;
  }

  .home-search-actions{
    width:100%;
    flex-direction:column;
  }

  .home-search-actions .btn,
  .home-search-submit{
    width:100%;
    min-width:0;
  }

  .home-search-results-grid{
    grid-template-columns:1fr;
  }
}

/* =========================================================
   2026-04 warm pastel yellow home polish
   ========================================================= */

body.home-page.alien-side-bg{
  --alien-panel-bg: rgba(255, 251, 240, 0.86);
  --alien-panel-bg-solid: rgba(255, 249, 233, 0.93);
  --alien-line: rgba(120, 98, 38, 0.12);
  --alien-shadow-1: rgba(120, 98, 38, 0.10);
  --alien-shadow-2: rgba(120, 98, 38, 0.05);
  background:#f5efde;
}

.home-page{
  --home-warm-surface:#fffef7;
  --home-warm-surface-2:#fff9ea;
  --home-warm-surface-3:#fff2be;
  --home-warm-border:#eadfbc;
  --home-warm-border-strong:#d9c47a;
  --home-warm-text:#4d3d16;
  --home-warm-muted:#746953;
  --home-warm-accent:#8a6a18;
  --home-warm-shadow:rgba(150, 118, 28, 0.10);
  --home-warm-shadow-strong:rgba(150, 118, 28, 0.16);
}

.home-page .home-hero::before{
  background:
    radial-gradient(circle at top left, rgba(255, 219, 102, 0.22), transparent 44%),
    radial-gradient(circle at bottom right, rgba(255, 193, 94, 0.18), transparent 38%),
    radial-gradient(circle at 50% 0%, rgba(255, 245, 199, 0.36), transparent 58%);
}

.home-page .home-kicker,
.home-page .home-section-kicker{
  color:var(--home-warm-accent);
}

.home-page .subtitle,
.home-page .home-signature,
.home-page .home-hero-copy,
.home-page .home-card-desc,
.home-page .home-category-desc,
.home-page .home-guide-lead,
.home-page .home-guide-story,
.home-page .home-index-note,
.home-page .home-search-help,
.home-page .home-search-status,
.home-page .muted{
  color:var(--home-warm-muted);
}

.home-page .btn.primary{
  background:linear-gradient(180deg, #fff3c2 0%, #ffebb0 100%);
  border-color:#d4bd70;
  color:var(--home-warm-text);
  box-shadow:0 8px 18px var(--home-warm-shadow);
}

.home-page .btn.primary:hover{
  background:linear-gradient(180deg, #fff0b7 0%, #ffe59a 100%);
  border-color:#c8ae57;
}

.home-page .btn.ghost{
  background:#fffdf6;
  border-color:var(--home-warm-border);
  color:#5e4e22;
}

.home-page .btn.ghost:hover{
  background:#fff5cf;
  border-color:var(--home-warm-border-strong);
}

.home-page .btn.pastel-yellow{
  background:#fff2be;
  border-color:#d7c273;
  color:var(--home-warm-text);
}

.home-page .btn.pastel-yellow:hover{
  background:#ffecaa;
}

.home-page .btn:focus-visible,
.home-page .chip:focus-visible,
.home-page .home-search-box input:focus,
.home-page .home-search-box input:focus-visible{
  outline:none;
  border-color:#d2b455;
  box-shadow:0 0 0 4px rgba(210, 180, 85, 0.18);
}

.home-page .chip,
.home-page .home-inline-link,
.home-page .site-footer .footer-links a,
.home-page .home-text-pill,
.home-page .home-badge{
  background:#fffdf6;
  border-color:var(--home-warm-border);
  color:#5a4a22;
}

.home-page .chip:hover,
.home-page .home-inline-link:hover,
.home-page .site-footer .footer-links a:hover{
  background:#fff4cb;
  border-color:var(--home-warm-border-strong);
  box-shadow:0 8px 18px rgba(150, 118, 28, 0.08);
}

.home-page .home-search-chip.is-active,
.home-page .home-search-chip[aria-pressed="true"]{
  background:#fff0b8;
  border-color:#d1ba67;
  color:var(--home-warm-text);
}

.home-page .home-text-pill{
  background:#fff6d2;
}

.home-page .home-badge--featured{
  background:#fff3bf;
  border-color:#e3cf87;
  color:#5f4a14;
}

.home-page .home-badge--live{
  background:#eef8e9;
  border-color:#cfe8bf;
  color:#3d6c1d;
}

.home-page .home-badge--checking{
  background:#fff4e2;
  border-color:#efc998;
  color:#995812;
}

.home-page .home-badge--custom{
  background:#fff1dc;
  border-color:#ecc99e;
  color:#8a5a19;
}

.home-page .home-badge--experiment{
  background:#faf2ff;
  border-color:#e1cff5;
  color:#7d4ea8;
}

.home-page .home-notice-banner{
  background:linear-gradient(180deg, #fff8dd 0%, #fff1c3 100%);
  border-color:#e4ca78;
  color:#6c5315;
}

.home-page .home-notice-details,
.home-page .home-search-results,
.home-page .home-accordion,
.home-page .home-feature-card,
.home-page .home-package-card,
.home-page .home-guide-card,
.home-page .home-update-card,
.home-page .home-support-card,
.home-page .home-index-item,
.home-page .site-footer .footer-link-group,
.home-page .faq-item,
.home-page .support-note{
  background:linear-gradient(180deg, #fffef8 0%, #fff9eb 100%);
  border-color:var(--home-warm-border);
  box-shadow:0 10px 22px var(--home-warm-shadow);
}

.home-page .home-meta-list div,
.home-page .home-compact-meta div,
.home-page .home-flow-list li{
  background:#fffdf5;
  border-color:#eee2c5;
}

.home-page .home-flow-list li::before{
  background:#f3db86;
  color:#4d3d16;
}

.home-page .home-search-results{
  border-color:var(--home-warm-border);
}

.home-page .home-search-mark{
  background:#fff0a8;
}

.home-page .home-search-box input{
  background:#fffdf7;
  border-color:var(--home-warm-border);
  border-radius:24px;
  box-shadow:inset 0 1px 2px rgba(113, 86, 21, 0.05);
}

.home-page .home-accordion > summary{
  background:linear-gradient(180deg, #fffdf4 0%, #fff6cf 100%);
  color:var(--home-warm-text);
  border-bottom:1px solid rgba(217, 196, 122, 0.42);
  transition:
    background-color 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease,
    transform 0.22s ease,
    color 0.22s ease;
}

.home-page .home-accordion > summary::before{
  content:"▸";
  color:#9d7a21;
  transition:transform 0.22s ease, color 0.22s ease;
}

.home-page .home-accordion[open] > summary::before{
  content:"▸";
  transform:rotate(90deg);
}

.home-page .home-accordion-meta{
  color:#8a7441;
}

.home-page .home-feature-card,
.home-page .home-package-card,
.home-page .home-index-item,
.home-page .home-search-result-grid > .card{
  transition:
    transform 0.24s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.24s ease,
    border-color 0.24s ease,
    background-color 0.24s ease,
    filter 0.24s ease;
}

.home-page .home-feature-grid > .home-feature-card,
.home-page .home-package-grid > .home-package-card{
  animation:homeWarmCardIn 0.52s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.home-page .home-feature-grid > *:nth-child(1),
.home-page .home-package-grid > *:nth-child(1){ animation-delay:0.03s; }
.home-page .home-feature-grid > *:nth-child(2),
.home-page .home-package-grid > *:nth-child(2){ animation-delay:0.06s; }
.home-page .home-feature-grid > *:nth-child(3),
.home-page .home-package-grid > *:nth-child(3){ animation-delay:0.09s; }
.home-page .home-feature-grid > *:nth-child(4),
.home-page .home-package-grid > *:nth-child(4){ animation-delay:0.12s; }
.home-page .home-feature-grid > *:nth-child(5),
.home-page .home-package-grid > *:nth-child(5){ animation-delay:0.15s; }
.home-page .home-feature-grid > *:nth-child(6),
.home-page .home-package-grid > *:nth-child(6){ animation-delay:0.18s; }

.home-page .home-search-result-grid > .home-search-result-card{
  animation:homeWarmCardIn 0.34s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes homeWarmCardIn{
  from{
    opacity:0;
    transform:translateY(18px) scale(0.985);
  }
  to{
    opacity:1;
    transform:translateY(0) scale(1);
  }
}

@media (hover:hover) and (pointer:fine){
  .home-page .home-feature-card:hover,
  .home-page .home-package-card:hover,
  .home-page .home-index-item:hover,
  .home-page .home-search-result-grid > .card:hover{
    transform:translateY(-6px);
    border-color:var(--home-warm-border-strong);
    background:linear-gradient(180deg, #fffef9 0%, #fff4cf 100%);
    box-shadow:0 18px 34px var(--home-warm-shadow-strong);
  }

  .home-page .home-feature-card:hover .home-card-title,
  .home-page .home-package-card:hover .home-card-title,
  .home-page .home-search-result-grid > .card:hover .home-card-title,
  .home-page .home-index-item:hover .home-index-item-title a{
    color:#4a3810;
  }

  .home-page .home-accordion > summary:hover{
    background:linear-gradient(180deg, #fff9df 0%, #fff0ba 100%);
    box-shadow:inset 0 0 0 1px rgba(217, 196, 122, 0.38);
  }

  .home-page .home-accordion > summary:hover::before{
    color:#7e6216;
    transform:translateX(2px);
  }

  .home-page .home-accordion[open] > summary:hover::before{
    transform:rotate(90deg) translateX(2px);
  }
}

.home-page .home-index-item-title a:hover{
  color:#4a3810;
}

.home-page .site-footer .footer-brand-mark,
.home-page .site-footer .footer-link-group-title{
  color:var(--home-warm-text);
}

.home-page .site-footer .footer-brand-sub,
.home-page .site-footer .footer-meta{
  color:var(--home-warm-muted);
}

@media (prefers-reduced-motion: reduce){
  .home-page .home-feature-grid > *,
  .home-page .home-package-grid > *,
  .home-page .home-search-result-grid > *,
  .home-page .home-feature-card,
  .home-page .home-package-card,
  .home-page .home-index-item,
  .home-page .home-search-result-grid > .card,
  .home-page .home-accordion > summary,
  .home-page .btn,
  .home-page .chip{
    animation:none !important;
    transition:none !important;
  }
}

/* Search results stay inside the same search section */
.home-search-output{
  display:grid;
  gap:14px;
  margin-top:14px;
}

.home-search-output[hidden]{
  display:none !important;
}

.home-search-output .home-search-results,
.home-search-output .home-empty-state{
  margin:0;
}

.home-page .home-search-output{
  gap:16px;
}

.home-page .home-search-output .home-search-results,
.home-page .home-search-output .home-empty-state{
  background:linear-gradient(180deg, #fffef8 0%, #fff9eb 100%);
  border-color:var(--home-warm-border);
  box-shadow:0 10px 22px var(--home-warm-shadow);
}


/* =========================================================
   홈 색상 제어 포인트
   - 홈화면 색을 다시 바꾸려면 이 블록부터 수정하면 됩니다.
   ========================================================= */
.home-page{
  --home-ui-page-bg:#f5efde;
  --home-ui-card-bg-start:#fffef8;
  --home-ui-card-bg-end:#fff9eb;
  --home-ui-card-hover-end:#fff4cf;
  --home-ui-border:#eadfbc;
  --home-ui-border-strong:#d9c47a;
  --home-ui-text:#4d3d16;
  --home-ui-muted:#746953;
  --home-ui-accent:#8a6a18;
  --home-ui-shadow:rgba(150, 118, 28, 0.10);
  --home-ui-shadow-strong:rgba(150, 118, 28, 0.16);
  --home-ui-hero-bg:#ffffff;
  --home-ui-header-bg:#ffffff;
  --home-ui-header-hover-bg:#ffffff;
  --home-ui-header-line:rgba(17, 24, 39, 0.08);
}

body.home-page.alien-side-bg{
  background:var(--home-ui-page-bg);
}

.home-page .home-kicker,
.home-page .home-section-kicker{
  color:var(--home-ui-accent);
}

.home-page .subtitle,
.home-page .home-signature,
.home-page .home-hero-copy,
.home-page .home-card-desc,
.home-page .home-category-desc,
.home-page .home-guide-lead,
.home-page .home-guide-story,
.home-page .home-index-note,
.home-page .home-search-help,
.home-page .home-search-status,
.home-page .muted{
  color:var(--home-ui-muted);
}

.home-page .home-hero{
  background:var(--home-ui-hero-bg);
  border-color:var(--home-ui-header-line);
  box-shadow:0 14px 30px rgba(17, 24, 39, 0.08);
}

.home-page .home-hero::before{
  background:none;
}

.home-page .quick-nav,
.home-page .site-header,
.home-page .home-accordion > summary{
  background:var(--home-ui-header-bg);
}

.home-page .home-accordion > summary{
  color:var(--home-ui-text);
  border-bottom:1px solid rgba(17, 24, 39, 0.06);
}

.home-page .home-accordion > summary:hover{
  background:var(--home-ui-header-hover-bg);
}

.home-page .home-notice-details,
.home-page .home-search-results,
.home-page .home-accordion,
.home-page .home-feature-card,
.home-page .home-package-card,
.home-page .home-guide-card,
.home-page .home-update-card,
.home-page .home-support-card,
.home-page .home-index-item,
.home-page .site-footer .footer-link-group,
.home-page .faq-item,
.home-page .support-note,
.home-page .home-search-output .home-empty-state{
  background:linear-gradient(180deg, var(--home-ui-card-bg-start) 0%, var(--home-ui-card-bg-end) 100%);
  border-color:var(--home-ui-border);
  box-shadow:0 10px 22px var(--home-ui-shadow);
}

.home-page .home-feature-card:hover,
.home-page .home-package-card:hover,
.home-page .home-index-item:hover,
.home-page .home-search-result-grid > .card:hover{
  background:linear-gradient(180deg, var(--home-ui-card-bg-start) 0%, var(--home-ui-card-hover-end) 100%);
  border-color:var(--home-ui-border-strong);
  box-shadow:0 18px 34px var(--home-ui-shadow-strong);
}

.home-page .home-index-item{
  position:relative;
  cursor:pointer;
}

.home-page .home-index-item.is-card-link:focus-visible{
  outline:none;
  border-color:var(--home-ui-border-strong);
  box-shadow:0 0 0 4px rgba(217, 196, 122, 0.20), 0 18px 34px var(--home-ui-shadow-strong);
}

.home-page .home-index-open{
  display:none !important;
}

/* =========================================================
   홈 패키지 단계 버튼 + 레트로 기본 화면 보강 (2026-04)
   ========================================================= */

.home-page .home-flow-list li{
  padding:0;
  border:0;
  background:transparent;
}

.home-page .home-flow-list li::before{
  content:none;
}

.home-page .home-flow-link{
  display:flex;
  align-items:center;
  gap:12px;
  width:100%;
  padding:12px 14px;
  border-radius:14px;
  border:1px solid var(--home-ui-border);
  background:#fffdf5;
  color:var(--home-ui-text);
  font-weight:800;
  line-height:1.4;
  box-shadow:0 6px 14px rgba(0, 0, 0, 0.04);
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    border-color 0.22s ease,
    background-color 0.22s ease,
    color 0.22s ease;
}

.home-page .home-flow-link__num{
  flex:0 0 28px;
  width:28px;
  height:28px;
  border-radius:999px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#f3db86;
  color:var(--home-ui-text);
  font-size:0.88rem;
  font-weight:800;
}

.home-page .home-flow-link__text{
  flex:1;
  min-width:0;
}

@media (hover:hover) and (pointer:fine){
  .home-page .home-flow-link:hover{
    transform:translateY(-2px);
    background:linear-gradient(180deg, var(--home-ui-card-bg-start) 0%, var(--home-ui-card-hover-end) 100%);
    border-color:var(--home-ui-border-strong);
    box-shadow:0 12px 22px var(--home-ui-shadow);
  }
}

.home-page .home-flow-link:focus-visible{
  outline:none;
  border-color:var(--home-ui-border-strong);
  box-shadow:0 0 0 4px rgba(217, 196, 122, 0.18), 0 12px 22px var(--home-ui-shadow);
}

html[data-theme="retro"] body.home-page.alien-side-bg{
  --alien-panel-bg: rgba(255, 249, 232, 0.90);
  --alien-panel-bg-solid: rgba(255, 249, 232, 0.95);
  --alien-line: rgba(22, 22, 22, 0.20);
  --alien-shadow-1: rgba(22, 22, 22, 0.16);
  --alien-shadow-2: rgba(22, 22, 22, 0.08);
  background:#fff5d8;
}

html[data-theme="retro"] .home-page{
  --home-ui-page-bg:#fff5d8;
  --home-ui-card-bg-start:#fffdf1;
  --home-ui-card-bg-end:#fff8d6;
  --home-ui-card-hover-end:#ffefb4;
  --home-ui-border:#161616;
  --home-ui-border-strong:#161616;
  --home-ui-text:#121212;
  --home-ui-muted:#48505c;
  --home-ui-accent:#c03a72;
  --home-ui-shadow:rgba(22, 22, 22, 0.24);
  --home-ui-shadow-strong:rgba(22, 22, 22, 0.35);
  --home-ui-hero-bg:#fffdf1;
  --home-ui-header-bg:#fffdf1;
  --home-ui-header-hover-bg:#fff7d7;
  --home-ui-header-line:rgba(22, 22, 22, 0.16);
}

html[data-theme="retro"] .home-page .home-hero,
html[data-theme="retro"] .home-page .home-notice-details,
html[data-theme="retro"] .home-page .home-search-results,
html[data-theme="retro"] .home-page .home-accordion,
html[data-theme="retro"] .home-page .home-feature-card,
html[data-theme="retro"] .home-page .home-package-card,
html[data-theme="retro"] .home-page .home-guide-card,
html[data-theme="retro"] .home-page .home-update-card,
html[data-theme="retro"] .home-page .home-support-card,
html[data-theme="retro"] .home-page .home-index-item,
html[data-theme="retro"] .home-page .site-footer .footer-link-group,
html[data-theme="retro"] .home-page .home-search-output .home-empty-state{
  border-width:2px;
  box-shadow:6px 6px 0 rgba(22, 22, 22, 0.45);
}

html[data-theme="retro"] .home-page .home-accordion > summary{
  border-bottom:2px solid rgba(22, 22, 22, 0.16);
}

html[data-theme="retro"] .home-page .home-flow-link{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
    "Courier New", "Apple SD Gothic Neo", "Noto Sans KR", "맑은 고딕", monospace;
  background:var(--retro-surface-2);
  border:2px solid var(--retro-border);
  border-radius:10px;
  box-shadow:4px 4px 0 rgba(22, 22, 22, 0.45);
}

html[data-theme="retro"] .home-page .home-flow-link__num{
  background:#111;
  color:#fff;
  border:2px solid var(--retro-border);
  box-shadow:2px 2px 0 rgba(22, 22, 22, 0.22);
}

@media (hover:hover) and (pointer:fine){
  html[data-theme="retro"] .home-page .home-flow-link:hover{
    transform:translate(-1px, -1px);
    background:#fff7d4;
    box-shadow:5px 5px 0 rgba(22, 22, 22, 0.50);
  }

  html[data-theme="retro"] .home-page .home-feature-card:hover,
  html[data-theme="retro"] .home-page .home-package-card:hover,
  html[data-theme="retro"] .home-page .home-index-item:hover,
  html[data-theme="retro"] .home-page .home-search-result-grid > .card:hover{
    transform:translate(-2px, -2px);
    box-shadow:8px 8px 0 rgba(22, 22, 22, 0.50);
  }
}

html[data-theme="retro"] .home-page .home-index-item.is-card-link:focus-visible{
  box-shadow:0 0 0 4px rgba(255, 93, 143, 0.18), 8px 8px 0 rgba(22, 22, 22, 0.50);
}


/* =========================================================
   홈 인덱스 카드 클릭/화이트 배경/공지 버튼 보강 (2026-04-13)
   ========================================================= */

.home-page .home-index-item,
.home-page .home-search-result-grid .home-index-item{
  background:#ffffff;
  background-image:none;
}

@media (hover:hover) and (pointer:fine){
  .home-page .home-index-item:hover,
  .home-page .home-search-result-grid .home-index-item:hover{
    background:#ffffff;
  }
}

.home-page .home-index-item .home-index-item-title a{
  text-decoration:none;
}

.home-page .home-index-item.is-card-link{
  cursor:pointer;
}

.home-page .home-index-item.is-card-link:focus-visible{
  outline:none;
}

.home-page .home-notice-details[open] > summary{
  margin-bottom:12px;
}

.home-page .home-notice-link{
  display:block;
  width:100%;
  box-sizing:border-box;
  margin-top:14px;
  margin-left:0;
  text-align:center;
  border-radius:12px;
}

.home-page .home-notice-link.btn.black{
  box-shadow:0 8px 18px rgba(17, 24, 39, 0.10);
}

.home-page .home-notice-link.btn.black:hover{
  box-shadow:0 10px 20px rgba(17, 24, 39, 0.16);
}

/* =========================================================
   홈 카드 전체 클릭 범위 확장 (2026-04-13)
   ========================================================= */

.home-page .home-feature-card.is-card-link,
.home-page .home-package-card.is-card-link,
.home-page .home-index-item.is-card-link,
.home-page .home-guide-card.is-card-link,
.home-page .home-search-result-card.is-card-link{
  position:relative;
  cursor:pointer;
}

.home-page .home-feature-card.is-card-link:focus-visible,
.home-page .home-package-card.is-card-link:focus-visible,
.home-page .home-index-item.is-card-link:focus-visible,
.home-page .home-guide-card.is-card-link:focus-visible,
.home-page .home-search-result-card.is-card-link:focus-visible{
  outline:none;
  border-color:var(--home-ui-border-strong);
  box-shadow:0 0 0 4px rgba(217, 196, 122, 0.20), 0 18px 34px var(--home-ui-shadow-strong);
}

html[data-theme="retro"] .home-page .home-feature-card.is-card-link:focus-visible,
html[data-theme="retro"] .home-page .home-package-card.is-card-link:focus-visible,
html[data-theme="retro"] .home-page .home-index-item.is-card-link:focus-visible,
html[data-theme="retro"] .home-page .home-guide-card.is-card-link:focus-visible,
html[data-theme="retro"] .home-page .home-search-result-card.is-card-link:focus-visible{
  outline:none;
  box-shadow:0 0 0 4px rgba(255, 93, 143, 0.18), 8px 8px 0 rgba(22, 22, 22, 0.50);
}