/* Document layouts share the homepage's stock, ink, type and ruled rows. */
:root {
  --ink: var(--forest); --guava: var(--pink); --guava-soft: var(--pink-soft);
  --accent: var(--forest); --night: var(--forest-deep); --tint: var(--paper-2);
  --card: var(--paper); --radius: 0px; --radius-sm: 0px; --header-h: var(--head-h);
}
.content-page { overflow-wrap: break-word; }
.content-page h1 { font-size: clamp(2.6rem, 1.3rem + 4.6vw, 5.25rem); font-weight: 750; line-height: 1.02; letter-spacing: -.038em; }
.content-page h2 { font-size: clamp(2rem, 1.3rem + 2.4vw, 3.25rem); font-weight: 750; line-height: 1.08; letter-spacing: -.035em; }
.content-page h3 { font-size: 1.375rem; line-height: 1.2; letter-spacing: -.02em; }
.site-banner { position: relative; z-index: 10; }
.site-banner .site-head { margin: 0; }
.content-page .site-foot { margin-top: 0; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: .6em; min-height: 52px; padding: 12px 24px; border: 0; border-radius: 4px; background: var(--forest); color: var(--on-forest); font: 650 1.0625rem var(--sans); text-decoration: none; }
.button:hover { background: var(--forest-2); }
.on-forest .button { background: var(--pink); color: var(--forest); }
.button-small { min-height: 44px; padding: 8px 16px; }
.arrow::after { content: '→'; }
.skip-link { position: absolute; z-index: 100; left: 16px; top: -100px; padding: 12px 16px; background: var(--pink); color: var(--forest); }
.skip-link:focus { top: 16px; }
.section-lede { max-width: 64ch; margin-top: 24px; font-size: 1.125rem; line-height: 1.6; color: var(--muted); }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 16px 24px; margin-top: 28px; }
.sample-page { padding-block: var(--section); }
.sample-page > .wrap { max-width: 1024px; }
.sample-page h1 { max-width: 19ch; }
.doc-page section { margin-top: 64px; padding-top: 32px; border-top: 1px solid var(--rule); }
.doc-page section > p { margin-top: 20px; max-width: 64ch; line-height: 1.65; }
.doc-page section > ul { margin-top: 20px; padding-left: 1.25em; list-style: disc; max-width: 64ch; }
.doc-page li + li { margin-top: 8px; }
.doc-page :is(p, li) a { text-underline-offset: .22em; }
.research-signup--block { margin-block: 48px; padding: clamp(20px, 4vw, 40px); border: 1px solid var(--rule); border-top: 2px solid var(--forest); background: var(--paper-2); }
.research-signup--block h2 { max-width: 22ch; }
.research-signup--block form { max-width: 40rem; }
.security-ledger { margin-top: 32px; border-top: 2px solid var(--forest); }
.security-ledger > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 24px; padding: 24px 0; border-bottom: 1px solid var(--rule); }
.security-ledger dt { font-weight: 650; }
.security-ledger dd { color: var(--muted); }
.security-process-title { margin-top: 40px; }
.security-process { margin-top: 20px; padding-left: 1.4em; max-width: 64ch; list-style: decimal; }
@media (max-width: 820px) {
  .security-ledger > div { grid-template-columns: minmax(0, 1fr); gap: 10px; }
}
.doc-facts { margin-top: 24px; border-top: 2px solid var(--forest); }
.doc-facts li { display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: 24px; padding: 20px 0; border-bottom: 1px solid var(--rule); }
.doc-facts li + li { margin-top: 0; }
.doc-facts li span { color: var(--muted); }
/* /about's logo row sits in the ledger: its marks are list items too, so undo the row styling. */
.doc-logos > div { align-self: center; }
.doc-facts .platform-logos li { display: flex; padding: 0; border: 0; }
.doc-facts .platform-name { color: var(--forest); }
/* A mark under a ledger label (the benchmarks, GitHub, OpenClaw on /about). */
.doc-label { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.doc-marks { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.doc-marks img { display: block; }
/* /about's Compliance row: the frameworks as plain text tags, since none of their owners offers a "compliant" logo. */
.doc-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; }
.doc-facts .doc-tags span { padding: 3px 9px; border: 1px solid var(--rule-strong); font-family: var(--mono); font-size: .8125rem; line-height: 1.5; color: var(--forest); white-space: nowrap; }
/* /about's Certifications: the issuer's mark, then its certifications, each with its year. */
.doc-certs .doc-cert-mark { align-self: center; }
.doc-cert-list p { display: grid; grid-template-columns: 3.25rem minmax(0, 1fr); margin: 0; }
.doc-cert-list p + p { margin-top: 6px; }
.doc-year { font-family: var(--mono); font-size: .875rem; line-height: 1.75; color: var(--muted); }
.about-head { display: flex; align-items: end; gap: 32px; }
.about-head .founder-photo { width: 120px; height: 120px; object-fit: cover; flex: none; }
.answer-page h1 { max-width: 22ch; }
.answer-eyebrow { margin-bottom: 24px; color: var(--muted); }
.answer-byline { margin-top: 24px; color: var(--muted); font-size: .9375rem; }
.answer-page .doc-facts li { grid-template-columns: 12rem minmax(0, 1fr); }
.doc-page section > .answer-more { padding-left: 0; list-style: none; }
.answer-more li { padding: 16px 0; border-bottom: 1px solid var(--rule); }
.answer-more a { font-weight: 600; }
.answer-table-scroll { overflow-x: auto; margin-top: 24px; max-width: 100%; }
.answer-table { width: 100%; min-width: 36rem; border-collapse: collapse; font-size: .9375rem; }
.answer-table :is(th,td) { padding: 14px 8px; text-align: left; border-bottom: 1px solid var(--rule); }
.answer-table thead th { font: 500 .75rem var(--mono); color: var(--muted); }
.answer-table tr > :nth-child(n + 4) { text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums; }
.answer-swipe { display: none; }
.uses-more { display: block; margin-top: 16px; }
.sample-docs { margin-top: 64px; }
.sample-doc { background: var(--paper); border-top: 2px solid var(--forest); padding-top: 24px; }
.sample-doc .doc-head { padding: 0 0 24px; border-bottom: 1px solid var(--rule); }
.sample-doc .doc-stamp { display: none; }
.sample-doc .doc-kind { color: var(--muted); font: 400 .8125rem var(--mono); }
.sample-doc .doc-head :is(h2,h3) { margin-top: 12px; font-size: 1.75rem; }
.sample-doc .doc-head :is(h2,h3) span { display: block; margin-top: 8px; font: 400 .8125rem/1.5 var(--mono); color: var(--muted); letter-spacing: 0; }
.sample-doc .doc-meta { margin-top: 8px; color: var(--muted); font: 400 .8125rem/1.5 var(--mono); }
.doc-table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.doc-table :is(th,td) { padding: 18px 8px; text-align: left; border-bottom: 1px solid var(--rule); vertical-align: top; }
.doc-table thead th { color: var(--muted); font: 500 .75rem/1.4 var(--mono); }
.doc-table tbody th { font-weight: 600; }
.doc-table tr > :first-child { width: 2.5ch; padding-left: 0; font-family: var(--mono); }
.doc-table tr > :is(:nth-child(3),:nth-child(4)) { width: 7rem; text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums; }
.doc-table tr > :last-child { width: 8rem; padding-right: 0; text-align: right; }
.verdict-key .verdict, .doc-table .verdict { display: inline-block; padding: 6px 9px; border: 1.5px solid var(--forest); border-radius: 3px; color: var(--forest); font: 700 .75rem/1.4 var(--mono); text-transform: uppercase; letter-spacing: .05em; white-space: nowrap; transform: rotate(-3deg); }
.verdict-build { background: var(--pink); }
.verdict-pilot { border-style: dashed !important; }
.verdict-key .verdict-no,.doc-table .verdict-no { border-color: var(--red); color: var(--red); background: rgb(181 48 42 / .06); }
.doc-table .why { display: block; margin-top: 8px; color: var(--muted); font-size: .875rem; font-weight: 400; }
.doc-foot { margin-top: 24px; }
.verdict-key { margin-top: 32px; border-top: 2px solid var(--forest); }
.verdict-key > div { display: grid; grid-template-columns: 8rem minmax(0,1fr); align-items: start; gap: 24px; padding: 20px 0; border-bottom: 1px solid var(--rule); }
.verdict-key dd { color: var(--muted); }
.sample-page-cta { margin-top: 96px; padding-top: 40px; border-top: 1px solid var(--rule); }
.sample-page-cta h2 { max-width: 19ch; }
.free-report { padding: 64px 0; }
.free-report .report { border-radius: 0; }
@media(max-width:820px) {
  .content-page .button { max-width: 100%; white-space: normal; text-align: center; }
  .about-head { display: block; }
  .about-head .founder-photo { margin-bottom: 24px; }
  .doc-facts li,.answer-page .doc-facts li { grid-template-columns: minmax(0,1fr); gap: 8px; }
  .doc-label { gap: 10px; }
  .doc-marks { flex-direction: row; align-items: center; gap: 16px; }
}
@media(max-width:639px) {
  .answer-swipe { display: block; margin-top: 16px; font-size: .8125rem; color: var(--muted); }
  .doc-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .doc-table,.doc-table tbody { display: block; }
  .doc-table tr { display: grid; grid-template-columns: 2ch minmax(0,1fr); gap: 8px 12px; padding: 20px 0; border-bottom: 1px solid var(--rule); }
  .doc-table tr > * { width: auto !important; padding: 0 !important; border: 0 !important; text-align: left !important; }
  .doc-table tr > :first-child { grid-column: 1; grid-row: 1 / span 4; color: var(--muted); }
  .doc-table tr > :nth-child(n+2) { grid-column: 2; }
  .doc-table td[data-label] { font-size: .8125rem; color: var(--muted); }
  .doc-table td[data-label]::after { content: ' ' attr(data-label); }
  .doc-table .row-no td[data-label] { display: none; }
  .verdict-key > div { grid-template-columns: 1fr; gap: 16px; }
}
/* Supporting copy uses the same square, ruled sheets as the homepage. */
.guards { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 32px; }
.guards > li { padding: 24px 0; border-top: 2px solid var(--forest); }
.guards h3 { margin: 12px 0; }
.guards p { color: var(--muted); max-width: 60ch; }
.clause-num { font: 500 .8125rem var(--mono); color: var(--muted); }
.faq-list { border-top: 2px solid var(--forest); }
.faq-list details { padding: 24px 0; border-bottom: 1px solid var(--rule); }
.faq-list summary { cursor: pointer; }
.faq-list summary h3 { display: inline; }
.faq-list details p { margin-top: 16px; max-width: 64ch; }
/* The firm's other answer pages close the same list, each a link to its own answer. */
.faq-list .faq-link { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; padding: 24px 0; border-bottom: 1px solid var(--rule); color: inherit; text-decoration: none; }
.faq-list .faq-link h3 { display: inline; text-decoration: underline; text-decoration-color: var(--pink); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.faq-list .faq-link:hover h3 { text-decoration-color: currentColor; }
.faq-list .faq-link .arrow { flex: none; color: var(--muted); }
@media(max-width:820px) { .guards { grid-template-columns: 1fr; gap: 16px; } }
.guards > li { display: grid; align-content: start; }

/* Document pages as research notes (GUA-57, November 12, 2026). The title, short answer and
   byline stand on a forest band that meets the header; the band is painted by each of those
   elements (border-image reaches both edges of the window), so the markup, the Markdown copies
   and the page dates stay as they were. Sections are numbered, and site.js adds a contents
   rail beside them on wide windows. */
.sample-page { padding-top: 0; }
.sample-page > .wrap { max-width: 1120px; }
.sample-page > .wrap > :is(h1, p, .about-head):not(section ~ *, dl ~ *) {
  margin: 0;
  padding: 0 0 clamp(18px, 2vw, 26px);
  background-color: var(--forest);
  border-image: conic-gradient(var(--forest) 0 0) fill 0 / 0 / 0 100vw;
  color: var(--on-forest);
}
.sample-page > .wrap > :first-child { padding-top: clamp(44px, 6vw, 88px) !important; }
.sample-page > .wrap > :is(h1, p, .about-head):is(:has(+ section), :has(+ dl), :last-child):not(section ~ *, dl ~ *) {
  padding-bottom: clamp(44px, 5.5vw, 80px);
}
.sample-page > .wrap > h1,
.sample-page .about-head h1 { color: var(--on-forest); max-width: 20ch; font-size: clamp(2.5rem, 1.2rem + 4.2vw, 4.75rem); line-height: .98; }
.sample-page > .wrap > .section-lede:not(section ~ *) { max-width: none; padding-right: max(0px, calc(100% - 44rem)); font-size: clamp(1.125rem, 1rem + .45vw, 1.3125rem); line-height: 1.55; color: var(--on-forest); }
.sample-page > .wrap > .answer-eyebrow { font: 500 .8125rem/1.5 var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--pink); }
.sample-page > .wrap > .answer-eyebrow a { text-decoration: none; }
.sample-page > .wrap > .answer-eyebrow a::before { content: "\2190\00a0\00a0"; }
.sample-page > .wrap > .answer-eyebrow a:hover { text-decoration: underline; }
.sample-page > .wrap > .answer-byline.answer-byline:not(section ~ *) { font: 400 .8125rem/1.6 var(--mono); color: var(--on-forest-muted); }
.sample-page > .wrap > .fine-print.fine-print:not(section ~ *) { color: var(--on-forest-muted); }
.sample-page > .wrap > .answer-eyebrow.answer-eyebrow { color: var(--pink); }
.sample-page > .wrap > :is(p, .about-head):not(section ~ *, dl ~ *) a { color: var(--on-forest); }
.sample-page > .wrap > .fine-print:not(section ~ *) { font-size: .9375rem; }
.sample-page > .wrap > :is(h1, p):not(section ~ *, dl ~ *) :focus-visible,
.about-head :focus-visible { outline-color: var(--pink); }
.sample-page > .wrap > .hero-actions:not(section ~ *) .text-link { text-decoration-color: rgb(243 241 236 / .35); }
main.sample-page:not(:has(section, dl)) { background: var(--forest); }
.about-head { align-items: center; }
.about-head .founder-photo { outline: 1px solid rgb(243 241 236 / .3); outline-offset: 5px; }

.doc-page > .wrap { counter-reset: doc-section; }
.doc-page > .wrap > section:first-of-type { margin-top: clamp(40px, 5vw, 72px); padding-top: 0; border-top: 0; }
.doc-page > .wrap > section:not(.sample-page-cta) { counter-increment: doc-section; }
.doc-page > .wrap > section > h2 { font-size: clamp(1.75rem, 1.25rem + 1.7vw, 2.625rem); line-height: 1.05; }
.doc-page > .wrap > section:not(.sample-page-cta) > h2::before {
  content: counter(doc-section, decimal-leading-zero);
  display: block; margin-bottom: 14px;
  font: 500 .8125rem/1 var(--mono); letter-spacing: 0; color: var(--muted);
}
.doc-page section > p a, .doc-page li a { text-decoration-color: var(--pink); text-decoration-thickness: 2px; transition: text-decoration-color 160ms var(--ease-out); }
.doc-page section > p a:hover, .doc-page li a:hover { text-decoration-color: currentColor; }
.doc-facts li { transition: background-color 200ms var(--ease-out); }
.sample-page-cta { position: relative; margin-top: clamp(64px, 8vw, 112px); padding: clamp(28px, 4vw, 56px); border: 0; background: var(--forest) var(--grain); color: var(--on-forest); isolation: isolate; }
.sample-page-cta::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 120% at 100% 0%, rgb(229 177 176 / .22), transparent 62%); pointer-events: none; }
.doc-page section.sample-page-cta { border-top: 0; padding-top: clamp(28px, 4vw, 56px); }
.sample-page-cta .section-lede { color: var(--on-forest-muted); }
.sample-page-cta a:not(.button) { color: var(--on-forest); }
.sample-page-cta .button { background: var(--pink); color: var(--forest); }
.sample-page-cta .button:hover { background: #ecc2c1; }
.sample-page-cta :focus-visible { outline-color: var(--pink); }
.faq-list details[open] { box-shadow: inset 2px 0 0 var(--pink); padding-left: 18px; }

/* The contents rail (site.js: it lists the sections and marks the one being read). */
.doc-toc { display: none; }
@media (min-width: 1100px) {
  .doc-page.has-toc > .wrap { position: relative; }
  .doc-page.has-toc > .wrap > section,
  .doc-page.has-toc > .wrap > section ~ p { max-width: calc(100% - 17.5rem); }
  .doc-toc { display: block; position: absolute; right: var(--gutter); bottom: 0; width: 13.5rem; }
  .doc-toc-inner { position: sticky; top: calc(var(--head-h) + 28px); padding-bottom: 32px; }
  .doc-toc-title { padding-bottom: 12px; border-bottom: 2px solid var(--forest); font: 500 .75rem/1.4 var(--mono); color: var(--muted); }
  .doc-toc ol { counter-reset: toc; }
  .doc-toc li { counter-increment: toc; border-bottom: 1px solid var(--rule); }
  .doc-toc li + li { margin-top: 0; }
  .doc-toc a { display: grid; grid-template-columns: 1.75rem minmax(0, 1fr); padding: 10px 0; color: var(--muted); font-size: .875rem; line-height: 1.35; text-decoration: none; transition: color 160ms var(--ease-out); }
  .doc-toc a::before { content: counter(toc, decimal-leading-zero); font: 500 .6875rem/1.75 var(--mono); }
  .doc-toc a:hover { color: var(--forest); }
  .doc-toc a[aria-current] { color: var(--forest); font-weight: 600; box-shadow: inset 0 -2px 0 var(--pink); }
}
/* A reading line across the bottom of the header, where the browser can tie it to the scroll. */
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    body:has(main.doc-page section) .site-head::after {
      content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
      background: var(--pink); transform-origin: 0 50%;
      animation: read-line linear both; animation-timeline: scroll(root);
    }
  }
}
@keyframes read-line { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* 404: the figure itself, large, on a forest field. */
body:has(#not-found-title) { background: var(--forest); }
body:has(#not-found-title) main { position: relative; isolation: isolate; color: var(--on-forest); }
body:has(#not-found-title) main::before {
  content: "404"; position: absolute; right: var(--gutter); top: 50%; z-index: -1; translate: 0 -50%;
  font: 400 clamp(9rem, 30vw, 26rem)/.8 var(--mono); letter-spacing: -.08em; color: rgb(243 241 236 / .07);
}
body:has(#not-found-title) .doc { padding-block: clamp(96px, 16vw, 200px); }
body:has(#not-found-title) .doc-body { padding: 0; }
body:has(#not-found-title) .doc-body::before { display: none; }
body:has(#not-found-title) .eyebrow { font: 500 .8125rem/1.5 var(--mono); color: var(--pink); }
#not-found-title { margin-top: 16px; max-width: 12ch; font-size: clamp(2.75rem, 1.4rem + 5vw, 5.5rem); font-weight: 750; line-height: .96; letter-spacing: -.045em; }
#not-found-title + p { margin-top: 20px; color: var(--on-forest-muted); font-size: 1.125rem; }
#not-found-title ~ p:last-child { margin-top: 32px; }
body:has(#not-found-title) main :focus-visible { outline-color: var(--pink); }
