/* btctx.net: the one stylesheet. Dark, system fonts, readable at 360 px. */
:root {
  color-scheme: dark;
  --bg: #0e1116;
  --panel: #161b22;
  --line: #2a313c;
  --text: #e6e9ee;
  --dim: #9aa4b2;
  --link: #f7931a;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0 auto;
  max-width: 62rem;
  padding: 0 1rem 2rem;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
a { color: var(--link); text-decoration: none; }
a:hover, a:focus { text-decoration: underline; }
a:focus-visible, input:focus-visible, button:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }
h1 { font-size: 1.5rem; margin: 1.5rem 0 1rem; }
h2 { font-size: 1.15rem; margin: 2rem 0 0.75rem; }
h3 { font-size: 1rem; margin: 1.5rem 0 0.5rem; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace; font-size: 0.9em; overflow-wrap: anywhere; }

header { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.brand { font-weight: 700; font-size: 1.2rem; }
header form { display: flex; flex: 1 1 16rem; gap: 0.5rem; min-width: 0; }
header input { flex: 1 1 auto; min-width: 0; padding: 0.5rem 0.75rem; background: var(--panel); color: var(--text); border: 1px solid var(--line); border-radius: 6px; font: inherit; }
header button { padding: 0.5rem 0.9rem; background: var(--link); color: #111; border: 0; border-radius: 6px; font: inherit; font-weight: 600; cursor: pointer; }
nav { display: flex; gap: 1rem; }

footer { margin-top: 3rem; padding-top: 1rem; border-top: 1px solid var(--line); color: var(--dim); font-size: 0.85rem; }

dl { margin: 0; }
dt { color: var(--dim); font-size: 0.85rem; }
dd { margin: 0; overflow-wrap: anywhere; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(7.5rem, 1fr)); gap: 0.5rem; }
.stats div { background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 0.4rem 0.65rem; }
.stats dt { font-size: 0.75rem; white-space: nowrap; }
.stats dd { font-size: 1rem; font-weight: 600; white-space: nowrap; }
.unit { color: var(--dim); font-size: 0.7rem; font-weight: 400; }
.facts div { display: grid; grid-template-columns: 10rem 1fr; gap: 0.25rem 1rem; padding: 0.5rem 0; border-bottom: 1px solid var(--line); }

table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 0.5rem 0.75rem 0.5rem 0; border-bottom: 1px solid var(--line); vertical-align: top; overflow-wrap: anywhere; }
th { color: var(--dim); font-size: 0.85rem; font-weight: 600; }
.num { text-align: right; padding-left: 0.75rem; padding-right: 0; }
td.num { white-space: nowrap; }
.target { white-space: nowrap; overflow-wrap: normal; }

ul { list-style: none; margin: 0; padding: 0; }
.sides li, .news li { padding: 0.5rem 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.sides li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.25rem 1rem; }
.amount { white-space: nowrap; }
.meta { display: block; color: var(--dim); font-size: 0.85rem; }
.pager { display: flex; gap: 1.5rem; }
.message { margin: 3rem 0; font-size: 1.15rem; }

@media (max-width: 600px) {
  .facts div { grid-template-columns: 1fr; }
  th, td { padding-right: 0.5rem; font-size: 0.9rem; }
  .num { padding-left: 0.5rem; }
  td.fee { white-space: normal; overflow-wrap: normal; }
}
