/* enterpriseaipilots.com
   A black-and-white test report with one yellow highlighter.
   Archivo (headings), Literata (body), Sometype Mono (ids and labels). */

:root {
  --bench: #F3F3F0;
  --sheet: #FFFFFF;
  --ink: #111111;
  --graphite: #4A4A48;
  --hair: #CFCFCA;
  --mark: #FFE14D;
  --mark-soft: #FFF6C2;
  --head: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --body: 'Literata', Georgia, 'Times New Roman', serif;
  --mono: 'Sometype Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  --max: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bench);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.62;
  font-optical-sizing: auto;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

h1, h2, h3 { font-family: var(--head); margin: 0; letter-spacing: -0.015em; }
h1 { font-weight: 800; font-size: clamp(2.2rem, 5.4vw, 3.9rem); line-height: 1.04; }
h2 { font-weight: 800; font-size: clamp(1.65rem, 3.4vw, 2.5rem); line-height: 1.1; }
h3 { font-weight: 700; font-size: 1.12rem; line-height: 1.28; letter-spacing: -0.005em; }
p { margin: 0 0 1em; }
a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { background: var(--mark); }
a:focus-visible, .btn:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
mark { background: var(--mark); color: inherit; padding: 0 0.1em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
strong { font-weight: 600; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 800px; }

.ref, .strip, .ruled-head, .form-head, .preview-bar, .tblock-top, .tblock dt, .keep, .fn-mark, .exhibit, .lab {
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.ref { color: var(--graphite); }

.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: 10px 14px; z-index: 10; }
.skip:focus { left: 8px; top: 8px; }
.preview-bar { background: var(--mark); color: var(--ink); text-align: center; padding: 6px 12px; border-bottom: 1px solid var(--ink); }

/* ── Document header ─────────────────────────────────────────────────── */
.top { background: var(--sheet); border-bottom: 2px solid var(--ink); }
.top .wrap { display: flex; align-items: center; gap: 20px; padding-top: 12px; padding-bottom: 12px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.brand:hover { background: none; }
.brand svg { width: 30px; height: 30px; flex: none; }
.brand-name { font-family: var(--head); font-weight: 800; font-size: 1.05rem; letter-spacing: -0.01em; }
.brand-by { font-family: var(--mono); font-size: 0.72rem; color: var(--graphite); letter-spacing: 0.02em; }
.top nav { display: flex; gap: 22px; flex-wrap: wrap; }
.top nav a { font-family: var(--head); font-weight: 500; font-size: 0.95rem; text-decoration: none; padding: 4px 0; border-bottom: 2px solid transparent; }
.top nav a:hover, .top nav a[aria-current="page"] { border-bottom-color: var(--ink); background: none; }

/* ── Buttons: square, black, no radius ───────────────────────────────── */
.btn {
  display: inline-block; font-family: var(--head); font-weight: 700; font-size: 1rem; line-height: 1.2;
  padding: 14px 20px; background: var(--ink); color: #fff; border: 2px solid var(--ink); text-decoration: none;
  box-shadow: 4px 4px 0 var(--mark);
}
.btn:hover { background: var(--mark); color: var(--ink); box-shadow: 4px 4px 0 var(--ink); }
.btn.ghost { background: var(--sheet); color: var(--ink); box-shadow: none; }
.btn.ghost:hover { background: var(--mark); }
.btn.small { padding: 9px 14px; font-size: 0.92rem; box-shadow: none; }
.actions { display: flex; flex-wrap: wrap; gap: 14px 16px; margin-top: 28px; }

/* ── Sheets and the header strip ─────────────────────────────────────── */
main > section { padding: 28px 0 0; }
main > section:last-child { padding-bottom: 28px; }
main > section.flush { padding-top: 0; }
main > section.flush > .wrap { border-top: 0; padding-top: 8px; }
main > section:not(.sheet) > .wrap { padding-top: 40px; }
main > section > .wrap { background: var(--sheet); border: 1px solid var(--ink); padding: 0 0 44px; max-width: calc(var(--max) - 48px); width: calc(100% - 32px); }
main > section > .wrap.narrow { max-width: 860px; }
main > section > .wrap > *:not(.strip) { margin-left: clamp(18px, 4vw, 48px); margin-right: clamp(18px, 4vw, 48px); }
.strip {
  display: grid; grid-template-columns: auto 1fr auto; align-items: stretch;
  border-bottom: 1px solid var(--ink); margin-bottom: 36px; color: var(--ink);
}
.strip span { padding: 9px 14px; }
.strip-id { background: var(--ink); color: #fff; }
.strip-name { border-right: 1px solid var(--ink); font-weight: 600; }
.strip-n { color: var(--graphite); white-space: nowrap; }

.sheet-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 20px 48px; align-items: end; margin-bottom: 32px; }
.sheet-head .intro { margin: 0; color: var(--graphite); font-size: 1.05rem; }
.sheet-head .intro + .intro { margin-top: 0.8em; }

/* ── Sheet 1: hero and title block ───────────────────────────────────── */
.hero-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px 48px; align-items: start; }
.lede { font-size: 1.18rem; line-height: 1.58; margin: 24px 0 0; max-width: 40em; }
.tblock { border: 2px solid var(--ink); background: var(--sheet); }
.tblock-top { display: flex; justify-content: space-between; gap: 12px; background: var(--ink); color: #fff; padding: 8px 12px; }
.tblock dl { margin: 0; }
.tblock dl > div { display: grid; grid-template-columns: 7.2em 1fr; border-bottom: 1px solid var(--ink); }
.tblock dt { padding: 11px 12px; border-right: 1px solid var(--ink); color: var(--graphite); }
.tblock dd { margin: 0; padding: 9px 12px; font-family: var(--head); font-weight: 500; font-size: 1rem; line-height: 1.35; }
.tblock .gate-row dd { display: flex; flex-wrap: wrap; gap: 6px; }
.out { border: 1.5px solid var(--ink); padding: 3px 9px; font-family: var(--head); font-weight: 700; font-size: 0.92rem; background: var(--sheet); }
.out.go { background: var(--mark); }
.tblock-note { margin: 0; padding: 12px; font-size: 1rem; line-height: 1.5; background: var(--mark-soft); }

/* ── Ruled tables (failure modes, roles, systems) ────────────────────── */
.ruled { border-top: 2px solid var(--ink); }
.ruled-head, .ruled-row { display: grid; gap: 8px 28px; padding: 16px 0; border-bottom: 1px solid var(--hair); }
.ruled-head { padding: 9px 0; border-bottom: 1px solid var(--ink); color: var(--graphite); }
.ruled-row:last-child { border-bottom: 2px solid var(--ink); }
.ruled-row p { margin: 0; }
.modes .ruled-head, .modes .ruled-row { grid-template-columns: 4rem minmax(0, 5fr) minmax(0, 7fr); }
.modes .ref { padding-top: 4px; }
.modes h3 { font-size: 1.22rem; }
.pairs .ruled-head, .pairs .ruled-row { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); }
.twin { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 48px; margin-top: 40px; }
.footnote { margin: 22px 0 0; max-width: 56em; color: var(--graphite); font-size: 1rem; }
.fn-mark { background: var(--mark); color: var(--ink); padding: 2px 6px; margin-right: 6px; }

/* ── Fig. 1: the permission and audit circuit ────────────────────────── */
.figure { margin-top: 0; margin-bottom: 0; border: 1px solid var(--ink); padding: 22px 18px 14px;
  background-color: var(--sheet);
  background-image: linear-gradient(var(--bench) 1px, transparent 1px), linear-gradient(90deg, var(--bench) 1px, transparent 1px);
  background-size: 20px 20px; }
.figure figcaption { margin-top: 14px; font-size: 1rem; color: var(--graphite); background: var(--sheet); display: inline-block; }
.circuit { display: block; width: 100%; height: auto; }
.circuit.tall { display: none; max-width: 400px; margin: 0 auto; }
.circuit .node rect { fill: #fff; stroke: #111; stroke-width: 1.5; }
.circuit .node.key rect { stroke-width: 3; }
.circuit .node.mark rect { fill: #FFE14D; }
.circuit .t { font-family: var(--head); font-weight: 700; font-size: 15px; fill: #111; }
.circuit .s { font-family: var(--body); font-size: 12.5px; fill: #111; }
.circuit .lab { font-size: 10.5px; fill: #111; letter-spacing: 0.03em; }
.circuit .lab.soft { fill: #4A4A48; }
/* the tall drawing is scaled down less, so its type is set larger */
.circuit.tall .t { font-size: 17px; }
.circuit.tall .s { font-size: 14.5px; }
.circuit.tall .lab { font-size: 12px; }
.circuit .wire { fill: none; stroke: #111; stroke-width: 1.6; }
.circuit .wire.loop { stroke-dasharray: 6 4; }
.circuit marker path { fill: #111; }
.circuit .boundary { stroke: #111; stroke-width: 1.5; }
.circuit .audit rect { fill: #111; }
.circuit .audit .t, .circuit .audit .s { fill: #fff; }
.circuit .drop { fill: none; stroke: #111; stroke-width: 1.2; stroke-dasharray: 2 4; }

/* ── Sheet 4: the attributed example ─────────────────────────────────── */
.exhibit { display: inline-block; background: var(--mark); padding: 5px 10px; margin-top: 0; margin-bottom: 18px; border: 1px solid var(--ink); }
.ex-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px 48px; align-items: start; }
.ex-copy h2 { margin-bottom: 20px; }
.ex-copy .body { max-width: 40em; }
.limits { border: 2px solid var(--ink); padding: 18px 20px; position: relative;
  background: repeating-linear-gradient(135deg, var(--sheet) 0 10px, var(--bench) 10px 11px); }
.limits h3 { display: inline; background: var(--ink); color: #fff; padding: 3px 8px; font-size: 0.98rem; }
.limits p { margin: 14px 0 0; background: var(--sheet); padding: 10px 12px; border: 1px solid var(--hair); font-size: 1rem; }
.stages { list-style: none; margin-top: 36px; margin-bottom: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--ink); }
.stages li { padding: 18px 18px 20px; border-right: 1px solid var(--ink); }
.stages li:last-child { border-right: 0; }
.stages svg { display: block; width: 136px; max-width: 100%; height: auto; margin-bottom: 14px; }
.stages .e { fill: none; stroke: #111; stroke-width: 1.5; }
.stages .hot-e { fill: none; stroke: #FFE14D; stroke-width: 9; stroke-linecap: round; }
.stages .n { fill: #fff; stroke: #111; stroke-width: 1.5; }
.stages .n.hot { fill: #FFE14D; }
.stages .hl { fill: #FFE14D; opacity: 0.85; }
.stages h3 { margin: 4px 0 8px; }
.stages p { margin: 0; font-size: 1rem; line-height: 1.55; }

/* ── Sheet 5: the run of steps and the decision gate ─────────────────── */
.run { list-style: none; padding: 0; margin-top: 0; margin-bottom: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 0; }
.run li { position: relative; padding: 0 28px 0 0; }
.run-top { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; position: relative; }
.run-top::after { content: ''; flex: 1; height: 2px; background: var(--ink); }
.pin { width: 16px; height: 16px; border: 2px solid var(--ink); background: var(--sheet); flex: none; }
.run h3 { font-size: 1.3rem; margin-bottom: 8px; }
.run p { margin: 0; }
.keep { display: block; color: var(--graphite); margin-bottom: 2px; }
.run .gate .pin { width: 20px; height: 20px; transform: rotate(45deg); background: var(--mark); margin: 0 4px; }
.run .gate .ref { color: var(--ink); font-weight: 600; }
.run .gate h3 { display: inline; background: var(--mark); padding: 0 0.12em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.run .gate p { margin-top: 8px; }
.outs { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.outs li { padding: 5px 11px; border: 2px solid var(--ink); font-family: var(--head); font-weight: 700; font-size: 0.98rem; background: var(--sheet); }
.outs li.go { background: var(--mark); }

/* ── Sheets 6 and 8: numbered clauses ────────────────────────────────── */
.clauses { margin-top: 0; margin-bottom: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; border-top: 2px solid var(--ink); }
.clauses > div { padding: 20px 0 22px; border-bottom: 1px solid var(--hair); }
.clauses dt { font-family: var(--head); font-weight: 700; font-size: 1.16rem; line-height: 1.3; margin-bottom: 8px; display: grid; grid-template-columns: 2.6em 1fr; }
.clauses dt .ref { padding-top: 5px; }
.clauses dd { margin: 0 0 0 2.6em; }

/* ── Sheet 7: the acceptance form ────────────────────────────────────── */
.form { border: 2px solid var(--ink); }
.form-head, .form-row { display: grid; grid-template-columns: 3.4rem minmax(0, 1fr) 5.6rem 5.6rem; align-items: stretch; }
.form-head { background: var(--ink); color: #fff; }
.form-head span, .form-row > * { padding: 12px 12px; border-right: 1px solid var(--ink); margin: 0; }
.form-head span { border-right-color: #555; padding: 8px 12px; }
.form-head span:nth-child(n+3) { text-align: center; }
.form-row { border-top: 1px solid var(--ink); }
.form-row > *:last-child, .form-head span:last-child { border-right: 0; }
.form-row:nth-child(even) { background: #FAFAF8; }
.form-row p { font-family: var(--head); font-weight: 500; font-size: 1.06rem; line-height: 1.4; }
.form-row .ref { padding-top: 16px; }
.tick { display: flex; align-items: center; justify-content: center; }
.tick::before { content: ''; width: 20px; height: 20px; border: 2px solid var(--ink); background: var(--sheet); }

/* ── Sheet 9: signatories ────────────────────────────────────────────── */
.signers { display: grid; grid-template-columns: 1fr 1fr; gap: 36px 48px; }
.signer h3 { font-size: 1.7rem; font-weight: 800; }
.sig-line { display: block; height: 0; border-bottom: 2px solid var(--ink); margin: 10px 0 8px; }
.signer p { margin: 10px 0 0; }

/* ── Sheet 10: proposal slip ─────────────────────────────────────────── */
.closing { padding-bottom: 28px; }
.slip { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 32px 48px; align-items: center; }
.slip h2 { margin-bottom: 16px; }
.slip-fields { list-style: none; margin: 0; padding: 0; border: 2px solid var(--ink); background: var(--mark-soft); }
.slip-fields li { display: grid; grid-template-columns: 2.4em 1fr; gap: 0 6px; padding: 14px 16px 12px; border-bottom: 1px solid var(--ink); font-family: var(--head); font-weight: 500; }
.slip-fields li:last-child { border-bottom: 0; }
.slip-fields .ref { padding-top: 4px; }
.blank { grid-column: 2; height: 22px; border-bottom: 1px dashed var(--ink); }

/* ── Guide and trust pages (shared markup, this site's dress) ────────── */
.page-head h1 { font-size: clamp(2rem, 4.6vw, 3.1rem); }
.byline, .note { font-family: var(--mono); font-size: 0.82rem; color: var(--graphite); margin-top: 18px; margin-bottom: 0; }
.lbl { font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--graphite); }
.lbl.chip { display: inline-block; background: var(--ink); color: #fff; padding: 5px 10px; margin-bottom: 18px; }
.display { font-family: var(--head); }
.h-md { font-size: 1.6rem; font-weight: 800; }
.mail-row { margin-top: 24px; margin-bottom: 0; }
.mail { background: var(--mark); padding: 2px 6px; overflow-wrap: anywhere; }
.people { display: grid; grid-template-columns: 1fr 1fr; gap: 32px 48px; }
.person { border-top: 2px solid var(--ink); padding-top: 12px; }
.person h2, .person h3 { margin: 4px 0 8px; }
.person p { margin: 0; }

.prose { font-size: 1.06rem; }
.prose > * { max-width: 42em; }
.prose h2 { font-size: 1.7rem; margin: 2em 0 0.6em; padding-top: 0.7em; border-top: 2px solid var(--ink); max-width: none; }
.prose h3 { font-size: 1.22rem; margin: 1.6em 0 0.4em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.1em; }
.prose li { margin-bottom: 0.45em; }
.prose li::marker { font-family: var(--mono); font-size: 0.85em; }
.prose blockquote { margin: 1.4em 0; padding: 12px 16px; background: var(--mark-soft); border-left: 4px solid var(--ink); }
.prose table { width: 100%; max-width: none; border-collapse: collapse; margin: 1.4em 0; border: 2px solid var(--ink); font-size: 1rem; }
.prose th { font-family: var(--mono); font-size: 0.76rem; letter-spacing: 0.04em; text-transform: uppercase; text-align: left; background: var(--ink); color: #fff; padding: 8px 12px; }
.prose td { padding: 12px; border-top: 1px solid var(--ink); border-right: 1px solid var(--hair); vertical-align: top; }
.prose td:first-child { font-family: var(--head); font-weight: 500; }
.prose code { font-family: var(--mono); font-size: 0.9em; background: var(--bench); padding: 1px 4px; }
.prose hr { border: 0; border-top: 1px solid var(--ink); margin: 2em 0; }

/* ── Footer: a title block ───────────────────────────────────────────── */
.foot { margin-top: 28px; background: var(--sheet); border-top: 2px solid var(--ink); padding: 28px 0 36px; }
.foot-block { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--ink); }
.foot-block > div { padding: 10px 14px 12px; border-right: 1px solid var(--ink); display: flex; flex-direction: column; gap: 2px; font-family: var(--head); font-weight: 500; }
.foot-block > div:last-child { border-right: 0; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 20px; font-family: var(--head); font-size: 0.98rem; }
.foot-legal { margin: 16px 0 0; font-family: var(--mono); font-size: 0.78rem; color: var(--graphite); }

/* ── Tablet ──────────────────────────────────────────────────────────── */
@media (max-width: 960px) {
  .hero-grid, .ex-grid, .slip, .sheet-head { grid-template-columns: 1fr; }
  .sheet-head { align-items: start; gap: 14px; }
  .twin { grid-template-columns: 1fr; }
  .run { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stages { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stages li:nth-child(2n) { border-right: 0; }
  .stages li:nth-child(-n+2) { border-bottom: 1px solid var(--ink); }
  .clauses { grid-template-columns: 1fr; }
  .top nav { order: 3; width: 100%; gap: 6px 18px; }
}

/* ── Phone: the tall circuit replaces the wide one ───────────────────── */
@media (max-width: 720px) {
  body { font-size: 16.5px; }
  .circuit.wide { display: none; }
  .circuit.tall { display: block; }
  .figure { padding: 14px 8px 10px; }
  .modes .ruled-head { display: none; }
  .modes .ruled-row { grid-template-columns: 1fr; gap: 4px; }
  .pairs .ruled-head span:last-child { display: none; }
  .pairs .ruled-head, .pairs .ruled-row { grid-template-columns: 1fr; gap: 4px; }
  .run { grid-template-columns: 1fr; gap: 28px; }
  .run li { padding-right: 0; }
  .stages { grid-template-columns: 1fr; }
  .stages li, .stages li:nth-child(2n) { border-right: 0; border-bottom: 1px solid var(--ink); }
  .stages li:last-child { border-bottom: 0; }
  .signers, .people { grid-template-columns: 1fr; }
  .foot-block { grid-template-columns: 1fr 1fr; }
  .foot-block > div:nth-child(2n) { border-right: 0; }
  .foot-block > div:nth-child(-n+2) { border-bottom: 1px solid var(--ink); }
  .form-head, .form-row { grid-template-columns: 2.6rem minmax(0, 1fr) 3.7rem 3.7rem; }
  .form-head span, .form-row > * { padding: 10px 8px; }
  .form-head span { font-size: 0.66rem; letter-spacing: 0; padding: 8px 4px; }
  .form-row p { font-size: 1rem; }
  .strip { grid-template-columns: auto 1fr; margin-bottom: 26px; }
  .strip-n { display: none; }
  .strip-name { border-right: 0; }
  .brand-by { display: none; }
  .btn { width: 100%; text-align: center; }
  .btn.small { width: auto; }
  .actions { gap: 14px; }
  main > section > .wrap { width: calc(100% - 20px); padding-bottom: 32px; }
  .clauses dt { grid-template-columns: 2.4em 1fr; }
  .clauses dd { margin-left: 0; }
  .tblock dl > div { grid-template-columns: 6.4em 1fr; }
  .prose table { display: block; overflow-x: auto; }
}

@media print {
  body { background: #fff; }
  .top nav, .btn, .preview-bar, .skip { display: none; }
  main > section { break-inside: avoid; }
}

/* Trust pages use the shared markup: keep every sheet on them one width. */
main > section:not(.sheet) > .wrap { max-width: 860px; }
.prose > h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
