/*
  CurioSpark v8.35.4 — Final Layout + Alignment Tune
  Scope: presentation only. This is a surgical CSS pass for the exact spacing,
  alignment, and text-emphasis issues identified during preview review.
  No scripts, APIs, registration logic, calendar logic, auth, payments, or
  navigation behavior are changed here.
*/

/* Home: tighten the handoff from the photo story to the mission section. */
body.visual-composition-refresh .cs-photo-story--home {
  margin-bottom: clamp(1.55rem, 3vw, 2.6rem);
}
body.visual-composition-refresh .mission-values-section {
  margin-top: 0;
  padding-top: 0;
}

/* Home: keep the lower-right accent intentional instead of letting it drift. */
body.visual-composition-refresh .brand-world-hero .curio-corner.bottom-right {
  width: 176px;
  height: 136px;
  right: -34px;
  bottom: -32px;
  opacity: .64;
  border-radius: 56% 44% 52% 48%;
}

/* Programs: bring the three-step flow and the live catalog into one rhythm. */
body.programs-marketplace-page .program-flow-section--refreshed {
  margin-top: clamp(1.4rem, 3vw, 2.45rem);
  margin-bottom: clamp(1.35rem, 2.8vw, 2.35rem);
  padding: 0 0 .4rem;
}
body.programs-marketplace-page .programs-list-section {
  padding-top: clamp(1.65rem, 3.2vw, 2.65rem);
}

/* Calendar: use a single aligned content rail for status, controls, grid, and note. */
body.programs-calendar-page .calendar-live-section {
  padding-top: clamp(1.3rem, 2.5vw, 2rem);
}
body.programs-calendar-page .calendar-live-status,
body.programs-calendar-page .calendar-live-controls,
body.programs-calendar-page [data-calendar-months],
body.programs-calendar-page [data-calendar-details],
body.programs-calendar-page .v748-calendar-note {
  width: 100%;
  max-width: 980px;
  margin-inline: auto;
}
body.programs-calendar-page .calendar-live-status {
  margin-bottom: .85rem;
}
body.programs-calendar-page .calendar-live-controls {
  display: grid !important;
  grid-template-columns: max-content minmax(17rem, 18rem);
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0;
  margin-bottom: 1rem;
}
body.programs-calendar-page .calendar-month-nav {
  width: 100%;
  min-width: 0;
  justify-self: end;
}
body.programs-calendar-page .calendar-grid-wrap,
body.programs-calendar-page .calendar-detail-card {
  width: 100%;
  max-width: none;
  margin-inline: auto;
}
body.programs-calendar-page .v748-calendar-note {
  display: block;
  box-sizing: border-box;
  margin-top: 1rem;
  padding: .82rem 1rem;
  border: 1px solid rgba(95,37,121,.14);
  border-radius: 1rem;
  background: linear-gradient(135deg, #fff8dc, #fffdf8);
  color: #4a176d;
  font-size: .92rem;
  font-weight: 800;
  line-height: 1.45;
  text-align: center;
}
body.programs-calendar-page .v748-calendar-note::before {
  content: "✦ ";
  color: #b67b00;
}

/* Resource Shop: turn the introductory sentence into a purposeful callout. */
body.public-frontdoor-page .resource-intro--refreshed {
  max-width: 820px;
  margin-top: clamp(1.65rem, 3vw, 2.4rem);
  margin-bottom: clamp(1.8rem, 3vw, 2.7rem);
}
body.public-frontdoor-page .resource-intro--refreshed p {
  max-width: none;
  margin: 0;
  padding: .95rem 1.15rem;
  border-left: 4px solid #f4b516;
  border-radius: 0 1rem 1rem 0;
  background: linear-gradient(90deg, #fff7d9, #fffdf8);
  color: #4a176d;
  font-size: clamp(1rem, 1.45vw, 1.16rem);
  font-weight: 750;
  line-height: 1.55;
}

/* Big Vision: reduce dead air and give explanatory copy a clear visual home. */
body.big-vision-page .cs-photo-break--vision {
  margin-top: clamp(2rem, 3.8vw, 3.1rem);
  margin-bottom: clamp(1.8rem, 3.5vw, 2.9rem);
  gap: clamp(1.25rem, 3vw, 2.5rem);
}
body.big-vision-page .cs-photo-break--vision .cs-photo-break-copy {
  padding: clamp(1rem, 2vw, 1.5rem);
  border: 1px solid rgba(95,37,121,.12);
  border-radius: 1.35rem;
  background: linear-gradient(135deg, #fffdf8, #fbf4ff);
  box-shadow: 0 12px 28px rgba(58,20,76,.06);
}
body.big-vision-page .cs-photo-break--vision .cs-photo-break-copy p:not(.eyebrow) {
  max-width: none;
  margin: .78rem 0 0;
  padding-left: .82rem;
  border-left: 3px solid #f4b516;
  color: #594864;
  font-weight: 650;
  line-height: 1.62;
}
body.big-vision-page .vision-snapshot-section {
  padding-top: clamp(1.65rem, 3vw, 2.55rem);
}
body.big-vision-page .vision-feature-section {
  padding-top: clamp(1.8rem, 3.5vw, 2.85rem);
  padding-bottom: clamp(1.8rem, 3.5vw, 2.85rem);
}
body.big-vision-page .vision-guide-trigger {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
body.big-vision-page .vision-guide-portal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  width: min(100%, 535px);
  box-sizing: border-box;
  margin: .2rem auto 0;
  padding: .78rem .95rem;
  border: 1px solid rgba(95,37,121,.16);
  border-radius: .9rem;
  background: linear-gradient(135deg, #fff8dc, #fffdf8);
  color: #4a176d;
  font-size: .92rem;
  font-weight: 850;
  line-height: 1.3;
  text-align: left;
}
body.big-vision-page .vision-guide-portal:hover,
body.big-vision-page .vision-guide-trigger:focus-visible .vision-guide-portal {
  border-color: rgba(95,37,121,.34);
  box-shadow: 0 8px 20px rgba(58,20,76,.10);
  outline: none;
}
body.big-vision-page .vision-feature-caption {
  max-width: 535px;
  margin: .85rem auto 0;
  color: #5b4865;
  font-weight: 750;
  line-height: 1.45;
  text-align: center;
}

/* Family Portal: make the top summary and final enrollment guidance feel deliberate. */
body.simplified-site .fp-hero [data-fp-summary] {
  max-width: 700px;
  margin: .82rem 0 0;
  padding: .84rem 1rem;
  border-left: 4px solid #f4b516;
  border-radius: 0 1rem 1rem 0;
  background: rgba(255,255,255,.72);
  color: #4a176d;
  font-weight: 750;
  line-height: 1.55;
}
body.simplified-site .fp-enrollment-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
  padding: .9rem 1rem;
  border: 1px solid rgba(151,99,8,.18);
  border-radius: 1rem;
  background: linear-gradient(135deg, #fff8dc, #fffdf8);
}
body.simplified-site .fp-enrollment-footer p {
  max-width: 58ch;
  color: #4f3b58;
  font-weight: 700;
  line-height: 1.5;
}
body.simplified-site .fp-enrollment-footer .button-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: .65rem;
  margin: 0;
}
body.simplified-site .fp-enrollment-footer .button,
body.simplified-site .fp-enrollment-footer .fp-enrollment-help {
  flex: 0 0 auto;
  margin: 0;
}

@media (max-width: 780px) {
  body.visual-composition-refresh .brand-world-hero .curio-corner.bottom-right {
    width: 132px;
    height: 110px;
    right: -30px;
    bottom: -26px;
    opacity: .52;
  }
  body.programs-calendar-page .calendar-live-controls {
    grid-template-columns: 1fr;
    justify-content: stretch;
  }
  body.programs-calendar-page .calendar-view-toggle,
  body.programs-calendar-page .calendar-month-nav {
    width: 100%;
    justify-self: stretch;
  }
  body.programs-calendar-page .calendar-view-toggle button {
    flex: 1;
  }
  body.simplified-site .fp-enrollment-footer {
    grid-template-columns: 1fr;
    align-items: stretch;
  }
  body.simplified-site .fp-enrollment-footer .button-row {
    justify-content: flex-start;
  }
}

@media (max-width: 540px) {
  body.public-frontdoor-page .resource-intro--refreshed p,
  body.simplified-site .fp-hero [data-fp-summary] {
    padding: .78rem .85rem;
  }
  body.big-vision-page .cs-photo-break--vision .cs-photo-break-copy {
    padding: .9rem;
  }
  body.big-vision-page .vision-guide-portal {
    font-size: .86rem;
  }
}
