@font-face {
  font-family: Tajawal;
  src: url("assets/fonts/tajawal-400-latin.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: Tajawal;
  src: url("assets/fonts/tajawal-700-latin.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: Tajawal;
  src: url("assets/fonts/tajawal-800-latin.woff2") format("woff2");
  font-weight: 800;
  font-display: swap;
}

@font-face {
  font-family: Tajawal;
  src: url("assets/fonts/tajawal-400-arabic.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-089F, U+08A0-08FF, U+200C-200F, U+FB50-FDFF, U+FE70-FEFE;
}

@font-face {
  font-family: Tajawal;
  src: url("assets/fonts/tajawal-700-arabic.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-089F, U+08A0-08FF, U+200C-200F, U+FB50-FDFF, U+FE70-FEFE;
}

@font-face {
  font-family: Tajawal;
  src: url("assets/fonts/tajawal-800-arabic.woff2") format("woff2");
  font-weight: 800;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-089F, U+08A0-08FF, U+200C-200F, U+FB50-FDFF, U+FE70-FEFE;
}

:root {
  color-scheme: light;
  --royal: #103cba;
  --navy: #081d63;
  --muted: #465778;
  --line: #d7e2f7;
  --wash: #f5f8ff;
  --white: #fff;
  --gutter: clamp(18px, 4vw, 42px);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--wash);
  color: var(--navy);
  font: 400 1rem/1.55 Tajawal, Tahoma, sans-serif;
}

h1, h2, h3, p { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
img { display: block; }

:focus-visible {
  outline: 2px solid #3269e3;
  outline-offset: 4px;
}

.shell {
  width: min(100% - var(--gutter) * 2, 1200px);
  margin-inline: auto;
}

.symbols { position: absolute; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip {
  position: fixed;
  z-index: 10;
  inset: 12px 12px auto auto;
  padding: 8px 14px;
  background: var(--white);
  color: var(--royal);
  border-radius: 8px;
  transform: translateY(-150%);
}

.skip:focus { transform: translateY(0); }

.icon {
  display: block;
  width: 22px;
  height: 22px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.masthead { background: var(--white); }

.masthead-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: clamp(76px, 12.4vw, 158px);
  gap: 16px;
}

.brand, .footer-identity {
  display: inline-flex;
  align-items: center;
  gap: 11px;
}

.brand-mark {
  flex: none;
  width: clamp(46px, 8.4vw, 108px);
  height: auto;
}

.brand-mark, .hero-mark { border-radius: 50%; }
.brand-text { display: grid; line-height: 1.16; }
.brand-text strong { font-size: clamp(1.3rem, 3vw, 2.55rem); font-weight: 800; }
.brand-text small { margin-top: 4px; color: var(--muted); font-size: clamp(.75rem, 1.48vw, 1.13rem); }

.masthead nav {
  display: flex;
  align-items: stretch;
  align-self: stretch;
  gap: clamp(16px, 3vw, 36px);
  font-size: .95rem;
  font-weight: 700;
  color: var(--muted);
}

.masthead nav a {
  display: grid;
  place-items: center;
  position: relative;
  white-space: nowrap;
}

.masthead nav a:hover, .masthead nav .nav-index { color: var(--royal); }

.nav-index::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: var(--royal);
}

.hero {
  isolation: isolate;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 1%, #1c5ce4, transparent 47%),
    radial-gradient(ellipse at 83% 112%, #2164ed 0, transparent 52%),
    linear-gradient(173deg, #092c9c, #07227e 51%, #103bb8 89%);
  color: var(--white);
}

.hero-crowd, .hero-rays, .hero-arc, .hero-wave {
  position: absolute;
  inset-inline: 0;
  width: 100%;
  pointer-events: none;
}

.hero-crowd {
  z-index: -3;
  inset-block-start: 0;
  height: clamp(165px, 26vw, 395px);
  opacity: .88;
  mask-image: linear-gradient(#000 48%, transparent 92%);
}

.hero-crowd::before, .hero-crowd::after {
  content: "";
  position: absolute;
  inset-block: 0;
  width: 54%;
  background-size: cover;
}

.hero-crowd::before {
  left: 0;
  background-image: url("assets/hero-supporters-left.webp");
  background-position: left top;
  mask-image: linear-gradient(to right, #000 70%, transparent);
}

.hero-crowd::after {
  right: 0;
  background-image: url("assets/hero-supporters-right.webp");
  background-position: right top;
  mask-image: linear-gradient(to left, #000 70%, transparent);
}

.hero-rays {
  z-index: -2;
  inset-block-start: 0;
  height: clamp(220px, 34vw, 465px);
  background:
    radial-gradient(ellipse at 50% 43%, #bdf1ff99, #3e9aff52 21%, transparent 59%),
    repeating-conic-gradient(from 8deg at 50% 43%, transparent 0deg 9deg, #8edaff26 12deg, transparent 16deg 24deg);
  mask-image: radial-gradient(ellipse at 50% 43%, #000 15%, transparent 68%);
}

.hero-arc {
  z-index: -1;
  inset-block-start: clamp(90px, 16.4vw, 231px);
  height: clamp(130px, 24vw, 340px);
  filter: drop-shadow(0 0 9px #359bff);
}

.hero-inner {
  display: grid;
  justify-items: center;
  padding-block: clamp(28px, 4vw, 56px) clamp(64px, 9vw, 125px);
  text-align: center;
}

.hero-mark {
  width: clamp(112px, 20.5vw, 258px);
  height: auto;
  box-shadow: 0 0 1px 2px #fff, 0 0 12px 4px #d2f5ff, 0 0 38px 13px #4aaeff9e;
}

.hero-heading {
  position: relative;
  width: 100%;
  margin-top: clamp(15px, 2.35vw, 31px);
  padding-inline: clamp(17px, 8.6vw, 114px);
}

.hero-laurel {
  position: absolute;
  top: 50%;
  width: clamp(25px, 9vw, 114px);
  height: auto;
  aspect-ratio: 110 / 212;
  color: #edf5ff;
  filter: drop-shadow(0 4px 5px #032478);
  mask-image: linear-gradient(#000 70%, #0007);
}

.hero-laurel-left { left: 0; transform: translateY(-51%); }
.hero-laurel-right { right: 0; transform: translateY(-51%) scaleX(-1); }

.hero h1 {
  font-size: clamp(2rem, 8.35vw, 6.7rem);
  font-weight: 800;
  line-height: 1.1;
  text-wrap: balance;
  text-shadow: 0 1px #fff, 0 .035em #91b4ff, 0 .075em #1749c2, 0 .11em .11em #020e4a;
}

.hero-ribbon {
  isolation: isolate;
  position: relative;
  display: grid;
  place-items: start center;
  width: min(74%, 750px);
  min-width: min(97%, 248px);
  margin-top: clamp(8px, 1.25vw, 17px);
  aspect-ratio: 760 / 115;
}

.hero-ribbon-art, .hero-sashes {
  position: absolute;
  z-index: -1;
  top: 0;
  left: 50%;
  height: 100%;
  transform: translateX(-50%);
}

.hero-ribbon-art {
  width: 100%;
  filter: drop-shadow(0 4px 13px #54a7ffa6);
}

.hero-sashes {
  z-index: -2;
  width: 102vw;
  top: -14%;
  opacity: .91;
  filter: drop-shadow(0 0 8px #388aff);
}

.hero-subtitle {
  display: flex;
  align-items: center;
  gap: clamp(7px, 1.65vw, 22px);
  padding-top: .27em;
  color: #092983;
  font-size: clamp(1.18rem, 4vw, 3.35rem);
  font-weight: 800;
  line-height: 1.08;
}

.hero-subtitle::before, .hero-subtitle::after {
  content: "";
  width: clamp(14px, 4vw, 56px);
  height: .08em;
  border-radius: 100%;
  background: currentColor;
}

.hero-description {
  max-width: min(100%, 1000px);
  margin-top: clamp(12px, 1.65vw, 24px);
  color: #edf3ff;
  font-size: clamp(1rem, 2.7vw, 1.9rem);
  font-weight: 700;
  line-height: 1.55;
  text-wrap: balance;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 5vw, 66px);
  margin-top: clamp(23px, 3.2vw, 43px);
}

.hero-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: clamp(6px, 1.45vw, 18px);
  padding: clamp(10px, 1.23vw, 17px) clamp(13px, 3.05vw, 43px);
  border: 1px solid #f7faff;
  border-radius: clamp(10px, 1.65vw, 21px);
  background: linear-gradient(#fff, #d7e3ff);
  color: #092983;
  box-shadow: 0 5px 18px #04195f80, inset 0 -2px #fff9;
  font-size: clamp(1.02rem, 2.9vw, 2.13rem);
  font-weight: 800;
  white-space: nowrap;
  transition: box-shadow .18s ease, transform .18s ease;
}

.hero-button:hover { box-shadow: 0 5px 22px #5e9dff99, inset 0 -2px #fff9; transform: translateY(-2px); }
.hero-button:focus-visible, .back-top:focus-visible { outline-color: #fff; }
.hero-button .icon { width: 1.15em; height: 1.15em; }

.hero-count {
  display: grid;
  padding-inline-start: clamp(14px, 4.65vw, 62px);
  border-inline-start: 2px solid #c6d9ffbb;
  line-height: 1.1;
}

.hero-count strong { font-size: clamp(2rem, 5.4vw, 4.15rem); font-weight: 800; }
.hero-count span { color: #e7efff; font-size: clamp(.73rem, 1.85vw, 1.3rem); font-weight: 700; }

.hero-wave {
  inset-block-end: -1px;
  inset-inline: -2%;
  width: 104%;
  height: clamp(44px, 8.7vw, 116px);
  filter: drop-shadow(0 -4px 12px #2e80fb8c);
}

.hero-wave-fill { fill: var(--wash); }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--royal);
  font-size: .9rem;
  font-weight: 700;
}

.eyebrow span {
  width: 18px;
  height: 3px;
  background: currentColor;
  border-radius: 8px;
}

.directory { padding-block: clamp(26px, 3.6vw, 54px) 62px; scroll-margin-top: 20px; }

.directory-header {
  display: grid;
  gap: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.directory h2 {
  margin-top: 3px;
  font-size: clamp(2.15rem, 4.2vw, 3.6rem);
  line-height: 1.2;
  font-weight: 800;
}

.directory-description { margin-top: 7px; color: var(--muted); }

.search {
  display: flex;
  align-items: center;
  min-height: 57px;
  padding-inline: 17px 8px;
  border: 1px solid #c4d4f1;
  border-radius: 13px;
  background: var(--white);
  color: var(--royal);
  box-shadow: 0 5px 18px #0b2b7c08;
}

.search:focus-within { border-color: var(--royal); box-shadow: 0 0 0 3px #1948bc1a; }
.search > .icon { width: 22px; height: 22px; }

.search input {
  width: 100%;
  min-width: 0;
  padding: 11px 9px;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--navy);
}

.search input::placeholder { color: var(--muted); opacity: 1; }
.search input::-webkit-search-cancel-button { display: none; }

.search-clear {
  cursor: pointer;
  padding: 9px;
  border: 0;
  border-radius: 6px;
  background: #edf3ff;
  color: var(--royal);
}

.search-clear .icon { width: 18px; height: 18px; }
.search-clear:hover { background: #dce9ff; }
.directory-status { margin-block: 15px 10px; color: var(--muted); font-size: .92rem; font-weight: 700; }

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 13px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.player {
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
  min-height: 108px;
  border: 1px solid #d8e3f5;
  border-radius: 11px;
  background: var(--white);
  box-shadow: 0 2px 5px #10245006;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.player:hover {
  z-index: 1;
  border-color: #86a7ea;
  box-shadow: 0 5px 15px #10245010;
  transform: translateY(-2px);
}

.player-photo {
  align-self: stretch;
  flex: none;
  width: clamp(74px, 7.4vw, 103px);
  height: auto;
  object-fit: cover;
  object-position: center 35%;
  border-start-start-radius: 10px;
  border-end-start-radius: 10px;
  background: #dce8fc;
}

.player-info {
  display: grid;
  justify-items: start;
  flex: 1;
  gap: 5px;
  padding: 12px clamp(10px, 1.2vw, 17px);
  min-width: 0;
}

.num {
  padding: 3px 7px 1px;
  border-radius: 5px;
  background: #eaf1ff;
  color: #2148a5;
  font-size: .8rem;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: .075em;
  font-variant-numeric: tabular-nums;
}

.player-name {
  overflow-wrap: anywhere;
  font-size: clamp(1rem, 1.45vw, 1.22rem);
  font-weight: 800;
  line-height: 1.36;
}

.player-arrow {
  display: grid;
  place-items: center;
  flex: none;
  width: 32px;
  height: 32px;
  margin-inline-end: 11px;
  border: 1px solid #e1eafa;
  border-radius: 8px;
  color: var(--royal);
  transition: background .18s ease, color .18s ease;
}

.player-arrow .icon { width: 18px; height: 18px; }
.player:hover .player-arrow, .player:focus-visible .player-arrow { background: var(--royal); color: var(--white); }

.empty {
  display: grid;
  justify-items: center;
  gap: 7px;
  padding: 42px 18px;
  border: 1px dashed #b3c6e7;
  border-radius: 11px;
  background: var(--white);
  text-align: center;
  color: var(--muted);
}

.empty .icon { width: 26px; height: 26px; color: var(--royal); }
.empty h3 { color: var(--navy); }

footer { background: #071e70; color: var(--white); }

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding-block: 24px;
}

.footer-identity .brand-mark { width: clamp(40px, 4.5vw, 62px); }
.footer-identity p { color: #c1d4fb; font-size: .9rem; }

.back-top {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #dce8ff;
  font-size: .9rem;
  white-space: nowrap;
}

.back-top .icon { width: 18px; height: 18px; }
.back-top:hover { color: var(--white); text-decoration: underline; }

@media (max-width: 960px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  .masthead-inner { min-height: 70px; }
  .hero-crowd::before, .hero-crowd::after { background-position: center top; }
  .hero-heading { padding-inline: clamp(16px, 7vw, 50px); }
  .hero-laurel { width: clamp(22px, 7.25vw, 50px); }
  .hero-sashes { opacity: .7; }
  .directory { padding-block: 29px 42px; }
  .directory-header { gap: 15px; padding-bottom: 15px; }
  .player-photo { width: 76px; }
}

@media (max-width: 470px) {
  .brand { gap: 7px; }
  .brand-mark { width: 40px; }
  .brand-text strong { font-size: 1.08rem; }
  .brand-text small { font-size: .69rem; }
  .masthead-inner { gap: 8px; }
  .masthead nav { gap: clamp(9px, 3vw, 16px); font-size: .81rem; }
  .hero h1 { font-size: clamp(1.6rem, 7.8vw, 2.45rem); }
  .hero-ribbon { width: min(90%, 300px); }
  .hero-subtitle { padding-top: .36em; }
  .hero-description { max-width: 30ch; }
  .grid { grid-template-columns: minmax(0, 1fr); gap: 9px; }
  .player { min-height: 88px; }
  .player-photo { width: 82px; }
  .player-name { font-size: 1.115rem; }
}

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