/* ============================================================================
   RRGI · the graph in the IOSP event's light look (2026-10-05; Jonathan: not dark, minimal,
   "minimal jargon and text"). Loaded after core.css, landing.css and room.css; every rule is
   scoped to html.event, which index.html sets only on an event site (site-config.js `event`),
   so production and the workshop fork are untouched.

   It works through core.css's own variables: the surfaces, the text, the node and relation
   colours (core.js reads them for the canvas at start-up, with --font-mono / --font-serif for
   its labels and --node-ring / --box-* for the few fills it draws itself), the interface's
   accent (--accent: the IOSP royal) and its two families (Geist, Geist Mono). The rest are the
   handful of panels core.css paints with a fixed dark wash, made light here, and the event's
   simplifications: the IOSP 2026 mark in place of RRGI's, and no developer readouts (record
   counts, the hint line, the colophon, the grain and vignette). Every lens and action stays.
   ========================================================================== */

html.event {
  /* surfaces and text (the IOSP website's palette) */
  --ink:    #f6f7f9;
  --ink-1:  #ffffff;
  --ink-2:  #f1f3f6;
  --raise:  #eceef2;
  --line:   rgba(20, 22, 29, 0.09);
  --line-2: rgba(20, 22, 29, 0.18);
  --text:   #14161d;
  --dim:    #4b5162;
  --dimmer: #686e7c;
  --accent: #1d2d8e;
  --accent-soft: #e9ecf7;

  /* every colour below is also text somewhere (a node's type label, a link's name, a status): each reads at
     4.5:1 or more on white (verify-room checks); the canvas-only marks (halos, the selection) at 3:1 or more */
  /* node types: the same hues, deep enough to read on white */
  --claim:    #9a5f0a;
  --evidence: #0d7a64;
  --question: #2a64b8;
  --source:   #a85a2a;
  --study:    #b8467a;
  --protocol: #447a27;
  --issue:    #6a4fc0;

  /* relations */
  --supports:     #0f7a62;
  --opposes:      #c0392b;
  --addresses:    #2a64b8;
  --derivedfrom:  #6b58c4;
  --contradicts:  #c2477a;
  --describes:    #a8579a;
  --grounds:      #00798c;   /* cyan: apart from supports' green */
  --follows:      #33729a;
  --versionof:    #4d4d4d;   /* grey: apart from derivedfrom's violet in the legend */
  --equivalentto: #6d6d1f;   /* olive: apart from the data record's brown */

  /* the room's (room.css): data records, MIRA's evidence links, review marks */
  --entity:                    #8a6d3b;
  --observationstatement:      #4d7a17;
  --observationoriginactivity: #8e4fa8;   /* apart from describes' magenta */
  --observationbase:           #8a6d3b;
  --sourcedocument:            #a2571f;
  --rejected: #c0392b;
  --disagree: #a35914;
  --accepted: #0f7a62;

  /* super-nodes, overlay halos, status */
  --bundle:    #5d717c;
  --narrative: #82692f;
  --derived:   rgba(93, 113, 124, 0.45);
  --halo-a: #e0603e;
  --halo-b: #1f8fd1;
  --halo-c: #8a5cd6;
  --halo-lightness: 33%;   /* the 4th and later overlay halos (core.js haloColor): 3:1 on the canvas's grey for every hue */
  --ok:   #0f7a62;
  --bad:  #b42335;
  --warn: #9a5200;
  --seal: #237896;
  --credible:  #0f7a62;
  --contested: #a35914;
  --weakened:  #9a4e44;
  --select:    #9c7a12;
  --near:      #4f62d6;

  /* the Domains lens's four fields (core.css's are for the dark canvas) */
  --domain-physical: #2e6bd0;
  --domain-life:     #167f5c;
  --domain-health:   #c2413f;
  --domain-social:   #6455d0;

  /* what the canvas draws without a variable of its own (core.js readColors) */
  --node-ring:     #ffffff;
  --box-fill:      rgba(255, 255, 255, 0.94);
  --box-bundle:    rgba(255, 255, 255, 0.94);
  --box-narrative: rgba(255, 252, 244, 0.96);

  --font-serif: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono:  "Geist Mono", ui-monospace, Consolas, monospace;
  --shadow: 0 18px 44px -26px rgba(20, 22, 29, 0.35);
}

html.event, html.event body { font-family: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif; }
html.event body { background-image: none; }
html.event .grain, html.event .vignette { display: none; }

/* ---- the top bar: the IOSP 2026 mark, light ---------------------------------------- */
html.event .masthead {
  background: #fff; backdrop-filter: none;
  border-top: 2px solid var(--accent); border-bottom: 1px solid var(--line);
  padding: 0.55rem 1.3rem;
}
.event-mark { display: none; }
html.event .event-mark {
  display: inline-flex; align-items: center; gap: 0.6rem; flex: none; text-decoration: none; color: var(--text);
  font: 500 11px/1 var(--font-mono); letter-spacing: 0.16em; text-transform: uppercase; white-space: nowrap;
}
html.event .event-mark svg { width: 18px; height: 18px; flex: none; }
html.event .event-mark .event-mark-page { color: var(--dimmer); padding-left: 0.6rem; border-left: 1px solid var(--line-2); }
html.event .masthead > .mark { display: none; }
/* developer readouts: the record counts, the "live" pulse, the colophon. The hint line stays, in plain words
   (app.js), and fades after seven seconds; a bad ?view= is said there too (core.js) */
html.event .readout, html.event .colophon { display: none; }
/* the hint at the bottom right, never wider than the room the legend (left, at most 44vw) leaves */
html.event .hint { letter-spacing: 0.08em; color: var(--dim); left: auto; right: 1rem; transform: none; max-width: calc(56vw - 3rem); text-align: right; }
@media (max-width: 760px) { html.event .hint { left: 1rem; right: 1rem; max-width: none; text-align: center; } }
/* "Select" (making a bundle by hand) is not a workshop step (Jonathan, 6 October); "MIRA" (the download) stays */
html.event #select-mode { display: none; }
/* the archive is off at the event: no "cold-stored" in the legend */
html.event #legend .chip.seal { display: none; }

/* the lens switch, the toggles and the find box: white, the royal for the active one */
html.event .lens-switch { background: #fff; border-radius: 0; }
html.event .lens-switch button { font-family: var(--font-mono); }
html.event .lens-switch button.active { background: var(--accent-soft); color: var(--accent); }
html.event .collapse-toggle { background: #fff; border-radius: 0; }
html.event .find input, html.event .auth-form input { background: #fff; border-radius: 0; font-family: "Geist", system-ui, sans-serif; font-size: 0.8rem; }
html.event .find input:focus, html.event .auth-form input:focus { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
html.event .auth-btn { background: var(--accent); border-color: var(--accent); color: #fff; border-radius: 0; font-family: var(--font-mono); }
html.event .auth-btn:hover { background: #131f66; border-color: #131f66; }
html.event .auth-btn.signout { background: #fff; color: var(--dim); border-color: var(--line-2); }
html.event .auth-btn.signout:hover { color: var(--bad); border-color: var(--bad); background: #fff; }
html.event .compose-new { background: #fff; border-color: var(--line-2); border-radius: 0; color: var(--accent); }
html.event .compose-new:hover { background: var(--accent-soft); border-color: var(--accent); }
html.event .compose-new.checkin-btn { background: var(--accent); border-color: var(--accent); color: #fff; }
html.event .compose-new.checkin-btn:hover { background: #131f66; }
html.event .insp-action.publish:hover { background: var(--accent-soft); }

/* ---- panels over the canvas: white, a hairline, a soft shadow ------------------------- */
html.event .inspector, html.event .checkin-pop { background: #fff; border-color: var(--line); border-radius: 0; }
html.event .legend { background: rgba(255, 255, 255, 0.94); border-color: var(--line); border-radius: 0; }
html.event .picker, html.event .find-panel { background: rgba(255, 255, 255, 0.97); border-color: var(--line); border-radius: 0; }
html.event .compose-banner, html.event .select-bar { background: rgba(255, 255, 255, 0.97); border-color: var(--line); }
html.event .reader, html.event .opportunities, html.event .catalysts, html.event .domains,
html.event .composer, html.event .importer { background: #fff; }
html.event .reader-bar, html.event .opp-bar, html.event .composer-bar { background: rgba(255, 255, 255, 0.96); }
html.event .chip[data-box="bundle"] i { background: #fff; }
html.event .chip[data-box="narrative"] i { background: #fffaf0; }
/* text core.css sets in a fixed light grey for the dark theme */
html.event .prose, html.event .prose h3, html.event .opp-intro, html.event .imp-status, html.event .composer-prose,
html.event .prose strong, html.event .opp-intro b, html.event .imp-summary b, html.event .stg-counts b, html.event .imp-text { color: var(--text); }
html.event .imp-end, html.event .stg-edge-main, html.event .stg-end { color: var(--dim); }
html.event .claim-assigned { color: var(--ok); }
/* the room's "edited" (its pill, "your review: edited", the Edit button's hover): room.css borrows --versionof, which is
   the link's grey here; "edited" keeps a violet of its own, apart from "not reviewed yet" */
html.event .room-pill.edited, html.event .room-mine b.edited { color: #6a4fc0; }
html.event .room-btn.edited:hover { color: #6a4fc0; border-color: #6a4fc0; }
html.event .imp-node { border-bottom-color: var(--line); }
html.event .prose figure img { background: #fff; }

/* the room's check-in and review buttons: the royal, not the dark theme's green wash */
html.event .checkin-actions button { background: var(--accent); border-color: var(--accent); color: #fff; border-radius: 0; }
html.event .checkin-actions button.quiet { background: #fff; border-color: var(--line-2); color: var(--dim); }
html.event .fp-acts button, html.event .fp-acts a { background: #fff; border-radius: 0; }
html.event .loader { background: var(--ink); }

/* a node's panel: the production site's standing tally ("curation lens", "AppView default lens") is not the
   room's; the room shows its own review status and "made by" above it (room plan §2) */
html.event .inspector .field:has(> .standing-box) { display: none; }

/* the intro popup and its tip (app.js, the site setting `intro`): square corners, white on the royal, the mono
   family for the buttons, as the sign-in button */
html.event dialog.intro, html.event .intro-tip, html.event .intro-tip button { border-radius: 0; }
html.event dialog.intro { background: #fff; }
html.event .intro h2 { font-family: "Geist", system-ui, sans-serif; }
html.event .intro-go { border-radius: 0; color: #fff; font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; }
html.event .intro-tip { color: #fff; }
