/* after58 (Indy 2026-10-30): CHOBO heading tag, merged story, role sub-row, tree spacing */

/* story card: second paragraph (was the Impact block), no label, no divider */
.chobo-story .job-desc + .job-desc { margin-top: 0.6rem; }
.chobo-story + .subroles { margin-top: 10px; }

/* tree rows with a wordmark/tag title (CHOBO sub-rows): the elbow meets the chevron's centre and ends a hair before
   the chevron, and chevron-to-title gap is one even step. Geometry (rem): trunk 0.3, chevron box 1.35..1.975. */
.subjob:has(> .subjob-head .subjob-title--wm) {
  --sj-wm-cy: calc(var(--sj-pad) + 15px);               /* toggle padding + half of the 30px title row */
}
.subjob:has(> .subjob-head .subjob-title--wm)::after { top: var(--sj-wm-cy); width: 0.95rem; }
.subjob:last-child:has(> .subjob-head .subjob-title--wm)::before { bottom: auto; height: var(--sj-wm-cy); }
.subjob-toggle:has(.subjob-title--wm) { column-gap: 0.45rem; }
@media (max-width: 640px) {
  .subjob-toggle:has(.subjob-title--wm) .subjob-dates { margin-left: calc(10px + 0.45rem); }
}

/* "Closed" status on CHOBO Studios keeps the existing sunset tag colours (already the muted-red status style) */

/* after59: the "Co-Founder, Managing Director" row is plain title text, exactly like the BuzzFeed sub-role rows
   (.subjob-title: same font, size, weight, colour). Elbow reaches the chevron like the other CHOBO rows, and the
   chevron-to-title gap matches their chevron-to-logo gap so titles and logos start on one vertical line. */
.subjob--role::after { width: 0.95rem; }
.subjob--role > .subjob-head .subjob-toggle { column-gap: 0.45rem; }
@media (max-width: 640px) {
  .subjob--role > .subjob-head .subjob-dates { margin-left: calc(10px + 0.45rem); }
}

/* after60: small external-link arrow after the tags of each CHOBO sub-business row (placed by a60.js) */
.subjob-head { position: relative; }
.sub-ext {
  position: absolute; left: 0; top: 0; z-index: 2;
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; margin: 0; border-radius: 8px;
  color: var(--faint, #8a8a8a); text-decoration: none;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: color .15s ease, background-color .15s ease, transform .15s ease;
  -webkit-tap-highlight-color: transparent;
}
.sub-ext.is-placed { opacity: 1; visibility: visible; pointer-events: auto; }
.sub-ext svg { width: 13px; height: 13px; display: block; }
.sub-ext:hover { color: var(--muted, #5a5a5a); background: color-mix(in srgb, currentColor 10%, transparent); }
.sub-ext:hover svg { transform: translate(1px, -1px); }
.sub-ext svg { transition: transform .15s ease; }
.sub-ext:focus-visible { outline: 2px solid var(--ds-accent, #2563eb); outline-offset: 1px; color: var(--muted, #5a5a5a); }
@media (max-width: 640px) { .sub-ext { width: 32px; height: 32px; } .sub-ext svg { width: 14px; height: 14px; } }
@media (prefers-reduced-motion: reduce) { .sub-ext, .sub-ext svg { transition: none; } }

/* after61: "The story" label is a button; clicking it folds the pane up into a pill (a61.js). Open by default. */
.story-toggle {
  all: unset; box-sizing: border-box; cursor: pointer; font: inherit; letter-spacing: inherit; text-transform: inherit;
  color: inherit; text-align: center; padding: 3px 10px; margin: -3px -10px; border-radius: 999px;
  -webkit-tap-highlight-color: transparent; transition: color .15s ease;
}
.story-toggle:hover { color: var(--fg, currentColor); }
.story-toggle:focus-visible { outline: 2px solid var(--ds-accent, #2563eb); outline-offset: 3px; border-radius: 999px; }
.chobo-story.is-collapsed { padding-top: 0.6rem; padding-bottom: 0.6rem; border-radius: 20px; cursor: pointer; }
.chobo-story.is-collapsed .chobo-story-k { margin-bottom: 0; }
@media (prefers-reduced-motion: reduce) { .story-toggle { transition: none; } }
