/* Back to Car 停車筆記 官方網站（不使用第三方套件、不載入外部資源、沒有追蹤碼） */
:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --bg-soft: #f2f2f7;
  --text: #1c1c1e;
  --text-soft: #5b5b60;
  --accent: #0a66d9;
  --border: #d8d8de;
  --radius: 14px;
  --max: 46rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --bg-soft: #1c1c1e;
    --text: #f2f2f7;
    --text-soft: #a1a1a8;
    --accent: #5aa2ff;
    --border: #38383d;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro TC", "PingFang TC", "Noto Sans TC", "Helvetica Neue", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.7;
}

a { color: var(--accent); }

a:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1rem; }

header.site {
  border-bottom: 1px solid var(--border);
}

header.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

header.site .brand {
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}

header.site nav { display: flex; gap: 1rem; flex-wrap: wrap; }

header.site nav a { text-decoration: none; }

header.site nav a[aria-current="page"] { color: var(--text); font-weight: 600; }

main { padding: 2rem 0 3rem; }

h1 { font-size: 2rem; line-height: 1.3; margin: 0 0 0.5rem; }

h2 { font-size: 1.35rem; line-height: 1.4; margin: 2.25rem 0 0.5rem; }

h3 { font-size: 1.1rem; margin: 1.5rem 0 0.25rem; }

p, ul, ol { margin: 0.5rem 0 1rem; }

li { margin: 0.25rem 0; }

.lead { font-size: 1.2rem; color: var(--text-soft); }

.hero { padding: 1.5rem 0 0.5rem; }

.badge {
  display: inline-block;
  margin-top: 0.75rem;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: var(--bg-soft);
  color: var(--text-soft);
  font-size: 0.95rem;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 0.75rem;
  margin: 1rem 0;
}

.card {
  background: var(--bg-soft);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
}

.card h3 { margin-top: 0; }

.card p { margin-bottom: 0; color: var(--text-soft); }

.note {
  background: var(--bg-soft);
  border-radius: var(--radius);
  padding: 0.9rem 1.1rem;
  color: var(--text-soft);
}

table { width: 100%; border-collapse: collapse; margin: 0.75rem 0 1.25rem; font-size: 0.98rem; }

th, td { text-align: left; vertical-align: top; padding: 0.55rem 0.5rem; border-bottom: 1px solid var(--border); }

th { font-weight: 600; }

.table-scroll { overflow-x: auto; }

footer.site {
  border-top: 1px solid var(--border);
  color: var(--text-soft);
  font-size: 0.9rem;
}

footer.site .wrap { padding-top: 1.25rem; padding-bottom: 2rem; }

footer.site nav { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 0.5rem; }
