.team-schedule-trigger {
  appearance: none;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  padding: 0;
  text-align: inherit;
  cursor: pointer;
}
.team-schedule-trigger:hover { text-decoration: underline; }
.team-schedule-trigger:focus-visible { outline: 2px solid #990000; outline-offset: 3px; border-radius: 3px; }
.team-schedule-trigger img { vertical-align: middle; }
.rankings-schedule-team { display: flex; align-items: center; flex: 1; min-width: 0; gap: 8px; }
.team-schedule-quick { color: #87001b; font-size: .875rem; min-height: 36px; text-decoration: underline; text-underline-offset: 3px; }
.pk-team-and-schedule { display: grid; min-width: 0; }
.team-schedule-dialog {
  box-sizing: border-box;
  width: min(100% - 24px, 520px);
  max-height: 85vh;
  max-height: 85dvh;
  padding: 0;
  border: 1px solid #e4e1de;
  border-radius: 20px;
  color: #211e1d;
  background: #fff;
  box-shadow: 0 16px 64px #16070944;
  text-align: left;
  font: 1rem/1.35 system-ui, sans-serif;
}
.team-schedule-dialog[open] { display: flex; flex-direction: column; }
.team-schedule-dialog::backdrop { background: #140d11a6; }
.team-schedule-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  padding: 16px 18px;
  background: #fbf5f2;
  border-bottom: 1px solid #eee8e4;
}
.team-schedule-header h2 { margin: 0; font: 750 1.4rem/1.15 system-ui, sans-serif; color: #840021; }
.team-schedule-header p { margin: 4px 0 0; font-size: .875rem; color: #595254; }
.team-schedule-header form { margin: -6px -7px 0 0; }
.team-schedule-header button {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #211e1d;
  font: 1.6rem/1 system-ui, sans-serif;
  cursor: pointer;
}
.team-schedule-header button:hover { background: #f1e6e2; }
.team-schedule-content { overflow: auto; overscroll-behavior: contain; }
.team-schedule-games { list-style: none; margin: 0; padding: 0 18px; }
.team-schedule-game {
  display: grid;
  grid-template-columns: 3.65rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 11px 0;
  border-bottom: 1px solid #f0ece9;
}
.team-schedule-game:last-child { border-bottom: 0; }
.team-schedule-date, .team-schedule-opponent small { color: #595254; font-size: .875rem; }
.team-schedule-neutral { display: block; }
.team-schedule-opponent { font-weight: 600; }
.team-schedule-result { font-size: .875rem; font-variant-numeric: tabular-nums; text-align: right; }
.team-schedule-result[data-result="W"] { color: #186338; }
.team-schedule-result[data-result="L"] { color: #a21635; }
.team-schedule-message { margin: 0; padding: 18px; }
.team-schedule-message button { font: inherit; cursor: pointer; }
html:has(.team-schedule-dialog[open]) { overflow: hidden; }
