/* ============================================================
   Perennial Favorites — shared design system core.
   Loaded from mu-plugins by pf-design-system.php.

   A page opts in by putting `pf-ds` on its wrapper alongside its own
   page namespace:   <div class="pf-ds pf-contact"> … </div>
   Page-specific CSS stays inline in that page's payload and wins on
   source order (inline <style> in the body follows this <link> in head).

   Authored in px on purpose: this site sets html{font-size:62.5%},
   so 1rem resolves to 10px and every rem value would render at 62.5%.
   ============================================================ */

.pf-ds {
  --ground:      #f1f4f5;
  --surface:     #ffffff;
  --surface-alt: #e8edef;
  --ink:         #10171c;
  --ink-soft:    #47565f;
  --ink-faint:   #7c8b94;
  --rule:        #d3dbdf;
  --accent:      #0085b2;
  --accent-deep: #00637f;
  --accent-wash: #e2f1f7;
  --sage:        #5f7a52;
  --sage-wash:   #e9efe5;
  --shadow:      0 1px 2px rgba(16,23,28,.06), 0 8px 24px -12px rgba(16,23,28,.18);
  --shadow-lift: 0 2px 4px rgba(16,23,28,.07), 0 14px 30px -14px rgba(16,23,28,.26);
}
.pf-ds * { box-sizing: border-box; }
.pf-ds {
  background: var(--ground);
  color: var(--ink);
  font-family: Archivo, "Helvetica Neue", Arial, sans-serif;
  font-size: 16.5px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
.pf-ds figure { margin: 0; }
.pf-ds img { max-width: 100%; height: auto; display: block; }
.pf-ds .wrap { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.pf-ds .narrow { max-width: 760px; }
.pf-ds section { padding: 44px 0; }
.pf-ds section:first-of-type { padding-top: 52px; }
.pf-ds section:last-of-type { padding-bottom: 76px; }
.pf-ds section + section { border-top: 1px solid var(--rule); }

.pf-ds .eyebrow {
  display: block; margin-bottom: 12px;
  font-size: 11.28px; font-weight: 600; letter-spacing: .13em;
  text-transform: uppercase; color: var(--accent-deep);
}
.pf-ds h2 {
  font-family: "Source Serif 4", Georgia, "Times New Roman", serif;
  font-size: clamp(25px, 3.2vw, 33px); font-weight: 700;
  letter-spacing: -.012em; line-height: 1.18; text-wrap: balance;
  margin: 0 0 14px; color: var(--ink);
}
.pf-ds h3 {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 20px; font-weight: 600; line-height: 1.28;
  margin: 0 0 8px; color: var(--ink);
}
.pf-ds p { margin: 0 0 15px; }
.pf-ds p:last-child { margin-bottom: 0; }
.pf-ds .lede {
  font-size: 19px; line-height: 1.55; color: var(--ink-soft);
  max-width: 64ch; margin: 0;
}
.pf-ds .rule { width: 64px; height: 3px; background: var(--accent); border-radius: 2px; margin: 0 0 26px; }

/* card */
.pf-ds .card {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--rule); border-radius: 3px;
  overflow: hidden; box-shadow: var(--shadow);
}
.pf-ds .card-body { padding: 18px 20px 20px; }
.pf-ds .card-body p { font-size: 14.9px; line-height: 1.55; color: var(--ink-soft); margin: 0; }

/* grid */
.pf-ds .grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }

/* bullet lists */
.pf-ds ul.points { margin: 0; padding: 0; list-style: none; }
.pf-ds ul.points li {
  position: relative; padding-left: 20px; margin-bottom: 9px;
  font-size: 15.2px; line-height: 1.55; color: var(--ink-soft);
}
.pf-ds ul.points li:last-child { margin-bottom: 0; }
.pf-ds ul.points li::before {
  content: ""; position: absolute; left: 4px; top: 9px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
}

/* vendor credit strip */
.pf-ds .credit {
  display: flex; align-items: center; gap: 22px; flex-wrap: wrap;
  background: var(--surface); border: 1px solid var(--rule); border-radius: 3px;
  padding: 22px 26px; box-shadow: var(--shadow); text-decoration: none;
  transition: border-color .13s, box-shadow .13s;
}
.pf-ds a.credit:hover, .pf-ds a.credit:focus-visible {
  border-color: var(--accent); box-shadow: var(--shadow-lift);
}
.pf-ds a.credit:focus-visible { outline: 2px solid var(--accent-deep); outline-offset: 2px; }
.pf-ds .credit-logo { flex: 0 0 auto; height: 56px; display: flex; align-items: center; }
.pf-ds .credit-logo img { max-height: 56px; width: auto; object-fit: contain; }
.pf-ds .credit-text { flex: 1 1 240px; }
.pf-ds .credit-text strong {
  display: block; font-family: "Source Serif 4", Georgia, serif;
  font-size: 17px; font-weight: 600; color: var(--ink); margin-bottom: 3px;
}
.pf-ds .credit-text span {
  font-size: 11.28px; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; color: var(--accent-deep);
}

@media (max-width: 900px) {
  .pf-ds .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 619px) {
  .pf-ds section { padding: 32px 0; }
  .pf-ds section:first-of-type { padding-top: 34px; }
  .pf-ds section:last-of-type { padding-bottom: 52px; }
  .pf-ds .grid-3 { grid-template-columns: 1fr; gap: 18px; }
  .pf-ds .credit { padding: 18px 20px; gap: 16px; }
}

/* Tap targets: WCAG 2.5.8 wants 24px minimum; tel:/mailto: links measured 21px
   on earlier pages in this rollout. Applies wherever the design system loads. */
.pf-ds a[href^="tel:"],
.pf-ds a[href^="mailto:"] { display: inline-flex; align-items: center; min-height: 28px; }
@media (max-width: 619px) {
  .pf-ds a[href^="tel:"],
  .pf-ds a[href^="mailto:"] { min-height: 40px; }
}
