/**
 * community.css — /community/ (page-community.php) only.
 *
 * Page-specific styles for the bespoke bits of the Commons Community page:
 * the "start in a week" 3-step on-ramp, the five-step meeting list, the
 * principles list + leadership note, and the Inner Being two-column
 * practice/what-changes block. Everything else reuses the shared 4E
 * band/card/sechead/page-hero-band/cta-band components.
 *
 * Enqueued only on is_page('community') — see inc/assets.php.
 *
 * 6G rebuild: retired the .cw-community-hero font-size hack (the hero is now
 * a real page-hero-band on an --image band, styled entirely by components.css
 * — nothing page-specific needed) and the dashed .cw-register-note callout
 * (replaced by a promoted 2-col register band).
 *
 * 6L E2 (2026-07-25): that promoted register band — and every rule this file
 * carried for it (.cw-community-register__*, .cw-capture--community) — was
 * removed sitewide by client request (interim "register your community"
 * capture; the map/network it fed were still in development). See
 * page-community.php's file-header docblock for the full removal + the
 * re-grounding decision it triggered for the band below.
 *
 * @package commonsworld
 */

/* ==========================================================================
   Start in a week (band 3, new) — 3 numbered step cards.
========================================================================== */
.cw-startweek {
  list-style: none;
  margin: clamp(2rem, 4vw, 3rem) 0 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
}
/* Same base.css `li + li` leak as the footer legal nav (6J). */
.cw-startweek > li {
  margin-top: 0;
}

.cw-startweek__item {
  position: relative;
  background: var(--cw-white);
  border: 1px solid var(--cw-border-soft);
  border-radius: var(--cw-radius-md);
  box-shadow: var(--cw-shadow-card);
  padding: 1.75rem 1.5rem 1.5rem;
}

.cw-startweek__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  margin-bottom: 0.9rem;
  border-radius: var(--cw-radius-pill);
  background: var(--cw-navy);
  color: var(--cw-gold-light);
  font-family: var(--cw-font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1;
}

.cw-startweek__title {
  margin: 0 0 0.5rem;
  font-size: var(--cw-fs-h4);
  color: var(--cw-heading);
}

.cw-startweek__text {
  margin: 0;
  color: var(--cw-text-muted);
  font-size: var(--cw-fs-body);
  line-height: 1.6;
}

/* Sentence-case gold link — NOT .cw-link-arrow (that is navy + uppercase).
   Standard --cw-gold-deep (#9f7b2b) is only ~3.3:1 here and fails small-text
   AA; this darker gold clears it (~4.6:1 on white/cream) — same fix as
   book.css .bk-hero__companions / home.css .cw-hero__link. */
.cw-startweek__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.9rem;
  color: #7d5e1e;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  border-bottom: 1.5px solid var(--cw-gold);
  padding-bottom: 2px;
  transition: color var(--cw-dur) var(--cw-ease), border-color var(--cw-dur) var(--cw-ease);
}
.cw-startweek__link:hover {
  color: #5c4f31;
  border-bottom-color: var(--cw-gold-deep);
}
.cw-startweek__link .cw-icon {
  width: 0.85em;
  height: 0.85em;
}

@media (min-width: 560px) {
  .cw-startweek {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

/* ==========================================================================
   The five-step meeting list (.cw-steps) — band 4 (moved down from band 2;
   was band 5 before 6L E2 removed the #register band ahead of it — see
   page-community.php's file-header docblock). Section re-grounded from
   --white to --navy by that same removal; .cw-steps__item is a self-
   contained white card so nothing here needed to change for that.
   A connected vertical timeline: numbered badge + icon + name/time + text.
========================================================================== */
.cw-steps {
  list-style: none;
  margin: clamp(2rem, 4vw, 3rem) auto 0;
  padding: 0;
  max-width: 760px;
  display: grid;
  gap: 1rem;
}

.cw-steps__item {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 1.1rem;
  padding: 1.4rem 1.5rem;
  background: var(--cw-white);
  border: 1px solid var(--cw-border-soft);
  border-radius: var(--cw-radius-md);
  box-shadow: var(--cw-shadow-card);
}

.cw-steps__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: var(--cw-radius-pill);
  background: var(--cw-navy);
  color: var(--cw-gold-light);
  font-family: var(--cw-font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1;
}

.cw-steps__body {
  display: block;
}

.cw-steps__name {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.6rem;
  font-family: var(--cw-font-heading);
  font-size: var(--cw-fs-h4);
  font-weight: 600;
  color: var(--cw-heading);
  margin: 0 0 0.35rem;
}

/* D2 WCAG AA fix: --cw-gold-deep (#9f7b2b) measures only 3.40:1 against this
   badge's rgba(191,148,56,.16)-over-white fill (~#f5eedf) — fails the 4.5:1
   floor this ~12.5px/700 label needs. Darkened along the same hue/saturation
   (41.4°/57%) rather than swapping to ink, so the badge keeps its gold-accent
   identity — #7c6022 measures 5.09:1 on this background. */
.cw-steps__time {
  display: inline-flex;
  align-items: center;
  padding: 0.12rem 0.6rem;
  border-radius: var(--cw-radius-pill);
  background: rgba(191, 148, 56, 0.16);
  color: #7c6022;
  font-family: var(--cw-font-body);
  font-size: var(--cw-fs-micro);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.cw-steps__text {
  display: block;
  color: var(--cw-text-muted);
  font-size: var(--cw-fs-body);
  line-height: 1.6;
}

/* ==========================================================================
   Principles for the room (.cw-principles) + leadership note — band 5
   (moved down from band 3; was band 6 before 6L E2).
========================================================================== */
.cw-principles {
  list-style: none;
  margin: clamp(1.5rem, 3vw, 2.25rem) 0 0;
  padding: 0;
  display: grid;
  gap: 1.1rem;
}

.cw-principles__item {
  position: relative;
  padding-left: 2rem;
  color: var(--cw-text);
  font-size: var(--cw-fs-body-lg);
  line-height: 1.6;
}

.cw-principles__item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 0.7rem;
  height: 0.7rem;
  transform: rotate(45deg);
  background: var(--cw-gold);
}

.cw-principles__note {
  margin: clamp(1.75rem, 3.5vw, 2.5rem) 0 0;
  padding: 1.25rem 1.5rem;
  border-left: 3px solid var(--cw-gold);
  background: var(--cw-surface-zone);
  border-radius: 0 var(--cw-radius-sm) var(--cw-radius-sm) 0;
  color: var(--cw-ink-soft);
  font-size: var(--cw-fs-body);
  line-height: 1.65;
}

/* ==========================================================================
   Inner Being — two-column practice + what-changes — band 6 (was band 7
   before 6L E2).
========================================================================== */
.cw-inner-being {
  margin-top: clamp(2rem, 4vw, 3rem);
  align-items: start;
}

.cw-inner-being__col {
  background: var(--cw-surface-zone);
  border: 1px solid var(--cw-border-soft);
  border-radius: var(--cw-radius-md);
  padding: clamp(1.5rem, 3vw, 2rem);
}

.cw-inner-being__head {
  margin: 0 0 1rem;
  font-size: var(--cw-fs-h4);
  color: var(--cw-heading);
}

.cw-inner-being__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.85rem;
}

.cw-inner-being__list li {
  position: relative;
  padding-left: 2rem;
  color: var(--cw-text);
  font-size: var(--cw-fs-body);
  line-height: 1.55;
}

/* Numbered practice steps use a serif counter chip. */
.cw-inner-being__list--numbered {
  counter-reset: cw-ib;
}

.cw-inner-being__list--numbered li::before {
  counter-increment: cw-ib;
  content: counter(cw-ib);
  position: absolute;
  left: 0;
  top: 0.05em;
  width: 1.4rem;
  height: 1.4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--cw-radius-pill);
  background: var(--cw-navy);
  color: var(--cw-gold-light);
  font-family: var(--cw-font-heading);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1;
}

/* What-changes list uses a gold diamond marker. */
.cw-inner-being__list--check li::before {
  content: "";
  position: absolute;
  left: 0.35rem;
  top: 0.55em;
  width: 0.6rem;
  height: 0.6rem;
  transform: rotate(45deg);
  background: var(--cw-gold);
}

.cw-inner-being__source {
  margin: clamp(1.5rem, 3vw, 2.25rem) 0 0;
  color: var(--cw-text-muted);
  font-size: var(--cw-fs-body);
  line-height: 1.6;
}

.cw-inner-being__source .cw-link-arrow {
  margin-left: 0.4rem;
  white-space: nowrap;
}
