/* The reading pages (security, vs-openclaw, features, install, about).
   Loaded after site.css and built only from its tokens: nothing here names a
   colour or a face, so a change of theme in site.css re-colours these pages
   with the home page. The bar, the footer, the label, the lede, the honest
   note, the buttons, the day-book, the directory and the questions are
   site.css's own; this file adds what a page of prose needs and the home page
   does not: a quieter headline, a measure for paragraphs, tables, and the
   comparison's two columns with their sources.
   Everything is scoped under .doc (the main element), because site.css already
   uses .page for the fictional supplier's page on the home page. */

.doc section{padding:64px 0}
.doc .doc-head{padding:56px 0 48px;background-image:radial-gradient(ellipse 70% 80% at 18% 0%,color-mix(in srgb,var(--action) 11%,transparent),transparent 70%)}
.crumbs{font:600 .8125rem/1.5 var(--font-mono);letter-spacing:.08em;text-transform:uppercase;color:var(--b-dim);margin-bottom:24px}
.crumbs a{color:var(--b-dim)}
.crumbs a:hover{color:var(--b-action-lift)}
/* The home page's h1 is a poster; here it is a title that has to hold a whole thought. */
.doc h1{font-size:clamp(2.25rem,5vw,3.75rem);line-height:1.05;max-width:17em;text-wrap:balance}
.doc h1 em{display:inline;color:var(--b-action)}
.doc-head .lede{margin-top:24px}
.doc-head .note{margin-top:28px;max-width:42em}

/* Prose: a measure, and room between paragraphs (site.css zeroes every margin). */
.prose{max-width:42em}
.prose>*+*{margin-top:18px}
.prose>h3{margin-top:40px}
.prose>.note,.prose>.term,.prose>.tablewrap,.prose>.alert{margin-top:28px}
.doc .head+.prose{margin-top:-8px}
/* Prose that follows a set of cards in the same section needs room to breathe. */
.cards+.prose{margin-top:40px}
.doc code{font-size:.9em;color:var(--b-text);background:var(--b-tint);padding:.08em .32em;border-radius:4px;overflow-wrap:anywhere}
.doc pre code{background:none;padding:0}
.doc q{font-style:italic}

/* Lists inside prose: a dash for a rule, a cross for a thing kept out. */
.rules li,.kept li{position:relative;padding:10px 0 10px 30px;border-top:1px solid var(--b-rule)}
.rules li:last-child,.kept li:last-child{border-bottom:1px solid var(--b-rule)}
.rules li::before{content:"—";position:absolute;left:0;color:var(--b-rule-strong);font-family:var(--font-mono)}
.kept li::before{content:"×";position:absolute;left:4px;color:var(--b-dim);font-family:var(--font-mono);font-weight:600}
.kept{columns:2;column-gap:40px}
.kept li{break-inside:avoid}
ol.walk{counter-reset:walk}
ol.walk li{counter-increment:walk;position:relative;padding:12px 0 12px 48px;border-top:1px solid var(--b-rule)}
ol.walk li:last-child{border-bottom:1px solid var(--b-rule)}
ol.walk li::before{content:counter(walk);position:absolute;left:0;top:8px;font-family:var(--font-display);font-weight:800;font-size:1.75rem;line-height:1.2;color:var(--b-dim)}

/* Exhibits. */
.term{font-family:var(--font-mono);font-size:.9375rem;line-height:1.7;background:var(--b-surface);border:1px solid var(--b-rule);border-radius:var(--radius);padding:20px 22px;overflow-x:auto;white-space:pre;color:var(--b-text)}
.term .c{color:var(--b-dim)}
.term .k{color:var(--b-action)}
/* The alert colour appears once on a page: the hostile text itself. */
.alert{border:1px solid var(--alert);border-radius:var(--radius);background:color-mix(in srgb,var(--alert) 6%,transparent);overflow:hidden}
.alert .label{color:var(--alert);background:color-mix(in srgb,var(--alert) 14%,transparent);padding:9px 18px}
.alert pre{padding:18px;white-space:pre-wrap;font-size:.9375rem;line-height:1.6;color:var(--b-text)}
.doc .say{margin:40px 0 0}
.doc .say blockquote p{font-size:clamp(1.5rem,2.6vw,2.125rem)}

/* Cards: two or three to a row, for layers, choices and feature lists. */
.cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}
.cards.three{grid-template-columns:repeat(3,minmax(0,1fr))}
.cards>li,.cards>div{background:var(--b-surface);border:1px solid var(--b-rule);border-top:2px solid var(--b-rule-strong);border-radius:var(--radius);padding:26px 28px}
.cards h3{font-size:1.375rem;margin-bottom:10px}
.cards .label{margin-bottom:10px}
.cards p+p,.cards p+.note{margin-top:12px}
.cards .note{margin-top:16px}

/* Tables scroll inside their own box on a narrow screen; the page never does. */
.tablewrap{overflow-x:auto}
.doc table{width:100%;border-collapse:collapse;font-size:1rem;line-height:1.5;min-width:600px}
.doc th,.doc td{text-align:left;vertical-align:top;padding:14px 16px 14px 0;border-bottom:1px solid var(--b-rule)}
.doc thead th{font:600 .8125rem/1.5 var(--font-mono);letter-spacing:.08em;text-transform:uppercase;color:var(--b-dim);border-bottom:1px solid var(--b-rule-strong)}
.doc tbody th{font-weight:600}
/* The comparison: the question down the side, two answers level, and under
   each answer about the other project the page it was read on. */
table.vs{min-width:780px}
table.vs tbody th{width:16%;font:600 .8125rem/1.5 var(--font-mono);letter-spacing:.08em;text-transform:uppercase;color:var(--b-action)}
table.vs td{width:42%}
.src{display:block;margin-top:10px;font-size:.875rem;color:var(--b-dim)}
.src a{color:var(--b-dim)}
.src a:hover{color:var(--b-action-lift)}
.verdict{display:block;margin-top:8px;font:600 .8125rem/1.5 var(--font-mono);letter-spacing:.06em;text-transform:uppercase;color:var(--b-note)}

/* Screenshots of the product keep the product's own colours. */
.shots{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}
.shots figure{border:1px solid var(--b-rule);border-radius:var(--radius);overflow:hidden;background:var(--b-surface)}
.shots figcaption{padding:14px 18px;font-size:1rem;line-height:1.5;border-top:1px solid var(--b-rule)}
.shots figcaption b{display:block}

/* The directory, when it lists every connector: smaller names, more groups. */
.doc .directory{grid-column:auto;grid-template-columns:repeat(2,minmax(0,1fr))}
.doc .directory .names{font-size:1.125rem;font-family:var(--font-text)}
.doc .group h3{font-size:1.125rem}

.doc .faq{grid-column:auto;max-width:48em}
.next{display:flex;flex-wrap:wrap;gap:12px;margin-top:40px}
.doc .ledger{margin-top:8px}

@media (max-width:1039px){
  .cards.three{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:899px){
  .cards,.cards.three,.shots,.doc .directory{grid-template-columns:minmax(0,1fr)}
  .kept{columns:1}
  .doc section{padding:48px 0}
  .doc .doc-head{padding:36px 0 36px}
  .next .btn{width:100%}
  .cards>li,.cards>div{padding:20px}
}

/* The long list of what he does: a term set as a label, its meaning beside it. */
.deflist{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0 32px;border-top:4px double var(--b-rule-strong)}
.deflist>div{padding:20px 0;border-bottom:1px solid var(--b-rule)}
.deflist dt{font:600 .8125rem/1.5 var(--font-mono);letter-spacing:.08em;text-transform:uppercase;color:var(--b-action);margin-bottom:6px}
.deflist dd{font-size:1rem;line-height:1.55}
@media (max-width:1039px){.deflist{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:699px){.deflist{grid-template-columns:minmax(0,1fr)}}
