:root {
  --navy-950: #041334;
  --navy-900: #071e58;
  --navy-800: #0a2d7a;
  --blue-700: #0e3fae;
  --blue-600: #135be2;
  --blue-100: #e9f0fd;
  --white: #fff;
  --paper: #f6f8fd;
  --line: #d5deee;
  --ink: #071a3f;
  --muted: #52617c;
  --gold: #f0b63d;
  --font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-ui: "Barlow Semi Condensed", "Arial Narrow", sans-serif;
  --font-body: Inter, Arial, sans-serif;
  --gutter: 48px;
  --header-h: 102px;
  --radius: 4px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 24px); }
body { margin: 0; color: var(--ink); background: white; font: 1rem/1.6 var(--font-body); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .16em; }
button, select { font: inherit; }
button { cursor: pointer; color: inherit; }
figure, p, h1, h2, h3, dl, dd { margin: 0; }
p + p { margin-top: 1em; }
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 900;
  font-style: italic;
  text-transform: uppercase;
  line-height: .98;
  letter-spacing: -.01em;
  color: var(--navy-900);
  overflow-wrap: break-word;
}
h1 { font-size: clamp(3rem, 5.7vw, 5.6rem); }
h2 { font-size: clamp(2rem, 3vw, 3.1rem); }
h3 { font-size: clamp(1.55rem, 2.5vw, 2.45rem); }
:focus-visible { outline: 3px solid var(--blue-600); outline-offset: 3px; }
[hidden] { display: none !important; }
:where(.hero, .performance, .page-head, .match-head, .stadium-feature, .site-header .ribbon) :focus-visible {
  outline-color: var(--gold);
}
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip:focus { position: fixed; z-index: 100; top: 8px; left: 8px; background: #fff; padding: 8px 16px; }
.wrap { width: min(calc(100% - 2 * var(--gutter)), 1360px); margin-inline: auto; min-width: 0; }
.narrow { max-width: 1040px; }
.stack { display: grid; gap: 38px; min-width: 0; }
.stack > *, .split > * { min-width: 0; }
.stack > :where(.button) { justify-self: start; }
.split { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px; }
.page-body { padding-block: clamp(26px, 5vw, 64px); }
.home-section { padding-block: clamp(34px, 4vw, 54px); }
.eyebrow {
  font-family: var(--font-ui);
  font-size: .9rem;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
  line-height: 1.25;
}
.muted { color: var(--muted); font-size: .94rem; }
.notice, .panel { background: var(--paper); border: 1px solid var(--line); padding: clamp(17px, 2.6vw, 30px); border-radius: var(--radius); }
.panel > * + *, section > h2 + p, section > h2 + .split, section > h2 + .fact-grid, section > h2 + .table-wrap { margin-top: 14px; }
.button, .text-link, .nav-link {
  font: 800 1rem/1.13 var(--font-ui);
  text-transform: uppercase;
  text-decoration: none;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  max-width: 100%;
  padding: 10px 19px;
  background: var(--navy-800);
  border: 1px solid var(--navy-800);
  color: white;
  border-radius: 3px;
  text-align: center;
}
.button:hover { background: var(--blue-700); border-color: var(--blue-700); color: white; }
.button.white { color: var(--navy-900); background: white; border-color: white; }
.button.white:hover { background: var(--blue-100); border-color: var(--blue-100); color: var(--navy-900); }
.button.outline { background: transparent; color: var(--navy-800); border-color: var(--navy-800); }
.button.outline:hover { color: white; background: var(--blue-700); }
.button.outline.white { color: white; border-color: white; background: #071e5850; }
.button.outline.white:hover { background: white; color: var(--navy-900); }
.text-link { color: var(--navy-800); white-space: nowrap; }
.text-link:hover { text-decoration: underline; }
.title-row { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 20px; margin-bottom: 20px; }
.title-row > span { flex: 1; min-width: 12px; height: 1px; background: var(--line); }
.title-row > a { align-self: center; }
.actions, .jump-links { display: flex; flex-wrap: wrap; gap: 12px; }
.jump-links a:not(.button) {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--navy-800);
  font: 800 1rem var(--font-ui);
  text-decoration: none;
  background: var(--paper);
}
.jump-links a:not(.button):hover { background: var(--blue-100); border-color: var(--blue-600); }
.site-header { position: sticky; top: 0; z-index: 10; background: white; box-shadow: 0 1px 0 #04133422; }
.ribbon {
  min-height: 29px;
  background: linear-gradient(104deg,var(--navy-800),var(--navy-900));
  color: white;
  font: 800 .91rem/1.2 var(--font-ui);
  text-transform: uppercase;
}
.ribbon-inner { min-height: 29px; display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.ribbon-inner > a { text-decoration: none; }
.ribbon-inner > a:hover { text-decoration: underline; }
.ribbon-social { display: flex; gap: 16px; font-size: .81rem; }
.header-inner { min-height: 73px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; flex: 0 0 auto; gap: 13px; text-decoration: none; }
.brand span { color: var(--navy-900); font: 800 1.55rem/.87 var(--font-display); text-transform: uppercase; }
.brand .crest { width: 62px; height: 62px; }
.brand .crest + span { border-left: 1px solid #8496bd; padding-left: 13px; }
#primary-navigation { display: flex; flex: 0 1 auto; align-items: center; gap: clamp(8px, 1.38vw, 24px); }
.nav-link { min-height: 48px; display: inline-flex; align-items: center; border: 0; background: transparent; padding: 0 4px; position: relative; white-space: nowrap; }
.nav-link.active::after { position: absolute; height: 3px; background: var(--blue-600); content: ""; left: 0; right: 0; bottom: 5px; }
.nav-link:hover { color: var(--blue-700); }
.nav-group { position: relative; }
.toggle-symbol { display: none; }
.nav-panel { position: absolute; top: 100%; left: 0; display: grid; min-width: 205px; padding: 6px 13px; background: white; border-top: 3px solid var(--blue-600); box-shadow: 0 9px 22px #0413342c; }
.nav-panel .nav-link { padding: 0 7px; text-transform: none; }
.nav-group:last-of-type .nav-panel { left: auto; right: 0; }
.header-cta { white-space: nowrap; }
.menu-toggle { display: none; }
.site-footer { background: var(--paper); border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.15fr repeat(4,.7fr) 1.25fr; gap: 20px; align-items: start; padding-block: 32px 24px; }
.footer-grid > div { display: grid; gap: 7px; }
.footer-grid > div a { font-size: .9rem; }
.footer-grid h2 { font: 800 1.05rem/1.05 var(--font-ui); letter-spacing: 0; }
.footer-end { font-size: .85rem; padding: 13px 0 18px; color: var(--muted); border-top: 1px solid var(--line); }

.hero, .stadium-feature, .page-head, .match-head { position: relative; isolation: isolate; overflow: hidden; color: white; }
.hero, .stadium-feature { background: linear-gradient(120deg, var(--navy-950) 0%, var(--navy-900) 40%, var(--blue-700) 100%); }
.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(115deg,#041334 4%,#071e58dd 37%,#071e5845 80%),
    repeating-linear-gradient(132deg,#7a9ee214 0 1px,transparent 1px 7px);
}
.hero.has-photo::before {
  background: linear-gradient(90deg,#041334 0%,#041334f5 18%,#04133488 47%,#04133408 78%),
    linear-gradient(0deg,#04133496,transparent 39%);
}
.hero::after {
  position: absolute;
  content: "";
  z-index: -2;
  width: 68%;
  height: 135%;
  right: -12%;
  top: -14%;
  transform: skew(-28deg);
  border-inline: 1px solid #779de447;
  background: linear-gradient(140deg,#123fad7c,#2363da17);
}
.hero.has-photo::after { display: none; }
.hero-photo, .stadium-photo, .masthead-art { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: center 48%; }
.hero-year {
  z-index: -1;
  position: absolute;
  top: -5%;
  right: max(0px,calc((100% - 1360px)/2));
  color: transparent;
  font: italic 900 clamp(14rem,32vw,36rem)/1 var(--font-display);
  letter-spacing: -.055em;
  -webkit-text-stroke: 1.5px #96bcff48;
  pointer-events: none;
}
.hero-inner { padding-block: 44px; min-height: clamp(510px,39vw,610px); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.hero h1 { font-size: clamp(3.5rem,6.65vw,7.1rem); line-height: .88; color: white; }
.hero h1 span { color: #fff; }
.hero .eyebrow { letter-spacing: .23em; margin: 21px 0 20px; }
.credit { display: block; color: var(--muted); font-size: .76rem; line-height: 1.45; }
.hero > .credit, .stadium-feature > .credit { position: absolute; right: 12px; bottom: 8px; padding: 4px 8px; background: #041334db; border-radius: 3px; color: white; }
.next-match { background: var(--paper); border-bottom: 1px solid var(--line); position: relative; }
.next-inner { min-height: 136px; display: grid; gap: 22px; align-items: center; grid-template-columns: minmax(150px, .8fr) minmax(0,2.1fr) minmax(260px,1fr); padding-block: 16px; }
.next-label { border-right: 1px solid #a5b6d8; padding-right: 16px; }
.next-label h2 { font-size: clamp(2rem,3.1vw,3.2rem); }
.next-label p, .next-details p { margin-top: 6px; font: 800 .94rem/1.2 var(--font-ui); text-transform: uppercase; }
.next-details { display: flex; align-items: center; gap: 16px; padding-left: 14px; border-left: 1px solid #a5b6d8; }
.next-details .button { flex-shrink: 0; }
.next-details p { margin: 0; }
.matchup { display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); align-items: center; gap: 12px; width: 100%; text-align: center; }
.team { display: flex; align-items: center; justify-content: center; gap: .52em; min-width: 0; font: 800 clamp(1.22rem,2.3vw,2.3rem)/.99 var(--font-display); text-transform: uppercase; overflow-wrap: anywhere; }
.team small { display: block; font: 700 .79rem/1.25 var(--font-ui); letter-spacing: .1em; margin-top: 4px; }
.crest { flex: 0 0 auto; width: 53px; height: 53px; object-fit: contain; }
.score { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; min-width: 51px; padding: 5px 8px; color: var(--navy-900); background: var(--blue-100); font: 800 1.32rem/1.04 var(--font-display); font-variant-numeric: tabular-nums; white-space: nowrap; border-radius: 3px; }
.score small { font: 800 .8rem/1.22 var(--font-ui); }
.news-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.news-card { min-width: 0; background: var(--paper); border-radius: var(--radius); }
.news-card-link { display: grid; grid-template-rows: auto 1fr; text-decoration: none; }
.card-art { position: relative; isolation: isolate; min-height: 184px; aspect-ratio: 16/9; display: flex; align-items: stretch; overflow: hidden; border-radius: 4px 4px 0 0; color: white; background: linear-gradient(135deg,#071e58,#0e3fae); }
.card-art.australian-championship { background: linear-gradient(145deg,#0c367a,#0b1f44 70%); }
.card-art.the-club { background: linear-gradient(140deg,#123373,#041334 78%); }
.card-art::before { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(0deg,#041334e8,transparent 80%); }
.card-art:not(.has-image)::after { content: ""; position: absolute; inset: -20% -24% -20% 50%; transform: skew(-22deg); border-inline: 1px solid #b1cdff36; background: repeating-linear-gradient(0deg,#80adff22 0 1px,transparent 1px 11px); z-index: -1; }
.card-cover { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.news-headline { display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; padding: clamp(13px,1.5vw,19px); width: 100%; }
.news-headline > span { max-width: 100%; font: 800 .83rem/1.05 var(--font-ui); text-transform: uppercase; color: #071e58; background: white; padding: 4px 8px; border-radius: 2px; }
.news-headline h3 { color: white; font-style: normal; font-size: clamp(1.65rem,3.1vw,2.85rem); max-width: 12ch; }
.card-summary { padding: 11px 15px 13px; display: flex; justify-content: space-between; align-items: center; gap: 14px; font-size: .94rem; line-height: 1.45; }
.card-chevron { flex: 0 0 8px; width: 8px; height: 8px; border-top: 2px solid; border-right: 2px solid; transform: rotate(45deg); }
.news-card > .credit { padding: 0 15px 10px; }
.news-card-link:hover .card-summary { color: var(--blue-700); background: var(--blue-100); }

.performance { color: white; background: linear-gradient(117deg,#041334,#0a2d7a); padding-block: 33px; }
.performance :is(h2, .text-link) { color: white; }
.performance .title-row { margin-bottom: 12px; }
.performance .title-row > span { background: #ffffff45; }
.performance-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 24px; }
.performance-grid > section + section { border-left: 1px solid #ffffff60; padding-left: 24px; }
.performance .eyebrow { margin: 0 0 8px; }
.results-list, .match-month { display: grid; gap: 8px; }
.fixture-card { display: grid; gap: 9px; padding: 13px 16px; border: 1px solid var(--line); text-decoration: none; color: var(--ink); background: #fff; border-radius: var(--radius); }
.fixture-card:hover { border-color: var(--blue-600); background: var(--paper); }
.fixture-meta, .fixture-detail { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 5px 10px; font: 700 .96rem/1.18 var(--font-ui); }
.fixture-detail { color: var(--muted); }
.fixture-detail span { color: var(--navy-800); }
.fixture-card .team { font-size: clamp(1.1rem,2vw,1.8rem); }
.fixture-card .crest { width: 36px; height: 36px; }
.fixture-card.compact { background: #163c885a; border-color: #7299ee61; color: white; padding: 8px 11px; gap: 5px; }
.fixture-card.compact:hover { background: #204fbb9f; }
.fixture-card.compact .team { font-size: clamp(1rem,1.7vw,1.42rem); }
.fixture-card.compact .score { background: #123f9c; color: white; }
.fixture-card.compact .crest { width: 29px; height: 29px; }
.fixture-card.compact .fixture-meta { font-size: .8rem; text-transform: uppercase; }
.table-wrap { overflow: auto; max-width: 100%; border: 1px solid var(--line); border-radius: var(--radius); }
.table-wrap table { width: 100%; border-collapse: separate; border-spacing: 0; font-variant-numeric: tabular-nums; }
.table-wrap :is(td,th) { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table-wrap thead th { color: var(--navy-800); background: var(--paper); font: 800 .95rem var(--font-ui); }
.table-wrap tr:last-child > :is(td,th) { border-bottom: 0; }
.table-wrap tbody th { font-weight: 600; }
.standings-table :is(td,th) { padding: 9px 11px; }
.standings-table :is(td,th):nth-child(n+3) { text-align: center; }
.standings-table tbody :is(td,th):last-child { font-weight: 800; }
.standings-table tbody tr:nth-child(even) { background: var(--paper); }
.standings-table tbody .highlight { background: #0d4ed1; color: white; }
.table-team { display: flex; align-items: center; gap: 7px; white-space: normal; }
.table-team .crest { width: 27px; height: 27px; }
.compact-table { border-color: #ffffff44; }
.compact-table :is(td,th) { padding: 7px 6px; border-color: #ffffff35; font-size: .9rem; }
.compact-table thead th { color: white; background: #08255d; }
.compact-table tbody tr:nth-child(even) { background: #08255d; }
.compact-table .table-team { font: 800 1rem/1.05 var(--font-ui); text-transform: uppercase; }
.compact-table .table-team .crest { width: 24px; height: 24px; }
.squad-feature { display: grid; grid-template-columns: minmax(165px, .25fr) minmax(0, 1fr); align-items: center; gap: 22px; }
.squad-feature p, .social-feature p { margin: 10px 0 15px; }
.squad-rail { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 36px)/4); gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 3px 3px 9px; }
.squad-rail .player-card { scroll-snap-align: start; }
.carousel-controls { display: flex; gap: 8px; margin-top: 12px; }
.carousel-controls button, .lightbox-controls button {
  min-width: 44px; min-height: 44px; background: white; border: 1px solid var(--line); border-radius: 50%;
  font: 800 1.55rem/1 var(--font-ui);
}
.carousel-controls button:hover { background: var(--blue-100); }
.player-card { position: relative; isolation: isolate; display: grid; align-items: end; min-height: 166px; overflow: hidden; padding: 15px; border-radius: var(--radius); text-decoration: none; color: white; background: linear-gradient(146deg,#17489b,#071e58 74%); }
.player-card::after { content:""; position: absolute; inset: -20% -22% -20% 48%; transform: skew(-23deg); border-left: 1px solid #70a1ff62; z-index: -1; }
.player-card:hover { background: linear-gradient(146deg,#1e54b5,#0a2d7a 74%); }
.player-photo { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.player-card-photo { aspect-ratio: 3/4; }
.player-card-photo::after { inset: 0; transform: none; border: none; background: linear-gradient(transparent 45%,#041334 100%); }
.player-number { position: absolute; z-index: -1; top: 1px; right: 13px; color: #a7c8ff; font: 800 italic 4rem/.96 var(--font-display); }
.player-info { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; max-width: 100%; }
.player-info strong { font: 800 1.65rem/.95 var(--font-display); text-transform: uppercase; overflow-wrap: anywhere; }
.player-info > span { font: 700 .86rem/1.1 var(--font-ui); color: #e9f0fd; }
.player-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; margin-top: 14px; }
.stadium-feature::before { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(107deg,var(--navy-900) 0 32%,#0a2d7af2 33%,#0e3fae00 75%); }
.stadium-feature:not(.has-photo)::after { content: ""; position: absolute; z-index: -2; inset: 0; background: repeating-linear-gradient(126deg,#7a9ee224 0 1px,transparent 1px 14px); }
.stadium-photo { object-position: center 56%; }
.stadium-inner { min-height: 280px; padding-block: 37px; display: grid; align-items: center; }
.stadium-inner > div { max-width: 375px; }
.stadium-inner h2 { color: white; font-size: clamp(2.9rem,5vw,5rem); }
.stadium-inner .eyebrow { margin: 9px 0 14px; }
.stadium-inner .button { margin-top: 16px; }
.social-feature { display: grid; align-items: center; gap: 24px; grid-template-columns: minmax(165px,.33fr) minmax(0,1fr); }
.social-feature h2 { max-width: 11ch; }
.social-grid, .social-links { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
.social-link { min-height: 100px; padding: 14px; display: grid; align-content: end; text-decoration: none; font: 800 1.15rem/1.14 var(--font-ui); text-transform: uppercase; color: white; background: linear-gradient(133deg,#103b8c,#071e58); border-radius: 3px; }
.social-link:hover { background: var(--blue-700); }
.social-tile img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.motto { background: linear-gradient(110deg,var(--navy-800),var(--blue-700) 52%,var(--navy-800)); padding: 20px 0; position: relative; overflow: hidden; isolation: isolate; }
.motto::before, .motto::after { content: ""; position: absolute; z-index: -1; top: 7px; bottom: 7px; width: min(14%,155px); border-block: 4px double #6289d7ae; background: repeating-linear-gradient(90deg,#7498e255 0 2px,transparent 2px 13px); transform: skew(-28deg); opacity: .7; }
.motto::before { left: -28px; }
.motto::after { right: -28px; }
.motto h2 { color: white; text-align: center; font-size: clamp(2rem,4.2vw,4.4rem); }

.page-head, .match-head { background: linear-gradient(119deg,var(--navy-950),var(--navy-800)); padding-block: 38px 44px; }
.page-head::before, .match-head::before { position: absolute; inset: -30% -15% -30% 50%; z-index: -1; content: ""; border-inline: 1px solid #81a5ed45; transform: skew(-25deg); background: repeating-linear-gradient(90deg,#a6c5ff13 0 1px,transparent 1px 14px); }
.page-head.has-art::before { inset: 0; transform: none; border: none; background: linear-gradient(90deg,#041334 2%,#041334cc 42%,#04133415); }
.page-head.has-art { min-height: 260px; display: grid; align-items: end; }
.page-head .wrap, .match-head .wrap { position: relative; }
.page-head h1, .match-head h1 { color: white; }
.page-head p:not(.eyebrow) { margin-top: 12px; max-width: 70ch; color: #edf3ff; }
.page-head .eyebrow, .match-head .eyebrow { margin-bottom: 8px; color: #c5dbff; }
.breadcrumb { margin-bottom: 15px; font: 700 .98rem/1.15 var(--font-ui); }
.breadcrumb a { min-height: 30px; display: inline-flex; align-items: center; }
.prose { max-width: 770px; }
.prose > h2, .prose > h3 { margin-top: 26px; margin-bottom: 12px; }
.prose > :is(.button,.feature-photo,.source-note) { margin-top: 18px; }
.source-note { font-size: .91rem; color: var(--muted); }
.feature-photo { max-width: 880px; }
.feature-photo > img { width: 100%; border-radius: var(--radius); }
.feature-photo figcaption { padding-top: 7px; }
.index-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.index-card { background: var(--paper); border: 1px solid var(--line); padding: clamp(17px,2.6vw,30px); border-radius: var(--radius); min-height: 145px; text-decoration: none; }
.index-card:hover { background: var(--blue-100); }
.index-card p { margin-top: 10px; }
.partner-card .partner-mark { width: min(100%,190px); height: 74px; object-fit: contain; object-position: left center; }
.home-partners .panel { padding-block: 17px; }
.timeline { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.timeline li { display: grid; grid-template-columns: minmax(80px,.2fr) minmax(0,1fr); gap: 22px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.timeline li > strong { color: var(--blue-700); font: 800 clamp(1.7rem,3.3vw,3rem)/1 var(--font-display); }
.timeline h2 { font-size: clamp(1.7rem,2.7vw,2.5rem); }
.timeline p { margin-top: 8px; }
.gallery-card button { border: 0; padding: 0; width: 100%; display: block; background: var(--paper); }
.gallery-card img, .video-cover { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.gallery-card figcaption { margin-top: 8px; }
#photo-dialog { width: min(92vw,1000px); max-height: 92vh; padding: 15px; border: 0; border-radius: var(--radius); color: white; background: var(--navy-950); }
#photo-dialog::backdrop { background: #041334e0; }
#photo-dialog img { margin: auto; max-height: 70vh; object-fit: contain; }
#photo-caption { margin-top: 10px; }
.lightbox-controls { display: flex; gap: 7px; justify-content: flex-end; margin-bottom: 10px; }
.lightbox-controls button { border-radius: 4px; padding-inline: 9px; font-size: 1rem; background: var(--navy-800); color: white; }
.filters { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: flex-end; }
.filters label { min-width: min(185px,100%); font: 800 1rem var(--font-ui); }
.filters select { width: 100%; min-height: 45px; display: block; margin-top: 3px; padding: 8px 28px 8px 10px; background: var(--paper); color: var(--ink); border: 1px solid #a7b6d0; border-radius: var(--radius); }
.filters .full { flex-basis: 100%; margin-top: 16px; }
.filter-block { display: grid; gap: 26px; }
.match-month h2 { font-size: 2rem; margin-bottom: 5px; }
.match-head h1 { font-size: clamp(2.25rem,4.7vw,4.5rem); }
.scoreboard { margin-top: 19px; padding: 15px 18px; background: #152e6e; border: 1px solid #6984bf; color: white; border-radius: var(--radius); text-align: center; }
.scoreboard .matchup { padding: 13px 0 5px; }
.scoreboard .score { font-size: clamp(1.5rem,4.7vw,3.35rem); min-width: clamp(54px,10vw,145px); background: white; }
.scoreboard .score small { font-size: .95rem; }
.match-status, .match-date { font: 800 .96rem/1.26 var(--font-ui); }
.match-status { letter-spacing: .09em; text-transform: uppercase; color: #c5dbff; }
.match-date { margin-top: 14px; }
.shootout-summary { margin-top: 8px; font-size: .9rem; }
.event-list, .lineup ul { margin: 13px 0 0; padding: 0; list-style: none; }
.event-list { border: 1px solid var(--line); }
.event { display: grid; grid-template-columns: minmax(42px,.12fr) minmax(0,1fr) minmax(70px,.4fr); align-items: center; gap: 9px; padding: 9px 12px; font-size: .91rem; min-height: 51px; }
.event small { text-align: right; font: 700 .94rem/1.12 var(--font-ui); color: var(--muted); }
.event:nth-child(odd) { background: var(--paper); }
.event-minute { font: 800 1.14rem var(--font-ui); }
.event.goal { border-left: 3px solid var(--blue-600); padding-left: 9px; }
.event.yellow_card { border-left: 3px solid var(--gold); padding-left: 9px; }
.event.second_yellow_red { border-left: 3px solid #c34248; padding-left: 9px; }
.player-link { color: var(--blue-700); }
.lineup li { padding: 7px 1px; border-bottom: 1px solid var(--line); }
.lineup li:last-child { border: none; }
.fact-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }
.fact-grid > div { border: 1px solid var(--line); padding: 10px 12px; background: var(--paper); border-radius: var(--radius); }
.fact-grid dt { color: var(--muted); font: 800 1rem/1.15 var(--font-ui); }
.fact-grid dd { margin-top: 4px; }
.metric-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
.metric-grid dd { color: var(--blue-700); font: 800 2.65rem/.96 var(--font-display); }
.profile-photo { position: absolute; right: var(--gutter); bottom: 0; width: auto; height: 100%; object-fit: contain; }
.ladder-panel .table-wrap, .ladder-panel .eyebrow { margin-bottom: 10px; }

@media (max-width: 1199px) {
  :root { --gutter: 32px; }
  .next-inner { gap: 15px; }
  .next-details { gap: 8px; }
  .brand .crest { width: 53px; height: 53px; }
  #primary-navigation { gap: 8px; }
  .nav-link { font-size: .93rem; }
}
@media (max-width: 960px) {
  :root { --header-h: 94px; }
  .header-inner { min-height: 65px; }
  .menu-toggle { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; padding: 6px 10px; background: white; border: 1px solid var(--line); border-radius: 3px; font: 800 1rem var(--font-ui); text-transform: uppercase; }
  .menu-symbol { display: block; width: 17px; height: 12px; border-block: 2px solid; position: relative; }
  .menu-symbol::after { content: ""; position: absolute; width: 100%; top: 3px; border-top: 2px solid; }
  #primary-navigation { display: none; position: absolute; inset: 100% 0 auto; background: white; max-height: calc(100dvh - var(--header-h)); overflow: auto; box-shadow: 0 7px 12px #04133423; padding: 8px var(--gutter) 16px; }
  #primary-navigation.open { display: grid; }
  .nav-link { width: 100%; min-height: 44px; }
  .nav-link.active::after { right: auto; width: 40px; bottom: 2px; }
  .nav-toggle { justify-content: space-between; }
  .toggle-symbol { display: inline; }
  .nav-toggle .toggle-symbol::before { content: "+"; font-size: 1.35rem; }
  .nav-toggle[aria-expanded="true"] .toggle-symbol::before { content: "−"; }
  .nav-panel { position: static; width: 100%; min-width: 0; box-shadow: none; background: var(--paper); border: 0; }
  .header-cta { justify-self: start; margin-top: 6px; }
  .hero-inner { min-height: 504px; }
  .next-inner { grid-template-columns: minmax(130px,.68fr) minmax(0,1.7fr) minmax(123px,.7fr); }
  .next-details { flex-wrap: wrap; height: 100%; align-content: center; }
  .next-details .button { min-height: 40px; padding: 4px 9px; }
  .footer-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .team .crest { width: 42px; height: 42px; }
  .squad-rail { grid-auto-columns: calc((100% - 24px)/3); }
  .player-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (max-width: 767px) {
  :root { --gutter: 18px; }
  .news-grid, .index-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .next-inner { grid-template-columns: 1fr; gap: 12px; padding-block: 20px; text-align: center; }
  .next-inner .matchup { max-width: 520px; justify-self: center; }
  .next-label, .next-details { border: 0; padding: 0; }
  .next-label p { margin-top: 5px; }
  .next-details { justify-content: center; gap: 9px 13px; }
  .performance-grid, .squad-feature, .social-feature { grid-template-columns: 1fr; }
  .performance-grid > section + section { border-left: 0; padding-left: 0; border-top: 1px solid #ffffff65; padding-top: 18px; }
  .squad-feature { gap: 12px; }
  .squad-feature h2 br { display: none; }
  .squad-feature > div:first-child { position: relative; }
  .carousel-controls { position: absolute; bottom: 0; right: 0; }
  .social-feature { gap: 8px; }
  .social-feature h2 { max-width: none; }
  .hero-year { top: 1%; font-size: clamp(10rem,37vw,18rem); right: 8%; }
  .hero-inner { min-height: 518px; justify-content: flex-end; }
  .hero-photo { object-position: 60% center; }
  .hero.has-photo::before { background: linear-gradient(0deg,#041334 3%,#041334b7 48%,#04133415 90%); }
  .stadium-feature.has-photo::before { background: linear-gradient(0deg,#041334f2 5%,#04133494 61%,#04133415 100%); }
  .stadium-inner { min-height: 340px; align-items: end; }
  .table-wrap.standings-table table { min-width: 560px; }
  .table-wrap.compact-table table { min-width: 340px; }
  .standings-table th:nth-child(2) { position: sticky; left: 0; background: white; }
  .standings-table thead th:nth-child(2), .standings-table tbody tr:nth-child(even) > th:nth-child(2) { background: var(--paper); }
  .standings-table .highlight th:nth-child(2) { background: #0d4ed1; }
  .compact-table :is(thead,tbody) th:nth-child(2) { background: #08255d; }
  .compact-table tbody tr:nth-child(even) > th:nth-child(2) { background: #08255d; }
  .compact-table tbody tr.highlight > th:nth-child(2) { background: #0d4ed1; }
}
@media (max-width: 520px) {
  .ribbon-social { display: none; }
  .news-grid, .index-grid, .split { grid-template-columns: 1fr; }
  .hero-inner { padding-block: 42px 38px; }
  .hero h1 { font-size: clamp(3.45rem,14vw,4.9rem); }
  .hero .eyebrow { font-size: .84rem; letter-spacing: .14em; }
  .hero .actions .button { padding-inline: 12px; }
  .hero-year { top: 5%; font-size: 40vw; right: 8%; }
  .title-row { gap: 7px 12px; }
  .title-row > h2 { flex: 0 0 auto; max-width: 100%; }
  .title-row > span { min-width: 4px; }
  .card-art { min-height: 160px; }
  .team { overflow-wrap: break-word; }
  .team .crest { width: 34px; height: 34px; }
  .next-inner .team, .scoreboard .team { flex-direction: column; }
  .next-inner .team .crest { width: 50px; height: 50px; }
  .next-details .button { flex-basis: 100%; min-height: 44px; }
  .fixture-card { padding-inline: 9px; }
  .fixture-card .matchup { gap: 4px; }
  .fixture-card .team { flex-direction: column; }
  .squad-rail { grid-auto-columns: 61%; }
  .player-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
  .player-card { min-height: 148px; padding: 10px; }
  .player-info strong { font-size: 1.44rem; }
  .social-grid, .social-links { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .social-link { min-height: 70px; }
  .footer-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .footer-grid .brand { grid-column: 1/-1; }
  .facts, .fact-grid, .metric-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .page-head, .match-head { padding-block: 24px 28px; }
  .timeline li { gap: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
.carousel-controls button:disabled { cursor: default; opacity: .45; }
.social-tile { display: grid; isolation: isolate; position: relative; overflow: hidden; min-height: 134px; border-radius: 3px; color: white; text-decoration: none; background: var(--navy-900); }
.social-tile img { height: 100%; aspect-ratio: auto; position: absolute; z-index: -2; object-position: center 51%; }
.social-tile::before { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(transparent 35%,#041334 100%); }
.social-tile > span { margin: auto 9px 8px; font: 800 .96rem/1.12 var(--font-ui); }
.social-tile:hover > span { text-decoration: underline; }
.gallery-card.portrait-frame button { background: var(--navy-950); }
.gallery-card.portrait-frame img { object-fit: contain; height: 310px; }
.photo-grid { align-items: start; }
.gallery-source { display: block; font-size: .87rem; }
.standings-table > table th:nth-child(2) { min-width: 128px; }
@media (min-width: 1050px) {
  .header-inner { gap: clamp(18px,4vw,68px); }
  #primary-navigation { flex: 1 1 auto; gap: clamp(12px,1.6vw,25px); }
  .header-cta { margin-left: auto; }
}
.social-grid { grid-template-columns: repeat(auto-fit,minmax(min(100%,160px), 1fr)); }
.social-tile img { object-position: center 46%; }
.performance-grid > section { min-width: 0; }
@media (max-width: 767px) {
  .performance-grid, .squad-feature, .social-feature { grid-template-columns: minmax(0,1fr); }
}
@media (max-width: 520px) {
  .next-inner .matchup > .team, .scoreboard .matchup > .team { align-self: end; }
  .next-inner .team > span, .scoreboard .team > span { min-height: 3em; }
  .next-inner .team > span > small, .scoreboard .team > span > small { margin-top: 3px; }
}
.news-card-link { grid-template-columns: minmax(0,1fr); }
.card-art { width: 100%; min-width: 0; }
.hero-art { position: absolute; inset: 0 0 0 27%; z-index: -2; }
.hero-art .hero-photo { z-index: auto; object-position: 53% 56%; }
.hero.has-photo::before { background: linear-gradient(90deg,#041334 0%,#041334 24%,#041334ca 38%,#04133424 65%,#04133406 100%),linear-gradient(0deg,#04133462,transparent 48%); }
.hero.has-photo .hero-year { top: -14%; right: auto; left: 23%; font-size: clamp(11rem,24vw,28rem); -webkit-text-stroke: 1.5px #b9d1ff39; }
.feature-photo.portrait-art { max-width: 520px; }
.card-art.portrait-art .card-cover { object-fit: contain; object-position: right center; }
.player-card-photo .player-number { color: #fff; text-shadow: 0 1px 6px #041334; }
@media (max-width: 767px) {
  .hero-art { inset: 0; }
  .hero-art .hero-photo { object-position: center 36%; }
  .hero.has-photo::before { background: linear-gradient(0deg,#041334 3%,#041334dd 30%,#0413345a 62%,#04133412 100%); }
  .hero.has-photo .hero-year { top: 1%; left: 6%; font-size: clamp(8rem,32vw,16rem); }
}
@media (min-width: 768px) {
  .social-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (max-width: 520px) {
  .social-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .hero > .credit { bottom: 4px; font-size: .7rem; }
}
.profile-photo { width: min(40%,260px); object-fit: cover; object-position: center 28%; }
.page-head:has(.profile-photo) .wrap { padding-right: min(38%,260px); }
@media (max-width: 520px) {
  .profile-photo { right: 0; width: 34%; height: 100%; opacity: .85; }
  .page-head:has(.profile-photo) .wrap { padding-right: 31%; }
}

.social-tile.social-portrait img { object-position: 50% 12%; }
/* Iteration 02. Photography and official insignia. */
.competition-label { display: flex; align-items: center; gap: .55em; }
.competition-mark { display: inline-grid; place-items: center; flex: none; min-width: 28px; height: 28px; padding: 3px; border-radius: 3px; background: #fff; }
.competition-mark img { width: auto; height: 100%; max-width: 66px; object-fit: contain; }
.fixture-card .competition-mark { height: 25px; }
.fixture-card.compact .competition-mark { height: 20px; min-width: 23px; padding: 2px; }
.fixture-card.compact .competition-mark img { max-width: 48px; }
.next-label .competition-mark { height: 32px; }
.ladder-panel h2 { margin-bottom: 12px; }
.ladder-panel h2 .competition-mark { height: 43px; }
.ladder-panel h2 .competition-mark img { max-width: 106px; }
.page-head.has-art:has(.masthead-art) { min-height: clamp(250px, 36vw, 540px); }
.page-head.has-art:has(.masthead-art)::before { background: linear-gradient(90deg,#041334ea,#04133464 60%,#04133405),linear-gradient(0deg,#041334aa,transparent 57%); }
.masthead-caption { padding-block: 9px; font-size: .86rem; color: var(--muted); }
.masthead-caption + .page-body { padding-top: clamp(16px,3vw,42px); }
.editorial-photo { margin: 0; min-width: 0; }
.editorial-photo img { display: block; width: 100%; height: auto; border-radius: 3px; }
.editorial-photo figcaption, .feature-photo figcaption { padding-top: 8px; font-size: .9rem; color: var(--muted); }
.card-caption { padding: 0 15px 12px; font-size: .83rem; color: var(--muted); }
.card-caption .credit, .masthead-caption .credit, .editorial-photo .credit, .gallery-card .credit { margin-top: 4px; }
.media-index-card { padding: 0; overflow: hidden; }
.media-index-card > a { color: inherit; text-decoration: none; display: block; }
.media-index-card a > div, .media-index-card > .credit { padding: 12px 16px; }
.media-index-card > .credit { padding-top: 0; }
.index-cover { width: 100%; height: auto; aspect-ratio: 16/9; object-fit: cover; }
.media-timeline li { grid-template-columns: minmax(65px,.25fr) minmax(0,1fr); }
.media-timeline li:has(figure) { grid-template-columns: minmax(65px,.25fr) minmax(0,1fr) minmax(0,1.12fr); }
.media-timeline .editorial-photo { margin: 0; }
.honour .editorial-photo img { aspect-ratio: 16/10; object-fit: cover; }
.gallery-card { min-width: 0; }
.gallery-card img { background: var(--navy-950); }
.gallery-card:not(.portrait-frame) img { object-fit: cover; }
.gallery-card.portrait-frame img { aspect-ratio: 16/9; height: auto; }
.gallery-card figcaption { line-height: 1.4; }
.partner-logo { display: flex; align-items: center; min-height: 91px; padding: 8px 12px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.partner-logo.partner-shake2go-by-optislim { background: var(--navy-950); border-color: var(--navy-950); }
.partner-card .partner-mark { width: min(100%,235px); height: 67px; object-position: left center; }
.partner-links { display: flex; flex-wrap: wrap; gap: 8px 15px; }
.partner-links a { white-space: normal; }
.stadium-photo { object-position: center 53%; }
.video-cover { border-radius: 3px; }
@media (max-width: 767px) {
  .next-label .competition-label { justify-content: center; }
  .page-head.has-art:has(.masthead-art)::before { background: linear-gradient(0deg,#041334ef,#04133452 77%,#04133417); }
  .media-timeline li:has(figure) { grid-template-columns: minmax(62px,.22fr) minmax(0,1fr); }
  .media-timeline .editorial-photo { grid-column: 2; }
}
@media (max-width: 430px) {
  .fixture-card .competition-label { gap: 4px; }
  .ladder-panel h2 .competition-mark { height: 32px; }
  .ladder-panel h2 .competition-mark img { max-width: 74px; }
  .media-timeline .editorial-photo { grid-column: 1/-1; }
}
.masthead-art[data-asset="hero.club.01"] { object-position: center 14%; }
.social-tile img[data-asset="archive.dockerty-cup-2023"] { object-position: center 68%; }
@media (min-width: 768px) {
  .stadium-feature.has-photo .stadium-inner { min-height: 320px; }
  .stadium-photo { object-position: center 67%; }
}
