.community-hero{min-height:64vh}

.community-entry{
  position:relative;
  isolation:isolate;
  overflow:hidden;
  background:
    radial-gradient(circle at 8% 14%,rgba(216,206,238,.55),transparent 30%),
    radial-gradient(circle at 94% 88%,rgba(237,217,176,.5),transparent 32%),
    linear-gradient(145deg,#fff 0%,#faf8fb 52%,#f5f2ec 100%);
  border-top:1px solid rgba(26,43,60,.08);
  border-bottom:1px solid rgba(26,43,60,.08);
}
.community-entry::before,
.community-entry::after{
  content:"";
  position:absolute;
  z-index:-1;
  border:1px solid rgba(74,103,65,.12);
  border-radius:50%;
  pointer-events:none;
}
.community-entry::before{width:280px;height:280px;left:-170px;top:-145px}
.community-entry::after{width:390px;height:390px;right:-250px;bottom:-265px}

.community-entry-copy{margin-bottom:30px}
.community-entry-copy p{max-width:680px}
.community-entry .community-entry-note{
  display:inline-flex;
  align-items:center;
  gap:8px;
  margin-top:14px;
  color:var(--text-light);
  font-size:14px;
  font-weight:600;
}
.community-entry-note::before{
  content:"";
  width:7px;
  height:7px;
  border-radius:50%;
  background:var(--gold);
  box-shadow:0 0 0 5px rgba(201,169,110,.14);
}

.community-entry-grid{gap:16px}
.community-entry-link{
  appearance:none;
  display:block;
  position:relative;
  width:100%;
  min-height:108px;
  padding:22px 48px 22px 22px;
  text-align:left;
  font:inherit;
  background:rgba(255,255,255,.9);
  border:1px solid rgba(26,43,60,.14);
  border-radius:14px;
  color:var(--navy);
  cursor:pointer;
  box-shadow:0 6px 20px rgba(26,43,60,.045);
  transition:transform .2s,border-color .2s,box-shadow .2s,background-color .2s;
}
.community-entry-link::before{
  content:"";
  position:absolute;
  left:0;
  top:18px;
  bottom:18px;
  width:4px;
  border-radius:0 4px 4px 0;
  background:var(--story-accent,var(--green-pastel));
}
.community-entry-link::after{
  content:"\2192";
  position:absolute;
  right:20px;
  top:50%;
  transform:translateY(-50%);
  color:var(--green-mid);
  font-size:20px;
}
.community-entry-link:nth-child(1){--story-accent:var(--green-pastel)}
.community-entry-link:nth-child(2){--story-accent:var(--gold)}
.community-entry-link:nth-child(3){--story-accent:var(--navy-pale)}
.community-entry-link:nth-child(4){--story-accent:var(--purple-pale)}
.community-entry-link:nth-child(5){--story-accent:#b9ccb5}
.community-entry-link:nth-child(6){--story-accent:#d6b4c8}
.community-entry-link:hover{
  transform:translateY(-3px);
  border-color:rgba(74,103,65,.55);
  box-shadow:0 12px 28px rgba(26,43,60,.09);
}
.community-entry-link:focus-visible{
  outline:3px solid var(--gold);
  outline-offset:4px;
}
.community-entry-link[aria-pressed="true"]{
  background:#fff;
  border-color:var(--green);
  box-shadow:0 0 0 3px rgba(74,103,65,.12),0 12px 28px rgba(26,43,60,.09);
}
.community-entry-link[aria-pressed="true"]::after{content:"\2713"}
.community-entry-link strong{display:block;font-size:17px;line-height:1.35}
.community-entry-link span{display:block;margin-top:6px;color:var(--text-light);font-size:13px;font-weight:400}

.community-match{
  display:grid;
  grid-template-columns:minmax(220px,34%) 1fr;
  margin-top:32px;
  overflow:hidden;
  background:var(--navy);
  border:1px solid rgba(255,255,255,.12);
  border-radius:16px;
  color:#fff;
  box-shadow:0 20px 46px rgba(15,29,43,.18);
}
.community-match[hidden]{display:none}
.community-match-media{position:relative;min-height:330px;background:var(--navy-mid)}
.community-match-photo{width:100%;height:100%;min-height:330px;object-fit:cover;display:block}
.community-match-media::after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(0deg,rgba(15,29,43,.28),transparent 48%);
  pointer-events:none;
}
.community-match-copy{display:flex;flex-direction:column;justify-content:center;padding:42px clamp(28px,5vw,64px)}
.community-match-kicker{
  color:var(--gold-pale);
  font-size:12px;
  font-weight:700;
  letter-spacing:.14em;
  text-transform:uppercase;
}
.community-match-heading{
  margin:8px 0 4px;
  color:#fff;
  font-size:clamp(30px,4vw,48px);
  line-height:1.08;
}
.community-match .community-match-role{margin:0 0 20px;color:rgba(255,255,255,.68);font-size:13px;font-weight:600;text-transform:uppercase;letter-spacing:.07em}
.community-match .community-match-reason{max-width:650px;margin:0 0 18px;color:rgba(255,255,255,.88);font-size:18px;line-height:1.65}
.community-match-quote{
  max-width:650px;
  margin:0 0 26px;
  padding-left:18px;
  border-left:3px solid var(--gold);
  color:#fff;
  font-family:'Aleo',serif;
  font-size:19px;
  font-style:italic;
  line-height:1.55;
}
.community-match-actions{display:flex;flex-wrap:wrap;gap:12px;align-items:center}
.community-match-actions .btn{margin:0}
.community-match-reset{
  appearance:none;
  padding:11px 4px;
  border:0;
  border-bottom:1px solid rgba(255,255,255,.38);
  background:transparent;
  color:#fff;
  font:inherit;
  font-size:14px;
  font-weight:600;
  cursor:pointer;
}
.community-match-reset:hover{border-bottom-color:#fff}
.community-match-reset:focus-visible{outline:3px solid var(--gold);outline-offset:4px}

.community-stories-header{display:flex;justify-content:space-between;gap:30px;max-width:none;align-items:end}
.community-stories-header-copy{max-width:760px}
.community-stories-all{white-space:nowrap}
.profile-card{
  transition:transform .25s,box-shadow .25s,border-color .25s,opacity .25s;
}
.profile-card.is-story-match{
  border-color:var(--green);
  box-shadow:0 0 0 4px rgba(74,103,65,.12),0 18px 40px rgba(26,43,60,.13);
  transform:translateY(-4px);
}
.profile-card.is-story-match::before{
  content:"A story selected for you";
  display:block;
  padding:9px 16px;
  background:var(--green);
  color:#fff;
  font-size:12px;
  font-weight:700;
  letter-spacing:.08em;
  text-align:center;
  text-transform:uppercase;
}

@media(max-width:960px){
  .community-match{grid-template-columns:260px 1fr}
  .community-stories-header{align-items:start;flex-direction:column}
}
@media(max-width:720px){
  .community-hero{min-height:600px}
  .community-entry-grid{grid-template-columns:1fr}
  .community-entry-link{min-height:84px}
  .community-match{grid-template-columns:1fr}
  .community-match-media{min-height:310px;max-height:420px}
  .community-match-photo{min-height:310px;max-height:420px}
  .community-match-copy{padding:30px 24px 34px}
  .community-match-actions{align-items:stretch;flex-direction:column}
  .community-match-actions .btn,.community-match-reset{width:100%;text-align:center}
}
@media(prefers-reduced-motion:reduce){
  .community-entry-link,.profile-card{transition:none}
  html:focus-within{scroll-behavior:auto}
}
