/*
 Theme Name: NCCDH Theme
 Description: Astra Child Theme
 Author: MediaDoc
 Author URI: https://media-doc.com
 Template: astra
 Text Domain: astra
 Version: 0.1
*/

:root {
    --border: #e2e8f0;
    --badge-grey: #e2e8f0;
}

.special-heading {
    font-family: 'Poster-Gothic-ATF', poster-gothic-atf, sans-serif;
}

#ast-desktop-header .site-header-section.site-header-primary-section-right {
    flex-wrap: wrap;
}

#ast-desktop-header .ast-main-header-wrap .site-header-section > div:last-child {
    flex-basis: 100%;
}

.ast-search-menu-icon .search-field {
    font-size: 1.25rem;
}

input[type=email], input[type=number], input[type=password], input[type=reset], input[type=search], input[type=tel], input[type=text], input[type=url], select, textarea {
    border-radius: 6px;
    background-color: #FFFFFF;
    border-color: var(--border);
}

.single-podcast h1:not(.ast-advanced-headers-title),
.single-podcast h2,
.single-podcast h3,
.single-podcast h4,
.single-podcast h5,
.single-podcast h6 {
    color: var(--ast-global-color-0);
}

.single-podcast h1.entry-title {
    font-size: 2.5rem;
    max-width: 12rem;
    margin: 0;
}

.single-podcast a.external {
}

.single-podcast a.external svg {
    width: 1rem;
    height: 1rem;
    display: inline;
    vertical-align: text-top;
}

.podcast-header {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 2rem;
}

.podcast-header img {
    width: 6.5rem;
    height: auto;
}

.podcast-details {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 2rem;
}

.podcast-details p {
    margin: 0;
}

.podcast-details .transcript-download-button {
    flex-shrink: 0;
}

.season-tag {
    color: var(--ast-global-color-0);
}

.episode-details {
    text-transform: uppercase;
}

.podcast-title {
    margin: 0;
}

.podcast-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.podcast-guests {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 2rem;
}

.podcast-guests h3 {
    text-align: center;
}

.podcast-guests .guest {
    display: flex;
    flex-direction: column;
}

.guest.main {
    background-color: #B0D4B9;
}

.guest.reflective {
    background-color: #FDD394;
}

.podcast-guests .guest img {
    height: unset;
    width: 100%;
}

.guest-biography {
    padding: 2rem;
}

.podcast-extra > div {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.podcast-extra {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.podcast-extra .related-resources ul {
    margin-top: 0;
    margin-left: 1rem;
    list-style-type: disc;
}

.podcast-navigation {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
}

.podcast-navigation > div {
    flex: 1 1 50%;
}

.podcast-navigation a {
    display: block;
    width: 100%;
    padding: 2rem 1rem;
    cursor: pointer;
}

.podcast-navigation .nav-previous a {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    text-align: left;
}

.podcast-navigation .nav-previous a::before {
    content: '<';
    margin-right: 0.5rem;
}

.podcast-navigation .nav-next a {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    text-align: right;
}

.podcast-navigation .nav-next a::after {
    content: '>';
    margin-left: 0.5rem;
}

.podcast-navigation a:hover,
.podcast-navigation a:focus {
    background-color: #f5f5f5;
}

.podcast-navigation a:hover span,
.podcast-navigation a:focus span {
    color: var(--ast-global-color-0);
}

.podcast-navigation .nav-label {
    display: block;
    margin-bottom: 0.25rem;
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--ast-global-color-0);
}

.resource-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 2rem;
}

.resource-header .resource-type {
    text-transform: capitalize;
}

.resource-image-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
}

.resource-image-link button {
    white-space: nowrap;
}

.resource-header img {
    width: 15rem;
    height: auto;
}

.term-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    margin-top: 2rem;
}

.term-badges a.ast-badge-tax {
    padding: 0.25rem 0.5rem;
    line-height: 1.3rem;
    white-space: nowrap;
}

.index-list {
    padding-top: 4rem;
}

.index-item {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    border-bottom: 1px dashed var(--border);
    margin-bottom: 1rem;
    padding-bottom: 1rem;
}

.index-item .item-title {
    font-family: "DM Sans", sans-serif;
}

.index-item .staff-position {
    text-transform: uppercase;
}

.index-item p {
    margin-bottom: 0.5rem;
}

.index-item .item-image img {
    border-radius: 0.5rem;
    width: 12rem;
}

.index-item .item-content {
    flex: 1;
}

.index-list.latest-resources {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 2rem;
    margin-bottom: 2rem;
    padding-top: 0;
    padding-bottom: 0;
}

@media (min-width: 768px) {
    .index-list.latest-resources {
        grid-template-columns: repeat(2, 1fr);
    }
}

.series-parts {
    margin: 1rem 0;
}

.series-parts .part {
    margin-bottom: 1rem;
}

.series-part {
    margin: 1rem 0;
    padding-bottom: 1rem;
    border-bottom: 1px dashed var(--border);
}

.part-meta {
    font-size: 0.75rem;
    text-transform: uppercase;
}

.part-meta .badge {
    padding: 0.25rem;
    font-weight: bold;
    background-color: var(--badge-grey);
    border-radius: 3px;
}

.series-part h3,
.series-part h4,
.series-part h5 {
    font-family: "DM Sans", sans-serif;
}

.series-part .part-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin: 1rem 0;
}

.webinar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.webinar .people {
    display: flex;
    flex-flow: row wrap;
    gap: 0.5rem;
    margin: 1rem 0;
}

.people .person {
    font-size: 0.8rem;
    line-height: 1rem;
    width: 10rem;
    box-sizing: border-box;
}

.person-image {
    height: 10rem;
    margin-bottom: 0.25rem;
}

.person-image img {
    border-radius: 0.5rem;
    height: 10rem;
    width: auto;
}

.webinar iframe {
    aspect-ratio: 16 / 9;
}

.webinar .series-description {
    margin: 1rem 0;
}

.webinar .entry-content {
    margin-bottom: 1rem;
}

.webinar .meta-icon-container {
    display: flex;
    gap: 0.25rem;
    font-size: 0.8rem;
    line-height: 1rem;
    align-items: center;
    margin-bottom: 0.25rem;
}

.webinar .meta-icon-container .icon {
    width: 1.5rem;
}

.related-resources ul {
    margin-top: 1rem;
}

.related-resources .related-resource-with-image {
    list-style-type: none;
    margin-left: 0;
}

.related-resources .related-resource-with-image li {
    display: flex;
    gap: 1rem;
    font-weight: bold;
}

.related-resources .related-resource-image {
    flex-shrink: 0;
}

.related-resources .related-resource-image img {
    width: 5rem;
    height: auto;
}

.has-sup-links a {
    vertical-align: super;
    line-height: 1;
    text-decoration: none;
    color: hsl(var(--primary));
    font-size: 0.75rem;
    margin-right: 0.25rem;
}

.references a {
    color: hsl(var(--primary));
}

.blog-filter-form {
    padding-left: 1rem;
    margin: 4rem 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.blog-filter-form .filter-field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.author-bio {
    color: var(--ast-global-color-0);
    cursor:pointer;
    text-decoration: underline;
}

.page-template-blog #content .ast-container {
    display: flex;
    flex-direction: column-reverse;
}

#ast-desktop-header .site-header-section > div:last-child {
    flex-basis: initial;
}

#ast-desktop-header .ast-main-header-wrap .site-header-section > div:last-child {
    flex-basis: 100%;
}

.header-widget-area[data-section="sidebar-widgets-header-widget-1"] .widget {
    margin: 0;
}
body.page #main h1.entry-title,
body.post #main h1.entry-title,
.archive .page-title,
.search .page-title {
    display: none;
}

body.archive .ast-archive-description,
body.search .ast-container section.ast-archive-description {
    padding: 0;
}

body.archive .ast-container article,
body.search .ast-container article {
    box-shadow: none;
    border-bottom: 1px dashed var(--border);
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

body.archive .ast-container article .entry-title a,
body.search .ast-container article .entry-title a {
    font-family: "DM Sans", sans-serif;
    font-size: 1.4rem;
    font-weight: 600;
    letter-spacing: 0;
}

body.archive .ast-container article .post-thumb-img-content img,
body.search .ast-container article .post-thumb-img-content img {
    border-radius: 0.5rem;
}

@media (min-width: 921px) {
    .page-template-blog #content .ast-container {
        flex-direction: row;
    }
}

@media (min-width: 768px) {
    .podcast-details {
        flex-direction: row;
        align-items: center;
    }

    .podcast-content {
        flex-direction: row;
    }

    .podcast-content > div {
        flex: 1 1 50%;
    }

    .podcast-guests .guest {
        flex-direction: row;
    }

    .podcast-guests .guest img {
        height: 12.5rem;
        width: auto;
    }

    .podcast-extra {
        flex-direction: row;
    }

    .podcast-extra > div {
        flex: 1 1 50%;
    }

    .resource-header {
        flex-direction: row;
    }

    .resource-image-link {
        /*flex-direction: column;*/
        width: auto;
    }

    .index-item {
        flex-direction: row;
    }

    .series-part .part-content {
        flex-direction: row;
    }

    .series-part .part-content .embed-code {
        flex: 0 0 40%;
        max-width: 40%;
    }

    .webinar .people {
        flex-direction: row;
    }

    .webinar iframe.webinar-playlist {
        max-width: 50%;
    }
}