.promo-pages {
    font-family: -apple-system,system-ui,BlinkMacSystemFont,Roboto,Helvetica,Arial,sans-serif;
    font-size: 16px;
    line-height: 1.5;
}

.mceContentBody.promo-pages  {
    max-width: 695px;
}

.mceContentBody iframe[data-src] {
    background: #AADAFF;
}

.promo-pages img {
    max-width: 100%;
    height: auto;
}

.www .promo-pages  {
    width: 695px;
}

.www .promo-pages.no-sidebar {
    width: 100%;
}

.promo-pages p,
.promo-pages li {
    margin-bottom: 18px;
    line-height: 1.5;
    font-size: 16px;
 }

.promo-pages li {
    margin-bottom: 8px;
 }

.promo-pages ul ul li {
    list-style-type: circle;
}

.m .promo-pages .caption {
    float: none !important;
    margin: 1em -1em 2em !important;
}

.m .promo-pages .caption p {
    text-align: center !important;
    font-style: italic;
    font-weight: normal;
    font-size: smaller;
    margin: 0 1em 0.5em;
    line-height: 1.3;
 }

.promo-pages h1, .promo-pages h2, .promo-pages h3, .promo-pages h4, .promo-pages h5 {
    margin: 1.25em 0 .5em;
    line-height: 1.2;
    text-align: left;
    color: #27496D;
}

.promo-pages h2 span {
    color: #27496D;
}

.promo-pages h1 {
    font-size: 48px;
}

.m .promo-pages h1 {
    font-size: 32px;
    margin: 0.5em 0;
}

.promo-pages h2 {
    font-size: 28px;
}

.promo-pages h3 {
    font-size: 1.5em;
}

.promo-pages h4, .promo-pages h5 {
    font-size: 1.25em;
}

.promo-pages > h1 {
    margin-top: 0;
}

.promo-pages a:not(.button),
.promo-pages .ui-page-theme-a a:not(.button):visited {
    color: #238338;
    text-decoration: underline;
    font-weight: bold;
}

/* promo page tables */
.m .promo-pages .table-wrapper {
    overflow:auto;
    table-layout: fixed;
    width: 100%;
}

.m .promo-pages table tr td:first-of-type {
    position: sticky;
    left: 0;
    z-index: 1;
    background: white;
}

.promo-pages table {
    border-color: #ccc;
    font-size: 16px;
    border-collapse: collapse;
    border-spacing: 0;
}

.m .promo-pages table {
    font-size: 12px;
}

.promo-pages.no-sidebar {
    width:auto !important;
}

.promo-pages table tr td:first-of-type {
    font-weight: bold;
}

.promo-pages table td {
    vertical-align: middle;
    padding: 10px;
    font-size: 16px;
    line-height: 1.2;
}

.promo-pages table td li,
.promo-pages table td p {
    font-size: 16px;
    line-height: 1.2;
}

.m .promo-pages table td,
.m .promo-pages table td li,
.m .promo-pages table td p {
    font-size: 12px;
}

.m .promo-pages table td ul {
    margin:0;
}

.m .promo-pages table td li {
    margin-bottom: 0;
    list-style: disc;
}

.m .promo-pages table td {
    padding: 5px;
}

.promo-pages table tr:nth-child(even) td {
    background-color: #f5f5f5;
}


/* related-content widget WIP */
.related-content {
    border-top: 2px solid #ccc;
}

.related-content .articles {
    display: flex;
    flex-wrap: wrap;
    min-height: 90px;
}

.promo-pages .related-content a {
    width: 45%;
    margin: 0 2% 4% 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    border: 1px solid #ccc;
    color: #27496D;
    text-decoration: none;
    border-radius: 5px;
    transition: transform 100ms ease-in-out, background 150ms ease-in-out;
}

.www .related-content a:hover {
    background-color: lightblue;
    text-decoration: underline;
    filter: drop-shadow(0px 0px 4px rgba(0, 0, 0, 0.25));
    transform: scale(1.05);
}

.related-content a .image-holder {
    flex-shrink: 0;
    width:90px;
    height:90px;
    background: url('../../logo/pitchup_master_logo_transparent.png') no-repeat center center;
    background-size: contain;
}

.related-content a .image-holder p {
    display: none;
}

.related-content a h3 {
    flex-grow: 1;
    padding: 0.5em 0.75em;
    margin:0;
    font-size: 16px;
}


/* duplicated button style for admin editor - could just load in the button stylesheet if ckeditor allows multiple css */
.button.large {
    padding: 11px 19px;
    font-size: 17.5px;
    border-radius: 6px;
}

button, .button {
    display: inline-block;
    padding: 4px 12px;
    margin-bottom: 0;
    font-size: 14px;
    line-height: 15px;
    text-align: center;
    text-decoration: none !important;
    vertical-align: middle;
    cursor: pointer;
    border: 1px solid #cccccc;
    border-bottom-color: #b3b3b3;
    border-radius: 4px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 1px 2px rgba(0,0,0,.05);
    color: #ffffff;
    text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
    background-color: #39b54a;
    background-image: linear-gradient(to bottom, #39b54a, #2b8938);
    background-repeat: repeat-x;
    border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
}

/* promo page widget */
.promo-page-links {
    display: grid;
    gap: 1.4em;
    margin: 2em 0;
    grid-template-columns: repeat(
            auto-fill,
            minmax(max(16ch, 30ch), 1fr)
    );
}

.item {
    background: white;
    border-radius: 4px;
    text-decoration: none !important;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
}

.item {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.item:hover {
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25), 0 10px 10px rgba(0, 0, 0, 0.22);
    cursor: pointer;
}

.item .title {
    font-weight: bold;
    padding: 1em;
    margin: auto 0;
    font-size: 1.25em;
    line-height: 1.2;
    text-align: left;
    color: #27496D;
}

.item img {
    margin: 0 !important;
    width:100%;
}

.item:hover .caption img {
    transform: scale(1.05);
    transition: transform 0.15s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.item .caption {
    max-height: 9em;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.item .caption > p {
    display: none;
}

@media only screen and (max-width: 768px) {
    .item {
        flex-direction: row;
    }

    .item img {
        width: auto;
        height: 100%;
        max-width: none;
    }

    .item .caption {
        height: 100%;
        width: 7em;
        flex-shrink: 0;
        aspect-ratio: 4/3;
    }
}
