/* Consistent prototype actions beneath the homepage and reporting cards. */
.feature-card-slot > .prototype-link,
.case-card-slot > .prototype-link {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.4rem;
  margin-top: 0;
  padding: 0.8rem 1rem;
  background: #315f99;
  border: 1px solid #315f99;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.25;
  text-decoration: none;
}
.feature-card-slot > .prototype-link .prototype-link-pw,
.case-card-slot > .prototype-link .prototype-link-pw {
  padding-left: 0;
  border-left: 0;
  color: rgba(255,255,255,.72);
}
.feature-card-slot > .prototype-link:hover,
.case-card-slot > .prototype-link:hover {
  background: #244b7b;
  border-color: #244b7b;
  color: #fff;
  text-decoration: none;
}

/* ============================================================
   Card actions — primary "Read case study" (left), secondary
   "Try prototype" (right) with its password note attached.
   ============================================================ */
.feature-card, .case-card { display: flex; flex-direction: column; flex: 1; }
.feature-card:hover, .case-card:hover { opacity: 1; transform: none; box-shadow: none; }
.feature-card-title a, .case-card-title a { color: inherit; text-decoration: none; }
.feature-card-title a:hover, .case-card-title a:hover {
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-thickness: 1px;
}
.card-actions {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px 12px;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 1.25rem;
}
.card-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease;
}
.card-btn:hover { text-decoration: none; }
.card-btn:focus-visible { outline: 3px solid rgba(49, 95, 153, 0.35); outline-offset: 3px; }
.card-btn-primary { background: var(--ink, #171717); border: 1px solid var(--ink, #171717); color: #fff; }
.card-btn-primary:hover { background: #000; border-color: #000; color: #fff; }
.card-btn-secondary { background: transparent; border: 1px solid var(--border-strong, #c9c3b8); color: var(--ink, #171717); }
.card-btn-secondary:hover { background: rgba(23, 23, 23, 0.04); border-color: var(--ink, #171717); color: var(--ink, #171717); }
.card-btn-icon { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.card-proto { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; margin-left: auto; }
.card-proto-note {
  color: var(--muted, #6f6a62);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* Compact Reporting header on the home page */
.home-page #work .work-cluster-head { margin: 0.25rem 0 1.5rem; align-items: start; }
.home-page #work .work-cluster-head .feature-split-body { max-width: 72ch; }
@media (min-width: 900px) {
  .home-page #work .work-cluster-head { grid-template-columns: minmax(0, 1fr); }
}
.home-page #work .work-cluster-head .work-group-title { margin-top: 0; }

/* Reporting overview: the slot is the panel, so actions sit inside the card */
.case-card-slot { gap: 0; background: var(--panel); padding: var(--space-4); }
.case-card-slot .case-card { background: none; padding: 0; min-height: 0; border: 0; }
.case-card-slot .case-card:hover { background: none; }
.case-card-slot .card-actions { padding-top: var(--space-3); }
/* Reporting overview sits in a narrow column: one card per row so actions fit side by side */
@media (min-width: 720px) {
  .case-card-grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-3); }
  .case-card-slot .case-card-desc { max-width: 62ch; }
}
