.nhltr-team-hub {
    --nhltr-primary: #111;
    --nhltr-secondary: #555;
    max-width: 1180px;
    margin: 0 auto 40px;
    font-family: inherit;
    color: #171717;
    line-height: 1.55;
}
.nhltr-team-hub * { box-sizing: border-box; }

/* Newspaper/tagDiv: hide the theme's page-title H1, then explicitly restore the Team Hub H1. */
.nhltr-team-hub-page .td-page-title,
.nhltr-team-hub-page h1.entry-title,
.nhltr-team-hub-page h1.tdb-title-text,
.nhltr-team-hub-page .td-main-content-wrap h1,
.nhltr-team-hub-page .td-main-content h1,
.nhltr-team-hub-page .td-pb-span8 h1,
.nhltr-team-hub-page .tdb_single_content h1 { display: none !important; }
.nhltr-team-hub-page .nhltr-team-hub .nhltr-hub-hero h1 { display: block !important; }
.nhltr-team-hub-page .td-post-content > .nhltr-team-hub { max-width: 1180px; }

.nhltr-hub-hero {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    min-height: 330px;
    display: flex;
    align-items: flex-end;
    background: linear-gradient(135deg, var(--nhltr-primary), #101010 72%);
    color: #fff;
    margin: 0 0 14px;
    box-shadow: 0 14px 38px rgba(0,0,0,.15);
}
.nhltr-hub-hero-media { position: absolute; inset: 0; }
.nhltr-hub-hero-media img { width: 100%; height: 100%; object-fit: cover; }
.nhltr-hub-hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(0,0,0,.88) 0%, rgba(0,0,0,.64) 48%, rgba(0,0,0,.22) 100%),
        linear-gradient(0deg, var(--nhltr-primary), transparent 48%);
    opacity: .95;
}
.nhltr-hub-hero-content { position: relative; z-index: 2; padding: 36px; max-width: 880px; }
.nhltr-hub-identity { display: flex; align-items: center; gap: 16px; }
.nhltr-hub-logo {
    width: 76px;
    height: 76px;
    flex: 0 0 76px;
    display: grid;
    place-items: center;
    padding: 9px;
    border-radius: 18px;
    background: rgba(255,255,255,.94);
    border: 1px solid rgba(255,255,255,.7);
    box-shadow: 0 8px 22px rgba(0,0,0,.2);
}
.nhltr-hub-logo img { width: 100%; height: 100%; object-fit: contain; }
.nhltr-hub-kicker,
.nhltr-hub-eyebrow {
    display: block;
    font-size: 12px;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}
.nhltr-hub-kicker { color: #fff; margin-bottom: 8px; }
.nhltr-hub-hero h1 {
    color: #fff !important;
    font-size: clamp(32px,5vw,58px) !important;
    line-height: 1.02 !important;
    margin: 0 0 12px !important;
    letter-spacing: -.035em;
}
.nhltr-hub-identity .nhltr-hub-kicker + h1 { margin-bottom: 0 !important; }
.nhltr-hub-title-team,
.nhltr-hub-title-topic { display: block; }
.nhltr-hub-title-topic { margin-top: .03em; }
.nhltr-hub-hero-content > p {
    font-size: 18px;
    max-width: 760px;
    margin: 15px 0 11px;
    color: rgba(255,255,255,.93) !important;
}
.nhltr-hub-updated { font-size: 13px; color: rgba(255,255,255,.82); }

.nhltr-hub-snapshot {
    display: grid;
    grid-template-columns: repeat(4, minmax(0,1fr));
    gap: 10px;
    margin: 0 0 15px;
}
.nhltr-hub-snapshot-card {
    min-width: 0;
    padding: 15px 16px;
    border-radius: 13px;
    background: #fff;
    border: 1px solid #e7e7e7;
    border-top: 4px solid var(--nhltr-primary);
    box-shadow: 0 5px 18px rgba(0,0,0,.045);
}
.nhltr-hub-snapshot-label {
    display: block;
    margin-bottom: 4px;
    color: #707070;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.nhltr-hub-snapshot-card strong {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #171717;
    font-size: 17px;
    line-height: 1.25;
    white-space: nowrap;
}
.nhltr-hub-snapshot-meta {
    display: block;
    margin-top: 3px;
    overflow: hidden;
    color: #6a6a6a;
    font-size: 12px;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nhltr-hub-jump {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    white-space: nowrap;
    margin: 0 0 22px;
    padding: 3px 0 6px;
    scrollbar-width: thin;
    scroll-snap-type: x proximity;
    overscroll-behavior-x: contain;
}
.nhltr-hub-jump a {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 8px 14px;
    border: 1px solid #e3e3e3;
    border-radius: 999px;
    background: #fff;
    color: #222 !important;
    text-decoration: none !important;
    font-size: 13px;
    font-weight: 700;
    flex: 0 0 auto;
    scroll-snap-align: start;
}
.nhltr-hub-jump a:hover { border-color: var(--nhltr-primary); color: var(--nhltr-primary) !important; }

.nhltr-hub-section { margin: 0 0 22px; scroll-margin-top: 90px; }
.nhltr-hub-card {
    background: #fff;
    border: 1px solid #e9e9e9;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 6px 24px rgba(0,0,0,.05);
}
.nhltr-hub-intro { border-top: 5px solid var(--nhltr-primary); margin-bottom: 24px; }
.nhltr-hub-section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin: 0 0 15px; }
.nhltr-hub-eyebrow { color: var(--nhltr-primary); margin-bottom: 5px; }
.nhltr-team-hub h2 {
    font-size: clamp(24px,3vw,34px) !important;
    line-height: 1.12 !important;
    letter-spacing: -.025em;
    margin: 0 !important;
    color: #161616 !important;
}
.nhltr-team-hub h3 { line-height: 1.2 !important; }
.nhltr-hub-copy p:last-child { margin-bottom: 0; }

.nhltr-hub-post-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.nhltr-hub-post-card {
    overflow: hidden;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 14px;
    box-shadow: 0 6px 22px rgba(0,0,0,.05);
    min-width: 0;
}
.nhltr-hub-post-image { display: block; aspect-ratio: 16/9; overflow: hidden; background: #f1f1f1; }
.nhltr-hub-post-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .2s ease; }
.nhltr-hub-post-card:hover .nhltr-hub-post-image img { transform: scale(1.025); }
.nhltr-hub-post-body { padding: 15px; }
.nhltr-hub-post-body time { display: block; color: #777; font-size: 12px; margin-bottom: 5px; }
.nhltr-hub-post-body h3 { font-size: 18px !important; margin: 0 0 8px !important; }
.nhltr-hub-post-body h3 a { color: #181818 !important; text-decoration: none !important; }
.nhltr-hub-post-body h3 a:hover { color: var(--nhltr-primary) !important; }
.nhltr-hub-post-body p { font-size: 14px; color: #555; margin: 0; }

.nhltr-hub-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.nhltr-hub-shortcode-card { min-width: 0; overflow: hidden; }
.nhltr-hub-shortcode-body { max-width: 100%; }
.nhltr-hub-shortcode-body table { width: 100%; font-size: 13px; }
.nhltr-hub-shortcode-body img { max-width: 100%; height: auto; }
.nhltr-hub-shortcode-body > h1,
.nhltr-hub-shortcode-body > h2,
.nhltr-hub-shortcode-body > h3:first-child { margin-top: 0 !important; }
.nhltr-hub-more { margin: 14px 0 0 !important; }
.nhltr-hub-more a { font-weight: 700; color: var(--nhltr-primary) !important; text-decoration: none !important; }

.nhltr-hub-outlook { background: linear-gradient(135deg,#fff,#f8f8f8); }
.nhltr-hub-link-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.nhltr-hub-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 16px;
    border-radius: 9px;
    background: var(--nhltr-primary);
    border: 2px solid var(--nhltr-primary);
    color: #fff !important;
    font-weight: 800;
    text-decoration: none !important;
}
.nhltr-hub-button--ghost { background: transparent; color: var(--nhltr-primary) !important; }

.nhltr-hub-trades .nhltr-hub-shortcode-body > h2 { font-size: 19px !important; margin: 18px 0 10px !important; }

.nhltr-hub-newsletter {
    display: grid;
    grid-template-columns: 1fr minmax(280px,430px);
    gap: 28px;
    align-items: center;
    background: linear-gradient(135deg,var(--nhltr-primary),#111);
    color: #fff;
    border-radius: 16px;
    padding: 28px;
}
.nhltr-hub-newsletter .nhltr-hub-eyebrow { color: #fff !important; }
.nhltr-hub-newsletter h2 { color: #fff !important; }
/* Newspaper/tagDiv can apply paragraph colors with higher specificity on some team pages.
   Keep newsletter marketing copy readable regardless of the team's primary color. */
.nhltr-team-hub .nhltr-hub-newsletter > div:first-child p {
    color: rgba(255,255,255,.9) !important;
    margin-bottom: 0;
}
.nhltr-team-hub .nhltr-hub-newsletter > div:first-child a { color: #fff !important; }
.nhltr-hub-newsletter input[type=email],
.nhltr-hub-newsletter input[type=text] { width: 100%; min-height: 44px; border: 0; border-radius: 8px; padding: 9px 12px; }
.nhltr-hub-newsletter input[type=submit],
.nhltr-hub-newsletter button { min-height: 44px; border: 0; border-radius: 8px; padding: 9px 16px; font-weight: 800; cursor: pointer; }

.nhltr-hub-admin-note { padding: 12px 14px; border: 1px solid #d63638; background: #fff5f5; color: #842029; border-radius: 8px; font-size: 13px; }
.nhltr-hub-empty { padding: 18px; border: 1px dashed #ccc; border-radius: 12px; background: #fafafa; }

@media (max-width: 900px) {
    .nhltr-hub-snapshot { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .nhltr-hub-post-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .nhltr-hub-two-col { grid-template-columns: 1fr; }
    .nhltr-hub-newsletter { grid-template-columns: 1fr; }
    .nhltr-hub-card { padding: 20px; }
}

@media (max-width: 600px) {
    .nhltr-team-hub { margin-bottom: 28px; }
    .nhltr-hub-hero { min-height: 320px; border-radius: 14px; }
    .nhltr-hub-hero-content { padding: 22px 18px; }
    .nhltr-hub-identity { align-items: flex-start; gap: 12px; }
    .nhltr-hub-logo { width: 58px; height: 58px; flex-basis: 58px; border-radius: 13px; padding: 7px; }
    .nhltr-hub-hero h1 { font-size: clamp(31px,10vw,38px) !important; line-height: .98 !important; }
    .nhltr-hub-title-topic { margin-top: .08em; }
    .nhltr-hub-hero-content > p { font-size: 15px; line-height: 1.45; margin-top: 13px; }
    .nhltr-hub-updated { font-size: 12px; line-height: 1.45; }
    .nhltr-hub-snapshot { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; margin-bottom: 12px; }
    .nhltr-hub-snapshot-card { padding: 12px; border-radius: 11px; }
    .nhltr-hub-snapshot-card strong { font-size: 15px; }
    .nhltr-hub-snapshot-meta { font-size: 11px; }
    .nhltr-hub-jump { margin-bottom: 18px; padding-bottom: 4px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
    .nhltr-hub-jump::-webkit-scrollbar { display: none; }
    .nhltr-hub-jump a { min-height: 36px; padding: 7px 13px; font-size: 12px; }
    .nhltr-hub-post-grid { grid-template-columns: 1fr; }
    .nhltr-hub-card { padding: 17px; border-radius: 13px; }
    .nhltr-hub-newsletter { padding: 20px; border-radius: 13px; }
    .nhltr-hub-shortcode-body { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .nhltr-hub-shortcode-body table { min-width: 620px; }
    #next-game .nhltr-hub-shortcode-body table { min-width: 520px; }
    .nhltr-hub-link-row { display: grid; }
    .nhltr-hub-button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    .nhltr-hub-post-image img { transition: none; }
}
