:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --surface: #f4f6f9;
  --text: #1b1f24;
  --muted: #4a5360;
  --border: #d3d9e0;
  --link: #0b5cad;
  --accent: #0b5cad;
  --accent-text: #ffffff;
  --focus: #b45309;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #12161c;
    --surface: #1b212a;
    --text: #e6e9ee;
    --muted: #aeb7c3;
    --border: #333c48;
    --link: #8cc0f5;
    --accent: #8cc0f5;
    --accent-text: #0b1220;
    --focus: #fbbf24;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 1.0625rem/1.65 var(--font);
}

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

a { color: var(--link); text-underline-offset: 0.15em; }
a:hover { text-decoration-thickness: 2px; }

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

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  padding: 0.5rem 1rem;
  background: var(--accent);
  color: var(--accent-text);
}
.skip:focus { left: 0; z-index: 10; }

.site-header { border-bottom: 1px solid var(--border); padding: 0.75rem 0; }
.brand { font-weight: 700; text-decoration: none; color: var(--text); }

main { padding-top: 1rem; padding-bottom: 3rem; }

h1 { font-size: clamp(1.7rem, 4vw, 2.3rem); line-height: 1.2; margin: 0.5rem 0 1rem; }
h2 { font-size: 1.45rem; line-height: 1.3; margin: 2.2rem 0 0.6rem; }
h3 { font-size: 1.15rem; margin: 1.2rem 0 0.4rem; }
p, ul, ol { margin: 0 0 1rem; }

code {
  font-family: var(--mono);
  font-size: 0.92em;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.05em 0.35em;
}

.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.25rem; padding: 0; margin: 0 0 0.5rem; font-size: 0.95rem; color: var(--muted); }
.breadcrumb li + li::before { content: "/"; margin-right: 0.25rem; }

.lede { color: var(--muted); font-size: 1.15rem; }

.cta { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 1rem 1.25rem; margin: 1.25rem 0; }
.cta p { margin: 0.25rem 0; }
.price { color: var(--muted); margin-left: 0.5rem; }

.button {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-text);
  font-weight: 700;
  text-decoration: none;
  padding: 0.7rem 1.25rem;
  border-radius: 8px;
  border: 2px solid var(--accent);
}
.button:hover { filter: brightness(1.08); }
.button-secondary { background: transparent; color: var(--link); }

.steps ol { padding-left: 1.4rem; }
.steps li { margin-bottom: 1rem; }
.steps li h3 { margin-top: 0; }

.table-wrap { overflow-x: auto; margin: 1rem 0; border: 1px solid var(--border); border-radius: 8px; }
table { border-collapse: collapse; width: 100%; min-width: 30rem; }
th, td { text-align: left; vertical-align: top; padding: 0.6rem 0.8rem; border-bottom: 1px solid var(--border); }
thead th { background: var(--surface); }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }

.cols { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 40rem) { .cols { grid-template-columns: 1fr 1fr; } }
.cols > div { background: var(--surface); border-radius: 8px; padding: 0.25rem 1rem; }

details { border: 1px solid var(--border); border-radius: 8px; padding: 0.6rem 1rem; margin-bottom: 0.6rem; }
summary { cursor: pointer; font-weight: 600; }
details[open] summary { margin-bottom: 0.5rem; }
.answer p:last-child { margin-bottom: 0; }

.guide-list { list-style: none; padding: 0; }
.guide-list li { margin-bottom: 1rem; }
.guide-list a { font-weight: 600; }
.guide-list p { margin: 0.15rem 0 0; color: var(--muted); }

.related { margin-top: 2.5rem; border-top: 1px solid var(--border); }

.site-footer { border-top: 1px solid var(--border); color: var(--muted); font-size: 0.95rem; padding: 1.25rem 0 2rem; }
.site-footer p { margin: 0.25rem 0; }
