/* Barry Harris: the method. Record-sleeve design: five part inks on sleeve board, Archivo for structure, Bodoni italic for Barry's own words.
   Six inks, printed like a two-colour sleeve: Paper, Black and four spot colours.
   Colour belongs to the method only: each of the five parts owns one ink,
   and every stage of that part is printed on that ink. */

/* Design tokens (inks, type, spacing) are in tokens.css. */

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 var(--t-m)/1.6 var(--sans);
  
  font-feature-settings: "tnum" 0;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3, h4, .cover__title, .intro__title { text-wrap: balance; }   /* even line breaks in headlines */
p, li, figcaption { text-wrap: pretty; }                               /* no lonely last words */
h1, h2, h3, h4 { margin: 0; font-weight: 700; }
ol, ul { margin: 0; padding: 0; list-style: none; }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.wrap { max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.num { font-variant-numeric: tabular-nums; }

/* in-text links: black type, underlined in the ink of the page */
.link, .prose a {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  text-decoration-color: var(--accent, var(--ink));
}
.link:hover, .prose a:hover { text-decoration-thickness: 4px; }

/* ---------- part and stage inks ---------- */
.p-1 { --field: var(--chrome);    --fig: var(--black); --num: var(--black); --accent: var(--chrome);    --accent-text: var(--chrome-text); }
.p-2 { --field: var(--vermilion); --fig: var(--paper); --num: var(--paper); --accent: var(--vermilion); --accent-text: var(--vermilion-text); }
.p-3 { --field: var(--cobalt);    --fig: var(--paper); --num: var(--paper); --accent: var(--cobalt);    --accent-text: var(--cobalt-text); }
.p-4 { --field: var(--viridian);  --fig: var(--paper); --num: var(--paper); --accent: var(--viridian);  --accent-text: var(--viridian-text); }
.p-5 { --field: var(--black);     --fig: var(--paper); --num: var(--paper); --accent: var(--ink);       --accent-text: var(--ink); }
/* within a part, the figure alternates so neighbouring sleeves differ */
.fig-paper { --fig: var(--paper); }
.fig-black { --fig: var(--black); }

/* ---------- masthead ---------- */
.mast {
  display: flex; align-items: center; gap: 40px;
  height: 76px;
}
.mast__mark { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.series {           /* the five part inks as one catalogue mark */
  display: grid; grid-template-columns: repeat(5, 5px); height: 26px;
}
.series i { display: block; }
.series i:nth-child(1) { background: var(--chrome); }
.series i:nth-child(2) { background: var(--vermilion); }
.series i:nth-child(3) { background: var(--cobalt); }
.series i:nth-child(4) { background: var(--viridian); }
.series i:nth-child(5) { background: var(--ink); }
.mast__name {
  font-weight: 500; font-family: var(--font-heading); font-size: 26px; line-height: 1; letter-spacing: -.005em;
}
.mast__sub { font-weight: 400; font-family: var(--font-heading); font-size: 26px; line-height: 1; color: var(--grey); }
.mast__nav { display: flex; gap: 28px; font-size: 15px; font-weight: 600; }
.mast__nav a { text-decoration: none; padding: 6px 0; border-bottom: 3px solid transparent; }
.mast__nav a[aria-current="page"] { border-bottom-color: var(--ink); }
.mast__nav a:hover { border-bottom-color: var(--rule); }
.mast__search {
  display: flex; align-items: center; gap: 10px;
  width: 280px; height: 42px; padding: 0 14px;
  background: var(--panel);
}
.mast__search svg { width: 18px; height: 18px; flex: none; }
.mast__search input {
  border: 0; background: transparent; width: 100%; font-size: 15px; outline: none;
}
.mast__search input::placeholder { color: var(--grey); }
.mast__search:focus-within { outline: 2px solid var(--focus); }

/* ---------- section headings ---------- */
.h-section {
  font-size: var(--t-3xl); font-stretch: var(--narrow); line-height: 1; letter-spacing: -.01em;
}
.h-sub {
  font-size: var(--t-xl); font-family: var(--font-heading); line-height: 1.1;
}
.lede { font-size: var(--t-l); line-height: 1.5; max-width: 34em; }
.muted { color: var(--grey); }

/* ---------- the three voices ---------- */
/* 1. Barry, on the record: Bodoni italic, the disc mark, the time */
.barry {
  margin: 0;
  font-family: var(--barry); font-style: italic; font-weight: 500;
  font-optical-sizing: auto;
  font-size: 25px; line-height: 1.32; letter-spacing: -.005em;
}
.barry p::before { content: "\201C"; }
.barry p::after { content: "\201D"; }
.disc {     /* a record seen from above */
  width: 18px; height: 18px; flex: none;
  border-radius: 50%;
  background: radial-gradient(circle, var(--bg) 0 2px, var(--accent, var(--ink)) 2.5px 4.5px, var(--ink) 5px);
}
.cite {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-top: 12px; font-size: var(--t-s); color: var(--grey);
}
.cite b { color: var(--ink); font-weight: 600; }

/* 2. our notes: plain Archivo roman, nothing else. */
.prose { max-width: 38em; }
.prose p + p { margin-top: 1em; }

/* 3. other teachers: bylined, narrower face, on a panel */
.others {
  background: var(--panel);
  padding: 32px 36px 36px;
  
}
.others__intro { font-size: var(--t-s); color: var(--grey); max-width: 36em; }
.byline { font-weight: 700; font-size: var(--t-s); }
.byline span { font-weight: 400; color: var(--grey); }

/* ---------- play buttons ---------- */
.play {
  --size: 34px;
  display: inline-grid; place-items: center; flex: none;
  width: var(--size); height: var(--size); border-radius: 50%;
  background: var(--field, var(--ink)); color: var(--fig, var(--bg));
  border: 0; cursor: pointer;
}
.play::before {
  content: ""; width: 0; height: 0; margin-left: calc(var(--size) * .08);
  border-style: solid;
  border-width: calc(var(--size) * .17) 0 calc(var(--size) * .17) calc(var(--size) * .28);
  border-color: transparent transparent transparent currentColor;
}

/* ---------- sleeves ---------- */
.sleeve { display: block; text-decoration: none; color: var(--ink); }
.sleeve__art {
  position: relative; display: block; aspect-ratio: 1 / 1;
  background: var(--field); color: var(--fig);
  overflow: hidden;
  transition: transform .18s ease;
}
.sleeve__art svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.sleeve__no {
  position: absolute; left: 9%; top: 6%;
  font-weight: 500; font-family: var(--font-heading); line-height: .8; letter-spacing: -.02em;
  font-size: 4.6em; color: var(--num);
}
.sleeve__title {
  display: block; margin-top: 14px;
  font-weight: 700; font-size: 17px; line-height: 1.25;
}
.sleeve__count { display: block; margin-top: 4px; font-size: var(--t-xs); color: var(--grey); }
.sleeve:hover .sleeve__art { transform: translateY(-6px); }
.sleeve:hover .sleeve__title { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; text-decoration-color: var(--field); }

/* chips: a concept number printed in its part ink */
.chip {
  display: inline-block; min-width: 38px; padding: 3px 6px 2px;
  background: var(--field); color: var(--num);
  font-weight: 700; font-size: var(--t-xs); line-height: 1.3; text-align: center;
  font-variant-numeric: tabular-nums; text-decoration: none;
}
.chip:hover { outline: 1.5px solid var(--accent-line); outline-offset: 1px; }

/* ---------- footer ---------- */
.foot {
  margin-top: var(--s-9); padding: var(--s-7) 0 var(--s-8);
  border-top: 1px solid var(--rule);
  display: grid; grid-template-columns: minmax(0, 1.7fr) repeat(3, minmax(0, 1fr)); gap: var(--s-7) var(--s-6);
  font-size: var(--t-s); color: var(--grey); line-height: 1.5;
}
.foot p { max-width: 36em; }
.foot a { color: var(--ink); text-decoration: none; }
.foot a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.foot__brand { display: grid; gap: var(--s-3); justify-items: start; }
.foot__name { font-weight: 500; font-family: var(--font-heading); font-size: var(--t-l); line-height: 1.05; color: var(--ink); }
.foot__name span { font-weight: 400; color: var(--grey); }
.foot__col h2 { font-size: var(--t-s); font-weight: 700; color: var(--ink); margin-bottom: var(--s-2); }
.foot__col li a { display: block; padding: 6px 0; }
.foot__base {
  grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center;
  gap: var(--s-4) var(--s-6); padding-top: var(--s-5); border-top: 1px solid var(--rule); font-size: var(--t-xs);
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* =========================================================
   HOME
   ========================================================= */
.intro {
  display: grid; grid-template-columns: 7fr 5fr; gap: 44px 72px;
  padding: 64px 0 104px;
}
.intro__title span { display: block; }
.intro__title {
  grid-column: 1 / -1;
  font-size: 112px; font-family: var(--font-heading); line-height: .9; letter-spacing: -.018em;
  font-weight: 500; max-width: 12em;
}
.entries { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 44px; }
.entry {
  display: grid; grid-template-columns: 76px 1fr; gap: 16px; align-items: start;
  text-decoration: none; padding: 16px 16px 18px 16px;
  border: 1.5px solid var(--accent-line);
}
.entry:hover { background: var(--panel); }
.entry .sleeve__art { font-size: 12px; }
.entry .sleeve__no { font-size: 3.2em; }
.entry__go { font-weight: 500; font-family: var(--font-heading); font-size: var(--t-l); line-height: 1.1; }
.entry__what { margin-top: 6px; font-size: var(--t-s); line-height: 1.45; color: var(--grey); }
.resume { margin-top: 22px; font-size: var(--t-s); color: var(--grey); }
.resume a { color: var(--ink); font-weight: 600; }

.onrecord { align-self: start; padding-top: 4px; }
.onrecord .barry { font-size: 40px; line-height: 1.18; }
.onrecord .cite { margin-top: 22px; }

.method { border-top: 1px solid var(--rule); padding-top: 36px; }
.method__head { display: grid; grid-template-columns: 7fr 5fr; gap: 72px; align-items: end; margin-bottom: 56px; }
.method__head p { font-size: var(--t-m); color: var(--grey); max-width: 30em; }

.part {
  display: grid; grid-template-columns: 232px 1fr; gap: 32px;
  padding: 32px 0 44px;
  border-top: 1px solid var(--rule);
}
.part__head { padding-top: 2px; }
.part__swatch { display: block; width: 40px; height: 10px; background: var(--field); margin-bottom: 14px; }
.part__name { font-size: var(--t-xl); font-family: var(--font-heading); line-height: 1.05; }
.part__range { margin-top: 6px; font-size: var(--t-xs); color: var(--grey); font-weight: 600; }
.part__about { margin-top: 12px; font-size: var(--t-s); line-height: 1.5; color: var(--grey); }
.shelf { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.shelf .sleeve { font-size: 14px; }

.inside {
  grid-column: span 2;
  border-top: 3px solid var(--field);
  padding-top: 14px;
}
.inside h4 { font-size: var(--t-l); font-family: var(--font-heading); line-height: 1.1; }
.inside p { font-size: var(--t-s); color: var(--grey); margin-top: 4px; }
.inside ol { margin-top: 14px; }
.inside li a {
  display: grid; grid-template-columns: 40px 1fr; gap: 8px;
  padding: 5px 0; border-top: 1px solid var(--rule);
  text-decoration: none; font-size: var(--t-s); line-height: 1.35;
}
.inside li a:hover span:last-child { text-decoration: underline; text-decoration-color: var(--field); text-decoration-thickness: 2px; }
.inside li b { font-weight: 700; font-variant-numeric: tabular-nums; }
.inside li.is-last a span:last-child::after {
  content: "Last read"; margin-left: 8px; padding: 1px 6px;
  font-size: 12px; font-weight: 700; background: var(--ink); color: var(--bg);
}

.shelfquote { margin: 0; padding: 8px 0 0 8px; align-self: start; }
.shelfquote .barry { font-size: 27px; line-height: 1.25; max-width: 15em; }
.shelfquote .play { --size: 28px; }

.more { display: grid; grid-template-columns: 7fr 5fr; gap: 72px; margin-top: 96px; }
.more h2 { font-size: var(--t-2xl); font-family: var(--font-heading); line-height: 1; }
.more p { margin-top: 14px; color: var(--grey); max-width: 32em; }
.places { margin-top: 24px; columns: 2; column-gap: 32px; }
.places li { break-inside: avoid; border-top: 1px solid var(--rule); }
.places a { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; text-decoration: none; font-weight: 600; }
.places a:hover { text-decoration: underline; }
.places span { font-weight: 400; color: var(--grey); font-variant-numeric: tabular-nums; }
.bigsearch {
  display: flex; align-items: center; gap: 14px; margin-top: 24px;
  border-bottom: 2px solid var(--accent-line); padding: 8px 0 10px;
}
.bigsearch svg { width: 26px; height: 26px; flex: none; }
.bigsearch input { border: 0; background: transparent; width: 100%; font-size: var(--t-l); outline: none; }
.bigsearch input::placeholder { color: var(--grey); }
.tries { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: var(--t-s); }
.tries span { color: var(--grey); }

/* =========================================================
   CONCEPT
   ========================================================= */
.cover { background: var(--field); color: var(--num, var(--black)); }   /* the part's own ink: black on yellow and red, paper on blue, green and black */
.cover__inner { padding-top: 28px; padding-bottom: 44px; }
.cover__top { display: flex; align-items: center; gap: 24px; font-size: var(--t-s); font-weight: 600; }
.cover__top a { text-decoration: none; }
.cover__top a:hover { text-decoration: underline; text-decoration-thickness: 2px; }
.tracks { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.tracks span { margin-right: 8px; font-weight: 600; }
.tracks a {
  display: grid; place-items: center; width: 30px; height: 30px;
  border: 2px solid var(--num, var(--black)); font-size: 12px; font-weight: 700; text-decoration: none;
  font-variant-numeric: tabular-nums;
}
.tracks a[aria-current="page"] { background: var(--num, var(--black)); color: var(--field); }
.tracks a:hover { background: color-mix(in srgb, var(--num, var(--black)) 15%, transparent); }
.cover__body {
  display: grid; grid-template-columns: auto 1fr 200px; gap: 48px; align-items: end;
  margin-top: 56px;
}
.cover__no {
  font-weight: 500; font-family: var(--font-heading); font-size: 232px; line-height: .74; letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
}
.cover__title {
  font-size: 58px; font-family: var(--font-heading); line-height: .98; letter-spacing: -.01em; max-width: 15em;
}
.cover__sum { margin-top: 18px; font-size: var(--t-l); line-height: 1.45; max-width: 31em; }
.cover__art { width: 200px; height: 200px; color: var(--num, var(--black)); }

.page {
  display: grid; grid-template-columns: 220px minmax(0, 1fr) 256px; gap: 56px;
  padding-top: 56px;
}
.rail { position: sticky; top: 24px; align-self: start; font-size: var(--t-s); }
.rail__h { font-weight: 500; font-family: var(--font-heading); font-size: var(--t-l); line-height: 1.1; }
.rail__h small { display: block; font-size: var(--t-xs); font-weight: 600; color: var(--grey);  margin-bottom: 4px; }
.stagelist { margin-top: 16px; }
.stagelist a {
  display: grid; grid-template-columns: 34px 1fr; gap: 6px;
  padding: 7px 0; border-top: 1px solid var(--rule);
  text-decoration: none; line-height: 1.35; color: var(--grey);
}
.stagelist b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.stagelist a:hover { color: var(--ink); }
.stagelist a[aria-current="page"] { color: var(--ink); font-weight: 700; position: relative; }
.stagelist a[aria-current="page"]::before {
  content: ""; position: absolute; left: -18px; top: 13px; width: 10px; height: 10px; background: var(--field);
}

.main > section { margin-top: 72px; }
.main > section:first-child, .main > .key--inline + section { margin-top: 0; }
.main h2 { font-size: var(--t-2xl); font-family: var(--font-heading); line-height: 1; letter-spacing: -.005em; }
.main h2 + .sub { margin-top: 10px; font-size: var(--t-s); color: var(--grey); max-width: 40em; }
.plain { font-size: var(--t-l); line-height: 1.55; }

.key { display: grid; gap: 14px; }
.key__item { display: grid; grid-template-columns: 26px 1fr; gap: 10px; align-items: start; font-size: var(--t-xs); line-height: 1.45; color: var(--grey); }
.key__item b { display: block; color: var(--ink); font-size: var(--t-s); }
.key__barry b { font-family: var(--barry); font-style: italic; font-weight: 500; font-size: 18px; }
.key__ours b { font-weight: 600; }
.key__others b {  font-weight: 700; }
.key__mark { width: 22px; height: 22px; margin-top: 2px; }
.mark-ours { width: 22px; height: 22px; border: 1.5px solid var(--accent-line); display: grid; place-items: center; font-size: 12px; font-weight: 700; }
.mark-others { width: 22px; height: 22px; background: var(--panel); border: 1px solid var(--rule); display: grid; place-items: center; font-size: 12px; font-weight: 700;  }
.key--inline { display: none; }

.meta { margin-top: 40px; display: grid; gap: 28px; }
.meta h3 { font-size: var(--t-s); font-weight: 700; }
.meta ul { margin-top: 8px; }
.meta li { padding: 6px 0; border-top: 1px solid var(--rule); font-size: var(--t-s); line-height: 1.4; }
.meta li a { text-decoration: none; }
.meta li a:hover { text-decoration: underline; }
.terms li { font-family: var(--barry); font-style: italic; font-size: 17px; }

.moments { margin-top: 20px; }
.moment {
  display: grid; grid-template-columns: 92px 1fr; gap: 20px;
  padding: 26px 0; border-top: 1px solid var(--rule);
}
.moment__play { display: flex; align-items: center; gap: 10px; text-decoration: none; align-self: start; padding-top: 2px; }
.moment__play .play { --size: 34px; }
.moment__time { font-weight: 700; font-size: var(--t-s); font-variant-numeric: tabular-nums; }
.moment__gloss { margin-top: 10px; font-size: var(--t-s); color: var(--grey); }
.moment__gloss b { color: var(--ink); font-weight: 600; }
.moment.is-feature .barry { font-size: 30px; }
.moments__h { margin-top: 40px; font-size: var(--t-l); font-family: var(--font-heading); line-height: 1.1; }
.moments__h + .moments { margin-top: 12px; }

/* lesson points */
.points { margin-top: 24px; counter-reset: pt; }
.point { display: grid; grid-template-columns: 92px 1fr; gap: 20px; padding: 22px 0; border-top: 1px solid var(--rule); }
.point__kind { font-size: var(--t-xs); font-weight: 700; padding-top: 4px; display: flex; gap: 8px; align-items: center; align-self: start; }
.point__kind i { width: 10px; height: 10px; background: var(--field); display: inline-block; }
.point__kind.is-idea i { background: none; border: 1.5px solid var(--accent-line); }
.point__src { margin-top: 10px; font-size: var(--t-s); color: var(--grey); }
.point__src a { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 3px; }

/* other teachers */
.teachers { margin-top: 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 28px 36px; }
.teacher p:last-child { margin-top: 6px; font-size: var(--t-m); line-height: 1.5; }
.teacher .access { margin-top: 8px; font-size: var(--t-xs); color: var(--grey); }
.alsovideo { margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--rule); font-size: var(--t-s); }
.alsovideo h3 { font-size: var(--t-s); font-weight: 700; }
.alsovideo ul { margin-top: 8px; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 36px; }
.alsovideo li { display: flex; gap: 10px; align-items: baseline; }
.alsovideo li span { color: var(--grey); }

/* reading list */
.reading { margin-top: 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 36px; }
.reading h3 { font-size: var(--t-s); font-weight: 700; padding-bottom: 8px; border-bottom: 2px solid var(--accent-line); }
.reading li { padding: 14px 0; border-bottom: 1px solid var(--rule); }
.reading li a { font-weight: 600; line-height: 1.35; display: block; }
.reading li p { margin-top: 4px; font-size: var(--t-s); color: var(--grey); line-height: 1.45; }

/* previous / next */
.prevnext { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin-top: 112px; border-top: 1px solid var(--rule); }
.pn { display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: start; padding: 28px 0 8px; text-decoration: none; }
.pn + .pn { padding-left: 40px; border-left: 1px solid var(--rule); }
.pn__no { font-weight: 500; font-family: var(--font-heading); font-size: 96px; line-height: .78; font-variant-numeric: tabular-nums; }
.pn__dir { font-size: var(--t-s); color: var(--grey); font-weight: 600; }
.pn__title { margin-top: 4px; font-weight: 500; font-family: var(--font-heading); font-size: var(--t-xl); line-height: 1.1; }
.pn:hover .pn__title { text-decoration: underline; text-decoration-thickness: 3px; text-decoration-color: var(--accent); }
.pn--next .pn__no { color: var(--accent-text, var(--accent)); }

/* =========================================================
   CLASSES
   ========================================================= */
.libhead { display: grid; grid-template-columns: 7fr 5fr; gap: 72px; align-items: end; padding: 64px 0 40px; }
.libhead h1 { font-size: var(--t-5xl); font-family: var(--font-heading); line-height: .92; letter-spacing: -.015em; }
.libhead .lede { margin-top: 24px; }
.filters { display: grid; gap: 16px; justify-items: start; }
.seg { display: inline-flex; border: 1.5px solid var(--accent-line); }
.seg button { border: 0; background: none; padding: 9px 14px; font-size: var(--t-s); font-weight: 600; cursor: pointer; }
.seg button + button { border-left: 1.5px solid var(--accent-line); }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.toggle { display: inline-flex; gap: 10px; align-items: center; font-size: var(--t-s); }
.toggle input { width: 18px; height: 18px; accent-color: var(--ink); }
.libsearch { display: flex; align-items: center; gap: 10px; width: 100%; max-width: 420px; border-bottom: 2px solid var(--accent-line); padding: 6px 0 8px; }
.libsearch svg { width: 20px; height: 20px; flex: none; }
.libsearch input { border: 0; background: transparent; width: 100%; font-size: var(--t-m); outline: none; }
.libsearch input::placeholder { color: var(--grey); }

.when { border-top: 1px solid var(--rule); padding-top: 22px; }
.when__head { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; }
.when__head h2 { font-size: var(--t-xl); font-family: var(--font-heading); }
.when__head p { font-size: var(--t-s); color: var(--grey); }
.lanes { margin-top: 18px; }
.lane { display: grid; grid-template-columns: 220px 1fr; align-items: center; height: 26px; text-decoration: none; font-size: var(--t-s); }
.lane:hover .lane__name { text-decoration: underline; }
.lane__name { font-weight: 600; white-space: nowrap; }
.lane__name span { font-weight: 400; color: var(--grey); }
.lane__axis { position: relative; height: 100%; }
.lane__axis::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--rule); }
.lane__bar { position: absolute; top: 50%; transform: translateY(-50%); background: var(--ink); min-width: 6px; }
.years { display: grid; grid-template-columns: 220px 1fr; margin-top: 8px; font-size: var(--t-xs); color: var(--grey); }
.years__axis { position: relative; height: 18px; }
.years__axis span { position: absolute; transform: translateX(-50%); font-variant-numeric: tabular-nums; }

.lib { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 56px; margin-top: 72px; }
.libindex { position: sticky; top: 24px; align-self: start; font-size: var(--t-s); }
.libindex h2 { font-size: var(--t-s); font-weight: 700; margin-bottom: 8px; }
.libindex a { display: grid; grid-template-columns: 1fr auto; gap: 8px; padding: 7px 0; border-top: 1px solid var(--rule); text-decoration: none; }
.libindex a span { color: var(--grey); font-variant-numeric: tabular-nums; }
.libindex a:hover { text-decoration: underline; }
.libindex a[aria-current="true"] { font-weight: 700; }
.libindex a[aria-current="true"] span { color: var(--ink); }

.event + .event { margin-top: 88px; }
.event__head { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; align-items: end; padding-bottom: 20px; border-bottom: 2px solid var(--accent-line); }
.event__place { font-size: var(--t-4xl); font-family: var(--font-heading); line-height: .9; letter-spacing: -.012em; font-weight: 500; }
.event__place span { color: var(--grey); font-weight: 500; }
.event__what { margin-top: 14px; font-size: var(--t-m); max-width: 36em; }
.event__count { font-size: var(--t-s); color: var(--grey); text-align: right; }
.event__count b { display: block; color: var(--ink); font-weight: 500; font-family: var(--font-heading); font-size: var(--t-xl); line-height: 1.1; }

.recs li { border-bottom: 1px solid var(--rule); }
.rec { display: grid; grid-template-columns: 40px minmax(0, 1fr) 236px 92px; gap: 20px; align-items: start; padding: 16px 0; }
.rec .play { --size: 30px; margin-top: 2px; background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--rule); transition: background .15s, color .15s; }
.rec:hover .play, .rec .play:focus-visible { background: var(--ink); color: var(--bg); box-shadow: none; }
.rec__title { display: block; font-weight: 700; font-size: 19px; line-height: 1.3; text-decoration: none; }
.rec__title:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.rec__desc { margin-top: 4px; font-size: var(--t-s); line-height: 1.45; color: var(--grey); max-width: 40em; }
.rec__topics { display: flex; flex-wrap: wrap; gap: 5px; padding-top: 3px; }
.rec__topics .more-chip { font-size: var(--t-xs); color: var(--grey); padding: 3px 2px; }
.rec__len { text-align: right; font-size: var(--t-s); line-height: 1.3; }
.rec__len b { display: block; font-weight: 700; font-variant-numeric: tabular-nums; }
.rec__len span { font-size: var(--t-xs); color: var(--grey); }
.rec__series { font-weight: 500; font-family: var(--font-heading); font-size: var(--t-l); line-height: 1.3; font-variant-numeric: tabular-nums; }
.event__more { display: inline-block; margin-top: 18px; font-weight: 600; font-size: var(--t-s); }
.event--compact .event__place { font-size: var(--t-3xl); }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1180px) {
  :root { --gutter: 40px; }
  .page { grid-template-columns: 200px minmax(0, 1fr); }
  .page > .side { grid-column: 2; }
  .side { position: static; }
  .cover__body { grid-template-columns: auto 1fr; }
  .cover__art { display: none; }
  .rec { grid-template-columns: 36px minmax(0, 1fr) 84px; }
  .rec__topics { grid-column: 2; grid-row: 2; }
  .rec__len { grid-column: 3; grid-row: 1; }
}

@media (max-width: 900px) {
  :root { --gutter: 24px; }
  .mast { gap: 20px; }
  .mast__search { width: 200px; }
  .intro, .method__head, .more, .libhead { grid-template-columns: 1fr; gap: 40px; }
  .part { grid-template-columns: 1fr; gap: 20px; }
  .shelf { grid-template-columns: repeat(3, 1fr); }
  .page { grid-template-columns: 1fr; gap: 0; }
  .page > .rail--stage { display: none; }
  .page > .side { grid-column: 1; margin-top: 72px; }
  .lib { grid-template-columns: 1fr; }
  .libindex { display: none; }
}

@media (max-width: 600px) {
  :root { --gutter: 16px; --t-5xl: 54px; --t-4xl: 46px; --t-3xl: 38px; --t-2xl: 30px; }
  body { font-size: 17px; }
  .mast { height: auto; flex-wrap: wrap; padding: 14px 0 12px; gap: 12px 18px; }
  .mast__mark { margin-right: auto; }
  .mast__name, .mast__sub { font-size: 22px; }
  .mast__sub { display: none; }
  .mast__nav { gap: 18px; }
  .mast__search { order: 3; width: 100%; height: 40px; }
  .intro { padding: 36px 0 64px; gap: 28px; }
  .intro__title { font-size: var(--t-5xl); }
  .entries { grid-template-columns: 1fr; }
  .onrecord .barry { font-size: 30px; }
  .shelf { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .inside, .shelfquote { grid-column: 1 / -1 !important; }
  .shelfquote { padding: 8px 0 0; }
  .shelfquote .barry { font-size: 23px; }
  .intro__title span { display: inline; }
  .places { columns: 1; }

  .cover__inner { padding-top: 18px; padding-bottom: 30px; }
  .cover__top { flex-wrap: wrap; gap: 14px; }
  .tracks { margin-left: 0; width: 100%; }
  .tracks span { display: none; }
  .tracks a { width: 34px; height: 34px; }
  .cover__body { grid-template-columns: 1fr; gap: 18px; margin-top: 30px; }
  .cover__no { font-size: 128px; }
  .cover__title { font-size: 36px; line-height: 1.02; }
  .cover__sum { font-size: var(--t-m); }
  .page { padding-top: 36px; }
  .key--inline { display: grid; grid-template-columns: 1fr; gap: 10px; margin-bottom: 36px; padding: 16px; border: 1.5px solid var(--accent-line); }
  .key--inline .key__item { grid-template-columns: 22px 1fr; }
  .side .key { display: none; }
  .plain { font-size: 19px; }
  .main > section { margin-top: 56px; }
  .moment, .point { grid-template-columns: 1fr; gap: 10px; }
  .barry { font-size: 22px; }
  .moment.is-feature .barry { font-size: 25px; }
  .others { padding: 22px 18px 24px; margin-left: -16px; margin-right: -16px; }
  .teachers, .alsovideo ul, .reading { grid-template-columns: 1fr; }
  .prevnext { grid-template-columns: 1fr; margin-top: 72px; }
  .pn + .pn { padding-left: 0; border-left: 0; border-top: 1px solid var(--rule); }
  .pn__no { font-size: 64px; }
  .pn__title { font-size: var(--t-l); }
  .foot { grid-template-columns: 1fr 1fr; gap: var(--s-6) var(--s-5); margin-top: var(--s-8); }
  .foot__brand { grid-column: 1 / -1; }

  .when__head { display: block; }
  .when__head p { margin-top: 4px; }
  .years__axis span:nth-child(even) { display: none; }
  .seg button { padding: 9px 10px; }
  .when .lane { grid-template-columns: 120px 1fr; }
  .years { grid-template-columns: 120px 1fr; }
  .lane__name span { display: none; }
  .event__head { grid-template-columns: 1fr; gap: 12px; }
  .event__count { text-align: left; }
  .rec { grid-template-columns: minmax(0, 1fr) 64px; gap: 8px 14px; }
  .rec .play { display: none; }
  .rec__topics { grid-column: 1; grid-row: 2; }
  .rec__len { grid-column: 2; grid-row: 1; }
}

/* =========================================================
   SITE ADDITIONS (built pages)
   ========================================================= */
.skip { position: absolute; left: -9999px; top: 8px; z-index: 10; background: var(--ink); color: var(--bg); padding: 8px 14px; }
.skip:focus { left: 8px; }
.mast__mark { color: var(--ink); }
.mast__nav a { color: var(--ink); }
.mast { flex-wrap: nowrap; }

/* home */
.entry { color: var(--ink); }
.entry .sleeve { font-size: 12px; }
.entry .sleeve__no { font-size: 3.2em; }
.entry__go, .entry__what { display: block; }
.onrecord { margin: 0; }
.shelfquote.span-1 { grid-column: span 1; }
.shelfquote.span-2 { grid-column: span 2; }
.shelfquote.span-3 { grid-column: span 3; }
.shelfquote .cite a:not(.play) { color: var(--ink); font-weight: 600; }
.onrecord .cite a:not(.play) { color: var(--ink); font-weight: 600; }
.more__all { margin-top: 18px; }
.tries a { color: var(--ink); }

/* cover band, stage pages */
.cover__title .cover__rest { display: block; margin-top: 10px; font-size: .52em; font-family: var(--font-heading); line-height: 1.08; font-weight: 600; }
.cover__body--stage { grid-template-columns: 220px 1fr; }
.stage-sleeve .sleeve__art { box-shadow: 0 0 0 2px var(--black); font-size: 15px; }
.cover .cover__top span { font-weight: 600; }
.tracklist { margin-top: 56px; }
.tracklist li { border-top: 1px solid var(--rule); }
.tracklist li:first-child { border-top: 1px solid var(--rule); }
.trackrow { display: grid; grid-template-columns: 120px minmax(0, 1fr) 190px; gap: 28px; padding: 26px 0; text-decoration: none; color: var(--ink); }
.trackrow__no { font-weight: 500; font-family: var(--font-heading); font-size: 64px; line-height: .8; font-variant-numeric: tabular-nums; color: var(--accent-text, var(--accent)); }
.trackrow__title { display: block; font-weight: 500; font-family: var(--font-heading); font-size: var(--t-xl); line-height: 1.08; }
.trackrow__title span { display: block; margin-top: 4px; font-weight: 600;  font-size: var(--t-l); color: var(--grey); }
.trackrow__lede { display: block; margin-top: 10px; max-width: 40em; color: var(--grey); font-size: var(--t-s); line-height: 1.5; }
.trackrow__meta { font-size: var(--t-xs); color: var(--grey); text-align: right; padding-top: 8px; }
.trackrow:hover .trackrow__title { text-decoration: underline; text-decoration-thickness: 3px; text-decoration-color: var(--accent); text-underline-offset: 4px; }

/* idea pages */
.rail__h { display: block; text-decoration: none; }
.stagelist a span { color: inherit; }
.main h3 { font-size: var(--t-l); font-family: var(--font-heading); line-height: 1.12; }
.main .sub { margin-top: 10px; font-size: var(--t-s); color: var(--grey); max-width: 40em; }
.para-block + .para-block { margin-top: 1.1em; }
/* where Barry says it: the source, then a button for each moment */
.src { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-4); margin-top: var(--s-3); font-size: var(--t-xs); line-height: 1.4; color: var(--grey); }
.src__item { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
.src__t, .src__doc { color: var(--ink); font-weight: 700; font-variant-numeric: tabular-nums; text-decoration: none; }
.src__t { padding: 1px 7px; border: 1.5px solid var(--ink); }
.src__t:hover { background: var(--ink); color: var(--bg); }
.src__doc { text-decoration: underline; text-decoration-color: var(--accent, var(--ink)); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.src .para { font-variant-numeric: tabular-nums; }
.steps { margin-top: 24px; counter-reset: step; }
.steps > li { position: relative; padding: 18px 0 18px 56px; border-top: 1px solid var(--rule); counter-increment: step; }
.steps > li::before { content: counter(step); position: absolute; left: 0; top: 12px; font-weight: 500; font-family: var(--font-heading); font-size: 40px; line-height: 1; color: var(--accent); }
.steps > li > p:first-child { font-size: var(--t-m); line-height: 1.55; max-width: 38em; }
.eg { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 12px; }
.eg__label { font-size: var(--t-xs); font-weight: 700; color: var(--grey); min-width: 7em; }
.eg__notes { display: flex; flex-wrap: wrap; gap: 4px; }
.eg__notes li { min-width: 38px; padding: 6px 6px 5px; text-align: center; border: 1.5px solid var(--rule); font-weight: 600; font-size: var(--t-s); }
.eg__notes li.add { border: 3px solid var(--accent); font-weight: 700; background: color-mix(in srgb, var(--accent) 14%, transparent); }
.eg-key { margin-top: 12px; font-size: var(--t-xs); color: var(--grey); display: flex; align-items: center; gap: 8px; }
.eg-key__add { display: inline-block; width: 16px; height: 16px; border: 3px solid var(--accent); }
.practise__list { margin-top: 18px; border-top: 3px solid var(--field); }
.practise__list li { padding: 16px 0; border-bottom: 1px solid var(--rule); }
.practise__list p { max-width: 38em; }
.quotes { margin-top: 28px; display: grid; gap: 30px; }
.quote { margin: 0; padding-left: 22px; border-left: 4px solid var(--accent); }
.quote .barry { font-size: 25px; }
.quote.is-feature .barry { font-size: 32px; line-height: 1.22; }
.quote .cite a:not(.play) { color: var(--ink); font-weight: 600; }
.quote .play { --size: 30px; }
.recs { margin-top: 36px; display: grid; gap: 40px; }
.rec-group h3 a { text-decoration: none; }
.rec-group h3 a:hover { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 3px; }
.rec-group__meta { margin-top: 4px; font-size: var(--t-xs); color: var(--grey); }
.track { position: relative; height: 26px; margin: 14px 0 0; }
.track::before { content: ""; position: absolute; left: 0; right: 0; top: 11px; height: 3px; background: var(--rule); }
.track .tick { position: absolute; top: 2px; width: 14px; margin-left: -7px; height: 22px; display: grid; place-items: center; }
.track .tick i { display: block; width: 4px; height: 20px; background: var(--accent); }
.track .tick:hover i { background: var(--ink); }
.track__zero, .track__len { position: absolute; top: 24px; font-size: 12px; color: var(--grey); font-variant-numeric: tabular-nums; }
.track__zero { left: 0; } .track__len { right: 0; }
.rec-group .moments { margin-top: 22px; }
.moment { grid-template-columns: 92px 1fr; padding: 14px 0; }
.moment__play { color: var(--ink); }
.moment__play .play { --size: 28px; }
.moment__what { font-size: var(--t-s); line-height: 1.5; padding-top: 3px; }
.lesson + .lesson { margin-top: 36px; }
.lesson h3 { margin-top: 28px; }
.lesson h3 a { text-decoration: none; }
.lesson h3 a:hover { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 3px; }
.point p { max-width: 40em; }
.point__kind.is-exercise i { background: var(--field); }
.written { margin-top: 24px; }
.written__item { padding: 18px 0; border-top: 1px solid var(--rule); }
.written__item p + p { margin-top: 6px; max-width: 40em; }
.written__item .byline span { margin-left: 6px; }
.others { margin-top: 72px; }
.teachers li a { font-weight: 600; text-decoration-color: var(--accent); }
.teachers li p { font-size: var(--t-s); margin-top: 4px; }
.conflicts li { padding: 16px 0; border-top: 1px solid var(--rule); }
.reading ul { margin-top: 0; }
.chip { color: var(--num); }
.meta li a { display: block; }
.meta .chip { margin-right: 6px; }
.main > section { margin-top: 72px; }
.main > section:first-child { margin-top: 0; }

/* classes */
.libhead h1 { font-weight: 700; }
.filter-count { font-size: var(--t-s); color: var(--grey); min-height: 1.4em; }
.place + .place { margin-top: 112px; }
.place__name { font-size: var(--t-4xl); font-family: var(--font-heading); line-height: .9; letter-spacing: -.012em; padding-bottom: 18px; border-bottom: 1px solid var(--rule); }
.place__name span { display: block; margin-top: 8px; font-size: var(--t-l);  font-weight: 500; color: var(--grey); letter-spacing: 0; }
.event { margin-top: 44px; }
.event__name { font-size: var(--t-xl); font-family: var(--font-heading); line-height: 1.05; }
.event__name span { font-weight: 500; color: var(--grey); }
.event__where { margin-top: 4px; font-size: var(--t-s); color: var(--grey); }
.event__head { padding-bottom: 14px; }
.rec { list-style: none; border-bottom: 1px solid var(--rule); }
.rec[hidden], .event[hidden], .place[hidden] { display: none; }
.rec__topics .chip { min-width: 34px; }
.lane { color: var(--ink); }

@media (max-width: 900px) {
  .trackrow { grid-template-columns: 76px minmax(0, 1fr); }
  .trackrow__meta { grid-column: 2; text-align: left; padding-top: 0; }
  .trackrow__no { font-size: 46px; }
  .cover__body--stage { grid-template-columns: 140px 1fr; }
  .mast { flex-wrap: wrap; height: auto; padding: 16px 0; gap: 14px 24px; }
  .mast__search { order: 3; width: 100%; }
}
@media (max-width: 600px) {
  .cover__body--stage { grid-template-columns: 1fr; }
  .stage-sleeve { width: 120px; }
  .steps > li { padding-left: 40px; }
  .steps > li::before { font-size: 30px; }
  .quote.is-feature .barry { font-size: 25px; }
  .place__name { font-size: 44px; }
  .shelfquote.span-1, .shelfquote.span-2, .shelfquote.span-3 { grid-column: 1 / -1; }
}
.moment__heard { color: var(--grey); font-size: var(--t-s); }
.moment__heard::before { content: "Captions: "; font-weight: 700; color: var(--ink); }

/* YouTube links: the videos play there from any phone */
.yt { font-size: var(--t-xs); font-weight: 600; color: var(--grey); text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: 3px; white-space: nowrap; }
.yt::before { content: ""; display: inline-block; width: 0; height: 0; margin-right: 5px; vertical-align: 1px; border-style: solid; border-width: 4px 0 4px 6px; border-color: transparent transparent transparent currentColor; }
.yt:hover { color: var(--ink); text-decoration-color: var(--accent); }
.moment__yt { margin-top: 4px; }
.rec__len .yt { display: block; margin-top: 4px; }

/* people, tunes, words, overview */
.more__ways { margin-top: 14px; display: grid; gap: 6px; }
.crumb { font-size: var(--t-s); font-weight: 600; margin-bottom: 14px; }
.crumb a { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; text-decoration-color: var(--rule); }
.libhead--entity { grid-template-columns: 1fr; padding-bottom: 24px; border-bottom: 1px solid var(--rule); }
.entity-sub { margin-top: 10px; font-size: var(--t-l);  color: var(--grey); }
.entity-body { max-width: 860px; }
.entity-section { margin-top: 64px; }
.entity-section h2 { font-size: var(--t-2xl); font-family: var(--font-heading); line-height: 1; }
.entity-section .sub { margin-top: 10px; font-size: var(--t-s); color: var(--grey); max-width: 40em; }
.entity-section > .para-block:first-of-type, .entity-section > .quotes, .entity-section > .recs, .entity-section > .written, .entity-section > .played { margin-top: 22px; }
.speaker { font-size: var(--t-xs); font-weight: 700; color: var(--grey); }
.speaker--barry { color: var(--ink); }
.moment__ideas { margin-top: 6px; display: flex; gap: 5px; flex-wrap: wrap; }
.played li { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; padding: 10px 0; border-top: 1px solid var(--rule); }
.played li > a:first-child { font-weight: 600; }
.played li span { font-size: var(--t-xs); color: var(--grey); }
.entity-key { display: flex; justify-content: space-between; gap: 16px; margin-top: 8px; font-size: var(--t-xs); color: var(--grey); border-bottom: 1px solid var(--rule); padding-bottom: 10px; }
.entity-list li { border-bottom: 1px solid var(--rule); }
.entity-row { display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr) 56px; gap: 24px; padding: 16px 0; text-decoration: none; color: var(--ink); align-items: baseline; }
.entity-row__name { font-weight: 500; font-family: var(--font-heading); font-size: var(--t-l); line-height: 1.15; }
.entity-row__line { font-size: var(--t-s); color: var(--grey); line-height: 1.45; }
.entity-row__count { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.entity-row:hover .entity-row__name { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 4px; }
.az { display: flex; flex-wrap: wrap; gap: 4px; margin: 8px 0 24px; position: sticky; top: env(safe-area-inset-top, 0px); background: var(--bg); padding: 10px 0; z-index: 2; border-bottom: 1px solid var(--rule); }
.az a { display: grid; place-items: center; min-width: 34px; height: 34px; border: 1.5px solid var(--accent-line); font-weight: 700; text-decoration: none; color: var(--ink); }
.az a:hover { background: var(--ink); color: var(--bg); }
.letter { margin-top: 48px; scroll-margin-top: 80px; }
.letter > h2 { font-size: var(--t-4xl); font-family: var(--font-heading); line-height: .9; }
.term { display: grid; grid-template-columns: minmax(0, 280px) minmax(0, 1fr); gap: 8px 32px; padding: 20px 0; border-top: 1px solid var(--rule); scroll-margin-top: 80px; }
.term dt { font-family: var(--barry); font-style: italic; font-size: 24px; line-height: 1.2; }
.term__also { display: block; margin-top: 6px; font-family: var(--sans); font-style: normal; font-size: var(--t-xs); color: var(--grey); }
.term dd { margin: 0; max-width: 40em; }
.term__idea { margin-top: 8px; font-size: var(--t-s); }
.term .quote { margin-top: 14px; }
.term .quote .barry { font-size: 20px; }
.overview { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 28px; margin-top: 24px; }
.ov-part h2 { display: flex; flex-direction: column; gap: 8px; font-size: var(--t-xl); font-family: var(--font-heading); line-height: 1.05; padding-bottom: 10px; border-bottom: 3px solid var(--field); }
.ov-stage { margin-top: 20px; }
.ov-stage h3 { font-size: var(--t-s); font-weight: 700; }
.ov-stage h3 a { text-decoration: none; }
.ov-stage li { padding: 5px 0; border-top: 1px solid var(--rule); font-size: var(--t-xs); line-height: 1.35; }
.ov-stage li a { display: grid; grid-template-columns: 42px 1fr; gap: 6px; text-decoration: none; color: var(--ink); }
.ov-stage li a:hover span { text-decoration: underline; text-decoration-color: var(--field); text-decoration-thickness: 2px; }
.ov-needs { display: block; margin-left: 48px; color: var(--grey); font-size: 12px; }
.ov-needs::before { content: "after "; }
@media (max-width: 1180px) { .overview { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 900px) {
  .overview { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .entity-row { grid-template-columns: minmax(0, 1fr) 48px; }
  .entity-row__line { grid-column: 1 / -1; grid-row: 2; }
  .term { grid-template-columns: 1fr; }
}
@media (max-width: 600px) { .overview { grid-template-columns: 1fr; } }
.ov-stage li a { align-items: start; }
.ov-stage li .chip { align-self: start; }
.chip.p-5, .p-5 .chip { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ink) 35%, transparent); }

/* engraved examples: heads in order, no rhythm claimed; added notes in the part's ink */
.eg__staff { flex-basis: 100%; overflow-x: auto; }
.notation { display: block; max-width: 100%; height: auto; }
.nt-staff { stroke: var(--grey); stroke-width: 1; }
.nt-head, .nt-clef, .nt-acc { fill: var(--ink); }
.nt-head.add, .nt-acc.add { fill: var(--accent); }
.nt-ring { fill: none; stroke: var(--accent); stroke-width: 1.6; }

.series-list .rec { grid-template-columns: 40px minmax(0, 1fr) 236px 92px; }
.ep-no { font-weight: 500; font-family: var(--font-heading); font-size: var(--t-l); color: var(--grey); font-variant-numeric: tabular-nums; padding-top: 2px; }
@media (max-width: 1180px) { .series-list .rec { grid-template-columns: 36px minmax(0, 1fr) 84px; } }
@media (max-width: 600px) { .series-list .rec { grid-template-columns: 28px minmax(0, 1fr) 64px; } .series-list .rec__topics { grid-column: 2; grid-row: 2; } }

.series-h { margin-top: 32px; }
.series-groups { margin-top: 14px; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px 32px; }
.series-group h3 { font-size: var(--t-m);  }
.series-group h3 a { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.series-group li { padding: 6px 0; border-top: 1px solid var(--rule); font-size: var(--t-s); line-height: 1.4; }

/* Phones: nothing may be wider than the screen. Grid and flex children default to their content's width,
   so a long staff or a long link could push the whole page sideways. */
.page, .lib, .intro, .more, .libhead { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 901px) {
  .page { grid-template-columns: 220px minmax(0, 1fr) 256px; }
  .lib { grid-template-columns: 220px minmax(0, 1fr); }
  .intro, .more, .libhead { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
}
@media (min-width: 901px) and (max-width: 1180px) {
  .page { grid-template-columns: 200px minmax(0, 1fr); }
}
.main, .side, .eg, .eg__staff, .steps > li, .para-block, .rec-group, .moment > div { min-width: 0; }
.eg__staff { max-width: 100%; }
.notation { width: auto; max-width: 100%; height: auto; }
.src, .moment__what, .rec__desc, .entity-row__line { overflow-wrap: anywhere; }
@media (max-width: 900px) {
  .mast__nav { flex-wrap: wrap; gap: 4px 16px; row-gap: 2px; }
  .mast__nav a { padding: 4px 0; }
}
.libhead.libhead--entity { grid-template-columns: minmax(0, 1fr); }
.reading { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 601px) { .reading { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.reading a, .teachers a, .series-group a, .played a { overflow-wrap: anywhere; }
.lane__axis { overflow: hidden; }
main { overflow-wrap: break-word; }
.rec__title, .entity-row__name, .trackrow__title { overflow-wrap: anywhere; }

/* ---------- where this comes from: the evidence under the teaching, folded ---------- */
.sources .folds { margin-top: 28px; border-top: 1px solid var(--rule); }
.fold { border-bottom: 1px solid var(--rule); }
.fold > summary {
  display: grid; grid-template-columns: minmax(0, 1fr) auto 30px; align-items: center; gap: 4px 18px;
  padding: 20px 0; cursor: pointer; list-style: none;
}
.fold > summary::-webkit-details-marker { display: none; }
.fold > summary::after {  /* a label disc in the part's ink: plus to open, minus to close */
  content: ""; width: 30px; height: 30px; border-radius: 50%;
  background: linear-gradient(var(--fig), var(--fig)) center / 12px 2.5px no-repeat,
              linear-gradient(var(--fig), var(--fig)) center / 2.5px 12px no-repeat, var(--field, var(--ink));
}
.fold[open] > summary::after {
  background: linear-gradient(var(--fig), var(--fig)) center / 12px 2.5px no-repeat, var(--field, var(--ink));
}
.fold__t { font-size: var(--t-xl); font-weight: 500; font-family: var(--font-heading); line-height: 1.05; }
.fold > summary:hover .fold__t { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 3px; }
.fold__n { font-size: var(--t-s); color: var(--grey); font-variant-numeric: tabular-nums; text-align: right; }
.fold__body { padding: 0 0 40px; }
.fold__body > .sub { margin-top: 0; }
.fold .recs { margin-top: 28px; }
.fold .others { margin-top: 24px; }
.fold .written { margin-top: 16px; }
.fold .lesson:first-of-type h3 { margin-top: 20px; }
@media (max-width: 600px) {
  .fold > summary { grid-template-columns: minmax(0, 1fr) 30px; padding: 16px 0; }
  .fold > summary::after { grid-column: 2; grid-row: 1 / span 2; }
  .fold__t { font-size: var(--t-l); }
  .fold__n { grid-column: 1; grid-row: 2; text-align: left; }
}

/* ---------- hear a note example: an outlined pill, unlike the filled discs that play Barry himself ---------- */
.eg__hear {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 13px 5px 10px; border: 1.5px solid var(--accent-line); border-radius: 999px;
  background: transparent; font-size: var(--t-xs); font-weight: 700; line-height: 1.2; cursor: pointer;
}
.eg__hear:hover { background: color-mix(in srgb, var(--accent) 16%, transparent); }
.eg__hear-i { width: 0; height: 0; border-style: solid; border-width: 5px 0 5px 8px; border-color: transparent transparent transparent var(--accent); }
.eg__hear[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.eg__hear[aria-pressed="true"] .eg__hear-i { width: 9px; height: 9px; border: 0; background: var(--field, var(--accent)); }
.eg__notes li.is-on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.eg__notes li.add.is-on { background: var(--field, var(--accent)); color: var(--fig, var(--bg)); border-color: var(--field, var(--accent)); }
.nt-head.is-on { fill: var(--accent); stroke: var(--accent); stroke-width: 2.5px; }
.nt-head.add.is-on { fill: var(--ink); stroke: var(--ink); }

/* ---------- Chris Parks: a second teacher's videos as one learning page ---------- */
/* His words sit on the grey "other teachers" panel; every link back to Barry carries that idea's part ink. */
.pk-title { font-size: var(--t-5xl); font-family: var(--font-heading); line-height: .9; letter-spacing: -.015em; }
.pk-title span { display: block; margin-top: 10px; font-size: var(--t-xl);  font-weight: 500; color: var(--grey); letter-spacing: 0; }
.pk-hero .lede { margin-top: 24px; max-width: 40em; }
.pk-stats { margin-top: 18px; font-size: var(--t-s); color: var(--grey); display: flex; flex-wrap: wrap; gap: 4px 18px; }
.pk-stats b { color: var(--ink); font-size: var(--t-l); font-family: var(--font-heading); margin-right: 4px; }
.pk-start { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 12px; }
.pk-btn { display: inline-block; padding: 12px 20px; background: var(--ink); color: var(--bg); text-decoration: none; font-weight: 700; border: 1.5px solid var(--accent-line); }
.pk-btn--ghost { background: transparent; color: var(--ink); }
.pk-btn:hover { background: var(--accent-line); border-color: var(--accent-line); color: var(--black); }
.pk-resume { margin-top: 16px; font-size: var(--t-s); }
.pk-resume a { font-weight: 700; text-decoration-color: var(--accent-line); text-decoration-thickness: 2px; }

.pk-app { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: 40px; align-items: start; padding-bottom: 80px; }
.pk-side { position: sticky; top: 12px; max-height: calc(100vh - 24px); display: flex; flex-direction: column; min-width: 0; border-top: 1px solid var(--rule); }
.pk-search input { width: 100%; margin-top: 14px; padding: 11px 12px; border: 1.5px solid var(--accent-line); background: var(--bg); font-size: var(--t-s); }
.pk-order { display: flex; gap: 6px; margin: 10px 0 6px; }
.pk-order button { flex: 1; padding: 7px 8px; border: 1.5px solid var(--rule); background: transparent; font-size: var(--t-xs); font-weight: 700; cursor: pointer; }
.pk-order button[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.pk-list { overflow-y: auto; overscroll-behavior: contain; padding-bottom: 20px; min-height: 0; }
.pk-ch { margin-top: 18px; }
.pk-ch__h { display: flex; align-items: center; gap: 8px; font-size: var(--t-s); font-family: var(--font-heading); padding-bottom: 6px; border-bottom: 1px solid var(--rule); }
.pk-ch__dot { flex: none; width: 12px; height: 12px; border-radius: 50%; background: var(--field, var(--grey)); }
.pk-ch__n { margin-left: auto; font-weight: 400; color: var(--grey); font-variant-numeric: tabular-nums; }
.pk-ep { display: grid; grid-template-columns: 2.4em minmax(0, 1fr) auto; gap: 8px; padding: 8px 4px; text-decoration: none; border-bottom: 1px solid var(--rule); font-size: var(--t-s); line-height: 1.35; }
.pk-ep:hover { background: var(--panel); }
.pk-ep[aria-current] { background: var(--ink); color: var(--bg); }
.pk-ep[aria-current] .pk-ep__n, .pk-ep[aria-current] .pk-ep__d { color: inherit; }
.pk-ep__n, .pk-ep__d { color: var(--grey); font-variant-numeric: tabular-nums; font-size: var(--t-xs); padding-top: 2px; }
.pk-moments li a { display: block; padding: 9px 4px; border-bottom: 1px solid var(--rule); text-decoration: none; }
.pk-moments li a:hover { background: var(--panel); }
.pk-m__w { display: block; font-size: var(--t-xs); font-weight: 700; }
.pk-m__s { display: block; font-size: var(--t-s); color: var(--grey); margin-top: 2px; }
.pk-note { margin-top: 16px; font-size: var(--t-s); color: var(--grey); }

.pk-lesson { background: var(--panel); padding: 32px 36px 40px; min-width: 0;  }
.pk-welcome h2 { font-size: var(--t-2xl); font-family: var(--font-heading); }
.pk-welcome p { margin-top: 12px; max-width: 34em; color: var(--grey); }
.pk-back { display: none; }
.pk-crumb { display: flex; align-items: center; gap: 8px; font-size: var(--t-xs); font-weight: 700; }
.pk-ltitle { margin-top: 10px; font-size: var(--t-2xl); font-family: var(--font-heading); line-height: 1.02; }
.pk-meta { margin-top: 8px; font-size: var(--t-s); color: var(--grey); }
.pk-player { margin-top: 20px; }
.pk-player .player { position: relative; aspect-ratio: 16 / 9; background: var(--mahogany); }
.pk-player .player.live .pl-float, .pk-player .player.live .pl-frame { position: absolute; inset: 0; }
.pk-player .pl-frame iframe { width: 100%; height: 100%; border: 0; }
.pk-player .pl-dockbar { display: none; }
.pk-player .player.live .pl-float.docked { position: fixed; inset: auto 16px 16px auto; width: min(360px, calc(100vw - 32px));
  height: calc(min(360px, calc(100vw - 32px)) * 9 / 16 + 30px); z-index: 90; background: var(--mahogany); outline: 1.5px solid var(--accent-line); }
.pk-player .pl-float.docked .pl-frame { top: 30px; }
.pk-player .pl-float.docked .pl-dockbar { position: absolute; inset: 0 0 auto 0; height: 30px; display: flex; align-items: center; gap: 6px;
  padding: 0 6px 0 12px; background: var(--mahogany); color: var(--parchment); font-size: 12px; }
.pk-player .pl-dock-title { flex: 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.pk-player .pl-dockbar button { border: 0; background: none; color: inherit; font-size: 16px; min-width: 26px; min-height: 26px; }
.pk-offline { margin-top: 10px; font-size: var(--t-s); color: var(--grey); }
.pk-summary { margin-top: 22px; font-size: var(--t-m); max-width: 40em; }
.pk-sec { margin-top: 30px; }
.pk-sec h3 { font-size: var(--t-l); font-family: var(--font-heading); }
.pk-sub { display: block; margin-top: 4px; font-size: var(--t-xs); color: var(--grey); font-weight: 400; }
.pk-steps li, .pk-tx li { display: grid; grid-template-columns: 4.2em minmax(0, 1fr); gap: 10px; padding: 8px 0; border-top: 1px solid var(--rule); }
.pk-at { justify-self: start; align-self: start; padding: 2px 0; border: 0; background: none; font-weight: 700; font-size: var(--t-s);
  font-variant-numeric: tabular-nums; text-decoration: underline; text-decoration-color: var(--accent-line); text-decoration-thickness: 2px;
  text-underline-offset: 3px; cursor: pointer; }
.pk-ideas { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.pk-idea { display: inline-flex; gap: 6px; align-items: baseline; padding: 6px 10px; background: var(--field, var(--ink)); color: var(--fig, var(--bg));
  text-decoration: none; font-size: var(--t-s); }
.pk-idea b { font-variant-numeric: tabular-nums; }
.pk-idea:hover { outline: 1.5px solid var(--accent-line); }
.pk-txbox > summary { list-style: none; cursor: pointer; }
.pk-txbox > summary::-webkit-details-marker { display: none; }
.pk-txbox > summary h3 { display: inline; }
.pk-txbox > summary h3::after { content: " +"; color: var(--grey); }
.pk-txbox[open] > summary h3::after { content: " –"; }
.pk-txwrap { margin-top: 10px; max-height: 440px; overflow-y: auto; overscroll-behavior: contain; position: relative; }
.pk-tx li { cursor: pointer; font-size: var(--t-s); }
.pk-tx li:hover { background: color-mix(in srgb, var(--ink) 6%, transparent); }
.pk-tx li.is-now { background: var(--bg); box-shadow: inset 4px 0 0 var(--accent-line); }
.pk-pn { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 36px; border-top: 1px solid var(--rule); padding-top: 14px; }
.pk-pn a { text-decoration: none; font-weight: 700; font-size: var(--t-s); }
.pk-pn a span { display: block; font-weight: 400; color: var(--grey); font-size: var(--t-xs); }
.pk-pn--next { text-align: right; }
@media (max-width: 999px) {
  .pk-app { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .pk-side { position: static; max-height: none; }
  .pk-list { overflow: visible; }
  .pk-app.is-reading .pk-side { display: none; }
  .pk-app:not(.is-reading) .pk-lesson { display: none; }
  .pk-lesson { padding: 18px 16px 28px; margin: 0 -16px; }
  .pk-back { display: inline-block; margin-bottom: 14px; padding: 6px 12px; border: 1.5px solid var(--accent-line); background: transparent; font-weight: 700; font-size: var(--t-xs); }
  .pk-back::before { content: "← "; }
  .pk-title { font-size: var(--t-4xl); }
  .pk-txwrap { max-height: 60vh; }
  .pk-pn { grid-template-columns: minmax(0, 1fr); }
  .pk-pn--next { text-align: left; }
}
.pk-stats { align-items: baseline; }
.pk-else { padding-block: 8px 72px; }
.pk-else h2 { font-size: var(--t-xl); font-family: var(--font-heading); padding-top: 14px; border-top: 1px solid var(--rule); }
.pk-else li { padding: 12px 0; border-bottom: 1px solid var(--rule); display: grid; gap: 2px; }
.pk-else li span { font-size: var(--t-s); color: var(--grey); }
.entity-learn { margin: 18px 0 6px; font-weight: 700; }

/* ---------- guitar pictures and teaching diagrams (Chris Parks pages) ---------- */
.fretboard, .diagram { display: block; max-width: 100%; height: auto; font-family: var(--sans); }
.fb-string, .fb-fret { stroke: var(--ink); stroke-width: 1; }
.fb-string { stroke-opacity: .75; }
.fb-fret { stroke-opacity: .35; }
.fb-nut { stroke-width: 4; stroke-opacity: 1; }
.fb-fr { font-size: 9px; fill: var(--grey); }
.fb-x { font-size: 12px; fill: var(--grey); }
.fb-open { fill: none; stroke: var(--ink); stroke-width: 1.4; }
.fb-dot { fill: var(--ink); }
.fb-dot.is-root { fill: var(--vermilion); }
.fb-dot.is-chord { fill: var(--ink); }
.fb-dot.is-added { fill: var(--bg); stroke: var(--ink); stroke-width: 1.4; }
.fb-dot.is-scale { fill: var(--grey); }
.fb-nt { font-size: 7px; font-weight: 700; fill: var(--bg); pointer-events: none; }
.fb-n .is-added + .fb-nt { fill: var(--ink); }
.fb-label { font-size: 12px; font-weight: 700; fill: var(--ink); }
.fb-dot.is-on, .fb-open.is-on { fill: var(--vermilion); stroke: var(--vermilion); }
.dg-ring { fill: none; stroke: var(--rule); stroke-width: 2; }
.dg-node circle { stroke: var(--bg); stroke-width: 3; }
.dg-node text { font-size: 13px; font-weight: 700; }
.dg-node.is-home circle { fill: var(--ink); }
.dg-node.is-home text { fill: var(--bg); }
.dg-node.is-dim circle { fill: var(--cobalt); }
.dg-node.is-dim text { fill: var(--paper); }
.dg-node.is-other circle { fill: var(--panel); stroke: var(--ink); stroke-width: 1.5; }
.dg-node.is-other text { fill: var(--ink); }
.dg-title { font-size: 12px; font-weight: 700; fill: var(--grey); }
.dg-spoke { stroke: var(--ink); stroke-width: 1.5; stroke-dasharray: 3 3; }
.dg-change { font-size: 10px; fill: var(--grey); }
.dg-centre text { font-size: 15px; }
.dg-edge { fill: none; stroke: var(--ink); stroke-opacity: .28; stroke-width: 1.2; }
.dg-concept rect { fill: var(--field, var(--panel)); }
.dg-concept text { font-size: 11.5px; font-weight: 700; fill: var(--fig, var(--ink)); }
.dg-concept:hover rect, .dg-concept:focus rect { stroke: var(--ink); stroke-width: 2; }
.dg-scroll { overflow-x: auto; overscroll-behavior-x: contain; padding-bottom: 8px; }
.kb-white { fill: #EFE6D5; stroke: var(--ink); stroke-width: 1; }
.kb-black { fill: var(--black); stroke: var(--black); stroke-width: 1; }
.kb-white.is-on-chord, .kb-black.is-on-chord { fill: var(--cobalt); }
.kb-white.is-on-root, .kb-black.is-on-root { fill: var(--vermilion); }
.kb-white.is-on-added, .kb-black.is-on-added { fill: var(--chrome); }
.kb-white.is-on-scale, .kb-black.is-on-scale { fill: var(--faded-ink); }
.kb-white.is-on, .kb-black.is-on { fill: var(--vermilion); stroke: var(--ink); stroke-width: 2; }   /* the note being played, as on the staff and the guitar */
.kb-name { font-size: 7.5px; font-weight: 700; fill: var(--paper); pointer-events: none; }
.kb-white.is-on-added + .kb-name { fill: var(--black); }
.kb-c { font-size: 7px; fill: var(--faded-ink); }
.kb-label { font-size: 12px; font-weight: 700; fill: var(--ink); }
.kb .is-on, .kb rect.is-on { fill: var(--vermilion) !important; }
.pair { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 18px 28px; }
/* one colour per role on both instruments: root vermilion, chord notes cobalt, added notes chrome */
.fb-neck .fb-dot.is-chord { fill: var(--cobalt); }
.fb-neck .fb-dot.is-added { fill: var(--chrome); stroke: none; }
.fb-neck .fb-n .is-added + .fb-nt { fill: var(--black); }
.fb-neck .fb-nt { fill: var(--paper); }
.role-key { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: var(--t-xs); color: var(--grey); }
.role-key span::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; }
.role-key .r-root::before { background: var(--vermilion); }
.role-key .r-chord::before { background: var(--cobalt); }
.role-key .r-added::before { background: var(--chrome); }

/* ---------- Learn with Chris Parks: his course, module by module ---------- */
.pk-learn .pk-sec2 { padding-block: 40px; }
.pk-learn .pk-sec2 h2, .pk-path h2 { font-size: var(--t-2xl); font-family: var(--font-heading); padding-top: 14px; border-top: 1px solid var(--rule); }
.pk-learn .pk-sub { margin-top: 8px; font-size: var(--t-s); color: var(--grey); max-width: 44em; }
.pk-path { padding-block: 24px 40px; }
.pk-mods { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; margin-top: 22px; }
.pk-mod { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 14px; padding: 16px 18px 18px; background: var(--panel);
  text-decoration: none; height: 100%; border-left: 1px solid var(--rule); }
.pk-mod:hover { background: color-mix(in srgb, var(--accent-line) 14%, var(--panel)); }
.pk-mno { font-size: var(--t-3xl); font-family: var(--font-heading); font-weight: 500; line-height: .9; grid-row: span 3; color: var(--link); }
.pk-mod__t { font-weight: 500; font-size: var(--t-l); font-family: var(--font-heading); line-height: 1.1; }
.pk-mod__a { font-size: var(--t-s); color: var(--grey); line-height: 1.4; }
.pk-mod__n { font-size: var(--t-xs); font-weight: 700; }
.pk-wheels { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 24px; margin-top: 20px; }
.pk-fig { margin: 0; }
.pk-fig figcaption { margin-top: 6px; font-size: var(--t-s); font-weight: 700; text-align: center; }
.pk-mhead { padding-block: 48px 24px; }
.pk-mhead .pk-title { display: flex; gap: 18px; align-items: baseline; }
.pk-mhead .pk-mno { font-size: inherit; }
.pk-crumbs { font-size: var(--t-s); color: var(--grey); margin-bottom: 14px; }
.pk-crumbs a { color: var(--ink); }
.pk-toc { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.pk-toc a { display: inline-block; padding: 6px 10px; background: var(--panel); text-decoration: none; font-size: var(--t-s); font-weight: 700; }
.pk-toc a:hover { background: var(--ink); color: var(--bg); }
.pk-body { padding-bottom: 72px; min-width: 0; }
.pk-concept { padding: 36px 0 30px; border-top: 1px solid var(--rule); }
.pk-concept + .pk-concept { margin-top: 20px; }
.pk-concept h2 { font-size: var(--t-2xl); font-family: var(--font-heading); line-height: 1.02; }
.pk-aka { margin-top: 6px; font-size: var(--t-s); color: var(--grey); }
.pk-def { margin-top: 14px; font-size: var(--t-m); max-width: 40em; }
.pk-practise { margin-top: 12px; max-width: 40em; padding: 12px 16px; background: var(--panel); }
.pk-pics { display: grid; gap: 22px; margin-top: 24px; }
.pk-pic { display: grid; gap: 10px; justify-items: start; }
.pk-pic .pair { align-items: center; }
.pk-scale { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 24px; align-items: flex-start; }
.pk-scale__inst { display: grid; gap: 14px; min-width: 0; flex: 1 1 360px; }
.pk-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 18px; font-size: var(--t-s); }
.pk-links > span { font-weight: 700; margin-right: 4px; }
.pk-tag { padding: 4px 9px; border: 1.5px solid var(--ink); text-decoration: none; font-weight: 600; }
.pk-tag:hover { background: var(--ink); color: var(--bg); }
.pk-barry .chip { padding: 4px 9px; background: var(--field); color: var(--fig); text-decoration: none; font-weight: 600; }
.pk-moments { margin-top: 20px; }
.pk-moments > summary { cursor: pointer; font-weight: 700; font-size: var(--t-m); list-style: none; }
.pk-moments > summary::-webkit-details-marker { display: none; }
.pk-moments > summary span { font-weight: 400; color: var(--grey); font-size: var(--t-s); margin-left: 8px; }
.pk-moments > summary::after { content: " +"; color: var(--grey); }
.pk-moments[open] > summary::after { content: " –"; }
.pk-moments ol { margin-top: 8px; }
.pk-moments li { display: grid; grid-template-columns: 4.6em minmax(0, 1fr); gap: 10px; padding: 9px 0; border-top: 1px solid var(--rule); font-size: var(--t-s); }
.pk-moments a.pk-at { text-decoration: underline; }
@media (max-width: 700px) {
  .pk-mhead .pk-title { flex-direction: column; gap: 4px; }
  .pk-concept h2 { font-size: var(--t-xl); }
}
.pk-btn--learn { background: var(--accent-line); border-color: var(--accent-line); color: var(--black); }
.parks-page .pk-learn, .pk-learn { --accent: var(--link); --field: var(--brass); --fig: var(--black); }
.pk-learn .dg-concept.p-1 rect { fill: var(--chrome); } .pk-learn .dg-concept.p-1 text { fill: var(--black); }
.pk-learn .dg-concept.p-2 rect { fill: var(--vermilion); } .pk-learn .dg-concept.p-2 text { fill: var(--paper); }
.pk-learn .dg-concept.p-3 rect { fill: var(--cobalt); } .pk-learn .dg-concept.p-3 text { fill: var(--paper); }
.pk-learn .dg-concept.p-4 rect { fill: var(--viridian); } .pk-learn .dg-concept.p-4 text { fill: var(--paper); }
.pk-learn .dg-concept.p-5 rect { fill: var(--black); } .pk-learn .dg-concept.p-5 text { fill: var(--paper); }
.pk-wheels .diagram { width: 100%; height: auto; }
.pk-localmap { margin-top: 18px; }
.dg-scroll .dg-map { max-width: none; }
.dg-wheel .dg-node text { font-size: 12px; }
.pk-vwrap { max-width: calc(900px + 2 * var(--gutter)); padding-block: 36px 72px; }
.pk-video .pk-player { max-width: 820px; }
.pk-video .pk-sec h2 { font-size: var(--t-l); font-family: var(--font-heading); }
.pk-video .pk-tx li { cursor: default; }
.pk-player .pl-float iframe { position: absolute; inset: 0; width: 100% !important; height: 100% !important; border: 0; }
.pk-player .pl-float.docked iframe { top: 30px; height: calc(100% - 30px) !important; }


/* =========================================================
   PAGE HEADERS AND TILES (landing pages; the shared header every inner page grows into)
   ========================================================= */
.phead { padding: var(--s-8) 0 var(--s-6); border-bottom: 1px solid var(--rule); }
.phead__title { font-size: var(--t-5xl); font-family: var(--font-heading); line-height: .92; letter-spacing: -.015em; font-weight: 500; }
.phead .lede { margin-top: var(--s-5); color: var(--grey); }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--s-6); padding-top: var(--s-7); }
.tile {
  display: grid; gap: var(--s-3); align-content: start; padding: var(--s-4) 0 var(--s-5);
  border-top: 2px solid var(--accent-line); text-decoration: none; color: var(--ink);
}
.tile__t { font-size: var(--t-2xl); font-family: var(--font-heading); font-weight: 500; line-height: 1; }
.tile__d { color: var(--grey); font-size: var(--t-s); line-height: 1.5; max-width: 30em; }
.tile__n { font-size: var(--t-xs); font-weight: 700; }
.tile:hover .tile__t { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 5px; }

/* ---------- sleeves for people and tunes: the part's ink, with initials (or a tune's title) printed on it ---------- */
.mono {
  display: flex; align-items: flex-end; aspect-ratio: 1; padding: 10%; overflow: hidden;
  background: var(--field); color: var(--num);
  font-weight: 500; font-family: var(--font-heading); line-height: .8; letter-spacing: -.02em; font-size: clamp(56px, 7vw, 96px);
  transition: transform .18s var(--ease);
}
.mono > span { display: block; max-width: 100%; overflow-wrap: anywhere; }
.mono--none { background: var(--panel); color: var(--ink); box-shadow: inset 0 0 0 2px var(--rule); }
.mono.p-5 { box-shadow: inset 0 0 0 1px var(--rule); }              /* a black sleeve still shows its edge on the dark page */
.mono--title { padding: 9%; font-size: clamp(22px, 2.4vw, 32px); font-family: var(--font-heading); font-weight: 500; line-height: .98; letter-spacing: -.01em; }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: var(--s-6) var(--s-5); padding-top: var(--s-6); }
.entity-list.cards li { border: 0; }
.entity-list.cards li[hidden] { display: none; }
.card { display: grid; gap: var(--s-2); align-content: start; text-decoration: none; color: var(--ink); }
.card__name { margin-top: var(--s-1); font-weight: 500; font-family: var(--font-heading); font-size: var(--t-l); line-height: 1.1; }
.card__line {
  color: var(--grey); font-size: var(--t-xs); line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.card__n { font-size: var(--t-xs); font-weight: 700; }
.card:hover .mono { transform: translateY(-6px); }
.card:hover .card__name { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }

/* ---------- person and tune pages ---------- */
.phead--entity {
  display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: var(--s-6); align-items: end;
  padding: var(--s-7) 0 var(--s-6);
}
.phead--entity .mono { font-size: 76px; }
.phead--entity .mono--title { font-size: 25px; }
.phead--entity .phead__title { font-size: var(--t-4xl); }
.phead--entity .crumb { margin-bottom: var(--s-3); }
.phead--entity .lede { margin-top: var(--s-3); font-size: var(--t-m); color: var(--grey); max-width: 40em; }
.stats { display: flex; flex-wrap: wrap; gap: var(--s-4) var(--s-6); margin-top: var(--s-5); }
.stats div { display: grid; gap: 2px; }
.stats dt { order: 2; font-size: var(--t-xs); font-weight: 600; color: var(--grey); }
.stats dd { margin: 0; font-size: var(--t-2xl); font-weight: 500; font-family: var(--font-heading); line-height: 1; font-variant-numeric: tabular-nums; }
.entity-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: var(--s-8); align-items: start; }
.entity-layout .entity-body { max-width: 860px; min-width: 0; }
.side-panel { position: sticky; top: var(--s-5); margin-top: var(--s-7); padding-top: var(--s-4); border-top: 1px solid var(--rule); }
.side-panel h2 { font-size: var(--t-l); font-family: var(--font-heading); line-height: 1.1; }
.side-panel__sub { margin-top: var(--s-1); font-size: var(--t-xs); color: var(--grey); line-height: 1.45; }
.side-panel ol { margin-top: var(--s-3); }
.side-panel li a {
  display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; gap: var(--s-2); align-items: center;
  padding: var(--s-2) 0; border-top: 1px solid var(--rule); text-decoration: none; font-size: var(--t-s); line-height: 1.3;
}
.side-panel li i { font-style: normal; font-weight: 700; color: var(--grey); font-variant-numeric: tabular-nums; }
.side-panel li a:hover span { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
@media (max-width: 1100px) {
  .entity-layout { grid-template-columns: 1fr; gap: 0; }
  .side-panel { position: static; margin-top: var(--s-8); }
}
@media (max-width: 600px) {
  .phead--entity { grid-template-columns: 1fr; gap: var(--s-4); }
  .phead--entity .mono { width: 120px; font-size: 52px; }
  .phead--entity .mono--title { font-size: 19px; }
  .phead--entity .phead__title { font-size: var(--t-3xl); }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-5) var(--s-4); }
}

/* ---------- Chris Parks: landing ---------- */
.parks-page .pk-hero { padding-block: var(--s-8) var(--s-7); }          /* block only: the .wrap keeps its side gutters */
.pk-hero--split { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s-8); align-items: end; }
.pk-start { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3) var(--s-5); margin-top: var(--s-5); }
.pk-link { font-weight: 700; color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent-line); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.pk-link:hover { text-decoration-thickness: 4px; }
.pk-course__h { padding-top: var(--s-3); border-top: 1px solid var(--rule); font-size: var(--t-l); font-family: var(--font-heading); line-height: 1.1; }
.pk-modtiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--s-2); margin-top: var(--s-4); }
.pk-modtile {
  display: grid; place-items: center; aspect-ratio: 1; background: var(--field); color: var(--num); text-decoration: none;
  font-weight: 500; font-family: var(--font-heading); font-size: 40px; line-height: 1; transition: transform .18s var(--ease);
}
.pk-modtile.p-5 { box-shadow: inset 0 0 0 1px var(--rule); }
.pk-modtile:hover { transform: translateY(-4px); }
.pk-course__note { margin-top: var(--s-3); font-size: var(--t-xs); line-height: 1.5; color: var(--grey); max-width: 30em; }

.pk-welcome__h { margin-top: var(--s-6); font-size: var(--t-s); font-weight: 700; }
.pk-first { display: grid; gap: var(--s-2); margin-top: var(--s-3); }
.pk-firstcard { display: grid; gap: 2px; padding: var(--s-3) var(--s-4); border: 1.5px solid var(--accent-line); color: var(--ink); text-decoration: none; }
.pk-firstcard b { font-size: var(--t-m); line-height: 1.25; }
.pk-firstcard span { font-size: var(--t-xs); color: var(--grey); }
.pk-firstcard:hover { background: var(--ink); color: var(--bg); }
.pk-firstcard:hover span { color: inherit; }
.pk-stagegrid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: var(--s-4); padding-top: var(--s-3); }
.pk-welcome .mono { font-size: 44px; }
.pk-welcome .mono--title { font-size: 15px; }
.pk-welcome .card__name { font-size: var(--t-m); }
@media (max-width: 900px) {
  .parks-page .pk-hero { padding-block: var(--s-6); }
  .pk-hero--split { grid-template-columns: 1fr; gap: var(--s-6); }
  .pk-modtiles { grid-template-columns: repeat(7, minmax(0, 1fr)); }
  .pk-modtile { font-size: 28px; }
}

/* ---------- Chris Parks course: module pages ---------- */
.pk-controls { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3) var(--s-5); margin-top: var(--s-5); }
.pk-inst { display: inline-flex; flex-wrap: wrap; align-items: center; font-size: var(--t-s); font-weight: 700; }
.pk-inst > span { margin-right: var(--s-3); }
.pk-inst button, .pk-allbtn {
  font: inherit; font-size: var(--t-s); font-weight: 600; min-height: 40px; padding: 8px 14px; cursor: pointer;
  color: var(--ink); background: transparent; border: 1.5px solid var(--accent-line);
}
.pk-inst button + button { margin-left: -2px; }
.pk-inst button[aria-pressed="true"], .pk-allbtn[aria-pressed="true"] { color: var(--bg); background: var(--ink); }
.pk-allbtn { display: none; }
.js .pk-allbtn { display: inline-block; }

.pk-modlayout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: var(--s-8); align-items: start; }
.pk-idea-list { position: sticky; top: var(--s-5); max-height: calc(100vh - 2 * var(--s-5)); overflow-y: auto; padding-top: var(--s-3); border-top: 1px solid var(--rule); font-size: var(--t-s); }
.pk-idea-list > summary { display: none; }
.pk-idea-link { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: var(--s-2); padding: 8px 0; border-top: 1px solid var(--rule); color: var(--grey); text-decoration: none; line-height: 1.3; }
.pk-idea-list li:first-child .pk-idea-link { border-top: 0; }
.pk-idea-link__n { font-weight: 700; font-variant-numeric: tabular-nums; color: var(--ink); }
.pk-idea-link:hover { color: var(--ink); }
.pk-idea-link[aria-current="true"] { color: var(--ink); font-weight: 700; box-shadow: -14px 0 0 -9px var(--accent-line); }

.pk-concept__no { font-size: var(--t-xs); font-weight: 700; color: var(--grey); margin-bottom: var(--s-2); }
.pk-concept h2 { font-size: var(--t-3xl); line-height: 1; }
.pk-def { margin-top: var(--s-4); font-size: 19px; line-height: 1.55; max-width: var(--measure); }
.pk-practise { margin-top: var(--s-4); max-width: var(--measure); padding: var(--s-3) var(--s-4); background: var(--panel); border-left: 3px solid var(--accent-line); }
.js .pk-single .pk-concept:not(.is-current) { display: none; }
.pk-single .pk-concept { border-top-width: 6px; }

.pk-pics { grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: var(--s-4); align-items: start; margin-top: var(--s-6); }
.pk-pic.eg { display: grid; gap: var(--s-3); justify-items: stretch; margin: 0; padding: var(--s-4); border: 1.5px solid var(--rule); }
.pk-pic__head { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); }
.pk-pic__name { font-size: var(--t-l); font-family: var(--font-heading); font-weight: 500; line-height: 1.1; }
.pk-pic__body { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--s-4); }
.pk-pic .inst { min-width: 0; }
.pk-pic .inst--piano { flex: 1 1 200px; }
.pk-pic .inst--staff { flex: 1 1 100%; }
.pk-pic .piano { width: 100%; height: auto; }
.pk-pic .fb-label { display: none; }                      /* the card header names the chord */
html[data-inst="guitar"] .pk-pic .inst--piano, html[data-inst="piano"] .pk-pic .inst--guitar { display: none; }
html[data-inst="guitar"] .pk-scale .piano, html[data-inst="piano"] .pk-scale .fb-neck { display: none; }
.fb-box .fb-dot.is-chord { fill: var(--cobalt); stroke: var(--paper); stroke-width: 1.5; }
.fb-box .fb-dot.is-root { fill: var(--vermilion); stroke: var(--paper); stroke-width: 1.5; }
.fb-open.is-root { stroke: var(--vermilion); stroke-width: 2; }
.fb-open.is-chord { stroke: var(--cobalt); stroke-width: 2; }

.pk-related { display: grid; gap: var(--s-3); margin-top: var(--s-6); }
.pk-related .pk-links { margin-top: 0; }
.pk-more { margin-top: var(--s-6); padding-top: var(--s-3); border-top: 1px solid var(--rule); }
.pk-more > summary { display: flex; align-items: baseline; gap: var(--s-3); cursor: pointer; list-style: none; font-size: var(--t-m); font-weight: 700; }
.pk-more > summary::-webkit-details-marker { display: none; }
.pk-more > summary span { font-weight: 400; font-size: var(--t-s); color: var(--grey); }
.pk-more > summary::after { content: "+"; margin-left: auto; font-size: 26px; font-weight: 400; line-height: 1; }
.pk-more[open] > summary::after { content: "\2013"; }
.pk-more__h { margin-top: var(--s-4); font-size: var(--t-s); font-weight: 700; }
.pk-moments-list li { display: grid; grid-template-columns: 4.6em minmax(0, 1fr); gap: var(--s-3); padding: 9px 0; border-top: 1px solid var(--rule); font-size: var(--t-s); }
.pk-moments-list a.pk-at { text-decoration: underline; }
.pk-idea-nav { display: flex; justify-content: space-between; gap: var(--s-4); margin-top: var(--s-7); padding-top: var(--s-4); border-top: 1px solid var(--rule); }
.pk-idea-nav a { padding: 10px 0; font-size: var(--t-m); font-weight: 700; text-decoration: none; }
.pk-idea-nav a:hover { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 4px; text-decoration-color: var(--vermilion); }
.pk-idea-nav__prev::before { content: "\2190\00a0"; }
.pk-idea-nav__next::after { content: "\00a0\2192"; }

@media (max-width: 900px) {
  .pk-modlayout { grid-template-columns: 1fr; gap: var(--s-5); }
  .pk-idea-list { position: static; max-height: none; overflow: visible; padding-top: 0; }
  .pk-idea-list > summary { display: flex; justify-content: space-between; align-items: center; cursor: pointer; list-style: none; padding: var(--s-3) 0; font-weight: 700; font-size: var(--t-m); }
  .pk-idea-list > summary::-webkit-details-marker { display: none; }
  .pk-idea-list > summary::after { content: "+"; font-size: 26px; font-weight: 400; }
  .pk-idea-list[open] > summary::after { content: "\2013"; }
  .pk-idea-list > summary span { margin-left: var(--s-2); color: var(--grey); font-weight: 400; font-size: var(--t-s); }
  .pk-idea-list > summary { flex-wrap: wrap; justify-content: flex-start; }
  .pk-idea-list > summary::after { margin-left: auto; }
  .pk-concept h2 { font-size: var(--t-2xl); }
}
@media (max-width: 600px) {
  .pk-controls { flex-direction: column; align-items: flex-start; }
  .pk-def { font-size: 18px; }
}

/* chord and note cards on a video page: the time sits under the name */
.pk-pic__head > span { display: grid; gap: 2px; }
.pk-pic__at { font-size: var(--t-xs); font-weight: 700; color: var(--ink); text-decoration: underline; text-decoration-color: var(--vermilion); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.pk-sec .pk-sub { margin-top: var(--s-2); font-size: var(--t-s); color: var(--grey); }
.parks { --accent: var(--link); }                    /* the Hear it triangle and underlines on every Chris Parks page */

/* a chord on a wheel plays when tapped */
.dg-play { cursor: pointer; }
.dg-play:hover circle { stroke: var(--ink); stroke-width: 3; }
.dg-play:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.dg-play.is-on circle { fill: var(--vermilion); }
.dg-play.is-on text { fill: var(--black); }
.pk-hint { margin-top: var(--s-3); font-size: var(--t-xs); color: var(--grey); }
