.scd-directory,
.scd-profile,
.scd-form {
	--scd-ink: #17211d;
	--scd-muted: #65736d;
	--scd-line: #dbe4df;
	--scd-surface: #ffffff;
	--scd-soft: #f5f8f6;
	--scd-accent: #0f7c66;
	--scd-accent-strong: #095b4b;
	color: var(--scd-ink);
	font-family: inherit;
	/* Follow the theme's body text, not its potentially reduced rem scale. */
	font-size: max(16px, 1em);
	line-height: 1.5;
}

.scd-profile-shell {
	box-sizing: border-box;
	margin: 0 auto;
	max-width: 1120px;
	padding: 32px 24px 64px;
	width: 100%;
}

.scd-profile {
	overflow-wrap: anywhere;
}

.scd-profile__nav {
	margin-bottom: 20px;
}

.scd-profile__nav a {
	color: var(--scd-accent-strong);
	text-decoration: underline;
	text-underline-offset: 0.15em;
}

.scd-profile a:focus-visible {
	outline: 2px solid var(--scd-accent-strong);
	outline-offset: 4px;
}

.scd-profile__panel {
	background: var(--scd-surface);
	border: 1px solid var(--scd-line);
	border-radius: 16px;
	box-shadow: 0 16px 44px rgba(23, 33, 29, 0.07);
	overflow: hidden;
}

.scd-profile__hero {
	align-items: center;
	background: linear-gradient(120deg, #eaf3ef, #f5f8f6);
	display: flex;
	gap: 28px;
	padding: clamp(24px, 4vw, 44px);
}

.scd-profile__photo,
.scd-profile__initial {
	aspect-ratio: 1;
	border: 4px solid #fff;
	border-radius: 16px;
	box-sizing: border-box;
	flex: 0 0 160px;
	height: 160px;
	object-fit: cover;
	width: 160px;
}

.scd-profile__initial {
	align-items: center;
	background: #dcece5;
	color: var(--scd-accent-strong);
	display: flex;
	font-size: 3em;
	font-weight: 750;
	justify-content: center;
}

.scd-profile__identity {
	min-width: 0;
}

.scd-profile__identity h1 {
	color: var(--scd-ink);
	font-size: clamp(28px, 4vw, 42px);
	font-weight: 750;
	line-height: 1.15;
	margin: 0 0 12px;
}

.scd-profile__eyebrow {
	color: var(--scd-accent-strong);
	font-size: max(14px, 0.875em);
	font-weight: 650;
	margin: 0 0 8px;
}

.scd-profile__area {
	color: var(--scd-muted);
	margin: 0 0 12px;
}

.scd-profile__body {
	display: grid;
	gap: 32px;
	grid-template-columns: minmax(0, 1fr);
	padding: clamp(24px, 4vw, 44px);
}

.scd-profile__body--columns {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.scd-profile__section {
	margin: 0;
	min-width: 0;
	padding: 0;
}

.scd-profile__section h2 {
	color: var(--scd-ink);
	font-size: 1.25em;
	line-height: 1.3;
	margin: 0 0 16px;
}

.scd-profile__section p {
	margin: 0 0 16px;
}

.scd-profile .scd-card__facts {
	gap: 20px;
	margin: 0;
}

.scd-profile__contact {
	border-top: 1px solid var(--scd-line);
	grid-column: 1 / -1;
	padding-top: 28px;
}

.scd-profile__contact .scd-directory__link-note {
	margin: 14px 0 0;
}

@media (max-width: 640px) {
	.scd-profile-shell {
		padding: 24px 16px 40px;
	}
	.scd-profile__hero {
		align-items: flex-start;
		flex-direction: column;
		gap: 20px;
	}
	.scd-profile__photo,
	.scd-profile__initial {
		flex-basis: auto;
		height: 120px;
		width: 120px;
	}
	.scd-profile__body {
		grid-template-columns: 1fr;
	}
}

.scd-directory__toolbar {
	align-items: end;
	background: var(--scd-soft);
	border: 1px solid var(--scd-line);
	border-radius: 8px;
	display: grid;
	gap: 16px;
	grid-template-columns: minmax(0, 1fr) minmax(190px, 260px);
	margin: 0 0 24px;
	padding: 16px;
}

.scd-directory__toolbar label,
.scd-form label {
	display: grid;
	font-size: 1em;
	font-weight: 650;
	gap: 7px;
}

.scd-form label span {
	color: var(--scd-muted);
	font-size: max(14px, 0.875em);
	font-weight: 450;
	line-height: 1.4;
}

.scd-directory__toolbar input,
.scd-directory__toolbar select,
.scd-form input,
.scd-form textarea,
.scd-form select {
	background: #fff;
	border: 1px solid var(--scd-line);
	border-radius: 7px;
	color: var(--scd-ink);
	box-sizing: border-box;
	font: inherit;
	min-width: 0;
	min-height: 42px;
	padding: 10px 12px;
	width: 100%;
}

.scd-form textarea {
	resize: vertical;
}

.scd-directory__grid {
	display: grid;
	gap: 18px;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.scd-card {
	background: var(--scd-surface);
	border: 1px solid var(--scd-line);
	border-radius: 8px;
	box-shadow: 0 12px 30px rgba(23, 33, 29, 0.07);
	display: grid;
	grid-template-columns: 88px minmax(0, 1fr);
	overflow: hidden;
}

.scd-card[hidden] {
	display: none;
}

.scd-card__media {
	background: #eaf3ef;
	min-height: 100%;
}

.scd-card__photo,
.scd-card__initial {
	aspect-ratio: 1;
	display: block;
	height: 88px;
	object-fit: cover;
	width: 88px;
}

.scd-card__initial {
	align-items: center;
	color: var(--scd-accent-strong);
	display: flex;
	font-size: 2em;
	font-weight: 750;
	justify-content: center;
}

.scd-card__body {
	min-width: 0;
	overflow-wrap: anywhere;
	padding: 16px;
}

.scd-card__title {
	font-size: 1.2em;
	line-height: 1.25;
	margin: 0;
}

.scd-card__title .scd-card__profile-link {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 0.15em;
}

.scd-card__profile-link:hover,
.scd-card__edit-link:hover {
	color: var(--scd-accent-strong);
}

.scd-card__profile-link:focus-visible,
.scd-card__edit-link:focus-visible {
	outline: 2px solid var(--scd-accent-strong);
	outline-offset: 3px;
}

.scd-card__edit {
	margin: 0 0 0.75em;
	font-size: max(14px, 0.875em);
}

.scd-card__edit-link {
	color: var(--scd-accent-strong);
	text-decoration: underline;
	text-underline-offset: 0.15em;
}

.scd-card__area {
	color: var(--scd-muted);
	font-size: 1em;
	margin: 4px 0 0;
}

.scd-card__bio {
	font-size: 1em;
	line-height: 1.55;
	margin: 12px 0;
}

.scd-card__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
	margin: 12px 0;
}

.scd-card__tags span,
.scd-contact {
	align-items: center;
	background: #edf7f3;
	border-radius: 999px;
	color: var(--scd-accent-strong);
	display: inline-flex;
	font-size: max(14px, 0.875em);
	font-weight: 650;
	gap: 0.35em;
	line-height: 1.2;
	padding: 6px 9px;
	text-decoration: none;
}

.scd-directory__link-note {
	color: var(--scd-muted);
	font-size: max(14px, 0.875em);
	margin: 0 0 16px;
}

/* Keep new-tab announcements available without relying on theme utility styles. */
.scd-screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	white-space: nowrap;
	width: 1px;
}

.scd-card__facts {
	display: grid;
	gap: 8px;
	margin: 12px 0;
}

.scd-card__facts div {
	display: grid;
	gap: 2px;
}

.scd-card__facts dt {
	color: var(--scd-muted);
	font-size: max(14px, 0.875em);
	font-weight: 750;
	text-transform: uppercase;
}

.scd-card__facts dd {
	font-size: 1em;
	margin: 0;
}

.scd-card__contacts {
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
	margin-top: 14px;
}

.scd-contact--request {
	background: #f4f0e7;
	color: #755b1f;
}

.scd-directory__empty,
.scd-notice {
	border-radius: 8px;
	margin: 16px 0;
	padding: 14px 16px;
}

.scd-directory__empty {
	background: var(--scd-soft);
	color: var(--scd-muted);
}

.scd-form {
	background: var(--scd-surface);
	border: 1px solid var(--scd-line);
	border-radius: 8px;
	box-shadow: 0 12px 30px rgba(23, 33, 29, 0.07);
	display: grid;
	gap: 16px;
	padding: 20px;
}

.scd-form__intro h3 {
	font-size: 1.25em;
	margin: 0 0 4px;
}

.scd-form__intro p {
	color: var(--scd-muted);
	margin: 0;
}

.scd-form__contacts {
	display: grid;
	gap: 12px;
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.scd-form__contact {
	border: 1px solid var(--scd-line);
	border-radius: 8px;
	display: grid;
	gap: 10px;
	padding: 12px;
}

.scd-form__consent {
	align-items: start;
	display: flex !important;
	font-weight: 500 !important;
	gap: 10px !important;
}

.scd-form .scd-form__consent span {
	font-size: 1em;
}

.scd-form__consent input {
	min-height: auto;
	width: auto;
}

.scd-button {
	background: var(--scd-accent);
	border: 0;
	border-radius: 7px;
	color: #fff;
	cursor: pointer;
	font: inherit;
	font-weight: 750;
	justify-self: start;
	min-height: 44px;
	padding: 11px 16px;
}

.scd-button:hover,
.scd-button:focus {
	background: var(--scd-accent-strong);
}

.scd-notice--success {
	background: #edf7f3;
	color: var(--scd-accent-strong);
}

.scd-notice--error {
	background: #fff1f0;
	color: #9a2d21;
}

@media (max-width: 720px) {
	.scd-directory__toolbar,
	.scd-form__contacts {
		grid-template-columns: 1fr;
	}

	.scd-card {
		grid-template-columns: 72px minmax(0, 1fr);
	}

	.scd-card__photo,
	.scd-card__initial {
		height: 72px;
		width: 72px;
	}
}
