/* Editorial working pages. Only the nine opted-in home and article routes load this file. */
.working-spread, .reading-spread {
  display: grid;
  grid-template-columns: minmax(0, 1.9fr) minmax(16rem, .85fr);
  align-items: start;
  gap: 1.4rem clamp(2rem, 5vw, 5.6rem);
  padding-block: clamp(1.4rem, 3vw, 2.7rem);
}
.workpiece, .reading-start, .reading-continuation, .edition-profile { min-width: 0 }
.working-spread > .edition-profile, .reading-spread > .edition-profile {
  grid-area: auto; grid-column: 2; grid-row: 1 / 3;
}
.workpiece .desk-title, .workpiece > h1, .inbox-register > h1 {
  font: 600 clamp(1.3rem, 1.35vw + .55rem, 1.85rem)/1.2 var(--display);
  letter-spacing: -.025em; text-transform: none; margin: 0;
}
.workpiece .desk-title { padding-block: .85rem .3rem }
.desk-story { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .24em }
.desk-story:hover, .inbox-entry:hover strong, .test-entry h2 a:hover { color: var(--accent) }
.current-dispatch { max-width: 58ch; border-top: 2px solid var(--ink) }
.current-dispatch > p { margin-top: 1rem; font-size: 1.11rem }
.workpiece .material { margin: 0 }
.working-spread .edition-profile h2, .reading-spread .edition-profile h2 { font-size: clamp(1.4rem, 2vw, 1.85rem) }

/* A contact sheet wide enough to compare the movement in all three shots. */
.digitalinfluence .working-spread { grid-template-columns: minmax(0, 1fr); gap: 1.4rem }
.digitalinfluence .working-spread > .edition-profile {
  grid-column: 1; grid-row: auto; display: grid;
  grid-template-columns: minmax(12rem, .52fr) minmax(0, 1.45fr); gap: 2rem;
}
.digitalinfluence .working-spread .writer-prose { columns: 2; column-gap: 2rem }
.digitalinfluence .working-spread .writer-prose p { break-inside: avoid }
.digitalinfluence .workpiece .desk-title { font: 400 1.03rem/1.45 var(--mono); letter-spacing: 0 }
.motion-study { gap: clamp(.35rem, 1vw, .9rem) }
.clip-player { position: relative }
.clip-player summary { display: block; list-style: none; padding: 0 }
.clip-player summary::-webkit-details-marker { display: none }
.clip-player summary img, .clip-player .moving-frame img { width: 100%; height: auto; aspect-ratio: 16 / 9; margin: 0; display: block }
.clip-player .moving-frame { position: absolute; inset: 0 0 auto; pointer-events: none }
.clip-control { display: block; padding: .55rem 0; font: 500 .82rem/1.3 var(--mono); color: var(--ink) }
.clip-control::before { content: '▶'; color: var(--accent); margin-right: .45rem; font-size: .7em }
.clip-player[open] .clip-control::before { content: '■' }
.clip-player .stop-label, .clip-player[open] .play-label { display: none }
.clip-player[open] .stop-label { display: inline }
.motion-take > p { margin-top: .35rem }
.clip-player:has(summary:focus-visible) { outline: 2px solid currentColor; outline-offset: 2px }

/* Sam's pencil note shares the line it refers to. */
.pencil-spread { display: grid; grid-template-columns: minmax(0, 1.95fr) minmax(8rem, .7fr); gap: 1.4rem; padding-top: 1.35rem }
.script-lines blockquote { font: 580 clamp(1.45rem, 2.45vw, 2.3rem)/1.16 var(--display); margin: 0 0 1.1rem; letter-spacing: -.025em }
.script-lines blockquote mark { background: transparent; color: inherit; text-decoration: underline; text-decoration-color: #6f762c; text-underline-offset: .16em }
.script-lines p { margin: .7rem 0; max-width: 40ch }
.pencil-note { border-left: 1px solid #768147; padding-left: .85rem; color: #374117; font: italic 1rem/1.35 Georgia,serif }
.pencil-note b { font: 600 .74rem var(--mono) }
.pencil-note p { margin-top: .5rem }

/* A receipt and its editor's annotation. */
.fluentscroll .workpiece .checkout-study { padding: clamp(1rem, 3vw, 2.65rem); gap: clamp(.85rem, 3vw, 2.6rem) }
.shop-slip mark { border: 2px solid #b04830; border-radius: 56% 44% 52% 48%; padding: .12em .45em; background: transparent; white-space: nowrap }
.shop-note p { font: 400 clamp(.94rem,1.3vw,1.13rem)/1.45 var(--text) }

/* An edited dialogue, with the customer's words above the fold. */
.conversation-sheet .transcript-lines > div:first-child { border-top: 1px solid var(--rule) }
.conversation-sheet .transcript-lines p { margin: 0; font: 400 1.05rem/1.5 var(--text) }
.conversation-sheet .transcript-lines > div:first-child p { font: 400 clamp(1.3rem, 2.1vw, 1.95rem)/1.25 Georgia,serif }
.conversation-sheet .transcript-lines > div { padding: 1rem .55rem }

/* The review index opens with a reproducible input. */
.trial-index { border-top: 2px solid var(--ink) }
.trial-index .desk-title { padding: .65rem 0 .9rem; font-family: Georgia,serif }
.trial-index .trial-sheet tbody tr:nth-child(2) { background: #ead7b7 }

/* Four messages are visible at a glance. */
.inbox-register > h1, .test-register > h1 { padding-bottom: .65rem; border-bottom: 2px solid var(--ink) }
.inbox-columns, .inbox-entry { display: grid; grid-template-columns: minmax(6.5rem,.65fr) minmax(0,2.2fr); gap: 1rem }
.inbox-columns { padding: .6rem .5rem; color: var(--muted); font: .76rem var(--mono) }
.inbox-entry { color: var(--ink); text-decoration: none; padding: .85rem .5rem; border-top: 1px solid var(--rule) }
.inbox-entry:hover { background: #f7faef }
.inbox-entry > span { font: .82rem/1.45 var(--mono) }
.inbox-entry strong { font: 620 1.12rem/1.3 var(--text) }
.inbox-entry p { color: var(--muted); margin: .25rem 0 0; line-height: 1.36 }
.ledger-total { display:flex; align-items: baseline; gap: .65rem; margin: .35rem 0 }
.ledger-total strong { font: 500 clamp(2.7rem,6vw,4.7rem)/1.2 var(--mono); letter-spacing:-.065em; color:#ffcf7d }
.ledger-total span { font-size: .85rem }
.cost-ledger :is(th,td):nth-child(2) { font: 400 .94rem/1.4 var(--text); padding-inline: .5rem }
.cost-ledger th:nth-child(2) { font-weight: 650 }
.cost-ledger td:last-child { white-space: nowrap }
.field-check header { font: 600 1rem/1.3 var(--text); letter-spacing: 0 }
.field-check .field-boxes label { padding-block: .85rem }
.field-check .field-boxes label:first-child { font-size: 1.13rem }
.test-entry { border-bottom: 1px solid var(--rule); padding: .8rem 0 }
.test-entry h2 { font: 600 clamp(1.08rem,1.5vw,1.35rem)/1.3 var(--text); margin: 0 }
.test-entry h2 a { text-underline-offset: .2em }
.test-entry p { max-width: 64ch; margin: .32rem 0; font-size: .96rem; line-height: 1.4 }
.test-deliverable b { margin-right: .25em }
.test-entry footer { display:flex; flex-wrap:wrap; justify-content:space-between; align-items:baseline; gap:.35rem 1rem; margin-top:.5rem; font: .81rem/1.45 var(--mono) }
.test-entry footer a { color: var(--accent); text-underline-offset:.2em }

/* On a story, the title and first passage read as one opening. */
.reading-spread { grid-template-columns: minmax(0, 1.65fr) minmax(16rem,.82fr); grid-template-rows:auto 1fr; row-gap:1.3rem }
.reading-start, .reading-continuation { grid-column: 1 }
.reading-line { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .3rem 1rem; max-width: 70ch; color:var(--muted); font: .75rem/1.45 var(--mono) }
.reading-line a { color: var(--accent); text-underline-offset: .22em }
.reading-heading h1 { font: 600 clamp(1.35rem, 1.1rem + 1vw, 2.05rem)/1.18 var(--display); letter-spacing: -.025em; margin: .75rem 0 .8rem; text-transform:none; max-width:40ch }
.sayhey .reading-heading h1, .enrichanything .reading-heading h1 { font-family: Georgia,serif }
.selffunded .reading-heading h1 { font: 500 clamp(1.3rem,1rem + 1vw,1.85rem)/1.25 var(--mono) }
.working-reader .first-passage { border:0; padding:0 }
.working-reader .first-passage .read-section { padding: 0; border: 0 }
.working-reader .reading-body p { max-width: 64ch; font: 400 clamp(1.03rem,.98rem + .27vw,1.19rem)/1.6 var(--text) }
.working-reader .reading-body h2 { font-size: 1.21rem; text-transform:none; line-height: 1.28; margin-bottom:.4rem }
.reading-continuation .article-material { margin-bottom:1.3rem }
.working-reader .remaining-passage:empty { display: none }
@media (max-width: 760px) {
  .working-spread, .reading-spread, .digitalinfluence .working-spread { grid-template-columns: minmax(0,1fr); gap:1rem; padding-block:1.1rem }
  .working-spread > .edition-profile, .reading-spread > .edition-profile, .digitalinfluence .working-spread > .edition-profile { grid-column:1; grid-row:auto; display:block }
  .digitalinfluence .working-spread .writer-prose { columns:auto }
  .working-spread .workpiece .desk-title { font-size:1.18rem }
  .digitalinfluence .workpiece .desk-title { font-size:.95rem }
  .reading-start, .reading-continuation { grid-column:1 }
  .reading-heading h1 { margin:.65rem 0 }
  .working-reader .reading-body p { line-height:1.52 }
  .motion-study { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:.4rem }
  .motion-take .clip-control { font-size:.7rem; line-height:1.35; min-height:2.7rem; padding:.4rem 0 }
  .clip-control::before { display:none }
  .pencil-spread { grid-template-columns: minmax(0,1fr); gap:.55rem }
  .pencil-note { padding-left:.65rem }
  .pencil-note p { display:inline; margin:0 0 0 .45em }
  .inbox-columns, .inbox-entry { grid-template-columns: minmax(4.5rem,.65fr) minmax(0,1.7fr); gap:.65rem }
  .inbox-entry p { font-size:.88rem }
  .cost-ledger :is(td,th) { padding-block:.5rem }
  .cost-ledger :is(th,td):nth-child(2) { font-size:.84rem }
  .test-entry { padding:.65rem 0 }
}
@media (max-width: 480px) {
  .digitalinfluence .working-home .motion-study { grid-template-columns: 1fr 1fr }
  .digitalinfluence .working-home .motion-take:first-child { grid-column:1/-1 }
  .digitalinfluence .working-home .motion-take:first-child summary img, .digitalinfluence .working-home .motion-take:first-child .moving-frame img { max-height:9.8rem; object-fit:cover }
  .working-reader .motion-study { grid-template-columns:1fr }
}
@media (max-width: 760px) {
  .working-reader .reading-spread { display:flex; flex-direction:column }
  .working-reader .reading-spread > * { width:100%; order:0 }
}
@media (max-width: 380px) {
  .inbox-entry { grid-template-columns: 1fr; gap:.12rem; padding-block:.52rem }
  .inbox-entry strong { font-size:1.02rem }
  .inbox-entry p { margin-top:.1rem }
  .inbox-columns { display:none }
  .workpiece .cost-ledger { padding:.8rem }
}
