/* Talsport public site. Logical properties are used so Arabic (RTL) works without overrides. */
/* Title font for English and Arabic, hosted here (SIL Open Font License, fonts/cairo-OFL.txt). */
@font-face { font-family: "Cairo"; src: url("../fonts/cairo.ttf") format("truetype"); font-weight: 200 1000; font-display: swap; }

:root {
  /* brand colours, the same in both themes */
  --navy: #0b1f44;
  --navy-deep: #07142e;
  --teal: #0a6070;
  --gold: #c39b3c;
  --cream: #f9f5ec;
  /* theme colours */
  --page: #fff;
  --surface: #fff;
  --band: #f9f5ec;
  --heading: #0b1f44;
  --ink: #18212f;
  --soft: #414b5c;
  --muted: #5f6878;
  --line: #e7e1d4;
  --field: #cfc8b8;
  --link: #0a6070;
  --link-hover: #084c59;
  --solid: #0b1f44;
  --solid-text: #fff;
  --accent: #8a6a1c;
  --badge: #e6eef6;
  --done-bg: #e2efe9;
  --done-text: #13593f;
  --off-bg: #eee;
  --off-text: #666;
  --warn-bg: #fff6da;
  --warn-line: #ecd48a;
  --warn-text: #6b5310;
  --shadow: 0 10px 30px rgba(11, 31, 68, .09);
  color-scheme: light;

  --radius: 8px;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-head: "Cairo", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}
:root[data-theme="dark"] {
  --page: #0e1421;
  --surface: #161e2e;
  --band: #131b2a;
  --heading: #f2eee3;
  --ink: #dbe0ea;
  --soft: #c0c8d6;
  --muted: #9ca7ba;
  --line: #29344c;
  --field: #3b4766;
  --link: #62c3d3;
  --link-hover: #93dbe6;
  --solid: #d9b357;
  --solid-text: #0a1429;
  --accent: #d9b357;
  --badge: #22304c;
  --done-bg: #173a2e;
  --done-text: #a4e6ca;
  --off-bg: #262d3b;
  --off-text: #a9b1bf;
  --warn-bg: #37300f;
  --warn-line: #6b5c1b;
  --warn-text: #f0dc8f;
  --shadow: 0 10px 30px rgba(0, 0, 0, .45);
  color-scheme: dark;
}
:lang(ar) {
  --font-body: "Segoe UI", "SF Arabic", "Geeza Pro", "Noto Sans Arabic", Tahoma, Arial, sans-serif;
  --font-head: "Cairo", "Segoe UI", "SF Arabic", "Geeza Pro", "Noto Kufi Arabic", "Noto Sans Arabic", Tahoma, Arial, sans-serif;
  font-family: var(--font-body);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font-body); font-size: 1rem; line-height: 1.65; color: var(--ink); background: var(--page); }
:lang(ar) body, html[lang="ar"] body { line-height: 1.8; }
img { max-width: 100%; display: block; }
a { color: var(--link); text-decoration: none; }
a:hover { color: var(--link-hover); text-decoration: underline; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; color: var(--heading); line-height: 1.3; letter-spacing: -.01em; margin: 0 0 .5em; overflow-wrap: anywhere; }
/* Letter spacing would break the joins between Arabic letters. */
:lang(ar) :is(h1, h2, h3, h4), :is(h1, h2, h3, h4):lang(ar) { font-family: var(--font-head); line-height: 1.45; letter-spacing: 0; }
h3 a, h1 a { color: inherit; }
p { margin: 0 0 1em; }
.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 40px); }
.section { padding-block: 44px; }
.meta { color: var(--muted); font-size: .86rem; }
.empty { color: var(--muted); border: 1px dashed var(--line); border-radius: var(--radius); padding: 28px; text-align: center; }
.skip { position: absolute; inset-inline-start: -9999px; }
.skip:focus { inset-inline-start: 12px; top: 8px; z-index: 50; background: var(--surface); padding: 8px 14px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.on-dark, :root[data-theme="dark"] .on-light { display: none !important; }
:root[data-theme="dark"] .on-dark { display: block !important; }

/* buttons */
.btn { display: inline-block; border: 1px solid var(--solid); background: var(--solid); color: var(--solid-text); font: inherit; font-size: .92rem; font-weight: 600; padding: 10px 22px; border-radius: 6px; cursor: pointer; text-align: center; transition: background .2s, border-color .2s; }
.btn:hover { background: var(--teal); border-color: var(--teal); color: #fff; text-decoration: none; }
.btn-outline { background: transparent; color: var(--heading); }
.btn-gold { background: var(--gold); border-color: var(--gold); color: var(--navy-deep); }
.btn-gold:hover { background: #b08a30; border-color: #b08a30; color: var(--navy-deep); }

/* header */
.topline { background: var(--navy-deep); color: #d9d3c4; font-size: .78rem; border-bottom: 2px solid var(--gold); }
.topline .wrap { display: flex; justify-content: space-between; gap: 16px; padding-block: 6px; }
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.header-main { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand:hover { text-decoration: none; }
.brand-mark { height: 52px; width: auto; }
.brand-word { height: 22px; width: auto; }
.brand-word-ar { height: 29px; }
.brand-custom { max-height: 56px; width: auto; max-width: 220px; }
:root[data-theme="dark"] .brand-custom, :root[data-theme="dark"] .custom-logo { background: var(--cream); border-radius: var(--radius); padding: 5px; }
.main-nav { border-top: 1px solid var(--line); }
.main-nav .wrap { display: flex; flex-wrap: wrap; gap: 0 6px; }
.main-nav a { color: var(--heading); font-weight: 600; font-size: .95rem; padding: 9px 12px 7px; border-bottom: 3px solid transparent; transition: border-color .2s, color .2s; }
.main-nav a:first-child { padding-inline-start: 0; }
.main-nav a:hover, .main-nav a.active { color: var(--link); border-bottom-color: var(--gold); text-decoration: none; }
.header-actions { display: flex; align-items: center; gap: 8px; margin-inline-start: auto; }
.icon-btn { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); color: var(--heading); cursor: pointer; }
.icon-btn:hover { border-color: var(--link); color: var(--link); }
.theme-toggle { display: none; }
:root[data-theme] .theme-toggle { display: grid; }
.theme-toggle .icon-sun, :root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
.lang-switch { font-weight: 600; font-size: .85rem; color: var(--heading); border: 1px solid var(--line); border-radius: 20px; padding: 6px 14px; }
.lang-switch:hover { border-color: var(--link); text-decoration: none; }
.nav-toggle { display: none; }
.search-panel { border-top: 1px solid var(--line); background: var(--band); padding-block: 14px; }
.search-panel form, .search-line { display: flex; gap: 10px; }

input, select { font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--field); border-radius: 6px; padding: 9px 12px; min-width: 0; }
input[type="search"] { flex: 1; }

/* media boxes */
.media { display: block; overflow: hidden; border-radius: var(--radius); background: var(--band); aspect-ratio: 16 / 10; }
.media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.media:hover img { transform: scale(1.03); }
.placeholder { display: grid; place-items: center; width: 100%; height: 100%; background: linear-gradient(140deg, var(--navy), var(--teal)); color: rgba(249, 245, 236, .85); font-size: 3.6rem; line-height: 1; font-family: "Segoe UI Symbol", "Noto Sans Symbols 2", serif; }
.kicker { display: inline-block; font-size: .76rem; font-weight: 700; color: var(--link); text-transform: uppercase; letter-spacing: .07em; }
:lang(ar) .kicker, :lang(ar) .eyebrow { letter-spacing: 0; font-size: .85rem; }
.eyebrow { font-size: .76rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin: 0 0 10px; }
.standfirst { font-size: 1.14rem; color: var(--soft); }

/* homepage slider */
.hero { display: grid; grid-template-columns: minmax(0, 2.15fr) minmax(0, 1fr); gap: 28px; padding-top: 28px; }
.hero-single { grid-template-columns: minmax(0, 1fr); }
.slider { position: relative; min-height: 470px; border-radius: 14px; overflow: hidden; background: var(--navy-deep); }
.slides { position: absolute; inset: 0; display: flex; margin: 0; padding: 0; list-style: none; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.slides::-webkit-scrollbar { display: none; }
.slide { position: relative; flex: 0 0 100%; scroll-snap-align: start; scroll-snap-stop: always; }
.slide-link { position: absolute; inset: 0; display: block; overflow: hidden; color: #fff; }
.slide-link:hover { color: #fff; text-decoration: none; }
.slide-link:focus-visible { outline-offset: -5px; }
.slide-link > img, .slide-link > .placeholder { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.slide-link > .placeholder { font-size: 8rem; padding-bottom: 100px; }
.slide-link:hover > img { transform: scale(1.025); }
.slide-text { position: absolute; inset-inline: 0; bottom: 0; display: block; padding: 120px 28px 58px; background: linear-gradient(rgba(7, 20, 46, 0), rgba(7, 20, 46, .72) 45%, rgba(7, 20, 46, .96)); }
.slide-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: .8rem; font-weight: 700; color: #e6e1d3; }
.slide-flag { background: var(--gold); color: var(--navy-deep); border-radius: 4px; padding: 1px 9px; }
.slide-text h2 { color: #fff; font-size: clamp(1.35rem, 2.5vw, 2.1rem); line-height: 1.4; margin: 6px 0 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.slide-text h2:lang(ar) { line-height: 1.7; }
.slider:not(.slider-ready) :is(.slide-arrow, .slide-bar) { display: none; }
.slide-arrow { position: absolute; top: calc(50% - 60px); z-index: 2; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .88); color: var(--navy); box-shadow: 0 4px 16px rgba(0, 0, 0, .28); cursor: pointer; opacity: .85; transition: opacity .2s, background .2s; }
.slide-arrow:hover { opacity: 1; background: #fff; }
.slide-prev { inset-inline-start: 14px; }
.slide-next { inset-inline-end: 14px; }
[dir="rtl"] .slide-arrow svg { transform: scaleX(-1); }
.slide-bar { position: absolute; z-index: 2; inset-inline: 28px; bottom: 14px; display: flex; align-items: center; gap: 12px; }
.slide-pause { display: grid; place-items: center; width: 28px; height: 28px; flex-shrink: 0; padding: 0; border: 1px solid rgba(255, 255, 255, .45); border-radius: 50%; background: transparent; color: #fff; cursor: pointer; }
.slide-pause .icon-play, .slide-pause[aria-pressed="true"] .icon-pause { display: none; }
.slide-pause[aria-pressed="true"] .icon-play { display: block; }
.slide-dots { display: flex; flex-wrap: wrap; gap: 6px; }
.slide-dots button { width: 20px; height: 17px; padding: 6px 0; border: 0; border-radius: 9px; background: rgba(255, 255, 255, .4); background-clip: content-box; cursor: pointer; transition: width .2s; }
.slide-dots button[aria-current="true"] { width: 36px; background-color: var(--gold); }
.slide-count { margin-inline-start: auto; color: #e6e1d3; font-size: .78rem; font-weight: 700; white-space: nowrap; }
.top-stories { min-width: 0; }
.top-stories > h2 { font-size: 1.25rem; padding-bottom: 9px; margin-bottom: 14px; border-bottom: 3px solid var(--gold); }
.top-stories .list > li { padding-block: 13px; }
.top-stories .list > li:first-child { padding-top: 0; }
.top-stories .list > li:last-child { border-bottom: 0; }
.top-stories .row-article { gap: 14px; }
.top-stories .row-article .media { width: 92px; aspect-ratio: 1; }
.top-stories .row-article .placeholder { font-size: 1.8rem; }
.top-stories .row-article h3 { font-size: 1rem; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.top-stories .row-article h3:lang(ar) { line-height: 1.65; }
.top-stories .meta { font-size: .78rem; }

/* section headings */
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); margin-bottom: 26px; }
.section-head h2 { font-size: 1.55rem; margin: 0; padding-bottom: 10px; border-bottom: 3px solid var(--gold); margin-bottom: -2px; }
.more { font-size: .88rem; font-weight: 600; white-space: nowrap; }

/* cards */
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 28px; }
.card .media { margin-bottom: 14px; }
.card h3 { font-size: 1.24rem; margin-block: 4px 8px; }
.card h3 a, .row-article h3 a, .row-event h3 a, .row-result h3 a { transition: color .2s; }
.card h3 a:hover, .row-article h3 a:hover, .row-event h3 a:hover, .row-result h3 a:hover { color: var(--link); text-decoration: none; }
.excerpt { color: var(--muted); font-size: .95rem; margin-bottom: 8px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* videos */
.video-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 30px 22px; }
.video-grid .card h3 { font-size: 1.06rem; }
.video-thumb { position: relative; aspect-ratio: 16 / 9; background: var(--navy-deep); }
.play { position: absolute; inset: 0; width: 54px; height: 54px; margin: auto; border: 2px solid #fff; border-radius: 50%; background: rgba(7, 20, 46, .7); transition: background .2s; pointer-events: none; }
.play::after { content: ""; position: absolute; left: 19px; top: 15px; border-style: solid; border-width: 10px 0 10px 17px; border-color: transparent transparent transparent #fff; }
.video-thumb:hover .play { background: var(--teal); }
.watch { width: min(920px, 100% - 40px); padding-block: 28px 10px; }
.watch .article-head { padding-block: 20px 4px; }
.watch .article-head h1 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-block: 6px 8px; }
.player { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: 12px; overflow: hidden; }
.player iframe, .player video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* sports */
.band { background: var(--band); border-block: 1px solid var(--line); margin-top: 20px; }
.sport-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.sport-card { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; color: var(--ink); transition: transform .2s, box-shadow .2s, border-color .2s; }
.sport-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--gold); text-decoration: none; color: var(--ink); }
.sport-card strong { font-family: var(--font-head); font-size: 1.12rem; color: var(--heading); line-height: 1.35; }
.sport-text { font-size: .87rem; color: var(--muted); }
.sport-icon { display: grid; place-items: center; width: 58px; height: 58px; flex-shrink: 0; border-radius: 50%; background: var(--navy); color: var(--gold); font-size: 1.75rem; line-height: 1; overflow: hidden; font-family: "Segoe UI Symbol", "Noto Sans Symbols 2", serif; }
:root[data-theme="dark"] .sport-icon { box-shadow: 0 0 0 1px var(--field); }
.sport-icon img { width: 100%; height: 100%; object-fit: cover; }

/* lists */
.columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; align-items: start; }
.list { list-style: none; margin: 0; padding: 0; }
.list > li { padding-block: 18px; border-bottom: 1px solid var(--line); }
.list > li:first-child { padding-top: 0; }
.list-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; }
.list-split > li:first-child, .list-split > li:nth-child(2) { padding-top: 0; }
.row-top { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 4px; }
.row-event, .row-article { display: flex; gap: 18px; align-items: flex-start; }
.row-body { min-width: 0; }
.row-event h3, .row-article h3, .row-result h3 { font-size: 1.1rem; margin-block: 2px 4px; }
.row-event p { margin: 0; }
.row-article .media { width: 132px; flex-shrink: 0; }
.row-article .placeholder { font-size: 2rem; }
.date-block { flex-shrink: 0; width: 82px; text-align: center; border: 1px solid var(--line); border-top: 3px solid var(--solid); border-radius: 6px; padding: 8px 4px; background: var(--surface); line-height: 1.3; }
.date-block strong { display: block; font-family: var(--font-head); font-size: 1.7rem; color: var(--heading); line-height: 1.1; }
.date-block span { display: block; font-size: .76rem; font-weight: 700; color: var(--link); }
.date-block small { color: var(--muted); font-size: .72rem; }
.result-lines p { margin: 0; font-size: .92rem; color: var(--muted); }
.badge { display: inline-block; font-size: .72rem; font-weight: 700; padding: 2px 10px; border-radius: 20px; background: var(--badge); color: var(--heading); }
.badge-live { background: #b42318; color: #fff; }
.badge-completed { background: var(--done-bg); color: var(--done-text); }
.badge-cancelled { background: var(--off-bg); color: var(--off-text); text-decoration: line-through; }

/* page header, filters */
.page-hero { background: var(--band); border-bottom: 1px solid var(--line); padding-block: 40px 30px; }
.page-hero h1 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); margin-bottom: 6px; }
.page-hero p { color: var(--muted); max-width: 760px; margin-bottom: 0; }
.page-hero p.row-top { margin-bottom: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; }
.chips a { border: 1px solid var(--line); border-radius: 20px; padding: 6px 16px; font-size: .87rem; font-weight: 600; color: var(--heading); }
.chips a:hover { border-color: var(--link); text-decoration: none; }
.chips a.active { background: var(--solid); border-color: var(--solid); color: var(--solid-text); }
.toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 30px; }
.toolbar .chips { margin: 0; }
.filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; }
.filters label { display: flex; flex-direction: column; gap: 4px; font-size: .78rem; font-weight: 600; color: var(--muted); }
.list-wide { max-width: 900px; }
.search-form { margin-top: 18px; max-width: 820px; }
.search-form .filters { margin-top: 14px; }
.search-form .more { padding-bottom: 10px; }
.search-block { margin-top: 36px; }
.pagination { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 40px; }

/* article */
.article-head { padding-block: 40px 8px; }
.article-head h1 { font-size: clamp(1.9rem, 4vw, 2.85rem); margin-block: 10px 16px; }
.byline { display: flex; flex-wrap: wrap; gap: 6px 20px; color: var(--muted); font-size: .9rem; border-block: 1px solid var(--line); padding-block: 12px; }
.byline span { font-weight: 600; color: var(--heading); }
.article-image { width: min(980px, 100% - 40px); margin-block: 20px 30px; }
.article-image img { width: 100%; max-height: 600px; object-fit: cover; border-radius: var(--radius); }

/* formatted text */
.prose { font-size: 1.1rem; line-height: 1.8; overflow-wrap: anywhere; }
.prose:lang(ar) { line-height: 2; }
.prose::after { content: ""; display: block; clear: both; }
.prose h2 { font-size: 1.55rem; margin-top: 1.6em; }
.prose h3 { font-size: 1.28rem; margin-top: 1.4em; }
.prose h4 { font-size: 1.12rem; margin-top: 1.3em; }
.prose ul, .prose ol { padding-inline-start: 1.4em; margin: 0 0 1.2em; }
.prose blockquote { margin: 1.6em 0; padding-inline-start: 20px; border-inline-start: 3px solid var(--gold); font-family: var(--font-head); font-size: 1.25rem; font-weight: 600; color: var(--heading); }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.prose img { height: auto; border-radius: var(--radius); }
.prose figure { margin: 1.6em auto; }
.prose figure img { width: 100%; }
.prose figure.img-small { max-width: 260px; }
.prose figure.img-medium { max-width: 460px; }
.prose figure.img-start { float: inline-start; margin: .4em 0 1em; margin-inline-end: 24px; }
.prose figure.img-end { float: inline-end; margin: .4em 0 1em; margin-inline-start: 24px; }
.prose figure.img-full:is(.img-start, .img-end) { float: none; margin-inline: 0; }
.prose figcaption { font-size: .84rem; color: var(--muted); margin-top: 6px; line-height: 1.5; }
.prose figcaption:empty { display: none; }
/* Dark mode: highlighted text stays dark, and dark text colours use their lighter shade. */
:root[data-theme="dark"] .prose [style*="background-color"] { color: #18212f; }
:root[data-theme="dark"] .prose [style*="--dc"] { color: var(--dc) !important; }

.source-box { background: var(--band); border-inline-start: 3px solid var(--link); border-radius: 4px; padding: 16px 20px; margin-block: 30px; font-size: .95rem; }
.source-box p { margin: 4px 0; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-block: 26px; font-size: .88rem; }
.tags a { background: var(--band); border: 1px solid var(--line); border-radius: 20px; padding: 3px 12px; }
.share { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; border-top: 1px solid var(--line); padding-block: 20px 8px; font-size: .86rem; }
.share strong { margin-inline-end: 6px; color: var(--heading); }
.share a, .share button { font: inherit; font-weight: 600; color: var(--heading); background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 6px 13px; cursor: pointer; }
.share a:hover, .share button:hover { background: var(--solid); border-color: var(--solid); color: var(--solid-text); text-decoration: none; }
.notice { background: var(--warn-bg); border: 1px solid var(--warn-line); border-radius: 6px; padding: 10px 14px; font-size: .9rem; color: var(--warn-text); }

/* event, sport and about pages */
.event-layout, .about-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; align-items: start; }
.event-image { width: 100%; max-height: 460px; object-fit: cover; border-radius: var(--radius); margin-bottom: 30px; }
.event-layout h2 { font-size: 1.4rem; }
.results-box { background: var(--band); border: 1px solid var(--line); border-top: 3px solid var(--gold); border-radius: var(--radius); padding: 22px 26px 8px; margin-bottom: 30px; }
.facts { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.facts dl { margin: 0; }
.facts dt { font-size: .75rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; margin-top: 12px; }
:lang(ar) .facts dt { letter-spacing: 0; font-size: .82rem; }
.facts dt:first-child { margin-top: 0; }
.facts dd { margin: 2px 0 0; font-weight: 600; color: var(--heading); }
.about-logo { width: 190px; margin-inline: auto; }
.sport-hero .wrap { display: flex; gap: 24px; align-items: center; }
.sport-hero .sport-icon { width: 96px; height: 96px; font-size: 2.9rem; }

/* footer */
.site-footer { background: var(--navy-deep); color: #c3c9d6; margin-top: 30px; border-top: 3px solid var(--gold); font-size: .92rem; }
:root[data-theme="dark"] .site-footer { background: #080e1b; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1.2fr 1.2fr; gap: 32px; padding-block: 44px; }
.site-footer h2 { color: var(--gold); font-size: 1rem; margin-bottom: 14px; }
.site-footer a { color: #e8e4da; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.site-footer .social { flex-direction: row; flex-wrap: wrap; gap: 8px; }
.social a { display: block; border: 1px solid #2c3d63; border-radius: 4px; padding: 4px 11px; font-size: .82rem; }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; font-family: var(--font-head); font-size: 1.35rem; }
.footer-chip { display: grid; place-items: center; width: 62px; height: 62px; border-radius: 12px; background: var(--cream); padding: 5px; }
.footer-chip img { max-height: 52px; width: auto; object-fit: contain; }
.footer-bottom { border-top: 1px solid #1d2c4f; padding-block: 16px; font-size: .82rem; }

/* error page */
.error-page main { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 24px; background: var(--band); }
.error-page img { margin-bottom: 20px; }

@media (max-width: 980px) {
  .hero { grid-template-columns: minmax(0, 1fr); }
  .slider { min-height: 0; aspect-ratio: 16 / 11; }
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sport-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .columns, .event-layout, .about-layout { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .header-main { gap: 8px 12px; min-height: 68px; padding-block: 10px; }
  .nav-toggle { display: grid; }
  .main-nav { display: none; max-height: calc(100vh - 130px); overflow-y: auto; }
  .main-nav.open { display: block; }
  .main-nav .wrap { flex-direction: column; padding-bottom: 10px; }
  .main-nav a, .main-nav a:first-child { padding: 11px 4px; border-bottom: 1px solid var(--line); }
  .main-nav a.active { border-bottom-color: var(--gold); }
  .list-split { grid-template-columns: minmax(0, 1fr); }
  .list-split > li:nth-child(2) { padding-top: 18px; }
}
@media (max-width: 620px) {
  .section { padding-block: 32px; }
  .card-grid, .video-grid { grid-template-columns: minmax(0, 1fr); }
  .sport-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .sport-card { padding: 16px; }
  .sport-text { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .topline .wrap span:first-child { display: none; }
  .topline .wrap { justify-content: center; }
  .header-main { gap: 8px; }
  .header-actions { gap: 5px; }
  .icon-btn { width: 36px; height: 36px; }
  .brand { gap: 7px; }
  .brand-mark { height: 40px; }
  .brand-word { height: 15px; }
  .brand-word-ar { height: 20px; }
  .lang-switch { padding: 4px 9px; font-size: .8rem; }
  .search-line { flex-wrap: wrap; }
  .date-block { width: 68px; }
  .row-article .media { width: 100px; }
  .sport-hero .wrap { flex-direction: column; align-items: flex-start; }
  .hero { padding-top: 16px; width: min(1180px, 100% - 24px); }
  .slider { aspect-ratio: 4 / 5; max-height: 470px; width: 100%; }
  .slide-text { padding: 110px 18px 56px; }
  .slide-arrow { top: 28%; width: 38px; height: 38px; }
  .slide-bar { inset-inline: 18px; gap: 8px; }
  .slide-dots { gap: 3px; flex-wrap: nowrap; }
  .slide-dots button { width: 11px; }
  .slide-dots button[aria-current="true"] { width: 22px; }
  .prose figure.img-start, .prose figure.img-end { float: none; margin-inline: auto; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
