/* Homepage hero, profile search and listing. */
.sm-hero { background: radial-gradient(1200px 400px at 85% -10%, var(--sm-primary-soft), transparent 60%), linear-gradient(180deg, #fff 0%, var(--sm-bg) 100%); border-bottom: 1px solid var(--sm-line); }
.sm-hero__inner { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 64px); align-items: center; padding-top: clamp(40px, 7vw, 88px); padding-bottom: clamp(40px, 7vw, 88px); }
.sm-hero__title { font-size: clamp(2rem, 1.3rem + 3vw, 3.2rem); line-height: 1.12; margin-bottom: 16px; }
.sm-hero__lead { font-size: clamp(1rem, 0.95rem + 0.3vw, 1.15rem); color: var(--sm-muted); max-width: 40em; margin-bottom: 26px; }
.sm-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 860px) { .sm-hero__inner { grid-template-columns: 1fr; } }

.sm-listing__header { margin-bottom: 18px; }
.sm-listing__title { margin-bottom: 4px; }
.card-surface { background: #fff; border: 1px solid var(--sm-line); border-radius: var(--sm-radius); box-shadow: var(--sm-shadow); padding: clamp(16px, 3vw, 24px); margin-bottom: 26px; }

.sm-search__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.sm-search__field label, .sm-search__legend { display: block; margin-bottom: 6px; font-size: 0.82rem; font-weight: 600; color: var(--sm-ink); }
.sm-search__range { display: flex; align-items: center; gap: 6px; }
.sm-search__range select { min-width: 0; }
.sm-search__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 16px; }
@media (max-width: 520px) { .sm-search__actions .sm-btn--primary { width: 100%; } }

.sm-results__count { font-size: 0.9rem; color: var(--sm-muted); margin-bottom: 14px; }
.sm-front-content { padding-bottom: 0; }
.sm-search__field--age { grid-column: span 2; } .sm-search__range select { flex: 1; } @media (max-width: 380px) { .sm-search__field--age { grid-column: auto; } }

/* ---- 1.5.0 homepage ---- */
.sm-hero__inner { grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.9fr); padding-bottom: clamp(28px, 5vw, 56px); }
.sm-hero__eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px; padding: 5px 14px; border-radius: 999px; background: var(--sm-primary-soft); color: var(--sm-primary-dark); font-size: 0.85rem; font-weight: 600; }
.sm-hero__eyebrow .sm-icon { width: 16px; height: 16px; }
.sm-hero__stats { display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 30px 0 0; padding: 0; }
.sm-hero__stats div { display: flex; flex-direction: column-reverse; }
.sm-hero__stats dd { margin: 0; font-family: var(--sm-font-display); font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); font-weight: 600; line-height: 1.1; color: var(--sm-ink); }
.sm-hero__stats dt { font-size: 0.8rem; color: var(--sm-muted); }

.sm-quick-search { background: #fff; border: 1px solid var(--sm-line); border-radius: calc(var(--sm-radius) + 4px); box-shadow: var(--sm-shadow-lg); padding: clamp(18px, 3vw, 28px); display: grid; gap: 14px; }
.sm-quick-search__title { margin: 0; font-size: 1.35rem; }
.sm-quick-search__label { display: block; margin-bottom: 6px; font-size: 0.82rem; font-weight: 600; color: var(--sm-ink); }
.sm-quick-search select, .sm-quick-search input[type="search"] { width: 100%; }
.sm-quick-search__row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.sm-quick-search__more { margin: -4px 0 0; text-align: center; font-size: 0.88rem; }
.sm-quick-search__id summary { cursor: pointer; font-size: 0.88rem; color: var(--sm-primary); text-align: center; list-style: none; }
.sm-quick-search__id summary::-webkit-details-marker { display: none; }
.sm-quick-search__inline { display: flex; gap: 8px; margin-top: 10px; }
.sm-quick-search__inline input { flex: 1; min-width: 0; }

.sm-segmented { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; border-radius: 10px; background: var(--sm-bg); border: 1px solid var(--sm-line); }
.sm-segmented label { position: relative; margin: 0; }
.sm-segmented input { position: absolute; opacity: 0; inset: 0; }
.sm-segmented span { display: block; padding: 8px 6px; border-radius: 7px; text-align: center; font-size: 0.92rem; font-weight: 500; color: var(--sm-ink); cursor: pointer; transition: background-color 0.15s ease; }
.sm-segmented input:checked + span { background: var(--sm-primary); color: #fff; box-shadow: 0 2px 8px rgba(200, 50, 63, 0.3); }
.sm-segmented input:focus-visible + span { box-shadow: var(--sm-focus); }

.sm-hero__points { list-style: none; margin: 0; padding: 0 0 clamp(28px, 5vw, 48px); display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; }
.sm-hero__points li { display: flex; gap: 10px; align-items: center; color: var(--sm-ink); font-size: 0.92rem; font-weight: 500; }
.sm-hero__points .sm-icon { width: 18px; height: 18px; padding: 5px; box-sizing: content-box; border-radius: 50%; background: #fff; border: 1px solid var(--sm-line); color: var(--sm-primary); }

.sm-section__header { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; margin-bottom: 22px; }
.sm-section__header p { margin: 4px 0 0; }
.sm-section__header--center { justify-content: center; text-align: center; flex-direction: column; align-items: center; }
.sm-section__title { margin: 0; font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.2rem); }

.profile-card__media { position: relative; overflow: hidden; min-height: 0; }
.profile-card__media .sm-photo { position: absolute; inset: 0; }

.sm-load-more { text-align: center; margin: 4px 0 8px; }
.sm-load-more__status { min-height: 1.5em; margin: 10px 0 0; font-size: 0.9rem; color: var(--sm-muted); }
.sm-btn.is-loading { position: relative; color: transparent !important; pointer-events: none; }
.sm-btn.is-loading::after { content: ""; position: absolute; width: 20px; height: 20px; border: 2.5px solid var(--sm-line-strong); border-top-color: var(--sm-primary); border-radius: 50%; animation: sm-spin 0.7s linear infinite; }
.profiles-grid[aria-busy="true"] { opacity: 0.85; }
@keyframes sm-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .sm-btn.is-loading::after { animation-duration: 2s; } }

.sm-steps { background: #fff; border-top: 1px solid var(--sm-line); border-bottom: 1px solid var(--sm-line); }
.sm-steps__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: clamp(16px, 3vw, 32px); counter-reset: sm-step; }
.sm-steps__item { position: relative; padding: 26px 24px 24px; border-radius: var(--sm-radius); background: var(--sm-bg); border: 1px solid var(--sm-line); counter-increment: sm-step; }
.sm-steps__item::before { content: counter(sm-step); position: absolute; top: 18px; right: 20px; font-family: var(--sm-font-display); font-size: 2.4rem; line-height: 1; color: var(--sm-line-strong); }
.sm-steps__icon, .sm-features__icon { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 12px; background: var(--sm-primary-soft); color: var(--sm-primary); margin-bottom: 14px; }
.sm-steps__item h3, .sm-features__grid h3 { font-size: 1.15rem; margin: 0 0 6px; }
.sm-steps__item p, .sm-features__grid p { margin: 0; color: var(--sm-muted); font-size: 0.95rem; }

.sm-features__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: clamp(14px, 2.5vw, 24px); }
.sm-features__grid li { padding: 22px; border-radius: var(--sm-radius); background: #fff; border: 1px solid var(--sm-line); box-shadow: var(--sm-shadow); }
.sm-features__icon { background: var(--sm-accent-soft); color: #8a6a10; }

.sm-cta { padding-top: 0; }
.sm-cta__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px; padding: clamp(24px, 4vw, 44px); border-radius: calc(var(--sm-radius) + 6px); background: linear-gradient(135deg, var(--sm-primary-dark), var(--sm-primary)); color: #fff; box-shadow: var(--sm-shadow-lg); }
.sm-cta h2 { color: #fff; margin: 0 0 6px; font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); }
.sm-cta p { margin: 0; color: rgba(255, 255, 255, 0.88); }
.sm-cta__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.sm-btn--light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.6); }
.sm-btn--light:hover { background: rgba(255, 255, 255, 0.12); color: #fff; border-color: #fff; }

/* Search form: "More filters", member ID, ranges */
.sm-search__more { margin-top: 14px; border-top: 1px solid var(--sm-line); padding-top: 12px; }
.sm-search__more > summary { cursor: pointer; font-weight: 600; color: var(--sm-primary); width: max-content; }
.sm-search__more[open] > summary { margin-bottom: 12px; }
.sm-search__field--range { grid-column: span 2; }
.sm-search__field--id input { width: 100%; }
.sm-search__help { display: block; margin-top: 4px; font-size: 0.78rem; color: var(--sm-muted); }
.sm-search__help--error { color: var(--sm-danger); font-weight: 500; }
@media (max-width: 380px) { .sm-search__field--range { grid-column: auto; } }

@media (max-width: 860px) {
	.sm-hero__inner { grid-template-columns: 1fr; }
	.sm-hero__points { justify-content: flex-start; }
}
@media (max-width: 520px) {
	.sm-section__header .sm-btn { width: 100%; }
	.sm-cta__actions, .sm-cta__actions .sm-btn { width: 100%; }
}
