/* PayoutMap — mobile-first, system fonts only (no third-party requests), light + dark. */
:root {
  --bg: #f8fafc; --surface: #ffffff; --text: #0f172a; --muted: #55637a; --line: #dbe3ee;
  --brand: #0f766e; --brand-ink: #ffffff; --brand-soft: #e6f4f2;
  --yes: #15803d; --yes-bg: #dcfce7; --no: #b91c1c; --no-bg: #fee2e2;
  --partner: #1d4ed8; --partner-bg: #dbeafe; --limited: #a16207; --limited-bg: #fef3c7; --check: #475569; --check-bg: #e2e8f0;
  --radius: 14px; --shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 8px 24px rgba(15, 23, 42, .06);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1220; --surface: #121c2e; --text: #e6edf7; --muted: #9fb0c8; --line: #24324a;
    --brand: #2dd4bf; --brand-ink: #042f2e; --brand-soft: #0f2f2d;
    --yes: #86efac; --yes-bg: #14532d; --no: #fca5a5; --no-bg: #5a1414;
    --partner: #93c5fd; --partner-bg: #1e3a6b; --limited: #fde68a; --limited-bg: #5c4508; --check: #cbd5e1; --check-bg: #2b3a52;
    --shadow: none;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Apple SD Gothic Neo", "Malgun Gothic", "Hiragino Sans", "Noto Sans CJK KR", "Noto Sans CJK JP", sans-serif;
  word-break: keep-all; overflow-wrap: anywhere;
}
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 6px; }
h1 { font-size: clamp(1.6rem, 5.5vw, 2.4rem); line-height: 1.2; margin: .4em 0 .5em; letter-spacing: -.01em; }
h2 { font-size: clamp(1.2rem, 4vw, 1.5rem); line-height: 1.3; margin: 2em 0 .6em; }
h3 { font-size: 1.05rem; margin: 0 0 .4em; }
small, .muted { color: var(--muted); }
.wrap { width: min(100% - 32px, 980px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--brand); color: var(--brand-ink); padding: 8px 12px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }

.site-header { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; padding-top: env(safe-area-inset-top); }
.bar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; padding: 10px 0; }
.brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--text); text-decoration: none; font-size: 1.1rem; }
.brand img { border-radius: 7px; }
.main-nav { display: flex; gap: 2px; flex: 1; overflow-x: auto; scrollbar-width: none; }
.main-nav a, .langs a { padding: 8px 10px; border-radius: 8px; text-decoration: none; color: var(--muted); white-space: nowrap; font-size: .95rem; min-height: 40px; display: inline-flex; align-items: center; }
.main-nav a[aria-current], .langs a[aria-current] { color: var(--text); background: var(--brand-soft); font-weight: 600; }
.langs { display: flex; gap: 2px; }

.hero { padding: 20px 0 4px; }
.lead { font-size: 1.08rem; color: var(--muted); max-width: 68ch; }
.search { position: relative; margin: 20px 0; max-width: 560px; }
.search label { display: block; font-weight: 600; margin-bottom: 6px; }
input, select, button { font: inherit; color: inherit; }
input[type="search"], input[type="number"], select {
  width: 100%; min-height: 52px; padding: 10px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--surface);
}
input[type="range"] { width: 100%; min-height: 44px; accent-color: var(--brand); }
.results { list-style: none; margin: 6px 0 0; padding: 0; background: var(--surface); border-radius: 12px; box-shadow: var(--shadow); overflow: hidden; }
.results:empty { display: none; }
.results li { border-top: 1px solid var(--line); }
.results li:first-child { border-top: 0; }
.results a, .results li.muted { display: block; padding: 14px; text-decoration: none; color: var(--text); }
.results a:hover { background: var(--brand-soft); }

.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 18px 0; }
.stats div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; }
.stats dt { font-size: 1.3rem; font-weight: 700; line-height: 1.2; }
.stats dd { margin: 2px 0 0; color: var(--muted); font-size: .88rem; }
@media (min-width: 720px) { .stats { grid-template-columns: repeat(4, 1fr); } }

.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { display: inline-flex; align-items: center; min-height: 40px; padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--text); text-decoration: none; font-size: .95rem; }
.pill:hover { border-color: var(--brand); }
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 720px) { .cards { grid-template-columns: repeat(5, 1fr); } }
.card { display: flex; flex-direction: column; gap: 2px; padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--text); font-size: .92rem; }
.card:hover { border-color: var(--brand); }
.steps { padding-left: 1.2em; max-width: 68ch; }
.steps li { margin: .5em 0; }

.crumbs { font-size: .9rem; color: var(--muted); padding-top: 14px; }
.crumbs a { color: var(--muted); }
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; font-size: .86rem; font-weight: 650; white-space: nowrap; }
.chip.mini { font-size: .74rem; padding: 1px 8px; }
.chip-yes { color: var(--yes); background: var(--yes-bg); }
.chip-no { color: var(--no); background: var(--no-bg); }
.chip-partner { color: var(--partner); background: var(--partner-bg); }
.chip-limited { color: var(--limited); background: var(--limited-bg); }
.chip-check { color: var(--check); background: var(--check-bg); }
.badge { display: inline-block; font-size: .72rem; padding: 1px 7px; border-radius: 6px; border: 1px solid var(--line); color: var(--muted); }
.badge.auto { border-color: var(--brand); color: var(--brand); }
.caveat { display: block; margin-top: 4px; max-width: 34ch; line-height: 1.35; }

.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-size: .93rem; }
th, td { padding: 12px 12px; text-align: left; vertical-align: top; border-top: 1px solid var(--line); }
thead th { border-top: 0; font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); white-space: nowrap; }
tbody th { font-weight: 650; }
.calc-table td, .calc-table thead th:not(:first-child) { text-align: right; font-variant-numeric: tabular-nums; }
.calc-table tr.best th, .calc-table tr.best td { background: var(--brand-soft); }
.calc-table tr.unavailable { opacity: .5; }
.calc-table tr.unverified th small { color: var(--limited); }

.routes { display: grid; gap: 12px; }
@media (min-width: 720px) { .routes { grid-template-columns: repeat(2, 1fr); } }
.route { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.route p { margin: .3em 0 .8em; color: var(--muted); font-size: .95rem; }
.route-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 10px 18px; border-radius: 12px; border: 1.5px solid var(--brand); background: var(--brand); color: var(--brand-ink); font-weight: 650; text-decoration: none; cursor: pointer; }
.btn.ghost { background: transparent; color: var(--brand); min-height: 44px; padding: 8px 14px; font-size: .93rem; }
.btn:hover { filter: brightness(1.06); }

.calc { display: grid; gap: 12px; margin: 12px 0 16px; }
@media (min-width: 720px) { .calc { grid-template-columns: repeat(2, 1fr); align-items: end; } }
.calc label { display: grid; gap: 6px; font-weight: 600; font-size: .93rem; }
.calc output { font-weight: 700; color: var(--brand); }

details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 4px 14px; margin: 8px 0; }
summary { cursor: pointer; font-weight: 650; padding: 10px 0; min-height: 44px; }
details p { margin: 0 0 12px; color: var(--muted); }
.answer { font-size: 1.15rem; padding: 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.alts { padding-left: 1.1em; }
.alts li { margin: .5em 0; }
.facts { display: grid; gap: 10px; margin: 16px 0; }
.facts div { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.facts dt { font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.facts dd { margin: 4px 0 0; }
.note, .disclosure { background: var(--limited-bg); color: var(--text); border-radius: 12px; padding: 12px 14px; font-size: .92rem; }
.disclosure { margin-top: 14px; }
.country-list { list-style: none; padding: 0; display: grid; grid-template-columns: 1fr; gap: 2px 20px; }
@media (min-width: 560px) { .country-list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 860px) { .country-list { grid-template-columns: repeat(3, 1fr); } }
.country-list li { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.prose { max-width: 72ch; }
.prose h2 { font-size: 1.15rem; }

.site-footer { margin-top: 48px; border-top: 1px solid var(--line); padding: 20px 0 calc(24px + env(safe-area-inset-bottom)); color: var(--muted); font-size: .88rem; }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 16px; }
[hidden] { display: none !important; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
