/* ============================================================================
   EVERY DEPARTMENT — home page. After Clay's "GTM engineers build on Clay".

   Clay's is a data-module="rotate" block: use-case tabs a script cycles; each
   card stacks in one grid cell with a tinted, textured band, a description and
   layered UI images (a table, a floating checklist popover, an action pill on a
   dotted line). Here the checklist, loading cells and pill are HTML, and the
   rotation is keyframes on one shared 25s timeline (css/motion.css, ROTATE).
   Layering: the bands live OUTSIDE the cards, behind the shared window; a
   fading card traps its children's z-index, so a band inside one could never
   sit behind the window while its table sits in front.
   Resting state is the first tab, finished.
   ========================================================================== */

.cl-sec{overflow:hidden}
.cl-sh{text-align:center}
.cl-sh .eyebrow{margin:0 auto}
.cl-foot{margin:14px auto 0;text-align:center;font-size:12.5px;color:var(--t4)}
.cl{--s:1;position:relative;max-width:100%;width:calc(1200px * var(--s));height:calc(700px * var(--s));margin:10px auto 0}
.cl-stage{position:absolute;left:0;top:0;width:1200px;height:700px;transform:scale(var(--s));transform-origin:0 0;
  overflow:hidden;contain:layout paint;font-family:var(--ui);color:var(--ink)}
.cl-stage>span,.cl-card>*{position:absolute;display:block}

/* ---- description + tabs --------------------------------------------------- */
.cl-descs{left:0;right:0;top:0;height:30px}
.cl-d{position:absolute;left:0;right:0;top:0;text-align:center;font-size:18px;color:var(--ink)}
.cl-tabs{z-index:3;left:0;right:0;top:48px;display:flex !important;justify-content:center;gap:10px}
.cl-tab{padding:11px 20px;border-radius:8px;background:#f3f5f8;font-size:15px;font-weight:500;color:var(--t4)}
.cl-tabs .cl-c0{background:#dbe8fb;color:var(--navy);box-shadow:0 0 0 1px #c5dbf6 inset}
.cl-d:not(.cl-c0),.cl-card:not(.cl-c0),.cl-band:not(.cl-c0){opacity:0}
/* tabs are links: a click jumps the loop to that desk (script in index.html). With
   motion off nothing animates, so .cl-pN on .cl shows the picked desk instead; while
   the loop runs, the keyframes win over these plain declarations. */
a.cl-tab{text-decoration:none;cursor:pointer}
a.cl-tab:focus-visible{outline:2px solid var(--navy);outline-offset:2px}
.cl.cl-p0 .cl-stage .cl-d,.cl.cl-p0 .cl-stage .cl-card,.cl.cl-p0 .cl-stage .cl-band{opacity:0}
.cl.cl-p0 .cl-stage .cl-d.cl-c0,.cl.cl-p0 .cl-stage .cl-card.cl-c0,.cl.cl-p0 .cl-stage .cl-band.cl-c0{opacity:1}
.cl.cl-p0 .cl-tabs .cl-tab{background:#f3f5f8;color:var(--t4);box-shadow:none}
.cl.cl-p0 .cl-tabs .cl-tab.cl-c0{background:#dbe8fb;color:var(--navy);box-shadow:0 0 0 1px #c5dbf6 inset}
.cl.cl-p1 .cl-stage .cl-d,.cl.cl-p1 .cl-stage .cl-card,.cl.cl-p1 .cl-stage .cl-band{opacity:0}
.cl.cl-p1 .cl-stage .cl-d.cl-c1,.cl.cl-p1 .cl-stage .cl-card.cl-c1,.cl.cl-p1 .cl-stage .cl-band.cl-c1{opacity:1}
.cl.cl-p1 .cl-tabs .cl-tab{background:#f3f5f8;color:var(--t4);box-shadow:none}
.cl.cl-p1 .cl-tabs .cl-tab.cl-c1{background:#dbe8fb;color:var(--navy);box-shadow:0 0 0 1px #c5dbf6 inset}
.cl.cl-p2 .cl-stage .cl-d,.cl.cl-p2 .cl-stage .cl-card,.cl.cl-p2 .cl-stage .cl-band{opacity:0}
.cl.cl-p2 .cl-stage .cl-d.cl-c2,.cl.cl-p2 .cl-stage .cl-card.cl-c2,.cl.cl-p2 .cl-stage .cl-band.cl-c2{opacity:1}
.cl.cl-p2 .cl-tabs .cl-tab{background:#f3f5f8;color:var(--t4);box-shadow:none}
.cl.cl-p2 .cl-tabs .cl-tab.cl-c2{background:#dbe8fb;color:var(--navy);box-shadow:0 0 0 1px #c5dbf6 inset}
.cl.cl-p3 .cl-stage .cl-d,.cl.cl-p3 .cl-stage .cl-card,.cl.cl-p3 .cl-stage .cl-band{opacity:0}
.cl.cl-p3 .cl-stage .cl-d.cl-c3,.cl.cl-p3 .cl-stage .cl-card.cl-c3,.cl.cl-p3 .cl-stage .cl-band.cl-c3{opacity:1}
.cl.cl-p3 .cl-tabs .cl-tab{background:#f3f5f8;color:var(--t4);box-shadow:none}
.cl.cl-p3 .cl-tabs .cl-tab.cl-c3{background:#dbe8fb;color:var(--navy);box-shadow:0 0 0 1px #c5dbf6 inset}
.cl.cl-p4 .cl-stage .cl-d,.cl.cl-p4 .cl-stage .cl-card,.cl.cl-p4 .cl-stage .cl-band{opacity:0}
.cl.cl-p4 .cl-stage .cl-d.cl-c4,.cl.cl-p4 .cl-stage .cl-card.cl-c4,.cl.cl-p4 .cl-stage .cl-band.cl-c4{opacity:1}
.cl.cl-p4 .cl-tabs .cl-tab{background:#f3f5f8;color:var(--t4);box-shadow:none}
.cl.cl-p4 .cl-tabs .cl-tab.cl-c4{background:#dbe8fb;color:var(--navy);box-shadow:0 0 0 1px #c5dbf6 inset}

/* ---- the backdrop band, per department ------------------------------------ */
.cl-bands{left:0;right:0;top:300px;bottom:-40px}
.cl-band{position:absolute;inset:0;display:block;border-radius:6px;
  background-image:radial-gradient(rgba(255,255,255,.35) 1px,transparent 1px);background-size:6px 6px}
/* a pale tint per department, all accents of the royal blue (#2946b6) family at the same
   lightness, so the window, its frame and the dots read the same on each: Revenue royal,
   Marketing periwinkle, Operations sky, Finance steel, Executive Office the original tint */
.cl-band.cl-c0,.cl-mc0{background-color:#dae5fb}
.cl-band.cl-c1,.cl-mc1{background-color:#e5e8fc}
.cl-band.cl-c2,.cl-mc2{background-color:#d9ecf9}
.cl-band.cl-c3,.cl-mc3{background-color:#e0e9f4}
.cl-band.cl-c4,.cl-mc4{background-color:#e4ecfb}

/* ---- the shared window ------------------------------------------------------ */
.cl-win{left:70px;right:70px;top:238px;height:500px;border-radius:8px;background:rgba(255,255,255,.94);
  /* white glass frame, as on the expense report and the plan tour: a soft white ring (14px on
     screen at any --s), a brighter white edge and a faint outer line so it still shows where
     the window sits on the white page above the band */
  border:1px solid rgba(255,255,255,.6);
  box-shadow:0 0 0 calc(1px / var(--s)) rgba(255,255,255,.3),0 0 0 calc(14px / var(--s)) rgba(255,255,255,.2),
    0 0 0 calc(15px / var(--s)) rgba(255,255,255,.45),0 0 0 calc(16px / var(--s)) rgba(2,37,79,.06),
    0 calc(24px / var(--s)) calc(60px / var(--s)) calc(-34px / var(--s)) rgba(2,37,79,.35)}
.cl-wh2{position:absolute;left:0;right:0;top:0;height:54px;display:flex;align-items:center;gap:10px;padding:0 20px;border-bottom:1px solid var(--line)}
.cl-mk{display:block;width:22px;height:22px;background:url(../assets/img/manelink-mark.svg) no-repeat center/contain}
.cl-wh2 b{font-size:15px;font-weight:600;color:var(--navy)}
.cl-crumb{font-size:14px;color:var(--mute)}
.cl-me{margin-left:auto;display:flex;align-items:center;gap:8px;font-size:12.5px;color:var(--mute)}
.cl-side{position:absolute;left:0;top:54px;bottom:0;width:210px;padding:16px 16px;border-right:1px solid var(--line);display:flex;flex-direction:column;gap:4px}
.cl-side b{margin-bottom:6px;font-size:13.5px;font-weight:600;color:var(--navy)}
.cl-side em{padding:7px 10px;border-radius:5px;font-size:13px;font-style:normal;color:var(--mute)}
.cl-side em.on{background:#f1f5fb;color:var(--navy);font-weight:500}
.cl-side small{margin:12px 0 2px 2px;font-size:11.5px;color:var(--t4)}
.cl-av{flex:none;display:block;width:26px;height:26px;border-radius:50%;background-size:cover;background-position:center;background-color:var(--sky)}

/* ---- a department's card ------------------------------------------------------ */
.cl-card{position:absolute;inset:0;display:block}
.cl-main{left:281px;right:71px;top:293px;padding:0 20px}
.cl-mh{display:flex;align-items:center;gap:10px;height:50px}
.cl-mh b{font:600 17px var(--display);color:var(--navy)}
.cl-mh em{padding:3px 9px;border-radius:6px;background:#eef3fb;font-size:12px;font-style:normal;color:var(--mute)}
.cl-table{display:block}
.cl-tr{display:grid;grid-template-columns:28px 1.35fr 1.2fr 1.15fr 1.6fr .9fr;gap:12px;align-items:center;height:40px;border-bottom:1px solid #eef2f7;font-size:13px;color:var(--ink)}
.cl-th{height:34px;font-size:12px;color:var(--t4)}
.cl-n{font-size:12px;color:var(--t4)}
.cl-cell{position:relative;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cl-lc{height:18px;overflow:visible}
.cl-load,.cl-got{position:absolute;left:0;top:0;white-space:nowrap}
.cl-load{display:flex;align-items:center;gap:6px;color:var(--t4);opacity:0}

/* the popover: the seat's routine, ticking off */
.cl-pop{left:470px;top:160px;width:340px;padding:14px 16px 6px;border-radius:8px;background:#fff;
  box-shadow:0 26px 50px -24px rgba(2,37,79,.42),0 0 0 1px #e3eaf4}
.cl-ph{display:flex;align-items:center;gap:12px;padding-bottom:12px}
.cl-ph .cl-av{width:40px;height:40px;border-radius:6px}
.cl-ph span{display:flex;flex-direction:column;gap:2px}
.cl-ph b{font-size:15px;font-weight:600;color:var(--navy)}
.cl-ph small{font-size:12.5px;color:var(--mute)}
.cl-step{position:relative;display:flex;align-items:center;height:46px;border-top:1px solid #eef2f7;font-size:14px;color:var(--ink)}
.cl-st{position:relative;margin-left:auto;width:22px;height:22px}
.cl-st i{position:absolute;inset:0;display:block}
.cl-spin{width:14px;height:14px;border-radius:50%;border:2px solid #cfd9e6;border-top-color:var(--blue)}
.cl-st .cl-spin{inset:3px;width:auto;height:auto;opacity:0}
.cl-load .cl-spin{position:static;display:block}
.cl-ok{border-radius:50%;background:var(--green)}
.cl-ok::after{content:"";position:absolute;left:8px;top:5px;width:5px;height:9px;border-right:2px solid #fff;border-bottom:2px solid #fff;transform:rotate(45deg)}

/* the dotted line to the pill */
.cl-wire{display:block}
.cl-wv{left:830px;top:190px;width:2px;height:150px;background:radial-gradient(circle,#6b7c93 1px,transparent 1.4px) 0 0/2px 7px}
.cl-wh{left:830px;top:190px;width:34px;height:2px;background:radial-gradient(circle,#6b7c93 1px,transparent 1.4px) 0 0/7px 2px}
.cl-pill{left:864px;top:168px;display:flex !important;align-items:center;gap:10px;height:44px;padding:0 10px 0 14px;border-radius:8px;background:#fff;
  box-shadow:0 16px 34px -18px rgba(2,37,79,.4),0 0 0 1px #e3eaf4;font-size:14.5px;font-weight:500;color:var(--ink);white-space:nowrap}
.cl-go{display:block;width:28px;height:28px;margin-left:8px;border-radius:6px;background:#f2f5f9;position:relative}
.cl-go::after{content:"";position:absolute;left:9px;top:10px;width:7px;height:7px;border-right:2px solid var(--mute);border-top:2px solid var(--mute);transform:rotate(45deg)}

@media (max-width:991px){ .cl{--s:.6} }
@media (max-width:767px){ .cl{--s:.36} }
@media (max-width:479px){ .cl{--s:.24} }

/* the header is centred like the tabs and window under it; tighter foot before the dark flow section */
.cl-sh{align-items:center;margin-left:auto;margin-right:auto;margin-bottom:28px}
section.cl-sec{padding-bottom:64px}
.cl-foot{margin-top:8px}

/* ---- phones: the desks as real cards in a swipe row (767 and below) ---------- */
.cl-m{display:none}
.cl-mtabs{display:flex;gap:8px;overflow-x:auto;scrollbar-width:none;margin:0 -24px;padding:2px 24px 4px}
.cl-mt{flex:0 0 auto;padding:9px 16px;border-radius:8px;background:#f3f5f8;font-size:14px;font-weight:500;color:var(--t4);text-decoration:none}
.cl-mt.on{background:#dbe8fb;color:var(--navy);box-shadow:0 0 0 1px #c5dbf6 inset}
.cl-mt:hover{text-decoration:none;color:var(--navy)}
.cl-mt:focus-visible{outline:2px solid var(--navy);outline-offset:2px}
.cl-mrail{display:flex;gap:12px;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;margin:16px -24px 0;padding:0 24px 8px;scroll-padding:0 24px}
.cl-mc{flex:0 0 86%;scroll-snap-align:center;display:flex;flex-direction:column;gap:14px;padding:18px 16px 16px;border-radius:8px;
  background-image:radial-gradient(rgba(255,255,255,.4) 1px,transparent 1px);background-size:6px 6px}
/* phone cards: the per-department tints are set with the bands above */
.cl-md{margin:0;font-size:15px;line-height:1.5;color:var(--ink)}
.cl-md b{display:block;margin-bottom:4px;font:600 12px var(--web);letter-spacing:.06em;text-transform:uppercase;color:var(--navy)}
.cl-mpop{padding:14px 14px 4px;border-radius:8px;background:#fff;box-shadow:0 12px 30px -18px rgba(2,37,79,.35)}
.cl-mpop .cl-ph{padding-bottom:10px}
.cl-mpop .cl-ph .cl-av{width:36px;height:36px}
.cl-mpop .cl-ph span{min-width:0}
.cl-mpop .cl-ph small{white-space:normal}
.cl-ms{display:flex;align-items:center;gap:10px;min-height:42px;border-top:1px solid #eef2f7;font-size:14px;color:var(--ink)}
.cl-mok{position:relative;flex:0 0 auto;margin-left:auto;width:20px;height:20px;border-radius:50%;background:var(--green)}
.cl-mok::after{content:"";position:absolute;left:7px;top:4px;width:5px;height:9px;border-right:2px solid #fff;border-bottom:2px solid #fff;transform:rotate(45deg)}
.cl-mpill{display:flex;align-items:center;gap:10px;align-self:flex-start;max-width:100%;padding:10px 14px;border-radius:8px;background:#fff;font-size:13.5px;font-weight:500;color:var(--navy)}
.cl-mpill img{flex:0 0 auto}
@media (max-width:767px){
  .cl{display:none}
  .cl-m{display:block}
  .cl-sh{margin-bottom:20px}
}
@media (max-width:479px){
  .cl-mtabs{margin:0 -16px;padding:2px 16px 4px}
  .cl-mrail{margin:16px -16px 0;padding:0 16px 8px;scroll-padding:0 16px}
  .cl-mc{flex-basis:88%}
}
