/* Comparison and shared starter availability refinements. */
.fo-view {
  --fo-marker-size: 44px;
}

.fo-availability-card .fo-availability-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 8px;
}

.fo-availability-card .fo-availability-heading h4 {
  flex: 1;
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
}

.fo-availability-card .fo-availability-logo,
.injuries-team-picker .fo-availability-logo {
  width: 64px;
  height: 64px;
  object-fit: contain;
  flex-shrink: 0;
}

.fo-return-marker,
.fo-return-legend {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border: 1px solid #fff;
  border-radius: 4px;
  background: #175da9;
  color: #fff;
  font: 700 13px/1 sans-serif;
}

.fo-position .fo-return-marker {
  position: absolute;
  right: -4px;
  top: -8px;
  width: 16px;
  height: 16px;
  display: grid;
  overflow: visible;
}

.fo-game-projection {
  margin: 8px 0;
  font-weight: 650;
}

.fo-game-projection-back {
  padding: 6px 8px;
  border-left: 3px solid #175da9;
  background: color-mix(in srgb, #175da9 10%, var(--panel));
}

.injuries-view,
.injuries-content {
  min-width: 0;
}

.injuries-team-picker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  min-height: 80px;
  max-width: 100%;
  margin-bottom: 12px;
  padding: 10px 16px;
  border: 1px solid var(--ui-edge);
  border-radius: var(--ui-radius-sm);
  background: var(--ui-panel);
  color: var(--ui-ink);
  text-align: left;
}

.injuries-team-name {
  min-width: 0;
  font: 600 22px/1.3 var(--ui-font-display);
  overflow-wrap: anywhere;
}

.injuries-team-dialog .fo-team-option-image {
  width: 56px;
  height: 49px;
  object-fit: contain;
}

.injuries-view .fo-logo-missing,
.fo-availability-card .fo-logo-missing {
  display: grid;
  place-items: center;
  background: var(--ui-soft);
  color: var(--ui-accent);
  font-weight: 700;
}

.fo-availability-card .qb-return {
  margin: 12px 0;
}

.injuries-team-picker:focus-visible,
.injuries-team-dialog button:focus-visible,
.fo-availability-card button:focus-visible {
  outline: var(--ui-focus-ring);
  outline-offset: 3px;
}

.fo-view .fo-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
  padding: 0;
  margin: 0 0 var(--ui-space-4);
  border: 0;
}

.fo-view .fo-filters legend {
  color: var(--ui-muted);
  font-size: 12px;
  line-height: 1.5;
  margin-bottom: 8px;
}

.fo-view .fo-filter-button {
  min-height: var(--ui-tap);
  padding: 10px 14px;
  border: 1px solid var(--ui-edge);
  border-radius: var(--ui-radius-sm);
  background: var(--ui-panel);
  color: var(--ui-ink);
  font-size: 13px;
  line-height: 1.4;
  font-weight: 600;
}

.fo-view .fo-filter-button[aria-pressed="true"] {
  background: var(--ui-accent);
  border-color: var(--ui-accent);
  color: var(--ui-on-accent);
}

.fo-view .fo-filter-button:focus-visible {
  outline: var(--ui-focus-ring);
  outline-offset: 3px;
}

.fo-view [data-fo-section][hidden] {
  display: none;
}

.fo-view .fo-identity-heading {
  gap: 16px;
  min-height: 104px;
}

.fo-view .fo-image {
  width: 104px;
  height: 104px;
}

.fo-view .fo-headshot {
  width: 96px;
  height: 96px;
}

.fo-view .fo-logo-missing {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border: 1px solid var(--ui-edge);
  border-radius: var(--ui-radius-sm);
  background: var(--ui-soft);
  color: var(--ui-accent);
  font-weight: 700;
  font-size: 18px;
  line-height: 1;
}

.fo-view .fo-team-option-image {
  width: 56px;
  height: 49px;
  object-fit: contain;
}

.fo-view .fo-histories > .th-heading h3 {
  font: 600 24px/1.3 var(--ui-font-display);
}

.fo-view .fo-histories > .th-ratings-note {
  font-size: 12px;
  line-height: 1.6;
}

.fo-view .fo-stat-section h3,
.fo-view .fo-availability > h3 {
  font: 600 24px/1.3 var(--ui-font-display);
}

.fo-view .fo-stat-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 0;
  font-size: 18px;
  font-weight: 650;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.fo-view .fo-stat-label-text {
  min-width: 0;
  text-wrap: balance;
}

.fo-view .fo-stat-label .score-icon {
  width: 18px;
  height: 18px;
}

.fo-view .fo-stat-headings {
  grid-template-columns: minmax(0, 1fr) minmax(120px, 1.6fr) minmax(0, 1fr);
}

.fo-view .fo-value-winner {
  border-color: var(--fo-winner-color, var(--ui-accent));
  background: var(--ui-panel);
  background: color-mix(in srgb, var(--fo-winner-color, var(--ui-accent)) 10%, var(--ui-panel));
  color: var(--ui-ink);
  box-shadow: inset 0 0 0 1px var(--ui-panel), 0 0 0 1px var(--ui-rule);
}

.fo-view .fo-bar-wrap {
  margin: 24px 0;
}

.fo-view .fo-bar-boundary {
  display: grid;
  place-items: center;
  width: var(--fo-marker-size);
  height: var(--fo-marker-size);
  box-sizing: border-box;
  border: 1px solid var(--ui-edge);
  border-radius: 50%;
  background: var(--ui-panel);
  box-shadow: none;
  color: var(--ui-muted);
  overflow: hidden;
}

.fo-view .fo-bar-boundary .fo-image {
  width: 100%;
  height: 100%;
  min-width: 0;
  border: 0;
  border-radius: 0;
  font-size: 12px;
}

.fo-view .fo-bar-boundary .fo-initials {
  font-size: 12px;
}

.fo-view .fo-bar-tied {
  background: var(--ui-rail);
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
}

.fo-view .fo-availability-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 8px;
}

.fo-view .fo-availability-heading h4 {
  flex: 1;
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
}

.fo-view .fo-availability-logo {
  width: 64px;
  height: 64px;
  object-fit: contain;
  flex-shrink: 0;
}

@media (max-width: 600px) {
  .fo-view {
    --fo-marker-size: 36px;
  }

  .fo-view .fo-filter-button {
    font-size: 12px;
    padding: 10px 12px;
  }

  .fo-view .fo-image,
  .schedule-view[data-schedule-key^="game/"] .fo-view.fo-locked .fo-identity .fo-image {
    width: 84px;
    height: 84px;
  }

  .fo-view .fo-headshot,
  .schedule-view[data-schedule-key^="game/"] .fo-view.fo-locked .fo-identity .fo-headshot {
    width: 78px;
    height: 78px;
  }

  .fo-view .fo-identity-heading {
    min-height: 0;
    gap: 10px;
  }

  .schedule-view[data-schedule-key^="game/"] .fo-view.fo-locked .fo-pickers {
    grid-template-rows: repeat(4, auto);
  }

  .schedule-view[data-schedule-key^="game/"] .fo-view.fo-locked .fo-identity {
    grid-row: span 4;
  }

  .schedule-view[data-schedule-key^="game/"] .fo-view.fo-locked .fo-pickers:has(.fo-headshot) {
    grid-template-rows: repeat(6, auto);
  }

  .schedule-view[data-schedule-key^="game/"] .fo-view.fo-locked .fo-identity:has(.fo-headshot) {
    grid-row: span 6;
  }

  .fo-view .fo-stat-label {
    font-size: 16px;
  }

  .fo-view .fo-stat-headings {
    grid-template-columns: minmax(0, 1fr) minmax(96px, 1.5fr) minmax(0, 1fr);
    gap: 4px;
  }

  .fo-view .fo-stat-section h3,
  .fo-view .fo-availability > h3,
  .fo-view .fo-histories > .th-heading h3 {
    font-size: 22px;
  }

  .fo-view .fo-availability-logo {
    width: 56px;
    height: 56px;
  }

  .fo-view .fo-team-option-image {
    width: 48px;
    height: 43px;
  }

  .fo-view .fo-bar-boundary .fo-image {
    width: 100%;
    height: 100%;
  }
}

/* Shared starter uniforms, scoped to availability fields. */
.fo-field[data-injury-shape] {
  height: 430px;
}
.fo-field[data-injury-shape] .fo-position[data-injury-shape] {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: 76px;
  max-width: none;
  min-width: 44px;
  min-height: 72px;
  padding: 3px 0;
  border: 1px solid transparent;
  border-radius: 7px;
  box-shadow: none;
  background: transparent;
  color: var(--ui-ink, var(--ink));
  overflow: visible;
  font-size: 10px;
  line-height: 1.25;
}
.fo-field[data-injury-shape] .fo-position-line[data-injury-shape] {
  width: 64px;
}
.fo-field[data-injury-shape] .fo-status-available[data-injury-shape] {
  --shape-stroke: var(--ui-green, #087b43);
  --shape-fill: var(--ui-green-soft, #def5e5);
}
.fo-field[data-injury-shape] .fo-status-out[data-injury-shape] {
  --shape-stroke: var(--ui-red, #c4313b);
  --shape-fill: var(--ui-red-soft, #ffe8e7);
}
.fo-field[data-injury-shape] .fo-status-uncertain[data-injury-shape] {
  --shape-stroke: var(--ui-amber, #935b00);
  --shape-fill: var(--ui-amber-soft, #fff0c5);
}
.fo-field[data-injury-shape] .fo-status-unknown[data-injury-shape] {
  --shape-stroke: var(--ui-unknown, #69746b);
  --shape-fill: var(--ui-unknown-soft, #e7ebe5);
}
.fo-field[data-injury-shape] .fo-position[data-injury-shape] > .fo-shape-position {
  display: block;
  margin: 0;
  padding: 0;
  color: var(--shape-stroke);
  font-size: 10px;
  line-height: 14px;
  white-space: nowrap;
}
.fo-field[data-injury-shape] .fo-position[data-injury-shape] > .fo-shape-glyph {
  display: block;
  width: 56px;
  height: 44.8px;
  overflow: visible;
  flex: none;
}
.fo-field[data-injury-shape] .fo-position-line[data-injury-shape] > .fo-shape-glyph {
  width: 48px;
  height: 38.4px;
}
.fo-field[data-injury-shape] .fo-shape-glyph path {
  fill: var(--shape-fill);
  stroke: var(--shape-stroke);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.fo-field[data-injury-shape] .fo-position[data-injury-shape] > .fo-shape-name {
  display: block;
  flex: none;
  width: max-content;
  max-width: 96px;
  padding: 0;
  overflow: visible;
  overflow-wrap: break-word;
  hyphens: manual;
  text-align: center;
  text-overflow: clip;
  white-space: normal;
  -webkit-line-clamp: unset;
  color: var(--ui-ink, var(--ink));
  font-size: 10px;
  font-weight: 600;
  line-height: 13px;
}
.fo-field[data-injury-shape] .fo-position-line[data-injury-shape] > .fo-shape-name {
  max-width: calc(100% + 8px);
}
.fo-field[data-injury-shape] .fo-position[data-injury-shape] > .fo-return-marker {
  position: absolute;
  top: 21px;
  right: 5px;
  display: grid;
  width: 16px;
  height: 16px;
  overflow: visible;
  color: #fff;
}
.fo-field[data-injury-shape] .fo-position[data-injury-shape][aria-expanded="true"] {
  outline: 2px solid var(--ui-focus, var(--ink));
  outline-offset: 2px;
  z-index: 2;
}
.fo-field[data-injury-shape] .fo-position[data-injury-shape]:focus-visible {
  outline: var(--ui-focus-ring, 3px solid #1268ba);
  outline-offset: 3px;
  z-index: 3;
}
@media (max-width: 600px) {
  .fo-field[data-injury-shape] .fo-position[data-injury-shape] { width: 64px; }
  .fo-field[data-injury-shape] .fo-position-line[data-injury-shape] { width: 52px; }
  .fo-field[data-injury-shape] .fo-position[data-injury-shape] > .fo-shape-glyph { width: 51px; height: 40.8px; }
  .fo-field[data-injury-shape] .fo-position-line[data-injury-shape] > .fo-shape-glyph { width: 44px; height: 35.2px; }
  .fo-field[data-injury-shape] .fo-position[data-injury-shape] > .fo-shape-name { max-width: 80px; }
  .fo-field[data-injury-shape] .fo-position[data-injury-shape] > .fo-return-marker { right: 1px; }
}
@media (max-width: 350px) {
  .fo-field[data-injury-shape] .fo-position[data-injury-shape] { width: 60px; }
  .fo-field[data-injury-shape] .fo-position-line[data-injury-shape] { width: 44px; }
  .fo-field[data-injury-shape] .fo-position-line[data-injury-shape] > .fo-shape-glyph { width: 40px; height: 32px; }
  .fo-field[data-injury-shape] .fo-position[data-injury-shape] > .fo-shape-name { max-width: 72px; font-size: 9px; }
  .fo-field[data-injury-shape] .fo-position-line[data-injury-shape] > .fo-shape-name { max-width: calc(100% + 9px); }
}

.fo-field[data-injury-color="paper"] {
  --color-field: #f4f2e9;
  --color-line: #e4e3d9;
  --color-label: #213b2b;
  --color-focus: #125da8;
  --color-available: #14623b;
  --color-out: #a12439;
  --color-uncertain: #795200;
  --color-unknown: #526056;
  --color-stroke-available: #14623b;
  --color-stroke-out: #a12439;
  --color-stroke-uncertain: #795200;
  --color-stroke-unknown: #526056;
  --color-fill-available: #d1efd8;
  --color-fill-out: #fbd9df;
  --color-fill-uncertain: #ffe8ae;
  --color-fill-unknown: #dce1dd;
  --color-number-available: #173b28;
  --color-number-out: #531421;
  --color-number-uncertain: #493100;
  --color-number-unknown: #263a2e;
}
html[data-theme="dark"] .fo-field[data-injury-color="paper"] {
  --color-field: #282f35;
  --color-line: #3a4248;
  --color-label: #f4f2e9;
  --color-focus: #90c7ff;
  --color-available: #ace6bc;
  --color-out: #ffb3bb;
  --color-uncertain: #ffdd87;
  --color-unknown: #cbd2cf;
  --color-stroke-available: #ace6bc;
  --color-stroke-out: #ffb3bb;
  --color-stroke-uncertain: #ffdd87;
  --color-stroke-unknown: #cbd2cf;
  --color-fill-available: #ace6bc;
  --color-fill-out: #ffb3bb;
  --color-fill-uncertain: #ffdd87;
  --color-fill-unknown: #cbd2cf;
}
.fo-field[data-injury-color] {
  border-color: var(--color-line);
  background-color: var(--color-field);
  background-image: repeating-linear-gradient(to bottom, transparent 0, transparent 32px, var(--color-line) 33px, transparent 34px);
}
.fo-field[data-injury-color]::before {
  border-color: var(--color-line);
  opacity: 1;
}
.fo-field[data-injury-color] .fo-status-available[data-injury-shape] {
  --shape-stroke: var(--color-stroke-available);
  --shape-fill: var(--color-fill-available);
  --shape-number: var(--color-number-available);
  --shape-label: var(--color-available);
}
.fo-field[data-injury-color] .fo-status-out[data-injury-shape] {
  --shape-stroke: var(--color-stroke-out);
  --shape-fill: var(--color-fill-out);
  --shape-number: var(--color-number-out);
  --shape-label: var(--color-out);
}
.fo-field[data-injury-color] .fo-status-uncertain[data-injury-shape] {
  --shape-stroke: var(--color-stroke-uncertain);
  --shape-fill: var(--color-fill-uncertain);
  --shape-number: var(--color-number-uncertain);
  --shape-label: var(--color-uncertain);
}
.fo-field[data-injury-color] .fo-status-unknown[data-injury-shape] {
  --shape-stroke: var(--color-stroke-unknown);
  --shape-fill: var(--color-fill-unknown);
  --shape-number: var(--color-number-unknown);
  --shape-label: var(--color-unknown);
}
.fo-field[data-injury-color] .fo-position[data-injury-shape] {
  min-width: 45px;
}
.fo-field[data-injury-color] .fo-position[data-injury-shape] > .fo-shape-position {
  color: var(--shape-label);
}
.fo-field[data-injury-color] .fo-position[data-injury-shape] > .fo-shape-name {
  color: var(--color-label);
}
.fo-field[data-injury-color] .fo-position-line[data-injury-shape] > .fo-return-marker {
  right: -3px;
}
.fo-field[data-injury-color] .fo-position[data-injury-shape][aria-expanded="true"] {
  outline-color: var(--color-focus);
}
.fo-field[data-injury-color] .fo-position[data-injury-shape]:focus-visible {
  outline: 3px solid var(--color-focus);
}

/* Original vector numerals and uniform color status swatches. */
.fo-field[data-injury-color] .fo-jersey-number {
  fill: var(--shape-number);
  stroke: none;
  pointer-events: none;
}
.fo-field[data-injury-color] .fo-shape-glyph .fo-number-digit {
  fill: var(--shape-number);
  stroke: none;
  stroke-width: 0;
  fill-rule: evenodd;
}
.fo-legend[data-injury-color] .fo-uniform-swatch {
  display: inline-block;
  width: 10px;
  height: 10px;
  flex: 0 0 10px;
  border: 1px solid var(--swatch-stroke);
  border-radius: 2px;
  background: var(--swatch-fill);
}
.fo-legend[data-injury-color="paper"] .fo-uniform-swatch[data-status="available"] { --swatch-fill: #d1efd8; --swatch-stroke: #14623b; }
.fo-legend[data-injury-color="paper"] .fo-uniform-swatch[data-status="out"] { --swatch-fill: #fbd9df; --swatch-stroke: #a12439; }
.fo-legend[data-injury-color="paper"] .fo-uniform-swatch[data-status="uncertain"] { --swatch-fill: #ffe8ae; --swatch-stroke: #795200; }
.fo-legend[data-injury-color="paper"] .fo-uniform-swatch[data-status="unknown"] { --swatch-fill: #dce1dd; --swatch-stroke: #526056; }
html[data-theme="dark"] .fo-legend[data-injury-color="paper"] .fo-uniform-swatch[data-status="available"] { --swatch-fill: #ace6bc; --swatch-stroke: #ace6bc; }
html[data-theme="dark"] .fo-legend[data-injury-color="paper"] .fo-uniform-swatch[data-status="out"] { --swatch-fill: #ffb3bb; --swatch-stroke: #ffb3bb; }
html[data-theme="dark"] .fo-legend[data-injury-color="paper"] .fo-uniform-swatch[data-status="uncertain"] { --swatch-fill: #ffdd87; --swatch-stroke: #ffdd87; }
html[data-theme="dark"] .fo-legend[data-injury-color="paper"] .fo-uniform-swatch[data-status="unknown"] { --swatch-fill: #cbd2cf; --swatch-stroke: #cbd2cf; }

/* Per-field guides and selected-player details share the same layout in every view. */
.fo-unit-panel > .fo-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  margin: 10px 0 14px;
  color: var(--ui-muted);
  font-size: 12px;
  line-height: 1.5;
}
.fo-unit-panel > .fo-legend .fo-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.fo-unit-panel > .fo-legend .fo-return-guide {
  flex-basis: 100%;
}
.fo-player-heading {
  display: block;
  font-size: 16px;
  color: var(--ui-ink);
}
.fo-player-status {
  margin: 8px 0;
}
.fo-report-details {
  font-size: 12px;
  color: var(--ui-muted);
  overflow-wrap: anywhere;
}
.fo-report-details summary {
  min-height: var(--ui-tap, 44px);
  padding: 10px 0;
  cursor: pointer;
  font-weight: 600;
}
.qb-return .qb-return-label {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  margin: 8px 0;
  color: var(--ui-ink);
}
.qb-return .qb-return-label > .qb-return-days {
  display: block;
  font: 750 clamp(48px, 36cqi, 88px)/1 var(--ui-font-display);
  letter-spacing: -.04em;
  white-space: nowrap;
  color: var(--ui-ink);
  font-variant-numeric: tabular-nums;
}
.qb-return .qb-return-unit {
  display: block;
  max-width: 180px;
  font-size: 16px;
  line-height: 1.3;
  color: var(--ui-ink);
}
.qb-return .qb-return-state {
  margin: 6px 0;
  font-size: 13px;
  font-weight: 650;
  color: var(--ui-ink);
}
.qb-return .qb-return-date {
  margin: 6px 0;
  font-size: 13px;
  color: var(--ui-muted);
}
.qb-return .qb-return-headline {
  display: block;
  font: 650 24px/1.25 var(--ui-font-display);
  color: var(--ui-ink);
}
.qb-return .qb-return-sources {
  overflow-wrap: anywhere;
}
.fo-availability-card .qb-return-sources summary:focus-visible,
.fo-report-details summary:focus-visible {
  outline: var(--ui-focus-ring);
  outline-offset: 3px;
}

/* Selected-player return dates and evidence-led injury diagrams. */
.qb-return .qb-return-topline {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px;
}
.qb-return .qb-return-label {
  min-width: 0;
  margin: 0;
}
.qb-return .qb-return-unit {
  max-width: 170px;
}
.qb-return .qb-return-date {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
  padding: 10px;
  margin: 4px 0 0;
  border: 1px solid #125da8;
  border-radius: 8px;
  background: #e8f1ff;
  color: #124f8d;
  font-size: 13px;
  line-height: 1.3;
}
.qb-return-date-label {
  font-size: 11px;
}
.qb-return-target {
  font-weight: 700;
}
.qb-return .qb-return-state {
  margin: 10px 0 0;
}
.qb-return-season .qb-return-topline,
.qb-return-unavailable .qb-return-topline {
  grid-template-columns: minmax(0, 1fr);
}
@container qb-return (max-width: 400px) {
  .qb-return .qb-return-topline { grid-template-columns: minmax(0, 1fr); }
}
.fo-injury-profile {
  --body-fill: #e5e9e5;
  --body-helmet: #d3dfd7;
  --body-outline: #40564a;
  --body-major: #bd2639;
  --body-minor: #f5c742;
  min-width: 0;
  margin: 20px 0 14px;
}
.fo-injury-profile .fo-injury-title {
  margin: 0 0 14px;
  color: var(--ui-ink);
  font: 650 clamp(24px, 5vw, 34px)/1.15 var(--ui-font-display);
  overflow-wrap: anywhere;
}
.fo-body-figure {
  max-width: 300px;
  margin: 0 auto;
}
.fo-injury-body {
  display: block;
  width: 100%;
  height: auto;
}
.fo-body-outline,
.fo-body-neck,
.fo-body-helmet {
  fill: var(--body-fill);
  stroke: var(--body-outline);
  stroke-width: 2;
  stroke-linejoin: round;
}
.fo-body-helmet { fill: var(--body-helmet); }
.fo-body-equipment {
  fill: none;
  stroke: var(--body-outline);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.fo-body-edge {
  fill: none;
  stroke: var(--body-outline);
  stroke-width: 2;
  stroke-linejoin: round;
}
.fo-body-side {
  fill: var(--ui-ink);
  font: 650 12px sans-serif;
}
.fo-body-region {
  stroke: none;
}
.fo-body-major {
  fill: var(--body-major);
}
.fo-body-minor {
  fill: var(--body-minor);
}
/* A dashed edge marks an injury on the back of the body, drawn at its height on the front view. */
.fo-body-rear {
  stroke: var(--ui-ink);
  stroke-width: 1.5;
  stroke-dasharray: 4 3;
}
.fo-body-figure figcaption,
.fo-body-unmapped,
.fo-injury-fact-context {
  display: block;
  margin: 8px 0;
  color: var(--ui-muted);
  font-size: 12px;
  line-height: 1.5;
}
.fo-body-figure figcaption { text-align: center; }
.fo-injury-facts {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}
.fo-injury-fact {
  padding: 8px 0;
  border-top: 1px solid var(--ui-rule);
}
.fo-injury-fact > strong {
  font-size: 14px;
  color: var(--ui-ink);
}
.fo-injury-fact-context { margin: 3px 0 0; }
.fo-injury-evidence {
  margin: 12px 0;
  padding-top: 10px;
  border-top: 1px solid var(--ui-rule);
}
.fo-injury-evidence h5 {
  font-size: 13px;
  margin: 0 0 5px;
}
.fo-injury-ranking {
  margin-top: 32px;
  min-width: 0;
}
.fo-injury-ranking > h3 {
  margin-bottom: 8px;
  font: 600 26px/1.25 var(--ui-font-display);
}
.fo-injury-ranking > .fo-section-note { margin-bottom: 18px; }
.injury-ranking-table {
  --injury-total-fill: #d1efd8;
  --injury-total-ink: #14623b;
  --injury-out-fill: #fbd9df;
  --injury-out-ink: #a12439;
  --injury-uncertain-fill: #ffe8ae;
  --injury-uncertain-ink: #795200;
}
.injury-ranking-table .slim-column-total { width: 100px; }
.injury-ranking-table .slim-column-out { width: 72px; }
.injury-ranking-table .slim-column-uncertain { width: 108px; }
.injury-ranking-table .slim-team-button { width: 100%; }
/* Count colors outrank the row hover and press fills so the numbers keep their contrast. */
.injury-ranking-table .slim-row .injury-count-total,
.injury-ranking-table thead .injury-count-total {
  background: var(--injury-total-fill);
  color: var(--injury-total-ink);
  font-weight: 750;
}
.injury-ranking-table .slim-row .injury-count-out,
.injury-ranking-table thead .injury-count-out {
  background: var(--injury-out-fill);
  color: var(--injury-out-ink);
}
.injury-ranking-table .slim-row .injury-count-uncertain,
.injury-ranking-table thead .injury-count-uncertain {
  background: var(--injury-uncertain-fill);
  color: var(--injury-uncertain-ink);
}
.injury-ranking-table thead .slim-score {
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.25;
  padding-top: 7px;
  padding-bottom: 7px;
}
html[data-theme="dark"] .injury-ranking-table {
  --injury-total-fill: #ace6bc;
  --injury-total-ink: #173b28;
  --injury-out-fill: #ffb3bb;
  --injury-out-ink: #531421;
  --injury-uncertain-fill: #ffdd87;
  --injury-uncertain-ink: #493100;
}
html[data-theme="dark"] .qb-return .qb-return-date {
  border-color: #9bc9ff;
  color: #c3dfff;
  background: #183850;
}
html[data-theme="dark"] .fo-injury-profile {
  --body-fill: #303e37;
  --body-helmet: #40594a;
  --body-outline: #c2d2c8;
  --body-major: #ff7f8e;
  --body-minor: #ffdc74;
}
@media (max-width: 600px) {
  .injury-ranking-table .slim-column-total { width: 48px; }
  .injury-ranking-table .slim-column-out { width: 32px; }
  .injury-ranking-table .slim-column-uncertain { width: 66px; }
  .injury-ranking-table .slim-team-button { gap: 4px; }
  .injury-ranking-table .slim-record { display: inline; }
}
@media (max-width: 350px) {
  .injury-ranking-table .slim-column-total { width: 44px; }
  .injury-ranking-table .slim-column-out { width: 28px; }
  .injury-ranking-table .slim-column-uncertain { width: 64px; }
  .qb-return .qb-return-topline { gap: 8px; }
  .qb-return .qb-return-date { padding: 8px; }
  .qb-return .qb-return-unit { font-size: 14px; }
}

.fo-injury-profile-compact {
  margin: 14px 0;
}
.fo-injury-profile-compact .fo-injury-title {
  font-size: 18px;
  margin-bottom: 0;
}
.fo-body-key {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin: 12px 0;
  color: var(--ui-muted);
  font-size: 11px;
  line-height: 1.5;
}
.fo-body-key-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.fo-body-key-swatch {
  width: 12px;
  height: 12px;
  flex: none;
  border: 1px solid var(--body-outline);
  border-radius: 3px;
}
.fo-body-key-major { background: var(--body-major); }
.fo-body-key-minor { background: var(--body-minor); }
.fo-impact-summary {
  display: inline-block;
  padding: 5px 8px;
  margin: 0 0 12px;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 650;
}
.fo-impact-major {
  background: #fbd9df;
  color: #a12439;
}
.fo-impact-minor {
  background: #ffe8ae;
  color: #795200;
}
html[data-theme="dark"] .fo-impact-major {
  background: #ffb3bb;
  color: #531421;
}
html[data-theme="dark"] .fo-impact-minor {
  background: #ffdd87;
  color: #493100;
}
