.raid-calendar {
  --rc-surface: var(--panel, #fffdf7);
  --rc-ink: var(--ink, #20264b);
  --rc-line: #cec7ae;
  --rc-focus: #354dde;
  --rc-gutter: 3.4rem;
  --rc-height: 1152px;
  margin-top: 18px;
  padding: clamp(10px, 2.2vw, 18px);
  color: var(--rc-ink);
  background: #eaf1df;
  border: 1px solid #96ab91;
  border-radius: 12px;
}

.raid-calendar [hidden] { display: none !important; }
.rc-header, .rc-controls, .rc-navigation, .rc-zone {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 12px;
}
.rc-header, .rc-controls { justify-content: space-between; }
.rc-header h2 { font-size: 1.45rem; margin: 0; }
.rc-controls { margin-block: 12px 8px; }
.rc-navigation { gap: 4px; }
.rc-zone { font-size: .88rem; font-weight: 700; }
.raid-calendar button, .raid-calendar select {
  min-height: 44px;
  padding: 4px 9px;
  color: var(--rc-ink);
  background: var(--rc-surface);
  border: 1px solid #868776;
  border-radius: 6px;
  font: inherit;
  font-size: .88rem;
  font-weight: 700;
}
.raid-calendar button, .rc-list summary { cursor: pointer; }
.raid-calendar select { max-width: min(100%, 15rem); }
.raid-calendar button:hover { background: #f1ecd9; }
.raid-calendar button[aria-disabled="true"] {
  color: #57584b;
  background: #e8eadb;
  border-color: #a6aa94;
  cursor: not-allowed;
}
.raid-calendar :is(a, button, select, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--rc-focus);
  outline-offset: 1px;
}
.rc-range { font-size: 1.12rem; margin: 0; }
.rc-limits, .rc-note, .raid-calendar [data-calendar-fallback] {
  margin: 6px 0 0;
  color: #40453c;
  font-size: .84rem;
}
.rc-day-picker, .rc-mobile-bands { display: none; }
.rc-timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
}
.rc-section-label {
  margin: 10px 0 4px;
  font-size: .79rem;
  font-weight: 800;
}
.rc-band-headings, .rc-week-bands {
  display: grid;
  grid-template-columns: repeat(var(--rc-days, 7), minmax(0, 1fr));
  padding-inline: calc(var(--rc-gutter) + 1px) max(1px, var(--rc-edge, 1px));
}
.rc-band-headings {
  margin-block-end: 3px;
  border-block-end: 1px solid var(--rc-line);
  font-size: .71rem;
  font-weight: 700;
  text-align: center;
}
.rc-week-bands {
  grid-auto-rows: minmax(32px, auto);
  gap: 3px 0;
}
.rc-empty-band, .rc-hourly-empty, .rc-shift-note {
  margin: 0;
  color: #41463d;
  font-size: .79rem;
}
.rc-empty-band { grid-column: 1 / -1; }
.rc-hourly-empty { margin-block: 2px 5px; }
.rc-shift-note { padding: 4px; }

.raid-calendar .rc-event {
  color: var(--rc-event-ink, #3c4f64);
  background: var(--rc-event-surface, #edf1f5);
  border: 1px solid var(--rc-event-edge, #6e8098);
  border-inline-start-width: 3px;
  border-radius: 5px;
  font-size: .76rem;
  line-height: 1.24;
  font-weight: 700;
  text-decoration: none;
}
.raid-calendar .rc-event:hover { text-decoration: underline; }
.rc-kind-event { --rc-event-ink: #544006; --rc-event-surface: #fff0c8; --rc-event-edge: #957124; }
.rc-kind-raid { --rc-event-ink: #732820; --rc-event-surface: #ffead7; --rc-event-edge: #a64a3c; }
.rc-kind-battle { --rc-event-ink: #453877; --rc-event-surface: #ede7ff; --rc-event-edge: #7b69ad; }
.rc-kind-max { --rc-event-ink: #243872; --rc-event-surface: #e7edfd; --rc-event-edge: #647db9; }
.rc-band {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  margin-inline: 1px;
  padding: 3px 5px;
}
.rc-band .rc-event-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rc-event-badge { flex: none; font-size: .66rem; }
.rc-block .rc-event-badge { display: block; }
.rc-week-bands .rc-event-badge { margin-inline-start: auto; }
.rc-week-bands .rc-band[data-continued-before] { border-inline-start-style: dashed; border-start-start-radius: 0; border-end-start-radius: 0; }
.rc-week-bands .rc-band[data-continued-after] { border-inline-end: 3px dashed var(--rc-event-edge, #6e8098); border-start-end-radius: 0; border-end-end-radius: 0; }
.rc-week-bands .rc-single-band { display: block; }
.rc-week-bands .rc-single-band .rc-event-name { display: block; }

.rc-scroll {
  max-height: clamp(300px, 54vh, 464px);
  overflow: auto;
  scroll-padding-top: 40px;
  border: 1px solid #91917d;
  border-radius: 8px;
  background: var(--rc-surface);
  scrollbar-gutter: stable;
}
.rc-axis-headings, .rc-axis-body {
  display: grid;
  grid-template-columns: var(--rc-gutter) repeat(var(--rc-days, 7), minmax(0, 1fr));
}
.rc-axis-headings {
  position: sticky;
  top: 0;
  z-index: 3;
  background: #f0efdf;
  border-block-end: 1px solid #91917d;
}
.rc-time-head, .rc-day-head {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  margin: 0;
  min-height: 39px;
  padding: 3px 1px;
  text-align: center;
  font-size: .82rem;
  line-height: 1.1;
  letter-spacing: normal;
}
.rc-day-head { border-inline-start: 1px solid var(--rc-line); }
.rc-day-head small { margin-top: 2px; font-size: .68rem; }
.rc-current-day { background: #dce9ca; }
.rc-gutter, .rc-day-axis { position: relative; height: var(--rc-height); }
.rc-gutter { color: #494737; }
.rc-gutter-time {
  position: absolute;
  right: 5px;
  color: #494737;
  background: var(--rc-surface);
  font-size: .7rem;
  line-height: 1.1;
  white-space: nowrap;
}
.rc-day-axis {
  background: repeating-linear-gradient(to bottom, var(--rc-line) 0 1px, transparent 1px calc(var(--rc-height) / 24));
  border-inline-start: 1px solid var(--rc-line);
}
.rc-shifted-day { background: #f9f6e8; }
.rc-shift-ticks { pointer-events: none; }
.rc-shift-tick {
  position: absolute;
  inset-inline: 0;
  border-block-start: 1px solid var(--rc-line);
  padding-inline-start: 2px;
  color: #494737;
  font-size: .65rem;
  line-height: 1.1;
}
.rc-block {
  position: absolute;
  overflow: hidden;
  padding-inline: 4px;
  z-index: 1;
}
.rc-block:focus-visible { z-index: 2; }
.rc-block .rc-event-name { display: block; overflow-wrap: anywhere; }
.rc-event-time { display: block; padding-block-start: 2px; font-size: .69rem; white-space: nowrap; }
.rc-now {
  display: block;
  position: absolute;
  inset-inline: 0;
  z-index: 2;
  border-top: 2px solid #b12820;
  pointer-events: none;
}
.rc-now::before {
  content: "";
  position: absolute;
  top: -4px;
  inset-inline-start: 0;
  border: 3px solid #b12820;
  border-radius: 50%;
}
.rc-now-label {
  color: #8f211c;
  font-size: .77rem;
  font-weight: 800;
}
.rc-now-date {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  overflow: hidden;
  white-space: nowrap;
  clip-path: inset(50%);
}
.rc-list { margin-top: 8px; font-size: .83rem; }
.rc-list summary { width: fit-content; min-height: 44px; padding-block: 10px; font-weight: 750; }
.rc-list ul { margin: 0; padding: 0; list-style: none; }
.rc-list li + li { margin-top: 4px; }
.rc-list-event {
  display: flex;
  min-height: 44px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 3px 10px;
  padding: 5px 8px;
}
.rc-list-time { font-weight: 550; }

@media (max-width: 690px) {
  .rc-day-picker {
    display: grid;
    grid-template-columns: repeat(var(--rc-days, 7), minmax(0, 1fr));
    gap: 3px;
    margin-block: 8px;
  }
  .rc-day-picker button { padding-inline: 0; font-size: .75rem; }
  .raid-calendar .rc-day-picker button[aria-pressed="true"] { color: white; background: #344429; border-color: #344429; }
  .rc-day-picker [aria-current="date"]:not([aria-pressed="true"]) { background: #dce9ca; }
  .rc-band-headings, .rc-week-bands { display: none; }
  .rc-mobile-bands { display: grid; gap: 4px; }
  .rc-mobile-bands .rc-band { min-height: 44px; justify-content: space-between; }
  .rc-mobile-bands .rc-event-name { white-space: normal; }
  .rc-axis-headings, .rc-axis-body { grid-template-columns: var(--rc-gutter) minmax(0, 1fr); }
  .rc-day-head:not([data-active]), .rc-day-axis:not([data-active]) { display: none; }
  .rc-mobile-shift :is(.rc-axis-headings, .rc-axis-body) { grid-template-columns: minmax(0, 1fr); }
  .rc-mobile-shift :is(.rc-time-head, .rc-gutter) { display: none; }
  .rc-block { font-size: .84rem; }
}

@media (forced-colors: active) {
  .rc-now, .rc-now::before { border-color: Highlight; }
  .raid-calendar .rc-day-picker button[aria-pressed="true"] { color: HighlightText; background: Highlight; forced-color-adjust: none; }
}
