/* open.gismo — how a user loads their 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), so this report
   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 exception, and deliberately so. They render in
   open.gismo's own espresso theme (site/src/style.css: #271810 sidebar, paper
   #faf6f1 body, burnt orange #c2410c accent) with a fixed light palette in
   both modes, because a mock of a product should look like that product
   rather than like the page it is printed on. Fonts are system stacks — this
   report loads nothing from the network, so the real Instrument Serif /
   Instrument Sans faces are named as fallbacks and stand in locally.

   Status marks always carry a glyph AND a written word. No colour-only state
   anywhere, in the report chrome or in the mocks. */

: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: #0ca30c;
  --good-ink: #0a6b0a;
  --good-tint: #e6f5e6;
  --warn: #fab219;
  --warn-ink: #8a5d00;
  --warn-tint: #fdf3dd;
  --bad: #d03b3b;
  --bad-ink: #a32424;
  --bad-tint: #fbe9e9;

  --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;
    --warn-ink: #e8bf62; --warn-tint: #2d2409;
    --bad-ink: #f08b8b; --bad-tint: #2e1414;
    --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;
  --warn-ink: #e8bf62; --warn-tint: #2d2409;
  --bad-ink: #f08b8b; --bad-tint: #2e1414;
  --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 { margin: 0; }
ul, ol { padding: 0; }

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; }

a.ref {
  font-family: var(--f-mono); font-size: .82em; white-space: nowrap;
  background: var(--surface-2); border: 1px solid var(--hairline);
  border-radius: 4px; padding: .08em .38em; color: var(--ink);
}
a.ref:hover { background: var(--accent-tint); border-color: var(--accent); border-bottom-color: var(--accent); }

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

/* ---- masthead ---- */
.masthead { padding: 3.5rem 0 1.75rem; }
.kicker {
  font-family: var(--f-mono); font-size: .75rem; letter-spacing: .09em;
  text-transform: uppercase; color: var(--accent-deep); margin-bottom: .85rem;
}
.masthead h1 {
  font-family: var(--f-serif); font-weight: 400; line-height: 1.08;
  font-size: clamp(2.1rem, 6vw, 3.4rem); letter-spacing: -.015em;
}
.standfirst {
  font-size: clamp(1.05rem, 2.4vw, 1.25rem); color: var(--muted);
  margin-top: 1rem; max-width: 46rem;
}
.byline { margin-top: 1rem; font-size: .84rem; color: var(--faint); max-width: 50rem; }
.parts {
  display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1.75rem;
  border-top: 1px solid var(--border); padding-top: 1.1rem;
}
.parts a {
  font-size: .85rem; padding: .34rem .7rem; border-radius: 999px;
  border: 1px solid var(--border); background: var(--surface); color: var(--muted);
}
.parts a:hover { border-color: var(--accent); color: var(--accent-deep); }
.parts a[aria-current="page"] { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ---- sections ---- */
section { margin-top: 3rem; }
section > h2 {
  font-family: var(--f-serif); font-weight: 400; font-size: clamp(1.5rem, 3.6vw, 2.05rem);
  letter-spacing: -.01em; line-height: 1.15;
}
section > h3 { font-size: 1.08rem; margin-top: 1.75rem; }
.lede { color: var(--muted); margin-top: .7rem; max-width: 46rem; }
section p + p { margin-top: .9rem; }
.note { font-size: .86rem; color: var(--faint); margin-top: .9rem; max-width: 46rem; }

.bullets { list-style: none; margin-top: 1.1rem; display: grid; gap: .8rem; }
.bullets li { padding-left: 1.15rem; position: relative; }
.bullets li::before {
  content: ""; position: absolute; left: 0; top: .62em;
  width: .42rem; height: .42rem; border-radius: 50%; background: var(--accent);
}

/* ---- tldr + callouts ---- */
.tldr {
  margin-top: 2rem; background: var(--surface); border: 1px solid var(--border);
  border-left: 4px solid var(--accent); border-radius: 12px; padding: 1.4rem 1.5rem;
  box-shadow: var(--shadow-soft);
}
.tldr h2 { font-size: .78rem; font-family: var(--f-mono); letter-spacing: .09em;
  text-transform: uppercase; color: var(--accent-deep); margin-bottom: .7rem; }
.tldr p + p { margin-top: .8rem; }

.callout {
  margin-top: 1.4rem; border: 1px solid var(--border); border-radius: 12px;
  background: var(--surface); padding: 1.1rem 1.25rem; box-shadow: var(--shadow-soft);
}
.callout > .label {
  font-family: var(--f-mono); font-size: .72rem; letter-spacing: .09em;
  text-transform: uppercase; color: var(--muted); display: block; margin-bottom: .5rem;
}
.callout.hot { border-left: 4px solid var(--bad); }
.callout.hot > .label { color: var(--bad-ink); }
.callout.warm { border-left: 4px solid var(--warn); }
.callout.warm > .label { color: var(--warn-ink); }
.callout.cool { border-left: 4px solid var(--accent); }
.callout.cool > .label { color: var(--accent-deep); }

/* ---- kpi strip ---- */
.kpis {
  margin-top: 2rem; display: grid; gap: .8rem;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
}
.kpi {
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  padding: 1rem 1.1rem; box-shadow: var(--shadow-soft); min-width: 0;
}
.kpi .n { font-family: var(--f-serif); font-size: 2rem; line-height: 1; }
.kpi .l { font-size: .8rem; color: var(--muted); margin-top: .45rem; }

/* ---- cards ---- */
.cards { margin-top: 1.4rem; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  padding: 1.15rem 1.25rem; box-shadow: var(--shadow-soft); min-width: 0;
}
.card h3 { font-size: 1rem; line-height: 1.3; }
.card p { margin-top: .6rem; font-size: .92rem; color: var(--muted); }
.card .tagline {
  font-family: var(--f-mono); font-size: .72rem; letter-spacing: .07em;
  text-transform: uppercase; color: var(--accent-deep); margin-bottom: .45rem; display: block;
}

/* ---- status chips ---- */
.st {
  display: inline-flex; align-items: center; gap: .32em; white-space: nowrap;
  font-size: .78rem; font-weight: 600; border-radius: 999px;
  padding: .12em .6em .16em; border: 1px solid transparent;
}
.st .g { font-size: .95em; }
.st-have { background: var(--good-tint); color: var(--good-ink); border-color: var(--good-tint); }
.st-part { background: var(--warn-tint); color: var(--warn-ink); border-color: var(--warn-tint); }
.st-none { background: var(--bad-tint); color: var(--bad-ink); border-color: var(--bad-tint); }
.st-na   { background: var(--surface-2); color: var(--muted); border-color: var(--hairline); }

/* ---- tables ---- */
.tablewrap { margin-top: 1.3rem; overflow-x: auto; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-size: .9rem; min-width: 34rem; }
th, td { text-align: left; padding: .62rem .8rem; border-bottom: 1px solid var(--hairline); vertical-align: top; }
thead th {
  font-size: .72rem; letter-spacing: .07em; text-transform: uppercase;
  color: var(--muted); background: var(--surface-2); position: sticky; top: 0;
  border-bottom: 1px solid var(--border);
}
tbody tr:last-child td { border-bottom: none; }
td .sub { display: block; color: var(--faint); font-size: .82em; margin-top: .2rem; }

/* ---- landscape capsules ---- */
.capsule {
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  padding: 1.2rem 1.3rem; box-shadow: var(--shadow-soft); min-width: 0;
}
.capsule h3 { font-size: 1.02rem; display: flex; flex-wrap: wrap; gap: .5rem; align-items: baseline; }
.capsule h3 .kind {
  font-family: var(--f-mono); font-size: .66rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted); border: 1px solid var(--hairline); border-radius: 4px; padding: .1em .35em;
}
.capsule .doing { margin-top: .75rem; font-size: .93rem; }
.capsule dl { margin-top: .9rem; display: grid; gap: .45rem; font-size: .87rem; }
.capsule dl > div { display: grid; grid-template-columns: 8.5rem 1fr; gap: .6rem; }
.capsule dt { color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; padding-top: .12em; }
.capsule dd { margin: 0; }
@media (max-width: 40rem) { .capsule dl > div { grid-template-columns: 1fr; gap: .1rem; } }

.kinds { margin-top: 1.3rem; display: grid; gap: .8rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.kind-card { border: 1px solid var(--border); border-radius: 12px; background: var(--surface); padding: 1rem 1.1rem; min-width: 0; }
.kind-card .letter { font-family: var(--f-serif); font-size: 1.6rem; color: var(--accent); line-height: 1; }
.kind-card h4 { margin-top: .35rem; font-size: .98rem; }
.kind-card p { margin-top: .45rem; font-size: .86rem; color: var(--muted); }

/* ---- footer ---- */
.foot { margin-top: 4rem; border-top: 1px solid var(--border); padding-top: 1.4rem; font-size: .85rem; color: var(--faint); }
.foot p + p { margin-top: .5rem; }

/* =========================================================================
   PRODUCT MOCKUPS — open.gismo espresso theme, fixed light palette
   ========================================================================= */

.mock {
  --m-side: #271810; --m-side-ink: #f5ede4; --m-side-soft: #c4a995;
  --m-paper: #faf6f1; --m-panel: #f5efe7; --m-card: #ffffff;
  --m-ink: #2a211b; --m-muted: #6b5d52; --m-faint: #a3958a;
  --m-accent: #c2410c; --m-accent-bright: #f97316; --m-rule: #ece2d7;
  --m-good: #166534; --m-good-bg: #dcfce7; --m-good-rule: #bbf7d0;
  --m-warn: #92400e; --m-warn-bg: #fef3c7; --m-warn-rule: #fde68a;
  --m-bad: #b91c1c; --m-bad-bg: #fee2e2; --m-bad-rule: #fecaca;
  --m-serif: "Instrument Serif", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --m-sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --m-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  margin-top: 1.5rem;
  border: 1px solid var(--border); border-radius: 14px; overflow: hidden;
  background: var(--m-paper); color: var(--m-ink); font-family: var(--m-sans);
  box-shadow: var(--shadow);
}
.mock * { box-sizing: border-box; }

.mock-chrome {
  display: flex; align-items: center; gap: .5rem;
  background: var(--m-side); color: var(--m-side-soft);
  padding: .5rem .85rem; font-family: var(--m-mono); font-size: .7rem; letter-spacing: .04em;
}
.mock-chrome .dots { display: flex; gap: .3rem; }
.mock-chrome .dots i { width: .55rem; height: .55rem; border-radius: 50%; background: #4b352a; display: block; }
.mock-chrome .path { color: var(--m-side-ink); opacity: .8; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.mock-body { display: grid; grid-template-columns: 12rem 1fr; min-height: 22rem; }
@media (max-width: 52rem) { .mock-body { grid-template-columns: 1fr; } }

.mock-side { background: var(--m-side); color: var(--m-side-soft); padding: 1rem .85rem; font-size: .82rem; }
@media (max-width: 52rem) { .mock-side { display: none; } }
.mock-side .wordmark { font-family: var(--m-serif); font-size: 1.1rem; color: var(--m-side-ink); display: block; margin-bottom: 1.1rem; }
.mock-side .wordmark b { color: var(--m-accent-bright); font-weight: 400; }
.mock-side .grp { font-family: var(--m-mono); font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; opacity: .6; margin: .9rem 0 .35rem; }
.mock-side a, .mock-side span.item { display: block; padding: .26rem .45rem; border-radius: 6px; color: var(--m-side-soft); font-size: .82rem; }
.mock-side .item.on { background: rgba(249,115,22,.16); color: var(--m-side-ink); }
.mock-side .item.on::before { content: "▸ "; color: var(--m-accent-bright); }

.mock-main { padding: 1.1rem 1.2rem 1.4rem; min-width: 0; }
.mock-h {
  font-family: var(--m-serif); font-size: 1.45rem; font-weight: 400; line-height: 1.15;
  color: var(--m-ink); letter-spacing: -.01em;
}
.mock-sub { color: var(--m-muted); font-size: .88rem; margin-top: .35rem; max-width: 42rem; }

/* step rail */
.mock-steps { display: flex; flex-wrap: wrap; gap: .3rem; margin: 1rem 0 1.1rem; }
.mock-steps button {
  font: inherit; font-size: .78rem; cursor: pointer;
  border: 1px solid var(--m-rule); background: var(--m-card); color: var(--m-muted);
  border-radius: 999px; padding: .3rem .7rem; display: inline-flex; gap: .4rem; align-items: center;
}
.mock-steps button .num { font-family: var(--m-mono); font-size: .7rem; color: var(--m-faint); }
.mock-steps button:hover { border-color: var(--m-accent); color: var(--m-accent); }
.mock-steps button[aria-selected="true"] { background: var(--m-accent); border-color: var(--m-accent); color: #fff; }
.mock-steps button[aria-selected="true"] .num { color: rgba(255,255,255,.7); }

.mock-screen[hidden] { display: none; }

/* generic mock components */
.m-card { background: var(--m-card); border: 1px solid var(--m-rule); border-radius: 10px; padding: .85rem .95rem; min-width: 0; }
.m-grid { display: grid; gap: .7rem; }
.m-2col { grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.m-3col { grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); }
.m-label { font-family: var(--m-mono); font-size: .64rem; letter-spacing: .09em; text-transform: uppercase; color: var(--m-faint); }
.m-flag {
  display: inline-flex; align-items: center; gap: .3em; white-space: nowrap;
  font-size: .74rem; font-weight: 600; border-radius: 5px; padding: .1em .45em .14em; border: 1px solid;
}
.m-ok   { background: var(--m-good-bg); color: var(--m-good); border-color: var(--m-good-rule); }
.m-mid  { background: var(--m-warn-bg); color: var(--m-warn); border-color: var(--m-warn-rule); }
.m-no   { background: var(--m-bad-bg);  color: var(--m-bad);  border-color: var(--m-bad-rule); }
.m-off  { background: var(--m-panel);   color: var(--m-muted); border-color: var(--m-rule); }
.m-mono { font-family: var(--m-mono); font-size: .78rem; }

.m-drop {
  border: 2px dashed var(--m-rule); border-radius: 12px; background: var(--m-panel);
  padding: 1.5rem 1.1rem; text-align: center;
}
.m-drop .big { font-family: var(--m-serif); font-size: 1.2rem; }
.m-drop .small { color: var(--m-muted); font-size: .84rem; margin-top: .35rem; }
.m-drop .btn {
  display: inline-block; margin-top: .8rem; background: var(--m-accent); color: #fff;
  border-radius: 8px; padding: .38rem .9rem; font-size: .85rem; font-weight: 600;
}

.m-table { width: 100%; border-collapse: collapse; font-size: .82rem; min-width: 30rem; }
.m-table th {
  text-align: left; font-family: var(--m-mono); font-size: .63rem; letter-spacing: .08em;
  text-transform: uppercase; color: var(--m-faint); font-weight: 500;
  padding: .4rem .55rem; border-bottom: 1px solid var(--m-rule); background: var(--m-panel);
}
.m-table td { padding: .48rem .55rem; border-bottom: 1px solid var(--m-rule); vertical-align: top; }
.m-table tbody tr:last-child td { border-bottom: none; }
.m-table tr.hot td { background: var(--m-bad-bg); }
.m-scroll { overflow-x: auto; border: 1px solid var(--m-rule); border-radius: 10px; background: var(--m-card); }

/* the mapping grid */
.m-map { display: grid; gap: .4rem; margin-top: .8rem; }
.m-row {
  display: grid; grid-template-columns: 12.5rem 1.4rem 1fr; gap: .55rem; align-items: start;
  background: var(--m-card); border: 1px solid var(--m-rule); border-radius: 9px; padding: .5rem .6rem;
}
.m-row.attn { border-color: var(--m-warn-rule); background: var(--m-warn-bg); }
.m-row.gap  { border-color: var(--m-bad-rule);  background: var(--m-bad-bg); }
.m-row .arrow { color: var(--m-faint); text-align: center; padding-top: .35rem; font-size: .9rem; }
.m-need .t { font-family: var(--m-mono); font-size: .8rem; font-weight: 600; }
.m-need .why { display: block; color: var(--m-muted); font-size: .72rem; margin-top: .15rem; }
.m-row select {
  font-family: var(--m-mono); font-size: .78rem; width: 100%; max-width: 100%;
  padding: .28rem .4rem; border-radius: 6px; border: 1px solid var(--m-rule);
  background: var(--m-paper); color: var(--m-ink);
}
.m-row .reason { display: block; font-size: .72rem; color: var(--m-muted); margin-top: .25rem; }
@media (max-width: 44rem) {
  .m-row { grid-template-columns: 1fr; }
  .m-row .arrow { display: none; }
}

.m-preview { margin-top: .9rem; }
.m-diff { font-family: var(--m-mono); font-size: .76rem; line-height: 1.55; overflow-x: auto;
  background: #1f1610; color: #f0e6da; border-radius: 10px; padding: .8rem .9rem;
  white-space: pre; }
.m-diff span { display: block; }
.m-diff .add  { color: #86efac; }
.m-diff .ctx  { color: #b39c8a; }
.m-diff .hd   { color: #fb923c; font-weight: 600; margin-top: .5rem; }
.m-diff .hd:first-child { margin-top: 0; }
.m-diff .prop { color: #fbbf24; }
.m-diff .note { color: #8d7a6b; }

.m-foot { margin-top: 1rem; font-size: .78rem; color: var(--m-muted); border-top: 1px solid var(--m-rule); padding-top: .6rem; }
.m-actions { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .9rem; }
.m-btn { font-size: .82rem; font-weight: 600; border-radius: 8px; padding: .35rem .8rem; border: 1px solid var(--m-accent); color: var(--m-accent); background: var(--m-card); }
.m-btn.primary { background: var(--m-accent); color: #fff; }
.m-btn.quiet { border-color: var(--m-rule); color: var(--m-muted); }

.mock-caption { margin-top: .8rem; font-size: .87rem; color: var(--muted); max-width: 46rem; }
.mock-caption b { font-weight: 600; color: var(--ink); }

/* decisions */
.decision {
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  padding: 1.1rem 1.25rem; margin-top: 1rem; box-shadow: var(--shadow-soft);
}
.decision .id {
  font-family: var(--f-mono); font-size: .72rem; letter-spacing: .08em; color: var(--accent-deep);
}
.decision h3 { font-size: 1.02rem; margin-top: .25rem; }
.decision .q { margin-top: .55rem; color: var(--muted); font-size: .93rem; }
.decision .rec { margin-top: .7rem; font-size: .92rem; border-left: 3px solid var(--accent); padding-left: .8rem; }
.decision .rec .lead { font-family: var(--f-mono); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-deep); display: block; margin-bottom: .25rem; }
.decision .alt { margin-top: .6rem; font-size: .86rem; color: var(--faint); }
