/* Public site. Colours come from the logo (navy, trophy blue, red). Design idea: a stadium
   scoreboard - each sport carries its own colour (--c) and matches look like tickets. */

:root {
  --navy: #0a1b4a; --navy-2: #172e6e; --blue: #1565c0; --red: #e10f14;
  --paper: #f1f3f8; --card: #ffffff; --ink: #111a33; --muted: #5a6382; --line: #dfe3ee; --head: #ffffff;
  --radius: 3px; --shadow: 0 1px 2px rgb(10 27 74 / .07), 0 6px 20px rgb(10 27 74 / .05);
  --display: "Alexandria", "Cairo", Tahoma, sans-serif;
  --body: "IBM Plex Sans Arabic", "Tajawal", Tahoma, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #080d1d; --card: #111830; --ink: #e8ecf8; --muted: #9aa5c6; --line: #232c4d; --head: #111830; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #080d1d; --card: #111830; --ink: #e8ecf8; --muted: #9aa5c6; --line: #232c4d; --head: #111830; color-scheme: dark;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.7 var(--body); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--display); line-height: 1.45; margin: 0 0 .5rem; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.narrow { max-width: 780px; margin-inline: auto; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.skip { position: absolute; top: -60px; right: 8px; background: var(--red); color: #fff; padding: .4rem 1rem; z-index: 50; }
.skip:focus { top: 8px; }
main { padding-block: 1.25rem 3rem; min-height: 60vh; }

.button, button.button { display: inline-block; border: 0; border-radius: var(--radius); padding: .5rem 1.25rem;
  background: var(--navy); color: #fff; font: 700 .95rem var(--body); cursor: pointer; }

/* ---------- header */
.spectrum { display: flex; height: 5px; }
.spectrum span { flex: 1; }
.masthead { background: var(--head); }
.masthead-row { display: flex; align-items: center; gap: 1rem; padding-block: .6rem; }
.brand { display: flex; align-items: center; gap: .6rem; min-width: 0; }
.brand-logo { height: 78px; width: auto; max-width: 280px; object-fit: contain; }
.on-plate { background: #fff; border-radius: var(--radius); padding: 3px 8px; }
.brand-name { font: 800 1.45rem/1.3 var(--display); white-space: nowrap; }
.masthead-date { color: var(--muted); font-size: .85rem; margin-inline-end: auto; }
.search { display: flex; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.search input { border: 0; background: transparent; color: var(--ink); padding: .45rem 1rem; font: inherit; width: 220px; min-width: 0; }
.search input::placeholder { color: var(--muted); }
.search button { border: 0; background: transparent; color: var(--muted); cursor: pointer; padding-inline: .8rem; }
.search.wide { background: var(--card); max-width: 560px; }
.search.wide input { flex: 1; padding: .7rem 1.2rem; }
.search.wide button { background: var(--red); color: #fff; font: 700 1rem var(--body); padding-inline: 1.4rem; }
.theme-toggle { border: 0; background: var(--navy); color: #fff; width: 38px; height: 38px; border-radius: var(--radius); cursor: pointer; display: grid; place-items: center; flex: none; }
.theme-toggle .ico, .search button .ico { width: 21px; height: 21px; }

.sports { background: var(--navy); color: #fff; border-bottom: 3px solid var(--red); }
.sports ul { list-style: none; margin-block: 0; padding: 0; display: flex; gap: .25rem; }
.sports > ul { padding-block: .45rem; flex-wrap: wrap; }
.sports > ul > li { position: relative; }
.sports a { display: block; padding: .3rem .85rem; border-radius: var(--radius); white-space: nowrap; font-weight: 500; }
.sports a:hover { background: var(--navy-2); }
.sports a.active { background: var(--red); color: #fff; font-weight: 700; }
.sports .ico { margin-inline-end: .2rem; }
.sports .ico.more { width: .95em; height: .95em; margin: 0; vertical-align: -.12em; opacity: .65; }
.sports .submenu { display: none; position: absolute; top: 100%; right: 0; z-index: 20; flex-direction: column;
  background: var(--navy-2); border-radius: var(--radius); padding: .35rem; min-width: 180px; box-shadow: 0 12px 30px rgb(0 0 0 / .35); }
.sports li:hover > .submenu, .sports li:focus-within > .submenu { display: flex; }
.sports .submenu a:hover { background: var(--navy); }
.sports .matches-link { margin-inline-start: auto; }

/* ---------- headings and boxes */
.heading { display: flex; align-items: center; gap: .8rem; margin: 1.75rem 0 .9rem; }
.heading:first-child { margin-top: 0; }
.heading h1, .heading h2 { margin: 0; font-size: 1.25rem; display: flex; align-items: center; gap: .55rem; }
/* "pitch line": a halfway line with its centre circle */
.heading::after { content: ""; order: 1; flex: 1; height: 14px;
  background: radial-gradient(circle at center, transparent 4.5px, var(--c, var(--red)) 5px 6.5px, transparent 7px),
              linear-gradient(var(--line), var(--line)) center / 100% 2px no-repeat; }
.heading a { order: 2; color: var(--muted); font-size: .9rem; white-space: nowrap; display: inline-flex; align-items: center; gap: .3rem; }
.badge { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: var(--radius); background: var(--c); color: #fff; flex: none; }
.badge .ico { width: 23px; height: 23px; }
.box { background: var(--card); border-radius: var(--radius); padding: 1rem; box-shadow: var(--shadow); margin-bottom: 1rem; }
.box h2 { font-size: 1rem; border-bottom: 2px solid var(--line); padding-bottom: .5rem; }
.follow { display: block; background: #1857c9; color: #fff; font-weight: 700; text-align: center; }
a.box.follow:not([href*="facebook"]) { background: var(--navy); }
.empty { text-align: center; padding: 3rem 1rem; background: var(--card); border-radius: var(--radius); color: var(--muted); }
.empty p:first-child { font-size: 1.6rem; margin: 0; }
.empty .empty-icons { display: flex; justify-content: center; gap: 1rem; color: var(--blue); margin-bottom: .5rem; }
.hint { color: var(--muted); font-size: .88rem; }
.notice { background: #fff2c4; color: #5a4500; border-radius: var(--radius); padding: .7rem 1rem; margin-bottom: 1rem; }
.columns { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 1.5rem; align-items: start; }
.tag { display: inline-block; background: var(--c); color: #fff; font-size: .75rem; font-weight: 700; padding: .05rem .6rem; border-radius: var(--radius); }

/* ---------- breaking news */
.breaking { display: flex; align-items: center; gap: .8rem; background: var(--card); border-radius: var(--radius); padding: .35rem; margin-bottom: 1rem; box-shadow: var(--shadow); }
.breaking-label { background: var(--red); color: #fff; font: 800 .85rem var(--display); border-radius: var(--radius); padding: .15rem 1rem; flex: none; }
.breaking-items { min-width: 0; }
.breaking-items a { display: block; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; animation: slide-in .4s ease; }
@keyframes slide-in { from { opacity: 0; transform: translateY(8px); } }

/* ---------- scoreboard tickets */
.tickets { display: flex; gap: .8rem; overflow-x: auto; scroll-snap-type: x proximity; padding-bottom: .6rem; scrollbar-width: thin; }
.ticket { flex: 0 0 250px; scroll-snap-align: start; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  border-top: 4px solid var(--c); padding: .6rem .85rem .5rem; display: flex; flex-direction: column; gap: .25rem; }
.ticket.important { background: linear-gradient(160deg, color-mix(in srgb, var(--c) 16%, var(--card)), var(--card) 70%); }
.ticket header, .ticket footer { display: flex; justify-content: space-between; align-items: center; gap: .5rem; font-size: .76rem; color: var(--muted); }
.competition { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side { display: flex; justify-content: space-between; align-items: center; gap: .5rem; font-weight: 700; }
.side span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side b { font: 800 1.15rem var(--display); }
.headline { font-weight: 700; line-height: 1.5; min-height: 3.4rem; display: flex; align-items: center; }
.ticket footer { border-top: 2px dashed var(--line); padding-top: .4rem; margin-top: auto; }
.ticket footer a { color: var(--c); font-weight: 700; }

.state { font-size: .72rem; font-weight: 700; border-radius: var(--radius); padding: 0 .5rem; background: var(--line); color: var(--ink); white-space: nowrap; }
.state-live, .state-started { background: #d92d20; color: #fff; }
.state-live::before { content: ""; display: inline-block; width: .5em; height: .5em; background: currentColor; margin-inline-end: .35rem; animation: blink 1.2s infinite; }
.competition .ico, .event-meta .ico { color: var(--c); }
.state-finished { background: var(--navy); color: #fff; }
.state-postponed, .state-cancelled { background: #fbe3a2; color: #5a4500; }
@keyframes blink { 50% { opacity: .2; } }

/* ---------- lead story */
.lead { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 1rem; margin-top: 1.25rem; }
.lead.single { grid-template-columns: 1fr; }
.lead-main { position: relative; display: block; min-height: 380px; border-radius: var(--radius); overflow: hidden; background: var(--navy); }
.lead-main > img, .lead-main > .no-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lead-main > .no-image { font-size: 7rem; }
.lead-text { position: absolute; inset: auto 0 0 0; display: flex; flex-direction: column; align-items: flex-start; gap: .35rem;
  padding: 4rem 1.25rem 1.1rem; color: #fff; background: linear-gradient(transparent, rgb(6 18 13 / .94)); }
.lead-text strong { font: 800 clamp(1.2rem, 2.6vw, 1.85rem)/1.5 var(--display); }
.lead-text > span:last-child { color: #d5e0da; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lead-side, .rows { list-style: none; margin: 0; padding: 0; }
.lead-side { display: flex; flex-direction: column; gap: .75rem; }
.lead-side .row { flex: 1; display: flex; background: var(--card); border-radius: var(--radius); padding: .65rem; box-shadow: var(--shadow); }
.row a { display: flex; gap: .75rem; align-items: center; width: 100%; }
.row span { display: flex; flex-direction: column; min-width: 0; }
.row strong { line-height: 1.55; font-size: .95rem; }
.row small, .card small { color: var(--muted); font-size: .76rem; }
.rows .row + .row { border-top: 1px solid var(--line); }
.rows .row { padding-block: .55rem; }
.row-img { width: 92px; height: 70px; object-fit: cover; border-radius: var(--radius); flex: none; }
.row-img.no-image { font-size: 1.6rem; }
.rank { font: 800 1.5rem var(--display); color: var(--red); width: 1.6rem; text-align: center; flex: none; }
.no-image { display: grid; place-items: center; color: rgb(255 255 255 / .92); background: linear-gradient(135deg, var(--c), color-mix(in srgb, var(--c) 45%, #000)); }
.no-image > .ico { width: 1.25em; height: 1.25em; }

/* ---------- automatic news slider (home page) */
.slider { position: relative; overflow: hidden; min-height: 420px; border-radius: var(--radius); background: var(--navy); touch-action: pan-y; }
.slide { position: absolute; inset: 0; visibility: hidden; }
.slide.active { visibility: visible; }
.slide > a { display: block; height: 100%; color: #fff; }
.slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.slide .play { top: 10px; bottom: auto; }
.slide-text { position: absolute; inset: auto 0 0 0; display: flex; flex-direction: column; align-items: flex-start; gap: .3rem;
  padding: 5rem 3.4rem 3rem; background: linear-gradient(transparent, rgb(5 10 30 / .74) 45%, rgb(5 10 30 / .96)); }
.slide-meta { display: flex; align-items: center; gap: .6rem; font-size: .78rem; color: #d3daf0; text-shadow: 0 1px 3px #000; }
.slide-text strong, .slide-excerpt { display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
.slide-text strong { -webkit-line-clamp: 3; font: 800 clamp(1.1rem, 2.4vw, 1.65rem)/1.55 var(--display); }
.slide-excerpt { -webkit-line-clamp: 1; font-size: .92rem; color: #d3daf0; }
.slider-arrow { position: absolute; top: calc(38% - 28px); width: 32px; height: 56px; display: grid; place-items: center; border: 0; border-radius: var(--radius);
  background: rgb(5 10 30 / .6); color: #fff; cursor: pointer; }
.slider-arrow:hover { background: var(--red); }
.slider-arrow::before { content: ""; width: 9px; height: 9px; border: solid currentColor; border-width: 2px 2px 0 0; }
.slider-arrow.prev { right: 8px; }
.slider-arrow.prev::before { transform: translateX(-2px) rotate(45deg); }
.slider-arrow.next { left: 8px; }
.slider-arrow.next::before { transform: translateX(2px) rotate(-135deg); }
.slider-bar { position: absolute; bottom: 6px; inset-inline: 0; width: max-content; max-width: calc(100% - 12px); margin-inline: auto; display: flex; align-items: center; padding-inline: 4px;
  border-radius: var(--radius); background: rgb(0 0 0 / .62); }
.slider-bar button { height: 30px; display: grid; place-items: center; padding: 0; border: 0; background: transparent; color: #fff; cursor: pointer; }
.slider-toggle { width: 26px; flex-shrink: 0; margin-inline-end: 4px; }
.slider-toggle::before { content: ""; width: 9px; height: 11px; border-inline: 3px solid currentColor; }
.slider-toggle.stopped::before { width: 0; height: 0; border-block: 6px solid transparent; border-inline: 0; border-left: 9px solid currentColor; }
.slider-dot { width: 15px; min-width: 9px; }
.slider-dot::before { content: ""; width: 6px; height: 6px; border-radius: var(--radius); background: rgb(255 255 255 / .45); }
.slider-dot[aria-current] { width: 34px; flex-shrink: 0; }
/* the current dot stretches into a bar that fills until the next story */
.slider-dot[aria-current]::before { width: 26px; background: linear-gradient(var(--red), var(--red)) right / 100% 100% no-repeat rgb(255 255 255 / .45); }
.slider.auto .slider-dot[aria-current]::before { animation: slider-progress var(--time) linear forwards; }
.slider.paused .slider-dot[aria-current]::before { animation-play-state: paused; }
.slider:not(.ready) .slider-arrow, .slider:not(.ready) .slider-bar { display: none; }
@keyframes slider-progress { from { background-size: 0 100%; } }
.lead .top-news { margin: 0; display: flex; flex-direction: column; }
.top-news .rows { flex: 1; display: flex; flex-direction: column; }
.top-news .row { flex: 1; display: flex; }

/* ---------- cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1rem; }
.grid.compact { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.card { background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .15s; }
.card:hover { transform: translateY(-3px); }
.card > a { display: flex; flex-direction: column; height: 100%; }
.card-media { position: relative; aspect-ratio: 16 / 10; border-bottom: 3px solid var(--c); }
.card-media > img, .card-media > .no-image { width: 100%; height: 100%; object-fit: cover; font-size: 3rem; }
.play { position: absolute; bottom: 8px; left: 8px; width: 34px; height: 34px; border-radius: var(--radius); background: rgb(0 0 0 / .65); color: #fff; display: grid; place-items: center; font-size: .8rem; }
.play .ico { width: 17px; height: 17px; }
.card-body { display: flex; flex-direction: column; align-items: flex-start; gap: .35rem; padding: .75rem .85rem .85rem; flex: 1; }
.card h3 { font-size: .98rem; margin: 0; line-height: 1.65; }
.card p { margin: 0; color: var(--muted); font-size: .87rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card small { margin-top: auto; }
.compact .card p { display: none; }

/* ---------- events */
.events { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .6rem; }
.event { display: flex; gap: 1rem; align-items: center; background: var(--card); border-radius: var(--radius); border-inline-start: 5px solid var(--c); padding: .7rem 1rem; box-shadow: var(--shadow); }
.event.important { background: linear-gradient(to left, color-mix(in srgb, var(--c) 14%, var(--card)), var(--card) 60%); }
.event-time { display: flex; flex-direction: column; align-items: center; gap: .2rem; min-width: 92px; font: 600 .95rem var(--display); }
.event-main { flex: 1; min-width: 0; text-align: center; }
.versus { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: .8rem; font-weight: 700; }
.versus span:first-child { text-align: left; }
.versus span:last-child { text-align: right; }
.versus.single { display: block; }
.versus.single span { text-align: center; }
.score { font: 800 1.05rem var(--display); background: var(--navy); color: #fff; border-radius: var(--radius); padding: 0 .7rem; min-width: 3rem; text-align: center; }
.score i { font-style: normal; }
.score-note, .event-title { font-size: .85rem; color: var(--muted); }
.event-meta { display: flex; justify-content: center; flex-wrap: wrap; gap: .1rem .9rem; font-size: .8rem; color: var(--muted); margin-top: .25rem; }
.event-meta a { color: var(--c); font-weight: 700; }
.events.small { gap: 0; }
.events.small .event { box-shadow: none; border-radius: 0; background: transparent; padding: .6rem .6rem .6rem 0; gap: .6rem; }
.events.small .event + .event { border-top: 1px solid var(--line); }
.events.small .event-time { min-width: 72px; font-size: .75rem; }
.events.small .versus { display: flex; justify-content: center; flex-wrap: wrap; gap: .4rem; font-size: .88rem; }
.events.small .score { font-size: .85rem; min-width: 0; }
.day h2 { font-size: 1rem; margin-top: 1.5rem; }

.tabs { display: flex; gap: .25rem; background: var(--card); border-radius: var(--radius); padding: .3rem; width: fit-content; max-width: 100%; box-shadow: var(--shadow); }
.tabs a { padding: .35rem 1.2rem; border-radius: var(--radius); font-weight: 700; }
.tabs a.active { background: var(--navy); color: #fff; }
.chips { display: flex; gap: .5rem; overflow-x: auto; padding-block: .9rem; }
.chips a { display: inline-flex; align-items: center; gap: .4rem; white-space: nowrap; background: var(--card); border: 2px solid var(--c); border-radius: var(--radius); padding: .2rem .9rem; font-size: .9rem; font-weight: 500; }
.chips a .ico { color: var(--c); }
.chips a.active { background: var(--c); color: #fff; }
.chips a.active .ico { color: inherit; }

.section-hero { display: flex; align-items: center; gap: 1.2rem; border-radius: var(--radius); padding: 1.4rem 1.5rem; color: #fff; margin-bottom: .5rem;
  background: radial-gradient(circle at 8% 50%, transparent 58px, rgb(255 255 255 / .14) 59px 62px, transparent 63px),
              linear-gradient(105deg, color-mix(in srgb, var(--c) 55%, #000), var(--c)); }
.section-hero h1 { margin: 0; font-size: 1.8rem; }
.section-hero p { margin: 0; opacity: .9; }
.section-hero .parent { font-size: .85rem; opacity: .85; }
.section-icon { font-size: 3.4rem; line-height: 0; }
.section-icon .ico { width: 1em; height: 1em; }

/* ---------- article */
.article { background: var(--card); border-radius: var(--radius); padding: clamp(1rem, 3vw, 2rem); box-shadow: var(--shadow); border-top: 5px solid var(--c); min-width: 0; }
.article h1 { font-size: clamp(1.4rem, 3.4vw, 2rem); margin-top: .5rem; }
.meta { display: flex; flex-wrap: wrap; gap: .3rem 1.1rem; color: var(--muted); font-size: .85rem; margin: 0 0 1rem; }
.summary { font-size: 1.1rem; font-weight: 500; border-inline-start: 4px solid var(--c); padding-inline-start: .9rem; }
.hero { width: 100%; border-radius: var(--radius); margin-block: 1rem; }
.edit-link { margin: 0 0 .75rem; }
.linked { box-shadow: none; padding: 0; margin-top: 1.5rem; background: transparent; }
.linked .event { background: var(--paper); box-shadow: none; }
.source { color: var(--muted); font-size: .85rem; }
.source a { text-decoration: underline; }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; border-top: 2px dashed var(--line); padding-top: 1rem; margin-top: 1.5rem; }
.share a, .share button { display: inline-flex; align-items: center; gap: .45rem; border: 1px solid var(--line); background: transparent; color: inherit; font: 500 .88rem var(--body); border-radius: var(--radius); padding: .25rem 1rem; cursor: pointer; }
.share a:hover, .share button:hover { border-color: var(--c); }

.pager { display: flex; justify-content: center; align-items: center; gap: 1rem; margin-top: 1.5rem; }
.pager a { background: var(--navy); color: #fff; border-radius: var(--radius); padding: .35rem 1.1rem; }
.pager span { color: var(--muted); font-size: .85rem; }

/* ---------- footer */
.footer { background: var(--navy); color: #d3daf0; padding-top: 2rem; border-top: 5px solid var(--red); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 1.5rem; }
.footer h2 { font-size: .95rem; color: #fff; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer-logo { height: 76px; width: auto; max-width: 240px; object-fit: contain; }
.footer .social { display: flex; flex-direction: column; align-items: flex-start; gap: .5rem; margin-bottom: .8rem; }
.footer .social a { display: inline-flex; align-items: center; gap: .65rem; }
.footer .social a:hover { text-decoration: none; }
.footer .social a:hover span { text-decoration: underline; }
.footer .social .ico { width: 38px; height: 38px; padding: 8px; border-radius: var(--radius); background: var(--navy-2); color: #fff; }
.footer .social a:hover .ico { background: var(--red); }
.copyright { border-top: 1px solid var(--navy-2); margin-top: 1.5rem; padding-block: .9rem; font-size: .82rem; }

/* ---------- lightbox */
.lightbox { position: fixed; inset: 0; z-index: 60; background: rgb(0 0 0 / .93); display: flex; align-items: center; justify-content: center; }
.lightbox img { max-width: 94vw; max-height: 88vh; }
.lightbox button { position: absolute; display: grid; place-items: center; padding: 0; border: 0; background: rgb(255 255 255 / .15); color: #fff; width: 46px; height: 46px; border-radius: var(--radius); cursor: pointer; }
.lightbox button::before { content: ""; width: 11px; height: 11px; border: solid currentColor; border-width: 2px 2px 0 0; }
.lightbox .close { top: 14px; left: 14px; }
.lightbox .close::before, .lightbox .close::after { content: ""; position: absolute; top: 22px; left: 13px; width: 20px; height: 2px; border: 0; background: currentColor; transform: rotate(45deg); }
.lightbox .close::after { transform: rotate(-45deg); }
.lightbox .prev { right: 10px; top: 50%; }
.lightbox .prev::before { transform: translateX(-2px) rotate(45deg); }
.lightbox .next { left: 10px; top: 50%; }
.lightbox .next::before { transform: translateX(2px) rotate(-135deg); }

.error-page { background: var(--navy); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 100vh; text-align: center; padding: 1rem; }
.error-page h1 { font-size: 5rem; margin: 1rem 0 0; }
.error-page .button { background: var(--red); }

@media (max-width: 900px) {
  .columns, .lead { grid-template-columns: minmax(0, 1fr); }
  .lead-main { min-height: 280px; }
  .slider { min-height: 0; aspect-ratio: 16 / 10; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .masthead-row { flex-wrap: wrap; gap: .6rem; }
  .brand { margin-inline-end: auto; }
  .brand-name { font-size: 1.2rem; }
  .brand-logo { height: 58px; max-width: 200px; }
  .masthead-date { display: none; }
  .masthead .search { order: 3; width: 100%; }
  .masthead .search input { flex: 1; }
  .sports > ul { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .sports .submenu, .sports li:hover > .submenu, .sports li:focus-within > .submenu { display: none; }
  .sports .ico.more { display: none; }
  .grid, .grid.compact { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; }
  .card p { display: none; }
  .card-body { padding: .55rem .6rem .65rem; }
  .card h3 { font-size: .88rem; }
  .event { gap: .6rem; padding: .6rem .7rem; }
  .event-time { min-width: 70px; font-size: .8rem; }
  .versus { gap: .45rem; font-size: .9rem; }
  .tabs { width: 100%; justify-content: space-between; }
  .tabs a { padding-inline: .8rem; font-size: .9rem; }
  .slider { aspect-ratio: 1 / 1; max-height: 420px; width: 100%; }
  .slide-text { padding: 4rem .85rem 2.8rem; }
  .slide-excerpt { display: none; }
  .slider-bar button { height: 34px; }
  .slider-dot:not([aria-current]) { width: 22px; }  /* easier to tap; they shrink if there are many */
  .slider-arrow { width: 30px; height: 48px; top: calc(34% - 24px); }
  .slider-arrow.prev { right: 4px; }
  .slider-arrow.next { left: 4px; }
}
/* ---------- phones */
.tabbar { display: none; }
.sheet { position: fixed; inset: auto 0 0 0; margin: 0; width: 100%; max-width: 100%; max-height: 85vh; overflow-y: auto; border: 0;
  border-radius: var(--radius) var(--radius) 0 0; background: var(--card); color: var(--ink); padding: 1rem 1rem calc(1rem + env(safe-area-inset-bottom)); }
.sheet::backdrop { background: rgb(5 10 30 / .6); }
.sheet-head { display: flex; justify-content: space-between; align-items: center; font-family: var(--display); }
.sheet-head button { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: var(--radius); background: var(--paper); color: inherit; cursor: pointer; }
.sheet ul { list-style: none; margin: .5rem 0; padding: 0; }
.sheet li { border-top: 1px solid var(--line); padding-block: .45rem; }
.sheet-main { display: flex; align-items: center; gap: .7rem; min-height: 48px; font-weight: 700; }
.sheet-children { display: flex; flex-wrap: wrap; gap: .5rem; padding: .3rem 0 .2rem; }
.sheet-children a { display: inline-flex; align-items: center; gap: .45rem; border: 2px solid var(--c); border-radius: var(--radius); padding: .45rem 1rem; }
.sheet-children .ico { color: var(--c); }
.sheet-links { display: flex; flex-wrap: wrap; gap: .3rem 1.4rem; border-top: 1px solid var(--line); padding-top: .6rem; }
.sheet-links a { padding-block: .5rem; color: var(--muted); }
.sheet-social { display: flex; flex-wrap: wrap; gap: .6rem; padding-top: .6rem; }
.sheet-social a { display: grid; place-items: center; width: 48px; height: 48px; border-radius: var(--radius); background: var(--navy); color: #fff; }
.sheet-social .ico { width: 24px; height: 24px; }

@media (max-width: 720px) {
  body { padding-bottom: calc(62px + env(safe-area-inset-bottom)); }
  .tabbar { display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; inset: auto 0 0 0; z-index: 30;
    background: var(--card); border-top: 2px solid var(--red); padding-bottom: env(safe-area-inset-bottom); box-shadow: 0 -4px 16px rgb(10 27 74 / .12); }
  .tabbar a, .tabbar button { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 60px;
    border: 0; background: none; color: var(--muted); font: 700 .74rem/1.4 var(--body); cursor: pointer; }
  .tabbar .ico { width: 25px; height: 25px; margin-bottom: 3px; }
  .tabbar .active { color: var(--red); background: rgb(225 15 20 / .07); }
  .masthead .search, .sports .matches-link { display: none; }   /* both live in the bottom menu */
}

/* finger-sized targets: narrow screens, and any touch screen (phones held sideways, tablets) */
@media (max-width: 720px), (pointer: coarse) {
  .theme-toggle { width: 44px; height: 44px; }
  .sports a { padding-block: .5rem; }
  .chips a { padding: .45rem 1rem; }
  .tabs a { padding-block: .55rem; text-align: center; }
  .heading a { padding-block: .6rem; }
  .breaking-items a { padding-block: .3rem; }
  .section-hero .parent { display: inline-block; padding-block: .35rem; }
  .share a, .share button { padding: .55rem 1.1rem; }
  .pager a { padding: .65rem 1.2rem; }
  .ticket footer a, .event-meta a { display: inline-block; padding-block: .45rem; }
  .footer li a { display: inline-block; padding-block: .45rem; }
  .copyright a { display: inline-block; padding-block: .5rem; }
  .search.wide input, .search.wide button { min-height: 48px; font-size: 16px; }
  .state, .event-meta, .ticket header, .ticket footer, .row small, .card small { font-size: .8rem; }
}

@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
