/* 規格地圖 SpecMap 共用樣式：手機版優先，無外部資源 */
:root {
  --bg: #ffffff;
  --text: #1f2328;
  --muted: #59636e;
  --line: #d8dee4;
  --accent: #0b5cad;
  --mark-bg: #fff4c2;
  --mark-text: #3d2e00;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #15181c;
    --text: #e6e8eb;
    --muted: #9aa4ae;
    --line: #2e353d;
    --accent: #6cb2ff;
    --mark-bg: #4a3d00;
    --mark-text: #fff1b8;
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "PingFang TC", "Noto Sans TC",
    "Microsoft JhengHei", sans-serif;
  font-size: 1rem;
  line-height: 1.75;
}

.wrap {
  max-width: 42rem;
  margin: 0 auto;
  padding: 0 1rem;
}

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

.site-name {
  display: inline-block;
  padding: 0.875rem 0 0.25rem;
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--text);
  text-decoration: none;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  margin: 0;
  padding: 0 0 0.75rem;
  list-style: none;
}

.site-nav li + li {
  margin-top: 0;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9375rem;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--accent);
  text-decoration: underline;
}

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

main {
  padding: 1.5rem 0 2.5rem;
}

h1 {
  font-size: 1.5rem;
  line-height: 1.4;
  margin: 0 0 1rem;
}

h2 {
  font-size: 1.125rem;
  line-height: 1.4;
  margin: 2rem 0 0.5rem;
}

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

ul {
  padding-left: 1.25rem;
}

li + li {
  margin-top: 0.375rem;
}

a {
  color: var(--accent);
  overflow-wrap: anywhere;
}

/* 尚待填寫的【　】佔位文字 */
.placeholder {
  background: var(--mark-bg);
  color: var(--mark-text);
  border-radius: 0.2em;
  padding: 0 0.15em;
}

.updated {
  color: var(--muted);
  font-size: 0.875rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.875rem;
  padding: 1rem 0 2rem;
}

@media (min-width: 40rem) {
  body {
    font-size: 1.0625rem;
  }

  h1 {
    font-size: 1.75rem;
  }
}
