/* The pages beside the home page: the shot search (search.html, shots.js), the film pages (/films/, written by
   lib/film-pages.js) and the docs (docs.html, at /docs). They share styles.css and library.css with the home page and
   add only what's theirs. */
.page .library-heading h1{font-size:var(--type-display);font-weight:400;letter-spacing:normal}
.page .search-suggestions>span{color:#888}
.page footer a:hover,.page-footer nav a:hover{color:#fff}

/* Shot search */
.shots-page{padding-top:40px}
.shot-filters{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:14px 16px;margin:0 0 28px;padding:20px;background:#111;border:1px solid #272727;border-radius:10px}
.shots-results{min-width:0}
@media(min-width:1100px){
  .shots-body{display:grid;grid-template-columns:230px minmax(0,1fr);gap:36px;align-items:start}
  .shots-body:has(.shot-filters[hidden]){grid-template-columns:minmax(0,1fr)}
  .shot-filters{grid-template-columns:1fr;position:sticky;top:20px;max-height:calc(100vh - 40px);overflow:auto;margin:0;padding:18px}
}
.shot-filters label{display:flex;flex-direction:column;gap:8px;min-width:0;color:#999;font-size:var(--type-meta)}
.shot-filters select{width:100%;min-width:0;border:1px solid #333;background:#181818;color:#ddd;border-radius:6px;padding:10px}
.shot-filters .is-set span{color:#eee}.shot-filters .is-set select{border-color:#bbb}
.results-toolbar .shot-source{margin-left:auto;margin-right:20px;color:#888;font-size:var(--type-meta)}
.shot-grid{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:26px 16px}
.shot-card{position:relative;display:block;width:100%;aspect-ratio:16/9;overflow:hidden;border-radius:6px;background:#0c0c0c;box-shadow:0 0 0 1px #ffffff12;transition:box-shadow .2s}
.shot-card img{display:block;width:100%;height:100%;object-fit:cover;opacity:0;transition:opacity .4s,scale .5s cubic-bezier(.2,.7,.2,1)}
.shot-card img.is-loaded{opacity:1}.shot-card:hover img{scale:1.03}.shot-card:hover,.shot-card:focus-visible{box-shadow:0 0 0 2px #f5f5f5}
.shot-tc{position:absolute;left:8px;bottom:8px;padding:2px 6px;border-radius:3px;background:#000000b8;color:#e6e6e6;font-size:var(--type-meta);line-height:1.4;font-variant-numeric:tabular-nums}
.shot-caption{margin-top:10px;display:flex;flex-direction:column;gap:3px;min-width:0}
.shot-caption strong{font-size:var(--type-small);font-weight:600;color:#ddd;line-height:1.45}
.shot-caption span{font-size:var(--type-meta);color:#888}
.shot-more{grid-column:1/-1;display:flex;justify-content:center;padding:10px 0}
.shots-locked{max-width:660px;margin:30px 0 40px;padding:28px;background:#111;border:1px solid #272727;border-radius:10px}
.shots-locked h2{font-size:var(--type-h2);font-weight:400;letter-spacing:normal;margin:0 0 12px}
.shots-locked p{font-size:var(--type-small);line-height:1.7;color:#aaa;margin-bottom:14px}.shots-locked a:not(.light-button){color:#eee;border-bottom:1px solid #555}
.shots-status{margin:30px 0;color:#aaa;font-size:var(--type-small)}
@media(prefers-reduced-motion:reduce){.shot-card img{transition:none}.shot-card:hover img{scale:none}}
.shots-page .library-heading p a{color:#ccc;border-bottom:1px solid #444;padding-bottom:1px}.shots-page .library-heading p a:hover{color:#fff}
.shots-page .search-suggestions{margin-bottom:30px}

/* The type switch: every kind of piece, with how many results each would show. It scrolls sideways on a phone. */
.piece-types{display:flex;gap:30px;margin:0 0 30px;padding:4px 4px 0;border-bottom:1px solid #262626;overflow-x:auto;scrollbar-width:none}
.piece-types::-webkit-scrollbar{display:none}
.piece-types button{flex:none;display:flex;align-items:baseline;gap:7px;padding:0 0 13px;margin-bottom:-1px;border-bottom:2px solid transparent;color:#9a9a9a;font-size:var(--type-small);white-space:nowrap;transition:color .2s,border-color .2s}
.piece-types button span{font-size:var(--type-meta);color:#6f6f6f;font-variant-numeric:tabular-nums}
.piece-types button:hover{color:#fff}
.piece-types button[aria-pressed=true]{color:#fff;border-bottom-color:#f5f5f5}.piece-types button[aria-pressed=true] span{color:#aaa}
.piece-types button.is-empty:not([aria-pressed=true]){color:#5c5c5c}.piece-types button.is-empty span{color:#4a4a4a}
.piece-types button:focus-visible{outline-offset:2px}

/* A piece in the grid: the shot card, with its kind (in All), a sound's waveform over its shot, and its description */
.piece-type{position:absolute;left:8px;top:8px;padding:2px 6px;border-radius:3px;background:#000000b8;color:#d0d0d0;font-size:var(--type-meta);letter-spacing:normal;text-transform:uppercase;line-height:1.5}
.shot-caption .piece-desc{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:var(--type-meta);line-height:1.5;color:#a0a0a0}
.is-sound .shot-card img.is-loaded{opacity:.34}
.piece-wave{position:absolute;inset:30% 11% 32%;display:flex;align-items:center;gap:2px;pointer-events:none}
.piece-wave i{flex:1 1 0;height:max(2px,calc(var(--h) * 100%));border-radius:1px;background:#d9d9d9}

/* The span under the player: what plays, the piece's own span or moment in it, a sound's waveform, the playhead */
.clip-nav{align-items:center;gap:12px}
.clip-span{position:relative;flex:1;min-width:0;height:30px;border-radius:4px;background:#151515;overflow:hidden;cursor:pointer}
.clip-span .piece-wave{inset:5px 6px}.clip-span .piece-wave i{background:#7d7d7d}
.clip-span-own{position:absolute;top:0;bottom:0;background:#ffffff1c;box-shadow:inset 1px 0 #ffffff66,inset -1px 0 #ffffff66}
.clip-span-at{position:absolute;top:0;bottom:0;width:2px;margin-left:-1px;background:#9a9a9a}
.clip-span-head{position:absolute;top:0;bottom:0;left:0;width:2px;margin-left:-1px;background:#fff;box-shadow:0 0 0 1px #0009}
.clip-dialog[data-type=shot] .clip-span-own,.clip-dialog[data-type=beat] .clip-span-own{display:none}

/* A piece's notes beside the player */
.clip-lead{font-size:var(--type-small);line-height:1.6;color:#d6d6d6;margin:2px 0 6px}
.clip-links-title{font-size:var(--type-meta);font-weight:400;letter-spacing:normal;text-transform:uppercase;color:#888;margin:22px 0 8px}
.clip-links{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:minmax(0,1fr);gap:4px}
.clip-links button{display:flex;align-items:baseline;gap:10px;width:100%;padding:8px 10px;border:1px solid #262626;border-radius:6px;text-align:left;font-size:var(--type-meta);color:#cfcfcf;transition:border-color .2s,background .2s}
.clip-links button:hover{border-color:#555;background:#151515}
.clip-links span{flex:none;width:76px;font-size:var(--type-meta);letter-spacing:normal;text-transform:uppercase;color:#888}
.clip-links strong{flex:1;min-width:0;font-weight:400;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.clip-links em{flex:none;font-style:normal;font-size:var(--type-meta);color:#888;font-variant-numeric:tabular-nums}
.clip-ref{margin-top:16px;font-size:var(--type-meta)}
.clip-ref summary{cursor:pointer;color:#999;width:max-content}.clip-ref summary:hover{color:#fff}
.clip-ref pre{margin:10px 0 0;padding:12px;border:1px solid #2a2a2a;border-radius:8px;background:#111;color:#ddd;font:11px/1.65 ui-monospace,SFMono-Regular,Menlo,monospace;white-space:pre-wrap;overflow-wrap:anywhere}
.piece-status{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
@media(min-width:761px){.clip-info{max-height:calc(90vh - 2px);overflow-y:auto}}
@media(prefers-reduced-motion:reduce){.piece-types button,.clip-links button{transition:none}}

/* A shot, playing from its in point */
.clip-dialog{width:min(1240px,calc(100% - 32px));background:#0d0d0d;border-color:#2a2a2a;filter:none}
.clip-dialog[open]{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(300px,1fr)}
.clip-stage{background:#000;display:flex;flex-direction:column;justify-content:center}
.clip-stage video{display:block;width:100%;aspect-ratio:16/9;background:#000}
.clip-nav{display:flex;justify-content:space-between;padding:12px}
.clip-nav .icon-button{width:36px;height:36px;font-size:var(--type-body);border-color:#444;color:#ddd}.clip-nav .icon-button:disabled{opacity:.3;cursor:default}
.clip-info{padding:30px 28px 28px;min-width:0}
.clip-info h2{font-size:var(--type-h2);font-weight:400;letter-spacing:normal;line-height:1.3;margin:10px 48px 4px 0}
.clip-film{font-size:var(--type-meta);color:#888;margin-bottom:18px}
.clip-info dl{display:grid;gap:12px;margin:0}.clip-info dt{font-size:var(--type-meta);letter-spacing:normal;text-transform:uppercase;color:#888;margin-bottom:4px}.clip-info dd{margin:0;font-size:var(--type-small);line-height:1.6;color:#bbb}
.clip-tags{list-style:none;margin:18px 0 0;padding:0;display:flex;flex-wrap:wrap;gap:6px}
.clip-tags li{font-size:var(--type-meta);color:#ddd;border:1px solid #333;border-radius:20px;padding:4px 10px}.clip-tags span{color:#888;margin-right:5px}
.clip-note{font-size:var(--type-meta);color:#888;margin-top:8px}
.clip-actions{display:flex;flex-wrap:wrap;align-items:center;gap:16px;margin-top:22px;font-size:var(--type-meta)}
.clip-agent-text{display:block;width:100%;margin-top:14px;padding:10px 12px;border:1px solid #333;border-radius:6px;background:#0b0b0b;color:#ccc;font:var(--type-meta)/1.6 var(--font-mono);resize:vertical}
.clip-agent-text:focus{outline:2px solid #f5f5f5;outline-offset:2px}.clip-agent-text::selection{background:#f5f5f5;color:#111}
.clip-credit{font-size:var(--type-meta);color:#888;line-height:1.6;margin-top:18px}

/* Film pages, laid out as the film dialog's study opens out (library.css: #film-dialog[data-layout=side] and
   [data-layout=stack], and study-view.js; keep them in step), with the same classes. Side by side on a wide screen or a
   phone held sideways (film-page.js's SIDE): the film in a column of its own, the window's height, with the breakdown's
   live part under it (the timeline, its playhead and the current shot: film-page.js moves it there), and the notes
   scrolling beside it. Stacked on phones and portrait tablets: the film pinned on top under its title, and the timeline
   pinned under it. Media queries, not JavaScript, choose the layout, so the page never jumps as it loads. */
.crumbs{display:flex;gap:8px;margin-bottom:22px;font-size:var(--type-meta);color:#888}.crumbs a{color:#bbb}.crumbs a:hover{color:#fff}
.film-head h1{font-family:var(--font-sans);font-size:var(--type-h3);font-weight:600;letter-spacing:normal;line-height:1.3;margin:6px 0 10px;max-width:720px}
.detail-stage .campaign-player img{display:block;width:100%;height:100%;object-fit:cover}
.film-page .breakdown .bd-head h2{font-size:22px;line-height:1.4;font-weight:400;letter-spacing:-.3px;color:#eee;margin-top:10px;max-width:780px}
.film-page h3.bd-section{font-weight:600}
.film-page .bd-shots h4{margin:0;font-size:14px;font-weight:600}
.film-page .bd-locked{grid-template-columns:1fr}.film-page .bd-locked-copy h3{font-size:20px;font-weight:400;letter-spacing:-.3px;margin:0 0 10px}
.film-page .bd-free a{color:#ddd;border-bottom:1px solid #555;padding-bottom:1px}.film-page .bd-free a:hover{color:#fff}
.film-more{display:flex;flex-wrap:wrap;gap:12px 24px;margin:48px 0 0;font-size:var(--type-small)}.film-more a{color:#ddd;border-bottom:1px solid #444;padding-bottom:3px}.film-more a:hover{color:#fff}
@media not (((min-width:1000px) and (min-height:560px)) or ((orientation:landscape) and (max-height:559px) and (min-width:600px))){
  .film-study .detail-stage{position:sticky;top:0;z-index:6;background:#000}
  .film-study .campaign-player{margin-top:0;height:min(56.25vw,38dvh);aspect-ratio:auto}
  .film-study .stage-title{display:block;height:56px;line-height:56px;padding:0 18px;font-size:var(--type-small);color:#eee;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .film-study .detail-content{max-width:1020px;margin:0 auto;padding:22px 18px 0}
  .film-study .bd-timeline{top:var(--stage-h,0px);padding:10px 0 8px;--lane:20px;--sub-h:11px;--colour-h:12px}
  .film-study :is(.bd-names,.bd-tracks){grid-auto-rows:22px}
  .film-study .bd-timeline.has-measures :is(.bd-names,.bd-tracks){grid-template-rows:repeat(3,var(--lane)) repeat(2,var(--sub-h)) var(--colour-h)}
  .film-study :is(.bd-strip,.bd-names .is-strip,.bd-legend,.bd-now-measured,.bd-now-sound){display:none}
  .film-study .bd-names .is-sub{font-size:8px}
  .film-study .bd-shots>li{scroll-margin-top:calc(var(--stage-h,0px) + 130px)}
}
@media(min-width:1000px) and (min-height:560px),(orientation:landscape) and (max-height:559px) and (min-width:600px){
  .film-study{--stage-w:clamp(480px,min(52vw,(100dvh - 380px) * 16 / 9),100vw - 440px);display:grid;grid-template-columns:var(--stage-w) minmax(0,1fr);align-items:start}
  .film-study .detail-stage{position:sticky;top:0;height:100dvh;display:flex;flex-direction:column;background:#0b0b0b;border-right:1px solid #222}
  .film-study .campaign-player{flex:none}
  .film-study .detail-stage .bd-live{display:block;flex:1;min-height:0;overflow-y:auto;padding:2px 28px 24px;scrollbar-width:thin}
  .film-study .detail-stage .bd-timeline{position:static;margin-top:0;background:none}
  .film-study .detail-stage .bd-shot{margin-top:16px;padding:18px 20px;background:#141414}
  .film-study .detail-stage .bd-shot .bd-card-cue{font-size:12.5px}
  .film-study .detail-content{max-width:920px;padding:40px clamp(28px,3vw,56px) 64px}
  .film-study .bd-shots li.has-frame{grid-template-columns:clamp(150px,30%,232px) minmax(0,1fr) auto}
}
@media(orientation:landscape) and (max-height:559px) and (min-width:600px){
  .film-study{--stage-w:min(50vw,(100dvh - 120px) * 16 / 9)}
  .film-study .detail-stage .bd-live{padding:0 16px 16px}
  .film-study .detail-stage .bd-timeline{padding:8px 0 6px;--lane:20px;--sub-h:12px;--colour-h:14px;--strip-h:6px}
  .film-study .detail-stage :is(.bd-names,.bd-tracks){grid-auto-rows:20px}
  .film-study .detail-stage .bd-names .is-strip{font-size:0}
  .film-study .detail-stage .bd-shot{margin-top:10px;padding:14px 16px}
  .film-study .detail-content{padding:20px 20px 40px}
  .film-study .breakdown .bd-head h3{font-size:17px}
  .film-study .bd-shots li.has-frame{grid-template-columns:120px minmax(0,1fr);gap:12px}
  .film-study .bd-role{display:none}
}
.page-footer{flex-wrap:wrap;align-items:flex-start}
.page-footer nav{flex:1;display:flex;flex-wrap:wrap;gap:8px 18px;max-width:760px;color:#999}


@media(max-width:760px){
  .shots-page{padding-top:24px}
  .shot-filters{grid-template-columns:repeat(2,minmax(0,1fr));padding:14px;gap:12px}
  .shot-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px 10px}
  .results-toolbar .shot-source{display:none}
  .piece-types{gap:22px;margin:0 -20px 24px;padding:4px 20px 0}
  .piece-types button{font-size:var(--type-small);padding-bottom:11px}
  .shot-caption .piece-desc{font-size:var(--type-meta)}
  .piece-type{left:6px;top:6px;font-size:var(--type-meta)}
  .clip-links span{width:62px}
  .clip-dialog{width:calc(100% - 16px);max-height:94vh}
  .clip-dialog[open]{grid-template-columns:1fr}
  .clip-info{padding:20px 18px}
}

/* The pieces page (pieces.html, pieces.js): the films' clips, stills and sounds, each on its own. A clip's tile holds its
   still, and a video of its span arrives over it (z-index 1) when it plays; its kind, length and progress sit above. */
.pieces-page{padding-top:40px}
.pieces-page .library-heading p{max-width:600px;line-height:1.6}
.pieces-page .library-heading p a,.pc-note a{color:#ccc;border-bottom:1px solid #444;padding-bottom:1px}.pieces-page .library-heading p a:hover,.pc-note a:hover{color:#fff}
.pc-hint-touch{display:none}
@media(hover:none){.pc-hint-hover{display:none}.pc-hint-touch{display:inline}}
/* The index: the closed lists' commonest names, a column each, as type (Mobbin's categories). Each one narrows a view. */
.pc-index{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:28px 32px;margin:4px 0 72px}
.pc-index h2{margin:0 0 14px;font-size:var(--type-small);font-weight:400;letter-spacing:normal;color:#8a8a8a}
.pc-index ul{display:grid;gap:6px;margin:0;padding:0;list-style:none}
.pc-index a{font-size:var(--type-h3);font-weight:500;letter-spacing:-.01em;line-height:1.3;color:#d9d9d9;text-decoration:underline 1px transparent;text-underline-offset:7px;transition:color .2s,text-decoration-color .2s}
.pc-index a:hover{color:#fff}
.pc-index a[aria-current=true]{color:#fff;text-decoration-color:#fff}
/* Under the search bar (library.css → .library-search, as on the home page): the views and Shuffle, one line under them. */
.pc-bar{display:flex;align-items:flex-end;gap:20px;margin-bottom:18px;border-bottom:1px solid #262626}
.pieces-page .pc-bar .piece-types{flex:1;min-width:0;margin:0;border-bottom:0}
.pc-shuffle{flex:none;display:inline-flex;align-items:center;gap:8px;margin-bottom:8px;padding:7px 2px;font-size:var(--type-meta);color:#aaa;transition:color .2s}.pc-shuffle svg{width:17px;height:17px}.pc-shuffle:hover{color:#fff}
/* What's on the wall, and whatever narrows it, as tokens that clear it. */
.pc-count{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;min-height:28px;margin-bottom:16px;font-size:var(--type-meta);color:#888}
.pc-token{display:inline-flex;align-items:center;gap:6px;max-width:100%;height:28px;padding:0 8px 0 12px;border:1px solid #3a3a3a;border-radius:999px;color:#e6e6e6;font-size:var(--type-meta);transition:border-color .2s,color .2s}
.pc-token span{min-width:0;max-width:280px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pc-token svg{flex:none;width:13px;height:13px;color:#999}.pc-token:hover{border-color:#888;color:#fff}.pc-token:hover svg{color:#fff}
.pc-open{display:flex;align-items:center;justify-content:space-between;gap:24px;margin:0 0 26px;padding:18px 22px;background:#111;border:1px solid #272727;border-radius:10px}
.pc-open p{font-size:var(--type-small);line-height:1.6;color:#aaa;max-width:760px}.pc-open strong{color:#eee;font-weight:600}
.pc-grid{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:30px 18px}
.pc-grid[data-wall=stills]{grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:8px}
.pc-grid[data-wall=sounds]{grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:12px}
.pc-tile{position:relative;min-width:0}
.pc-card{position:relative;display:block;width:100%;aspect-ratio:16/9;overflow:hidden;border-radius:6px;background:#0c0c0c;box-shadow:0 0 0 1px #ffffff12;transition:box-shadow .2s}
.pc-card:hover,.pc-card:focus-visible{box-shadow:0 0 0 2px #f5f5f5}.pc-card:focus-visible{outline:none}
.pc-card :is(img,video){position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:cover}
.pc-card img{opacity:0;transition:opacity .4s,scale .5s cubic-bezier(.2,.7,.2,1)}.pc-card img.is-loaded{opacity:1}
.pc-card video{z-index:1;opacity:0;pointer-events:none;transition:opacity .15s}.pc-card.is-playing video{opacity:1}
.pc-kind,.pc-card .pc-len{position:absolute;z-index:2;left:8px;padding:2px 6px;border-radius:3px;background:#000000b8;line-height:1.5;font-variant-numeric:tabular-nums}
.pc-kind{top:8px;color:#d0d0d0;font-size:var(--type-meta);letter-spacing:normal;text-transform:uppercase}
.pc-card .pc-len{bottom:8px;color:#e6e6e6;font-size:var(--type-meta)}
.pc-progress{position:absolute;z-index:2;left:0;right:0;bottom:0;height:2px;background:#fff;transform-origin:left;transform:scaleX(var(--p,0));opacity:0}
.pc-card.is-playing .pc-progress{opacity:1}
.pc-caption{margin-top:10px;display:flex;flex-direction:column;gap:3px;min-width:0}
/* The bookmark on a clip: in the card's corner, shown while the clip is pointed at, once it's saved, and always on a touch screen */
.pc-caption strong{font-size:var(--type-small);font-weight:600;color:#ddd;line-height:1.45;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pc-caption span{font-size:var(--type-meta);color:#888}
/* Stills: a wall, each frame's words over it when it's pointed at (always, on a touch screen) */
.pc-grid[data-wall=stills] .pc-card{border-radius:3px}.pc-grid[data-wall=stills] .pc-card:hover img{scale:1.03}
.pc-over{position:absolute;z-index:2;left:0;right:0;bottom:0;display:flex;flex-direction:column;gap:2px;padding:30px 10px 9px;background:linear-gradient(#0000,#000000d9);text-align:left;opacity:0;translate:0 4px;transition:opacity .2s,translate .2s}
.pc-over strong{font-size:var(--type-meta);font-weight:600;color:#eee;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pc-over span{font-size:var(--type-meta);color:#aaa}
.pc-card:hover .pc-over,.pc-card:focus-visible .pc-over{opacity:1;translate:none}
@media(hover:none){.pc-over{opacity:1;translate:none}}
/* Sounds: a board of bites. Each waveform is drawn twice, the bright copy cut to how far the bite has played (--p). */
.pc-sound{display:flex;flex-direction:column;gap:14px;width:100%;padding:14px 16px 16px;border:1px solid #262626;border-radius:10px;background:#0e0e0e;text-align:left;transition:border-color .2s,background .2s}
.pc-sound:hover{border-color:#555;background:#141414}.pc-sound[aria-pressed=true]{border-color:#e6e6e6;background:#151515}
.pc-sound-head{display:flex;align-items:center;gap:10px;min-height:30px;padding-right:38px;font-size:var(--type-meta);color:#999}
.pc-play{flex:none;display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:#eee;color:#111}
.pc-play svg{width:13px;height:13px;fill:currentColor;stroke:none}
.pc-icon-stop{display:none}.pc-sound[aria-pressed=true] .pc-icon-play{display:none}.pc-sound[aria-pressed=true] .pc-icon-stop{display:inline}
.pc-family{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:var(--type-meta);letter-spacing:normal;text-transform:uppercase;color:#aaa}
.pc-sound .pc-len{margin-left:auto;flex:none;font-variant-numeric:tabular-nums}
.pc-wave{position:relative;display:block;height:54px}
.pc-wave-base,.pc-wave-done{position:absolute;inset:0;display:flex;align-items:center;gap:2px}
.pc-wave i{flex:1 1 0;height:max(2px,calc(var(--h) * 100%));border-radius:1px;background:#8c8c8c;transition:background .2s}
.pc-sound:hover .pc-wave-base i{background:#b5b5b5}
.pc-sound[aria-pressed=true] .pc-wave-base i{background:#3d3d3d}
.pc-wave-done{clip-path:inset(0 100% 0 0)}.pc-wave-done i{background:#fff}
.pc-sound[aria-pressed=true] .pc-wave-done{clip-path:inset(0 calc((1 - var(--p,0)) * 100%) 0 0)}
.pc-sound-name{display:flex;flex-direction:column;gap:3px;min-width:0}
.pc-sound-name :is(strong,span){overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pc-sound-name strong{font-size:var(--type-small);font-weight:600;color:#ddd}.pc-sound-name span{font-size:var(--type-meta);color:#888}
.pc-about{position:absolute;top:14px;right:14px;display:grid;place-items:center;width:30px;height:30px;border-radius:50%;border:1px solid #333;color:#999;transition:border-color .2s,color .2s}
.pc-about svg{width:14px;height:14px}.pc-about:hover{border-color:#888;color:#fff}
/* Films: each film the pieces come from, a strip under its poster marking where its matches sit, the best one brighter. */
.pc-grid[data-wall=films]{grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:34px 18px}
.pc-film-card{display:block;color:inherit}
.pc-film-art{position:relative;display:block;aspect-ratio:16/9;overflow:hidden;border-radius:6px;background:#0c0c0c;box-shadow:0 0 0 1px #ffffff12;transition:box-shadow .2s}
.pc-film-art img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:0;transition:opacity .4s,scale .5s cubic-bezier(.2,.7,.2,1)}.pc-film-art img.is-loaded{opacity:1}
.pc-film-card:hover .pc-film-art,.pc-film-card:focus-visible .pc-film-art{box-shadow:0 0 0 2px #f5f5f5}.pc-film-card:focus-visible{outline:none}
.pc-film-card:hover .pc-film-art img{scale:1.03}
.pc-film-art .pc-len{position:absolute;z-index:1;left:8px;bottom:8px;padding:2px 6px;border-radius:3px;background:#000000b8;color:#e6e6e6;font-size:var(--type-meta);line-height:1.5;font-variant-numeric:tabular-nums}
.pc-film-line{position:relative;display:block;height:12px;margin-top:8px;border-radius:2px;background:#1c1c1c;overflow:hidden}
.pc-film-line i{position:absolute;top:2px;bottom:2px;width:2px;margin-left:-1px;border-radius:1px;background:#9a9a9a}
.pc-film-line i.is-best{top:0;bottom:0;width:3px;background:#fff}
.pc-film-text{display:flex;flex-direction:column;gap:3px;margin-top:10px;min-width:0}
.pc-film-text strong{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;font-size:var(--type-small);font-weight:600;line-height:1.45;color:#ddd}
.pc-film-text span{font-size:var(--type-meta);color:#888}
.pc-film-foot{display:flex;justify-content:space-between;align-items:baseline;gap:12px;margin-top:6px;font-size:var(--type-meta);color:#888}
.pc-film-foot button{flex:none;color:#ccc;border-bottom:1px solid #444;padding-bottom:1px;transition:color .2s,border-color .2s}.pc-film-foot button:hover{color:#fff;border-color:#aaa}
.pc-more{display:flex;justify-content:center;padding:34px 0 0}
/* The piece panel on /pieces: the piece, one block of actions, its facts as a grid, then the film it comes from. */
#pc-dialog .close-button svg{display:block;width:18px;height:18px;stroke-width:2}
#pc-dialog .clip-info h2{margin:6px 48px 10px 0;text-wrap:balance}
#pc-dialog .clip-lead{margin:0;max-width:60ch}
.pc-acts{display:flex;flex-wrap:wrap;gap:8px;margin-top:24px}
.pc-acts :is(.light-button,.club-action){flex:1 1 0;justify-content:center;min-height:42px;padding:0 14px;border-radius:8px;font-size:var(--type-meta)}
.pc-acts .light-button{flex-basis:100%}
.pc-acts .club-action svg{flex:none}
#pc-agent .pc-check,#pc-agent.is-copied .pc-copy{display:none}#pc-agent.is-copied .pc-check{display:block}
#pc-dialog .pc-facts{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 20px;margin:24px 0 0}
#pc-dialog .pc-facts div{min-width:0}
#pc-dialog .pc-facts dt{margin-bottom:2px}
#pc-dialog .pc-facts dd{line-height:1.45;color:#e6e6e6;overflow-wrap:anywhere}
.pc-trust{margin-top:12px;font-size:var(--type-meta);line-height:1.5;color:#888}
.pc-source{margin-top:24px;padding-top:20px;border-top:1px solid #262626}
.pc-source-film{font-size:var(--type-small);line-height:1.45;color:#e6e6e6}
.pc-source-credit{margin-top:6px;font-size:var(--type-meta);line-height:1.6;color:#888}
.pc-source-links{display:flex;flex-wrap:wrap;gap:8px 20px;margin-top:14px;font-size:var(--type-meta)}
.pc-source-links .original-link{padding-bottom:3px}
.pc-note{margin-top:64px;padding:24px 0;border-top:1px solid #222;color:#888;font-size:var(--type-meta);line-height:1.7;max-width:760px}
@media(max-width:760px){
  .pieces-page{padding-top:24px}
  .pc-index{grid-template-columns:repeat(2,minmax(0,1fr));gap:26px 16px;margin-bottom:40px}
  .pc-index a{font-size:18px}
  .pc-index ul li:nth-child(n+4){display:none}
  .pc-bar{flex-wrap:wrap;gap:0;margin:0 -20px 16px;padding:0 20px}
  .pieces-page .pc-bar .piece-types{flex:0 0 calc(100% + 40px);margin:0 -20px;padding:4px 20px 0}
  .pc-shuffle{order:-1;margin:0 0 6px auto}
  .pc-shuffle span{display:none}
  .pc-grid[data-wall=films]{grid-template-columns:1fr;gap:28px}
  .pc-open{flex-direction:column;align-items:flex-start;gap:14px;padding:16px}.pc-open p{font-size:var(--type-small)}
  .pc-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:22px 10px}
  .pc-grid[data-wall=stills]{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
  .pc-grid[data-wall=sounds]{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .pc-caption strong{font-size:var(--type-meta)}
  .pc-kind{left:6px;top:6px;font-size:var(--type-meta)}.pc-card .pc-len{left:6px;bottom:6px;font-size:var(--type-meta)}
  .pc-sound{gap:10px;padding:10px 12px 12px}.pc-sound-head{gap:8px;padding-right:30px}.pc-sound .pc-len{display:none}
  .pc-play{width:26px;height:26px}.pc-wave{height:40px}.pc-about{top:10px;right:10px;width:26px;height:26px}
  .pc-sound-name strong{font-size:var(--type-meta)}
}
@media(prefers-reduced-motion:reduce){.pc-card img,.pc-over,.pc-sound,.pc-wave i,.pc-index a,.pc-token,.pc-film-art,.pc-film-art img{transition:none}.pc-grid[data-wall=stills] .pc-card:hover img,.pc-film-card:hover .pc-film-art img{scale:none}}

/* Docs: the breakdown method, layer by layer (docs.html). The diagram (.an) draws the breakdown's timeline the way
   breakdown.js does (library.css → .bd-timeline): the same lane heights, marks and colours, with made-up data. */
.docs-page{--measured:#f0b45a;--story:#f0897d;--music:#b8a6f5;--voice:#86c9a4;max-width:1240px;margin:0 auto;padding:40px 32px 0}
.docs-toc{display:none}
@media(min-width:1100px){
  .docs-page{display:grid;grid-template-columns:190px minmax(0,1fr);gap:72px;align-items:start}
  .docs-toc{display:block;position:sticky;top:24px;max-height:calc(100vh - 48px);overflow:auto;font-size:var(--type-meta);line-height:1.5}
}
.docs-toc-title{font-size:var(--type-meta);color:#ddd}
.docs-toc ol{list-style:none;margin:12px 0 0;padding:0;display:grid;gap:7px}
.docs-toc ol ol{margin:7px 0 2px 10px;padding-left:10px;border-left:1px solid #262626;gap:5px}
.docs-toc a{color:#888;transition:color .2s}.docs-toc a:hover{color:#fff}

.docs{max-width:780px;min-width:0}
.docs-head h1{font-size:var(--type-display);font-weight:400;letter-spacing:normal;line-height:1.08;margin-top:16px}
.docs .docs-lede{margin-top:20px;font-size:var(--type-body);line-height:1.6;color:#c4c4c4;max-width:62ch}
.docs .docs-meta{margin-top:16px;font-size:var(--type-meta);color:#777}
.docs>section{margin-top:80px;scroll-margin-top:24px}
.docs h2{font-size:var(--type-h2);font-weight:400;letter-spacing:normal;line-height:1.25}
.docs :where(p,li,dd,td){font-size:var(--type-small);line-height:1.75;color:#a8a8a8;text-wrap:pretty}
.docs>section>p{max-width:56ch}
.docs h2+p{margin-top:12px}
.docs :where(p+p){margin-top:12px}
.docs strong{color:#e6e6e6;font-weight:600}
.docs a.inline,.docs figcaption a{color:#ddd;border-bottom:1px solid #555;padding-bottom:1px}.docs a.inline:hover,.docs figcaption a:hover{color:#fff}
.docs code{font-family:var(--font-sans);font-size:var(--type-small);color:#d4d4d4;background:#151515;border:1px solid #262626;border-radius:4px;padding:1px 5px}
.docs-note{padding-left:14px;border-left:2px solid #333;color:#8f8f8f!important}

/* The four kinds of claim: a shape and a colour each, so neither alone carries the meaning. Amber and white match the
   breakdown's own marks for measured and checked-on-frames; the story colour marks what's tagged. */
.kind{display:inline-flex;align-items:center;gap:8px;font-size:var(--type-meta);letter-spacing:normal;text-transform:uppercase;color:#9a9a9a;white-space:nowrap;line-height:1.3}
.kind::before{content:'';flex:none;box-sizing:border-box;width:8px;height:8px}
.kind.is-measured::before{background:var(--measured);border-radius:50%}
.kind.is-frames::before{background:#ececec;border-radius:1px}
.kind.is-inferred::before{border:1.5px solid #a8a8a8;border-radius:50%}
.kind.is-tagged::before{width:7px;height:7px;margin:0 .5px;background:var(--story);transform:rotate(45deg)}
.kind.is-big{font-size:var(--type-body);font-weight:600;letter-spacing:normal;text-transform:none;color:#eee;gap:11px;white-space:normal}
.kind.is-big::before{width:10px;height:10px}.kind.is-big.is-tagged::before{width:9px;height:9px}
.docs-kinds{list-style:none;margin:28px 0 0;padding:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.docs-kinds li{padding:20px 20px 18px;background:#0f0f0f;border:1px solid #242424;border-radius:10px}
.docs-kinds p{margin-top:10px;font-size:var(--type-small);line-height:1.65}
.docs-kinds .docs-how{margin-top:12px;padding-top:12px;border-top:1px solid #1f1f1f;font-size:var(--type-small);color:#7d7d7d}

/* The diagram */
.an{margin:32px 0 8px;padding:22px 22px 18px;background:#0a0a0a;border:1px solid #242424;border-radius:12px}
/* As on a breakdown: a ruler, then the story, the picture and the sound, each a header (its name and the keys to its
   marks) over the lane a person logged and the thinner rows under it. One grid, a name and a track to a row. */
.an{--ruler:14px;--lane:26px;--energy:20px;--sub:16px;--colour:16px;--strip:11px}
.an-grid{display:grid;grid-template-columns:96px minmax(0,1fr);gap:4px 14px}
.an-grid>[data-h=ruler]{height:var(--ruler)}
.an-track[data-h=lane]{height:var(--lane)}.an-track[data-h=energy]{height:var(--energy)}.an-track[data-h=sub]{height:var(--sub)}.an-track[data-h=colour]{height:var(--colour)}.an-track[data-h=strip]{height:var(--strip)}
.an-grid>a{display:flex;align-items:center;gap:6px;padding-left:10px;font-size:var(--type-meta);line-height:1;color:#9a9a9a;white-space:nowrap;transition:color .2s}
.an-grid>a[data-h=lane]{color:#dcdcdc}
.an-grid>a[data-h=strip]{font-size:11px;color:#7d7d7d}
.an-grid>a:hover{color:#fff}
.an-grid>[data-h=head]{position:relative;margin-top:10px}
.an-ruler+[data-h=head],.an-ruler+[data-h=head]+[data-h=head]{margin-top:4px}
.an-grid>[data-h=head]::after{content:'';position:absolute;left:0;right:0;top:-8px;height:1px;background:#242424}
.an-grid>.an-group::after{right:-14px}
.an-ruler+[data-h=head]::after,.an-ruler+[data-h=head]+[data-h=head]::after{display:none}
.an-group{display:flex;align-items:center;font-size:11px;font-weight:600;letter-spacing:.8px;text-transform:uppercase;color:#7d7d7d}
.an-ruler{position:relative;box-shadow:inset 0 -1px #2a2a2a}
.an-ruler i{position:absolute;bottom:0;width:1px;height:3px;background:#3d3d3d}
.an-ruler i.is-major{height:7px;background:#5e5e5e}
.an-ruler span{position:absolute;left:4px;bottom:2px;font-size:10px;line-height:1;color:#777;font-variant-numeric:tabular-nums}
.an-n{flex:none;width:17px;color:#7a7a7a;font-variant-numeric:tabular-nums}
.an-track{position:relative;background:#161616;border-radius:3px;overflow:hidden}
.an-seg{position:absolute;top:0;bottom:0;display:flex;align-items:center;min-width:0;padding:0 5px;background:#1f1f1f;border-left:1px solid #0a0a0a;color:#a3a3a3;font-size:var(--type-meta);white-space:nowrap;overflow:hidden}
.an-seg::after{content:attr(data-label);overflow:hidden;text-overflow:ellipsis}
[href="#shots"]+.an-track .an-seg:nth-child(odd){background:#232323}
.an-mark,.an-tick,.an-cue,.an-hit{position:absolute}
.an-mark{top:0;bottom:0;width:0;z-index:2}
.an-mark::before{content:'';position:absolute;top:50%;left:0;translate:-50% -50%}
.an-mark.is-screen::before{width:8px;height:8px;border-radius:1px;background:#fff;box-shadow:0 0 0 1px #111}
.an-mark.is-intro{margin-left:-1px;border-left:2px dashed var(--story)}
.an-mark.is-intro::before{display:none}
.an-mark.is-turn::before{width:7px;height:7px;background:var(--story);rotate:45deg;box-shadow:0 0 0 1px #111}
.an-mark.is-payoff::before{width:8px;height:8px;border-radius:50%;background:var(--story);box-shadow:0 0 0 1px #111}
.an-tick{bottom:0;z-index:1}
.an-tick.is-cut{width:1px;height:40%;background:#d8d8d8}
.an-tick.is-fade{height:40%;background:linear-gradient(90deg,#ffffff00,#d8d8d8)}
.an-tick.is-move{height:3px;background:#9a9a9a}
.an-tick.is-none{top:3px;bottom:auto;width:6px;height:6px;margin-left:-3px;border-radius:50%;background:var(--measured);box-shadow:0 0 0 1px #111}
.an-cue{bottom:2px;height:40%;width:2px;margin-left:-1px;background:var(--music)}
.an-cue.is-edit{width:0;background:none;border-left:2px dotted var(--music)}
.an-hit{top:12%;bottom:12%;width:2px;margin-left:-1px;border-radius:1px;background:#d6d6d6}
.an-bed{position:absolute;top:30%;bottom:30%;background:#6c7a80;opacity:.75}
.an-line{position:absolute;top:28%;bottom:28%;border-radius:2px;background:var(--voice);opacity:.6}
.an-colour,.an-strip{display:flex;gap:1px;background:#0c0c0c}
.an-colour i{flex:1 1 0;background:linear-gradient(to top,#141c26 0 var(--a),#56728f var(--a) var(--b),#c3ab88 var(--b) var(--c),#ebe5d9 var(--c))}
.an-strip{align-items:flex-end;background:#121212}
.an-strip i{flex:1 1 0;height:calc(var(--v) * 100%);background:#6f6f6f}
.an-energy{background:#141414}
.an-energy svg{display:block;width:100%;height:100%}
.an-energy polygon{fill:var(--measured);opacity:.17}
.an-energy polyline{fill:none;stroke:var(--measured);stroke-width:1.5;stroke-linejoin:round;vector-effect:non-scaling-stroke}
.an-keys{display:flex;flex-wrap:wrap;align-items:center;gap:4px 16px;margin:0;font-size:var(--type-meta);line-height:1.4}
.an-keys a{color:#808080;transition:color .2s}.an-keys a:hover{color:#fff}
.an-keys a::before{content:'';display:inline-block;margin-right:7px;vertical-align:middle}
.an-keys .is-edit::before{height:10px;border-left:2px dotted var(--music)}
.an-keys .is-hit::before{width:2px;height:10px;border-radius:1px;background:#d6d6d6}
.an-keys .is-bed::before{width:12px;height:5px;background:#6c7a80;opacity:.75}
.an-keys .is-cut::before{width:1px;height:10px;background:#d8d8d8}
.an-keys .is-fade::before{width:12px;height:8px;background:linear-gradient(90deg,#ffffff00,#d8d8d8)}
.an-keys .is-move::before{width:12px;height:3px;background:#9a9a9a}
.an-keys .is-none::before{width:6px;height:6px;border-radius:50%;background:var(--measured)}
.an-keys .is-music::before{width:2px;height:10px;background:var(--music)}
.an-keys .is-screen::before{width:7px;height:7px;border-radius:1px;background:#fff}
.an-keys .is-intro::before{height:10px;border-left:2px dashed var(--story)}
.an-keys .is-turn::before{width:6px;height:6px;background:var(--story);rotate:45deg}
.an-keys .is-payoff::before{width:7px;height:7px;border-radius:50%;background:var(--story)}
.an figcaption{margin:14px 0 0 110px;font-size:var(--type-small);line-height:1.6;color:#8a8a8a}

/* A layer: its number, name and kinds of claim on the left, the notes on the right */
.docs-layer{display:grid;grid-template-columns:180px minmax(0,1fr);gap:10px 36px;padding:34px 0;border-top:1px solid #1d1d1d;scroll-margin-top:24px}
.docs-layer:first-of-type{margin-top:40px}
.docs-num{font-size:var(--type-meta);color:#8a8a8a;font-variant-numeric:tabular-nums;letter-spacing:normal}
.docs-layer-head h3{font-size:var(--type-h3);font-weight:400;letter-spacing:normal;line-height:1.25;color:#f0f0f0;margin:6px 0 14px}
.docs-layer-kinds{display:flex;flex-direction:column;align-items:flex-start;gap:8px}
.docs-layer-body .docs-what{font-size:var(--type-body);line-height:1.6;color:#dcdcdc}
.docs-layer-body h4{font-size:var(--type-meta);font-weight:400;letter-spacing:normal;text-transform:uppercase;color:#7a7a7a;margin:26px 0 8px}
.docs-layer-body ul{margin:10px 0 0;padding-left:18px}
.docs-layer-body li+li{margin-top:6px}
.docs-layer-body ul+p{margin-top:14px}
.docs-layer-body li::marker{color:#555}
.docs-layer-body .docs-note{margin-top:18px}
.docs-roles{list-style:none;padding:0!important;display:flex;flex-wrap:wrap;gap:6px}
.docs-roles li,.docs-chips li{margin:0!important;font-size:var(--type-small);line-height:1.4;color:#d6d6d6;border:1px solid #333;border-radius:20px;padding:5px 11px}

/* Around the timeline */
.docs-around{margin:28px 0 0;display:grid;gap:0}
.docs-around>div{display:grid;grid-template-columns:180px minmax(0,1fr);gap:8px 36px;padding:22px 0;border-top:1px solid #1d1d1d}
.docs-around dt{font-size:var(--type-body);color:#eee;line-height:1.4;display:flex;flex-direction:column;align-items:flex-start;gap:9px}
.docs-around dd{margin:0}

.docs-table{width:100%;border-collapse:collapse;margin-top:24px}
.docs-table th{width:180px;text-align:left;vertical-align:top;font-size:var(--type-small);font-weight:600;color:#ddd;padding:14px 36px 14px 0;border-top:1px solid #1d1d1d}
.docs-table td{padding:13px 0;border-top:1px solid #1d1d1d}

.docs-vocab{margin-top:28px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.docs-vocab>div{padding:20px;background:#0f0f0f;border:1px solid #242424;border-radius:10px}
.docs-vocab h3{font-size:var(--type-h3);font-weight:600;color:#eee}
.docs-vocab p{font-size:var(--type-small);margin-top:4px;color:#888}
.docs-chips{list-style:none;margin:14px 0 0;padding:0;display:flex;flex-wrap:wrap;gap:6px}
.docs-chips.is-sync li{border-style:dashed;color:#c9c9c9}
.docs-vocab>div:nth-child(2),.docs-vocab-sync{grid-column:1/-1}

.docs-rules{margin:24px 0 0;padding:0;list-style:none;counter-reset:rule;display:grid;gap:0}
/* A rule is a bold lead-in and its text in one run, so the number hangs in the margin rather than taking a grid column
   (a grid would make the lead-in and the text two cells). */
.docs-rules li{counter-increment:rule;position:relative;padding:16px max(0px,calc(100% - 36px - 56ch)) 16px 36px;border-top:1px solid #1d1d1d}
.docs-rules li::before{content:counter(rule,decimal-leading-zero);position:absolute;left:0;top:20px;font-size:var(--type-meta);line-height:1.5;color:#8a8a8a;font-variant-numeric:tabular-nums}

.docs-stats{list-style:none;margin:24px 0 20px;padding:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.docs-stats li{padding:18px 16px;background:#0f0f0f;border:1px solid #242424;border-radius:10px;display:flex;flex-direction:column;gap:8px}
.docs-stats strong{font-size:var(--type-h2);font-weight:400;letter-spacing:normal;line-height:1;color:#f2f2f2;font-variant-numeric:tabular-nums;white-space:nowrap}
.docs-stats span{font-size:var(--type-small);line-height:1.5;color:#8f8f8f}

.docs-see{padding:32px;background:#0f0f0f;border:1px solid #242424;border-radius:12px}
.docs-films{list-style:none;margin:22px 0 0;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.docs-films a{display:flex;flex-direction:column;gap:6px;height:100%;padding:16px;border:1px solid #2e2e2e;border-radius:8px;transition:border-color .2s,background .2s}
.docs-films a:hover{border-color:#bbb;background:#151515}
.docs-films span{font-size:var(--type-meta);letter-spacing:normal;text-transform:uppercase;color:#888}
.docs-films strong{font-size:var(--type-small);font-weight:400;line-height:1.4;color:#eee}
.docs-films strong::after{content:' ↗';color:#888}


/* Pieces: the closed lists' groups, the subsections and an example reference */
.docs-vocab-wide{grid-column:1/-1}
#piece-vocab-lists>div:nth-child(2){grid-column:auto}
.docs .docs-sub{font-size:var(--type-body);font-weight:400;letter-spacing:normal;line-height:1.3;color:#eee;margin:52px 0 0;scroll-margin-top:24px}
.docs-sub+p,.docs-sub+.docs-rules{margin-top:12px}
.docs .docs-chips-group{margin-top:16px;font-size:var(--type-meta);letter-spacing:normal;text-transform:uppercase;color:#7a7a7a}
.docs-chips-group+.docs-chips{margin-top:8px}
.docs-chips+.docs-chips{margin-top:8px}
#piece-kinds dt code{font-size:var(--type-meta);color:#bdbdbd}
.docs-ref{margin:20px 0 16px;padding:16px 18px;background:#0f0f0f;border:1px solid #242424;border-radius:10px;color:#d4d4d4;font:12px/1.75 ui-monospace,SFMono-Regular,Menlo,monospace;white-space:pre-wrap;overflow-wrap:anywhere}
.docs-ref .dim{color:#8a8a8a}

/* Using the MCP (docs/mcp.html, at /docs/mcp): seven jobs on the layer grid, each with what you ask, the calls, the
   library's answer (real, trimmed where it shows …) and what to do with it, then every tool with something to ask. */
.docs-job .docs-layer-kinds code{font-size:var(--type-meta)}
.docs-job .docs-ref{margin:0}
.docs-job .docs-ref+.docs-ref{margin-top:10px}
.docs .docs-ask{padding:14px 18px;border:1px solid #333;border-radius:10px;font-size:var(--type-body);line-height:1.6;color:#f0f0f0;max-width:none}
.docs-calls{list-style:none;padding:0!important;margin:0!important}
.docs-calls li{margin:0!important}.docs-calls li+li{margin-top:6px!important}
.docs-swatches{margin:10px 0 0;display:flex;height:36px;border-radius:8px;overflow:hidden;border:1px solid #242424}
.docs-swatches i{flex:var(--w) 1 0;min-width:4px;background:var(--c)}
.docs-tools th code{white-space:nowrap}
.docs-tools .docs-eg{display:block;margin-top:4px;color:#e0e0e0}
.docs-tools .docs-eg::before{content:'Ask: ';color:#777}
.docs-tools+.docs-sub{margin-top:40px}

@media(max-width:760px){
  .docs-page{padding:24px 20px 0}
  .docs .docs-lede{font-size:var(--type-body)}
  .docs>section{margin-top:60px}
  .docs h2{font-size:var(--type-h2)}
  .docs-kinds,.docs-vocab,.docs-films{grid-template-columns:1fr}
  .docs-stats{grid-template-columns:repeat(2,minmax(0,1fr))}
  .an{margin-inline:-8px;padding:16px 12px 14px}
  .an-grid{grid-template-columns:66px minmax(0,1fr);column-gap:8px}
  .an{--lane:22px;--energy:16px;--sub:14px;--colour:14px}
  .an-grid>a{padding-left:6px}
  .an-grid>.an-group::after{right:-8px}
  .an-n{display:none}
  .an-seg::after{display:none}
  .an figcaption{margin-left:0}
  .docs-layer,.docs-around>div{grid-template-columns:1fr}
  .docs-layer-kinds{flex-direction:row;flex-wrap:wrap;gap:8px 16px}
  .docs-layer-head h3{margin-bottom:10px}
  .docs-table th,.docs-table td{display:block;width:auto;padding-right:0}
  .docs-table td{border-top:0;padding-top:0}
  .docs-see{padding:22px 18px}
}
@media(prefers-reduced-motion:reduce){.docs-toc a,.an-grid a,.docs-films a{transition:none}}

/* The legal pages (terms.html, privacy.html, refunds.html): the docs' type in one column, without the contents. */
.docs-page.legal-page{grid-template-columns:minmax(0,1fr);max-width:860px}
.legal-nav{display:flex;gap:6px;flex-wrap:wrap}
.legal-nav a{padding:8px 14px;border:1px solid #2a2a2a;border-radius:999px;font-size:12px;line-height:1.2;color:#999}
.legal-nav a:hover{color:#fff;border-color:#444}
.legal-nav a[aria-current=page]{color:#eee;border-color:#555}
.docs.legal>section{margin-top:48px}
.docs.legal>section>p{max-width:64ch}
.docs.legal h3{font-size:var(--type-h3,20px);font-weight:600;letter-spacing:-.01em;color:#e6e6e6;margin-top:24px}
.docs.legal ul{margin-top:12px;padding-left:20px;display:grid;gap:8px;max-width:64ch}
.docs.legal ul li{list-style:disc}
.docs.legal ul li::marker{color:#555}
.docs.legal ul+p{margin-top:14px}
.legal-table{margin-top:14px;overflow-x:auto;border:1px solid #262626;border-radius:10px}
.legal-table table{width:100%;border-collapse:collapse;min-width:520px}
.legal-table th{font-size:11px;letter-spacing:.7px;text-transform:uppercase;color:#8f8f8f;font-weight:600;text-align:left;padding:10px 14px;border-bottom:1px solid #262626}
.legal-table td{padding:12px 14px;vertical-align:top;border-top:1px solid #1d1d1d}
.legal-table td:last-child{white-space:nowrap}
.legal-table+p{margin-top:14px}
footer a{color:inherit}
.agent-prompt{display:flex;gap:8px;align-items:stretch;margin:20px 0 16px}.agent-prompt .docs-ref{flex:1;min-width:0;margin:0;color:#ededea}.agent-prompt button{padding:0 16px;border:1px solid #333;border-radius:10px;color:#ddd;font-size:var(--type-meta)}.agent-prompt button:hover{background:#222}
@media(max-width:760px){.agent-prompt{flex-direction:column}.agent-prompt button{padding:10px}}
