/* Theme additions for WordPress markup (loaded after site-frontend.css). */
.screen-reader-text{border:0;clip:rect(1px,1px,1px,1px);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute!important;width:1px;word-wrap:normal!important}
.screen-reader-text:focus{background:#fff;clip:auto!important;clip-path:none;color:#111;display:block;height:auto;left:8px;padding:10px 14px;top:8px;width:auto;z-index:100000}
@media(min-width:901px){.public-mobile-nav{display:none!important}}
body.admin-bar .header,body.admin-bar .site-page-header{top:32px!important}
body.admin-bar .public-mobile-nav{top:90px!important}
@media(max-width:782px){body.admin-bar .header,body.admin-bar .site-page-header{top:46px!important}body.admin-bar .public-mobile-nav{top:104px!important}}
/* left list hidden by the Customizer */
@media(min-width:1051px){html body .layout.kh-no-left{grid-template-columns:minmax(0,1fr) 320px!important}html body .layout.kh-no-left .news-area,html body .layout.kh-no-left .public-main{grid-column:1!important}html body .layout.kh-no-left .right-sidebar,html body .layout.kh-no-left .public-right{grid-column:2!important}}
@media(min-width:901px) and (max-width:1050px){html body .layout.kh-no-left{grid-template-columns:minmax(0,1fr)!important}html body .layout.kh-no-left .news-area,html body .layout.kh-no-left .public-main{grid-column:1!important}}
/* links inside titles inherit the title colour; whole card is clickable */
.card-title a,.related-title a{color:inherit;text-decoration:none}
.card{position:relative}
.card-title a::after{content:"";position:absolute;inset:0}
.card-badge{position:relative;z-index:2}
a.bignews,a.bignews:hover{color:inherit;text-decoration:none}
.kh-mini-list a{display:block;padding:8px 0;border-bottom:1px solid var(--site-border,#e5e5e5);font-size:14px;font-weight:700;line-height:1.5;color:var(--site-text,#111)}
.kh-mini-list a:last-child{border-bottom:0}
.kh-mini-list a:hover{color:var(--site-primary,#e53935)}
.side-box ul{list-style:none}
.side-box li{padding:6px 0;border-bottom:1px solid var(--site-border,#eee);font-size:14px}
.side-box li:last-child{border-bottom:0}
.share-btn.wa{color:#25d366!important}
.share-btn.fb{color:#1877f2!important}
.share-btn.tw{color:#111!important}
body.site-dark .share-btn.tw{color:#f2f4f7!important}
.share-btn.copy.copied{color:#0b7a37!important}
.kh-search-box{margin:10px 0}
.kh-empty{padding:30px 0;color:var(--site-muted,#666)}
.kh-article-tags{margin:18px 0 6px;display:flex;flex-wrap:wrap;gap:8px}
.kh-article-tags a{border:1px solid var(--site-border,#ddd);border-radius:999px;padding:4px 11px;font-size:12px;font-weight:700;color:var(--site-muted,#555)}
.kh-article-tags a:hover{border-color:var(--site-primary,#e53935);color:var(--site-primary,#e53935)}
.kh-page-links{margin:14px 0;font-weight:700}
.kh-footer-links a{display:block}
/* WordPress content */
.alignleft{float:left;margin:4px 20px 12px 0}
.alignright{float:right;margin:4px 0 12px 20px}
.aligncenter{display:block;margin-left:auto;margin-right:auto}
.wp-caption{max-width:100%}
.wp-caption-text,.wp-element-caption,.gallery-caption{font-size:12px;line-height:1.5;color:var(--site-muted,#5c5c5c);margin-top:6px}
.article-content figure{margin:22px 0}
.article-content table{width:100%;border-collapse:collapse;margin:0 0 18px}
.article-content th,.article-content td{border:1px solid var(--site-border,#ddd);padding:8px 10px;text-align:left}
.article-content iframe,.article-content video{max-width:100%}
.article-content .wp-block-embed__wrapper{position:relative}
.article-content pre{overflow:auto;background:#f6f7f8;padding:12px;border-radius:6px;font-size:14px}
body.site-dark .article-content pre{background:#1b1f24}
/* comments */
.kh-comments{margin:18px 20px 0}
.kh-comments-title{font-size:18px;font-weight:900;margin:0 0 12px}
.kh-comment-list{list-style:none;margin:0 0 16px}
.kh-comment-list .comment{padding:12px 0;border-bottom:1px solid var(--site-border,#eee)}
.kh-comment-list .children{list-style:none;margin-left:20px}
.kh-comment-list .avatar{border-radius:50%;vertical-align:middle;margin-right:8px}
.kh-comments .comment-form input[type=text],.kh-comments .comment-form input[type=email],.kh-comments .comment-form input[type=url],.kh-comments .comment-form textarea{width:100%;padding:10px 12px;border:1px solid var(--site-border,#ddd);border-radius:7px;background:var(--site-surface,#fff);color:var(--site-text,#111);font:inherit;margin-top:4px}
.kh-comments .comment-form p{margin:0 0 12px}
.kh-comments .form-submit input{border:0;border-radius:7px;padding:11px 20px;background:var(--site-primary,#e53935);color:#fff;font-weight:900;cursor:pointer}
@media(max-width:700px){.kh-comments{margin:18px 8px 0}}
.video-card,.video-card:hover{color:inherit;text-decoration:none}
.video-card .video-title{color:var(--site-text,#111)}
.video-card:hover .video-title{color:var(--site-primary,#e53935)}
.kh-custom-html{padding:0 20px}
@media(max-width:700px){.kh-custom-html{padding:0 8px}}
/* Ads */
.kh-ad{display:block;max-width:100%;margin:14px auto;text-align:center;clear:both;overflow:hidden;line-height:1.3}
.kh-ad[data-kh-device]:not(.kh-ad-on){display:none}
.kh-ad-label{display:block;font-size:10px;line-height:14px;letter-spacing:.04em;color:var(--site-muted,#777);margin:0 0 3px}
.kh-ad-body{max-width:100%;overflow:hidden}
.kh-ad-body ins,.kh-ad-body iframe,.kh-ad-body img,.kh-ad-body video{max-width:100%}
.kh-ad-wide{max-width:1270px;margin:0 auto;padding:10px 15px 0}
.kh-ad-footer_top{padding-bottom:6px}
.news-area .kh-ad{margin:14px 8px}
.article-card .kh-ad,.article-body .kh-ad{margin:16px auto}
.footer .kh-ad{margin:18px auto 0;padding:0 15px}
.footer .kh-ad-label{color:#aaa}
.right-sidebar .kh-ad{margin:0 auto 15px}
.kh-ad-placeholder{border:2px dashed var(--site-primary,#e50914);color:var(--site-muted,#777);background:rgba(229,9,20,.04);font-size:12px;line-height:1.5;padding:22px 12px;border-radius:4px}
.kh-ad-sticky{display:none;position:fixed;left:0;right:0;bottom:0;z-index:4000;background:var(--site-surface,#fff);border-top:1px solid var(--site-border,#ddd);box-shadow:0 -2px 8px rgba(0,0,0,.08);text-align:center;padding:4px 30px 4px 4px;max-height:120px;overflow:hidden}
.kh-ad-sticky .kh-ad-label{margin-top:2px}
.kh-ad-sticky .kh-ad-placeholder{padding:10px 8px}
.kh-ad-close{position:absolute;top:2px;right:4px;width:26px;height:26px;border:0;border-radius:50%;background:rgba(0,0,0,.55);color:#fff;font-size:18px;line-height:24px;cursor:pointer;padding:0}
@media(max-width:900px){.kh-ad-sticky.kh-ad-on,.kh-ad-sticky.kh-ad-empty{display:block}body.kh-has-sticky{padding-bottom:75px!important}.kh-ad-wide{padding:8px 8px 0}}
@media(min-width:901px){.kh-ad-sticky{display:none!important}}
/* Related news (own classes, independent of the old .related-* rules): title left, photo right, like the news lists */
.kh-related{margin:18px 20px 0}
.kh-related-title{font-size:19px;line-height:1.3;font-weight:900;margin:0;padding:0 0 9px;border-bottom:2px solid var(--site-primary,#e53935);color:var(--site-text,#222)}
.kh-related-grid{display:flex;flex-direction:column}
.kh-related-card{display:flex;flex-direction:row;align-items:flex-start;gap:14px;min-width:0;padding:14px 0;border-bottom:1px solid var(--site-border,#eee);color:inherit;text-decoration:none}
.kh-related-card:last-child{border-bottom:0}
.kh-related-name{display:block;flex:1;min-width:0;font-size:18px;line-height:1.5;font-weight:700;color:var(--site-text,#222);overflow-wrap:anywhere}
.kh-related-card:hover .kh-related-name{color:var(--site-primary,#e53935)}
.kh-related-thumb{display:block;flex:0 0 144px;width:144px;aspect-ratio:4/3;border-radius:4px;overflow:hidden;background:#f2f2f2}
.kh-related-thumb img{display:block;width:100%;height:100%;object-fit:cover}
body.site-dark .kh-related-thumb{background:#24282d}
@media(max-width:700px){
.kh-related{margin:16px 8px 0}
.kh-related-card{gap:10px;padding:12px 0}
.kh-related-name{font-size:17px}
.kh-related-thumb{flex-basis:108px;width:108px}
}
/* Image banners */
.kh-ad-body a:has(>img),.kh-ad-body a:has(>picture){display:inline-block;max-width:100%;line-height:0}
.kh-ad-body picture{display:block}
.kh-ad-body img{display:block;margin:0 auto;max-width:100%;height:auto}
.footer-bottom a{display:inline;margin:0;font-size:inherit;color:#fff;text-decoration:underline}
.footer-bottom a:hover{color:#ffcc00}

/* ===== v1.4: LIVE tag, coloured headlines, article page, swipe related, side cards ===== */
.kh-live-pill{display:inline-flex;align-items:center;gap:.4em;background:var(--kh-live,#d32f2f);color:#fff;font-size:.62em;font-weight:900;line-height:1;letter-spacing:.07em;text-transform:uppercase;padding:.32em .6em .32em .5em;border-radius:5px;vertical-align:.12em;margin-right:.55em;animation:khLiveBlink 1.1s ease-in-out infinite;white-space:nowrap}
.kh-live-dot{display:inline-block;width:.72em;height:.72em;border-radius:50%;background:#fff}
@keyframes khLiveBlink{0%,100%{opacity:1}50%{opacity:.3}}
@media(prefers-reduced-motion:reduce){.kh-live-pill{animation:none}}
.kh-title-lead.kh-lead-text{color:var(--kh-lead,#d32f2f)}
.kh-title-lead.kh-lead-box{background:var(--kh-lead,#d32f2f);color:#fff;padding:.02em .38em;border-radius:6px;-webkit-box-decoration-break:clone;box-decoration-break:clone}
.card-title a{color:inherit}

/* colourful section headings */
.kh-heads-on .home-section-head{border-bottom-color:var(--kh-h,var(--site-primary,#e53935))}
.kh-heads-on .home-section-title{color:var(--kh-h,var(--site-primary,#e53935))!important}
.kh-heads-on .home-section-title::before{content:"";flex:0 0 auto;width:5px;height:1.15em;border-radius:3px;background:var(--kh-h,var(--site-primary,#e53935))}
.kh-heads-on .side-title,.kh-heads-on .kh-related-title,.kh-heads-on .kh-swipe-title{color:var(--kh-h,var(--site-primary,#e53935))!important;border-bottom-color:var(--kh-h,var(--site-primary,#e53935))!important}
.kh-heads-on .home-trending-label{color:var(--site-primary,#e53935)}

/* big news + live list */
.bignews{position:relative}
a.big-news-link,a.big-news-link:hover{display:block;color:inherit;text-decoration:none}
.kh-live-home{padding:8px 20px 14px;background:var(--site-surface,#fff)}
.kh-live-home-head{display:flex;justify-content:space-between;align-items:baseline;gap:10px;margin:2px 0 4px}
.kh-live-home-head strong{font-size:17px;font-weight:900;color:var(--site-text,#111)}
.kh-live-home-head a{font-size:14px;font-weight:900;color:var(--kh-live,#d32f2f);text-decoration:none}
.kh-live-home-row{display:block;padding:8px 0;border-bottom:1px dashed var(--site-border,#ddd);font-size:15px;line-height:1.5;font-weight:700;color:var(--site-text,#222);text-decoration:none}
.kh-live-home-row:last-child{border-bottom:0}
.kh-live-home-row b{color:var(--kh-live,#d32f2f);font-weight:900}
.kh-live-home-row:hover{color:var(--kh-live,#d32f2f)}
@media(max-width:700px){.kh-live-home{padding:6px 8px 12px}}

/* article header like the design */
.article-header .article-title{margin-top:4px}
.kh-article-cats{margin:10px 0 2px}
.kh-article-cats a{display:inline-block;margin-right:12px;font-size:15px;font-weight:900;color:var(--kh-lead,#d32f2f);text-decoration:none}
.kh-reporter{display:flex;align-items:center;gap:10px;padding:10px 0;margin:0 0 4px;border-top:1px solid var(--site-border,#e3e3e3);font-size:15px;color:var(--site-text,#222)}
.kh-reporter .author-image img{display:block;width:36px;height:36px;border-radius:50%;object-fit:cover}
.kh-reporter b{font-weight:900}
.article-body .article-excerpt{border-left:4px solid var(--kh-excerpt,#f47b20);background:transparent;border-radius:0 8px 8px 0;font-size:16px;line-height:1.6;padding:10px 14px;margin:6px 0 10px}
.kh-dates-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 0;margin:0 0 14px;border-top:1px solid var(--site-border,#e3e3e3);border-bottom:1px solid var(--site-border,#e3e3e3)}
.kh-dates{display:flex;flex-direction:column;gap:3px;font-size:14.5px;color:var(--site-muted,#555);min-width:0}
.kh-dates .kh-updated{color:#b8650a;font-weight:800}
.share-compact{gap:12px}
.share-compact .share-btn{width:42px;height:42px;padding:0}
.share-compact .share-btn svg{width:42px;height:42px}
.share-compact .share-btn.copy{color:var(--site-text,#222)!important}
.share-compact .share-btn.copy svg{width:28px;height:28px}
.share-compact .share-btn.wa{color:#25d366!important}
.kh-share-end{display:flex;justify-content:flex-end;margin:6px 0 10px}
.article-body>.kh-reporter,.article-body>.article-excerpt,.article-body>.kh-dates-row,.article-body>.kh-follow-bar,.article-body>.kh-live-feed,.article-body>.kh-article-tags,.article-body>.kh-share-end{margin-left:0;margin-right:0}

/* follow bar */
.kh-follow-bar{display:flex;align-items:center;gap:12px;margin:18px 0;padding:10px 12px 10px 14px;border-radius:999px;background:#1f6b3a;color:#fff!important;text-decoration:none!important;font-weight:800}
.kh-follow-ico{flex:0 0 38px;width:38px;height:38px;border-radius:50%;background:rgba(255,255,255,.14);display:flex;align-items:center;justify-content:center}
.kh-follow-ico svg{width:24px;height:24px}
.kh-follow-text{flex:1;min-width:0;font-size:16px;line-height:1.3}
.kh-follow-join{flex:0 0 auto;background:#fff;color:#1f6b3a;border-radius:999px;padding:7px 16px;font-size:15px;font-weight:900}

/* live feed on the article */
.kh-live-feed{margin:14px 0 20px;scroll-margin-top:70px}
.kh-live-head{display:flex;align-items:center;gap:10px;font-size:20px;font-weight:900;margin:0 0 6px;padding-bottom:8px;border-bottom:2px solid var(--kh-live,#d32f2f);color:var(--site-text,#111)}
.kh-live-head .kh-live-pill{font-size:.7em;margin-right:0}
.kh-live-item{position:relative;padding:14px 0 14px 26px;border-bottom:1px solid var(--site-border,#e3e3e3);scroll-margin-top:70px}
.kh-live-item:last-child{border-bottom:0}
.kh-live-meta{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:6px}
.kh-live-bullet{position:absolute;left:4px;top:21px;width:11px;height:11px;border-radius:50%;background:var(--kh-live,#d32f2f);box-shadow:0 0 0 4px rgba(211,47,47,.15)}
.kh-live-time{font-size:17px;font-weight:900;color:var(--kh-live,#d32f2f)}
.kh-live-date{font-size:15px;color:var(--site-muted,#777)}
.kh-live-title{font-size:20px;line-height:1.45;font-weight:900;margin:0 0 6px;color:var(--site-text,#111)}
.kh-live-text{font-size:17px;line-height:1.85;color:var(--site-text,#222)}
.kh-live-text p{margin:0 0 10px}
.kh-live-img{display:block;max-width:100%;height:auto;border-radius:8px;margin:6px 0 10px}
.kh-live-item.kh-live-new{animation:khLiveNew 2.2s ease-out}
@keyframes khLiveNew{0%{background:rgba(211,47,47,.14)}100%{background:transparent}}
.kh-live-item:target{background:rgba(211,47,47,.06)}

/* swipe related inside the article */
.kh-swipe{margin:20px 0;padding:14px 0 10px;border-top:1px solid var(--site-border,#e3e3e3);border-bottom:1px solid var(--site-border,#e3e3e3);clear:both}
.kh-swipe-head{display:flex;justify-content:space-between;align-items:baseline;margin-bottom:10px}
.kh-swipe-title{font-size:18px;font-weight:900;color:var(--site-text,#111)}
.kh-swipe-hint{font-size:13.5px;font-weight:700;color:var(--site-muted,#555)}
.kh-swipe-track{display:flex;gap:12px;overflow-x:auto;scroll-snap-type:x proximity;padding:2px 2px 6px;scrollbar-width:none;-webkit-overflow-scrolling:touch}
.kh-swipe-track::-webkit-scrollbar{display:none}
a.kh-swipe-card{flex:0 0 min(300px,72%);scroll-snap-align:start;display:flex;flex-direction:column;border:1px solid var(--site-border,#e3e3e3);border-radius:12px;overflow:hidden;background:var(--site-surface,#fff);color:inherit;text-decoration:none}
.kh-swipe-img{display:block;aspect-ratio:16/9;background:#eee;overflow:hidden}
.kh-swipe-img img{display:block;width:100%;height:100%;object-fit:cover}
.kh-swipe-name{display:block;padding:10px 12px 4px;font-size:16px;line-height:1.5;font-weight:800;color:var(--site-text,#111);display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden}
.kh-swipe-name .kh-title-lead.kh-lead-text{color:var(--kh-lead,#d32f2f)}
.kh-swipe-cat{display:block;padding:2px 12px 12px;font-size:13px;color:var(--site-muted,#777)}
.kh-swipe-bar{height:5px;border-radius:3px;background:var(--site-border,#e3e3e3);margin:6px 2px 0;position:relative;overflow:hidden}
.kh-swipe-bar i{position:absolute;left:0;top:0;bottom:0;width:40%;border-radius:3px;background:#9aa0a6}
a.kh-swipe-card:hover .kh-swipe-name{color:var(--site-primary,#e53935)}
body.site-dark .kh-swipe-img{background:#24282d}

/* sidebar cards */
.kh-cards{display:flex;flex-direction:column;gap:14px}
a.kh-sidecard{display:block;color:inherit;text-decoration:none;border-bottom:1px solid var(--site-border,#eee);padding-bottom:12px}
a.kh-sidecard:last-child{border-bottom:0;padding-bottom:0}
.kh-sidecard-img{display:block;aspect-ratio:16/9;border-radius:10px;overflow:hidden;background:#eee;margin-bottom:8px}
.kh-sidecard-img img{display:block;width:100%;height:100%;object-fit:cover}
.kh-sidecard-title{display:block;font-size:15.5px;line-height:1.5;font-weight:800;color:var(--site-text,#111)}
.kh-sidecard-cat{display:block;margin-top:3px;font-size:12.5px;color:var(--site-muted,#777)}
a.kh-sidecard:hover .kh-sidecard-title{color:var(--site-primary,#e53935)}
body.site-dark .kh-sidecard-img{background:#24282d}

/* logos: dark logo only when it exists; otherwise the light one stays in dark mode */
body.site-dark .site-logo-image.light-logo.kh-logo-only{display:block}

/* ===== v1.4.1: mobile fixes ===== */
/* WordPress admin bar scrolls away on phones (<=600px): the fixed header must not keep its 46px offset */
@media(max-width:600px){
body.admin-bar .header,body.admin-bar .site-page-header{top:0!important}
body.admin-bar .public-mobile-nav{top:58px!important}
#wpadminbar{position:absolute!important}
}
/* nothing may widen the page on phones (wide table / iframe / ad / embed) */
html,html body,body.home,body{overflow-x:clip!important}
.layout>*,.news-area,.public-main,.article-card,.article-body,.article-content,.right-sidebar{min-width:0;max-width:100%}
.article-body,.article-content{overflow-wrap:anywhere}
.article-content img,.article-content video,.article-content iframe,.article-content embed,.article-content object{max-width:100%;height:auto}
.article-content iframe{width:100%}
.article-content table{display:block;max-width:100%;overflow-x:auto}
.article-content pre{max-width:100%;overflow-x:auto}
.kh-swipe,.kh-live-feed,.kh-follow-bar,.kh-dates-row{max-width:100%;box-sizing:border-box}
.kh-swipe{overflow:hidden}
.kh-cat-ico{display:inline-block;margin-right:4px;font-style:normal;line-height:1}
.home-section-icon,.home-section-title .kh-cat-ico{font-size:.95em;margin-right:2px}
.card-category-link .kh-cat-ico,.kh-article-cats .kh-cat-ico,.big-news-category .kh-cat-ico,.kh-sidecard-cat .kh-cat-ico,.kh-swipe-cat .kh-cat-ico{margin-right:3px;font-size:.95em}
.header-menu .kh-cat-ico{margin-right:3px}
.kh-trend-pill{display:inline-flex;align-items:center;gap:3px;background:#fff1e6;color:#c2410c;border:1px solid #fdba74;border-radius:999px;padding:2px 9px;font-size:12px;font-weight:700;line-height:1.5;white-space:nowrap}
body.site-dark .kh-trend-pill{background:#3a1f0e;color:#fdba74;border-color:#7c3a10}
.kh-sidecard-cat+.kh-trend-pill{margin-left:6px}

/* category colours (Customizer > Colourful headings > By category) */
.kh-heads-category .card-category-link,.kh-heads-category .big-news-category,.kh-heads-category .kh-sidecard-cat,.kh-heads-category .kh-article-cats a{color:var(--kh-c,inherit)!important;font-weight:700}
.kh-heads-category .big-news-category{border-color:var(--kh-c,#ddd)!important}
