/* R36 — neutral editorial system. Existing content and image proportions retained. */
body.rv-editorial36{--surface:#343a40;--raised:#30373e;--line:#ffffff26;--ink:#ffffff;--muted:#ffffff;--accent:#ffffff;--project-meta-text:#ffffff;--project-meta-muted:#ffffff;--project-meta-rule:#ffffff26;background:var(--surface)!important;color:var(--ink);font-family:'Lato','Malgun Gothic',sans-serif;font-size:15px;line-height:1.75}
body.rv-editorial36 #wrapper,body.rv-editorial36 #content,body.rv-editorial36 #section-about,body.rv-editorial36 #section-work{background:var(--surface)!important;color:var(--ink)}
body.rv-editorial36 #header,body.rv-editorial36 #header-wrap{background:#343a40f5!important;border-color:var(--line)!important}
body.rv-editorial36 #logo{border-color:var(--line)!important}
body.rv-editorial36 #logo img{filter:brightness(0) invert(1);object-fit:contain}
body.rv-editorial36 #primary-menu ul{border-color:var(--line)!important}
body.rv-editorial36 #primary-menu ul ul{background:#30373e!important;border-top:2px solid var(--accent)!important;box-shadow:0 12px 30px #23362b12}
body.rv-editorial36 #primary-menu a{color:#ffffff!important;font-weight:600;font-size:12px;letter-spacing:1px}
body.rv-editorial36 #primary-menu li.current>a,body.rv-editorial36 #primary-menu a:hover{color:var(--accent)!important}
body.rv-editorial36 #primary-menu-trigger{color:var(--ink)}
body.rv-editorial36 #page-title{background:#2d3339!important;border:0!important;border-bottom:1px solid var(--line)!important;padding:38px 0!important}
body.rv-editorial36 #page-title h1{color:var(--ink)!important;font-size:30px!important;font-weight:600;letter-spacing:-.6px;text-transform:none!important}
body.rv-editorial36 #page-title span,body.rv-editorial36 #page-title .breadcrumb,body.rv-editorial36 #page-title .breadcrumb a{color:var(--muted)!important}
body.rv-editorial36 #content :is(h1,h2,h3,h4,h5,h6){color:var(--ink);font-family:'Lato','Malgun Gothic',sans-serif}
body.rv-editorial36 #content a{color:var(--accent)}
body.rv-editorial36 .heading-block:after{border-color:#ffffff55;width:32px}
body.rv-editorial36 #content .heading-block h2{font-size:28px;letter-spacing:-.5px;font-weight:600;text-transform:none}
body.rv-editorial36 .heading-block span,body.rv-editorial36 .before-heading{color:var(--accent)!important}
body.rv-editorial36 :is(.projects-section-header p,.rv-project-image-note,.project-group-subtitle,.project-verification-note,.completed-project-desc,.detail-caption,.detail-deck,.rs-wrap p,.postcontent>p){color:var(--muted)!important}
body.rv-editorial36 :is(.projects-section-header,.project-open,.rs-footer,.rs-heading,.rs-focus article,.detail-section,.completed-project-item,.team-title,.line){border-color:var(--line)!important}
body.rv-editorial36 :is(.project-status,.project-period,.project-open,.rv-card-number,.rv-card-arrow,.project-detail-r32,.detail-eyebrow,.rs-kicker,.rs-back,.rs-platform,.rs-scope figcaption,.rs-papers li span){color:var(--accent)!important}
body.rv-editorial36 .project-status{background:#3a5870;border-radius:3px;padding:3px 8px;font-size:11px}
body.rv-editorial36 .project-status::before{background:var(--accent)}
body.rv-editorial36 .projects-grid{gap:42px 28px}
body.rv-editorial36 .project-item,body.rv-editorial36 .rs-cover{background:transparent!important;border:0!important;box-shadow:none!important;border-radius:5px}
body.rv-editorial36 .project-entry .project-item-content{background:transparent!important;color:var(--ink);padding:18px 0 0!important}
body.rv-editorial36 .project-entry h3{font-size:19px;line-height:1.65;color:var(--ink)!important}
body.rv-editorial36 .project-entry:hover h3{color:var(--accent)!important}
body.rv-editorial36 .project-open{font-size:12px;min-height:44px}
body.rv-editorial36 :is(.project-card,.project-card-body,.team,.team-desc,.member-profile-dialog,.pro-back,.rs-current,.rs-nav,.rs-papers li,.detail-nav,.flow-panel,.evidence-figure,.paper-links a){background:#30373e!important;color:var(--ink)!important;border-color:var(--line)!important;box-shadow:none!important}
body.rv-editorial36 .team{border-radius:6px;border:1px solid var(--line)}
body.rv-editorial36 :is(.team-content,.team-title h6,.team-title span,.team-content b,.member-profile-dialog p,.member-profile-dialog li){color:var(--muted)!important}
body.rv-editorial36 .team-title h4{font-size:19px}
body.rv-editorial36 .row.common-height>.col-md-5{background-color:#2d3339!important}
body.rv-editorial36 .project-detail,body.rv-editorial36 .rs-wrap{color:var(--ink)}
body.rv-editorial36 .project-flow strong{color:var(--ink)}
body.rv-editorial36 .project-flow li{border-color:#ffffff40}
body.rv-editorial36 :is(.rs-scope a,.rs-publication-figure,.detail-hero img){background:#30373e;border-color:var(--line)}
body.rv-editorial36 :is(.rs-publication-figure figcaption,.evidence-figure figcaption){color:var(--muted)}
body.rv-editorial36 .rs-wrap .rs-cover h2{color:var(--ink)!important;background:transparent!important;border-color:var(--line)!important}
body.rv-editorial36 .postcontent>.card{background:transparent!important;border-color:var(--line)!important}
body.rv-editorial36 .card-header{color:var(--accent)!important;background:transparent!important}
body.rv-editorial36 .card-body{color:var(--ink)!important;background:transparent!important}
body.rv-editorial36 .card-text+.card-text{border-color:var(--line)}
body.rv-editorial36 .card-text em{color:var(--muted)}
body.rv-editorial36 :is(.cv-list li,.cv-list strong,.cv-photo h2){color:var(--ink);border-color:var(--line)}
body.rv-editorial36 .cv-section h3{border-color:var(--accent)}
body.rv-editorial36 #page-menu-wrap{background:#2d3339!important;color:var(--ink);border-color:var(--line)}
body.rv-editorial36 #page-menu a,body.rv-editorial36 #page-menu .menu-title{color:var(--ink)!important}
body.rv-editorial36 #footer,body.rv-editorial36 #copyrights{background:#2d3339!important;color:var(--muted)!important;border-color:var(--line)!important}
body.rv-editorial36 #gotoTop{background:#ffffff;color:#30373e}
body.rv-editorial36 a:focus-visible{outline:2px solid #ffffff;outline-offset:5px}
/* Home research occupies the available width, with complete 3:2 images. */
body.rv-editorial36 #section-about{min-height:calc(100svh - 80px);height:auto!important;display:flex;align-items:center;padding:44px 0!important}
body.rv-editorial36 #section-about .container{width:calc(100% - 80px)!important;max-width:1600px!important;padding:0}
body.rv-editorial36 #section-about .heading-block{margin-bottom:28px!important}
body.rv-editorial36 #section-about .research-grid-row{display:grid!important;grid-template-columns:repeat(6,minmax(0,1fr));gap:24px!important;width:100%;max-width:none!important}
body.rv-editorial36 #section-about .research-grid-col{width:auto!important;min-width:0;float:none;margin:0!important;padding:0!important;grid-column:span 2}
body.rv-editorial36 #section-about .research-grid-col:nth-child(4){grid-column:2/span 2}
body.rv-editorial36 #section-about .research-grid-col:nth-child(5){grid-column:4/span 2}
body.rv-editorial36 #section-about .research-card{display:block;background:#30373e!important;border:1px solid var(--line)!important;border-radius:6px;box-shadow:0 3px 14px #263b2c06!important;transform:none!important;transition:border-color .2s,box-shadow .2s}
body.rv-editorial36 #section-about .research-card::before{display:none}
body.rv-editorial36 #section-about .research-card img{width:100%;height:auto!important;aspect-ratio:3/2!important;object-fit:contain!important;transform:none!important}
body.rv-editorial36 #section-about .research-overlay{position:static!important;padding:18px 20px!important;background:#30373e!important}
body.rv-editorial36 #section-about .research-overlay h3{font-size:20px!important;color:var(--ink)!important;line-height:1.4}
body.rv-editorial36 #section-about .research-overlay h3::after{content:'↗';float:right;color:#ffffff;font-size:18px;font-weight:400}
body.rv-editorial36 #section-about .research-card:hover{border-color:#ffffff66!important;box-shadow:0 8px 22px #263b2c10!important}
body.rv-editorial36 #section-work{height:auto!important;padding:64px 0!important}
body.rv-editorial36 #section-work>.container{width:calc(100% - 80px)!important;max-width:1600px!important}
body.rv-editorial36 #ongoing-slider .project-card{border:1px solid var(--line)!important;border-radius:6px;box-shadow:none}
body.rv-editorial36 #ongoing-slider .project-card-body{padding:20px!important}
body.rv-editorial36 .completed-project-item{background:transparent}
/* Image-led recruitment remains a dark photograph with white copy. */
body.rv-editorial36 #section-testimonials :is(h1,h2,h3,h4,p,a,span){color:#30373e!important}
@media(min-width:992px){body.rv-editorial36 #section-about .container{max-width:min(1600px,calc((100svh - 260px)*2.25))!important;min-width:min(1200px,calc(100% - 80px))}}
@media(max-width:991px){body.rv-editorial36 #section-about .container,body.rv-editorial36 #section-work>.container{width:calc(100% - 40px)!important}body.rv-editorial36 #section-about .research-grid-row{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px!important}body.rv-editorial36 #section-about .research-grid-col,body.rv-editorial36 #section-about .research-grid-col:nth-child(4){grid-column:auto}body.rv-editorial36 #section-about .research-grid-col:nth-child(5){grid-column:1/-1;width:calc((100% - 20px)/2)!important;justify-self:center}}
@media(max-width:600px){body.rv-editorial36 #section-about{min-height:0;padding:36px 0!important}body.rv-editorial36 #section-about .research-grid-row{grid-template-columns:1fr}body.rv-editorial36 #section-about .research-grid-col:nth-child(5){width:100%!important;grid-column:auto}body.rv-editorial36 #section-about .research-overlay{padding:15px 18px!important}body.rv-editorial36 #page-title{padding:28px 0!important}body.rv-editorial36 #page-title h1{font-size:26px!important}body.rv-editorial36 .projects-grid{gap:30px}}
@media(prefers-reduced-motion:reduce){body.rv-editorial36 *{transition:none!important;scroll-behavior:auto!important}}
body.rv-editorial36 #section-about{min-height:calc(100svh - 80px)!important}
body.rv-editorial36 #section-about .research-card img{max-height:none!important;padding:0!important}
body.rv-editorial36 #section-work .project-card-image{max-height:none!important}
body.rv-editorial36 :is(.news-board-header p,.news-table th,.news-table td,.news-table .news-title,.news-empty td){color:var(--muted)!important;border-color:var(--line)!important}
body.rv-editorial36 .news-table th{background:#2d3339}
body.rv-editorial36 .news-search input{background:#30373e;color:var(--ink);border-color:var(--line)}
body.rv-editorial36 .news-search button{background:var(--accent)}
body.rv-editorial36 :is(.rv-research-detail,.rv-research-table,.rv-research-table th){background:#30373e;color:var(--ink);border-color:var(--line)}
body.rv-editorial36 .rv-research-detail summary{color:var(--ink)}
body.rv-editorial36 #section-work .project-group-title span,body.rv-editorial36 .projects-section-header h2 span{color:var(--accent)!important}
@media(max-width:600px){body.rv-editorial36 #section-about{min-height:0!important}}

/* R44: preserve the public layout; one text colour across all pages. */
body.rv-editorial36 {--ink:#fff;--muted:#fff;--accent:#fff;--project-meta-text:#fff;--project-meta-muted:#fff;color:#fff!important}
html body.rv-editorial36 :is(h1,h2,h3,h4,h5,h6,p,a,span,small,strong,b,em,i,li,dt,dd,th,td,label,button,input,textarea,select,summary,figcaption,blockquote,div){color:#fff!important}
html body.rv-editorial36 :is(input,textarea)::placeholder{color:#fff;opacity:1}
html body.rv-editorial36 :is(a,button):focus-visible{outline:2px solid #fff;outline-offset:4px}
html body.rv-editorial36 #content a:hover{text-decoration:underline;text-underline-offset:4px}
html body.rv-editorial36 :is(.news-search button,#gotoTop){background:#365c79!important;color:#fff!important}
html body.rv-editorial36 #primary-menu li.current>a{box-shadow:inset 0 -2px #fff}
html body.rv-editorial36 .project-status{background:#365770}
html body.rv-editorial36 ::selection{color:#fff;background:#376b96}

/* R45: recruitment contrast, secondary project actions, publication index. */
html body.rv-editorial36 #content #section-testimonials.recruit-section,
html body.rv-editorial36 #content #section-testimonials.recruit-section :is(h1,h2,h3,h4,p,a,span,div,strong,small){color:#fff!important;-webkit-text-fill-color:#fff!important}
html body.rv-editorial36 #content :is(.project-detail-r32,.project-open,.project-info>summary),
html body.rv-editorial36 #content :is(.project-detail-r32,.project-open,.project-info>summary) *{color:rgba(255,255,255,.66)!important}
html body.rv-editorial36 #content :is(.project-detail-r32,.project-open,.project-info>summary):is(:hover,:focus-visible){color:#fff!important}
body.rv-editorial36 .publication-layout{display:grid;grid-template-columns:220px minmax(0,1fr);gap:48px;align-items:start}
body.rv-editorial36 .publication-layout>.postcontent{width:100%!important;float:none!important;margin:0!important;min-width:0}
body.rv-editorial36 .publication-toc{position:sticky;top:105px;max-height:calc(100vh - 130px);overflow:auto;border:1px solid var(--line);border-radius:6px;padding:22px 18px;background:#2d3339}
body.rv-editorial36 .publication-toc h2{font-size:15px!important;margin:0 0 22px;line-height:1.5}
body.rv-editorial36 .publication-toc-group+.publication-toc-group{margin-top:22px;padding-top:20px;border-top:1px solid var(--line)}
body.rv-editorial36 .publication-toc-category{display:block;font-size:13px;font-weight:700;line-height:1.5;margin-bottom:10px}
body.rv-editorial36 .publication-toc-years{display:flex;flex-wrap:wrap;gap:4px 8px}
body.rv-editorial36 .publication-toc-years a{display:inline-flex;align-items:center;min-height:32px;padding:3px 6px;font-size:12px;border-radius:3px}
body.rv-editorial36 .publication-toc a:hover{background:#ffffff12}
body.rv-editorial36 .publication-layout :is(h3[id],.card-header[id]){scroll-margin-top:110px}
body.rv-editorial36 .publication-layout :target{outline:1px solid #ffffff55;outline-offset:8px}
@media(max-width:991px){body.rv-editorial36 .publication-layout{grid-template-columns:1fr;gap:30px}body.rv-editorial36 .publication-toc{position:static;max-height:none;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;padding:20px}body.rv-editorial36 .publication-toc h2{grid-column:1/-1;margin:0}body.rv-editorial36 .publication-toc-group+.publication-toc-group{margin:0;padding:0;border:0}}
@media(max-width:480px){body.rv-editorial36 .publication-toc{grid-template-columns:1fr}}

/* R46: wider inner pages, with comfortable mobile margins. */
html body.rv-inner-wide #content .container,
html body.rv-inner-wide #page-title .container,
html body.rv-inner-wide .rs-wrap,
html body.rv-inner-wide .rf-container{width:92%!important;max-width:1680px!important;margin-left:auto!important;margin-right:auto!important}
html body.rv-inner-wide #content .container .container{width:100%!important}
html body.rv-inner-wide #content .postcontent{width:100%!important;max-width:none!important;float:none!important}
html body.rv-inner-wide .publication-layout{grid-template-columns:220px minmax(0,1fr);gap:clamp(30px,3vw,60px)}
html body.rv-inner-wide .publication-toc-category{margin-bottom:0;min-height:32px;display:flex;align-items:center}
@media(max-width:991px){html body.rv-inner-wide .publication-layout{grid-template-columns:1fr}}
@media(max-width:600px){html body.rv-inner-wide #content .container,html body.rv-inner-wide #page-title .container,html body.rv-inner-wide .rs-wrap,html body.rv-inner-wide .rf-container{width:calc(100% - 36px)!important}}
html body.rv-editorial36 #section-testimonials.recruit-section{background-position:right center!important;background-color:#122638}

/* R47: original charcoal background, larger professor profile and publications. */
html body.rv-editorial36 #content .professor-profile{width:92%!important;max-width:1680px!important;margin:36px auto!important;display:grid!important;grid-template-columns:minmax(0,0.9fr) minmax(0,1.6fr);gap:40px;align-items:start}
html body.rv-editorial36 #content .professor-profile>.col-md-5{width:100%!important;max-width:none!important;flex:none!important;height:auto!important;min-height:0!important;aspect-ratio:9/11;padding:0!important;background-size:contain!important;background-position:top center!important}
html body.rv-editorial36 #content .professor-profile>.pro-back{width:100%!important;max-width:none!important;flex:none!important;height:auto!important;padding:clamp(28px,3vw,48px)!important}
html body.rv-editorial36 .publication-layout .card-text{font-size:18px!important;line-height:1.85!important}
html body.rv-editorial36 .publication-layout .card-text :is(a,em,span){font-size:inherit!important}
html body.rv-editorial36 .publication-layout .card-header{font-size:21px!important;line-height:1.6!important}
html body.rv-editorial36 .publication-layout .postcontent>p{font-size:17px!important;line-height:1.8!important}
html body.rv-editorial36 .publication-layout .postcontent>h3{font-size:28px!important}
html body.rv-editorial36 .publication-toc-category{font-size:16px!important;line-height:1.6!important}
html body.rv-editorial36 .publication-toc h2{font-size:17px!important}
@media(max-width:767px){html body.rv-editorial36 #content .professor-profile{grid-template-columns:1fr;gap:24px;width:calc(100% - 36px)!important}html body.rv-editorial36 #content .professor-profile>.col-md-5{max-width:520px!important;justify-self:center}html body.rv-editorial36 .publication-layout .card-text{font-size:16px!important}html body.rv-editorial36 .publication-layout .postcontent>h3{font-size:24px!important}}

/* R48: restrained blue accents confined to the members masthead. */
html body.rv-members-accent #page-title{background:linear-gradient(105deg,#253e54 0%,#293843 48%,#2d3339 100%)!important;border-bottom:1px solid rgba(112,164,218,.32)!important}
html body.rv-members-accent #page-title h1{border-left:3px solid #72ace8;padding-left:18px;line-height:1.25}
html body.rv-members-accent #page-menu-wrap{background:#293744!important;border-top:1px solid rgba(112,164,218,.16);border-bottom:1px solid rgba(112,164,218,.28)!important}
html body.rv-members-accent #page-menu .menu-title span{border-bottom:2px solid #72ace8;padding-bottom:4px}

/* R48: full-width home project grid; four complete images on desktop. */
html body.rv-editorial36 #section-work>.container{width:calc(100% - 80px)!important;max-width:none!important;padding:0!important}
html body.rv-editorial36 #section-work :is(.project-slider,.completed-project-list){width:100%!important;max-width:none!important;margin-inline:0!important}
html body.rv-editorial36 #ongoing-slider{gap:clamp(16px,1.4vw,28px)}
html body.rv-editorial36 #ongoing-slider .project-card-body{padding:clamp(20px,1.5vw,30px)!important}
html body.rv-editorial36 #ongoing-slider .project-card-body h3{font-size:clamp(17px,1.05vw,21px)!important;line-height:1.6!important}
@media(max-width:767px){html body.rv-editorial36 #section-work>.container{width:calc(100% - 36px)!important}html body.rv-editorial36 #ongoing-slider .project-card-body{padding:16px!important}html body.rv-editorial36 #ongoing-slider .project-card-body h3{font-size:16px!important}}
