.c58-community-portal{margin:32px auto 48px}
.c58-portal-nav{padding:10px 14px;background:#fff;border:1px solid #dedcda;border-radius:10px;gap:8px!important}
.c58-portal-nav a{display:inline-flex;align-items:center;min-height:44px;padding:6px 14px;border-radius:7px;font-weight:700;text-decoration:none}
.c58-portal-nav a:hover,.c58-portal-nav a[aria-current=page]{background:#fff5cb}
.c58-portal-intro{margin-top:24px}
.c58-community-portal h2{font-size:26px;line-height:1.3;margin:0 0 12px}
.c58-community-portal h3{font-size:23px;line-height:1.3;margin:0 0 10px}
.c58-community-portal .c58-community-card h2 a{text-decoration:none}
.c58-community-portal .c58-community-card h2 a:hover{color:#6b5500}
.c58-portal-link{display:inline-flex;align-items:center;gap:14px;min-height:44px;font-weight:700}
.c58-portal-actions{display:flex;flex-wrap:wrap;gap:20px;align-items:center}
.c58-portal-button{display:inline-flex;justify-content:center;align-items:center;gap:14px;min-height:44px;background:#BF402B;border:1px solid #d4aa00;border-radius:8px;padding:9px 20px;font-weight:700;text-decoration:none!important;box-sizing:border-box;max-width:100%;color:#FFFFFF;}
.c58-portal-button:hover{background:#fff5cb}
.c58-community-portal button:disabled{background:#e3e2df;border-color:#c5c3be;color:#595856;cursor:not-allowed}
.c58-community-portal p{margin:0 0 18px}
.c58-community-portal .c58-community-notice{margin:18px 0 0;font-size:15px;line-height:1.6}
.c58-hub-section{margin:30px 0}
.c58-hub-heading{display:flex;flex-wrap:wrap;align-items:center;gap:14px;margin-bottom:10px}
.c58-hub-heading h2{margin:0}
.c58-hub-tag{display:inline-flex;border:1px solid #dedcda;background:#fff;border-radius:20px;font-size:13px;line-height:1.4;font-weight:700;padding:6px 12px;color:#4b4b4b}
.c58-hub-description{color:#4b4b4b;max-width:780px}
.c58-hub-spaces{grid-template-columns:repeat(3,minmax(0,1fr));align-items:stretch}
.c58-hub-space{margin:0;display:flex;flex-direction:column;min-width:0}
.c58-hub-space p{color:#4b4b4b}
.c58-hub-icon{display:flex;align-items:center;justify-content:center;width:42px;height:42px;background:#fff5cb;border-radius:10px;color:#514722;font-size:24px;font-weight:700;margin-bottom:18px}
.c58-hub-space-status{font-size:13px;color:#535353;margin-top:auto;padding-top:8px}
.c58-hub-account{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-top:30px}
.c58-hub-account>div{max-width:810px}
.c58-hub-account p{margin-bottom:0}
.c58-hub-account .c58-portal-button{flex-shrink:0}
.c58-hub-join{margin-top:28px}
@media(max-width:1100px){.c58-hub-spaces{grid-template-columns:repeat(2,minmax(0,1fr))}.c58-hub-account{align-items:flex-start;flex-direction:column}}
@media(max-width:767px){.c58-portal-nav{gap:4px!important;padding:8px}.c58-portal-nav a{padding:8px 10px;font-size:15px}.c58-community-portal h2{font-size:23px}.c58-community-portal h3{font-size:21px}.c58-community-portal{padding:0 14px}.c58-hub-spaces{grid-template-columns:1fr}.c58-hub-heading{align-items:flex-start}.c58-hub-account{gap:18px}.c58-hub-section{margin:24px 0}}

/* The public Community cards lead through the existing authenticated member gate. */
.c58-community-portal .c58-hub-space-link{text-decoration:none;color:#39383a;transition:border-color .15s,box-shadow .15s}
.c58-community-portal .c58-hub-space-link:hover{border-color:#b59819;box-shadow:0 5px 16px rgba(57,56,58,.12);background:#fff}
.c58-community-portal .c58-hub-space-link:focus-visible{outline:3px solid #39383a;outline-offset:4px}
.c58-hub-space-cta{display:flex;align-items:center;gap:12px;min-height:44px;font-weight:700;text-decoration:underline;text-underline-offset:4px;margin-top:auto}
.c58-hub-space-link .c58-hub-space-status{margin-top:0;padding-top:2px}

/* Compact touch-friendly cards: no fixed width or tall empty mobile panels. */
@media(max-width:767px){
 .c58-community-portal{padding:0 14px;margin-top:20px}
 .c58-community-portal .c58-hub-spaces{grid-template-columns:minmax(0,1fr);gap:14px}
 .c58-community-portal .c58-hub-space{display:grid;grid-template-columns:36px minmax(0,1fr);column-gap:12px;row-gap:10px;padding:16px;min-height:0;box-sizing:border-box;overflow-wrap:anywhere}
 .c58-community-portal .c58-hub-icon{grid-column:1;grid-row:1;margin:0;width:36px;height:36px;font-size:21px}
 .c58-community-portal .c58-hub-space h3{grid-column:2;grid-row:1;align-self:center;margin:0;font-size:20px;line-height:1.25}
 .c58-community-portal .c58-hub-space p{grid-column:1/-1;margin:0;line-height:1.5}
 .c58-community-portal .c58-hub-space-cta{grid-column:1/-1;margin:0;min-height:44px}
 .c58-community-portal .c58-hub-space-status{grid-column:1/-1;margin:0;padding:0}
}
