/* Jam entries share the portfolio's paper and type, with ordinary page reading. */
.jam-mode #case-view { height: auto; min-height: calc(100dvh - var(--header-height)); padding: 0 0 76px; background: var(--paper); }
.jam-mode .site-header { background: var(--paper); }
.jam-topbar { position: sticky; top: var(--header-height); z-index: 10; background: rgba(247,248,250,.97); border-bottom: 1px solid var(--line); }
.jam-topbar-inner { width: calc(100% - 96px); max-width: 1120px; min-height: 58px; margin: auto; display: flex; align-items: center; gap: 24px; }
.jam-topbar .text-link { font-size: 12px; }
.jam-topbar .text-link svg { width: 16px; height: 16px; }
.jam-reader-name { font-size: 11px; color: var(--muted); margin-left: auto; }
.jam-contents { position: relative; flex: none; margin-left: auto; }
.jam-contents summary { cursor: pointer; color: var(--blue); font-size: 12px; padding: 14px 0 14px 10px; }
.jam-contents nav { position: absolute; right: 0; top: 100%; display: grid; width: 290px; max-height: calc(100dvh - var(--header-height) - 86px); overflow-y: auto; background: var(--paper); border: 1px solid var(--line); padding: 12px 20px; }
.jam-contents a { padding: 10px 0; min-height: 42px; color: var(--muted); font-size: 12px; line-height: 1.65; border-bottom: 1px solid #e3e6e9; }
.jam-contents a:last-child { border-bottom: none; }
.jam-contents a[aria-current] { color: var(--blue); font-weight: 600; }
.jam-article { width: calc(100% - 96px); max-width: 1120px; margin: auto; }
.jam-intro { padding: 48px 0 0; }
.jam-lead { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); align-items: center; gap: 48px; }
.jam-lead header>.eyebrow { color: #647b86; font-size: 11px; margin-bottom: 14px; }
.jam-lead h1 { font: 56px/1.06 var(--serif); text-wrap: balance; }
.jam-deck { font-size: 17px; line-height: 1.75; margin-top: 22px; max-width: 580px; }
.jam-sources { display: flex; flex-wrap: wrap; gap: 14px 24px; margin-top: 22px; }
.jam-sources .text-link { font-size: 12px; padding: 4px 0; }
.jam-opening-media { min-width: 0; }
.jam-opening-media:focus,.jam-article h1:focus,.jam-article h2:focus { outline: none; }
.jam-figure { min-width: 0; }
.jam-figure .media-button { background: #edf0f1; border-radius: 3px; overflow: hidden; }
.jam-figure img { width: 100%; height: auto; object-fit: contain; }
.jam-figure .media-button img { aspect-ratio: 4/3; max-height: 480px; }
.jam-hero .media-button img { aspect-ratio: 16/10; max-height: none; }
.jam-alive .jam-hero .media-button { background: #eff2f4; padding: 18px; }
.jam-alive .jam-hero .media-button img { height: 352px; aspect-ratio: auto; image-rendering: pixelated; }
.jam-figure .expand-icon { opacity: 1; }
.jam-figure figcaption { font-size: 11px; color: var(--muted); line-height: 1.6; margin-top: 10px; }
.jam-hero .film-preview { aspect-ratio: 16/9; min-height: 0; max-height: none; }
.jam-hero .film-preview>img { height: 100%; }
.jam-facts { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 22px 28px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 22px 0; margin: 34px 0 0; }
.jam-facts dt { font-size: 10px; line-height: 1.5; color: #647b86; margin-bottom: 5px; }
.jam-facts dd { font-size: 12px; line-height: 1.65; margin: 0; }
.jam-facts .jam-role { grid-column: 1/-1; }
.jam-facts .jam-team-composition { grid-column: 1/-1; border-top: 1px solid var(--line); padding-top: 16px; }
.jam-team-composition ul { display: flex; flex-wrap: wrap; gap: 8px 28px; list-style: none; padding: 0; margin: 8px 0 0; }
.jam-team-composition li { display: flex; gap: 10px; align-items: baseline; }
.jam-team-composition strong { color: var(--blue); font-weight: 600; font-variant-numeric: tabular-nums; }
.jam-story { padding-top: 14px; }
.jam-section { display: grid; grid-template-columns: minmax(0,250px) minmax(0,680px); column-gap: 64px; row-gap: 26px; padding: 44px 0; border-bottom: 1px solid var(--line); }
.jam-section header>.eyebrow { font-size: 10px; color: #647b86; margin-bottom: 12px; }
.jam-section h2 { font: 32px/1.17 var(--serif); text-wrap: balance; }
.jam-prose { font-size: 16px; line-height: 1.85; }
.jam-prose p+p { margin-top: 18px; }
.jam-prose .jam-note { color: #527967; font-size: 12px; line-height: 1.6; padding-bottom: 6px; }
.jam-section>.jam-figure { grid-column: 2; max-width: 600px; }
.jam-section>.jam-media-group { grid-column: 2; min-width: 0; }
.jam-opening-media>.jam-media-group+.jam-media-group,.jam-opening-media>.jam-figure+.jam-media-group { margin-top: 24px; }
.jam-reflection .jam-prose { border-left: 2px solid #88aa98; padding: 2px 0 2px 24px; }
.jam-next { display: flex; gap: 24px; justify-content: space-between; align-items: center; margin-top: 36px; color: var(--ink); font: 32px/1.2 var(--serif); }
.jam-next small { display: block; color: var(--muted); font: 11px/1.6 var(--sans); margin-bottom: 9px; }
.jam-next svg { width: 26px; height: 26px; color: var(--blue); }
@media(max-width:1000px) {
  .jam-topbar-inner,.jam-article { width: calc(100% - 64px); }
  .jam-lead { gap: 32px; }
  .jam-lead h1 { font-size: 48px; }
  .jam-facts { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .jam-section { grid-template-columns: minmax(0,200px) minmax(0,1fr); column-gap: 36px; }
  .jam-section>.jam-media-group { grid-column: 1/-1; }
  .jam-section h2 { font-size: 29px; }
}
@media(max-width:700px) {
  .jam-mode #case-view { padding-bottom: 48px; }
  .jam-topbar-inner,.jam-article { width: calc(100% - 40px); }
  .jam-topbar-inner { min-height: 52px; gap: 12px; }
  .jam-reader-name { display: none; }
  .jam-contents nav { width: min(290px,calc(100vw - 40px)); }
  .jam-intro { padding-top: 30px; }
  .jam-lead { display: flex; flex-direction: column; align-items: stretch; gap: 28px; }
  .jam-lead h1 { font-size: 44px; }
  .jam-deck { font-size: 16px; margin-top: 18px; }
  .jam-lead header>.eyebrow { font-size: 10px; margin-bottom: 12px; }
  .jam-sources { margin-top: 18px; }
  .jam-alive .jam-hero .media-button img { height: 290px; }
  .jam-facts { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; margin-top: 26px; padding-block: 22px; }
  .jam-facts dd { font-size: 12px; }
  .jam-section { display: block; padding: 32px 0; }
  .jam-section h2 { font-size: 32px; max-width: 440px; }
  .jam-section header>.eyebrow { margin-bottom: 8px; }
  .jam-prose { margin-top: 20px; font-size: 16px; line-height: 1.85; }
  .jam-prose p+p { margin-top: 16px; }
  .jam-section>.jam-figure { margin-top: 24px; }
  .jam-section>.jam-media-group { margin-top: 24px; }
  .jam-reflection .jam-prose { padding-left: 18px; }
  .jam-next { font-size: 29px; margin-top: 28px; }
}
