/* V27 — shared geometry, natural media, publication and conversation surfaces. */
.club-site #portal-visit-content{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch;gap:24px}
.club-site #portal-visit-content .visit-video.visit-slider{display:flex;flex-direction:column;width:100%;max-width:none;margin:0;height:auto;align-self:stretch;min-width:0}
.club-site #portal-visit-content [data-visit-slides]{position:relative;flex:1;min-height:560px}
.club-site #portal-visit-content .visit-slider figure{position:absolute;inset:0;height:100%;max-height:none;aspect-ratio:auto;margin:0}
.club-site #portal-visit-content .visit-slider figure :is(img,video,iframe){width:100%;height:100%;aspect-ratio:auto;object-fit:contain}
.club-site #portal-visit-content .visit-slider figcaption{position:absolute;inset:auto 0 0;padding:16px;background:#091116e8;line-height:1.5}
.club-site #overview-next-event{height:auto;min-width:0;align-self:stretch}
.club-site .feed-author{display:grid;grid-template-columns:44px minmax(0,1fr) auto;align-items:start;gap:12px}
.club-site .feed-author>div{min-width:0;display:grid;gap:4px}
.club-site .feed-author strong{overflow-wrap:anywhere;line-height:1.4}
.club-site .feed-author small{display:block;line-height:1.5}
.club-site .feed-author>.profile-follow{margin:0;justify-self:end;align-self:start}
.confirmed-event-actions{display:flex;flex-wrap:wrap;align-items:center;gap:12px 20px;margin-top:24px}
.confirmed-event-actions small{display:block;line-height:1.5}
.club-site .merchant-platform-callout{display:grid;place-items:center;gap:24px;text-align:center;padding:clamp(24px,4vw,48px) 0}
.club-site .merchant-platform-callout>.btn{justify-self:center;width:fit-content;max-width:100%;margin:0}
.club-site .merchant-platform-plans{padding-block:clamp(48px,6vw,88px)}
.club-site .merchant-platform-plans>h2{max-width:24ch;line-height:1.15;font-size:clamp(2rem,3vw,2.75rem);margin-bottom:24px;text-wrap:balance}
.club-site .merchant-platform-plans>p{max-width:66ch;line-height:1.7}
.club-site .merchant-platform-plans>div{gap:24px;align-items:stretch;margin-top:40px}
.club-site .merchant-platform-plans article{display:grid;grid-template-rows:auto auto 1fr auto;gap:24px;padding:clamp(24px,3vw,40px);align-items:start}
.club-site .merchant-platform-plans article :is(h3,p,ul){margin:0}
.club-site .merchant-platform-plans article h3{font-size:1.5rem;line-height:1.3;text-wrap:balance}
.club-site .merchant-platform-plans article p{line-height:1.7;max-width:60ch}
.club-site .merchant-platform-plans article ul{display:grid;gap:16px;padding-left:20px;align-self:start}
.club-site .merchant-platform-plans article .btn{align-self:end;justify-self:start;margin:0;min-height:48px}
/* Workshop variants share their renderer between public, portal and editor preview. */
.workshop-composed{container-type:inline-size;--workshop-section-gap:clamp(48px,7cqi,80px);--workshop-content-gap:24px;--workshop-prose:66ch}
.workshop-composed :is(h1,h2,h3,p,a,label){overflow-wrap:anywhere}
.workshop-composed :is(button,a,input,select,textarea):focus-visible{outline:2px solid var(--template-accent);outline-offset:4px}
.workshop-composed ::selection{background:var(--template-accent);color:var(--workshop-accent-ink,#111)}
.workshop-composed h1{font-size:calc(clamp(2rem,4.5cqi,3.75rem)*var(--workshop-heading-scale,1));line-height:1.08;letter-spacing:-.03em}
.workshop-composed h2{font-size:calc(clamp(1.75rem,3cqi,2.75rem)*var(--workshop-heading-scale,1));line-height:1.17}
.workshop-composed h3{font-size:calc(1.25rem*var(--workshop-heading-scale,1));line-height:1.3}
.workshop-composed p{max-width:var(--workshop-prose);line-height:1.7}
.workshop-composed .composed-nav{flex-wrap:wrap;gap:20px 32px;min-width:0}
.workshop-composed .composed-nav>div{gap:12px 24px}
.workshop-composed .composed-nav a{max-width:100%}
.workshop-composed .composed-hero,.workshop-composed[data-template=services] .composed-hero,.workshop-composed[data-hero=form-left] .composed-hero,.workshop-composed[data-hero=manifesto] .composed-hero{grid-template-columns:repeat(2,minmax(0,1fr));gap:40px;align-items:center;padding-block:var(--workshop-section-gap);min-height:0}
.workshop-composed .composed-hero-form{display:grid;gap:32px;min-width:0;align-content:start}
.workshop-composed[data-hero=form-left] .composed-hero{align-items:stretch}
.workshop-composed[data-hero=form-left] .composed-hero-photo{display:grid;grid-template-rows:minmax(0,1fr) auto;min-height:0}
.workshop-composed[data-hero=form-left] .composed-hero-photo :is(img,video){height:100%;min-height:440px;max-height:none;object-fit:cover}
.workshop-composed .composed-section{padding-block:var(--workshop-section-gap)}
.workshop-composed .composed-section>header{display:grid;justify-items:center;gap:20px;margin-bottom:40px}
.workshop-composed .composed-section>header p{margin:0;max-width:var(--workshop-prose)}
.workshop-composed .composed-evidence dl>div{display:flex;flex-direction:column;align-items:center;gap:12px}
.workshop-composed .composed-evidence dd{order:-1;margin:0;font-variant-numeric:tabular-nums}
.workshop-composed .composed-evidence .icon{order:-2}
.workshop-composed .composed-pillars h3{margin:0 0 16px}
.workshop-composed .composed-service-catalog{grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}
.workshop-composed .composed-service-catalog>article{display:flex;flex-direction:column}
.workshop-composed .composed-service-catalog article>div{display:flex;flex-direction:column;gap:16px;flex:1}
.workshop-composed .composed-service-catalog article p{margin:0}
.workshop-composed .composed-service-catalog .workshop-secondary{margin-top:auto;align-self:start}
.workshop-composed .composed-case-list>article{grid-template-columns:repeat(2,minmax(0,1fr));gap:0;align-items:stretch}
.workshop-composed .composed-case-list article>div{display:grid;align-content:center;justify-items:start;gap:24px;padding:clamp(24px,4cqi,40px)}
.workshop-composed .composed-case-list p{margin:0}
.workshop-composed .composed-case-list figure{height:100%;min-width:0}
.workshop-composed .composed-case-list :is(img,video){height:100%;min-height:320px;max-height:640px}
.workshop-composed .composed-reviews{display:grid;gap:32px}
.workshop-composed .composed-reviews>header{margin:0 auto}
.workshop-composed .composed-review-list{margin:0;min-width:0}
.workshop-composed .composed-review-list>.composed-reviews-empty{grid-column:1/-1;max-width:66ch;margin:auto;text-align:center;padding-block:24px}
.workshop-composed .composed-reviews>p{margin:0 auto;text-align:center;max-width:66ch}
.workshop-composed .composed-offer{grid-template-columns:repeat(2,minmax(0,1fr));gap:40px;align-items:center}
.workshop-composed .workshop-intake-fields :is(input,select,textarea){min-width:0;width:100%;font-size:1rem;min-height:48px}
.workshop-composed .workshop-intake-fields label{font-size:.875rem;line-height:1.5;min-width:0}
.workshop-composed .composed-marquees{position:relative;display:grid;gap:16px;padding:48px 0 72px;margin:0;overflow:hidden;isolation:isolate}
.workshop-composed .composed-marquee-row{display:block;width:112%;margin-left:-6%;padding:0;border:0;background:var(--template-accent);color:var(--workshop-accent-ink,#111);transform:rotate(-2deg);overflow:hidden}
.workshop-composed .composed-marquee-row:nth-child(2){background:var(--template-band);color:var(--workshop-band-ink,#111);transform:rotate(2deg)}
.composed-marquee-track{display:flex;width:max-content;animation:workshop-marquee 38s linear infinite}
.composed-marquee-row:nth-child(2) .composed-marquee-track{animation-direction:reverse;animation-duration:44s}
.composed-marquee-copy{display:flex;flex:none;align-items:center;gap:48px;padding:16px 24px;font-size:1rem;white-space:nowrap}
.composed-marquee-pause{position:absolute;bottom:12px;right:24px;min-height:44px;padding:8px 16px;border:1px solid currentColor;border-radius:8px;background:var(--template-surface);color:inherit;font:inherit;cursor:pointer}
.composed-marquees[data-paused=true] .composed-marquee-track{animation-play-state:paused}
@keyframes workshop-marquee{to{transform:translateX(-50%)}}
/* Profile galleries retain natural image ratios. */
.club-site .member-gallery-grid{display:block;columns:3;column-gap:24px;margin-top:24px}
.club-site .member-gallery-item{display:inline-block;width:100%;break-inside:avoid;margin:0 0 24px;vertical-align:top;overflow:hidden}
.club-site .member-gallery-item figure{margin:0}
.club-site .member-gallery-item figure :is(img,video){display:block;width:100%;height:auto;max-height:none;aspect-ratio:auto;object-fit:contain}
.club-site .gallery-media{position:relative;background:#091116;overflow:hidden}
.gallery-image-button{display:block;width:100%;padding:0;border:0;background:none;cursor:zoom-in}
.gallery-image-button:focus-visible{outline:3px solid #91e9ff;outline-offset:-3px}
.gallery-expand,.gallery-audio{position:absolute;z-index:1;right:12px;top:12px;min-height:44px;padding:10px 14px;border:1px solid #a5c1cd;border-radius:8px;background:#101923ed;color:#fff;font:inherit;font-size:.875rem;cursor:pointer}
.gallery-audio{top:64px}
.club-site .member-gallery-item figcaption{padding:20px;display:grid;gap:12px}
.club-site .member-gallery-item figcaption :is(h3,p){margin:0}
.gallery-lightbox{width:min(1120px,96vw);max-height:94dvh;padding:20px;background:#0d151c;color:#f1f2ef;border:1px solid #617686;border-radius:14px}
.gallery-lightbox::backdrop{background:#02070be8}
.gallery-lightbox header,.gallery-lightbox footer{display:flex;align-items:center;justify-content:space-between;gap:20px}
.gallery-lightbox header p{margin:0;font-size:1.125rem;overflow-wrap:anywhere}
.gallery-lightbox [data-gallery-stage]{display:grid;place-items:center;height:min(70dvh,800px);margin-block:16px;min-height:180px}
.gallery-lightbox [data-gallery-stage] :is(img,video){width:100%;height:100%;object-fit:contain;min-height:0;max-height:70dvh}
.gallery-lightbox button{min-height:44px;padding:10px 16px;background:#20313e;color:#fff;border:1px solid #617686;border-radius:8px;font:inherit;cursor:pointer}
/* Four controls per row on desktop; hints are out of the control grid. */
.club-site #admin-ledger-filters{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));grid-auto-rows:auto;gap:24px;align-items:end;margin-block:24px 32px}
.club-site #admin-ledger-filters>label{position:relative;display:grid;grid-template-rows:minmax(24px,auto) 48px;align-content:end;gap:8px;min-width:0;margin:0;padding:0;font-size:.875rem;line-height:1.5}
.club-site #admin-ledger-filters>label :is(input,select){width:100%;min-width:0;min-height:48px;margin:0;box-sizing:border-box;font-size:1rem}
.club-site #admin-ledger-filters .admin-question-tip{position:absolute;inset:0 0 auto auto;width:24px;height:24px;min-height:24px;min-width:24px;margin:0;transform:none}
.club-site #admin-ledger-filters .admin-ledger-actions{display:flex;align-items:end;min-width:0;margin:0;align-self:end}
.club-site #admin-ledger-filters .admin-ledger-actions a{width:100%;min-height:48px;white-space:normal;text-align:center;line-height:1.3}
.club-ledger th>button[data-ledger-sort]{display:flex;align-items:center;justify-content:space-between;gap:16px;width:100%;min-height:44px;padding:8px 0;border:0;background:transparent;color:inherit;font:inherit;text-align:left;cursor:pointer}
.club-ledger th[aria-sort=ascending],.club-ledger th[aria-sort=descending]{color:#91e9ff;background:#1c303c}
.club-ledger th>button[data-ledger-sort]:focus-visible{outline:2px solid #91e9ff;outline-offset:3px}
.admin-topbar{flex-wrap:wrap;gap:20px}
#admin-publishing{display:grid;gap:8px;flex:1 1 600px;min-width:0}
.admin-publication-state{display:flex;flex-wrap:wrap;gap:8px 20px;align-items:baseline}
.admin-publication-state span{font-size:.875rem;color:#c3d4de}
.admin-publication-actions{display:flex;flex-wrap:wrap;gap:8px}
#admin-publishing [data-publication-result]{font-size:.875rem;line-height:1.5;margin:0}
#admin-publishing [data-publication-result]:empty{display:none}
.admin-publication-history{width:min(1040px,94vw)}
.admin-publication-history h3{margin-top:32px;margin-bottom:16px}
.admin-publication-history td{padding:16px;line-height:1.5}
/* The launcher reads as a conversation inbox, distinct from a budget list. */
.club-site .chat-launcher-panel{width:min(420px,calc(100vw - 32px));padding:24px;background:#121f29;border:1px solid #506475;border-radius:14px;color:#f1f2ef;box-shadow:0 16px 36px #02070b55}
.club-site .chat-launcher-panel>h2{font-size:1.375rem;line-height:1.25;margin:0 0 12px}
.club-site .chat-launcher-panel>p{font-size:.875rem;line-height:1.6;color:#c1d1dc;margin:0 0 20px}
.club-site [data-chat-thread-list]{display:grid;gap:4px;max-height:52dvh;overflow:auto;overscroll-behavior:contain}
.club-site .chat-thread-button{display:flex;align-items:start;gap:12px;padding:16px 8px;border:0;border-bottom:1px solid #344b5a;border-radius:0;background:transparent;color:inherit;text-align:left;min-height:88px;width:100%;font:inherit;cursor:pointer}
.club-site .chat-thread-button:hover{background:#213746}
.club-site .chat-person-avatar{width:44px;height:44px;flex:0 0 44px;display:grid;place-items:center;overflow:hidden;border-radius:50%;background:#2a4351;color:#e2f4fe;font-size:1rem;font-weight:700}
.club-site .chat-person-avatar img{display:block;width:100%;height:100%;object-fit:cover}
.chat-thread-copy{display:grid;gap:8px;flex:1;min-width:0}
.chat-thread-heading{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:start}
.chat-thread-heading strong{font-size:1rem;line-height:1.35;overflow-wrap:anywhere}
.chat-thread-heading time{font-size:.75rem;color:#bfd1df;max-width:12ch;text-align:right;line-height:1.5;font-variant-numeric:tabular-nums}
.chat-thread-preview{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;line-height:1.5;font-size:.9375rem;color:#d6e4ed}
.chat-thread-meta{display:flex;align-items:center;justify-content:space-between;gap:12px}
.chat-thread-meta small{font-size:.8125rem;line-height:1.5;color:#b9cfdd}
.club-site .chat-preferences{margin-top:20px;padding-top:16px;border-top:1px solid #344b5a}
.club-site .chat-preferences summary{font-size:.875rem;min-height:44px;cursor:pointer}
@media(min-width:1500px){.club-site .member-gallery-grid{columns:4}}
@container (max-width:760px){.workshop-composed .composed-hero,.workshop-composed[data-template=services] .composed-hero,.workshop-composed[data-hero=form-left] .composed-hero,.workshop-composed[data-hero=manifesto] .composed-hero,.workshop-composed .composed-offer,.workshop-composed .composed-case-list>article{grid-template-columns:minmax(0,1fr);gap:32px}.workshop-composed .composed-service-catalog{grid-template-columns:repeat(2,minmax(0,1fr))}.workshop-composed[data-hero=form-left] .composed-hero-photo :is(img,video){height:420px;min-height:0}.workshop-composed .composed-case-list :is(img,video){height:340px;min-height:0}.workshop-composed .composed-review-list{grid-template-columns:minmax(0,1fr)}}
@container (max-width:430px){.workshop-composed .composed-service-catalog,.workshop-composed .composed-pillars{grid-template-columns:minmax(0,1fr)}.workshop-composed .composed-evidence dl{grid-template-columns:repeat(2,minmax(0,1fr))}.workshop-composed .composed-nav>div{gap:8px 16px}}
@media(max-width:1000px){.club-site #admin-ledger-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.club-site .member-gallery-grid{columns:2}}
@media(max-width:800px){.club-site #portal-visit-content{grid-template-columns:minmax(0,1fr)}.club-site #portal-visit-content [data-visit-slides]{flex:none;height:min(76dvh,760px);min-height:360px}.club-site .merchant-platform-plans>div{grid-template-columns:minmax(0,1fr)}.club-site .merchant-platform-plans article .btn{justify-self:stretch}.club-site .feed-author{grid-template-columns:36px minmax(0,1fr) auto;gap:10px}.club-site .feed-author>.profile-follow{padding-inline:12px}.club-site .member-gallery-grid{columns:2}}
@media(max-width:540px){.club-site .member-gallery-grid{columns:1}.club-site #admin-ledger-filters{grid-template-columns:minmax(0,1fr);gap:20px}.admin-publication-actions>.btn{flex:1 1 140px}.gallery-lightbox{padding:12px}.gallery-lightbox header{gap:12px}.chat-thread-heading{grid-template-columns:minmax(0,1fr)}.chat-thread-heading time{text-align:left;max-width:none}}
@media(prefers-reduced-motion:reduce){.composed-marquee-track{animation:none}.composed-marquee-track>.composed-marquee-copy[aria-hidden=true]{display:none}.workshop-composed .composed-marquee-copy{flex-wrap:wrap;white-space:normal}.workshop-composed .composed-marquee-pause{display:none}}
.club-portal .portal-radio-hub[data-radio-page=false] .radio-disclosure{display:flex}
.club-site .portal-radio-hub .radio-platform{display:block;min-width:0}
.club-site .portal-radio-hub .radio-platform-body{display:grid;gap:16px}
.club-site .portal-radio-hub .radio-platform-body[hidden],.club-site .portal-radio-hub .radio-platforms[hidden]{display:none}
.club-site .portal-radio-hub .radio-native-player{min-width:0;grid-column:auto;grid-row:auto}
.club-site .portal-radio-hub .radio-hero{gap:16px;flex-wrap:wrap}
.club-site .portal-radio-hub .radio-controls{align-items:center;gap:8px}
.club-site .portal-radio-hub .radio-controls .btn{min-height:44px;font-size:.875rem}
.club-site .portal-radio-hub .radio-notice{font-size:.875rem;color:#c5d9e2}
.club-site .portal-radio-hub .radio-universe-launcher{display:block}
.referral-prize-section h2,.referral-milestones-section h2{font-size:clamp(2rem,3.2vw,3rem);line-height:1.15;letter-spacing:-.03em;max-width:26ch;text-wrap:balance;margin:0 0 32px}
.referral-prize-feature{display:grid;grid-template-columns:minmax(180px,.7fr) minmax(0,1.5fr) auto;gap:32px;align-items:center;padding-block:32px}
.referral-prize-feature figure{display:grid;place-items:center;margin:0;background:#111c22;border-radius:14px;overflow:hidden;aspect-ratio:1}
.referral-prize-feature :is(img,video){width:100%;height:100%;object-fit:contain}
.referral-prize-feature img[src$=".svg"]{padding:40px;box-sizing:border-box}
.referral-prize-feature h3{font-size:clamp(1.5rem,2.2vw,2rem);line-height:1.25;margin:0 0 20px}
.referral-prize-feature p,.referral-milestones-section header p{font-size:1rem;line-height:1.7;max-width:66ch;margin:0}
.referral-prize-feature .referral-prize-rules{margin-top:20px;font-size:.875rem;color:#c0d0d7}
.referral-prize-feature>.btn{white-space:normal;text-align:center;max-width:240px;min-height:48px}
.referral-milestones-section header{margin-bottom:32px}
.referral-prize-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}
.referral-prize-grid article{min-width:0;background:#111c22;border:1px solid #405563;border-radius:14px;overflow:hidden}
.referral-prize-grid figure{display:grid;place-items:center;margin:0;aspect-ratio:1;overflow:hidden}
.referral-prize-grid :is(img,video){display:block;width:100%;height:100%;object-fit:contain}
.referral-prize-grid img[src$=".svg"]{padding:48px;box-sizing:border-box}
.referral-prize-grid article>div{display:grid;gap:16px;padding:24px}
.referral-prize-grid h3{font-size:1.375rem;line-height:1.3;margin:0}
.referral-prize-grid p{font-size:1rem;line-height:1.6;margin:0}
.referral-prize-grid .referral-position{color:#a6e8f4;font-size:.875rem}
@media(max-width:900px){.referral-prize-feature{grid-template-columns:minmax(160px,.7fr) minmax(0,1.3fr)}.referral-prize-feature>.btn{grid-column:2;justify-self:start}.referral-prize-grid{gap:16px}}
@media(max-width:600px){.referral-prize-feature,.referral-prize-grid{grid-template-columns:minmax(0,1fr)}.referral-prize-feature>figure{width:min(100%,320px)}.referral-prize-feature>.btn{grid-column:auto;max-width:none;width:100%}}
.club-site #admin-ledger-filters .admin-input-help{position:absolute;z-index:20;top:100%;inset-inline:0;max-width:100%;padding:12px;margin-top:8px;box-sizing:border-box;background:#203644;color:#f1f2ef;border:1px solid #7896a8;border-radius:8px;line-height:1.6;font-size:.875rem}
.club-site #admin-ledger-filters .admin-input-help[hidden]{display:none}
.media-upload-control{display:grid;gap:8px;margin-block:12px 20px;font-size:.875rem}
/* Match the ledger's older two-ID selectors so its columns really reflow. */
#admin-ledger-section #admin-ledger-filters{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:24px;align-items:end}
#admin-ledger-section #admin-ledger-filters>label{display:grid;grid-template-rows:minmax(24px,auto) 48px;gap:8px;align-items:end;min-width:0;margin:0}
#admin-ledger-section #admin-ledger-filters>label:first-of-type{grid-column:auto}
#admin-ledger-section #admin-ledger-filters .admin-ledger-actions{grid-column:auto;align-self:end}
@media(max-width:1100px){#admin-ledger-section #admin-ledger-filters{grid-template-columns:repeat(2,minmax(0,1fr))}#admin-ledger-section #admin-ledger-filters>label:first-of-type{grid-column:auto}}
@media(max-width:540px){#admin-ledger-section #admin-ledger-filters{grid-template-columns:minmax(0,1fr)}}
.club-site #portal-visit-content .visit-slider figure:has(iframe) figcaption{position:absolute;inset:auto 0 0;padding:16px;background:#091116e8}
.club-site .chat-thread-window>header .chat-person-avatar{flex:0 0 30px;width:30px;height:30px}
#admin-ledger-section #admin-ledger-export{min-width:0;width:100%;min-height:48px}
.workshop-composed :is(.composed-pillars p,.composed-service-catalog p,.composed-hero-photo figcaption,.composed-reviews>p,.shop-journey-steps p,.composed-evidence>p){color:color-mix(in srgb,var(--workshop-ink,#f8f7fa) 82%,transparent)}

.club-site #portal-visit-content .visit-slider[data-empty=true] [data-visit-slides]{display:none}
.club-site #portal-visit-content .visit-slider[data-empty=true] .visit-slider-empty{display:grid;place-items:center;flex:1;margin:0;padding:32px}
