/* ============================================================
   /expertise/, page-local styles (loaded after ../css/main.css)
   Component 16 (07 §12): expertise index rows per 03 §H, the numbered editorial index; typography as the icon system.
   No edits to main.css; everything here is scoped to this page.
   ============================================================ */

/* The locked H1 is long; relax the 16ch cap for this page only */
.page-header h1 { max-width: 22ch; }

/* Primary CTA sits under the answer block */
.page-header__cta { margin-top: var(--s-6); }

/* ---------- Expertise index rows (numbered, no icons) ---------- */

.xp-index__h2 { max-width: 18ch; }
.xp-index__intro { max-width: var(--text-max); color: var(--muted); margin-top: var(--s-5); }

.xp-index { margin-top: var(--s-7); border-top: 1px solid var(--border-light); }
.xp-index__row { border-bottom: 1px solid var(--border-light); }

/* The whole row is the link (03 §H) */
.xp-index__link {
  display: grid;
  grid-template-columns: 88px 1fr auto;
  align-items: baseline;
  gap: var(--s-6);
  padding: var(--s-6) var(--s-2);
  color: var(--ink);
  text-decoration: none;
}

/* Display numeral. The accent is the signal green now; the old brass is retired. */
.xp-index__num {
  font-family: var(--font-serif);
  font-size: 1.875rem;
  font-weight: 600;
  line-height: 1;
  color: var(--muted);
  transition: color var(--t-hover) var(--ease);
}

.xp-index__title { margin-bottom: var(--s-2); transition: color var(--t-hover) var(--ease); }
.xp-index__desc { color: var(--muted); max-width: var(--text-max); }

.xp-index__arrow {
  font-family: var(--font-sans);
  font-weight: 600;
  color: var(--green-600); /* green is behavioural: the row responds */
  transition: opacity var(--t-hover) var(--ease), transform var(--t-hover) var(--ease);
}

.xp-index__link:hover .xp-index__title,
.xp-index__link:hover .xp-index__num { color: var(--green-600); }

/* Arrow appears on row hover/focus where hover exists (03 §H);
   stays visible on touch so the affordance is never lost */
@media (hover: hover) and (pointer: fine) {
  .xp-index__arrow { opacity: 0; transform: translateX(-4px); }
  .xp-index__link:hover .xp-index__arrow,
  .xp-index__link:focus-visible .xp-index__arrow { opacity: 1; transform: none; }
}

.xp-index__fallback { max-width: var(--text-max); margin-top: var(--s-6); }

/* ---------- Built-for-ministry callout row ---------- */

.xp-ministry .section__inner { padding-top: var(--s-8); padding-bottom: var(--s-8); }
.xp-ministry__row {
  background: var(--paper);
  /* Was the "1px navy rule". Navy is invisible on the dark canvas, so
     it is the V3 hairline now. */
  border: 1px solid var(--border-light);
  border-radius: var(--r-md);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  padding: var(--card-pad);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--s-6);
  align-items: end;
}
.xp-ministry__row h2 { margin-bottom: var(--s-3); }
.xp-ministry__row .eyebrow { margin-bottom: var(--s-4); }
.xp-ministry__copy p:last-child { color: var(--muted); max-width: var(--text-max); }
.xp-ministry__row > .btn { white-space: nowrap; padding: var(--s-2) 0; } /* padding keeps the 44px hit area */

/* ---------- Method band variant ----------
   Reuses the .method component on Slate (navy-800) so the page can
   close navy-on-navy like the homepage's slate → navy sequence;
   the numeral mask must match the surface it sits on. */
.xp-method .method__numeral { background: var(--navy-800); }

/* ---------- Responsive ---------- */

@media (max-width: 720px) {
  .xp-index__link {
    grid-template-columns: 40px 1fr auto;
    gap: var(--s-4);
    padding: var(--s-5) 0;
  }
  .xp-index__num { font-size: 1.25rem; }
  .xp-ministry__row { grid-template-columns: 1fr; align-items: start; padding: var(--s-5); }
}

@media (prefers-reduced-motion: reduce) {
  .xp-index__num, .xp-index__title, .xp-index__arrow { transition: none; }
  .xp-index__arrow { opacity: 1 !important; transform: none !important; }
}
