:root {
  --paper: #fff;
  --gold: #e4ad24;
  --green: #77550a;
  --line: #dedede;
  --black: #0b0b0b;
}
body { font-size: 16px; }
.site-width { width: min(1420px, calc(100% - 72px)); margin-inline: auto; }
.editorial-main { max-width: none; margin: 0; padding: 0; }
.masthead {
  display: block;
  height: auto;
  background: var(--black);
  color: white;
  border: 0;
  letter-spacing: normal;
  font-size: 14px;
}
.masthead > div { display: block; }
.utility { border-bottom: 3px solid var(--gold); }
.utility .site-width {
  min-height: 39px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  padding-block: 5px;
}
.utility a, .site-nav a { color: inherit; text-decoration: none; }
.utility .demo { color: #ddd; font-size: 12px !important; }
.utility .outline { background: var(--gold); color: #111; border: 0; padding: 7px 10px; }
.masthead > .masthead-main {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.site-brand { display: flex; align-items: center; gap: 12px; color: white; text-decoration: none; flex-shrink: 0; }
.site-brand > span {
  display: grid;
  place-items: center;
  width: 49px;
  height: 49px;
  border: 2px solid var(--gold);
  border-radius: 50%;
  color: var(--gold);
  font: 800 25px/1 'Barlow Condensed', sans-serif;
}
.site-brand b { font-size: 19px; line-height: .98; letter-spacing: .02em; }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 17px; }
.site-nav :is(button, a) {
  border: 0;
  background: transparent;
  color: white;
  padding: 10px 3px;
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
}
.site-nav :is(button, a):hover, .site-nav button.active { color: var(--gold); }
.featured-wrap { background: #f6f6f6; padding: 15px 0 16px; }
.editorial-heading, .sectionheading {
  position: relative;
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
  margin: 0 0 18px;
}
.editorial-heading::after, .sectionheading::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 78px;
  height: 2px;
  background: var(--gold);
}
.editorial-heading, .sectionheading h2 { font: 800 clamp(24px, 3vw, 30px)/1.16 'DM Sans', Arial, sans-serif; letter-spacing: -.04em; text-transform: none; margin-top: 0; }
.feature {
  min-height: clamp(305px, 40vw, 540px);
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  border-radius: 4px;
  color: white;
  background: linear-gradient(0deg, #050505ad, #05050536 30%, transparent 60%), url('featured-stadium.webp') center / cover, #24211a;
}
.feature-copy { padding: 32px 44px; }
.feature-tag {
  display: inline-block;
  background: var(--gold);
  color: #131313;
  border-radius: 3px;
  font-weight: 800;
  font-size: 14px;
  padding: 6px 11px;
}
.feature h2 { font: 800 clamp(25px, 3vw, 42px)/1.1 'DM Sans', Arial, sans-serif; margin: 12px 0; letter-spacing: -.035em; }
.feature-link { padding: 8px 13px; border: 1px solid white; border-radius: 4px; background: #1118; color: white; font-size: 14px; }
.feature-control {
  position: absolute;
  top: 46%;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 3px;
  background: var(--gold);
  color: #141414;
  font-size: 28px;
  line-height: 1;
}
.feature-prev { left: 18px; }
.feature-next { right: 18px; }
.editorial-grid {
  display: grid;
  grid-template-columns: minmax(0, 2.3fr) minmax(240px, 1fr);
  gap: 36px;
  align-items: start;
  padding-top: clamp(35px, 5vw, 72px);
}
#explore { padding: 0 0 42px; min-width: 0; }
.sectionheading { gap: 12px; }
.sectionheading h2 { margin-bottom: 0; }
.section-actions, .editorial-tabs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.editorial-tabs button { border: 1px solid var(--line); border-radius: 3px; padding: 8px 11px; background: #f6f6f6; font-size: 14px; font-weight: 700; }
.editorial-tabs button.active { background: var(--gold); border-color: var(--gold); }
.editorial-sidebar {
  position: static;
  display: block;
  width: auto;
  padding: 0;
  background: #f6f6f6;
  border: 1px solid #eee;
  border-radius: 4px;
  overflow: hidden;
}
.editorial-sidebar h2 { background: #202020; border-left: 5px solid var(--gold); padding: 15px 16px; margin: 0; color: white; font: 800 16px/1.2 'DM Sans', Arial, sans-serif; }
.editorial-sidebar button {
  width: 100%;
  text-align: left;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  padding: 14px 17px;
}
.editorial-sidebar button:last-child { border-bottom: 0; }
.editorial-sidebar button:hover, .editorial-sidebar button.active { background: #fff1c9; }
.editorial-sidebar button > span { display: block; color: #555; margin-top: 3px; font-size: 13px; }
#savedCount { color: var(--green); margin-left: 4px; }
#explore .cards { display: grid; grid-template-columns: 1fr; gap: 0; }
#explore .card {
  display: grid;
  grid-template-columns: minmax(130px, 31%) minmax(0, 1fr);
  gap: 20px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 18px 0;
  transform: none;
}
#explore .cardtop { height: auto; min-height: 138px; border-radius: 4px; align-self: stretch; background: #231e13; }
#explore .card-photo { position: absolute; inset: 0; }
#explore .cardtop .initials { color: #e5bf62; }
#explore .cardtop .sample { display: none; }
#explore .cardbody { padding: 0; min-width: 0; }
#explore .cardbody h3 { font: 800 clamp(19px, 2.1vw, 26px)/1.14 'DM Sans', Arial, sans-serif; margin: 7px 0; }
#explore .cardbody .tag { color: #211901; background: #f8dd89; display: inline-block; padding: 4px 7px; border-radius: 3px; font-size: 12px; }
#explore .cardbody .club, #explore .cardbody .recordlabel { font-size: 13px; }
#explore .profilebtn { font-size: 13px; }
#explore .filters { flex-wrap: wrap; }
#explore .search input, #explore .filters select, #explore .evidencefilters select { font-size: 14px; }
#explore .results { font-size: 12px; gap: 10px; }
@media (max-width: 900px) {
  .masthead > .masthead-main { flex-wrap: wrap; gap: 8px; padding-block: 14px 7px; }
  .editorial-grid { grid-template-columns: minmax(0, 1fr); gap: 8px; padding-bottom: 32px; }
}
@media (max-width: 560px) {
  .site-width { width: calc(100% - 32px); }
  .site-nav { gap: 0 11px; }
  .site-nav :is(button, a), .utility { font-size: 12px; }
  .feature-copy { padding: 22px 16px; }
  .feature-control { top: 24%; width: 36px; height: 36px; }
  .feature-prev { left: 10px; }
  .feature-next { right: 10px; }
  .sectionheading { align-items: flex-start; flex-direction: column; }
  #explore .search { flex-basis: 100%; }
  #explore .card { grid-template-columns: minmax(78px, 27%) minmax(0, 1fr); gap: 12px; }
  #explore .cardtop .initials { font-size: 46px; }
}

/* Category editions use a single, photo-led reading column. */
.category-page .featured-wrap, .category-page .editorial-sidebar { display: none; }
.category-page .editorial-grid { display: block; max-width: 1060px; padding-top: 32px; }
.category-page #explore .card {
  grid-template-columns: minmax(0, 40%) minmax(0, 1fr);
  align-items: center;
  gap: clamp(18px, 3vw, 36px);
  padding: 32px 0;
  position: relative;
}
.category-page #explore .card::after {
  content: '';
  position: absolute;
  bottom: -1px;
  width: 34px;
  height: 2px;
  background: var(--gold);
}
.category-page #explore .cardtop {
  width: 100%;
  aspect-ratio: 2 / 1;
  min-height: 0;
  align-self: center;
  background: linear-gradient(90deg, #18181899, #18181845), url('featured-stadium.webp') center / cover;
}
.category-page #explore .cardtop .initials { color: white; text-shadow: 0 2px 8px #151515; }
.category-page #explore .cardtop:has(.card-photo) { background: #f3f3f3; }
.category-page #explore .cardbody h3 { font-size: clamp(22px, 2.2vw, 30px); }
.category-page #explore .cardfoot { margin-top: 12px; }
@media (max-width: 600px) {
  .category-page #explore .card { grid-template-columns: 1fr; gap: 14px; padding: 24px 0; }
}
.category-page .editorial-grid { max-width: 1420px; }
.utility .site-width { flex-wrap: wrap; gap: 5px 14px; }
.utility .watch-channel {
  color: #18130a;
  background: var(--gold);
  border-radius: 3px;
  padding: 7px 12px;
  font-weight: 800;
}
@media (min-width: 901px) {
  .editorial-grid:not(.category-page .editorial-grid) { grid-template-columns: minmax(0, 1fr) minmax(240px, 300px); }
}
.edition { max-width: 780px; line-height: 1.65; padding-bottom: 40px; }
.edition h2 { margin-top: 1em; }
.edition a { color: #78580b; font-weight: 700; }
body:has(.edition:not([hidden])) .editorial-tabs { display: none; }
.rail-photo { width:100%; height:155px; object-fit:contain; display:block; background:white }
#railProfile strong { display:block; margin-top:8px; color:#745308; font-size:14px }
.article-entry { display:grid; gap:6px; width:100%; text-align:left; background:white; border:0; border-bottom:1px solid #ddd; padding:18px 8px; font-size:20px }
@media(min-width:901px){
 .editorial-sidebar { position:sticky; top:12px; max-height:calc(100vh - 24px); overflow:auto }
 .category-page:has(#directoryView:not([hidden])) .editorial-grid { display:grid; grid-template-columns:minmax(0,1fr) minmax(240px,300px) }
 .category-page:has(#directoryView:not([hidden])) .editorial-sidebar { display:block }
}

.owner-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  padding-block: 12px;
  border-bottom: 1px solid var(--gold);
}

dialog:has(.squad-banner) { width:min(760px,94vw); }
.squad-banner { padding:24px; border-bottom:4px solid #e6ad25; border-radius:6px 6px 0 0; background:linear-gradient(100deg,#15130fee 15%,#19160cb5),url('featured-stadium.webp') center 60% / cover; color:white; }
.squad-banner .eyebrow { color:#ffda70; font-size:13px; }
.squad-banner h2 { color:white; margin:8px 0; line-height:1.1; }
dialog .squad-banner p { color:#fff2cc; margin:0; }
.squad-unit { margin:20px 0; border:1px solid #e9dfc6; border-radius:6px; overflow:hidden; }
.squad-unit h3 { margin:0; padding:10px 15px; display:flex; align-items:center; justify-content:space-between; background:#202021; color:white; border-left:6px solid #edba3f; font-size:18px; }
.squad-unit h3 span { background:#ffda70; color:#241a05; padding:2px 9px; border-radius:12px; font-size:14px; }
.squad-unit ul { list-style:none; padding:0; margin:0; }
.squad-unit li { padding:10px 16px; display:flex; flex-wrap:wrap; align-items:baseline; justify-content:space-between; gap:3px 12px; background:white; }
.squad-unit li:nth-child(odd) { background:#fff6df; }
.squad-unit li small { color:#5e5541; font-size:14px; }
#squadCards .teamcard { border-top:4px solid #e6ad25; background:linear-gradient(125deg,#fff5d7,white 68%); }
#squadCards [data-viewsquad] { background:#202021; color:#ffdf82; border-color:#202021; }

.coverage .article-entry{display:block;width:100%;text-align:left;padding:1rem;margin-bottom:.6rem;border:1px solid #e8dfcc;border-left:5px solid #dfac26;background:linear-gradient(110deg,#fff5d6,#fff 70%);color:#201c14;text-decoration:none}
.coverage .article-entry small,.coverage .article-entry b{display:block}
.coverage .article-entry b{font-size:1.2rem;margin-top:.35rem}
#directoryJump{display:inline-block;padding:.75rem 1rem;margin:1rem 0;background:#25211b;color:white;border-radius:4px}
#directoryJump[hidden],.coverage[hidden]{display:none}
.news-row{display:grid;grid-template-columns:minmax(0,40%) minmax(0,1fr);align-items:center;gap:clamp(18px,3vw,36px);padding:28px 0;border-bottom:1px solid #dedede;color:#171717;text-decoration:none;background:linear-gradient(#e8b333,#e8b333) left bottom/36px 2px no-repeat}
.news-row img,.story-photo{display:block;width:100%;aspect-ratio:2/1;object-fit:cover;border-radius:4px}
.news-tag{display:inline-block;padding:4px 12px;background:#f5bf3e;color:#231a08;font-weight:750;font-size:14px}
.news-row h3{font-size:clamp(20px,2vw,27px);line-height:1.15;margin:9px 0 5px}.news-row:hover h3{text-decoration:underline}
.news-row time,.news-meta,.news-row small{font-size:14px;font-weight:650;color:#575450}.news-row p{line-height:1.5;color:#514e48;margin:10px 0}
#storyView{max-width:820px;margin:auto;padding:20px 0 48px}#storyView h1{font-size:clamp(32px,4vw,54px);line-height:1.08;margin:14px 0}.story-photo{margin:20px 0}.story-copy{max-width:68ch;font-size:18px;line-height:1.7}.story-copy p{margin:1em 0}
body:has(#storyView:not([hidden])) #explore>.sectionheading{display:none}
@media(max-width:600px){.news-row{grid-template-columns:1fr;gap:14px;padding:20px 0}}
#jffView{max-width:820px;margin:auto}.gov-header{padding:26px;border-left:7px solid #e6b537;background:#fff5d9}.gov-header h2{margin:7px 0;font-size:clamp(27px,4vw,42px)}.gov-header small{font-weight:800;letter-spacing:.1em}.gov-section{padding:22px 0;border-bottom:2px solid #dfbd63}.gov-section h3{font-size:25px;margin:0 0 14px}.gov-section h4{margin-bottom:6px}.gov-section dl>div{padding:10px 14px;border-bottom:1px solid #e6dfcf}.gov-section dl>div:nth-child(odd){background:#faf7ee}.gov-section dt{font-weight:750}.gov-section dd{margin:3px 0;color:#504c42}.gov-section a{color:#6d4c04}.gov-section p{line-height:1.6}
body:has(#jffView:not([hidden])) .editorial-tabs{display:none}

.governance-organisations { padding-inline-start: 1.4rem; }
.governance-organisations > li { margin-block: .75rem; }
.governance-organisations summary { padding: .8rem 1rem; cursor: pointer; font-weight: 700; }
.governance-organisations details { border: 1px solid #dedbd2; border-radius: .5rem; }
.governance-content { padding: 0 1rem 1rem; line-height: 1.6; }
.governance-content li { margin-block: .4rem; }
.governance-organisations summary { display: block; list-style: none; }
.governance-organisations summary::-webkit-details-marker { display: none; }
.governance-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: clamp(.55rem, 2vw, 1rem); }
.governance-row img { display: block; width: clamp(3rem, 9vw, 4.5rem); height: auto; border-radius: .35rem; }
.governance-row strong, .governance-row small { display: block; }
.governance-row small { margin-top: .2rem; font-size: .875rem; font-weight: 400; }
.governance-chevron { width: .65rem; height: .65rem; margin-inline-end: .2rem; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.governance-organisations details[open] .governance-chevron { transform: rotate(225deg); }

.competition-history { margin-block: 1.5rem; }
.competition-history figure { margin: .75rem 0; }
.competition-history img { display: block; width: 100%; height: auto; border-radius: .4rem; }
.competition-history figcaption { margin-top: .5rem; font-size: .875rem; }
.competition-results { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); gap: .75rem; padding: 0; }
.competition-results li { display: grid; gap: .35rem; padding: .75rem; border: 1px solid #dedbd2; border-radius: .4rem; }
