:root{--tso-navy:#071d33;--tso-blue:#003087;--tso-gold:#FFD700;--tso-light:#f4f7fb;--tso-text:#1f2a44}
.tso-nlh2-page{background:#06182b;padding:24px 0 50px;margin:0;min-height:100vh;font-family:Arial,Helvetica,sans-serif}.tso-nlh2{width:min(1100px,calc(100% - 32px));margin:auto;color:#fff}.tso-nlh2 *{box-sizing:border-box}.tso-nlh2-hero{position:relative;overflow:hidden;min-height:290px;border-radius:22px;padding:46px 330px 42px 42px;background:radial-gradient(circle at 80% 15%,rgba(255,215,0,.22),transparent 32%),linear-gradient(135deg,#071d33,#003087);border:1px solid rgba(255,215,0,.28);box-shadow:0 18px 42px rgba(0,0,0,.28)}.tso-nlh2-kicker{color:var(--tso-gold);font-weight:900;text-transform:uppercase;letter-spacing:.08em;font-size:.82rem}.tso-nlh2-hero h1{color:var(--tso-gold)!important;font-size:clamp(38px,6vw,66px)!important;line-height:1.02!important;margin:12px 0 14px!important}.tso-nlh2-hero p{font-size:19px;margin:0;color:#fff}.tso-nlh2-glance{position:absolute;right:24px;top:24px;width:278px;background:rgba(4,24,44,.9);border:1px solid rgba(255,215,0,.42);border-radius:18px;padding:18px;z-index:2;backdrop-filter:blur(5px)}.tso-nlh2-glance h2{color:var(--tso-gold)!important;font-size:20px!important;margin:0 0 12px!important}.tso-nlh2-glance dl{display:grid;grid-template-columns:1fr auto;gap:9px 10px;margin:0}.tso-nlh2-glance dt{color:#c8d8e7}.tso-nlh2-glance dd{margin:0;text-align:right;font-weight:900}.tso-nlh2-mascot{position:absolute;right:290px;bottom:-22px;width:210px;max-height:245px;object-fit:contain;opacity:.44}.tso-nlh2-update{display:flex;align-items:center;gap:10px;background:#0b3154;border:1px solid rgba(255,215,0,.38);border-radius:14px;padding:13px 17px;margin:18px 0;color:#dce8f4}.tso-nlh2-update>span{flex:0 0 10px;width:10px;height:10px;border-radius:50%;background:#4fd082;box-shadow:0 0 0 4px rgba(79,208,130,.14)}.tso-nlh2-update strong{color:var(--tso-gold)}.tso-nlh2-panel{background:#fff;color:var(--tso-text);border-radius:20px;padding:24px;margin:18px 0;box-shadow:0 14px 34px rgba(0,0,0,.18)}.tso-nlh2-panel h2{color:var(--tso-blue)!important;margin:0 0 18px!important;font-size:27px!important}.tso-nlh2-intro p{font-size:17px;line-height:1.72;margin:0 0 13px}.tso-nlh2-intro p:last-child{margin-bottom:0}.tso-nlh2-nav{display:flex;flex-wrap:wrap;gap:9px;margin:18px 0}.tso-nlh2-nav a{background:var(--tso-gold);color:var(--tso-navy)!important;border:2px solid var(--tso-gold);border-radius:999px;padding:10px 15px;text-decoration:none!important;font-weight:900}.tso-nlh2-nav a:hover{background:var(--tso-navy);color:#fff!important}.tso-nlh2-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.tso-nlh2-grid .tso-nlh2-panel{height:calc(100% - 18px)}.tso-nlh2-date{background:var(--tso-navy);color:var(--tso-gold);font-weight:900;border-radius:10px;padding:9px 12px;margin:16px 0 8px}.tso-nlh2-match{display:grid;grid-template-columns:minmax(0,1fr) 82px minmax(0,1fr);align-items:center;gap:10px;border:1px solid #dfe6ee;border-radius:12px;padding:11px 12px;margin:7px 0;background:#f8fafc}.tso-nlh2-southend-match{border:2px solid var(--tso-gold);background:#fffceb}.tso-nlh2-team{display:flex;align-items:center;gap:8px;font-weight:800;min-width:0}.tso-nlh2-team span{overflow:hidden;text-overflow:ellipsis}.tso-nlh2-team.away{justify-content:flex-end;text-align:right}.tso-nlh2-badge{width:30px;height:30px;object-fit:contain;flex:0 0 30px}.tso-nlh2-score{text-align:center;background:var(--tso-blue);color:#fff;border-radius:9px;padding:7px 5px;font-weight:900;white-space:nowrap}.tso-nlh2-score small{display:block;color:var(--tso-gold);font-size:9px;letter-spacing:.08em;margin-top:2px}.tso-nlh2-meta{text-align:center;color:#65758a;font-size:.78rem;margin:-3px 0 8px}.tso-nlh2-empty{background:#eef3f8;border-radius:12px;padding:16px}.tso-nlh2-error{border:3px solid #c00}.tso-nlh2-table-wrap{overflow-x:auto}.tso-nlh2-table{width:100%;border-collapse:collapse;min-width:760px}.tso-nlh2-table th{background:var(--tso-navy);color:#fff;padding:11px 8px;text-align:center}.tso-nlh2-table th:nth-child(2){text-align:left}.tso-nlh2-table td{padding:10px 8px;border-bottom:1px solid #dfe6ee;text-align:center}.tso-nlh2-table td.club{text-align:left;display:flex;align-items:center;gap:9px;font-weight:800}.tso-nlh2-table tr.southend{background:#fff7bd;font-weight:800}.tso-nlh2-table tr.promotion td:first-child{border-left:5px solid #2fa85c}.tso-nlh2-table tr.semi td:first-child,.tso-nlh2-table tr.playoff td:first-child{border-left:5px solid #f0a525}.tso-nlh2-table tr.relegation td:first-child{border-left:5px solid #c93636}.tso-nlh2-table .form{white-space:nowrap}.tso-nlh2-table .form span{display:inline-grid;place-items:center;width:23px;height:23px;border-radius:50%;margin:1px;color:#fff;font-size:11px;font-weight:900}.tso-nlh2-table .form .w{background:#258b4e}.tso-nlh2-table .form .d{background:#77808a}.tso-nlh2-table .form .l{background:#c93636}.tso-nlh2-key{display:flex;flex-wrap:wrap;gap:16px;margin-top:14px;font-size:.85rem}.tso-nlh2-key span:before{content:"";display:inline-block;width:10px;height:10px;margin-right:6px;border-radius:2px}.tso-nlh2-key .auto:before{background:#2fa85c}.tso-nlh2-key .po:before{background:#f0a525}.tso-nlh2-key .rel:before{background:#c93636}.tso-nlh2-coming{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.tso-nlh2-coming div{background:#eef3f8;border-left:5px solid var(--tso-gold);border-radius:12px;padding:15px}.tso-nlh2-coming strong,.tso-nlh2-coming span{display:block}.tso-nlh2-coming strong{color:var(--tso-blue);margin-bottom:4px}.tso-nlh2-coming span{color:#5e6d7c}.tso-nlh2-active .entry-header,.tso-nlh2-active .entry-footer{display:none!important}
@media(max-width:900px){.tso-nlh2-grid{grid-template-columns:1fr}.tso-nlh2-hero{padding:38px 24px}.tso-nlh2-glance{position:relative;right:auto;top:auto;width:auto;margin-top:25px}.tso-nlh2-mascot{right:10px;opacity:.2}.tso-nlh2-coming{grid-template-columns:1fr}}
@media(max-width:620px){.tso-nlh2-page{padding-top:12px}.tso-nlh2{width:calc(100% - 20px)}.tso-nlh2-hero{border-radius:18px;padding:28px 18px}.tso-nlh2-hero h1{font-size:38px!important}.tso-nlh2-panel{padding:17px 12px;border-radius:16px}.tso-nlh2-match{grid-template-columns:minmax(0,1fr) 62px minmax(0,1fr);gap:5px;padding:9px 7px}.tso-nlh2-team{font-size:.78rem;gap:4px}.tso-nlh2-badge{width:24px;height:24px;flex-basis:24px}.tso-nlh2-score{font-size:.78rem;padding:6px 3px}.tso-nlh2-update{align-items:flex-start;font-size:.88rem}}

/* v1.0.1: remove the theme card surrounding this shortcode only. */
body.tso-nlh2-active .tso-nlh2-shell{
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
  border-radius:0!important;
  outline:0!important;
  padding-left:0!important;
  padding-right:0!important;
  max-width:none!important;
  width:100%!important;
}
body.tso-nlh2-active .tso-nlh2-page{
  width:100%!important;
  max-width:none!important;
  border:0!important;
  box-shadow:none!important;
}

/* The right of the hero is now reserved for the user's National League Shrimpie. */
.tso-nlh2-glance{display:none!important}
.tso-nlh2-mascot-stage{
  position:absolute;
  z-index:2;
  right:20px;
  top:18px;
  bottom:0;
  width:300px;
  display:flex;
  align-items:flex-end;
  justify-content:center;
  pointer-events:none;
}
.tso-nlh2-mascot{
  position:static!important;
  width:min(290px,100%)!important;
  height:100%!important;
  max-height:275px!important;
  object-fit:contain!important;
  object-position:center bottom!important;
  opacity:1!important;
  filter:drop-shadow(0 13px 18px rgba(0,0,0,.25));
}
@media(max-width:900px){
  .tso-nlh2-hero{padding-right:220px}
  .tso-nlh2-mascot-stage{right:4px;width:215px;opacity:.42}
}
@media(max-width:620px){
  .tso-nlh2-hero{padding-right:18px;padding-bottom:205px}
  .tso-nlh2-mascot-stage{left:0;right:0;top:auto;bottom:0;width:100%;height:195px;opacity:.9}
  .tso-nlh2-mascot{max-height:195px!important}
}

/* v1.0.2: complete TSO dark treatment for the hub content. */
.tso-nlh2-page{
  background:#06182b!important;
  color:#f4f7fb!important;
}
.tso-nlh2{
  color:#f4f7fb!important;
}
.tso-nlh2-panel{
  background:linear-gradient(180deg,#0b2a49 0%,#081f38 100%)!important;
  color:#f4f7fb!important;
  border:1px solid #17466f!important;
  box-shadow:0 14px 34px rgba(0,0,0,.25)!important;
}
.tso-nlh2-panel h2,
.tso-nlh2-panel h3,
.tso-nlh2-panel h4{
  color:#ffd700!important;
}
.tso-nlh2-panel p,
.tso-nlh2-panel li,
.tso-nlh2-panel dd,
.tso-nlh2-panel dt,
.tso-nlh2-panel label{
  color:#f4f7fb!important;
}
.tso-nlh2-intro p{color:#e4edf6!important}
.tso-nlh2-update{
  background:#0b2a49!important;
  color:#e4edf6!important;
  border-color:#28577c!important;
}
.tso-nlh2-date{
  background:#031426!important;
  border:1px solid #17466f!important;
  color:#ffd700!important;
}
.tso-nlh2-match{
  background:#0d3153!important;
  color:#f4f7fb!important;
  border:1px solid #28577c!important;
  box-shadow:0 5px 14px rgba(0,0,0,.15);
}
.tso-nlh2-match:hover{
  background:#123c63!important;
  border-color:#ffd700!important;
}
.tso-nlh2-southend-match{
  background:#173754!important;
  border:2px solid #ffd700!important;
  box-shadow:0 0 0 2px rgba(255,215,0,.08),0 7px 18px rgba(0,0,0,.2)!important;
}
.tso-nlh2-team,
.tso-nlh2-team span{color:#fff!important}
.tso-nlh2-score{
  background:#031426!important;
  color:#fff!important;
  border:1px solid #28577c!important;
}
.tso-nlh2-meta{color:#c4d3e2!important}
.tso-nlh2-empty{
  background:#0d3153!important;
  color:#e4edf6!important;
  border:1px dashed #3f6688!important;
}
.tso-nlh2-error{
  border-color:#d84c4c!important;
  background:#411d29!important;
}
.tso-nlh2-table-wrap{
  border:1px solid #28577c;
  border-radius:14px;
  overflow-x:auto;
  background:#081f38;
}
.tso-nlh2-table{
  color:#f4f7fb!important;
}
.tso-nlh2-table th{
  background:#031426!important;
  color:#ffd700!important;
  border-bottom:1px solid #345f82!important;
}
.tso-nlh2-table td{
  color:#f4f7fb!important;
  border-bottom:1px solid #21496b!important;
  background:#0b2947!important;
}
.tso-nlh2-table tbody tr:nth-child(even) td{
  background:#0e3152!important;
}
.tso-nlh2-table tbody tr:hover td{
  background:#174263!important;
}
.tso-nlh2-table td.club,
.tso-nlh2-table td.club *{
  color:#fff!important;
}
.tso-nlh2-table tr.southend td{
  background:#233d50!important;
  color:#fff!important;
  font-weight:900!important;
  border-top:1px solid #ffd700!important;
  border-bottom:1px solid #ffd700!important;
}
.tso-nlh2-table tr.southend td:first-child{box-shadow:inset 3px 0 0 #ffd700}
.tso-nlh2-table tr.southend td:last-child{box-shadow:inset -3px 0 0 #ffd700}
.tso-nlh2-key{color:#d4e0eb!important}
.tso-nlh2-coming div{
  background:#0d3153!important;
  color:#f4f7fb!important;
  border:1px solid #28577c!important;
  border-left:5px solid #ffd700!important;
}
.tso-nlh2-coming strong{color:#ffd700!important}
.tso-nlh2-coming span{color:#d4e0eb!important}
.tso-nlh2-panel a:not(.tso-nlh2-nav a){color:#ffd700!important}
.tso-nlh2-panel a:not(.tso-nlh2-nav a):hover{color:#fff!important}

/* Neutralise common theme content backgrounds while this shortcode is active. */
body.tso-nlh2-active,
body.tso-nlh2-active #page,
body.tso-nlh2-active #content,
body.tso-nlh2-active .site-content,
body.tso-nlh2-active .content-area,
body.tso-nlh2-active .site-main,
body.tso-nlh2-active article,
body.tso-nlh2-active .entry-content,
body.tso-nlh2-active .post-content,
body.tso-nlh2-active .page-content{
  background:#06182b!important;
}
body.tso-nlh2-active .entry-content,
body.tso-nlh2-active .post-content,
body.tso-nlh2-active .page-content,
body.tso-nlh2-active article{
  color:#f4f7fb!important;
  border-color:transparent!important;
  box-shadow:none!important;
}

@media(max-width:620px){
  .tso-nlh2-table-wrap{border-radius:11px}
  .tso-nlh2-panel h2{font-size:24px!important}
}

/* Stage 1 final table treatment: position bands, no grid lines. */
.tso-nlh2-table-wrap{
  border:0!important;
  box-shadow:0 0 0 1px rgba(40,87,124,.55)!important;
}
.tso-nlh2-table th,
.tso-nlh2-table td{
  border:0!important;
  box-shadow:none;
}
.tso-nlh2-table tbody tr td{
  background:#0b2947!important;
}
.tso-nlh2-table tbody tr:nth-child(even) td{
  background:#0e3152!important;
}
.tso-nlh2-table tbody tr.promotion td{
  background:#236f3d!important;
}
.tso-nlh2-table tbody tr.semi td,
.tso-nlh2-table tbody tr.playoff td{
  background:#17568a!important;
}
.tso-nlh2-table tbody tr.relegation td{
  background:#981f28!important;
}
.tso-nlh2-table tbody tr:hover td{
  filter:brightness(1.13);
}
.tso-nlh2-table tbody tr.southend td{
  color:#fff!important;
  font-weight:900!important;
}
.tso-nlh2-table tbody tr.southend td:first-child{
  box-shadow:inset 3px 0 0 #ffd700!important;
}
.tso-nlh2-table tbody tr.southend td:last-child{
  box-shadow:inset -3px 0 0 #ffd700!important;
}
.tso-nlh2-table tbody tr.southend td.club,
.tso-nlh2-table tbody tr.southend td.club *{
  color:#ffd700!important;
}

/* Stage 2A: league statistics and form */
.tso-nlh2-stats-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px;margin:22px 0}
.tso-nlh2-stat-panel{margin:0!important;min-width:0}
.tso-nlh2-leaders{display:grid;gap:9px}
.tso-nlh2-leader{display:flex;align-items:center;gap:10px;min-height:58px;padding:9px 11px;border-radius:12px;background:#0b2948;border:1px solid #183f66;color:#fff}
.tso-nlh2-leader .rank{display:grid;place-items:center;flex:0 0 28px;height:28px;border-radius:50%;background:#071d33;color:#ffd700;font-weight:900}
.tso-nlh2-leader img.player{width:38px;height:38px;object-fit:cover;border-radius:50%;background:#f4f7fb;padding:2px}
.tso-nlh2-leader img.player.badge{object-fit:contain}
.tso-nlh2-leader .identity{min-width:0;flex:1;display:flex;flex-direction:column}
.tso-nlh2-leader .identity strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#fff}
.tso-nlh2-leader .identity span{font-size:12px;color:#c8d6e5;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tso-nlh2-leader>b{display:grid;place-items:center;min-width:34px;height:34px;border-radius:10px;background:#ffd700;color:#071d33;font-size:17px}
.tso-nlh2-leader .cards{display:flex;gap:7px;font-weight:900}
.tso-nlh2-leader .cards span{display:grid;place-items:center;min-width:30px;height:36px;border-radius:5px;color:#071d33}
.tso-nlh2-leader .cards .yellow{background:#ffd700}
.tso-nlh2-leader .cards .red{background:#e64040;color:#fff}
.tso-nlh2-form-panel{margin-top:22px}
.tso-nlh2-form-grid{display:grid;gap:7px}
.tso-nlh2-form-row{display:grid;grid-template-columns:34px minmax(210px,1fr) minmax(170px,auto) 62px;align-items:center;gap:12px;min-height:52px;padding:8px 12px;border-radius:10px;background:#0b2948;color:#fff;border:1px solid transparent}
.tso-nlh2-form-row.southend{border-color:#ffd700;box-shadow:inset 4px 0 0 #ffd700}
.tso-nlh2-form-row .rank{font-weight:900;color:#c8d6e5;text-align:center}
.tso-nlh2-form-row .club{display:flex;align-items:center;gap:9px;font-weight:800}
.tso-nlh2-form-row .club img{width:30px;height:30px;object-fit:contain}
.tso-nlh2-form-row .sequence{display:flex;gap:5px;justify-content:flex-end}
.tso-nlh2-form-row .sequence span{display:grid;place-items:center;width:27px;height:27px;border-radius:50%;font-size:12px;font-weight:900;color:#fff}
.tso-nlh2-form-row .sequence .w{background:#15803d}.tso-nlh2-form-row .sequence .d{background:#64748b}.tso-nlh2-form-row .sequence .l{background:#b91c1c}
.tso-nlh2-form-row .sequence em{font-size:12px;color:#9fb4c9}
.tso-nlh2-form-row>strong{text-align:right;color:#ffd700}
@media(max-width:900px){.tso-nlh2-stats-grid{grid-template-columns:1fr}.tso-nlh2-form-row{grid-template-columns:30px minmax(150px,1fr) auto}.tso-nlh2-form-row>strong{display:none}}
@media(max-width:560px){.tso-nlh2-form-row{grid-template-columns:28px 1fr;padding:9px}.tso-nlh2-form-row .sequence{grid-column:2;justify-content:flex-start}.tso-nlh2-form-row .club{font-size:14px}}

/* Stage 2B: club directory and automatic club profiles */
.tso-nlh2-club-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.tso-nlh2-club-card{position:relative;display:grid;grid-template-columns:54px minmax(0,1fr) auto;grid-template-rows:auto auto;align-items:center;gap:8px 12px;min-height:112px;padding:15px;border:1px solid #28577c;border-radius:15px;background:#0b2948;text-decoration:none!important;color:#fff!important;transition:.18s ease}
.tso-nlh2-club-card:hover{transform:translateY(-2px);border-color:#ffd700;background:#113a60}
.tso-nlh2-club-card.southend{border:2px solid #ffd700;box-shadow:inset 4px 0 0 #ffd700}
.tso-nlh2-club-card>img{width:54px;height:54px;object-fit:contain;grid-row:1/3}
.tso-nlh2-club-card .copy{min-width:0;display:flex;flex-direction:column}
.tso-nlh2-club-card .copy strong{color:#fff;font-size:16px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tso-nlh2-club-card.southend .copy strong{color:#ffd700}
.tso-nlh2-club-card .copy span{color:#b9cad9;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tso-nlh2-club-card .position{text-align:center}.tso-nlh2-club-card .position b{display:block;color:#ffd700;font-size:23px;line-height:1}.tso-nlh2-club-card .position small{color:#b9cad9;font-size:9px;text-transform:uppercase}
.tso-nlh2-club-card .mini-form{grid-column:2/4;display:flex;gap:4px}
.tso-nlh2-club-card .mini-form span,.tso-nlh2-club-profile .profile-form span{display:grid;place-items:center;width:24px;height:24px;border-radius:50%;font-size:11px;font-weight:900;color:#fff}
.tso-nlh2-club-card .mini-form .w,.tso-nlh2-club-profile .profile-form .w{background:#15803d}.tso-nlh2-club-card .mini-form .d,.tso-nlh2-club-profile .profile-form .d{background:#64748b}.tso-nlh2-club-card .mini-form .l,.tso-nlh2-club-profile .profile-form .l{background:#b91c1c}
.tso-nlh2-club-profile .profile-head{display:grid;grid-template-columns:95px minmax(0,1fr) 130px;align-items:center;gap:20px;padding-bottom:20px;border-bottom:1px solid #28577c}
.tso-nlh2-club-profile .profile-head>img{width:92px;height:92px;object-fit:contain}
.tso-nlh2-club-profile .profile-head h2{margin:3px 0 5px!important;font-size:36px!important}
.tso-nlh2-club-profile .profile-head p{margin:0;color:#c8d6e5!important}
.tso-nlh2-club-profile .eyebrow{color:#ffd700;font-size:12px;font-weight:900;text-transform:uppercase;letter-spacing:.08em}
.tso-nlh2-club-profile .profile-position{text-align:center;padding:15px;border-radius:14px;background:#031426;border:1px solid #28577c}
.tso-nlh2-club-profile .profile-position strong{display:block;color:#ffd700;font-size:42px;line-height:1}.tso-nlh2-club-profile .profile-position span{color:#c8d6e5;font-size:11px;text-transform:uppercase}
.tso-nlh2-club-profile .profile-stats{display:grid;grid-template-columns:repeat(6,1fr);gap:10px;margin:18px 0}
.tso-nlh2-club-profile .profile-stats div{padding:13px 8px;text-align:center;border-radius:12px;background:#0d3153;border:1px solid #28577c}
.tso-nlh2-club-profile .profile-stats strong{display:block;color:#ffd700;font-size:24px}.tso-nlh2-club-profile .profile-stats span{font-size:11px;color:#c8d6e5;text-transform:uppercase}
.tso-nlh2-club-profile .profile-form{display:flex;align-items:center;gap:14px;margin:10px 0 20px}.tso-nlh2-club-profile .profile-form>strong{color:#ffd700}.tso-nlh2-club-profile .profile-form>div{display:flex;gap:5px}
.tso-nlh2-club-profile .club-matches .tso-nlh2-panel{margin:0!important}
@media(max-width:900px){.tso-nlh2-club-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.tso-nlh2-club-profile .profile-stats{grid-template-columns:repeat(3,1fr)}}
@media(max-width:620px){.tso-nlh2-club-grid{grid-template-columns:1fr}.tso-nlh2-club-profile .profile-head{grid-template-columns:72px 1fr}.tso-nlh2-club-profile .profile-head>img{width:70px;height:70px}.tso-nlh2-club-profile .profile-position{grid-column:1/3;display:flex;justify-content:center;align-items:center;gap:12px}.tso-nlh2-club-profile .profile-position strong{font-size:30px}.tso-nlh2-club-profile .profile-head h2{font-size:28px!important}.tso-nlh2-club-profile .profile-stats{grid-template-columns:repeat(2,1fr)}}

/* Stage 2C */
.tso-nlh2-section-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:18px}.tso-nlh2-section-head h2{margin:3px 0 0}.live-pulse{background:#d71920;color:#fff;border-radius:999px;padding:7px 12px;font-size:12px;font-weight:900;letter-spacing:.08em}.tso-nlh2-live-row{display:grid;grid-template-columns:90px minmax(130px,1fr) 74px minmax(130px,1fr) 105px;align-items:center;gap:12px;padding:14px 16px;margin:8px 0;border-radius:14px;background:#102d4d;color:#f4f7fb;text-decoration:none!important}.tso-nlh2-live-row:hover{outline:1px solid #ffd700;background:#16395f}.tso-nlh2-live-row.southend{box-shadow:inset 4px 0 #ffd700}.live-status{font-weight:900;color:#ffd700}.live-team.away{text-align:right}.live-open{text-align:right;color:#c8d6e5;font-size:12px}.tso-nlh2-match-page .match-kicker,.eyebrow{color:#ffd700;text-transform:uppercase;letter-spacing:.08em;font-size:12px;font-weight:900}.match-head{display:grid;grid-template-columns:1fr 150px 1fr;align-items:center;gap:20px;margin:22px 0}.match-side{text-align:center}.match-side img{width:90px;height:90px;object-fit:contain}.match-side h2{margin:8px 0 0}.match-score{text-align:center}.match-score span{display:block;font-size:36px;font-weight:900;color:#ffd700}.match-score small{display:block;color:#c8d6e5}.match-info{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin:20px 0}.match-info div{background:#102d4d;border-radius:12px;padding:14px}.match-info strong,.match-info span{display:block}.match-info span{color:#c8d6e5;margin-top:4px}.match-columns{display:grid;grid-template-columns:1fr 1fr;gap:22px}.match-columns>div{background:#0c2748;border-radius:16px;padding:18px}.event-row,.stat-row{display:flex;gap:14px;align-items:flex-start;padding:11px 0;border-bottom:1px solid rgba(255,255,255,.08)}.event-row b{color:#ffd700;min-width:42px}.event-row span>*{display:block}.event-row em,.event-row small{color:#c8d6e5;font-style:normal}.stat-row{justify-content:space-between}.tso-nlh2-team-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.team-stat-card{display:grid;grid-template-columns:50px 1fr;gap:5px 12px;align-items:center;background:#102d4d;border-radius:16px;padding:15px}.team-stat-card img{width:48px;height:48px;object-fit:contain;grid-row:1/5}.team-stat-card span{color:#c8d6e5;font-size:13px}.team-stat-card b{color:#fff}.team-stat-card.southend{outline:2px solid #ffd700}.tso-nlh2-match[href]{text-decoration:none!important;color:inherit}
@media(max-width:760px){.tso-nlh2-live-row{grid-template-columns:60px 1fr 58px 1fr}.live-open{display:none}.match-head{grid-template-columns:1fr 90px 1fr}.match-side img{width:62px;height:62px}.match-score span{font-size:26px}.match-info{grid-template-columns:1fr 1fr}.match-columns{grid-template-columns:1fr}.tso-nlh2-team-stats{grid-template-columns:1fr}.live-team{font-size:13px}}

/* Stage 3: dedicated pages, breadcrumbs and SEO navigation */
.tso-nlh2-page-nav{position:sticky;top:0;z-index:20;margin:18px 0 22px;background:#071d33;border:1px solid #214d73;box-shadow:0 10px 24px rgba(0,0,0,.18)}
.tso-nlh2-page-nav a.is-active{background:#ffd700;color:#071d33!important;border-color:#ffd700}
.tso-nlh2-breadcrumbs{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:0 0 14px;padding:0 4px;color:#aebed0;font-size:13px}
.tso-nlh2-breadcrumbs a{color:#ffd700;text-decoration:none;font-weight:700}
.tso-nlh2-breadcrumbs a:hover{text-decoration:underline}
.tso-nlh2-section-hero{margin:0 0 22px;padding:28px;border-radius:20px;background:linear-gradient(135deg,#071d33,#0d3153);border:1px solid #28577c;box-shadow:0 12px 32px rgba(0,0,0,.2)}
.tso-nlh2-section-hero h1{margin:5px 0 8px!important;color:#ffd700!important;font-size:clamp(30px,5vw,48px)!important;line-height:1.05}
.tso-nlh2-section-hero p{margin:0!important;max-width:850px;color:#e5edf5!important;font-size:16px;line-height:1.65}
@media(max-width:782px){.tso-nlh2-page-nav{position:static}.tso-nlh2-section-hero{padding:22px}.tso-nlh2-breadcrumbs{font-size:12px}}

/* v1.4.1: restored dashboard summaries while retaining dedicated SEO pages. */
.tso-nlh2-dashboard-links{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:20px 0}
.tso-nlh2-dashboard-links>a{display:flex;flex-direction:column;min-height:145px;padding:20px;border-radius:16px;text-decoration:none!important;background:linear-gradient(145deg,#0e3559,#081f38);border:1px solid #28577c;box-shadow:0 10px 24px rgba(0,0,0,.18);transition:transform .18s ease,border-color .18s ease,background .18s ease}
.tso-nlh2-dashboard-links>a:hover{transform:translateY(-3px);border-color:#ffd700;background:linear-gradient(145deg,#16466f,#0b2947)}
.tso-nlh2-dashboard-links strong{font-size:21px;color:#ffd700}
.tso-nlh2-dashboard-links span{margin-top:8px;line-height:1.45;color:#d8e4ef;flex:1}
.tso-nlh2-dashboard-links b{margin-top:14px;color:#fff;font-size:13px}
.tso-nlh2-dashboard-grid{align-items:start}
@media(max-width:900px){.tso-nlh2-dashboard-links{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:620px){.tso-nlh2-dashboard-links{grid-template-columns:1fr}.tso-nlh2-dashboard-links>a{min-height:0}}


/* v1.5.0: wider application layout and dashboard polish. */
body.tso-nlh2-active .site-content,
body.tso-nlh2-active .content-area,
body.tso-nlh2-active .site-main,
body.tso-nlh2-active article,
body.tso-nlh2-active .entry-content{
  max-width:none!important;
  width:100%!important;
}
.tso-nlh2{
  width:min(1460px,calc(100% - 40px))!important;
}
.tso-nlh2-page{
  padding:28px 0 60px!important;
}
.tso-nlh2-hero{
  min-height:310px;
  padding-left:50px;
  border-radius:24px;
}
.tso-nlh2-update{
  margin:20px 0 14px;
}
.tso-nlh2-page-nav{
  top:32px;
  padding:10px;
  border-radius:16px;
}
.tso-nlh2-page-nav .tso-nlh2-nav,
.tso-nlh2-page-nav.tso-nlh2-nav{
  margin:0;
}
.tso-nlh2-nav{
  gap:10px;
}
.tso-nlh2-nav a{
  flex:1 1 130px;
  text-align:center;
  border-radius:12px;
  padding:12px 16px;
  background:#0d3153;
  color:#fff!important;
  border-color:#28577c;
}
.tso-nlh2-nav a:hover,
.tso-nlh2-nav a.is-active{
  background:#ffd700;
  color:#071d33!important;
  border-color:#ffd700;
}
.tso-nlh2-panel{
  padding:26px!important;
  border-radius:20px!important;
}
.tso-nlh2-dashboard-links{
  grid-template-columns:repeat(4,minmax(220px,1fr));
  gap:18px;
  margin:22px 0;
}
.tso-nlh2-dashboard-links>a{
  min-height:158px;
  padding:23px;
  border-radius:18px;
}
.tso-nlh2-dashboard-links strong{font-size:23px}
.tso-nlh2-dashboard-grid{
  grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  gap:22px;
}
.tso-nlh2-dashboard-grid>div{
  min-width:0;
}
.tso-nlh2-dashboard-grid .tso-nlh2-panel{
  height:auto;
  min-height:100%;
  margin:0;
}
.tso-nlh2-match{
  grid-template-columns:minmax(0,1fr) 94px minmax(0,1fr);
  padding:12px 14px;
}
.tso-nlh2-table th,
.tso-nlh2-table td{
  padding-top:12px;
  padding-bottom:12px;
}
@media(max-width:1100px){
  .tso-nlh2-dashboard-links{grid-template-columns:repeat(2,minmax(0,1fr))}
  .tso-nlh2{width:min(100%,calc(100% - 28px))!important}
}
@media(max-width:900px){
  .tso-nlh2-dashboard-grid{grid-template-columns:1fr}
  .tso-nlh2-page-nav{top:46px}
}
@media(max-width:782px){
  .tso-nlh2-page-nav{position:static}
}
@media(max-width:620px){
  .tso-nlh2{width:calc(100% - 18px)!important}
  .tso-nlh2-page{padding-top:10px!important}
  .tso-nlh2-dashboard-links{grid-template-columns:1fr;gap:12px}
  .tso-nlh2-dashboard-links>a{min-height:0;padding:18px}
  .tso-nlh2-panel{padding:17px 12px!important}
  .tso-nlh2-nav a{flex:1 1 calc(50% - 8px);padding:10px 8px}
}


/* v1.6.0 complete club profiles */
.tso-nlh2-club-tabs{display:flex;gap:9px;flex-wrap:wrap;margin:22px 0 26px;padding:12px;background:#071d33;border:1px solid rgba(255,215,0,.24);border-radius:16px;position:sticky;top:8px;z-index:8}
.tso-nlh2-club-tabs a{flex:1 1 105px;text-align:center;padding:11px 13px;border-radius:11px;background:#0d2948;color:#fff!important;text-decoration:none!important;font-weight:800;border:1px solid rgba(255,255,255,.09)}
.tso-nlh2-club-tabs a:hover,.tso-nlh2-club-tabs a.is-active{background:#ffd700;color:#071d33!important;border-color:#ffd700}
.tso-nlh2-club-snapshot,.tso-nlh2-ground-card{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:20px 0}
.tso-nlh2-club-snapshot>div,.tso-nlh2-ground-card>div{background:#0b2744;border:1px solid rgba(255,255,255,.09);border-radius:14px;padding:17px}
.tso-nlh2-club-snapshot span,.tso-nlh2-ground-card span{display:block;color:#a9bdd2;font-size:.78rem;text-transform:uppercase;letter-spacing:.08em;margin-bottom:7px}
.tso-nlh2-club-snapshot strong,.tso-nlh2-ground-card strong{display:block;color:#fff;font-size:1rem;line-height:1.35}
.tso-nlh2-club-snapshot a,.tso-nlh2-ground-card a{color:#ffd700!important}
.tso-nlh2-club-subpanel{background:#081f37;border:1px solid rgba(255,215,0,.2);border-radius:18px;padding:22px;margin-top:18px}
.tso-nlh2-club-subpanel h3{color:#ffd700;margin:0 0 16px;font-size:1.35rem}
.tso-nlh2-data-note{margin:16px 0 0;color:#afc0d1;font-size:.92rem;line-height:1.6}
@media(max-width:760px){.tso-nlh2-club-tabs{position:static;display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.tso-nlh2-club-tabs a{flex:auto}.tso-nlh2-club-snapshot,.tso-nlh2-ground-card{grid-template-columns:1fr}.tso-nlh2-club-profile .profile-head{align-items:flex-start}.tso-nlh2-club-profile .profile-position{margin-left:auto}}

/* v1.6.1 club profile corrections */
.tso-nlh2-club-tabs{display:grid!important;grid-template-columns:repeat(7,minmax(110px,1fr));gap:6px!important;overflow-x:auto;scrollbar-width:thin;padding:8px!important;position:static!important;background:#031426!important;border-radius:14px!important}
.tso-nlh2-club-tabs a{min-width:110px;padding:13px 12px!important;background:transparent!important;border:0!important;border-bottom:3px solid transparent!important;border-radius:8px!important;white-space:nowrap}
.tso-nlh2-club-tabs a:hover{background:#0d3153!important;color:#ffd700!important}
.tso-nlh2-club-tabs a.is-active{background:#ffd700!important;color:#071d33!important;border-bottom-color:#fff!important;box-shadow:0 4px 14px rgba(0,0,0,.25)}
.tso-nlh2-squad-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.tso-nlh2-player-card{display:flex;align-items:center;gap:12px;padding:12px;border-radius:12px;background:#0d3153;border:1px solid #28577c}
.tso-nlh2-player-card img,.tso-nlh2-player-card .player-placeholder{width:48px;height:48px;border-radius:50%;object-fit:cover;background:#f4f7fb;color:#071d33;display:grid;place-items:center;font-size:20px;font-weight:900}
.tso-nlh2-player-card strong,.tso-nlh2-player-card span{display:block}.tso-nlh2-player-card strong{color:#fff}.tso-nlh2-player-card div span{font-size:12px;color:#c8d6e5;margin-top:3px}
.tso-nlh2-detail-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.tso-nlh2-detail-stats>div{display:flex;justify-content:space-between;gap:12px;padding:12px;border-radius:10px;background:#0d3153;border:1px solid #28577c}.tso-nlh2-detail-stats span{color:#c8d6e5}.tso-nlh2-detail-stats strong{color:#ffd700}.tso-nlh2-club-subpanel .subheading{margin-top:24px!important}.tso-nlh2-venue-image{width:100%;max-height:360px;object-fit:cover;border-radius:14px;margin:0 0 16px}
@media(max-width:900px){.tso-nlh2-squad-grid,.tso-nlh2-detail-stats{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:620px){.tso-nlh2-club-tabs{display:flex!important}.tso-nlh2-squad-grid,.tso-nlh2-detail-stats{grid-template-columns:1fr}}

/* v2.0 visitor-ready refinements */
.tso-nlh2-club-tabs a.is-active{background:#ffd700!important;color:#071d33!important;border-bottom-color:#071d33!important;text-shadow:none!important}
.tso-nlh2-support{display:flex;align-items:center;justify-content:space-between;gap:28px;margin:34px 0 18px;padding:28px 30px;border:1px solid rgba(255,215,0,.35);border-radius:20px;background:linear-gradient(135deg,#061c32,#0d3153);box-shadow:0 16px 36px rgba(0,0,0,.22)}
.tso-nlh2-support h2{margin:5px 0 9px;color:#ffd700;font-size:clamp(1.35rem,2.4vw,2rem)}
.tso-nlh2-support p{margin:0;max-width:880px;color:#e5edf6;line-height:1.7}
.tso-nlh2-support a{flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;padding:13px 19px;border-radius:12px;background:#ffd700;color:#071d33!important;font-weight:900;text-decoration:none!important;box-shadow:0 8px 18px rgba(0,0,0,.2)}
.tso-nlh2-support a:hover{background:#fff;color:#071d33!important;transform:translateY(-1px)}
.tso-nlh2-platform-credit{text-align:center;color:#afc0d1;font-size:.9rem;margin:0 0 24px}
.tso-nlh2-transfer-list{display:grid;gap:10px}
.tso-nlh2-transfer-list article{display:grid;grid-template-columns:90px 1fr auto;align-items:center;gap:14px;padding:14px 16px;background:#0d2948;border:1px solid rgba(255,255,255,.1);border-radius:12px}
.tso-nlh2-transfer-list article strong,.tso-nlh2-transfer-list article span{display:block}.tso-nlh2-transfer-list article span,.tso-nlh2-transfer-list article small{color:#c7d4e2}
.transfer-direction{font-weight:900;text-align:center;padding:7px 8px;border-radius:8px;background:#173a5f;color:#fff}.transfer-direction.joined{background:#167547}.transfer-direction.departed{background:#9b2c2c}
@media(max-width:760px){.tso-nlh2-support{display:block;padding:22px}.tso-nlh2-support a{margin-top:18px;width:100%}.tso-nlh2-transfer-list article{grid-template-columns:1fr}.transfer-direction{text-align:left;width:max-content}}

/* v2.0.1: force accessible active-tab contrast against theme link rules. */
body.tso-nlh2-active .tso-nlh2-club-tabs a.is-active,
body.tso-nlh2-active .tso-nlh2-club-tabs a.is-active:link,
body.tso-nlh2-active .tso-nlh2-club-tabs a.is-active:visited,
body.tso-nlh2-active .tso-nlh2-club-tabs a[aria-current="page"]{
  color:#071d33!important;
  -webkit-text-fill-color:#071d33!important;
  background:#ffd700!important;
  text-shadow:none!important;
}
body.tso-nlh2-active .tso-nlh2-club-tabs a.is-active *{color:#071d33!important;-webkit-text-fill-color:#071d33!important}
/* v2.1.0: final active-tab contrast safeguard. */
.tso-nlh2-club-tabs>a[aria-current="page"],
.tso-nlh2-club-tabs>a[aria-current="page"]:link,
.tso-nlh2-club-tabs>a[aria-current="page"]:visited,
.tso-nlh2-club-tabs>a[aria-current="page"] span{
 color:#071d33!important;
 -webkit-text-fill-color:#071d33!important;
 background:#ffd700!important;
 text-shadow:none!important;
}
.tso-nlh2-club-tabs>a[aria-current="page"] span{background:transparent!important}

/* v2.2.0 release: four-section club navigation and readable active state. */
.tso-nlh2-club-tabs a.is-active,
.tso-nlh2-club-tabs a.is-active:link,
.tso-nlh2-club-tabs a.is-active:visited,
.tso-nlh2-club-tabs a.is-active:hover,
.tso-nlh2-club-tabs a.is-active:focus,
.tso-nlh2-club-tabs a.is-active span {
  background:#ffd700 !important;
  color:#071d33 !important;
  -webkit-text-fill-color:#071d33 !important;
  text-shadow:none !important;
}

/* v3.2.0 public launch refinements */
.tso-nlh2-page-nav{display:none!important}

/* National League position bands */
.tso-nlh2-table tbody tr.promotion td{background:#c9a227!important;color:#071d33!important}
.tso-nlh2-table tbody tr.semi td{background:#237443!important;color:#fff!important}
.tso-nlh2-table tbody tr.playoff td{background:#59616a!important;color:#fff!important}
.tso-nlh2-table tbody tr.relegation td{background:#9f202b!important;color:#fff!important}

/* Southend keeps its correct position-band background; only its name is highlighted. */
.tso-nlh2-table tbody tr.southend td.club,
.tso-nlh2-table tbody tr.southend td.club *{color:#ffd700!important;font-weight:900!important;text-transform:uppercase}

/* Public-facing league table key */
.tso-nlh2-key{display:flex;flex-wrap:wrap;gap:18px;margin-top:14px;color:#d4e0eb!important;font-size:.86rem}
.tso-nlh2-key span:before{content:"";display:inline-block;width:11px;height:11px;margin-right:7px;border-radius:2px;vertical-align:-1px}
.tso-nlh2-key .promotion-key:before{background:#c9a227}
.tso-nlh2-key .semi-key:before{background:#237443}
.tso-nlh2-key .eliminator-key:before{background:#59616a}
.tso-nlh2-key .relegation-key:before{background:#9f202b}

/* Compact homepage table — fully owned by the plugin so theme table rules cannot bleed through. */
.tso-nlh2-compact-wrap{width:100%;overflow-x:auto;background:#173f72!important;border-radius:0}
.tso-nlh2-compact-table{width:100%!important;border-collapse:collapse!important;border-spacing:0!important;font-size:.88rem;color:#fff!important;background:#173f72!important;margin:0!important}
.tso-nlh2-compact-table thead,.tso-nlh2-compact-table tbody{background:transparent!important}
.tso-nlh2-compact-table th{padding:8px 9px!important;background:#0b3157!important;color:#FFD700!important;text-transform:uppercase;font-size:.68rem;letter-spacing:.06em;text-align:center;border:0!important;border-bottom:1px solid rgba(255,215,0,.35)!important}
.tso-nlh2-compact-table th:nth-child(2){text-align:left}
.tso-nlh2-compact-table tbody tr,.tso-nlh2-compact-table tbody tr:nth-child(odd),.tso-nlh2-compact-table tbody tr:nth-child(even){background:#214f86!important;color:#fff!important}
.tso-nlh2-compact-table td{padding:9px!important;background:inherit!important;color:inherit!important;border:0!important;border-bottom:1px solid rgba(255,255,255,.10)!important;text-align:center!important}
.tso-nlh2-compact-table td.club{text-align:left!important;font-weight:800;white-space:nowrap}
.tso-nlh2-compact-table td.club img{width:24px;height:24px;object-fit:contain;vertical-align:middle;margin-right:8px}
.tso-nlh2-compact-table tbody tr.promotion{background:#c9a227!important;color:#071d33!important}
.tso-nlh2-compact-table tbody tr.semi{background:#237443!important;color:#fff!important}
.tso-nlh2-compact-table tbody tr.playoff{background:#59616a!important;color:#fff!important}
.tso-nlh2-compact-table tbody tr.relegation{background:#9f202b!important;color:#fff!important}
.tso-nlh2-compact-table tbody tr.southend td.club,.tso-nlh2-compact-table tbody tr.southend td.club *{color:#FFD700!important;font-weight:950!important;text-transform:uppercase}
.tso-nlh2-compact-table tbody tr:last-child td{border-bottom:0!important}
.tso-nlh2-compact-empty{color:#fff;margin:0}

