/* 반쪽 찾기 — 밝은 보라색 행사 화면, 시스템 한글 서체, 모바일 우선. */

:root {
  --cream: #f8f6fc; /* 페이지 배경 */
  --card: #ffffff; /* 카드 */
  --field: #faf9fc; /* 입력 바탕 */
  --ink: #272338; /* 본문 텍스트 */
  --muted: #6c657d; /* 보조·설명 */
  --line: #dcd7e8; /* 경계선 */
  --coral: #6148b8; /* 주 포인트 */
  --coral-hi: #51389e; /* hover */
  --coral-lo: #48318e; /* active */
  --mint: #5b8071; /* 보조 포인트 */
  --mint-lo: #26745b;
  --danger-bg: #ffe3e3;
  --danger-fg: #c0392b;
  --brand: #514073; /* 브랜드 색 */
  --radius: 14px;
  --radius-lg: 22px;
  --touch: 3.25rem; /* 최소 터치 타깃 */
  --font:
    "Apple SD Gothic Neo", "Pretendard", system-ui, "Noto Sans KR", Roboto,
    sans-serif;
}

/* 액션마다 문서 전체가 다시 그려진다(PRG: POST→303→GET). 브라우저가 이전 화면을 붙잡고
   새 문서와 교차시켜 흰 깜박임을 없앤다. 링크 클릭·폼 제출 모두 발동(2026-07-22 실측).
   새로고침은 스펙상 제외. 미지원 브라우저(현재 Firefox)는 지금 동작 그대로 — 점진 향상. */
@view-transition {
  navigation: auto;
}

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

/* button/a.btn-a/input[type=submit] 처럼 author 규칙이 display 를 지정하는 요소는
   UA 스타일시트의 `[hidden] { display: none }` 을 origin 우선순위로 이긴다(특정성과 무관).
   그래서 여기서 author 규칙으로 되찾는다 — !important 는 장식이 아니라
   input[type="submit"] 의 특정성(0,1,1)이 맨 `[hidden]`(0,1,0)보다 높아서 필요하다.
   지우면 hidden 요소가 JS 없는 환경에서 다시 보인다. */
[hidden] {
  display: none !important;
}

html {
  -webkit-text-size-adjust: 100%;
  /* 행사장에서 폰을 팔 뻗어 보는 30~40대가 기준 — 기본 17px, 데스크톱 18px.
     rem 기반이라 전 화면(관리자 포함)이 함께 커진다. */
  font-size: 17px;
}
@media (min-width: 900px) {
  html { font-size: 18px; }
}
:root {
  /* 공유 레이아웃 축 — 헤더와 본문이 같은 값을 본다. 한쪽만 바꾸지 말 것. */
  --shell-max: 62rem;   /* 참석자 전 화면 단일 폭(≈1116px) — 페이지를 오가도 본문 축이 안 흔들린다 */
  --shell-pad: clamp(1.15rem, 4vw, 3.5rem);
}

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.05rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* 지속 헤더 — 교회 브랜드 = 홈 링크(전 참석자 화면 공통 네비).
   배경 투명 = 상단 그라데이션이 헤더로 자연스럽게 이어짐(하드 라인 제거).
   backdrop blur = 스크롤 시 뒤 콘텐츠만 흐려 브랜드 가독 유지. */
.app-header {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 0.55rem 1.15rem;
  background: rgba(248, 247, 252, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--brand);
  text-decoration: none;
}
.brand-logo {
  width: 2.2rem;
  height: 2.2rem;
  flex: none;
  /* 교회 아이콘(하트+십자가) — 투명 배경이라 헤더 그라데이션 위에 자연히 얹힘 */
  background: url(/static/church-logo.png) center / contain no-repeat;
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.08;
}
.brand-church {
  font-weight: 800;
  font-size: 1.02rem;
  letter-spacing: -0.01em;
  color: #000;   /* 교회 이름 = 검정 고정 */
}
.brand-event {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--mint);
  letter-spacing: 0.01em;
}

/* 공통 셸 — 모든 화면이 같은 폭 규칙을 쓴다: 데스크톱은 꽉 채우고(패딩만),
   초광폭에서만 상한. 페이지별 max-width 를 다시 만들지 말 것 — 화면을 오갈 때
   본문 폭이 널뛰던 원인이었다(2026-09-12 통일). 읽기 폭은 내용 요소가 정한다. */
main {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--shell-max);
  margin-inline: auto;
  padding: 2rem var(--shell-pad) 4rem;
}


/* ── 타이포 ── */
h1,
h2,
h3 {
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.6rem;
}
h1 {
  font-size: 1.9rem;
  font-weight: 800;
}
h2 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-top: 1.6rem;
}
p {
  margin: 0.5rem 0;
}
small {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.4;
}
strong {
  font-weight: 700;
}
a {
  color: var(--coral-lo);
  text-underline-offset: 3px;
}

/* ── 카드 ── */
article,
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.25rem;
  margin: 1rem 0;
  box-shadow: 0 14px 34px -22px rgba(43, 43, 51, 0.5);
}

/* ── 폼 ── */
label {
  display: block;
  margin: 0.9rem 0;
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 600;
}
input,
select,
textarea {
  display: block;
  width: 100%;
  min-height: var(--touch);
  margin-top: 0.35rem;
  padding: 0.7rem 0.9rem;
  background: var(--field);
  color: var(--ink);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  font: inherit;
  font-size: 1.05rem;
}
input::placeholder {
  color: #a79fae;
}
input:focus,
select:focus {
  outline: none;
  background: var(--card);
  border-color: var(--coral);
  box-shadow: 0 0 0 4px rgba(255, 107, 107, 0.18);
}
select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position:
    calc(100% - 1.15rem) 55%,
    calc(100% - 0.8rem) 55%;
  background-size:
    6px 6px,
    6px 6px;
  background-repeat: no-repeat;
}

fieldset {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.5rem 1rem 1rem;
  margin: 1rem 0;
}
legend {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0 0.4rem;
}

/* 체크박스 = 가로 배치 */
label:has(> input[type="checkbox"]) {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  color: var(--ink);
  font-weight: 400;
  font-size: 0.9rem;
}
input[type="checkbox"] {
  width: 1.4rem;
  height: 1.4rem;
  min-height: 0;
  margin: 0;
  flex: none;
  accent-color: var(--coral);
}

/* 필수 표시 별표 */
.req {
  color: var(--coral);
  font-weight: 700;
}

/* 연락처 = [010]-[4자리]-[4자리] 3박스 한 줄 */
.contact-field {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.35rem;
}
.contact-part {
  margin-top: 0;
  text-align: center;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}
.contact-field input:not(.contact-fixed) {
  flex: 1 1 0;
  min-width: 0;
}
.contact-fixed {
  flex: 0 0 3.6rem;
  font-weight: 600;
  color: var(--ink);
}
.contact-sep {
  flex: none;
  color: var(--muted);
  font-weight: 700;
}

/* 희망 또래 = [최소 또래] ~ [최대 또래] 한 줄 */
.pref-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.pref-row select {
  flex: 1 1 0;
  min-width: 0;
  margin-top: 0.35rem;
}
.pref-sep {
  flex: none;
  color: var(--muted);
  font-weight: 700;
}

/* ── 버튼 ── */
button,
a.btn-a,
input[type="submit"] {
  display: inline-block;
  width: 100%;
  min-height: var(--touch);
  margin-top: 0.6rem;
  padding: 0.85rem 1.2rem;
  background: var(--coral);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font: inherit;
  font-size: 1.08rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 8px 18px -10px rgba(255, 107, 107, 0.8);
  transition:
    transform 0.08s ease,
    background 0.15s ease;
}
button:hover,
a.btn-a:hover {
  background: var(--coral-hi);
}
button:active,
a.btn-a:active {
  transform: scale(0.97);
  background: var(--coral-lo);
}
button:focus-visible,
a.btn-a:focus-visible {
  outline: 3px solid var(--mint);
  outline-offset: 2px;
}

/* 보조 버튼 = 민트 외곽선 */
.secondary,
button.secondary,
a.btn-a.secondary {
  background: var(--card);
  color: var(--mint-lo);
  box-shadow: inset 0 0 0 1.5px var(--mint);
}
.secondary:hover,
a.btn-a.secondary:hover {
  background: rgba(22, 199, 154, 0.08);
}

/* ── 오류·상태 ── */
mark {
  display: block;
  background: var(--danger-bg);
  color: var(--danger-fg);
  border-radius: var(--radius);
  padding: 0.7rem 0.9rem;
  font-size: 0.95rem;
  font-weight: 600;
}
/* 성공 — 오류와 같은 자리·같은 크기로 띄우되 색만 뒤집는다(제출 직후 1회) */
mark.ok {
  background: var(--mint-bg, rgba(22, 199, 154, 0.12));
  color: var(--mint-lo);
}

/* ── details / 로그인 접기 ── */
details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.3rem 1rem;
  margin: 1rem 0;
}
summary {
  cursor: pointer;
  padding: 0.6rem 0;
  color: var(--muted);
  font-weight: 600;
  list-style: none;
}
summary::-webkit-details-marker {
  display: none;
}
summary::before {
  content: "＋ ";
  color: var(--coral);
}
details[open] summary::before {
  content: "－ ";
}

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

  /* ::view-transition-* 는 위 `*` 에 안 잡힌다 — 루트 밖 별도 트리다. 그리고 Firefox 에선
     무효 셀렉터라 `*` 와 콤마로 합치면 규칙 전체가 폐기된다. 반드시 분리해 둔다.
     `animation: none` 이 아니라 1ms 인 이유: none 은 두 스냅샷이 겹친 채 남을 수 있다. */
  ::view-transition-group(*),
  ::view-transition-old(*),
  ::view-transition-new(*) {
    animation-duration: 1ms !important;
  }
}

/* 오류 화면 — 무슨 일인지 + 다음에 뭘 하면 되는지 + 돌아갈 길 */
.error-page { padding: 1.5rem 1rem; max-width: 34rem; margin: 0 auto; }
.error-page h1 { font-size: 1.35rem; margin: 0 0 .75rem; }
.error-detail { font-size: 1.05rem; line-height: 1.6; margin: 0 0 .75rem; }
.error-hint { color: var(--muted, #6b6b6b); line-height: 1.6; margin: 0 0 1.5rem; }
.error-back a { display: inline-block; min-height: 3.25rem; line-height: 3.25rem;
                padding: 0 1.25rem; }

/* ── 대화 질문 ── */
.q-title {
  margin-bottom: 0.2rem;
}
.q-hint {
  margin-top: 0;
  color: var(--muted);
}
.q-card {
  text-align: center;
  padding: 2rem 1.25rem;
}
.q-card p {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.45;
  letter-spacing: -0.02em;
}
.q-all {
  margin: 2rem 0 0.6rem;
  font-size: 1rem;
  color: var(--muted);
}
.q-list {
  margin: 0 0 0.9rem;
  padding-left: 1.3rem;
}
.q-list li {
  margin: 0.5rem 0;
}

/* 배치도 — 폰은 폭만으로 크기를 정한다. 세로를 화면 안에 묶으면(46vh 같은) 15줄짜리
   깊은 방에서 줄당 3vh 가 되어 지도가 소멸한다. 폰은 원래 세로로 스크롤하는 물건이다.
   칸이 많으면 글자는 작아지지만 내 칸은 색으로 찾는다 — 가로 스크롤도 자동 스크롤도 없다. */
.tmap {
  --tmap-w: 88vw;
  --tmap-h: 999vh;
  --tmap-fill: var(--field);
  --tmap-ink: var(--ink);
  --tmap-front: var(--muted);
  --tmap-mine: var(--coral);
  --tmap-mine-ink: #ffffff;
  margin: 1rem auto 0;
}

/* 시즌3: 안내 → 신청 → 입장. 기존 행사 화면의 컴포넌트와 함께 사용한다. */
:root { color-scheme: light; }
a, button, input, select, summary { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 4px; }
html { scroll-padding-top: 6rem; }
h1, h2, h3, p, li { word-break: keep-all; overflow-wrap: anywhere; }
input:focus, select:focus { box-shadow: 0 0 0 4px #6148b81a; }
button, a.btn-a, input[type="submit"] { box-shadow: none; }
button:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.skip-link { position: fixed; top: -6rem; left: 1rem; z-index: 100; padding: .8rem 1rem; background: white; border-radius: 8px; }
.skip-link:focus { top: .5rem; }
.app-header { padding: 1rem 0; border-bottom: 1px solid #e6e1ee80; }
.header-inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  max-width: var(--shell-max); margin-inline: auto; padding-inline: var(--shell-pad); }
.brand-text { gap: .25rem; }
/* 교회 이름은 시즌 팔레트를 따르지 않는다 — 브랜드 표기는 늘 검정 고정(2026-09-13 요청). */
.brand-church { font-size: .8rem; color: #000; font-weight: 500; }
.brand-event { font-size: .97rem; color: var(--ink); font-weight: 800; letter-spacing: -.04em; }
.header-nav { display: flex; align-items: center; gap: 1.2rem; font-size: .82rem; font-weight: 600; }
.header-nav a { color: var(--muted); text-decoration: none; padding: .65rem 0; }
.header-nav .header-login { color: var(--coral); }
.header-nav a[aria-current="page"] { color: var(--coral-lo); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .45rem; }
.header-login span { margin-left: .3rem; }
.app-footer { border-top: 1px solid var(--line); text-align: center; padding: 2.2rem 1rem; color: var(--muted); font-size: .8rem; }
.app-footer p { font-weight: 600; }
.app-footer small { font-size: .73rem; }
main:focus { outline: none; }
.eyebrow { font-size: .75rem; letter-spacing: .08em; font-weight: 700; color: var(--coral); margin: 0 0 1.1rem; }
.back-link { display: inline-block; padding: .5rem 0; margin-bottom: 1.6rem; text-decoration: none; color: var(--muted); font-size: .85rem; }
.page-heading { margin-bottom: 1.75rem; }
.page-heading .eyebrow { margin-bottom: .65rem; }
.page-heading p:not(.eyebrow) { color: var(--muted); font-size: .95rem; margin-top: .8rem; }
.form-alert { background: #fff0ef; border: 1px solid #edc7c4; padding: 1rem; border-radius: 12px; color: #91382f; margin: 1rem 0; font-size: .9rem; }
#request-feedback:not([hidden]) { position: sticky; top: 5rem; z-index: 25; box-shadow: 0 4px 20px #29243d12; }
.registration-status { display: flex; gap: .5rem; align-items: center; color: var(--muted); font-size: .83rem; font-weight: 600; }
.status-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
.registration-status.is-open { color: var(--mint-lo); }
.registration-hint, .registration-time { color: var(--muted); font-size: .85rem; line-height: 1.7; }
.registration-time { color: var(--ink); font-weight: 700; }
.field-hint { color: var(--muted); font-size: .85rem; line-height: 1.7; font-weight: 400; }
.join-event-summary { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.1rem; margin-bottom: 1.8rem; background: #eee9f8; border: 1px solid #e3daf4; border-radius: 12px; }
.join-event-summary > span { font-size: 1.4rem; color: var(--coral); }
.join-event-summary strong { display: block; font-size: 1.08rem; font-weight: 750; }
.join-event-summary small { display: block; font-size: .88rem; margin-top: .3rem; }
.join-form .form-section { margin: 1.6rem 0; padding: 1.2rem 1.3rem; background: white; border: 1px solid var(--line); border-radius: 16px; min-width: 0; }
.join-form .form-section > legend { font-size: .93rem; color: var(--ink); font-weight: 700; padding: 0 .45rem; }
.section-index { color: var(--coral); font-size: .75rem; margin-right: .25rem; }
.required-hint { text-align: right; font-size: .72rem; color: var(--muted); margin: -.4rem 0; }
.form-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* 폼 컨트롤 가독 폭 — 셸(62rem)은 전 화면 공통이지만, 한 줄짜리 입력칸과 버튼이
   1000px 로 늘어나면 어디를 눌러야 할지 눈이 흔들린다. 블록의 좌우 끝은 그대로 두고
   컨트롤만 좁힌다(2026-09-12). 모바일은 기존 세로 흐름 그대로. */
@media (min-width: 760px) {
  .field-grid { display: grid; grid-template-columns: 1fr 1fr; column-gap: 1.6rem; align-items: start; }
  .field-grid > .contact-group { margin-block: .9rem 0; }
  /* 컨트롤이 아니라 폼 자체를 읽기 폭으로 — 중앙 정렬 버튼이 페이지 중앙이 아니라
     '자기 폼의 중앙'에 놓인다(피드백 폼에서 버튼만 오른쪽으로 밀려 보이던 원인). */
  .pref-row, .feedback-form, .login-card form, .page-profile form { max-width: 34rem; }
  /* 제출 버튼 = 한 손으로 겨냥할 폭 + 중앙 정렬. 폼 본문은 왼쪽 레일을 지키고
     마지막 액션만 가운데로 모아 '여기서 끝'을 만든다(2026-09-12 사용자 선택).
     버튼 바로 위 안내와 아래 보조 링크(.form-login)까지 한 덩어리로 중앙. */
  .join-form > button, .feedback-form button, .login-card button,
  .page-profile form button, .page-done .btn-a {
    max-width: 22rem; display: block; margin-inline: auto; }
  .join-form > .field-hint, .feedback-form > .field-hint,
  .page-done .field-hint { text-align: center; }
}
.join-form label { color: var(--ink); font-size: .86rem; }
.join-form input, .join-form select { border-radius: 9px; border-width: 1px; padding-right: 2rem; }
.join-form input { padding-right: .9rem; }
.join-form .contact-group { padding: 0; border: 0; margin: .9rem 0; min-width: 0; }
.contact-group legend { color: var(--ink); padding: 0; }
.contact-group small { display: block; margin-top: .5rem; font-weight: 400; }
.join-form .contact-part { padding-left: .3rem; padding-right: .3rem; }
.join-form .check-row { display: flex; align-items: flex-start; gap: .7rem; font-size: .86rem; font-weight: 500; line-height: 1.6; }
.join-form .check-row input { margin-top: .05rem; }
.form-login { margin: 1.5rem 0; text-align: center; font-size: .8rem; color: var(--muted); line-height: 1.8; }
.form-login a { white-space: nowrap; margin-left: .2rem; }
.login-card { padding: 2rem 1.5rem; }
.login-card h1 { font-size: 1.8rem; }
#login-status { color: var(--muted); margin: 1rem 0 1.75rem; font-size: .9rem; line-height: 1.7; }
.login-help { text-align: center; margin-top: 1.2rem; font-size: .8rem; }
.confirmation-heading { text-align: center; padding: 1rem 0; }
.confirmation-heading h1 { font-size: 1.8rem; line-height: 1.35; }
.confirmation-heading > p:last-child { color: var(--muted); font-size: .9rem; }
.success-icon { display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 1.5rem; color: var(--mint-lo); background: #e7f1eb; border-radius: 50%; font-size: 2rem; }
.next-steps h2 { font-size: 1.1rem; margin-top: 0; }
.next-steps ol { padding-left: 1.3rem; margin: 1.3rem 0 0; }
.next-steps li { padding-left: .3rem; margin-bottom: 1.3rem; font-size: .9rem; }
.next-steps li::marker { color: var(--coral); font-weight: 700; }
.next-steps li:last-child { margin-bottom: 0; }
.next-steps p { color: var(--muted); font-size: .84rem; line-height: 1.65; }
.attendee-event { font-size: .75rem; color: var(--muted); margin-bottom: 1.5rem; }
.attendee-event span, .attendee-event strong { display: block; }
.attendee-event strong { font-size: .85rem; color: var(--ink); margin-top: .2rem; }


/* 공개 소개 화면 */
.page-landing main { padding-top: 0; padding-bottom: 3rem; }
.event-hero { display: grid; grid-template-columns: 1.18fr 1fr; align-items: center; gap: 2.5rem; min-height: 590px; padding: 4.8rem 0 3.5rem; }
.hero-copy .eyebrow { display: inline-flex; gap: .75rem; border: 1px solid #ded6ed; border-radius: 6px; padding: .4rem .65rem; font-size: .73rem; letter-spacing: .02em; }
.hero-copy .eyebrow span { color: #aaa0bc; }
.hero-invitation { font-size: .98rem; color: var(--muted); margin: 1rem 0 .8rem; }
.hero-copy h1 { font-size: clamp(2.2rem, 4.1vw, 3.4rem); font-weight: 800; letter-spacing: -.075em; line-height: 1.3; white-space: nowrap; }
.title-bracket { font-weight: 300; color: #ac9acb; padding: 0 .08em; }
.hero-subtitle { font-size: 1.22rem; font-weight: 600; color: var(--coral); letter-spacing: -.04em; margin-top: .5rem; }
.cursor { color: #ae92d8; margin-left: .25rem; }
.hero-description { margin-top: 1.65rem; font-size: .9rem; line-height: 1.9; color: var(--muted); max-width: 29rem; }
.hero-action { margin-top: 2rem; max-width: 23rem; }
.hero-action .btn-a { margin-top: .7rem; display: flex; justify-content: space-between; font-size: .95rem; align-items: center; }
.hero-login { margin-top: .9rem; font-size: .73rem; color: var(--muted); }
.hero-login a { white-space: nowrap; margin-left: .4rem; }
.connection-art { position: relative; isolation: isolate; padding: 2.8rem .3rem; }
.art-orbit { position: absolute; z-index: -1; border-radius: 50%; }
.orbit-one { width: 300px; height: 300px; background: #e7def5; top: -1rem; right: -1rem; }
.orbit-two { width: 160px; height: 160px; background: #e5ebd3; bottom: 0; left: -.8rem; }
.login-window { overflow: hidden; border: 1px solid #d9cfea; border-radius: 14px; background: #fefdfd; box-shadow: 0 22px 60px -28px #6b4d9259; transform: rotate(-3deg); }
.window-bar { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #e6dfef; background: #f0eaf8; padding: .8rem 1rem; color: #8c7ba2; font: 10px ui-monospace, monospace; letter-spacing: .08em; }
.window-dots { display: flex; gap: 5px; }
.window-dots i { width: 6px; height: 6px; border: 1px solid #b9a9cc; border-radius: 50%; }
.window-content { padding: 1.8rem 1.7rem; }
.window-status { display: flex; justify-content: center; align-items: center; gap: .5rem; font-size: .69rem; color: #6d647c; }
.window-status .status-dot { color: #699883; width: 5px; height: 5px; }
.connection-pair { display: flex; justify-content: center; align-items: center; margin: 1.8rem 0 .6rem; gap: 1.3rem; }
.person-orb { border-radius: 28px; width: 85px; height: 92px; display: grid; place-items: center; }
.person-one { background: #eae2f6; transform: rotate(-6deg); }
.person-two { background: #e9efd9; transform: rotate(8deg); }
.person-orb svg { width: 53px; fill: none; stroke-width: 1.5; stroke: #8e75b9; }
.person-two svg { stroke: #7e9270; }
.connection-heart { color: #a588c4; font-size: 2.2rem; font-weight: 300; }
.connection-labels { display: flex; justify-content: center; gap: 6.7rem; font-size: .65rem; color: #8f839d; }
.window-message { text-align: center; margin-top: 1.9rem; font-size: .83rem; color: #685479; font-weight: 500; }
.window-cta { display: flex; align-items: center; justify-content: space-between; border-radius: 8px; padding: .8rem 1rem; background: #7357a7; color: white; font-size: .78rem; margin-top: 1rem; }
.art-sticker { position: absolute; right: -1.2rem; bottom: 1rem; padding: .7rem 1rem; background: #e8edcc; border: 1px solid #cfd6ac; color: #677647; box-shadow: 0 5px 10px #29243d08; font: italic 600 1.15rem Georgia, serif; transform: rotate(8deg); }
.art-sticker span { margin-left: .5rem; }
.event-facts { display: grid; grid-template-columns: 1.3fr .8fr 1fr; gap: 1.5rem; padding: 1.8rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.event-facts > div + div { border-left: 1px solid var(--line); padding-left: 1.5rem; }
/* 일시·대상·장소 = 참가 결정에 필요한 핵심 사실 — 본문보다 크게, 값은 강하게 */
.fact-label { display: block; font-size: .78rem; color: var(--muted); margin-bottom: .6rem; }
.event-facts strong { font-size: 1.2rem; font-weight: 750; letter-spacing: -.02em; }
.event-facts p { color: var(--muted); font-size: .9rem; margin-top: .45rem; }
.fact-duration { display: block; margin-top: .2rem; font-size: .82rem; }
.meet-flow { padding: 4.7rem 0 3.3rem; }
.meet-flow h2, .event-faq h2 { font-size: 1.65rem; letter-spacing: -.05em; margin: 0; }
.meet-flow .eyebrow { margin-bottom: .8rem; font-size: .68rem; }
.section-description { font-size: .86rem; color: var(--muted); margin-top: .8rem; }
.flow-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 1.8rem; }
.flow-step { margin: 0; border: 1px solid var(--line); border-radius: 12px; padding: 1.6rem; box-shadow: none; }
.step-number { font: .8rem ui-monospace, monospace; color: var(--coral); display: block; margin-bottom: 1.6rem; }
.flow-step h3 { font-size: 1rem; }
.flow-step p { color: var(--muted); font-size: .8rem; line-height: 1.8; margin-top: .7rem; }
.event-faq { display: grid; grid-template-columns: .8fr 1.5fr; gap: 3rem; padding: 1.7rem 0 2rem; }
.event-faq h2 { padding-top: 1rem; font-size: 1.45rem; }
.event-faq details { margin: 0; padding: .25rem 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; }
.event-faq summary { position: relative; padding: 1rem 1.7rem 1rem 0; color: var(--ink); font-size: .85rem; font-weight: 500; }
.event-faq summary::before { position: absolute; right: 0; }
.event-faq details p { color: var(--muted); font-size: .82rem; line-height: 1.8; margin: 0 0 1rem; }
.landing-end { text-align: center; margin-top: 2rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.landing-end p { font-size: .8rem; color: var(--muted); }
.landing-end .btn-a { max-width: 22rem; margin-top: 1.3rem; font-size: .9rem; }
@media (max-width: 760px) {
  .page-landing main { padding-inline: 1.25rem; }
  .event-hero { grid-template-columns: 1fr; gap: .5rem; padding: 2.5rem 0 1.8rem; min-height: auto; }
  .hero-copy h1 { font-size: clamp(2.05rem, 8.8vw, 3.7rem); }
  .hero-description { max-width: 33rem; }
  .hero-action { max-width: none; }
  .hero-subtitle { font-size: 1.08rem; }
  .connection-art { width: 82%; max-width: 370px; margin: 1rem auto 0; padding-block: 1.8rem; }
  .orbit-one { width: 230px; height: 230px; top: 0; }
  .orbit-two { width: 120px; height: 120px; }
  .window-content { padding: 1.3rem; }
  .connection-pair { margin-top: 1.2rem; }
  .person-orb { width: 65px; height: 70px; border-radius: 21px; }
  .person-orb svg { width: 44px; }
  .connection-labels { gap: 5.5rem; }
  .window-message { margin-top: 1.3rem; }
  .art-sticker { right: -1rem; bottom: .5rem; font-size: 1rem; }
  .event-facts { grid-template-columns: 1fr; gap: 1.2rem; padding-block: 1.5rem; }
  .event-facts > div + div { border: 0; padding: 0; }
  .event-facts > div { display: grid; grid-template-columns: 5.5rem 1fr; column-gap: .5rem; }
  .fact-label { grid-row: span 2; margin-top: .1rem; }
  .event-facts p { margin: .2rem 0 0; }
  .meet-flow { padding: 3rem 0 2rem; }
  .meet-flow h2 { font-size: 1.45rem; }
  .flow-grid { grid-template-columns: 1fr; gap: .7rem; margin-top: 1.3rem; }
  .flow-step { display: grid; grid-template-columns: 2rem 1fr; column-gap: .8rem; padding: 1.3rem; }
  .step-number { grid-row: span 2; margin: .1rem 0 0; }
  .flow-step p { margin-bottom: 0; }
  .event-faq { grid-template-columns: 1fr; gap: .5rem; padding-top: .5rem; }
  .event-faq h2 { font-size: 1.3rem; }
  .landing-end { margin-top: 1rem; }
}
@media (max-width: 380px) {
  .header-nav { gap: .65rem; font-size: .73rem; }
  .brand-event { font-size: .85rem; }
  .brand-church { font-size: .7rem; }
  .brand-logo { width: 1.8rem; height: 1.8rem; }
  .hero-copy h1 { letter-spacing: -.08em; }
  .hero-subtitle { font-size: .95rem; }
  .join-form .form-section { padding-inline: 1rem; }
  .form-columns { gap: .6rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none !important; }
}

/* 도움말 — 순서대로 읽는 본문과 필요한 곳으로 건너뛰는 목차. */
.page-help main { padding-top: 2.5rem; }
.help-heading h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
.help-heading p { color: var(--muted); line-height: 1.7; }
.help-timing { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 1.8rem 0 2.5rem; padding: 1.25rem 1.5rem; background: #eeebf7; border-radius: var(--radius); }
.help-timing dt { font-size: .85rem; font-weight: 700; color: var(--coral-lo); }
.help-timing dd { margin: .35rem 0 0; font-size: .95rem; }
/* 본문 열은 읽기 폭 상한 — 셸이 넓어져도 글줄이 화면 끝까지 늘어지지 않는다 */
.help-layout { display: grid; grid-template-columns: 15rem minmax(0, 60rem); gap: 3rem; align-items: start; }
.help-contents { position: sticky; top: 6rem; font-size: .9rem; }
.help-contents h2 { margin: 0 0 .8rem; font-size: 1rem; line-height: 1.5; }
.help-contents ol { padding-left: 1.3rem; margin: 0 0 .4rem; }
.help-contents a { display: inline-block; padding: .55rem 0; text-decoration: none; }
.help-contents a:hover { text-decoration: underline; }
.help-step, .help-faq { scroll-margin-top: 6rem; }
.help-step { padding: 0 0 1.8rem; margin-bottom: 1.8rem; border-bottom: 1px solid var(--line); }
.help-step h2 { display: flex; align-items: baseline; gap: .65rem; margin: 0 0 .8rem; line-height: 1.45; font-size: 1.3rem; }
.help-step-number { color: var(--coral); font-size: 1rem; flex: none; }
.help-summary { font-weight: 650; line-height: 1.7; }
.help-step ul { padding-left: 1.15rem; margin: 1rem 0 0; }
.help-step li { padding-left: .25rem; margin: .65rem 0; line-height: 1.85; color: var(--muted); font-size: .97rem; word-break: keep-all; overflow-wrap: anywhere; }
.help-faq h2 { margin-top: 0; }
.help-faq details { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; margin: 0; padding: .3rem 0; background: transparent; }
.help-faq summary { color: var(--ink); font-size: .97rem; line-height: 1.65; padding-right: .25rem; }
.help-faq details p { color: var(--muted); line-height: 1.85; font-size: .95rem; padding: 0 0 .9rem; }
.help-ask { margin-top: 2rem; color: var(--muted); font-size: .92rem; }
@media (max-width: 760px) {
  .page-help main { padding-top: 1.8rem; }
  .help-layout { grid-template-columns: 1fr; gap: 2rem; }
  .help-contents { position: static; padding-bottom: 1.2rem; border-bottom: 1px solid var(--line); }
  .help-timing { grid-template-columns: 1fr; gap: 1rem; margin: 1.5rem 0; padding: 1.1rem; }
  .help-step h2 { font-size: 1.2rem; }
}

/* 현장 참가자: 지금 할 일 → 내 참가증, 순위 → 후보. */
.is-participant { padding-bottom: calc(4.5rem + env(safe-area-inset-bottom)); background: #fff; }
.is-participant .app-header { background: #fff; }
.is-participant main { padding-bottom: 3rem; }
.is-participant .app-footer { padding-block: 1.3rem; }
.participant-nav { position: fixed; inset: auto 0 0; z-index: 40; display: flex; justify-content: center; padding: .4rem .6rem calc(.4rem + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: #fff; }
.participant-tab { display: flex; align-items: center; justify-content: center; min-height: 3rem; flex: 1; max-width: 12rem; color: var(--muted); font-size: .9rem; font-weight: 650; text-decoration: none; border-radius: 7px; }
.participant-tab.is-active { background: #efebfa; color: var(--coral); }
.page-rank main { padding-bottom: 7.5rem; }   /* 고정 저장 pill이 마지막 카드를 가리지 않게 */
.event-heading { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: .8rem 2rem; margin-bottom: 1.8rem; }
.event-heading h1 { font-size: clamp(1.75rem, 3vw, 2.25rem); margin: 0; }
.event-heading p { color: var(--muted); font-size: .9rem; line-height: 1.65; margin: .55rem 0 0; }
.event-heading .connection-status { margin: .5rem 0 0; flex: none; }
.connection-status { display: inline-flex; align-items: center; gap: .45rem; color: var(--muted); font-size: .8rem; }
.connection-status::before { content: ''; display: block; width: .4rem; height: .4rem; flex: none; background: currentColor; border-radius: 50%; }
.connection-status[data-state='saved'], .connection-status[data-state='connected'] { color: #26745b; }
.connection-status[data-state='failed'], .connection-status[data-state='expired'] { color: #91382f; }
/* 저장·연결 상태 pill — 어느 스크롤 위치에서도 보이도록 하단 탐색 위에 고정.
   방금 확인된 저장은 data-fresh 애니메이션으로 이전 표시와 구분한다(rank.js가 매번 재발화). */
.save-pill { position: fixed; right: .9rem; bottom: calc(4.6rem + env(safe-area-inset-bottom)); z-index: 50;
  margin: 0; padding: .55rem .95rem; background: #fff; border: 1px solid var(--line); border-radius: 999px;
  box-shadow: 0 4px 18px rgba(39, 35, 56, .16); font-weight: 650; }
.save-pill[data-state='failed'], .save-pill[data-state='offline'], .save-pill[data-state='expired'] { border-color: #e4b6b0; background: #fdf3f2; }
.save-pill[data-fresh] { animation: save-pop .5s ease; }
@keyframes save-pop {
  0% { transform: scale(.8); background: #e6f3ec; border-color: #26745b; }
  60% { transform: scale(1.06); }
  100% { transform: scale(1); }
}
.event-status { padding: clamp(1.1rem, 3vw, 1.8rem); background: #efebfa; border: 1px solid #d8d0ee;
  border-radius: 12px; box-shadow: 0 2px 6px rgba(39, 35, 56, .06); }
.status-heading { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.6rem; font-size: .85rem; }
.event-phase { font-weight: 750; color: var(--coral); }
.round-now { color: var(--muted); }
.event-status h2 { font-size: clamp(1.65rem, 3.2vw, 2.2rem); line-height: 1.35; margin: 0 0 .7rem; }
.event-status > p, .table-destination p { max-width: 37rem; font-size: .95rem; color: var(--muted); line-height: 1.7; }
.event-status > .btn-a { max-width: 24rem; margin-top: 1.5rem; display: block; }
.event-status.is-ended { background: #eaf3ee; }
/* 불참 = 아래 참석 여부 줄과 같은 톤(#fdf3ec) — 한 상태를 두 색으로 말하지 않는다. */
.event-status.is-absent { background: #fdf3ec; border-color: #f0d9c8; }
.event-status.is-absent .event-phase { color: #9a5b22; }
.event-status.is-ended .event-phase { color: #26745b; }
.text-link { display: inline-block; padding: .75rem 0; margin-top: .5rem; min-height: 44px; font-size: .9rem; font-weight: 600; }
.checkin-form { max-width: 34rem; margin-top: 1.5rem; }
.checkin-form label { color: var(--ink); font-size: .9rem; margin: 0 0 .5rem; }
.checkin-controls { display: flex; gap: .65rem; }
.checkin-controls input { min-width: 0; flex: 1 1 11rem; margin: 0; font-size: 1.2rem; text-align: center; padding: .8rem .5rem; background: #fff; border-color: #c5b9e2; }
.checkin-controls button { margin: 0; flex: 1 1 13rem; padding-inline: .7rem; font-size: .95rem; }
.table-destination { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 2.5rem; align-items: start; }
.table-destination h2 { font-size: 1.1rem; color: var(--coral); }
.table-destination .table-number { display: flex; flex-direction: column; margin: .8rem 0; }
.table-number > span { font-size: clamp(5rem, 10vw, 8rem); font-weight: 800; line-height: .95; letter-spacing: -.06em; color: var(--coral); font-variant-numeric: tabular-nums; }
.table-number small { margin-top: .8rem; font-size: .95rem; color: var(--ink); }
.table-location { min-width: 0; padding: 1.2rem; background: #fff; border-radius: 8px; container-type: inline-size; }
.table-location h3 { font-size: 1rem; margin: 0; }
.table-location .field-hint, .table-location .map-position, .table-location .map-unavailable { font-size: .85rem; }
.table-location .map-position { margin-top: 1rem; color: var(--coral-lo); font-weight: 650; }
.table-location .tmap { --tmap-w: 100cqw; --tmap-fill: #efebfa; }
.participant-ticket { margin: 1.5rem 0 0; padding: .3rem 0; border: 0; border-radius: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.participant-ticket summary { display: flex; align-items: center; gap: .8rem; padding: 1rem 0; }
.participant-ticket summary > span { margin-right: auto; font-size: .9rem; }
.participant-ticket summary strong { color: var(--ink); font-size: 1.1rem; }
.participant-ticket summary::before { order: 3; font-size: 1rem; }
.ticket-code { font-size: .8rem; color: var(--coral); padding: .25rem .4rem; background: #efebfa; border-radius: 4px; vertical-align: middle; }
.ticket-body { padding: 0 0 1rem; }
.ticket-body p { margin: .25rem 0; }
/* 행사 일시 — 홈에서 가장 자주 확인하는 사실. 보조 텍스트로 묻히지 않게 한다. */
.event-date { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .35rem 1rem; padding: 1.1rem 0; font-size: .98rem; color: var(--muted); }
.event-date strong { font-weight: 750; color: var(--ink); }
.rank-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); align-items: start; gap: 3rem; }
.rank-tabs { display: none; }
.rank-context { padding: 1rem 1.2rem; margin: 0 0 1.75rem; background: #efebfa; border-left: 3px solid var(--coral); font-size: .95rem; }
.section-heading { display: flex; gap: .6rem; align-items: center; margin: 0 0 .7rem; }
.section-heading h2 { font-size: 1.25rem; margin: 0; }
.item-count { font-size: .85rem; font-weight: 600; color: var(--coral); }
.my-ranking { position: sticky; top: 6.5rem; }
.rank-layout .field-hint { margin: 0 0 1rem; }
.rank-list, .candidate-list { list-style: none; padding: 0; margin: 0; }
/* 카드 분리 = 연보라 바탕(#f8f6fc) 위 흰 카드. 예전 테두리(--line)와 그림자가 너무
   옅어 카드가 배경에 잠겼다 — 테두리를 한 단계 진하게, 그림자를 실제로 보이게 한다.
   패딩·간격은 한 화면에 더 많은 사람이 들어오도록 줄였다(2026-09-13). */
.rank-card { display: grid; grid-template-columns: 1.7rem minmax(0, 1fr); align-items: start; gap: .25rem .6rem;
  padding: .7rem .85rem; margin-bottom: .55rem; background: #fff; border: 1px solid #c2b7da;
  border-radius: 10px; box-shadow: 0 3px 8px rgba(39, 35, 56, .09); }
.rank-card.has-handle { grid-template-columns: auto 1.7rem minmax(0, 1fr); }
.rank-card.is-dragging { border-color: var(--coral); box-shadow: 0 10px 26px rgba(39, 35, 56, .2); }
.drag-handle { width: 44px; min-height: 44px; margin: -.35rem 0 0 -.45rem; padding: 0; background: transparent;
  color: #b3abc4; font-size: 1.15rem; line-height: 1; cursor: grab; touch-action: none; border-radius: 8px; }
.drag-handle:not(:disabled):hover { background: #f3f1f7; color: var(--coral); }
.drag-handle:disabled { color: #d9d4e4; cursor: default; background: transparent; }
.is-dragging .drag-handle { cursor: grabbing; }
.rank-num { font-size: 1.15rem; font-weight: 750; color: var(--coral); font-variant-numeric: tabular-nums; line-height: 1.5; }
/* 이름은 한 줄을 다 쓰고, 또래·교회·라운드는 다음 한 줄에 나란히 흐른다 — 예전엔
   각자 줄을 차지해 카드가 불필요하게 길었다. 메모는 다시 제 줄. */
.rank-name, .candidate-person { display: flex; flex-wrap: wrap; align-items: baseline;
  min-width: 0; gap: .1rem .45rem; }
.rank-name > .person-name, .candidate-person > .person-name,
.rank-name > .memo-preview, .candidate-person > .memo-preview { flex: 0 0 100%; min-width: 0; }
.rank-name > .met-rounds::before, .candidate-person > .met-rounds::before {
  content: "·"; margin-right: .45rem; color: var(--muted); }
/* 후보 카드는 [사람 정보][찜 버튼] 한 줄. basis 를 0 으로 못박는 것이 핵심이다 —
   flex 줄바꿈은 축소 '전' 의 가상 크기로 판정하므로, basis:auto 면 사람 블록이
   max-content(320px) 를 주장해 버튼이 다음 줄로 밀려난다(실측). */
.candidate-card > .candidate-person { flex: 1 1 0; min-width: 0; }
.person-name { color: var(--ink); font-size: 1.03rem; font-weight: 700; line-height: 1.5; }
.person-name small { font-size: .8rem; font-weight: 650; color: var(--coral); margin-left: .35rem; white-space: nowrap; }
.person-meta, .met-rounds { color: var(--muted); font-size: .8rem; line-height: 1.5; }
.met-rounds { color: var(--coral-lo); }
.rank-controls { grid-column: -2 / -1; display: flex; align-items: center; gap: .3rem; margin-top: .25rem; }
.rank-controls button { width: auto; min-width: 44px; min-height: 44px; margin: 0; padding: .4rem .65rem; background: #f3f1f7; color: var(--ink); font-size: 1.1rem; border-radius: 6px; }
.rank-controls .rank-remove { margin-left: auto; color: var(--muted); background: transparent; font-size: .85rem; }
.rank-controls button:disabled, .candidate-pick:disabled { opacity: 1; color: #898394; background: #f3f1f7; cursor: not-allowed; }
.rank-controls button:not(:disabled):hover { background: #e6def6; }
.rank-empty-state { padding: 1.5rem; background: #f7f5fb; border-radius: 8px; }
.rank-empty-state strong { font-size: 1rem; }
.rank-empty-state p { font-size: .85rem; color: var(--muted); margin-top: .6rem; }
.consent-section { border-top: 1px solid var(--line); margin-top: 1rem; padding-top: 1.5rem; }
.consent-section h3 { font-size: 1rem; }
.reveal-consent { cursor: pointer; line-height: 1.65; min-height: 44px; }
.reveal-consent input { margin-top: .15rem; }
.rank-candidates { min-width: 0; padding-left: 2rem; border-left: 1px solid var(--line); }
.candidate-search { font-size: .85rem; margin: 1.25rem 0 1.5rem; color: var(--ink); }
.candidate-search input { min-height: 3rem; font-size: .95rem; background: #fff; border-radius: 7px; }
.candidate-group { margin-top: 1.6rem; }
/* 라운드 묶음이 늘어도 스크롤 중 어느 묶음인지 놓치지 않게 제목을 붙여 둔다. */
.candidate-group h3 { display: flex; gap: .5rem; align-items: center; font-size: .95rem; margin: 0;
  position: sticky; top: 0; z-index: 2; background: #fff; padding: .45rem 0; }
.rank-badge { align-self: flex-start; font-size: .72rem; font-weight: 700; color: var(--coral);
  background: #efebfa; border-radius: 5px; padding: .15rem .4rem; }
.candidate-card { display: flex; align-items: center; gap: .6rem; justify-content: space-between;
  padding: .7rem .85rem; margin-bottom: .55rem; background: #fff; border: 1px solid #c2b7da;
  border-radius: 10px; box-shadow: 0 3px 8px rgba(39, 35, 56, .09); }
.candidate-pick { width: auto; min-width: 5rem; min-height: 44px; flex: none; margin: 0; padding: .65rem .75rem; font-size: .85rem; border: 1.5px solid transparent; border-radius: 7px; background: #efebfa; color: var(--coral); }
.candidate-pick:hover { background: #e3daf5; }
/* 해제(제거)는 저강조 테두리형 — 채움 보라(주행동)가 제거 버튼에 가면 오터치로 순위에서 빠진다 */
.candidate-pick.is-selected { background: #fff; border-color: var(--coral); color: var(--coral); }
.candidate-pick.is-selected:hover { background: #f6f2fd; }
.candidate-empty { color: var(--muted); font-size: .85rem; line-height: 1.7; padding: 1rem 0; }
.checkin-gate { padding: 1.5rem; background: #f7f5fb; border-radius: 8px; }
.checkin-gate h3 { font-size: 1.1rem; }
.checkin-gate p { color: var(--muted); font-size: .9rem; line-height: 1.7; }
.checkin-gate .btn-a { font-size: .9rem; }
.question-workspace { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: 3rem; }
.question-feature { position: sticky; top: 6rem; }
.question-feature .q-card { margin: 0; text-align: left; padding: 2rem; background: #efebfa; border: 0; border-radius: 10px; box-shadow: none; }
.question-feature .q-card p { font-size: clamp(1.35rem, 2.5vw, 1.7rem); line-height: 1.6; }
.question-list .q-all { margin: 0 0 1rem; font-size: 1rem; }
.question-list details { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; margin: 0; padding: .3rem 0; }
.question-list summary { color: var(--ink); font-size: .93rem; line-height: 1.5; min-height: 44px; }
/* 폼·읽기 블록도 셸 폭을 그대로 쓴다 — 페이지별 별도 상한(과거 46rem)은 두지 않는다.
   신청→도움말→내 행사를 오갈 때 본문 좌우 끝이 달라 보이던 원인이었다(2026-09-12 통일). */
.form-alert--ok { background: #e6f3ec; border-color: #bfe0d0; color: #26745b; }
.rating-field { border: 0; padding: 0; margin: 0 0 1.4rem; }
.rating-field legend { font-size: .9rem; font-weight: 650; margin-bottom: .6rem; }
.rating-options { display: flex; flex-wrap: wrap; gap: .45rem; }
.rating-option { position: relative; display: inline-flex; align-items: center; justify-content: center;
  min-width: 44px; min-height: 44px; padding: 0 .7rem; border: 1px solid var(--line); border-radius: 9px;
  font-weight: 650; cursor: pointer; }
.rating-option input { position: absolute; opacity: 0; }
.rating-option:has(input:checked) { background: #efebfa; border-color: var(--coral); color: var(--coral); }
.rating-option:has(input:focus-visible) { outline: 2px solid var(--coral); outline-offset: 2px; }
.feedback-body { font-size: .9rem; font-weight: 650; }
.feedback-body textarea { margin-top: .5rem; font-weight: 400; }
/* 개인 메모 — 본인 화면 전용 */
.memo-preview { margin: .25rem 0 0; padding: .3rem .5rem; background: #f4f1fa; border-left: 3px solid #c9bfe6;
  border-radius: 0 5px 5px 0; color: var(--ink); font-size: .8rem; line-height: 1.5;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.memo-box { margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; grid-column: 1 / -1; flex: 1 1 100%; }
.candidate-card { flex-wrap: wrap; }
.memo-box summary { font-size: .8rem; font-weight: 600; color: var(--coral); padding: .5rem 0; min-height: 44px; display: flex; align-items: center; }
/* 1rem(=17px): 16px 미만이면 iOS 가 포커스 때 확대하고 되돌리지 않는다. 메모는 행사
   중에 폰으로 쓰는 입력칸이라 확대 상태로 갇히면 내내 불편하다. */
.memo-box textarea { min-height: 4.2rem; font-size: 1rem; }
.memo-actions { display: flex; gap: .5rem; margin-top: .5rem; }
.memo-actions button { width: auto; margin: 0; min-height: 44px; padding: .5rem .9rem; font-size: .85rem; border-radius: 7px; }
.memo-actions [data-memo-delete] { background: transparent; color: var(--muted); }
.memo-actions [data-memo-delete]:not(:disabled):hover { color: #91382f; background: #fdf3f2; }
.memo-hint { font-size: .74rem; color: var(--muted); margin: .35rem 0 0; }
.profile-summary { padding: 1.25rem 0; margin: 1.5rem 0; border-block: 1px solid var(--line); }
.profile-summary p { color: var(--muted); font-size: .95rem; }
.profile-summary strong { display: block; font-size: 1.2rem; margin-top: .4rem; }
@media (min-width: 900px) {
  .candidate-scroll { max-height: calc(100dvh - 22rem); min-height: 18rem; overflow-y: auto; padding-right: .75rem; scrollbar-gutter: stable; }
  /* 넓어진 화면은 후보를 여러 열로 — 꽉 채우면서 스캔 거리도 준다 */
  .candidate-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(19rem, 1fr)); gap: .7rem; }
  .candidate-card { margin-bottom: 0; }
}
@media (max-width: 760px) {
  .is-participant main { padding-top: 1.5rem; }
  .event-heading { margin-bottom: 1.3rem; gap: .3rem; }
  .event-heading .connection-status { margin-top: .45rem; }
  .table-destination, .question-workspace { grid-template-columns: minmax(0, 1fr); gap: 1.8rem; }
  .table-destination { gap: 1.5rem; }
  .table-number > span { font-size: 5.5rem; }
  .table-location { padding: 1rem; }
  /* 모바일 = 순위·후보 두 패널을 가로 페이저로. 탭 클릭·스와이프 모두 같은 스크롤이다. */
  .rank-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: .45rem; margin: 0 0 1.1rem; }
  .rank-tab { margin: 0; width: auto; min-height: 2.9rem; padding: .5rem .6rem; font-size: .92rem; font-weight: 650;
    background: #f3f1f7; color: var(--muted); border-radius: 9px; }
  .rank-tab .item-count { color: inherit; opacity: .75; }
  .rank-tab.is-active { background: #efebfa; color: var(--coral); }
  .rank-layout { display: flex; align-items: flex-start; gap: 1.2rem; overflow-x: auto; overflow-y: hidden;
    scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
  .rank-layout::-webkit-scrollbar { display: none; }
  .rank-layout > section { flex: 0 0 100%; min-width: 0; scroll-snap-align: start; scroll-snap-stop: always; }
  .rank-candidates { padding-left: 0; border-left: 0; }
  /* 탭이 패널 이름을 이미 말한다 — 바로 아래 같은 제목을 또 그리지 않는다(SR에는 남긴다). */
  .rank-layout .section-heading { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .my-ranking, .question-feature { position: static; }
  .rank-card { grid-template-columns: 1.5rem minmax(0, 1fr); }
  .question-feature .q-card { padding: 1.5rem; }
}
@media (max-width: 380px) {
  .checkin-controls { flex-direction: column; }
  .checkin-controls input, .checkin-controls button { flex-basis: auto; }
  .event-status { padding: 1.1rem; }
  .status-heading { gap: .4rem; margin-bottom: 1.2rem; }
  .header-nav { gap: .6rem; }
  .candidate-card { gap: .5rem; }
  .candidate-pick { min-width: 4.3rem; padding-inline: .5rem; }
}

/* 참석 여부(RSVP) — 참가증 위 상시 한 줄. 불참이면 눈에 띄게. */
.rsvp-line { display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  margin-top: 1.4rem; padding: .8rem 1rem; background: #f7f5fb; border-radius: 10px; }
.rsvp-state { font-size: .95rem; font-weight: 650; color: var(--ink); }
.rsvp-line.is-absent { background: #fdf3ec; border: 1px solid #f0d9c8; flex-wrap: wrap; }
.rsvp-line.is-absent .rsvp-state { color: #9a5b22; flex: 1 1 15rem; }
.rsvp-line.is-absent .rsvp-toggle { margin-left: auto; }
.rsvp-toggle { width: auto; flex: none; white-space: nowrap; margin: 0; min-height: 44px;
  padding: .5rem .9rem; font-size: .88rem;
  background: #fff; color: var(--coral); border: 1px solid var(--line); border-radius: 8px; }
.rsvp-toggle:hover { border-color: var(--coral); background: #f6f2fd; }
