/* Shared component geometry for rebuilt pages. Legacy catalogue rules remain
   scoped to their data layout; these rules own the common visual roles. */
html body.ym-native-site.ym-layout-page{
  --ym-section-title-size:26px;--ym-section-icon-size:36px;
  --ym-section-padding:16px 20px;--ym-section-gap:16px;
  --ym-section-min-height:74px;--ym-card-title-size:20px;
}
/* Keep language controls readable when older research styles are present. */
html body.ym-native-site.ym-layout-page header.ym-site-header #ym-header-language a{
  color:#405969!important;border-bottom-color:transparent!important;
}
html body.ym-native-site.ym-layout-page header.ym-site-header #ym-header-language a[aria-current="page"]{
  color:#2663a6!important;border-bottom-color:#2663a6!important;
}
/* One content edge; nested wrappers must not apply the gutter twice. */
html body.ym-native-site.ym-layout-page #content#content .ym-activity-page :is(.ym-activity-menu,.ym-activity-projects-wrap){
  width:100%!important;max-width:none!important;margin-left:0!important;margin-right:0!important;
}
html body.ym-native-site.ym-layout-page #content#content :is(.ym-page,.ymr-main){padding-bottom:0!important}
html body.ym-native-site.ym-layout-page #content#content .bio-page-root .wrap{padding-top:0!important;padding-bottom:0!important}
html body.ym-native-site.ym-layout-page #content#content .bio-page-root .profile{padding-top:0!important}
html body.ym-native-site.ym-layout-page #content#content :is(.ym-aux-wrap,.ym-home-page) > :last-child{margin-bottom:0!important}
/* Section headings: identical frame, icon, divider and type scale. */
html body.ym-native-site.ym-layout-page #content#content :is(.ympub-grouphead,.ympres-grouphead,.section-head,.ym-section-head,.ymr-section-head,.ymnews-embedded-title,.ym-activity-section-title,.ym-aux-section-title,.ym-home-section-heading,.related-head){
  display:flex!important;align-items:center!important;gap:var(--ym-section-gap)!important;
  min-height:var(--ym-section-min-height)!important;padding:var(--ym-section-padding)!important;
  background:rgba(245,246,247,.95)!important;border:1px solid #d9dfe6!important;border-radius:10px!important;
}
html body.ym-native-site.ym-layout-page #content#content :is(.ympub-grouphead,.ympres-grouphead,.ym-home-section-heading,.related-head){justify-content:space-between!important}
html body.ym-native-site.ym-layout-page #content#content :is(.ympub-group-left,.ympres-group-left){display:flex!important;align-items:center!important;gap:var(--ym-section-gap)!important;min-width:0!important}
html body.ym-native-site.ym-layout-page #content#content :is(.ympub-group-title,.ympres-group-title,.section-head h2,.ym-section-title,.ymr-section-head h2,.ymnews-embedded-title,.ym-activity-section-title,.ym-aux-section-title,.ym-home-section-heading h2,.related-title){
  font-family:"Fira Sans",sans-serif!important;font-size:var(--ym-section-title-size)!important;
  font-weight:600!important;line-height:1.25!important;letter-spacing:0!important;
}
html body.ym-native-site.ym-layout-page #content#content :is(.section-head h2,.ymr-section-head h2,.ym-home-section-heading h2,.related-title){margin:0!important}
html body.ym-native-site.ym-layout-page #content#content :is(.ympub-group-icon,.ympres-group-icon,.section-head .icon){
  width:var(--ym-section-icon-size)!important;height:var(--ym-section-icon-size)!important;flex:0 0 var(--ym-section-icon-size)!important;margin:0!important;padding:0!important;
}
html body.ym-native-site.ym-layout-page #content#content :is(.ympub-group-icon svg,.ympres-group-icon svg,.section-head .icon svg,.ymnews-embedded-title>svg,.ym-aux-section-title>svg){
  width:var(--ym-section-icon-size)!important;height:var(--ym-section-icon-size)!important;flex:0 0 var(--ym-section-icon-size)!important;
}
html body.ym-native-site.ym-layout-page #content#content :is(.ympub-group-title,.ympres-group-title,.section-head h2,.ymnews-embedded-title>span,.ym-aux-section-title>span){
  border-left:1px solid #d4dce3!important;padding-left:var(--ym-section-gap)!important;min-width:0!important;
}
html body.ym-native-site.ym-layout-page #content#content :is(.ymr-section-icon,.ym-activity-section-icon,.ym-home-heading-icon,.ym-related-heading-icon){
  display:flex!important;align-items:center!important;justify-content:center!important;
  width:calc(var(--ym-section-icon-size) + var(--ym-section-gap))!important;
  height:38px!important;min-height:38px!important;flex:0 0 calc(var(--ym-section-icon-size) + var(--ym-section-gap))!important;
  padding:0 var(--ym-section-gap) 0 0!important;border-right:1px solid #d4dce3!important;
  background-size:var(--ym-section-icon-size)!important;background-position:left center!important;
}
html body.ym-native-site.ym-layout-page #content#content :is(.ym-activity-section-icon svg,.ym-home-heading-icon svg,.ym-related-heading-icon svg){
  width:var(--ym-section-icon-size)!important;height:var(--ym-section-icon-size)!important;max-width:none!important;
}
html body.ym-native-site.ym-layout-page #content#content .ymr-section-head h2{padding:0!important;min-width:0}
html body.ym-native-site.ym-layout-page #content#content :is(.ym-home-section-heading h2,.related-title){display:flex!important;align-items:center!important;gap:var(--ym-section-gap)!important;min-width:0}
html body.ym-native-site.ym-layout-page #content#content .related-title{color:#800000!important}
html body.ym-native-site.ym-layout-page #content#content .ym-contact-intro .ym-aux-section-title{margin-bottom:24px!important}
html body.ym-native-site.ym-layout-page #content#content .ym-contact-intro{padding-top:24px!important}
/* Activity navigation shares one card treatment, including Scientific activities. */
html body.ym-native-site.ym-layout-page #content#content .ym-converted-heading{color:#800000!important;min-width:0;max-width:100%;box-sizing:border-box}
html body.ym-native-site.ym-layout-page #content#content .ym-converted-heading>span{overflow-wrap:anywhere}
html body.ym-native-site.ym-layout-page #content#content .ym-converted-heading a,
html body.ym-native-site.ym-layout-page #content#content .ym-converted-heading a:hover{color:inherit!important;text-decoration:none!important}
html body.ym-native-site.ym-layout-page #content#content .ym-converted-entry-heading{
  --ym-section-title-size:22px;--ym-section-icon-size:30px;--ym-section-padding:12px 14px;--ym-section-gap:12px;--ym-section-min-height:62px;
  margin:0 0 18px!important;
}
@media(max-width:767px){html body.ym-native-site.ym-layout-page #content#content .ym-converted-entry-heading{--ym-section-title-size:20px;--ym-section-icon-size:28px}}
html body.ym-native-site.ym-layout-page #content#content .ym-science-menu>.ym-science-menu-links{gap:16px!important;margin-bottom:0!important}
html body.ym-native-site.ym-layout-page #content#content .ym-science-menu{margin-bottom:36px!important}
html body.ym-native-site.ym-layout-page #content#content .ym-science-menu-link{
  background:rgba(245,246,247,.95)!important;border:1px solid #d9dfe6!important;
  border-top:3px solid var(--ym-activity-color,#8c6535)!important;border-radius:10px!important;
  box-shadow:0 4px 14px rgba(35,44,55,.04)!important;transition:transform .45s ease,box-shadow .45s ease!important;
}
html body.ym-native-site.ym-layout-page #content#content .ym-science-menu-link>a{padding:22px!important;height:100%!important;color:#2663a6!important;text-decoration:none!important}
html body.ym-native-site.ym-layout-page #content#content .ym-science-card-heading{display:flex!important;align-items:center!important;gap:14px!important;font-size:20px!important}
html body.ym-native-site.ym-layout-page #content#content .ym-science-card-title{
  color:#2663a6!important;text-decoration:none!important;border-left:1px solid #d4dce3!important;padding-left:14px!important;
  min-height:36px!important;display:flex!important;align-items:center!important;line-height:1.3!important;
}
html body.ym-native-site.ym-layout-page #content#content .ym-activity-card-icon,
html body.ym-native-site.ym-layout-page #content#content .ym-activity-card-icon>svg{width:36px!important;height:36px!important;flex:0 0 36px!important}
html body.ym-native-site.ym-layout-page #content#content .ym-science-card-summary{font:400 17px/1.55 "Source Sans 3",sans-serif!important;margin-top:14px!important;color:#505860!important}
/* Statistics and search fields have the same visual weight in every catalogue. */
html body.ym-native-site.ym-layout-page #content#content :is(.ympub-stat,.ympres-stat,.ymnews-stat){padding:8px 0!important;border:0!important;background:transparent!important}
html body.ym-native-site.ym-layout-page #content#content :is(.ympub-stat,.ympres-stat,.ymnews-stat)>strong{font:700 28px/1.2 "Source Sans 3",sans-serif!important;display:block!important}
html body.ym-native-site.ym-layout-page #content#content :is(.ympub-stat,.ympres-stat,.ymnews-stat)>span{font:400 15px/1.4 "Source Sans 3",sans-serif!important;display:block!important;margin-top:6px!important}
html body.ym-native-site.ym-layout-page #content#content .ymnews-stats{border:0!important}
html body.ym-native-site.ym-layout-page #content#content :is(.ympub-tools,.ympres-tools,.ymnews-tools,.ym-blog-filters) :is(input,select){
  min-width:0!important;height:50px!important;border:1px solid #ccd6df!important;border-radius:8px!important;
  background:rgba(255,255,255,.95)!important;padding:0 13px!important;box-shadow:none!important;
  font:400 16.5px/1.5 "Source Sans 3",sans-serif!important;color:#505860!important;
}
html body.ym-native-site.ym-layout-page #content#content :is(.ympub-result,.ympres-result,.ymnews-result,.ym-blog-count){font:400 16px/1.4 "Source Sans 3",sans-serif!important}
/* News details remain an article layout, with the same heading hierarchy. */
html body.ym-native-site.ym-layout-page #content#content #ymnews-single-v2 .title-copy h1{font:600 32px/1.25 "Fira Sans",sans-serif!important}
@media(hover:hover) and (prefers-reduced-motion:no-preference){
  html body.ym-native-site.ym-layout-page #content#content .ym-science-menu-link:hover{transform:scale(1.018)!important;box-shadow:0 9px 24px rgba(40,60,80,.11)!important}
}
@media(max-width:767px){
  html body.ym-native-site.ym-layout-page{--ym-section-title-size:22px;--ym-section-icon-size:32px;--ym-section-padding:14px;--ym-section-gap:12px;--ym-section-min-height:66px}
  html body.ym-native-site.ym-layout-page #content#content .ym-science-menu{margin-bottom:26px!important}
  html body.ym-native-site.ym-layout-page #content#content .ym-science-menu-link>a{padding:16px!important}
  html body.ym-native-site.ym-layout-page #content#content .ym-science-card-heading{font-size:18px!important;gap:10px!important}
  html body.ym-native-site.ym-layout-page #content#content .ym-science-card-title{padding-left:10px!important;min-height:32px!important}
  html body.ym-native-site.ym-layout-page #content#content .ym-science-card-summary{font-size:16px!important;margin-top:12px!important}
  html body.ym-native-site.ym-layout-page #content#content .ym-activity-card-icon,
  html body.ym-native-site.ym-layout-page #content#content .ym-activity-card-icon>svg{width:32px!important;height:32px!important;flex-basis:32px!important}
  html body.ym-native-site.ym-layout-page #content#content :is(.ympub-stat,.ympres-stat,.ymnews-stat)>strong{font-size:24px!important}
  html body.ym-native-site.ym-layout-page #content#content :is(.ympub-stat,.ympres-stat,.ymnews-stat)>span{font-size:13px!important}
  html body.ym-native-site.ym-layout-page #content#content :is(.ympub-tools,.ympres-tools,.ymnews-tools,.ym-blog-filters) :is(input,select){height:46px!important;font-size:15px!important}
  html body.ym-native-site.ym-layout-page #content#content :is(.ympub-result,.ympres-result,.ymnews-result,.ym-blog-count){font-size:15px!important}
  html body.ym-native-site.ym-layout-page #content#content #ymnews-single-v2 .title-copy h1{font-size:26px!important}
  html body.ym-native-site.ym-layout-page #content#content .ym-home-page{width:calc(100% - 30px)!important}
  html body.ym-native-site.ym-layout-page #content#content .ym-aux-wrap{width:calc(100% - 30px)!important}
  html body.ym-native-site.ym-layout-page #content#content .ym-contact-intro{padding-top:0!important}
  html body.ym-native-site.ym-layout-page #content#content :is(.ymr-section-icon,.ym-activity-section-icon,.ym-home-heading-icon,.ym-related-heading-icon){height:32px!important;min-height:32px!important}
}
@media(prefers-reduced-motion:reduce){html body.ym-native-site.ym-layout-page #content#content .ym-science-menu-link{transition:none!important;transform:none!important}}

/* Final cross-page audit: common roles retain one type and control palette.
   Category accents, social logos and cover-derived player colours stay local. */
html body.ym-native-site.ym-layout-page{
  --ym-ui-heading-font:"Fira Sans",sans-serif;
  --ym-ui-text-font:"Source Sans 3",sans-serif;
  --ym-ui-blue:#2663a6;
  --ym-ui-neutral:#505860;
  --ym-ui-control-border:#ccd6df;
}
html body.ym-native-site.ym-layout-page #content#content :is(.ymnews-card-title,.ymnews-card-title a,.ympub-title,.ympres-title){
  font-family:var(--ym-ui-heading-font)!important;
}
/* Inactive filters and the total use the same neutral in all three catalogues. */
html body.ym-native-site.ym-layout-page #content#content :is(.ympub-tab,.ympres-tab,.ymnews-filter)[aria-pressed="false"]{
  color:var(--ym-ui-neutral)!important;background:#fff!important;
  border-top-color:var(--ym-ui-control-border)!important;
  border-right-color:var(--ym-ui-control-border)!important;
  border-bottom-color:var(--ym-ui-control-border)!important;
}
html body.ym-native-site.ym-layout-page #content#content :is(.ympub-tab,.ympres-tab)[data-kind-filter="all"][aria-pressed="true"],
html body.ym-native-site.ym-layout-page #content#content .ymnews-filter[data-news-filter="all"][aria-pressed="true"]{
  color:#fff!important;background:var(--ym-ui-neutral)!important;border-color:var(--ym-ui-neutral)!important;
}
html body.ym-native-site.ym-layout-page #content#content :is(.ympub-stat,.ympres-stat,.ymnews-stat):first-child>strong{
  color:var(--ym-ui-neutral)!important;
}
/* Resource links share the established outlined publication buttons. */
html body.ym-native-site.ym-layout-page #content#content :is(.ympub-link,.ympres-link,.ym-activity-project-link){
  color:var(--ym-ui-blue)!important;border-color:#c8d3df!important;
  border-radius:7px!important;text-decoration:none!important;
}
html body.ym-native-site.ym-layout-page #content#content :is(.ympub-link,.ympres-link,.ym-activity-project-link):hover{
  color:var(--ym-ui-blue)!important;background:#f2f6fa!important;border-color:#91adc8!important;text-decoration:none!important;
}
/* Older catalogue button rules must not restyle the shared hero control. */
html body.ym-native-site.ym-layout-page #content#content :is(.ym-clean-hero,.ym-home-hero) .ym-hero-motion-toggle{
  display:flex!important;align-items:center!important;justify-content:center!important;
  width:28px!important;height:28px!important;min-width:28px!important;min-height:28px!important;
  padding:5px!important;margin:0!important;border:1px solid rgba(255,255,255,.2)!important;
  border-radius:50%!important;background:rgba(37,40,44,.4)!important;color:#e1e6e9!important;
  box-shadow:none!important;line-height:1!important;
}
html body.ym-native-site.ym-layout-page #content#content :is(.ym-clean-hero,.ym-home-hero) .ym-hero-motion-toggle:is(:hover,:focus-visible){
  background:rgba(37,40,44,.7)!important;border-color:rgba(255,255,255,.4)!important;opacity:1!important;
}
html body.ym-native-site.ym-layout-page #content#content .ym-hero-motion-toggle>svg{
  width:17px!important;height:17px!important;flex:0 0 17px!important;fill:none!important;
  stroke:currentColor!important;stroke-width:1.7!important;
}
@media(prefers-reduced-motion:reduce){
  html body.ym-native-site.ym-layout-page #content#content :is(.ym-clean-hero,.ym-home-hero) .ym-hero-motion-toggle{display:none!important}
}
