/* 32GI refinements (added by 32GI, not part of the agency package). Loads after board.css and
   only overrides it: readable small text, a sidebar you can reach, a lighter phone layout,
   quieter repeated controls and bigger touch targets. Nothing here changes what the board does. */

/* Small text: steel #7D8285 is 3.9:1 on white, too light under 18px. Same dark grey as body
   meta (7:1). Product colours are set as hex in the page, so they do not change. */
.b32, .drawer, .modal, .scrim { --steel:#55595C; --field:#8E9396; }

::selection { background:#231F20; color:#fff; }
.b32 h1, .b32 h2, .b32 h3, .drawer h3, .modal h3 { text-wrap:balance; }
.intro p, .wk-hl p, .sr > p, .sec-h p, .md p, .cap p { text-wrap:pretty; }

/* Form fields: a border you can see (3:1), and a clear focus ring where board.css removes the outline. */
.tools input[type=search], .tools select, .f input:not([type=checkbox]), .f select, .f textarea, .tagin,
.note-form textarea, .ne input[name=ntext], .ne input[name=nfrom], .md-body > input { border-color:var(--field); }
.tools input[type=search]:focus, .tools select:focus, .ne input:focus, .md-body > input:focus { border-color:var(--ink); }
.f input:not([type=checkbox]):focus, .f select:focus, .f textarea:focus, .note-form textarea:focus,
.tagin:focus-within { border-color:var(--ink); box-shadow:0 0 0 1px var(--ink); }
.tagin input:focus { box-shadow:none; }

/* Chips: channels read as plain text, so the status chip stands out. */
.p-meta .ch { border:0; background:none; padding:4px 0; font-size:12px; }
.p-meta .st + .ch { margin-left:5px; }
.p-meta .ch + .ch::before { content:"·"; }
.pr-low { border-style:dashed; }
.dot { box-shadow:0 0 0 1px rgba(35,31,32,.3); }
.key i { box-shadow:inset 0 0 0 1px rgba(35,31,32,.12); }

/* One solid button per screen: Edit on every card becomes an outline button. */
.wk-foot .acts .btn, .sr .wk-foot .btn { background:transparent; color:var(--ink) !important; }
.wk-foot .acts .btn:hover, .sr .wk-foot .btn:hover { background:var(--mist); }

/* Past weeks: fade the picture and names, keep the text readable. */
.wk.past .wk-main { opacity:1; }
.wk.past .wk-talent h3, .wk.past .wk-prod b { color:var(--soft); }
.wk.past .wk-prod img, .wk.past .wk-prod .noimg { opacity:.5; filter:grayscale(1); }
.wk.past .band { opacity:.45; }

.save.bad { padding:4px 8px; background:#FDF6F5; border:1px solid #F0C8C5; }

/* Desktop: the sidebar is taller than the screen. It scrolls on its own, so every card is reachable. */
@media (min-width:1081px) {
  .col-side { max-height:calc(100vh - 40px); overflow-y:auto; scrollbar-width:thin; scrollbar-color:#B9BEC0 transparent; }
}

/* Tablet and phone: "Needs from 32GI" sits under the intro instead of after all the weeks.
   The other side cards stay after the weeks, side by side where they fit. */
@media (max-width:1080px) {
  .layout { grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr)); gap:0 20px; }
  .col-main, .col-side { display:contents; }
  .intro, .tools, #weeks, .series-sec, .needs-card { grid-column:1/-1; }
  .needs-card { order:1; margin-top:28px; }
  .tools, #weeks, .series-sec { order:2; }
  .col-side > .side-card:not(.needs-card) { order:3; margin-top:40px; }
  .needs-side { grid-template-columns:repeat(auto-fill,minmax(min(100%,300px),1fr)); column-gap:32px; }
}

/* Phone: the search and filters scroll away instead of covering a quarter of the screen.
   board.css sets .wrap padding to 0 16px here, which also took the space above the title. */
@media (max-width:640px) {
  .tools { position:static; background:var(--paper); backdrop-filter:none; }
  .layout { padding-top:28px; padding-bottom:40px; }
  .foot { padding-bottom:32px; }
}

/* Touch: bigger tap areas without changing the layout. Sideways they grow by less than half
   the 6px gap, so two neighbouring buttons never share a tap area. */
@media (pointer:coarse), (max-width:640px) {
  .ib, .btn.sm, .tagin .chip button { position:relative; }
  .ib::after, .btn.sm::after, .tagin .chip button::after { content:""; position:absolute; inset:-5px -2px; }
  .btn.sm::after { inset:-8px -2px; }
  .tagin .chip button::after { inset:-8px -2px; }
  .needs .ck { padding:4px 0; }
  .ck input { width:20px; height:20px; }
}
