/* forge.elexron.com — deliberately plain. The audience is engineers; the page
   has to look competent and load instantly, not designed. */

:root {
  --bg: #ffffff;
  --fg: #16191d;
  --muted: #5c6570;
  --line: #e3e6ea;
  --panel: #f7f8fa;
  --accent: #0b5cd5;
  --bad: #b3261e;
  --warn: #8a5a00;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14171a;
    --fg: #e6e9ec;
    --muted: #9aa4ae;
    --line: #2a2f35;
    --panel: #1b1f23;
    --accent: #7fb0ff;
    --bad: #ff7b6b;
    --warn: #e0a94b;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
}

main {
  max-width: 46rem;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
}

h1 { font-size: 1.9rem; line-height: 1.25; margin: .3rem 0 1rem; letter-spacing: -.01em; }
h2 { font-size: 1.3rem; margin: 2.4rem 0 .8rem; }
h3 { font-size: 1.02rem; margin: 1.8rem 0 .5rem; }

.kicker {
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .74rem;
  font-weight: 600;
  color: var(--muted);
  margin: 0;
}

.lede { font-size: 1.05rem; color: var(--fg); }
.muted, .hint, .note { color: var(--muted); }
.hint, .note { font-size: .88rem; }
a { color: var(--accent); }

code {
  font-family: var(--mono);
  font-size: .875em;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: .08em .32em;
  overflow-wrap: anywhere;
}

/* ---- form ---- */
.check {
  margin: 2rem 0;
  padding: 1.25rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.check label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .5rem; }
.row { display: flex; gap: .5rem; flex-wrap: wrap; }
.row input {
  flex: 1 1 18rem;
  min-width: 0;
  padding: .7rem .8rem;
  font-size: 1rem;
  color: var(--fg);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 7px;
}
.row input:focus-visible, .row button:focus-visible, a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.row button {
  padding: .7rem 1.4rem;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  background: var(--accent);
  border: 0;
  border-radius: 7px;
  cursor: pointer;
}
.check .hint { margin: .7rem 0 0; }

/* ---- result ---- */
.result {
  margin: 2rem 0;
  padding: 1.25rem 1.25rem .5rem;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.result h2 { margin-top: .3rem; }
.meta { font-size: .88rem; color: var(--muted); }

.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(6.5rem, 1fr));
  gap: .6rem;
  margin: 1.2rem 0;
}
.tile {
  padding: .8rem .6rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  text-align: center;
}
.tile b { display: block; font-size: 1.35rem; line-height: 1.2; }
.tile span { display: block; font-size: .74rem; color: var(--muted); margin-top: .2rem; }
.tile.bad b { color: var(--bad); }
.tile.warn b { color: var(--warn); }

/* Wide tables scroll inside their own box; the page never scrolls sideways. */
table {
  display: block;
  overflow-x: auto;
  width: 100%;
  border-collapse: collapse;
  margin: .6rem 0 1rem;
  font-size: .9rem;
}
th, td {
  text-align: left;
  vertical-align: top;
  padding: .45rem .6rem;
  border-bottom: 1px solid var(--line);
}
th { font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }

ul.findings, ul.suggest { padding-left: 1.1rem; }
ul.findings li, ul.suggest li { margin: .3rem 0; }

/* "What was checked" — makes the real work visible, since the check is fast
   enough to look like it did nothing. */
.provenance {
  margin: .6rem 0 1.4rem;
  padding: .9rem 1.1rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 9px;
  font-size: .92rem;
}
.provenance > p:first-child { margin-top: 0; }
.provenance dl {
  display: grid;
  grid-template-columns: minmax(9rem, auto) 1fr;
  gap: .3rem .9rem;
  margin: .8rem 0 0;
  font-size: .88rem;
}
.provenance dt { color: var(--muted); }
.provenance dd { margin: 0; }
@media (max-width: 30rem) {
  .provenance dl { grid-template-columns: 1fr; gap: .1rem; }
  .provenance dt { margin-top: .5rem; }
}

.row button:disabled {
  opacity: .65;
  cursor: progress;
}

.cta {
  margin: 1.8rem 0 1rem;
  padding: 1.1rem 1.25rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 9px;
}
.cta ul { padding-left: 1.1rem; }
.cta li { margin: .28rem 0; }
.cta .big { font-size: 1.05rem; font-weight: 600; margin-bottom: .2rem; }

.method ol { padding-left: 1.2rem; }
.method li { margin: .5rem 0; }

footer {
  margin-top: 3rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
  font-size: .85rem;
}
footer p { margin: .4rem 0; }
