/* packs.qissahh.com/guide (2026-09-22). Builds on ../styles.css. Arabic first, right to left. */
html[lang="ar"] body { font-family: "IBM Plex Sans Arabic", var(--body); line-height: 1.8; }
.nav { direction: ltr; }
.nav .g-lang { order: -1; } /* language switch on the far left, logo stays on the far right */
.g-lang { font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.06em; color: var(--cream); background: transparent; border: 1px solid var(--line2); border-radius: 999px; padding: 0.45em 1em; cursor: pointer; }
html[lang="ar"] .g-lang { font-family: "IBM Plex Sans Arabic", var(--body); letter-spacing: 0; }
.g-lang:hover { border-color: var(--blue2); }

.g-hero { padding-bottom: clamp(24px, 4vw, 40px); }
.g-sec { padding: clamp(28px, 4.5vw, 52px) 0; }
.g-h1, .g-h2, .g-h3 { font-family: var(--head); font-weight: 400; text-transform: uppercase; color: var(--cream); letter-spacing: -0.01em; }
.g-h1 { font-size: clamp(2.2rem, 6vw, 4rem); line-height: 1; margin-bottom: 1rem; }
.g-h2 { font-size: clamp(1.7rem, 4.4vw, 2.8rem); line-height: 1.05; margin-bottom: 1rem; }
.g-h3 { font-size: clamp(1.3rem, 3vw, 1.8rem); line-height: 1.1; margin-bottom: 0.6rem; }
html[lang="ar"] .g-h1, html[lang="ar"] .g-h2, html[lang="ar"] .g-h3 { font-family: "Noto Kufi Arabic", "IBM Plex Sans Arabic", sans-serif; font-weight: 800; text-transform: none; letter-spacing: 0; line-height: 1.45; }
html[lang="ar"] .g-h1 { font-size: clamp(1.7rem, 5.2vw, 3rem); }
html[lang="ar"] .g-h2 { font-size: clamp(1.35rem, 3.6vw, 2.1rem); }
html[lang="ar"] .g-h3 { font-size: clamp(1.1rem, 2.6vw, 1.45rem); }
html[lang="ar"] .kicker, html[lang="ar"] .quiz__count { font-family: "IBM Plex Sans Arabic", var(--mono); letter-spacing: 0; text-transform: none; font-size: 0.85rem; }
.g p { color: var(--dim); margin-bottom: 0.8rem; max-width: 62ch; }
.g p b, .g li b { color: var(--cream); }

/* the video slot (hidden until Zeyn's link is added in guide.js) */
.g-vsl { position: relative; aspect-ratio: 16 / 9; margin-top: 1.4rem; border-radius: 18px; overflow: hidden; border: 1px solid var(--line2); background: #000; }
.g-vsl[hidden] { display: none; }
.g-vsl iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.g-two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 700px) { .g-two { grid-template-columns: 1fr; } }
.g-card { border: 1px solid rgba(244,237,225,0.22); border-radius: 20px; padding: clamp(20px, 2.6vw, 30px); background: rgba(244,237,225,0.05); }
.g-tag { display: inline-block; background: var(--blue); color: #fff !important; font-family: var(--head); font-size: 1rem; letter-spacing: 0.05em; text-transform: uppercase; padding: 0.2em 0.6em 0.15em; border-radius: 6px; margin-bottom: 0.8rem !important; }
html[lang="ar"] .g-tag { font-family: "Noto Kufi Arabic", sans-serif; font-weight: 800; letter-spacing: 0; text-transform: none; font-size: 0.9rem; padding: 0.25em 0.7em; }
.g-fit { border-top: 1px solid var(--line); padding-top: 0.8rem; margin-top: 0.4rem; margin-bottom: 0 !important; }

.g-rules, .g-steps, .g-list, .g-proof { list-style: none; padding: 0; margin: 0.4rem 0 1rem; }
.g-rules li, .g-steps li, .g-proof li { display: flex; flex-direction: column; gap: 0.2rem; padding: 0.9rem 0; border-bottom: 1px solid var(--line); }
.g-rules li b { font-size: clamp(1.05rem, 2.2vw, 1.25rem); }
.g-rules li span, .g-steps li span, .g-proof li span { color: var(--dim); }
.g-steps { counter-reset: s; }
.g-steps li { position: relative; padding-inline-start: 2.6rem; }
.g-steps li::before { counter-increment: s; content: counter(s); position: absolute; inset-inline-start: 0; top: 0.85rem; width: 1.8rem; height: 1.8rem; border-radius: 50%; background: var(--blue); color: #fff; font-family: var(--mono); font-size: 0.85rem; display: flex; align-items: center; justify-content: center; }
.g-list li { position: relative; padding: 0.7rem 0; padding-inline-start: 1.4rem; color: var(--dim); border-bottom: 1px solid var(--line); }
.g-list li::before { content: "×"; position: absolute; inset-inline-start: 0; color: #ff9a8e; font-family: var(--mono); }
.g-more a { color: var(--blue2); text-decoration: underline; text-underline-offset: 3px; }

/* stage check: reuses the main quiz look */
.g-quiz { margin-top: 0.4rem; }
.g-q[hidden], .g-result[hidden] { display: none; }
.g-result { text-align: center; }
.g-result .g-res-p { margin: 0.6rem auto 0; max-width: 46ch; }
.g-cta[hidden] { display: none !important; }
html[dir="rtl"] .quiz__opts button { text-align: right; }
html[dir="rtl"] .quiz__opts button i { right: auto; left: 1.3rem; }
html[dir="rtl"] .quiz__opts button { padding-left: 3.4rem; } /* room for the arrow so longer answers never touch it */
html[dir="ltr"] .quiz__opts button { padding-right: 3.4rem; }
html[dir="rtl"] .quiz__bar i { transform-origin: right center; }
html[lang="ar"] .quiz__opts button b, html[lang="ar"] .quiz__q { font-family: "Noto Kufi Arabic", "IBM Plex Sans Arabic", sans-serif; font-weight: 800; text-transform: none; letter-spacing: 0; line-height: 1.45; }
html[lang="ar"] .quiz__opts button b { font-size: clamp(1rem, 2.4vw, 1.4rem); }
html[lang="ar"] .quiz__q { font-size: clamp(1.25rem, 3vw, 1.7rem); }
html[lang="ar"] .quiz__back, html[lang="ar"] .quiz__again, html[lang="ar"] .btn { font-family: "IBM Plex Sans Arabic", var(--mono); letter-spacing: 0; text-transform: none; font-size: 0.95rem; }

/* every button on the guide matches the stage check's result: yellow pill = the action, outline pill = the alternative */
.g-pills { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 1.2rem; }
.g-pill { display: flex; align-items: center; justify-content: center; width: min(100%, 320px); min-height: 54px; padding: 0 1.4rem; border-radius: 999px; font-family: var(--mono); font-size: 0.86rem; letter-spacing: 0.06em; text-transform: uppercase; text-align: center; transition: background-color 0.2s ease, border-color 0.2s ease; }
html[lang="ar"] .g-pill { font-family: "IBM Plex Sans Arabic", var(--body); letter-spacing: 0; text-transform: none; font-size: 0.98rem; }
button.g-pill { cursor: pointer; }
.g-pill--y { background: var(--warm); border: 1px solid var(--warm); color: #1a1208; font-weight: 500; }
.g-pill--y:hover { background: #ffd982; }
.g-pill--o { background: transparent; border: 1px solid rgba(255,255,255,0.22); color: var(--cream); }
.g-pill--o:hover { border-color: var(--blue2); }
.g-end { text-align: center; padding-bottom: clamp(48px, 7vw, 90px); }
.g-end .lead { margin-inline: auto; }
.g-endbtn { min-height: 54px; padding: 0 1.6rem; }

/* the lead forms are English, keep them left to right */
.leadbox { direction: ltr; text-align: left; }
