/* Compute Discovery on the Web (#262, D40). Last updated: 2026-09-27.
   The tokens of www.egrit.ai (site/public/talk.html, app/egrit/compute/docs/egrit.css): white, navy
   text, the muted navy, the line colour, and the blue darkened for text-sized use (5.9:1 on white). */

:root {
  --bg: #ffffff;
  --fg: #0f1b3d;
  --muted: #3b4a6b;
  --line: #c9d1e3;
  --accent: #1a5fd0;
  --tint: #eef3fc;
  --yes: #1d6b3a;
  --no: #a3261d;
  --warn-bg: #fff6dd;
  --warn-line: #8a6100;
  --font: -apple-system, "Segoe UI", Inter, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--fg); font-family: var(--font); font-size: 18px; line-height: 1.5; }
.wrap { max-width: 960px; margin: 0 auto; padding: 0 20px; }
.top { max-width: 960px; margin: 0 auto; padding: 32px 20px 8px; }
.logo { display: block; width: 200px; max-width: 60vw; height: auto; }
.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: 8px; top: 8px; background: var(--bg); padding: 8px 12px; z-index: 10; }

h1 { font-size: clamp(28px, 4vw, 40px); line-height: 1.15; letter-spacing: -0.02em; margin: 16px 0 12px; }
h2 { font-size: 26px; line-height: 1.2; margin: 40px 0 12px; }
h3 { font-size: 21px; line-height: 1.3; margin: 0 0 8px; overflow-wrap: anywhere; }
p { margin: 0 0 12px; }
.lede { font-size: 20px; color: var(--muted); max-width: 44em; }
.hint { color: var(--muted); font-size: 16px; }
a { color: var(--accent); overflow-wrap: anywhere; }
code { font-family: var(--mono); background: var(--tint); padding: 1px 4px; border-radius: 4px; }

label { display: block; font-weight: 600; margin-top: 16px; }
input[type="text"], input[type="number"], select {
  display: block; width: 100%; margin-top: 6px; padding: 10px 12px; min-height: 48px; font: inherit; font-weight: 400;
  color: var(--fg); background: var(--bg); border: 2px solid var(--line); border-radius: 8px; }
fieldset { border: 2px solid var(--line); border-radius: 8px; margin: 16px 0 0; padding: 8px 12px 12px; }
legend { font-weight: 600; padding: 0 4px; }
label.check { display: flex; align-items: center; gap: 10px; font-weight: 400; margin-top: 4px; min-height: 44px; }
label.check input { width: 22px; height: 22px; margin: 0; }
button { display: inline-block; margin-top: 20px; min-height: 48px; padding: 12px 28px; font: inherit; font-weight: 600;
  color: #fff; background: var(--accent); border: 2px solid var(--accent); border-radius: 8px; cursor: pointer; }
button.secondary { color: var(--accent); background: var(--bg); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible,
section:focus-visible { outline: 3px solid var(--fg); outline-offset: 3px; }

.search { max-width: 44em; }
.signin { max-width: 44em; }
.signin-providers { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }
a.button { display: inline-flex; align-items: center; min-height: 48px; padding: 12px 28px; font-weight: 600;
  color: #fff; background: var(--accent); border: 2px solid var(--accent); border-radius: 8px; text-decoration: none; }
.signed-in { color: var(--muted); font-size: 16px; }
button.link { margin: 0; min-height: 44px; padding: 8px 4px; color: var(--accent); background: none; border: 0;
  font-weight: 600; text-decoration: underline; }
.warn { background: var(--warn-bg); border-left: 6px solid var(--warn-line); padding: 12px 14px; border-radius: 4px; }
.notice { background: var(--tint); padding: 12px 14px; border-radius: 4px; }
.status { min-height: 1.5em; margin-top: 16px; font-weight: 600; }
.status.error { color: var(--no); }

.read { border-top: 2px solid var(--line); }
.grid { display: grid; grid-template-columns: 1fr; column-gap: 24px; max-width: 44em; }
.grid .hint { margin: 4px 0 0; }
.grid fieldset { margin-top: 16px; }
.unread { margin-top: 20px; background: var(--warn-bg); border-left: 6px solid var(--warn-line); padding: 12px 14px; }
.unread h3 { font-size: 18px; }

.providers ul { padding-left: 1.2em; }
.providers li { margin: 6px 0; }

.result-list { list-style: none; padding: 0; margin: 0; }
.result { border: 2px solid var(--line); border-radius: 10px; padding: 16px; margin: 16px 0; }
.result .where { color: var(--muted); }
.table-wrap { overflow-x: auto; margin: 12px 0; }
table { border-collapse: collapse; width: 100%; font-size: 16px; }
caption { text-align: left; font-weight: 600; padding: 0 0 6px; }
th, td { text-align: left; vertical-align: top; padding: 8px 10px; border-top: 1px solid var(--line); }
thead th { border-top: 0; color: var(--muted); font-weight: 600; }
.v { font-weight: 700; white-space: nowrap; }
.v-yes { color: var(--yes); }
.v-no { color: var(--no); }
.v-unknown { color: var(--muted); }
.src { display: block; font-size: 15px; color: var(--muted); }
details { margin: 12px 0; }
summary { cursor: pointer; font-weight: 600; min-height: 44px; display: flex; align-items: center; }
.facts { margin: 8px 0 0; padding-left: 1.2em; }
.facts li { margin: 6px 0; }
.chosen { border-top: 2px solid var(--line); }
.chosen ul { padding-left: 1.2em; }
.ask { border: 2px solid var(--line); border-radius: 8px; margin: 20px 0 0; padding: 8px 14px 14px; }
.ask legend { font-weight: 600; padding: 0 4px; }
.ask button { margin: 12px 12px 0 0; }
.thanks { margin-top: 20px; font-weight: 600; }
.foot { margin-top: 56px; padding-bottom: 48px; color: var(--muted); font-size: 16px; }

@media (min-width: 720px) {
  .grid { grid-template-columns: 1fr 1fr; }
}
