/* Blog sections (/news/, /breaches/, /guides/ and posts). Loaded only there, see inc/bellcrier-blog.php.
   Uses the theme's colour tokens, so it follows the site's dark and light modes. */

.bcn-page { padding: 40px 0 72px; }
.bcn-wrap {
    max-width: calc(var(--page-max) + 2 * var(--page-gutter));
    margin: 0 auto;
    padding: 0 var(--page-gutter);
}

/* Two columns: content up to 840px, sidebar 320px. One column below 1024px. */
.bcn-layout {
    display: grid;
    grid-template-columns: minmax(0, 840px) 320px;
    justify-content: center;
    gap: 48px;
    align-items: start;
}
.bcn-main { min-width: 0; container-type: inline-size; }
@media (max-width: 1023px) {
    .bcn-layout { grid-template-columns: minmax(0, 1fr); gap: 40px; }
}

/* List page header */
.bcn-head { max-width: calc(840px + 48px + 320px); margin: 0 auto 24px; }
.bcn-head .content-page-title { margin: 0 0 6px; }
.bcn-head__desc { margin: 0; color: var(--text-secondary); font-size: 16px; }

/* Shared meta line: date, updated, reading time */
.bcn-meta {
    display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0;
    margin: 0 0 6px; font-size: 13px; color: var(--text-secondary);
}
.bcn-meta > * + *::before { content: ""; display: inline-block; width: 3px; height: 3px; margin: 0 8px; border-radius: 50%; background: currentColor; vertical-align: middle; opacity: .7; }

/* Cards on the list */
.bcn-list { display: flex; flex-direction: column; gap: 16px; }
.bcn-card {
    position: relative;
    display: grid; grid-template-columns: 272px minmax(0, 1fr); gap: 20px; align-items: center;
    padding: 12px;
    background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px;
    transition: border-color .15s ease, transform .15s ease;
}
.bcn-card:hover { border-color: var(--primary); }
.bcn-card.no-image { grid-template-columns: minmax(0, 1fr); padding: 18px 20px; }
.bcn-card__img { aspect-ratio: 1200 / 630; border-radius: 10px; overflow: hidden; background: var(--sf-100, #172236); }
.bcn-card__img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.bcn-card__body { min-width: 0; padding-right: 8px; }
.bcn-card__title {
    margin: 0 0 6px; font-size: 19px; line-height: 1.3;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.bcn-card__title a { color: var(--text-primary); text-decoration: none; }
.bcn-card__title a::after { content: ""; position: absolute; inset: 0; border-radius: 14px; }
.bcn-card:hover .bcn-card__title a { color: var(--primary); }
.bcn-card__title a:focus-visible { outline: none; }
.bcn-card:focus-within { border-color: var(--primary); box-shadow: 0 0 0 2px var(--primary-light, rgba(59,130,246,.25)); }
.bcn-card__excerpt {
    margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--text-secondary);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* First story on page 1: picture on top, bigger title */
.bcn-card.is-lead { grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 12px 12px 18px; }
.bcn-card.is-lead .bcn-card__body { padding: 0 8px; }
.bcn-card.is-lead .bcn-card__title { font-size: 25px; }

@media (max-width: 700px) {
    .bcn-card { grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 10px 10px 14px; }
    .bcn-card__body { padding: 0 4px; }
    .bcn-card__title, .bcn-card.is-lead .bcn-card__title { font-size: 18px; }
}

.bcn-main .pagination { margin-top: 28px; }

/* Single story */
.bcn-crumbs { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font-size: 13px; }
.bcn-crumbs a { color: var(--text-secondary); text-decoration: none; }
.bcn-crumbs a:hover { color: var(--primary); }
.bcn-crumbs i { font-size: 9px; color: var(--text-secondary); opacity: .7; }
.bcn-title { margin: 0 0 8px; line-height: 1.2; text-wrap: balance; color: var(--text-primary); }
.bcn-article > .bcn-meta { margin-bottom: 18px; font-size: 14px; }
.bcn-hero { margin: 0 0 24px; }
.bcn-hero img { display: block; width: 100%; height: auto; border-radius: 12px; }

/* Free check box inside the story (inserted by mu-plugins/bc-news.php) */
.bc-news-check {
    margin: 2em 0; padding: 18px 20px;
    border: 1px solid var(--border); border-radius: 14px; background: var(--sf-cta, var(--band-cta, #0D1A33));
}
.bc-news-check p { margin: 0 0 .6em; }
.bc-news-check p:last-child { margin: 0; }
.bc-news-check-title { font-weight: 700; font-size: 1.1em; color: var(--text-primary); }
.prose .bc-news-check a.btn { display: inline-block; text-decoration: none; color: var(--on-accent, #FCFCFD); }

/* Share links */
.bcn-share { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 28px 0 0; padding-top: 18px; border-top: 1px solid var(--border); }
.bcn-share__label { margin-right: 4px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-secondary); }
.bcn-share__btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 12px; border: 1px solid var(--border); border-radius: 999px;
    background: transparent; color: var(--text-primary); font: inherit; font-size: 13px; line-height: 1.2;
    text-decoration: none; cursor: pointer;
}
.bcn-share__btn:hover { border-color: var(--primary); color: var(--primary); }
.bcn-share__native { background: var(--primary); border-color: var(--primary); color: var(--on-accent, #FCFCFD); }
.bcn-share__native:hover { color: var(--on-accent, #FCFCFD); background: var(--primary-dark); }
.bcn-share.has-native .bcn-share__net { display: none; }
.bcn-share__btn[hidden] { display: none !important; }

/* Keep reading */
.bcn-more { margin-top: 36px; }
.bcn-more__title { margin: 0 0 14px; font-size: 20px; color: var(--text-primary); }
.bcn-more__row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.bcn-more__card { display: flex; flex-direction: column; gap: 8px; text-decoration: none; }
.bcn-more__img { display: block; aspect-ratio: 1200 / 630; border-radius: 10px; overflow: hidden; background: var(--sf-100, #172236); }
.bcn-more__img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.bcn-more__name {
    font-size: 15px; font-weight: 600; line-height: 1.35; color: var(--text-primary);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.bcn-more__card:hover .bcn-more__name { color: var(--primary); }
.bcn-more__card time { font-size: 12.5px; color: var(--text-secondary); }
@media (max-width: 700px) {
    .bcn-more__row { grid-template-columns: minmax(0, 1fr); gap: 12px; }
    .bcn-more__card { display: grid; grid-template-columns: 120px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 12px; row-gap: 2px; align-items: start; }
    .bcn-more__img { grid-row: span 2; }
    .bcn-more__name { align-self: end; }
}

/* Sidebar */
.bcn-side { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.bcn-widget { padding: 18px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; }
.bcn-widget__title { margin: 0 0 12px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-secondary); }
.bcn-check { background: var(--sf-cta, var(--band-cta, #0D1A33)); border-color: var(--primary-light, rgba(59,130,246,.35)); }
.bcn-check .bcn-widget__title { margin-bottom: 4px; font-size: 17px; letter-spacing: 0; text-transform: none; color: var(--text-primary); }
.bcn-check__text { margin: 0 0 12px; font-size: 14px; color: var(--text-secondary); }
.bcn-check .btn { display: block; width: 100%; text-align: center; text-decoration: none; }

.bcn-recent { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.bcn-recent__item { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 12px; align-items: center; padding: 6px; margin: 0 -6px; border-radius: 10px; text-decoration: none; }
.bcn-recent__item:hover { background: var(--sf-100, rgba(255,255,255,.04)); }
.bcn-recent__img { display: block; width: 56px; aspect-ratio: 1; border-radius: 8px; overflow: hidden; background: var(--sf-100, #172236); }
.bcn-recent__img img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 28%; } /* the photo, above the headline text */
.bcn-recent__title {
    font-size: 14px; font-weight: 600; line-height: 1.35; color: var(--text-primary);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.bcn-recent__item:hover .bcn-recent__title { color: var(--primary); }
.bcn-recent__text time { display: block; margin-top: 2px; font-size: 12px; color: var(--text-secondary); }

.bcn-links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.bcn-links a { display: flex; align-items: center; gap: 10px; padding: 7px 0; font-size: 14px; color: var(--text-primary); text-decoration: none; line-height: 1.35; }
.bcn-links a:hover { color: var(--primary); }
.bcn-tools i { width: 16px; text-align: center; color: var(--primary); }

@media (max-width: 1023px) {
    .bcn-recent li:nth-child(n+5) { display: none; }
    /* On a story, "Keep reading" sits right above the sidebar: skip the second list. */
    .bcn-article ~ .bcn-side .bcn-latest { display: none; }
}
.bcn-widget__title a { color: inherit; text-decoration: none; }
.bcn-widget__title a:hover { color: var(--primary); }
.bcn-standards { margin: 12px 0 0; font-size: 13px; }
.bcn-standards a { color: var(--text-secondary); }
.bcn-standards a:hover { color: var(--primary); }
/* "One check is not enough" box (inc/bellcrier-blog.php) */
.bc-news-monitor { margin: 2em 0; padding: 18px 20px; border: 1px solid var(--primary-light, rgba(59,130,246,.35)); border-left: 3px solid var(--primary); border-radius: 14px; background: var(--bg-card); }
.bc-news-monitor p { margin: 0 0 .6em; }
.bc-news-monitor p:last-child { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.prose .bc-news-monitor a.btn { display: inline-block; text-decoration: none; color: var(--on-accent, #FCFCFD); }
.prose .bc-news-monitor .bc-news-monitor__free { font-size: 14px; color: var(--text-secondary); }


/* Click-to-play video ([bc_video] shortcode, inc/bellcrier-blog.php) */
.bc-video { margin: 24px 0 28px; }
.bc-video-link { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #0B1220; }
.bc-video-link img { display: block; width: 100%; height: 100%; object-fit: cover; margin: 0; transition: transform .3s ease; }
.bc-video-link:hover img { transform: scale(1.02); }
.bc-video-play { position: absolute; inset: 0; margin: auto; width: 74px; height: 52px; border-radius: 14px; background: rgba(11, 18, 32, .82); box-shadow: 0 6px 24px rgba(0, 0, 0, .35); transition: background .2s ease; }
.bc-video-play::after { content: ""; position: absolute; top: 50%; left: 52%; transform: translate(-50%, -50%); border-style: solid; border-width: 11px 0 11px 19px; border-color: transparent transparent transparent #fff; }
.bc-video-link:hover .bc-video-play, .bc-video-link:focus-visible .bc-video-play { background: #2563EB; }
.bc-video-link:focus-visible { outline: 3px solid #2563EB; outline-offset: 3px; }
.bc-video-len { position: absolute; left: 10px; bottom: 10px; padding: 2px 7px; border-radius: 6px; background: rgba(11, 18, 32, .85); color: #fff; font-size: 13px; font-weight: 700; line-height: 1.5; }
.bc-video iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 12px; background: #0B1220; }
.bc-video figcaption { margin-top: 8px; font-size: 14px; line-height: 1.5; color: var(--text-secondary); }

/* Long hub titles ("Data breach and identity theft guides") stay on 2 lines on small phones. */
.bcn-head .content-page-title.is-long{font-size:min(var(--fs-page-title),calc((100vw - 40px) / 13));}
