/* ===== Find your doctor: [doctor_finder] / [doctor_rows] =====
   ไฟล์นี้แยกจาก related-doctors.css — แก้สีได้ที่ตัวแปรด้านล่าง */
.df {
	--df-name: #16202B;   /* สีชื่อแพทย์ */
	--df-spec: #55616E;   /* สีสาขาความเชี่ยวชาญ */
	--df-gold: #A98A62;   /* สังกัด / ลิงก์ดูโปรไฟล์ */
	--df-head: #97A0AA;   /* หัวตาราง */
	--df-chip-text: #55616E;
	--df-navy: #0D1B2A;
	--df-hair: rgba(13, 27, 42, .10);
	--df-hair-2: rgba(13, 27, 42, .16);
	--df-photo-bg: #fff;
}

/* ปุ่มกรองหมวด */
.df-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 9px;
	margin: 0 0 40px;
}
.df-chip {
	padding: 9px 20px;
	border: 1px solid var(--df-hair-2);
	border-radius: 999px;
	background: none;
	color: var(--df-chip-text);
	font: inherit;
	font-size: 13px;
	cursor: pointer;
}
.df-chip:hover {
    border-color: #A98A62;
    color: #ffffff;
    background: #A98A62;
}
.df-chip[aria-pressed="true"] {
    background: #A98A62;
    border-color: #A98A62;
    color: #fff;
}

/* หัวตาราง + แถว (4 คอลัมน์: แพทย์ / สังกัด / สาขา / ลิงก์) */
.df-head,
.df-row {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) minmax(0, 1fr) auto;
	column-gap: 28px;
	align-items: center;
}
.df-head {
	padding: 0 0 14px;
	border-bottom: 1px solid var(--df-hair-2);
	font-size: 14px;
	color: var(--df-head);
}
.df-count {
	justify-self: end;
	text-align: right;
}
.df-row {
	box-sizing: border-box;
	width: 100%;
	padding: 24px 0;
	border-bottom: 1px solid var(--df-hair);
	color: inherit;
	text-decoration: none !important;
	font: inherit;
	text-align: left;
}
.df-row[hidden] {
	display: none !important;
}

/* รูป + ชื่อ */
.df-who {
	display: flex;
	align-items: center;
	gap: 17px;
	min-width: 0;
}
.df-pf {
	flex: none;
	display: grid;
	place-items: center;
	width: 71px;
	height: 88px;
	background: var(--df-photo-bg);
	color: var(--df-head);
	font-size: 22px;
	object-fit: cover;
	object-position: center top;
}
.df-nm {
	font-size: 22px;
	font-weight: 600;
	line-height: 1.3;
	color: var(--df-name);
}

/* สังกัด / สาขา / ลิงก์ */
.df-hs {
	font-size: 16px;
	line-height: 1.6;
	color: var(--df-gold);
}
.df-sp {
	font-size: 16px;
	font-weight: 500;
	line-height: 1.6;
	color: var(--df-spec);
}
.df-go {
	display: inline-flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	min-width: 78px;
	padding-bottom: 8px;
	border-bottom: 1px solid var(--df-gold);
	font-size: 15px;
	color: var(--df-gold);
	white-space: nowrap;
}
.df-go::after {
	content: "";
	width: 7px;
	height: 7px;
	border-top: 1px solid currentColor;
	border-right: 1px solid currentColor;
	transform: rotate(45deg);
}

/* แท็บเล็ต/มือถือ: ซ่อนหัวตาราง เรียงแถวเป็นแนวตั้ง */
@media (max-width: 900px) {
	.df-head {
		display: none;
	}
	.df-row {
		grid-template-columns: 1fr;
		row-gap: 8px;
		padding: 22px 0;
		align-items: start;
	}
	.df-go {
		justify-self: start;
		margin-top: 6px;
	}
}
