/* ============================================================
   BANDED BLOCKS — Shared section-header pattern
   Used on Activity, Person Profile, and any page needing
   a coloured header bar with Kaushan accent text.
   Brand Guidelines v2.10
   ============================================================ */

/* ── Block container ── */
.banded-block {
  background: var(--wh);
  border-radius: 20px;
  overflow: hidden;

  /* v7.55.49 — Apple-style depth (4-layer navy shadow at rest, 5
     on hover). Same scale as the stories bento + homepage Q-cards
     so the whole theme has consistent card depth. */
  box-shadow:
    0 1px 2px  rgba(15, 37, 71, 0.05),
    0 8px 18px rgba(15, 37, 71, 0.07),
    0 20px 38px rgba(15, 37, 71, 0.05);
  transition:
    transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.banded-block:hover {
  transform: translateY(-4px);
  box-shadow:
    0 2px 4px   rgba(15, 37, 71, 0.06),
    0 14px 30px rgba(15, 37, 71, 0.10),
    0 30px 60px rgba(15, 37, 71, 0.10),
    0 60px 100px rgba(15, 37, 71, 0.06);
}
@media (prefers-reduced-motion: reduce) {
  .banded-block { transition: none; }
  .banded-block:hover { transform: none; }
}

/* ── Header bar ── */
.banded-header {
  padding: 20px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.banded-header h2,
.banded-header h3 {
  font-family: var(--ft);
  font-size: 1.3rem;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--wh);
  margin: 0;
}

/* ── Body area ── */
.banded-body {
  padding: 28px;
}
.banded-body p {
  font-family: var(--fb);
  font-size: .9rem;
  color: #444;
  line-height: 1.8;
  margin-bottom: 14px;
}
.banded-body p:last-child {
  margin-bottom: 0;
}
.banded-body strong {
  color: var(--pb);
}

/* ── Kaushan accent in header ── */
.card-header-ksh {
  font-family: var(--fs);
  font-size: .9rem;
  color: var(--py);
  transform: rotate(-6deg);
  display: inline-block;
}

/* ── Header colour modifiers ──
   Used by the "Banded Section" patterns so editors get a clean
   choice of brand-correct colours without touching CSS or inline
   styles. Add new modifiers here if a new brand colour is needed. */
.banded-header.band-blue   { background: linear-gradient(135deg, var(--pb), var(--db)); }
.banded-header.band-teal   { background: linear-gradient(135deg, #2a7c7c, #1e5757); }
.banded-header.band-cream  { background: linear-gradient(135deg, #d9c89a, #b89e62); }
.banded-header.band-cream h2, .banded-header.band-cream h3 { color: var(--db); }
.banded-header.band-cream .card-header-ksh { color: var(--db); }
.banded-header.band-gold   { background: linear-gradient(135deg, var(--py), #b8941a); }
.banded-header.band-gold h2, .banded-header.band-gold h3 { color: var(--db); }
.banded-header.band-gold .card-header-ksh { color: var(--wh); }
.banded-header.band-green  { background: linear-gradient(135deg, #4a7c2a, #335c1c); }

/* ── Responsive ── */
@media (max-width: 1100px) {
  .banded-header { padding: 18px 24px; }
  .banded-body   { padding: 24px; }
}
@media (max-width: 900px) {
  .banded-header { padding: 16px 20px; }
  .banded-body   { padding: 20px; }
}
@media (max-width: 768px) {
  .banded-header { padding: 14px 18px; }
  .banded-header h2,
.banded-header h3 { font-size: 1.15rem; }
  .banded-body   { padding: 18px; }
  .banded-body p { font-size: .86rem; }
}
@media (max-width: 480px) {
  .banded-header { padding: 12px 16px; }
  .banded-header h2,
.banded-header h3 { font-size: 1.05rem; }
  .banded-body   { padding: 16px; }
  .banded-body p { font-size: .84rem; }
}
