/* Learning velocity score page and glossary (28 Nov 2026 rank-first build).
   Loaded only by /learning-velocity-score/ and /glossary/, on top of styles.css (.pm-lv template).
   Square corners, no pink text, 48px tap targets, nothing wider than the column at 320px.
   Design does the final pass. */

/* Worked examples: labelled, ink panel, hairline left rule (not pink text) */
.pm-lv__example {
  margin: 4px 0 8px;
  padding: 16px 20px 20px;
  background: var(--pm-ink-800);
  border: 1px solid var(--pm-ink-600);
  border-left: 2px solid var(--pm-paper);
  max-width: 66ch;
  box-sizing: border-box;
}
.pm-lv__example-label { margin: 0 0 8px; font-size: 12px; color: var(--pm-ink-300); }
.pm-lv__section .pm-lv__example p:not(.pm-lv__example-label) { margin: 0; color: var(--pm-paper); }

/* Plain formula line */
.pm-lv__section p.pm-lv__formula {
  font-family: var(--pm-font-mono);
  font-size: 18px;
  line-height: 1.5;
  color: var(--pm-paper);
  padding: 16px 20px;
  border: 1px solid var(--pm-ink-600);
  background: var(--pm-ink-800);
  overflow-wrap: anywhere;
}

/* Calculator: a paper panel on the ink page */
.pm-calc {
  background: var(--pm-paper);
  color: var(--pm-paper-ink);
  padding: 24px;
  max-width: 66ch;
  box-sizing: border-box;
  display: flex; flex-direction: column; gap: 16px;
}
.pm-calc__fields { display: grid; grid-template-columns: 1fr; gap: 16px; align-items: end; }
.pm-calc__field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.pm-calc__field label { font-size: 16px; font-weight: 600; line-height: 1.3; color: var(--pm-paper-ink); }
.pm-calc__field input {
  width: 100%; box-sizing: border-box; min-height: 48px;
  padding: 10px 14px;
  font-family: var(--pm-font-display); font-size: 18px; letter-spacing: -0.01em;
  color: var(--pm-paper-ink); background: var(--pm-white);
  border: 2px solid var(--pm-ink-500); border-radius: 0;
}
.pm-calc__field input:focus-visible { outline: 2px solid var(--pm-pink-500); outline-offset: 2px; border-color: var(--pm-paper-ink); }
.pm-calc__field input[aria-invalid="true"] { border-color: var(--pm-crit-500); }
.pm-calc .pm-calc__go { min-height: 48px; align-self: flex-start; justify-content: center; padding: 12px 24px; font-size: 17px; }
.pm-lv__section .pm-calc__result {
  margin: 0; min-height: 1.5em; max-width: none;
  font-family: var(--pm-font-display); font-size: 22px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.3;
  color: var(--pm-paper-ink);
}
.pm-lv__section .pm-calc__result[data-state="error"] { font-size: 16px; font-weight: 600; letter-spacing: 0; color: #9B1C0B; }
.pm-lv__section .pm-calc__note { margin: 0; max-width: none; font-size: 16px; line-height: 1.5; color: #3b3b48; }
@media (min-width: 700px) {
  .pm-calc { padding: 32px; }
  .pm-calc__fields { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 699px) {
  .pm-calc .pm-calc__go { align-self: stretch; }
  .pm-lv__example { padding: 14px 16px 16px; }
}

/* Glossary entries */
.pm-gl .pm-gl__entry {
  margin-top: 0; padding-top: 24px; margin-bottom: 0;
  border-top: 1px solid rgba(255,255,255,0.12);
  display: flex; flex-direction: column; gap: 12px;
  scroll-margin-top: 24px;
}
.pm-gl .pm-gl__entry:first-of-type { margin-top: 32px; }
.pm-gl .pm-gl__entry + .pm-gl__entry { margin-top: 32px; }
.pm-gl .pm-gl__entry h2 {
  font-family: var(--pm-font-display);
  font-size: clamp(22px, 3vw, 28px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.2;
  margin: 0; color: #fff; text-wrap: balance;
}
.pm-gl .pm-gl__entry p { margin: 0; max-width: 66ch; font-size: var(--pm-fs-body); line-height: 1.6; color: var(--pm-ink-200); text-wrap: pretty; }
.pm-gl__links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0; }
.pm-gl__links li { margin: 0; max-width: 66ch; font-size: 16px; line-height: 1.5; color: var(--pm-ink-200); }
.pm-gl__links .pm-gl__k { display: inline-block; min-width: 9ch; margin-right: 8px; font-size: 12px; color: var(--pm-ink-300); }
.pm-gl__links .pm-doc__link { display: inline-block; padding: 12px 0; }
@media (max-width: 699px) {
  .pm-gl .pm-gl__entry p { font-size: 16px; }
  .pm-gl__links .pm-gl__k { display: block; min-width: 0; margin: 8px 0 0; }
  .pm-gl__links .pm-doc__link { padding: 8px 0 12px; }
}

/* Design fix 1 (28 Nov 2026, VERDICT.md on 17e1541): the trade mark in the calculator note was pink on paper, 3.43:1.
   It takes the text colour, as on the home (9.96:1). */
.pm-calc sup.pm-tm { color: inherit; }
