/* Waiver signing + admin pages */
.hero--short { min-height: 300px; }
.waiver-wrap { max-width: 50rem; }
.form-hint { color: var(--muted); font-size: .92rem; }
.req { color: var(--rust); font-weight: 700; }
.waiver-text { background: var(--cream); border: 1px solid var(--sand); border-radius: var(--radius); padding: clamp(1.2rem, 4vw, 2.2rem); max-height: 34rem; overflow-y: auto; font-size: .95rem; line-height: 1.65; margin-bottom: 2rem; }
.waiver-text--inline { max-height: none; overflow: visible; margin-bottom: 1.2rem; }
.waiver-title { text-align: center; font-size: 1.5rem; }
.waiver-subtitle { text-align: center; margin-top: .5rem; }
.waiver-item { padding-left: 2.2rem; text-indent: -1.8rem; }
.waiver-label { font-weight: 700; display: inline-block; min-width: 1.6rem; text-indent: 0; }
.waiver-meta { font-size: .75rem; color: var(--muted); text-align: right; margin-bottom: .6rem; }
.waiver-meta code { font-size: .75rem; }
.minor-name { font-weight: 700; text-decoration: underline; }
.fs { border: 1px solid var(--sand); border-radius: var(--radius); padding: 1.2rem clamp(1rem, 3vw, 1.6rem) 1.4rem; margin: 0 0 1.6rem; background: var(--white); }
.fs--plain { border: 0; padding: 0; }
.fs legend { font-weight: 800; color: var(--navy); padding: 0 .4rem; font-size: 1.1rem; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.2rem; }
.field-grid .span-2 { grid-column: 1 / -1; }
.field-grid label, .ec-row label { display: flex; flex-direction: column; gap: .3rem; font-weight: 600; font-size: .9rem; color: var(--navy); }
.waiver-form input:not([type=checkbox]), .waiver-form select, .admin input { font: inherit; font-weight: 400; padding: .65em .8em; border: 1.5px solid #cfd6da; border-radius: 9px; background: #fff; width: 100%; min-width: 0; color: var(--ink); }
.waiver-form input:focus, .waiver-form select:focus { outline: 2px solid var(--rust); outline-offset: 1px; border-color: transparent; }
.waiver-form .invalid { border-color: #c0392b !important; background: #fff6f5 !important; }
.ec-grid { display: grid; gap: .6rem; }
.ec-head, .ec-row { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: .6rem; }
.ec-head span { font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.check { display: flex; gap: .7rem; align-items: flex-start; margin-top: 1rem; font-size: .95rem; cursor: pointer; }
.check input { width: 1.25rem; height: 1.25rem; margin-top: .15rem; flex-shrink: 0; accent-color: var(--rust); }
.sig { position: relative; margin-top: .5rem; }
.sig-label { display: block; font-weight: 600; font-size: .9rem; color: var(--navy); margin-bottom: .3rem; }
.sig canvas { display: block; width: 100%; height: 170px; background: #fff; border: 1.5px dashed #9aa6ad; border-radius: 10px; touch-action: none; cursor: crosshair; }
.sig.invalid canvas { border-color: #c0392b; background: #fff6f5; }
.sig-clear { position: absolute; right: .5rem; bottom: .5rem; background: var(--cream); border: 1px solid var(--sand); border-radius: 999px; padding: .3em .9em; font: inherit; font-size: .8rem; cursor: pointer; }
.sig-date { margin: .6rem 0 0; font-weight: 600; color: var(--navy); }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.form-error { background: #fdecea; color: #8a1c12; border-radius: 10px; padding: .8rem 1rem; margin-top: 1rem; font-weight: 600; }
.waiver-done { scroll-margin-top: 100px; background: var(--cream); border-radius: var(--radius); padding: clamp(1.5rem, 5vw, 2.5rem); border-left: 6px solid var(--rust); }
.waiver-form button[disabled] { opacity: .6; cursor: progress; }
@media (max-width: 640px) {
  .field-grid { grid-template-columns: 1fr; }
  .ec-head { display: none; }
  .ec-row { grid-template-columns: 1fr; padding-bottom: .8rem; border-bottom: 1px solid var(--sand); }
  .waiver-text { max-height: 26rem; font-size: .92rem; }
}
/* Admin */
.admin table { width: 100%; border-collapse: collapse; font-size: .9rem; background: #fff; }
.admin th, .admin td { text-align: left; padding: .55rem .6rem; border-bottom: 1px solid var(--sand); vertical-align: top; }
.admin th { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.admin .table-wrap { overflow-x: auto; border-radius: var(--radius); box-shadow: var(--shadow); }
.badge { display: inline-block; padding: .1em .6em; border-radius: 999px; font-size: .78rem; font-weight: 700; }
.badge--ok { background: #e3f4e8; color: #1e6b37; }
.badge--failed { background: #fdecea; color: #8a1c12; }
.badge--skipped, .badge--pending { background: #fff3c4; color: #7a5a00; }
.admin .btn-sm { padding: .35em .9em; font-size: .8rem; }
#coach-names-field[hidden] { display: none !important; }
