.th-team{color:#171717;line-height:1.5;font-size:16px}
.th-team *,.th-team *::before,.th-team *::after{box-sizing:border-box}
.th-inner{max-width:1180px;margin:0 auto;padding:0 20px}
.th-main{display:block;width:100%}

/* Header */
.th-head{background:var(--th-dark);color:#fff}
.th-title-row{display:flex;align-items:center;gap:20px;padding:32px 0 22px}
.th-logo{width:72px;height:72px;object-fit:contain;flex:none}
.th-team .th-title{margin:0;color:#fff;font-size:clamp(1.75rem,5vw,3.25rem);line-height:1.1;font-weight:700;text-transform:none;letter-spacing:0;-webkit-font-smoothing:antialiased}
.th-sub{margin:10px 0 0;color:#cfd3dc;font-size:1rem}
.th-nav{display:flex;gap:30px;border-top:1px solid rgba(255,255,255,.4);overflow-x:auto;scrollbar-width:none}
.th-nav::-webkit-scrollbar{display:none}
.th-team .th-nav a.th-tab,.th-team .th-nav a.th-tab:link,.th-team .th-nav a.th-tab:visited,.th-team .th-nav a.th-tab:active{color:#fff;transition:color .15s}
.th-team .th-nav a.th-tab:hover,.th-team .th-nav a.th-tab:focus-visible{color:var(--th-cta)}
.th-tab{color:#fff;text-decoration:none;font-weight:600;font-size:1.05rem;padding:14px 0 11px;border-bottom:3px solid transparent;white-space:nowrap}
.th-tab:hover{border-bottom-color:var(--th-cta)}
.th-tab.is-active{border-bottom-color:var(--th-accent)}
.th-tab:focus-visible{outline:2px solid var(--th-accent);outline-offset:-2px}

/* Overview table */
.th-team .th-facts{width:100%;max-width:820px;margin:0 0 22px;border-collapse:collapse;border:0;font-size:.95rem;background:transparent}
.th-team .th-facts th,.th-team .th-facts td{padding:8px 0;border:0;border-top:1px solid rgba(255,255,255,.18);text-align:left;vertical-align:top;background:transparent;color:#fff}
.th-team .th-facts tr:first-child th,.th-team .th-facts tr:first-child td{border-top:0}
.th-team .th-facts th{width:11rem;padding-right:16px;color:#cfd3dc;font-weight:600}
@media(max-width:600px){.th-team .th-facts th{width:7.5rem}}

.th-copy{margin-top:40px;max-width:75ch}
.th-copy h2,.th-copy h3{color:var(--th-navy)}

/* Body */
.th-body{padding-top:36px;padding-bottom:64px}
.th-team .th-panel[hidden]{display:none!important}
/* spacing between panels only applies when several are visible at once (no JS) */
.th-panel:not([hidden]) ~ .th-panel:not([hidden]){margin-top:48px}
.th-team .th-h2{margin:0 0 20px;color:var(--th-navy);font-size:clamp(1.4rem,3.5vw,2rem);font-weight:700;letter-spacing:0}
.th-empty{color:#555}
.th-prose{max-width:75ch}
.th-prose a,.th-news-link:hover .th-news-title{color:var(--th-cta)}

/* News */
.th-news{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:20px}
.th-card-news{background:#fff;border:1px solid #e3e8f2;border-radius:8px;overflow:hidden}
.th-news-link{display:flex;flex-direction:column;height:100%;text-decoration:none;color:inherit}
.th-news-img img{display:block;width:100%;aspect-ratio:16/10;object-fit:cover}
.th-news-title{padding:14px 16px 4px;font-weight:700;font-size:1.05rem;line-height:1.3;color:var(--th-navy)}
.th-news-meta{padding:0 16px 16px;margin-top:auto;font-size:.85rem;color:#5c6577}

/* Squad */
.th-group{background:#fff;border:1px solid #e3e8f2;border-radius:8px;margin:0 0 20px;overflow:hidden}
.th-group summary{list-style:none;cursor:pointer;display:flex;justify-content:space-between;align-items:center;padding:18px 22px;font-weight:700;font-size:1.1rem;color:#fff;background:var(--th-navy)}
.th-group summary::-webkit-details-marker{display:none}
.th-group summary::after{content:"";width:9px;height:9px;border-right:2px solid #fff;border-bottom:2px solid #fff;transform:rotate(-135deg) translate(-2px,-2px);transition:transform .15s}
.th-group:not([open]) summary::after{transform:rotate(45deg)}
.th-group summary:focus-visible{outline:2px solid var(--th-accent);outline-offset:-4px}
.th-group summary:hover{filter:brightness(1.15)}
.th-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;padding:20px;background:#eef1f8;border-top:1px solid #e3e8f2}
.th-player{display:flex;align-items:center;gap:16px;padding:14px 16px;background:#fff;border:1px solid #e3e8f2;border-radius:8px;text-decoration:none;color:var(--th-navy);min-width:0}
a.th-player:hover{border-color:var(--th-accent)}
.th-num{width:28px;flex:none;text-align:center;font-weight:600;color:var(--th-navy)}
.th-avatar{width:50px;height:50px;flex:none;border-radius:50%;object-fit:cover;background:#d9dde6}
.th-initials{display:flex;align-items:center;justify-content:center;background:var(--th-dark);color:#fff;font-weight:700;font-size:.95rem}
.th-pname{font-weight:700;font-size:1.05rem;overflow-wrap:anywhere}

/* Team list shortcode */
.th-list{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:14px}
.th-list a{display:flex;align-items:center;gap:12px;padding:12px 14px;border:1px solid #e3e8f2;border-radius:8px;text-decoration:none;font-weight:700;color:var(--th-navy)}
.th-list a:hover{border-color:var(--th-accent)}
.th-list-logo{width:40px;height:40px;object-fit:contain}

/* Block themes: hide the theme's own title (it is also blanked in PHP) */
body.th-single .wp-block-post-title,body.th-single .entry-header .entry-title{display:none}

@media(max-width:900px){.th-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:600px){.th-grid{grid-template-columns:1fr;padding:14px}.th-logo{width:52px;height:52px}.th-nav{gap:22px}}
@media(prefers-reduced-motion:reduce){.th-team .th-nav a.th-tab{transition:none}.th-group summary::after{transition:none}}

/* v1.0.1: stronger rules so theme styles cannot override these */
.th-team .th-group > summary{background:var(--th-navy)!important;color:#fff!important}
.th-team .th-group > summary::after{border-color:#fff!important}
.th-team .th-nav a.th-tab:hover,.th-team .th-nav a.th-tab:focus-visible{color:var(--th-cta)!important}
.th-team .th-nav a.th-tab:hover{border-bottom-color:var(--th-cta)!important}

/* v1.0.2: identical gap between the tab heading and its content on every tab */
.th-team .th-panel > .th-h2{margin:0 0 20px!important;line-height:1.2!important;padding:0!important}
.th-team .th-panel > .th-h2 + *{margin-top:0!important}
.th-team .th-panel > .th-h2 + * > :first-child,
.th-team .th-panel > .th-h2 + * > :first-child > :first-child{margin-top:0!important}
.th-team .th-prose > :first-child,
.th-team .th-prose > :first-child > :first-child{margin-top:0!important}
.th-team .th-prose table{margin-top:0}
.th-team .th-prose > :last-child{margin-bottom:0}
