/* STARBOARD KOREA team: portrait cards, touch rail and individual profiles. */
.team-section { background: #f5f6f7; padding: 88px 0; }
.team-eyebrow { font-family: var(--font-head); font-size: 13px; font-weight: 700; letter-spacing: .14em; color: var(--red-deep); margin-bottom: 14px; }
.team-section-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 28px; margin-bottom: 32px; }
.team-section-heading h2 { font-size: clamp(28px, 3.3vw, 48px); line-height: 1.25; }
.team-section-heading p:not(.team-eyebrow) { max-width: 650px; margin-top: 16px; }
.team-all-link { flex-shrink: 0; padding: 12px 0; font-weight: 700; border-bottom: 2px solid var(--red); }
.team-rail { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 72px) / 4); gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-color: var(--red) #d8dde2; scrollbar-width: thin; padding: 5px 2px 22px; }
.team-rail.is-flowing { scroll-snap-type: none; scroll-behavior: auto; scrollbar-width: none; overflow-anchor: none; }
.team-rail.is-flowing::-webkit-scrollbar { display: none; }
.team-card { position: relative; display: flex; flex-direction: column; min-width: 0; background: #fff; border: 1px solid #e0e4e7; scroll-snap-align: start; }
.team-card-link { display: block; flex: none; }
.team-portrait { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: #e5e9ed; }
.team-portrait img { width: 100%; height: 100%; object-fit: cover; object-position: var(--portrait-position, 50% 50%); transform: scale(var(--portrait-zoom, 1)); transform-origin: var(--portrait-position, 50% 50%); transition: transform .3s ease; }
.team-portrait-avatar { display: flex; align-items: center; justify-content: center; background: #f0f3f5; }
.team-portrait-avatar img { width: 86%; height: 82%; object-fit: contain; }
.team-avatar-label { position: absolute; bottom: 18px; left: 18px; font-size: 13px; color: #536776; }
.team-card-role { position: absolute; top: 16px; left: 16px; padding: 5px 10px; background: #fff; color: #243443; font-size: 13px; font-weight: 700; }
.team-card-badge { position: absolute; top: 16px; right: 16px; padding: 5px 10px; background: var(--red-deep); color: #fff; font-size: 13px; font-weight: 700; letter-spacing: .04em; }
.team-card-arrow { position: absolute; right: 14px; bottom: 14px; display: grid; place-items: center; width: 44px; height: 44px; background: #fff; color: var(--red-deep); font-size: 24px; transition: background .2s, color .2s; }
.team-card-copy { padding: 22px; flex: 1; }
.team-card-copy h3 { font-size: 25px; line-height: 1.4; color: #172c3b; }
.team-card-nickname { color: #687985; font-size: .65em; font-weight: 400; white-space: nowrap; }
.team-card-english-name { display: block; color: #687985; font-size: .52em; font-weight: 700; letter-spacing: .04em; line-height: 1.25; overflow-wrap: anywhere; }
.team-card-discipline { color: var(--red-deep); font-size: 14px; font-weight: 700; margin: 6px 0 12px; }
.team-card-intro { font-size: 15px; line-height: 1.7; word-break: keep-all; }
.team-card-link:hover img, .team-card-link:focus-visible img { transform: scale(var(--portrait-hover-zoom, 1.04)); }
.team-card-link:hover .team-card-arrow, .team-card-link:focus-visible .team-card-arrow { background: var(--red-deep); color: #fff; }
.team-rail-footer { display: flex; justify-content: flex-end; margin-top: 12px; }
.team-rail-controls { display: flex; gap: 10px; }
.team-rail-controls[hidden] { display: none; }
.team-rail-controls button { width: 48px; height: 48px; background: #fff; border: 1px solid #bdc6cf; font-size: 24px; cursor: pointer; color: #14263c; }
.team-rail-controls button:disabled { opacity: .35; cursor: default; }
.team-page { padding-bottom: 64px; }
.team-masthead { position: relative; min-height: 460px; background: #14263c; color: #fff; display: grid; align-items: end; overflow: hidden; }
.team-masthead.has-photo { min-height: clamp(420px, 39vw, 650px); }
.team-masthead > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--portrait-position, 50% 50%); }
.team-masthead.has-photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(7,21,37,.9), rgba(7,21,37,0) 90%); }
.team-masthead .container { position: relative; z-index: 1; width: 100%; padding-top: 65px; padding-bottom: 65px; }
.team-masthead .team-eyebrow { color: #ff867e; }
.team-masthead h1 { font-family: var(--font-head); font-size: clamp(46px, 7vw, 96px); line-height: 1.06; letter-spacing: -.04em; color: #fff; margin-bottom: 22px; }
.team-masthead p:not(.team-eyebrow) { max-width: 680px; color: #e2e9f0; }
.team-banner-note { display: inline-block; margin-top: 28px; border: 1px solid #708090; padding: 8px 14px; font-size: 14px; color: #d7e1eb; }
.team-roster { padding-top: 72px; }
.team-group { padding-bottom: 64px; }
.team-group-heading { display: flex; align-items: baseline; gap: 16px; padding-bottom: 18px; border-bottom: 1px solid #d4dce2; margin-bottom: 28px; }
.team-group-heading h2 { font-size: 28px; }
.team-group-heading span { color: #697784; font-size: 14px; }
.team-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.team-socials { display: flex; flex-wrap: wrap; gap: 10px 18px; }

.team-socials a { display:inline-flex; align-items:center; justify-content:center; min-width:44px; min-height:44px; padding:9px; border:1px solid #d9e1e5; border-radius:50%; background:#fff; }
.team-socials a:hover { border-color:var(--red-deep); background:#f4f7f8; }
.team-card-heading { display: flex; align-items: center; gap: 8px; }
.team-card-heading h3 { flex: 1; min-width: 0; word-break: keep-all; }
.team-card-heading h3 a { color: inherit; }
.team-card-heading h3 a:hover { color: var(--red-deep); }
.team-card-heading .team-socials { flex: none; flex-wrap: nowrap; gap: 0; }
.team-card-heading .team-socials a { padding: 8px; border: 0; border-radius: 0; background: transparent; }
.team-card-heading .team-socials a:hover { background: transparent; opacity: .7; }
.team-card-heading .social-icon { width: 24px; height: 24px; }
.team-card-heading .social-icon--youtube { width: 28px; }
.team-card-heading .team-socials a:focus-visible { outline: 2px solid var(--red-deep); outline-offset: 0; }

.team-profile { background: #f5f6f7; }
.team-crumb { padding: 26px 0; font-size: 14px; }
.team-crumb a { text-decoration: underline; text-underline-offset: 4px; }
.team-profile-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(30px, 6vw, 90px); align-items: center; padding-bottom: 72px; }
.team-profile-photo { max-height: 760px; }
.team-profile-history { list-style: none; margin: 0; padding: 0; }
.team-profile-history li { padding: 12px 0; border-bottom: 1px solid #d4e0e6; line-height: 1.7; overflow-wrap: anywhere; }
.team-profile-top h1 { font-size: clamp(42px, 5vw, 70px); color: #14263c; line-height: 1.2; margin-bottom: 20px; }
.team-profile-nickname { display: inline-block; color: #697b88; font-size: .46em; font-weight: 400; letter-spacing: .02em; white-space: nowrap; }
.team-profile-english-name { display: block; color: #697b88; font-size: .34em; font-weight: 700; letter-spacing: .04em; line-height: 1.25; overflow-wrap: anywhere; }
.team-profile-intro { font-size: 18px; line-height: 1.85; margin-bottom: 32px; word-break: keep-all; }
.team-profile-facts { display: grid; grid-template-columns: 72px 1fr; gap: 12px 18px; padding: 24px 0; border-top: 1px solid #ced8e0; border-bottom: 1px solid #ced8e0; }
.team-profile-facts dt { color: #667582; }
.team-profile-facts dd { font-weight: 700; color: #213748; }
.team-profile-social { margin-top: 28px; }
.team-profile-social h2 { font-size: 18px; margin-bottom: 10px; }
.team-pending { color: #61717d; font-size: 15px; }
.team-profile-story { padding: 56px 0; border-top: 1px solid #d5dde2; }
.team-profile-story h2 { margin-bottom: 24px; font-size: 28px; }
.team-profile-story p { max-width: 760px; margin-bottom: 16px; line-height: 1.85; }
.team-profile-achievements ol { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; max-width: 920px; margin: 0; padding: 0; list-style: none; }
.team-profile-achievements li { position: relative; min-height: 178px; border: 1px solid #d8e1e5; border-top: 3px solid var(--red); padding: 20px 94px 20px 20px; background: #fff; }
.team-profile-achievements .team-achievement-date { margin: 0 0 8px; color: #697985; font-size: .8125rem; font-weight: 700; line-height: 1.4; }
.team-profile-achievements h3 { color: #1f3544; font-size: 1.0625rem; line-height: 1.55; word-break: keep-all; }
.team-profile-achievements li > p:not(.team-achievement-date) { margin: 8px 0 0; color: #536772; font-size: .875rem; line-height: 1.65; word-break: keep-all; }
.team-profile-achievements strong { position: absolute; right: 20px; bottom: 20px; color: var(--red-deep); font-family: var(--font-head); font-size: 1.5rem; }
.team-profile-results { max-width: 760px; margin-inline: auto; padding: 32px 0; }
.team-profile-results h2 { text-align: center; }
.team-profile-results table { width: 100%; border-collapse: collapse; text-align: left; font-size: .9375rem; line-height: 1.5; }
.team-profile-results th { padding: 9px 12px; border-top: 2px solid #086a83; border-bottom: 1px solid #cedce2; color: #086a83; font-size: .8125rem; }
.team-profile-results td { padding: 10px 12px; border-bottom: 1px solid #d8e1e5; vertical-align: top; }
.team-profile-results th:first-child, .team-profile-results .team-result-year { width: 86px; padding-left: 0; white-space: nowrap; color: #647781; }
.team-profile-results th:last-child, .team-profile-results .team-result-place { width: 64px; padding-right: 0; text-align: center; white-space: nowrap; }
.team-result-event { color: #173442; font-weight: 700; }
.team-result-division { margin-left: 12px; color: #647781; font-size: .875rem; }
.team-profile-results .team-result-place { color: var(--red-deep); font-weight: 700; }
.team-profile-results td.team-result-place { white-space: normal; word-break: keep-all; }
.team-profile-results td.team-result-year { white-space: normal; }
@media (max-width: 600px) {
  .team-profile-results table { font-size: .875rem; }
  .team-profile-results th, .team-profile-results td { padding: 9px 6px; }
  .team-profile-results th:first-child, .team-profile-results .team-result-year { width: 58px; font-size: .8125rem; }
  .team-profile-results th:last-child, .team-profile-results .team-result-place { width: 54px; }
  .team-result-division { display: block; margin: 3px 0 0; font-size: .8125rem; }
}
.team-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.team-gallery img { width: 100%; height: auto; }
.team-gallery--uniform { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.team-gallery--uniform img { display: block; aspect-ratio: 4 / 5; height: 100%; object-fit: contain; object-position: center; background: #eef3f5; }
/* Keep Kim Wooseok's tour photos in matching portrait frames. */
.team-gallery img[src^="/assets/img/team/kim-wooseok-tour-"] { display: block; aspect-ratio: 2 / 3; object-fit: cover; object-position: center; }
/* Match the beach photo's 3:4 frame by cropping only the sunrise photo's sky. */
.team-gallery img[src^="/assets/img/team/bae-soyeong-sunrise.jpg"] { aspect-ratio: 3 / 4; object-fit: cover; object-position: center bottom; }
.team-profile-back { display: inline-block; margin-top: 32px; color: var(--red-deep); font-weight: 700; }
.team-profile-bio--featured { margin-bottom: 0; padding: 32px; background: #fff; border-top: 3px solid #086a83; border-left: 1px solid #d8e3e7; border-right: 1px solid #d8e3e7; border-bottom: 1px solid #d8e3e7; }
.team-profile-bio--featured h2 { color: #173442; margin-bottom: 18px; }
.team-profile-bio--featured p { max-width: none; font-size: 1rem; line-height: 1.9; }
.team-profile-bio--featured p:last-child { margin-bottom: 0; }
.team-profile-bio--featured strong { color: #086a83; font-weight: 700; }
.team-profile-credentials { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.team-profile-credentials span { padding: 7px 12px; background: #173442; color: #fff; font-size: .875rem; font-weight: 700; }
.team-profile-credentials span:last-child { background: #b52f2b; }
.team-profile-bio--featured + .lesson-series { margin-top: 24px; }
.team-related-videos > div { max-width: 900px; }
.team-related-video { max-width: 900px; }
.team-related-video-frame { aspect-ratio: 16 / 9; background: #14263c; }
.team-related-video-frame iframe { width: 100%; height: 100%; display: block; border: 0; }
.team-related-video h3 { margin: 20px 0 10px; color: #173343; font-size: 22px; }
.team-related-video p { max-width: 800px; }
.team-related-video-links { display: flex; flex-wrap: wrap; gap: 16px; }
.team-related-video-links a { min-height: 44px; display: inline-flex; align-items: center; color: var(--red-deep); font-weight: 700; }
.team-profile-sources ul { margin: 0; padding-left: 20px; line-height: 1.8; }
.team-profile-sources a { color: var(--red-deep); font-weight: 700; }
.team-profile-sources span { color: #687985; font-size: .875rem; }
@media (max-width: 600px) { .team-profile-english-name { font-size: .3em; } .team-related-video-links { gap: 8px 14px; } }
@media (max-width: 600px) { .team-profile-bio--featured { padding: 24px 18px; } }
.team-lessons-link { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 12px 20px; color: #086a83; background: #eef5f7; font-size: .875rem; font-weight: 700; border-top: 1px solid #d1e0e6; }
.team-lessons-link:focus-visible { outline: 3px solid var(--red-deep); outline-offset: 3px; }
@media (max-width: 1100px) {
  .team-rail { grid-auto-columns: calc((100% - 48px) / 3); }
  .team-grid { gap: 22px; }
  .team-gallery--uniform { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .team-section { padding: 56px 0; }
  .team-section-heading { display: block; }
  .team-all-link { display: inline-block; margin-top: 16px; }
  .team-rail { grid-auto-columns: 72%; gap: 18px; }
  .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
  .team-card-copy { padding: 16px; }
  .team-card-copy h3 { font-size: 23px; }
  .team-masthead { min-height: 390px; }
  .team-roster { padding-top: 48px; }
  .team-profile-top { grid-template-columns: 1fr; padding-bottom: 48px; }
  .team-profile-photo { max-width: 520px; width: 100%; }
  .team-gallery { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .team-grid { grid-template-columns: 1fr; }
  .team-rail { grid-auto-columns: 86%; }
}
@media (prefers-reduced-motion: reduce) {
  .team-portrait img, .team-card-arrow { transition: none; }
}

/* Related portrait videos, including long-form vertical footage. */
.team-related-video-frame--vertical { aspect-ratio:9 / 16; width:min(100%,340px); margin-inline:auto; }
.team-related-videos--grid > div { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:32px; max-width:900px; }
.team-related-videos--grid .team-related-video { min-width:0; }
@media(max-width:700px) { .team-related-videos--grid > div { grid-template-columns:1fr; gap:40px; } }

/* A profile highlight for documented SUP commentary work. */
.team-commentary-feature { max-width:600px; margin:32px auto 48px; border:1px solid #c8dde4; border-radius:16px; background:#edf5f7; overflow:hidden; }
.team-commentary-copy { padding:24px 24px 20px; }
.team-commentary-copy .team-eyebrow { color:#08738a; font-weight:800; margin:0 0 12px; }
.team-commentary-copy h2 { font-size:clamp(23px,2.4vw,28px); line-height:1.4; color:#173442; margin:0 0 16px; word-break:keep-all; }
.team-commentary-copy > p:not(.team-eyebrow) { font-size:16px; line-height:1.9; max-width:850px; word-break:keep-all; }
.team-commentary-copy .team-commentary-label { display:inline-block; margin:12px 0 0; padding:8px 13px; border-radius:6px; background:#173442; color:#fff; font-size:13px; font-weight:700; }
.team-commentary-player { aspect-ratio:16/9; background:#173442; }
.team-commentary-player iframe { display:block; width:100%; height:100%; border:0; }
.team-commentary-links { display:flex; flex-wrap:wrap; gap:8px 24px; padding:12px 24px; }
.team-commentary-links a { display:inline-flex; align-items:center; min-height:44px; color:#08677b; font-weight:700; }
#sup-commentary { scroll-margin-top:190px; }
@media(max-width:600px) { .team-commentary-copy { padding:24px 20px 20px; } .team-commentary-links { padding:12px 20px; } .team-commentary-copy > p:not(.team-eyebrow) { font-size:15px; } }

/* Profile video shortcuts: beginner lessons on the left, commentary on the right. */
.team-profile-video-shortcuts { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:10px; margin:16px 0; }
.team-profile-video-shortcuts .team-lessons-link { margin:0; padding:12px 14px; border:1px solid #d1e0e6; border-radius:6px; line-height:1.6; word-break:keep-all; }
.team-profile-video-shortcuts .team-lessons-link:last-child { color:#fff; background:#173442; border-color:#173442; }
@media(max-width:600px) { .team-profile-video-shortcuts { gap:8px; } .team-profile-video-shortcuts .team-lessons-link { padding:10px; font-size:13px; } }
