/* Coach profile page (coach_listing_detail.html). Scoped to .cp so it can't leak. */
.cp { --cp-forest: var(--forest, #1f4d2e); --cp-wood: #8b5a2b; --cp-gold: #e0a526;
  max-width: 1080px; margin: 0 auto; padding: 4px 0 48px; }
.cp * { box-sizing: border-box; }
.cp-muted { color: var(--text-muted); }
.cp-small { font-size: 12.5px; margin: 10px 0 0; }
.cp h2 { margin: 0 0 8px; font-family: "Fraunces", Georgia, serif; font-size: 20px; letter-spacing: -.01em; }

/* ---- Hero ---- */
.cp-hero { position: relative; border-radius: 20px; overflow: hidden; color: #fbf7ef;
  background: linear-gradient(120deg, #153524 0%, #245a38 55%, #7a5230 130%); box-shadow: 0 12px 34px rgba(20, 50, 32, .22); }
.cp-hero-art { position: absolute; inset: 0; pointer-events: none; }
.cp-hero-art span { position: absolute; right: 3%; bottom: -64px; font-size: 280px; line-height: 1; opacity: .11; }
.cp-hero-art::before { content: ""; position: absolute; inset: 0;
  background: radial-gradient(520px 220px at 12% 0%, rgba(255,255,255,.14), transparent 70%); }
.cp-hero-body { position: relative; display: grid; grid-template-columns: auto 1fr auto; gap: 22px; align-items: center; padding: 34px 32px; }
.cp-avatar { position: relative; width: 96px; height: 96px; border-radius: 50%; display: grid; place-items: center;
  font-family: "Fraunces", Georgia, serif; font-size: 36px; font-weight: 700; color: #1b3a28;
  background: linear-gradient(145deg, #f6e7c8, #d9b98a); border: 4px solid rgba(255,255,255,.85); box-shadow: 0 8px 22px rgba(0,0,0,.28); }
.cp-avatar-check { position: absolute; right: -2px; bottom: -2px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: #2f9e5b; color: #fff; font-size: 15px; font-family: sans-serif; border: 3px solid #1d4a30; }
.cp-id { min-width: 0; }
.cp-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.cp-chip { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 4px 11px; border-radius: 999px; }
.cp-chip-kicker { background: rgba(255,255,255,.16); color: #f1e6cf; }
.cp-chip-ok { background: #2f9e5b; color: #fff; }
.cp-chip-muted { background: rgba(0,0,0,.22); color: #e6dfcd; }
.cp-name { margin: 0; font-family: "Fraunces", Georgia, serif; font-size: clamp(28px, 4.2vw, 42px); line-height: 1.1; color: #fff; letter-spacing: -.02em; overflow-wrap: anywhere; }
.cp-title { display: inline-block; margin-right: 12px; padding: 0 12px; border-radius: 10px; font-size: .62em; vertical-align: .16em;
  background: var(--cp-gold); color: #3a2a05; letter-spacing: .03em; font-weight: 800; }
.cp-meta { margin: 10px 0 0; display: flex; gap: 8px; flex-wrap: wrap; color: #e5eddc; font-size: 15px; }
.cp-actions { display: flex; flex-direction: column; gap: 10px; align-items: stretch; min-width: 200px; }
.cp-actions form { margin: 0; }
.cp-actions .cp-btn { width: 100%; }

/* ---- Buttons (override global link colours inside the zine theme) ---- */
.cp-btn, body.chesshome-zine a.cp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 11px 18px;
  border-radius: 11px; border: 1px solid transparent; font: 700 14px/1 inherit; cursor: pointer; text-decoration: none;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease; }
.cp-btn:hover { transform: translateY(-1px); }
.cp-btn-sm { padding: 7px 12px; font-size: 12.5px; }
.cp-btn-primary, body.chesshome-zine a.cp-btn-primary, body.chesshome-zine a.cp-btn-primary:visited { background: linear-gradient(135deg, #f3c04a, #e0a526); color: #2e2203 !important; box-shadow: 0 6px 16px rgba(224,165,38,.35); }
.cp-card .cp-btn-primary, body.chesshome-zine .cp-card a.cp-btn-primary { background: var(--cp-forest); color: #fff !important; box-shadow: 0 4px 12px rgba(31,77,46,.28); }
.cp-btn-primary:hover { box-shadow: 0 8px 20px rgba(0,0,0,.25); }
.cp-btn-ghost, body.chesshome-zine a.cp-btn-ghost, body.chesshome-zine a.cp-btn-ghost:visited { background: rgba(255,255,255,.12); color: #fff !important; border-color: rgba(255,255,255,.4); }
.cp-card .cp-btn-ghost { background: var(--bg-hover, #f1ead9); color: var(--text) !important; border-color: var(--border); }
.cp-btn-ghost:hover { background: rgba(255,255,255,.22); }

/* ---- Stat strip ---- */
.cp-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: -26px 20px 22px; position: relative; z-index: 2; }
.cp-stat { background: var(--bg-elev, #fff); border: 1px solid var(--border); border-radius: 16px; padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; box-shadow: 0 8px 22px rgba(30,40,30,.1); min-width: 0; }
.cp-stat-label { font-size: 10.5px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: var(--text-muted); }
.cp-stat-value { font-family: "Fraunces", Georgia, serif; font-size: 30px; font-weight: 700; line-height: 1.1; color: var(--text); }
.cp-stat-value small { font-size: 14px; color: var(--text-muted); font-weight: 500; margin-left: 2px; }
.cp-dim { color: var(--text-muted); }
.cp-stat-sub { font-size: 12px; color: var(--text-muted); }
.cp-stars-static i { font-style: normal; color: #d8d2c2; font-size: 16px; letter-spacing: 1px; }
.cp-stars-static i.on { color: var(--cp-gold); }
.cp-stars-static.sm i { font-size: 13px; }

/* ---- Cards / layout ---- */
.cp-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
.cp-main, .cp-side { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.cp-card { background: var(--bg-elev, #fff); border: 1px solid var(--border); border-radius: 18px; padding: 22px; box-shadow: 0 2px 10px rgba(30,40,30,.05); }
.cp-card > .cp-muted:first-of-type { margin-top: 0; }
.cp-card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.cp-pill { font-size: 12px; font-weight: 700; padding: 3px 11px; border-radius: 999px; background: var(--accent-soft, #e3efe3); color: var(--cp-forest); white-space: nowrap; }
.cp-about { margin: 0; line-height: 1.65; white-space: pre-line; overflow-wrap: anywhere; }

/* ---- Claim ---- */
.cp-claim-teaser { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; margin-bottom: 22px;
  background: linear-gradient(135deg, #fff9e8, #fdf0cc); border-color: #ecd9a0; }
.cp-claim-teaser h2 { margin-bottom: 2px; }
.cp-claim-teaser p { margin: 0; }
.cp-claim-icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-size: 22px; background: #f3c04a; color: #3a2a05; flex: none; }
.cp-claim { margin-bottom: 22px; border: 2px solid #e8cd7e; background: linear-gradient(180deg, #fffbee, var(--bg-elev, #fff)); scroll-margin-top: 80px; }
.cp-claim-head { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.cp-claim-head p { margin: 0; }
.cp-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.cp-steps li { display: flex; gap: 14px; align-items: flex-start; }
.cp-steps p { margin: 4px 0 0; }
.cp-step-n { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 14px; background: var(--cp-forest); color: #fff; }
.cp-code-row { display: flex; gap: 10px; align-items: center; margin-top: 8px; flex-wrap: wrap; }
.cp-code-row code { padding: 10px 14px; border-radius: 10px; font-size: 16px; font-weight: 700; letter-spacing: .04em; background: #1f2a22; color: #b9f3c9; user-select: all; }
.cp-steps form { margin: 8px 0 0; }

/* ---- Reviews ---- */
.cp-dist { display: grid; gap: 6px; margin: 16px 0 6px; padding: 14px 16px; border-radius: 12px; background: var(--bg-hover, #f6f1e4); }
.cp-dist-row { display: grid; grid-template-columns: 34px 1fr 24px; gap: 10px; align-items: center; font-size: 12.5px; color: var(--text-muted); }
.cp-bar { height: 8px; border-radius: 4px; background: rgba(0,0,0,.08); overflow: hidden; }
.cp-bar i { display: block; height: 100%; background: linear-gradient(90deg, #f3c04a, #e0a526); border-radius: 4px; }
.cp-dist-n { text-align: right; }
.cp-reviews { display: grid; gap: 4px; margin-top: 8px; }
.cp-review { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--border); }
.cp-review:last-child { border-bottom: 0; }
.cp-review-avatar { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; background: var(--accent-soft, #e3efe3); color: var(--cp-forest); }
.cp-review-body { min-width: 0; }
.cp-review-top { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; }
.cp-review-top time { font-size: 12.5px; }
.cp-review p { margin: 6px 0 0; line-height: 1.65; white-space: pre-line; overflow-wrap: anywhere; }
.cp-empty { text-align: center; padding: 34px 10px 18px; display: grid; gap: 4px; justify-items: center; }
.cp-empty span { font-size: 46px; line-height: 1; opacity: .35; }
.cp-empty p { margin: 0; }

/* ---- Forms ---- */
.cp-form { display: grid; gap: 10px; }
.cp-form h2 { margin: 0; }
.cp-label { font-size: 13px; font-weight: 700; display: block; }
.cp-form textarea, .cp-form input[type="text"] { width: 100%; padding: 11px 13px; border-radius: 11px; border: 1px solid var(--border-strong, var(--border));
  background: var(--bg, #fff); color: var(--text); font: inherit; line-height: 1.5; resize: vertical; }
.cp-form textarea:focus, .cp-form input[type="text"]:focus { outline: 2px solid rgba(31,77,46,.35); border-color: var(--cp-forest); }
.cp-form-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 12.5px; }
.cp-two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cp-rate { display: grid; gap: 4px; }
.cp-stars-input { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 2px; }
.cp-stars-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.cp-stars-input label { font-size: 34px; line-height: 1; cursor: pointer; color: #d8d2c2; transition: color .1s, transform .1s; padding: 0 2px; }
.cp-stars-input label:hover, .cp-stars-input label:hover ~ label, .cp-stars-input input:checked ~ label { color: var(--cp-gold); }
.cp-stars-input label:hover { transform: scale(1.12); }
.cp-stars-input input:focus-visible + label { outline: 2px solid var(--cp-forest); border-radius: 6px; }
.cp-link-danger { margin-top: 10px; background: none; border: 0; color: #b3402f; font-size: 13px; cursor: pointer; text-decoration: underline; padding: 0; }
.cp-signin { text-align: center; display: grid; gap: 6px; justify-items: center; padding: 6px 0; }
.cp-signin p { margin: 0 0 6px; }

/* ---- Side widgets ---- */
.cp-ratings { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cp-rating { padding: 12px; border-radius: 12px; background: var(--bg-hover, #f6f1e4); display: grid; gap: 2px; }
.cp-rating span { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); }
.cp-rating strong { font-family: "Fraunces", Georgia, serif; font-size: 24px; }
.cp-facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 14px; }
.cp-facts li { display: flex; justify-content: space-between; gap: 12px; }
.cp-facts li span { color: var(--text-muted); }
.cp-facts li b { text-align: right; font-weight: 600; }
.cp-ok { color: #1f7a45; }
.cp-owner { padding: 0; overflow: hidden; border-color: #bcd9c4; }
.cp-owner summary { cursor: pointer; padding: 16px 22px; font-weight: 800; background: linear-gradient(135deg, #eaf5ec, #f6fbf6); list-style: none; }
.cp-owner summary::-webkit-details-marker { display: none; }
.cp-owner .cp-form { padding: 6px 22px 22px; }

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .cp-layout { grid-template-columns: 1fr; }
  .cp-stats { grid-template-columns: repeat(2, 1fr); margin: -22px 12px 20px; }
  .cp-hero-body { grid-template-columns: auto 1fr; padding: 26px 22px 28px; }
  .cp-actions { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; min-width: 0; }
  .cp-actions form, .cp-actions .cp-btn { flex: 1 1 160px; width: auto; }
}
@media (max-width: 560px) {
  .cp-hero { border-radius: 16px; }
  .cp-hero-body { grid-template-columns: 1fr; gap: 14px; text-align: left; }
  .cp-avatar { width: 76px; height: 76px; font-size: 28px; }
  .cp-hero-art span { font-size: 190px; }
  .cp-stats { gap: 10px; margin: -18px 6px 18px; }
  .cp-stat { padding: 12px; } .cp-stat-value { font-size: 24px; }
  .cp-card { padding: 18px 16px; border-radius: 16px; }
  .cp-claim-teaser { grid-template-columns: 1fr; }
  .cp-claim-teaser .cp-btn, .cp-claim-teaser form { width: 100%; }
  .cp-two { grid-template-columns: 1fr; }
  .cp-stars-input label { font-size: 38px; }
}
