:root {
  --fp-surface: #f5f7fb;
  --fp-panel: #ffffff;
  --fp-ink: #0f172a;
  --fp-muted: #5b6476;
  --fp-brand: #1649ba;
  --fp-brand-deep: #0b2467;
  --fp-accent: #f5b700;
  --fp-line: #dce3f0;
  --fp-raised: #eef2f8;
  --fp-raised-2: #e2e8f2;
  --fp-radius: 12px;
  --fp-shadow: 0 12px 30px rgb(15 23 42 / .08);
  --fp-bottom-height: 4rem;
}
html { background: var(--fp-surface); }
html.dark {
  --fp-surface: #0b1120;
  --fp-panel: #111b2e;
  --fp-ink: #eef2ff;
  --fp-muted: #aebbd0;
  --fp-line: #26344d;
  --fp-raised: #1a2740;
  --fp-raised-2: #24324d;
  --fp-shadow: 0 12px 30px rgb(0 0 0 / .2);
}
.site-body { min-height: 100vh; min-height: 100dvh; background: var(--fp-surface); color: var(--fp-ink); }
.site-header { background: var(--fp-brand-deep); color: #fff; }
.site-header a { color: inherit; text-decoration: none; }
.site-header :is(a, button):focus-visible { outline: 3px solid var(--fp-accent); outline-offset: 3px; }
.site-header--mobile { display: none; }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; max-width: 1248px; min-height: 76px; margin: auto; padding: .6rem 1.5rem; }
.site-logo { display: flex; align-items: center; flex: none; min-height: 44px; }
.site-logo img { width: 180px; height: auto; }
.site-nav { display: flex; align-items: center; gap: clamp(1rem, 1.25vw + .25rem, 1.8rem); }
.site-nav__link { display: inline-flex; align-items: center; justify-content: center; gap: .2rem; min-width: 44px; min-height: 44px; border: 0; padding: .35rem 0; background: transparent; color: inherit; font: inherit; font-size: 1rem; white-space: nowrap; cursor: pointer; }
.site-nav__link:hover { opacity: .8; }
/* Keep the four primary destinations readable beside account and help controls. */
@media (max-width: 1279px) { .site-nav__link { font-size: .9375rem; } }
.site-nav__link[aria-current] { box-shadow: inset 0 -2px #fff; font-weight: 700; }
.site-nav__link .material-symbols-outlined { font-size: 18px; }
.site-header__account { display: flex; align-items: center; gap: .6rem; }
.site-header__help { position: relative; display: inline-flex; align-items: center; gap: .4rem; min-width: 44px; min-height: 44px; padding: .35rem .5rem; font-size: .875rem; white-space: nowrap; }
.site-header__help > .material-symbols-outlined { font-size: 22px; }
.site-header__help:hover { background: rgb(255 255 255 / .08); border-radius: 8px; }
.site-header__unread { position: absolute; top: .2rem; right: .1rem; width: .6rem; height: .6rem; border-radius: 50%; background: var(--fp-accent); }
.site-header__unread[hidden] { display: none; }
.site-body--home .fp-assistant__launcher { display: none; }
.site-icon-button { position: relative; display: inline-flex; align-items: center; justify-content: center; flex: none; width: 44px; height: 44px; border: 0; border-radius: 8px; padding: 0; background: transparent; color: inherit; cursor: pointer; }
.site-icon-button:hover { background: rgb(128 145 177 / .14); }
.site-avatar { display: grid; place-items: center; width: 44px; height: 44px; }
.site-avatar img { width: 34px; height: 34px; object-fit: cover; border: 1px solid rgb(255 255 255 / .4); border-radius: 50%; }
.site-header__login { display: inline-flex; align-items: center; min-height: 44px; padding: 0 .8rem; font-size: .875rem; white-space: nowrap; }
.site-notification-count { position: absolute; top: 1px; right: 1px; min-width: 16px; border-radius: 16px; padding: 0 3px; background: #dc2626; color: #fff; font-size: .75rem; line-height: 16px; text-align: center; }
.site-main { min-height: calc(100vh - 14rem); min-height: calc(100dvh - 14rem); padding: 1.5rem 0 2rem; }
.site-bottom-nav { display: none; }
.site-menu { width: min(440px, calc(100% - 2rem)); max-height: min(740px, calc(100dvh - 2rem)); margin: auto; padding: 1.25rem; overflow: auto; border: 1px solid var(--fp-line); border-radius: 16px; background: var(--fp-panel); color: var(--fp-ink); box-shadow: var(--fp-shadow); }
.site-menu::backdrop { background: rgb(4 13 35 / .55); }
.site-menu__heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .75rem; }
.site-menu__heading h2 { font-size: 1.25rem; font-weight: 750; letter-spacing: -.025em; }
.site-menu__links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem .5rem; }
.site-menu__group { min-width: 0; }
.site-menu__group h3 { margin: 0 0 .25rem; padding: 0 .5rem; color: var(--fp-muted); font-size: .875rem; font-weight: 650; }
.site-menu__group-links { display: grid; gap: .3rem; }
.site-menu__group:nth-child(n+3) { grid-column: 1 / -1; }
.site-menu__group:nth-child(n+3) .site-menu__group-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.site-menu__links a { display: flex; align-items: center; gap: .7rem; min-height: 56px; border-radius: 8px; padding: .65rem .5rem; color: var(--fp-ink); font-size: .9rem; text-decoration: none; }
.site-menu__links a { min-width: 0; overflow-wrap: anywhere; }
.site-menu__links a:hover { background: var(--fp-surface); }
.site-menu__links a[aria-current] { background: var(--fp-surface); color: var(--fp-brand); font-weight: 700; }
html.dark .site-menu__links a[aria-current] { color: #93c5fd; }
.site-menu__links .material-symbols-outlined { color: var(--fp-muted); font-size: 22px; }
.site-menu__settings { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-top: 1.25rem; border-top: 1px solid var(--fp-line); padding-top: 1rem; }
.site-menu__language { display: flex; align-items: center; min-width: 0; gap: .4rem; }
.site-menu__language select { width: 100%; min-width: 0; min-height: 44px; max-width: 135px; border: 0; padding: .35rem .2rem; background: var(--fp-panel); color: var(--fp-ink); font-size: .875rem; }
.site-menu__language > .material-symbols-outlined { color: var(--fp-muted); font-size: 21px; }
.site-theme-button { display: flex; align-items: center; justify-content: center; flex: none; gap: .4rem; min-height: 44px; border: 1px solid var(--fp-line); border-radius: 8px; padding: .4rem .6rem; background: transparent; color: var(--fp-ink); font-size: .8rem; cursor: pointer; }
.site-theme-button .material-symbols-outlined { font-size: 20px; }
.site-theme-button[aria-pressed="true"] { background: var(--fp-surface); }
.site-menu-fallback { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 1rem; padding: 1rem; font-size: .875rem; }
.site-menu-fallback a { display: inline-flex; align-items: center; min-width: 44px; min-height: 44px; }
@media (min-width: 1024px) { .site-menu__links .site-menu__compact-only, .site-menu-fallback .site-menu__compact-only { display: none; } }
.site-footer { margin-top: 2rem !important; padding: 1.5rem 1rem !important; background: var(--fp-brand-deep) !important; }
/* Two link groups wrap as units, so a narrow screen shows 3 + 2 links instead of leaving one alone. */
.site-footer__links, .site-footer__link-group { display: flex; flex-wrap: wrap; justify-content: center; column-gap: 1.5rem; }
.site-footer__links { padding: .25rem 0; }
.site-footer__link-group a { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding-inline: .25rem; }
.site-footer__social { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .75rem; padding: .5rem 0; }
.site-footer__social-link { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 999px; background: rgb(255 255 255 / .1); color: #fff; transition: background-color .15s ease, color .15s ease; }
.site-footer__social-link:hover, .site-footer__social-link:focus-visible { background: #fff; color: var(--fp-brand-deep); }
.site-footer__social-link:focus-visible { outline: 2px solid var(--fp-accent); outline-offset: 2px; }
.site-footer__social-link svg { width: 20px; height: 20px; flex: none; }
.site-footer__copyright { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 .5rem; margin: .5rem 0 0; font-size: .875rem; }
/* One page width for every public page; the gutter matches the header (24px desktop, 16px below 1024px). */
.home-shell, .page-shell { max-width: 1248px; margin: 0 auto; padding: 0 1.5rem; }
.page-shell { padding-block: 1rem; }
.page-shell--narrow { max-width: calc(48rem + 3rem); }
.home-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin: .25rem 0 1.5rem; }
.home-heading h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; letter-spacing: -.03em; }
.home-section-link { display: inline-flex; align-items: center; justify-content: flex-end; flex: none; gap: .4rem; min-width: 44px; min-height: 44px; color: var(--fp-brand); font-size: .875rem; font-weight: 600; text-decoration: none; }
.home-section-link:hover { text-decoration: underline; }
.home-fixture-status { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: -.5rem 0 1.25rem; color: var(--fp-muted); font-size: .875rem; }
.home-overview { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: start; gap: 1.5rem; }
.home-panel { min-width: 0; border: 0; border-radius: 8px; padding: 1rem 1.25rem; background: var(--fp-panel); }
.home-panel__heading { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: .5rem; }
.home-panel__heading h2 { min-width: 0; font-size: 1rem; font-weight: 750; line-height: 1.5; letter-spacing: -.015em; }
.home-empty { padding: .5rem 0 .75rem; color: var(--fp-muted); font-size: .875rem; line-height: 1.6; }
.home-fixture-list { list-style: none; padding: 0; margin: 0; }
.home-fixture-list li { display: flex; align-items: center; gap: 1.25rem; padding: .9rem 0; }
.home-fixture-list li + li { border-top: 1px solid var(--fp-line); }
.home-fixture-list time { flex: none; min-width: 44px; color: var(--fp-muted); font-size: .8125rem; font-variant-numeric: tabular-nums; }
.home-fixture-list time strong { display: block; color: var(--fp-ink); font-size: 1rem; font-weight: 750; }
.home-fixture-teams { display: grid; min-width: 0; gap: .4rem; }
.home-fixture-teams a { display: flex; align-items: center; min-width: 0; min-height: 44px; gap: .5rem; font-size: 1rem; font-weight: 550; }
.home-fixture-teams a:hover span { text-decoration: underline; }
.home-fixture-teams img { flex: none; width: 22px; height: 22px; object-fit: contain; }
.home-fixture-teams span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.home-news { grid-column: 1 / -1; margin-top: .5rem; }
.home-overview--quiet { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 2rem; }
.home-overview--table-only { display: block; }
.home-overview--quiet .home-news { grid-column: auto; margin-top: 0; }
.home-overview--quiet .home-news__grid { display: block; }
.home-news__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; }
.home-news__item { min-width: 0; }
.home-news__item > a { display: block; }
.home-news__item > a > img { display: block; width: 100%; aspect-ratio: 16 / 9; height: auto; border-radius: 8px; object-fit: cover; object-position: center top; }
.home-news__item > a > div { min-width: 0; overflow-wrap: anywhere; }
.home-news__item time { display: block; margin: .75rem 0 .3rem; color: var(--fp-muted); font-size: .8125rem; font-variant-numeric: tabular-nums; }
.home-news__item h3 { font-size: 1rem; font-weight: 650; line-height: 1.5; }
.home-news__item a:hover h3 { text-decoration: underline; }
.home-overview--quiet .home-news__item + .home-news__item { margin-top: .5rem; }
.home-overview--quiet .home-news__item > a { display: grid; grid-template-columns: 144px minmax(0, 1fr); align-items: center; gap: 1rem; min-height: 96px; padding: .6rem 0; }
.home-overview--quiet .home-news__item > a > img { border-radius: 6px; }
.home-overview--quiet .home-news__item time { margin: 0 0 .2rem; font-size: .8125rem; }
.home-overview--quiet .home-news__item h3 { display: -webkit-box; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-size: .875rem; }
.home-season-label { color: var(--fp-muted); font-size: .875rem; margin-bottom: .3rem; }
.home-season-numbers { display: flex; flex-shrink: 0; gap: 2.5rem; text-align: right; font-variant-numeric: tabular-nums; }
.home-season-numbers dt { color: var(--fp-muted); font-size: .8125rem; white-space: nowrap; }
.home-season-numbers dd { font-size: 1.25rem; font-weight: 750; }
.home-season-numbers dd span { color: var(--fp-muted); font-size: .875rem; font-weight: 500; }
.home-recent { margin-bottom: 1.5rem; }
.home-recent h2 { font-size: 1rem; font-weight: 750; }
.home-scoreboard { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.home-score { display: block; min-width: 0; padding: .8rem 1rem; border: 0; border-radius: 8px; background: var(--fp-panel); }
.home-score:hover { border-color: var(--fp-brand); }
.home-score__meta { display: flex; align-items: center; justify-content: space-between; gap: .5rem; color: var(--fp-muted); font-size: .8125rem; margin-bottom: .7rem; }
.home-score__meta > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.home-score__meta time { flex: none; }
.home-score__team { display: flex; align-items: center; gap: .6rem; margin: .45rem 0; font-size: .875rem; }
.home-score__team img { flex: none; width: 24px; height: 24px; object-fit: contain; }
.home-score__team span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.home-score__team strong { margin-left: auto; font-size: 1rem; font-variant-numeric: tabular-nums; }
@media (min-width: 1024px) {
  .home-overview--quiet { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 1.5rem; }
  /* Keep a single table readable when there is no companion news column. */
  .home-overview--table-only { max-width: 64rem; }
}
@media (max-width: 1023px) { .home-score__meta { flex-wrap: wrap; } }
@media (max-width: 639px) { .home-season-numbers { display: none; } .home-scoreboard { grid-template-columns: minmax(0, 1fr); } .home-score:nth-child(n+2) { display: none; } .home-recent { margin-bottom: 1rem; } }
.section-heading { font-size: clamp(1.45rem, 2.2vw, 2rem); font-weight: 800; letter-spacing: -.025em; }
.section-link { color: var(--fp-brand); font-weight: 700; text-decoration: none; }
.section-link:hover { color: var(--fp-brand-deep); text-decoration: underline; }
.news-card {
  display: flex;
  height: 100%;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--fp-line);
  border-radius: 14px;
  background: var(--fp-panel);
  box-shadow: 0 4px 15px rgba(15, 23, 42, .05);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.news-card:hover {
  border-color: rgba(22, 73, 186, .38);
  box-shadow: var(--fp-shadow);
  transform: translateY(-4px);
}

.news-card__image {
  aspect-ratio: 16 / 9;
  width: 100%;
  object-fit: cover;
}

.news-card__body { padding: 1rem 1rem 1.1rem; }
.news-card__title { font-size: 1.05rem; font-weight: 800; line-height: 1.35; }
.news-card__summary { margin-top: .4rem; color: var(--fp-muted); line-height: 1.5; }

.news-filters { display: grid; grid-template-columns: minmax(0, 1fr) minmax(120px, 220px) auto; gap: .75rem; margin-bottom: 1.5rem; }
.news-filters input, .news-filters select { width: 100%; min-width: 0; min-height: 44px; border: 1px solid var(--fp-line); border-radius: 6px; padding: .5rem .75rem; background: var(--fp-panel); color: var(--fp-ink); }
.news-filters button { min-height: 44px; padding: .5rem 1rem; }
.news-list { display: grid; gap: 1.5rem; }
.news-list__item { min-width: 0; }
.news-list__link { display: grid; grid-template-columns: 240px minmax(0, 1fr); align-items: start; gap: 1.5rem; color: var(--fp-ink); text-decoration: none; }
.news-list__image { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; object-position: center top; border-radius: 8px; background: var(--fp-panel); }
.news-list__body { min-width: 0; overflow-wrap: anywhere; }
.news-list__date { display: block; color: var(--fp-muted); font-size: .8125rem; }
.news-list__title { margin-top: .25rem; font-size: 1.125rem; font-weight: 700; line-height: 1.5; }
.news-list__summary { margin-top: .4rem; color: var(--fp-muted); font-size: .9375rem; line-height: 1.65; }
.news-list__link:hover .news-list__title { text-decoration: underline; }

/* Shared page header: H1, optional subtitle, optional link on the right. */
.page-header { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: .25rem 1rem; margin-bottom: 1rem; }
.page-header__text { min-width: 0; }
.page-header__title { font-size: 1.5rem; font-weight: 800; line-height: 1.3; letter-spacing: -.02em; overflow-wrap: anywhere; }
.page-header__subtitle { margin-top: .25rem; color: var(--fp-muted); font-size: .875rem; line-height: 1.6; }
.page-header__link { display: inline-flex; align-items: center; flex: none; gap: .25rem; min-height: 44px; color: var(--fp-brand); font-size: .875rem; font-weight: 600; text-decoration: none; }
.page-header__link:hover { text-decoration: underline; }
html.dark .page-header__link { color: #93c5fd; }
.club-tabs .tab-btn { min-height: 44px; }
@media (max-width: 639px) {
  .club-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .club-tabs .tab-btn { min-width: 0; padding-inline: .375rem; font-size: .875rem; overflow-wrap: anywhere; }
}
@media (max-width: 374px) { .club-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}

:where(a, button, input, select, textarea):focus-visible {
  outline: 3px solid var(--fp-brand) !important;
  outline-offset: 3px;
}

/* Native date pickers, dropdowns and scrollbars follow the dark theme. */
html.dark :where(input, select, textarea) {
  color-scheme: dark;
}

html.dark :where(a, button, input, select, textarea):focus-visible {
  outline-color: var(--fp-accent) !important;
}


.table-compact th, .table-compact td { padding: .5rem .6rem; }
html.dark .home-section-link, html.dark .section-link { color: #93c5fd; }
html.dark .news-card { border-color: var(--fp-line); background: var(--fp-panel); }
html.dark .news-card__summary { color: var(--fp-muted); }
@media (max-width: 1023px) {
  .site-header--desktop { display: none; }
  .site-header--mobile { display: flex; align-items: center; justify-content: space-between; min-height: 60px; padding: .35rem 1rem; }
  .site-logo img { width: 148px; }
  .site-main { padding: 1.25rem 0 1.5rem; }
  .site-body { padding-bottom: calc(var(--fp-bottom-height) + env(safe-area-inset-bottom)); }
  .site-bottom-nav { position: fixed; z-index: 50; right: 0; bottom: 0; left: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); min-height: calc(var(--fp-bottom-height) + env(safe-area-inset-bottom)); border-top: 1px solid var(--fp-line); padding: .35rem .4rem calc(.35rem + env(safe-area-inset-bottom)); background: var(--fp-panel); color: var(--fp-muted); }
  .site-bottom-nav > a, .site-bottom-nav > button { display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 0; min-height: 52px; gap: .2rem; border: 0; border-radius: 8px; padding: .2rem; background: transparent; color: inherit; font: inherit; font-size: .75rem; line-height: 1.2; text-align: center; text-decoration: none; overflow-wrap: anywhere; cursor: pointer; }
  .site-bottom-nav .material-symbols-outlined { font-size: 24px; }
  .site-bottom-nav > [aria-current], .site-bottom-nav > [aria-expanded="true"] { color: var(--fp-brand); font-weight: 700; }
  html.dark .site-bottom-nav > [aria-current], html.dark .site-bottom-nav > [aria-expanded="true"] { color: #93c5fd; }
  .home-overview { gap: 1rem; }
  .home-shell { padding: 0 1rem; }
  .page-shell { padding-inline: 1rem; }
  .home-news__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-overview--quiet .home-news__item > a { grid-template-columns: 96px minmax(0, 1fr); }
  .site-menu { margin-bottom: max(1rem, env(safe-area-inset-bottom)); }
}
@media (max-width: 639px) {
  .home-heading { margin: 0 0 .75rem; }
  .home-heading h2 { font-size: 1.5rem; }
  .home-fixture-status { align-items: flex-start; gap: .5rem; margin: -.25rem 0 .75rem; font-size: .75rem; }
  .home-fixture-status p { padding-top: .75rem; }
  .home-overview { grid-template-columns: minmax(0, 1fr); }
  .home-panel { padding: .75rem 1rem; }
  .home-panel__heading { margin-bottom: .25rem; }
  .home-fixture-list li:nth-child(n+4) { display: none; }
  .home-news, .home-overview--quiet .home-news { margin-top: .5rem; }
  .home-news__grid { display: block; }
  .home-news__item + .home-news__item { margin-top: .25rem; }
  .home-news__item > a, .home-overview--quiet .home-news__item > a { display: grid; grid-template-columns: 96px minmax(0, 1fr); align-items: center; gap: 1rem; min-height: 84px; padding: .8rem 0; }
  .home-news__item > a > img { border-radius: 6px; }
  .home-news__item time { margin: 0 0 .2rem; font-size: .8125rem; }
  .home-news__item h3 { display: -webkit-box; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-size: .875rem; }
  .news-filters { grid-template-columns: minmax(0, 1fr) auto; }
  .news-filters input { grid-column: 1 / -1; }
  .news-list { gap: .25rem; }
  .news-list__link { grid-template-columns: 112px minmax(0, 1fr); align-items: center; gap: .9rem; padding: .6rem 0; }
  .news-list__title { display: -webkit-box; overflow: hidden; -webkit-line-clamp: 3; -webkit-box-orient: vertical; margin-top: .15rem; font-size: 1rem; line-height: 1.45; }
  .news-list__summary { display: none; }
  .site-footer { margin-top: 1rem !important; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* Matchday layout and team tasks. */
.home-shell a:focus-visible { outline: 3px solid var(--fp-brand); outline-offset: 3px; }
.home-panel__heading h2, .home-recent h2 { font-size: 1.25rem; }
@media (max-width: 639px) {
  .home-heading h2 { font-size: 1.5rem; }
  .home-score__meta { font-size: .8125rem; margin-bottom: .4rem; }
  .home-score__team { margin: .25rem 0; }
  .home-fixture-status { font-size: .8125rem; }
}

/* Article typography (news, terms, privacy). main.css is built without the
   typography plugin, so `.prose` is defined here. Rules skip elements that
   carry their own utility classes; Quill alignment/indent classes still receive typography. */
.prose { line-height: 1.8; overflow-wrap: anywhere; }
.prose :where(.ql-align-center) { text-align: center; }
.prose :where(.ql-align-right) { text-align: right; }
.prose :where(.ql-align-justify) { text-align: justify; }
.prose-sm { font-size: .875rem; line-height: 1.75; }
.prose :where(p, ul, ol, blockquote, pre, table, figure):where(:not([class]), [class^="ql-"], [class*=" ql-"]) { margin: 0 0 1.1em; }
.prose :where(h2, h3, h4):where(:not([class]), [class^="ql-"], [class*=" ql-"]) { margin: 1.9em 0 .6em; font-weight: 750; line-height: 1.35; letter-spacing: -.01em; }
.prose :where(h2):where(:not([class]), [class^="ql-"], [class*=" ql-"]) { font-size: 1.375em; }
.prose :where(h3):where(:not([class]), [class^="ql-"], [class*=" ql-"]) { font-size: 1.15em; }
.prose > :where(h2, h3, h4):where(:not([class]), [class^="ql-"], [class*=" ql-"]):first-child { margin-top: 0; }
.prose :where(ul):where(:not([class]), [class^="ql-"], [class*=" ql-"]) { padding-left: 1.5em; list-style: disc; }
.prose :where(ol):where(:not([class]), [class^="ql-"], [class*=" ql-"]) { padding-left: 1.5em; list-style: decimal; }
.prose :where(li):where(:not([class]), [class^="ql-"], [class*=" ql-"]) { margin: .35em 0; padding-left: .25em; }
.prose :where(li)::marker { color: var(--fp-muted); }
.prose :where(a):where(:not([class]), [class^="ql-"], [class*=" ql-"]) { color: var(--fp-brand); text-decoration: underline; text-underline-offset: .18em; }
.prose :where(a):where(:not([class]), [class^="ql-"], [class*=" ql-"]):hover { text-decoration-thickness: 2px; }
html.dark .prose :where(a):where(:not([class]), [class^="ql-"], [class*=" ql-"]) { color: #93c5fd; }
.prose :where(img):where(:not([class]), [class^="ql-"], [class*=" ql-"]) { max-width: 100%; height: auto; margin: 1.5em 0; border-radius: 8px; }
.prose :where(blockquote):where(:not([class]), [class^="ql-"], [class*=" ql-"]) { padding-left: 1em; border-left: 4px solid var(--fp-line); color: var(--fp-muted); }
.prose :where(hr):where(:not([class]), [class^="ql-"], [class*=" ql-"]) { margin: 2em 0; border: 0; border-top: 1px solid var(--fp-line); }

/* Club and roster cards are whole links; the "Details →" hint follows hover/focus. */
.club-card, .card-link { color: inherit; text-decoration: none; }
.club-card:hover .club-card__more, .club-card:focus-visible .club-card__more { text-decoration: underline; }
.club-card:focus-visible, .card-link:focus-visible { outline: 3px solid var(--fp-brand); outline-offset: 3px; }
.card-link:hover { box-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1); }

/* Social links on light page surfaces (contact page); the footer uses .site-footer__social. */
.social-links { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; margin-top: .5rem; }
.social-links__link { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 999px; background: #e8eefb; color: var(--fp-brand-deep); transition: background-color .15s ease, color .15s ease; }
.social-links__link:hover, .social-links__link:focus-visible { background: var(--fp-brand); color: #fff; }
.social-links__link:focus-visible { outline: 2px solid var(--fp-accent); outline-offset: 2px; }
.social-links__link svg { width: 20px; height: 20px; flex: none; }
html.dark .social-links__link { background: rgb(255 255 255 / .08); color: #fff; }
html.dark .social-links__link:hover, html.dark .social-links__link:focus-visible { background: #fff; color: var(--fp-brand-deep); }

/* Skip link: first stop for keyboard users, hidden until focused. */
.skip-link { position: absolute; top: -100px; left: 1rem; z-index: 2000; padding: .75rem 1rem; border-radius: 8px; background: #fff; color: var(--fp-brand-deep); font-weight: 700; text-decoration: none; box-shadow: var(--fp-shadow); }
.skip-link:focus { top: 1rem; outline: 3px solid var(--fp-accent); outline-offset: 2px; }
#main-content:focus { outline: none; }
/* Bottom bar labels stay on one line; translations use short "bottom navigation" variants. */
.site-bottom-nav > a > span:last-child, .site-bottom-nav > button > span:last-child { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Dark mode: Tailwind's grey surfaces resolve to the navy tokens, so every page shares one dark palette. */
html.dark .dark\:bg-gray-900 { background-color: var(--fp-surface); }
html.dark .dark\:bg-gray-800, html.dark .dark\:hover\:bg-gray-800:hover { background-color: var(--fp-panel); }
html.dark .dark\:bg-gray-700, html.dark .dark\:hover\:bg-gray-700:hover { background-color: var(--fp-raised); }
html.dark .dark\:bg-gray-600, html.dark .dark\:hover\:bg-gray-600:hover { background-color: var(--fp-raised-2); }
html.dark .dark\:border-gray-600, html.dark .dark\:border-gray-700 { border-color: var(--fp-line); }
/* Buttons and notices take the brand tokens, so every label keeps at least 4.5:1 contrast. */
.fp-btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; min-height: 44px; border: 1px solid transparent; border-radius: 8px; padding: .5rem 1rem; font-size: .9375rem; font-weight: 600; line-height: 1.3; text-align: center; text-decoration: none; cursor: pointer; transition: background-color .15s ease, border-color .15s ease; }
.fp-btn:focus-visible { outline: 3px solid var(--fp-accent); outline-offset: 2px; }
.fp-btn:disabled, .fp-btn[aria-disabled="true"] { cursor: not-allowed; opacity: .6; }
.fp-btn--primary { background: var(--fp-brand); color: #fff; }
.fp-btn--primary:hover:not(:disabled) { background: var(--fp-brand-deep); }
.fp-btn--secondary { border-color: var(--fp-line); background: var(--fp-panel); color: var(--fp-ink); }
.fp-btn--secondary:hover:not(:disabled) { background: var(--fp-surface); }
.fp-btn--danger { background: #b91c1c; color: #fff; }
.fp-btn--danger:hover:not(:disabled) { background: #991b1b; }
html.dark .fp-btn--primary { background: #2563eb; }
html.dark .fp-btn--primary:hover:not(:disabled) { background: #1d4ed8; }
html.dark .fp-btn--secondary:hover:not(:disabled) { background: var(--fp-raised); }
.fp-notice { display: flex; align-items: flex-start; gap: .6rem; border-radius: 8px; padding: .75rem 1rem; font-size: .9375rem; line-height: 1.5; text-align: left; }
.fp-notice > .material-symbols-outlined { flex: none; font-size: 20px; line-height: 1.5rem; }
.fp-notice a, .fp-notice button { color: inherit; font-weight: 650; text-decoration: underline; text-underline-offset: 2px; }
.fp-notice--warning { background: #fef3c7; color: #78350f; }
.fp-notice--success { background: #dcfce7; color: #14532d; }
.fp-notice--error { background: #fee2e2; color: #7f1d1d; }
.fp-notice--info, .fp-notice--debug { background: #dbeafe; color: #1e3a8a; }
html.dark .fp-notice--warning { background: rgb(146 64 14 / .35); color: #fde68a; }
html.dark .fp-notice--success { background: rgb(22 101 52 / .35); color: #bbf7d0; }
html.dark .fp-notice--error { background: rgb(153 27 27 / .35); color: #fecaca; }
html.dark .fp-notice--info, html.dark .fp-notice--debug { background: rgb(30 64 175 / .35); color: #bfdbfe; }
/* Small text links still get a 44px tall tap area. */
.fp-tap { display: inline-flex; align-items: center; min-height: 44px; }
/* Password rules: an icon and a word carry each rule's state, never colour or emoji alone. */
.password-rules { margin-top: .35rem; color: var(--fp-muted); font-size: .875rem; line-height: 1.5; }
.password-rules__list { display: grid; gap: .2rem; margin: 0; padding: 0; list-style: none; }
.password-rules__list[hidden] { display: none; }
.password-rules__list li { display: flex; align-items: center; gap: .35rem; color: #b91c1c; }
.password-rules__list li.is-met { color: #15803d; }
html.dark .password-rules__list li { color: #fca5a5; }
html.dark .password-rules__list li.is-met { color: #86efac; }
.password-rules__list .material-symbols-outlined { font-size: 18px; }
/* Movement log: the player and the move read first; on phones the move and date take their own lines. */
.fp-chip { display: inline-flex; align-items: center; min-height: 44px; border-radius: 999px; padding: 0 1rem; font-size: .875rem; font-weight: 600; text-decoration: none; }
.fp-move-list { margin: 0; padding: 0; list-style: none; }
.fp-move { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; align-items: center; column-gap: .75rem; padding: .6rem 0; }
.fp-move + .fp-move { border-top: 1px solid var(--fp-line); }
.fp-move__body { display: flex; flex-wrap: wrap; align-items: center; column-gap: .5rem; min-width: 0; }
.fp-move__who { display: inline-flex; align-items: center; min-width: 0; }
.fp-move__player { display: inline-block; margin-block: -.65rem; padding-block: .65rem; font-weight: 650; overflow-wrap: anywhere; }
.fp-move__player:hover { text-decoration: underline; }
.fp-move__history { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-block: -.5rem; color: var(--fp-muted); }
.fp-move__history:hover { color: var(--fp-brand); }
.fp-move__detail { color: var(--fp-muted); font-size: .875rem; }
.fp-move__detail a { color: var(--fp-ink); }
.fp-move__detail a:hover { text-decoration: underline; }
.fp-move__when { color: var(--fp-muted); font-size: .8125rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 639px) {
  .fp-move { grid-template-columns: 24px minmax(0, 1fr); align-items: start; }
  .fp-move > .material-symbols-outlined { margin-top: .6rem; }
  .fp-move__body { display: block; }
  .fp-move__detail { display: block; }
  .fp-move__when { grid-column: 2; margin-top: .15rem; }
}
/* Club list: compact rows, so a phone shows the league instead of one logo per screen. */
.fp-club-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: .5rem; }
.fp-club-grid[hidden] { display: none; }
.fp-club { display: flex; align-items: center; gap: .85rem; min-height: 64px; border-radius: 10px; padding: .6rem .9rem; background: var(--fp-surface); color: var(--fp-ink); text-decoration: none; }
.fp-club:hover { background: var(--fp-raised); }
.fp-club img { flex: none; width: 44px; height: 44px; border-radius: 50%; object-fit: contain; }
.fp-club__text { display: grid; flex: 1; min-width: 0; }
.fp-club__name { font-weight: 650; overflow-wrap: anywhere; }
.fp-club__meta { color: var(--fp-muted); font-size: .8125rem; }
.fp-club > .material-symbols-outlined { color: var(--fp-muted); font-size: 20px; }
/* Season registration: what it costs and when it closes first, then the form, then the fine print. */
.fp-reg-subtitle { margin-top: .25rem; color: var(--fp-muted); }
.fp-reg-summary { display: grid; gap: .75rem; border-radius: 12px; padding: 1rem 1.25rem; background: var(--fp-surface); }
.fp-reg-summary dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; margin: 0; }
.fp-reg-summary dt { color: var(--fp-muted); font-size: .8125rem; }
.fp-reg-summary dd { margin: 0; font-size: 1.25rem; font-weight: 750; font-variant-numeric: tabular-nums; }
.fp-reg-summary dd.fp-reg-total { color: var(--fp-brand); }
html.dark .fp-reg-summary dd.fp-reg-total { color: #93c5fd; }
.fp-reg-summary p { margin: 0; font-size: .9375rem; }
.fp-reg-form h2 { font-size: 1.125rem; font-weight: 700; }
.fp-reg-option { display: flex; align-items: center; gap: .75rem; min-height: 56px; border: 1px solid var(--fp-line); border-radius: 10px; padding: .75rem 1rem; font-weight: 600; cursor: pointer; }
.fp-reg-option:has(input:checked) { border-color: var(--fp-brand); background: rgb(22 73 186 / .06); }
html.dark .fp-reg-option:has(input:checked) { border-color: #93c5fd; background: rgb(147 197 253 / .08); }
.fp-reg-option input, .fp-reg-agree input { flex: none; width: 20px; height: 20px; accent-color: var(--fp-brand); }
.fp-reg-agree { display: flex; align-items: flex-start; gap: .75rem; min-height: 44px; padding: .5rem 0; font-size: .9375rem; line-height: 1.5; cursor: pointer; }
.fp-reg-fold { border-radius: 10px; background: var(--fp-surface); }
.fp-reg-fold > summary { display: flex; align-items: center; min-height: 48px; padding: 0 1rem; font-weight: 600; cursor: pointer; }
.fp-reg-fold > div { display: grid; gap: .75rem; padding: 0 1rem 1rem; font-size: .9375rem; line-height: 1.7; }
.fp-reg-form .registration-submit { width: 100%; }
@media (min-width: 640px) { .fp-reg-form .registration-submit { width: auto; } }
/* Manage Club tabs: readable text labels in one scrollable row instead of seven squeezed icon columns. */
.fp-tabs { display: flex; gap: .25rem; overflow-x: auto; border-bottom: 1px solid var(--fp-line); scrollbar-width: none; }
.fp-tabs::-webkit-scrollbar { display: none; }
.fp-tab { display: inline-flex; flex: none; align-items: center; justify-content: center; gap: .4rem; min-height: 48px; border: 0; padding: 0 .9rem; background: none; color: var(--fp-muted); font-size: .9375rem; font-weight: 600; white-space: nowrap; cursor: pointer; }
.fp-tab:hover { color: var(--fp-ink); }
.fp-tab.active { border-bottom-color: var(--fp-brand); color: var(--fp-brand); }
html.dark .fp-tab.active { border-bottom-color: #93c5fd; color: #93c5fd; }
.fp-tab__dot { width: 8px; height: 8px; border-radius: 50%; }
.fp-tab__dot--amber { background: #d97706; }
.fp-tab__dot--red { background: #dc2626; }
@media (min-width: 768px) { .fp-tab { flex: 1 1 auto; } }
/* League table: each club link is a full-height tap target inside an ordinary table cell. */
.fp-table-team { display: flex; align-items: center; gap: .75rem; min-height: 44px; }
.fp-table-team:hover span { text-decoration: underline; }
.fp-points { font-weight: 700; }
/* Result page: a scoreboard header, and one quiet note instead of four empty panels when no player data exists. */
.fp-scoreboard { display: grid; grid-template-columns: minmax(0, 1fr) 7rem minmax(0, 1fr); align-items: center; gap: .75rem; min-height: 96px; margin-top: .5rem; border-radius: 12px; padding: .9rem 1rem; background: var(--fp-surface); }
.fp-scoreboard__team { display: flex; align-items: center; gap: .65rem; min-width: 0; color: var(--fp-ink); font-size: 1.125rem; font-weight: 650; line-height: 1.3; }
.fp-scoreboard__team--home { justify-content: flex-end; text-align: right; }
.fp-scoreboard__team img { flex: none; width: 44px; height: 44px; border-radius: 50%; object-fit: contain; }
.fp-scoreboard__team span { min-width: 0; overflow-wrap: anywhere; }
.fp-scoreboard__team:hover span { text-decoration: underline; }
.fp-scoreboard__score { color: var(--fp-brand); font-size: 2.75rem; font-weight: 700; line-height: 1; text-align: center; font-variant-numeric: tabular-nums; }
html.dark .fp-scoreboard__score { color: #93c5fd; }
.fp-scoreboard__caption { margin: .5rem 0 0; color: var(--fp-muted); font-size: .8125rem; text-align: center; }
.fp-result-empty { display: grid; gap: .75rem; margin-top: 1rem; border-radius: 12px; padding: 1rem 1.25rem; background: var(--fp-surface); }
.fp-result-empty dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; margin: 0; }
.fp-result-empty dt { color: var(--fp-muted); font-size: .8125rem; }
.fp-result-empty dd { margin: 0; font-weight: 650; font-variant-numeric: tabular-nums; }
.fp-result-empty p { margin: 0; color: var(--fp-muted); font-size: .9375rem; }
@media (max-width: 639px) {
  .fp-scoreboard { grid-template-columns: minmax(0, 1fr) 5rem minmax(0, 1fr); padding: .9rem .75rem; }
  .fp-scoreboard__score { font-size: 2.25rem; }
  .fp-scoreboard__team { flex-direction: column-reverse; gap: .35rem; font-size: .9375rem; text-align: center; }
  .fp-scoreboard__team:not(.fp-scoreboard__team--home) { flex-direction: column; }
  .fp-scoreboard__team--home { text-align: center; }
}
/* Scoreboard numerals: scores, kickoff times, points and fees share one condensed face; words keep the text face. */
:root { --fp-numerals: "Barlow Condensed", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; }
.fp-numerals, .fp-scoreboard__score, .home-score strong, .home-fixture-list time strong, .home-season-numbers dd, .fp-points, .fp-reg-summary dd { font-family: var(--fp-numerals); font-variant-numeric: tabular-nums; }
.fp-numerals { font-size: 1.5rem; font-weight: 700; line-height: 1.1; }
.home-score strong { font-size: 1.375rem; font-weight: 700; }
.home-fixture-list time strong { font-size: 1.25rem; }
.home-season-numbers dd { font-size: 1.625rem; }
.fp-reg-summary dd { font-size: 1.625rem; font-weight: 700; }
/* Home on phones: the season heading keeps its two numbers instead of standing empty. */
@media (max-width: 639px) {
  .home-heading { flex-direction: column; align-items: flex-start; gap: .35rem; }
  .home-heading .home-season-numbers { display: flex; gap: 1.75rem; text-align: left; }
}
/* Calmer cards: resting cards separate from the page by a tone step, not a drop shadow; floating things keep theirs. */
.fp-card { background: var(--fp-panel); }
.page-shell .fp-card, .fp-card .fp-card { background: var(--fp-surface); }
a.fp-card:hover { background: var(--fp-raised); }
/* Matchday home: season status and match details open the page. */
.home-heading__text { display: grid; gap: .5rem; min-width: 0; }
.home-heading__actions { display: flex; align-items: flex-start; flex-wrap: wrap; gap: .25rem 1.25rem; }
.home-timezone, .home-preview-note { margin: .25rem 0 .5rem; color: var(--fp-muted); font-size: .8125rem; line-height: 1.5; }
.home-preview-note { margin: .75rem 0 0; }
.home-preview-note--compact { display: none; }
@media (max-width: 639px) {
  .home-preview-note--wide { display: none; }
  .home-preview-note--compact { display: block; }
}
.home-stage { display: flex; flex-wrap: wrap; gap: .25rem 1rem; margin: 0; color: var(--fp-muted); font-size: .9375rem; line-height: 1.5; }
.home-stage > span:first-child { font-weight: 650; }
.home-heading__links { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem 1.25rem; }
.home-team-link { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; color: var(--fp-ink); font-weight: 650; text-decoration: none; }
.home-team-link img { flex: none; width: 24px; height: 24px; object-fit: contain; }
.home-team-link:hover span { text-decoration: underline; }
.home-matchday { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); align-items: start; gap: 1.5rem; margin-bottom: 1.5rem; }
.home-matchday--results, .home-matchday--fixtures { display: block; }
.home-matchday .home-recent { margin-bottom: 0; }
.home-matchday:not(.home-matchday--results) .home-scoreboard { grid-template-columns: minmax(0, 1fr); gap: .6rem; }
@media (min-width: 768px) {
  .home-matchday--fixtures .home-fixture-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 2rem; }
  .home-matchday--fixtures .home-fixture-list li:nth-child(2) { border-top: 0; }
}
@media (max-width: 1023px) { .home-matchday { grid-template-columns: minmax(0, 1fr); gap: 1rem; } }
/* League switcher: every league is one tap away at every width, and the chosen one is filled. */
.fp-league-chips { display: flex; gap: .5rem; overflow-x: auto; margin: 0 0 1rem; padding-bottom: .25rem; scrollbar-width: none; }
.fp-league-chips::-webkit-scrollbar { display: none; }
.fp-league-chip { display: inline-flex; flex: none; align-items: center; gap: .35rem; min-height: 44px; border-radius: 999px; padding: 0 1rem; background: var(--fp-surface); color: var(--fp-ink); font-size: .9375rem; font-weight: 600; white-space: nowrap; text-decoration: none; }
.fp-league-chip:hover { background: var(--fp-raised); }
.fp-league-chip[aria-current="page"] { background: var(--fp-brand); color: #fff; }
html.dark .fp-league-chip[aria-current="page"] { background: #2563eb; }
.fp-league-chip .material-symbols-outlined { font-size: 18px; }
/* Match rows: the names sit beside the score, so a row reads across like a scoreboard. */
.fp-match-day { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; max-width: 760px; margin: 1.75rem 0 .6rem; }
.fp-match-day h2, .fp-match-day h3 { font-size: 1.0625rem; font-weight: 700; }
.fp-match-day span { color: var(--fp-muted); font-size: .8125rem; }
.fp-match-list { display: grid; gap: .5rem; max-width: 760px; }
.fp-match { display: grid; grid-template-columns: minmax(0, 1fr) 5.5rem minmax(0, 1fr); align-items: center; gap: .75rem; min-height: 64px; border-radius: 10px; padding: .7rem 1rem; background: var(--fp-surface); color: var(--fp-ink); text-decoration: none; }
a.fp-match:hover { background: var(--fp-raised); }
.fp-match__team { display: flex; align-items: center; gap: .6rem; min-width: 0; min-height: 44px; font-size: 1rem; font-weight: 650; line-height: 1.3; }
.fp-match__team--home { justify-content: flex-end; text-align: right; }
.fp-match__team img { flex: none; width: 32px; height: 32px; border-radius: 50%; object-fit: contain; }
.fp-match__team span { min-width: 0; overflow-wrap: anywhere; }
a.fp-match__team:hover span { text-decoration: underline; }
.fp-match__centre { color: var(--fp-brand); text-align: center; }
html.dark .fp-match__centre { color: #93c5fd; }
.fp-match__note { display: block; color: var(--fp-muted); font-size: .75rem; font-weight: 500; }
.fp-match--with-competition { row-gap: .15rem; }
.fp-match__competition { grid-column: 1 / -1; min-width: 0; color: var(--fp-muted); text-align: center; font-size: .75rem; line-height: 1.4; overflow-wrap: anywhere; }
.fp-match__kind { color: var(--fp-ink); font-weight: 650; }
@media (max-width: 639px) {
  .fp-match { grid-template-columns: minmax(0, 1fr) 4.25rem minmax(0, 1fr); gap: .5rem; padding: .65rem .75rem; }
  .fp-match__team { gap: .45rem; font-size: .9375rem; }
  .fp-match__team img { width: 28px; height: 28px; }
}

/* Design review, October 2026. */
/* Small, non-interactive status labels (the 44px .fp-chip is for tappable filters). */
.fp-status { display: inline-flex; align-items: center; min-height: 26px; border-radius: 999px; padding: 0 .65rem; background: var(--fp-raised); color: var(--fp-ink); font-size: .8125rem; font-weight: 600; line-height: 1.2; white-space: nowrap; }
.fp-status--ok { background: #dcfce7; color: #14532d; }
.fp-status--warn { background: #fef3c7; color: #78350f; }
.fp-status--brand { background: #dbeafe; color: #1e3a8a; }
.fp-status--danger { background: #fee2e2; color: #7f1d1d; }
html.dark .fp-status--ok { background: rgb(22 101 52 / .35); color: #bbf7d0; }
html.dark .fp-status--warn { background: rgb(146 64 14 / .35); color: #fde68a; }
html.dark .fp-status--brand { background: rgb(30 64 175 / .35); color: #bfdbfe; }
html.dark .fp-status--danger { background: rgb(153 27 27 / .35); color: #fecaca; }

/* Manage Club: the club is the heading, the tabs stay in reach. */
.manage-head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.25rem; }
.manage-head__crest { flex: none; width: 56px; height: 56px; border-radius: 12px; object-fit: contain; background: var(--fp-panel); }
.manage-head__text { min-width: 0; }
.manage-head__title { margin: 0; color: var(--fp-ink); font-size: 1.75rem; font-weight: 800; line-height: 1.15; text-wrap: balance; }
.manage-head__meta { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .5rem; margin: .5rem 0 0; color: var(--fp-muted); font-size: .875rem; }
.manage-tabs { position: sticky; top: 0; z-index: 30; margin-inline: -1rem; padding-inline: 1rem; background: var(--fp-surface); }
@media (max-width: 767px) {
  .manage-tabs { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent); }
}
.fp-tab__count { display: inline-grid; place-items: center; min-width: 1.35rem; height: 1.35rem; border-radius: 999px; padding: 0 .4rem; background: var(--fp-brand); color: #fff; font-size: .75rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.fp-tab__count--alert { background: #b91c1c; }
html.dark .fp-tab__count { background: #2563eb; }
html.dark .fp-tab__count--alert { background: #dc2626; }

/* Applicants: who they are, where they come from, and a confirm that says what accepting does. */
.applicant-list { display: grid; gap: .75rem; margin: 0; padding: 0; list-style: none; }
.applicant { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: .75rem 1rem; border-radius: 10px; padding: 1rem; background: var(--fp-surface); }
.applicant__who { min-width: 0; flex: 1 1 14rem; }
.applicant__name { color: var(--fp-ink); font-size: 1.0625rem; font-weight: 700; text-decoration: underline; text-decoration-color: var(--fp-line); text-underline-offset: 3px; }
.applicant__name:hover { text-decoration-color: currentColor; }
.applicant__meta { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .6rem; margin: .4rem 0 0; color: var(--fp-muted); font-size: .875rem; }
.applicant__block { margin: .5rem 0 0; color: #92400e; font-size: .875rem; }
html.dark .applicant__block { color: #fcd34d; }
.applicant__actions { display: flex; flex-wrap: wrap; align-items: flex-start; gap: .75rem; }
.applicant__accept > summary { list-style: none; }
.applicant__accept > summary::-webkit-details-marker { display: none; }
.applicant__accept[open] > summary { display: none; }
.applicant__confirm { display: grid; gap: .6rem; max-width: 22rem; border-radius: 10px; padding: .85rem 1rem; background: var(--fp-panel); box-shadow: inset 0 0 0 2px var(--fp-brand); color: var(--fp-ink); font-size: .9375rem; }
.applicant-empty { display: grid; justify-items: start; gap: .6rem; color: var(--fp-muted); }
.applicant-empty__title { color: var(--fp-ink); font-size: 1.0625rem; font-weight: 700; }

/* Upload: each match reads as a scoreboard row with its state and one named action. */
.upload-intro { margin: -.25rem 0 1rem; color: var(--fp-muted); font-size: .9375rem; }
.upload-list { display: grid; gap: .75rem; margin: 0; padding: 0; list-style: none; }
.upload-row { display: grid; gap: .5rem; }
.upload-row__match { max-width: none; }
.upload-row__score { font-size: 1.5rem; line-height: 1; }
.upload-row__pending { color: var(--fp-muted); font-size: .8125rem; font-weight: 600; }
.upload-row__actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: .5rem .75rem; }
.upload-row__danger { color: #b91c1c; }
html.dark .upload-row__danger { color: #fca5a5; }

/* Registration: folds look openable, the refund rule sits with the money, the steps say what comes next. */
.fp-reg-fold { background: var(--fp-panel); box-shadow: inset 0 0 0 1px var(--fp-line); }
:is(.fp-disclosure, .fp-reg-fold, .reschedule-log) > summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 44px; cursor: pointer; font-weight: 650; list-style: none; }
:is(.fp-disclosure, .fp-reg-fold, .reschedule-log) > summary::-webkit-details-marker { display: none; }
:is(.fp-disclosure, .fp-reg-fold, .reschedule-log) > summary::after { content: ""; flex: none; width: .55rem; height: .55rem; margin-right: .2rem; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .2s ease; }
:is(.fp-disclosure, .fp-reg-fold, .reschedule-log)[open] > summary::after { transform: rotate(-135deg) translateY(-2px); }
.reg-refund { margin-top: .75rem; color: var(--fp-ink); font-weight: 600; }
.reg-steps { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; margin: .25rem 0 1rem; padding: 0; list-style: none; counter-reset: reg-step; color: var(--fp-muted); font-size: .9375rem; font-weight: 600; }
.reg-steps li { display: inline-flex; align-items: center; gap: .5rem; counter-increment: reg-step; }
.reg-steps li::before { content: counter(reg-step); display: inline-grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--fp-raised); color: var(--fp-muted); font-size: .8125rem; font-variant-numeric: tabular-nums; }
.reg-steps li.is-current { color: var(--fp-ink); }
.reg-steps li.is-current::before { background: var(--fp-brand); color: #fff; }
@media (prefers-reduced-motion: reduce) { :is(.fp-disclosure, .fp-reg-fold, .reschedule-log) > summary::after { transition: none; } }

/* Home: the player's own next match and availability. */
.home-mine { display: grid; gap: .75rem; margin: 0 0 1.5rem; border-radius: var(--fp-radius); padding: 1.1rem 1.25rem; background: var(--fp-panel); }
.home-mine__match { background: var(--fp-surface); }
.home-mine__time { font-size: 1.75rem; line-height: 1; }
.home-mine__answer { display: grid; gap: .6rem; }
.home-mine__answer > p { margin: 0; color: var(--fp-ink); font-weight: 650; }
.home-mine__choices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; }
.home-mine__choices .fp-btn { padding-inline: .5rem; }
@media (max-width: 479px) {
  .home-mine__match .fp-match__team { flex-direction: column; justify-content: center; text-align: center; }
  .home-mine__match .fp-match__team--home { flex-direction: column-reverse; }
  .home-mine__choices { display: flex; flex-wrap: wrap; }
  .home-mine__choices .fp-btn { flex: 1 1 7.5rem; min-width: 0; overflow-wrap: anywhere; }
}

/* Clubs list: league clubs first, recruiting said positively, quiet clubs folded. */
.club-section { margin: 1.25rem 0 0; }
.club-section__title { display: flex; align-items: baseline; gap: .5rem; margin: 0 0 .6rem; color: var(--fp-ink); font-size: 1.0625rem; font-weight: 700; }
.club-section__title span { color: var(--fp-muted); font-size: .875rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.club-quiet { margin-top: 1.25rem; }
.club-quiet > summary { list-style: none; }
.club-quiet > summary::-webkit-details-marker { display: none; }
.club-quiet[open] > summary { margin-bottom: .75rem; }

/* Club page: who the club is, whether it recruits, and what applying does. */
.club-head { display: grid; gap: 1rem; border-radius: var(--fp-radius); padding: 1.25rem; background: var(--fp-panel); color: var(--fp-ink); }
.club-head__id { display: flex; align-items: center; gap: 1rem; }
.club-head__crest { flex: none; width: 72px; height: 72px; border-radius: 50%; object-fit: contain; }
.club-head__text { min-width: 0; }
.club-head__name { margin: 0; font-size: 1.75rem; font-weight: 800; line-height: 1.15; text-wrap: balance; overflow-wrap: anywhere; }
.club-head__league { display: flex; flex-wrap: wrap; gap: .25rem .75rem; margin: .35rem 0 0; color: var(--fp-muted); font-size: .9375rem; font-weight: 600; }
.club-head__slogan { margin: 0; font-size: 1.0625rem; font-weight: 600; }
.club-head__social { display: flex; gap: 1rem; color: var(--fp-muted); }
.club-apply { display: grid; justify-items: start; gap: .6rem; border-top: 1px solid var(--fp-line); padding-top: 1rem; }
.club-apply__status { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .6rem; margin: 0; color: var(--fp-muted); font-size: .9375rem; }
.club-numbers { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; margin: 0 0 .5rem; }
.club-numbers > div { display: flex; align-items: baseline; gap: .4rem; }
.club-numbers dd { margin: 0; color: var(--fp-ink); font-size: 1.75rem; line-height: 1; }
.club-numbers dt { color: var(--fp-muted); font-size: .875rem; font-weight: 600; }
.club-player { min-height: 56px; }
.club-player img { width: 40px; height: 40px; }
.club-player__no { color: var(--fp-muted); font-size: 1.25rem; }

/* More menu: the player's own club first. */
.site-menu__club { display: flex; align-items: center; gap: .8rem; min-height: 64px; margin: 0 0 .75rem; border-radius: 12px; padding: .6rem .9rem; background: var(--fp-surface); color: var(--fp-ink); text-decoration: none; }
.site-menu__club:hover { background: var(--fp-raised); }
.site-menu__club img { flex: none; width: 40px; height: 40px; border-radius: 50%; object-fit: contain; }
.site-menu__club > span:not(.material-symbols-outlined) { display: grid; flex: 1; min-width: 0; }
.site-menu__club strong { font-weight: 700; overflow-wrap: anywhere; }
.site-menu__club small { color: var(--fp-muted); font-size: .8125rem; font-weight: 600; }
.site-menu__club > .material-symbols-outlined { color: var(--fp-muted); }

/* Manage Club attendance: who is in, who has not answered, one remind action. */
.availability-list { display: grid; gap: .9rem; margin: 0; padding: 0; list-style: none; }
.availability-card { display: grid; gap: .6rem; border-radius: 10px; padding: .9rem; background: var(--fp-surface); }
.availability-card .fp-match { padding: 0; background: none; }
.availability-counts { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; }
.availability-missing { margin: 0; color: var(--fp-ink); font-size: .9375rem; }
.availability-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.availability-answers { display: grid; gap: .3rem; margin: 0; padding: 0; list-style: none; font-size: .9375rem; }
.availability-answers__note { display: block; color: var(--fp-muted); font-size: .875rem; }
.contact-health { display: grid; gap: .5rem; margin: 0; }
.contact-health > div { display: flex; align-items: center; justify-content: space-between; gap: 1rem; border-radius: 8px; padding: .6rem .8rem; background: var(--fp-surface); font-size: .9375rem; }
.contact-health dd { margin: 0; font-weight: 650; font-variant-numeric: tabular-nums; }
.contact-health__ok { color: #166534; }
.contact-health__bad { color: #b91c1c; }
html.dark .contact-health__ok { color: #86efac; }
html.dark .contact-health__bad { color: #fca5a5; }
.member-name { display: inline-flex; flex-wrap: wrap; align-items: center; gap: .5rem; }

/* Manage Club reschedule: one row per match, requests answered in place, history folded away. */
.reschedule-list { display: grid; gap: .9rem; margin: 0; padding: 0; list-style: none; }
.reschedule-row { display: grid; gap: .6rem; border-radius: 10px; padding: .9rem; background: var(--fp-surface); }
.reschedule-row .fp-match { padding: 0; background: none; }
.reschedule-row__status { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .6rem; margin: 0; color: var(--fp-muted); font-size: .9375rem; }
.reschedule-request { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem 1rem; border-radius: 8px; padding: .7rem .8rem; background: var(--fp-panel); color: var(--fp-ink); }
.reschedule-request__actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.reschedule-propose > summary, .reschedule-log > summary { list-style: none; }
.reschedule-propose > summary::-webkit-details-marker, .reschedule-log > summary::-webkit-details-marker { display: none; }
.reschedule-propose[open] > summary { display: none; }
.reschedule-propose__form { display: grid; gap: .5rem; max-width: 22rem; }
.reschedule-propose__form label { font-weight: 650; }
.reschedule-propose__form input { min-height: 44px; border-radius: 8px; padding: .5rem .75rem; background: var(--fp-panel); color: var(--fp-ink); font-size: 1rem; box-shadow: inset 0 0 0 1px var(--fp-line); }
.reschedule-propose__hint { margin: 0; color: var(--fp-muted); font-size: .875rem; }
.reschedule-log > summary { justify-content: flex-start; color: var(--fp-brand); }
html.dark .reschedule-log > summary { color: #93c5fd; }
.reschedule-log__list { display: grid; gap: .35rem; margin: 0; padding: 0; list-style: none; font-size: .875rem; }
.reschedule-log__when { color: var(--fp-muted); }

/* Profile: club first, one settings list, Logout last. */
.profile-club { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1rem; margin-top: 1.5rem; border-radius: var(--fp-radius); padding: 1rem 1.25rem; background: var(--fp-panel); }
.profile-club__team { display: flex; align-items: center; gap: .8rem; min-height: 56px; color: var(--fp-ink); text-decoration: none; }
.profile-club__team img { flex: none; width: 48px; height: 48px; border-radius: 50%; object-fit: contain; }
.profile-club__team span { display: grid; }
.profile-club__team strong { font-size: 1.0625rem; font-weight: 700; }
.profile-club__team small { color: var(--fp-muted); font-size: .875rem; }
.profile-club__team:hover strong { text-decoration: underline; }
.profile-club__none { margin: 0; color: var(--fp-ink); font-weight: 600; }
.profile-club__actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.profile-info { display: grid; gap: .1rem; margin: 0; }
.profile-info > div { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .25rem 1rem; padding: .55rem 0; }
.profile-info > div + div { border-top: 1px solid var(--fp-line); }
.profile-info dt { color: var(--fp-muted); font-weight: 600; }
.profile-info dd { margin: 0; color: var(--fp-ink); text-align: right; }
.profile-info__missing { color: #92400e; font-weight: 600; }
html.dark .profile-info__missing { color: #fcd34d; }
.profile-info dd a { margin-left: .35rem; color: var(--fp-brand); font-weight: 600; }
html.dark .profile-info dd a { color: #93c5fd; }
.profile-settings { display: grid; margin-top: 1.5rem; border-radius: var(--fp-radius); background: var(--fp-panel); overflow: hidden; }
.profile-settings a { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 56px; padding: .6rem 1.1rem; color: var(--fp-ink); font-weight: 600; text-decoration: none; }
.profile-settings a + a { border-top: 1px solid var(--fp-line); }
.profile-settings a:hover { background: var(--fp-raised); }
.profile-settings a > span:first-child { display: grid; }
.profile-settings small { color: var(--fp-muted); font-size: .8125rem; font-weight: 500; }
.profile-settings .material-symbols-outlined { color: var(--fp-muted); }
.profile-settings__note { margin: .6rem .25rem 0; color: var(--fp-muted); font-size: .875rem; }
.profile-logout { display: flex; justify-content: center; margin-top: 2.5rem; }

/* Sign-in pages: one heading, a link to the other page, social sign-in labelled. */
.auth-switch { margin: .4rem 0 1.25rem; color: var(--fp-muted); }
.auth-switch a { color: var(--fp-brand); font-weight: 650; text-decoration: underline; text-underline-offset: 3px; }
html.dark .auth-switch a { color: #93c5fd; }
.auth-social { display: grid; gap: .6rem; }
.auth-social__btn { width: 100%; gap: .6rem; }
.auth-social__btn img { flex: none; width: 20px; height: 20px; }
.auth-divider { display: flex; align-items: center; gap: .75rem; margin: 1.25rem 0; color: var(--fp-muted); font-size: .875rem; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--fp-line); }

/* Fixtures with nothing scheduled: where the season stands and what comes next. */
.fixtures-empty { display: grid; justify-items: start; gap: .6rem; max-width: 760px; margin-top: 1.5rem; border-radius: var(--fp-radius); padding: 1.25rem; background: var(--fp-panel); color: var(--fp-ink); }
.fixtures-empty h2 { font-size: 1.125rem; font-weight: 700; }
.fixtures-empty p { color: var(--fp-muted); }

/* Result page: the scoreboard leads; team stats side by side; names stay put while stats scroll. */
.result-summary { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 1rem; margin-top: 1.25rem; }
.result-compare, .result-summary > .result-info { border-radius: var(--fp-radius); padding: 1rem 1.1rem; background: var(--fp-panel); }
.result-compare h2, .result-team__title { margin: 0 0 .6rem; font-size: 1.0625rem; font-weight: 700; }
.result-compare__table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.result-compare__table thead th { padding-bottom: .5rem; color: var(--fp-muted); font-size: .875rem; font-weight: 600; }
.result-compare__table thead th:first-child, .result-compare__table td:first-child { text-align: left; }
.result-compare__table thead th:last-child, .result-compare__table td:last-child { text-align: right; }
.result-compare__table tbody th { color: var(--fp-muted); font-size: .875rem; font-weight: 600; text-align: center; }
.result-compare__table td { font-family: var(--fp-numerals, inherit); font-size: 1.0625rem; font-weight: 650; }
.result-compare__table tbody tr + tr :is(th, td) { border-top: 1px solid var(--fp-line); }
.result-compare__table :is(th, td) { padding: .5rem .25rem; }
.result-compare .team-stats-empty { margin-top: .5rem; color: var(--fp-muted); font-size: .875rem; }
.result-info { display: grid; gap: .35rem; margin: 0; }
.result-info > div { display: flex; justify-content: space-between; gap: 1rem; font-size: .9375rem; }
.result-info dt { color: var(--fp-muted); }
.result-info dd { margin: 0; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; text-align: right; }
.result-teams { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 1rem; }
.result-team { min-width: 0; border-radius: var(--fp-radius); padding: 1rem 1.1rem; background: var(--fp-panel); }
.result-players__scroll { overflow-x: auto; }
.result-players { min-width: 100%; border-collapse: separate; border-spacing: 0; font-size: .9375rem; font-variant-numeric: tabular-nums; }
.result-players :is(th, td) { padding: .5rem .5rem; white-space: nowrap; text-align: right; }
.result-players thead th { color: var(--fp-muted); font-size: .8125rem; font-weight: 600; }
.result-players :is(thead th, tbody th):first-child { position: sticky; left: 0; z-index: 1; background: var(--fp-panel); text-align: left; font-weight: 650; }
.result-players tbody tr + tr :is(th, td) { border-top: 1px solid var(--fp-line); }
.result-players__empty { color: var(--fp-muted); text-align: left !important; }
@media (max-width: 767px) {
  .result-summary, .result-teams { grid-template-columns: minmax(0, 1fr); }
}

/* Stats: the value reads first; phones show one board at a time. */
.stats-tabs { display: none; gap: .4rem; overflow-x: auto; margin: .75rem 0; padding-bottom: .25rem; scrollbar-width: none; }
.stats-tabs::-webkit-scrollbar { display: none; }
.stats-tabs__tab { flex: none; min-height: 44px; border: 0; border-radius: 999px; padding: 0 1rem; background: var(--fp-surface); color: var(--fp-ink); font: inherit; font-size: .9375rem; font-weight: 600; cursor: pointer; }
.stats-tabs__tab[aria-selected="true"] { background: var(--fp-brand); color: #fff; }
html.dark .stats-tabs__tab[aria-selected="true"] { background: #2563eb; }
.stats-boards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; margin-top: .75rem; }
.stats-board { border-radius: var(--fp-radius); padding: 1rem; background: var(--fp-panel); scroll-margin-top: 5rem; }
.stats-board h2 { margin: 0 0 .4rem; font-size: 1.0625rem; font-weight: 700; }
.stats-board__empty { padding: 1rem 0; color: var(--fp-muted); font-size: .9375rem; }
.stats-rows { margin: 0; padding: 0; list-style: none; }
.stats-rows li + li { border-top: 1px solid var(--fp-line); }
.stats-row { display: flex; align-items: center; gap: .6rem; min-height: 44px; padding: .35rem 0; color: var(--fp-ink); text-decoration: none; }
.stats-row:hover .stats-row__name { text-decoration: underline; }
.stats-row__rank { width: 1.5rem; flex: none; color: var(--fp-muted); font-variant-numeric: tabular-nums; text-align: right; }
.stats-row__avatar { flex: none; width: 32px; height: 32px; border-radius: 50%; }
.stats-row__name { min-width: 0; overflow: hidden; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.stats-row__crest { flex: none; width: 16px; height: 16px; border-radius: 50%; object-fit: contain; }
.stats-row__value { margin-left: auto; flex: none; padding-left: .5rem; color: var(--fp-ink); font-size: 1.25rem; }
.stats-rows li:first-child .stats-row__value { font-size: 1.6rem; }
@media (max-width: 767px) {
  .stats-tabs { display: flex; }
  .stats-boards.is-tabbed .stats-board[data-inactive] { display: none; }
}

/* News: each item names its tag, so league announcements stand apart from game news. */
.news-list__meta { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem .6rem; margin: 0; }
.news-list__tag { display: inline-flex; align-items: center; min-height: 22px; border-radius: 6px; padding: 0 .45rem; background: var(--fp-raised); color: var(--fp-ink); font-size: .75rem; font-weight: 650; }

/* About: the league's own numbers and the way in. */
.about-lede { max-width: 40rem; margin: 0 0 1.5rem; color: var(--fp-ink); font-size: 1.1875rem; font-weight: 600; line-height: 1.55; }
.about-facts { display: flex; flex-wrap: wrap; gap: 1rem 2.25rem; margin: 0 0 2rem; }
.about-facts > div { display: flex; flex-direction: column-reverse; }
.about-facts dd { margin: 0; color: var(--fp-ink); font-size: 2.25rem; line-height: 1; }
.about-facts dt { margin-top: .3rem; color: var(--fp-muted); font-size: .875rem; font-weight: 600; }
.about-section { margin-top: 2rem; }
.about-section h2 { margin: 0 0 .9rem; font-size: 1.25rem; font-weight: 700; }
.about-steps { display: grid; gap: .75rem; margin: 0; padding: 0; list-style: none; counter-reset: about-step; }
.about-steps li { display: grid; grid-template-columns: 2.25rem minmax(0, 1fr); gap: .15rem .75rem; border-radius: var(--fp-radius); padding: 1rem; background: var(--fp-panel); counter-increment: about-step; }
.about-steps li::before { content: counter(about-step); grid-row: span 3; display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 50%; background: var(--fp-brand); color: #fff; font-family: var(--fp-numerals); font-size: 1.25rem; }
.about-steps strong { color: var(--fp-ink); }
.about-steps span { color: var(--fp-muted); font-size: .9375rem; }
.about-steps a { justify-self: start; display: inline-flex; align-items: center; min-height: 44px; color: var(--fp-brand); font-weight: 650; }
html.dark .about-steps a, html.dark .about-founder a { color: #93c5fd; }
.about-founder > div { display: flex; align-items: center; gap: 1rem; }
.about-founder img { flex: none; width: 72px; height: 72px; border-radius: 50%; }
.about-founder p { color: var(--fp-ink); }
.about-founder a { display: inline-flex; align-items: center; min-height: 44px; margin-top: .5rem; color: var(--fp-brand); font-weight: 650; }

/* Standings: one table for the league page, the season archive and home. */
.fp-standings-card { overflow-x: auto; margin-top: .75rem; border-radius: var(--fp-radius); padding: .5rem 1rem; background: var(--fp-panel); }
.fp-standings { width: 100%; border-collapse: collapse; font-size: .9375rem; font-variant-numeric: tabular-nums; }
.fp-standings th { padding: .55rem .4rem; color: var(--fp-muted); font-size: .8125rem; font-weight: 600; text-align: right; white-space: nowrap; }
.fp-standings th abbr { text-decoration: none; }
.fp-standings td { padding: .2rem .4rem; text-align: right; }
.fp-standings :is(th, td).fp-standings__club { text-align: left; }
.fp-standings :is(th, td).fp-standings__pos { width: 2rem; color: var(--fp-muted); text-align: center; }
.fp-standings tbody tr + tr { border-top: 1px solid var(--fp-line); }
.fp-standings .fp-table-team { min-width: 0; color: var(--fp-ink); text-decoration: none; }
.fp-standings .fp-table-team img, .fp-standings__initial { flex: none; width: 28px; height: 28px; border-radius: 50%; object-fit: contain; }
.fp-standings__initial { display: inline-grid; place-items: center; background: var(--fp-raised); font-size: .75rem; font-weight: 700; }
.fp-standings__club .fp-status { margin-left: .4rem; }
.fp-standings__points { color: var(--fp-ink); font-size: 1.125rem; font-weight: 750; }
.fp-standings tr.is-mine td { background: var(--fp-raised); font-weight: 700; }
.fp-standings tr.is-champion td { background: #fef9c3; }
html.dark .fp-standings tr.is-champion td { background: rgb(113 63 18 / .35); }
.fp-standings tr:is(.is-mine, .is-champion) td:first-child { border-radius: 6px 0 0 6px; }
.fp-standings tr:is(.is-mine, .is-champion) td:last-child { border-radius: 0 6px 6px 0; }
.fp-standings__badges { display: inline-flex; gap: .25rem; }
.fp-form { display: inline-grid; place-items: center; width: 1.5rem; height: 1.5rem; border-radius: 50%; color: #fff; font-size: .75rem; font-weight: 700; }
.fp-form--drawn { background: #4b5563; }
@media (max-width: 767px) { .fp-standings__wide, .fp-standings__form { display: none; } }
.fp-standings--compact { font-size: 1rem; }
.fp-standings--compact th { padding: .3rem .25rem .65rem; }
@media (max-width: 1023px) { .fp-standings--compact .fp-standings__detail { display: none; } }
@media (max-width: 639px) {
  .fp-standings--compact :is(th, td):nth-child(3) { display: none; }
  .fp-standings--compact tbody tr:nth-child(n+4) { display: none; }
  .fp-standings--compact tbody tr.is-mine { display: table-row; }
}

/* Template leftovers replaced: label/value pairs instead of middle-dot strings. */
.fp-reg-entry { display: grid; grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr)); gap: .5rem 1rem; margin: 0; }
.fp-reg-entry dt { color: var(--fp-muted); font-size: .8125rem; }
.fp-reg-entry dd { margin: 0; font-weight: 650; }
.fp-move__reason { display: inline-block; margin-left: .4rem; color: var(--fp-muted); }
.fp-move__when span + span { margin-left: .4rem; }

/* File inputs share the secondary button look. */
input[type="file"] { max-width: 100%; color: var(--fp-muted); font-size: .9375rem; }
input[type="file"]::file-selector-button { min-height: 44px; margin-right: .75rem; border: 1px solid var(--fp-line); border-radius: 8px; padding: .5rem 1rem; background: var(--fp-panel); color: var(--fp-ink); font: inherit; font-weight: 600; cursor: pointer; }
input[type="file"]::file-selector-button:hover { background: var(--fp-surface); }

/* Measured accessibility fixes: tap areas for inline links, no zoom on focus, readable placeholders and markers. */
.fp-notice a:not(.fp-btn), .fp-move__detail a { padding-block: .75rem; margin-block: -.75rem; }
@media (max-width: 1023px) { input:not([type=checkbox]):not([type=radio]), select, textarea { font-size: 16px; } }
::placeholder { color: var(--fp-muted); opacity: 1; }
html.dark label .text-red-600 { color: #fca5a5; }
.fp-radio { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; padding-right: 1rem; cursor: pointer; }
.fp-radio input { width: 20px; height: 20px; margin: 0; }
.fp-result-empty dl.result-info { grid-template-columns: repeat(auto-fit, minmax(7rem, 1fr)); }
.fp-result-empty .result-info > div { display: grid; justify-content: start; gap: .15rem; }
.fp-result-empty .result-info dd { text-align: left; }

/* Keep the native file chooser in the focus order over the camera label. */
.fp-avatar-picker { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; }
.fp-avatar-input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.fp-avatar-picker:focus-within { outline: 3px solid var(--fp-brand); outline-offset: 3px; }

.fp-standings-toggle { display: none; }
.fp-result-filters { display: flex; flex-wrap: wrap; align-items: end; gap: .75rem; margin: 1rem 0; }
.fp-result-filters > div { display: grid; gap: .35rem; flex: 1 1 12rem; }
.fp-result-filters label { font-weight: 600; }
.fp-result-filters input { width: 100%; min-height: 44px; padding: .5rem .75rem; border: 1px solid var(--fp-line); border-radius: 8px; background: var(--fp-panel); color: var(--fp-ink); font: inherit; }
.fp-result-filters input:focus-visible { outline: 3px solid var(--fp-brand); outline-offset: 2px; }
.fp-result-filters .errorlist { color: var(--fp-ink); }
.fp-result-night-help { color: var(--fp-muted); font-size: .875rem; margin: .75rem 0 1.5rem; max-width: 70ch; }
.fp-match__kickoff { display: block; margin-top: .25rem; font-size: .875rem; font-weight: 500; color: var(--fp-muted); white-space: nowrap; }
@media(max-width: 767px) {
  .fp-standings-toggle { display: flex; align-items: center; gap: .5rem; min-height: 44px; color: var(--fp-muted); font-size: .875rem; }
  .fp-standings-full { width: 1.125rem; height: 1.125rem; accent-color: var(--fp-brand); }
  .fp-standings-card:not(:has(.fp-standings-full:checked)) .fp-standings__detail { display: none; }
  .fp-standings-card:has(.fp-standings-full:checked) :is(.fp-standings__wide, .fp-standings__form) { display: table-cell; }
  .fp-standings__club .fp-table-team span:last-child { white-space: normal; overflow-wrap: anywhere; }
}

html.dark :is(.fp-avatar-picker:focus-within, .fp-result-filters input:focus-visible) { outline-color: var(--fp-accent); }

.fp-form-errors { display: block; margin-block: 1rem; }
.fp-form-errors h2 { margin: 0 0 .5rem; font-size: 1rem; font-weight: 700; }
.fp-form-errors ul, .fp-field-errors { margin: .4rem 0; padding-inline-start: 1.25rem; }
.fp-field-errors { color: #b42318; font-size: .875rem; }
html.dark .fp-field-errors { color: #fca5a5; }
.fp-form-errors:focus { outline: 3px solid var(--fp-brand); outline-offset: 3px; }
html.dark .fp-form-errors:focus { outline-color: var(--fp-accent); }
.fp-confirm-dialog { width: calc(100% - 2rem); max-width: 24rem; max-height: calc(100dvh - 2rem); margin: auto; padding: 0; border: 0; border-radius: 8px; background: var(--fp-panel); color: var(--fp-ink); font: inherit; overflow: auto; }
.fp-confirm-dialog::backdrop { background: rgb(75 85 99 / .5); }
.profile-page { min-width: 0; }
.profile-page :is(h1, h2, p, dd, dt, small, strong), .manage-head__title { overflow-wrap: anywhere; }
.profile-club__team > span { min-width: 0; }
.club-roster-table { table-layout: fixed; }
.club-roster-table :is(th, td) { overflow-wrap: anywhere; }
.club-roster-table :is(th, td):nth-child(2) { width: 6rem; }
.club-roster-table :is(th, td):nth-child(3) { width: 4.5rem; }
@media(max-width: 767px) {
  .club-roster-table :is(th, td) { padding: .5rem .25rem; }
  .fp-standings-card:has(.fp-standings-full:checked) .fp-standings { min-width: 54rem; }
  .fp-standings-card:has(.fp-standings-full:checked) .fp-standings__club { min-width: 12rem; }
}

/* A featured-fixture link lands on the actual game in the chronological list. */
.fp-match[id] { scroll-margin-block-start: 6rem; }
.fp-match:target { outline: 3px solid var(--fp-brand); outline-offset: 3px; }
html.dark .fp-match:target { outline-color: var(--fp-accent); }
