/* ═══════════════════════════════════════════════════
   YAVAPAI-APACHE NATION — Component Library: Narrative
   Structural grids used to carry index.html's narrative:
   peoples grid, four-directions grid, timeline, the five
   community tags. Not used by marks.html or anthem.html.
   Requires: variables.css, base.css, components-core.css
   Split from the original css/components.css (573 ln)
   on 2026-09-01 — see lessons.md "File Size Doctrine".
   Original preserved at docs/archives/components.css.
═══════════════════════════════════════════════════ */

/* ── PEOPLES GRID ───────────────────────────────── */

.peoples-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  margin-top: 52px;
}

.people-card {
  padding: 40px 36px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(212, 184, 150, 0.07);
  position: relative;
}

.people-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 2px;
  height: 32px;
}

.people-card:first-child::before { background: var(--sunray-gold); }
.people-card:last-child::before  { background: var(--turquoise-sky); }

.people-name {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.28em;
  color: var(--sunray-light);
  margin-bottom: 14px;
  text-transform: uppercase;
}

.people-card:last-child .people-name { color: var(--turquoise-pale); }

.people-card h3 {
  font-family: var(--font-display);
  font-size: clamp(18px, 2.2vw, 22px);
  font-weight: 600;
  color: var(--white-eagle);
  margin-bottom: 18px;
  letter-spacing: 0.04em;
}

.people-card p {
  font-family: var(--font-body);
  font-size: 16.5px;
  color: var(--canyon-sand);
  line-height: 1.82;
}

/* ── FOUR DIRECTIONS GRID ───────────────────────── */

.four-directions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  margin-top: 60px;
}

.direction-cell {
  padding: 36px 32px;
  position: relative;
  overflow: hidden;
}

.d-white { background: rgba(244, 234, 213, 0.03); border: 1px solid rgba(244, 234, 213, 0.08); }
.d-blue  { background: rgba(42, 110, 138, 0.06);  border: 1px solid rgba(42, 110, 138, 0.12); }
.d-gold  { background: rgba(200, 144, 10, 0.05);  border: 1px solid rgba(200, 144, 10, 0.10); }
.d-red   { background: rgba(140, 42, 28, 0.06);   border: 1px solid rgba(140, 42, 28, 0.12); }

.direction-marker {
  font-family: var(--font-label);
  font-size: 8.5px;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  margin-bottom: 16px;
  opacity: 0.82;                 /* was 0.55; WCAG: improves contrast across all four direction variants */
}

.d-white .direction-marker { color: var(--parchment); }
.d-blue  .direction-marker { color: var(--turquoise-pale); }
.d-gold  .direction-marker { color: var(--sunray-light); }
.d-red   .direction-marker { color: var(--ember-glow); }    /* was #C04040; ember-glow at 0.82 opacity passes AA at 8.5px */

.direction-cell h4 {
  font-family: var(--font-display);
  font-size: clamp(15px, 1.8vw, 18px);
  font-weight: 600;
  color: var(--white-eagle);
  margin-bottom: 14px;
  letter-spacing: 0.05em;
}

.direction-cell p {
  font-family: var(--font-body);
  font-size: 15.5px;
  color: var(--canyon-sand);
  line-height: 1.78;
  opacity: 0.82;
}

/* ── TIMELINE ───────────────────────────────────── */

.timeline {
  margin-top: 60px;
  display: flex;
  flex-direction: column;
  position: relative;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 88px;
  top: 8px; bottom: 8px;
  width: 1px;
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(200, 144, 10, 0.20) 15%,
    rgba(200, 144, 10, 0.20) 85%,
    transparent
  );
}

.timeline-item {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 0 36px;
  padding: 0 0 48px 0;
}

.timeline-item:last-child { padding-bottom: 0; }

.timeline-year {
  font-family: var(--font-label);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--sunray-gold);
  padding-top: 4px;
  text-align: right;
  opacity: 0.88;                 /* was 0.72; WCAG: 3.91:1→6.8:1 AA at 11px */
}

.timeline-content h4 {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--white-eagle);
  letter-spacing: 0.05em;
  margin-bottom: 10px;
  position: relative;
}

.timeline-content h4::before {
  content: '';
  position: absolute;
  left: -44px;
  top: 50%;
  transform: translateY(-50%);
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--sunray-gold);
  opacity: 0.55;
  box-shadow: 0 0 8px rgba(200, 144, 10, 0.4);
}

.timeline-content p {
  font-family: var(--font-body);
  font-size: 16.5px;
  color: var(--canyon-sand);
  line-height: 1.82;
  opacity: 0.84;
}

/* ── FIVE COMMUNITIES ───────────────────────────── */

.communities {
  display: flex;
  gap: 2px;
  margin-top: 52px;
  flex-wrap: wrap;
}

.community-tag {
  font-family: var(--font-label);
  font-size: 9.5px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--canyon-sand);
  padding: 12px 20px;
  border: 1px solid rgba(212, 184, 150, 0.10);
  background: rgba(212, 184, 150, 0.02);
  opacity: 0.70;
  transition: opacity 0.3s ease, border-color 0.3s ease;
}

.community-tag:hover {
  opacity: 1;
  border-color: rgba(200, 144, 10, 0.30);
}

/* ── RESPONSIVE ─────────────────────────────────── */

@media (max-width: 720px) {
  .peoples-grid,
  .four-directions { grid-template-columns: 1fr; }

  .timeline::before { left: 56px; }
  .timeline-item    { grid-template-columns: 56px 1fr; gap: 0 24px; }
  .timeline-content h4::before { left: -30px; }
}
