/* AlgerExpress guides (web/shop/guide/*.html): long-form articles in Arabic (right to left) and English.
   Same brand as the landing page (home.css): green, Cera for Latin, DIN Next for Arabic. Logical properties only,
   so one stylesheet serves both directions. No JavaScript, no inline styles (the site's CSP). */
@font-face {
  font-family: "Cera";
  src: url("/panel/assets/fonts/text/CeraRoundPro-Regular.woff") format("woff");
  font-weight: 100 450;
  font-display: swap;
}
@font-face {
  font-family: "Cera";
  src: url("/panel/assets/fonts/text/CeraRoundPro-Medium.woff") format("woff");
  font-weight: 451 640;
  font-display: swap;
}
@font-face {
  font-family: "Cera";
  src: url("/panel/assets/fonts/text/CeraRoundPro-Bold.woff") format("woff");
  font-weight: 641 1000;
  font-display: swap;
}
@font-face {
  font-family: "Din Next";
  src: url("/panel/assets/fonts/text/DINNextLTW23-Regular.woff") format("woff");
  font-weight: 100 550;
  font-display: swap;
}
@font-face {
  font-family: "Din Next";
  src: url("/panel/assets/fonts/text/DINNextLTW23-Bold.woff") format("woff");
  font-weight: 551 1000;
  font-display: swap;
}

:root {
  --brand: #0b7a4b;
  --brand-2: #096640;
  --brand-soft: #e6f3ec;
  --accent: #f5b301;
  --accent-soft: #fff6dc;
  --ink: #15201a;
  --ink-2: #3f4b45;
  --muted: #74807a;
  --line: #e3e8e5;
  --bg: #ffffff;
  --bg-soft: #f4f7f5;
  --radius: 16px;
  --shadow: 0 1px 2px rgb(16 32 24 / 0.06), 0 10px 30px rgb(16 32 24 / 0.08);
  --read: 760px;
  --wide: 1180px;
  --font: "Cera", "Din Next", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font: 17px/1.7 var(--font); -webkit-font-smoothing: antialiased; }
[dir="rtl"] body { line-height: 1.85; }
h1, h2, h3, p { margin: 0; }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--brand-2); }
:focus-visible { outline: 3px solid rgb(11 122 75 / 0.45); outline-offset: 2px; border-radius: 4px; }
[id] { scroll-margin-block-start: 84px; }
b, strong { font-weight: 700; }

/* skip link: hidden until focused with the keyboard */
.gx-skip { position: absolute; z-index: 50; inset-inline-start: 12px; inset-block-start: -80px; padding-block: 10px; padding-inline: 16px;
  border-radius: 10px; background: var(--brand); color: #fff; font-weight: 700; text-decoration: none; }
.gx-skip:focus { inset-block-start: 12px; color: #fff; }

/* ---- buttons ------------------------------------------------------------------------------------------------- */
.gx-btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 46px; padding-block: 0; padding-inline: 24px;
  border-radius: 999px; border: 1px solid transparent; font-weight: 700; font-size: 15.5px; line-height: 1.2; text-decoration: none;
  white-space: nowrap; transition: background 0.15s, border-color 0.15s, transform 0.15s; }
.gx-btn.sm { min-height: 40px; padding-inline: 18px; font-size: 14.5px; }
.gx-btn.lg { min-height: 54px; padding-inline: 30px; font-size: 16.5px; }
.gx-btn.primary { background: var(--brand); color: #fff; box-shadow: 0 6px 18px rgb(11 122 75 / 0.25); }
.gx-btn.primary:hover { background: var(--brand-2); color: #fff; transform: translateY(-1px); }
.gx-btn.light { background: #fff; color: var(--brand); }
.gx-btn.light:hover { background: #eef7f2; color: var(--brand-2); }
.gx-btn.ghost { background: transparent; color: #fff; border-color: rgb(255 255 255 / 0.5); }
.gx-btn.ghost:hover { background: rgb(255 255 255 / 0.1); color: #fff; }

/* ---- sticky top bar ------------------------------------------------------------------------------------------- */
.gx-top { position: sticky; inset-block-start: 0; z-index: 20; background: rgb(255 255 255 / 0.94); backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px); border-block-end: 1px solid var(--line); }
.gx-top-in { max-width: var(--wide); margin-inline: auto; padding-inline: 20px; min-height: 66px; display: flex; align-items: center; gap: 22px; }
.gx-logo { display: inline-flex; align-items: center; gap: 9px; flex: none; text-decoration: none; }
.gx-logo-mark { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--brand); color: #fff;
  font-weight: 800; font-size: 20px; line-height: 1; }
.gx-logo-text { font-size: 21px; font-weight: 700; color: var(--ink); direction: ltr; letter-spacing: -0.01em; }
.gx-logo-text b { color: var(--brand); font-weight: 800; }
.gx-nav { display: flex; gap: 4px; }
.gx-nav a { padding-block: 7px; padding-inline: 12px; border-radius: 10px; text-decoration: none; color: var(--ink-2); font-weight: 600; font-size: 15px; }
.gx-nav a:hover { color: var(--brand); background: var(--bg-soft); }
.gx-nav a[aria-current="page"] { color: var(--brand); background: var(--brand-soft); }
.gx-top-end { margin-inline-start: auto; display: flex; align-items: center; gap: 14px; }
.gx-lang { text-decoration: none; font-weight: 700; font-size: 14.5px; color: var(--ink-2); padding-block: 6px; padding-inline: 10px;
  border: 1px solid var(--line); border-radius: 999px; }
.gx-lang:hover { color: var(--brand); border-color: var(--brand); }

/* ---- the article ---------------------------------------------------------------------------------------------- */
.gx-article { max-width: var(--read); margin-inline: auto; padding-inline: 20px; padding-block: 26px 64px; overflow-wrap: break-word; }
.gx-crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 8px; font-size: 14px; color: var(--muted); }
.gx-crumbs li + li::before { content: "/"; margin-inline-end: 8px; color: #b7c2bc; }
.gx-crumbs a { color: var(--muted); text-decoration: none; }
.gx-crumbs a:hover { color: var(--brand); text-decoration: underline; }

.gx-head { margin-block-start: 22px; padding-block-end: 26px; border-block-end: 1px solid var(--line); }
.gx-kicker { display: inline-flex; align-items: center; gap: 8px; padding-block: 5px; padding-inline: 13px; border-radius: 999px;
  background: var(--brand-soft); color: var(--brand); font-weight: 700; font-size: 14px; }
.gx-head h1 { margin-block-start: 16px; font-size: clamp(29px, 5.2vw, 44px); line-height: 1.2; font-weight: 800; letter-spacing: -0.015em; }
[dir="rtl"] .gx-head h1 { line-height: 1.4; letter-spacing: 0; }
.gx-lead { margin-block-start: 16px; font-size: 19px; color: var(--ink-2); }
.gx-meta { margin-block-start: 14px; font-size: 14px; color: var(--muted); }

/* "in short": the answer first, for readers and for assistants that quote it */
.gx-summary { margin-block-start: 28px; padding-block: 20px; padding-inline: 24px; border-radius: var(--radius); background: var(--brand-soft);
  border: 1px solid #cfe7da; }
.gx-summary h2 { display: flex; align-items: center; gap: 10px; font-size: 19px; font-weight: 800; color: var(--brand); }
.gx-summary ul { margin-block: 10px 0; }
.gx-summary li { margin-block-end: 6px; }

/* table of contents */
.gx-toc { margin-block-start: 26px; padding-block: 18px; padding-inline: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.gx-toc-t { font-weight: 800; font-size: 16px; color: var(--ink); }
.gx-toc ol { margin-block: 10px 0; padding-inline-start: 1.4em; columns: 2 250px; column-gap: 32px; font-size: 15.5px; }
.gx-toc li { margin-block-end: 6px; break-inside: avoid; }
.gx-toc li::marker { color: var(--brand); font-weight: 700; }
.gx-toc a { color: var(--ink-2); text-decoration: none; }
.gx-toc a:hover { color: var(--brand); text-decoration: underline; }

/* sections and headings */
.gx-sec { margin-block-start: 52px; }
.gx-sec h2 { display: flex; align-items: flex-start; gap: 12px; font-size: clamp(23px, 3.4vw, 30px); line-height: 1.3; font-weight: 800; margin-block-end: 14px; }
[dir="rtl"] .gx-sec h2 { line-height: 1.5; }
.gx-n { flex: none; width: 38px; height: 38px; margin-block-start: 1px; border-radius: 50%; display: grid; place-items: center; background: var(--brand);
  color: #fff; font-size: 18px; font-weight: 800; line-height: 1; }
[dir="rtl"] .gx-n { margin-block-start: 4px; }
.gx-sec h3 { margin-block: 26px 8px; font-size: 20px; line-height: 1.4; font-weight: 800; }
.gx-article p { margin-block-end: 14px; }
.gx-article ul, .gx-article ol { margin-block: 0 16px; padding-inline-start: 1.35em; }
.gx-article li { margin-block-end: 8px; padding-inline-start: 4px; }
.gx-article li::marker { color: var(--brand); font-weight: 700; }
.gx-article code { padding-block: 1px; padding-inline: 6px; border-radius: 6px; background: var(--bg-soft); border: 1px solid var(--line);
  font-size: 0.88em; direction: ltr; unicode-bidi: isolate; overflow-wrap: anywhere; }
.gx-ltr { direction: ltr; unicode-bidi: isolate; }

/* check lists with icons */
.gx-article ul.gx-checks { list-style: none; padding-inline-start: 0; }
.gx-checks li { display: flex; align-items: flex-start; gap: 10px; padding-inline-start: 0; }
.gx-checks li > i { flex: none; margin-block-start: 0.32em; color: var(--brand); font-size: 18px; }

/* callouts: a tip, a warning, and "on AlgerExpress" */
.gx-callout { display: flex; align-items: flex-start; gap: 14px; margin-block: 22px; padding-block: 18px; padding-inline: 20px;
  border-radius: 14px; background: var(--bg-soft); border-inline-start: 4px solid var(--brand); }
.gx-callout > i { flex: none; margin-block-start: 0.2em; font-size: 22px; color: var(--brand); }
.gx-callout > div { min-width: 0; }
.gx-callout-t { display: block; margin-block-end: 4px; font-weight: 800; color: var(--ink); }
.gx-callout p:last-child, .gx-callout ul:last-child { margin-block-end: 0; }
.gx-callout.ax { background: var(--brand-soft); }
.gx-callout.tip { background: var(--accent-soft); border-inline-start-color: var(--accent); }
.gx-callout.tip > i { color: #b07f00; }
.gx-callout.warn { background: #fdf0ef; border-inline-start-color: #d9443c; }
.gx-callout.warn > i { color: #c22f2f; }

/* tables: scroll inside their box on narrow screens, never the page */
.gx-table { margin-block: 20px 24px; border: 1px solid var(--line); border-radius: 14px; overflow-x: auto; }
.gx-table table { width: 100%; border-collapse: collapse; font-size: 15.5px; line-height: 1.55; }
.gx-table caption { padding-block: 12px 4px; padding-inline: 14px; text-align: start; font-weight: 700; font-size: 14.5px; color: var(--muted); }
.gx-table th, .gx-table td { padding-block: 12px; padding-inline: 14px; text-align: start; vertical-align: top; border-block-end: 1px solid var(--line); }
.gx-table thead th { background: var(--bg-soft); font-weight: 800; }
.gx-table tbody th { font-weight: 700; }
.gx-table tbody tr:last-child th, .gx-table tbody tr:last-child td { border-block-end: 0; }

/* questions */
.gx-faq { display: flex; flex-direction: column; gap: 10px; }
.gx-faq details { border: 1px solid var(--line); border-radius: 14px; padding-inline: 20px; background: #fff; }
.gx-faq details[open] { box-shadow: var(--shadow); border-color: transparent; }
.gx-faq summary { cursor: pointer; list-style: none; padding-block: 16px; font-weight: 700; font-size: 17px; display: flex; justify-content: space-between;
  align-items: flex-start; gap: 12px; }
.gx-faq summary::-webkit-details-marker { display: none; }
.gx-faq summary::after { content: "+"; flex: none; color: var(--brand); font-size: 24px; line-height: 1; }
.gx-faq details[open] summary::after { content: "\2212"; }
.gx-faq details p { padding-block-end: 16px; margin-block-end: 0; color: var(--ink-2); }

/* related guides */
.gx-related { margin-block-start: 52px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.gx-related a { display: flex; flex-direction: column; gap: 6px; padding-block: 18px; padding-inline: 20px; border: 1px solid var(--line);
  border-radius: var(--radius); text-decoration: none; color: var(--ink); transition: box-shadow 0.15s, border-color 0.15s; }
.gx-related a:hover { box-shadow: var(--shadow); border-color: transparent; color: var(--ink); }
.gx-related i { font-size: 22px; color: var(--brand); }
.gx-related b { font-size: 17px; }
.gx-related span { font-size: 14.5px; color: var(--muted); }

/* ---- call to action band ---------------------------------------------------------------------------------------- */
.gx-cta { padding-block: 64px; padding-inline: 20px; text-align: center; color: #fff;
  background: radial-gradient(circle at 90% 0%, rgb(255 255 255 / 0.12) 0 180px, transparent 181px),
    radial-gradient(circle at 6% 100%, rgb(245 179 1 / 0.16) 0 200px, transparent 201px), linear-gradient(135deg, #0d8a55, #084a30); }
.gx-cta-in { max-width: var(--read); margin-inline: auto; }
.gx-cta h2 { font-size: clamp(26px, 4vw, 38px); line-height: 1.3; font-weight: 800; }
.gx-cta p { margin-block: 12px 26px; font-size: 18px; color: rgb(255 255 255 / 0.9); }
.gx-cta-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.gx-cta .gx-cta-note { margin-block: 16px 0; font-size: 14px; color: rgb(255 255 255 / 0.75); }

/* ---- footer ------------------------------------------------------------------------------------------------------ */
.gx-foot { background: #0f1a14; color: #b9c6bf; font-size: 14.5px; }
.gx-foot-in { max-width: var(--wide); margin-inline: auto; padding-inline: 20px; padding-block: 40px 24px; display: grid;
  grid-template-columns: 2fr 1fr 1fr; gap: 24px; }
.gx-foot-in > div { display: flex; flex-direction: column; gap: 8px; }
.gx-foot-in b { color: #fff; }
.gx-foot-in a { color: #b9c6bf; text-decoration: none; }
.gx-foot-in a:hover { color: #fff; }
.gx-foot .gx-logo-text { color: #fff; align-self: flex-start; }
.gx-foot .gx-logo-text b { color: #4cc48d; }
.gx-foot-note { max-width: var(--wide); margin-inline: auto; padding-inline: 20px; padding-block: 14px 26px; border-block-start: 1px solid rgb(255 255 255 / 0.08);
  font-size: 13px; }

/* ---- smaller screens --------------------------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .gx-nav { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 16.5px; }
  .gx-top-in { min-height: 58px; gap: 10px; padding-inline: 14px; }
  .gx-logo-mark { width: 32px; height: 32px; font-size: 18px; }
  .gx-logo-text { font-size: 18px; }
  .gx-top-end { gap: 8px; }
  .gx-article { padding-inline: 16px; padding-block: 18px 48px; }
  .gx-lead { font-size: 17.5px; }
  .gx-summary, .gx-toc { padding-inline: 18px; }
  .gx-sec { margin-block-start: 42px; }
  .gx-n { width: 34px; height: 34px; font-size: 16px; }
  .gx-callout { padding-inline: 16px; gap: 12px; }
  .gx-table table { font-size: 14.5px; }
  .gx-table th, .gx-table td { padding-block: 10px; padding-inline: 10px; }
  .gx-faq details { padding-inline: 16px; }
  .gx-related { grid-template-columns: 1fr; }
  .gx-cta { padding-block: 48px; padding-inline: 16px; }
  .gx-cta .gx-btn { flex: 1 1 100%; white-space: normal; }
  .gx-foot-in { grid-template-columns: 1fr; padding-inline: 16px; }
  .gx-foot-note { padding-inline: 16px; }
}
@media (max-width: 480px) {
  .gx-top-end .gx-btn { display: none; }  /* the call to action band and the article links carry it */
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .gx-btn, .gx-related a { transition: none; }
  .gx-btn.primary:hover { transform: none; }
}
@media print {
  .gx-top, .gx-cta, .gx-foot, .gx-skip { display: none; }
  .gx-faq details { box-shadow: none; }
}
