/* Directories: businesses & civil institutions (public pages + member form).
   Logical properties only, so Sorani (RTL) mirrors without extra rules. */

/* ---------------------------------------------------------------- listing */
.kgd-input {
	padding: .75rem 1.25rem;
	border: 1.5px solid #e2e8f0;
	border-radius: .875rem;
	font-size: .875rem;
	font-family: inherit;
	background: #fff;
	color: #1e293b;
	outline: none;
	max-width: 100%;
}
.kgd-input:focus { border-color: #14B1BB; box-shadow: 0 0 0 3px rgba(20, 177, 187, .15); }

.kgd-pill {
	--kgd-accent: #003366;
	background: #f1f5f9;
	color: #64748b;
	border-radius: 9999px;
	padding: .4rem 1rem;
	font-size: .78rem;
	font-weight: 700;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: .4rem;
	transition: background .2s, color .2s;
}
.kgd-pill:hover { background: #e2e8f0; color: #334155; }
.kgd-pill.is-active { background: var(--kgd-accent); color: #fff; }
.kgd-pill__n {
	background: rgba(0, 0, 0, .08);
	border-radius: 9999px;
	padding: 0 .45rem;
	font-size: .7rem;
	line-height: 1.5;
}
.kgd-pill.is-active .kgd-pill__n { background: rgba(255, 255, 255, .25); }

.kgd-card {
	background: #fff;
	border-radius: 1.5rem;
	overflow: hidden;
	border: 1px solid #e2e8f0;
	display: flex;
	flex-direction: column;
	transition: transform .2s, box-shadow .2s;
}
.kgd-card:hover { transform: translateY(-4px); box-shadow: 0 8px 30px rgba(0, 0, 0, .1); }
.kgd-card__cover { display: block; height: 120px; position: relative; }

.kgd-chip {
	position: absolute;
	top: .75rem;
	border-radius: 9999px;
	padding: .2rem .65rem;
	font-size: .7rem;
	font-weight: 700;
	max-width: calc(100% - 1.5rem);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.kgd-chip--start { inset-inline-start: .75rem; }
.kgd-chip--end { inset-inline-end: .75rem; }
.kgd-chip--start-bottom { top: auto; bottom: .75rem; inset-inline-end: .75rem; }

.kgd-view {
	--kgd-accent: #003366;
	background: var(--kgd-accent);
	color: #fff;
	border-radius: 9999px;
	padding: .4rem 1rem;
	font-size: .78rem;
	font-weight: 700;
	text-decoration: none;
	transition: background .2s;
}
.kgd-view:hover, .kgd-view:focus-visible { background: #14B1BB; color: #fff; }

/* ---------------------------------------------------------------- profile */
.kgd-preview {
	background: #fef3c7;
	color: #92400e;
	border: 1px solid #fcd34d;
	border-radius: .875rem;
	padding: .75rem 1rem;
	font-size: .875rem;
	font-weight: 600;
	margin-bottom: 1rem;
}
.kgd-edit-btn {
	position: absolute;
	top: 1rem;
	inset-inline-end: 1rem;
	background: rgba(0, 0, 0, .5);
	color: #fff;
	border-radius: 9999px;
	padding: .4rem 1rem;
	font-size: .78rem;
	font-weight: 700;
	text-decoration: none;
}
.kgd-edit-btn:hover { background: rgba(0, 0, 0, .7); color: #fff; }
.kgd-contact {
	display: flex;
	align-items: center;
	gap: .75rem;
	padding: .6rem;
	border-radius: .875rem;
	background: #f8fafc;
	text-decoration: none;
	color: #374151;
	margin-bottom: .5rem;
	font-size: .875rem;
	word-break: break-word;
}
.kgd-contact:hover { background: #E0F7F8; color: #0e7c83; }

/* ---------------------------------------------------------------- member area */
.kgd-orgs { display: grid; gap: 1rem; }
.kgd-org {
	display: flex;
	gap: 1rem;
	align-items: center;
	flex-wrap: wrap;
	border: 1px solid #e2e8f0;
	border-radius: 1rem;
	padding: 1rem;
	background: #fff;
}
.kgd-org__logo {
	width: 56px;
	height: 56px;
	border-radius: .75rem;
	overflow: hidden;
	flex-shrink: 0;
	background: linear-gradient(135deg, #E0F7F8, #dbeafe);
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 900;
	color: #003366;
	font-size: 1.25rem;
}
.kgd-org__logo img { width: 100%; height: 100%; object-fit: cover; }
.kgd-org__body { flex: 1; min-width: 200px; }
.kgd-org__body h3 { margin: 0 0 .25rem; font-size: 1rem; color: #003366; }
.kgd-org__meta { margin: 0; font-size: .8rem; color: #64748b; display: flex; gap: .75rem; flex-wrap: wrap; align-items: center; }
.kgd-org__actions { display: flex; gap: .5rem; flex-wrap: wrap; }

.kgd-form fieldset { border: 0; padding: 0; margin: 0 0 1.5rem; }
.kgd-form legend { font-weight: 800; color: #003366; font-size: 1rem; margin-bottom: .75rem; padding: 0; }
.kgd-form .kgd-imgrow { display: flex; gap: 1rem; align-items: flex-start; flex-wrap: wrap; }
.kgd-form .kgd-imgrow img { width: 96px; height: 96px; object-fit: cover; border-radius: .75rem; border: 1px solid #e2e8f0; }
.kgd-form .kgd-imgrow img.is-cover { width: 200px; }
.kgd-types { display: flex; gap: .75rem; flex-wrap: wrap; }
.kgd-type {
	flex: 1;
	min-width: 220px;
	display: flex;
	gap: .6rem;
	align-items: flex-start;
	border: 1.5px solid #e2e8f0;
	border-radius: 1rem;
	padding: .85rem 1rem;
	cursor: pointer;
	background: #fff;
}
.kgd-type:has(input:checked) { border-color: #14B1BB; background: #f0fdfa; }
.kgd-type input { margin-top: .2rem; }
.kgd-type strong { display: block; color: #003366; }
