/* =====================================================================
   EDS Core – Treatment Cards widget
   Scope ":not(#eds)" = ID-level specificity (theme link styles can't leak in).
   ===================================================================== */

.eds-tc{
	--cols:3;
	--ink:var(--e-global-color-primary,#000);
	--muted:var(--e-global-color-eds_g600,#737373);
	--rule:var(--e-global-color-46313f9,#e5e5e5);
	--ease:cubic-bezier(.2,.7,.2,1);
}
@media (max-width:1024px){.eds-tc{--cols:2}}
@media (max-width:767px){.eds-tc{--cols:1}}
.eds-tc--dark{--ink:var(--e-global-color-accent,#fff);--muted:rgba(255,255,255,.62);--rule:rgba(255,255,255,.16)}

.eds-tc:not(#eds){display:grid;grid-template-columns:repeat(var(--cols),minmax(0,1fr));gap:var(--eds-gap-l,56px) var(--eds-gap-m,24px);margin:0;padding:0;list-style:none}
.eds-tc:not(#eds) .eds-tc__item{margin:0;padding:0}
.eds-tc:not(#eds) .eds-tc__card{display:flex;flex-direction:column;gap:22px;height:100%;color:var(--ink);text-decoration:none}

.eds-tc:not(#eds) .eds-tc__media{position:relative;display:block;overflow:hidden;border-radius:20px;aspect-ratio:4/3;background:var(--e-global-color-4b5c478,#f5f5f5)}
.eds-tc--dark:not(#eds) .eds-tc__media{background:#1a1a1a}
.eds-tc:not(#eds) .eds-tc__img{width:100%;height:100%;object-fit:cover;display:block;transform:scale(1.001);transition:transform .9s var(--ease)}
.eds-tc:not(#eds) .eds-tc__card:is(:hover,:focus-visible) .eds-tc__img{transform:scale(1.04)}
.eds-tc:not(#eds) .eds-tc__draft{position:absolute;top:14px;left:14px;padding:4px 10px;border-radius:999px;background:#fff;color:#000;font-size:.75rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase}

.eds-tc:not(#eds) .eds-tc__body{display:grid;grid-template-columns:auto 1fr;column-gap:16px;row-gap:6px;align-items:baseline;padding:0 2px}
.eds-tc:not(#eds) .eds-tc__num{grid-row:span 3;color:var(--muted);font-size:.8125rem;font-weight:700;letter-spacing:.12em}
.eds-tc:not(#eds) .eds-tc__title{grid-column:2;font-size:var(--e-global-typography-eds_h4-font-size,1.375rem);font-weight:700;line-height:1.3}
.eds-tc:not(#eds) .eds-tc__tag{grid-column:2;color:var(--muted);font-size:.9375rem;line-height:1.5}
.eds-tc:not(#eds) .eds-tc__more{
	grid-column:2;justify-self:start;display:inline-flex;align-items:center;gap:10px;margin-top:10px;padding-bottom:3px;
	font-size:.9375rem;font-weight:700;
	background:linear-gradient(currentColor,currentColor) 0 100%/0 1px no-repeat;
	transition:background-size .45s var(--ease);
}
.eds-tc:not(#eds) .eds-tc__more svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round;transition:transform .45s var(--ease)}
.eds-tc:not(#eds) .eds-tc__card:is(:hover,:focus-visible) .eds-tc__more{background-size:100% 1px}
.eds-tc:not(#eds) .eds-tc__card:is(:hover,:focus-visible) .eds-tc__more svg{transform:translateX(4px)}
.eds-tc:not(#eds) .eds-tc__card:focus-visible{outline:2px solid var(--ink);outline-offset:6px;border-radius:20px}
.eds-tc:not(#eds) .eds-tc__body:not(:has(.eds-tc__num)) > *{grid-column:1 / -1}

@media (max-width:767px){
	.eds-tc:not(#eds) .eds-tc__card{gap:18px}
}
@media (prefers-reduced-motion:reduce){
	.eds-tc:not(#eds) *{transition-duration:.01ms !important}
}
