/* release 371 (new design): package P6 (company, legal, coaches) in the designer's layout. Built on sx_brand.css's b-* blocks;
   this file only adds what those pages need: the reading column for legal text, the contact form, the support search, the team
   grid, the coaching tabs and the re-skin of the coaching feature board, Team Scout and the 404 page.
   Text colours stay on --b-ink / --b-text / --b-muted (4.5:1 or better on white). */

.p6 { background: #fff; color: var(--b-ink); font-family: var(--b-font); }
.p6 *, .p6 *::before, .p6 *::after { box-sizing: border-box; }
.p6 main a:not([class]) { color: var(--b-primary-600); text-underline-offset: 3px; }
.p6 main a:not([class]):hover { color: var(--b-primary-700); }
/* the older light theme (scoutics_light.css) sets a grey page and light heading weights; the designer's are white and 800 */
html:not(#p6a):not(#p6b):not(#p6c):not(#p6d):not(#p6e) body.p6 { background: #fff !important; background-color: #fff !important; color: var(--b-ink); margin: 0; }
html body.p6 main :is(.b-h1, .b-h2, .b-subhero h1, .p6-doc h2, .p6-story h2) { font-weight: 800 !important; color: var(--b-ink); }
html body.p6 main .b-subhero h1 { color: #fff; }
html body.p6 main :is(.b-h3, .p6-help h3, .tm-person-name) { font-weight: 800 !important; }
.p6 [id] { scroll-margin-top: 96px; }
.p6-skip { position: absolute; left: -10000px; }
.p6-skip:focus { position: fixed; left: 16px; top: 12px; z-index: 999; padding: 10px 14px; background: #fff; color: var(--b-ink); border: 1px solid var(--b-line); border-radius: var(--b-radius); }

/* inner-page title band: crumb + h1 + lead */
.p6 .b-subhero .p6-crumb { margin: 0 0 12px; font-size: 15px; font-weight: 700; color: #fff; opacity: 1; }
.p6 .b-subhero .p6-crumb a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.p6 .b-subhero .p6-updated { margin-top: 16px; font-size: 14px; opacity: 1; }
.p6 .b-subhero .b-btns { margin-top: 28px; }
.p6 .b-subhero.is-center { text-align: center; }
.p6 .b-subhero.is-center p { margin-left: auto; margin-right: auto; }
.p6 .b-subhero.is-center .b-btns { justify-content: center; }

/* the reading column for legal and policy text (the words are unchanged; only the type) */
.p6-doc { max-width: 820px; }
.p6-doc h2 { margin: 48px 0 12px; color: var(--b-ink); font-size: 26px; line-height: 1.25; font-weight: 800; letter-spacing: -.01em; }
.p6-doc > h2:first-child, .p6-doc > :first-child h2:first-child { margin-top: 0; }
.p6-doc p, .p6-doc li { color: var(--b-text); font-size: 17px; line-height: 1.7; }
.p6-doc p { margin: 0 0 14px; }
.p6-doc strong { color: var(--b-ink); }
.p6-doc ul { margin: 0 0 14px; padding: 0; list-style: none; display: grid; gap: 10px; }
.p6-doc ul li { position: relative; padding-left: 34px; }
.p6-doc ul li::before { content: ""; position: absolute; left: 0; top: 4px; width: 22px; height: 22px; border-radius: 50%; background: var(--b-primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 13px no-repeat; }
.p6-doc .p6-callout { margin: 0 0 32px; padding: 20px 24px; border-radius: var(--b-radius); background: var(--b-primary-50); border-left: 4px solid var(--b-primary); color: var(--b-ink); }
.p6-doc .p6-callout p { margin: 0; color: var(--b-ink); }
.p6-doc .p6-updated { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--b-line); color: var(--b-muted); font-size: 14px; }
.p6-toc { position: sticky; top: 96px; align-self: start; }
.p6-toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; border-left: 2px solid var(--b-line); }
.p6-toc a { display: block; padding: 6px 0 6px 16px; margin-left: -2px; border-left: 2px solid transparent; color: var(--b-text); font-size: 14px; font-weight: 600; text-decoration: none; }
.p6-toc a:hover { color: var(--b-primary-600); border-left-color: var(--b-primary); }
.p6-toc .b-eyebrow { margin-bottom: 12px; }
.p6-docgrid { display: grid; grid-template-columns: 240px minmax(0, 820px); gap: 72px; justify-content: center; }
.p6 .p6-inline-btn { margin: 4px 0 0; }

/* value cards (about, team) and icon tiles */
.p6-values .b-card { height: 100%; }
.p6-values .b-icon { margin-bottom: 20px; }
.p6-values .b-h3 { margin-bottom: 10px; }

/* about: the story as designer cards */
.p6-story { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.p6-story .b-card h2 { margin: 0 0 10px; font-size: 21px; line-height: 1.3; font-weight: 800; color: var(--b-ink); }
.p6-story .b-card p, .p6-story .b-card li { margin: 0 0 10px; color: var(--b-text); font-size: 16px; line-height: 1.65; }
.p6-story .b-card ul { margin: 0; padding-left: 20px; }
.p6-story .b-card.is-wide { grid-column: 1 / -1; }
.p6-story .b-card.is-accent { background: var(--b-primary-50); box-shadow: none; }

/* contact: copy beside the form */
.p6-contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: start; }
.p6-form { display: grid; gap: 16px; }
.p6-form label { display: block; margin-bottom: 6px; color: var(--b-ink); font-size: 15px; font-weight: 700; }
.p6-form .opt { color: var(--b-muted); font-weight: 400; }
.p6-form :is(input, select, textarea) { width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid #C9CBCB; border-radius: var(--b-radius); background: #fff; color: var(--b-ink); font: 400 16px/1.4 var(--b-font); }
.p6-form textarea { min-height: 150px; resize: vertical; line-height: 1.5; }
.p6-form :is(input, select, textarea):focus { border-color: var(--b-primary); outline: none; box-shadow: 0 0 0 3px var(--b-primary-tint); }
.p6-form :is(input, select, textarea):focus-visible { outline: 2px solid var(--b-primary-600) !important; outline-offset: 1px; }
.p6-form ::placeholder { color: #7A7E7D; }
.p6-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.p6-form .hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.p6-form button[type="submit"] { justify-self: start; }
.p6-form .fb-status { margin: 0; min-height: 24px; font-weight: 700; }
.p6-form .fb-status[data-state="ok"] { color: var(--b-success); }
.p6-form .fb-status[data-state="error"] { color: var(--b-error); }

/* support: big indigo title, search, FAQ groups */
.p6-sup-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 440px); gap: 48px; align-items: end; }
.p6-sup-head .b-h1 { color: var(--b-primary); }
.p6-search { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 16px; border: 1px solid #C9CBCB; border-radius: var(--b-radius); background: #fff; }
.p6-search:focus-within { border-color: var(--b-primary); box-shadow: 0 0 0 3px var(--b-primary-tint); }
.p6-search input { flex: 1; min-width: 0; min-height: 40px; border: 0; background: transparent; color: var(--b-ink); font: 400 16px/1.4 var(--b-font); }
.p6-search input:focus { outline: none; }
.p6-search .b-btn { min-height: 40px; min-width: 44px; padding: 8px 12px; }
.p6-search-note { margin-top: 8px; min-height: 22px; }
.p6-cats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.p6-cats a.b-card .b-icon { margin-bottom: 16px; }
.p6-cats a.b-card .b-h3 { font-size: 19px; }
.p6-faqs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.p6 .b-faq details > p a { color: var(--b-primary-600); }
.p6 .b-faq summary { font-size: 16px; }
.p6-faq-group + .p6-faq-group { margin-top: 56px; }
.p6-faq-group > .b-h3 { margin-bottom: 8px; }
.p6-faq-group > .b-text { margin-bottom: 20px; }
.p6 [data-p6-faq][hidden] { display: none; }

/* team: designer cards around the existing photo buttons (team.js unchanged) */
.p6-team .tm-grid { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.p6-team .tm-person { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 28px 20px 24px; border: 0; border-radius: var(--b-radius); background: #fff; box-shadow: var(--b-shadow); cursor: pointer; font: inherit; color: var(--b-ink); transition: transform .2s var(--b-ease), box-shadow .2s; }
.p6-team .tm-person:hover { box-shadow: var(--b-shadow-lg); }
@media (hover: hover) and (prefers-reduced-motion: no-preference) { .p6-team .tm-person:hover { transform: translateY(-4px); } }
.p6-team .tm-person .tm-photo { width: 168px; height: 168px; max-width: 100%; margin-bottom: 12px; box-shadow: 0 0 0 6px var(--b-primary-50); }
.p6-team .tm-person-name { font-size: 19px; font-weight: 800; color: var(--b-ink); }
.p6-team .tm-person-role { font-size: 15px; color: var(--b-muted); }
.p6-team .tm-person-more { margin-top: 8px; color: var(--b-primary-600); font-size: 15px; font-weight: 700; }
.tm-drawer { font-family: var(--b-font); }
.tm-drawer .tm-name { color: var(--b-ink); font-weight: 800; }
.tm-drawer .tm-role { color: var(--b-primary-600); font-weight: 700; }
.tm-drawer .tm-quote { border-left-color: var(--b-primary) !important; }

/* coaches: workflow tabs (b371_p6.js), the feature board re-skinned, and the club band */
.p6-tabs-wrap { text-align: center; }
.p6-tabpanel { max-width: 1040px; margin: 32px auto 0; text-align: left; }
.p6-tabpanel[hidden] { display: none; }
.p6-tabpanel .b-split { gap: 48px; }
.p6-tabpanel .b-h3 { margin-bottom: 10px; }
.p6-tabpanel .b-media img { aspect-ratio: 3 / 2; }
.p6-tabpanel .p6-tab-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.p6-arrow { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: var(--b-ink); font-weight: 700; text-decoration: none; }
.p6-arrow:hover { color: var(--b-primary-600); }
.p6-arrow::after { content: "\203A"; font-size: 22px; line-height: 1; color: var(--b-primary); }
.p6 .b-small.is-note { margin-top: 12px; }
.p6-feature-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 32px; }
.p6-feature-list .b-icon { margin-bottom: 10px; }
.p6-feature-list .b-h3 { font-size: 18px; color: var(--b-ink); }

/* the coaching feature board (coach_features.css) in brand colours */
.p6.cf-page .cf-features, .p6.cf-page .cf-sports { background: transparent; }
.p6.cf-page :is(.cf-head h2, .cf-feat h3) { font-family: var(--b-font); color: var(--b-ink); font-weight: 800; letter-spacing: -.01em; }
.p6.cf-page .cf-head h2 { font-size: 36px; line-height: 1.15; }
.p6.cf-page .cf-feat h3 { font-size: 30px; line-height: 1.2; }
.p6.cf-page :is(.cf-feat-copy p, .cf-head p) { color: var(--b-text); }
.p6.cf-page .cf-feat-copy .cf-small { color: var(--b-muted); }
.p6.cf-page .cf-eyebrow { color: var(--b-primary-600); font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.p6.cf-page .cf-more { color: var(--b-primary-600); font-weight: 700; }
.p6.cf-page .cf-vis { border-radius: var(--b-radius); box-shadow: var(--b-shadow); background: #fff; border-color: transparent; }
.p6.cf-page .cf-sport-row a { border-radius: var(--b-radius); border-color: var(--b-line); transition: border-color .2s, transform .2s var(--b-ease); }
.p6.cf-page .cf-sport-row a:hover { border-color: var(--b-primary); }
.p6.cf-page .cf-sport-row b { color: var(--b-ink); }
.p6.cf-page .cf-sport-row small { color: var(--b-muted); }
.p6.cf-page .cf-badge { background: var(--b-primary-50); color: var(--b-primary-700); }
.p6.cf-page .cf-hero-vis { margin: 0 auto; max-width: 760px; }

/* coaching start: workflow cards */
.p6-flows { display: grid; gap: 24px; }
.p6-flow { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 32px; }
.p6-flow .b-h3 { margin-bottom: 6px; }
.p6-flow .p6-kind { color: var(--b-muted); font-size: 15px; }
.p6-flow .p6-kind strong { color: var(--b-success); }
.p6-flow .b-btns { margin-top: 16px; gap: 12px; }
.p6-flow .b-btn-secondary[aria-disabled="true"] { border-color: var(--b-line); color: var(--b-muted); cursor: default; background: var(--b-soft); }
.p6-flow .b-btn-secondary[aria-disabled="true"]:hover { transform: none; }

/* Team Scout: the existing browser re-skinned (team_scout.js and its hooks unchanged) */
.p6.scout-page .scout-browser { margin-top: 0; }
.p6.scout-page .scout-tabs { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: var(--b-radius); background: var(--b-soft); border: 0; }
.p6.scout-page .scout-tab { min-height: 44px; border: 0; border-radius: var(--b-radius); background: transparent; color: var(--b-ink); font-family: var(--b-font); box-shadow: none; }
.p6.scout-page .scout-tab:hover { background: var(--b-primary-tint); }
.p6.scout-page .scout-tab[aria-selected="true"] { background: var(--b-primary); color: #fff; }
.p6.scout-page .scout-tab[aria-selected="true"] :is(strong, span) { color: #fff; }
.p6.scout-page .scout-search { border-radius: var(--b-radius); border-color: #C9CBCB; background: #fff; }
.p6.scout-page .scout-search input { font-size: 16px; font-family: var(--b-font); color: var(--b-ink); }
.p6.scout-page .scout-card { border: 0; border-radius: var(--b-radius); background: #fff; box-shadow: var(--b-shadow); }
.p6.scout-page .scout-card h3 { color: var(--b-ink); font-weight: 800; }
.p6.scout-page .scout-rating-track > span { background: var(--b-primary) !important; }
.p6.scout-page .scout-card-details summary { color: var(--b-primary-600); font-weight: 700; }
.p6.scout-page :is(.scout-result-line, .scout-team-meta, .sp-style-caption) { color: var(--b-muted); }
.p6.scout-page .scout-group-label { color: var(--b-ink); font-weight: 800; }
.p6.scout-page .scout-scope { display: flex; gap: 10px; align-items: flex-start; margin-top: 20px; padding: 14px 16px; border-radius: var(--b-radius); background: rgba(255, 255, 255, .14); color: #fff; font-size: 15px; max-width: 820px; }
.p6.scout-page .scout-scope i { color: #fff; font-size: 20px; }
.p6.scout-page .scout-provenance summary { color: var(--b-ink); }

/* archive and 404: link cards */
.p6-links { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.p6-links a.b-card { height: 100%; display: flex; flex-direction: column; gap: 4px; }
.p6-links a.b-card b { color: var(--b-ink); font-size: 18px; font-weight: 800; }
.p6-links a.b-card span { color: var(--b-muted); font-size: 15px; }
.p6-links a.b-card small { margin-top: 8px; color: var(--b-primary-600); font-size: 14px; font-weight: 700; }
.p6-back { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: var(--b-ink); font-weight: 700; text-decoration: none; }
.p6-back::before { content: "\2039"; font-size: 22px; line-height: 1; color: var(--b-primary); }
.p6-back:hover { color: var(--b-primary-600); }
.p6-404 .b-h2 { font-size: 44px; }

/* responsible play: the visitor's own help line first */
.p6-help { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 24px; }
.p6-help .b-card.is-mine { outline: 2px solid var(--b-primary); }
.p6-help .b-card h3 { margin: 0 0 6px; font-size: 18px; font-weight: 800; color: var(--b-ink); }
.p6-help .b-card p { margin: 0; font-size: 16px; color: var(--b-text); }
.p6-help .b-card .b-badge { margin-bottom: 10px; }
.p6-help a.p6-tel { font-weight: 800; color: var(--b-primary-600); }

@media (max-width: 991px) {
  .p6-docgrid { grid-template-columns: 1fr; gap: 0; }
  .p6-toc { display: none; }
  .p6-contact, .p6-sup-head { grid-template-columns: 1fr; gap: 32px; }
  .p6-team .tm-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .p6-links, .p6-cats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .p6-flow { grid-template-columns: 1fr; gap: 12px; }
}
@media (max-width: 767px) {
  .p6-doc h2 { margin-top: 36px; font-size: 22px; }
  .p6-doc p, .p6-doc li { font-size: 16px; }
  .p6-story, .p6-faqs, .p6-help, .p6-feature-list { grid-template-columns: 1fr; }
  .p6-form .row { grid-template-columns: 1fr; }
  .p6-form button[type="submit"] { justify-self: stretch; }
  .p6-team .tm-grid { gap: 16px; }
  .p6-team .tm-person { padding: 20px 12px; }
  .p6-team .tm-person .tm-photo { width: 120px; height: 120px; }
  .p6-team .tm-person-name { font-size: 17px; }
  .p6-links, .p6-cats { grid-template-columns: 1fr; }
  .p6-404 .b-h2 { font-size: 32px; }
  .p6.cf-page .cf-head h2 { font-size: 28px; }
  .p6.cf-page .cf-feat h3 { font-size: 24px; }
  .p6 .b-tabs { display: flex; }
  .p6 .b-tabs :is(a, button) { flex: 1 1 auto; justify-content: center; min-height: 44px; padding: 8px 12px; }
  .p6.scout-page .scout-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); width: 100%; }
}
.p6-links.is-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 767px) { .p6-links.is-two { grid-template-columns: 1fr; } }
/* the designer's title bands carry a large headline */
html body.p6 main .b-subhero h1 { font-size: 64px; line-height: 1.05; }
@media (max-width: 767px) { html body.p6 main .b-subhero h1 { font-size: 40px; } }
html body.p6 main .p6-sup-head .b-h1 { color: var(--b-primary); }
html body.p6 .p6-search input { border: 0 !important; box-shadow: none !important; padding: 0 !important; background: transparent !important; }
html:not(#p6a):not(#p6b):not(#p6c):not(#p6d):not(#p6e) body.p6 .p6-form button.b-btn { background: var(--b-primary) !important; border: 1px solid var(--b-primary) !important; color: #fff !important; border-radius: var(--b-radius) !important; min-height: 48px; padding: 10px 26px; font: 700 16px/1.2 var(--b-font) !important; }
html:not(#p6a):not(#p6b):not(#p6c):not(#p6d):not(#p6e) body.p6 .p6-form button.b-btn:hover { background: var(--b-primary-600) !important; }
.p6-team .tm-more { margin-top: 40px; }
/* buttons inside the indigo bands: white "light" buttons with indigo words; outlined ones in white */
html:not(#p6a):not(#p6b):not(#p6c):not(#p6d):not(#p6e) body.p6 .b-btn-light { color: var(--b-primary-700) !important; background: #fff !important; }
html:not(#p6a):not(#p6b):not(#p6c):not(#p6d):not(#p6e) body.p6 .b-subhero .b-btn-secondary { background: transparent !important; border-color: rgba(255, 255, 255, .9) !important; color: #fff !important; }
html:not(#p6a):not(#p6b):not(#p6c):not(#p6d):not(#p6e) body.p6 .b-subhero .b-btn-secondary:hover { background: rgba(255, 255, 255, .12) !important; }
html:not(#p6a):not(#p6b):not(#p6c):not(#p6d):not(#p6e) body.p6 main .b-subhero :is(h1, p) { color: #fff !important; }
@media (max-width: 767px) { .p6 .b-tabs :is(a, button) { font-size: 14px; padding: 8px 10px; } }
/* older page sheets (site_shell_styles, scoutics_theme) colour every link blue; on P6's pages the brand buttons and the shared
   footer keep the designer's colours (the footer card's links were blue on indigo) */
html:not(#p6a):not(#p6b):not(#p6c):not(#p6d):not(#p6e) body.p6 a.b-btn { color: #fff !important; }
html:not(#p6a):not(#p6b):not(#p6c):not(#p6d):not(#p6e) body.p6 a.b-btn-secondary:not(.b-subhero *) { color: var(--b-ink) !important; }
html:not(#p6a):not(#p6b):not(#p6c):not(#p6d):not(#p6e) body.p6 .b-footer a:not(.b-footer-social) { color: var(--b-text) !important; }
html:not(#p6a):not(#p6b):not(#p6c):not(#p6d):not(#p6e) body.p6 .b-footer .b-footer-card a { color: #fff !important; }
html:not(#p6a):not(#p6b):not(#p6c):not(#p6d):not(#p6e) body.p6 main :is(.b-cta-plain, .b-band) :is(.b-h2, h2, p) { color: #fff !important; }
/* 44px tap targets everywhere on P6's pages (older sheets shrink buttons inside cards) */
html:not(#p6a):not(#p6b):not(#p6c):not(#p6d):not(#p6e) body.p6 :is(.b-btn, .b-btn-secondary, .b-btn-light) { min-height: 44px !important; }
html body.p6 .p6-search :is(input, .b-btn) { min-height: 44px; }
html body.p6.scout-page .sp-compare-picks select { min-height: 44px; font-size: 16px; }
html:not(#p6a):not(#p6b):not(#p6c):not(#p6d):not(#p6e) body.p6 main .b-subhero a:not([class]) { color: #fff !important; text-decoration: underline; text-underline-offset: 3px; }

/* release 372 (owner): LinkedIn and X links on the team profiles */
.tm-links { display: flex; flex-wrap: wrap; gap: 12px; margin: 16px 0 0; }
.tm-links a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border: 1px solid var(--b-primary); border-radius: var(--b-radius); color: var(--b-ink) !important; font-weight: 700; text-decoration: none !important; }
.tm-links a:hover { background: var(--b-primary-50); }
.tm-links svg { width: 18px; height: 18px; color: var(--b-primary); }
