/* ── Klinik archive card ── */

.kiro-klinik-arc-card {
	background: #fff;
	border: 1px solid #d8d8d8;
	border-radius: 10px;
	padding: 20px;
	box-sizing: border-box;
	height: 100%;
}

.kiro-klinik-arc-inner {
	display: flex;
	flex-direction: row;
	gap: 20px;
	align-items: flex-start;
	height: 100%;
}

/* Stacked layout (photo top, text below) is tied to actual screen width, not
   card width. The grid this card lives in jumps from 1 to 2 columns at a
   600px viewport breakpoint, which made a container-query-based switch (card
   width) flip-flop: a 1-column mobile card and a 2-column tablet card can
   land on either side of a width threshold in a non-monotonic way as the
   screen resizes. Anchoring to viewport width instead guarantees the switch
   only ever goes one direction as the screen shrinks. 640px covers the whole
   1-column mobile range (and the start of 2-column) so both sides of that
   600px jump get the same treatment — side-by-side still applies through
   most of the tablet/desktop range like before. */
@media (max-width: 640px) {
	.kiro-klinik-arc-inner {
		flex-direction: column;
	}
	.kiro-klinik-arc-photo {
		width: 100% !important;
		height: auto !important;
		aspect-ratio: 1/1;
	}
	.kiro-klinik-arc-photo img {
		object-position: center center;
	}
}

/* "Alltid bild överst" block option — same stacked treatment as the mobile
   breakpoint above, but applied unconditionally so the layout never changes
   with screen width. */
.kiro-klinik-force-stacked .kiro-klinik-arc-inner {
	flex-direction: column;
}
.kiro-klinik-force-stacked .kiro-klinik-arc-photo {
	width: 100% !important;
	height: auto !important;
	aspect-ratio: 1/1;
}
.kiro-klinik-force-stacked .kiro-klinik-arc-photo img {
	object-position: center center;
}

/* Photo */
.kiro-klinik-arc-photo {
	flex-shrink: 0;
	display: block;
	width: 160px;
	height: 160px;
	border-radius: 8px;
	overflow: hidden;
	background: #e8e8e8;
}

.kiro-klinik-arc-photo--empty {
	background: #e0ddd9;
}

.kiro-klinik-arc-photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center top;
	display: block;
}

/* Body */
.kiro-klinik-arc-body {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	width: 100%;
}

/* Name */
.kiro-klinik-arc-name {
	font-size: 17px;
	font-weight: 700;
	color: #111;
	margin: 0 0 10px;
	line-height: 1.2;
	min-height: 2.4em;
}

.kiro-klinik-arc-name a {
	color: #111;
	text-decoration: none;
}

.kiro-klinik-arc-name a:hover {
	text-decoration: underline;
}

/* Footer */
.kiro-klinik-arc-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-top: auto;
	padding-top: 14px;
	border-top: 1px solid #e5e5e5;
}

.kiro-klinik-arc-link {
	display: inline-flex;
	align-items: center;
	color: #333;
	font-size: 14px;
	text-decoration: none;
}

.kiro-klinik-arc-link::after {
	content: "›";
	font-size: 1.2em;
	margin-left: 3px;
	line-height: 1;
}

.kiro-klinik-arc-link:hover {
	text-decoration: underline;
}

.kiro-klinik-arc-btn {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	color: #111;
	font-size: 14px;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 3px;
	text-decoration-color: #aaa;
}

.kiro-klinik-arc-btn::after {
	content: "";
	display: inline-block;
	width: 14px;
	height: 14px;
	flex-shrink: 0;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23333' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='1' y='3' width='14' height='12' rx='2'/%3E%3Cpath d='M1 7h14'/%3E%3Cpath d='M5 1v4M11 1v4'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-size: contain;
}

.kiro-klinik-arc-btn:hover {
	opacity: 0.75;
}
