/* The zoo. Light and dark follow the system; no framework, no web fonts. */
/* rc.css comes first (tokens, type, buttons, the header); these are the zoo's own names for them. */
:root {
  --card: var(--surface); --ink: var(--fg); --code: var(--sunk);
  --green: var(--ok); --red: var(--bad); --amber: var(--warn); --grey: #a3a8a4;
  --green-bg: var(--ok-bg); --red-bg: var(--bad-bg); --amber-bg: var(--warn-bg); --grey-bg: var(--sunk);
  --rc-header-width: 1180px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
code, pre { font-size: 0.88em; }
code { background: var(--code); padding: 0.05em 0.3em; border-radius: 4px; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
small { font-size: 0.82em; }

.top { background: var(--card); border-bottom: 1px solid var(--line); padding: 16px 0 14px; }
.legend { margin: 0 0 10px; color: var(--muted); font-size: var(--t-small); max-width: 80ch; }
.legend b { color: var(--red); }
.top .wrap:first-child { display: flex; gap: 20px; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; }
.title h1 { margin: 0 0 4px; font-size: var(--t-h1); }
.title p { margin: 0; color: var(--muted); max-width: 60ch; }
.env { font-size: 0.5em; vertical-align: middle; background: var(--amber-bg); color: var(--amber); padding: 2px 8px; border-radius: 99px; }
.me { display: flex; align-items: center; gap: 12px; }
.lights-row { margin-top: 14px; }
.checked { margin: 0 0 8px; color: var(--muted); font-size: 0.92em; }
.dots { display: flex; flex-wrap: wrap; gap: 6px; }
.dot { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; text-decoration: none;
       font-size: 0.78em; font-weight: 600; color: var(--surface); background: var(--grey); }
.dot.green { background: var(--green); } .dot.red { background: var(--red); } .dot.amber { background: var(--amber); }
.dot.grey { background: transparent; color: var(--muted); border: 2px dashed var(--grey); }

.wing h2 { font-size: 1.05rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin: 32px 0 12px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 14px; }
@media (max-width: 420px) { .cards { grid-template-columns: 1fr; } }
.card { margin: 0; background: var(--card); border: 1px solid var(--line); border-left: 5px solid var(--grey); border-radius: 10px;
        padding: 14px 16px 10px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.card.green { border-left-color: var(--green); } .card.red { border-left-color: var(--red); } .card.amber { border-left-color: var(--amber); }
.card.grey { border-left-style: dashed; }
.card header { display: flex; align-items: baseline; gap: 10px; }
.card h3 { margin: 0; font-size: 1.08rem; }
.num { color: var(--muted); font-weight: 700; font-variant-numeric: tabular-nums; }
.promise { margin: 0; }
.block { margin: 0; font-size: 0.9em; color: var(--muted); }
.block::before { content: "Building block · "; font-weight: 600; }
.live { border-top: 1px dashed var(--line); padding-top: 10px; display: flex; flex-direction: column; gap: 8px; overflow-wrap: anywhere; }
.live p { margin: 0; }
.card > footer { margin-top: auto; display: flex; gap: 14px; align-items: center; font-size: 0.88em; padding-top: 4px; }
.kind { margin-left: auto; color: var(--muted); }
details.more > summary { cursor: pointer; color: var(--accent); font-size: var(--t-small); list-style: none; }
details.more > summary::-webkit-details-marker { display: none; }
details.more > summary::before { content: "▸ "; }
details.more[open] > summary { display: none; }
details.more > * + * { margin-top: 8px; }
.answer p { margin: 0 0 8px; } .answer ul, .answer ol { margin: 0 0 8px; padding-left: 1.3em; } .answer h4 { margin: 8px 0 4px; font-size: 1em; }

.light { display: inline-flex; gap: 8px; align-items: baseline; font-size: 0.9em; padding: 4px 10px; border-radius: 8px; background: var(--grey-bg); }
.light i { width: 10px; height: 10px; border-radius: 50%; background: var(--grey); flex: none; transform: translateY(1px); }
.light.green { background: var(--green-bg); } .light.green i { background: var(--green); }
.light.red { background: var(--red-bg); } .light.red i { background: var(--red); }
.light.amber { background: var(--amber-bg); } .light.amber i { background: var(--amber); }

.card button:not(.link) { min-height: 36px; padding: 6px 12px; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.row input { flex: 1; min-width: 0; width: auto; }

.person { display: flex; gap: 10px; align-items: center; min-width: 0; }
.person span { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.person small { color: var(--muted); }
.pic { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: var(--grey-bg); flex: none; }
.pic.none { display: grid; place-items: center; color: var(--muted); font-weight: 700; }
.people { display: flex; flex-direction: column; gap: 8px; }
.people .note { color: var(--muted); font-size: 0.9em; }
.people .mine { background: var(--ok-bg, var(--sunk)); border-radius: var(--radius-sm, 6px); padding: 4px 6px; margin: -4px -6px; }

.list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; font-size: 0.9em; }
.list li { display: flex; gap: 8px; align-items: baseline; }
.tag { font-size: 0.78em; font-weight: 600; padding: 1px 7px; border-radius: 99px; background: var(--grey-bg); white-space: nowrap; }
.tag.ok, .tag.refused, .tag.live { background: var(--green-bg); color: var(--green); }
.tag.bad, .tag.opened { background: var(--red-bg); color: var(--red); }
.tag.staging { background: var(--amber-bg); color: var(--amber); }
.big { font-size: 2.4rem; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1; }
.out { font-size: 0.9em; }
pre.log { margin: 0; max-height: 160px; overflow: auto; background: var(--code); padding: 8px; border-radius: 6px; white-space: pre-wrap; font-size: 0.78em; }

.foot { color: var(--muted); font-size: 0.88em; padding-top: 24px; padding-bottom: 40px; }

/* how pages */
.how h1 { margin-top: 8px; }
.src h2 { font-size: 1rem; display: flex; gap: 10px; flex-wrap: wrap; align-items: baseline; }
.src pre { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 12px 0; overflow-x: auto; line-height: 1.45; }
.src .ln { display: inline-block; width: 3.5em; padding-right: 1em; text-align: right; color: var(--muted); user-select: none; }
.try { margin: 8px 0; font-size: var(--t-small, 14px); }
.try a { white-space: nowrap; }

/* 26, 27: sealed */
.sealpair { display: grid; grid-template-columns: 1fr; gap: 10px; }
.sealpair blockquote { margin: 4px 0; padding: 8px 10px; border-left: 3px solid var(--green); background: var(--green-bg); border-radius: 4px; overflow-wrap: anywhere; }
.hexdump { font-family: var(--mono, ui-monospace, monospace); word-break: break-all; }
.code { font: 600 1.3rem/1.4 var(--mono, ui-monospace, monospace); letter-spacing: 0.04em; background: var(--code); border-radius: 6px; padding: 8px; text-align: center; }
