/* AE PDS Theme — article and sidebar refinements.
   Scope excludes the AE Magazin post types and leaves Newspaper queries intact. */

/* Style 8: one 1200px outer grid for its hero and white content panel. */
body.pds-main-site.single_template_8 .td-post-template-8 {
    width: calc(100% - 40px) !important;
    max-width: 1200px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}
body.pds-main-site.single_template_8 .td-post-template-8 .td-post-header,
body.pds-main-site.single_template_8 .td-post-template-8 .td-post-template-8-box {
    box-sizing: border-box;
    width: 100% !important;
    max-width: 1200px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}
body.pds-main-site.single_template_8 .td-post-template-8 .td-post-template-8-box {
    padding: 32px !important;
}
body.pds-main-site.single_template_8 .td-post-template-8 .td-container {
    width: 100% !important;
    max-width: none !important;
    padding: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}
body.pds-main-site.single_template_8 .td-post-template-8 .td-post-content {
    width: 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}
body.pds-main-site.single_template_8 .td-post-template-8 .td-post-header-holder {
    padding-left: 32px !important;
    padding-right: 32px !important;
}
body.pds-main-site.single_template_8 .td-post-template-8 .td-crumb-container {
    width: calc(100% - 64px) !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

body.pds-main-site .td-post-template-8 .td-post-header .entry-title,
body.pds-main-site .td-post-template-8 .td-post-title,
body.pds-main-site .td-post-template-8 .td-post-header .td-post-sub-title,
body.pds-main-site .td-post-template-8 .td-post-header .td-post-author-name,
body.pds-main-site .td-post-template-8 .td-post-header .td-post-date,
body.pds-main-site .td-post-template-8 .td-post-header .td-post-views {
    color: #fff !important;
}

/* Production reading sizes: classic articles 15px; Composer articles 17px. */
body.pds-main-site.single-post #td-outer-wrap :is(.td-post-content, .td-post-text-content, .tdb_single_content) {
    font-size: 15px !important;
    line-height: 1.74 !important;
    font-weight: 400 !important;
}
body.pds-main-site.single-post.single_template_8 #td-outer-wrap .td-post-content > .wpb-content-wrapper {
    font-size: 17px !important;
    line-height: 1.85 !important;
}
body.pds-main-site.single-post #td-outer-wrap :is(.td-post-content, .td-post-text-content, .tdb_single_content) :is(p, li) {
    font-size: inherit !important;
    line-height: inherit !important;
    font-weight: 400 !important;
}

/* Newspaper's built-in related/other-society-post tabs. */
body.pds-main-site.single-post .td-related-title {
    display: flex;
    gap: 4px;
    align-items: stretch;
    border-bottom: 1px solid #af1500 !important;
}

body.pds-main-site.single-post .td-related-title a {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 7px 12px !important;
    border: 0 !important;
    background: transparent !important;
    color: #af1500 !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 1 !important;
    text-transform: uppercase;
    transition: color .2s ease, background-color .2s ease;
}

body.pds-main-site.single-post .td-related-title a:is(:hover, :focus-visible),
body.pds-main-site.single-post .td-related-title .td-cur-simple-item {
    background: #af1500 !important;
    color: #fff !important;
}

body.pds-main-site.single-post .td_block_related_posts .td_mod_related_posts,
body.pds-main-site.single-post .td-related-row .td_mod_related_posts {
    margin-bottom: 0 !important;
}

body.pds-main-site.single-post :is(.td_block_related_posts, .td-related-row) .td-module-title,
body.pds-main-site.single-post :is(.td_block_related_posts, .td-related-row) .td-module-title a {
    color: #233746 !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    line-height: 20px !important;
}

body.pds-main-site.single-post :is(.td_block_related_posts, .td-related-row) .td-module-title a:hover {
    color: #af1500 !important;
}

/* Consistent Newspaper sidebar widget title: PDS red label and underline. */
body.pds-main-site.single-post .td-ss-main-sidebar .td-block-title-wrap,
body.pds-main-site.single-post .td-ss-main-sidebar .block-title-wrap {
    min-height: 0 !important;
    margin: 0 0 14px !important;
    border-bottom: 1px solid #af1500 !important;
    background: transparent !important;
}

body.pds-main-site.single-post .td-ss-main-sidebar .td-block-title,
body.pds-main-site.single-post .td-ss-main-sidebar .block-title {
    display: inline-flex !important;
    align-items: center;
    margin: 0 !important;
    box-sizing: border-box;
    height: 28px;
    min-height: 28px;
    border: 0 !important;
    padding: 7px 12px !important;
    background: #af1500 !important;
    color: #fff !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 1 !important;
}

body.pds-main-site.single-post .td-ss-main-sidebar .td-block-title > *,
body.pds-main-site.single-post .td-ss-main-sidebar .block-title > * {
    padding: 0 !important;
    margin: 0 !important;
    min-height: 0 !important;
    background: transparent !important;
    color: #fff !important;
    font-size: inherit !important;
    font-weight: inherit !important;
    line-height: inherit !important;
}

/* Bring default sidebar news cards back to compact production-like scale. */
body.pds-main-site.single-post .td-ss-main-sidebar :is(.td-module-title, .td-module-title a, .entry-title, .entry-title a) {
    color: #233746 !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    line-height: 18px !important;
}

body.pds-main-site.single-post .td-ss-main-sidebar :is(.td-module-title a, .entry-title a):hover {
    color: #af1500 !important;
}

body.pds-main-site.single-post .td-ss-main-sidebar .td-post-date,
body.pds-main-site.single-post .td-ss-main-sidebar .td-module-meta-info {
    font-size: 11px !important;
    line-height: 1.4 !important;
}

@media (max-width: 767px) {
    body.pds-main-site.single_template_8 .td-post-template-8 {
        width: 100% !important;
    }
    body.pds-main-site.single_template_8 .td-post-template-8 .td-post-template-8-box {
        padding: 20px !important;
    }
    body.pds-main-site.single_template_8 .td-post-template-8 .td-post-header-holder {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
    body.pds-main-site.single_template_8 .td-post-template-8 .td-crumb-container {
        width: calc(100% - 40px) !important;
    }
    body.pds-main-site.single-post .td-related-title { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
    body.pds-main-site.single-post .td-related-title a {
        transition: none !important;
    }
}

/* Shared outer grid: keeps native full-bleed backgrounds and column proportions. */
@media (min-width: 768px) {
 body.pds-main-site.single-post #td-outer-wrap .td-main-content-wrap > .td-container {width:calc(100% - 40px)!important;max-width:1200px!important;margin-left:auto!important;margin-right:auto!important;}
}
body.pds-main-site.single_template_8 #td-outer-wrap .td-post-header .td-post-date time {color:#fff!important;font-weight:500!important;text-shadow:0 1px 3px rgba(0,0,0,.5);}
