.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
}

.manage-info small {
  display: flex;
  gap: 1rem;
  align-items: center;
  color: #718078;
  font-size: .76rem;
}

.meta-item {
  display: inline-flex;
  align-items: center;
  gap: .22rem;
  white-space: nowrap;
}

.manage-info small .meta-item {
  font-size: .76rem !important;
  line-height: 1 !important;
  vertical-align: middle;
}

.activity-meta {
  display: flex;
  gap: 1rem;
  align-items: center;
  color: #718078;
  font-size: .76rem;
}

.activity-meta .meta-item {
  font-size: .76rem;
  line-height: 1;
}

.instruction-meta {
  color: #718078 !important;
}

.deadline {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin: 0;
  padding: .3rem .6rem;
  border-radius: 999px;
  background: #b3261e;
  color: #fff;
  gap: .3rem;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: .02em;
  white-space: nowrap;
}

.deadline-meta {
  color: #8a5700 !important;
}

.deadline-warning {
  display: block;
  margin-top: .35rem;
  color: #a52a2a;
  font-size: .75rem;
  font-weight: normal;
}

.handbook-deadline {
  margin: .5rem 0;
}

.print-page .activity-card {
  background: #fff;
  border: 1px solid #e0e8e3;
  border-radius: 6px;
  padding: .65rem .75rem;
  margin: .4rem 0;
  box-shadow: 0 1px 2px #17342a08;
}

.manage-actions {
  display: grid;
  grid-template-columns: repeat(3, 2rem);
  gap: .25rem;
  flex: 0 0 auto;
  align-self: center;
}

.icon-button {
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 1px solid transparent;
  background: transparent;
  color: #607269;
  font-size: 1.1rem;
  line-height: 1;
  border-radius: 5px;
  display: grid;
  place-items: center;
}

.icon-button:hover,
.icon-button:focus-visible {
  background: #e6f2ec;
  color: #126b45;
}

.icon-button.delete {
  color: #a52a2a;
}

.icon-button.delete:hover,
.icon-button.delete:focus-visible {
  background: #fbe9e9;
  border-color: #e5b5b5;
  color: #a52a2a;
}

button:focus-visible,
.button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
a:focus-visible {
  outline: 3px solid #8bc6a5;
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.form-help {
  margin: -.55rem 0 0;
  color: #a0aaa4;
  font-size: .68rem;
  font-weight: normal;
}

.required-mark {
  color: #a52a2a;
  font-weight: bold;
}

.handbook-cover {
  min-height: 22rem;
  display: grid;
  align-content: center;
  gap: .8rem;
  padding: 3rem;
  margin-bottom: 2rem;
  background: linear-gradient(135deg, #e6f2ec, #fff);
  border: 1px solid #cfe2d6;
  border-radius: 10px;
}

.handbook-cover h2,
.handbook-cover p {
  max-width: 42rem;
  margin: 0;
}

.handbook-cover h2 {
  font-size: 2rem;
}

.handbook-date {
  margin-top: 1rem !important;
  color: #718078;
  font-size: .85rem;
}

.handbook-entry strong {
  margin-bottom: .25rem;
}

@media print {
  .handbook-cover {
    min-height: 245mm;
    margin: 0;
    border: 0;
    border-radius: 0;
    break-after: page;
    page-break-after: always;
  }
}

dialog form > label:has(.required-mark) {
  display: block;
}

dialog form > label:has(.required-mark) > input,
dialog form > label:has(.required-mark) > select {
  display: block;
  width: 100%;
  margin-top: .35rem;
}
