/*!
Theme Name: China Briefing News 2026
Theme URI: https://underscores.me/
Author: China Briefing
Author URI: https://www.china-briefing.com/
Description: China Briefing 2026 Theme Optimized for Lead Gen
Version: 1.0.5
Tested up to: 5.4
Requires PHP: 5.6
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: cb_2026
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned.

China Briefing News 2026 is based on Underscores https://underscores.me/, (C) 2012-2020 Automattic, Inc.
Underscores is distributed under the terms of the GNU GPL v2 or later.

Normalizing styles have been helped along thanks to the fine work of
Nicolas Gallagher and Jonathan Neal https://necolas.github.io/normalize.css/
*/


/* The Lock Effect */
.article-gated-section.is-locked {
    max-height: 180px; /* Shows more of the text before cutting off */
    overflow: hidden;
    position: relative;
    pointer-events: none; /* Prevents text copying */
    margin-bottom: 0; /* Removes bottom spacing so the form sits flush */
	margin-top: 0;
}
.article-gated-section p:first-child:empty{display: none;}

/* The Fade Gradient */
.article-gated-section.is-locked::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 180px;
    background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, rgba(255,255,255,1) 95%);
}

.article-gated-section>*+* {
    margin-top: var(--space-5);
}
.sharedaddy,.jp-relatedposts{display: none;}
table.table{
    width: 100% !important;
    height: auto !important;
}

.input-wrap .input:focus + .field-placeholder,
.input-wrap .input:not(:placeholder-shown) + .field-placeholder {
  top: 10px;
  font-size: 10px !important;
  color: var(--primary-color);
}
body.page{all: revert;}
.highlighted-cta p:empty{display: none !important;margin: 0 !important;}
.highlighted-cta h2{margin-top:0 !important;margin-bottom: 1rem !important;}
.highlighted-cta p:not(:empty) ~ p:not(:empty) {margin-top: var(--space-5) !important;}
.listen-language:empty,.listen-language:not(:has(*)) {padding-bottom:0 !important;}

/* Wordpress CSS */
.article-body img{width: revert-layer !important;max-width: 100%;}
.article-body div.wp-caption {border:1px solid solid 1px #FFFFFF;display: block;padding: 5px;margin: 10px 0;box-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);}
.article-body div.wp-caption .wp-caption-text{padding:10px 10px 0px 10px;font-size:11px;color:#333; text-align:center; margin-bottom:0px; line-height:18px;}
.article-body div.wp-caption.aligncenter{max-width: 98%;margin:20px auto;}
.article-body img.size-full{max-width:100%; height:auto; box-shadow:none; margin-bottom:0px; margin-top:0px; margin-right:30px;}
.article-body img.alignnone{max-width:100%; height:auto; border:none; margin:0px;margin-right:10px;}
.article-body .alignright{float:right;margin-left:10px;}
.article-body .alignleft{float:left;margin-right:10px;}
.article-body .aligncenter.size-full{padding:3px;border:1px solid #EAEAEA;margin:10px auto;max-width:100%; height:auto;}
.article-body .size-large{max-width:100%; height:auto;}
.article-body .aligncenter, img.aligncenter { clear: both; display: block; margin-left: auto; margin-right: auto; max-width:100%; height:auto;}

@media print {
    .article-gated-section.is-locked {
        display: none !important;
    }
    #article-gate-form-wrapper {
        display: none !important;
    }
}