/* Longhorns Coaches Widget — fully namespaced under .lhc */
.lhc {
  --lhc-orange: #BF5700;
  --lhc-orange-dark: #8E3F00;
  --lhc-orange-light: #E87722;
  --lhc-cream: #FBF5EC;
  --lhc-ink: #1B1B1B;
  --lhc-ink-soft: #2E2E2E;
  --lhc-line: #E5DCC8;
  --lhc-line-strong: #C9BFA8;
  --lhc-gold: #C9A227;
  --lhc-shadow: 0 1px 2px rgba(20,12,0,.06), 0 8px 24px rgba(20,12,0,.06);
  --lhc-shadow-lg: 0 4px 12px rgba(20,12,0,.10), 0 24px 60px rgba(20,12,0,.12);
  --lhc-radius: 10px;
  --lhc-radius-lg: 16px;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--lhc-ink);
  background: var(--lhc-cream);
  border-radius: var(--lhc-radius-lg);
  overflow: hidden;
}

.lhc *, .lhc *::before, .lhc *::after { box-sizing: border-box; }
.lhc a { color: var(--lhc-orange-dark); text-decoration: none; border-bottom: 1px solid rgba(143,63,0,.3); }
.lhc a:hover { border-bottom-color: var(--lhc-orange); }

/* HERO ====================================================== */
.lhc-hero {
  position: relative;
  color: #fff;
  background: linear-gradient(135deg, #8E3F00 0%, var(--lhc-orange) 50%, #D8651A 100%);
  padding: 64px 24px 56px;
  overflow: hidden;
  border-bottom: 6px solid var(--lhc-ink);
  text-align: center;
}
.lhc-hero-bg {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 15% 20%, rgba(255,255,255,.10), transparent 35%),
    radial-gradient(circle at 85% 80%, rgba(0,0,0,.25), transparent 40%);
  pointer-events: none;
}
.lhc-hero-inner { position: relative; max-width: 1180px; margin: 0 auto; }
.lhc-logo-wrap {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 22px;
  background: #fff; color: var(--lhc-orange);
  border-radius: 10px; margin-bottom: 20px;
  box-shadow: 0 6px 20px rgba(0,0,0,.25);
}
.lhc-logo { width: 130px; height: auto; display: block; }
.lhc-kicker {
  font-family: 'Bebas Neue', 'Inter', sans-serif;
  letter-spacing: .25em;
  font-size: 13px;
  margin: 0 0 6px;
  color: rgba(255,255,255,.85);
  text-transform: uppercase;
  font-weight: 600;
}
.lhc-hero h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 900;
  font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -.01em;
  margin: 0 0 12px;
  color: #fff;
}
.lhc-subtitle {
  max-width: 720px;
  margin: 0 auto;
  font-size: clamp(1rem, 1.3vw, 1.12rem);
  color: rgba(255,255,255,.92);
}
.lhc-hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 14px;
  max-width: 720px;
  margin: 36px auto 0;
}
.lhc-stat {
  background: rgba(0,0,0,.22);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--lhc-radius);
  padding: 14px 8px;
  text-align: center;
}
.lhc-stat-num {
  display: block;
  font-family: 'Bebas Neue', 'Inter', sans-serif;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  letter-spacing: .02em;
  line-height: 1;
  font-weight: 700;
}
.lhc-stat-label {
  display: block; margin-top: 4px;
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: rgba(255,255,255,.85);
}

/* MAIN ====================================================== */
.lhc-main { padding: 48px 24px 56px; max-width: 1180px; margin: 0 auto; }
.lhc-section-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 900;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  margin: 0 0 24px;
  color: var(--lhc-ink);
}

/* HIGHLIGHTS ================================================ */
.lhc-highlights { margin-bottom: 40px; }
.lhc-legend-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
.lhc-legend {
  background: #fff;
  border: 1px solid var(--lhc-line);
  border-radius: var(--lhc-radius-lg);
  padding: 22px;
  box-shadow: var(--lhc-shadow);
  position: relative;
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
  cursor: pointer;
}
.lhc-legend:hover { transform: translateY(-2px); box-shadow: var(--lhc-shadow-lg); }
.lhc-legend::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: var(--lhc-orange);
}
.lhc-legend.lhc-gold-card::before { background: linear-gradient(90deg, var(--lhc-gold), var(--lhc-orange)); }
.lhc-legend-tag {
  display: inline-block;
  font-family: 'Bebas Neue', 'Inter', sans-serif;
  letter-spacing: .15em;
  font-size: 11px;
  font-weight: 700;
  background: var(--lhc-orange);
  color: #fff;
  padding: 3px 8px;
  border-radius: 4px;
  margin-bottom: 12px;
}
.lhc-legend.lhc-gold-card .lhc-legend-tag { background: var(--lhc-gold); color: var(--lhc-ink); }
.lhc-legend-name {
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  font-size: 1.4rem;
  margin: 0 0 4px;
  color: var(--lhc-ink);
  line-height: 1.1;
}
.lhc-legend-years { font-size: 13px; color: #6b6b6b; margin: 0 0 12px; }
.lhc-legend-stat {
  font-family: 'Bebas Neue', 'Inter', sans-serif;
  font-size: 1.6rem;
  color: var(--lhc-orange-dark);
  letter-spacing: .02em;
  line-height: 1;
  font-weight: 700;
}
.lhc-legend-stat-label {
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #888;
  margin-top: 4px;
}

/* CONTROLS ================================================== */
.lhc-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  margin-bottom: 24px;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--lhc-line);
  border-radius: var(--lhc-radius-lg);
  box-shadow: var(--lhc-shadow);
}
.lhc-search-wrap {
  position: relative;
  flex: 1 1 260px;
  min-width: 220px;
}
.lhc-search-icon {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  width: 18px; height: 18px; color: #888;
}
.lhc input[type="search"] {
  width: 100%;
  padding: 10px 14px 10px 38px;
  font: inherit;
  font-size: 15px;
  background: var(--lhc-cream);
  border: 1px solid var(--lhc-line);
  border-radius: var(--lhc-radius);
  outline: none;
  color: var(--lhc-ink);
  transition: border-color .15s, box-shadow .15s;
}
.lhc input[type="search"]:focus { border-color: var(--lhc-orange); box-shadow: 0 0 0 3px rgba(191,87,0,.15); }
.lhc-filter-chips {
  display: flex; flex-wrap: wrap; gap: 8px;
  flex: 2 1 auto;
}
.lhc-chip {
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--lhc-cream);
  color: var(--lhc-ink-soft);
  border: 1px solid var(--lhc-line-strong);
  cursor: pointer;
  transition: all .15s;
  white-space: nowrap;
  line-height: 1.2;
}
.lhc-chip:hover { background: #fff; border-color: var(--lhc-orange); color: var(--lhc-orange-dark); }
.lhc-chip.lhc-active {
  background: var(--lhc-orange);
  color: #fff;
  border-color: var(--lhc-orange);
  box-shadow: 0 3px 10px rgba(191,87,0,.3);
}

/* TABLE ===================================================== */
.lhc-table-section { margin-bottom: 32px; }
.lhc-table-wrap {
  overflow-x: auto;
  background: #fff;
  border: 1px solid var(--lhc-line);
  border-radius: var(--lhc-radius-lg);
  box-shadow: var(--lhc-shadow);
}
.lhc-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 800px;
  margin: 0;
}
.lhc-table thead {
  background: var(--lhc-ink);
  color: #fff;
}
.lhc-table th {
  font-family: 'Bebas Neue', 'Inter', sans-serif;
  letter-spacing: .12em;
  font-size: 13px;
  text-align: left;
  padding: 14px 16px;
  font-weight: 600;
  border-bottom: 3px solid var(--lhc-orange);
  user-select: none;
  white-space: nowrap;
  color: #fff;
}
.lhc-table th.lhc-num { text-align: right; }
.lhc-table th.lhc-sortable { cursor: pointer; }
.lhc-table th.lhc-sortable:hover { background: var(--lhc-orange-dark); }
.lhc-table th.lhc-sortable::after {
  content: '';
  display: inline-block;
  margin-left: 6px;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid rgba(255,255,255,.4);
  vertical-align: middle;
  opacity: .5;
}
.lhc-table th.lhc-sort-asc::after  { border-top: none; border-bottom: 5px solid #fff; opacity: 1; }
.lhc-table th.lhc-sort-desc::after { border-top: 5px solid #fff; opacity: 1; }
.lhc-table tbody tr {
  border-bottom: 1px solid var(--lhc-line);
  transition: background .12s;
  cursor: pointer;
}
.lhc-table tbody tr:nth-child(even) { background: rgba(191,87,0,.025); }
.lhc-table tbody tr:hover { background: rgba(191,87,0,.10); }
.lhc-table tbody tr.lhc-selected { background: rgba(191,87,0,.18); }
.lhc-table td {
  padding: 12px 16px;
  font-size: 14.5px;
  vertical-align: middle;
  color: var(--lhc-ink);
}
.lhc-table td.lhc-num { text-align: right; font-variant-numeric: tabular-nums; }
.lhc-coach-name {
  font-weight: 700;
  color: var(--lhc-ink);
}
.lhc-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  padding: 2px 6px;
  border-radius: 3px;
  margin-left: 6px;
  vertical-align: middle;
  text-transform: uppercase;
}
.lhc-badge.lhc-hof { background: var(--lhc-gold); color: var(--lhc-ink); }
.lhc-badge.lhc-current { background: var(--lhc-orange); color: #fff; }
.lhc-badge.lhc-goat { background: linear-gradient(135deg, var(--lhc-gold), var(--lhc-orange)); color: #fff; }
.lhc-medal { display: inline-block; min-width: 22px; text-align: center; font-weight: 700; }
.lhc-medal.lhc-has { color: var(--lhc-orange-dark); }
.lhc-medal.lhc-gold { color: var(--lhc-gold); font-weight: 800; }
.lhc-empty {
  text-align: center;
  padding: 36px 20px;
  color: #777;
  font-style: italic;
}

/* DETAIL CARD =============================================== */
.lhc-detail-section { margin-top: 8px; }
.lhc-detail-heading {
  font-family: 'Bebas Neue', 'Inter', sans-serif;
  letter-spacing: .14em;
  font-size: 14px;
  font-weight: 600;
  color: #777;
  margin: 0 0 12px;
  text-transform: uppercase;
}
.lhc-detail-card {
  background: #fff;
  border: 1px solid var(--lhc-line);
  border-left: 5px solid var(--lhc-orange);
  border-radius: var(--lhc-radius);
  padding: 24px;
  box-shadow: var(--lhc-shadow);
  color: var(--lhc-ink);
}
.lhc-detail-card.lhc-placeholder {
  color: #888; font-style: italic; text-align: center; border-left-color: var(--lhc-line-strong);
}
.lhc-detail-card h4 {
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  font-size: 1.5rem;
  margin: 0 0 4px;
  color: var(--lhc-ink);
}
.lhc-detail-card .lhc-meta {
  font-size: 13px; color: #6b6b6b; margin-bottom: 12px;
}
.lhc-detail-card .lhc-stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
  margin: 16px 0;
}
.lhc-mini-stat {
  background: var(--lhc-cream);
  border-radius: var(--lhc-radius);
  padding: 10px 12px;
  text-align: center;
}
.lhc-mini-stat .lhc-v {
  font-family: 'Bebas Neue', 'Inter', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--lhc-orange-dark);
  line-height: 1;
}
.lhc-mini-stat .lhc-l {
  font-size: 10.5px; text-transform: uppercase; letter-spacing: .1em; color: #888; margin-top: 4px;
}
.lhc-detail-card .lhc-note {
  margin-top: 6px; line-height: 1.6;
}

/* FOOTER ==================================================== */
.lhc-footer {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--lhc-line-strong);
  font-size: 13px;
  color: #6b6b6b;
}
.lhc-footer a { color: var(--lhc-orange-dark); }
.lhc-disclaimer { font-size: 12px; margin-top: 8px; }

/* RESPONSIVE ================================================= */
@media (max-width: 720px) {
  .lhc-hero { padding: 44px 16px 36px; }
  .lhc-hero-stats { grid-template-columns: repeat(2, 1fr); }
  .lhc-main { padding: 32px 14px 48px; }
  .lhc-controls { padding: 14px; }
  .lhc-table td, .lhc-table th { padding: 10px 10px; font-size: 13.5px; }
}
