/* Falcon Hub site: one stylesheet for every page. Dark by default, follows the system setting when light is chosen. */
:root {
  --bg: #0b0d10;
  --panel: #14171c;
  --panel-2: #1b1f26;
  --line: #262b34;
  --text: #e9edf3;
  --muted: #8b95a5;
  --brand: #ff7a1a;
  --brand-2: #ffb36b;
  --ok: #3fb950;
  --warn: #d29922;
  --bad: #f85149;
  --radius: 14px;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f6f7f9;
    --panel: #ffffff;
    --panel-2: #f1f3f6;
    --line: #dde2ea;
    --text: #141821;
    --muted: #5d6675;
    color-scheme: light;
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body {
  font: 16px/1.55 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(255, 122, 26, 0.14), transparent 60%),
    var(--bg);
}

.wrap { max-width: 44rem; margin: 0 auto; padding: 3.5rem 1.25rem 4rem; }
.wrap.wide { max-width: 60rem; }

/* header */
.brand { display: flex; align-items: center; gap: 0.7rem; margin-bottom: 2.2rem; text-decoration: none; color: inherit; }
.brand svg { width: 36px; height: 36px; flex: none; }
.brand b { font-size: 1.05rem; letter-spacing: 0.04em; }
.brand span { color: var(--muted); font-size: 0.85rem; display: block; margin-top: -2px; }

h1 { font-size: 2rem; line-height: 1.2; margin: 0 0 0.5rem; letter-spacing: -0.02em; }
h2 { font-size: 1.1rem; margin: 0 0 0.6rem; }
p { margin: 0.5rem 0; }
.lead { color: var(--muted); font-size: 1.05rem; }
.muted { color: var(--muted); font-size: 0.92rem; }
code, .code {
  font: 0.92em ui-monospace, "SF Mono", Consolas, Menlo, monospace;
  background: var(--panel-2); border: 1px solid var(--line); border-radius: 6px; padding: 0.1rem 0.4rem;
}

/* cards */
.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.4rem 1.5rem; margin: 1.25rem 0; box-shadow: 0 1px 0 rgba(255,255,255,0.03) inset, 0 12px 40px -24px rgba(0,0,0,0.6);
}
.card.accent { border-color: rgba(255, 122, 26, 0.45); }

/* forms */
label { display: block; font-size: 0.9rem; color: var(--muted); margin: 0.9rem 0 0.2rem; }
input, select, textarea {
  width: 100%; font: inherit; color: var(--text); background: var(--panel-2);
  border: 1px solid var(--line); border-radius: 10px; padding: 0.7rem 0.8rem; outline: none;
}
input:focus, select:focus, textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(255,122,26,0.18); }
input[readonly] { color: var(--muted); }

/* buttons */
button, .btn {
  font: inherit; font-weight: 600; cursor: pointer; border-radius: 10px; padding: 0.7rem 1.15rem;
  border: 1px solid var(--line); background: var(--panel-2); color: var(--text); text-decoration: none; display: inline-block;
}
button:hover, .btn:hover { border-color: var(--brand); }
button.primary, .btn.primary {
  background: linear-gradient(180deg, var(--brand-2), var(--brand)); color: #1a0d02; border-color: transparent;
}
button.primary:hover { filter: brightness(1.05); }
button:disabled { opacity: 0.5; cursor: not-allowed; }
.row { display: flex; gap: 0.6rem; flex-wrap: wrap; align-items: center; margin-top: 0.8rem; }

/* status */
.pill { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.85rem; padding: 0.18rem 0.6rem; border-radius: 999px; background: var(--panel-2); border: 1px solid var(--line); }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--muted); }
.pill.on::before { background: var(--ok); box-shadow: 0 0 0 3px rgba(63,185,80,0.2); }
.pill.on { color: var(--ok); }
.pill.off { color: var(--muted); }
.ok { color: var(--ok); }
.error { color: var(--bad); }
.notice { border-left: 3px solid var(--brand); padding: 0.6rem 0.9rem; background: var(--panel-2); border-radius: 8px; margin: 0.8rem 0; }

/* tables */
table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
th, td { text-align: left; padding: 0.7rem 0.5rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { color: var(--muted); font-weight: 600; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.06em; }
tr:last-child td { border-bottom: 0; }

/* code output */
pre {
  background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; padding: 0.9rem;
  overflow: auto; max-height: 22rem; font: 0.88rem/1.5 ui-monospace, "SF Mono", Consolas, monospace; margin: 0.6rem 0 0;
}

/* the code shown on the pairing page */
.bigcode { font: 700 2.2rem/1 ui-monospace, "SF Mono", Consolas, monospace; letter-spacing: 0.18em; color: var(--brand-2); }

.hidden { display: none !important; }
footer { margin-top: 2.5rem; color: var(--muted); font-size: 0.85rem; }
