/* 공개 사이트: 헤더·푸터·홈(시안 v13)·등록/내 QR 화면 */

/* 헤더 */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--line-soft); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.site-header-in { min-height: 84px; display: flex; align-items: center; gap: 16px 32px; }
.site-brand { display: flex; align-items: center; gap: 16px; text-decoration: none; color: var(--ink-strong); flex: none; }
.site-brand img { height: 38px; width: auto; }
.site-brand .bar { width: 1px; height: 30px; background: var(--line); }
.site-brand .name { display: flex; flex-direction: column; line-height: 1.25; }
.site-brand .name b { font-size: 17px; font-weight: 800; }
.site-brand .name small { font-size: 14px; color: var(--ink-sub); }
.site-nav { display: flex; flex-wrap: nowrap; gap: 26px; flex: 1 1 auto; justify-content: center; white-space: nowrap; }
.site-nav a { font-size: 17px; font-weight: 500; color: var(--ink-strong); text-decoration: none; }
.site-nav a:hover { color: var(--green); }
.site-nav .m-only { display: none; }
.site-actions { display: flex; gap: 8px; flex-wrap: nowrap; white-space: nowrap; }
.site-actions .btn { min-height: 44px; padding: 0 18px; font-size: 15px; }
.btn-outline-blue { border-color: var(--blue); color: var(--blue); }
.menu-btn { display: none; width: 44px; height: 44px; border: 0; border-radius: 10px; background: transparent; color: var(--ink-strong); align-items: center; justify-content: center; cursor: pointer; margin-left: auto; }

@media (max-width: 1240px) {
  .site-brand .name small { display: none; }
  .site-nav { gap: 18px; }
  .site-nav a { font-size: 16px; }
}
@media (max-width: 1140px) {
  .site-header-in { min-height: 64px; gap: 10px; }
  .site-brand img { height: 28px; }
  .site-brand .bar { height: 22px; }
  .site-brand .name b { font-size: 14px; line-height: 1.25; }
  .site-actions .btn-outline-blue { display: none; }
  .site-actions { margin-left: auto; }
  .site-actions .btn { min-height: 40px; padding: 0 14px; font-size: 14px; }
  .menu-btn { display: inline-flex; margin-left: 0; }
  .site-nav { position: fixed; top: 64px; left: 0; right: 0; flex-direction: column; gap: 0; padding: 8px 20px 20px; background: var(--white); border-bottom: 1px solid var(--line-soft); box-shadow: 0 16px 30px rgba(11,37,64,.12); transform: translateY(-8px); opacity: 0; visibility: hidden; transition: .15s; }
  .site-nav a { display: block; padding: 14px 4px; font-size: 17px; border-bottom: 1px solid var(--line-soft); }
  .site-nav .m-only { display: block; padding-top: 14px; }
  .site-nav .m-only a { display: flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 16px; border: 1.5px solid var(--blue); border-radius: 999px; color: var(--blue); font-weight: 700; }
  body.nav-open .site-nav { transform: none; opacity: 1; visibility: visible; }
  html { scroll-padding-top: 76px; }
}
@media (max-width: 400px) {
  .site-brand .bar, .site-brand img { display: none; }
}

/* 푸터 */
.site-footer { background: var(--navy); color: var(--on-dark-sub); font-size: 15px; line-height: 1.75; }
.site-footer .container { padding-top: 64px; padding-bottom: 32px; display: flex; flex-direction: column; gap: 44px; }
.site-footer .cols { display: flex; flex-wrap: wrap; gap: 40px 64px; }
.site-footer .cols > div { display: flex; flex-direction: column; gap: 8px; }
.site-footer .c1 { flex: 1.3 1 320px; } .site-footer .c2 { flex: 1 1 220px; } .site-footer .c3 { flex: 1.6 1 360px; }
.site-footer b { color: var(--white); font-weight: 700; }
.site-footer .fname { font-size: 22px; font-weight: 800; }
.site-footer a { color: var(--white); font-weight: 700; align-self: flex-start; }
.site-footer a.lime { color: var(--lime); }
.site-footer .bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 24px; border-top: 1px solid var(--navy-line); }

/* 등록·내 QR 같은 폼 화면 */
.page-head { background: var(--navy); color: var(--white); }
.page-head .container { padding-top: 44px; padding-bottom: 40px; }
.page-head .eyebrow { color: var(--lime); font-weight: 700; font-size: 15px; }
.page-head h1 { color: var(--white); font-family: var(--font-title); font-weight: 600; font-size: 40px; margin: 6px 0 8px; letter-spacing: -1px; }
.page-head p { margin: 0; color: var(--on-dark-sub); }
.page-body { background: var(--lavender); padding: 32px 0 80px; }
.page-narrow { max-width: 760px; margin: 0 auto; padding: 0 20px; }
.form-card { background: var(--white); border-radius: 20px; padding: 28px; border: 1px solid var(--line-soft); }
.form-card + .form-card { margin-top: 16px; }
.form-card h2 { font-family: var(--font-title); font-weight: 600; font-size: 24px; margin: 0 0 18px; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0 16px; }
.seg { display: flex; padding: 4px; background: #e3e9ef; border-radius: 999px; }
.seg a { flex: 1; text-align: center; padding: 10px 0; border-radius: 999px; font-weight: 700; color: var(--ink-sub); text-decoration: none; }
.seg a.on { background: var(--white); color: var(--ink-strong); box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.member { border: 1px solid var(--line-soft); border-radius: 14px; padding: 14px; margin-bottom: 10px; background: var(--lavender); }
.member .member-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; font-weight: 700; }
.member .grid-3 { display: grid; grid-template-columns: 1fr 1fr 1.2fr; gap: 8px; }
.member .input { min-height: 46px; }
.link-btn { background: none; border: 0; color: #c4245f; font: 700 14px var(--font-body); cursor: pointer; padding: 4px; }
@media (max-width: 640px) {
  .page-head h1 { font-size: 30px; }
  .form-card { padding: 20px; border-radius: 16px; }
  .member .grid-3 { grid-template-columns: 1fr; }
}

/* 내 QR 화면 */
.qr-card { background: var(--white); border-radius: 24px; padding: 28px 24px; text-align: center; border: 1px solid var(--line-soft); }
.qr-card .qr { width: min(280px, 80vw); margin: 8px auto 12px; }
.qr-card .qr svg { width: 100%; height: auto; display: block; }
.qr-card .who { font-family: var(--font-title); font-size: 28px; font-weight: 600; color: var(--ink-strong); }
.qr-card .aff { color: var(--ink-sub); }
.ev-info { display: grid; grid-template-columns: 76px 1fr; gap: 8px 12px; text-align: left; font-size: 15px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line-soft); }
.ev-info dt { font-weight: 700; color: var(--ink-sub); }
.ev-info dd { margin: 0; color: var(--ink-strong); }
.status-pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; font-size: 14px; font-weight: 700; }
.status-pill.ok { background: var(--primary-soft); color: var(--green-strong); }
.status-pill.wait { background: #e3f1fa; color: #075a87; }
.prize-win { margin-top: 16px; background: var(--navy); color: var(--white); border-radius: 18px; padding: 18px; }
.prize-win b { color: var(--lime); font-family: var(--font-title); font-size: 24px; }
