:root{--tso-navy:#071d33;--tso-blue:#003087;--tso-gold:#ffd700;--tso-light:#f4f7fb;--tso-text:#1f2a44;--tso-red:#cc0000;--tso-green:#18864b;--tso-border:#dbe3ee}
.tso-history{font-family:Arial,Helvetica,sans-serif;color:var(--tso-text);line-height:1.65;max-width:1240px;margin:0 auto 40px}.tso-history *{box-sizing:border-box}.tso-history h1,.tso-history h2,.tso-history h3,.tso-history p{margin-top:0}.tsoh-hero{position:relative;overflow:hidden;display:flex;align-items:center;justify-content:space-between;min-height:330px;padding:52px clamp(26px,5vw,68px);border-radius:24px;background:radial-gradient(circle at 78% 20%,rgba(255,215,0,.22),transparent 28%),linear-gradient(135deg,#061728 0%,#002f67 60%,#071d33 100%);box-shadow:0 20px 50px rgba(7,29,51,.24);color:#fff}.tsoh-hero:after{content:"";position:absolute;inset:auto -80px -120px auto;width:360px;height:360px;border:1px solid rgba(255,215,0,.18);border-radius:50%}.tsoh-hero__content{position:relative;z-index:2;max-width:760px}.tsoh-kicker,.tsoh-section-heading>span{display:block;margin-bottom:9px;color:var(--tso-gold);font-weight:900;letter-spacing:.12em;text-transform:uppercase;font-size:.78rem}.tsoh-hero h1{margin:0 0 14px;color:var(--tso-gold);font-size:clamp(2.45rem,6vw,5rem);line-height:.98;letter-spacing:-.045em}.tsoh-hero p{max-width:720px;margin-bottom:22px;font-size:clamp(1rem,2vw,1.22rem);color:#fff}.tsoh-hero__tags{display:flex;flex-wrap:wrap;gap:9px}.tsoh-hero__tags span{padding:8px 12px;border:1px solid rgba(255,255,255,.25);border-radius:999px;background:rgba(255,255,255,.08);font-size:.82rem;font-weight:700}.tsoh-year-mark{position:relative;z-index:1;display:grid;text-align:center;line-height:.75;transform:rotate(-4deg);opacity:.95}.tsoh-year-mark span,.tsoh-year-mark em{font-style:normal;font-size:3.1rem;font-weight:900;color:#fff}.tsoh-year-mark strong{font-size:7rem;color:var(--tso-gold);text-shadow:0 8px 24px rgba(0,0,0,.28)}.tsoh-jump{position:sticky;top:8px;z-index:20;display:flex;gap:7px;overflow-x:auto;margin:18px 0 28px;padding:10px;border:1px solid var(--tso-border);border-radius:16px;background:rgba(255,255,255,.96);box-shadow:0 9px 24px rgba(7,29,51,.08);scrollbar-width:none}.tsoh-jump::-webkit-scrollbar{display:none}.tsoh-jump a{flex:0 0 auto;padding:9px 14px;border-radius:10px;color:var(--tso-blue);font-weight:800;text-decoration:none}.tsoh-jump a:hover{background:var(--tso-navy);color:var(--tso-gold)}.tsoh-section{scroll-margin-top:90px;margin:0 0 28px;padding:clamp(24px,4vw,42px);border:1px solid var(--tso-border);border-radius:22px;background:#fff;box-shadow:0 12px 30px rgba(7,29,51,.07)}.tsoh-section-heading{margin-bottom:22px}.tsoh-section-heading h2{margin:0;color:var(--tso-navy);font-size:clamp(1.65rem,3vw,2.5rem);line-height:1.12}.tsoh-section-heading p{margin:9px 0 0;color:#53627a}.tsoh-stat-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:13px}.tsoh-stat-grid article{min-height:112px;padding:18px;border-radius:16px;background:linear-gradient(145deg,#f8fafc,#eef3f8);border:1px solid #e5ebf3;display:flex;flex-direction:column;justify-content:center}.tsoh-stat-grid small{color:#67758a;font-weight:800;text-transform:uppercase;letter-spacing:.06em}.tsoh-stat-grid strong{color:var(--tso-navy);font-size:1.45rem;line-height:1.15}.tsoh-stat-grid span{font-size:.8rem;color:#738196}.tsoh-stat-grid .win{border-top:5px solid var(--tso-green)}.tsoh-stat-grid .draw{border-top:5px solid #d59a00}.tsoh-stat-grid .loss{border-top:5px solid var(--tso-red)}.tsoh-story-layout{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(280px,.8fr);gap:28px}.tsoh-story-card p:last-child{margin-bottom:0}.tsoh-milestones{padding:22px;border-radius:18px;background:var(--tso-navy);color:#fff}.tsoh-milestones h3{color:var(--tso-gold);font-size:1.25rem}.tsoh-milestones div{position:relative;padding:0 0 18px 19px;border-left:2px solid rgba(255,215,0,.36)}.tsoh-milestones div:before{content:"";position:absolute;left:-6px;top:4px;width:10px;height:10px;border-radius:50%;background:var(--tso-gold)}.tsoh-milestones div:last-child{padding-bottom:0}.tsoh-milestones time{display:block;color:var(--tso-gold);font-weight:900}.tsoh-milestones p{margin:3px 0 0;font-size:.93rem}.tsoh-results-toolbar{display:flex;justify-content:space-between;gap:16px;align-items:center;margin-bottom:16px}.tsoh-filter-buttons{display:flex;flex-wrap:wrap;gap:8px}.tsoh-filter-buttons button{appearance:none;border:1px solid #ccd6e3;background:#fff;color:var(--tso-navy);padding:10px 14px;border-radius:999px;font:inherit;font-weight:800;cursor:pointer}.tsoh-filter-buttons button b{display:inline-grid;place-items:center;min-width:25px;height:25px;margin-left:5px;padding:0 7px;border-radius:999px;background:#edf2f7;font-size:.75rem}.tsoh-filter-buttons button.is-active,.tsoh-filter-buttons button:hover{background:var(--tso-navy);color:var(--tso-gold);border-color:var(--tso-navy)}.tsoh-filter-buttons button.is-active b,.tsoh-filter-buttons button:hover b{background:rgba(255,255,255,.13);color:#fff}.tsoh-search input{width:220px;max-width:100%;padding:11px 14px;border:1px solid #ccd6e3;border-radius:12px;font:inherit}.tsoh-form-summary{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:14px}.tsoh-form-summary span{padding:7px 11px;border-radius:9px;background:#edf2f7;font-size:.84rem}.tsoh-form-summary .win{background:#e7f6ed;color:#126b3d}.tsoh-form-summary .draw{background:#fff5d6;color:#825e00}.tsoh-form-summary .loss{background:#fde9e9;color:#9f1111}.tsoh-results-table-wrap,.tsoh-league-wrap{overflow-x:auto;border:1px solid var(--tso-border);border-radius:16px}.tsoh-results-table,.tsoh-league-table{width:100%;border-collapse:separate;border-spacing:0;margin:0;background:#fff;font-size:.91rem}.tsoh-results-table thead th,.tsoh-league-table thead th{position:sticky;top:0;z-index:2;padding:13px 12px;background:var(--tso-navy);color:var(--tso-gold);text-align:left;white-space:nowrap}.tsoh-results-table td,.tsoh-league-table td{padding:12px;border-top:1px solid #e7ecf2;vertical-align:middle}.tsoh-results-table tbody tr:nth-child(even),.tsoh-league-table tbody tr:nth-child(even){background:#f8fafc}.tsoh-results-table tbody tr:hover,.tsoh-league-table tbody tr:hover{background:#fffbe5}.center{text-align:center!important}.fixture{min-width:330px}.fixture .versus{display:inline-block;margin:0 8px;color:#8a96a8;font-size:.78rem;font-weight:900}.fixture .is-southend{color:var(--tso-blue);font-weight:900}.score{font-size:1.06rem;font-weight:900;color:var(--tso-navy);white-space:nowrap}.result-badge{display:inline-grid;place-items:center;width:31px;height:31px;border-radius:9px;color:#fff;font-weight:900}.result-w{background:var(--tso-green)}.result-d{background:#bf8700}.result-l{background:var(--tso-red)}.competition-pill{display:inline-block;padding:6px 9px;border-radius:999px;font-size:.72rem;font-weight:900;white-space:nowrap;background:#eaf0f8;color:var(--tso-blue)}.competition-pill.fa-cup{background:#fff1bb;color:#674c00}.tsoh-history-note,.tsoh-research-box{margin:16px 0 0;padding:14px 16px;border-left:5px solid var(--tso-gold);border-radius:8px;background:#fff9da;color:#4b4530}.tsoh-no-results{text-align:center;padding:20px}.tsoh-league-table{min-width:980px;text-align:center}.tsoh-league-table .club,.tsoh-league-table .notes{text-align:left}.tsoh-league-table .club{font-weight:800;min-width:210px}.tsoh-league-table .notes{min-width:180px;font-size:.78rem;color:#66758a}.tsoh-league-table .points{font-weight:900}.tsoh-league-table .is-southend-row td{background:var(--tso-gold)!important;color:var(--tso-navy);font-weight:900;border-color:#dfbe00}.tsoh-league-table .is-southend-row td:first-child{box-shadow:inset 6px 0 var(--tso-blue)}.tsoh-league-table .is-champion-row td{background:#eaf7ef}.you-are-here{display:inline-block;margin-left:7px;padding:3px 7px;border-radius:999px;background:var(--tso-navy);color:var(--tso-gold);font-size:.66rem;vertical-align:middle}.tsoh-table-legend{display:flex;gap:18px;flex-wrap:wrap;margin-top:13px;font-size:.82rem}.tsoh-table-legend i{display:inline-block;width:13px;height:13px;border-radius:3px;margin-right:5px;vertical-align:-2px}.tsoh-table-legend .champion{background:#eaf7ef;border:1px solid #b9dfc7}.tsoh-table-legend .southend{background:var(--tso-gold)}.tsoh-kit-layout{display:grid;grid-template-columns:320px minmax(0,1fr);align-items:center;gap:42px;background:linear-gradient(135deg,#f7f9fc,#fff)}.tsoh-kit-visual{position:relative;min-height:360px;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:28px;border-radius:20px;background:radial-gradient(circle,#fff 0,#edf2f7 70%)}.tsoh-shirt{position:relative;width:150px;height:158px;background:#174fa0;clip-path:polygon(23% 0,38% 9%,62% 9%,77% 0,100% 20%,84% 42%,78% 30%,78% 100%,22% 100%,22% 30%,16% 42%,0 20%);box-shadow:0 13px 24px rgba(7,29,51,.2)}.tsoh-shirt .collar{position:absolute;left:50%;top:2px;transform:translateX(-50%);width:55px;height:30px;border:9px solid #fff;border-top:0;border-radius:0 0 50% 50%;background:#174fa0}.tsoh-shirt .placket{position:absolute;left:50%;top:25px;transform:translateX(-50%);width:8px;height:28px;background:#fff;border-radius:0 0 5px 5px}.tsoh-shorts{width:105px;height:72px;margin-top:3px;background:#fff;border:2px solid #d8e0ea;clip-path:polygon(0 0,100% 0,90% 100%,54% 100%,50% 70%,46% 100%,10% 100%)}.tsoh-socks{display:flex;gap:28px;margin-top:7px}.tsoh-socks i{display:block;width:25px;height:80px;border-radius:3px 3px 10px 10px;background:#174fa0}.tsoh-confidence{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-top:20px}.tsoh-confidence strong{color:var(--tso-navy)}.tsoh-confidence span{padding:6px 10px;border-radius:999px;background:#e7f6ed;color:#126b3d;font-size:.8rem;font-weight:800}.tsoh-kursaal{background:linear-gradient(135deg,var(--tso-navy),#003a78);color:#fff}.tsoh-kursaal h2{color:var(--tso-gold)}.tsoh-kursaal p{margin:0;color:#fff}.tsoh-source-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.tsoh-source-grid article{padding:19px;border:1px solid #dde5ef;border-radius:15px;background:#f8fafc}.tsoh-source-grid strong{display:block;color:var(--tso-blue);font-size:1.02rem}.tsoh-source-grid p{margin:6px 0 0;font-size:.9rem}.screen-reader-text{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.tso-history-notice{padding:16px;border-left:5px solid var(--tso-gold);background:#fff8d5}
@media(max-width:900px){.tsoh-year-mark{display:none}.tsoh-stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.tsoh-story-layout,.tsoh-kit-layout{grid-template-columns:1fr}.tsoh-kit-visual{min-height:320px}.tsoh-source-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.tso-history{margin-left:-4px;margin-right:-4px}.tsoh-hero{min-height:300px;padding:34px 23px;border-radius:18px}.tsoh-section{padding:23px 16px;border-radius:17px}.tsoh-results-toolbar{align-items:stretch;flex-direction:column}.tsoh-search input{width:100%}.tsoh-results-table-wrap{overflow:visible;border:0}.tsoh-results-table,.tsoh-results-table tbody,.tsoh-results-table tr,.tsoh-results-table td{display:block;width:100%}.tsoh-results-table thead{display:none}.tsoh-results-table tbody{display:grid;gap:11px}.tsoh-results-table tr{position:relative;padding:14px 14px 12px;border:1px solid var(--tso-border);border-left:5px solid var(--tso-blue);border-radius:14px;background:#fff!important;box-shadow:0 7px 17px rgba(7,29,51,.06)}.tsoh-results-table td{padding:3px 0;border:0}.tsoh-results-table td:before{content:attr(data-label);display:block;color:#748198;font-size:.66rem;font-weight:900;text-transform:uppercase;letter-spacing:.07em}.tsoh-results-table td.center{text-align:left!important}.tsoh-results-table .fixture{min-width:0;padding-right:52px;font-size:.94rem}.tsoh-results-table .fixture .versus{margin:0 4px}.tsoh-results-table td:nth-child(3){position:absolute;right:13px;top:13px}.tsoh-results-table td:nth-child(3):before{display:none}.tsoh-results-table td:nth-child(4){font-size:1.2rem}.competition-pill{white-space:normal}.tsoh-source-grid{grid-template-columns:1fr}.tsoh-jump{border-radius:12px}.tsoh-filter-buttons button{flex:1 1 auto}.tsoh-form-summary{display:grid;grid-template-columns:1fr 1fr}.tsoh-kit-visual{min-height:290px}}

/* ==========================================================
   Version 1.1.0 – TSO feature-page redesign
   Matches the current Away Guides / Southend Live visual style
   ========================================================== */
.tso-history{
  --tso-navy:#071d33;
  --tso-deep:#00163d;
  --tso-blue:#002366;
  --tso-mid:#003087;
  --tso-gold:#FFD700;
  --tso-soft:#dbe6ff;
  max-width:1100px;
  margin:40px auto;
  padding:20px;
  border-radius:24px;
  background:linear-gradient(180deg,#02091d 0%,#000719 100%);
  color:#fff;
  box-shadow:0 22px 60px rgba(0,0,0,.22);
}
.tso-history *{box-sizing:border-box}
.tsoh-hero{
  position:relative;
  display:flex;
  align-items:center;
  min-height:285px;
  overflow:hidden;
  padding:38px 260px 38px 34px;
  border:1px solid rgba(255,215,0,.25);
  border-radius:22px;
  background:linear-gradient(135deg,#071d33 0%,#002366 58%,#003087 100%);
  box-shadow:0 18px 45px rgba(0,35,102,.28);
  margin-bottom:22px;
  color:#fff;
}
.tsoh-hero:before{
  content:"";
  position:absolute;
  right:-80px;
  top:-90px;
  width:330px;
  height:330px;
  background:radial-gradient(circle,rgba(255,215,0,.38),rgba(255,215,0,0) 70%);
  pointer-events:none;
}
.tsoh-hero:after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  height:3px;
  background:linear-gradient(90deg,#FFD700,rgba(255,215,0,0));
}
.tsoh-hero__content{position:relative;z-index:2;max-width:730px}
.tsoh-kicker{
  display:block;
  margin-bottom:9px;
  color:#FFD700;
  text-transform:uppercase;
  letter-spacing:.14em;
  font-size:13px;
  font-weight:900;
}
.tsoh-hero h1{
  position:relative;
  margin:0!important;
  color:#FFD700!important;
  font-size:clamp(32px,4.8vw,58px)!important;
  line-height:1.04!important;
  letter-spacing:normal!important;
  font-weight:900!important;
}
.tsoh-hero p{
  position:relative;
  margin:16px 0 20px;
  max-width:720px;
  color:#fff;
  font-size:clamp(16px,2vw,20px);
  line-height:1.55;
  font-weight:600;
}
.tsoh-hero__tags{position:relative;display:flex;flex-wrap:wrap;gap:9px}
.tsoh-hero__tags span{
  padding:8px 13px;
  border:1px solid rgba(255,255,255,.2);
  border-radius:999px;
  background:rgba(255,255,255,.09);
  color:#fff;
  font-size:13px;
  font-weight:900;
}
.tsoh-hero__mascot{
  position:absolute;
  z-index:2;
  right:18px;
  bottom:0;
  width:225px;
  max-height:260px;
  object-fit:contain;
  object-position:right bottom;
  filter:drop-shadow(0 14px 18px rgba(0,0,0,.35));
}
.tsoh-year-mark{display:none!important}
.tsoh-jump{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin:0 0 22px;
  padding:0;
  border:0;
  background:transparent;
}
.tsoh-jump a{
  display:inline-flex;
  align-items:center;
  padding:10px 15px;
  border:1px solid rgba(255,215,0,.3);
  border-radius:999px;
  background:#071d33;
  color:#FFD700!important;
  text-decoration:none!important;
  font-size:13px;
  font-weight:900;
}
.tsoh-jump a:hover{background:#FFD700;color:#071d33!important}
.tsoh-section{
  margin:0 0 20px;
  padding:26px;
  border:1px solid rgba(255,215,0,.22);
  border-radius:20px;
  background:linear-gradient(145deg,#08224a,#0b3470);
  color:#fff;
  box-shadow:0 14px 32px rgba(0,0,0,.2);
}
.tsoh-section-heading{margin:0 0 20px}
.tsoh-section-heading>span{color:#FFD700;text-transform:uppercase;letter-spacing:.12em;font-size:12px;font-weight:900}
.tsoh-section-heading h2,.tsoh-section>h2,.tsoh-story-card h2,.tsoh-kursaal h2{
  margin:4px 0 0!important;
  padding:0 0 10px!important;
  border-bottom:3px solid #FFD700!important;
  color:#FFD700!important;
  font-size:clamp(27px,3.5vw,36px)!important;
  line-height:1.15!important;
  font-weight:900!important;
}
.tsoh-section-heading p,.tsoh-section p{color:#eef4ff}
.tsoh-stat-grid article{
  min-height:112px;
  padding:17px;
  border:1px solid rgba(255,255,255,.14);
  border-left:5px solid #FFD700;
  border-radius:15px;
  background:rgba(255,255,255,.08);
  color:#fff;
}
.tsoh-stat-grid small{color:#cbd9f5}
.tsoh-stat-grid strong{color:#FFD700}
.tsoh-stat-grid span{color:#dbe6ff}
.tsoh-story-layout{background:linear-gradient(145deg,#08224a,#0b3470)}
.tsoh-story-card p{color:#eef4ff}
.tsoh-milestones{background:rgba(0,12,42,.5);border:1px solid rgba(255,215,0,.28)}
.tsoh-results-toolbar,.tsoh-form-summary{color:#071d33}
.tsoh-results-table-wrap,.tsoh-league-wrap{border-color:rgba(255,215,0,.28);background:#fff}
.tsoh-history-note,.tsoh-research-box{background:rgba(255,255,255,.09);color:#fff;border:1px solid rgba(255,215,0,.28);border-left:5px solid #FFD700}
.tsoh-kit-layout{background:linear-gradient(145deg,#08224a,#0b3470)}
.tsoh-kit-visual{background:radial-gradient(circle,#fff 0,#e8eef8 72%)}
.tsoh-confidence strong{color:#FFD700}
.tsoh-kursaal{background:linear-gradient(145deg,#08224a,#0b3470)}
.tsoh-source-grid article{background:rgba(255,255,255,.08);border-color:rgba(255,255,255,.15)}
.tsoh-source-grid strong{color:#FFD700}
.tsoh-source-grid p{color:#eef4ff}

@media(max-width:760px){
  .tso-history{margin:20px auto;padding:12px;border-radius:18px}
  .tsoh-hero{min-height:420px;padding:28px 22px 190px;border-radius:18px;align-items:flex-start}
  .tsoh-hero__mascot{right:50%;transform:translateX(50%);width:185px;max-height:190px}
  .tsoh-hero h1{font-size:clamp(30px,10vw,44px)!important}
  .tsoh-hero p{font-size:16px}
  .tsoh-section{padding:20px 15px;border-radius:16px}
  .tsoh-jump a{flex:1 1 calc(50% - 10px);justify-content:center}
}

/* ==========================================================
   Version 1.2.0 – full dark TSO history design
   Uses the Away Guides hero language and removes light panels.
   ========================================================== */
body.tso-history-active,
body.tso-history-active .site-content,
body.tso-history-active #content,
body.tso-history-active .wrapper,
body.tso-history-active .main-content,
body.tso-history-active .page-content{
  background:#00051a!important;
}
body.tso-history-active .site-content .bs-card-box,
body.tso-history-active .site-content article.page,
body.tso-history-active .site-content .page-entry-content,
body.tso-history-active .site-content .entry-content{
  background:#00051a!important;
  border:0!important;
  box-shadow:none!important;
}
body.tso-history-active .site-content .bs-card-box{padding-top:0!important}

.tso-history{
  max-width:1100px!important;
  margin:38px auto!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
  color:#eef4ff!important;
}
.tso-history p,.tso-history li,.tso-history td{color:#eef4ff}

/* Hero copied closely from the supplied Away Guides design */
.tsoh-hero{
  min-height:285px!important;
  padding:30px 255px 30px 30px!important;
  border:1px solid rgba(255,215,0,.25)!important;
  border-radius:22px!important;
  background:linear-gradient(135deg,#071d33 0%,#002366 58%,#003087 100%)!important;
  box-shadow:0 18px 45px rgba(0,35,102,.28)!important;
  margin-bottom:22px!important;
}
.tsoh-hero:before{right:-80px!important;top:-90px!important;width:280px!important;height:280px!important;background:radial-gradient(circle,rgba(255,215,0,.35),rgba(255,215,0,0) 70%)!important}
.tsoh-hero h1{font-size:clamp(30px,4vw,50px)!important;line-height:1.05!important}
.tsoh-hero p{margin:12px 0 0!important;max-width:760px!important;color:#eaf1ff!important;font-size:16px!important;line-height:1.55!important;font-weight:400!important}
.tsoh-hero__tags{margin-top:18px!important}
.tsoh-hero__tags span{border-color:rgba(255,215,0,.45)!important;background:rgba(255,255,255,.08)!important}
.tsoh-hero__mascot{right:18px!important;width:225px!important;max-height:270px!important}

.tsoh-jump{position:static!important;margin:0 0 22px!important;padding:0!important;background:transparent!important;box-shadow:none!important}
.tsoh-jump a{background:#071d33!important;border:1px solid rgba(255,215,0,.28)!important;color:#FFD700!important}
.tsoh-jump a:hover{background:#FFD700!important;color:#071d33!important}

.tsoh-section,
.tsoh-story-layout,
.tsoh-kit-layout,
.tsoh-kursaal{
  border:1px solid rgba(255,215,0,.23)!important;
  background:linear-gradient(145deg,#071d33 0%,#082855 58%,#003087 100%)!important;
  color:#eef4ff!important;
  box-shadow:0 14px 32px rgba(0,0,0,.24)!important;
}
.tsoh-section-heading h2,.tsoh-section>h2,.tsoh-story-card h2,.tsoh-kursaal h2{color:#FFD700!important}
.tsoh-section-heading p,.tsoh-section p,.tsoh-story-card p,.tsoh-kursaal p{color:#eef4ff!important}

.tsoh-stat-grid article{
  background:linear-gradient(145deg,rgba(255,255,255,.09),rgba(255,255,255,.035))!important;
  border-color:rgba(255,255,255,.13)!important;
  color:#fff!important;
}
.tsoh-stat-grid small,.tsoh-stat-grid span{color:#dbe6ff!important}
.tsoh-stat-grid strong{color:#FFD700!important}

.tsoh-milestones{background:#031329!important;border:1px solid rgba(255,215,0,.3)!important}

/* Controls */
.tsoh-results-toolbar,.tsoh-form-summary{color:#eef4ff!important}
.tsoh-filter-buttons button{
  border-color:rgba(255,215,0,.32)!important;
  background:#071d33!important;
  color:#FFD700!important;
}
.tsoh-filter-buttons button b{background:rgba(255,255,255,.1)!important;color:#fff!important}
.tsoh-filter-buttons button.is-active,.tsoh-filter-buttons button:hover{background:#FFD700!important;color:#071d33!important;border-color:#FFD700!important}
.tsoh-filter-buttons button.is-active b,.tsoh-filter-buttons button:hover b{background:#071d33!important;color:#FFD700!important}
.tsoh-search input{
  border:1px solid rgba(255,215,0,.32)!important;
  background:#031329!important;
  color:#fff!important;
}
.tsoh-search input::placeholder{color:#b9c9e6!important}
.tsoh-form-summary span{background:#071d33!important;color:#eef4ff!important;border:1px solid rgba(255,255,255,.1)!important}

/* Results and league tables – no white surfaces */
.tsoh-results-table-wrap,.tsoh-league-wrap{
  border-color:rgba(255,215,0,.28)!important;
  background:#031329!important;
}
.tsoh-results-table,.tsoh-league-table{background:#031329!important;color:#eef4ff!important}
.tsoh-results-table thead th,.tsoh-league-table thead th{background:#001b3f!important;color:#FFD700!important;border-bottom:1px solid rgba(255,215,0,.3)!important}
.tsoh-results-table td,.tsoh-league-table td{border-color:rgba(255,255,255,.09)!important;color:#eef4ff!important}
.tsoh-results-table tbody tr,.tsoh-league-table tbody tr{background:#071d33!important}
.tsoh-results-table tbody tr:nth-child(even),.tsoh-league-table tbody tr:nth-child(even){background:#0a2851!important}
.tsoh-results-table tbody tr:hover,.tsoh-league-table tbody tr:hover{background:#10376d!important}
.fixture .is-southend,.score,.tsoh-league-table .club,.tsoh-league-table .points{color:#FFD700!important}
.fixture .versus,.tsoh-league-table .notes{color:#b9c9e6!important}
.competition-pill{background:#123968!important;color:#eaf1ff!important;border:1px solid rgba(255,255,255,.1)!important}
.competition-pill.fa-cup{background:#5b4900!important;color:#fff2a6!important;border-color:rgba(255,215,0,.4)!important}
.tsoh-league-table .is-champion-row td{background:#123f35!important;color:#fff!important}
.tsoh-league-table .is-southend-row td{background:#FFD700!important;color:#071d33!important;border-color:#d9b900!important}
.tsoh-league-table .is-southend-row .club,.tsoh-league-table .is-southend-row .points,.tsoh-league-table .is-southend-row .notes{color:#071d33!important}

.tsoh-history-note,.tsoh-research-box{
  background:#031329!important;
  color:#eef4ff!important;
  border:1px solid rgba(255,215,0,.28)!important;
  border-left:5px solid #FFD700!important;
}

/* Kit and source cards */
.tsoh-kit-visual{background:radial-gradient(circle at 50% 35%,#123968 0%,#031329 72%)!important;border:1px solid rgba(255,215,0,.24)!important}
.tsoh-shorts{background:#dbe6ff!important;border-color:#9fb3d1!important}
.tsoh-confidence strong{color:#FFD700!important}
.tsoh-confidence span{background:#123f35!important;color:#d9ffe9!important;border:1px solid rgba(255,255,255,.12)!important}
.tsoh-source-grid article{background:#031329!important;border-color:rgba(255,215,0,.2)!important}
.tsoh-source-grid strong{color:#FFD700!important}
.tsoh-source-grid p{color:#dbe6ff!important}
.tsoh-table-legend{color:#dbe6ff!important}
.tsoh-table-legend .champion{background:#123f35!important;border-color:#2d7d68!important}

@media(max-width:700px){
  .tso-history{margin:20px auto!important;padding:0 8px!important}
  .tsoh-hero{min-height:430px!important;padding:28px 22px 190px!important}
  .tsoh-results-table tr{
    border-color:rgba(255,215,0,.22)!important;
    background:#071d33!important;
    box-shadow:0 8px 18px rgba(0,0,0,.2)!important;
  }
  .tsoh-results-table tbody tr:nth-child(even){background:#0a2851!important}
  .tsoh-results-table td:before{color:#9fb3d1!important}
}

/* ==========================================================
   Version 1.3.0 – wide, borderless page and premium tables
   ========================================================== */
body.tso-history-active .site-content,
body.tso-history-active #content,
body.tso-history-active .site-content .site-main,
body.tso-history-active .site-content main,
body.tso-history-active .site-content .content-area,
body.tso-history-active .site-content .row,
body.tso-history-active .site-content .col-lg-8,
body.tso-history-active .site-content .col-md-8,
body.tso-history-active .site-content .col-sm-12,
body.tso-history-active .site-content article,
body.tso-history-active .site-content .entry-content,
body.tso-history-active .site-content .page-entry-content,
body.tso-history-active .site-content .bs-card-box,
body.tso-history-active .site-content .bs-blog-post {
  background:#00051a!important;
  box-shadow:none!important;
  border:0!important;
}
body.tso-history-active .site-content .container {
  width:100%!important;
  max-width:none!important;
  padding-left:18px!important;
  padding-right:18px!important;
}
body.tso-history-active .content-area,
body.tso-history-active #primary,
body.tso-history-active .site-main,
body.tso-history-active article.page,
body.tso-history-active .entry-content,
body.tso-history-active .page-entry-content,
body.tso-history-active .bs-card-box {
  width:100%!important;
  max-width:none!important;
  margin:0!important;
  padding-left:0!important;
  padding-right:0!important;
}
body.tso-history-active #secondary,
body.tso-history-active .widget-area {display:none!important}

.tso-history{
  width:min(1280px,calc(100vw - 36px))!important;
  max-width:1280px!important;
  margin:30px auto 50px!important;
}
.tsoh-section{padding:28px 30px!important}

/* Cleaner, more premium table shells */
.tsoh-results-table-wrap,
.tsoh-league-wrap{
  overflow:hidden!important;
  border:1px solid rgba(255,215,0,.48)!important;
  border-radius:16px!important;
  background:linear-gradient(180deg,#041a36 0%,#020e22 100%)!important;
  box-shadow:0 18px 38px rgba(0,0,0,.3),inset 0 1px 0 rgba(255,255,255,.05)!important;
}
.tsoh-results-table,
.tsoh-league-table{
  width:100%!important;
  border-collapse:separate!important;
  border-spacing:0!important;
}
.tsoh-results-table thead th,
.tsoh-league-table thead th{
  padding:15px 14px!important;
  background:linear-gradient(180deg,#092b59 0%,#061d40 100%)!important;
  color:#FFD700!important;
  border:0!important;
  border-bottom:2px solid #FFD700!important;
  text-transform:uppercase!important;
  letter-spacing:.045em!important;
  font-size:12px!important;
  white-space:nowrap!important;
}
.tsoh-results-table td,
.tsoh-league-table td{
  padding:13px 14px!important;
  border:0!important;
  border-bottom:1px solid rgba(126,166,217,.2)!important;
  vertical-align:middle!important;
}
.tsoh-results-table tbody tr:last-child td,
.tsoh-league-table tbody tr:last-child td{border-bottom:0!important}
.tsoh-results-table tbody tr,
.tsoh-league-table tbody tr{
  background:linear-gradient(90deg,#061b38 0%,#082650 100%)!important;
  transition:background .18s ease,transform .18s ease!important;
}
.tsoh-results-table tbody tr:nth-child(even),
.tsoh-league-table tbody tr:nth-child(even){
  background:linear-gradient(90deg,#09254b 0%,#0c3265 100%)!important;
}
.tsoh-results-table tbody tr:hover,
.tsoh-league-table tbody tr:hover{
  background:linear-gradient(90deg,#103567 0%,#12427f 100%)!important;
}
.tsoh-league-table th:not(:nth-child(2)),
.tsoh-league-table td:not(:nth-child(2)){text-align:center!important}
.tsoh-league-table .club{text-align:left!important;min-width:250px!important}
.tsoh-league-table .points{font-size:16px!important;font-weight:900!important}
.tsoh-league-table .is-champion-row td{
  background:linear-gradient(90deg,#10453d 0%,#176050 100%)!important;
}
.tsoh-league-table .is-southend-row td{
  background:linear-gradient(90deg,#6d5700 0%,#b18c00 46%,#6d5700 100%)!important;
  color:#fff7c2!important;
  border-top:1px solid #FFD700!important;
  border-bottom:1px solid #FFD700!important;
  box-shadow:inset 0 0 22px rgba(255,215,0,.18)!important;
}
.tsoh-league-table .is-southend-row .club,
.tsoh-league-table .is-southend-row .points{color:#fff!important}
.tsoh-league-table .you-are-here{
  display:inline-block!important;
  margin-left:10px!important;
  padding:3px 8px!important;
  border-radius:999px!important;
  background:#071d33!important;
  color:#FFD700!important;
  font-size:10px!important;
  line-height:1.2!important;
  text-transform:uppercase!important;
  letter-spacing:.05em!important;
}

@media(max-width:900px){
  body.tso-history-active .site-content .container{padding-left:8px!important;padding-right:8px!important}
  .tso-history{width:calc(100vw - 16px)!important;margin-top:16px!important}
  .tsoh-section{padding:22px 18px!important}
  .tsoh-league-wrap{overflow-x:auto!important;border-radius:13px!important}
  .tsoh-league-table{min-width:760px!important}
}

/* ==========================================================
   Version 1.4.0 – final visual polish
   ========================================================== */

/* Give the two-column story section proper inner cards and breathing room. */
.tsoh-story-layout{
  align-items:stretch!important;
  gap:28px!important;
}
.tsoh-story-card,
.tsoh-kit-copy{
  padding:24px 26px!important;
  border:1px solid rgba(255,215,0,.24)!important;
  border-radius:18px!important;
  background:linear-gradient(145deg,rgba(0,8,35,.72),rgba(3,19,41,.88))!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.04)!important;
}
.tsoh-story-card .tsoh-section-heading,
.tsoh-kit-copy .tsoh-section-heading{margin-bottom:18px!important}
.tsoh-story-card p,
.tsoh-kit-copy p{margin-bottom:17px!important;line-height:1.72!important}
.tsoh-story-card p:last-child,
.tsoh-kit-copy p:last-child{margin-bottom:0!important}
.tsoh-milestones{padding:24px 22px!important}

/* Bottom two clubs. */
.tsoh-league-table .is-bottom-two-row td{
  background:linear-gradient(90deg,#58151a 0%,#8d2228 48%,#58151a 100%)!important;
  color:#fff!important;
  border-top:1px solid rgba(255,110,110,.42)!important;
  border-bottom:1px solid rgba(255,110,110,.42)!important;
}
.tsoh-league-table .is-bottom-two-row .club,
.tsoh-league-table .is-bottom-two-row .points{color:#fff!important}
.tsoh-table-legend .bottom-two{background:#cc2f37!important;border:1px solid #ef6a70!important}

/* Rebuilt kit card: no white box, striped shirt, navy shorts and socks. */
.tsoh-kit-layout{
  grid-template-columns:minmax(300px,380px) minmax(0,1fr)!important;
  align-items:stretch!important;
  gap:28px!important;
}
.tsoh-kit-visual{
  min-height:390px!important;
  border:1px solid rgba(255,215,0,.24)!important;
  border-radius:18px!important;
  background:radial-gradient(circle at 50% 30%,#123968 0%,#061b38 54%,#020d22 100%)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.05),0 14px 28px rgba(0,0,0,.2)!important;
}
.tsoh-shirt{
  width:170px!important;
  height:174px!important;
  background:repeating-linear-gradient(90deg,#f4f0df 0 25px,#174f95 25px 50px)!important;
  filter:drop-shadow(0 15px 18px rgba(0,0,0,.3))!important;
}
.tsoh-shirt .collar{
  top:0!important;
  width:66px!important;
  height:34px!important;
  border:8px solid #e9e3cf!important;
  border-top:0!important;
  background:#071d33!important;
}
.tsoh-shirt .placket{display:none!important}
.tsoh-shirt .laces{
  position:absolute;
  left:50%;
  top:27px;
  width:18px;
  height:34px;
  transform:translateX(-50%);
  background:repeating-linear-gradient(45deg,transparent 0 5px,#e9e3cf 5px 7px,transparent 7px 12px);
}
.tsoh-shorts{
  width:118px!important;
  height:78px!important;
  margin-top:5px!important;
  border:1px solid rgba(255,255,255,.16)!important;
  background:linear-gradient(145deg,#071d33,#0d2c55)!important;
  filter:drop-shadow(0 10px 12px rgba(0,0,0,.25))!important;
}
.tsoh-socks{gap:30px!important;margin-top:8px!important}
.tsoh-socks i{
  position:relative!important;
  width:27px!important;
  height:82px!important;
  background:linear-gradient(180deg,#f1ecda 0 13px,#071d33 13px 100%)!important;
  border:1px solid rgba(255,255,255,.12)!important;
  filter:drop-shadow(0 8px 9px rgba(0,0,0,.25))!important;
}

@media(max-width:900px){
  .tsoh-kit-layout{grid-template-columns:1fr!important}
  .tsoh-story-card,.tsoh-kit-copy{padding:21px 20px!important}
}

/* ==========================================================
   Version 1.5.0 – supplied 1920–21 kit and election statuses
   ========================================================== */
.tsoh-kit-visual{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  padding:28px!important;
  min-height:430px!important;
}
.tsoh-kit-image{
  display:block!important;
  width:auto!important;
  height:auto!important;
  max-width:240px!important;
  max-height:370px!important;
  object-fit:contain!important;
  filter:drop-shadow(0 18px 20px rgba(0,0,0,.42))!important;
}
.tsoh-shirt,.tsoh-shorts,.tsoh-socks{display:none!important}

.tsoh-league-table .is-re-elected-row td{
  background:linear-gradient(90deg,#5a171c 0%,#8f252c 50%,#5a171c 100%)!important;
  color:#fff!important;
  border-top:1px solid rgba(255,128,128,.42)!important;
  border-bottom:1px solid rgba(255,128,128,.42)!important;
}
.tsoh-league-table .is-re-elected-row .club,
.tsoh-league-table .is-re-elected-row .points{color:#fff!important}

.tsoh-league-table .is-failed-re-election-row td{
  background:linear-gradient(90deg,#3a0715 0%,#6f0b29 50%,#3a0715 100%)!important;
  color:#fff!important;
  border-top:1px solid rgba(255,74,134,.55)!important;
  border-bottom:1px solid rgba(255,74,134,.55)!important;
}
.tsoh-league-table .is-failed-re-election-row .club,
.tsoh-league-table .is-failed-re-election-row .points{color:#fff!important}

.tsoh-table-legend .re-elected{
  background:#b52d36!important;
  border:1px solid #ef737a!important;
}
.tsoh-table-legend .failed-re-election{
  background:#760e32!important;
  border:1px solid #de4d87!important;
}

@media(max-width:700px){
  .tsoh-kit-visual{min-height:350px!important;padding:22px!important}
  .tsoh-kit-image{max-width:205px!important;max-height:310px!important}
}


/* ==========================================================
   Version 1.6.0 – finished public kit presentation
   ========================================================== */
.tsoh-kit-visual{
  overflow:hidden!important;
  padding:0!important;
  min-height:430px!important;
  background:#071d33!important;
}
.tsoh-kit-image{
  width:100%!important;
  height:100%!important;
  max-width:none!important;
  max-height:430px!important;
  object-fit:contain!important;
  object-position:center!important;
  filter:none!important;
}
.tsoh-kit-copy h2{max-width:760px!important}
@media(max-width:700px){
  .tsoh-kit-visual{min-height:360px!important}
  .tsoh-kit-image{max-height:360px!important}
}


/* ==========================================================
   Version 1.6.2 – Blogarise navigation and page-shell repair
   ========================================================== */

/* Restore the full-width TSO gold navigation strip. */
body.tso-history-active .navbar-wp,
body.tso-history-active .main-navigation,
body.tso-history-active nav.navbar,
body.tso-history-active .navbar-area,
body.tso-history-active .bs-menu-full {
  background:#FFD700!important;
  background-image:none!important;
  border:0!important;
  box-shadow:none!important;
}

/* Keep the menu's normal centred width without coloured end blocks. */
body.tso-history-active .navbar-wp > .container,
body.tso-history-active .main-navigation > .container,
body.tso-history-active nav.navbar > .container,
body.tso-history-active .navbar-area > .container,
body.tso-history-active .bs-menu-full > .container {
  width:100%!important;
  max-width:1320px!important;
  margin-left:auto!important;
  margin-right:auto!important;
  padding-left:15px!important;
  padding-right:15px!important;
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
}

body.tso-history-active .navbar-wp a,
body.tso-history-active .main-navigation a,
body.tso-history-active nav.navbar a {
  color:#071d33!important;
}
body.tso-history-active .navbar-wp a:hover,
body.tso-history-active .main-navigation a:hover,
body.tso-history-active nav.navbar a:hover,
body.tso-history-active .navbar-wp .current-menu-item > a,
body.tso-history-active .main-navigation .current-menu-item > a {
  color:#003087!important;
}

/* Remove every white Blogarise page shell around the shortcode. */
body.tso-history-active .site-content,
body.tso-history-active #content,
body.tso-history-active .site-content > .container,
body.tso-history-active .site-content > .container > .row,
body.tso-history-active .site-content .content-area,
body.tso-history-active .site-content #primary,
body.tso-history-active .site-content .site-main,
body.tso-history-active .site-content article.page,
body.tso-history-active .site-content article.type-page,
body.tso-history-active .site-content .bs-card-box,
body.tso-history-active .site-content .bs-blog-post,
body.tso-history-active .site-content .entry-content,
body.tso-history-active .site-content .page-entry-content {
  background:#00051a!important;
  background-image:none!important;
  border:0!important;
  outline:0!important;
  box-shadow:none!important;
}

body.tso-history-active .site-content article.page,
body.tso-history-active .site-content article.type-page,
body.tso-history-active .site-content .bs-card-box,
body.tso-history-active .site-content .bs-blog-post,
body.tso-history-active .site-content .entry-content,
body.tso-history-active .site-content .page-entry-content {
  margin:0!important;
  padding:0!important;
}

body.tso-history-active .site-content > .container {
  width:100%!important;
  max-width:none!important;
  padding-left:18px!important;
  padding-right:18px!important;
}

/* Guard against pseudo-elements recreating pale card edges. */
body.tso-history-active .site-content .bs-card-box:before,
body.tso-history-active .site-content .bs-card-box:after,
body.tso-history-active .site-content article.page:before,
body.tso-history-active .site-content article.page:after {
  display:none!important;
  content:none!important;
}

@media(max-width:991px){
  body.tso-history-active .navbar-wp > .container,
  body.tso-history-active .main-navigation > .container,
  body.tso-history-active nav.navbar > .container {
    max-width:100%!important;
  }
}
