/* SiD global header CSS - regenerated 2026-07-03c. */

/* ====================================================================
   CONTAINMENT — this widget must add ZERO height and never inherit theme styles.
   Blocksy auto-wraps inline style/script tags in a paragraph, and the header's
   .entry-content adds block margins; both inflate the header. We hide those
   wrapper paragraphs, zero the entry-content spacing, and pin the cluster to 40px.
   (Top/bottom breathing room is added via the Blocksy row settings, not here.)
   ==================================================================== */
p:has(> .sm-style), p:has(> .sm-script){display:none !important;margin:0 !important;padding:0 !important;height:0 !important;line-height:0 !important;}
/* C2 cascade fix 2026-07-03: as an early <head> file (uploads/sid/sid-global.css) this CSS no
   longer wins same-specificity ties by position, so Blocksy's content-flow margins must be
   zeroed for header chrome explicitly. Keep in sync with the live sid-global.css. */
[data-header] .ct-header-text{margin-top:0 !important;margin-bottom:0 !important;}
[data-header] .ct-header-text .entry-content > *{margin-top:0 !important;}
[data-header] #audience-tabs-container{margin-top:0 !important;}
/* Retina seam fix 2026-07-03: on hi-DPR displays subpixel rounding leaves a transparent hairline
   between the audience tabs and the menu bar; overlap them by half a device pixel. 1x untouched. */
@media (-webkit-min-device-pixel-ratio: 1.5), (min-resolution: 144dpi){
  [data-header] #audience-tabs-container{transform:translateY(0.5px);}
}
.ct-header-text .entry-content, .ct-header-text .entry-content > p{margin:0 !important;padding:0 !important;}
.sm-wrap, .sm-wrap *{box-sizing:border-box;}

/* ====================================================================
   SiD global UI system (toast / modal) — body-level, used site-wide.
   ==================================================================== */
/* Clears the sticky header, whose band ends at y~71 on desktop. At top:18px the stack sat
   inside it — tolerable when the toast was a solid green block, wrong now that it is white
   on a white header. On phones it goes full-width; 340px in a 375px viewport is cramped. */
.sid-ui-toasts{position:fixed;top:86px;right:18px;z-index:2147483600;display:flex;flex-direction:column;gap:10px;max-width:340px;font-family:'Rubik',-apple-system,sans-serif;}
@media(max-width:780px){.sid-ui-toasts{top:74px;left:12px;right:12px;max-width:none;}}
.sid-ui-toast{display:flex;gap:12px;align-items:flex-start;border-radius:12px;padding:14px 38px 14px 14px;background:#fff;color:#213631;border:1.5px solid rgba(17,24,40,.14);background-clip:padding-box;box-shadow:0 10px 30px rgba(0,0,0,.22);position:relative;opacity:0;transform:translateX(20px);transition:opacity .2s ease,transform .2s ease;}
.sid-ui-toast.show{opacity:1;transform:translateX(0);}
/* The surface is white and the status colour lives in the badge. That is not decoration:
   the signature check is defined as WHITE on an ACTION-GREEN circle, so on a green toast its
   circle would vanish (1.00:1) and the mark would have to be redrawn. White also lifts the
   body text from 4.11:1 (the old terra toast, below AA) to 12.83:1. */
.sid-ui-toast-ic{width:32px;height:32px;border-radius:50%;flex:none;display:flex;align-items:center;justify-content:center;}
.sid-ui-toast-ic svg{width:18px;height:18px;}
.sid-ui-toast-ic polyline,.sid-ui-toast-ic circle,.sid-ui-toast-ic path{fill:none;stroke:#fff;stroke-width:3;stroke-linecap:round;stroke-linejoin:round;}
.sid-ui-toast--green .sid-ui-toast-ic{background:#3a7a1c;}
.sid-ui-toast--terra .sid-ui-toast-ic{background:#C2614E;}
/* The signature (catalogue ch.9): the check draws itself, 450ms ease-out. Completions only —
   a success toast IS a completion, which is why it is allowed here and nowhere new. */
.sid-ui-toast--green .sid-ui-toast-ic polyline{stroke-dasharray:30;stroke-dashoffset:30;animation:sid-ui-draw .45s ease-out .05s forwards;}
/* Its mirror for failure: the ring closes first, then the stem lands. Same 450ms envelope,
   deliberately not the same gesture — success and failure should not feel alike. */
.sid-ui-toast--terra .sid-ui-toast-ic circle{stroke-dasharray:63;stroke-dashoffset:63;animation:sid-ui-draw2 .35s ease-out .05s forwards;}
.sid-ui-toast--terra .sid-ui-toast-ic path{opacity:0;animation:sid-ui-pop .18s ease-out .32s forwards;}
@keyframes sid-ui-draw{to{stroke-dashoffset:0;}}
@keyframes sid-ui-draw2{to{stroke-dashoffset:0;}}
@keyframes sid-ui-pop{to{opacity:1;}}
@media(prefers-reduced-motion:reduce){.sid-ui-toast-ic polyline,.sid-ui-toast-ic circle,.sid-ui-toast-ic path{animation-duration:.01ms!important;animation-delay:0s!important;}}
.sid-ui-toast-body{flex:1;min-width:0;}
.sid-ui-toast-title{font-weight:800;font-size:.9rem;margin-bottom:2px;color:#213631;}
.sid-ui-toast-msg{font-size:.85rem;line-height:1.45;font-weight:500;color:#374151;}
.sid-ui-toast-action{display:inline-block;margin-top:8px;font-size:.8rem;font-weight:700;color:#3a7a1c;text-decoration:underline;cursor:pointer;}
.sid-ui-toast-action:hover{color:#2f6316;}
.sid-ui-toast-x{position:absolute;top:8px;right:9px;background:none;border:none;color:#6b7280;font-size:1.2rem;line-height:1;cursor:pointer;padding:2px 5px;}
.sid-ui-toast-x:hover{color:#374151;}

.sid-ui-modal-back{position:fixed;inset:0;z-index:2147483601;background:rgba(17,24,39,.55);display:flex;align-items:center;justify-content:center;padding:22px;font-family:'Rubik',-apple-system,sans-serif;opacity:0;transition:opacity .15s ease;}
.sid-ui-modal-back.show{opacity:1;}
.sid-ui-modal{background:#fff;border-radius:18px;max-width:440px;width:100%;padding:26px;box-shadow:0 24px 70px rgba(0,0,0,.35);position:relative;}
.sid-ui-modal-x{position:absolute;top:14px;right:16px;background:none;border:none;font-size:1.5rem;line-height:1;color:#6b7280;cursor:pointer;}
.sid-ui-modal-x:hover{color:#374151;}
.sid-ui-modal-title{font-size:1.15rem;font-weight:800;color:#111;margin:0 0 10px;padding-right:20px;}
.sid-ui-modal-body{font-size:.92rem;line-height:1.6;color:#374151;}
.sid-ui-modal-actions{display:flex;gap:10px;justify-content:flex-end;margin-top:22px;flex-wrap:wrap;}
.sid-ui-btn{font-family:inherit;font-size:.88rem;font-weight:700;border-radius:100px;padding:10px 20px;cursor:pointer;border:1.5px solid transparent;}
.sid-ui-btn--primary{background:#3a7a1c;color:#fff;}
.sid-ui-btn--primary:hover{background:#2f6316;}
.sid-ui-btn--danger{background:#a94f3e;color:#fff;}
.sid-ui-btn--danger:hover{background:#8f3d30;}
.sid-ui-btn--ghost{background:#fff;color:#374151;border-color:#e5e7eb;}
.sid-ui-btn--ghost:hover{background:#f9fafb;}

/* --------------------------------------------------------------------
   SiD.state - the canon empty/error block, in ONE place (2026-07-28).
   Illustration in the 185px band above the copy, one line, real next step.
   -------------------------------------------------------------------- */
.sid-ui-state-card{width:100%;background:#fff;border:1.5px solid #e5e7eb;border-radius:20px;overflow:hidden;}
.sid-ui-state{display:flex;flex-direction:column;align-items:center;text-align:center;padding:30px 20px 34px;font-family:'Rubik',-apple-system,BlinkMacSystemFont,sans-serif;}
.sid-ui-state *{box-sizing:border-box;}
.sid-ui-state-ill{width:185px;height:auto;max-width:100%;margin:0 0 12px;display:block;}
.sid-ui-state-t{font-size:1.05rem;font-weight:700;color:#213631;margin:0 0 5px;line-height:1.3;}
.sid-ui-state-d{font-size:.875rem;color:#6b7280;line-height:1.55;margin:0 0 18px;max-width:380px;}
.sid-ui-state-actions{display:flex;flex-wrap:wrap;gap:9px;justify-content:center;}
.sid-ui-state .sid-ui-btn{font-size:.875rem;padding:10px 18px;text-decoration:none;display:inline-flex;align-items:center;gap:7px;}
.sid-ui-state .sid-ui-btn:active{transform:scale(.98);}
@media(max-width:640px){.sid-ui-state-ill{width:160px;}}

/* ====================================================================
   Header menu
   ==================================================================== */
.sm-wrap{font-family:'Rubik',-apple-system,BlinkMacSystemFont,sans-serif;display:flex;align-items:center;justify-content:flex-end;height:40px;max-height:40px;padding:0;margin:0;line-height:1;pointer-events:none;}
/* Only the interactive cluster catches clicks; the full-width wrapper stays click-through so it never blocks other header links. */
.sm-wrap .sm-icons,.sm-wrap .sm-login-btn{pointer-events:auto;}

/* Green pill login button — matches the site's "Find Your Sport" button */
.sm-login-btn{display:inline-flex;align-items:center;gap:9px;background:#3a7a1c;color:#fff;border:none;border-radius:40px;padding:6px 6px 6px 18px;height:40px;box-sizing:border-box;font-family:'Rubik',-apple-system,sans-serif;font-size:.9rem;font-weight:700;line-height:1;text-decoration:none;transition:background .15s;}
.sm-login-btn:hover{background:#2f6316;color:#fff;}
.sm-login-ico{width:28px;height:28px;border-radius:50%;background:#fff;display:flex;align-items:center;justify-content:center;flex-shrink:0;}
.sm-login-ico svg{width:14px;height:14px;color:#3a7a1c;}

.sm-icons{display:flex;align-items:center;gap:2px;}
.sm-ico-wrap{position:relative;}
.sm-ico-wrap[data-pop="user"]{margin-left:8px;}
/* Plain (no-circle) icons for dashboard / messages / notifications */
.sm-ico{width:40px;height:40px;border-radius:50%;background:transparent;border:none;cursor:pointer;display:flex;align-items:center;justify-content:center;color:#374151;transition:color .15s;padding:0;}
.sm-ico:hover{color:#111;}
.sm-ico.is-active{color:#3c6e1f;}
.sm-ico svg{width:23px;height:23px;}
/* User icon = green circle with white initial (or photo) */
.sm-ico--user{background:#3a7a1c;color:#fff;overflow:hidden;}
.sm-ico--user:hover{background:#2f6316;color:#fff;}
.sm-ico--user img{width:100%;height:100%;object-fit:cover;}
.sm-ico--user .sm-init{font-weight:700;font-size:.95rem;color:#fff;}
.sm-ico--user.is-active{background:#2f6316;color:#fff;}
.sm-badge{position:absolute;top:6px;right:6px;width:9px;height:9px;border-radius:50%;background:#dc2626;border:2px solid #fff;display:none;box-sizing:content-box;}
.sm-badge.show{display:block;}

/* Hover label (tooltip) under each icon / the avatar */
.sm-tip{position:absolute;top:calc(100% + 7px);left:50%;transform:translateX(-50%) translateY(-3px);background:#111827;color:#fff;font-family:'Rubik',-apple-system,sans-serif;font-size:11px;font-weight:600;line-height:1;white-space:nowrap;padding:5px 8px;border-radius:6px;opacity:0;visibility:hidden;pointer-events:none;transition:opacity .12s ease,transform .12s ease;z-index:2147483400;box-shadow:0 4px 14px rgba(0,0,0,.2);}
.sm-tip::before{content:"";position:absolute;bottom:100%;left:50%;transform:translateX(-50%);border:4px solid transparent;border-bottom-color:#111827;}
.sm-ico-wrap:hover .sm-tip{opacity:1;visibility:visible;transform:translateX(-50%) translateY(0);}
.sm-ico-wrap.is-open .sm-tip{opacity:0!important;visibility:hidden!important;}
@media(max-width:600px){.sm-tip{display:none;}}

/* Mobile: white icons, hard-right against the screen edge */
@media(max-width:600px){
  .sm-wrap{padding-top:0;width:100%;justify-content:flex-end;}
  .sm-icons{margin-right:0;padding-right:6px;}
  .sm-ico{width:38px;height:38px;color:#fff;}
  .sm-ico:hover,.sm-ico.is-active{color:#fff;}
  .sm-ico svg{width:21px;height:21px;}
  .sm-ico-wrap[data-pop="user"]{margin-left:6px;}
}

/* Dropdown panel */
.sm-pop{position:absolute;top:calc(100% + 10px);right:0;width:330px;max-width:88vw;background:#fff;border:1px solid #e5e7eb;border-radius:16px;box-shadow:0 18px 50px rgba(0,0,0,.16);opacity:0;transform:translateY(-6px);pointer-events:none;transition:opacity .14s ease,transform .14s ease;z-index:2147483500;overflow:hidden;}
.sm-ico-wrap.is-open .sm-pop{opacity:1;transform:translateY(0);pointer-events:auto;}
.sm-pop-hd{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:14px 16px;border-bottom:1px solid #f3f4f6;}
.sm-pop-hd h4{margin:0;font-size:1rem;font-weight:800;color:#111;}
.sm-pop-hd a,.sm-pop-hd button{font-size:.76rem;font-weight:700;color:#3a7a1c;background:none;border:none;cursor:pointer;text-decoration:none;font-family:inherit;}
.sm-pop-hd a:hover,.sm-pop-hd button:hover{text-decoration:underline;}
.sm-pop-scroll{max-height:380px;overflow-y:auto;}
.sm-pop-foot{padding:11px 16px;border-top:1px solid #f3f4f6;text-align:center;}
.sm-pop-foot a{font-size:.84rem;font-weight:700;color:#3a7a1c;text-decoration:none;}
.sm-pop-foot a:hover{text-decoration:underline;}
.sm-empty{padding:28px 18px;text-align:center;color:#6b7280;font-size:.85rem;}

/* Dashboard sections */
.sm-eyebrow{font-size:.64rem;font-weight:800;text-transform:uppercase;letter-spacing:.5px;color:#6b7280;padding:12px 16px 4px;}
.sm-link{display:flex;align-items:center;gap:10px;padding:9px 16px;font-size:.88rem;color:#374151;text-decoration:none;font-weight:500;}
.sm-link:hover{background:#f9fafb;color:#111;}
.sm-link svg{width:16px;height:16px;color:#6b7280;flex-shrink:0;}
.sm-divider{border:none;border-top:1px solid #f3f4f6;margin:6px 0;}

/* User header */
.sm-user-hd{display:flex;align-items:center;gap:11px;padding:16px;}
.sm-user-av{width:44px;height:44px;border-radius:50%;overflow:hidden;flex-shrink:0;background:#3a7a1c;display:flex;align-items:center;justify-content:center;color:#fff;font-weight:700;}
.sm-user-av img{width:100%;height:100%;object-fit:cover;}
.sm-user-meta{min-width:0;}
.sm-user-name{font-weight:700;color:#111;font-size:.92rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.sm-user-email{font-size:.78rem;color:#6b7280;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}

/* Conversation / notification row */
.sm-row{display:flex;align-items:flex-start;gap:11px;padding:11px 16px;text-decoration:none;color:inherit;cursor:pointer;}
.sm-row:hover{background:#f9fafb;}
.sm-row--unread{background:#f3faee;}
.sm-row-av{width:40px;height:40px;border-radius:50%;overflow:hidden;flex-shrink:0;background:#3a7a1c;display:flex;align-items:center;justify-content:center;color:#fff;font-weight:700;font-size:.95rem;}
.sm-row-av img{width:100%;height:100%;object-fit:cover;}
.sm-row-body{flex:1;min-width:0;}
.sm-row-top{display:flex;justify-content:space-between;gap:8px;}
.sm-row-name{font-size:.86rem;font-weight:600;color:#111;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.sm-row--unread .sm-row-name{font-weight:800;}
.sm-row-time{font-size:.7rem;color:#6b7280;flex-shrink:0;}
.sm-row-text{font-size:.79rem;color:#6b7280;line-height:1.4;margin-top:1px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;}
.sm-row--unread .sm-row-text{color:#374151;}
.sm-row-dot{width:9px;height:9px;border-radius:50%;background:#3a7a1c;flex-shrink:0;margin-top:6px;}


/* ====================================================================
   SiD.upload — the one file-upload control (SPEC §3.20)
   Replaces 39 hand-rolled inputs across 21 widgets. Canon already named the
   affordance: "dashed-ring upload target (2px dashed #d1d5db)".
   States: idle · dragging · uploading · error · done.
   ==================================================================== */
.sid-up{font-family:'Rubik',-apple-system,BlinkMacSystemFont,sans-serif;}
.sid-up-zone{
    display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;
    padding:22px 18px;border-radius:12px;border:2px dashed #d1d5db;background:#f9fafb;
    cursor:pointer;text-align:center;transition:border-color .15s ease,background .15s ease;
}
.sid-up-zone:hover{border-color:#55a630;background:#fff;}
/* The whole zone is the control, so it takes the site's focus ring, not a browser outline. */
.sid-up-zone:focus-visible{outline:2.5px solid #166534;outline-offset:2px;}
.sid-up.is-drag .sid-up-zone{border-color:#3a7a1c;background:#f0fdf4;border-style:solid;}
.sid-up.is-busy .sid-up-zone{cursor:progress;border-style:solid;border-color:#e5e7eb;}
.sid-up.is-error .sid-up-zone{border-color:#C2614E;background:#fef2f2;}
.sid-up-ic{width:34px;height:34px;color:#6b7280;}
.sid-up.is-drag .sid-up-ic{color:#3a7a1c;}
.sid-up.is-error .sid-up-ic{color:#C2614E;}
.sid-up-label{font-size:.9rem;font-weight:700;color:#213631;}
.sid-up-hint{font-size:.78rem;color:#6b7280;}
.sid-up-input{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none;}
/* Progress: canon's 8px pill track. The width eases .2s rather than the 500ms step-progress
   contract — a byte counter updates continuously, and 500ms would visibly trail the upload. */
.sid-up-prog{height:8px;border-radius:100px;background:#e5e7eb;overflow:hidden;margin-top:10px;display:none;}
.sid-up.is-busy .sid-up-prog{display:block;}
.sid-up-prog>i{display:block;height:100%;border-radius:100px;background:#3a7a1c;width:0;transition:width .2s ease;}
.sid-up-msg{margin-top:8px;font-size:.8rem;line-height:1.45;display:none;}
.sid-up.is-error .sid-up-msg{display:block;color:#b91c1c;}
.sid-up-files{display:flex;flex-wrap:wrap;gap:10px;margin-top:12px;}
.sid-up-file{position:relative;width:72px;}
.sid-up-thumb{width:72px;height:72px;border-radius:10px;object-fit:cover;background:#f3f4f6;border:1px solid rgba(17,24,40,.14);display:block;}
.sid-up-name{font-size:.68rem;color:#6b7280;margin-top:4px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.sid-up-del{position:absolute;top:-6px;right:-6px;width:22px;height:22px;border-radius:50%;border:none;background:#213631;color:#fff;font-size:.85rem;line-height:1;cursor:pointer;display:flex;align-items:center;justify-content:center;padding:0;}
.sid-up-del:hover{background:#C2614E;}
/* Done reuses the signature — an upload that lands is a completion. */
.sid-up-ok{position:absolute;inset:0;border-radius:10px;background:rgba(58,122,28,.82);display:flex;align-items:center;justify-content:center;}
.sid-up-ok svg{width:26px;height:26px;}
.sid-up-ok polyline{fill:none;stroke:#fff;stroke-width:3;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:30;stroke-dashoffset:30;animation:sid-ui-draw .45s ease-out .05s forwards;}

/* ── Avatar variant (shape:'avatar') ──────────────────────────────────
   Canon names a SECOND upload affordance next to the panel: the 96px dashed
   ring (§2.10, WIDGET_CHECK "Photo ring"). It is what the account page and the
   two buddy-photo forms use — migration batch 3, "all avatar-shaped". Without
   it those three either stay hand-rolled or lose a documented affordance, so
   the shape is opt-in on the one control rather than a fourth copy. */
.sid-up--avatar{display:inline-block;position:relative;line-height:0;flex-shrink:0;}
/* position:relative is load-bearing: without it the preview layer anchors to the root
   instead of the ring and the photo renders as an unclipped square. */
.sid-up--avatar .sid-up-zone{position:relative;width:96px;height:96px;padding:0;gap:2px;border-radius:50%;overflow:hidden;}
.sid-up--avatar .sid-up-label,.sid-up--avatar .sid-up-hint{display:none;}  /* no room in a 96px circle — the aria-label carries both */
.sid-up--avatar .sid-up-files{display:none;}                               /* the ring IS the thumbnail */
.sid-up-av{position:absolute;inset:0;}
.sid-up-av img{width:100%;height:100%;object-fit:cover;display:block;}
/* Empty ring = the avatar the rest of the product would show for this person: the
   watermark person on the identity gradient, never initials (§3.23). An upload target
   that shows a placeholder nobody else sees teaches the wrong thing. */
.sid-up-wm{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;overflow:hidden;background:linear-gradient(135deg,#213631,#55a630);}
/* Sized and toned to match the fallback the header widgets already ship (36px person in a
   68px circle, white at ~.75) so the ring previews the avatar people will actually see. */
.sid-up-wm svg{width:50%;height:50%;color:rgba(255,255,255,.78);}
.sid-up--avatar.has-photo .sid-up-wm{display:none;}
/* The affordance rides on top on hover and focus, so at rest the ring is honest about
   what the photo actually is. */
.sid-up--avatar .sid-up-zone::after{content:'';position:absolute;inset:0;background:rgba(17,24,40,.45);opacity:0;transition:opacity .15s ease;z-index:1;}
.sid-up--avatar .sid-up-ic{position:relative;z-index:2;width:26px;height:26px;color:#fff;opacity:0;transition:opacity .15s ease;}
.sid-up--avatar .sid-up-zone:hover::after,.sid-up--avatar .sid-up-zone:focus-visible::after,
.sid-up--avatar.is-drag .sid-up-zone::after{opacity:1;}
.sid-up--avatar .sid-up-zone:hover .sid-up-ic,.sid-up--avatar .sid-up-zone:focus-visible .sid-up-ic,
.sid-up--avatar.is-drag .sid-up-ic{opacity:1;color:#fff;}
/* Progress rides the bottom edge of the ring, clipped by it, so a 200ms encode
   cannot shift the row it is mounted in. */
.sid-up--avatar .sid-up-prog{position:absolute;left:0;right:0;bottom:0;height:6px;margin:0;border-radius:0;z-index:2;}
.sid-up--avatar .sid-up-ok{border-radius:50%;transition:opacity .35s ease;}
/* Mounted inline — beside a name and a button — the reason needs width the ring
   has not got. messageTarget puts it in the copy next to it instead. */
.sid-up-msg--out{display:none;margin-top:6px;font-size:.8rem;font-weight:600;line-height:1.45;color:#991b1b;}
@media(prefers-reduced-motion:reduce){.sid-up-ok polyline{animation-duration:.01ms!important;}.sid-up-prog>i{transition-duration:.01ms!important;}}