/* Homepage layout v2 (see inc/home2.php). Only loaded on the homepage when the layout is on.
   body:not(#sm_z) lifts every rule above the site stylesheet, which loads later and sets rows to display:block!important. */

/* Coverage: folded into the Members section */
html.sv2.sv-home2 body:not(#sm_z) main .tb_section-coverage{display:none!important}

/* EN News rows: replaced by the merged "Latest from SIPAC" feed */
html.sv2.sv-home2 body:not(#sm_z) main .tb_section-news,html.sv2.sv-home2 body:not(#sm_z) main .themify_builder_content > .tb_3xwh397,html.sv2.sv-home2 body:not(#sm_z) main .themify_builder_content > .tb_hiq9867,html.sv2.sv-home2 body:not(#sm_z) main .sm-h2-hide{display:none!important}

/* Leadership, compact: portrait beside name, title and LinkedIn (centred on the portrait); bio full width below */
html.sv2.sv-home2 body:not(#sm_z) main .tb_section-leadership .module_subrow{display:grid!important;grid-template-columns:104px minmax(0,1fr);grid-template-rows:1fr auto auto auto 1fr auto;column-gap:20px;row-gap:0;align-items:start}
html.sv2.sv-home2 body:not(#sm_z) main .tb_section-leadership .module_subrow > .module_column:first-child{grid-row:1 / 6;grid-column:1;align-self:center}
html.sv2.sv-home2 body:not(#sm_z) main .tb_section-leadership .module_subrow > .module_column:last-child{display:contents!important}
html.sv2.sv-home2 body:not(#sm_z) main .tb_section-leadership .module_subrow > .module_column:last-child > *{grid-column:2}
html.sv2.sv-home2 body:not(#sm_z) main .tb_section-leadership .module_subrow > .module_column:last-child > .module-fancy-heading:first-child{grid-row:2;margin:0!important}
html.sv2.sv-home2 body:not(#sm_z) main .tb_section-leadership .module_subrow > .module_column:last-child > .module-fancy-heading:nth-child(2){grid-row:3;margin:6px 0 0!important}
html.sv2.sv-home2 body:not(#sm_z) main .tb_section-leadership .module_subrow > .module_column:last-child > .sv-li-wrap{grid-row:4}
html.sv2.sv-home2 body:not(#sm_z) main .tb_section-leadership .module_subrow .sv-li{margin:10px 0 0!important}
html.sv2.sv-home2 body:not(#sm_z) main .tb_section-leadership .module_subrow > .module_column:last-child > .module-text,html.sv2.sv-home2 body:not(#sm_z) main .tb_section-leadership .module_subrow > .module_column:last-child > .module-plain-text{grid-row:6;grid-column:1 / -1;margin-top:24px!important}
html.sv2.sv-home2 body:not(#sm_z) main .tb_section-leadership .module_subrow img{aspect-ratio:1/1!important;object-position:center 22%!important;border-radius:4px!important}
html.sv2.sv-home2 body:not(#sm_z) main .tb_section-leadership .module_subrow .image-wrap,html.sv2.sv-home2 body:not(#sm_z) main .tb_section-leadership .module_subrow > .module_column:first-child .module{border-radius:4px!important}

/* Members section: the compact network strip sits under the map */
html.sv2.sv-home2 body:not(#sm_z) main .tb_section-members .sm-home-slot{margin:48px 0 44px}

/* Leadership: the title sits right under the name (the theme's fancy-heading line box and sub-heading padding left a big gap) */
html.sv2.sv-home2 body:not(#sm_z) main .tb_section-leadership .module_subrow .module-fancy-heading h4.fancy-heading{font-size:inherit!important;line-height:1.25!important;margin:0!important;padding:0!important}
html.sv2.sv-home2 body:not(#sm_z) main .tb_section-leadership .module_subrow > .module_column:last-child > .module-fancy-heading:nth-child(2){margin:4px 0 0!important}
html.sv2.sv-home2 body:not(#sm_z) main .tb_section-leadership .module_subrow .module-fancy-heading .sub-head{margin:0!important;padding:0!important}
html.sv2.sv-home2 body:not(#sm_z) main .tb_section-leadership .module_subrow .module-fancy-heading .sub-head:empty,html.sv2.sv-home2 body:not(#sm_z) main .tb_section-leadership .module_subrow .module-fancy-heading .main-head:empty{display:none!important}
/* Chinese homepage 资源服务生态: the four items come from a Themify layout part that is set to hide on tablets and phones,
   and its tablet-only variant carries a photo. Show the same four items at every width (the grid itself is styled for all widths). */
html.sv2 body:not(#sm_z) main .tb_section-ecosystem .module-layout-part,html.sv2 body:not(#sm_z) main .tb_section-ecosystem .module-layout-part [class*="hide-"]{content-visibility:visible!important;visibility:visible!important;width:auto!important;height:auto!important;overflow:visible!important}
html.sv2 body:not(#sm_z) main .tb_section-ecosystem .module-layout-part{display:block!important;margin:48px 0 0!important;padding:32px 0 0!important}
html.sv2 body:not(#sm_z) main .tb_section-ecosystem .module-layout-part .module_row,html.sv2 body:not(#sm_z) main .tb_section-ecosystem .module-layout-part .row_inner{display:contents!important}
html.sv2 body:not(#sm_z) main .tb_section-ecosystem .module-layout-part .module_column:has(.module-text){display:flex!important}
html.sv2 body:not(#sm_z) main .tb_section-ecosystem .module-layout-part .module_column:not(:has(.module-text)),html.sv2 body:not(#sm_z) main .tb_section-ecosystem .module-layout-part .module-image{display:none!important}
@media (max-width:680px){html.sv2 body:not(#sm_z) main .tb_section-ecosystem .module-layout-part{margin-top:32px!important}}
/* the phone-hero photo rule targets "the first row of a homepage layout" and also caught the first row inside this layout part */
html.sv2 body:not(#sm_z) main .tb_section-ecosystem .module-layout-part .row_inner::after{content:none!important;display:none!important}
