/* ==========================================================================
   PSSC theme - one design layer for pssclub.ca. Loaded after every other
   stylesheet. Edit here, not in the older files.
   ========================================================================== */

/* 1. Tokens ---------------------------------------------------------------- */
:root{
  --th-ink:#0f1b33; --th-body:#33415c; --th-muted:#5b6b86;
  --th-navy:#0d2350; --th-blue:#1049a9; --th-red:#c8102e; --th-red-2:#e2363f;
  --th-saffron:#f5a623; --th-field:#0b7a4b;
  --th-paper:#f7f8fb; --th-card:#fff; --th-line:rgba(13,35,80,.10); --th-line-2:rgba(13,35,80,.18);
  --th-glass:rgba(251,251,253,.80);
  --th-r-sm:12px; --th-r:20px; --th-r-lg:28px; --th-pill:999px;
  --th-sh:0 1px 2px rgba(13,35,80,.04),0 8px 24px rgba(13,35,80,.06);
  --th-sh-up:0 2px 6px rgba(13,35,80,.06),0 20px 44px rgba(13,35,80,.12);
  --th-ease:cubic-bezier(.22,1,.36,1);
  --th-sec:clamp(64px,8vw,112px);
  --th-h1:clamp(40px,5.6vw,76px); --th-h2:clamp(32px,4vw,54px);
  --th-ui:"Inter",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Noto Sans Gurmukhi",sans-serif;
  --th-display:"Barlow Semi Condensed","Inter",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;
  --th-mark:25vw;
}

/* 2. Base ------------------------------------------------------------------ */
html{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-rendering:optimizeLegibility}
::selection{background:rgba(245,166,35,.35);color:var(--th-ink)}
.th-site h1,.th-site h2,.th-site h3{text-wrap:balance}
.th-site p{text-wrap:pretty}
:focus-visible{outline:2px solid var(--th-saffron)!important;outline-offset:3px!important}
.th-site [class*="stat"] b,.th-site [class*="stat"] strong{font-variant-numeric:tabular-nums}

/* 3. Header: frosted bar, hairline, one calm main action ----------------- */
.site-header{border-bottom:1px solid var(--th-line)!important;box-shadow:none!important}
.site-header .bar{background:var(--th-glass)!important;-webkit-backdrop-filter:saturate(1.8) blur(20px);backdrop-filter:saturate(1.8) blur(20px)}
.site-header .sh-cta{background:var(--th-navy)!important;color:#fff!important;border:0!important;border-radius:var(--th-pill)!important;padding:10px 18px!important;font-weight:600!important;box-shadow:none!important;transition:background .2s var(--th-ease)}
.site-header .sh-cta:hover{background:var(--th-blue)!important}

/* 4. Search (top strip, press / to focus) ---------------------------------- */
.th-search{position:relative;display:flex;align-items:center;gap:8px;margin:0;background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.25);border-radius:var(--th-pill);padding:4px 6px 4px 12px;transition:background .2s,border-color .2s}
.th-search:focus-within{background:rgba(255,255,255,.2);border-color:rgba(255,255,255,.55)}
.th-search input{width:210px!important;height:auto!important;min-height:0!important;margin:0!important;padding:0!important;background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important;outline:0!important;color:#fff!important;font:400 13px/1.2 var(--th-ui)!important;-webkit-appearance:none;appearance:none}
.th-search input::placeholder{color:rgba(255,255,255,.75)}
.th-search input::-webkit-search-cancel-button{display:none}
.th-search kbd{font:600 11px/1 var(--th-ui);color:#fff;border:1px solid rgba(255,255,255,.35);border-radius:6px;padding:3px 6px}
.th-res{position:absolute;top:calc(100% + 8px);right:0;width:min(340px,80vw);background:#fff;border:1px solid var(--th-line);border-radius:14px;box-shadow:var(--th-sh-up);padding:6px;z-index:1000}
.th-res[hidden]{display:none}
.th-res a{display:block;padding:9px 12px;border-radius:10px;color:var(--th-ink);text-decoration:none;font:500 14px/1.3 var(--th-ui)}
.th-res a small{display:block;margin-top:2px;color:var(--th-muted);font-weight:400;font-size:12px}
.th-res a:hover,.th-res a[aria-selected="true"]{background:var(--th-paper)}
.th-res p{margin:0;padding:10px 12px;color:var(--th-muted);font:400 13px/1.3 var(--th-ui)}
@media (max-width:900px){.th-search{display:none}}

/* 5. Breadcrumbs ----------------------------------------------------------- */
.th-crumbs{border-bottom:1px solid var(--th-line);background:#fff}
.th-crumbs .wrap{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding-top:10px;padding-bottom:10px;font:500 13px/1.3 var(--th-ui);color:var(--th-muted)}
.th-crumbs a{color:var(--th-muted);text-decoration:none}
.th-crumbs a:hover{color:var(--th-blue)}
.th-crumbs .th-sep{opacity:.45}
.th-crumbs [aria-current]{color:var(--th-ink)}

/* 6. Eyebrow labels and section headings ---------------------------------- */
/* every page's own label (.tag, .kicker, ab-kick, bc-kick, ev-kick ...) now
   reads as the same ruled eyebrow */
.th-eyebrow,.th-site main :is(.tag,.kicker,[class$="-kick"],[class*="-kick "]){display:inline-flex!important;align-items:center;gap:12px;margin:0 0 16px;padding:0!important;background:none!important;border:0!important;border-radius:0!important;box-shadow:none!important;color:var(--th-blue)!important;font:600 12px/1 var(--th-ui)!important;letter-spacing:.18em!important;text-transform:uppercase!important}
.th-eyebrow::before,.th-site main :is(.tag,.kicker,[class$="-kick"],[class*="-kick "])::before,.th-eyebrow.th-c::after,.th-site .th-lab-c::after{content:"";flex:none;width:28px;height:1px;background:currentColor;opacity:.6}
.th-eyebrow.th-c{display:flex!important;justify-content:center}
.th-site main :is(.tag,.kicker,[class$="-kick"],[class*="-kick "]).red{color:var(--th-red)!important}
.th-site main .th-lab-dark{color:rgba(255,255,255,.85)!important}
.th-site main .th-lab-dark.red{color:#ff8a98!important}
.th-site .section-head h2,.th-site .nx-h h2{font-size:var(--th-h2)!important;line-height:1.02!important;letter-spacing:-.015em!important;color:var(--th-ink)!important;margin-top:10px!important}
.th-site .section-head .event-sub,.th-site .section-head>p{font-style:normal!important;color:var(--th-muted)!important;font-size:18px!important;line-height:1.55;max-width:56ch}
.th-site .nx-h{align-items:flex-end!important}
.th-site .nx-h a{font-weight:600;text-decoration:none;border-bottom:1px solid rgba(16,73,169,.3);padding-bottom:2px}

/* 7. Sections: generous rhythm, paper alternation ------------------------- */
.th-site main .section{padding-top:var(--th-sec)!important;padding-bottom:var(--th-sec)!important}
.th-site main .section.soft{background:var(--th-paper)!important}

/* 8. Home hero ------------------------------------------------------------- */
.th-site .hero .hero-say{text-align:center}
.th-site .hero h1{font-size:var(--th-h1)!important;line-height:.98!important;letter-spacing:-.02em!important;color:var(--th-ink)!important}
.th-site .hero h1 .h1-top{display:block;font-weight:600;color:var(--th-ink)}
.th-site .hero h1 .red{display:inline-block;padding-right:.06em;font-style:italic;color:var(--th-red)!important;background:linear-gradient(90deg,var(--th-red),var(--th-red-2));-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent}
.th-site .hero .rule{display:none!important}
.th-site .hero .lede{margin-left:auto!important;margin-right:auto!important;max-width:44ch;font-size:clamp(17px,1.5vw,20px)!important;line-height:1.6!important;color:var(--th-muted)!important}
.th-site .hero .hero-actions{justify-content:center!important;gap:12px!important;margin-top:28px!important}

/* 9. Quick-link chips ------------------------------------------------------ */
.th-chips{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:8px 10px;margin-top:22px;font:400 13px/1 var(--th-ui);color:var(--th-muted)}
.th-chips a{background:#fff;border:1px solid var(--th-line);border-radius:var(--th-pill);padding:7px 13px;color:var(--th-ink);font-weight:500;text-decoration:none;transition:border-color .2s,color .2s,transform .2s var(--th-ease)}
.th-chips a:hover{border-color:var(--th-blue);color:var(--th-blue);transform:translateY(-1px)}

/* 10. Buttons: one main (navy), one plain (outline), pill, arrow ---------- */
.th-site a.cta,.th-site button.cta{display:inline-flex;align-items:center;justify-content:center;gap:6px;background:var(--th-navy)!important;color:#fff!important;border:1px solid var(--th-navy)!important;border-radius:var(--th-pill)!important;padding:13px 22px!important;font-weight:600!important;box-shadow:none!important;text-decoration:none!important;transition:background .2s var(--th-ease),border-color .2s,color .2s!important}
.th-site a.cta:not(.alt)::after{content:"\2192";display:inline-block;transition:transform .2s var(--th-ease)}
.th-site a.cta:hover,.th-site button.cta:hover{background:var(--th-blue)!important;border-color:var(--th-blue)!important}
.th-site a.cta:hover::after{transform:translateX(3px)}
.th-site a.cta.alt,.th-site button.cta.alt{background:#fff!important;color:var(--th-ink)!important;border-color:var(--th-line-2)!important}
.th-site a.cta.alt:hover,.th-site button.cta.alt:hover{background:#fff!important;border-color:var(--th-ink)!important}
.th-site a.cta svg{width:16px;height:16px}
/* on dark bands the buttons turn light */
.th-site :is(.sf-cta,.vs-door,.th-on-dark) a.cta:not(.alt),.th-site a.cta.th-on-dark:not(.alt){background:#fff!important;color:var(--th-navy)!important;border-color:#fff!important}
.th-site :is(.sf-cta,.vs-door,.th-on-dark) a.cta:not(.alt):hover,.th-site a.cta.th-on-dark:not(.alt):hover{background:var(--th-saffron)!important;border-color:var(--th-saffron)!important;color:var(--th-ink)!important}
.th-site :is(.sf-cta,.vs-door,.th-on-dark) a.cta.alt,.th-site a.cta.alt.th-on-dark{background:transparent!important;color:#fff!important;border-color:rgba(255,255,255,.45)!important}
.th-site :is(.sf-cta,.vs-door,.th-on-dark) a.cta.alt:hover,.th-site a.cta.alt.th-on-dark:hover{border-color:#fff!important}

/* 11. Cards: hairline, soft depth, lift on hover --------------------------- */
.th-site :is(.nx-card,.cta-box){background:var(--th-card)!important;border:1px solid var(--th-line)!important;border-radius:var(--th-r)!important;box-shadow:var(--th-sh)!important;transition:transform .35s var(--th-ease),box-shadow .35s var(--th-ease)!important}
.th-site :is(.nx-card,.cta-box):hover{transform:translateY(-3px);box-shadow:var(--th-sh-up)!important}
.th-site .nx-card{padding:24px!important}
.th-site .nx-card h3{font-size:20px!important;letter-spacing:-.01em;margin:6px 0 8px!important}
.th-site .nx-card .nx-lane{border-radius:var(--th-pill)!important;font-weight:600!important;letter-spacing:.1em!important}
.th-site .nx-card .nx-go{font-weight:600}

/* 12. Numbered steps (01 / 02 / 03) on "ways to get involved" grids ------- */
.th-site .grid:has(>.cta-box){counter-reset:th}
.th-site .grid>.cta-box{counter-increment:th;position:relative;padding-top:56px!important}
.th-site .grid>.cta-box::before{content:counter(th,decimal-leading-zero);position:absolute;top:22px;left:24px;font:600 12px/1 var(--th-ui);letter-spacing:.14em;color:var(--th-blue)}

/* 13. Punjabi pages: Gurmukhi needs room for its vowel signs, no letter-
   spacing (it breaks the joined letters) and no slant -------------------- */
html[lang="pa"] .th-eyebrow,html[lang="pa"].th-site main :is(.tag,.kicker,[class$="-kick"],[class*="-kick "]){letter-spacing:0!important;font-size:13px!important}
html[lang="pa"].th-site .hero h1{line-height:1.25!important;letter-spacing:0!important}
html[lang="pa"].th-site .hero h1 .red{font-style:normal}
html[lang="pa"].th-site .section-head h2,html[lang="pa"].th-site .nx-h h2{line-height:1.25!important;letter-spacing:0!important}

/* 14. Footer name: "PSS CLUB", oversized, only its top half showing ------- */
.site-footer .th-mark{position:relative;height:calc(var(--th-mark) * .4);margin:0;overflow:hidden;pointer-events:none;-webkit-user-select:none;user-select:none}
.site-footer .th-mark span{display:block;margin-top:-.07em;text-align:center;white-space:nowrap;font:700 var(--th-mark)/.86 var(--th-display);letter-spacing:-.02em;text-transform:uppercase;color:#fff;background:linear-gradient(180deg,#fff 14%,rgba(255,255,255,.32) 56%);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent}
.th-js .site-footer .th-mark span{opacity:0;transform:translateY(30%);transition:opacity 1s var(--th-ease),transform 1.1s var(--th-ease)}
.th-js .site-footer .th-mark.in span{opacity:1;transform:none}

/* 15. Motion with a purpose: headings brighten as you reach them, and the
   numbered steps get a line that fills as you scroll past ---------------- */
.th-site .th-sweep{width:fit-content;max-width:100%;color:var(--th-ink)!important;-webkit-text-fill-color:transparent!important;background:linear-gradient(90deg,var(--th-ink) calc(var(--th-p,1) * 112% - 12%),#b9c2d0 calc(var(--th-p,1) * 112%))!important;-webkit-background-clip:text!important;background-clip:text!important}
.th-site .th-sweep.th-c{margin-left:auto!important;margin-right:auto!important}
.th-site .th-steps{position:relative}
.th-site .th-steps::after{content:"";position:absolute;left:0;right:0;top:-22px;height:2px;border-radius:2px;pointer-events:none;background:linear-gradient(90deg,var(--th-blue) calc(var(--th-p,1) * 100%),var(--th-line) calc(var(--th-p,1) * 100%))}

/* 16. "What's next" cards at the end of inner pages ------------------------ */
.th-next{padding:var(--th-sec) 0;background:var(--th-paper);border-top:1px solid var(--th-line)}
.th-next h2{font:700 var(--th-h2)/1.02 var(--th-display);letter-spacing:-.015em;color:var(--th-ink);margin:10px 0 28px}
.th-next-g{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.th-next-c{position:relative;display:flex;flex-direction:column;gap:6px;min-height:150px;padding:22px 24px 64px;background:#fff;border:1px solid var(--th-line);border-radius:var(--th-r);box-shadow:var(--th-sh);color:var(--th-ink);text-decoration:none;transition:transform .35s var(--th-ease),box-shadow .35s var(--th-ease),border-color .2s}
.th-next-c:hover{transform:translateY(-3px);box-shadow:var(--th-sh-up);border-color:var(--th-line-2)}
.th-next-n{font:600 12px/1 var(--th-ui);letter-spacing:.14em;color:var(--th-blue)}
.th-next-c strong{margin-top:8px;font:700 22px/1.15 var(--th-display);letter-spacing:-.01em}
.th-next-c small{font:400 15px/1.5 var(--th-ui);color:var(--th-muted)}
.th-next-go{position:absolute;left:24px;bottom:20px;display:grid;place-items:center;width:32px;height:32px;border-radius:50%;background:var(--th-paper);color:var(--th-navy);font:600 15px/1 var(--th-ui);transition:background .2s,color .2s,transform .2s var(--th-ease)}
.th-next-c:hover .th-next-go{background:var(--th-navy);color:#fff;transform:translateX(3px)}
@media (max-width:820px){.th-next-g{grid-template-columns:1fr}.th-next-c{min-height:0}}
html[lang="pa"] .th-next h2,html[lang="pa"] .th-next-c strong{line-height:1.3;letter-spacing:0}

/* 17. Articles: a slim bar that stays under the header while you read ----- */
.th-read{position:sticky;top:var(--th-hh,0px);z-index:40;height:0}
.th-read-in{position:absolute;left:0;right:0;top:0;background:var(--th-glass);-webkit-backdrop-filter:saturate(1.8) blur(20px);backdrop-filter:saturate(1.8) blur(20px);border-bottom:1px solid var(--th-line);opacity:0;visibility:hidden;transform:translateY(-8px);transition:opacity .3s var(--th-ease),transform .3s var(--th-ease),visibility 0s .3s}
.th-read.on .th-read-in{opacity:1;visibility:visible;transform:none;transition:opacity .3s var(--th-ease),transform .3s var(--th-ease)}
.th-read .wrap{display:flex;align-items:center;gap:14px;min-height:50px;font:500 14px/1.3 var(--th-ui);color:var(--th-ink)}
.th-read-t{font:600 11px/1 var(--th-ui);letter-spacing:.16em;text-transform:uppercase;color:var(--th-blue);white-space:nowrap}
.th-read-now{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.th-read details{position:relative}
.th-read summary{list-style:none;cursor:pointer;padding:6px 14px;border:1px solid var(--th-line-2);border-radius:var(--th-pill);background:#fff;font:600 13px/1.2 var(--th-ui);white-space:nowrap}
.th-read summary::-webkit-details-marker{display:none}
.th-read ol{position:absolute;right:0;top:calc(100% + 8px);width:min(340px,86vw);margin:0;padding:6px;list-style:none;background:#fff;border:1px solid var(--th-line);border-radius:14px;box-shadow:var(--th-sh-up);counter-reset:thr}
.th-read li a{display:flex;gap:10px;padding:9px 10px;border-radius:10px;color:var(--th-ink);text-decoration:none;font:500 14px/1.35 var(--th-ui)}
.th-read li a::before{counter-increment:thr;content:counter(thr,decimal-leading-zero);padding-top:2px;color:var(--th-blue);font:600 12px/1.35 var(--th-ui)}
.th-read li a:hover,.th-read li a[aria-current="true"]{background:var(--th-paper)}
.th-read-p{position:absolute;left:0;bottom:-1px;width:100%;height:2px;transform-origin:0 50%;transform:scaleX(var(--th-p,0));background:linear-gradient(90deg,var(--th-blue),var(--th-saffron))}
.th-site main h2[id]{scroll-margin-top:calc(var(--th-hh,100px) + 70px)}
html[lang="pa"] .th-read-t{letter-spacing:0;font-size:12px}
@media (max-width:600px){.th-read-t{display:none}}

/* 18. Page photos and supporter details ------------------------------------ */
.th-site .cta-box > .cta-img{display:block;width:100%;height:auto;aspect-ratio:4/3;object-fit:cover;margin:0 0 16px;border-radius:14px}
.th-site .grid > .cta-box:has(> .cta-img){padding-top:20px!important}
.th-site .grid > .cta-box:has(> .cta-img)::before{top:30px;left:34px;z-index:1;padding:5px 9px;border-radius:999px;background:rgba(255,255,255,.92);color:var(--th-navy)}
.err .err-img{display:block;width:min(420px,100%);height:auto;margin:0 auto 22px;border-radius:22px;box-shadow:var(--th-sh-up)}
.th-site :is(.su-cta,.acts,.spx-acts) > a.p{background:var(--th-navy)!important;border-color:var(--th-navy)!important;color:#fff!important}
.th-site :is(.su-cta,.acts,.spx-acts) > a.p:hover{background:var(--th-blue)!important;border-color:var(--th-blue)!important}
.th-site :is(.su-cta,.acts) > a.g{background:#fff!important;border:1px solid var(--th-line-2)!important;color:var(--th-ink)!important}
.th-site :is(.su-cta,.acts) > a.g:hover{border-color:var(--th-ink)!important}
.sup-logo.sup-mono{display:grid!important;place-items:center;width:100%;height:100%;aspect-ratio:1;border-radius:inherit;background:linear-gradient(145deg,var(--th-navy),var(--th-blue));container-type:inline-size}
.sup-logo.sup-mono b{color:var(--th-saffron);font:700 2rem/1 var(--th-display);font-size:42cqi;letter-spacing:-.01em}

/* 19. Motion --------------------------------------------------------------- */
@media (prefers-reduced-motion:reduce){*,*::before,*::after{transition:none!important;animation:none!important;scroll-behavior:auto!important}}