/* The volunteer hub (next): app/Volunteers/Views/public/. On top of About Us (next)'s tokens (about-next.css: Lora +
   Source Sans 3, cream, the TACA red), after the design boards (volunteer hub mockup v2). Phone first; buttons 44 px. */
.vlx { --vlx-card: #fff; --vlx-line: #e4dbd0; --vlx-tag: #f0e7dc; --vlx-tag-ink: #5a4a3c; --vlx-muted: #5f554d; }
.vlx .vlx-muted { color: var(--vlx-muted); }
.vlx h1, .vlx h2, .vlx h3 { font-family: var(--abx-head); color: var(--abx-ink); }
.vlx h1 { font-size: clamp(1.8125rem, 4.5vw, 2.9375rem); line-height: 1.1; font-weight: 700; margin: 0 0 1rem; }
.vlx h2 { font-size: clamp(1.375rem, 3.15vw, 1.6875rem); line-height: 1.2; font-weight: 700; margin: 0; }
.vlx h3 { font-size: 1.25rem; line-height: 1.25; font-weight: 700; margin: 0; }
.vlx-sec { padding: 3.5rem 0; }
.vlx-sec__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: flex-start; gap: .25rem 1rem; margin-bottom: 1.25rem; }

.vlx-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 1.375rem; border-radius: 6px; font-weight: 600; font-size: 1rem; text-decoration: none; border: 1px solid transparent; cursor: pointer; font-family: inherit; line-height: 1.2; }
.vlx .vlx-btn--red { background: var(--abx-red); color: #fff; border-color: var(--abx-red); }
.vlx .vlx-btn--red:hover, .vlx .vlx-btn--red:focus-visible { background: #a50d26; color: #fff; }
.vlx .vlx-btn--ghost { background: transparent; color: var(--abx-ink); border-color: var(--abx-ink); }
.vlx .vlx-btn--ghost:hover, .vlx .vlx-btn--ghost:focus-visible { background: var(--abx-ink); color: #fff; }
.vlx .vlx-btn:focus-visible, .vlx a:focus-visible, .vlx input:focus-visible { outline: 3px solid var(--abx-red); outline-offset: 2px; }
.vlx .vlx-btn[disabled] { opacity: .55; cursor: not-allowed; }
.vlx-actions { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }

.vlx-card { background: var(--vlx-card); border: 1px solid var(--vlx-line); border-radius: 10px; padding: 1.25rem 1.375rem; }
.vlx-tag, .vlx-spots, .vlx-full, .vlx-mine { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .8125rem; font-weight: 700; }
.vlx-tag { background: var(--vlx-tag); color: var(--vlx-tag-ink); font-weight: 600; }
.vlx-spots { background: #fdeaed; color: #8f0b21; }
.vlx-full { background: #e8e2da; color: #4a423b; }
.vlx-mine { background: #e3efe6; color: #1f5a33; }

/* Hub */
.vlx-hero { display: grid; gap: 2rem; padding: 2rem 0 1rem; }
.vlx-hero p { font-size: 1.1875rem; margin: 0 0 1.25rem; }
.vlx-hero__pics { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.vlx-hero__pics span { display: flex; align-items: center; justify-content: center; min-height: 120px; border-radius: 10px; background: #e9dfd3; color: var(--vlx-muted); font-size: .875rem; text-align: center; padding: .5rem; }
.vlx-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.vlx-grid--wide { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.vlx-card strong { display: block; font-size: 1rem; margin-bottom: .25rem; }
.vlx-opp { display: flex; flex-direction: column; gap: .625rem; }
.vlx-opp__meta { display: flex; flex-wrap: wrap; gap: .5rem; }
.vlx-opp .vlx-btn { align-self: flex-start; margin-top: auto; }
.vlx-steps { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); counter-reset: vlx; margin: 1.25rem 0; padding: 0; list-style: none; }
.vlx-steps li { display: flex; flex-direction: column; gap: .25rem; }
.vlx-steps li::before { counter-increment: vlx; content: counter(vlx); display: inline-flex; align-items: center; justify-content: center; width: 2.25rem; height: 2.25rem; border-radius: 50%; background: var(--abx-ink); color: #fff; font-family: var(--abx-head); font-weight: 700; margin-bottom: .25rem; }
.vlx-mine-list { margin: 0; padding-left: 1.125rem; }

/* Event roles */
.vlx-event { display: grid; gap: 1.5rem; padding: 1.5rem 0; }
.vlx-bar { height: 8px; border-radius: 999px; background: #eee6dc; overflow: hidden; max-width: 480px; }
.vlx-bar span { display: block; height: 100%; background: var(--abx-ink); }
.vlx-lead { display: flex; flex-direction: column; gap: .75rem; align-self: start; }
.vlx-lead ul { margin: 0; padding-left: 1.125rem; font-size: .9375rem; }
.vlx-role { display: flex; flex-wrap: wrap; gap: 1rem 1.25rem; align-items: center; scroll-margin-top: 6rem; }
.vlx-role__text { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: .375rem; }
.vlx-role__title { display: flex; flex-wrap: wrap; gap: .5rem .75rem; align-items: center; }
.vlx-role form { margin: 0; }
.vlx-emergency { flex-basis: 100%; display: grid; gap: .75rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); border-top: 1px solid var(--vlx-line); padding-top: 1rem; }

/* Forms */
.vlx-form { display: flex; flex-direction: column; gap: 1.25rem; max-width: 760px; }
.vlx-form h2 { font-size: 1.25rem; }
.vlx-form label, .vlx-form legend { font-weight: 600; font-size: .9375rem; display: block; margin-bottom: .375rem; padding: 0; }
.vlx-form input[type=text], .vlx-form input[type=email], .vlx-form input[type=tel] { width: 100%; min-height: 44px; padding: .625rem .75rem; border: 1px solid #857a6e; border-radius: 6px; font: inherit; background: #fff; color: var(--abx-ink); }
.vlx-two { display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 520px) { .vlx-two { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.vlx-form fieldset { border: 0; padding: 0; margin: 0; }
.vlx-chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.vlx .vlx-chip { display: inline-flex; align-items: center; gap: .5rem; padding: .5rem .875rem; border: 1px solid #857a6e; border-radius: 999px; font-size: .9375rem; font-weight: 400; background: #fff; min-height: 44px; cursor: pointer; margin: 0; }
.vlx-chip input, .vlx-chk input { width: 20px; height: 20px; margin: 0; flex: none; accent-color: var(--abx-red); }
.vlx-chip:has(input:checked) { border-color: var(--abx-ink); background: #f3ece4; }
.vlx .vlx-chk { display: flex; align-items: flex-start; gap: .625rem; font-size: .9375rem; font-weight: 400; min-height: 44px; margin: 0; }
.vlx-chk input { margin-top: 2px; }
.vlx .vlx-preview-exit { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; max-width: 100%; padding: 0 .25rem; text-align: center; white-space: normal; vertical-align: middle; }
.vlx .vlx-waiver-link { display: inline-block; min-width: 44px; min-height: 44px; max-width: 100%; padding: .6rem .25rem; margin-block: -.6rem; white-space: normal; vertical-align: baseline; }
.vlx .vlx-waiver-link .bi { margin-inline-start: .25rem; }
.vlx-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.vlx-form input[aria-invalid="true"] { border: 2px solid var(--abx-red); } /* the field named in the error list */
.vlx-form input[type=checkbox][aria-invalid="true"]:not(:focus-visible) { outline: 2px solid var(--abx-red); outline-offset: 1px; } /* focused, the usual 3 px focus ring shows */
.vlx-errors { border-left: 4px solid var(--abx-red); background: #fdeaed; padding: .75rem 1rem; border-radius: 6px; }
.vlx-errors ul { margin: 0; padding-left: 1.125rem; }
.vlx-ok { border-left: 4px solid #1f5a33; background: #e3efe6; padding: .75rem 1rem; border-radius: 6px; }
.vlx-draft { border: 2px dashed #f0d77a; background: #fffaf0; padding: 1rem 1.25rem; border-radius: 8px; }

@media (min-width: 900px) {
  .vlx-hero { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); align-items: center; padding-top: 3rem; }
  .vlx-hero__pics span { min-height: 160px; }
  .vlx-event { grid-template-columns: minmax(0, 1fr) 340px; }
}

/* A message after an action on a role, shown in that role's card (the page jumps there). */
.vlx-role .vlx-errors, .vlx-role .vlx-ok { flex-basis: 100%; }
.vlx .abx-crumbs .abx-lang-wrap { margin: 0; } /* level with the breadcrumb */

/* Page titles (event, apply) one step below the hub's hero; the form page centred like the board. */
.vlx-event h1, .vlx-page h1 { font-size: clamp(1.8125rem, 3.6vw, 2.25rem); }
.vlx-page { max-width: 760px; margin-inline: auto; }
.vlx .vlx-mine-card { margin-top: 1.5rem; }
.vlx .vlx-mine-card h2 { font-size: 1.25rem; }
.vlx-role:has(.vlx-mine) { border-color: #1f5a33; }
.vlx-event { align-items: start; }
@media (max-width: 599px) { .vlx-hero__pics { display: none; } } /* placeholders until real photos: not a screenful on a phone */
.vlx-hero__pics img { display: block; width: 100%; height: 160px; object-fit: cover; border-radius: 10px; }
@media (min-width: 900px) { .vlx-hero__pics img { height: 200px; } .vlx-hero--solo { grid-template-columns: minmax(0, 1fr); max-width: 820px; } }
.vlx .vlx-hint { margin: -1.125rem 0 1rem 1.875rem; } /* under the adult checkbox's text (its row is 44px tall), in line with it (20px box + .625rem gap) */
