:root {
  --community-navy: #0b2344;
  --community-blue: #0b7cff;
  --community-blue-soft: #eaf5ff;
  --community-blue-light: #f5fbff;
  --community-border: #d9ebff;
  --community-text: #263b57;
  --community-muted: #6b7c93;
  --community-orange: #ff6b2c;
  --community-green: #16a876;
  --community-white: #ffffff;
  --community-shadow: 0 18px 45px rgba(13, 67, 120, .08);
  --community-card-shadow: 0 10px 28px rgba(13, 67, 120, .04);
}

* {
  box-sizing: border-box;
}

body.community-page {
  margin: 0;
  background: linear-gradient(180deg, #f6fbff 0%, #ffffff 45%, #f7fbff 100%);
  color: var(--community-navy);
  font-family: Inter, Arial, sans-serif;
  font-size: 14px;
  letter-spacing: 0;
  overflow-x: hidden;
}

body.community-page :where(p, a, span, small, strong, em, button, input, select, summary, li, label):not(h1 *):not(h2 *):not(h3 *):not(h4 *):not(h5 *):not(h6 *) {
  font-weight: 500 !important;
}

body.community-page :where(.newsletter__icon, .footer__bottom > div) {
  font-weight: 500 !important;
}

.community-layout a {
  color: inherit;
  text-decoration: none;
}

.community-layout img {
  display: block;
  max-width: 100%;
}

.community-layout button {
  font: inherit;
  cursor: pointer;
}

.community-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  min-height: 100vh;
  background: linear-gradient(180deg, #f6fbff 0%, #ffffff 45%, #f7fbff 100%);
}

.community-sidebar {
  position: sticky;
  top: 68px;
  height: calc(100vh - 68px);
  padding: 24px 22px 28px;
  overflow-y: auto;
  border-right: 1px solid var(--community-border);
  background: rgba(255,255,255,.94);
}

.community-nav {
  display: grid;
  gap: 6px;
}

.community-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 14px;
  color: var(--community-text);
  font-size: 14px;
  font-weight: 700;
}

.community-nav a.active,
.community-nav a:hover {
  background: var(--community-blue-soft);
  color: var(--community-blue);
}

.community-invite {
  display: grid;
  gap: 10px;
  margin-top: 28px;
  padding: 20px;
  border: 1px solid var(--community-border);
  border-radius: 20px;
  background: linear-gradient(180deg, #eef8ff, #fff);
}

.community-invite h3 {
  margin: 0;
  color: var(--community-navy);
  font-size: 17px;
  font-weight: 900;
}

.community-invite p {
  margin: 0;
  color: var(--community-muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
}

.community-burger {
  display: none;
}

.community-main {
  width: 100%;
  max-width: 1480px;
  margin: 0 auto;
  padding: 28px 32px 40px;
  overflow: hidden;
}

.community-main h1,
.community-main h2,
.community-main h3,
.community-main p,
.community-main strong {
  overflow-wrap: anywhere;
}

.community-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 13px;
  font-weight: 800;
  text-decoration: none;
}

.community-btn--primary {
  background: var(--community-orange);
  color: #fff;
  box-shadow: 0 12px 28px rgba(255, 107, 44, .22);
}

.community-btn--light {
  border-color: var(--community-border);
  background: #fff;
  color: var(--community-navy);
}

.community-hero {
  padding: 0;
  margin-bottom: 24px;
}

.community-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(520px, 1.1fr);
  gap: 36px;
  align-items: center;
  min-height: 360px;
  padding: 48px 40px;
  overflow: hidden;
  border: 1px solid var(--community-border);
  border-radius: 28px;
  background:
    radial-gradient(circle at 82% 20%, #dff2ff 0, transparent 34%),
    linear-gradient(135deg, #ffffff 0%, #eef8ff 100%);
  box-shadow: var(--community-shadow);
}

.community-hero h1 {
  margin: 0 0 14px;
  color: var(--community-navy);
  font-size: clamp(40px, 4.6vw, 58px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -1.6px;
}

.community-hero h1 span {
  display: block;
  color: var(--community-blue);
}

.community-hero h2 {
  margin: 0 0 18px !important;
  color: var(--community-navy);
  font-size: 28px !important;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0;
  text-align: left !important;
}

.community-hero p {
  max-width: 520px;
  margin: 0 0 28px;
  color: var(--community-text);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.7;
}

.community-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.community-map {
  position: relative;
  min-height: 330px;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background:
    radial-gradient(circle at 35% 30%, rgba(11,124,255,.12), transparent 18%),
    radial-gradient(circle at 75% 55%, rgba(11,124,255,.12), transparent 22%);
}

.community-map::before {
  content: "";
  position: absolute;
  inset: 20px;
  background-image: radial-gradient(#bddcff 1px, transparent 1px);
  background-size: 12px 12px;
  opacity: .65;
}

.community-person {
  position: absolute;
  z-index: 2;
  width: 96px;
  height: 96px;
  border: 6px solid #fff;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: var(--community-shadow);
}

.community-person--one {
  top: 20px;
  left: 180px;
}

.community-person--two {
  top: 100px;
  right: 155px;
}

.community-person--three {
  bottom: 20px;
  left: 110px;
}

.community-person--four {
  right: 80px;
  bottom: 30px;
}

.community-bubble {
  position: absolute;
  z-index: 3;
  padding: 12px 18px;
  border-radius: 15px;
  background: #fff;
  color: var(--community-blue);
  font-size: 13px;
  font-weight: 800;
  box-shadow: var(--community-shadow);
}

.community-bubble--one {
  top: 48px;
  right: 60px;
}

.community-bubble--two {
  top: 150px;
  left: 40px;
  color: var(--community-orange);
}

.community-bubble--three {
  right: 10px;
  bottom: 70px;
  color: var(--community-green);
}

.community-section {
  margin-top: 24px;
  padding: 28px;
  border: 1px solid var(--community-border);
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--community-card-shadow);
}

.community-section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  max-width: none;
  margin: 0 0 22px;
  text-align: left;
}

.community-section__head h2 {
  margin: 0 !important;
  color: var(--community-navy);
  font-size: 24px !important;
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -.5px;
  text-align: left !important;
}

.community-section__head p {
  display: none;
}

.community-section__head a,
.community-space-card a,
.community-quick-card a,
.community-club a,
.community-event-grid a,
.community-side-link,
.community-responses a {
  color: var(--community-blue);
  font-size: 14px;
  font-weight: 800;
}

.community-space-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.community-quick-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.community-space-card,
.community-quick-card,
.community-club,
.community-event-grid article {
  border: 1px solid var(--community-border);
  border-radius: 18px;
  background: #fff;
}

.community-space-card,
.community-quick-card {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-content: start;
  align-items: center;
  gap: 10px;
  min-height: 160px;
  padding: 22px;
}

.community-quick-card {
  grid-template-columns: 44px minmax(0, 1fr);
  min-height: 150px;
  padding: 18px;
}

.community-space-card span,
.community-quick-card span,
.community-side-card article span {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--community-blue-soft);
}

.community-quick-card span {
  width: 44px;
  height: 44px;
}

.community-space-card > span {
  width: 48px;
  height: 48px;
}

.community-space-card img,
.community-quick-card img,
.community-side-card article span img {
  width: 26px;
  height: 26px;
}

.community-space-card > span,
.community-quick-card > span {
  grid-column: 1;
  grid-row: 1;
}

.community-space-card > h3,
.community-quick-card > h3 {
  grid-column: 2;
  grid-row: 1;
  align-self: center;
}

.community-space-card > p,
.community-space-card > a,
.community-quick-card > p,
.community-quick-card > a {
  grid-column: 1 / -1;
}

.community-space-card h3,
.community-quick-card h3,
.community-club h3,
.community-event-grid h3,
.community-side-card h3,
.community-prompt h3,
.community-responses h3 {
  margin: 0;
  color: var(--community-navy);
  font-size: 17px;
  font-weight: 900;
  line-height: 1.2;
}

.community-space-card h3,
.community-quick-card h3 {
  font-size: 16px;
  line-height: 1.14;
  letter-spacing: -.2px;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

.community-space-card p,
.community-quick-card p,
.community-club p,
.community-event-grid p,
.community-side-card p,
.community-prompt p,
.community-responses p {
  margin: 0;
  color: var(--community-text);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.55;
}

.community-club-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}

.community-club {
  overflow: hidden;
  padding: 0;
}

.community-club > img {
  width: 100%;
  height: 130px;
  object-fit: cover;
}

.community-club > div {
  display: grid;
  gap: 8px;
  padding: 16px;
}

.community-club p {
  color: var(--community-muted);
  font-size: 13px;
}

.community-club strong {
  color: var(--community-green);
  font-size: 13px;
  font-weight: 800;
}

.community-club a,
.community-event-grid a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  margin-top: 6px;
  border: 1px solid var(--community-border);
  border-radius: 12px;
  background: #fff;
  color: var(--community-navy);
}

.community-content-grid {
  display: grid;
  grid-template-columns: 1.25fr .9fr .9fr;
  gap: 20px;
  margin-top: 24px;
}

.community-daily,
.community-side-card {
  border: 1px solid var(--community-border);
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--community-card-shadow);
}

.community-daily {
  padding: 26px;
}

.community-daily__body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.community-prompt {
  display: grid;
  gap: 14px;
  align-content: start;
  padding: 24px;
  border-radius: 18px;
  background: var(--community-blue-light);
}

.community-prompt span {
  color: var(--community-blue);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.community-prompt h3 {
  font-size: 26px;
  line-height: 1.2;
}

.community-responses {
  display: grid;
  gap: 12px;
  align-content: start;
}

.community-responses article,
.community-side-card article {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 64px;
  padding: 12px 0;
  border-bottom: 1px solid var(--community-border);
}

.community-responses article img,
.community-resource-thumb {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}

.community-side-card {
  display: grid;
  align-content: start;
  gap: 2px;
  padding: 26px;
}

.community-side-card article {
  grid-template-columns: 54px minmax(0, 1fr) auto;
}

.community-side-card em {
  color: var(--community-green);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
  white-space: nowrap;
}

.community-resource-thumb {
  width: 58px;
  height: 46px;
  border-radius: 10px;
}

.community-side-card article:has(.community-resource-thumb) {
  grid-template-columns: 58px minmax(0, 1fr);
}

.community-event-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.community-event-grid article {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 18px;
  min-height: 150px;
  padding: 20px;
  border-radius: 18px;
}

.community-event-grid time {
  display: grid;
  place-items: center;
  align-self: start;
  height: 76px;
  border-radius: 16px;
  background: var(--community-blue-soft);
  color: var(--community-blue);
  font-size: 12px;
  font-weight: 900;
  text-align: center;
}

.community-event-grid time strong {
  display: block;
  color: var(--community-navy);
  font-size: 26px;
}

.community-event-grid article > div {
  display: grid;
  gap: 8px;
}

.community-bottom-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 24px;
  margin-bottom: 0;
  padding: 26px 32px;
  border: 1px solid var(--community-border);
  border-radius: 22px;
  background: linear-gradient(90deg, #dff2ff, #f4fbff);
  box-shadow: none;
}

.community-bottom-cta h2 {
  margin: 0 0 6px !important;
  color: var(--community-blue);
  font-size: 28px !important;
  font-weight: 800;
  line-height: 1.16;
  text-align: left !important;
}

.community-bottom-cta p {
  margin: 0;
  color: var(--community-text);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
}

@media (max-width: 1280px) {
  .community-main {
    padding: 24px;
  }

  .community-hero__inner {
    grid-template-columns: 1fr;
  }

  .community-map {
    min-height: 300px;
  }

  .community-space-grid,
  .community-event-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .community-quick-grid,
  .community-club-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .community-content-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1024px) {
  .community-layout {
    display: block;
  }

  .community-burger {
    position: fixed;
    top: 18px;
    right: 18px;
    z-index: 1100;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--community-border);
    border-radius: 50%;
    background: #fff;
    color: var(--community-blue);
  }

  .community-sidebar {
    position: fixed;
    top: 0;
    left: -280px;
    z-index: 1000;
    width: 260px;
    max-width: calc(100vw - 64px);
    height: 100dvh;
    transition: left .25s ease;
  }

  .community-page.is-menu-open .community-sidebar {
    left: 0;
  }
}

@media (max-width: 680px) {
  html,
  body.community-page,
  .community-layout {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
  }

  .community-main {
    width: 100%;
    min-width: 0;
    padding: 16px;
    max-width: 100vw;
    margin: 0;
  }

  .community-hero__inner {
    width: 100%;
    min-width: 0;
    padding: 32px 20px;
    overflow: hidden;
  }

  .community-hero__copy,
  .community-map,
  .community-hero,
  .community-content-grid,
  .community-section,
  .community-daily,
  .community-side-card,
  .community-bottom-cta,
  .community-space-card,
  .community-quick-card,
  .community-club,
  .community-event-grid article {
    min-width: 0;
  }

  .community-hero h1 {
    font-size: 34px;
    letter-spacing: -.8px;
  }

  .community-hero h2 {
    font-size: 24px;
  }

  .community-hero p {
    font-size: 15px;
    line-height: 1.55;
  }

  .community-map {
    min-height: 260px;
    overflow: hidden;
  }

  .community-person {
    width: 76px;
    height: 76px;
    border-width: 4px;
  }

  .community-person--one {
    top: 16px;
    left: 36%;
  }

  .community-person--two {
    top: 88px;
    right: 16%;
  }

  .community-person--three {
    left: 12%;
    bottom: 16px;
  }

  .community-person--four {
    right: 14%;
    bottom: 22px;
  }

  .community-bubble {
    max-width: 138px;
    padding: 10px 12px;
    font-size: 12px;
    line-height: 1.2;
    white-space: normal;
  }

  .community-bubble--one {
    right: 24px;
  }

  .community-bubble--two {
    left: 8px;
  }

  .community-bubble--three {
    right: 18px;
    bottom: 72px;
  }

  .community-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .community-actions .community-btn {
    width: 100%;
  }

  .community-section,
  .community-daily,
  .community-side-card,
  .community-bottom-cta {
    padding: 22px;
  }

  .community-section__head {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .community-space-grid,
  .community-quick-grid,
  .community-club-grid,
  .community-event-grid,
  .community-daily__body {
    grid-template-columns: 1fr;
  }

  .community-club > img {
    height: 160px;
  }

  .community-side-card article {
    grid-template-columns: 50px minmax(0, 1fr);
  }

  .community-side-card em {
    grid-column: 2;
    justify-self: start;
  }

  .community-event-grid article {
    grid-template-columns: 70px minmax(0, 1fr);
  }

  .community-bottom-cta {
    align-items: flex-start;
    flex-direction: column;
  }
}
