/* pSEO Base Styles — shared across all static article pages */
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: system-ui, -apple-system, sans-serif; background: #120014; color: white; line-height: 1.6; }
.container { max-width: 56rem; margin: 0 auto; padding: 1.5rem; }
h1 { font-size: 2.5rem; font-weight: 900; letter-spacing: -0.03em; line-height: 1.1; margin-bottom: 1.5rem; }
@media (min-width: 768px) { h1 { font-size: 3.5rem; } }
a { color: white; }
a:hover { color: rgba(255,255,255,0.8); }

/* CTA */
.cta { background: #120014; border: 2px solid rgba(255,255,255,0.2); border-radius: 2rem; padding: 4rem 2rem; text-align: center; margin-top: 4rem; }
.cta-title { font-size: 2rem; font-weight: 900; margin-bottom: 1rem; }
.cta-button { display: inline-block; padding: 1rem 2.5rem; border-radius: 1rem; background: white; color: #120014; font-weight: 900; text-decoration: none; font-size: 1rem; transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease; }
.cta-button:hover { background: rgba(255,255,255,0.92); color: #120014 !important; transform: translateY(-1px); }

/* Cards & Grids */
.card { background: rgba(255,255,255,0.08); border-radius: 1.5rem; border: 1px solid rgba(255,255,255,0.15); padding: 1.5rem; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1rem; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; }
.badge-img { width: 2rem; height: 2rem; object-fit: contain; }

/* Player decision dossiers */
.player-dossier {
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.045);
  border-radius: 1rem;
  padding: 1.25rem;
}
.player-dossier-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 1.25rem;
  align-items: start;
}
.player-dossier p {
  color: rgba(255,255,255,0.82);
  line-height: 1.75;
}
.player-dossier-change {
  margin-top: 0.75rem;
  color: rgba(255,255,255,0.58) !important;
  font-size: 0.9rem;
}
@media (max-width: 760px) {
  .player-dossier-grid { grid-template-columns: 1fr; }
}

/* Sections */
.section { margin-bottom: 3rem; }
.section-title { font-size: 1.5rem; font-weight: 900; margin-bottom: 1.5rem; }

/* Stats */
.stat-box { background: rgba(255,255,255,0.05); border-radius: 1rem; padding: 1rem; text-align: center; border: 1px solid rgba(255,255,255,0.1); }
.stat-value { font-size: 1.5rem; font-weight: 900; color: white; }
.stat-label { font-size: 0.7rem; color: rgba(255,255,255,0.5); text-transform: uppercase; letter-spacing: 0.1em; margin-top: 0.25rem; }

/* Player and club profile banners */
.profile-banner {
  position: relative;
  min-height: 17rem;
  margin: 0 0 2.25rem;
  padding: clamp(1.25rem, 3vw, 2rem);
  overflow: hidden;
  border-radius: 1.35rem;
  border: 0;
  background: var(--profile-primary);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--profile-primary) 92%, white 8%), color-mix(in srgb, var(--profile-secondary) 78%, #120014 22%)),
    var(--profile-primary);
  color: var(--profile-text);
  isolation: isolate;
  text-align: left;
}
.profile-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(55deg, transparent 0 42%, rgba(255,255,255,0.12) 42% 52%, transparent 52% 100%),
    linear-gradient(55deg, transparent 0 62%, rgba(255,255,255,0.1) 62% 70%, transparent 70% 100%);
  opacity: 0.55;
  pointer-events: none;
  z-index: -1;
}
.profile-banner-player { display: grid; grid-template-columns: minmax(8rem, 13rem) minmax(0, 1fr); align-items: end; gap: clamp(1rem, 4vw, 2rem); padding-bottom: 0; }
.profile-banner-team-card { display: grid; grid-template-columns: minmax(5.5rem, 7.5rem) minmax(0, 1fr); align-items: center; gap: clamp(1rem, 4vw, 1.6rem); min-height: 12rem; }
.profile-banner-visual { align-self: end; display: flex; align-items: flex-end; justify-content: center; min-height: 15rem; }
.profile-banner-headshot { width: min(13rem, 34vw); height: min(16rem, 42vw); object-fit: contain; object-position: bottom; filter: drop-shadow(0 1.1rem 1.7rem rgba(0,0,0,0.38)); }
.profile-banner-badge { display: flex; align-items: center; justify-content: center; }
.profile-banner-badge img { width: min(7rem, 22vw); height: min(7rem, 22vw); object-fit: contain; filter: drop-shadow(0 1rem 1.5rem rgba(0,0,0,0.28)); }
.profile-banner-content { min-width: 0; padding: 1.25rem 0 1.65rem; }
.profile-banner h1 { margin: 0; color: var(--profile-text); font-size: clamp(2.35rem, 8vw, 5rem); letter-spacing: -0.045em; line-height: 0.94; }
.profile-banner h1.profile-banner-title-long { font-size: clamp(2rem, 4vw, 3.2rem); }
.profile-banner h1 span { display: block; font-weight: 950; }
.profile-banner h1.profile-banner-title-long span { white-space: nowrap; }
.profile-banner-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 0.65rem; margin-top: 1rem; font-size: clamp(0.95rem, 2vw, 1.2rem); font-weight: 850; color: color-mix(in srgb, var(--profile-text) 88%, transparent); }
.profile-banner-club { display: inline-flex; align-items: center; justify-content: center; min-width: 2.75rem; min-height: 2.75rem; text-decoration: none; }
.profile-banner-club::before { display: none !important; }
.profile-banner-club img { width: 2.55rem; height: 2.55rem; object-fit: contain; }
.profile-banner-team { color: var(--profile-text); text-decoration: none; font-weight: 900; }
.profile-banner-team:hover { color: color-mix(in srgb, var(--profile-text) 82%, transparent); }
.profile-banner-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.65rem; margin-top: 1.25rem; max-width: 34rem; }
.profile-banner-stats--fixtures { grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: 44rem; }
.profile-banner-stat { padding: 0.75rem 0; border-top: 1px solid rgba(255,255,255,0.25); border-top-color: color-mix(in srgb, var(--profile-text) 28%, transparent); }
.profile-banner-stat strong { display: block; color: var(--profile-text); font-size: clamp(1.15rem, 3vw, 1.65rem); font-weight: 950; line-height: 1.05; }
.profile-banner-stat span { display: block; margin-top: 0.25rem; color: color-mix(in srgb, var(--profile-text) 72%, transparent); font-size: 0.68rem; font-weight: 900; text-transform: uppercase; letter-spacing: 0.08em; }

/* Summer pSEO player cards */
.summer-player-card {
  display: grid;
  grid-template-columns: 6.25rem minmax(0, 1fr) 3.25rem;
  gap: 0.85rem;
  align-items: end;
  min-height: 7.6rem;
  padding: 0.85rem 0.95rem 0;
  border-radius: 1rem;
  overflow: hidden;
}
.summer-player-shot {
  height: 7.45rem;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  text-decoration: none;
}
.summer-player-shot img {
  width: 6.25rem;
  height: 7.45rem;
  object-fit: contain;
  object-position: bottom;
  filter: drop-shadow(0 1rem 1.5rem rgba(0,0,0,0.45));
}
.summer-player-main { align-self: center; min-width: 0; padding-bottom: 0.85rem; }
.summer-player-name { display: block; color: white; text-decoration: none; font-size: 1.12rem; font-weight: 950; line-height: 1.05; }
.summer-player-meta-line { display: flex; align-items: center; gap: 0.45rem; min-height: 1.55rem; margin-top: 0.35rem; }
.summer-player-club { display: inline-flex; align-items: center; gap: 0.35rem; color: rgba(255,255,255,0.7); text-decoration: none; font-size: 0.78rem; font-weight: 900; }
.summer-player-club img { width: 1.45rem; height: 1.45rem; object-fit: contain; }
.summer-player-country { display: inline-flex; align-items: center; justify-content: center; line-height: 0; }
.summer-player-country img { width: 1.35rem; height: 0.95rem; object-fit: cover; border-radius: 0.08rem; }
.summer-player-stats { display: flex; flex-wrap: wrap; gap: 0.65rem; margin-top: 0.5rem; color: rgba(255,255,255,0.66); font-size: 0.8rem; font-weight: 800; }
.summer-player-team-badge { align-self: center; display: flex; align-items: center; justify-content: center; min-width: 3.25rem; min-height: 3.25rem; padding-bottom: 0.85rem; text-decoration: none; }
.summer-player-team-badge img { width: 3rem; height: 3rem; object-fit: contain; filter: drop-shadow(0 0.7rem 1.1rem rgba(0,0,0,0.32)); }
.summer-evidence-row { display: grid; grid-template-columns: 4.8rem minmax(0,1fr) 3rem; gap: 0.8rem; align-items: end; min-height: 5.7rem; border-top: 1px solid rgba(255,255,255,0.09); padding-top: 0.6rem; }
.summer-evidence-shot { height: 5.6rem; display: flex; align-items: flex-end; justify-content: center; text-decoration: none; }
.summer-evidence-shot img { width: 4.7rem; height: 5.6rem; object-fit: contain; object-position: bottom; filter: drop-shadow(0 0.7rem 1rem rgba(0,0,0,0.4)); }
.summer-evidence-main { align-self: center; min-width: 0; }
.summer-evidence-badge { align-self: center; display:flex;align-items:center;justify-content:center;min-width:3rem;min-height:3rem;text-decoration:none; }
.summer-evidence-badge img { width:2.85rem;height:2.85rem;object-fit:contain; }

@media (max-width: 640px) {
  .profile-banner { min-height: 12rem; padding: 1rem; }
  .profile-banner-player { grid-template-columns: 6.75rem minmax(0, 1fr); gap: 0.75rem; min-height: 13rem; }
  .profile-banner-team-card { grid-template-columns: 4.9rem minmax(0, 1fr); gap: 0.8rem; min-height: 10rem; }
  .profile-banner-visual { min-height: 10.8rem; margin-left: -0.35rem; }
  .profile-banner-headshot { width: 7.2rem; height: 11rem; }
  .profile-banner-badge img { width: 4.7rem; height: 4.7rem; }
  .profile-banner-content { padding: 0.75rem 0 1rem; }
  .profile-banner h1 { font-size: clamp(1.9rem, 8.4vw, 2.55rem); letter-spacing: -0.035em; overflow-wrap: anywhere; }
  .profile-banner h1.profile-banner-title-long { font-size: clamp(1rem, 4.35vw, 1.35rem); }
  .profile-banner h1.profile-banner-title-long span { white-space: nowrap; }
  .profile-banner-team-card h1 { font-size: clamp(1.8rem, 7.4vw, 2.2rem); overflow-wrap: normal; }
  .profile-banner-meta { margin-top: 0.65rem; gap: 0.45rem; font-size: 0.9rem; }
  .profile-banner-club { min-width: 2.1rem; min-height: 2.1rem; }
  .profile-banner-club img { width: 2rem; height: 2rem; }
  .profile-banner-stats { display: none; }
  .summer-player-card { grid-template-columns: 5.6rem minmax(0, 1fr) 2.9rem; min-height: 7rem; }
  .summer-player-shot, .summer-player-shot img { width: 5.6rem; height: 6.95rem; }
  .summer-player-team-badge img { width: 2.65rem; height: 2.65rem; }
}

/* Tables */
table { width: 100%; text-align: left; border-collapse: collapse; }
th { padding: 0.75rem 1rem; background: rgba(255,255,255,0.08); font-weight: 800; font-size: 0.65rem; color: rgba(255,255,255,0.5); text-transform: uppercase; letter-spacing: 0.15em; border-bottom: 1px solid rgba(255,255,255,0.1); }
td { padding: 0.75rem 1rem; border-bottom: 1px solid rgba(255,255,255,0.08); color: rgba(255,255,255,0.9); font-size: 0.9rem; }
.table-wrapper { overflow-x: auto; border-radius: 1rem; border: 1px solid rgba(255,255,255,0.15); background: rgba(0,0,0,0.2); }

/* FDR colours */
.fdr-1, .fdr-2 { background: rgba(16,185,129,0.2); color: #10b981; }
.fdr-3 { background: rgba(251,191,36,0.2); color: #fbbf24; }
.fdr-4 { background: rgba(244,114,182,0.2); color: #f472b6; }
.fdr-5 { background: rgba(239,68,68,0.2); color: #ef4444; }

/* Tags */
.tag { display: inline-block; padding: 0.25rem 0.75rem; border-radius: 9999px; font-size: 0.75rem; font-weight: 700; }

/* Related Links */
.related-links { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.related-link { padding: 0.5rem 1rem; border-radius: 0.75rem; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15); color: rgba(255,255,255,0.8); text-decoration: none; font-size: 0.85rem; font-weight: 600; }
.related-link:hover { background: rgba(255,255,255,0.15); color: white; }

/* FAQ Accordion */
.faq-accordion { display:flex; flex-direction:column; gap:0.75rem; }
.faq-accordion details { background:linear-gradient(135deg, #37003c, #2d0030); border-radius:1rem; border:1px solid rgba(255,255,255,0.1); overflow:hidden; transition:border-color 0.3s; }
.faq-accordion details:hover { border-color:rgba(255,255,255,0.2); }
.faq-accordion details[open] { border-color:rgba(255,255,255,0.2); }
.faq-accordion summary { padding:1.25rem 1.5rem; cursor:pointer; font-size:1.05rem; font-weight:600; color:white; list-style:none; display:flex; justify-content:space-between; align-items:center; }
.faq-accordion summary::-webkit-details-marker { display:none; }
.faq-accordion summary::after { content:'+'; font-size:1.5rem; font-weight:300; color:rgba(255,255,255,0.6); transition:transform 0.3s; }
.faq-accordion details[open] summary::after { content:'\2212'; }
.faq-accordion .faq-answer { padding:0 1.5rem 1.25rem; color:rgba(255,255,255,0.9); line-height:1.7; border-top:1px solid rgba(255,255,255,0.05); }

/* Last Refreshed */
.last-refreshed { margin-bottom: 1rem; display: flex; justify-content: flex-end; align-items: center; gap: 0.45rem; padding: 0.35rem 0; color: rgba(255,255,255,0.6); font-size: 0.72rem; font-weight: 500; letter-spacing: 0.03em; font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; }

/* Wiki Layout */
.wiki-layout { display: grid; grid-template-columns: 16.5rem minmax(0, 1fr); gap: 1.25rem; align-items: start; }
.wiki-sidebar { position: sticky; top: 6rem; padding: 1rem; border-radius: 1rem; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.12); }
.wiki-sidebar-title { font-size: 0.72rem; font-weight: 900; color: rgba(255,255,255,0.5); letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 0.8rem; }
.wiki-sidebar a { display: block; padding: 0.5rem 0.65rem; border-radius: 0.65rem; color: rgba(255,255,255,0.82); text-decoration: none; font-size: 0.88rem; font-weight: 700; }
.wiki-sidebar a:hover { background: rgba(255,255,255,0.12); color: white; }
.wiki-mobile-nav { display: none; margin: 0 0 1rem; overflow-x: auto; padding-bottom: 0.25rem; }
.wiki-mobile-nav a { flex: 0 0 auto; }
@media (max-width: 1024px) {
  .wiki-layout { display: block; }
  .wiki-sidebar { display: none; }
  .wiki-mobile-nav { display: flex; gap: 0.5rem; }
}

/* Captain Picks article header */
header { text-align: center; margin-bottom: 4rem; padding-top: 5rem; }
.intro { font-size: 1.1rem; color: rgba(255,255,255,0.8); max-width: 38rem; margin: 0 auto 2rem; }

/* Captain Podium */
.captain-podium-static { margin: 0 0 3rem; }
.podium-row { display: flex; justify-content: center; align-items: flex-end; gap: 0; min-height: 260px; }
.podium-player { width: 180px; display: flex; flex-direction: column; align-items: center; }
.podium-center { transform: scale(1.15); z-index: 2; }
.podium-side { z-index: 1; }
.podium-side:first-child { margin-right: -20px; }
.podium-side:last-child { margin-left: -20px; }
.podium-image-frame { width: 170px; height: 220px; display: flex; align-items: flex-end; justify-content: center; }
.podium-image-frame img { width: 100%; height: 100%; object-fit: contain; object-position: bottom; filter: drop-shadow(0 10px 24px rgba(0,0,0,0.45)); }
.podium-fallback { width: 130px; height: 160px; border-radius: 14px; background: rgba(255,255,255,0.1); }
.podium-meta { margin-top: 0.35rem; text-align: center; }
.podium-name { font-size: 0.9rem; font-weight: 900; letter-spacing: -0.01em; }
.podium-fixture { font-size: 0.7rem; color: rgba(255,255,255,0.7); font-weight: 700; }
@media (max-width: 640px) {
  .podium-player { width: 120px; }
  .podium-image-frame { width: 115px; height: 145px; }
  .podium-side:first-child { margin-right: -10px; }
  .podium-side:last-child { margin-left: -10px; }
  .podium-name { font-size: 0.72rem; }
  .podium-fixture { font-size: 0.6rem; }
}

/* GW Review section-title override */
.section-title::after { content: ''; flex: 1; height: 2px; background: rgba(255,255,255,0.1); }
