/* ============================================================================
   agentcensus — the document page

   The stylesheet for static pages that are ONE long piece of prose rendered
   from a markdown source in docs/ — today `/connector` (the connector's
   supplier commitments, ADR-029 §C.7), generated at build by
   web/app/scripts/connector-page.mjs.

   It is a FILE rather than a <style> block on purpose. Production ships
   `style-src 'self'` with no `'unsafe-inline'` (terraform/modules/edge), so a
   page that carries its CSS inline is a page that renders unstyled at the one
   moment it matters: a security team opening it to decide whether to run our
   binary inside their network.

   Colours come from tokens.css and nothing here defines one. The palette has a
   single source (ADR-014) and a supplier document is not the place to start a
   second.
   ========================================================================= */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  background: var(--surface-page);
  color: var(--text-primary);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.62;
}

body {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 24px 96px;
}

header.site {
  padding: 26px 0 20px;
  border-bottom: 1px solid var(--hairline);
  margin-bottom: 40px;
}

.brand {
  font-weight: 650;
  font-size: 17px;
  letter-spacing: -0.01em;
}

/* The brand is the page's link home, so it is an <a> and not a <div>. It keeps
   the heading's colour rather than taking the link colour set below. */
a.brand {
  color: inherit;
  text-decoration: none;
}

h1 {
  font-size: 30px;
  font-weight: 660;
  letter-spacing: -0.022em;
  margin-bottom: 10px;
}

h2 {
  font-size: 19px;
  font-weight: 640;
  letter-spacing: -0.012em;
  margin: 40px 0 12px;
}

h3 {
  font-size: 15px;
  font-weight: 640;
  margin: 24px 0 8px;
}

p,
li {
  color: var(--text-secondary);
  margin-bottom: 12px;
}

strong {
  color: var(--text-primary);
  font-weight: 620;
}

ul,
ol {
  padding-left: 22px;
}

li {
  margin-bottom: 6px;
}

hr {
  border: 0;
  border-top: 1px solid var(--hairline);
  margin: 32px 0;
}

blockquote {
  border-left: 2px solid var(--hairline);
  padding-left: 14px;
  margin: 14px 0;
}

.lede {
  font-size: 17.5px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.updated {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 34px;
}

code {
  font-family: var(--mono);
  font-size: 0.88em;
  background: var(--neutral-wash);
  padding: 1.5px 5px;
  border-radius: 4px;
  word-break: break-all;
}

pre {
  background: var(--surface-1);
  border: 1px solid var(--hairline);
  border-radius: 9px;
  padding: 13px 15px;
  overflow-x: auto;
  margin: 12px 0;
}

pre code {
  background: none;
  padding: 0;
  font-size: 13px;
  line-height: 1.7;
  word-break: normal;
}

a {
  color: var(--viz-magnitude);
  text-underline-offset: 2px;
}

/* A cross-reference into the private wiki, rendered as text because there is
   nothing public to point at. The title attribute says which file it was, so a
   reader can ask for it by name. */
.offsite {
  color: var(--text-primary);
  border-bottom: 1px dotted var(--hairline);
}

/* An owner-set value that has not been set yet. Visible rather than invisible:
   a production build refuses to ship one at all (connector-page.mjs), and on a
   dev build the reader should be able to see that a number is missing rather
   than read a sentence that quietly makes no commitment. */
.unset {
  font-family: var(--mono);
  font-size: 0.85em;
  color: var(--text-muted);
  border: 1px dashed var(--hairline);
  border-radius: 4px;
  padding: 0 5px;
}

/* Tables and code are the two things wider than a phone. Both scroll in their
   own box rather than making the page scroll sideways. */
.scroller {
  overflow-x: auto;
  margin: 14px 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

th,
td {
  text-align: left;
  padding: 8px 10px;
  border-bottom: 1px solid var(--hairline);
  vertical-align: top;
}

thead th {
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  font-weight: 650;
}

footer {
  margin-top: 56px;
  padding-top: 22px;
  border-top: 1px solid var(--hairline);
  font-size: 13.5px;
  color: var(--text-muted);
}
