/*
 * Events & opportunities (hub/events.php). Grace: redesign-current-athlete.png.
 */

.vh-hero--short { min-height: 333px; padding: 120px 0 37px; }
.vh-hero--short .vh-hero__lead { max-width: 40rem; }

.vh-events { padding: 39px 0 72px; background: #fff; color: #0a213f; }
.vh-events__tools { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.vh-events .vh-filters button { min-height: 44px; padding: 0 14px; border-color: #b3bdca; font-size: 14px; color: #0a213f; }
.vh-events .vh-filters button:hover { border-color: #0a213f; }
.vh-events .vh-filters button[aria-pressed="true"] { background: var(--vh-gold); border-color: var(--vh-gold); }
.vh-events .vh-filters span { font-weight: 400; margin-left: 2px; }
.vh-events .vh-search input { border-color: #9da9bb; }
.vh-events .vh-search .vh-icon { color: #0a213f; }
.vh-events .vh-head { margin: 40px 0 20px; align-items: baseline; }
.vh-events .vh-h2 { font-weight: 400; font-size: 26px; color: #0a213f; }
.vh-events .vh-note { font-size: 13.5px; color: #56657a; }

.vh-events__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 21px; }
.vh-events__grid > li { display: flex; }
.vh-events__grid > li[hidden] { display: none; }
.vh-events__none { margin: 8px 0 0; color: #56657a; }

/* Card */
.vh-ecard { position: relative; display: grid; grid-template-columns: 104px minmax(0, 1fr); width: 100%; min-height: 201px; border: 1px solid #d7dadf; background: #fff; }
.vh-ecard__date { display: grid; align-content: center; justify-items: center; gap: 4px; padding: 16px 8px; background: #041b3f; color: #fff; text-align: center; }
.vh-ecard--funding .vh-ecard__date { background: #2f6fb5; }
.vh-ecard--program .vh-ecard__date { background: var(--wp--preset--color--navy-800); }
.vh-ecard__dow { font: 700 12px/1 var(--vh-body); letter-spacing: .08em; text-transform: uppercase; color: var(--vh-gold); }
.vh-ecard--funding .vh-ecard__dow { color: #fff; }
.vh-ecard__day { font-size: 48px; line-height: .9; color: #fff; }
.vh-ecard__month { font: 700 12px/1 var(--vh-body); letter-spacing: .08em; text-transform: uppercase; color: #fff; }
.vh-ecard__date .vh-icon { color: #fff; margin: 4px 0; }
.vh-ecard.is-past .vh-ecard__date { background: #5b6676; }
.vh-ecard.is-past .vh-ecard__dow { color: #fff; }

.vh-ecard__body { display: flex; flex-direction: column; align-items: flex-start; padding: 18px 56px 22px 20px; }
.vh-ecard__chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-height: 21px; }
.vh-ecard__chips .vh-chip { padding: 5px 7px; font-size: 10.5px; letter-spacing: .08em; }
.vh-ecard__chips .vh-chip--green { background: #dcf1e0; color: #14532d; }
.vh-ecard__chips .vh-chip--blue { background: #2f6fb5; }
.vh-ecard__who { margin-left: 2px; font-size: 13px; color: #57667b; }
.vh .vh-ecard__heart { position: absolute; top: 18px; right: 18px; z-index: 2; width: 28px; height: 28px; background: none; box-shadow: none; color: #0a213f; }
.vh .vh-ecard__heart svg { width: 20px; height: 20px; }
.vh-ecard__title { margin-top: 10px !important; font: 600 19px/1.3 var(--vh-body); color: #0a213f; letter-spacing: -.005em; }
.vh-ecard__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; margin-top: 8px !important; font-size: 14px; color: #0a213f; }
.vh-ecard__meta > span { display: inline-flex; align-items: center; gap: 6px; }
.vh-ecard__meta .vh-icon { color: #0a213f; }
.vh-ecard__soon { font-weight: 700; }
.vh-ecard__soon.is-next { color: #b45309; }
.vh-ecard__text { margin-top: 8px !important; font-size: 14px; line-height: 1.45; color: #56657a; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.vh-ecard__fund { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-self: stretch; margin-top: 10px !important; padding: 12px 14px 14px; background: #f3f6fa; }
.vh-ecard__fund dt { font: 700 11px/1 var(--vh-body); letter-spacing: .1em; text-transform: uppercase; color: #4a5b72; }
.vh-ecard__fund dd { margin-top: 7px !important; font: 600 15px/1.2 var(--vh-body); color: #0a213f; }
.vh-ecard__fund dd.vh-ecard__amount { font-size: 26px; font-weight: 500; line-height: 1.1; }
.vh-ecard__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; margin-top: auto !important; padding-top: 18px; }
.vh-ecard .vh-go { padding: 0; border: 0; background: none; cursor: pointer; font-size: 12.5px; color: #0a213f; }
.vh-ecard .vh-go--plain .vh-icon { display: none; }
.vh-ecard__cancel { padding: 0; border: 0; background: none; cursor: pointer; font: 400 13px/1 var(--vh-body); color: #56657a; text-decoration: underline; text-underline-offset: 3px; }
.vh-ecard__cancel:hover { color: #0a213f; }
.vh-ecard [aria-busy="true"] { opacity: .5; pointer-events: none; }

.vh-events__past { margin-top: 44px; }
.vh-events__past > summary { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; list-style: none; font: 600 15px/1 var(--vh-body); color: #0a213f; }
.vh-events__past > summary::-webkit-details-marker { display: none; }
.vh-events__past > summary::before { content: "+"; display: grid; place-items: center; width: 22px; height: 22px; border: 1px solid #b3bdca; font-weight: 400; }
.vh-events__past[open] > summary::before { content: "–"; }
.vh-events__past .vh-events__grid { margin-top: 20px; }
.vh-events__past .vh-ecard { opacity: .85; }

.vh-events__work { margin-top: 32px !important; }
.vh-events__work a { display: inline-block; padding-bottom: 9px; border-bottom: 1px solid var(--vh-gold); font: 700 14px/1 var(--vh-body); color: #0a213f; text-decoration: none; }
.vh-events__work a span { margin-left: 4px; color: var(--vh-gold); }
.vh-events__work a:hover { border-bottom-width: 2px; }

@media (max-width: 900px) {
	.vh-events__grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
	.vh-hero--short { min-height: 280px; padding-top: 104px; }
	.vh-events__tools .vh-search { width: 100%; }
	.vh-events .vh-filters button { padding: 0 10px; min-height: 40px; font-size: 13px; }
	.vh-ecard { grid-template-columns: 76px minmax(0, 1fr); }
	.vh-ecard__day { font-size: 38px; }
	.vh-ecard__body { padding: 16px 44px 18px 16px; }
	.vh-ecard__fund { grid-template-columns: 1fr; gap: 10px; }
}

/* ---------------------------------------------------------------------------
 * Events & opportunities, updated layout (Grace, Miro Review Notes, 10 Nov 2026).
 * Scoped to .vh-events--list so the Work Hub, which shares the rules above,
 * keeps its date-block rows.
 * ------------------------------------------------------------------------- */
.vh-hero--ops .vh-hero__inner { text-align: center; align-items: center; }
.vh-hero--ops .vh-hero__lead { max-width: 38rem; margin-inline: auto; }
.vh-op-eyebrow { font: 700 12px/1 var(--vh-body); letter-spacing: .14em; text-transform: uppercase; color: var(--vh-gold); }

.vh-events--list { padding: 44px 0 80px; background: #f3f5f8; }
.vh-op-h2 { margin: 0 0 18px !important; font: 600 24px/1.2 var(--vh-body) !important; color: #0a213f; }
.vh-op-tools { flex-wrap: nowrap; align-items: flex-end; gap: 16px 24px; }
.vh-op-tools > .vh-filters { flex: 0 1 auto; min-width: 0; }
.vh-op-tools__end { flex-shrink: 0; margin-left: auto; }
.vh-events--list .vh-filters--pills button { min-height: 44px; padding: 0 16px; border: 1.5px solid #0a213f; border-radius: 999px; background: #fff; font: 600 15px/1 var(--vh-body); color: #0a213f; }
.vh-events--list .vh-filters--pills button:hover { background: #e9edf3; }
.vh-events--list .vh-filters--pills button[aria-pressed="true"] { background: var(--vh-gold); border-color: var(--vh-gold); color: #0a213f; }
.vh-events--list .vh-filters--pills span { font-weight: 500; }
/* The Category dropdown on the light page: outlined navy like the pills (hub.css draws it for navy pages). */
.vh-events--list .vh-filters--pick .vh-filters__pick { display: inline-flex; flex: 0 1 240px; min-width: 0; } /* every screen, not only phones (live's hub.css) */
.vh-events--list .vh-filters--pick .vh-filters__pick select { width: 100%; text-overflow: ellipsis; white-space: nowrap; overflow: hidden; }
.vh-events--list .vh-filters--pick { flex-wrap: nowrap; align-items: center; }
.vh-events--list .vh-filters__pick select { min-height: 44px; border: 1.5px solid #0a213f; background: #fff; color: #0a213f; font: 600 15px/1 var(--vh-body); }
.vh-events--list .vh-filters__pick select:hover { background-color: #e9edf3; }
.vh-events--list .vh-filters__pick .vh-icon { color: #0a213f; }
.vh-events--list .vh-filters__pick.is-active select { background: var(--vh-gold); border-color: var(--vh-gold); }
.vh-op-tools__end { display: flex; gap: 14px; align-items: flex-end; }
.vh-op-field { display: grid; gap: 6px; }
.vh-op-field__label { font: 600 13px/1 var(--vh-body); color: #0a213f; }
.vh-events--list .vh-search { display: block; width: 236px; }
.vh-events--list .vh-search input { height: 48px; border: 1px solid #c4ccd7; border-radius: 8px; background: #fff; font-size: 15px; color: #0a213f; }
.vh-events--list .vh-search input::placeholder { color: #6b788a; }
.vh-op-sort { height: 48px; padding: 0 36px 0 14px; border: 1px solid #c4ccd7; border-radius: 8px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%230a213f' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 14px center no-repeat; appearance: none; -webkit-appearance: none; font: 400 15px/1 var(--vh-body); color: #0a213f; cursor: pointer; }
.vh-op-sort:focus-visible, .vh-events--list .vh-search input:focus-visible { outline: 3px solid var(--vh-gold); outline-offset: 2px; }

.vh-op-list { display: grid; gap: 18px; margin: 28px 0 0 !important; padding: 0 !important; list-style: none !important; }
.vh-op-list > li[hidden] { display: none; }
.vh-op { position: relative; display: grid; grid-template-columns: 64px minmax(0, 1fr) 280px; gap: 0 24px; padding: 28px 28px 28px 30px; border: 1px solid #e1e5ea; border-radius: 14px; background: #fff; box-shadow: 0 1px 2px rgb(11 35 63 / 4%); }
.vh-op__icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 12px; background: #e3ebf5; color: #0a213f; }
/* The organisation's logo (Featured image): whole, on white, in the same tile. */
.vh-op .vh-op__icon--logo { padding: 8px; border: 1px solid #e1e5ea; background: #fff; overflow: hidden; }
.vh-op__icon--logo img { display: block; width: 100%; height: 100%; object-fit: contain; }
.vh-op.is-past .vh-op__icon--logo img { filter: grayscale(1); opacity: .7; }
.vh-op--event .vh-op__icon { background: #fbeedc; }
.vh-op--funding .vh-op__icon { background: #dcf1e0; color: #14532d; }
.vh-op.is-past .vh-op__icon { background: #eceff3; color: #56657a; }
.vh-op__main { min-width: 0; padding-right: 8px; }
.vh-op__chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.vh-op__chips .vh-chip { padding: 6px 12px; font-size: 11px; letter-spacing: .08em; }
.vh-op__kind { background: #e3ebf5; color: #0a213f; }
.vh-op__soon { background: #fbe3bf; color: #7a5905; }
.vh-op__chips .vh-chip--green { background: #dcf1e0; color: #14532d; }
.vh-op__title { margin: 10px 0 0 !important; font: 600 20px/1.3 var(--vh-body) !important; letter-spacing: -.005em; color: #0a213f; }
.vh-op__who { margin: 2px 0 0 !important; font-size: 15px; color: #0a213f; }
.vh-op__text { margin: 12px 0 0 !important; font-size: 15px; line-height: 1.5; color: #3a4a60; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.vh-op__side { display: flex; flex-direction: column; gap: 10px; padding: 4px 36px 0 28px; border-left: 1px solid #e1e5ea; }
.vh-op__line { display: flex; gap: 10px; margin: 0 !important; font: 600 14.5px/1.4 var(--vh-body); color: #0a213f; }
.vh-op__line .vh-icon { flex-shrink: 0; width: 16px; height: 16px; margin-top: 2px; color: #0a213f; }
.vh-op__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin: 10px 0 0 !important; }
.vh-op .vh-go { padding: 0; border: 0; background: none; cursor: pointer; font: 700 14px/1 var(--vh-body); letter-spacing: 0; text-transform: none; color: #0a213f; }
.vh-op .vh-go:hover { text-decoration: underline !important; text-underline-offset: 4px; }
.vh-op .vh-go--plain { font-weight: 500; color: #3a4a60; }
.vh-op .vh-go--plain .vh-icon { display: none; }
.vh-op__cancel { padding: 0; border: 0; background: none; cursor: pointer; font: 400 13px/1 var(--vh-body); color: #56657a; text-decoration: underline; text-underline-offset: 3px; }
.vh .vh-op__heart { position: absolute; top: 22px; right: 22px; z-index: 2; width: 30px; height: 30px; background: none; box-shadow: none; color: #0a213f; }
.vh .vh-op__heart svg { width: 22px; height: 22px; }
.vh-op [aria-busy="true"] { opacity: .5; pointer-events: none; }
.vh-op.is-past { opacity: .8; }
.vh-events--list .vh-events__none { margin-top: 24px; }

.vh-op-work { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; margin: 28px 0 0 !important; padding: 24px 28px 24px 30px; border: 1px solid #e1e5ea; border-radius: 14px; background: #fff; font-size: 16px; color: #0a213f; }
.vh-op-work a { display: inline-flex; align-items: center; gap: 6px; font: 700 15px/1 var(--vh-body); color: #0a213f; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--vh-gold); text-decoration-thickness: 2px; }
.vh-op-work a .vh-icon { width: 16px; height: 16px; }
.vh-events--list .vh-events__past { margin-top: 40px; }
.vh-events--list .vh-events__past .vh-op-list { margin-top: 20px !important; }

@media (max-width: 900px) {
	.vh-op { grid-template-columns: 52px minmax(0, 1fr); gap: 0 18px; padding: 22px 22px 22px 22px; }
	.vh-op__icon { width: 52px; height: 52px; }
	.vh-op .vh-op__icon--logo { padding: 6px; }
	.vh-op__side { grid-column: 1 / -1; margin-top: 18px; padding: 16px 0 0; border-left: 0; border-top: 1px solid #e1e5ea; }
	.vh-op-tools { flex-wrap: wrap; }
	.vh-op-tools__end { width: 100%; flex-wrap: wrap; }
	.vh-events--list .vh-search { width: 100%; }
	.vh-op-field { flex: 1 1 200px; }
}
@media (max-width: 560px) {
	.vh-events--list { padding: 32px 0 56px; }
	.vh-events--list .vh-filters--pills button { min-height: 40px; padding: 0 14px; font-size: 14px; }
	.vh-op { padding: 18px; }
	.vh-op__main { padding-right: 28px; }
	.vh .vh-op__heart { top: 14px; right: 14px; }
}
