/* Shared presentation for learning and projects in the developer community. */
.community-surface {
  --paper: #fcfdff;
  --surface: #fff;
  --line: #e3e6ea;
  --muted: #656b73;
  --radius-card: 14px;
  background: var(--paper);
}
.community-surface .page-shell { padding-top: 0; }
.community-surface .breadcrumb { padding-top: 28px; }
.community-surface .panel { box-shadow: none; }
.community-surface .page-title { font-weight: 750; letter-spacing: -.6px; }
.community-hero {
  display: grid;
  grid-template-columns: minmax(0,1.05fr) minmax(0,1fr);
  align-items: center;
  gap: 40px;
  min-height: 440px;
  padding-block: 56px;
}
.community-hero-copy { position: relative; z-index: 1; min-width: 0; }
.community-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  color: #FF7500;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .8px;
}
.community-kicker::before { content: ''; width: 22px; height: 2px; background: var(--orange); }
.community-hero .community-hero-title {
  margin: 0;
  color: var(--text);
  font-size: clamp(38px,3.9vw,56px);
  font-weight: 800;
  line-height: 1.24;
  letter-spacing: -1.5px;
}
.community-hero-description { max-width: 540px; margin-top: 22px; color: var(--muted); font-size: 17px; line-height: 1.85; }
.community-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.community-hero-actions .btn { min-height: 48px; padding-inline: 24px; }
.community-hero-art { position: relative; isolation: isolate; min-width: 0; align-self: stretch; display: grid; place-items: center; }
.community-hero-art > img { display: block; max-width: 100%; object-fit: contain; }
.community-section-heading { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 16px 24px; margin-bottom: 28px; }
.community-section-heading h2 { font-size: 30px; font-weight: 750; letter-spacing: -.6px; line-height: 1.35; }
.community-section-heading p { margin-top: 12px; color: var(--muted); font-size: 15px; line-height: 1.75; }
.community-link-arrow { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: #FF7500; font-size: 14px; white-space: nowrap; }
.community-link-arrow:hover { color: #FF7500; text-decoration: underline; text-underline-offset: 5px; }
.community-surface :is(.learn-card,.cp-project-card) { transition: border-color .2s,transform .2s; }
.community-surface :is(.learn-card,.cp-project-card):hover { border-color: #FF750066; transform: translateY(-3px); }
.community-surface :is(.learn-card,.cp-project-card):focus-within { border-color: #FF7500; }
.community-surface :is(.learn-filter,.cp-toolbar) { background: #fff; border-color: var(--line); }
.community-surface .tag { color: #63666c; background: #f3f4f6; }
.community-surface :is(.cp-article,.learn-reading-panel) { background: #fff; }
@media (max-width: 1023px) {
  .community-hero { gap: 24px; min-height: 400px; padding-block: 44px; }
  .community-hero .community-hero-title { font-size: 40px; }
  .community-section-heading h2 { font-size: 28px; }
}
@media (max-width: 680px) {
  .community-hero { grid-template-columns: minmax(0,1fr); min-height: 0; gap: 28px; padding-block: 36px; }
  .community-hero .community-hero-title { font-size: 36px; line-height: 1.28; letter-spacing: -.8px; }
  .community-kicker { font-size: 12px; margin-bottom: 16px; letter-spacing: .3px; }
  .community-hero-description { margin-top: 18px; font-size: 15px; }
  .community-hero-actions { margin-top: 24px; gap: 10px; }
  .community-hero-actions .btn { padding-inline: 20px; font-size: 14px; }
  .community-hero-art { min-height: 220px; max-height: 280px; }
  .community-section-heading { margin-bottom: 22px; align-items: flex-start; }
  .community-section-heading h2 { font-size: 26px; }
  .community-section-heading p { font-size: 14px; }
  .community-surface .breadcrumb { padding-top: 20px; }
}
@media (max-width: 359px) {
  .community-hero .community-hero-title { font-size: 32px; }
  .community-hero-actions .btn { padding-inline: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .community-surface :is(.learn-card,.cp-project-card):hover { transform: none; }
}
