/* QualifyOps site-wide design system — injected by postprocess.py AFTER each
   page's inline <style>, so equal-specificity rules here win by source order.

   Identity: a verified-data vendor. One rule carries the brand — the green
   #0B9E63 is RESERVED for verification semantics (the brand tick, the footer
   verification promise, verified/SEND_NOW markers). Everything else stays
   quiet ink-on-paper; actions are indigo. Display face Space Grotesk gives
   tool character; Inter carries body text. */

:root {
  --ink: #141b28;
  --muted: #5d6b7e;
  --paper: #fcfcfa;
  --panel: #f3f5f7;
  --line: #e3e6eb;
  --verify: #0b9e63;
  --verify-bg: #e7f6ef;
  --action: #3d5af1;
  --action-dark: #2f47c9;
}

html {
  border-top: 3px solid var(--verify);
  background: var(--paper);
}

body {
  font: 16px/1.65 Inter, -apple-system, system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  max-width: 820px;
  margin: 0 auto;
  padding: 0 1.25rem 0;
}

h1, h2, h3 {
  font-family: "Space Grotesk", Inter, -apple-system, sans-serif;
  letter-spacing: -0.015em;
  color: var(--ink);
}
h1 { font-size: 1.9rem; line-height: 1.22; font-weight: 700; margin: 1.6rem 0 0.9rem; }
h2 { font-size: 1.28rem; font-weight: 600; margin-top: 2.2rem; }
h3 { font-weight: 600; }

p { color: var(--ink); }
small, .qo-fine { color: var(--muted); }

a { color: var(--action); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
a:focus-visible {
  outline: 2px solid var(--action);
  outline-offset: 2px;
  border-radius: 3px;
}

code {
  font: 0.86em/1 ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 0.12em 0.4em;
  color: var(--ink);
}

/* ---------- injected shell: header ---------- */
.qo-shell-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.4rem 1.2rem;
  padding: 1.05rem 0 0.85rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 0.4rem;
}
.qo-brand {
  font-family: "Space Grotesk", Inter, sans-serif;
  font-weight: 700;
  font-size: 1.12rem;
  letter-spacing: -0.02em;
  color: var(--ink) !important;
  white-space: nowrap;
}
.qo-brand:hover { text-decoration: none; }
.qo-brand b { color: var(--verify); font-weight: 700; }
.qo-tick {
  display: inline-block;
  margin-left: 0.3rem;
  width: 1.05em; height: 1.05em;
  line-height: 1.08em;
  text-align: center;
  font-size: 0.78em;
  font-weight: 700;
  color: #fff;
  background: var(--verify);
  border-radius: 5px;
  vertical-align: 0.08em;
}
.qo-nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1.1rem; font-size: 0.92rem; }
.qo-nav a { color: var(--muted); font-weight: 500; }
.qo-nav a:hover { color: var(--action); text-decoration: none; }

/* legacy in-page nav strips (early homepage build) fold into the quiet style */
body > nav, body > p:first-of-type > small { color: var(--muted); }

/* ---------- content blocks the generators emit ---------- */
table { border-collapse: collapse; width: 100%; margin: 1rem 0; font-size: 0.95rem; }
th, td { border-bottom: 1px solid var(--line); padding: 0.55rem 0.5rem; text-align: left; }
tr:first-child th, tr:first-child td b { font-weight: 600; }
thead th, tr:first-child th {
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.cta {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 3px solid var(--verify);
  border-radius: 10px;
  padding: 1.15rem 1.35rem;
  margin: 1.7rem 0;
  box-shadow: 0 1px 2px rgba(20, 27, 40, 0.04);
}
.cta h3 { margin: 0 0 0.4rem; font-size: 1.05rem; }

.buy, a.buy {
  display: inline-block;
  background: var(--action);
  color: #fff !important;
  padding: 0.62rem 1.25rem;
  border-radius: 9px;
  font-weight: 600;
  font-size: 0.97rem;
  text-decoration: none;
  transition: background 0.15s ease;
}
.buy:hover { background: var(--action-dark); text-decoration: none; }

.rel {
  margin: 1.4rem 0;
  padding: 1rem 1.2rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 0.94rem;
}
.rel ul { margin: 0.3rem 0 0; padding-left: 1.1rem; }
.rel li { margin: 0.28rem 0; }

/* ---------- injected shell: footer ---------- */
.qo-shell-foot {
  margin-top: 3rem;
  padding: 1.3rem 0 2.2rem;
  border-top: 1px solid var(--line);
  font-size: 0.92rem;
  color: var(--muted);
}
.qo-shell-foot .qo-promise {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  color: var(--ink);
  background: var(--verify-bg);
  border-radius: 10px;
  padding: 0.8rem 1rem;
  margin: 0 0 0.9rem;
}
.qo-shell-foot .qo-promise .qo-tick { flex: none; margin: 0.15rem 0 0; }
.qo-shell-foot a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.qo-shell-foot a:hover { color: var(--action); }

@media (max-width: 560px) {
  body { font-size: 15px; }
  h1 { font-size: 1.5rem; }
  .qo-shell-head { padding-top: 0.85rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
