/* ==========================================================================
   SilverMU /community on the Silver Codex (css/silver-inner-community.css, batch 2, 2026-11-07).
   community.php sets $bodyClass = 'svp-inner svp-inner--community' and appends '/css/silver-inner.css' then
   this sheet to $pageStyles BEFORE header.php. community.css and silver-pages.css stay (both bundled, never
   edited): they carry the .sv-comm-* classes and the per-network --card-accent* tokens this sheet reads.
   Same mechanic as the other inner sheets: @layer sv-inner, every declaration !important, selectors under
   body.svp-inner--community, new class names with the full svp- prefix. No script reads .community-* or
   .discord-hero; the panels (.white-box, section) belong to fx.js: no opacity/transform/transition on them.
   CONTENTS  1 Discord strip  2 Link cards  3 Title, closing line, page rhythm  4 Start playing  5 Phones
   ========================================================================== */
@layer sv-inner {

/* 1. Discord strip: a status panel, not a banner. Muted plate while the invite does not exist. ---------- */
body.svp-inner--community :where(.discord-hero) {
  grid-template-columns: 64px minmax(0, 1fr) auto !important;
  align-items: center !important;
  gap: var(--svp-5) !important;
  margin: 0 !important;
  padding: var(--svp-5) var(--svp-6) !important;
  border: 1px solid rgba(124, 200, 255, 0.3) !important;
  border-radius: var(--svp-r) !important;
  background:
    radial-gradient(90% 140% at 0% 0%, rgba(88, 101, 242, 0.2), transparent 62%),
    var(--svp-face-solid) !important;
  box-shadow: var(--svp-shadow) !important;
}
body.svp-inner--community :where(.discord-hero-name) {
  color: var(--svp-head) !important;
  font-family: var(--svp-font-display) !important;
  font-size: 22px !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  letter-spacing: 0.01em !important;
}
body.svp-inner--community :where(.discord-hero-desc) {
  max-width: 60ch !important;
  color: var(--svp-ink) !important;
  font-size: 17px !important;
  font-weight: 400 !important;
  line-height: 1.5 !important;
}
/* the status chip (.sv-badge--ice was 11.2px) */
body.svp-inner--community :where(.discord-hero-top .sv-badge, .discord-hero-badge) {
  padding: 5px 12px !important;
  font-size: 12px !important;
  letter-spacing: 0.12em !important;
}
body.svp-inner--community :where(.sv-comm-soon__note) {
  color: var(--svp-ink-muted) !important;
  font-size: 13px !important;
  letter-spacing: 0.14em !important;
}
body.svp-inner--community :where(.discord-hero > .sv-btn) {
  white-space: nowrap !important;
}

/* 2. Link cards: 52px brand-tinted plate, 19/17px type, a 40px action. The tints come from the
   --card-accent* variables community.css defines per network (facebook, youtube, guides, top100). */
body.svp-inner--community :where(.community-grid) {
  gap: var(--svp-4) !important;
}
body.svp-inner--community :where(.community-card) {
  grid-template-columns: minmax(0, 1fr) !important;
  align-content: start !important;
  gap: var(--svp-3) !important;
  min-height: 0 !important;
  padding: var(--svp-5) !important;
  border: 1px solid var(--svp-frame) !important;
  border-radius: var(--svp-r) !important;
  background: var(--svp-face-solid) !important;
  box-shadow: var(--svp-shadow) !important;
}
body.svp-inner--community :where(.community-card):is(:hover, :focus-visible) {
  border-color: var(--card-accent-border) !important;
  box-shadow: var(--svp-shadow), 0 0 34px -12px var(--card-accent) !important;
}
body.svp-inner--community :where(.community-card):focus-visible {
  outline: 2px solid var(--svp-ice) !important;
  outline-offset: 3px !important;
}
body.svp-inner--community :where(.community-icon) {
  width: 52px !important;
  height: 52px !important;
  border: 1px solid var(--card-accent-border) !important;
  border-radius: 14px !important;
  background: var(--card-accent-soft) !important;
  color: var(--card-accent) !important;
}
body.svp-inner--community :where(.community-icon .sv-comm-ico) {
  width: 26px !important;
  height: 26px !important;
}
body.svp-inner--community :where(.community-name) {
  color: var(--svp-head) !important;
  font-family: var(--svp-font-display) !important;
  font-size: 19px !important;
  font-weight: 700 !important;
  line-height: 1.25 !important;
  letter-spacing: 0.02em !important;
}
body.svp-inner--community :where(.community-desc) {
  color: var(--svp-ink) !important;
  font-size: 17px !important;
  font-weight: 400 !important;
  line-height: 1.45 !important;
}
body.svp-inner--community :where(.community-action) {
  justify-self: start !important;
  height: 40px !important;
  min-height: 40px !important;
  margin-top: var(--svp-2) !important;
  font-size: 13px !important;
  letter-spacing: 0.14em !important;
}

/* 3. Section title: the Codex h2 rule (26px, solid, 44px above / 16px below) applies to
   .community-section-title as a direct child of .white-box; only the old centring is cancelled. */
body.svp-inner--community :where(.community-section-title) {
  text-align: left !important;
}
/* The "player resources" strip: a quiet closing line 24px under the cards (no box) */
body.svp-inner--community :where(.community-seo-copy) {
  display: block !important;
  max-width: 46em !important; /* about 90 characters a line, not 160 */
  margin: var(--svp-5) 0 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: none !important;
  box-shadow: none !important;
  color: var(--svp-ink) !important;
  font-size: 17px !important;
  line-height: 1.5 !important;
}
body.svp-inner--community :where(.community-seo-copy strong) {
  display: inline !important;
  white-space: normal !important;
  color: var(--svp-ink-strong) !important;
  font-weight: 600 !important;
}
/* community.css gives the section margin-bottom 2.6rem on top of the Codex 24px + 32px + footer margin:
   panel to footer was 186px, the Codex standard is 144px */
body.svp-inner--community :where(main > section.container.community-page) {
  margin-bottom: 0 !important;
}
/* community.css insets the section by 27px at 761-768px: full width like every Codex page */
@media (max-width: 768px) {
  body.svp-inner--community :where(main > section.container.community-page) {
    width: 100% !important;
  }
}

/* 4. Start playing: one row, the heading left, the two actions right (wraps under it when narrow) */
body.svp-inner--community :where(.svp-comm-play .svp-head) {
  align-items: center !important;
  margin: 0 !important;
}
body.svp-inner--community :where(.svp-comm-play .svp-head__main) {
  flex: 1 1 260px !important;
}
body.svp-inner--community :where(.svp-comm-play .svp-mast-row) {
  margin: 0 !important;
}

/* 5. Phones and small tablets: the strip stacks under its icon, cards go icon-left */
@media (max-width: 760px) {
  /* the Home crumb is a 44px-wide target like the rest of the touch targets (as silver-inner-legal.css) */
  body.svp-inner--community .breadcrumb-nav a {
    display: inline-flex !important;
    align-items: center !important;
    min-width: 44px !important;
  }
  body.svp-inner--community :where(.discord-hero) {
    grid-template-columns: 48px minmax(0, 1fr) !important;
    gap: var(--svp-3) var(--svp-4) !important;
    padding: var(--svp-4) !important;
  }
  body.svp-inner--community :where(.sv-comm-soon__note, .discord-hero > .sv-btn, .discord-hero-cta) {
    grid-column: 1 / -1 !important;
    justify-self: stretch !important;
    text-align: center !important;
  }
  /* 320px: the 12px status chip wraps inside the card instead of widening the text column */
  body.svp-inner--community :where(.discord-hero-top .sv-badge, .discord-hero-badge) {
    max-width: 100% !important;
    white-space: normal !important;
  }
  body.svp-inner--community :where(.community-card) {
    grid-template-columns: 52px minmax(0, 1fr) !important;
    column-gap: var(--svp-4) !important;
    padding: var(--svp-4) !important;
  }
  body.svp-inner--community :where(.community-card-body) {
    gap: var(--svp-1) !important;
  }
  body.svp-inner--community :where(.svp-comm-play .svp-mast-row) {
    width: 100% !important;
  }
  body.svp-inner--community :where(.svp-comm-play .svp-mast-row > .sv-btn) {
    flex: 1 1 auto !important;
    min-height: 44px !important;
  }
}

}
