/* Ore Overdrive support site. Colours from client/ui/kit/theme.lua (bg, text, muted, hint,
   edge, divider, gold). No web fonts, no external files, no scripts. */
:root {
  color-scheme: dark;
  --bg: #081724;
  --panel: #0d2133;
  --panel-2: #10283d;
  --text: #eef4f7;
  --muted: #afc3d2;
  --hint: #91a9bc;
  --edge: #3d6079;
  --divider: #35526d;
  --gold: #ffd173;
  --gold-ink: #202c35;
  --code: #ffe3a3;
  --owner: #efaa94;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 "Noto Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

a { color: var(--gold); text-underline-offset: 3px; }
a:hover { color: #ffe3a3; }
a:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

.top {
  border-bottom: 1px solid var(--divider);
  background: linear-gradient(180deg, #0b1e30 0%, var(--bg) 100%);
}
.top-inner {
  max-width: 820px;
  margin: 0 auto;
  padding: 18px 20px 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
}
.brand {
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 19px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.brand span { color: var(--gold); }
nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}
nav a:hover { color: var(--text); }
nav a[aria-current="page"] { color: var(--text); border-bottom-color: var(--gold); }

main {
  max-width: 820px;
  margin: 0 auto;
  padding: 28px 20px 48px;
}

h1 {
  margin: 0 0 8px;
  font-size: 28px;
  line-height: 1.25;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.lead { margin: 0 0 24px; color: var(--muted); font-size: 18px; }

h2 {
  margin: 0 0 12px;
  font-size: 17px;
  line-height: 1.35;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
h3 { margin: 18px 0 6px; font-size: 16px; color: var(--text); }

p { margin: 0 0 12px; }
ul, ol { margin: 0 0 12px; padding-left: 22px; }
li { margin: 4px 0; }
li::marker { color: var(--hint); }

.panel {
  background: var(--panel);
  border: 1px solid var(--edge);
  border-radius: 16px;
  padding: 20px 22px 10px;
  margin: 0 0 18px;
}
.panel > :last-child { margin-bottom: 12px; }

.note { color: var(--muted); font-size: 15px; }
.micro { color: var(--hint); font-size: 14px; }

.draft {
  border: 2px solid var(--gold);
  background: #1a2a33;
  color: var(--text);
  border-radius: 12px;
  padding: 12px 16px;
  margin: 0 0 22px;
  font-weight: 700;
}
.draft span { display: block; font-weight: 400; color: var(--muted); font-size: 15px; margin-top: 2px; }

.owner { color: var(--owner); font-family: ui-monospace, Consolas, monospace; font-size: 0.92em; overflow-wrap: anywhere; }
.blocker {
  display: block;
  margin: 8px 0 12px;
  padding: 2px 0 2px 12px;
  border-left: 3px solid var(--owner);
  color: var(--owner);
  font-size: 15px;
}
li .blocker { margin-bottom: 4px; }

/* inline (not inline-block) so following punctuation never wraps away from the chip */
.path {
  display: inline;
  background: var(--panel-2);
  border: 1px solid var(--divider);
  border-radius: 8px;
  padding: 1px 7px;
  font-size: 15px;
  white-space: nowrap;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
li, p { line-height: 1.75; }
.steps li { line-height: 1.75; }

.steps { counter-reset: step; list-style: none; padding-left: 0; }
.steps li { counter-increment: step; position: relative; padding-left: 40px; margin: 10px 0; }
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 1px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--gold-ink);
  font-weight: 700;
  font-size: 14px;
  line-height: 26px;
  text-align: center;
}

.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 0 0 18px; }
@media (max-width: 560px) { .cards { grid-template-columns: 1fr; } }
table.stack td:nth-child(2) { white-space: nowrap; }
.card {
  display: block;
  background: var(--panel);
  border: 1px solid var(--edge);
  border-radius: 14px;
  padding: 16px 18px;
  color: var(--text);
  text-decoration: none;
}
.card:hover { border-color: var(--gold); color: var(--text); }
.card strong { display: block; text-transform: uppercase; letter-spacing: 0.06em; font-size: 15px; margin-bottom: 4px; }
.card span { color: var(--muted); font-size: 15px; }

.table-wrap { overflow-x: auto; margin: 0 0 14px; border: 1px solid var(--divider); border-radius: 12px; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--divider); vertical-align: top; }
th { color: var(--muted); font-weight: 600; font-size: 13px; letter-spacing: 0.05em; text-transform: uppercase; background: var(--panel-2); }
tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
td.num { white-space: nowrap; }
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 0 14px; }
.odds { color: var(--code); font-weight: 700; }

footer {
  border-top: 1px solid var(--divider);
  color: var(--hint);
  font-size: 14px;
}
footer .inner { max-width: 820px; margin: 0 auto; padding: 18px 20px 28px; }
footer p { margin: 0 0 6px; }

@media (max-width: 520px) {
  body { font-size: 16px; }
  .top-inner { padding: 14px 16px 12px; }
  main { padding: 22px 16px 40px; }
  footer .inner { padding: 16px 16px 24px; }
  h1 { font-size: 24px; }
  .panel { padding: 16px 16px 8px; border-radius: 14px; }
  th, td { padding: 8px 8px; }
  th:first-child, td:first-child { padding-left: 10px; }
  th:last-child, td:last-child { padding-right: 10px; }
  /* wide text tables become one card per row on phones */
  table.stack thead { display: none; }
  table.stack, table.stack tbody, table.stack tr, table.stack td { display: block; width: 100%; }
  table.stack tr { padding: 10px 12px; border-bottom: 1px solid var(--divider); }
  table.stack tr:last-child { border-bottom: 0; }
  table.stack td { border: 0; padding: 2px 0; }
  table.stack td::before {
    content: attr(data-label);
    display: block;
    color: var(--hint);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }
  table.stack td:first-child { font-weight: 700; padding-left: 0; }
  table.stack td:first-child::before { display: none; }
  table.stack td:last-child { padding-right: 0; }
}
