/* The three tabs, in the Netflix look on a near-black green: الرئيسية (greeting and «عن المنصة»), السلاسل (a big
   picture, rows and every section as a card), التحديات (coming soon). */

/* ---- shared ---- */
.nf-top { display: flex; align-items: center; gap: 12px; padding: 16px 16px 6px; }
.nf-top .brand { width: 44px; flex: none; }
.nf-top h1 { font-size: 22px; font-weight: 700; }
/* The search box, small at the end of the header */
.nf-search { flex: 1; min-width: 0; max-width: 230px; margin-inline-start: auto; display: flex; align-items: center; gap: 6px; height: 38px;
  padding: 0 12px; border-radius: 99px; background: rgb(var(--fg) / .1); border: 1px solid rgb(var(--fg) / .14); }
.nf-search:focus-within { border-color: var(--gold); background: rgb(var(--fg) / .14); }
.nf-search .ic { width: 18px; height: 18px; flex: none; opacity: .75; }
.nf-search input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; color: var(--text-strong); font: inherit; font-size: 14px; outline: none; }
.nf-search input::placeholder { color: rgb(var(--fg) / .55); }
.nf-search input::-webkit-search-cancel-button { filter: invert(1); }
/* Lessons found by the search */
.sr-list { list-style: none; margin: 0 16px; padding: 0; display: grid; gap: 10px; }
.sr-row { width: 100%; display: flex; align-items: center; gap: 12px; text-align: start; }
.sr-pic { position: relative; width: 116px; aspect-ratio: 16 / 9; flex: none; border-radius: 8px; overflow: hidden; background: #0d2c20; }
.sr-pic > img, .sr-pic > .nf-plain { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sr-play { position: absolute; inset-block-end: 6px; inset-inline-start: 6px; width: 24px; height: 24px; display: grid; place-items: center;
  border-radius: 50%; background: rgba(0, 0, 0, .6); }
.sr-play .ic { width: 12px; height: 12px; }
.sr-text { min-width: 0; display: grid; gap: 2px; }
.sr-text b { font-size: 15px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sr-text small { font-size: 12.5px; color: rgb(var(--fg) / .6); }
.nf-shelf[hidden], #sr-none[hidden], [data-browse][hidden] { display: none; }
.nf-h { margin: 26px 16px 10px; font-size: 17px; font-weight: 700; }
.wrap .nf-h { margin-inline: 2px; }
.nf-plain { display: grid; place-items: center; overflow: hidden; background: var(--kufic), linear-gradient(160deg, var(--green-600), var(--green-900)); }
.nf-plain.hue-1 { background: var(--kufic), linear-gradient(160deg, #14506b, #071f2b); }
.nf-plain.hue-2 { background: var(--kufic), linear-gradient(160deg, #7a3d22, #2a1209); }
.nf-plain img { width: 30%; opacity: .16; }
.nf-plain b { position: absolute; inset-inline: 10px; padding: 0 4px; font-size: 15px; line-height: 1.45; text-align: center; color: var(--gold-soft); }
.nf-play, .nf-info { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 42px; padding: 0 20px; border-radius: 8px;
  font-size: 15px; font-weight: 700; }
.nf-play { background: var(--gold); color: var(--green-950); }
.nf-play.wide { width: 100%; margin-top: 14px; min-height: 48px; }
.nf-info { background: rgb(var(--fg) / .16); color: var(--text-strong); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.nf-play .ic, .nf-info .ic { width: 20px; height: 20px; }
.soon-pill { padding: 1px 12px; border-radius: 99px; background: var(--gold); color: var(--green-950); font-size: 12.5px; font-weight: 700; }

/* «حصري» and «مكتمل» on a section (set in the dashboard) */
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { padding: 0 9px; border-radius: 4px; font-size: 11.5px; font-weight: 700; line-height: 20px; }
.tag.ex { background: var(--gold); color: var(--green-950); }
.tag.done { background: rgba(255, 255, 255, .9); color: var(--green-950); }
.tags.on-pic { position: absolute; top: 6px; inset-inline-end: 6px; gap: 4px; }
.tags.on-pic .tag { font-size: 10.5px; line-height: 18px; padding: 0 7px; box-shadow: 0 2px 6px rgba(0, 0, 0, .4); }
.nf-bill-copy .tags, .sh-body .tags { justify-content: center; margin: 2px 0; }
.sh-body .tags { justify-content: flex-start; }

/* ---- الرئيسية ---- */
.hero { position: relative; margin-bottom: 18px; padding: 18px 20px 26px; color: #fff; border-radius: 0 0 30px 30px;
  background: var(--kufic), linear-gradient(160deg, var(--green-600) 0%, var(--green-800) 100%); box-shadow: inset 0 -3px 0 var(--gold); }
/* The logo and greeting; the date, sign-in (a website guest) and «الجديد» on the other side, beside the logo. The date
   side keeps its own width and lies over the greeting's box, so the greeting under the logo has the hero's full width and
   a long name never squeezes the date. */
.hero-cols { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 14px; align-items: start; }
.hero-main { grid-row: 1; grid-column: 1 / -1; }
.hero-side { grid-row: 1; grid-column: 2; display: grid; justify-items: end; gap: 10px; min-width: 0; }
.hero .logo { width: 68px; }
/* The logo opens the challenges' Telegram channel */
.hero-brand { position: relative; width: fit-content; }
.hero-logo { position: relative; display: block; width: fit-content; }
/* Under the hero, the channels and pages as four labelled buttons (as in the challenges' other app), pulled up close to it */
.so-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: -6px 0 18px; }
.so-tile { display: grid; justify-items: center; align-content: center; gap: 5px; min-height: 64px; padding: 9px 4px; border-radius: 14px; text-align: center;
  color: rgb(var(--fg) / .88); font-size: 12px; font-weight: 700; line-height: 1.35; background: rgb(var(--fg) / .05); border: 1px solid rgb(var(--fg) / .12); }
.so-tile .ic { width: 18px; height: 18px; color: var(--accent-ink); }
/* The date with the sun/moon button (light or dark) at the outer corner */
.hero-top { display: flex; align-items: flex-start; gap: 10px; }
.scheme-btn { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; color: #fff;
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .35); }
.scheme-btn .ic { width: 18px; height: 18px; }
/* On the hero it is gold, as in the challenges' other app */
.hero .scheme-btn { width: 44px; height: 44px; color: var(--gold); background: rgb(4 25 15 / .35); border-color: rgb(229 185 92 / .75);
  box-shadow: 0 0 0 3px rgb(229 185 92 / .12), 0 0 18px rgb(229 185 92 / .25); }
.hero .scheme-btn .ic { width: 20px; height: 20px; }
.date { font-size: 13px; line-height: 1.7; color: rgba(255, 255, 255, .8); text-align: left; white-space: nowrap; }
.hello { margin-top: 10px; font-size: 25px; }
/* The user's own name, a little smaller than «أهلًا»; a long one wraps, even inside a word */
.hello-user { font-size: .8em; overflow-wrap: anywhere; }
.hello-sub { color: var(--gold-soft); font-size: 15px; }
/* The sheikh's name under the library's, «د.» in white beside it (owner's request) */
.hello-name { margin-top: 2px; font-size: 19px; font-weight: 700; color: var(--gold); letter-spacing: .01em; }
.dr { color: #fff; font-weight: 700; }
.ab h2 .dr, .dk-logo small .dr { color: var(--accent-ink); }
.hero-login { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px; border-radius: 99px;
  background: #fff; color: var(--green-950); font-size: 13.5px; font-weight: 700; }
.hero-login .ic { width: 16px; height: 16px; color: var(--green-600); }
/* «الجديد»: a gold bell beside light/dark (how many items are new on it); it opens every item in a window (a sheet from
   the bottom on a phone) */
.news-bell { position: relative; flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: var(--gold);
  background: rgb(4 25 15 / .35); border: 1px solid rgb(229 185 92 / .75); box-shadow: 0 0 0 3px rgb(229 185 92 / .12), 0 0 18px rgb(229 185 92 / .25); }
.news-bell .ic { width: 20px; height: 20px; }
.news-count { position: absolute; top: -4px; inset-inline-end: -4px; display: grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: 99px; background: var(--gold); color: var(--green-900); font-size: 12px; font-weight: 700; line-height: 1; }
.news-when { color: rgb(var(--fg) / .6); font-weight: 400; }
.news-new { margin-inline-start: 6px; padding: 1px 8px; border-radius: 99px; background: var(--gold); color: var(--green-900); font-size: 11px; }
.news-dlg { width: 100%; max-width: 100%; height: auto; max-height: 86vh; margin: auto 0 0; padding: 0; border: 0; background: none; color: var(--text); }
.news-dlg::backdrop { background: rgba(0, 0, 0, .62); }
.news-sheet { max-height: 86vh; overflow: auto; padding: 16px 16px calc(24px + env(safe-area-inset-bottom)); border-radius: 22px 22px 0 0;
  background: var(--raised); border: 1px solid rgb(var(--fg) / .1); }
.news-sheet header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.news-sheet h2 { font-size: 19px; }
.news-close { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: rgb(var(--fg) / .08); color: var(--text-strong); }
.news-close .ic { width: 20px; height: 20px; }
.news-sheet ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.news-sheet li { display: grid; grid-template-columns: 116px 1fr; gap: 12px; align-items: start; padding: 10px; border-radius: 14px;
  background: rgb(var(--fg) / .05); border: 1px solid rgb(var(--fg) / .08); }
.news-sheet li > img, .news-art { width: 100%; aspect-ratio: 16 / 9; height: auto; border-radius: 10px; object-fit: cover; object-position: top; }
.news-art { display: grid; place-items: center; background: var(--kufic), linear-gradient(160deg, var(--green-600), var(--green-800)); }
.news-art img { width: 38%; }
.news-sheet small { color: var(--accent-ink); font-size: 12px; font-weight: 700; }
.news-sheet b { display: block; font-size: 15.5px; line-height: 1.45; }
.news-sheet p { margin: 2px 0 8px; font-size: 13px; line-height: 1.6; color: rgb(var(--fg) / .72); }
.news-go { display: inline-flex; align-items: center; min-height: 40px; margin-top: 6px; padding: 0 16px; border-radius: 99px; background: var(--gold); color: var(--green-900); font-size: 13.5px; font-weight: 700; }
.stat { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 16px; }
/* The gold ball on the left (the end side), as in the challenges' other app */
.ring { position: relative; width: 104px; height: 104px; flex: none; order: 1; }
.ring svg { position: absolute; inset: 0; transform: rotate(-90deg) scaleX(-1); }
.ring circle { fill: none; stroke-width: 5; }
.ring-track { stroke: rgba(255, 255, 255, .14); }
.ring-fill { stroke: var(--gold); stroke-linecap: round; }
.ring .orb { position: absolute; inset: 28px; }
/* «التحدي الجاري» at the foot of the hero while a challenge runs: its name and day, and the time left in gold boxes */
.ch-run { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; padding: 12px 14px; border-radius: 16px; color: #fff;
  background: rgb(4 25 15 / .45); border: 1px solid rgb(229 185 92 / .6); }
.ch-run-text { display: grid; gap: 2px; min-width: 0; }
.ch-run-text small { color: rgb(255 255 255 / .72); font-size: 12px; }
.ch-run-text b { font-size: 16px; line-height: 1.45; }
.ch-run-clock { display: flex; gap: 8px; flex: none; }
.ch-run-clock span { display: grid; justify-items: center; min-width: 54px; padding: 6px 4px; border-radius: 12px; font-size: 11.5px; color: rgb(255 255 255 / .75);
  background: rgb(229 185 92 / .14); border: 1px solid rgb(229 185 92 / .5); }
.ch-run-clock b { font-size: 22px; line-height: 1.2; color: var(--gold); }
.big { font-size: 52px; font-weight: 700; line-height: 1; }
.big small { margin-inline-start: 8px; font-size: 17px; font-weight: 400; }
.stat-note { margin-top: 6px; font-size: 14px; color: rgba(255, 255, 255, .8); }
a.stat { color: inherit; border-radius: 18px; }
.stat-more { display: inline-flex; align-items: center; gap: 2px; margin-inline-start: 6px; padding: 1px 4px 1px 10px; border-radius: 99px;
  font-size: 13px; font-weight: 700; color: var(--green-900); background: var(--gold); vertical-align: 1px; }
.stat-more .ic { width: 14px; height: 14px; }
/* Before the first lesson is finished: the library's size, its words under it, and a way in. */
.big.wait small { display: block; margin: 8px 0 0; }
.stat-start { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin-top: 12px; padding: 0 18px; border-radius: 99px;
  font: inherit; font-size: 15px; font-weight: 700; color: var(--green-900); background: var(--gold); }
.stat-start .ic { width: 18px; height: 18px; }

.add-home { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 10px 12px; margin: 12px 0; padding: 14px 16px; }
.add-home[hidden] { display: none; }
.ah-icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 14px; background: var(--mint); color: var(--green-600); }
.ah-icon .ic { width: 24px; height: 24px; }
.ah-text { display: grid; gap: 2px; color: var(--ink); }
.ah-text b { color: var(--green-700); }
.ah-acts { grid-column: 1 / -1; display: flex; align-items: center; gap: 14px; }
.ah-acts .btn { min-height: 42px; padding: 0 20px; font-size: 15px; }
.ah-later { color: var(--muted); font-size: 14px; }
body[data-theme="dark"] .ah-icon { background: rgba(229, 185, 92, .14); color: var(--accent-ink); }
body[data-theme="dark"] .ah-text { color: inherit; }
body[data-theme="dark"] .ah-acts .btn { background: var(--gold); color: var(--green-950); }
body[data-theme="dark"] .ah-later { color: rgb(var(--fg) / .6); }

/* «عن المنصة» */
.ab { display: grid; gap: 8px; margin-top: 6px; }
.ab > .ab-more-group:first-child { margin: 4px 0 10px; } /* the two buttons stand where its title was */
.ab-kicker { font-size: 13px; font-weight: 700; color: var(--accent-ink); letter-spacing: .02em; }
.ab h2 { font-size: 23px; line-height: 1.5; }
.nowrap { white-space: nowrap; }
.ab-lead { font-size: 15.5px; line-height: 1.9; color: rgb(var(--fg) / .78); }
.ab-stats { list-style: none; margin: 10px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ab-stats li { display: grid; justify-items: center; padding: 12px 6px; border-radius: 12px; background: rgb(var(--fg) / .06); border: 1px solid rgb(var(--fg) / .08); }
.ab-stats b { font-size: 28px; line-height: 1.2; color: var(--accent-ink); }
.ab-stats span { font-size: 13px; color: rgb(var(--fg) / .7); }
.ab-features { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ab-features li { display: grid; align-content: start; gap: 4px; padding: 14px; border-radius: 12px; background: rgb(var(--fg) / .06); }
.ab-features b { font-size: 15px; }
.ab-features p { font-size: 13px; line-height: 1.75; color: rgb(var(--fg) / .66); }
.ab-ic { width: 38px; height: 38px; display: grid; place-items: center; margin-bottom: 4px; border-radius: 10px; background: rgba(229, 185, 92, .14); color: var(--accent-ink); }
.ab-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; counter-reset: none; }
.ab-steps li { display: flex; align-items: center; gap: 12px; font-size: 15px; }
.ab-steps .num { width: 30px; height: 30px; flex: none; display: grid; place-items: center; border-radius: 50%; border: 1.5px solid var(--accent-ink); color: var(--accent-ink); font-weight: 700; }
.ab-find, .ab-more-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.ab-find li, .ab-more-list li { position: relative; padding-inline-start: 18px; }
.ab-find li::before, .ab-more-list li::before { content: ''; position: absolute; inset-inline-start: 2px; top: .8em; width: 6px; height: 6px;
  border-radius: 50%; background: var(--accent-ink); }

/* «عن التحديات» and «عن إدارة المنصة»: a button each, its text opening under it */
.ab-more-group { display: grid; gap: 10px; margin-top: 14px; }
.ab-more { border-radius: 12px; background: rgb(var(--fg) / .06); border: 1px solid rgb(var(--fg) / .08); }
.ab-more[open] { border-color: rgba(229, 185, 92, .35); }
.ab-more summary { display: flex; align-items: center; gap: 12px; min-height: 58px; padding: 9px 14px; border-radius: 12px; cursor: pointer; list-style: none; }
.ab-more summary::-webkit-details-marker { display: none; }
.ab-more summary:focus-visible { outline: 2px solid var(--gold-soft); outline-offset: 2px; }
.ab-more summary .ab-ic { margin: 0; flex: none; }
.ab-more summary b { flex: 1; font-size: 16px; }
.ab-more-arrow { display: grid; color: var(--accent-ink); transition: transform .2s ease; }
.ab-more-arrow .ic { transform: rotate(-90deg); } /* the chevron points down while closed, up while open */
.ab-more[open] .ab-more-arrow { transform: rotate(180deg); }
.ab-more-body { display: grid; gap: 10px; padding: 2px 16px 18px; font-size: 15px; line-height: 1.9; color: rgb(var(--fg) / .82); }
.ab-more-body > * { margin: 0; } /* the gap spaces them */
.ab-more[open] .ab-more-body { animation: ab-more-in .24s ease; }
@keyframes ab-more-in { from { opacity: 0; transform: translateY(-4px); } }
.ab-more-lead { font-size: 17px; font-weight: 700; color: var(--accent-ink); }
.ab-more-by { font-weight: 700; color: rgb(var(--fg) / .92); }
.ab-more-link { justify-self: start; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 2px; padding: 0 18px;
  border-radius: 8px; background: var(--gold); color: var(--green-950); font-weight: 700; }
.ab-more-body > .ab-more-h { margin-top: 8px; font-size: 16px; color: var(--accent-ink); }
.ab-more-name { display: grid; }
.ab-more-name b { font-size: 17px; color: rgb(var(--fg) / .96); }
.ab-more-body > .ab-more-sub { margin-top: 6px; font-size: 14.5px; color: rgb(var(--fg) / .92); }
.ab-more-list { gap: 8px; }
.ab-more-list li { font-size: 14.5px; line-height: 1.85; }
.ab-more-list b { color: rgb(var(--fg) / .95); }
/* His books: the cover, then the title and «اقرأ الكتاب»; the whole card opens the PDF */
.ab-books { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ab-book { width: 100%; display: flex; align-items: flex-start; gap: 14px; padding: 10px; border-radius: 12px; text-align: start;
  background: rgb(var(--fg) / .04); border: 1px solid rgb(var(--fg) / .08); transition: border-color .15s ease; }
.ab-book:focus-visible { outline: 2px solid var(--gold-soft); outline-offset: 2px; }
.ab-book img { width: 64px; height: 90px; flex: none; border-radius: 4px; background: #fff; box-shadow: 0 2px 8px rgb(0 0 0 / .3); }
.ab-book-text { display: grid; gap: 2px; min-width: 0; }
.ab-book-text b { font-size: 14.5px; line-height: 1.75; color: rgb(var(--fg) / .95); }
.ab-book-text small { font-size: 13px; line-height: 1.75; color: rgb(var(--fg) / .68); }
.ab-book-read { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin-top: 4px; font-size: 14px; font-weight: 700; color: var(--accent-ink); }
.ab-book-read .ic { width: 18px; height: 18px; flex: none; }
.ab-book-meta { font-size: 12.5px; font-weight: 400; color: rgb(var(--fg) / .55); }
@media (prefers-reduced-motion: reduce) {
  .ab-more-arrow { transition: none; }
  .ab-more[open] .ab-more-body { animation: none; }
}

/* ---- السلاسل ---- */
.chips { display: flex; gap: 8px; padding: 6px 16px 12px; }
.chips button { min-height: 34px; padding: 0 16px; border-radius: 99px; border: 1px solid rgb(var(--fg) / .35); font-size: 14px; font-weight: 600; }
.chips button[aria-pressed="true"] { background: var(--on); border-color: var(--on); color: var(--on-ink); }

/* The big banner: the section's green cover (as on its card), the words under it on its fading edge */
.nf-bill { position: relative; margin: 0 16px; border-radius: 12px; overflow: hidden; background: var(--bill); box-shadow: 0 18px 40px rgba(0, 0, 0, .5); }
.nf-bill-art { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.nf-bill-art.nf-cover { position: relative; padding-bottom: 12%; container-type: inline-size; }
.nf-bill-art .nf-cover-words b { font-size: clamp(20px, 6.4cqw, 46px); }
.nf-bill-art .nf-cover-words small { font-size: clamp(14px, 3.8cqw, 26px); }
.nf-bill-art .nf-cover-kind { display: none; } /* the line under the title says it */
.nf-bill .shade { position: absolute; inset: 0 0 auto; aspect-ratio: 16 / 10; background: linear-gradient(transparent 55%, var(--bill)); }
.nf-bill-copy { position: relative; display: grid; justify-items: center; gap: 4px; margin-top: -34px; padding: 0 16px 16px; text-align: center; }
.nf-kicker { font-size: 12.5px; font-weight: 700; color: var(--accent-ink); }
.nf-bill h2 { font-size: 22px; line-height: 1.4; }
.nf-bill p { font-size: 13px; color: rgb(var(--fg) / .75); }
.nf-bill-acts { display: flex; gap: 10px; margin-top: 10px; }
.nf-bill-acts > * { min-width: 124px; }

.nf-row { list-style: none; margin: 0; display: flex; gap: 10px; overflow-x: auto; padding: 0 16px 4px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.nf-row::-webkit-scrollbar { display: none; }
.nf-row > li { flex: none; scroll-snap-align: start; }
.nf-wide { width: 168px; display: grid; gap: 2px; text-align: start; }
.nf-wide-pic { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 6px; overflow: hidden; background: var(--green-900);
  container-type: inline-size; }
.nf-wide-pic > img, .nf-wide-pic > .nf-plain { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.nf-wide > b { margin-top: 6px; font-size: 13.5px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.nf-wide > small { font-size: 12px; color: rgb(var(--fg) / .6); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.nf-grid { list-style: none; margin: 0; padding: 0 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px 10px; }
.nf-grid li[hidden] { display: none; }
.nf-card { display: grid; gap: 2px; }
.nf-card-pic { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: var(--green-900); container-type: inline-size; }
.nf-card-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* Every section's cover alike: green, a gold inner frame, the name large, its part in gold, «مرئي» or «صوتي» */
.nf-cover { display: grid; align-content: center; justify-items: center; padding: 8% 10%; text-align: center; color: #fff;
  background: var(--kufic), linear-gradient(160deg, var(--green-600), var(--green-900)); }
.nf-cover::before { content: ''; position: absolute; inset: 7px; border: 1px solid rgba(229, 185, 92, .45); border-radius: 6px; }
.nf-cover-mark { position: absolute; top: 50%; inset-inline-start: 6%; width: 26%; transform: translateY(-50%); opacity: .13; }
.nf-cover-words { position: relative; display: grid; justify-items: center; gap: 1px; line-height: 1.35; }
.nf-cover-words b { font-size: clamp(15px, 9cqw, 28px); font-weight: 800;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.nf-cover-words small { margin-top: 4px; font-size: clamp(11px, 5.6cqw, 17px); font-weight: 700; color: var(--gold); }
.nf-cover-kind { position: absolute; bottom: 12px; inset-inline-end: 14px; display: inline-flex; align-items: center; gap: 4px;
  font-size: clamp(10px, 4.6cqw, 13px); font-style: normal; font-weight: 700; color: var(--gold-soft); }
.nf-cover-kind .ic { width: 1.25em; height: 1.25em; }
.nf-card-pic .nf-count, .nf-card-pic .tags, .nf-card-pic .bar { z-index: 1; }
.nf-count { position: absolute; top: 6px; inset-inline-start: 6px; min-width: 24px; padding: 0 7px; border-radius: 99px; text-align: center;
  font-size: 12px; font-weight: 700; line-height: 20px; background: rgba(0, 0, 0, .62); color: var(--gold-soft); }
.nf-card-pic .bar { position: absolute; inset: auto 0 0; height: 3px; border-radius: 0; }
.nf-card > b { margin-top: 6px; font-size: 13.5px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.nf-card > small { font-size: 12px; color: rgb(var(--fg) / .6); }
@media (min-width: 700px) { .nf-grid { grid-template-columns: repeat(3, 1fr); } }

/* ---- التحديات: coming soon ---- */
.soon-lead { margin: 2px 16px 16px; font-size: 15px; line-height: 1.8; color: rgb(var(--fg) / .75); }
.soon-grid { list-style: none; margin: 0; padding: 0 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.soon-tile { position: relative; aspect-ratio: 3 / 4; border-radius: 8px; overflow: hidden; background: var(--kufic), var(--green-800);
  color: var(--text); } /* light text on the dark picture in both themes (base.css keeps --text light here) */
.soon-tile img { position: absolute; inset: -48px; width: calc(100% + 96px); height: calc(100% + 96px); max-width: none; object-fit: cover;
  filter: blur(30px) saturate(.6) brightness(.5); }
.soon-veil { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 2px; text-align: center;
  background: rgba(5, 13, 10, .35); }
.soon-ic { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: rgba(229, 185, 92, .18); color: var(--gold); }
.soon-ic .ic { width: 24px; height: 24px; }
.soon-veil b { margin-top: 6px; font-size: 19px; }
.soon-veil small { font-size: 12.5px; color: rgba(255, 255, 255, .72); }
