/* =====================================================================
   Arabic Casino EMD — shared theme
   One file drives every page (AR + EN). Injected via <helmet>.
   Rebrand a whole domain by editing the tokens in :root below.
   Colors are matched to the affiliate-table plugin (red / black).
   Layout uses CSS logical properties, so RTL & LTR share this file —
   direction is controlled only by the page's dir="rtl|ltr".
   ===================================================================== */

:root{
  /* brand / accent — change --accent to re-skin the whole site */
  --accent:#e2231a;        /* plugin bonus red               */
  --accent-ink:#b91c1c;    /* darker red for hover/press     */
  --accent-wash:#fdeeec;   /* light red-tinted surfaces      */
  --btn:#16161d;           /* plugin "Play Now" near-black   */
  --btn-hover:#26262f;

  /* status / badges (from the plugin) */
  --top:#f59e0b;           /* amber "TOP" badge   */
  --rank:#e5177b;          /* magenta rank badge  */
  --star:#f5b800;          /* gold rating star    */
  --ok:#16a34a;            /* pros / accepts ✓    */
  --no:#dc2626;            /* cons ✗              */

  /* neutrals */
  --ink:#141414;
  --body:#2b2b2b;
  --muted:#6b7280;
  --faint:#9a9a9a;
  --line:#ededed;
  --line-soft:#f0f0f0;
  --page:#f6f5f2;
  --surface:#fff;
  --dark:#141414;          /* footer */

  /* shape / rhythm */
  --maxw:1200px;
  --radius:14px;
  --radius-sm:10px;
  --pad-x:44px;            /* article side padding (desktop) */
  --shadow:0 0 40px rgba(0,0,0,.05);
  --shadow-card:0 6px 20px rgba(0,0,0,.07);
  --hdr-h:96px;            /* measured at runtime; fallback for sticky offsets */

  /* type — system default, no webfont load */
  --font:system-ui,-apple-system,'Segoe UI',Roboto,sans-serif;
  --font-en:system-ui,-apple-system,'Segoe UI',Roboto,sans-serif;

  /* heavy weight tiers, held at 700 for BOTH languages. Two reasons they
     can't go higher: (1) the system font (Segoe UI) only ships a real 800/900
     cut for Latin, so those weights on Arabic silently substitute a different,
     smaller fallback font; (2) the AR and EN versions must render at identical
     weights, and 700 is the heaviest weight that is correct in both. So the
     whole site's "bold" is a uniform 700 regardless of language. */
  --fw-max:700;
  --fw-xbold:700;
}

*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--page);font-family:var(--font);color:var(--body);
  -webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;cursor:default}
/* Every element inherits an EXPLICIT cursor from here (default, or pointer /
   text below) instead of resolving the implicit "auto" value — Chromium has
   a long-standing bug where the cursor icon fails to repaint on a hover
   transition that involves an implicit/auto-resolved cursor, leaving the
   previous (often black, e.g. the text I-beam) icon stuck on screen. An
   explicit value on both sides of every transition avoids it. */
.h1,.h2,.h3,.lead,.p,.pc,.steps,.faq-a,.prose p,.prose li,.prose ul,.prose ol,
.byline,.review-name,.pc-title,.toc-title,.plugin-slot .t,.plugin-slot .s,
.foot-about,.foot-contact,.foot-bottom,.badge{cursor:text}
.field input,.field textarea{cursor:text}
[lang="en"]{font-family:var(--font-en)}
/* Unstyled <b>/<strong> resolve via the CSS "bolder" keyword, which jumps a
   600/700 parent straight to 900. In Arabic that weight has no real font cut,
   so the browser silently substitutes a different, SMALLER fallback font —
   making bold spans (e.g. the byline's author/date/read-time values) look a
   different size than the surrounding text and than their English equivalents.
   Pin ALL inline emphasis to the site's uniform 700 so it stays in the correct
   font at a consistent size in both languages. */
b,strong{font-weight:700}
img{max-width:100%;display:block;-webkit-user-drag:none}
/* Links and images are draggable by browser default. Pressing and moving on
   one starts a native drag-and-drop: the browser paints a translucent "ghost"
   of the element floating under the pointer and switches to the black no-drop
   cursor (which reads as "the cursor went black and semi-transparent and the
   element floats over it"). A content site never needs to drag its own links
   or images, so turn it off. Backed up by a global dragstart handler in JS for
   engines that ignore -webkit-user-drag (Firefox). */
a{color:inherit;cursor:pointer;-webkit-user-drag:none}

/* ---- shell ---------------------------------------------------------- */
.wrap{max-width:var(--maxw);margin:0 auto;background:var(--surface);box-shadow:var(--shadow);min-height:100vh}

/* ---- header + nav --------------------------------------------------- */
.hdr{border-bottom:1px solid var(--line);position:sticky;top:0;z-index:40;background:var(--surface)}
.hdr-top{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px var(--pad-x)}
.brand{font-weight:var(--fw-max);font-size:23px;color:var(--ink);letter-spacing:-.5px;text-decoration:none;white-space:nowrap;user-select:none}
.brand b{color:var(--accent);font-weight:var(--fw-max)}
.hdr-actions{display:flex;align-items:center;gap:8px}

.langsw{display:flex;gap:5px;font-weight:var(--fw-max);font-size:12px;user-select:none}
.langsw a,.langsw span{padding:4px 9px;border-radius:7px;text-decoration:none;line-height:1}
.lang-on{background:var(--ink);color:#fff}
.lang-off{color:var(--faint)}

.nav-toggle{display:none;border:1px solid var(--line);background:var(--surface);border-radius:9px;
  width:40px;height:38px;cursor:pointer;align-items:center;justify-content:center;padding:0}
.nav-toggle svg{width:20px;height:20px;stroke:var(--ink)}

.nav{display:flex;justify-content:center;gap:26px;padding:0 var(--pad-x) 13px;
  font-weight:700;font-size:15.5px;color:#222}
.nav-item{position:relative;cursor:pointer;padding:4px 0;user-select:none}
.nav-item>span{display:inline-flex;align-items:center;gap:5px}
.nav-item.has-caret>span::after{content:"";width:6px;height:6px;border-inline-end:1.6px solid #9aa0a6;
  border-block-end:1.6px solid #9aa0a6;transform:rotate(45deg);margin-top:-3px;opacity:.8}
.nav-item a{text-decoration:none;color:inherit}
.nav-menu{display:none;position:absolute;top:100%;inset-inline-start:50%;transform:translateX(-50%);
  background:var(--surface);border:1px solid var(--line);border-radius:12px;
  box-shadow:0 10px 28px rgba(0,0,0,.12);padding:7px;min-width:190px;z-index:50}
[dir="rtl"] .nav-menu{transform:translateX(50%)}
.nav-item:hover>.nav-menu,.nav-item:focus-within>.nav-menu{display:block}
.nav-menu a{display:block;padding:9px 13px;font-weight:700;font-size:13.5px;color:#333;
  border-radius:8px;white-space:nowrap;text-decoration:none}
.nav-menu a:hover{background:var(--accent-wash);color:var(--accent-ink)}

/* ---- article ------------------------------------------------------- */
.article{padding:32px var(--pad-x) 8px}
.crumbs{display:flex;align-items:center;gap:8px;flex-wrap:wrap;
  font-weight:var(--fw-max);font-size:13px;color:var(--muted);margin-bottom:14px;user-select:none}
.crumbs a{text-decoration:none;color:var(--muted)}
.crumbs .here{color:var(--accent)}
.h1{margin:0 0 16px;font-weight:var(--fw-max);font-size:37px;line-height:1.3;color:var(--ink);letter-spacing:-.6px}
.h1 .accent{color:var(--accent)}
.byline{display:flex;align-items:center;gap:10px;flex-wrap:wrap;
  font-weight:700;font-size:13.5px;color:var(--muted);
  padding-bottom:20px;border-bottom:1px solid var(--line-soft);margin-bottom:22px}
.byline b{color:var(--ink)}
.byline .dot{color:#ccc}
.avatar{width:40px;height:40px;flex:none;display:block;border-radius:50%;object-fit:cover}
.lead{margin:0 0 24px;font-weight:600;font-size:15.5px;line-height:1.9;color:var(--body);text-wrap:pretty}

/* ---- plugin slot (placeholder for injected affiliate table) --------- */
.plugin-slot{margin:6px var(--pad-x) 10px;border:2px dashed #f0b4b0;border-radius:16px;padding:32px;text-align:center;
  background:repeating-linear-gradient(135deg,#fdf1ef,#fdf1ef 12px,#fffaf9 12px,#fffaf9 24px)}
.plugin-slot .t{font-weight:var(--fw-max);font-size:15px;color:var(--accent);margin-bottom:6px}
.plugin-slot .s{font-weight:var(--fw-xbold);font-size:12.5px;color:#c48a87}

/* ---- live affiliate widget (CGAR GraphQL feed via widget.js) -------- */
/* The widget mounts async (IntersectionObserver-lazy) into these empty
   divs — this shimmer just fills the gap until it does, matching the
   plugin's own [data-shortcode]:empty loading treatment. */
[data-shortcode="widget-card"]{display:block;position:relative;margin:6px var(--pad-x) 18px}
[data-shortcode="widget-card"]:empty{min-height:220px;border-radius:var(--radius);
  background:linear-gradient(90deg,var(--line-soft) 25%,#fff 37%,var(--line-soft) 63%);
  background-size:400% 100%;animation:widget-shimmer 1.4s ease infinite}
@keyframes widget-shimmer{0%{background-position:100% 0}100%{background-position:-100% 0}}

/* ---- sticky TOC + content split (from the first H2 down) ----------- */
.layout-split{display:grid;grid-template-columns:240px 1fr;gap:40px;align-items:start;padding-inline:var(--pad-x)}
.layout-split.no-toc{grid-template-columns:1fr}
.layout-split.no-toc .toc-rail{display:none}
.sections-col{min-width:0}
.toc-rail{position:sticky;top:calc(var(--hdr-h) + 16px);max-height:calc(100vh - var(--hdr-h) - 32px);
  overflow-y:auto;padding-block:22px}
.toc-title{font-weight:var(--fw-max);font-size:11.5px;color:var(--muted);text-transform:uppercase;
  letter-spacing:.05em;margin-bottom:10px}
.toc-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:1px;
  border-inline-start:2px solid var(--line-soft)}
.toc-list a{display:block;padding:7px 14px;color:var(--muted);text-decoration:none;
  font-weight:700;font-size:13.5px;line-height:1.4;border-inline-start:2px solid transparent;
  margin-inline-start:-2px;transition:color .15s ease,border-color .15s ease;user-select:none}
.toc-list a:hover{color:var(--ink)}
.toc-list a.active{color:var(--accent);border-inline-start-color:var(--accent)}

/* ---- generic sections ---------------------------------------------- */
.section{padding:22px 0 8px;border-top:1px solid var(--line-soft);scroll-margin-top:calc(var(--hdr-h) + 16px)}
.section:first-of-type,.section.flush{border-top:0}
.h2{margin:0 0 10px;font-weight:var(--fw-max);font-size:25px;color:var(--ink);letter-spacing:-.3px}
.h3{font-weight:var(--fw-max);font-size:19px;color:var(--ink);margin:0 0 8px}
.p{margin:0 0 16px;font-weight:600;font-size:15.5px;line-height:1.9;color:var(--body);max-width:none}
.muted{color:var(--muted)}
.accent{color:var(--accent)}
.morelink{display:inline-block;margin-top:4px;font-weight:var(--fw-max);font-size:13.5px;
  color:var(--accent);text-decoration:none;user-select:none}
.morelink:hover{color:var(--accent-ink)}

/* ---- responsive card grid (hubs) ----------------------------------- */
.grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin:6px 0 10px}
.grid.two{grid-template-columns:repeat(2,1fr)}
.card{display:flex;flex-direction:column;gap:10px;padding:20px;background:var(--surface);
  border:1px solid var(--line);border-radius:var(--radius);text-decoration:none;color:inherit;
  transition:box-shadow .15s ease,border-color .15s ease;cursor:pointer;user-select:none}
.card:hover{box-shadow:var(--shadow-card);border-color:#f3c5c2}
.card-ico{width:46px;height:46px;border-radius:11px;background:var(--accent-wash);
  display:flex;align-items:center;justify-content:center;font-size:22px;flex:none}
.card-ico svg{width:24px;height:24px}
.card-t{font-weight:var(--fw-max);font-size:17px;color:var(--ink)}
.card-d{font-weight:700;font-size:13.5px;line-height:1.7;color:var(--muted);margin:0}
.card-cta{margin-top:auto;font-weight:var(--fw-max);font-size:13px;color:var(--accent);display:inline-flex;align-items:center;gap:5px}

/* ---- reviews / pros-cons ------------------------------------------- */
.review{margin-bottom:22px}
.review-head{display:flex;align-items:center;gap:10px;margin-bottom:12px}
.review-rank{width:26px;height:26px;border-radius:8px;background:var(--rank);color:#fff;
  font-weight:var(--fw-max);font-size:13px;display:flex;align-items:center;justify-content:center;flex:none}
.review-name{font-weight:var(--fw-max);font-size:19px;color:var(--ink)}
.review-shot{width:100%;height:220px;margin-bottom:12px}
.pc-title{font-weight:var(--fw-max);font-size:14px;color:var(--ink);margin-bottom:8px}
.pc{display:flex;gap:8px;font-weight:600;font-size:15.5px;line-height:1.85;color:var(--body);margin-bottom:2px}
.pc .yes{color:var(--ok);font-weight:var(--fw-max)}
.pc .nope{color:var(--no);font-weight:var(--fw-max)}
.pc-block{margin-bottom:14px}

/* ---- ordered "how to" steps ---------------------------------------- */
.steps{margin:0;padding-inline-start:20px;font-weight:600;font-size:15.5px;line-height:1.95;color:var(--body)}
.steps li{margin-bottom:2px}
.step-group{margin-bottom:22px}

/* ---- content tables (ported verbatim from source markdown tables) --- */
.tbl-wrap{overflow-x:auto;margin-bottom:18px;border:1px solid var(--line);border-radius:var(--radius-sm)}
.tbl{width:100%;border-collapse:collapse;font-size:14.5px;line-height:1.6}
.tbl th,.tbl td{padding:12px 16px;text-align:start;border-bottom:1px solid var(--line);white-space:normal}
.tbl th{background:var(--accent-wash);color:var(--ink);font-weight:var(--fw-max);white-space:nowrap}
.tbl tr:last-child td{border-bottom:0}
.tbl tr:nth-child(even) td{background:#fafafa}

/* ---- FAQ ------------------------------------------------------------ */
.faq-item{border:1px solid var(--line);border-radius:12px;overflow:hidden;margin-bottom:12px}
.faq-q{display:flex;justify-content:space-between;align-items:center;gap:12px;width:100%;
  padding:16px 18px;font-weight:700;font-size:15px;color:var(--ink);cursor:pointer;
  background:#f7f6f4;border:0;text-align:inherit;font-family:inherit;user-select:none}
.faq-q .mark{color:var(--accent);font-weight:700;font-size:19px;flex:none}
.faq-a{margin:0;padding:0 18px 16px;font-weight:600;font-size:15.5px;line-height:1.9;color:var(--body)}

/* ---- buttons ------------------------------------------------------- */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;
  padding:13px 24px;border-radius:11px;font-weight:var(--fw-max);font-size:15px;font-family:inherit;
  text-decoration:none;cursor:pointer;border:0;transition:background .15s ease,transform .1s ease;
  user-select:none}
.btn-primary{background:var(--btn);color:#fff}
.btn-primary:hover{background:var(--btn-hover)}
.btn-primary:active{transform:translateY(1px)}
.btn-accent{background:var(--accent);color:#fff}
.btn-accent:hover{background:var(--accent-ink)}
.btn-ghost{background:transparent;border:1.5px solid var(--line);color:var(--ink)}
.btn-ghost:hover{border-color:var(--accent);color:var(--accent)}

/* ---- prose (legal / privacy / long copy) --------------------------- */
.prose{max-width:none}
.prose p{margin:0 0 16px;font-weight:600;font-size:15.5px;line-height:1.95;color:var(--body)}
.prose h2{margin:26px 0 10px;font-weight:var(--fw-max);font-size:22px;color:var(--ink)}
.prose h3{margin:20px 0 8px;font-weight:var(--fw-max);font-size:17px;color:var(--ink)}
.prose ul,.prose ol{margin:0 0 16px;padding-inline-start:22px;font-weight:600;font-size:15.5px;line-height:1.95;color:var(--body)}
.prose li{margin-bottom:6px}
.prose a{color:var(--accent);text-decoration:underline;text-underline-offset:2px}
.prose strong{color:var(--ink)}

/* ---- author card --------------------------------------------------- */
.author-card{display:flex;gap:20px;align-items:flex-start;flex-wrap:wrap;
  padding:24px;background:var(--accent-wash);border-radius:var(--radius);margin-bottom:22px}
.author-photo{width:96px;height:96px;flex:none;border-radius:50%;object-fit:cover}
.author-meta h2{margin:0 0 4px}
.author-role{font-weight:var(--fw-max);font-size:14px;color:var(--accent);margin-bottom:10px}
.chips{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}
.chip{font-weight:var(--fw-max);font-size:12px;color:var(--ink);background:var(--surface);
  border:1px solid var(--line);border-radius:20px;padding:6px 12px}
.author-team-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.author-team-card{display:flex;align-items:center;gap:13px;padding:16px;border:1px solid var(--line);border-radius:var(--radius);text-decoration:none;background:var(--surface)}
.author-team-card:hover{border-color:#f3c5c2;box-shadow:var(--shadow-card)}
.author-team-card img{width:62px;height:62px;border-radius:50%;object-fit:cover;flex:none}
.author-team-card span{display:grid;gap:4px}
.author-team-card strong{color:var(--ink);font-size:15px}
.author-team-card small{color:var(--muted);font-weight:700;line-height:1.35}

/* ---- contact form -------------------------------------------------- */
.two-col{display:grid;grid-template-columns:1.1fr .9fr;gap:32px;align-items:start}
.field{margin-bottom:14px}
.field label{display:block;font-weight:var(--fw-max);font-size:13.5px;color:var(--ink);margin-bottom:6px}
.field input,.field textarea{width:100%;padding:12px 14px;border:1px solid var(--line);
  border-radius:10px;font-family:inherit;font-size:15px;color:var(--ink);background:#fcfcfc}
.field input:focus,.field textarea:focus{outline:2px solid var(--accent);border-color:transparent}
.field textarea{min-height:130px;resize:vertical}
.contact-line{display:flex;align-items:center;gap:10px;font-weight:700;font-size:14.5px;color:var(--body);margin-bottom:12px}
.contact-line svg{width:18px;height:18px;stroke:var(--accent);flex:none}

/* ---- responsible-gambling / age strip ------------------------------ */
.rg-bar{display:flex;align-items:center;justify-content:center;gap:10px;flex-wrap:wrap;
  background:#fbf6ec;border-bottom:1px solid #f0e6d0;padding:8px var(--pad-x);
  font-weight:var(--fw-xbold);font-size:12.5px;color:#8a6d29;text-align:center}
.rg-bar .age{background:#8a6d29;color:#fff;border-radius:5px;padding:2px 7px;font-weight:var(--fw-max);flex:none}
.callout{background:var(--accent-wash);border:1px solid #f5cfcc;border-radius:var(--radius);
  padding:18px 20px;margin:6px 0 18px}
.callout .h3{margin-bottom:6px}

/* ---- footer -------------------------------------------------------- */
.footer{background:var(--dark);color:#cfcfcf;padding:30px var(--pad-x)}
.foot-cols{display:flex;justify-content:space-between;flex-wrap:wrap;gap:26px;
  padding-bottom:22px;border-bottom:1px solid #2a2a2a}
.foot-brand{max-width:290px}
.foot-brand .brand{color:#fff}
.foot-about{font-weight:600;font-size:12.5px;line-height:1.75;color:#9a9a9a;margin-top:8px}
.foot-col h4{font-weight:var(--fw-max);font-size:13px;color:#fff;margin:0 0 12px}
.foot-col nav{display:flex;flex-direction:column;gap:9px;font-weight:700;font-size:13px}
.foot-col nav a{color:#b5b5b5;text-decoration:none;user-select:none}
.foot-col nav a:hover{color:#fff}
.foot-contact{display:flex;flex-direction:column;gap:9px;font-weight:600;font-size:12.5px;color:#9a9a9a}
.foot-contact div{display:flex;align-items:center;gap:9px}
.foot-contact svg{width:15px;height:15px;stroke:var(--accent);flex:none}
.foot-bottom{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:10px;
  padding-top:16px;font-weight:600;font-size:12px;color:#8a8a8a}
.foot-bottom .badge{border:1px solid #444;padding:2px 8px;border-radius:5px}
.foot-bottom .r{display:flex;gap:8px;align-items:center}

/* =====================================================================
   Responsive — tablet & phone
   ===================================================================== */
@media (max-width:820px){
  :root{--pad-x:28px}
  .h1{font-size:31px}
  .grid{grid-template-columns:repeat(2,1fr)}
  .two-col{grid-template-columns:1fr;gap:22px}
  .layout-split{grid-template-columns:1fr}
  .toc-rail{display:none}
}

@media (max-width:560px){
  :root{--pad-x:18px;--radius:12px}
  .hdr-top{padding:12px var(--pad-x)}
  .brand{font-size:20px}

  /* collapse nav into a drawer toggled by the hamburger */
  .nav-toggle{display:inline-flex}
  .nav{display:none;flex-direction:column;align-items:stretch;gap:2px;
    padding:6px var(--pad-x) 12px;font-size:16px}
  .nav.open{display:flex}
  .nav-item{padding:0;border-top:1px solid var(--line-soft)}
  .nav-item>span{padding:13px 2px;justify-content:space-between}
  .nav-item.has-caret>span::after{margin:0}
  .nav-menu{display:block;position:static;transform:none;border:0;box-shadow:none;padding:0 0 8px;min-width:0}
  [dir="rtl"] .nav-menu{transform:none}
  .nav-menu a{padding-inline-start:16px}

  .article{padding:24px var(--pad-x) 6px}
  .h1{font-size:26px;line-height:1.35}
  .h2{font-size:22px}
  .lead,.p{font-size:15px}
  .section{padding:20px 0 6px}
  .plugin-slot{margin:6px var(--pad-x) 10px;padding:24px 16px}

  .grid,.grid.two{grid-template-columns:1fr}
  .author-team-grid{grid-template-columns:1fr}
  .review-shot{height:180px}
  .byline{font-size:12.5px;gap:7px}

  .foot-cols{flex-direction:column;gap:22px}
  .foot-brand{max-width:none}
  .footer{padding:26px var(--pad-x)}
}
