/* Community homepage: shared Bracketr surfaces and appearance tokens. */
.home-community { background: var(--bg); color: var(--text); }
.home-community::before, .home-community::after { display: none; }
.home-community .community-home-main { width: min(1440px, calc(100% - 64px)); margin: 0 auto; padding: 40px 0 52px; }
.community-welcome { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.home-community .community-welcome {
  min-height: 228px;
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background-color: var(--surface, var(--panel));
  background-image: linear-gradient(90deg,
    color-mix(in srgb, var(--bg) 97%, transparent) 0%,
    color-mix(in srgb, var(--bg) 88%, transparent) 46%,
    color-mix(in srgb, var(--bg) 30%, transparent) 100%),
    url("/assets/images/player-dashboard-news-arena-v1.webp");
  background-position: center, center 48%;
  background-size: cover;
  background-repeat: no-repeat;
}
.community-kicker { color: var(--theme-link, var(--blue)); font-size: .7rem; font-weight: 800; letter-spacing: .15em; margin: 0 0 10px; }
.community-welcome h1 { font-size: clamp(2rem, 3vw, 3rem); line-height: 1.12; letter-spacing: -.035em; text-shadow: none; margin: 0 0 12px; }
.community-welcome > div > p:not(.community-kicker) { color: var(--muted); line-height: 1.6; max-width: 660px; }
.community-dashboard { background: var(--theme-action-fill); color: var(--theme-action-text); border: 1px solid var(--border2); border-radius: 7px; padding: 13px 18px; font-size: .85rem; font-weight: 700; text-align: center; }
.community-paths { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.community-path { display: flex; align-items: center; gap: 16px; padding: 22px; background: var(--surface, var(--panel)); border: 1px solid var(--border); border-radius: 9px; }
.community-path > div { flex: 1; min-width: 0; }
.community-path h2 { font-size: 1rem; margin: 0 0 7px; line-height: 1.4; }
.community-path p { color: var(--muted); font-size: .82rem; line-height: 1.5; }
.community-path-icon { color: var(--theme-link, var(--blue)); font-size: 1.6rem; }
.community-path:hover, .community-event:hover { border-color: var(--border2); background: var(--surface-2, var(--panel2)); }
.community-section { margin-top: 36px; scroll-margin-top: 24px; }
.community-section[hidden], .community-load-status[hidden] { display: none; }
.community-section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 16px; }
.community-section-head h2 { font-size: 1.45rem; letter-spacing: -.02em; }
.community-section-head a { font-size: .83rem; color: var(--muted); padding: 8px 0; }
.community-event-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.community-event { min-width: 0; display: flex; flex-direction: column; padding: 22px; border: 1px solid var(--border); border-radius: 9px; background: var(--surface, var(--panel)); overflow-wrap: anywhere; }
.community-event-banner { display: block; width: calc(100% + 44px); max-width: none; height: auto; aspect-ratio: 8 / 3; object-fit: cover; flex-shrink: 0; margin: -22px -22px 20px; border-radius: 8px 8px 0 0; background: var(--surface-2, var(--panel2)); }
.community-event-top { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 20px; }
.community-event-logo { width: 56px; height: 56px; display: grid; place-items: center; flex-shrink: 0; background: var(--surface-2, var(--panel2)); border-radius: 8px; color: var(--text); font-weight: 800; }
.community-event-logo img { width: 100%; height: 100%; object-fit: contain; border-radius: inherit; }
.community-event-badge { color: var(--theme-link, var(--blue)); font-weight: 700; font-size: .7rem; text-align: right; }
.community-event h3 { margin: 0 0 8px; font-size: 1.12rem; line-height: 1.4; }
.community-event p { color: var(--muted); font-size: .8rem; line-height: 1.5; margin-bottom: 20px; }
.community-event-detail { color: var(--muted); font-size: .8rem; line-height: 1.5; margin-top: auto; padding-bottom: 16px; }
.community-event-link { border-top: 1px solid var(--border); padding-top: 14px; font-size: .82rem; }
.community-empty { grid-column: 1 / -1; border: 1px dashed var(--border); border-radius: 9px; padding: 24px; font-size: .9rem; color: var(--muted); line-height: 1.6; }
.community-load-status { color: var(--muted); margin-top: 24px; line-height: 1.6; }
.community-load-status button { color: var(--text); background: var(--surface, var(--panel)); font: inherit; border: 1px solid var(--border2); border-radius: 6px; padding: 6px 12px; cursor: pointer; }
.home-community :is(a, button):focus-visible { outline: 3px solid var(--theme-focus, var(--blue)); outline-offset: 4px; }
@media (max-width: 1000px) {
  .community-path { align-items: flex-start; padding: 18px; gap: 12px; }
  .community-path-icon { display: none; }
}
@media (max-width: 700px) {
  .home-community .community-home-main { width: calc(100% - 32px); padding-top: 26px; }
  .community-welcome { flex-direction: column; align-items: flex-start; gap: 18px; }
  .home-community .community-welcome {
    padding: 24px;
    background-image: linear-gradient(
      color-mix(in srgb, var(--bg) 87%, transparent),
      color-mix(in srgb, var(--bg) 92%, transparent)),
      url("/assets/images/player-dashboard-news-arena-v1.webp");
  }
  .community-paths, .community-event-grid { grid-template-columns: 1fr; }
  .community-path-icon { display: block; }
  .community-path { align-items: center; }
  .community-section-head { align-items: flex-start; flex-direction: column; gap: 6px; }
}

.community-welcome .community-dashboard { display: inline-flex; margin-top: 18px; }
.community-results-preview { display: grid; gap: 10px; width: min(30%, 270px); flex-shrink: 0; padding: 16px; border: 1px solid var(--border2); border-radius: 9px; background: color-mix(in srgb, var(--surface, var(--panel)) 90%, transparent); color: var(--text); }
.community-results-preview svg { display: block; width: 100%; height: auto; }
.community-bracket-connectors { stroke: var(--theme-link, var(--blue)); stroke-width: 2; }
.community-bracket-slots { fill: var(--surface-2, var(--panel2)); stroke: var(--border2); }
.community-bracket-slots .community-bracket-final { stroke: var(--theme-link, var(--blue)); }
.community-standings-lines { stroke: var(--muted); stroke-width: 3; stroke-linecap: round; }
.community-results-preview span { font-size: .88rem; font-weight: 700; line-height: 1.5; }
@media (max-width: 700px) { .community-results-preview { width: 100%; max-width: 210px; padding: 12px; } .community-results-preview svg { max-height: 62px; } }

/* Useful discovery guidance remains available while no public events can be shown. */
.community-event-grid[hidden], .community-discovery-guide[hidden], .community-discovery-note[hidden] { display: none; }
.community-discovery-note { color: var(--muted); font-size: .9rem; line-height: 1.6; margin-bottom: 18px; }
.community-discovery-guide { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 32px; padding: 28px; border: 1px solid var(--border); border-radius: 9px; background: var(--surface, var(--panel)); }
.community-guide-mark { display: block; color: var(--theme-link, var(--blue)); font-size: .75rem; font-weight: 800; letter-spacing: .1em; margin-bottom: 12px; }
.community-discovery-guide h3, .community-start h3 { font-size: 1rem; line-height: 1.4; margin-bottom: 8px; }
.community-discovery-guide p, .community-start p { color: var(--muted); font-size: .88rem; line-height: 1.65; }
.community-guide-link { display: inline-block; color: var(--theme-link, var(--blue)); font-size: .85rem; line-height: 1.5; font-weight: 700; }
.community-discovery-guide > .community-guide-link { grid-column: 1 / -1; justify-self: start; }
.community-start { margin-top: 36px; padding: 28px; background: var(--surface, var(--panel)); border: 1px solid var(--border); border-radius: 9px; }
.community-start-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.community-start h2 { font-size: 1.45rem; letter-spacing: -.02em; margin-bottom: 8px; }
.community-start .community-dashboard { display: inline-flex; justify-content: center; align-items: center; flex-shrink: 0; min-height: 44px; }
.community-start-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; padding: 22px 0; margin: 22px 0 0; border-top: 1px solid var(--border); }
.community-start-steps li { margin-left: 20px; padding-left: 6px; }
.community-start-steps li::marker { color: var(--theme-link, var(--blue)); font-weight: 800; }
@media (max-width: 700px) {
  .community-discovery-guide, .community-start-steps { grid-template-columns: 1fr; }
  .community-discovery-guide, .community-start { padding: 22px; }
  .community-start-heading { flex-direction: column; align-items: flex-start; gap: 18px; }
}
