/* Use the same compact, borderless inline history layout as pitcher history. */
.hockey-game-page:not([data-hockey-view="live"]) #hockeyGoalies .g-history-trigger {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.15rem;
  height: 1.15rem;
  min-width: 1.15rem;
  min-height: 1.15rem;
  margin-left: .28rem;
  padding: 0;
  border: 0;
  border-radius: 3px;
  background: transparent;
  color: currentColor;
  font-family: inherit;
  font-size: .76rem;
  line-height: 1;
  opacity: .68;
}
.hockey-game-page:not([data-hockey-view="live"]) #hockeyGoalies .g-history-trigger[aria-expanded="true"] {
  background: transparent;
}
.hockey-game-page:not([data-hockey-view="live"]) #hockeyGoalies .g-history-trigger:hover,
.hockey-game-page:not([data-hockey-view="live"]) #hockeyGoalies .g-history-trigger:focus-visible {
  opacity: 1;
}
@media (pointer:coarse) {
  .hockey-game-page:not([data-hockey-view="live"]) #hockeyGoalies .g-history-trigger {
    min-width: 44px;
    min-height: 44px;
  }
}
.hockey-game-page:not([data-hockey-view="live"]) #hockeyGoalies .g-recent-history {
  margin: .32rem 0 .45rem;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  font-family: inherit;
}
.hockey-game-page:not([data-hockey-view="live"]) #hockeyGoalies .g-recent-history > .g-panel-head,
.hockey-game-page:not([data-hockey-view="live"]) #hockeyGoalies .g-recent-history > .g-history-player {
  display: none;
}
.hockey-game-page:not([data-hockey-view="live"]) #hockeyGoalies .g-recent-history > p {
  margin: 2px 0;
  font-size: .55rem;
  line-height: 1.3;
  color: var(--muted);
}
.hockey-game-page:not([data-hockey-view="live"]) #hockeyGoalies .g-recent-history .g-history-filter {
  gap: 4px;
  margin: 2px 0;
  font-family: inherit;
  font-size: .55rem;
  font-weight: 700;
  line-height: 1.15;
}
.hockey-game-page:not([data-hockey-view="live"]) #hockeyGoalies .g-recent-history .g-history-browser-controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 2px 8px;
  margin: 2px 0;
  font-size: .55rem;
  line-height: 1.3;
  color: var(--muted);
}
.hockey-game-page:not([data-hockey-view="live"]) #hockeyGoalies .g-recent-history select {
  min-height: 0;
  padding: 2px 4px;
  border-color: var(--border);
  background: transparent;
  font-family: inherit;
  font-size: .55rem;
  line-height: 1.15;
}
.hockey-game-page:not([data-hockey-view="live"]) #hockeyGoalies .g-recent-history .g-history-scroll {
  margin: 3px 0;
  max-width: 100%;
  overflow-x: auto;
}
.hockey-game-page:not([data-hockey-view="live"]) #hockeyGoalies .g-recent-history .g-history-table {
  display: table;
  width: max-content;
  min-width: 0;
  margin: 0 auto;
  table-layout: auto;
  border-collapse: collapse;
  background: transparent;
  font-family: inherit;
  font-variant-numeric: tabular-nums;
}
.hockey-game-page:not([data-hockey-view="live"]) #hockeyGoalies .g-recent-history .g-history-table thead {
  display: table-header-group;
}
.hockey-game-page:not([data-hockey-view="live"]) #hockeyGoalies .g-recent-history .g-history-table tbody {
  display: table-row-group;
}
.hockey-game-page:not([data-hockey-view="live"]) #hockeyGoalies .g-recent-history .g-history-table tr {
  display: table-row;
  width: auto;
  min-height: 0;
  margin: 0;
}
.hockey-game-page:not([data-hockey-view="live"]) #hockeyGoalies .g-recent-history .g-history-table th,
.hockey-game-page:not([data-hockey-view="live"]) #hockeyGoalies .g-recent-history .g-history-table td {
  width: auto;
  min-width: 0;
  max-width: none;
  padding: 2px 4px;
  font-size: .59rem;
  line-height: 1.15;
  white-space: nowrap;
  overflow: visible;
  text-overflow: clip;
  text-align: right;
  letter-spacing: 0;
  cursor: default;
  border-right: 1px solid var(--border);
  border-bottom: 1px dotted var(--border);
}
.hockey-game-page:not([data-hockey-view="live"]) #hockeyGoalies .g-recent-history .g-history-table td {
  font-family: var(--bb-font-data, monospace);
  font-weight: 800;
}
/* Ranked history cells use the same palette and display modes as main stats. */
.hockey-game-page:not([data-hockey-view="live"]) #hockeyGoalies .g-recent-history .g-history-table th:first-child {
  position: static;
  min-width: 62px;
  text-align: left;
  background: var(--panel);
}
.hockey-game-page:not([data-hockey-view="live"]) #hockeyGoalies .g-recent-history .g-history-table td:nth-child(2) {
  font-family: inherit;
  text-align: center;
}
.hockey-game-page:not([data-hockey-view="live"]) #hockeyGoalies .g-recent-history .g-history-seasons td:nth-child(2) {
  font-family: var(--bb-font-data, monospace);
}
.hockey-game-page:not([data-hockey-view="live"]) #hockeyGoalies .g-recent-history .g-history-table .g-history-decision {
  width: 22px;
  min-width: 22px;
  max-width: 22px;
  padding-right: 2px;
  padding-left: 2px;
  text-align: center;
}
.hockey-game-page:not([data-hockey-view="live"]) #hockeyGoalies .g-recent-history .g-history-table abbr {
  cursor: inherit;
}
.hockey-game-page:not([data-hockey-view="live"]) #hockeyGoalies .g-recent-history .g-history-table thead th {
  padding: 2px 4px;
  font-family: inherit;
  font-size: .5rem;
  font-weight: 800;
  background: var(--panel);
  color: var(--muted);
}
.hockey-game-page:not([data-hockey-view="live"]) #hockeyGoalies .g-recent-history .g-history-table button,
.hockey-game-page:not([data-hockey-view="live"]) #hockeyGoalies .g-recent-history .g-history-table label {
  min-height: 0;
  font: inherit;
  line-height: 1.15;
  color: inherit;
}
.hockey-game-page:not([data-hockey-view="live"]) #hockeyGoalies .g-recent-history .g-history-table [data-hselect-year] {
  margin: 0;
  padding: 0 2px;
  border: 0;
  border-radius: 2px;
  background: transparent;
  text-align: inherit;
}
.hockey-game-page:not([data-hockey-view="live"]) #hockeyGoalies .g-recent-history .g-history-table [data-hselect-year]:focus-visible {
  outline: 1px solid var(--muted);
  outline-offset: 1px;
}
.hockey-game-page:not([data-hockey-view="live"]) #hockeyGoalies .g-recent-history .g-history-table input {
  width: 9px;
  height: 9px;
}
.hockey-game-page:not([data-hockey-view="live"]) #hockeyGoalies .g-recent-history .g-history-table .g-history-section {
  background: rgba(124,148,177,.12);
  border-top: 1px solid var(--border);
}
.hockey-game-page:not([data-hockey-view="live"]) #hockeyGoalies .g-recent-history .g-history-table .g-history-section th {
  font-size: .55rem;
  white-space: normal;
  font-weight: 800;
}
/* Shared measured columns keep the three history viewports aligned in Safari. */
.hockey-game-page:not([data-hockey-view="live"]) #hockeyGoalies .g-recent-history .g-history-table:is(.has-season-scroll, .has-history-scroll) {
  display: block;
}
.hockey-game-page:not([data-hockey-view="live"]) #hockeyGoalies .g-recent-history :is(.has-season-scroll, .has-history-scroll) > thead,
.hockey-game-page:not([data-hockey-view="live"]) #hockeyGoalies .g-recent-history :is(.has-season-scroll, .has-history-scroll) > tbody {
  display: block;
}
.hockey-game-page:not([data-hockey-view="live"]) #hockeyGoalies .g-recent-history :is(.has-season-scroll, .has-history-scroll) tr {
  display: grid;
  grid-template-columns: var(--g-history-columns);
  /* Keep the last metric clear of a classic scrollbar without moving columns. */
  padding-right: 12px;
}
.hockey-game-page:not([data-hockey-view="live"]) #hockeyGoalies .g-recent-history :is(.has-season-scroll, .has-history-scroll) th[colspan="8"] {
  grid-column: 1 / -1;
}
.hockey-game-page:not([data-hockey-view="live"]) #hockeyGoalies .g-recent-history :is(.has-season-scroll, .has-history-scroll) > :is(.g-history-seasons, .g-history-days, .g-history-matchups) {
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior-y: contain;
  scrollbar-width: thin;
  scrollbar-color: #65766d #101612;
  cursor: default;
  touch-action: auto;
  -webkit-overflow-scrolling: touch;
}
.hockey-game-page:not([data-hockey-view="live"]) #hockeyGoalies .g-recent-history :is(.has-season-scroll, .has-history-scroll) > .g-history-seasons {
  max-height: var(--g-history-season-height, 56px);
}
.hockey-game-page:not([data-hockey-view="live"]) #hockeyGoalies .g-recent-history :is(.has-season-scroll, .has-history-scroll) > .g-history-days {
  max-height: var(--g-history-days-height, 144px);
}
.hockey-game-page:not([data-hockey-view="live"]) #hockeyGoalies .g-recent-history :is(.has-season-scroll, .has-history-scroll) > .g-history-matchups {
  max-height: var(--g-history-matchup-height, 112px);
}
.hockey-game-page:not([data-hockey-view="live"]) #hockeyGoalies .g-recent-history :is(.g-history-seasons, .g-history-days, .g-history-matchups):focus-visible {
  outline: 1px solid var(--muted);
  outline-offset: -1px;
}
.hockey-game-page:not([data-hockey-view="live"]) #hockeyGoalies .g-recent-history :is(.g-history-seasons, .g-history-days, .g-history-matchups)::-webkit-scrollbar {
  width: 8px;
}
.hockey-game-page:not([data-hockey-view="live"]) #hockeyGoalies .g-recent-history :is(.g-history-seasons, .g-history-days, .g-history-matchups)::-webkit-scrollbar-thumb {
  border-radius: 4px;
  background: #65766d;
}
.hockey-game-page:not([data-hockey-view="live"]) #hockeyGoalies .g-recent-history :is(.g-history-seasons, .g-history-days, .g-history-matchups)::-webkit-scrollbar-track {
  background: #101612;
}
.hockey-game-page:not([data-hockey-view="live"]) #hockeyGoalies .g-recent-history .g-history-archive-toggle,
.hockey-game-page:not([data-hockey-view="live"]) #hockeyGoalies .g-recent-history .g-history-pages button,
.hockey-game-page:not([data-hockey-view="live"]) #hockeyGoalies .g-recent-history [data-hmore] {
  min-height: 0;
  padding: 3px 5px;
  margin: 3px 0;
  border-color: var(--border);
  background: transparent;
  font-family: inherit;
  font-size: .55rem;
  line-height: 1.15;
}
.hockey-game-page:not([data-hockey-view="live"]) #hockeyGoalies .g-recent-history .g-history-notes {
  border: 0;
  margin: 3px 0;
  padding: 0;
}
.hockey-game-page:not([data-hockey-view="live"]) #hockeyGoalies .g-recent-history .g-history-notes summary,
.hockey-game-page:not([data-hockey-view="live"]) #hockeyGoalies .g-recent-history .g-history-notes p {
  min-height: 0;
  margin: 3px 0;
  font-family: inherit;
  font-size: .55rem;
  line-height: 1.3;
}
@media (max-width:620px) {
  .hockey-game-page:not([data-hockey-view="live"]) #hockeyGoalies .g-recent-history .g-history-table th,
  .hockey-game-page:not([data-hockey-view="live"]) #hockeyGoalies .g-recent-history .g-history-table td {
    font-size: .61rem;
  }
}


.g-history-league {
  display: inline-block;
  margin-left: .35em;
  font-size: .78em;
  font-weight: 500;
  opacity: .68;
  white-space: nowrap;
}
.g-history-league-totals { margin: .5em 0; }
.g-history-league-totals summary { cursor: pointer; font-size: .8em; }
.g-history-league-totals table { width: 100%; font-size: .75em; }
