/* Volunteer shift board inside "הפינה של ליאו" (js/volunteers.js). Uses the colors of css/design.css. */
.vb { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--stone-mid); }
.vb h3 { margin: 0 0 6px; font-size: 1.1rem; color: var(--sage-dark); }
.vb-intro { margin: 0 0 10px; }
.vb-status { margin: 6px 0; min-height: 1.4em; font-weight: 600; }
.vb-status.vb-bad { color: #9b1c1c; }
.vb-grid { display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 9em), 1fr)); }
.vb-field { display: flex; flex-direction: column; gap: 2px; font-weight: 700; min-width: 0; }
.vb-field input { font: inherit; font-weight: 400; color: var(--ink); background: var(--stone); border: 1px solid var(--stone-mid); border-radius: 10px; padding: 8px 10px; min-height: 44px; width: 100%; box-sizing: border-box; }
.vb-check { display: flex; gap: 8px; align-items: flex-start; margin: 8px 0; font-size: .85rem; line-height: 1.5; }
.vb-check input { flex: none; width: 22px; height: 22px; margin-top: 2px; }
.vb-names { list-style: none; margin: 0; padding: 0; }
.vb-free { display: inline-block; font-size: .85rem; color: var(--ink-light); background: var(--stone); border-radius: 999px; padding: 0 10px; }
.vb-free.vb-one { color: var(--ink-mid); background: var(--stone-mid); }
.vb-free.vb-many { color: #1f5a2e; background: #dff3e1; font-weight: 700; }
.vb-names { margin: 6px 0; }
.vb-names li { padding: 2px 0; }
.vb-btn { font: inherit; cursor: pointer; border: 1px solid var(--sage-light); background: #fff; color: var(--sage-dark); border-radius: 999px; padding: 6px 16px; min-height: 44px; }
.vb-btn:disabled { opacity: .5; cursor: default; }
.vb-link { font: inherit; font-size: .85rem; cursor: pointer; background: none; border: 0; color: var(--ink-light); text-decoration: underline; padding: 10px 6px; min-height: 44px; }
.vb-link:disabled { opacity: .5; cursor: default; }
.vb-cal { margin: 14px 0 6px; }
.vb-cal-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.vb-nav { min-width: 44px; padding: 6px 12px; }
.vb-cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; }
.vb-cal-h { text-align: center; font-size: .8rem; font-weight: 700; color: var(--ink-light); }
.vb-cal-day { box-sizing: border-box; min-height: 52px; border-radius: 8px; text-align: center; font-size: .85rem; padding: 2px 0; color: var(--ink-light); background: transparent; border: 1px solid transparent; }
.vb-has-shift { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; font: inherit; font-size: .85rem; line-height: 1.15; cursor: pointer; color: var(--sage-dark); background: var(--sage-pale); border: 1px solid var(--sage-light); }
.vb-has-shift.vb-selected { background: var(--clay-pale); border-color: var(--clay); font-weight: 700; }
.vb-ico { font-size: 1.05rem; }
.vb-count { min-width: 1.3em; border-radius: 999px; background: #2f8a43; color: #fff; font-size: .7rem; font-weight: 700; line-height: 1.3em; padding: 0 4px; }
.vb-detail { margin-top: 8px; }
.vb-detail h4 { margin: 8px 0 4px; color: var(--sage-dark); }
.vb-hint { margin: 6px 0; color: var(--ink-light); font-size: .85rem; }
.vb-friend { margin-top: 12px; padding-top: 8px; border-top: 1px dashed var(--stone-mid); display: grid; gap: 8px; }
.vb-friend select { font: inherit; color: var(--ink); background: var(--stone); border: 1px solid var(--stone-mid); border-radius: 10px; padding: 8px 10px; min-height: 44px; width: 100%; box-sizing: border-box; }

/* featured card for Leo's corner at the top of the home page notices */
.leo-promo {
  display: flex; align-items: center; gap: 14px; width: 100%; margin-bottom: 16px; padding: 10px;
  background: var(--white); border: 1px solid var(--stone-mid); border-radius: var(--radius-lg);
  font: inherit; color: var(--ink); text-align: right; cursor: pointer;
}
.leo-promo:hover, .leo-promo:focus-visible { border-color: var(--sage); }
.leo-promo img { width: 84px; height: 112px; flex-shrink: 0; object-fit: cover; object-position: top; border-radius: var(--radius-md); }
.leo-promo-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.leo-promo-text strong { font-size: 1rem; }
.leo-promo-text > span { font-size: 0.85rem; color: var(--ink-light); }
.leo-promo-text > .leo-promo-cta { color: var(--sage); font-weight: 600; }
.vb-me { margin: 10px 0; }
.vb-hello { margin: 0 0 4px; font-size: 1.05rem; font-weight: 700; color: var(--sage-dark); }
.vb-me-acts { display: flex; flex-wrap: wrap; gap: 4px 12px; }
.vb-edit { display: grid; gap: 8px; margin-top: 8px; padding: 10px; border: 1px dashed var(--stone-mid); border-radius: 10px; }
.vb-edit input[readonly] { opacity: .7; }
.vb-edit .vb-field input { font: inherit; font-weight: 400; color: var(--ink); background: var(--stone); border: 1px solid var(--stone-mid); border-radius: 10px; padding: 8px 10px; min-height: 44px; width: 100%; box-sizing: border-box; }
.vb-danger { color: #9b1c1c; }

/* the hidden attribute must win over the display rules above (an author display value beats the browser's [hidden] rule), or "closed" parts stay visible */
.vb [hidden] { display: none !important; }

/* the main action of the board: a solid, colored button */
.vb-primary { background: var(--sage-dark); color: #fff; border-color: var(--sage-dark); font-weight: 700; font-size: 1.05rem; padding: 10px 28px; margin: 8px 0; }
.vb-primary:hover:not(:disabled), .vb-primary:focus-visible { background: var(--sage); border-color: var(--sage); }
@media (max-width: 480px) { .vb-primary { width: 100%; } }
.vb-cal-day { min-width: 0; }
.vb-has-shift.vb-one { background: var(--stone); border-color: var(--sage-light); }
.vb-has-shift.vb-many { background: #dff3e1; border-color: #4a9a5b; color: #1f5a2e; }
.vb-has-shift.vb-many.vb-selected, .vb-has-shift.vb-one.vb-selected { border-width: 2px; font-weight: 700; }
.vb-who { max-width: 100%; font-size: .6rem; line-height: 1.1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* the friend part is a grid, which would stretch its button over the full width: keep it the same size as the sign-up button */
.vb-friend .vb-primary { justify-self: start; margin: 8px 0; }

/* Share bar at the top of Leo's card, in the colours of the pub poster: night blue, string-light amber, a wooden brown edge */
.leo-share {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 14px;
  margin: 0 0 14px; padding: 12px 14px; color: #fdf3dc; border-radius: var(--radius-md);
  background: linear-gradient(135deg, #17233f 0%, #2a3a63 100%); border-bottom: 3px solid #8a5a2b;
}
.leo-share-text { font-weight: 700; font-size: .95rem; }
.leo-share-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.leo-share-btn { font: inherit; font-size: .9rem; color: #fdf3dc; background: transparent; border: 1px solid #f4b942; border-radius: 999px; padding: 8px 16px; min-height: 44px; cursor: pointer; }
.leo-share-btn:hover, .leo-share-btn:focus-visible { background: rgba(244, 185, 66, .18); outline: 2px solid #f4b942; outline-offset: 2px; }
.leo-share-main { background: #f4b942; color: #1b2440; font-weight: 700; }
.leo-share-main:hover, .leo-share-main:focus-visible { background: #ffc95c; }
.leo-share-msg { flex-basis: 100%; min-height: 1.2em; font-size: .85rem; color: #ffd98a; overflow-wrap: anywhere; }
.leo-share-msg:empty { display: none; }
