/*
 * Work Hub (hub/work.php; Nathan's mock-up, 9 Nov 2026). Builds on the Events
 * & opportunities card, filters and search (hub-events.css, loaded with it).
 */

/* Intro and section titles */
.vh-work { padding-top: 44px; }
.vh-work__intro { max-width: 60rem; font-size: 16px; line-height: 1.6; color: var(--vh-text); }
.vh-work__intro > * + * { margin-top: .9em !important; }
.vh .vh-work__h2 { font-size: clamp(2.25rem, 1.6rem + 1.8vw, 3rem); font-style: italic; text-transform: uppercase; color: #0a213f; }

/* The jobs section is also the application form's root (vis/opportunities view.js):
   undo that block's section layout here. */
.vh-work__jobs.vis-opportunities { display: block; gap: 0; color: inherit; margin-top: 52px; }
.vh-work .vh-events__tools { margin-top: 22px; }
.vh-work .vh-filters--pills button { min-height: 38px; padding: 0 16px; border: 1px solid #b3bdca; border-radius: 999px; background: #fff; color: #0a213f; font: 600 13px/1 var(--vh-body); cursor: pointer; }
.vh-work .vh-filters--pills button:hover { border-color: #0a213f; }
.vh-work .vh-filters--pills button[aria-pressed="true"] { background: var(--vh-gold); border-color: var(--vh-gold); }
.vh-work .vh-search input { border-radius: 999px; }

/* Rows */
.vh-work__list { display: grid; gap: 14px; margin-top: 24px !important; }
.vh-work__list > li { display: flex; }
.vh-work__list > li[hidden] { display: none; }

.vh-jcard { min-height: 0; box-shadow: var(--vh-shadow); border-color: #e1e5ea; }
.vh-jcard .vh-ecard__date { padding: 18px 8px; }
.vh-jcard__state { font-size: 26px; line-height: .92; color: #fff; }
.vh-jcard--ongoing .vh-jcard__state { font-size: 22px; }

.vh-jcard__body { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 32px; align-items: end; padding: 18px 56px 20px 22px; }
.vh-jcard__main { min-width: 0; }
.vh-jcard__head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.vh-jcard__head .vh-ecard__title { margin: 0 !important; }
.vh-jcard__head .vh-chip { padding: 5px 7px; font-size: 10.5px; letter-spacing: .08em; }
.vh-jcard__meta { margin-top: 4px !important; font-size: 14px; color: #56657a; }
.vh-jcard__meta strong { font-weight: 600; color: #0a213f; }
.vh-jcard__points { display: grid; gap: 3px; margin-top: 10px !important; padding-left: 1.1rem !important; list-style: disc !important; font-size: 14px; line-height: 1.45; color: #3a4a60; overflow-wrap: anywhere; }
.vh-jcard__points li::marker { color: var(--vh-gold); }

.vh-jcard__actions { flex-direction: column; align-items: flex-start; gap: 12px; margin: 0 !important; padding: 0; white-space: nowrap; }
.vh-jcard .vh-jcard__cal { gap: 7px; font-weight: 600; letter-spacing: 0; text-transform: none; font-size: 13.5px; }
.vh-jcard .vh-jcard__cal .vh-icon { display: inline-block; width: 15px; height: 15px; color: #0a213f; }
.vh-jcard .vh-go:hover { text-decoration: underline !important; text-underline-offset: 4px; }
/* On the member's calendar: a quiet tick, and the phone-calendar file beneath (hub.js data-vh-jobcal). */
.vh-jcard .vh-jcard__cal[aria-pressed="true"] { color: #1f6b3a; }
.vh-jcard .vh-jcard__cal[aria-pressed="true"] .vh-icon { color: #1f6b3a; }
.vh-jcard__ics { margin-top: -6px; padding-left: 22px; font-size: 12.5px; color: #56657a; text-decoration: underline; text-underline-offset: 3px; }
.vh-jcard__ics[hidden] { display: none; }

/* Get ready to apply */
.vh-work-guides { padding: 64px 0 84px; background: var(--vh-navy); color: #fff; }
.vh .vh-work-guides .vh-work__h2 { color: #fff; }
.vh-work-guides__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-top: 26px !important; }
.vh-work-guides__grid > li { display: flex; }
.vh-work-guides .vh-rcard { position: relative; display: flex; flex-direction: column; width: 100%; background: #fff; color: #0a213f; }
.vh-work-guides .vh-rcard__photo { margin: 0; aspect-ratio: 273 / 160; overflow: hidden; background: #dfe4ea; }
.vh-work-guides .vh-rcard__photo img { width: 100%; height: 100% !important; object-fit: cover; transition: transform .4s cubic-bezier(.2, .7, .2, 1); }
.vh-work-guides .vh-rcard:hover .vh-rcard__photo img { transform: scale(1.03); }
.vh-gcard__nophoto { display: grid; place-items: center; height: 100%; background: repeating-linear-gradient(135deg, #12305a 0 12px, #0b233f 12px 24px); color: rgb(255 255 255 / 55%); font: 700 11px/1 var(--vh-body); letter-spacing: .14em; text-transform: uppercase; }
.vh .vh-work-guides .vh-rcard__heart { position: absolute; top: 10px; right: 10px; z-index: 2; width: 32px; height: 32px; }
.vh .vh-work-guides .vh-rcard__heart svg { width: 15px; height: 15px; }
.vh-work-guides .vh-rcard__body { display: flex; flex-direction: column; align-items: flex-start; flex: 1; padding: 18px 18px 22px; }
.vh-work-guides .vh-rcard__title { font: 600 17px/1.25 var(--vh-body); color: #0a213f; letter-spacing: -.005em; }
.vh-work-guides .vh-rcard__title a { color: inherit; text-decoration: none; }
.vh-work-guides .vh-rcard__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.vh-work-guides .vh-rcard__title a:focus-visible { outline: none; }
.vh-work-guides .vh-rcard:has(.vh-rcard__title a:focus-visible) { outline: 3px solid var(--vh-gold); outline-offset: 3px; }
.vh-work-guides .vh-rcard__line { margin-top: 8px !important; font-size: 14px; line-height: 1.45; color: #56657a; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.vh-work-guides .vh-rcard__go { margin-top: auto; padding-top: 20px; font: 700 14px/1 var(--vh-body); color: #0a213f; }
.vh-work-guides .vh-rcard:hover .vh-rcard__go { text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 1000px) {
	.vh-work-guides__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.vh-jcard__body { grid-template-columns: minmax(0, 1fr); }
	.vh-jcard__actions { flex-direction: row; flex-wrap: wrap; gap: 10px 22px; padding-top: 6px; }
}
@media (max-width: 560px) {
	.vh-work { padding-top: 32px; }
	.vh-work-guides { padding: 48px 0 60px; }
	.vh-work-guides__grid { grid-template-columns: 1fr; }
	.vh-jcard__state { font-size: 21px; }
	.vh-jcard--ongoing .vh-jcard__state { font-size: 17px; }
	.vh-jcard__body { padding: 16px 44px 18px 16px; }
}
