/*
Theme Name: Nyamira Highlands FC
Theme URI: https://nyamirahighlandsfc.co.ke
Author: Sparx Media
Description: Official theme for Nyamira Highlands FC, the Dark Eagles. Players, fixtures, league table and news are managed from the dashboard. After activating, go to Club Settings > Import content.
Version: 1.1.2
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: nyamira-highlands
*/
/* Nyamira Highlands FC — The Dark Eagles */
:root {
  --red: #D3121A;
  --red-deep: #A50D14;
  --white: #FFFFFF;
  --black: #000000;
  --chalk: #EEF0EE;
  --ink-2: #4A4F4C;
  --ink-3: #8E9390;
  --rule: #D7DBD8;
  --dark-rule: #262626;
  --display: "Big Shoulders Display", "Arial Narrow", Impact, sans-serif;
  --body: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0; background: var(--white); color: var(--black);
  font-family: var(--body); font-size: 1.0625rem; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
body.menu-open { overflow: hidden; }
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--red); color: #fff; padding: 10px 14px; font-weight: 600; }
.skip:focus { top: 12px; }
.muted { color: var(--ink-3); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }
.wrap-narrow { max-width: 760px; margin: 0 auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(64px, 9vw, 120px); }
.section--chalk { background: var(--chalk); }
.section--dark { background: var(--black); color: var(--white); }

.h1 { font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: clamp(3.2rem, 9vw, 7.5rem); line-height: .85; letter-spacing: -.01em; }
.h2 { font-family: var(--display); font-weight: 900; font-size: clamp(2.3rem, 5vw, 3.9rem); line-height: .92; text-wrap: balance; }
.h3 { font-family: var(--display); font-weight: 800; font-size: 1.9rem; line-height: 1; margin-bottom: 14px; }
.lead { font-size: 1.1875rem; line-height: 1.55; color: var(--ink-2); max-width: 60ch; }
.section--dark .lead { color: #C9CCCA; }

.section-head { display: flex; justify-content: space-between; align-items: end; gap: 20px 40px; flex-wrap: wrap; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head > div:first-child { display: grid; gap: 12px; max-width: 640px; }
.section-head p { color: var(--ink-2); }
.section--dark .section-head p { color: #B9BDBA; }

/* ---------- reveal on scroll ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease) var(--d, 0ms), transform .7s var(--ease) var(--d, 0ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- buttons, links, tags ---------- */
.btn {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 24px; border: 2px solid transparent; border-radius: 2px;
  font: 700 1rem/1 var(--body); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: color .3s var(--ease), border-color .3s;
}
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease); }
.btn:hover::before { transform: scaleX(1); transform-origin: left; }
.btn--red { background: var(--red); color: var(--white); }
.btn--red::before { background: var(--black); }
.btn--ghost { border-color: currentColor; color: inherit; }
.btn--ghost::before { background: var(--white); }
.btn--ghost:hover { color: var(--black); border-color: var(--white); }
.btn--dark { background: var(--black); color: var(--white); }
.btn--dark::before { background: var(--red); }
.btn--block { width: 100%; }

.link-arrow { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; text-decoration: none; padding: 6px 0; }
.link-arrow::after { content: ""; width: 22px; height: 2px; background: var(--red); transition: width .3s var(--ease); }
.link-arrow:hover::after { width: 40px; }

.tag { display: inline-block; font-size: .78rem; font-weight: 700; padding: 3px 8px; border-radius: 2px; background: var(--black); color: var(--white); line-height: 1.3; }
.tag--red { background: var(--red); }
.tag--muted { background: #E4E6E4; color: var(--ink-2); }
.tag--ok { background: #E3F2E5; color: #1B5E20; }
.tag--light { background: rgba(255,255,255,.18); color: #fff; }

/* ---------- top progress bar ---------- */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 120; pointer-events: none; }
.progress i { display: block; height: 100%; background: var(--red); transform: scaleX(0); transform-origin: left; }

/* ---------- top bar ---------- */
.topbar { background: var(--red); color: var(--white); font-size: .9rem; }
.topbar__inner { max-width: var(--wrap); margin: 0 auto; padding: 8px var(--gutter); display: flex; justify-content: space-between; gap: 16px; }
.topbar__next { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar__next span { font-weight: 800; margin-right: 6px; }
.topbar__link { font-weight: 700; white-space: nowrap; text-underline-offset: 3px; }

/* ---------- main nav ---------- */
.nav { position: sticky; top: 0; z-index: 100; background: var(--black); color: var(--white); border-bottom: 4px solid var(--red); transition: box-shadow .3s; }
.nav.is-scrolled { box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.nav__inner { max-width: var(--wrap); margin: 0 auto; padding: 12px var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 24px; transition: padding .3s var(--ease); }
.nav.is-scrolled .nav__inner { padding-block: 6px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex-shrink: 0; }
.brand img { width: 52px; height: auto; transition: width .3s var(--ease), transform .4s var(--ease); }
.brand:hover img { transform: rotate(-8deg) scale(1.05); }
.nav.is-scrolled .brand img { width: 40px; }
.brand__name { font-family: var(--display); font-weight: 800; font-size: 1.5rem; line-height: .95; display: grid; }
.brand__name b { font-weight: inherit; white-space: nowrap; }
.brand__name em { font-style: normal; color: var(--red); }
.brand__name small { font-family: var(--body); font-weight: 500; font-size: .78rem; color: #B9BDBA; margin-top: 3px; letter-spacing: .01em; }
.nav__menu { display: flex; align-items: center; gap: clamp(14px, 1.8vw, 26px); }
.nav__menu a:not(.btn) {
  position: relative; text-decoration: none; font-weight: 600; font-size: .98rem; color: #D9DCDA; padding: 10px 0;
  transition: color .2s;
}
.nav__menu a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 3px; background: var(--red); transform: scaleX(0); transform-origin: right; transition: transform .3s var(--ease); }
.nav__menu a:not(.btn):hover, .nav__menu a[aria-current="page"] { color: var(--white); }
.nav__menu a:not(.btn):hover::after, .nav__menu a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.nav__cta { min-height: 42px; padding: 0 18px; }
.nav__toggle { display: none; background: none; border: 0; color: inherit; width: 46px; height: 46px; cursor: pointer; }
.nav__bars, .nav__bars::before, .nav__bars::after { display: block; width: 26px; height: 2px; background: currentColor; margin: auto; position: relative; transition: transform .25s var(--ease), background .2s; }
.nav__bars::before, .nav__bars::after { content: ""; position: absolute; left: 0; }
.nav__bars::before { top: -8px; } .nav__bars::after { top: 8px; }
.nav__toggle[aria-expanded="true"] .nav__bars { background: transparent; }
.nav__toggle[aria-expanded="true"] .nav__bars::before { transform: translateY(8px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] .nav__bars::after { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 1060px) {
  .nav__toggle { display: block; }
  .nav__menu {
    position: fixed; inset: 0; top: 0; z-index: -1;
    flex-direction: column; align-items: stretch; justify-content: center; gap: 0;
    background: var(--black); padding: 100px var(--gutter) 40px;
    clip-path: inset(0 0 100% 0); transition: clip-path .45s var(--ease); visibility: hidden;
  }
  .nav__menu.is-open { clip-path: inset(0); visibility: visible; }
  .nav__menu a:not(.btn) { font-family: var(--display); font-weight: 800; font-size: clamp(2rem, 8vw, 3rem); line-height: 1.1; padding: 6px 0; color: #fff; }
  .nav__menu a:not(.btn)::after { height: 4px; bottom: 0; width: 60px; }
  .nav__menu .btn { margin-top: 28px; min-height: 54px; }
  .brand, .nav__toggle { position: relative; z-index: 2; }
}
@media (max-width: 420px) { .brand__name { font-size: 1.25rem; } .brand__name small { display: none; } .topbar__link { display: none; } }

/* ---------- page heading band (inner pages) ---------- */
.pagehead { position: relative; overflow: hidden; background: var(--black); color: var(--white); padding: clamp(56px, 8vw, 104px) 0 clamp(40px, 6vw, 72px); isolation: isolate; }
.pagehead__stripes { position: absolute; top: 0; bottom: 0; right: 0; width: min(46%, 560px); display: grid; grid-template-columns: repeat(5, 1fr); z-index: -1; }
.pagehead__stripes i:nth-child(odd) { background: var(--red); }
.pagehead__stripes::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--black) 0%, rgba(0,0,0,.4) 40%, transparent 100%); }
.js .pagehead__stripes i { transform: scaleY(0); transform-origin: top; }
.js .is-loaded .pagehead__stripes i { transform: scaleY(1); transition: transform .9s cubic-bezier(.7,0,.2,1); }
.js .is-loaded .pagehead__stripes i:nth-child(3) { transition-delay: .08s; }
.js .is-loaded .pagehead__stripes i:nth-child(5) { transition-delay: .16s; }
.pagehead .wrap { display: grid; gap: 16px; }
.pagehead p { color: #C9CCCA; max-width: 56ch; font-size: 1.125rem; }
.crumb { color: #B9BDBA; text-decoration: none; font-weight: 600; font-size: .95rem; display: inline-flex; gap: 8px; align-items: center; width: fit-content; }
.crumb::before { content: "←"; transition: transform .25s var(--ease); }
.crumb:hover { color: #fff; }
.crumb:hover::before { transform: translateX(-4px); }

/* ---------- HOME HERO ---------- */
.hero { position: relative; isolation: isolate; min-height: min(88vh, 860px); display: grid; align-items: end; background: var(--black); color: var(--white); overflow: hidden; }
.hero__photo { position: absolute; inset: -10% 0 0; z-index: -3; background: url("assets/img/hero-lineup.webp") center 28% / cover no-repeat; filter: grayscale(.2) contrast(1.05); will-change: transform; }
.hero__stripes { position: absolute; inset: 0; z-index: -2; display: grid; grid-template-columns: repeat(7, 1fr); pointer-events: none; }
.hero__stripes i { display: block; transform-origin: top; }
.hero__stripes i:nth-child(odd) { background: var(--red); mix-blend-mode: multiply; opacity: .72; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(180deg, transparent 35%, rgba(0,0,0,.78) 100%), linear-gradient(90deg, rgba(0,0,0,.35), transparent 70%); }
.hero__content { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 120px var(--gutter) clamp(48px, 7vw, 88px); display: grid; grid-template-columns: auto 1fr; gap: clamp(20px, 4vw, 56px); align-items: end; }
.hero__crest { width: clamp(150px, 21vw, 280px); filter: drop-shadow(0 10px 30px rgba(0,0,0,.5)); }
.hero__kicker { font-weight: 600; margin-bottom: 14px; }
.hero__title { font-family: var(--display); font-weight: 900; text-transform: uppercase; line-height: .82; letter-spacing: -.01em; display: grid; }
.hero__title .l1 { font-size: clamp(3.6rem, 12vw, 10.5rem); }
.hero__title .l2 { font-size: clamp(2.4rem, 7.6vw, 6.6rem); }
.hero__nick { margin-top: 14px; font-family: var(--display); font-weight: 800; font-size: clamp(1.6rem, 3.2vw, 2.4rem); display: inline-block; background: var(--white); color: var(--black); padding: 2px 14px 4px; }
.hero__motto { margin-top: 18px; font-size: 1.125rem; max-width: 40ch; color: #F1F2F1; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero__scroll { position: absolute; right: var(--gutter); bottom: 28px; display: grid; justify-items: center; gap: 10px; font-size: .8rem; font-weight: 600; color: #ddd; text-decoration: none; }
.hero__scroll i { width: 2px; height: 46px; background: rgba(255,255,255,.3); position: relative; overflow: hidden; }
.hero__scroll i::after { content: ""; position: absolute; left: 0; right: 0; top: -40%; height: 40%; background: var(--red); animation: drip 1.8s var(--ease) infinite; }
@keyframes drip { to { top: 100%; } }
@media (max-width: 720px) {
  .hero { min-height: auto; }
  .hero__content { grid-template-columns: 1fr; padding-top: 64px; }
  .hero__crest { width: 120px; }
  .hero__stripes { grid-template-columns: repeat(5, 1fr); }
  .hero__stripes i:nth-child(n+6) { display: none; }
  .hero__scroll { display: none; }
}
@media (prefers-reduced-motion: no-preference) {
  .js .hero__stripes i { transform: scaleY(0); }
  .js .is-loaded .hero__stripes i { transform: scaleY(1); transition: transform .9s cubic-bezier(.7,0,.2,1); }
  .js .is-loaded .hero__stripes i:nth-child(3) { transition-delay: .08s; }
  .js .is-loaded .hero__stripes i:nth-child(5) { transition-delay: .16s; }
  .js .is-loaded .hero__stripes i:nth-child(7) { transition-delay: .24s; }
  .js .hero__text, .js .hero__crest { opacity: 0; transform: translateY(16px); }
  .js .is-loaded .hero__text, .js .is-loaded .hero__crest { opacity: 1; transform: none; transition: opacity .6s .55s, transform .6s .55s; }
}

/* ---------- MATCH CENTRE ---------- */
.mc { background: var(--black); color: var(--white); padding-bottom: clamp(56px, 8vw, 96px); }
.mc__grid { display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: 16px; margin-top: -1px; padding-top: clamp(40px, 6vw, 64px); }
.mc__card { background: #0E0E0E; border: 1px solid var(--dark-rule); padding: 26px; display: grid; gap: 18px; align-content: start; transition: border-color .3s, transform .4s var(--ease); }
.mc__card:hover { border-color: #444; }
.mc__label { font-weight: 700; color: #B9BDBA; display: flex; gap: 10px; align-items: center; justify-content: space-between; }
.mc__teams { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; text-align: center; }
.mc__teams > div { display: grid; justify-items: center; gap: 10px; font-family: var(--display); font-weight: 800; font-size: 1.35rem; line-height: 1.05; }
.mc__vs { font-family: var(--display); font-weight: 900; font-size: 1.6rem; color: var(--red); }
.mc__info { text-align: center; color: #D9DCDA; }
.cd { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.cd div { background: var(--red); text-align: center; padding: 10px 4px 8px; display: grid; }
.cd b { font-family: var(--display); font-weight: 900; font-size: 2.1rem; line-height: 1; font-variant-numeric: tabular-nums; }
.cd span { font-size: .75rem; font-weight: 600; opacity: .9; }
.mc .fx { background: transparent; border-color: var(--dark-rule); color: #fff; padding: 16px; grid-template-columns: 1fr; }
.mc .fx:hover { transform: none; }
.mc .fx__teams { gap: 6px; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); }
.mc .fx__team { font-size: 1.05rem; line-height: 1.05; gap: 8px; min-width: 0; flex-direction: column; justify-content: center; text-align: center; }
.mc .fx__team--home { flex-direction: column-reverse; text-align: center; }
.mc .fx__team .badge { width: 36px !important; height: 36px !important; font-size: 15px !important; }
.mc .fx__score { min-width: 0; padding: 6px 8px; font-size: 1.35rem; }
.mc .fx__meta { justify-items: start; text-align: left; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; color: #B9BDBA; }
.mc .fx__time { color: #B9BDBA; }
.mc .empty { border: 1px dashed #333; padding: 28px 20px; text-align: center; color: #fff; }
.mc .empty .muted { color: #8E9390; margin-top: 6px; }
.mc .tbl { color: #fff; }
.mc .tbl th, .mc .tbl td { border-color: var(--dark-rule); }
.mc .tbl thead th { color: #8E9390; }
.mc .tbl tr.is-us { background: var(--red); }
.mc .tbl tbody tr:hover { background: #1a1a1a; }
.mc .tbl tbody tr.is-us:hover { background: var(--red-deep); }
.mc .tbl tbody tr:nth-child(n+7) { display: none; }
@media (max-width: 1000px) { .mc__grid { grid-template-columns: 1fr 1fr; } .mc__next { grid-column: 1 / -1; } }
@media (max-width: 640px) { .mc__grid { grid-template-columns: 1fr; } }

/* ---------- badges ---------- */
.badge { border-radius: 50%; flex-shrink: 0; object-fit: contain; }
.badge--gen { display: inline-grid; place-items: center; background: var(--b); color: #fff; font-family: var(--display); font-weight: 900; line-height: 1; box-shadow: inset 0 0 0 3px rgba(255,255,255,.25); }

/* ---------- NEWS ---------- */
.news-home { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; }
.news-side { display: grid; gap: 18px; }
.news-side .ncard { grid-template-columns: 150px 1fr; display: grid; gap: 16px; align-items: center; }
.news-side .ncard__media { aspect-ratio: 4 / 3; }
.news-side .ncard__body { padding: 0; }
.news-side .ncard h3 { font-size: 1.35rem; }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 24px; }
.news-grid .ncard--big { grid-column: span 2; grid-row: span 2; }
.news-grid--3 .ncard--big { grid-column: auto; grid-row: auto; }
.ncard { text-decoration: none; display: grid; align-content: start; gap: 0; color: inherit; }
.ncard__media { position: relative; overflow: hidden; aspect-ratio: 16 / 10; background: var(--chalk); }
.ncard__media::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); }
.ncard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease), filter .5s; }
.ncard:hover .ncard__media img { transform: scale(1.07); }
.ncard:hover .ncard__media::after { transform: scaleX(1); }
.ncard__body { padding-top: 16px; display: grid; gap: 10px; }
.ncard__meta { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; font-size: .88rem; color: var(--ink-2); }
.ncard h3 { font-family: var(--display); font-weight: 800; font-size: 1.6rem; line-height: 1.02; }
.ncard h3 span { background: linear-gradient(var(--red), var(--red)) 0 100% / 0 3px no-repeat; transition: background-size .4s var(--ease); padding-bottom: 2px; }
.ncard:hover h3 span { background-size: 100% 3px; }
.ncard--big h3 { font-size: clamp(2rem, 3.4vw, 2.8rem); }
.ncard--big .ncard__media { aspect-ratio: 16 / 11; }
.ncard__ex { color: var(--ink-2); max-width: 56ch; }
.section--dark .ncard__meta, .section--dark .ncard__ex { color: #B9BDBA; }
@media (max-width: 960px) { .news-home { grid-template-columns: 1fr; } .news-grid { grid-template-columns: 1fr 1fr; } .news-grid .ncard--big { grid-column: 1 / -1; grid-row: auto; } }
@media (max-width: 600px) { .news-grid { grid-template-columns: 1fr; } .news-side .ncard { grid-template-columns: 112px 1fr; } .news-side .ncard h3 { font-size: 1.2rem; } }

/* ---------- filters (squad / news / gallery) ---------- */
.filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 40px; }
.filter button { background: transparent; border: 2px solid var(--rule); padding: 10px 18px; font-weight: 700; cursor: pointer; border-radius: 40px; transition: background .2s, color .2s, border-color .2s; }
.filter button:hover { border-color: var(--black); }
.filter button[aria-pressed="true"] { background: var(--black); border-color: var(--black); color: #fff; }

/* ---------- PLAYER CARDS ---------- */
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 22px; }
.pcard { text-decoration: none; color: inherit; display: grid; align-content: start; }
.pcard__media { position: relative; overflow: hidden; aspect-ratio: 4 / 5; background: linear-gradient(160deg, #1B1B1B 0%, #000 70%); isolation: isolate; }
.pcard__media::before { /* stripe sweep on hover */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: repeating-linear-gradient(90deg, var(--red) 0 22%, transparent 22% 44%);
  opacity: .0; transform: translateX(-30%); transition: opacity .5s, transform .8s var(--ease);
}
.pcard:hover .pcard__media::before { opacity: .55; transform: none; }
.pcard__media > img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.pcard:hover .pcard__media > img, .pcard:hover .silhouette { transform: scale(1.06); }
.silhouette { position: absolute; inset: 0; width: 100%; height: 100%; fill: #2E2E2E; transition: transform .7s var(--ease); }
.silhouette__num { font-family: var(--display); font-weight: 900; font-size: 210px; fill: #161616; }
.pcard__num { position: absolute; top: 12px; left: 16px; font-family: var(--display); font-weight: 900; font-size: 3.4rem; line-height: 1; color: var(--white); transition: color .3s, transform .4s var(--ease); }
.pcard:hover .pcard__num { color: var(--red); transform: translateY(-3px); }
.pcard__cap { position: absolute; top: 16px; right: 16px; width: 34px; height: 34px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; font-weight: 900; font-family: var(--display); font-size: 1.2rem; }
.pcard__over {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 18px 20px; background: var(--red); color: #fff;
  transform: translateY(101%); transition: transform .45s var(--ease);
}
.pcard__over p { font-weight: 800; font-size: .85rem; margin-bottom: 6px; opacity: .9; }
.pcard__over ul { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 2px; font-weight: 600; }
.pcard__more { font-weight: 800; border-bottom: 2px solid #fff; }
.pcard:hover .pcard__over, .pcard:focus-visible .pcard__over { transform: none; }
.pcard__body { padding: 14px 2px 0; display: grid; gap: 4px; justify-items: start; }
.pcard__body h3 { font-family: var(--display); font-weight: 800; font-size: 1.55rem; line-height: 1; }
.pcard__body p { color: var(--ink-2); font-size: .95rem; }
.section--dark .pcard__body p { color: #B9BDBA; }
.pcard__age { white-space: nowrap; }
.pcard__nick { font-family: var(--display); font-weight: 700; font-size: 1.1rem; line-height: 1; color: var(--red); }
.phero__nick { font-family: var(--display); font-weight: 800; font-size: clamp(1.5rem, 3vw, 2.2rem); line-height: 1; color: var(--red); margin-top: -2px; }
.pcard__age::before { content: ""; display: inline-block; width: 4px; height: 4px; border-radius: 50%; background: var(--red); vertical-align: middle; margin: 0 6px 2px 4px; }
.teamshot { margin: 0 0 clamp(40px, 6vw, 64px); position: relative; overflow: hidden; aspect-ratio: 16 / 8; background: var(--chalk); }
.teamshot img { width: 100%; height: 112%; object-fit: cover; object-position: center 60%; transition: transform .9s var(--ease); }
.teamshot:hover img { transform: scale(1.03); }
.teamshot figcaption { position: absolute; left: 0; bottom: 0; background: var(--black); color: #fff; font-weight: 600; padding: 10px 16px; border-left: 6px solid var(--red); }
@media (max-width: 600px) { .teamshot { aspect-ratio: 4 / 3; } .teamshot figcaption { position: static; } }
@media (hover: none) { .pcard__over { display: none; } }

.squad-group { margin-bottom: clamp(48px, 7vw, 80px); }
.squad-group__title { font-family: var(--display); font-weight: 900; font-size: clamp(2rem, 4vw, 3rem); line-height: 1; display: flex; align-items: center; gap: 14px; padding-bottom: 14px; margin-bottom: 24px; border-bottom: 4px solid var(--black); }
.squad-group__title span { font-family: var(--body); font-size: .95rem; font-weight: 700; background: var(--red); color: #fff; padding: 2px 10px; border-radius: 20px; }

/* squad rail on home */
.rail-wrap { position: relative; }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: clamp(220px, 23vw, 280px); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 18px; scrollbar-width: thin; scrollbar-color: var(--red) #222; cursor: grab; }
.rail.is-drag { cursor: grabbing; scroll-snap-type: none; }
.rail.is-drag .pcard { pointer-events: none; }
.rail > * { scroll-snap-align: start; }
.rail-ctrl { display: flex; gap: 8px; }
.rail-ctrl button { width: 50px; height: 50px; border-radius: 50%; border: 2px solid currentColor; background: transparent; color: inherit; cursor: pointer; font-size: 1.3rem; transition: background .2s, color .2s, border-color .2s; }
.rail-ctrl button:hover { background: var(--red); border-color: var(--red); color: #fff; }

/* ---------- PLAYER PROFILE ---------- */
.phero { position: relative; overflow: hidden; background: var(--black); color: #fff; isolation: isolate; }
.phero__stripes { position: absolute; inset: 0 0 0 auto; width: 55%; display: grid; grid-template-columns: repeat(5, 1fr); z-index: -1; opacity: .9; }
.phero__stripes i:nth-child(odd) { background: var(--red); }
.phero__inner { display: grid; grid-template-columns: 1.1fr 1fr; align-items: end; gap: 24px; min-height: 520px; padding-top: 48px; }
.phero__text { display: grid; gap: 10px; padding-bottom: 56px; position: relative; justify-items: start; }
.phero__num { font-family: var(--display); font-weight: 900; font-size: clamp(7rem, 16vw, 13rem); line-height: .8; color: var(--red); }
.phero__name { font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: clamp(3rem, 7vw, 5.6rem); line-height: .86; }
.phero__pos { font-size: 1.15rem; color: #D9DCDA; }
.phero__photo { position: relative; align-self: stretch; min-height: 420px; }
.phero__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.phero__photo .silhouette { fill: rgba(0,0,0,.55); }
.phero__photo .silhouette__num { fill: rgba(255,255,255,.08); }
.js .phero__photo { opacity: 0; transform: translateY(30px); }
.js .is-loaded .phero__photo { opacity: 1; transform: none; transition: opacity .8s .2s, transform .8s .2s var(--ease); }
@media (max-width: 760px) { .phero__inner { grid-template-columns: 1fr; min-height: 0; } .phero__photo { min-height: 320px; order: -1; } .phero__text { padding-bottom: 36px; } .phero__stripes { width: 100%; opacity: .5; } }

.pdetail { display: grid; grid-template-columns: 1.6fr 1fr; gap: clamp(32px, 6vw, 80px); padding-block: clamp(56px, 8vw, 96px); }
.pdetail__main { display: grid; gap: 12px; align-content: start; }
.pdetail__main .lead { margin-bottom: 30px; }
.strengths { list-style: none; padding: 0; margin: 0 0 34px; display: grid; gap: 10px; }
.strengths li { display: flex; align-items: center; gap: 16px; padding: 14px 18px; background: var(--chalk); font-weight: 700; font-size: 1.1rem; border-left: 5px solid var(--red); transition: transform .3s var(--ease), background .3s; }
.strengths li:hover { transform: translateX(6px); background: #E4E7E4; }
.strengths span { font-family: var(--display); font-weight: 900; font-size: 1.5rem; color: var(--red); width: 20px; }
.pstats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; }
.pstats div { background: var(--black); color: #fff; padding: 18px; display: grid; transition: background .3s; }
.pstats div:hover { background: var(--red); }
.pstats b { font-family: var(--display); font-weight: 900; font-size: 3rem; line-height: 1; }
.pstats span { color: #C9CCCA; font-size: .9rem; }
.pstats div:hover span { color: #fff; }
.pdetail__side { background: var(--chalk); padding: 28px; align-self: start; position: sticky; top: 100px; }
.facts { margin: 0; }
.facts div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid var(--rule); }
.facts dt { color: var(--ink-2); }
.facts dd { margin: 0; font-weight: 700; text-align: right; }
.facts .muted { font-weight: 500; }
.pnav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding-bottom: clamp(56px, 8vw, 96px); }
.pnav a { display: grid; gap: 4px; padding: 22px; border: 2px solid var(--rule); text-decoration: none; font-family: var(--display); font-weight: 800; font-size: 1.5rem; line-height: 1; transition: border-color .25s, background .25s, color .25s; }
.pnav a span { font-family: var(--body); font-weight: 600; font-size: .9rem; color: var(--ink-2); }
.pnav a:hover { background: var(--black); color: #fff; border-color: var(--black); }
.pnav a:hover span { color: #B9BDBA; }
.pnav .r { text-align: right; }
@media (max-width: 860px) { .pdetail { grid-template-columns: 1fr; } .pdetail__side { position: static; } }
@media (max-width: 520px) { .pnav { grid-template-columns: 1fr; } .pnav .r { text-align: left; } }

/* ---------- FIXTURES ---------- */
.tabs { display: flex; flex-wrap: wrap; border-bottom: 3px solid var(--black); margin-bottom: 36px; }
.tabs button { background: none; border: 0; padding: 16px 22px 14px; cursor: pointer; color: var(--ink-2); font-weight: 800; font-size: 1.05rem; border-bottom: 5px solid transparent; margin-bottom: -3px; transition: color .2s, border-color .2s; }
.tabs button[aria-selected="true"] { color: var(--black); border-bottom-color: var(--red); }
.tabs button:hover { color: var(--black); }
.month { margin-bottom: 40px; }
.month__title { font-family: var(--display); font-weight: 900; font-size: 2rem; margin-bottom: 12px; }
.fx-list { display: grid; gap: 10px; }
.fx {
  position: relative; display: grid; grid-template-columns: 150px 1fr 230px; align-items: center; gap: 16px 24px;
  padding: 18px 24px; background: #fff; border: 1px solid var(--rule); overflow: hidden; isolation: isolate;
  transition: border-color .3s, box-shadow .3s, transform .35s var(--ease);
}
.fx::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--red); transform: scaleY(0); transition: transform .35s var(--ease); }
.fx:hover { border-color: var(--black); transform: translateX(4px); }
.fx:hover::before { transform: scaleY(1); }
.fx__when { display: grid; }
.fx__day { font-family: var(--display); font-weight: 800; font-size: 1.4rem; line-height: 1.1; }
.fx__time { color: var(--ink-2); font-size: .92rem; }
.fx__teams { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; }
.fx__team { display: flex; align-items: center; gap: 12px; font-family: var(--display); font-weight: 800; font-size: 1.35rem; line-height: 1.05; }
.fx__team--home { justify-content: flex-end; text-align: right; }
.fx__score { white-space: nowrap; font-family: var(--display); font-weight: 900; font-size: 1.3rem; min-width: 64px; text-align: center; background: var(--chalk); padding: 6px 10px; color: var(--ink-2); }
.fx--played .fx__score { background: var(--black); color: #fff; font-size: 1.6rem; }
.fx__score i { font-style: normal; margin: 0 4px; }
.fx__meta { display: grid; gap: 4px; justify-items: end; text-align: right; font-size: .9rem; color: var(--ink-2); }
.res { width: 28px; height: 28px; display: grid; place-items: center; font-weight: 900; color: #fff; border-radius: 2px; }
.res--W { background: #1E7B34; } .res--D { background: #8E9390; } .res--L { background: var(--red); }
@media (max-width: 900px) {
  .fx { grid-template-columns: 1fr; gap: 12px; padding: 16px; }
  .fx__meta { justify-content: start; text-align: left; gap: 4px 14px; flex-wrap: wrap; display: flex; align-items: center; }
  .fx__team { font-size: 1.15rem; }
}
@media (max-width: 460px) { .fx__team .badge { width: 30px !important; height: 30px !important; font-size: 13px !important; } .fx__teams { gap: 8px; } }

/* ---------- LEAGUE TABLE ---------- */
.tbl-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.tbl th, .tbl td { padding: 12px 10px; text-align: center; border-bottom: 1px solid var(--rule); white-space: nowrap; }
.tbl thead th { font-size: .82rem; font-weight: 700; color: var(--ink-2); border-bottom: 3px solid currentColor; }
.tbl .l { text-align: left; }
.tbl th[scope="row"] { font-weight: 700; }
.club { display: inline-flex; align-items: center; gap: 12px; }
.tbl .pts { font-weight: 900; }
.tbl .pos { font-weight: 700; position: relative; }
.tbl tbody tr { transition: background .2s; }
.tbl tbody tr:hover { background: var(--chalk); }
.tbl tr.is-us { background: var(--black); color: #fff; }
.tbl tbody tr.is-us:hover { background: #1a1a1a; }
.tbl tr.z-up .pos { box-shadow: inset 4px 0 0 #1E7B34; }
.tbl tr.z-down .pos { box-shadow: inset 4px 0 0 var(--red); }
.tbl--compact th, .tbl--compact td { padding: 9px 6px; font-size: .95rem; }
.fguide { display: inline-flex; gap: 3px; }
.fguide i { font-style: normal; width: 22px; height: 22px; display: grid; place-items: center; font-size: .75rem; font-weight: 800; color: #fff; }
.fg--W { background: #1E7B34; } .fg--D { background: #8E9390; } .fg--L { background: var(--red); }
.legend { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 18px; font-size: .92rem; color: var(--ink-2); }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.legend i { width: 14px; height: 14px; display: inline-block; }
.notice { display: flex; gap: 14px; align-items: flex-start; padding: 16px 20px; background: #FFF4F4; border-left: 5px solid var(--red); margin-bottom: 28px; }
.notice strong { white-space: nowrap; }
@media (max-width: 640px) { .hide-sm { display: none; } .tbl th, .tbl td { padding: 10px 6px; } .notice { display: grid; gap: 4px; } }

/* ---------- CLUB PAGE ---------- */
.story { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 96px); }
.story__intro { display: grid; gap: 22px; align-content: start; position: sticky; top: 110px; }
.timeline { list-style: none; margin: 0; padding: 0; border-left: 4px solid var(--black); }
.timeline li { position: relative; padding: 0 0 40px 34px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: -12px; top: 8px; width: 20px; height: 20px; background: var(--white); border: 4px solid var(--black); border-radius: 50%; transition: background .3s, transform .3s var(--ease); }
.timeline li:hover::before { background: var(--red); border-color: var(--red); transform: scale(1.2); }
.timeline li.is-now::before { background: var(--red); border-color: var(--red); box-shadow: 0 0 0 6px rgba(211,18,26,.18); }
.timeline__when { font-family: var(--display); font-weight: 800; font-size: 1.6rem; line-height: 1; color: var(--red); }
.timeline h3 { font-size: 1.25rem; font-weight: 700; margin: 8px 0 6px; }
.timeline p { color: var(--ink-2); max-width: 54ch; }
@media (max-width: 880px) { .story { grid-template-columns: 1fr; } .story__intro { position: static; } }

.purpose__grid { display: grid; grid-template-columns: 1fr 1fr 1.2fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.purpose__item { border-top: 4px solid var(--black); padding-top: 18px; }
.purpose__item h3 { font-family: var(--display); font-weight: 800; font-size: 2rem; line-height: 1; margin-bottom: 12px; }
.motto { margin: 0; background: var(--black); color: var(--white); padding: 32px 30px 28px; border-left: 10px solid var(--red); }
.motto p { font-family: var(--display); font-weight: 900; font-size: clamp(2rem, 3.6vw, 2.9rem); line-height: .98; text-transform: uppercase; }
.motto cite { display: block; margin-top: 18px; font-style: normal; color: #B9BDBA; font-size: .95rem; }
@media (max-width: 960px) { .purpose__grid { grid-template-columns: 1fr 1fr; } .motto { grid-column: 1 / -1; } }
@media (max-width: 620px) { .purpose__grid { grid-template-columns: 1fr; } }

.values { margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); column-gap: clamp(32px, 6vw, 80px); }
.values > div { display: grid; grid-template-columns: minmax(150px, 38%) 1fr; gap: 18px; padding: 20px 0; border-top: 1px solid var(--rule); align-items: baseline; transition: padding .3s var(--ease); }
.values > div:hover { padding-left: 10px; }
.values dt { font-family: var(--display); font-weight: 800; font-size: 1.85rem; line-height: 1; transition: color .25s; }
.values > div:hover dt { color: var(--red); }
.values dd { margin: 0; color: var(--ink-2); }
@media (max-width: 860px) { .values { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .values > div { grid-template-columns: 1fr; gap: 6px; } }

.people { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.people li { position: relative; background: #0E0E0E; border: 1px solid var(--dark-rule); padding: 30px 24px 28px; display: grid; gap: 22px; align-content: start; overflow: hidden; isolation: isolate; transition: transform .4s var(--ease), border-color .3s; }
.people li::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--red); transform: translateY(101%); transition: transform .45s var(--ease); }
.people li:hover { transform: translateY(-6px); border-color: var(--red); }
.people li:hover::before { transform: none; }
.mono { width: 76px; height: 76px; display: grid; place-items: center; font-family: var(--display); font-weight: 900; font-size: 2rem; border: 3px solid var(--white); border-radius: 50%; transition: background .3s, color .3s; }
.people li:hover .mono { background: #fff; color: var(--red); }
.mono--photo { overflow: hidden; padding: 0; }
.mono--photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .5s var(--ease); }
.people li:hover .mono--photo img { transform: scale(1.1); }
.people h3 { font-family: var(--display); font-weight: 800; font-size: 1.9rem; line-height: 1; }
.people p { color: #B9BDBA; margin-top: 6px; transition: color .3s; }
.people li:hover p { color: #fff; }
@media (max-width: 960px) { .people { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .people { grid-template-columns: 1fr; } .people li { grid-template-columns: auto 1fr; align-items: center; } .mono { width: 60px; height: 60px; font-size: 1.6rem; } }

.ground { position: relative; min-height: 560px; display: grid; align-items: center; isolation: isolate; color: var(--white); overflow: hidden; }
.ground__photo { position: absolute; inset: -12% 0; z-index: -1; background: url("assets/gallery/jog-line.webp") center 40% / cover; will-change: transform; }
.ground::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(0,0,0,.85) 0%, rgba(0,0,0,.4) 60%, rgba(0,0,0,.15) 100%); }
.ground__card { max-width: var(--wrap); width: 100%; margin: 0 auto; padding: 80px var(--gutter); display: grid; gap: 16px; justify-items: start; }
.ground__card > p:not(.ground__name) { max-width: 44ch; color: #E8EAE8; }
.ground__name { font-family: var(--display); font-weight: 800; font-size: clamp(1.8rem, 3.4vw, 2.6rem); line-height: 1; background: var(--red); padding: 4px 14px 8px; }

.aims { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 96px); }
.aims__list { list-style: none; margin: 0; padding: 0; }
.aims__list li { padding: 12px 0 12px 30px; border-top: 1px solid var(--rule); position: relative; transition: padding .3s var(--ease); }
.aims__list li::before { content: ""; position: absolute; left: 0; top: 21px; width: 14px; height: 8px; background: var(--red); transition: width .3s var(--ease); }
.aims__list li:hover { padding-left: 40px; }
.aims__list li:hover::before { width: 26px; }
.panel ul { list-style: none; margin: 0; padding: 0; }
.panel li { padding: 12px 0; border-bottom: 1px solid var(--rule); }
.aims .tabs { margin-bottom: 8px; }
@media (max-width: 860px) { .aims { grid-template-columns: 1fr; } }

/* ---------- KIT ---------- */
.kit__grid { display: grid; grid-template-columns: 1.3fr 1fr; grid-template-rows: auto auto; gap: 18px; }
.kit__grid figure { margin: 0; position: relative; background: #000; overflow: hidden; }
.kit__main { grid-row: span 2; }
.kit__grid img { width: 100%; height: 100%; object-fit: contain; transition: transform .8s var(--ease); }
.kit__grid figure:hover img { transform: scale(1.05) rotate(-1deg); }
.kit__grid figcaption { position: absolute; left: 0; bottom: 0; background: var(--white); color: var(--black); font-family: var(--display); font-weight: 800; font-size: 1.25rem; padding: 4px 14px 6px; transition: background .3s, color .3s; }
.kit__grid figure:hover figcaption { background: var(--red); color: #fff; }
.swatches { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 14px 28px; color: #D9DCDA; }
.swatches li { display: flex; align-items: center; gap: 10px; }
.swatches span { width: 28px; height: 28px; border-radius: 50%; display: inline-block; }
@media (max-width: 640px) { .kit__grid { grid-template-columns: 1fr 1fr; } .kit__main { grid-column: 1 / -1; grid-row: auto; } }

/* ---------- ABOUT TEASER (home) ---------- */
.teaser { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.teaser__img { position: relative; overflow: hidden; aspect-ratio: 4 / 5; }
.teaser__img img { width: 100%; height: 120%; object-fit: cover; will-change: transform; }
.teaser__img::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 14px; background: var(--red); }
.teaser__text { display: grid; gap: 22px; justify-items: start; }
.facts-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; width: 100%; border-top: 4px solid var(--black); }
.facts-row div { padding: 16px 16px 0 0; display: grid; gap: 2px; }
.facts-row b { font-family: var(--display); font-weight: 900; font-size: 1.6rem; line-height: 1.05; }
.facts-row span { color: var(--ink-2); font-size: .92rem; }
@media (max-width: 860px) { .teaser { grid-template-columns: 1fr; } .teaser__img { aspect-ratio: 16 / 11; } }
@media (max-width: 480px) { .facts-row { grid-template-columns: 1fr; } .facts-row div { padding-bottom: 12px; border-bottom: 1px solid var(--rule); } }

/* ---------- GALLERY ---------- */
.gal { display: grid; gap: 10px; grid-template-columns: repeat(4, 1fr); grid-auto-rows: clamp(150px, 20vw, 270px); grid-auto-flow: dense; }
.g { padding: 0; border: 0; background: var(--chalk); cursor: zoom-in; overflow: hidden; position: relative; }
.g--tall { grid-row: span 2; }
.g--wide { grid-column: span 2; }
.g img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease), filter .5s; }
.g::after { content: attr(data-alt); position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 14px 12px; color: #fff; font-weight: 600; font-size: .92rem; text-align: left; background: linear-gradient(transparent, rgba(0,0,0,.8)); transform: translateY(100%); transition: transform .4s var(--ease); }
.g:hover img, .g:focus-visible img { transform: scale(1.06); }
.g:hover::after, .g:focus-visible::after { transform: none; }
.g:focus-visible { outline-offset: -3px; }
.g[hidden] { display: none; }
.gal-strip { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.gal-strip a { overflow: hidden; aspect-ratio: 3 / 4; display: block; }
.gal-strip img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease), filter .4s; filter: grayscale(.6); }
.gal-strip a:hover img { transform: scale(1.08); filter: none; }
@media (max-width: 760px) { .gal { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 42vw; } .gal-strip { grid-template-columns: repeat(3, 1fr); } .gal-strip a:nth-child(n+4) { display: none; } }

.lightbox { padding: 0; border: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; margin: 0; }
.lightbox::backdrop { background: rgba(0,0,0,.93); }
.lightbox[open] { display: grid; place-items: center; align-content: center; gap: 14px; }
.lightbox img { max-width: min(92vw, 1100px); max-height: 80vh; width: auto; object-fit: contain; }
.lightbox__cap { color: #ddd; text-align: center; padding: 0 70px; }
.lightbox__close, .lightbox__nav { position: fixed; background: rgba(0,0,0,.6); color: #fff; border: 2px solid rgba(255,255,255,.5); width: 52px; height: 52px; border-radius: 50%; font-size: 2rem; line-height: 1; cursor: pointer; display: grid; place-items: center; transition: background .2s, border-color .2s; }
.lightbox__close { top: 16px; right: 16px; }
.lightbox__prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 16px; top: 50%; transform: translateY(-50%); }
.lightbox__close:hover, .lightbox__nav:hover { background: var(--red); border-color: var(--red); }

/* ---------- ARTICLE ---------- */
.ahero { position: relative; overflow: hidden; color: #fff; background: #000; min-height: 520px; display: grid; align-items: end; isolation: isolate; }
.ahero__media { position: absolute; inset: 0; z-index: -1; }
.ahero__media img { width: 100%; height: 120%; object-fit: cover; object-position: center 30%; }
.ahero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0,0,0,.15) 0%, rgba(0,0,0,.85) 100%); }
.ahero__text { display: grid; gap: 16px; padding-block: 120px 56px; }
.ahero .ncard__meta { color: #ddd; }
.ahero__title { font-family: var(--display); font-weight: 900; font-size: clamp(2.6rem, 6vw, 5rem); line-height: .92; max-width: 18ch; }
.article { padding-block: 56px 40px; display: grid; gap: 20px; font-size: 1.125rem; line-height: 1.7; }
.article .lead { font-weight: 600; color: var(--black); font-size: 1.3rem; }
.share { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding-top: 24px; border-top: 1px solid var(--rule); margin-top: 16px; }
.share span { font-weight: 700; margin-right: 6px; }
.share a { text-decoration: none; padding: 8px 14px; border: 2px solid var(--rule); font-weight: 600; font-size: .95rem; transition: background .2s, color .2s, border-color .2s; }
.share a:hover { background: var(--black); color: #fff; border-color: var(--black); }
.more { padding-bottom: clamp(64px, 9vw, 112px); display: grid; gap: 28px; }

/* ---------- CONTACT ---------- */
.join { background: var(--red); color: var(--white); position: relative; overflow: hidden; }
.join::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(90deg, transparent 0 80px, rgba(255,255,255,.06) 80px 160px); }
.join__grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 80px); align-items: start; }
.join__info { display: grid; gap: 22px; justify-items: start; }
.join .lead { color: #FFE9EA; }
.contact { list-style: none; margin: 0; padding: 0; width: 100%; }
.contact li { display: grid; grid-template-columns: 170px 1fr; gap: 12px; padding: 12px 0; border-top: 1px solid rgba(255,255,255,.35); }
.contact span { color: #FFD3D5; font-size: .95rem; }
.contact a { font-weight: 600; text-underline-offset: 4px; word-break: break-word; }
.join .btn--ghost::before { background: #fff; }
.join .btn--ghost:hover { color: var(--red); }
@media (max-width: 860px) { .join__grid { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .contact li { grid-template-columns: 1fr; gap: 2px; } }

.form { background: var(--white); color: var(--black); padding: clamp(24px, 4vw, 40px); display: grid; gap: 18px; border-top: 10px solid var(--black); }
.form > label, .form legend { display: grid; gap: 6px; font-weight: 600; font-size: .98rem; }
.form .opt { font-weight: 400; color: var(--ink-2); }
.form input:not([type=radio]), .form textarea { font: 400 1rem/1.4 var(--body); padding: 12px 14px; border: 2px solid #C5CAC7; border-radius: 2px; background: #fff; color: var(--black); width: 100%; transition: border-color .2s, box-shadow .2s; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--black); box-shadow: 0 0 0 3px rgba(211,18,26,.25); }
.form [aria-invalid="true"] { border-color: var(--red) !important; }
.form fieldset { border: 0; margin: 0; padding: 0; }
.form legend { margin-bottom: 8px; padding: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { position: relative; }
.chips input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chips span { display: inline-block; padding: 10px 16px; border: 2px solid #C5CAC7; font-weight: 600; cursor: pointer; transition: border-color .2s, background .2s, color .2s; }
.chips label:hover span { border-color: var(--black); }
.chips input:checked + span { background: var(--black); color: var(--white); border-color: var(--black); }
.chips input:focus-visible + span { outline: 3px solid var(--red); outline-offset: 2px; }
.form__error { color: var(--red-deep); font-weight: 600; }
.form__note { font-size: .9rem; color: var(--ink-2); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--red); color: #fff; position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, transparent 0 80px, rgba(255,255,255,.07) 80px 160px); }
.cta-band__inner { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding-block: clamp(48px, 7vw, 80px); }
.cta-band h2 { max-width: 16ch; }
.cta-band .btn--dark::before { background: #fff; }
.cta-band .btn--dark:hover { color: var(--red); }

/* ---------- empty states ---------- */
.empty { padding: 40px 24px; border: 2px dashed var(--rule); text-align: center; display: grid; gap: 8px; justify-items: center; }
.empty p:first-child { font-weight: 700; font-size: 1.1rem; }
.empty .btn { margin-top: 10px; }
.empty--page { border: 0; padding-block: 120px; gap: 18px; }

/* ---------- partners ---------- */
.partners { border-top: 1px solid var(--rule); padding-block: 48px; }
.partners__inner { display: grid; grid-template-columns: auto 1fr auto; gap: 24px 40px; align-items: center; }
.partners__title { font-family: var(--display); font-weight: 900; font-size: 1.8rem; line-height: 1; }
.partners__row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.partner { height: 80px; display: grid; place-items: center; border: 1px solid var(--rule); text-decoration: none; transition: border-color .25s, background .25s, color .25s; }
.partner img { max-height: 52px; width: auto; filter: grayscale(1); transition: filter .3s; }
.partner:hover img { filter: none; }
.partner--empty { border-style: dashed; color: var(--ink-3); font-weight: 600; font-size: .92rem; }
.partner--empty:hover { border-color: var(--red); color: var(--red); background: #FFF4F4; }
@media (max-width: 900px) { .partners__inner { grid-template-columns: 1fr; } .partners__row { grid-template-columns: repeat(2, 1fr); } }

/* ---------- footer ---------- */
.foot { background: var(--black); color: #C9CCCA; padding-block: 64px 32px; }
.foot__top { display: grid; grid-template-columns: 1fr 1.6fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid var(--dark-rule); }
.foot__brand { display: flex; gap: 20px; align-items: center; }
.foot__brand img { width: 84px; }
.foot__name { font-family: var(--display); font-weight: 900; font-size: 1.8rem; color: #fff; line-height: 1; }
.foot__motto { margin-top: 8px; max-width: 30ch; }
.foot__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.foot__cols div { display: grid; gap: 8px; align-content: start; }
.foot__cols h3 { color: #fff; font-size: 1rem; margin-bottom: 6px; }
.foot__cols a { text-decoration: none; width: fit-content; background: linear-gradient(var(--red), var(--red)) 0 100% / 0 2px no-repeat; transition: background-size .3s var(--ease), color .2s; word-break: break-word; }
.foot__cols a:hover { color: #fff; background-size: 100% 2px; }
.foot__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-top: 24px; font-size: .9rem; color: var(--ink-3); }
.socials { display: flex; flex-wrap: wrap; gap: 16px; }
.socials a { color: #fff; text-decoration: none; }
.socials a:hover { color: var(--red); }
.socials span { opacity: .55; }
@media (max-width: 900px) { .foot__top { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .foot__cols { grid-template-columns: 1fr 1fr; } }

.totop { position: fixed; right: 18px; bottom: 18px; z-index: 90; width: 50px; height: 50px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; text-decoration: none; font-weight: 900; font-size: 1.3rem; opacity: 0; transform: translateY(16px); pointer-events: none; transition: opacity .3s, transform .3s var(--ease), background .2s; }
.totop.is-on { opacity: 1; transform: none; pointer-events: auto; }
.totop:hover { background: var(--black); }


/* captain feature */
.capcard { position: relative; overflow: hidden; isolation: isolate; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 28px; padding: 28px 32px; margin-bottom: clamp(40px, 6vw, 64px); background: var(--black); color: #fff; text-decoration: none; }
.capcard::before { content: ""; position: absolute; inset: 0 0 0 auto; width: 40%; z-index: -1; background: repeating-linear-gradient(90deg, var(--red) 0 20%, transparent 20% 40%); opacity: .55; transition: width .6s var(--ease), opacity .4s; }
.capcard:hover::before { width: 100%; opacity: .35; }
.capcard__badge { width: 84px; height: 84px; border-radius: 50%; background: var(--red); display: grid; place-items: center; font-family: var(--display); font-weight: 900; font-size: 2.8rem; transition: transform .5s var(--ease); }
.capcard:hover .capcard__badge { transform: rotate(-10deg) scale(1.06); }
.capcard p { color: #C9CCCA; font-weight: 600; }
.capcard h2 { font-family: var(--display); font-weight: 900; font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: .95; text-transform: uppercase; margin: 2px 0 8px; }
.capcard img { width: 120px; transition: transform .6s var(--ease); }
.capcard:hover img { transform: scale(1.08) rotate(6deg); }
@media (max-width: 600px) { .capcard { grid-template-columns: auto 1fr; padding: 22px; gap: 18px; } .capcard img { display: none; } .capcard__badge { width: 60px; height: 60px; font-size: 2rem; } }

/* photo cards: keep shirt numbers readable over bright skies */
.pcard__media::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 42%; z-index: 1; pointer-events: none; background: linear-gradient(180deg, rgba(0,0,0,.62), transparent); }
.pcard__num, .pcard__cap { z-index: 2; text-shadow: 0 2px 14px rgba(0,0,0,.45); }
.pcard__over { z-index: 3; }
/* profile hero: show the full portrait */
.phero__photo { align-self: end; justify-self: end; width: min(100%, 420px); aspect-ratio: 4 / 5; min-height: 0; margin-top: 32px; box-shadow: 0 30px 60px rgba(0,0,0,.45); }
@media (max-width: 760px) { .phero__photo { justify-self: start; width: min(100%, 340px); margin-top: 0; } }

/* leadership cards: large photos (The Club page and home page) */
.people--leaders li { padding: 0; gap: 0; }
.people--leaders .mono { width: 100%; height: auto; aspect-ratio: 1 / 1; border: 0; border-radius: 0; font-size: 4rem; background: #1a1a1a; }
.people--leaders .mono--photo img { object-position: center 22%; }
.people--leaders li > div { padding: 20px 22px 24px; }
.people--leaders li:hover .mono--photo img { transform: scale(1.06); }
.people--three { grid-template-columns: repeat(3, 1fr); }
.people--leaders h3, .people--leaders li:hover p { color: #fff; }
.people--leaders p { color: #B9BDBA; }
@media (max-width: 760px) { .people--three { grid-template-columns: 1fr 1fr; } .people--three li:first-child { grid-column: 1 / -1; } .people--three li:first-child .mono { aspect-ratio: 16 / 10; } }
@media (max-width: 480px) {
  .people--leaders { grid-template-columns: 1fr 1fr; gap: 10px; }
  .people--leaders li { grid-template-columns: 1fr; align-items: start; }
  .people--leaders .mono { width: 100%; height: auto; font-size: 3rem; }
  .people--leaders li > div { padding: 14px 14px 16px; }
  .people--leaders h3 { font-size: 1.35rem; }
}

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

/* WordPress additions */
.hp { position: absolute; left: -9999px; }
.form__ok { font-weight: 700; background: #E3F2E5; color: #1B5E20; padding: 12px 14px; }
.article img { height: auto; }
.article figure { margin: 0; }
.admin-bar .nav { top: 32px; }
@media (max-width: 782px) { .admin-bar .nav { top: 46px; } }
@media (max-width: 600px) { .admin-bar .nav { top: 0; } }
