/* =========================================================================
   Volunteer site (volunteer.roubenmalianmemorial.org)
   Loaded after site.css; uses its tokens and components. Everything here is
   prefixed v- and scoped to .page-volunteer pages.
   ========================================================================= */

.page-volunteer .v-sr {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.page-volunteer .hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.js .page-volunteer [data-js-hide] { display: none; }

/* ---------- Heroes ---------- */
.v-hero { padding-bottom: clamp(40px, 5vw, 72px); }
.v-hero .crumbs { margin-bottom: 22px; }
.v-title { font-size: clamp(2.6rem, 6vw, 5.6rem); max-width: 18ch; }
.page-hero .v-title { max-width: 18ch; }
.v-lede { max-width: 46ch; margin-top: 26px; color: var(--muted); }
.page-hero--ink .v-lede { color: var(--muted-light); }
.v-hero--home { padding-bottom: clamp(56px, 7vw, 104px); }

.v-search { display: flex; gap: 12px; max-width: 640px; margin-top: 36px; }
.v-search input {
  flex: 1; min-width: 0; padding: 14px 20px; border-radius: 999px; border: 1px solid var(--line-light);
  background: rgba(245, 240, 231, .08); color: var(--ivory); font: inherit; font-size: 17px;
}
.v-search input::placeholder { color: var(--muted-light); }
.v-search input:focus { outline: 2px solid var(--copper-light); outline-offset: 2px; }

.v-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 0; margin-top: 44px; max-width: 760px; border-top: 1px solid var(--line-light); }
.v-stats > div { padding: 18px 20px 0 0; }
.v-stats dt { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--copper-light); }
.v-stats dd { margin: 6px 0 0; font-family: var(--serif); font-size: clamp(2.2rem, 4vw, 3.4rem); line-height: 1; }
.v-stats--light { border-top-color: var(--line-strong); margin: 0 0 32px; max-width: none; }
.v-stats--light dt, .v-stats--light dt a { color: var(--copper-deep); }

/* ---------- Opportunity cards ---------- */
.v-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; margin-bottom: 32px; flex-wrap: wrap; }
.v-roles { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.v-roles--list { grid-template-columns: minmax(0, 1fr); gap: 0; border-top: 1px solid var(--line-strong); }
.v-role { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 26px 28px; border-radius: 20px; background: var(--ivory); border: 1px solid var(--line); }
.v-roles--list .v-role { border-radius: 0; background: transparent; border: 0; border-bottom: 1px solid var(--line); padding: 24px 0; }
.v-role:hover { border-color: var(--line-strong); }
.v-role-meta { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--copper-deep); }
.v-role-title { font-family: var(--serif); font-size: clamp(1.5rem, 2.2vw, 2rem); font-weight: 400; line-height: 1.08; }
.v-role-title a { text-decoration: none; }
.v-role-title a::after { content: ""; position: absolute; inset: 0; }
.v-role-title a:hover { text-decoration: underline; text-decoration-color: var(--copper); }
.v-role-summary { color: var(--muted); font-size: 15.5px; line-height: 1.6; max-width: 70ch; }
.v-chips { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.v-chips li { font-size: 13px; padding: 4px 12px; border-radius: 999px; border: 1px solid var(--line-strong); }
.v-chips .v-chip--closed { background: var(--ink); color: var(--ivory); border-color: var(--ink); }

.v-programs { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 28px 36px; margin-top: 36px; }
.v-programs li { padding-top: 20px; border-top: 1px solid var(--line-strong); display: flex; flex-direction: column; gap: 10px; }
.v-programs p { color: var(--muted); font-size: 15.5px; line-height: 1.6; }
.v-program-links { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: auto; }

.v-steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px; margin-top: 32px; counter-reset: step; }
.v-steps li { counter-increment: step; padding-top: 18px; border-top: 1px solid var(--line-strong); }
.v-steps:not(.v-steps--long) li::before { content: counter(step, decimal-leading-zero); font-family: var(--serif); font-style: italic; color: var(--copper-deep); font-size: 20px; }
.v-steps h3 { font-family: var(--serif); font-weight: 400; font-size: 1.6rem; line-height: 1.1; margin: 6px 0 8px; }
.v-steps p { color: var(--muted); font-size: 15.5px; line-height: 1.6; }
.v-steps--long { grid-template-columns: minmax(0, 1fr); gap: 22px; margin: 0 0 40px; }

.v-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 40px; align-items: center; }

/* ---------- Search ---------- */
.v-search-layout { display: grid; grid-template-columns: minmax(240px, 300px) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.v-filters { grid-template-columns: minmax(0, 1fr); gap: 20px; position: sticky; top: calc(var(--header-h) + 24px); }
.v-filters input, .v-filters select { font-size: 16px; }
.v-filter-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.v-count { font-size: 15px; color: var(--muted); margin-bottom: 14px; }
.v-count strong { color: var(--ink); }
.v-active { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.v-active a { display: inline-block; font-size: 13px; padding: 5px 12px; border-radius: 999px; background: var(--ink); color: var(--ivory); text-decoration: none; }
.v-active a:hover { background: var(--copper-deep); }
.v-empty { padding: 32px 0; border-top: 1px solid var(--line-strong); }
.v-empty p { color: var(--muted); margin-top: 10px; }
.v-pages { display: flex; gap: 24px; align-items: center; margin-top: 28px; }
.v-alert-box { margin-top: 48px; padding: 28px; border-radius: 20px; background: var(--bone); }
.v-alert-box .h3 { margin-bottom: 16px; }

.v-inline-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.v-inline-form input[type="email"], .v-inline-form input[type="search"], .v-inline-form input[type="text"], .v-inline-form select {
  flex: 1 1 200px; min-width: 0; padding: 11px 16px; border-radius: 999px; border: 1px solid var(--line-strong);
  background: var(--paper); color: var(--ink); font: inherit; font-size: 15px;
}
.v-inline-form select { flex: 0 1 auto; }
.v-inline-form--dark input, .v-inline-form--dark select { background: rgba(245, 240, 231, .08); color: var(--ivory); border-color: var(--line-light); }
.v-inline-form--dark select option { color: var(--ink); }

/* ---------- Opportunity page ---------- */
.v-role-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 340px); gap: clamp(32px, 6vw, 96px); align-items: start; }
.v-role-body h2 { font-size: 1.8rem; }
.v-role-body h2:first-child, .v-role-body .v-notice + h2 { margin-top: 0; }
.v-role-aside { position: sticky; top: calc(var(--header-h) + 24px); display: flex; flex-direction: column; gap: 24px; }
.v-details { border-top: 1px solid var(--line-strong); }
.v-details > div { padding: 14px 0; border-bottom: 1px solid var(--line); }
.v-details dt { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--copper-deep); }
.v-details dd { margin: 6px 0 0; font-size: 15.5px; line-height: 1.5; }
.v-apply-card { padding: 24px; border-radius: 20px; background: var(--ivory); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.v-apply-card .form-note, .page-volunteer .form-note { margin: 0; font-size: 13.5px; color: var(--muted); max-width: 60ch; overflow-wrap: anywhere; }

/* ---------- Notices and errors ---------- */
.v-narrow { max-width: 860px; }
.v-after { margin-top: 28px; }
.v-after-tight { margin-bottom: 18px; }
.v-h { margin: 44px 0 16px; }
.v-notice { padding: 14px 18px; border-radius: 12px; background: rgba(17, 26, 23, .06); font-weight: 500; margin-bottom: 24px; }
.v-notice--ok { background: rgba(45, 106, 79, .1); }
.v-notice--error { background: rgba(155, 44, 31, .08); color: #8a2417; }
.v-errors { grid-column: 1 / -1; padding: 20px 24px; border: 2px solid #8a2417; border-radius: 12px; background: var(--paper); }
.v-errors:focus { outline: 3px solid var(--copper); outline-offset: 2px; }
.v-errors h2 { font-size: 18px; font-weight: 700; color: #8a2417; margin-bottom: 8px; }
.v-errors ul { padding-left: 1.2em; }
.v-errors a { color: #8a2417; font-weight: 600; }
.v-box { padding: 18px 22px; border-radius: 14px; background: var(--bone); display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; margin: 20px 0; }

/* ---------- Application form ---------- */
.v-part { border: 0; padding: 0; margin: 0 0 8px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.v-part legend { display: flex; align-items: center; gap: 14px; font-family: var(--serif); font-size: 1.8rem; line-height: 1.1; margin-bottom: 18px; padding: 0; }
.v-part-num { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: var(--ivory); font-family: var(--sans); font-size: 15px; font-weight: 600; }
.v-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 36px; }
.v-label { font-size: 13px; font-weight: 600; letter-spacing: .04em; margin-bottom: 4px; }
.page-volunteer .v-check { display: flex; gap: 12px; align-items: flex-start; font-size: 15.5px; font-weight: 400; letter-spacing: 0; line-height: 1.5; cursor: pointer; }
.page-volunteer .v-check input { width: 20px; height: 20px; flex: 0 0 auto; margin: 2px 0 0; padding: 0; accent-color: var(--ink); border: 0; }
.page-volunteer .field-error { margin: 0; color: #8a2417; font-weight: 600; font-size: 13.5px; }

/* ---------- Application page ---------- */
.v-progress { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 8px 0 24px; counter-reset: p; }
.v-progress li { counter-increment: p; padding-top: 12px; border-top: 4px solid var(--line); font-size: 14px; color: var(--muted); }
.v-progress li::before { content: counter(p) ". "; }
.v-progress .is-done { border-top-color: var(--ink); color: var(--ink); }
.v-progress .is-current { border-top-color: var(--copper); color: var(--ink); font-weight: 600; }
.v-thread { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.v-msg { padding: 16px 20px; border-radius: 16px; background: var(--ivory); border: 1px solid var(--line); max-width: 680px; }
.v-msg--volunteer { align-self: flex-end; background: var(--bone); }
.v-msg--system { background: transparent; border-style: dashed; font-size: 14px; }
.v-msg-meta { font-size: 12.5px; color: var(--muted); margin-bottom: 6px; }
.v-msg-body { white-space: pre-wrap; overflow-wrap: anywhere; }
.v-reply { margin-top: 20px; }
.v-answers > div { padding: 14px 0; border-bottom: 1px solid var(--line); }
.v-answers dt { font-size: 13px; font-weight: 600; color: var(--muted); }
.v-answers dd { margin: 4px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.v-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 12px; }

/* ---------- Account ---------- */
.v-tabs { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line-strong); margin-bottom: 32px; }
.v-tabs ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 24px; }
.v-tabs a { display: inline-block; padding: 12px 0; text-decoration: none; font-weight: 500; border-bottom: 2px solid transparent; }
.v-tabs a[aria-current] { border-bottom-color: var(--copper); }
.v-linkbtn { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; }
.v-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.v-table th { text-align: left; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line-strong); }
.v-table td { padding: 12px 12px 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.v-list { list-style: none; padding: 0; border-top: 1px solid var(--line-strong); }
.v-list li { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid var(--line); }

/* ---------- Admin ---------- */
.v-admin { background: var(--paper); }
.v-admin-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px; padding: 14px var(--gutter); background: var(--ink); color: var(--ivory); }
.v-admin-bar a { color: inherit; }
.v-admin-brand { font-family: var(--serif); font-size: 22px; text-decoration: none; }
.v-admin-bar ul { list-style: none; padding: 0; display: flex; gap: 20px; }
.v-admin-bar ul a { text-decoration: none; }
.v-admin-bar ul a[aria-current] { text-decoration: underline; text-decoration-color: var(--copper-light); }
.v-admin-who { margin-left: auto; font-size: 13px; color: var(--muted-light); }
.v-admin-main { padding: 32px var(--gutter) 80px; max-width: 1400px; }
.v-admin-main > .h2 { margin-bottom: 24px; font-size: clamp(2rem, 3vw, 2.8rem); }
.v-admin-filters { margin-bottom: 16px; }
.v-admin-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; }
.v-admin-form { max-width: 980px; }
.v-admin .contact-form input, .v-admin .contact-form select, .v-admin .contact-form textarea { font-size: 16px; }

/* ---------- Small screens ---------- */
@media (max-width: 980px) {
  .v-search-layout, .v-role-layout, .v-split, .v-admin-cols { grid-template-columns: minmax(0, 1fr); }
  .v-filters, .v-role-aside { position: static; }
}
@media (max-width: 680px) {
  .v-search { flex-direction: column; }
  .v-grid { grid-template-columns: minmax(0, 1fr); }
  .v-progress { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .v-table thead { display: none; }
  .v-table tr { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .v-table td { display: block; border: 0; padding: 2px 0; }
}
