.zds-shell { max-width: 1380px; margin: 0 auto; padding: 0 16px; }
.zds-shell h2, .zds-shell h3, .zds-shell h4 { color:#0f172a; }
.zds-page-intro, .zds-hero-card, .zds-guard-card, .zds-portal-card, .zds-prayer-form-card, .zds-prayer-card, .zds-directory-wrap, .zds-empty, .zds-section-card, .zds-family-hero-card {
    background:#fff; border:1px solid #e2e8f0; border-radius:22px; box-shadow:0 16px 40px rgba(15,23,42,.06);
}
.zds-eyebrow { display:inline-block; font-size:12px; letter-spacing:.08em; text-transform:uppercase; color:#1d4f80; font-weight:700; margin-bottom:8px; }
.zds-page-intro { margin-bottom:18px; padding:24px 28px; }
.zds-page-intro h2 { margin:0 0 8px; font-size:clamp(32px,4vw,54px); line-height:1.05; }
.zds-page-intro p { margin:0; color:#64748b; font-size:16px; }
.zds-hero-card { display:grid; grid-template-columns:1.7fr .9fr; gap:20px; padding:28px; margin-bottom:20px; background:linear-gradient(135deg,#f8fbff 0%,#ffffff 70%); }
.zds-hero-card h2 { margin:0 0 8px; font-size:clamp(34px,4vw,52px); line-height:1.02; }
.zds-hero-card p { margin:0; color:#64748b; max-width:760px; font-size:16px; }
.zds-hero-actions { display:flex; align-items:flex-end; justify-content:flex-end; gap:12px; flex-wrap:wrap; }
.zds-guard-card { max-width:560px; margin:24px auto; padding:32px; text-align:center; }
.zds-guard-form { display:flex; gap:10px; flex-wrap:wrap; justify-content:center; margin-top:16px; }
.zds-guard-form input, .zds-prayer-form input, .zds-prayer-form textarea, .zds-filters input, .zds-filters select, .zds-family-search-wrap input {
    width:100%; padding:14px 16px; border:1px solid #cbd5e1; border-radius:14px; box-sizing:border-box; font-size:15px; background:#fff;
}
.zds-guard-form button, .zds-prayer-form button, .zds-prayer-actions button, .zds-btn, .zds-privacy-form button {
    display:inline-flex; align-items:center; justify-content:center; padding:13px 18px; border:none; border-radius:14px; background:#173d66; color:#fff; cursor:pointer; text-decoration:none; font-size:14px; font-weight:600;
}
.zds-btn.zds-btn-secondary { background:#eaf2fb; color:#173d66; }
.zds-inline-error, .zds-inline-success { margin:0 0 16px; padding:12px 14px; border-radius:12px; }
.zds-inline-error { background:#fee2e2; color:#991b1b; }
.zds-inline-success { background:#dcfce7; color:#166534; }
.zds-portal-shell { padding-top:6px; }
.zds-portal-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; margin-bottom:20px; }
.zds-portal-card { display:block; padding:24px; text-decoration:none; color:inherit; }
.zds-feature-card { background:linear-gradient(180deg,#fff 0%,#f8fbff 100%); }
.zds-feature-kicker { display:inline-block; margin-bottom:12px; font-size:12px; font-weight:700; text-transform:uppercase; letter-spacing:.08em; color:#1d4f80; }
.zds-portal-card h3, .zds-section-head h2, .zds-section-head h3 { margin:0 0 8px; }
.zds-portal-card p, .zds-role-head p { margin:0; color:#64748b; }
.zds-lock-form { margin-top:14px; }
.zds-link-button, .zds-link-inline { background:none; border:none; color:#173d66; cursor:pointer; padding:0; text-decoration:underline; }
.zds-directory-wrap, .zds-section-card { padding:22px; }
.zds-filters-card { border:1px solid #e2e8f0; border-radius:18px; padding:16px; background:#f8fafc; }
.zds-section-head { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; flex-wrap:wrap; margin-bottom:18px; }
.zds-section-head p { margin:0; color:#64748b; }
.zds-filters { display:flex; gap:12px; flex-wrap:wrap; margin-bottom:18px; }
.zds-filters > * { flex:1 1 220px; }
.zds-card-grid, .zds-family-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(280px,1fr)); gap:18px; }
.zds-card-grid-wide { grid-template-columns:repeat(auto-fill,minmax(340px,1fr)); }
.zds-member-card, .zds-family-card, .zds-summary-card, .zds-celebration-card, .zds-family-member-card {
    padding:22px 18px; border:1px solid #e2e8f0; border-radius:18px; background:#fff; box-shadow:0 8px 24px rgba(15,23,42,.04);
}
.zds-member-card-top { display:flex; align-items:center; gap:14px; margin-bottom:14px; }
.zds-member-card-leadership { display:grid; gap:12px; }
.zds-family-card { display:flex; flex-direction:column; gap:0; text-decoration:none; color:inherit; overflow:hidden; padding:0; }
.zds-family-card-media { aspect-ratio:16/9; background:#eef5ff; display:flex; align-items:center; justify-content:center; overflow:hidden; }
.zds-family-card-media img { width:100%; height:100%; object-fit:cover; display:block; }
.zds-family-card-placeholder { font-size:32px; font-weight:700; color:#173d66; }
.zds-family-card-copy { padding:18px; display:grid; gap:6px; }
.zds-family-card-subtitle { color:#64748b; font-size:14px; }
.zds-member-avatar { width:78px; height:78px; border-radius:20px; object-fit:cover; flex:0 0 auto; }
.zds-member-initials { width:78px; height:78px; border-radius:20px; display:flex; align-items:center; justify-content:center; background:#173d66; color:#fff; font-weight:700; font-size:24px; flex:0 0 auto; }
.zds-member-name { font-size:22px; font-weight:700; margin:0 0 4px; line-height:1.1; }
.zds-member-sub { color:#64748b; font-size:14px; margin:0 0 6px; }
.zds-member-occupation { color:#33587b; font-size:14px; margin:0 0 6px; font-weight:500; }
.zds-member-meta, .zds-muted { font-size:14px; color:#334155; line-height:1.6; }
.zds-muted { color:#64748b; }
.zds-member-roles { display:flex; flex-wrap:wrap; gap:6px; margin-top:10px; }
.zds-chip { display:inline-block; padding:5px 10px; border-radius:999px; background:#eef5ff; color:#163e68; font-size:12px; }
.zds-empty, .zds-empty-list { padding:26px; text-align:center; margin-top:10px; color:#64748b; }
.zds-contact-panel { display:grid; gap:10px; margin:12px 0 6px; }
.zds-contact-panel-stack { width:100%; }
.zds-contact-list { display:grid; gap:6px; }
.zds-contact-line { display:flex; flex-wrap:wrap; gap:8px; align-items:baseline; }
.zds-contact-detail-label { font-size:12px; text-transform:uppercase; letter-spacing:.06em; color:#64748b; min-width:68px; }
.zds-contact-detail-value { color:#0f172a; font-size:15px; font-weight:500; word-break:break-word; }
.zds-contact-action-row { display:flex; gap:8px; flex-wrap:wrap; }
.zds-contact-action {
    display:inline-flex; align-items:center; gap:6px; padding:8px 12px; border-radius:999px; background:#eef5ff; border:1px solid #dbeafe; color:#173d66; text-decoration:none; font-size:12px; font-weight:700;
}
.zds-contact-action:hover { background:#dbeafe; }
.zds-contact-icon { font-size:12px; line-height:1; }
.zds-contact-action-only { text-align:center; font-weight:700; }
.zds-prayer-wrap { display:grid; gap:18px; }
.zds-prayer-form-card, .zds-prayer-card { padding:22px; }
.zds-prayer-form { display:grid; gap:12px; }
.zds-prayer-meta { display:flex; justify-content:space-between; gap:10px; flex-wrap:wrap; margin-bottom:10px; color:#64748b; }
.zds-prayer-actions { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-top:14px; flex-wrap:wrap; }
.zds-count { color:#475569; font-size:14px; }
.zds-praise-box { margin-top:14px; padding:14px; border-radius:14px; background:#f8fafc; border:1px solid #dbeafe; }
.zds-role-section + .zds-role-section { margin-top:26px; padding-top:26px; border-top:1px solid #e9eef5; }
.zds-role-head { margin-bottom:16px; }
.zds-role-head h3, .zds-role-group h4 { margin:0 0 6px; }
.zds-role-group + .zds-role-group { margin-top:20px; }
.zds-role-group h4 { font-size:18px; color:#173d66; }
.zds-celebration-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:14px; }
.zds-celebration-card h4 { margin:10px 0 6px; }
.zds-celebration-date { font-weight:700; font-size:18px; margin-top:14px; color:#0f172a; }
.zds-family-hero-card { display:grid; grid-template-columns:minmax(280px,420px) minmax(0,1fr); gap:22px; padding:22px; margin-bottom:18px; overflow:hidden; }
.zds-family-hero-media { border-radius:18px; overflow:hidden; min-height:260px; background:#eef5ff; }
.zds-family-hero-media img { width:100%; height:100%; object-fit:cover; display:block; }
.zds-family-photo-placeholder { width:100%; height:100%; min-height:260px; display:flex; align-items:center; justify-content:center; font-size:58px; font-weight:800; color:#173d66; }
.zds-family-hero-copy { display:flex; flex-direction:column; justify-content:center; min-width:0; }
.zds-family-hero-copy h2 { margin:8px 0 10px; font-size:clamp(30px,4vw,48px); line-height:1.05; }
.zds-family-hero-copy p, .zds-family-subtitle { margin:0; color:#64748b; font-size:16px; }
.zds-family-stats { display:flex; gap:12px; flex-wrap:wrap; margin-top:18px; }
.zds-stat-pill { min-width:160px; padding:14px 16px; border-radius:18px; border:1px solid #dbe5f0; background:#f8fbff; }
.zds-stat-pill strong { display:block; font-size:18px; color:#0f172a; }
.zds-stat-pill span { color:#64748b; font-size:13px; }
.zds-family-layout { display:grid; grid-template-columns:minmax(0,1.7fr) minmax(300px,.9fr); gap:18px; align-items:start; }
.zds-family-members-list { display:grid; gap:16px; }
.zds-family-member-card { display:grid; grid-template-columns:minmax(0,1fr) 220px; gap:18px; }
.zds-family-member-main { display:flex; gap:16px; align-items:flex-start; }
.zds-family-member-copy { flex:1 1 auto; }
.zds-privacy-form { min-width:190px; display:grid; gap:8px; align-content:start; padding:14px; border-radius:14px; background:#f8fafc; border:1px solid #dbeafe; }
.zds-family-search-wrap { margin-bottom:16px; }
.zds-map-frame-wrap { border-radius:16px; overflow:hidden; border:1px solid #dbe5f0; background:#f8fafc; margin:14px 0; }
.zds-map-frame { width:100%; height:260px; border:0; display:block; }
.zds-address-block { white-space:pre-line; margin-top:10px; }
@media (max-width: 1100px) {
  .zds-hero-card, .zds-family-layout, .zds-family-hero-card, .zds-family-member-card { grid-template-columns:1fr; }
}
@media (max-width: 900px) {
  .zds-portal-grid, .zds-celebration-grid, .zds-card-grid-wide { grid-template-columns:1fr; }
  .zds-family-member-main { flex-direction:column; }
  .zds-member-avatar, .zds-member-initials { width:72px; height:72px; }
}


/* v1.3.2 contact cleanup */
.zds-contact-panel {
  display: block !important;
  margin: 10px 0 6px !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}
.zds-contact-list {
  display: grid !important;
  gap: 4px !important;
  margin: 0 0 10px !important;
}
.zds-contact-line {
  display: flex !important;
  align-items: baseline !important;
  gap: 8px !important;
}
.zds-contact-action-row {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  margin-top: 0 !important;
}
.zds-contact-action {
  background: #173d66 !important;
  border: 1px solid #173d66 !important;
  color: #fff !important;
  padding: 8px 12px !important;
}
.zds-contact-action:hover {
  background: #0f2f4f !important;
  border-color: #0f2f4f !important;
}
.zds-contact-detail-label {
  min-width: auto !important;
  font-size: 12px !important;
}
.zds-contact-detail-value {
  font-size: 16px !important;
}
/* === Button style fix === */

/* Shared pill/button style for map links + action links */
.zds-contact-tile,
.zds-contact-action,
.zds-btn,
.zds-btn:visited,
.zds-contact-tile:visited,
.zds-contact-action:visited {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid #dbeafe;
  border-radius: 999px;
  background: #173d66;
  color: #ffffff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 6px 16px rgba(23, 61, 102, 0.12);
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.zds-contact-tile:hover,
.zds-contact-action:hover,
.zds-btn:hover {
  background: #1d4f80;
  color: #ffffff;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(23, 61, 102, 0.16);
}

.zds-contact-tile:focus,
.zds-contact-action:focus,
.zds-btn:focus {
  outline: 2px solid #93c5fd;
  outline-offset: 2px;
  color: #ffffff;
  text-decoration: none;
}

/* Map action row */
.zds-map-actions,
.zds-map-links,
.zds-address-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.zds-contact-action-only {
  min-width: 160px;
  text-align: center;
}

/* Keep contact action pills compact */
.zds-contact-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.zds-contact-action {
  padding: 9px 12px;
  font-size: 13px;
}

.zds-contact-icon {
  font-size: 13px;
  line-height: 1;
}

/* Optional lighter secondary style if needed anywhere */
.zds-btn-secondary,
.zds-contact-tile.zds-secondary {
  background: #eef5ff;
  color: #173d66;
  border-color: #dbeafe;
  box-shadow: none;
}

.zds-btn-secondary:hover,
.zds-contact-tile.zds-secondary:hover {
  background: #dbeafe;
  color: #173d66;
}

/* Mobile */
@media (max-width: 640px) {
  .zds-contact-tile,
  .zds-contact-action,
  .zds-btn {
    width: 100%;
  }

  .zds-contact-action-row,
  .zds-map-actions,
  .zds-map-links,
  .zds-address-actions {
    flex-direction: column;
  }
}