/* Club page (sc_club) — scoped component styles. Layout/spacing live in utility.css. */

.sc-club-layout { display: flex; flex-direction: column; }
/* Mobile: flatten both columns so officers can sit above How to join (wireframe order). */
.sc-club-identity, .sc-club-main { display: contents; }
.sc-club-officers-sec { order: 1; margin-bottom: 20px; }
.sc-club-join-wrap { order: 2; }
.sc-club-gallery-sec { order: 3; margin-bottom: 20px; }
.sc-club-builds-sec { order: 4; }
.sc-club-cover { height: 210px; background: linear-gradient(135deg, #5a1414, #2a0d0d 55%, #1a1a1a); }
.sc-club-cover.sc-lazy-wrapper { background: #1b1b1b; }
.sc-club-logo {
    width: 96px; height: 96px; margin: -48px auto 0;
    background: #2a2a2a; border: 3px solid #121212; font-size: 26px;
}
.sc-club-name { font-size: 30px; }
.sc-club-eyebrow { font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em; color: rgba(255, 255, 255, 0.5); }
.sc-club-head { text-align: center; }
.sc-club-meta { justify-content: center; }
.sc-club-bio { color: rgba(255, 255, 255, 0.72); max-width: 330px; margin-left: auto; margin-right: auto; }
.sc-club-meta__loc { gap: 4px; }
.sc-club-meta__loc svg { flex-shrink: 0; }
.sc-club-social { width: 36px; height: 36px; background: #1a1a1a; border: 1px solid rgba(255, 255, 255, 0.09); color: rgba(255, 255, 255, 0.8); transition: border-color 0.15s ease, background-color 0.15s ease; }
.sc-club-social:hover { border-color: rgba(255, 255, 255, 0.22); background: #212121; }
/* Stat strip — same treatment as the premium garage mobile stats */
.sc-club-stats { border-top: 1px solid rgba(255, 255, 255, 0.08); border-bottom: 1px solid rgba(255, 255, 255, 0.08); padding: 10px 0; }
.sc-club-stat { padding: 8px 0; }
.sc-club-stat + .sc-club-stat { border-left: 1px solid rgba(255, 255, 255, 0.08); }
.sc-club-stat__value { font-size: 2.2rem; font-weight: 700; color: #fff; line-height: 1.1; }
.sc-club-btn { white-space: nowrap; font-size: 13px; height: 44px; padding-top: 0; padding-bottom: 0; }
/* How to join — subtle red-tinted card (no glow) */
.sc-club-join {
    background: linear-gradient(180deg, rgba(213, 32, 32, 0.07) 0%, #151515 70%);
    border: 1px solid rgba(213, 32, 32, 0.2);
}
.sc-club-tip { border-top-color: rgba(255, 255, 255, 0.08); }
/* How to join — vertical stepper */
.sc-club-steps { list-style: none; margin: 0; padding: 0; }
.sc-club-step { padding-bottom: 10px; }
.sc-club-step:last-child { padding-bottom: 0; }
.sc-club-step::before {
    content: ""; position: absolute; left: 11.5px; top: 26px; bottom: 2px; width: 1px;
    background: linear-gradient(180deg, rgba(213, 32, 32, 0.5), rgba(213, 32, 32, 0.15));
}
.sc-club-step:last-child::before { display: none; }
.sc-club-step-num {
    width: 24px; height: 24px; font-size: 11px; color: #f1c9c9;
    background: rgba(213, 32, 32, 0.16); border: 1px solid rgba(213, 32, 32, 0.4);
}
.sc-club-step-text { padding-top: 3px; color: rgba(255, 255, 255, 0.85); }
.sc-club-ig { background: rgba(213, 32, 32, 0.12); border-color: rgba(213, 32, 32, 0.32); height: 44px; padding-top: 0; padding-bottom: 0; font-size: 13px; }
.sc-club-ig:hover { background: rgba(213, 32, 32, 0.2); border-color: rgba(213, 32, 32, 0.45); }
.sc-club-ig__out { opacity: 0.6; }
.sc-club-tip svg { margin-top: 1px; }

/* Officers rail — starts flush with the container's left edge, overflows past its right edge */
.sc-club-rail { overflow-x: auto; margin: 0 calc(50% - 50vw) 0 0; padding: 0 16px 2px 0; scrollbar-width: none; }
.sc-club-rail::-webkit-scrollbar { display: none; }
.sc-club-rail { scroll-snap-type: x proximity; scroll-padding-left: 0; }
@media (max-width: 731px) { .sc-club-rail { margin-left: -16px; padding-left: 16px; scroll-padding-left: 16px; } }
.sc-club-officer { width: 250px; scroll-snap-align: start; }
.sc-club-officer__thumb { background: #2a2a2a; box-shadow: 0 0 0 2px #151515; }
.sc-club-officer__av { background: #2a2a2a; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1); }
.sc-club-officer.is-lead { border-color: rgba(213, 32, 32, 0.3); }
.sc-club-officer.is-lead .sc-club-officer__av { box-shadow: 0 0 0 2px #d52020; }
.sc-club-officer__role { color: rgba(255, 255, 255, 0.5); }
.sc-club-officer.is-lead .sc-club-officer__role { color: #e5484d; }

/* Gallery — hero + tiles. Layout adapts to how many photos exist (1–4). */
.sc-club-gal { display: grid; gap: 6px; }
.sc-club-gtile { background: #1b1b1b; border-radius: 8px; display: block; width: 100%; }
.sc-club-gtile__img { transition: opacity 0.2s ease-in; }
.sc-club-gal.n-1 { grid-template-columns: 1fr; }
.sc-club-gal.n-1 .sc-club-gtile { aspect-ratio: 16 / 10; }
.sc-club-gal.n-2 { grid-template-columns: 1fr 1fr; }
.sc-club-gal.n-2 .sc-club-gtile { aspect-ratio: 4 / 3; }
.sc-club-gal.n-3 { grid-template-columns: 1fr 1fr; }
.sc-club-gal.n-4 { grid-template-columns: 1fr 1fr 1fr; }
.sc-club-gal.n-3 .sc-club-gtile, .sc-club-gal.n-4 .sc-club-gtile { aspect-ratio: 1; }
.sc-club-gal.n-3 .sc-club-gtile:first-child { grid-column: 1 / 3; aspect-ratio: 16 / 10; }
.sc-club-gal.n-4 .sc-club-gtile:first-child { grid-column: 1 / 4; aspect-ratio: 16 / 10; }
.sc-club-gtile:focus-visible { outline: 2px solid rgba(255, 255, 255, 0.6); outline-offset: 2px; }
.sc-club-gal--edit .sc-club-gtile { position: relative; overflow: hidden; cursor: pointer; }
.sc-club-gal--edit img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sc-club-gal--edit .sc-club-gtile.is-loading::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, #262626 30%, #333 50%, #262626 70%); background-size: 200% 100%; animation: sc-club-shimmer 1.1s linear infinite; }
.sc-club-addphoto { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; margin-top: 8px; padding: 12px; background: transparent; border: 1px dashed rgba(255, 255, 255, 0.25); border-radius: 8px; color: rgba(255, 255, 255, 0.7); font-size: 13px; font-weight: 600; cursor: pointer; }
.sc-club-addphoto:hover { border-color: rgba(255, 255, 255, 0.45); color: #fff; }
.sc-club-addphoto.is-full { border-style: solid; border-color: rgba(255, 255, 255, 0.1); color: rgba(255, 255, 255, 0.45); cursor: default; }
.sc-club-addphoto.is-full:hover { border-color: rgba(255, 255, 255, 0.1); color: rgba(255, 255, 255, 0.45); }
.sc-club-addphoto.is-empty { margin-top: 0; aspect-ratio: 16 / 7; flex-direction: column; }
.sc-club-gal-empty { aspect-ratio: 16 / 7; background: transparent; border: 1px dashed rgba(255, 255, 255, 0.22); color: rgba(255, 255, 255, 0.6); }
.sc-club-gal-empty:hover { border-color: rgba(255, 255, 255, 0.4); color: #fff; }

/* Edit gallery sheet */
.sc-club-gslots { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sc-club-gslot { position: relative; aspect-ratio: 1; border-radius: 8px; overflow: hidden; background: #151515; border: 1px solid rgba(255, 255, 255, 0.1); padding: 0; cursor: pointer; color: #fff; }
.sc-club-gslot--add { border: 1px dashed rgba(255, 255, 255, 0.25); display: grid; place-items: center; align-content: center; gap: 6px; color: rgba(255, 255, 255, 0.6); font-size: 12px; }
.sc-club-gslot--add:hover { border-color: rgba(255, 255, 255, 0.45); color: #fff; }
.sc-club-gslot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sc-club-gslot__rm:hover { background: rgba(213, 32, 32, 0.8); }
.sc-club-gslot.is-loading::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, #262626 30%, #333 50%, #262626 70%); background-size: 200% 100%; animation: sc-club-shimmer 1.1s linear infinite; }
@keyframes sc-club-shimmer { to { background-position: -200% 0; } }
.sc-club-reframe { background: #1e1e1e; z-index: 6; border-radius: inherit; transform: translateY(100%); visibility: hidden; transition: transform 360ms cubic-bezier(0.22, 1, 0.36, 1), visibility 0s linear 360ms; }
.sc-club-reframe.is-open { transform: translateY(0); visibility: visible; transition: transform 360ms cubic-bezier(0.22, 1, 0.36, 1), visibility 0s; }
#scClubGallerySheet .sc-club-edit__dialog { min-height: min(80dvh, 680px); }
@media (prefers-reduced-motion: reduce) { .sc-club-reframe, .sc-club-reframe.is-open { transition: none; } }
.sc-club-reframe__stage { overflow-y: auto; }
.sc-club-reframe__foot { padding-bottom: max(16px, env(safe-area-inset-bottom)); background: #1e1e1e; }
.sc-club-reframe__frame { width: min(100%, calc(52dvh * var(--sc-reframe-ar, 1))); aspect-ratio: var(--sc-reframe-ar, 1); background: #151515; touch-action: none; cursor: grab; }
.sc-club-reframe__frame:active { cursor: grabbing; }
.sc-club-reframe__img { user-select: none; -webkit-user-drag: none; pointer-events: none; }
.sc-club-range { -webkit-appearance: none; appearance: none; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, 0.18); outline: none; }
/* Pill-shaped thumb (long rounded rectangle) */
.sc-club-range::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 34px; height: 20px; border-radius: 10px; background: #fff; border: 0; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.5); }
.sc-club-range::-moz-range-thumb { width: 34px; height: 20px; border-radius: 10px; background: #fff; border: 0; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.5); }

@media (prefers-reduced-motion: reduce) { .sc-club-gslot.is-loading::after { animation: none; } }

/* Sheets (share + edit) — same skeleton as the featured-mods sheet:
   pinned bottom sheet < 992px (slide in/out, finger-tracked drag via
   --sc-club-drag-y, snap-back), centered modal on desktop. */
.sc-club-share__url, .sc-club-input { box-sizing: border-box; max-width: 100%; background: #151515; border: 1px solid rgba(255, 255, 255, 0.1); color: #fff; padding: 8px 12px; }
.sc-club-input:focus { outline: none; border-color: rgba(255, 255, 255, 0.3); }
.sc-club-handle { position: relative; z-index: 5; flex-shrink: 0; height: 22px; cursor: grab; touch-action: none; }
.sc-club-grab { position: absolute; top: 9px; left: 0; right: 0; width: 40px; height: 4px; margin: 0 auto; border-radius: 2px; background: rgba(255, 255, 255, 0.32); }
.sc-club-affix { background: #151515; border: 1px solid rgba(255, 255, 255, 0.1); overflow: hidden; }
.sc-club-affix:focus-within { border-color: rgba(255, 255, 255, 0.3); }
.sc-club-affix__icon { width: 44px; align-self: stretch; background: rgba(255, 255, 255, 0.06); border-right: 1px solid rgba(255, 255, 255, 0.08); color: rgba(255, 255, 255, 0.75); }
.sc-club-affix__pre { padding: 0 0 0 12px; color: rgba(255, 255, 255, 0.45); }
.sc-club-affix__input { background: transparent; border: 0; color: #fff; padding: 11px 12px 11px 2px; outline: none; }
.sc-club-affix__icon + .sc-club-affix__input { padding-left: 12px; }
.sc-club-chip { background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); color: rgba(255, 255, 255, 0.7); border-radius: 99px; padding: 5px 12px; }
.sc-club-chip:hover, .sc-club-chip.is-on { background: rgba(213, 32, 32, 0.16); border-color: rgba(213, 32, 32, 0.45); color: #fff; }
.sc-club-year__btn { cursor: pointer; padding: 0; min-height: 44px; color: #fff; font: inherit; }
.sc-club-year__btn[aria-expanded="true"] { border-color: rgba(255, 255, 255, 0.3); }
.sc-club-year__label { padding: 0 12px; color: #fff; }
.sc-club-year__label.is-empty { color: rgba(255, 255, 255, 0.4); }
.sc-club-year__chev { margin-right: 12px; color: rgba(255, 255, 255, 0.5); transition: transform 0.15s ease; }
.sc-club-year__btn[aria-expanded="true"] .sc-club-year__chev { transform: rotate(180deg); }
.sc-club-year__panel {
    position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 20;
    background: #262626; border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 10px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55); padding: 10px;
    max-height: 232px; overflow-y: auto; overscroll-behavior: contain;
}
.sc-club-year__panel[hidden] { display: none; }
.sc-club-year__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.sc-club-year__opt { border: 0; border-radius: 8px; padding: 9px 0; background: rgba(255, 255, 255, 0.05); color: rgba(255, 255, 255, 0.85); font-size: 13px; cursor: pointer; }
.sc-club-year__opt:hover { background: rgba(255, 255, 255, 0.1); }
.sc-club-year__opt.is-on { background: rgba(213, 32, 32, 0.28); color: #fff; font-weight: 600; box-shadow: inset 0 0 0 1px rgba(213, 32, 32, 0.6); }
.sc-club-year__clear { display: block; width: 100%; margin-top: 8px; padding: 8px 0; border: 0; background: transparent; color: rgba(255, 255, 255, 0.55); font-size: 12px; cursor: pointer; }
.sc-club-bio-count { position: absolute; right: 10px; bottom: 8px; pointer-events: none; }
.sc-club-edit__body { overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; }
.sc-club-edit__body::-webkit-scrollbar { display: none; }
.sc-club-edit__pad { height: 24px; }
.sc-club-edit__save { color: #e5484d; }
.sc-club-edit__save[disabled] { opacity: 0.5; }
.sc-club-edit__error { color: #ff8b8b; background: rgba(213, 32, 32, 0.12); border: 1px solid rgba(213, 32, 32, 0.35); border-radius: 10px; padding: 10px 12px; }

/* Add-row lists (steps / officers / builds) */
.sc-club-row__num { width: 24px; height: 24px; font-size: 11px; color: #f1c9c9; background: rgba(213, 32, 32, 0.16); border: 1px solid rgba(213, 32, 32, 0.4); }
[data-sc-club-list="steps"] { counter-reset: scstep; }
[data-sc-club-list="steps"] .sc-club-row__num::before { counter-increment: scstep; content: counter(scstep); }
.sc-club-row__role { width: 38%; }
.sc-club-row__rm { width: 30px; height: 30px; background: rgba(255, 255, 255, 0.06); color: rgba(255, 255, 255, 0.6); }
.sc-club-row__rm:hover { background: rgba(213, 32, 32, 0.2); color: #fff; }
.sc-club-row__hint { margin: 4px 0 0 2px; }
.sc-club-ofc-av { width: 30px; height: 30px; background: #2a2a2a; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1); }
.sc-club-suggest {
    position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 20;
    background: #262626; border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 10px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55); padding: 6px; max-height: 280px; overflow-y: auto; overscroll-behavior: contain;
}
.sc-club-suggest[hidden] { display: none; }
.sc-club-suggest__item { display: flex; align-items: center; gap: 8px; width: 100%; padding: 4px 6px; border: 0; border-radius: 8px; background: transparent; color: #fff; text-align: left; cursor: pointer; }
.sc-club-suggest__item:hover:not(:disabled), .sc-club-suggest__item.is-active { background: rgba(255, 255, 255, 0.08); }
.sc-club-suggest__item.is-added { opacity: 0.45; cursor: default; }
.sc-club-suggest__item img { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; flex-shrink: 0; background: #333; }
.sc-club-suggest__txt { min-width: 0; flex: 1; }
.sc-club-suggest__name, .sc-club-suggest__user { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sc-club-suggest__name { font-size: 12px; font-weight: 600; line-height: 1.25; }
.sc-club-suggest__user { font-size: 11px; color: rgba(255, 255, 255, 0.5); }
.sc-club-suggest__hl { background: rgba(213, 32, 32, 0.28); color: #fff; border-radius: 3px; padding: 0 1px; }
.sc-club-suggest__tag { flex-shrink: 0; font-size: 11px; color: rgba(255, 255, 255, 0.55); background: rgba(255, 255, 255, 0.08); border-radius: 99px; padding: 2px 8px; }
.sc-club-suggest__empty { padding: 12px 10px; font-size: 13px; color: rgba(255, 255, 255, 0.55); }
.sc-club-suggest.is-up { top: auto; bottom: calc(100% + 4px); }
#scClubOfficersSheet .sc-club-edit__body { min-height: min(55dvh, 440px); }
.sc-club-add { background: transparent; border: 1px dashed rgba(255, 255, 255, 0.22); border-radius: 6px; padding: 9px 14px; color: rgba(255, 255, 255, 0.8); }
.sc-club-add:hover { border-color: rgba(255, 255, 255, 0.4); color: #fff; }

.sc-club-sheet__dialog { max-width: 420px; }
.sc-club-edit__dialog { max-width: 520px; width: 100%; max-height: 90vh; max-height: 90dvh; }

@media (max-width: 991px) {
    .sc-modal.sc-club-sheet { opacity: 1 !important; --sc-modal-transition-duration: 360ms; }
    .sc-modal.sc-club-sheet.show { align-items: flex-end; }
    .sc-modal.sc-club-sheet .sc-modal-overlay { transition: opacity 360ms cubic-bezier(0.22, 1, 0.36, 1); }

    .sc-modal.sc-club-sheet .sc-club-sheet__dialog {
        position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
        width: 100%; max-width: 100%; margin: 0;
        max-height: 94vh; max-height: 94dvh;
        display: flex; flex-direction: column; overflow: hidden;
        background: #1e1e1e; border-radius: 18px 18px 0 0;
        box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.5);
        padding-bottom: max(16px, env(safe-area-inset-bottom));
        touch-action: pan-y;
    }
    .sc-modal.sc-club-sheet .sc-modal-dialog.sc-club-sheet__dialog {
        animation: none !important; opacity: 1 !important;
        transform: translateY(100%) !important;
        transition: transform 360ms cubic-bezier(0.22, 1, 0.36, 1) !important;
    }
    .sc-modal.sc-club-sheet.show:not(.sc-is-closing) .sc-modal-dialog.sc-club-sheet__dialog { transform: translateY(0) !important; }
    .sc-modal.sc-club-sheet.sc-is-closing .sc-modal-dialog.sc-club-sheet__dialog {
        transform: translateY(100%) !important;
        transition: transform 240ms cubic-bezier(0.4, 0, 1, 1) !important;
    }
    .sc-modal.sc-club-sheet.sc-is-closing { --sc-modal-transition-duration: 240ms; }
    .sc-club-edit__dialog { padding-bottom: 0 !important; }

    .sc-club-sheet__dialog.is-dragging { transition: none !important; animation: none !important; }
    .sc-modal.sc-club-sheet.show:not(.sc-is-closing) .sc-modal-dialog.sc-club-sheet__dialog.is-dragging {
        transform: translateY(var(--sc-club-drag-y, 0px)) !important;
    }
    .sc-modal.sc-club-sheet.show:not(.sc-is-closing) .sc-modal-dialog.sc-club-sheet__dialog.is-sheet-snap-back {
        transform: translateY(var(--sc-club-drag-y, 0px)) !important;
        transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1) !important;
    }
}
@media (max-width: 991px) and (prefers-reduced-motion: reduce) {
    .sc-modal.sc-club-sheet .sc-modal-dialog.sc-club-sheet__dialog,
    .sc-modal.sc-club-sheet.sc-is-closing .sc-modal-dialog.sc-club-sheet__dialog { transition: none !important; }
}
@media (min-width: 992px) {
    .sc-modal.sc-club-sheet { opacity: 1 !important; }
    .sc-modal.sc-club-sheet.show { align-items: center; padding: 48px 16px 24px; box-sizing: border-box; }
    .sc-club-edit__dialog { display: flex; flex-direction: column; overflow: hidden; }
    .sc-club-handle { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .sc-club-sheet__dialog { animation: none; }
}

/* ---- Club invites (club page + build-page Clubs sheet) ---- */
.sc-club-invite-thumb { width: 44px; height: 44px; background: #262626; }
.sc-club-tag { font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 2px 8px; border-radius: 99px; background: #2a2a2a; color: #aaa; flex-shrink: 0; }
.sc-club-tag.is-invited { background: #3d3217; color: #e8c05a; }
.sc-club-tag.is-declined { background: #3a1a17; color: #f0705f; }
.sc-club-tag.is-live { background: #1d3a24; color: #6fd18a; }
.sc-club-link-btn { background: none; border: 0; color: rgba(255,255,255,.6); cursor: pointer; padding: 4px; }
.sc-club-link-btn:hover { color: #fff; }
.sc-club-err { color: #f0705f; }
.sc-club-addbuild__dialog, .sc-club-clubs__dialog { max-width: 440px; width: 100%; max-height: 86vh; max-height: 86dvh; }
.sc-club-invite-row + .sc-club-invite-row { border-top: 1px solid rgba(255,255,255,.06); }
.sc-club-btn-sm { border: 1px solid rgba(255,255,255,.18); background: #2a2a2a; color: #fff; border-radius: 10px; padding: 6px 12px; font-size: 12px; font-weight: 700; cursor: pointer; flex-shrink: 0; }
.sc-club-btn-sm.is-primary { background: #c0392b; border-color: #c0392b; }
.sc-club-btn-sm[disabled] { opacity: .5; cursor: default; }
@media (min-width: 992px) { .sc-club-addbuild__dialog, .sc-club-clubs__dialog { display: flex; flex-direction: column; overflow: hidden; } }

/* Add-build + Clubs sheets: flat dark scrim (no blur bleed), tall on mobile */
@media (max-width: 991px) {
    #scClubAddSheet .sc-club-sheet__dialog { height: 90vh; height: 90dvh; max-height: 90vh; max-height: 90dvh; }
}

/* Desktop: every club sheet gets the same panel surface (sc-modal.js's .sc-managed-modal rule clears the
   dialog background, so each sheet has to restore it). Add-build also gets a real height so the list has room. */
@media (min-width: 992px) {
    .sc-modal.sc-club-sheet .sc-club-sheet__dialog { background: #1e1e1e; border-radius: 14px; padding-top: 16px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55); }
    #scClubAddSheet .sc-club-sheet__dialog { height: min(640px, 86dvh); }
    #scClubShareSheet .sc-club-sheet__dialog { border-radius: 10px; padding-top: 14px; }
}

.sc-club-close { width: 32px; height: 32px; margin-top: 2px; background: rgba(255, 255, 255, 0.08); color: rgba(255, 255, 255, 0.85); }
.sc-club-close:hover { background: rgba(255, 255, 255, 0.16); color: #fff; }

.sc-club-addbuild__list, #scBuildClubsSheet [data-sc-sheet-scroll] { overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, 0.18) transparent; }
.sc-club-addbuild__list::-webkit-scrollbar, #scBuildClubsSheet [data-sc-sheet-scroll]::-webkit-scrollbar { width: 3px; }
.sc-club-addbuild__list::-webkit-scrollbar-track, #scBuildClubsSheet [data-sc-sheet-scroll]::-webkit-scrollbar-track { background: transparent; }
.sc-club-addbuild__list::-webkit-scrollbar-thumb, #scBuildClubsSheet [data-sc-sheet-scroll]::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.18); border-radius: 2px; }
.sc-club-addbuild__list::-webkit-scrollbar-thumb:hover, #scBuildClubsSheet [data-sc-sheet-scroll]::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.30); }

/* SlickCars custom checkbox: dark surface, red accent, white check */
.sc-check { -webkit-appearance: none; appearance: none; flex-shrink: 0; width: 20px; height: 20px; margin: 0; border-radius: 6px; border: 1.5px solid rgba(255, 255, 255, 0.3); background: #151515 center / 14px 14px no-repeat; cursor: pointer; transition: background-color 0.15s ease, border-color 0.15s ease; }
.sc-check:hover { border-color: rgba(255, 255, 255, 0.5); }
.sc-check:checked { background-color: #d52020; border-color: #d52020; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E"); }
.sc-check:focus-visible { outline: 2px solid rgba(255, 255, 255, 0.6); outline-offset: 2px; }

/* Member builds: 3 per row from tablet up (card template defaults to 4 at md) */
@media (min-width: 576px) {
    .sc-club-builds-sec .row > [class*="col-"] { flex: 0 0 auto; width: 33.3333%; }
}

/* ---- Profile Clubs strip + compact club card ---- */
/* Phone: full-bleed strip, heading and first card inset 16px, cards scroll under both screen edges. */
.sc-club-strip { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); padding: 0 16px; }
.sc-club-strip__rail { overflow-x: auto; margin: 0 -16px; padding: 0 16px 2px; scrollbar-width: none; scroll-snap-type: x proximity; scroll-padding-left: 16px; }
.sc-club-strip__rail::-webkit-scrollbar { display: none; }
/* Tablet and up: first card aligns with the page container (tabs and grid below); the rail overflows past both container edges, no hard cut. */
@media (min-width: 576px) {
    .sc-club-strip { margin-left: 0; margin-right: 0; padding: 0; }
    /* No snap here: scroll-padding % resolves against the scrollport, not the container, and would shove the first card to the edge. */
    .sc-club-strip__rail { margin: 0 calc(50% - 50vw); padding: 0 calc(50vw - 50%) 2px; scroll-snap-type: none; }
}
.sc-club-card { width: 264px; scroll-snap-align: start; }
.sc-club-card__logo { width: 56px; height: 56px; background: #2a2a2a; }
.sc-club-card__role { color: rgba(255, 255, 255, 0.5); }
.sc-club-card__role.is-lead { color: #e5484d; }
.sc-club-card__role.is-draft { color: #e8c05a; }

/* Mouse drag-to-scroll rails */
[data-drag-rail] { cursor: grab; }
[data-drag-rail].is-dragging { cursor: grabbing; scroll-snap-type: none; user-select: none; }
[data-drag-rail].is-dragging a { pointer-events: none; }

/* Officer access (per-officer permissions) */
.sc-club-ofc-perms { margin: 6px 0 0; }
.sc-club-ofc-full { margin: 6px 0 0; color: #e5484d; }
.sc-club-ofc-row.is-full .sc-club-row__rm { visibility: hidden; }
.sc-club-perm__in { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.sc-club-perm__ui { padding: 5px 10px; border-radius: 99px; background: #1f1f1f; border: 1px solid rgba(255, 255, 255, 0.12); color: rgba(255, 255, 255, 0.65); transition: background 0.15s, border-color 0.15s, color 0.15s; }
.sc-club-perm__box { position: relative; width: 14px; height: 14px; border-radius: 4px; border: 1.5px solid rgba(255, 255, 255, 0.4); flex-shrink: 0; }
.sc-club-perm__in:checked + .sc-club-perm__ui { background: rgba(213, 32, 32, 0.14); border-color: rgba(213, 32, 32, 0.5); color: #fff; }
.sc-club-perm__in:checked + .sc-club-perm__ui .sc-club-perm__box { background: #d52020; border-color: #d52020; }
.sc-club-perm__in:checked + .sc-club-perm__ui .sc-club-perm__box::after { content: ""; position: absolute; left: 3.5px; top: 0.5px; width: 3px; height: 7px; border: solid #fff; border-width: 0 1.8px 1.8px 0; transform: rotate(45deg); }
.sc-club-perm__in:focus-visible + .sc-club-perm__ui { outline: 2px solid rgba(255, 255, 255, 0.6); outline-offset: 2px; }
.sc-club-hist-row + .sc-club-hist-row { border-top: 1px solid rgba(255, 255, 255, 0.06); }
@media (prefers-reduced-motion: reduce) { .sc-club-perm__ui { transition: none; } }

/* Each officer sits in its own card */
.sc-club-ofc-row { background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 12px; padding: 8px; }
.sc-club-ofc-row.is-full { border-color: rgba(213, 32, 32, 0.3); }
/* Phone: the owner row has no remove button, so its fields run to the card edge */
@media (max-width: 560px) { .sc-club-ofc-row.is-full .sc-club-row__rm { display: none !important; } } /* !important: beats the u-d-grid utility on the button */

/* Suggestion list hangs under the username line, not under the permission row */
.sc-club-ofc-row .sc-club-suggest { position: static; margin-top: 6px; max-height: 220px; box-shadow: none; background: #1f1f1f; padding: 4px; }

.sc-club-ofc-row .sc-club-row__rm { width: 24px; height: 24px; }
.sc-club-ofc-row .sc-club-row__rm svg { width: 12px; height: 12px; }

/* Officer fields run tighter than the other edit-sheet inputs */
.sc-club-ofc-row .sc-club-input { padding-left: 8px; padding-right: 8px; }

/* Cover actions (back + share / history / edit) */
.sc-club-cover-bar { top: 12px; left: 12px; right: 12px; }
.sc-club-cover-btn { width: 36px; height: 36px; background: rgba(0, 0, 0, 0.45); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); border: 1px solid rgba(255, 255, 255, 0.14); cursor: pointer; transition: background-color 0.15s ease; }
.sc-club-cover-btn:hover { background: rgba(0, 0, 0, 0.62); }
.sc-club-cover-btn:focus-visible { outline: 2px solid rgba(255, 255, 255, 0.7); outline-offset: 2px; }

/* Club setup rail */
.sc-club-setup-bar { height: 4px; border-radius: 2px; background: #2a2a2a; overflow: hidden; }
.sc-club-setup-bar i { display: block; height: 100%; background: #d52020; border-radius: 2px; transition: width 0.3s ease; }
.sc-club-setup-card { width: 140px; padding: 12px; background: #1a1a1a; border: 1px solid rgba(255, 255, 255, 0.09); border-radius: 12px; color: #fff; scroll-snap-align: start; }
.sc-club-setup-card.is-gate { border-color: rgba(213, 32, 32, 0.45); }
.sc-club-setup-card__icon { width: 28px; height: 28px; background: #262626; color: rgba(255, 255, 255, 0.85); }
.sc-club-setup-card__cta { height: 28px; background: rgba(255, 255, 255, 0.08); color: #fff; transition: background-color 0.15s ease; }
.sc-club-setup-card:hover .sc-club-setup-card__cta { background: rgba(255, 255, 255, 0.14); }
.sc-club-setup-card.is-gate .sc-club-setup-card__cta { background: rgba(213, 32, 32, 0.16); color: #f1c9c9; box-shadow: inset 0 0 0 1px rgba(213, 32, 32, 0.35); }
.sc-club-setup-card.is-gate:hover .sc-club-setup-card__cta { background: rgba(213, 32, 32, 0.26); }
.sc-club-setup-card.is-done { opacity: 0.6; }
.sc-club-setup-card.is-done .sc-club-setup-card__icon { color: #6fd08c; }
.sc-club-setup-card.is-done .sc-club-setup-card__cta { background: rgba(255, 255, 255, 0.05); color: rgba(255, 255, 255, 0.7); }
@media (prefers-reduced-motion: reduce) { .sc-club-setup-bar i, .sc-club-cover-btn { transition: none; } }

/* Save button: Saving… spinner, then ✓ Saved */
.sc-club-edit__save.is-saving::before, .sc-club-edit__save.is-saved::before { content: ""; display: inline-block; vertical-align: -2px; margin-right: 6px; }
.sc-club-edit__save.is-saving::before { width: 12px; height: 12px; border: 2px solid rgba(255, 255, 255, 0.25); border-top-color: #fff; border-radius: 50%; animation: sc-club-spin 0.7s linear infinite; }
.sc-club-edit__save.is-saved { color: #6fd08c; }
.sc-club-edit__save.is-saved::before { width: 4px; height: 9px; border: solid #6fd08c; border-width: 0 2px 2px 0; transform: rotate(45deg); margin-right: 8px; vertical-align: 1px; }
.sc-club-edit__save.is-saving, .sc-club-edit__save.is-saved { opacity: 1 !important; }
@keyframes sc-club-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .sc-club-edit__save.is-saving::before { animation: none; } }
/* Quiet refresh after a save */
.sc-club.is-refreshed .sc-club-identity, .sc-club.is-refreshed .sc-club-main { animation: sc-club-refresh 0.35s ease; }
@keyframes sc-club-refresh { from { opacity: 0.55; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .sc-club.is-refreshed .sc-club-identity, .sc-club.is-refreshed .sc-club-main { animation: none; } }

/* Empty builds placeholder + example join box */
.sc-club-builds-empty { aspect-ratio: auto; padding: 22px 12px; }
.sc-club-join.is-example .sc-club-steps, .sc-club-join.is-example .sc-club-tip { opacity: 0.45; }

.sc-club-stat.is-zero { opacity: 0.38; }

/* Setup rail bleeds off both edges: cards slide under the container edge to the viewport edge, but rest aligned with the column */
/* No scroll-snap here: scroll-padding % resolves against the rail, not the column, and pulled the first card off the column edge. */
.sc-club-setup-sec .sc-club-rail { margin-left: calc(50% - 50vw); padding-left: calc(50vw - 50%); scroll-snap-type: none; }

/* Location suggestions inside club forms (dropdown sits under the field) */
.sc-club-affix + .sc-location-suggestions {
    margin-top: 6px; padding: 8px 10px; border-radius: 9px; background: #151515;
    border: 1px solid rgba(255, 255, 255, 0.1); overflow-y: auto; max-height: 200px; font-size: 13px;
}
.sc-club-affix + .sc-location-suggestions[hidden] { display: none; }

/* Share club modal — story card preview (9:16) */
.sc-club-card-preview { height: min(52svh, 480px); aspect-ratio: 9 / 16; max-width: 100%; background: #1c1c1c; }
/* The card is a real 1080×1920 DOM card (like the build / mods share cards): scaled live in the preview,
   cloned unscaled and exported with html2canvas. Fonts come from the site's own Rajdhani / IBM Plex Sans / Aldrich. */
.sc-club-card { position: absolute; top: 0; left: 0; width: 1080px; height: 1920px; box-sizing: border-box; transform-origin: 0 0; transform: scale(var(--sc-club-card-scale, 0.25)); background: #131317; color: #eceae4; font-family: 'IBM Plex Sans', Arial, sans-serif; box-shadow: inset 0 0 0 1px #333; overflow: hidden; opacity: 0; transition: opacity 0.2s ease; }
.sc-club-card.is-ready { opacity: 1; }
.sc-club-card__bar { position: absolute; left: 0; right: 0; height: 3px; background: #e1251b; }
.sc-club-card__bar--top { top: 0; }
.sc-club-card__bar--bottom { bottom: 0; }
.sc-club-card__mark { width: 64px; height: 64px; margin-top: 34px; flex-shrink: 0; }
.sc-club-card__main { padding: 0 80px; }
.sc-club-card__logo { width: 300px; height: 300px; border-radius: 28px; background: #1c1c1c; flex-shrink: 0; }
.sc-club-card__logo img { object-fit: cover; }
.sc-club-card__initials { font-family: 'Rajdhani', sans-serif; font-weight: 700; font-size: 130px; color: #cfcfcf; line-height: 1; }
.sc-club-card__ring { position: absolute; inset: 0; border-radius: 28px; border: 3px solid rgba(255, 255, 255, 0.16); box-sizing: border-box; }
.sc-club-card__name { margin-top: 18px; font-family: 'Rajdhani', sans-serif; font-weight: 700; font-size: 96px; line-height: 0.98; text-transform: uppercase; color: #eceae4; max-width: 920px; }
.sc-club-card__meta { margin-top: 18px; font-family: 'Rajdhani', sans-serif; font-weight: 600; font-size: 28px; line-height: 1; letter-spacing: 3px; text-transform: uppercase; color: rgba(255, 255, 255, 0.6); padding: 14px 26px; border-radius: 12px; background: #2a2a2f; }
.sc-club-card__loc { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 22px; max-width: 880px; font-family: 'Rajdhani', sans-serif; font-weight: 600; font-size: 32px; line-height: 1.1; letter-spacing: 1px; color: #d4d2cb; }
.sc-club-card__loc svg { width: 34px; height: 34px; flex-shrink: 0; color: #9a988f; }
.sc-club-card__loc span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sc-club-card__rule { display: block; width: 56px; height: 4px; border-radius: 2px; background: #e1251b; margin: 44px 0 40px; }
.sc-club-card__bio { font-family: 'IBM Plex Sans', Arial, sans-serif; font-weight: 500; font-size: 32px; line-height: 1.45; color: #9a988f; max-width: 820px; }
.sc-club-card__eyebrow { margin-top: 44px; font-family: 'IBM Plex Sans', Arial, sans-serif; font-weight: 600; font-size: 28px; line-height: 1; letter-spacing: 1.5px; text-transform: uppercase; color: #e1251b; }
.sc-club-card__pill { position: absolute; left: 50%; bottom: 36px; transform: translateX(-50%); white-space: nowrap; padding: 12px 18px; border-radius: 10px; background: #e1251b; color: #fff; font-family: 'Aldrich', 'IBM Plex Sans', Arial, sans-serif; font-weight: 800; font-size: 24px; line-height: 1.2; }
.sc-club-card__pill span { font-size: 0.9em; }
