/*
 * Bluebird blog: the text of a post (template-parts/content/content-single.php, <article class="newsarticle bb-article">).
 * Same fonts and colours as the main website: Inter for text, Plus Jakarta Sans for headings.
 * Pasted content (from Word, Google Docs) keeps its tables, lists and headings.
 */

.newsdetail .bb-article{max-width:100%;font-family:Inter,system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;font-size:17px;line-height:1.75;color:#2D3748;text-align:left;word-wrap:break-word;overflow-wrap:break-word}
.newsdetail .bb-article *{box-sizing:border-box}

/* the theme cut every paragraph after 4 lines (line-clamp on .bloglistct p): show the whole text */
.newsdetail .bb-article p,.newsdetail .bb-article li{display:block;-webkit-line-clamp:unset;overflow:visible;font-family:inherit;font-size:inherit;line-height:inherit;color:inherit;margin:0 0 1.1em}
.newsdetail .bb-article li{display:list-item;margin:0 0 .45em}

.newsdetail .bb-article h2,.newsdetail .bb-article h3,.newsdetail .bb-article h4,.newsdetail .bb-article h5{font-family:"Plus Jakarta Sans",Inter,sans-serif;color:#0F2552;font-weight:800;line-height:1.3;margin:1.8em 0 .6em;border:0;padding:0;text-align:left}
.newsdetail .bb-article h2{font-size:27px}
.newsdetail .bb-article h3{font-size:21px;font-weight:700}
.newsdetail .bb-article h4{font-size:18px;font-weight:700}
.newsdetail .bb-article h5{font-size:16px;font-weight:700}
@media (max-width:767px){.newsdetail .bb-article h2{font-size:23px}.newsdetail .bb-article h3{font-size:19px}}
.newsdetail .bb-article strong,.newsdetail .bb-article b{font-weight:700;color:#1D2B4F}

.newsdetail .bb-article a,.newsdetail .bb-article p a{color:#1E6DEB;text-decoration:underline;text-underline-offset:2px;font-weight:500}
.newsdetail .bb-article a:hover{color:#1557c4}

/* bullet and numbered lists (the theme reset removed the bullets) */
.newsdetail .bb-article ul,.newsdetail .bb-article ol{margin:0 0 1.2em;padding-left:1.4em}
.newsdetail .bb-article ul{list-style:disc outside}
.newsdetail .bb-article ol{list-style:decimal outside}
.newsdetail .bb-article ul ul{list-style:circle;margin:.4em 0}
.newsdetail .bb-article ol ol{list-style:lower-alpha;margin:.4em 0}
.newsdetail .bb-article li::marker{color:#1E6DEB}

/* tables: borders, header row, zebra rows; scroll sideways on small screens instead of squeezing */
.newsdetail .bb-article .bb-table,.newsdetail .bb-article figure.wp-block-table{width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch;margin:0 0 1.4em;border:1px solid #E4E9F2;border-radius:12px}
.newsdetail .bb-article table{width:100%;min-width:520px;border-collapse:collapse;font-size:15px;line-height:1.5;margin:0;background:#fff}
.newsdetail .bb-article .bb-table table,.newsdetail .bb-article figure.wp-block-table table{border:0}
.newsdetail .bb-article th,.newsdetail .bb-article td{padding:11px 14px;border-bottom:1px solid #E4E9F2;border-right:1px solid #EEF2F8;text-align:left;vertical-align:top}
.newsdetail .bb-article th:last-child,.newsdetail .bb-article td:last-child{border-right:0}
.newsdetail .bb-article tr:last-child td{border-bottom:0}
.newsdetail .bb-article thead th,.newsdetail .bb-article tr:first-child th{background:#0F2552;color:#fff;font-weight:700;font-family:"Plus Jakarta Sans",Inter,sans-serif}
.newsdetail .bb-article tbody tr:nth-child(even) td{background:#F7F9FD}
.newsdetail .bb-article td p,.newsdetail .bb-article th p{margin:0}
.newsdetail .bb-article figure.wp-block-table figcaption{padding:8px 14px;font-size:13px;color:#6B7489}

/* quotes, notes, images, code */
.newsdetail .bb-article blockquote{margin:1.4em 0;padding:14px 18px;border-left:4px solid #1E6DEB;background:#F3F7FE;border-radius:0 10px 10px 0;color:#1D2B4F}
.newsdetail .bb-article blockquote p:last-child{margin:0}
.newsdetail .bb-article img{max-width:100%;height:auto;border-radius:10px}
.newsdetail .bb-article figure{margin:0 0 1.4em}
.newsdetail .bb-article figcaption{font-size:13px;color:#6B7489;margin-top:6px}
.newsdetail .bb-article hr{border:0;border-top:1px solid #E4E9F2;margin:2em 0}
.newsdetail .bb-article code{font-size:.9em;background:#F1F4FA;padding:1px 6px;border-radius:5px}
.newsdetail .bb-article pre{background:#0F2552;color:#fff;padding:14px;border-radius:10px;overflow-x:auto}
.newsdetail .bb-article pre code{background:none;padding:0;color:inherit}

/* sizes and fonts pasted from Word / Google Docs (style="font-size:96px") never override the website's text styles */
.newsdetail .bb-article [style*="font-size"]{font-size:inherit !important}
.newsdetail .bb-article [style*="font-family"]{font-family:inherit !important}
.newsdetail .bb-article [style*="line-height"]{line-height:inherit !important}
