.midas-resource-page .mr-content,
.midas-resource-page .mr-detail {
    padding: 40px 0 100px;
}

@media (min-width: 768px) {
    .midas-cases-page .mr-content,
    .midas-cases-page .mr-detail {
        padding: 80px 0 100px;
    }
}

.midas-resource-page .mr-heading {
    max-width: none;
    margin: 10px 0 40px;
}

.midas-resource-page .mr-content__inner {
    width: 100%;
}

.midas-resource-page .mr-thumbnail-image {
    opacity: 0;
}

.midas-resource-page .mr-thumbnail-image.is-loaded {
    opacity: 1;
    transition: opacity 0.2s ease;
}

.midas-resource-page .mr-thumbnail-loading {
    z-index: 3;
}

.midas-resource-page .mr-heading--center {
    text-align: center;
}

.midas-resource-page .mr-heading h1,
.midas-resource-page .mr-heading h2,
.midas-resource-page .mr-detail__body h2 {
    margin: 0;
    color: #080808;
    font-size: 36px;
    line-height: 1.3;
    font-weight: 800;
}

.midas-resource-page .mr-heading p,
.midas-resource-page .mr-detail__summary {
    margin: 24px 0 0;
    color: #080808;
    font-size: 16px;
    line-height: 1.5;
    text-align: left;
}

.midas-resource-page .mr-detail__summary {
    overflow-wrap: anywhere;
}

.midas-resource-page .mr-intro,
.midas-resource-page .mr-detail__content {
    margin-top: 24px;
    color: #333333;
    font-size: 17px;
    line-height: 1.8;
    white-space: pre-line;
}

.midas-resource-page .mr-guide-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 64px 32px;
}

.midas-resource-page .mr-report-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 64px 32px;
}

.midas-resource-page .mr-guide-card {
    min-width: 0;
    background: #ffffff;
}

.midas-resource-page .mr-report-card {
    min-width: 0;
    background: #ffffff;
}

.midas-resource-page .mr-guide-card a,
.midas-resource-page .mr-report-card a {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.midas-resource-page .mr-guide-card__media,
.midas-resource-page .mr-report-card__media {
    position: relative;
    background: #f2f5f7;
}

.midas-resource-page .mr-guide-card__media {
    overflow: hidden;
    aspect-ratio: 20 / 29;
    border-radius: 8px;
}

.midas-resource-page .mr-report-card__media {
    overflow: hidden;
    aspect-ratio: 405 / 270;
    border-radius: 10px;
}

.midas-resource-page .mr-guide-card__media img,
.midas-resource-page .mr-report-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.midas-resource-page .mr-guide-card__body {
    padding: 16px 0 0;
}

.midas-resource-page .mr-report-card__body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 24px 0 0;
}

.midas-resource-page .mr-guide-card h3 {
    margin: 0;
    color: #080808;
    font-size: 18px;
    line-height: 1.5;
    font-weight: 700;
}

.midas-resource-page .mr-report-card h3 {
    margin: 0;
    color: #080808;
    font-size: 24px;
    line-height: 1.4;
    font-weight: 700;
}

.midas-resource-page .mr-guide-card__year {
    margin: 0;
    color: #080808;
    font-size: 14px;
    line-height: 1.5;
}

.midas-resource-page .mr-report-card p {
    margin: 0;
    color: #080808;
    font-size: 16px;
    line-height: 1.5;
}

.midas-resource-page .mr-read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    color: #080808;
    font-size: 16px;
    line-height: 1.5;
    font-weight: 400;
}

.midas-resource-page .mr-read-more svg,
.midas-resource-page .mr-pagination__edge svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.midas-resource-page .mr-report-card__meta,
.midas-resource-page .mr-report-card__copy {
    display: grid;
}

.midas-resource-page .mr-report-card__meta {
    gap: 4px;
}

.midas-resource-page .mr-report-card__copy {
    gap: 8px;
    width: 100%;
}

.midas-resource-page .mr-report-card__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.midas-resource-page .mr-placeholder {
    display: grid;
    place-content: center;
    place-items: center;
    width: 100%;
    height: 100%;
    padding: 24px;
    color: #b8b8b8;
    text-align: center;
    font-size: 0;
}

.midas-resource-page .mr-placeholder::before {
    font-family: "Font Awesome 6 Free";
    font-size: 42px;
    font-weight: 400;
    content: "\f03e";
}

.midas-resource-page .mr-placeholder--default-thumbnail::before {
    content: none;
}

.midas-resource-page .mr-placeholder--default-thumbnail img.mr-default-thumbnail,
.midas-resource-card-list-page .mr-resource-card__media img.mr-default-thumbnail {
    position: absolute;
    inset: auto;
    top: 50%;
    left: 50%;
    width: min(44%, 180px);
    height: auto;
    max-height: 58%;
    object-fit: contain;
    transform: translate(-50%, -50%);
}

.midas-resource-page .mr-pagination__edge {
    display: inline-flex;
    align-items: center;
    justify-self: start;
    gap: 12px;
    min-height: 40px;
    padding: 8px 20px;
    border-radius: 100px;
    background: rgba(8, 8, 8, 0.05);
    color: #080808;
    text-decoration: none;
    font-size: 16px;
    line-height: 1.5;
    font-weight: 500;
}

.midas-resource-page .mr-pagination__edge:last-child {
    justify-self: end;
}

.midas-resource-page .mr-pagination__edge.is-disabled {
    pointer-events: none;
    opacity: 0.45;
}

.midas-resource-page .mr-empty {
    padding: 48px 0;
    color: #666666;
    text-align: center;
}

.midas-resource-page .mr-type-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 0 0 40px;
}

.midas-resource-detail-page .mr-managing__year-nav {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 24px;
}

.midas-resource-detail-page .mr-managing__year-nav h2 {
    text-align: center;
}

.midas-resource-detail-page .mr-managing__year-nav svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.midas-resource-detail-page .mr-managing__pdf {
    overflow: hidden;
    width: 100%;
    aspect-ratio: 2878 / 1525;
    margin-bottom: 24px;
    background: #262626;
}

.midas-resource-detail-page .mr-managing__pdf-object {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

.midas-resource-detail-page .mr-managing__meta {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 428px;
    gap: 24px;
    align-items: start;
    color: #080808;
}

.midas-resource-page .mr-report-card__mida {
    color: #666666;
    font-size: 14px;
    line-height: 1.5;
}

.midas-resource-detail-page .mr-managing__meta--single {
    grid-template-columns: minmax(0, 1fr);
}

.midas-resource-detail-page .mr-meta-block {
    margin: 0 0 24px;
}

.midas-resource-detail-page .mr-meta-block:last-child {
    margin-bottom: 0;
}

.midas-resource-detail-page .mr-meta-block h3 {
    margin: 0;
    color: #080808;
    font-size: 16px;
    line-height: 1.5;
    font-weight: 800;
}

.midas-resource-detail-page .mr-meta-block p,
.midas-resource-detail-page .mr-meta-block a {
    display: block;
    margin: 0;
    color: #080808;
    font-size: 16px;
    line-height: 1.5;
    white-space: pre-line;
}

.midas-resource-detail-page .mr-meta-block a {
    text-decoration: underline;
    text-underline-position: from-font;
}

.midas-resource-page .mr-download {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 28px;
    padding: 14px 20px;
    background: #173f70;
    color: #ffffff;
    text-decoration: none;
    font-weight: 800;
}

.midas-resource-detail-page .mr-pdf-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
}

.midas-resource-detail-page .mr-pdf-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
    padding: 9px 16px;
    border: 1px solid #173f70;
    border-radius: 4px;
    font-size: 13px;
    line-height: 1;
    font-weight: 800;
    text-decoration: none;
}

.midas-resource-detail-page .mr-pdf-action--primary {
    background: #173f70;
    color: #ffffff;
}

.midas-resource-detail-page .mr-pdf-action--secondary {
    background: #ffffff;
    color: #173f70;
}

.midas-resource-detail-page .mr-pdf-action:hover,
.midas-resource-detail-page .mr-pdf-action:focus-visible {
    text-decoration: none;
}

.midas-resource-detail-page .mr-pdf-action:focus-visible {
    outline: 3px solid rgba(23, 63, 112, 0.25);
    outline-offset: 2px;
}

@media (max-width: 1199px) {
    .midas-resource-page .mr-guide-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .midas-resource-page .mr-report-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1200px) and (max-width: 1229.98px) {
    .midas-resource-page .mr-content__inner {
        width: calc(100vw - 30px);
    }
}

@media (max-width: 767px) {
    .midas-resource-page .mr-content,
    .midas-resource-page .mr-detail {
        padding: 52px 0 76px;
    }

    .midas-resource-page .mr-heading h1,
    .midas-resource-page .mr-heading h2,
    .midas-resource-page .mr-detail__body h2 {
        font-size: 30px;
    }

    .midas-resource-page .mr-heading p,
    .midas-resource-page .mr-detail__summary {
        font-size: 16px;
    }

    .midas-resource-page .mr-guide-grid,
    .midas-resource-page .mr-report-grid,
    .midas-resource-detail-page .mr-managing__meta {
        grid-template-columns: 1fr;
    }

    .midas-resource-detail-page .mr-unified-detail:not(.mr-video-detail):not(.mr-article-view) .mr-managing__year-nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .midas-resource-detail-page .mr-unified-detail:not(.mr-video-detail):not(.mr-article-view) .mr-managing__year-nav h2 {
        grid-column: 1 / -1;
        grid-row: 1;
        font-size: 30px;
    }

    .midas-resource-detail-page .mr-managing__pdf {
        min-height: 0;
        aspect-ratio: 1 / 1;
    }

    .midas-resource-detail-page .mr-unified-detail:not(.mr-video-detail):not(.mr-article-view) .mr-pagination__edge {
        grid-column: 1;
        grid-row: 2;
        justify-self: start;
    }

    .midas-resource-detail-page .mr-unified-detail:not(.mr-video-detail):not(.mr-article-view) .mr-pagination__edge:last-child {
        grid-column: 2;
        grid-row: 2;
        justify-self: end;
    }
}

/* Unified PDF and video detail */
.midas-resource-detail-page .mr-unified-detail .mr-type-tabs {
    margin-bottom: 24px;
}

/* Learning MIDAs article detail */
.midas-resource-detail-page .mr-article-view .mr-managing__year-nav {
    padding-bottom: 24px;
    border-bottom: 1px solid #d9dde2;
}

.midas-resource-detail-page .mr-article-detail {
    color: #30363b;
}

.midas-resource-detail-page .mr-article-detail__meta {
    display: flex;
    align-items: center;
    gap: 20px;
    min-height: 58px;
    padding: 14px 0;
    border-bottom: 1px solid #d9dde2;
}

.midas-resource-detail-page .mr-article-detail__badge {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    min-width: 61px;
    min-height: 27px;
    padding: 4px 10px;
    border: 1px solid #35569a;
    color: #35569a;
    font-size: 12px;
    line-height: 1;
    font-weight: 700;
}

.midas-resource-detail-page .mr-article-detail__meta dl {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0;
    margin: 0;
}

.midas-resource-detail-page .mr-article-detail__meta dl > div {
    display: flex;
    align-items: baseline;
    gap: 8px;
    font-size: 14px;
    line-height: 1.5;
}

.midas-resource-detail-page .mr-article-detail__meta dl > div + div::before {
    display: block;
    width: 1px;
    height: 14px;
    margin: 0 18px;
    background: #d9dde2;
    content: "";
}

.midas-resource-detail-page .mr-article-detail__meta dt {
    color: #68717c;
}

.midas-resource-detail-page .mr-article-detail__meta dd {
    margin: 0;
    color: #30363b;
    font-weight: 700;
}

.midas-resource-detail-page .mr-article-detail__body {
    min-height: 420px;
    padding: 28px 0 40px;
    font-size: 15px;
    line-height: 1.8;
    overflow-wrap: anywhere;
}

.midas-resource-detail-page .mr-article-detail__body > :first-child {
    margin-top: 0;
}

.midas-resource-detail-page .mr-article-detail__body > :last-child {
    margin-bottom: 0;
}

.midas-resource-detail-page .mr-article-detail__body p,
.midas-resource-detail-page .mr-article-detail__body blockquote,
.midas-resource-detail-page .mr-article-detail__body ul,
.midas-resource-detail-page .mr-article-detail__body ol {
    margin: 0 0 28px;
}

.midas-resource-detail-page .mr-article-detail__body h2,
.midas-resource-detail-page .mr-article-detail__body h3 {
    margin: 32px 0 12px;
    color: #16191d;
    font-size: 15px;
    line-height: 1.5;
    font-weight: 800;
}

.midas-resource-detail-page .mr-article-detail__body blockquote {
    padding-left: 18px;
    border-left: 3px solid #d9dde2;
}

.midas-resource-detail-page .mr-article-detail__body a {
    color: #204b88;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.midas-resource-detail-page .mr-article-detail__footer {
    display: flex;
    justify-content: center;
    padding-top: 22px;
    border-top: 1px solid #d9dde2;
}

.midas-resource-detail-page .mr-article-detail__list {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 94px;
    min-height: 40px;
    padding: 9px 20px;
    border-radius: 4px;
    background: #35569a;
    color: #ffffff;
    font-size: 13px;
    line-height: 1;
    font-weight: 700;
    text-decoration: none;
}

.midas-resource-detail-page .mr-article-detail__list:focus-visible {
    outline: 3px solid rgba(53, 86, 154, 0.3);
    outline-offset: 3px;
}

.midas-resource-detail-page .mr-video-detail .mr-managing__year-nav h2 {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.midas-resource-card-list-page .mr-resource-card__link:focus-visible {
    outline: 3px solid #20558c;
    outline-offset: 3px;
}

.midas-resource-detail-page .mr-pdf-viewer__empty {
    display: grid;
    place-items: center;
    gap: 12px;
    min-height: 360px;
    margin-bottom: 24px;
    background: #f2f5f7;
    color: #6b7280;
    text-align: center;
}

.midas-resource-detail-page .mr-pdf-viewer__empty i {
    font-size: 42px;
}

.midas-resource-detail-page .mr-pdf-viewer__empty p {
    margin: 0;
}

.midas-resource-detail-page .mr-video-player {
    position: relative;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 8px;
    background: #080808;
}

.midas-resource-detail-page .mr-video-player video,
.midas-resource-detail-page .mr-video-player iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

.midas-resource-detail-page .mr-video-player video {
    object-fit: contain;
}

.midas-resource-detail-page .mr-video-player__toggle {
    position: absolute;
    z-index: 1;
    display: block;
    top: 0;
    right: 0;
    bottom: 54px;
    left: 0;
    width: 100%;
    border: 0;
    padding: 0;
    background: transparent;
    cursor: pointer;
    touch-action: manipulation;
}

.midas-resource-detail-page .mr-video-player__toggle:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: -4px;
}

.midas-resource-detail-page .mr-video-meta {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(220px, 1fr);
    gap: 48px;
    padding-top: 24px;
    color: #080808;
}

.midas-resource-detail-page .mr-video-meta--facts-only {
    grid-template-columns: minmax(0, 1fr);
}

.midas-resource-detail-page .mr-video-meta h2,
.midas-resource-detail-page .mr-video-meta p,
.midas-resource-detail-page .mr-video-meta dl,
.midas-resource-detail-page .mr-video-meta dd {
    margin: 0;
}

.midas-resource-detail-page .mr-video-meta h2,
.midas-resource-detail-page .mr-video-meta dt {
    font-size: 14px;
    line-height: 1.4;
    font-weight: 800;
}

.midas-resource-detail-page .mr-video-meta p,
.midas-resource-detail-page .mr-video-meta dd {
    font-size: 14px;
    line-height: 1.5;
    white-space: pre-line;
}

.midas-resource-detail-page .mr-video-meta__facts {
    display: grid;
    gap: 18px;
}

.midas-resource-detail-page .mr-video-meta__facts div {
    display: grid;
    gap: 2px;
}

/* Resource card lists */
.midas-resource-card-list-page .mr-card-list__header {
    text-align: center;
}

.midas-resource-card-list-page .mr-card-list__header p {
    max-width: 760px;
    margin: 16px auto 0;
    color: #4b5563;
    font-size: 16px;
    line-height: 1.6;
}

.midas-resource-card-list-page .mr-card-list__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 48px 32px;
}

.midas-resource-card-list-page .mr-resource-card {
    min-width: 0;
}

.midas-resource-card-list-page .mr-resource-card__link {
    display: block;
    color: #080808;
    text-decoration: none;
}

.midas-resource-card-list-page .mr-resource-card__media {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border-radius: 8px;
    background: #e9eef2;
}

.midas-resource-card-list-page .mr-resource-card__media img,
.midas-resource-card-list-page .mr-resource-card__placeholder {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.midas-resource-card-list-page .mr-resource-card__media img {
    z-index: 1;
    object-fit: cover;
}

.midas-resource-card-list-page .mr-resource-card__placeholder {
    display: grid;
    place-items: center;
    color: #7b8794;
    font-size: 40px;
}

.midas-resource-card-list-page .mr-resource-card__play {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(11, 31, 48, 0.82);
    color: #ffffff;
    font-size: 16px;
    transform: translate(-50%, -50%);
}

.midas-resource-card-list-page .mr-resource-card__play i {
    margin-left: 2px;
}

.midas-resource-card-list-page .mr-resource-card__duration {
    position: absolute;
    right: 6px;
    bottom: 6px;
    z-index: 2;
    padding: 2px 4px;
    border-radius: 2px;
    background: rgba(11, 31, 48, 0.9);
    color: #ffffff;
    font-size: 11px;
    line-height: 1.2;
    font-variant-numeric: tabular-nums;
}

.midas-resource-card-list-page .mr-resource-card__body {
    padding-top: 12px;
}

.midas-resource-card-list-page .mr-resource-card__badge {
    display: inline-block;
    padding: 3px 6px;
    background: #edf3f7;
    color: #164475;
    font-size: 11px;
    line-height: 1;
    font-weight: 600;
}

.midas-resource-card-list-page .mr-resource-card h2 {
    display: -webkit-box;
    margin: 10px 0 0;
    overflow: hidden;
    color: #080808;
    font-size: 18px;
    line-height: 1.35;
    font-weight: 800;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
}

.midas-resource-card-list-page .mr-resource-card p {
    margin: 10px 0 0;
    color: #30363b;
    font-size: 12px;
    line-height: 1.4;
}

@media (max-width: 991px) {
    .midas-resource-card-list-page .mr-card-list__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .midas-resource-detail-page .mr-video-detail .mr-managing__year-nav {
        grid-template-columns: auto minmax(0, 1fr) auto;
        gap: 12px;
    }

    .midas-resource-detail-page .mr-video-detail .mr-managing__year-nav h2 {
        order: initial;
        font-size: 20px;
    }

    .midas-resource-detail-page .mr-video-detail .mr-pagination__edge {
        gap: 6px;
        padding: 7px 12px;
        font-size: 13px;
    }

    .midas-resource-detail-page .mr-video-meta {
        grid-template-columns: 1fr;
    }

    .midas-resource-detail-page .mr-video-meta {
        gap: 32px;
    }

    .midas-resource-detail-page .mr-article-view .mr-managing__year-nav {
        grid-template-columns: auto minmax(0, 1fr) auto;
        gap: 10px;
    }

    .midas-resource-detail-page .mr-article-view .mr-managing__year-nav h2 {
        order: initial;
        font-size: 20px;
    }

    .midas-resource-detail-page .mr-article-view .mr-pagination__edge {
        gap: 4px;
        min-height: 36px;
        padding: 7px 10px;
        font-size: 0;
    }

    .midas-resource-detail-page .mr-article-view .mr-pagination__edge svg {
        width: 16px;
        height: 16px;
    }

    .midas-resource-detail-page .mr-article-detail__meta {
        align-items: flex-start;
        gap: 12px;
    }

    .midas-resource-detail-page .mr-article-detail__meta dl {
        display: grid;
        gap: 4px;
    }

    .midas-resource-detail-page .mr-article-detail__meta dl > div + div::before {
        display: none;
    }

    .midas-resource-detail-page .mr-article-detail__body {
        min-height: 320px;
    }

}

@media (max-width: 561px) {
    .midas-resource-card-list-page .mr-card-list__grid {
        grid-template-columns: 1fr;
    }
}
