/* The volunteer page, on top of the club site's /styles.css and the members
   app's /members/members.css. Text floors (club rule): nothing under 1rem;
   body 1.0625rem (set by styles.css); tap targets at least 44px. Paper
   floors are in the @media print block. */

h1 { margin: 0 0 0.75rem; color: var(--blue-dark); font-size: 2rem; line-height: 1.2; }
h3 { margin: 0 0 0.5rem; color: var(--blue-dark); font-size: 1.25rem; line-height: 1.3; }
.lead-in { max-width: 44rem; font-size: 1.2rem; }

/* Coming up: a grid of event cards, each led by its mascot on a tinted panel
   (the club logo where an event has none), the leaf pinned over it. */
.events {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(17.5rem, 1fr));
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.event {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--rule);
  border-radius: 0.75rem;
  background: var(--paper);
  box-shadow: 0 2px 6px rgb(12 45 98 / 0.08), 0 10px 24px rgb(12 45 98 / 0.08);
}
.event:not(:has(.event-art)) { padding: 1rem 1.25rem; }
.event-art {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 10;
  max-height: 11rem;
  width: 100%;
  border-bottom: 4px solid var(--gold);
  background: #e3f4fb;
}
.event:nth-child(3n+2) .event-art { background: #fdf0d5; }
.event:nth-child(3n+3) .event-art { background: #e8eef8; }
/* The art fills the panel beside the leaf, never under it. */
.event-art img {
  position: absolute;
  top: 0.6rem; right: 0.75rem; bottom: 0.5rem; left: 6.25rem;
  width: calc(100% - 7rem); height: calc(100% - 1.1rem);
  object-fit: contain;
}
.event-art .leaf { position: absolute; top: 0.75rem; left: 0.75rem; box-shadow: 0 2px 8px rgb(12 45 98 / 0.2); }
/* No art: the leaf alone, large, in the middle of the panel. */
.event-art.no-art .leaf { position: static; transform: scale(1.5); }
.event-body { display: flex; flex: 1; flex-direction: column; padding: 1rem 1.25rem 1.25rem; }
.event p { margin: 0.4rem 0 0; }
.event h3 { margin: 0; font-size: 1.35rem; }
.when { color: var(--blue-dark); font-weight: 700; }
.shifts { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0.75rem 0 0; padding: 0; list-style: none; }
.shifts li { padding: 0.15rem 0.65rem; border: 1px solid var(--rule); border-radius: 999px; background: var(--wash); font-size: 1rem; }
.event-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: auto; padding-top: 1.1rem; }
.event-actions .button { margin: 0; }
.button.outline { background: transparent; color: var(--blue-dark); box-shadow: inset 0 0 0 2px var(--blue-dark); }
.button.outline:hover { background: var(--wash); color: var(--blue-dark); }
.button.unavailable { background: var(--wash); color: var(--muted); cursor: default; }

/* The calendar leaf, as on the members' monthly issue, with a month band. */
.leaf {
  display: flex;
  flex-direction: column;
  width: 4.75rem;
  overflow: hidden;
  border: 2px solid var(--blue);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--blue);
  text-align: center;
  font-weight: 700;
  line-height: 1.15;
}
.leaf-month { padding: 0.2rem 0; background: var(--blue); color: #fff; font-size: 1rem; text-transform: uppercase; letter-spacing: 0.05em; }
.leaf-day { padding-top: 0.25rem; font-size: 2.1rem; line-height: 1; }
.leaf-weekday { padding: 0.15rem 0 0.35rem; font-size: 1rem; }

#account .wrap { max-width: 48rem; margin-inline: 0; }
@media (min-width: 62rem) { #account .wrap { margin-inline: auto; max-width: 62rem; } }

#saved:not(:empty) {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border-left: 6px solid var(--blue);
  background: var(--paper);
}

.household-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.5rem 1rem; }

.person {
  margin: 0 0 1rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--paper);
}
.person-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.25rem 0.75rem; margin-bottom: 0.5rem; }
.person-head h3 { margin: 0; }
.person-head .link-button { margin-left: auto; }
.tag { color: var(--muted); font-size: 1rem; }

.times { margin: 0.75rem 0 0; padding: 0; border: 0; }
.times legend { padding: 0; color: var(--blue); font-weight: 700; }
.time {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--rule);
}
.toggles { display: flex; gap: 0.5rem; }
.toggle {
  min-width: 4.5rem;
  min-height: 2.75rem;
  padding: 0.4rem 0.6rem;
  border: 2px solid var(--muted);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.toggle span { display: none; }
.toggle[aria-pressed="true"] span { display: inline; }
.toggle.yes[aria-pressed="true"] { border-color: var(--blue-dark); background: var(--blue-dark); color: #fff; }
.toggle.no[aria-pressed="true"] { border-color: var(--ink); border-width: 3px; }

.plus-note { grid-column: 1 / -1; color: var(--muted); font-size: 1rem; }
.all-yes { display: block; margin: 0.15rem 0 0.25rem; }
.limit { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 0.75rem; padding: 0.6rem 0; border-bottom: 1px solid var(--rule); }
.limit select:disabled { color: var(--muted); background: var(--wash); }
.limit .hint { flex-basis: 100%; }
.save-row { margin-top: 0.5rem; }
.add-someone {
  margin-top: 2rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--paper);
}


/* --- Coordinators' paper tools (sheet.html) ------------------------------------- */
.pick-events { margin: 1rem 0; padding: 0; border: 0; }
.pick-events legend { font-weight: 700; }
.sheet-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.problem { margin: 0.5rem 0; padding: 0.6rem 1rem; border-left: 6px solid #b3261e; background: #fdecea; font-weight: 700; }
select { min-height: 2.75rem; padding: 0.4rem 0.6rem; border: 2px solid var(--muted); border-radius: var(--radius); font: inherit; background: var(--paper); }

.grid-scroll { overflow-x: auto; max-width: 100%; border: 1px solid var(--rule); background: var(--paper); }
.enter-grid, .print-sheet { border-collapse: collapse; }
.enter-grid th, .enter-grid td { padding: 0.25rem 0.4rem; border: 1px solid var(--rule); text-align: center; }
.enter-grid tbody th { position: sticky; left: 0; z-index: 1; background: var(--paper); text-align: left; white-space: nowrap; }
.enter-grid thead th { font-size: 1rem; }
.enter-grid .name-col { position: sticky; left: 0; z-index: 2; background: var(--paper); }
th.helper { padding-left: 1.25rem; font-weight: 400; }
.limit-note { display: block; color: var(--muted); font-size: 1rem; font-weight: 400; }
.enter-grid td { position: relative; min-width: 5.5rem; }
.box {
  width: 2.75rem; height: 2.75rem;
  border: 2px solid var(--muted); border-radius: var(--radius);
  background: var(--paper); color: var(--ink);
  font: inherit; font-size: 1.25rem; font-weight: 700; cursor: pointer;
}
.plus { width: 3.25rem; min-height: 2.75rem; margin-left: 0.25rem; padding: 0.25rem; border: 2px solid var(--muted); border-radius: var(--radius); font: inherit; }
.enter-grid td.changed { background: #fff4d6; }
.dot { position: absolute; top: 0; right: 0.2rem; color: var(--blue-dark); font-size: 1.25rem; line-height: 1; }
.add-row { margin-top: 1.5rem; padding: 1rem 1.25rem; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--paper); }

.print-sheet { width: 100%; background: var(--paper); }
.print-sheet th, .print-sheet td { border: 1px solid var(--ink); padding: 0.3rem 0.4rem; }
.print-sheet tbody th { text-align: left; font-weight: 400; white-space: nowrap; }
.print-sheet td { text-align: center; font-weight: 700; }
.print-sheet .sheet-title { border: 0; padding-bottom: 0.5rem; text-align: left; color: var(--blue-dark); font-size: 1.4rem; }
.print-sheet tbody tr { height: 2.5rem; }

/* The club's paper floors, held once: must-read text (names, times, boxes)
   and supporting labels. Every print size below comes from these. */
:root { --print-must: 11pt; --print-supporting: 10pt; }
@page { size: A4 landscape; margin: 10mm; }
@media print {
  body { background: #fff; font-size: var(--print-must); }
  .test-notice, .site-header, .site-footer, #sheet-page > .band:first-child, #enter-area, .no-print { display: none !important; }
  #print-area, #print-area .wrap { display: block !important; margin: 0; padding: 0; max-width: none; }
  .print-sheet { width: 100%; font-size: var(--print-must); }
  .print-sheet thead { display: table-header-group; }
  .print-sheet .sheet-title { font-size: calc(var(--print-must) + 3pt); color: #000; }
  .print-sheet .event-col, .print-sheet .time-col { font-size: var(--print-must); }
  .print-sheet .name-col { font-size: var(--print-supporting); }
  .print-sheet tbody th, .print-sheet td { font-size: var(--print-must); }
  .print-sheet .limit-note { font-size: var(--print-supporting); }
  .print-sheet th, .print-sheet td { border-color: #000; }
  .print-sheet tbody tr { height: 9mm; break-inside: avoid; }
  .print-sheet tbody th { width: 30%; }
}
