
/* Symbolon Data. See brand/brand-guide.html for what each colour and typeface is for.
   Aegean and bronze are the two halves of the token: record A and record B, buyer and target. */
:root {
  color-scheme: light;
  --bg: #F4F3EF; --surface: #FFFFFF; --surface-2: #ECEAE4; --line: #DDD9CF;
  --text: #10212B; --text-2: #42525C; --text-3: #5F6E77;
  --accent: #0F5E73; --accent-ink: #0B4A5B; --accent-soft: #E1EEF1; --track: #C9DEE4; --on-accent: #FFFFFF;
  --bronze: #9A6426; --bronze-ink: #7A4E1C; --bronze-soft: #F6ECDC; --on-bronze: #FFFFFF;
  --good: #2B7446; --good-soft: #E3F1E7; --bad: #AD3F29; --bad-soft: #FAE8E3;
  --warn-ink: #7A5200; --warn-soft: #FBF0D2;
  --shadow: 0 1px 2px rgba(16, 33, 43, .05), 0 6px 20px -12px rgba(16, 33, 43, .18);
  --radius: 12px;
  --serif: "Cormorant Garamond", "Literata", Georgia, "Times New Roman", serif;
  --sans: "Hanken Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #0B161D; --surface: #12222C; --surface-2: #1A2F3B; --line: #28414F;
    --text: #EEF1EF; --text-2: #B7C4CA; --text-3: #8A9CA5;
    --accent: #4FB0C9; --accent-ink: #8FD0E2; --accent-soft: #123543; --track: #174657; --on-accent: #06222B;
    --bronze: #D6A265; --bronze-ink: #E6BD8B; --bronze-soft: #3A2B17; --on-bronze: #2A1B08;
    --good: #5CC283; --good-soft: #12301F; --bad: #EC8A73; --bad-soft: #3A1C15;
    --warn-ink: #F0C05A; --warn-soft: #33290F;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3);
  }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
header { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.bar { max-width: 1180px; margin: 0 auto; padding: 0 20px; display: flex; align-items: center; gap: 8px 28px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; padding: 12px 0; cursor: default; }
.wordmark { font: 700 25px/1 var(--serif); letter-spacing: -0.005em; }
.wordmark .wm-data { font: 500 11px/1 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-3); margin-left: 8px; }
/* The mark: one token, two halves. They close when you hover, and each time two records are linked. */
.logo { display: block; flex: none; overflow: visible; }
.logo path { transition: transform .38s cubic-bezier(.2, .9, .25, 1.15); }
.logo .half-a { fill: var(--accent); }
.logo .half-b { fill: var(--bronze); }
.brand:hover .logo .half-a, .logo.join .half-a { transform: translateX(2.3px); }
.brand:hover .logo .half-b, .logo.join .half-b { transform: translateX(-2.3px); }
.here { margin-left: auto; display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--text-2); padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; white-space: nowrap; }
.here::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--good); }
nav { display: flex; gap: 2px; flex-wrap: wrap; }
nav button { background: none; border: 0; border-bottom: 2px solid transparent; color: var(--text-2); font: inherit; padding: 16px 12px 14px; cursor: pointer; }
nav button:hover { color: var(--text); }
nav button[aria-selected="true"] { color: var(--text); border-bottom-color: var(--accent); font-weight: 600; }
.badge { background: var(--bronze); color: var(--on-bronze); border-radius: 999px; font-size: 12px; font-weight: 600; padding: 1px 7px; margin-left: 6px; font-variant-numeric: tabular-nums; }
main { max-width: 1180px; margin: 0 auto; padding: 30px 20px 60px; }
h1 { font: 600 40px/1.08 var(--serif); margin: 0 0 8px; letter-spacing: -0.01em; }
h2 { font: 700 23px/1.2 var(--serif); margin: 0 0 12px; }
.lede { color: var(--text-2); margin: 0 0 24px; max-width: 720px; font-size: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 16px; box-shadow: var(--shadow); }
.grid { display: grid; gap: 16px; }
.tiles { grid-template-columns: repeat(6, 1fr); margin-bottom: 16px; }
@media (max-width: 1100px) { .tiles { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
.two { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); }
.tile .label { color: var(--text-2); font-size: 12px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; }
.tile .value { font: 700 36px/1.15 var(--serif); letter-spacing: -0.01em; font-variant-numeric: lining-nums tabular-nums; margin: 2px 0; }
.tile .note { color: var(--text-3); font-size: 13px; }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-size: 11.5px; font-weight: 600; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.06em; padding: 6px 10px; border-bottom: 1px solid var(--line); }
td { padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.scroll { overflow-x: auto; }
.muted { color: var(--text-3); }
.small { font-size: 13px; }
code, .mono { font: 12.5px var(--mono); }
.chip { display: inline-block; background: var(--surface-2); border: 1px solid var(--line); border-radius: 6px; padding: 1px 7px; font-size: 12px; margin: 0 4px 2px 0; white-space: nowrap; }
.chip.a::before, .chip.b::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 6px; background: var(--accent); vertical-align: 1px; }
.chip.b::before { background: var(--bronze); }
.tag { display: inline-block; border-radius: 6px; padding: 1px 8px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.tag.good { background: var(--good-soft); color: var(--good); }
.tag.bad { background: var(--bad-soft); color: var(--bad); }
.tag.warn { background: var(--warn-soft); color: var(--warn-ink); }
.tag.info { background: var(--accent-soft); color: var(--accent-ink); }
button.btn, a.btn { font: inherit; font-weight: 600; border-radius: 9px; border: 1px solid var(--line); background: var(--surface); color: var(--text); padding: 8px 14px; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; transition: background .12s, border-color .12s, transform .06s; }
button.btn:hover, a.btn:hover { background: var(--surface-2); border-color: var(--text-3); }
button.btn:active { transform: translateY(1px); }
button.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
button.btn.primary:hover { background: var(--accent-ink); border-color: var(--accent-ink); }
@media (prefers-color-scheme: dark) { button.btn.primary:hover { background: var(--accent-ink); border-color: var(--accent-ink); } }
button.btn.sm { padding: 3px 10px; font-size: 13px; font-weight: 500; }
button.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn svg { flex: none; }
kbd { font: 11px var(--mono); border: 1px solid currentColor; border-radius: 4px; padding: 0 4px; opacity: 0.65; }
select, input[type="search"], input[type="text"], input[type="password"] { font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; max-width: 100%; }
input[type="search"] { width: 330px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.spread { justify-content: space-between; }
/* bar rows: one series, values printed, so no legend is needed */
.bars { display: grid; grid-template-columns: max-content 1fr max-content; gap: 8px 12px; align-items: center; }
.bars .name { color: var(--text-2); font-size: 13px; }
.bars .trackless { height: 14px; }
.bars .fill { height: 14px; background: var(--accent); border-radius: 0 4px 4px 0; min-width: 2px; }
.bars .fill.b { background: var(--bronze); }
.bars .fill.both { background: linear-gradient(100deg, var(--accent) 0 calc(50% - 1.5px), var(--surface) calc(50% - 1.5px) calc(50% + 1.5px), var(--bronze) calc(50% + 1.5px) 100%); }
.bars .val { font-variant-numeric: tabular-nums; font-size: 13px; font-weight: 600; text-align: right; }
.meter { height: 8px; background: var(--track); border-radius: 999px; overflow: hidden; }
.meter > div { height: 100%; background: var(--accent); border-radius: 999px; }
/* review: record A is the Aegean half, record B the bronze half; the seam between them shows where they fit */
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.filters button { font: inherit; font-size: 13px; background: var(--surface); color: var(--text-2); border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; cursor: pointer; }
.filters button[aria-pressed="true"] { background: var(--accent-soft); color: var(--accent-ink); border-color: var(--accent); font-weight: 600; }
.compare th.side { text-transform: none; letter-spacing: 0; font-size: 14px; color: var(--text); width: 40%; border-bottom-width: 3px; }
.compare th.side.a { border-bottom-color: var(--accent); }
.compare th.side.b { border-bottom-color: var(--bronze); }
.compare th.side svg { vertical-align: -3px; margin-right: 6px; }
.compare th.side .mono { display: inline-block; max-width: 100%; overflow-wrap: anywhere; }      /* a long record ID moves to its own line whole */
.nw { white-space: nowrap; }
.compare td.field { color: var(--text-2); font-size: 13px; white-space: nowrap; width: 16%; }
.compare td.seam, .compare th.seam { width: 34px; padding: 6px 0; text-align: center; vertical-align: middle; }
.compare td.seam svg { display: block; margin: 0 auto; }
.compare tr.differ td.val { background: var(--bad-soft); }
.compare tr.agree td.val { background: var(--good-soft); }
.seam .fit { stroke: var(--good); } .seam .gap { stroke: var(--bad); } .seam .none { stroke: var(--line); }
.evidence { list-style: none; margin: 0; padding: 0; }
.evidence li { display: flex; gap: 10px; align-items: baseline; padding: 5px 0; }
.evidence li > span:last-child { min-width: 0; overflow-wrap: anywhere; }
.evidence .tag { min-width: 128px; text-align: center; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.ai { border-left: 3px solid var(--accent); background: var(--accent-soft); padding: 10px 14px; border-radius: 0 8px 8px 0; margin-top: 14px; }
.toast { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: 10px; display: none; gap: 14px; align-items: center; z-index: 20; box-shadow: 0 6px 24px rgba(0,0,0,.25); max-width: calc(100vw - 32px); }
.toast button { background: none; border: 0; color: inherit; font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; }
tr.click { cursor: pointer; }
tr.click:hover td { background: var(--surface-2); }
details summary { cursor: pointer; color: var(--text-2); }
.empty { text-align: center; padding: 44px 10px; color: var(--text-2); }
.opt { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }
td.file { overflow-wrap: anywhere; min-width: 120px; }      /* a long file name wraps instead of pushing the row's buttons out of the card */
.opt:last-child { border-bottom: 0; }
/* the control on the right keeps its own width; the words on the left are what wrap */
.opt > .btn, .opt > .tag { flex: none; white-space: nowrap; }
.opt > div:first-child { min-width: 0; overflow-wrap: anywhere; }
/* a connection: the explanation on the left, its fields and button on the right; below it when there is no room */
.opt.connect { flex-wrap: wrap; padding: 12px 0; }
.opt.connect > div { flex: 1 1 340px; min-width: 0; }
.opt.connect > form, .opt.connect > button { flex: 0 1 auto; }
.opt.connect input { flex: 1 1 230px; width: 230px; min-width: 0; max-width: 100%; }
.opt.connect .btn { white-space: nowrap; }
.drop { border-style: dashed; border-width: 2px; text-align: center; padding: 26px 18px; box-shadow: none; }
.drop.over { border-color: var(--accent); background: var(--accent-soft); }
footer { max-width: 1180px; margin: 0 auto; padding: 0 20px 40px; color: var(--text-3); font-size: 12.5px; display: flex; gap: 6px 18px; flex-wrap: wrap; align-items: baseline; }
footer .origin { font: italic 500 16px var(--serif); color: var(--text-2); }
@media (max-width: 640px) { .compare td.field { white-space: normal; } input[type="search"] { width: 100%; } .here { display: none; } h1 { font-size: 25px; } }
@media (prefers-reduced-motion: reduce) { .logo path, button.btn { transition: none; } }

/* ---- the strip that says this is the demo ---- */
.demo-bar { background: var(--ink, #10212B); color: #EEF1EF; font-size: 14px; }
.demo-bar > div { max-width: 1320px; margin: 0 auto; padding: 9px 22px; display: flex; flex-wrap: wrap; gap: 6px 22px; align-items: center; justify-content: space-between; }
.demo-bar p { margin: 0; line-height: 1.45; } .demo-bar strong { color: #D6A265; }
.demo-bar nav { display: flex; gap: 8px 18px; flex-wrap: wrap; align-items: center; }
.demo-bar a { color: #EEF1EF; text-underline-offset: 3px; white-space: nowrap; }
.demo-bar a.go { background: #EEF1EF; color: #10212B; text-decoration: none; font-weight: 600; padding: 6px 12px; border-radius: 8px; }
@media (max-width: 700px) { .demo-bar .more { display: none; } .demo-bar > div { padding: 8px 14px; } body { overflow-x: hidden; } }
