/* Generated by internal/themes: faces, base.css, then productscience.css. */
@font-face { font-display: swap; font-family: "DM Sans"; font-style: normal; font-weight: 100 1000; src: url("/theme/fonts/dm-sans/4.004/DMSans-VF.aa530716b0d35186.woff2") format("woff2"); }

/* base.css */
/* base.css: what every theme shares. Structure and sensible defaults,
   all of it driven by the custom properties below, so a theme is mostly
   a new set of values plus whatever it does differently. Properties are
   alphabetised within a rule. */

:root {
  --accent: #2353b8;
  --font-body: "DM Sans", system-ui, sans-serif;
  --font-heading: var(--font-body);
  --font-ui: var(--font-body);
  --gap: clamp(1rem, 3vw, 2rem);
  --ink: #17212b;
  --leading: 1.6;
  --measure: 38rem;
  --muted: #55606c;
  --paper: #ffffff;
  --rule: #e6ebf0;
  --size: clamp(1.0625rem, 0.4vw + 0.98rem, 1.1875rem);
  --wide: 60rem;
  color-scheme: light;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--size);
  line-height: var(--leading);
  margin: 0;
  overflow-wrap: break-word;
}

a { color: var(--accent); text-decoration-thickness: 0.06em; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 0.12em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

img { block-size: auto; display: block; max-inline-size: 100%; }

/* The site's chrome. */

header[data-site], main, footer[data-site] {
  margin-inline: auto;
  max-inline-size: var(--wide);
  padding-inline: var(--gap);
}

header[data-site] {
  align-items: baseline;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
  padding-block: calc(var(--gap) * 1.25) var(--gap);
}

a[data-site-title] {
  align-items: center;
  color: var(--ink);
  display: inline-flex;
  gap: 0.45em;
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  text-decoration: none;
}

img[data-site-mark] { block-size: 1.1em; border-radius: 22%; flex: none; inline-size: 1.1em; }
/* A site's own logo (Branding) keeps its shape: as tall as the title's
   line, as wide as that makes it. */
picture[data-site-mark-frame] { display: contents; }
img[data-site-mark][data-site-logo] { block-size: 1.6em; border-radius: 0; inline-size: auto; }
ul[data-social] { align-items: center; display: flex; flex-wrap: wrap; gap: 0.4em 0.9em; list-style: none; margin: 0.5em 0 0; padding: 0; }
/* Each profile is its network's icon, in the link's colour; its name is
   the link's words for a screen reader and its title for a pointer. */
ul[data-social] a { align-items: center; display: inline-flex; gap: 0.35em; line-height: 1; text-decoration: none; }
ul[data-social] a:hover, ul[data-social] a:focus-visible { color: var(--accent, currentColor); }
svg[data-network-icon] { block-size: 1.15em; flex: none; inline-size: 1.15em; vertical-align: -0.2em; }
span[data-network-label] { block-size: 1px; clip-path: inset(50%); inline-size: 1px; overflow: hidden; position: absolute; white-space: nowrap; }

p[data-site-tagline] { color: var(--muted); font-family: var(--font-ui); font-size: 0.9rem; margin: 0; }

nav[data-site-nav] { flex-basis: 100%; font-family: var(--font-ui); font-size: 0.95rem; }
nav[data-site-nav] ul { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; list-style: none; margin: 0; padding: 0; }
nav[data-site-nav] a { color: var(--muted); text-decoration: none; }
nav[data-site-nav] a:hover, nav[data-site-nav] a[aria-current] { color: var(--ink); text-decoration: underline; }
/* Subpages: a dropdown under their page on hover or keyboard focus, a
   level further out beside it, and on a phone an indented list. No
   script: a touch opens the page itself, which lists them too. */
nav[data-site-nav] li { position: relative; }
nav[data-site-nav] li ul { display: block; font-size: 0.92em; padding-inline-start: 1rem; }
@media (max-width: 40rem) { nav[data-site-nav] li:has(> ul) { flex-basis: 100%; } }
@media (min-width: 40rem) {
  nav[data-site-nav] li ul { background: var(--paper); border: 1px solid var(--rule); border-radius: 0.3rem; box-shadow: 0 0.4rem 1rem rgb(0 0 0 / 12%); display: none; inset-block-start: 100%; inset-inline-start: -0.75rem; min-inline-size: 14rem; padding: 0.4rem 0; position: absolute; z-index: 20; }
  nav[data-site-nav] li li ul { inset-block-start: -0.4rem; inset-inline-start: 100%; }
  nav[data-site-nav] li:hover > ul, nav[data-site-nav] li:focus-within > ul { display: block; }
  nav[data-site-nav] li li { display: block; }
  nav[data-site-nav] li li a { display: block; padding: 0.3rem 0.9rem; }
  nav[data-site-nav] li:has(> ul) > a::after { content: " ▾"; font-size: 0.8em; }
  nav[data-site-nav] li li:has(> ul) > a::after { content: " ▸"; }
}
/* Inline, so it follows the header's text-align: left, or centred under a centred menu. */
div[data-today] { flex-basis: 100%; margin-top: 0.6rem; font-family: var(--font-ui); font-size: 0.9rem; line-height: 1.7; color: var(--muted); }
[data-today-title] { font-weight: 700; font-size: 1.2rem; color: var(--ink); margin-right: 0.75rem; }
div[data-today] ul { display: inline; list-style: none; margin: 0; padding: 0; }
div[data-today] li { display: inline-block; }
div[data-today] li + li { margin-left: 1rem; }
div[data-today] li span::after { content: ":"; }
div[data-today] a { color: var(--ink); }

main { padding-block: var(--gap) calc(var(--gap) * 3); }

footer[data-site] {
  border-block-start: 1px solid var(--rule);
  color: var(--muted);
  font-family: var(--font-ui);
  font-size: 0.85rem;
  padding-block: var(--gap) calc(var(--gap) * 2);
}
footer[data-site] a { color: inherit; }

/* A hosted site whose plan has lapsed says so, quietly, under every
   theme's footer. */
p[data-lapsed] {
  color: var(--muted);
  font-family: var(--font-ui);
  font-size: 0.8rem;
  margin: 0 auto;
  max-inline-size: var(--measure);
  padding: 0 var(--gap) var(--gap);
  text-align: center;
}

p[data-notice] {
  background: color-mix(in oklch, var(--accent) 10%, var(--paper));
  border-inline-start: 3px solid var(--accent);
  font-family: var(--font-ui);
  margin-block: 0 var(--gap);
  padding: 0.75rem 1rem;
}
p[data-test-mode] {
  border: 2px dashed var(--accent);
  font-family: var(--font-ui);
  font-size: 0.9rem;
  margin-block: 0 var(--gap);
  padding: 0.5rem 1rem;
}

nav[data-preview-bar] {
  align-items: center;
  background: var(--ink);
  color: var(--paper);
  display: flex;
  flex-wrap: wrap;
  font-family: var(--font-ui);
  font-size: 0.85rem;
  gap: 0.5rem 1.25rem;
  justify-content: center;
  margin: 0;
  padding: 0.5rem var(--gap);
}
nav[data-preview-bar] [data-preview-group] { display: inline-flex; flex-wrap: wrap; gap: 0.35rem; align-items: center; }
nav[data-preview-bar] a { border: 1px solid transparent; border-radius: 999px; color: var(--paper); padding: 0.1rem 0.6rem; text-decoration: none; }
nav[data-preview-bar] a:hover { border-color: var(--paper); }
nav[data-preview-bar] a[aria-current] { background: var(--paper); color: var(--ink); }
/* The admin bar, for staff (public/core/adminbar.go): a thin dark strip
   as WordPress.com draws over a published page, each way in a small
   icon (a CSS mask, so it takes the link's colour) beside a short label,
   and at its end a white +. Patrix's own colours, not the theme's, so it
   reads the same over every theme. On a phone the labels go and the
   icons stay; a label stays the link's accessible name either way. */
nav[data-admin-bar] {
  align-items: center;
  background: #0e1226;
  box-sizing: border-box;
  color: #f0f0f1;
  display: flex;
  flex-wrap: wrap;
  font: 400 0.8125rem/1 system-ui, -apple-system, "Segoe UI", sans-serif;
  gap: 0 0.125rem;
  letter-spacing: normal;
  margin: 0;
  min-block-size: 32px;
  padding: 0 0.5rem;
  position: relative;
  text-transform: none;
  z-index: 1000;
}
nav[data-admin-bar] a {
  align-items: center;
  block-size: 32px;
  box-sizing: border-box;
  color: inherit;
  display: inline-flex;
  gap: 0.375rem;
  padding: 0 0.5rem;
  text-decoration: none;
  white-space: nowrap;
}
nav[data-admin-bar] a:hover { background: #1a2044; color: #9db1ff; }
nav[data-admin-bar] :focus-visible { outline: 2px solid #9db1ff; outline-offset: -2px; }
nav[data-admin-bar] [data-admin-site] { font-weight: 600; }
nav[data-admin-bar] [data-admin-site] img { block-size: 20px; border-radius: 3px; inline-size: 20px; object-fit: contain; }
:is(nav[data-admin-bar] [data-admin-home], nav[data-admin-bar] [data-admin-new], nav[data-admin-bar] [data-admin-edit], nav[data-admin-bar] [data-admin-comments], nav[data-admin-bar] [data-admin-me], nav[data-admin-bar] [data-admin-devices] a, nav[data-admin-bar] [data-admin-plus])::before { background: currentColor; block-size: 16px; content: ""; display: inline-block; flex: none; inline-size: 16px; -webkit-mask: var(--px-bar-icon) center / contain no-repeat; mask: var(--px-bar-icon) center / contain no-repeat; }
nav[data-admin-bar] [data-admin-home] { --px-bar-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 17a8.5 8.5 0 1 1 17 0'/%3E%3Cpath d='M12 17l4.5-6'/%3E%3Ccircle cx='12' cy='17' r='1.2'/%3E%3C/svg%3E"); }
nav[data-admin-bar] [data-admin-new] { --px-bar-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E"); }
nav[data-admin-bar] [data-admin-new][href="/admin/pages/new"] { --px-bar-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 3h8l4 4v14H6z'/%3E%3Cpath d='M14 3v4h4M9 13h6M9 17h6'/%3E%3C/svg%3E"); }
nav[data-admin-bar] [data-admin-edit] { --px-bar-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 20h4L19.5 8.5l-4-4L4 16z'/%3E%3Cpath d='M13.5 6.5l4 4'/%3E%3C/svg%3E"); }
nav[data-admin-bar] [data-admin-edit]:not([href^="/admin"]) { --px-bar-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3.6-7 10-7 10 7 10 7-3.6 7-10 7S2 12 2 12z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E"); }
nav[data-admin-bar] [data-admin-comments] { --px-bar-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 5h16v11H10l-5 4v-4H4z'/%3E%3C/svg%3E"); }
nav[data-admin-bar] [data-admin-me] { --px-bar-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21a8 8 0 0 1 16 0'/%3E%3C/svg%3E"); }
nav[data-admin-bar] [data-admin-devices] a:nth-child(1) { --px-bar-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='12' rx='1.5'/%3E%3Cpath d='M8 20h8M12 16v4'/%3E%3C/svg%3E"); }
nav[data-admin-bar] [data-admin-devices] a:nth-child(2) { --px-bar-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='3' width='14' height='18' rx='2'/%3E%3Cpath d='M11 18h2'/%3E%3C/svg%3E"); }
nav[data-admin-bar] [data-admin-devices] a:nth-child(3) { --px-bar-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='7' y='3' width='10' height='18' rx='2'/%3E%3Cpath d='M11 18h2'/%3E%3C/svg%3E"); }
nav[data-admin-bar] [data-admin-plus] { --px-bar-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 4v16M4 12h16'/%3E%3C/svg%3E"); }
nav[data-admin-bar] [data-admin-count] {
  background: #d63638;
  border-radius: 999px;
  color: #fff;
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 600;
  line-height: 1.1rem;
  min-inline-size: 1.1rem;
  padding: 0 0.35rem;
  text-align: center;
}
nav[data-admin-bar] [data-admin-end] { align-items: center; display: inline-flex; gap: 0 0.125rem; margin-inline-start: auto; }
nav[data-admin-bar] [data-admin-devices] { display: inline-flex; margin-inline-end: 0.25rem; }
/* The devices are icons alone, their names a tooltip. */
nav[data-admin-bar] [data-admin-devices] a { font-size: 0; padding: 0 0.4rem; }
nav[data-admin-bar] [data-admin-devices] a[aria-current] { color: #9db1ff; box-shadow: inset 0 -2px #9db1ff; }
nav[data-admin-bar] [data-admin-me] { color: #c3c4c7; }
/* The + that opens the composer, at the bar's end: white, no badge. */
nav[data-admin-bar] [data-admin-plus] { color: #fff; font-size: 0; justify-content: center; padding: 0; inline-size: 36px; }
nav[data-admin-bar] [data-admin-plus]::before { block-size: 20px; inline-size: 20px; transition: transform 0.15s; }
nav[data-admin-bar] [data-admin-plus]:hover, nav[data-admin-bar] [data-admin-plus][aria-expanded="true"] { background: #1a2044; color: #fff; }
nav[data-admin-bar] [data-admin-plus][aria-expanded="true"]::before { transform: rotate(45deg); }
/* On a phone the bar is the ways into admin, icons only: the page is
   already at a phone's width. */
@media (max-width: 40rem) {
  nav[data-admin-bar] [data-admin-devices] { display: none; }
  nav[data-admin-bar] :is([data-admin-home], [data-admin-new], [data-admin-edit], [data-admin-comments], [data-admin-me]) { font-size: 0; gap: 0.25rem; }
  nav[data-admin-bar] [data-admin-site] { max-inline-size: 40vw; overflow: hidden; text-overflow: ellipsis; }
}
/* The composer (public/compose): a new post written here, under the bar,
   which its + New post opens. Patrix's own panel, light whatever the
   theme or the reader's scheme, in rastrillo's tokens, which the
   editor's stylesheet (editor.css, loaded when it opens) reads; the body
   is written in the theme's own face. */
section[data-admin-compose] {
  --rst-radius-sm: 4px;
  --rst-surface: #ffffff;
  --rst-surface-2: #f3f3f5;
  --rst-line: #e6e6ea;
  --rst-line-strong: #868691;
  --rst-text: #18181b;
  --rst-text-muted: #52525c;
  --rst-accent: #1f56d6;
  --rst-accent-strong: #1a46ab;
  --rst-accent-soft: #ecf1ff;
  --rst-tone-negative-fg: #b91c1c;
  --rst-fs-sm: 0.8125rem;
  --rst-fs-xs: 0.75rem;
  background: #f6f7f7;
  border-block-end: 1px solid #c3c4c7;
  color: var(--rst-text);
  color-scheme: light;
  font: 400 0.9375rem/1.5 system-ui, -apple-system, "Segoe UI", sans-serif;
  letter-spacing: normal;
  padding: 1rem var(--gap) 1.25rem;
  position: relative;
  text-transform: none;
  z-index: 999;
}
section[data-admin-compose][hidden] { display: none; }
section[data-admin-compose] form { display: grid; gap: 0.75rem; margin: 0 auto; max-inline-size: 48rem; }
section[data-admin-compose] .px-compose-sr { block-size: 1px; clip-path: inset(50%); inline-size: 1px; overflow: hidden; position: absolute; white-space: nowrap; }
section[data-admin-compose] .px-compose-head { align-items: baseline; display: flex; gap: 1rem; margin: 0; }
section[data-admin-compose] .px-compose-head strong { font-size: 1rem; }
section[data-admin-compose] .px-compose-head a { color: var(--rst-accent); font-size: 0.875rem; }
section[data-admin-compose] [data-compose-close] { background: transparent; border: 1px solid transparent; border-radius: var(--rst-radius-sm); color: var(--rst-text-muted); cursor: pointer; font: inherit; font-size: 1.25rem; line-height: 1; margin-inline-start: auto; padding: 0.1rem 0.5rem; }
section[data-admin-compose] [data-compose-close]:hover { background: var(--rst-surface-2); border-color: var(--rst-line); color: var(--rst-text); }
section[data-admin-compose] input[type="text"], section[data-admin-compose] textarea { background: var(--rst-surface); border: 1px solid var(--rst-line-strong); border-radius: var(--rst-radius-sm); box-sizing: border-box; color: inherit; font: inherit; inline-size: 100%; padding: 0.45rem 0.6rem; }
section[data-admin-compose] :is(input, textarea, select, button):focus-visible { outline: 2px solid var(--rst-accent); outline-offset: 1px; }
section[data-admin-compose] #compose-title { font-size: 1.375rem; font-weight: 600; }
section[data-admin-compose] .px-body-field textarea { line-height: 1.6; min-block-size: 12rem; resize: vertical; }
section[data-admin-compose] .px-body-field .rte-editor { color: var(--rst-text); font-family: var(--font-body); }
section[data-admin-compose] .px-compose-meta { align-items: center; display: flex; flex-wrap: wrap; font-size: 0.875rem; gap: 0.5rem 1.5rem; }
section[data-admin-compose] .px-compose-cats { border: 0; display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; margin: 0; min-inline-size: 0; padding: 0; }
section[data-admin-compose] .px-compose-cats legend { float: inline-start; font-weight: 600; margin-inline-end: 0.5rem; padding: 0; }
section[data-admin-compose] .px-compose-cats label, section[data-admin-compose] .px-compose-check { align-items: center; display: inline-flex; gap: 0.35rem; }
section[data-admin-compose] .px-compose-cats .px-depth-1 { padding-inline-start: 1rem; }
section[data-admin-compose] .px-compose-cats .px-depth-2 { padding-inline-start: 2rem; }
section[data-admin-compose] .px-compose-tags { align-items: center; display: flex; flex: 1; gap: 0.5rem; min-inline-size: 14rem; }
section[data-admin-compose] .px-compose-tags input { font-size: 0.875rem; padding: 0.3rem 0.5rem; }
section[data-admin-compose] .px-compose-actions { align-items: center; display: flex; gap: 0.5rem; margin: 0; }
section[data-admin-compose] .px-compose-actions button { background: var(--rst-surface); border: 1px solid var(--rst-line-strong); border-radius: var(--rst-radius-sm); color: var(--rst-text); cursor: pointer; font: inherit; font-weight: 600; padding: 0.45rem 1rem; }
section[data-admin-compose] .px-compose-actions button:hover { background: var(--rst-surface-2); }
section[data-admin-compose] .px-compose-actions [data-compose-publish] { background: var(--rst-accent); border-color: var(--rst-accent); color: #fff; }
section[data-admin-compose] .px-compose-actions [data-compose-publish]:hover { background: var(--rst-accent-strong); }
/* The pencil at the end of a title, for staff who may edit the entry
   (public/core's markEditable): its link is admin's editor, and a click
   edits the post where it is read (patrix-inplace.js). */
a[data-entry-edit] { color: var(--muted); display: inline-block; line-height: 1; margin-inline-start: 0.35em; opacity: 0.55; text-decoration: none; vertical-align: middle; }
a[data-entry-edit]:hover, a[data-entry-edit]:focus-visible { color: var(--accent); opacity: 1; }
a[data-entry-edit][aria-busy] { opacity: 0.3; }
a[data-entry-edit] svg { block-size: 0.6em; inline-size: 0.6em; }
/* The in-place editor (public/compose's Edit): while an article is
   edited, the form stands where it was, set in the theme's own type
   and colours, so the post is edited as it reads; the editor's own
   chrome (the toolbar, its panels) reads rastrillo's tokens, mapped
   onto the theme's. */
article[data-entry][data-editing] > :not(form[data-inplace]) { display: none; }
form[data-inplace] {
  --rst-radius-sm: 4px;
  --rst-surface: var(--paper);
  --rst-surface-2: color-mix(in oklch, var(--ink) 6%, var(--paper));
  --rst-line: var(--rule);
  --rst-line-strong: var(--muted);
  --rst-text: var(--ink);
  --rst-text-muted: var(--muted);
  --rst-accent: var(--accent);
  --rst-accent-strong: color-mix(in oklch, var(--accent) 85%, var(--ink));
  --rst-accent-soft: color-mix(in oklch, var(--accent) 12%, var(--paper));
  --rst-tone-negative-fg: #b91c1c;
  --rst-fs-sm: 0.8125rem;
  --rst-fs-xs: 0.75rem;
  display: grid;
  gap: 0.75rem;
  max-inline-size: var(--measure);
}
form[data-inplace] .px-compose-sr { block-size: 1px; clip-path: inset(50%); inline-size: 1px; overflow: hidden; position: absolute; white-space: nowrap; }
form[data-inplace] .px-inplace-title input { background: transparent; border: 0; border-block-end: 1px solid var(--rule); border-radius: 0; box-sizing: border-box; color: var(--ink); font-family: var(--font-heading); font-size: clamp(1.5rem, 2.5vw, 1.9rem); font-weight: 600; inline-size: 100%; letter-spacing: -0.015em; line-height: 1.3; padding: 0.2em 0; }
form[data-inplace] .px-inplace-title input:focus-visible { border-block-end-color: var(--accent); outline: none; }
form[data-inplace] .px-body-field textarea { background: transparent; border: 1px solid var(--rule); border-radius: 4px; box-sizing: border-box; color: inherit; font: inherit; inline-size: 100%; line-height: var(--leading); min-block-size: 12rem; padding: 0.75rem 1rem; resize: vertical; }
article[data-entry] form[data-inplace] .px-toolbar { background: var(--paper); font-family: var(--font-ui); }
article[data-entry] form[data-inplace] .px-body-field .rte-editor { background: transparent; border-color: var(--rule); color: var(--ink); font-family: var(--font-body); font-size: var(--size); line-height: var(--leading); max-block-size: none; min-block-size: 8rem; overflow: visible; padding: 0.75rem 1rem; }
article[data-entry] form[data-inplace] .px-body-field .rte-editor a { color: var(--accent); }
form[data-inplace] .px-inplace-actions { align-items: center; display: flex; flex-wrap: wrap; font-family: var(--font-ui); font-size: 0.9375rem; gap: 0.5rem 1rem; margin: 0; }
form[data-inplace] .px-inplace-actions button { background: var(--paper); border: 1px solid var(--muted); border-radius: 4px; color: var(--ink); cursor: pointer; font: inherit; font-weight: 600; padding: 0.45rem 1rem; }
form[data-inplace] .px-inplace-actions button:hover { background: color-mix(in oklch, var(--ink) 6%, var(--paper)); }
form[data-inplace] .px-inplace-actions [data-inplace-save] { background: var(--accent); border-color: var(--accent); color: var(--paper); }
form[data-inplace] .px-inplace-actions [data-inplace-save]:hover { background: color-mix(in oklch, var(--accent) 85%, var(--ink)); }
form[data-inplace] .px-inplace-actions a { color: var(--muted); font-size: 0.875rem; margin-inline-start: auto; }
form[data-inplace] :is(input, textarea, select, button):focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
/* A device frame: the page at a phone's or a tablet's width. */
body[data-preview-framed] { margin: 0; }
[data-preview-device] { display: flex; justify-content: center; padding: 1.5rem var(--gap); }
[data-preview-device] iframe { block-size: calc(100vh - 7rem); border: 1px solid var(--muted); border-radius: 18px; max-inline-size: 100%; }
/* Read as staff, a preview shows where protected sections are. */
body[data-preview-as="staff"] section[data-px-protected] {
  outline: 2px dashed var(--accent);
  outline-offset: 0.5rem;
  margin-block: 1.75rem;
  position: relative;
}
body[data-preview-as="staff"] section[data-px-protected]::before {
  background: var(--accent);
  border-radius: 4px;
  color: #fff;
  content: "Protected: " attr(data-px-protected);
  font-family: var(--font-ui);
  font-size: 0.75rem;
  inset-block-start: -1.6rem;
  padding: 0.05rem 0.45rem;
  position: absolute;
}
body[data-preview-as="staff"] section[data-px-protected][data-px-quiet]::before { content: "Protected: " attr(data-px-protected) " (no notice)"; }
/* Read as staff, a page drawn from a template's layout wraps what each
   slot drew with a link to that field in admin's Editor view
   (templating.PreviewBody), shown on hover or focus; preview.js makes a
   click anywhere in the slot follow it. */
[data-px-field] { border-radius: 4px; outline: 1px dashed transparent; outline-offset: 0.35rem; position: relative; }
[data-px-field]:hover, [data-px-field]:focus-within { outline-color: var(--accent); }
body[data-px-click-edit] [data-px-field] { cursor: pointer; }
[data-px-field-edit] {
  background: var(--accent);
  border-radius: 4px;
  color: #fff;
  font-family: var(--font-ui);
  font-size: 0.75rem;
  inset-block-start: -1.1rem;
  inset-inline-end: 0;
  opacity: 0;
  padding: 0.05rem 0.45rem;
  position: absolute;
  text-decoration: none;
  z-index: 1;
}
[data-px-field]:hover > [data-px-field-edit], [data-px-field-edit]:focus { opacity: 1; }

/* Lists of posts. */

ol[data-entries] { display: grid; gap: calc(var(--gap) * 1.5); list-style: none; margin: 0; padding: 0; }
ol[data-entries] h2[data-entry-title] { font-family: var(--font-heading); font-size: 1.6rem; line-height: 1.2; margin: 0 0 0.35rem; }
ol[data-entries] h2[data-entry-title] a { color: var(--ink); text-decoration: none; }
ol[data-entries] h2[data-entry-title] a:hover { text-decoration: underline; }
p[data-entry-excerpt] { margin: 0.5rem 0 0; max-inline-size: var(--measure); }

p[data-entry-meta] { color: var(--muted); font-family: var(--font-ui); font-size: 0.875rem; margin: 0; }
p[data-entry-meta] a { color: inherit; }

section[data-archive] { margin-block-end: calc(var(--gap) * 1.5); }
section[data-archive] h1 { font-family: var(--font-heading); font-size: clamp(2rem, 4vw, 2.75rem); line-height: 1.1; margin: 0; }
ul[data-subscribe] { display: flex; flex-wrap: wrap; font-family: var(--font-ui); font-size: 0.85rem; gap: 0.5rem 1rem; list-style: none; margin: 0.75rem 0 0; padding: 0; }
ul[data-feeds] { display: grid; gap: calc(var(--gap) * 1.5); list-style: none; margin: 0; padding: 0; }
ul[data-feeds] h2 { font-family: var(--font-heading); font-size: 1.6rem; line-height: 1.2; margin: 0 0 0.35rem; }
ul[data-feeds] p { margin: 0; }
p[data-archive-kind] { color: var(--muted); font-family: var(--font-ui); font-size: 0.8rem; letter-spacing: 0.08em; margin: 0 0 0.25rem; text-transform: uppercase; }

nav[data-pager] {
  align-items: baseline;
  display: flex;
  font-family: var(--font-ui);
  font-size: 0.9rem;
  gap: 1.5rem;
  justify-content: space-between;
  margin-block-start: calc(var(--gap) * 2);
}
nav[data-pager] span { color: var(--muted); }

section[data-empty], section[data-notfound], section[data-account-page] { max-inline-size: var(--measure); }

/* /signin: Patrix's sign-in card (rastrillo's signin partial) in the
   theme's own type, colours and buttons. The site header above it
   already carries the logo and name, so the card's own brand side goes. */
section[data-signin-page] { font-family: var(--font-ui); margin-block: calc(var(--gap) * 1.5) calc(var(--gap) * 2); margin-inline: auto; max-inline-size: 26rem; }
section[rst-signin] { background: var(--paper); border: 1px solid var(--rule); border-radius: 8px; padding: clamp(1.25rem, 5vw, 2.25rem); }
section[rst-signin] [rst-signin-brand] { display: none; }
[rst-signin-door] { display: grid; gap: 1rem; }
[rst-signin-door] > * { margin: 0; }
[rst-signin-door] h1 { font-family: var(--font-heading); font-size: clamp(1.35rem, 2.5vw, 1.62rem); line-height: 1.25; }
[rst-signin-door] p { color: var(--ink); line-height: var(--leading); }
[rst-signin-door] bdi { font-weight: 600; }
form[rst-signin-form] { display: grid; gap: 0.9rem; margin: 0; }
[rst-field] { display: grid; gap: 0.35rem; }
[rst-field-label] { font-size: 0.9rem; font-weight: 600; }
[rst-field-hint], [rst-field-help] { color: var(--muted); font-size: 0.85rem; }
[rst-field-error] { color: #b3261e; font-size: 0.85rem; }
input[rst-input] {
  background: var(--paper);
  border: 1px solid color-mix(in oklch, var(--ink) 25%, var(--paper));
  border-radius: 6px;
  color: var(--ink);
  font: inherit;
  inline-size: 100%;
  padding: 0.6rem 0.75rem;
}
input[rst-input]:focus-visible { border-color: var(--accent); outline: 2px solid color-mix(in oklch, var(--accent) 35%, transparent); outline-offset: 1px; }
input[rst-input][aria-invalid="true"] { border-color: #b3261e; }
[rst-signin] [rst-btn] {
  align-items: center;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  font: inherit;
  font-weight: 600;
  inline-size: 100%;
  justify-content: center;
  padding: 0.65rem 1.2rem;
  text-decoration: none;
}
[rst-signin] [rst-btn~="primary"] { background: var(--accent); color: #fff; }
[rst-signin] [rst-btn~="primary"]:hover { filter: brightness(0.9); }
[rst-signin] [rst-btn~="ghost"] { color: var(--muted); font-size: 0.9rem; font-weight: 500; padding-block: 0.35rem; }
[rst-signin] [rst-btn~="ghost"]:hover { color: var(--ink); text-decoration: underline; }
[rst-signin] [rst-btn]:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
[rst-signin] [rst-btn]:disabled { cursor: progress; opacity: 0.6; }
[rst-signin] [rst-btn][hidden] { display: none; }
/* tokens.css's rule, which public pages don't load: pow keeps its status
   line out of sight with it until the form cannot work. */
.rst-sr-only {
  block-size: 1px;
  clip-path: inset(50%);
  inline-size: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
}
[rst-signin] [data-pow-status], p[rst-signin-remembered], p[rst-signin-passkey-msg] { color: var(--muted); font-size: 0.85rem; }
p[rst-signin-passkey-msg]:empty { display: none; }
p[rst-signin-or] { color: var(--muted); font-size: 0.85rem; text-align: center; }
[rst-signin-passkey]:has(> [rst-btn][hidden]) + p[rst-signin-or], p[rst-signin-or]:has(+ [rst-signin-passkey] > [rst-btn][hidden]) { display: none; }
/* A button's glyph (signin-glyph) at the size of its words. */
[rst-signin] [rst-btn] > svg { block-size: 1.1em; flex: none; inline-size: 1.1em; }
[rst-signin] [rst-btn] > svg + span { margin-inline-start: 0.5rem; }
/* The passkey's offer and the sign-in options (internal/patrix/waysin):
   a list of ways in, each row its glyph, its name over a line of
   detail, and a chevron. */
[rst-signin-ways] { border: 1px solid var(--rule); border-radius: 6px; display: flex; flex-direction: column; overflow: hidden; }
[rst-signin-ways] > :not(:first-child) { border-block-start: 1px solid var(--rule); }
[rst-signin-ways] form { margin: 0; }
[rst-signin] [rst-signin-ways] [rst-btn] { border-radius: 0; gap: 0.75rem; justify-content: flex-start; padding: 0.65rem 0.9rem; text-align: start; }
[rst-signin] [rst-signin-ways] [rst-btn] > svg + span { margin-inline-start: 0; }
[rst-signin] [rst-signin-ways] a[rst-btn]:hover, [rst-signin] [rst-signin-ways] button[rst-btn]:hover { background: color-mix(in oklch, var(--ink) 5%, var(--paper)); }
[rst-signin-ways] [rst-btn] > svg { color: var(--muted); }
[rst-signin-ways] [rst-btn] > span { display: grid; flex: 1; gap: 0.1rem; min-inline-size: 0; }
[rst-signin-ways] [rst-btn] bdi { color: var(--muted); font-size: 0.85rem; font-weight: 400; }
[dir="rtl"] [rst-signin-ways] [rst-btn] > svg:last-child { transform: scaleX(-1); }
[rst-signin] [rst-badge] { border: 1px solid currentColor; border-radius: 999px; color: var(--muted); font-size: 0.72rem; font-weight: 600; margin-inline-start: 0.4rem; padding: 0 0.45rem; vertical-align: 0.1em; white-space: nowrap; }
[rst-signin] [rst-badge~="positive"] { color: #2e7d32; }
section[data-signin-page] [rst-callout] { border: 1px solid var(--rule); border-inline-start: 3px solid var(--accent); border-radius: 6px; display: flex; gap: 0.6rem; margin-block-end: 1rem; padding: 0.75rem 0.9rem; }
section[data-signin-page] [rst-callout][rst-tone="warning"] { border-inline-start-color: #b26b00; }
section[data-signin-page] [rst-callout][rst-tone="negative"] { border-inline-start-color: #b3261e; }
section[data-signin-page] [rst-callout][rst-tone="positive"] { border-inline-start-color: #2e7d32; }
[rst-callout-ic] svg { block-size: 1.1em; inline-size: 1.1em; }
[rst-callout-body] p { margin: 0; }
[rst-callout-body] strong { display: block; margin-block-end: 0.15rem; }
dl[data-feeds] dt { font-weight: 600; margin-block-start: 1rem; }
dl[data-feeds] dt span { font-weight: 400; opacity: 0.7; }
dl[data-feeds] dd { margin: 0.25rem 0 0; }
input[data-feed-address] { inline-size: 100%; font: inherit; font-size: 0.85rem; padding: 0.4rem 0.5rem; }
p[data-podcast-apps] { font-size: 0.85rem; margin-block: 0.4rem 0; }
.px-podcast { display: flex; flex-wrap: wrap; gap: 1rem 1.25rem; align-items: flex-start; margin-block: 1.5rem; padding: 1rem; border: 1px solid color-mix(in srgb, currentColor 15%, transparent); border-radius: 0.5rem; }
.px-podcast-cover { inline-size: 7.5rem; block-size: 7.5rem; object-fit: cover; border-radius: 0.375rem; flex: none; }
.px-podcast-body { flex: 1 1 16rem; min-inline-size: 0; }
.px-podcast-title { margin-block: 0 0.25rem; }
.px-podcast-author { margin-block: 0 0.5rem; opacity: 0.75; }
.px-podcast-apps, .px-podcast-signin { font-size: 0.9rem; margin-block: 0.5rem 0; }
.px-feeds dd { margin: 0.25rem 0 0.75rem; overflow-wrap: anywhere; font-size: 0.9rem; }
.px-feeds dt { font-weight: 600; }

/* One post or page. */

article[data-entry] > header { margin-block-end: var(--gap); max-inline-size: var(--measure); }
h1[data-entry-title] {
  font-family: var(--font-heading);
  font-size: clamp(2.1rem, 5vw, 3.25rem);
  line-height: 1.08;
  margin: 0 0 0.75rem;
  text-wrap: balance;
}

figure[data-featured] { margin: 0 0 var(--gap); }
figure[data-featured] img { inline-size: 100%; }

div[data-prose] { max-inline-size: var(--measure); }
div[data-prose] > * { margin-block: 0 1em; }
div[data-prose] h2, div[data-prose] h3 { font-family: var(--font-heading); line-height: 1.2; margin-block: 1.75em 0.5em; text-wrap: balance; }
div[data-prose] h2 { font-size: 1.55em; }
div[data-prose] h3 { font-size: 1.2em; }
div[data-prose] ul, div[data-prose] ol { padding-inline-start: 1.4em; }
div[data-prose] li + li { margin-block-start: 0.35em; }
div[data-prose] figure { margin-inline: 0; }
/* An image's own width and place (doc: Width, Align): the width is a
   most, never more than the column, and its caption keeps the column's
   width; left and right let the words flow round it on a wide screen
   and stack on a phone. */
div[data-prose] figure[data-px-align="center"] { margin-inline: auto; }
div[data-prose] figure[data-px-align="center"] img { margin-inline: auto; }
@media (min-width: 40rem) {
  div[data-prose] figure[data-px-align="left"] { float: left; margin-block: 0.3rem 1rem; margin-inline: 0 1.5rem; max-inline-size: 50%; }
  div[data-prose] figure[data-px-align="right"] { float: right; margin-block: 0.3rem 1rem; margin-inline: 1.5rem 0; max-inline-size: 50%; }
}
div[data-prose]::after { clear: both; content: ""; display: table; }
div[data-prose] h2, div[data-prose] h3, div[data-prose] hr, div[data-prose] table { clear: both; }
div[data-prose] img[data-zoomable] { cursor: zoom-in; }
div[data-prose] img[data-zoomable]:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
div[data-prose] figcaption { color: var(--muted); font-family: var(--font-ui); font-size: 0.85rem; margin-block-start: 0.5rem; }
div[data-prose] hr { border: 0; border-block-start: 1px solid var(--rule); margin-block: 2.5em; }
div[data-prose] blockquote { border-inline-start: 3px solid var(--accent); margin-inline: 0; padding-inline-start: 1.1em; }
div[data-prose] blockquote p { margin-block: 0 0.6em; }
div[data-prose] blockquote p:last-child { margin-block-end: 0; }
/* A table is compact: smaller type on tight rows, as wide as its words
   need (never more than the column), and a wide one scrolls sideways
   inside itself on a phone rather than squeezing every word. */
div[data-prose] table { border-collapse: collapse; display: block; font-size: 0.85em; font-variant-numeric: tabular-nums; inline-size: fit-content; line-height: 1.4; margin-block: 1.5em; max-inline-size: 100%; overflow-x: auto; }
div[data-prose] caption { caption-side: bottom; color: var(--muted); font-family: var(--font-ui); font-size: 0.85rem; margin-block-start: 0.5rem; text-align: start; }
div[data-prose] th, div[data-prose] td { border-block-end: 1px solid var(--rule); overflow-wrap: break-word; padding: 0.3em 0.9em; text-align: start; vertical-align: top; }
div[data-prose] :is(th, td):first-child { padding-inline-start: 0; }
div[data-prose] :is(th, td):last-child { padding-inline-end: 0; }
div[data-prose] th { border-block-end: 1.5px solid var(--ink); font-family: var(--font-ui); font-size: 0.95em; font-weight: 600; white-space: nowrap; }
div[data-prose] tbody tr:last-child :is(th, td) { border-block-end: 0; }
div[data-prose] .px-embed iframe { border: 0; display: block; inline-size: 100%; }
div[data-prose] .px-embed-video iframe { aspect-ratio: 16 / 9; block-size: auto; }
div[data-prose] .px-embed video { block-size: auto; display: block; inline-size: 100%; }
div[data-prose] .px-embed audio { display: block; inline-size: 100%; }
div[data-prose] .px-recent { padding-inline-start: 1.4em; }

dl[data-fields] { display: grid; gap: 0.35rem 1.25rem; grid-template-columns: minmax(6rem, max-content) 1fr; margin: var(--gap) 0 0; max-inline-size: var(--measure); }
dl[data-fields] dt { color: var(--muted); font-family: var(--font-ui); font-size: 0.85rem; padding-block-start: 0.2rem; }
dl[data-fields] dd { margin: 0; }
dl[data-fields] dd > :first-child { margin-block-start: 0; }
dl[data-fields] dd > :last-child { margin-block-end: 0; }
@media (max-width: 30rem) { dl[data-fields] { grid-template-columns: 1fr; } dl[data-fields] dd { margin-block-end: 0.5rem; } }
ul[data-tags] { display: flex; flex-wrap: wrap; font-family: var(--font-ui); font-size: 0.85rem; gap: 0.5rem; list-style: none; margin: var(--gap) 0 0; max-inline-size: var(--measure); padding: 0; }
ul[data-tags] a { border: 1px solid var(--rule); border-radius: 999px; color: var(--muted); display: inline-block; padding: 0.15rem 0.7rem; text-decoration: none; }
ul[data-tags] a:hover { border-color: var(--accent); color: var(--accent); }

/* Comments. */

section[data-comments] {
  border-block-start: 1px solid var(--rule);
  margin-block-start: calc(var(--gap) * 2);
  max-inline-size: var(--measure);
  padding-block-start: var(--gap);
}
section[data-comments] h2 { font-family: var(--font-heading); font-size: 1.3rem; margin: 0 0 var(--gap); }
section[data-comments] ol { display: grid; gap: var(--gap); list-style: none; margin: 0 0 calc(var(--gap) * 1.5); padding: 0; }
section[data-comments] li p { margin: 0 0 0.5em; }
/* Replies sit under what they answer, a rule to their left; on a phone
   the indent stays small however deep the thread goes. */
section[data-comments] li > ol { border-inline-start: 2px solid var(--rule); margin: var(--gap) 0 0; padding-inline-start: clamp(0.6rem, 3vw, 1.25rem); }
p[data-comment-reply] { font-family: var(--font-ui); font-size: 0.85rem; }
p[data-comment-replying] { color: var(--muted); font-family: var(--font-ui); font-size: 0.9rem; }
p[data-comment-meta] { color: var(--muted); font-family: var(--font-ui); font-size: 0.875rem; }
p[data-comment-meta] b { color: var(--ink); }
li[data-staff] > article p[data-comment-meta] b::after { color: var(--accent); content: " · author"; font-weight: 400; }

form[data-comment-form] { font-family: var(--font-ui); }
form[data-comment-form] h3 { font-family: var(--font-heading); font-size: 1.1rem; margin: 0 0 0.75rem; }
form[data-comment-form] label { display: block; font-size: 0.9rem; font-weight: 600; margin-block-end: 0.25rem; }
form[data-comment-form] label span { color: var(--muted); font-weight: 400; }
form[data-comment-form] input, form[data-comment-form] textarea {
  background: var(--paper);
  border: 1px solid color-mix(in oklch, var(--ink) 25%, var(--paper));
  border-radius: 6px;
  color: var(--ink);
  font: inherit;
  inline-size: 100%;
  padding: 0.55rem 0.7rem;
}
form[data-comment-form] [aria-invalid] { border-color: #b3261e; }
form[data-comment-form] [data-error] { color: #b3261e; display: block; font-size: 0.85rem; margin-block-start: 0.25rem; }
form[data-comment-form] button {
  background: var(--accent);
  border: 0;
  border-radius: 6px;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  padding: 0.6rem 1.2rem;
}
form[data-comment-form] button:disabled { cursor: progress; opacity: 0.6; }
form[data-comment-form] [data-pow-status], p[data-comment-note] { color: var(--muted); font-size: 0.85rem; }

/* /subscribe/{plan}: the plan's price, what it includes, and the
   promotion code field, set as the comment form is. */
p[data-plan-price] { font-family: var(--font-ui); font-size: 1.1rem; }
form[data-subscribe-form] { font-family: var(--font-ui); margin-block: var(--gap); }
form[data-subscribe-form] label { display: block; font-size: 0.9rem; font-weight: 600; margin-block-end: 0.25rem; }
form[data-subscribe-form] label span, form[data-subscribe-form] [data-hint] { color: var(--muted); font-weight: 400; }
form[data-subscribe-form] [data-hint] { display: block; font-size: 0.85rem; margin-block-end: 0.35rem; }
form[data-subscribe-form] input {
  background: var(--paper);
  border: 1px solid color-mix(in oklch, var(--ink) 25%, var(--paper));
  border-radius: 6px;
  color: var(--ink);
  font: inherit;
  inline-size: min(100%, 20rem);
  padding: 0.55rem 0.7rem;
}
form[data-subscribe-form] [aria-invalid] { border-color: #b3261e; }
form[data-subscribe-form] [data-error] { color: #b3261e; display: block; font-size: 0.85rem; margin-block-end: 0.35rem; }
form[data-subscribe-form] button {
  background: var(--accent);
  border: 0;
  border-radius: 6px;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  padding: 0.6rem 1.2rem;
}

/* The lightbox (assets/lightbox.js): a body image shown full screen. */
dialog[data-lightbox] { background: rgb(0 0 0 / 0.92); block-size: 100dvh; border: 0; cursor: zoom-out; inline-size: 100vw; inset: 0; margin: 0; max-block-size: none; max-inline-size: none; padding: 0; }
dialog[data-lightbox]::backdrop { background: rgb(0 0 0 / 0.92); }
dialog[data-lightbox][open] { align-items: center; display: flex; justify-content: center; }
dialog[data-lightbox] img { block-size: auto; inline-size: auto; max-block-size: calc(100dvh - 2rem); max-inline-size: calc(100vw - 2rem); object-fit: contain; }
dialog[data-lightbox] button { background: rgb(0 0 0 / 0.5); border: 1px solid rgb(255 255 255 / 0.4); border-radius: 999px; color: #fff; cursor: pointer; font: 1.6rem/1 system-ui, sans-serif; block-size: 2.5rem; inline-size: 2.5rem; inset-block-start: 1rem; inset-inline-end: 1rem; position: absolute; }
dialog[data-lightbox] button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
html[data-lightbox-open] { overflow: hidden; }

/* The account line (layout.html "account"): Log out is a form, drawn as
   a link beside the reader's name. */
[data-account] { font-family: var(--font-ui); font-size: 0.85rem; margin: 0; }
form[data-signout] { display: inline; margin: 0; }
form[data-signout] button {
  background: none;
  border: 0;
  color: inherit;
  cursor: pointer;
  font: inherit;
  padding: 0;
  text-decoration: underline;
}
p[data-comment-gate], p[data-comment-as] { font-family: var(--font-ui); }
footer[data-site] [data-account] { margin-block-start: 0.5rem; }
/* Who is signed in, under the title and tagline. */
p[data-reader] { color: var(--muted); font-family: var(--font-ui); font-size: 0.85rem; margin: 0.25rem 0 0; }
[data-reader-name] { color: var(--ink); font-weight: 600; }

/* A protected section the reader may not see (blocks "locked"). */
aside.px-locked {
  border: 1px dashed var(--muted);
  border-radius: 6px;
  font-family: var(--font-ui);
  margin-block: 1.5rem;
  padding: 0.9rem 1.1rem;
}
aside.px-locked p { margin: 0; }

/* Search (layout.html "search-form"): on the results page, the 404 and
   a theme's sidebar. The label is for screen readers; the placeholder
   and the button say what it is to everyone else. */
form[data-search] { display: flex; gap: 0.4rem; font-family: var(--font-ui); margin-block: 0.75rem; max-inline-size: 32rem; }
form[data-search] label { block-size: 1px; clip-path: inset(50%); inline-size: 1px; overflow: hidden; position: absolute; white-space: nowrap; }
form[data-search] input { flex: 1; font: inherit; font-size: 0.9rem; min-inline-size: 0; padding: 0.4rem 0.6rem; border: 1px solid var(--muted); border-radius: 4px; background: transparent; color: inherit; }
form[data-search] button { font: inherit; font-size: 0.85rem; padding: 0.4rem 0.8rem; border: 1px solid currentColor; border-radius: 4px; background: transparent; color: inherit; cursor: pointer; }
aside[data-sidebar] form[data-search] { margin-block: 1rem; }

/* Around a post (layout.html "post-nav", "share", "related"). */
nav[data-post-nav] { display: flex; flex-wrap: wrap; gap: var(--gap); justify-content: space-between; font-family: var(--font-ui); margin-block: calc(var(--gap) * 1.5); max-inline-size: var(--measure); }
nav[data-post-nav] a { display: grid; gap: 0.15rem; max-inline-size: 22rem; text-decoration: none; }
nav[data-post-nav] a span { color: var(--muted); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; }
nav[data-post-nav] a[rel="prev"] span::before { content: "‹ "; }
nav[data-post-nav] a[rel="next"] { margin-inline-start: auto; text-align: end; }
nav[data-post-nav] a[rel="next"] span::after { content: " ›"; }
nav[data-share] { font-family: var(--font-ui); font-size: 0.9rem; margin-block: var(--gap); }
nav[data-share] p { margin: 0 0 0.4rem; }
nav[data-share] ul { display: flex; flex-wrap: wrap; gap: 0.4rem; list-style: none; margin: 0; padding: 0; }
nav[data-share] a { border: 1px solid var(--rule); border-radius: 999px; display: inline-block; padding: 0.2rem 0.7rem; text-decoration: none; }
nav[data-share] a:hover, nav[data-share] a:focus-visible { border-color: currentColor; }
section[data-related] { font-family: var(--font-ui); margin-block: var(--gap); }
section[data-related] h2 { font-size: 0.78rem; letter-spacing: 0.2em; margin: 0 0 0.5rem; text-transform: uppercase; }
section[data-related] ul { display: grid; gap: 0.4rem; list-style: none; margin: 0; padding: 0; }

/* The topics and issues blocks (blocks/indexes.go). */
section.px-topics h2.px-topics-group { font-size: 1rem; margin: 1.5rem 0 0.5rem; }
ul.px-topics-list { display: flex; flex-wrap: wrap; gap: 0.35rem 1rem; list-style: none; margin: 0; padding: 0; }
span.px-topics-count { color: var(--muted); font-family: var(--font-ui); font-size: 0.8em; font-variant-numeric: tabular-nums; }
ol.px-issues-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr)); list-style: none; margin: 0; padding: 0; }
.px-issue { align-items: center; aspect-ratio: 1; border: 1.5px solid currentColor; border-radius: 14px; display: flex; flex-direction: column; justify-content: center; padding: 1rem; text-align: center; text-decoration: none; }
span.px-issue { color: var(--muted); }
.px-issue-kind, .px-issue-date { font-family: var(--font-ui); font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; }
.px-issue-number { font-size: clamp(2.4rem, 6vw, 4rem); font-variant-numeric: tabular-nums; line-height: 1; margin-block: 0.3rem 0.8rem; }
p.px-issues-locked { text-align: center; }

/* codeblocks.css */
/* codeblocks.css: the code block extension (internal/patrix/extensions/
   codeblocks). Laid after base.css and before a theme's own files, so a
   theme restyles a code block by setting these properties (or rules) of
   its own. The token colours are a light palette with at least 4.5:1
   contrast on --code-paper's default. */

:root {
  --code-font: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --code-paper: color-mix(in srgb, var(--ink) 4%, var(--paper));
  --code-ink: var(--ink);
  --code-rule: var(--rule);
  --code-comment: #5c6670;
  --code-keyword: #b3135a;
  --code-type: #1f5f9e;
  --code-string: #1d6b2e;
  --code-number: #8a4b00;
  --code-function: #6a3fb5;
  --code-builtin: #0f6670;
  --code-tag: #22863a;
  --code-attr: #6f42c1;
  --code-inserted: #1d6b2e;
  --code-deleted: #b31d28;
}

div[data-prose] .px-code {
  margin-block: 1.5em;
  margin-inline: 0;
}

div[data-prose] .px-code figcaption {
  align-items: baseline;
  color: var(--muted);
  display: flex;
  font-family: var(--font-ui);
  font-size: 0.8em;
  gap: 1em;
  justify-content: space-between;
  margin-block-end: 0.35em;
}

div[data-prose] .px-code-title { font-family: var(--code-font); }
div[data-prose] .px-code-lang { margin-inline-start: auto; }

div[data-prose] .px-code pre {
  background: var(--code-paper);
  border: 1px solid var(--code-rule);
  border-radius: 6px;
  color: var(--code-ink);
  font-family: var(--code-font);
  font-size: 0.85em;
  line-height: 1.5;
  margin: 0;
  max-block-size: 40em;
  overflow: auto;
  padding: 0.9em 1.1em;
  tab-size: 4;
  white-space: pre;
}

div[data-prose] .px-code pre:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
div[data-prose] .px-code code { background: none; font: inherit; padding: 0; }

.px-code .px-c, .px-code .px-cp { color: var(--code-comment); font-style: italic; }
.px-code .px-cp { font-style: normal; }
.px-code .px-k { color: var(--code-keyword); }
.px-code .px-kt, .px-code .px-kc { color: var(--code-type); }
.px-code .px-s { color: var(--code-string); }
.px-code .px-se { color: var(--code-number); }
.px-code .px-m { color: var(--code-number); }
.px-code .px-nf { color: var(--code-function); }
.px-code .px-nb, .px-code .px-nv, .px-code .px-nd { color: var(--code-builtin); }
.px-code .px-nt { color: var(--code-tag); }
.px-code .px-na { color: var(--code-attr); }
.px-code .px-gi { background: color-mix(in srgb, var(--code-inserted) 10%, transparent); color: var(--code-inserted); }
.px-code .px-gd { background: color-mix(in srgb, var(--code-deleted) 10%, transparent); color: var(--code-deleted); }
.px-code .px-gh { color: var(--code-type); font-weight: 600; }
.px-code .px-gp { color: var(--code-comment); user-select: none; }

/* host.css */
/* A hosted site's address as Patrix shows it (<slug>.patrix.site): in a
   typewriter face, the parent in bold at the same size as the name
   before it. One copy, for every place that shows one: patrix.cc's
   start-site form (extensions/startsite, which lays this before its own
   stylesheet) and the root's sign-up and waiting pages
   (home/templates, served among the root's own files). */
.px-host { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.px-host-parent { font-weight: 700; white-space: nowrap; }

/* startsite.css */
/* extensions/startsite: the start-site form, the theme gallery, and a
   page holding a start-site laid out as a landing page
   (docs/design/2026-11-28-landing-flow.md). Everything is drawn in the
   site theme's own properties, so it follows the theme. */

/* The form. */
.px-start { margin-block: 1rem 2.5rem; }
div[data-prose] .px-start-title, .px-start-title {
  font-family: var(--font-heading); font-size: clamp(2rem, 4vw + 1rem, 3.4rem);
  letter-spacing: -0.02em; line-height: 1.05; margin: 0 0 1rem; max-inline-size: 18ch;
}
div[data-prose] .px-start-lede, .px-start-lede { color: var(--muted); font-size: 1.15em; margin: 0 0 1.75rem; max-inline-size: 36rem; }
.px-start-form { margin: 0; }
.px-start-fields {
  align-items: end; display: grid; gap: 0.75rem 1rem;
  grid-template-columns: minmax(12rem, 1fr) minmax(16rem, 1.4fr) auto;
}
.px-start-field { display: grid; gap: 0.35rem; min-inline-size: 0; }
.px-start-field[hidden] { display: none; }
/* With start.js, one field: the name, the address it makes shown under
   it, edited there in place when pressed. */
.px-start-form[data-px-one] .px-start-fields { grid-template-columns: minmax(0, 1fr) auto; max-inline-size: 36rem; }
.px-start-swap { color: var(--muted); font-family: var(--font-ui); font-size: 0.9rem; grid-column: 1; margin: -0.25rem 0 0; }
.px-start-swap[hidden] { display: none; }
.px-start-swap-waiting { visibility: hidden; }
.px-start-swap button {
  background: none; border: 0; border-radius: 0.3rem; color: var(--ink); cursor: pointer;
  font: 1rem/1.4 var(--font-ui); overflow-wrap: anywhere; padding: 0.1rem 0.25rem; text-align: start;
}
.px-start-swap button:hover { background: color-mix(in srgb, var(--accent) 8%, transparent); }
.px-start-swap button:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.px-start-swap-placeholder { color: color-mix(in srgb, var(--muted) 75%, var(--paper)); }
.px-start-swap-icon { color: var(--muted); flex: none; margin-inline-start: 0.5rem; vertical-align: -0.15em; }
/* The address's face and its bold parent are .px-host's (host.css). */
.px-start-swap-edit { color: var(--ink); font-size: 1rem; line-height: 1.4; padding-inline: 0.25rem; }
.px-start-swap-edit[hidden] { display: none; }
.px-start .px-start-swap-edit input {
  background: color-mix(in srgb, var(--paper) 55%, #fff); border: 0;
  border-block-end: 2px solid var(--accent); border-radius: 0; font: inherit;
  inline-size: auto; min-block-size: 0; padding: 0 0.15rem;
}
.px-start .px-start-swap-edit input:focus-visible { outline: 0; }
.px-start-label { color: var(--muted); font-family: var(--font-ui); font-size: 0.85rem; font-weight: 600; }
.px-start input, .px-start-domain {
  background: color-mix(in srgb, var(--paper) 55%, #fff);
  border: 1px solid color-mix(in srgb, var(--ink) 30%, var(--paper));
  border-radius: 0.4rem; box-sizing: border-box; color: var(--ink);
  font: 1rem/1.3 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  inline-size: 100%; min-block-size: 3rem; padding: 0.6rem 0.75rem;
}
.px-start .px-start-name input { font: 700 1.5rem/1.2 var(--font-heading); min-block-size: 3.6rem; }
.px-start-form[data-px-one] button[type="submit"] { min-block-size: 3.6rem; }
.px-start input::placeholder { color: color-mix(in srgb, var(--muted) 75%, var(--paper)); }
.px-start input:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
/* The address reads as it will: what is typed against its parent. */
.px-start-domain { align-items: center; display: flex; padding-block: 0; padding-inline-end: 0.75rem; }
.px-start-domain:focus-within { outline: 2px solid var(--accent); outline-offset: 1px; }
.px-start-domain > input {
  background: transparent; border: 0; flex: 1 1 0; font: inherit; min-inline-size: 3ch;
  padding-inline: 0; text-align: end;
}
.px-start-domain > input:focus-visible { outline: 0; }
.px-start-suffix { flex: none; }
.px-start button[type="submit"] {
  background: var(--accent); border: 0; border-radius: 0.4rem; color: var(--paper);
  cursor: pointer; font: 600 1rem/1.2 var(--font-ui); min-block-size: 3rem; padding: 0.6rem 1.25rem;
  white-space: nowrap;
}
.px-start button[type="submit"]:hover { background: color-mix(in srgb, var(--accent) 85%, var(--ink)); }
.px-start button[type="submit"]:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.px-start-hint { color: var(--muted); font-family: var(--font-ui); font-size: 0.85rem; margin: 0.5rem 0 0; }
.px-start-hint[hidden] { display: none; }
.px-start-note { color: var(--muted); font-family: var(--font-ui); font-size: 0.85rem; margin: 0.75rem 0 0; }
@media (max-width: 44rem) {
  .px-start-fields { grid-template-columns: 1fr; }
  .px-start-form:not([data-px-one]) button[type="submit"] { inline-size: 100%; }
  .px-start-form[data-px-one] button[type="submit"] { padding-inline: 1rem; }
}

/* The gallery: a row that scrolls sideways on a phone, a grid wider. */
.px-gallery { margin-block: 1.5rem 2rem; }
.px-gallery-cards {
  display: grid; gap: 2.5rem 2rem; list-style: none; margin: 0; padding: 4px 4px 0.75rem;
  grid-auto-flow: column; grid-auto-columns: min(16rem, 80%);
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
}
@media (min-width: 52rem) {
  .px-gallery-cards { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); overflow: visible; }
}
.px-gallery-card {
  border: 1.5px solid transparent; border-radius: 1rem; display: flex; flex-direction: column;
  margin: 0; min-inline-size: 0; padding: 0.9rem; scroll-snap-align: start;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
/* The card the pointer is over, or that holds focus, is drawn round whole. */
.px-gallery-card:is(:hover, :focus-within) {
  background: color-mix(in srgb, var(--paper) 55%, #fff); border-color: var(--accent);
  box-shadow: 0 0.5rem 1.5rem color-mix(in srgb, var(--ink) 8%, transparent);
}
.px-gallery-picture { border: 1px solid var(--rule); border-radius: 0.5rem; display: block; overflow: hidden; position: relative; }
.px-gallery-picture img { aspect-ratio: 8 / 5; inline-size: 100%; object-fit: cover; transition: transform 0.3s; }
.px-gallery-picture:hover img { transform: scale(1.03); }
.px-gallery-hidden { block-size: 1px; clip-path: inset(50%); inline-size: 1px; overflow: hidden; position: absolute; white-space: nowrap; }
div[data-prose] .px-gallery-title { font-size: 1.6rem; margin: 0 0 0.6rem; text-align: center; }
.px-gallery-picture { margin-block-end: 0.75rem; }
.px-gallery-desc { color: var(--muted); margin: 0 0 0.5rem; }
.px-gallery-links { font-family: var(--font-ui); margin: auto 0 0; padding-block-start: 0.5rem; text-align: center; }
/* The picture opens the sample site: an arrow in a circle at its corner. */
.px-gallery-open {
  align-items: center; background: color-mix(in srgb, var(--paper) 88%, transparent);
  border: 1px solid var(--rule); border-radius: 50%; block-size: 2.25rem; color: var(--ink);
  display: flex; inline-size: 2.25rem; inset: 0.6rem 0.6rem auto auto; justify-content: center;
  position: absolute; transition: background 0.2s, color 0.2s;
}
.px-gallery-picture:hover .px-gallery-open, .px-gallery-picture:focus-visible .px-gallery-open { background: var(--accent); border-color: var(--accent); color: var(--paper); }
.px-gallery-picture:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
div[data-prose] a.px-gallery-use, a.px-gallery-use {
  background: var(--accent); border: 1px solid var(--accent); border-radius: 0.4rem; box-sizing: border-box;
  color: var(--paper); display: inline-block; font-size: 0.95rem; font-weight: 600; padding: 0.55rem 1rem;
  text-align: center; text-decoration: none; transition: background 0.2s;
}
div[data-prose] a.px-gallery-use:hover, a.px-gallery-use:hover, a.px-gallery-use:focus-visible { background: color-mix(in srgb, var(--accent) 85%, var(--ink)); color: var(--paper); }
a.px-gallery-use:focus-visible { background: var(--accent); color: var(--paper); }
a.px-gallery-use:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .px-gallery-card, .px-gallery-picture img, .px-gallery-open, a.px-gallery-use { transition: none; } }

/* A page holding a start-site is a landing page: the column widens, the
   entry's own title steps aside for the form's, each h2 starts a band,
   steps and features become rows of cards, the table is the pricing and
   each h3 with its paragraph a question. The words are the page's own. */
body:has(.px-start) { overflow-x: clip; }
body:has(.px-start) :is(header[data-site], main, footer[data-site]) { max-inline-size: 72rem; }
/* A landing page's header is the site's name alone: no tagline, no
   signed-in line, no page menu (the page itself says where to go). */
body:has(.px-start) header[data-site] :is([data-site-tagline], [data-reader], [data-site-nav]) { display: none; }
body:has(.px-start) article[data-entry] > header {
  block-size: 1px; clip-path: inset(50%); inline-size: 1px; margin: 0; overflow: hidden; position: absolute; white-space: nowrap;
}
/* The landing page reads a size smaller than a post; the name typed in
   the form keeps its own size (rem). */
body:has(.px-start) main div[data-prose] { font-size: 0.85em; max-inline-size: none; }
body:has(.px-start) main div[data-prose] > :is(p, ul, ol) { max-inline-size: 40rem; }
body:has(.px-start) main div[data-prose] > h2 {
  border-block-start: 1px solid var(--rule);
  font-family: var(--font-heading); font-size: clamp(1.7rem, 2.5vw + 1rem, 2.6rem);
  letter-spacing: -0.015em; line-height: 1.1; margin: 4rem 0 1rem;
  padding-block-start: 3.5rem; position: relative;
}
/* The band's rule runs the window's width. */
body:has(.px-start) main div[data-prose] > h2::before {
  border-block-start: 1px solid var(--rule); content: ""; inset-block-start: -1px;
  inset-inline: calc(50% - 50vw); position: absolute;
}
body:has(.px-start) main div[data-prose] > h2 + p { color: var(--muted); font-size: 1.1em; }

/* Steps: an ordered list, three across, numbered large. */
body:has(.px-start) main div[data-prose] > ol {
  counter-reset: px-step; display: grid; gap: 1.5rem 2rem; list-style: none;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); max-inline-size: none; padding: 0;
}
body:has(.px-start) main div[data-prose] > ol > li { counter-increment: px-step; margin: 0; }
body:has(.px-start) main div[data-prose] > ol > li::before {
  color: var(--accent); content: counter(px-step); display: block;
  font: 700 2.5rem/1 var(--font-heading); margin-block-end: 0.5rem;
}

/* Features: a list whose items lead with bold words, as cards. */
body:has(.px-start) main div[data-prose] > ul:has(> li > strong:first-child) {
  display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  list-style: none; max-inline-size: none; padding: 0;
}
body:has(.px-start) main div[data-prose] > ul:has(> li > strong:first-child) > li {
  background: color-mix(in srgb, var(--paper) 55%, #fff);
  border: 1px solid var(--rule); border-radius: 0.5rem; margin: 0; padding: 1rem 1.15rem;
}
body:has(.px-start) main div[data-prose] > ul > li > strong:first-child {
  display: block; font-family: var(--font-heading); font-size: 1.1em; margin-block-end: 0.25rem;
}
/* Each card leads with an icon (themes/assets/landing), chosen by its place
   on patrix.cc's front page (docs/patrixcc/home.html): the three lists of
   cards, in order. Reordering the page's cards means reordering these; a
   card with no rule here has no icon. */
body:has(.px-start) main div[data-prose] > ul:has(> li > strong:first-child) > li::before {
  background: var(--accent); block-size: 1.6rem; display: block; inline-size: 1.6rem;
  margin-block-end: 0.6rem; -webkit-mask: center / contain no-repeat; mask: center / contain no-repeat;
}
body:has(.px-start) main div[data-prose] > ul:nth-of-type(1) > li:nth-child(1)::before { content: ""; -webkit-mask-image: url("/theme/assets/landing/writing.svg"); mask-image: url("/theme/assets/landing/writing.svg"); }
body:has(.px-start) main div[data-prose] > ul:nth-of-type(1) > li:nth-child(2)::before { content: ""; -webkit-mask-image: url("/theme/assets/landing/paid.svg"); mask-image: url("/theme/assets/landing/paid.svg"); }
body:has(.px-start) main div[data-prose] > ul:nth-of-type(1) > li:nth-child(3)::before { content: ""; -webkit-mask-image: url("/theme/assets/landing/private.svg"); mask-image: url("/theme/assets/landing/private.svg"); }
body:has(.px-start) main div[data-prose] > ul:nth-of-type(1) > li:nth-child(4)::before { content: ""; -webkit-mask-image: url("/theme/assets/landing/embeds.svg"); mask-image: url("/theme/assets/landing/embeds.svg"); }
body:has(.px-start) main div[data-prose] > ul:nth-of-type(1) > li:nth-child(5)::before { content: ""; -webkit-mask-image: url("/theme/assets/landing/tables.svg"); mask-image: url("/theme/assets/landing/tables.svg"); }
body:has(.px-start) main div[data-prose] > ul:nth-of-type(1) > li:nth-child(6)::before { content: ""; -webkit-mask-image: url("/theme/assets/landing/comments.svg"); mask-image: url("/theme/assets/landing/comments.svg"); }
body:has(.px-start) main div[data-prose] > ul:nth-of-type(1) > li:nth-child(7)::before { content: ""; -webkit-mask-image: url("/theme/assets/landing/feeds.svg"); mask-image: url("/theme/assets/landing/feeds.svg"); }
body:has(.px-start) main div[data-prose] > ul:nth-of-type(1) > li:nth-child(8)::before { content: ""; -webkit-mask-image: url("/theme/assets/landing/analytics.svg"); mask-image: url("/theme/assets/landing/analytics.svg"); }
body:has(.px-start) main div[data-prose] > ul:nth-of-type(1) > li:nth-child(9)::before { content: ""; -webkit-mask-image: url("/theme/assets/landing/move.svg"); mask-image: url("/theme/assets/landing/move.svg"); }
body:has(.px-start) main div[data-prose] > ul:nth-of-type(2) > li:nth-child(1)::before { content: ""; -webkit-mask-image: url("/theme/assets/landing/writers.svg"); mask-image: url("/theme/assets/landing/writers.svg"); }
body:has(.px-start) main div[data-prose] > ul:nth-of-type(2) > li:nth-child(2)::before { content: ""; -webkit-mask-image: url("/theme/assets/landing/members.svg"); mask-image: url("/theme/assets/landing/members.svg"); }
body:has(.px-start) main div[data-prose] > ul:nth-of-type(2) > li:nth-child(3)::before { content: ""; -webkit-mask-image: url("/theme/assets/landing/podcasts.svg"); mask-image: url("/theme/assets/landing/podcasts.svg"); }
body:has(.px-start) main div[data-prose] > ul:nth-of-type(2) > li:nth-child(4)::before { content: ""; -webkit-mask-image: url("/theme/assets/landing/business.svg"); mask-image: url("/theme/assets/landing/business.svg"); }
body:has(.px-start) main div[data-prose] > ul:nth-of-type(3) > li:nth-child(1)::before { content: ""; -webkit-mask-image: url("/theme/assets/landing/safe.svg"); mask-image: url("/theme/assets/landing/safe.svg"); }
body:has(.px-start) main div[data-prose] > ul:nth-of-type(3) > li:nth-child(2)::before { content: ""; -webkit-mask-image: url("/theme/assets/landing/agents.svg"); mask-image: url("/theme/assets/landing/agents.svg"); }
body:has(.px-start) main div[data-prose] > ul:nth-of-type(3) > li:nth-child(3)::before { content: ""; -webkit-mask-image: url("/theme/assets/landing/leave.svg"); mask-image: url("/theme/assets/landing/leave.svg"); }

/* Pricing: the table, full width, a column per way of running it. */
body:has(.px-start) main div[data-prose] table {
  display: table; font-size: 0.95em; inline-size: 100%; line-height: 1.5; table-layout: fixed;
}
body:has(.px-start) main div[data-prose] table :is(th, td) {
  border: 0; border-block-end: 1px solid var(--rule); padding: 0.65rem 1rem 0.65rem 0; text-align: start; vertical-align: top;
  white-space: normal;
}
body:has(.px-start) main div[data-prose] table thead th {
  border-block-end: 2px solid var(--ink); font-family: var(--font-heading); font-size: 1.25em;
}
@media (max-width: 36rem) {
  body:has(.px-start) main div[data-prose] table { font-size: 0.85em; }
}

/* Questions: each h3 and its answer, two across when there is room. */
body:has(.px-start) main div[data-prose] > h3 { font-size: 1.1em; margin: 1.75rem 0 0.35rem; }
body:has(.px-start) main div[data-prose] > h3 + p { color: var(--muted); }

/* The closing form: a band of the accent's tint. */
body:has(.px-start) main div[data-prose] > .px-start:last-child {
  background: color-mix(in srgb, var(--accent) 9%, var(--paper));
  border-radius: 0.75rem; margin-block: 4rem 0; padding: clamp(1.5rem, 4vw, 3rem);
}
body:has(.px-start) main div[data-prose] > .px-start:last-child .px-start-title, body:has(.px-start) main div[data-prose] > .px-start:last-child h2.px-start-title { font-size: clamp(1.8rem, 3vw + 1rem, 2.8rem); }

/* gallery.css */
/* gallery.css: the gallery block (internal/patrix/extensions/gallery),
   pictures in a grid of square tiles, each a link to the whole picture.
   Laid after base.css; a theme restyles it with these properties. */

:root {
  --photos-gap: 0.5rem;
  --photos-radius: 4px;
}

ul.px-photos {
  display: grid;
  gap: var(--photos-gap);
  grid-template-columns: repeat(3, 1fr);
  list-style: none;
  margin-block: 1.5em;
  margin-inline: 0;
  padding: 0;
}

ul.px-photos[data-columns="1"] { grid-template-columns: 1fr; }
ul.px-photos[data-columns="2"] { grid-template-columns: repeat(2, 1fr); }
ul.px-photos[data-columns="4"] { grid-template-columns: repeat(4, 1fr); }
ul.px-photos[data-columns="5"] { grid-template-columns: repeat(5, 1fr); }
ul.px-photos[data-columns="6"] { grid-template-columns: repeat(6, 1fr); }
@media (max-width: 40rem) {
  ul.px-photos[data-columns] { grid-template-columns: repeat(2, 1fr); }
  ul.px-photos[data-columns="1"] { grid-template-columns: 1fr; }
}

ul.px-photos > li { margin: 0; padding: 0; }
ul.px-photos a { display: block; }
ul.px-photos img {
  aspect-ratio: 1;
  block-size: auto;
  border-radius: var(--photos-radius);
  inline-size: 100%;
  object-fit: cover;
}

/* pagecards.css */
/* pagecards.css: the pages block (internal/patrix/extensions/pagecards),
   pages as a grid of linked cards. Laid after base.css and before a
   theme's own files, so a theme restyles the cards by setting these
   properties (or rules) of its own. */

:root {
  --card-min: 13rem;
  --card-gap: 1.25rem;
  --card-rule: var(--rule);
  --card-radius: 10px;
  --card-image-ratio: 4 / 3;
}

ul.px-cards {
  display: grid;
  gap: var(--card-gap);
  grid-template-columns: repeat(auto-fill, minmax(min(var(--card-min), 100%), 1fr));
  list-style: none;
  margin-block: 1.5em;
  margin-inline: 0;
  padding: 0;
}

ul.px-cards > li.px-card {
  margin: 0;
  padding: 0;
}

.px-card > a {
  border: 1px solid var(--card-rule);
  border-radius: var(--card-radius);
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  text-decoration: none;
}

.px-card > a:hover .px-card-title,
.px-card > a:focus-visible .px-card-title {
  text-decoration: underline;
}

.px-card img {
  aspect-ratio: var(--card-image-ratio);
  display: block;
  height: auto;
  margin: 0;
  object-fit: cover;
  width: 100%;
}

.px-card-title {
  color: var(--accent);
  font-family: var(--font-heading);
  font-size: 1.1em;
  font-weight: 600;
  line-height: 1.3;
  padding: 0.8rem 1rem 0;
}

.px-card-excerpt {
  color: var(--muted);
  font-size: 0.9em;
  line-height: 1.5;
  padding: 0.4rem 1rem 0;
}

.px-card > a > :last-child {
  padding-bottom: 1rem;
}

/* social.css */
/* The social extension's sidebar box (internal/patrix/extensions/social):
   a community's threads as a short feed, each a link into the social
   service: what was said, when, and how far it has gone. */

section[data-social] { margin: 0 0 2.5rem; }
section[data-social] h2 a { color: inherit; text-decoration: none; }
section[data-social] ol { display: grid; gap: 0; list-style: none; margin: 0; padding: 0; }
section[data-social] li + li { border-block-start: 1px solid color-mix(in oklch, var(--ink, currentColor) 12%, transparent); }
section[data-social] li > a {
  color: var(--ink, inherit);
  display: grid;
  font-weight: 400;
  padding-block: 0.75rem;
  row-gap: 0.2rem;
  text-decoration: none;
}
section[data-social] li > a:hover { color: var(--ink, inherit); text-decoration: none; }
section[data-social] li > a:hover [data-text] { text-decoration: underline; text-decoration-thickness: 1px; }
section[data-social] li > a:focus-visible { outline: 2px solid var(--accent, currentColor); outline-offset: 2px; }

section[data-social] [data-text] {
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  display: -webkit-box;
  font-size: 0.9rem;
  line-height: 1.4;
  overflow: hidden;
}
section[data-social] [data-counts] {
  align-items: center;
  color: var(--muted, #6b7280);
  display: flex;
  font-size: 0.78rem;
  gap: 0.9rem;
}
section[data-social] [data-counts] span { align-items: center; display: inline-flex; gap: 0.3rem; }
section[data-social] [data-counts] svg {
  block-size: 0.9rem;
  fill: none;
  inline-size: 0.9rem;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}
section[data-social] p[data-social-more] { font-size: 0.85rem; margin: 0.5rem 0 0; }
section[data-social] p[data-social-more] a { color: var(--accent, inherit); font-weight: 700; }

/* The field to ask a question: a closed <details> drawn as a one-line
   field with its ▾ inside; open, the form under it. */
section[data-social] details[data-social-ask] { margin: 0 0 0.75rem; }
section[data-social] details[data-social-ask] summary {
  align-items: center;
  background: #fff;
  border: 1px solid color-mix(in oklch, var(--ink, #000) 25%, #fff);
  border-radius: 2px;
  color: var(--muted, #6b7280);
  cursor: pointer;
  display: flex;
  font-size: 0.9rem;
  gap: 0.5rem;
  justify-content: space-between;
  list-style: none;
  padding: 0.5rem 0.6rem;
}
section[data-social] details[data-social-ask] summary::-webkit-details-marker { display: none; }
section[data-social] details[data-social-ask] summary:hover { border-color: var(--ink, #000); }
section[data-social] details[data-social-ask] summary:focus-visible { outline: 2px solid var(--accent, currentColor); outline-offset: 2px; }
section[data-social] details[data-social-ask] summary svg {
  block-size: 1.1rem;
  fill: none;
  flex: none;
  inline-size: 1.1rem;
  stroke: var(--ink, currentColor);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  transition: transform 0.15s;
}
section[data-social] details[data-social-ask][open] summary svg { transform: rotate(180deg); }
section[data-social] details[data-social-ask][open] summary { border-end-end-radius: 0; border-end-start-radius: 0; }
section[data-social] details[data-social-ask] form { display: grid; gap: 0.5rem; justify-items: start; margin-block-start: 0.5rem; }
section[data-social] details[data-social-ask] textarea {
  background: #fff;
  border: 1px solid color-mix(in oklch, var(--ink, #000) 25%, #fff);
  border-radius: 2px;
  box-sizing: border-box;
  color: var(--ink, inherit);
  font: inherit;
  font-size: 0.94rem;
  inline-size: 100%;
  padding: 0.5rem 0.6rem;
  resize: vertical;
}
section[data-social] details[data-social-ask] button {
  background: #000;
  border: 0;
  border-radius: 2px;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 10px 15px;
  text-transform: uppercase;
}
section[data-social] details[data-social-ask] button:hover { filter: brightness(0.85); }
section[data-social] details[data-social-ask] button:disabled { cursor: wait; opacity: 0.6; }
section[data-social] details[data-social-ask] form p,
section[data-social] p[data-social-note] { color: var(--muted, #6b7280); font-size: 0.85rem; margin: 0.5rem 0 0; }

/* "Your question is posted", small, under the question it started. */
section[data-social] p[data-social-asked] { color: var(--muted, #6b7280); font-size: 0.78rem; margin: -0.4rem 0 0.75rem; }
section[data-social] p[data-social-asked] a { color: var(--accent, inherit); font-weight: 700; }

/* productscience.css */
/* Product Science: dx.mba as the Next.js site drew it (code/dx-mba-web,
   styles/theme.scss and its components), on Patrix's base.css alone.
   Lato for reading, Barlow for headings and the meta line, slate text,
   the mark's lavender for the brand, the menu and links, and a pale
   lavender for rules. The header and footer are templates/productscience.

   The faces are the two the old site loaded (Lato 400, Barlow 600, latin;
   both SIL Open Font License 1.1, from @fontsource), in
   assets/productscience. They are named here by the address the theme's
   asset handler answers immutable (the name, then the first 16 hex of the
   file's sha256), and absolutely, so the admin's distilled copy of these
   rules (themes.Distill) reaches them too. TestTheme checks both. */

@font-face { font-family: "Lato"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/theme/assets/productscience/lato-400.918b7dc3e2e2d015.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("/theme/assets/productscience/barlow-600.2b14e8397d552f35.woff2") format("woff2"); }

:root {
  --accent: #7d88f6;
  --band: #f0f2fe;
  --font-body: "Lato", Georgia, serif;
  --font-heading: "Barlow", "Lato", sans-serif;
  --font-ui: "Lato", Georgia, serif;
  --gap: 0.9375rem;
  --ink: #525867;
  --leading: 1.5;
  --mark: #7d88f6;
  --measure: 58.125rem;
  --muted: #292d51;
  --paper: #ffffff;
  --rule: #dddffd;
  --size: 1rem;
  --wide: 60rem;
}

/* The old site's root size: 14px on a phone, 16px from 768px. */
html { font-size: 14px; }
@media (min-width: 768px) { html { font-size: 16px; } }

h1, h2, h3, h4, h5, h6 { color: var(--ink); font-family: var(--font-heading); font-weight: 600; letter-spacing: -0.05rem; }

/* The bar: the mark, the title a word to a line, then the menu. */

header[data-site] { align-items: center; flex-wrap: wrap; gap: 0.5rem 1rem; padding-block: 0.5rem; margin-block-end: 1rem; }
a[data-site-title] { color: var(--mark); font-family: var(--font-ui); font-size: 1.25rem; font-weight: 400; gap: 0.25rem; line-height: 0.95; }
a[data-site-title]:hover { color: var(--mark); }
svg[data-ps-mark] { block-size: 3rem; flex: none; inline-size: 3rem; }
span[data-ps-name] { display: block; inline-size: min-content; padding-block: 0.25rem; }
nav[data-site-nav] { flex-basis: auto; font-family: var(--font-ui); font-size: 1.5rem; }
nav[data-site-nav] ul { gap: 0 1.5rem; }
nav[data-site-nav] a { color: var(--mark); }
@media (max-width: 575.98px) { nav[data-site-nav] { flex-basis: 100%; font-size: 1.15rem; } nav[data-site-nav] ul { gap: 0 1rem; } }
nav[data-site-nav] a:hover, nav[data-site-nav] a[aria-current] { color: var(--mark); text-decoration: underline; text-decoration-thickness: 1px; }

main { padding-block: 0 1rem; }

/* Archives: the name in capitals, in the mark's colour. */

section[data-archive] h1 { color: var(--mark); font-size: 2rem; font-weight: 600; letter-spacing: 0; text-transform: uppercase; }
p[data-archive-kind] { display: none; }

/* Lists: a title, the meta line, the lede; a pale rule between. */

ol[data-entries] { gap: 1rem; }
ol[data-entries] > li + li { border-block-start: 1px solid var(--rule); padding-block-start: 1rem; }
ol[data-entries] h2[data-entry-title] { font-size: 1.75rem; font-weight: 600; line-height: 1.2; margin: 0 0 0.5rem; }
ol[data-entries] h2[data-entry-title] a { color: var(--ink); }
ol[data-entries] h2[data-entry-title] a:hover { color: var(--mark); text-decoration: none; }
p[data-entry-excerpt] { font-size: 1.1rem; max-inline-size: none; }
ol[data-entries] figure[data-featured] { margin-block: 0.5rem; }

/* The meta line, as the old site's: the contributors (the body's
   [byline] block), each a round picture and a name, then "|" and the
   date, Barlow in capitals, dark. In a list the byline is the body's
   first block and the rest of the body is not shown (templates'
   summary); on a post it is the prose's first block, set on the
   header's line below. */

p[data-entry-meta] { color: var(--muted); font-family: var(--font-heading); font-size: 0.9rem; font-weight: 600; letter-spacing: 0.02em; margin-block-end: 0.25rem; text-transform: uppercase; }
p[data-entry-meta] a { color: var(--muted); text-decoration: none; }
p[data-entry-meta] a:hover { color: var(--mark); }
span[data-ps-sep] { margin-inline: 0.4em; }
article[data-entry]:has(.dx-byline) p[data-entry-meta] { white-space: nowrap; }
article[data-entry]:has(.dx-byline) p[data-entry-meta]::before { content: "|"; margin-inline: 1rem; }

p.dx-byline { align-items: center; color: var(--muted); display: flex; flex-wrap: wrap; font-family: var(--font-heading); font-size: 1rem; font-weight: 600; gap: 0.25rem 1.25rem; letter-spacing: 0.02em; line-height: 1.2; margin: 0; text-transform: uppercase; }
.dx-byline-who { align-items: center; color: inherit; display: inline-flex; gap: 0.5rem; text-decoration: none; }
a.dx-byline-who:hover { color: var(--mark); }
.dx-byline img { block-size: 2rem; border-radius: 50%; flex: none; inline-size: 2rem; margin: 0; object-fit: cover; }

div[data-ps-meta] { align-items: center; display: flex; flex-wrap: wrap; margin-block-end: 0.25rem; }
div[data-ps-meta] p[data-entry-meta] { margin: 0; }
div[data-ps-lead] { display: contents; }
div[data-ps-lead] > :not(.dx-byline:first-child) { display: none; }
div[data-ps-meta] > p[data-entry-meta] { order: 1; }
/* The lede, as the old list showed it: the body's first paragraph after
   the byline, its links and emphasis kept, under the meta line, in place
   of the excerpt's plain words. */
div[data-ps-lead] > p.dx-byline:first-child ~ p:not(.dx-byline:first-child ~ p ~ p) { color: var(--ink); display: block; flex-basis: 100%; font-size: 1rem; margin: 0.5rem 0 0; order: 2; }
div[data-ps-lead] a { color: var(--accent); text-decoration: none; }
div[data-ps-lead] a:hover { text-decoration: underline; }
article[data-entry]:has(div[data-ps-lead] > p.dx-byline:first-child ~ p) p[data-entry-excerpt] { display: none; }
div[data-ps-lead] .dx-byline { font-size: 1.1rem; }
div[data-ps-lead] .dx-byline img { block-size: 1.4rem; inline-size: 1.4rem; }

/* A post whose prose begins with its byline: the header and the prose
   are laid in one grid, so the byline and the header's meta line share
   a row under the title, above the lede. Their children keep their
   places in the page (and their rules) but no longer collapse their
   margins, so each keeps only the space below it. Not while the post is
   edited in place, which hides all but its editor. */

article[data-kind="post"]:not([data-editing]):has(> div[data-prose] > .dx-byline:first-child) { align-items: center; display: grid; grid-template-columns: minmax(0, max-content) 1fr; }
article[data-kind="post"]:not([data-editing]):has(> div[data-prose] > .dx-byline:first-child) > :is(header, div[data-prose]) { display: contents; }
article[data-kind="post"]:not([data-editing]):has(> div[data-prose] > .dx-byline:first-child) > *,
article[data-kind="post"]:not([data-editing]):has(> div[data-prose] > .dx-byline:first-child) > header > *,
article[data-kind="post"]:not([data-editing]):has(> div[data-prose] > .dx-byline:first-child) > div[data-prose] > * { grid-column: 1 / -1; margin-block-start: 0; min-inline-size: 0; }
article[data-kind="post"]:not([data-editing]):has(> div[data-prose] > .dx-byline:first-child) > header > h1[data-entry-title] { grid-row: 1; }
article[data-kind="post"]:not([data-editing]):has(> div[data-prose] > .dx-byline:first-child) > div[data-prose] > p.dx-byline:first-child { grid-column: 1; grid-row: 2; margin-block-end: 1.5rem; }
article[data-kind="post"]:not([data-editing]):has(> div[data-prose] > .dx-byline:first-child) > header > p[data-entry-meta] { grid-column: 2; grid-row: 2; margin-block-end: 1.5rem; min-inline-size: auto; }

/* A post: the title, the meta line, then the prose at the old site's
   reading size, its lede (the paragraph after the byline) large, led by
   a lavender drop capital. */

h1[data-entry-title] { font-size: 2.5rem; line-height: 1.2; margin: 0.5rem 0 1rem; }
article[data-entry] > header { margin-block-end: 1.5rem; }
div[data-prose] { font-size: 1.4rem; max-inline-size: none; }
div[data-prose] p, div[data-prose] ul, div[data-prose] ol { margin-block: 0 1.4rem; }
div[data-prose] h2, div[data-prose] h3, div[data-prose] h4 { margin-block: 1.5rem 1.4rem; }
div[data-prose] h2 { font-size: 2rem; }
div[data-prose] h3 { font-size: 1.75rem; }
div[data-prose] a { color: var(--accent); text-decoration: none; }
div[data-prose] a:hover { text-decoration: underline; }
div[data-prose] a.dx-lens, div[data-prose] a.dx-contributor { border-block-end: 1px solid var(--accent); }
div[data-prose] a.dx-lens:hover, div[data-prose] a.dx-contributor:hover { text-decoration: none; }
div[data-prose] blockquote { border-inline-start: 3px solid var(--rule); margin-inline: 0; padding-inline-start: 1.8em; }
div[data-prose] pre { background: var(--band); padding: 1em; }
div[data-prose] figure { margin-inline: 0; }
div[data-prose] img { margin-inline: auto; }
div[data-prose] table { border-collapse: collapse; inline-size: 100%; }
div[data-prose] th, div[data-prose] td { border-block-end: 1px solid var(--rule); padding: 0.75rem; }
div[data-prose] th { border-block-end-width: 2px; vertical-align: bottom; }

article[data-kind="post"] div[data-prose] > p.dx-byline:first-child a { color: inherit; }
article[data-kind="post"] div[data-prose] > p.dx-byline:first-child + p { font-size: 1.3em; margin-block-end: 2.4rem; }
article[data-kind="post"] div[data-prose] > p.dx-byline:first-child + p::first-letter {
  color: var(--mark); float: left; font-size: 2.97em; font-weight: 700; line-height: 1; margin: 0 0.1em 0 0; text-transform: uppercase;
}

ul[data-tags] a { color: var(--accent); }
nav[data-pager] a { color: var(--accent); }

/* The foot: the rights, the social links, then About and the account's links, in
   three columns from 768px, centred above one another below it. */

footer[data-site] { border-block-start: 1px solid #c5c9fc; color: var(--muted); font-family: var(--font-ui); font-size: 1rem; margin-block-start: 2.5rem; max-inline-size: none; padding-block: 1.2rem 1.5rem; }
div[data-ps-foot] { align-items: center; display: grid; gap: 0.5rem; margin-inline: auto; max-inline-size: calc(var(--wide) - var(--gap) * 2); text-align: center; }
div[data-ps-foot] p { margin: 0; }
footer[data-site] a { color: var(--muted); text-decoration: none; }
footer[data-site] a:hover { color: var(--ink); }
/* The social links are icons only (base.css hides each network's name, for
   screen readers): each sits in a flex row of its own height, so the row
   centres on the rights' and links' text line, not on top of it. */
div[data-ps-social] ul[data-social] { justify-content: center; margin: 0; }
div[data-ps-social] ul[data-social] li { display: flex; }
div[data-ps-links] { align-items: baseline; display: flex; gap: 1rem; justify-content: center; }
div[data-ps-links] div[data-account] { display: contents; }
div[data-ps-links] form[data-signout] { display: inline; margin: 0; }
div[data-ps-links] form[data-signout] button { background: none; border: 0; color: var(--muted); cursor: pointer; font: inherit; padding: 0; text-decoration: none; }
div[data-ps-links] form[data-signout] button:hover { color: var(--ink); }
@media (min-width: 768px) {
  div[data-ps-foot] { grid-template-columns: 1fr 1fr 1fr; }
  p[data-ps-rights] { text-align: start; }
  div[data-ps-links] { justify-content: flex-end; }
}

/* dx.mba's blocks (blocks.go). */
.dx-lens, .dx-contributor { text-decoration-style: dotted; }
.dx-lens-thumb { display: inline-block; margin: 0 0.5rem 0.5rem 0; vertical-align: top; }
.dx-lens-thumb img { border-radius: 6px; height: 6rem; width: auto; }
.dx-lens-card { border: 1px solid color-mix(in srgb, var(--mark) 35%, transparent); border-radius: 8px; display: block; max-width: 16rem; overflow: hidden; text-decoration: none; }
.dx-lens-card img { display: block; width: 100%; }
.dx-lens-card-title { display: block; padding: 0.6rem 0.8rem; }
.dx-lens-image { margin: 1.5rem 0; }
.dx-lens-image img { border-radius: 8px; display: block; max-width: 100%; }
.dx-lens-image figcaption { font-size: 0.9em; margin-top: 0.4rem; }
.dx-logo { color: var(--mark); margin: 0 0 1rem; }
.dx-logo svg { display: block; height: auto; }
.dx-logo-xs svg { width: 2rem; }
.dx-logo-sm svg { width: 3rem; }
.dx-logo-md svg { width: 5rem; }
.dx-logo-lg svg { width: 8rem; }
.dx-logo-xl svg { width: 12rem; }
/* A note: a mark in the sentence whose words show on hover or focus. */
.dx-note { cursor: help; position: relative; }
.dx-note-mark { background: var(--mark); border-radius: 50%; color: #fff; display: inline-block; font-size: 0.7em; font-style: italic; font-weight: 600; height: 1.3em; line-height: 1.3em; text-align: center; vertical-align: super; width: 1.3em; }
.dx-note-text { background: #fff; border: 1px solid var(--mark); border-radius: 6px; bottom: 1.6em; box-shadow: 0 4px 12px rgb(0 0 0 / 12%); font-size: 0.85em; left: -1rem; padding: 0.5rem 0.7rem; position: absolute; visibility: hidden; width: max-content; max-width: 18rem; z-index: 2; }
.dx-note:hover .dx-note-text, .dx-note:focus .dx-note-text { visibility: visible; }

/* The home page (templates/productscience/page-home.html; home.go says
   what its body holds): the old site's pages/index.scss. A lavender
   hero over a white wave, then the body's parts as bands the page's full
   width, white and lavender in turn, their words in the old site's 60rem
   column. */

main:has(> article[data-ps-home]) { max-inline-size: none; padding: 0; }
body:has(article[data-ps-home]) header[data-site] { margin-block-end: 0; }
body:has(article[data-ps-home]) footer[data-site] { border-block-start: 0; margin-block-start: 0; }

article[data-ps-home] { line-height: 1.35; }
article[data-ps-home] h1, article[data-ps-home] h2, article[data-ps-home] h3 { line-height: 1.2; }

article[data-ps-home] > header[data-ps-hero] { background: var(--band); border-block-start: 1px solid var(--rule); margin: 0; max-inline-size: none; overflow: hidden; padding-block-start: 1.5rem; text-align: center; }
header[data-ps-hero] h1[data-entry-title] { font-size: 2.5rem; margin: 0 auto; max-inline-size: var(--wide); padding: 0.5rem var(--gap) 0; }
img[data-ps-hero-art] { inline-size: calc((min(100%, var(--wide)) - var(--gap) * 2) * 0.6); margin: 0 auto; padding-block: 2.5rem 1.5rem; }
svg[data-ps-waves] { block-size: 1rem; display: block; fill: var(--paper); inline-size: 150%; position: relative; stroke: #c9ccfc; inset-block-start: 2px; }
@media (min-width: 576px) { svg[data-ps-waves] { block-size: 2rem; inline-size: 100%; } }
svg[data-ps-waves] use { animation: ps-wave 14s cubic-bezier(0.55, 0.5, 0.45, 0.5) infinite; }
@media (prefers-reduced-motion: reduce) { svg[data-ps-waves] use { animation: none; } }
@keyframes ps-wave { from { transform: translate3d(-90px, 0, 0); } to { transform: translate3d(85px, 0, 0); } }

article[data-ps-home] > div[data-prose] { font-size: 1rem; max-inline-size: none; }
article[data-ps-home] section[data-part] {
  --band-inset: max(var(--gap), calc((100% - var(--wide)) / 2 + var(--gap)));
  padding: 1.5rem var(--band-inset);
}
article[data-ps-home] section[data-part]:nth-of-type(even) { background: var(--band); }
article[data-ps-home] section[data-part] > :last-child { margin-block-end: 0; }
article[data-ps-home] section[data-part] h2 { font-size: 2.5rem; margin: 0 0 1.3rem; padding-block-start: 0.75rem; text-align: center; }
article[data-ps-home] section[data-part] > h3 { color: var(--mark); font-size: 1.5rem; margin: -0.8rem 0 1.3rem; text-align: center; }
article[data-ps-home] section[data-part] > h3 a { color: inherit; text-decoration: none; }
article[data-ps-home] section[data-part] p { font-size: 1.8rem; margin-block: 0 1.3rem; }
/* A band's last paragraph is its hint: a question and the consultation. */
article[data-ps-home] section[data-part] > p:last-child { font-size: 1.44rem; padding-block: 1em 1.5rem; text-align: center; }

/* A picture of the theme's ([ps-art]): an illustration 80% wide. */
figure.ps-art { margin: 0 0 1rem; text-align: center; }
figure.ps-art img { display: inline-block; inline-size: 80%; }
figure.ps-art a { display: inline-block; }

/* A band of three pictures each under a subheading: three columns, the
   picture a 128px icon, the words left. One column on a phone. */
article[data-ps-home] section[data-part]:has(> figure.ps-art ~ h3 ~ figure.ps-art ~ h3 ~ figure.ps-art ~ h3) > figure.ps-art { margin-block-end: 1rem; }
article[data-ps-home] section[data-part]:has(> figure.ps-art ~ h3 ~ figure.ps-art ~ h3 ~ figure.ps-art ~ h3) > figure.ps-art img { block-size: 8rem; inline-size: auto; }
article[data-ps-home] section[data-part]:has(> figure.ps-art ~ h3 ~ figure.ps-art ~ h3 ~ figure.ps-art ~ h3) > h3 { font-size: 1.75rem; margin-block-start: 0; }
article[data-ps-home] section[data-part]:has(> figure.ps-art ~ h3 ~ figure.ps-art ~ h3 ~ figure.ps-art ~ h3) > p:not(:last-child) { font-size: 1.62rem; }
@media (min-width: 576px) {
  article[data-ps-home] section[data-part]:has(> figure.ps-art ~ h3 ~ figure.ps-art ~ h3 ~ figure.ps-art ~ h3) { column-gap: 1.875rem; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  article[data-ps-home] section[data-part]:has(> figure.ps-art ~ h3 ~ figure.ps-art ~ h3 ~ figure.ps-art ~ h3) > * { grid-column: 1 / -1; }
  article[data-ps-home] section[data-part]:has(> figure.ps-art ~ h3 ~ figure.ps-art ~ h3 ~ figure.ps-art ~ h3) > figure.ps-art:nth-of-type(1), article[data-ps-home] section[data-part]:has(> figure.ps-art ~ h3 ~ figure.ps-art ~ h3 ~ figure.ps-art ~ h3) > h3:nth-of-type(1), article[data-ps-home] section[data-part]:has(> figure.ps-art ~ h3 ~ figure.ps-art ~ h3 ~ figure.ps-art ~ h3) > p:nth-of-type(1):not(:last-child) { grid-column: 1; }
  article[data-ps-home] section[data-part]:has(> figure.ps-art ~ h3 ~ figure.ps-art ~ h3 ~ figure.ps-art ~ h3) > figure.ps-art:nth-of-type(2), article[data-ps-home] section[data-part]:has(> figure.ps-art ~ h3 ~ figure.ps-art ~ h3 ~ figure.ps-art ~ h3) > h3:nth-of-type(2), article[data-ps-home] section[data-part]:has(> figure.ps-art ~ h3 ~ figure.ps-art ~ h3 ~ figure.ps-art ~ h3) > p:nth-of-type(2):not(:last-child) { grid-column: 2; }
  article[data-ps-home] section[data-part]:has(> figure.ps-art ~ h3 ~ figure.ps-art ~ h3 ~ figure.ps-art ~ h3) > figure.ps-art:nth-of-type(3), article[data-ps-home] section[data-part]:has(> figure.ps-art ~ h3 ~ figure.ps-art ~ h3 ~ figure.ps-art ~ h3) > h3:nth-of-type(3), article[data-ps-home] section[data-part]:has(> figure.ps-art ~ h3 ~ figure.ps-art ~ h3 ~ figure.ps-art ~ h3) > p:nth-of-type(3):not(:last-child) { grid-column: 3; }
  article[data-ps-home] section[data-part]:has(> figure.ps-art ~ h3 ~ figure.ps-art ~ h3 ~ figure.ps-art ~ h3) > figure.ps-art { grid-row: 2; }
  article[data-ps-home] section[data-part]:has(> figure.ps-art ~ h3 ~ figure.ps-art ~ h3 ~ figure.ps-art ~ h3) > h3 { grid-row: 3; }
  article[data-ps-home] section[data-part]:has(> figure.ps-art ~ h3 ~ figure.ps-art ~ h3 ~ figure.ps-art ~ h3) > p:nth-of-type(-n+3):not(:last-child) { grid-row: 4; }
}

/* Lens groups ([lens-group]) side by side, on the home page and in any
   page's words (the lens catalog at /lenses), a category's name over its
   lenses' thumbnails. */
article[data-ps-home] section[data-part]:has(> div.dx-lens-group),
[data-prose]:has(> div.dx-lens-group) { display: flex; flex-wrap: wrap; column-gap: 1rem; }
article[data-ps-home] section[data-part]:has(> div.dx-lens-group) > :not(div.dx-lens-group),
[data-prose]:has(> div.dx-lens-group) > :not(div.dx-lens-group) { flex-basis: 100%; }
article[data-ps-home] section[data-part] > div.dx-lens-group,
[data-prose] > div.dx-lens-group { flex: 1 1 0; min-inline-size: 0; }
div.dx-lens-group h3 { border-block-end: 1px solid var(--rule); color: var(--ink); font-size: 1rem; margin: 0 0 1.3rem; padding-block: 0.75rem 4px; text-align: center; }
@media (min-width: 576px) { div.dx-lens-group h3 { font-size: 1.4rem; } }
@media (min-width: 768px) { div.dx-lens-group h3 { font-size: 1.75rem; } }
div.dx-lens-group ul { list-style: none; margin: 0; padding: 0; }
div.dx-lens-group li { margin-block-end: 1rem; }
div.dx-lens-group img { border: 1px solid #eef0fe; border-radius: 0.5rem; inline-size: 100%; max-inline-size: 512px; }
div.dx-lens-group a:hover img { border-color: #c9cefb; }

/* Quotes, each led by the old site's quote mark. */
article[data-ps-home] section[data-part] > blockquote { border: 0; display: flex; gap: 1rem; margin: 0 0 3rem; padding: 0; }
article[data-ps-home] section[data-part] > blockquote::before {
  background: url("/theme/assets/productscience/home/open-quotes.53ee32559b2919fc.svg") no-repeat top / contain;
  block-size: 3rem; content: ""; flex: none; inline-size: 3rem;
}
article[data-ps-home] section[data-part] > blockquote p { font-size: 2.16rem; margin: 1rem 2rem 1.3rem 0; }
@media (min-width: 576px) {
  article[data-ps-home] section[data-part] > blockquote::before { block-size: 4rem; inline-size: 4rem; }
  article[data-ps-home] section[data-part] > blockquote p { margin-inline-end: 5rem; }
}

/* The Unstuck Assist page (/unstuck-assist): each of its three icons
   (112px pictures) beside its line, as the old page drew them. */
div[data-prose] > figure:has(> img[width="112"]) { clear: left; float: left; inline-size: 4.5rem; margin: 0 1.25rem 1rem 0; }
div[data-prose] > figure:has(> img[width="112"]) img { inline-size: 100%; height: auto; }
div[data-prose] > figure:has(> img[width="112"]) + p { display: flow-root; min-block-size: 5.5rem; padding-block-start: 1.5rem; }
div[data-prose] > figure:has(> img[width="112"]) + p + :not(figure) { clear: left; }

/* The foot of a post (templates' post-after), as the old site's
   footnote: a pale rule over the bootcamp line. */
div.dx-footnote { border-block-start: 1px solid var(--rule); font-size: 1.15rem; margin-block: 2rem 1rem; padding-block-start: 1.25rem; }
div.dx-footnote p { margin-block: 0 0.75rem; }
div.dx-footnote a, div.dx-lens-foot a { color: var(--accent); text-decoration: none; }
div.dx-footnote a:hover, div.dx-lens-foot a:hover { text-decoration: underline; }
a.dx-button, :is(div.dx-footnote, div.dx-lens-foot) a.dx-button { background: var(--mark); border-radius: 0.375rem; color: #fff; display: inline-block; font-family: var(--font-heading); padding: 0.5rem 1.5rem; text-decoration: none; }
a.dx-button:hover, :is(div.dx-footnote, div.dx-lens-foot) a.dx-button:hover { background: #5d69e8; color: #fff; text-decoration: none; }

/* A lens's page (pages.go): its picture after the first paragraph,
   leading to its PDF; at its end, the contributors who shaped it and the
   call to the bootcamp. */
figure.dx-lens-figure { margin: 1.5rem 0 2rem; text-align: center; }
figure.dx-lens-figure img { border: 1px solid #eef0fe; border-radius: 0.5rem; display: inline-block; max-inline-size: min(100%, 40rem); }
figure.dx-lens-figure a:hover img { border-color: #c9cefb; }
div.dx-lens-foot { border-block-start: 1px solid var(--rule); margin-block-start: 2rem; padding-block-start: 1.25rem; }
div.dx-lens-foot p.dx-influence { font-size: 1.1rem; margin-block-end: 0.75rem; }
div.dx-lens-foot p.dx-byline { margin-block-end: 1.5rem; }
div.dx-lens-foot p.dx-byline a { color: var(--muted); }
div.dx-lens-foot p.dx-cta { font-size: 1.15rem; }
/* Related lenses: their thumbnails in a row. */
div[data-prose] a.dx-lens-thumb { border: 0; }
div[data-prose] a.dx-lens-thumb img { border: 1px solid #eef0fe; height: 8rem; }

/* The contributors (contributor-list): each a round picture, the name
   and the website, by name. */
ul.dx-contributors { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); list-style: none; margin: 0; padding: 0; }
ul.dx-contributors li { align-items: center; display: flex; gap: 1rem; }
a.dx-contributor-picture { background: var(--band); block-size: 5rem; border-radius: 50%; flex: none; inline-size: 5rem; overflow: hidden; }
a.dx-contributor-picture img { block-size: 100%; inline-size: 100%; margin: 0; object-fit: cover; }
ul.dx-contributors h2 { font-size: 1.4rem; margin: 0; }
ul.dx-contributors h2 a { color: var(--ink); text-decoration: none; }
ul.dx-contributors h2 a:hover { color: var(--mark); }
ul.dx-contributors p { font-size: 0.95rem; margin: 0.25rem 0 0; overflow-wrap: anywhere; }

/* A lens's or contributor's page is its body: the fields under it
   (parts.html's "fields"), which its blocks draw already, are not shown,
   but under an empty body, where they are the page: the picture round,
   the website, the words, as contributor-head draws them. */
dl[data-fields], div.dx-item-fields { display: none; }
div[data-prose]:empty ~ div.dx-item-fields { display: block; }
div.dx-item-picture figure { margin: 0 0 1rem; }
div.dx-item-picture img { block-size: 10rem; border-radius: 50%; inline-size: 10rem; object-fit: cover; }
div.dx-item-website p { font-size: 1.1rem; margin: 0 0 1.5rem; overflow-wrap: anywhere; }

/* A contributor's page: the picture round, then the website. */
div.dx-contributor-head { margin-block-end: 1.5rem; }
div.dx-contributor-head img { block-size: 10rem; border-radius: 50%; inline-size: 10rem; margin: 0 0 1rem; object-fit: cover; }
div.dx-contributor-head p { font-size: 1.1rem; margin: 0; overflow-wrap: anywhere; }

/* Lens groups with no heading (a contributor's lenses): a row. */
div.dx-lens-group:not(:has(> h3)) ul { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr)); }
div.dx-lens-group:not(:has(> h3)) li { margin: 0; }

/* The lens catalog (/lenses, a page whose words hold the lens groups):
   the old site's title, in capitals in the mark's colour, the lede large
   under a lavender drop capital, each category's name on the left. */
article[data-entry]:has(> div[data-prose] > div.dx-lens-group > h3) h1[data-entry-title] { color: var(--mark); font-size: 2rem; letter-spacing: 0; text-transform: uppercase; }
article[data-entry]:has(> div[data-prose] > div.dx-lens-group > h3) > div[data-prose] > p:first-child { font-size: 1.3em; margin-block-end: 2.4rem; }
article[data-entry]:has(> div[data-prose] > div.dx-lens-group > h3) > div[data-prose] > p:first-child::first-letter {
  color: var(--mark); float: left; font-size: 2.97em; font-weight: 700; line-height: 1; margin: 0 0.1em 0 0; text-transform: uppercase;
}
[data-prose] > div.dx-lens-group h3 { text-align: start; }
