/* wp-content/plugins/ceca-widgets/widgets/news-archive/news-archive.css */
/* News Archive (Figma 213:1340): 306px sidebar + lead story + 3-col grid.
   Exact design type baked in (Elementor controls override): heading 40/50
   Bold, group labels 22/26 Bold, card titles 25/30 Bold with a 3-line slot so
   image rows align, pills 16px in 25px rounds, excerpts 18/26. */

.ceca-news-archive {
	--ceca-na-label: #1a1a1a;
	--ceca-na-title: #1a1a1a;
	--ceca-na-text: #1a1a1a;
	--ceca-na-date: #545454;
	--ceca-na-pill-bg: #e3e3e3;
	--ceca-na-line: #e8e8e8;
	--ceca-na-accent: #c65a93;
	--ceca-na-gap: 24px;

	display: grid;
	grid-template-columns: 306px minmax(0, 1fr);
	gap: var(--ceca-na-gap);
	align-items: start;
	/* Breathing room under the last row, before the footer (user, 2026-09-29). */
	padding-bottom: 80px;
}

/* --- Sidebar ------------------------------------------------------------- */

/* Desktop only (the layout stacks at 1024px): the filters ride along under
   the sticky header. Capped to the viewport and scrollable, otherwise an
   expanded filter list taller than the screen could never be reached. The
   2px padding/negative margin keeps the search focus ring from being
   clipped by the overflow. */
@media (min-width: 1025px) {
	.ceca-na__sidebar {
		position: sticky;
		top: calc(var(--ceca-header-offset, 125px) + 30px);
		max-height: calc(100vh - var(--ceca-header-offset, 125px) - 60px);
		overflow-y: auto;
		overscroll-behavior: contain;
		scrollbar-width: thin;
		padding: 2px;
		margin: -2px;
	}
}

.ceca-na__heading {
	margin: 0 0 16px;
	font-size: 40px;
	line-height: 50px;
	font-weight: 700;
}

.ceca-na__search {
	width: 100%;
	height: 40px;
	padding: 0 20px;
	margin: 0 0 26px;
	background: #ffffff;
	border: 1px solid var(--ceca-na-line);
	border-radius: 300px;
	font-size: 16px;
	color: #1a1a1a;
	outline: none;
	appearance: none;
}

.ceca-na__search::placeholder {
	color: #7e7e7e;
	opacity: 1;
}

.ceca-na__search:focus {
	border-color: var(--ceca-na-accent);
	box-shadow: 0 0 0 1px var(--ceca-na-accent);
	caret-color: var(--ceca-na-accent);
}

.ceca-na__search::-webkit-search-decoration,
.ceca-na__search::-webkit-search-cancel-button {
	-webkit-appearance: none;
}

/* --- search box with #tag pills (user, 2026-09-29) ----------------------- */
/* The pill-shaped frame moves from the input to this wrapper so tag pills
   can sit inside it, ahead of the text; the input fills what's left. */
.ceca-na__searchbox {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	min-height: 40px;
	margin: 0 0 26px;
	padding: 4px 8px 4px 14px;
	background: #ffffff;
	/* Pill per the design (Figma 2609:1982, user 2026-09-30): #E8E8E8 1px,
	   fully rounded, text 20px in (14px here + the input's 6px). 20px radius
	   = a true pill at 40px and still rounded if #tag pills wrap it taller. */
	border: 1px solid var(--ceca-na-line);
	border-radius: 20px;
	cursor: text;
}

/* Focus ring in brand plum, not the old pink accent (user, 2026-09-29). */
.ceca-na__searchbox:focus-within {
	border-color: var(--ceca-plum, #411024);
	box-shadow: 0 0 0 1px var(--ceca-plum, #411024);
}

.ceca-news-archive .ceca-na__searchbox .ceca-na__search:focus {
	caret-color: var(--ceca-plum, #411024);
}

.ceca-na__tags {
	display: contents;
}

.ceca-news-archive .ceca-na__searchbox .ceca-na__search {
	flex: 1 1 80px;
	min-width: 60px;
	width: auto;
	height: 30px;
	margin: 0;
	padding: 0 6px;
	font-size: 16px;
	background: transparent;
	border: 0;
	border-radius: 0;
	box-shadow: none;
}

.ceca-na__tag {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	height: 28px;
	padding: 0 4px 0 11px;
	background: #ffffff;
	border: 1px solid #cdcdcd;
	border-radius: 300px;
	color: #000000;
	font-size: 14px;
	line-height: 1;
	white-space: nowrap;
}

.ceca-news-archive .ceca-na__tag-x {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 20px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: #545454;
	cursor: pointer;
}

.ceca-news-archive .ceca-na__tag-x:hover,
.ceca-news-archive .ceca-na__tag-x:focus-visible {
	background: #411024;
	color: #ffffff;
}

.ceca-na__tag-x svg {
	width: 10px;
	height: 10px;
}

.ceca-na__group {
	border-bottom: 1px solid var(--ceca-na-line);
}

/* High specificity + explicit states so Elementor kit button rules never
   restyle the accordion toggles. */
.ceca-news-archive .ceca-na__group-toggle {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	padding: 17px 0 18px;
	background: transparent;
	border: 0;
	font-size: 22px;
	line-height: 26px;
	font-weight: 700;
	color: var(--ceca-na-label);
	text-align: left;
	cursor: pointer;
}

.ceca-news-archive .ceca-na__group-toggle:hover,
.ceca-news-archive .ceca-na__group-toggle:focus {
	background: transparent;
	color: var(--ceca-na-label);
}

.ceca-na__group-toggle svg {
	width: 14px;
	height: 8px;
	flex: none;
	transition: transform 0.25s ease;
}

.ceca-na__group.is-open .ceca-na__group-toggle svg {
	transform: rotate(180deg);
}

.ceca-na__group-options {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 0 0 18px;
}

/* display:flex above outranks the UA's [hidden] rule — restate it so the
   accordion actually collapses. */
.ceca-na__group-options[hidden] {
	display: none;
}

.ceca-na__option {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 16px;
	line-height: 20px;
	color: #1a1a1a;
	cursor: pointer;
}

.ceca-na__option input {
	width: 16px;
	height: 16px;
	margin: 0;
	accent-color: var(--ceca-na-accent);
}

/* --- Lead story ---------------------------------------------------------- */

.ceca-na__lead {
	margin-bottom: 64px;
}

.ceca-news-featured {
	display: grid;
	grid-template-columns: 306px minmax(0, 1fr);
	gap: var(--ceca-na-gap);
	align-items: start;
}

.ceca-news-featured__title {
	margin: 14px 0 0;
	font-size: 30px;
	line-height: 35px;
	font-weight: 700;
}

.ceca-news-featured a {
	color: var(--ceca-na-title);
	text-decoration: none;
}

.ceca-news-featured__excerpt {
	margin: 18px 0 0;
	font-size: 18px;
	line-height: 26px;
	color: var(--ceca-na-text);
}

.ceca-news-featured__media {
	display: block;
	height: 400px;
	background: #e8e8e8;
	overflow: hidden;
}

.ceca-news-featured__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* --- Card grid ----------------------------------------------------------- */

.ceca-na__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	column-gap: var(--ceca-na-gap);
	row-gap: 64px;
}

.ceca-news-card {
	border-top: 1px solid var(--ceca-na-line);
	padding-top: 28px;
}

.ceca-news-card__link {
	display: block;
	color: inherit;
	text-decoration: none;
}

.ceca-news-card__meta {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
}

.ceca-news-card__pill {
	display: inline-flex;
	align-items: center;
	height: 25px;
	padding: 0 14px;
	background: var(--ceca-na-pill-bg);
	border-radius: 300px;
	font-size: 16px;
	line-height: 20px;
	color: #1a1a1a;
}

/* The lead pill sits on the image-adjacent white, slightly translucent in
   the design. */
.ceca-news-featured .ceca-news-card__pill {
	background: rgba(198, 198, 198, 0.5);
}

.ceca-news-card__date {
	font-size: 16px;
	line-height: 20px;
	color: var(--ceca-na-date);
}

.ceca-news-card__title {
	margin: 16px 0 20px;
	min-height: 90px;
	font-size: 25px;
	line-height: 30px;
	font-weight: 700;
	color: var(--ceca-na-title);
	/* Capped at 3 lines (ellipsis) so a long headline can't make its card,
	   and the whole row, taller than its neighbours. Visual only — the full
	   title stays in the markup for screen readers and search. */
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	line-clamp: 3;
	overflow: hidden;
}

.ceca-news-card__media {
	height: 204px;
	background: #e8e8e8;
	overflow: hidden;
}

.ceca-news-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Hover (moved here from the shop, user 2026-09-30): a slow Ken Burns
   drift on the image plus a brand-accent outline easing in from outside
   the frame (offset 8px -> 2px while fading in). */
.ceca-news-card__media,
.ceca-news-featured__media {
	outline: 2px solid transparent;
	outline-offset: 8px;
	transition:
		outline-color 0.45s ease,
		outline-offset 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.ceca-news-card__media img,
.ceca-news-featured__media img {
	transition: transform 2.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.ceca-news-card__link:hover .ceca-news-card__media,
.ceca-news-card__link:focus-visible .ceca-news-card__media,
.ceca-news-featured:hover .ceca-news-featured__media {
	outline-color: var(--ceca-na-accent);
	outline-offset: 2px;
}

.ceca-news-card__link:hover .ceca-news-card__media img,
.ceca-news-card__link:focus-visible .ceca-news-card__media img,
.ceca-news-featured:hover .ceca-news-featured__media img {
	transform: scale(1.07) translate(1.2%, -1.2%);
}

@media (prefers-reduced-motion: reduce) {
	.ceca-news-card__media img,
	.ceca-news-featured__media img {
		transition: none;
		transform: none !important;
	}
}

.ceca-news-card__excerpt {
	margin: 0;
	font-size: 18px;
	line-height: 26px;
	color: var(--ceca-na-text);
}

.ceca-na__status,
.ceca-na__empty {
	margin: 32px 0 0;
	font-size: 18px;
	color: #545454;
}

.ceca-na__sentinel {
	height: 1px;
}

/* --- Responsive ---------------------------------------------------------- */

@media (max-width: 1024px) {
	.ceca-news-archive {
		grid-template-columns: minmax(0, 1fr);
	}

	.ceca-na__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		row-gap: 48px;
	}

	.ceca-news-featured__media {
		height: 320px;
	}
}

@media (max-width: 767px) {
	.ceca-na__grid {
		grid-template-columns: minmax(0, 1fr);
		row-gap: 40px;
	}

	.ceca-news-featured {
		grid-template-columns: minmax(0, 1fr);
	}

	/* No featured images on mobile (user, 2026-09-16). */
	.ceca-news-featured__media {
		display: none;
	}

	.ceca-na__lead {
		margin-bottom: 40px;
	}

	.ceca-news-card__title {
		min-height: 0;
	}
}
