/* Athlete phone Home, Membership and Schedule (athlete-cards.js, athlete-pages.js), from Daniel's athlete Home mockup 2026-10-22.
   Dark athlete theme: uses the --pw-* variables and .ph-card from home.css. Prefix ap-. */
.ap-phone, .ap-page { display: grid; gap: 14px; max-width: 760px; }
.ap-phone { max-width: 520px; }
.ap-head { display: flex; align-items: center; gap: 14px; }
.ap-head > div { flex: 1; min-width: 0; }
.ap-head h1 { font-size: 24px; line-height: 1.15; letter-spacing: -.01em; }
.ap-head p { margin: 4px 0 0; color: var(--pw-muted); font-size: 14px; }
.ap-av { display: grid; place-items: center; width: 52px; height: 52px; flex-shrink: 0; border-radius: 50%; background: #1b2a47; color: #fff; font-weight: 700; font-size: 17px; }
.ap-pill { display: inline-block; padding: 4px 12px; border: 1px solid #333b48; border-radius: 999px; font-size: 13px; font-weight: 600; color: #c3c9d3; white-space: nowrap; }
.ap-pill.ok { border-color: #1f5f3a; background: #0f2a1b; color: #6fdc8c; }
.ap-pill.bad { border-color: #7a2630; background: #2a1014; color: #ff8b95; }
.ap-title h1 { font-size: 28px; letter-spacing: -.01em; }
.ap-title p { margin: 4px 0 0; color: var(--pw-muted); }

.ap-card { display: grid; gap: 12px; padding: 16px; }
.ap-card-h { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
.ap-card-h > .ic:first-child { width: 26px; height: 26px; color: #5b8cff; flex-shrink: 0; }
.ap-card-h > div { flex: 1; min-width: 0; }
.ap-card-h h2, .ap-sec, .ap-bh h2 { margin: 0; font-size: 18px; font-weight: 700; font-family: var(--body); text-transform: none; letter-spacing: 0; color: #fff; }
.ap-card-h p, .ap-bh p { margin: 2px 0 0; color: var(--pw-muted); font-size: 13.5px; }
.ap-card-h > .ic:last-child:not(:first-child) { width: 18px; height: 18px; color: var(--pw-muted); }
.ap-fac { display: grid; gap: 6px; margin: 0 0 14px; }
.ap-fac span { font-size: 13px; color: var(--pw-muted); }
.ap-fac select { padding: 11px 14px; border-radius: 12px; border: 1px solid var(--pw-line); background: #07090d; color: #fff; font: inherit; }
.ap-hint { margin: 0; color: var(--pw-muted); font-size: 13.5px; }
.ap-empty { margin: 0; color: var(--pw-muted); }
.ap-eyebrow { margin: 0 0 4px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--pw-muted); }
.ap-link { color: #6f9bff; font-weight: 600; font-size: 14px; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.ap-link .ic { width: 16px; height: 16px; }
.ap-foot { margin-top: 4px; }

.ap-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 18px; border: 1px solid transparent; border-radius: 12px; font: inherit; font-size: 15px; font-weight: 600; color: #fff; text-decoration: none; cursor: pointer; }
.ap-btn .ic { width: 18px; height: 18px; }
.ap-btn.wide { width: 100%; }
.ap-btn.blue { background: var(--pw-blue); }
.ap-btn.blue:hover { filter: brightness(1.1); }
.ap-btn.ghost { background: #0b0f16; border-color: #2a323f; }
.ap-btn.ghost:hover { background: #161c26; }
.ap-btn:disabled { opacity: .45; cursor: not-allowed; }
.ap-btn:focus-visible, .ap-seg button:focus-visible { outline: 2px solid #6f9bff; outline-offset: 2px; }

.ap-sess { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 14px; align-items: center; }
.ap-date { display: grid; place-items: center; align-content: center; width: 56px; height: 64px; border-radius: 12px; background: #161c26; border: 1px solid #232b37; }
.ap-date small { font-size: 12px; letter-spacing: .08em; color: var(--pw-muted); }
.ap-date b { font-size: 24px; line-height: 1; }
.ap-sess-i { display: grid; gap: 2px; min-width: 0; }
.ap-sess-i b { font-size: 17px; }
.ap-sess-i span { color: var(--pw-muted); font-size: 14px; }
.ap-where { display: inline-flex; align-items: center; gap: 5px; }
.ap-where .ic { width: 15px; height: 15px; }
.ap-spots { color: #e0b44c !important; font-weight: 600; }


.ap-meter { display: grid; gap: 6px; }
.ap-meter > div { height: 8px; border-radius: 999px; background: #1d232d; overflow: hidden; }
.ap-meter i { display: block; height: 100%; background: var(--pw-blue); border-radius: 999px; }
.ap-meter span { font-size: 14px; color: #c3c9d3; }

.ap-block { display: grid; gap: 10px; margin-top: 6px; }
.ap-offers { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; }
.ap-offer h3 { margin: 0; font-size: 16px; }
.ap-price { margin: 0; font-size: 28px; font-weight: 700; }
.ap-price small { font-size: 14px; font-weight: 400; color: var(--pw-muted); }
.ap-offer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 14px; }
.ap-offer li { display: flex; gap: 8px; align-items: center; } .ap-offer li .ic { width: 16px; height: 16px; color: #6fdc8c; }
.ap-plan-h { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.ap-plan-h h2 { margin: 0; font-size: 22px; }
.ap-plan-f { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.ap-plan-f .ic { width: 16px; height: 16px; vertical-align: -3px; }
.ap-hist > div { display: grid; grid-template-columns: 110px minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 8px 0; border-top: 1px solid #1d232d; font-size: 14px; }
.ap-hist > div:first-child { border-top: 0; }
.ap-hist span { color: var(--pw-muted); } .ap-hist em { font-style: normal; font-weight: 600; } .ap-hist i { font-style: normal; color: #6fdc8c; font-size: 13px; }
.ap-note { display: flex; gap: 10px; align-items: flex-start; margin: 0; padding: 10px 14px; border: 1px solid #243653; border-radius: 12px; background: #101a2c; color: #b9cdf5; font-size: 14px; }
.ap-note .ic { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; }
.ap-note.bad { border-color: #7a2630; background: #2a1014; color: #ffb3ba; }

.ap-demo { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 8px 12px; border: 1px dashed #333b48; border-radius: 10px; color: var(--pw-muted); font-size: 13px; }
.ap-seg { display: inline-flex; border: 1px solid #2a323f; border-radius: 8px; overflow: hidden; background: #0b0f16; }
.ap-seg button { min-height: 30px; padding: 0 12px; border: 0; background: none; color: #c3c9d3; font: inherit; font-size: 12.5px; cursor: pointer; }
.ap-seg button + button { border-left: 1px solid #1d232d; }
.ap-seg button.on { background: #1b2a47; color: #fff; font-weight: 600; }

.ap-connect-f { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
.ap-connect-f input { min-height: 46px; padding: 0 14px; border: 1px solid #2a323f; border-radius: 12px; background: #0b0f16; color: #fff; font: inherit; font-size: 17px; letter-spacing: .1em; text-transform: uppercase; min-width: 0; }
.ap-connect-f input::placeholder { letter-spacing: 0; text-transform: none; color: var(--pw-muted); }
.ap-connect-f input:focus-visible { outline: 2px solid #6f9bff; outline-offset: 2px; border-color: #2f6fed; }
.ph-hw { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ap-field { display: grid; gap: 6px; font-size: 14px; color: #c3c9d3; }
.ap-field input { min-height: 48px; padding: 0 14px; border: 1px solid #2a323f; border-radius: 12px; background: #0b0f16; color: #fff; font: inherit; font-size: 20px; letter-spacing: .12em; text-transform: uppercase; }
.ap-field input:focus-visible { outline: 2px solid #6f9bff; outline-offset: 2px; border-color: #2f6fed; }
.ap-err { margin: 0; min-height: 1.2em; color: #ff8b95; font-size: 14px; }
.ap-two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* Phone tabs: five, with labels (home.css draws four icon-only tabs) */
@media (max-width: 860px) {
  .pw-tabs { grid-auto-flow: column; grid-auto-columns: 1fr; grid-template-columns: none; }
  .pw-tabs a { font-size: 11px; line-height: 1.1; }
  .pw-tabs a span { display: block; }
}
@media (min-width: 861px) { .pw-tabs a span { display: none; } }
@media (max-width: 420px) { .ap-hist > div { grid-template-columns: minmax(0, 1fr) auto; } .ap-hist span, .ap-hist i { display: none; } }

.ap-page [hidden] { display: none !important; }   /* the Join page swaps its code form and confirm card */

/* Membership page: facility header, quick actions, detail rows, and the Leave confirmation */
.ap-quick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.ap-quick-b { display: flex; align-items: center; gap: 10px; padding: 12px; border: 1px solid var(--pw-line); border-radius: 14px; background: #0b0f16; color: inherit; text-decoration: none; text-align: left; font: inherit; cursor: pointer; min-width: 0; }
.ap-quick-b .ic { width: 22px; height: 22px; flex: none; color: #6f9bff; }
.ap-quick-b b { display: block; font-size: 14px; }
.ap-quick-b small { display: block; color: var(--pw-muted); font-size: 12px; }
.ap-leave { justify-self: start; background: none; border: 0; padding: 4px 0; color: #ff7b72; text-decoration: underline; font: inherit; font-size: 13.5px; cursor: pointer; }
.ap-leave-dlg .ph-form { gap: 14px; }
.ap-danger { background: #c0392b !important; color: #fff !important; border-color: #c0392b !important; }
.ap-danger:disabled { opacity: .4; cursor: not-allowed; }
.ap-help { display: grid; gap: 8px; margin-top: 18px; }
.ap-help p { margin: 0; }

/* Membership header with the facility's logo and cover photo (brand.js / 0066). Without them it is the plain title. */
.ap-fhead { display: flex; align-items: center; gap: 14px; }
.ap-fhead.has-cover { padding: 18px; margin-bottom: 14px; border-radius: 16px; background: linear-gradient(rgba(0, 0, 0, .64), rgba(0, 0, 0, .84)), var(--cover) center / cover; }
.ap-logo { width: 56px; height: 56px; border-radius: 14px; object-fit: cover; flex: none; background: #151a23; }

/* Renew (0070) */
.ap-renew { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 12px 0 0; padding: 12px 14px; border: 1px solid #1f3a6e; border-radius: 12px; background: #0e1a33; font-size: 14px; }
.ap-lapsed { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; border-color: #5a3b00; background: #1d1507; }
.ap-lapsed b { display: block; }
.ap-lapsed p { margin: 2px 0 0; }
.ap-remind { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; padding: 12px 14px; border: 1px solid #1f3a6e; border-radius: 14px; background: #0e1a33; color: inherit; text-decoration: none; font-size: 14px; }
.ap-remind.lapsed { border-color: #5a3b00; background: #1d1507; }
.ap-remind .ic { width: 18px; height: 18px; flex: none; color: #6f9bff; }
.ap-remind span { flex: 1; min-width: 0; }
.ap-remind b { color: #6f9bff; }
