/* The agency page, part "blocks": seven static blocks under the hero, one reason each (the umbrella's
   marketing/landing/prototypes/flightdeck/briefs/agencies-landing-static.md). The block itself is the landing kit's
   (theme/assets/css/kit.css, the umbrella's marketing/landing/BRANDBOOK.md section 6): section.k-sec.k-blk on the warm
   grey and the white in turn, the words (.k-blk-txt, .k-num, .k-h, .k-p, .k-checks, .k-fine, .k-link) beside one
   large picture (.k-pic with its .k-sample), the picture's side alternating (.k-blk-flip). The pictures draw the
   product in the shared demo's look from the kit's parts (.k-win with .k-win-bar, .k-win-title and .k-card-h, .k-sq,
   .k-ch, .k-av, .k-pill, .k-badge). Blocks 01, 02 and 05 are white label components /white-label/ calls too
   (template-parts/wl-brand-page.php, wl-sign-in-link.php and wl-plan.php), styled by the kit (.k-wl, "the sample
   agency's brand on the app"), which also holds the marks this page's own pictures share with them: YourBrand's tile
   (.k-yb, ink with the lime stroke on a light ground, lime with the ink stroke in dark), our mark (.k-gs), the title's
   slash (.k-sl) and the round arrow (.k-arr). This file holds only what is the other pictures' own. Nothing moves and
   nothing needs a script. Every rule is scoped to .pg-agencies, every class of its own starts with ag-, and the colours
   come from the theme's and the kit's tokens, so the dark theme follows. LinkedIn is a text label, never a logo. */

.pg-agencies .k-blk{--ag-on-ai:#fff;--ag-seg:var(--panel)}
@media (prefers-color-scheme:dark){
  :root:not([data-theme=light]) .pg-agencies .k-blk{--ag-seg:#2B2650;--ag-on-ai:#0C0D10}
}
:root[data-theme=dark] .pg-agencies .k-blk{--ag-seg:#2B2650;--ag-on-ai:#0C0D10}

.pg-agencies .k-blk svg{display:block;flex:none}
:where(.pg-agencies .k-blk) :where(p,ul,ol,li,figure){margin:0;padding:0}
.pg-agencies .k-blk i{font-style:normal}

/* ---- 03 Every client: the switcher open beside the client's inbox ------------------------------------ */
/* the faces' light disc dims in dark (--k-pbg-o), as the demo's does: it sits in a <use> shadow tree, so it reads an
   inherited custom property, never a selector */
.pg-agencies .ag-ws{--mw:214px;position:relative;width:100%;max-width:620px}
.pg-agencies .ag-inbox{width:calc(100% - var(--mw) - 16px);margin-left:auto}
.pg-agencies .ag-inbox .k-win-title .k-sq{width:22px;height:22px;font-size:11px}
.pg-agencies .ag-msg{display:grid;grid-template-columns:40px minmax(0,1fr);gap:12px;padding:15px 16px;border-bottom:1px solid var(--line-2)}
.pg-agencies .ag-msg:last-child{border-bottom:0}
.pg-agencies .ag-msg-on{background:color-mix(in srgb,var(--ai) 5%,var(--panel));box-shadow:inset 3px 0 0 var(--ai)}
.pg-agencies .ag-msg-h{display:flex;align-items:center;gap:8px;min-width:0}
.pg-agencies .ag-msg-h b{font:600 14.5px/1.2 var(--sans);color:var(--ink);white-space:nowrap}
.pg-agencies .ag-msg-h time{margin-left:auto;font:400 12px/1 var(--mono);color:var(--k-faint)}
.pg-agencies .ag-msg-r{margin-top:4px;font:400 13px/1.35 var(--sans);color:var(--mute);text-wrap:pretty}
.pg-agencies .ag-bubble{margin-top:12px;padding:11px 14px;border-radius:4px 14px 14px 14px;border:1px solid var(--line-2);background:var(--panel);font:500 15px/1.45 var(--sans);color:var(--ink);text-wrap:pretty}
.pg-agencies .ag-menu{position:absolute;left:0;top:50%;z-index:1;width:var(--mw);padding:6px;border:1px solid var(--line);border-radius:18px;background:var(--panel);box-shadow:var(--k-sh-up);transform:translateY(-50%)}
.pg-agencies .ag-menu-t{display:flex;align-items:center;gap:8px;height:44px;padding:0 10px;margin-bottom:6px;border-radius:12px;background:var(--sunk);font:500 14px/1 var(--sans);color:var(--k-text);white-space:nowrap}
.pg-agencies .ag-menu-t b{font-weight:600;color:var(--ink)}
.pg-agencies .ag-menu-t .k-sq{width:22px;height:22px;font-size:11px}
.pg-agencies .ag-menu-cv{width:15px;height:15px;margin-left:auto;color:var(--mute)}
.pg-agencies .ag-menu li{display:flex;align-items:center;gap:11px;height:42px;padding:0 10px;border-radius:10px;font:500 14.5px/1 var(--sans);color:var(--ink);white-space:nowrap}
.pg-agencies .ag-menu li.ag-on{background:var(--k-ai-soft);font-weight:600}
.pg-agencies .ag-menu-ck{width:18px;height:18px;margin-left:auto;color:var(--ai)}
.pg-agencies .ag-menu-own{margin-top:6px;border-top:1px solid var(--line-2);border-radius:0 0 10px 10px !important;padding-top:6px !important;height:48px !important}
.pg-agencies .ag-menu-own small{margin-left:auto;font:400 12.5px/1 var(--sans);color:var(--mute)}

/* ---- 04 One tool: five tools, five bills, then one window -------------------------------------------- */
.pg-agencies .ag-five{display:grid;grid-template-columns:174px 46px minmax(0,1fr);align-items:center;width:100%;max-width:620px}
.pg-agencies .ag-pile{display:flex;flex-direction:column}
.pg-agencies .ag-stack{display:flex;flex-direction:column;gap:10px}
.pg-agencies .ag-pile li{display:flex;align-items:center;gap:7px;width:160px;height:30px;padding:0 11px;border:1px solid var(--line);border-radius:9px;background:var(--sunk);box-shadow:var(--k-sh);margin-left:var(--x)}
.pg-agencies .ag-pile li+li{margin-top:4px}
.pg-agencies .ag-pile svg{flex:none;width:13px;height:13px;color:var(--mute)}
.pg-agencies .ag-pile b{font:600 13px/1 var(--sans);color:var(--k-text);white-space:nowrap}
.pg-agencies .ag-pile-sum{margin:0;font:500 11.5px/1.2 var(--mono);color:var(--mute)}
.pg-agencies .ag-one .k-win-title b{font:600 15px/1 var(--display);letter-spacing:-.01em}
.pg-agencies .ag-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:2px;margin:14px 14px 4px;padding:3px;border-radius:11px;background:var(--chip)}
.pg-agencies .ag-tabs span{display:flex;align-items:center;justify-content:center;min-width:0;height:34px;padding:0 4px;border-radius:8px;font:600 12.5px/1 var(--sans);color:var(--mute);white-space:nowrap}
.pg-agencies .ag-tabs .ag-on{background:var(--ag-seg);color:var(--ink);box-shadow:0 1px 2px rgba(20,21,28,.1),0 2px 8px -3px rgba(20,21,28,.14)}
.pg-agencies .ag-seq{display:flex;flex-direction:column;gap:22px;padding:16px 14px 20px}
.pg-agencies .ag-seq li{position:relative;display:flex;align-items:center;gap:12px;height:54px;padding:0 12px;border:1px solid var(--line);border-radius:13px;background:var(--panel)}
.pg-agencies .ag-seq li+li::before{content:"";position:absolute;left:27px;top:-23px;height:22px;border-left:1.5px dashed color-mix(in srgb,var(--mute) 45%,transparent)}
.pg-agencies .ag-seq b{flex:1;min-width:0;font:600 14.5px/1.2 var(--sans);color:var(--ink);white-space:nowrap}
.pg-agencies .ag-seq small{font:500 12.5px/1 var(--mono);color:var(--mute)}
.pg-agencies .ag-seq-i{display:grid;place-items:center;flex:none;width:31px;height:31px;border-radius:9px;background:var(--chip);color:var(--mute)}
.pg-agencies .ag-seq-i svg{width:17px;height:17px}
.pg-agencies .ag-seq-li .ag-seq-i{background:color-mix(in srgb,var(--k-li) 12%,var(--panel));color:var(--k-li-ink)}
.pg-agencies .ag-seq-em .ag-seq-i{background:color-mix(in srgb,var(--k-em) 14%,var(--panel));color:var(--k-em-ink)}

/* ---- 06 We set you up: three steps ------------------------------------------------------------------- */
.pg-agencies .ag-steps{position:relative;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;width:100%;max-width:620px}
.pg-agencies .ag-step{display:flex;flex-direction:column;padding:16px 16px 22px;border:1px solid var(--line);border-radius:20px;background:var(--panel);box-shadow:var(--k-sh-lg)}
.pg-agencies .ag-step-n{display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:var(--ai);color:var(--ag-on-ai);font:600 14px/1 var(--mono)}
.pg-agencies .ag-step-v{display:flex;align-items:center;justify-content:center;height:128px;margin:14px 0 18px;border-radius:14px;background:var(--sunk)}
.pg-agencies .ag-step-t{min-height:2.5em;font:600 17px/1.25 var(--sans);color:var(--ink);text-wrap:balance}
.pg-agencies .ag-step-s{margin-top:8px;font:400 14px/1.45 var(--sans);color:var(--mute);text-wrap:pretty}
.pg-agencies .ag-step-v .k-gs{width:46px;height:46px;filter:drop-shadow(0 4px 8px rgba(240,67,43,.25))}
.pg-agencies .ag-step-v .k-yb{width:46px;height:46px;border-radius:13px}
.pg-agencies .ag-step-v .k-yb svg{width:25px;height:25px}
.pg-agencies .ag-v-cam{display:grid;place-items:center;width:30px;height:30px;margin:0 8px;border-radius:50%;background:var(--panel);color:var(--ai);box-shadow:var(--k-sh)}
.pg-agencies .ag-v-cam svg{width:16px;height:16px}
.pg-agencies .ag-v-plus{width:18px;height:18px;margin:0 10px;color:var(--mute)}
.pg-agencies .ag-v-next .k-sq,.pg-agencies .ag-v-more{width:34px;height:34px;border-radius:10px;font-size:15px;box-shadow:0 0 0 2.5px var(--sunk)}
.pg-agencies .ag-v-next>*+*{margin-left:-3px}
.pg-agencies .ag-v-more{display:grid;place-items:center;border:1.5px dashed color-mix(in srgb,var(--mute) 55%,transparent);background:var(--sunk);color:var(--mute);box-shadow:none;margin-left:7px !important}
.pg-agencies .ag-v-more svg{width:16px;height:16px}

/* ---- 07 Earn more: the referral card and the badge to come ------------------------------------------- */
/* the Certified Agency shield is the file (assets/img/badges/), painted by the kit's .k-badge at 200 px */
.pg-agencies .ag-earn{display:grid;grid-template-columns:minmax(0,1fr);gap:18px;align-items:stretch;width:100%;max-width:460px}
.pg-agencies .ag-ref{padding-bottom:18px}
.pg-agencies .ag-ref-link{display:flex;align-items:center;gap:9px;height:46px;margin:18px 18px 0;padding:0 12px;border:1px solid var(--line);border-radius:12px;background:var(--sunk);font:500 13px/1 var(--mono);color:var(--ink);white-space:nowrap}
.pg-agencies .ag-ref-link span{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis}
.pg-agencies .ag-ref-li{width:17px;height:17px;color:var(--ai)}
.pg-agencies .ag-ref-cp{width:16px;height:16px;color:var(--mute)}
.pg-agencies .ag-ref-st{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:12px 18px 0}
.pg-agencies .ag-ref-st p{display:flex;flex-direction:column;gap:8px;padding:14px 14px 15px;border:1px solid var(--line-2);border-radius:13px}
.pg-agencies .ag-ref-st small{font:400 13px/1.2 var(--sans);color:var(--mute)}
.pg-agencies .ag-ref-st b{font:600 34px/1 var(--display);letter-spacing:-.03em;color:var(--ink)}
.pg-agencies .ag-ref-st span{font:500 13px/1 var(--sans);color:var(--k-ok-ink)}

/* ---- widths ------------------------------------------------------------------------------------------- */
@media (max-width:760px){
  /* 03: the switcher sits over the top of the inbox */
  .pg-agencies .ag-ws{display:flex;flex-direction:column}
  .pg-agencies .ag-menu{position:relative;top:auto;order:-1;width:88%;transform:none}
  .pg-agencies .ag-inbox{width:100%;margin-top:-34px}
  .pg-agencies .ag-inbox .k-win-title{padding-left:16px;height:46px}
  .pg-agencies .ag-msg{padding:14px 13px}
  .pg-agencies .ag-msg-r{white-space:normal}
  .pg-agencies .ag-bubble{font-size:14.5px}
  .pg-agencies .ag-inbox::before{content:"";display:block;height:34px;background:var(--sunk)}

  /* 04: the five tiles in a loose pile above, the window below */
  .pg-agencies .ag-five{grid-template-columns:minmax(0,1fr)}
  .pg-agencies .ag-pile{flex-direction:row;flex-wrap:wrap;justify-content:center;gap:8px 6px}
  .pg-agencies .ag-pile li{width:auto;margin-left:0}
  .pg-agencies .ag-pile-sum{text-align:center}
  .pg-agencies .ag-pile li+li{margin-top:0}
  .pg-agencies .ag-five .k-arr{margin:18px 0;transform:rotate(90deg)}
  .pg-agencies .ag-tabs{margin:12px 10px 2px}
  .pg-agencies .ag-tabs span{font-size:11.5px}
  .pg-agencies .ag-seq{padding:14px 10px 16px}

  /* 06: the steps as rows, the picture of each on the left */
  .pg-agencies .ag-steps{grid-template-columns:minmax(0,1fr);gap:12px}
  .pg-agencies .ag-step{display:grid;grid-template-columns:112px minmax(0,1fr);grid-template-areas:"v n" "v t" "v s";column-gap:16px;align-items:start;padding:14px}
  .pg-agencies .ag-step-n{grid-area:n;width:26px;height:26px;font-size:12.5px}
  .pg-agencies .ag-step-v{grid-area:v;height:104px;margin:0}
  .pg-agencies .ag-step-t{grid-area:t;min-height:0;margin-top:10px;font-size:16px}
  .pg-agencies .ag-step-s{grid-area:s;margin-top:5px;font-size:13.5px}
  .pg-agencies .ag-step-v .k-gs,.pg-agencies .ag-step-v .k-yb,.pg-agencies .ag-v-brand .k-sq{width:28px;height:28px;border-radius:8px}
  .pg-agencies .ag-step-v .k-yb svg{width:17px;height:17px}
  .pg-agencies .ag-v-brand .k-sq{font-size:14px}
  .pg-agencies .ag-v-cam{width:22px;height:22px;margin:0 5px}
  .pg-agencies .ag-v-cam svg{width:12px;height:12px}
  .pg-agencies .ag-v-plus{width:13px;height:13px;margin:0 4px}
  .pg-agencies .ag-v-next .k-sq,.pg-agencies .ag-v-more{width:24px;height:24px;border-radius:7px;font-size:11.5px;box-shadow:0 0 0 2px var(--sunk)}
  .pg-agencies .ag-v-next>*+*{margin-left:-2px}
  .pg-agencies .ag-v-more{margin-left:5px !important;box-shadow:none}
  .pg-agencies .ag-v-more svg{width:12px;height:12px}

  /* 07: the badge under the referral card */
  .pg-agencies .ag-earn{gap:14px}
  .pg-agencies .ag-ref-link{gap:8px;margin:16px 14px 0;padding:0 10px;font-size:12.5px}
  .pg-agencies .ag-ref-st{margin:12px 14px 0}
}
/* the narrowest phones (320 to 360): the pictures take the last few pixels so no figure, time or link is cut */
@media (max-width:360px){
  .pg-agencies .ag-msg{grid-template-columns:34px minmax(0,1fr);gap:10px;padding:13px 11px}
  .pg-agencies .ag-msg .k-av{width:34px;height:34px}
  .pg-agencies .ag-msg-h{flex-wrap:wrap;row-gap:6px}
  .pg-agencies .ag-ref-link{margin:14px 10px 0;padding:0 9px;gap:7px;font-size:11.5px}
  .pg-agencies .ag-ref-st{margin:10px 10px 0;gap:10px}
}
