/* sheets.css - THE BLUEPRINTS, laid out as drawn sheets (11-26, the layout chosen: "A, made better").
   The index is four sheets, each a drawing and its numbered parts list over a title block; each piece has its own
   page: the drawing first, a title block of four numbers, three lines, a jump bar, then every sheet laid open.
   Tokens are the site's own (assets/site.css, DESIGN.md): night, vellum, one old gold; Cormorant and Plex Mono;
   spacing 4 8 12 20 32 52 84; no rounded corners. The sky stays out from behind every table (the sheets are opaque). */
.bp-wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.bp-grid-bg { background: var(--bp-grid); }

/* ---------- the index: a strip of four sheet buttons, laid open ---------- */
.idx { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 20px 0 0; }
.idx a { display: flex; align-items: baseline; gap: 8px; text-decoration: none; color: var(--ink); border: 1px solid rgba(233,220,184,.16); padding: 8px 12px;
  font-family: var(--sc); font-size: 1rem; letter-spacing: .12em; background: rgba(5,5,5,.6); }
.idx a i { font: 500 .62rem/1 var(--mono); font-style: normal; color: var(--gold); letter-spacing: .2em; }
.idx a em { font: 500 .66rem/1 var(--mono); font-style: normal; color: var(--dim); }
.idx a:hover, .idx a:focus-visible { border-color: var(--gold); outline: none; }

/* ---------- a drawn sheet: the drawing on the left, the parts list on the right, the title block along the foot ---------- */
.bp-sheets { position: relative; z-index: 1; padding: 8px 0 52px; }
.sheet { position: relative; margin: 0 0 52px; border: 1px solid rgba(233,220,184,.24); outline: 1px solid rgba(233,220,184,.08); outline-offset: 5px;
  background: var(--bp-grid); background-color: #070706; scroll-margin-top: 20px; }
.sheet .body { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(300px, 1fr); }
.sheet .draw { position: relative; display: block; align-self: start; position: sticky; top: 0; border-right: 1px solid rgba(233,220,184,.16); }
.sheet .fig { position: relative; aspect-ratio: 12 / 7; }
.sheet .fig img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transition: opacity .35s ease; }
.sheet .fig img.alt { opacity: 0; }
.sheet .fig img.alt.on { opacity: 1; }
.sheet .fig.dim > img.base { opacity: .12; }
.sheet .fig .fname { position: absolute; left: 14px; bottom: 10px; font: 500 .62rem/1 var(--mono); letter-spacing: .24em; text-transform: uppercase; color: var(--gold); }
.parts { list-style: none; margin: 0; padding: 8px 0; align-self: start; }
.parts li > a, .parts li > div { display: grid; grid-template-columns: 26px 72px 1fr; gap: 12px; align-items: center; padding: 9px 18px; text-decoration: none; color: var(--ink); border-left: 2px solid transparent; }
.parts li > a:hover, .parts li > a:focus-visible, .parts li > a.on { background: rgba(201,179,126,.07); border-left-color: var(--gold); outline: none; }
.parts .no { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font: 500 .6rem/1 var(--mono); color: var(--gold); border: 1px solid rgba(201,179,126,.55); }
.parts a.on .no, .parts a:hover .no { background: var(--gold); color: #050505; }
.parts img, .parts .ph { width: 72px; height: 44px; object-fit: contain; background: #0b0b0a; border: 1px solid rgba(233,220,184,.16); display: block; }
.parts .ph { display: grid; place-items: center; font: 500 .5rem/1 var(--mono); letter-spacing: .15em; color: var(--dim); text-transform: uppercase; }
.parts b { display: block; font-family: var(--sc); font-weight: 400; font-size: 1.08rem; line-height: 1.2; letter-spacing: .1em; color: var(--ink); }
.parts i { display: block; font: 500 .74rem/1.4 var(--mono); font-style: normal; color: var(--gold); }
.parts li > div b, .parts li > div i { color: var(--dim); }
.tblock { display: grid; grid-template-columns: auto 1fr auto auto; border-top: 1px solid rgba(233,220,184,.24); background: rgba(5,5,5,.92);
  font: 500 .62rem/1 var(--mono); letter-spacing: .22em; text-transform: uppercase; color: var(--dim); }
.tblock > * { padding: 10px 14px; border-left: 1px solid rgba(233,220,184,.16); display: flex; align-items: center; gap: 8px; margin: 0; }
.tblock > *:first-child { border-left: 0; color: var(--gold); }
.tblock h2 { font-family: var(--sc); font-weight: 400; font-size: 1.05rem; line-height: 1; letter-spacing: .2em; color: var(--ink); text-transform: none; }
.tblock a { color: var(--gold); text-decoration: none; }
.tblock a:hover { color: var(--ink); }

/* ---------- a piece's page: the drawing first ---------- */
.fv.piece { position: relative; z-index: 1; background: #050505; }
.fv.piece .stage { max-width: 1180px; height: min(64vh, 600px); margin: 0 auto; border: 1px solid rgba(233,220,184,.24); outline: 1px solid rgba(233,220,184,.08); outline-offset: -6px; }
.fv.piece .stage img.poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
.fv.piece .stage.live img.poster { display: none; }
.fv.piece .stage:not(.live) canvas { visibility: hidden; }
.fv.piece .ctl { left: auto; right: 14px; top: 12px; bottom: auto; }
.fv.piece .views { left: 14px; right: auto; top: 12px; justify-content: flex-start; max-width: 60%; }
.fv.piece .stage:not(.boardy) .views { display: none; }
.fv.piece .ctl .seg button[aria-pressed=true] { color: var(--bg); background: var(--gold); }
.fv.piece .verse { position: static; max-width: 1180px; margin: 10px auto 0; padding: 0 20px; color: var(--dim); font-style: italic; font-size: 1.05rem; line-height: 1.45; display: block; }
.fv.piece .pick { margin: 14px auto 0; }
.fv.piece .ride + .verse { margin-top: 14px; }
.piece-ride { position: relative; z-index: 1; background: #050505; }
.sheet-still { max-width: 1180px; margin: 0 auto; border: 1px solid rgba(233,220,184,.24); outline: 1px solid rgba(233,220,184,.08); outline-offset: -6px; background: var(--bp-grid); }
.sheet-still img { display: block; width: 100%; height: auto; max-height: 64vh; object-fit: contain; }

main.piece-main { position: relative; z-index: 1; max-width: 1180px; margin: 0 auto; padding: 0 20px 20px; background: #050505; }
.titleblock { display: grid; grid-template-columns: 1.5fr repeat(4, 1fr); border: 1px solid rgba(233,220,184,.24); margin: 32px 0; background: #070706; }
.titleblock > div { padding: 14px 16px; border-left: 1px solid rgba(233,220,184,.16); display: grid; gap: 2px; align-content: start; }
.titleblock > div:first-child { border-left: 0; }
.titleblock .no { font: 500 .62rem/1 var(--mono); letter-spacing: .24em; text-transform: uppercase; color: var(--gold); margin-bottom: 6px; }
.titleblock b { font-family: var(--sc); font-weight: 400; font-size: 1.5rem; line-height: 1.1; color: var(--gold); overflow-wrap: anywhere; }
.titleblock span { color: var(--dim); font-size: .98rem; line-height: 1.3; }
.titleblock .nm h1 { margin: 0; font-family: var(--sc); font-weight: 400; font-size: 1.9rem; line-height: 1.1; letter-spacing: .06em; color: var(--ink); }
.three { list-style: none; padding: 0; margin: 0 0 32px; max-width: 46rem; display: grid; gap: 8px; font-size: 1.16rem; line-height: 1.5; }
.three li { padding-left: 1.3em; position: relative; }
.three li::before { content: ""; position: absolute; left: .2em; top: .7em; width: 6px; height: 6px; border: 1px solid var(--gold); transform: rotate(45deg); }
.sheetnav { display: flex; flex-wrap: wrap; gap: 8px 20px; padding: 12px 0; border-top: 1px solid rgba(233,220,184,.16); border-bottom: 1px solid rgba(233,220,184,.16); margin: 0 0 20px;
  font: 500 .7rem/1.6 var(--mono); letter-spacing: .18em; text-transform: uppercase; }
.sheetnav a { color: var(--gold); text-decoration: none; }
.sheetnav a:hover { color: var(--ink); }
.piece-main h2.part-h { font-family: var(--sc); font-weight: 400; font-size: 1.2rem; letter-spacing: .2em; color: var(--ink); margin: 40px 0 10px; padding: 12px 14px;
  border: 1px solid rgba(233,220,184,.22); background: var(--bp-grid); scroll-margin-top: 12px; }
.piece-main h2.part-h small { display: block; font: 500 .62rem/1 var(--mono); letter-spacing: .3em; text-transform: uppercase; color: var(--gold); margin-bottom: 6px; }
.bom { list-style: none; margin: 8px 0 0; padding: 0; columns: 3 14rem; column-gap: 28px; counter-reset: c; }
.bom li { counter-increment: c; break-inside: avoid; position: relative; padding: 7px 0 7px 2.6em; border-bottom: 1px solid rgba(233,220,184,.12); font-size: 1.02rem; line-height: 1.4; }
.bom li::before { content: counter(c, decimal-leading-zero); position: absolute; left: 0; top: 7px; width: 1.9em; height: 1.9em; border-radius: 50%; border: 1px solid rgba(201,179,126,.55);
  display: grid; place-items: center; font: 500 .6rem/1 var(--mono); color: var(--gold); }
.bom li b { display: block; font-family: var(--sc); font-weight: 400; letter-spacing: .08em; color: var(--ink); }
.bom li span { color: var(--dim); }
.bom-group { font: 500 .66rem/1 var(--mono); letter-spacing: .24em; text-transform: uppercase; color: var(--gold); margin: 22px 0 4px; }
.numbers .role { color: var(--dim); font-style: italic; margin: 4px 0 10px; font-size: 1.08rem; }
.numbers .tw { overflow-x: auto; }
.numbers table { width: 100%; border-collapse: collapse; font-size: 1rem; margin: 6px 0 14px; }
.numbers td { border-bottom: 1px solid rgba(233,220,184,.12); padding: 7px 8px; text-align: left; vertical-align: top; }
.numbers td:first-child { color: var(--gold); font: 500 .7rem/1.6 var(--mono); letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; width: 1%; }
.numbers .src { font: 500 .62rem/1 var(--mono); letter-spacing: .08em; color: var(--dim); border: 1px solid #3b3933; padding: 2px 5px; margin-left: 6px; white-space: nowrap; }
.numbers .legend { color: var(--dim); font-size: .98rem; font-style: italic; }
.piece-main .fv .specs { max-width: none; margin: 10px 0 0; padding: 0; border: 0; background: none; display: block; }
.piece-main .fv .specs[hidden] { display: none; }
.piece-main .tw { overflow-x: auto; max-width: 100%; }   /* a wide table slideth within itself, never the whole page */
.piece-main .fv .specs > * { min-width: 0; }
.piece-main .fv .specs > div:first-child h3 { font-family: var(--sc); font-weight: 400; font-size: 1.2rem; letter-spacing: .14em; }
/* the family page's own sheet rules, for the sheets moved from it (the loadout, smart keeping, Bezaleel, our software) */
.fsheet h2 { font-weight: 500; font-size: 1.6rem; margin: 40px 0 6px; border-bottom: 1px solid rgba(233,220,184,.16); padding-bottom: 6px; }
.fsheet h2 small { display: block; font: 500 .62rem/1.4 var(--mono); letter-spacing: .24em; color: var(--gold); text-transform: uppercase; }
.fsheet blockquote { margin: 10px 0; padding: 10px 16px; border-left: 2px solid var(--gold); background: var(--card); font-style: italic; }
.fsheet blockquote b { font-style: normal; color: var(--gold); font-weight: 600; }
.fsheet .tw { overflow-x: auto; }
.fsheet table { width: 100%; border-collapse: collapse; font-size: 1rem; margin: 10px 0; }
.fsheet th, .fsheet td { border-bottom: 1px solid rgba(233,220,184,.12); padding: 7px 8px; text-align: left; vertical-align: top; }
.fsheet th { font: 500 .66rem/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); font-weight: 400; }
.fsheet li { margin: 4px 0; }
.fsheet a { color: var(--gold); }
.fsheet .tag { font: 500 .7rem/1.5 var(--mono); color: var(--gold); letter-spacing: .1em; }
.piece-main .sheets h2:first-child { margin-top: 20px; }

/* ---------- Before and Next, with pictures ---------- */
.walk { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 52px 0 32px; }
.walk a { display: grid; grid-template-columns: 110px 1fr; gap: 14px; align-items: center; text-decoration: none; border: 1px solid rgba(233,220,184,.16); padding: 10px; background: #0a0a09; color: var(--ink); }
.walk a:hover, .walk a:focus-visible { border-color: var(--gold); outline: none; }
.walk a img, .walk a .ph { width: 110px; height: 64px; object-fit: contain; background: var(--bp-grid); display: block; }
.walk a span span { font: 500 .62rem/1 var(--mono); letter-spacing: .25em; color: var(--dim); text-transform: uppercase; display: block; margin-bottom: 6px; }
.walk a b { font-family: var(--sc); font-weight: 400; font-size: 1.2rem; letter-spacing: .12em; color: var(--gold); }
.walk a.next { grid-template-columns: 1fr 110px; text-align: right; }

@media (max-width: 760px) {
  .bp-wrap { padding: 0 16px; }
  .sheet { outline-offset: 3px; margin-bottom: 32px; }
  .sheet .body { grid-template-columns: 1fr; }
  .sheet .draw { position: relative; border-right: 0; border-bottom: 1px solid rgba(233,220,184,.16); }
  .parts li > a, .parts li > div { grid-template-columns: 24px 64px 1fr; gap: 10px; padding: 8px 12px; }
  .parts img, .parts .ph { width: 64px; height: 40px; }
  .tblock { grid-template-columns: auto 1fr; }
  .tblock > .opt { display: none; }
  .tblock > a { grid-column: 1 / -1; border-left: 0; border-top: 1px solid rgba(233,220,184,.16); }
  .idx a { padding: 7px 9px; font-size: .9rem; }
  .fv.piece .stage { height: min(62vh, 460px); }
  .fv.piece .ctl { right: 8px; top: 8px; }
  .fv.piece .views { left: 8px; top: 48px; max-width: none; }
  .titleblock { grid-template-columns: 1fr 1fr; }
  .titleblock > div { border-left: 0; border-top: 1px solid rgba(233,220,184,.16); }
  .titleblock > .nm { grid-column: 1 / -1; border-top: 0; }
  .titleblock > div:nth-child(even):not(.nm) { border-right: 1px solid rgba(233,220,184,.16); }
  .titleblock b { font-size: 1.25rem; }
  main.piece-main { padding: 0 16px 16px; }
  .walk { grid-template-columns: 1fr; }
  .walk a, .walk a.next { grid-template-columns: 90px 1fr; text-align: left; }
  .walk a.next img, .walk a.next .ph { order: -1; }
  .walk a img, .walk a .ph { width: 90px; height: 54px; }
}
@media (prefers-reduced-motion: reduce) { .sheet .fig img { transition: none; } }
@media print { .idx, .walk, .sheetnav, .fv.piece .ctl, .fv.piece .views { display: none; } .sheet .draw { position: static; } }
