/*
 * Charlottesville Cares — Support Spaces public landing V1
 * Marketing grammar: Care Spaces production hero (#body-careteams .ccp-cs-*).
 * Content/story: Support Spaces Chip authority. Do not change Care Spaces CSS.
 *
 * Shared tokens (recorded from sealed Care Spaces; applied here directly —
 * not extracted, to avoid CS visual regression):
 *   content max-width     min(1120px, calc(100% - 64px))
 *   display H1            Libre Baskerville 400 / 42px / lh 1.16 / ls -0.02em / #1a3d30
 *   editorial italic      Baskerville italic / #2a7a56 (inherits H1 size)
 *   accent rule           48 x 2px / #1f5c45 / margin-top 14px
 *   secondary proposition Source Sans 3 700 / 22px / #2c2b28  (.ccp-ss-hero-support = “Find it. Understand it. Use it.”)
 *   body-large            Source Sans 3 400 / 17px / #5a5853 / max-width 38em
 *   body-normal           Source Sans 3 400 / 15–16px / #5a5853
 *   display H2            Baskerville 400 / 28px / lh 1.16
 *   primary/secondary CTA 13px 22px / 16px / 600 / radius 8px / #1f5c45
 *   card radius           10px (hero photo + floating cards)
 *   panel radius          16px
 *   hero padding          36px 0 48px
 *   major section         8px 0 28px
 *   minor/close           8px 0 40px
 *
 * Scoped to #body-groups:has(.ccp-ss-page). Authenticated Groups hub, Care Spaces,
 * Profile V2, and homepage are untouched.
 */
#body-groups:has(.ccp-ss-page) {
  background: #fff;
  color: #2c2b28;
  overflow-x: hidden;
}

#body-groups:has(.ccp-ss-page) .row {
  max-width: none;
  width: 100%;
  margin-left: 0;
  margin-right: 0;
}

#body-groups:has(.ccp-ss-page) .row .row {
  max-width: none;
}

#body-groups:has(.ccp-ss-page) .columns,
#body-groups:has(.ccp-ss-page) .column {
  padding-left: 0;
  padding-right: 0;
}

#body-groups:has(.ccp-ss-page) .portletWrapper,
#body-groups:has(.ccp-ss-page) .ccp-portlet,
#body-groups:has(.ccp-ss-page) .portletWindow,
#body-groups:has(.ccp-ss-page) .project-wiki-content,
#body-groups:has(.ccp-ss-page) .wiki-body {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: visible !important;
}

#body-groups:has(.ccp-ss-page) .ccp-portlet a:not(.button):not(.ccp-ss-btn) {
  color: #1f5c45;
}

#body-groups:has(.ccp-ss-page) .ccp-ss-page {
  font-family: "Source Sans 3", "Open Sans", Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  color: #2c2b28;
  background: #fff;
}

#body-groups:has(.ccp-ss-page) .ccp-ss-wrap {
  width: min(1120px, calc(100% - 64px));
  margin: 0 auto;
}

#body-groups:has(.ccp-ss-page) .ccp-ss-page h1,
#body-groups:has(.ccp-ss-page) .ccp-ss-page h2,
#body-groups:has(.ccp-ss-page) .ccp-ss-page h3 {
  font-family: "Libre Baskerville", Georgia, "Times New Roman", serif;
  font-weight: 400;
  color: #1a3d30;
  letter-spacing: -0.02em;
  line-height: 1.16;
}

#body-groups:has(.ccp-ss-page) .ccp-ss-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 8px;
  padding: 13px 22px;
  font-family: "Source Sans 3", "Open Sans", Helvetica, Arial, sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none !important;
  border: 1.5px solid transparent;
  cursor: pointer;
}

#body-groups:has(.ccp-ss-page) .ccp-ss-btn-primary,
#body-groups:has(.ccp-ss-page) a.ccp-ss-btn-primary {
  background: #1f5c45;
  color: #fff !important;
  border-color: #1f5c45;
}

#body-groups:has(.ccp-ss-page) .ccp-ss-btn-primary:hover {
  background: #174a37;
  border-color: #174a37;
  color: #fff !important;
}

#body-groups:has(.ccp-ss-page) .ccp-ss-btn-secondary,
#body-groups:has(.ccp-ss-page) a.ccp-ss-btn-secondary {
  background: #fff;
  color: #1f5c45 !important;
  border-color: #1f5c45;
}

#body-groups:has(.ccp-ss-page) .ccp-ss-btn-secondary:hover {
  background: #eef6f1;
  color: #174a37 !important;
}

#body-groups:has(.ccp-ss-page) .ccp-ss-play {
  width: 18px;
  height: 18px;
  border: 1.5px solid #1f5c45;
  border-radius: 50%;
  display: inline-block;
  position: relative;
  flex: 0 0 18px;
}

#body-groups:has(.ccp-ss-page) .ccp-ss-play::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 4px;
  border-style: solid;
  border-width: 5px 0 5px 7px;
  border-color: transparent transparent transparent #1f5c45;
}

#body-groups:has(.ccp-ss-page) .ccp-ss-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

/* Hero — Care Spaces sibling geometry. Owner-selected secondary: Find it. Understand it. Use it. */
#body-groups:has(.ccp-ss-page) .ccp-ss-hero {
  padding: 36px 0 48px;
  background: #fff;
  overflow: visible;
}

#body-groups:has(.ccp-ss-page) .ccp-ss-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 8px;
  align-items: center;
}

#body-groups:has(.ccp-ss-page) .ccp-ss-hero-copy {
  padding-right: 8px;
}

#body-groups:has(.ccp-ss-page) .ccp-ss-hero h1 {
  font-size: 42px;
  font-weight: 400;
  margin: 0 0 10px;
  max-width: none;
  color: #1a3d30;
  line-height: 1.16;
}

#body-groups:has(.ccp-ss-page) .ccp-ss-hero h1::after {
  content: "";
  display: block;
  width: 48px;
  height: 2px;
  background: #1f5c45;
  margin: 14px 0 0;
}

#body-groups:has(.ccp-ss-page) .ccp-ss-hero h1 em {
  font-style: italic;
  color: #2a7a56;
  font-family: "Libre Baskerville", Georgia, serif;
  font-weight: 400;
}

#body-groups:has(.ccp-ss-page) .ccp-ss-hero-support {
  font-size: 22px;
  font-weight: 700;
  color: #2c2b28;
  margin: 0 0 14px;
}

#body-groups:has(.ccp-ss-page) .ccp-ss-hero-lead {
  font-size: 17px;
  color: #5a5853;
  margin: 0 0 28px;
  max-width: 38em;
  line-height: 1.55;
}

#body-groups:has(.ccp-ss-page) .ccp-ss-hero-media {
  position: relative;
  min-height: 430px;
  margin-left: 48px;
  overflow: visible;
}

#body-groups:has(.ccp-ss-page) .ccp-ss-hero-photo {
  width: 100%;
  height: 430px;
  object-fit: cover;
  object-position: 46% 38%;
  border-radius: 10px;
  display: block;
}

#body-groups:has(.ccp-ss-page) .ccp-ss-q {
  position: absolute;
  width: 236px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 8px 22px rgba(32, 40, 28, 0.14);
  padding: 10px 14px 10px 10px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  z-index: 2;
}

#body-groups:has(.ccp-ss-page) .ccp-ss-q p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.25;
  color: #1f1e1c;
  font-weight: 700;
}

#body-groups:has(.ccp-ss-page) .ccp-ss-q-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 34px;
}

#body-groups:has(.ccp-ss-page) .ccp-ss-q-purple { background: #ece4f6; color: #6b3fa0; }
#body-groups:has(.ccp-ss-page) .ccp-ss-q-green { background: #dceee4; color: #1f5c45; }
#body-groups:has(.ccp-ss-page) .ccp-ss-q-orange { background: #f8e6d4; color: #c45c16; }

/* Same photo-edge bridge as Care Spaces pain cards (left edge, not clustered inside). */
#body-groups:has(.ccp-ss-page) .ccp-ss-q-1 { top: 42px; left: -86px; right: auto; }
#body-groups:has(.ccp-ss-page) .ccp-ss-q-2 { top: 50%; left: -64px; right: auto; transform: translateY(-50%); }
#body-groups:has(.ccp-ss-page) .ccp-ss-q-3 { bottom: 46px; left: -96px; right: auto; }

/* 1-2-3 */
#body-groups:has(.ccp-ss-page) .ccp-ss-steps {
  padding: 8px 0 28px;
}

#body-groups:has(.ccp-ss-page) .ccp-ss-steps-panel {
  background: #f3f2ee;
  border-radius: 16px;
  padding: 32px 36px 36px;
}

#body-groups:has(.ccp-ss-page) .ccp-ss-steps h2 {
  text-align: center;
  font-size: 28px;
  margin: 0 0 28px;
}

#body-groups:has(.ccp-ss-page) .ccp-ss-steps-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 4px;
  align-items: start;
}

#body-groups:has(.ccp-ss-page) .ccp-ss-step {
  text-align: center;
  padding: 0 10px;
}

#body-groups:has(.ccp-ss-page) .ccp-ss-step-num {
  display: inline-flex;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #1f5c45;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  font-family: "Source Sans 3", "Open Sans", Helvetica, Arial, sans-serif;
  align-items: center;
  justify-content: center;
  margin: 0 auto 4px;
  position: relative;
  z-index: 2;
}

#body-groups:has(.ccp-ss-page) .ccp-ss-step-visual {
  width: 108px;
  height: 108px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: -6px auto 14px;
}

#body-groups:has(.ccp-ss-page) .ccp-ss-step-visual svg {
  width: 64px;
  height: 64px;
  display: block;
}

#body-groups:has(.ccp-ss-page) .ccp-ss-step-visual-mint { background: #e4f0e8; }
#body-groups:has(.ccp-ss-page) .ccp-ss-step-visual-tan { background: #efe6d6; }

#body-groups:has(.ccp-ss-page) .ccp-ss-step h3 {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 8px;
}

#body-groups:has(.ccp-ss-page) .ccp-ss-step p {
  margin: 0 auto;
  font-size: 15px;
  color: #5a5853;
  line-height: 1.45;
  max-width: 22em;
}

#body-groups:has(.ccp-ss-page) .ccp-ss-step-arrow {
  color: #1f5c45;
  padding-top: 62px;
  display: flex;
  justify-content: center;
}

/* Org cards */
#body-groups:has(.ccp-ss-page) .ccp-ss-orgs {
  padding: 8px 0 28px;
}

#body-groups:has(.ccp-ss-page) .ccp-ss-orgs h2 {
  text-align: center;
  font-size: 28px;
  margin: 0 0 26px;
  line-height: 1.25;
}

#body-groups:has(.ccp-ss-page) .ccp-ss-org-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
  align-items: stretch;
}

#body-groups:has(.ccp-ss-page) .ccp-ss-org {
  border-radius: 16px;
  padding: 24px 22px 20px;
  display: flex;
  flex-direction: column;
  min-height: 268px;
}

#body-groups:has(.ccp-ss-page) .ccp-ss-org-emp { background: #eaf5ee; }
#body-groups:has(.ccp-ss-page) .ccp-ss-org-np { background: #eef2f8; }
#body-groups:has(.ccp-ss-page) .ccp-ss-org-sch { background: #f4eef8; }

#body-groups:has(.ccp-ss-page) .ccp-ss-org-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 12px;
}

#body-groups:has(.ccp-ss-page) .ccp-ss-org-ico {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 64px;
}

#body-groups:has(.ccp-ss-page) .ccp-ss-org-emp .ccp-ss-org-ico { background: #d5eadc; color: #1f5c45; }
#body-groups:has(.ccp-ss-page) .ccp-ss-org-np .ccp-ss-org-ico { background: #d9e4f3; color: #2b5a8a; }
#body-groups:has(.ccp-ss-page) .ccp-ss-org-sch .ccp-ss-org-ico { background: #e6daf0; color: #6b3fa0; }

#body-groups:has(.ccp-ss-page) .ccp-ss-org h3 {
  font-size: 20px;
  line-height: 1.25;
  margin: 10px 0 0;
}

#body-groups:has(.ccp-ss-page) .ccp-ss-org-np h3 { color: #2b5a8a; }
#body-groups:has(.ccp-ss-page) .ccp-ss-org-sch h3 { color: #5a3480; }

#body-groups:has(.ccp-ss-page) .ccp-ss-org p {
  margin: 0 0 18px;
  font-size: 15px;
  color: #5a5853;
  line-height: 1.45;
  flex: 1;
}

#body-groups:has(.ccp-ss-page) .ccp-ss-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

#body-groups:has(.ccp-ss-page) .ccp-ss-pill {
  display: inline-flex !important;
  align-items: center;
  width: auto !important;
  max-width: none !important;
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 12.5px;
  font-weight: 600;
  font-style: normal;
  font-family: "Source Sans 3", "Open Sans", Helvetica, Arial, sans-serif;
  line-height: 1.2;
  border: 1px solid currentColor;
  background: transparent;
  white-space: nowrap;
}

#body-groups:has(.ccp-ss-page) .ccp-ss-org-emp .ccp-ss-pills { color: #1f5c45; }
#body-groups:has(.ccp-ss-page) .ccp-ss-org-np .ccp-ss-pills { color: #2b5a8a; }
#body-groups:has(.ccp-ss-page) .ccp-ss-org-sch .ccp-ss-pills { color: #6b3fa0; }

/* Formula */
#body-groups:has(.ccp-ss-page) .ccp-ss-formula {
  padding: 8px 0 28px;
}

#body-groups:has(.ccp-ss-page) .ccp-ss-formula-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.36fr) minmax(0, 0.64fr);
  gap: 28px;
  align-items: center;
  background: #f6f4ef;
  border-radius: 16px;
  padding: 28px 32px;
}

#body-groups:has(.ccp-ss-page) .ccp-ss-formula h2 {
  font-size: 28px;
  line-height: 1.2;
  margin: 0 0 12px;
}

#body-groups:has(.ccp-ss-page) .ccp-ss-formula-copy p {
  margin: 0;
  font-size: 15px;
  color: #5a5853;
  line-height: 1.45;
  max-width: 28em;
}

#body-groups:has(.ccp-ss-page) .ccp-ss-formula-eq {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 6px;
  align-items: start;
  text-align: center;
}

#body-groups:has(.ccp-ss-page) .ccp-ss-formula-eq .ccp-ss-eq {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

#body-groups:has(.ccp-ss-page) .ccp-ss-eq-ico {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #e4efe8;
  color: #1f5c45;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}

#body-groups:has(.ccp-ss-page) .ccp-ss-eq strong {
  display: block;
  font-size: 14.5px;
  color: #1a3d30;
  font-weight: 700;
  margin-bottom: 4px;
  line-height: 1.25;
}

#body-groups:has(.ccp-ss-page) .ccp-ss-eq span {
  display: block;
  font-size: 12.5px;
  color: #6a6862;
  line-height: 1.3;
}

#body-groups:has(.ccp-ss-page) .ccp-ss-formula-eq .ccp-ss-eq-op {
  font-size: 26px;
  color: #1a3d30;
  align-self: start;
  padding-top: 15px;
  font-weight: 500;
}

/* Close — one letterbox: copy | photo | benefits */
#body-groups:has(.ccp-ss-page) .ccp-ss-close {
  padding: 8px 0 40px;
}

#body-groups:has(.ccp-ss-page) .ccp-ss-close-letterbox {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1.15fr) minmax(230px, 0.72fr);
  align-items: stretch;
  background: #f3f1eb;
  border-radius: 16px;
  overflow: hidden;
  min-height: 232px;
}

#body-groups:has(.ccp-ss-page) .ccp-ss-close-copy {
  padding: 28px 20px 24px 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

#body-groups:has(.ccp-ss-page) .ccp-ss-close h2 {
  font-size: 28px;
  line-height: 1.16;
  margin: 0 0 10px;
  max-width: 16em;
}

#body-groups:has(.ccp-ss-page) .ccp-ss-close-copy p {
  margin: 0 0 18px;
  color: #5a5853;
  font-size: 15px;
  line-height: 1.45;
  max-width: 28em;
}

#body-groups:has(.ccp-ss-page) .ccp-ss-close-photo {
  width: 100%;
  height: 100%;
  min-height: 232px;
  object-fit: cover;
  object-position: center 28%;
  display: block;
}

#body-groups:has(.ccp-ss-page) .ccp-ss-close-points {
  list-style: none;
  margin: 0;
  padding: 28px 22px 24px 8px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}

#body-groups:has(.ccp-ss-page) .ccp-ss-close-points li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14.5px;
  color: #3a3936;
}

#body-groups:has(.ccp-ss-page) .ccp-ss-close-points .ccp-ss-eq-ico {
  width: 32px;
  height: 32px;
  margin-bottom: 0;
  flex: 0 0 32px;
}

@media (max-width: 1280px) {
  #body-groups:has(.ccp-ss-page) .ccp-ss-hero h1 {
    font-size: 38px;
  }

  #body-groups:has(.ccp-ss-page) .ccp-ss-q-1 { left: -64px; }
  #body-groups:has(.ccp-ss-page) .ccp-ss-q-2 { left: -44px; }
  #body-groups:has(.ccp-ss-page) .ccp-ss-q-3 { left: -72px; }
}

@media (max-width: 1180px) {
  #body-groups:has(.ccp-ss-page) .ccp-ss-hero-media {
    margin-left: 36px;
    margin-right: 0;
  }

  #body-groups:has(.ccp-ss-page) .ccp-ss-q {
    width: 228px;
  }
}

@media (max-width: 1020px) {
  #body-groups:has(.ccp-ss-page) .ccp-ss-hero-grid,
  #body-groups:has(.ccp-ss-page) .ccp-ss-steps-row,
  #body-groups:has(.ccp-ss-page) .ccp-ss-org-grid,
  #body-groups:has(.ccp-ss-page) .ccp-ss-formula-panel,
  #body-groups:has(.ccp-ss-page) .ccp-ss-formula-eq,
  #body-groups:has(.ccp-ss-page) .ccp-ss-close-letterbox {
    grid-template-columns: 1fr;
  }

  #body-groups:has(.ccp-ss-page) .ccp-ss-hero-copy {
    max-width: none;
  }

  #body-groups:has(.ccp-ss-page) .ccp-ss-hero-media {
    margin-left: 0;
    margin-right: 0;
    min-height: 0;
  }

  #body-groups:has(.ccp-ss-page) .ccp-ss-hero-photo {
    height: 420px;
  }

  #body-groups:has(.ccp-ss-page) .ccp-ss-q {
    position: static;
    width: auto;
    margin: 10px 0 0;
    transform: none;
    right: auto;
    left: auto;
  }

  #body-groups:has(.ccp-ss-page) .ccp-ss-step-arrow {
    display: none;
  }

  #body-groups:has(.ccp-ss-page) .ccp-ss-eq-op {
    padding: 4px 0;
  }

  #body-groups:has(.ccp-ss-page) .ccp-ss-close-photo {
    min-height: 200px;
    height: 200px;
  }

  #body-groups:has(.ccp-ss-page) .ccp-ss-hero h1,
  #body-groups:has(.ccp-ss-page) .ccp-ss-close h2 {
    font-size: 32px;
  }
}
