/*
 * Shared Question card. This is the established /ask card pattern, exposed as
 * a component so Module pages can reuse it without loading page-level /ask CSS.
 */
.qa-card {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  padding: 0;
  border: 1px solid rgb(255 255 255 / 22%);
  border-radius: 12px;
  color: #1d1d1f;
  background: var(--bess-light-editorial-gradient);
  box-shadow: 0 1px 1px rgb(0 0 0 / 5%), 0 16px 40px rgb(0 0 0 / 42%);
  cursor: pointer;
  isolation: isolate;
  text-align: left;
  transform: translateZ(0);
  transition: transform 240ms ease, box-shadow 240ms ease;
}
.qa-card::after { display: none; }
.qa-card:hover { box-shadow: 0 1px 1px rgb(0 0 0 / 5%), 0 22px 52px rgb(0 0 0 / 50%); transform: translateY(-2px); }
.qa-card .card-body { position: relative; display: grid; height: 100%; grid-template-rows: auto 1fr auto; inset: auto; padding: 18px 20px 16px; text-align: left; }
.qa-context { display: block; grid-row: 1; justify-self: start; color: #6e6e73; font-size: var(--text-caption); font-weight: 700; letter-spacing: .02em; }
.qa-title {
  display: -webkit-box;
  overflow: hidden;
  align-self: center;
  grid-row: 2;
  margin: 0;
  color: #1d1d1f;
  font-size: clamp(16px, 1.45vw, 20px);
  font-weight: 700;
  line-height: 1.38;
  letter-spacing: -.035em;
  text-wrap: balance;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}
.qa-description { display: none; }
.qa-footer { grid-row: 3; padding-top: 14px; border-top: 1px solid rgb(0 0 0 / 9%); }
.qa-bottom-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.qa-brand { color: rgb(0 0 0 / 36%); font-size: var(--text-micro); font-weight: 700; letter-spacing: .1em; }
.qa-cta { display: inline-flex; align-items: center; gap: 7px; color: #1d1d1f; font-size: var(--text-micro); font-weight: 700; white-space: nowrap; opacity: 0; transition: opacity 180ms ease; }
.qa-card:hover .qa-cta { opacity: 1; }
.qa-cta svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform 180ms ease; }
.qa-card:hover .qa-cta svg { transform: translateX(3px); }

@media (max-width: 1279px) {
	.qa-card .card-body { padding: 16px 17px 14px; }
  .qa-context { font-size: var(--text-caption); }
  .qa-title { font-size: clamp(16px, 1.4vw, 19px); line-height: 1.36; }
  .qa-footer { padding-top: 11px; }
  .qa-brand { font-size: var(--text-micro); }
  .qa-cta svg { width: 14px; height: 14px; }
}

@media (max-width: 767px) {
  .qa-card { margin-block: 0; border-radius: 10px; }
  .qa-card .card-body { padding: 16px 14px 14px; }
  .qa-title { margin-block: 12px; font-size: clamp(15px, 4.6vw, 20px); line-height: 1.35; }
  .qa-footer { padding-top: 11px; }
}

@media (max-width: 479px) {
  .qa-card { border-radius: 8px; }
  .qa-card .card-body { padding: 20px 18px 18px; }
  .qa-title { margin-block: 14px; font-size: 19px; }
  .qa-cta { font-size: 11px; }
}

@media (hover: none) {
  .qa-card:hover { box-shadow: 0 1px 1px rgb(0 0 0 / 5%), 0 16px 40px rgb(0 0 0 / 42%); transform: none; }
  .qa-card:hover .qa-cta svg { transform: none; }
  .qa-cta { min-height: 24px; font-size: 11px; opacity: 1; }
}
