/* الموقع الرسمي لكبسولة — مصمَّم على شكل نشرة دواء مطويّة */
/* --red للتعبئة الزخرفية فقط. --red-btn خلف النص الأبيض (4.84:1). --red-text للنص والروابط الصغيرة على الفاتح (5.79:1 على sheet، 5.25:1 على paper) */
:root{--red:#F0283C;--red-btn:#E0182E;--red-text:#C8102E;--ink:#17110F;--paper:#F7F1EA;--sheet:#FFFDF9;--soft:#6B625C;--fold:#D6CCBF}
*{box-sizing:border-box;margin:0;padding:0}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}
body{font-family:"Tajawal",system-ui,-apple-system,"Segoe UI","Geeza Pro",Tahoma,Arial,sans-serif;background:var(--paper);color:var(--ink);font-size:18px;line-height:1.85;padding-bottom:0}
[dir=ltr] body,body:lang(en){line-height:1.7}
a{color:inherit}
.brand b,.foot-brand b{font-family:"Kufam","Tajawal",sans-serif}
.skip{position:absolute;inset-inline-start:-999px;top:0;background:var(--ink);color:#fff;padding:8px 14px;z-index:9}
.skip:focus{inset-inline-start:8px;top:8px}

/* ---------- الرأس ---------- */
.top{max-width:860px;margin:0 auto;padding:16px 20px 10px;display:flex;align-items:center;gap:8px 18px;flex-wrap:wrap}
.brand{display:flex;align-items:center;gap:6px;text-decoration:none}
.brand svg{width:34px;height:34px}
.brand b{font-size:27px;font-weight:900;line-height:1.2}
.top nav{display:flex;gap:16px;margin-inline-start:auto;font-size:15.5px;font-weight:600}
.top nav a{text-decoration:none;padding:6px 0;border-bottom:2px solid transparent}
.top nav a:hover{border-bottom-color:var(--red)}
.top nav .lang{color:var(--soft)}

/* ---------- زر «افتح التطبيق»: كبسولة من نصفين ---------- */
.open{display:inline-flex;align-items:stretch;gap:3px;text-decoration:none;transition:transform .15s}
.open span{background:var(--red-btn);color:#fff;font-weight:900;font-size:18px;line-height:1.3;padding:14px 26px;display:flex;align-items:center;white-space:nowrap;
  border-start-start-radius:999px;border-end-start-radius:999px;border-start-end-radius:6px;border-end-end-radius:6px}
.open i{background:var(--ink);width:58px;display:grid;place-items:center;
  border-start-end-radius:999px;border-end-end-radius:999px;border-start-start-radius:6px;border-end-start-radius:6px}
.open svg{width:22px;height:22px;fill:#fff}
[dir=rtl] .open svg{transform:scaleX(-1)}
.open:hover{transform:translateY(-2px)}
.open:active{transform:scale(.97)}
.open.small span{font-size:14.5px;padding:8px 16px}
.open.small i{width:38px}
.open.small svg{width:16px;height:16px}

/* ---------- الورقة ---------- */
.sheet{max-width:820px;margin:8px auto 0;background:var(--sheet);padding:0 26px 40px;border-radius:6px 6px 0 0;position:relative}
.sheet::before{content:"";position:absolute;inset-inline:0;top:0;height:10px;background:repeating-linear-gradient(90deg,var(--red) 0 22px,transparent 22px 30px,var(--ink) 30px 52px,transparent 52px 60px);border-radius:6px 6px 0 0}
.eyebrow{padding:30px 0 0;font-size:13px;font-weight:700;color:var(--soft);letter-spacing:.02em}
.eyebrow a{text-decoration-color:var(--red);text-underline-offset:4px}
.hero{padding:16px 0 26px}
.hero h1{font-size:clamp(44px,11vw,86px);font-weight:900;line-height:1.12;letter-spacing:-.01em}
.hero h1 span{display:block}
.hero h1 span+span{color:var(--red-text)}
.hero.small h1{font-size:clamp(38px,8vw,60px)}
.lead{font-size:clamp(19px,2.6vw,22px);line-height:1.8;max-width:38em;margin-top:16px}
[dir=ltr] .lead{line-height:1.6}
.cta{display:flex;flex-wrap:wrap;align-items:center;gap:14px 22px;margin-top:26px}
.text-link{font-weight:700;text-decoration:underline;text-decoration-color:var(--red);text-decoration-thickness:3px;text-underline-offset:6px}

/* ---------- شريط الكبسولات: ٣ ثم كويز ---------- */
.blister{list-style:none;display:grid;grid-template-columns:repeat(4,1fr);gap:10px;background:var(--ink);border-radius:22px;padding:18px 14px 12px;margin:6px 0 18px}
.blister li{display:flex;flex-direction:column;align-items:center;gap:8px;min-width:0}
.blister i{font-style:normal;width:min(100%,92px);aspect-ratio:1;border-radius:50%;background:#2B221E;position:relative;display:grid;place-items:center;color:#fff;font:900 34px/1 "Tajawal",sans-serif}
.blister li:not(.q) i::before{content:"";position:absolute;width:64%;height:30%;border-radius:999px;background:linear-gradient(90deg,var(--red) 50%,var(--paper) 50%);transform:rotate(-40deg)}
.blister .q i{background:var(--red-btn)}
.blister span{color:var(--paper);font-size:13px;font-weight:700;text-align:center;line-height:1.3}

/* ---------- ملصق الصيدلية ---------- */
.label{display:grid;grid-template-columns:repeat(2,1fr);border:2px solid var(--ink);border-radius:14px;overflow:hidden;margin-bottom:6px}
.label div{padding:12px 16px;border-top:1.5px dashed var(--fold)}
.label div:nth-child(-n+2){border-top:0}
.label div:nth-child(odd){border-inline-end:1.5px dashed var(--fold)}
.label dt{font-size:12.5px;font-weight:700;color:var(--soft)}
.label dd{font-weight:800;font-size:17px;line-height:1.5}
.stamp{display:inline-block;margin:14px 0 8px;border:2px solid var(--red-text);color:var(--red-text);border-radius:8px;padding:2px 14px;font-size:13.5px;font-weight:800;transform:rotate(-2deg)}

/* ---------- أقسام النشرة ---------- */
.sec{display:grid;grid-template-columns:54px 1fr;gap:0 18px;padding:34px 0 8px;border-top:1.5px dashed var(--fold);margin-top:26px}
.rail span{display:grid;place-items:start center;padding-top:5px;width:38px;height:62px;border-radius:999px;color:#fff;font-weight:900;font-size:18px;line-height:1.4;background:linear-gradient(180deg,var(--red-btn) 50%,var(--ink) 50%)}
.sec h2{font-size:clamp(25px,4.4vw,34px);font-weight:900;line-height:1.3;margin-bottom:10px}
.sec p{margin-bottom:12px;max-width:40em}
.pills{list-style:none;margin-top:6px;display:grid;gap:14px}
.pills li{position:relative;padding-inline-start:34px}
.pills li::before{content:"";position:absolute;inset-inline-start:0;top:.62em;width:22px;height:10px;border-radius:999px;background:linear-gradient(90deg,var(--red) 50%,var(--ink) 50%);transform:rotate(-40deg)}
.pills b{display:block;font-weight:800;font-size:19px;line-height:1.5}
.pills span{color:#3B332E}
.steps{list-style:none;counter-reset:s;display:grid;gap:12px;margin-top:8px}
.steps li{counter-increment:s;position:relative;padding-inline-start:46px;min-height:32px}
.steps li::before{content:counter(s);position:absolute;inset-inline-start:0;top:.1em;width:32px;height:32px;border-radius:50%;border:2px solid var(--ink);display:grid;place-items:center;font-weight:800;font-size:15px;line-height:1}
[dir=rtl] .steps li::before{content:counter(s,arabic-indic)}
.defs{display:grid;gap:0;margin-top:10px;border:2px solid var(--ink);border-radius:14px;overflow:hidden}
.defs div{display:grid;grid-template-columns:7.5em 1fr;gap:12px;padding:12px 16px;border-top:1.5px dashed var(--fold)}
.defs div:first-child{border-top:0}
.defs dt{font-weight:800;color:var(--red-text)}

/* ---------- الأسئلة الشائعة ---------- */
.faq details{border-top:1.5px solid var(--ink);padding:14px 0}
.faq details:last-child{border-bottom:1.5px solid var(--ink)}
.faq summary{font-weight:800;font-size:19px;cursor:pointer;list-style:none;display:flex;justify-content:space-between;gap:14px;line-height:1.6}
.faq summary::-webkit-details-marker{display:none}
.faq summary::after{content:"+";color:var(--red-text);font-weight:900;font-size:24px;line-height:1.2;flex:none}
.faq details[open] summary::after{content:"−"}
.faq p{margin:8px 0 0}

/* ---------- المقالات ---------- */
.cover{display:block;width:100%;height:100%}
.tag{display:inline-block;font-style:normal;font-size:13px;font-weight:800;line-height:1.5;color:var(--red-text);border:2px solid var(--red-text);border-radius:999px;padding:1px 12px}
.arts{list-style:none;display:grid;gap:18px}
.arts li{border:2px solid var(--ink);border-radius:18px;overflow:hidden;background:#fff;transition:transform .15s}
.arts li:hover{transform:translateY(-3px)}
.arts a{display:flex;flex-direction:column;height:100%;text-decoration:none}
.arts .cover{aspect-ratio:16/9;height:auto;border-bottom:2px solid var(--ink)}
.card-t{display:flex;flex-direction:column;align-items:flex-start;gap:6px;padding:14px 16px 16px;flex:1}
.arts b{font-weight:900;font-size:20px;line-height:1.45}
.arts a:hover b{text-decoration:underline;text-decoration-color:var(--red);text-decoration-thickness:3px;text-underline-offset:6px}
.arts span{color:#3B332E;font-size:16px;line-height:1.7}
.arts small{font-size:13.5px;font-weight:700;color:var(--soft);margin-top:auto;padding-top:4px}
.arts.trio{grid-template-columns:repeat(3,1fr);gap:14px;margin-top:8px}
.arts.trio span{display:none}
.arts.trio b{font-size:17.5px}
.arts.grid{grid-template-columns:repeat(2,1fr);margin-top:14px}
.arts .feat{grid-column:1/-1}
.arts .feat a{flex-direction:row}
.arts .feat .cover{width:54%;flex:none;aspect-ratio:auto;min-height:250px;border-bottom:0;border-inline-end:2px solid var(--ink)}
.arts .feat .card-t{justify-content:center;padding:22px 24px;gap:10px}
.arts .feat b{font-size:clamp(23px,3.2vw,29px);line-height:1.4}
.post{padding-top:20px}
.post>*{max-width:38em}
.post h1{font-size:clamp(32px,6.4vw,50px);font-weight:900;line-height:1.3;margin-top:10px}
.post .meta{font-size:14px;font-weight:700;color:var(--soft);margin-top:10px}
.post .post-cover{max-width:none;margin:22px 0 6px;border:2px solid var(--ink);border-radius:20px;overflow:hidden;aspect-ratio:16/8}
.post .lead{margin:20px 0 6px;font-weight:700}
.post h2{font-size:clamp(23px,3.8vw,29px);font-weight:900;line-height:1.4;margin:34px 0 8px;display:flex;align-items:center;gap:10px}
.post h2::before{content:"";flex:none;width:26px;height:12px;border-radius:999px;background:linear-gradient(90deg,var(--red) 50%,var(--ink) 50%);transform:rotate(-40deg)}
.post p{margin-bottom:14px}
.post blockquote{margin:26px 0;background:var(--ink);color:var(--paper);border-radius:20px;padding:22px 26px 22px;position:relative}
.post blockquote::before{content:"";position:absolute;top:-12px;inset-inline-start:24px;width:46px;height:22px;border-radius:999px;background:linear-gradient(90deg,var(--red) 50%,var(--paper) 50%);border:3px solid var(--sheet)}
.post blockquote p{margin:0;font-size:clamp(20px,3vw,25px);font-weight:800;line-height:1.6}
.post ul,.post ol{list-style:none;margin:8px 0 18px;display:grid;gap:10px}
.post ul li{position:relative;padding-inline-start:26px}
.post ul li::before{content:"";position:absolute;inset-inline-start:2px;top:.72em;width:10px;height:10px;border-radius:50%;background:var(--red)}
.post ol{counter-reset:s}
.post ol li{counter-increment:s;position:relative;background:var(--paper);border-radius:14px;padding:12px 16px;padding-inline-start:58px;min-height:52px}
.post ol li::before{content:counter(s);position:absolute;inset-inline-start:14px;top:10px;width:30px;height:32px;border-radius:999px;background:linear-gradient(180deg,var(--red-btn) 50%,var(--ink) 50%);color:#fff;font-weight:900;font-size:15px;line-height:1;display:grid;place-items:start center;padding-top:2px}
[dir=rtl] .post ol li::before{content:counter(s,arabic-indic)}
.more{border-top:1.5px dashed var(--fold);margin-top:34px;padding-top:26px}
.more h2{font-size:22px;font-weight:900}
.more .all{margin-top:18px}
.end{display:flex;justify-content:center;padding:40px 0 6px}

/* ---------- الذيل ---------- */
.foot{background:var(--ink);color:var(--paper)}
.foot-in{max-width:820px;margin:0 auto;padding:20px 26px 18px;display:grid;gap:12px}
.foot-row{display:flex;align-items:center;flex-wrap:wrap;gap:8px 18px}
.foot a{text-decoration:none}
.foot-brand{display:flex;align-items:center;gap:6px}
.foot-brand svg{width:28px;height:28px}
.foot-brand b{font-size:22px;font-weight:900;line-height:1.2}
.foot-nav{display:flex;flex-wrap:wrap;gap:4px 16px;font-size:15.5px;font-weight:700}
.foot-nav a:hover{text-decoration:underline;text-decoration-color:var(--red);text-underline-offset:5px}
.foot-open{margin-inline-start:auto;background:var(--red-btn);color:#fff;font-weight:800;font-size:14.5px;line-height:1.4;padding:6px 16px;border-radius:999px;white-space:nowrap}
.foot-h{font-size:14px;font-weight:700;color:#B9AEA4}
.soc{display:flex;flex-wrap:wrap;gap:8px}
.soc a{width:38px;height:38px;border-radius:50%;background:#2B221E;display:grid;place-items:center;color:var(--paper);transition:background .15s}
.soc a:hover{background:var(--red-btn);color:#fff}
.soc svg{width:18px;height:18px;fill:currentColor}
.note{font-size:12.5px;color:#B9AEA4;line-height:1.7}
.note a{color:var(--paper);text-decoration:underline;text-underline-offset:3px;text-decoration-color:#6B625C}

/* ---------- زر ثابت أسفل شاشة الموبايل ---------- */
.dock{display:none}
@media (max-width:720px){
  body{font-size:17px;padding-bottom:86px}
  .top{padding:12px 16px 8px}
  .top .open.small{display:none}
  .top nav{gap:14px;font-size:15px}
  .sheet{padding:0 18px 30px;margin-top:4px;border-radius:0}
  .sec{grid-template-columns:40px 1fr;gap:0 12px;padding-top:28px}
  .rail span{width:30px;height:50px;font-size:15px;padding-top:4px}
  .blister{gap:6px;padding:14px 8px 10px;border-radius:18px}
  .foot-in{padding:16px 18px 14px;gap:10px}
  .foot-open{display:none}
  .foot-h{display:none}
  .soc{gap:5px;flex-wrap:nowrap}
  .soc a{width:32px;height:32px;flex:none}
  .soc svg{width:16px;height:16px}
  .note{font-size:12px}
  .arts.trio,.arts.grid{grid-template-columns:1fr}
  .arts.trio a{flex-direction:row;align-items:stretch}
  .arts.trio .cover{width:112px;flex:none;aspect-ratio:auto;border-bottom:0;border-inline-end:2px solid var(--ink)}
  .arts .feat a{flex-direction:column}
  .arts .feat .cover{width:100%;aspect-ratio:16/9;min-height:0;border-inline-end:0;border-bottom:2px solid var(--ink)}
  .arts .feat .card-t{padding:14px 16px 16px}
  .post ol li{padding-inline-start:52px}
  .defs div{grid-template-columns:1fr;gap:0}
  .dock{position:fixed;inset-inline:0;bottom:0;z-index:5;display:flex;align-items:center;justify-content:space-between;gap:12px;background:var(--sheet);border-top:2px solid var(--ink);padding:10px 14px calc(10px + env(safe-area-inset-bottom,0px))}
  .dock>span{font-size:13.5px;font-weight:800;color:var(--soft);white-space:nowrap}
  .dock .open span{font-size:17px;padding:12px 22px;color:#fff}
  .dock .open i{width:50px}
}
/* =====================================================================
   شاشة الكمبيوتر (من ١٠٨٠ بكسل): صفحة عريضة. الموبايل لا يتأثر بشيء هنا.
   ===================================================================== */
@media (min-width:1080px){
  body{font-size:19px}
  .top{max-width:1280px;padding:22px 48px 14px}
  .brand b{font-size:31px}
  .brand svg{width:40px;height:40px}
  .top nav{gap:28px;font-size:17px}
  .sheet{max-width:1280px;padding:0 64px 64px;margin-top:10px}
  .foot-in{max-width:1280px;padding:26px 64px 22px}
  .eyebrow{padding-top:40px}

  /* ----- الرئيسية: العنوان يمين، والشريط والملصق يسار ----- */
  .p-home .sheet{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr);column-gap:72px;align-items:start}
  .p-home .sheet>*{grid-column:1/-1}
  .p-home .hero{grid-column:1;grid-row:2/span 3;padding:22px 0 30px}
  .p-home .hero h1{font-size:clamp(64px,6.4vw,98px)}
  .p-home .blister{grid-column:2;grid-row:2;margin:34px 0 18px}
  .p-home .label{grid-column:2;grid-row:3}
  .p-home .stamp{grid-column:2;grid-row:4;justify-self:start;align-self:start}
  .lead{font-size:23px}

  /* ----- أقسام النشرة ----- */
  .sec{grid-template-columns:72px minmax(0,1fr);gap:0 28px;padding-top:44px;margin-top:34px}
  .rail span{width:46px;height:74px;font-size:21px}
  .sec h2{font-size:40px;margin-bottom:14px}
  .sec p{max-width:48em}
  .pills{grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:18px 34px}
  .pills li{background:var(--paper);border-radius:18px;padding:18px 20px;padding-inline-start:56px}
  .pills li::before{inset-inline-start:20px;top:1.55em}
  .steps{columns:2;column-gap:48px;display:block}
  .steps li{break-inside:avoid;margin-bottom:14px}
  .defs{display:grid;grid-template-columns:1fr 1fr}
  .defs div:nth-child(2){border-top:0}
  .defs div:nth-child(odd){border-inline-end:1.5px dashed var(--fold)}
  .faq{columns:2;column-gap:48px}
  .faq details{break-inside:avoid}
  .faq details:last-child{border-bottom:0}
  .arts.trio{gap:22px}
  .arts.trio b{font-size:19px}

  /* ----- فهرس المقالات: ثلاثة أعمدة ----- */
  .p-index .arts.grid{grid-template-columns:repeat(6,1fr);gap:24px}
  .p-index .arts.grid li{grid-column:span 2}
  .p-index .arts.grid li.feat{grid-column:1/-1}
  /* آخر صفّين يتوزّعان على عمودين حتى لا يبقى مقال وحده */
  .p-index .arts.grid li:nth-last-child(-n+4):not(.feat){grid-column:span 3}
  .arts .feat .cover{width:58%;min-height:340px}
  .arts .feat b{font-size:34px}
  .arts .feat span{font-size:18px}

  /* ----- المقال: النص في عمود مريح، والمقالات ذات الصلة بجانبه ----- */
  .p-post .sheet{display:grid;grid-template-columns:minmax(0,1fr) 340px;column-gap:64px;align-items:start}
  .p-post .sheet>*{grid-column:1/-1}
  .p-post .post{grid-column:1;grid-row:2}
  .p-post .end{grid-column:1;grid-row:3;justify-content:flex-start}
  .p-post .more{grid-column:2;grid-row:2/span 2;position:sticky;top:24px;margin-top:20px;border-top:0;padding-top:0}
  .p-post .more h2{font-size:20px;margin-bottom:4px}
  .p-post .more .arts.trio{grid-template-columns:1fr;gap:14px}
  .p-post .more .arts a{flex-direction:row;align-items:stretch}
  .p-post .more .arts .cover{width:118px;flex:none;aspect-ratio:auto;border-bottom:0;border-inline-end:2px solid var(--ink)}
  .p-post .more .card-t{padding:10px 14px 12px;gap:4px}
  .p-post .more .arts b{font-size:16px;line-height:1.5}
  .p-post .more .arts small{font-size:12.5px}
  .post>*{max-width:44em}
  .post h1{font-size:54px}
  .post .post-cover{max-width:none;aspect-ratio:16/7}

  /* ----- عن كبسولة ----- */
  .p-about .hero h1{font-size:72px}
}
@media (min-width:1500px){
  .top,.sheet,.foot-in{max-width:1400px}
}
@media (prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}
@media print{.dock,.top .open,.end{display:none}body{background:#fff}}

/* ----- الرئيسية: ريل في الأعلى، وجملة واحدة للطالب، وزر واحد في الوسط ----- */
.reel-hero{display:flex;flex-direction:column;align-items:center;text-align:center;padding-top:6px}
.teaser{position:relative;width:min(70vw,300px);aspect-ratio:9/16;border-radius:26px;overflow:hidden;background:#17110F;box-shadow:0 18px 44px rgba(23,17,15,.28);margin:0 auto 24px}
.teaser video{width:100%;height:100%;object-fit:cover;display:block}
.teaser figcaption{position:absolute;inset-inline:0;bottom:0;padding:28px 12px 12px;background:linear-gradient(transparent,rgba(0,0,0,.72));color:#fff;font-size:12.5px;font-weight:700;line-height:1.5}
.teaser .snd{position:absolute;top:12px;inset-inline-end:12px;width:44px;height:44px;border-radius:50%;border:0;background:rgba(23,17,15,.6);color:#fff;display:grid;place-items:center;cursor:pointer}
.teaser .snd svg{width:22px;height:22px;fill:currentColor}
.teaser .snd .on{display:none}
.teaser .snd[aria-pressed=true] .on{display:inline}
.teaser .snd[aria-pressed=true] .off{display:none}
.reel-hero h1,.p-home .reel-hero h1{font-size:clamp(30px,7.4vw,56px);line-height:1.25;max-width:14em}
.reel-hero .lead{margin-inline:auto;max-width:30em}
.reel-hero .cta{justify-content:center}
@media (min-width:1000px){
  .p-home .sheet{display:block}
  .p-home .hero{padding-top:10px}
  .p-home .blister{margin:40px auto 18px;max-width:760px}
  .p-home .label{max-width:760px;margin-inline:auto}
  .p-home .stamp{display:block;text-align:center}
}

.reel-hero h1{margin:10px 0 18px}
.reel-hero .teaser{margin-bottom:20px}
.reel-hero .lead{margin-top:0}

/* ----- الرأس: قائمة الخطوط الثلاثة، والشعار في الوسط ----- */
.top{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;flex-wrap:nowrap}
.menu{justify-self:start;position:relative}
.menu summary{list-style:none;width:46px;height:46px;border-radius:14px;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:5px;cursor:pointer}
.menu summary::-webkit-details-marker{display:none}
.menu summary:hover{background:rgba(23,17,15,.06)}
.menu summary span{display:block;width:22px;height:2.5px;border-radius:2px;background:var(--ink);transition:transform .2s,opacity .2s}
.menu[open] summary span:nth-child(1){transform:translateY(7.5px) rotate(45deg)}
.menu[open] summary span:nth-child(2){opacity:0}
.menu[open] summary span:nth-child(3){transform:translateY(-7.5px) rotate(-45deg)}
.top .menu nav{position:absolute;top:54px;inset-inline-start:0;z-index:30;margin:0;display:flex;flex-direction:column;gap:2px;min-width:210px;padding:8px;background:#fff;border-radius:18px;box-shadow:0 14px 34px rgba(23,17,15,.18);font-size:16.5px}
.top .menu nav a{padding:12px 14px;border:0;border-radius:12px}
.top .menu nav a:hover{background:var(--paper);border:0}
.brand{justify-self:center}
.top-end{justify-self:end}
