#actionBox.is-attention { box-shadow: 0 0 0 3px var(--success); transition: box-shadow .3s; }
@media (prefers-reduced-motion: reduce) { #actionBox.is-attention { transition: none; } }
body { color: var(--text-primary); font-family: var(--font-ar); margin: 0; padding-bottom: calc(90px + var(--sab)); }
.container { max-width: 800px; margin: 0 auto; padding: 24px 16px 40px; }

.article-hero { position: relative; border-radius: var(--radius-xl); overflow: hidden; margin-bottom: 22px;
    min-height: 230px; box-shadow: var(--shadow-lg);
    background-position: center; background-size: cover; }
.article-hero::before { content: ''; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(17,24,39,0.15) 0%, rgba(17,24,39,0.92) 100%); }
.article-hero-inner { position: absolute; bottom: 0; inset-inline: 0; padding: 24px; color: #fff; z-index: 1; }
.article-hero h1 { margin: 0 0 10px; font-size: 27px; font-weight: 800; line-height: 1.35; }
.hero-chips { display: flex; gap: 8px; flex-wrap: wrap; font-size: var(--text-xs); font-weight: 700; }
.hero-chips > span:not(.effort-badge) { background: rgba(255,255,255,.16); padding: 5px 12px; border-radius: var(--radius-full);
    display: inline-flex; align-items: center; gap: 5px; }

.box { background: var(--bg-surface); border: 1px solid var(--border-color);
       border-radius: var(--radius-lg); padding: 20px 22px; margin-bottom: 16px; }
.box h3 { margin: 0 0 12px; font-size: var(--text-base); font-weight: 800;
          display: flex; align-items: center; gap: 8px; }
.desc { line-height: 1.95; font-size: var(--text-base); color: var(--text-secondary); }
.desc img { max-width: 100%; border-radius: 12px; }

.step { display: flex; gap: 12px; padding: 11px 0; border-top: 1px solid var(--border-color); }
.step:first-of-type { border-top: none; }
.step .num { flex: 0 0 26px; height: 26px; border-radius: 50%; background: var(--primary);
    color: #fff; font-weight: 800; font-size: var(--text-sm); display: flex;
    align-items: center; justify-content: center; }
.step .txt { font-size: var(--text-sm); line-height: 1.7; padding-top: 2px; }

.bar { height: 11px; border-radius: var(--radius-full); background: var(--bg-surface-hover); overflow: hidden; }
.bar > span { display: block; height: 100%; border-radius: var(--radius-full); transition: width .5s;
              background: linear-gradient(var(--deg-to-start), #1E6B47, #A71C20);
              background-size: calc(10000% / var(--pct, 100)) 100%;
              background-position: var(--page-start) center; background-repeat: no-repeat; }

.act-btn { padding: 14px; }
.ghost-btn { padding: 11px; font-size: var(--text-sm); margin-top: 10px; }

.lp-overlay { display: none; position: fixed; inset: 0; z-index: 9500;
    background: rgba(0,0,0,.72); backdrop-filter: blur(3px);
    align-items: center; justify-content: center; padding: 20px; overscroll-behavior: contain; }
.lp-box { background: var(--bg-surface); border: 1px solid var(--border-color);
    border-radius: var(--radius-lg); padding: 22px; width: 100%; max-width: 420px;
    max-height: calc(100vh - 40px); max-height: calc(100dvh - 40px); overflow-y: auto; overscroll-behavior: contain; }
.lp-box h3 { margin: 0 0 8px; font-size: var(--text-base); font-weight: 800; }
.lp-sub { margin: 0 0 16px; font-size: var(--text-sm); line-height: 1.7;
    color: var(--text-secondary); }
.lp-input { width: 100%; box-sizing: border-box; padding: 13px 14px;
    border: 1px solid var(--border-color); border-radius: 12px;
    background: var(--bg-app); color: var(--text-primary);
    font-family: inherit; font-size: var(--text-sm); outline: none; }
.lp-input:focus { border-color: var(--primary); }
.lp-error { display: none; margin-top: 10px; font-size: var(--text-sm);
    font-weight: 700; color: var(--danger-ink); line-height: 1.7; }
.lp-box .btn { margin-top: 16px; }
.cp-story-btn { margin-top: 14px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }

.cp-impact { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.cp-impact span { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: var(--radius-full);
    background: var(--bg-surface-hover); font-size: var(--text-xs); font-weight: 700; color: var(--text-secondary); }
.cp-impact svg, .cp-impact i { width: 14px; height: 14px; }

.cp-gfields { margin: 0 0 12px; }
.cp-gfields__lbl { display: block; font-size: var(--text-xs); font-weight: 700; color: var(--text-secondary); margin-bottom: 6px; }
.cp-gfields__sel { width: 100%; padding: 11px 12px; border: 1px solid var(--border-color); border-radius: 12px;
    background: var(--bg-app); color: inherit; font: inherit; font-size: var(--text-sm); }
.cp-gfields__consent { display: flex; align-items: flex-start; gap: 10px; margin-top: 12px; font-size: var(--text-sm);
    line-height: 1.7; cursor: pointer; }
.cp-gfields__consent input { flex: 0 0 auto; width: 18px; height: 18px; margin-top: 4px; accent-color: var(--primary); }
.cp-gfields__note { margin: 8px 0 0; font-size: var(--text-xs); line-height: 1.7; color: var(--text-tertiary); }

.cp-gal-n { display: inline-block; margin-inline-start: 6px; padding: 1px 9px; border-radius: var(--radius-full);
    background: var(--bg-surface-hover); font-size: var(--text-xs); color: var(--text-secondary); }
.cp-gal { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.cp-gal__item { margin: 0; min-width: 0; }
.cp-gal__open { display: block; width: 100%; padding: 0; border: 0; background: var(--bg-surface-hover);
    border-radius: 12px; overflow: hidden; aspect-ratio: 1; cursor: zoom-in; }
.cp-gal__open img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cp-gal__item figcaption { margin-top: 6px; font-size: var(--text-xs); line-height: 1.5; overflow-wrap: anywhere; }
.cp-gal__who { display: block; font-weight: 800; color: var(--text-secondary); }
.cp-gal figcaption .cmt-badge { margin-block: 2px; }
.cp-gal__where { display: block; font-weight: 600; color: var(--text-tertiary); }
@media (max-width: 380px) { .cp-gal { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.cp-gal-view { position: fixed; inset: 0; z-index: 9600; background: rgba(0,0,0,.88);
    display: flex; align-items: center; justify-content: center; padding: 16px; }
.cp-gal-view[hidden] { display: none; }
.cp-gal-view img { max-width: 100%; max-height: 100%; border-radius: 12px; object-fit: contain; }
.cp-gal-view__x { position: absolute; top: 14px; inset-inline-end: 14px; width: 44px; height: 44px; border-radius: 50%;
    border: 0; background: rgba(255,255,255,.16); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.cp-gal-view__x svg, .cp-gal-view__x i { width: 22px; height: 22px; }
