/* The help site's one stylesheet: system fonts, nothing fetched, laid out for a phone first. */

:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --text: #1b1d21;
  --muted: #5a606b;
  --line: #d8dbe0;
  --card: #f4f6f8;
  --accent: #0b5cad;
  --accent-text: #ffffff;
  --note-bg: #fff4d6;
  --note-line: #b98900;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111418;
    --text: #e7e9ec;
    --muted: #a3a9b3;
    --line: #333a43;
    --card: #1a1f26;
    --accent: #7cb4ff;
    --accent-text: #0d1117;
    --note-bg: #362b0c;
    --note-line: #d9b451;
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  overflow-wrap: break-word;
}

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

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

.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: 16px; top: 8px; background: var(--bg); padding: 8px 12px; z-index: 1; }

.preview-banner {
  margin: 0;
  padding: 10px 16px;
  background: var(--note-bg);
  border-bottom: 2px solid var(--note-line);
  font-weight: 600;
  text-align: center;
}

.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding-top: 12px; padding-bottom: 12px; }
.brand { font-weight: 700; color: var(--text); text-decoration: none; }
.site-header nav { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.site-header nav a[aria-current] { font-weight: 700; text-decoration: none; }

main.wrap { padding-top: 8px; padding-bottom: 40px; }

h1 { font-size: 1.75rem; line-height: 1.25; margin: 24px 0 12px; }
h2 { font-size: 1.3rem; line-height: 1.3; margin: 28px 0 8px; }
h3 { font-size: 1.1rem; margin: 22px 0 6px; }
h4, h5, h6 { font-size: 1rem; margin: 18px 0 6px; }

.lead { font-size: 1.1rem; color: var(--muted); }
.meta, .doc-meta { color: var(--muted); }

.not-published {
  display: inline-block;
  padding: 2px 8px;
  background: var(--note-bg);
  border-left: 4px solid var(--note-line);
  font-weight: 600;
}

.cards, .doc-list { list-style: none; padding: 0; }
.cards li, .doc-list li { margin: 0 0 12px; }
.cards a { display: block; padding: 14px 16px; background: var(--card); border: 1px solid var(--line); border-radius: 8px; text-decoration: none; color: var(--text); }
.cards a:hover strong { text-decoration: underline; }
.cards strong { display: block; color: var(--accent); font-size: 1.1rem; }
.cards span { color: var(--muted); }

.plans { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .plans { grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); } }
.plan { padding: 16px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); display: flex; flex-direction: column; }
.plan h2 { margin-top: 0; }
.plan ul { padding-left: 20px; flex: 1; }
.price { margin: 0 0 8px; }
.amount { font-size: 1.6rem; font-weight: 700; }
.button {
  display: inline-block;
  text-align: center;
  padding: 10px 16px;
  border-radius: 6px;
  background: var(--accent);
  color: var(--accent-text);
  font-weight: 600;
  text-decoration: none;
}

.table-wrap { overflow-x: auto; margin: 16px 0; -webkit-overflow-scrolling: touch; }
table { border-collapse: collapse; width: 100%; }
th, td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
th { background: var(--card); }

blockquote { margin: 16px 0; padding: 4px 16px; border-left: 4px solid var(--line); color: var(--muted); }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.92em; overflow-wrap: anywhere; }
pre { overflow-x: auto; padding: 12px; background: var(--card); border-radius: 6px; }
hr { border: 0; border-top: 1px solid var(--line); margin: 28px 0; }

.versions { margin-top: 32px; padding-top: 8px; border-top: 1px solid var(--line); }

.site-footer { border-top: 1px solid var(--line); color: var(--muted); font-size: 0.9rem; }
.site-footer .wrap { padding-top: 16px; padding-bottom: 24px; }
