/* ============================================================
   Master CMS — "Matchday" structural family (Football Winners)
   Loaded after site.css only when the active theme's family is
   "matchday". Colours come from the theme variables:
     --color-primary   red buttons and highlights
     --color-accent    football-winners blue (the Blue game)
     --color-dark      ink for text, dark sections
     --color-highlight bright logo red for big colour blocks
   Motion: entrance animations, pulsing play buttons, hover lifts.
   Everything still works with motion turned off (see the bottom).
   ============================================================ */

.theme-matchday {
  --fw-blue: var(--color-accent);
  --fw-blue-deep: #00015E;
  --fw-red: var(--color-primary);
  --fw-ink: var(--color-dark);
  --fw-muted: #5A5F7A;
  --fw-surface: #FFFFFF;
  --fw-wrap: 1240px;
  --fw-gutter: max(1.5rem, calc((100% - var(--fw-wrap)) / 2));
}

/* ---- Base ---- */
.theme-matchday body { font-size: 17px; line-height: 1.6; color: var(--fw-ink); background: var(--color-background); -webkit-font-smoothing: antialiased; }
.theme-matchday h1, .theme-matchday h2, .theme-matchday h3 { font-family: var(--font-heading); font-weight: 800; letter-spacing: -.02em; line-height: 1.06; }
.theme-matchday h1 { font-size: clamp(2.4rem, 5.4vw, 4.6rem); }
.theme-matchday h2 { font-size: clamp(1.8rem, 3.4vw, 3rem); }
.theme-matchday h3 { font-size: 1.35rem; letter-spacing: -.01em; }
.theme-matchday ::selection { background: var(--fw-red); color: #fff; }
.theme-matchday .bg-circle, .theme-matchday .dotted-ring { display: none; }
.theme-matchday [data-ghost]::before { display: none; }
.theme-matchday .eyebrow { display: inline-block; color: var(--fw-red); font-weight: 800; font-size: .95rem; letter-spacing: 0; text-transform: none; margin-bottom: .6rem; }

/* *Accent* words: red tag with a little wiggle */
.theme-matchday .accent-word {
  font-style: normal; color: #fff; display: inline-block;
  background: var(--fw-red); padding: 0 .22em; border-radius: .18em;
  transform: rotate(-3deg); animation: fw-wiggle 3.6s ease-in-out infinite; transform-origin: 50% 60%;
}

/* ---- Header (white, logo on the left) ---- */
.theme-matchday .site-header { background: #fff; padding: .9rem var(--fw-gutter); box-shadow: 0 1px 0 var(--color-line); }
.theme-matchday .logo img { height: 52px; width: auto; }
.theme-matchday .main-nav { gap: 1.6rem; margin-left: auto; align-items: center; }
.theme-matchday .main-nav a { color: var(--fw-ink); font-weight: 700; font-size: .98rem; position: relative; padding: .5rem .1rem; }
.theme-matchday .main-nav > a::after, .theme-matchday .nav-parent-link::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; border-radius: 3px;
  background: var(--fw-red); transform: scaleX(0); transition: transform .25s var(--motion-easing);
}
.theme-matchday .main-nav > a:hover, .theme-matchday .main-nav a:focus-visible { color: var(--fw-red); }
.theme-matchday .main-nav > a:hover::after, .theme-matchday .nav-parent-link:hover::after { transform: scaleX(1); }
.theme-matchday .mega-menu { border-radius: 18px; border: 1px solid var(--color-line); box-shadow: 0 24px 50px rgba(0,0,40,.14); }
.theme-matchday .site-header > .header-cta { margin-left: 1.6rem; }
.theme-matchday .header-cta { animation: fw-pulse 2s ease-in-out infinite; }

/* ---- Buttons ---- */
.theme-matchday .btn { border-radius: 999px; font-weight: 800; padding: .95rem 1.7rem; font-size: 1rem; transition: transform .2s var(--motion-easing), box-shadow .2s, background .2s, color .2s; }
.theme-matchday .btn:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(0,0,40,.22); }
.theme-matchday .btn-primary { background: var(--fw-red); color: #fff; }
.theme-matchday .btn-primary:hover { background: #B30000; color: #fff; }
.theme-matchday .btn-secondary { background: #fff; color: var(--fw-ink); border: 0; box-shadow: inset 0 0 0 2px var(--color-line); }
.theme-matchday .btn-ghost { background: transparent; color: #fff; border: 0; box-shadow: inset 0 0 0 2px rgba(255,255,255,.6); }
.theme-matchday .btn-ghost:hover { background: transparent; box-shadow: inset 0 0 0 2px #fff; }
.theme-matchday .btn-blue { background: var(--fw-blue); color: #fff; }
.theme-matchday .btn-white { background: #fff; color: var(--fw-blue); }

/* ---- Blocks: one comfortable width ---- */
.theme-matchday .block { padding: 4.5rem var(--fw-gutter); }
.theme-matchday .block-text, .theme-matchday .block-image-text, .theme-matchday .block-twin-text,
.theme-matchday .block-faqs, .theme-matchday .block-contact-form, .theme-matchday .block-gallery,
.theme-matchday .block-image-image { max-width: none; margin: 0; }
.theme-matchday .section-head h2 { max-width: 24ch; }
.theme-matchday .section-link { color: var(--fw-blue); border-bottom-width: 2px; }
.theme-matchday .section-link:hover { color: var(--fw-red); }

/* Entrance: sections rise in as they scroll into view (site.css adds .in-view) */
.theme-matchday.js-scroll-anim .block { opacity: 0; transform: translateY(30px); transition: opacity .7s cubic-bezier(.2,.8,.2,1), transform .7s cubic-bezier(.2,.8,.2,1); }
.theme-matchday.js-scroll-anim .block.in-view { opacity: 1; transform: none; }

/* ---- Hero: Bold banner in Football Winners blue ---- */
.theme-matchday .block-banner.block-banner-bold {
  background: var(--fw-blue); color: #fff; overflow: hidden;
  padding: 5.5rem var(--fw-gutter) 7rem;
}
.theme-matchday .block-banner-bold::before {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 44px; z-index: 0;
  background: var(--color-highlight); clip-path: polygon(0 70%, 100% 0, 100% 100%, 0 100%);
}
.theme-matchday .block-banner-bold .bold-orb {
  display: block; position: absolute; z-index: 0; opacity: 1; background: transparent; border: 2px dashed rgba(255,255,255,.14);
  width: 560px; height: 560px; left: -180px; right: auto; top: -180px; animation: fw-spin 40s linear infinite;
}
.theme-matchday .block-banner-bold .bold-inner::after {
  /* the floating football */
  content: ''; position: absolute; right: 4%; top: -10px; width: 120px; height: 120px; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Ccircle cx='50' cy='50' r='46' fill='%23fff' stroke='%230A0C2B' stroke-width='3'/%3E%3Cpolygon points='50,32 66,44 60,63 40,63 34,44' fill='%230A0C2B'/%3E%3Cpath d='M50 32V6M66 44l24-8M60 63l16 23M40 63L24 86M34 44l-24-8' stroke='%230A0C2B' stroke-width='3'/%3E%3C/svg%3E") center / contain no-repeat;
  animation: fw-float 5s ease-in-out infinite;
}
.theme-matchday .block-banner-bold .bold-eyebrow {
  display: inline-flex; align-items: center; gap: .6rem; text-transform: none; letter-spacing: 0;
  background: rgba(255,255,255,.14); color: #fff; padding: .45rem 1rem; border-radius: 999px; font-size: .95rem; font-weight: 700;
  animation: fw-rise .8s cubic-bezier(.2,.8,.2,1) .05s both;
}
.theme-matchday .block-banner-bold .bold-eyebrow::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: #5CF08A; animation: fw-pulse-green 2s ease-in-out infinite; }
.theme-matchday .block-banner-bold h1 {
  font-size: clamp(2.8rem, 7vw, 5.6rem); line-height: 1.02; letter-spacing: -.03em; max-width: 15ch;
  margin-top: 1.4rem; animation: fw-rise .8s cubic-bezier(.2,.8,.2,1) .18s both;
}
.theme-matchday .block-banner-bold.bold-compact { padding-top: 4rem; padding-bottom: 5.5rem; }
.theme-matchday .block-banner-bold.bold-compact h1 { font-size: clamp(2.4rem, 5.6vw, 4.4rem); max-width: 20ch; }
.theme-matchday .block-banner-bold.bold-compact .bold-inner::after { width: 84px; height: 84px; }
.theme-matchday .block-banner-bold .bold-foot { animation: fw-rise .8s cubic-bezier(.2,.8,.2,1) .34s both; }
.theme-matchday .block-banner-bold .bold-sub { opacity: .92; }
.theme-matchday .block-banner-bold .btn-primary { animation: fw-pulse 2s ease-in-out infinite; padding: 1.05rem 2rem; font-size: 1.08rem; }
.theme-matchday .block-banner-bold .bold-media { border-radius: 26px; }
.theme-matchday.js-scroll-anim .block-banner-bold { opacity: 1; transform: none; }

/* Standard banners (inner pages) use the same blue */
.theme-matchday .block-banner:not(.block-banner-bold) { background: var(--fw-blue); }
.theme-matchday .page-title-banner { background: var(--fw-blue); color: #fff; padding: 3.5rem var(--fw-gutter); }
.theme-matchday .page-title-banner h1 { color: #fff; }

/* ---- Ticker: big kinetic "matchday" type ----
   Large bold words that alternate solid and outlined, red rails top and
   bottom, a spinning football between items, a gentle tilt that rocks
   back and forth, and it speeds up when hovered. */
.theme-matchday .block.block-ticker, .theme-matchday .block-ticker.is-slanted { padding: 0; margin-top: -1px; overflow: hidden; background: var(--fw-ink); }
/* tilted band: blue above (the hero), page colour below, so the corners blend in */
.theme-matchday .block-ticker.is-slanted { background: linear-gradient(var(--fw-blue) 50%, var(--color-background) 50%); padding: .9rem 0; }
.theme-matchday .block-ticker .ticker-band,
.theme-matchday .block-ticker.is-slanted .ticker-band {
  position: relative; width: 100%; margin: 0; padding: 1.35rem 0; transform: none;
  background:
    linear-gradient(var(--color-highlight), var(--color-highlight)) top / 100% 6px no-repeat,
    linear-gradient(var(--color-highlight), var(--color-highlight)) bottom / 100% 6px no-repeat,
    radial-gradient(circle at 20% 50%, rgba(1,2,152,.55), transparent 55%),
    radial-gradient(circle at 80% 50%, rgba(216,0,0,.35), transparent 55%),
    var(--fw-ink);
  color: #fff;
}
.theme-matchday .block-ticker.is-slanted .ticker-track { animation-name: ticker-scroll; }
.theme-matchday .block-ticker.is-slanted .ticker-band { animation: fw-rock 9s ease-in-out infinite; transform-origin: 50% 50%; width: 104%; margin-left: -2%; }
.theme-matchday .ticker-set { font-family: var(--font-heading); font-weight: 800; font-size: clamp(1.6rem, 3.6vw, 2.9rem); letter-spacing: -.02em; gap: 1.6rem; line-height: 1.1; }
.theme-matchday .is-scrolling .ticker-set { padding-right: 1.6rem; }
.theme-matchday .ticker-item { color: #fff; white-space: nowrap; }
.theme-matchday .ticker-item:nth-child(4n) { color: transparent; -webkit-text-stroke: 2px #fff; }
.theme-matchday .ticker-item:nth-child(12n+6) { color: #FF5A5A; }
.theme-matchday .ticker-sep {
  display: inline-block !important; font-size: 0; width: .9em; height: .9em; min-width: 30px; min-height: 30px; opacity: 1; flex-shrink: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Ccircle cx='50' cy='50' r='46' fill='%23fff' stroke='%230A0C2B' stroke-width='4'/%3E%3Cpolygon points='50,32 66,44 60,63 40,63 34,44' fill='%230A0C2B'/%3E%3Cpath d='M50 32V6M66 44l24-8M60 63l16 23M40 63L24 86M34 44l-24-8' stroke='%230A0C2B' stroke-width='4'/%3E%3C/svg%3E") center / contain no-repeat;
  animation: fw-roll 2.4s linear infinite;
}
.theme-matchday .is-scrolling .ticker-track { animation-duration: 30s; }
.theme-matchday .is-scrolling:hover .ticker-track { animation-play-state: running; animation-duration: 14s; }
.theme-matchday .block-ticker.ticker-light .ticker-band { background: #fff; color: var(--fw-ink); }
.theme-matchday .ticker-light .ticker-item { color: var(--fw-ink); }
.theme-matchday .ticker-light .ticker-item:nth-child(4n) { color: transparent; -webkit-text-stroke: 2px var(--fw-ink); }
@keyframes fw-rock { 0%, 100% { transform: rotate(-1.6deg); } 50% { transform: rotate(1.2deg); } }
@keyframes fw-roll { from { transform: rotate(0); } to { transform: rotate(-360deg); } }
@media (max-width: 720px) { .theme-matchday .block-ticker .ticker-band { padding: 1rem 0; } .theme-matchday .ticker-item:nth-child(4n) { -webkit-text-stroke-width: 1.5px; } }
.theme-matchday .block-ticker + .block { padding-top: 5rem; }

/* ---- Twin text: the two game cards (Blue game, Red game) ---- */
.theme-matchday .block-twin-text { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
.theme-matchday .block-twin-text > div {
  position: relative; overflow: hidden; border-radius: 30px; padding: 2.75rem; color: #fff;
  transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s;
}
.theme-matchday .block-twin-text > div:hover { transform: translateY(-8px); box-shadow: 0 26px 50px rgba(0,0,40,.2); }
.theme-matchday .block-twin-text > div:first-child { background: var(--fw-blue); }
.theme-matchday .block-twin-text > div:last-child { background: var(--fw-red); }
.theme-matchday .block-twin-text > div::after {
  position: absolute; right: .3rem; bottom: -2.2rem; font-family: var(--font-heading); font-weight: 800;
  font-size: 15rem; line-height: 1; color: rgba(255,255,255,.09); pointer-events: none; animation: fw-drift 7s ease-in-out infinite;
}
.theme-matchday .block-twin-text > div:first-child::after { content: '10'; }
.theme-matchday .block-twin-text > div:last-child::after { content: '\B1 3'; animation-delay: -3s; }
.theme-matchday .block-twin-text h3 { font-size: clamp(2rem, 3.4vw, 2.8rem); color: #fff; margin-bottom: .8rem; }
.theme-matchday .block-twin-text p, .theme-matchday .block-twin-text li { color: rgba(255,255,255,.93); font-size: 1.05rem; }
.theme-matchday .block-twin-text ul { list-style: none; padding: 0; margin: 0 0 1.6rem; display: grid; gap: .45rem; font-weight: 700; }
.theme-matchday .block-twin-text ul li::before { content: '\2713'; margin-right: .5rem; }
.theme-matchday .block-twin-text .fw-tag { display: inline-block; background: rgba(255,255,255,.18); font-weight: 800; font-size: .82rem; padding: .3rem .8rem; border-radius: 999px; margin-bottom: 1rem; }
.theme-matchday .block-twin-text a.btn { background: #fff; position: relative; z-index: 1; }
.theme-matchday .block-twin-text > div:first-child a.btn { color: var(--fw-blue); }
.theme-matchday .block-twin-text > div:last-child a.btn { color: #B30000; }

/* ---- Steps ---- */
.theme-matchday .block-steps.steps-light .step {
  background: #fff; border: 1px solid var(--color-line); border-radius: 24px; padding: 2rem;
  transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s;
}
.theme-matchday .block-steps .step:hover { transform: translateY(-8px); box-shadow: 0 24px 46px rgba(0,0,40,.12); }
.theme-matchday .step-num {
  width: 60px; height: 60px; border-radius: 18px; display: flex; align-items: center; justify-content: center;
  background: var(--fw-blue); color: #fff; font-size: 1.5rem; margin-bottom: .8rem;
}
.theme-matchday .step:nth-child(2n) .step-num { background: var(--fw-red); }
.theme-matchday .step-title { font-family: var(--font-heading); font-weight: 800; font-size: 1.45rem; }
.theme-matchday .step-text { color: var(--fw-muted); opacity: 1; font-size: 1rem; line-height: 1.6; }
.theme-matchday .block-steps.steps-dark { background: var(--fw-ink); }
.theme-matchday .steps-dark .step-num { color: #fff; }

/* ---- Image + text (e.g. private leagues) ---- */
.theme-matchday .block-image-text { gap: 3.5rem; }
.theme-matchday .block-image-text img { border-radius: 28px; box-shadow: 0 26px 50px rgba(0,0,40,.16); transition: transform .4s cubic-bezier(.2,.8,.2,1); }
.theme-matchday .block-image-text:hover img { transform: rotate(-1deg) scale(1.02); }
.theme-matchday .block-image-text h2 { margin-bottom: .8rem; }
.theme-matchday .block-image-text .block-copy p { color: #3A3F5A; font-size: 1.08rem; }

/* ---- Text pages ---- */
.theme-matchday .block-text { max-width: 860px; margin: 0 auto; padding-left: 1.5rem; padding-right: 1.5rem; font-size: 1.08rem; }
.theme-matchday .block-text h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); margin-top: 1.6rem; }
.theme-matchday .block-text a { color: var(--fw-blue); font-weight: 700; }
.theme-matchday .block-text img { max-width: 100%; height: auto; border-radius: 18px; }

/* ---- Stats ---- */
.theme-matchday .block-stats-band { background: #fff; }
.theme-matchday .stat-value { font-family: var(--font-heading); color: var(--fw-blue); }

/* ---- Latest posts / blog cards ---- */
.theme-matchday .post-card, .theme-matchday .blog-card {
  background: #fff; border: 1px solid var(--color-line); border-radius: 24px; overflow: hidden;
  transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s, border-color .3s;
}
.theme-matchday .post-card:hover, .theme-matchday .blog-card:hover { transform: translateY(-8px); box-shadow: 0 24px 46px rgba(0,0,40,.16); border-color: var(--fw-blue); }
.theme-matchday .post-card-media img, .theme-matchday .blog-card-media img { transition: transform .5s ease; }
.theme-matchday .post-card:hover .post-card-media img, .theme-matchday .blog-card:hover .blog-card-media img { transform: scale(1.06); }
.theme-matchday .post-card-title { font-family: var(--font-heading); font-weight: 700; font-size: 1.2rem; line-height: 1.3; padding: 0 1.4rem 1.4rem; }
.theme-matchday .post-card-date { padding: 1.2rem 1.4rem .3rem; color: var(--fw-muted); font-size: .9rem; }
.theme-matchday .post-img-empty { background: var(--fw-blue); }
.theme-matchday .post-card:nth-child(3n+2) .post-img-empty { background: var(--fw-red); }
.theme-matchday .blog-card { padding-bottom: 1.4rem; }
.theme-matchday .blog-card h3, .theme-matchday .blog-card p, .theme-matchday .blog-card-meta { padding-left: 1.4rem; padding-right: 1.4rem; }
.theme-matchday .blog-card h3 { font-size: 1.25rem; line-height: 1.3; }
.theme-matchday .blog-card p { color: var(--fw-muted); }
.theme-matchday .card-corner-badge { background: var(--fw-red); color: #fff; border-radius: 999px; font-weight: 800; }
.theme-matchday .sidebar-box { background: #fff; border: 1px solid var(--color-line); border-radius: 22px; }
.theme-matchday .sidebar-box h3 { font-size: 1.2rem; }
.theme-matchday .sidebar-cat-list a:hover { color: var(--fw-red); }

/* Post page: comfortable long-read text */
.theme-matchday .block-post-detail article h1 { font-size: clamp(2rem, 4vw, 3.2rem); }
.theme-matchday .post-hero-image { border-radius: 26px; }
.theme-matchday .post-body { font-size: 1.12rem; line-height: 1.75; color: #1E2140; }
.theme-matchday .post-body h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); margin-top: 2.2rem; }
.theme-matchday .post-body img { max-width: 100%; height: auto; border-radius: 18px; margin: 1rem 0; }
.theme-matchday .post-body a { color: var(--fw-blue); font-weight: 700; }
.theme-matchday .post-body blockquote { margin: 2rem 0; padding: 1.6rem 2rem; background: #fff; border-radius: 22px; border: 1px solid var(--color-line); font-family: var(--font-heading); font-size: 1.4rem; color: var(--fw-blue); }

/* Reading progress bar on posts (browsers that support scroll-driven animation) */
@supports (animation-timeline: scroll()) {
  .theme-matchday .block-post-detail::before {
    content: ''; position: fixed; top: 0; left: 0; right: 0; height: 5px; z-index: 200;
    background: var(--fw-red); transform-origin: left; animation: fw-grow linear both; animation-timeline: scroll(root);
  }
}

/* ---- FAQs ---- */
.theme-matchday .block-faqs details.faq-item { background: #fff; border: 1px solid var(--color-line); border-radius: 18px; transition: box-shadow .25s; }
.theme-matchday .block-faqs details.faq-item:hover { box-shadow: 0 10px 26px rgba(0,0,40,.08); }
.theme-matchday .faq-q { font-weight: 800; font-size: 1.08rem; }
.theme-matchday .faq-chevron { color: var(--fw-red); }
.theme-matchday .block-faqs { max-width: 900px; margin: 0 auto; padding-left: 1.5rem; padding-right: 1.5rem; }

/* ---- Call-to-action band (red) ---- */
.theme-matchday .block-cta-scroller, .theme-matchday .block-single-cta {
  background: var(--fw-red); border-radius: 0; text-align: left;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem 2rem; flex-wrap: wrap;
  padding: 3.5rem var(--fw-gutter); overflow: hidden; position: relative;
}
.theme-matchday .block-cta-scroller::after {
  content: ''; position: absolute; right: 8%; top: -60px; width: 220px; height: 220px; opacity: .14; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Ccircle cx='50' cy='50' r='46' fill='none' stroke='%23fff' stroke-width='4'/%3E%3Cpolygon points='50,32 66,44 60,63 40,63 34,44' fill='%23fff'/%3E%3Cpath d='M50 32V6M66 44l24-8M60 63l16 23M40 63L24 86M34 44l-24-8' stroke='%23fff' stroke-width='4'/%3E%3C/svg%3E") center / contain no-repeat;
  animation: fw-spin 18s linear infinite;
}
.theme-matchday .block-cta-scroller h2 { margin: 0; font-size: clamp(1.8rem, 3.4vw, 3rem); position: relative; z-index: 1; }
.theme-matchday .block-cta-scroller .cta-text { color: rgba(255,255,255,.92); margin: .4rem 0 0; }
.theme-matchday .block-cta-scroller .btn.btn-primary, .theme-matchday .block-single-cta .btn.btn-primary {
  background: #fff; color: #B30000; padding: 1.05rem 2.1rem; font-size: 1.08rem; position: relative; z-index: 1;
}
.theme-matchday .block-single-cta { justify-content: center; background: transparent; }
.theme-matchday .block-single-cta .btn.btn-primary { background: var(--fw-red); color: #fff; animation: fw-pulse 2s ease-in-out infinite; }

/* ---- Contact form ---- */
.theme-matchday .cf-form input, .theme-matchday .cf-form textarea, .theme-matchday .cf-form select { border-radius: 14px; border: 2px solid var(--color-line); }
.theme-matchday .cf-form input:focus, .theme-matchday .cf-form textarea:focus { outline: none; border-color: var(--fw-blue); box-shadow: 0 0 0 4px rgba(1,2,152,.12); }

/* ---- Footer (deep blue) ---- */
.theme-matchday .site-footer { background: var(--fw-blue-deep); color: rgba(255,255,255,.85); border-top: 0; padding: 0 var(--fw-gutter) 1.8rem; }
.theme-matchday .footer-columns { padding-top: 3.5rem; max-width: none; }
.theme-matchday .footer-col-heading::after { background: var(--color-highlight); }
.theme-matchday .footer-nav a::before { content: none; }
.theme-matchday .footer-nav a:hover { color: #fff; opacity: 1; }
.theme-matchday .footer-contact-line { color: #fff; }
.theme-matchday .footer-copyright { text-align: left; max-width: none; }
.theme-matchday .back-to-top { background: var(--fw-red); color: #fff; }

/* ---- Keyframes ---- */
@keyframes fw-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(216,0,0,.55); } 60% { box-shadow: 0 0 0 14px rgba(216,0,0,0); } }
@keyframes fw-pulse-green { 0%, 100% { box-shadow: 0 0 0 0 rgba(92,240,138,.7); } 60% { box-shadow: 0 0 0 8px rgba(92,240,138,0); } }
@keyframes fw-rise { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }
@keyframes fw-float { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-16px) rotate(10deg); } }
@keyframes fw-spin { to { transform: rotate(360deg); } }
@keyframes fw-drift { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes fw-grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes fw-wiggle { 0%, 82%, 100% { transform: rotate(-3deg); } 86% { transform: rotate(4deg) scale(1.08); } 90% { transform: rotate(-6deg); } 94% { transform: rotate(2deg); } }

/* ---- Phones ---- */
@media (max-width: 900px) {
  .theme-matchday .main-nav { margin-left: 0; }
  .theme-matchday .main-nav > a::after { display: none; }
  .theme-matchday .block-twin-text { grid-template-columns: 1fr; }
  .theme-matchday .block-banner-bold .bold-inner::after { width: 70px; height: 70px; right: 0; top: -30px; }
}
@media (max-width: 720px) {
  .theme-matchday .logo img { height: 40px; }
  .theme-matchday .block { padding: 3.25rem 1.25rem; }
  .theme-matchday .block-banner.block-banner-bold { padding: 3.5rem 1.25rem 5rem; }
  .theme-matchday .block-twin-text > div { padding: 2rem; }
  .theme-matchday .block-twin-text > div::after { font-size: 10rem; }
  .theme-matchday .block-cta-scroller { padding: 2.75rem 1.25rem; }
}

/* ---- Reduced motion: everything still shows, nothing moves ---- */
@media (prefers-reduced-motion: reduce) {
  .theme-matchday *, .theme-matchday *::before, .theme-matchday *::after { animation: none !important; transition: none !important; }
  .theme-matchday.js-scroll-anim .block { opacity: 1; transform: none; }
}

/* Inner-page title banner: solid blue, no gradient */
.theme-matchday .page-title-banner { background-image: none; }
.theme-matchday .page-title-banner::before, .theme-matchday .page-title-banner::after { display: none; }

/* ---- News listing: page links ---- */
.theme-matchday .blog-pagination { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .5rem; margin-top: 2.5rem; }
.theme-matchday .blog-page {
  min-width: 46px; height: 46px; padding: 0 1rem; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center;
  background: #fff; border: 1px solid var(--color-line); color: var(--fw-ink); font-weight: 800; text-decoration: none;
  transition: transform .2s var(--motion-easing), border-color .2s;
}
.theme-matchday .blog-page:hover { transform: translateY(-2px); border-color: var(--fw-blue); color: var(--fw-blue); }
.theme-matchday .blog-page.is-active { background: var(--fw-ink); border-color: var(--fw-ink); color: #fff; }
.theme-matchday .blog-page-gap { padding: 0 .25rem; color: var(--fw-muted); font-weight: 800; }

/* When the ticker sits right under the hero, the ticker's red rail is the hero's edge */
.theme-matchday .block-banner-bold:has(+ .block-ticker)::before,
.theme-matchday .fw-hero:has(+ .block-ticker)::before { display: none; }
.theme-matchday .block-banner-bold:has(+ .block-ticker) { padding-bottom: 5.5rem; }

/* ---- Blog listing: use the full page width, 4 across on desktop, sidebar on the right ---- */
.theme-matchday .block-blog-listing { max-width: none; margin: 0; padding-left: clamp(1.25rem, 3vw, 3rem); padding-right: clamp(1.25rem, 3vw, 3rem); }
.theme-matchday .block-blog-listing .content-with-sidebar { max-width: 1560px; grid-template-columns: minmax(0, 1fr) 300px; gap: 2.5rem; }
.theme-matchday .block-blog-listing .blog-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; margin-top: 0; }
.theme-matchday .block-blog-listing .settings-desc + .blog-grid { margin-top: 1.25rem; }
.theme-matchday .block-blog-listing .blog-card { display: flex; flex-direction: column; }
.theme-matchday .block-blog-listing .blog-card h3 { font-size: 1.08rem; line-height: 1.35; padding-left: 1.15rem; padding-right: 1.15rem; }
.theme-matchday .block-blog-listing .blog-card p { font-size: .92rem; padding-left: 1.15rem; padding-right: 1.15rem; }
.theme-matchday .block-blog-listing .blog-card-meta { padding-left: 1.15rem; padding-right: 1.15rem; display: flex; flex-wrap: wrap; gap: .25rem .6rem; font-size: .78rem; }
.theme-matchday .block-blog-listing aside { position: sticky; top: 100px; }
@media (max-width: 1400px) { .theme-matchday .block-blog-listing .blog-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 1120px) {
  .theme-matchday .block-blog-listing .content-with-sidebar { grid-template-columns: minmax(0, 1fr) 260px; gap: 1.75rem; }
  .theme-matchday .block-blog-listing .blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .theme-matchday .block-blog-listing .content-with-sidebar { grid-template-columns: 1fr; }
  .theme-matchday .block-blog-listing aside { position: static; }
}
@media (max-width: 560px) { .theme-matchday .block-blog-listing .blog-grid { grid-template-columns: 1fr; } }
.theme-matchday .block-text + .block-blog-listing { padding-top: 1rem; }
.theme-matchday .block-blog-listing .blog-card-media img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }

/* ---- Blog listing on phones: compact search + category dropdown at the top, sidebar hidden ---- */
.theme-matchday .blog-mobile-bar { display: none; }
@media (max-width: 860px) {
  .theme-matchday .blog-mobile-bar { display: flex; gap: .6rem; margin: 0 0 1.4rem; }
  .theme-matchday .block-blog-listing aside { display: none; }
  .theme-matchday .blog-mobile-search { flex: 1.2; display: flex; min-width: 0; background: #fff; border: 1.5px solid var(--color-line); border-radius: 999px; padding: .2rem .2rem .2rem .9rem; }
  .theme-matchday .blog-mobile-search input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; font-size: .95rem; outline: none; }
  .theme-matchday .blog-mobile-search button { width: 38px; height: 38px; flex-shrink: 0; border: 0; border-radius: 50%; background: var(--fw-red); color: #fff; display: grid; place-items: center; cursor: pointer; }
  .theme-matchday .blog-mobile-cats { flex: 1; min-width: 0; margin: 0; }
  .theme-matchday .blog-mobile-cats select { width: 100%; height: 100%; min-height: 44px; padding: 0 2.2rem 0 1rem; border: 1.5px solid var(--color-line); border-radius: 999px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23010298' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 1rem center; appearance: none; -webkit-appearance: none; font: inherit; font-size: .95rem; font-weight: 700; color: var(--fw-ink); }
}
@media (max-width: 420px) {
  .theme-matchday .blog-mobile-bar { flex-direction: column; }
  .theme-matchday .blog-mobile-cats select { min-height: 46px; }
}

/* ---- Blog post: wider layout, title first, full-width hero image ---- */
.theme-matchday .block-post-detail { max-width: none; margin: 0; padding-left: clamp(1.25rem, 3vw, 3rem); padding-right: clamp(1.25rem, 3vw, 3rem); }
.theme-matchday .block-post-detail .content-with-sidebar { max-width: 1240px; grid-template-columns: minmax(0, 1fr) 320px; gap: 3.5rem; }
.theme-matchday .block-post-detail article { display: flex; flex-direction: column; min-width: 0; }
.theme-matchday .block-post-detail article h1 { order: -2; margin: 0 0 1rem; line-height: 1.1; letter-spacing: -.02em; font-size: clamp(2rem, 3.6vw, 3.1rem); }
.theme-matchday .block-post-detail .post-meta-row { order: -1; margin-bottom: 1.6rem; gap: .5rem 1.4rem; }
.theme-matchday .block-post-detail .post-hero-image { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; margin: 0 0 2rem; box-shadow: 0 24px 50px -24px rgba(0,0,60,.35); }
.theme-matchday .block-post-detail .post-body { max-width: 760px; }
.theme-matchday .block-post-detail aside { position: sticky; top: 100px; }
@media (max-width: 1000px) { .theme-matchday .block-post-detail .content-with-sidebar { grid-template-columns: minmax(0, 1fr) 270px; gap: 2rem; } }
@media (max-width: 860px) {
  .theme-matchday .block-post-detail .content-with-sidebar { grid-template-columns: 1fr; }
  .theme-matchday .block-post-detail aside { position: static; }
  .theme-matchday .block-post-detail .post-hero-image { border-radius: 18px; }
}
/* The title already shows in the banner above, so don't repeat it over the image */
.theme-matchday .block-post-detail article > h1 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---- Video block: full-width section with the player centred, so the theme's side padding can't squeeze it ---- */
.theme-matchday .block-video-embed, .theme-matchday .block-testimonial, .theme-matchday .block-pricing-table { max-width: none; margin: 0; }
.theme-matchday .block-video-embed > * { max-width: 1120px; margin-left: auto; margin-right: auto; }
.theme-matchday .block-video-embed .video-own-head { max-width: 760px; margin-bottom: 2rem; }
.theme-matchday .block-video-embed .video-own-head h2 { font-size: clamp(2rem, 3.6vw, 3rem); }
.theme-matchday .block-video-embed .video-own-head p { font-size: 1.12rem; color: var(--fw-muted); opacity: 1; }
.theme-matchday .block-video-embed .video-own-frame { border-radius: 26px; background: var(--fw-ink); box-shadow: 0 40px 80px -30px rgba(0,0,60,.45); }
.theme-matchday .block-video-embed .video-own-frame video { aspect-ratio: 16 / 9; }
.theme-matchday .block-testimonial > *, .theme-matchday .block-pricing-table > * { max-width: 1100px; }
