/* Rubric identities follow the three homepage bands. Keep semantic status colours. */
:root{--section-events:#dfbd72;--section-scholarships:#08796f;--section-journals:#8b2947}
body[data-section-theme="manifestations"]{--section-color:var(--section-events);--section-ink:#553b15;--section-deep:#735019;--section-soft:#fbf4e4;--section-line:#d9c394;--section-on:#38290f;--section-hero-end:#ead3a2;--section-rgb:115,80,25}
body[data-section-theme="bourses"]{--section-color:var(--section-scholarships);--section-ink:#075b53;--section-deep:#055e56;--section-soft:#edf7f4;--section-line:#a8cec6;--section-on:#fff;--section-hero-end:#065b54;--section-rgb:8,121,111}
body[data-section-theme="revues"]{--section-color:var(--section-journals);--section-ink:#7a223e;--section-deep:#6d1e37;--section-soft:#fbf0f3;--section-line:#d9b5c0;--section-on:#fff;--section-hero-end:#641b33;--section-rgb:139,41,71}

/* Scope the accent to public rubric content; the site header retains its identity. */
body[data-section-theme] :is(.events-page,.bourses-page,.revues-page,.detail-page,.revue-detail-page){
  --dz-green:var(--section-color);--dz-green-deep:var(--section-deep);--dz-green-soft:var(--section-soft);
  background:linear-gradient(180deg,var(--section-soft),#fff 660px)!important;
}
body[data-section-theme] :is(.events-hero,.bourses-hero,.revues-hero){
  background:linear-gradient(120deg,var(--section-color),var(--section-hero-end))!important;
  color:var(--section-on)!important;border-bottom:1px solid var(--section-line)!important;
}
body[data-section-theme] :is(.events-hero,.bourses-hero,.revues-hero)::before,
body[data-section-theme] :is(.events-hero,.bourses-hero,.revues-hero)::after,
body[data-section-theme] .revues-hero-bg{display:none!important}
body[data-section-theme] :is(.events-hero-copy,.bourses-hero-copy,.revues-hero-copy) :is(h1,p,.events-kicker,.bourses-kicker,.revues-eyebrow,.events-hero-note,.bourses-hero-note,.revues-hero-note){color:var(--section-on)!important;text-shadow:none!important}
body[data-section-theme] :is(.events-hero,.bourses-hero,.revues-hero) a:is(.events-hero-action,.bourses-hero-action,.revues-hero-action){
  color:var(--section-on)!important;background:transparent!important;border:1px solid currentColor!important;box-shadow:none!important;
}
body[data-section-theme] :is(.events-hero,.bourses-hero,.revues-hero) a:is(.events-hero-action-primary,.bourses-hero-action-primary,.revues-hero-action-primary){
  background:#fff!important;color:var(--section-ink)!important;border-color:#fff!important;
}
body[data-section-theme] :is(.events-hero,.bourses-hero,.revues-hero) a:is(.events-hero-action,.bourses-hero-action,.revues-hero-action):hover{background:var(--section-soft)!important;color:var(--section-ink)!important;border-color:var(--section-soft)!important}
body[data-section-theme] .revues-hero a.revues-hero-link{color:var(--section-on)!important}
body[data-section-theme] :is(.events-hero-stat,.bourses-hero-stat,.revues-hero-stats){background:#fff!important;border-color:var(--section-line)!important;box-shadow:0 10px 30px rgba(0,0,0,.06)!important}
body[data-section-theme] :is(.events-hero-stat,.bourses-hero-stat,.revues-hero-stats) :is(div,span,strong){color:var(--section-ink)!important}
body[data-section-theme] :is(.events-filter-bar,.bourses-filter-bar,.revues-filters-card){border-color:var(--section-line)!important;box-shadow:0 10px 30px rgba(0,0,0,.05)!important}
body[data-section-theme] :is(.filter-pill,.bourse-pill,.revues-pill){border-color:var(--section-line)!important;color:var(--section-ink)!important;background:#fff!important}
body[data-section-theme] :is(.filter-pill.is-active,.bourse-pill-active,.revues-pill.is-active,.filter-submit,.bourses-filter-btn,.revues-submit-btn,.events-auth-button,.bourses-auth-button,.revues-auth-button,.auth-gate-button){
  background:var(--section-color)!important;color:var(--section-on)!important;border-color:var(--section-color)!important;box-shadow:none!important;
}
body[data-section-theme] :is(.filter-submit,.bourses-filter-btn,.revues-submit-btn,.events-auth-button,.bourses-auth-button,.revues-auth-button):hover{
  background:var(--section-deep)!important;color:#fff!important;border-color:var(--section-deep)!important;
}
body[data-section-theme] :is(.events-page,.bourses-page,.revues-page,.detail-page,.revue-detail-page) :is(input,select,textarea):focus{
  border-color:var(--section-deep)!important;box-shadow:0 0 0 3px rgba(var(--section-rgb),.18)!important;
}
body[data-section-theme] :is(.events-page,.bourses-page,.revues-page,.detail-page,.revue-detail-page) :focus-visible{outline:3px solid var(--section-deep)!important;outline-offset:3px}
body[data-section-theme] :is(.event-row,.bourse-card,.revues-card,.detail-card,.revue-info-card,.revue-summary-card){border-color:var(--section-line)!important}
body[data-section-theme] :is(.event-row,.bourse-card,.revues-card):hover{border-color:var(--section-deep)!important}
body[data-section-theme] :is(.event-row-title a,.event-row-link,.bourse-card-title a,.bourse-card-link,.revues-card-title a,.revues-card-link,.filter-reset,.revues-reset-btn,.revues-domain-title,.detail-back,.revue-detail-back a){color:var(--section-ink)!important}
body[data-section-theme] :is(.revues-popular-link,.revues-arabic-domain-link,.revues-breadcrumbs a,.revues-reset-link,.revues-card-cta,.revues-group-head h2,.revues-popular-kicker,.events-auth-kicker,.bourses-auth-kicker,.revues-auth-kicker){color:var(--section-ink)!important}
body[data-section-theme] :is(.revues-popular-link,.revues-arabic-domain-link):is(:hover,.is-current){background:var(--section-soft)!important;border-color:var(--section-line)!important}
body[data-section-theme] .revues-card-topline{background:var(--section-color)!important}
body[data-section-theme] :is(.page-btn.active,.bourses-pagination a.active,.revues-pagination a.active){background:var(--section-color)!important;border-color:var(--section-color)!important;color:var(--section-on)!important}

/* Detail pages carry the identity into the title, information panel and actions. */
body[data-section-theme] :is(.detail-title,.detail-section-title,.revue-detail-main h1,.revue-info-card h2,.revue-highlight-head h2){color:var(--section-ink)!important}
body[data-section-theme] :is(.detail-card,.revue-detail-hero){border-top:4px solid var(--section-color)!important}
body[data-section-theme] .detail-side-header{background:var(--section-color)!important;color:var(--section-on)!important}
body[data-section-theme] :is(.detail-link-box,.revue-highlight-card,.revue-author-kit){background:var(--section-soft)!important;border-color:var(--section-line)!important}
body[data-section-theme] :is(.detail-link-label,.detail-link-url,.revue-highlight-kicker,.revue-author-kit-kicker,.revue-link-head,.revue-link-card a){color:var(--section-ink)!important}
body[data-section-theme] :is(.detail-cta,.detail-link-cta,.revue-main-btn,.revue-author-kit-btn-primary,.revue-author-kit-btn-submit){background:var(--section-color)!important;color:var(--section-on)!important;border-color:var(--section-color)!important;box-shadow:none!important}
body[data-section-theme] :is(.detail-cta,.detail-link-cta,.revue-main-btn,.revue-author-kit-btn-primary,.revue-author-kit-btn-submit):hover{background:var(--section-deep)!important;border-color:var(--section-deep)!important;color:#fff!important}
body[data-section-theme] .revue-author-kit-btn:not(.revue-author-kit-btn-primary):not(.revue-author-kit-btn-submit){background:#fff!important;color:var(--section-ink)!important;border-color:var(--section-line)!important}
body[data-section-theme] .revue-chip-domain{background:var(--section-soft)!important;color:var(--section-ink)!important;border-color:var(--section-line)!important}
body[data-section-theme] .revues-eyebrow-dot{background:currentColor!important}
@media(prefers-reduced-motion:reduce){body[data-section-theme] :is(.event-row,.bourse-card,.revues-card){transition:none!important;transform:none!important}}

/* One shared hero component, with the homepage colour of each rubric. */
body[data-section-theme] .rubric-shell{width:min(1200px,calc(100% - 64px));margin-inline:auto;box-sizing:border-box}
body[data-section-theme] .rubric-hero{position:relative;isolation:isolate;overflow:hidden;background:linear-gradient(115deg,var(--section-color),var(--section-hero-end));color:var(--section-on);border-bottom:1px solid var(--section-line)}
body[data-section-theme] .rubric-hero::after{content:'';position:absolute;z-index:-1;width:420px;height:420px;border:1px solid currentColor;border-radius:50%;opacity:.12;inset-inline-end:-190px;top:-160px;box-shadow:0 0 0 70px rgba(255,255,255,.05),0 0 0 140px rgba(255,255,255,.04);pointer-events:none}
body[data-section-theme] .rubric-hero-grid{display:grid;grid-template-columns:minmax(0,1fr) 248px;gap:72px;align-items:center;min-height:424px;padding-block:56px}
body[data-section-theme] .rubric-hero-copy{min-width:0;max-width:790px}
body[data-section-theme] .rubric-eyebrow{display:flex;align-items:center;gap:10px;margin:0 0 20px;color:var(--section-on)!important;font:750 12px/1.5 Inter,Arial,sans-serif;text-transform:uppercase;letter-spacing:.12em}
body[data-section-theme] .rubric-eyebrow span{width:24px;height:2px;background:currentColor;flex-shrink:0}
body[data-section-theme] .rubric-hero h1{font-family:'Cormorant Garamond',Georgia,serif;font-weight:700;font-size:clamp(36px,3.6vw,50px);line-height:1.08;letter-spacing:-.025em;color:var(--section-on)!important;margin:0 0 20px;max-width:26ch;text-wrap:balance;text-shadow:none!important}
body[data-section-theme] .rubric-description{font-size:16px;line-height:1.7;color:var(--section-on)!important;max-width:65ch;margin:0;opacity:.95}
body[data-section-theme] .rubric-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:28px}
body[data-section-theme] .rubric-actions a.rubric-action{display:inline-flex;align-items:center;justify-content:center;gap:16px;min-height:48px;padding:12px 19px;box-sizing:border-box;border:1px solid currentColor;border-radius:7px;color:var(--section-on)!important;background:transparent;font:700 14px/1.5 Inter,Arial,sans-serif;text-decoration:none!important;transition:background .18s,color .18s}
body[data-section-theme] .rubric-actions a.rubric-action-primary{background:#fff;color:var(--section-ink)!important;border-color:#fff}
body[data-section-theme] .rubric-actions a.rubric-action:hover{background:var(--section-soft);border-color:var(--section-soft);color:var(--section-ink)!important}
body[data-section-theme] .rubric-counter{display:flex;align-items:flex-start;justify-content:center;flex-direction:column;width:248px;min-height:236px;padding:27px;box-sizing:border-box;background:rgba(255,255,255,.96);border:1px solid rgba(255,255,255,.8);border-radius:16px;box-shadow:0 16px 40px rgba(0,0,0,.07);color:var(--section-ink)}
body[data-section-theme] .rubric-counter-icon{display:inline-flex;color:var(--section-ink);margin-bottom:12px}
body[data-section-theme] .rubric-counter strong{color:var(--section-ink)!important;font:750 58px/1 Inter,Arial,sans-serif;letter-spacing:-.055em;font-variant-numeric:tabular-nums}
body[data-section-theme] .rubric-counter-label{margin-top:9px;color:var(--section-ink)!important;font-size:14px;font-weight:650;line-height:1.5}
body[data-section-theme] .rubric-counter-foot{display:block;width:100%;padding-top:14px;margin-top:17px;border-top:1px solid var(--section-line);color:#5b6066;font-size:11px;line-height:1.5}
body[data-section-theme] .rubric-filter-section{padding-block:28px;background:var(--section-soft)}
body[data-section-theme] .rubric-filter-section :is(.events-filter-bar,.bourses-filter-bar){margin:0!important;width:100%!important;transform:none!important;position:relative!important;top:auto!important}
body[data-section-theme] :is(.events-shell,.bourses-shell,.revues-shell){width:min(1200px,calc(100% - 64px))!important;margin-inline:auto!important}
body[data-section-theme] :is(.events-hero,.bourses-hero){padding:0!important}
body[data-section-theme] .rubric-hero :focus-visible{outline:3px solid currentColor!important;outline-offset:4px}
@media(max-width:900px){body[data-section-theme] .rubric-hero-grid{grid-template-columns:minmax(0,1fr) 200px;gap:32px;min-height:400px;padding-block:40px}body[data-section-theme] .rubric-counter{width:200px;padding:22px}body[data-section-theme] .rubric-hero h1{font-size:40px}}
@media(max-width:640px){body[data-section-theme] .rubric-shell,body[data-section-theme] :is(.events-shell,.bourses-shell,.revues-shell){width:calc(100% - 32px)!important}body[data-section-theme] .rubric-hero-grid{grid-template-columns:1fr;gap:26px;padding-block:32px;min-height:0}body[data-section-theme] .rubric-hero h1{font-size:36px;line-height:1.12;margin-bottom:16px;max-width:none}body[data-section-theme] .rubric-eyebrow{margin-bottom:16px;font-size:10px}body[data-section-theme] .rubric-description{font-size:15px}body[data-section-theme] .rubric-actions{margin-top:22px;gap:10px}body[data-section-theme] .rubric-actions a.rubric-action{padding:11px 14px;font-size:12px;gap:10px;flex:1 1 auto}body[data-section-theme] .rubric-counter{width:100%;min-height:0;display:grid;grid-template-columns:auto 1fr;gap:0 16px;align-items:center;padding:19px 22px;border-radius:12px}body[data-section-theme] .rubric-counter-icon{display:none}body[data-section-theme] .rubric-counter strong{font-size:42px;grid-row:1/3}body[data-section-theme] .rubric-counter-label{margin:0}body[data-section-theme] .rubric-counter-foot{border:0;padding:0;margin:4px 0 0;font-size:10px}body[data-section-theme] .rubric-filter-section{padding-block:20px}}
@media(prefers-reduced-motion:reduce){body[data-section-theme] .rubric-action{transition:none!important}}

body[data-section-theme] .revues-filters-wrap{padding-block:28px!important;background:var(--section-soft)!important;border:0!important}
@media(max-width:640px){body[data-section-theme] .revues-filters-wrap{padding-block:20px!important}}
