/* 教練頁(/coaches/ 與四個教練子頁)專用樣式 — 載入於 style.css 之後 */

/* ---------- 區塊 1|一句話定調 ---------- */
.statement { padding-block: 56px; background: var(--surface); border-bottom: 1px solid var(--line); }
.statement__text {
  max-width: 820px; margin: 0; font-size: clamp(25px, 5.4vw, 40px); font-weight: 800; line-height: 1.55;
}
.statement__text .nb { display: inline-block; }
.statement__text em { font-style: normal; color: var(--red); }
@media (min-width: 1024px) { .statement { padding-block: 96px; } }

/* ---------- 區塊 2|教練卡(總覽頁:手機一排一張) ---------- */
.coach-grid--page { grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 600px) { .coach-grid--page { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .coach-grid--page { grid-template-columns: repeat(4, 1fr); } }
.coach-grid--page .coach-card__body { display: flex; flex-direction: column; flex: 1; padding: 18px 18px 20px; }
.coach-grid--page .coach-card__dan { font-size: 44px; color: var(--red); }
.coach-grid--page .coach-card__dan small { font-size: 16px; color: var(--ink); }
.coach-grid--page .coach-card__name small { font-size: var(--fs-note); font-weight: 700; color: var(--muted); margin-left: 6px; }
.coach-card__school { font-size: var(--fs-note); color: var(--muted); margin: 8px 0 0; line-height: 1.6; }
.coach-card__more { margin-top: auto; padding-top: 14px; color: var(--red); font-weight: 700; font-size: var(--fs-note); }
.coach-card:hover .coach-card__more { text-decoration: underline; }
.coach-grid--page .coach-card__placeholder { font-size: var(--fs-body); font-weight: 700; }

/* ---------- 區塊 4|雙軌時間軸 ---------- */
.dual { max-width: 980px; margin: 0; padding: 0; list-style: none; }
.dual__head, .dual__row {
  display: grid; grid-template-columns: minmax(0, 1fr) 76px minmax(0, 1fr); align-items: stretch;
}
.dual__head { position: sticky; top: 64px; z-index: 2; background: var(--bg); padding-bottom: 8px; }
.dual__head span {
  font-weight: 800; font-size: var(--fs-body); padding: 8px 12px; border-radius: 8px; text-align: center;
  background: var(--surface); border: 1.5px solid var(--ink);
}
.dual__head span:last-child { border-color: var(--red); }
.dual__year {
  position: relative; display: flex; justify-content: center; align-items: flex-start; padding-top: 14px;
}
.dual__year::before { /* 中軸線 */
  content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; transform: translateX(-50%);
  background: var(--ink);
}
.dual__row:first-child .dual__year::before { top: 24px; }
.dual__row:last-child .dual__year::before { bottom: auto; height: 24px; background: var(--brand-red); }
.dual__year b {
  position: relative; z-index: 1; display: inline-block; min-width: 60px; text-align: center;
  font-family: var(--font-num); font-weight: 800; font-size: 16px; line-height: 1.3;
  background: var(--ink); color: var(--bg); border-radius: 999px; padding: 4px 6px;
}
.dual__row--key .dual__year b { background: var(--brand-red); }
.dual__year b.dual__dash { background: var(--surface); color: var(--muted); border: 2px solid var(--line); }
.dual__cell { padding: 8px 0 18px; }
.dual__cell > div {
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
  padding: 10px 12px; font-size: var(--fs-note); line-height: 1.6; color: var(--ink-soft);
}
.dual__cell strong { display: block; color: var(--ink); font-size: var(--fs-body); line-height: 1.45; }
.dual__row--key .dual__cell > div { border: 2px solid var(--brand-red); }
.dual__cell--empty { position: relative; }
.dual__left > div { margin-right: 6px; }
.dual__right > div { margin-left: 6px; }
.dual__closing { max-width: var(--text-max); margin: 28px 0 0; font-weight: 800; font-size: var(--fs-h3); line-height: 1.6; }
.sr-label {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
@media (max-width: 520px) {
  .dual__head, .dual__row { grid-template-columns: minmax(0, 1fr) 58px minmax(0, 1fr); }
  .dual__year b { min-width: 50px; font-size: 14px; padding: 3px 4px; }
  .dual__cell > div { padding: 8px 9px; font-size: 14.5px; }
  .dual__cell strong { font-size: 16px; }
  .dual__head span { font-size: 16px; padding: 6px 8px; }
}

/* ---------- 區塊 4.5|教練也要上課 ---------- */
.training { max-width: var(--text-max); }
.training__lead { font-size: 1.05em; }
.topics {
  list-style: none; margin: 24px 0; padding: 0; counter-reset: topic;
  display: grid; gap: 10px; grid-template-columns: 1fr;
}
@media (min-width: 600px) { .topics { grid-template-columns: 1fr 1fr; } }
.topics li {
  counter-increment: topic; position: relative;
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
  padding: 12px 14px 12px 54px; font-weight: 700; line-height: 1.5;
}
.topics li::before {
  content: counter(topic); position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: var(--bg);
  font-family: var(--font-num); font-size: 15px; display: flex; align-items: center; justify-content: center;
}
.training__punch { font-weight: 800; font-size: var(--fs-h3); line-height: 1.6; margin: 0; }

/* ---------- 合作學校 ---------- */
.school-list { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.school-list li {
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  padding: 4px 14px; font-weight: 700;
}

/* ---------- 教練子頁:頁首 ---------- */
.profile-head { background: var(--surface); border-bottom: 1px solid var(--line); padding-block: 28px 36px; }
.profile-head__grid { display: grid; gap: 24px; align-items: start; }
@media (min-width: 760px) { .profile-head__grid { grid-template-columns: minmax(240px, 360px) 1fr; gap: 48px; align-items: center; } }
.profile-head__photo { margin: 0; }
.profile-head__photo img, .profile-head__placeholder {
  width: 100%; aspect-ratio: 1362 / 2048; object-fit: cover; border-radius: var(--radius); background: var(--surface-2);
}
.profile-head__placeholder {
  display: flex; align-items: center; justify-content: center; text-align: center;
  color: var(--muted); font-weight: 700; font-size: var(--fs-h3); padding: 16px; border: 1px dashed #4A4642;
}
@media (max-width: 759px) {
  .profile-head__photo { max-width: 230px; }
}
.crumbs { font-size: var(--fs-note); color: var(--muted); margin: 0 0 12px; }
.crumbs a { color: var(--muted); }
.profile-head h1 { margin-bottom: .3em; }
.profile-head h1 .role { font-weight: 700; color: var(--ink-soft); }
.profile-dan { display: flex; align-items: baseline; gap: 10px; margin: 0 0 14px; }
.profile-dan b { font-family: var(--font-num); font-size: var(--fs-big); font-weight: 800; color: var(--red); line-height: 1; }
.profile-dan span { font-weight: 800; color: var(--ink); font-size: 20px; }
.profile-dan .profile-dan__sub { font-weight: 600; color: var(--muted); font-size: var(--fs-note); }
.profile-facts { list-style: none; margin: 0 0 20px; padding: 0; color: var(--ink-soft); }
.profile-facts li { position: relative; padding-left: 18px; margin-bottom: 4px; }
.profile-facts li::before { content: ""; position: absolute; left: 2px; top: .75em; width: 7px; height: 7px; border-radius: 50%; background: var(--brand-red); }

/* 子頁內文 */
.prose { max-width: var(--text-max); }
.prose h3 { margin-top: 1.4em; }
.prose ul { padding-left: 1.3em; margin: 0 0 1em; }
.prose li { margin-bottom: 6px; }
.prose .story blockquote { font-size: 1.05em; }
.prose .story { margin: 0; max-width: none; }
.table-wrap + .note { margin-top: 10px; }
table.table--profile { min-width: 560px; }
table.table--profile td, table.table--profile th { text-align: left; }
table.table--profile td.result { white-space: nowrap; font-weight: 700; }
table.table--profile tr.is-key td.result { color: var(--red); }
table.table--kv { min-width: 0; }
table.table--kv th { width: 7em; white-space: nowrap; }

.cred-list { list-style: none; margin: 0; padding: 0; max-width: var(--text-max); display: grid; gap: 8px; }
.cred-list li {
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px; line-height: 1.6;
}
.cred-list li small { display: block; color: var(--muted); font-size: var(--fs-note); margin-top: 2px; }

/* 三個三連霸 */
.triple { display: grid; gap: 14px; }
@media (min-width: 860px) { .triple { grid-template-columns: repeat(3, 1fr); } }
.triple__item { background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--brand-red); border-radius: var(--radius); padding: 20px; }
.triple__level { font-size: var(--fs-note); font-weight: 700; color: var(--muted); margin: 0; }
.triple__name { font-size: var(--fs-h3); font-weight: 800; margin: 2px 0 8px; line-height: 1.4; }
.triple__years { margin: 0; font-family: var(--font-num); font-weight: 800; font-size: 22px; line-height: 1.4; }
.triple__roc { margin: 4px 0 0; font-size: var(--fs-note); color: var(--muted); }
.triple__medal { display: inline-block; margin-top: 10px; font-weight: 800; color: var(--red); }

/* 感謝狀 */
.cert { display: grid; gap: 24px; align-items: start; }
@media (min-width: 860px) { .cert { grid-template-columns: 340px 1fr; gap: 40px; } }
.cert figure { margin: 0; }
.cert img { border-radius: 8px; border: 1px solid var(--line); }
.cert figcaption { font-size: var(--fs-note); color: var(--muted); margin-top: 8px; }
.cert__text {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px;
  line-height: 1.9;
}
.cert__text p { margin: 0; }
.cert__text .cert__sign { margin-top: 12px; color: var(--ink-soft); }

/* 館長的話 */
.quote {
  max-width: var(--text-max); margin: 0;
  background: var(--surface); border-left: 4px solid var(--brand-red); border-radius: 0 var(--radius) var(--radius) 0;
  padding: 20px 24px; font-size: 1.1em; line-height: 1.9;
}
.quote p { margin: 0; }
.quote footer { margin-top: 12px; font-size: var(--fs-note); color: var(--muted); font-weight: 700; }

.related { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; max-width: var(--text-max); }
.related a {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 52px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px;
  color: var(--ink); font-weight: 700; text-decoration: none;
}
.related a::after { content: "→"; color: var(--red); }
.related a:hover { border-color: var(--ink); }
.related small { display: block; font-weight: 500; color: var(--muted); font-size: var(--fs-note); }
