/* Home unified search: typeahead + results page */

/* Header clips absolute children; suggest must escape that stacking context. */
.header.header--editorial {
  overflow: visible;
}

.header__frame,
.header__contents,
.header__text-search-wrapper {
  overflow: visible;
}

/*
  Stacking trap: .header__contents was z-index:1 while
  .header__actions-wrapper was z-index:6, so suggest inside
  contents could never paint above the CTA cards.
*/
.header__contents {
  z-index: 20;
}

.header__text-search-wrapper {
  z-index: 21;
}

.header__search-form,
.header__search-card {
  position: relative;
  z-index: 30;
  overflow: visible;
}

/* Above lawyer portrait (z:1), below search contents (z:20). */
.header__actions-wrapper {
  z-index: 10;
}

.header__suggest {
  background: #fff;
  border: 1px solid rgba(132, 4, 132, 0.12);
  border-radius: 14px;
  box-shadow: 0 22px 48px rgba(42, 16, 51, 0.22);
  left: 0;
  margin-top: 8px;
  max-height: min(58vh, 360px);
  overflow-x: hidden;
  overflow-y: auto;
  padding: 8px;
  position: absolute;
  right: 0;
  top: 100%;
  z-index: 50;
}

.header__suggest-group + .header__suggest-group {
  border-top: 1px solid rgba(42, 16, 51, 0.06);
  margin-top: 6px;
  padding-top: 6px;
}

.header__suggest-label {
  color: #6b5a73;
  font-size: 11px;
  font-weight: 800;
  padding: 6px 10px 4px;
}

.header__suggest-item {
  align-items: flex-start;
  border-radius: 10px;
  color: #2a1033;
  display: flex;
  gap: 10px;
  padding: 10px;
  text-decoration: none;
  transition: background 0.15s ease;
}

.header__suggest-item:hover,
.header__suggest-item:focus {
  background: rgba(132, 4, 132, 0.06);
  outline: none;
}

.header__suggest-badge {
  background: rgba(132, 4, 132, 0.1);
  border-radius: 999px;
  color: #840484;
  flex: 0 0 auto;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  padding: 6px 8px;
}

.header__suggest-copy {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.header__suggest-title {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
}

.header__suggest-sub {
  color: #6b5a73;
  font-size: 11px;
  line-height: 1.45;
}

.header__suggest-empty {
  color: #6b5a73;
  font-size: 12px;
  padding: 14px 10px;
  text-align: center;
}

.header__suggest-all {
  border-top: 1px solid rgba(42, 16, 51, 0.08);
  color: #840484;
  display: block;
  font-size: 12px;
  font-weight: 800;
  margin-top: 6px;
  padding: 12px 10px 8px;
  text-align: center;
  text-decoration: none;
}

.header__suggest-all:hover {
  text-decoration: underline;
}

.hsr {
  background:
    radial-gradient(circle at 12% 0%, rgba(234, 55, 136, 0.08), transparent 28%),
    linear-gradient(180deg, #faf7fb 0%, #fff 42%);
  min-height: 60vh;
  padding: 28px 0 64px;
}

.hsr__frame {
  max-width: 860px;
}

.hsr__search {
  align-items: center;
  background: #fff;
  border: 1px solid rgba(132, 4, 132, 0.12);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(42, 16, 51, 0.08);
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
  max-width: none;
  padding: 10px 12px;
  position: relative;
}

.hsr__input {
  border: none;
  flex: 1 1 auto;
  font-size: 14px;
  height: 42px;
  outline: none;
  width: 100%;
}

.hsr__lead {
  color: #2a1033;
  font-size: 18px;
  font-weight: 800;
  margin: 0 0 22px;
}

.hsr__group {
  margin-bottom: 28px;
}

.hsr__group-title {
  color: #2a1033;
  font-size: 15px;
  font-weight: 800;
  margin: 0 0 12px;
}

.hsr__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.hsr__item {
  align-items: flex-start;
  background: #fff;
  border: 1px solid rgba(42, 16, 51, 0.08);
  border-radius: 14px;
  color: inherit;
  display: flex;
  gap: 12px;
  margin-bottom: 10px;
  padding: 14px 16px;
  text-decoration: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.hsr__item:hover {
  border-color: rgba(132, 4, 132, 0.28);
  box-shadow: 0 10px 24px rgba(42, 16, 51, 0.08);
}

.hsr__badge {
  background: rgba(132, 4, 132, 0.1);
  border-radius: 999px;
  color: #840484;
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 800;
  padding: 6px 10px;
}

.hsr__badge--faq {
  background: rgba(234, 55, 136, 0.1);
  color: #ea3788;
}

.hsr__badge--article {
  background: rgba(42, 16, 51, 0.08);
  color: #2a1033;
}

.hsr__item-copy {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.hsr__item-title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.55;
}

.hsr__item-sub {
  color: #6b5a73;
  font-size: 12px;
  line-height: 1.5;
}

.hsr__empty {
  background: #fff;
  border: 1px dashed rgba(42, 16, 51, 0.16);
  border-radius: 16px;
  color: #6b5a73;
  padding: 28px 20px;
  text-align: center;
}

.hsr__empty-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 14px;
}

.hsr__empty-links a {
  color: #840484;
  font-weight: 700;
  text-decoration: none;
}

.hsr__empty-links a:hover {
  text-decoration: underline;
}
