/* Crestwell v74: approved restrained collegiate hero and readable account directory.
   Existing Libre Caslon Display / Libre Caslon Text / Jost only. */

/* Home: preserve the original functioning CTAs, but give them a centered,
   uninterrupted maroon canvas with subtle illustrative campus texture. */
.heritage-home > .hero {
  min-height: 382px!important;
  padding: 0!important;
  background:
    radial-gradient(ellipse 70% 90% at 52% 43%, #5d172f 0%, #4c1025 53%, #300712 100%)!important;
  border-bottom: 1px solid #875161!important;
  overflow: hidden;
  isolation: isolate;
}
.heritage-home > .hero::before {
  inset: 0!important;
  border: 0!important;
  background: radial-gradient(circle at 50% 45%, transparent 15%, rgba(32,4,15,.22) 100%);
  z-index: 0!important;
}
.heritage-home > .hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: url("assets/campus-boston-college.webp") no-repeat right 45% / min(56vw,830px) auto;
  opacity: .17;
  filter: grayscale(1) sepia(.8) contrast(1.5);
  -webkit-mask-image: linear-gradient(90deg,transparent 31%,#000 100%);
  mask-image: linear-gradient(90deg,transparent 31%,#000 100%);
  pointer-events: none;
}
.heritage-home > .hero .hero-inner {
  display: flex!important;
  flex-direction: column!important;
  justify-content: center!important;
  align-items: center!important;
  min-height: 382px!important;
  grid-template-columns: none!important;
  padding: 52px 0 56px!important;
  gap: 0!important;
  position: relative;
  z-index: 1;
}
.heritage-home > .hero .cw47-home-intro {
  width: min(100%,880px)!important;
  max-width: 880px!important;
  padding: 0!important;
  text-align: center!important;
  margin: 0 auto!important;
  background: transparent!important;
  border: 0!important;
  box-shadow: none!important;
}
.heritage-home > .hero .cw71-home-overline,
.heritage-home > .hero .cw47-home-intro .cw71-home-overline {display:none!important}
.heritage-home > .hero .cw47-home-intro #home-title {
  max-width: 920px!important;
  margin: 0 auto 22px!important;
  font: 400 clamp(2.9rem,4vw,4.35rem)/1.075 var(--font-display)!important;
  letter-spacing: -.027em!important;
  text-align: center!important;
  text-wrap: balance;
  color: #fff8f3!important;
}
.heritage-home > .hero .cw47-home-intro #home-title em {color:#f7d9df!important}
.heritage-home > .hero .cw47-home-intro .cw71-home-lead {
  max-width: 56ch!important;
  margin: 0 auto 25px!important;
  font: 400 clamp(1.13rem,1.45vw,1.34rem)/1.5 var(--font-text)!important;
  color: #f5e5e4!important;
  text-align:center!important;
  text-wrap:pretty;
}
.heritage-home > .hero .cw47-home-intro .invite-actions {
  display:flex!important;
  justify-content:center!important;
  align-items:center!important;
  flex-wrap:wrap!important;
  gap: 13px!important;
  margin: 0!important;
}
.heritage-home > .hero .cw47-home-intro .invite-actions a {
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-height:48px!important;
  text-decoration:none!important;
  font:600 .88rem/1.3 var(--font-ui)!important;
  transition: background-color .18s ease, border-color .18s ease, transform .18s ease!important;
}
.heritage-home > .hero .cw47-home-intro .invite-actions .btn {
  padding: 0 23px!important;
  border:1px solid #fff8f3!important;
  border-radius:5px!important;
  color:#420e21!important;
  background:#fff8f3!important;
}
.heritage-home > .hero .cw47-home-intro .invite-actions .text-link {
  padding:0 21px!important;
  border:1px solid rgba(255,242,238,.75)!important;
  border-radius:5px!important;
  color:#fff9f5!important;
  background:transparent!important;
}
.heritage-home > .hero .cw47-home-intro .invite-actions .text-link:hover {background:rgba(255,255,255,.11)!important}
.heritage-home > .hero .cw47-home-intro .invite-actions .btn:hover {background:#f1dfe0!important;transform:translateY(-1px)}
/* The photographic panel and injected four-photo gallery were removed from HTML/JS.
   Keep these safeguards to prevent old cached clients showing them. */
.heritage-home .cw71-campus-photo,
.heritage-home .cw73-campus-gallery {display:none!important}
.heritage-home > .hero .cw60-home-founder {display:none!important}
.heritage-home .cw71-pathways {
  background:#fdf9f5!important;
  padding: 25px 0 24px!important;
  border-bottom:0!important;
}
.heritage-home .cw71-pathway-grid {gap:15px!important}
.heritage-home .cw71-pathway {
  min-height:84px;
  background:#fffcfa!important;
  border:1px solid #e3d3d1!important;
  border-radius:8px!important;
  padding:17px 18px!important;
}
.heritage-home .cw71-pathway:focus-visible,
.heritage-home .invite-actions a:focus-visible {outline:2px solid #b58092!important;outline-offset:3px!important}

/* Small, right-anchored survey card; readable explanation left of it. */
.heritage-home .cw64-home-evidence {
  background:#fdf9f5!important;
  border:0!important;
  padding: 32px 0 clamp(47px,5vw,74px)!important;
}
.heritage-home .cw64-home-evidence-layout {
  display:grid!important;
  grid-template-columns:minmax(0,1.05fr) minmax(330px,.9fr)!important;
  gap:clamp(28px,4.5vw,72px)!important;
  max-width:1230px!important;
  align-items:center!important;
}
.heritage-home .cw64-home-evidence h2 {
  margin:0 0 19px!important;
  font:400 clamp(2.3rem,3.12vw,3.6rem)/1.1 var(--font-display)!important;
  letter-spacing:-.027em!important;
  color:#421525!important;
  max-width:24ch!important;
}
.heritage-home .cw64-home-evidence-copy > p {
  max-width:54ch!important;
  margin:0 0 12px!important;
  color:#4d3540!important;
  font:400 clamp(1.02rem,1.35vw,1.24rem)/1.54 var(--font-text)!important;
}
.heritage-home .cw64-home-evidence-copy em {color:#6a2340;font-style:italic}
.heritage-home .cw64-home-evidence-copy .cw64-evidence-link {
  margin-top:4px;
  font-size:.79rem!important;
}
.heritage-home .cw64-home-evidence-figure {
  justify-self:end!important;
  box-sizing:border-box;
  width:100%!important;
  max-width:540px!important;
  margin:0!important;
  padding:24px clamp(19px,2.4vw,31px)!important;
  background:#fffbf8!important;
  border:1px solid #d7c0c2!important;
  border-radius:8px!important;
  box-shadow:0 8px 22px rgba(63,19,32,.025)!important;
}
.heritage-home .cw64-home-evidence-figure figcaption {position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
.heritage-home .cw64-mini-chart {gap:19px!important}
.heritage-home .cw64-mini-row-head {font:600 .9rem/1.4 var(--font-ui)!important;margin-bottom:9px!important;color:#4a2030!important}
.heritage-home .cw64-mini-row-head strong {font-size:1.13rem!important;color:#3b1124!important}
.heritage-home .cw64-mini-track {height:13px!important;border-radius:5px!important;background:#e8dcd9!important}
.heritage-home .cw64-mini-track i {background:#5b0d2b!important;border-radius:5px 0 0 5px!important}
.heritage-home .cw64-mini-track--activities i {background:#b57a97!important}
.heritage-home .cw64-home-evidence-figure > p {font:400 .68rem/1.5 var(--font-ui)!important;margin:17px 0 0!important;color:#77666c!important;max-width:58ch!important}
.heritage-home .cw71-independent-note {padding:14px 16px 15px!important;background:#faf4f1!important;border-top:1px solid #eadedc}

/* Carry the uncluttered public-hero system into the rest of the site.
   Keep substantive page copy, case-specific imagery, buttons and links. */
.cw-page[data-page="platform"] .cw50-platform-hero .cw50-kicker,
.cw45-head .cw45-kicker,
.cw62-method .cw62-hero .heritage-eyebrow,
.cw62-method .cw62-hero .cw62-kicker,
.cw-page .cw-hero .cw-eyebrow,
.cw-page .cw-hero .cw50-kicker {display:none!important}
.cw-page[data-page="private"] .cw-hero--private .cw-hero-split {display:flex!important;justify-content:center!important}
.cw-page[data-page="private"] .cw-hero--private .cw-hero-copy {margin-inline:auto!important;text-align:center!important}
.cw-page[data-page="private"] .cw-hero--private .cw-actions {justify-content:center!important}

/* Communities: no generic imagery pretending to depict a specific organization. */
.cw70-communities .cw50-heading {margin:3px 0 18px!important}
.cw70-communities .cw50-heading .cw50-kicker {display:none!important}
.cw70-communities .cw50-heading h1 {font-size:clamp(2.4rem,3vw,3.2rem)!important}
.cw70-communities .cw70-community-grid {gap:13px!important}
.cw70-communities .cw70-community-card {
  display:block!important;
  padding:18px 20px!important;
  min-height:165px!important;
  border-radius:9px!important;
  background:#fffdfb!important;
  box-shadow:none!important;
}
.cw70-communities .cw70-community-card .cw71-community-image {display:none!important}
.cw70-communities .cw70-community-card .cw71-community-body {
  width:100%!important;
  max-width:100%!important;
  display:flex!important;
  min-height:130px;
  gap:5px!important;
  padding:0!important;
}
.cw70-communities .cw71-community-body h2 {font-size:clamp(1.26rem,1.5vw,1.55rem)!important;line-height:1.24!important;margin:3px 0 8px!important}
.cw70-communities .cw71-community-body .cw50-org {font-size:.68rem!important;letter-spacing:.015em!important}
.cw70-communities .cw71-community-body .cw70-card-status {font-size:.68rem!important}
.cw70-communities .cw71-community-body .cw56-quick-facts {margin-bottom:7px!important}
.cw70-communities .cw71-community-body .cw70-community-actions {
  flex-wrap:wrap!important;
  gap:9px!important;
  margin-top:auto!important;
  padding-top:11px!important;
}
.cw70-communities .cw71-community-body .cw70-community-actions .cw71-detail-action {min-height:36px!important;padding:8px 13px!important}
.cw70-communities .cw71-community-body .cw70-community-actions .cw71-save-action {min-height:36px!important}
.cw70-communities .cw71-community-body .cw70-community-actions .cw71-official-action {min-height:36px!important}
.cw70-communities .cw71-community-body .cw70-community-details {margin-top:12px!important}
.cw70-communities .cw71-community-results .cw56-results-kicker {display:none!important}

/* Responsive: preserve comfortable copy, control hit targets and no horizontal scroll. */
@media(max-width:940px){
  .heritage-home .cw64-home-evidence-layout {grid-template-columns:1fr!important;gap:24px!important}
  .heritage-home .cw64-home-evidence-figure {justify-self:start!important;max-width:610px!important}
  .heritage-home > .hero::after {background-size:80vw auto;opacity:.12}
}
@media(max-width:750px){
  .heritage-home > .hero {min-height:0!important}
  .heritage-home > .hero .hero-inner {min-height:0!important;padding:68px 0 63px!important}
  .heritage-home > .hero .cw47-home-intro #home-title {
    max-width:22ch!important;
    font-size:clamp(2.25rem,8.3vw,3.45rem)!important;
    margin-bottom:19px!important;
  }
  .heritage-home > .hero .cw47-home-intro .cw71-home-lead {
    max-width:36ch!important;
    font-size:1.08rem!important;
    line-height:1.5!important;
    margin-bottom:23px!important;
  }
  .heritage-home > .hero .cw47-home-intro .invite-actions {gap:10px!important}
  .heritage-home > .hero .cw47-home-intro .invite-actions a {font-size:.8rem!important;min-height:45px!important}
  .heritage-home > .hero .cw47-home-intro .invite-actions .text-link {
    border:1px solid rgba(255,242,238,.75)!important;
    text-decoration:none!important;
    padding:0 15px!important;
  }
  .heritage-home .cw71-pathways {padding:16px 0!important}
  .heritage-home .cw71-pathway-grid {gap:9px!important}
  .heritage-home .cw71-pathway {min-height:74px!important;padding:13px 15px!important}
  .heritage-home .cw64-home-evidence {padding:29px 0 48px!important}
  .heritage-home .cw64-home-evidence h2 {font-size:clamp(2.25rem,8vw,3rem)!important}
  .cw70-communities .cw70-community-grid {grid-template-columns:1fr!important}
  .cw70-communities .cw70-community-card {min-height:0!important;padding:17px 16px!important}
  .cw70-communities .cw70-community-card .cw71-community-body {min-height:0}
  .cw70-communities .cw71-community-body .cw70-community-actions .cw71-save-action {margin-left:0!important}
  .cw70-communities .cw71-community-body .cw70-community-actions .cw71-official-action {flex:0 0 auto!important}
}
@media(max-width:430px){
  .heritage-home > .hero .cw47-home-intro .invite-actions {flex-direction:column!important;align-items:stretch!important}
  .heritage-home > .hero .cw47-home-intro .invite-actions a {width:100%!important}
  .cw70-communities .cw70-community-card {padding:16px 14px!important}
}
@media(prefers-reduced-motion:reduce){
  .heritage-home > .hero .cw47-home-intro .invite-actions a,
  .cw70-communities .cw70-community-card {transition:none!important}
}

/* v74 release: accessibility and presentation remain resilient without images. */
