/* CLIMB v1.4.52 — Intelligence-guided flow polish.
   Preserve authored page content; improve hierarchy, continuity and responsive fit. */

body.climb-complete-site{
  --climb-flow-max:1180px;
  --climb-flow-gap:clamp(18px,3vw,32px);
}

/* Keep canonical WordPress/Elementor/BuddyBoss content available at full usable width. */
body.climb-complete-site :is(.entry-content,.elementor,.elementor-page,.climb-page-shell,.climb-complete-site__main){min-width:0;max-width:100%}
body.climb-complete-site .climb-sem-managed-components,
body.climb-complete-site .climb-managed-components{width:min(var(--climb-flow-max),calc(100% - 32px));max-width:var(--climb-flow-max);margin-inline:auto}
body.climb-complete-site .climb-replacement-section-group:empty,
body.climb-complete-site .climb-preserve-first-fallback:empty{display:none!important}

/* One current action first; supporting routes should read as supporting routes. */
body.climb-complete-site :is(.climb-related-routes,.climb-contextual-route-access,.climb-connected-routes){margin-top:var(--climb-flow-gap)}
body.climb-complete-site :is(.climb-related-routes__grid,.climb-contextual-route-access__grid){align-items:stretch}
body.climb-complete-site :is(.climb-related-route-card,.climb-contextual-route-card){height:100%}

/* Your CLIMB Guide: current route first, then progress, protection/context and optional connected routes. */
body.climb-surface-your-climb-guide .climb-parity-navigation,
body.climb-surface-your-climb-guide .climb-member-dashboard{margin-bottom:0}
body.climb-surface-your-climb-guide :is(.climb-page-legal-context,.climb-contextual-legal-notice){max-width:58rem}

/* Guided: the exact active need/status stays visually dominant; return/support stays secondary. */
body.climb-surface-guided-experience .climb-guided-experience,
body.climb-surface-guided-experience .climb-maker-journey-landing{margin-inline:auto}
body.climb-surface-guided-experience :is(.climb-related-routes,.climb-contextual-route-access){margin-top:1.25rem}

/* Maker Paths: Spotlight is evidence beside/after the path decision, never a replacement for the path choices. */
body.climb-surface-maker-paths .climb-contextual-spotlight-flow{margin:1.25rem 0}
body.climb-surface-maker-paths .climb-contextual-spotlight-flow .climb-contribution-showcase{padding:clamp(14px,2vw,22px)}
body.climb-surface-maker-paths .climb-contextual-spotlight-flow .climb-page-section-heading{margin-bottom:.75rem}

/* Maker Vault: current/recommended support first, optional browsing next, return last. */
body.climb-surface-maker-vault .climb-parity-vault{margin-bottom:0}
body.climb-surface-maker-vault .climb-related-routes{margin-top:1rem}

/* Support: keep ordinary support readable and keep emergency/legal boundary separate. */
body.climb-surface-support :is(.climb-feedback,.climb-support-navigator,.climb-support-form,.climb-support-list){max-width:100%}
body.climb-surface-support :is(.climb-danger,.climb-emergency,.climb-alert,.is-danger,[class*="immediate-danger"]){min-width:0;max-width:100%;overflow-wrap:anywhere;word-break:normal}
body.climb-surface-support :is(.climb-danger,.climb-emergency,.climb-alert,.is-danger,[class*="immediate-danger"]) p{max-width:72ch!important;white-space:normal!important;writing-mode:horizontal-tb!important}
body.climb-surface-support .climb-support-form{width:min(100%,760px)}

/* Participation: discovery is one lane; member status is the second lane, not a wall of competing actions. */
body.climb-surface-participate :is(.climb-participation-discovery,.climb-my-participation,.climb-participation-continuity){width:100%;max-width:100%}
body.climb-surface-participate .climb-related-routes{margin-top:1.25rem}
body.climb-surface-my-participation :is(.climb-my-participation,.climb-participation-continuity){width:100%;max-width:100%}

/* Contributions: current contribution status/action first; Spotlight is an example of what sharing can become. */
body.climb-surface-my-contributions .climb-contextual-spotlight-flow{margin-top:1.25rem}
body.climb-surface-my-contributions .climb-contextual-spotlight-flow .climb-page-section-heading h2::before{content:"Example: ";font-size:.72em}

/* Maker Spotlights: preserve rich cards/pop-outs and make the dedicated gallery use the available content width. */
body.climb-surface-maker-spotlights .climb-spotlight-dedicated-shell,
body.climb-surface-maker-spotlights .climb-spotlight-gallery-panel{width:100%;max-width:100%;margin-inline:auto}
body.climb-surface-maker-spotlights .climb-contribution-showcase__grid{align-items:stretch}
body.climb-surface-maker-spotlights .climb-contribution-card{height:100%}

/* Referral: keep one optional sharing action; support and shared-route history remain secondary. */
body.climb-surface-refer-a-maker .climb-parity-guided form{max-width:760px}
body.climb-surface-refer-a-maker .climb-related-routes{margin-top:1rem}

/* Trust: grouped choices first; optional connected routes remain secondary. */
body.climb-surface-trust-legal-center .climb-parity-trust{width:100%;max-width:100%}
body.climb-surface-trust-legal-center .climb-related-routes{margin-top:1rem}

/* About founder transcript remains usable even in narrow webviews. */
.climb-story-popout__transcript{overflow-wrap:anywhere}
.climb-story-popout__transcript p{max-width:74ch}

@media(min-width:1100px){
  /* BuddyBoss member shell: do not artificially squeeze these task pages into the far-right half. */
  body.climb-layout-member-full:is(.climb-surface-participate,.climb-surface-my-participation,.climb-surface-my-contributions,.climb-surface-maker-spotlights,.climb-surface-refer-a-maker,.climb-surface-trust-legal-center) :is(#primary,.content-area,.site-main){max-width:none!important;min-width:0!important}
}

@media(max-width:767px){
  body.climb-complete-site .climb-sem-managed-components,
  body.climb-complete-site .climb-managed-components{width:min(100% - 24px,var(--climb-flow-max))}
}

/* Several preserved task pages still carry an old empty Elementor column. Keep the authored widgets,
   but let the populated column reclaim the space instead of rendering the page in the far-right half. */
@supports selector(:has(*)){
  body:is(.climb-surface-participate,.climb-surface-my-participation,.climb-surface-my-contributions,.climb-surface-maker-spotlights,.climb-surface-refer-a-maker,.climb-surface-trust-legal-center)
  .elementor-row:has(> .elementor-column:not(:has(.elementor-widget))) > .elementor-column:not(:has(.elementor-widget)){display:none!important}
  body:is(.climb-surface-participate,.climb-surface-my-participation,.climb-surface-my-contributions,.climb-surface-maker-spotlights,.climb-surface-refer-a-maker,.climb-surface-trust-legal-center)
  .elementor-row:has(> .elementor-column:not(:has(.elementor-widget))) > .elementor-column:has(.elementor-widget){width:100%!important;max-width:100%!important}
}
