
/* DogID Starters Fixes (0.3.7k) */
/* Neutralize WP block-gap only inside DogID sections (both element and descendant is-layout-flow) */
.dogid-hero.is-layout-flow > *,
.dogid-hero :where(.is-layout-flow) > *,
.dogid-notice.is-layout-flow > *,
.dogid-notice :where(.is-layout-flow) > *,
.dogid-section.is-layout-flow > *,
.dogid-section :where(.is-layout-flow) > *,
.dogid-grid.is-layout-flow > *,
.dogid-grid :where(.is-layout-flow) > *,
.dogid-card.is-layout-flow > *,
.dogid-card :where(.is-layout-flow) > *{
  margin-block-start: 0 !important;
  margin-block-end: 0 !important;
}

/* Cards: equal height and stable link */
.dogid-grid{ align-items: stretch; grid-auto-rows: 1fr; }
.dogid-grid > *{ height: 100%; display: flex; align-self: stretch; min-height: 0; }
.dogid-grid > * > .wp-block-group{ flex:1 1 auto; display:flex; min-width:0; min-height:0; }
.dogid-grid > * > .dogid-card{ height:100%; display:flex; flex-direction:column; box-sizing:border-box; }

.dogid-card h4{ margin:0 0 6px !important; }
.dogid-card p { margin:0 0 8px !important; }
.dogid-cta .dogid-card p:last-child{ margin-top:auto; }

.dogid-card a{ display:inline-block; line-height:1.25; text-decoration: underline; text-underline-offset:2px; }
.dogid-card a:hover{ opacity:.9; text-decoration: underline; }

/* Sponsors: consistent boxes + zero extra margins */
.dogid-grid.cols-4 .dogid-sponsor-logo{ margin:0 !important; }
.dogid-sponsor-logo{
  width:100%;
  max-width: var(--dogid-logo-w, 200px);
  height: var(--dogid-logo-h, 72px);
  display:flex; align-items:center; justify-content:center;
  border:1px solid var(--dogid-border, #e5e7eb);
  border-radius:10px; background:#fff; padding:6px; box-sizing:border-box;
}
.dogid-sponsor-logo img{
  max-height: calc(var(--dogid-logo-h, 72px) - 12px);
  max-width:  calc(var(--dogid-logo-w, 200px) - 12px);
  width:auto; height:auto; object-fit:contain; display:inline-block;
}
