@charset "utf-8";
/* =========================================================
   DA&E 콘텐츠 어워드 — css/badges.css  (badges.html 전용)
   ▶ QR 은 1개만. 화면에서는 설정 바 + QR 포스터 미리보기.
   ▶ 인쇄(@media print)에서는 설정 바를 숨기고 A4 1장으로 출력.
   ▶ css/style.css 의 토큰(:root)을 재사용합니다.
   ========================================================= */

/* =========================================================
   0. 공통
   ========================================================= */
.bd_body {
  background: var(--bg);
  word-break: keep-all;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

/* =========================================================
   1. 설정 바 (인쇄 시 숨김)
   ========================================================= */
.bd_bar {
  background: #0b0d12;
  color: #fff;
  padding: 36px 20px 40px;
}
.bd_bar_in { max-width: 760px; margin: 0 auto; }

.bd_eyebrow {
  font-size: 0.7rem; font-weight: 800; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--cyan);
}
.bd_bar h1 {
  margin-top: 8px; font-size: 1.6rem; font-weight: 800; letter-spacing: -0.04em;
}
.bd_bar h1 span {
  font-size: 0.92rem; font-weight: 800; letter-spacing: 0;
  vertical-align: middle;
  margin-left: 6px; padding: 3px 9px; border-radius: 7px;
  background: rgba(0, 208, 255, 0.16); color: var(--cyan);
}
.bd_desc {
  margin-top: 10px;
  font-size: 0.9rem; line-height: 1.72; color: rgba(255, 255, 255, 0.6);
}
.bd_desc b { color: #fff; }

.bd_form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 200px;
  gap: 14px;
  margin-top: 26px;
}
.bd_field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.bd_field--wide { grid-column: 1; }
.bd_field label {
  font-size: 0.74rem; font-weight: 800; color: rgba(255, 255, 255, 0.5);
}
.bd_field input,
.bd_field select {
  width: 100%; min-height: 46px;
  padding: 0 13px;
  background: rgba(0, 0, 0, 0.4);
  border: 1.5px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  color: #fff; font-family: inherit; font-size: 0.9rem; font-weight: 700;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.bd_field input:focus,
.bd_field select:focus {
  outline: none; border-color: var(--cyan); background: rgba(0, 0, 0, 0.58);
}
.bd_field select option { background: #14171d; color: #fff; }

.bd_actions {
  grid-column: 1 / -1;
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-top: 4px;
}
.bd_btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 20px;
  border: none; border-radius: 13px;
  background: rgba(255, 255, 255, 0.1); color: #fff;
  font-family: inherit; font-size: 0.88rem; font-weight: 800;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background 0.2s var(--ease), transform 0.16s var(--ease);
}
.bd_btn:active { transform: scale(0.985); }
.bd_btn--primary { background: var(--brand); box-shadow: 0 10px 24px rgba(0, 116, 224, 0.36); }
.bd_btn--ghost { background: transparent; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.2); }

.bd_hint {
  margin-top: 18px; min-height: 22px;
  font-size: 0.84rem; font-weight: 700; line-height: 1.6;
  color: rgba(255, 255, 255, 0.62);
}
.bd_hint i { margin-right: 5px; }
.bd_hint b { color: #fff; }
.bd_hint.err { color: #ff9b95; }

/* =========================================================
   2. QR 포스터 (화면 미리보기)
   ========================================================= */
.bd_sheet {
  display: flex; justify-content: center;
  padding: 26px 16px 60px;
}

.bd_poster {
  width: 210mm; max-width: 100%;
  box-sizing: border-box;
  padding: 16mm 14mm 14mm;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 10px 34px rgba(16, 24, 40, 0.14);
  text-align: center;
}

.bd_ptop {
  font-size: 0.78rem; font-weight: 800; letter-spacing: 0.22em;
  text-transform: uppercase; color: #0b0d12;
}
.bd_ptop b { color: #0074e0; }

.bd_ptitle {
  margin-top: 8mm;
  font-size: 2.2rem; font-weight: 900; letter-spacing: -0.045em;
  color: #0b0d12;
}

.bd_pqr {
  width: 96mm; height: 96mm;
  margin: 10mm auto 0;
}
.bd_pqr svg {
  display: block; width: 100%; height: 100%;
}

.bd_pstep {
  margin-top: 10mm;
  font-size: 1.16rem; font-weight: 800; line-height: 1.5;
  color: #0b0d12;
}
.bd_pstep b {
  display: inline-grid; place-items: center;
  width: 1.55em; height: 1.55em; margin-right: 8px;
  border-radius: 50%;
  background: #0074e0; color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.86em; font-weight: 800;
  vertical-align: middle;
}
.bd_pstep u {
  text-decoration: none;
  box-shadow: inset 0 -0.42em 0 rgba(0, 208, 255, 0.34);
}
.bd_pstep--sub {
  margin-top: 3.4mm;
  font-size: 1.02rem; color: #333c47;
}

.bd_pfoot {
  margin-top: 14mm;
  font-size: 0.68rem; letter-spacing: 0.02em; color: #aab3be;
  word-break: break-all;
}

/* 크게 — QR 만 크게 */
.bd_poster.is_big .bd_ptitle { font-size: 1.6rem; margin-top: 4mm; }
.bd_poster.is_big .bd_pqr { width: 126mm; height: 126mm; margin-top: 6mm; }
.bd_poster.is_big .bd_pstep { margin-top: 7mm; font-size: 1.06rem; }

/* =========================================================
   3. 인쇄
   ========================================================= */
@page {
  size: A4 portrait;
  margin: 0;
}

@media print {
  .bd_bar { display: none !important; }

  .bd_body { background: #fff; }

  .bd_sheet { display: block; padding: 0; }

  .bd_poster {
    width: 210mm; height: 297mm; max-width: none;
    padding: 18mm 16mm 14mm;
    border-radius: 0; box-shadow: none;
    display: flex; flex-direction: column; justify-content: center;
    break-after: page;
    page-break-after: always;
  }

  /* 인쇄에서는 배경색이 번지지 않도록 단색 유지 */
  .bd_poster { background: #fff; }
  .bd_pstep b { background: #0074e0 !important; color: #fff !important; }
}

/* =========================================================
   4. 좁은 화면
   ========================================================= */
@media (max-width: 820px) {
  .bd_form { grid-template-columns: 1fr; }
  .bd_field--wide { grid-column: 1; }
}

@media (max-width: 560px) {
  .bd_bar { padding: 28px 16px 32px; }
  .bd_bar h1 { font-size: 1.34rem; }
  .bd_actions .bd_btn { flex: 1 1 auto; }
  .bd_btn { padding: 0 15px; font-size: 0.84rem; }

  /* 작은 화면 미리보기 — 인쇄 결과와 비율만 맞춤 */
  .bd_sheet { padding: 20px 12px 44px; }
  .bd_poster { padding: 24px 18px 20px; }
  .bd_ptitle { margin-top: 18px; font-size: 1.6rem; }
  .bd_pqr { width: min(70vw, 260px); height: min(70vw, 260px); margin-top: 22px; }
  .bd_pstep { margin-top: 22px; font-size: 1rem; }
  .bd_pstep--sub { margin-top: 10px; font-size: 0.9rem; }
  .bd_pfoot { margin-top: 24px; }

  .bd_poster.is_big .bd_pqr { width: min(80vw, 300px); height: min(80vw, 300px); }
}
