/* /linkedin-carousel-templates/: the design wall, the filterable gallery and the brand kit moment (from design option C).
   Loaded after site.css and uses its tokens. Every class here starts with tp- so it never touches other pages.
   Phone first (375 px), then widened. Nothing is hidden waiting for a script: without JavaScript the gallery shows all
   42 designs and the brand kit shows its four pictures in a grid. */

/* ---------- 1. First screen ---------- */
/* The opening sits on the shared light "hall" (site.css); the covers on the right keep their full color. */
.tp-hero{position:relative;overflow:hidden}
.tp-hero-in{max-width:calc(var(--maxw) + 2 * var(--gutter));margin-inline:auto;padding:clamp(28px,6vw,40px) var(--gutter) 28px;display:grid;gap:22px}
.tp-hero-copy{display:grid;gap:14px;align-content:start;position:relative;z-index:2}
.tp-crumbs ol{list-style:none;margin:0;padding:0;display:flex;align-items:center;flex-wrap:wrap;gap:6px;font-size:14px;color:var(--fg-2)}
.tp-crumbs li+li::before{content:"/";margin-right:6px;color:var(--haze)}
.tp-crumbs a{display:inline-flex;align-items:center;min-height:32px;color:var(--fg-2)}
.tp-crumbs a:hover{color:var(--fg)}
.tp-h1{font-size:var(--t-display);font-weight:700;line-height:1;letter-spacing:-.028em;max-width:15ch;color:var(--midnight)}
.tp-counts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));margin:4px 0 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.tp-counts>div{display:flex;flex-direction:column-reverse;justify-content:flex-end;gap:4px;padding:14px 10px 14px 0}
.tp-counts>div+div{padding-left:12px;border-left:1px solid var(--line)}
.tp-counts dt{font-size:13px;line-height:1.3;color:var(--fg-2)}
.tp-counts dd{margin:0;font:700 clamp(34px,8vw,56px)/.95 var(--h);letter-spacing:-.04em;font-variant-numeric:lining-nums tabular-nums;color:var(--midnight)}
/* Orange stays a small accent bar: orange numbers on the light hall would fail contrast. */
.tp-counts>div:first-child{position:relative}
.tp-counts>div:first-child::before{content:"";position:absolute;left:0;top:-2px;width:32px;height:3px;border-radius:2px;background:var(--spark)}
.tp-count-note{font-size:var(--t-small);line-height:1.45;color:var(--fg-2);max-width:40em}
.tp-hero-cta{display:flex;flex-wrap:wrap;gap:10px;margin-top:4px}

/* The wall. Phone: one horizontal lane drifting left. Decorative (aria-hidden): the gallery below lists every design.
   It drifts through one slow pass and stops; the Play button runs it again (templates.js). */
.tp-wall{position:relative;height:200px;margin-inline:calc(-1 * var(--gutter));isolation:isolate}
.tp-lanes{position:absolute;inset:0 0 34px 0;overflow:hidden;-webkit-mask-image:linear-gradient(90deg,transparent 0,#000 12%,#000 88%,transparent);mask-image:linear-gradient(90deg,transparent 0,#000 12%,#000 88%,transparent)}
.tp-lane{position:absolute;inset:0;display:none}
.tp-lane-1{display:block}
.tp-track{display:flex;gap:10px;width:max-content;height:100%;animation:tp-drift-x 90s linear 1 both;will-change:transform}
.tp-track img{height:100%;width:auto;aspect-ratio:4/5;object-fit:cover;border-radius:4px;box-shadow:0 16px 28px -16px rgb(18 20 51/.45),0 2px 6px rgb(18 20 51/.12)}
@keyframes tp-drift-x{to{transform:translate3d(-50%,0,0)}}
@keyframes tp-drift-y{to{transform:translate3d(0,-50%,0)}}
@keyframes tp-drift-y-r{from{transform:translate3d(0,-50%,0)}to{transform:translate3d(0,0,0)}}
/* Pauses while the pointer rests on the covers, with the button, and while off screen (templates.js). The button itself
   never pauses it, so Play works while it has focus. */
.tp-lanes:hover .tp-track,.tp-wall.is-paused .tp-track,.tp-wall.is-off .tp-track{animation-play-state:paused}
.tp-wall-pause{position:absolute;z-index:3;right:calc(var(--gutter) - 6px);bottom:0;display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:0 12px;border:0;border-radius:999px;background:none;color:var(--fg-2);font:600 14px/1 var(--b);cursor:pointer}
.tp-wall-pause:hover{color:var(--fg)}
.tp-wall-pause:focus-visible{outline:3px solid var(--midnight);outline-offset:2px}
.tp-wp-icon{width:12px;height:12px;display:inline-block;background:linear-gradient(90deg,currentColor 0 4px,transparent 4px 8px,currentColor 8px 12px)}
.tp-wall-pause[aria-pressed=true] .tp-wp-icon{background:currentColor;clip-path:polygon(0 0,100% 50%,0 100%)}
@media (prefers-reduced-motion:reduce){.tp-track{animation:none!important}.tp-wall-pause{display:none!important}}

@media (min-width:600px){.tp-wall{height:260px}}
@media (min-width:960px){
  .tp-hero-in{grid-template-columns:minmax(0,1fr) minmax(0,1.05fr);column-gap:56px;padding-top:40px;padding-bottom:0;min-height:min(calc(100svh - 56px),820px);align-items:stretch}
  .tp-hero-copy{align-content:center;padding-bottom:48px}
  .tp-wall{height:auto;min-height:600px;margin:0 calc(-1 * var(--gutter)) 0 0}
  .tp-lanes{inset:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;-webkit-mask-image:linear-gradient(180deg,transparent 0,#000 12%,#000 88%,transparent);mask-image:linear-gradient(180deg,transparent 0,#000 12%,#000 88%,transparent)}
  .tp-lane{position:relative;inset:auto;display:block;overflow:hidden}
  .tp-track{flex-direction:column;gap:14px;width:100%;height:max-content;animation:tp-drift-y 100s linear 1 both}
  .tp-lane-2 .tp-track{animation-name:tp-drift-y-r;animation-duration:110s}
  .tp-lane-3 .tp-track{animation-duration:95s}
  .tp-lane-4 .tp-track{animation-name:tp-drift-y-r;animation-duration:105s}
  .tp-lane-2,.tp-lane-4{margin-top:-60px}
  .tp-track img{height:auto;width:100%}
  .tp-wall-pause{right:var(--gutter);bottom:16px;background:var(--card);color:var(--midnight);padding:0 16px;box-shadow:var(--shadow-1),inset 0 0 0 1px var(--line)}
  .tp-wall-pause:hover{background:#fff;box-shadow:var(--shadow-1),inset 0 0 0 1.5px var(--midnight)}
}
@media (min-width:1400px){.tp-wall{margin-right:0}}

/* ---------- Shared controls ---------- */
.tp-seg{display:inline-flex;flex-wrap:wrap;gap:4px;padding:4px;border-radius:999px;background:var(--card);box-shadow:var(--shadow-1),inset 0 0 0 1px var(--line-soft)}
.tp-seg button{min-height:44px;padding:8px 16px;border:0;border-radius:999px;background:transparent;color:var(--fg-2);font:600 15px/1.1 var(--b);cursor:pointer;transition:background-color var(--m-quick),color var(--m-quick)}
.tp-seg button:hover{color:var(--fg)}
.tp-seg button[aria-pressed=true]{background:var(--midnight);color:#fff}
.tp-seg button:focus-visible{outline:3px solid var(--midnight);outline-offset:2px}
.tp-n{font-weight:500;opacity:.75;margin-left:2px}
.tp-linkish{background:none;border:0;padding:8px 4px;min-height:44px;color:var(--fg);text-decoration:underline;font-weight:600;cursor:pointer}

/* ---------- 2. Gallery ---------- */
.tp-gallery .section-head{margin-bottom:var(--s-6)}
.tp-filters{display:flex;flex-wrap:wrap;align-items:end;gap:14px 20px;margin-bottom:12px}
.tp-prof{display:grid;gap:6px;min-width:0}
.tp-prof label{font:700 var(--t-label)/1.2 var(--b);letter-spacing:.1em;text-transform:uppercase;color:var(--fg-2)}
.tp-prof select{min-height:48px;width:100%;max-width:320px;min-width:min(240px,100%);padding:0 40px 0 16px;border-radius:12px;border:1.5px solid var(--field-line);background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23121433' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center/18px;color:var(--midnight);appearance:none;-webkit-appearance:none;font-weight:600}
.tp-prof select:focus-visible{outline:3px solid var(--midnight);outline-offset:2px}
.tp-status{min-height:1.6em;margin-bottom:18px;font-size:var(--t-small);color:var(--fg-2)}
.tp-status strong{color:var(--fg)}
.tp-grid{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px 12px}
.tp-tile figure{margin:0}
.tp-tile img{width:100%;height:auto;aspect-ratio:4/5;object-fit:cover;border-radius:4px;background:var(--panel);box-shadow:0 16px 28px -16px rgb(18 20 51/.45),0 2px 6px rgb(18 20 51/.1);transition:transform var(--m-base) var(--ease-out)}
.tp-tile:hover img{transform:translateY(-3px)}
.tp-tile figcaption{display:grid;gap:2px;margin-top:10px}
.tp-tile .t-name{font:700 15px/1.25 var(--b)}
.tp-tile .t-meta{font-size:13px;line-height:1.35;color:var(--fg-2)}
.tp-tile:focus{outline:3px solid var(--midnight);outline-offset:4px}
.tp-tile.is-in{animation:tp-tile-in var(--m-base) var(--ease-out)}
@keyframes tp-tile-in{from{transform:translateY(8px)}to{transform:none}}
@media (prefers-reduced-motion:reduce){.tp-tile.is-in{animation:none}.tp-tile img{transition:none}}
.tp-more{margin-top:24px;text-align:center}
.tp-empty{margin-top:12px;color:var(--fg-2)}
.tp-foot{margin-top:28px;font-size:var(--t-small);color:var(--fg-2);max-width:70ch}
@media (min-width:600px){.tp-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:28px 18px}}
@media (min-width:960px){.tp-grid{grid-template-columns:repeat(6,minmax(0,1fr));gap:28px 16px}}

/* ---------- 3. Brand kit ---------- */
.tp-kit{background:var(--h200)}
.tp-kit-wrap{display:grid;gap:var(--s-6)}
.tp-kit-copy{display:grid;gap:14px;align-content:start}
.tp-kit-copy h2{font-size:var(--t-h2)}
.tp-kit-seg{justify-self:start;margin-top:6px}
.tp-kit-seg button{padding:8px 11px}
.tp-kit-stage{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.tp-kit-fig{margin:0}
.tp-kit-fig img{width:100%;height:auto;border-radius:6px;box-shadow:0 30px 60px -28px rgb(18 20 51/.55)}
.tp-kit-fig figcaption{margin-top:8px;font-size:var(--t-small);font-weight:600;color:var(--fg-2)}
/* With JavaScript: one stage, and the chosen kit sweeps in from left to right over the last one. */
.js .tp-kit-stage.is-live{display:block;position:relative;width:100%;max-width:420px;aspect-ratio:420/526;margin-inline:auto}
.js .tp-kit-stage.is-live .tp-kit-fig{position:absolute;inset:0;clip-path:inset(0 100% 0 0)}
.js .tp-kit-stage.is-live .tp-kit-fig figcaption{position:absolute;left:12px;bottom:12px;margin:0;padding:5px 12px;border-radius:999px;background:var(--card);color:var(--midnight);box-shadow:var(--shadow-1);font-size:12px}
.js .tp-kit-stage.is-live .tp-kit-fig.is-under{clip-path:inset(0 0 0 0)}
.js .tp-kit-stage.is-live .tp-kit-fig.is-on{clip-path:inset(0 0 0 0);z-index:2;transition:clip-path var(--m-slow) var(--ease-in-out)}
.js .tp-kit-stage.is-live .tp-kit-fig.is-on.is-start{clip-path:inset(0 100% 0 0);transition:none}
@media (prefers-reduced-motion:reduce){.js .tp-kit-stage.is-live .tp-kit-fig.is-on{transition:none}}
@media (min-width:960px){.tp-kit-wrap{grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:center;gap:80px}.tp-kit-stage{grid-template-columns:repeat(4,minmax(0,1fr))}}

/* ---------- 4. From template to post ---------- */
.tp-how-wrap{display:grid;gap:var(--s-6)}
@media (min-width:960px){.tp-how-wrap{grid-template-columns:minmax(0,1fr) minmax(0,1.2fr);gap:var(--s-9);align-items:start}}

/* ---------- 5. Keep reading ---------- */
.tp-next{padding-top:0}
.tp-next-title{font:700 var(--t-label)/1.2 var(--b);letter-spacing:.12em;text-transform:uppercase;color:var(--fg-2)}
.tp-next-list{list-style:none;margin:12px 0 0;padding:0;display:flex;flex-wrap:wrap;gap:8px}
.tp-next-list a{display:inline-flex;align-items:center;min-height:44px;padding:0 18px;border-radius:999px;background:var(--card);color:var(--midnight);box-shadow:inset 0 0 0 1px var(--line);text-decoration:none;font-weight:600;font-size:15px;transition:box-shadow .2s,background-color .2s}
.tp-next-list a:hover{background:#fff;box-shadow:inset 0 0 0 1.5px var(--midnight)}

/* ---------- 6. Closing action ---------- */
.tp-join-wrap{display:grid;gap:var(--s-6)}
.tp-join-cta{margin-top:8px}
.tp-join-strip{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.tp-join-strip img{width:100%;height:auto;border-radius:4px;box-shadow:0 16px 28px -16px rgb(18 20 51/.45),0 2px 6px rgb(18 20 51/.1)}
@media (min-width:960px){.tp-join-wrap{grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:center;gap:var(--s-9)}.tp-join-strip{gap:14px}.tp-join-strip li:nth-child(even){transform:translateY(28px)}}
/* Brand kit rotation: Pause / Play, as on the home page */
.tp-kit-foot{display:flex;align-items:center;gap:12px 16px;flex-wrap:wrap}.tp-kit-foot .sample-note{margin:0}
.tp-kit-auto{display:inline-flex;align-items:center;gap:6px;height:36px;padding:0 14px 0 10px;border-radius:999px;border:1px solid var(--line-soft);background:var(--card);color:var(--midnight);font:600 .875rem/1 var(--b);cursor:pointer}
.tp-kit-auto[hidden]{display:none}.tp-kit-auto:hover{border-color:var(--midnight)}.tp-kit-auto:focus-visible{outline:3px solid var(--midnight);outline-offset:2px}
.tp-kit-auto svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.tp-kit-auto .ico-play{display:none;fill:currentColor;stroke:none}.tp-kit-auto.is-paused .ico-play{display:block}.tp-kit-auto.is-paused .ico-pause{display:none}
