/* ---------------------------------------------------------------------------
 * pages.css — the public pages, Highlighter on dark paper (roll 611): landing,
 * replayer landing, method, leak library, FAQ, contact, legal pages.
 *
 * Tokens only (tokens.css). Shared primitives (buttons, fields, icon, leak row,
 * chrome) live in tailwind/application.css — never restyle them here.
 *
 * This file is plain CSS, unlayered, loaded after Tailwind: a rule here beats
 * any utility on the same element. Elements styled here are styled here only —
 * no responsive utility is mixed onto them.
 * ------------------------------------------------------------------------- */

/* ── Page frame ──────────────────────────────────────────────────────────── */
/* The 1240px column of the canvas plus the gutter: the header and the footer
   use the same frame (application.css, chrome), so every edge lines up. */
.pg-wrap {
  width: 100%;
  max-width: calc(var(--pl-container) + 2 * var(--space-xl));
  margin-inline: auto;
  padding-inline: var(--space-md);
}
.pg-wrap--narrow { max-width: 60rem; }
.pg-wrap--text { max-width: 46rem; }
@media (min-width: 640px) { .pg-wrap { padding-inline: var(--space-lg); } }
@media (min-width: 1024px) { .pg-wrap { padding-inline: var(--space-xl); } }

.pg-section {
  border-top: var(--pl-rule-width) solid var(--rule);
  padding-block: var(--space-2xl);
}
@media (min-width: 1024px) { .pg-section { padding-block: var(--space-3xl); } }

/* The top of an inner page: flat paper, the head does the work. */
.pg-top { padding-block: var(--space-xl) var(--space-2xl); }
@media (min-width: 1024px) { .pg-top { padding-block: var(--space-2xl) var(--space-3xl); } }

/* The page's head: Archivo 900, tight. */
.pg-title {
  font-family: var(--pl-font-display);
  font-weight: var(--pl-weight-display);
  font-style: normal;
  text-transform: var(--pl-case-display);
  letter-spacing: var(--pl-tracking-display);
  line-height: var(--pl-lh-display);
  font-size: clamp(2.5rem, 3.6vw + 1.25rem, 5rem);
  color: var(--ink);
  text-wrap: balance;
  max-width: 20ch;
  overflow-wrap: break-word;
}
.pg-title--sm { font-size: clamp(2.5rem, 3vw + 1.25rem, 4.5rem); }
/* The words a head leads with, under the marker: dark ink on the violet. */
.pg-lit,
.pg-title--lit span {
  color: var(--amber-ink);
  background: linear-gradient(transparent 6%, var(--amber) 6%, var(--amber) 96%, transparent 96%);
  padding-inline: 0.08em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.pg-lede {
  margin-top: var(--space-md);
  max-width: 60ch;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink-2);
  text-wrap: pretty;
}
.pg-lede--sm { font-size: 1rem; }
@media (min-width: 640px) { .pg-lede { font-size: 1.1875rem; } .pg-lede--sm { font-size: 1.0625rem; } }

.pg-note {
  margin-top: var(--space-md);
  max-width: 72ch;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--muted);
}

.pg-body {
  margin-top: var(--space-sm);
  max-width: 68ch;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink-2);
}

.pg-h2 {
  font-family: var(--pl-font-display);
  font-weight: var(--pl-weight-display);
  text-transform: var(--pl-case-display);
  letter-spacing: var(--pl-tracking-display);
  font-size: clamp(1.75rem, 1.2vw + 1.25rem, 2.25rem);
  line-height: 1.05;
  color: var(--ink);
  text-wrap: balance;
}

.pg-h3 {
  font-size: 1rem;
  line-height: 1.35;
}

/* Primary + ghost. Stacked full-width on a phone so neither label wraps. */
.pg-actions {
  margin-top: var(--space-xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}
.pg-actions > .cta-pill,
.pg-actions__form,
.pg-actions__form > .cta-pill { width: 100%; }
@media (min-width: 480px) {
  .pg-actions { flex-direction: row; flex-wrap: wrap; align-items: center; }
  .pg-actions > .cta-pill,
  .pg-actions__form,
  .pg-actions__form > .cta-pill { width: auto; }
}

/* An inline text link: ink, drawn underline, 44 px target, one line. */
.pg-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  color: var(--ink);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-decoration-color: var(--rule-strong);
  text-underline-offset: 5px;
  white-space: nowrap;
  transition: text-decoration-color var(--pl-dur-fast) var(--pl-ease-out);
}
.pg-link:hover { text-decoration-color: var(--amber); }
.pg-link .pl-icon { transition: transform var(--pl-dur-fast) var(--pl-ease-out); }
.pg-link:hover .pl-icon { transform: translateX(3px); }
/* Inside running prose the link keeps the line's height. */
.pg-prose .pg-link,
.pg-note .pg-link,
.pg-inline-link {
  display: inline;
  min-height: 0;
  font-weight: 700;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-decoration-color: var(--rule-strong);
  text-underline-offset: 3px;
  white-space: normal;
}
.pg-prose .pg-link:hover,
.pg-note .pg-link:hover,
.pg-inline-link:hover { text-decoration-color: var(--amber); }

.pg-more { margin-top: var(--space-lg); }

/* ── Inner-page hero (replayer landing): plain paper, the head does the work ── */
.pg-hero {
  position: relative;
  padding-block: var(--space-xl) var(--space-2xl);
}
@media (min-width: 1024px) { .pg-hero { padding-block: var(--space-2xl) var(--space-3xl); } }

/* ── Landing hero: your history, marked up ───────────────────────────────────
   The head, one sentence, two actions; beside them the file on the desk: the
   real demo hand, the leaking line highlighted and named. */
.pg-hl-hero { padding-block: var(--space-2xl) var(--space-3xl); }
.pg-hl-hero__grid {
  display: grid;
  gap: var(--space-2xl);
  align-items: start;
}
@media (min-width: 1000px) {
  .pg-hl-hero__grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: var(--space-2xl); }
}
.pg-hl-hero__head { min-width: 0; }
.pg-hl-hero .hero-headline {
  font-size: clamp(2.5rem, 3.4vw + 1rem, 3.75rem);
  max-width: 18ch;
  overflow-wrap: break-word;
  text-wrap: balance;
}
/* The word the head lands on, under the marker. */
.pg-mark {
  background: linear-gradient(transparent 12%, var(--amber) 12%, var(--amber) 92%, transparent 92%);
  padding-inline: 0.08em;
  color: var(--amber-ink);
}
.pg-hl-hero .pg-lede { max-width: 44ch; font-size: 1.1875rem; color: var(--ink-2); text-wrap: pretty; }
.pg-hl-hero__facts {
  margin-top: var(--space-lg);
  max-width: 52ch;
  font-size: 0.9375rem;
  color: var(--muted);
}

/* The file: a framed panel, a mono strip with its name. On the landing it
   holds the demo's leak map; the method page shows hand-history lines in it. */
.pg-file {
  min-width: 0;
  margin: 0;
  border: var(--pl-rule-strong-width) solid var(--rule-strong);
  border-radius: var(--pl-radius-card);
  background: var(--paper);
  box-shadow: var(--pl-shadow-panel);
  overflow: hidden;
}
.pg-file__name {
  display: flex;
  justify-content: space-between;
  gap: var(--space-sm);
  padding: 10px var(--space-md);
  border-bottom: var(--pl-rule-strong-width) solid var(--rule-strong);
  background: var(--paper-2);
  font-family: var(--pl-font-code);
  font-size: 0.8125rem;
  color: var(--muted);
}
.pg-file__path { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); }
.pg-file__name > span:last-child { white-space: nowrap; }
/* Ruled lines, like the .txt it is; scrolls sideways rather than clipping. */
.pg-file__body {
  margin: 0;
  padding: var(--space-sm) var(--space-md) var(--space-md);
  overflow-x: auto;
  font-family: var(--pl-font-code);
  font-size: 0.8125rem;
  line-height: 28px;
  color: var(--ink-2);
  white-space: pre;
  background-image: repeating-linear-gradient(transparent 0 27px, var(--pl-rule-hair) 27px 28px);
  background-attachment: local;
}
.pg-file__body:focus-visible { outline-offset: -3px; }
.pg-file__hero { color: var(--ink); font-weight: 500; }
.pg-file__map { padding: var(--space-md); }
.pg-file__sum {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs) var(--space-xl);
  padding: var(--space-md);
  border-top: var(--pl-rule-strong-width) solid var(--rule-strong);
}
.pg-file__sum > div { display: flex; flex-direction: column-reverse; }
.pg-file__sum dt { font-size: 0.875rem; color: var(--muted); }
.pg-file__sum dd {
  margin: 0;
  font-weight: 900;
  font-size: 1.75rem;
  line-height: 1.1;
  letter-spacing: var(--pl-tracking-tight);
  color: var(--ink);
  font-variant-numeric: lining-nums tabular-nums;
}
.pg-file__sum dd span { font-size: 0.6em; font-weight: 700; color: var(--muted); }

/* ── How: three ruled columns, in order ───────────────────────────────────────── */
.pg-hl-steps {
  list-style: none;
  margin: var(--space-xl) 0 0;
  padding: 0;
  display: grid;
  gap: var(--space-lg);
  counter-reset: step;
}
@media (min-width: 768px) { .pg-hl-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-xl); } }
.pg-hl-steps__item {
  counter-increment: step;
  padding-top: var(--space-md);
  border-top: var(--pl-rule-strong-width) solid var(--rule-strong);
}
.pg-hl-steps__title { font-size: 1.375rem; line-height: 1.2; }
.pg-hl-steps__title::before {
  content: counter(step) ". ";
  background: linear-gradient(transparent 55%, var(--amber) 55%, var(--amber) 92%, transparent 92%);
}
.pg-hl-steps__body { margin-top: var(--space-xs); max-width: 34ch; font-size: 1rem; color: var(--ink-2); }

/* The nine leaks, as a row of links to their pages: names, not a table. */
.pg-leaklinks { list-style: none; margin: var(--space-xl) 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-sm); }
.pg-leaklinks a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 var(--space-md);
  border: var(--pl-rule-strong-width) solid var(--rule);
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
}
.pg-leaklinks a:hover { border-color: var(--amber); }

/* ── The close: one head, one line, the primary ────────────────────────────────── */
.pg-close {
  padding-block: var(--space-3xl);
  border-top: var(--pl-rule-strong-width) solid var(--rule-strong);
}
.pg-close__inner { display: grid; justify-items: start; gap: var(--space-sm); }
.pg-close .section-title { font-size: clamp(2.25rem, 3.6vw + 1rem, 4rem); }
.pg-close .pg-lede { text-wrap: pretty; }

/* ── Ordinal steps ───────────────────────────────────────────────────────── */
/* Columns on a strong rule, the numeral in a marker square: the order is the
   content (the method's four stages, the replayer's three). */
.pg-steps {
  list-style: none;
  margin: var(--space-xl) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-xl);
}
.pg-steps__item {
  align-content: start;
  display: grid;
  gap: var(--space-sm);
  padding-top: var(--space-md);
  border-top: var(--pl-rule-strong-width) solid var(--rule-strong);
}
.pg-steps__n {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  background: var(--amber);
  color: var(--amber-ink);
  font-family: var(--pl-font-display);
  font-weight: var(--pl-weight-display);
  font-size: 1.75rem;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.pg-steps__title {
  font-family: var(--pl-font-display);
  font-weight: 800;
  font-size: 1.375rem;
  line-height: 1.2;
  letter-spacing: var(--pl-tracking-tight);
  color: var(--ink);
  text-wrap: balance;
}
.pg-steps__body {
  margin-top: var(--space-2xs);
  max-width: 40rem;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--ink-2);
}
@media (min-width: 768px) {
  .pg-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-xl) var(--space-lg); }
}
@media (min-width: 768px) { .pg-steps--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .pg-steps--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ── Demo findings (the shared .lk row, framed by the page) ─────────────── */
.pg-findings {
  margin-top: var(--space-xl);
  border-block: var(--pl-rule-width) solid var(--rule);
}
/* The shared row's 7.5rem denominator column is sized for "3 of 154"; the
   French "3 mains sur 154" needs ~9.5rem, so the page widens it. */
@media (min-width: 768px) {
  .pg-findings .lk { grid-template-columns: 8.5rem minmax(0, 1fr) 10rem minmax(0, 11rem); }
}

/* ── Spec sheet (detectors, cookies) ─────────────────────────────────────── */
.pg-spec { margin-top: var(--space-md); }
.pg-spec__table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9375rem;
}
.pg-spec__table thead th {
  padding: 0 var(--space-md) var(--space-xs) 0;
  color: var(--muted);
  font-weight: 700;
  border-bottom: var(--pl-rule-strong-width) solid var(--rule-strong);
  white-space: nowrap;
}
.pg-spec__table tbody th,
.pg-spec__table td {
  padding: var(--space-sm) var(--space-md) var(--space-sm) 0;
  border-bottom: var(--pl-rule-width) solid var(--rule);
  vertical-align: baseline;
  color: var(--ink-2);
  line-height: 1.5;
}
.pg-spec__table tbody th { font-weight: 700; color: var(--ink); white-space: nowrap; }
.pg-spec__table tbody th .pg-link { min-height: 44px; }
.pg-spec__code {
  font-size: 0.8125rem;
  color: var(--ink);
  white-space: nowrap;
}
/* A cookie type, verbatim: a flat outlined chip, not a button. */
.pg-chip {
  display: inline-block;
  padding: 2px 8px;
  border: var(--pl-rule-width) solid var(--rule-strong);
  border-radius: var(--pl-radius-part);
  color: var(--ink);
  font-family: var(--pl-font-ui);
  font-weight: 700;
  font-size: 0.8125rem;
  line-height: 1.5;
  white-space: nowrap;
}
.pg-chip--word { font-family: var(--pl-font-ui); }
.pg-spec__table th:last-child,
.pg-spec__table td:last-child { padding-right: 0; }

/* Below 640 px the columns become stacked rows: name + type on one line, the
   rest under them. No sideways scroll. */
@media (max-width: 639px) {
  .pg-spec__table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }
  .pg-spec__table,
  .pg-spec__table tbody { display: block; }
  .pg-spec__table tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 4px var(--space-sm);
    padding-block: var(--space-sm);
    border-bottom: var(--pl-rule-width) solid var(--rule);
  }
  .pg-spec__table tr:first-child { border-top: var(--pl-rule-strong-width) solid var(--rule-strong); }
  .pg-spec__table tbody th,
  .pg-spec__table td { display: block; padding: 0; border: 0; }
  .pg-spec__table tbody th { grid-column: 1; grid-row: 1; white-space: normal; }
  .pg-spec__table td.pg-spec__code { grid-column: 2; grid-row: 1; align-self: center; }
  .pg-spec__table td:not(.pg-spec__code) { grid-column: 1 / -1; }
  .pg-spec__table--cells td[data-label]::before {
    content: attr(data-label) ": ";
    color: var(--muted);
  }
}

/* ── Questions: a strong rule, hairline rows, a plus that turns to a minus ── */
.pg-faq {
  margin-top: var(--space-lg);
  max-width: 52rem;
  border-top: var(--pl-rule-strong-width) solid var(--rule-strong);
}
.pg-faq__item { border-bottom: var(--pl-rule-width) solid var(--rule); }
.pg-faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  min-height: 60px;
  padding-block: var(--space-sm);
  color: var(--ink);
  font-weight: 800;
  font-size: 1.0625rem;
  line-height: 1.4;
  cursor: pointer;
  list-style: none;
}
.pg-faq__q::-webkit-details-marker { display: none; }
.pg-faq__q > .pl-icon { display: none; }
.pg-faq__q::after {
  content: "";
  flex: none;
  width: 16px;
  height: 16px;
  background:
    linear-gradient(currentColor, currentColor) center / 16px 2px no-repeat,
    linear-gradient(currentColor, currentColor) center / 2px 16px no-repeat;
  transition: transform var(--pl-dur-base) var(--pl-ease-out);
}
.pg-faq__q:hover > :first-child { text-decoration: underline; text-decoration-color: var(--amber); text-decoration-thickness: 3px; text-underline-offset: 5px; }
.pg-faq__q h3 { font: inherit; color: inherit; }
.pg-faq__a {
  padding-bottom: var(--space-lg);
  padding-right: var(--space-xl);
  max-width: 68ch;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink-2);
}
/* Open: the question under the marker, the plus a minus. */
.pg-faq__item[open] > .pg-faq__q > :first-child {
  color: var(--amber-ink);
  background: linear-gradient(transparent 4%, var(--amber) 4%, var(--amber) 96%, transparent 96%);
  padding-inline: 4px;
  margin-inline: -4px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  text-decoration: none;
}
.pg-faq__item[open] > .pg-faq__q::after {
  background: linear-gradient(currentColor, currentColor) center / 16px 2px no-repeat;
}
@media (max-width: 479px) { .pg-faq__a { padding-right: 0; } }

/* ── Definition rows (seat pages, the library's seat index) ──────────────── */
.pg-facts {
  margin-top: var(--space-xl);
  border-top: var(--pl-rule-strong-width) solid var(--rule-strong);
}
.pg-facts__row {
  display: grid;
  gap: var(--space-xs) var(--space-lg);
  padding-block: var(--space-md);
  border-bottom: var(--pl-rule-width) solid var(--rule);
}
@media (min-width: 640px) {
  .pg-facts__row { grid-template-columns: 16rem minmax(0, 1fr); align-items: center; }
}
.pg-facts__row dt { color: var(--muted); font-weight: 700; }
.pg-facts__row dd {
  margin: 0;
  color: var(--ink-2);
  font-size: 1rem;
  line-height: 1.6;
}
.pg-facts__row .pg-h3 {
  font-family: var(--pl-font-display);
  font-weight: 800;
  font-size: 1.125rem;
  letter-spacing: var(--pl-tracking-tight);
  color: var(--ink);
}

/* ── Link rows (FAQ resources) ───────────────────────────────────────────── */
.pg-rows {
  list-style: none;
  margin: var(--space-lg) 0 0;
  padding: 0;
  border-top: var(--pl-rule-strong-width) solid var(--rule-strong);
}
.pg-rows__item { border-bottom: var(--pl-rule-width) solid var(--rule); }
.pg-rows__link {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px var(--space-md);
  align-items: center;
  padding-block: var(--space-md);
  min-height: 60px;
  color: var(--ink-2);
  text-decoration: none;
}
.pg-rows__title {
  font-weight: 800;
  font-size: 1.0625rem;
  color: var(--ink);
}
.pg-rows__link:hover .pg-rows__title { text-decoration: underline; text-decoration-color: var(--amber); text-decoration-thickness: 3px; text-underline-offset: 5px; }
.pg-rows__body {
  grid-column: 1;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--ink-2);
}
.pg-rows__link .pl-icon {
  grid-column: 2;
  grid-row: 1 / span 2;
  color: var(--ink);
  transition: transform var(--pl-dur-fast) var(--pl-ease-out);
}
.pg-rows__link:hover .pl-icon { transform: translateX(3px); }
@media (min-width: 768px) {
  .pg-rows__link { grid-template-columns: 16rem minmax(0, 1fr) auto; }
  .pg-rows__body { grid-column: 2; grid-row: 1; }
  .pg-rows__link .pl-icon { grid-column: 3; grid-row: 1; }
}

/* ── Seat keys ───────────────────────────────────────────────────────────── */
.pg-seats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
}
.pg-seat.cta-pill {
  min-width: 3.25rem;
  min-height: 44px;
  padding-inline: 10px;
  font-size: 0.9375rem;
}
.pg-seat.cta-pill:hover,
.pg-seatcard:hover { background: var(--ink); border-color: var(--ink); color: var(--pl-on-invert); }
/* A seat with its long name under it (the leak page's "By seat"). */
.pg-seatcard {
  display: grid;
  gap: 2px;
  min-width: 7.5rem;
  padding: 10px 14px;
  border: var(--pl-rule-strong-width) solid var(--rule-strong);
  color: var(--ink);
  text-decoration: none;
  transition: background-color var(--pl-dur-fast) var(--pl-ease-out), color var(--pl-dur-fast) var(--pl-ease-out);
}
.pg-seatcard b { font-family: var(--pl-font-display); font-weight: 900; font-size: 1.25rem; line-height: 1.1; }
.pg-seatcard span { font-size: 0.8125rem; color: var(--muted); }
.pg-seatcard:hover span { color: var(--pl-on-invert-2); }
.pg-seatcard[aria-current="page"] { background: var(--amber); border-color: var(--amber); color: var(--amber-ink); }
.pg-seatcard[aria-current="page"] span { color: var(--amber-ink); }

/* ── Breadcrumb ──────────────────────────────────────────────────────────── */
.pg-crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 var(--space-xs);
  margin-bottom: var(--space-md);
  font-size: 0.875rem;
  color: var(--muted);
}
.pg-crumbs .pl-icon { color: var(--muted); }
.pg-crumbs a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink-2);
  white-space: nowrap;
  text-decoration: underline;
  text-decoration-color: var(--muted);
  text-underline-offset: 3px;
}
.pg-crumbs a:hover { color: var(--ink); text-decoration-color: var(--amber); }
.pg-crumbs [aria-current="page"] { color: var(--ink); font-weight: 700; }

/* ── Replayer landing ────────────────────────────────────────────────────── */
.pg-rp-grid {
  display: grid;
  gap: var(--space-2xl);
  align-items: center;
}
@media (min-width: 1024px) { .pg-rp-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-3xl); } }
/* The screenshot sits in the same frame as the landing's file. */
.pg-rp-frame {
  min-width: 0;
  width: 100%;
  max-width: 36rem;
  border: var(--pl-rule-strong-width) solid var(--rule-strong);
  box-shadow: var(--pl-shadow-panel);
}
@media (min-width: 1024px) { .pg-rp-frame { justify-self: end; } }
.pg-rp-grid .pg-title { font-size: clamp(2.5rem, 2.4vw + 1.25rem, 4rem); }
.pg-rp-shot {
  display: block;
  width: 100%;
  height: auto;
}
.pg-checks {
  list-style: none;
  margin: var(--space-lg) 0 0;
  padding: 0;
  display: grid;
  gap: var(--space-xs);
  color: var(--ink-2);
  font-size: 0.9375rem;
}
.pg-checks li { display: flex; gap: var(--space-xs); align-items: baseline; }
.pg-checks .pl-icon { color: var(--mint); transform: translateY(2px); }

.pg-specs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: var(--pl-rule-strong-width) solid var(--rule-strong);
  border-bottom: var(--pl-rule-width) solid var(--rule);
}
.pg-specs > div {
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
  gap: 4px;
  padding: var(--space-md) var(--space-sm);
  min-width: 0;
}
.pg-specs > div:nth-child(odd) { padding-left: 0; }
.pg-specs > div:nth-child(even) { padding-left: var(--space-md); border-left: var(--pl-rule-width) solid var(--rule); }
.pg-specs > div:nth-child(n + 3) { border-top: var(--pl-rule-width) solid var(--rule); }
@media (min-width: 768px) {
  .pg-specs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .pg-specs > div + div { padding-left: var(--space-md); border-left: var(--pl-rule-width) solid var(--rule); }
  .pg-specs > div:nth-child(n + 3) { border-top: 0; }
}
.pg-specs dt { color: var(--muted); font-weight: 700; }
.pg-specs dd {
  margin: 0;
  font-family: var(--pl-font-display);
  font-weight: var(--pl-weight-display);
  letter-spacing: var(--pl-tracking-display);
  font-size: clamp(1.875rem, 1.6vw + 1.125rem, 2.75rem);
  line-height: 1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

/* Uses, as a definition list with the glyph in the margin — not icon tiles. */
.pg-uses {
  margin-top: var(--space-xl);
  display: grid;
  border-top: var(--pl-rule-strong-width) solid var(--rule-strong);
}
.pg-uses__row {
  display: grid;
  grid-template-columns: 1.5rem minmax(0, 1fr);
  gap: var(--space-xs) var(--space-md);
  padding-block: var(--space-md);
  border-bottom: var(--pl-rule-width) solid var(--rule);
}
.pg-uses__row .pl-icon { color: var(--amber); transform: translateY(2px); }
.pg-uses__row .pg-h3 { font-weight: 800; font-size: 1.0625rem; color: var(--ink); }
.pg-uses__body { grid-column: 2; margin-top: 4px; font-size: 0.9375rem; line-height: 1.6; color: var(--ink-2); max-width: 40rem; }
@media (min-width: 900px) {
  .pg-uses__row { grid-template-columns: 1.5rem 18rem minmax(0, 1fr); align-items: baseline; }
  .pg-uses__body { grid-column: auto; margin-top: 0; }
}

/* ── FAQ page: categories at the side, the questions grouped beside them ─── */
.pg-search { margin-top: var(--space-xl); max-width: 40rem; }
.pg-search__label { display: block; margin-bottom: var(--space-xs); font-weight: 700; font-size: 0.9375rem; color: var(--ink); }
.pg-search__field { position: relative; }
.pg-search__field .pl-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ink);
  pointer-events: none;
}
.pg-search input {
  width: 100%;
  min-height: 52px;
  padding: 0 var(--space-md) 0 48px;
  font-size: 1rem;
}
.pg-search input:focus { outline: none; }
.pg-search input:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

.pg-faq-page { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-xl); }
@media (min-width: 1024px) {
  .pg-faq-page { grid-template-columns: 15rem minmax(0, 52rem); gap: var(--space-3xl); align-items: start; }
  .pg-faq-page__side { position: sticky; top: 104px; }
}
/* The categories: a list of filters, the current one under the marker. */
.pg-filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
}
.pg-filter {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  min-height: 44px;
  padding-inline: var(--space-sm);
  border: var(--pl-rule-strong-width) solid var(--rule-strong);
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}
.pg-filter span { color: var(--muted); font-variant-numeric: tabular-nums; }
.pg-filter:hover { background: var(--paper-2); }
.pg-filter[aria-pressed="true"] { background: var(--amber); border-color: var(--amber); color: var(--amber-ink); font-weight: 800; }
.pg-filter[aria-pressed="true"] span { color: var(--amber-ink); }
@media (min-width: 1024px) {
  .pg-filters { display: grid; gap: 2px; padding-top: var(--space-xs); border-top: var(--pl-rule-strong-width) solid var(--rule-strong); }
  .pg-filter { border-color: transparent; }
}

.pg-faq-group + .pg-faq-group { margin-top: var(--space-2xl); }
.pg-ask + .pg-faq-group { margin-top: var(--space-3xl); }
.pg-faq-group__title {
  padding-bottom: var(--space-sm);
  border-bottom: var(--pl-rule-strong-width) solid var(--rule-strong);
}
.pg-faq-group .pg-faq,
.pg-faq-group .pg-rows,
.pg-faq-group .pg-numbered { margin-top: 0; border-top: 0; }
.pg-empty {
  padding-top: var(--space-lg);
  color: var(--ink-2);
  font-size: 1rem;
}
.pg-empty a { color: var(--ink); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.pg-empty a:hover { text-decoration-color: var(--amber); }
/* "Still a question?": the one boxed line, at the end of the questions. */
.pg-ask {
  margin-top: var(--space-2xl);
  padding: var(--space-md) var(--space-lg);
  border: var(--pl-rule-strong-width) solid var(--rule-strong);
  background: var(--paper-2);
  font-weight: 700;
  color: var(--ink);
}
.pg-ask a { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.pg-ask a:hover { text-decoration-color: var(--amber); }

.pg-numbered {
  list-style: none;
  margin: var(--space-lg) 0 0;
  padding: 0;
  border-top: var(--pl-rule-strong-width) solid var(--rule-strong);
}
.pg-numbered > li {
  display: grid;
  grid-template-columns: 2.75rem minmax(0, 1fr);
  gap: var(--space-sm);
  padding-block: var(--space-md);
  border-bottom: var(--pl-rule-width) solid var(--rule);
}
.pg-numbered__n {
  font-family: var(--pl-font-display);
  font-weight: var(--pl-weight-display);
  font-size: 1.5rem;
  line-height: 1;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.pg-numbered__t { font-weight: 800; color: var(--ink); font-size: 1.0625rem; }
.pg-numbered__b { margin-top: 4px; max-width: 68ch; font-size: 0.9375rem; line-height: 1.6; color: var(--ink-2); }

/* ── Legal pages: the three tabs, a contents box, numbered articles ──────── */
.pg-tabs { display: flex; flex-wrap: wrap; gap: var(--space-xs); margin-bottom: var(--space-xl); }
.pg-tabs .cta-pill { min-height: 44px; padding-inline: var(--space-md); }
.pg-tabs .cta-pill[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: var(--pl-on-invert); }
.pg-legal { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-xl); }
@media (min-width: 1024px) {
  .pg-legal { grid-template-columns: 20rem minmax(0, 50rem); gap: var(--space-3xl); align-items: start; }
  .pg-legal > .pg-toc { position: sticky; top: 104px; }
}
/* "On this page": a box of anchor links, numbered when the articles are. */
.pg-toc {
  padding: var(--space-md) var(--space-lg) var(--space-sm);
  border: var(--pl-rule-strong-width) solid var(--rule-strong);
  background: var(--paper-2);
}
.pg-toc__title { font-weight: 800; font-size: 1rem; color: var(--ink); }
.pg-toc ol { list-style: none; margin: var(--space-xs) 0 0; padding: 0; counter-reset: toc; }
.pg-toc a {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  min-height: 40px;
  color: var(--ink-2);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
}
.pg-toc--n li { counter-increment: toc; }
.pg-toc--n a::before { content: counter(toc); min-width: 1.25rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.pg-toc a:hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--amber); text-decoration-thickness: 3px; text-underline-offset: 5px; }
@media (max-width: 1023px) { .pg-legal > .pg-toc { display: none; } }

.pg-prose {
  max-width: 50rem;
  color: var(--ink-2);
  font-size: 1rem;
  line-height: 1.7;
}
.pg-prose section {
  padding-block: var(--space-lg) var(--space-xl);
  border-top: var(--pl-rule-strong-width) solid var(--rule-strong);
  scroll-margin-top: 96px;
}
.pg-prose h2 {
  display: flex;
  gap: 0.3em;
  align-items: baseline;
  margin-bottom: var(--space-sm);
  font-family: var(--pl-font-display);
  font-weight: var(--pl-weight-display);
  text-transform: var(--pl-case-display);
  letter-spacing: var(--pl-tracking-display);
  font-size: clamp(1.5rem, 0.8vw + 1.2rem, 1.875rem);
  line-height: 1.1;
  color: var(--ink);
  text-wrap: balance;
}
/* The article number: the same head, muted. */
.pg-prose h2 .pg-prose__n {
  flex: none;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.pg-prose h2 .pg-prose__n::after { content: "."; }
.pg-prose p + p,
.pg-prose p + ul,
.pg-prose ul + p,
.pg-prose p + .pg-spec { margin-top: var(--space-sm); }
.pg-prose ul { list-style: disc; padding-left: 1.25rem; display: grid; gap: 4px; }
.pg-prose ul li::marker { color: var(--amber); }
.pg-prose a { color: var(--ink); font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.pg-prose a:hover { text-decoration-color: var(--amber); }
.pg-prose strong { color: var(--ink); font-weight: 700; }

/* Code-like names (a cookie's), in the mono face. */
.pg-mono { font-family: var(--pl-font-code); font-size: 0.875em; font-weight: 500; }

.pg-updated {
  margin-top: var(--space-sm);
  font-size: 0.875rem;
  color: var(--muted);
}

/* ── Contact: the head on the left, the form on the right ────────────────── */
.pg-contact { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-2xl); }
@media (min-width: 1024px) { .pg-contact { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr); gap: var(--space-3xl); align-items: start; } }
.pg-form { display: grid; gap: var(--space-md); }
.pg-form__pair { display: grid; gap: var(--space-md); }
@media (min-width: 640px) { .pg-form__pair { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pg-form label { display: block; margin-bottom: var(--space-xs); font-weight: 700; font-size: 0.9375rem; color: var(--ink); }
.pg-form input,
.pg-form textarea {
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  font-size: 1rem;
  line-height: 1.5;
}
.pg-form textarea { resize: vertical; min-height: 12rem; }
.pg-form input::placeholder,
.pg-form textarea::placeholder { color: var(--muted); }
.pg-form__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-sm) var(--space-lg); margin-top: var(--space-2xs); }
.pg-form__actions p { font-size: 0.9375rem; color: var(--muted); }
@media (max-width: 479px) { .pg-form__actions .cta-pill { width: 100%; } }

/* ── The dark band: a raised panel the width of the page ─────────────────────
   The closing band (head and line on the left, the keys on the right), and
   the method's "what it is not". */
.pg-band {
  background: var(--pl-band);
  color: var(--pl-band-ink);
  padding-block: var(--space-2xl);
}
@media (min-width: 1024px) { .pg-band { padding-block: var(--space-3xl); } }
.pg-band .section-title,
.pg-band .pg-h2 { color: var(--pl-band-on); }
.pg-band .pg-lede,
.pg-band .pg-body { color: var(--pl-band-ink); }
.pg-band--close .section-title {
  max-width: 18ch;
  font-size: clamp(2.25rem, 3vw + 1rem, 3.5rem);
  line-height: var(--pl-lh-display);
}
@media (min-width: 1024px) {
  .pg-band--close .pg-wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-xl) var(--space-3xl); align-items: center; }
  .pg-band--close .pg-actions { margin-top: 0; }
}
/* What the tool does not do: ruled columns on the band. */
.pg-limits {
  list-style: none;
  margin: var(--space-xl) 0 0;
  padding: 0;
  display: grid;
  gap: var(--space-lg);
}
@media (min-width: 900px) { .pg-limits { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-xl); } }
.pg-limits > li { padding-top: var(--space-md); border-top: var(--pl-rule-width) solid var(--pl-band-rule); }
.pg-limits h3 { font-weight: 800; font-size: 1.25rem; letter-spacing: var(--pl-tracking-tight); color: var(--pl-band-on); }
.pg-limits p { margin-top: var(--space-xs); max-width: 52ch; line-height: 1.6; color: var(--pl-band-ink); }

/* The plain close (method): one head with its marked words, the keys. */
.pg-closing { padding-block: var(--space-2xl) 0; }
@media (min-width: 1024px) { .pg-closing { padding-block: var(--space-3xl) 0; } }
.pg-closing .section-title {
  max-width: 22ch;
  font-size: clamp(2.25rem, 3.6vw + 1rem, 4rem);
  line-height: var(--pl-lh-display);
}

/* ── The leak library (hub): nine rows, numbered, each one a link ────────── */
.pg-index {
  list-style: none;
  margin: var(--space-lg) 0 0;
  padding: 0;
  border-block: var(--pl-rule-strong-width) solid var(--rule-strong);
}
.pg-index > li + li { border-top: var(--pl-rule-width) solid var(--rule); }
.pg-index__title { margin-top: var(--space-2xl); }
.pg-index__link {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr);
  grid-template-areas: "n name" "n body";
  gap: var(--space-2xs) var(--space-sm);
  align-items: start;
  padding-block: var(--space-md);
  color: var(--ink);
  text-decoration: none;
}
.pg-index__n {
  grid-area: n;
  font-family: var(--pl-font-display);
  font-weight: 900;
  font-size: 1.375rem;
  line-height: 1.3;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.pg-index__name { grid-area: name; display: grid; gap: 2px; }
.pg-index__name b {
  font-family: var(--pl-font-display);
  font-weight: 800;
  font-size: 1.375rem;
  line-height: 1.2;
  letter-spacing: var(--pl-tracking-tight);
}
.pg-index__name span { font-weight: 700; font-size: 0.9375rem; color: var(--muted); }
.pg-index__body { grid-area: body; font-size: 1rem; line-height: 1.55; color: var(--ink-2); }
.pg-index__read { display: none; }
.pg-index__link:hover .pg-index__name b { text-decoration: underline; text-decoration-color: var(--amber); text-decoration-thickness: 3px; text-underline-offset: 5px; }
@media (min-width: 900px) {
  .pg-index__link {
    grid-template-columns: 3.5rem 20rem minmax(0, 1fr) auto;
    grid-template-areas: "n name body read";
    gap: var(--space-lg);
    align-items: center;
  }
  .pg-index__read {
    grid-area: read;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 44px;
    padding-inline: var(--space-md);
    border: var(--pl-rule-strong-width) solid var(--rule-strong);
    font-weight: 800;
    transition: background-color var(--pl-dur-fast) var(--pl-ease-out), color var(--pl-dur-fast) var(--pl-ease-out);
  }
  .pg-index__link:hover .pg-index__read { background: var(--ink); color: var(--pl-on-invert); }
}

/* The rows without their numeral: inside a behaviour the order is not a count. */
.pg-index--plain { margin-top: var(--space-sm); }
.pg-index--plain .pg-index__link { grid-template-columns: minmax(0, 1fr); grid-template-areas: "name" "body"; }
@media (min-width: 900px) {
  .pg-index--plain .pg-index__link { grid-template-columns: 20rem minmax(0, 1fr) auto; grid-template-areas: "name body read"; }
}

/* The six behaviours: a grid of jumps, each with its count. */
.pg-behaviours {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-xs);
}
@media (min-width: 768px) { .pg-behaviours { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.pg-behaviours a {
  display: grid;
  align-content: start;
  gap: 2px;
  height: 100%;
  min-height: 44px;
  padding: var(--space-sm) var(--space-md);
  border: var(--pl-rule-strong-width) solid var(--rule-strong);
  color: var(--ink);
  text-decoration: none;
  transition: background-color var(--pl-dur-fast) var(--pl-ease-out), color var(--pl-dur-fast) var(--pl-ease-out);
}
.pg-behaviours b { font-weight: 800; font-size: 1.0625rem; line-height: 1.3; }
.pg-behaviours span { font-size: 0.875rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.pg-behaviours p { margin-top: var(--space-2xs); font-size: 0.875rem; line-height: 1.5; color: var(--ink-2); }
.pg-behaviours a:hover { background: var(--ink); color: var(--pl-on-invert); }
.pg-behaviours a:hover span,
.pg-behaviours a:hover p { color: var(--pl-on-invert-2); }

/* A behaviour's section: its name and count, one line on what it is, then
   its preflop rows and its postflop rules. */
.pg-behaviour { padding-block: var(--space-2xl); scroll-margin-top: 72px; }
.pg-behaviour__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--space-2xs) var(--space-md); }
.pg-behaviour__head p { font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
.pg-behaviour .pg-lede { margin-top: var(--space-xs); }
.pg-kind { margin-top: var(--space-lg); font-weight: 800; font-size: 1.0625rem; color: var(--ink); }
.pg-kind span { color: var(--muted); font-weight: 700; }
.pg-kind + .pg-leaklinks { margin-top: var(--space-sm); }
.pg-more > .pg-link + .pg-link { margin-left: var(--space-lg); }

/* The postflop rules: one disclosure per behaviour, its count on the bar. */
.pg-rules { margin-top: var(--space-lg); border-block: var(--pl-rule-strong-width) solid var(--rule-strong); }
.pg-rules > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  min-height: 56px;
  cursor: pointer;
  list-style: none;
}
.pg-rules > summary::-webkit-details-marker { display: none; }
.pg-rules > summary .pg-kind { margin: 0; }
.pg-rules > summary::after {
  content: "";
  flex: none;
  width: 16px;
  height: 16px;
  color: var(--ink);
  background:
    linear-gradient(currentColor, currentColor) center / 16px 2px no-repeat,
    linear-gradient(currentColor, currentColor) center / 2px 16px no-repeat;
}
.pg-rules[open] > summary::after { background: linear-gradient(currentColor, currentColor) center / 16px 2px no-repeat; }
.pg-rules > summary:hover .pg-kind { text-decoration: underline; text-decoration-color: var(--amber); text-decoration-thickness: 3px; text-underline-offset: 5px; }
.pg-rules__list {
  list-style: none;
  margin: 0;
  padding: 0 0 var(--space-md);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0 var(--space-xl);
}
@media (min-width: 900px) { .pg-rules__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pg-rules__list > li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2px var(--space-sm);
  align-content: start;
  padding-block: var(--space-sm);
  border-top: var(--pl-rule-width) solid var(--rule);
}
.pg-rules__name { font-weight: 800; font-size: 1rem; line-height: 1.35; color: var(--ink); }
.pg-rules__meta { display: flex; gap: 6px; align-items: start; }
.pg-rules__meta span {
  padding: 1px 6px;
  border: var(--pl-rule-width) solid var(--rule-strong);
  font-weight: 700;
  font-size: 0.75rem;
  line-height: 1.4;
  white-space: nowrap;
  color: var(--ink);
}
.pg-rules__meta .pg-rules__beta { border-color: var(--amber); color: var(--amber-hi); }
.pg-rules__desc { grid-column: 1 / -1; font-size: 0.875rem; line-height: 1.55; color: var(--muted); }

/* ── A leak page: facts strip, the explanation beside its contents ──────── */
.pg-strip {
  margin: var(--space-xl) 0 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-md) var(--space-lg);
  padding-top: var(--space-md);
  border-top: var(--pl-rule-strong-width) solid var(--rule-strong);
}
@media (min-width: 900px) { .pg-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.pg-strip div { display: grid; gap: 4px; align-content: start; }
.pg-strip dt { font-weight: 700; font-size: 0.875rem; color: var(--muted); }
.pg-strip dd { margin: 0; font-weight: 800; font-size: 1.125rem; line-height: 1.35; color: var(--ink); }

.pg-leak { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-2xl); padding-block: var(--space-xl) var(--space-3xl); }
@media (min-width: 1024px) {
  .pg-leak { grid-template-columns: minmax(0, 1fr) 19rem; gap: var(--space-3xl); align-items: start; }
  .pg-leak__side { position: sticky; top: 104px; }
}
.pg-leak__main { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-2xl); min-width: 0; }
.pg-leak__main > section { scroll-margin-top: 96px; }
.pg-leak__side { display: grid; gap: var(--space-xl); }
@media (max-width: 1023px) { .pg-leak__side .pg-toc { display: none; } }
.pg-leak__side .pg-h2 { font-size: 1.625rem; }

/* The row the demo tournament printed for this leak, in its file frame. */
.pg-demo-row { margin-top: var(--space-lg); }
.pg-demo-row .lk-list { padding: var(--space-xs) var(--space-md); }

/* Related leaks: outlined cards, name and plain-words name, an arrow. */
.pg-related { list-style: none; margin: var(--space-sm) 0 0; padding: 0; display: grid; gap: var(--space-sm); }
.pg-related a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 2px var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  border: var(--pl-rule-strong-width) solid var(--rule-strong);
  color: var(--ink);
  text-decoration: none;
  transition: box-shadow var(--pl-dur-fast) var(--pl-ease-out), transform var(--pl-dur-fast) var(--pl-ease-out);
}
.pg-related b { font-weight: 800; font-size: 1.0625rem; line-height: 1.3; }
.pg-related span { grid-column: 1; font-size: 0.875rem; color: var(--muted); }
.pg-related .pl-icon { grid-column: 2; grid-row: 1 / span 2; }
.pg-related a:hover { transform: translate(-2px, -2px); box-shadow: var(--pl-shadow-part); }
@media (prefers-reduced-motion: reduce) { .pg-related a:hover { transform: none; } }

/* A statement about thin data: the dashed outline of "to check". */
.pg-thin {
  padding: var(--space-md) var(--space-lg);
  border: var(--pl-rule-strong-width) dashed var(--sev-none);
}
.pg-thin .pg-h3 { font-weight: 800; font-size: 1.125rem; color: var(--ink); }
.pg-thin .pg-body { margin-top: var(--space-xs); }

/* ── The method's four stages, each ending on what it produces ─────────── */
.pg-steps--4 .pg-steps__item { display: flex; flex-direction: column; }
/* The item is a flex column (its grid gap carries over): the figures sit on
   one line across the four columns. */
.pg-step__fig { margin: auto 0 0; padding-top: var(--space-sm); }
figure.pg-step__fig { padding-top: 0; box-shadow: var(--pl-shadow-part); }
.pg-step__fig .pg-file__body { padding-top: var(--space-xs); padding-bottom: var(--space-xs); }
.pg-step__spot { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-xs); }
.pg-step__spot span { padding: 4px 10px; border: var(--pl-rule-strong-width) solid var(--rule-strong); font-weight: 800; font-size: 0.875rem; }
.pg-step__spot b { padding: 4px 10px; background: var(--ink); color: var(--pl-on-invert); font-weight: 800; font-size: 0.875rem; }
/* A count card: the leak, "3 of 279", the rate as a stroke, its interval. */
.pg-count {
  --heat: var(--sev-1);
  display: grid;
  gap: var(--space-xs);
  padding: var(--space-sm) var(--space-md);
  border: var(--pl-rule-strong-width) solid var(--rule-strong);
}
.pg-count[data-severity="high"] { --heat: var(--sev-3); }
.pg-count[data-severity="medium"] { --heat: var(--sev-2); }
.pg-count__head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-sm); }
.pg-count__head b { font-weight: 800; line-height: 1.3; }
.pg-count__head span { flex: none; color: var(--ink-2); font-size: 0.9375rem; font-variant-numeric: tabular-nums; }
.pg-count__track { display: block; height: 12px; background: var(--paper-2); box-shadow: inset 0 0 0 1px var(--rule); }
.pg-count__track span { display: block; height: 100%; min-width: 4px; background: var(--heat); }
.pg-count__rate { color: var(--muted); font-size: 0.9375rem; font-variant-numeric: tabular-nums; }
.pg-count__rate b { color: var(--ink); font-weight: 800; }
/* Thin: dashed card, dashed heat, a label that says so. */
.pg-count--thin { border-style: dashed; border-color: var(--sev-none); }
.pg-count--thin .pg-count__track span { background: transparent; border: 2px dashed var(--heat); }
.pg-count__sev { justify-self: start; padding: 1px 8px; border: 2px dashed var(--heat); color: var(--heat); font-weight: 700; font-size: 0.8125rem; }

/* ── Pricing: one board, the plans side by side at equal weight ─────────────
   One raised panel, split by violet hairlines — no card per plan. The
   per-month equivalent is the figure each column is read by; the amber key
   is the checkout. Every price comes from Plans.checkout_plans (Stripe). */
.pg-plans {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
}
.pg-plan {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: var(--space-lg) var(--space-md);
}
.pg-plan + .pg-plan { border-top: var(--pl-rule-width) solid var(--rule); }
@media (min-width: 400px) { .pg-plan { padding-inline: var(--space-lg); } }
/* Side by side only once a column clears the longest key label ("Se connecter
   pour s'abonner") on one line; below that the plans stack on the board. */
@media (min-width: 900px) {
  .pg-plans { grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
  .pg-plan { padding: var(--space-xl) var(--space-lg); }
  .pg-plan + .pg-plan { border-top: 0; border-left: var(--pl-rule-width) solid var(--rule); }
}
.pg-plan__name {
  font-family: var(--pl-font-display);
  font-weight: var(--pl-weight-display);
  text-transform: var(--pl-case-display);
  font-size: 1.375rem;
  line-height: 1;
  color: var(--ink-2);
}
/* "4,99 € / mois": the amount is the sign, the currency and period its caption. */
.pg-plan__price {
  margin-top: var(--space-md);
  font-family: var(--pl-font-display);
  font-weight: var(--pl-weight-display);
  text-transform: var(--pl-case-display);
  font-size: 1.375rem;
  line-height: 1;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.pg-plan__amount {
  font-size: clamp(3.25rem, 3vw + 2rem, 4.25rem);
  color: var(--ink);
}
.pg-plan__terms {
  margin-top: var(--space-sm);
  display: grid;
  align-content: start;
  gap: 2px;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--muted);
}
/* Side by side, every column keeps room for two lines of terms, so the quota
   rules and the keys line up across the board. */
@media (min-width: 900px) { .pg-plan__terms { min-height: calc(3em + 2px); } }
.pg-plan__quota {
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  border-top: var(--pl-rule-width) solid var(--pl-rule-hair);
  display: flex;
  align-items: baseline;
  gap: var(--space-xs);
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--ink);
}
.pg-plan__quota .pl-icon { color: var(--pl-neutral); transform: translateY(2px); }
.pg-plan__action { margin-top: auto; padding-top: var(--space-lg); }
/* The plan the account already pays for: one tonal step up, its word, and
   the portal key in place of a checkout. */
.pg-plan[data-current="true"] { position: relative; background: var(--paper-3); }
/* Pinned in the corner so the price keeps its line across the board. */
.pg-plan__badge { position: absolute; top: var(--space-lg); right: var(--space-md); }
@media (min-width: 400px) { .pg-plan__badge { right: var(--space-lg); } }
@media (min-width: 900px) { .pg-plan__badge { top: var(--space-xl); } }
.pg-plan__current { font-size: 0.875rem; font-weight: 600; color: var(--ink); }
.pg-plan__action .pg-note { margin-top: var(--space-2xs); margin-bottom: var(--space-sm); }
.pg-plan__form,
.pg-plan__action .cta-pill { width: 100%; }
.pg-plan__action .cta-pill { padding-inline: var(--space-sm); }
/* Stacked on a wide phone or a tablet, the key keeps its own width. */
@media (min-width: 480px) and (max-width: 899px) {
  .pg-plan__form,
  .pg-plan__action .cta-pill { width: auto; }
  .pg-plan__action .cta-pill { padding-inline: 1.375rem; }
}
/* On a tablet each stacked plan reads as one row: the figure on the left,
   what it buys and its key on the right. */
@media (min-width: 640px) and (max-width: 899px) {
  .pg-plan {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "name  ."
      "price quota"
      "terms action";
    column-gap: var(--space-xl);
    align-items: end;
  }
  .pg-plan__name { grid-area: name; }
  .pg-plan__price { grid-area: price; }
  .pg-plan__terms { grid-area: terms; align-self: start; }
  .pg-plan__quota { grid-area: quota; justify-self: end; margin-top: 0; padding-top: 0; border-top: 0; }
  .pg-plan__action { grid-area: action; justify-self: end; align-self: start; margin-top: var(--space-sm); padding-top: 0; }
  /* The current plan carries two notes over its key: they take the full row. */
  .pg-plan[data-current="true"] {
    grid-template-areas:
      "name  ."
      "price quota"
      "terms terms"
      "action action";
  }
  .pg-plan[data-current="true"] .pg-plan__action { justify-self: stretch; margin-top: var(--space-md); }
}
.pg-plans-foot { margin-top: var(--space-lg); }
.pg-plans-foot .pg-note { margin-top: 0; }
.pg-plans-foot .pg-actions { margin-top: var(--space-md); }

/* The honest price line under the hero keys: the demo is free, the cheapest
   per-month equivalent comes from the Stripe-backed plans. */
.pg-price-note {
  margin-top: var(--space-sm);
  font-size: 0.875rem;
  color: var(--muted);
}
.pg-price-note .pg-inline-link { color: var(--amber); }
