/* Community info-map pages: modern layer on top of article.css + signals.css. */

.community-page {
  --radius-lg: 16px;
  --radius-md: 12px;
  --hairline: rgba(32, 39, 36, 0.07);
  --shadow-card: 0 1px 2px rgba(32, 39, 36, 0.04), 0 6px 16px rgba(32, 39, 36, 0.05);
  --shadow-lift: 0 2px 6px rgba(32, 39, 36, 0.05), 0 14px 32px rgba(31, 93, 80, 0.12);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Hero */
.community-page .article-hero { position: relative; margin-bottom: 36px; }
.community-page .article-hero::before {
  content: ""; position: absolute; top: -140px; left: -160px; z-index: -1;
  width: 560px; height: 420px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(77, 129, 118, 0.14), transparent 72%);
  pointer-events: none;
}
.community-page h1 { font-size: clamp(38px, 6vw, 54px); letter-spacing: -0.02em; line-height: 1.12; }
.community-page .article-hero > p:last-child {
  display: inline-flex; margin: 4px 0 0; padding: 7px 14px;
  border: 1px solid var(--hairline); border-radius: 999px; background: var(--white);
  color: var(--muted); font-size: 13px; font-weight: 700;
}

.community-page .quick-answer {
  margin-bottom: 40px; padding: 28px 30px;
  border: 1px solid rgba(31, 93, 80, 0.16); border-left: 1px solid rgba(31, 93, 80, 0.16);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #eff5ec, #f7faf5);
  box-shadow: var(--shadow-card);
}

.community-page .jump-nav { gap: 8px; margin-bottom: 0; }
.community-page .jump-nav a {
  border-color: var(--hairline); box-shadow: var(--shadow-card);
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out), border-color 0.2s;
}
.community-page .jump-nav a:hover { transform: translateY(-2px); border-color: rgba(31, 93, 80, 0.3); box-shadow: var(--shadow-lift); }

/* Cards */
.community-page .article-shell section { margin-top: 72px; scroll-margin-top: 88px; }
.community-page .context-item {
  padding: 16px 20px; border-color: var(--hairline); border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}
.community-page .context-item.quote { position: relative; overflow: hidden; }
.community-page .context-item.quote::after {
  content: "”"; position: absolute; top: -2px; right: 12px;
  color: rgba(31, 93, 80, 0.12); font-size: 52px; font-weight: 900; line-height: 1;
  pointer-events: none;
}
.community-page .context-item.quote strong { color: var(--sage-deep); }

/* Duel layout: the thread's two camps side by side */
.community-page .duel-grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 72px; align-items: start; }
.community-page .duel-grid > section {
  margin-top: 0; padding: 26px 24px; border: 1px solid var(--hairline);
  border-radius: var(--radius-lg); background: var(--white); box-shadow: var(--shadow-card);
}
.community-page .duel-grid > section:first-child { background: linear-gradient(180deg, #f2f7f0, var(--white) 42%); }
.community-page .duel-grid > section:last-child { background: linear-gradient(180deg, #eff5f6, var(--white) 42%); }
.community-page .duel-grid h2 { font-size: 25px; }
.community-page .duel-grid .section-label { font-size: 22px; line-height: 1; margin-bottom: 10px; }
.community-page .duel-grid .context-list { gap: 10px; }
.community-page .duel-grid .context-item { border-left-width: 3px; box-shadow: none; background: var(--paper); border-color: transparent; }
.community-page .duel-vs {
  position: absolute; top: 88px; left: 50%; z-index: 2; transform: translateX(-50%);
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  border: 3px solid var(--paper); background: var(--sage-deep); color: var(--white);
  font-size: 13px; font-weight: 900; letter-spacing: 0.04em;
  box-shadow: 0 6px 18px rgba(31, 93, 80, 0.3);
}

/* Two-column card grid for equipment sections */
.community-page .context-list.grid-2 { grid-template-columns: 1fr 1fr; gap: 12px; }
.community-page .grid-2 .context-item:last-child:nth-child(odd) { grid-column: 1 / -1; }

/* FAQ */
.community-page .faq-list { display: grid; gap: 10px; border-top: 0; margin-top: 24px; }
.community-page .faq-list details {
  border: 1px solid var(--hairline); border-radius: var(--radius-md);
  background: var(--white); box-shadow: var(--shadow-card); overflow: hidden;
  transition: border-color 0.2s var(--ease-out);
}
.community-page .faq-list details[open] { border-color: rgba(31, 93, 80, 0.28); }
.community-page .faq-list summary { position: relative; padding: 18px 56px 18px 20px; list-style: none; }
.community-page .faq-list summary::-webkit-details-marker { display: none; }
.community-page .faq-list summary::after {
  content: "+"; position: absolute; top: 50%; right: 16px; transform: translateY(-50%);
  display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  background: var(--paper-strong); color: var(--sage-deep); font-size: 16px; font-weight: 900;
  transition: transform 0.2s var(--ease-out);
}
.community-page .faq-list details[open] summary::after { content: "−"; transform: translateY(-50%) rotate(180deg); }
.community-page .faq-list p { margin: 0; padding: 0 20px 18px; }

/* Checks, notes, related */
.community-page .check-list li { border-color: var(--hairline); border-radius: 10px; box-shadow: var(--shadow-card); }
.community-page .misread-card { border-radius: var(--radius-lg); }
.community-page .editorial-note { border-radius: var(--radius-lg); }
.community-page .related-grid a {
  min-height: 190px; border-color: var(--hairline); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
}
.community-page .related-grid a:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }

/* Hub */
.community-page .hub-hero h1 { letter-spacing: -0.02em; }
.community-page .hub-principles span { border-radius: 999px; }
.community-page .hub-list .signal-card { padding: 26px; border-color: var(--hairline); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); }
.community-page .hub-list .signal-card:hover { box-shadow: var(--shadow-lift); }

@media (max-width: 760px) {
  .community-page .duel-grid { grid-template-columns: 1fr; gap: 14px; margin-top: 60px; }
  .community-page .duel-vs { display: none; }
  .community-page .context-list.grid-2 { grid-template-columns: 1fr; }
  .community-page .grid-2 .context-item:last-child:nth-child(odd) { grid-column: auto; }
  .community-page .article-shell section { margin-top: 56px; }
}

@media (prefers-reduced-motion: reduce) {
  .community-page .jump-nav a, .community-page .related-grid a,
  .community-page .faq-list details, .community-page .faq-list summary::after { transition: none; }
}

/* Quote wall (forum-floor style) */
.community-page .quote-wall { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.community-page .quote-wall .floor {
  margin: 0; padding: 14px 16px;
  border: 1px solid var(--hairline); border-left: 3px solid var(--sage-deep);
  border-radius: 10px; box-shadow: var(--shadow-card);
  display: flex; justify-content: space-between; align-items: baseline; gap: 14px;
}
.community-page .quote-wall blockquote { margin: 0; font-size: 0.98em; line-height: 1.7; }
.community-page .quote-wall figcaption { white-space: nowrap; font-size: 0.85em; color: var(--sage-deep); }
@media (max-width: 760px) { .community-page .quote-wall .floor { flex-direction: column; gap: 4px; } }
