/* CV Mojo app: Charity & volunteering (/volunteering, app-volunteering.js), 2026-10-26.
   Built from the shared app pieces (ap-head, ap-card, ap-stat, ap-field, ap-switch, btn), which app-v3.css
   restyles; these rules add the page's own bits with the v3 tokens (navy, sunshine, mint, sky, paper, cream,
   Mouse Memoirs, Nunito) and the v2 app tokens as fallbacks. Loaded before app-v3.css, so anything that
   must win over a shared v3 rule is scoped under .vol. Text colours are navy, ink or muted on paper/cream
   (all AA or better). */

.vol { --vol-navy: var(--navy, #191d3b); --vol-paper: var(--paper, #fff); --vol-line: var(--line, #e3e5f1); --vol-muted: var(--muted, #5d6180); --vol-text: var(--text, #2b2f4c); }
.vol-ic svg { width: 26px; height: 26px; }
.vol-body { display: grid; gap: 20px; }
.vol-body > * { min-width: 0; }

/* Totals */
.vol-stats { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.vol .vol-stats:empty { display: none; }

/* On your portfolio */
.vol .vol-pf { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 28px; padding: 20px 24px; }
.vol-pf-text { flex: 1 1 380px; min-width: 0; }
.vol .vol-pf-h { margin: 0 0 4px; font-family: var(--v-body, inherit); font-size: 17px !important; font-weight: 900; color: var(--vol-navy); }
.vol-pf-text p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--vol-text); }
.vol-pf-text a { font-weight: 800; }
.vol-pf-switch { flex: none; }

.vol-note, .vol-foot { display: flex; align-items: flex-start; gap: 8px; margin: 0; font-size: 14px; line-height: 1.5; color: var(--vol-muted); }
.vol-note svg, .vol-foot svg { flex: none; margin-top: 2px; }
.vol-note { padding: 12px 16px; color: var(--vol-text); background: var(--amber-soft, #fff4d6); border-radius: 14px; }
.vol-foot b { color: var(--vol-text); }

/* The list */
#app .vol-h { display: flex; align-items: center; gap: 10px; margin: 8px 0 -6px; font-family: var(--v-display, inherit); font-size: 34px !important; font-weight: 400; line-height: 1; letter-spacing: .01em; text-transform: uppercase; color: var(--vol-navy); }
.vol-count { display: inline-grid; place-items: center; min-width: 30px; height: 30px; padding: 0 8px; font-family: var(--v-body, inherit); font-size: 15px; font-weight: 900; color: var(--vol-navy); background: var(--sun, var(--yellow, #f5ff38)); border-radius: 999px; }
.vol-list { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; }
.vol .vol-item { padding: 22px 26px 18px; }
.vol-item.is-fresh { animation: vol-fresh 1.6s ease both; }
@keyframes vol-fresh { 0% { box-shadow: 0 0 0 4px var(--sun, #ffc93c), var(--shadow, none); } 100% { box-shadow: var(--shadow, none); } }
.vol-item-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-bottom: 10px; }
.vol-kind { display: inline-flex; align-items: center; padding: 4px 12px 3px; font-size: 12.5px; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; color: var(--vol-navy); background: var(--mint, var(--cyan-soft, #dff8f7)); border-radius: 999px; }
.vol-kind--fundraising { background: var(--sun-l, var(--yellow-soft, #fbffc9)); }
.vol-kind--event { background: var(--sky, var(--channel-soft, #e6efff)); }
.vol-kind--mentoring { background: #FFD9BF; }
.vol-kind--community { background: var(--mint, #dff8f7); }
.vol-kind--other { background: var(--mist, #f2f3f8); }
.vol-pub { font-size: 13.5px; }
.vol .vol-title { margin: 0; font-size: 20px; font-weight: 900; line-height: 1.3; color: var(--vol-navy); overflow-wrap: anywhere; }
.vol-sub { margin: 3px 0 0; font-size: 15px; font-weight: 700; color: var(--vol-text); overflow-wrap: anywhere; }
.vol-when { font-weight: 600; color: var(--vol-muted); }
.vol-facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; padding: 0; list-style: none; }
.vol-facts li { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; font-size: 14px; color: var(--vol-text); background: var(--cream, var(--mist, #f2f3f8)); border-radius: 999px; }
.vol-facts b { font-weight: 900; color: var(--vol-navy); }
.vol-desc { margin-top: 12px; font-size: 15.5px; line-height: 1.6; color: var(--vol-text); overflow-wrap: anywhere; }
.vol-desc p { margin: 0 0 8px; }
.vol-desc p:last-child { margin: 0; }
.vol-link { margin: 10px 0 0; }
.vol-link a { display: inline-flex; align-items: center; gap: 6px; font-size: 14.5px; font-weight: 800; color: var(--vol-navy); text-decoration: underline; text-decoration-color: var(--sun, currentColor); text-decoration-thickness: 3px; text-underline-offset: 4px; overflow-wrap: anywhere; }
.vol-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--vol-line); }
.vol-move { display: inline-flex; gap: 2px; margin-left: auto; }
.vol .ap-icon-btn { width: 40px; height: 40px; color: var(--vol-navy); }
.vol .ap-icon-btn:disabled { opacity: .35; cursor: default; }
.vol .ap-icon-btn:focus-visible { outline: 3px solid var(--vol-navy); outline-offset: 1px; }
.vol .vol-del { color: #B3261E; }
.vol-confirm { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-top: 14px; padding: 12px 16px; font-size: 14.5px; font-weight: 700; color: var(--vol-text); background: #FDECEA; border-radius: 16px; }
.vol-confirm[hidden] { display: none; }

/* Add to a CV */
.vol-cv { margin-top: 16px; padding: 18px 20px; background: var(--cream, var(--mist, #f2f3f8)); border-radius: 18px; }
.vol-cv[hidden] { display: none; }
.vol-cv-load { display: flex; align-items: center; gap: 8px; margin: 0; font-weight: 700; color: var(--vol-muted); }
#app .vol-cv-h { margin: 0 0 6px; font-family: var(--v-display, inherit); font-size: 28px; font-weight: 400; line-height: 1; text-transform: uppercase; color: var(--vol-navy); }
.vol-cv p { margin: 0 0 10px; font-size: 14.5px; line-height: 1.55; color: var(--vol-text); }
.vol-cv-line { margin: 0 0 14px; padding: 12px 16px; font-size: 14.5px; line-height: 1.55; color: var(--vol-text); background: var(--vol-paper); border-left: 4px solid var(--sun, var(--yellow, #ffc93c)); border-radius: 0 12px 12px 0; overflow-wrap: anywhere; }
.vol-cv-pick { display: grid; gap: 8px; margin: 0 0 10px; padding: 0; border: 0; }
.vol-cv-opt { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; background: var(--vol-paper); border-radius: 14px; box-shadow: inset 0 0 0 2px var(--vol-line); cursor: pointer; }
.vol-cv-opt:has(input:checked) { box-shadow: inset 0 0 0 3px var(--vol-navy); }
.vol-cv-opt input { flex: none; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--vol-navy); }
.vol-cv-opt.is-off { cursor: default; opacity: .75; }
.vol-cv-opt-t { display: grid; gap: 2px; min-width: 0; }
.vol-cv-opt-t b { font-size: 15px; font-weight: 900; color: var(--vol-navy); overflow-wrap: anywhere; }
.vol-cv-opt-t small { font-size: 13px; font-weight: 600; color: var(--vol-muted); }
.vol-cv-tag { font-weight: 800; color: var(--teal-t, #0f6e5c); }
.vol-cv-msg { min-height: 0; font-weight: 700; }
.vol-cv-msg:empty { display: none; }
.vol-cv-msg:focus { outline: none; }

/* The form */
.vol .vol-form { display: grid; gap: 18px; }
.vol-item .vol-form { padding-top: 2px; }
#app .vol-form-h { margin: 0; font-family: var(--v-display, inherit); font-size: 36px !important; font-weight: 400; line-height: 1; text-transform: uppercase; color: var(--vol-navy); }
.vol-form-h:focus { outline: none; }
.vol-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: start; gap: 16px 18px; }
.vol .vol-field { align-content: start; }
.vol-grid > .vol-field:first-child { grid-column: 1 / -1; }
.vol-grid--2 > .vol-field:first-child { grid-column: auto; }
.vol-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.vol .vol-field + .vol-field { margin-top: 0; }
.vol-opt { font-weight: 600; color: var(--vol-muted); }
.vol-err { font-size: 13.5px; font-weight: 800; color: #B3261E; }
.vol-err[hidden] { display: none; }
.vol [aria-invalid="true"] { border-color: #B3261E !important; }
.vol-when-f, .vol-ym { min-width: 0; margin: 0; padding: 0; border: 0; }
.vol-when-f > legend, .vol-ym > legend { margin-bottom: 8px; padding: 0; font-size: 14px; font-weight: 800; color: var(--vol-navy); }
.vol-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.vol-pill { position: relative; cursor: pointer; }
.vol-pill input { position: absolute; opacity: 0; pointer-events: none; }
.vol-pill span { display: inline-flex; align-items: center; min-height: 40px; padding: 7px 16px; font-size: 14.5px; font-weight: 800; color: var(--vol-navy); background: var(--mist, #f2f3f8); border-radius: 999px; }
.vol-pill input:checked + span { color: var(--cream, #fff); background: var(--vol-navy); }
.vol-pill input:focus-visible + span { outline: 3px solid var(--vol-navy); outline-offset: 2px; }
.vol-dates { display: flex; flex-wrap: wrap; gap: 12px 22px; }
.vol-dates[hidden] { display: none; }
.vol-ym-row { display: flex; gap: 8px; }
.vol-ym .ap-select { width: auto; min-width: 128px; }
.vol-ym-row .ap-select + .ap-select { min-width: 100px; }
.vol-ym .vol-err { display: block; margin-top: 6px; }
.vol-day { max-width: 220px; }
.vol-when-hint { flex: 1 1 100%; margin: 0; }
.vol-money { position: relative; display: block; }
.vol-money > span { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); font-weight: 800; color: var(--vol-muted); pointer-events: none; }
.vol-money .ap-input { padding-left: 30px; }
.vol .vol-desc-in { min-height: 120px; }
#volDescCount.is-over { color: #B3261E; font-weight: 800; }
.vol-show { display: grid; gap: 6px; padding: 14px 16px; background: var(--cream, var(--mist, #f2f3f8)); border-radius: 16px; }
.vol-show .ap-hint { margin: 0; }
.vol-form-go { margin-top: 2px; }

/* Empty state: warm, no pressure */
.vol-empty { display: grid; justify-items: center; gap: 12px; padding: 44px 28px 40px; text-align: center; background: var(--vol-paper); border-radius: 30px; box-shadow: var(--shadow-sm, 0 1px 2px rgba(25, 29, 59, .06)); }
.vol-empty[hidden] { display: none; }
.vol-empty-ic { display: grid; place-items: center; width: 72px; height: 72px; margin-bottom: 4px; color: var(--vol-navy); background: #DF7387; border-radius: 46% 54% 50% 50% / 52% 48% 52% 48%; transform: rotate(-6deg); }
#app .vol-empty h2 { margin: 0; font-family: var(--v-display, inherit); font-size: 44px !important; font-weight: 400; line-height: .95; text-transform: uppercase; color: var(--vol-navy); }
.vol-empty p { max-width: 54ch; margin: 0; font-size: 16px; line-height: 1.6; color: var(--vol-text); }
.vol-empty .vol-ex-h { margin-top: 6px; font-size: 13px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; color: var(--vol-muted); }
.vol-examples { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.vol-example { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 18px; font: inherit; font-size: 15px; font-weight: 800; color: var(--vol-navy); background: var(--mint, var(--cyan-soft, #dff8f7)); border: 0; border-radius: 999px; cursor: pointer; transition: transform .15s ease, background-color .15s ease; }
.vol-example:nth-child(2) { background: var(--sun-l, var(--yellow-soft, #fbffc9)); }
.vol-example:nth-child(3) { background: var(--sky, var(--channel-soft, #e6efff)); }
.vol-example:hover { transform: translateY(-2px); }
.vol-example:focus-visible { outline: 3px solid var(--vol-navy); outline-offset: 2px; }
.vol-empty-go { margin-top: 10px; }
.vol-empty .vol-empty-small { font-size: 14px; color: var(--vol-muted); }

@media (max-width: 760px) {
  .vol .vol-item { padding: 18px 18px 14px; }
  .vol .vol-pf { padding: 18px 18px; }
  .vol-grid, .vol-grid--2 { grid-template-columns: minmax(0, 1fr); }
  .vol-move { margin-left: 0; }
  .vol-actions .vol-btn { flex: 1 1 auto; }
  .vol-empty { padding: 34px 18px 30px; border-radius: 24px; }
  #app .vol-empty h2 { font-size: 38px !important; }
  .vol .vol-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .vol .vol-stats .ap-stat { padding: 16px 12px 14px; }
  .vol .vol-stats .ap-stat::before { right: -40px; top: -40px; }
  .vol .vol-stats .ap-stat-n { font-size: 38px; }
  .vol .vol-stats .ap-stat-l { font-size: 12px; }
  .vol-cv { padding: 16px 14px; }
  .vol-ym .ap-select { min-width: 0; flex: 1 1 auto; }
  .vol-ym-row { width: 100%; }
  .vol-dates > * { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .vol-item.is-fresh { animation: none; }
  .vol-example { transition: none; }
  .vol-example:hover { transform: none; }
}
