.rf-community-page { display: none; overflow: clip; color: #202020; background: #fff; }
.rf-community-page:target,
body:has(#rf-community-featured:target) .rf-community-page,
body:has(#rf-community-categories:target) .rf-community-page,
body:has(#rf-community-topics:target) .rf-community-page,
body:has(#rf-community-rules:target) .rf-community-page { display: block !important; }

body:has(#rinfire-community:target) :is(.rf-download-page, .rf-assistant-page, .rf-support-page, .rf-gun-support-page, .rf-gun-manual-page, .rf-tutorial-page, .rf-gun-faq-page, .rf-after-sales-page, .rf-controller-support-page, .rf-gun-product, .rf-mcs-page, .rf-why-cod-page),
body:has(#rf-community-featured:target) :is(.rf-download-page, .rf-assistant-page, .rf-support-page, .rf-gun-support-page, .rf-gun-manual-page, .rf-tutorial-page, .rf-gun-faq-page, .rf-after-sales-page, .rf-controller-support-page, .rf-gun-product, .rf-mcs-page, .rf-why-cod-page),
body:has(#rf-community-categories:target) :is(.rf-download-page, .rf-assistant-page, .rf-support-page, .rf-gun-support-page, .rf-gun-manual-page, .rf-tutorial-page, .rf-gun-faq-page, .rf-after-sales-page, .rf-controller-support-page, .rf-gun-product, .rf-mcs-page, .rf-why-cod-page),
body:has(#rf-community-topics:target) :is(.rf-download-page, .rf-assistant-page, .rf-support-page, .rf-gun-support-page, .rf-gun-manual-page, .rf-tutorial-page, .rf-gun-faq-page, .rf-after-sales-page, .rf-controller-support-page, .rf-gun-product, .rf-mcs-page, .rf-why-cod-page),
body:has(#rf-community-rules:target) :is(.rf-download-page, .rf-assistant-page, .rf-support-page, .rf-gun-support-page, .rf-gun-manual-page, .rf-tutorial-page, .rf-gun-faq-page, .rf-after-sales-page, .rf-controller-support-page, .rf-gun-product, .rf-mcs-page, .rf-why-cod-page) { display: none !important; }

.rf-community-container { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
.rf-community-eyebrow { margin: 0 0 14px; color: #ff8200; font-size: 13px; font-weight: 800; line-height: 1.4; letter-spacing: .18em; text-transform: uppercase; }
.rf-community-page h2 { margin: 0; font-size: clamp(34px, 4.4vw, 58px); line-height: 1.14; letter-spacing: -.035em; }

.rf-community-hero { position: relative; min-height: 620px; display: flex; align-items: center; overflow: hidden; padding-block: 68px; color: #fff; background: #111; }
.rf-community-hero > img { position: absolute; top: 50%; right: max(24px, calc((100vw - 1180px) / 2)); width: min(52vw, 650px); height: min(480px, calc(100% - 104px)); display: block; border-radius: 28px; object-fit: cover; object-position: 58% center; filter: saturate(.82) contrast(1.05); transform: translateY(-50%); box-shadow: 0 28px 70px rgba(0, 0, 0, .34); }
.rf-community-hero-shade { position: absolute; z-index: 1; inset: 0; background: linear-gradient(90deg, #111 0%, #111 38%, rgba(17, 17, 17, .93) 47%, rgba(17, 17, 17, .2) 75%, rgba(17, 17, 17, .08)); }
.rf-community-hero-content { position: relative; z-index: 2; }
.rf-community-hero h1 { max-width: 590px; margin: 0; font-size: clamp(42px, 4.6vw, 62px); line-height: 1.09; letter-spacing: -.044em; }
.rf-community-hero-content > p:not(.rf-community-eyebrow) { max-width: 530px; margin: 22px 0 0; color: rgba(255, 255, 255, .74); font-size: 17px; line-height: 1.8; }
.rf-community-hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.rf-community-button { min-width: 148px; min-height: 50px; display: inline-flex; align-items: center; justify-content: center; margin-top: 30px; padding: 0 26px; border: 1px solid #ff8200; border-radius: 999px; color: #161616 !important; font-weight: 750; text-decoration: none !important; background: #ff8200; transition: transform .2s ease, background-color .2s ease, color .2s ease; }
.rf-community-button:hover,
.rf-community-button:focus-visible { color: #fff !important; background: transparent; transform: translateY(-2px); }
.rf-community-button-outline { color: #fff !important; background: transparent; }
.rf-community-button-outline:hover,
.rf-community-button-outline:focus-visible { color: #161616 !important; background: #ff8200; }

.rf-community-jump-nav { position: sticky; top: var(--rf-header-height, 72px); z-index: 8; border-bottom: 1px solid #e9e9e9; background: rgba(255, 255, 255, .94); backdrop-filter: blur(14px); }
.rf-community-jump-nav .rf-community-container { min-height: 62px; display: flex; align-items: center; justify-content: center; gap: clamp(26px, 5vw, 68px); overflow-x: auto; scrollbar-width: none; }
.rf-community-jump-nav a { flex: 0 0 auto; color: #555; font-size: 14px; font-weight: 700; text-decoration: none; }
.rf-community-jump-nav a:hover,
.rf-community-jump-nav a:focus-visible { color: #ff8200; }

.rf-community-intro,
.rf-community-categories,
.rf-community-topics,
.rf-community-rules { padding: clamp(80px, 9vw, 132px) 0; }
.rf-community-section-heading { max-width: 760px; margin: 0 auto clamp(48px, 6vw, 78px); text-align: center; }
.rf-community-section-heading > p:last-child { margin: 22px auto 0; color: #686868; font-size: 17px; line-height: 1.85; }
.rf-community-heading-row { max-width: none; display: grid; grid-template-columns: 1fr .8fr; gap: 60px; align-items: end; text-align: left; }
.rf-community-heading-row > p:last-child { margin: 0; }

.rf-community-feature-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(320px, .55fr); gap: 22px; }
.rf-community-feature-main { position: relative; min-height: 520px; display: flex; align-items: flex-end; overflow: hidden; border-radius: 28px; color: #fff !important; text-decoration: none !important; background: #111; }
.rf-community-feature-main > img,
.rf-community-card-shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.rf-community-feature-main > img { object-fit: cover; transition: transform .45s ease; }
.rf-community-card-shade { background: linear-gradient(0deg, rgba(0, 0, 0, .9), transparent 66%); }
.rf-community-feature-main:hover > img { transform: scale(1.025); }
.rf-community-feature-copy { position: relative; z-index: 1; display: grid; gap: 10px; padding: clamp(28px, 4vw, 52px); }
.rf-community-feature-copy small { color: #ff8200; font-weight: 800; letter-spacing: .12em; }
.rf-community-feature-copy strong { max-width: 650px; font-size: clamp(28px, 3.4vw, 45px); line-height: 1.2; }
.rf-community-feature-copy em { color: rgba(255, 255, 255, .75); font-style: normal; }
.rf-community-starter-list { display: grid; gap: 14px; }
.rf-community-starter-list a { min-height: 0; display: grid; grid-template-columns: 48px 1fr; gap: 16px; align-items: center; padding: 26px; border: 1px solid #e1e1e1; border-radius: 22px; color: #222 !important; text-decoration: none !important; background: #fafafa; transition: border-color .2s ease, transform .2s ease; }
.rf-community-starter-list a:hover,
.rf-community-starter-list a:focus-visible { border-color: #ff8200; transform: translateY(-2px); }
.rf-community-starter-list a > span { color: #ff8200; font-size: 22px; font-weight: 800; }
.rf-community-starter-list div { display: grid; gap: 6px; }
.rf-community-starter-list small { color: #888; }
.rf-community-starter-list strong { font-size: 17px; line-height: 1.45; }

.rf-community-categories { background: #f3f3f3; }
.rf-community-category-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.rf-community-category-card { min-width: 0; min-height: 230px; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end; padding: 28px 24px; border: 1px solid #dedede; border-radius: 22px; color: #222; text-align: left; background: #fff; cursor: pointer; transition: color .2s ease, border-color .2s ease, background-color .2s ease, transform .2s ease; }
.rf-community-category-card:hover,
.rf-community-category-card:focus-visible { border-color: #ff8200; transform: translateY(-4px); }
.rf-community-category-icon { width: 54px; height: 44px; display: inline-flex; align-items: center; justify-content: center; margin-bottom: auto; border: 1px solid #dedede; border-radius: 12px; color: #ff8200; font-size: 13px; font-weight: 900; letter-spacing: .04em; background: #f7f7f7; }
.rf-community-category-card strong { margin-top: 30px; font-size: 19px; }
.rf-community-category-card small { margin-top: 10px; color: #777; line-height: 1.6; }

.rf-community-topics-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 36px; margin-bottom: 34px; }
.rf-community-search { width: min(380px, 100%); min-height: 50px; display: flex; align-items: center; gap: 12px; padding: 0 18px; border: 1px solid #d9d9d9; border-radius: 999px; background: #fafafa; }
.rf-community-search i { color: #ff8200; }
.rf-community-search input { width: 100%; border: 0; outline: 0; color: #222; background: transparent; }
.rf-community-filterbar { display: flex; gap: 10px; margin-bottom: 24px; overflow-x: auto; scrollbar-width: none; }
.rf-community-filterbar button { flex: 0 0 auto; min-height: 40px; padding: 0 18px; border: 1px solid #ddd; border-radius: 999px; color: #555; background: #fff; cursor: pointer; }
.rf-community-filterbar button:hover,
.rf-community-filterbar button:focus-visible,
.rf-community-filterbar button.is-active { border-color: #ff8200; color: #181818; background: #ff8200; }
.rf-community-topic-list { border-top: 1px solid #dedede; }
.rf-community-topic { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 24px; align-items: center; padding: 28px 18px; border-bottom: 1px solid #dedede; color: #222 !important; text-decoration: none !important; transition: background-color .2s ease; }
.rf-community-topic:hover,
.rf-community-topic:focus-visible { background: #fafafa; }
.rf-community-topic-mark { min-height: 30px; display: inline-flex; align-items: center; justify-content: center; padding: 0 10px; border-radius: 999px; color: #171717; font-size: 12px; font-weight: 800; background: #ff8200; }
.rf-community-topic-mark-muted { color: #555; background: #ececec; }
.rf-community-topic > div { display: grid; gap: 7px; }
.rf-community-topic small { color: #888; }
.rf-community-topic strong { font-size: 20px; line-height: 1.4; }
.rf-community-topic p { margin: 0; color: #6e6e6e; line-height: 1.65; }
.rf-community-topic em { color: #ff8200; font-style: normal; font-weight: 700; white-space: nowrap; }
.rf-community-topic[hidden] { display: none; }
.rf-community-empty { padding: 60px 20px; color: #777; text-align: center; background: #fafafa; }

.rf-community-rules { color: #fff; background: #171717; }
.rf-community-rules-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(50px, 8vw, 110px); align-items: start; }
.rf-community-rules-grid > div > p:last-child { margin: 24px 0 0; color: rgba(255, 255, 255, .65); font-size: 17px; line-height: 1.9; }
.rf-community-rules ol { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; border-top: 1px solid rgba(255, 255, 255, .15); }
.rf-community-rules li { display: grid; grid-template-columns: 54px 1fr; gap: 20px; align-items: center; padding: 24px 0; border-bottom: 1px solid rgba(255, 255, 255, .15); }
.rf-community-rules li > span { color: #ff8200; font-size: 14px; font-weight: 800; }
.rf-community-rules li div { display: grid; gap: 6px; }
.rf-community-rules li strong { font-size: 18px; }
.rf-community-rules li small { color: rgba(255, 255, 255, .58); font-size: 14px; }

.rf-community-cta { padding: clamp(90px, 11vw, 160px) 0; color: #fff; text-align: center; background: radial-gradient(circle at 50% 0, rgba(255, 130, 0, .2), transparent 40%), #090909; }
.rf-community-cta h2 { max-width: 800px; margin-inline: auto; }
.rf-community-cta > .rf-community-container > p:not(.rf-community-eyebrow) { max-width: 690px; margin: 24px auto 0; color: rgba(255, 255, 255, .67); font-size: 17px; line-height: 1.8; }
.rf-community-cta .rf-community-hero-actions { justify-content: center; }

@media (max-width: 1040px) {
  .rf-community-category-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 820px) {
  .rf-community-hero { min-height: auto; display: flex; flex-direction: column; align-items: stretch; padding: 58px 0 34px; }
  .rf-community-hero > img { position: relative; z-index: 1; order: 2; inset: auto; width: min(calc(100% - 32px), 680px); height: 300px; margin: 44px auto 0; border-radius: 22px; object-position: 58% center; transform: none; }
  .rf-community-hero-shade { z-index: 0; background: radial-gradient(circle at 85% 15%, rgba(255, 130, 0, .12), transparent 34%), #111; }
  .rf-community-hero-content { order: 1; }
  .rf-community-hero h1 { max-width: 640px; }
  .rf-community-heading-row,
  .rf-community-feature-grid,
  .rf-community-rules-grid { grid-template-columns: 1fr; }
  .rf-community-category-grid { grid-template-columns: repeat(2, 1fr); }
  .rf-community-topics-head { align-items: stretch; flex-direction: column; }
  .rf-community-topic { grid-template-columns: 62px minmax(0, 1fr); }
  .rf-community-topic > em { grid-column: 2; }
}

@media (max-width: 640px) {
  .rf-community-container { width: min(100% - 32px, 1180px); }
  .rf-community-hero { padding-top: 48px; }
  .rf-community-hero > img { height: 230px; margin-top: 34px; object-position: 60% center; }
  .rf-community-hero h1 { font-size: clamp(38px, 11vw, 46px); }
  .rf-community-hero-content > p:not(.rf-community-eyebrow) { font-size: 16px; }
  .rf-community-jump-nav .rf-community-container { justify-content: flex-start; }
  .rf-community-feature-main { min-height: 420px; }
  .rf-community-category-grid { grid-template-columns: 1fr; }
  .rf-community-category-card { min-height: 190px; }
  .rf-community-topic { grid-template-columns: 1fr; gap: 13px; padding: 24px 4px; }
  .rf-community-topic-mark { width: max-content; }
  .rf-community-topic > em { grid-column: 1; }
  .rf-community-hero-actions { display: grid; }
  .rf-community-hero-actions .rf-community-button { width: 100%; margin-top: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .rf-community-button,
  .rf-community-feature-main > img,
  .rf-community-starter-list a,
  .rf-community-category-card { transition: none; }
}
