/* Outreach for agencies (/agencies/) in the painted theme (template-parts/painted/pages/agencies.php): only what its
   windows alone draw. The rows, the people, the chips, the strips and the buttons are the kit's (assets/css/lines.css:
   .pp-card, .pp-person, .pp-who, .pp-btn; the chips .st, .st.wd, .st.wu), and so is the app at the agency's own address
   every Solutions page for agencies draws (.ag-win, .ag-who). */

/* 1. every client in its own workspace: each row is a grid of its own, so the day's column has one width for all of them
   and the accounts line up */
.pp-card.ag-ws > li { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) 150px; }
.ag-chs { display: flex; flex-wrap: wrap; gap: 5px; min-width: 0; }
.ag-ws > li > .st:last-child, .ag-ws > li.pp-th > span:last-child { justify-self: end; }

/* 2. the brand: what it is, and its value */
.pp-card.ag-brand > li { grid-template-columns: 96px minmax(0, 1fr); }
.ag-k { font-size: 12.5px; color: var(--mute); }
.ag-v { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; min-width: 0; }
.ag-v b { font-weight: 600; font-size: 13px; }
.ag-v code { font: 500 11.5px/1.2 var(--mono); color: var(--ink); }
.ag-v img.ag-mk { width: 24px; height: 24px; border-radius: 7px; }
.ag-v .st { margin-left: auto; }
.ag-tab { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px 0 6px; border-radius: 8px 8px 0 0; background: var(--sunk); font-size: 11.5px; color: var(--mute); }
.ag-tab img.ag-mk { width: 14px; height: 14px; border-radius: 4px; }
.ag-sw { display: inline-flex; gap: 5px; }
.ag-sw i { width: 18px; height: 18px; border-radius: 6px; background: var(--sw); box-shadow: inset 0 0 0 1px rgba(22, 22, 26, .12); }

/* 3. who signed up on the brand, each with Open */
.pp-card.ag-adm > li { grid-template-columns: minmax(0, 1fr) 64px max-content; }
.ag-when { font-size: 12.5px; color: var(--mute); font-variant-numeric: tabular-nums; }
.ag-adm li.ag-new .ag-when { font-weight: 600; color: var(--cd); }
.ag-open { height: 26px; padding: 0 11px 0 9px; font-size: 12px; }

/* 4. the client's sender profiles and their sign-in */
.pp-card.ag-links > li { grid-template-columns: minmax(0, 1fr) max-content; }
.ag-links .av { width: 24px; height: 24px; font-size: 9px; }

/* a window as wide as a narrow column: the client's accounts leave the workspaces' rows, a colour keeps one code */
@media (max-width: 1100px) {
  .pp-card.ag-ws > li { grid-template-columns: minmax(0, 1fr) 150px; }
  .pp-card.ag-ws > li > .ag-chs, .pp-card.ag-ws > li.pp-th > span:nth-child(2) { display: none; }
}
/* a phone: each workspace's day under its name, Open as its eye alone, so no client's name is cut */
@media (max-width: 760px) {
  .pp-card.ag-ws > li { grid-template-columns: minmax(0, 1fr); gap: 6px; padding: 9px 0; }
  .pp-card.ag-ws > li.pp-th { display: none; }
  .pp-card.ag-ws > li.pp-th + li { border-top: 0; }
  .pp-card.ag-adm > li.pp-th > span { white-space: nowrap; }
  .ag-ws > li > .st:last-child { justify-self: start; margin-left: 33px; }
  .pp-card.ag-adm > li { grid-template-columns: minmax(0, 1fr) 52px max-content; }
  .ag-open { width: 30px; padding: 0; justify-content: center; }
  .ag-open > span { display: none; }
  .pp-card.ag-brand > li { grid-template-columns: 84px minmax(0, 1fr); }
  .ag-v code + code { display: none; }
}

/* ---------- the header's piece: the agency's apron (template-parts/painted/pages/agencies.php), a jet per client and one
   tower, its points the shared points on a painting (lines.css .hs-pts); the wash's own small jet stands down ---------- */
.gsp-s-agencies .pp-head-pic .ln2-plane { display: none; }
.gsp-s-agencies .pp-head-pic { padding: 18px; }
.agh { position: relative; aspect-ratio: 16 / 9; text-align: left; }
.agh-img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 100%; border-radius: 22px; }
.agh .hs i { background: var(--out); }
@media (max-width: 1100px) { .agh .hs { --hs-fs: 12.5px; --hs-py: 7px; --hs-px: 10px; --hs-cw: 230px; } .agh .hs-t { font-size: 13.5px; } }
@media (max-width: 760px) { .gsp-s-agencies .pp-head-pic { padding: 10px; } .agh-img { border-radius: 16px; } }
