/* flyance.app 정적 사이트. 앱 디자인 체계(ios/TravelBuddy/Design, FlyanceTheme 아침 바다)를 웹으로 옮겼습니다.
   바탕 #F2F2F7 / #000, 카드 #FFF / #1C1C1E(모서리 20, 안쪽 여백 20), 큰 색 카드 모서리 24, 화면 좌우 20,
   섹션 제목은 카드 글자선에 맞춘 15px 굵게, 강조 글자색은 바탕 대비 4.5:1(#116AD8 / #8CC4FF). 그림자와 테두리 없이 바탕색 차이로 구분합니다. */

@font-face { font-family: "Pretendard"; font-weight: 400; font-display: swap; src: url("/fonts/Pretendard-Regular.subset.woff2") format("woff2"); }
@font-face { font-family: "Pretendard"; font-weight: 600; font-display: swap; src: url("/fonts/Pretendard-SemiBold.subset.woff2") format("woff2"); }
@font-face { font-family: "Pretendard"; font-weight: 700; font-display: swap; src: url("/fonts/Pretendard-Bold.subset.woff2") format("woff2"); }

:root {
  color-scheme: light dark;
  --bg: #F2F2F7;
  --card: #FFFFFF;
  --ink: #000000;
  --secondary: #5B616B;
  --tertiary: #86868B;
  --divider: rgba(60, 60, 67, 0.18);
  --accent-text: #116AD8;
  --accent-soft: #E2F0FF;
  --hero-ink: #0E2A4D;
  --hero: linear-gradient(135deg, #BFE0FF 0%, #C9ECF7 50%, #D2F5E9 100%);
  --fill: rgba(118, 118, 128, 0.12);
  --radius-card: 20px;
  --radius-hero: 24px;
  --radius-inset: 12px;
  --pad-card: 20px;
  --gutter: 20px;
  --gap: 12px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --card: #1C1C1E;
    --ink: #FFFFFF;
    --secondary: #98989F;
    --tertiary: #7C7C82;
    --divider: rgba(84, 84, 88, 0.6);
    --accent-text: #8CC4FF;
    --accent-soft: rgba(140, 196, 255, 0.16);
    --hero-ink: #0E2A4D;
    --fill: rgba(118, 118, 128, 0.24);
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Pretendard", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  word-break: keep-all;
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent-text); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 2px; border-radius: 4px; }

.page { max-width: 760px; margin: 0 auto; padding: 16px var(--gutter) 48px; }

/* 큰 색 카드: 앱 홈의 귀국 카드처럼 아침 바다 그라데이션 위에 진한 남색 글자 */
.hero {
  background: var(--hero);
  color: var(--hero-ink);
  border-radius: var(--radius-hero);
  padding: 24px var(--pad-card);
  display: flex;
  gap: 16px;
  align-items: center;
}
.hero img { width: 56px; height: 56px; border-radius: 13px; flex: none; }
.hero .eyebrow { font-size: 13px; font-weight: 600; opacity: 0.72; margin: 0; letter-spacing: 0; }
.hero h1 { font-size: 24px; line-height: 1.3; font-weight: 700; margin: 2px 0 0; }
.hero .meta { font-size: 14px; margin: 6px 0 0; opacity: 0.8; }
.hero-large { flex-direction: column; align-items: flex-start; padding: 28px var(--pad-card); }
.hero-large img { width: 72px; height: 72px; border-radius: 16px; }
.hero-large h1 { font-size: 28px; }
.hero-large p { margin: 4px 0 0; font-size: 16px; }

@media (prefers-color-scheme: dark) {
  .icon-light { display: none; }
}
@media not all and (prefers-color-scheme: dark) {
  .icon-dark { display: none; }
}

/* 문서 사이를 오가는 칩(앱의 ChoiceChip): 높이 36, 좌우 14 */
.chips {
  display: flex; flex-wrap: nowrap; gap: 8px; margin: 0 calc(-1 * var(--gutter)) 16px; padding: 0 var(--gutter);
  list-style: none; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.chips::-webkit-scrollbar { display: none; }
.chips li { flex: none; }
.chips a {
  white-space: nowrap; display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border-radius: 18px;
  background: var(--card); color: var(--ink); font-size: 14px; font-weight: 600; text-decoration: none;
}
.chips a[aria-current="page"] { background: var(--accent-soft); color: var(--accent-text); }

/* 섹션 제목: 카드 글자선(20)에 맞추고 위 28, 아래 8 */
.section-title {
  font-size: 15px; line-height: 1.4; font-weight: 700; margin: 28px 0 8px; padding: 0 var(--pad-card);
}

.card {
  background: var(--card);
  border-radius: var(--radius-card);
  padding: var(--pad-card);
}
.card + .card { margin-top: var(--gap); }
.card > :first-child { margin-top: 0; }
.card > :last-child { margin-bottom: 0; }
.card p { margin: 0 0 12px; }
.card h3 { font-size: 16px; line-height: 1.45; font-weight: 700; margin: 24px 0 8px; }
.card ul, .card ol { margin: 0 0 12px; padding-left: 22px; }
.card li { margin: 4px 0; }
.card li::marker { color: var(--tertiary); }
.card strong { font-weight: 700; }
.card code { font-size: 14px; background: var(--fill); padding: 1px 6px; border-radius: 6px; }
.card blockquote {
  margin: 0 0 12px; padding: 12px 16px; border-radius: var(--radius-inset);
  background: var(--fill); color: var(--secondary);
}
.card blockquote p:last-child { margin-bottom: 0; }

/* 표: 테두리 대신 줄 사이 얇은 구분선. 칸이 많은 표는 카드 안에서 옆으로 밀어 봅니다. */
.table { margin: 4px 0 16px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table:last-child { margin-bottom: 0; }
.table table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.55; }
.table.wide table { min-width: 560px; }
.table th {
  text-align: left; font-size: 13px; font-weight: 600; color: var(--secondary);
  padding: 0 12px 8px 0; border-bottom: 1px solid var(--divider); vertical-align: bottom;
}
.table td { padding: 10px 12px 10px 0; border-bottom: 1px solid var(--divider); vertical-align: top; }
.table tr:last-child td { border-bottom: 0; padding-bottom: 0; }
.table td:first-child { font-weight: 600; width: 28%; min-width: 96px; }
.table th:last-child, .table td:last-child { padding-right: 0; }

/* 휴대폰 폭: 세 칸 이상인 표는 한 줄을 묶음으로 세로로 쌓고, 칸마다 머리글 이름을 작게 붙입니다. */
@media (max-width: 640px) {
  .table.wide { overflow-x: visible; }
  .table.wide table { min-width: 0; }
  .table.wide thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .table.wide tr { display: block; padding: 12px 0; border-bottom: 1px solid var(--divider); }
  .table.wide tbody tr:first-child { padding-top: 0; }
  .table.wide tr:last-child { border-bottom: 0; padding-bottom: 0; }
  .table.wide td { display: block; width: auto; min-width: 0; padding: 0; border: 0; }
  .table.wide td + td { margin-top: 8px; }
  .table.wide td:first-child { font-size: 15px; }
  .table.wide td + td::before {
    content: attr(data-label); display: block; font-size: 12px; font-weight: 600; color: var(--secondary); margin-bottom: 2px;
  }
}

/* 목차: 앱 목록 카드처럼 줄마다 구분선 */
.card .toc, .card .rows { list-style: none; margin: 0; padding: 0; }
.card .toc li, .card .rows li { margin: 0; }
.toc li { margin: 0; border-bottom: 1px solid var(--divider); }
.toc li:last-child { border-bottom: 0; }
.toc a { display: flex; gap: 10px; padding: 11px 0; color: var(--ink); text-decoration: none; font-size: 15px; }
.toc li:first-child a { padding-top: 0; }
.toc li:last-child a { padding-bottom: 0; }
.toc .num { color: var(--tertiary); flex: none; min-width: 1.6em; font-variant-numeric: tabular-nums; }
.toc.articles .num { min-width: 3.4em; }

/* 첫 화면의 이동 줄(앱의 ListRow) */
.rows { list-style: none; margin: 0; padding: 0; }
.rows li { border-bottom: 1px solid var(--divider); }
.rows li:last-child { border-bottom: 0; }
.rows a {
  display: flex; align-items: center; justify-content: space-between; min-height: 52px;
  color: var(--ink); text-decoration: none; font-size: 16px; font-weight: 600;
}
.rows a::after { content: "›"; color: var(--tertiary); font-size: 22px; font-weight: 400; line-height: 1; }
.rows .sub { display: block; font-size: 13px; font-weight: 400; color: var(--secondary); }
.card.list { padding-top: 4px; padding-bottom: 4px; }

.footnote { font-size: 13px; color: var(--secondary); padding: 8px var(--pad-card) 0; margin: 0; }

h2[id], .section-title[id] { scroll-margin-top: 16px; }

.footer { color: var(--secondary); font-size: 13px; padding: 32px var(--pad-card) 0; line-height: 1.7; }
.footer a { color: var(--secondary); text-decoration: underline; text-underline-offset: 2px; }

@media (min-width: 768px) {
  :root { --gutter: 28px; }
  .page { padding-top: 28px; }
}
