/* Option 01, Work Order: Form TT-02, the job file (See Tony's Work). Shares style.css. */
.vh { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.nav a[aria-current="page"] { border-bottom-color: var(--print); color: var(--deep); }
.menu-list a[aria-current="page"] { color: #A9C6D3; }

#jf-count { white-space: nowrap; }
.steps p a { white-space: nowrap; }

/* Head of the job file */
.jf-intro { padding: 24px 0 30px; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font: 700 12.5px/1.3 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--print); }
.crumbs a { display: inline-flex; align-items: center; min-height: 32px; color: var(--deep); }
.crumbs .ic { width: 14px; height: 14px; }
.jf-intro h1 { margin-top: 10px; font-size: clamp(2.125rem, 1.3rem + 3.2vw, 4rem); line-height: 1.03; letter-spacing: -0.03em; font-weight: 850; max-width: 16em; }
.jf-intro .lead { max-width: 46em; }

/* Filters: printed checkboxes */
.filters { display: grid; grid-template-columns: 1fr; margin: 0 calc(-1 * var(--pad)); border-bottom: 1.5px solid var(--print); }
.fbtn {
  display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 8px var(--pad); margin: 0;
  background: var(--sheet); color: var(--ink); border: 0; border-bottom: 1px solid var(--rule); border-radius: 0;
  font: 700 15.5px/1.25 var(--sans); text-align: left; cursor: pointer;
}
.fbtn:last-child { border-bottom: 0; }
.fbtn .box { width: 24px; height: 24px; }
.fbtn-l { flex: 1; text-wrap: balance; }
.fbtn-n { font-size: 13px; font-weight: 500; color: var(--print); }
.fbtn[aria-pressed="false"] .tick { display: none; }
.fbtn[aria-pressed="true"] { background: var(--tint); }
.fbtn:hover .fbtn-l { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px; }

/* The gallery: justified rows that end flush (work.js); a single column on phones */
.gal { list-style: none; margin: 0 0 0; padding: 0; display: flex; flex-wrap: wrap; border-left: 1px solid var(--rule); }
.g { flex: 1 1 100%; min-width: 0; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.g[hidden] { display: none; }
.g figure { margin: 0; padding: 12px; display: flex; flex-direction: column; height: 100%; }
.g .flabel { padding-bottom: 8px; }
.g .flabel .mono { font-weight: 600; letter-spacing: .02em; }
.g-open { display: block; width: 100%; padding: 0; margin: 0; border: 0; border-radius: 0; background: var(--tint); cursor: zoom-in; }
.g-ph { display: block; position: relative; aspect-ratio: var(--ar); overflow: hidden; }
.g.is-set .g-ph { aspect-ratio: auto; height: var(--h); }
.g-ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.g .cap { flex: 1; align-content: start; border-bottom: 0; padding-bottom: 2px; }
.g .cap-v { font-size: 14px; }
.g-open:focus-visible { outline-offset: 3px; }

/* Closing: the next attachment slot is open */
.close-grid { display: grid; gap: 26px; padding-top: 30px; }
.close-copy h2 { font-size: clamp(1.9rem, 1.35rem + 2.4vw, 3rem); line-height: 1.05; }
.close-ctas { display: grid; gap: 10px; margin-top: 22px; }
.slot { display: none; }

/* Attachment viewer (lightbox) */
.viewer { width: min(1080px, calc(100vw - 24px)); max-width: none; max-height: calc(100dvh - 24px); padding: 0; border: 1px solid var(--edge); background: var(--sheet); color: var(--ink); }
.viewer::backdrop { background: rgba(20, 24, 27, .82); }
.v-sheet { display: flex; flex-direction: column; max-height: calc(100dvh - 26px); }
.v-band { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 6px 6px 6px 16px; background: var(--print); color: #fff; }
.v-k { font: 800 13px/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase; }
.v-k .mono { display: block; margin-top: 2px; font-weight: 500; letter-spacing: .02em; text-transform: none; }
@media (min-width: 600px) { .v-k .mono { display: inline; margin: 0 0 0 10px; } }
.v-close { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; background: transparent; color: #fff; border: 2px solid #fff; font: 700 16px/1 var(--sans); cursor: pointer; }
.v-close:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.v-ph { flex: 1 1 auto; min-height: 0; display: grid; place-items: center; padding: 12px; background: var(--paper); }
.v-ph img { width: auto; height: auto; max-width: 100%; max-height: calc(100dvh - 300px); object-fit: contain; }
.v-foot { display: grid; gap: 12px; padding: 12px 16px 16px; border-top: 1.5px solid var(--print); }
.v-cap { display: grid; gap: 3px; }
.v-cap .cap-t { font-size: 18px; }
.v-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.v-nav .btn { min-height: 48px; padding: 0 12px; }
html.v-open { overflow: hidden; }

@media (min-width: 600px) {
  .filters { grid-template-columns: 1fr 1fr; }
  .fbtn { min-height: 60px; }
  .fbtn:nth-child(odd) { border-right: 1px solid var(--rule); }
  .fbtn:nth-last-child(-n+2) { border-bottom: 0; }
  .g figure { padding: 12px; }
  .g { flex: var(--ar) 1 calc(var(--ar) * 260px); }
  .g .cap-v { font-size: 14px; }
  .close-ctas { display: flex; flex-wrap: wrap; }
  .v-foot { grid-template-columns: 1fr auto; align-items: end; padding: 14px 20px 18px; }
  .v-nav { grid-template-columns: auto auto; }
}
@media (min-width: 1024px) {
  .jf-intro { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); column-gap: 56px; align-items: end; padding: 32px 0 36px; }
  .crumbs { grid-column: 1 / -1; }
  .jf-intro .lead { margin: 0 0 6px; font-size: 19px; }
  .filters { grid-template-columns: repeat(4, 1fr); }
  .fbtn { border-bottom: 0; border-right: 1px solid var(--rule); padding: 8px 18px; font-size: 16px; }
  .fbtn:first-child { padding-left: var(--pad); }
  .fbtn:last-child { border-right: 0; padding-right: var(--pad); }
  .close-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 56px; align-items: stretch; padding-top: 40px; }
  .close-copy { align-self: center; }
  .slot { display: flex; flex-direction: column; border: 1px solid var(--rule); border-top: 1.5px solid var(--print); padding: 14px; }
  .slot .flabel { padding-bottom: 8px; }
  .slot-frame { flex: 1; min-height: 220px; display: grid; place-content: center; justify-items: center; gap: 8px; border: 1.5px dashed var(--edge); background: var(--tint); color: var(--print); text-align: center; }
  .slot-frame .mono { font-size: 13px; letter-spacing: .02em; }
  .slot-l { font-weight: 800; font-size: 22px; color: var(--ink); letter-spacing: -0.01em; }
}
@media (min-width: 1280px) {
  .g figure { padding: 14px; }
}
