/* Scoped directory and embedded-dashboard layout corrections. */
.path-events .rc-events-preview-shell,.path-experts .rc-experts-page{box-sizing:border-box;width:100%!important;max-width:1240px!important;margin:24px auto!important;padding:0!important}
.path-events .rc-directory-head,.path-experts .rc-directory-head{padding:16px!important;border-radius:8px!important;margin-bottom:20px!important}
.path-events .rc-directory-head h1,.path-experts .rc-directory-head h1{font-size:24px!important;line-height:1.2!important;margin:0 0 8px!important}
.path-events .rc-directory-filter-bar,.path-experts .rc-directory-filter-bar{display:flex!important;flex-wrap:wrap!important;gap:8px!important;margin:16px 0 24px!important;align-items:center}
.path-events .rc-events-preview-shell .rc-events-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:24px!important;align-items:stretch}
.path-events .rc-events-preview-shell .rc-events-grid>.view-content{display:contents!important}
.path-events .rc-events-grid .views-row{min-width:0;margin:0!important;float:none!important;width:auto!important;grid-column:auto!important}
.path-events .rc-event-card{height:100%;display:flex!important;flex-direction:column;border:1px solid var(--rc-border)!important;border-radius:8px!important;overflow:hidden;box-shadow:none!important;margin:0!important;min-width:0}
.path-events .rc-event-image{height:190px!important;min-height:190px!important;background:#eef1f5!important;position:relative}
.path-events .rc-event-image img{width:100%;height:100%;object-fit:cover}
.path-events .rc-event-content{padding:16px!important;display:flex;flex-direction:column;gap:12px;flex:1;min-width:0}
.path-events .rc-event-title{font-size:21px!important;line-height:1.35!important;margin:0!important}
.path-events .rc-event-date,.path-events .rc-event-location{font-size:14px!important;margin:0!important;color:#465464}
.path-events .rc-event-description{font-size:14px;line-height:1.6;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden;max-height:90px;margin:0!important}
.path-events .rc-event-description strong{display:none}
.path-events .rc-event-footer{margin-top:auto!important;padding-top:16px!important;gap:12px}
.rc-expertise-directory-filters{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px!important;padding:16px!important;border-radius:8px!important;align-items:end}
.rc-expertise-directory-filters label{display:flex!important;flex-direction:column;gap:8px;font-size:13px!important;font-weight:600;min-width:0}
.rc-expertise-directory-filters input,.rc-expertise-directory-filters select{box-sizing:border-box;width:100%!important;min-width:0!important;max-width:100%;height:44px!important;margin:0!important}
.rc-expertise-directory-filters button{min-height:44px;align-self:end}
/* The full dashboard also appears inside a narrow recommendation sidebar. */
.rc-sidebar .rc-research-dashboard,.rc-ad .rc-research-dashboard{padding:0!important;min-width:0;width:100%;max-width:100%}
.rc-sidebar .rc-research-dashboard__grid,.rc-ad .rc-research-dashboard__grid{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:16px!important}
.rc-sidebar .rc-research-dashboard__header,.rc-ad .rc-research-dashboard__header{padding:16px!important;margin:0!important}
.rc-sidebar .rc-research-dashboard h1,.rc-ad .rc-research-dashboard h1{font-size:21px!important;line-height:1.35!important;word-break:normal!important;overflow-wrap:normal!important;margin:0 0 12px!important}
.rc-sidebar .rc-research-dashboard h2,.rc-ad .rc-research-dashboard h2{font-size:16px!important;line-height:1.4!important;word-break:normal!important;overflow-wrap:normal!important}
.rc-sidebar .rc-research-dashboard__section-head,.rc-ad .rc-research-dashboard__section-head{display:flex!important;flex-direction:column;align-items:flex-start!important;gap:8px}
.rc-sidebar .rc-research-dashboard__section,.rc-ad .rc-research-dashboard__section{min-width:0!important;padding:16px!important}
.rc-sidebar .rc-research-dashboard p,.rc-ad .rc-research-dashboard p{font-size:14px!important;line-height:1.6!important;word-break:normal!important;overflow-wrap:break-word!important}
.rc-sidebar .rc-research-dashboard__cards,.rc-ad .rc-research-dashboard__cards{grid-template-columns:minmax(0,1fr)!important}
.rc-content{min-width:0}.rc-sidebar{min-width:0}
.rc-directory-redesign :focus-visible,.rc-expertise-directory-filters :focus-visible{outline:3px solid #075aca;outline-offset:3px}
@media(max-width:900px){.rc-expertise-directory-filters{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.path-events .rc-events-preview-shell,.path-experts .rc-experts-page{padding:0!important}.path-events .rc-events-preview-shell .rc-events-grid,.rc-expertise-directory-filters{grid-template-columns:minmax(0,1fr)!important}.path-events .rc-directory-head{padding:16px!important}.path-events .rc-event-image{height:170px!important;min-height:170px!important}}

/* Shared shell: a single gutter owner; reading columns and drawers stay independent. */
html body:has(.rc-site) { background:var(--rc-bg)!important; }
html body:has(.rc-site) .rc-site { background:var(--rc-bg)!important;color:var(--rc-black);font-size:14px; }
html body .rc-site main.rc-container.rc-layout.ph-page-shell {
 width:100%!important;max-width:var(--ph-page-width)!important;min-width:0!important;
 margin-inline:auto!important;padding-inline:var(--ph-page-padding)!important;box-sizing:border-box;
}
html body .rc-site main.ph-page-shell > .rc-content {min-width:0;max-width:100%;}
html body .rc-site main.ph-page-shell :is(.rc-workspace-page,.rc-directory-redesign,.rc-search-results-page,.rc-researcher-profile-page,.rc-events-preview-shell,.rc-experts-page,.rc-equipment-directory-page,.rc-infra-page,.rc-platform-directory) {
 width:100%!important;max-width:100%!important;padding-inline:0!important;min-width:0;
}
html body .rc-site main.ph-page-shell :is(.layout--pass--content-medium,.layout--pass--content-narrow) {width:100%!important;max-width:100%!important;min-width:0;}
html body .rc-site main.ph-page-shell :is(.rc-directory-head,.rc-directory-page-head,.rc-discovery-header,.rc-create-form-header) {
 padding:16px!important;border-radius:var(--rc-radius)!important;box-shadow:none!important;
}
html body .rc-site main.ph-page-shell h1 {color:var(--rc-black)!important;font-size:24px!important;line-height:1.3!important;word-break:normal!important;overflow-wrap:break-word;}
html body .rc-site main.ph-page-shell :is(.rc-card,.rc-event-card,.rc-equipment-directory-card,.rc-expert-card,.rc-request-card,.rc-discovery-card,.rc-platform-card,.rc-profile-section,.rc-profile-hero,.rc-research-dashboard__section,.rc-research-dashboard__header) {
 border-color:var(--rc-border)!important;border-radius:var(--rc-radius)!important;box-shadow:none!important;background:var(--rc-card);
}
html body .rc-site main.ph-page-shell :is(.rc-event-content,.rc-equipment-directory-body,.rc-card-body,.rc-profile-section) {padding:16px!important;}
html body .rc-site main.ph-page-shell :is(.rc-event-title,.rc-equipment-directory-body h2,.rc-discovery-card h2) {font-size:18px!important;line-height:1.4!important;}
html body .rc-site main.ph-page-shell :is(.rc-card,.rc-request-card,.rc-discovery-card) {padding:16px!important;}
/* Existing form elements keep their validation, IDs, values and AJAX bindings. */
html body .rc-site main.ph-page-shell :is(input.form-text,input.form-search,input.form-email,input.form-url,input.form-date,select.form-select,textarea.form-textarea) {
 border:1px solid var(--rc-border);border-radius:var(--rc-radius);font:inherit;max-width:100%;min-width:0;background:var(--rc-white);color:var(--rc-black);
}
html body .rc-site main.ph-page-shell :is(.form-item__description,.description,.rc-muted) {color:var(--rc-muted);font-size:12px;line-height:1.5;}
html body .rc-site main.ph-page-shell .rc-create-form-shell {max-width:960px!important;width:100%!important;margin-inline:auto!important;}
html body .rc-site main.ph-page-shell .rc-create-form-shell .block-system-main-block {padding:0!important;border:0!important;box-shadow:none!important;background:transparent!important;}
html body .rc-site main.ph-page-shell .rc-create-form-shell .node-form {padding:16px!important;border:1px solid var(--rc-border)!important;border-radius:var(--rc-radius)!important;background:white!important;}
html body .rc-site main.ph-page-shell .node-form label {color:var(--rc-black);}
html body .rc-site main.ph-page-shell .node-form :is(.form-item,fieldset) {margin-block:12px;}
html body .rc-site main.ph-page-shell .node-form .form-actions {display:flex;flex-wrap:wrap;gap:8px;}
html body .rc-site main.ph-page-shell .button--primary {background:#111!important;color:#fff!important;border-color:#111!important;border-radius:var(--rc-radius);}
html body .rc-site main.ph-page-shell .button--primary:disabled {background:#F3F4F6!important;color:#9CA3AF!important;border-color:var(--rc-border)!important;cursor:default;}
/* A single reusable disclosure around the existing filter group. No controls are cloned. */
html body .rc-site main.ph-page-shell .ph-filters {width:100%;min-width:0;margin:16px 0;border:1px solid var(--rc-border);border-radius:var(--rc-radius);background:#fff;box-shadow:none;}
html body .rc-site main.ph-page-shell .ph-filters__head {display:flex;align-items:center;gap:8px;padding:4px 12px;min-width:0;}
html body .rc-site main.ph-page-shell .ph-filters__toggle {display:flex;align-items:center;gap:8px;flex:1;min-width:0;min-height:40px;padding:6px 0;border:0!important;background:transparent!important;color:var(--rc-black)!important;font-family:inherit;font-size:14px;font-weight:600;text-align:left;}
.ph-filters__chevron {margin-left:auto;transition:transform .15s;}
.ph-filters__toggle[aria-expanded="true"] .ph-filters__chevron {transform:rotate(180deg);}
html body .rc-site main.ph-page-shell .ph-filters__clear {flex:none;min-height:36px;padding:6px 8px;background:white!important;color:var(--rc-black)!important;border:1px solid var(--rc-border);border-radius:6px;font-size:12px;}
.ph-filters__count {font-size:12px;color:var(--rc-muted);font-weight:400;}
html body .rc-site main.ph-page-shell .ph-filters__panel {padding:12px;border-top:1px solid var(--rc-border);}
html body .rc-site main.ph-page-shell .ph-filters__panel[hidden] {display:none!important;}
html body .rc-site main.ph-page-shell .ph-filters__panel > :is(form,div) {margin:0!important;border:0!important;box-shadow:none!important;padding:0!important;background:transparent!important;}
html body .rc-site main.ph-page-shell .ph-filters__panel :is(input,select) {max-width:100%;min-width:0;}
html body .rc-site main.ph-page-shell .ph-filters__panel :is(.form-item,label) {min-width:0;}
html body .rc-site main.ph-page-shell .ph-filters__panel .rc-platform-filters {display:flex;flex-wrap:wrap;align-items:end;gap:12px;}
html body .rc-site main.ph-page-shell .ph-filters__panel .rc-platform-filters .form-item {flex:1 1 180px;}
html body .rc-site main.ph-page-shell .ph-filters__panel .rc-platform-filters input:not([type=submit]) {width:100%;}
html body .rc-site main.ph-page-shell .ph-filters-native {width:100%;padding:0!important;border:1px solid var(--rc-border)!important;border-radius:var(--rc-radius)!important;background:white!important;}
html body .rc-site main.ph-page-shell .ph-filters-native > summary {min-height:44px;padding:12px!important;font-size:14px!important;color:var(--rc-black);}
html body .rc-site main.ph-page-shell .ph-filters-native > .details-wrapper {padding:12px!important;border-top:1px solid var(--rc-border);}
html body .rc-site main.ph-page-shell :is(a,button,input,select,textarea,summary):focus-visible {outline:2px solid #374151!important;outline-offset:3px;}
@media(max-width:1024px){:root{--ph-page-padding:16px;}}
@media(max-width:767px){
 :root{--ph-page-padding:12px;}
 html body .rc-site main.rc-container.rc-layout.ph-page-shell {padding-inline:var(--ph-page-padding)!important;}
 html body .rc-site main.ph-page-shell .ph-filters__panel :is(.rc-expertise-directory-filters,.views-exposed-form) {display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:12px!important;}
 html body .rc-site main.ph-page-shell h1 {font-size:22px!important;}
}
@media(prefers-reduced-motion:reduce){.ph-filters__chevron{transition:none;}}
