/* === ALL HOMEPAGES === */

body.pg_index {
   background-color:#FFFFFF;
}

.pg_index .theme-homepage-layout h1,
.pg_index .theme-homepage-layout h2,
.pg_index .theme-homepage-layout h3,
.pg_index .theme-homepage-layout h4,
.pg_index .theme-homepage-layout h5 {
    font-weight: 500;
}

.pg_index .theme-homepage-layout h3 {
    font-size: 1.5rem;
}

.pg_index .theme-homepage-layout a.button {
    color: #1c696a;
    background: #FFFFFF;
    font-size: 1rem;
    margin-left:1rem;
    display: inline-flex;
    align-items: center;
}


.pg_index .theme-homepage-layout a.button:first-of-type {
    margin-left:0;
}

.pg_index .theme-homepage-layout a.button.filled {
    color: #FFFFFF;
    background: #1c696a;
}


/* FORCE VISITED STATE TO CORRECT COLOUR */
.pg_index .theme-homepage-layout a.button:visited {
    color: #1c696a !important;
}

.pg_index .theme-homepage-layout a.button.filled:visited {
    color: #FFFFFF !important;
    background: #1c696a;
}


.pg_index .theme-homepage-layout a.button.circle {
    position: relative;
    padding-right: 3rem;
}

.pg_index .theme-homepage-layout a.button.circle span {
    padding: .75rem;
    position: absolute;
    top: 0;
    right: 0;
    background-color: #00a291;
    border-radius: 1.5rem;
    box-shadow: 0 3px 3px 0 rgba(0, 0, 0, 0.16);
}

.pg_index .theme-homepage-layout .widget-SelectableContentList {
    background-color:#FFFFFF;
    border: solid 1px #027377;
}

.pg_index .theme-homepage-layout .widget-SelectableContentList .widget-dynamic-heading {
    color: #1c696a;
}

.pg_index .theme-homepage-layout .widget-SelectableContentList .widget-dynamic-content.advanced-view .widget-dynamic-entry-wrap .widget-dynamic-entry a:link {
    font-size:1rem;
    line-height:1.5;
    font-weight:500;
    text-decoration: none;
    /* border-bottom:solid 1px #027377;
    padding-bottom:2px; */
}

.pg_index .theme-homepage-layout .widget-SelectableContentList .widget-dynamic-content.advanced-view .widget-dynamic-type-date-wrap .widget-dynamic-journal-article-date {
    text-transform: unset;
    color:#2A2A2A;
}

.pg_index .theme-homepage-layout .widget-ArticleListNewAndPopular .article-authors,
.pg_index .theme-homepage-layout .widget-SelectableContentList .widget-dynamic-journal-authors {
    font-size: .875rem;
    line-height:1.5;
}

.pg_index .theme-homepage-layout .widget-SelfServeContent [class*=icon] {
    margin-left:.75rem;
}

.pg_index .theme-homepage-layout .widget-SelfServeContent .homepage-panel-text {
    padding: 1rem 1.5rem;
}

.pg_index .theme-homepage-layout .widget-SelfServeContent p {
    font-weight:300;
}

/* === JOURNAL SITE HOMEPAGE === */

.pg_index .theme-homepage-layout.journal .hero-row.light-background {
   background-color:#FFFFFF;
}

.pg_index .theme-homepage-layout.journal .hero-row[data-count="1"]>.widget-dynamic-inner-wrap .widget-DynamicWidgetLayout .widget-dynamic-inner-wrap {
    padding: 0 1rem;
}

@media (min-width: 900px) {
    .pg_index .theme-homepage-layout.journal .hero-row[data-count="2"]>.widget-dynamic-inner-wrap .widget-DynamicWidgetLayout:first-of-type {
        width: calc(33% - 2rem);
    }

    .pg_index .theme-homepage-layout.journal .hero-row[data-count="2"]>.widget-dynamic-inner-wrap .widget-DynamicWidgetLayout:last-of-type {
        width: calc(66% - 2rem);
    }
}

.pg_index .theme-homepage-layout.journal .widget-IssueInfo .widget-info-wrap .article-issue-img img {
    max-width: 182px;
}

.pg_index .theme-homepage-layout.journal .widget-IssueInfo .widget-info-wrap .article-issue-info .volume,
.pg_index .theme-homepage-layout.journal .widget-IssueInfo .widget-info-wrap .article-issue-info .issue,
.pg_index .theme-homepage-layout.journal .widget-IssueInfo .widget-info-wrap .article-issue-info .ii-pub-date {
    font-size:1rem;
    font-weight: 300;
}


.pg_index .theme-homepage-layout.journal .widget-ArticleListNewAndPopular .widget-dynamic-entry-wrap .fb-item-title a:link {
    color: #1c696a;
    font-size: 1rem;
    line-height:1.5;
}

.pg_index .theme-homepage-layout.journal .widget-ArticleListNewAndPopular,
.pg_index .theme-homepage-layout.journal .home-row2-2 .widget-SelfServeContent:not([class*=ad]) {
    background-color: #ebf3f3;
    border:0;
}

.pg_index .theme-homepage-layout.journal .widget-ArticleListNewAndPopular>.new-and-popular-combined section {
    border:0;
}

.pg_index .theme-homepage-layout.journal .widget-ArticleListNewAndPopular .articleListNewAndPopularCombinedView li {
    border:0;
}

.pg_index .theme-homepage-layout.journal .widget-ArticleListNewAndPopular .articleListNewAndPopularCombinedView li a.active {
    color:#FFFFFF;
    background-color: #027377;
}

@media (min-width: 899px) {
    .pg_index .theme-homepage-layout.journal .home-row2-1.home-columns .widget-dynamic-inner-wrap div:nth-child(3) {
        grid-column: span 2;
    }
}

/* === ALL GATEWAY HOMEPAGES === */
.pg_index .theme-homepage-layout.gateway .hero-row {
    background-color: #ebf3f3;
    max-width: 1300px;
    margin: 1.5rem auto;
}

.pg_index .theme-homepage-layout.gateway [class*=home-hero-feature].widget-SelfServeContent {
    margin:unset;
}

.pg_index .theme-homepage-layout.gateway .homepage-hero-wrap {
    max-width:1000px;
}

.pg_index .theme-homepage-layout.gateway .homepage-hero-wrap p {
    margin:1rem 0;
}

.pg_index .theme-homepage-layout.gateway [class*=home-hero-search-bar].widget-SelfServeContent {
    width:100%;
}

.pg_index .theme-homepage-layout.gateway .hero-search-container {
    text-align:right;
}

@media (min-width: 600px) {
    .pg_index .theme-homepage-layout.gateway .hero-search-container {
        display:flex;
        justify-content: space-between;
        margin:1rem;

    }
}

.pg_index .theme-homepage-layout.gateway .hero-search-container .navbar-search {
    max-width:600px;
    margin:auto;
    margin-bottom:1rem;
}

.pg_index .theme-homepage-layout.gateway .hero-search-container .navbar-search select.navbar-search-filter,
.pg_index .theme-homepage-layout.gateway .hero-search-container .navbar-search .navbar-search-submit_wrap,
.pg_index .theme-homepage-layout.gateway .hero-search-container .navbar-search .navbar-search-submit {
    background-color: #FFFFFF;
    margin-left:unset;
}


.pg_index .theme-homepage-layout.gateway .hero-search-container .home-btn-wrap {
    width:100%;
}

.pg_index .theme-homepage-layout.gateway .home-columns .widget-SelfServeContent {
    background-color:#FFFFFF;
    border:0;
}

.pg_index .theme-homepage-layout.gateway .home-row2 .widget-SelfServeContent {
    box-shadow: 0 0 2rem rgba(0, 0, 0, 0.1), 1.25em 1.25em 0 -0.5em #e1eded;
}

.pg_index .theme-homepage-layout.gateway .widget-SelfServeContent .homepage-panel-header {
    padding: 2rem 1.5rem;
    background-color: #00A18C;
}

/* Lower homepage row - remove standard header block */
.pg_index .theme-homepage-layout.gateway
.home-row3
.widget-SelfServeContent
.homepage-panel-header {
    background-color: transparent;
    background-image: none;
    padding: 0;
}

.pg_index .theme-homepage-layout.gateway .widget-SelfServeContent .homepage-panel-header.light-background {
    padding-bottom: 0;
}

.pg_index .theme-homepage-layout.gateway .widget-SelfServeContent .homepage-panel-header:not(.light-background) h3,
.pg_index .theme-homepage-layout.gateway .widget-SelfServeContent .homepage-panel-header:not(.light-background) h3 a {
    color: #000000;
}

/* === UMBRELLA GATEWAY HOMEPAGE === */

body[data-sitename="emeraldpublishing"].pg_index .theme-homepage-layout.gateway .hero-row {
   background-color: #0E4751;
   min-height: 360px;
   max-width:unset;
   margin:unset;
}

body[data-sitename="emeraldpublishing"].pg_index .theme-homepage-layout.gateway [class*=home-hero-feature].widget-SelfServeContent {
    margin:auto;
    padding:0;
}

body[data-sitename="emeraldpublishing"].pg_index .theme-homepage-layout.gateway .homepage-hero-wrap {
    max-width: 640px;
    margin-top: 2rem;
}

body[data-sitename="emeraldpublishing"].pg_index .theme-homepage-layout.gateway .hero-search-container {
    max-width:640px;
    margin:1rem auto;
    text-align:left;
}

body[data-sitename="emeraldpublishing"].pg_index .theme-homepage-layout.gateway .hero-search-container .navbar-search {
    max-width:unset;
    margin:unset;
}

body[data-sitename="emeraldpublishing"].pg_index .theme-homepage-layout.gateway .widget-SelfServeContent.widget-instance-_home-self-serve-content-feature-1 .homepage-panel-header {
    background-color: #00A18C;
}

body[data-sitename="emeraldpublishing"].pg_index .theme-homepage-layout.gateway .widget-SelfServeContent.widget-instance-_home-self-serve-content-feature-2 .homepage-panel-header {
    background-color: #EB5E62;
}

body[data-sitename="emeraldpublishing"].pg_index .theme-homepage-layout.gateway .widget-SelfServeContent.widget-instance-_home-self-serve-content-feature-3 .homepage-panel-header {
    background-color: #DCDD2C;
}

body[data-sitename="emeraldpublishing"].pg_index .theme-homepage-layout.gateway .widget-SelfServeContent.widget-instance-_home-self-serve-content-feature-4 .homepage-panel-header {
    background-color: #8B87F7;
}

body[data-sitename="emeraldpublishing"].pg_index .theme-homepage-layout.gateway .widget-SelfServeContent .homepage-panel-header h3 {
    color: #2A2A2A;
}

/* === CASE STUDIES HEADERS & FOOTERS === */

body[data-sitename="casestudies"] .journal-header,
body[data-sitename="casestudies"] .widget-SitePageFooter .journal-footer.journal-bg,
body[data-sitename="thecasejournal"] .journal-header,
body[data-sitename="thecasejournal"] .widget-SitePageFooter .journal-footer.journal-bg,
body[data-sitename="councilofsupplychainmanagementprofessionals"] .journal-header,
body[data-sitename="councilofsupplychainmanagementprofessionals"] .widget-SitePageFooter .journal-footer.journal-bg,
body[data-sitename="dardenbusinesspublishingcases"] .journal-header,
body[data-sitename="dardenbusinesspublishingcases"] .widget-SitePageFooter .journal-footer.journal-bg,
body[data-sitename="managementschoolfudanuniversity"] .journal-header,
body[data-sitename="managementschoolfudanuniversity"] .widget-SitePageFooter .journal-footer.journal-bg,
body[data-sitename="indianinstituteofmanagementahmedabad"] .journal-header,
body[data-sitename="indianinstituteofmanagementahmedabad"] .widget-SitePageFooter .journal-footer.journal-bg,
body[data-sitename="kelloggschoolofmanagement"] .journal-header,
body[data-sitename="kelloggschoolofmanagement"] .widget-SitePageFooter .journal-footer.journal-bg,
body[data-sitename="thecasewritingcentreuniversityofcapetowngraduateschoolofbusiness"] .journal-header,
body[data-sitename="thecasewritingcentreuniversityofcapetowngraduateschoolofbusiness"] .widget-SitePageFooter .journal-footer.journal-bg,
body[data-sitename="emeraldemergingmarketscasestudies"] .journal-header,
body[data-sitename="emeraldemergingmarketscasestudies"] .widget-SitePageFooter .journal-footer.journal-bg,
body[data-sitename="thecaseforwomen"] .journal-header,
body[data-sitename="thecaseforwomen"] .widget-SitePageFooter .journal-footer.journal-bg,
body[data-sitename="teachingnotes"] .journal-header,
body[data-sitename="teachingnotes"] .widget-SitePageFooter .journal-footer.journal-bg {
    background: unset;
    background-color: #dcdd2c;
}

body[data-sitename="casestudies"] .journal-header .journal-header_content .journal-logo_wrap a.journal-logo-link,
body[data-sitename="thecasejournal"] .journal-header .journal-header_content .journal-logo_wrap a.journal-logo-link,
body[data-sitename="councilofsupplychainmanagementprofessionals"] .journal-header .journal-header_content .journal-logo_wrap a.journal-logo-link,
body[data-sitename="dardenbusinesspublishingcases"] .journal-header .journal-header_content .journal-logo_wrap a.journal-logo-link,
body[data-sitename="managementschoolfudanuniversity"] .journal-header .journal-header_content .journal-logo_wrap a.journal-logo-link,
body[data-sitename="indianinstituteofmanagementahmedabad"] .journal-header .journal-header_content .journal-logo_wrap a.journal-logo-link,
body[data-sitename="kelloggschoolofmanagement"] .journal-header .journal-header_content .journal-logo_wrap a.journal-logo-link,
body[data-sitename="thecasewritingcentreuniversityofcapetowngraduateschoolofbusiness"] .journal-header .journal-header_content .journal-logo_wrap a.journal-logo-link,
body[data-sitename="emeraldemergingmarketscasestudies"] .journal-header .journal-header_content .journal-logo_wrap a.journal-logo-link,
body[data-sitename="thecaseforwomen"] .journal-header .journal-header_content .journal-logo_wrap a.journal-logo-link,
body[data-sitename="teachingnotes"] .journal-header .journal-header_content .journal-logo_wrap a.journal-logo-link {
    color: #000000;
    font-size: 2rem;
}

body[data-sitename="casestudies"] .journal-header .journal-header_content .journal-logo_wrap a.journal-logo-link:hover,
body[data-sitename="thecasejournal"] .journal-header .journal-header_content .journal-logo_wrap a.journal-logo-link:hover,
body[data-sitename="councilofsupplychainmanagementprofessionals"] .journal-header .journal-header_content .journal-logo_wrap a.journal-logo-link:hover,
body[data-sitename="dardenbusinesspublishingcases"] .journal-header .journal-header_content .journal-logo_wrap a.journal-logo-link:hover,
body[data-sitename="managementschoolfudanuniversity"] .journal-header .journal-header_content .journal-logo_wrap a.journal-logo-link:hover,
body[data-sitename="indianinstituteofmanagementahmedabad"] .journal-header .journal-header_content .journal-logo_wrap a.journal-logo-link:hover,
body[data-sitename="kelloggschoolofmanagement"] .journal-header .journal-header_content .journal-logo_wrap a.journal-logo-link:hover,
body[data-sitename="thecasewritingcentreuniversityofcapetowngraduateschoolofbusiness"] .journal-header .journal-header_content .journal-logo_wrap a.journal-logo-link:hover,
body[data-sitename="emeraldemergingmarketscasestudies"] .journal-header .journal-header_content .journal-logo_wrap a.journal-logo-link:hover,
body[data-sitename="thecaseforwomen"] .journal-header .journal-header_content .journal-logo_wrap a.journal-logo-link:hover,
body[data-sitename="teachingnotes"] .journal-header .journal-header_content .journal-logo_wrap a.journal-logo-link:hover {
    text-decoration: none;
}

body[data-sitename="casestudies"] .journal-header .site-menu .nav-link,
body[data-sitename="thecasejournal"] .journal-header .site-menu .nav-link,
body[data-sitename="councilofsupplychainmanagementprofessionals"] .journal-header .site-menu .nav-link,
body[data-sitename="dardenbusinesspublishingcases"] .journal-header .site-menu .nav-link,
body[data-sitename="managementschoolfudanuniversity"] .journal-header .site-menu .nav-link,
body[data-sitename="indianinstituteofmanagementahmedabad"] .journal-header .site-menu .nav-link,
body[data-sitename="kelloggschoolofmanagement"] .journal-header .site-menu .nav-link,
body[data-sitename="thecasewritingcentreuniversityofcapetowngraduateschoolofbusiness"] .journal-header .site-menu .nav-link,
body[data-sitename="emeraldemergingmarketscasestudies"] .journal-header .site-menu .nav-link,
body[data-sitename="thecaseforwomen"] .journal-header .site-menu .nav-link,
body[data-sitename="teachingnotes"] .journal-header .site-menu .nav-link {
    color: #000000;
}

@media (max-width: 899px) {
    body[data-sitename="casestudies"] .journal-header .journal-header_content .navbar-menu_wrap .mobile-site-menu-toggle,
    body[data-sitename="thecasejournal"] .journal-header .journal-header_content .navbar-menu_wrap .mobile-site-menu-toggle,
    body[data-sitename="councilofsupplychainmanagementprofessionals"] .journal-header .journal-header_content .navbar-menu_wrap .mobile-site-menu-toggle,
    body[data-sitename="dardenbusinesspublishingcases"] .journal-header .journal-header_content .navbar-menu_wrap .mobile-site-menu-toggle,
    body[data-sitename="managementschoolfudanuniversity"] .journal-header .journal-header_content .navbar-menu_wrap .mobile-site-menu-toggle,
    body[data-sitename="indianinstituteofmanagementahmedabad"] .journal-header .journal-header_content .navbar-menu_wrap .mobile-site-menu-toggle,
    body[data-sitename="kelloggschoolofmanagement"] .journal-header .journal-header_content .navbar-menu_wrap .mobile-site-menu-toggle,
    body[data-sitename="thecasewritingcentreuniversityofcapetowngraduateschoolofbusiness"] .journal-header .journal-header_content .navbar-menu_wrap .mobile-site-menu-toggle,
    body[data-sitename="emeraldemergingmarketscasestudies"] .journal-header .journal-header_content .navbar-menu_wrap .mobile-site-menu-toggle,
    body[data-sitename="thecaseforwomen"] .journal-header .journal-header_content .navbar-menu_wrap .mobile-site-menu-toggle,
    body[data-sitename="teachingnotes"] .journal-header .journal-header_content .navbar-menu_wrap .mobile-site-menu-toggle {
        color: #000000;
    }
}

body[data-sitename="casestudies"] .widget-SitePageFooter .journal-footer .journal-footer_content .journal-footer-affiliations a img,
body[data-sitename="thecasejournal"] .widget-SitePageFooter .journal-footer .journal-footer_content .journal-footer-affiliations a img,
body[data-sitename="councilofsupplychainmanagementprofessionals"] .widget-SitePageFooter .journal-footer .journal-footer_content .journal-footer-affiliations a img,
body[data-sitename="dardenbusinesspublishingcases"] .widget-SitePageFooter .journal-footer .journal-footer_content .journal-footer-affiliations a img,
body[data-sitename="managementschoolfudanuniversity"] .widget-SitePageFooter .journal-footer .journal-footer_content .journal-footer-affiliations a img,
body[data-sitename="indianinstituteofmanagementahmedabad"] .widget-SitePageFooter .journal-footer .journal-footer_content .journal-footer-affiliations a img,
body[data-sitename="kelloggschoolofmanagement"] .widget-SitePageFooter .journal-footer .journal-footer_content .journal-footer-affiliations a img,
body[data-sitename="thecasewritingcentreuniversityofcapetowngraduateschoolofbusiness"] .widget-SitePageFooter .journal-footer .journal-footer_content .journal-footer-affiliations a img,
body[data-sitename="emeraldemergingmarketscasestudies"] .widget-SitePageFooter .journal-footer .journal-footer_content .journal-footer-affiliations a img,
body[data-sitename="thecaseforwomen"] .widget-SitePageFooter .journal-footer .journal-footer_content .journal-footer-affiliations a img,
body[data-sitename="teachingnotes"] .widget-SitePageFooter .journal-footer .journal-footer_content .journal-footer-affiliations a img {
    max-height: 2rem;
}

/* === ALL FOOTERS === */

.widget-SitePageFooter .journal-footer .journal-footer_content .journal-footer-menu a {
    color: #000000;
}

.widget-SitePageFooter .journal-footer .journal-footer-colophon * {
    color: #000000;
}

/* =========================================================
   HOME PAGE - LOWER FEATURE ROW
   Applies to features 5-8 inside .home-row3
   ========================================================= */

/* Four-column layout */
.home-row3 .widget-dynamic-inner-wrap {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 32px;
    align-items: stretch;
}

/* Lower row cards */
.home-row3 .widget-SelfServeContent {
    background: #fff;
    border: 1px solid #e1e1e1;
    box-shadow: 4px 5px 3px 3px rgb(0 0 0 / 14%);
    padding: 16px;
    box-sizing: border-box;
}

/* Remove existing panel styling */
.home-row3 .homepage-panel-wrap {
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
    margin: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Main text area - override the default SelfServeContent padding */
.pg_index .theme-homepage-layout.gateway
.home-row3
.widget-SelfServeContent
.homepage-panel-text {
    background: transparent;
    padding: 0 !important;
    margin: 0;
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* Body copy */
.home-row3 .homepage-panel-text p {
    margin: 0 0 12px;
    padding: 0;
    font-size: 14px;
    line-height: 1.35;
}

/* Push final link to bottom */
.home-row3 .homepage-panel-text p:last-child {
    margin-top: auto;
    margin-bottom: 0;
}

/* =========================================================
   LOWER ROW HEADER RESET
   Overrides standard Gateway homepage header styling
   ========================================================= */

/* Force removal of the existing coloured header block */
.pg_index .theme-homepage-layout.gateway
.home-row3
.widget-SelfServeContent
.homepage-panel-header {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    color: inherit !important;
    padding: 0 !important;
    margin: 0 0 10px !important;
    min-height: 0 !important;
    height: auto !important;
    border: 0 !important;
    box-shadow: none !important;
}

/* Remove any decorative pseudo-elements */
.pg_index .theme-homepage-layout.gateway
.home-row3
.widget-SelfServeContent
.homepage-panel-header::before,
.pg_index .theme-homepage-layout.gateway
.home-row3
.widget-SelfServeContent
.homepage-panel-header::after {
    content: none !important;
    display: none !important;
}

/* Reset the heading itself */
.pg_index .theme-homepage-layout.gateway
.home-row3
.widget-SelfServeContent
.homepage-panel-header h3 {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    color: #111 !important;
    margin: 0 !important;
    padding: 0 0 8px !important;
    font-size: 16px;
    line-height: 1.25;
    font-weight: 600;
    border: 0 !important;
    border-bottom-width: 7px !important;
    border-bottom-style: solid !important;
    border-bottom-color: #14555d;
}

/* =========================================================
   ACCENT COLOURS - LOWER ROW
   ========================================================= */

/* Feature 5 - Open Access */
body[data-sitename="emeraldpublishing"].pg_index
.theme-homepage-layout.gateway
.home-row3
.widget-SelfServeContent.widget-instance-_home-self-serve-content-feature-5
.homepage-panel-header h3 {
    border-bottom-color: #ff5d12 !important;
}

/* Feature 6 - Research Services */
body[data-sitename="emeraldpublishing"].pg_index
.theme-homepage-layout.gateway
.home-row3
.widget-SelfServeContent.widget-instance-_home-self-serve-content-feature-6
.homepage-panel-header h3 {
    border-bottom-color: #0e4751 !important;
}

/* Feature 7 - Emerald Publishing Services */
body[data-sitename="emeraldpublishing"].pg_index
.theme-homepage-layout.gateway
.home-row3
.widget-SelfServeContent.widget-instance-_home-self-serve-content-feature-7
.homepage-panel-header h3 {
    border-bottom-color: #00a1d2 !important;
}

/* Feature 8 - Publish with us */
body[data-sitename="emeraldpublishing"].pg_index
.theme-homepage-layout.gateway
.home-row3
.widget-SelfServeContent.widget-instance-_home-self-serve-content-feature-8
.homepage-panel-header h3 {
    border-bottom-color: #0e4751 !important;
}


/* =========================================================
   LOWER ROW - LAYOUT BY NUMBER OF CARDS
   Keeps cards at the same four-column width on desktop
   ========================================================= */

@media (min-width: 901px) {
    .home-row3[data-count="1"] .widget-dynamic-inner-wrap,
    .home-row3[data-count="2"] .widget-dynamic-inner-wrap,
    .home-row3[data-count="3"] .widget-dynamic-inner-wrap,
    .home-row3[data-count="4"] .widget-dynamic-inner-wrap {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 32px;
        align-items: stretch;
    }

    /* One card - first column */
    .home-row3[data-count="1"] .widget-SelfServeContent {
        grid-column: 1;
    }

    /* Two cards - first two columns */
    .home-row3[data-count="2"] .widget-SelfServeContent:nth-child(1) {
        grid-column: 1;
    }

    .home-row3[data-count="2"] .widget-SelfServeContent:nth-child(2) {
        grid-column: 2;
    }

    /* Three cards - first three columns */
    .home-row3[data-count="3"] .widget-SelfServeContent:nth-child(1) {
        grid-column: 1;
    }

    .home-row3[data-count="3"] .widget-SelfServeContent:nth-child(2) {
        grid-column: 2;
    }

    .home-row3[data-count="3"] .widget-SelfServeContent:nth-child(3) {
        grid-column: 3;
    }
}


/* =========================================================
   RESPONSIVE LAYOUT
   ========================================================= */

@media (max-width: 900px) {
    .home-row3 .widget-dynamic-inner-wrap {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .home-row3 .widget-dynamic-inner-wrap {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   ACCESSIBILITY PAGE
   ========================================================= */

.accessibility-page {
    --accessibility-max-width: 1760px;
    --accessibility-gutter: 64px;
    --accessibility-nav-width: 260px;

    width: 100%;
    color: #1f1f1f;
}


/* =========================================================
   SILVERCHAIR PAGE OVERRIDES
   ========================================================= */

.accessibility-page,
.accessibility-page * {
    box-sizing: border-box;
}

.accessibility-page img {
    max-width: 100%;
    height: auto;
}


/* =========================================================
   TITLE BAR
   ========================================================= */

.accessibility-titlebar {
    width: 100%;
    background: #edf5f5;
}

.accessibility-titlebar__inner {
    width: min(
        calc(100% - (var(--accessibility-gutter) * 2)),
        var(--accessibility-max-width)
    );

    margin: 0 auto;
    padding: 14px 0;
}

.accessibility-titlebar h1 {
    margin: 0;

    font-size: clamp(1.7rem, 2vw, 2.2rem);
    line-height: 1.2;

    font-weight: 400;
    color: #1f1f1f;
}


/* =========================================================
   MAIN PAGE LAYOUT
   ========================================================= */

.accessibility-layout {
    width: min(
        calc(100% - (var(--accessibility-gutter) * 2)),
        var(--accessibility-max-width)
    );

    margin: 0 auto;

    display: grid;

    grid-template-columns:
        var(--accessibility-nav-width)
        minmax(0, 1fr);

    column-gap: 54px;

    align-items: start;

    padding: 28px 0 80px;
}


/* =========================================================
   LEFT HAND NAVIGATION
   ========================================================= */

.accessibility-nav {
    position: sticky;
    top: 24px;

    align-self: start;

    width: 100%;
}

.accessibility-nav nav {
    width: 100%;
}

.accessibility-nav ul {
    list-style: none;

    margin: 0;
    padding: 0;
}

.accessibility-nav li {
    margin: 0 0 15px;
    padding: 0;
}

.accessibility-nav li:last-child {
    margin-bottom: 0;
}

.accessibility-nav a {
    display: block;

    color: #175866;

    font-size: 0.93rem;
    line-height: 1.3;

    font-weight: 400;

    text-decoration: none;

    transition:
        color 0.2s ease,
        text-decoration-color 0.2s ease;
}

.accessibility-nav a:hover,
.accessibility-nav a:focus-visible {
    color: #0e4751;
    text-decoration: underline;
    text-underline-offset: 2px;
}


/* =========================================================
   MAIN CONTENT
   ========================================================= */

.accessibility-content {
    width: 100%;
    max-width: 1120px;
    min-width: 0;
}

.accessibility-content section {
    scroll-margin-top: 30px;
}

.accessibility-content h2 {
    margin: 0 0 18px;

    font-size: clamp(1.65rem, 2vw, 2rem);
    line-height: 1.2;

    font-weight: 400;
    color: #1f1f1f;
}

.accessibility-content h3 {
    margin: 26px 0 10px;

    font-size: 1.12rem;
    line-height: 1.35;

    font-weight: 600;
    color: #1f1f1f;
}

.accessibility-content h4 {
    margin: 22px 0 8px;

    font-size: 1rem;
    line-height: 1.4;

    font-weight: 600;
}

.accessibility-content p {
    margin: 0 0 20px;

    font-size: 1rem;
    line-height: 1.65;

    color: #333333;
}

.accessibility-content ul,
.accessibility-content ol {
    margin: 0 0 24px 22px;
    padding: 0;
}

.accessibility-content li {
    margin: 0 0 7px;

    font-size: 1rem;
    line-height: 1.55;

    color: #333333;
}

.accessibility-content li:last-child {
    margin-bottom: 0;
}

.accessibility-content a {
    color: #175866;

    text-decoration: underline;
    text-underline-offset: 2px;
}

.accessibility-content a:hover,
.accessibility-content a:focus-visible {
    color: #0e4751;
}

.accessibility-content strong {
    font-weight: 600;
}


/* =========================================================
   STANDARD SECTIONS
   ========================================================= */

.accessibility-section {
    margin: 0 0 64px;
}

.accessibility-section:last-child {
    margin-bottom: 0;
}

.accessibility-section > h2 {
    margin-bottom: 22px;
}

.accessibility-subsection {
    margin-top: 36px;
}

.accessibility-subsection h3 {
    margin: 0 0 14px;

    font-size: 1.25rem;
}


/* =========================================================
   WCAG ROADMAP TABLE
   ========================================================= */

.accessibility-table-wrap {
    width: 100%;

    margin: 30px 0 38px;

    overflow-x: auto;

    -webkit-overflow-scrolling: touch;
}

.accessibility-table {
    width: 100%;

    border-collapse: collapse;
    table-layout: fixed;

    border: 1px solid #ccd7d8;

    background: #ffffff;

    font-size: 0.95rem;
    line-height: 1.55;
}


/* COLUMN WIDTHS */

.accessibility-table th:nth-child(1),
.accessibility-table td:nth-child(1) {
    width: 23%;
}

.accessibility-table th:nth-child(2),
.accessibility-table td:nth-child(2) {
    width: 59%;
}

.accessibility-table th:nth-child(3),
.accessibility-table td:nth-child(3) {
    width: 18%;
}


/* HEADER */

.accessibility-table thead {
    background: #0e4751;
    color: #ffffff;
}

.accessibility-table th {
    padding: 18px 20px;

    text-align: left;
    vertical-align: top;

    font-weight: 500;
    line-height: 1.3;

    color: #ffffff;

    border: 0;
}


/* BODY */

.accessibility-table td {
    padding: 22px 20px;

    vertical-align: top;

    border-bottom: 1px solid #ccd7d8;

    color: #333333;
}

.accessibility-table tbody tr:nth-child(even) {
    background: #edf5f5;
}

.accessibility-table tbody tr:nth-child(odd) {
    background: #ffffff;
}

.accessibility-table tbody tr:last-child td {
    border-bottom: 0;
}


/* TABLE CONTENT */

.accessibility-table p {
    margin: 0 0 12px;

    font-size: 0.95rem;
    line-height: 1.55;
}

.accessibility-table p:last-child {
    margin-bottom: 0;
}

.accessibility-table ul {
    margin: 8px 0 0 18px;
}

.accessibility-table li {
    margin-bottom: 5px;

    font-size: 0.95rem;
    line-height: 1.5;
}

.accessibility-table a {
    color: #0e5662;

    font-weight: 500;

    text-decoration: underline;
    text-underline-offset: 2px;
}

.accessibility-level {
    display: block;

    margin-top: 4px;

    font-size: 0.85rem;
    line-height: 1.35;

    color: #555555;
}

.accessibility-date {
    white-space: nowrap;

    font-weight: 500;
}


/* =========================================================
   GUIDANCE CARDS
   ========================================================= */

.accessibility-guidance-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 20px;

    margin-top: 26px;
}

.accessibility-guidance-card {
    padding: 26px 28px;

    background: #ffffff;

    border: 1px solid #d9e0e1;

    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.08);
}

.accessibility-guidance-card h3 {
    margin: 0 0 12px;

    font-size: 1.12rem;
    line-height: 1.3;
}

.accessibility-guidance-card p:last-child,
.accessibility-guidance-card ul:last-child {
    margin-bottom: 0;
}


/* =========================================================
   IMPROVEMENT ACTIONS
   ========================================================= */

.accessibility-actions {
    display: grid;

    gap: 16px;

    margin-top: 28px;
}

.accessibility-action {
    display: grid;

    grid-template-columns: 64px minmax(0, 1fr);

    gap: 22px;

    padding: 24px 28px;

    background: #ffffff;

    border-top: 1px solid #ccd7d8;
}

.accessibility-action:last-child {
    border-bottom: 1px solid #ccd7d8;
}

.accessibility-action__number {
    display: flex;

    align-items: center;
    justify-content: center;

    width: 54px;
    height: 54px;

    flex: 0 0 54px;

    background: #0e4751;
    color: #ffffff;

    font-size: 1rem;
    line-height: 1;

    font-weight: 600;
}

.accessibility-action h3 {
    margin: 0 0 8px;

    font-size: 1.15rem;
}

.accessibility-action p {
    margin: 0;
}


/* =========================================================
   CALLOUT PANEL
   ========================================================= */

.accessibility-callout {
    margin-top: 26px;

    padding: 26px 30px;

    background: #edf5f5;

    border-left: 5px solid #0e4751;
}

.accessibility-callout h3 {
    margin: 0 0 12px;
}

.accessibility-callout ul:last-child,
.accessibility-callout p:last-child {
    margin-bottom: 0;
}


/* =========================================================
   CTA BUTTON
   ========================================================= */

.accessibility-button {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    margin-top: 10px;

    padding: 13px 22px;

    min-height: 46px;

    background: #0e4751;
    color: #ffffff !important;

    font-weight: 600;

    text-decoration: none !important;

    border: 2px solid #0e4751;

    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

.accessibility-button:hover,
.accessibility-button:focus-visible {
    background: #173f46;
    border-color: #173f46;

    color: #ffffff !important;

    transform: translateY(-1px);
}


/* =========================================================
   PARTNERSHIP FEATURE
   ========================================================= */

.accessibility-feature {
    margin-top: 26px;

    padding: 30px 32px;

    background: #edf5f5;
}

.accessibility-feature h3 {
    margin: 0 0 12px;

    font-size: 1.3rem;
}

.accessibility-feature p:last-child {
    margin-bottom: 0;
}


/* =========================================================
   CONFORMANCE CARDS
   ========================================================= */

.accessibility-conformance-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 22px;

    margin-top: 28px;
}

.accessibility-conformance-grid article {
    padding: 28px 30px;

    background: #f4f7f7;

    border-top: 5px solid #0e4751;
}

.accessibility-conformance-grid h3 {
    margin: 0 0 12px;

    font-size: 1.25rem;
}

.accessibility-conformance-grid p:last-child {
    margin-bottom: 0;
}


/* =========================================================
   CONTACT PANEL
   ========================================================= */

.accessibility-contact {
    padding: 36px 40px;

    background: #0e4751;
    color: #ffffff;
}

.accessibility-contact h2,
.accessibility-contact h3,
.accessibility-contact p,
.accessibility-contact li {
    color: #ffffff;
}

.accessibility-contact h2 {
    margin-top: 0;
}

.accessibility-contact p {
    max-width: 900px;
}

.accessibility-contact a {
    color: #ffffff;

    text-decoration: underline;
    text-decoration-color: currentColor;
    text-underline-offset: 2px;
}

.accessibility-contact a:hover,
.accessibility-contact a:focus-visible {
    color: #ffffff;
}

.accessibility-contact__intro {
    font-size: 1.1rem !important;
    line-height: 1.6 !important;
}


/* =========================================================
   STATEMENT METADATA
   ========================================================= */

.accessibility-statement-meta {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    margin: 24px 0 0;

    border-top: 1px solid #ccd7d8;
    border-bottom: 1px solid #ccd7d8;
}

.accessibility-statement-meta > div {
    padding: 22px 24px;

    border-right: 1px solid #ccd7d8;
}

.accessibility-statement-meta > div:last-child {
    border-right: 0;
}

.accessibility-statement-meta dt {
    margin: 0 0 6px;

    color: #555555;

    font-size: 0.85rem;
    line-height: 1.3;

    font-weight: 600;

    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.accessibility-statement-meta dd {
    margin: 0;

    font-size: 1.05rem;
    line-height: 1.45;

    color: #1f1f1f;
}


/* =========================================================
   FOCUS STATES
   ========================================================= */

.accessibility-page a:focus-visible,
.accessibility-page button:focus-visible {
    outline: 3px solid #0086c9;
    outline-offset: 3px;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1100px) {

    .accessibility-page {
        --accessibility-gutter: 32px;
        --accessibility-nav-width: 220px;
    }

    .accessibility-layout {
        column-gap: 36px;
    }

    .accessibility-content {
        max-width: none;
    }

}


/* =========================================================
   SMALL TABLET
   ========================================================= */

@media (max-width: 900px) {

    .accessibility-layout {
        grid-template-columns: 200px minmax(0, 1fr);
        column-gap: 28px;
    }

    .accessibility-guidance-grid,
    .accessibility-conformance-grid {
        grid-template-columns: 1fr;
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 760px) {

    .accessibility-page {
        --accessibility-gutter: 20px;
    }

    .accessibility-titlebar__inner {
        padding: 16px 0;
    }

    .accessibility-layout {
        display: block;

        padding-top: 20px;
        padding-bottom: 50px;
    }

    .accessibility-nav {
        position: static;

        width: 100%;

        margin: 0 0 36px;

        padding: 20px;

        background: #f4f7f7;
    }

    .accessibility-nav::before {
        content: "On this page";

        display: block;

        margin-bottom: 14px;

        font-size: 1rem;
        font-weight: 600;

        color: #1f1f1f;
    }

    .accessibility-nav ul {
        display: grid;

        gap: 10px;
    }

    .accessibility-nav li {
        margin: 0;
    }

    .accessibility-content {
        width: 100%;
        max-width: none;
    }

    .accessibility-section {
        margin-bottom: 48px;
    }

    .accessibility-guidance-grid {
        grid-template-columns: 1fr;
    }

    .accessibility-guidance-card {
        padding: 22px;
    }

}


/* =========================================================
   MOBILE TABLE
   ========================================================= */

@media (max-width: 700px) {

    .accessibility-table-wrap {
        overflow: visible;
    }

    .accessibility-table {
        border: 0;
    }

    .accessibility-table thead {
        position: absolute;

        width: 1px;
        height: 1px;

        padding: 0;
        margin: -1px;

        overflow: hidden;

        clip: rect(0, 0, 0, 0);
        clip-path: inset(50%);

        white-space: nowrap;

        border: 0;
    }

    .accessibility-table,
    .accessibility-table tbody,
    .accessibility-table tr,
    .accessibility-table td {
        display: block;

        width: 100% !important;
    }

    .accessibility-table tr {
        margin-bottom: 20px;

        border: 1px solid #ccd7d8;

        background: #ffffff !important;
    }

    .accessibility-table td {
        padding: 16px 18px;

        border: 0;
        border-bottom: 1px solid #e2e6e7;
    }

    .accessibility-table td:last-child {
        border-bottom: 0;
    }

    .accessibility-table td::before {
        display: block;

        margin-bottom: 7px;

        content: attr(data-label);

        color: #0e4751;

        font-size: 0.8rem;
        line-height: 1.25;

        font-weight: 700;

        text-transform: uppercase;
        letter-spacing: 0.04em;
    }

    .accessibility-action {
        grid-template-columns: 1fr;

        gap: 16px;

        padding: 22px;
    }

    .accessibility-statement-meta {
        grid-template-columns: 1fr;
    }

    .accessibility-statement-meta > div {
        border-right: 0;
        border-bottom: 1px solid #ccd7d8;
    }

    .accessibility-statement-meta > div:last-child {
        border-bottom: 0;
    }

    .accessibility-contact {
        padding: 28px 24px;
    }

    .accessibility-feature,
    .accessibility-callout {
        padding: 24px;
    }

}


/* =========================================================
   VERY SMALL MOBILE
   ========================================================= */

@media (max-width: 480px) {

    .accessibility-page {
        --accessibility-gutter: 16px;
    }

    .accessibility-titlebar h1 {
        font-size: 1.65rem;
    }

    .accessibility-content h2 {
        font-size: 1.55rem;
    }

    .accessibility-guidance-card,
    .accessibility-feature,
    .accessibility-callout,
    .accessibility-contact {
        padding-left: 20px;
        padding-right: 20px;
    }

}

/* =========================================================
   ACCESSIBILITY PAGE - REMOVE SILVERCHAIR SIDEBAR
   ========================================================= */

/* Hide the right-hand Silverchair sidebar */
body:has(.accessibility-page) #Sidebar {
    display: none !important;
}

/* Allow the main page area to occupy the full width */
body:has(.accessibility-page) .content-main_content {
    width: 100% !important;
    max-width: none !important;
    flex: 1 1 100% !important;
}

/* Remove any column width Silverchair has applied */
body:has(.accessibility-page) .content-main_content > .widget-dynamic-inner-wrap,
body:has(.accessibility-page) .content-main_content > .widget-DynamicWidgetLayout {
    width: 100% !important;
    max-width: none !important;
}

/* Make the SelfServe content widget full width */
body:has(.accessibility-page) .widget-SelfServeContent {
    width: 100%;
    max-width: none;
}