/* 『서리꽃』 독자서평대회 접수 페이지
   디자인 언어: 해냄출판사 톤(흰 바탕 · 해냄 빨강 · SUIT 본문 · Noto Serif KR 제목 · 검정 푸터)
   『서리꽃』 표지 톤(밤색 · 금빛 · 적갈색)은 작품 소개와 대표상 카드에만 쓴다.
   색 · 글자 크기 · 굵기는 모두 아래 :root 토큰만 참조한다. 리터럴 직접 사용 금지.
   글자 크기와 굵기는 샘플 사이트 값에 맞춘다(2026-10-07 사용자 지시). */

:root {
  /* 색 ------------------------------------------------------------------ */
  --red: #e60012;
  --red-dark: #c4000f;
  --ink: #222222;
  --ink-soft: #595959;
  --ink-faint: #6e6e6e;
  --line: #e6e3de;
  --paper: #f6f2ec;
  --border: #8f8a80;
  --white: #ffffff;
  --night: #16171b;
  --gold: #c19a55;
  --rust: #7a3e35;
  --on-night: #e7e3da;
  --on-night-soft: #b7b2a8;
  --ok: #1b6b36;
  --ok-bg: #e8f4ec;
  --alert-bg: #fff5f5;
  --shade-soft: rgba(34, 34, 34, .12);
  --shade-strong: rgba(22, 23, 27, .22);

  /* 글꼴 ---------------------------------------------------------------- */
  --sans: "SUIT", "Noto Sans KR", "Malgun Gothic", sans-serif;
  --serif: "Noto Serif KR", "Nanum Myeongjo", serif;

  /* 타입 스케일 — 샘플(hainaim-review.vercel.app)의 크기를 그대로 옮긴 값이다 ------- */
  --text-2xs: 0.6875rem;   /* 11 경고 아이콘 */
  --text-xs: 0.8125rem;    /* 13 도움말 · 푸터 */
  --text-sm: 0.875rem;     /* 14 보조 */
  --text-note: 0.9375rem;  /* 15 라벨 · 보조 본문 */
  --text-base: 1rem;       /* 16 입력 · 버튼(모바일에서도 16 — iOS 확대 방지) */
  --text-body: 1rem;       /* 본문. 모바일에서는 15 */
  --text-quote: 1.0625rem; /* 17 인용 */
  --text-md: 1.125rem;     /* 18 소제목 */
  --text-lg: 1.375rem;     /* 22 */
  --text-entry: 1.5rem;    /* 24 응모번호 */
  --text-xl: 1.625rem;     /* 26 */
  --text-2xl: 1.75rem;     /* 28 대표상 */
  --text-lead: clamp(1.0625rem, 2.2vw, 1.375rem);
  --text-h2: clamp(1.625rem, 3.4vw, 2.125rem);
  --text-h1: clamp(2rem, 5vw, 3.375rem);

  /* 굵기 — 샘플과 같은 단계 ------------------------------------------------ */
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;
  --weight-heavy: 800;

  /* 치수 ---------------------------------------------------------------- */
  --header-h: 4.25rem;
  --tap: 2.75rem;
  --radius: 0.25rem;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 0.75rem);
  scroll-padding-bottom: 6rem;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--text-body);
  font-weight: var(--weight-regular);
  line-height: 1.7;
  word-break: keep-all;
  overflow-wrap: break-word;
  /* overflow-x: hidden 은 두지 않는다 — 가로 넘침을 고치는 게 아니라 가려서
     렌더링 실측을 무의미하게 만든다. 넘침이 보이면 원인을 찾아 고친다. */
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { text-wrap: balance; font-weight: var(--weight-bold); }

:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.site-footer :focus-visible,
.award.grand :focus-visible { outline-color: var(--white); }

.skip-link {
  position: absolute; left: 0.75rem; top: -6rem; z-index: 100;
  padding: 0.75rem 1.25rem; background: var(--ink); color: var(--white);
  font-size: var(--text-sm); font-weight: var(--weight-medium);
  border-radius: var(--radius); text-decoration: none;
  transition: top .15s;
}
.skip-link:focus { top: 0.75rem; }

.wrap { width: 100%; max-width: 73.75rem; margin: 0 auto; padding-inline: 1.25rem; }
.wrap.narrow { max-width: 51.25rem; }

/* 헤더 ------------------------------------------------------------------ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--white); border-bottom: 1px solid var(--line);
}
.header-inner { min-height: var(--header-h); display: flex; align-items: center; gap: 2rem; }
.logo { display: flex; align-items: center; }
.logo img { height: 2.375rem; width: auto; }
.header-nav { display: flex; gap: 1.75rem; margin-right: auto; }
.header-nav a {
  display: inline-flex; align-items: center; min-height: var(--tap);
  text-decoration: none; color: var(--ink);
  font-size: var(--text-note); font-weight: var(--weight-semibold);
}
.header-nav a:hover { color: var(--red-dark); }
.header-status {
  display: inline-flex; align-items: center; min-height: var(--tap);
  padding-inline: 0.25rem; text-decoration: none; color: var(--ink);
  font-size: var(--text-sm); font-weight: var(--weight-bold);
}
.header-status:hover { color: var(--red-dark); }

/* 버튼 ------------------------------------------------------------------ */
.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3.25rem; padding: 0 1.75rem;
  border: 1px solid transparent; border-radius: var(--radius);
  font-size: var(--text-base); font-weight: var(--weight-bold);
  text-decoration: none; cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
.button.primary { background: var(--red); color: var(--white); }
.button.primary:hover { background: var(--red-dark); }
.button.ghost { background: var(--white); color: var(--ink); border-color: var(--border); }
.button.ghost:hover { border-color: var(--ink); }
.button.small { min-height: var(--tap); padding: 0 1.125rem; font-size: var(--text-sm); }
.button.block { display: flex; width: 100%; }
.button:disabled { opacity: .65; cursor: progress; }

/* 히어로 ---------------------------------------------------------------- */
.hero { background: var(--paper); }
.hero-visual img { width: 100%; }
.hero-copy {
  padding-block: 2.75rem 3.5rem;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.5rem 3rem; align-items: end;
}
.eyebrow {
  grid-column: 1 / -1; margin: 0; color: var(--red-dark);
  font-size: var(--text-sm); font-weight: var(--weight-bold); letter-spacing: .04em;
}
.hero h1 {
  grid-column: 1 / -1; margin: 0; font-family: var(--serif);
  font-size: var(--text-h1); line-height: 1.25; letter-spacing: -.02em;
}
.hero h1 .book-title { color: var(--rust); }
.hero-line { margin: 0; font-family: var(--serif); font-size: var(--text-lead); color: var(--ink-soft); }
.hero-facts { grid-column: 1; margin: 1.25rem 0 0; display: grid; gap: 0.375rem; }
.hero-facts div { display: flex; gap: 1rem; }
.hero-facts dt { flex: 0 0 4.5rem; color: var(--ink-faint); font-size: var(--text-sm); padding-top: 2px; }
.hero-facts dd { margin: 0; font-weight: var(--weight-bold); font-variant-numeric: tabular-nums; }
.hero-actions { grid-column: 2; grid-row: 3 / span 2; display: flex; gap: 0.625rem; align-self: end; }

/* 공통 섹션 ------------------------------------------------------------- */
.section { padding-block: 5.5rem; }
.section-head { margin-bottom: 2.5rem; }
.section-head.center { text-align: center; }
.kicker { margin: 0 0 0.5rem; color: var(--red-dark); font-size: var(--text-sm); font-weight: var(--weight-bold); }
.section h2 { margin: 0; font-size: var(--text-h2); line-height: 1.35; letter-spacing: -.02em; }
.section-desc { margin: 0.75rem 0 0; color: var(--ink-soft); }

/* 작품 소개 ------------------------------------------------------------- */
.book { background: var(--white); }
.book-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 4rem; align-items: center; }
.book-covers { display: flex; gap: 1.125rem; justify-content: center; }
.book-covers img { width: min(13.75rem, 44%); box-shadow: 0 1.125rem 2.5rem var(--shade-strong); }
.book-covers img:last-child { transform: translateY(1.75rem); }
.book-sub { margin: 0.625rem 0 0; color: var(--red-dark); font-weight: var(--weight-bold); }
.book blockquote {
  margin: 1.75rem 0; padding: 1.375rem 1.625rem;
  background: var(--paper); border-left: 3px solid var(--rust);
  font-family: var(--serif); font-size: var(--text-quote); line-height: 1.9;
}
.book blockquote p { margin: 0; }
.book blockquote cite {
  display: block; margin-top: 0.625rem; font-family: var(--sans); font-style: normal;
  font-size: var(--text-sm); color: var(--ink-faint);
}
.text-link {
  display: inline-block; font-weight: var(--weight-bold); text-decoration: none;
  border-bottom: 1px solid currentColor; padding-block: 0.5rem 2px;
}
.text-link:hover { color: var(--red-dark); }

/* 응모 안내 ------------------------------------------------------------- */
.guide { background: var(--paper); }
.overview {
  margin: 0 0 3.5rem; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 2px solid var(--ink); background: var(--white);
}
.overview div { padding: 1.375rem 1.375rem 1.5rem; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); }
.overview div:last-child { border-right: 0; }
.overview dt { font-size: var(--text-sm); color: var(--ink-faint); margin-bottom: 0.375rem; }
.overview dd { margin: 0; font-weight: var(--weight-bold); line-height: 1.55; }
.overview small { display: block; margin-top: 0.25rem; font-weight: var(--weight-regular); font-size: var(--text-sm); color: var(--ink-soft); }

.sub-title { margin: 0 0 1.125rem; font-size: var(--text-lg); }
.sub-title span { display: block; margin-top: 0.25rem; font-size: var(--text-note); font-weight: var(--weight-medium); color: var(--ink-soft); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.steps > li {
  display: flex; gap: 1.125rem; padding: 1.75rem;
  background: var(--white); border: 1px solid var(--line); border-radius: 0.375rem;
}
.step-no {
  flex: 0 0 2.25rem; height: 2.25rem; border-radius: 50%;
  background: var(--ink); color: var(--white);
  display: grid; place-items: center; font-weight: var(--weight-heavy);
}
.steps h4 { margin: 0.25rem 0 0.375rem; font-size: var(--text-md); }
.steps p { margin: 0; color: var(--ink-soft); }
.store-chips { list-style: none; padding: 0; margin: 0.875rem 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.store-chips li {
  padding: 0.25rem 0.875rem; border: 1px solid var(--border); border-radius: 999px;
  font-size: var(--text-sm); font-weight: var(--weight-semibold);
}
.steps .note { margin-top: 0.875rem; font-size: var(--text-sm); padding: 0.625rem 0.75rem; background: var(--paper); border-radius: var(--radius); }
.steps .note strong { color: var(--ink); font-weight: var(--weight-bold); }
.warning {
  margin: 1.25rem 0 0; padding: 0.875rem 1rem 0.875rem 2.75rem; position: relative;
  background: var(--alert-bg); border: 1px solid var(--red-dark); border-radius: var(--radius);
  color: var(--red-dark); font-weight: var(--weight-semibold); font-size: var(--text-note);
}
/* 심사 기준 — 응모 조건 카드와 같은 흰 상자 */
.criteria-title { margin-top: 3rem; }
.criteria {
  margin: 0; padding: 1.25rem 1.5rem 1.25rem 2.5rem; display: grid; gap: 0.375rem;
  background: var(--white); border: 1px solid var(--line); border-radius: 0.375rem; color: var(--ink-soft);
}
.warning::before {
  content: "!"; position: absolute; left: 1rem; top: 1rem;
  width: 1.125rem; height: 1.125rem; border-radius: 50%;
  background: var(--red); color: var(--white);
  font-size: var(--text-2xs); font-weight: var(--weight-heavy);
  display: grid; place-items: center; line-height: 1;
}

/* 시상 ------------------------------------------------------------------ */
.award-grid { display: grid; grid-template-columns: 1.3fr repeat(3, minmax(0, 1fr)); gap: 1rem; }
.award { padding: 1.75rem 1.5rem; border: 1px solid var(--line); border-radius: 0.375rem; display: flex; flex-direction: column; gap: 0.375rem; }
.award h3 { margin: 0; font-family: var(--serif); font-size: var(--text-lg); }
.award-count { margin: 0; font-size: var(--text-sm); font-weight: var(--weight-bold); color: var(--ink-faint); }
.award-prize { margin: 0; font-size: var(--text-md); font-weight: var(--weight-heavy); color: var(--red-dark); font-variant-numeric: tabular-nums; }
.award-desc { margin: 0.625rem 0 0; padding-top: 0.75rem; border-top: 1px solid var(--line); font-size: var(--text-note); color: var(--ink-soft); }
.award.grand { background: var(--night); border-color: var(--night); color: var(--on-night); }
.award.grand h3 { color: var(--gold); font-size: var(--text-2xl); }
.award.grand .award-count { color: var(--on-night-soft); }
.award.grand .award-prize { color: var(--white); font-size: var(--text-lg); }
.award.grand .award-desc { color: var(--on-night-soft); border-top-color: var(--on-night-soft); }

/* 일정 ------------------------------------------------------------------ */
.schedule { background: var(--paper); }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.timeline li {
  position: relative; padding: 1.875rem 1rem 0 0;
  border-top: 2px solid var(--border); display: flex; flex-direction: column;
}
.timeline li::before {
  content: ""; position: absolute; top: -0.4375rem; left: 0;
  width: 0.75rem; height: 0.75rem; border-radius: 50%;
  background: var(--white); border: 2px solid var(--border);
}
.timeline li.is-current { border-top-color: var(--red); }
.timeline li.is-current::before { background: var(--red); border-color: var(--red); }
.timeline strong { font-size: var(--text-md); font-weight: var(--weight-bold); }
.timeline span { font-weight: var(--weight-semibold); color: var(--ink); font-variant-numeric: tabular-nums; }
.timeline small { margin-top: 0.25rem; color: var(--ink-soft); font-size: var(--text-sm); }

/* 접수폼 ---------------------------------------------------------------- */
.apply { background: var(--white); }
.form-wrap { max-width: 47.5rem; }
.form-card { border-top: 2px solid var(--ink); }
.form-group { padding: 1.75rem 0; border-bottom: 1px solid var(--line); display: grid; gap: 1.25rem; min-width: 0; }
.group-title { margin: 0; font-size: var(--text-md); font-weight: var(--weight-heavy); }
/* align-content: start — 나란한 칸의 줄 수가 달라도(비밀번호 강도 막대) 남는 높이를 줄마다 나눠 갖지 않게 한다 */
.field { display: grid; gap: 0.5rem; min-width: 0; align-content: start; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.field label, .store-fieldset legend { margin: 0; padding: 0; font-weight: var(--weight-bold); font-size: var(--text-note); }
.store-fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.store-fieldset legend { margin-bottom: 0.5rem; }
.store-fieldset legend small { font-weight: var(--weight-medium); color: var(--ink-faint); margin-left: 0.25rem; }
.req-mark { color: var(--red-dark); font-style: normal; }
.opt-mark { color: var(--ink-faint); font-weight: var(--weight-medium); }

input[type="text"], input[type="tel"], input[type="email"], input[type="password"], textarea {
  width: 100%; min-height: 3.25rem; padding: 0.75rem 0.875rem;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--white); font-size: var(--text-base);
}
textarea { resize: vertical; min-height: 6rem; line-height: 1.6; }
input:focus, textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px var(--shade-soft); }
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--red-dark); background: var(--alert-bg); }
::placeholder { color: var(--ink-faint); opacity: 1; }
.field-help { margin: 0; display: flex; justify-content: space-between; gap: 0.75rem; font-size: var(--text-xs); color: var(--ink-faint); }
.field-help.is-ok { color: var(--ok); }
.field-help.is-error { color: var(--red-dark); }

.lookup-hint {
  margin: 0; padding: 0.875rem 1rem; background: var(--paper);
  border-left: 3px solid var(--rust); border-radius: var(--radius);
  font-size: var(--text-sm); color: var(--ink-soft);
}
.lookup-hint strong { color: var(--ink); font-weight: var(--weight-bold); }

/* 비밀번호 -------------------------------------------------------------- */
.pw-wrap { position: relative; display: flex; }
.pw-wrap input { padding-right: 4.5rem; }
.pw-toggle {
  position: absolute; right: 0.25rem; top: 50%; transform: translateY(-50%);
  min-width: var(--tap); min-height: var(--tap);
  background: none; border: 0; border-radius: var(--radius);
  color: var(--ink-soft); font-size: var(--text-xs); font-weight: var(--weight-semibold);
  cursor: pointer;
}
.pw-toggle:hover { color: var(--ink); background: var(--paper); }
.pw-meter { height: 0.375rem; border-radius: 999px; background: var(--line); overflow: hidden; }
.pw-meter i { display: block; height: 100%; width: 0; background: var(--gold); transition: width .2s; }
.pw-meter i.is-strong { background: var(--ok); }
.pw-meter i.is-weak { background: var(--red); }

/* 체크박스 -------------------------------------------------------------- */
/* 서점 선택과 동의는 같은 체크박스(브라우저 기본 입력)와 같은 박스 모양을 쓴다.
   박스는 입력칸과 같은 테두리·모서리·높이라 폼 안에서 한 종류로 읽힌다. */
.check-grid { display: flex; flex-wrap: wrap; gap: 0.625rem; }
.check-pill, .check-line { display: flex; gap: 0.625rem; cursor: pointer; }
.check-line { font-weight: var(--weight-bold); }
.check-pill input, .check-line input {
  flex: 0 0 auto; width: 1.25rem; height: 1.25rem; margin: 0;
  accent-color: var(--red-dark); cursor: pointer;
}
/* label.check-pill — 위의 `.field label`(여백 0)보다 약하지 않게 */
label.check-pill {
  font-size: var(--text-body); font-weight: var(--weight-semibold);
  align-items: center; min-height: 3.25rem; padding: 0 1.125rem 0 0.875rem;
  border: 1px solid var(--border); border-radius: var(--radius); background: var(--white);
  transition: border-color .15s, background-color .15s;
}
.check-pill:hover { border-color: var(--ink); }
/* 색만으로 구분하지 않는다 — 선택 여부는 체크 표시가 알린다 */
.check-pill:has(input:checked) { border-color: var(--red-dark); background: var(--alert-bg); }

/* 파일 ------------------------------------------------------------------ */
.file-input {
  width: 100%; min-height: 3.25rem; padding: 0.625rem;
  border: 1px dashed var(--border); border-radius: var(--radius);
  background: var(--paper); font-size: var(--text-note);
}
.file-input::file-selector-button {
  min-height: var(--tap); margin-right: 0.75rem; padding: 0 1rem;
  border: 0; border-radius: var(--radius);
  background: var(--ink); color: var(--white);
  font-size: var(--text-sm); font-weight: var(--weight-bold); cursor: pointer;
}
.file-input:focus { outline: none; border-color: var(--ink); border-style: solid; box-shadow: 0 0 0 3px var(--shade-soft); }
.file-input[aria-invalid="true"] { border-color: var(--red-dark); background: var(--alert-bg); }

/* 동의 ------------------------------------------------------------------ */
.consents { gap: 0.625rem; }
.consent { padding: 0.875rem; background: var(--paper); border: 1px solid var(--border); border-radius: var(--radius); }
.consent:has(.check-line input:checked) { border-color: var(--red-dark); background: var(--alert-bg); }
.check-line { align-items: flex-start; }
.check-line input { margin-top: 0.125rem; }
.consent-detail { margin-top: 0.625rem; padding-left: 1.875rem; font-size: var(--text-sm); color: var(--ink-soft); }
.consent-detail p { margin: 0.5rem 0 0; }
.notice-table { width: 100%; border-collapse: collapse; background: var(--white); }
.notice-table th, .notice-table td { padding: 0.5rem 0.625rem; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.notice-table th { width: 5.25rem; white-space: nowrap; font-weight: var(--weight-bold); background: var(--paper); }
.consent-note { margin: 0.375rem 0 0; padding-left: 1.875rem; font-size: var(--text-sm); color: var(--ink-faint); }

.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.submit-button { margin-top: 1.75rem; min-height: 3.625rem; font-size: var(--text-md); }

/* 오류 요약 ------------------------------------------------------------- */
.form-error {
  margin: 1.25rem 0 0; padding: 1rem;
  border: 2px solid var(--red-dark); border-radius: var(--radius);
  background: var(--alert-bg); color: var(--red-dark);
}
.form-error-title { margin: 0; font-size: var(--text-body); font-weight: var(--weight-semibold); }
.form-error ul { margin: 0.5rem 0 0; padding-left: 1.25rem; font-size: var(--text-sm); display: grid; gap: 0.25rem; }
.form-error a { color: inherit; }

/* 접수 완료 ------------------------------------------------------------- */
.result-card {
  padding: 3rem 1.5rem; border-top: 2px solid var(--ink); border-bottom: 1px solid var(--line);
  text-align: center;
}
.result-card h3 { margin: 0 0 1.25rem; font-size: var(--text-xl); }
.result-card p { margin: 0; color: var(--ink-soft); }
.result-card strong {
  display: inline-block; margin: 0.5rem 0 1rem; padding: 0.625rem 1.25rem;
  background: var(--paper); font-size: var(--text-entry); font-weight: var(--weight-bold);
  letter-spacing: .04em; font-variant-numeric: tabular-nums;
}
/* .result-card p 의 margin: 0 이 더 구체적이라 한 단계 올려야 가운데로 온다 */
.result-card .result-note { max-width: 32rem; margin-inline: auto; font-size: var(--text-sm); }
.result-note strong {
  display: inline; margin: 0; padding: 0; background: none;
  font-size: inherit; letter-spacing: normal; color: var(--ink);
  font-weight: var(--weight-bold);
}
.result-card .button { margin-top: 1.25rem; }

/* 유의사항 -------------------------------------------------------------- */
.notes { padding-block: 3.5rem 4.5rem; background: var(--white); border-top: 1px solid var(--line); }
/* .section h2(표제 크기)보다 약하지 않게 — 폼의 그룹 제목과 같은 크기로 둔다 */
.notes .notes-title { margin: 0 0 0.75rem; font-size: var(--text-md); }
.notes ul { margin: 0; padding-left: 1.125rem; color: var(--ink-soft); font-size: var(--text-note); display: grid; gap: 0.25rem; }
/* 폼과 같은 폭에 놓아 왼쪽 선을 맞춘다 */
.notes .wrap { max-width: 47.5rem; }

/* 푸터 ------------------------------------------------------------------ */
.site-footer { background: var(--night); color: var(--on-night-soft); font-size: var(--text-xs); padding-block: 2.25rem; }
.footer-inner { display: flex; align-items: center; gap: 1.75rem; }
.footer-info { margin-right: auto; display: grid; gap: 0.5rem; min-width: 0; }
.footer-row { margin: 0; display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; }
.footer-info strong { color: var(--white); font-weight: var(--weight-bold); }
.footer-info .copy { margin-top: 1rem; }
.footer-link {
  display: inline-flex; align-items: center; min-height: var(--tap);
  padding: 0 1rem; border: 1px solid var(--on-night-soft); border-radius: 999px;
  color: var(--white); text-decoration: none; white-space: nowrap;
}
.footer-link:hover { border-color: var(--white); }

/* 모바일 하단 고정 버튼 — 기본 숨김 -------------------------------------- */
.mobile-cta { display: none; }

/* 태블릿 ---------------------------------------------------------------- */
@media (max-width: 64rem) {
  .header-nav { gap: 1.125rem; }
  .overview { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .overview div:nth-child(2) { border-right: 0; }
  .award-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .book-grid { gap: 2.5rem; }
}

/* 모바일 ---------------------------------------------------------------- */
@media (max-width: 47.9375rem) {
  :root { --header-h: 3.5rem; --text-body: 0.9375rem; }
  .wrap { padding-inline: 1rem; }
  .header-inner { gap: 0.75rem; }
  .logo img { height: 1.875rem; }
  .header-nav { display: none; }
  .header-status { margin-left: auto; font-size: var(--text-xs); }

  .hero-copy { grid-template-columns: minmax(0, 1fr); padding-block: 1.75rem 2.25rem; }
  .hero-actions { grid-column: 1; grid-row: auto; margin-top: 1.25rem; }
  .hero-actions .button { flex: 1 1 0; min-width: 0; padding: 0 0.75rem; }
  .hero-facts dt { flex-basis: 3.75rem; }

  .section { padding-block: 3.5rem; }
  .section-head { margin-bottom: 1.75rem; }

  .book-grid { grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
  .book-covers img:last-child { transform: translateY(1rem); }
  .book blockquote { padding: 1.125rem; font-size: var(--text-note); }

  .overview { grid-template-columns: minmax(0, 1fr); margin-bottom: 2.5rem; }
  .overview div { display: grid; grid-template-columns: 4.75rem minmax(0, 1fr); gap: 0.75rem; padding: 1rem; border-right: 0; }
  .overview dt { margin: 0; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .steps > li { padding: 1.25rem 1.125rem; gap: 0.875rem; }

  .award-grid { grid-template-columns: minmax(0, 1fr); gap: 0.75rem; }
  .award { padding: 1.375rem 1.25rem; }

  .timeline { grid-template-columns: minmax(0, 1fr); padding-left: 0.375rem; }
  .timeline li { padding: 0 0 1.375rem 1.625rem; border-top: 0; border-left: 2px solid var(--border); }
  .timeline li:last-child { padding-bottom: 0; border-left-color: transparent; }
  .timeline li::before { top: 2px; left: -0.4375rem; }
  .timeline li.is-current { border-left-color: var(--red); }

  .field-row { grid-template-columns: minmax(0, 1fr); }
  .form-group { padding: 1.5rem 0; }
  label.check-pill { flex: 1 1 0; padding: 0 0.625rem; }
  .field-help { flex-direction: column; gap: 2px; }

  .footer-inner { flex-direction: column; align-items: flex-start; gap: 1rem; }

  .mobile-cta {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: 0.625rem 1rem calc(0.625rem + env(safe-area-inset-bottom, 0px));
    background: var(--white); border-top: 1px solid var(--line);
    transition: transform .2s ease;
  }
  .mobile-cta.is-hidden { transform: translateY(110%); }
  .site-footer { padding-bottom: calc(2.25rem + 5rem + env(safe-area-inset-bottom, 0px)); }
}

/* 움직임 줄이기 --------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ======================================================================
   하위 페이지 — 접수현황 조회(status.html) · 비밀번호 재설정(reset.html)
   위 토큰만 쓰고, 기존 선택자는 건드리지 않는다. 새 선택자만 더한다.
   ====================================================================== */

.page-section { padding-block: 3.5rem 4.5rem; background: var(--white); }
.page-title { margin: 0; font-size: var(--text-h2); line-height: 1.35; letter-spacing: -.02em; }
.page-desc { margin: 0.75rem 0 0; color: var(--ink-soft); }
.page-desc strong { font-weight: var(--weight-bold); color: var(--ink); }
.panel { max-width: 34rem; margin-inline: auto; min-width: 0; }
.panel-title { margin: 0 0 1.25rem; font-size: var(--text-lg); }

/* 현재 보고 있는 페이지임을 색 외의 단서로도 알린다 */
.header-status[aria-current="page"] { color: var(--red-dark); text-decoration: underline; text-underline-offset: 0.3em; }

/* 폼의 마지막 입력 그룹 아래 구분선은 두지 않는다(버튼이 바로 이어진다) */
.form-group.is-last { border-bottom: 0; }

.form-links { margin: 1.25rem 0 0; text-align: center; font-size: var(--text-sm); }
.form-links a {
  display: inline-flex; align-items: center; min-height: var(--tap);
  padding-inline: 0.5rem; color: var(--ink-soft); font-weight: var(--weight-semibold);
}
.form-links a:hover { color: var(--red-dark); }
.form-links .button { font-size: var(--text-sm); }

/* 문장 속 링크는 색만으로 구분하지 않는다(WCAG 1.4.1) */
.lookup-hint a { color: var(--ink); font-weight: var(--weight-semibold); text-decoration: underline; text-underline-offset: 0.2em; }
.lookup-hint a:hover { color: var(--red-dark); }

/* 조회 결과 ------------------------------------------------------------- */
.status-result { border-top: 2px solid var(--ink); }
.status-result-head {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 0.75rem; padding: 1.5rem 0 1.25rem;
}
.status-result-head h2 { margin: 0; font-size: var(--text-lg); }
.status-badge {
  margin: 0; padding: 0.375rem 0.875rem; border-radius: 999px;
  border: 1px solid var(--border); background: var(--paper); color: var(--ink-soft);
  font-size: var(--text-sm); font-weight: var(--weight-heavy);
}
.status-badge.is-ok { background: var(--ok-bg); border-color: var(--ok); color: var(--ok); }
.status-badge.is-warn { background: var(--alert-bg); border-color: var(--red-dark); color: var(--red-dark); }

/* 처리 단계 — 상태는 색만으로 구분하지 않고 글자로도 적는다 */
.status-steps { list-style: none; margin: 0 0 1.5rem; padding-left: 0.375rem; }
.status-steps li {
  position: relative; padding: 0 0 1.375rem 1.625rem;
  border-left: 2px solid var(--border);
}
.status-steps li::before {
  content: ""; position: absolute; top: 0.3125rem; left: -0.4375rem;
  width: 0.75rem; height: 0.75rem; border-radius: 50%;
  background: var(--white); border: 2px solid var(--border);
}
.status-steps li.is-done { border-left-color: var(--red); }
.status-steps li.is-done::before { background: var(--red); border-color: var(--red); }
.status-steps li.is-current::before { border-color: var(--red); }
.status-steps li.is-warn { border-left-color: var(--red-dark); }
.status-steps li.is-warn::before { background: var(--alert-bg); border-color: var(--red-dark); }
.status-steps li:last-child { padding-bottom: 0; border-left-color: transparent; }
.status-steps strong { font-size: var(--text-base); font-weight: var(--weight-bold); }
.status-steps .step-state { margin-left: 0.5rem; font-size: var(--text-xs); font-weight: var(--weight-semibold); color: var(--ink-faint); }
.status-steps li.is-done .step-state { color: var(--ok); }
.status-steps li.is-warn .step-state { color: var(--red-dark); }
.status-steps p { margin: 0; font-size: var(--text-sm); color: var(--ink-soft); }

/* 담당자 안내 메모 */
.status-note {
  margin: 0 0 1.5rem; padding: 1rem 1.125rem;
  background: var(--paper); border-left: 3px solid var(--rust); border-radius: var(--radius);
}
.status-note h3 { margin: 0 0 0.25rem; font-size: var(--text-sm); }
.status-note p { margin: 0; color: var(--ink-soft); white-space: pre-line; }
.status-note.is-warn { background: var(--alert-bg); border-left-color: var(--red-dark); }
.status-note.is-warn h3, .status-note.is-warn p { color: var(--red-dark); }

/* 응모 내역 표 */
.status-detail { margin: 0; border-top: 1px solid var(--line); }
.status-detail > div {
  display: grid; grid-template-columns: 7rem minmax(0, 1fr); gap: 0.75rem;
  padding: 0.75rem 0; border-bottom: 1px solid var(--line);
}
.status-detail dt { color: var(--ink-faint); font-size: var(--text-sm); }
.status-detail dd { margin: 0; min-width: 0; font-weight: var(--weight-semibold); overflow-wrap: anywhere; }

/* 완료 안내 카드(재설정 1·2단계 공통) ----------------------------------- */
.notice-card {
  padding: 1.75rem 1.5rem; text-align: center;
  background: var(--ok-bg); border: 1px solid var(--ok); border-radius: var(--radius);
}
.notice-card .kicker { color: var(--ok); }
.notice-card h3 { margin: 0 0 0.5rem; font-size: var(--text-md); }
.notice-card p { margin: 0; font-size: var(--text-sm); color: var(--ink-soft); }
.notice-card .button { margin-top: 1.5rem; }

.reset-step[hidden] { display: none; }

/* 조회 방법 선택 — 서점 선택과 같은 박스를 쓰되 둘을 같은 너비로 나란히 둔다 */
.method-fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.method-fieldset legend { margin: 0 0 0.5rem; padding: 0; font-weight: var(--weight-bold); font-size: var(--text-note); }
.method-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.625rem; }
/* .field 의 display: grid 가 hidden 속성을 이기지 않게 한다 */
.method-field[hidden] { display: none; }

@media (max-width: 47.9375rem) {
  .page-section { padding-block: 2.25rem 3rem; }
  .status-detail > div { grid-template-columns: 5.5rem minmax(0, 1fr); gap: 0.625rem; }
  /* 하위 페이지에는 모바일 하단 고정 버튼이 없으므로 푸터 여백을 되돌린다 */
  body.subpage .site-footer { padding-bottom: calc(2.25rem + env(safe-area-inset-bottom, 0px)); }
}
