/*
Theme Name: FootballFines
Theme URI: https://footballfines.com/
Author: FootballFines
Description: Responsive theme for FootballFines, connected to FootballFines Manager.
Version: 1.0.281
Text Domain: footballfines
*/

:root {
  --ff-bg: #f4f6f8;
  --ff-surface: #ffffff;
  --ff-text: #172033;
  --ff-muted: #687386;
  --ff-border: #dfe4ea;
  --ff-primary: #153e75;
  --ff-primary-2: #2367ad;
  --ff-accent: #efb810;
  --ff-danger: #b42318;
  --ff-radius: 14px;
  --ff-shadow: 0 10px 30px rgba(23, 32, 51, .08);
  --ff-width: 1240px;
  --ff-block-gap: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ff-text); background: var(--ff-bg); font-family: "Fredoka", sans-serif; font-size: .86rem; line-height: 1.6; }
h1, h2, h3, h4, h5, h6 { font-family: "Sedgwick Ave Display", cursive; font-weight: 400; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--ff-primary-2); text-decoration: none; }
a:focus { color: var(--ff-primary); }
button, input, select, textarea { font: inherit; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link:focus { clip: auto; width: auto; height: auto; margin: 8px; padding: 10px 14px; z-index: 9999; background: #fff; }

.ff-container { width: min(calc(100% - 32px), var(--ff-width)); margin-inline: auto; }
.ff-site-header { position: sticky; top: 0; z-index: 100; color: var(--ff-text); border-bottom: 1px solid var(--ff-border); background: rgba(244, 246, 248, .97); }
.admin-bar .ff-site-header { top: 32px; }
.ff-header-inner { min-height: 96px; display: flex; align-items: center; gap: 28px; }
.ff-brand { display: inline-flex; align-items: center; color: var(--ff-text); }
.ff-site-logo { width: 96px; height: auto; }
.ff-primary-nav { margin-left: auto; }
.ff-menu { display: flex; align-items: center; gap: 6px; list-style: none; padding: 0; margin: 0; }
.ff-menu a { display: block; padding: 10px 13px; border-radius: 9px; color: #111; font-family: "Sedgwick Ave Display", cursive; font-size: 1rem; font-weight: 400; }
.ff-menu a:focus, .ff-menu .current-menu-item > a { color: #111; background: transparent; }
.ff-menu-toggle { display: none; margin-left: auto; padding: 9px 12px; color: var(--ff-text); border: 1px solid var(--ff-border); border-radius: 9px; background: transparent; cursor: pointer; }

.ff-main { padding: 20px 0 56px; }
.ff-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; align-items: start; }
.ff-content { min-width: 0; display: flex; flex-direction: column; gap: var(--ff-block-gap); }
.ff-sidebar { position: sticky; top: 116px; display: grid; min-width: 0; max-width: 100%; gap: var(--ff-block-gap); }
.admin-bar .ff-sidebar { top: 148px; }
.ff-panel, .widget { padding: 22px; border: 1px solid var(--ff-border); border-radius: var(--ff-radius); background: var(--ff-surface); box-shadow: var(--ff-shadow); }
.ff-sidebar .widget { min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
.ff-sidebar .search-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
.ff-sidebar .search-form label, .ff-sidebar .search-field { min-width: 0; width: 100%; }
.ff-sidebar .search-submit { max-width: 100%; }
.ff-sidebar-search .ff-sidebar-stat-head { margin-bottom: 14px; }
.ff-sidebar-search-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
.ff-sidebar-search-form input { min-width: 0; width: 100%; padding: 10px 12px; color: var(--ff-text); border: 1px solid var(--ff-border); border-radius: 9px; background: #fff; }
.ff-sidebar-search-form input:focus, .ff-sidebar-search-form input:focus-visible { outline: 0; border-color: var(--ff-border); box-shadow: none; }
.ff-sidebar-search-form input::-webkit-search-cancel-button { opacity: .55; filter: grayscale(1); }
.ff-sidebar-search-form button { display: grid; place-items: center; width: 46px; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; cursor: pointer; }
.ff-sidebar-search-form button:focus, .ff-sidebar-search-form button:focus-visible { outline: 0; box-shadow: none; }
.ff-sidebar-search-form button img { width: 28px; height: 28px; object-fit: contain; }
.ff-search-section + .ff-search-section { margin-top: 28px; }
.ff-search-type { display: inline-block; margin-bottom: 5px; color: var(--ff-muted); font-size: .75rem; }
.ff-search-card-text { margin: 7px 0 0; color: var(--ff-muted); }
.ff-search-club-logo { flex: 0 0 auto; width: 42px; height: 42px; object-fit: contain; }
.ff-panel-title, .widget-title { margin: 0 0 14px; font-size: 1.1rem; }
.widget ul { list-style: none; padding: 0; margin: 0; }
.widget li + li { margin-top: 8px; }
.ff-sidebar-stat-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.ff-sidebar-stat-head > div { min-width: 0; }
.ff-sidebar-stat-head .ff-panel-title { margin: 0; }
.ff-sidebar-stat-head img { flex: 0 0 auto; width: 28px; height: 28px; object-fit: contain; }
.ff-sidebar-stat-head .ff-sidebar-country-flag { flex-basis: auto; width: auto; max-width: 28px; height: auto; max-height: 28px; border: 1px solid var(--ff-border); border-radius: 2px; }
.ff-sidebar-stat-season { margin-top: 2px; color: var(--ff-muted); font-size: .78rem; }
.ff-sidebar-stat-subject { margin-top: 2px; color: var(--ff-text); font-size: .86rem; }
.ff-sidebar-referenced-document .ff-sidebar-document-link { color: var(--ff-primary-2); }
.ff-sidebar-stat-meta { margin-top: 4px; color: var(--ff-muted); font-size: .76rem; }
.ff-sidebar-match-logos { display: flex; flex: 0 0 auto; gap: 5px; }
.ff-sidebar-match-logos img { width: 28px; height: 28px; object-fit: contain; }
.ff-sidebar-stat-values { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; padding-top: 12px; color: var(--ff-muted); border-top: 1px solid var(--ff-border); font-size: .8rem; }
.ff-sidebar-stat-values span:last-child { color: var(--ff-danger); }
.ff-sidebar-stat-values .ff-sidebar-sanction-value { color: var(--ff-muted); }
.ff-sidebar-stat-values--amount { justify-content: flex-end; }
.ff-sidebar-stat-values.ff-sidebar-stat-values--amount .ff-sidebar-sanction-value { color: var(--ff-muted); }
.ff-sidebar-total-list { list-style: none; padding: 0; margin: 14px 0 0; }
.ff-sidebar-total-list li { padding: 10px 0; border-top: 1px solid var(--ff-border); }
.ff-sidebar-total-name { display: block; margin-bottom: 4px; color: var(--ff-text); }
.ff-sidebar-total-list li > div { display: flex; justify-content: space-between; gap: 10px; color: var(--ff-muted); font-size: .76rem; }
.ff-sidebar-total-list li > div span:last-child { color: var(--ff-danger); }
.ff-sidebar-grand-total { margin-top: 4px; padding-top: 12px; border-top: 2px solid var(--ff-border); }
.ff-sidebar-grand-total > div { display: flex; justify-content: space-between; gap: 10px; margin-top: 4px; color: var(--ff-muted); font-size: .8rem; }
.ff-sidebar-grand-total > div span:last-child { color: var(--ff-danger); }
.ff-match-sidebar-list { list-style: none; padding: 0; margin: 14px 0 0; }
.ff-match-sidebar-list li { display: flex; align-items: center; gap: 9px; padding: 10px 0; border-top: 1px solid var(--ff-border); }
.ff-match-sidebar-list img { flex: 0 0 28px; width: 28px; height: 28px; object-fit: contain; }
.ff-match-sidebar-list-name { min-width: 0; overflow-wrap: anywhere; }
.ff-match-sidebar-list-amount { margin-left: auto; color: var(--ff-danger); white-space: nowrap; }
.ff-season-competition-list { list-style: none; padding: 0; margin: 14px 0 0; }
.ff-season-competition-list li { padding: 10px 0; border-top: 1px solid var(--ff-border); }
.ff-season-competition-name { display: flex; align-items: center; gap: 9px; min-width: 0; color: var(--ff-text); }
.ff-season-competition-name img { flex: 0 0 28px; width: 28px; height: 28px; object-fit: contain; }
.ff-season-competition-name span { min-width: 0; overflow-wrap: anywhere; }
.ff-season-total-name img { margin-left: auto; }
.ff-season-competition-values { display: flex; justify-content: space-between; gap: 10px; margin-top: 5px; color: var(--ff-muted); font-size: .76rem; }
.ff-season-competition-values span:last-child { color: var(--ff-danger); white-space: nowrap; }
.ff-sidebar-document-list { list-style: none; padding: 0; margin: 14px 0 0; }
.ff-sidebar-document-list li { padding: 10px 0; border-top: 1px solid var(--ff-border); }
.ff-sidebar-document-list a { display: block; color: var(--ff-primary-2); }
.ff-sidebar-document-list span { display: block; margin-top: 2px; color: var(--ff-muted); font-size: .76rem; }
.ff-sidebar-all-documents { display: block; margin-top: 12px; color: var(--ff-primary-2); font-size: .8rem; text-align: right; }
.ff-sidebar-document-sanction-list { list-style: none; padding: 0; margin: 14px 0 0; }
.ff-sidebar-document-sanction-list li { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 10px 0; border-top: 1px solid var(--ff-border); }
.ff-sidebar-document-sanction-list li span:first-child { min-width: 0; overflow-wrap: anywhere; }
.ff-sidebar-document-sanction-list li span:last-child { flex: 0 0 auto; color: var(--ff-muted); font-size: .8rem; }
.ff-sidebar-document-sanction-list--fines li span:last-child { color: var(--ff-danger); }
.ff-sidebar-article-list { list-style: none; padding: 0; margin: 14px 0 0; }
.ff-sidebar-article-list li { padding: 10px 0; border-top: 1px solid var(--ff-border); }
.ff-sidebar-article-list a { display: block; color: var(--ff-text); }
.ff-sidebar-article-name { display: block; color: var(--ff-primary-2); overflow-wrap: anywhere; }
.ff-sidebar-article-meta { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; margin-top: 4px; color: var(--ff-muted); font-size: .76rem; }
.ff-sidebar-article-meta span:first-child { min-width: 0; overflow-wrap: anywhere; }
.ff-sidebar-article-meta span:last-child { flex: 0 0 auto; white-space: nowrap; }

.ff-kicker { margin: 0 0 8px; color: var(--ff-accent); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.ff-page-header h1 { margin: 0; line-height: 1.15; font-size: clamp(2rem, 5vw, 3.7rem); }
.ff-page-header { margin-bottom: 24px; }
.ff-page-header h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
.ff-page-header p { margin: 8px 0 0; color: var(--ff-muted); }
.ff-page-header--compact h1 { font-size: 1.1rem; line-height: 1.3; }
.ff-season-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 18px 22px; }
.ff-document-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ff-season-summary-item { display: flex; align-items: center; justify-content: center; gap: 12px; min-width: 0; padding: 4px 18px; }
.ff-season-summary-item img { flex: 0 0 30px; width: 30px; height: 30px; object-fit: contain; }
.ff-season-summary-item > div { width: 140px; min-width: 0; }
.ff-season-summary-label, .ff-season-summary-value { display: block; }
.ff-season-summary-label { color: var(--ff-muted); font-size: .86rem; }
.ff-season-summary-value { color: var(--ff-text); font-size: .86rem; }
.ff-season-summary-value--fine { color: var(--ff-danger); }

.ff-section { margin-top: 34px; }
.ff-content > .ff-section:first-child { margin-top: 0; }
.ff-section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.ff-section-head h2 { margin: 0; font-size: 1.1rem; line-height: 1.3; }
.ff-section-head p { margin: 3px 0 0; color: var(--ff-muted); font-size: .86rem; }
.ff-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.ff-grid--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ff-card { display: flex; flex-direction: column; min-width: 0; padding: 20px; border: 1px solid var(--ff-border); border-radius: var(--ff-radius); background: var(--ff-surface); box-shadow: 0 5px 18px rgba(23,32,51,.055); }
.ff-card-link { display: block; min-width: 0; height: 100%; color: var(--ff-primary-2); }
.ff-card-link .ff-card { height: 100%; }
.ff-card h2, .ff-card h3, .ff-card h4, .ff-card h5, .ff-card h6 { margin: 0; font-family: "Fredoka", sans-serif; line-height: 1.3; font-size: .86rem; }
.ff-card-meta { margin-top: 8px; color: var(--ff-muted); font-size: .9rem; }
.ff-card-title-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-width: 0; }
.ff-card-title-row h3 { min-width: 0; }
.ff-card-title-icon { flex: 0 0 auto; width: 32px; height: 32px; object-fit: contain; }
.ff-card-title-icon.ff-country-flag { flex-basis: auto; width: auto; max-width: 32px; height: auto; max-height: 32px; border: 1px solid var(--ff-border); border-radius: 2px; }
.ff-match-sidebar-list img.ff-country-flag { flex-basis: auto; width: auto; max-width: 28px; height: auto; max-height: 28px; border: 1px solid var(--ff-border); border-radius: 2px; }
.ff-club-card-icon { width: 32px; height: 32px; }
.ff-club-totals { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ff-card-fine-total { color: var(--ff-danger); }
.ff-club-sanction-card h3 { font-family: "Fredoka", sans-serif; font-size: .86rem; }
.ff-club-competition-season { margin-top: 6px; color: var(--ff-muted); font-size: .86rem; }
.ff-club-sanction-totals { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 16px; color: var(--ff-muted); font-size: .86rem; }
.ff-club-sanction-totals span:last-child { color: var(--ff-danger); white-space: nowrap; }
.ff-club-sanction-totals--sanctions-only span:last-child { color: var(--ff-muted); }
.ff-card-value--hidden { visibility: hidden; }
.ff-document-card-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 5px 14px; margin-top: 14px; color: var(--ff-muted); font-size: .8rem; }
.ff-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 16px; }
.ff-logo-row { display: flex; align-items: center; gap: 13px; }
.ff-logo { flex: 0 0 auto; width: 52px; height: 52px; object-fit: contain; padding: 4px; border-radius: 10px; }
.ff-logo--large { width: 84px; height: 84px; }
.ff-badge { display: inline-flex; align-items: center; padding: 4px 9px; color: var(--ff-primary); border-radius: 999px; background: #eaf2fb; font-size: .78rem; font-weight: 600; }
.ff-badge--fine { color: #8a2c22; background: #fef0ee; }
.ff-amount { color: var(--ff-danger); font-weight: 700; }

.ff-match-card { gap: 15px; }
.ff-match-teams { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 12px; }
.ff-team { min-width: 0; text-align: center; font-weight: 600; }
.ff-card.ff-match-card .ff-match-teams { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); }
.ff-card.ff-match-card .ff-team { font-size: .86rem; font-weight: 400; }
.ff-card.ff-match-card .ff-team.ff-team--sanctioned { font-weight: 600; }
.ff-card-link .ff-match-card .ff-team span, .ff-match-competition-name { color: var(--ff-primary-2); }
.ff-card.ff-match-card .ff-team { display: flex; align-items: center; gap: 9px; }
.ff-card.ff-match-card .ff-team--home { justify-content: flex-start; text-align: left; }
.ff-card.ff-match-card .ff-team--away { justify-content: flex-end; text-align: right; }
.ff-card.ff-match-card .ff-logo { width: 36px; height: 36px; margin: 0; padding: 3px; }
.ff-card.ff-match-card .ff-sanction-count, .ff-card.ff-match-card .ff-amount { font-size: .86rem; font-weight: 400; }
.ff-card.ff-match-card .ff-sanction-count { color: var(--ff-muted); }
.ff-match-separator { color: var(--ff-muted); font-size: .86rem; }
.ff-team .ff-logo { margin: 0 auto 8px; }
.ff-score { min-width: 54px; padding: 7px 9px; text-align: center; border-radius: 9px; color: #fff; background: var(--ff-primary); font-weight: 700; }
.ff-match-meta { text-align: center; color: var(--ff-muted); font-size: .86rem; }

.ff-competition-sanctions-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.ff-competition-block { min-width: 0; padding: 20px; border: 1px solid var(--ff-border); border-radius: var(--ff-radius); background: var(--ff-surface); box-shadow: 0 5px 18px rgba(23,32,51,.055); }
.ff-competition-block-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 32px; margin-bottom: 12px; }
.ff-competition-block-title { min-width: 0; margin: 0; font-family: "Fredoka", sans-serif; font-size: .86rem; }
.ff-competition-block-icon { flex: 0 0 auto; width: 32px; height: 32px; object-fit: contain; }
.ff-competition-match-list { list-style: none; padding: 0; margin: 0; }
.ff-competition-match-row { display: grid; grid-template-columns: 88px minmax(0, 1fr); align-items: center; gap: 12px; min-width: 0; padding: 9px 0; border-top: 1px solid var(--ff-border); }
.ff-competition-match-row time { color: var(--ff-muted); font-size: .76rem; white-space: nowrap; }
.ff-compact-match { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 8px; min-width: 0; color: var(--ff-primary-2); font-size: .8rem; }
.ff-compact-team { display: flex; align-items: center; gap: 7px; min-width: 0; }
.ff-compact-team--away { justify-content: flex-end; text-align: right; }
.ff-compact-team span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ff-compact-team--sanctioned span { font-weight: 600; }
.ff-compact-team img { flex: 0 0 auto; width: 26px; height: 26px; object-fit: contain; padding: 2px; border-radius: 7px; }
.ff-compact-separator { color: var(--ff-muted); }
.ff-competition-block-empty { margin: 0; color: var(--ff-muted); font-size: .86rem; }

.ff-detail-header { display: flex; align-items: center; gap: 20px; margin-bottom: 22px; padding: 24px; color: var(--ff-text); border: 1px solid var(--ff-border); border-radius: var(--ff-radius); background: var(--ff-surface); box-shadow: var(--ff-shadow); }
.ff-detail-header h1 { margin: 0; line-height: 1.2; }
.ff-detail-header p { margin: 5px 0 0; color: var(--ff-muted); }
.ff-detail-header .ff-kicker { color: var(--ff-primary-2); }
.ff-detail-header .ff-logo { background: transparent; }
.fft-match-overview { display: block; width: 100%; }
.fft-match-competition { display: flex; align-items: center; justify-content: center; margin-bottom: 26px; color: var(--ff-muted); font-size: .86rem; text-align: center; }
.fft-match-competition-text { display: flex; align-items: center; flex-direction: column; }
.fft-match-season { display: block; color: var(--ff-muted); text-align: center; }
.fft-match-teams { display: grid; grid-template-columns: minmax(0, 1fr) 64px minmax(0, 1fr); align-items: center; gap: 24px; }
.fft-match-team { display: flex; align-items: center; gap: 12px; min-width: 0; font-size: .86rem; }
.fft-match-team--home { justify-content: flex-end; text-align: right; }
.fft-match-team--away { justify-content: flex-start; }
.fft-match-team img { flex: 0 0 48px; width: 48px; height: 48px; padding: 5px; object-fit: contain; border-radius: 12px; }
.fft-match-score { color: var(--ff-text); font-size: .86rem; text-align: center; }
.fft-match-context { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px 28px; margin-top: 24px; padding: 12px 0; color: var(--ff-muted); border-top: 1px solid var(--ff-border); border-bottom: 1px solid var(--ff-border); }
.fft-match-context strong { color: var(--ff-text); font-weight: 400; }
.fft-match-facts { display: grid; grid-template-columns: minmax(125px, .9fr) minmax(125px, .9fr) minmax(220px, 1.6fr) minmax(125px, .8fr); gap: 18px; width: 100%; margin-top: 22px; }
.fft-match-fact { display: flex; align-items: center; justify-content: flex-start; gap: 8px; min-width: 0; width: 100%; }
.fft-match-fact img { flex: 0 0 22px; width: 22px; height: 22px; object-fit: contain; filter: brightness(0) saturate(100%) invert(46%) sepia(12%) saturate(657%) hue-rotate(179deg) brightness(91%) contrast(88%); }
.fft-match-fact span { min-width: 0; overflow-wrap: break-word; color: var(--ff-muted); font-size: .86rem; }
.ff-facts { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; margin: 0; }
.ff-fact { padding: 14px; border-radius: 10px; background: #f5f7fa; }
.ff-fact dt { color: var(--ff-muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; }
.ff-fact dd { margin: 3px 0 0; font-weight: 600; }
.ff-sanctions { display: grid; gap: 12px; }
.ff-sanction { padding: 16px; border-left: 4px solid var(--ff-accent); border-radius: 8px; background: #f8fafc; }
.ff-sanction h3 { margin: 0 0 6px; font-size: 1rem; }
.ff-sanction p { margin: 4px 0; color: var(--ff-muted); }
.fft-sanction-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; align-items: stretch; }
.fft-sanction-club-column { display: flex; flex-direction: column; min-width: 0; }
.fft-sanction-club-column:first-child { padding-right: 18px; }
.fft-sanction-club-column + .fft-sanction-club-column { padding-left: 18px; border-left: 1px solid var(--ff-border); }
.fft-sanction-club { display: flex; align-items: center; gap: 10px; min-height: 48px; margin-bottom: 12px; color: var(--ff-text); font-size: .86rem; }
.fft-sanction-club--home { justify-content: flex-start; }
.fft-sanction-club--away { justify-content: flex-end; text-align: right; }
.fft-sanction-club img { flex: 0 0 42px; width: 42px; height: 42px; padding: 4px; object-fit: contain; }
.fft-sanction-title { margin-bottom: 6px; color: var(--ff-text); font-family: "Fredoka", sans-serif; font-size: .86rem; }
.fft-sanctions-panel .ff-sanctions { gap: 0; }
.fft-sanctions-panel .ff-sanction { padding: 16px 0; border: 0; border-top: 1px solid var(--ff-border); border-radius: 0; background: transparent; }
.fft-sanctions-panel .ff-sanction .ff-amount { color: var(--ff-danger); font-weight: 400; }
.fft-sanction-empty { padding: 16px 0; color: var(--ff-muted); border-top: 1px solid var(--ff-border); }
.fft-sanction-total { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 14px; color: var(--ff-muted); border-top: 2px solid var(--ff-border); font-size: .86rem; }
.fft-sanction-total span:last-child { color: var(--ff-danger); font-weight: 400; }
.ff-document-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.ff-document-actions a { padding: 8px 13px; border: 1px solid var(--ff-border); border-radius: 8px; color: var(--ff-primary-2); background: #fff; }
.ff-document-content { margin-top: 18px; }
.ff-document-section { scroll-margin-top: 130px; }
.ff-document-section + .ff-document-section { margin-top: 24px; }
.ff-document-section .ff-document-section { margin: 20px 0 0 18px; padding-left: 18px; border-left: 2px solid var(--ff-border); }
.ff-document-section h2, .ff-document-section h3, .ff-document-section h4, .ff-document-section h5, .ff-document-section h6 { margin: 0 0 10px; font-family: "Fredoka", sans-serif; font-size: 1.1rem; }
.ff-document-section-content { color: var(--ff-text); line-height: 1.7; }
.ff-document-section-content > :first-child { margin-top: 0; }
.ff-document-section-content > :last-child { margin-bottom: 0; }

.ff-pagination { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 24px; }
.ff-pagination a, .ff-pagination span { display: grid; place-items: center; min-width: 38px; height: 38px; padding: 0 10px; border: 1px solid var(--ff-border); border-radius: 8px; background: #fff; }
.ff-pagination .current { color: var(--ff-muted); border-color: rgba(104, 115, 134, .35); background: rgba(104, 115, 134, .14); }
.ff-empty { padding: 28px; text-align: center; color: var(--ff-muted); border: 1px solid var(--ff-border); border-radius: var(--ff-radius); background: var(--ff-surface); box-shadow: var(--ff-shadow); }
.fft-no-sanctions { padding: 28px; text-align: center; color: var(--ff-muted); }

.ff-site-footer { padding: 34px 0; color: var(--ff-muted); border-top: 1px solid var(--ff-border); background: var(--ff-bg); }
.ff-footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.ff-footer-menu { display: flex; flex-wrap: wrap; gap: 14px; list-style: none; padding: 0; margin: 0; }
.ff-footer-menu a { color: var(--ff-primary-2); }

@media (max-width: 1024px) {
  .ff-layout { grid-template-columns: minmax(0, 1fr) 280px; gap: 20px; }
  .ff-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .ff-competition-sanctions-grid { grid-template-columns: 1fr; }
  .fft-match-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ff-season-summary { gap: 4px; padding: 14px 8px; }
  .ff-season-summary-item { flex-direction: column; gap: 5px; padding: 4px 2px; text-align: center; }
  .ff-season-summary-item img { flex-basis: 24px; width: 24px; height: 24px; }
  .ff-season-summary-item > div { width: 100%; }
  .ff-season-summary-label, .ff-season-summary-value { font-size: .76rem; line-height: 1.35; }
  .ff-season-summary-value { white-space: nowrap; }
}

@media (max-width: 782px) {
  .admin-bar .ff-site-header { top: 46px; }
  .ff-header-inner { min-height: 80px; }
  .ff-site-logo { width: 80px; }
  .ff-menu-toggle { display: inline-flex; }
  .ff-primary-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; padding: 10px 16px 16px; border-bottom: 1px solid var(--ff-border); background: var(--ff-bg); }
  .ff-primary-nav.is-open { display: block; }
  .ff-menu { align-items: stretch; flex-direction: column; }
  .ff-layout { grid-template-columns: 1fr; }
  .ff-sidebar { position: static; }
  .ff-main { padding-top: 16px; }
  .ff-facts { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .fft-sanction-columns { grid-template-columns: 1fr; }
  .fft-sanction-club-column:first-child { padding-right: 0; }
  .fft-sanction-club-column + .fft-sanction-club-column { padding-top: 18px; padding-left: 0; border-top: 1px solid var(--ff-border); border-left: 0; }
}

@media (max-width: 560px) {
  .ff-container { width: min(calc(100% - 22px), var(--ff-width)); }
  .ff-grid, .ff-grid--two { grid-template-columns: 1fr; }
  .ff-grid--home-seasons, .ff-grid--seasons { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ff-detail-header { align-items: flex-start; }
  .ff-logo--large { width: 64px; height: 64px; }
  .ff-facts { grid-template-columns: 1fr; }
  .fft-match-overview { padding: 18px; }
  .fft-match-competition { margin-bottom: 20px; }
  .fft-match-teams { grid-template-columns: minmax(0, 1fr) 34px minmax(0, 1fr); gap: 7px; }
  .fft-match-team { gap: 6px; font-size: .86rem; }
  .fft-match-team img { flex-basis: 36px; width: 36px; height: 36px; padding: 3px; }
  .fft-match-score { font-size: .86rem; }
  .fft-match-context { margin-top: 20px; }
  .ff-footer-inner { align-items: center; flex-direction: row; flex-wrap: wrap; gap: 8px; font-size: .75rem; }
  .ff-competition-block { padding: 16px; }
  .ff-competition-match-row { grid-template-columns: 1fr; gap: 3px; }
  .ff-competition-match-row time { padding-left: 33px; }
}

@media (max-width: 600px) {
  .admin-bar .ff-site-header { top: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

/* Homepage update heading and overview link. */
.ff-home-latest-update > .ff-update-header { display:flex; justify-content:space-between; align-items:flex-start; gap:12px; flex-wrap:wrap; }
.ff-home-latest-update .ff-update-overview-link { margin-left:auto; white-space:nowrap; }

.ff-update-header h2 { margin:0; font-size:1.1rem; line-height:1.3; }

/* Consistent compact spacing above all comparable summary panels. */
.ff-summary-header { margin-bottom:16px; }
.ff-summary-header p { margin:3px 0 0; }

.ff-about section { margin-bottom: 1.5rem; }
.ff-about section h2, .ff-privacy-page section h2 { margin: 0 0 .5rem; font-size: 1.1rem; line-height: 1.3; }
.ff-about section p { line-height: 1.65; margin: 0 0 .8rem; }

@media (max-width: 900px) {
  .ff-footer-description { display: none; }
}

.ff-footer-copyright, .ff-footer-about { white-space: nowrap; }
.ff-footer-about { margin-left: auto; flex-shrink: 0; }
@media (max-width: 560px) { .ff-footer-menu { flex-basis: 100%; } }

/* Advertising placements share the existing block spacing. */
.ff-sidebar-ad { min-width: 0; width: 100%; }
.ff-sidebar-ad-label { margin-bottom: 6px; color: var(--ff-muted); font-size: .7rem; text-align: center; }

/* Span the complete match grid without changing card columns. */
.ff-horizontal-ad { grid-column: 1 / -1; min-width: 0; width: 100%; margin: 0; }

/* Parent gaps own vertical block spacing, including ads inside card grids.
   Hidden/unfilled placements leave no extra gap; child margins never stack. */
.ff-content > *, .ff-sidebar > * { margin-top: 0; margin-bottom: 0; }
.ff-content > .ff-section, .ff-content > .ff-page-header { margin-top: 0; margin-bottom: 0; }
.ff-grid, .ff-layout { row-gap: var(--ff-block-gap); }

.ff-footer-inner { flex-wrap: wrap; }
.ff-footer-privacy { white-space: nowrap; }
.ff-privacy-page { max-width: 850px; line-height: 1.65; }

/* Footer replacement for the EU consent toolbar; enabled only after API readiness. */
.ff-footer-consent[hidden] { display: none !important; }
.ff-footer-consent { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 0; background: transparent; }
.ff-footer-consent #ff-privacy-settings { appearance: none; border: 0; background: none; padding: 0; color: var(--ff-primary-2); font: inherit; cursor: pointer; text-align: left; }
.ff-footer-consent #ff-privacy-settings:hover { text-decoration: underline; }
.ff-footer-consent #ff-privacy-settings:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
.ff-footer-consent small { font-size: .7rem; }
html.ff-custom-consent-ready [data-ff-eu-toolbar] { display: none !important; }

/* Exact Google inline revocation bar supplied from the live browser. */
html.ff-custom-consent-ready .ipr-container { display: none !important; }

#ff-privacy-settings { white-space: nowrap; }
#ff-consent-status { flex-basis: 100%; font-size: .75rem; }
#ff-consent-status[hidden] { display: none; }

/* Keep wrapped cookie settings beneath the other footer links on small screens. */
@media (max-width: 560px) {
  .ff-footer-inner { display: grid; grid-template-columns: minmax(0, 1fr) max-content max-content; gap: 6px 8px; align-items: start; }
  .ff-footer-copyright { grid-column: 1; grid-row: 1 / span 2; white-space: normal; min-width: 0; }
  .ff-footer-about { grid-column: 2; grid-row: 1; margin-left: 0; }
  .ff-footer-privacy { grid-column: 3; grid-row: 1; }
  .ff-footer-consent { grid-column: 2 / 4; grid-row: 2; justify-self: end; justify-content: flex-end; }
  .ff-footer-menu { grid-column: 1 / -1; }
  #ff-consent-status { max-width: 160px; text-align: right; }
}

/* Per-device followed clubs, between search and advertising. */
.ff-follow-list, .ff-follow-results, .ff-follow-recent { list-style: none; margin: 0; padding: 0; }
.ff-follow-list li { display: flex; align-items: center; gap: 8px; margin: 9px 0; }
.ff-follow-list li a { flex: 1; min-width: 0; }
.ff-follow-list img { width: 24px; height: 24px; object-fit: contain; }
.ff-following-clubs button, .ff-follow-club-button { border: 1px solid var(--ff-border, #dce2e8); border-radius: 5px; background: transparent; color: var(--ff-primary-2); font: inherit; padding: 6px 9px; cursor: pointer; }
.ff-following-clubs button:disabled { opacity: .55; cursor: default; }
.ff-following-clubs [hidden] { display: none !important; }
.ff-following-clubs input { box-sizing: border-box; width: 100%; min-width: 0; font: inherit; padding: 8px; border: 1px solid var(--ff-border, #dce2e8); border-radius: 5px; background: transparent; color: inherit; }
.ff-follow-results li { margin: 5px 0; }
.ff-follow-results button { width: 100%; text-align: left; }
.ff-follow-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.ff-follow-help, .ff-follow-status { font-size: .75rem; line-height: 1.5; margin: 10px 0 0; }
.ff-follow-status:empty, .ff-follow-recent:empty { display: none; }
.ff-follow-recent li { margin-top: 9px; }
#ff-following-clubs { scroll-margin-top: 100px; }
.ff-follow-club-button { margin-top: 8px; }

/* Only the match name is linked in highest-match-fine panels. */
.ff-sidebar-stat-link { display: inline; color: var(--ff-primary-2); text-decoration: none; }
.ff-sidebar-stat-link:focus { color: var(--ff-primary); }
.ff-sidebar-stat-link:focus-visible { outline: 2px solid var(--ff-primary-2); outline-offset: 3px; }

/* Stadium Bans: the regular cards, with non-interactive attendance details. */
.ff-stadium-ban-card { height: 100%; overflow-wrap: anywhere; }
.ff-stadium-ban-card .ff-ban-kind { margin: 14px 0 0; color: var(--ff-primary-2); font-weight: 500; }
.ff-stadium-ban-card .ff-ban-duration { margin: 6px 0 0; }
.ff-ban-details { margin-top: 12px; font-size: .86rem; }
.ff-ban-details p { margin: 0 0 6px; }
.ff-ban-details p:last-child { margin-bottom: 0; }
.ff-ban-details table { display: block; max-width: 100%; overflow-x: auto; }
.ff-stadium-ban-card .ff-ban-published { margin: auto 0 0; padding-top: 16px; color: var(--ff-muted); font-size: .78rem; }
@media (max-width: 600px) { .ff-stadium-bans .ff-grid { grid-template-columns: minmax(0, 1fr); } }

.ff-ban-navigation .ff-card-link { color: var(--ff-primary-2); }
.ff-ban-navigation .ff-ban-selected, .ff-ban-navigation .ff-ban-selected:hover { color: #000; }
.ff-ban-navigation .ff-ban-selected .ff-card { border-color: var(--ff-border); }

/* Consistent logo boxes on cards; keep each logo's natural proportions. */
.ff-card img.ff-card-title-icon, .ff-card img.ff-club-card-icon, .ff-card img.ff-search-club-logo,
.ff-card .ff-logo, .ff-card.ff-match-card .ff-logo,
.ff-competition-block-icon, .ff-compact-team img {
    flex: 0 0 30px; width: 30px; height: 30px; max-width: 30px; max-height: 30px; padding: 0; object-fit: contain;
}
.ff-card img.ff-country-flag { flex-basis: auto; width: auto; height: auto; max-width: 30px; max-height: 30px; }
.ff-follow-list img { width: 28px; height: 28px; object-fit: contain; }
.ff-sidebar .ff-card img.ff-card-title-icon, .ff-sidebar .ff-card .ff-logo { flex-basis: 28px; width: 28px; height: 28px; max-width: 28px; max-height: 28px; }

/* Homepage introduction and decision references use the existing panel styling. */
.ff-home-intro h1 { margin: 0 0 12px; font-size: 1.1rem; line-height: 1.3; }
.ff-home-intro p { margin: 0 0 12px; font-size: .86rem; }
.ff-home-intro p:last-child { margin-bottom: 0; }
.ff-match-decisions .ff-decision-links { display: grid; gap: 8px; }
.ff-match-decisions .ff-decision-card { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.ff-match-decisions .ff-decision-reference-icon { width: 30px; height: 30px; object-fit: contain; flex: 0 0 30px; }
.ff-match-decisions .ff-decision-card span { min-width: 0; overflow-wrap: anywhere; }

/* Document references share the existing responsive summary block. */
.ff-document-summary--reference { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ff-document-summary .ff-document-reference { color: var(--ff-primary-2); white-space: normal; }

/* Inline search suggestions match the Following clubs result buttons. */
.ff-search-suggestions, .ff-sidebar-ban-list { list-style: none; margin: 0; padding: 0; }
.ff-search-suggestions li { margin: 5px 0; }
.ff-search-suggestions a { display: block; padding: 6px 9px; border: 1px solid var(--ff-border); border-radius: 5px; overflow-wrap: anywhere; }
.ff-search-suggestions small { display: block; color: var(--ff-muted); }
.ff-search-suggestions a:focus-visible { outline: 2px solid var(--ff-primary-2); outline-offset: 2px; }
.ff-search-status { margin: 10px 0 0; color: var(--ff-muted); font-size: .75rem; }
.ff-sidebar-search [hidden] { display: none !important; }
.ff-sidebar-ban-list li { padding-top: 10px; }
.ff-sidebar-ban-list li + li { margin-top: 10px; border-top: 1px solid var(--ff-border); }

/* Share: match the 22px match-fact icons, with no hover effects. */
.ff-share[hidden], .ff-share [hidden] { display: none; }
.ff-share > .ff-panel { padding: 20px; }
.ff-share-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 18px; }
.ff-share-button { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; min-width: 22px; min-height: 22px; padding: 0; border: 0; border-radius: 0; background: transparent; color: var(--ff-muted); box-shadow: none; cursor: pointer; transition: none; }
.ff-share-button img { width: 22px; height: 22px; object-fit: contain; filter: brightness(0) saturate(100%) invert(46%) sepia(12%) saturate(657%) hue-rotate(179deg) brightness(91%) contrast(88%); }
.ff-share button:focus-visible, .ff-share a:focus-visible { outline: 2px solid var(--ff-muted); outline-offset: 3px; }
.ff-share-status:empty, .ff-share-dialog-status:empty, .ff-share-server-error:empty { display: none; }
.ff-share-status { margin: 8px 0 0; color: var(--ff-muted); }
.ff-share-dialog { width: min(460px, calc(100% - 32px)); max-height: 85vh; overflow: auto; padding: 22px; color: var(--ff-text); border: 1px solid var(--ff-border); border-radius: var(--ff-radius); background: var(--ff-surface); }
.ff-share-dialog::backdrop { background: rgba(23, 32, 51, .4); }
.ff-share-dialog label { display: block; }
.ff-share-dialog input { display: block; width: 100%; margin: 8px 0 12px; padding: 10px; border: 1px solid var(--ff-border); border-radius: 6px; }
.ff-share-dialog button, .ff-share-dialog a { display: inline-block; margin: 6px 8px 6px 0; padding: 8px 10px; border: 1px solid var(--ff-border); border-radius: 6px; background: transparent; color: var(--ff-text); cursor: pointer; }
.ff-share-server-error { color: var(--ff-danger); }

/* Delayed indicator for internal page navigation. */
.ff-page-loading[hidden] { display: none; }
.ff-page-loading {
  position: fixed;
  inset: 0;
  z-index: 99998;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.75);
  pointer-events: none;
}
.ff-page-loading img {
  display: block;
  width: 80px;
  height: 80px;
  object-fit: contain;
  animation: ff-page-loading-pulse 1.2s ease-in-out infinite;
}
@keyframes ff-page-loading-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(0.94); }
}
@media (prefers-reduced-motion: reduce) {
  .ff-page-loading img { animation: none; }
}

.ff-following-clubs input:focus, .ff-following-clubs input:focus-visible { outline: 0; border-color: var(--ff-border, #dce2e8); box-shadow: none; }


/* Fixed-size Adsterra creatives are selected by the available slot width. */
.ff-adsterra[hidden], .ff-adsterra-frame[hidden] { display: none !important; }
.ff-adsterra-frame { display: block; border: 0; margin: 0 auto; padding: 0; }

/* Match context uses the existing cards, grid and section spacing. */
.ff-match-comparison-values { margin: 16px 0 0; }
.ff-match-comparison-values > div, .ff-match-related-sanction { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.ff-match-comparison-values > div + div { margin-top: 10px; }
.ff-match-comparison-values dd { margin: 0; }
.ff-match-context .ff-amount { white-space: nowrap; font-weight: 400; }
.ff-match-related-entry { border-top: 1px solid var(--ff-border); padding-top: 16px; margin-top: 16px; overflow-wrap: anywhere; }
.ff-match-related-entry .ff-card-meta { margin-top: 4px; }
.ff-match-related-sanction { margin-top: 8px; }

/* Keep related documents full width on match pages. */
.ff-match-documents > .ff-grid { grid-template-columns: minmax(0, 1fr); }

.ff-match-references { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--ff-block-gap); }
.ff-match-references > .ff-section { min-width: 0; margin: 0; }
.ff-match-history-values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 16px 0 0; }
.ff-match-history-values dt { color: var(--ff-muted); }
.ff-match-history-values dd { margin: 6px 0 0; font-weight: 400; }
@media (min-width: 901px) { .ff-match-references--two { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .ff-match-history-values { grid-template-columns: minmax(0, 1fr); } }

/* Identical card geometry for both match reference sections. */
.ff-match-references .ff-card { min-height: 72px; justify-content: center; }
.ff-match-references .ff-card-title-row h3 { overflow-wrap: anywhere; }
.ff-match-references .ff-card-title-icon { flex: 0 0 30px; width: 30px; height: 30px; object-fit: contain; }
.ff-match-references .ff-decision-links { gap: 16px; }

.ff-upcoming-club + .ff-upcoming-club { margin-top: var(--ff-block-gap); }
.ff-upcoming-club > h3 { margin: 0 0 16px; font-family: "Fredoka", sans-serif; font-size: .86rem; font-weight: 400; }

/* Non-clickable upcoming fixtures use the regular text colour. */
.ff-upcoming-matches .ff-card-link,
.ff-upcoming-matches .ff-card-link .ff-match-card .ff-team span,
.ff-upcoming-matches .ff-match-competition-name { color: var(--ff-text); }

.ff-follow-us-text { margin: 8px 0 12px; }
.ff-follow-us-telegram { display: inline-flex; align-items: center; vertical-align: middle; }
.ff-follow-us-telegram img { display: block; width: 28px; height: 28px; object-fit: contain; filter: brightness(0) saturate(100%) invert(46%) sepia(12%) saturate(657%) hue-rotate(179deg) brightness(91%) contrast(88%); }
