/* R236 — medium academic blue, limited gold, and readable content surfaces.
   Palette only: no routes, data, controls, media geometry or paragraph alignment change.
   Hero/profile are owned by 22-hero-r235.css. Specialized diagnostic/status palettes
   and document/image readers are deliberately outside the public heading rules. */
:root{
  --r235-navy:#245d8f;--r235-navy-secondary:#1b4d7a;--r235-gold:#c58c08;
  --r235-ink:#173f6d;--r235-paper:#fff;--r235-wash:#f4f7fa;
  --r235-muted:#526579;--r235-line:#d5dfe8;
  --r235-relation:#edf4fb;--r235-relation-ink:#17456b;
  --r235-gold-wash:#f8f3e8;--r235-gold-ink:#725621;
  --r235-on-navy:#fff;--r235-on-navy-muted:#e3eaf3;
  --r235-control-line:#7893b1;--r235-focus:#947226;
}
html[data-theme="dark"]{
  --r235-ink:#f2f6fa;--r235-paper:#172635;--r235-wash:#1c2d3d;
  --r235-muted:#b3c4d4;--r235-line:#40566b;
  --r235-relation:#213547;--r235-relation-ink:#e5f0fa;
  --r235-gold-wash:#342f22;--r235-gold-ink:#ead19a;--r235-focus:#d9bc77;
}
html[data-theme] body{background:var(--r235-wash)}
/* Shared chrome is the same academic identity on public and administration pages. */
html[data-theme] .topbar{background:linear-gradient(115deg,var(--r235-navy-secondary),var(--r235-navy));color:#fff;border-bottom:2px solid var(--r235-gold)}
html[data-theme] .topbar::after{background:none}
html[data-theme] .topbar :is(.brand-title,.brand-sub){color:#fff}
html[data-theme] .topbar .brand-sub{opacity:.88}
html[data-theme] .topbar .tool-btn:not(.danger):not(.gold){background:#245d8f;color:#fff;border-color:var(--r235-control-line)}
html[data-theme] .topbar .tool-btn:not(.danger):not(.gold):hover{background:#2f75b5;border-color:#fff}
html[data-theme] .sidebar{background:var(--r235-paper);border-color:var(--r235-line)}
html[data-theme] .sidebar :is(.side-label,.sidebar-location,.sidebar-visitor-label){color:var(--r235-muted)}
html[data-theme] .sidebar .nav-item{color:var(--r235-ink);min-width:0;max-width:100%;white-space:normal}
html[data-theme] .sidebar .nav-item > span:not(.nav-symbol){min-width:0;flex:1 1 auto;white-space:normal;overflow-wrap:break-word;word-break:normal}
html[data-theme] .sidebar .nav-item:hover{background:var(--r235-relation);border-color:var(--r235-line)}
html[data-theme] .sidebar .nav-item.active{background:var(--r235-navy);color:#fff;border-color:var(--r235-navy);box-shadow:inset 3px 0 0 var(--r235-gold)}
html[data-theme][dir="rtl"] .sidebar .nav-item.active{box-shadow:inset -3px 0 0 var(--r235-gold)}
html[data-theme] .sidebar .nav-symbol{background:var(--r235-relation);color:var(--r235-relation-ink)}
html[data-theme] .sidebar .nav-item.active .nav-symbol{background:#2f75b5;color:#fff}
html[data-theme] .sidebar :is(.sidebar-collapse-btn,.sidebar-collapse-icon,.sidebar-info-panel,.side-card){background:var(--r235-wash);color:var(--r235-ink);border-color:var(--r235-line)}
html[data-theme] .sidebar .sidebar-collapse-btn:hover{background:var(--r235-relation);border-color:var(--r235-control-line)}
html[data-theme] .sidebar :is(.sidebar-digital-clock,.sidebar-visitor-number){background:var(--r235-navy);color:#fff;border-color:var(--r235-control-line)}
html[data-theme] .sidebar .sidebar-local-date{color:var(--r235-ink)}
html[data-theme] .sidebar .sidebar-info-panel::after{background:var(--r235-gold)}
html[data-theme] .sidebar .sidebar-info-panel::before{background:none}
html[data-theme] #pageRoot .r110-footer{background:linear-gradient(115deg,var(--r235-navy-secondary),var(--r235-navy));color:#fff;border-color:#4b779f;border-top-color:var(--r235-gold)}
html[data-theme] #pageRoot .r110-footer-identity{border-inline-start-color:var(--r235-gold)}
html[data-theme] #pageRoot .r110-footer :is(.r110-footer-link,.r110-footer-identity strong,.r110-footer-university-id b,.r106-home-version,.r106-home-version span,.r106-home-version b){color:#fff}
html[data-theme] #pageRoot .r110-footer :is(.r110-footer-program,.r110-footer-university-id,.r110-footer-rights){color:var(--r235-on-navy-muted)}
html[data-theme] #pageRoot .r110-footer .r110-footer-link{background:#245d8f;border-color:var(--r235-control-line)}
html[data-theme] #pageRoot .r110-footer .r110-footer-link:hover{background:#2f75b5;color:#fff;border-color:var(--r235-gold)}
html[data-theme] #pageRoot .r110-footer-meta{background:var(--r235-navy-secondary);border-color:#4b779f}

/* Every public page, including main CV and My Journey. Title bands use the medium academic blue;
   article bodies remain light. The selector does not enter dashboard/health pages. */
html[data-theme] #pageRoot:not(:has(.system-health-page,.r155-dashboard)) :is(.page-header,.r104-detail-heading,.r86-mixed-header,.r126-full-proposal-head){
  background:var(--r235-navy);color:#fff;border-color:var(--r235-navy);border-top-color:var(--r235-gold);
}
html[data-theme] #pageRoot:not(:has(.system-health-page,.r155-dashboard)) :is(.page-header h2,.r104-detail-heading,.r86-mixed-heading h3,.r126-full-proposal-title,.r126-full-proposal-head h2){color:#fff!important;text-shadow:none}
html[data-theme] #pageRoot:not(:has(.system-health-page,.r155-dashboard)) :is(.page-header .breadcrumbs,.page-header .breadcrumbs a,.page-header .r116-breadcrumb-current,.page-header .r116-breadcrumb-separator,.r126-full-proposal-head p){color:var(--r235-on-navy-muted)}
html[data-theme] #pageRoot:not(:has(.system-health-page,.r155-dashboard)) .page-header::after{background:none}
html[data-theme] #pageRoot:not(:has(.system-health-page,.r155-dashboard)) :is(.section-title,.evidence-head,.r59-awards-head,.r88-home-feature-head,.r84-cohort-head,.r104-index-head,.r123-section-heading,.cvj-section-heading){
  background:var(--r235-navy);color:#fff;border-color:var(--r235-navy);
}
html[data-theme] #pageRoot:not(:has(.system-health-page,.r155-dashboard)) :is(.section-title h3,.evidence-head h3,.r59-awards-head h3,.r88-home-feature-head h2,.r84-cohort-head h3,.r104-index-head h3,.r123-section-heading,.cvj-section-heading h3){color:#fff}
/* Padding only for the existing public reading layout; CV geometry stays intact. */
html[data-theme] #pageRoot[data-r234-public-page]:not(:has(.system-health-page,.r155-dashboard)):not([data-r234-public-page="cv"]) :is(.section-title,.evidence-head,.r59-awards-head,.r88-home-feature-head,.r84-cohort-head,.r104-index-head,.r123-section-heading):not(.cvj-section-heading){padding:10px 13px;border-radius:8px}
html[data-theme] #pageRoot:not(:has(.system-health-page,.r155-dashboard)) .section-title h3::before,
html[data-theme] #pageRoot:not(:has(.system-health-page,.r155-dashboard)) .r123-section-heading::before{background:var(--r235-gold)}
html[data-theme] #pageRoot:not(:has(.system-health-page,.r155-dashboard)) :is(.r59-awards-head p,.r88-home-feature-head p,.r84-cohort-head p,.r104-index-head p,.r104-index-head .r111-index-guidance,.cvj-section-heading .cvj-kicker){color:var(--r235-on-navy-muted)}
html[data-theme] #pageRoot:not(:has(.system-health-page,.r155-dashboard)) .r84-cohort-kicker{color:var(--r235-on-navy-muted)}
html[data-theme] #pageRoot:not(:has(.system-health-page,.r155-dashboard)) .r88-home-feature-kicker{background:#e3eaf3;color:#173f6d;border-color:#bfd2e3}
html[data-theme] #pageRoot:not(:has(.system-health-page,.r155-dashboard)) .evidence-head .muted{color:var(--r235-on-navy-muted)!important}
/* A standalone route is a centered flex box, not an inline box with ineffective auto margins. */
html[data-theme] #pageRoot[data-r234-public-page="research"] .block > a.btn.r234-proposal-route{display:flex;width:fit-content;max-width:100%;margin-inline:auto}
html[data-theme] #pageRoot:not(:has(.system-health-page,.r155-dashboard)) :is(.card,.block,.record-card):not(.academic-hero):not(.formal-profile-card):not(.dark-surface)>h3{
  background:var(--r235-navy);color:#fff;border-color:var(--r235-navy);
}
html[data-theme] #pageRoot[data-r234-public-page]:not(:has(.system-health-page,.r155-dashboard)):not([data-r234-public-page="cv"]) :is(.card,.block,.record-card):not(.academic-hero):not(.formal-profile-card):not(.dark-surface)>h3{padding:10px 13px;border-radius:7px}
html[data-theme] #pageRoot:not(:has(.system-health-page,.r155-dashboard)) .block:not(.r86-research-mixed){border-top-color:var(--r235-navy)}
html[data-theme] #pageRoot:not(:has(.system-health-page,.r155-dashboard)) :is(.r86-science-item>strong,.r123-glance-card>strong,.r177-summary-card h5,.r86-media-label,.r126-proposal-section-summary){background:var(--r235-navy);color:#fff;border-color:var(--r235-navy)}
html[data-theme] #pageRoot:not(:has(.system-health-page,.r155-dashboard)) .r126-proposal-section[open]>.r126-proposal-section-summary{background:var(--r235-navy-secondary);color:#fff;border-color:var(--r235-navy-secondary)}
html[data-theme] #pageRoot:not(:has(.system-health-page,.r155-dashboard)) :is(.r126-proposal-section-number,.r126-proposal-section-icon){background:#2f75b5;color:#fff;border-color:var(--r235-control-line)}
html[data-theme] #pageRoot:not(:has(.system-health-page,.r155-dashboard)) .r126-proposal-section-summary::after{color:#fff}
html[data-theme] #pageRoot:not(:has(.system-health-page,.r155-dashboard)) :is(.clean-table,.r113-index-table) th{background:var(--r235-navy);color:#fff;border-color:#4b779f}

/* Relationship/summary bands remain distinct from the white reading body in
   either language; no text alignment, grid, reader, or image-frame rules. */
html[data-theme] #pageRoot:not(:has(.system-health-page,.r155-dashboard)) :is(.r86-abstract,.r86-science-item>div,.r123-glance-card>span,.cvj-relevance){background:var(--r235-relation);color:var(--r235-relation-ink);border-color:var(--r235-line)}
html[data-theme] #pageRoot:not(:has(.system-health-page,.r155-dashboard)) :is(.r86-abstract h4,.r86-abstract p,.cvj-relevance strong,.cvj-relevance p){color:var(--r235-relation-ink)}
html[data-theme] #pageRoot:not(:has(.system-health-page,.r155-dashboard)) .r86-abstract{border-inline-start-color:var(--r235-navy)}
html[data-theme] #pageRoot:not(:has(.system-health-page,.r155-dashboard)) :is(.r86-mixed-code,.r116-record-kind,.r117-record-kind,.r104-index-count){background:var(--r235-relation);color:var(--r235-relation-ink);border-color:var(--r235-line)}
html[data-theme] #pageRoot:not(:has(.system-health-page,.r155-dashboard)) :is(.r234-section-index,.r234-research-gateway,.r234-page-context){background:var(--r235-wash);border-color:var(--r235-line);color:var(--r235-ink)}
html[data-theme] #pageRoot:not(:has(.system-health-page,.r155-dashboard)) :is(.r234-section-index>h3,.r234-index-group-heading,.r234-context-group>h3,.r234-context-group>h4){color:var(--r235-ink)}
html[data-theme] #pageRoot:not(:has(.system-health-page,.r155-dashboard)) :is(.r234-section-jump,.r234-category-link,.r234-proposal-route,.r234-evidence-link,.r234-award-document){background:var(--r235-paper);color:var(--r235-ink);border-color:var(--r235-line)}
html[data-theme] #pageRoot:not(:has(.system-health-page,.r155-dashboard)) .r234-category-count{background:var(--r235-navy);color:#fff;border-color:var(--r235-navy)}
html[data-theme] #pageRoot:not(:has(.system-health-page,.r155-dashboard)) :is(.r234-section-jump,.r234-category-link,.r234-proposal-route,.r234-evidence-link,.r234-award-document):hover{background:var(--r235-relation);border-color:var(--r235-control-line)}
/* Replace residual decorative R234 teal on local navigation/index groups.
   Exact properties avoid changing hero variables or semantic success colors. */
html[data-theme] #pageRoot:not(:has(.system-health-page,.r155-dashboard)) :is(.r234-section-index,.r234-research-gateway){border-inline-start-color:var(--r235-navy)}
html[data-theme] #pageRoot:not(:has(.system-health-page,.r155-dashboard)) .r234-index-group-heading{background:var(--r235-navy);color:#fff;border-color:var(--r235-navy);border-inline-start-color:var(--r235-gold)}
html[data-theme] #pageRoot:not(:has(.system-health-page,.r155-dashboard)) .r234-index-group-count{background:var(--r235-relation);color:var(--r235-relation-ink);border-color:var(--r235-line)}
html[data-theme] #pageRoot:not(:has(.system-health-page,.r155-dashboard)) .r86-mixed-toggle:hover{border-color:var(--r235-control-line)!important}
/* Owner-selected dark content panels keep readable relationship bands. */
html[data-theme] #pageRoot .dark-surface{
  --r235-ink:#f2f6fa;--r235-paper:#172635;--r235-wash:#1c2d3d;
  --r235-muted:#b3c4d4;--r235-line:#40566b;--r235-relation:#213547;--r235-relation-ink:#e5f0fa;
}
html[data-theme] #pageRoot:not(:has(.system-health-page,.r155-dashboard)) .r104-research-index{border-top-color:var(--r235-navy)}
html[data-theme] #pageRoot:not(:has(.system-health-page,.r155-dashboard)) :is(.record-card>.tag,.record-meta .tag,.r88-home-video-kicker,.r117-proposal-timeline-cell:nth-child(2)){color:var(--r235-ink)}
html[data-theme] #pageRoot:not(:has(.system-health-page,.r155-dashboard)) :is(.r123-proposal-kicker,.r126-full-proposal-kicker){background:var(--r235-gold-wash);color:var(--r235-gold-ink);border-color:var(--r235-gold)}
/* Journey keeps every size, position and paragraph from its approved layout. */
html[data-theme] #pageRoot .cvj-page{--cvj-teal:var(--r235-ink)}
html[data-theme] #pageRoot .cvj-page .cvj-hero{border-top-color:var(--r235-gold)}
html[data-theme] #pageRoot .cvj-page .cvj-origin .cvj-card{border-inline-start-color:var(--r235-gold)}
html[data-theme] #pageRoot .cvj-page .cvj-training .cvj-card{border-top-color:var(--r235-navy)}
html[data-theme] #pageRoot .cvj-page .cvj-section-icon{background:#2f75b5;color:#fff;border-color:var(--r235-control-line)}
html[data-theme] #pageRoot .cvj-page .cvj-full-cv .cvj-evidence-list>button.cvj-evidence{background:var(--r235-navy);color:#fff;border-color:var(--r235-navy)}

/* Existing public actions only. Hero, document readers, images, status and
   destructive buttons retain their dedicated rules. */
html[data-theme] #pageRoot:not(:has(.system-health-page,.r155-dashboard)) :is(.btn.primary,.r111-index-action,.contact-direct-btn,.contact-platform-btn):not(:where(.academic-hero *,.formal-profile-card *,.r31-reader-modal *,.r178-protected-reader *,.r180-document-reader *,.modal *)){
  background:var(--r235-navy);color:#fff;border-color:var(--r235-navy);
}
html[data-theme] #pageRoot:not(:has(.system-health-page,.r155-dashboard)) .btn.light:not(:where(.academic-hero *,.formal-profile-card *,.r31-reader-modal *,.r178-protected-reader *,.r180-document-reader *,.modal *)){
  background:var(--r235-paper);color:var(--r235-ink);border-color:var(--r235-line);
}
html[data-theme] #pageRoot:not(:has(.system-health-page,.r155-dashboard)) .btn.gold:not(:where(.academic-hero *,.formal-profile-card *,.r31-reader-modal *,.r178-protected-reader *,.r180-document-reader *,.modal *)){
  background:var(--r235-gold-wash);color:var(--r235-gold-ink);border-color:var(--r235-gold);
}
html[data-theme] #pageRoot:not(:has(.system-health-page,.r155-dashboard)) :is(.btn,.r111-index-action,.contact-direct-btn,.contact-platform-btn):not(.danger):not(:where(.academic-hero *,.formal-profile-card *,.r31-reader-modal *,.r178-protected-reader *,.r180-document-reader *,.modal *)):hover:not(:disabled){border-color:var(--r235-control-line)}
html[data-theme] .topbar :is(button,a):focus-visible{outline:3px solid #d9bc77;outline-offset:3px}
html[data-theme] .sidebar :is(button,a):focus-visible,
html[data-theme] #pageRoot:not(:has(.system-health-page,.r155-dashboard)) :is(button,a,summary):not(:where(.academic-hero *,.formal-profile-card *,.r31-reader-modal *,.r178-protected-reader *,.r180-document-reader *,.modal *)):focus-visible{outline:3px solid var(--r235-focus);outline-offset:3px}
/* Main CV legacy document collections need explicit dark foregrounds; their
   historical navy title rules do not follow the page text color. */
html[data-theme="dark"] #pageRoot[data-style-scope="page:cv"] :is(.r31-collection-title,.r31-child-name,.academic-evidence .evidence-card-copy h4){color:#f2f6fa}
/* Admin receives the shared primary-action hue only, preserving specialized
   dashboards, health cards, charts and every success/warning/danger token. */
html[data-theme] #adminDrawer{--r130-action:#245d8f;--r130-action-deep:#1b4d7a}
html[data-theme] #adminDrawer .panel-title{border-inline-start-color:var(--r235-gold)}
/* Technical settings remain left-to-right inside the Arabic administration UI. */
html[data-theme] #panel-settings input[type="url"],
html[data-theme] #panel-settings > .dashboard-grid > .dash-card:nth-child(4) > strong{direction:ltr;unicode-bidi:isolate;text-align:start}
html[data-theme] #panel-settings > .dashboard-grid > .dash-card:nth-child(4) > strong{font-size:clamp(15px,1.25vw,18px);line-height:1.5;word-break:normal;overflow-wrap:anywhere}

@media print{
  html[data-theme]{--r235-ink:#173f6d;--r235-paper:#fff;--r235-wash:#fff;--r235-muted:#526579;--r235-line:#bccbd8;--r235-relation:#fff;--r235-relation-ink:#17456b;--r235-gold-wash:#fff;--r235-gold-ink:#725621}
  html[data-theme] body{background:#fff!important}
  html[data-theme] #pageRoot .dark-surface{--r235-ink:#173f6d;--r235-paper:#fff;--r235-wash:#fff;--r235-muted:#526579;--r235-line:#bccbd8;--r235-relation:#fff;--r235-relation-ink:#17456b}
  html[data-theme] #pageRoot:not(:has(.system-health-page,.r155-dashboard)) :is(.page-header,.r104-detail-heading,.r86-mixed-header,.r126-full-proposal-head,.section-title,.evidence-head,.r59-awards-head,.r88-home-feature-head,.r84-cohort-head,.r104-index-head,.r123-section-heading,.cvj-section-heading,.r86-science-item>strong,.r123-glance-card>strong,.r177-summary-card h5,.r86-media-label,.r126-proposal-section-summary,.r126-proposal-section-number,.r126-proposal-section-icon,.clean-table th,.r113-index-table th,.cvj-section-icon){background:#fff!important;color:#173f6d!important;border-color:#bccbd8!important}
  html[data-theme] #pageRoot:not(:has(.system-health-page,.r155-dashboard)) :is(.page-header h2,.page-header .breadcrumbs,.page-header .breadcrumbs a,.page-header .r116-breadcrumb-current,.page-header .r116-breadcrumb-separator,.r86-mixed-heading h3,.r126-full-proposal-title,.r126-full-proposal-head h2,.r126-full-proposal-head p,.section-title h3,.evidence-head h3,.evidence-head .muted,.r59-awards-head h3,.r88-home-feature-head h2,.r84-cohort-head h3,.r104-index-head h3,.cvj-section-heading h3,.cvj-section-heading .cvj-kicker,.r59-awards-head p,.r88-home-feature-head p,.r84-cohort-head p,.r104-index-head p,.r104-index-head .r111-index-guidance,.r88-home-feature-kicker,.r84-cohort-kicker){color:#173f6d!important}
  html[data-theme] #pageRoot:not(:has(.system-health-page,.r155-dashboard)) :is(.card,.block,.record-card):not(.academic-hero):not(.formal-profile-card)>h3{background:#fff!important;color:#173f6d!important;border-color:#bccbd8!important}
  html[data-theme] #pageRoot :is(.r234-index-group-heading,.r234-index-group-count){background:#fff!important;color:#173f6d!important;border-color:#bccbd8!important}
  html[data-theme] #pageRoot[data-style-scope="page:cv"] :is(.r31-collection-title,.r31-child-name,.academic-evidence .evidence-card-copy h4){color:#173f6d!important}
  html[data-theme] #pageRoot .r126-proposal-section-summary::after{color:#173f6d}
  html[data-theme] #pageRoot .r110-footer,html[data-theme] #pageRoot .r110-footer :is(.r110-footer-link,.r110-footer-identity strong,.r110-footer-university-id,.r110-footer-university-id b,.r106-home-version,.r106-home-version span,.r106-home-version b,.r110-footer-program,.r110-footer-rights,.r110-footer-meta){background:#fff!important;color:#173f6d!important;border-color:#bccbd8!important;box-shadow:none!important}
}
