/* ==========================================================================
   Pyrexia site: the inner pages
   The calm sibling of the one-flow home page. Loaded after ../css/flow.css
   (tokens, type, buttons, the nav capsule, the footer, the accordion, the
   spec rows, the artefact frame) and, on a page whose header draws particles,
   after ../css/engine.css. Nothing here redefines a flow token or a flow
   class: every class is prefixed pg-.

   One ground: paper, and nothing painted behind text. Text is ink (every lede,
   paragraph and column of text); muted text (--fg-2) is for captions, keys and dates, violet is rationed
   (one phrase, a link, a mark). Nothing stands above a headline: no label, no
   dot, no mono capitals. No numbering with a leading zero. See ../WEB.md for
   the markup of every pattern.

   Contents
     1  Page and column          6  Offer columns
     2  Page header              7  The closing
     3  Breadcrumb               8  News index and article
     4  Sections and prose       9  The pattern kit, 404, print
     5  Split section, ticks
   ========================================================================== */

/* --------------------------------------------------------------------------
   1  Page and column
   -------------------------------------------------------------------------- */
html.pg { scroll-padding-top: var(--nav-clear); }
/* In-page links ease to their place. Only once the page has loaded and settled (html.pg-ready, set
   by js/page.js a moment after load): before that, the browser's own scroll restoration (Back to a
   page that was not kept in the back/forward cache) would be eased too, and the reader would watch
   the page scroll down from the top after the page transition (review of 14 November). */
@media (prefers-reduced-motion: no-preference) {
  html.pg.pg-ready:not(.flow-smooth) { scroll-behavior: smooth; }
}
.pg-main { display: block; position: relative; z-index: 1; }

/* The column: the home page's 1280px, with the same gutters (no chapter rail here). */
.pg-col {
  position: relative;
  width: min(100% - 2 * var(--pad-x), var(--max-w));
  margin-inline: auto;
}
.pg-col--narrow { --max-w: 56rem; }

/* The capsule names the section the reader is in, beside the wordmark. On the home page ui.js
   writes it; here the build does, so it is shown without a script too. */
html.pg:not(.ui-js) .flow-nav__chapter { display: flex; }

/* The phone menu names the page (or the section) the reader is in, in violet text (6.2:1). */
.flow-sheet__list a[aria-current] { color: var(--c-violet-deep); }

/* Links in running text: violet, always underlined (as in a scene on the home page). */
:where(.pg-main) a:not([class]) {
  color: var(--link);
  text-decoration: underline;
  text-decoration-color: var(--mark);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.24em;
  transition: text-decoration-color var(--dur-hover) ease;
}
:where(.pg-main) a:not([class]):hover { text-decoration-color: currentColor; }

/* --------------------------------------------------------------------------
   2  Page header
   The headline (two-tone allowed), one line of lede, and a quiet particle
   moment: the home page's engine draws one shape in .pg-head__dock (a small
   swarm, the mark, the four-node line, the pass card ...), at a fraction of
   the home page's particle count, and stops drawing once the header has
   scrolled well away. Nothing pins. Without the thread the dock shows a
   still drawn in round dots.
     From 900px   words on the left (7 of 12), the dock on the right.
     Below 900px  one column: the words, then the dock as a short band.
   A page under another (an offer page, an article) has one quiet breadcrumb
   line above the headline; a top-level page has none.
   -------------------------------------------------------------------------- */
.pg-head {
  position: relative;
  isolation: isolate;
  padding-block: calc(var(--nav-clear) + clamp(1.75rem, 7svh, 4.5rem)) 0;
}
.pg-head__in {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--sp-6) var(--col-gap);
  align-items: center;
}
.pg-head__text {
  display: grid;
  gap: var(--sp-5);
  justify-items: start;
  align-content: center;
  min-width: 0;
}
/* Nothing is painted behind the header's words (the founder, 13 November 2026): they sit straight on
   the page. The shape is kept in its dock, beside the words or under them, so the words are clear
   by where things are placed. */
/* One title size on every inner page (flow.css .flow-h--title, 76 at 1440 and 38 on a phone): the
   build puts the class on the h1. md (a working page: news, an article, a legal page, contact)
   only lets the line run a little longer. */
.pg-head__h { max-width: 15em; text-wrap: balance; overflow-wrap: anywhere; }   /* a long name ("DigitalHealth.London") breaks rather than push a 320px window sideways */
.pg-head--md .pg-head__h { max-width: 17em; }
.pg-head__lede { max-width: 36rem; }
.pg-head__lede strong { font-weight: 500; }
.pg-head__actions { margin-block-start: var(--sp-2); }

/* The article line: who, when, how long. Text face, muted; the dates in the text colour. */
.pg-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.75rem;
  font-size: var(--fz-caption);
  font-weight: 500;
  line-height: 1.5;
  color: var(--fg-2);
}
.pg-meta > * + *::before { content: "·"; margin-inline-end: 0.75rem; color: var(--fg-2); }
.pg-meta time { color: var(--fg); }
/* A migrated article's archive note, under the date line. */
.pg-meta__note { max-width: 40rem; margin-block-start: -0.5rem; font-size: var(--fz-note); line-height: 1.45; color: var(--fg-2); }

/* The dock. A box for the shape to fit; it has no look of its own. Text is never inside it. */
.pg-head__dock {
  position: relative;
  justify-self: center;
  width: min(100%, 30rem);
  height: clamp(8.5rem, 34vw, 12.5rem);
  min-width: 0;
}
.pg-head--md .pg-head__dock { height: clamp(7.5rem, 28vw, 10.5rem); }
.pg-head__still {
  position: absolute;
  inset: 4%;
  width: 92%;
  height: 92%;
  object-fit: contain;
  color: var(--fg);
  transition: opacity 600ms ease;
}
/* The thread draws the shape (live), or a single unmoving still of it (reduced motion). */
html:is(.flow-live, .flow-still) .pg-head__still { opacity: 0; }
/* The solid ink mark (header: mark) is not shown while the engine is starting: it arrived with the
   page transition and then faded under the particles, two pictures in a row. It waits a second and
   comes in only if the thread has not gone live or still by then (no WebGL, a slow start); with no
   script, or in static mode, it is there at once. */
@media (prefers-reduced-motion: no-preference) {
  html.ui-js:not(.flow-static) svg.pg-head__still { opacity: 0; animation: pg-still-late 400ms ease 1s forwards; }
  html.ui-js:is(.flow-live, .flow-still) svg.pg-head__still { opacity: 0; animation: none; }
}
@keyframes pg-still-late { to { opacity: 1; } }
/* The header is far out of the window: the engine has stopped drawing (js/page.js), and its last
   frame is not left on screen. */
html.pg-idle .flow-canvas { visibility: hidden; }

@media (min-width: 56.25em) {
  .pg-head__in {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    min-height: clamp(19rem, 44svh, 28rem);
  }
  .pg-head--md .pg-head__in { min-height: clamp(15rem, 34svh, 22rem); }
  .pg-head__dock { justify-self: stretch; width: 100%; height: clamp(15rem, 40svh, 25rem); }
  .pg-head--md .pg-head__dock { height: clamp(11rem, 30svh, 18rem); }
}

/* Variants. The four-node line (path) and the three-node line (steps) are drawn objects: a wide,
   short dock gives the horizontal line. The dust field (dust) lies behind the whole header, faint
   enough to stay behind text (the engine caps a loose particle for muted text at 4.6:1). still
   and none load no script for the header at all. */
.pg-head--path .pg-head__dock,
.pg-head--steps .pg-head__dock { height: clamp(5.5rem, 22vw, 8rem); }
@media (min-width: 56.25em) {
  .pg-head--path .pg-head__dock,
  .pg-head--steps .pg-head__dock { height: clamp(8rem, 20svh, 11rem); }
}
.pg-head--dust .pg-head__in { min-height: 0; }
.pg-head--dust .pg-head__dock {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: auto;
  height: auto;
}
.pg-head--dust .pg-head__in { grid-template-columns: minmax(0, 1fr); }
.pg-head--none .pg-head__in { grid-template-columns: minmax(0, 1fr); min-height: 0; }
.pg-head--mark .pg-head__dock { width: min(100%, 22rem); justify-self: center; }
@media (min-width: 56.25em) {
  .pg-head--mark .pg-head__dock { width: 100%; }
}

/* --------------------------------------------------------------------------
   3  Breadcrumb (with BreadcrumbList structured data, written by the build)
   -------------------------------------------------------------------------- */
.pg-crumbs { margin-block: -0.75rem -0.5rem; max-width: 100%; }
.pg-crumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: var(--fz-caption);
  font-weight: 500;
  line-height: 1.3;
  color: var(--fg-2);
}
.pg-crumbs li { display: inline-flex; align-items: center; min-width: 0; }
.pg-crumbs li + li::before { content: "/"; margin-inline-end: 0.5rem; font-weight: 400; }
.pg-crumbs a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding-inline: 0.3rem;                 /* a target at least 44px wide ("News"), drawn where it was */
  margin-inline: -0.3rem;
  color: var(--fg-2);
  text-decoration: none;
  transition: color var(--dur-hover) ease;
}
.pg-crumbs a:hover { color: var(--fg); text-decoration: underline; text-decoration-color: var(--mark); text-decoration-thickness: 1.5px; text-underline-offset: 0.28em; }
/* The page itself is the headline under the line: its name is kept for assistive technology and
   for the structured data, and not drawn a second time. */
.pg-crumbs li:is(:first-child, :last-child) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
/* "Home" is for assistive technology only: the wordmark goes home, so the line shows the one step the
   capsule does not, the page above this one (design pass, 13 November 2026). */
.pg-crumbs li:nth-child(2)::before { content: none; }

/* --------------------------------------------------------------------------
   4  Sections and prose
   -------------------------------------------------------------------------- */
.pg-sec { position: relative; padding-block: clamp(3.5rem, 10svh, 7rem); }
.pg-sec--tight { padding-block: clamp(2.5rem, 6svh, 4rem); }
.pg-sec--rule { border-block-start: 1px solid var(--hair); }
.pg-sec + .pg-sec--rule { margin-block-start: 0; }
.pg-sec__head {
  display: grid;
  gap: var(--sp-4);
  justify-items: start;
  max-width: 50rem;
  margin-block-end: clamp(2rem, 5svh, 3.5rem);
}
.pg-sec__foot { margin-block-start: clamp(1.75rem, 4svh, 2.75rem); }

/* Prose: a 65-character measure for reading (an article, a legal page, a long answer). */
.pg-prose {
  max-width: 65ch;
  font-size: var(--fz-body);
  line-height: 1.62;
  text-wrap: pretty;
  overflow-wrap: break-word;
}
.pg-prose > * + * { margin-block-start: 1.05em; }
.pg-prose :is(h2, h3, h4, h5, h6) { color: var(--fg); text-wrap: balance; scroll-margin-top: var(--nav-clear); }
.pg-prose h2 {
  margin-block-start: 2.1em;
  font-size: var(--fz-h-sm);
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: -0.02em;
}
.pg-prose h3 { margin-block-start: 1.8em; font-size: var(--fz-body); font-weight: 500; line-height: 1.3; letter-spacing: -0.012em; }
.pg-prose :is(h4, h5, h6) { margin-block-start: 1.6em; font-size: var(--fz-small); font-weight: 700; line-height: 1.4; }
.pg-prose :is(h2, h3, h4, h5, h6) + * { margin-block-start: 0.6em; }
.pg-prose > :first-child { margin-block-start: 0; }
.pg-prose :is(ul, ol) { padding-inline-start: 1.35em; }
.pg-prose li + li { margin-block-start: 0.4em; }
.pg-prose li > :is(ul, ol) { margin-block-start: 0.4em; }
.pg-prose li > p + p { margin-block-start: 0.6em; }
.pg-prose ul > li::marker { color: var(--mark); }
.pg-prose ol > li::marker { color: var(--fg-2); font-variant-numeric: tabular-nums; }
.pg-prose strong { font-weight: 700; }
.pg-prose blockquote {
  padding-inline-start: 1.25em;
  border-inline-start: 2px solid var(--c-violet);
  font-size: var(--fz-lede);
  line-height: 1.42;
  letter-spacing: -0.012em;
}
.pg-prose blockquote > * + * { margin-block-start: 0.7em; }
.pg-prose hr { height: 0; margin-block: 2.6em; border: 0; border-block-start: 1px solid var(--hair); }
.pg-prose code {
  padding: 0.08em 0.32em;
  border-radius: 0.3em;
  background: var(--c-paper-lo);
  font-family: var(--flow-mono);
  font-size: 0.86em;
}
.pg-prose pre {
  overflow-x: auto;
  overscroll-behavior-x: contain;
  padding: 1rem 1.25rem;
  border-radius: var(--rad-artefact);
  background: var(--c-paper-hi);
  box-shadow: inset 0 0 0 1px var(--hair);
  font-size: var(--fz-caption);
  line-height: 1.55;
}
.pg-prose pre code { padding: 0; background: none; font-size: inherit; }
.pg-prose img { height: auto; border-radius: var(--rad-artefact); box-shadow: 0 0 0 1px var(--artefact-ring); }
.pg-prose figure { margin-block: 2em; }
.pg-prose figcaption { margin-block-start: 0.75rem; font-size: var(--fz-note); font-weight: 500; color: var(--fg-2); }
.pg-prose table { width: 100%; font-size: var(--fz-small); }
.pg-prose :is(th, td) { padding: 0.6rem 0.75rem 0.6rem 0; border-block-end: 1px solid var(--hair); vertical-align: top; text-align: start; }
.pg-prose th { font-weight: 500; color: var(--fg-2); }

/* A note to the reader inside prose (a placeholder, an editor's note). Not a callout box: a ruled
   line and the text face. */
.pg-note {
  padding-block: 0.875rem;
  border-block: 1px solid var(--hair);
  font-size: var(--fz-small);
  color: var(--fg-2);
}

/* Ruled rows (flow.css .flow-spec), at a reading width. */
.pg-spec { max-width: 56rem; }

/* FAQ (flow.css .flow-acc), at a reading width. data-faq on each <details> puts it in the
   FAQPage structured data. */
.pg-faq { max-width: 52rem; }

/* A side section: the heading (and a line under it) in the left third, the content on the right,
   from 900px. The one layout for a section that is a heading and a block of text, rows or
   questions, so no block stands at half width with nothing beside it. */
.pg-side { display: grid; gap: var(--sp-6) var(--col-gap); }
.pg-side__head { display: grid; gap: var(--sp-4); align-content: start; justify-items: start; min-width: 0; }
.pg-side__head .flow-h { max-width: 13em; }
.pg-side__body { display: grid; gap: var(--sp-5); align-content: start; justify-items: stretch; min-width: 0; }
@media (min-width: 56.25em) {
  .pg-side { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: clamp(2rem, 5vw, 5rem); }
  .pg-side__head { position: sticky; inset-block-start: calc(var(--nav-clear) + 0.5rem); }
}

/* --------------------------------------------------------------------------
   5  Split section: words and a product artefact, and a ruled list of ticks
   -------------------------------------------------------------------------- */
.pg-split__in {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--sp-7) var(--col-gap);
  align-items: center;
}
.pg-split__text { display: grid; gap: var(--sp-5); justify-items: start; min-width: 0; }
@media (min-width: 56.25em) {
  .pg-split__in { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); column-gap: clamp(2rem, 5vw, 5rem); }
  .pg-split--flip .pg-split__in { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
  .pg-split--flip .pg-split__text { order: 2; }
}

.pg-ticks { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; width: 100%; max-width: 34rem; }
.pg-ticks li {
  display: grid;
  grid-template-columns: 1.25rem minmax(0, 1fr);
  gap: 0.75rem;
  padding-block: 0.75rem;
  border-block-start: 1px solid var(--hair);
  font-size: var(--fz-small);
  line-height: 1.5;
}
.pg-ticks li:last-child { border-block-end: 1px solid var(--hair); }
.pg-ticks li::before {
  content: "";
  width: 1.125rem;
  height: 1.125rem;
  margin-block-start: 0.15em;
  background: var(--mark);
  -webkit-mask: var(--fi-tick) center / contain no-repeat;
          mask: var(--fi-tick) center / contain no-repeat;
}

/* A plain example artefact for a split section: a list of records in the product's light skin,
   inside .flow-artefact__frame. Every artefact carries "Example data" in its caption. */
.pg-mock { display: grid; font-size: 0.875rem; line-height: 1.4; color: #111113; }
.pg-mock__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.875rem 1.125rem;
  border-block-end: 1px solid #E4E7EC;
  font-weight: 500;
}
.pg-mock__row {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.125rem;
  border-block-end: 1px solid #EEF0F3;
}
.pg-mock__row:last-child { border-block-end: 0; }
.pg-mock__av {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: #EEEBFB;
  color: #3005C2;
  font-size: 0.75rem;
  font-weight: 700;
}
.pg-mock__who { display: grid; min-width: 0; }
.pg-mock__name { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pg-mock__role { color: #5E6878; font-size: 0.8125rem; }
.pg-mock__state {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  min-height: 1.5rem;
  padding: 0 0.6em;
  border-radius: 999px;
  background: #F1F3F6;
  font-size: 0.75rem;
  font-weight: 500;
  white-space: nowrap;
}
.pg-mock__state--ok { background: #E4F3EA; color: #1B7A4B; }
.pg-mock__state--due { background: #FBF0D9; color: #8A5A00; }

/* --------------------------------------------------------------------------
   6  Offer columns
   Not boxes: columns on hairlines, like the steps of "How you start" on the
   home page. A title (the link, with its arrow), one or two lines of ink
   text, and on a news item its date. The whole column is the link (the
   title's link stretches over it). No fill, no shadow, no icon, no number.
   A white card with a shadow means "this is the product" and nothing else.
   -------------------------------------------------------------------------- */
.pg-cards {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0 var(--col-gap);
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 56.25em) {
  .pg-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pg-cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.pg-card {
  position: relative;
  display: grid;
  align-content: start;
  gap: 0.625rem;
  min-width: 0;
  padding-block: 1.25rem 1.75rem;
  border-block-start: 1px solid var(--hair-2);
}
@media (min-width: 56.25em) {
  .pg-card { padding-block: 1.5rem 0; }
}
.pg-card:has(.pg-card__link:focus-visible) { outline: 2px solid var(--focus); outline-offset: 6px; border-radius: 4px; }
.pg-card__h {
  font-size: var(--fz-h-sm);
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.pg-card__link { color: inherit; text-decoration: none; }
.pg-card__link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.pg-card__link:focus-visible { outline: none; }
/* The arrow that says the title is a link: after its last word, and it moves 3px with the pointer. */
.pg-card__link::before {
  content: "";
  float: inline-end;
  width: 1em;
  height: 1em;
  margin: 0.1em 0 0 0.75rem;
  background: var(--mark);
  -webkit-mask: var(--fi-arrow) center / contain no-repeat;
          mask: var(--fi-arrow) center / contain no-repeat;
  transition: transform var(--dur-hover) var(--ease-expo);
}
.pg-card:hover .pg-card__link::before { transform: translateX(3px); }
.pg-card:hover .pg-card__link { text-decoration: underline; text-decoration-color: var(--mark); text-decoration-thickness: 1.5px; text-underline-offset: 0.2em; }
.pg-card__p { max-width: 34rem; font-size: var(--fz-small); line-height: 1.55; }
.pg-card__date { font-size: var(--fz-caption); font-weight: 500; color: var(--fg-2); }

/* --------------------------------------------------------------------------
   7  The closing
   The home page's closing, on every page: no card. The mark drawn in dots,
   one two-tone line, one action. On a page whose header draws particles the
   thread forms the mark in .pg-cta__dock (the build writes three markers:
   the header's shape lets go into nothing once the header has left the
   window, nothing is drawn through the body, and the mark gathers here once
   the closing line has arrived). Everywhere else the dock shows the mark's
   still, drawn in the same dots.
   -------------------------------------------------------------------------- */
.pg-cta { position: relative; padding-block: clamp(4rem, 12svh, 8rem) clamp(4.5rem, 14svh, 9rem); }
.pg-cta__in {
  display: grid;
  justify-items: center;
  gap: var(--sp-5);
  text-align: center;
}
.pg-cta__dock {
  position: relative;
  width: clamp(8.5rem, 24svh, 13rem);
  aspect-ratio: 1;
  margin-block-end: var(--sp-3);
}
.pg-cta__still { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transition: opacity 600ms ease; }
html:is(.flow-live, .flow-still):not(.pg-cta-still) .pg-cta__still { opacity: 0; }   /* the thread draws the mark */
.pg-cta__h { max-width: 22em; text-wrap: balance; }
.pg-cta__h .flow-h__line { display: block; }
.pg-cta .flow-actions { justify-content: center; margin-block-start: var(--sp-2); }
/* "or email ...": plain text and a text link, not a second button. The link keeps a 44px target. */
.pg-cta__mail { margin-block: calc(-1 * var(--sp-3)) calc(-1 * var(--sp-4)); }
.pg-cta__mail a { display: inline-block; padding-block: 0.75rem; }
.pg-cta__price { margin-block-start: var(--sp-3); }
/* The thread's keyframes for the closing (written by the build). The first sits in the header, a
   little over a window below its foot: the header's shape is held until the header has left the
   window and is let go off screen. The second is a window above the closing; the mark's own is on
   its dock. Hidden where the thread does not draw the closing (js/page.js sets pg-cta-still). */
.pg-key--rest { inset-block-start: calc(100% + 120vh); }
.pg-key--rest2 { inset-block-start: -100vh; }
.pg-key--mark { inset-block-start: clamp(8rem, 22svh, 12rem); }
html.pg-cta-still .pg-key { display: none; }

/* --------------------------------------------------------------------------
   8  News index and article
   -------------------------------------------------------------------------- */
/* The index: newest first. Each row is a link (the title's link stretches over it). The date is
   beside the title from 900px and after the summary below that: never above the title. */
.pg-news { display: grid; margin: 0; padding: 0; list-style: none; }
.pg-post {
  position: relative;
  display: grid;
  gap: 0.5rem;
  padding-block: clamp(1.5rem, 1rem + 1.4vw, 2.25rem);
  border-block-start: 1px solid var(--hair);
}
.pg-post:last-child { border-block-end: 1px solid var(--hair); }
.pg-post__h {
  font-size: var(--fz-h-sm);
  font-weight: 500;
  line-height: 1.16;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.pg-post__h a { color: inherit; text-decoration: none; }
.pg-post__h a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.pg-post__h a:focus-visible { outline: none; }
.pg-post:has(a:focus-visible) { outline: 2px solid var(--focus); outline-offset: 4px; border-radius: 4px; }
.pg-post:hover .pg-post__h a { text-decoration: underline; text-decoration-color: var(--mark); text-decoration-thickness: 1.5px; text-underline-offset: 0.2em; }
.pg-post__p { max-width: 60ch; font-size: var(--fz-small); line-height: 1.55; }
.pg-post__date { font-size: var(--fz-note); font-weight: 500; color: var(--fg-2); }
.pg-post__date time { color: var(--fg); }
.pg-post__tags { font-size: var(--fz-note); font-weight: 500; color: var(--fg-2); }
@media (min-width: 56.25em) {
  .pg-post { grid-template-columns: 12rem minmax(0, 1fr); column-gap: var(--col-gap); }
  .pg-post__h, .pg-post__p, .pg-post__tags { grid-column: 2; }
  .pg-post__date { grid-column: 1; grid-row: 1 / span 3; padding-block-start: 0.45rem; }
}
.pg-feed { display: inline-flex; align-items: center; min-height: 2.75rem; font-size: var(--fz-small); }

/* A draft (staging builds only) and a placeholder say so, in words. */
.pg-flag {
  display: inline-flex;
  align-items: center;
  min-height: 1.5rem;
  padding: 0 0.6em;
  border-radius: var(--rad-pill);
  outline: 1px solid var(--hair-2);
  outline-offset: -1px;
  font-size: var(--fz-label);
  font-weight: 500;
  color: var(--fg-2);
}

.pg-article__body { padding-block: clamp(2.5rem, 7svh, 4.5rem) clamp(2.5rem, 6svh, 4rem); }
.pg-article__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  max-width: 65ch;
  padding-block: 1.25rem;
  border-block: 1px solid var(--hair);
  font-size: var(--fz-small);
  color: var(--fg-2);
}
.pg-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0; padding: 0; list-style: none; }
/* A tag is a plain link to its list (copy/news.md): text face, sentence case, a ring, 44px tall. */
.pg-tag {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0 0.875em;
  border-radius: var(--rad-pill);
  background: var(--glass-solid);
  box-shadow: inset 0 0 0 1px var(--hair-2);
  font-size: var(--fz-note);
  font-weight: 500;
  color: var(--fg);
  text-decoration: none;
  transition: box-shadow var(--dur-hover) ease;
}
a.pg-tag:hover { box-shadow: inset 0 0 0 1px var(--fg); }

/* --------------------------------------------------------------------------
   8b  Proof: who we work with, the founder's figures, and seals (the
   founder's brief of 13 November 2026; the banner, 14 November 2026). The
   logo banner and the figures on About are the home page's own component
   (.proof-banner, .proof-stats: site/flow/css/scene-proof.css, served at
   /css/scene-proof.css and named in About's front matter, with
   /js/scene-proof.js), so both pages show one design from one stylesheet.
   Here only what About sets differently: the room round the banner, and
   figures at the section size (a figure at the home page's statement size
   would outweigh the section's heading). The logos are the home page's own
   files, served at /img/logos/. Seals are a name and a qualifier in words; a
   mark beside them where the scheme has one (ORCHA keeps its own colours:
   its one-colour copy merges the badge's three petals into one shape).
   -------------------------------------------------------------------------- */
.pf-proof__banner { margin-block-start: clamp(0.5rem, 1.5svh, 1rem); }
.pf-proof__stats { margin-block-start: clamp(4rem, 11svh, 7rem); }
.pf-proof .proof-stats { --orb: clamp(4.5rem, 10svh, 6.25rem); }
.pf-proof .proof-stat__n { font-size: var(--fz-h-md); }
@media (max-width: 56.24em) {
  .pf-proof .proof-stats { --orb: clamp(3.75rem, 15vw, 4.75rem); }
  .pf-proof__stats { margin-block-start: clamp(3.5rem, 9svh, 5rem); }
}

.pf-seals {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 13.5rem), 1fr));
  gap: 0 var(--sp-6);
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (max-width: 37.49em) { .pf-seals { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--sp-4); } .pf-seal__mark { height: 2.25rem; } .pf-seal__mark--wide { height: 1.75rem; } }
.pf-seal { display: flex; align-items: center; gap: var(--sp-3); min-height: 4.75rem; padding-block: var(--sp-3); border-block-start: 1px solid var(--hair); }
.pf-seal__mark { flex: none; width: auto; height: 2.75rem; }
.pf-seal__mark--wide { height: 2.1rem; }   /* a word mark (AWS) at the optical height of the square badges */
.pf-seal__t { display: grid; gap: 0.15rem; min-width: 0; }
.pf-seal__n { font-size: var(--fz-small); font-weight: 500; line-height: 1.3; color: var(--fg); }
.pf-seal__q { font-size: var(--fz-caption); line-height: 1.35; color: var(--fg-2); }
.pf-seal__q.mono { font-size: var(--fz-caption); }
/* under a page's security rows (secondary care): a little tighter */
.pf-seals--quiet .pf-seal { min-height: 4.25rem; }
@media (forced-colors: active) {
  .pf-seal__mark { forced-color-adjust: none; background: #FFFFFF; }
}

/* --------------------------------------------------------------------------
   9  The pattern kit, 404, print
   -------------------------------------------------------------------------- */
.pg-kit__label { margin-block-end: var(--sp-4); font-size: var(--fz-note); font-weight: 500; color: var(--fg-2); }
.pg-links { display: grid; gap: 0; max-width: 36rem; margin: 0; padding: 0; list-style: none; }
.pg-links li { border-block-start: 1px solid var(--hair); }
.pg-links li:last-child { border-block-end: 1px solid var(--hair); }
.pg-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 3.5rem;
  font-size: var(--fz-lede);
  letter-spacing: -0.015em;
  color: var(--fg);
  text-decoration: none;
}
.pg-links a::after {
  content: "";
  width: 1rem;
  height: 1rem;
  background: var(--mark);
  -webkit-mask: var(--fi-arrow) center / contain no-repeat;
          mask: var(--fi-arrow) center / contain no-repeat;
  transition: transform var(--dur-hover) var(--ease-expo);
}
.pg-links a:hover::after { transform: translateX(3px); }

@media (forced-colors: active) {
  .pg-tag { border: 1px solid CanvasText; }
  .pg-ticks li::before, .pg-card__link::before, .pg-links a::after { background: CanvasText; forced-color-adjust: none; }
}
@media print {
  .pg-head__dock, .pg-crumbs, .pg-cta, .pg-related { display: none !important; }
  .pg-head { padding-block: 1rem; }
  .pg-head__in { min-height: 0 !important; grid-template-columns: 1fr !important; }
  .pg-prose a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 0.85em; }
}
