/* ─────────────────────────────────────────────────────────────────────────────
   PQA Callout List Block
   Reusable icon-box + title + description list, extracted from the donate page.

   Box style variants (set per-row via ACF):
     default  — Light-navy background, navy text
     .dark    — Navy background, accent-blue text
     .accent  — Accent-blue background, navy text

   Container context:
     Wrap in a .dark, .light, or .white parent section/group to automatically
     adjust row title and description colors. The box variants are intentionally
     stable across contexts — only the surrounding prose adapts.
   ───────────────────────────────────────────────────────────────────────────── */

/* ── List wrapper ─────────────────────────────────────────────────────────── */

.pqa-callout-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding-bottom: 1.5rem;
}

/* ── Row ──────────────────────────────────────────────────────────────────── */

.pqa-callout-list-row {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

/* ── Icon box ─────────────────────────────────────────────────────────────── */

.pqa-callout-list-box {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-base);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1;
  text-align: center;

  /* Default (light) */
  background-color: var(--pqa-light-navy);
  color: var(--pqa-navy);
}

.pqa-callout-list-box.dark {
  background-color: var(--pqa-navy);
  color: var(--pqa-white);
  font-weight: 800;
}

.dark .pqa-callout-list-box.dark,
.pqa-callout-list-box.accent {
  background-color: var(--pqa-accent-blue);
  color: var(--pqa-white);
  font-weight: 800;
}

/* ── Content ──────────────────────────────────────────────────────────────── */

.pqa-callout-list-content {
  flex: 1;
  min-width: 0;
}

.pqa-callout-list-title {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 0.25rem;

  /* Default: navy */
  color: var(--pqa-navy);
}

.pqa-callout-list-text {
  font-size: 0.875rem;
  line-height: 1.55;
  margin: 0;

  /* Default: mid-grey */
  color: var(--pqa-text-mid);
}

/* ── Light container context (.light parent) ──────────────────────────────── */
/* Light is the default appearance — these rules are identical to base and are
   included here for completeness / explicit override clarity.               */

.light .pqa-callout-list-title {
  color: var(--pqa-navy);
}

.light .pqa-callout-list-text {
  color: var(--pqa-text-mid);
}

/* ── White container context (.white parent) ──────────────────────────────── */

.white .pqa-callout-list-title {
  color: var(--pqa-navy);
}

.white .pqa-callout-list-text {
  color: var(--pqa-text-mid);
}

/* On a pure-white background the light box blends in; give it a subtle border. */
.white .pqa-callout-list-box:not(.dark):not(.accent) {
  border: 1px solid var(--pqa-border);
}

/* ── Dark container context (.dark parent) ────────────────────────────────── */

.dark .pqa-callout-list-title {
  color: var(--pqa-white);
}

.dark .pqa-callout-list-text {
  color: rgba(255, 255, 255, 0.72);
}

/* On a dark background the light box gets a semi-transparent treatment so it
   doesn't look pasted-in, while dark/accent boxes remain as-is.             */
.dark .pqa-callout-list-box:not(.dark):not(.accent) {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--pqa-white);
}

/* ── Plain box: small class (Box Label > 2 chars, no eyebrow) ────────────── */

.pqa-callout-list-box.small {
  font-size: 0.875rem;
}

/* ── Eyebrow mode (.has-eyebrow) ─────────────────────────────────────────── */
/*
 * When a Box Eyebrow value is set the box switches to a stacked date-block
 * layout mirroring .event-date-block from style.css:
 *
 *   ┌────────────┐
 *   │  SEP       │  ← .pqa-callout-list-box-eyebrow  (small, uppercase)
 *   │   19       │  ← .pqa-callout-list-box-label     (large number)
 *   └────────────┘
 */

.pqa-callout-list-box.has-eyebrow {
  flex-direction: column;
  gap: 0;
  /* Switch from fixed square to min-size so tall labels don't get clipped */
  width: auto;
  min-width: 56px;
  height: auto;
  min-height: 56px;
  padding: 0.5rem 0.65rem;
}

/* Eyebrow — mirrors .event-date-month */
.pqa-callout-list-box-eyebrow {
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.3;
  color: var(--pqa-navy);
}

/* Label — mirrors .event-date-day; inherits parent box color for the number */
.pqa-callout-list-box-label {
  font-size: 1.25rem;
  font-weight: 800;
  white-space: nowrap;
  line-height: 1;
}

/* Reduced size for labels > 2 chars — mirrors .event-date-day.small */
.pqa-callout-list-box-label.small {
  font-size: 0.8rem;
  margin-top: 0.25rem;
}

/* ── Eyebrow color — context overrides ───────────────────────────────────── */

.pqa-callout-list-box.dark .pqa-callout-list-box-eyebrow {
  color: var(--pqa-accent-blue);
}

.pqa-callout-list-box.accent .pqa-callout-list-box-eyebrow,
.dark .pqa-callout-list-box.dark .pqa-callout-list-box-eyebrow {
  color: var(--pqa-white);
}

/* Dark parent + light box (bg becomes rgba white overlay, label becomes white):
   accent-blue retains enough contrast on the near-dark visual background */
.dark .pqa-callout-list-box:not(.dark):not(.accent) .pqa-callout-list-box-eyebrow {
  color: var(--pqa-accent-blue);
}

/* ── Responsive ───────────────────────────────────────────────────────────── */

@media (max-width: 480px) {
  .pqa-callout-list-box {
    width: 48px;
    height: 48px;
    font-size: 1rem;
    border-radius: 10px;
  }

  .pqa-callout-list-box.has-eyebrow {
    width: auto;
    height: auto;
    min-width: 48px;
    min-height: 48px;
  }
}