/* ============================================================
   Pinky Paws Pet Finder — components.css
   Component canon per DESIGN-SYSTEM.md §2, built on tokens.css.
   Deviations logged in DESIGN-DELTAS.md (D8-D13).
   ============================================================ */

/* ---- Base ---- */
*, *::before, *::after { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
button { font-family: inherit; }
img { max-width: 100%; }
/* hidden must always win, even over components that set their own display
   (the Krystle modal overlay is display:flex; without this it renders stuck open) */
[hidden] { display: none !important; }

/* D11: visible keyboard focus everywhere */
:focus-visible { outline: 2px solid var(--pink); outline-offset: 2px; border-radius: 4px; }
.pp-on-pink :focus-visible, .pp-header :focus-visible, .pp-intake__head :focus-visible {
  outline-color: #fff;
}

/* D12: respect reduced-motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---- Icons (D8: lucide, static SVG, 1.5px stroke) ---- */
.pp-icon {
  width: 24px; height: 24px;
  fill: none; stroke: currentColor;
  stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
  flex-shrink: 0;
}
.pp-icon--16 { width: 16px; height: 16px; }
.pp-icon--18 { width: 18px; height: 18px; }
.pp-icon--20 { width: 20px; height: 20px; }
.pp-icon--22 { width: 22px; height: 22px; }
.pp-icon--28 { width: 28px; height: 28px; }
.pp-icon--30 { width: 30px; height: 30px; }
.pp-icon--44 { width: 44px; height: 44px; }

/* ---- Type roles (DESIGN-SYSTEM §1) ---- */
.pp-h1        { font-size: 28px; font-weight: 800; letter-spacing: -0.01em; line-height: 1.1; margin: 0; }
.pp-h1--intake{ font-size: 26px; }
.pp-body      { font-size: 14px; line-height: 1.55; color: var(--text-body); }
.pp-micro {
  font-size: 11px; font-weight: 800; letter-spacing: 0.6px;
  text-transform: uppercase;
}
.pp-micro--12 { font-size: 12px; font-weight: 700; letter-spacing: 0.4px; }

/* ============================================================
   1. Site header (MobileHeader)
   ============================================================ */
.pp-header {
  background: var(--pink);
  color: #fff;
  padding: calc(var(--safe-top) + 12px) var(--gutter-lg) 16px;
  position: relative;
}
.pp-header--compact { padding-bottom: 14px; }
.pp-header__row1 {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 4px; min-height: 32px;
}
.pp-header__menu {
  background: transparent; border: 0; color: #fff;
  padding: 6px; margin: -6px; cursor: pointer;
  min-width: 44px; min-height: 44px;
  display: flex; align-items: center;
}
.pp-header__brand { display: flex; align-items: center; gap: 6px; opacity: 0.95; }
.pp-header__brand img {
  width: 22px; height: 22px; border-radius: var(--r-brand);
  background: #fff; object-fit: cover;
}
.pp-header__brand span {
  /* Brand lockup: part of the logotype, WCAG 1.4.3 logo exemption (see D10) */
  font-size: 12px; font-weight: 700; letter-spacing: 0.4px; text-transform: uppercase;
}
.pp-header__avatar {
  width: 32px; height: 32px; border-radius: 50%; background: #fff;
  display: flex; align-items: center; justify-content: center;
  color: var(--pink); font-weight: 800; font-size: 13px; flex-shrink: 0;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}
.pp-header .pp-h1 { margin: 6px 0 10px; color: #fff; }
.pp-header--compact .pp-h1 { margin-bottom: 0; }
.pp-header__tools { display: flex; align-items: center; gap: 8px; }
.pp-search {
  flex: 1; display: flex; align-items: center; gap: 8px;
  background: var(--pink-soft); border-radius: var(--r-pill);
  padding: 9px 14px; min-height: 40px;
  color: var(--pink-ink); /* D10: was white, 1.7:1; ink reads 9.5:1 on pink-soft */
  /* 40px visual, 44px effective target; the <label> makes the whole pill focus the input */
  position: relative; cursor: text;
}
.pp-search::after { content: ''; position: absolute; inset: -2px; border-radius: inherit; }
.pp-search input {
  flex: 1; background: transparent; border: 0; outline: none;
  color: var(--pink-ink); font-family: inherit; font-size: 15px; font-weight: 500;
  caret-color: var(--pink-ink); min-width: 0;
  position: relative; z-index: 1; /* above the ::after hit-area layer for direct caret clicks */
}
.pp-search input::placeholder { color: var(--pink-ink); opacity: 0.72; font-weight: 500; }
.pp-header__iconbtn {
  width: 40px; height: 40px; border-radius: var(--r-pill); border: 0;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; flex-shrink: 0;
  /* 40px visual, 44px effective target */
  position: relative;
}
.pp-header__iconbtn::after { content: ''; position: absolute; inset: -2px; border-radius: inherit; }
.pp-header__iconbtn--filter { background: var(--pink-soft); color: var(--pink-ink); }
.pp-header__iconbtn--add {
  background: #fff; color: var(--pink);
  box-shadow: var(--shadow-add-btn);
}

/* ============================================================
   2. Site nav (BottomTabBar on mobile, top nav on desktop)
   ============================================================ */
.pp-nav {
  background: var(--bg);
  border-top: 1px solid var(--tabbar-hairline);
  padding-top: 8px;
  padding-bottom: calc(var(--safe-bottom) + 8px);
  display: flex; width: 100%;
}
.pp-nav__item {
  flex: 1; background: transparent; border: 0; padding: 4px 0;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  min-height: 44px; cursor: pointer; color: var(--text);
  font-size: 11px; font-weight: 500; letter-spacing: 0.1px;
  text-decoration: none;
}
.pp-nav__item.is-active { color: var(--pink); font-weight: 700; }
.pp-nav__item.is-active .pp-icon { fill: currentColor; }
@media (min-width: 768px) {
  .pp-nav { border-top: 0; border-bottom: 1px solid var(--tabbar-hairline); padding: 0 var(--gutter); }
  .pp-nav__item {
    flex: 0 0 auto; flex-direction: row; gap: 8px; padding: 14px 16px;
    font-size: 13px;
  }
  .pp-nav__item .pp-icon--22 { width: 18px; height: 18px; }
}

/* ============================================================
   3. CardShell — the 1px pink top border is the spec.
      Never removed, never thickened.
   ============================================================ */
.pp-card {
  background: var(--card);
  border-top: 1px solid var(--pink);
  padding: var(--pad-card);
  display: flex; align-items: center; gap: 12px;
  transition: background var(--dur-press);
  color: inherit; text-decoration: none;
}
.pp-card--plain { border-top-color: transparent; }
a.pp-card:active, button.pp-card:active { background: var(--card-2); }
.pp-card__chevron { color: var(--text-ghost); }

/* Photo thumb shared by PetCard / CaseCard */
.pp-thumb {
  border-radius: var(--r-photo); background: var(--photo-well);
  flex-shrink: 0; overflow: hidden; position: relative;
  background-size: cover; background-position: center;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-ghost);
}
.pp-thumb--64 { width: 64px; height: 64px; }
.pp-thumb--56 { width: 56px; height: 56px; }
.pp-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* ============================================================
   4. PetCard
   ============================================================ */
.pp-pet-card__main { flex: 1; min-width: 0; }
.pp-pet-card__name-row { display: flex; align-items: center; gap: 8px; margin-bottom: 2px; }
.pp-pet-card__name { color: var(--text); font-weight: 700; font-size: 16px; line-height: 1.2; }
.pp-pet-card__breed { font-size: 13px; color: var(--text-mid); margin-bottom: 3px; }
.pp-pet-card__meta { font-size: 12px; color: var(--text-dim); display: flex; gap: 10px; }

/* Status chips (PetCard: LOST / FOUND; plus REUNITED per D13) */
.pp-chip-status {
  font-size: 10px; font-weight: 700; letter-spacing: 0.4px; text-transform: uppercase;
  padding: 2px 6px; border-radius: var(--r-chip);
}
.pp-chip-status--lost     { color: var(--pink-tint-text); background: var(--pink-wash-14); } /* D10: pink text read 4.3:1 on the wash */
.pp-chip-status--found    { color: var(--success); background: var(--success-wash-14); }
.pp-chip-status--reunited { color: var(--success); background: var(--success-wash-14); }
.pp-chip-status--example  { color: var(--text-mid); background: rgba(255, 255, 255, 0.08); } /* D24: seed honesty */

/* ============================================================
   5. VolunteerCard (grouped by availability)
   ============================================================ */
.pp-vol-head {
  color: var(--pink); font-size: 11px; font-weight: 800; letter-spacing: 0.6px;
  text-transform: uppercase; padding: 0 var(--gutter); margin: 10px 0 4px;
}
.pp-vol-row {
  padding: 10px var(--gutter) 12px;
  border-bottom: 1px solid var(--list-divider);
  display: flex; align-items: center; gap: 12px;
  color: inherit; text-decoration: none;
}
.pp-vol-row__main { flex: 1; min-width: 0; }
.pp-vol-row__name { color: var(--text); font-weight: 700; font-size: 16px; margin-bottom: 2px; }
.pp-vol-row__area { color: var(--text-dim); font-size: 13px; }

/* ============================================================
   6. CaseCard
   ============================================================ */
.pp-case-card__main { flex: 1; min-width: 0; }
.pp-case-card__ref {
  font-size: 11px; font-weight: 700; color: var(--pink); letter-spacing: 0.4px;
  text-transform: uppercase; margin-bottom: 2px;
}
.pp-case-card__name { color: var(--text); font-weight: 700; font-size: 15px; margin-bottom: 3px; }
.pp-case-card__status {
  font-size: 12px; color: var(--text-dim);
  display: flex; gap: 8px; align-items: center;
}
.pp-case-card__status span:first-child + span { text-transform: capitalize; }
.pp-dot {
  width: 6px; height: 6px; border-radius: 50%; display: inline-block; flex-shrink: 0;
}
.pp-dot--active   { background: var(--pink); }
.pp-dot--urgent   { background: var(--urgent); }
.pp-dot--reunited { background: var(--success); }  /* D13 */
.pp-dot--closed   { background: var(--success); }

/* ============================================================
   7. MapView (production: MapLibre styled to the map palette)
   ============================================================ */
.pp-map {
  position: relative; width: 100%;
  background: var(--map-land);
  border-top: 1px solid var(--divider); border-bottom: 1px solid var(--divider);
  overflow: hidden;
}
.pp-map--260 { height: 260px; }
.pp-map--220 { height: 220px; }
.pp-map--180 { height: 180px; }

/* Loading skeleton (hard rule 7: real states) */
.pp-map.is-loading { background: var(--card); }
.pp-map__skeleton {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  color: var(--text-dim); font-size: 13px;
  background: linear-gradient(100deg, var(--card) 40%, var(--card-2) 50%, var(--card) 60%);
  background-size: 200% 100%;
  animation: pp-shimmer 1.4s ease infinite;
}
@keyframes pp-shimmer { from { background-position: 120% 0; } to { background-position: -80% 0; } }

/* The pin: LOCKED. 22px pink circle, 3px white ring, stem, 44px hit target. */
.pp-pin {
  position: absolute; transform: translate(-50%, -100%);
  background: transparent; border: 0; padding: 0; cursor: pointer;
  min-width: 44px; min-height: 44px;
  display: flex; align-items: flex-end; justify-content: center;
}
.pp-pin__head {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--pink); border: 3px solid #fff;
  box-shadow: var(--shadow-pin);
}
.pp-pin__stem {
  position: absolute; bottom: -2px; width: 2px; height: 8px; background: var(--pink);
}
.pp-map__attribution {
  position: absolute; bottom: 6px; left: 8px;
  font-size: 10px; color: #494949; font-weight: 600; letter-spacing: 0.2px;
  background: rgba(255, 255, 255, 0.85); padding: 2px 6px; border-radius: 3px;
}

/* ============================================================
   8. EmptyState
   ============================================================ */
.pp-empty {
  padding: 48px 32px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.pp-empty__halo {
  width: 72px; height: 72px; border-radius: 50%;
  background: var(--pink-wash-10); border: 1px solid var(--pink-wash-25);
  display: flex; align-items: center; justify-content: center;
  color: var(--pink); margin-bottom: 6px;
}
.pp-empty__title { color: var(--text); font-weight: 700; font-size: 18px; }
.pp-empty__msg { font-size: 13px; line-height: 1.5; max-width: 260px; color: var(--text-dim); }
.pp-empty .pp-btn { margin-top: 8px; }

/* ============================================================
   9. LoadingSpinner
   ============================================================ */
.pp-spinner {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 24px; color: var(--text-mid);
}
.pp-spinner svg { animation: pp-spin var(--dur-spin) linear infinite; }
.pp-spinner__track { stroke: var(--pink-wash-25); opacity: 0.6; }
.pp-spinner__arc { stroke: var(--pink); }
.pp-spinner__label { font-size: 13px; color: var(--text-dim); }
@keyframes pp-spin { to { transform: rotate(360deg); } }

/* ============================================================
   10. IntakeStepShell (frames the embedded GHL forms)
   ============================================================ */
.pp-intake {
  display: flex; flex-direction: column; background: var(--bg); position: relative;
  animation: pp-slide-up var(--dur-slide) ease;
}
@keyframes pp-slide-up { from { transform: translateY(100%); } to { transform: none; } }
.pp-intake__head {
  background: var(--pink); color: #fff;
  padding: calc(var(--safe-top) + 12px) var(--gutter) 18px;
}
.pp-intake__topline { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.pp-intake__back {
  background: transparent; border: 0; color: #fff; padding: 6px; margin: -6px;
  cursor: pointer; min-width: 44px; min-height: 44px;
  display: flex; align-items: center; text-decoration: none;
}
.pp-intake__step {
  flex: 1; font-size: 12px; font-weight: 700; letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--ink-on-pink); /* D10: was white at .85, 3.1:1 */
}
.pp-intake__head .pp-h1--intake { color: #fff; }
.pp-intake__progress {
  margin-top: 14px; height: 4px;
  background: rgba(255, 255, 255, 0.25); border-radius: var(--r-pill);
}
.pp-intake__progress-fill {
  height: 100%; background: #fff; border-radius: var(--r-pill);
  transition: width var(--dur-bar);
}
.pp-intake__body { flex: 1; overflow: auto; padding: 20px var(--gutter-lg) 100px; }
.pp-intake__footer {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 12px var(--gutter) calc(var(--safe-bottom) + 16px);
  background: linear-gradient(180deg, rgba(10, 10, 10, 0) 0%, var(--bg) 30%);
}

/* ============================================================
   11. KrystleModal (LOCKED copy lives in the template)
   ============================================================ */
.pp-modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0, 0, 0, 0.72);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  animation: pp-fade var(--dur-fade) ease;
}
.pp-modal {
  width: 100%; max-width: 340px; background: var(--modal-bg);
  border-radius: var(--r-modal); border: 1px solid var(--pink);
  box-shadow: var(--shadow-modal);
  padding: 22px; color: var(--text);
  animation: pp-pop var(--dur-pop) var(--ease-pop);
}
.pp-modal__head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.pp-modal__logo {
  width: 36px; height: 36px; border-radius: var(--r-logo);
  border: 1px solid var(--pink);
}
.pp-modal__kicker {
  font-size: 11px; font-weight: 700; color: var(--pink);
  letter-spacing: 0.6px; text-transform: uppercase;
}
.pp-modal__title { font-size: 17px; font-weight: 800; }
.pp-modal__close {
  margin-left: auto; background: transparent; border: 0; color: var(--text-dim);
  cursor: pointer; padding: 6px; min-width: 44px; min-height: 44px;
  display: flex; align-items: center; justify-content: center;
}
.pp-modal__body { font-size: 14px; line-height: 1.55; color: var(--text-body); margin-bottom: 16px; }
.pp-modal__pledge {
  display: flex; gap: 10px; align-items: flex-start; margin-bottom: 16px;
  padding: 12px; background: var(--checkbox-well); border-radius: var(--r-photo);
  cursor: pointer;
}
.pp-modal__pledge input {
  accent-color: var(--pink); margin-top: 2px; width: 18px; height: 18px; flex-shrink: 0;
}
.pp-modal__pledge span { font-size: 13px; color: var(--text-mid); line-height: 1.4; }
@keyframes pp-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pp-pop {
  from { opacity: 0; transform: translateY(10px) scale(0.96); }
  to   { opacity: 1; transform: none; }
}

/* ============================================================
   12. Supporting primitives
   ============================================================ */

/* Buttons */
.pp-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--pink); color: var(--ink-on-pink); border: 0; /* D10: white read 3.6:1 at CTA sizes */
  border-radius: var(--r-pill); padding: 12px 22px;
  font-weight: 700; font-size: 14px; cursor: pointer; min-height: 44px;
  box-shadow: var(--glow-sm);
  text-decoration: none;
}
.pp-btn--block {
  display: flex; width: 100%;
  border-radius: var(--r-cta); padding: 16px; font-size: 16px;
  box-shadow: var(--glow-lg);
}
.pp-btn--modal { border-radius: var(--r-input); padding: 14px; font-size: 15px; width: 100%; box-shadow: none; }
.pp-btn:disabled, .pp-btn.is-disabled {
  background: #333; color: #777; box-shadow: none; cursor: not-allowed;
}

/* ActionBtn row (case page: Contact / Share / Directions, per D2) */
.pp-action-row { display: flex; gap: 8px; }
.pp-action-btn {
  flex: 1; background: var(--card); border: 1px solid var(--pink);
  border-radius: var(--r-input); padding: 12px 4px; color: var(--text);
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  cursor: pointer; min-height: 44px; text-decoration: none;
}
.pp-action-btn .pp-icon { color: var(--pink); }
.pp-action-btn span { font-size: 11px; font-weight: 700; }

/* Section */
.pp-section { margin-bottom: 18px; }
.pp-section__head {
  color: var(--pink); font-size: 11px; font-weight: 800;
  letter-spacing: 0.6px; text-transform: uppercase; margin-bottom: 6px;
}
.pp-section__body { color: var(--text-body); font-size: 14px; line-height: 1.55; }

/* Choice (radio row) */
.pp-choice {
  width: 100%; text-align: left;
  background: var(--input-bg); border: 1px solid var(--input-border);
  border-radius: var(--r-input); padding: 14px; margin-bottom: 10px;
  color: var(--text); cursor: pointer;
  display: flex; align-items: center; gap: 12px; min-height: 44px;
}
.pp-choice__ring {
  width: 20px; height: 20px; border-radius: 50%;
  border: 2px solid var(--ring-idle); /* D15: #555 read 2.45:1, state indicators need 3:1 */
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.pp-choice__ring::after {
  content: ''; width: 10px; height: 10px; border-radius: 50%;
  background: transparent;
}
.pp-choice.is-selected { background: var(--pink-wash-12); border-color: var(--pink); }
.pp-choice.is-selected .pp-choice__ring { border-color: var(--pink); }
.pp-choice.is-selected .pp-choice__ring::after { background: var(--pink); }
.pp-choice__label { font-weight: 700; font-size: 15px; }
.pp-choice__sub { font-size: 12px; color: var(--text-dim); margin-top: 2px; }

/* Chip buttons (pet type, when last seen; also share-row links) */
.pp-chip {
  padding: 10px 14px; border-radius: var(--r-pill);
  background: var(--card); border: 1px solid var(--divider);
  color: var(--text); font-weight: 600; font-size: 13px;
  cursor: pointer; min-height: 44px;
  display: inline-flex; align-items: center; text-decoration: none;
}
.pp-chip.is-selected { background: var(--pink); border-color: var(--pink); color: var(--ink-on-pink); } /* D10 */
.pp-chip-row { display: flex; gap: 8px; flex-wrap: wrap; }

/* Field + inputs */
.pp-field { display: block; margin-bottom: 14px; }
.pp-field__label {
  color: var(--text-mid); font-size: 12px; font-weight: 700;
  letter-spacing: 0.4px; text-transform: uppercase; margin-bottom: 6px;
}
.pp-input {
  width: 100%; background: var(--input-bg); border: 1px solid var(--input-border);
  border-radius: var(--r-input); padding: 14px; color: var(--text);
  font-family: inherit; font-size: 15px; outline: none; min-height: 44px;
}
.pp-input::placeholder { color: var(--text-dim); }
.pp-input:focus-visible { outline-offset: 0; }
textarea.pp-input { min-height: 90px; resize: vertical; }
.pp-photo-drop {
  width: 100%; padding: 24px; border: 2px dashed #333; background: #111;
  border-radius: var(--r-input); color: var(--text-dim);
  cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 8px;
  min-height: 44px; font-size: 13px; font-weight: 600;
}
.pp-photo-drop .pp-icon { color: var(--pink); }

/* Nav drawer (SideMenu -> site nav drawer) */
.pp-drawer-overlay {
  position: fixed; inset: 0; z-index: 150; background: rgba(0, 0, 0, 0.55);
}
.pp-drawer {
  position: absolute; top: 0; left: 0; bottom: 0; width: 82%; max-width: 360px;
  background: var(--drawer-bg); border-right: 1px solid var(--pink);
  padding-top: calc(var(--safe-top) + 12px);
  display: flex; flex-direction: column;
  animation: pp-slide-in var(--dur-pop) var(--ease-drawer);
}
@keyframes pp-slide-in { from { transform: translateX(-100%); } to { transform: none; } }
.pp-drawer__profile {
  padding: 16px var(--gutter-lg); display: flex; align-items: center; gap: 12px;
  border-bottom: 1px solid var(--list-divider);
}
.pp-drawer__profile img { width: 44px; height: 44px; border-radius: var(--r-photo); }
.pp-drawer__name { color: var(--text); font-weight: 800; font-size: 16px; }
.pp-drawer__sub { color: var(--pink); font-size: 12px; font-weight: 600; }
.pp-drawer__items { flex: 1; overflow: auto; padding: 8px 0; }
.pp-drawer__item {
  width: 100%; text-align: left; background: transparent; border: 0;
  color: var(--text); padding: 14px var(--gutter-lg); font-size: 15px; font-weight: 500;
  cursor: pointer; display: flex; align-items: center; gap: 8px; min-height: 44px;
  text-decoration: none;
}
.pp-drawer__item span:first-child { flex: 1; }
.pp-drawer__badge {
  background: var(--pink); color: var(--ink-on-pink); font-size: 11px; font-weight: 700; /* D10 */
  padding: 2px 8px; border-radius: var(--r-pill);
}
.pp-drawer__footer {
  padding: 14px var(--gutter-lg); border-top: 1px solid var(--list-divider);
  color: var(--text-dim); font-size: 11px; /* D10: raised from #666 */
}

/* Update entry (sighting timeline) */
.pp-update {
  background: var(--card); border-top: 1px solid var(--pink);
  padding: 14px var(--gutter);
}
.pp-update__head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.pp-update__type {
  font-size: 10px; font-weight: 800; letter-spacing: 0.6px; text-transform: uppercase;
  padding: 3px 7px; border-radius: var(--r-chip);
  color: var(--pink-tint-text); background: var(--pink-wash-14); /* D10 */
}
.pp-update__type--reunited, .pp-update__type--closed {
  color: var(--success); background: var(--success-wash-12);
}
.pp-update__ref { color: var(--text); font-size: 12px; font-weight: 700; }
.pp-update__when { margin-left: auto; color: var(--text-dim); font-size: 11px; } /* D10: raised from #777 */
.pp-update__body { color: var(--text-update); font-size: 14px; line-height: 1.45; margin-bottom: 4px; }
.pp-update__author { color: var(--text-dim); font-size: 12px; } /* D10: raised from #888 */

/* Stat tile */
.pp-stat {
  background: var(--card); border-top: 1px solid var(--pink); padding: var(--pad-card);
}
.pp-stat__num { font-size: 28px; font-weight: 800; line-height: 1; color: var(--text); }
.pp-stat__num--pink    { color: var(--pink); }
.pp-stat__num--urgent  { color: var(--urgent); }
.pp-stat__num--success { color: var(--success); }
.pp-stat__label {
  font-size: 11px; font-weight: 600; color: var(--text-mid);
  text-transform: uppercase; letter-spacing: 0.4px; margin-top: 6px;
}
.pp-stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* Review table */
.pp-review {
  background: var(--input-bg); border: 1px solid var(--input-border);
  border-radius: var(--r-review); overflow: hidden;
}
.pp-review__row {
  display: flex; justify-content: space-between; align-items: flex-start;
  padding: 14px; gap: 12px;
  border-top: 1px solid var(--review-divider);
}
.pp-review__row:first-child { border-top: 0; }
.pp-review__key {
  color: var(--text-dim); font-size: 12px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.4px; flex-shrink: 0;
}
.pp-review__val { color: var(--text); font-size: 14px; text-align: right; font-weight: 500; }

/* Notice box (consent, ransom notice) */
.pp-notice {
  background: var(--pink-wash-08); border: 1px solid var(--pink);
  border-radius: var(--r-input); padding: 14px;
  color: var(--pink-tint-text); font-size: 13px; line-height: 1.5;
}

/* Skip link (D11 family: keyboard access) */
.pp-skip {
  position: absolute; left: -9999px; top: 0; z-index: 300;
  background: var(--pink); color: var(--ink-on-pink);
  padding: 12px 18px; font-weight: 700; border-radius: 0 0 var(--r-input) 0;
}
.pp-skip:focus-visible { left: 0; }

/* ============================================================
   13. Site footer (D17)
   ============================================================ */
.pp-footer { border-top: 1px solid var(--list-divider); margin-top: 44px; background: var(--drawer-bg); }
.pp-footer__inner { max-width: 720px; margin: 0 auto; padding: 24px var(--gutter) 24px; }
.pp-footer__brand {
  display: flex; align-items: center; gap: 8px; margin-bottom: 10px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.4px; text-transform: uppercase;
}
.pp-footer__brand img { border-radius: var(--r-brand); background: #fff; }
.pp-footer__about { color: var(--text-dim); font-size: 13px; line-height: 1.55; margin: 0 0 10px; max-width: 480px; }
.pp-footer__links { display: flex; flex-wrap: wrap; gap: 0 20px; margin-bottom: 10px; }
.pp-footer__links a {
  color: var(--text-mid); font-size: 13px; font-weight: 600; text-decoration: none;
  min-height: 44px; display: inline-flex; align-items: center;
}
.pp-footer__legal { color: var(--text-dim); font-size: 11px; padding-bottom: var(--safe-bottom); }

/* ============================================================
   14. GHL embed slot (D18): real form at P2, honest state until then
   ============================================================ */
.pp-embed { margin-top: 8px; }
.pp-embed iframe {
  width: 100%; border: 0; border-radius: var(--r-input);
  background: var(--input-bg); min-height: 540px;
}
.pp-embed__pending {
  border: 1px dashed var(--input-border); background: var(--input-bg);
  border-radius: var(--r-input); padding: 26px 18px; text-align: center;
  color: var(--text-mid); font-size: 14px; line-height: 1.55;
}
.pp-embed__pending strong { color: var(--text); display: block; margin-bottom: 6px; font-size: 15px; }

/* Success notice (D21): reunited celebration */
.pp-notice--success { background: var(--success-wash-12); border-color: var(--success); color: #d9f2d9; }

/* Muted notice (D24): example-case disclosure, deliberately quiet */
.pp-notice--muted { background: rgba(255, 255, 255, 0.04); border-color: var(--input-border); color: var(--text-mid); }

/* Share channel row (D25): per-channel links with baked UTMs */
.pp-share-row { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 10px; }

/* Case page photo hero (extracted anatomy: 4:3, camera placeholder, pink bottom border) */
.pp-case-photo {
  width: 100%; aspect-ratio: 4 / 3; background: var(--photo-well);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-ghost); border-bottom: 1px solid var(--pink);
  overflow: hidden; position: relative;
}
.pp-case-photo img { width: 100%; height: 100%; object-fit: cover; }

/* Map extras: canvas fill, marker variant of the LOCKED pin, honest fallback */
.pp-map__canvas { position: absolute; inset: 0; }
.pp-map-marker {
  display: flex; align-items: flex-end; justify-content: center;
  min-width: 44px; min-height: 44px; position: relative; text-decoration: none;
}
.pp-map-marker .pp-pin__head { display: block; width: 22px; height: 22px; border-radius: 50%; background: var(--pink); border: 3px solid #fff; box-shadow: var(--shadow-pin); }
.pp-map-marker .pp-pin__stem { position: absolute; bottom: -2px; width: 2px; height: 8px; background: var(--pink); }
.pp-map__fallback {
  position: absolute; inset: 0; padding: 20px; text-align: center;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  background: var(--card); color: var(--text-dim); font-size: 13px;
}

/* Intake shell, page mode (frames the GHL embed on /report/ pages).
   No entrance animation: pp-slide-up belongs to overlay contexts, not page loads. */
.pp-intake--page { min-height: 0; animation: none; }
.pp-intake__body--page { padding: 20px var(--gutter-lg) 40px; overflow: visible; }

/* List section header ("{n} active cases" + "NEAR YOU") */
.pp-list-head {
  padding: 14px var(--gutter) 6px;
  display: flex; align-items: baseline; justify-content: space-between;
}
.pp-list-head__count { color: var(--text); font-size: 15px; font-weight: 700; }
.pp-list-head__near {
  color: var(--pink); font-size: 12px; font-weight: 700;
  letter-spacing: 0.4px; text-transform: uppercase;
}
