/* The site's other pages in the simple design Chris approved on 2026-11-28 ("so much better. it works for me. use
   this design for the rest of the website update"): About, Projects and its project pages, In the works, the
   Slay OS tour and the OpenExO feature. builds/builds.css is the one home of the design: the header, the tokens,
   the type, the small cards and their states. This file adds only what these pages need beyond it, with its
   sizes (--t-s to --t-xl) and its space (--s1 to --s8).

   The rules: each page leads with its title and one line under it. Paper behind, white cards on it, no outlines.
   Inter for everything; Fraunces only for a page's title, a lead sentence and a big figure. Light only. */

/* The top of a page: its title and one line. A project page's title is the size of a build's name. */
.p-head .wrap { display: grid; gap: var(--s3); justify-items: start; padding-top: var(--s5); padding-bottom: var(--s5); }
.p-head h1 { max-width: 20em; }
.p-line { max-width: var(--measure); color: var(--soft); }
.p-head .state { margin-top: calc(-1 * var(--s2)); }
.p-sub .wrap { padding-top: var(--s3); gap: var(--s2); }
.p-sub h1 { font-size: var(--t-l); line-height: 1.15; }
.p-sub .back { margin-bottom: var(--s1); }
.p-sub .state { margin-top: 0; }

/* Buttons: filled, with no outline, like the build page's own. The dark one is the page's main action. */
.p-acts { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s2); }
.p-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: var(--s2) var(--s4); border: 0; border-radius: 12px;
  background: var(--tab); color: var(--ink); font: 600 var(--t-s)/1.3 var(--body); text-decoration: none; cursor: pointer; }
.p-btn.go { background: var(--ink); color: var(--card); }
.p-btn:hover { text-decoration: underline; }

/* The parts of a page, with room between them. */
.p-main { padding-bottom: var(--gap); }
.p-part { margin-top: var(--gap); }
.p-part:first-child { margin-top: var(--s3); }
.p-part > h2 { margin-bottom: var(--s4); max-width: 24em; }
.p-text { max-width: var(--measure); color: var(--say); }
div.p-text { display: grid; gap: var(--s3); }
.p-note { margin-top: var(--s4); max-width: var(--measure); font-size: var(--t-s); color: var(--soft); }
.p-text a, .p-note a, .p-card a { text-underline-offset: 0.18em; }

/* A small card's name, when it sits under a section's heading (builds.css styles the home page's, one level down). */
.small h2, .small h3 { font-family: var(--body); font-size: var(--t-m); font-weight: 600; line-height: 1.3; }
.small h3 a { text-decoration: none; }
.small h3 a::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: 16px; }
.small h3 a:focus-visible { outline: none; }
.small h3 a:focus-visible::after { outline: 3px solid var(--focus); outline-offset: 3px; }
.small:has(h3 a):hover h3 a { text-decoration: underline; }
.small p { color: var(--say); }
.small .state { color: var(--soft); }
.small .state.live { color: var(--live); }
.small .role { font-size: var(--t-s); color: var(--soft); margin-top: calc(-1 * var(--s1)); }
.tools, .small .tools, .p-card .tools { font-size: var(--t-s); line-height: 1.5; color: var(--soft); }
.group > h2 { margin-bottom: var(--s4); }

/* A white card that holds one part of a project page: a small label, then its words. */
.p-cards { display: grid; gap: var(--s4); grid-template-columns: minmax(0, 1fr); }
.p-card { min-width: 0; background: var(--card); border: 0; border-radius: 16px; padding: var(--s4) var(--s3); }
.p-card h2, .p-card h3 { font-family: var(--body); font-size: var(--t-s); font-weight: 600; line-height: 1.3; color: var(--soft); margin-bottom: var(--s2); }
.p-card p, .p-card li, .p-card dd { color: var(--say); }
.p-card p + p { margin-top: var(--s3); }
.p-card strong { color: var(--ink); }
.p-cols { display: grid; gap: var(--s5) var(--s6); grid-template-columns: minmax(0, 1fr); }
.p-cols > div { min-width: 0; max-width: var(--measure); }
.p-lead, .p-card .p-lead { font-family: var(--display); font-size: var(--t-l); font-weight: 600; line-height: 1.3; color: var(--ink); max-width: 24em; margin-bottom: var(--s3); text-wrap: pretty; }
.p-list { padding-left: 1.2em; display: grid; gap: var(--s2); max-width: var(--measure); }
.p-card code { font: inherit; font-weight: 600; }   /* a name from the code, in the page's own type */

/* Steps, in order, each under a bar like the build page's pipeline. */
.p-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s4) var(--s3); grid-template-columns: minmax(0, 1fr); }
.p-steps li { display: grid; gap: var(--s1); align-content: start; font-size: var(--t-s); line-height: 1.5; color: var(--say); }
.p-steps li::before { content: ""; height: 6px; border-radius: 999px; background: var(--tab); margin-bottom: var(--s2); }
.p-steps b { font-weight: 600; color: var(--ink); }
.p-extra { margin-top: var(--s5); display: grid; gap: var(--s3); }
.p-extra > div { display: grid; gap: var(--s1); font-size: var(--t-s); color: var(--say); }
.p-extra b { font-weight: 600; color: var(--ink); }

/* The way to the next page, quiet, at the foot. */
.pager { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s3) var(--s5); margin-top: var(--gap); }
.pager a { display: grid; align-content: center; min-height: 44px; text-decoration: none; }
.pager .nav-dir { font-size: var(--t-s); color: var(--soft); }
.pager .nav-name { font-weight: 600; }
.pager a:hover .nav-name { text-decoration: underline; }
.pager .next { margin-left: auto; text-align: right; }

/* About: the title, then his picture beside it on a laptop, in a white card. The picture is cut off at the bottom
   and the right, so it sits in the card's corner. */
.p-words { display: grid; gap: var(--s3); justify-items: start; }
.p-me { width: min(60%, 200px); padding: var(--s4) 0 0 var(--s4); border-radius: 16px; background: var(--card); overflow: hidden; line-height: 0; }
.p-me img { display: block; width: 100%; height: auto; }
.p-roster .small { gap: var(--s2); }
.p-quote { margin: 0; }
.p-quote .p-lead { max-width: 30em; }
.p-attr { font-size: var(--t-s); color: var(--soft); }
.p-attr b { color: var(--ink); }
.p-cards + .p-text, .smalls + .p-text, .p-text + .smalls { margin-top: var(--s4); }
.p-card > .p-text + :not(.tools) { margin-top: var(--s4); }
.p-card > .p-text + .tools, .p-cols p + .tools { margin-top: var(--s2); }

/* The OpenExO feature, opened over the page. */
.p-modal { position: fixed; inset: 0; z-index: 20; display: flex; align-items: center; justify-content: center; padding: var(--s3); background: color-mix(in srgb, var(--ink) 55%, transparent); }
.p-modal .p-card { position: relative; max-width: 40em; max-height: 85vh; overflow-y: auto; padding-top: var(--s5); }
.p-close { position: absolute; top: var(--s2); right: var(--s2); min-width: 44px; min-height: 44px; border: 0; border-radius: 12px; background: none; color: var(--soft); font: 600 var(--t-l)/1 var(--body); cursor: pointer; }
.p-close:hover { color: var(--ink); background: var(--tab); }

/* Quoted words, a record from the system, and the tour's tables: inset on the paper inside a white card. */
.p-quoted { margin: 0; padding: var(--s3); border-radius: 12px; background: var(--paper); color: var(--ink); white-space: pre-wrap; overflow-wrap: anywhere; }
* + .p-quoted, .p-quoted + * { margin-top: var(--s3); }
.p-grid { display: grid; gap: var(--s3); grid-template-columns: minmax(0, 1fr); }
.p-grid > div { display: grid; gap: var(--s1); align-content: start; padding: var(--s3); border-radius: 12px; background: var(--paper); }
.p-grid b { font-weight: 600; color: var(--ink); }
.p-grid p, .p-grid span { font-size: var(--t-s); color: var(--say); }
.p-grid .role { color: var(--soft); }
.p-feed { display: grid; gap: var(--s3); }
.p-entry { padding: var(--s3); border-radius: 12px; background: var(--paper); min-width: 0; }
.p-entry p { display: flex; flex-wrap: wrap; gap: 0 var(--s3); font-size: var(--t-s); color: var(--soft); margin-bottom: var(--s2); }
.p-entry p b { color: var(--ink); font-weight: 600; }
.p-entry pre { margin: 0; font: var(--t-s)/1.55 var(--body); color: var(--say); white-space: pre-wrap; overflow-wrap: anywhere; }
.p-table { width: 100%; border-collapse: collapse; font-size: var(--t-s); }
.p-table th { text-align: left; font-weight: 600; color: var(--soft); padding: var(--s2) var(--s3) var(--s2) 0; }
.p-table td { vertical-align: top; padding: var(--s3) var(--s3) var(--s3) 0; border-top: 1px solid var(--line); color: var(--say); }
.p-table td:first-child { color: var(--ink); width: 38%; }
.p-table .def { display: block; margin-top: var(--s1); color: var(--soft); }
.p-two { display: grid; gap: var(--s5); grid-template-columns: minmax(0, 1fr); margin-top: var(--s4); }
.p-two h3 { margin-top: var(--s3); }
.p-two h3:first-child { margin-top: 0; }

/* A page opened inside another (back.js, ?embed=1) shows its words only. */
.embed .site, .embed .foot, .embed .skip, .embed .p-sub .back { display: none !important; }

@media (max-width: 719px) {
  /* On a phone a table's rows stack, each row one block. */
  .p-table thead { display: none; }
  .p-table, .p-table tbody, .p-table tr, .p-table td { display: block; width: auto; }
  .p-table tr { border-top: 1px solid var(--line); padding: var(--s2) 0; }
  .p-table td, .p-table td:first-child { border: 0; padding: var(--s1) 0; width: auto; }
}
@media (min-width: 720px) {
  .p-card { padding: var(--s5) var(--s6); }
  .p-steps { grid-template-columns: repeat(auto-fit, minmax(11em, 1fr)); }
  .p-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .p-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .p-head.p-about .wrap { grid-template-columns: minmax(0, 1fr) 240px; align-items: end; column-gap: var(--s6); }
  .p-head.p-about .p-me { width: 100%; }
}
@media (min-width: 960px) {
  /* Cards with a paragraph each, rather than the home page's one sentence, sit two to a row. */
  .smalls.long { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* On a laptop the steps are one row, however many there are. */
  .p-steps { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
  .p-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .p-cols.three, .p-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* The pages under for/, the DB2 read and the page for agents, brought into the same design on 2026-11-28. */

/* A page for one person: what he said, beside why the page is here; then a card for each thing. The card's name is
   the link, and it covers the card; hub.js opens some of them over the page. */
.p-for .p-quote .p-lead { margin-bottom: var(--s2); }
.p-tiles { margin-top: var(--gap); }
.p-tiles h2 a { text-decoration: none; }
.p-tiles h2 a::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: 16px; }
.p-tiles h2 a:focus-visible { outline: none; }
.p-tiles h2 a:focus-visible::after { outline: 3px solid var(--focus); outline-offset: 3px; }
.p-tiles .small:hover h2 a { text-decoration: underline; }
.p-tiles .wide { grid-column: 1 / -1; }
.p-tiles .wide p:not(.role) { max-width: 46em; }

/* A card's page, opened over this one (hub.js): a white bar with its name, and the page under it. */
.p-over { align-items: stretch; padding: 0; }
.p-over-panel { position: relative; display: flex; flex-direction: column; width: 100%; max-width: 1500px; overflow: hidden; background: var(--paper); }
.p-over-bar { display: flex; align-items: center; gap: var(--s2); padding: 0 var(--s1) 0 var(--s3); background: var(--card); font-size: var(--t-s); }
.p-over-title { flex: 1; min-width: 0; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p-over-tab { display: inline-flex; align-items: center; min-height: 44px; color: var(--soft); white-space: nowrap; }
.p-over-tab:hover { color: var(--ink); }
.p-over .p-close { position: static; flex: none; }
.p-over-wait { position: absolute; top: var(--s8); left: 0; right: 0; z-index: 2; text-align: center; font-size: var(--t-s); color: var(--soft); }
.p-over-frame { flex: 1; min-height: 0; width: 100%; border: 0; background: var(--paper); }

/* The DB2 read: a table in each white card, under a heading the size of a lead. A wide table keeps its columns and
   scrolls sideways inside its card on a phone; the page itself never does. */
.p-source { margin-top: 0; }
.p-source + .p-cards { margin-top: var(--s4); }
.p-card.p-data-card > h2 { font-family: var(--display); font-size: var(--t-l); line-height: 1.15; color: var(--ink); margin-bottom: var(--s4); }
.p-scroll { overflow-x: auto; }
.p-data { width: 100%; border-collapse: collapse; font-size: var(--t-s); line-height: 1.5; }
.p-data.short { max-width: 36em; }
.p-data.wide { min-width: 44em; }
.p-data th { text-align: left; vertical-align: bottom; font-weight: 600; color: var(--soft); padding: 0 var(--s3) var(--s2) 0; }
.p-data td { vertical-align: top; padding: var(--s2) var(--s3) var(--s2) 0; border-top: 1px solid var(--line); color: var(--say); }
.p-data th:last-child, .p-data td:last-child { padding-right: 0; }
.p-data td:first-child, .p-data strong { color: var(--ink); }
.p-data.wide td:first-child { white-space: nowrap; }
.p-data-card .p-text + .p-scroll { margin-top: var(--s3); }
.p-data-card .p-scroll + .p-text { margin-top: var(--s4); }
.p-data-card .p-scroll + .p-note { margin-top: var(--s3); }
.p-method { margin-top: var(--s5); }

/* The page for agents: what can be used, as a table in a white card, and the rules as cards. Code is in the page's type. */
.p-line code, .p-text code, .p-list code, .p-table code, .p-note code { font: inherit; font-weight: 600; }
.p-part > .p-list { color: var(--say); }
.p-text + .p-list { margin-top: var(--s3); }
.p-things small { display: block; margin-top: var(--s1); font-size: var(--t-s); color: var(--soft); }
.p-rules strong { color: var(--ink); }

@media (max-width: 719px) {
  .p-things td { overflow-wrap: anywhere; }
  .p-things tbody tr:first-child { border-top: 0; padding-top: 0; }
  .p-card .p-scroll { margin: 0 calc(-1 * var(--s3)); padding: 0 var(--s3); }   /* a wide table scrolls to the card's edges */
}
@media (min-width: 720px) {
  .p-over { padding: var(--s5); }
  .p-over-panel { border-radius: 16px; }
  .p-over-bar { padding-left: var(--s4); gap: var(--s3); }
  .p-things th:first-child, .p-things td:first-child { width: 18%; }
  .p-things th:last-child, .p-things td:last-child { width: 18%; }
}
@media (min-width: 960px) {
  /* The DB2 read's three short tables share two columns: the channel and the months on the left, the formats beside them. */
  .p-reads { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .p-reads > .p-card { grid-column: 1 / -1; }
  .p-reads > .p-half { grid-column: auto; }
  .p-reads > .p-tall { grid-row: span 2; }
}
