/* CryptoFlowLabs answers: one small stylesheet, no scripts, light and dark. */
:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --fg: #1c2128;
  --muted: #59636e;
  --line: #d5dbe1;
  --accent: #0a58a8;
  --panel: #f3f6f9;
  --panel-line: #c8d4e0;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1317;
    --fg: #e4e8ed;
    --muted: #a2acb8;
    --line: #2d343d;
    --accent: #85bbff;
    --panel: #171d24;
    --panel-line: #303c4a;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  overflow-wrap: break-word;
}

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

.skip { position: absolute; left: -999px; top: 0; }
.skip:focus { left: 16px; top: 8px; background: var(--bg); padding: 4px 8px; }

header.site { border-bottom: 1px solid var(--line); }
header.site .wrap { padding-top: 12px; padding-bottom: 12px; }
.brand { font-weight: 650; color: var(--fg); text-decoration: none; margin-right: 12px; }
.tagline { color: var(--muted); font-size: 0.9rem; }

main { padding-top: 20px; padding-bottom: 32px; }

.crumbs { font-size: 0.9rem; color: var(--muted); margin: 0 0 8px; }

h1 { font-size: 1.8rem; line-height: 1.25; margin: 4px 0 8px; }
h2 { font-size: 1.3rem; line-height: 1.3; margin: 32px 0 8px; }
h3 { font-size: 1.08rem; line-height: 1.35; margin: 24px 0 6px; }

p, ul, ol, dl { margin: 0 0 16px; }
li { margin-bottom: 6px; }
dt { font-weight: 650; margin-top: 12px; }
dd { margin: 2px 0 0; }

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

.meta { color: var(--muted); font-size: 0.92rem; }

.notice {
  background: var(--panel);
  border: 1px solid var(--panel-line);
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 0.93rem;
}

.answer { font-size: 1.08rem; }

.cards { list-style: none; padding: 0; }
.cards li { border: 1px solid var(--line); border-radius: 6px; padding: 12px 14px; margin-bottom: 12px; }
.cards a { font-weight: 650; }

.table-wrap { overflow-x: auto; margin: 0 0 16px; }
.table-wrap:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
table { border-collapse: collapse; width: 100%; font-size: 0.95rem; }
caption { text-align: left; font-weight: 650; padding-bottom: 6px; }
th, td { border: 1px solid var(--line); padding: 7px 9px; text-align: left; vertical-align: top; hyphens: auto; }
thead th { background: var(--panel); }
tbody th { font-weight: normal; }

code { font-size: 0.92em; background: var(--panel); border-radius: 4px; padding: 0 4px; }

.sources li { overflow-wrap: anywhere; }
.sources .when { color: var(--muted); }

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

@media (max-width: 480px) {
  body { font-size: 16px; }
  h1 { font-size: 1.5rem; }
  th, td { padding: 6px 7px; }
}
