/* Layout: the v.3 "sheet" (oxblood leather, treble clef, flying score, Chad) becomes a full-width hero;
   the four smoked-glass panels flow 2x2 on desktop and stack on phones; the slanted red tabs stay as the nav. */
:root {
  color-scheme: dark;
  --ink: #0a0605;          /* page ground, black with a red bias */
  --leather: #2b0e0b;      /* oxblood from the v.3 background */
  --leather-hi: #521913;
  --leather-lo: #2a0b08;
  --panel: rgba(0, 0, 0, 0.6); /* v.3 smoked glass */
  --line: #4a2420;         /* the #422 panel border, a touch lifted */
  --text: #cdc4bb;         /* rose-cream body, readable successor to #d66 */
  --muted: #b48c84;
  --gold: #ffe46b;         /* headings and wordmark, softened #ff3 */
  --tab: #b4281e;          /* nav tab red, rgb(180,40,30) */
  --tab-hot: #f01405;      /* tab hover, rgb(240,20,5) */
  --link: #ff6a58;
  --well: #0d0605;         /* inside of the tab panel */

  --f-display: "Oswald", "Arial Narrow", Arial, sans-serif;
  --f-tab: "Spectral", Georgia, "Times New Roman", serif;
  --f-body: "Source Sans 3", "Segoe UI", Arial, sans-serif;

  --step-0: 1.0625rem;
  --step-1: 1.3rem;
  --step-2: 1.65rem;
  --step-3: clamp(2rem, 3.6vw, 3.1rem);
  --radius: 30px;
}
* { box-sizing: border-box; }
html { background: var(--ink); }
body {
  margin: 0;
  /* oxblood leather: warm highlights over a dark base, with a faint grain, so floating panels cast visible shadows */
  background:
    radial-gradient(85% 45% at 12% 0%, rgba(170, 52, 40, .6), transparent 70%),
    radial-gradient(60% 50% at 100% 35%, rgba(140, 40, 30, .45), transparent 70%),
    radial-gradient(70% 40% at 30% 85%, rgba(120, 34, 26, .45), transparent 70%),
    radial-gradient(140% 100% at 50% 50%, transparent 55%, rgba(0, 0, 0, .55)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .5 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E"),
    linear-gradient(var(--leather-hi), #3b110d 45%, var(--leather-lo));
  color: var(--text);
  font: 400 var(--step-0)/1.6 var(--f-body);
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--ink); }
a { color: var(--link); text-decoration: none; }
a:hover { color: var(--gold); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: 1290px; margin: 0 auto; }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 190px; gap: 30px; align-items: start; }
.layout > main { min-width: 0; }

.mock-note {
  font: 500 0.78rem/1 var(--f-display); letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted); text-align: center; padding-block: 10px 0;
}

/* Header */
header.site { position: relative; padding-block: 18px 24px; }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.wordmark {
  font: 500 clamp(1.35rem, 4.2vw, 1.9rem)/1 var(--f-display);
  letter-spacing: 0.42em; color: var(--gold); white-space: nowrap;
  text-shadow: 0 2px 0 rgba(0,0,0,.6);
}
.wordmark:hover { color: var(--gold); }
/* Wide screens: the v.3 tab well. Tabs sit in a recessed panel, flush to its left wall;
   on hover each one slides out to the right like a sheet drawn from an envelope. */
.rail { position: sticky; top: 24px; display: grid; gap: 22px; }
.well {
  position: relative;
  list-style: none; margin: 0; padding: 9px 0 2px;
  background: var(--well); border: 1px solid var(--line); border-radius: 15px;
  box-shadow: 0 1px 0 rgba(255,210,190,.08), 0 -1px 0 rgba(0,0,0,.6); /* carved lip: dark above, light catch below */
  overflow: hidden;
}
.well::after { /* the recess shadow, laid over the tabs so they look sunk into the leather */
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 1;
  box-shadow: inset 0 0 6px 3px #000, inset 5px 6px 9px rgba(0,0,0,.75);
}
.well li { text-align: left; }
.well a {
  position: relative; display: inline-block; overflow: hidden;
  font: 700 1.04rem/1 var(--f-tab); color: #000; white-space: nowrap;
  background: var(--tab);
  padding: 7px 28px 7px 10px; margin-bottom: 7px;
  box-shadow: inset 7px 0 5px rgba(60,30,30,.8);
  opacity: .8; /* dimmed until hovered, focused or current */
  transition: padding .25s ease, background .25s ease, box-shadow .25s ease, opacity .25s ease;
}
.well a::after { /* slanted right edge, cut in the well's own color */
  content: ""; position: absolute; right: 0; top: 0;
  border-style: solid; border-width: 70px 20px 0 0;
  border-color: transparent var(--well) transparent transparent;
}
.well a:hover, .well a:focus-visible, .well a[aria-current="page"] {
  padding-left: 35px; color: #000; background: var(--tab-hot); opacity: 1;
  box-shadow: inset 3px 0 5px rgba(60,30,30,.5);
}
.well a:focus-visible { outline: none; }

/* Narrow screens: no tabs, a plain drop-down list under the header. */
.menu-btn {
  display: none; font: 600 0.95rem/1 var(--f-display); letter-spacing: .14em; text-transform: uppercase;
  color: var(--text); background: transparent; border: 1px solid var(--line); padding: 10px 14px; border-radius: 10px; cursor: pointer;
}
.menu-btn[aria-expanded="true"] { border-color: var(--gold); color: var(--gold); }
.mnav { display: none; }

@media (max-width: 1040px) {
  .layout { grid-template-columns: minmax(0, 1fr); }
  .rail { display: none; }
  header.site {
    position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; padding-block: 12px;
    background: rgba(40, 11, 8, .94); backdrop-filter: blur(6px);
    margin-inline: calc(-1 * max(16px, env(safe-area-inset-left, 0px))); padding-inline: max(16px, env(safe-area-inset-left, 0px));
    box-shadow: 0 6px 14px rgba(0,0,0,.6);
  }
  .menu-btn { display: inline-block; }
  .mnav.open {
    /* drops from under the Menu button, right edges aligned, only as wide as its items */
    display: block; position: absolute; top: calc(100% - 4px);
    right: max(16px, env(safe-area-inset-right, 0px)); min-width: 220px;
    background: #1c0806; border: 1px solid var(--line); border-radius: 14px; z-index: 6;
    box-shadow: 10px 14px 24px rgba(0,0,0,.85);
  }
  .mnav ul { list-style: none; margin: 0; padding: 4px 0; }
  .mnav a {
    display: block; padding: 13px 20px; border-bottom: 1px solid var(--line); text-align: right;
    font: 500 1.05rem/1.2 var(--f-display); letter-spacing: .1em; text-transform: uppercase; color: var(--text);
  }
  .mnav li:last-child a { border-bottom: 0; }
  .mnav a[aria-current="page"] { color: var(--gold); box-shadow: inset -4px 0 0 var(--tab); }
  .mnav a:hover { color: var(--gold); }
}

/* Hero */
/* The image is a backdrop; the intro stays in flow, so the hero grows to fit the text instead of clipping it. */
.hero {
  position: relative; display: flex; align-items: flex-end; aspect-ratio: 900 / 520; max-width: 100%;
  overflow: hidden; border-radius: 56px;
  border: 1px solid var(--line);
  box-shadow: 14px 16px 22px rgba(0,0,0,.85);
  background: var(--leather);
}
.hero img { position: absolute; inset: 0; display: block; width: 100%; max-width: 100%; height: 100%; object-fit: cover; object-position: 50% 100%; }
.hero .intro {
  position: relative; width: min(52%, 34rem);
  display: flex; flex-direction: column; gap: 18px;
  padding: 2.5rem 0 7% 6%;
}
.hero h1 {
  margin: 0; font: 500 var(--step-3)/1.08 var(--f-display); color: var(--gold);
  text-wrap: balance; text-shadow: 0 3px 12px rgba(0,0,0,.9);
}
.hero p.lede {
  margin: 0; font-size: 1.12rem; max-width: 30ch; color: var(--text);
  text-shadow: 0 2px 8px rgba(0,0,0,.95);
}
.ctas { display: flex; flex-wrap: wrap; gap: 10px; }
.btn {
  display: inline-block; font: 600 0.95rem/1 var(--f-display); letter-spacing: .08em; text-transform: uppercase;
  padding: 13px 18px; border-radius: 999px; border: 1px solid var(--tab);
  color: var(--text); background: rgba(10,4,3,.6);
}
.btn.primary { background: var(--tab); color: #000; border-color: var(--tab); }
.btn:hover { border-color: var(--gold); color: var(--gold); }
.btn.primary:hover { background: var(--tab-hot); color: #000; }

@media (max-width: 760px) {
  /* Phones: a tall crop of the art, text over the dark upper leather, Chad and the keyboard below. */
  .hero { border-radius: 32px; aspect-ratio: 3 / 4.7; align-items: flex-start; }
  .hero img { object-position: 100% 100%; }
  .hero::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(180deg, rgba(28,7,5,.9) 0%, rgba(28,7,5,.62) 40%, rgba(28,7,5,0) 60%);
  }
  .hero .intro { z-index: 1; width: auto; gap: 14px; padding: 24px 20px 0; }
  .hero h1 { font-size: 2rem; }
  .hero p.lede { font-size: 1.02rem; max-width: 28ch; }
  .ctas { gap: 8px; }
  .btn { font-size: 0.82rem; padding: 11px 14px; }
}

/* Panels */
.panels {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px;
  padding-block: 34px;
}
@media (max-width: 760px) { .panels { grid-template-columns: minmax(0, 1fr); gap: 18px; padding-block: 22px; } }
.panel {
  min-width: 0;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 12px 12px 14px rgba(0,0,0,.9), inset 0 1px 0 rgba(255,220,200,.06);
  padding: 26px 28px;
  display: flex; flex-direction: column; gap: 14px;
}
.panel h2 {
  margin: 0; font: 500 var(--step-2)/1.1 var(--f-display); color: var(--gold); letter-spacing: .02em;
  text-wrap: balance;
}
.panel h2 a { color: inherit; }
.panel p { margin: 0; }
.more {
  margin-top: auto; align-self: flex-start;
  font: 600 0.95rem/1 var(--f-display); letter-spacing: .1em; text-transform: uppercase; color: var(--link);
  display: inline-flex; align-items: center; gap: 8px; padding-top: 6px;
}
.more::after { content: "\2192"; transition: transform .25s ease; }
.more:hover::after { transform: translateX(6px); }

.news { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.news time {
  display: block; font: 500 0.82rem/1.2 var(--f-display); letter-spacing: .12em; text-transform: uppercase; color: var(--gold);
}

.album { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 16px; align-items: start; }
.album img { width: 96px; height: 96px; border-radius: 6px; box-shadow: 0 6px 14px rgba(0,0,0,.7); }
.album h3 { margin: 0 0 2px; font: 600 1.1rem/1.2 var(--f-body); font-style: italic; color: var(--text); }
.album p { font-size: 0.98rem; color: var(--muted); }
.album .buy { font-size: 0.95rem; margin-top: 4px; }

.lessons { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 18px; align-items: start; }
.lessons img { width: 120px; height: 150px; object-fit: cover; object-position: 50% 20%; border-radius: 14px; }
.facts { display: flex; flex-wrap: wrap; gap: 8px; }
.fact {
  font: 500 0.8rem/1 var(--f-display); letter-spacing: .08em; text-transform: uppercase;
  color: var(--gold); border: 1px solid var(--line); border-radius: 999px; padding: 7px 11px;
}

.articles { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.articles a { color: var(--text); font-weight: 600; }
.articles a:hover { color: var(--gold); }
.articles span { display: block; font-size: 0.9rem; color: var(--muted); }

@media (max-width: 420px) {
  .album, .lessons { grid-template-columns: minmax(0, 1fr); }
  .lessons img { width: 100%; height: 220px; }
}

/* Elsewhere */
.elsewhere { border-top: 1px solid var(--line); padding-block: 26px; display: grid; gap: 16px; }
.elsewhere h2 { margin: 0; font: 500 1.05rem/1 var(--f-display); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.sites { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 760px) { .sites { grid-template-columns: minmax(0, 1fr); } }
.site-link { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 16px; align-items: center; color: var(--text); }
.site-link img { width: 112px; height: 112px; object-fit: cover; border-radius: 12px; opacity: .8; transition: opacity .25s ease; }
.site-link:hover img { opacity: 1; }
.site-link b { display: block; font: 500 1.15rem/1.2 var(--f-display); color: var(--link); letter-spacing: .03em; }
.site-link:hover b { color: var(--gold); }
.site-link span { font-size: 0.95rem; color: var(--muted); }

footer.site-foot {
  border-top: 1px solid var(--line); padding-block: 22px 40px;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; color: var(--muted); font-size: 0.92rem;
}
footer.site-foot nav { display: flex; flex-wrap: wrap; gap: 18px; }

main > :last-child:not(.panels):not(.hero), .panel.rd-guide { margin-bottom: 34px; } /* keep the last panel clear of the footer rule */
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* Player launcher spot inside the hero: above Chad's head on wide screens, beside him on phones */
.hero .tp-anchor { position: absolute; top: 6%; right: 5.5%; z-index: 2; }
/* Where the side menu shows, the launcher sits above it (as on every page), not in the picture */
@media (min-width: 1041px) { .hero .tp-anchor { display: none; } }
@media (max-width: 760px) { .hero .tp-anchor { top: auto; right: auto; left: 18px; bottom: 22px; } }
.rail .tp-anchor:empty { margin-bottom: -22px; }  /* no gap until the launcher is placed in it */
.rail .tp-anchor .tp-launch { width: max-content; margin-inline: auto; }
main:focus { outline: none; }

/* Inner pages */
.page-head { padding-block: 6px 26px; display: grid; gap: 10px; }
.page-head h1 { margin: 0; font: 500 var(--step-3)/1.05 var(--f-display); color: var(--gold); text-shadow: 0 3px 12px rgba(0,0,0,.8); }
.page-head p { margin: 0; max-width: 62ch; }

/* Recordings */
.recs { display: grid; gap: 26px; padding-bottom: 34px; }
.panel.rec { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 18px 26px; align-items: start; scroll-margin-top: 90px; }
.rec-cover { display: block; width: 200px; height: 200px; border-radius: 8px; }
.rec-cover img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 8px; box-shadow: 10px 12px 18px rgba(0,0,0,.85);
  opacity: .6; transition: opacity .25s ease; }
.rec-cover:hover img, .rec-cover:focus-visible img, .rec-cover:active img { opacity: 1; }
.rec-body { display: grid; gap: 10px; min-width: 0; }
.rec-body p { margin: 0; }
.rec-kind { font: 500 .85rem/1.3 var(--f-display); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.rec-live { font-size: .95rem; color: var(--muted); }
.rec-live b, .rec-sheet span {
  font: 600 .78rem/1 var(--f-display); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-right: 6px;
}
.rec-live b::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: var(--tab-hot); box-shadow: 0 0 6px var(--tab-hot); vertical-align: 1px; }
.rec-buy { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 4px; }
.rec-sheet { font-size: .95rem; }
.rec-tracks { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 12px; }
.rec-tracks summary {
  cursor: pointer; width: max-content; list-style: none;
  font: 600 .9rem/1 var(--f-display); letter-spacing: .12em; text-transform: uppercase; color: var(--link);
}
.rec-tracks summary::-webkit-details-marker { display: none; }
.rec-tracks summary::after { content: " \25BE"; }
.rec-tracks[open] summary::after { content: " \25B4"; }
.rec-tracks summary:hover { color: var(--gold); }
.rec-tracks ol { list-style: none; margin: 12px 0 0; padding: 0; columns: 2 320px; column-gap: 34px; }
.rec-tracks li { display: grid; grid-template-columns: 2em minmax(0, 1fr) auto; gap: 8px; padding: 3px 0; break-inside: avoid; font-size: .95rem; }
.rec-tracks .tl-comp { display: block; padding-top: 10px; font: 500 .8rem/1.2 var(--f-display); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); break-after: avoid; }
.rec-tracks .tl-comp:first-child { padding-top: 0; }
.tl-n, .tl-d { color: var(--muted); font-variant-numeric: tabular-nums; }
@media (max-width: 760px) {
  .page-head { padding-block: 18px 18px; }
  .panel.rec { grid-template-columns: 150px minmax(0, 1fr); gap: 16px 20px; padding: 22px; }
  .rec-cover { width: 150px; height: 150px; }
}
/* Only on phones does the text wrap under the cover; wider screens keep everything beside it */
@media (max-width: 520px) {
  .panel.rec { grid-template-columns: 110px minmax(0, 1fr); gap: 14px 16px; padding: 20px; }
  .rec-cover { width: 110px; height: 110px; grid-row: 1 / span 2; }
  .rec-body > h2 { grid-row: 1; align-self: end; }
  .rec-body > .rec-kind { grid-row: 2; align-self: start; }
  .rec-body { display: contents; }
  .rec-body > h2, .rec-body > .rec-kind { grid-column: 2; }
  .rec-body > :not(h2):not(.rec-kind) { grid-column: 1 / -1; }
}

/* Sheet music */
.sm-sec { display: grid; gap: 18px; padding-bottom: 34px; }
.sm-sec > h2 { margin: 0; font: 500 1.05rem/1 var(--f-display); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.sm-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; }
.panel.sm { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 20px; align-items: start; padding: 22px; }
/* Covers are dimmed to sit with the dark page, and light up on hover or tap; each is a buy link */
.sm-cover { display: block; border-radius: 4px; }
.sm-cover img { display: block; width: 100%; height: auto; border-radius: 4px; box-shadow: 8px 10px 16px rgba(0,0,0,.85);
  opacity: .6; transition: opacity .25s ease; }
.sm-cover:hover img, .sm-cover:focus-visible img, .sm-cover:active img { opacity: 1; }
.panel.sm > .sm-cover { width: 130px; }
.panel.sm-wide { grid-column: 1 / -1; grid-template-columns: 220px minmax(0, 1fr); }
.panel.sm-wide > .sm-cover { width: 220px; }
.sm-body { display: grid; gap: 8px; min-width: 0; }
.sm-body h3 { margin: 0; font: 500 1.35rem/1.15 var(--f-display); color: var(--gold); }
.sm-body p { margin: 0; }
.sm-level { font: 500 .8rem/1.3 var(--f-display); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.sm-buy { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding-top: 6px; }
.sm-hear { font: 600 .85rem/1 var(--f-display); letter-spacing: .1em; text-transform: uppercase; }
@media (max-width: 1240px) { .sm-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 520px) {
  .panel.sm, .panel.sm-wide { grid-template-columns: 96px minmax(0, 1fr); gap: 14px; padding: 18px; }
  .panel.sm > .sm-cover { width: 96px; }
  .sm-body h3 { font-size: 1.15rem; }
}

/* About: photo and key facts beside the bio */
.about { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 26px; align-items: start; padding-bottom: 34px; }
.panel.about-card { padding: 18px; gap: 16px; }
.about-photo { display: block; width: 100%; height: auto; border-radius: 14px; box-shadow: 8px 10px 16px rgba(0,0,0,.85); }
.about-facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; font-size: .95rem; line-height: 1.4; }
.about-facts b { display: block; font: 500 .78rem/1.2 var(--f-display); letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin-bottom: 2px; }
.panel.about-text { display: block; padding: 28px 32px; }
.about-text p { margin: 0 0 1em; }
.about-more { padding-top: 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: .95rem; }
.about-text p.about-more { margin: 0; }
@media (max-width: 900px) {
  .about { grid-template-columns: minmax(0, 1fr); }
  .panel.about-card { display: grid; grid-template-columns: 170px minmax(0, 1fr); align-items: start; }
}
@media (max-width: 520px) {
  .panel.about-card { grid-template-columns: 110px minmax(0, 1fr); gap: 14px; padding: 16px; }
  .about-facts { gap: 9px; font-size: .9rem; }
  .panel.about-text { padding: 22px 20px; }
}

/* Latest News: one timeline, newest first, grouped by year, filterable by kind */
.nw-filters { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 6px; }
.nw-f {
  font: 500 .8rem/1 var(--f-display); letter-spacing: .1em; text-transform: uppercase; cursor: pointer;
  color: var(--text); background: rgba(10,4,3,.6); border: 1px solid var(--line); border-radius: 999px; padding: 9px 13px;
}
.nw-f:hover { border-color: var(--gold); color: var(--gold); }
.nw-f[aria-pressed="true"] { background: var(--tab); border-color: var(--tab); color: #000; }
.nw-all { display: grid; gap: 26px; padding-bottom: 34px; }
.nw-year { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 0 22px; align-items: start; }
.nw-year[hidden] { display: none; }
.nw-year h2 { margin: 0; position: sticky; top: 24px; font: 500 var(--step-2)/1 var(--f-display); color: var(--gold); padding-top: 22px; text-align: right; }
.nw-list {
  list-style: none; margin: 0; padding: 4px 28px;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 12px 12px 14px rgba(0,0,0,.9), inset 0 1px 0 rgba(255,220,200,.06);
}
.nw { padding: 18px 0; border-bottom: 1px solid var(--line); }
.nw:last-child { border-bottom: 0; }
/* when a filter hides later items, the last item still showing gets no divider either */
.nw:not(:has(~ .nw:not([hidden]))) { border-bottom: 0; }
.nw[hidden] { display: none; }
.nw-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-bottom: 6px; }
.nw-meta time { font: 500 .85rem/1.2 var(--f-display); letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.nw-place { font-size: .9rem; color: var(--muted); }
.nw-kind { margin-left: auto; font: 500 .7rem/1 var(--f-display); letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
  border: 1px solid var(--line); border-radius: 999px; padding: 5px 9px; }
.nw-body p { margin: 0 0 .7em; }
.nw-body p:last-child { margin-bottom: 0; }
@media (max-width: 760px) {
  .nw-year { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .nw-year h2 { position: static; text-align: left; padding-top: 0; }
  .nw-list { padding: 2px 20px; }
  .nw-kind { margin-left: 0; }
}

/* Contact */
.panel.contact { display: block; padding: 28px 32px; max-width: 640px; }
.contact-list { margin: 0 0 22px; display: grid; gap: 16px; }
.contact-list dt { font: 500 .78rem/1.2 var(--f-display); letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin-bottom: 3px; }
.contact-list dd { margin: 0; font-size: 1.25rem; }
.contact-note { margin: 0; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); }
@media (max-width: 520px) { .panel.contact { padding: 22px 20px; } }

/* Press kit */
.panel.pk { display: block; padding: 26px 30px; margin-bottom: 22px; }
.pk h2 { margin: 0 0 8px; font: 500 var(--step-2)/1.1 var(--f-display); color: var(--gold); }
.pk-hint { margin: 0 0 18px; color: var(--muted); font-size: .95rem; }
.pk-bio { padding: 16px 0; border-top: 1px solid var(--line); }
.pk-bio-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.pk-bio h3 { margin: 0; font: 500 .8rem/1.2 var(--f-display); letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.pk-text p { margin: 0 0 .9em; }
.pk-text p:last-child { margin-bottom: 0; }
.pk-copy { font: 600 .8rem/1 var(--f-display); letter-spacing: .1em; text-transform: uppercase; color: var(--link); background: none; border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; cursor: pointer; }
.pk-copy:hover, .pk-copy:focus-visible { color: var(--gold); border-color: var(--gold); }
.pk-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 22px; }
.pk-photo { margin: 0; display: grid; gap: 8px; align-content: start; }
.pk-photo img { width: 100%; height: auto; border-radius: 12px; box-shadow: 6px 8px 14px rgba(0,0,0,.8); display: block; }
.pk-photo:has(img[src*="at-piano"]) { grid-column: span 2; }
.pk-photo figcaption { display: grid; gap: 2px; font-size: .9rem; }
.pk-photo figcaption span { color: var(--muted); font-size: .82rem; }
.pk-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.pk-list b { display: block; font: 500 .78rem/1.2 var(--f-display); letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin-bottom: 2px; }
.pk-quote { padding-top: 14px; padding-bottom: 14px; border-top: 1px solid var(--line); }
.pk-quote:first-of-type { border-top: 0; }
.pk-quote p { margin: 0 0 6px; }
.pk-quote cite { font-style: normal; color: var(--muted); font-size: .92rem; }
.pk-more { margin-top: 6px; }
.pk-more summary { cursor: pointer; color: var(--link); padding: 10px 0; }
.pk-review { margin: 14px 0 0; padding-top: 14px; border-top: 1px solid var(--line); }
.pk-back { margin: 0 0 6px; }
.pk-article p { margin: 0 0 1em; max-width: 70ch; }
.pk-article p:last-child { margin-bottom: 0; }
@media (max-width: 520px) { .panel.pk { padding: 20px 18px; } .pk-photos { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; } }
.pk-view { display: block; cursor: zoom-in; border-radius: 12px; }
.pk-view:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* Photo popup (press kit) */
html.lb-open { overflow: hidden; }
.lb { position: fixed; inset: 0; z-index: 3000; display: grid; place-items: center; background: rgba(8, 3, 2, .92); cursor: zoom-out; transition: background-color .4s ease; animation: lb-in .4s ease; }
@keyframes lb-in { from { background: rgba(8, 3, 2, 0); } }
.lb-img { max-width: min(96vw, 1800px); max-height: 94vh; width: auto; height: auto; border-radius: 6px; box-shadow: 0 10px 40px rgba(0,0,0,.7); opacity: 0; transition: opacity .2s, transform .42s cubic-bezier(.22, .7, .2, 1); cursor: default; }
.lb-ready .lb-img { opacity: 1; }
.lb-load { position: absolute; color: var(--muted); font: 500 .9rem/1 var(--f-display); letter-spacing: .12em; text-transform: uppercase; }
.lb-ready .lb-load { display: none; }
.lb-close { transition: opacity .2s, background .15s; position: fixed; top: max(14px, env(safe-area-inset-top)); right: max(14px, env(safe-area-inset-right)); z-index: 1; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255,255,255,.45); background: rgba(20, 8, 6, .85); color: #fff; font: 400 30px/1 system-ui, sans-serif; cursor: pointer; display: grid; place-items: center; padding: 0 0 3px; }
.lb-close:hover, .lb-close:focus-visible { background: var(--link); border-color: var(--gold); outline: none; }

/* ---- Read Twedt (index, posts, comments) ---- */
.rd-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 22px; }
.rd-f, .rd-v { font: 600 14px/1 var(--f-body); color: var(--text); background: rgba(255,255,255,.04); border: 1px solid var(--line); border-radius: 999px; padding: 9px 14px; cursor: pointer; }
.rd-f span, .rd-v span { color: var(--muted); font-weight: 400; margin-left: 4px; }
.rd-f:hover, .rd-v:hover { border-color: var(--tab); }
.rd-f[aria-pressed="true"], .rd-v[aria-pressed="true"] { background: var(--tab); border-color: var(--tab-hot); color: #fff; }
.rd-f[aria-pressed="true"] span, .rd-v[aria-pressed="true"] span { color: #f6d9d3; }
.rd-views { margin-bottom: 14px; align-items: center; }
.rd-searchrow { display: flex; align-items: center; gap: 12px; margin: 0 0 16px; }
.rd-search { flex: 1 1 280px; max-width: 460px; font: 400 16px/1.2 var(--f-body); color: var(--text); background: rgba(0,0,0,.45); border: 1px solid var(--line); border-radius: 999px; padding: 10px 16px; }
.rd-search:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
.rd-hits { font-size: 14px; color: var(--muted); }
.rd-none { color: var(--muted); margin: 8px 0; } .rd-none[hidden], .rd-grp[hidden], .rd-gl li[hidden] { display: none; }
.rd-count { font: 400 14px/1 var(--f-body); color: var(--muted); margin-left: 4px; }
.rd-guide[hidden], .rd[hidden] { display: none; }
.rd-ser { margin-left: 8px; font-size: 13px; color: var(--muted); }
/* Quotes, everywhere: plain indent, same amount left and right, no lines or boxes */
blockquote { margin: 1em 0; padding: 0 2.2em; border: 0; background: none; color: var(--muted); font-style: italic; }
blockquote p { margin: 0 0 .7em; }
blockquote > :last-child { margin-bottom: 0; }
.rd-grp + .rd-grp { margin-top: 0; }
.rd-q { margin: 0 0 24px; }
.rd-grp h2 { margin: 0 0 8px; font: 400 26px/1.1 var(--f-display); color: var(--gold); letter-spacing: .02em; }
.rd-gl { margin: 0; padding: 0; list-style: none; }
.rd-gl li { padding: 9px 0; border-top: 1px solid var(--line); }
.rd-gl a { font: 600 18px/1.35 var(--f-body); color: var(--link); text-decoration: none; }
.rd-gl a:hover { text-decoration: underline; }
.rd-year h2 { margin: 26px 0 6px; font: 400 26px/1.1 var(--f-display); color: var(--gold); letter-spacing: .02em; }
.rd-list { list-style: none; margin: 0; padding: 0; }
.rd-item { padding: 16px 0; border-top: 1px solid var(--line); }
.rd-item[hidden] { display: none; }
.rd-t { font: 600 20px/1.3 var(--f-body); color: var(--link); text-decoration: none; }
.rd-t:hover { text-decoration: underline; }
.rd-m { margin: 4px 0 6px; font-size: 14px; color: var(--muted); }
.rd-item p { margin: 0; color: var(--text); }
.rd-meta { color: var(--muted); }
.rd-post { font-size: 18px; line-height: 1.7; }
.rd-post > *:first-child { margin-top: 0; }
.rd-post p, .rd-post ul, .rd-post ol { margin: 0 0 1.1em; }
.rd-post h2, .rd-post h3, .rd-post h4 { font-family: var(--f-display); font-weight: 400; color: var(--gold); line-height: 1.2; margin: 1.6em 0 .5em; }
.rd-post a { color: var(--link); overflow-wrap: anywhere; }
.rd-post img { max-width: 100%; height: auto; border-radius: 6px; }
.rd-fig { margin: 1.4em 0; }
.rd-fig img { display: block; margin: 0 auto; }
.rd-fig figcaption { margin-top: 6px; font-size: 14px; color: var(--muted); text-align: center; }
.rd-post table { border-collapse: collapse; max-width: 100%; display: block; overflow-x: auto; margin: 1.2em 0; font-size: 16px; }
.rd-post th, .rd-post td { border: 1px solid var(--line); padding: 6px 10px; text-align: left; vertical-align: top; }
.rd-post iframe { max-width: 100%; aspect-ratio: 16 / 9; width: 100%; height: auto; border: 0; border-radius: 6px; }
.rd-post audio { width: 100%; }
.rd-post details { margin: .9em 0; border: 1px solid var(--line); border-radius: 8px; background: rgba(255,255,255,.03); }
.rd-post summary { cursor: pointer; padding: 10px 14px; font-weight: 600; color: var(--gold); }
.rd-post details > *:not(summary) { margin-left: 14px; margin-right: 14px; }
.rd-post details[open] { padding-bottom: 8px; }
.rd-comments h2 { margin-top: 0; }
.rd-cs { list-style: none; margin: 0; padding: 0; }
.rd-cs .rd-cs { margin-left: 18px; padding-left: 14px; border-left: 2px solid var(--line); }
.rd-c { padding: 14px 0 2px; }
.rd-c-h { font-size: 14px; color: var(--muted); }
.rd-c-h b { color: var(--text); font-size: 16px; margin-right: 6px; }
.rd-c-h a { color: var(--link); }
.rd-c-b { margin: 4px 0 8px; overflow-wrap: anywhere; }
.rd-c-b p { margin: 0 0 .7em; }
.rd-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 18px 0 8px; }
.rd-nav a { display: block; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: rgba(0,0,0,.35); color: var(--text); text-decoration: none; }
.rd-nav a:hover { border-color: var(--tab); }
.rd-nav a span { display: block; font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 3px; }
.rd-next { text-align: right; }
@media (max-width: 640px) { .rd-nav { grid-template-columns: 1fr; } .rd-post { font-size: 17px; } }

/* Read Twedt: inline audio clip player */
.rd-audio { display: flex; align-items: center; gap: 14px; margin: 1.2em 0; padding: 12px 16px; border: 1px solid var(--line); border-radius: 14px; background: rgba(0,0,0,.4); }
.rd-audio > a { color: var(--link); }
.rd-play { flex: none; width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer; background: radial-gradient(circle at 35% 30%, var(--tab-hot), var(--tab) 60%, #6e140d); color: #fff; display: grid; place-items: center; box-shadow: 0 2px 8px rgba(0,0,0,.5); }
.rd-play:hover { filter: brightness(1.12); }
.rd-play svg { width: 24px; height: 24px; fill: currentColor; }
.rd-ic-pause { display: none; }
.rd-audio.playing .rd-ic-play { display: none; }
.rd-audio.playing .rd-ic-pause { display: inline; }
.rd-a-body { flex: 1; min-width: 0; }
.rd-a-label { font: 600 15px/1.3 var(--f-body); color: var(--gold); margin-bottom: 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rd-a-row { display: flex; align-items: center; gap: 12px; }
.rd-time { flex: none; font: 14px/1 var(--f-body); color: var(--muted); min-width: 5.6em; text-align: right; font-variant-numeric: tabular-nums; }
.rd-seek { flex: 1; min-width: 0; -webkit-appearance: none; appearance: none; height: 6px; border-radius: 3px; cursor: pointer; --p: 0%; background: linear-gradient(90deg, var(--tab-hot) var(--p), #3a1c18 var(--p)); }
.rd-seek::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; border-radius: 50%; background: var(--gold); border: 0; }
.rd-seek::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: var(--gold); border: 0; }
.rd-play:focus-visible, .rd-seek:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* Read Twedt: pictures sit back at 60% until hovered (or tapped on a phone); a click opens the popup viewer */
.rd-post img { opacity: .5; transition: opacity .25s ease; cursor: zoom-in; }
.rd-post a:focus-visible img, .rd-post img.rd-lit { opacity: 1; }
@media (hover: hover) { .rd-post img:hover, .rd-post a:hover img { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .rd-post img { transition: none; } }

/* Read Twedt: every picture (any shape, even if centered in the editor) sits on the right at 40% of the column, text wrapping around it */
.rd-post { display: flow-root; }
.rd-post img { float: right; clear: right; width: 40%; max-width: 40%; height: auto; margin: .25em 0 .9em 1.4em; }
.rd-fig, .rd-fig.rd-right { float: right; clear: right; width: 40%; margin: .25em 0 .9em 1.4em; }
.rd-fig img, .rd-fig.rd-right img { float: none; width: 100%; max-width: 100%; margin: 0; }
.rd-post img.rd-away { visibility: hidden; }
.rd-post td img, .rd-post th img { float: none; width: auto; max-width: 100%; margin: 0; }

/* Read Twedt editor output: SoundCloud player, draft banner */
.rd-post iframe.rd-sc { aspect-ratio: auto; height: 166px; }
.rd-post .rd-spoiler > div > :last-child { margin-bottom: 0; }
.rd-draftbar { margin: 0 0 14px; padding: 10px 14px; border: 1px dashed var(--gold); border-radius: 10px; color: var(--muted); }

/* Text styling chosen in the page editor (colors, fonts and sizes from the site's own set) */
.c-gold { color: var(--gold); } .c-red { color: var(--link); } .c-hot { color: var(--tab-hot); } .c-cream { color: var(--text); } .c-gray { color: var(--muted); } .c-white { color: #fff; }
.f-body { font-family: var(--f-body); } .f-display { font-family: var(--f-display); letter-spacing: .02em; } .f-serif { font-family: var(--f-tab); }
.s-sm { font-size: .85em; } .s-lg { font-size: 1.25em; } .s-xl { font-size: 1.6em; }

/* Latest News, "Boxes" view: four boxes, one per kind of news. A box grows over its neighbors on mouseover (or tap, or keyboard focus). */
.nw-boxes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin: 18px 0 40px; }
.nw-cell { position: relative; height: 22rem; }
.nw-box {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; overflow: hidden; display: flex; flex-direction: column; cursor: pointer;
  background: var(--panel); border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 10px 24px rgba(0,0,0,.6);
  transition: height .35s ease, width .35s ease, background .35s ease, box-shadow .35s ease;
}
.nw-cell.r2 .nw-box { top: auto; bottom: 0; } .nw-cell.c2 .nw-box { left: auto; right: 0; }
.nw-box h2 { margin: 0; padding: 16px 22px 8px; font: 500 var(--step-1)/1.1 var(--f-display); color: var(--gold); letter-spacing: .03em; flex: none; }
.nw-box-body { flex: 1; min-height: 0; overflow-y: auto; padding: 0 22px 36px; scrollbar-width: thin; scrollbar-color: var(--tab) transparent; }
.nw-b + .nw-b { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.nw-bd { font: 500 .8rem/1.2 var(--f-display); letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin-bottom: 4px; }
.nw-b p { margin: 0 0 .6em; font-size: .98rem; } .nw-b p:last-child { margin-bottom: 0; }
.nw-hint { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 0 8px; text-align: center; font-size: .8rem; letter-spacing: .06em; color: var(--muted); background: linear-gradient(transparent, rgba(8,3,2,.95) 60%); pointer-events: none; transition: opacity .25s; }
.nw-box.open .nw-hint, .nw-box:focus-within .nw-hint { opacity: 0; }
.nw-box.open, .nw-box:focus-visible { height: 38rem; width: 138%; z-index: 5; background: rgba(8,3,2,.96); box-shadow: 0 18px 40px rgba(0,0,0,.85); }
@media (hover: hover) { .nw-box:hover { height: 38rem; width: 138%; z-index: 5; background: rgba(8,3,2,.96); box-shadow: 0 18px 40px rgba(0,0,0,.85); } .nw-box:hover .nw-hint { opacity: 0; } }
/* wide screens: the boxes replace the list and its filter buttons; narrow screens (phones): the list with its filters, no boxes */
@media (min-width: 861px) { main.nw-boxed .nw-all, main.nw-boxed .nw-filters { display: none; } }
@media (max-width: 860px) { .nw-boxes { display: none; } }
@media (prefers-reduced-motion: reduce) { .nw-box { transition: none; } }

/* Read Twedt posts: colors, indents and centering carried over from the original posts */
.c-green { color: #5fd97b; } .c-blue { color: #7db4ff; } .c-orange { color: #ffa24a; }
.rd-in1 { padding-left: 2em; } .rd-in2 { padding-left: 4em; } .rd-center { text-align: center; }

/* Read Twedt: rounds as tabs (listening-goals charts) */
.rd-tabs { margin: .6em 0 1em; }
.rd-tabbar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.rd-tab { font: 600 14px/1 var(--f-body); color: var(--text); background: rgba(255,255,255,.04); border: 1px solid var(--line); border-radius: 999px; padding: 9px 14px; cursor: pointer; }
.rd-tab:hover { border-color: var(--tab); }
.rd-tab[aria-selected="true"] { background: var(--tab); border-color: var(--tab-hot); color: #fff; }
.rd-tabpanel[hidden] { display: none; }
.rd-post .rd-tabpanel ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.rd-post .rd-tabpanel li { margin: 0; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; background: rgba(0,0,0,.3); overflow-wrap: anywhere; }
.rd-post .rd-tabpanel li strong { color: var(--gold); }
.rd-post .rd-tabpanel li.rd-perf { border-color: var(--tab); background: rgba(180,40,30,.18); }

/* Piano Lessons section (students.twedt.com folded in) */
.ls-nav ul { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.ls-nav a { display: inline-block; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.04); color: var(--text); text-decoration: none; font: 600 14px/1 var(--f-body); }
.ls-nav a:hover { border-color: var(--tab); } .ls-nav a[aria-current="page"] { background: var(--tab); border-color: var(--tab-hot); color: #fff; }
.panel.ls { display: block; padding: 24px 28px 28px; font-size: 1.05rem; line-height: 1.65; }
.panel.ls::after { content: ""; display: block; clear: both; }
.ls p { margin: 0 0 1em; } .ls ul, .ls ol { margin: 0 0 1em; padding-left: 1.4em; } .ls li { margin-bottom: .4em; }
.ls h2, .ls h3, .ls h4 { font-family: var(--f-display); font-weight: 400; color: var(--gold); margin: 1.4em 0 .4em; line-height: 1.2; }
.ls a { color: var(--link); overflow-wrap: anywhere; }
.ls img { max-width: 100%; height: auto; border-radius: 8px; }
.ls p > img:first-child, .ls > img { float: right; width: 34%; max-width: 34%; margin: .2em 0 .8em 1.4em; }
.ls-fig { float: right; width: 34%; margin: .2em 0 .8em 1.4em; } .ls-fig img { width: 100%; margin: 0; display: block; }
.ls-fig figcaption { margin-top: 6px; font-size: .85rem; color: var(--muted); }
@media (max-width: 640px) { .panel.ls { padding: 18px 16px 22px; } .ls-fig, .ls p > img:first-child, .ls > img { width: 42%; max-width: 42%; } }
.ls table { border-collapse: collapse; max-width: 100%; margin: 0 0 1em; } .ls th, .ls td { border: 1px solid var(--line); padding: 6px 10px; }

/* Piano Lessons forms */
.lessons-form { margin: 1.2em 0 0; }
.lf { display: block; margin: 0 0 14px; border: 0; padding: 0; }
.lf > span, .lf legend { display: block; margin-bottom: 4px; font-weight: 600; font-size: .95rem; color: var(--text); padding: 0; }
.lf small { font-weight: 400; color: var(--muted); } .lf .req { color: var(--link); }
.lf input[type=text], .lf input[type=email], .lf input[type=tel], .lf input[type=date], .lf input[type=password], .lf select, .lf textarea {
  width: 100%; max-width: 560px; font: inherit; padding: 9px 11px; color: var(--text); background: rgba(0,0,0,.45); border: 1px solid var(--line); border-radius: 8px; }
.lf input:focus, .lf select:focus, .lf textarea:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
.lf-radio label { display: block; margin: 4px 0; font-weight: 400; }
.lf-check { display: block; margin: 12px 0; font-weight: 600; }
.lf-trap { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.lf-msg { min-height: 1.4em; margin: 8px 0; color: var(--muted); } .lf-msg.bad { color: #ff9a8a; }
.lf-consent { margin: 0 0 22px; padding: 14px 18px 4px; border: 1px solid var(--line); border-radius: 14px; background: rgba(0,0,0,.3); }
.lf-consent h4 { margin-top: 0; } .lf-consent[hidden], .lf-rest[hidden], [data-showif][hidden] { display: none; }
.lf-rates { margin: .8em 0; font-size: .92rem; } .lf-rates th, .lf-rates td { text-align: center; }
.lf-note { margin: 0 0 14px; padding: 12px 16px; border-left: 3px solid var(--gold); background: rgba(255,255,255,.04); font-size: .95rem; }
.lf-inst { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 0 14px; }
.lf-done { padding: 12px 0; } .ls-formslot { margin: 1em 0; padding: 18px; border: 2px dashed var(--line); border-radius: 12px; text-align: center; color: var(--muted); }
@media print { .ed-pill, header.site, .rail, .site-foot, .lf-done .btn { display: none !important; } }

/* Read Twedt: featured-image thumbnail on list items (right-justified) */
.rd-item .rd-th { float: right; width: 120px; height: auto; margin: 2px 0 8px 18px; border-radius: 6px; box-shadow: 0 4px 10px rgba(0,0,0,.6); }
.rd-item::after { content: ""; display: block; clear: both; }
@media (max-width: 560px) { .rd-item .rd-th { width: 84px; margin-left: 12px; } }

/* Reading guide: section buttons (sub-tabs) at the top of the panel; one group shown at a time */
.rd-gtabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.rd-gt { font: 500 15px/1 var(--f-display); letter-spacing: .04em; color: var(--text); background: rgba(255,255,255,.05); border: 1px solid var(--line); border-radius: 999px; padding: 10px 18px; cursor: pointer; }
.rd-gt:hover { border-color: var(--tab); } .rd-gt[aria-pressed="true"] { background: var(--tab); border-color: var(--tab-hot); color: #fff; }
.rd-grp.rd-off { display: none; }
.rd-gh { display: none; } .rd-srch .rd-gh { display: block; } .rd-srch .rd-grp.rd-off { display: block; } .rd-srch .rd-gtabs { display: none; }
.rd-srch .rd-grp[hidden] { display: none; }
.rd-grp .rd-gh { margin: 18px 0 8px; }
.rd-gl li.rd-gi { padding: 14px 0; }
.rd-gl li.rd-gi::after { content: ""; display: block; clear: both; }
.rd-gl li.rd-gi .rd-th { float: right; width: 120px; height: auto; margin: 2px 0 8px 18px; border-radius: 6px; box-shadow: 0 4px 10px rgba(0,0,0,.6); }
.rd-gl li.rd-gi p { margin: 4px 0 0; color: var(--text); font-size: .95rem; }
@media (max-width: 560px) { .rd-gl li.rd-gi .rd-th { width: 84px; margin-left: 12px; } }

/* Read Twedt footnotes */
.rd-post sup.fn { line-height: 0; margin-left: 1px; }
.rd-post a.fn-ref { color: var(--link); text-decoration: none; font-weight: 600; padding: 0 2px; }
.rd-post a.fn-ref:hover, .rd-post a.fn-ref[aria-expanded] { text-decoration: underline; }
.rd-fns { clear: both; margin-top: 2em; padding-top: 1em; border-top: 1px solid var(--line); font-size: .93rem; }
.rd-post .rd-fns h3 { margin: 0 0 .5em; font-size: 20px; }
.rd-fns ol { margin: 0; padding-left: 1.5em; } .rd-fns li { margin: 0 0 .5em; overflow-wrap: anywhere; }
.rd-fns .fn-back { margin-left: 4px; text-decoration: none; }
.rd-fns li:target { background: rgba(255,228,107,.12); }
.fn-pop { position: absolute; z-index: 60; max-width: calc(100vw - 24px); padding: 12px 14px; background: #1a0b09; color: var(--text); border: 1px solid var(--gold); border-radius: 12px; box-shadow: 8px 8px 18px rgba(0,0,0,.85); font-size: .93rem; line-height: 1.5; overflow-wrap: anywhere; }
.fn-pop .fn-n { display: block; margin-bottom: 4px; font: 500 12px/1 var(--f-display); letter-spacing: .1em; text-transform: uppercase; color: var(--gold); }
.fn-pop a { color: var(--link); }

/* Read Twedt: one filter row (All, audience groups, topics); an audience chip shows that group of the reading guide */
.rd-aud { border-color: var(--tab); }
.rd-gh { display: none !important; }
#posts .rd-grp { margin-top: 4px; } #posts .rd-q { margin: 0 0 18px; }

/* list thumbnails are always square (pictures that were not prepared in advance are cropped here, keeping the upper-middle) */
.rd-item .rd-th, .rd-gl li.rd-gi .rd-th { height: 120px; object-fit: cover; object-position: 50% 30%; }
@media (max-width: 560px) { .rd-item .rd-th, .rd-gl li.rd-gi .rd-th { height: 84px; } }

/* Read Twedt tables from the old blog colour their cells with bright bgcolor attributes (pastel blue, green, orange, yellow, pink);
   these remap each one to a deep tone from the site's own palette, so the multi-colour layout stays but the cream text reads on all of them */
.rd-post table[width] { width: 100%; }
.rd-post td[bgcolor="#aaccee"], .rd-post th[bgcolor="#aaccee"] { background: #223b4a; }   /* header: slate blue */
.rd-post td[bgcolor="#99eeaa"], .rd-post th[bgcolor="#99eeaa"] { background: #1f3b2b; }   /* group label: forest green */
.rd-post td[bgcolor="#ee7755"], .rd-post th[bgcolor="#ee7755"] { background: #6a2b19; }   /* row label: burnt orange */
.rd-post td[bgcolor="#eeee77"], .rd-post th[bgcolor="#eeee77"] { background: #33290f; }   /* body: dark gold */
.rd-post td[bgcolor="#ee8888"], .rd-post th[bgcolor="#ee8888"] { background: #552029; }   /* accent: dusty rose */
.rd-post td[bgcolor] strong, .rd-post th[bgcolor] strong { color: #f1e6da; }
.rd-post table[width] > tbody { display: table; width: 100%; min-width: 560px; }
.rd-post table[width] td, .rd-post table[width] th { border: 2px solid rgba(241, 230, 218, .55); }
.rd-post table[width] { border: 2px solid rgba(241, 230, 218, .55); }
.rd-fig, .rd-fig.rd-right { margin-top: 0; }   /* so a picture placed above a heading lines up with the top of that heading */

/* the list thumbnail is a link to its article (the title link is the one keyboard and screen-reader users get) */
.rd-thl { display: contents; }
.rd-thl .rd-th { cursor: pointer; }

/* section dividers inside Piano Lessons pages (same look as the inline-styled ones) */
.panel.ls > hr { border: 0; border-top: 2px solid currentColor; opacity: .5; margin: 1.6em 0; }

/* ===== Recital programs on the Student events page: three trial presentations ===== */
.rp { margin: 4px 0 14px; }
.rp a { text-decoration: none; }
.rp-tag { font: 600 .8rem var(--f-display); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-top: 14px !important; }
.rp-y { font: 500 1rem var(--f-display); letter-spacing: .08em; color: var(--gold); }
.rp-ms { font-style: italic; color: var(--muted); font-size: .95rem; line-height: 1.3; }

/* --- 1: program booklets on a shelf; the cover swings open --- */
.rp-books { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 26px 26px; }
.rp-books .rp-s { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px 14px; align-items: end; align-content: end; padding: 0 8px 10px; border-bottom: 7px solid #4a2014; border-radius: 0 0 3px 3px; box-shadow: 0 9px 10px -6px rgba(0,0,0,.9); }
.rp-books .rp-y { grid-column: 1 / -1; }
.rp-books .rp-ms { grid-column: span 2; align-self: center; }
.rp-books .rp-solo .rp-ms { grid-column: 1 / -1; padding: 22px 0; text-align: center; }
.rp-books a, .rp-books .rp-x { position: relative; display: block; aspect-ratio: 3 / 4; perspective: 600px; background: linear-gradient(#e6d8b8, #cfbd97); border-radius: 2px 5px 5px 2px; box-shadow: 3px 4px 8px rgba(0,0,0,.75); color: #3a1410; }
.rp-books a::after { content: "View program \203A"; position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 0 6px 0 12px; font: 600 .74rem/1.35 var(--f-display); letter-spacing: .08em; text-transform: uppercase; color: #8f1d14; }
.rp-books .rp-c { position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; background: linear-gradient(100deg, #c2ad82 0, #f4ead0 8%, #efe2c4 62%, #e0cfa9); border-radius: inherit; box-shadow: inset 0 0 0 5px #efe2c4, inset 0 0 0 6px #a08040; transform-origin: left center; transform-style: preserve-3d; transition: transform .65s cubic-bezier(.3,.7,.2,1); }
.rp-books .rp-c > *, .rp-books .rp-c::before { backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.rp-books .rp-c::before { content: "Student Recital"; max-width: 80%; text-align: center; font: 700 .58rem/1.3 var(--f-tab); letter-spacing: .12em; text-transform: uppercase; color: #8f1d14; margin-bottom: 5px; padding-bottom: 5px; border-bottom: 1px solid #a08040; }
.rp-books .rp-m { font: 600 .78rem/1.2 var(--f-display); letter-spacing: .22em; text-transform: uppercase; margin-right: -.22em; }
.rp-books .rp-d { font: 700 1.9rem/1.05 var(--f-tab); color: #8f1d14; }
.rp-books .rp-yr { font: 500 .78rem/1.2 var(--f-display); letter-spacing: .22em; margin-right: -.22em; }
.rp-books a:hover, .rp-books a:focus-visible { z-index: 3; }
.rp-books a:hover .rp-c, .rp-books a:focus-visible .rp-c { transform: rotateY(-118deg); }
.rp-books .rp-x { opacity: .5; }

/* --- 2: notes on a staff; each school year is one measure --- */
.rp-staff { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); row-gap: 10px; }
.rp-staff .rp-s { position: relative; margin-top: 18px; display: flex; justify-content: space-around; height: 126px; padding: 0 6px;
  background: repeating-linear-gradient(to bottom, rgba(205,196,187,.5) 0 1px, transparent 1px 12px) 0 34px / 100% 49px no-repeat; }
.rp-staff .rp-s::before, .rp-staff .rp-s::after { content: ""; position: absolute; top: 34px; height: 49px; width: 1px; background: rgba(205,196,187,.7); }
.rp-staff .rp-s::before { left: 0; } .rp-staff .rp-s::after { right: 0; }
.rp-staff .rp-y { position: absolute; left: 8px; top: -18px; }
.rp-staff a { position: relative; flex: 0 0 31%; color: var(--text); --ny: 64px; }
.rp-staff a:nth-of-type(2) { --ny: 52px; } .rp-staff a:nth-of-type(3) { --ny: 40px; }
.rp-staff .rp-s:nth-child(3n+2) a:nth-of-type(1) { --ny: 46px; } .rp-staff .rp-s:nth-child(3n+2) a:nth-of-type(2) { --ny: 64px; } .rp-staff .rp-s:nth-child(3n+2) a:nth-of-type(3) { --ny: 52px; }
.rp-staff .rp-s:nth-child(3n) a:nth-of-type(1) { --ny: 52px; } .rp-staff .rp-s:nth-child(3n) a:nth-of-type(2) { --ny: 40px; } .rp-staff .rp-s:nth-child(3n) a:nth-of-type(3) { --ny: 58px; }
.rp-staff a::before { content: ""; position: absolute; left: 50%; top: var(--ny); width: 17px; height: 12px; margin-left: -9px; border-radius: 50%; background: var(--text); transform: rotate(-22deg); transition: background .2s; }
.rp-staff a::after { content: ""; position: absolute; left: calc(50% + 6px); top: calc(var(--ny) - 33px); width: 2px; height: 39px; background: var(--text); transition: background .2s; }
.rp-staff .rp-c { position: absolute; left: 0; right: 0; bottom: 0; text-align: center; font-size: .86rem; line-height: 1.25; white-space: nowrap; transition: color .2s; }
.rp-staff .rp-d::after { content: ","; }
.rp-staff a:hover, .rp-staff a:focus-visible { color: var(--gold); }
.rp-staff a:hover::before, .rp-staff a:focus-visible::before { background: var(--gold); animation: rpHop .5s ease-out, rpRing .7s ease-out; }
.rp-staff a:hover::after, .rp-staff a:focus-visible::after { background: var(--gold); animation: rpHop .5s ease-out; }
.rp-staff .rp-ms { position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: center; text-align: center; padding-bottom: 2px; }
.rp-staff .rp-ms::before { content: ""; position: absolute; left: 50%; top: 47px; width: 18px; height: 6px; margin-left: -9px; background: var(--text); }   /* a whole rest */
@keyframes rpHop { 35% { translate: 0 -8px; } 70% { translate: 0 2px; } }
@keyframes rpRing { from { box-shadow: 0 0 0 0 rgba(255,228,107,.7); } to { box-shadow: 0 0 0 16px rgba(255,228,107,0); } }

/* --- 3: piano keys; each school year is a group of keys --- */
.rp-keys { display: flex; flex-wrap: wrap; gap: 26px 0; --kw: 62px; --kh: 150px; padding-top: 6px; }
.rp-keys .rp-s { display: grid; grid-template-columns: repeat(3, var(--kw)); grid-template-rows: auto var(--kh); }
.rp-keys .rp-s.rp-n2 { grid-template-columns: repeat(2, var(--kw)); } .rp-keys .rp-s.rp-n1 { grid-template-columns: var(--kw); }
.rp-keys .rp-y { grid-column: 1 / -1; text-align: center; font-size: .9rem; padding: 5px 0 4px; background: linear-gradient(#241210, #050202); border: 1px solid #000; border-bottom: 3px solid #8f1d14; }
.rp-keys a, .rp-keys .rp-x { position: relative; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 12px; background: linear-gradient(#fdf9ef 0, #f3ead6 82%, #d6c8ab); border: 1px solid #5a4a38; border-top: 0; border-radius: 0 0 6px 6px; box-shadow: inset 0 -7px 0 rgba(0,0,0,.13), 0 7px 9px rgba(0,0,0,.65); color: #2a0b08; transition: background .08s, box-shadow .08s, padding .08s; }
.rp-keys .rp-s > a + a::before { content: ""; position: absolute; left: -13px; top: 0; width: 25px; height: 58%; z-index: 2; background: linear-gradient(90deg, #2c2c2c, #000 30%, #000 70%, #262626); border-radius: 0 0 4px 4px; box-shadow: inset 0 -8px 0 #1c1c1c, 0 3px 4px rgba(0,0,0,.6); pointer-events: none; }
.rp-keys .rp-c { display: flex; flex-direction: column; align-items: center; line-height: 1.15; }
.rp-keys .rp-m { font: 600 .72rem/1.2 var(--f-display); letter-spacing: .14em; text-transform: uppercase; }
.rp-keys .rp-d { font: 700 1.3rem/1.1 var(--f-tab); color: #8f1d14; }
.rp-keys .rp-yr { font: 500 .72rem/1.2 var(--f-display); letter-spacing: .1em; }
.rp-keys a:hover, .rp-keys a:focus-visible { background: linear-gradient(#e9e0cb 0, #e4d9c0 82%, #cdbf9f); box-shadow: inset 0 -2px 0 rgba(0,0,0,.13), inset 0 7px 9px rgba(0,0,0,.28), 0 3px 5px rgba(0,0,0,.65); padding-bottom: 7px; }
.rp-keys a::after { content: "\266A"; position: absolute; left: 50%; top: 34%; margin-left: -.3em; z-index: 3; font-size: 1.7rem; line-height: 1; color: var(--gold); text-shadow: 0 2px 4px #000; opacity: 0; pointer-events: none; }
.rp-keys a:hover::after, .rp-keys a:focus-visible::after { animation: rpNote .9s ease-out; }
.rp-keys .rp-solo .rp-ms { grid-column: 1 / -1; display: grid; place-items: center; text-align: center; padding: 0 12px; font: 500 .9rem/1.3 var(--f-display); letter-spacing: .1em; text-transform: uppercase; color: #3a2408; background: linear-gradient(135deg, #b8913f, #f0d588 45%, #b08a3a); border: 1px solid #5a4010; border-radius: 0 0 6px 6px; box-shadow: inset 0 0 0 3px rgba(255,255,255,.18), 0 7px 9px rgba(0,0,0,.65); }
@keyframes rpNote { 0% { opacity: 0; translate: 0 10px; } 25% { opacity: 1; } 100% { opacity: 0; translate: 10px -78px; rotate: 18deg; } }
@media (max-width: 640px) { .rp-keys { --kw: 50px; --kh: 128px; } .rp-books .rp-s { gap: 8px 10px; } }

/* entrance: each item arrives in turn when its section scrolls into view (classes added by site.js) */
.rp-wait a, .rp-wait .rp-x, .rp-wait .rp-ms { opacity: 0; }
.rp-go a, .rp-go .rp-x, .rp-go .rp-ms { animation: .55s cubic-bezier(.2,.8,.3,1) backwards; animation-delay: calc(var(--i, 0) * 90ms); }
.rp-books .rp-go a, .rp-books .rp-go .rp-x, .rp-go .rp-ms { animation-name: rpInBook; }
.rp-staff .rp-go a { animation-name: rpInNote; }
.rp-keys .rp-go a { animation-name: rpInKey; }
@keyframes rpInBook { from { opacity: 0; translate: 0 22px; rotate: -5deg; } }
@keyframes rpInNote { from { opacity: 0; translate: 0 -34px; } 70% { translate: 0 4px; } }
@keyframes rpInKey { from { opacity: 0; translate: 0 -10px; } 55% { opacity: 1; translate: 0 6px; } }
@media (prefers-reduced-motion: reduce) { .rp a, .rp .rp-c, .rp a::before, .rp a::after { animation: none !important; transition: none !important; } }

/* Piano Lessons tabs: "Private" tab with a drop-down (Wait List / New Students / Current Students) */
.ls-nav li { position: relative; }
.ls-nav .ls-sub { display: none; position: absolute; left: 0; top: 100%; z-index: 30; min-width: 190px; margin: 0; padding: 6px; list-style: none; flex-direction: column; gap: 4px; background: var(--ink, #0a0605); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 10px 24px rgba(0,0,0,.7); }
.ls-nav .ls-sub a { display: block; white-space: nowrap; }
.ls-nav .ls-has-sub:hover > .ls-sub, .ls-nav .ls-has-sub:focus-within > .ls-sub { display: flex; }
.ls-has-sub > a::after { content: " \25BE"; font-size: .8em; }
.ls-subnav { margin-top: 8px; }
.ls-subnav ul { margin-top: 0; }
@media (max-width: 640px) { .ls-nav .ls-sub { left: auto; right: 0; } }

/* Piano Lessons tabs: "Private" tab with a drop-down (Wait List / New Students / Current Students) */
.ls-nav li { position: relative; }
.ls-nav .ls-sub { display: none; position: absolute; left: 0; top: 100%; z-index: 30; min-width: 190px; margin: 0; padding: 6px; list-style: none; flex-direction: column; gap: 4px; background: var(--ink, #0a0605); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 10px 24px rgba(0,0,0,.7); }
.ls-nav .ls-sub a { display: block; white-space: nowrap; }
.ls-nav .ls-has-sub:hover > .ls-sub, .ls-nav .ls-has-sub:focus-within > .ls-sub { display: flex; }
.ls-has-sub > a::after { content: " \25BE"; font-size: .8em; }
.ls-subnav { margin-top: 8px; }
.ls-subnav ul { margin-top: 0; }
@media (max-width: 640px) { .ls-nav .ls-sub { left: auto; right: 0; } }

/* bullet lists sitewide: single-spaced */
.ls li, .rd-post li, .panel li { margin: 0 0 .1em; line-height: 1.4; }
.ls li > ul, .rd-post li > ul { margin: .15em 0 .3em; }
.ls p:has(+ ul.tight) { margin-bottom: 0; }
.ls ul.tight { margin-top: 0; }
.ls p:has(+ p.pk) { margin-bottom: 0; }
.ls ul.pk-list { margin-bottom: 0; }

/* Recordings: Listen button (a <button> styled like the .btn links) */
button.btn { cursor: pointer; -webkit-appearance: none; appearance: none; }

/* Recordings: intro runs the full width of the panels below it */
.page-head.wide p { max-width: none; }

/* Wait List: Chad's switch between his view and the student view; his sign-in link under the password box */
.wl-views { margin: 0 0 18px; }
.lf-owner { margin: 1.4em 0 0; font-size: .85rem; }
.lf-owner a { color: var(--muted); }

/* form selects */
.lf select { font: inherit; width: 100%; max-width: 22em; padding: 10px 12px; border-radius: 8px; border: 1px solid rgba(255,255,255,.3); background: rgba(10,4,3,.6); color: var(--text); }

