/**
 * members-a — member login / Vasti Patrak / My Family / Add Family / Add Member /
 * Citywise (Figma 76:5207, 76:5422, 76:5844, 76:7579, 76:7990, 76:6441).
 * Widget markup lives in samuday-core/inc; layout chrome comes from Elementor.
 * All selectors are namespaced sd-ma-* (plus the shared .sd-notice / .sd-pill).
 */

/* ------------------------------------------------------------ Shared */
.sd-ma-login, .sd-ma-family, .sd-ma-city, .sd-ma-form, .sd-ma-side, .sd-dir--vasti {
	font-family: var(--sd-font-body);
	color: var(--sd-text-primary);
}
.sd-ma-h3 {
	margin: 0;
	font-family: var(--sd-font-heading);
	font-size: 28px;
	font-weight: 600;
	line-height: 1.25;
	color: var(--sd-text-primary);
}
.sd-notice {
	margin: 0 0 20px;
	padding: 14px 16px;
	border: 1px solid #3e5c8a;
	border-radius: 12px;
	background: #fff;
	font-size: 15px;
	line-height: 1.5;
	color: var(--sd-text-primary);
}
.sd-notice--success { border-color: #2e7d4f; background: #f1f8f3; }
.sd-notice--error { border-color: var(--sd-primary-maroon); background: #fbeeee; }
.sd-notice--info { border-color: #3e5c8a; }

/* pills */
.sd-pill {
	display: inline-flex;
	align-items: center;
	padding: 5px 12px;
	border-radius: 999px;
	font-family: var(--sd-font-body);
	font-size: 13px;
	font-weight: 500;
	line-height: 1.4;
	letter-spacing: 0.3px;
	white-space: nowrap;
	background: var(--sd-secondary-saffron-soft);
	color: var(--sd-primary-maroon);
}
.sd-pill--gold { background: var(--sd-accent-gold); color: var(--sd-bg-dark); }
.sd-pill--pending { background: #fff4d6; color: #8a5a00; border: 1px solid #e9c46a; margin-left: 8px; }
.sd-pill--ok { background: #e6f4ea; color: #2e7d4f; }
.sd-pill--bad { background: #fbeeee; color: var(--sd-primary-maroon); }

/* icon box (Figma iconbox 40px, saffron-soft, r12) */
.sd-ma-iconbox {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 40px;
	width: 40px;
	height: 40px;
	border-radius: 12px;
	background: var(--sd-secondary-saffron-soft);
	color: var(--sd-primary-maroon);
}
.sd-ma-iconbox .sd-ico { width: 18px; height: 18px; }

/* Figma Alert/info */
.sd-ma-alert {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	width: 100%;
	padding: 16px;
	border: 1px solid #3e5c8a;
	border-radius: 12px;
	background: #fff;
	color: var(--sd-text-primary);
	box-sizing: border-box;
}
.sd-ma-alert .sd-ico { width: 18px; height: 18px; margin-top: 2px; color: #3e5c8a; }
.sd-ma-alert p { margin: 0; font-size: 15px; line-height: 1.5; }

/* icon-only button (pencil / close) */
.sd-ma-iconbtn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	padding: 0;
	border: 1px solid var(--sd-border-default);
	border-radius: 8px;
	background: #fff;
	color: var(--sd-primary-maroon);
	cursor: pointer;
}
.sd-ma-iconbtn:hover { background: var(--sd-secondary-saffron-soft); }
.sd-ma-iconbtn .sd-ico { width: 16px; height: 16px; }

/* Elementor's kit `a` rule outranks a single class, so pin link colours here. */
.sd-ma-table .sd-ma-td a,
.sd-ma-sidecard__list li a { color: var(--sd-text-primary); text-decoration: none; }
.sd-ma-login__lost { color: var(--sd-primary-maroon); text-decoration: none; }
.sd-ma-table .sd-ma-td a:hover,
.sd-ma-sidecard__list li a:hover { color: var(--sd-primary-maroon); text-decoration: underline; }
.sd-ma-family .sd-btn .sd-ico,
.sd-ma-form .sd-btn .sd-ico,
.sd-ma-login .sd-btn .sd-ico,
.sd-ma-side .sd-btn .sd-ico,
.sd-dir--vasti .sd-btn .sd-ico { width: 18px; height: 18px; }

/* ----------------------------------------------------------- Login card */
.sd-ma-login { display: flex; justify-content: center; width: 100%; }
.sd-ma-login__card {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 18px;
	width: 480px;
	max-width: 100%;
	padding: 40px;
	border: 1px solid var(--sd-border-default);
	border-radius: 18px;
	background: #fff;
	box-shadow: var(--sd-shadow-raised);
	box-sizing: border-box;
}
.sd-ma-login__mark {
	display: inline-flex;
	padding: 4px 6px;
	border: 1px solid var(--sd-accent-gold);
	border-radius: 12px;
	background: var(--sd-secondary-saffron-soft);
}
.sd-ma-login__mark img { display: block; width: 56px; height: 74px; object-fit: cover; border-radius: 6px; }
.sd-ma-login__title {
	margin: 0;
	font-family: var(--sd-font-heading);
	font-size: 40px;
	font-weight: 600;
	line-height: 1.18;
	letter-spacing: -0.3px;
	text-align: center;
	color: var(--sd-text-primary);
}
.sd-ma-login__note { margin: 0; font-size: 15px; line-height: 1.5; text-align: center; color: var(--sd-text-muted); }
.sd-ma-login__form { display: flex; flex-direction: column; gap: 18px; width: 100%; }
.sd-ma-login__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sd-ma-login__lost { font-size: 15px; font-weight: 500; line-height: 1.5; }
.sd-ma-login__foot { margin: 0; font-size: 13px; font-weight: 500; line-height: 1.4; letter-spacing: 0.3px; text-align: center; color: var(--sd-text-muted); }
.sd-ma-login .sd-notice { width: 100%; margin: 0; box-sizing: border-box; }
.sd-ma-login .sd-btn--block, .sd-ma-side .sd-btn--block { width: 100%; }

/* ---------------------------------------------------------------- Fields */
.sd-ma-field { display: flex; flex-direction: column; gap: 8px; width: 100%; min-width: 0; }
.sd-ma-field > label {
	font-size: 15px;
	font-weight: 500;
	line-height: 1.5;
	color: var(--sd-text-primary);
}
.sd-ma-req { color: var(--sd-primary-maroon); }
.sd-ma-field__box {
	position: relative;
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	padding: 13px 16px;
	border: 1px solid var(--sd-border-default);
	border-radius: 12px;
	background: #fff;
	box-sizing: border-box;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.sd-ma-field__box:focus-within { border-color: var(--sd-accent-gold); box-shadow: 0 0 0 3px rgba(201, 162, 74, 0.2); }
.sd-ma-field__box > .sd-ico { width: 18px; height: 18px; color: var(--sd-primary-maroon); }
.sd-ma-field__box input,
.sd-ma-field__box select,
.sd-ma-field__box textarea {
	flex: 1 1 auto;
	min-width: 0;
	width: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	outline: none;
	font-family: var(--sd-font-body);
	font-size: 17px;
	line-height: 1.6;
	color: var(--sd-text-primary);
	appearance: none;
	-webkit-appearance: none;
}
.sd-ma-field__box input::placeholder,
.sd-ma-field__box textarea::placeholder { color: var(--sd-text-muted); opacity: 1; }
.sd-ma-field__box select:invalid,
.sd-ma-field__box select option[value=""] { color: var(--sd-text-muted); }
.sd-ma-field__box--select { padding-right: 42px; }
.sd-ma-field__box--select > .sd-ico { position: absolute; right: 16px; width: 16px; height: 16px; pointer-events: none; }
.sd-ma-field__box--area { align-items: flex-start; padding: 14px 16px; min-height: 120px; }
.sd-ma-field__box--area textarea { resize: vertical; min-height: 90px; }
.sd-ma-field--wide { grid-column: 1 / -1; }

.sd-ma-check {
	display: inline-flex;
	align-items: flex-start;
	gap: 8px;
	font-size: 15px;
	line-height: 1.5;
	color: var(--sd-text-primary);
	cursor: pointer;
}
.sd-ma-check input {
	flex: 0 0 18px;
	width: 18px;
	height: 18px;
	margin: 2px 0 0;
	border: 1.5px solid var(--sd-border-strong);
	border-radius: 4px;
	background: #fff;
	accent-color: var(--sd-primary-maroon);
	appearance: auto;
}
.sd-ma-check--field { padding-top: 32px; }
.sd-ma-checks { display: flex; flex-direction: row; flex-wrap: wrap; gap: 16px 32px; }
.sd-ma-checks .sd-ma-check--field { padding-top: 0; }
.sd-ma-consent { width: 100%; margin: 24px 0 0; }

/* Form group card */
.sd-ma-group {
	display: flex;
	flex-direction: column;
	gap: 18px;
	width: 100%;
	padding: 28px;
	border: 1px solid var(--sd-border-default);
	border-radius: 18px;
	background: #fff;
	box-shadow: var(--sd-shadow-card);
	box-sizing: border-box;
}
.sd-ma-group + .sd-ma-group { margin-top: 24px; }
.sd-ma-group__head { display: flex; align-items: center; gap: 12px; }
.sd-ma-group__title { margin: 0; font-family: var(--sd-font-heading); font-size: 22px; font-weight: 600; line-height: 1.3; color: var(--sd-text-primary); }
.sd-ma-group__caption { margin: 2px 0 0; font-size: 13px; font-weight: 500; line-height: 1.4; letter-spacing: 0.3px; color: var(--sd-text-muted); }
.sd-ma-group__rule { width: 100%; height: 1px; margin: 0; border: 0; background: var(--sd-border-default); }
.sd-ma-fields {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
	width: 100%;
}
.sd-ma-fields .sd-ma-fields { grid-column: 1 / -1; }

/* Form footer */
.sd-ma-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; margin-top: 24px; flex-wrap: wrap; }
.sd-ma-actions__right { display: flex; gap: 12px; flex-wrap: wrap; }
.sd-ma-form a.sd-btn--ghost, .sd-ma-form button.sd-btn--ghost,
.sd-ma-family button.sd-btn--ghost { border-color: transparent; padding-left: 4px; padding-right: 4px; background: transparent; }
.sd-ma-form .sd-notice { margin-bottom: 24px; }

/* Stepper */
.sd-ma-stepper {
	display: flex;
	align-items: center;
	gap: 16px;
	width: 100%;
	margin: 0;
	padding: 0;
	list-style: none;
}
.sd-ma-step { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.sd-ma-step:not(:last-child) { flex: 1 1 0; }
.sd-ma-step:not(:last-child)::after { content: ""; flex: 1 1 0; height: 1px; min-width: 24px; background: var(--sd-border-strong); }
.sd-ma-step.is-done:not(:last-child)::after { background: var(--sd-primary-maroon); }
.sd-ma-step__dot {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 34px;
	width: 34px;
	height: 34px;
	border: 1.5px solid var(--sd-border-strong);
	border-radius: 999px;
	background: #fff;
	font-size: 15px;
	font-weight: 500;
	color: var(--sd-text-muted);
}
.sd-ma-step__dot .sd-ico { width: 16px; height: 16px; }
.sd-ma-step__label { font-size: 15px; font-weight: 500; line-height: 1.5; color: var(--sd-text-muted); white-space: nowrap; }
.sd-ma-step.is-active .sd-ma-step__dot,
.sd-ma-step.is-done .sd-ma-step__dot { border-color: var(--sd-primary-maroon); background: var(--sd-primary-maroon); color: var(--sd-text-on-dark); }
.sd-ma-step.is-active .sd-ma-step__label { color: var(--sd-primary-maroon); }
.sd-ma-step.is-done .sd-ma-step__label { color: var(--sd-text-primary); }

/* Member rows (Add New Family group 3) */
.sd-ma-rows {
	grid-column: 1 / -1;
	display: flex;
	flex-direction: column;
	width: 100%;
	border: 1px solid var(--sd-border-default);
	border-radius: 12px;
	background: var(--sd-surface-card-tint);
	overflow: hidden;
	font-size: 15px;
	line-height: 1.5;
}
.sd-ma-rows__head, .sd-ma-rows__row, .sd-ma-rows__empty { display: flex; align-items: center; gap: 12px; padding: 14px 16px; }
.sd-ma-rows__head { padding: 12px 16px; background: var(--sd-bg-cream-deep); font-size: 13px; font-weight: 500; letter-spacing: 0.3px; text-transform: uppercase; color: var(--sd-text-muted); }
.sd-ma-rows__row:nth-child(even) { background: #fff; }
.sd-ma-rows__c1 { flex: 1 1 245px; font-weight: 500; min-width: 0; }
.sd-ma-rows__c2 { flex: 0 0 159px; }
.sd-ma-rows__c3, .sd-ma-rows__c4 { flex: 0 0 125px; }
.sd-ma-rows__c5 { flex: 0 0 48px; display: flex; gap: 12px; justify-content: flex-end; }
.sd-ma-rows__c5 button { display: inline-flex; padding: 0; border: 0; background: none; color: var(--sd-primary-maroon); cursor: pointer; }
.sd-ma-rows__c5 .sd-ico { width: 16px; height: 16px; }
.sd-ma-rows.has-rows .sd-ma-rows__empty { display: none; }
.sd-ma-rows__empty { color: var(--sd-text-muted); }
.sd-ma-member-entry { grid-column: 1 / -1; }

/* ------------------------------------------------------ Filter bar (Vasti) */
.sd-ma-filter { display: flex; align-items: center; gap: 12px; width: 100%; margin: 0 0 48px; }
.sd-ma-filter__search {
	display: flex;
	align-items: center;
	gap: 10px;
	flex: 1 1 0;
	min-width: 0;
	padding: 12px 16px;
	border: 1px solid var(--sd-border-default);
	border-radius: 12px;
	background: #fff;
	box-sizing: border-box;
}
.sd-ma-filter__search .sd-ico { width: 18px; height: 18px; color: var(--sd-text-muted); }
.sd-ma-filter__search input[type="search"] {
	flex: 1 1 auto;
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	box-shadow: none;
	outline: none;
	font-family: var(--sd-font-body);
	font-size: 17px;
	line-height: 1.6;
	color: var(--sd-text-primary);
}
.sd-ma-filter__search input::placeholder { color: var(--sd-text-muted); opacity: 1; }
.sd-ma-select {
	position: relative;
	display: inline-flex;
	align-items: center;
	flex: 0 0 auto;
	border: 1px solid var(--sd-border-default);
	border-radius: 12px;
	background: #fff;
}
.sd-ma-select select {
	margin: 0;
	padding: 12px 42px 12px 16px;
	border: 0;
	background: transparent;
	box-shadow: none;
	outline: none;
	font-family: var(--sd-font-body);
	font-size: 17px;
	line-height: 1.6;
	color: var(--sd-text-primary);
	appearance: none;
	-webkit-appearance: none;
	cursor: pointer;
}
.sd-ma-select .sd-ico { position: absolute; right: 16px; width: 16px; height: 16px; pointer-events: none; color: var(--sd-text-primary); }
.sd-ma-filter__btn { flex: 0 0 auto; }

/* ------------------------------------------------------------- Tables */
.sd-ma-table {
	display: flex;
	flex-direction: column;
	width: 100%;
	border: 1px solid var(--sd-border-default);
	border-radius: 16px;
	background: #fff;
	overflow: hidden;
	font-size: 15px;
	line-height: 1.5;
	color: var(--sd-text-primary);
}
.sd-ma-table__head, .sd-ma-table__row { display: flex; align-items: center; gap: 16px; padding: 16px; }
.sd-ma-table__head {
	padding: 14px 16px;
	background: var(--sd-bg-cream-deep);
	font-size: 13px;
	font-weight: 500;
	line-height: 1.4;
	letter-spacing: 0.3px;
	text-transform: uppercase;
	color: var(--sd-text-muted);
}
.sd-ma-table__row:nth-child(odd) { background: var(--sd-surface-card-tint); }
.sd-ma-table__row:hover { background: var(--sd-bg-cream); }
.sd-ma-th, .sd-ma-td { min-width: 0; }
.sd-ma-td { overflow-wrap: anywhere; }
.sd-ma-col-name, .sd-ma-fc-name, .sd-ma-rc-title { flex: 1 1 40%; font-weight: 500; }
.sd-ma-col-city, .sd-ma-col-rel { flex: 0 0 17%; }
.sd-ma-col-bday { flex: 0 0 13%; }
.sd-ma-col-more { flex: 0 0 131px; }
.sd-ma-fc-rel { flex: 0 0 19%; }
.sd-ma-fc-city, .sd-ma-fc-dob, .sd-ma-fc-edu { flex: 0 0 14%; }
.sd-ma-fc-act { flex: 0 0 40px; display: flex; justify-content: flex-end; }
.sd-ma-rc-date { flex: 0 0 15%; }
.sd-ma-rc-status { flex: 0 0 17%; }
.sd-ma-rc-note { flex: 0 0 25%; }
.sd-ma-table--family .sd-ma-td { padding: 0; }

/* Pagination — 40px squares */
.sd-ma-pager { display: flex; align-items: center; justify-content: center; gap: 6px; flex-wrap: wrap; margin-top: 48px; }
.sd-ma-pager__btn,
.sd-ma-pager a.sd-ma-pager__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border: 1px solid var(--sd-border-default);
	border-radius: 10px;
	background: #fff;
	font-size: 15px;
	font-weight: 500;
	line-height: 1.5;
	color: var(--sd-text-primary);
	text-decoration: none;
	transition: background-color 0.2s ease, color 0.2s ease;
}
.sd-ma-pager a.sd-ma-pager__btn:hover { background: var(--sd-secondary-saffron-soft); color: var(--sd-primary-maroon); }
.sd-ma-pager__btn.is-current { border-color: var(--sd-primary-maroon); background: var(--sd-primary-maroon); color: var(--sd-text-on-dark); }
.sd-ma-pager__btn.is-disabled { opacity: 0.4; pointer-events: none; }
.sd-ma-pager__btn .sd-ico { width: 16px; height: 16px; }
.sd-ma-pager__dots { padding: 0 4px; font-size: 15px; font-weight: 500; color: var(--sd-text-muted); }

/* --------------------------------------------------------- My Family */
.sd-ma-family { display: flex; flex-direction: column; gap: 24px; width: 100%; }
.sd-ma-family .sd-notice { margin: 0; }
.sd-ma-profile {
	display: flex;
	align-items: center;
	gap: 20px;
	width: 100%;
	padding: 28px;
	border: 1px solid var(--sd-border-default);
	border-radius: 18px;
	background: #fff;
	box-shadow: var(--sd-shadow-card);
	box-sizing: border-box;
}
.sd-ma-avatar {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 120px;
	width: 120px;
	height: 120px;
	border: 2px solid var(--sd-accent-gold);
	border-radius: 999px;
	background: var(--sd-secondary-saffron-soft);
	font-family: var(--sd-font-heading);
	font-size: 28px;
	font-weight: 600;
	color: var(--sd-primary-maroon);
}
.sd-ma-profile__body { display: flex; flex-direction: column; gap: 8px; flex: 1 1 0; min-width: 0; }
.sd-ma-badges { display: flex; flex-wrap: wrap; gap: 6px 8px; }
.sd-ma-badges .sd-pill--pending { margin-left: 0; }
.sd-ma-profile__name {
	margin: 0;
	font-family: var(--sd-font-heading);
	font-size: 40px;
	font-weight: 600;
	line-height: 1.18;
	letter-spacing: -0.3px;
	color: var(--sd-text-primary);
}
.sd-ma-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 15px; line-height: 1.5; color: var(--sd-text-muted); }
.sd-ma-meta__item { display: inline-flex; align-items: center; gap: 8px; }
.sd-ma-meta__item .sd-ico { width: 16px; height: 16px; color: var(--sd-secondary-saffron); }
.sd-ma-profile__actions { display: flex; flex-wrap: wrap; gap: 8px 10px; margin-top: 4px; }
.sd-ma-addrow { margin: -8px 0 0; }
.sd-ma-family .sd-ma-alert { margin: 0; }

/* change-request panels */
.sd-ma-cr {
	display: flex;
	flex-direction: column;
	gap: 16px;
	width: 100%;
	padding: 24px;
	border: 1px solid var(--sd-accent-gold);
	border-radius: 18px;
	background: var(--sd-bg-cream);
	box-sizing: border-box;
}
.sd-ma-cr[hidden] { display: none; }
.sd-ma-cr__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sd-ma-cr__hint { display: flex; align-items: flex-start; gap: 8px; margin: 0; font-size: 15px; line-height: 1.5; color: var(--sd-text-muted); }
.sd-ma-cr__hint .sd-ico { width: 16px; height: 16px; margin-top: 3px; color: var(--sd-primary-maroon); }
.sd-ma-cr .sd-ma-form__form { display: flex; flex-direction: column; gap: 0; }
.sd-ma-cr .sd-ma-form__form > .sd-ma-field--wide { margin-top: 16px; }
.sd-ma-requests { display: flex; flex-direction: column; gap: 16px; }

/* Sidebar cards */
.sd-ma-side { display: flex; flex-direction: column; gap: 20px; width: 100%; }
.sd-ma-sidecard {
	display: flex;
	flex-direction: column;
	gap: 12px;
	width: 100%;
	padding: 20px;
	border: 1px solid var(--sd-border-default);
	border-radius: 18px;
	background: #fff;
	box-sizing: border-box;
}
.sd-ma-sidecard__title { margin: 0; font-family: var(--sd-font-heading); font-size: 22px; font-weight: 600; line-height: 1.3; color: var(--sd-text-primary); }
.sd-ma-sidecard__rule { display: block; width: 36px; height: 1px; background: var(--sd-accent-gold); }
.sd-ma-sidecard__list { display: flex; flex-direction: column; gap: 12px; margin: 0; padding: 0; list-style: none; }
.sd-ma-sidecard__list li { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; font-weight: 500; line-height: 1.5; }
.sd-ma-sidecard__list li .sd-ico { width: 16px; height: 16px; margin-top: 3px; color: var(--sd-secondary-saffron); }
.sd-ma-sidecard__list li a { color: var(--sd-text-primary); }
.sd-ma-sidecard--maroon { background: var(--sd-primary-maroon); color: var(--sd-text-on-dark); }
.sd-ma-sidecard--maroon .sd-ma-sidecard__title { color: var(--sd-text-on-dark); }
.sd-ma-sidecard--maroon .sd-ma-sidecard__list li .sd-ico { color: var(--sd-accent-gold); }
.sd-ma-sidecard--maroon .sd-ma-sidecard__list li a { color: var(--sd-text-on-dark); }
.sd-ma-sidecard--maroon .sd-ma-sidecard__list li a:hover { color: var(--sd-accent-gold); }
.sd-ma-sidecard .sd-btn--block { margin-top: 4px; }

/* ------------------------------------------------------------ Citywise */
.sd-ma-city { display: flex; flex-direction: column; gap: 24px; width: 100%; }
.sd-ma-stats {
	display: flex;
	align-items: center;
	width: 100%;
	padding: 26px 24px;
	border: 1px solid var(--sd-border-default);
	border-radius: 20px;
	background: #fff;
	box-shadow: var(--sd-shadow-raised);
	box-sizing: border-box;
}
.sd-ma-stat { display: flex; flex-direction: column; align-items: center; gap: 4px; flex: 1 1 0; padding: 0 12px; text-align: center; }
.sd-ma-stat b { font-family: var(--sd-font-heading); font-size: 40px; font-weight: 600; line-height: 1.18; letter-spacing: -0.3px; color: var(--sd-primary-maroon); }
.sd-ma-stat span { font-size: 15px; font-weight: 500; line-height: 1.5; color: var(--sd-text-muted); }
.sd-ma-stats__vdiv { flex: 0 0 1px; width: 1px; height: 44px; background: var(--sd-border-default); }
.sd-ma-cities {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 24px;
	width: 100%;
	margin: 0;
	padding: 0;
	list-style: none;
}
.sd-ma-citycard {
	border: 1px solid var(--sd-border-default);
	border-radius: 18px;
	background: #fff;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.sd-ma-citycard:hover { transform: translateY(-3px); box-shadow: var(--sd-shadow-card); }
.sd-ma-citycard__link,
.sd-ma-city .sd-ma-citycard a.sd-ma-citycard__link {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 16px;
	color: var(--sd-text-primary);
	text-decoration: none;
}
.sd-ma-citycard__body { display: flex; flex-direction: column; gap: 2px; flex: 1 1 0; min-width: 0; }
.sd-ma-citycard__name { font-size: 15px; font-weight: 500; line-height: 1.5; }
.sd-ma-citycard__meta { font-size: 13px; font-weight: 500; line-height: 1.4; letter-spacing: 0.3px; color: var(--sd-text-muted); }
.sd-ma-citycard__chev { width: 16px; height: 16px; color: var(--sd-border-strong); }

/* -------------------------------------------------------- Responsive */
@media (max-width: 1024px) {
	.sd-ma-cities { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.sd-ma-col-more { flex-basis: 96px; }
	.sd-ma-step__label { white-space: normal; }
}
@media (max-width: 767px) {
	.sd-ma-login__card { padding: 24px; }
	.sd-ma-login__title { font-size: 32px; }
	.sd-ma-fields { grid-template-columns: 1fr; }
	.sd-ma-group { padding: 20px; }
	.sd-ma-filter { flex-direction: column; align-items: stretch; margin-bottom: 32px; }
	.sd-ma-select { width: 100%; }
	.sd-ma-select select { width: 100%; }
	.sd-ma-filter__btn { width: 100%; }
	/* tables → stacked cards (Figma mobile) */
	.sd-ma-table { border: 0; border-radius: 0; background: transparent; gap: 12px; overflow: visible; }
	.sd-ma-table__head { display: none; }
	.sd-ma-table__row,
	.sd-ma-table__row:nth-child(odd) {
		flex-direction: column;
		align-items: stretch;
		gap: 8px;
		padding: 16px;
		border: 1px solid var(--sd-border-default);
		border-radius: 16px;
		background: #fff;
	}
	.sd-ma-td { flex: none !important; width: 100%; }
	.sd-ma-col-name, .sd-ma-fc-name, .sd-ma-rc-title { font-family: var(--sd-font-heading); font-size: 20px; font-weight: 600; line-height: 1.25; }
	.sd-ma-td[data-label] { display: flex; justify-content: space-between; gap: 12px; }
	.sd-ma-td[data-label]::before { content: attr(data-label); font-size: 13px; font-weight: 500; letter-spacing: 0.3px; color: var(--sd-text-muted); }
	.sd-ma-fc-act { justify-content: flex-start; }
	.sd-ma-pager { margin-top: 32px; }
	.sd-ma-profile { flex-direction: column; align-items: flex-start; padding: 20px; }
	.sd-ma-profile__name { font-size: 30px; }
	.sd-ma-stats { flex-direction: column; gap: 16px; padding: 20px; }
	.sd-ma-stats__vdiv { width: 100%; height: 1px; }
	.sd-ma-cities { grid-template-columns: 1fr; gap: 12px; }
	.sd-ma-stepper { flex-wrap: wrap; gap: 12px; }
	.sd-ma-step:not(:last-child) { flex: 0 0 auto; }
	.sd-ma-step:not(:last-child)::after { display: none; }
	.sd-ma-rows__head { display: none; }
	.sd-ma-rows__row, .sd-ma-rows__empty { flex-wrap: wrap; }
	.sd-ma-rows__c2, .sd-ma-rows__c3, .sd-ma-rows__c4 { flex: 1 1 40%; }
	.sd-ma-actions .sd-btn, .sd-ma-actions__right { width: 100%; }
	.sd-ma-actions__right .sd-btn { flex: 1 1 auto; }
	.sd-ma-actions__back { justify-content: flex-start; }
	.sd-ma-check--field { padding-top: 0; }
}

/* Figma breadcrumb is Medium 15, not uppercase (samuday-tokens .sd-crumbs sets uppercase). */
.sd-page-hero .sd-crumbs .elementor-icon-list-text,
.sd-phero__crumbs { text-transform: none; }

.sd-ma-avatar--photo { padding: 0; overflow: hidden; background: #fff; }
.sd-ma-avatar--photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
.sd-ma-col-name { display: flex; align-items: center; gap: 10px; }
.sd-ma-avatar--sm { flex: 0 0 36px; width: 36px; height: 36px; min-width: 36px; font-size: 14px; }


/* ---------------------------------------------- member photo in the edit forms */
.sd-ma-photo__row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.sd-ma-photo__preview { width: 88px; height: 88px; border-radius: 12px; overflow: hidden; background: var(--sd-bg-cream-deep, #FBF3E4); border: 1px solid var(--sd-border-default, #e7dcc6); display: grid; place-items: center; color: var(--sd-text-muted, #8a7a66); flex: 0 0 88px; }
.sd-ma-photo__preview svg { width: 36px; height: 36px; }
.sd-ma-photo__img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sd-ma-photo__ctl { flex: 1 1 240px; display: grid; gap: 6px; }
.sd-ma-input--file { padding: 8px 10px; font-size: 14px; }
.sd-ma-input--file::file-selector-button { font: inherit; padding: 6px 12px; margin-right: 10px; border: 1px solid var(--sd-border-default, #e7dcc6); border-radius: 8px; background: #fff; color: var(--sd-primary, #7A1F1F); cursor: pointer; }
.sd-ma-help { margin: 0; font-size: 12.5px; color: var(--sd-text-muted, #8a7a66); }
.sd-ma-check { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; }
