:root{
  --bg:#090f13;--panel:#111b20;--line:#22343c;
  --text:#d9e5e8;--muted:#81959d;--teal:#4fd1c4;
  --violet:#a98ce8;--gold:#e8b23c;
}
*{box-sizing:border-box}
body{
  margin:0;
  background:radial-gradient(circle at 75% 12%,#202044 0,#090f13 44%);
  color:var(--text);
  font-family:Arial,Helvetica,sans-serif;
  /* A column shell so the footer is pushed to the bottom of the viewport
     when the library is short, instead of parking under the last card. */
  min-height:100vh;
  display:flex;
  flex-direction:column;
}
#substrate{position:fixed;top:0;left:0;width:100%;height:100%;z-index:0;pointer-events:none;opacity:.85}
main{position:relative;z-index:1}

/* ── Site bar, identical language to the homepage and the engine ── */













/* Clamped: percentage padding resolves against the containing block, so 7%
   was 7% of the viewport while max-width held this at 1000px. On a wide
   monitor, or any monitor zoomed out, it ate the whole column from the
   inside. 70px is 7% of 1000, so nothing changes at ordinary widths. */
main{max-width:1000px;width:100%;margin:0 auto;
  padding:56px clamp(20px, 7%, 70px) 90px;flex:1 0 auto}
.eyebrow{color:var(--violet);font-family:monospace;letter-spacing:.18em;text-transform:uppercase;font-size:12px}
h1{font-size:clamp(34px,5.4vw,54px);line-height:1.02;margin:16px 0 14px}
.lede{color:var(--muted);line-height:1.7;max-width:64ch;margin:0}

/* ── Latest / Archives switch ── */
.switch{
  display:inline-flex;gap:4px;margin:38px 0 26px;padding:4px;
  border:1px solid var(--line);border-radius:6px;background:#0d151acc;
}
.switch button{
  border:0;background:transparent;color:var(--muted);cursor:pointer;
  padding:9px 18px;border-radius:4px;font-weight:bold;font-size:13.5px;
  letter-spacing:.03em;transition:background-color .22s ease,color .22s ease;
}
.switch button .count{font-family:monospace;font-size:11px;opacity:.75;margin-left:7px}
.switch button[aria-selected="true"]{background:var(--teal);color:#081012}
.switch button:not([aria-selected="true"]):hover{color:var(--text);background:#ffffff0d}

/* ── Release cards ── */
.release{
  border:1px solid var(--line);border-radius:8px;background:#111b20dd;
  padding:30px 30px 26px;
  transition:transform .3s cubic-bezier(.2,.7,.3,1),border-color .3s ease,box-shadow .3s ease;
}
.release + .release{margin-top:14px}
.release.is-current{
  background:linear-gradient(150deg,#13222add,#141126cc);
  box-shadow:0 0 60px -28px #745bd5aa;
}
@media (hover:hover){
  .release:hover{transform:translateY(-4px);border-color:#38606d;box-shadow:0 18px 38px -22px #000c}
}
.meta{display:flex;align-items:center;gap:12px;flex-wrap:wrap;font-family:monospace;font-size:11.5px;letter-spacing:.1em;text-transform:uppercase}
.tag{padding:3px 9px;border-radius:3px;border:1px solid var(--line);color:var(--muted)}
.tag.now{border-color:#2f6f66;color:var(--teal);background:#4fd1c41a}
/* ── A release in parts ──────────────────────────────────────────
   From v2.0 the framework is five PDFs, not one. Under the meta line a
   row of chips names the parts; the selected one decides everything
   below it: the version tag, the date, the page count, the title, the
   subtitle, the summary, the three file buttons and What changed. Chips
   are numbered so the reading order is visible. */
.parts{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}
.part{display:inline-flex;align-items:center;gap:7px;padding:7px 12px;border-radius:7px;
  border:1px solid var(--line);background:#0b1216;color:var(--muted);cursor:pointer;
  font-family:monospace;font-size:11px;letter-spacing:.08em;text-transform:uppercase;
  transition:color .18s ease,border-color .18s ease,background .18s ease}
.part b{font-weight:normal;color:#5d7079}
.part:hover{color:var(--text);border-color:#3a4f5a}
.part[aria-pressed="true"]{color:var(--teal);border-color:var(--teal);background:#0d1a1a}
.part[aria-pressed="true"] b{color:var(--teal)}
.release .partname{font-family:monospace;font-size:11px;letter-spacing:.12em;text-transform:uppercase;
  color:#5d7079;margin:14px 0 0}
@media(max-width:560px){ .part{padding:6px 9px;font-size:10px;letter-spacing:.05em} }
.release h2{margin:16px 0 6px;font-size:23px;line-height:1.25}
.release .sub{color:var(--muted);font-size:13.5px;line-height:1.6;margin:0 0 14px;max-width:62ch}
.release .summary{color:#9db0b8;font-size:14px;line-height:1.7;margin:0;max-width:66ch}
.actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:24px}
.button{
  display:inline-block;border:1px solid var(--teal);background:var(--teal);color:#081012;
  padding:11px 17px;border-radius:3px;font-weight:bold;text-decoration:none;cursor:pointer;
  font-size:14px;font-family:inherit;
  transition:transform .25s cubic-bezier(.2,.7,.3,1),box-shadow .25s ease,border-color .25s ease,color .25s ease;
}
.button.secondary{background:transparent;color:var(--text);border-color:var(--line)}
@media (hover:hover){
  .button:hover{transform:translateY(-2px);box-shadow:0 12px 26px -14px #4fd1c4aa}
  .button.secondary:hover{border-color:var(--teal);color:var(--teal)}
}
.button:focus-visible{outline:2px solid var(--teal);outline-offset:3px}

.empty{
  border:1px dashed #2c4049;border-radius:8px;padding:38px 30px;text-align:center;
  color:var(--muted);line-height:1.7;
}
.empty strong{display:block;color:var(--text);font-size:16px;margin-bottom:8px}

.permalink{
  margin-top:34px;padding-top:22px;border-top:1px solid var(--line);
  font-family:monospace;font-size:11.5px;color:#5d7079;line-height:1.8;
}
.permalink a{color:var(--muted)}









/* ── Liquid glass changelog ── */
.veil{
  position:fixed;inset:0;z-index:100;display:grid;place-items:center;padding:24px;
  background:rgba(4,8,11,.62);backdrop-filter:blur(3px);-webkit-backdrop-filter:blur(3px);
  opacity:0;transition:opacity .4s ease;
}
.veil[hidden]{display:none}
.veil.open{opacity:1}
.glass{
  position:relative;width:min(560px,100%);max-height:80vh;overflow-y:auto;
  padding:32px 30px 26px;border-radius:20px;
  background:linear-gradient(150deg,rgba(64,86,104,.34),rgba(24,30,48,.30));
  backdrop-filter:blur(26px) saturate(150%);-webkit-backdrop-filter:blur(26px) saturate(150%);
  border:1px solid rgba(190,215,230,.16);
  box-shadow:0 30px 70px -24px rgba(0,0,0,.85),
             inset 0 1px 0 rgba(255,255,255,.22),
             inset 0 -1px 0 rgba(0,0,0,.28);
  transform:translateY(14px) scale(.97);opacity:0;
  transition:transform .45s cubic-bezier(.2,.8,.3,1),opacity .45s ease;
}
.veil.open .glass{transform:none;opacity:1}
.glass h3{margin:10px 0 4px;font-size:19px}
.glass .when{font-family:monospace;font-size:11.5px;letter-spacing:.12em;text-transform:uppercase;color:var(--muted)}
.glass ul{margin:18px 0 0;padding-left:18px;color:#a9bcc4;font-size:13.5px;line-height:1.75}
.glass li{margin-bottom:11px}
.glass .close-row{margin-top:24px;display:flex;justify-content:flex-end}

@media(max-width:640px){
  main{padding:40px clamp(16px, 6%, 60px) 70px}
  .release{padding:24px 20px 22px}
  .switch{width:100%}
  .switch button{flex:1;padding:9px 10px;font-size:12.5px}
  
  
  
  
  
  
}
/* ── What the frame budget takes away ──────────────────────────────
   Set by script when the device shows it cannot hold the frame rate. The
   blurs go first: each is a full-screen composite every frame and among
   the most expensive things here, while being nearly invisible over a
   near-black background. */
.q1 .glass,.q1 .veil{
  backdrop-filter:none!important;
  -webkit-backdrop-filter:none!important;
}


@media (prefers-reduced-motion:reduce){
  *{animation:none!important;transition:none!important}
  .glass{transform:none}
  .release:hover{transform:none}
}

/* The mark that returns you to the homepage, in place of the old
   "← CAPM Laboratory" text link.

   Height-constrained with width:auto, so the file's own proportions decide
   the width. Swapping the artwork for one of a different shape needs no CSS
   change, which is the point of not fixing both.

   The width/height attributes on the tag are the file's real dimensions and
   reserve the space before it loads: without them the bar reflows the moment
   the image arrives, which is visible on a slow connection and is the kind of
   jump a masthead should never make.

   No filter and no opacity shift on hover. The mark is the site's name, and
   dimming it to indicate interactivity makes it look disabled instead. */





/* Four actions on a phone. Wrapped as a flex row they came out three-one,
   with the odd one stranded on a line of its own — so they are laid out as a
   grid of two, which is the only arrangement that reads as deliberate.

   The order is set here rather than in the markup because the DOM order has
   to serve the wide layout too, where the two ways of reading the paper come
   first and the two ways of taking it away follow. Classes rather than
   :nth-child: "What changed" is only rendered when a release has changes, so
   the positions shift and a positional selector would reorder the wrong
   buttons on the releases that have none. */
@media(max-width:640px){
  .actions{display:grid;grid-template-columns:1fr 1fr;gap:10px}
  .actions .button{width:100%;text-align:center;padding:13px 8px;font-size:13.5px}
  .act-read{order:1}
  .act-open{order:2}
  .act-changes{order:3}
  .act-download{order:4}
}
