/*
Theme Name: The New Deal
Description: Child theme of Hello Elementor for The New Deal. Holds the site's CPTs, taxonomies, shortcodes and AJAX filters. Layout and styling are handled in Elementor Theme Builder.
Version: 1.1
Template: hello-elementor
Text Domain: hello-elementor-child
*/

/* Design tokens Elementor's global settings can't hold (from the Lovable reference). */
:root {
	--nd-shadow-card: 0 18px 40px -24px rgba(14, 22, 97, .45);
	--nd-shadow-lift: 0 28px 60px -28px rgba(14, 22, 97, .55);
	--nd-gradient-hero: linear-gradient(135deg, #05093F, #0E1661 55%, #27297E);
	--nd-radius-card: 16px;
}

/* Theme-style headings can't take responsive sizes via the API, so follow the global type variables instead. */
body[class*="elementor-kit-"] h1 { font-size: var(--e-global-typography-primary-font-size); }
body[class*="elementor-kit-"] h2 { font-size: var(--e-global-typography-secondary-font-size); }
body[class*="elementor-kit-"] h3 { font-size: var(--e-global-typography-h3card-font-size); }

/* Header: frosted background, as in the reference. */
.tnd-header { -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.tnd-header .elementor-nav-menu--dropdown .elementor-item { padding-inline: 20px; }

/* Footer menu: two columns, right-aligned from tablet up. */
.tnd-footer-menu .elementor-nav-menu { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
/* :hover/:focus included, or Elementor's "a:hover { padding: 13px 20px }" makes links jump on hover. */
.tnd-footer-menu .elementor-nav-menu .elementor-item,
.tnd-footer-menu .elementor-nav-menu .elementor-item:hover,
.tnd-footer-menu .elementor-nav-menu .elementor-item:focus { padding: 0; }
@media (min-width: 768px) { .tnd-footer-menu .elementor-nav-menu { justify-items: end; } }

/* Loop grid "Load More": white text like every other red button (Elementor's widget default gives it navy). */
.elementor-widget-loop-grid .e-loop__load-more .elementor-button,
.elementor-widget-loop-grid .e-loop__load-more .elementor-button:hover,
.elementor-widget-loop-grid .e-loop__load-more .elementor-button:focus { color: #FAFCFE; fill: #FAFCFE; }

/* Hero and CTA bands: navy gradient with a soft red glow (class set on the container in Elementor). */
.tnd-hero { position: relative; overflow: hidden; background: var(--nd-gradient-hero) !important; }
.tnd-hero::before {
	content: ""; position: absolute; top: -10rem; right: -8rem; width: 28rem; height: 28rem; border-radius: 50%;
	background: radial-gradient(circle, #D72828, transparent 62%); opacity: .4; pointer-events: none;
}
.tnd-hero > .e-con-inner, .tnd-hero > .elementor-element { position: relative; z-index: 1; }
.tnd-cta { box-shadow: var(--nd-shadow-lift); }
/* Prefixed to outrank Elementor's ".elementor.elementor .e-con > .elementor-widget { max-width: 100% }". */
.elementor.elementor .elementor-element.tnd-maxw-3xl { max-width: 48rem; }
.elementor.elementor .elementor-element.tnd-maxw-2xl { max-width: 42rem; }
.elementor.elementor .elementor-element.tnd-maxw-xl { max-width: 36rem; }
/* Page banners and section intros ("Directory / Find a NewDEAL Leader / …") span the full boxed width.
   CTA bands keep their narrower measure. */
.elementor.elementor .tnd-hero .elementor-element:is(.tnd-maxw-3xl, .tnd-maxw-2xl, .tnd-maxw-xl),
.elementor.elementor .elementor-element.tnd-maxw-3xl { max-width: 100%; }
.tnd-center { margin-inline: auto; }

/* Cards (Loop Grid items): whole card is the link. */
.tnd-card, .tnd-card-outline, .tnd-chip { color: inherit; text-decoration: none; }
.tnd-card { box-shadow: var(--nd-shadow-card); transition: transform .3s ease, box-shadow .3s ease; height: 100%; }
.tnd-card:hover { transform: translateY(-4px); }
.tnd-card-lift { box-shadow: var(--nd-shadow-lift); }
.tnd-card .tnd-media { overflow: hidden; }
.tnd-card .tnd-media img { transition: transform .7s ease; }
.tnd-card:hover .tnd-media img { transform: scale(1.05); }
.tnd-card-outline { transition: border-color .2s ease; height: 100%; }
.tnd-card-outline:hover { border-color: #D72828 !important; }
.tnd-card-cta { margin-top: auto; padding-top: 8px; }
.tnd-card :is(h2, h3):hover { color: inherit; }
.tnd-card:focus-visible, .tnd-card-outline:focus-visible, .tnd-chip:focus-visible, .tnd-result:focus-visible { outline: 3px solid #F25C5C; outline-offset: 3px; }
.tnd-square img { aspect-ratio: 1 / 1; object-fit: cover; object-position: top center; width: 100%; height: auto; }
.tnd-fill, .tnd-fill .elementor-widget-container, .tnd-fill img { height: 100%; }
.tnd-fill img { object-fit: cover; width: 100%; }
.tnd-chip-img { flex-shrink: 0; width: 48px; }
.tnd-chip-img img { width: 48px; height: 48px; object-fit: cover; }
/* Main image on single templates: cap square/portrait uploads so they don't fill the screen. */
[data-elementor-type="single-post"] .tnd-media:not(.tnd-square) img { max-height: 480px; object-fit: cover; }
.tnd-chip:hover :is(p, h3) { color: #D72828; }
.tnd-result:hover h3 { color: #D72828; }
.tnd-1line .elementor-heading-title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Let grid columns shrink below their longest one-line label, or the grid overflows the page. */
.elementor-loop-container > .e-loop-item, .tnd-1line, .tnd-minw0 { min-width: 0; max-width: 100%; }

/* Leader social links: hide icons whose ACF link is empty. */
.tnd-social a.elementor-social-icon:not([href]),
.tnd-social a.elementor-social-icon[href=""] { display: none; }
.tnd-social .elementor-social-icon:hover { background-color: #D72828 !important; }

/* Long-form content from the editor. */
.tnd-prose { font-size: 17px; }
.tnd-prose :is(h2, h3, h4) { margin: 1.6em 0 .5em; }
.tnd-prose :is(p, ul, ol, figure) { margin-bottom: 1.1em; }
.tnd-prose img { border-radius: 12px; height: auto; }
.tnd-prose a:not(.tnd-button) { text-decoration: underline; text-underline-offset: 3px; }
.tnd-prose iframe { max-width: 100%; }
a.tnd-button {
	display: inline-block; padding: 14px 28px; border-radius: 999px; background: #D72828; color: #FAFCFE;
	font: 700 14px/1.43 Inter, sans-serif; text-decoration: none; transition: transform .2s ease;
}
a.tnd-button:hover { color: #FAFCFE; transform: translateY(-2px); }
.tnd-on-dark, .tnd-on-dark p { color: rgba(250, 252, 254, .8); }
.tnd-designations { margin: 0; font-size: 14px; color: #5B6375; }
.tnd-topics .elementor-widget-text-editor:has(p:empty), .tnd-topics .elementor-widget-text-editor:empty { display: none; }
.tnd-video iframe { border-radius: 16px; }

@media (prefers-reduced-motion: reduce) {
	.tnd-card, .tnd-card .tnd-media img, a.tnd-button { transition: none; }
	.tnd-card:hover, .tnd-card:hover .tnd-media img, a.tnd-button:hover { transform: none; }
}

/* Buttons lift on hover, as in the reference. */
.elementor-button { transition: transform .2s ease; }
.elementor-button:hover,
.elementor-button:focus-visible { transform: translateY(-2px); }

@media (prefers-reduced-motion: reduce) {
	.elementor-button { transition: none; }
	.elementor-button:hover,
	.elementor-button:focus-visible { transform: none; }
}

/* Landing pages */
.tnd-red { color: #D72828; }
.tnd-photo img { box-shadow: var(--nd-shadow-lift); width: 100%; height: auto; }
.tnd-link a:hover { text-decoration: underline; text-underline-offset: 4px; }
.tnd-filter { margin-bottom: 8px; }
.tnd-post-grid { display: grid; grid-template-columns: repeat(var(--tnd-cols, 4), minmax(0, 1fr)); gap: 24px; margin: 24px 0; }
@media (max-width: 1024px) { .tnd-post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767px) { .tnd-post-grid { grid-template-columns: minmax(0, 1fr); } }

/* Elements converted from Enfold content */
.tnd-toggle { border: 1px solid #D8DEE8; border-radius: 12px; padding: 0 20px; margin-bottom: 12px; background: #FFFFFF; }
.tnd-toggle summary { cursor: pointer; padding: 16px 0; font: 700 16px/1.4 Archivo, sans-serif; color: #0B1443; }
.tnd-toggle[open] summary { border-bottom: 1px solid #D8DEE8; margin-bottom: 16px; }
.tnd-buttonrow { display: flex; flex-wrap: wrap; gap: 12px; }
.tnd-person { display: grid; gap: 8px; margin-bottom: 24px; max-width: 320px; }
.tnd-person img { border-radius: 16px; }
.tnd-person h3 { margin: 4px 0 0; }
.tnd-person-role { color: #5B6375; font-size: 14px; margin: 0; }
.tnd-callout { background: #EAEFF7; border-radius: 16px; padding: 24px 28px; margin: 24px 0; }
.tnd-catalogue, .tnd-timeline, .tnd-locations { list-style: none; padding: 0; }
.tnd-catalogue > li, .tnd-timeline > li { border-left: 3px solid #D72828; padding: 4px 0 4px 20px; margin-bottom: 24px; }
.tnd-price { color: #D72828; font-weight: 700; margin-left: 8px; }
.tnd-timeline-date { font: 700 12px/1.3 Inter, sans-serif; letter-spacing: .05em; text-transform: uppercase; color: #5B6375; margin: 0; }
.tnd-locations li { margin-bottom: 8px; }
.tnd-image-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.tnd-tab-title { padding-top: 24px; border-top: 1px solid #D8DEE8; }

/* Blueprint pieces (remaining-pages rebuild) */
.tnd-measure { max-width: 760px; width: 100%; }
.tnd-frame { overflow: hidden; }
.tnd-frame iframe, .tnd-embed iframe { width: 100%; max-width: 100%; border: 0; display: block; }
.tnd-frame .pdfemb-viewer, .tnd-frame .pdfemb-pagescontainer { max-width: 100% !important; }
.tnd-video-embed { position: relative; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; margin: 16px 0; background: #05093F; }
.tnd-video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.tnd-video .elementor-wrapper { border-radius: 16px; overflow: hidden; }
.tnd-figure img { border-radius: 16px; height: auto; }
.tnd-figure .widget-image-caption { color: #5B6375; font-size: 14px; margin-top: 8px; }
.tnd-person-photo img { aspect-ratio: 1 / 1; object-fit: cover; border-radius: 12px; width: 100%; }
.tnd-archive-notice .elementor-widget-text-editor p { margin: 0; }

/* Tabs: pill-style tab list on desktop, stacked titles on phones */
.tnd-tabs .elementor-tabs-wrapper { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.tnd-tabs .elementor-tab-desktop-title { border: 1px solid #D8DEE8 !important; border-radius: 999px; padding: 10px 18px !important;
	font: 600 14px/1.3 Inter, sans-serif; background: #FFFFFF; }
.tnd-tabs .elementor-tab-desktop-title.elementor-active { background: #0E1661; color: #FAFCFE !important; border-color: #0E1661 !important; }
.tnd-tabs .elementor-tab-desktop-title::before, .tnd-tabs .elementor-tab-desktop-title::after { display: none !important; }
.tnd-tabs .elementor-tab-content { border: 0 !important; padding: 0 !important; max-width: none; }
.tnd-tabs .elementor-tab-content figure img { width: 100%; height: auto; } /* banner images span the full boxed width, no gap on the right */
.tnd-tabs .elementor-tab-content :is(p, ul, ol, figure) { margin-bottom: 1.1em; }
.tnd-tabs .elementor-tab-content img { border-radius: 12px; height: auto; }
.tnd-tabs .elementor-tab-mobile-title { border: 1px solid #D8DEE8 !important; border-radius: 12px; margin-top: 8px; font: 600 15px/1.3 Inter, sans-serif; }
.tnd-tabs .elementor-tab-mobile-title.elementor-active { background: #0E1661; color: #FAFCFE !important; }

/* Accordion */
.tnd-accordion .elementor-accordion-item { border: 1px solid #D8DEE8 !important; border-radius: 12px; margin-bottom: 12px; background: #FFFFFF; overflow: hidden; }
.tnd-accordion .elementor-tab-title { padding: 16px 20px !important; }
.tnd-accordion .elementor-tab-title .elementor-accordion-title { font: 700 16px/1.4 Archivo, sans-serif; }
.tnd-accordion .elementor-tab-content { border-top: 1px solid #D8DEE8 !important; padding: 16px 20px !important; }

/* EveryAction forms (ngp-form embeds) restyled to the site */
.ngp-form .at, .ngp-form .at * { font-family: Inter, system-ui, sans-serif !important; color: #0B1443; }
.ngp-form .at { background: transparent !important; max-width: 100% !important; padding: 0 !important; }
.ngp-form .at-inner { background: transparent !important; box-shadow: none !important; padding: 8px !important; }
.ngp-form .at-markup h1, .ngp-form .at-markup h2 { font-family: Archivo, sans-serif !important; font-weight: 900 !important;
	font-size: 28px !important; line-height: 1.15 !important; letter-spacing: -0.02em; margin: 0 0 12px !important; }
.ngp-form .at-legend { font-family: Archivo, sans-serif !important; font-weight: 800 !important; font-size: 18px !important; padding: 0 0 8px !important; border: 0 !important; }
.ngp-form .at-fieldset { border: 0 !important; padding: 0 !important; margin: 0 0 16px !important; }
.ngp-form label.at-text, .ngp-form label.at-select, .ngp-form label.at-check { font-size: 14px !important; font-weight: 600 !important; color: #5B6375 !important; }
.ngp-form input[type="text"], .ngp-form input[type="email"], .ngp-form input[type="tel"], .ngp-form input[type="number"], .ngp-form select, .ngp-form textarea {
	border: 1px solid #D8DEE8 !important; border-radius: 10px !important; padding: 12px 14px !important; font-size: 16px !important;
	background: #FFFFFF !important; box-shadow: none !important; height: auto !important; color: #0B1443 !important; }
.ngp-form input:focus, .ngp-form select:focus, .ngp-form textarea:focus { outline: 3px solid rgba(215, 40, 40, .35) !important; outline-offset: 1px; border-color: #D72828 !important; }
.ngp-form .at-submit, .ngp-form .btn-at-primary { background: #D72828 !important; color: #FAFCFE !important; border: 0 !important; border-radius: 999px !important;
	padding: 14px 28px !important; font: 700 14px/1.43 Inter, sans-serif !important; text-transform: none !important; letter-spacing: 0 !important;
	transition: transform .2s ease; width: auto !important; }
.ngp-form .at-submit:hover { transform: translateY(-2px); }
.ngp-form .at-form-submit { padding: 8px 0 0 !important; text-align: left !important; }
.ngp-form .at-error-console, .ngp-form .error small { color: #B81F1F !important; }
@media (prefers-reduced-motion: reduce) { .ngp-form .at-submit { transition: none; } .ngp-form .at-submit:hover { transform: none; } }
/* EveryAction's stylesheet loads after ours with its own !important font rules, so these selectors are stronger on purpose. */
html body .ngp-form label, html body .ngp-form legend, html body .ngp-form span, html body .ngp-form p, html body .ngp-form small,
html body .ngp-form input, html body .ngp-form select, html body .ngp-form textarea, html body .ngp-form div { font-family: Inter, system-ui, sans-serif !important; }
html body .ngp-form .at-markup h1, html body .ngp-form .at-markup h2, html body .ngp-form .at-markup h1 span, html body .ngp-form .at-legend { font-family: Archivo, sans-serif !important; }
html body .ngp-form input::placeholder { font-family: Inter, system-ui, sans-serif !important; }

/* Single – Idea side boxes: hide what has no data (no linked leaders, no issue/policy/funding terms). */
.tnd-leaders-box:not(:has(.e-loop-item)) { display: none; }
.tnd-topic:not(:has(.elementor-widget-text-editor)) { display: none; }
.tnd-topics:not(:has(.elementor-widget-text-editor)) { display: none; }
.tnd-grid-photo img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }

/* Gravity Forms (Contact, Nominate) in the site's form style */
.tnd-frame .gform_wrapper, .tnd-frame .gform_wrapper * { font-family: Inter, system-ui, sans-serif; }
.tnd-frame .gform_wrapper.gform-theme {
	--gf-ctrl-border-color: #D8DEE8; --gf-ctrl-radius: 10px; --gf-ctrl-border-color-focus: #D72828;
	--gf-ctrl-btn-bg-color-primary: #D72828; --gf-ctrl-btn-bg-color-hover-primary: #D72828; --gf-ctrl-btn-radius: 999px;
	--gf-color-primary: #D72828; --gf-ctrl-label-color-primary: #0B1443; --gf-ctrl-label-color-secondary: #5B6375; }
.tnd-frame .gform_wrapper input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]), .tnd-frame .gform_wrapper textarea, .tnd-frame .gform_wrapper select {
	border: 1px solid #D8DEE8; border-radius: 10px; padding: 10px 14px; font-size: 16px; }
.tnd-frame .gform_wrapper .gfield_label, .tnd-frame .gform_wrapper legend { font: 600 14px/1.4 Inter, sans-serif; color: #0B1443; }
.tnd-frame .gform_wrapper .gform_button, .tnd-frame .gform_wrapper input[type="submit"] {
	background: #D72828; color: #FAFCFE; border: 0; border-radius: 999px; padding: 14px 28px; font: 700 14px/1.43 Inter, sans-serif; transition: transform .2s ease; }
.tnd-frame .gform_wrapper .gform_button:hover { transform: translateY(-2px); }
.tnd-frame .gform_wrapper .gfield_required { color: #D72828; }

/* Search results page */
.tnd-search .elementor-search-form__container { box-shadow: var(--nd-shadow-lift); padding: 6px; gap: 6px; background: #FFFFFF; }
.tnd-search .elementor-search-form__input { padding-inline: 20px; font: 400 16px/1.5 Inter, sans-serif; }
.tnd-search .elementor-search-form__submit { border-radius: 999px; min-width: 112px; font: 700 14px/1.43 Inter, sans-serif; transition: background-color .2s ease; }
.tnd-search-summary { display: flex; flex-direction: column; gap: 12px; }
.tnd-search-count { margin: 0; font: 600 14px/1.4 Inter, sans-serif; color: #5B6375; }
.tnd-search-types { display: flex; flex-wrap: wrap; gap: 8px; }
.tnd-search-types a.tnd-type-chip {
	display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border: 1px solid #D8DEE8; border-radius: 999px;
	background: #FFFFFF; color: #0B1443; font: 600 14px/1.43 Inter, sans-serif; text-decoration: none; transition: color .2s ease, border-color .2s ease; }
.tnd-type-chip span { color: #5B6375; font-weight: 500; }
.tnd-search-types a.tnd-type-chip:hover { color: #D72828; border-color: #D72828; }
.tnd-search-types a.tnd-type-chip.is-active { background: #0E1661; border-color: #0E1661; color: #FAFCFE; }
.tnd-type-chip.is-active span { color: rgba(250, 252, 254, .7); }
.tnd-type-chip:focus-visible { outline: 3px solid #F25C5C; outline-offset: 3px; }
.tnd-result-img img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; object-position: top center; border-radius: 12px; display: block; }
.tnd-result-meta { margin: 0; font: 700 11.5px/1.4 Inter, sans-serif; letter-spacing: .18em; text-transform: uppercase; color: #D72828; }
.tnd-result .elementor-widget-text-editor p { margin: 0; }
.e-loop-nothing-found-message { padding: 48px 24px; border: 1px dashed #D8DEE8; border-radius: 16px; text-align: center; color: #5B6375; }

/* Numbered pagination (Loop Grid): pills matching the filter chips. */
.elementor-widget-loop-grid .elementor-pagination {
	display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; margin-top: 32px;
	font: 600 14px/1.43 Inter, sans-serif; letter-spacing: 0; }
.elementor-widget-loop-grid .elementor-pagination .page-numbers {
	display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 14px; margin: 0;
	border: 1px solid #D8DEE8; border-radius: 999px; background: #FFFFFF; color: #0B1443; font: inherit; text-decoration: none;
	transition: color .2s ease, border-color .2s ease; }
.elementor-widget-loop-grid .elementor-pagination a.page-numbers:hover { color: #D72828; border-color: #D72828; }
.elementor-widget-loop-grid .elementor-pagination .page-numbers.current { background: #0E1661; border-color: #0E1661; color: #FAFCFE; }
.elementor-widget-loop-grid .elementor-pagination .page-numbers.dots { border-color: transparent; background: none; min-width: 24px; padding: 0; }
.elementor-widget-loop-grid .elementor-pagination span.page-numbers.prev,
.elementor-widget-loop-grid .elementor-pagination span.page-numbers.next { color: #5B6375; opacity: .5; }
.elementor-widget-loop-grid .elementor-pagination .page-numbers:focus-visible { outline: 3px solid #F25C5C; outline-offset: 3px; }
@media (max-width: 767px) {
	.elementor-widget-loop-grid .elementor-pagination { gap: 6px; }
	.elementor-widget-loop-grid .elementor-pagination .page-numbers { min-width: 36px; height: 36px; padding: 0 10px; }
}

/* Ideas, Leaders and News lists: one loader for the whole list (js/list-loader.js). */
.tnd-list-loader { position: absolute; inset: 0; z-index: 2; display: flex; justify-content: center; align-items: center; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .15s ease, visibility .15s ease; }
.tnd-list-loader svg { width: 40px; height: 40px; fill: #0E1661; animation: tnd-list-spin 1s linear infinite; }
.elementor-widget-loop-grid.tnd-list-filtering.e-loading-overlay { animation: none; }
/* Filter: cards hidden, loader only. The short delay stops the spinner flashing when the answer is already there. */
.tnd-list-filtering > .elementor-widget-container { visibility: hidden; }
.tnd-list-filtering > .tnd-list-loader { opacity: 1; visibility: visible; transition-delay: .12s; }
/* Load More: existing cards stay; the loader takes the button's exact spot (30px gap + 48px button), so nothing moves. */
.tnd-list-more .e-loop__load-more { display: none; }
.tnd-list-more > .tnd-list-loader { position: static; height: 48px; margin-top: 30px; align-items: center; background: none; opacity: 1; visibility: visible; transition: none; }
.tnd-list-more > .tnd-list-loader svg { position: static; width: 32px; height: 32px; margin: 0; }
.e-loop-item.tnd-list-pending { display: none; }
.e-loop-item.tnd-list-in { animation: tnd-list-in .35s ease both; animation-delay: calc(var(--tnd-i, 0) * 40ms); }
@keyframes tnd-list-spin { to { transform: rotate(360deg); } }
@keyframes tnd-list-in { from { opacity: 0; transform: translateY(12px); } }
@media (prefers-reduced-motion: reduce) {
	.tnd-list-loader svg { animation-duration: 3s; }
	.e-loop-item.tnd-list-in { animation: none; }
}

/* Events Archive (page 21610, /events/events-archive/): past events as a card grid matching the /events cards.
   Each event is an Elementor container: title heading (linked) + image + "place | date" heading + text. */
body .elementor.elementor-21610 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; max-width: 1240px; margin: 0 auto; padding: 80px 20px 0; }
body .elementor-21610 > .e-con:not(:last-child) { position: relative; display: flex; flex-direction: column; margin: 0; padding: 0; overflow: hidden; background: #FFFFFF; border: 1px solid #D8DEE8; border-radius: 16px; box-shadow: var(--nd-shadow-card); background-color: #FFFFFF !important; background-image: none !important; transition: transform .3s ease; }
body .elementor-21610 > .e-con:not(:last-child):hover { transform: translateY(-4px); }
body .elementor-21610 > .e-con:not(:last-child) > .e-con-inner { display: flex; flex-direction: column; flex: 1; gap: 0; width: 100%; max-width: none; margin: 0; padding: 0 0 20px; }
body .elementor-21610 > .e-con:not(:last-child) > .e-con-inner > .elementor-widget { width: 100%; max-width: 100%; margin: 0; padding: 0 20px; }
/* Image first, full-bleed. */
body .elementor-21610 > .e-con:not(:last-child) > .e-con-inner > .elementor-widget-image { order: -1; padding: 0; }
body .elementor-21610 > .e-con:not(:last-child) .elementor-widget-image img { display: block; width: 100%; max-width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 0; }
/* "Place | date" line becomes the red eyebrow, above the title. */
body .elementor-21610 > .e-con:not(:last-child) .elementor-widget-image + .elementor-widget-heading { order: 0; padding-top: 20px; }
body .elementor-21610 > .e-con:not(:last-child) .elementor-widget-image + .elementor-widget-heading .elementor-heading-title { margin: 0 0 8px; color: #D72828; font-family: "Inter", sans-serif; font-size: 12px; font-weight: 700; line-height: 1.4; letter-spacing: .06em; text-transform: uppercase; }
/* Title */
body .elementor-21610 > .e-con:not(:last-child) > .e-con-inner > .elementor-widget-heading:first-child { order: 1; }
body .elementor-21610 > .e-con:not(:last-child) > .e-con-inner > .elementor-widget-heading:first-child .elementor-heading-title { margin: 0 0 8px; color: #0E1661; font-family: "Inter", sans-serif; font-size: 17px; font-weight: 700; line-height: 1.35; letter-spacing: 0; }
body .elementor-21610 > .e-con:not(:last-child) .elementor-heading-title a { color: inherit; text-decoration: none; }
body .elementor-21610 > .e-con:not(:last-child) .elementor-heading-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; } /* whole card is the link */
body .elementor-21610 > .e-con:not(:last-child):hover > .e-con-inner > .elementor-widget-heading:first-child .elementor-heading-title { color: #D72828; }
/* Any other heading (e.g. "Presented by …") stays a quiet subtitle. */
body .elementor-21610 > .e-con:not(:last-child) .elementor-widget-heading:not(:first-child) + .elementor-widget-heading { order: 2; }
body .elementor-21610 > .e-con:not(:last-child) .elementor-widget-heading:not(:first-child) + .elementor-widget-heading .elementor-heading-title { margin: 0 0 8px; color: #5B6375; font-family: "Inter", sans-serif; font-size: 13px; font-weight: 600; line-height: 1.4; letter-spacing: 0; text-transform: none; }
/* Description: three lines, like the /events cards. */
body .elementor-21610 > .e-con:not(:last-child) .elementor-widget-text-editor { order: 3; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; color: #5B6375; font-size: 15px; line-height: 1.45; }
body .elementor-21610 > .e-con:not(:last-child) .elementor-widget-text-editor p { margin: 0; }
body .elementor-21610 > .e-con:not(:last-child) .elementor-widget-text-editor a { position: relative; z-index: 2; color: inherit; text-decoration: none; }
body .elementor-21610 > .e-con:not(:last-child) > .e-con-inner::after { content: "Event details \2192"; order: 4; margin-top: auto; padding: 16px 20px 0; color: #0E1661; font-family: "Inter", sans-serif; font-size: 14px; font-weight: 700; }
/* The Roadmap CTA spans the row, same width as on /events. */
body .elementor-21610 > .e-con:last-child { grid-column: 1 / -1; margin: 56px 0 80px; --padding-left: 0px; --padding-right: 0px; padding-left: 0; padding-right: 0; }
body .elementor-21610 > .e-con:last-child .elementor-button { text-decoration: none; }
@media (max-width: 1023px) {
	body .elementor.elementor-21610 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
	body .elementor.elementor-21610 { grid-template-columns: minmax(0, 1fr); padding-top: 64px; }
}
@media (prefers-reduced-motion: reduce) {
	body .elementor-21610 > .e-con:not(:last-child), body .elementor-21610 > .e-con:not(:last-child):hover { transition: none; transform: none; }
}

/* Elementor cards and loop grids inside long-form content (.tnd-prose) keep their own design:
   no prose link underline, no prose heading/paragraph margins (the card's gap does the spacing). */
.tnd-prose :is(.e-loop-item, .tnd-card) :is(h2, h3, h4, p, ul, ol, figure) { margin: 0; }
.tnd-prose .e-loop-item a.tnd-card,
.tnd-prose :is(.e-loop-item, .tnd-card) a:not(.tnd-button) { text-decoration: none; }
/* Elementor headings and buttons inside .tnd-prose (CTA bands, Load More) keep Elementor's own spacing and no underline. */
.tnd-prose .elementor-widget-heading .elementor-heading-title { margin: 0; }
.tnd-prose .tnd-cta .elementor-widget-text-editor p { margin-bottom: .9em; }
.tnd-prose a.elementor-button,
.tnd-prose .elementor-button { text-decoration: none; }
/* The Roadmap / CTA band section gets the same 80px (64px on phones) breathing room as on the main pages. */
.tnd-prose .e-con.e-parent:has(> .e-con-inner > .tnd-cta, > .tnd-cta) { --padding-top: 80px; --padding-bottom: 80px; }
@media (max-width: 767px) {
	.tnd-prose .e-con.e-parent:has(> .e-con-inner > .tnd-cta, > .tnd-cta) { --padding-top: 64px; --padding-bottom: 64px; }
}

/* Leader cards from [teams-page] inside Elementor Tabs widgets (e.g. 2026 Elections HQ).
   Mirrors the event-page card styles in functions.php (tnd_event_tabs_css). */
.elementor-widget-tabs .tnd-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 24px 0; }
.elementor-widget-tabs .tnd-grid .tnd-card { display: flex; flex-direction: column; background: #FFFFFF; border: 1px solid #D8DEE8; border-radius: 16px; overflow: hidden; }
.elementor-widget-tabs .tnd-card__image { display: block; aspect-ratio: 1; overflow: hidden; }
.elementor-widget-tabs .tnd-card__image img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; }
.elementor-widget-tabs .tnd-card:hover .tnd-card__image img { transform: scale(1.05); }
.elementor-widget-tabs .tnd-card__body { display: flex; flex-direction: column; flex: 1; padding: 16px 20px 20px; }
.elementor-widget-tabs .tnd-card__body > div { display: flex; flex-direction: column; flex: 1; }
.elementor-widget-tabs .leader-details { display: block; margin-bottom: 6px; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: #5B6375; }
.elementor-widget-tabs .tnd-card a { border-bottom: 0; }
.elementor-widget-tabs .tnd-card__title { margin: 0 0 12px; font-size: 17px; line-height: 1.3; }
.elementor-widget-tabs .tnd-card__title a { color: #0E1661; text-decoration: none; }
.elementor-widget-tabs .tnd-card__link { margin-top: auto; font-size: 13px; font-weight: 700; letter-spacing: .04em; color: #0E1661; text-decoration: none; }
.elementor-widget-tabs .tnd-card__link:hover, .elementor-widget-tabs .tnd-card__title a:hover { color: #D72828; }
@media (max-width: 767px) {
	.elementor-widget-tabs .tnd-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; }
	.elementor-widget-tabs .tnd-card__body { padding: 12px 14px 16px; }
}

/* Nested Tabs widget with class "tnd-tabs tnd-ntabs" (e.g. 2026 Elections HQ): same pill look as the classic .tnd-tabs above */
.tnd-ntabs .e-n-tabs-heading { flex-wrap: wrap; gap: 8px; margin-bottom: 24px; justify-content: flex-start; }
.tnd-ntabs .e-n-tab-title { flex-grow: 0 !important; border: 1px solid #D8DEE8 !important; border-radius: 999px !important; padding: 10px 18px !important;
	font: 600 14px/1.3 Inter, sans-serif !important; background: #FFFFFF !important; color: var(--e-global-color-muted, #5B6378) !important; }
.tnd-ntabs .e-n-tab-title:hover { border-color: #0E1661 !important; color: #0E1661 !important; }
.tnd-ntabs .e-n-tab-title[aria-selected="true"] { background: #0E1661 !important; color: #FAFCFE !important; border-color: #0E1661 !important; }
.tnd-ntabs .e-n-tabs-content > .e-con { border: 0 !important; padding: 0 !important; }
.tnd-ntabs .e-n-tabs-content img { border-radius: 12px; height: auto; }
.tnd-ntabs .e-n-tabs-content h2.elementor-heading-title { font-size: clamp(28px, 4vw, 40px); }
.tnd-ntabs .e-n-tabs-content h3.elementor-heading-title { margin-top: 16px; font-size: 22px; line-height: 1.3; }

/* Loop card (template 38180): Members show their designation (e.g. a non-Leader event speaker) styled like the Leader job line */
.tnd-loop-designations .tnd-designations { margin: 0; font-size: 14px; line-height: inherit; color: #5B6375; }


/* WordPress [gallery] shortcode: core gallery styles aren't loaded, so lay galleries out as a grid using the shortcode's columns value */
.gallery { display: grid; grid-template-columns: repeat(var(--tnd-gallery-cols, 3), minmax(0, 1fr)); gap: 16px; margin: 16px 0; }
.gallery-columns-1 { --tnd-gallery-cols: 1; }
.gallery-columns-2 { --tnd-gallery-cols: 2; }
.gallery-columns-3 { --tnd-gallery-cols: 3; }
.gallery-columns-4 { --tnd-gallery-cols: 4; }
.gallery-columns-5 { --tnd-gallery-cols: 5; }
.gallery-columns-6 { --tnd-gallery-cols: 6; }
.gallery-columns-7 { --tnd-gallery-cols: 7; }
.gallery-columns-8 { --tnd-gallery-cols: 8; }
.gallery-columns-9 { --tnd-gallery-cols: 9; }
.gallery .gallery-item { margin: 0; }
.gallery .gallery-icon img { display: block; max-width: 100%; height: auto; }
.gallery .gallery-caption { margin-top: 6px; font-size: 14px; }
@media (max-width: 767px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }


/* Image + text pairs (e.g. podcast episodes in archive tabs): image left, text right, stacked on phones */
.tnd-media-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: center; margin: 0 0 32px; }
.tnd-media-row figure, .tnd-media-row p { margin: 0; }
@media (max-width: 767px) { .tnd-media-row { grid-template-columns: minmax(0, 1fr); gap: 16px; } }


/* Two downloadable documents side by side (button + cover thumbnail), stacked on phones */
.tnd-doc-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; margin: 24px 0; text-align: center; }
.tnd-doc-pair .tnd-buttonrow { justify-content: center; margin: 0 0 16px; }
.tnd-doc-pair figure { margin: 0; }
.tnd-tabs .elementor-tab-content .tnd-doc-pair figure img, .tnd-doc-pair figure img { width: 100%; max-width: 420px; height: auto; }
@media (max-width: 767px) { .tnd-doc-pair { grid-template-columns: minmax(0, 1fr); } }
