/*
 * Real Estate Moguls: Communities (/communities/).
 * Every rule sits under .rem-cm, so no other page is touched.
 * Brand values match css/rem-tokens.css; literals are the fallback where that file is not loaded.
 * Gold is used for rules only, never for words.
 * Widths checked: 320, 390, 768, 1024, 1280, 1440. Also 200% zoom (640 by 400).
 */

.rem-cm {
  --c-navy: var(--rem-navy, #0D1B2A);
  --c-ink: #050B15;
  --c-raised: var(--rem-navy-raised, #16283B);
  --c-line: var(--rem-navy-line, #2A3B4F);
  --c-blue: var(--rem-blue, #29ABE2);
  --c-blue-hover: var(--rem-blue-hover, #4DBBEA);
  --c-gold: var(--rem-gold, #C9A84C);
  --c-text: #FFFFFF;
  --c-muted: var(--rem-on-navy-muted, #C5CCD6);
  --c-pad: clamp(20px, 5vw, 56px);
  --c-max: 1120px;
  --c-display: var(--font-display, "Afacad", "Avenir Next", "Avenir", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif);
  background:
    radial-gradient(ellipse 100% 32% at 50% 0%, rgba(41, 171, 226, 0.08) 0%, transparent 70%),
    linear-gradient(180deg, #0B1929 0%, #07101C 40%, var(--c-ink) 100%);
  color: var(--c-text);
  font-family: var(--font-body, "Avenir Next", "Avenir", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif);
  font-size: 18px;
  line-height: 1.6;
  padding-bottom: clamp(64px, 10vw, 112px);
  overflow-wrap: break-word;
}
.rem-cm *,
.rem-cm *::before,
.rem-cm *::after { box-sizing: border-box; }
.rem-cm ul { list-style: none; margin: 0; padding: 0; }
.rem-cm p { margin: 0 0 16px; color: var(--c-muted); }
.rem-cm p:last-child { margin-bottom: 0; }
.rem-cm a { color: var(--c-blue-hover); text-decoration: underline; text-underline-offset: 3px; }
.rem-cm a:hover { color: #fff; }
/* The site header is fixed and about 94px tall. Keep a focused control and a jumped-to section clear of it. */
.rem-cm a,
.rem-cm section { scroll-margin-top: 112px; }
.rem-cm :focus-visible { outline: 2px solid var(--c-blue); outline-offset: 3px; border-radius: 4px; }
.rem-cm [tabindex="-1"]:focus { outline: none; }
.rem-cm .screen-reader-text {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0, 0, 0, 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
.rem-cm-wrap { max-width: var(--c-max); margin: 0 auto; padding-left: var(--c-pad); padding-right: var(--c-pad); }

/* Hero */
.rem-cm-hero { position: relative; padding: clamp(140px, 20vh, 200px) 0 clamp(44px, 7vh, 80px); }
.rem-cm-hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: linear-gradient(90deg, transparent 0%, rgba(41, 171, 226, 0.15) 15%, rgba(201, 168, 76, 0.5) 50%, rgba(41, 171, 226, 0.15) 85%, transparent 100%);
}
.rem-cm .rem-cm-eyebrow,
.rem-cm .rem-cm-kicker { margin: 0 0 14px; font-family: var(--c-display); font-size: 15px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--c-muted); }
.rem-cm-kicker span { margin: 0 6px; color: var(--c-line); }
.rem-cm-hero__title { margin: 0 0 20px; font-family: var(--c-display); font-size: clamp(2.75rem, 9vw, 5.5rem); font-weight: 600; line-height: 1; letter-spacing: -0.015em; color: var(--c-text); }
.rem-cm .rem-cm-hero__lead { max-width: 54ch; margin-bottom: 28px; font-size: clamp(1.125rem, 2.2vw, 1.375rem); line-height: 1.5; color: var(--c-text); }
.rem-cm-hero__actions { display: flex; flex-wrap: wrap; align-items: stretch; gap: 12px; margin: 0; }

/* Buttons */
.rem-cm .rem-cm-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 10px 26px;
  border: 1px solid rgba(255, 255, 255, 0.55); border-radius: 8px;
  font-family: var(--c-display); font-size: 17px; font-weight: 600; letter-spacing: 0.02em; line-height: 1.2; text-align: center;
  color: var(--c-text); background: rgba(13, 27, 42, 0.55); text-decoration: none; cursor: pointer;
  transition: background-color 150ms ease, border-color 150ms ease;
}
.rem-cm .rem-cm-btn:hover { background: rgba(255, 255, 255, 0.14); border-color: #fff; color: var(--c-text); }
.rem-cm .rem-cm-btn--ghost { border-color: rgba(255, 255, 255, 0.35); background: transparent; }
.rem-cm .rem-cm-btn--primary { background: var(--c-blue); border-color: var(--c-blue); color: var(--c-navy); }
.rem-cm .rem-cm-btn--primary:hover { background: var(--c-blue-hover); border-color: var(--c-blue-hover); color: var(--c-navy); }
.rem-cm-btn__icon { flex: none; }

/* Sections */
.rem-cm-section { padding: clamp(44px, 7vw, 80px) 0 0; }
.rem-cm-h2 { margin: 0 0 20px; max-width: 30ch; font-family: var(--c-display); font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 600; line-height: 1.12; color: var(--c-text); }
.rem-cm-h3 { margin: 0 0 8px; font-family: var(--c-display); font-size: 1.375rem; font-weight: 600; line-height: 1.25; color: var(--c-text); }

/* The two lead buttons: create an account (the main one) and Member login. */
.rem-cm .rem-cm-btn--lead { min-height: 60px; padding: 14px 32px; font-size: 20px; }
.rem-cm .rem-cm-btn--soon { flex-direction: column; gap: 4px; border: 1px dashed rgba(255, 255, 255, 0.55); background: transparent; color: var(--c-text); cursor: default; }
.rem-cm .rem-cm-btn--soon:hover { background: transparent; border-color: rgba(255, 255, 255, 0.55); }
.rem-cm-btn__tag { font-size: 14px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--c-muted); }
.rem-cm .rem-cm-hero__note { max-width: 60ch; margin: 18px 0 0; font-size: 16px; color: var(--c-muted); }

/* What the account is, and is not. */
.rem-cm-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.rem-cm-panel { padding: clamp(24px, 3vw, 36px); background: var(--c-raised); border: 1px solid var(--c-blue); border-radius: 12px; }
.rem-cm-panel--not { border-color: var(--c-line); }
.rem-cm-ticks { display: grid; gap: 12px; margin-top: 14px; }
.rem-cm-ticks li { position: relative; padding-left: 26px; color: var(--c-text); }
.rem-cm-ticks li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 12px; height: 2px; background: var(--c-blue); }
.rem-cm-ticks--not li::before { background: var(--c-gold); }
.rem-cm .rem-cm-label { margin: 0 0 8px; font-family: var(--c-display); font-size: 1.25rem; font-weight: 600; line-height: 1.25; color: var(--c-text); }
.rem-cm .rem-cm-fine { max-width: 62ch; margin: 18px 0 0; font-size: 16px; }

/* Places on this site */
.rem-cm-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.rem-cm-cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.rem-cm-cards--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.rem-cm-cards--1 { grid-template-columns: minmax(0, 560px); }
.rem-cm-card { display: flex; flex-direction: column; padding: 26px; background: var(--c-raised); border: 1px solid var(--c-line); border-top: 2px solid var(--c-gold); border-radius: 10px; }
.rem-cm .rem-cm-card__link { margin-top: auto; padding-top: 8px; }
.rem-cm-card__link a { display: inline-flex; align-items: center; min-height: 44px; font-family: var(--c-display); font-size: 17px; font-weight: 600; }

/* Chicago: shown only while the Chicago page itself is on. */
.rem-cm-chicago { padding: clamp(28px, 4vw, 44px); background: var(--c-raised); border: 1px solid var(--c-line); border-left: 3px solid var(--c-gold); border-radius: 12px; }
.rem-cm-chicago > p { max-width: 62ch; }
.rem-cm .rem-cm-status { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 18px; padding: 8px 16px; border: 1px solid var(--c-line); border-radius: 999px; background: rgba(13, 27, 42, 0.6); font-family: var(--c-display); font-size: 16px; font-weight: 600; letter-spacing: 0.02em; color: var(--c-text); }
.rem-cm-status__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--c-muted); flex: none; }
.rem-cm-status--open { border-color: var(--c-blue); }
.rem-cm-status--open .rem-cm-status__dot { background: var(--c-blue); }
.rem-cm-status--prelaunch .rem-cm-status__dot { background: var(--c-gold); }
.rem-cm .rem-cm-chicago__action { margin-top: 22px; }

@media (max-width: 1024px) {
  .rem-cm-cards--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .rem-cm-two { grid-template-columns: minmax(0, 1fr); }
  .rem-cm-cards--3 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .rem-cm-cards, .rem-cm-cards--4 { grid-template-columns: minmax(0, 1fr); }
  .rem-cm-hero__actions .rem-cm-btn { flex: 1 1 100%; }
  .rem-cm .rem-cm-btn--lead { width: 100%; }
  .rem-cm-chicago__action .rem-cm-btn { width: 100%; }
  .rem-cm-card { padding: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .rem-cm .rem-cm-btn { transition: none; }
}
@media print {
  .rem-cm { background: #fff; color: #000; }
  .rem-cm p, .rem-cm li, .rem-cm-h2, .rem-cm-h3, .rem-cm-hero__title { color: #000 !important; }
  .rem-cm-hero__actions { display: none; }
}
