/* FND Connect — community-first stories index. */

.stories-community-page {
  --stories-navy: #051d3d;
  --stories-deep: #00142f;
  --stories-pink: #c9005a;
  --stories-hot-pink: #ff9bc4;
  --stories-blush: #fff1f6;
  --stories-warm: #fbf8f5;
  --stories-ink: #0b2240;
  --stories-muted: #5f6b7b;
  overflow-x: hidden;
  background: var(--stories-warm);
}

.stories-community-page main {
  overflow: hidden;
}

.community-wrap {
  width: 100%;
  max-width: var(--max, 1120px);
  margin-inline: auto;
  padding-inline: var(--gutter, 1rem);
  box-sizing: border-box;
}

.community-hero {
  position: relative;
  min-height: clamp(560px, 72vh, 680px);
  overflow: hidden;
  isolation: isolate;
  color: #fff;
  background: var(--stories-deep);
}

.community-hero-gallery {
  position: absolute;
  z-index: 0;
  inset: 0;
  overflow: hidden;
}

.community-portrait {
  position: absolute;
  overflow: hidden;
  margin: 0;
  background: #102846;
}

.community-portrait img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.community-portrait--primary {
  inset: 0 0 0 43%;
  animation: community-image-settle 1.1s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.community-portrait--primary img {
  object-position: center 42%;
}

.community-portrait--secondary {
  z-index: 2;
  right: clamp(1.5rem, 5vw, 5rem);
  bottom: clamp(1.5rem, 5vw, 4rem);
  width: clamp(210px, 23vw, 330px);
  height: clamp(180px, 30vh, 270px);
  border: 8px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 25px 70px rgba(0, 12, 31, 0.42);
  transform: rotate(2.5deg);
  animation: community-secondary-settle 0.9s 0.16s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.community-portrait--secondary img {
  object-position: center;
}

.community-portrait figcaption {
  position: absolute;
  right: 0.85rem;
  bottom: 0.75rem;
  padding: 0.38rem 0.55rem;
  color: #fff;
  background: rgba(0, 20, 47, 0.82);
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.community-portrait--primary figcaption {
  display: none;
}

.community-hero-gallery--empty {
  display: grid;
  place-items: center end;
  padding-right: 6vw;
  background: radial-gradient(circle at 80% 45%, rgba(225, 47, 120, 0.48), transparent 42%);
}

.community-hero-gallery--empty span {
  color: rgba(255, 255, 255, 0.12);
  font-size: min(42vw, 34rem);
  font-weight: 950;
  line-height: 0.75;
}

.community-hero-shade {
  position: absolute;
  z-index: 1;
  inset: 0;
  background:
    linear-gradient(90deg, #00142f 0%, rgba(0, 20, 47, 0.99) 34%, rgba(0, 20, 47, 0.82) 53%, rgba(0, 20, 47, 0.18) 78%, rgba(0, 20, 47, 0.08) 100%),
    linear-gradient(0deg, rgba(0, 20, 47, 0.58), transparent 45%);
  pointer-events: none;
}

.community-hero-shade::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 40%;
  height: 5px;
  background: var(--stories-hot-pink);
}

.community-hero-inner {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  width: 100%;
  max-width: var(--max, 1120px);
  min-height: clamp(560px, 72vh, 680px);
  margin-inline: auto;
  padding: 4.8rem var(--gutter, 1rem) 2.8rem;
  box-sizing: border-box;
}

.community-breadcrumbs {
  position: absolute;
  top: 1.35rem;
  left: var(--gutter, 1rem);
}

.community-breadcrumbs ol {
  display: flex;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  color: rgba(255, 255, 255, 0.67);
  font-size: 0.76rem;
  font-weight: 700;
}

.community-breadcrumbs li + li::before {
  content: "/";
  margin-right: 0.5rem;
  color: var(--stories-hot-pink);
}

.community-breadcrumbs a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
}

.community-breadcrumbs a:hover {
  color: #fff;
}

.community-hero-copy {
  width: min(650px, 62%);
  animation: community-copy-arrive 0.75s 0.05s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.community-eyebrow {
  margin: 0 0 0.75rem;
  color: var(--stories-pink);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  line-height: 1.3;
  text-transform: uppercase;
}

.community-hero .community-eyebrow,
.community-share .community-eyebrow {
  color: #ff9bc4;
}

.community-hero h1 {
  max-width: 680px;
  margin: 0;
  color: #fff;
  font-size: clamp(3.65rem, 6.2vw, 5.4rem);
  font-weight: 950;
  letter-spacing: -0.065em;
  line-height: 0.89;
  text-wrap: balance;
}

.community-hero-lead {
  max-width: 570px;
  margin: 1.25rem 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(1rem, 1.55vw, 1.15rem);
  line-height: 1.55;
}

.community-hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem 1.3rem;
  margin-top: 1.45rem;
}

.community-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  min-height: 54px;
  padding: 0.85rem 1.25rem;
  border: 2px solid transparent;
  border-radius: 7px;
  font-weight: 850;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: transform 0.18s ease, background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.community-button:hover {
  transform: translateY(-2px);
}

.community-button--primary {
  color: #fff;
  background: var(--stories-pink);
  box-shadow: 0 13px 32px rgba(225, 47, 120, 0.28);
}

.community-button--primary:hover {
  color: #fff;
  background: #c92467;
}

.community-button--outline {
  border-color: var(--stories-navy);
  color: var(--stories-navy);
  background: transparent;
}

.community-button--outline:hover {
  color: #fff;
  background: var(--stories-navy);
}

.community-text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 48px;
  color: #fff;
  font-weight: 800;
  text-decoration-color: var(--stories-hot-pink);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.3rem;
}

.community-text-link span,
.community-story-cta span {
  transition: transform 0.18s ease;
}

.community-text-link:hover span,
.community-story-link:hover .community-story-cta span {
  transform: translateX(5px);
}

.community-story-count {
  margin: 1rem 0 0;
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.78rem;
  font-weight: 650;
}

.community-story-count strong {
  color: #fff;
  font-size: 1rem;
}

.community-chorus {
  overflow: hidden;
  border-bottom: 1px solid #e8e1dd;
  background: #fff;
}

.community-chorus-track {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.8rem, 2.4vw, 2rem);
  min-height: 104px;
  padding: 1rem var(--gutter, 24px);
  color: var(--stories-navy);
  font-size: clamp(1.1rem, 2.4vw, 1.65rem);
  font-weight: 850;
  letter-spacing: -0.035em;
  white-space: nowrap;
}

.community-chorus-track i {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--stories-pink);
}

.community-stories {
  padding: clamp(4.5rem, 9vw, 8rem) 0 clamp(5rem, 10vw, 9rem);
  background: var(--stories-warm);
}

.community-section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(300px, 0.62fr);
  align-items: end;
  gap: 2rem 7vw;
  margin-bottom: clamp(3rem, 6vw, 5.5rem);
}

.community-section-heading .community-eyebrow {
  grid-column: 1 / -1;
  margin-bottom: -0.9rem;
}

.community-section-heading h2 {
  margin: 0;
  color: var(--stories-navy);
  font-size: clamp(3rem, 6.5vw, 5.7rem);
  font-weight: 950;
  letter-spacing: -0.065em;
  line-height: 0.88;
}

.community-section-heading > p:last-child {
  max-width: 500px;
  margin: 0;
  color: var(--stories-muted);
  font-size: 1.02rem;
  line-height: 1.65;
}

.community-story-list {
  border-top: 1px solid #d9d3cf;
}

.community-story {
  border-bottom: 1px solid #d9d3cf;
}

.community-story-link {
  display: grid;
  grid-template-areas: "image copy";
  grid-template-columns: minmax(320px, 0.92fr) minmax(0, 1.08fr);
  align-items: stretch;
  min-height: 430px;
  color: inherit;
  text-decoration: none;
}

.community-story:nth-child(even) .community-story-link {
  grid-template-areas: "copy image";
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
}

.community-story-image {
  position: relative;
  grid-area: image;
  min-height: 420px;
  overflow: hidden;
  background: linear-gradient(145deg, var(--stories-navy), var(--stories-pink));
}

.community-story-image > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1), filter 0.35s ease;
}

.community-story-image > span:first-child:not(.community-story-number) {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(5rem, 14vw, 10rem);
  font-weight: 950;
}

.community-story-link:hover .community-story-image > img {
  transform: scale(1.035);
  filter: saturate(1.04);
}

.community-story-number {
  position: absolute;
  top: 1rem;
  left: 1rem;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  color: var(--stories-navy);
  background: rgba(255, 255, 255, 0.94);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.community-story-copy {
  grid-area: copy;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2.3rem, 5vw, 5rem);
  background: #fff;
}

.community-story-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.65rem;
  margin: 0 0 1.1rem;
  color: var(--stories-pink);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.community-story-meta strong {
  color: var(--stories-navy);
}

.community-story-copy h3 {
  max-width: 600px;
  margin: 0;
  color: var(--stories-navy);
  font-size: clamp(2rem, 4vw, 3.65rem);
  font-weight: 900;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.community-story-excerpt {
  max-width: 580px;
  margin: 1.2rem 0 0;
  color: var(--stories-muted);
  font-size: 0.98rem;
  line-height: 1.65;
}

.community-story-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  width: fit-content;
  margin-top: 1.5rem;
  padding-bottom: 0.22rem;
  border-bottom: 2px solid var(--stories-pink);
  color: var(--stories-navy);
  font-weight: 850;
}

.community-more {
  margin: 2.6rem 0 0;
  text-align: center;
}

.community-empty {
  max-width: 760px;
  padding: clamp(2.5rem, 6vw, 5rem) 0;
  border-top: 1px solid #d9d3cf;
  border-bottom: 1px solid #d9d3cf;
}

.community-empty h3 {
  margin: 0 0 1rem;
  color: var(--stories-navy);
  font-size: clamp(2rem, 5vw, 4rem);
  letter-spacing: -0.05em;
  line-height: 1;
}

.community-empty > p:not(.community-eyebrow) {
  margin: 0 0 1.5rem;
  color: var(--stories-muted);
  font-size: 1.05rem;
}

.community-recognition {
  position: relative;
  overflow: hidden;
  background: var(--stories-blush);
}

.community-recognition-inner {
  position: relative;
  display: grid;
  grid-template-columns: 0.32fr 1fr;
  align-items: start;
  gap: 2rem;
  padding-top: clamp(4rem, 8vw, 7rem);
  padding-bottom: clamp(4rem, 8vw, 7rem);
}

.community-quote-mark {
  color: var(--stories-pink);
  font-family: Georgia, serif;
  font-size: clamp(8rem, 18vw, 15rem);
  line-height: 0.7;
  opacity: 0.22;
}

.community-recognition h2 {
  max-width: 880px;
  margin: 0;
  color: var(--stories-navy);
  font-size: clamp(2.25rem, 5.1vw, 4.75rem);
  font-weight: 900;
  letter-spacing: -0.06em;
  line-height: 1;
}

.community-recognition div > p:last-child {
  max-width: 670px;
  margin: 1.35rem 0 0;
  color: #5f5360;
  font-size: 1.05rem;
  line-height: 1.65;
}

.community-share {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: var(--stories-deep);
}

.community-share::after {
  content: "";
  position: absolute;
  right: -8rem;
  bottom: -10rem;
  width: 25rem;
  height: 25rem;
  border: 5rem solid rgba(225, 47, 120, 0.15);
  border-radius: 50%;
}

.community-share-word {
  position: absolute;
  top: -0.11em;
  left: -0.02em;
  color: transparent;
  font-size: clamp(6rem, 17vw, 16rem);
  font-weight: 950;
  letter-spacing: -0.075em;
  line-height: 0.75;
  white-space: nowrap;
  -webkit-text-stroke: 2px rgba(255, 255, 255, 0.055);
}

.community-share-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: clamp(3rem, 8vw, 8rem);
  padding-top: clamp(6.5rem, 12vw, 10rem);
  padding-bottom: clamp(5rem, 10vw, 8rem);
}

.community-share-copy h2 {
  max-width: 700px;
  margin: 0;
  color: #fff;
  font-size: clamp(2.7rem, 5.6vw, 5rem);
  font-weight: 950;
  letter-spacing: -0.065em;
  line-height: 0.94;
}

.community-share-copy > p:not(.community-eyebrow) {
  max-width: 590px;
  margin: 1.35rem 0 1.65rem;
  color: rgba(255, 255, 255, 0.75);
  font-size: 1rem;
  line-height: 1.65;
}

.community-share-promises {
  align-self: center;
  margin: 0;
  padding: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  list-style: none;
}

.community-share-promises li {
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: 1rem;
  padding: 1.35rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.community-share-promises span {
  color: var(--stories-hot-pink);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.09em;
}

.community-share-promises strong {
  color: #fff;
  font-size: 0.98rem;
  line-height: 1.4;
}

.community-faq {
  padding: clamp(4.5rem, 9vw, 8rem) 0;
  background: #fff;
}

.community-faq-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.28fr);
  align-items: start;
  gap: clamp(3rem, 8vw, 8rem);
}

.community-faq-heading {
  position: sticky;
  top: 2rem;
}

.community-faq-heading h2 {
  margin: 0;
  color: var(--stories-navy);
  font-size: clamp(2.8rem, 5vw, 4.7rem);
  font-weight: 950;
  letter-spacing: -0.06em;
  line-height: 0.9;
}

.community-faq-heading > p:not(.community-eyebrow) {
  margin: 1.2rem 0 0;
  color: var(--stories-muted);
  line-height: 1.65;
}

.community-help-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin-top: 1.3rem;
}

.community-help-links a {
  color: var(--stories-navy);
  font-size: 0.87rem;
  font-weight: 800;
  text-decoration-color: var(--stories-pink);
  text-underline-offset: 0.25rem;
}

.community-faq-list {
  border-top: 2px solid var(--stories-navy);
}

.community-faq-list details {
  border: 0;
  border-bottom: 1px solid #d9dee6;
  border-radius: 0;
  background: transparent;
}

.community-faq-list summary {
  padding: 1.45rem 3rem 1.45rem 0;
  color: var(--stories-navy);
  font-size: 1rem;
  font-weight: 850;
}

.community-faq-list summary::after {
  right: 0;
  color: var(--stories-pink);
}

.community-faq-list details > p {
  max-width: 680px;
  margin: 0;
  padding: 0 2.5rem 1.45rem 0;
  color: var(--stories-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.community-faq-list a {
  color: var(--stories-pink);
  font-weight: 750;
}

.stories-community-page :is(.community-button, .community-text-link, .community-story-link, .community-breadcrumbs a, .community-help-links a, .community-faq-list summary):focus-visible {
  outline: 3px solid #ff8aba;
  outline-offset: 4px;
}

.stories-reveals-ready [data-story-reveal] {
  opacity: 0;
  transform: translateY(28px);
}

.stories-reveals-ready [data-story-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.65s var(--story-reveal-delay, 0ms) ease, transform 0.65s var(--story-reveal-delay, 0ms) cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes community-copy-arrive {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes community-image-settle {
  from { opacity: 0.45; transform: scale(1.07); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes community-secondary-settle {
  from { opacity: 0; transform: translateY(26px) rotate(6deg) scale(0.94); }
  to { opacity: 1; transform: translateY(0) rotate(2.5deg) scale(1); }
}

@media (max-width: 980px) {
  .community-hero-copy {
    width: min(690px, 74%);
  }

  .community-portrait--primary {
    left: 32%;
  }

  .community-hero-shade {
    background: linear-gradient(90deg, rgba(0, 20, 47, 0.99) 0%, rgba(0, 20, 47, 0.94) 48%, rgba(0, 20, 47, 0.48) 78%, rgba(0, 20, 47, 0.2) 100%);
  }

  .community-story-link,
  .community-story:nth-child(even) .community-story-link {
    grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
  }

  .community-story-copy {
    padding: 2.5rem;
  }
}

@media (max-width: 760px) {
  .community-hero,
  .community-hero-inner {
    min-height: 690px;
  }

  .community-hero-inner {
    align-items: flex-start;
    padding-top: 4.25rem;
    padding-bottom: 2rem;
  }

  .community-hero-copy {
    width: 100%;
  }

  .community-hero h1 {
    max-width: 540px;
    font-size: clamp(3rem, 13vw, 4.4rem);
  }

  .community-hero-lead {
    max-width: 520px;
    font-size: 0.96rem;
  }

  .community-hero-gallery {
    inset: 42% 0 0;
  }

  .community-portrait--primary {
    inset: 0;
  }

  .community-portrait--secondary {
    right: 1rem;
    bottom: 1rem;
    width: min(35vw, 180px);
    height: min(30vw, 150px);
    border-width: 5px;
  }

  .community-hero-shade {
    background:
      linear-gradient(180deg, #00142f 0%, rgba(0, 20, 47, 0.99) 43%, rgba(0, 20, 47, 0.75) 68%, rgba(0, 20, 47, 0.28) 100%),
      linear-gradient(90deg, rgba(0, 20, 47, 0.45), transparent);
  }

  .community-story-count {
    max-width: 55%;
  }

  .community-chorus-track {
    flex-wrap: wrap;
    justify-content: center;
    min-height: 88px;
    overflow: hidden;
    text-align: center;
    white-space: normal;
  }

  .community-section-heading {
    grid-template-columns: 1fr;
    gap: 1.35rem;
  }

  .community-section-heading .community-eyebrow {
    margin-bottom: -0.25rem;
  }

  .community-story-link,
  .community-story:nth-child(even) .community-story-link {
    grid-template-areas: "image" "copy";
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .community-story-image {
    min-height: 0;
    aspect-ratio: 1 / 1;
  }

  .community-story-copy {
    padding: 2rem 0 3.5rem;
    background: transparent;
  }

  .community-recognition-inner,
  .community-share-inner,
  .community-faq-layout {
    grid-template-columns: 1fr;
  }

  .community-recognition-inner {
    gap: 0;
  }

  .community-quote-mark {
    height: 4.8rem;
    font-size: 8rem;
  }

  .community-share-inner {
    gap: 3.5rem;
  }

  .community-faq-heading {
    position: static;
  }
}

@media (max-width: 480px) {
  .community-wrap,
  .community-hero-inner {
    width: calc(100% - 2rem);
  }

  .community-hero,
  .community-hero-inner {
    min-height: 700px;
  }

  .community-hero h1 {
    font-size: clamp(2.85rem, 13.5vw, 3.5rem);
  }

  .community-hero-actions {
    align-items: stretch;
    flex-direction: column;
    gap: 0.45rem;
  }

  .community-button--primary {
    width: 100%;
  }

  .community-text-link {
    align-self: center;
  }

  .community-story-count {
    max-width: 62%;
    margin-top: 0.45rem;
  }

  .community-portrait--secondary {
    display: none;
  }

  .community-section-heading h2 {
    font-size: 3.05rem;
  }

  .community-story-copy h3 {
    font-size: 2.25rem;
  }

  .community-recognition h2 {
    font-size: 2.45rem;
  }

  .community-share-copy h2 {
    font-size: 2.85rem;
  }

  .community-share-word {
    font-size: 7rem;
  }

  .community-share-promises li {
    grid-template-columns: 2rem 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .community-hero-copy,
  .community-portrait--primary,
  .community-portrait--secondary {
    animation: none;
  }

  .stories-reveals-ready [data-story-reveal] {
    opacity: 1;
    transform: none;
  }

  .stories-reveals-ready [data-story-reveal].is-visible,
  .community-story-image > img,
  .community-button,
  .community-text-link span,
  .community-story-cta span {
    transition: none;
  }
}
