/* The Nextologies Insights: blog / podcast list (blog.html) and post pages (blog/*.html)
   Sizes and colours follow the Figma design (1366px wide frame). */

@import url('https://fonts.googleapis.com/css?family=Montserrat:300,400,700&display=swap');

.insightsBody {
    background-color: #0c0b10;
    overflow-x: hidden;
    letter-spacing: -0.01em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* no outline around links and buttons after a mouse click (keyboard focus still shows one) */
.insightsBody a:focus:not(:focus-visible),
.insightsBody button:focus:not(:focus-visible) {
    outline: none;
}
/* content is 1109px wide, 128px from the left at 1366px */
@media (min-width: 1200px) {
    .insightsBody .insights .container,
    .insightsBody .insights-bar .container {
        width: 1139px;
    }
}

/* page background: glow at the top and bottom */
.insights {
    position: relative;
    margin-top: 82px;
    padding: 34px 0 117px;
    background-color: #0c0b10;
    background-image: url(../images/blog/bg-top.jpg), url(../images/blog/bg-bottom.jpg);
    background-position: center top, center bottom;
    background-repeat: no-repeat, no-repeat;
    background-size: 100% auto, 100% auto;
}

/* hero: the logo image has 10px of shadow around the 971px artwork */
.insights-logo {
    display: block;
    width: 100%;
    max-width: 991px;
    height: auto;
    margin: 0 0 17px -18px;
}
.insights-tagline {
    font-family: "Montserrat", sans-serif;
    font-weight: 400;
    font-size: 32px;
    line-height: 39px;
    letter-spacing: -0.01em;
    color: #f9a64a;
    margin: 0 0 18px;
}
.insights-intro {
    font-family: latobold;
    font-size: 18px;
    line-height: 22px;
    letter-spacing: -0.01em;
    color: #ffffff;
    margin: 0 0 39px;
}

/* Blog | Podcast | All */
.insights-filter {
    list-style: none;
    margin: 0 0 41px;
    padding: 0;
    font-family: "Montserrat", sans-serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 22px;
    letter-spacing: -0.01em;
    color: #ffffff;
}
.insights-filter li {
    display: inline-block;
}
.insights-filter li + li:before {
    content: "|";
    margin: 0 8px;
    color: #ffffff;
}
.insights-filter a {
    color: #ffffff;
    text-decoration: none;
}
.insights-filter a:hover,
.insights-filter a:focus {
    color: #f9a64a;
    text-decoration: none;
}
.insights-filter a.active {
    font-weight: 700;
    color: #f9a64a;
}

/* card grid: 351px cards with 27px gaps */
.insights-grid {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -14px;
}
.insights-grid > .insights-col {
    width: 33.3333%;
    padding: 0 14px;
    margin-bottom: 61px;
}
.insights-card {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    background-color: #ffffff;
    border: 1px solid #ffffff;
    color: #000000;
    text-decoration: none;
}
/* the 2px line under each card */
.insights-card:after {
    content: "";
    position: absolute;
    left: -1px;
    right: -1px;
    bottom: -9px;
    height: 2px;
    background-color: #ffffff;
}
a.insights-card:hover,
a.insights-card:focus {
    color: #000000;
    text-decoration: none;
}
a.insights-card:hover .insights-card-title {
    color: #e28a26;
}
.insights-card-image {
    position: relative;
    display: block;
    padding-top: 56.41%;
    background-color: #f9a64a;
    overflow: hidden;
}
.insights-card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}
a.insights-card:hover .insights-card-image img {
    transform: scale(1.04);
}
.insights-play {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 51px;
    height: 51px;
    margin: -25.5px 0 0 -25.5px;
    border: 3px solid #ffffff;
    border-radius: 50%;
    filter: drop-shadow(1px 2px 4px rgba(0, 0, 0, 0.45));
}
.insights-play:after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    margin: -9px 0 0 -5px;
    border-style: solid;
    border-width: 9px 0 9px 15px;
    border-color: transparent transparent transparent #ffffff;
}
.insights-card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 8px 11px 0;
}
.insights-type {
    display: flex;
    align-items: center;
    font-family: latoregular;
    font-size: 14px;
    line-height: 17px;
    letter-spacing: -0.01em;
    text-transform: uppercase;
    color: #000000;
    margin: 0 0 8px;
}
.insights-type:after {
    content: "";
    flex: 1;
    height: 1px;
    margin-left: 8px;
    background-color: #000000;
}
.insights-card-title {
    font-family: latobold;
    font-size: 18px;
    line-height: 22px;
    letter-spacing: -0.01em;
    color: #000000;
    margin: 0 0 9px;
    transition: color 0.2s;
}
.insights-meta {
    font-family: latoregular;
    font-size: 12px;
    line-height: 14px;
    letter-spacing: -0.01em;
    color: #000000;
    margin: 0 0 14px;
}
.insights-meta span + span:before {
    content: "|";
    margin: 0 6px;
}
.insights-card-summary {
    font-family: latoregular;
    font-size: 14px;
    line-height: 17px;
    letter-spacing: -0.01em;
    color: #000000;
    margin: 0 0 19px;
    flex: 1;
}
.insights-action {
    display: flex;
    align-items: center;
    border-top: 1px solid #000000;
    padding: 12px 0 6px;
    font-family: latoregular;
    font-size: 12px;
    line-height: 14px;
    letter-spacing: -0.01em;
    color: #000000;
}
.insights-action svg {
    flex: 0 0 auto;
    width: 25px;
    height: 25px;
    margin-right: 8px;
}

/* post pages (blog/*.html) */
/* logo artwork 546 x 213 at 120, 126 (the image adds 5.6px of shadow on each side) */
.insights-post {
    padding-top: 38px;
    padding-bottom: 134px;
}
.insights-post .insights-logo {
    max-width: 557px;
    margin-left: -14px;
    margin-bottom: 28px;
}
.insights-kind {
    font-family: "Montserrat", sans-serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 22px;
    letter-spacing: -0.01em;
    color: #ffffff;
    margin: 0 0 24px;
}
.insights-kind a {
    font-weight: 700;
    color: #f9a64a;
    margin: 0 10px;
    text-decoration: none;
}
.insights-kind a:hover,
.insights-kind a:focus {
    color: #ffffff;
    text-decoration: none;
}
.insights-headline {
    font-family: "Montserrat", sans-serif;
    font-weight: 400;
    font-size: 32px;
    line-height: 39px;
    letter-spacing: -0.01em;
    color: #f9a64a;
    max-width: 1109px;
    margin: 0 0 38px;
}

/* full-width info bar: orange for blog posts, white for podcasts */
.insights-bar {
    background-color: #f9a64a;
    border-top: 1px solid #ffffff;
    border-bottom: 1px solid #ffffff;
    margin: 0 0 34px;
}
.insights-bar.is-light {
    background-color: #ffffff;
    border-color: #f9a64a;
}
.insights-bar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    min-height: 31px;
    padding-top: 6px;
    padding-bottom: 6px;
}
/* Bootstrap's clearfix pseudo-elements would act as flex items */
.insights-bar .container:before,
.insights-bar .container:after {
    display: none;
}
.insights-bar .insights-meta {
    font-size: 16px;
    line-height: 19px;
    color: #000000;
    margin: 0;
}
.insights-topic {
    font-family: latobold;
    font-size: 16px;
    line-height: 19px;
    letter-spacing: -0.01em;
    color: #000000;
}

/* blog post: article + "In this article" card */
.insights-layout {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}
.insights-main {
    flex: 0 1 67.6%;
    min-width: 0;
}
.insights-layout .insights-aside {
    flex: 0 0 27.96%;
}
/* blog image: 750 x 422 including the 2px frame, 130px from the left */
.insights-main .insights-media {
    margin-left: 2px;
    padding-top: calc(56.25% - 4px);
    margin-bottom: 24px;
}

/* main image / video with an orange frame */
.insights-media {
    position: relative;
    display: block;
    width: 100%;
    padding-top: 56.25%;
    margin: 0 0 26px;
    border: 2px solid #f9a64a;
    background-color: #000000;
    overflow: hidden;
}
.insights-media img,
.insights-media iframe,
.insights-media video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    object-fit: cover;
}
.insights-media video {
    object-fit: contain;
}
.insights-media .insights-play {
    width: 101px;
    height: 101px;
    margin: -50.5px 0 0 -50.5px;
    border-width: 5px;
    filter: drop-shadow(0 4px 4px rgba(0, 0, 0, 0.25));
}
.insights-media .insights-play:after {
    margin: -17px 0 0 -9px;
    border-width: 17px 0 17px 28px;
}

/* article text */
.insights-content p,
.insights-content li {
    font-family: latoregular;
    font-size: 16px;
    line-height: 19px;
    letter-spacing: -0.01em;
    color: #ffffff;
}
.insights-content p {
    margin: 0 0 19px;
}
.insights-content > :last-child {
    margin-bottom: 0;
}
.insights-content h2 {
    font-family: latobold;
    font-size: 17px;
    line-height: 1.3;
    color: #ffffff;
    margin: 0 0 18px;
}
.insights-content h3 {
    font-family: latobold;
    font-size: 16px;
    color: #f9a64a;
    margin: 28px 0 12px;
}
.insights-content ul,
.insights-content ol {
    margin: 0 0 20px;
    padding-left: 22px;
}
.insights-content li {
    margin-bottom: 6px;
}
.insights-content a {
    color: #f9a64a;
}
.insights-highlight {
    margin: 19px 0 25px;
    padding: 15px 10px 16px;
    background-color: rgba(255, 255, 255, 0.21);
    box-shadow: inset 0 4px 4px rgba(0, 0, 0, 0.25);
    border: 1px solid #f9a64a;
}
.insights-content .insights-highlight p {
    font-family: latobold;
    font-size: 18px;
    line-height: 22px;
    margin: 0;
}
/* quote: 3px orange bar, text 10px from the bar */
.insights-content blockquote {
    margin: 5px 0 19px;
    padding: 5px 0 10px 7px;
    border-left: 3px solid #f9a64a;
    font-size: inherit;
    font-style: normal;
    font-weight: normal;
    line-height: inherit;
}
.insights-content blockquote p {
    margin: 0;
}

/* more from the admin editor: small headings, orange text, alignment, lines,
   pictures with captions, tables and videos inside the article */
.insights-content h4 {
    font-family: latobold;
    font-size: 15px;
    line-height: 1.3;
    color: #ffffff;
    margin: 22px 0 10px;
}
.insights-content .insights-orange {
    color: #f9a64a;
}
.insights-content .insights-align-center {
    text-align: center;
}
.insights-content .insights-align-right {
    text-align: right;
}
.insights-content .insights-align-justify {
    text-align: justify;
}
.insights-content ul ul,
.insights-content ol ol,
.insights-content ul ol,
.insights-content ol ul {
    margin: 6px 0 0;
}
.insights-content sup,
.insights-content sub {
    font-size: 75%;
    line-height: 0;
}
.insights-content hr {
    margin: 28px 0;
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.35);
}
.insights-content p img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}
.insights-figure {
    margin: 0 0 24px;
}
.insights-figure img {
    display: block;
    max-width: 100%;
    height: auto;
}
.insights-figure.insights-align-center img {
    margin: 0 auto;
}
.insights-figure.insights-align-right img {
    margin-left: auto;
}
.insights-figure figcaption {
    margin-top: 8px;
    font-family: latoregular;
    font-size: 13px;
    line-height: 16px;
    color: #b9b9c3;
}
.insights-table {
    width: 100%;
    margin: 0 0 24px;
    border-collapse: collapse;
}
.insights-table th,
.insights-table td {
    padding: 8px 10px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-family: latoregular;
    font-size: 15px;
    line-height: 19px;
    color: #ffffff;
    text-align: left;
    vertical-align: top;
}
.insights-table th {
    font-family: latobold;
    background-color: rgba(249, 166, 74, 0.18);
}
.insights-embed {
    position: relative;
    margin: 0 0 24px;
    padding-top: 56.25%;
    border: 2px solid #f9a64a;
    background-color: #000000;
}
.insights-embed iframe,
.insights-embed video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
@media (max-width: 767px) {
    .insights-table {
        display: block;
        overflow-x: auto;
    }
}

/* podcast video: 1107 x 623 including the 2px frame, 130px from the left */
.insights-podcast {
    padding-bottom: 156px;
}
.insights-podcast .insights-media {
    width: calc(100% - 2px);
    margin-left: 2px;
    padding-top: calc(56.18% - 4px);
}

/* podcast overview: Lato Bold 16 / 19, a blank line between paragraphs */
.insights-podcast .insights-content h2,
.insights-podcast .insights-content p,
.insights-podcast .insights-content li {
    font-family: latobold;
    font-weight: normal;
    font-size: 16px;
    line-height: 19px;
    letter-spacing: -0.01em;
    color: #ffffff;
}
.insights-podcast .insights-content h2,
.insights-podcast .insights-content p {
    margin: 0 0 19px;
}

/* "In this article" card */
.insights-aside {
    margin-bottom: 30px;
}
.insights-aside .insights-card {
    padding: 18px 11px 0;
    height: auto;
}
.insights-aside .insights-type {
    font-size: 14px;
    line-height: 17px;
    margin-bottom: 4px;
}
.insights-aside ul {
    list-style: none;
    margin: 0 0 16px;
    padding: 0;
}
.insights-aside li {
    font-family: latoregular;
    font-size: 12px;
    line-height: 14px;
    letter-spacing: -0.01em;
    color: #000000;
    margin-bottom: 14px;
}
.insights-aside li:before {
    content: "\2022";
}
.insights-aside li:last-child {
    margin-bottom: 0;
}
/* SHARE — (in) — (X) ———— */
.insights-share {
    display: flex;
    align-items: center;
    border-top: 1px solid #000000;
    padding: 10px 0 7px;
    font-family: latoregular;
    font-size: 14px;
    line-height: 17px;
    letter-spacing: -0.01em;
    text-transform: uppercase;
    color: #010006;
}
.insights-share:after {
    content: "";
    flex: 1;
    height: 1px;
    background-color: #010006;
    margin-left: 10px;
}
.insights-share a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 25px;
    height: 25px;
    border: 1px solid #000000;
    border-radius: 50%;
    color: #000000;
    font-size: 13px;
    transition: background-color 0.2s, color 0.2s;
}
.insights-share .insights-share-line {
    flex: 0 0 25px;
    height: 1px;
    margin: 0 7px;
    background-color: #010006;
}
.insights-share .insights-share-line:first-of-type {
    margin-left: 8px;
}
.insights-share a:hover,
.insights-share a:focus {
    background-color: #f9a64a;
    border-color: #f9a64a;
    text-decoration: none;
}

@media (max-width: 991.98px) {
    .insights-grid > .insights-col {
        width: 50%;
    }
    .insights-tagline {
        font-size: 24px;
    }
}
@media (max-width: 767.98px) {
    .insights-logo,
    .insights-post .insights-logo {
        margin-left: -6px;
    }
    .insights {
        margin-top: 60px;
        padding: 25px 0 50px;
        background-size: 200% auto, 200% auto;
    }

    /* phones: compact cards (image left, text right) so the list needs much less scrolling.
       Scope to the list grid — the detail-page "In this article" card uses .insights-card too. */
    .insights-grid {
        margin: 0;
    }
    .insights-grid > .insights-col {
        width: 100%;
        padding: 0;
        margin-bottom: 12px;
    }
    .insights-grid .insights-card {
        flex-direction: row;
        align-items: stretch;
        height: auto;
    }
    .insights-grid .insights-card:after,
    .insights-grid .insights-card-summary,
    .insights-grid .insights-action {
        display: none;
    }
    .insights-card-image {
        flex: 0 0 38%;
        padding-top: 0;
        min-height: 96px;
    }
    .insights-card-body {
        justify-content: center;
        min-width: 0;
        padding: 8px 10px;
    }
    .insights-type {
        font-size: 11px;
        line-height: 13px;
        margin-bottom: 4px;
    }
    .insights-card-title {
        font-size: 15px;
        line-height: 18px;
        margin-bottom: 4px;
    }
    .insights-meta {
        font-size: 11px;
        line-height: 14px;
        margin: 0;
    }
    .insights-meta span + span:before {
        margin: 0 4px;
    }
    .insights-play {
        width: 34px;
        height: 34px;
        margin: -17px 0 0 -17px;
        border-width: 2px;
    }
    .insights-play:after {
        margin: -6px 0 0 -3px;
        border-width: 6px 0 6px 10px;
    }
    .insights-tagline {
        font-size: 20px;
        line-height: 26px;
    }
    .insights-intro {
        font-size: 15px;
        line-height: 20px;
        margin-bottom: 25px;
    }
    .insights-filter {
        font-size: 16px;
        margin-bottom: 30px;
    }
    .insights-post,
    .insights-podcast {
        padding-top: 25px;
        padding-bottom: 50px;
    }
    .insights-podcast .insights-media,
    .insights-main .insights-media {
        width: 100%;
        margin-left: 0;
        padding-top: 56.25%;
    }
    .insights-post .insights-logo {
        max-width: 260px;
    }
    .insights-kind {
        font-size: 16px;
        margin-bottom: 15px;
    }
    .insights-headline {
        font-size: 22px;
        margin-bottom: 25px;
    }
    .insights-bar .insights-meta,
    .insights-topic {
        font-size: 13px;
    }
    .insights-media .insights-play {
        width: 64px;
        height: 64px;
        margin: -32px 0 0 -32px;
        border-width: 4px;
    }
    .insights-media .insights-play:after {
        margin: -11px 0 0 -6px;
        border-width: 11px 0 11px 18px;
    }
    .insights-layout {
        display: block;
    }
    /* full-width card under the article: title, points and share stacked, not in a row */
    .insights-aside {
        margin-top: 28px;
    }
    .insights-aside .insights-card {
        flex-direction: column;
        align-items: stretch;
        height: auto;
    }
    .insights-aside .insights-type,
    .insights-aside ul,
    .insights-aside .insights-share {
        width: 100%;
        min-width: 0;
    }
}

/* podcast video: thumbnail link that turns into the player */
a.insights-video {
    cursor: pointer;
}
a.insights-video .insights-play {
    transition: transform 0.2s, background-color 0.2s;
}
a.insights-video:hover .insights-play,
a.insights-video:focus .insights-play {
    transform: scale(1.08);
    background-color: rgba(249, 166, 74, 0.35);
}

/* "In this article" bullets: a dot with a gap before the text (the old glyph touched the first word) */
.insights-aside li {
    position: relative;
    padding-left: 12px;
}
.insights-aside li:before {
    content: "";
    position: absolute;
    top: 5px;
    left: 1px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background-color: currentColor;
}

/* SHARE row at the end of the article, on the dark page: white lines and icons.
   Blog posts show it on phones and tablets (wide screens have it in the white card); podcasts always. */
.insights-share-end {
    display: none;
    max-width: 420px;
    margin-top: 34px;
    border-top-color: rgba(255, 255, 255, 0.45);
    color: #ffffff;
}
.insights-share-end.is-always {
    display: flex;
}
.insights-share-end:after,
.insights-share-end .insights-share-line {
    background-color: rgba(255, 255, 255, 0.45);
}
.insights-share-end a {
    border-color: #ffffff;
    color: #ffffff;
}
.insights-share-end a:hover,
.insights-share-end a:focus {
    color: #000000;
}

/* phones and tablets: the "In this article" card goes under the article, full width and easy to read,
   with the share row at its foot as on wide screens */
@media (max-width: 991.98px) {
    .insights-layout {
        display: flex;
        flex-direction: column;
    }
    .insights-main {
        flex: none;
        width: 100%;
    }
    .insights-layout .insights-aside {
        flex: none;
        width: 100%;
        margin: 36px 0 0;
    }
    .insights-aside:not(.has-points) {
        display: none;
    }
    .insights-share-end {
        display: flex;
    }
    .insights-aside .insights-card {
        padding: 18px 20px 20px;
    }
    .insights-aside .insights-type {
        font-size: 13px;
        line-height: 16px;
        letter-spacing: 0.06em;
        margin-bottom: 14px;
    }
    .insights-aside ul {
        margin: 0 0 18px;
    }
    .insights-aside li {
        font-size: 15px;
        line-height: 22px;
        letter-spacing: 0;
        margin-bottom: 12px;
        padding-left: 18px;
    }
    .insights-aside li:before {
        top: 8px;
        width: 6px;
        height: 6px;
        background-color: #f9a64a;
    }
}
