/*
Practice area index and detail pages.

Uses the existing brand navy (#2d2e82) and the type scale already set by
templatemo-eduwell-style.css. Minimal and trust-led: flat surfaces, one
accent colour, a single hairline border per card, no decorative motion.
*/

:root {
  --practice-navy: #2d2e82;
  --practice-ink: #111;
  --practice-body: #4a4a4a;
  --practice-muted: #6a6a6a;
  --practice-hairline: #e6e6ea;
  --practice-radius: 8px;
}

/* ---------- index grid ---------- */

.practice-grid {
  display: grid;
  /* One column on phones, filling out to three on desktop without any
     media-query breakpoints of its own. */
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

.practice-card {
  display: flex;
  flex-direction: column;
  /* Generous enough that the whole card clears the 44px minimum target. */
  padding: 28px 26px;
  border: 1px solid var(--practice-hairline);
  border-left: 3px solid var(--practice-navy);
  border-radius: var(--practice-radius);
  background: #fff;
  text-decoration: none !important;
  transition: box-shadow .2s ease, border-color .2s ease;
}

.practice-card:hover,
.practice-card:focus-visible {
  box-shadow: 0 6px 24px rgba(45, 46, 130, .12);
  border-color: var(--practice-navy);
}

.practice-card:focus-visible {
  outline: 3px solid var(--practice-navy);
  outline-offset: 2px;
}

.practice-card__title {
  font-size: 20px;
  line-height: 28px;
  font-weight: 700;
  color: var(--practice-ink);
  margin: 0 0 12px;
}

.practice-card__summary {
  font-size: 15px;
  line-height: 1.6;
  color: var(--practice-body);
  margin: 0 0 20px;
}

.practice-card__more {
  margin-top: auto;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--practice-navy);
}

/* ---------- detail page ---------- */

.practice-breadcrumb {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 0 0 24px;
  font-size: 14px;
  color: var(--practice-muted);
}

.practice-breadcrumb li + li::before {
  content: "/";
  margin-right: 8px;
  color: var(--practice-hairline);
}

.practice-breadcrumb a {
  color: var(--practice-navy);
}

.practice-detail__body p {
  font-size: 16px;
  line-height: 1.75;
  color: var(--practice-body);
  /* The old page justified this text, which opens rivers of whitespace on
     narrow screens. */
  text-align: left;
  margin-bottom: 20px;
}

.practice-detail__list {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
}

.practice-detail__list li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 12px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--practice-body);
  /* Override the italic, 14px list style the shared eduwell sheet applies
     inside section.more-info. */
  font-style: normal;
  font-weight: 400;
}

.practice-detail__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--practice-navy);
}

.practice-related {
  border-top: 1px solid var(--practice-hairline);
  padding-top: 32px;
}

.practice-related__links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.practice-related__links a {
  display: inline-block;
  /* 44px minimum touch target. */
  padding: 12px 18px;
  min-height: 44px;
  border: 1px solid var(--practice-hairline);
  border-radius: var(--practice-radius);
  font-size: 14px;
  color: var(--practice-navy);
  text-decoration: none !important;
  transition: border-color .2s ease;
}

.practice-related__links a:hover,
.practice-related__links a:focus-visible {
  border-color: var(--practice-navy);
}

.practice-related__links a:focus-visible {
  outline: 3px solid var(--practice-navy);
  outline-offset: 2px;
}

/* The shared sheet sets a 62px h1, which wraps badly on a phone for the
   longer practice area names. */
@media (max-width: 767px) {
  section.page-heading .header-text h1 {
    font-size: 34px;
    line-height: 1.2;
  }
}

@media (prefers-reduced-motion: reduce) {
  .practice-card,
  .practice-related__links a {
    transition: none;
  }
}
