/* Download, support, and public recognition share the site's light, flat frame. */
.community-main { width: min(960px, calc(100% - 64px)); margin: 0 auto; padding: 170px 0 112px; }
.community-hero { position: relative; padding-right: 120px; margin-bottom: 72px; }
.community-eyebrow { color: var(--accent, #375865); font-size: 17px; font-weight: 600; line-height: 1.35; letter-spacing: -.01em; margin: 0 0 12px; }
.community-hero h1 { max-width: 790px; margin: 0; font-size: clamp(36px, 4.4vw, 60px); font-weight: 700; line-height: 1.08; letter-spacing: -.025em; text-wrap: balance; }
.community-hero h1 span { display: block; color: var(--muted); }
.community-app { position: absolute; width: 88px; height: 88px; top: 36px; right: 0; }
.community-lead { max-width: 62ch; margin: 22px 0 0; color: var(--ink); font-size: 1.1875rem; line-height: 1.65; }
/* The download panel: a flat tonal card whose tile shows the state (arrow, check, alert)
   and whose pill says what pressing it does next. download.ts writes data-state. */
.download-state { margin: 32px 0 0; padding: 18px 18px 18px 20px; border-radius: 20px; background: rgb(24 33 38 / .045); display: flex; align-items: center; gap: 16px; }
.download-state-mark { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: #fff; color: var(--accent, #375865); }
.download-state-mark svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.download-glyph-done, .download-glyph-error, [data-state="done"] .download-glyph-idle, [data-state="error"] .download-glyph-idle { display: none; }
[data-state="done"] .download-glyph-done, [data-state="error"] .download-glyph-error { display: inline; }
.download-state[data-state="done"] .download-state-mark { background: var(--accent, #375865); color: #fff; }
.download-state[data-state="error"] .download-state-mark { color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line, #d6dde0); }
.download-state-text { flex: 1; min-width: 0; }
.download-state-text p { margin: 0; color: var(--ink); font-size: 16px; font-weight: 600; line-height: 1.45; }
.download-state-text small { display: block; margin-top: 2px; color: var(--muted); font-size: 13px; line-height: 1.5; font-variant-numeric: tabular-nums; }
.download-state .download-retry { flex: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px 0 17px; border: 1px solid var(--ink); border-radius: 999px; background: var(--ink); color: #fff; font-size: 14px; font-weight: 600; line-height: 1; white-space: nowrap; text-decoration: none; }
.download-retry svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.download-state[data-state="done"] .download-retry { border-color: var(--line, #d6dde0); background: #fff; color: var(--ink); }
.download-retry[aria-busy="true"] { cursor: progress; opacity: .6; }
.community-links { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 12px; margin: 0; }
.community-link { display: flex; align-items: center; gap: 14px; padding: 20px; border-radius: 16px; background: #f4f6f7; color: var(--ink); text-decoration: none; }
.community-link-mark { flex: none; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1px rgb(0 0 0 / .06); }
/* styles.css draws every svg as a 20u stroked icon; the brand marks are filled
   drawings sized by height, their width following the viewBox. */
svg.mark { width: auto; height: 24px; fill: currentColor; stroke: none; }
.mark-github { height: 22px; }
.community-link-line { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.community-link strong { font-size: 15px; font-weight: 650; display: block; }
.community-link small { display: block; margin-top: 3px; color: var(--muted); font-size: 12px; line-height: 1.55; }
.community-link--discord { background: #eef0ff; }
.community-link--discord .community-link-mark { background: #5865f2; color: #fff; box-shadow: none; }
.community-link-cta { flex: none; margin-left: auto; padding: 7px 13px; border-radius: 999px; background: #5865f2; color: #fff; font-size: 13px; font-weight: 600; white-space: nowrap; }
.community-note a { color: var(--accent); text-decoration: underline; text-underline-offset: .18em; }
.community-note { color: var(--muted); font-size: 1rem; line-height: 1.7; margin: 18px 0 0; }
.community-home { padding-block: clamp(48px, 6vw, 88px); text-align: center; }
.community-home h2 { margin: 0 0 24px; font-size: clamp(30px, 4vw, 52px); font-weight: 700; line-height: 1.1; letter-spacing: -.025em; text-wrap: balance; }
.backer-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: center; }
.backer-row > a { max-width: 100%; }
.backer-invite { display: inline-flex; align-items: center; gap: 4px; color: var(--accent, #375865); text-decoration: none; border-radius: 32px; }
.backer-invite span { font: 600 clamp(17px, 2vw, 22px)/1.3 "Bradley Hand", "Kaiti SC", cursive; transform-origin: left center; transform: rotate(-5deg); }
.backer-invite:hover span, .backer-invite:focus-visible span { text-decoration: underline; text-underline-offset: 4px; }
.backer-invite svg:first-child { width: 64px; height: 64px; }
.backer-arrow { width: clamp(28px, 6vw, 49px); height: 32px; }
@media (max-width: 360px) {
  .backer-invite span { max-width: 8ch; text-wrap: balance; }
}
.community-home img { display: block; max-width: 100%; height: auto; }
.community-main a:focus-visible, .community-home a:focus-visible { outline: 3px solid #375865; outline-offset: 4px; }
html[lang="zh-Hans"] .community-hero h1 { line-height: 1.22; }
@media (hover: hover) {
  .community-link:hover { background: #eaf0f2; }
  .community-link--discord:hover { background: #e3e6ff; }
  .download-state .download-retry:hover { border-color: var(--accent, #375865); background: var(--accent, #375865); color: #fff; }
  .download-state[data-state="done"] .download-retry:hover { border-color: var(--accent, #375865); background: var(--tint, #e8eef1); color: var(--ink); }
}
@media (prefers-reduced-motion: no-preference) {
  .community-link { transition: background-color 150ms, border-color 150ms; }
  .download-state .download-retry { transition: background-color 150ms, border-color 150ms, color 150ms, transform 120ms; }
  .download-state .download-retry:active { transform: scale(.98); }
  .download-state-mark { transition: background-color 200ms, color 200ms; }
  [data-state="pending"] .download-glyph-idle { animation: download-bob 900ms ease-in-out infinite; }
  @keyframes download-bob { 50% { transform: translateY(2px); } }
}
@media (max-width: 760px) {
  .community-main { width: calc(100% - 40px); padding-top: 132px; padding-bottom: 72px; }
  .community-hero { padding-right: 0; margin-bottom: 48px; }
  .community-app { position: static; width: 64px; height: 64px; margin: 0 0 22px; }
  .community-hero h1 { font-size: clamp(34px, 7.3vw, 48px); }
  .community-eyebrow { margin-bottom: 10px; font-size: 15px; }
  .community-lead { font-size: 1.0625rem; margin-top: 18px; }
  .community-links { grid-template-columns: 1fr 1fr; gap: 10px; }
  .community-link--discord { grid-column: 1 / -1; }
  .community-link { padding: 16px; gap: 12px; }
  .community-link strong { font-size: 14px; }
  .community-link small { font-size: 12px; }
  .download-state { flex-wrap: wrap; gap: 14px; padding: 16px; border-radius: 18px; }
  .download-state-mark { width: 44px; height: 44px; border-radius: 13px; }
  .download-state-text p { font-size: 15px; }
  .download-state .download-retry { flex: 1 0 100%; }
}
@media (forced-colors: active) {
  .community-link, .download-state, .download-state-mark { border: 1px solid CanvasText; }
  .download-state .download-retry { border-color: LinkText; color: LinkText; }
  .community-link-mark { forced-color-adjust: none; }
  .community-main a:focus-visible, .community-home a:focus-visible { outline-color: Highlight; }
}
