/* Contract board — a distinct, broadcast-style surface for the ACHL free-agent tracker. */
.achl-failed-sign {
  --afs-gold: #e9b750;
  --afs-cyan: #79d7dc;
  --afs-ink: #07111b;
  --afs-panel: #101c28;
  --afs-border: rgba(196, 217, 233, .12);
  max-width: 1320px;
  margin: 30px auto 68px;
  padding: 0 26px;
  color: #f4f7fa;
}

.achl-failed-sign * { box-sizing: border-box; }
.achl-failed-sign button, .achl-failed-sign input { font: inherit; }

.afs-hero {
  isolation: isolate;
  position: relative;
  overflow: hidden;
  min-height: 340px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  align-items: center;
  gap: 32px;
  padding: 48px 56px;
  border: 1px solid rgba(155, 199, 228, .2);
  border-radius: 22px;
  background:
    radial-gradient(ellipse at 83% 50%, rgba(14, 99, 144, .44), transparent 36%),
    radial-gradient(ellipse at 15% 0%, rgba(37, 102, 137, .32), transparent 44%),
    linear-gradient(112deg, #0a1928 0%, #0a1c2c 48%, #102c40 100%);
  box-shadow: 0 26px 58px rgba(0, 0, 0, .3), inset 0 1px rgba(255, 255, 255, .06);
}

.afs-hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  opacity: .23;
  background-image: linear-gradient(120deg, transparent 0 59%, rgba(110, 185, 219, .12) 59.1% 59.3%, transparent 59.5%), repeating-linear-gradient(120deg, transparent 0 33px, rgba(204, 230, 243, .045) 34px 35px, transparent 36px 67px);
  mask-image: linear-gradient(90deg, transparent 8%, #000 100%);
}

.afs-hero-copy, .afs-hero-score { position: relative; z-index: 1; }
.afs-eyebrow, .afs-section-kicker, .afs-summary-kicker, .afs-score-label, .afs-status-indicator, .afs-market-note small, .afs-rating span, .afs-ratings-heading span, .afs-team-name small, .afs-footer-tag { font-family: var(--achl-font-display, "Arial Narrow", sans-serif); font-weight: 700; letter-spacing: .12em; }
.afs-eyebrow { display: flex; align-items: center; gap: 10px; color: #9dc8df; font-size: 13px; }
.afs-eyebrow-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--afs-gold); box-shadow: 0 0 13px rgba(233, 183, 80, .85); }
.afs-hero h1 { max-width: 730px; margin: 17px 0 14px; color: #fff; font: 700 clamp(48px, 6vw, 76px)/.9 var(--achl-font-display, "Arial Narrow", sans-serif); letter-spacing: -.015em; }
.afs-hero h1 span { color: var(--afs-gold); }
.afs-hero-copy > p { max-width: 600px; margin: 20px 0 18px; color: #c4d1dc; font-size: 17px; line-height: 1.55; }
.afs-hero-note { display: flex; align-items: center; gap: 9px; color: #8eaabd; font-size: 13px; font-weight: 600; }
.afs-note-icon { display: inline-grid; place-items: center; width: 21px; height: 21px; border: 1px solid rgba(121, 215, 220, .52); border-radius: 50%; color: var(--afs-cyan); font-size: 14px; }

.afs-hero-score { display: grid; justify-items: center; gap: 11px; padding: 7px 0 3px 24px; border-left: 1px solid rgba(220, 239, 248, .14); text-align: center; }
.afs-score-ring { width: 142px; height: 142px; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 1px solid rgba(233, 183, 80, .58); border-radius: 50%; background: radial-gradient(circle, rgba(234, 185, 87, .12) 0, rgba(234, 185, 87, .035) 60%, transparent 61%); box-shadow: 0 0 0 8px rgba(233, 183, 80, .045), 0 0 48px rgba(233, 183, 80, .12); }
.afs-score-number { color: #fff; font: 700 54px/.95 var(--achl-font-display, "Arial Narrow", sans-serif); }
.afs-score-caption { margin-top: 3px; color: var(--afs-gold); font-family: var(--achl-font-display, "Arial Narrow", sans-serif); font-size: 12px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
.afs-score-label { color: #c1d7e4; font-size: 13px; line-height: 1.25; }
.afs-score-sub { color: #7795a9; font-size: 12px; }
.afs-hero-orbit { position: absolute; z-index: 0; right: 85px; top: 50%; width: 205px; height: 205px; border: 1px solid rgba(121, 215, 220, .1); border-radius: 50%; transform: translateY(-50%); pointer-events: none; }
.afs-hero-orbit-two { right: 41px; width: 292px; height: 292px; border-color: rgba(121, 215, 220, .06); }

.afs-summary { display: grid; grid-template-columns: minmax(235px, 1fr) minmax(190px, .72fr) minmax(190px, .72fr) auto; align-items: center; gap: 22px; margin: 16px 0 51px; padding: 19px 25px; border: 1px solid var(--afs-border); border-radius: 15px; background: linear-gradient(110deg, rgba(21, 35, 49, .96), rgba(15, 25, 36, .96)); box-shadow: 0 11px 30px rgba(0, 0, 0, .15); }
.afs-summary-intro { display: grid; gap: 3px; }
.afs-summary-kicker { color: #7fa7bd; font-size: 11px; }
.afs-summary-intro strong { color: #f1f5f7; font-size: 15px; font-weight: 600; }
.afs-summary-stat { display: flex; align-items: center; gap: 12px; }
.afs-stat-icon { width: 36px; height: 36px; display: inline-grid; place-items: center; border-radius: 10px; font: 700 20px var(--achl-font-display, "Arial Narrow", sans-serif); }
.afs-summary-rfa .afs-stat-icon { color: #f4d07b; background: rgba(233, 183, 80, .12); }
.afs-summary-ufa .afs-stat-icon { color: #81d7dc; background: rgba(121, 215, 220, .11); }
.afs-summary-stat > span:last-child { display: grid; gap: 1px; }
.afs-summary-stat strong { color: #fff; font: 700 24px/.95 var(--achl-font-display, "Arial Narrow", sans-serif); }
.afs-summary-stat small { color: #9baebb; font-size: 12px; }
.afs-summary-mark { display: grid; justify-items: end; line-height: 1; color: rgba(219, 234, 242, .6); font: 700 19px var(--achl-font-display, "Arial Narrow", sans-serif); letter-spacing: .1em; }
.afs-summary-mark small { margin-top: 4px; color: #6c879a; font: 700 9px var(--achl-font-display, "Arial Narrow", sans-serif); letter-spacing: .16em; }

.afs-board-heading { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-bottom: 25px; }
.afs-section-kicker { color: var(--afs-gold); font-size: 11px; }
.afs-board-heading h2 { margin: 4px 0 2px; color: #fff; font: 700 37px/1.05 var(--achl-font-display, "Arial Narrow", sans-serif); letter-spacing: -.01em; }
.afs-board-heading p { margin: 6px 0 0; color: #9caeba; font-size: 14px; }
.afs-search { width: min(300px, 38%); height: 44px; display: flex; align-items: center; gap: 9px; padding: 0 13px; border: 1px solid rgba(190, 214, 229, .16); border-radius: 9px; background: rgba(18, 30, 42, .88); color: #7f9db1; }
.afs-search > span:not(.sr-only) { font-size: 24px; line-height: 1; }
.afs-search input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: #f2f6f8; font-size: 14px; }
.afs-search:focus-within { border-color: rgba(121, 215, 220, .6); box-shadow: 0 0 0 3px rgba(121, 215, 220, .1); }
.afs-search input::placeholder { color: #708598; }

.afs-controls { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 18px; padding-bottom: 13px; border-bottom: 1px solid rgba(198, 218, 232, .11); }
.afs-filter-tabs { display: flex; align-items: center; gap: 6px; }
.afs-filter { min-height: 36px; padding: 6px 12px; border: 1px solid transparent; border-radius: 7px; background: transparent; color: #9badbb; cursor: pointer; font-size: 13px; font-weight: 700; transition: color .18s ease, background .18s ease, border-color .18s ease; }
.afs-filter span { margin-left: 4px; color: #6e8496; font-size: 12px; }
.afs-filter:hover { color: #fff; background: rgba(255, 255, 255, .045); }
.afs-filter.is-active { border-color: rgba(121, 215, 220, .2); background: rgba(121, 215, 220, .1); color: #baf2f2; }
.afs-filter.is-active span { color: #8dced2; }
.afs-controls-note { display: flex; align-items: center; gap: 8px; color: #7692a5; font-size: 12px; }
.afs-controls-note span { width: 6px; height: 6px; border-radius: 50%; background: var(--afs-gold); box-shadow: 0 0 9px rgba(233, 183, 80, .55); }

.afs-player-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.afs-player-card { min-width: 0; overflow: hidden; border: 1px solid rgba(177, 205, 222, .15); border-radius: 13px; background: linear-gradient(145deg, rgba(20, 33, 47, .99), rgba(13, 23, 34, .99)); box-shadow: 0 10px 25px rgba(0, 0, 0, .15); transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease; }
.afs-player-card:hover { transform: translateY(-2px); border-color: rgba(121, 215, 220, .32); box-shadow: 0 15px 30px rgba(0, 0, 0, .23); }
.afs-player-card[hidden] { display: none !important; }
.afs-card-topline { display: flex; align-items: center; justify-content: space-between; padding: 14px 17px 5px; }
.afs-status-indicator { display: flex; align-items: center; gap: 7px; color: #91a7b7; font-size: 10px; }
.afs-status-indicator > span { width: 6px; height: 6px; border-radius: 50%; background: #e7a45f; box-shadow: 0 0 9px rgba(231, 164, 95, .58); }
.afs-contract-chip { padding: 4px 8px; border: 1px solid transparent; border-radius: 5px; font: 700 11px var(--achl-font-display, "Arial Narrow", sans-serif); letter-spacing: .12em; }
.afs-contract-chip.rfa { border-color: rgba(233, 183, 80, .27); background: rgba(233, 183, 80, .1); color: #f0c96c; }
.afs-contract-chip.ufa { border-color: rgba(121, 215, 220, .23); background: rgba(121, 215, 220, .09); color: #8ad9dc; }
.afs-contract-chip.other { border-color: rgba(190, 205, 215, .2); background: rgba(190, 205, 215, .08); color: #c1ccd4; }
.afs-player-main { display: grid; grid-template-columns: 51px minmax(0, 1fr) 55px; align-items: center; gap: 12px; padding: 11px 17px 14px; }
.afs-player-monogram { width: 50px; height: 50px; display: grid; place-items: center; border: 1px solid rgba(188, 214, 230, .16); border-radius: 12px; background: radial-gradient(circle at 35% 25%, #29516b, #142b3e 68%); color: #b7e6e7; font: 700 25px var(--achl-font-display, "Arial Narrow", sans-serif); }
.afs-player-identity { min-width: 0; }
.afs-player-identity h3 { overflow: hidden; margin: 0; color: #f7f9fa; font-size: 20px; font-weight: 700; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
.afs-player-identity p { margin: 4px 0 0; color: #8fa3b1; font-size: 13px; }
.afs-player-identity p span { padding: 0 3px; color: #5d8298; }
.afs-overall { display: grid; justify-items: center; align-content: center; min-height: 50px; border-left: 1px solid rgba(192, 218, 234, .12); }
.afs-overall strong { color: var(--afs-gold); font: 700 25px/.9 var(--achl-font-display, "Arial Narrow", sans-serif); }
.afs-overall span { margin-top: 4px; color: #7893a5; font: 700 9px var(--achl-font-display, "Arial Narrow", sans-serif); letter-spacing: .1em; }
.afs-team-row { display: flex; align-items: center; gap: 11px; margin: 0 17px; padding: 11px 0; border-top: 1px solid rgba(193, 217, 231, .1); border-bottom: 1px solid rgba(193, 217, 231, .1); }
.afs-team-mark { flex: 0 0 auto; width: 31px; height: 31px; display: grid; place-items: center; border: 1px solid rgba(198, 218, 231, .15); border-radius: 8px; background: rgba(240, 245, 248, .055); color: #dce9ee; font: 700 9px var(--achl-font-display, "Arial Narrow", sans-serif); letter-spacing: .04em; }
.afs-team-name { display: grid; min-width: 0; gap: 2px; }
.afs-team-name small { color: #7891a2; font-size: 9px; }
.afs-team-name strong { overflow: hidden; color: #d7e0e6; font-size: 13px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.afs-team-arrow { margin-left: auto; color: #5d8298; font-size: 19px; }
.afs-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 57px; padding: 10px 17px; }
.afs-market-note { display: grid; min-width: 0; gap: 2px; }
.afs-market-note small { color: #d1ab5a; font-size: 9px; }
.afs-market-note strong { overflow: hidden; color: #b8c6d0; font-size: 12px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.afs-details-toggle { display: inline-flex; align-items: center; gap: 8px; flex: 0 0 auto; padding: 6px 0 6px 10px; border: 0; background: transparent; color: #8bdce0; cursor: pointer; font: 700 10px var(--achl-font-display, "Arial Narrow", sans-serif); letter-spacing: .1em; }
.afs-details-toggle:hover { color: #c0ffff; }
.afs-toggle-plus { width: 22px; height: 22px; display: inline-grid; place-items: center; border: 1px solid rgba(121, 215, 220, .28); border-radius: 50%; font: 400 16px/1 var(--achl-font-body, sans-serif); }
.afs-ratings { padding: 0 17px 16px; }
.afs-ratings-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 12px 0 8px; border-top: 1px solid rgba(193, 217, 231, .1); }
.afs-ratings-heading span { color: #7793a5; font-size: 9px; }
.afs-ratings-heading strong { color: #d2dee5; font-size: 12px; font-weight: 600; }
.afs-rating-list { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.afs-rating { display: flex; align-items: center; justify-content: space-between; gap: 4px; min-width: 0; padding: 6px 7px; border: 1px solid rgba(189, 216, 231, .09); border-radius: 5px; background: rgba(228, 241, 247, .035); }
.afs-rating span { color: #829aaa; font-size: 9px; }
.afs-rating strong { color: #edf3f6; font: 700 11px var(--achl-font-display, "Arial Narrow", sans-serif); }

.afs-empty-state, .afs-no-results { display: grid; justify-items: center; margin: 7px 0 0; padding: 44px 20px; border: 1px dashed rgba(183, 211, 228, .18); border-radius: 13px; background: rgba(18, 30, 42, .58); text-align: center; }
.afs-empty-state[hidden], .afs-no-results[hidden] { display: none; }
.afs-empty-puck { width: 48px; height: 48px; display: grid; place-items: center; margin-bottom: 10px; border: 1px solid rgba(233, 183, 80, .26); border-radius: 50%; color: var(--afs-gold); font-size: 22px; }
.afs-empty-state h3 { margin: 0; color: #eaf0f4; font: 700 24px var(--achl-font-display, "Arial Narrow", sans-serif); }
.afs-empty-state p, .afs-no-results span { margin: 5px 0 0; color: #91a7b5; font-size: 14px; }
.afs-no-results { justify-items: start; padding: 18px 20px; text-align: left; }
.afs-no-results strong { color: #eaf0f4; }
.afs-page-footer { display: flex; align-items: center; gap: 13px; margin-top: 28px; color: #70889a; }
.afs-footer-rule { width: 32px; height: 2px; background: var(--afs-gold); }
.afs-page-footer p { margin: 0; color: #98aab7; font-size: 13px; }
.afs-footer-tag { margin-left: auto; color: #657c8d; font-size: 9px; }

@media (max-width: 900px) {
  .afs-hero { grid-template-columns: minmax(0, 1fr) 210px; padding: 40px 36px; }
  .afs-summary { grid-template-columns: minmax(200px, 1fr) 1fr 1fr; }
  .afs-summary-mark { display: none; }
  .afs-player-grid { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .achl-failed-sign { margin: 16px auto 48px; padding: 0 14px; }
  .afs-hero { min-height: 0; grid-template-columns: 1fr; gap: 25px; padding: 29px 23px 25px; border-radius: 16px; }
  .afs-hero h1 { margin-top: 15px; font-size: clamp(45px, 13vw, 62px); }
  .afs-hero-copy > p { font-size: 15px; }
  .afs-hero-score { grid-template-columns: 82px 1fr; justify-items: start; column-gap: 16px; padding: 18px 0 0; border-top: 1px solid rgba(220, 239, 248, .14); border-left: 0; text-align: left; }
  .afs-score-ring { grid-row: span 2; width: 78px; height: 78px; }
  .afs-score-number { font-size: 34px; }
  .afs-score-caption { font-size: 8px; }
  .afs-score-label { align-self: end; }
  .afs-score-sub { align-self: start; }
  .afs-hero-orbit { right: -5px; top: auto; bottom: 13px; width: 128px; height: 128px; transform: none; }
  .afs-hero-orbit-two { right: -48px; bottom: -10px; width: 205px; height: 205px; }
  .afs-summary { grid-template-columns: 1fr 1fr; gap: 15px 10px; margin: 12px 0 38px; padding: 16px; }
  .afs-summary-intro { grid-column: 1 / -1; }
  .afs-summary-stat { gap: 8px; }
  .afs-stat-icon { width: 31px; height: 31px; }
  .afs-summary-stat small { font-size: 10px; }
  .afs-board-heading { display: grid; align-items: start; gap: 14px; margin-bottom: 18px; }
  .afs-board-heading h2 { font-size: 32px; }
  .afs-search { width: 100%; }
  .afs-controls { align-items: flex-start; flex-direction: column; gap: 9px; }
  .afs-filter { padding: 6px 9px; }
  .afs-player-main { grid-template-columns: 44px minmax(0, 1fr) 48px; gap: 9px; padding-right: 13px; padding-left: 13px; }
  .afs-player-monogram { width: 43px; height: 43px; }
  .afs-player-identity h3 { font-size: 18px; }
  .afs-card-topline { padding-right: 13px; padding-left: 13px; }
  .afs-team-row { margin-right: 13px; margin-left: 13px; }
  .afs-card-footer { padding-right: 13px; padding-left: 13px; }
  .afs-market-note strong { max-width: 230px; }
  .afs-rating-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .afs-page-footer { align-items: flex-start; flex-wrap: wrap; }
  .afs-page-footer p { flex: 1; }
  .afs-footer-tag { flex-basis: 100%; margin: 0 0 0 45px; }
}
@media (prefers-reduced-motion: reduce) {
  .afs-player-card, .afs-filter { transition: none; }
}
