/* Agent Emailing: the readable palette shared with the Common Agent
   standards sites (approved 2026-10-11). Light by default, dark on the toggle.
   Every text colour clears 4.5:1 on the ground it sits on; none is faded. */

/* ── Light (the default) ── */
:root{
  /* grounds */
  --bg:#FFFFFF;          /* page and content */
  --surface:#F6F4EF;     /* left menu, cards, diagram side panels (warm off-white) */
  --line:#DCD8CF;        /* borders only, never text */

  /* text */
  --text:#14211F;        /* headings, body, menu headings     16.57 on bg, 15.08 on surface */
  --text-2:#3B4A48;      /* secondary body, menu items          9.30 on bg,  8.46 on surface */
  --text-3:#4F5F5C;      /* captions, labels, small print       6.72 on bg,  6.12 on surface */

  /* the teal accent: links, current page, kickers */
  --accent:#0A5E49;      /*                                     7.75 on bg,  7.05 on surface */
  --accent-tint:#E3F1EB; /* current-page row; --text on it     14.24, --accent on it 6.66 */

  /* diagram and standard colours (text, border, tint) */
  --amber:#8A4B00;       --amber-tint:#FDF1E0;   /* 6.80 on bg, 6.10 on its tint */
  --blue:#1D5BC2;        --blue-tint:#EAF1FD;    /* 6.31 on bg, 5.56 on its tint */
  --violet:#6340C4;      --violet-tint:#F1ECFC;  /* 6.86 on bg, 5.93 on its tint */
  --mint:#0A5E49;        --mint-tint:#E3F1EB;    /* 7.75 on bg, 6.66 on its tint */
  --weak:#A3261B;        /* the "weak or missing" rating: 7.39 on bg, 6.73 on surface */

  --disp:'Space Grotesk', sans-serif;
  --body:'IBM Plex Sans', system-ui, sans-serif;
  --wire:'IBM Plex Mono', ui-monospace, monospace;
}

/* ── Dark (only when the reader turns it on) ── */
:root[data-theme="dark"]{
  --bg:#10191C;
  --surface:#16232A;
  --line:#2A3B40;

  --text:#E9F0EE;        /* 15.42 on bg, 13.89 on surface */
  --text-2:#C3D0CD;      /* 11.23 on bg, 10.11 on surface */
  --text-3:#A7B6B2;      /*  8.47 on bg,  7.63 on surface */

  --accent:#4FD9AB;      /* 10.06 on bg,  9.06 on surface */
  --accent-tint:#15302A; /* --text on it 12.21, --accent on it 7.96 */

  --amber:#F2A93B;       --amber-tint:#2A2418;   /* 8.93 on bg, 7.71 on its tint */
  --blue:#8AB8FF;        --blue-tint:#172636;    /* 8.81 on bg, 7.59 on its tint */
  --violet:#C2AEFF;      --violet-tint:#221F35;  /* 9.16 on bg, 8.20 on its tint */
  --mint:#4FD9AB;        --mint-tint:#15302A;    /* 10.06 on bg, 7.96 on its tint */
  --weak:#FF8A7A;        /* 7.8 on bg */
}

*{ box-sizing:border-box; }
html,body{ margin:0; }
body{ background:var(--bg); color:var(--text); font-family:var(--body);
  font-size:17px; line-height:1.65; -webkit-font-smoothing:antialiased; }
a{ color:var(--accent); }
a:focus-visible, button:focus-visible, summary:focus-visible{ outline:2px solid var(--accent); outline-offset:2px; border-radius:4px; }
h1,h2,h3{ font-family:var(--disp); font-weight:700; letter-spacing:-.015em; line-height:1.15; color:var(--text); }

/* ── shell ── */
.layout{ display:grid; grid-template-columns:280px 1fr; min-height:100vh; }
.rail{ background:var(--surface); border-right:1px solid var(--line);
  position:sticky; top:0; align-self:start; height:100vh; overflow-y:auto;
  scrollbar-width:thin; padding:22px 18px 28px; }
.railhead{ display:flex; align-items:center; gap:10px; margin:0 0 22px; }
.brand{ display:flex; align-items:center; gap:9px; color:var(--text); text-decoration:none; }
.brand .mark{ flex:none; }
.brand .wm{ font-family:var(--disp); font-weight:500; font-size:1.12rem; letter-spacing:-.01em; }
.brand .wm b{ font-weight:700; }
.iconbtn{ margin-left:auto; display:inline-flex; align-items:center; gap:6px;
  font-family:var(--body); font-size:.85rem; font-weight:600; color:var(--text);
  background:var(--bg); border:1px solid var(--line); border-radius:8px; padding:6px 10px; cursor:pointer; }
.iconbtn:hover{ border-color:var(--text-3); }
.iconbtn svg{ width:16px; height:16px; }
.iconbtn .to-light{ display:none; }
:root[data-theme="dark"] .iconbtn .to-dark{ display:none; }
:root[data-theme="dark"] .iconbtn .to-light{ display:inline; }
.menubtn{ display:none; margin-left:0; }

/* ── left menu ── */
.rail nav{ display:block; }
.sec{ margin:0 0 6px; }
.sec > summary{ list-style:none; cursor:pointer; display:flex; align-items:center; gap:8px;
  font-family:var(--body); font-size:.9rem; font-weight:700; letter-spacing:.01em;
  color:var(--text); padding:8px 10px; border-radius:8px; }
.sec > summary::-webkit-details-marker{ display:none; }
.sec > summary:hover{ background:var(--bg); }
.sec > summary .chev{ margin-left:auto; width:14px; height:14px; color:var(--text-3);
  transition:transform .15s ease; }
.sec[open] > summary .chev{ transform:rotate(90deg); }
.sec .items{ padding:2px 0 8px; }
.rail nav a{ display:flex; align-items:center; gap:9px; font-family:var(--body); font-size:.9375rem; line-height:1.35;
  color:var(--text-2); text-decoration:none; padding:7px 10px 7px 14px; margin:1px 0;
  border-radius:8px; border-left:3px solid transparent; }
.rail nav a:hover{ color:var(--text); background:var(--bg); }
.rail nav a.on{ color:var(--text); font-weight:600; background:var(--accent-tint);
  border-left-color:var(--accent); }
.rail .ext{ font-size:.8em; margin-left:3px; }
.rail .foot{ margin-top:22px; padding:16px 10px 0; border-top:1px solid var(--line);
  font-size:.85rem; color:var(--text-3); line-height:1.5; }
.rail .foot a{ color:var(--accent); font-weight:600; }

.main{ min-width:0; }
.wrap{ max-width:1000px; margin:0 auto; padding:0 48px; }

/* ── shared type ── */
.kicker{ font-family:var(--body); font-size:.82rem; font-weight:700; letter-spacing:.08em;
  text-transform:uppercase; color:var(--accent); margin:0 0 12px; }
section.band{ padding:56px 0; border-bottom:1px solid var(--line); }
section.band h2{ font-size:1.9rem; margin:0 0 14px; }
section.band > .wrap > p{ color:var(--text-2); max-width:66ch; }
b{ color:var(--text); font-weight:600; }

/* ── home ── */
.hero{ padding-top:64px; padding-bottom:32px; }
.eyebrow{ display:block; font-size:.82rem; font-weight:700; letter-spacing:.08em;
  text-transform:uppercase; color:var(--accent); margin-bottom:18px; }
.hero h1{ font-size:clamp(2.2rem,4.6vw,3rem); margin:0 0 14px; }
.lede{ color:var(--text-2); font-size:1.15rem; max-width:56ch; margin:0; }
.quick{ margin:22px 0 4px; background:var(--surface); border:1px solid var(--line); border-radius:12px; overflow:hidden; }
.quick .bar{ padding:10px 16px; border-bottom:1px solid var(--line); font-size:.85rem;
  font-weight:600; color:var(--text-2); }
.quick pre{ margin:0; padding:16px 18px; font-family:var(--wire); font-size:.9rem; line-height:1.7;
  color:var(--text); background:var(--bg); overflow-x:auto; }
.quick .note{ padding:12px 18px; border-top:1px solid var(--line); font-size:.95rem; color:var(--text-2); }
.doors{ display:grid; grid-template-columns:repeat(2,1fr); gap:14px; margin:28px 0 6px; }
.doors a.door, .doors div.door{ --c:var(--accent); display:block; text-decoration:none; border:1px solid var(--line);
  border-left:4px solid var(--c); border-radius:12px; background:var(--bg); padding:18px 20px; }
.doors a.door:hover{ border-color:var(--text-3); border-left-color:var(--c); }
.doors .door h3{ font-size:1.12rem; margin:0 0 6px; }
.doors .door p{ margin:0 0 8px; font-size:.97rem; color:var(--text-2); }
.doors .door p.go{ margin:0; font-size:.88rem; font-weight:600; color:var(--c); }
.doors a.door.c-amber{ --c:var(--amber); } .doors a.door.c-mint{ --c:var(--mint); }
.doors a.door.c-blue{ --c:var(--blue); } .doors a.door.c-violet{ --c:var(--violet); }
.after{ color:var(--text-2); font-size:.97rem; margin:28px 0 0; max-width:64ch; }
footer.sitefoot{ padding:18px 0 60px; }
footer.sitefoot .wrap{ font-size:.9rem; color:var(--text-3); display:flex; gap:16px; flex-wrap:wrap; }


/* ── agentmessaging.ai: the brand mark, buttons and the pieces its pages use ── */
.brand .mark{ color:var(--accent); }
.brand .wm{ white-space:nowrap; font-size:1rem; }
.cta{ display:flex; gap:12px; flex-wrap:wrap; margin-top:24px; }
.btn{ font-family:var(--body); font-size:.95rem; font-weight:600; text-decoration:none;
  padding:11px 18px; border-radius:9px; border:1px solid var(--line); display:inline-flex; align-items:center; gap:8px; }
.btn-primary{ background:var(--accent); border-color:var(--accent); color:var(--bg); }
.btn-primary:hover{ text-decoration:underline; }
.btn-ghost{ background:var(--bg); color:var(--text); }
.btn-ghost:hover{ border-color:var(--text-3); }
.version{ font-size:.92rem; color:var(--text-3); margin:16px 0 0; }
.mono{ font-family:var(--wire); }
code.inline, .band p code, .band li code{ font-family:var(--wire); font-size:.88em; color:var(--accent);
  background:var(--accent-tint); border-radius:5px; padding:1px 5px; overflow-wrap:anywhere; }

/* the envelope figure on the home page, built on .quick */
.quick pre .k{ color:var(--text-3); }
.quick pre .v{ color:var(--amber); }
.quick pre .addr{ color:var(--blue); }
.quick pre .ok{ color:var(--accent); font-weight:600; }

/* the three ways agents talk */
.ways{ display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; margin:26px 0 20px; }
.way{ display:block; text-decoration:none; background:var(--bg); border:1px solid var(--line);
  border-top:4px solid var(--c); border-radius:14px; padding:18px 20px;
  transition:border-color .15s ease, transform .15s ease, box-shadow .15s ease; }
.way:hover{ border-color:var(--c); transform:translateY(-2px); box-shadow:0 14px 30px -24px var(--text-3); }
.way h3{ font-size:1.15rem; margin:14px 0 6px; }
.way p{ margin:0; font-size:.96rem; line-height:1.55; color:var(--text-2); }
.way p.types{ margin-top:12px; display:flex; gap:8px; flex-wrap:wrap; }
.way p.types code, .band p code, .card p code{ font-family:var(--wire); font-size:.85em; color:var(--accent);
  background:var(--accent-tint); border-radius:5px; padding:1px 6px; overflow-wrap:anywhere; }

/* cards in a band */
.cards{ display:grid; gap:14px; margin:24px 0 8px; }
.cards.two{ grid-template-columns:repeat(2,minmax(0,1fr)); }
.cards.three{ grid-template-columns:repeat(3,minmax(0,1fr)); }
.card{ background:var(--bg); border:1px solid var(--line); border-radius:14px; padding:18px 20px; }
.card h3{ font-size:1.1rem; margin:12px 0 6px; }
.card p{ margin:0; font-size:.95rem; line-height:1.55; color:var(--text-2); }
section.band > .wrap > p.aside{ font-size:.97rem; color:var(--text-2); border-left:3px solid var(--accent);
  padding:2px 0 2px 14px; margin-top:22px; }

/* accepted, queued, silence */
ul.signals{ list-style:none; padding:0; margin:18px 0 0; display:grid; gap:10px; max-width:76ch; }
ul.signals li{ display:grid; grid-template-columns:7.5rem minmax(0,1fr); gap:14px; align-items:baseline;
  background:var(--bg); border:1px solid var(--line); border-radius:12px; padding:12px 16px; color:var(--text-2); font-size:.97rem; }
ul.signals .sig{ font-family:var(--wire); font-weight:600; font-size:.9rem; color:var(--c);
  background:var(--ct); border-radius:6px; padding:2px 8px; justify-self:start; }

/* seconds, days, weeks */
ul.spans{ list-style:none; padding:0; margin:22px 0 0; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:0;
  border:1px solid var(--line); border-radius:14px; overflow:hidden; background:var(--bg); }
ul.spans li{ padding:16px 18px; border-left:1px solid var(--line); color:var(--text-2); font-size:.95rem; line-height:1.5; }
ul.spans li:first-child{ border-left:0; }
ul.spans b{ display:block; font-family:var(--disp); font-size:1.35rem; color:var(--accent); margin-bottom:4px; }

/* what a binding provides */
ul.reqs{ list-style:none; padding:0; margin:18px 0 6px; display:flex; flex-wrap:wrap; gap:8px; max-width:880px; }
ul.reqs li{ background:var(--bg); border:1px solid var(--line); border-radius:999px; padding:6px 14px; font-size:.92rem; color:var(--text); }

/* the diagrams: the publish and subscribe fan-out, the heartbeat timeline */
.diagram{ margin:24px 0 8px; background:var(--bg); border:1px solid var(--line); border-radius:16px; padding:16px 18px 14px; }
.diagram svg{ display:block; width:100%; height:auto; }
.diagram figcaption{ margin-top:8px; font-size:.92rem; color:var(--text-2); }
.diagram .wire{ fill:none; stroke:var(--text-3); stroke-width:1.6; stroke-dasharray:3 6; stroke-linecap:round; }
.diagram .wire.on{ stroke:var(--blue); stroke-dasharray:none; stroke-width:2; }
.diagram .node{ fill:var(--surface); stroke:var(--line); stroke-width:2; }
.diagram .nico{ fill:none; stroke:var(--text-2); stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
.diagram .lbl{ fill:var(--text); font-family:var(--body); font-size:14px; font-weight:600; }
.diagram .cap{ fill:var(--text-2); font-family:var(--body); font-size:13px; }
.diagram .mono-lbl{ fill:var(--text); font-family:var(--wire); font-size:13px; font-weight:500; }
.diagram .subj{ fill:var(--blue-tint); stroke:var(--blue); stroke-width:1.6; }
.diagram .sub{ stroke-width:1.6; }
.diagram .sub.on{ fill:var(--blue-tint); stroke:var(--blue); }
.diagram .sub.off{ fill:var(--surface); stroke:var(--line); stroke-dasharray:4 4; }
.diagram .pkt{ fill:var(--blue); stroke:var(--bg); stroke-width:2; opacity:0; }
.diagram .p0{ transform:translate(450px,40px); }
.diagram .p1{ transform:translate(450px,97px); }
.diagram .p2{ transform:translate(450px,154px); }
.diagram .axis{ stroke:var(--line); stroke-width:2; }
.diagram .hb circle{ fill:var(--accent); stroke:var(--bg); stroke-width:3; }
.diagram .hb.miss circle{ fill:var(--bg); stroke:var(--text-3); stroke-width:1.6; stroke-dasharray:3 3; }
.diagram .st{ stroke-width:1.4; }
.diagram .st.on, .diagram .st.on2{ fill:var(--mint-tint); stroke:var(--mint); }
.diagram .st.off{ fill:var(--surface); stroke:var(--text-3); }
.diagram .st-t{ fill:var(--text); font-family:var(--wire); font-size:13px; font-weight:600; }
.diagram .now{ stroke:var(--amber); stroke-width:2.4; stroke-linecap:round; transform:translateX(30px); }
@media (prefers-reduced-motion:no-preference){
  .diagram .p0{ animation:fan0 6s ease-in-out infinite; }
  .diagram .p1{ animation:fan1 6s ease-in-out infinite; }
  .diagram .p2{ animation:fan2 6s ease-in-out infinite; }
  .diagram .sub.on{ animation:sub-hit 6s ease-out infinite; }
  .diagram .now{ animation:sweep 9s linear infinite; }
}
@keyframes fan0{ 0%{ transform:translate(96px,125px); opacity:0; } 6%{ opacity:1; } 45%{ transform:translate(402px,125px); } 72%{ transform:translate(450px,40px); opacity:1; } 82%, 100%{ transform:translate(450px,40px); opacity:0; } }
@keyframes fan1{ 0%{ transform:translate(96px,125px); opacity:0; } 6%{ opacity:1; } 45%{ transform:translate(402px,125px); } 72%{ transform:translate(450px,97px); opacity:1; } 82%, 100%{ transform:translate(450px,97px); opacity:0; } }
@keyframes fan2{ 0%{ transform:translate(96px,125px); opacity:0; } 6%{ opacity:1; } 45%{ transform:translate(402px,125px); } 72%{ transform:translate(450px,154px); opacity:1; } 82%, 100%{ transform:translate(450px,154px); opacity:0; } }
@keyframes sub-hit{ 0%, 70%{ stroke-width:1.6; } 76%{ stroke-width:3.2; } 90%, 100%{ stroke-width:1.6; } }
@keyframes sweep{ from{ transform:translateX(30px); } to{ transform:translateX(620px); } }

/* the binding table on the NATS page */
table.map{ border-collapse:collapse; margin:22px 0 0; width:100%; max-width:920px;
  border:1px solid var(--line); border-radius:10px; display:block; overflow-x:auto; background:var(--bg); }
table.map th{ font-size:.82rem; font-weight:700; letter-spacing:.06em; text-transform:uppercase;
  color:var(--text-3); text-align:left; padding:10px 14px; background:var(--surface); border-bottom:1px solid var(--line); }
table.map td{ padding:10px 14px; border-bottom:1px solid var(--line); font-size:.95rem; color:var(--text-2); vertical-align:top; }
table.map tr:last-child td{ border-bottom:0; }
table.map td:first-child{ color:var(--text); font-weight:600; min-width:11rem; }
table.map td code{ font-family:var(--wire); font-size:.86em; color:var(--accent); background:var(--accent-tint);
  border-radius:5px; padding:1px 5px; overflow-wrap:anywhere; }
table.map td:last-child{ font-family:var(--wire); font-size:.85rem; color:var(--text-3); white-space:nowrap; }

/* lists and code on the conformance page */
ul.plain{ margin:18px 0 0; padding-left:20px; color:var(--text-2); max-width:70ch; }
ul.plain li{ margin:10px 0; }
pre.code{ background:var(--surface); border:1px solid var(--line); border-radius:12px; padding:16px 18px;
  overflow-x:auto; font-family:var(--wire); font-size:.88rem; line-height:1.7; color:var(--text); margin:20px 0; }
pre.code .c{ color:var(--text-3); }
table.tests{ border-collapse:collapse; margin:22px 0 0; width:100%; max-width:880px;
  border:1px solid var(--line); border-radius:10px; display:block; overflow-x:auto; }
table.tests th{ font-size:.82rem; font-weight:700; letter-spacing:.06em; text-transform:uppercase;
  color:var(--text-3); text-align:left; padding:10px 14px; background:var(--surface);
  border-bottom:1px solid var(--line); white-space:nowrap; }
table.tests td{ padding:10px 14px; border-bottom:1px solid var(--line); font-size:.95rem; color:var(--text-2); vertical-align:top; }
table.tests tr:last-child td{ border-bottom:0; }
table.tests td:first-child{ font-family:var(--wire); font-weight:600; color:var(--accent); white-space:nowrap; }
table.tests td:last-child{ font-family:var(--wire); font-size:.88rem; color:var(--text-3); white-space:nowrap; }

/* ── icons ──
   Line icons drawn inline (paths from Lucide, ISC licence), one stroke weight
   everywhere. They take the colour of the text around them. */
.ico{ width:1.15em; height:1.15em; flex:none; fill:none; stroke:currentColor; stroke-width:1.9;
  stroke-linecap:round; stroke-linejoin:round; vertical-align:-.2em; }
.chip{ flex:none; display:inline-grid; place-items:center;
  width:40px; height:40px; border-radius:11px; background:var(--ct, var(--accent-tint)); color:var(--c, var(--accent)); }
.chip .ico{ width:22px; height:22px; }
.c-mint{ --c:var(--mint); --ct:var(--mint-tint); }
.c-blue{ --c:var(--blue); --ct:var(--blue-tint); }
.c-violet{ --c:var(--violet); --ct:var(--violet-tint); }
.c-amber{ --c:var(--amber); --ct:var(--amber-tint); }
.kicker{ display:flex; align-items:center; gap:8px; }
.kicker .ico{ width:17px; height:17px; stroke-width:2.1; }
.btn .ico{ width:17px; height:17px; }

/* the menu's icons, drawn as masks so the generated spec page gets them from
   this stylesheet too */
.rail .sec > summary::before, .rail nav a::before{ content:""; flex:none; width:16px; height:16px;
  background:currentColor; -webkit-mask:var(--i) center/contain no-repeat; mask:var(--i) center/contain no-repeat; }
.rail .sec > summary::before{ background:var(--accent); width:17px; height:17px; }
.rail nav a.on::before{ background:var(--accent); }
.rail nav .sec:nth-of-type(1) > summary{ --i:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='20' height='16' x='2' y='4' rx='2'/%3E%3Cpath d='m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7'/%3E%3C/svg%3E"); }
.rail nav .sec:nth-of-type(2) > summary{ --i:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09z'/%3E%3Cpath d='m12 15-3-3a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.35 22.35 0 0 1-4 2z'/%3E%3Cpath d='M9 12H4s.55-3.03 2-4c1.62-1.08 5 0 5 0'/%3E%3Cpath d='M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5'/%3E%3C/svg%3E"); }
.rail nav a[href$="/run.html"]{ --i:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='m10 8 6 4-6 4z'/%3E%3C/svg%3E"); }
.rail nav a[href$="/run-broker.html"]{ --i:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m16 16 3-8 3 8c-.87.65-1.92 1-3 1s-2.13-.35-3-1Z'/%3E%3Cpath d='m2 16 3-8 3 8c-.87.65-1.92 1-3 1s-2.13-.35-3-1Z'/%3E%3Cpath d='M7 21h10'/%3E%3Cpath d='M12 3v18'/%3E%3Cpath d='M3 7h2c2 0 5-1 7-2 2 1 5 2 7 2h2'/%3E%3C/svg%3E"); }
.rail nav a[href$="/run-agents.html"]{ --i:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z'/%3E%3Ccircle cx='16.5' cy='7.5' r='.5'/%3E%3C/svg%3E"); }
.rail nav a[href$="/run-admin.html"]{ --i:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 17 6-6-6-6'/%3E%3Cpath d='M12 19h8'/%3E%3C/svg%3E"); }
.rail nav a[href$="/run-operate.html"]{ --i:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8'/%3E%3Cpath d='M21 3v5h-5'/%3E%3Cpath d='M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16'/%3E%3Cpath d='M8 16H3v5'/%3E%3C/svg%3E"); }
.rail nav .sec:nth-of-type(3) > summary{ --i:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71'/%3E%3Cpath d='M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71'/%3E%3C/svg%3E"); }
.rail nav .sec:nth-of-type(1) .items > a:first-child{ --i:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8'/%3E%3Cpath d='M3 10a2 2 0 0 1 .709-1.528l7-5.999a2 2 0 0 1 2.582 0l7 5.999A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z'/%3E%3C/svg%3E"); }
.rail nav a[href$="/spec.html"]{ --i:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 7v14'/%3E%3Cpath d='M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z'/%3E%3C/svg%3E"); }
.rail nav a[href$="/conformance.html"]{ --i:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z'/%3E%3Cpath d='m9 12 2 2 4-4'/%3E%3C/svg%3E"); }
.rail nav a[href$="/identity.html"]{ --i:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z'/%3E%3Ccircle cx='16.5' cy='7.5' r='.5' fill='black'/%3E%3C/svg%3E"); }
.rail nav a[href$="/nats.html"]{ --i:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='20' height='8' x='2' y='2' rx='2'/%3E%3Crect width='20' height='8' x='2' y='14' rx='2'/%3E%3Cpath d='M6 6h.01'/%3E%3Cpath d='M6 18h.01'/%3E%3C/svg%3E"); }
.rail nav a[href$="/rabbitmq.html"]{ --i:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='22 12 16 12 14 15 10 15 8 12 2 12'/%3E%3Cpath d='M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z'/%3E%3C/svg%3E"); }
.rail nav a[href$="/bindings.html"]{ --i:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 22v-5'/%3E%3Cpath d='M9 8V2'/%3E%3Cpath d='M15 8V2'/%3E%3Cpath d='M18 8v5a4 4 0 0 1-4 4h-4a4 4 0 0 1-4-4V8Z'/%3E%3C/svg%3E"); }
.rail nav a[href*="github.com"]{ --i:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='6' x2='6' y1='3' y2='15'/%3E%3Ccircle cx='18' cy='6' r='3'/%3E%3Ccircle cx='6' cy='18' r='3'/%3E%3Cpath d='M18 9a9 9 0 0 1-9 9'/%3E%3C/svg%3E"); }
/* the Common Agent Standards section: the family page, then each other standard */
.rail nav .sec.suite a{ --i:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7z'/%3E%3Cpath d='M14 2v5h6'/%3E%3Cpath d='M9 13h6'/%3E%3Cpath d='M9 17h6'/%3E%3C/svg%3E"); }
.rail nav .sec.suite a[href="https://commonagent.net/"]{ --i:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m12 2 10 5-10 5L2 7z'/%3E%3Cpath d='m2 17 10 5 10-5'/%3E%3Cpath d='m2 12 10 5 10-5'/%3E%3C/svg%3E"); }
.rail nav a[href*="standards.html"]{ --i:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83Z'/%3E%3Cpath d='m22 17.65-9.17 4.16a2 2 0 0 1-1.66 0L2 17.65'/%3E%3Cpath d='m22 12.65-9.17 4.16a2 2 0 0 1-1.66 0L2 12.65'/%3E%3C/svg%3E"); }

/* ── the hero band: a soft wash, a dot grid and a band of the four colours ── */
.herobg{ position:relative; isolation:isolate; overflow:hidden;
  background:radial-gradient(ellipse 70% 90% at 92% 0%, var(--accent-tint), transparent 70%), var(--bg); }
.herobg::before{ content:""; position:absolute; inset:0; z-index:-1; pointer-events:none;
  background-image:radial-gradient(var(--line) 1.2px, transparent 1.4px); background-size:22px 22px;
  -webkit-mask-image:linear-gradient(to left, #000 0%, transparent 65%); mask-image:linear-gradient(to left, #000 0%, transparent 65%); }
.herobg::after{ content:""; position:absolute; left:0; right:0; bottom:0; height:4px;
  background:linear-gradient(90deg, var(--mint) 0 25%, var(--blue) 25% 50%, var(--violet) 50% 75%, var(--amber) 75% 100%); }
.herobg .hero{ padding-bottom:48px; }
.eyebrow{ display:flex; align-items:center; gap:8px; }
.eyebrow .ico{ width:17px; height:17px; stroke-width:2.1; }
.hero-grid{ display:grid; grid-template-columns:minmax(0,1.08fr) minmax(0,.92fr); gap:40px; align-items:center; }

/* the scene: a signed envelope goes to the inbox, waits, then is delivered */
.scene{ margin:0; background:var(--surface); border:1px solid var(--line); border-radius:16px; padding:14px 16px 16px;
  box-shadow:0 1px 0 var(--line), 0 18px 40px -28px var(--text-3); }
.scene svg{ display:block; width:100%; height:auto; }
.scene .st-ring{ fill:var(--bg); stroke:var(--line); stroke-width:2; }
.scene .st-ico{ fill:none; stroke:var(--text-2); stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
.scene .st-lbl{ fill:var(--text-2); font-family:var(--body); font-size:13px; font-weight:600; }
.scene .track{ fill:none; stroke:var(--text-3); stroke-width:1.6; stroke-dasharray:3 6; stroke-linecap:round; }
.scene .inbox-ring{ stroke:var(--accent); }
.scene .dot-off{ fill:var(--text-3); stroke:var(--surface); stroke-width:3; }
.scene .dot-on{ fill:var(--accent); stroke:var(--surface); stroke-width:3; opacity:0; }
.scene .env-body{ fill:var(--bg); stroke:var(--amber); stroke-width:2; }
.scene .env-flap{ fill:none; stroke:var(--amber); stroke-width:2; stroke-linejoin:round; }
.scene .seal{ fill:var(--accent); }
.scene .seal-tick{ fill:none; stroke:var(--bg); stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
.scene .done{ opacity:0; }
.scene .env{ transform:translate(220px,92px); }
.steps{ list-style:none; margin:10px 0 0; padding:0; display:grid; gap:7px; counter-reset:s; }
.steps li{ counter-increment:s; display:flex; gap:10px; align-items:baseline; font-size:.92rem; line-height:1.45; color:var(--text-2); }
.steps li::before{ content:counter(s); flex:none; display:inline-grid; place-items:center; width:20px; height:20px;
  border-radius:50%; background:var(--accent-tint); color:var(--accent); font-size:.75rem; font-weight:700; transform:translateY(-1px); }
@media (prefers-reduced-motion:no-preference){
  .scene .env{ animation:env-go 9s cubic-bezier(.45,0,.3,1) infinite; }
  .scene .seal-g{ animation:seal-pop 9s ease-out infinite; transform-box:fill-box; transform-origin:center; }
  .scene .dot-on{ animation:online 9s linear infinite; }
  .scene .inbox-ring{ animation:inbox-hold 9s ease-in-out infinite; }
  .scene .done{ animation:delivered 9s ease-out infinite; transform-box:fill-box; transform-origin:center; }
  .scene .track{ animation:flow 1.2s linear infinite; }
}
@keyframes env-go{
  0%{ transform:translate(66px,92px) scale(.3); opacity:0; }
  7%{ transform:translate(66px,92px) scale(1); opacity:1; }
  12%{ transform:translate(66px,92px) scale(1); }
  30%, 58%{ transform:translate(220px,92px) scale(1); opacity:1; }
  76%{ transform:translate(374px,92px) scale(1); opacity:1; }
  82%, 100%{ transform:translate(374px,92px) scale(.3); opacity:0; }
}
@keyframes seal-pop{ 0%, 6%{ transform:scale(0); } 11%{ transform:scale(1.25); } 14%, 100%{ transform:scale(1); } }
@keyframes online{ 0%, 56%{ opacity:0; } 60%, 96%{ opacity:1; } 100%{ opacity:0; } }
@keyframes inbox-hold{ 0%, 28%{ stroke:var(--line); } 34%, 54%{ stroke:var(--accent); } 60%, 100%{ stroke:var(--line); } }
@keyframes delivered{ 0%, 78%{ opacity:0; transform:scale(.4); } 84%{ opacity:1; transform:scale(1.15); } 88%, 96%{ opacity:1; transform:scale(1); } 100%{ opacity:0; } }
@keyframes flow{ to{ stroke-dashoffset:-9; } }

/* ── what Agent Messaging adds to NATS ── */
section.band.tinted{ background:var(--surface); }
.pairs{ list-style:none; margin:28px 0 8px; padding:0; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
.pair{ display:grid; grid-template-columns:auto minmax(0,1fr); column-gap:16px; align-content:start;
  background:var(--bg); border:1px solid var(--line); border-radius:14px; padding:18px 20px 18px 18px;
  transition:border-color .15s ease, transform .15s ease, box-shadow .15s ease; }
.pair:hover{ border-color:var(--c, var(--accent));transform:translateY(-2px); box-shadow:0 14px 30px -24px var(--text-3); }
.pair .chip{ grid-row:span 3; }
.pair .was{ margin:0 0 4px; font-size:.86rem; line-height:1.4; color:var(--text-3); display:flex; flex-wrap:wrap; align-items:center; gap:4px 8px; }
.pair .was .tag{ font-family:var(--wire); font-size:.74rem; font-weight:600; letter-spacing:.02em; color:var(--text-3);
  border:1px solid var(--line); background:var(--surface); border-radius:6px; padding:1px 6px; }
.pair h3{ font-size:1.12rem; margin:0 0 6px; }
.pair p.adds{ margin:0; font-size:.95rem; line-height:1.55; color:var(--text-2); }
.closer{ display:flex; gap:14px; align-items:flex-start; margin:24px 0 0; max-width:72ch;
  background:var(--bg); border:1px solid var(--line); border-left:4px solid var(--accent); border-radius:12px; padding:16px 18px; }
.closer p{ margin:0; color:var(--text); font-weight:500; }
.closer .ico{ color:var(--accent); width:22px; height:22px; margin-top:2px; }

/* cards elsewhere pick up the same chips and hover */
.doors a.door{ display:grid; grid-template-columns:auto minmax(0,1fr); column-gap:14px; align-content:start;
  transition:border-color .15s ease, transform .15s ease, box-shadow .15s ease; }
.doors a.door .chip{ grid-row:span 3; }
.doors a.door:hover{ transform:translateY(-2px); box-shadow:0 14px 30px -24px var(--text-3); }
.doors .door p.go{ display:flex; align-items:center; gap:6px; }
.doors .door p.go .ico{ width:15px; height:15px; transition:transform .15s ease; }
.doors a.door:hover p.go .ico{ transform:translateX(3px); }
.quick .bar{ display:flex; align-items:center; gap:8px; }
.quick .bar .ico{ color:var(--accent); }

/* the conformance page's figures */
.stats{ display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; margin:28px 0 0; }
.stat{ display:flex; gap:12px; align-items:center; background:var(--bg); border:1px solid var(--line); border-radius:12px;
  padding:14px 16px; text-decoration:none; transition:border-color .15s ease, transform .15s ease; }
.stat:hover{ border-color:var(--c, var(--accent)); transform:translateY(-2px); }
.stat .txt{ font-size:.9rem; color:var(--text-2); line-height:1.35; }
.stat .txt b{ display:block; font-family:var(--disp); font-size:1.5rem; line-height:1.15; color:var(--text); font-weight:700; }
.doors.three{ grid-template-columns:repeat(3,minmax(0,1fr)); }

/* ── narrow screens ── */
@media (max-width:900px){
  .layout{ grid-template-columns:1fr; }
  .rail{ position:sticky; top:0; z-index:10; height:auto; max-height:100vh; border-right:0;
    border-bottom:1px solid var(--line); padding:12px 16px; }
  .railhead{ margin:0; }
  .menubtn{ display:inline-flex; }
  .rail nav, .rail .foot{ display:none; }
  .rail.open nav{ display:block; margin-top:14px; }
  .rail.open .foot{ display:block; }
  .wrap{ padding-left:16px; padding-right:16px; }
  table.tests td:last-child{ white-space:normal; }
  .doors, .doors.three, .ways, .cards.two, .cards.three, ul.spans{ grid-template-columns:1fr; }
  ul.spans li{ border-left:0; border-top:1px solid var(--line); }
  ul.spans li:first-child{ border-top:0; }
  ul.signals li{ grid-template-columns:1fr; gap:6px; }
  table.map td:last-child{ white-space:normal; }
  .hero{ padding-top:40px; }
}
@media (max-width:1180px){
  .hero-grid{ grid-template-columns:1fr; gap:28px; }
  .hero-grid .scene{ max-width:560px; }
}
@media (max-width:700px){
  .quick pre{ font-size:.8rem; padding:14px 14px; }
  .pairs, .stats{ grid-template-columns:1fr; }
  .pair{ padding:16px; column-gap:14px; }
  .herobg .hero{ padding-bottom:36px; }
}
@media (prefers-reduced-motion:reduce){ *{ transition:none !important; } }

/* the conformance page: four figures, and headings inside a band */
.stats.four{ grid-template-columns:repeat(4,minmax(0,1fr)); }
section.band h3.sub{ font-size:1.12rem; margin:26px 0 0; }
@media (max-width:1180px){ .stats.four{ grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:700px){ .stats.four{ grid-template-columns:1fr; } }
.diagram svg.narrow{ display:none; }
@media (max-width:700px){
  .diagram svg.wide{ display:none; }
  .diagram svg.narrow{ display:block; }
}
@media (max-width:700px){
  table.map, table.map tbody, table.map tr, table.map td{ display:block; }
  table.map tr:first-child{ display:none; }
  table.map tr{ border-bottom:1px solid var(--line); padding:10px 14px; }
  table.map tr:last-child{ border-bottom:0; }
  table.map td{ border:0; padding:2px 0; }
  table.map td:last-child{ font-size:.82rem; }
  table.map td:last-child::before{ content:"Section "; }
}

/* ── the bindings page ── */
.hero .subtitle{ font-family:var(--disp); font-size:clamp(1.2rem,2.2vw,1.45rem); font-weight:600; letter-spacing:-.01em;
  color:var(--text-2); margin:-4px 0 16px; }
ul.needs{ list-style:none; padding:0; margin:24px 0 8px; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
ul.needs li{ background:var(--bg); border:1px solid var(--line); border-left:4px solid var(--accent); border-radius:12px; padding:16px 18px; }
ul.needs h3{ font-size:1.06rem; margin:0 0 6px; }
ul.needs p{ margin:0; font-size:.95rem; line-height:1.55; color:var(--text-2); }
ul.needs p.refs{ margin-top:8px; font-family:var(--wire); font-size:.82rem; color:var(--text-3); }

/* ratings: a full, half or empty disc and a word, so a rating reads without colour */
.r{ display:inline-flex; align-items:center; gap:7px; font-family:var(--wire); font-size:.78rem; font-weight:600; letter-spacing:.01em; white-space:nowrap; }
.r.n{ color:var(--mint); } .r.w{ color:var(--amber); } .r.x{ color:var(--weak); }
.mk{ display:inline-block; width:12px; height:12px; border-radius:50%; border:2px solid currentColor; flex:none; }
.mk.n{ background:currentColor; }
.mk.w{ background:linear-gradient(90deg, currentColor 50%, transparent 50%); }
.mk.x{ background:transparent; }
ul.legend{ list-style:none; padding:0; margin:18px 0 0; display:flex; flex-wrap:wrap; gap:8px 26px; font-size:.93rem; color:var(--text-2); }
ul.legend li{ display:flex; align-items:center; gap:9px; }

.fitwrap{ margin:16px 0 0; overflow-x:auto; border:1px solid var(--line); border-radius:12px; background:var(--bg);
  -webkit-overflow-scrolling:touch; scrollbar-width:thin; }
.fitwrap:focus-visible{ outline:2px solid var(--accent); outline-offset:2px; }
table.fit{ border-collapse:separate; border-spacing:0; width:100%; min-width:1680px; font-size:.86rem; line-height:1.45; }
table.fit thead th{ text-align:left; vertical-align:bottom; padding:12px; background:var(--surface); border-bottom:1px solid var(--line);
  font-family:var(--disp); font-size:.95rem; font-weight:700; color:var(--text); }
table.fit thead th small{ display:block; margin-top:2px; font-family:var(--body); font-size:.76rem; font-weight:400; color:var(--text-3); }
table.fit tbody th, table.fit tbody td{ padding:10px 12px; border-bottom:1px solid var(--line); vertical-align:top; text-align:left; }
table.fit td{ color:var(--text-2); width:10.4%; }
table.fit td .r{ display:flex; margin-bottom:4px; }
table.fit tbody th.req{ font-weight:600; color:var(--text); }
table.fit th.req .refs{ display:block; margin-top:3px; font-family:var(--wire); font-size:.74rem; font-weight:400; color:var(--text-3); }
table.fit th.req, table.fit thead th:first-child{ position:sticky; left:0; z-index:1; width:190px; min-width:190px;
  background:var(--bg); box-shadow:1px 0 0 var(--line); }
table.fit thead th:first-child{ z-index:2; background:var(--surface); font-family:var(--body); font-size:.78rem;
  letter-spacing:.06em; text-transform:uppercase; color:var(--text-3); }
table.fit tr.grp th{ background:var(--surface); padding:8px 12px; border-bottom:1px solid var(--line);
  font-size:.76rem; font-weight:700; letter-spacing:.07em; text-transform:uppercase; color:var(--text); }
table.fit tr.grp th span{ position:sticky; left:12px; }
table.fit tbody tr:last-child > *{ border-bottom:0; }
section.band > .wrap > p.fitnote{ font-size:.92rem; color:var(--text-3); margin:10px 0 0; }

ul.verdicts{ list-style:none; padding:0; margin:18px 0 0; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
.verdict{ background:var(--bg); border:1px solid var(--line); border-top:4px solid var(--c); border-radius:12px; padding:16px 18px; }
.verdict h3{ font-size:1.1rem; margin:0 0 6px; }
.verdict p{ margin:0; font-size:.95rem; line-height:1.6; color:var(--text-2); }
/* Fit stars: SVG, so the glyphs carry no text contrast; the number beside them is text and uses --text. */
.verdict p.rating{ display:flex; align-items:center; gap:10px; margin:2px 0 8px; }
.verdict .stars{ flex:none; color:var(--amber); }
.verdict .stars path{ stroke:currentColor; stroke-width:1.4; stroke-linejoin:round; }
.verdict .stars .f{ fill:currentColor; }
.verdict .stars .e{ fill:none; }
.verdict .stars .h{ fill:url(#star-half); }
.verdict .rating-n{ font-family:var(--wire); font-size:.82rem; font-weight:600; color:var(--text); }
.verdict p.why{ color:var(--text); font-weight:500; margin:0 0 8px; }

/* agents, Agent Messaging, a connector and Kafka, left to right */
ol.flow{ list-style:none; padding:0; margin:26px 0 22px; display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:30px; }
ol.flow li{ position:relative; background:var(--bg); border:1px solid var(--line); border-top:4px solid var(--c); border-radius:12px; padding:14px 16px; }
ol.flow li + li::before{ content:""; position:absolute; left:-27px; top:50%; width:24px; height:24px; transform:translateY(-50%);
  background:var(--text-3); -webkit-mask:var(--arr) center/contain no-repeat; mask:var(--arr) center/contain no-repeat; }
ol.flow{ --arr:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m16 3 4 4-4 4'/%3E%3Cpath d='M20 7H4'/%3E%3Cpath d='m8 21-4-4 4-4'/%3E%3Cpath d='M4 17h16'/%3E%3C/svg%3E"); }
ol.flow h3{ font-size:1.04rem; margin:0 0 4px; }
ol.flow p{ margin:0; font-size:.92rem; line-height:1.5; color:var(--text-2); }
@media (max-width:900px){
  ul.needs, ul.verdicts{ grid-template-columns:1fr; }
  ol.flow{ grid-template-columns:1fr; gap:30px; }
  ol.flow li + li::before{ left:50%; top:-27px; transform:translateX(-50%) rotate(90deg); }
  table.fit{ min-width:1500px; }
  table.fit th.req, table.fit thead th:first-child{ width:136px; min-width:136px; }
}

/* the Run it pages */
table.map.prose td:last-child{ font-family:var(--body); font-size:.95rem; color:var(--text-2); white-space:normal; }
section.band h3.step{ font-size:1.12rem; margin:30px 0 4px; }
section.band > .wrap > ol.plain{ margin:18px 0 0; padding-left:22px; color:var(--text-2); max-width:70ch; }
section.band > .wrap > ol.plain li{ margin:10px 0; }

/* the home page: a second hero line, the broker comparison and the six cards */
.hero p.also{ color:var(--text-2); max-width:56ch; margin:12px 0 0; }
.card p + p, .card ul.signals + p{ margin-top:10px; }
.card ul.signals{ margin:12px 0 0; gap:6px; }
.card ul.signals li{ grid-template-columns:6.2rem minmax(0,1fr); gap:10px; padding:8px 12px; font-size:.93rem; }
table.versus{ width:100%; max-width:none; table-layout:fixed; margin:26px 0 0; border-collapse:separate; border-spacing:0; }
table.versus thead th{ padding:14px 22px 12px; text-align:left; font-family:var(--disp); font-size:.82rem; font-weight:700;
  letter-spacing:.06em; text-transform:uppercase; color:var(--text-3); }
table.versus thead td{ width:18%; }
table.versus thead th.vs-b{ width:34%; }
table.versus thead th.vs-m{ width:48%; color:var(--accent); background:var(--accent-tint); border-radius:12px 12px 0 0; }
table.versus tbody th, table.versus tbody td{ padding:17px 22px; border-top:1px solid var(--line); vertical-align:top;
  text-align:left; font-size:1rem; line-height:1.55; }
table.versus tbody th{ width:18%; padding-left:0; font-weight:600; color:var(--text); }
table.versus td.vs-b{ width:34%; color:var(--text-3); }
table.versus td.vs-m{ width:48%; background:var(--accent-tint); color:var(--text); font-weight:500; }
table.versus tbody tr:last-child td.vs-m{ border-radius:0 0 12px 12px; }
@media (max-width:700px){
  table.versus, table.versus tbody, table.versus tr, table.versus th, table.versus td{ display:block; width:auto; }
  table.versus{ table-layout:auto; }
  table.versus td.vs-m{ width:auto; }
  table.versus thead{ display:none; }
  table.versus tbody th, table.versus td.vs-b{ width:auto; }
  table.versus tbody tr{ border:1px solid var(--line); border-radius:12px; overflow:hidden; margin:0 0 12px; }
  table.versus tbody th, table.versus tbody td{ border:0; padding:6px 16px; }
  table.versus tbody th{ padding:14px 16px 4px; }
  table.versus td.vs-m{ padding:10px 16px 14px; }
  table.versus tbody tr:last-child td.vs-m{ border-radius:0; }
  table.versus td[data-l]::before{ content:attr(data-l); display:block; margin-bottom:2px; font-family:var(--disp);
    font-size:.74rem; font-weight:700; letter-spacing:.06em; text-transform:uppercase; color:var(--text-3); }
  table.versus td.vs-m::before{ color:var(--accent); }
  table.versus td.vs-b{ padding-bottom:10px; }
}
@media (max-width:700px){ table.map.twocol td:last-child{ font-size:.95rem; } table.map.twocol td:last-child::before{ content:none; } }

/* the explainer video under the hero; the MP4, its poster and its captions live in /media/ in the bucket, uploaded by hand */
figure.vid{ margin:24px 0 8px; background:var(--bg); border:1px solid var(--line); border-top:4px solid var(--accent);
  border-radius:14px; overflow:hidden; }
figure.vid video{ display:block; width:100%; height:auto; aspect-ratio:16/9; background:#0B1215; }
figure.vid figcaption{ display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:8px 14px; padding:14px 18px 16px; }
figure.vid .vt{ font-family:var(--disp); font-weight:600; font-size:1.1rem; color:var(--text); }
figure.vid .len{ font-size:.85rem; color:var(--text-2); border:1px solid var(--line); border-radius:100px;
  padding:2px 10px; background:var(--surface); white-space:nowrap; }
figure.vid .len b{ color:var(--accent); font-weight:700; }

/* ── Agent Emailing: what this site adds to the shared stylesheet ── */

/* the menu's icons for this site's relative links */
.rail nav a[href$="/spec.html"]{ --i:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 7v14'/%3E%3Cpath d='M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z'/%3E%3C/svg%3E"); }
.rail nav a[href$="/example.html"]{ --i:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='20' height='16' x='2' y='4' rx='2'/%3E%3Cpath d='m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7'/%3E%3C/svg%3E"); }
.rail nav a[href$="/providers.html"]{ --i:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='20' height='8' x='2' y='2' rx='2'/%3E%3Crect width='20' height='8' x='2' y='14' rx='2'/%3E%3Cpath d='M6 6h.01'/%3E%3Cpath d='M6 18h.01'/%3E%3C/svg%3E"); }
.rail nav a[href$="/providers.html#test"]{ --i:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z'/%3E%3Cpath d='m9 12 2 2 4-4'/%3E%3C/svg%3E"); }
.rail nav .sec.suite > summary{ --i:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71'/%3E%3Cpath d='M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71'/%3E%3C/svg%3E"); }
.rail nav .sec.suite a[href="https://agentmessaging.ai/"]{ --i:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='20' height='16' x='2' y='4' rx='2'/%3E%3Cpath d='m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7'/%3E%3C/svg%3E"); }

/* an email written out in full: wraps rather than scrolls, so nothing moves sideways on a phone */
pre.eml{ background:var(--surface); border:1px solid var(--line); border-radius:12px; padding:16px 18px; margin:16px 0 0;
  font-family:var(--wire); font-size:.82rem; line-height:1.6; color:var(--text);
  white-space:pre-wrap; overflow-wrap:anywhere; }
pre.eml .hd{ color:var(--accent); font-weight:600; }
pre.eml .bd{ color:var(--text-3); }
pre.eml .hint{ color:var(--violet); font-weight:600; }
pre.eml .b64{ color:var(--text-3); }
pre.json{ background:var(--bg); border:1px solid var(--line); border-left:4px solid var(--accent); border-radius:12px;
  padding:14px 16px; margin:16px 0 0; font-family:var(--wire); font-size:.82rem; line-height:1.6; color:var(--text);
  white-space:pre-wrap; overflow-wrap:anywhere; word-break:break-word; }
.caption{ font-size:.92rem; color:var(--text-3); margin:8px 0 0; max-width:76ch; }

/* the structure figure on the home page */
.tree{ margin:22px 0 4px; background:var(--surface); border:1px solid var(--line); border-radius:12px; overflow:hidden; }
.tree .bar{ padding:10px 16px; border-bottom:1px solid var(--line); font-size:.85rem; font-weight:600; color:var(--text-2); }
.tree ul{ list-style:none; margin:0; padding:14px 18px 16px; background:var(--bg); display:grid; gap:8px; }
.tree li{ display:grid; grid-template-columns:minmax(0,1fr); gap:2px; padding:10px 12px 10px 14px; border:1px solid var(--line);
  border-left:4px solid var(--c, var(--accent)); border-radius:10px; }
.tree li.top{ border-left-color:var(--text-3); }
.tree li.in{ margin-left:22px; }
.tree code{ font-family:var(--wire); font-size:.84rem; color:var(--c, var(--accent)); overflow-wrap:anywhere; }
.tree span{ font-size:.93rem; color:var(--text-2); }
.tree .note{ padding:12px 18px; border-top:1px solid var(--line); font-size:.95rem; color:var(--text-2); }

/* what a person sees in a mail program */
.mailview{ margin:18px 0 0; background:var(--bg); border:1px solid var(--line); border-radius:14px; overflow:hidden; max-width:720px; }
.mailview .mv-head{ padding:14px 18px; background:var(--surface); border-bottom:1px solid var(--line); }
.mailview .mv-subj{ font-family:var(--disp); font-weight:600; font-size:1.12rem; color:var(--text); margin:0 0 6px; }
.mailview .mv-meta{ font-size:.9rem; color:var(--text-2); margin:0; overflow-wrap:anywhere; }
.mailview .mv-body{ padding:16px 18px; font-size:.97rem; color:var(--text); line-height:1.6; }
.mailview .mv-body p{ margin:0 0 10px; }
.mailview .mv-body p.small{ font-size:.9rem; color:var(--text-3); }
.mailview .mv-files{ display:flex; flex-wrap:wrap; gap:8px; padding:0 18px 16px; }
.mailview .mv-file{ display:inline-flex; align-items:center; gap:8px; border:1px solid var(--line); border-radius:9px;
  padding:6px 12px; font-family:var(--wire); font-size:.84rem; color:var(--text); background:var(--surface); }

/* the provider tables */
table.caps{ border-collapse:collapse; margin:22px 0 0; width:100%; border:1px solid var(--line); border-radius:10px; background:var(--bg); }
table.caps th{ font-size:.8rem; font-weight:700; letter-spacing:.05em; text-transform:uppercase; color:var(--text-3);
  text-align:left; padding:10px 12px; background:var(--surface); border-bottom:1px solid var(--line); vertical-align:bottom; }
table.caps td{ padding:10px 12px; border-bottom:1px solid var(--line); font-size:.93rem; color:var(--text-2); vertical-align:top; }
table.caps tr:last-child td{ border-bottom:0; }
table.caps td:first-child{ color:var(--text); font-weight:600; }
table.caps td:first-child small{ display:block; font-weight:400; color:var(--text-3); font-size:.85rem; margin-top:2px; }
table.caps td .r{ white-space:normal; }
table.caps a{ color:var(--accent); }
@media (max-width:900px){
  table.caps, table.caps tbody, table.caps tr, table.caps td{ display:block; width:auto; }
  table.caps thead{ display:none; }
  table.caps tr{ border-bottom:1px solid var(--line); padding:10px 14px; }
  table.caps tr:last-child{ border-bottom:0; }
  table.caps td{ border:0; padding:3px 0; }
  table.caps td[data-l]::before{ content:attr(data-l) ": "; font-weight:600; color:var(--text); }
}

/* small print under a heading, and numbered must and should lists */
ol.reqlist{ margin:18px 0 0; padding-left:22px; color:var(--text-2); max-width:72ch; }
ol.reqlist li{ margin:10px 0; }
ol.reqlist li b{ color:var(--text); }
.band p a, .card p a, ol.reqlist a, ul.plain a{ color:var(--accent); }

/* ── Agent Emailing: badges and the mail-client view on the example page ── */

/* Vivid signal colours. Fills carry white text (or dark ink on amber), so they
   read the same in light and dark; the label blocks change with the theme.
   White on green 5.02, on blue 5.17, on red 4.83, on violet 7.10; ink on amber 8.65. */
:root{
  --v-ok:#15803D; --v-info:#2563EB; --v-bad:#DC2626; --v-vio:#6D28D9; --v-amber:#F59E0B; --v-amber-ink:#1A1200;
  --l-ok-bg:#DCFCE7;   --l-ok-ink:#14532D;
  --l-info-bg:#DBEAFE; --l-info-ink:#1E3A8A;
  --l-bad-bg:#FEE2E2;  --l-bad-ink:#7F1D1D;
  --l-warn-bg:#FEF3C7; --l-warn-ink:#78350F;
  --l-vio-bg:#EDE9FE;  --l-vio-ink:#4C1D95;
  --shield-ink:#1F2937;
}
:root[data-theme="dark"]{
  --l-ok-bg:#0F2A1A;   --l-ok-ink:#86EFAC;
  --l-info-bg:#0F1E3A; --l-info-ink:#93C5FD;
  --l-bad-bg:#3A1212;  --l-bad-ink:#FCA5A5;
  --l-warn-bg:#33240A; --l-warn-ink:#FCD34D;
  --l-vio-bg:#221A3D;  --l-vio-ink:#C4B5FD;
  --shield-ink:#334155;
}

/* a note above a figure */
p.notice{ display:flex; gap:12px; align-items:flex-start; margin:18px 0 0; max-width:78ch; padding:12px 16px;
  background:var(--l-info-bg); border:1px solid var(--v-info); border-left:5px solid var(--v-info); border-radius:12px;
  font-size:.95rem; color:var(--l-info-ink); }
p.notice .ico{ color:var(--l-info-ink); margin-top:3px; }

.bi{ width:15px; height:15px; flex:none; fill:none; stroke:currentColor; stroke-width:2.2; stroke-linecap:round; stroke-linejoin:round; }

/* tile badges: a coloured icon tile joined to a label block */
.tb{ display:inline-flex; align-items:stretch; max-width:100%; border-radius:7px; overflow:hidden; border:1.5px solid var(--f);
  font-family:var(--body); font-size:.8rem; font-weight:700; line-height:1.3; vertical-align:middle; }
.tb-i{ flex:none; display:grid; place-items:center; width:30px; background:var(--f); color:#FFFFFF; }
.tb-i .bi{ width:16px; height:16px; stroke-width:2.6; }
.tb-t{ display:flex; align-items:center; padding:5px 10px 5px 9px; background:var(--lb); color:var(--li); overflow-wrap:anywhere; }
.tb.ok{ --f:var(--v-ok); --lb:var(--l-ok-bg); --li:var(--l-ok-ink); }
.tb.bad{ --f:var(--v-bad); --lb:var(--l-bad-bg); --li:var(--l-bad-ink); }
.tb.warn{ --f:var(--v-amber); --lb:var(--l-warn-bg); --li:var(--l-warn-ink); }
.tb.warn .tb-i{ color:var(--v-amber-ink); }

/* the version shield */
.shield{ display:inline-flex; align-items:stretch; border-radius:7px; overflow:hidden; font-family:var(--wire);
  font-size:.78rem; font-weight:600; line-height:1; border:1.5px solid var(--shield-ink); vertical-align:middle; }
.shield .sh-l{ display:inline-flex; align-items:center; gap:6px; background:var(--shield-ink); color:#FFFFFF; padding:6px 9px; }
.shield .sh-l .bi{ width:15px; height:15px; }
.shield .sh-r{ display:inline-flex; align-items:center; background:var(--v-info); color:#FFFFFF; padding:6px 9px; font-weight:700; }
.shield.bad .sh-r{ background:var(--v-bad); }

/* the state of a message: solid, clearly coloured */
.state{ display:inline-flex; align-items:center; gap:6px; padding:3px 10px; border-radius:999px; font-family:var(--body);
  font-size:.76rem; font-weight:700; letter-spacing:.02em; line-height:1.45; white-space:nowrap;
  color:var(--sc, #FFFFFF); background:var(--sf, var(--text-3)); vertical-align:2px; }
.state::before{ content:""; width:7px; height:7px; border-radius:50%; background:currentColor; opacity:.9; }
.st-done{ --sf:var(--v-ok); }
.st-input{ --sf:var(--v-amber); --sc:var(--v-amber-ink); }
.st-request{ --sf:var(--v-info); }
.st-answer{ --sf:var(--v-vio); }
.st-fail{ --sf:var(--v-bad); }

/* the mail client */
.mc{ margin:22px 0 0; background:var(--bg); border:1px solid var(--line); border-radius:16px; overflow:hidden;
  box-shadow:0 1px 0 var(--line), 0 30px 60px -44px var(--text-3); }
.mc-bar{ display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:8px 16px; padding:10px 16px;
  background:var(--surface); border-bottom:1px solid var(--line); font-size:.88rem; color:var(--text-2); }
.mc-mbox, .mc-seal{ display:inline-flex; align-items:center; gap:8px; min-width:0; }
.mc-mbox .bi{ color:var(--accent); width:17px; height:17px; }
.mc-mbox .addr{ color:var(--text-3); overflow-wrap:anywhere; }
.mc-seal{ font-weight:700; color:#FFFFFF; background:var(--v-ok); border-radius:999px; padding:3px 12px 3px 8px; font-size:.8rem; }
.mc-seal .bi{ width:16px; height:16px; }
.mc-grid{ display:grid; grid-template-columns:300px minmax(0,1fr); }
.mc-list{ background:var(--surface); border-right:1px solid var(--line); padding:8px 0 12px; }
.mc-list ul{ list-style:none; margin:0; padding:0; }
.mc-folder{ display:flex; justify-content:space-between; align-items:baseline; gap:10px; margin:10px 16px 6px;
  font-size:.74rem; font-weight:700; letter-spacing:.08em; text-transform:uppercase; color:var(--text-3); }
.mc-folder span{ font-weight:500; letter-spacing:0; text-transform:none; font-size:.78rem; }
.mc-row{ display:grid; grid-template-columns:32px minmax(0,1fr); gap:10px; padding:10px 14px 11px 13px; border-left:3px solid transparent; }
.mc-row + .mc-row{ border-top:1px solid var(--line); }
.mc-row.on{ background:var(--bg); border-left-color:var(--v-info); }
.mc-r{ min-width:0; }
.mc-r p{ margin:0; }
.mc-who{ display:flex; justify-content:space-between; gap:8px; font-size:.9rem; color:var(--text); }
.mc-who b{ font-weight:600; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.mc-who time{ flex:none; font-size:.8rem; color:var(--text-3); }
.mc-subj{ font-size:.86rem; color:var(--text); font-weight:500; line-height:1.4; }
.mc-prev{ font-size:.82rem; color:var(--text-3); line-height:1.4; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.mc-tags{ display:flex; flex-wrap:wrap; align-items:center; gap:6px; margin-top:6px !important; }
.mini-ok{ display:inline-flex; align-items:center; gap:4px; font-size:.74rem; font-weight:700; color:var(--l-ok-ink); }
.mini-ok .bi{ width:13px; height:13px; stroke-width:3; }
.plain-tag{ font-size:.74rem; color:var(--text-3); }
.avatar{ display:grid; place-items:center; width:40px; height:40px; border-radius:50%; font-family:var(--body);
  font-size:.82rem; font-weight:700; letter-spacing:.02em; color:#FFFFFF; background:var(--c); }
.avatar.sm{ width:32px; height:32px; font-size:.72rem; }
.av-a{ --c:var(--v-info); }
.av-b{ --c:var(--v-vio); }
.av-c{ --c:var(--v-ok); }
.av-x{ --c:var(--v-bad); }

.mc-thread{ min-width:0; padding:18px 20px 6px; }
.mc.single .mc-thread{ padding-top:16px; }
.mc-thread-head{ display:flex; flex-wrap:wrap; align-items:center; gap:8px 12px; margin:0 0 14px; }
.mc-thread-head h3{ font-size:1.3rem; margin:0; }
.mc-count{ font-size:.86rem; color:var(--text-3); }
.msg{ border:1px solid var(--line); border-radius:12px; margin:0 0 16px; background:var(--bg); overflow:hidden;
  box-shadow:0 10px 24px -22px var(--text-3); }
.msg-fail{ border:2px solid var(--v-bad); }
.msg-head{ display:grid; grid-template-columns:40px minmax(0,1fr) auto; gap:12px; align-items:start; padding:14px 16px 4px; }
.msg-who{ min-width:0; }
.msg-who p, .msg-time{ margin:0; }
.msg-from{ font-size:.95rem; color:var(--text); line-height:1.4; overflow-wrap:anywhere; }
.msg-from b{ font-weight:600; }
.msg-from .addr, .msg-to{ font-size:.86rem; color:var(--text-3); }
.msg-from .addr{ display:block; }
.msg-time{ font-size:.84rem; color:var(--text-3); white-space:nowrap; }
.msg-subj{ margin:6px 16px 0 68px; font-size:.95rem; font-weight:600; color:var(--text); line-height:1.5; overflow-wrap:anywhere; }
.msg-badges{ display:flex; flex-wrap:wrap; gap:8px; padding:10px 16px 14px 68px; }
.msg-body{ margin:0 16px; padding:14px 0 6px; border-top:1px solid var(--line); }

/* the human part as a table */
dl.facts{ margin:0; border:1px solid var(--line); border-radius:10px; overflow:hidden; }
dl.facts .f-row{ display:grid; grid-template-columns:168px minmax(0,1fr); }
dl.facts .f-row + .f-row{ border-top:1px solid var(--line); }
dl.facts dt{ margin:0; padding:9px 14px; background:var(--surface); font-size:.84rem; font-weight:700; color:var(--text-2); }
dl.facts dd{ margin:0; padding:9px 14px; font-size:.95rem; line-height:1.55; color:var(--text); overflow-wrap:anywhere; }
dl.facts dd.v-next{ font-weight:600; }
details.plain-fold{ margin:10px 0 0; }
details.plain-fold > summary{ cursor:pointer; display:inline-flex; align-items:center; gap:6px; font-size:.85rem; font-weight:600; color:var(--accent); }
details.plain-fold > pre{ margin:8px 0 0; padding:12px 14px; background:var(--surface); border:1px solid var(--line); border-radius:10px;
  font-family:var(--wire); font-size:.8rem; line-height:1.6; color:var(--text); white-space:pre-wrap; overflow-wrap:anywhere; }

.msg-files{ display:flex; flex-wrap:wrap; gap:8px; padding:8px 16px 14px; }
.chip-file{ display:inline-flex; flex-wrap:wrap; align-items:center; gap:4px 8px; max-width:100%; padding:6px 10px;
  border:1px solid var(--line); border-radius:10px; background:var(--surface); font-size:.82rem; color:var(--text-2); }
.chip-file > .bi{ color:var(--text-3); }
.chip-file .cf-name{ font-family:var(--wire); font-weight:600; color:var(--text); overflow-wrap:anywhere; }
.chip-file .cf-meta{ color:var(--text-3); }
.chip-file .cf-ok, .chip-file .cf-bad{ display:inline-flex; align-items:center; gap:4px; font-weight:700; border-radius:999px; padding:1px 8px 1px 5px; }
.chip-file .cf-ok{ color:var(--l-ok-ink); background:var(--l-ok-bg); }
.chip-file .cf-bad{ color:var(--l-bad-ink); background:var(--l-bad-bg); }
.chip-file .cf-ok .bi, .chip-file .cf-bad .bi{ width:13px; height:13px; stroke-width:3; }
.chip-file.env > .bi{ color:var(--accent); }

/* the FAIL bar */
.failbar{ background:var(--v-bad); color:#FFFFFF; padding:18px 22px 16px; border-bottom:4px solid #991B1B; }
.failbar p, .failbar li{ color:#FFFFFF; }
.failbar .fb-title{ display:flex; align-items:center; gap:12px; margin:0 0 10px; font-family:var(--disp); font-size:1.55rem; font-weight:700; letter-spacing:-.01em; line-height:1.2; }
.failbar .fb-title b{ color:#FFFFFF; font-weight:700; letter-spacing:.04em; }
.failbar .fb-title .bi{ width:30px; height:30px; stroke-width:2.6; }
.failbar ol.fb-list{ margin:0 0 10px; padding-left:22px; font-size:.97rem; line-height:1.55; }
.failbar ol.fb-list li{ margin:6px 0; }
.failbar ol.fb-list b{ color:#FFFFFF; }
.failbar .fb-what{ margin:0; padding-top:10px; border-top:1px solid #FCA5A5; font-size:.95rem; }
.failbar .fb-what b{ color:#FFFFFF; }

/* the warning above a mismatched email */
.warnbox{ margin:0 0 14px; padding:14px 16px; border:2px solid var(--v-amber); border-left-width:6px; border-radius:12px; background:var(--l-warn-bg); }
.warnbox p{ margin:0 0 8px; font-size:.95rem; color:var(--l-warn-ink); }
.warnbox .wb-title{ display:flex; gap:8px; align-items:flex-start; font-size:1.02rem; }
.warnbox .wb-title b{ color:var(--l-warn-ink); }
.warnbox .wb-title .bi{ width:19px; height:19px; margin-top:3px; color:var(--l-warn-ink); }
.warnbox ul{ margin:4px 0 0; padding-left:20px; font-size:.93rem; color:var(--l-warn-ink); }
.warnbox li{ margin:4px 0; overflow-wrap:anywhere; }
.warnbox .lbl{ font-weight:700; }

/* the badge legend */
ul.legend-list{ list-style:none; padding:0; margin:20px 0 0; display:grid; gap:10px; max-width:900px; }
ul.legend-list li{ display:grid; grid-template-columns:minmax(0,360px) minmax(0,1fr); gap:16px; align-items:center;
  padding:12px 16px; background:var(--bg); border:1px solid var(--line); border-radius:12px; }
ul.legend-list .lg-b{ justify-self:start; min-width:0; }
ul.legend-list p{ margin:0; font-size:.94rem; color:var(--text-2); }
.badges-row{ display:flex; flex-wrap:wrap; gap:6px; }

/* folded sections for implementers */
details.fold{ margin:12px 0 0; border:1px solid var(--line); border-radius:12px; background:var(--bg); }
details.fold > summary{ cursor:pointer; list-style:none; display:flex; flex-wrap:wrap; align-items:center; gap:8px 12px;
  padding:12px 16px; font-weight:600; color:var(--text); font-size:.97rem; }
details.fold > summary::-webkit-details-marker{ display:none; }
details.fold > summary::after{ content:"Show"; margin-left:auto; font-size:.82rem; font-weight:600; color:var(--accent); }
details.fold[open] > summary::after{ content:"Hide"; }
details.fold[open] > summary{ border-bottom:1px solid var(--line); }
details.fold > :not(summary){ margin-left:16px; margin-right:16px; }
details.fold > :last-child{ margin-bottom:16px; }
details.fold > p{ color:var(--text-2); font-size:.95rem; }

@media (max-width:900px){
  .mc-grid{ grid-template-columns:1fr; }
  .mc-list{ border-right:0; border-bottom:1px solid var(--line); }
  .mc-thread{ padding:14px 12px 4px; }
  .msg-head{ grid-template-columns:36px minmax(0,1fr); gap:10px; padding:12px 12px 2px; }
  .msg-head .avatar{ width:36px; height:36px; }
  .msg-time{ grid-column:2; white-space:normal; }
  .msg-subj{ margin:6px 12px 0; }
  .msg-badges{ padding:10px 12px 12px; }
  .msg-body{ margin:0 12px; }
  .msg-files{ padding:8px 12px 12px; }
  ul.legend-list li{ grid-template-columns:1fr; gap:8px; }
  .failbar{ padding:16px 14px 14px; }
  .failbar .fb-title{ font-size:1.3rem; }
}
@media (max-width:700px){
  dl.facts .f-row{ grid-template-columns:1fr; }
  dl.facts dt{ padding:7px 12px 2px; background:var(--surface); font-size:.76rem; letter-spacing:.06em; text-transform:uppercase; }
  dl.facts dd{ padding:4px 12px 9px; background:var(--surface); }
  dl.facts .f-row{ background:var(--surface); }
}

/* ── the Get started page, the implementations table and the menu icons for them ── */
.rail nav a[href$="/getting-started.html"]{ --i:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='m10 8 6 4-6 4z'/%3E%3C/svg%3E"); }
.rail nav a[href$="/versions.html"]{ --i:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m16.24 7.76-1.804 5.411a2 2 0 0 1-1.265 1.265L7.76 16.24l1.804-5.411a2 2 0 0 1 1.265-1.265z'/%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3C/svg%3E"); }

ol.gs-steps{ list-style:none; margin:0; padding:0; display:grid; gap:34px; max-width:860px; }
ol.gs-steps > li{ min-width:0; }
ol.gs-steps h2{ display:flex; align-items:center; gap:12px; font-size:1.45rem; margin:0 0 12px; }
.gs-n{ flex:none; display:inline-grid; place-items:center; width:34px; height:34px; border-radius:50%;
  background:var(--v-info); color:#FFFFFF; font-family:var(--body); font-size:1rem; font-weight:700; }
ol.gs-steps p{ color:var(--text-2); max-width:72ch; }
ol.gs-steps code, section.band p code, ol.reqlist code{ font-family:var(--wire); font-size:.86em; color:var(--accent);
  background:var(--accent-tint); border-radius:5px; padding:1px 5px; overflow-wrap:anywhere; }
.gs pre.code, #conformance pre.code{ white-space:pre-wrap; overflow-wrap:anywhere; overflow-x:visible; margin:12px 0; }
pre.code.out{ background:var(--bg); border-left:4px solid var(--v-ok); }
ol.gs-steps h3.sub{ font-size:1.05rem; margin:18px 0 4px; }
.impl-note{ margin:14px 0 4px; padding:12px 16px; border:1px solid var(--line); border-left:5px solid var(--v-info);
  border-radius:12px; background:var(--l-info-bg); color:var(--l-info-ink); max-width:76ch; }
.impl-note a{ color:var(--l-info-ink); font-weight:600; }
.impl-card{ display:grid; grid-template-columns:auto minmax(0,1fr); gap:16px; align-items:start; margin:20px 0 0;
  padding:18px 20px; background:var(--bg); border:1px solid var(--line); border-left:5px solid var(--v-ok); border-radius:14px; max-width:860px; }
.impl-card h3{ font-size:1.15rem; margin:0 0 6px; }
.impl-card p{ margin:0 0 6px; font-size:.96rem; color:var(--text-2); }
.impl-card .chip{ --c:var(--v-ok); }
@media (max-width:700px){ .impl-card{ grid-template-columns:1fr; } ol.gs-steps h2{ font-size:1.25rem; } }
