/* Matches the real Scrypt Wallet app's design tokens (src/index.css,
   tailwind.config.js): SF Pro Display, blue accent, neutral surfaces. This
   is the shared shell for every acquisition page — header, hero, buttons,
   cards, form controls — so a visitor never sees the page style change
   between a plain article and one carrying the wallet-preview widget. */
:root {
  font-family: "SF Pro Display", -apple-system, "Segoe UI", Roboto, sans-serif;
  color: #0f172a;
  background: #f8fafc;
  line-height: 1.65;
  --bg: #f8fafc;
  --surface: #ffffff;
  --border: #e2e8f0;
  --text: #0f172a;
  --text-secondary: #475569;
  --text-tertiary: #64748b;
  --accent: #3b82f6;
  --accent-600: #2563eb;
  --accent-50: #eff6ff;
}
@media (prefers-color-scheme: dark) {
  :root {
    color: #f8fafc;
    background: #0f172a;
    --bg: #0f172a;
    --surface: #1e293b;
    --border: #334155;
    --text: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-tertiary: #94a3b8;
    --accent-50: rgba(59, 130, 246, 0.15);
  }
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
}
a {
  color: var(--accent-600);
}
header,
footer {
  padding: 24px max(24px, calc((100vw - 1120px) / 2));
  display: flex;
  justify-content: space-between;
  gap: 24px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
footer {
  border-bottom: 0;
  border-top: 1px solid var(--border);
}
header a {
  font-weight: 700;
  text-decoration: none;
  color: var(--text);
}
nav {
  display: flex;
  gap: 24px;
}
nav a {
  color: var(--accent-600);
  font-weight: 600;
  text-decoration: none;
}
main {
  max-width: 1120px;
  margin: 60px auto;
  padding: 0 24px;
}
h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
  max-width: 900px;
  color: var(--text);
}
h2 {
  line-height: 1.25;
  color: var(--text);
}
.intro {
  font-size: 1.25rem;
  max-width: 760px;
  color: var(--text-secondary);
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-600);
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 30px 0;
}
.button {
  display: inline-block;
  background: linear-gradient(135deg, var(--accent), var(--accent-600));
  color: white;
  border: 0;
  border-radius: 12px;
  padding: 14px 22px;
  text-decoration: none;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.secondary {
  background: var(--accent-50);
  color: var(--accent-600);
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px;
  margin: 20px 0;
  text-decoration: none;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.grid .card {
  margin: 0;
}
form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 20px;
  align-items: end;
}
label {
  display: grid;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
}
input,
select {
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  font: inherit;
  width: 100%;
  background: var(--bg);
  color: var(--text);
}
article {
  max-width: 780px;
  font-size: 1.1rem;
  margin: 40px 0;
  color: var(--text-secondary);
}
article h2 {
  font-size: 1.4rem;
  margin: 1.7em 0 0.6em;
  color: var(--text);
}
article ul {
  padding-left: 1.3em;
  margin: 0.8em 0;
}
article li {
  margin: 0.4em 0;
}
#result {
  margin-top: 24px;
  font-weight: 600;
  line-height: 2;
  color: var(--text);
}
.mining-facts {
  margin: 32px 0;
}
.mining-facts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
}
.mining-fact {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 18px;
}
.mining-fact h3 {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 12px;
  font-size: 1rem;
}
.mining-fact h3 span {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-tertiary);
}
.mining-fact dl {
  display: grid;
  gap: 8px;
  margin: 0;
}
.mining-fact dl div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.mining-fact dt {
  color: var(--text-secondary);
}
.mining-fact dd {
  margin: 0;
  text-align: right;
  overflow-wrap: anywhere;
}
.mining-tool > p:first-of-type {
  color: var(--text-secondary);
}
.mining-tool button:disabled {
  opacity: 0.6;
  cursor: wait;
}
#mining-status,
#mining-results {
  margin-top: 20px;
  line-height: 1.8;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.muted {
  color: var(--text-tertiary);
}
.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 10px;
  top: 10px;
  background: var(--surface);
  color: var(--text);
  padding: 10px;
}
.faq {
  margin: 32px 0;
}
.faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 20px;
  margin: 10px 0;
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
}
.faq p {
  margin: 10px 0 0;
  color: var(--text-secondary);
}
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}
@media (max-width: 550px) {
  header {
    flex-direction: column;
    gap: 8px;
  }
  main {
    margin-top: 32px;
  }
  .card {
    padding: 20px;
  }
}

/* ---- Glossary (Investopedia-style term pages) ---- */
.term-def {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: 12px;
  padding: 16px 20px;
  margin: 18px 0;
  font-size: 1.08rem;
}
.term-def p { margin: 0; }
.term-takeaways {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 4px 20px 12px;
  margin: 18px 0 26px;
}
.term-takeaways h2 { font-size: 1.05rem; margin: 14px 0 6px; }
.term-takeaways ul { margin: 0; padding-left: 20px; }
.term-takeaways li { margin: 6px 0; }
.term-callout {
  background: var(--surface);
  border: 1px solid var(--accent);
  border-radius: 12px;
  padding: 16px 20px;
  margin: 26px 0;
}
.term-callout h3 { margin: 4px 0 6px; }
.term-callout p { margin: 6px 0 12px; color: var(--text-secondary); }
.term-example {
  border-top: 1px solid var(--border);
  margin-top: 26px;
}
.term-formula {
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: 8px;
  padding: 10px 14px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.95rem;
}
.term-formula span {
  font-family: inherit;
  font-weight: 700;
  margin-right: 8px;
}
.term-closing { margin-top: 28px; }
.term-chips {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.term-chips a {
  display: inline-block;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 14px;
  text-decoration: none;
}
.term-meta { margin-top: 28px; font-size: 0.85rem; }
.term-az {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 18px 0;
}
.term-az a {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 4px 10px;
  text-decoration: none;
  font-weight: 600;
}
.term-azlist ul { list-style: none; padding: 0; columns: 2 220px; }
.term-azlist li { margin: 4px 0; }
.term-evidence { margin-top: 32px; padding: 20px 22px; border: 1px solid rgba(120,120,140,.28); border-radius: 14px; }
.term-evidence h2 { margin-top: 0; }
.term-evidence .term-claims, .term-evidence .term-sources { padding-left: 22px; }
.term-evidence li { margin: 6px 0; }
.term-evidence a[href^="#src-"] { font-size: .85em; text-decoration: none; }

/* Token pages: liquidity block and low-liquidity warning */
.asset-liquidity{margin:14px 0;padding:12px 14px;border-radius:12px;border:1px solid var(--line,#d6dde6);background:rgba(120,130,150,.07);font-size:.95rem;line-height:1.5}
.asset-liquidity p{margin:.3em 0}
.asset-liquidity ul{margin:.4em 0 0;padding-left:1.2em}
.asset-liquidity li{margin:.35em 0}
.asset-liquidity summary{cursor:pointer;font-weight:600;margin-top:.4em}
.asset-liquidity.liq-low{border-color:#d97706;background:rgba(217,119,6,.10)}
.asset-liquidity.liq-very-low,.asset-liquidity.liq-none{border-color:#dc2626;background:rgba(220,38,38,.09)}
.asset-liquidity.liq-ok{border-color:#16a34a;background:rgba(22,163,74,.07)}
