/*
Theme Name: Intellinews Pro
Theme URI: https://pro.intellinews.com
Author: IntelliNews
Description: Intellinews PRO subscriber site. Reads articles from the Central CMS (Site 1) through the "Intellinews Central Content Connector" plugin.
Version: 2.9.3
Requires at least: 5.5
Requires PHP: 7.4
License: Proprietary
Text Domain: intellinews-pro
*/

/* Article body (comes from the Central CMS editor) */
.brief-content {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 15px;
    line-height: 1.7;
    color: #1A1A1A;
}

.brief-content>*+* {
    margin-top: 16px;
}

.brief-content p {
    margin: 0;
}

.brief-content h2 {
    font-family: 'IBM Plex Serif', serif;
    font-weight: 700;
    font-size: 20px;
    line-height: 1.3;
    color: #111;
    margin-top: 28px;
}

.brief-content h3 {
    font-family: 'IBM Plex Serif', serif;
    font-weight: 700;
    font-size: 17px;
    line-height: 1.3;
    color: #111;
    margin-top: 22px;
}

.brief-content ul {
    list-style: disc;
    padding-left: 1.4em;
}

.brief-content ol {
    list-style: decimal;
    padding-left: 1.4em;
}

.brief-content a {
    color: #D71920;
    text-decoration: underline;
}

.brief-content blockquote {
    border-left: 3px solid #D71920;
    padding: 4px 0 4px 16px;
    font-family: 'IBM Plex Serif', serif;
    font-style: italic;
    color: #333;
}

.brief-content img,
.brief-content video,
.brief-content iframe {
    max-width: 100%;
    height: auto;
}

.brief-content figure {
    margin: 24px 0;
}

/* Article body, more: pictures of any size, PDFs and files, tables, lists, wrapping pictures.
   The video player (.intn-video) has its own style from the connector plugin and is left alone. */
.brief-content {
    overflow-wrap: anywhere;
    min-width: 0;
}

.brief-content img {
    display: block;
    margin-left: auto;
    margin-right: auto;
    border-radius: 4px;
}

.brief-content figure:not(.intn-video) {
    max-width: 100%;
}

.brief-content figure:not(.intn-video) img {
    margin: 0 auto;
}

.brief-content figcaption,
.brief-content .wp-caption-text {
    margin-top: 8px;
    font-size: 13px;
    line-height: 1.5;
    color: #6B6B6B;
}

.brief-content .wp-caption {
    max-width: 100%;
}

.brief-content .aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 640px) {
    .brief-content .alignleft {
        float: left;
        max-width: 50%;
        margin: 6px 24px 16px 0;
    }

    .brief-content .alignright {
        float: right;
        max-width: 50%;
        margin: 6px 0 16px 24px;
    }
}

.brief-content::after {
    content: "";
    display: block;
    clear: both;
}

.brief-content ul,
.brief-content ol {
    display: flow-root;
}

.brief-content li+li {
    margin-top: 8px;
}

.brief-content hr {
    border: 0;
    border-top: 1px solid #E2E8F0;
    margin: 28px 0;
}

.brief-content table,
.brief-content embed,
.brief-content object,
.brief-content .wp-block-file,
.brief-content hr {
    clear: both;
}

.brief-content table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    border-collapse: collapse;
    font-size: 14px;
    line-height: 1.45;
}

.brief-content th,
.brief-content td {
    border: 1px solid #E2E8F0;
    padding: 8px 12px;
    min-width: 110px;
    text-align: left;
    vertical-align: top;
    overflow-wrap: normal;
    word-break: normal;
}

.brief-content th {
    background: #F5F4F0;
    font-weight: 700;
    white-space: nowrap;
}

/* PDF and other embedded files: the full column width, a readable height */
.brief-content embed,
.brief-content object,
.brief-content iframe:not(.intn-video__iframe) {
    display: block;
    width: 100%;
    max-width: 100%;
    border: 1px solid #E2E8F0;
    border-radius: 4px;
}

.brief-content embed,
.brief-content object,
.brief-content iframe[src*=".pdf"] {
    height: 70vh;
    min-height: 420px;
    max-height: 900px;
}

.brief-content .wp-block-file {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid #E2E8F0;
    border-radius: 4px;
    background: #FFFFFF;
}

.brief-content .wp-block-file a:not(.wp-block-file__button) {
    font-weight: 600;
    word-break: break-word;
}

.brief-content a.wp-block-file__button {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 4px;
    background: #111111;
    color: #FFFFFF;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

/* A link to a PDF gets a small label, so it is clear what opens */
.brief-content a[href$=".pdf" i]::after {
    content: "PDF";
    display: inline-block;
    margin-left: 6px;
    padding: 1px 5px;
    border: 1px solid currentColor;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 700;
    line-height: 14px;
    letter-spacing: 0.4px;
    vertical-align: 2px;
    text-decoration: none;
}

.brief-content .wp-block-file a[href$=".pdf" i]::after {
    content: none;
}

.brief-content pre {
    max-width: 100%;
    overflow-x: auto;
    padding: 14px 16px;
    background: #F5F4F0;
    border-radius: 4px;
    font-size: 14px;
}

@media (max-width: 639px) {

    .brief-content embed,
    .brief-content object,
    .brief-content iframe[src*=".pdf"] {
        height: 60vh;
        min-height: 320px;
    }
}

@media print {

    .brief-content embed,
    .brief-content object,
    .brief-content iframe:not(.intn-video__iframe) {
        display: none;
    }
}

/* Generic pages */
.entry-content>*+* {
    margin-top: 1em;
}

.entry-content h2 {
    font-family: 'IBM Plex Serif', serif;
    font-weight: 700;
    font-size: 22px;
    margin-top: 1.5em;
}

.entry-content h3 {
    font-family: 'IBM Plex Serif', serif;
    font-weight: 700;
    font-size: 18px;
    margin-top: 1.25em;
}

.entry-content ul {
    list-style: disc;
    padding-left: 1.5em;
}

.entry-content ol {
    list-style: decimal;
    padding-left: 1.5em;
}

.entry-content a {
    color: #D71920;
    text-decoration: underline;
}

/* Small message ("Link copied") */
.inpro-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    background: #111;
    color: #fff;
    padding: 10px 16px;
    border-radius: 4px;
    font: 500 13px 'IBM Plex Sans', sans-serif;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s;
}

.inpro-toast.is-visible {
    opacity: 1;
}

/* Print: only the article */
@media print {
    .inpro-no-print {
        display: none !important;
    }

    body {
        background: #fff !important;
    }

    a {
        color: inherit !important;
        text-decoration: none !important;
    }
}

/* "+2" mark: shows the other names on hover, keyboard focus or tap */
.inpro-more {
    position: relative;
    cursor: help;
    border-radius: 3px;
    outline-offset: 2px;
}

.inpro-more::after {
    content: attr(data-tip);
    position: absolute;
    left: 0;
    bottom: calc(100% + 8px);
    width: max-content;
    max-width: 240px;
    background: #111;
    color: #fff;
    font: 500 12px/1.4 'IBM Plex Sans', sans-serif;
    text-transform: none;
    letter-spacing: 0;
    text-align: left;
    white-space: normal;
    padding: 6px 10px;
    border-radius: 4px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .15s;
    z-index: 30;
}

.inpro-more:hover::after,
.inpro-more:focus::after {
    opacity: 1;
    visibility: visible;
}

/* Print: keep pictures on the page, and print a video as its title (a video cannot be printed) */
@media print {

    article figure img,
    .brief-content img {
        max-height: 90mm;
        width: auto;
        max-width: 100%;
        object-fit: contain;
    }

    figure {
        break-inside: avoid;
    }

    .intn-video__frame {
        display: none !important;
    }

    .intn-video {
        margin: 8px 0;
    }

    .intn-video__title::before {
        content: "Video: ";
        font-weight: 600;
    }

    h1,
    h2,
    h3,
    blockquote {
        break-inside: avoid;
        break-after: avoid;
    }
}

/* Filters: "partly selected" box and scroll position of the feed */
.filter-checkbox-input:indeterminate {
    background-color: #D71920;
    border-color: #D71920;
}

.filter-checkbox-input:indeterminate::after {
    content: '';
    position: absolute;
    left: 2.5px;
    top: 5.5px;
    width: 8px;
    height: 0;
    border-top: 2px solid #fff;
}

.filter-card-header .filter-checkbox-label {
    flex: 1 1 auto;
}

#inpro-feed {
    scroll-margin-top: 16px;
}

/* Long filter panels scroll inside themselves; the Apply button stays in view below */
#inpro-panel-regions .filter-cards-grid,
#inpro-panel-topics .filter-cards-grid {
    max-height: min(55vh, 440px);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-right: 6px;
}

/* Link to the Regional Matrix from the footer */
#regional-matrix {
    scroll-margin-top: 16px;
}

/* Saved Searches panel (same look as the original design) */
#inpro-panel-saved {
    margin-top: 24px;
    background-color: #FFFFFF;
    border: 1px solid #E9E2D6;
    border-radius: 6px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    box-sizing: border-box;
    max-width: 100%;
}

#inpro-panel-saved.hidden {
    display: none;
}

@media (min-width: 640px) {
    #inpro-panel-saved {
        padding: 32px;
    }
}

#inpro-panel-saved .saved-searches-grid {
    max-height: min(55vh, 440px);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-right: 6px;
}

/* Topics: when the topics have no groups, one box across the full width with the topics in columns */
.inpro-card-wide {
    grid-column: 1 / -1;
}

.inpro-card-wide .filter-card-content {
    display: block;
    column-count: 1;
    column-gap: 28px;
}

.inpro-card-wide .filter-card-content>label {
    break-inside: avoid;
    margin-bottom: 10px;
}

@media (min-width: 640px) {
    .inpro-card-wide .filter-card-content {
        column-count: 2;
    }
}

@media (min-width: 1024px) {
    .inpro-card-wide .filter-card-content {
        column-count: 4;
    }
}

/* ------------------------------------------------------------------ *
 * Article page: headline, callout, main picture, summary, PDF, video
 * ------------------------------------------------------------------ */

.inpro-art-title {
    margin: 6px 0 0;
    max-width: 860px;
    font-family: 'IBM Plex Serif', Georgia, serif;
    font-weight: 700;
    font-size: 30px;
    line-height: 1.25;
    letter-spacing: -0.3px;
    color: #111111;
    text-wrap: balance;
    overflow-wrap: anywhere;
}

@media (max-width: 639px) {
    .inpro-art-title {
        font-size: 24px;
        letter-spacing: -0.2px;
    }
}

/* The short line under the headline */
.inpro-art-callout {
    max-width: 860px;
    margin: 6px 0 10px;
    padding-left: 16px;
    border-left: 3px solid #FFD600;
}

.inpro-art-callout p {
    margin: 0;
    font-family: 'IBM Plex Serif', Georgia, serif;
    font-style: italic;
    font-weight: 400;
    font-size: 18px;
    line-height: 1.6;
    color: #333333;
}

@media (max-width: 639px) {
    .inpro-art-callout p {
        font-size: 16px;
    }
}

/* Main picture: one fixed frame, so every size looks the same */
.inpro-feature {
    margin: 14px 0 0;
}

.inpro-feature__frame {
    width: 100%;
    aspect-ratio: 16 / 9;
    max-height: 460px;
    overflow: hidden;
    border-radius: 4px;
    background: #18181B;
}

.inpro-feature__frame img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
}

.inpro-feature__cap {
    margin-top: 10px;
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 13px;
    line-height: 1.5;
    color: #444444;
}

.inpro-feature__credit {
    display: inline-block;
    margin-left: 6px;
    color: #777777;
    font-size: 12px;
}

.inpro-feature__credit a {
    color: inherit;
    text-decoration: underline;
}

/* Body text a little larger, like the free site */
.brief-content {
    font-size: 16px;
    line-height: 1.75;
}

.brief-content>*+* {
    margin-top: 20px;
}

/* A video never sits beside a floated picture; it uses the full column */
.brief-content .intn-video {
    clear: both;
    width: 100%;
    max-width: 100%;
    margin: 28px 0;
}

.brief-content .intn-video__title {
    font-size: 13px;
    color: #444444;
}

/* Summary box (same as the free site) */
.inpro-summary {
    margin: 8px 0 0;
    padding: 16px 20px;
    border-left: 3px solid #FFD600;
    background: #F5F4F0;
}

.inpro-summary__label {
    display: block;
    margin-bottom: 8px;
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: #666666;
}

.inpro-summary p {
    margin: 0;
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: #222222;
}

/* PDF of the article: a card with the file name and a button */
.inpro-file {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 8px;
    padding: 14px 16px;
    border: 1px solid #E2E8F0;
    border-radius: 4px;
    background: #FFFFFF;
}

.inpro-file__icon {
    display: flex;
    flex: 0 0 auto;
}

.inpro-file__text {
    display: flex;
    flex: 1 1 200px;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.inpro-file__label {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #D71920;
}

.inpro-file__name {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    color: #111111;
    overflow-wrap: anywhere;
}

.inpro-file__btn {
    flex: 0 0 auto;
    display: inline-block;
    padding: 10px 18px;
    border-radius: 4px;
    background: #111111;
    color: #FFFFFF;
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
}

.inpro-file__btn:hover {
    background: #D71920;
}

@media (max-width: 479px) {
    .inpro-file__btn {
        width: 100%;
        text-align: center;
    }
}

/* ------------------------------------------------------------------ *
 * Article page: back link, breadcrumb, reading badge, category line
 * ------------------------------------------------------------------ */

.inpro-crumbs-row {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding-top: 22px;
    padding-bottom: 26px;
}

@media (min-width: 1024px) {
    .inpro-crumbs-row {
        padding-top: 36px;
        padding-bottom: 32px;
    }
}

.inpro-back {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    color: #111111;
    text-decoration: none;
    transition: color .15s;
}

.inpro-back img {
    width: 12px;
    height: 12px;
}

.inpro-back:hover {
    color: #D71920;
}

.inpro-crumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 10px;
    min-width: 0;
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 13px;
    line-height: 1.3;
    letter-spacing: 0.2px;
    color: #888680;
}

.inpro-crumbs a {
    color: inherit;
    text-decoration: none;
    transition: color .15s;
}

.inpro-crumbs a:hover,
.inpro-crumbs a:focus-visible {
    color: #D71920;
}

.inpro-crumbs__sep {
    color: #C9C6BC;
    font-size: 15px;
}

.inpro-crumbs__item {
    color: #333333;
    font-weight: 600;
}

.inpro-crumbs__more {
    margin-left: 6px;
    color: #D71920;
    font-size: 12px;
    font-weight: 700;
}

.inpro-crumbs__item.inpro-more::after {
    left: 0;
}

/* Navy badge, same family as the free site */
.inpro-reading {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    border-radius: 2px;
    background: #2D2B6D;
    color: #FFFFFF;
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 1px;
    text-transform: uppercase;
    white-space: nowrap;
    user-select: none;
}

.inpro-reading__dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #FFD600;
    box-shadow: 0 0 0 3px rgba(255, 214, 0, .25);
}

/* Region · Country · Industry above the headline */
.inpro-cats {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 10px;
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.inpro-cats a {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color .15s, color .15s;
}

.inpro-cats a:hover,
.inpro-cats a:focus-visible {
    border-bottom-color: currentColor;
}

.inpro-cats__item--region {
    color: #D71920;
}

.inpro-cats__item--country {
    color: #111111;
}

.inpro-cats__item--industry {
    color: #6B6B6B;
}

.inpro-cats__dot {
    color: #C9C6BC;
    font-size: 16px;
    line-height: 1;
}

.inpro-cats__more {
    margin-left: 6px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.4px;
}

/* ------------------------------------------------------------------ *
 * Article body: quotes, lists, video, picture credit, PDF
 * ------------------------------------------------------------------ */

.brief-content blockquote {
    position: relative;
    margin: 28px 0;
    padding: 20px 24px 20px 28px;
    border-left: 4px solid #FFD600;
    border-radius: 0 6px 6px 0;
    background: #F5F4F0;
    font-family: 'IBM Plex Serif', Georgia, serif;
    font-style: italic;
    font-size: 19px;
    line-height: 1.6;
    color: #222222;
}

.brief-content blockquote p {
    margin: 0;
}

.brief-content blockquote p+p {
    margin-top: 12px;
}

.brief-content blockquote cite,
.brief-content blockquote footer {
    display: block;
    margin-top: 12px;
    font-family: 'IBM Plex Sans', sans-serif;
    font-style: normal;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.4px;
    color: #6B6B6B;
}

.brief-content ul,
.brief-content ol {
    padding-left: 1.7em;
}

.brief-content ul {
    list-style: disc;
}

.brief-content ol {
    list-style: decimal;
}

.brief-content li {
    padding-left: 4px;
}

.brief-content ul li::marker {
    color: #D71920;
    font-size: 1.1em;
}

.brief-content ol li::marker {
    color: #D71920;
    font-weight: 700;
}

.brief-content li+li {
    margin-top: 10px;
}

.brief-content li>ul,
.brief-content li>ol {
    margin-top: 10px;
}

.brief-content li>ul {
    list-style: circle;
}

/* Video: frame with border, rounded corners and a soft shadow, and a VIDEO label before its title */
.brief-content .intn-video__frame {
    border: 1px solid #D9D6CC;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(17, 17, 17, .10);
}

.brief-content .intn-video__title {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin: 12px 0 0;
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    color: #222222;
}

.brief-content .intn-video__title::before {
    content: "Video";
    flex: 0 0 auto;
    padding: 3px 7px;
    border-radius: 2px;
    background: #FFD600;
    color: #111111;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Picture caption and credit: larger */
.inpro-feature__frame {
    border-radius: 8px;
}

.inpro-feature__cap {
    margin-top: 12px;
    font-size: 14px;
    line-height: 1.55;
    color: #333333;
}

.inpro-feature__credit {
    display: inline-block;
    margin-left: 8px;
    font-size: 13px;
    font-weight: 500;
    color: #666666;
}

/* PDF card */
.inpro-file {
    gap: 16px;
    margin-top: 12px;
    padding: 16px 18px;
    border: 1px solid #E2E0D8;
    border-left: 4px solid #D71920;
    border-radius: 6px;
    background: #FFFFFF;
    box-shadow: 0 6px 20px rgba(17, 17, 17, .08);
    transition: box-shadow .2s, transform .2s;
}

.inpro-file:hover {
    box-shadow: 0 10px 28px rgba(17, 17, 17, .14);
    transform: translateY(-1px);
}

.inpro-file__icon {
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 52px;
    border-radius: 6px;
    background: #FDEDEE;
}

.inpro-file__label {
    font-size: 11px;
}

.inpro-file__name {
    font-size: 15px;
}

.inpro-file__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    box-shadow: 0 4px 10px rgba(17, 17, 17, .18);
    transition: background .15s, box-shadow .15s;
}

.inpro-file__btn:hover {
    box-shadow: 0 6px 14px rgba(215, 25, 32, .35);
}

/* Spacing rhythm of the article top (all steps from the 4 / 8 / 12 / 16 scale) */
.inpro-cats {
    gap: 6px 12px;
    margin-bottom: 4px;
    padding-bottom: 2px;
}

.inpro-cats__more,
.inpro-crumbs__more {
    margin-left: 8px;
}

.inpro-crumbs__home {
    color: #6B6B6B;
}

.inpro-crumbs {
    padding-bottom: 2px;
}

.inpro-reading {
    margin-top: 2px;
}

/* Author row and share row: even breathing room */
.article-author-row {
    padding-top: 18px;
    padding-bottom: 18px;
    margin-top: 6px;
}

.article-social-row {
    padding-top: 14px;
    padding-bottom: 14px;
}

@media (max-width: 639px) {
    .inpro-crumbs-row {
        padding-top: 18px;
        padding-bottom: 20px;
    }
}