.volunteer-page {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 44px 0 72px;
}

.volunteer-hero,
.volunteer-management-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 24px;
  border-bottom: 2px solid #d5a83f;
}

.volunteer-hero h1,
.volunteer-management-header h1 {
  margin: 4px 0 8px;
}

.volunteer-hero__actions,
.volunteer-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.volunteer-filter,
.volunteer-form--panel,
.volunteer-panel,
.volunteer-alert {
  margin-top: 24px;
  padding: 24px;
  border: 1px solid #d5a83f;
  background: #f6edd4;
  color: #20140f;
}

.volunteer-filter {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  align-items: end;
  gap: 16px;
}

.volunteer-filter label,
.volunteer-form label {
  display: grid;
  gap: 7px;
  font-weight: 700;
}

.volunteer-filter input,
.volunteer-filter select,
.volunteer-form input:not([type="checkbox"]):not([type="radio"]),
.volunteer-form select,
.volunteer-form textarea,
.volunteer-panel input:not([type="checkbox"]):not([type="radio"]) {
  box-sizing: border-box;
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid #826d4d;
  border-radius: 0;
  background: #fffdf8;
  color: #20140f;
  font: inherit;
}

.volunteer-form textarea {
  min-height: 112px;
  resize: vertical;
}

.volunteer-opportunity-list,
.volunteer-dashboard-list,
.volunteer-management-list {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.volunteer-opportunity-list > article,
.volunteer-dashboard-list > article,
.volunteer-management-list > article {
  padding: 22px;
  border: 1px solid #d5a83f;
  border-radius: 6px;
  background: #fbf7ed;
  color: #20140f;
}

.volunteer-opportunity-list article > header,
.volunteer-dashboard-list article > header,
.volunteer-management-list article > header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.volunteer-opportunity-list h2,
.volunteer-dashboard-list h2,
.volunteer-management-list h2 {
  margin: 4px 0 8px;
  overflow-wrap: anywhere;
}

.volunteer-position-list,
.volunteer-position-form {
  margin-top: 18px;
  padding: 18px;
  border-left: 4px solid #8d2d22;
  background: #fffdf8;
}

.volunteer-form fieldset {
  min-width: 0;
  margin: 0 0 24px;
  padding: 20px;
  border: 1px solid #b99b62;
}

.volunteer-form legend {
  padding: 0 8px;
  color: #6f2018;
  font-family: Georgia, serif;
  font-size: 1.35rem;
  font-weight: 700;
}

.volunteer-form p {
  min-width: 0;
  margin: 0 0 16px;
}

.volunteer-form ul.errorlist {
  margin: 0 0 6px;
  padding: 8px 12px;
  background: #8d2d22;
  color: #fff;
  list-style: none;
}

.volunteer-table-wrap {
  max-width: 100%;
  overflow-x: auto;
}

.volunteer-table-wrap table {
  width: 100%;
  border-collapse: collapse;
}

.volunteer-table-wrap th,
.volunteer-table-wrap td {
  padding: 12px;
  border-bottom: 1px solid #d8c69f;
  text-align: left;
  vertical-align: top;
}

.volunteer-table-wrap small,
.volunteer-page dl dt {
  display: block;
  color: #655a4d;
}

.volunteer-page dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 6px 14px;
}

.volunteer-page dl dd {
  margin: 0;
}

.volunteer-status {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 3px 9px;
  border: 1px solid #8d2d22;
  background: #f3e2b8;
  color: #6f2018;
  font-size: .85rem;
  white-space: nowrap;
}

.volunteer-status--confirmed,
.volunteer-status--completed {
  border-color: #356d46;
  background: #dcebdc;
  color: #245332;
}

.volunteer-status--rejected,
.volunteer-status--cancelled,
.volunteer-status--no_show {
  border-color: #8d2d22;
  background: #f2d7d3;
}

.volunteer-alert {
  border-left: 6px solid #8d2d22;
}

.volunteer-empty {
  padding: 28px;
  border: 1px dashed #b99b62;
  text-align: center;
}

.volunteer-moderation-list,
.volunteer-moderation-item,
.volunteer-report-row,
.volunteer-inline-moderation,
.volunteer-moderation-attachment,
.volunteer-moderation-attachment form {
  display: grid;
  gap: 10px;
}

.volunteer-moderation-list {
  gap: 16px;
}

.volunteer-moderation-item {
  padding: 14px;
  border: 1px solid #c7ad6b;
  background: #fffaf0;
}

.volunteer-moderation-item.is-hidden,
.volunteer-moderation-attachment.is-hidden {
  border-color: #8a2b23;
  background: #f4dfda;
}

.volunteer-moderation-item > header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
}

.volunteer-inline-moderation,
.volunteer-moderation-attachment form,
.volunteer-report-row form {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
}

.volunteer-inline-moderation label,
.volunteer-moderation-attachment label,
.volunteer-report-row label {
  display: grid;
  gap: 5px;
}

.volunteer-moderation-attachment {
  grid-template-columns: minmax(120px, 220px) minmax(0, 1fr);
  padding-top: 12px;
  border-top: 1px solid #d6c497;
}

.volunteer-moderation-attachment img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: #17212d;
}

.volunteer-private-coordination {
  display: grid;
  gap: 12px;
  margin: 16px 0;
  padding: 16px;
  border-left: 4px solid #d5aa48;
  background: rgba(16, 29, 43, 0.06);
}

.volunteer-private-coordination > h3,
.volunteer-private-coordination h4,
.volunteer-private-coordination p {
  margin: 0;
}

.volunteer-private-coordination > article {
  display: grid;
  gap: 7px;
  padding-top: 12px;
  border-top: 1px solid rgba(82, 53, 32, 0.22);
}

.volunteer-coordination-list {
  display: grid;
  gap: 12px;
}

.volunteer-coordination-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px;
  border: 1px solid #d6c497;
  background: #fffaf0;
}

.volunteer-coordination-item.is-editing {
  border-color: #8d2d22;
  box-shadow: inset 4px 0 #8d2d22;
}

.volunteer-coordination-item h3,
.volunteer-coordination-item p {
  margin: 0 0 5px;
}

.volunteer-page .helptext {
  display: block;
  margin-top: 6px;
  color: #655a4d;
  font-size: .9rem;
}

@media (max-width: 760px) {
  .volunteer-page {
    width: min(100% - 20px, 1180px);
    padding-top: 24px;
  }

  .volunteer-hero,
  .volunteer-management-header,
  .volunteer-opportunity-list article > header,
  .volunteer-dashboard-list article > header,
  .volunteer-management-list article > header {
    align-items: stretch;
    flex-direction: column;
  }

  .volunteer-filter {
    grid-template-columns: 1fr;
  }

  .volunteer-filter button,
  .volunteer-hero__actions .button,
  .volunteer-management-header .button {
    width: 100%;
  }

  .volunteer-form--panel,
  .volunteer-panel,
  .volunteer-filter {
    padding: 16px;
  }

  .volunteer-form fieldset {
    padding: 14px;
  }

  .volunteer-page dl {
    grid-template-columns: 1fr;
  }

  .volunteer-inline-moderation,
  .volunteer-moderation-attachment,
  .volunteer-moderation-attachment form,
  .volunteer-report-row form {
    grid-template-columns: 1fr;
  }

  .volunteer-coordination-item {
    align-items: stretch;
    flex-direction: column;
  }
}
