/* My Account pages: card-style dashboard in the site's colors (maroon #990000, tan #E4D8BA, brown #7A5309) */

.ma { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; color: #333333; text-align: left; } /* the site's content area is justified */
.ma a { color: #990000; }

.ma-welcome {
	background: linear-gradient(135deg, #990000 0%, #7A5309 100%);
	color: #ffffff;
	border-radius: 8px;
	padding: 18px 22px;
	margin-bottom: 16px;
}
.ma-welcome h2 { margin: 0 0 4px 0; font-size: 20px; font-weight: bold; }
.ma-welcome p { margin: 0; font-size: 12px; opacity: 0.9; }

.ma-facts { display: flex; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.ma-fact {
	flex: 1 1 140px;
	background: #fbf7ee;
	border: 1px solid #E4D8BA;
	border-radius: 8px;
	padding: 10px 14px;
	text-decoration: none;
}
.ma-fact .ma-fact-label { display: block; font-size: 11px; color: #7A5309; text-transform: uppercase; letter-spacing: 0.5px; }
.ma-fact .ma-fact-value { display: block; font-size: 16px; font-weight: bold; color: #990000; margin-top: 4px; }
.ma-fact .ma-fact-empty { font-size: 12px; font-weight: normal; color: #999999; }
a.ma-fact:hover { border-color: #990000; }

.ma-cards { display: flex; flex-wrap: wrap; gap: 14px; }
.ma-card {
	flex: 1 1 280px;
	display: flex;
	gap: 14px;
	align-items: flex-start;
	background: #ffffff;
	border: 1px solid #E4D8BA;
	border-radius: 8px;
	padding: 16px;
	box-shadow: 0 1px 3px rgba(122, 83, 9, 0.12);
	text-decoration: none;
	color: #333333;
	transition: box-shadow 0.15s, border-color 0.15s;
}
a.ma-card:hover { border-color: #990000; box-shadow: 0 3px 10px rgba(153, 0, 0, 0.18); }
.ma-card-icon {
	flex: 0 0 44px;
	height: 44px;
	border-radius: 50%;
	background: #fbf1e0;
	display: flex;
	align-items: center;
	justify-content: center;
}
.ma-card-icon svg { width: 24px; height: 24px; fill: #990000; }
.ma-card h3 { margin: 0 0 4px 0; font-size: 14px; color: #990000; }
.ma-card p { margin: 0; font-size: 12px; line-height: 1.5; color: #555555; overflow-wrap: anywhere; word-break: break-word; } /* long emails wrap */
.ma-card .ma-card-action { display: inline-block; margin-top: 8px; font-weight: bold; color: #990000; }

.ma-badge {
	display: inline-block;
	margin-left: 6px;
	padding: 1px 7px;
	border-radius: 10px;
	background: #E4D8BA;
	color: #7A5309;
	font-size: 10px;
	font-weight: bold;
	vertical-align: middle;
}

.ma-footer-note { margin-top: 18px; font-size: 11px; color: #777777; }

/* ---- Forms (My Profile and similar pages) ---- */

.ma-back { display: inline-block; margin-bottom: 12px; text-decoration: none; font-weight: bold; }
.ma-back:hover { text-decoration: underline; }
.ma-intro { margin: 0 0 14px 0; color: #555555; line-height: 1.5; }

.ma-section {
	background: #ffffff;
	border: 1px solid #E4D8BA;
	border-radius: 8px;
	box-shadow: 0 1px 3px rgba(122, 83, 9, 0.12);
	margin-bottom: 14px;
	overflow: hidden;
}
.ma-section-head {
	display: flex;
	align-items: center;
	gap: 10px;
	background: #fbf7ee;
	border-bottom: 1px solid #E4D8BA;
	padding: 10px 16px;
}
.ma-section-head svg { width: 18px; height: 18px; fill: #990000; }
.ma-section-head h3 { margin: 0; font-size: 13px; color: #990000; }
.ma-section-body { padding: 14px 16px 4px 16px; }

.ma-grid { display: flex; flex-wrap: wrap; gap: 0 16px; }
.ma-field { flex: 1 1 260px; margin-bottom: 12px; }
.ma-field-small { flex: 0 1 120px; }
.ma-field label {
	display: block;
	margin-bottom: 4px;
	font-size: 11px;
	font-weight: bold;
	color: #7A5309;
	text-transform: uppercase;
	letter-spacing: 0.4px;
}
.ma-field .ma-required { color: #990000; }
.ma-field input[type=text], .ma-field input[type=tel], .ma-field input[type=email], .ma-field input[type=password], .ma-field select {
	width: 100%;
	box-sizing: border-box;
	padding: 7px 9px;
	border: 1px solid #d8cba8;
	border-radius: 6px;
	background: #ffffff;
	font-family: Verdana, Arial, Helvetica, sans-serif;
	font-size: 12px;
	color: #333333;
}
.ma-field input:focus, .ma-field select:focus { outline: none; border-color: #990000; box-shadow: 0 0 0 2px rgba(153, 0, 0, 0.12); }
.ma-field .ma-date { display: flex; gap: 8px; }
.ma-field .ma-date select { flex: 1 1 50%; }
.ma-field .ma-readonly { padding: 7px 0; color: #333333; }
.ma-field .ma-hint { display: block; margin-top: 3px; font-size: 11px; color: #888888; }

.ma-actions { display: flex; align-items: center; gap: 12px; margin: 4px 0 8px 0; }
.ma-btn {
	display: inline-block;
	padding: 9px 22px;
	border: 1px solid #990000;
	border-radius: 6px;
	background: #990000;
	color: #ffffff !important;
	font-family: Verdana, Arial, Helvetica, sans-serif;
	font-size: 12px;
	font-weight: bold;
	text-decoration: none;
	cursor: pointer;
}
.ma-btn:hover { background: #7a0000; border-color: #7a0000; }
.ma-btn-secondary { background: #ffffff; color: #990000 !important; }
.ma-btn-secondary:hover { background: #fdf2f2; }
.ma-grid-3 .ma-field { flex: 1 1 170px; }
.ma-grid-3 .ma-field-small { flex: 0 1 90px; }

/* ---- Lists (My Family) ---- */

.ma-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.ma-toolbar .ma-intro { margin: 0; }
.ma-btn-small { padding: 6px 14px; font-size: 11px; }

.ma-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.ma-member {
	display: flex;
	align-items: center;
	gap: 14px;
	background: #ffffff;
	border: 1px solid #E4D8BA;
	border-radius: 8px;
	box-shadow: 0 1px 3px rgba(122, 83, 9, 0.12);
	padding: 12px 16px;
}
.ma-avatar {
	flex: 0 0 40px;
	height: 40px;
	border-radius: 50%;
	background: #fbf1e0;
	color: #990000;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: bold;
	font-size: 14px;
}
.ma-member-main { flex: 1 1 auto; min-width: 0; }
.ma-member-name { font-size: 13px; font-weight: bold; color: #333333; }
.ma-member-name .ma-badge { margin-left: 8px; }
.ma-member-dates { margin-top: 5px; display: flex; flex-wrap: wrap; gap: 6px; }
.ma-chip {
	display: inline-block;
	padding: 2px 9px;
	border-radius: 10px;
	background: #f6f2e8;
	color: #7A5309;
	font-size: 11px;
}
.ma-chip-empty { background: #f4f4f4; color: #999999; }
.ma-member-actions { flex: 0 0 auto; display: flex; gap: 8px; align-items: center; }
.ma-member-actions form { margin: 0; }

.ma-empty {
	text-align: center;
	padding: 26px 16px;
	background: #fbf7ee;
	border: 1px dashed #d8cba8;
	border-radius: 8px;
	color: #7A5309;
	margin-bottom: 14px;
}
.ma-empty p { margin: 0 0 12px 0; }

.ma-note {
	background: #fffbe8;
	border: 1px solid #ecd98a;
	border-left: 4px solid #d4a800;
	border-radius: 6px;
	padding: 10px 14px;
	margin-bottom: 14px;
	color: #5c4a00;
	line-height: 1.5;
}
.ma-plain-list { margin: 0; padding-left: 18px; line-height: 1.8; }
.ma-btn { white-space: nowrap; }
.ma-toolbar .ma-btn { flex: 0 0 auto; }
.ma table td:not([align]) { text-align: left; }

/* Small grey line under a name (dates, "managed by" notes) */
.ma-meta { margin: 4px 0 10px 0; font-size: 11px; color: #888888; }
.ma-inline-form { margin: 0; }
.ma-spaced-top { margin-top: 12px; }
.ma-section > summary { cursor: pointer; list-style: none; }
/* Safari still draws the disclosure triangle on a flex summary; hide it as Chrome/Firefox do */
.ma-section > summary::-webkit-details-marker { display: none; }

/* Long emails have no spaces to wrap at; let them break so a table never widens the page */
.ma table { max-width: 100%; }
.ma table td { overflow-wrap: anywhere; word-break: break-word; }
.ma-chip, .ma-badge { max-width: 100%; overflow-wrap: anywhere; }

/* Access Requests candidate records: keep words whole (only a long linked email may break), badges
   under the name, and the button on one line so it doesn't squeeze the other columns */
.ma table.ma-candidates td { overflow-wrap: normal; word-break: normal; vertical-align: top; }
.ma table.ma-candidates td:nth-child(4) { overflow-wrap: anywhere; }
.ma-candidates .ma-badge { margin: 3px 4px 0 0; white-space: nowrap; }
.ma-candidates td.ma-candidate-action { white-space: nowrap; width: 1%; }
@media (max-width: 600px) { .ma-candidates td.ma-candidate-action { white-space: normal; } } /* phones: let the button wrap */

/* "Is this the same person?" choices on Add Family Member */
.ma-match .ma-section-body { border-left: 4px solid #d4a800; }
.ma-choice { display: block; padding: 6px 0; cursor: pointer; }
.ma-choice input { margin-right: 8px; }
.ma-choice span { color: #666666; margin-left: 6px; }
