/* TipStub site. Plain and readable: system fonts only, text >= 16 px,
   WCAG AA contrast (>= 4.5:1) in light and dark, visible focus, no scripts.
   Brand green #15803d (the app's accent); links use a darker green for
   contrast on white (#166534, 7.1:1). Dark colors match the app's dark
   splash (#101510). */
:root {
  color-scheme: light dark;
  --text: #17201a;
  --muted: #3f4a43;
  --bg: #ffffff;
  --line: #c9d3cc;
  --soft: #eef6f0;
  --brand: #15803d;
  --link: #166534;
}
@media (prefers-color-scheme: dark) {
  :root {
    --text: #e7ede8;
    --muted: #b9c4bc;
    --bg: #101510;
    --line: #34423a;
    --soft: #18221b;
    --brand: #4ade80;
    --link: #86efac;
  }
}
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font: 18px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  overflow-wrap: break-word;
}
.wrap { max-width: 44rem; margin: 0 auto; padding-left: 1.25rem; padding-right: 1.25rem; }
.top { border-top: 6px solid #15803d; border-bottom: 1px solid var(--line); }
.top .wrap {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 0.5rem 1rem; padding-top: 0.75rem; padding-bottom: 0.75rem;
}
.top a { display: inline-block; padding: 0.25rem 0; font-size: 16px; }
.top .brand { color: var(--brand); font-size: 20px; font-weight: 700; text-decoration: none; }
main { padding-top: 1.5rem; padding-bottom: 3rem; }
h1 { font-size: 2rem; line-height: 1.2; margin: 0.5rem 0 1rem; }
h2 { font-size: 1.35rem; line-height: 1.3; margin-top: 2.25rem; }
h3 { font-size: 1.1rem; line-height: 1.35; margin-top: 1.75rem; }
p, li { max-width: 40rem; }
li { margin: 0.35rem 0; }
a { color: var(--link); text-underline-offset: 0.15em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 2px; }
strong { font-weight: 700; }
code { font: 0.95em ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: var(--soft); padding: 0.05em 0.3em; border-radius: 4px; }
table { border-collapse: collapse; width: 100%; font-size: 16px; margin: 1rem 0; }
th, td { border: 1px solid var(--line); padding: 0.5rem; text-align: left; vertical-align: top; overflow-wrap: anywhere; hyphens: auto; }
th { background: var(--soft); }
blockquote { margin: 1rem 0; padding: 0.75rem 1rem; background: var(--soft); border-left: 4px solid var(--brand); }
blockquote p { margin: 0.25rem 0; }
footer { border-top: 1px solid var(--line); padding-top: 1rem; padding-bottom: 2.5rem; font-size: 16px; }
footer ul { list-style: none; margin: 0 0 1rem; padding: 0; display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; }
footer li { margin: 0; }
footer a { display: inline-block; padding: 0.35rem 0; }
footer a[aria-current="page"] { font-weight: 700; }
.note { color: var(--muted); font-size: 16px; }
.links { padding-left: 1.25rem; }
@media print {
  .top, footer nav { display: none; }
  body { font-size: 12pt; }
  a { color: inherit; }
}
