/* =====================================================================
   GENERATED FILE -- DO NOT EDIT.

   Built from _source/assets/flowchart-shared.css by _dev/generate/theme-assets.mjs. Edit the
   snapshot (or re-sync it from the original) and regenerate; a hand edit
   here fails the gate at commit rather than surviving to contradict its
   source.

     node _dev/sync-static-source.mjs people-skills-development      pull the original in
     node _dev/generate/theme-assets.mjs people-skills-development   rebuild this file

   The file below is the static site's stylesheet verbatim, comments and
   all.

   NOTHING WORDPRESS-SPECIFIC GOES IN THIS FILE. Adapter rules that map
   block markup onto these components live in native-adapters.css, which
   is hand-written and loads after this one. Keeping them apart is what
   lets this copy stay diffable against the original.
   ===================================================================== */

/* =====================================================================
   People Skills Development, pathway flowchart prototypes
   THE PARTS ALL FOUR VARIATIONS SHARE.

   Everything that differs between the four is in the <style> block of
   its own page, so a variation can be lifted into the site as one
   copy-and-paste: this file, flowchart-data.js, that page's style block
   and that page's markup. Nothing here needs site.css to be present,
   but every colour below falls back to site.css's own token when it is,
   which is how these prototypes stay honest to the live palette instead
   of quoting it.

   Tokens borrowed, in the order site.css declares them:
     --field #1058aa   --field-deep #0d4a90   --accent #0094ff
     --ink #3a3a3a     --body #444444         --muted #6f6f74
     --line #e8e8e8    --line-2 #d8d8dc       --plate #fefef4
   Families, section F of site.css:
     LTD #1058aa  LDR #4a3f9c  DPR #0d7a72  OJT #a76a06
   ===================================================================== */

.pf {
  --pf-field:      var(--field, #1058aa);
  --pf-field-deep: var(--field-deep, #0d4a90);
  --pf-accent:     var(--accent, #0094ff);
  --pf-ink:        var(--ink, #3a3a3a);
  --pf-body:       var(--body, #444444);
  --pf-muted:      var(--muted, #6f6f74);
  --pf-line:       var(--line, #e8e8e8);
  --pf-line-2:     var(--line-2, #d8d8dc);
  --pf-plate:      var(--plate, #fefef4);
  --pf-paper:      var(--paper, #ffffff);

  --pf-disp: var(--f-disp, 'Roboto Condensed', 'Arial Narrow', system-ui, sans-serif);
  --pf-body-f: var(--f-body, 'Arimo', Arial, Helvetica, sans-serif);
  --pf-nav:  var(--f-nav, 'Roboto', Arial, Helvetica, sans-serif);
  --pf-mono: var(--f-mono, ui-monospace, 'SF Mono', Menlo, Consolas, monospace);

  --c: var(--pf-field);

  font-family: var(--pf-body-f);
  color: var(--pf-body);
}

/* The four-track code. site.css already carries these under .site; they
   are repeated here so a prototype dropped on a page without the site
   chassis still colours its stages correctly. */
.pf[data-fam="LTD"], .pf [data-fam="LTD"] { --c: var(--f-ltd, #1058aa); }
.pf[data-fam="LDR"], .pf [data-fam="LDR"] { --c: var(--f-ldr, #4a3f9c); }
.pf[data-fam="DPR"], .pf [data-fam="DPR"] { --c: var(--f-dpr, #0d7a72); }
.pf[data-fam="OJT"], .pf [data-fam="OJT"] { --c: var(--f-ojt, #a76a06); }


/* ---------------------------------------------------------------------
   The opening of the component
   ------------------------------------------------------------------ */
.pf-head { max-width: 62ch; }
.pf-eyebrow {
  margin: 0;
  font: 11.5px/1.6 var(--pf-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pf-field);
}
.pf-head h2 {
  margin: 10px 0 0;
  font-family: var(--pf-disp);
  font-weight: 700;
  font-size: clamp(27px, 3.1vw, 42px);
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: var(--pf-ink);
  text-wrap: balance;
}
.pf-deck {
  margin: 14px 0 0;
  font-size: 16.5px;
  line-height: 1.62;
  color: var(--pf-body);
  text-wrap: pretty;
}
.pf-rule { display: block; width: 70px; height: 3px; margin-top: 18px; background: var(--pf-field); }


/* ---------------------------------------------------------------------
   The placeholder mark
   Copy nobody has approved is never allowed to look like copy somebody
   has. The brackets are drawn rather than typed so that a long
   placeholder wraps as a sentence and not as one unbreakable blob, and
   so the mark survives being copied into a document as plain text.
   ------------------------------------------------------------------ */
.pf-ph {
  background: #fff6d8;
  box-shadow: inset 0 -2px 0 #e6cf8f;
  color: #5c4708;
  padding: 0 2px;
}
.pf-ph::before { content: '[[ '; opacity: 0.55; }
.pf-ph::after  { content: ' ]]'; opacity: 0.55; }


/* ---------------------------------------------------------------------
   The body of a stage: lede, provenance line, course rows, actions
   ------------------------------------------------------------------ */
.pf-lede {
  margin: 0;
  font-size: 16.5px;
  line-height: 1.62;
  color: var(--pf-body);
  text-wrap: pretty;
}
.pf-src {
  margin: 10px 0 0;
  font: 11px/1.6 var(--pf-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pf-muted);
}
.pf-src span { color: var(--pf-field); }
.pf-note {
  margin: 16px 0 0;
  padding: 14px 16px;
  background: var(--pf-plate);
  border-left: 3px solid var(--c);
  font-size: 15px;
  line-height: 1.6;
  text-wrap: pretty;
}

.pf-courses { margin: 18px 0 0; padding: 0; list-style: none; }
.pf-course {
  display: grid;
  grid-template-columns: 84px 1fr auto;
  gap: 4px 14px;
  align-items: baseline;
  padding: 11px 0 11px 12px;
  border-top: 1px solid var(--pf-line);
  border-left: 3px solid var(--c);
}
.pf-course:last-child { border-bottom: 1px solid var(--pf-line); }
.pf-course-code {
  font: 11.5px/1.6 var(--pf-mono);
  letter-spacing: 0.06em;
  color: var(--c);
  white-space: nowrap;
}
.pf-course-title { font-size: 14.5px; line-height: 1.5; color: var(--pf-ink); text-wrap: pretty; }
.pf-course-dur {
  font: 11.5px/1.6 var(--pf-mono);
  letter-spacing: 0.04em;
  color: var(--pf-muted);
  white-space: nowrap;
}
@media (max-width: 620px) {
  .pf-course { grid-template-columns: 1fr; }
  .pf-course-dur { grid-column: 1; }
}

/* ---------------------------------------------------------------------
   Actions. The shape is the site's own .x-btn: a squared plate with the
   accent held under the label as a 4px rule, not a rounded pill.
   ------------------------------------------------------------------ */
.pf-acts { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 0; }
.pf-act {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 20px;
  background: transparent;
  border: 1px solid var(--pf-line-2);
  border-bottom: 4px solid var(--pf-line-2);
  color: var(--pf-ink);
  font-family: var(--pf-nav);
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}
.pf-act:hover { border-color: var(--pf-ink); border-bottom-color: var(--pf-accent); }
.pf-act-1 {
  background: var(--pf-field);
  border-color: var(--pf-field);
  border-bottom-color: var(--pf-accent);
  color: #fff;
}
.pf-act-1:hover { background: var(--pf-field-deep); border-color: var(--pf-field-deep); border-bottom-color: var(--pf-accent); }
.pf-act:focus-visible { outline: 2px solid var(--pf-field); outline-offset: 3px; }


/* ---------------------------------------------------------------------
   The tooltip. One rule, four prototypes. It is a description and not a
   control: it never holds a link, it is wired with aria-describedby so
   a screen reader gets the same sentence, and it is suppressed on
   coarse pointers where there is no hover to speak of.
   ------------------------------------------------------------------ */
.pf-tip-float {
  position: fixed;
  z-index: 60;
  left: 0;
  top: 0;
  max-width: 268px;
  padding: 9px 12px;
  background: #1a1b1f;
  color: #f4f4f5;
  font-family: var(--f-body, Arimo, Arial, sans-serif);
  font-size: 13px;
  line-height: 1.45;
  text-align: left;
  text-wrap: pretty;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(4px);
  transition: opacity 0.14s ease, transform 0.14s ease, visibility 0.14s;
}
.pf-tip-float.is-on { opacity: 1; visibility: visible; transform: none; }
.pf-tip-float::after {
  content: '';
  position: absolute;
  top: 100%;
  left: var(--nib, 50%);
  margin-left: -6px;
  border: 6px solid transparent;
  border-top-color: #1a1b1f;
}
.pf-tip-float.is-below::after {
  top: auto;
  bottom: 100%;
  border-top-color: transparent;
  border-bottom-color: #1a1b1f;
}

/* The same sentence, for a reader who is not looking at it. */
.pf-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}


/* ---------------------------------------------------------------------
   The connectors
   Drawn by flowchart-arcs.js, styled once here. Every prototype that
   joins one box to another uses this, so an arrow means the same thing
   and weighs the same amount in all six.
   ------------------------------------------------------------------ */
.pf-arcs { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: visible; }
.pf-arcs path {
  fill: none;
  stroke: var(--pf-line-2);
  stroke-width: 2.5;
  stroke-linecap: round;
  transition: stroke 0.22s ease, stroke-width 0.22s ease;
}
.pf-arcs path.is-lit { stroke: var(--pf-field); stroke-width: 3.5; }
.pf-arcs .pf-nib { fill: var(--pf-line-2); stroke: none; transition: fill 0.22s ease, opacity 0.3s ease; }
.pf-arcs .pf-nib.is-lit { fill: var(--pf-field); }
/* While the arrows are writing themselves on, the transition they need
   is the dash offset and not the stroke. The class comes back off when
   the animation is spent; see drawIn() in flowchart-arcs.js. */
.pf-arcs.is-drawing path { transition: stroke-dashoffset 0.62s cubic-bezier(0.4, 0, 0.2, 1); }
.pf-arcs.is-drawing .pf-nib { transition: opacity 0.3s ease; }


/* ---------------------------------------------------------------------
   Links
   The wires drawn by pfLinks(). Same weights and the same lit state as
   pfArcs, so an arrow means the same thing whichever kind it is.
   ------------------------------------------------------------------ */
.pf-wires { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: visible; }
.pf-wires path {
  fill: none;
  stroke: var(--pf-line-2);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke 0.22s ease, stroke-width 0.22s ease;
}
.pf-wires path.is-lit { stroke: var(--pf-field); stroke-width: 3; }
.pf-wires .pf-nib { fill: var(--pf-line-2); stroke: none; transition: fill 0.22s ease, opacity 0.3s ease; }
.pf-wires .pf-nib.is-lit { fill: var(--pf-field); }
.pf-wires.is-drawing path { transition: stroke-dashoffset 0.54s cubic-bezier(0.4, 0, 0.2, 1); }
.pf-wires.is-drawing .pf-nib { transition: opacity 0.28s ease; }

/* A wire that carries a family colour rather than the neutral one, for
   the diagrams where the track is coloured by what runs on it. */
.pf-wires path.pf-famwire { stroke: var(--c); stroke-opacity: 0.42; }
.pf-wires path.pf-famwire.is-lit { stroke: var(--c); stroke-opacity: 1; }
.pf-wires .pf-nib.pf-famwire { fill: var(--c); fill-opacity: 0.42; }
.pf-wires .pf-nib.pf-famwire.is-lit { fill: var(--c); fill-opacity: 1; }


/* ---------------------------------------------------------------------
   Rings
   The circle, the numeral, and the centre panel, shared by every
   prototype that stands something in the middle of a ring. Placement
   comes from pfPlaceRing() in flowchart-arcs.js, which writes --x and
   --y here and hands the measured middle to --mid-w and --mid-h.

   A prototype that wants a different circle overrides these in its own
   style block. What it should not do is re-derive the geometry.
   ------------------------------------------------------------------ */
.pf-ring-host { position: relative; width: 100%; }

.pf-ring-stage {
  position: absolute;
  z-index: 3;
  left: calc(50% + var(--x, 0px));
  top: calc(50% + var(--y, 0px));
  transform: translate(-50%, -50%);
  width: var(--node, clamp(120px, 13vw, 168px));
}

/* Flat: the ring is a column. The centre goes last because a centre
   with nothing around it is not a centre, it is a summary. */
.pf-ring-host.is-flat { height: auto; display: grid; gap: clamp(15px, 2.2vw, 22px); justify-items: center; }
.pf-ring-host.is-flat .pf-arcs,
.pf-ring-host.is-flat .pf-ring-art { display: none; }
.pf-ring-host.is-flat .pf-ring-stage { position: static; transform: none; width: min(100%, 420px); }
.pf-ring-host.is-flat .pf-centre { position: static; transform: none; width: 100%; max-height: none; order: 99; }

/* --- the circle ------------------------------------------------------- */
.pf-node-circle {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1;
  padding: 15px 14px 13px;
  border-radius: 50%;
  background: var(--pf-paper);
  border: 2.5px solid var(--pf-ink);
  font: inherit;
  color: inherit;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.22s cubic-bezier(0.22, 0.61, 0.36, 1), box-shadow 0.22s ease;
}
.pf-node-label {
  font-family: var(--pf-disp);
  font-weight: 700;
  font-size: clamp(11px, 0.98vw, 14px);
  line-height: 1.18;
  color: var(--pf-ink);
  text-wrap: balance;
  hyphens: auto;
}
.pf-node-num {
  position: absolute;
  top: -9px;
  left: 50%;
  transform: translateX(-50%);
  padding: 3px 9px;
  background: var(--pf-paper);
  font: 700 10.5px/1 var(--pf-mono);
  letter-spacing: 0.14em;
  color: var(--pf-muted);
  transition: color 0.2s ease;
}
.pf-node-circle:hover { border-color: var(--c); transform: scale(1.045); box-shadow: 0 12px 34px rgba(6, 20, 40, 0.14); }
.pf-node-circle:hover .pf-node-label { color: var(--c); }
.pf-node-circle:focus-visible { outline: 2px solid var(--pf-field); outline-offset: 5px; }
.pf-ring-stage.is-lit .pf-node-circle { border-color: var(--c); }
.pf-ring-stage.is-on .pf-node-circle { background: var(--c); border-color: var(--c); transform: scale(1.06); box-shadow: 0 14px 40px rgba(6, 20, 40, 0.2); }
.pf-ring-stage.is-on .pf-node-label { color: #fff; }
.pf-ring-stage.is-on .pf-node-num { color: var(--c); }

/* --- the centre ------------------------------------------------------
   Sized from the gap the ring left, never from the viewport. The
   scrollbar is the honest answer for a stage whose copy is longer than
   the hole in the middle of a ring; the prototypes that can put the
   long parts outside the ring do that instead.
   -------------------------------------------------------------------- */
.pf-centre {
  position: absolute;
  z-index: 1;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: var(--mid-w, 46%);
  max-height: var(--mid-h, 60%);
  overflow: auto;
  padding: clamp(18px, 2vw, 28px);
  background: var(--pf-plate);
  border-top: 3px solid var(--c);
  text-align: center;
}
.pf-centre-kicker { margin: 0; font: 700 11.5px/1.6 var(--pf-mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--c); }
.pf-centre h3 {
  margin: 10px 0 0;
  font-family: var(--pf-disp);
  font-weight: 700;
  font-size: clamp(19px, 2vw, 27px);
  line-height: 1.08;
  letter-spacing: -0.018em;
  color: var(--pf-ink);
  text-wrap: balance;
}
.pf-centre-sub { margin: 7px 0 13px; font-size: 13.5px; line-height: 1.42; color: var(--pf-muted); text-wrap: pretty; }
.pf-centre .pf-lede { font-size: 14.5px; text-align: left; }
.pf-centre .pf-src { text-align: left; }
.pf-centre .pf-acts { justify-content: center; }
.pf-centre .pf-act { min-height: 38px; padding: 0 15px; font-size: 11.5px; }
.pf-centre-idle { margin: 0; font-size: 13.5px; line-height: 1.55; color: var(--pf-muted); text-wrap: pretty; }

/* Everything a ring pushes outside itself, under the ring. */
.pf-outside { margin: clamp(26px, 3.2vw, 44px) 0 0; padding-top: clamp(22px, 2.6vw, 32px); border-top: 1px solid var(--pf-line); }
.pf-outside[hidden] { display: none; }
.pf-outside-t { margin: 0 0 4px; font: 11px/1.6 var(--pf-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--pf-muted); }

/* The track and the spokes, drawn by flowchart-arcs.js. */
.pf-ring-art { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.pf-ring-art ellipse, .pf-ring-art circle.pf-track { fill: none; stroke: var(--pf-line); stroke-width: 1.5; stroke-dasharray: 3 6; }
.pf-ring-art line { stroke: var(--pf-line-2); stroke-width: 2; transition: stroke 0.2s ease, stroke-width 0.2s ease; }
.pf-ring-art line.is-lit { stroke: var(--pf-field); stroke-width: 3; }


/* ---------------------------------------------------------------------
   The notice cards under the built diagram
   ------------------------------------------------------------------ */
.pf-notices {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(268px, 1fr));
  gap: clamp(14px, 1.8vw, 22px);
}
.pf-notice {
  padding: 18px 20px 20px;
  background: var(--pf-paper);
  border: 1px solid var(--pf-line-2);
  border-top: 3px solid var(--pf-field);
}
.pf-notice-kind {
  margin: 0;
  font: 11px/1.6 var(--pf-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pf-field);
}
.pf-notice-title {
  margin: 9px 0 0;
  font-family: var(--pf-disp);
  font-weight: 700;
  font-size: 19px;
  line-height: 1.14;
  letter-spacing: -0.012em;
  color: var(--pf-ink);
  text-wrap: balance;
}
.pf-notice-body { margin: 10px 0 0; font-size: 14px; line-height: 1.55; color: var(--pf-body); text-wrap: pretty; }
.pf-notice .pf-acts { margin-top: 16px; }
.pf-notice .pf-act { min-height: 38px; padding: 0 15px; font-size: 11.5px; }


/* ---------------------------------------------------------------------
   The link column beside the built diagram
   A destination with no page behind it is set as text with a rule
   through it, not as a link. Drawing it as a link that goes nowhere is
   the one thing a prototype of a navigation diagram must not do.
   ------------------------------------------------------------------ */
.pf-dests { margin: 0; padding: 0; list-style: none; }
.pf-dest { padding: 11px 0; border-top: 1px solid var(--pf-line); }
.pf-dest:last-child { border-bottom: 1px solid var(--pf-line); }
.pf-dest-link {
  display: block;
  font-family: var(--pf-disp);
  font-weight: 700;
  font-size: 18px;
  line-height: 1.2;
  color: var(--pf-field);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  width: fit-content;
}
a.pf-dest-link:hover { border-bottom-color: var(--pf-accent); }
a.pf-dest-link:focus-visible { outline: 2px solid var(--pf-field); outline-offset: 3px; }
.pf-dest-link.is-dead { color: var(--pf-muted); text-decoration: line-through; text-decoration-thickness: 1px; }
.pf-dest-note { display: block; margin-top: 4px; font-size: 12.5px; line-height: 1.5; color: var(--pf-muted); text-wrap: pretty; }


/* ---------------------------------------------------------------------
   The prototype shell
   NOT PART OF THE COMPONENT. The dark bar, the caption under the
   flowchart and the variation switcher exist so four files can be
   compared side by side; none of it travels with the flowchart into the
   site. It is deliberately black and set in the navigation face so it
   never reads as page furniture.
   ------------------------------------------------------------------ */
body.pf-page { margin: 0; background: #fff; }

.pf-shell {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 22px;
  padding: 12px clamp(16px, 3vw, 40px);
  background: #1a1b1f;
  color: #f4f4f5;
  font-family: var(--f-nav, 'Roboto', Arial, sans-serif);
}
.pf-shell-mark {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #8b8b90;
}
.pf-shell-mark b { color: #fff; font-weight: 700; }
.pf-shell-nav { display: flex; flex-wrap: wrap; gap: 4px; margin-left: auto; }
.pf-shell-nav a {
  padding: 7px 12px;
  color: #b9b9be;
  font-size: 12px;
  letter-spacing: 0.05em;
  text-decoration: none;
  border-bottom: 2px solid transparent;
}
.pf-shell-nav a:hover { color: #fff; }
.pf-shell-nav a[aria-current="page"] { color: #fff; border-bottom-color: var(--accent, #0094ff); }
.pf-shell-sep {
  align-self: center;
  padding: 0 4px 0 12px;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #6c6c72;
}
.pf-shell-nav a:focus-visible { outline: 2px solid var(--accent, #0094ff); outline-offset: 2px; }

.pf-wrap { max-width: 1420px; margin: 0 auto; padding: clamp(30px, 4.5vw, 62px) clamp(16px, 3vw, 48px) 0; }

.pf-legend {
  max-width: 1420px;
  margin: clamp(40px, 5vw, 72px) auto 0;
  padding: clamp(22px, 2.6vw, 32px) clamp(16px, 3vw, 48px) clamp(44px, 5vw, 76px);
  border-top: 1px solid var(--line, #e8e8e8);
  font-family: var(--f-body, Arimo, Arial, sans-serif);
}
.pf-legend h3 {
  margin: 0 0 12px;
  font-family: var(--f-disp, 'Roboto Condensed', sans-serif);
  font-size: 18px;
  font-weight: 700;
  color: var(--ink, #3a3a3a);
}
.pf-legend p { margin: 0 0 10px; max-width: 78ch; font-size: 14.5px; line-height: 1.62; color: var(--body, #444); text-wrap: pretty; }
.pf-legend p:last-child { margin-bottom: 0; }

/* ---------------------------------------------------------------------
   THE READING BOX. Built and driven by pfDialog() in flowchart-data.js.

   It is parked on <body>, outside every diagram, so it carries the .pf
   class itself: the tokens and the four-track colours are declared on
   .pf and it would inherit neither from the document root. Setting
   data-fam on the panel is what tints it, through the `.pf [data-fam]`
   rule at the top of this file.

   Two things move on the way in and they move together: the veil fades
   and the panel travels from the control that opened it, on a curve
   that overshoots slightly at the end. The travel comes in as a pair of
   custom properties written by the script, so the box grows out of the
   plate rather than out of the middle of the screen.

   The reduced-motion block at the foot of this file already flattens
   both, because it reaches every descendant of .pf.
   ------------------------------------------------------------------ */
html.pf-modal-lock { overflow: hidden; padding-right: var(--pf-bar, 0px); }

.pf-modal {
  position: fixed;
  z-index: 70;
  inset: 0;
  display: grid;
  place-items: center;
  padding: clamp(14px, 3vw, 44px);
}
.pf-modal[hidden] { display: none; }

.pf-modal-veil {
  position: absolute;
  inset: 0;
  background: rgba(14, 22, 36, 0.44);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity 0.26s ease;
}
.pf-modal.is-in .pf-modal-veil { opacity: 1; }

/* The panel is the plate at reading size: same paper, same ink border,
   same colour edge down its left side. */
.pf-modal-panel {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: min(700px, 100%);
  /* The height the padding around it leaves, so a short window centres
     the box instead of pushing its head off the top edge. */
  max-height: min(900px, calc(100vh - clamp(28px, 6vw, 88px)));
  max-height: min(900px, calc(100dvh - clamp(28px, 6vw, 88px)));
  background: var(--pf-paper);
  border: 1.5px solid var(--pf-ink);
  border-left: 5px solid var(--c);
  box-shadow: 8px 8px 0 rgba(16, 88, 170, 0.1), 0 34px 90px rgba(8, 18, 34, 0.3);
  opacity: 0;
  transform: translate(var(--pf-from-x, 0px), var(--pf-from-y, 0px)) scale(0.88);
  transition: opacity 0.22s ease, transform 0.32s cubic-bezier(0.2, 0.9, 0.28, 1);
}
.pf-modal.is-in .pf-modal-panel { opacity: 1; transform: none; }

.pf-modal-head {
  position: relative;
  flex: 0 0 auto;
  padding: clamp(20px, 2.6vw, 30px) 62px 15px clamp(20px, 3vw, 34px);
  border-bottom: 1px dashed var(--pf-line-2);
}
.pf-modal-kicker {
  margin: 0;
  font: 11px/1.6 var(--pf-mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c);
}
.pf-modal-kicker:empty { display: none; }
.pf-modal-head h3 {
  margin: 9px 0 0;
  font-family: var(--pf-disp);
  font-weight: 700;
  font-size: clamp(21px, 2.4vw, 30px);
  line-height: 1.08;
  letter-spacing: -0.018em;
  color: var(--pf-ink);
  text-wrap: balance;
}
.pf-modal-sub {
  margin: 9px 0 0;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--pf-muted);
  text-wrap: pretty;
}
.pf-modal-sub:empty { display: none; }

.pf-modal-body {
  flex: 1 1 auto;
  overflow: auto;
  overscroll-behavior: contain;
  padding: clamp(18px, 2.4vw, 26px) clamp(20px, 3vw, 34px) clamp(22px, 3vw, 32px);
}
.pf-modal-body .pf-courses { margin-top: 20px; }

/* 44px square, which is the floor for anything anyone has to hit. */
.pf-modal-x {
  position: absolute;
  z-index: 2;
  top: 7px;
  right: 7px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  background: none;
  border: 0;
  font: 400 27px/1 var(--pf-body-f);
  color: var(--pf-muted);
  cursor: pointer;
  transition: color 0.16s ease, background 0.16s ease;
}
.pf-modal-x:hover { color: var(--c); background: var(--pf-plate); }
.pf-modal-x:focus-visible { outline: 2px solid var(--pf-field); outline-offset: -3px; }

/* The one flourish: the head and the reading arrive a beat after the
   panel does, so the box reads as opening rather than as appearing. */
@keyframes pf-modal-rise {
  from { opacity: 0; transform: translateY(7px); }
  to   { opacity: 1; transform: none; }
}
.pf-modal.is-in .pf-modal-head > *,
.pf-modal.is-in .pf-modal-body {
  animation: pf-modal-rise 0.34s cubic-bezier(0.2, 0.8, 0.3, 1) backwards;
}
.pf-modal.is-in .pf-modal-kicker  { animation-delay: 0.08s; }
.pf-modal.is-in .pf-modal-head h3 { animation-delay: 0.12s; }
.pf-modal.is-in .pf-modal-sub     { animation-delay: 0.16s; }
.pf-modal.is-in .pf-modal-body    { animation-delay: 0.19s; }

/* Narrow: a sheet off the bottom edge rather than a box in the middle,
   because a centred box with 14px of air either side is just a worse
   full screen. */
@media (max-width: 620px) {
  .pf-modal { padding: 0; place-items: end stretch; }
  .pf-modal-panel {
    width: 100%;
    max-height: 90vh;
    max-height: 90dvh;
    border-left-width: 1.5px;
    border-top: 5px solid var(--c);
    border-bottom: 0;
    box-shadow: 0 -20px 60px rgba(8, 18, 34, 0.3);
  }
}


@media (prefers-reduced-motion: reduce) {
  .pf *, .pf *::before, .pf *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
