/**
 * JMAA Wall of Distinction - public styles.
 * Brand colours come from the JMAA Brand Kit variables, with fallbacks.
 * The honoree cards are kept small: a name tile, not a poster.
 */

.jmaa-wall {
	font-family: var(--jmaa-font, inherit);
	color: var(--jmaa-ink, #121212);
	text-align: left;
}
.elementor-widget-shortcode:has(.jmaa-wall) { width: 100%; }
.jmaa-wall ul { list-style: none; margin: 0; padding: 0; }
.jmaa-wall__sr {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.jmaa-wall__heading {
	margin: 0 0 22px;
	font-size: clamp(1.3rem, 1.05rem + 1vw, 1.75rem);
	font-weight: 700;
	line-height: 1.25;
}
.jmaa-wall__heading::after {
	content: ''; display: block; width: 64px; height: 4px; margin-top: 12px;
	border-radius: 2px; background: var(--jmaa-gold, #FFC20E);
}

/* ---------- Introduction: photo and words, half each ---------- */
.jmaa-wall__intro { margin: 0 0 30px; }
.jmaa-wall__intro.is-split { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: center; }
.jmaa-wall .jmaa-wall__intro-photo { margin: 0; }
.jmaa-wall__intro-photo a { display: block; overflow: hidden; border-radius: 6px; border: 3px solid var(--jmaa-gold, #FFC20E); background: #000; }
.jmaa-wall__intro-photo a:focus-visible { outline: 2px solid var(--jmaa-gold-dark, #D99F00); outline-offset: 2px; }
.jmaa-wall .jmaa-wall__intro-img { display: block; width: 100%; height: auto; }
.jmaa-wall__intro-text { padding: 0 15px; font-size: 1rem; line-height: 1.65; }
.jmaa-wall__intro-text p { margin: 0 0 14px; }
.jmaa-wall__intro-text p:last-child { margin-bottom: 0; }

/* ---------- Nominations (only while switched on) ---------- */
.jmaa-wall__nominate {
	display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px;
	margin: 0 0 26px; padding: 18px 22px;
	background: var(--jmaa-off-white, #F6F6F7);
	border: 1px solid var(--jmaa-grey-light, #E4E5E7);
	border-left: 5px solid var(--jmaa-gold, #FFC20E);
	border-radius: 8px;
}
.jmaa-wall__nominate-text { flex: 1 1 340px; }
.jmaa-wall .jmaa-wall__nominate-title { margin: 0 0 4px; font-size: 1.1rem; font-weight: 700; line-height: 1.3; color: var(--jmaa-ink, #121212); }
.jmaa-wall__nominate p { margin: 0; font-size: .95rem; line-height: 1.5; }
.jmaa-wall .jmaa-wall__nominate-btn {
	display: inline-flex; align-items: center; min-height: 40px; padding: 0 18px;
	border-radius: 999px; background: var(--jmaa-black, #000); color: #fff;
	font-size: .9rem; font-weight: 700; text-decoration: none; white-space: nowrap;
}
.jmaa-wall .jmaa-wall__nominate-btn:hover { background: var(--jmaa-gold, #FFC20E); color: #111; }
.jmaa-wall .jmaa-wall__nominate-btn:focus-visible { outline: 2px solid var(--jmaa-gold-dark, #D99F00); outline-offset: 2px; }

/* ---------- Year jump links ---------- */
.jmaa-wall__nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 0 0 26px; }
.jmaa-wall__nav-label { font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #5f6165; }
.jmaa-wall__nav ul { display: flex; flex-wrap: wrap; gap: 6px; }
.jmaa-wall .jmaa-wall__nav a {
	display: inline-block; padding: 4px 11px; border-radius: 999px;
	border: 1px solid var(--jmaa-grey-light, #E4E5E7); background: #fff;
	color: var(--jmaa-ink, #121212); font-size: .85rem; font-weight: 700; line-height: 1.4; text-decoration: none;
}
.jmaa-wall .jmaa-wall__nav a:hover { border-color: var(--jmaa-gold, #FFC20E); background: var(--jmaa-gold, #FFC20E); color: #111; }
.jmaa-wall .jmaa-wall__nav a:focus-visible { outline: 2px solid var(--jmaa-gold-dark, #D99F00); outline-offset: 2px; }

/* ---------- A year ---------- */
.jmaa-wall__year { margin: 0 0 34px; scroll-margin-top: 110px; }
.jmaa-wall__band {
	display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 14px;
	margin: 0 0 14px; padding: 10px 16px;
	background: var(--jmaa-black, #000); color: #fff;
	border-radius: 6px; border-bottom: 3px solid var(--jmaa-gold, #FFC20E);
}
.jmaa-wall .jmaa-wall__year-title { margin: 0; color: #fff; font-size: 1rem; font-weight: 700; line-height: 1.3; }
.jmaa-wall__year-label { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: #d4d5d7; vertical-align: 2px; }
.jmaa-wall__year-num { font-family: var(--jmaa-font-head, inherit); font-size: 1.35rem; color: var(--jmaa-gold, #FFC20E); letter-spacing: .02em; }
.jmaa-wall .jmaa-wall__note, .jmaa-wall .jmaa-wall__count { margin: 0; font-size: .82rem; color: #d4d5d7; line-height: 1.4; }
.jmaa-wall .jmaa-wall__count { margin-left: auto; }

/* ---------- The honorees, with the year's photos on the right ---------- */
.jmaa-wall__body.has-gallery { display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 14px; align-items: start; }
.jmaa-wall__gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.jmaa-wall .jmaa-wall__shot {
	position: relative; display: block; overflow: hidden; aspect-ratio: 1;
	border-radius: 5px; border: 2px solid var(--jmaa-gold, #FFC20E); background: #000;
}
/* One photo runs the full width (not cropped square); with three, the first runs across the top. */
.jmaa-wall__gallery.is-1 .jmaa-wall__shot { grid-column: 1 / -1; aspect-ratio: 4 / 3; }
.jmaa-wall__gallery.is-2 .jmaa-wall__shot { aspect-ratio: 1 / 2; }
.jmaa-wall__gallery.is-3 .jmaa-wall__shot:first-child { grid-column: 1 / -1; aspect-ratio: 2 / 1; }
.jmaa-wall .jmaa-wall__shot:focus-visible { outline: 2px solid var(--jmaa-gold-dark, #D99F00); outline-offset: 2px; }
.jmaa-wall .jmaa-wall__shot-img {
	display: block; width: 100%; height: 100%; object-fit: cover;
	transition: transform .3s ease, opacity .3s ease;
}
.jmaa-wall__shot:hover .jmaa-wall__shot-img { transform: scale(1.04); opacity: .9; }
.jmaa-wall__shot-more {
	position: absolute; inset: 0; display: grid; place-items: center;
	background: rgba(0, 0, 0, .6); color: var(--jmaa-gold, #FFC20E);
	font-size: 1.3rem; font-weight: 700;
}
.jmaa-wall .jmaa-wall__shot-caption { grid-column: 1 / -1; margin: 2px 0 0; font-size: .74rem; line-height: 1.4; color: #5f6165; }

/* ---------- Honoree cards (small) ---------- */
.jmaa-wall__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 6px; }
.jmaa-wall__card {
	position: relative; display: flex; align-items: center;
	background: #fff; border: 1px solid var(--jmaa-grey-light, #E4E5E7); border-left: 3px solid var(--jmaa-gold, #FFC20E);
	border-radius: 4px; transition: border-color .15s ease, box-shadow .15s ease;
}
.jmaa-wall__card.has-more:hover { border-color: var(--jmaa-gold, #FFC20E); box-shadow: 0 2px 8px rgba(0, 0, 0, .08); }
.jmaa-wall .jmaa-wall__open {
	flex: 1 1 auto; min-width: 0;
	display: flex; align-items: center; gap: 8px; min-height: 0; margin: 0; padding: 6px 4px 6px 8px;
	border: 0; border-radius: 3px; background: none; color: inherit; font: inherit; text-align: left; text-transform: none; letter-spacing: normal; line-height: 1.25;
	box-shadow: none;
}
.jmaa-wall button.jmaa-wall__open { cursor: pointer; }
.jmaa-wall button.jmaa-wall__open:hover, .jmaa-wall button.jmaa-wall__open:focus { background: none; color: inherit; }
.jmaa-wall button.jmaa-wall__open:focus-visible { outline: 2px solid var(--jmaa-gold-dark, #D99F00); outline-offset: 1px; }

.jmaa-wall__face {
	flex: 0 0 auto; display: grid; place-items: center; width: 30px; height: 30px;
	border-radius: 50%; overflow: hidden; background: var(--jmaa-black, #000);
}
.jmaa-wall__initials { font-family: var(--jmaa-font-head, inherit); color: var(--jmaa-gold, #FFC20E); font-size: .66rem; font-weight: 700; letter-spacing: .04em; line-height: 1; }
.jmaa-wall .jmaa-wall__face-img { display: block; width: 100%; height: 100%; object-fit: cover; }

.jmaa-wall__text { display: flex; flex-direction: column; min-width: 0; flex: 1 1 auto; }
.jmaa-wall__name { font-size: .88rem; font-weight: 700; color: var(--jmaa-ink, #121212); }
.jmaa-wall__dec { margin-left: 1px; color: var(--jmaa-gold-dark, #D99F00); font-weight: 700; }
.jmaa-wall__class { font-size: .82rem; color: #6f7174; /* the lightest grey that stays readable (4.5:1) */ cursor: help; }
.jmaa-wall__known { font-size: .76rem; color: #5f6165; overflow-wrap: anywhere; }
.jmaa-wall__more {
	align-self: flex-start; margin-top: 2px; font-size: .7rem; font-weight: 700; color: var(--jmaa-ink, #121212);
	border-bottom: 2px solid var(--jmaa-gold, #FFC20E); line-height: 1.25;
}

/* ---------- Thumbs up (as News & Events) ---------- */
.jmaa-wall .jmaa-wall__like {
	flex: 0 0 auto; margin: 0 7px 0 0;
	display: inline-flex; align-items: center; gap: 4px;
	height: 24px; padding: 0 8px 0 7px; border-radius: 999px;
	border: 1px solid var(--jmaa-grey-light, #E4E5E7); background: #fff; color: var(--jmaa-ink, #121212);
	font: inherit; font-size: .78rem; font-weight: 700; line-height: 1; text-transform: none; letter-spacing: normal; cursor: pointer;
	box-shadow: none; transition: background .15s ease, border-color .15s ease, transform .15s ease;
}
.jmaa-wall .jmaa-wall__like:hover { border-color: var(--jmaa-gold, #FFC20E); background: #fff; color: var(--jmaa-ink, #121212); }
.jmaa-wall .jmaa-wall__like:focus-visible { outline: 2px solid var(--jmaa-gold-dark, #D99F00); outline-offset: 2px; }
.jmaa-wall .jmaa-wall__like[aria-pressed="true"] { background: var(--jmaa-gold, #FFC20E); border-color: var(--jmaa-gold, #FFC20E); color: #111; }
.jmaa-wall .jmaa-wall__like[aria-pressed="true"] svg path { fill: rgba(0, 0, 0, .12); }
.jmaa-wall .jmaa-wall__like:active { transform: scale(.96); }
.jmaa-wall .jmaa-wall__like[data-wall-busy] { cursor: progress; }
.jmaa-wall__like svg { flex: 0 0 auto; margin-top: -2px; }
.jmaa-wall__like-count { min-width: 1ch; text-align: left; }

.jmaa-wall__legend { margin: -14px 0 0; font-size: .8rem; color: #5f6165; }
.jmaa-wall__legend span { color: var(--jmaa-gold-dark, #D99F00); font-weight: 700; }

/* ---------- Pop-up ---------- */
.jmaa-wall__dialog {
	width: min(92vw, 560px); max-height: 90vh; max-height: 90dvh; padding: 0; border: 0; border-radius: 10px;
	border-top: 5px solid var(--jmaa-gold, #FFC20E);
	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-wall__dialog::backdrop { background: rgba(0, 0, 0, .6); }
.jmaa-wall__dialog[open] { display: flex; flex-direction: column; overflow: hidden; }
.jmaa-wall__dialog-body { flex: 1 1 auto; min-height: 0; padding: 26px 28px 26px; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.jmaa-wall .jmaa-wall__close {
	position: absolute; top: 10px; right: 12px; z-index: 2; display: grid; place-items: center;
	width: 38px; height: 38px; padding: 0; border-radius: 50%; border: 0;
	background: var(--jmaa-off-white, #F6F6F7); color: var(--jmaa-ink, #121212); cursor: pointer; box-shadow: none;
}
.jmaa-wall .jmaa-wall__close:hover { background: var(--jmaa-gold, #FFC20E); color: #111; }
.jmaa-wall .jmaa-wall__close:focus-visible { outline: 2px solid var(--jmaa-gold-dark, #D99F00); outline-offset: 2px; }
body:has(.jmaa-wall__dialog[open]) { overflow: hidden; }

.jmaa-wall__detail { display: flex; align-items: flex-start; gap: 20px; }
.jmaa-wall__detail .jmaa-wall__face { width: 84px; height: 84px; margin: 0; border: 3px solid var(--jmaa-gold, #FFC20E); }
.jmaa-wall__detail.has-photo .jmaa-wall__face { width: 140px; height: 140px; border-radius: 8px; }
.jmaa-wall__detail .jmaa-wall__initials { font-size: 1.6rem; }
.jmaa-wall__detail-text { flex: 1 1 auto; min-width: 0; padding-right: 30px; }
.jmaa-wall .jmaa-wall__eyebrow { margin: 0 0 4px; font-size: .68rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #5f6165; }
.jmaa-wall .jmaa-wall__detail-name { margin: 0; font-size: 1.4rem; font-weight: 700; line-height: 1.2; color: var(--jmaa-ink, #121212); }
.jmaa-wall .jmaa-wall__meta { margin: 6px 0 0; font-size: .84rem; color: #5f6165; }
.jmaa-wall .jmaa-wall__detail-known { margin: 10px 0 0; font-weight: 700; font-size: .95rem; }
.jmaa-wall .jmaa-wall__about { margin: 10px 0 0; font-size: .95rem; line-height: 1.6; }
.jmaa-wall__detail-like { margin-top: 16px; }
.jmaa-wall__detail-like .jmaa-wall__like { margin: 0; height: 32px; padding: 0 12px 0 10px; font-size: .88rem; }

@media (max-width: 900px) {
	.jmaa-wall__intro.is-split { gap: 18px; }
	.jmaa-wall__intro-text { font-size: .95rem; }
}

@media (max-width: 600px) {
	.jmaa-wall__grid { grid-template-columns: 1fr; gap: 5px; }
	.jmaa-wall__intro.is-split { grid-template-columns: 1fr; gap: 16px; }
	.jmaa-wall .jmaa-wall__count { margin-left: 0; }
	/* On a phone the photos sit above the names, the same 2 x 2 at full width. */
	.jmaa-wall__body.has-gallery { grid-template-columns: 1fr; gap: 8px; }
	.jmaa-wall__body.has-gallery .jmaa-wall__gallery { order: -1; }
	.jmaa-wall__gallery.is-1 .jmaa-wall__shot { aspect-ratio: 3 / 2; }
	.jmaa-wall__dialog {
		width: 100vw; max-width: 100vw; margin: 0; border-radius: 0;
		height: 100vh; height: 100dvh; max-height: 100vh; max-height: 100dvh;
	}
	.jmaa-wall__dialog-body { padding: 60px 18px calc(28px + env(safe-area-inset-bottom, 0px)); }
	.jmaa-wall__detail { flex-direction: column; gap: 14px; }
	.jmaa-wall__detail-text { padding-right: 0; }
	.jmaa-wall__detail.has-photo .jmaa-wall__face { width: 100%; height: auto; aspect-ratio: 1; max-width: 280px; }
}
@media (prefers-reduced-motion: reduce) {
	.jmaa-wall .jmaa-wall__like, .jmaa-wall .jmaa-wall__shot-img, .jmaa-wall__card { transition: none; }
	.jmaa-wall .jmaa-wall__like:active { transform: none; }
	.jmaa-wall__shot:hover .jmaa-wall__shot-img { transform: none; }
}

@media print {
	.jmaa-wall__nav, .jmaa-wall__like, .jmaa-wall__more, .jmaa-wall__dialog { display: none !important; }
	.jmaa-wall__band { background: none; color: #000; border: 1px solid #000; }
	.jmaa-wall__year-num, .jmaa-wall .jmaa-wall__year-title, .jmaa-wall__year-label, .jmaa-wall .jmaa-wall__note, .jmaa-wall .jmaa-wall__count { color: #000; }
	.jmaa-wall__face { background: none; border: 1px solid #000; }
	.jmaa-wall__initials { color: #000; }
}
