/* 공통 스타일 — 모바일 우선, 다크모드 대응, 외부 자산 미사용 */

:root {
  --bg: #f6f2ec;
  --surface: #ffffff;
  --text: #2c2a28;
  --muted: #7a736b;
  --line: #e7dfd4;
  --accent: #b08d5b;
  --shadow: 0 10px 30px rgba(60, 50, 40, 0.10);
  --radius: 18px;

  --google: #1a73e8;
  --apple: #111214;
  --outlook: #0f6cbd;
  --naver: #03c75a;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #17151300;
    --bg: #171513;
    --surface: #211e1b;
    --text: #efe9e1;
    --muted: #a89f93;
    --line: #332e29;
    --accent: #d4b483;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    --apple: #e9e6e2;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo",
    "Malgun Gothic", "Noto Sans KR", "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.page {
  max-width: 480px;
  margin: 0 auto;
  padding: 32px 20px 56px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* 카드 */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px 24px;
  text-align: center;
}

.eyebrow {
  margin: 0 0 10px;
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}

.title {
  margin: 0 0 20px;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.event-meta {
  margin: 0;
  display: grid;
  gap: 14px;
  text-align: left;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}

.event-meta > div {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 12px;
  align-items: start;
}

.event-meta dt {
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.event-meta dd {
  margin: 0;
  font-size: 15px;
  font-weight: 500;
}

.event-meta [data-event="location"] { white-space: pre-line; }

/* 섹션 */
.section-title {
  margin: 4px 0 14px;
  font-size: 16px;
  font-weight: 700;
  text-align: center;
}

/* 캘린더 버튼 */
.btn-list {
  display: grid;
  gap: 12px;
}

.cal-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 54px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  color: var(--text);
  font-size: 16px;
  font-weight: 600;
  font-family: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.06s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.cal-btn:hover { box-shadow: var(--shadow); }
.cal-btn:active { transform: scale(0.985); }
.cal-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.cal-icon {
  flex: 0 0 auto;
  display: inline-flex;
  width: 26px;
  height: 26px;
  border-radius: 7px;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.cal-icon svg { width: 16px; height: 16px; }

.cal-google  .cal-icon { background: var(--google); }
.cal-apple   .cal-icon { background: var(--apple); color: var(--surface); }
.cal-outlook .cal-icon { background: var(--outlook); }
.cal-naver   .cal-icon { background: var(--naver); }

.cal-sub {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
}

/* 네이버 안내 */
.naver-help {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  padding: 4px 16px;
  font-size: 14px;
}

.naver-help summary {
  cursor: pointer;
  padding: 10px 0;
  font-weight: 600;
  color: var(--muted);
  list-style: none;
}

.naver-help summary::-webkit-details-marker { display: none; }
.naver-help summary::before { content: "ⓘ "; color: var(--naver); }
.naver-help[open] summary { color: var(--text); }

.naver-help ol {
  margin: 0 0 12px;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.7;
}

.naver-help code {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 1px 5px;
  font-size: 13px;
}

/* 식순(placeholder) */
.order-section { text-align: center; }
.placeholder-note { color: var(--muted); margin: 0 0 18px; }

.order-list {
  margin: 0 auto;
  max-width: 300px;
  text-align: left;
  padding-left: 22px;
  display: grid;
  gap: 8px;
}
.order-list.muted { color: var(--muted); }

/* 인앱 브라우저 안내 배너 */
.inapp-notice {
  background: #fff7e6;
  border: 1px solid #f0d9a8;
  color: #5a4a2a;
  border-radius: 14px;
  padding: 16px 18px;
  font-size: 14px;
  line-height: 1.6;
  text-align: center;
}

.inapp-notice p { margin: 0 0 8px; }
.inapp-title { font-weight: 700; font-size: 15px; }

.inapp-btn {
  display: inline-block;
  margin: 4px 0 8px;
  min-height: 44px;
  padding: 10px 20px;
  border: none;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
}

.inapp-btn:active { transform: scale(0.98); }
.inapp-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.inapp-hint { color: #8a7a55; font-size: 12.5px; margin-bottom: 0 !important; }

@media (prefers-color-scheme: dark) {
  .inapp-notice { background: #2a2419; border-color: #4a3d24; color: #e6d6b0; }
  .inapp-hint { color: #b9a878; }
}

/* 페이지 이동 링크 */
.page-nav {
  text-align: center;
  padding-top: 8px;
}

.page-nav a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
}

.page-nav a:hover { text-decoration: underline; }
