/*
 * Together for Life: component styles that theme.json cannot express.
 * Tokens come from theme.json (--wp--preset--*).
 */

:root {
	--tfl-sun: var(--wp--preset--color--sun);
	--tfl-link: var(--wp--preset--color--sun-700);
	--tfl-link-hover: var(--wp--preset--color--sun-800);
	--tfl-slate: var(--wp--preset--color--slate);
	--tfl-ink: var(--wp--preset--color--ink);
	--tfl-muted: var(--wp--preset--color--muted);
	--tfl-sand: var(--wp--preset--color--sand);
	--tfl-line: var(--wp--preset--color--line);
	--tfl-radius-control: 8px;
	--tfl-radius-card: 12px;
	--tfl-radius-photo: 24px;
	--tfl-tap: 44px;
}

/* Program colors: dot, tag background, tag text. */
.tfl-program--te-drejtat-e-njeriut { --program: #2F5DA8; --program-tint: #E8EEF8; --program-ink: #23477F; }
.tfl-program--shendet              { --program: #0E7C70; --program-tint: #E6F2F0; --program-ink: #0A5C53; }
.tfl-program--te-rinjte            { --program: #6A4FB6; --program-tint: #F0ECF9; --program-ink: #4F3A8A; }
.tfl-program--gjinore              { --program: #B03A74; --program-tint: #F7E9F0; --program-ink: #8A2C5A; }
.tfl-program--mjedis               { --program: #3E7B33; --program-tint: #EAF2E8; --program-ink: #2F5E27; }
.tfl-program--emergjencat,
.tfl-program--none                 { --program: #3A4751; --program-tint: #ECEEF0; --program-ink: #3A4751; }

/* ---------------------------------------------------------------- Base */

html { scroll-padding-top: 96px; }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { height: auto; }
:where(a) { text-underline-offset: 0.15em; text-decoration-thickness: 1px; }
:where(main) :focus-visible,
:where(header, footer) :focus-visible { outline: 2px solid var(--tfl-link); outline-offset: 3px; border-radius: 2px; }

.screen-reader-text {
	border: 0; clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden;
	padding: 0; position: absolute !important; width: 1px; word-wrap: normal !important;
}
.skip-link:focus {
	clip-path: none; height: auto; width: auto; margin: 0; z-index: 100000;
	top: 8px; left: 8px; padding: 12px 16px; background: #fff; color: var(--tfl-ink);
}

.tfl-eyebrow {
	font-size: var(--wp--preset--font-size--eyebrow);
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--tfl-muted);
}
.tfl-eyebrow.is-style-accent,
.is-style-eyebrow-accent { color: var(--tfl-link); }

.tfl-button,
.wp-block-button.is-style-outline > .wp-block-button__link {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 48px; padding: 0 24px; border-radius: var(--tfl-radius-control);
	font: 700 16px/1.2 var(--wp--preset--font-family--body);
	text-decoration: none; cursor: pointer;
}
.tfl-button { border: 0; background: var(--tfl-link); color: #fff; }
.tfl-button:hover { background: var(--tfl-link-hover); color: #fff; }
.wp-block-button.is-style-outline > .wp-block-button__link {
	border: 2px solid var(--tfl-slate); background: transparent; color: var(--tfl-slate);
	padding: 0 22px;
}
.wp-block-button.is-style-outline > .wp-block-button__link:hover { background: var(--tfl-slate); color: #fff; }
.wp-block-button__link { min-height: 48px; display: inline-flex; align-items: center; }

.tfl-more-link a,
a.tfl-more-link { font-weight: 700; text-decoration: none; }
.tfl-more-link a:hover,
a.tfl-more-link:hover { text-decoration: underline; }

/* -------------------------------------------------------------- Header */

.tfl-header {
	position: relative;
	z-index: 50;
	background: #fff;
	border-bottom: 1px solid var(--tfl-line);
}
.tfl-header__bar { min-height: var(--wp--custom--header--height); gap: 16px 24px; }
.tfl-header .wp-block-site-logo { flex-shrink: 0; }
.tfl-header .wp-block-site-logo img { width: 104px; height: auto; }
.tfl-header__actions { flex-shrink: 0; gap: 12px; }

.tfl-main-menu { flex: 1 1 auto; display: flex; justify-content: center; }
.tfl-nav__list,
.tfl-nav__sub { list-style: none; margin: 0; padding: 0; }
.tfl-nav__list { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; }
.tfl-nav__item { position: relative; display: flex; align-items: center; }
.tfl-nav__link,
.tfl-nav__parent {
	display: inline-flex; align-items: center; gap: 4px;
	min-height: var(--tfl-tap); padding: 0 12px;
	border: 0; background: none; border-radius: var(--tfl-radius-control);
	color: var(--tfl-ink); font: 600 16px/1.2 var(--wp--preset--font-family--body);
	text-decoration: none; cursor: pointer;
}
.tfl-nav__parent--icon { padding: 0 8px; margin-left: -8px; }
.tfl-nav__link:hover,
.tfl-nav__parent:hover { color: var(--tfl-link); }
.tfl-nav__item.is-current > .tfl-nav__link,
.tfl-nav__item.is-current > .tfl-nav__parent { color: var(--tfl-link); box-shadow: inset 0 -3px 0 var(--tfl-sun); border-radius: 0; }
.tfl-nav__parent .tfl-icon { transition: transform 0.15s ease; }
.tfl-nav__parent[aria-expanded="true"] .tfl-icon { transform: rotate(180deg); }

.tfl-nav__sub {
	display: none;
	position: absolute; top: 100%; left: 0; min-width: 260px;
	padding: 8px; background: #fff;
	border: 1px solid var(--tfl-line); border-radius: var(--tfl-radius-card);
	box-shadow: 0 12px 32px rgba(31, 39, 46, 0.12);
}
.tfl-nav__sub.is-open { display: block; }
.tfl-nav__sublink {
	display: flex; align-items: center; min-height: var(--tfl-tap); padding: 6px 12px;
	border-radius: var(--tfl-radius-control);
	color: var(--tfl-ink); font-size: 16px; line-height: 1.3; text-decoration: none;
}
.tfl-nav__sublink:hover { background: var(--tfl-sand); color: var(--tfl-ink); }
.tfl-nav__sublink[aria-current="page"] { color: var(--tfl-link); font-weight: 700; }

.tfl-nav__toggle { display: none; }

/* Language toggle */
.tfl-lang { display: inline-flex; border: 1px solid var(--tfl-line); border-radius: var(--tfl-radius-control); overflow: hidden; }
.tfl-lang__link {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: var(--tfl-tap); min-height: var(--tfl-tap);
	color: var(--tfl-slate); font-weight: 700; font-size: 14px; text-decoration: none;
}
.tfl-lang__link:hover { background: var(--tfl-sand); color: var(--tfl-slate); }
.tfl-lang__link[aria-current="true"] { background: var(--tfl-slate); color: #fff; }

/* Search */
.tfl-search__toggle,
.tfl-nav__toggle {
	width: var(--tfl-tap); height: var(--tfl-tap);
	align-items: center; justify-content: center;
	border: 0; background: transparent; color: var(--tfl-slate);
	border-radius: var(--tfl-radius-control); cursor: pointer;
}
.tfl-search__toggle { display: inline-flex; }
.tfl-search__toggle:hover,
.tfl-nav__toggle:hover { background: var(--tfl-sand); }
.tfl-search__panel {
	display: none;
	position: absolute; left: 0; right: 0; top: 100%;
	padding: 20px clamp(16px, 3vw, 32px);
	background: #fff; border-bottom: 1px solid var(--tfl-line);
	box-shadow: 0 12px 24px rgba(31, 39, 46, 0.08);
}
.tfl-search__panel.is-open { display: block; }
.tfl-search__form { display: flex; gap: 10px; max-width: 760px; margin: 0 auto; }
.tfl-search__form input,
.tfl-filters input[type="search"],
.tfl-filters select {
	flex: 1; min-height: 48px; padding: 0 14px;
	border: 1px solid #A9A29A; border-radius: var(--tfl-radius-control);
	font: 400 17px/1.2 var(--wp--preset--font-family--body); color: var(--tfl-ink); background: #fff;
}
.tfl-search .tfl-search { position: static; }
.tfl-search { position: static; }

@media (max-width: 1080px) {
	.tfl-header__bar { flex-wrap: nowrap !important; justify-content: flex-start !important; }
	.tfl-main-menu { order: 3; flex: 0 0 auto; }
	.tfl-header__actions { order: 2; margin-left: auto !important; }
	.tfl-nav__toggle { display: inline-flex; }
	.tfl-nav__toggle-close { display: none; }
	.tfl-nav__toggle[aria-expanded="true"] .tfl-nav__toggle-open { display: none; }
	.tfl-nav__toggle[aria-expanded="true"] .tfl-nav__toggle-close { display: inline-flex; }
	.tfl-nav__panel {
		display: none;
		position: absolute; left: 0; right: 0; top: 100%;
		max-height: calc(100vh - var(--wp--custom--header--height));
		overflow-y: auto;
		padding: 8px clamp(16px, 3vw, 32px) 24px;
		background: #fff; border-bottom: 1px solid var(--tfl-line);
		box-shadow: 0 16px 32px rgba(31, 39, 46, 0.12);
	}
	.tfl-nav__panel.is-open { display: block; }
	.tfl-nav__list { flex-direction: column; align-items: stretch; gap: 0; }
	.tfl-nav__item { flex-wrap: wrap; border-bottom: 1px solid var(--tfl-line); }
	.tfl-nav__link,
	.tfl-nav__parent { flex: 1; min-height: 52px; padding: 0 4px; font-size: 18px; justify-content: space-between; }
	.tfl-nav__item.is-current > .tfl-nav__link,
	.tfl-nav__item.is-current > .tfl-nav__parent { box-shadow: none; }
	.tfl-nav__sub { position: static; width: 100%; min-width: 0; padding: 0 0 12px 12px; border: 0; box-shadow: none; }
}
/* Small phones: logo, search, AL | EN and the menu button share one row. */
@media (max-width: 480px) {
	.tfl-header__bar { gap: 8px !important; }
	.tfl-header .wp-block-site-logo img { width: 88px; }
	.tfl-header__actions { gap: 4px !important; }
	.tfl-search__form .tfl-button { padding: 0 16px; }
}

/* ---------------------------------------------------------------- Footer */

.tfl-footer { border-top: 1px solid var(--tfl-line); }
.tfl-footer .wp-block-site-logo img { width: 120px; }
.tfl-footer__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 40px; }
.tfl-footer-col__title,
.tfl-footer__heading {
	margin: 0 0 4px;
	font: 700 13px/1.4 var(--wp--preset--font-family--body) !important;
	letter-spacing: 0.12em; text-transform: uppercase; color: var(--tfl-muted) !important;
}
.tfl-footer-col ul { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.tfl-footer-col a,
.tfl-footer a:not(.wp-social-link a) { color: var(--tfl-ink); text-decoration: none; display: inline-block; padding: 6px 0; }
.tfl-footer-col a:hover,
.tfl-footer a:hover { color: var(--tfl-link); text-decoration: underline; }
.tfl-footer a.tfl-footer__email { color: var(--tfl-link); font-weight: 600; }
.tfl-footer address { font-style: normal; }
.tfl-footer .wp-block-social-links .wp-social-link {
	width: var(--tfl-tap); height: var(--tfl-tap); border: 1px solid var(--tfl-line);
	display: inline-flex; align-items: center; justify-content: center;
	background: transparent !important; color: var(--tfl-slate) !important;
}
.tfl-footer .wp-block-social-links .wp-social-link:hover { border-color: var(--tfl-slate); transform: none; }
.tfl-footer__bottom { border-top: 1px solid var(--tfl-line); color: var(--tfl-muted); font-size: 14px; }
.tfl-footer__bottom p { margin: 0; }

/* --------------------------------------------------------- Tags and meta */

.tfl-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.tfl-tag {
	display: inline-flex; align-items: center; gap: 8px;
	padding: 4px 10px; border-radius: 999px;
	background: var(--program-tint); color: var(--program-ink);
	font-size: 14px; font-weight: 600; line-height: 1.4; text-decoration: none;
}
a.tfl-tag:hover { color: var(--program-ink); text-decoration: underline; }
.tfl-tag__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--program); flex-shrink: 0; }
.tfl-meta__date,
.tfl-meta__type { font-size: 15px; color: var(--tfl-muted); }
.tfl-meta__type::after { content: " ·"; }
.tfl-badge {
	padding: 1px 8px; border-radius: 6px; border: 1px solid var(--tfl-slate);
	color: var(--tfl-slate); font-size: 12px; font-weight: 700; line-height: 1.6;
}

/* ----------------------------------------------------------------- Cards */

.tfl-cards .wp-block-post-template,
.wp-block-post-template.tfl-grid {
	display: grid !important;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)) !important;
	gap: 40px 32px;
}
.tfl-card { height: 100%; }
.tfl-card .wp-block-post-featured-image { margin: 0; }
.tfl-card .wp-block-post-featured-image img { aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--tfl-radius-card); }
.tfl-card .wp-block-post-title { margin: 0; font-size: 22px; line-height: 1.3; }
.tfl-card__placeholder { aspect-ratio: 3 / 2; border-radius: var(--tfl-radius-card); background: var(--tfl-sand); }

.tfl-cards .wp-block-post-template > *,
.tfl-pubs .wp-block-post-template > *,
.tfl-list .wp-block-post-template > * { margin-block: 0; }
.tfl-hero-image figcaption a { color: inherit; }
.tfl-hero-image figcaption a:hover { color: var(--tfl-link); }

/* Publication cards: cover left, text right. */
.tfl-pubs .wp-block-post-template {
	display: grid !important;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)) !important;
	gap: 24px;
}
.tfl-pub {
	display: flex; gap: 20px; height: 100%;
	padding: 20px; background: #fff; border-radius: var(--tfl-radius-card);
}
.is-style-plain .tfl-pub,
.tfl-pubs.has-white-background-color .tfl-pub { border: 1px solid var(--tfl-line); }
.tfl-pub .wp-block-post-featured-image { flex: 0 0 112px; margin: 0; }
.tfl-pub .wp-block-post-featured-image img {
	width: 112px; height: 158px; object-fit: cover; object-position: top;
	border-radius: 6px; border: 1px solid var(--tfl-line);
}
.tfl-pub__body { display: flex; flex-direction: column; gap: 8px; min-width: 0; flex: 1; }
.tfl-pub .wp-block-post-title { margin: 0; font-size: 19px; line-height: 1.3; }
.tfl-pub .tfl-pdf-link { margin-top: auto; }

.tfl-pdf-link {
	display: inline-flex; align-items: center; gap: 6px; min-height: var(--tfl-tap);
	font-weight: 700; font-size: 16px; text-decoration: none;
}
.tfl-pdf-link:hover { text-decoration: underline; }

/* Compact list (sidebars). */
.tfl-list .wp-block-post-template { display: flex; flex-direction: column; gap: 0; }
.tfl-list .wp-block-post { padding: 16px 0; border-top: 1px solid var(--tfl-line); }
.tfl-list .wp-block-post:last-child { border-bottom: 1px solid var(--tfl-line); }
.tfl-list .wp-block-post-title { margin: 4px 0 0; font-size: 18px; line-height: 1.3; }

/* ----------------------------------------------------------- Home + hero */

.tfl-hero { align-items: center; }
.tfl-hero h1 { font-size: var(--wp--preset--font-size--display); line-height: 1.03; }
.tfl-hero-image { position: relative; margin: 0; }
.tfl-hero-image__sun {
	position: absolute; right: -28px; top: -28px;
	width: clamp(120px, 16vw, 220px); aspect-ratio: 1; border-radius: 50%;
	background: var(--tfl-sun);
}
.tfl-hero-image__img {
	position: relative; display: block; width: 100%;
	aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--tfl-radius-photo);
}
.tfl-hero-image figcaption { position: relative; margin-top: 12px; font-size: 15px; color: var(--tfl-muted); }
@media (max-width: 600px) {
	.tfl-hero-image__sun { right: -12px; top: -16px; }
}

.tfl-section-head { gap: 16px; }
.tfl-section-head h2 { margin: 0; }

.tfl-program-cards {
	display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 20px;
}
.tfl-program-card {
	display: flex; flex-direction: column; gap: 14px;
	padding: 28px; background: #fff; border-radius: var(--tfl-radius-card);
	color: var(--tfl-ink); text-decoration: none;
	transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.tfl-program-card:hover { box-shadow: 0 10px 28px rgba(31, 39, 46, 0.1); color: var(--tfl-ink); }
.tfl-program-card:hover .tfl-program-card__title { text-decoration: underline; }
.tfl-program-card__icon,
.tfl-program-icon {
	width: 52px; height: 52px; border-radius: 50%;
	display: flex; align-items: center; justify-content: center;
	background: var(--program); color: #fff;
}
.tfl-program-icon { width: 64px; height: 64px; }
.tfl-program-card__title { margin: 0; font: 700 22px/1.25 var(--wp--preset--font-family--heading); color: var(--tfl-ink); }
.tfl-program-card__text { margin: 0; font-size: 17px; color: var(--tfl-muted); }
.tfl-program-card__more { margin-top: auto; font-weight: 700; font-size: 16px; color: var(--tfl-link); }

.tfl-cta { color: #fff; }
.tfl-cta h2 { color: #fff; }
.tfl-cta p { color: var(--wp--preset--color--mist); }
.tfl-cta .wp-block-button__link { background: var(--tfl-sun); color: var(--tfl-ink); }
.tfl-cta .wp-block-button__link:hover { background: #fff; color: var(--tfl-ink); }
.tfl-cta .is-style-outline > .wp-block-button__link { border-color: #fff; color: #fff; background: transparent; }
.tfl-cta .is-style-outline > .wp-block-button__link:hover { background: #fff; color: var(--tfl-slate); }

/* --------------------------------------------------------------- Article */

.tfl-breadcrumb { font-size: 15px; color: var(--tfl-muted); }
.tfl-breadcrumb a { color: var(--tfl-muted); }
.tfl-breadcrumb a:hover { color: var(--tfl-link); }

.tfl-article .wp-block-post-featured-image img { aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--tfl-radius-photo); }
.tfl-article .wp-block-post-content { font-size: 19px; line-height: 1.7; }
.tfl-article .wp-block-post-content > * { max-width: 42em; }
.tfl-article .wp-block-post-content > :is(.alignwide, .alignfull, figure, .wp-block-gallery, .wp-block-embed) { max-width: none; }

.tfl-en-notice {
	display: flex; gap: 14px; align-items: flex-start;
	padding: 18px 22px !important; border-radius: var(--tfl-radius-card) !important;
	background: var(--wp--preset--color--sun-50) !important; color: var(--tfl-ink) !important;
	font-size: 17px;
}

/* ------------------------------------------------------- Listing filters */

.tfl-filters {
	display: flex; flex-direction: column; gap: 20px;
	padding: 24px; border-radius: var(--tfl-radius-card); background: var(--tfl-sand);
}
.tfl-filters__row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 16px; }
.tfl-filters__row--end { justify-content: space-between; align-items: center; }
.tfl-field { display: flex; flex-direction: column; gap: 6px; margin: 0; flex: 1 1 200px; }
.tfl-field--grow { flex: 2 1 280px; }
.tfl-field label,
.tfl-filters legend { font-weight: 600; font-size: 15px; }
.tfl-filters__types { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; border: 0; }
.tfl-filters__types legend { margin-bottom: 8px; }
.tfl-chip { position: relative; }
.tfl-chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.tfl-chip span {
	display: inline-flex; align-items: center; min-height: var(--tfl-tap); padding: 0 16px;
	border-radius: 999px; border: 1px solid #A9A29A; background: #fff;
	font-weight: 600; font-size: 15px;
}
.tfl-chip input:checked + span { background: var(--tfl-slate); border-color: var(--tfl-slate); color: #fff; }
.tfl-chip input:focus-visible + span { outline: 2px solid var(--tfl-link); outline-offset: 2px; }
.tfl-check { display: inline-flex; align-items: center; gap: 10px; min-height: var(--tfl-tap); font-size: 16px; }
.tfl-check input { width: 20px; height: 20px; accent-color: var(--tfl-slate); }
.tfl-filters__actions { display: inline-flex; align-items: center; gap: 16px; }

/* ------------------------------------------------------------ Pagination */

.wp-block-query-pagination { gap: 8px; }
.wp-block-query-pagination a,
.wp-block-query-pagination .page-numbers {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: var(--tfl-tap); min-height: var(--tfl-tap); padding: 0 12px;
	border-radius: var(--tfl-radius-control); text-decoration: none;
}
.wp-block-query-pagination .page-numbers.current { background: var(--tfl-slate); color: #fff; }
.wp-block-query-pagination a:hover { background: var(--tfl-sand); }

/* Editor-only placeholder for server-rendered blocks with nothing to show. */
.tfl-editor-placeholder { display: inline-block; padding: 4px 8px; border: 1px dashed var(--tfl-line); font-size: 13px; color: var(--tfl-muted); }

/* Publications: show the cover as a cover, not a 16:9 crop. */
.tfl-type-parent-publikime .tfl-article .wp-block-post-featured-image img {
	aspect-ratio: auto; max-width: 320px; border-radius: 6px; border: 1px solid var(--tfl-line);
}

@media (max-width: 781px) {
	.tfl-cta .wp-block-buttons { justify-content: flex-start; }
}

/* ------------------------------------------------- Converted page content */

.tfl-people .wp-block-image img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: top; border-radius: var(--tfl-radius-card); }
.tfl-people .wp-block-image { margin-bottom: 12px; }
.tfl-person h3,
.tfl-people h3 { margin: 0; font-size: 19px; line-height: 1.3; }
.tfl-person__role { margin: 4px 0 0 !important; color: var(--tfl-muted); font-size: 15px; line-height: 1.4; }
.wp-block-details { margin-top: 8px; }
.wp-block-details summary {
	display: list-item; cursor: pointer; padding: 10px 0;
	font-weight: 600; font-size: 16px; color: var(--tfl-link);
}
.wp-block-details summary:hover { color: var(--tfl-link-hover); }
.wp-block-details[open] summary { margin-bottom: 8px; }
.tfl-people .wp-block-details > :not(summary) { font-size: 16px; }

.tfl-logos.wp-block-gallery .wp-block-image img {
	aspect-ratio: 3 / 2; object-fit: contain !important; padding: 12px;
	background: #fff; border: 1px solid var(--tfl-line); border-radius: var(--tfl-radius-card);
}

.tfl-callout { padding: 24px 28px; border-radius: var(--tfl-radius-card); background: var(--tfl-sand); }
.tfl-callout > :first-child { margin-top: 0; }
.tfl-blurb h3 a { color: var(--tfl-ink); text-decoration: none; }
.tfl-blurb h3 a:hover { color: var(--tfl-link); text-decoration: underline; }

.tfl-video-grid .wp-block-embed { margin: 0; }
.wp-block-post-content iframe[src*="google.com/maps"] { width: 100%; max-width: 100%; border: 0; border-radius: var(--tfl-radius-card); }
.wp-block-post-content .wp-block-image img,
.wp-block-post-content .wp-block-gallery img { border-radius: var(--tfl-radius-card); }
.tfl-logos.wp-block-gallery.has-nested-images figure.wp-block-image { flex-grow: 0; }

/* ------------------------------------------------------------------ Forms */

.tfl-form { max-width: 640px; }
.tfl-form__fields { display: flex; flex-wrap: wrap; gap: 0 16px; }
.tfl-form .tfl-field { flex: 1 1 100%; margin: 0 0 16px; }
.tfl-form .tfl-field--half { flex: 1 1 calc(50% - 8px); min-width: 200px; }
.tfl-form input:not([type="checkbox"]):not([type="radio"]),
.tfl-form textarea {
	width: 100%; min-height: 48px; padding: 10px 14px; box-sizing: border-box;
	border: 1px solid #A9A29A; border-radius: var(--tfl-radius-control);
	font: 400 17px/1.4 var(--wp--preset--font-family--body); color: var(--tfl-ink); background: #fff;
}
.tfl-form input:focus-visible,
.tfl-form textarea:focus-visible { outline: 2px solid var(--tfl-link); outline-offset: 1px; border-color: var(--tfl-slate); }
.tfl-form__req { color: var(--tfl-link); }
.tfl-form__privacy { font-size: 15px; color: var(--tfl-muted); }
.tfl-form__hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.tfl-form__notice { padding: 14px 18px; border-radius: var(--tfl-radius-card); font-weight: 600; }
.tfl-form__notice--ok { background: #E6F2F0; color: #0A5C53; }
.tfl-form__notice--error { background: var(--wp--preset--color--sun-50); color: #8A2A0C; }
.wp-block-list.is-style-plain { list-style: none; padding-left: 0; }

/* ------------------------------------------------- Video cards, list thumbs */

.tfl-video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--tfl-radius-card); overflow: hidden; background: var(--tfl-ink); }
.tfl-video__button { position: absolute; inset: 0; width: 100%; padding: 0; border: 0; background: none; cursor: pointer; }
.tfl-video__button img { width: 100%; height: 100%; object-fit: cover; display: block; transition: opacity 0.15s ease; }
.tfl-video__button:hover img { opacity: 0.85; }
.tfl-video__icon { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); line-height: 0; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.35)); }
.tfl-video__button:focus-visible { outline: 3px solid var(--tfl-sun); outline-offset: -3px; }
.tfl-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.tfl-list-item { gap: 14px; }
.tfl-list-item .wp-block-post-featured-image { flex: 0 0 64px; margin: 0; }
.tfl-list-item .wp-block-post-featured-image img {
	width: 64px; height: 88px; object-fit: cover; object-position: top;
	border-radius: 6px; border: 1px solid var(--tfl-line);
}
.tfl-list-item__body { flex: 1; min-width: 0; }
.tfl-list-item .wp-block-post-title { margin: 0; }
.tfl-video.is-file video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: var(--tfl-ink); }
.tfl-card .wp-block-post-featured-image img { width: 100%; }

/* Section menu (Solidar project pages) */
.tfl-section-nav { background: var(--tfl-sand); border-bottom: 1px solid var(--tfl-line); position: relative; z-index: 40; }
.tfl-section-nav__inner { max-width: 1216px; margin: 0 auto; padding: 0 clamp(16px, 3vw, 32px); }
.tfl-section-nav .tfl-nav__list { justify-content: flex-start; }
.tfl-section-nav .tfl-nav__link,
.tfl-section-nav .tfl-nav__parent { font-size: 15px; }
@media (max-width: 1080px) {
	.tfl-section-nav .tfl-nav__list { flex-direction: row; flex-wrap: wrap; }
	.tfl-section-nav .tfl-nav__item { border: 0; }
	.tfl-section-nav .tfl-nav__link,
	.tfl-section-nav .tfl-nav__parent { flex: 0 0 auto; min-height: 44px; font-size: 15px; padding: 0 10px; }
	.tfl-section-nav .tfl-nav__sub { position: absolute; width: auto; min-width: 240px; padding: 8px; background: #fff; border: 1px solid var(--tfl-line); border-radius: var(--tfl-radius-card); box-shadow: 0 12px 32px rgba(31, 39, 46, 0.12); }
}

/* Program page header picture (decorative when there is no featured image). */
.tfl-program-visual { position: relative; margin: 0; }
.tfl-program-visual__sun {
	position: absolute; right: -28px; top: -28px; z-index: 0;
	width: clamp(110px, 14vw, 190px); aspect-ratio: 1; border-radius: 50%; background: var(--tfl-sun);
}
.tfl-program-visual__img,
.tfl-program-visual__panel {
	position: relative; z-index: 1; display: block; width: 100%;
	aspect-ratio: 4 / 3; border-radius: var(--tfl-radius-photo); overflow: hidden;
}
.tfl-program-visual__img { object-fit: cover; }
.tfl-program-visual__panel {
	background:
		radial-gradient(circle at 1px 1px, color-mix(in srgb, var(--program) 22%, transparent) 1.5px, transparent 0) 0 0 / 22px 22px,
		var(--program-tint);
}
.tfl-program-visual__ring {
	position: absolute; left: -12%; bottom: -30%; width: 70%; aspect-ratio: 1; border-radius: 50%;
	border: clamp(28px, 4vw, 48px) solid color-mix(in srgb, var(--program) 18%, transparent);
}
.tfl-program-visual__dot {
	position: absolute; right: 12%; bottom: 14%; width: 14%; aspect-ratio: 1; border-radius: 50%;
	background: color-mix(in srgb, var(--program) 35%, transparent);
}
.tfl-program-visual__icon {
	position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
	width: 42%; aspect-ratio: 1; border-radius: 50%;
	display: flex; align-items: center; justify-content: center;
	background: var(--program); color: #fff;
	box-shadow: 0 18px 40px color-mix(in srgb, var(--program) 30%, transparent);
}
.tfl-program-visual__icon svg { width: 52%; height: auto; }
@media (max-width: 781px) {
	.tfl-program-visual__sun { right: -12px; top: -16px; }
}

/* ------------------------------------------------------- Landing sections
 * Used by the Solidar page (and any page that wants them):
 * tfl-landing-section, tfl-feature-grid/-card, tfl-numbers, tfl-cta-pair, tfl-partners.
 */
.wp-block-post-content > .tfl-landing-section + .tfl-landing-section,
.wp-block-post-content > .tfl-landing-section + .tfl-numbers,
.wp-block-post-content > .tfl-numbers + .tfl-landing-section,
.wp-block-post-content > .tfl-numbers + .tfl-cta-pair,
.wp-block-post-content > .tfl-cta-pair + .tfl-partners { margin-top: var(--wp--preset--spacing--60); }
.tfl-landing-section > h2 { margin: 0 0 8px; }
.tfl-landing-lead { margin: 0 0 var(--wp--preset--spacing--40); color: var(--tfl-muted); font-size: var(--wp--preset--font-size--lead); max-width: 42em; }

.tfl-icon-badge {
	display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
	width: 52px; height: 52px; border-radius: 50%;
	background: var(--wp--preset--color--sun-50); color: var(--tfl-link);
}

.tfl-feature-grid { gap: 20px !important; }
.tfl-feature-card {
	position: relative; display: flex; flex-direction: column; gap: 10px;
	padding: 28px; border: 1px solid var(--tfl-line); border-radius: var(--tfl-radius-card); background: #fff;
	transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.tfl-feature-card > * { margin: 0 !important; }
.tfl-feature-card h3 { margin-top: 6px !important; font-size: 21px; }
.tfl-feature-card h3 a { color: var(--tfl-ink); text-decoration: none; }
.tfl-feature-card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; } /* Whole card is the link. */
.tfl-feature-card p { color: var(--tfl-muted); font-size: 17px; line-height: 1.5; }
.tfl-feature-card:has(a):hover { border-color: var(--tfl-sun); box-shadow: 0 12px 28px rgba(31, 39, 46, 0.08); transform: translateY(-2px); }
.tfl-feature-card:has(a):hover h3 a { color: var(--tfl-link); }
.tfl-feature-card:has(a:focus-visible) { outline: 2px solid var(--tfl-link); outline-offset: 3px; }
.tfl-feature-card h3 a:focus-visible { outline: none; }

.tfl-numbers {
	padding: clamp(28px, 4vw, 48px); border-radius: var(--tfl-radius-photo);
	background: var(--tfl-slate); color: #fff;
}
.tfl-numbers > h2 { color: #fff; margin: 0 0 6px; }
.tfl-numbers > p { color: var(--wp--preset--color--mist); margin: 0 0 28px; }
.tfl-number-grid { gap: 16px !important; }
.tfl-number-card {
	position: relative; display: flex; flex-direction: column; gap: 6px;
	padding: 22px; border-radius: var(--tfl-radius-card); background: rgba(255, 255, 255, 0.08);
	transition: background 0.15s ease;
}
.tfl-number-card > * { margin: 0 !important; }
.tfl-number-card .tfl-icon-badge { background: rgba(255, 255, 255, 0.12); color: #fff; margin-bottom: 6px !important; }
.tfl-number-card__label { font-size: 15px; font-weight: 600; color: var(--wp--preset--color--mist); line-height: 1.3; }
.tfl-number-card__number { font: 800 clamp(40px, 5vw, 56px) / 1 var(--wp--preset--font-family--heading); }
.tfl-number-card__number a { color: #fff; text-decoration: none; }
.tfl-number-card__number a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.tfl-number-card:hover { background: rgba(255, 255, 255, 0.16); }
.tfl-number-card:hover .tfl-number-card__number a { color: var(--tfl-sun); }
.tfl-number-card:has(a:focus-visible) { outline: 2px solid var(--tfl-sun); outline-offset: 3px; }
.tfl-number-card__number a:focus-visible { outline: none; }

.tfl-cta-pair { gap: 20px !important; }
.tfl-cta-card {
	height: 100%; display: flex; flex-direction: column; gap: 12px; box-sizing: border-box;
	padding: clamp(24px, 3vw, 36px); border-radius: var(--tfl-radius-photo); background: var(--tfl-sand);
}
.tfl-cta-card > * { margin: 0 !important; }
.tfl-cta-card h3 { font-size: 28px; }
.tfl-cta-card .wp-block-buttons { margin-top: auto !important; padding-top: 8px; }
.tfl-cta-card.is-accent { background: var(--tfl-link); color: #fff; }
.tfl-cta-card.is-accent h3 { color: #fff; }
.tfl-cta-card.is-accent .wp-block-button__link { background: #fff; color: var(--tfl-link); }
.tfl-cta-card.is-accent .wp-block-button__link:hover { background: var(--tfl-ink); color: #fff; }

.tfl-partners {
	display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 24px 48px;
	padding-top: var(--wp--preset--spacing--40); border-top: 1px solid var(--tfl-line);
}
.tfl-partners__group { display: flex; flex-direction: column; gap: 12px; }
.tfl-partners__group > * { margin: 0 !important; }
.tfl-partners__logos { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; }
.tfl-partners__logos > * { margin: 0 !important; }
.tfl-partners .wp-block-image img { height: 64px; width: auto; max-width: 240px; object-fit: contain; border-radius: 0; }
.tfl-cta-pair.is-layout-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)) !important; }
.tfl-partners__group:first-child .wp-block-image img { height: 88px; max-width: 300px; }
.tfl-number-grid.is-layout-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 140px), 1fr)) !important; }
@media (max-width: 600px) {
	.tfl-number-card { padding: 16px; }
	.tfl-number-card .tfl-icon-badge { width: 40px; height: 40px; }
}

/* Homepage slider (right side of the hero). */
.tfl-hero-slider { position: relative; }
.tfl-hero-slider__track {
	position: relative; z-index: 1; aspect-ratio: 4 / 3;
	border-radius: var(--tfl-radius-photo); overflow: hidden; background: var(--tfl-sand);
}
.tfl-hero-slider__slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 0.8s ease; }
.tfl-hero-slider__slide.is-active { opacity: 1; }
.tfl-hero-slider__img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (prefers-reduced-motion: reduce) { .tfl-hero-slider__slide { transition: none; } }
.tfl-hero-slider__controls { position: relative; z-index: 2; display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 14px; }
.tfl-hero-slider__btn {
	display: inline-flex; align-items: center; justify-content: center;
	width: var(--tfl-tap); height: var(--tfl-tap); border: 1px solid var(--tfl-line); border-radius: 50%;
	background: #fff; color: var(--tfl-slate); cursor: pointer;
}
.tfl-hero-slider__btn:hover { border-color: var(--tfl-slate); }
.tfl-hero-slider__pause { margin-left: 8px; }
.tfl-hero-slider__pause .is-play,
.tfl-hero-slider.is-paused .tfl-hero-slider__pause .is-pause { display: none; }
.tfl-hero-slider.is-paused .tfl-hero-slider__pause .is-play { display: inline; }
.tfl-hero-slider__dots { display: flex; gap: 2px; }
.tfl-hero-slider__dot {
	width: 28px; height: var(--tfl-tap); padding: 0; border: 0; background: none; cursor: pointer; position: relative;
}
.tfl-hero-slider__dot::before {
	content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; transform: translate(-50%, -50%);
	border-radius: 999px; background: var(--tfl-line); transition: width 0.2s ease, background 0.2s ease;
}
.tfl-hero-slider__dot[aria-current="true"]::before { width: 22px; background: var(--tfl-link); }
.tfl-hero-slider .tfl-hero-image__sun { position: absolute; right: -28px; top: -28px; z-index: 0; width: clamp(120px, 16vw, 220px); aspect-ratio: 1; border-radius: 50%; background: var(--tfl-sun); }
@media (max-width: 600px) { .tfl-hero-slider .tfl-hero-image__sun { right: -12px; top: -16px; } }

/* Newsletter feed inside the dark "Work with us" band. */
.tfl-cta__feed .tfl-eyebrow { color: var(--wp--preset--color--mist) !important; margin: 0; }
.tfl-cta__feed .tfl-list .wp-block-post { border-color: rgba(255, 255, 255, 0.18) !important; }
.tfl-cta__feed .tfl-list .wp-block-post-title a { color: #fff; }
.tfl-cta__feed .tfl-list .wp-block-post-title a:hover { color: var(--tfl-sun); }
.tfl-cta__feed .tfl-list .tfl-eyebrow { color: var(--wp--preset--color--mist) !important; }
.tfl-cta__feed .tfl-list-item .wp-block-post-featured-image img { border-color: rgba(255, 255, 255, 0.25); }
.tfl-cta__feed .tfl-more-link a { color: var(--tfl-sun); }
.tfl-cta__feed .tfl-badge { border-color: var(--wp--preset--color--mist); color: var(--wp--preset--color--mist); }
.tfl-editor-note { color: var(--tfl-muted); }
