/* ============================================================
   MARK KRAMER LAW — practice-area pages
   DESIGN SPEC mkl-2026-09-25.1 (locked)

   Loaded AFTER assets/styles.css, and only on:
     practice-areas.html
     community-association-law.html
     foreclosure-investor-law.html
     real-estate-law.html

   Rules honoured here: only existing --mkl-* / --od-* tokens, no new
   hue, no colour literal, no !important, no shadow, no gradient,
   1px hairlines, 4px control radii, 150-250ms ease-out feedback,
   transform/opacity only, everything neutralised under
   prefers-reduced-motion. Structure is normal-flow grid/flex.
   ============================================================ */

/* ---------- page header (eyebrow + H1 + scope + one solid CTA) ---------- */
.page-head__inner {
  --od-gap: var(--mkl-space-2);
  max-width: var(--mkl-measure);
}
/* the H1 outranks every section H2, including the display-sized H2s on the overview */
.page-head__h1 { font-size: clamp(36px, 5vw, 64px); }

.page-head__actions {
  --od-gap: var(--mkl-space-3);
  margin-top: var(--mkl-space-5);
}

/* ---------- section heads ---------- */
.section-head {
  --od-gap: var(--mkl-space-2);
  max-width: var(--mkl-measure);
}
.section-body { margin-top: var(--mkl-space-3); }

/* ---------- lists that reorganise at 768 / 1440 ---------- */
.pa-grid,
.who-grid,
.steps,
.bring {
  --od-cols: 1;
  --od-gap: var(--mkl-space-4);
  margin-top: var(--mkl-space-6);
}
.bring { --od-gap: var(--mkl-space-3); }

@media (min-width: 768px) {
  .pa-grid,
  .who-grid,
  .steps,
  .bring { --od-cols: 2; }
}
@media (min-width: 1440px) {
  .who-grid,
  .steps { --od-cols: 4; }
}

/* ---------- a named service / audience type plus one clarifying line ---------- */
.pa-item,
.who-item,
.step {
  --od-gap: var(--mkl-space-1);
  padding-top: var(--mkl-space-2);
  border-top: var(--mkl-hairline-width) solid var(--mkl-hairline);
}
.pa-item__name,
.who-item__name {
  font-family: var(--mkl-font-body);
  font-weight: 500;
  font-size: 17px;
  line-height: 1.35;
  letter-spacing: 0.01em;
  color: var(--mkl-teal);
}
.pa-item__note,
.who-item__note,
.step__body,
.bring__item {
  font-family: var(--mkl-font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  color: var(--mkl-ink);
  max-width: var(--mkl-measure);
}

/* ---------- how an engagement starts: ordinals come from list position ---------- */
.steps { counter-reset: mkl-step; }
.step { counter-increment: mkl-step; }
.step::before {
  content: "Step " counter(mkl-step);
  font-family: var(--mkl-font-display);
  font-weight: 700;
  font-size: var(--mkl-eyebrow-size);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mkl-muted);
}
.step__title {
  font-family: var(--mkl-font-display);
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--mkl-ink);
}

/* ---------- what to bring ---------- */
.bring__item {
  padding-top: var(--mkl-space-2);
  border-top: var(--mkl-hairline-width) solid var(--mkl-hairline);
}

/* ---------- questions: native disclosure, keyboard operable ---------- */
.faq {
  --od-gap: 0;
  margin-top: var(--mkl-space-6);
  max-width: var(--mkl-measure);
}
.faq__item { border-top: var(--mkl-hairline-width) solid var(--mkl-hairline); }
.faq__item:last-child { border-bottom: var(--mkl-hairline-width) solid var(--mkl-hairline); }

.faq__summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--mkl-space-2);
  min-height: 56px;
  padding: var(--mkl-space-2) 0;
  cursor: pointer;
  list-style: none;
  border-radius: var(--mkl-radius-control);
}
.faq__summary::-webkit-details-marker { display: none; }
.faq__q {
  display: block;
  font-family: var(--mkl-font-display);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: var(--mkl-teal);
}
.faq__state {
  display: block;
  font-family: var(--mkl-font-body);
  font-weight: 500;
  font-size: var(--mkl-eyebrow-size);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mkl-muted);
  white-space: nowrap;
}
.faq__item[open] .faq__state-closed { display: none; }
.faq__state-open { display: none; }
.faq__item[open] .faq__state-open { display: block; }
.faq__answer { padding-bottom: var(--mkl-space-3); }

.faq__marker {
  display: flex;
  align-items: center;
  gap: var(--mkl-space-1);
  flex: none;
  color: var(--mkl-teal);
}
.faq__chevron { transition: transform var(--mkl-dur) var(--mkl-ease-out); }
.faq__item[open] .faq__chevron { transform: rotate(180deg); }

/* ---------- overview page: audience line under each practice ---------- */
.pa-audience {
  --od-gap: var(--mkl-space-1);
  margin-top: var(--mkl-space-5);
  max-width: var(--mkl-measure);
  padding-top: var(--mkl-space-2);
  border-top: var(--mkl-hairline-width) solid var(--mkl-hairline);
}
.pa-audience__label {
  font-family: var(--mkl-font-display);
  font-weight: 700;
  font-size: var(--mkl-eyebrow-size);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mkl-muted);
}
.pa-audience__text {
  font-family: var(--mkl-font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  color: var(--mkl-ink);
}
.pa-actions {
  --od-gap: var(--mkl-space-3);
  margin-top: var(--mkl-space-4);
}

/* ---------- related practices (reuses .teaser from the shared sheet) ---------- */
.related__grid {
  --od-cols: 1;
  --od-gap: var(--mkl-space-3);
  margin-top: var(--mkl-space-6);
}
@media (min-width: 768px) { .related__grid { --od-cols: 2; } }
@media (min-width: 1024px) { .related__grid { --od-cols: 3; } }

@media (prefers-reduced-motion: reduce) {
  .faq__summary,
  .faq__chevron { transition: none; }
}
