header {
  background: #fe5733;
  border-bottom-color: #18312d;
}

header .eyebrow {
  color: #18312d;
}

header .subtitle {
  color: #fff7f3;
}

header .cover-wrap {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.cover-brand {
  display: block;
  flex: 0 0 auto;
  margin-top: 2px;
  padding: 7px 10px;
  background: #fff;
  border-radius: 5px;
}

.cover-brand img {
  display: block;
  width: 115px;
  height: auto;
}

@media (max-width: 700px) {
  header .cover-wrap {
    align-items: flex-end;
    gap: 14px;
  }

  .cover-brand img {
    width: 90px;
  }
}

#auth-form button[type="submit"] {
  background: #fe5733;
}

/* Weekends are subdued but remain distinct from the darker office-closure cells. */
.weekend {
  background: #e7ebe6;
}

/* A dark, patterned closure remains recognisable even when it includes a weekend. */
.office-closed {
  background-color: #89938e;
  background-image: repeating-linear-gradient(-45deg, rgba(255,255,255,.14) 0 4px, transparent 4px 8px);
}

.office-closed.leave-confirmed {
  background: linear-gradient(135deg, #89938e 0 50%, var(--green) 50% 100%);
}

.legend .closed:before {
  background-color: #89938e;
  background-image: repeating-linear-gradient(-45deg, rgba(255,255,255,.18) 0 2px, transparent 2px 4px);
}

.today {
  box-shadow: inset 2px 0 #fe5733, inset -2px 0 #fe5733;
}

.header-cell.today {
  background: #fe5733;
  color: #fff;
}

.header-cell.today b {
  color: #fff;
}

.bank-holiday[data-holiday] {
  cursor: help;
  position: relative;
}

.bank-holiday[data-holiday]::after {
  content: attr(data-holiday);
  position: absolute;
  z-index: 2;
  bottom: calc(100% + 7px);
  left: 50%;
  width: max-content;
  max-width: 260px;
  padding: 7px 9px;
  border-radius: 6px;
  background: #18312d;
  color: #fff;
  font-size: .75rem;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 4px);
  transition: opacity .12s ease, transform .12s ease;
}

.bank-holiday[data-holiday]:hover::after,
.bank-holiday[data-holiday]:focus-visible::after {
  opacity: 1;
  transform: translate(-50%, 0);
}

.header-cell.bank-holiday[data-holiday]::after {
  top: calc(100% + 7px);
  bottom: auto;
}

.holiday-filters {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  margin: 0 0 14px;
  color: var(--muted);
  font-size: .86rem;
  font-weight: 700;
}

.holiday-filters > span { color: var(--ink); }

.holiday-filters button {
  border: 1px solid #bccbc1;
  border-radius: 999px;
  background: #fff;
  color: var(--pine);
  padding: 7px 11px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.holiday-filters button[aria-pressed="true"] {
  border-color: #fe5733;
  background: #fe5733;
  color: #fff;
}

.bank-holiday[data-holiday-scope]:not([data-holiday-scope=""])::before {
  content: attr(data-holiday-scope);
  position: absolute;
  z-index: 3;
  bottom: calc(100% + 36px);
  left: 50%;
  padding: 3px 6px;
  border-radius: 999px;
  background: #fe5733;
  color: #fff;
  font-size: .65rem;
  font-weight: 700;
  line-height: 1;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 4px);
  transition: opacity .12s ease, transform .12s ease;
}

.bank-holiday[data-holiday-scope]:not([data-holiday-scope=""]):hover::before,
.bank-holiday[data-holiday-scope]:not([data-holiday-scope=""]):focus-visible::before {
  opacity: 1;
  transform: translate(-50%, 0);
}

.header-cell.bank-holiday[data-holiday-scope]:not([data-holiday-scope=""])::before {
  top: calc(100% + 36px);
  bottom: auto;
}
