.solution-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.solution-card h2 {
  margin-top: 0;
}

.solution-card p {
  overflow-wrap: anywhere;
}

.solution-card-actions {
  display: flex;
  align-items: stretch;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 12px;
}

.solution-card-actions .btn {
  display: inline-flex;
  flex: 1 1 190px;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 46px;
  text-align: center;
}

.solutions-header-note {
  margin: 0;
}

/* Keep the language switch as a deliberate, right-aligned utility control. */
body:has(.solution-card) .nav {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 24px;
}

body:has(.solution-card) .nav-links {
  justify-content: flex-end;
  gap: clamp(16px, 2vw, 28px);
}

body:has(.solution-card) .nav-actions {
  justify-self: end;
  margin-left: 4px;
  padding-left: 18px;
  border-left: 1px solid var(--border);
}

body:has(.solution-card) .lang-switch {
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
}

body:has(.solution-card) .lang-switch a {
  min-width: 34px;
  padding: 5px 8px;
  border: 0;
  text-align: center;
}

body:has(.solution-card) .lang-switch a[aria-current="true"] {
  background: var(--accent-soft);
  color: var(--text);
}

@media (max-width: 900px) {
  .solution-card-actions .btn {
    flex-basis: 100%;
  }
}

@media (max-width: 860px) {
  body:has(.solution-card) .nav {
    display: flex;
    gap: 10px;
  }

  body:has(.solution-card) .nav-actions {
    margin-left: 0;
    padding-left: 0;
    border-left: 0;
  }
}

@media (max-width: 760px) {
  .solution-card-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .solution-card-actions .btn {
    width: 100%;
  }
}
