/* =========================================================
   Holy Flame Kids — 사용자 서비스 공통 스타일 (시안 B · 빛과 별)
   모바일 우선, 768px 이상에서 PC 레이아웃
   ========================================================= */
:root {
  --navy: #0F2240;
  --navy-2: #172E52;
  --navy-3: #0B1A33;
  --gold: #F2C987;
  --gold-text: #8A6418;
  --cream: #FAF6EE;
  --ink: #1B2333;
  --ink-2: #3A4458;
  --muted: #C9C2B2;
  --line: #ECE6DA;
  --white: #FFFFFF;

  --hope-bg: #F1ECF6;  --hope: #6A4F8C;
  --peace-bg: #EAF2EB; --peace: #3F6B48;
  --joy-bg: #F8F0DE;   --joy: #8A6418;
  --love-bg: #FBECE8;  --love: #A64B3C;

  --serif: 'Noto Serif KR', 'Nanum Myeongjo', serif;
  --sans: 'Noto Sans KR', -apple-system, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  --radius: 18px;
  --shadow: 0 10px 28px rgba(15, 34, 64, .14);
  --wrap: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: var(--cream); line-height: 1.5; word-break: keep-all; }
img, svg { display: block; max-width: 100%; }
a { color: var(--navy); }
a:hover { color: var(--navy-3); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

.skip-link { position: absolute; left: -9999px; top: 0; z-index: 100; padding: 12px 16px; background: var(--gold); color: var(--navy); }
.skip-link:focus { left: 8px; top: 8px; }
.only-pc { display: none; }

/* ---------- Header ---------- */
.site-header { position: relative; z-index: 5; background: var(--navy); color: #F3E6CB; }
.site-header__inner { max-width: var(--wrap); margin: 0 auto; padding: 12px 16px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; color: inherit; }
.brand:hover { color: inherit; }
.brand__mark { width: 26px; height: 26px; fill: var(--gold); flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1.2; }
.brand__text strong { font-family: var(--serif); font-size: 15px; color: var(--gold); }
.brand__text span { font-size: 11px; color: var(--muted); }
.gnb { display: flex; align-items: center; gap: 2px; }
.gnb a { padding: 12px 10px; color: #F3E6CB; text-decoration: none; font-size: 14px; }
.gnb a:hover { color: var(--gold); }
.gnb .gnb__pill { padding: 10px 14px; border-radius: 999px; background: var(--gold); color: var(--navy); font-weight: 700; }
.gnb .gnb__pill:hover { color: var(--navy); background: #F7D9A6; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--navy); color: #F3E6CB; margin-top: -1px; }
.hero__art { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; }
.hero__art--pc { display: none; }
.hero__rays line { stroke: var(--gold); stroke-opacity: .18; stroke-width: 1.5; }
.hero__dots circle, .hero__star { fill: var(--gold); }
.hero__hill1 { fill: var(--navy-2); }
.hero__hill2, .hero__church { fill: var(--navy-3); }
.hero__door { fill: var(--gold); fill-opacity: .6; }
.hero__text { position: relative; z-index: 1; max-width: var(--wrap); margin: 0 auto; padding: 150px 24px 150px; text-align: center; }
.hero__eyebrow { margin: 0 0 10px; font-size: 11.5px; letter-spacing: .12em; color: #E2C489; }
.hero h1 { margin: 0; font-family: var(--serif); font-size: 30px; line-height: 1.35; color: #FFF6E2; font-weight: 700; }
.hero__verse { margin: 14px 0 0; font-family: var(--serif); font-size: 16px; line-height: 1.6; color: #E9DCC0; }
.hero__ref { margin: 4px 0 0; font-size: 12.5px; color: #BDB5A3; }

/* ---------- Cards ---------- */
.main-cards { position: relative; z-index: 3; max-width: var(--wrap); margin: -72px auto 0; padding: 0 16px 40px; display: flex; flex-direction: column; gap: 16px; }
.card { background: var(--white); border-radius: var(--radius); padding: 24px 20px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.card--advent { border-top: 5px solid var(--gold); }
.card__eyebrow { font-size: 12px; letter-spacing: .08em; color: #7A5E9E; font-weight: 700; }
.card__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.card__title { margin: 0; font-family: var(--serif); font-size: 22px; line-height: 1.25; color: var(--navy); }
.card__title--lg { font-size: 26px; }
.card__desc { margin: 0; font-size: 15px; line-height: 1.65; color: var(--ink-2); }
.card__more { font-size: 14px; padding: 10px 0; text-decoration: none; }
.card__more:hover { text-decoration: underline; }

.wreath { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.wreath li { padding: 9px 2px; border-radius: 9px; text-align: center; font-size: 12px; font-weight: 700; }
.wreath__hope { background: var(--hope-bg); color: var(--hope); }
.wreath__peace { background: var(--peace-bg); color: var(--peace); }
.wreath__joy { background: var(--joy-bg); color: var(--joy); }
.wreath__love { background: var(--love-bg); color: var(--love); }
.advent-today { margin: 2px 0 0; font-size: 14.5px; color: var(--ink-2); }
.advent-today strong { color: var(--navy); }

/* ---------- Buttons ---------- */
.btn-row { display: grid; grid-auto-columns: minmax(0, 1fr); grid-auto-flow: column; gap: 8px; margin-top: 6px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 18px; border-radius: 12px; font-size: 16px; font-weight: 500; text-align: center; text-decoration: none; border: 1.5px solid var(--navy); transition: background .15s, color .15s; }
.btn--navy { background: var(--navy); color: var(--gold); font-weight: 700; }
.btn--navy:hover { background: var(--navy-3); color: var(--gold); }
.btn--line { background: transparent; color: var(--navy); }
.btn--line:hover { background: var(--cream); color: var(--navy); }
.btn-row--sm .btn { min-height: 46px; font-size: 14.5px; border-radius: 10px; }
.btn-row--sm .btn--navy { color: #FFF6E2; font-weight: 500; }

/* ---------- 주보 ---------- */
.jubo-latest { background: var(--cream); border-radius: 12px; padding: 16px; display: flex; flex-direction: column; gap: 6px; }
.jubo-latest__date { font-size: 12.5px; color: var(--gold-text); }
.jubo-latest__title { font-size: 17px; }
.jubo-list { list-style: none; margin: 0; padding: 0; }
.jubo-list li { display: flex; justify-content: space-between; align-items: center; gap: 8px; border-bottom: 1px solid var(--line); font-size: 15px; }
.jubo-list li:last-child { border-bottom: 0; }
.jubo-list a { font-size: 14px; padding: 14px 0; }
.empty { margin: 0; padding: 24px 0; text-align: center; color: #6B7280; }

/* ---------- Paging ---------- */
.paging { display: flex; justify-content: center; gap: 4px; margin-top: 16px; }
.paging a, .paging strong { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; text-decoration: none; }
.paging strong { background: var(--navy); color: var(--gold); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: var(--muted); }
.site-footer__inner { max-width: var(--wrap); margin: 0 auto; padding: 24px 20px; display: flex; flex-direction: column; gap: 6px; font-size: 13px; }

/* =========================================================
   PC (768px 이상)
   ========================================================= */
@media (min-width: 768px) {
  .only-pc { display: inline; }
  .site-header__inner { padding: 20px 24px; gap: 16px; }
  .brand { gap: 10px; }
  .brand__mark { width: 30px; height: 30px; }
  .brand__text strong { font-size: 18px; }
  .brand__text span { font-size: 12.5px; }
  .gnb { gap: 6px; }
  .gnb a { padding: 12px 18px; font-size: 15.5px; }
  .gnb .gnb__pill { padding: 12px 18px; }

  .hero__art--pc { display: block; }
  .hero__art--mo { display: none; }
  .hero__text { padding: 210px 24px 170px; }
  .hero__eyebrow { font-size: 14px; letter-spacing: .14em; margin-bottom: 14px; }
  .hero h1 { font-size: clamp(36px, 4.5vw, 54px); line-height: 1.3; }
  .hero__verse { font-size: 19px; margin-top: 18px; }
  .hero__ref { font-size: 14px; margin-top: 6px; }

  .main-cards { flex-direction: row; align-items: stretch; margin-top: -96px; padding: 0 24px 64px; gap: 24px; }
  .card { flex: 1 1 0; padding: 32px; gap: 14px; border-radius: 20px; }
  .card--advent { border-top-width: 6px; }
  .card--advent .btn-row { margin-top: auto; padding-top: 10px; }
  .card__eyebrow { font-size: 13.5px; letter-spacing: .1em; }
  .card__title { font-size: 26px; }
  .card__title--lg { font-size: 32px; }
  .card__desc { font-size: 16.5px; }
  .card__more { font-size: 15px; }
  .wreath { gap: 8px; }
  .wreath li { padding: 10px 6px; font-size: 13px; border-radius: 10px; }
  .btn-row { display: flex; flex-wrap: wrap; gap: 10px; }
  .btn { padding: 14px 26px; font-size: 16.5px; }
  .btn-row--sm .btn { padding: 12px 20px; font-size: 15.5px; }
  .jubo-latest { padding: 20px; border-radius: 14px; }
  .jubo-latest__date { font-size: 13.5px; }
  .jubo-latest__title { font-size: 19px; }

  .site-footer__inner { padding: 28px 24px; flex-direction: row; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* =========================================================
   서브 페이지 공통 (주보 목록, 신청, 로그인, 미션)
   ========================================================= */
.sub-hero { background: var(--navy); color: #F3E6CB; text-align: center; padding: 28px 20px 72px; }
.sub-hero h1 { margin: 0; font-family: var(--serif); font-size: 26px; color: #FFF6E2; }
.sub-hero p { margin: 8px 0 0; font-size: 14.5px; color: #E9DCC0; }
.sub-hero .sub-hero__eyebrow { margin: 0 0 8px; font-size: 11.5px; letter-spacing: .12em; color: #E2C489; }
.sub-wrap { position: relative; z-index: 2; max-width: 880px; margin: -48px auto 0; padding: 0 16px 48px; }
.sub-wrap--narrow { max-width: 520px; }
.page-day .sub-wrap--day { max-width: 760px; margin-top: 16px; }
.form__sub { margin: 16px 0 0; text-align: center; font-size: 14px; color: var(--ink-2); }

.alert { margin: 0 0 4px; padding: 12px 14px; border-radius: 10px; font-size: 14.5px; }
.alert--ok { background: #EAF2EB; color: #2F5A38; }
.alert--warn { background: #F8F0DE; color: #6E4F10; }
.alert--err { background: #FBECE8; color: #8E3A2C; }
.asj-notice { margin: 0; padding: 12px 14px; border-radius: 10px; background: #F8F0DE; color: #6E4F10; font-size: 14.5px; text-align: center; }

/* 폼 */
.form { display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; flex: 1; }
.field label { font-size: 14px; font-weight: 700; color: var(--navy); }
.field-row { display: flex; gap: 12px; }
.form input[type=text], .form input[type=password], .form select, .form textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; border: 1.5px solid #D5CCBB; border-radius: 12px;
  background: var(--white); font: inherit; font-size: 16px; color: var(--ink);
}
.form textarea { resize: vertical; line-height: 1.6; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(242, 201, 135, .55); }
.form [readonly] { background: #F6F3EC; }
.form [aria-invalid=true] { border-color: #C2513E; }
.field__error { margin: 4px 0 0; font-size: 13.5px; color: #B03E2B; }
.field__warn { margin: 0; font-size: 13.5px; color: #B03E2B; }
.hint { margin: -6px 0 0; font-size: 13px; color: #6B7280; }
.tip { margin: 0; padding: 12px 14px; border-radius: 10px; background: #F8F0DE; font-size: 14px; color: #5E4511; }
.tip b { margin-right: 6px; color: var(--gold-text); }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: 14.5px; cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 1px 0 0; flex: none; accent-color: var(--navy); }
.check small { color: #6B7280; }
.btn--block { width: 100%; }
.btn--lg { min-height: 54px; font-size: 17px; }
.btn--sm { min-height: 44px; padding: 10px 16px; font-size: 14.5px; border-radius: 10px; }
.btn--disabled { background: #EEE9DF; color: #6B6457; border-color: #EEE9DF; cursor: not-allowed; font-weight: 500; font-size: 15px; }
.stepper { list-style: none; display: flex; justify-content: center; gap: 18px; margin: 16px 0 0; padding: 0; font-size: 13.5px; color: #BDB5A3; }
.stepper li { display: flex; align-items: center; gap: 6px; }
.stepper span { width: 24px; height: 24px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; border: 1.5px solid #6D7A92; font-size: 12px; }
.stepper .is-on { color: #FFF6E2; font-weight: 700; }
.stepper .is-on span { background: var(--gold); border-color: var(--gold); color: var(--navy); }
.stepper .is-done span { border-color: var(--gold); color: var(--gold); }
.join-who { margin: 0; font-size: 16px; }
.consent { padding: 14px; border: 1px solid var(--line); border-radius: 12px; display: flex; flex-direction: column; gap: 10px; }
.consent summary { cursor: pointer; font-size: 14px; color: var(--navy); min-height: 32px; display: flex; align-items: center; }
.consent__body { margin: 6px 0 0; display: grid; grid-template-columns: 76px 1fr; gap: 6px 10px; font-size: 13.5px; color: var(--ink-2); }
.consent__body dt { font-weight: 700; color: var(--ink); }
.consent__body dd { margin: 0; }

/* 주보 목록 */
.bulletin-list { list-style: none; margin: 0; padding: 0; }
.bulletin-list li { display: flex; flex-direction: column; gap: 12px; padding: 18px 2px; border-bottom: 1px solid var(--line); }
.bulletin-list li:last-child { border-bottom: 0; }
.bulletin-list .is-latest { background: var(--cream); border-radius: 12px; padding: 18px 16px; border-bottom: 0; margin-bottom: 4px; }
.bulletin-list__info { display: flex; flex-direction: column; gap: 4px; }
.bulletin-list__date { font-size: 13px; color: var(--gold-text); }
.bulletin-list__date em { font-style: normal; margin-left: 6px; padding: 2px 8px; border-radius: 999px; background: var(--gold); color: var(--navy); font-size: 11.5px; font-weight: 700; }
.bulletin-list__btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

/* ---------- 헤더 로그아웃 ---------- */
.gnb__logout { display: flex; align-items: center; gap: 6px; margin: 0 0 0 4px; }
.gnb__logout button { min-height: 40px; padding: 8px 10px; border: 1px solid rgba(242, 201, 135, .5); border-radius: 999px; background: transparent; color: #F3E6CB; font: inherit; font-size: 13px; cursor: pointer; }
.gnb__logout button:hover { color: var(--gold); }
.gnb__name { font-size: 14px; color: var(--gold); }

/* =========================================================
   대림절 미션 (asj)
   ========================================================= */
.asj { max-width: 980px; margin: 0 auto; padding: 0 0 40px; }

/* 날짜 띠 */
.day-strip { background: var(--navy); padding: 8px 0 16px; }
.day-strip__list { list-style: none; margin: 0 auto; padding: 4px 16px; display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; }
.day-strip__list::-webkit-scrollbar { display: none; }
.day-strip li { flex: none; scroll-snap-align: center; }
.day-chip { position: relative; width: 52px; height: 64px; border-radius: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; text-decoration: none; background: rgba(255,255,255,.08); color: #F3E6CB; border: 1.5px solid transparent; }
.day-chip small { font-size: 10.5px; opacity: .8; }
.day-chip b { font-size: 18px; line-height: 1; }
.day-chip:hover { color: #FFF6E2; background: rgba(255,255,255,.14); }
.day-chip.is-locked { opacity: .45; }
.day-chip.is-today { border-color: var(--gold); }
.day-chip__icon { position: absolute; top: 3px; right: 3px; width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.day-chip.is-done { color: var(--navy); }
.day-chip--w1.is-done { background: #C9B6E0; } .day-chip--w2.is-done { background: #A9CDB0; }
.day-chip--w3.is-done { background: #F0D08E; } .day-chip--w4.is-done { background: #F2B4A8; }
.day-chip.is-done:hover { color: var(--navy); filter: brightness(1.05); }

.asj > .alert { margin: 16px 16px 0; }

/* 슬라이드 */
.slides { position: relative; margin: 16px 0 0; }
.slides__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; gap: 12px; padding: 0 16px; scrollbar-width: none; }
.slides__track::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 100%; scroll-snap-align: center; border-radius: var(--radius); padding: 28px 22px; box-shadow: var(--shadow); min-height: 560px; display: flex; flex-direction: column; }
.slide--paper { background: var(--white); }
.slide--paper h2 { margin: 6px 0 10px; font-size: 24px; color: var(--navy); }
.slide--paper h3 { margin: 18px 0 6px; font-size: 18px; color: var(--navy); }
.slide--paper p { margin: 0; font-size: 15px; line-height: 1.65; color: var(--ink-2); }
.slide__eyebrow { font-size: 12.5px !important; letter-spacing: .1em; color: #7A5E9E !important; font-weight: 700; }
.slide--cover { position: relative; overflow: hidden; background: var(--navy); color: #F3E6CB; }
.slide-cover__tree { position: absolute; right: -6px; top: 70px; width: 46%; max-width: 230px; height: auto; }
.slide-cover__star, .slide-cover__dots circle { fill: var(--gold); }
.slide-cover__dots circle { opacity: .85; }
.slide-cover__eyebrow { position: relative; margin: 0; font-size: 12px; letter-spacing: .1em; font-weight: 700; color: #E2C489; }
.slide-cover__title { position: relative; margin: 36px 0 0; font-size: 40px; line-height: 1.12; letter-spacing: .01em; color: var(--gold); font-weight: 700; }
.slide-cover__lead { position: relative; margin: 40px 0 0; font-size: 15px; line-height: 1.7; color: #F3E6CB; max-width: 260px; }
.slide-cover__name { position: relative; margin-top: auto; width: min(100%, 300px); padding: 18px 20px; border-radius: 10px; background: rgba(255,255,255,.08); }
.slide-cover__name span { display: block; font-size: 12px; font-weight: 700; letter-spacing: .08em; color: var(--gold); }
.slide-cover__name strong { display: block; margin-top: 6px; padding-bottom: 4px; border-bottom: 1px dashed rgba(242,201,135,.7); font-size: 20px; color: #FFF6E2; min-height: 34px; }
.slide-cover__foot { position: relative; margin: 18px 0 0; font-size: 11px; letter-spacing: .08em; font-weight: 700; color: #E9DCC0; }

.candles { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.candle { display: flex; flex-direction: column; gap: 2px; padding: 10px 14px 10px 30px; border-radius: 10px; background: #F4F2F6; position: relative; font-size: 13.5px; color: var(--ink-2); }
.candle::before { content: ''; position: absolute; left: 14px; top: 12px; bottom: 12px; width: 6px; border-radius: 3px; }
.candle b { font-size: 13.5px; letter-spacing: .04em; }
.candle--hope b { color: var(--hope); } .candle--hope::before { background: #7A6198; }
.candle--peace b { color: var(--peace); } .candle--peace::before { background: #5F8C68; }
.candle--joy b { color: var(--joy); } .candle--joy::before { background: #D3A548; }
.candle--love b { color: var(--love); } .candle--love::before { background: #EC8A78; }
.note-box { margin-top: auto; padding: 14px 16px; border-radius: 10px; background: #F4F2F6; display: flex; flex-direction: column; gap: 4px; font-size: 13.5px; color: var(--ink-2); }
.note-box b { color: #7A5E9E; font-size: 14.5px; }

.steps { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.steps li { display: flex; gap: 14px; align-items: flex-start; }
.steps li > span { flex: none; width: 44px; height: 44px; border-radius: 10px; background: #EFEAF5; color: #7A5E9E; display: flex; align-items: center; justify-content: center; font-size: 17px; font-weight: 700; }
.steps b { font-size: 13.5px; letter-spacing: .04em; color: #7A5E9E; }
.steps p { font-size: 14px !important; margin-top: 2px !important; }
.commit-box { margin-top: 18px; padding: 14px 16px; border-radius: 10px; background: #F8EEDC; display: flex; flex-direction: column; gap: 6px; font-size: 14.5px; }
.commit-box b { font-size: 12.5px; letter-spacing: .08em; color: #7A5E9E; }
.commit-box p { color: var(--ink) !important; }
.commit-box .commit-box__empty { color: #6B6457 !important; }
.commit-box a { align-self: flex-start; font-size: 14px; padding: 6px 0; }

.slides__arrow { display: none; }
.slides__dots { display: flex; justify-content: center; gap: 4px; margin-top: 12px; }
.slides__dots button { width: 28px; height: 28px; border: 0; background: transparent; padding: 0; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.slides__dots button::before { content: ''; width: 8px; height: 8px; border-radius: 999px; background: #CFC6B5; transition: width .2s; }
.slides__dots button[aria-current=true]::before { width: 22px; background: var(--navy); }

.asj-actions { padding: 16px 16px 0; display: flex; flex-direction: column; gap: 12px; }

/* DAY 페이지 */
.day-nav { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; margin-bottom: 12px; font-size: 14.5px; }
.day-nav a { min-height: 44px; display: inline-flex; align-items: center; text-decoration: none; }
.day-nav .day-nav__btn:last-child { justify-content: flex-end; }
.day-nav__home { padding: 0 14px; border-radius: 999px; background: var(--white); box-shadow: 0 2px 8px rgba(15,34,64,.08); }
.day-head { display: flex; align-items: center; gap: 14px; padding-bottom: 16px; border-bottom: 1.5px solid #8C78A8; }
.day-badge { flex: none; width: 64px; height: 64px; border-radius: 12px; color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; }
.day-badge small { font-size: 11px; font-weight: 700; letter-spacing: .06em; }
.day-badge b { font-size: 26px; margin-top: 3px; }
.day-badge--w1 { background: #7A6198; } .day-badge--w2 { background: #4F7D5A; }
.day-badge--w3 { background: #B98620; } .day-badge--w4 { background: #C8604E; }
.day-head__meta { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .06em; color: #7A5E9E; }
.day-head__title { margin: 4px 0 0; font-size: 20px; line-height: 1.3; color: var(--navy); }
.day-done { margin-left: auto; align-self: flex-start; padding: 4px 10px; border-radius: 999px; background: #EAF2EB; color: #2F5A38; font-size: 12.5px; font-weight: 700; }
.day-locked { margin: 0; padding: 32px 8px; text-align: center; color: var(--ink-2); }
.day-refs { margin: 0; padding: 14px 16px; border-radius: 10px; background: #F4F0F7; display: flex; flex-direction: column; gap: 6px; }
.day-refs div { display: grid; grid-template-columns: 110px 1fr; gap: 8px; }
.day-refs dt { font-size: 13px; font-weight: 700; color: #7A5E9E; letter-spacing: .04em; }
.day-refs dd { margin: 0; font-size: 15px; }
.day-paper { gap: 18px; }
.english-only { margin: 0; font-size: 13.5px; color: var(--ink-2); }
.english-only b { color: var(--navy); }
.q { display: flex; flex-direction: column; gap: 8px; }
.q__title { margin: 0; font-size: 17px; letter-spacing: .02em; color: var(--navy); }
.q__title span { margin-right: 6px; }
.q__desc { margin: 0; font-size: 13.5px; color: var(--ink-2); }
.q__ask { margin: 0; font-size: 15px; font-weight: 700; }
.check--task { padding: 12px 14px; border-radius: 10px; background: #F6F3EC; }
.draft-note { margin: 0; font-size: 13px; color: #6B7280; text-align: center; }

/* 도장판 */
.journey { gap: 10px; }
.journey__eyebrow { margin: 0; font-size: 12.5px; letter-spacing: .1em; font-weight: 700; color: #C29A3E; }
.journey__title { margin: 0; font-size: 26px; color: var(--navy); }
.journey__progress { margin: 4px 0 0; font-size: 15px; color: var(--ink-2); }
.journey__progress b { font-size: 22px; color: var(--navy); }
.progress { height: 10px; border-radius: 999px; background: #EEE9DF; overflow: hidden; }
.progress span { display: block; height: 100%; background: var(--gold); border-radius: inherit; }
.journey__desc { margin: 0; font-size: 13.5px; color: var(--ink-2); }
.stamps { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.stamp { aspect-ratio: 1.1 / 1; border-radius: 12px; background: #F4F2F6; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-decoration: none; border: 2px solid transparent; }
.stamp b { font-size: 12.5px; letter-spacing: .03em; }
.stamp__box { width: 24px; height: 24px; border: 2px solid currentColor; border-radius: 3px; display: flex; align-items: center; justify-content: center; }
.stamp svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.stamp.is-locked { opacity: .45; }
.stamp.is-locked svg { stroke-width: 1.8; }
.stamp.is-today { border-color: var(--navy); }
.stamp--w1 { color: #6E5590; } .stamp--w2 { color: #4A7655; } .stamp--w3 { color: #A87A1C; } .stamp--w4 { color: #C0594A; }
.stamp.is-done .stamp__box { background: currentColor; }
.stamp.is-done .stamp__box svg { stroke: #fff; width: 18px; height: 18px; }
.stamp:hover:not(.is-locked) { filter: brightness(.97); }
.journey__cert { margin-top: 12px; display: flex; }
.journey__cert .btn { flex: 1; }

/* 수료증 */
.cert { position: relative; background: #FFFDF7; border: 10px solid var(--navy); outline: 2px solid var(--gold); outline-offset: -18px; border-radius: 6px; padding: 48px 28px 40px; text-align: center; box-shadow: var(--shadow); }
.cert__star { width: 44px; height: 44px; margin: 0 auto; fill: var(--gold); }
.cert__eyebrow { margin: 14px 0 0; font-size: 11.5px; letter-spacing: .12em; color: #7A5E9E; font-weight: 700; }
.cert__title { margin: 10px 0 0; font-family: var(--serif); font-size: 26px; color: var(--navy); }
.cert__ko { margin: 4px 0 0; font-size: 15px; letter-spacing: .4em; color: var(--gold-text); }
.cert__name { margin: 28px auto 0; padding-bottom: 6px; max-width: 240px; border-bottom: 1.5px solid var(--gold); font-family: var(--serif); font-size: 30px; font-weight: 700; color: var(--ink); }
.cert__body { margin: 22px 0 0; font-size: 15px; line-height: 1.8; color: var(--ink-2); }
.cert__verse { margin: 18px 0 0; font-family: var(--serif); font-size: 14.5px; color: var(--navy); }
.cert__verse small { display: block; font-family: var(--sans); font-size: 12px; color: #6B7280; }
.cert__date { margin: 24px 0 0; font-size: 14.5px; }
.cert__from { margin: 6px 0 0; font-family: var(--serif); font-size: 17px; font-weight: 700; color: var(--navy); }
.cert-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 16px; }

/* 종이 카드 (미션 페이지 공통) */
.paper { gap: 14px; }

@media (min-width: 768px) {
  .sub-hero { padding: 40px 24px 96px; }
  .sub-hero h1 { font-size: 34px; }
  .sub-hero p { font-size: 16px; }
  .sub-wrap { margin-top: -64px; padding: 0 24px 64px; }
  .page-day .sub-wrap--day { margin-top: 24px; }
  .bulletin-list li { flex-direction: row; align-items: center; justify-content: space-between; }
  .bulletin-list__btns { display: flex; }

  .day-strip { padding: 12px 0 20px; }
  .day-strip__list { justify-content: flex-start; padding: 4px 24px; }
  .slides { margin: 24px 24px 0; }
  .slides__track { padding: 0; gap: 24px; }
  .slide { padding: 48px 56px; min-height: 620px; }
  .slide-cover__tree { width: 36%; right: 40px; top: 80px; }
  .slide-cover__title { font-size: 64px; }
  .slide-cover__lead { font-size: 18px; max-width: 420px; }
  .slide--paper h2 { font-size: 32px; }
  .slide--paper p { font-size: 16px; }
  .candles { display: grid; grid-template-columns: 1fr 1fr; }
  .slides__arrow { display: flex; position: absolute; top: calc(50% - 40px); width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--white); box-shadow: 0 4px 14px rgba(15,34,64,.18); align-items: center; justify-content: center; cursor: pointer; color: var(--navy); }
  .slides__arrow svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
  .slides__arrow--prev { left: -18px; }
  .slides__arrow--next { right: -18px; }
  .slides__arrow[disabled] { opacity: .35; cursor: default; }
  .asj-actions { padding: 20px 24px 0; align-items: center; }
  .asj-actions .btn-row { min-width: 420px; }

  .day-paper { padding: 36px 40px; }
  .day-head__title { font-size: 24px; }
  .stamps { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
  .stamp b { font-size: 14px; }
  .journey { padding: 40px; }
  .journey__title { font-size: 32px; }
  .cert { padding: 64px 48px 52px; }
  .cert__title { font-size: 32px; }
}

@media print {
  .site-header, .site-footer, .cert-actions, .skip-link { display: none !important; }
  body { background: #fff; }
  .sub-wrap { margin: 0 auto; padding: 0; }
  .cert { box-shadow: none; }
}
@media (min-width: 480px) and (max-width: 767px) {
  .stamps { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
}
.form .has-hangul { border-color: #C2513E; }

/* ---------- 보정 ---------- */
body { min-height: 100vh; display: flex; flex-direction: column; }
.site-footer { margin-top: auto; }
.sub-wrap--plain { margin-top: 20px; }
.only-mo { display: inline-block; }
.gnb__logout button { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; }
.gnb__logout svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.brand__text strong, .brand__text span { white-space: nowrap; }
.page-asj { overflow-x: hidden; }
.day-strip { margin: 0 calc(50% - 50vw); }
.day-strip__list { max-width: 980px; }
@media (min-width: 768px) {
  .only-mo { display: none; }
  .sub-wrap--plain { margin-top: 32px; }
  .gnb__logout button { padding: 8px 14px; }
}
@media (max-width: 374px) {
  .brand__text span { display: none; }
}
body > main, body > header, body > footer, body > div { min-width: 0; width: 100%; }

/* DAY 페이지 바로가기: 미션 메인으로 | 미션 현황 */
.day-shortcuts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 8px; }
.day-shortcuts__btn { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; background: var(--white); border: 1.5px solid var(--navy); color: var(--navy); text-decoration: none; font-size: 15px; font-weight: 500; }
.day-shortcuts__btn:hover { background: var(--navy); color: var(--gold); }
.day-nav { grid-template-columns: 1fr 1fr; }
.day-nav .day-nav__btn--next { justify-content: flex-end; }
@media (min-width: 768px) {
  .day-shortcuts { display: flex; justify-content: center; }
  .day-shortcuts__btn { padding: 0 24px; }
}

/* 날짜 띠 좌우 이동 버튼 */
.day-strip__inner { max-width: 980px; margin: 0 auto; padding: 0 8px; display: flex; align-items: center; gap: 4px; }
.day-strip .day-strip__list { flex: 1; min-width: 0; max-width: none; margin: 0; padding: 4px 2px; scroll-snap-type: none; }
.day-strip__arrow { flex: none; width: 40px; height: 64px; border: 0; border-radius: 12px; background: rgba(255,255,255,.08); color: var(--gold); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.day-strip__arrow:hover { background: rgba(255,255,255,.16); }
.day-strip__arrow[disabled] { opacity: .3; cursor: default; }
.day-strip__arrow svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
@media (min-width: 768px) {
  .day-strip__inner { padding: 0 24px; gap: 8px; }
  .day-strip__arrow { width: 44px; }
}

/* READ 본문보기 버튼 + 팝업 */
.day-refs dd { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; }
.verse-open { min-height: 32px; padding: 4px 12px; border: 1.5px solid #7A5E9E; border-radius: 999px; background: var(--white); color: #6A4F8C; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.verse-open:hover { background: #7A5E9E; color: #fff; }
.verse-dialog { width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 48px); padding: 0; border: 0; border-radius: 18px; box-shadow: 0 20px 60px rgba(15,34,64,.35); color: var(--ink); }
.verse-dialog::backdrop { background: rgba(11, 26, 51, .6); }
.verse-dialog.is-fallback { position: fixed; inset: 0; margin: auto; z-index: 100; }
.verse-dialog__box { padding: 24px 22px 20px; display: flex; flex-direction: column; gap: 14px; }
.verse-dialog__head { position: relative; padding-right: 44px; }
.verse-dialog__label { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .08em; color: #7A5E9E; }
.verse-dialog__head h2 { margin: 4px 0 0; font-family: var(--serif); font-size: 22px; color: var(--navy); }
.verse-dialog__close { position: absolute; top: -6px; right: -6px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; color: var(--ink-2); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.verse-dialog__close:hover { background: #F4F0F7; }
.verse-dialog__close svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.verse-dialog__body { max-height: 55vh; overflow-y: auto; padding: 16px 18px; border-radius: 12px; background: #FAF6EE; font-family: var(--serif); font-size: 17px; line-height: 1.8; }
.verse-dialog__body p { margin: 0 0 8px; }
.verse-dialog__body p:last-child { margin-bottom: 0; }
.verse-dialog__body sup { margin-right: 4px; font-family: var(--sans); font-size: 11px; font-weight: 700; color: #7A5E9E; }
.verse-dialog__src { margin: 0; font-size: 12px; color: #6B7280; text-align: right; }

/* COPY THE VERSE 흐린 글씨 따라쓰기 */
.q__hint { margin: 0; font-size: 13px; color: #7A5E9E; }
.ghost-field { position: relative; }
.ghost-field__mirror, .ghost-field textarea {
  font: inherit; font-size: 17px; line-height: 1.7; letter-spacing: 0;
  padding: 12px 14px; border: 1.5px solid transparent; border-radius: 12px;
  white-space: pre-wrap; word-wrap: break-word; overflow-wrap: break-word; word-break: normal;
}
.ghost-field__mirror { position: absolute; top: 0; left: 0; right: 0; overflow: hidden; pointer-events: none; color: transparent; background: var(--white); }
.ghost-field__typed { color: transparent; }
.ghost-field__rest { color: #B9B3C9; }
.form .ghost-field textarea { position: relative; z-index: 1; background: transparent; border-color: #D5CCBB; resize: none; overflow: hidden; min-height: 132px; color: var(--ink); caret-color: var(--navy); }
.ghost-progress { margin: 0; min-height: 20px; font-size: 13.5px; color: #4F7D5A; }
.ghost-progress.is-diff { color: #B03E2B; }
.ghost-progress.is-done { font-weight: 700; }
