/* ============================================================
   Light editorial body — communities, standard, stats (Function-inspired)
   ============================================================ */
.lite { background: var(--cream); color: var(--on-light); }

.sec-head { display: flex; flex-direction: column; gap: 1rem; max-width: 26ch; margin-bottom: clamp(2.4rem, 5vw, 4rem); }
.sec-head h2 { font-size: var(--step-4); }
.sec-head h2 em { color: var(--accent); }
.sec-head.center { margin-inline: auto; text-align: center; align-items: center; max-width: 30ch; }
.sec-head p { color: var(--on-light-soft); font-size: var(--step-1); max-width: 42ch; }

/* Communities — horizontal scroll rail */
.communities .rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: clamp(260px, 32vw, 380px);
  gap: 1.2rem; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: .5rem var(--gutter) 1.5rem; margin-inline: calc(-1 * var(--gutter));
  scrollbar-width: none;
}
.communities .rail::-webkit-scrollbar { display: none; }
.comm-card {
  position: relative; scroll-snap-align: start; border-radius: var(--radius-lg);
  overflow: hidden; aspect-ratio: 3/4; background: var(--ink-2);
  isolation: isolate;
}
.comm-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.1s var(--ease); }
.comm-card:hover img { transform: scale(1.07); }
.comm-card::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(13,12,10,0) 40%, rgba(13,12,10,0.85)); }
.comm-card__body { position: absolute; inset: auto 0 0 0; z-index: 2; padding: 1.4rem 1.5rem; color: var(--cream); }
.comm-card__body .k { font-family: var(--mono); font-size: .68rem; letter-spacing: .16em; color: var(--accent-2); }
.comm-card__body h3 { font-family: var(--serif); font-size: var(--step-2); margin-top: .2rem; }
.comm-card__body p { font-size: var(--step--1); color: var(--on-dark-soft); margin-top: .3rem; }
.comm-card__arrow { position: absolute; top: 1.2rem; right: 1.2rem; z-index: 2;
  width: 38px; height: 38px; border-radius: 50%; background: rgba(246,241,231,0.16);
  backdrop-filter: blur(6px); display: grid; place-items: center; color: var(--cream);
  transition: background .3s, transform .3s; }
.comm-card:hover .comm-card__arrow { background: var(--accent); transform: rotate(-45deg); }

/* Standard / editorial split (Function "new standard for health") */
.standard { background: var(--paper); }
.standard__head { text-align: center; max-width: 20ch; margin: 0 auto clamp(2.5rem,5vw,4rem); }
.standard__head h2 { font-size: var(--step-5); line-height: .98; }
.standard__head h2 em { color: var(--accent); }
.standard__head p { color: var(--on-light-soft); font-size: var(--step-1); margin-top: 1rem; }
.standard__grid {
  display: grid; grid-template-columns: repeat(12, 1fr); gap: 1.2rem;
}
.feat {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  background: var(--paper-2); min-height: 280px; isolation: isolate;
}
.feat img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.feat--tall { grid-column: span 4; aspect-ratio: 3/4.4; }
.feat--wide { grid-column: span 8; aspect-ratio: 16/10; }
.feat--quote { grid-column: span 5; }
.feat--img  { grid-column: span 7; aspect-ratio: 16/11; }
.feat__quote { position: relative; z-index: 2; padding: clamp(1.8rem,4vw,3rem);
  display: flex; flex-direction: column; justify-content: space-between; gap: 2rem; height: 100%; min-height: 280px; }
.feat__quote blockquote { font-family: var(--serif); font-size: var(--step-2); line-height: 1.12; }
.feat__quote cite { font-style: normal; font-family: var(--mono); font-size: .72rem; letter-spacing: .12em; color: var(--on-light-soft); }
.feat__cap { position: absolute; inset: auto 0 0 0; z-index: 2; padding: 1.4rem; color: var(--cream);
  background: linear-gradient(180deg, transparent, rgba(13,12,10,.8)); font-family: var(--mono);
  font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; }

/* Stats */
.stats { border-top: 1px solid var(--line-light); }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.stat { padding: 1.5rem 0; border-right: 1px solid var(--line-light); }
.stat:last-child { border-right: none; }
.stat__num { font-family: var(--serif); font-size: var(--step-4); line-height: 1; letter-spacing: -.02em; }
.stat__num .u { color: var(--accent); }
.stat__label { font-family: var(--mono); text-transform: uppercase; letter-spacing: .12em; font-size: .68rem; color: var(--on-light-soft); margin-top: .6rem; }

@media (max-width: 900px) {
  .standard__grid { grid-template-columns: repeat(6, 1fr); }
  .feat--tall, .feat--wide, .feat--quote, .feat--img { grid-column: 1 / -1; aspect-ratio: 16/10; }
  .feat--quote { aspect-ratio: auto; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: none; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line-light); }
}
@media (max-width: 520px) { .stats__grid { grid-template-columns: 1fr 1fr; } }
