/* BPCT Stock Analysis 1.2.3. Scoped to limit impact outside BPCT screens. */
.bpct-index,.bpct-single-shell,.bpct-gate,.bpct-register-notice{box-sizing:border-box;font-family:inherit}
.bpct-index *,.bpct-single-shell *,.bpct-gate *,.bpct-register-notice *{box-sizing:border-box}
section.bpct-index,
.bpct-single-shell{
  width:100%;max-width:var(--bpct-index-width,1240px);
  margin:10px auto 52px;padding:0 14px;color:#202b39;font-family:inherit;
}
section.bpct-index.bpct-index-wide{
  width:min(var(--bpct-index-width,1240px),calc(100vw - 48px));max-width:none;
  position:relative;left:50%;transform:translateX(-50%);margin-left:0;margin-right:0;
}
.bpct-index .bpct-intro{padding:0 0 18px;margin:0 0 24px;border-bottom:1px solid #e6e9ee}
.bpct-index .bpct-eyebrow{font-size:12px;letter-spacing:.13em;font-weight:800;color:#a51e31;margin:0 0 6px}
.bpct-index .bpct-intro h2{font-size:clamp(24px,3vw,34px);margin:0 0 8px;line-height:1.22;color:#1c2634}
.bpct-index .bpct-intro p:last-child{font-size:14px;color:#697789;margin:0}
.bpct-index .bpct-breadcrumb{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:0 0 18px;color:#7d8796;font-size:13px}
.bpct-index .bpct-breadcrumb a{color:#56708f!important;text-decoration:none!important}
.bpct-index .bpct-breadcrumb a:hover{color:#a52230!important}
.bpct-index .bpct-layout,
.bpct-single-layout{display:grid;grid-template-columns:minmax(0,1fr);column-gap:32px;align-items:start}
.bpct-index.bpct-has-sidebar .bpct-layout,
.bpct-single-has-sidebar .bpct-single-layout{grid-template-columns:minmax(0,1fr) 314px}
.bpct-index .bpct-main,.bpct-single-main{min-width:0}
.bpct-index form.bpct-filter{display:flex;align-items:stretch;gap:10px;margin:0 0 14px;padding:0;background:transparent;border:0;box-shadow:none}
.bpct-index .bpct-filter input[type=search]{flex:1;min-width:0;min-height:50px;max-height:none;width:100%;margin:0;padding:12px 16px;
  border:1px solid #dce2e8;border-radius:8px;background:#fff;box-shadow:none;font-size:14px;color:#233148;font-family:inherit}
.bpct-index .bpct-filter button,.bpct-button{display:inline-flex;align-items:center;justify-content:center;min-height:50px;
  margin:0;padding:10px 24px;border:0;border-radius:8px;background:#c62839;color:#fff!important;font-family:inherit;
  font-size:14px;font-weight:700;cursor:pointer;text-decoration:none!important;white-space:nowrap}
.bpct-index .bpct-filter button:hover,.bpct-button:hover{background:#a61f2e;color:#fff!important}
.bpct-index .bpct-filter input:focus-visible,.bpct-index .bpct-filter button:focus-visible,
.bpct-index a:focus-visible,.bpct-single-shell a:focus-visible,.bpct-button:focus-visible{outline:3px solid #a72432;outline-offset:3px}
.bpct-index .bpct-listing-count{margin:2px 0 12px;font-size:13px;color:#687386}
.bpct-index .bpct-articles{display:block}
section.bpct-index article.bpct-article-card{
  display:grid;grid-template-columns:245px minmax(0,1fr);column-gap:23px;
  align-items:center;margin:0 0 14px;padding:14px;background:#fff;border:1px solid #e6ebf1!important;
  border-radius:12px!important;box-shadow:0 1px 8px rgba(16,32,60,.04)!important;overflow:hidden;
}
section.bpct-index article.bpct-article-card:hover{box-shadow:0 6px 18px rgba(16,32,60,.08)!important;background:#fff!important}
.bpct-index .bpct-card-picture{display:block;width:100%;height:auto!important;min-height:0!important;
  aspect-ratio:16/9;background:#f0f2f4;overflow:hidden;border-radius:10px}
.bpct-index .bpct-card-picture img{display:block;width:100%;height:100%!important;max-width:none;aspect-ratio:16/9;object-fit:cover;
  border-radius:10px;transition:transform .2s ease}
.bpct-index .bpct-card-picture:hover img{transform:scale(1.025)}
.bpct-index .bpct-picture-placeholder{display:flex;flex-direction:column;justify-content:center;align-items:center;
  width:100%;height:100%;min-height:0;gap:5px;color:#e7effa;font-size:10px;font-weight:800;line-height:1.4;text-align:center;
  background:linear-gradient(135deg,#22304a,#435573)}
.bpct-index .bpct-picture-chart{font-size:32px;color:#e7a9b1}
.bpct-index .bpct-card-details{min-width:0;min-height:0;margin:0!important;padding:0!important;
  display:flex;flex-direction:column;align-items:flex-start;justify-content:center}
.bpct-index .bpct-card-meta{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:0 0 9px;font-size:11px}
.bpct-index .bpct-ticker,.bpct-index .bpct-card-status{display:inline-block;font-size:10px;font-weight:700;
  padding:4px 9px;line-height:1.3;border:0;border-radius:6px}
.bpct-index .bpct-ticker{color:#a21e2c;background:#fff0f3}
.bpct-index .bpct-status-free{background:#e9f7ee;color:#247649}
.bpct-index .bpct-status-members{background:#fff1df;color:#935b12}
.bpct-index .bpct-card-title{font-size:clamp(17px,1.45vw,21px);line-height:1.35;color:#1c2738;
  font-weight:750;letter-spacing:-.01em;margin:0 0 7px;padding:0}
.bpct-index .bpct-card-title a{color:inherit!important;text-decoration:none!important}
.bpct-index .bpct-card-title a:hover{color:#9e2230!important}
.bpct-index .bpct-card-description{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;
  font-size:13px;line-height:1.6;color:#697486;margin:0 0 10px;padding:0}
.bpct-index .bpct-card-footer{display:flex;align-items:center;justify-content:space-between;gap:14px;
  margin-top:auto;width:100%;color:#89919d;font-size:12px}
.bpct-index .bpct-card-footer time{white-space:nowrap;font-size:12px;color:#8a95a3}
.bpct-index .bpct-read-more{font-size:12px;white-space:nowrap;color:#c32638!important;font-weight:700;text-decoration:none!important}
.bpct-index .bpct-read-more:hover{text-decoration:underline!important}
.bpct-index .bpct-empty{padding:38px 18px;text-align:center;background:#fff;border:1px dashed #d7dce5;border-radius:8px;margin-top:16px}
.bpct-index .bpct-empty h3{font-size:18px;margin:0 0 8px}
.bpct-index .bpct-empty p{font-size:13px;color:#6b7280;margin:0 0 10px}
.bpct-index .bpct-empty a{font-size:13px;color:#a32431!important}
.bpct-index .bpct-pagination{display:flex;align-items:center;justify-content:center;gap:7px;flex-wrap:wrap;margin:28px 0 18px}
.bpct-index .bpct-pagination a,.bpct-index .bpct-pagination span{display:inline-flex;align-items:center;justify-content:center;
  min-width:37px;min-height:38px;padding:7px 11px;border:1px solid #e4e7ee;background:#fff;
  color:#5a6676!important;text-decoration:none!important;font-size:13px;border-radius:8px}
.bpct-index .bpct-pagination span{border:0}
.bpct-index .bpct-pagination a:hover,.bpct-index .bpct-pagination a[aria-current=page]{background:#198754;border-color:#198754;color:#fff!important}

/* Sidebar shared by directory and article page */
.bpct-index .bpct-aside,.bpct-single-shell .bpct-aside{min-width:0;position:sticky;top:34px;align-self:start}
.bpct-index .bpct-aside-block,.bpct-single-shell .bpct-aside-block{padding:18px 16px 14px;margin:0 0 16px;background:#fff;
  border:1px solid #e5e9ee;border-radius:12px;box-shadow:0 1px 8px rgba(23,35,56,.035)}
.bpct-index .bpct-aside-block h2,.bpct-single-shell .bpct-aside-block h2{font-size:17px;line-height:1.35;margin:0 0 13px;padding:0;font-weight:750;color:#1f2a39}
.bpct-index .bpct-market-note,.bpct-single-shell .bpct-market-note{font-size:12px;line-height:1.6;color:#798697;margin:8px 0 10px}
.bpct-index .bpct-latest-list,.bpct-single-shell .bpct-latest-list{margin:0;padding:0;list-style:none}
.bpct-index .bpct-latest-list li,.bpct-single-shell .bpct-latest-list li{padding:9px 0;margin:0;border-bottom:1px solid #edf0f4;list-style:none}
.bpct-index .bpct-latest-list li:last-child,.bpct-single-shell .bpct-latest-list li:last-child{border-bottom:0;padding-bottom:2px}
.bpct-index .bpct-latest-list li>a,.bpct-single-shell .bpct-latest-list li>a{display:grid;grid-template-columns:82px minmax(0,1fr);
  column-gap:11px;align-items:start;color:inherit!important;text-decoration:none!important}
.bpct-index .bpct-latest-thumb,.bpct-single-shell .bpct-latest-thumb{display:block;width:82px;aspect-ratio:16/9;overflow:hidden;background:#e7ebef;border-radius:8px}
.bpct-index .bpct-latest-thumb img,.bpct-single-shell .bpct-latest-thumb img{display:block;width:100%;height:100%!important;object-fit:cover}
.bpct-index .bpct-latest-placeholder,.bpct-single-shell .bpct-latest-placeholder{display:flex;align-items:center;justify-content:center;
  width:100%;height:100%;background:#263b54;color:#fff;font-weight:800}
.bpct-index .bpct-latest-text,.bpct-single-shell .bpct-latest-text{display:block;min-width:0}
.bpct-index .bpct-latest-title,.bpct-single-shell .bpct-latest-title{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;
  overflow:hidden;color:#253148;font-weight:700;font-size:12px;line-height:1.45}
.bpct-index .bpct-latest-date,.bpct-single-shell .bpct-latest-date{display:block;color:#8a95a6;font-size:10px;line-height:1.6;margin-top:4px}
.bpct-index .bpct-latest-list a:hover .bpct-latest-title,.bpct-single-shell .bpct-latest-list a:hover .bpct-latest-title{color:#9b2430}

.bpct-community-card{position:relative;overflow:hidden;margin:0 0 16px;padding:22px 18px;border-radius:14px;
  background:linear-gradient(145deg,#06374b,#005f63 58%,#103d7d 100%);color:#fff;box-shadow:0 8px 24px rgba(11,29,61,.16)}
.bpct-community-card-image{padding:0;background:#0a1b35}
.bpct-community-card-image a,.bpct-community-card-image img{display:block;width:100%}
.bpct-community-card-image img{height:auto;border-radius:14px}
.bpct-community-card__glow{position:absolute;inset:0;opacity:.55;background:
  radial-gradient(circle at 18% 18%,rgba(46,236,165,.26),transparent 30%),
  linear-gradient(180deg,transparent 0 62%,rgba(0,0,0,.12) 100%),
  linear-gradient(125deg,transparent 0 48%,rgba(44,202,124,.14) 49% 60%,transparent 61%) }
.bpct-community-card h2{position:relative;margin:0 0 10px;font-size:19px;line-height:1.28;font-weight:800;color:#fff}
.bpct-community-card p{position:relative;margin:0 0 14px;font-size:12px;line-height:1.7;color:#e7fbff}
.bpct-community-list{position:relative;margin:0 0 16px;padding:0;list-style:none}
.bpct-community-list li{position:relative;padding:0 0 0 18px;margin:0 0 9px;font-size:12px;line-height:1.55;color:#f0fbff;list-style:none}
.bpct-community-list li:before{content:"";position:absolute;left:0;top:6px;width:8px;height:8px;border-radius:999px;background:#32df8a;box-shadow:0 0 0 5px rgba(50,223,138,.18)}
.bpct-community-foot{position:relative;display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.bpct-community-zalo{display:inline-flex;align-items:center;justify-content:center;min-width:58px;min-height:36px;padding:8px 12px;border-radius:999px;background:rgba(255,255,255,.18);font-weight:800;font-size:14px;color:#fff;backdrop-filter:blur(3px)}
.bpct-community-button{display:inline-flex;align-items:center;justify-content:center;min-height:46px;padding:11px 16px;border-radius:10px;background:#32d975;color:#fff!important;font-size:14px;font-weight:800;text-decoration:none!important;box-shadow:0 8px 20px rgba(50,217,117,.25)}
.bpct-community-button:hover{background:#26c166}

.bpct-index .bpct-tools-promo,.bpct-single-shell .bpct-tools-promo{position:relative;overflow:hidden;margin:0;padding:22px 18px 20px;
  border-radius:14px;background:linear-gradient(120deg,#0d1e49,#193776 75%,#2157b4);color:#fff;box-shadow:0 8px 24px rgba(15,33,83,.14)}
.bpct-index .bpct-tools-promo h2,.bpct-single-shell .bpct-tools-promo h2{position:relative;font-size:14px;line-height:1.35;color:#e7f0ff;margin:0 0 10px;font-weight:800;letter-spacing:.04em}
.bpct-index .bpct-tools-promo h3,.bpct-single-shell .bpct-tools-promo h3{position:relative;font-size:22px;line-height:1.28;color:#fff;margin:0 0 10px;font-weight:800}
.bpct-index .bpct-tools-promo p,.bpct-single-shell .bpct-tools-promo p{position:relative;font-size:12px;line-height:1.7;color:#dbe7ff;margin:0 0 16px}
.bpct-index .bpct-tools-promo>a,.bpct-single-shell .bpct-tools-promo>a{position:relative;display:inline-flex;align-items:center;justify-content:center;
  background:#ffcc47;border:0;border-radius:10px;color:#13243b!important;font-size:13px;font-weight:800;
  padding:11px 14px;text-decoration:none!important}
.bpct-index .bpct-tools-promo>a:hover,.bpct-single-shell .bpct-tools-promo>a:hover{background:#ffda75}
.bpct-index .bpct-tools-pattern,.bpct-single-shell .bpct-tools-pattern{position:absolute;inset:0;opacity:.42;background:
  linear-gradient(130deg,transparent 0 52%,#2d68bf 53% 54%,transparent 55% 65%,#6fa5ff 66% 67%,transparent 68%),
  radial-gradient(circle at 88% 50%,#3b81d8 0,#1d4b89 20%,transparent 55%)}
.bpct-youtube-icon{position:absolute;right:18px;top:16px;width:42px;height:42px;border-radius:999px;background:rgba(255,255,255,.14);display:flex;align-items:center;justify-content:center;font-size:18px;font-weight:800}

/* Single article shell */
.bpct-single-shell{margin-top:8px}
.bpct-single-card{background:#fff;border:1px solid #e5e9f0;border-radius:14px;padding:20px 18px 18px;box-shadow:0 2px 12px rgba(16,32,60,.045)}
.bpct-single-card > :first-child{margin-top:0!important}
.bpct-prev-box{margin-top:22px;padding-top:18px;border-top:1px solid #e8edf3}
.bpct-prev-box a{display:flex;flex-direction:column;gap:5px;padding:16px 18px;border-radius:12px;border:1px solid #dfe6ef;background:#f9fbfc;text-decoration:none!important;color:#203045!important}
.bpct-prev-box a:hover{border-color:#cbd5e1;background:#f2f6fb}
.bpct-prev-label{font-size:12px;line-height:1.4;font-weight:800;color:#5b6b80;text-transform:uppercase;letter-spacing:.04em}
.bpct-prev-title{font-size:15px;line-height:1.55;font-weight:700;color:#203045}

/* Normalize article images */
body.single-bpct_analysis .entry-content figure.wp-block-image:not(.wp-block-gallery figure),
body.single-bpct_analysis .entry-content figure.wp-caption{
  float:none!important;clear:both!important;width:100%!important;
  max-width:var(--bpct-inline-width,820px)!important;margin:26px auto!important;text-align:center!important;
}
body.single-bpct_analysis .entry-content figure.wp-block-image:not(.wp-block-gallery figure) img,
body.single-bpct_analysis .entry-content figure.wp-caption img,
body.single-bpct_analysis .entry-content > p > img,
body.single-bpct_analysis .entry-content > p > a > img{
  display:block!important;width:100%!important;max-width:var(--bpct-inline-width,820px)!important;
  height:auto!important;aspect-ratio:16/9!important;object-fit:var(--bpct-inline-fit,contain)!important;
  margin:0 auto!important;background:#f5f7f9;border-radius:8px;
}
body.single-bpct_analysis .entry-content figure.wp-block-image figcaption,
body.single-bpct_analysis .entry-content figure.wp-caption figcaption{display:block;text-align:center;color:#6b7280;font-size:13px;margin:8px 0 0}

/* Astra polish for the single post page */
body.single-bpct_analysis .site-main article.type-bpct_analysis{padding-bottom:0}
body.single-bpct_analysis .entry-content>.bpct-single-shell{margin-bottom:22px}
body.single-bpct_analysis .ast-breadcrumbs,.single-bpct_analysis .ast-breadcrumbs{font-size:15px;margin-bottom:10px}
body.single-bpct_analysis .entry-header,.single-bpct_analysis .entry-header{margin-bottom:10px}

/* Protected content / legacy registration remain independent of catalog layout. */
.bpct-gate{max-width:100%;margin:24px 0 32px;padding:27px 22px;background:#fff8f8;
  border:1px solid #efcdd2;border-radius:8px;text-align:center;color:#29313d}
.bpct-gate-icon{font-size:26px}
.bpct-gate h2{font-size:22px;line-height:1.3;margin:8px 0 10px}
.bpct-gate p{font-size:14px;line-height:1.65;color:#576171;margin:0 0 14px}
.bpct-gate-actions{display:flex;justify-content:center;gap:10px;flex-wrap:wrap}
.bpct-button-muted{background:#34465c}.bpct-button-muted:hover{background:#25384e}
.bpct-gate-pending{display:inline-block;background:#fff0e3;color:#92531a;font-size:13px;font-weight:700;border-radius:6px;padding:9px 13px}
.bpct-register-notice{max-width:600px;margin:24px auto;padding:23px;border:1px solid #e2e7ec;border-radius:9px;text-align:center}
.bpct-register-notice p{margin:0 0 15px}.bpct-register-notice .bpct-button{margin:3px}

@media(max-width:1050px){
  .bpct-index.bpct-has-sidebar .bpct-layout,
  .bpct-single-has-sidebar .bpct-single-layout{grid-template-columns:minmax(0,1fr) 285px;gap:22px}
  section.bpct-index article.bpct-article-card{grid-template-columns:205px minmax(0,1fr);column-gap:18px}
  .bpct-index .bpct-card-title{font-size:18px}
}
@media(max-width:820px){
  .bpct-index.bpct-has-sidebar .bpct-layout,
  .bpct-single-has-sidebar .bpct-single-layout{grid-template-columns:minmax(0,1fr);row-gap:26px}
  .bpct-index .bpct-aside,.bpct-single-shell .bpct-aside{position:static;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;align-items:start}
  .bpct-index .bpct-aside-block,.bpct-single-shell .bpct-aside-block{margin:0}
  .bpct-index .bpct-tools-promo,.bpct-single-shell .bpct-tools-promo,
  .bpct-community-card{grid-column:1/-1}
  .bpct-index .bpct-card-title{font-size:19px}
}
@media(max-width:600px){
  section.bpct-index,.bpct-single-shell{padding:0 8px;margin-top:8px}
  section.bpct-index.bpct-index-wide{position:static;left:auto;transform:none;width:100%;margin-left:auto;margin-right:auto}
  .bpct-index .bpct-breadcrumb{font-size:12px;margin-bottom:13px}
  .bpct-index .bpct-filter{gap:7px}
  .bpct-index .bpct-filter input[type=search]{font-size:13px;min-height:46px}
  .bpct-index .bpct-filter button{font-size:13px;padding:9px 13px;min-height:46px}
  section.bpct-index article.bpct-article-card{grid-template-columns:142px minmax(0,1fr);column-gap:13px;padding:12px}
  .bpct-index .bpct-card-title{font-size:16px;margin-bottom:5px}
  .bpct-index .bpct-card-description{font-size:12px;line-height:1.45;-webkit-line-clamp:2;margin-bottom:6px}
  .bpct-index .bpct-card-meta{gap:4px;margin-bottom:5px}
  .bpct-index .bpct-ticker,.bpct-index .bpct-card-status{font-size:9px;padding:2px 5px}
  .bpct-index .bpct-card-footer time,.bpct-index .bpct-read-more{font-size:11px}
  .bpct-index .bpct-aside,.bpct-single-shell .bpct-aside{grid-template-columns:minmax(0,1fr)}
  .bpct-single-card{padding:16px 14px}
  .bpct-community-foot{align-items:stretch}
  .bpct-community-button{width:100%}
}
@media(max-width:420px){
  .bpct-index .bpct-filter{flex-direction:column}
  .bpct-index .bpct-filter button{width:100%}
  section.bpct-index article.bpct-article-card{grid-template-columns:118px minmax(0,1fr);gap:10px;padding:11px}
  .bpct-index .bpct-card-description{display:none}
  .bpct-index .bpct-card-title{font-size:15px}
  .bpct-index .bpct-card-footer{gap:6px;flex-wrap:wrap}
}

/* ================================================================
 * BPCT 1.2.4: dedicated pages, not nested in Astra's padded article.
 * Only .bpct-template-active pages receive these layout adjustments.
 * ================================================================ */
body.bpct-template-active #content.site-content {
    padding: 0 !important;
    background: #f8fafc;
}
body.bpct-template-active #content > .ast-container {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0;
    padding: 0 !important;
    margin: 0 !important;
}
body.bpct-template-active .bpct-full-page {
    display: block;
    width: 100%;
    min-height: 45vh;
    padding: 0 0 60px;
    margin: 0;
    float: none;
}
body.bpct-template-directory section.bpct-index,
body.bpct-template-directory section.bpct-index.bpct-index-wide {
    position: static;
    left: auto;
    transform: none;
    float: none;
    display: block;
    width: min(var(--bpct-index-width,1240px), calc(100% - 40px)) !important;
    max-width: none !important;
    margin: 0 auto;
    padding: 20px 0 0;
}
body.bpct-template-directory .bpct-index .bpct-layout {
    align-items: start;
    column-gap: 24px;
}
body.bpct-template-directory .bpct-index.bpct-has-sidebar .bpct-layout {
    grid-template-columns: minmax(0, 1fr) 336px;
}
body.bpct-template-directory .bpct-index .bpct-breadcrumb,
body.bpct-template-active .bpct-breadcrumb-top {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 15px;
    line-height: 1.6;
    color: #65768c;
    margin: 0 0 18px;
    padding: 0;
}
body.bpct-template-active .bpct-breadcrumb a,
body.bpct-template-directory .bpct-index .bpct-breadcrumb a {
    color: #1463b8 !important;
    text-decoration: none !important;
}
body.bpct-template-active .bpct-breadcrumb a:hover,
body.bpct-template-directory .bpct-index .bpct-breadcrumb a:hover {
    color: #a72234 !important;
}
body.bpct-template-directory .bpct-index .bpct-breadcrumb-sep,
body.bpct-template-active .bpct-breadcrumb-sep {
    color: #8492a6;
}
body.bpct-template-directory section.bpct-index article.bpct-article-card {
    margin-bottom: 12px;
    padding: 12px;
    grid-template-columns: 236px minmax(0,1fr);
    column-gap: 20px;
    border-radius: 11px !important;
}
body.bpct-template-directory .bpct-index .bpct-card-picture {
    border-radius: 9px;
}
body.bpct-template-directory .bpct-index .bpct-card-picture img {
    border-radius: 9px;
}
body.bpct-template-directory .bpct-index .bpct-card-title {
    font-size: 18px;
    line-height: 1.34;
}
body.bpct-template-directory .bpct-index .bpct-card-description {
    font-size: 13px;
    margin-bottom: 7px;
}
body.bpct-template-directory .bpct-index .bpct-filter button {
    background: #b12033;
}
body.bpct-template-directory .bpct-index .bpct-filter button:hover {
    background: #8a1626;
}

/* Same sidebar function renders on the directory and the standalone single. */
body.bpct-template-active .bpct-aside {
    min-width: 0;
    align-self: start;
    position: static;
    display: block;
}
body.bpct-template-active .bpct-aside-block {
    background: #fff;
    border: 1px solid #e1e7ef;
    border-radius: 11px;
    padding: 16px 15px 13px;
    box-shadow: 0 1px 6px rgba(20,40,70,.045);
    margin: 0 0 14px;
}
body.bpct-template-active .bpct-aside-block h2 {
    font-size: 17px;
    font-weight: 750;
    line-height: 1.4;
    margin: 0 0 13px;
    padding: 0;
    color: #16243b;
}
body.bpct-template-active .bpct-latest-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
body.bpct-template-active .bpct-latest-list li {
    list-style: none;
    padding: 8px 0;
    margin: 0;
    border-bottom: 1px solid #edf0f4;
}
body.bpct-template-active .bpct-latest-list li:last-child { border-bottom: 0; }
body.bpct-template-active .bpct-latest-list li a {
    display: grid;
    grid-template-columns: 74px minmax(0,1fr);
    gap: 10px;
    align-items: center;
    text-decoration: none !important;
    color: #192a42 !important;
}
body.bpct-template-active .bpct-latest-thumb {
    display: block;
    width: 74px;
    aspect-ratio: 16/9;
    overflow: hidden;
    border-radius: 6px;
    background: #e7edf5;
}
body.bpct-template-active .bpct-latest-thumb img {
    display: block;
    width: 100%;
    height: 100% !important;
    object-fit: cover;
    border-radius: 6px;
}
body.bpct-template-active .bpct-latest-placeholder {
    display: flex;
    width: 100%;height: 100%;
    align-items: center;justify-content: center;
    background: #1d3357;color: #fff;
}
body.bpct-template-active .bpct-latest-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 12px;
    line-height: 1.35;
    color: #1a2b42;
    font-weight: 750;
}
body.bpct-template-active .bpct-latest-date {
    display: block;
    font-size: 11px;
    color: #8795a7;
    margin-top: 3px;
}
body.bpct-template-active .bpct-banner {
    width: 100%;
    overflow: hidden;
    border-radius: 10px;
    background: #071a30;
    margin: 0 0 14px;
    box-shadow: 0 4px 15px rgba(25,40,75,.07);
}
body.bpct-template-active .bpct-banner a {
    display: block;
    width: 100%;
    color: inherit;
    text-decoration: none !important;
}
body.bpct-template-active .bpct-banner img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    border: 0;
    border-radius: 10px;
    object-fit: contain;
}
body.bpct-template-active .bpct-banner a:focus-visible {
    outline: 3px solid #0b85e9;
    outline-offset: 3px;
}
body.bpct-template-active .bpct-community-card,
body.bpct-template-active .bpct-youtube-promo {
    position: relative;
    padding: 20px;
    margin: 0 0 14px;
    border-radius: 10px;
    background: linear-gradient(140deg,#062c45,#005b5d 60%,#0e3061);
    color: #fff;
    overflow: hidden;
}
body.bpct-template-active .bpct-community-card h2,
body.bpct-template-active .bpct-youtube-promo h2,
body.bpct-template-active .bpct-youtube-promo h3 {
    color: #fff;
    margin: 0 0 12px;
    line-height: 1.3;
}
body.bpct-template-active .bpct-community-card h2 { font-size: 21px; }
body.bpct-template-active .bpct-youtube-promo h2 { font-size: 16px; }
body.bpct-template-active .bpct-youtube-promo h3 { font-size: 20px; }
body.bpct-template-active .bpct-community-card p,
body.bpct-template-active .bpct-youtube-promo p,
body.bpct-template-active .bpct-community-card li {
    color: #ecf7ff;
    font-size: 13px;
    line-height: 1.55;
}
body.bpct-template-active .bpct-community-card ul {
    list-style: none;
    margin: 16px 0;
    padding: 0;
}
body.bpct-template-active .bpct-community-card li {
    list-style: none;
    position: relative;
    margin: 0 0 8px;
    padding-left: 18px;
}
body.bpct-template-active .bpct-community-card li::before {
    content: '✓';position:absolute;left:0;top:0;color:#40e48b;
}
body.bpct-template-active .bpct-community-button,
body.bpct-template-active .bpct-youtube-promo a {
    display: inline-block;
    font-size: 13px;
    line-height: 1.45;
    font-weight: 800;
    padding: 11px 15px;
    color: #fff !important;
    text-decoration: none !important;
    background: #09bd7a;
    border-radius: 8px;
}
body.bpct-template-active .bpct-youtube-promo {
    background: linear-gradient(115deg,#09152b,#162d5e);
}
body.bpct-template-active .bpct-youtube-promo a { background: #e91a36; }
body.bpct-template-active .bpct-youtube-promo .bpct-play-symbol {
    float:right;font-size:24px;color:#f54050;
}

/* Dedicated post page: one outer article panel and no Astra single-post wrapper. */
body.bpct-template-single .bpct-article-page {
    width: min(var(--bpct-page-width,1240px),calc(100% - 40px));
    margin: 0 auto;
    padding: 20px 0 60px;
}
body.bpct-template-single .bpct-columns {
    display: grid;
    grid-template-columns: minmax(0,1fr);
    gap: 24px;
    align-items: start;
}
body.bpct-template-single .bpct-columns.bpct-columns-sidebar {
    grid-template-columns: minmax(0,1fr) 336px;
}
body.bpct-template-single .bpct-post-panel {
    display: block;
    min-width: 0;
    margin: 0;
    padding: 26px 30px 24px;
    background: #fff;
    border: 1px solid #e5e9f0;
    border-radius: 11px;
    color: #253449;
    box-shadow: 0 1px 7px rgba(20,42,76,.04);
    overflow-wrap: anywhere;
}
body.bpct-template-single .bpct-post-heading { margin: 0 0 23px; padding: 0 0 18px; border-bottom: 1px solid #e2e9f1; }
body.bpct-template-single .bpct-post-tickers { display: flex;align-items: center;gap:8px;flex-wrap:wrap;margin:0 0 11px; }
body.bpct-template-single .bpct-post-heading .bpct-ticker,
body.bpct-template-single .bpct-post-heading .bpct-card-status {
    display:inline-flex;
    font-size:11px;
    font-weight:750;
    border-radius:5px;
    padding:4px 9px;
    line-height:1.4;
}
body.bpct-template-single .bpct-post-heading .bpct-ticker { background:#fff0f2;color:#bc2534; }
body.bpct-template-single .bpct-post-heading .bpct-status-free { background:#e6f6ee;color:#177544; }
body.bpct-template-single .bpct-post-heading .bpct-status-members { background:#fff1df;color:#935b12; }
body.bpct-template-single .bpct-post-heading h1 {
    color: #18283e;
    font-size: clamp(25px,2.7vw,34px);
    line-height:1.25;
    font-weight:800;
    margin:0 0 13px;
    letter-spacing:-.018em;
}
body.bpct-template-single .bpct-article-dateline { font-size:13px; color:#8593a5; }
body.bpct-template-single .bpct-article-body {
    font-size:16px;
    line-height:1.83;
    color:#304156;
    min-width:0;
    margin:0;
    padding:0;
}
body.bpct-template-single .bpct-article-body > :first-child { margin-top:0; }
body.bpct-template-single .bpct-article-body h2,
body.bpct-template-single .bpct-article-body h3,
body.bpct-template-single .bpct-article-body h4 {
    color: #20334b;
    line-height:1.38;
    margin:28px 0 12px;
    font-weight:750;
}
body.bpct-template-single .bpct-article-body h2 { font-size:23px; }
body.bpct-template-single .bpct-article-body h3 { font-size:19px; }
body.bpct-template-single .bpct-article-body p { margin:0 0 18px; }
body.bpct-template-single .bpct-article-body figure.wp-block-image,
body.bpct-template-single .bpct-article-body figure.wp-caption {
    float:none !important;
    max-width:min(100%,var(--bpct-inline-width,820px)) !important;
    width:100% !important;
    clear:both;
    margin:24px auto !important;
    padding:0;
    text-align:center;
}
body.bpct-template-single .bpct-article-body figure.wp-block-image img,
body.bpct-template-single .bpct-article-body figure.wp-caption img,
body.bpct-template-single .bpct-article-body > p > img,
body.bpct-template-single .bpct-article-body > p > a > img {
    display:block !important;
    width:100% !important;
    max-width:100% !important;
    margin:0 auto !important;
    height:auto !important;
    aspect-ratio:16/9;
    object-fit:var(--bpct-inline-fit,contain);
    border-radius:8px;
    background:#f4f6fa;
}
body.bpct-template-single .bpct-article-body figcaption {
    font-size:12px;
    line-height:1.5;
    color:#7b879a;
    margin-top:8px;
}
body.bpct-template-single .bpct-previous-article {
    border-top:1px solid #e5eaf2;
    margin:26px 0 0;
    padding-top:18px;
}
body.bpct-template-single .bpct-previous-article > a {
    display:flex;align-items:center;gap:14px;
    border:1px solid #dce5f1;
    border-radius:10px;
    background:#f8fbfe;
    padding:13px 16px;
    color:#1b3758 !important;
    text-decoration:none !important;
    transition:background .2s,border-color .2s;
}
body.bpct-template-single .bpct-previous-article > a:hover {
    background:#eff6fd;
    border-color:#abc8e9;
}
body.bpct-template-single .bpct-previous-arrow {
    display:inline-flex;align-items:center;justify-content:center;
    width:40px;height:40px;
    border-radius:8px;
    color:#0e66b6;
    background:#e9f2fc;
    font-size:24px;
    flex-shrink:0;
}
body.bpct-template-single .bpct-previous-text { display:flex;flex-direction:column;gap:3px;min-width:0; }
body.bpct-template-single .bpct-previous-label {
    color:#5b7090;
    font-size:12px;
    font-weight:800;
    line-height:1.4;
    text-transform:uppercase;
    letter-spacing:.035em;
}
body.bpct-template-single .bpct-previous-title {
    color:#1b2d44;
    font-size:15px;
    font-weight:750;
    line-height:1.45;
}
body.bpct-template-single .bpct-article-comments { border-top:1px solid #e7ebf0; padding-top:16px;margin-top:24px; }
body.bpct-template-single .bpct-article-body .bpct-gate { border-radius:10px; }

@media(max-width:1050px) {
    body.bpct-template-directory .bpct-index.bpct-has-sidebar .bpct-layout,
    body.bpct-template-single .bpct-columns.bpct-columns-sidebar {
        grid-template-columns: minmax(0,1fr) 296px;
        gap:18px;
    }
    body.bpct-template-directory section.bpct-index article.bpct-article-card {
        grid-template-columns:185px minmax(0,1fr);
        gap:14px;
    }
}
@media(max-width:820px) {
    body.bpct-template-directory .bpct-index.bpct-has-sidebar .bpct-layout,
    body.bpct-template-single .bpct-columns.bpct-columns-sidebar {
        grid-template-columns:minmax(0,1fr);
        row-gap:22px;
    }
    body.bpct-template-active .bpct-aside {
        display:grid;
        grid-template-columns:repeat(2,minmax(0,1fr));
        gap:14px;
        position:static;
    }
    body.bpct-template-active .bpct-aside-block { margin:0; }
    body.bpct-template-active .bpct-banner-youtube { grid-column:1/-1;max-width:470px; }
    body.bpct-template-active .bpct-banner-zalo { align-self:start; }
}
@media(max-width:620px) {
    body.bpct-template-directory section.bpct-index,
    body.bpct-template-directory section.bpct-index.bpct-index-wide,
    body.bpct-template-single .bpct-article-page {
        width:calc(100% - 24px) !important;
        padding-top:13px;
    }
    body.bpct-template-directory .bpct-index .bpct-breadcrumb,
    body.bpct-template-active .bpct-breadcrumb-top {font-size:13px;margin-bottom:12px;}
    body.bpct-template-directory section.bpct-index article.bpct-article-card {
        grid-template-columns:138px minmax(0,1fr);
        column-gap:12px;
    }
    body.bpct-template-active .bpct-aside {grid-template-columns:minmax(0,1fr);}
    body.bpct-template-active .bpct-banner-youtube {max-width:100%;}
    body.bpct-template-single .bpct-post-panel {padding:18px 16px;}
    body.bpct-template-single .bpct-article-body {font-size:15px;line-height:1.75;}
    body.bpct-template-single .bpct-article-body h2{font-size:21px;}
    body.bpct-template-single .bpct-post-heading h1{font-size:25px;}
}
@media(max-width:430px) {
    body.bpct-template-directory section.bpct-index article.bpct-article-card {
        grid-template-columns:115px minmax(0,1fr);
        column-gap:10px;
    }
    body.bpct-template-directory .bpct-index .bpct-card-description { display:none; }
    body.bpct-template-directory .bpct-index .bpct-card-title { font-size:15px; }
}

/* BPCT 1.2.5 — Center the single-article template inside Astra's #primary.
 * Astra uses ID-based selectors (#primary and .ast-separate-container #primary)
 * that win over the v1.2.4 .bpct-article-page margin:auto declaration.
 * On phones this left the panel at x=0 with all the intended gutter on the right.
 * Scope the fix to BPCT's standalone analysis page; site header and other posts
 * continue to use the theme's normal styles. */
body.bpct-template-single main#primary.bpct-article-page {
    box-sizing: border-box;
    float: none !important;
    clear: both;
    width: min(var(--bpct-page-width, 1240px), calc(100% - 40px)) !important;
    max-width: none !important;
    margin-left: auto !important;
    margin-right: auto !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}
@media (max-width: 620px) {
    body.bpct-template-single main#primary.bpct-article-page {
        width: calc(100% - 24px) !important;
        max-width: calc(100% - 24px) !important;
        margin: 0 auto !important;
        padding: 13px 0 60px !important;
    }
    body.bpct-template-single .bpct-columns,
    body.bpct-template-single .bpct-post-panel,
    body.bpct-template-single .bpct-aside {
        min-width: 0;
        max-width: 100%;
        box-sizing: border-box;
    }
    body.bpct-template-single .bpct-post-panel img,
    body.bpct-template-single .bpct-aside img {
        max-width: 100%;
    }
}
