@font-face {
  font-family: "Barlow Condensed";
  src: url("/assets/barlow-condensed-extrabold-b2464834.ttf") format("truetype");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

.coach-mobile-layout {
  --coach-app-ink: #12151a;
  --coach-app-muted: #555e6b;
  --coach-app-background: #fff;
  --coach-app-surface: #f4f5f7;
  --coach-app-line: #dce0e7;
  --coach-app-accent: #1855e8;
  --coach-app-accent-soft: #edf2ff;
  --coach-app-nav-height: 64px;
  margin: 0;
  color: var(--coach-app-ink);
  background: var(--coach-app-background);
  font-family: "Inter var", Inter, system-ui, sans-serif;
  padding-bottom: calc(var(--coach-app-nav-height) + env(safe-area-inset-bottom));
}
.dark .coach-mobile-layout {
  --coach-app-ink: #f1f3f7;
  --coach-app-muted: #b4bdcc;
  --coach-app-background: #14171d;
  --coach-app-surface: #242a34;
  --coach-app-line: #384152;
  --coach-app-accent: #8cafff;
  --coach-app-accent-soft: #253452;
}
.coach-mobile-layout * { box-sizing: border-box; }
.coach-mobile-layout :focus-visible { outline: 3px solid var(--coach-app-accent); outline-offset: 3px; }
.coach-mobile-layout .coach {
  --coach-ink: var(--coach-app-ink);
  --coach-muted: var(--coach-app-muted);
  --coach-line: var(--coach-app-line);
  --coach-surface: var(--coach-app-background);
  color: var(--coach-app-ink);
  line-height: 1.4;
}
.coach-mobile-layout .coach a:not(.coach-button) { color: var(--coach-app-accent); }
.coach-mobile-layout .coach .coach-button { background: #1855e8; border-radius: 9px; color: #fff; }
.coach-mobile-layout .coach .coach-secondary { background: transparent; border-color: var(--coach-app-line); color: var(--coach-app-accent); }
.coach-mobile-layout .coach input:not([type=checkbox]):not([type=submit]):not([type=hidden]), .coach-mobile-layout .coach select { background: var(--coach-app-surface); color: var(--coach-app-ink); border-color: var(--coach-app-line); border-radius: 10px; }
.coach-mobile-layout .coach-panel { border-radius: 10px; padding: 12px; }
.coach-appbar, .coach-main, .coach-tabbar { width: 100%; max-width: 660px; margin: 0 auto; }
.coach-appbar { height: 52px; padding: 0 8px; display: flex; align-items: center; justify-content: space-between; position: relative; z-index: 5; }
.coach-wordmark { font-size: 1.2rem; font-weight: 750; letter-spacing: -.04em; color: var(--coach-app-ink); text-decoration: none; }
.coach-icon-button { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; color: var(--coach-app-ink); cursor: pointer; border-radius: 8px; flex-shrink: 0; }
.coach-icon-button:hover { background: var(--coach-app-surface); }
.coach-main { padding: 8px 16px 24px; }
.coach-skip-link { position: absolute; left: 16px; top: -80px; padding: 12px; background: var(--coach-app-background); color: var(--coach-app-accent); z-index: 100; }
.coach-skip-link:focus { top: 8px; }
.coach-main > [data-controller=flash] [role=alert] { padding: 4px 8px; margin-bottom: 8px; color: var(--coach-app-ink); background: var(--coach-app-surface); }
.coach-main > [data-controller=flash] button { min-width: 44px; min-height: 44px; display: grid; place-items: center; }

.coach-menu { position: relative; }
.coach-menu > summary { list-style: none; padding: 0; }
.coach-menu > summary::-webkit-details-marker { display: none; }
.coach-menu[open] { z-index: 30; }
.coach-menu-panel { position: absolute; right: 0; top: calc(100% + 4px); width: 264px; max-width: calc(100vw - 32px); padding: 8px; background: var(--coach-app-background); border: 1px solid var(--coach-app-line); border-radius: 12px; box-shadow: 0 8px 32px #12151a24; color: var(--coach-app-ink); }
.coach-menu[data-side=above] .coach-menu-panel { top: auto; bottom: calc(100% + 4px); }
.coach-menu-panel a, .coach-menu-panel button { display: flex; align-items: center; width: 100%; min-height: 44px; padding: 8px 10px; border: 0; background: transparent; text-decoration: none; text-align: left; color: var(--coach-app-ink); font-size: .9rem; border-radius: 6px; cursor: pointer; }
.coach-menu-panel a:hover, .coach-menu-panel button:hover { background: var(--coach-app-surface); }
.coach-menu-club { font-size: .8rem; font-weight: 650; padding: 4px 10px 8px; overflow-wrap: anywhere; color: var(--coach-app-muted); }
.coach .coach-menu-panel label { margin: 4px 4px 8px; font-size: .85rem; }
.coach .coach-menu-panel select { margin: 0 0 4px; min-height: 44px; background: var(--coach-app-surface); color: var(--coach-app-ink); border-color: var(--coach-app-line); }

.coach-tabbar { position: fixed; bottom: 0; left: 0; right: 0; z-index: 10; display: grid; grid-template-columns: repeat(3, 1fr); height: calc(var(--coach-app-nav-height) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: var(--coach-app-background); border-top: 1px solid var(--coach-app-line); }
.coach-tabbar a { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; text-decoration: none; color: var(--coach-app-muted); font-size: .72rem; min-height: 44px; }
.coach-tabbar a[aria-current] { color: var(--coach-app-accent); font-weight: 650; }
.coach-tabbar a[aria-current]::after { content: ""; position: absolute; bottom: 3px; height: 3px; width: 28px; background: currentColor; border-radius: 3px; }

.coach-screen-heading { margin-bottom: 18px; }
.coach-screen-heading .coach-club-name { margin: 0 0 8px; color: var(--coach-app-muted); font-size: .8rem; font-weight: 600; overflow-wrap: anywhere; }
.coach-screen-heading h1 { font-family: "Barlow Condensed", "Arial Narrow", sans-serif; font-size: clamp(2rem, 9vw, 2.5rem); font-weight: 800; text-transform: uppercase; letter-spacing: .005em; line-height: 1.05; margin: 0; }
.coach-screen-heading .coach-screen-description { margin: 8px 0 0; font-size: .85rem; }
.coach-list-caption { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px 12px; margin: 16px 0 4px; color: var(--coach-app-muted); font-size: .78rem; }
.coach-list-caption h2 { font-family: inherit; margin: 0; font-size: .82rem; font-weight: 650; color: var(--coach-app-ink); }
.coach-list-caption a { display: inline-flex; align-items: center; min-height: 44px; }
.coach-day-navigation { display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; align-items: center; padding: 6px 0; border-top: 1px solid var(--coach-app-line); border-bottom: 1px solid var(--coach-app-line); }
.coach-mobile-layout .coach .coach-day-navigation > a { color: var(--coach-app-ink); }
.coach-date-menu > summary { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; border-radius: 8px; }
.coach-date-menu > summary:hover { background: var(--coach-app-surface); }
.coach-date-menu > summary > svg { width: 18px; height: 18px; color: var(--coach-app-muted); }
.coach-date-menu > summary span { display: flex; flex-direction: column; text-align: center; gap: 2px; }
.coach-date-menu strong { font-size: .95rem; text-transform: capitalize; }
.coach-date-menu time { color: var(--coach-app-muted); font-size: .78rem; font-weight: 400; }
.coach-date-menu .coach-menu-panel { left: 50%; right: auto; transform: translateX(-50%); width: 264px; }
.coach-date-picker { padding: 4px; }
.coach-date-picker .coach-button { width: 100%; justify-content: center; }
.coach-class-list { list-style: none; padding: 0; margin: 0 0 20px; }
.coach-class-entry { display: block; padding: 14px 0; border-bottom: 1px solid var(--coach-app-line); }
.coach-mobile-layout .coach a.coach-class-link { display: block; color: var(--coach-app-ink); text-decoration: none; border-radius: 6px; }
.coach-class-link:hover .coach-class-name { color: var(--coach-app-accent); }
.coach-class-topline { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px 12px; margin-bottom: 7px; }
.coach-class-topline time { font-size: .82rem; font-weight: 600; color: var(--coach-app-muted); font-variant-numeric: tabular-nums; }
.coach-class-badge { border-radius: 6px; padding: 3px 8px; font-size: .72rem; background: var(--coach-app-surface); color: var(--coach-app-muted); }
.coach-class-entry[data-state=completed] .coach-class-badge { background: var(--coach-app-accent-soft); color: var(--coach-app-accent); }
.coach-class-name { display: block; font-size: 1.15rem; font-weight: 750; line-height: 1.3; overflow-wrap: anywhere; }
.coach-class-bottomline { display: flex; align-items: center; justify-content: space-between; gap: 8px 12px; margin-top: 3px; min-height: 44px; }
.coach-class-count { color: var(--coach-app-muted); font-size: .78rem; }
.coach-class-action { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; flex-shrink: 0; color: var(--coach-app-accent); font-size: .85rem; font-weight: 650; }
.coach-class-action svg { width: 18px; height: 18px; }
.coach-class-bottomline form { flex-shrink: 0; }
.coach .coach-class-open { min-height: 44px; font-size: .82rem; padding: 8px 12px; }
.coach-extra-class > summary { display: flex; align-items: center; gap: 8px; min-height: 44px; list-style: none; color: var(--coach-app-accent); }
.coach-extra-class > summary::-webkit-details-marker { display: none; }
.coach-extra-class[open] > summary svg { transform: rotate(45deg); }
.coach-extra-class > p { font-size: .85rem; }
.coach-extra-class input[type=submit] { width: 100%; margin-top: 8px; }
.coach-directory-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.coach .coach-enroll-action { display: inline-flex; gap: 6px; font-size: .8rem; padding: 8px 10px; min-height: 44px; }
.coach-enroll-action svg { width: 18px; height: 18px; }
.coach-directory-search { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px; }
.coach-directory-search-input { position: relative; min-width: 0; }
.coach-directory-search-input > svg { position: absolute; top: 13px; left: 12px; width: 22px; height: 22px; color: var(--coach-app-muted); pointer-events: none; }
.coach-directory-search #q { margin: 0; padding-left: 42px; }
.coach-directory-search input::placeholder { color: var(--coach-app-muted); opacity: 1; }
.coach .coach-directory-search .coach-button { padding: 8px 10px; font-size: .85rem; }
.coach-directory-list { list-style: none; padding: 0; margin: 0; }
.coach-mobile-layout .coach a.coach-directory-link { display: grid; grid-template-columns: 40px minmax(0, 1fr) 20px; align-items: center; gap: 12px; min-height: 76px; padding: 12px 0; border-bottom: 1px solid var(--coach-app-line); color: var(--coach-app-ink); text-decoration: none; }
.coach-directory-link:hover { background: var(--coach-app-surface); }
.coach-directory-link > svg { width: 18px; height: 18px; color: var(--coach-app-muted); }
.coach-student-initials { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--coach-app-surface); color: var(--coach-app-muted); font-size: .8rem; font-weight: 650; }
.coach-directory-person { display: flex; flex-direction: column; gap: 3px; overflow-wrap: anywhere; }
.coach-directory-person strong { font-size: 1rem; line-height: 1.25; font-weight: 700; }
.coach-directory-person > span { font-size: .78rem; color: var(--coach-app-muted); }
.coach-directory-limit { color: var(--coach-app-muted); font-size: .82rem; padding: 12px 0; }
.coach-empty-state { text-align: center; padding: 30px 16px; border-bottom: 1px solid var(--coach-app-line); }
.coach-empty-state > svg { display: block; margin: 0 auto 12px; color: var(--coach-app-accent); width: 32px; height: 32px; }
.coach-empty-state h2 { font-size: 1rem; margin: 0 0 6px; }
.coach-empty-state p { color: var(--coach-app-muted); font-size: .85rem; margin: 0; }
@media (max-width: 359px) {
  .coach-main { padding-left: 12px; padding-right: 12px; }
  .coach-class-count { max-width: 115px; }
  .coach-directory-heading { gap: 8px; }
  .coach-directory-heading h1 { font-size: 2rem; }
  .coach .coach-enroll-action { font-size: .76rem; padding: 8px; }
  .coach-directory-search { gap: 4px; }
  .coach .coach-directory-search .coach-button { padding: 8px; }
}
@media (min-width: 700px) {
  .coach-appbar { margin-top: 12px; }
  .coach-main { padding-top: 16px; }
  .coach-tabbar { border-left: 1px solid var(--coach-app-line); border-right: 1px solid var(--coach-app-line); }
}
