/* أكاديمية تايرو — «أقل شبهًا بالمواقع المولّدة» (2026-10-07): خط واحد، لون واحد من الشعار، تخطيط متنوّع.
   يُحمَّل بعد site.css و home.css ويعدّل الشكل فقط — محتوى لوحة عمر (tyro-content) وapp.js كما هما.
   الخط: Readex Pro (رخصة OFL، مجاني) — ملف متغيّر واحد لكل نص (400–700). */
@font-face { font-family: 'Readex Pro'; font-weight: 400 700; font-display: swap; src: url(fonts/readex-arabic.woff2) format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC7, U+10EC9-10EEE, U+10EF0-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1; }
@font-face { font-family: 'Readex Pro'; font-weight: 400 700; font-display: swap; src: url(fonts/readex-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
:root {
  --bg0: #050E22; --bg1: #071634; --card: #0A1C45; --card2: #0D2352;   /* crest navy #003078, darkened */
  --ink: #F2F5FA; --mut: #A9B5C9;                                       /* one text grey (cool, matches navy) */
  --accent: #2E6BE6; --accent-soft: #8CC8F0;                            /* ONE accent = crest blue lifted for dark bg; sky = collar detail only */
  --gold: var(--accent);                                                /* gold retired */
  --line: rgba(160, 185, 225, .14); --r: 16px;
  --s1: .875rem; --s2: 1rem; --s3: 1.25rem; --s4: 1.625rem; --s5: 2.125rem;   /* 5-step type scale */
}
html, body, button, input, h1, h2, h3, h4, a, .btn-join, .btn-ghost, .top-login, .brand span, .dir-tile b, .sec-t, .sub-t, .dir-t { font-family: 'Readex Pro', system-ui, sans-serif !important; letter-spacing: 0 !important; }
body { background: var(--bg0); }
h1, h2, h3, .sec-t, .dir-t { text-wrap: balance; } p, small { text-wrap: pretty; }
h1#heroName { font-size: var(--s5) !important; font-weight: 700; }
.sec-t, .dir-t { font-size: var(--s4) !important; font-weight: 700; }
.sub-t, .tcard h3, .disc h3, .ev-card h3 { font-size: var(--s3) !important; font-weight: 600; }
p, .tcard p, .disc p, .dir-tile small { font-size: var(--s2); line-height: 1.75; color: var(--mut) !important; }
small, .d-mini, .hero-hint { font-size: var(--s1) !important; }

/* one card recipe → flat surfaces: no gradient, no glow; border OR background, never both + shadow */
.tcard, .disc, .dir-tile, .ev-card, .grp, .step, .fact, #contactBody > *, #adCard > *, [class*="card"] { background-image: none !important; box-shadow: none !important; }
.dir-tile, .disc, .ev-card, #adCard > * { background: var(--card) !important; border-color: transparent !important; border-radius: var(--r) !important; }
*:is(img, video) { border-radius: calc(var(--r) - 6px); }
/* glows and pulses off */
.btn-join, .hero-cta a, .wa-fab, [class*="fab"] { box-shadow: none !important; }
.reg-dot, .hero-down i, .reg-pill .dot { animation: none !important; }

/* the 01–06 numbers and the bar before every heading: gone */
.dir-tile .dn, .disc .dcn, .tcard .num, [class*="-num"], .dcn { display: none !important; }
.sec-t::before, .sub-t::before, .dir-t::before, .dir-t::after, .disc h3::before, .tcard.big h3::after { content: none !important; display: none !important; }
.sec-t { margin-top: 3.5rem; }

/* emoji icons in the guide tiles: removed (text does the work) */
.dir-tile .di { display: none !important; }
.dir-grid { gap: 8px !important; }
.dir-tile { min-height: 0 !important; padding: 16px 16px !important; }
.dir-tile b { font-size: var(--s3) !important; }

/* buttons: one accent; WhatsApp green only on real WhatsApp buttons */
.top-login, .btn-ghost:hover { background: var(--accent) !important; color: #fff !important; }
.btn-ghost { border-color: rgba(242, 245, 250, .35) !important; }
a, button { -webkit-tap-highlight-color: transparent; }
a:active, button:active { transform: scale(.97); }
:is(a, button, [tabindex]):focus-visible { outline: 3px solid var(--accent-soft) !important; outline-offset: 3px; border-radius: 12px; }

/* hero video pause control (WCAG 2.2.2) */
.vid-pause { position: absolute; inset-inline-start: 16px; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 5; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.35); background: rgba(5,14,34,.55); color: #fff; font-size: .95rem; cursor: pointer; }
/* fixes after first look */
h1#heroName { line-height: 1.25 !important; margin-bottom: .35em !important; }
.hero-tag { margin-top: 0 !important; line-height: 1.6 !important; }
.dir-tile::before, .dir-tile::after { content: none !important; display: none !important; }
.dir-t, .dir-s { padding-inline: 64px; }   /* clear of the floating WhatsApp button */
.dir-tile.priv { outline: 1px solid rgba(140, 200, 240, .35); outline-offset: -1px; }
#hero h1#heroName { line-height: 1.45 !important; margin: 0 !important; }
#hero .hero-tag { margin: 6px 0 16px !important; }
.grp .gn { display: none !important; }
.grp { background: var(--card) !important; border-color: transparent !important; }
#hero h1#heroName { font-size: clamp(2.5rem, 11vw, 3.75rem) !important; }
#hero .hero-tag { color: #fff !important; font-weight: 500; text-shadow: 0 1px 12px rgba(0, 0, 0, .85) !important; }
#hero .hero-veil { background: linear-gradient(180deg, rgba(5,14,34,.55) 0%, rgba(5,14,34,.1) 28%, rgba(5,14,34,.55) 55%, rgba(5,14,34,.95) 100%) !important; }

/* ================= LAYOUT (step 2) — break the identical-card rhythm. CSS only: Omar's content and app.js untouched. ================= */
/* 1. «وين تبي تروح؟» — 6 identical tiles → one clean list (a site map is a list, not a gallery) */
#dirGrid.dir-grid { display: block !important; border-top: 1px solid var(--line); margin-top: 18px; }
#dirGrid .dir-tile { display: grid !important; grid-template-columns: 1fr auto; grid-template-rows: auto auto; column-gap: 12px; align-items: center;
  background: none !important; border: 0 !important; border-bottom: 1px solid var(--line) !important; border-radius: 0 !important; padding: 14px 4px !important; min-height: 0 !important; transform: none !important; }
#dirGrid .dir-tile .dbg { display: none !important; }
#dirGrid .dir-tile b { grid-column: 1; font-size: var(--s3) !important; }
#dirGrid .dir-tile small { grid-column: 1; margin: 0 !important; }
#dirGrid .dir-tile .da { position: static !important; grid-column: 2; grid-row: 1 / span 2; color: var(--accent-soft); }
#dirGrid .dir-tile .dh, #dirGrid .dir-tile .dp { position: static !important; grid-column: 1; justify-self: start; margin-top: 6px; }
#dirGrid .dir-tile.priv { background: var(--card) !important; border-radius: var(--r) !important; border-bottom: 0 !important; margin-top: 14px; padding: 16px !important; }

/* 2. «تايرو في الفحيحيل» — first story keeps a big real photo; the rest become a plain fact list (no 6 look-alike photo cards) */
#aboutBody .disc-grid { display: block !important; }
#aboutBody .disc { display: block !important; min-height: 0 !important; background: none !important; border: 0 !important; border-radius: 0 !important; padding: 16px 0 !important; border-bottom: 1px solid var(--line) !important; transform: none !important; }
#aboutBody .disc img, #aboutBody .disc::after { display: none !important; }
#aboutBody .disc .dcb { padding: 0 !important; }
#aboutBody .disc:first-child { position: relative; min-height: 320px !important; display: flex !important; align-items: flex-end; border-radius: var(--r) !important; overflow: hidden; border-bottom: 0 !important; margin-bottom: 8px; padding: 0 !important; }
#aboutBody .disc:first-child img { display: block !important; }
#aboutBody .disc:first-child::after { display: block !important; }
#aboutBody .disc:first-child .dcb { padding: 18px !important; }
#aboutBody .disc:first-child h3 { font-size: var(--s4) !important; }

/* 3. Age groups — 4 cards → a simple age table: name on one side, ages on the other */
.grp-grid { display: block !important; border-top: 1px solid var(--line); }
.grp-grid .grp { display: flex !important; justify-content: space-between; align-items: baseline; gap: 12px; background: none !important; border: 0 !important; border-bottom: 1px solid var(--line) !important; border-radius: 0 !important; padding: 14px 2px !important; }
.grp-grid .grp h3 { margin: 0; }
.grp-grid .grp .ga { margin: 0 !important; white-space: nowrap; }

/* 4. Registration — 3 boxed cards → numbered steps on a line (reads as a sequence) */
.join-steps { list-style: none; padding: 0 !important; margin: 18px 0 !important; position: relative; }
.join-steps::before { content: ''; position: absolute; inset-inline-start: 17px; top: 18px; bottom: 18px; width: 2px; background: var(--line); }
.join-steps li { background: none !important; border: 0 !important; box-shadow: none !important; padding: 0 52px 22px 0 !important; position: relative; counter-increment: st; min-height: 0 !important; }
.join-steps li::before { content: counter(st); position: absolute; inset-inline-start: 0; top: 0; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #fff; font-weight: 700; }
.join-steps { counter-reset: st; }
.join-steps li > *:first-child:not(div) { display: none; }   /* old number box */
.join-steps li .sn, .join-steps li > span:first-child { display: none !important; }

/* 5. Contact — card → plain rows with the real buttons */
#contactBody .ct { background: none !important; border: 0 !important; padding: 0 !important; }
#contactBody .ct-info { border-top: 1px solid var(--line); padding-top: 14px; }

/* 6. Rhythm: different spacing per section instead of the same gap everywhere */
#about { margin-top: 64px; } #events { margin-top: 48px; } #groups { margin-top: 72px; } #join { margin-top: 56px; } #contact { margin-top: 80px; }
.star .snum { display: none !important; }

/* اسم الأكاديمية بالإنجليزية تحت العنوان العربي (طلب 2026-10-07) — يختفي في الوضع الإنجليزي لأن العنوان نفسه يصير TYRO Academy */
#hero .hero-en { margin: 2px 0 6px !important; font-family: 'Readex Pro', system-ui, sans-serif; font-weight: 600; font-size: clamp(.95rem, 4vw, 1.15rem); letter-spacing: .32em !important; color: var(--accent-soft); text-shadow: 0 1px 10px rgba(0, 0, 0, .8); }
.i18n-en #hero .hero-en { display: none; }
/* شعار تايرو ثابت فوق العنوان على كل الشاشات (طلب 2026-10-07) — أصغر على الهاتف حتى لا يغطي وجه اللاعب في الخلفية */
#hero .hero-crest { display: block !important; margin: 0 auto 10px; width: 64px; height: 64px; padding: 6px; border-radius: 18px; box-shadow: 0 6px 24px rgba(0, 0, 0, .45) !important; }
@media (min-width: 760px) { #hero .hero-crest { width: 84px; height: 84px; border-radius: 22px; } }
/* إعلان الأكاديمية صار أول قسم بعد الواجهة (#film) — نفس قواعد الهاتف التي كانت على #about */
#film { margin-top: 28px; }
#film .ad-card { margin: 0; }
@media (max-width: 759px) {
  #film .ad-card { padding: 14px; }
  #film .ad-card .al { margin: 2px 0 10px; }
  #film .ad-card video { max-width: 272px; aspect-ratio: 4 / 5; max-height: 46svh; object-fit: cover; object-position: center 50%; }
}
#dir { margin-top: 48px; }
