/* The public page of a public catalog (public.html, PLAN §10.1). Page-scoped pub-* classes only (the site stylesheet's
   classes reaching web/app are checked: platform/scripts/web_class_check.py); tokens from /styles.css. */
/* a data page, not a landing page: the workbench scale of the account page and /try (founder, 2026-09-30) */
body.pub-page { background: var(--bg); color: var(--ink); font-size: 14px; }
.pub-wrap { max-width: 1040px; padding-bottom: 48px; }
.pub-top { display: flex; align-items: baseline; gap: 14px; padding: 18px 0 8px; border-bottom: 1px solid var(--rule); }
.pub-brand { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; color: var(--ink); text-decoration: none; letter-spacing: -.01em; }
.pub-brand .mark { flex: none; align-self: center; }
/* main keeps its place while public.js loads the catalog: flow-root stops the first child's margin collapsing through
   it ("Loading…" and the rendered hero have different margins, so main jumped 14 px), and the footer starts below the
   fold so the render does not push it (Lighthouse CLS 0.64 on desktop, 2026-11-19) */
#pub-main { display: flow-root; min-height: 100vh; }
#pub-main:focus { outline: none; }
.pub-crumb { font-size: 12.5px; }
.pub-hero { padding: 24px 0 6px; }
.pub-title { font-size: 28px; line-height: 1.15; margin: 4px 0 8px; word-break: break-word; }
#pub-main h2:not(.md h2) { font-size: 17px; margin: 26px 0 10px; }   /* a document's own headings are md.css's */
.pub-recipe { border: 1px solid var(--rule); border-radius: 10px; background: #fff; padding: 12px 14px; margin: 0 0 10px; }
.pub-recipe-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.pub-recipe-head h3 { font-size: 14px; margin: 0; }
.pub-req { font-size: 11px; color: var(--ink-soft); border: 1px solid var(--rule); border-radius: 999px; padding: 2px 10px; }
.pub-req-none { color: var(--ok-text); border-color: #cfe9d8; background: #eaf6ee; }
.pub-copy { margin-left: auto; }
.pub-code { background: #fcfaf7; color: var(--ink); border: 1px solid #e5ded4; font-family: var(--mono); font-size: 11.5px; line-height: 1.55;
  border-radius: 6px; padding: 10px 12px; margin: 10px 0 6px; overflow-x: auto; white-space: pre; }
.pub-note { margin: 6px 0 0; }
.pub-table { border: 1px solid var(--rule); border-radius: 10px; background: #fff; padding: 12px 14px; margin: 0 0 10px; }
.pub-table-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; }
.pub-table-head h3 { font-size: 14px; margin: 0; word-break: break-all; }
.pub-tdoc { margin: 6px 0 0; color: var(--ink-soft); font-size: 12.5px; }
.pub-cols { width: 100%; border-collapse: collapse; margin-top: 8px; font-size: 12px; }
.pub-cols th { text-align: left; font-weight: 500; color: var(--muted); border-bottom: 1px solid var(--rule); padding: 4px 10px 4px 0; font-size: 11px; }
.pub-cols td { border-bottom: 1px solid var(--rule); padding: 4px 10px 4px 0; vertical-align: top; }
.pub-cols tr:last-child td { border-bottom: 0; }
.pub-mono { font-family: var(--mono); font-size: 11.5px; }
.pub-type { color: var(--ink-soft); overflow-wrap: anywhere; }
.pub-cols td.pub-mono { overflow-wrap: anywhere; }
.pub-doc { color: var(--ink-soft); font-size: 12px; }
.pub-url { margin: 10px 0 0; word-break: break-all; }
.pub-foot { border-top: 1px solid var(--rule); margin-top: 28px; padding-top: 12px; }
@media (max-width: 640px) {
  .pub-title { font-size: 24px; }
  .pub-recipe, .pub-table { padding: 12px 10px; }
  /* every column stays (a description is often the only explanation of a column, #1344): the cells wrap instead */
  .pub-cols { table-layout: fixed; }
  .pub-cols th:nth-child(1), .pub-cols th:nth-child(2) { width: 30%; }
  .pub-copy { margin-left: 0; }
}

.pub-agents-md { border: 1px solid var(--rule); border-radius: 10px; background: #fff; padding: 12px 14px; margin: 14px 0 10px; }
.pub-agents-md-head h2 { margin: 0 0 2px; font-size: 15px; }
.pub-agents-md-head p { margin: 0 0 12px; }

/* AGENTS.md code blocks in their language's colours (code_rules.js), as on the account page; the rest of a document is md.css */
.tk-kw { color: #c23c14; font-weight: 600; } .tk-type, .tk-key, .tk-flag { color: #2974a2; } .tk-str { color: #2a7d4f; }
.tk-num { color: #8a5a00; } .tk-com { color: #77706a; font-style: italic; } .tk-fn { color: #6b3fa0; } .tk-op { color: #4f4a44; }

/* the design system on a public catalog's page (PR 6 of the redesign, 2026-10-23; tokens.css): the catalog's name stays
   the serif title, the page's section and card headings are interface type, Copy is the shared ghost button, the
   requirement tags are the shared badge, a table's columns have the dense list's header */
#pub-main h2:not(.md h2), #pub-main h3:not(.md h3) { font-family: var(--sans); font-weight: 600; letter-spacing: 0; max-width: none; }
#pub-main h2:not(.md h2) { font-size: var(--fs-h); }
#pub-main h3:not(.md h3) { font-size: var(--fs-card-h); }
#pub-main h3.pub-mono:not(.md h3) { font-family: var(--mono); font-size: 13px; }
.pub-agents-md-head h2 { font-size: var(--fs-h); }
.pub-recipe, .pub-table, .pub-agents-md { border-radius: var(--radius); padding: 14px 16px; }
#pub-main .btn.pub-copy { min-height: 0; display: inline-flex; align-items: center; justify-content: center; height: var(--ctl-h-sm); padding: 0 10px; font: 500 var(--fs-sm)/1 var(--sans); border-radius: var(--radius-ctl); background: var(--surface); border: 1px solid var(--rule-strong); color: var(--ink); }
#pub-main .btn.pub-copy:hover { background: var(--bg-soft); }
.pub-req { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: var(--radius-badge); font: 500 var(--fs-xs)/1 var(--sans); }
.pub-cols { border: 1px solid var(--rule); border-collapse: separate; border-spacing: 0; border-radius: var(--radius-ctl); overflow: hidden; }
.pub-cols th { background: var(--bg-soft); color: var(--ink-soft); font: 600 var(--fs-xs)/1.3 var(--sans); padding: 6px 10px; }
.pub-cols td { padding: 5px 10px; }

