/* PPG member directory (layout C). Everything is scoped under .ppgmd; fonts come from the theme. */
.ppgmd {
	--ppgmd-orange: #f19a3e;
	--ppgmd-orange-ink: #9a520e;
	--ppgmd-orange-soft: #fff3e6;
	--ppgmd-blue: #0b6aa2;
	--ppgmd-blue-dark: #08507b;
	--ppgmd-blue-soft: #e9f3fa;
	--ppgmd-ink: #26323d;
	--ppgmd-muted: #56656f;
	--ppgmd-line: #dfe6ec;
	--ppgmd-panel: #f6f9fb;
	--ppgmd-radius: 10px;
	color: var(--ppgmd-ink);
	font-size: 15px;
	line-height: 1.5;
	margin: 0 0 2.5rem;
	max-width: 100%;
	overflow-wrap: break-word;
}
.ppgmd *,
.ppgmd *::before,
.ppgmd *::after { box-sizing: border-box; }
.ppgmd [hidden] { display: none !important; }
.ppgmd a { color: var(--ppgmd-blue); }
.ppgmd a:hover { color: var(--ppgmd-blue-dark); }
.ppgmd a:focus-visible,
.ppgmd button:focus-visible,
.ppgmd summary:focus-visible,
.ppgmd input:focus-visible,
.ppgmd select:focus-visible {
	outline: 3px solid rgba(241, 154, 62, .65);
	outline-offset: 2px;
}
.ppgmd ol,
.ppgmd ul { list-style: none; margin: 0; padding: 0; }
.ppgmd li { margin: 0; }
.ppgmd li::marker { content: none; }
.ppgmd .ppgmd-list > li::before,
.ppgmd .ppgmd-tags > li::before { content: none; display: none; }

/* ---------- layout ---------- */
.ppgmd-layout {
	display: grid;
	gap: 16px;
	grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 992px) {
	.ppgmd-layout { gap: 28px; grid-template-columns: 236px minmax(0, 1fr); align-items: start; }
}

/* ---------- buttons and fields ---------- */
.ppgmd .ppgmd-btn {
	align-items: center;
	background: var(--ppgmd-blue);
	border: 1px solid var(--ppgmd-blue);
	border-radius: 8px;
	color: #fff;
	cursor: pointer;
	display: inline-flex;
	font-size: 15px;
	font-weight: 600;
	gap: 6px;
	justify-content: center;
	line-height: 1.2;
	min-height: 42px;
	padding: 9px 16px;
	text-decoration: none;
	transition: background-color .15s, border-color .15s, color .15s;
}
.ppgmd .ppgmd-btn:hover { background: var(--ppgmd-blue-dark); border-color: var(--ppgmd-blue-dark); color: #fff; }
.ppgmd .ppgmd-btn--icon { flex: none; padding: 0; width: 44px; }
.ppgmd .ppgmd-btn--clear { background: #fff; color: var(--ppgmd-blue); }
.ppgmd .ppgmd-btn--clear:hover { background: var(--ppgmd-blue-soft); color: var(--ppgmd-blue-dark); }
.ppgmd .ppgmd-btn--apply { box-shadow: inset 0 -3px 0 var(--ppgmd-orange); }

.ppgmd .ppgmd-label {
	color: var(--ppgmd-muted);
	display: block;
	font-size: 13px;
	font-weight: 600;
	margin: 12px 0 4px;
}
.ppgmd .ppgmd-input {
	appearance: none;
	background: #fff;
	border: 1px solid #c9d4dd;
	border-radius: 8px;
	color: var(--ppgmd-ink);
	display: block;
	font-size: 15px;
	line-height: 1.3;
	min-height: 42px;
	padding: 9px 11px;
	width: 100%;
}
.ppgmd select.ppgmd-input {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2356656f' d='M1.4 0 6 4.6 10.6 0 12 1.4l-6 6-6-6z'/%3E%3C/svg%3E");
	background-position: right 12px center;
	background-repeat: no-repeat;
	padding-right: 34px;
}
.ppgmd .ppgmd-input:focus { border-color: var(--ppgmd-blue); }
.ppgmd select.ppgmd-input:disabled { opacity: .55; cursor: not-allowed; }
.ppgmd .ppgmd-input--short { max-width: 120px; }

/* ---------- sidebar form ---------- */
.ppgmd-form { margin: 0; min-width: 0; }
.ppgmd-search .ppgmd-label { margin-top: 0; }
.ppgmd-search__row { display: flex; gap: 6px; }
.ppgmd-search__row .ppgmd-input { flex: 1; min-width: 0; }
.ppgmd .ppgmd-btn--filters { display: none; }

.ppgmd-sheet__head,
.ppgmd-sheet__close { display: none; }
.ppgmd .ppgmd-group { border: 0; margin: 18px 0 0; min-width: 0; padding: 0; }
.ppgmd .ppgmd-legend {
	border-bottom: 2px solid var(--ppgmd-orange);
	color: var(--ppgmd-ink);
	display: inline-block;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: .02em;
	margin: 0 0 4px;
	padding: 0 0 2px;
	width: auto;
}
.ppgmd .ppgmd-group .ppgmd-label:first-of-type { margin-top: 6px; }
.ppgmd .ppgmd-check {
	align-items: flex-start;
	cursor: pointer;
	display: flex;
	font-size: 14.5px;
	gap: 9px;
	line-height: 1.35;
	margin: 0;
	padding: 5px 0;
}
.ppgmd .ppgmd-check input {
	accent-color: var(--ppgmd-blue);
	flex: none;
	height: 17px;
	margin: 1px 0 0;
	width: 17px;
}
.ppgmd-sheet__foot { display: flex; gap: 8px; margin-top: 22px; }
.ppgmd-sheet__foot .ppgmd-btn { flex: 1; }

@media (min-width: 992px) {
	.ppgmd-form {
		background: var(--ppgmd-panel);
		border: 1px solid var(--ppgmd-line);
		border-radius: var(--ppgmd-radius);
		padding: 18px 16px 18px;
	}
	.ppgmd .ppgmd-group--scroll { max-height: 22rem; overflow-y: auto; }
}

/* phone and tablet: the filters fold into a full-screen sheet */
@media (max-width: 991.98px) {
	.ppgmd .ppgmd-btn--filters {
		background: var(--ppgmd-blue);
		display: flex;
		margin-top: 8px;
		width: 100%;
	}
	.ppgmd-sheet { display: none; }
	.ppgmd-sheet:target,
	.ppgmd-sheet.is-open {
		background: #fff;
		display: flex;
		flex-direction: column;
		inset: 0;
		position: fixed;
		z-index: 100000;
	}
	.ppgmd-sheet:target .ppgmd-sheet__head,
	.ppgmd-sheet.is-open .ppgmd-sheet__head {
		align-items: center;
		border-bottom: 1px solid var(--ppgmd-line);
		display: flex;
		justify-content: space-between;
		padding: 12px 16px;
	}
	.ppgmd .ppgmd-sheet__title {
		color: var(--ppgmd-ink);
		font-size: 19px;
		font-weight: 700;
		line-height: 1.2;
		margin: 0;
	}
	.ppgmd .ppgmd-sheet__close {
		align-items: center;
		border-radius: 8px;
		color: var(--ppgmd-ink);
		display: flex;
		font-size: 20px;
		height: 44px;
		justify-content: center;
		text-decoration: none;
		width: 44px;
	}
	.ppgmd-sheet__body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 4px 16px 24px; }
	.ppgmd-sheet__foot {
		background: #fff;
		border-top: 1px solid var(--ppgmd-line);
		margin: 0;
		padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
	}
	html.ppgmd-lock,
	html.ppgmd-lock body { overflow: hidden; }
}

/* ---------- results header ---------- */
.ppgmd-results { min-width: 0; }
.ppgmd-az {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	margin: 0 0 14px;
}
.ppgmd .ppgmd-az__link {
	align-items: center;
	border-radius: 6px;
	color: var(--ppgmd-blue);
	display: inline-flex;
	font-size: 13.5px;
	font-weight: 600;
	height: 30px;
	justify-content: center;
	min-width: 30px;
	padding: 0 6px;
	text-decoration: none;
}
.ppgmd .ppgmd-az__link:hover { background: var(--ppgmd-blue-soft); }
.ppgmd .ppgmd-az__link.is-current { background: var(--ppgmd-blue); color: #fff; }

.ppgmd-results__head {
	align-items: center;
	border-bottom: 1px solid var(--ppgmd-line);
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: space-between;
	margin: 0 0 14px;
	padding: 0 0 10px;
}
.ppgmd .ppgmd-count { color: var(--ppgmd-muted); font-size: 14.5px; margin: 0; }
.ppgmd .ppgmd-count strong { color: var(--ppgmd-ink); font-size: 16px; }

.ppgmd-view {
	background: var(--ppgmd-panel);
	border: 1px solid var(--ppgmd-line);
	border-radius: 999px;
	display: inline-flex;
	padding: 3px;
}
.ppgmd .ppgmd-view__btn {
	background: transparent;
	border: 0;
	border-radius: 999px;
	color: var(--ppgmd-muted);
	cursor: pointer;
	font-size: 14px;
	font-weight: 600;
	line-height: 1;
	min-height: 34px;
	padding: 8px 16px;
}
.ppgmd .ppgmd-view__btn.is-active { background: #fff; box-shadow: 0 1px 3px rgba(38, 50, 61, .15); color: var(--ppgmd-blue); }

.ppgmd-map {
	background: linear-gradient(135deg, #e8f3f9, #eef5ea);
	border: 1px solid var(--ppgmd-line);
	border-radius: var(--ppgmd-radius);
	overflow: hidden;
	position: relative;
}
.ppgmd-map[hidden] { display: none; }
.ppgmd .ppgmd-map__canvas { height: 560px; width: 100%; }
.ppgmd .ppgmd-map__status {
	background: rgba(255, 255, 255, .92);
	border-bottom: 1px solid var(--ppgmd-line);
	color: var(--ppgmd-muted);
	font-size: 14px;
	margin: 0;
	padding: 8px 14px;
}
.ppgmd .ppgmd-map__status[hidden] { display: none; }
.ppgmd-listview[hidden] { display: none; }
.ppgmd-mapcard { color: #26323d; font-size: 14px; line-height: 1.4; max-width: 240px; }
.ppgmd-mapcard__name { display: block; font-size: 15px; margin-bottom: 2px; }
.ppgmd-mapcard__place { color: #5b6772; }
.ppgmd-mapcard .ppgmd-mapcard__link {
	background: none;
	border: 0;
	color: var(--ppgmd-blue, #1f6fa5);
	cursor: pointer;
	font-size: 14px;
	margin-top: 6px;
	padding: 0;
	text-decoration: underline;
}
@media (max-width: 767px) {
	.ppgmd .ppgmd-map__canvas { height: 70vh; min-height: 360px; }
}

/* ---------- member rows ---------- */
.ppgmd-list { display: grid; gap: 10px; }
.ppgmd .ppgmd-row {
	background: #fff;
	border: 1px solid var(--ppgmd-line);
	border-radius: var(--ppgmd-radius);
	padding: 14px 16px;
	position: relative;
	transition: border-color .15s, box-shadow .15s;
}
.ppgmd .ppgmd-row:hover { border-color: #c5d3de; box-shadow: 0 2px 10px rgba(11, 106, 162, .07); }
.ppgmd .ppgmd-row:has(.ppgmd-details[open]) { border-color: #b9cbd8; box-shadow: 0 3px 14px rgba(11, 106, 162, .09); }
.ppgmd-row__main { align-items: flex-start; display: flex; gap: 14px; padding-right: 92px; }

.ppgmd-avatar {
	align-items: center;
	background: var(--ppgmd-blue-soft);
	border-radius: 50%;
	color: var(--ppgmd-blue);
	display: flex;
	flex: none;
	font-size: 18px;
	font-weight: 700;
	height: 56px;
	justify-content: center;
	letter-spacing: .03em;
	overflow: hidden;
	width: 56px;
}
.ppgmd-avatar--logo { background: #fff; border: 1px solid var(--ppgmd-line); border-radius: 12px; padding: 4px; }
.ppgmd .ppgmd-avatar img { display: block; height: 100%; max-width: 100%; object-fit: contain; width: 100%; }

.ppgmd-row__body { flex: 1; min-width: 0; }
.ppgmd .ppgmd-row__title {
	color: var(--ppgmd-blue);
	font-size: 17px;
	font-weight: 600;
	line-height: 1.3;
	margin: 0;
	padding: 0;
}
.ppgmd .ppgmd-row__cred { color: var(--ppgmd-muted); font-size: 14px; font-weight: 500; }
.ppgmd .ppgmd-row__meta { color: var(--ppgmd-muted); font-size: 14px; line-height: 1.4; margin: 3px 0 0; }
.ppgmd .ppgmd-row__biz { color: var(--ppgmd-ink); font-weight: 500; }
.ppgmd .ppgmd-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 9px; }
.ppgmd .ppgmd-tag {
	background: var(--ppgmd-orange-soft);
	border-radius: 999px;
	color: var(--ppgmd-orange-ink);
	font-size: 12.5px;
	font-weight: 500;
	line-height: 1.3;
	padding: 3px 10px;
}
.ppgmd .ppgmd-tag--more { background: #eef2f5; color: var(--ppgmd-muted); }

/* in-place details */
.ppgmd .ppgmd-details__toggle {
	align-items: center;
	border-radius: 6px;
	color: var(--ppgmd-blue);
	cursor: pointer;
	display: inline-flex;
	font-size: 14.5px;
	font-weight: 600;
	gap: 4px;
	list-style: none;
	padding: 4px 6px;
	position: absolute;
	right: 10px;
	top: 12px;
	user-select: none;
}
.ppgmd .ppgmd-details__toggle::-webkit-details-marker { display: none; }
.ppgmd .ppgmd-details__toggle::marker { content: none; }
.ppgmd .ppgmd-details__toggle:hover { background: var(--ppgmd-blue-soft); }
.ppgmd-details__chev { display: inline-block; font-size: 18px; line-height: 1; transition: transform .15s; }
.ppgmd-details[open] .ppgmd-details__chev { transform: rotate(90deg); }
.ppgmd-details__close,
.ppgmd-details[open] .ppgmd-details__open { display: none; }
.ppgmd-details[open] .ppgmd-details__close { display: inline; }

.ppgmd .ppgmd-kv {
	border-top: 1px dashed var(--ppgmd-line);
	display: grid;
	gap: 8px 18px;
	grid-template-columns: 150px minmax(0, 1fr);
	margin: 14px 0 2px;
	padding: 14px 0 0 70px;
}
.ppgmd-kv__item { display: contents; }
.ppgmd .ppgmd-kv dt { color: var(--ppgmd-muted); font-size: 13.5px; font-weight: 600; margin: 0; padding-top: 1px; }
.ppgmd .ppgmd-kv dd { font-size: 14.5px; margin: 0; min-width: 0; overflow-wrap: anywhere; }
.ppgmd .ppgmd-kv__multi { white-space: pre-line; }
.ppgmd .ppgmd-kv__img { display: block; height: auto; max-height: 96px; max-width: 96px; width: auto; }

/* ---------- pagination, empty ---------- */
.ppgmd-pager {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	justify-content: center;
	margin: 22px 0 0;
}
.ppgmd .ppgmd-pager__link {
	align-items: center;
	border: 1px solid var(--ppgmd-line);
	border-radius: 8px;
	color: var(--ppgmd-blue);
	display: inline-flex;
	font-size: 14.5px;
	font-weight: 600;
	justify-content: center;
	min-height: 40px;
	min-width: 40px;
	padding: 0 12px;
	text-decoration: none;
}
.ppgmd a.ppgmd-pager__link:hover { background: var(--ppgmd-blue-soft); border-color: #c5d3de; }
.ppgmd .ppgmd-pager__link.is-current { background: var(--ppgmd-blue); border-color: var(--ppgmd-blue); color: #fff; }
.ppgmd .ppgmd-pager__gap { color: var(--ppgmd-muted); padding: 0 2px; }

.ppgmd-empty {
	background: var(--ppgmd-panel);
	border: 1px dashed #c9d4dd;
	border-radius: var(--ppgmd-radius);
	padding: 28px 20px;
	text-align: center;
}
.ppgmd .ppgmd-empty p { margin: 0 0 6px; }
.ppgmd .ppgmd-empty p:last-child { margin: 0; }
.ppgmd-notice { background: #fff3e6; border-left: 4px solid #f19a3e; padding: 10px 14px; }

/* ---------- narrow rows ---------- */
@media (max-width: 599.98px) {
	.ppgmd .ppgmd-row { padding: 12px; }
	.ppgmd-row__main { gap: 12px; padding-right: 0; }
	.ppgmd-avatar { font-size: 16px; height: 46px; width: 46px; }
	.ppgmd .ppgmd-row__title { font-size: 16px; }
	.ppgmd .ppgmd-details__toggle { margin: 8px 0 0 52px; padding: 4px 0; position: static; }
	.ppgmd .ppgmd-kv { display: block; padding-left: 0; }
	.ppgmd .ppgmd-kv__item { display: block; margin-top: 10px; }
	.ppgmd .ppgmd-kv__item:first-child { margin-top: 0; }
	.ppgmd .ppgmd-az__link { font-size: 13px; height: 28px; min-width: 28px; padding: 0 4px; }
	.ppgmd .ppgmd-pager__link--prev,
	.ppgmd .ppgmd-pager__link--next { padding: 0 10px; }
}
@media (prefers-reduced-motion: reduce) {
	.ppgmd *, .ppgmd *::before, .ppgmd *::after { transition: none !important; }
}
