:root {
  --ref-night: #061827;
  --ref-deep: #0a243b;
  --ref-panel: #0e2d46;
  --ref-cyan: #43c4ed;
  --ref-copy: #b6c9d5;
  --ref-muted: #8ba8ba;
  --ref-white: #f5f9fb;
  --ref-paper: #f5f9fb;
  --ref-ink: #061827;
}

.referee-details-page { --max: 1220px; background: var(--ref-night); color: var(--ref-white); }
.referee-details-page .container { width: min(calc(100% - 48px),var(--max)); margin-inline: auto; }
.referee-details-page .skip-link { position: fixed; z-index: 1000; inset: 12px auto auto 12px; padding: 11px 15px; transform: translateY(calc(-100% - 20px)); border: 1px solid var(--ref-cyan); border-radius: 6px; background: var(--ref-panel); color: var(--ref-white); font-weight: 800; }
.referee-details-page .skip-link:focus { transform: translateY(0); }
.referee-details-page .brand { display: inline-flex; width: 150px; flex: 0 0 auto; }
.referee-details-page .brand img,.ref-footer-brand img { display: block; width: 100%; height: auto; }
.ref-site-header { position: sticky; top: 0; z-index: 40; background: rgba(6,24,39,.98); box-shadow: 0 1px 0 rgba(255,255,255,.1); backdrop-filter: blur(14px); }
.ref-network-bar { min-height: 30px; border-bottom: 1px solid rgba(139,168,186,.13); color: var(--ref-muted); font-size: 8px; font-weight: 850; letter-spacing: .16em; }
.ref-network-bar .container { display: flex; min-height: 30px; align-items: center; justify-content: space-between; gap: 16px; }
.ref-language-switch,.ref-mobile-languages,.ref-footer-languages { display: flex; align-items: center; gap: 7px; }
.ref-language-switch a,.ref-mobile-languages a,.ref-footer-languages a { display: inline-grid; min-width: 27px; height: 21px; place-items: center; border: 1px solid transparent; border-radius: 3px; color: var(--ref-muted); font-size: 8px; font-weight: 900; letter-spacing: .08em; }
.ref-language-switch a[aria-current="page"],.ref-mobile-languages a[aria-current="page"],.ref-footer-languages a[aria-current="page"] { border-color: rgba(67,196,237,.45); color: var(--ref-cyan); }
.ref-header-main { display: flex; min-height: 70px; align-items: center; gap: 30px; }
.referee-details-page .site-nav { display: flex; align-items: center; gap: clamp(15px,2.2vw,29px); margin-left: auto; }
.referee-details-page .site-nav a { color: var(--ref-copy); font-size: 11px; font-weight: 700; transition: color .18s ease; }
.referee-details-page .site-nav a:hover { color: var(--ref-cyan); }
.referee-details-page .header-actions { display: flex; align-items: center; gap: 15px; }
.referee-details-page .login-link { color: var(--ref-copy); font-size: 11px; font-weight: 700; }
.referee-details-page .button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; gap: 11px; max-width: 100%; padding: 0 19px; border: 1px solid transparent; border-radius: 3px; font-size: 12px; font-weight: 850; line-height: 1.25; text-align: center; transition: background .2s ease,color .2s ease,transform .2s ease; }
.referee-details-page .button:hover { transform: translateY(-2px); }
.referee-details-page .button b { flex: 0 0 auto; margin-inline-start: 2px; font-size: 18px; font-weight: 400; line-height: 1; }
.referee-details-page .button-primary { border-color: var(--ref-cyan); background: var(--ref-cyan); color: var(--ref-ink); }
.referee-details-page .button-primary:hover { border-color: var(--ref-cyan); background: var(--ref-cyan); color: var(--ref-ink); }
.referee-details-page .button-small { min-height: 39px; padding-inline: 14px; font-size: 10px; }
.referee-details-page .button-dark { border-color: var(--ref-night); background: var(--ref-night); color: var(--ref-white); }
.referee-details-page .button-dark:hover { border-color: var(--ref-panel); background: var(--ref-panel); }
.ref-mobile-menu { position: relative; display: none; }
.ref-mobile-menu summary { display: grid; width: 39px; height: 39px; place-items: center; border: 1px solid rgba(139,168,186,.35); border-radius: 4px; color: #fff; cursor: pointer; list-style: none; }
.ref-mobile-menu summary::-webkit-details-marker { display: none; }
.ref-mobile-menu summary::before { content: "☰"; font-size: 17px; }
.ref-mobile-menu[open] summary::before { content: "×"; font-size: 24px; }
.ref-mobile-menu-links { position: absolute; inset: calc(100% + 12px) 0 auto auto; z-index: 50; display: grid; width: min(310px,calc(100vw - 28px)); gap: 2px; padding: 12px; border: 1px solid rgba(139,168,186,.25); background: var(--ref-deep); box-shadow: 0 18px 50px rgba(0,0,0,.36); }
.ref-mobile-menu-links > a { padding: 12px; color: var(--ref-copy); font-size: 13px; font-weight: 700; }
.ref-mobile-menu-links > a:hover { background: rgba(67,196,237,.1); color: var(--ref-cyan); }
.ref-mobile-languages { gap: 8px; padding: 10px 10px 4px; border-top: 1px solid rgba(139,168,186,.2); }
.ref-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.ref-eyebrow { display: inline-flex; align-items: center; gap: 9px; margin: 0 0 15px; color: var(--ref-ink); font-size: 9px; font-weight: 900; letter-spacing: .16em; line-height: 1.5; text-transform: uppercase; }
.ref-eyebrow::before { width: 7px; height: 7px; flex: 0 0 7px; border-radius: 50%; background: var(--ref-cyan); content: ""; }

/* Editorial cover: the gear and empty pitch carry the hero, with copy on the dark field. */
.ref-hero { position: relative; min-height: 680px; overflow: hidden; background: var(--ref-night); }
.ref-hero-media,.ref-hero-media::after { position: absolute; inset: 0; }
.ref-hero-media img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 48%; }
.ref-hero-media::after { background: linear-gradient(90deg,rgba(6,24,39,.02) 0%,rgba(6,24,39,.25) 34%,rgba(6,24,39,.93) 64%,rgba(6,24,39,.98) 100%),linear-gradient(0deg,rgba(6,24,39,.9),transparent 27%); content: ""; }
.ref-hero-container { position: relative; display: flex; min-height: 680px; flex-direction: column; justify-content: center; padding-top: 63px; padding-bottom: 107px; }
.ref-hero-content { width: min(58%,650px); margin-left: auto; }
.ref-hero-overline { display: flex; justify-content: space-between; gap: 15px; margin-bottom: 23px; color: var(--ref-cyan); font-size: 9px; font-weight: 900; letter-spacing: .16em; }
.ref-hero-overline span:last-child { color: rgba(245,249,251,.62); }
.ref-hero h1 { margin: 0; color: var(--ref-white); font-size: clamp(52px,6.5vw,84px); font-weight: 850; letter-spacing: -.075em; line-height: .94; }
.ref-hero h1 em { display: block; color: var(--ref-cyan); font-style: normal; }
.ref-hero-lead { max-width: 560px; margin: 24px 0 27px; color: var(--ref-copy); font-size: clamp(15px,1.5vw,18px); line-height: 1.7; }
.ref-hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; }
.ref-hero-actions .button { min-height: 52px; padding-inline: 20px; }
.ref-text-link { display: inline-flex; align-items: center; gap: 9px; color: var(--ref-white); font-size: 12px; font-weight: 750; }
.ref-text-link span { color: var(--ref-cyan); font-size: 18px; }
.ref-hero-caption { position: absolute; bottom: 112px; left: 24px; display: grid; gap: 5px; color: rgba(255,255,255,.74); font-size: 8px; font-weight: 900; letter-spacing: .15em; writing-mode: vertical-rl; transform: rotate(180deg); }
.ref-hero-meta { position: absolute; right: 24px; bottom: 0; left: 24px; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); margin: 0; padding: 0; border-top: 1px solid rgba(255,255,255,.3); list-style: none; }
.ref-hero-meta li { display: flex; min-height: 67px; align-items: center; gap: 10px; padding: 12px clamp(9px,1.5vw,22px); border-right: 1px solid rgba(255,255,255,.16); color: var(--ref-white); font-size: 10px; font-weight: 750; }
.ref-hero-meta li:first-child { padding-left: 0; }
.ref-hero-meta li:last-child { border: 0; }
.ref-check { color: var(--ref-cyan); font-size: 14px; }

/* A continuous three-part workflow ribbon. */
.ref-journey { padding: 38px 0 42px; background: var(--ref-cyan); color: var(--ref-ink); }
.ref-journey-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 25px; }
.ref-journey .ref-eyebrow { margin-bottom: 0; color: var(--ref-ink); }
.ref-journey .ref-eyebrow::before { background: var(--ref-cyan); }
.ref-journey-heading h2 { max-width: 610px; margin: 0; font-size: clamp(21px,2.9vw,34px); font-weight: 820; letter-spacing: -.05em; line-height: 1.05; }
.ref-journey-list { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); margin: 0; padding: 0; border-top: 1px solid rgba(6,24,39,.3); list-style: none; }
.ref-journey-list li { display: grid; grid-template-columns: 42px minmax(0,1fr) 18px; align-items: start; gap: 14px; min-height: 92px; padding: 18px 18px 0 0; border-right: 1px solid rgba(6,24,39,.22); }
.ref-journey-list li + li { padding-left: 19px; }
.ref-journey-list li:last-child { border-right: 0; }
.ref-step-number { color: var(--ref-ink); font-size: 10px; font-weight: 900; letter-spacing: .08em; }
.ref-journey-list h3 { margin: 0; font-size: 14px; font-weight: 850; }
.ref-journey-list p { margin: 5px 0 0; color: var(--ref-deep); font-size: 11px; line-height: 1.55; }
.ref-step-arrow { color: var(--ref-ink); font-size: 16px; }

/* Profile settings as open editorial tiles on a light canvas. */
.ref-profile-section { padding: clamp(70px,8vw,108px) 0; background: var(--ref-paper); color: var(--ref-ink); }
.ref-profile-head { display: grid; grid-template-columns: minmax(0,1fr) minmax(280px,.72fr); align-items: end; column-gap: 64px; margin-bottom: 42px; }
.ref-profile-head .ref-eyebrow { grid-column: 1/-1; }
.ref-profile-head h2,.ref-invitations-head h2,.ref-match-heading h2,.ref-organisers-head h2,.ref-faq-heading h2,.ref-cta h2 { margin: 0; font-size: clamp(37px,5vw,62px); font-weight: 840; letter-spacing: -.07em; line-height: .98; }
.ref-profile-head h2 { grid-column: 1; max-width: 670px; }
.ref-profile-head > p { grid-column: 2; grid-row: 2; margin: 0 0 4px; color: var(--ref-deep); font-size: 14px; line-height: 1.7; }
.ref-preference-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); border-top: 1px solid rgba(6,24,39,.22); border-bottom: 1px solid rgba(6,24,39,.22); }
.ref-preference { position: relative; min-height: 244px; padding: 21px 19px 20px; border-right: 1px solid rgba(6,24,39,.18); }
.ref-preference:first-child { padding-left: 0; }
.ref-preference:last-child { padding-right: 0; border-right: 0; }
.ref-preference-number { display: inline-grid; min-width: 32px; height: 32px; place-items: center; border: 1px solid rgba(67,196,237,.45); border-radius: 50%; color: var(--ref-deep); font-size: 9px; font-weight: 900; }
.ref-preference h3 { margin: 32px 0 8px; color: var(--ref-ink); font-size: 20px; letter-spacing: -.04em; }
.ref-preference p { min-height: 54px; margin: 0; color: var(--ref-deep); font-size: 12px; line-height: 1.6; }
.ref-preference-tag { display: inline-block; margin-top: 22px; color: var(--ref-deep); font-size: 8px; font-weight: 900; letter-spacing: .1em; }

/* The invitation is styled as a fixture sheet with a distinct ticket edge. */
.ref-invitations-section { padding: clamp(70px,8vw,108px) 0; background: var(--ref-deep); color: var(--ref-white); }
.ref-invitations-head { display: flex; align-items: end; justify-content: space-between; gap: 50px; margin-bottom: 36px; }
.ref-invitations-head > div { max-width: 670px; }
.ref-invitations-head .ref-eyebrow { color: var(--ref-cyan); }
.ref-match-heading .ref-eyebrow,.ref-faq-heading .ref-eyebrow { color: var(--ref-ink); }
.ref-invitations-head h2,.ref-match-heading h2,.ref-faq-heading h2 { font-size: clamp(35px,4.6vw,57px); }
.ref-invitations-head > p { max-width: 380px; margin: 0 0 4px; color: var(--ref-copy); font-size: 14px; line-height: 1.7; }
.ref-invite-ticket { position: relative; overflow: hidden; padding: 0 30px; background: var(--ref-paper); color: var(--ref-ink); }
.ref-ticket-top { display: flex; min-height: 49px; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px dashed rgba(6,24,39,.27); color: var(--ref-deep); font-size: 8px; font-weight: 900; letter-spacing: .14em; }
.ref-ticket-status { display: inline-flex; align-items: center; gap: 7px; color: var(--ref-deep); }
.ref-ticket-status::before { width: 6px; height: 6px; border-radius: 50%; background: var(--ref-cyan); content: ""; }
.ref-ticket-body { display: grid; grid-template-columns: minmax(0,.85fr) minmax(0,1.15fr); gap: 36px; padding: 31px 0; }
.ref-ticket-type { color: var(--ref-deep); font-size: 8px; font-weight: 900; letter-spacing: .14em; }
.ref-ticket-title h3 { margin: 10px 0 7px; font-size: clamp(25px,3.4vw,39px); font-weight: 840; letter-spacing: -.06em; line-height: 1; }
.ref-ticket-title p { margin: 0; color: var(--ref-deep); font-size: 12px; line-height: 1.6; }
.ref-ticket-details { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 15px; margin: 0; padding: 3px 0 0; }
.ref-ticket-details div { padding-left: 14px; border-left: 1px solid rgba(6,24,39,.22); }
.ref-ticket-details dt { margin-bottom: 8px; color: var(--ref-deep); font-size: 9px; }
.ref-ticket-details dd { margin: 0; color: var(--ref-ink); font-size: 12px; font-weight: 800; line-height: 1.45; }
.ref-ticket-bottom { display: flex; min-height: 66px; align-items: center; justify-content: space-between; gap: 18px; padding: 13px 0; border-top: 1px dashed rgba(6,24,39,.27); }
.ref-ticket-bottom > p { margin: 0; color: var(--ref-deep); font-size: 9px; line-height: 1.5; }
.ref-ticket-actions { display: flex; flex-wrap: wrap; gap: 7px; }
.ref-ticket-actions span { padding: 8px 11px; border: 1px solid rgba(6,24,39,.22); color: var(--ref-deep); font-size: 9px; font-weight: 850; }
.ref-ticket-actions span:first-child { border-color: var(--ref-ink); background: var(--ref-ink); color: var(--ref-white); }
.ref-tournament-line { display: grid; grid-template-columns: 42px minmax(0,1fr) 25px; align-items: center; gap: 15px; margin-top: 19px; padding: 17px 0; border-top: 1px solid rgba(139,168,186,.19); border-bottom: 1px solid rgba(139,168,186,.19); }
.ref-tournament-mark { display: grid; width: 38px; height: 38px; place-items: center; border: 1px solid rgba(67,196,237,.42); color: var(--ref-cyan); font-size: 12px; font-weight: 900; }
.ref-tournament-line small { color: var(--ref-cyan); font-size: 8px; font-weight: 900; letter-spacing: .12em; }
.ref-tournament-line h3 { margin: 4px 0; color: var(--ref-white); font-size: 15px; }
.ref-tournament-line p { margin: 0; color: var(--ref-muted); font-size: 11px; }
.ref-tournament-arrow { color: var(--ref-cyan); font-size: 17px; }

/* Full width control-room score panel, with event feed beside it. */
.ref-match-section { padding: clamp(70px,8vw,108px) 0; background: var(--ref-paper); color: var(--ref-ink); }
.ref-match-heading { display: flex; align-items: end; justify-content: space-between; gap: 45px; margin-bottom: 36px; }
.ref-match-heading > div { max-width: 700px; }
.ref-match-heading > p { max-width: 385px; margin: 0 0 4px; color: var(--ref-deep); font-size: 14px; line-height: 1.7; }
.ref-match-centre { overflow: hidden; border: 1px solid rgba(6,24,39,.24); background: var(--ref-night); color: var(--ref-white); }
.ref-match-centre-head { display: flex; min-height: 48px; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 21px; border-bottom: 1px solid rgba(139,168,186,.2); color: var(--ref-copy); font-size: 8px; font-weight: 900; letter-spacing: .14em; }
.ref-live-status { display: inline-flex; align-items: center; gap: 7px; color: var(--ref-cyan); }
.ref-live-status::before { width: 6px; height: 6px; border-radius: 50%; background: var(--ref-cyan); box-shadow: 0 0 9px var(--ref-cyan); content: ""; }
.ref-match-centre-body { display: grid; grid-template-columns: minmax(0,1.3fr) minmax(285px,.7fr); }
.ref-scoreboard { position: relative; display: grid; grid-template-columns: 1fr auto 1fr; align-content: center; align-items: center; gap: 22px; min-height: 270px; padding: 35px clamp(22px,5vw,67px); background: radial-gradient(ellipse at center,rgba(67,196,237,.1),transparent 52%),var(--ref-deep); }
.ref-team { display: flex; align-items: center; gap: 12px; }
.ref-team-away { justify-content: flex-end; }
.ref-team strong { max-width: 125px; color: var(--ref-white); font-size: 12px; line-height: 1.4; }
.ref-team-mark { display: grid; width: 43px; height: 43px; flex: 0 0 43px; place-items: center; border: 1px solid rgba(67,196,237,.4); border-radius: 50%; background: rgba(67,196,237,.09); color: var(--ref-cyan); font-size: 12px; font-weight: 900; }
.ref-team-away .ref-team-mark { border-color: rgba(67,196,237,.42); background: rgba(67,196,237,.08); color: var(--ref-cyan); }
.ref-score { display: flex; align-items: center; gap: 12px; color: var(--ref-white); font-size: clamp(38px,5.8vw,68px); font-weight: 900; letter-spacing: -.07em; line-height: 1; }
.ref-score span { color: var(--ref-muted); font-size: .56em; }
.ref-match-period { position: absolute; right: 0; bottom: 0; left: 0; display: flex; justify-content: space-between; gap: 10px; padding: 13px 20px; border-top: 1px solid rgba(139,168,186,.15); color: var(--ref-muted); font-size: 8px; font-weight: 800; letter-spacing: .1em; }
.ref-match-period b { color: var(--ref-muted); font-size: inherit; }
.ref-event-feed { padding: 25px 26px 18px; border-left: 1px solid rgba(139,168,186,.19); }
.ref-feed-label { margin: 0 0 14px; color: var(--ref-cyan); font-size: 8px; font-weight: 900; letter-spacing: .15em; }
.ref-event-feed ol { margin: 0; padding: 0; list-style: none; }
.ref-event-feed li { display: grid; grid-template-columns: 39px 9px minmax(0,1fr); align-items: center; gap: 10px; min-height: 43px; border-bottom: 1px solid rgba(139,168,186,.15); }
.ref-event-feed time { color: var(--ref-muted); font-size: 10px; font-variant-numeric: tabular-nums; }
.ref-event-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ref-cyan); }
.ref-event-feed li strong { color: var(--ref-white); font-size: 11px; }
.ref-feed-footer { display: grid; gap: 5px; margin-top: 16px; }
.ref-feed-footer span { color: var(--ref-muted); font-size: 8px; font-weight: 900; letter-spacing: .1em; }
.ref-feed-footer strong { color: var(--ref-copy); font-size: 10px; line-height: 1.5; }

/* Organiser matching becomes a clean cyan shortlist matrix. */
.ref-organisers-section { padding: clamp(68px,8vw,99px) 0; background: var(--ref-cyan); color: var(--ref-ink); }
.ref-organisers-head { display: grid; grid-template-columns: minmax(0,1fr) minmax(280px,.72fr); align-items: end; column-gap: 65px; margin-bottom: 39px; }
.ref-organisers-head .ref-eyebrow { grid-column: 1/-1; color: var(--ref-ink); }
.ref-organisers-head h2 { grid-column: 1; max-width: 650px; }
.ref-organisers-head > div { grid-column: 2; grid-row: 2; }
.ref-organisers-head > div p { margin: 0; color: var(--ref-deep); font-size: 13px; line-height: 1.65; }
.ref-organisers-head .button { margin-top: 17px; }
.ref-factor-list { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); margin: 0; padding: 0; border-top: 1px solid rgba(6,24,39,.32); border-bottom: 1px solid rgba(6,24,39,.32); list-style: none; }
.ref-factor-list li { display: grid; grid-template-columns: 28px minmax(0,1fr); align-content: start; column-gap: 11px; min-height: 115px; padding: 19px 15px 14px; border-right: 1px solid rgba(6,24,39,.25); }
.ref-factor-list li:first-child { padding-left: 0; }
.ref-factor-list li:last-child { border-right: 0; padding-right: 0; }
.ref-factor-list li > span { grid-row: 1/3; color: var(--ref-ink); font-size: 9px; font-weight: 900; }
.ref-factor-list strong { font-size: 13px; font-weight: 850; }
.ref-factor-list small { grid-column: 2; margin-top: 8px; color: var(--ref-deep); font-size: 10px; line-height: 1.5; }

.ref-faq-section { padding: clamp(68px,8vw,100px) 0; background: var(--ref-paper); color: var(--ref-ink); }
.ref-faq-section .container { display: grid; grid-template-columns: minmax(250px,.7fr) minmax(0,1.3fr); align-items: start; column-gap: clamp(45px,8vw,110px); }
.ref-faq-heading { position: sticky; top: 140px; }
.ref-faq-heading h2 { font-size: clamp(35px,4vw,50px); }
.ref-faq-heading > p:last-child { max-width: 350px; margin: 15px 0 0; color: var(--ref-deep); font-size: 13px; line-height: 1.7; }
.ref-faq-list { border-top: 1px solid rgba(6,24,39,.22); }
.ref-faq-list details { border-bottom: 1px solid rgba(6,24,39,.2); }
.ref-faq-list summary { position: relative; padding: 19px 38px 19px 0; color: var(--ref-ink); font-size: 14px; font-weight: 780; cursor: pointer; list-style: none; }
.ref-faq-list summary::-webkit-details-marker { display: none; }
.ref-faq-list summary::after { position: absolute; inset: 17px 5px auto auto; color: var(--ref-deep); font-size: 20px; font-weight: 400; content: "+"; }
.ref-faq-list details[open] summary::after { content: "−"; }
.ref-faq-list details p { max-width: 650px; margin: -1px 0 19px; color: var(--ref-deep); font-size: 12px; line-height: 1.75; }

.ref-cta { padding: clamp(45px,6vw,70px) 0; background: var(--ref-cyan); color: var(--ref-ink); }
.ref-cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 38px; }
.ref-cta .ref-eyebrow { color: var(--ref-ink); }
.ref-cta .ref-eyebrow::before { background: var(--ref-cyan); }
.ref-cta-inner > div { max-width: 780px; }
.ref-cta h2 { max-width: 720px; font-size: clamp(36px,4.7vw,58px); }
.ref-cta-inner > div > p:last-child { max-width: 640px; margin: 13px 0 0; color: var(--ref-deep); font-size: 13px; line-height: 1.65; }
.ref-cta .button-dark { flex: 0 0 auto; }

.ref-site-footer { padding: 48px 0 22px; background: var(--ref-night); color: var(--ref-white); }
.ref-footer-main { display: grid; grid-template-columns: 1.35fr 1fr 1fr .8fr; gap: 35px; padding-bottom: 35px; }
.ref-footer-brand { display: block; width: 155px; }
.ref-footer-brand-block p { max-width: 220px; margin: 14px 0 0; color: var(--ref-muted); font-size: 11px; line-height: 1.65; }
.ref-footer-column { display: flex; align-items: flex-start; flex-direction: column; gap: 9px; }
.ref-footer-column h2 { margin: 0 0 5px; color: var(--ref-muted); font-size: 8px; font-weight: 900; letter-spacing: .14em; }
.ref-footer-column > a { color: var(--ref-copy); font-size: 10px; font-weight: 650; }
.ref-footer-column > a:hover,.ref-footer-bottom a:hover { color: var(--ref-cyan); }
.ref-footer-languages { gap: 5px; }
.ref-footer-languages a { border-color: rgba(139,168,186,.2); }
.ref-footer-bottom { display: flex; justify-content: space-between; gap: 18px; padding-top: 17px; border-top: 1px solid rgba(139,168,186,.14); color: var(--ref-muted); font-size: 9px; }
.ref-footer-bottom a { color: var(--ref-copy); }

@media (max-width: 980px) {
  .referee-details-page .site-nav { gap: 13px; }
  .referee-details-page .site-nav a { font-size: 10px; }
  .referee-details-page .brand { width: 134px; }
  .ref-header-main { gap: 18px; }
  .ref-match-centre-body { grid-template-columns: minmax(0,1.1fr) minmax(260px,.9fr); }
  .ref-scoreboard { gap: 13px; padding-inline: 28px; }
  .ref-score { gap: 8px; font-size: 50px; }
  .ref-team strong { font-size: 10px; }
  .ref-factor-list li { padding-inline: 10px; }
}
@media (max-width: 760px) {
  .referee-details-page .container { width: min(calc(100% - 36px),var(--max)); }
  .ref-network-bar { font-size: 7px; }
  .ref-network-bar .container { min-height: 27px; }
  .ref-language-switch { display: none; }
  .ref-header-main { min-height: 64px; gap: 12px; }
  .referee-details-page .brand { width: 128px; }
  .referee-details-page .site-nav { display: none; }
  .referee-details-page .header-actions { display: none; }
  .ref-mobile-menu { display: block; order: 3; margin-left: auto; }
  .referee-details-page .ref-mobile-menu-links > .ref-mobile-cta { width: 100%; min-height: 38px; margin: 7px 0; padding: 0 9px; color: var(--ref-ink); font-size: 10px; line-height: 1; white-space: nowrap; }
  .ref-hero,.ref-hero-container { min-height: 700px; }
  .ref-hero-container { justify-content: flex-end; padding-top: 80px; padding-bottom: 113px; }
  .ref-hero-media img { object-position: 36% center; }
  .ref-hero-media::after { background: linear-gradient(0deg,rgba(6,24,39,.98) 4%,rgba(6,24,39,.84) 45%,rgba(6,24,39,.16) 100%),linear-gradient(90deg,rgba(6,24,39,.06),rgba(6,24,39,.35)); }
  .ref-hero-content { width: 100%; margin: 0; }
  .ref-hero h1 { max-width: 600px; font-size: clamp(49px,11vw,68px); }
  .ref-hero-lead { max-width: 560px; margin: 18px 0 21px; font-size: 14px; }
  .ref-hero-overline { margin-bottom: 15px; font-size: 8px; }
  .ref-hero-caption { display: none; }
  .ref-hero-meta { right: 18px; left: 18px; grid-template-columns: repeat(2,minmax(0,1fr)); }
  .ref-hero-meta li { min-height: 45px; padding: 8px; border-bottom: 1px solid rgba(255,255,255,.13); font-size: 9px; }
  .ref-hero-meta li:first-child { padding-left: 8px; }
  .ref-hero-meta li:nth-child(2) { border-right: 0; }
  .ref-hero-meta li:nth-child(3),.ref-hero-meta li:nth-child(4) { border-bottom: 0; }
  .ref-journey { padding: 34px 0; }
  .ref-journey-heading { align-items: flex-start; flex-direction: column; gap: 10px; }
  .ref-journey-list { grid-template-columns: 1fr; }
  .ref-journey-list li,.ref-journey-list li + li { min-height: auto; grid-template-columns: 34px minmax(0,1fr) 18px; padding: 14px 0; border-right: 0; border-bottom: 1px solid rgba(6,24,39,.2); }
  .ref-journey-list li:last-child { border-bottom: 0; }
  .ref-profile-head,.ref-invitations-head,.ref-match-heading,.ref-organisers-head { display: block; }
  .ref-profile-head > p,.ref-invitations-head > p,.ref-match-heading > p,.ref-organisers-head > div { margin-top: 16px; }
  .ref-profile-head h2,.ref-invitations-head h2,.ref-match-heading h2,.ref-organisers-head h2,.ref-faq-heading h2,.ref-cta h2 { font-size: clamp(36px,9vw,48px); }
  .ref-profile-head { margin-bottom: 30px; }
  .ref-preference-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .ref-preference { min-height: 215px; padding: 17px 12px; border-bottom: 1px solid rgba(6,24,39,.18); }
  .ref-preference:first-child { padding-left: 0; }
  .ref-preference:nth-child(2) { border-right: 0; padding-right: 0; }
  .ref-preference:nth-child(3) { padding-left: 0; border-bottom: 0; }
  .ref-preference:last-child { border-bottom: 0; padding-right: 0; }
  .ref-preference h3 { margin-top: 22px; font-size: 18px; }
  .ref-preference p { min-height: 62px; font-size: 11px; }
  .ref-preference-tag { margin-top: 13px; font-size: 7px; }
  .ref-invite-ticket { padding-inline: 17px; }
  .ref-ticket-body { grid-template-columns: 1fr; gap: 21px; padding: 23px 0; }
  .ref-ticket-details { gap: 8px; }
  .ref-ticket-details div { padding-left: 9px; }
  .ref-ticket-details dd { font-size: 10px; }
  .ref-ticket-bottom { align-items: flex-start; flex-direction: column; }
  .ref-tournament-line { grid-template-columns: 36px minmax(0,1fr) 18px; gap: 10px; }
  .ref-tournament-mark { width: 34px; height: 34px; }
  .ref-match-centre-body { grid-template-columns: 1fr; }
  .ref-scoreboard { min-height: 220px; grid-template-columns: 1fr auto 1fr; padding: 30px 17px; }
  .ref-score { gap: 6px; font-size: clamp(39px,10vw,56px); }
  .ref-team { flex-direction: column; gap: 8px; text-align: center; }
  .ref-team-away { flex-direction: column-reverse; }
  .ref-team strong { font-size: 10px; }
  .ref-team-mark { width: 36px; height: 36px; flex-basis: 36px; }
  .ref-match-period { padding-inline: 13px; font-size: 7px; }
  .ref-event-feed { padding: 20px 18px; border-top: 1px solid rgba(139,168,186,.19); border-left: 0; }
  .ref-organisers-head { margin-bottom: 28px; }
  .ref-organisers-head .button { margin-top: 17px; }
  .ref-factor-list { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .ref-factor-list li { min-height: 110px; padding: 15px 10px; border-bottom: 1px solid rgba(6,24,39,.23); }
  .ref-factor-list li:first-child,.ref-factor-list li:nth-child(3) { padding-left: 0; }
  .ref-factor-list li:nth-child(2) { border-right: 0; padding-right: 0; }
  .ref-factor-list li:nth-child(3),.ref-factor-list li:nth-child(4) { border-bottom: 0; }
  .ref-factor-list li:last-child { padding-right: 0; }
  .ref-faq-section .container { grid-template-columns: 1fr; row-gap: 25px; }
  .ref-faq-heading { position: static; }
  .ref-cta-inner { align-items: flex-start; flex-direction: column; gap: 23px; }
  .ref-footer-main { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 28px 22px; }
  .ref-footer-brand-block { grid-column: 1/-1; }
}
@media (max-width: 420px) {
  .referee-details-page .container { width: min(calc(100% - 28px),var(--max)); }
  .referee-details-page .brand { width: 112px; }
  .ref-mobile-menu summary { width: 35px; height: 35px; }
  .ref-hero h1 { font-size: 47px; }
  .ref-hero { min-height: 715px; }
  .ref-hero-container { min-height: 715px; padding-bottom: 112px; }
  .ref-hero-actions { align-items: stretch; flex-direction: column; gap: 13px; }
  .ref-text-link { justify-content: center; min-height: 38px; }
  .ref-ticket-details { grid-template-columns: 1fr; }
  .ref-ticket-details div { padding: 8px 0 0; border-top: 1px solid rgba(6,24,39,.16); border-left: 0; }
  .ref-ticket-details dt { margin-bottom: 4px; }
  .ref-factor-list li { grid-template-columns: 22px minmax(0,1fr); column-gap: 7px; }
}
@media (prefers-reduced-motion: reduce) { .referee-details-page *, .referee-details-page *::before, .referee-details-page *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: 1ms !important; animation-iteration-count: 1 !important; } }
