/* ============================================================
   Personality Map — Design System
   Ported from the Claude Design handoff
   ("Personality Map Design System.html").

   Strictly monochrome with a single accent (Contour #4a6741).
   Inter Regular only (italic for emphasis, never bold).
   Fraunces stands in for the FreightDisp wordmark.
   No gradients. No shadows. No rounded corners. Hairlines only.
   ============================================================ */

/* ——————————————————————————————————————————
   Tokens
   —————————————————————————————————————————— */
:root {
  --pm-black:    #1a1a1a;
  --pm-ink:      #2a2a2a;
  --pm-gray:     #7a7a7a;
  --pm-mute:     #999999;
  --pm-placeholder: #6e6e6e; /* 5:1 on white — AA-compliant for input hints */
  --pm-line:     #e8e8e8;
  --pm-paper:    #fafafa;
  --pm-white:    #ffffff;
  --pm-contour:  #4a6741;

  --pm-body-max: 640px;
  --pm-quote-max: 560px;
  --pm-page-max: 1200px;

  --pm-gutter: clamp(24px, 8vw, 120px);

  --pm-section-gap-d: 140px;
  --pm-section-gap-m: 80px;

  --pm-font: 'Inter', system-ui, -apple-system, Helvetica, Arial, sans-serif;
  --pm-display: 'Fraunces', 'FreightDisp Pro Book', Georgia, serif; /* stand-in for FreightDisp */
}

/* ——————————————————————————————————————————
   Base
   —————————————————————————————————————————— */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--pm-font);
  font-weight: 400;
  font-size: 18px;
  line-height: 1.7;
  color: var(--pm-ink);
  background: var(--pm-white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
p { max-width: var(--pm-body-max); margin: 0 0 28px; }
em, i { font-style: italic; }
strong, b { font-weight: 400; } /* per brand: no bold, italic only */
hr { border: 0; border-top: 1px solid var(--pm-line); margin: 80px 0; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
img { max-width: 100%; height: auto; }
/* Off-screen but readable by assistive tech (e.g. persistent aria-live regions). */
.pm-visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* Visible keyboard focus on every interactive element (WCAG 2.2 AA 2.4.7 / 2.4.11).
   Pointer users keep the clean surface; keyboard users always see where they are.
   :focus-visible never fires on mouse clicks, so the Contour ring is keyboard-only. */
:focus-visible {
  outline: 2px solid var(--pm-contour);
  outline-offset: 2px;
}
/* Inputs zero the default outline for the hairline-shift aesthetic; restore a real
   ring for keyboard focus so the border shift is not the sole indicator. */
.pm-input:focus-visible,
.pm-textarea:focus-visible {
  outline: 2px solid var(--pm-contour);
  outline-offset: 2px;
}

/* Raw Django {{ form.field.errors }} renders an <ul class="errorlist">. Style it
   globally in near-black ink so an error is never carried in muted metadata gray. */
ul.errorlist {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  max-width: 420px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--pm-black);
}
ul.errorlist li { margin: 0; }

/* Form errors written in templates — same ink, never the muted metadata gray. */
.pm-form-error {
  max-width: 420px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--pm-black);
  margin: 8px 0 0;
}
.pm-form-error--summary { margin: 0 0 28px; }

/* Field help — guidance the user reads to answer, so ink not the muted metadata gray. */
.pm-field-help {
  max-width: 560px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--pm-ink);
  margin: 4px 0 0;
}

/* Quiet disclosure (native <details>) — folds long secondary lists away so the
   primary focal point stays alone on screen. Keyboard-operable for free. */
.pm-disclosure > summary {
  cursor: pointer;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--pm-black);
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.pm-disclosure > summary::-webkit-details-marker { display: none; }
.pm-disclosure > summary::after { content: "+"; color: var(--pm-gray); }
.pm-disclosure[open] > summary::after { content: "\2013"; }
.pm-disclosure > summary:hover { color: var(--pm-contour); }

/* ——————————————————————————————————————————
   App layout helpers
   —————————————————————————————————————————— */
.pm-container {
  max-width: var(--pm-page-max);
  margin: 0 auto;
  padding-left: var(--pm-gutter);
  padding-right: var(--pm-gutter);
}
@media (max-width: 760px) {
  .pm-container { padding-left: 24px; padding-right: 24px; }
}
.pm-narrow { max-width: var(--pm-body-max); }
.pm-page-pad {
  padding-top: 96px;
  padding-bottom: 96px;
}
.pm-prose > * + * { margin-top: 28px; }

/* ——————————————————————————————————————————
   Docs page scaffolding (styleguide)
   —————————————————————————————————————————— */
.page {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  max-width: 1440px;
  margin: 0 auto;
}
@media (max-width: 900px) { .page { grid-template-columns: 1fr; } }

.nav {
  position: sticky;
  top: 0;
  align-self: start;
  height: 100vh;
  padding: 48px 24px 48px 48px;
  border-right: 1px solid var(--pm-line);
  overflow-y: auto;
}
@media (max-width: 900px) {
  .nav { position: static; height: auto; border-right: 0; border-bottom: 1px solid var(--pm-line); padding: 32px 24px; }
}
.nav__wordmark {
  font-family: var(--pm-display);
  font-weight: 400;
  font-size: 22px;
  line-height: 1.05;
  color: var(--pm-black);
  letter-spacing: -0.005em;
  display: block;
  margin-bottom: 4px;
}
.nav__wordmark span { display: block; letter-spacing: 0.02em; }
.nav__kicker {
  font-size: 12px;
  color: var(--pm-gray);
  letter-spacing: 0.06em;
  margin-bottom: 48px;
}
.nav__group { margin-bottom: 28px; }
.nav__group-label {
  font-size: 12px;
  color: var(--pm-gray);
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}
.nav__link {
  display: block;
  font-size: 14px;
  line-height: 1.6;
  color: var(--pm-black);
  padding: 4px 0;
  transition: color 0.2s ease;
}
.nav__link:hover, .nav__link.is-active { color: var(--pm-contour); }

.main { padding: 96px var(--pm-gutter) 120px; max-width: 1200px; }
@media (max-width: 900px) { .main { padding: 48px 24px 80px; } }

section.doc-section { padding-bottom: var(--pm-section-gap-d); scroll-margin-top: 40px; }
@media (max-width: 900px) { section.doc-section { padding-bottom: var(--pm-section-gap-m); } }

/* ——————————————————————————————————————————
   Typography
   —————————————————————————————————————————— */
.eyebrow {
  font-size: 12px;
  color: var(--pm-gray);
  letter-spacing: 0.08em;
  margin-bottom: 24px;
}
h1, h2, h3, h4 { font-family: var(--pm-font); font-weight: 400; color: var(--pm-black); margin: 0; letter-spacing: -0.01em; }
h1.display {
  font-size: clamp(40px, 5.2vw, 64px);
  line-height: 1.05;
  max-width: 760px;
  margin-bottom: 28px;
}
h2.section {
  font-size: clamp(28px, 3vw, 36px);
  line-height: 1.15;
  max-width: 720px;
  margin-bottom: 20px;
}
h2.sub,
h3.sub {
  font-size: 22px;
  line-height: 1.25;
  margin-bottom: 12px;
}
h4.label {
  font-size: 13px;
  color: var(--pm-gray);
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.lede {
  font-size: 20px;
  line-height: 1.6;
  color: var(--pm-ink);
  max-width: 640px;
  margin-bottom: 40px;
}

.contour-rule {
  width: 48px;
  height: 1px;
  background: var(--pm-contour);
  margin-bottom: 40px;
}

.pull-quote {
  font-family: var(--pm-font);
  font-style: italic;
  font-size: clamp(22px, 2.4vw, 28px);
  line-height: 1.3;
  color: var(--pm-black);
  max-width: var(--pm-quote-max);
  margin: 56px 0;
}

/* The stacked wordmark — reusable */
.pm-wordmark {
  font-family: var(--pm-display);
  font-weight: 400;
  line-height: 1.05;
  color: var(--pm-black);
  letter-spacing: -0.01em;
  display: inline-block;
}
.pm-wordmark span { display: block; letter-spacing: 0.02em; }
.pm-wordmark.is-reversed { color: var(--pm-white); }

/* ——————————————————————————————————————————
   Component frames (specimens)
   —————————————————————————————————————————— */
.specimen {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
  margin: 40px 0 8px;
}
@media (max-width: 760px) { .specimen { grid-template-columns: 1fr; gap: 24px; } }

.specimen__example {
  background: var(--pm-white);
  border: 1px solid var(--pm-line);
  padding: 56px 40px;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}
.specimen__example.is-paper { background: var(--pm-paper); }
.specimen__example.is-tight { padding: 32px; min-height: 0; }
.specimen__caption {
  padding-top: 8px;
  font-size: 14px;
  color: var(--pm-gray);
  line-height: 1.6;
}
.specimen__caption h4 { font-size: 14px; color: var(--pm-black); margin-bottom: 6px; letter-spacing: 0; }

.meta-grid {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 8px 40px;
  max-width: 720px;
  margin: 24px 0 48px;
  font-size: 14px;
}
.meta-grid dt { color: var(--pm-gray); }
.meta-grid dd { color: var(--pm-black); margin: 0; }

/* ——————————————————————————————————————————
   Color swatches
   —————————————————————————————————————————— */
.swatches {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  max-width: 1040px;
}
.swatch { display: flex; flex-direction: column; gap: 14px; }
.swatch__chip {
  aspect-ratio: 4/3;
  width: 100%;
  border: 1px solid var(--pm-line);
}
.swatch__name { font-size: 15px; color: var(--pm-black); }
.swatch__hex { font-size: 13px; color: var(--pm-gray); font-variant-numeric: tabular-nums; }
.swatch__use { font-size: 13px; color: var(--pm-gray); line-height: 1.5; }

/* Type specimen */
.type-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 40px;
  align-items: baseline;
  padding: 32px 0;
  border-bottom: 1px solid var(--pm-line);
  max-width: 1040px;
}
.type-row:first-of-type { border-top: 1px solid var(--pm-line); }
.type-row__meta { font-size: 13px; color: var(--pm-gray); line-height: 1.6; }
.type-row__meta span { display: block; color: var(--pm-black); margin-bottom: 4px; }
.type-row__sample { color: var(--pm-black); }
.ts-hero       { font-size: 52px; line-height: 1.1; max-width: 640px; }
.ts-section    { font-size: 32px; line-height: 1.2; }
.ts-sub        { font-size: 22px; line-height: 1.3; }
.ts-lede       { font-size: 20px; line-height: 1.6; color: var(--pm-ink); max-width: 640px; }
.ts-body       { font-size: 18px; line-height: 1.7; color: var(--pm-ink); max-width: 640px; }
.ts-quote      { font-style: italic; font-size: 26px; line-height: 1.3; max-width: 560px; }
.ts-archetype  { font-size: 18px; letter-spacing: 0.05em; }
.ts-caption    { font-size: 13px; color: var(--pm-gray); letter-spacing: 0.04em; }

/* Spacing scale */
.space-scale {
  display: grid;
  grid-template-columns: 120px 100px 1fr;
  gap: 8px 32px;
  max-width: 1040px;
  font-size: 14px;
}
.space-scale div { padding: 10px 0; border-bottom: 1px solid var(--pm-line); }

/* ——————————————————————————————————————————
   CTA links (primary pattern — no boxes, arrow only)
   —————————————————————————————————————————— */
.cta-link {
  font-size: 17px;
  color: var(--pm-black);
  transition: color 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.cta-link:hover { color: var(--pm-contour); }
.cta-link .arrow { transition: transform 0.2s ease; }
.cta-link:hover .arrow { transform: translateX(3px); }
.cta-link--small { font-size: 14px; }

.cta-ghost {
  font-size: 15px;
  color: var(--pm-gray);
  transition: color 0.2s ease;
}
.cta-ghost:hover { color: var(--pm-black); }

.price-note { font-size: 15px; color: var(--pm-gray); margin-top: 10px; }

/* ——————————————————————————————————————————
   Form controls (assessment inputs)
   —————————————————————————————————————————— */
.field-label { font-size: 13px; color: var(--pm-gray); letter-spacing: 0.04em; margin-bottom: 10px; }

.pm-input {
  font-family: inherit;
  font-size: 18px;
  color: var(--pm-black);
  width: 100%;
  max-width: 420px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--pm-black);
  padding: 10px 0;
  outline: none;
  transition: border-color 0.2s ease;
}
.pm-input::placeholder { color: var(--pm-placeholder); }
.pm-input:focus { border-bottom-color: var(--pm-contour); }

.pm-textarea {
  font-family: inherit;
  font-size: 18px;
  line-height: 1.6;
  color: var(--pm-black);
  width: 100%;
  max-width: 640px;
  min-height: 140px;
  background: transparent;
  border: 0;
  border-left: 1px solid var(--pm-black);
  padding: 4px 0 4px 20px;
  resize: vertical;
  outline: none;
  transition: border-color 0.2s ease;
}
.pm-textarea:focus { border-left-color: var(--pm-contour); }
.pm-textarea::placeholder { color: var(--pm-placeholder); font-style: italic; }

/* 1–10 scale (PRD canonical) */
.scale {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  max-width: 640px;
}
.scale__anchor { font-size: 13px; color: var(--pm-gray); }
.scale__anchor.right { text-align: right; }
.scale__dots {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 8px;
  min-width: 320px;
}
.scale__dot {
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid var(--pm-black);
  background: var(--pm-white);
  aspect-ratio: 1/1;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
  position: relative;
}
.scale__dot:hover { background: var(--pm-paper); }
.scale__dot.is-selected { background: var(--pm-contour); border-color: var(--pm-contour); }
.scale__dot.is-selected:hover { background: var(--pm-contour); }

/* Likert (5-point graduated) */
.likert {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  max-width: 640px;
}
.likert__dots {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  min-width: 260px;
}
/* The button is the hit target (>=24px for WCAG 2.2 AA 2.5.8); the visible graduated
   dot is a centered pseudo-element, so the small marks stay small without shrinking
   the tap area or the keyboard focus ring. */
.likert__dot {
  appearance: none;
  border: 0;
  background: none;
  min-width: 24px;
  min-height: 24px;
  justify-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.likert__dot::before {
  content: "";
  display: block;
  border: 1px solid var(--pm-black);
  background: var(--pm-white);
  border-radius: 50%;
  transition: background 0.15s ease;
}
.likert__dot:hover::before { background: var(--pm-paper); }
.likert__dot.is-selected::before { background: var(--pm-black); }
.likert__dot.size-1::before { width: 10px; height: 10px; }
.likert__dot.size-2::before { width: 14px; height: 14px; }
.likert__dot.size-3::before { width: 18px; height: 18px; }
.likert__dot.size-4::before { width: 14px; height: 14px; }
.likert__dot.size-5::before { width: 10px; height: 10px; }

/* A/B forced choice */
.ab {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  max-width: 860px;
  border: 1px solid var(--pm-line);
}
.ab__choice {
  padding: 36px 32px;
  cursor: pointer;
  transition: background 0.2s ease;
  font-size: 18px;
  line-height: 1.5;
  color: var(--pm-black);
  border-right: 1px solid var(--pm-line);
}
.ab__choice:last-child { border-right: 0; }
.ab__choice:hover { background: var(--pm-paper); }
.ab__choice.is-selected { background: var(--pm-black); color: var(--pm-white); }
.ab__label { font-size: 12px; color: var(--pm-gray); letter-spacing: 0.08em; margin-bottom: 14px; display: block; }
.ab__choice.is-selected .ab__label { color: var(--pm-mute); }

/* Agree / disagree tiles */
.ad {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  max-width: 640px;
}
.ad__opt {
  flex: 1 1 20%;
  padding: 16px 12px;
  border: 1px solid var(--pm-black);
  border-left: 0;
  text-align: center;
  font-size: 14px;
  color: var(--pm-black);
  cursor: pointer;
  background: var(--pm-white);
  transition: background 0.15s ease, color 0.15s ease;
  line-height: 1.3;
}
.ad__opt:first-child { border-left: 1px solid var(--pm-black); }
.ad__opt:hover { background: var(--pm-paper); }
.ad__opt.is-selected { background: var(--pm-black); color: var(--pm-white); }

/* ——————————————————————————————————————————
   Progress (thin line + counter, never a percentage)
   —————————————————————————————————————————— */
.progress {
  max-width: 640px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.progress__meta {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--pm-gray);
  letter-spacing: 0.04em;
}
.progress__track {
  height: 1px;
  background: var(--pm-line);
  position: relative;
}
.progress__bar {
  position: absolute;
  left: 0; top: 0;
  height: 1px;
  width: 100%;
  background: var(--pm-black);
  /* Scale, not width: animate a compositor property, never a layout one. */
  transform-origin: left center;
  transform: scaleX(calc(var(--pct, 0) / 100));
  transition: transform 0.4s ease-out;
}
.progress__bar.is-contour { background: var(--pm-contour); }

/* ——————————————————————————————————————————
   Cards (quiet — hairline, generous padding, one idea)
   —————————————————————————————————————————— */
.card {
  background: var(--pm-white);
  padding: 48px 40px;
  border: 1px solid var(--pm-line);
  max-width: 720px;
}
.card.is-paper { background: var(--pm-paper); border-color: transparent; }
.card__kicker {
  font-size: 13px;
  color: var(--pm-gray);
  letter-spacing: 0.04em;
  margin-bottom: 40px;
}
.card__kicker span.sep { margin: 0 10px; color: var(--pm-line); }
.card__insight {
  font-style: italic;
  font-size: 26px;
  line-height: 1.3;
  color: var(--pm-black);
  max-width: 560px;
  margin: 0 0 32px;
}
.card__body {
  font-size: 18px;
  line-height: 1.7;
  color: var(--pm-ink);
  max-width: 560px;
  margin: 0 0 32px;
}
.card__prompt {
  font-size: 20px;
  line-height: 1.5;
  color: var(--pm-black);
  max-width: 560px;
  margin: 0 0 24px;
}

/* Archetype indicator (typographic, single diamond) */
.archetype {
  font-size: 18px;
  letter-spacing: 0.05em;
  color: var(--pm-black);
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.archetype__mark {
  width: 10px; height: 10px;
  border: 1px solid var(--pm-black);
  display: inline-block;
  transform: rotate(45deg);
}
.archetype.is-active .archetype__mark { background: var(--pm-contour); border-color: var(--pm-contour); }
.archetype.is-active { color: var(--pm-contour); }

/* Archetype card (character reveal) */
.arch-card {
  padding: 48px 40px;
  border: 1px solid var(--pm-line);
  background: var(--pm-white);
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-height: 360px;
  position: relative;
}
.arch-card__name { font-size: 22px; letter-spacing: 0.05em; color: var(--pm-black); }
.arch-card__axes { font-size: 13px; color: var(--pm-gray); letter-spacing: 0.04em; }
.arch-card__desc { font-size: 16px; line-height: 1.65; color: var(--pm-ink); max-width: 380px; }
.arch-card__topo {
  position: absolute;
  right: 16px;
  bottom: 16px;
  width: 120px;
  height: 80px;
  opacity: 0.6;
}

.arch-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 1040px;
}
@media (max-width: 760px) { .arch-grid { grid-template-columns: 1fr; } }

/* Dimension row (mark on a line, never a bar) */
.dim {
  display: grid;
  grid-template-columns: 200px 1fr 40px;
  align-items: center;
  gap: 24px;
  padding: 14px 0;
  border-bottom: 1px solid var(--pm-line);
  max-width: 720px;
}
.dim__name { font-size: 15px; color: var(--pm-black); }
.dim__track { position: relative; height: 1px; background: var(--pm-line); }
.dim__mark {
  position: absolute;
  top: -4px;
  width: 9px; height: 9px;
  background: var(--pm-black);
  transform: translateX(-50%);
  border-radius: 50%;
}
.dim__score { font-size: 14px; color: var(--pm-gray); text-align: right; font-variant-numeric: tabular-nums; }

/* Topo illustration */
.topo {
  width: 100%;
  height: 100%;
  display: block;
  stroke: var(--pm-contour);
  fill: none;
  stroke-width: 1;
}
.topo.is-black { stroke: var(--pm-black); }
.topo.is-muted { stroke: var(--pm-gray); opacity: 0.5; }

/* ——————————————————————————————————————————
   Footer rule (non-negotiable)
   —————————————————————————————————————————— */
.pm-footer {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 56px 0 0;
  margin-top: 120px;
  border-top: 1px solid var(--pm-line);
}
.pm-footer__mark {
  font-family: var(--pm-display);
  font-size: 16px;
  line-height: 1.05;
  color: var(--pm-black);
}
.pm-footer__mark span { display: block; letter-spacing: 0.02em; }
.pm-footer__oxygen { font-size: 13px; color: var(--pm-mute); }
.pm-footer__links { font-size: 13px; color: var(--pm-gray); display: inline-flex; gap: 20px; }
.pm-footer__links a:hover { color: var(--pm-black); }

/* ——————————————————————————————————————————
   App header
   —————————————————————————————————————————— */
.pm-header {
  border-bottom: 1px solid var(--pm-line);
  background: var(--pm-white);
}
.pm-header__inner {
  max-width: var(--pm-page-max);
  margin: 0 auto;
  padding: 24px var(--pm-gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
@media (max-width: 760px) { .pm-header__inner { padding: 20px 24px; } }
.pm-header__mark { font-family: var(--pm-display); font-size: 18px; line-height: 1.05; color: var(--pm-black); }
.pm-header__mark span { display: block; letter-spacing: 0.02em; }
.pm-header__nav { display: inline-flex; align-items: center; gap: 28px; }
.pm-header__link { font-size: 14px; color: var(--pm-gray); transition: color 0.2s ease; }
.pm-header__link:hover { color: var(--pm-black); }

/* ——————————————————————————————————————————
   Page shells (demo surfaces / app sections)
   —————————————————————————————————————————— */
.shell-landing {
  background: var(--pm-white);
  border: 1px solid var(--pm-line);
  padding: 64px 56px;
  display: flex;
  flex-direction: column;
  gap: 64px;
}
@media (max-width: 760px) { .shell-landing { padding: 40px 28px; gap: 40px; } }
.shell-landing__hero h1 {
  font-size: 48px;
  line-height: 1.1;
  max-width: 640px;
  color: var(--pm-black);
}
.shell-landing__wordmark {
  font-family: var(--pm-display);
  font-size: 18px;
  line-height: 1.05;
  color: var(--pm-black);
}
.shell-landing__wordmark span { display: block; letter-spacing: 0.02em; }

/* Shareable asset (square) */
.share-card {
  width: 320px;
  height: 320px;
  background: var(--pm-white);
  border: 1px solid var(--pm-line);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.share-card__quote {
  font-style: italic;
  font-size: 18px;
  line-height: 1.35;
  color: var(--pm-black);
  max-width: 240px;
}
.share-card__foot { display: flex; justify-content: space-between; align-items: baseline; font-size: 11px; color: var(--pm-mute); }
.share-card__mark { font-family: var(--pm-display); font-size: 14px; line-height: 1; color: var(--pm-black); }
.share-card__mark span { display: block; letter-spacing: 0.02em; }

/* ——————————————————————————————————————————
   Utilities
   —————————————————————————————————————————— */
.row { display: flex; gap: 40px; flex-wrap: wrap; align-items: flex-start; }
.stack > * + * { margin-top: 24px; }
.small { font-size: 14px; color: var(--pm-gray); }
.mono { font-variant-numeric: tabular-nums; }
.note-strip {
  border-left: 1px solid var(--pm-contour);
  padding-left: 20px;
  margin: 24px 0;
  font-size: 15px;
  color: var(--pm-ink);
  max-width: 640px;
}

/* Do / Don't */
.dodont {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 1040px;
}
@media (max-width: 760px) { .dodont { grid-template-columns: 1fr; } }
.dodont__cell {
  padding: 28px 28px 24px;
  border: 1px solid var(--pm-line);
  background: var(--pm-white);
  font-size: 16px;
  line-height: 1.6;
  color: var(--pm-ink);
}
.dodont__cell .tag {
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--pm-gray);
  margin-bottom: 14px;
  display: block;
}
.dodont__cell.is-do .tag { color: var(--pm-contour); }

/* Data table (purchase history, etc.) — hairlines, no fills */
.pm-table { width: 100%; border-collapse: collapse; max-width: 720px; font-size: 14px; }
.pm-table th {
  text-align: left;
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--pm-gray);
  padding: 0 24px 12px 0;
  border-bottom: 1px solid var(--pm-line);
}
.pm-table td { padding: 14px 24px 14px 0; border-bottom: 1px solid var(--pm-line); color: var(--pm-black); }
.pm-status { font-size: 13px; color: var(--pm-gray); display: inline-flex; align-items: center; gap: 8px; }
.pm-status::before { content: ""; width: 7px; height: 7px; border: 1px solid var(--pm-gray); transform: rotate(45deg); display: inline-block; }
.pm-status.is-active { color: var(--pm-contour); }
.pm-status.is-active::before { background: var(--pm-contour); border-color: var(--pm-contour); }

/* Plan / pricing tiles (selectable) */
.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1040px;
}
@media (max-width: 760px) { .plan-grid { grid-template-columns: 1fr; } }
.plan {
  border: 1px solid var(--pm-line);
  padding: 36px 32px;
  cursor: pointer;
  background: var(--pm-white);
  transition: border-color 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
}
.plan:hover { border-color: var(--pm-gray); }
.plan.is-selected { border-color: var(--pm-black); }
.plan__name { font-size: 18px; letter-spacing: 0.04em; color: var(--pm-black); }
.plan__price { font-size: 32px; line-height: 1.1; color: var(--pm-black); margin-top: 8px; font-variant-numeric: tabular-nums; }
.plan__term { font-size: 14px; color: var(--pm-gray); }
.plan__features { margin: 18px 0 0; padding: 0; list-style: none; font-size: 14px; color: var(--pm-ink); line-height: 1.5; }
.plan__features li { padding: 4px 0; }
.plan__flag { font-size: 12px; letter-spacing: 0.06em; color: var(--pm-contour); margin-bottom: 14px; display: block; }

/* Notice / banner (paper, hairline, no color fills) */
.pm-notice {
  background: var(--pm-paper);
  border: 1px solid var(--pm-line);
  padding: 24px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 720px;
}
.pm-notice__title { font-size: 16px; color: var(--pm-black); margin: 0 0 4px; }
.pm-notice__body { font-size: 14px; color: var(--pm-gray); margin: 0; max-width: none; }
.pm-notice.is-contour { border-left: 1px solid var(--pm-contour); }

/* Centered confirmation/empty states */
.pm-stage {
  max-width: 560px;
  margin: 0 auto;
  padding: 120px var(--pm-gutter);
  text-align: center;
}
.pm-stage .pull-quote,
.pm-stage p { margin-left: auto; margin-right: auto; }

/* ——————————————————————————————————————————
   Skip link + message toasts
   —————————————————————————————————————————— */
.pm-skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
}
.pm-skip-link:focus {
  left: 24px;
  top: 24px;
  background: var(--pm-black);
  color: var(--pm-white);
  padding: 12px 20px;
  font-size: 14px;
}

.pm-toasts {
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 60;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 360px;
}
.pm-toast {
  background: var(--pm-white);
  border: 1px solid var(--pm-black);
  border-left: 1px solid var(--pm-contour);
  padding: 16px 18px;
  font-size: 14px;
  color: var(--pm-ink);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
}
.pm-toast__close { font-size: 18px; line-height: 1; color: var(--pm-gray); transition: color 0.2s ease; }
.pm-toast__close:hover { color: var(--pm-black); }

/* ——————————————————————————————————————————
   Motion — fade-reveal (respects reduced motion)
   —————————————————————————————————————————— */
/* Only hide content for the reveal when JS is present to bring it back. Without the
   `js` class (script blocked, failed, or disabled) the reading column stays visible. */
.js .pm-reveal { opacity: 0; transform: translateY(8px); transition: opacity 0.4s ease-out, transform 0.4s ease-out; }
.js .pm-reveal.is-in { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.001ms !important; animation-duration: 0.001ms !important; }
  .pm-reveal { opacity: 1; transform: none; }
}

/* —— Intake: item screen + progress (Spec 03 §4) —— */
/* A thin hairline whose filled portion advances; never a percentage label. */
.pm-intake { max-width: 640px; margin: 0 auto; }
.pm-intake__statement { font-size: clamp(20px, 2.4vw, 26px); line-height: 1.4; margin: 0 0 40px; }
.pm-likert-anchor { font-size: 14px; color: var(--pm-gray); }
.pm-progress { max-width: 640px; margin: 56px auto 0; }
.pm-progress__line { height: 1px; background: var(--pm-line); position: relative; }
.pm-progress__fill {
  position: absolute;
  left: 0; top: 0;
  height: 1px;
  width: 100%;
  background: var(--pm-contour);
  transform-origin: left center;
  transform: scaleX(calc(var(--pct, 0) / 100));
  transition: transform 0.3s ease;
}
.pm-progress__counter { margin-top: 12px; font-size: 14px; }
@media (prefers-reduced-motion: reduce) {
  .pm-progress__fill { transition: none; }
}

/* ——————————————————————————————————————————
   Reading surfaces — overview / Contour / portrait (Spec 10 §3, §4)
   The three Contour components are one uninterrupted passage: consecutive
   paragraphs at one scale, no separator. Sub-headers come from the generator
   already in sentence case — never uppercase, never bold (Spec 10 §4; Spec
   05 §4.1). One accent per screen / per portrait block (a block opening only).
   —————————————————————————————————————————— */

/* The single reading column, shared by overview / Contour / portrait blocks. */
.pm-contour,
.pm-portrait { max-width: var(--pm-body-max); }

/* Body prose inside a reading surface — one scale, generous rhythm, no chrome. */
.pm-contour p,
.pm-portrait p {
  font-size: 18px;
  line-height: 1.7;
  color: var(--pm-ink);
  max-width: var(--pm-body-max);
}
.pm-contour > * + *,
.pm-portrait__narrative > * + * { margin-top: 28px; }

/* Block opening: the verbatim Spec 05 description, Subtle Gray, slightly
   smaller than body, immediately before the narrative. Weight 400. */
.pm-contour__opener { margin-bottom: 28px; }
.pm-block-desc {
  font-size: 16px;
  line-height: 1.6;
  color: var(--pm-gray);
  max-width: var(--pm-body-max);
  margin-bottom: 24px;
}

/* In-block sub-headers — Subtle Gray, letter-spaced Inter Regular, rendered
   exactly as emitted. No text-transform, no bold weight (the brand-adapted
   form of the v9.2 all-caps sub-header). */
.pm-subhead {
  font-size: 15px;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0.04em;
  color: var(--pm-gray);
  margin: 0 0 12px;
}

/* The portrait is a long read: nine blocks top-to-bottom with section rhythm. */
.pm-portrait__block + .pm-portrait__block { margin-top: 72px; }
.pm-portrait__title {
  font-size: 22px;
  font-weight: 400;
  line-height: 1.25;
  color: var(--pm-ink);
  margin: 0 0 16px;
}

/* The dashboard "next opens" line and re-read list — quiet metadata. */
.pm-reading-list { list-style: none; padding: 0; margin: 0; }
.pm-reading-list li + li { margin-top: 16px; }

/* ——————————————————————————————————————————
   Accuracy rating (Spec 12) — a restrained mark input, never a gauge or bar.
   Five selectable marks on one line; the chosen mark carries the one accent and
   the choice is echoed as text, so selection is never carried by color alone.
   —————————————————————————————————————————— */
.pm-rating { margin-top: 64px; max-width: 560px; }
.pm-rating__body {
  font-size: 17px;
  color: var(--pm-ink);
  line-height: 1.6;
  margin: 12px 0 24px;
  max-width: 480px;
}
.pm-rating__stars {
  display: flex;
  gap: 12px;
  border: 0;
  padding: 0;
  margin: 0 0 12px;
}
.pm-star { position: relative; display: inline-flex; cursor: pointer; }
/* The native radio stays in flow and keyboard-operable; it is visually covered
   by the mark, never removed (selection state is real form state for AT). */
.pm-star__input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.pm-star__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--pm-line);
  /* Ink, not gray: the digit is the always-visible mark and must clear the
     4.5:1 body bar (CLAUDE.md keeps the muted grays off essential text). */
  color: var(--pm-ink);
  font-size: 17px;
  font-variant-numeric: tabular-nums;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.pm-star:hover .pm-star__mark { border-color: var(--pm-black); color: var(--pm-black); }
.pm-star__input:checked + .pm-star__mark {
  border-color: var(--pm-contour);
  color: var(--pm-contour);
}
.pm-star__input:focus-visible + .pm-star__mark {
  outline: 2px solid var(--pm-contour);
  outline-offset: 2px;
}
.pm-rating__chosen {
  font-size: 14px;
  color: var(--pm-gray);
  min-height: 1.4em;
  margin: 0 0 24px;
}
.pm-rating__comment { margin-bottom: 28px; }
.pm-rating__comment .pm-textarea { min-height: 88px; }
.pm-rating__error { font-size: 14px; color: var(--pm-black); margin: 8px 0; }
.pm-rating__submit { margin-top: 8px; }
.pm-rating__submit .cta-link {
  background: transparent;
  border: 0;
  padding: 0;
  font-family: inherit;
  cursor: pointer;
}
.pm-rating__confirmation { margin-top: 64px; max-width: 480px; }
.pm-rating__confirmation p { font-size: 17px; color: var(--pm-ink); line-height: 1.6; }

@media (prefers-reduced-motion: reduce) {
  .pm-star__mark { transition: none; }
}

/* ============================================================
   Landing / marketing surfaces (brand register)
   The CMS StreamField blocks render through these. Still the Personality Map
   system: monochrome, hairlines, one accent, italic for emphasis, no cards,
   no shadows, no rounded corners. The "background_color" choice maps to three
   brand tones only — white, Paper, and one near-black "drenched" section.
   ============================================================ */

/* —— Section scaffolding —— */
.pm-section { padding: 80px 0; background: var(--pm-white); }
@media (min-width: 760px) { .pm-section { padding: 140px 0; } }
.pm-section--paper { background: var(--pm-paper); }
/* Tight rhythm for blocks that flow inside an article, not as standalone sections. */
.pm-section--flow { padding: 40px 0; }
.pm-section--dark { background: var(--pm-black); color: var(--pm-line); }
.pm-section--dark h1, .pm-section--dark h2, .pm-section--dark h3, .pm-section--dark h4 { color: var(--pm-white); }
.pm-section--dark p, .pm-section--dark li, .pm-section--dark .lede { color: var(--pm-line); }
.pm-section--dark .eyebrow { color: var(--pm-mute); }
.pm-section--dark .cta-link { color: var(--pm-white); }
.pm-section--dark .cta-link:hover { color: var(--pm-white); }
.pm-section--dark .pm-line, .pm-section--dark hr { border-color: #333333; background: #333333; }
.pm-section__inner { max-width: var(--pm-page-max); margin: 0 auto; padding: 0 var(--pm-gutter); }
@media (max-width: 760px) { .pm-section__inner { padding: 0 24px; } }
.pm-section__inner.is-narrow { max-width: 760px; }

/* Section heading group, shared across blocks. */
.pm-sec__title { font-size: clamp(28px, 3vw, 36px); line-height: 1.15; max-width: 720px; margin: 0 0 20px; }
.pm-sec__intro { font-size: 20px; line-height: 1.6; color: var(--pm-ink); max-width: 640px; margin: 0 0 8px; }
.pm-section--dark .pm-sec__intro { color: var(--pm-line); }

/* —— Hero —— */
.pm-hero { padding-top: 112px; padding-bottom: 112px; }
@media (min-width: 760px) { .pm-hero { padding-top: 160px; padding-bottom: 140px; } }
.pm-hero__title { font-size: clamp(40px, 6vw, 72px); line-height: 1.05; max-width: 760px; margin: 0 0 28px; }
.pm-hero__sub { font-size: 20px; line-height: 1.6; color: var(--pm-ink); max-width: 560px; margin: 0 0 40px; }
.pm-section--dark .pm-hero__sub { color: var(--pm-line); }
.pm-hero__media { margin-top: 56px; }

/* —— Editorial columns (benefits, features) — text blocks, never cards —— */
.pm-cols { display: grid; grid-template-columns: 1fr; gap: 48px 56px; margin-top: 56px; }
@media (min-width: 720px) { .pm-cols.is-2 { grid-template-columns: 1fr 1fr; } .pm-cols.is-3 { grid-template-columns: repeat(3, 1fr); } }
.pm-col__title { font-size: 20px; line-height: 1.3; margin: 0 0 12px; padding-top: 20px; border-top: 1px solid var(--pm-line); }
.pm-section--dark .pm-col__title { border-top-color: #333333; }
.pm-col__body { font-size: 16px; line-height: 1.7; color: var(--pm-ink); max-width: 420px; margin: 0; }
.pm-section--dark .pm-col__body { color: var(--pm-line); }

/* —— Steps (how it works) — big numerals, hairline rhythm —— */
.pm-steps { margin-top: 56px; max-width: 760px; }
.pm-step { display: grid; grid-template-columns: 64px 1fr; gap: 28px; padding: 36px 0; border-top: 1px solid var(--pm-line); }
.pm-step:last-child { border-bottom: 1px solid var(--pm-line); }
.pm-section--dark .pm-step { border-color: #333333; }
.pm-step__num { font-size: 28px; line-height: 1; color: var(--pm-gray); font-variant-numeric: tabular-nums; }
.pm-step__title { font-size: 22px; line-height: 1.25; margin: 0 0 10px; }
.pm-step__body { font-size: 17px; line-height: 1.7; color: var(--pm-ink); max-width: 560px; }
.pm-section--dark .pm-step__body { color: var(--pm-line); }

/* —— Pricing — the price is type, never a card or badge —— */
.pm-pricing { max-width: 560px; }
.pm-pricing__price { font-size: clamp(40px, 5vw, 56px); line-height: 1; color: var(--pm-black); font-variant-numeric: tabular-nums; margin: 0 0 24px; }
.pm-section--dark .pm-pricing__price { color: var(--pm-white); }
.pm-pricing__list { list-style: none; margin: 0 0 32px; padding: 0; font-size: 16px; line-height: 1.6; }
.pm-pricing__list li { padding: 12px 0; border-bottom: 1px solid var(--pm-line); color: var(--pm-ink); }
.pm-section--dark .pm-pricing__list li { border-color: #333333; color: var(--pm-line); }

/* —— FAQ — native disclosure, hairline rows —— */
.pm-faq { max-width: 760px; margin-top: 48px; }
.pm-faq__item { border-top: 1px solid var(--pm-line); }
.pm-faq__item:last-child { border-bottom: 1px solid var(--pm-line); }
.pm-section--dark .pm-faq__item { border-color: #333333; }
.pm-faq__q {
  cursor: pointer; list-style: none; display: flex; align-items: baseline;
  justify-content: space-between; gap: 24px; padding: 24px 0;
  font-size: 19px; line-height: 1.4; color: var(--pm-black);
}
.pm-section--dark .pm-faq__q { color: var(--pm-white); }
.pm-faq__q::-webkit-details-marker { display: none; }
.pm-faq__q::after { content: "+"; color: var(--pm-gray); font-size: 20px; line-height: 1; }
.pm-faq__item[open] .pm-faq__q::after { content: "\2013"; }
.pm-faq__a { font-size: 17px; line-height: 1.7; color: var(--pm-ink); max-width: 640px; padding: 0 0 28px; }
.pm-section--dark .pm-faq__a { color: var(--pm-line); }

/* —— Testimonials — quiet pull-quotes, never avatar cards —— */
.pm-quotes { margin-top: 56px; display: grid; grid-template-columns: 1fr; gap: 56px; }
@media (min-width: 760px) { .pm-quotes.is-2 { grid-template-columns: 1fr 1fr; gap: 56px 64px; } }
.pm-quote__text { font-style: italic; font-size: clamp(20px, 2.2vw, 24px); line-height: 1.4; color: var(--pm-black); max-width: 560px; margin: 0 0 20px; }
.pm-section--dark .pm-quote__text { color: var(--pm-white); }
.pm-quote__by { font-size: 14px; letter-spacing: 0.04em; color: var(--pm-gray); }
.pm-quote__placeholder { font-size: 13px; letter-spacing: 0.04em; color: var(--pm-gray); margin-top: 8px; }

/* —— Logos — a quiet row, monochrome —— */
.pm-logos { margin-top: 40px; display: flex; flex-wrap: wrap; align-items: center; gap: 40px 56px; }
.pm-logos img { max-height: 36px; width: auto; opacity: 0.7; }

/* —— Split callout (image/colour column beside text) —— */
.pm-split { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center; }
@media (min-width: 860px) { .pm-split { grid-template-columns: 1fr 1fr; gap: 72px; } .pm-split.is-reversed .pm-split__media { order: -1; } }
.pm-split__text { max-width: 560px; }
.pm-split__title { font-size: clamp(26px, 3vw, 34px); line-height: 1.2; margin: 8px 0 20px; }
.pm-split__media { min-height: 280px; border: 1px solid var(--pm-line); background: var(--pm-paper); display: block; }
.pm-split__media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pm-split__media.is-paper { background: var(--pm-paper); }
.pm-split__media.is-dark { background: var(--pm-black); border-color: var(--pm-black); }

/* —— Announcement interrupter —— */
.pm-announce { display: grid; grid-template-columns: 1fr; gap: 32px; align-items: center; border: 1px solid var(--pm-line); padding: 40px; }
@media (min-width: 760px) { .pm-announce { grid-template-columns: 280px 1fr; gap: 48px; } }
.pm-announce__media img { display: block; width: 100%; height: auto; }
.pm-announce__title { font-size: 24px; line-height: 1.25; margin: 0 0 12px; }
.pm-announce__body { font-size: 17px; line-height: 1.7; color: var(--pm-ink); margin: 0 0 16px; max-width: 560px; }
.pm-announce__callout { font-size: 15px; letter-spacing: 0.04em; color: var(--pm-contour); margin: 0 0 16px; }

/* —— CTA banner —— */
.pm-cta-banner { text-align: center; max-width: 720px; margin: 0 auto; }
.pm-cta-banner__title { font-size: clamp(28px, 3.4vw, 40px); line-height: 1.15; margin: 0 0 16px; }
.pm-cta-banner__sub { font-size: 19px; line-height: 1.6; margin: 0 auto 32px; max-width: 560px; }
.pm-cta-banner .cta-link { font-size: 19px; }

/* —— Definition list (what's inside) — term left, description right, hairlines —— */
.pm-deflist { margin-top: 48px; max-width: 860px; }
.pm-deflist__row { display: grid; grid-template-columns: 1fr; gap: 8px 40px; padding: 28px 0; border-top: 1px solid var(--pm-line); }
@media (min-width: 720px) { .pm-deflist__row { grid-template-columns: 300px 1fr; } }
.pm-deflist__row:last-child { border-bottom: 1px solid var(--pm-line); }
.pm-section--dark .pm-deflist__row { border-color: #333333; }
.pm-deflist__term { font-size: 19px; line-height: 1.3; color: var(--pm-black); }
.pm-section--dark .pm-deflist__term { color: var(--pm-white); }
.pm-deflist__desc { font-size: 16px; line-height: 1.7; color: var(--pm-ink); max-width: 520px; margin: 0; }
.pm-section--dark .pm-deflist__desc { color: var(--pm-line); }

/* Rich text emitted by the CMS inside sections — keep brand rhythm + bans. */
.pm-richtext > * + * { margin-top: 20px; }
/* Links inherit ink (the accent never appears in body text) and carry an
   underline so they stay distinguishable without relying on colour. */
.pm-richtext a { text-decoration: underline; text-underline-offset: 2px; }
.pm-richtext ul, .pm-richtext ol { max-width: 640px; padding-left: 20px; }
.pm-richtext li { margin: 6px 0; }

/* ============================================================
   Detail / content-platform surfaces (article reading + indexes)
   Same brand laws: reading column, hairlines, one accent, fade-only.
   Card grids, carousels and live search are reinterpreted as restrained
   editorial lists and stacked galleries (DESIGN.md §9).
   ============================================================ */

/* Article prose */
.pm-article { max-width: var(--pm-body-max); }
.pm-article > * + * { margin-top: 20px; }
.pm-article h2 { font-size: 28px; line-height: 1.2; margin: 48px 0 16px; }
.pm-article h3 { font-size: 22px; line-height: 1.25; margin: 36px 0 12px; }
.pm-article h4 { font-size: 18px; margin: 28px 0 10px; }
/* Body links: inherit ink, underline for affordance — never the accent. */
.pm-article a { text-decoration: underline; text-underline-offset: 2px; }
.pm-article ul, .pm-article ol { padding-left: 20px; }
.pm-article li { margin: 6px 0; }
.pm-article blockquote { margin: 32px 0; padding: 0; font-style: italic; font-size: 22px; line-height: 1.4; color: var(--pm-black); max-width: 560px; }
.pm-article hr { margin: 48px 0; }
.pm-article img { margin: 28px 0; border: 1px solid var(--pm-line); }

/* Intro / lead-in text */
.pm-intro-text { font-size: 22px; line-height: 1.5; color: var(--pm-ink); max-width: 640px; }

/* Figures */
.pm-figure { margin: 0; }
.pm-figure img { display: block; width: 100%; height: auto; border: 1px solid var(--pm-line); }
.pm-figure--left { max-width: 480px; margin: 0 auto 0 0; }
.pm-figure--right { max-width: 480px; margin: 0 0 0 auto; }
.pm-figure--center { max-width: 760px; margin: 0 auto; }
.pm-figure__caption { font-size: 13px; color: var(--pm-gray); margin-top: 10px; line-height: 1.5; max-width: 560px; }
.pm-figure--full { max-width: var(--pm-page-max); margin: 0 auto; }
.pm-figure--full img { border: 0; }

/* Video — responsive frame, no autoplay chrome by default */
.pm-video { max-width: 860px; margin: 0 auto; }
.pm-video__frame { position: relative; padding-top: 56.25%; background: var(--pm-paper); border: 1px solid var(--pm-line); }
.pm-video__frame iframe, .pm-video__frame video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.pm-video__caption { font-size: 13px; color: var(--pm-gray); margin-top: 10px; }

/* Callout — one quiet treatment; quote becomes a pull-quote, tip a 1px rule */
.pm-callout { border: 1px solid var(--pm-line); background: var(--pm-paper); padding: 28px 32px; max-width: 640px; margin: 8px 0; }
.pm-callout__title { font-size: 16px; margin: 0 0 10px; }
.pm-callout__body { font-size: 16px; line-height: 1.7; color: var(--pm-ink); }
.pm-callout__body > * + * { margin-top: 16px; }
.pm-callout--tip { border: 0; border-left: 1px solid var(--pm-contour); background: none; padding: 4px 0 4px 20px; }
.pm-callout--quote { border: 0; background: none; padding: 0; }
.pm-callout--quote .pm-callout__body { font-style: italic; font-size: 22px; line-height: 1.4; color: var(--pm-black); max-width: 560px; }

/* Stacked image gallery (the on-brand reading of a slideshow) */
.pm-gallery { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 40px; }

/* Editorial content list (featured spotlight + content index, never cards) */
.pm-contentlist { margin-top: 48px; max-width: 860px; }
.pm-content-item { display: grid; grid-template-columns: 1fr; gap: 6px; padding: 32px 0; border-top: 1px solid var(--pm-line); }
.pm-content-item:last-child { border-bottom: 1px solid var(--pm-line); }
@media (min-width: 640px) { .pm-content-item.has-thumb { grid-template-columns: 180px 1fr; gap: 28px; align-items: start; } }
.pm-content-item__thumb { grid-row: span 5; }
.pm-content-item__thumb img { width: 100%; height: auto; border: 1px solid var(--pm-line); }
.pm-content-item__meta { font-size: 13px; color: var(--pm-gray); letter-spacing: 0.04em; }
.pm-content-item__title { font-size: 22px; line-height: 1.25; margin: 4px 0; }
.pm-content-item__desc { font-size: 16px; line-height: 1.6; color: var(--pm-ink); max-width: 560px; margin: 0 0 8px; }
.pm-content-item__cats { font-size: 13px; color: var(--pm-gray); }
.pm-cat-filters { display: flex; flex-wrap: wrap; gap: 16px 24px; margin: 24px 0 0; font-size: 14px; color: var(--pm-gray); }
.pm-cat-filters__item { color: var(--pm-gray); }

/* Partners */
.pm-partners { margin-top: 48px; max-width: 860px; }
.pm-partner-row { display: block; padding: 28px 0; border-top: 1px solid var(--pm-line); }
.pm-partner-row:last-child { border-bottom: 1px solid var(--pm-line); }
.pm-partner-row__role { font-size: 13px; color: var(--pm-gray); letter-spacing: 0.04em; }
.pm-partner-row__name { font-size: 22px; line-height: 1.25; margin: 4px 0; color: var(--pm-black); }
.pm-partner-row__tag { font-size: 16px; line-height: 1.6; color: var(--pm-ink); max-width: 560px; margin: 0; }
.pm-partner__photo { max-width: 280px; margin: 0 0 32px; }
.pm-partner__photo img { width: 100%; height: auto; border: 1px solid var(--pm-line); }

/* Forms rendered by the Wagtail form builder */
.pm-form { max-width: 560px; margin-top: 40px; }
.pm-form__field { margin-bottom: 24px; }
.pm-form label { display: block; font-size: 13px; color: var(--pm-gray); letter-spacing: 0.04em; margin-bottom: 10px; }
.pm-form input[type="text"], .pm-form input[type="email"], .pm-form input[type="number"],
.pm-form input[type="url"], .pm-form input[type="tel"], .pm-form input[type="date"], .pm-form select {
  font-family: inherit; font-size: 18px; color: var(--pm-black); width: 100%; max-width: 420px;
  background: transparent; border: 0; border-bottom: 1px solid var(--pm-black); padding: 10px 0;
  transition: border-color 0.2s ease;
}
.pm-form textarea {
  font-family: inherit; font-size: 18px; line-height: 1.6; color: var(--pm-black); width: 100%;
  min-height: 140px; background: transparent; border: 0; border-left: 1px solid var(--pm-black);
  padding: 4px 0 4px 20px; resize: vertical;
}
.pm-form input:focus, .pm-form textarea:focus, .pm-form select:focus { border-color: var(--pm-contour); }
.pm-form .helptext { display: block; font-size: 13px; color: var(--pm-ink); margin-top: 6px; }
.pm-form ul.errorlist { margin-top: 6px; }
/* Honeypot — visually hidden, kept in the a11y tree off-screen, never focusable label */
.pm-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
