/**
 * JMAA News & Events - the public listing, carousel, popup and share buttons. 1.1.0
 * Uses the Brand Kit tokens where present, with plain fallbacks.
 */

.jmaa-ne { font-family: var(--jmaa-font, system-ui, sans-serif); color: var(--jmaa-ink, #121212); text-align: left; }

/* Elementor sizes a shortcode widget to its content; take the page's width. */
.elementor-widget-shortcode:has(.jmaa-ne) { width: 100%; }

/* ---------- Filter ------------------------------------------------------- */

.jmaa-ne__filter { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 22px; }
.jmaa-ne__filter-label { font-weight: 700; margin-right: 4px; }
.jmaa-ne .jmaa-ne__pill {
	font: inherit; font-size: .88rem; font-weight: 600;
	padding: 8px 14px; border-radius: 999px;
	border: 2px solid var(--jmaa-grey-light, #E4E5E7); background: #fff; color: var(--jmaa-ink, #121212);
	cursor: pointer; transition: background .15s ease, border-color .15s ease;
}
.jmaa-ne .jmaa-ne__pill:hover { border-color: var(--jmaa-gold, #FFC20E); }
.jmaa-ne .jmaa-ne__pill[aria-pressed="true"] { background: var(--jmaa-black, #000); border-color: var(--jmaa-black, #000); color: var(--jmaa-gold, #FFC20E); }
.jmaa-ne__count { opacity: .7; font-weight: 400; margin-left: 2px; }

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

.jmaa-ne__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px; }
.jmaa-ne__card {
	display: flex; flex-direction: column;
	background: #fff; border: 1px solid var(--jmaa-grey-light, #E4E5E7); border-radius: 8px; overflow: hidden;
	box-shadow: 0 1px 2px rgba(0,0,0,.04); transition: box-shadow .18s ease, transform .18s ease;
}
.jmaa-ne__card:hover { box-shadow: 0 8px 22px rgba(0,0,0,.09); transform: translateY(-2px); }
.jmaa-ne__card[hidden] { display: none; }
.jmaa-ne .jmaa-ne__media { display: block; padding: 0; border: 0; background: var(--jmaa-off-white, #F6F6F7); cursor: pointer; width: 100%; }
.jmaa-ne__media img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; height: auto; }
.jmaa-ne__body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1 1 auto; }
.jmaa-ne__tags { margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.jmaa-ne__tag {
	display: inline-block; font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
	padding: 4px 9px; border-radius: 3px; background: var(--jmaa-gold, #FFC20E); color: #111;
}
.jmaa-ne__tag--past { background: var(--jmaa-grey-light, #E4E5E7); color: var(--jmaa-grey, #6b6d70); }
.jmaa-ne__title { margin: 0; font-size: 1.18rem; line-height: 1.3; }
.jmaa-ne .jmaa-ne__title button { font: inherit; font-weight: 700; color: inherit; background: none; border: 0; padding: 0; text-align: left; cursor: pointer; }
.jmaa-ne .jmaa-ne__title button:hover { text-decoration: underline; text-decoration-color: var(--jmaa-gold, #FFC20E); text-decoration-thickness: 2px; }
.jmaa-ne__when { margin: 0; font-size: .92rem; color: var(--jmaa-grey, #6b6d70); font-weight: 600; }
.jmaa-ne__where { display: block; font-weight: 400; }
.jmaa-ne__short { margin: 0; font-size: .97rem; line-height: 1.55; }
.jmaa-ne__actions { margin-top: auto; padding-top: 10px; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.jmaa-ne .jmaa-ne__more {
	font: inherit; font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
	padding: 9px 16px; border: 0; border-radius: 3px; background: var(--jmaa-black, #000); color: #fff; cursor: pointer;
}
.jmaa-ne .jmaa-ne__more:hover { background: var(--jmaa-gold, #FFC20E); color: #111; }
.jmaa-ne__empty, .jmaa-ne__none { color: var(--jmaa-grey, #6b6d70); }
.jmaa-ne__none[hidden] { display: none; }

/* ---------- Share -------------------------------------------------------- */

.jmaa-ne__share { display: inline-flex; gap: 4px; align-items: center; }
.jmaa-ne .jmaa-ne__share-btn {
	position: relative; display: inline-flex; align-items: center; justify-content: center;
	width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--jmaa-grey-light, #E4E5E7);
	background: #fff; color: var(--jmaa-ink, #121212); cursor: pointer; padding: 0; text-decoration: none;
	transition: background .15s ease, color .15s ease;
}
.jmaa-ne .jmaa-ne__share-btn:hover { background: var(--jmaa-black, #000); color: var(--jmaa-gold, #FFC20E); border-color: var(--jmaa-black, #000); }
.jmaa-ne__copied { position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); white-space: nowrap; font-size: .72rem; font-weight: 700; background: var(--jmaa-black, #000); color: var(--jmaa-gold, #FFC20E); padding: 3px 8px; border-radius: 3px; pointer-events: none; }
.jmaa-ne__copied:empty { display: none; }
.jmaa-ne__share-row { display: flex; align-items: center; gap: 10px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--jmaa-grey-light, #E4E5E7); }
.jmaa-ne__share-label { font-weight: 700; font-size: .9rem; }

/* ---------- Popup -------------------------------------------------------- */

.jmaa-ne__dialog {
	width: min(92vw, 780px); max-height: 90vh; padding: 0; border: 0; border-radius: 10px;
	box-shadow: 0 20px 60px rgba(0,0,0,.35); color: var(--jmaa-ink, #121212); background: #fff;
	font-family: var(--jmaa-font, system-ui, sans-serif);
}
.jmaa-ne__dialog::backdrop { background: rgba(0,0,0,.6); }
.jmaa-ne__dialog-body { padding: 26px 30px 28px; overflow: auto; max-height: 90vh; }
.jmaa-ne .jmaa-ne__close {
	position: absolute; top: 10px; right: 12px; width: 40px; height: 40px; border-radius: 50%; border: 0;
	background: var(--jmaa-black, #000); color: #fff; font-size: 26px; line-height: 1; cursor: pointer; z-index: 2;
}
.jmaa-ne .jmaa-ne__close:hover { background: var(--jmaa-gold, #FFC20E); color: #111; }
.jmaa-ne__pictures { display: grid; gap: 12px; margin: 0 0 18px; }
.jmaa-ne__pictures--2 { grid-template-columns: 1fr 1fr; }
.jmaa-ne__pictures img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; }
.jmaa-ne__detail-title { margin: 8px 0 6px; font-size: 1.7rem; line-height: 1.2; }
.jmaa-ne__meta { margin: 0 0 14px; color: var(--jmaa-grey, #6b6d70); font-weight: 600; display: flex; flex-wrap: wrap; gap: 4px 18px; }
.jmaa-ne__meta-when::before, .jmaa-ne__meta-where::before { display: inline-block; width: 16px; margin-right: 6px; color: var(--jmaa-gold-dark, #D99F00); font-weight: 700; }
.jmaa-ne__meta-when::before { content: "\25F7"; }
.jmaa-ne__meta-where::before { content: "\2316"; }
.jmaa-ne__content { font-size: 1.02rem; line-height: 1.65; }
.jmaa-ne__content p { margin: 0 0 12px; }
.jmaa-ne__link { margin: 18px 0 0; }
.jmaa-ne .jmaa-ne__button {
	display: inline-block; padding: 11px 20px; border-radius: 3px; background: var(--jmaa-gold, #FFC20E); color: #111;
	font-size: .82rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; text-decoration: none;
}
.jmaa-ne .jmaa-ne__button:hover { background: var(--jmaa-black, #000); color: #fff; }
body:has(.jmaa-ne__dialog[open]) { overflow: hidden; }

@media (max-width: 600px) {
	.jmaa-ne__grid { grid-template-columns: 1fr; }
	.jmaa-ne__dialog { width: 100vw; max-height: 100vh; border-radius: 0; }
	.jmaa-ne__dialog-body { padding: 22px 18px; max-height: 100vh; }
	.jmaa-ne__pictures--2 { grid-template-columns: 1fr; }
}

/* ---------- Carousel (1.1.0) ------------------------------------------- */

.jmaa-ne__bar { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 20px; margin: 0 0 18px; }
.jmaa-ne__bar-title { margin: 0; font-size: 1.5rem; font-weight: 700; padding-bottom: 6px; border-bottom: 3px solid var(--jmaa-gold, #FFC20E); }
.jmaa-ne .jmaa-ne__bar-more { font-weight: 700; font-size: .92rem; color: var(--jmaa-ink, #121212); text-decoration: none; border-bottom: 2px solid var(--jmaa-gold, #FFC20E); }
.jmaa-ne .jmaa-ne__bar-more:hover { color: var(--jmaa-gold-dark, #D99F00); }
.jmaa-ne__viewport { position: relative; }
.jmaa-ne__track {
	display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
	padding: 6px 4px 14px; scrollbar-width: none; -webkit-overflow-scrolling: touch; outline: none;
}
.jmaa-ne__track::-webkit-scrollbar { display: none; }
.jmaa-ne__track:focus-visible { box-shadow: 0 0 0 2px var(--jmaa-gold, #FFC20E); border-radius: 8px; }
.jmaa-ne--carousel .jmaa-ne__card { flex: 0 0 min(320px, 82vw); scroll-snap-align: start; }
.jmaa-ne .jmaa-ne__arrow {
	position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
	width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
	background: var(--jmaa-black, #000); color: #fff; font-size: 30px; line-height: 1;
	box-shadow: 0 4px 12px rgba(0,0,0,.25);
}
.jmaa-ne .jmaa-ne__arrow:hover { background: var(--jmaa-gold, #FFC20E); color: #111; }
.jmaa-ne .jmaa-ne__arrow[hidden] { display: none; }
.jmaa-ne__arrow--prev { left: -18px; }
.jmaa-ne__arrow--next { right: -18px; }
@media (max-width: 600px) {
	.jmaa-ne__arrow--prev { left: 2px; }
	.jmaa-ne__arrow--next { right: 2px; }
}
