/* sections (Indy 2026-10-24): folded section headers get the overall dates + the site's twirl chevron on the right. */
.section-label.panel-head .panel-toggle { display: flex; align-items: center; gap: 0.6rem; width: 100%; box-sizing: border-box; }
.section-label.panel-head .panel-title { flex: 1 1 auto; min-width: 0; }
.section-label.panel-head .panel-meta { flex: none; display: inline-flex; align-items: center; gap: 0.6rem; margin-left: auto; }
.section-label.panel-head .panel-dates {           /* = .job-dates */
  font-family: var(--ds-mono); font-size: var(--ds-text-xs); letter-spacing: 0; text-transform: none;
  color: var(--faint); font-variant-numeric: tabular-nums; font-weight: 400; white-space: nowrap;
}
.section-label.panel-head .panel-chev { align-self: center; }
.section-label.panel-head:hover .panel-chev { color: var(--muted); }
.section-label.panel-head .panel-toggle[aria-expanded="true"] .panel-chev { transform: rotate(90deg); color: var(--ds-accent); }
@media (prefers-reduced-motion: reduce) { .section-label.panel-head .panel-chev { transition: none; } }
/* r7 (Indy 2026-10-24): no section date ranges (data-dates removed from the three headers; per-entry dates stay), and
   the twirl chevron sits right after the header text with a ~0.42em gap, centred on the text, instead of at the far
   right. The button still spans the row and the whole h2 still toggles. */
.section-label.panel-head .panel-toggle { justify-content: flex-start; gap: 0.42em; }
.section-label.panel-head .panel-title { flex: 0 1 auto; }
.section-label.panel-head .panel-meta { margin-left: 0; gap: 0; }
.section-label.panel-head .panel-dates { display: none; }

/* r8: Del Sol wordmark (cut from Indy's tiki art) replaces the "Del Sol" subheader text; sized like a subheader */
.subjob-toggle .subjob-wordmark { display: inline-block; height: 1.95em; width: auto; vertical-align: middle;
  margin: -0.35em 0.15em -0.35em -0.05em; filter: drop-shadow(0 0.5px 0.6px rgba(0, 0, 0, 0.28)); }
html[data-theme="dark"] .subjob-toggle .subjob-wordmark { filter: none; }
.subjob-toggle[aria-expanded="false"] .subjob-wordmark { opacity: 0.92; }
/* r8: The Crash Kids wordmark (keyed from Indy's art): one-line mark, same treatment, sized to the Del Sol mark's letter height */
.subjob-toggle .subjob-wordmark--line { height: 1.5em; margin: -0.2em 0.15em -0.2em -0.05em; filter: none; }
/* light mode: the bright green alone is ~1.5:1 on the near-white page, so a hairline dark edge keeps it legible (colour unchanged) */
html[data-theme="light"] .subjob-toggle .subjob-wordmark--line {
  filter: drop-shadow(0 0 0.35px rgba(0, 0, 0, 0.9)) drop-shadow(0 0 0.35px rgba(0, 0, 0, 0.7)) drop-shadow(0 0.5px 0.5px rgba(0, 0, 0, 0.25)); }
/* r8: Spider and the Ant wordmark: Indy's diagonal two-line art rotated -45deg (measured exactly 45.0deg), the two lines set
   side by side on one baseline, traced to SVG and used as a CSS mask. Light: rich black. Dark: inverted to the theme text colour. */
.subjob-toggle .subjob-wordmark--mask { display: inline-block; vertical-align: middle; height: 1.5em; aspect-ratio: 3111 / 326;
  margin: -0.2em 0.15em -0.2em -0.05em; background-color: #0a0a0a;
  -webkit-mask: url("img/spiderant-wordmark.svg") left center / contain no-repeat;
          mask: url("img/spiderant-wordmark.svg") left center / contain no-repeat; }
.subjob-toggle .subjob-wordmark--spiderant { height: 1.2em; margin-top: -0.05em; margin-bottom: -0.05em; }
html[data-theme="dark"] .subjob-toggle .subjob-wordmark--mask { background-color: var(--fg, #ededed); }
/* r9 (Indy 2026-10-24): The Crash Kids wordmark is now a theme-coloured mask like Spider and the Ant: rich black
   (#0a0a0a) in light mode, the light text colour in dark mode. The mask is the keyed lettering's alpha
   (crashkids-wordmark@2x.png), so the letterforms are unchanged; the light-mode hairline shadow is no longer needed. */
.subjob-toggle .subjob-wordmark--crashkids { height: 1.5em; aspect-ratio: 329 / 64; filter: none !important;
  margin: -0.2em 0.15em -0.2em -0.05em;
  -webkit-mask: url("img/crashkids-wordmark@2x.png") left center / contain no-repeat;
          mask: url("img/crashkids-wordmark@2x.png") left center / contain no-repeat; }
/* r9 (Indy 2026-10-24): genres sit to the right of each band wordmark on the same line: a thin bullet, then one
   inline-code tag per genre (Geist Mono, small, subtle rounded fill + hairline border, tuned per theme). The group is
   inline-flex and centred on the wordmark; on narrow screens it wraps as a unit and the chips wrap inside it, so the
   twirl row (chevron on the first line, whole row toggles) is untouched. */
.subjob-toggle .subjob-genres { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px; vertical-align: middle;
  margin: 0 0.35em 0 0; line-height: 1; }
.subjob-genres .genre-tag { font-family: var(--ds-mono); font-size: 11px; font-weight: 400; line-height: 1; letter-spacing: -0.01em;
  padding: 3px 5px 2px; border-radius: 4px; white-space: nowrap;
  color: var(--muted); background: rgba(0, 0, 0, 0.045); border: 1px solid rgba(0, 0, 0, 0.09); }
html[data-theme="dark"] .subjob-genres .genre-tag { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.11); }
.subjob-toggle:hover .genre-tag { color: var(--fg); }
@media (max-width: 640px) {
  .subjob-toggle .subjob-genres { gap: 3px; }
  .subjob-genres .genre-tag { font-size: 10.5px; padding: 2.5px 4.5px 2px; }
}
/* r10 (Indy 2026-10-24): no bullet before the tags, just a small gap. Del Sol's role line is gone and its wordmark is
   ~20% larger (2.35em; the @2x source is 180px tall, so it stays sharp at 3x). The tags exist twice in the DOM, but only
   one copy is ever displayed: inline in the header on desktop, as the first line of the twirl body at <=640px.
   display:none takes the hidden copy out of the accessibility tree, so screen readers hear the tags once. */
.subjob-toggle .subjob-wordmark:not(.subjob-wordmark--mask) { height: 2.35em; margin: -0.55em 0.1em -0.55em -0.05em; }
.subjob-toggle .subjob-genres--head { margin-left: 0.5em; }
.subjob-genres--body { display: none; }
@media (max-width: 640px) {
  .subjob-toggle .subjob-genres--head { display: none; }
  .subjob-genres--body { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin: 0.1rem 0 0.6rem calc(10px + 0.5rem); line-height: 1; }
  /* the dates sit on their own line under Del Sol here, so the larger mark needs its real height below it */
  .subjob-toggle .subjob-wordmark:not(.subjob-wordmark--mask) { margin-bottom: -0.2em; }
}
/* r10: the band rows keep their dates in the right-hand slot on mobile too (the tags moved into the twirl body, so
   there is room); same font/colour/en dash as Del Sol's. */
@media (max-width: 640px) {
  .subjob-toggle[aria-controls^="music-"] .subjob-dates { flex-basis: auto; margin-left: auto; white-space: nowrap; align-self: flex-start; line-height: var(--sj-lh); }
  .subjob-toggle[aria-controls^="music-"] .subjob-wordmark:not(.subjob-wordmark--mask) { margin-bottom: -0.55em; }
}
