/* Coach-only content and filters; the card layout uses the shared player hero. */

.coach-career-summary {
  min-width: 0;
  color: #151515;
  font-family: helvetica, arial, sans-serif;
  font-size: 1rem;
  line-height: 1.24;
}

.coach-person-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 3px 22px;
  margin-bottom: 14px;
}

.coach-person-meta .coach-full-name {
  flex-basis: 100%;
}

.coach-person-meta .coach-player-link {
  flex-basis: 100%;
}

.coach-filter-description {
  margin: 0 0 5px;
  padding: 3px 6px;
  background: #483d8b;
  color: #fff;
  font-size: 1.08rem;
  line-height: 1.15;
}

.coach-career-facts {
  display: grid;
  grid-template-columns: repeat(2, max-content);
  gap: 2px 14px;
  margin: 0;
}

.coach-career-facts > div {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 7px;
}

.coach-career-facts dt {
  font-weight: 700;
}

.coach-career-facts dd {
  margin: 0;
}

.coach-summary-section {
  margin-top: 18px;
}

.coach-summary-section h3 {
  margin: 0 0 2px;
  padding: 3px 6px;
  background: #f0eff8;
  color: #483d8b;
  font-size: 1rem;
}

.coach-summary-section > div {
  margin: 1px 3px;
}

.coach-summary-table {
  width: max-content;
  max-width: 100%;
  border-collapse: collapse;
  font-size: .94rem;
  line-height: 1.15;
}

.coach-summary-table th,
.coach-summary-table td {
  padding: 2px 6px;
  border-bottom: 1px solid #e1e0ea;
  text-align: left;
  white-space: nowrap;
}

.coach-summary-table th {
  width: 1%;
  font-weight: 700;
}

.coach-summary-table td {
  width: 1%;
  text-align: right;
}

.coach-summary-table td.coach-summary-detail {
  width: auto;
  text-align: left;
}

.coach-summary-table-wide {
  width: 540px;
  max-width: 100%;
  table-layout: fixed;
}

.coach-summary-table-wide .coach-summary-label-column {
  width: 44%;
}

.coach-summary-table-wide .coach-summary-count-column {
  width: 14%;
}

.coach-summary-table-wide .coach-summary-record-column {
  width: 18%;
}

.coach-summary-table-wide .coach-summary-percent-column {
  width: 24%;
}

.coach-summary-table tr:last-child > * {
  border-bottom: 0;
}

.coach-filter-rail {
  min-width: 0;
  align-self: start;
}

.coach-filter-panel {
  border: 1px solid #d9d8e7;
  background: #fafafe;
}

.coach-filter-panel > summary {
  cursor: pointer;
  padding: 7px 10px;
  background: #efeff7;
  color: #29235c;
  font-weight: 700;
  user-select: none;
}

.coach-filter-panel[open] > summary {
  border-bottom: 1px solid #d9d8e7;
}

.coach-filter-content {
  display: grid;
  gap: 5px;
  padding: 7px;
}

.coach-filter-row {
  display: grid;
  grid-template-columns: 70px 1fr;
  align-items: stretch;
  background: #f1f0f8;
}

.coach-filter-label {
  display: flex;
  align-items: center;
  padding: 5px 8px;
  color: #393466;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.coach-filter-options {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 4px;
  background: #fff;
}

.coach-filter-button {
  display: inline-flex;
  align-items: center;
  min-height: 29px;
  padding: 4px 9px;
  border: 1px solid #c7c4db;
  border-radius: 4px;
  background: #fff;
  color: #211d50;
  font: 600 .86rem/1.2 helvetica, arial, sans-serif;
  text-decoration: none;
  box-sizing: border-box;
}

.coach-filter-button:hover {
  border-color: #483d8b;
  background: #f3f1ff;
  text-decoration: none;
}

.coach-filter-button.is-active {
  border-color: #483d8b;
  border-bottom: 3px solid #ee702f;
  background: #55499a;
  color: #fff;
}

.coach-filter-button.is-disabled,
.coach-filter-row.is-disabled .coach-filter-label {
  color: #999;
}

.coach-filter-button.is-disabled {
  border-color: #ddd;
  background: #eee;
  cursor: not-allowed;
  opacity: .62;
}

.coach-admin-note {
  margin-top: 14px;
}

@media (max-width: 640px) {
  .coach-career-facts {
    grid-template-columns: 1fr;
  }

  .coach-filter-row {
    grid-template-columns: 1fr;
  }

  .coach-filter-label {
    padding-bottom: 2px;
  }
}
