/* Colors are tokens; dark mode follows the reader's system setting. No web fonts are loaded on purpose:
   these are privacy pages, so they make no requests to third parties. */
:root {
  --bg: #fafaf9;
  --surface: #ffffff;
  --text: #1c1c1e;
  --muted: #64646b;
  --border: #e4e4e7;
  --accent: #3451d1;
  --accent-soft: #eef1fd;
  --code-bg: #f1f1f3;
  --shadow: 0 1px 2px rgb(0 0 0 / 0.04), 0 4px 16px rgb(0 0 0 / 0.04);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #111113;
    --surface: #18181b;
    --text: #ececef;
    --muted: #a1a1aa;
    --border: #2b2b30;
    --accent: #93a5ff;
    --accent-soft: #1b2034;
    --code-bg: #232328;
    --shadow: none;
  }
}

:root[data-theme="dark"] {
  --bg: #111113;
  --surface: #18181b;
  --text: #ececef;
  --muted: #a1a1aa;
  --border: #2b2b30;
  --accent: #93a5ff;
  --accent-soft: #1b2034;
  --code-bg: #232328;
  --shadow: none;
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial,
    sans-serif;
  font-feature-settings: "kern", "liga";
  -webkit-font-smoothing: antialiased;
}

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

@media (min-width: 640px) {
  .wrap {
    padding: 0 32px;
  }
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-thickness: 2px;
}

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

/* Header */

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

.site-header .wrap {
  padding-top: 18px;
}

.crumbs {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding-bottom: 14px;
  font-size: 15px;
}

.crumbs a {
  color: var(--muted);
  text-decoration: none;
}

.crumbs a:hover {
  color: var(--text);
}

.crumbs .sep {
  color: var(--border);
}

.crumbs .app-name {
  font-weight: 600;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 22px;
  font-size: 15px;
}

.tabs a {
  margin-bottom: -1px;
  padding: 6px 0 12px;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  text-decoration: none;
}

.tabs a:hover {
  color: var(--text);
}

.tabs a[aria-current="page"] {
  border-bottom-color: var(--accent);
  color: var(--text);
  font-weight: 600;
}

/* Content */

.content {
  flex: 1;
  padding-top: 40px;
  padding-bottom: 64px;
  overflow-wrap: break-word;
}

.content > :first-child {
  margin-top: 0;
}

h1,
h2,
h3 {
  line-height: 1.25;
  letter-spacing: -0.015em;
}

h1 {
  margin: 0 0 14px;
  font-size: 2rem;
  letter-spacing: -0.025em;
}

h2 {
  margin: 2.6em 0 0.6em;
  font-size: 1.3rem;
}

h3 {
  margin: 2em 0 0.5em;
  font-size: 1.08rem;
}

p,
ul,
ol {
  margin: 0 0 1em;
}

ul,
ol {
  padding-left: 1.35em;
}

li + li {
  margin-top: 0.35em;
}

li::marker {
  color: var(--muted);
}

/* The "Last updated" line right under the title: a paragraph that is only bold text. */
h1 + p:has(> strong:only-child) {
  margin-bottom: 2em;
  color: var(--muted);
  font-size: 15px;
}

h1 + p:has(> strong:only-child) strong {
  font-weight: 500;
}

/* The "short version" summary. */
blockquote {
  margin: 0 0 2em;
  padding: 18px 22px;
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 10px;
  background: var(--accent-soft);
}

blockquote > :last-child {
  margin-bottom: 0;
}

blockquote ul {
  padding-left: 1.2em;
}

code {
  padding: 0.12em 0.36em;
  border-radius: 5px;
  background: var(--code-bg);
  font: 0.88em/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

hr {
  margin: 2.5em 0;
  border: 0;
  border-top: 1px solid var(--border);
}

/* Tables */

table {
  width: 100%;
  margin: 0 0 1.5em;
  border: 1px solid var(--border);
  border-radius: 10px;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow);
  font-size: 15.5px;
}

th,
td {
  padding: 10px 16px;
  text-align: left;
  vertical-align: top;
}

th {
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

tr + tr td {
  border-top: 1px solid var(--border);
}

/* Home page */

.home h1 + p {
  margin-bottom: 1.6em;
  color: var(--muted);
}

.home td:first-child {
  white-space: nowrap;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 14px;
}

.site-footer .wrap {
  padding-top: 20px;
  padding-bottom: 28px;
}

@media (max-width: 480px) {
  body {
    font-size: 16px;
  }

  h1 {
    font-size: 1.65rem;
  }

  .content {
    padding-top: 28px;
  }

  th,
  td {
    padding: 9px 12px;
  }
}

@media print {
  .site-header .tabs,
  .site-footer {
    display: none;
  }

  body {
    background: #fff;
    color: #000;
    font-size: 11pt;
  }

  .site-header {
    border: 0;
  }

  table {
    box-shadow: none;
  }

  a {
    color: inherit;
  }
}
