/* open.gismo — the recommended path for loading your own data (2026-08-27)

   Base tokens are the obot report family's (executive overview 2026-07-21,
   goal atlas 2026-07-24, platform gap analysis 2026-07-25, and the four
   direction artifacts published earlier tonight), so this page sits with its
   siblings and inherits their light/dark contract: the full light palette on
   bare :root, the dark palette redefined twice — once under
   prefers-color-scheme guarded against an explicit light choice, once under
   [data-theme="dark"] so a toggle wins in both directions.

   The product mockups are the deliberate exception. They render in
   open.gismo's own espresso theme (site/src/style.css: #271810 rail, paper
   #faf6f1, burnt orange #c2410c) with a fixed light palette in both modes,
   because a mock of a product should look like the product. Terminal frames
   render fixed dark in both modes for the same reason. Those tokens are
   namespaced --og-* / --tm-* and never leak into the report chrome.

   Every state mark carries a glyph AND a written word. No colour-only state
   anywhere. Fonts are system stacks — nothing is fetched at view time. */

:root {
  --ground: #f4f6f7;
  --surface: #ffffff;
  --surface-2: #eef2f3;
  --ink: #16232d;
  --muted: #536470;
  --faint: #7f929e;
  --border: #dde4e7;
  --hairline: #e8edef;
  --accent: #0e7c86;
  --accent-deep: #0a5b63;
  --accent-tint: #e2f1f2;

  --good-ink: #0a6b0a;
  --good-tint: #e6f5e6;
  --good-rule: #b6e0b6;
  --warn-ink: #8a5d00;
  --warn-tint: #fdf3dd;
  --warn-rule: #ecd39a;
  --bad-ink: #a32424;
  --bad-tint: #fbe9e9;
  --bad-rule: #eebcbc;

  --f-display: "SF Pro Display", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --f-serif: "Iowan Old Style", "Palatino Linotype", "Charter", Georgia, Cambria, "Times New Roman", serif;
  --f-mono: ui-monospace, "SF Mono", "Cascadia Code", "JetBrains Mono", Menlo, Consolas, monospace;
  --shadow: 0 1px 2px rgba(20, 40, 55, .05), 0 8px 24px -12px rgba(20, 40, 55, .14);
  --shadow-soft: 0 1px 2px rgba(20, 40, 55, .04);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground: #0d141a; --surface: #141e26; --surface-2: #1a2831;
    --ink: #e7eef2; --muted: #9aabb6; --faint: #6f828e;
    --border: #263640; --hairline: #1f2d36;
    --accent: #3cc3d0; --accent-deep: #7fd8e0; --accent-tint: #0f2e33;
    --good-ink: #6fd36f; --good-tint: #12291a; --good-rule: #235c2f;
    --warn-ink: #e8bf62; --warn-tint: #2d2409; --warn-rule: #5d4a11;
    --bad-ink: #f08b8b; --bad-tint: #2e1414; --bad-rule: #662929;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px -14px rgba(0, 0, 0, .6);
    --shadow-soft: 0 1px 2px rgba(0, 0, 0, .25);
  }
}

:root[data-theme="dark"] {
  --ground: #0d141a; --surface: #141e26; --surface-2: #1a2831;
  --ink: #e7eef2; --muted: #9aabb6; --faint: #6f828e;
  --border: #263640; --hairline: #1f2d36;
  --accent: #3cc3d0; --accent-deep: #7fd8e0; --accent-tint: #0f2e33;
  --good-ink: #6fd36f; --good-tint: #12291a; --good-rule: #235c2f;
  --warn-ink: #e8bf62; --warn-tint: #2d2409; --warn-rule: #5d4a11;
  --bad-ink: #f08b8b; --bad-tint: #2e1414; --bad-rule: #662929;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px -14px rgba(0, 0, 0, .6);
  --shadow-soft: 0 1px 2px rgba(0, 0, 0, .25);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--f-display);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul, ol { padding: 0; }
img, svg { max-width: 100%; }

a { color: var(--accent-deep); text-decoration: none; border-bottom: 1px solid transparent; }
a:hover { border-bottom-color: currentColor; }
a:focus-visible, button:focus-visible, summary:focus-visible, select:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 3px;
}

code, .mono { font-family: var(--f-mono); font-size: .85em; }
code {
  background: var(--surface-2); border-radius: 4px; padding: .08em .35em;
  overflow-wrap: anywhere;
}

.wrap { max-width: 62rem; margin: 0 auto; padding: 0 1.15rem 5rem; }
.wrap.wide { max-width: 80rem; }

/* ---- masthead ---- */
.masthead { padding: 3rem 0 1.5rem; }
.kicker {
  font-family: var(--f-mono); font-size: .72rem; letter-spacing: .09em;
  text-transform: uppercase; color: var(--accent-deep); margin-bottom: .8rem;
}
.masthead h1 {
  font-family: var(--f-serif); font-weight: 400; line-height: 1.07;
  font-size: clamp(1.95rem, 6.6vw, 3.3rem); letter-spacing: -.015em;
}
.standfirst {
  margin-top: 1rem; font-size: clamp(1.02rem, 2.6vw, 1.2rem);
  line-height: 1.55; color: var(--muted); max-width: 44rem;
}
.byline {
  margin-top: 1.1rem; font-family: var(--f-mono); font-size: .74rem;
  color: var(--faint); letter-spacing: .03em;
}

/* ---- page nav ---- */
.pagenav {
  display: flex; flex-wrap: wrap; gap: .4rem;
  margin: 1.6rem 0 0; padding: 0; list-style: none;
}
.pagenav a {
  display: block; padding: .4rem .7rem; border-radius: 999px;
  border: 1px solid var(--border); background: var(--surface);
  font-size: .82rem; color: var(--ink); border-bottom: 1px solid var(--border);
}
.pagenav a[aria-current="page"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.pagenav a:hover { border-color: var(--accent); }

/* ---- sections ---- */
section { margin-top: 3rem; }
.sec-num {
  font-family: var(--f-mono); font-size: .72rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--faint);
}
h2 {
  font-family: var(--f-serif); font-weight: 400; letter-spacing: -.01em;
  font-size: clamp(1.5rem, 4.2vw, 2.1rem); line-height: 1.15; margin-top: .3rem;
}
h3 {
  font-size: clamp(1.02rem, 2.6vw, 1.15rem); font-weight: 640;
  margin-top: 1.8rem; letter-spacing: -.005em;
}
h4 { font-size: .95rem; font-weight: 640; margin-top: 1.2rem; }
section > p, .prose p { margin-top: .85rem; max-width: 44rem; line-height: 1.62; }
.lede { font-size: 1.06rem; color: var(--muted); }

ul.bul, ol.bul { margin-top: .9rem; padding-left: 1.15rem; max-width: 44rem; }
ul.bul li, ol.bul li { margin-top: .5rem; line-height: 1.55; }
ul.bul li::marker { color: var(--accent); }

/* ---- callout ---- */
.callout {
  margin-top: 1.4rem; padding: 1.1rem 1.15rem; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--border);
  border-left: 4px solid var(--accent); box-shadow: var(--shadow-soft);
}
.callout.warn { border-left-color: var(--warn-rule); background: var(--warn-tint); }
.callout.bad { border-left-color: var(--bad-rule); background: var(--bad-tint); }
.callout .lbl {
  font-family: var(--f-mono); font-size: .7rem; letter-spacing: .09em;
  text-transform: uppercase; color: var(--muted); display: block; margin-bottom: .4rem;
}
.callout p { margin-top: 0; max-width: none; }
.callout p + p { margin-top: .7rem; }

/* ---- cards ---- */
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 1.05rem 1.1rem; box-shadow: var(--shadow-soft);
}
.grid { display: grid; gap: .85rem; margin-top: 1.2rem; }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }
.grid.three { grid-template-columns: repeat(auto-fit, minmax(min(100%, 13.5rem), 1fr)); }
.grid.four { grid-template-columns: repeat(auto-fit, minmax(min(100%, 10.5rem), 1fr)); }

/* ---- stat tiles ---- */
.tile { text-align: left; }
.tile .n {
  font-family: var(--f-serif); font-size: clamp(1.7rem, 5.5vw, 2.3rem);
  line-height: 1; display: block;
}
.tile .k {
  display: block; margin-top: .45rem; font-size: .8rem; color: var(--muted);
  line-height: 1.4;
}

/* ---- tables ---- */
.tablewrap { overflow-x: auto; margin-top: 1.2rem; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-size: .88rem; min-width: 30rem; }
caption {
  caption-side: top; text-align: left; padding: .6rem .7rem;
  font-size: .78rem; color: var(--muted); background: var(--surface-2);
  border-bottom: 1px solid var(--border); line-height: 1.4;
}
thead th {
  text-align: left; font-size: .72rem; letter-spacing: .07em; text-transform: uppercase;
  color: var(--muted); font-weight: 600; padding: .6rem .7rem;
  border-bottom: 1px solid var(--border); white-space: nowrap; background: var(--surface-2);
}
tbody td { padding: .58rem .7rem; border-bottom: 1px solid var(--hairline); vertical-align: top; line-height: 1.45; }
tbody tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
table .mono { font-size: .8rem; }

/* ---- status marks: glyph + word, never colour alone ---- */
.mark {
  display: inline-flex; align-items: baseline; gap: .3rem;
  font-size: .78rem; font-weight: 600; padding: .1rem .45rem;
  border-radius: 999px; border: 1px solid transparent; white-space: nowrap;
}
.mark .g { font-size: .85em; }
.mark.ok { color: var(--good-ink); background: var(--good-tint); border-color: var(--good-rule); }
.mark.warn { color: var(--warn-ink); background: var(--warn-tint); border-color: var(--warn-rule); }
.mark.bad { color: var(--bad-ink); background: var(--bad-tint); border-color: var(--bad-rule); }
.mark.neutral { color: var(--muted); background: var(--surface-2); border-color: var(--border); }

.tag {
  font-family: var(--f-mono); font-size: .72rem; padding: .1rem .38rem;
  border-radius: 4px; background: var(--surface-2); border: 1px solid var(--hairline);
  color: var(--muted); white-space: nowrap;
}
.tag.src { color: var(--accent-deep); border-color: var(--accent-tint); background: var(--accent-tint); }

/* ---- source attributions on grafts ---- */
.from {
  display: inline-block; font-family: var(--f-mono); font-size: .7rem;
  letter-spacing: .04em; text-transform: uppercase; color: var(--accent-deep);
  background: var(--accent-tint); border-radius: 4px; padding: .12rem .4rem;
  white-space: nowrap;
}

/* ---- terminal frame: fixed dark in both modes ---- */
.term {
  --tm-bg: #14171c; --tm-ink: #dfe4ea; --tm-dim: #8b94a0;
  --tm-ok: #7fd08a; --tm-warn: #e6b95c; --tm-bad: #ef8a80; --tm-acc: #79c8d6;
  background: var(--tm-bg); color: var(--tm-ink); border-radius: 10px;
  border: 1px solid #262b33; overflow: hidden; margin-top: 1.1rem;
  box-shadow: var(--shadow-soft);
}
.term .bar {
  display: flex; align-items: center; gap: .4rem; padding: .45rem .7rem;
  background: #1b1f26; border-bottom: 1px solid #262b33;
  font-family: var(--f-mono); font-size: .7rem; color: var(--tm-dim);
}
.term .bar i { width: .55rem; height: .55rem; border-radius: 50%; background: #3a414c; display: block; }
.term pre {
  margin: 0; padding: .85rem .8rem; overflow-x: auto;
  font-family: var(--f-mono); font-size: .755rem; line-height: 1.62;
  white-space: pre; tab-size: 2;
}
.term .ok { color: var(--tm-ok); }
.term .warn { color: var(--tm-warn); }
.term .bad { color: var(--tm-bad); }
.term .dim { color: var(--tm-dim); }
.term .acc { color: var(--tm-acc); }
.term .add { color: var(--tm-ok); }
.term .del { color: var(--tm-bad); }
.term b { color: #fff; font-weight: 600; }

/* ---- footnote / provenance ---- */
.note {
  margin-top: .8rem; font-size: .82rem; color: var(--muted); line-height: 1.55;
  max-width: 44rem;
}
.hr { height: 1px; background: var(--border); border: 0; margin: 3rem 0 0; }
footer.report {
  margin-top: 2rem; padding-top: 1.4rem; border-top: 1px solid var(--border);
  font-size: .82rem; color: var(--muted);
}
footer.report p { margin-top: .5rem; max-width: 44rem; }

/* ---- lens scorecard ---- */
.rank { font-family: var(--f-mono); font-weight: 600; }
.rank.r1 { color: var(--good-ink); }
.rank.r4 { color: var(--faint); }

@media (max-width: 30rem) {
  .wrap { padding-left: .95rem; padding-right: .95rem; }
  .masthead { padding-top: 2.2rem; }
  table { min-width: 26rem; }
}
