.coach-page { background: #ebe7e5; }

.coach-wrap {
  width: min(1130px, calc(100% - 72px));
  margin: 46px auto 67px;
}

.coach-sheet {
  overflow: hidden;
  background: #fff;
  border: 1px solid #d6cdca;
  box-shadow: 0 22px 56px #27151715;
}

.coach-masthead {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(230px, .95fr);
  align-items: stretch;
  gap: 1.5rem;
  padding: clamp(2.1rem, 5.6vw, 4.25rem);
  background: #211b1d;
  color: #f9f4f1;
  isolation: isolate;
}

.coach-masthead::before {
  content: "";
  z-index: -1;
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(0deg, transparent 0 24px, #ffffff0c 24px 25px),
    linear-gradient(119deg, transparent 0 64%, #c22a4e 64% 64.4%, #6e1429 64.4% 100%);
}

.coach-masthead::after {
  content: "";
  z-index: -1;
  position: absolute;
  inset: 0 0 0 40%;
  pointer-events: none;
  background:
    radial-gradient(ellipse 47% 63% at 74% 100%, transparent 98.5%, #ffdee250 99% 99.5%, transparent 100%),
    radial-gradient(circle 64px at 74% 70%, transparent 62px, #ffdee24a 63px, transparent 64px),
    linear-gradient(90deg, transparent 73.7%, #f7dbe640 74% 74.2%, transparent 74.5%);
  animation: coach-court-entry 650ms ease-out both;
}

@keyframes coach-court-entry {
  from { clip-path: inset(0 0 0 100%); }
  to { clip-path: inset(0); }
}

.coach-identity { align-self: center; }
.coach-identity .eyebrow { color: #ff9cb2; }

.coach-identity h1 {
  font-size: clamp(3.9rem, 8vw, 7.25rem);
  line-height: .9;
  margin: .15em 0 .22em;
}

.coach-identity h1 span { color: #ef5779; }
.coach-school { color: #fff7f8; font-family: var(--display); font-size: clamp(1.3rem, 3vw, 1.95rem); font-weight: 700; }
.coach-goal { margin-top: .75rem; max-width: 45ch; color: #e0d7d8; }

.coach-portrait {
  min-width: 0;
  margin: 0;
  position: relative;
  aspect-ratio: 1.4;
  min-height: 200px;
  overflow: hidden;
  background: #342128;
  border-bottom: 3px solid #f25a7d;
}

.coach-portrait img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 26%;
}

.coach-sheet-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .6rem .75rem;
  padding: 1.3rem clamp(1.25rem, 5.6vw, 4.25rem);
  border-bottom: 1px solid #e0d7d4;
}

.coach-sheet-actions .button { padding: .65rem 1rem; }
.coach-sheet-actions [hidden] { display: none; }
.copy-status { color: #5c4e4f; font-size: .875rem; }
.copy-status:empty { display: none; }
.copy-fallback { width: 100%; font-size: .875rem; }
.copy-fallback label { display: block; font-weight: 600; }

.copy-fallback textarea {
  display: block;
  width: 100%;
  margin-top: .45rem;
  padding: .65rem;
  border: 1px solid #b4a6a9;
  border-radius: 0;
  color: inherit;
  font: inherit;
  resize: vertical;
}

.coach-evidence {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, .82fr);
  gap: clamp(1.7rem, 5vw, 4.4rem);
  padding: clamp(1.65rem, 4.5vw, 3rem) clamp(1.25rem, 5.6vw, 4.25rem);
}

.coach-sheet h2 { font-size: clamp(1.9rem, 4vw, 2.55rem); line-height: 1; }
.coach-film-list { padding: 0; margin: 1rem 0 .75rem; list-style: none; border-top: 1px solid #e0d7d4; }

.coach-film-list li {
  min-width: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .5rem 1rem;
  padding: .75rem 0;
  border-bottom: 1px solid #e0d7d4;
}

.coach-reel-link { color: #251e20; font-size: 1.0625rem; font-weight: 700; }
.coach-reel-link:hover { color: var(--red); }
.coach-film-list li span { display: block; color: #62575a; font-size: .875rem; margin-top: .18rem; }
.coach-hudl-link { padding: .25rem 0 .25rem .3rem; font-size: .875rem; flex-shrink: 0; }

.coach-hudl-link, .coach-secondary-links a, .coach-season a, .coach-contact a {
  text-decoration: underline;
  text-underline-offset: .19em;
}

.coach-secondary-links { display: flex; flex-wrap: wrap; gap: .35rem 1.2rem; font-size: .875rem; font-weight: 600; }
.coach-source, .coach-stat-label, .coach-honor p:not(.eyebrow) { font-size: .875rem; color: #62575a; }
.coach-stat-label { margin: .6rem 0 .7rem; }
.coach-season { align-self: start; }

.coach-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 0 .55rem;
  padding: .65rem 0;
  border-block: 1px solid #e0d7d4;
}

.coach-stat-grid > div { display: flex; flex-direction: column-reverse; align-items: start; }
.coach-stat-grid dt { font-size: .875rem; color: #62575a; }
.coach-stat-grid dd { margin: 0; font: 800 3.05rem/.9 var(--display); color: #981936; }

.coach-honor {
  margin-top: 1.45rem;
  padding: .8rem .9rem;
  border-left: 3px solid #bc173c;
  background: #f5eeef;
}

.coach-honor .eyebrow { color: #8a1b34; font-size: .8125rem; letter-spacing: .08em; }
.coach-honor h3 { font-size: 1.65rem; margin: .22rem 0 .3rem; }
.coach-milestones { margin: .65rem 0 0; padding-left: 1.1rem; font-size: .875rem; }
.coach-milestones li + li { margin-top: .25rem; }

.coach-contact {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .85rem 1.8rem;
  padding: 1.45rem clamp(1.25rem, 5.6vw, 4.25rem);
  border-top: 1px solid #e0d7d4;
  background: #f7f2f2;
}

.coach-contact p { margin: .5rem 0 .25rem; }
.coach-contact a { display: inline-block; margin-right: .65rem; overflow-wrap: anywhere; }
.coach-public-profiles { align-self: end; }
.coach-public-profiles a { display: block; margin: .25rem 0; }
.coach-public-profiles .coach-hudl-address { display: none; }

@media (max-width: 760px) {
  .coach-wrap { width: calc(100% - 30px); margin-top: 24px; margin-bottom: 40px; }
  .coach-masthead, .coach-evidence { grid-template-columns: minmax(0, 1fr); }
  .coach-masthead { padding: 1.4rem 1.25rem 1.25rem; }
  .coach-portrait { aspect-ratio: 16 / 10; min-height: 152px; }
}

@media (prefers-reduced-motion: reduce) {
  .coach-masthead::after { animation: none; }
}

@page { size: letter; margin: .44in; }

@media print {
  html, .coach-page { background: white; }
  .coach-page { font-size: 10pt; line-height: 1.35; }
  .coach-site-header, .coach-site-footer, .coach-sheet-actions, .skip-link { display: none; }
  .coach-wrap { width: auto; margin: 0; }
  .coach-sheet { box-shadow: none; border: 0; print-color-adjust: exact; }
  .coach-masthead { grid-template-columns: minmax(0, 1.6fr) minmax(160px, .8fr); gap: .8rem; padding: .85rem 1rem; }
  .coach-masthead::after { animation: none; }
  .coach-identity h1 { font-size: 39pt; }
  .coach-identity .eyebrow { font-size: 9pt; }
  .coach-school { font-size: 14pt; }
  .coach-goal { margin-top: .3rem; }
  .coach-portrait { aspect-ratio: 1.7; min-height: 110px; }
  .coach-evidence { grid-template-columns: minmax(0, 1.18fr) minmax(0, .84fr); gap: 1rem; padding: 1rem; }
  .coach-sheet h2 { font-size: 18pt; }
  .coach-film-list { margin-block: .5rem; }
  .coach-film-list li { padding: .42rem 0; }
  .coach-film-list li span, .coach-hudl-link, .coach-source, .coach-stat-label, .coach-honor p:not(.eyebrow) { font-size: 9pt; }
  .coach-reel-link { font-size: 10pt; }
  .coach-secondary-links, .coach-public-profiles > a:not(.coach-hudl-address) { display: none; }
  .coach-honor { margin-top: .7rem; padding: .55rem .65rem; }
  .coach-milestones { font-size: 9pt; }
  .coach-stat-grid dd { font-size: 25pt; }
  .coach-contact { padding: .8rem 1rem; }
  .coach-public-profiles .coach-hudl-address { display: inline-block; font-size: 9pt; }
  .coach-masthead, .coach-film-list, .coach-honor, .coach-contact { break-inside: avoid; }
}
