/* KTnews 1.1 — semantic layouts, logical spacing, two color modes, no CSS framework. */
:root {
  --kn-accent: #c60018;
  --kn-bg: #f4f7f7;
  --kn-ink: #182130;
  --kn-font: "Noto Kufi Arabic", Tahoma, Arial, sans-serif;
  --kn-page: var(--kn-bg);
  --kn-text: var(--kn-ink);
  --kn-surface: #fff;
  --kn-surface-alt: #edf1f4;
  --kn-border: #dfe5eb;
  --kn-muted: #596575;
  --kn-link: var(--kn-accent);
  --kn-header: #0d1424;
  --kn-radius: 9px;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --kn-page: #0c1221; --kn-text: #f0f3fa; --kn-surface: #141d30;
  --kn-surface-alt: #202c43; --kn-border: #2c3952; --kn-muted: #b0bdd0; --kn-link: #ff7a89;
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --kn-page: #0c1221; --kn-text: #f0f3fa; --kn-surface: #141d30;
    --kn-surface-alt: #202c43; --kn-border: #2c3952; --kn-muted: #b0bdd0; --kn-link: #ff7a89;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-padding-top: 24px; }
body { margin: 0; color: var(--kn-text); background: var(--kn-page); font-family: var(--kn-font); font-size: 14px; line-height: 1.95; -webkit-text-size-adjust: 100%; }
body.ktnews-rtl { direction: rtl; }
body.ktnews-ltr { direction: ltr; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--kn-link); }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
h1, h2, h3, h4, p { margin-block-start: 0; }
h1, h2, h3, h4 { line-height: 1.85; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, summary:focus-visible, [tabindex="0"]:focus-visible { outline: 3px solid #398bea; outline-offset: 4px; }
.container { width: min(1360px, calc(100% - 48px)); margin-inline: auto; }
.icon { width: 20px; height: 20px; flex: none; vertical-align: middle; }
.screen-reader-text { border: 0; clip-path: inset(50%); height: 1px; width: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute !important; white-space: nowrap; }
.screen-reader-text:focus { clip-path: none; height: auto; width: auto; top: 10px; inset-inline-start: 10px; z-index: 999999; padding: 12px 20px; background: #fff; color: #111; white-space: normal; }
.panel, .widget { background: var(--kn-surface); border: 1px solid var(--kn-border); border-radius: var(--kn-radius); min-width: 0; }
.panel-padding { padding: 18px; }
.text-link { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; color: var(--kn-link); }
.text-link .icon { width: 15px; height: 15px; }
.ktnews-ltr .text-link .icon { transform: rotate(180deg); }
/* Header: physical right social icons, centered resources, left menu. */
.site-header { background: var(--kn-surface); }
.utility-bar { background: var(--kn-header); color: #eef2fa; }
.utility-inner { display: grid; grid-template-columns: 1fr auto 1fr; grid-template-areas: "left center right"; direction: ltr; gap: 20px; align-items: center; min-height: 45px; font-size: 10px; padding-block: 5px; }
.utility-left { grid-area: left; direction: rtl; justify-self: start; }
.utility-links { grid-area: center; direction: rtl; display: flex; align-items: center; justify-content: center; gap: 24px; }
.utility-links a, .utility-links>span { display: inline-flex; gap: 7px; align-items: center; white-space: nowrap; }
.utility-links>span { color: #b9c4d8; }
.utility-links .icon { width: 16px; height: 16px; }
.utility-menu { display: flex; flex-wrap: wrap; align-items: center; list-style: none; margin: 0; padding: 0; gap: 18px; }
.utility-right { grid-area: right; display: flex; align-items: center; justify-self: end; gap: 10px; }
.social-links { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; direction: ltr; }
.social-icon { display: inline-flex; justify-content: center; align-items: center; width: 29px; min-height: 32px; border-radius: 5px; }
.social-icon .icon { width: 17px; height: 17px; }
.utility-bar a:hover { color: #fff; background: #ffffff15; }
.theme-toggle { display: inline-flex; align-items: center; justify-content: center; width: 37px; height: 30px; color: #fff; background: #26334d; border: 1px solid #465775; border-radius: 20px; }
.theme-toggle .icon { width: 17px; height: 17px; }
.theme-toggle .mode-sun { display: none; }
.theme-toggle[aria-pressed="true"] .mode-sun { display: block; }
.theme-toggle[aria-pressed="true"] .mode-moon { display: none; }
.theme-toggle:hover { background: #3c4a65; }
.masthead { display: flex; align-items: center; gap: 60px; min-height: 140px; padding-block: 22px; }
.brand { display: flex; flex-direction: column; align-items: flex-start; flex: none; max-width: 310px; }
.brand-name { display: flex; align-items: baseline; gap: 4px; font-size: 48px; font-weight: 900; line-height: 1.4; letter-spacing: -2px; overflow-wrap: anywhere; }
.brand-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--kn-accent); flex: none; }
.brand-tagline { font-size: 10px; color: var(--kn-muted); margin-block-start: 6px; }
.brand-logo { width: auto; max-width: 260px; max-height: 90px; object-fit: contain; }
.ad-slot { display: flex; align-items: center; justify-content: center; background: var(--kn-surface-alt); color: var(--kn-muted); text-align: center; overflow: hidden; max-width: 100%; border: 1px solid var(--kn-border); }
.ad-slot--header { flex: 1; min-height: 90px; }
.ad-slot.is-placeholder>span { font-size: 10px; }
.ad-slot small { display: block; font: 700 24px/1.5 Arial, sans-serif; letter-spacing: 2px; direction: ltr; }
.ad-slot--home { min-height: 150px; margin-block: 26px; }
.ad-slot--home small { font-size: 32px; }
.ad-slot--article { min-height: 120px; margin-block: 22px; }
.ad-slot--sidebar { min-height: 250px; }
.ad-slot iframe { max-width: 100%; border: 0; }
.ad-slot.has-ad { background: transparent; }
.navigation-bar { background: var(--kn-accent); color: #fff; }
.navigation-inner { display: flex; align-items: center; gap: 20px; min-height: 54px; }
.primary-navigation { flex: 1; min-width: 0; }
.primary-navigation ul { margin: 0; padding: 0; list-style: none; }
.primary-navigation>.menu { display: flex; align-items: center; flex-wrap: wrap; }
.primary-navigation li { position: relative; }
.primary-navigation a { display: block; color: #fff; padding: 12px 14px; font-size: 12px; font-weight: 700; }
.primary-navigation a:hover, .primary-navigation a[aria-current="page"], .primary-navigation .current-menu-item>a { color: var(--kn-accent); background: #fff; }
.primary-navigation .sub-menu { display: none; position: absolute; top: 100%; inset-inline-start: 0; min-width: 220px; z-index: 40; background: var(--kn-surface); border: 1px solid var(--kn-border); box-shadow: 0 8px 20px #0002; }
.primary-navigation .sub-menu a { color: var(--kn-text); }
.primary-navigation .sub-menu a:hover { color: var(--kn-link); background: var(--kn-surface-alt); }
.primary-navigation li:hover>.sub-menu, .primary-navigation li:focus-within>.sub-menu { display: block; }
.primary-navigation .sub-menu .sub-menu { top: 0; inset-inline-start: 100%; }
.menu-toggle { display: none; align-items: center; gap: 7px; padding: 8px 12px; border: 1px solid #ffffff80; background: transparent; color: #fff; border-radius: 5px; }
.nav-search { width: 210px; flex: none; }
.search-form { display: flex; align-items: center; max-width: 100%; background: var(--kn-surface); border: 1px solid var(--kn-border); border-radius: 6px; }
.search-field { min-width: 0; width: 100%; border: 0; padding: 10px 12px; border-radius: 6px; background: transparent; color: var(--kn-text); }
.search-submit { display: flex; align-items: center; justify-content: center; width: 44px; min-height: 42px; flex: none; border: 0; color: var(--kn-link); background: transparent; }
.nav-search .search-form { background: #0002; border-color: #ffffff50; }
.nav-search .search-field { color: #fff; font-size: 10px; }
.nav-search .search-field::placeholder { color: #fff; opacity: .9; }
.nav-search .search-submit { color: #fff; }
/* Homepage and manual, keyboard-accessible slider. */
.home-main { padding-block: 26px 48px; }
.lead-layout { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 2.35fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.panel-heading { display: flex; align-items: center; gap: 9px; position: relative; margin: 0; padding: 12px 15px; font-size: 16px; font-weight: 800; border-bottom: 1px solid var(--kn-border); }
.panel-heading:before, .section-heading h2:before, .widget-title:before { content: ""; display: inline-block; width: 4px; height: 22px; background: var(--kn-accent); flex: none; }
.latest-list { list-style: none; margin: 0; padding: 0 15px; }
.latest-list li { display: flex; gap: 10px; padding-block: 14px; border-bottom: 1px solid var(--kn-border); }
.latest-list h3 { font-size: 11px; font-weight: 500; line-height: 2; margin: 0; }
.latest-list time { color: var(--kn-link); font-size: 10px; white-space: nowrap; padding-inline-end: 9px; border-inline-end: 2px solid var(--kn-accent); line-height: 2; }
.latest-all { display: flex; justify-content: flex-end; padding: 13px 15px; }
.news-slider { border-radius: var(--kn-radius); overflow: hidden; background: #101623; position: relative; }
.slider-track { min-width: 0; }
.slide-link { display: grid; min-height: 440px; position: relative; color: #fff; }
.slide-link:hover { color: #fff; }
.slide-image, .slide-copy { grid-area: 1/1; min-width: 0; }
.slide-image { position: relative; aspect-ratio: 1.45; min-height: 440px; }
.slide-image img, .slide-image>.image-placeholder { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.slide-image:after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, #000f 0%, #000b 55%, #0002 100%); }
.slide-copy { align-self: end; z-index: 1; padding: 60px 26px 56px; }
.slide-copy h2 { margin: 0; font-size: clamp(21px, 2.1vw, 30px); line-height: 1.8; font-weight: 800; text-shadow: 0 1px 4px #0008; }
.slider-controls { z-index: 3; position: absolute; inset: 0; pointer-events: none; display: flex; align-items: center; justify-content: space-between; padding: 12px; }
.slider-arrow { pointer-events: auto; width: 38px; height: 44px; border: 1px solid #ffffffa0; border-radius: 7px; background: #0008; color: #fff; display: flex; align-items: center; justify-content: center; }
.slider-arrow:hover { background: var(--kn-accent); }
.ktnews-rtl .slider-prev .icon, .ktnews-ltr .slider-next .icon { transform: rotate(180deg); }
.slider-dots { z-index: 3; display: flex; justify-content: center; gap: 4px; position: absolute; bottom: 10px; inset-inline: 0; }
.slider-dots button { position: relative; width: 28px; height: 28px; border: 0; padding: 0; background: transparent; border-radius: 50%; }
.slider-dots button:after { content: ""; position: absolute; top: 10px; left: 10px; width: 8px; height: 8px; border-radius: 50%; background: #c4c9d2; }
.slider-dots [aria-current="true"]:after { background: #fff; outline: 2px solid #fff; outline-offset: 3px; }
.news-card { min-width: 0; }
.card-link { display: block; height: 100%; }
.card-image { position: relative; overflow: hidden; background: var(--kn-surface-alt); aspect-ratio: 14/9; }
.card-image img { width: 100%; height: 100%; object-fit: cover; }
.image-placeholder { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; min-height: 70px; background: #27344c; color: #d7dfed; font-size: 22px; font-weight: 800; }
.card-copy { padding: 13px; }
.card-title { font-size: 15px; font-weight: 700; margin: 0 0 8px; line-height: 1.95; overflow-wrap: anywhere; }
.category-label { display: inline-block; color: var(--kn-link); font-size: 10px; font-weight: 800; line-height: 1.8; margin-block-end: 5px; }
.post-date { display: inline-flex; align-items: center; gap: 5px; color: var(--kn-muted); font-size: 9px; line-height: 1.7; }
.post-date .icon { width: 12px; height: 12px; }
.news-card--compact .card-link { display: flex; gap: 13px; align-items: flex-start; }
.news-card--compact .card-image { width: 88px; flex: none; border-radius: 6px; aspect-ratio: 1.15; }
.news-card--compact .card-copy { padding: 0; flex: 1; min-width: 0; }
.news-card--compact .card-title { font-size: 12px; line-height: 1.95; margin-block-end: 5px; font-weight: 600; }
.news-card--compact .category-label { font-size: 9px; }
.news-card--editorial .card-image { margin: 12px 12px 0; border-radius: 5px; aspect-ratio: 1.3; }
.news-card--editorial .card-title { font-size: 16px; text-align: center; font-weight: 800; }
.news-card--editorial .post-date { display: none; }
/* Share tools work through normal social URLs, with optional native/copy actions. */
.share-tools { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; width: 100%; }
.share-label { font-size: 12px; font-weight: 700; }
.share-links { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }
.share-icon { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--kn-border); background: var(--kn-surface-alt); color: var(--kn-text); padding: 9px; }
.share-icon .icon { width: 19px; height: 19px; }
.share-icon:hover { color: #fff; background: var(--kn-accent); border-color: var(--kn-accent); }
.share-icon.social-facebook:hover { background: #1562c4; border-color: #1562c4; }
.share-icon.social-whatsapp:hover { background: #087f4b; border-color: #087f4b; }
.share-icon.social-telegram:hover { background: #096eaa; border-color: #096eaa; }
.share-icon.social-linkedin:hover { background: #0a66c2; border-color: #0a66c2; }
.share-tools--compact { padding: 0 12px 16px; justify-content: center; }
.share-tools--compact .share-links { gap: 5px; justify-content: center; }
.share-tools--compact .share-icon { width: 32px; height: 32px; padding: 7px; }
.share-tools--compact .share-icon .icon { width: 16px; height: 16px; }
/* Image-led category sections, still using the owner's existing section settings. */
.home-sections { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; align-items: start; }
.news-section { overflow: hidden; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; margin: 0; border-bottom: 1px solid var(--kn-border); }
.section-heading h2 { display: flex; align-items: center; gap: 9px; margin: 0; font-size: 19px; font-weight: 800; }
.section-posts { padding: 12px; }
.layout-magazine .section-posts { display: grid; gap: 11px; }
.layout-magazine .news-card--standard .card-link { display: grid; position: relative; color: #fff; }
.layout-magazine .news-card--standard .card-link:hover { color: #fff; }
.layout-magazine .news-card--standard .card-image, .layout-magazine .news-card--standard .card-copy { grid-area: 1/1; }
.layout-magazine .news-card--standard .card-image { aspect-ratio: 1.75; border-radius: 5px; }
.layout-magazine .news-card--standard .card-image:after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, #000f 0%, #0008 60%, #0001); }
.layout-magazine .news-card--standard .card-copy { align-self: end; z-index: 1; padding: 24px 12px 12px; }
.layout-magazine .news-card--standard .card-title { font-size: 15px; line-height: 1.8; margin: 0; }
.layout-magazine .news-card--standard .category-label, .layout-magazine .news-card--standard .post-date { display: none; }
.layout-magazine .news-card--compact { background: var(--kn-surface-alt); padding: 10px; border-radius: 5px; }
.layout-magazine .news-card--compact .category-label { display: none; }
.layout-magazine .news-card--compact .post-date { display: none; }
.layout-grid .section-posts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.layout-grid .card-copy { padding: 9px 0; }
.layout-grid .card-title { font-size: 12px; }
.layout-list .section-posts { display: grid; gap: 14px; }
.layout-list .news-card+.news-card { border-top: 1px solid var(--kn-border); padding-block-start: 13px; }
.style-accent .section-heading { background: var(--kn-accent); color: #fff; }
.style-accent .section-heading .text-link { color: #fff; }
.style-accent .section-heading h2:before { background: #fff; }
.style-dark { --kn-surface: #141d30; --kn-surface-alt: #202c43; --kn-border: #34425d; --kn-text: #f0f3fa; --kn-muted: #b0bdd0; --kn-link: #ff7a89; background: var(--kn-surface); color: var(--kn-text); border-color: var(--kn-border); }
.special-block-content { padding: 18px; }
.special-block-content figure img { width: 100%; height: auto; border-radius: 5px; }
.special-block-content figcaption { color: var(--kn-muted); font-size: 12px; margin-block: 10px; }
.special-block-content .widget { border: 0; background: transparent; }
.special-block-content .widget-title { padding: 0 0 12px; font-size: 15px; }
.special-block-content :is(input, select, textarea) { max-width: 100%; }
.homepage-editor-content { padding: 24px; margin-block-start: 24px; }
/* Archives, standard pages and article content. */
.archive-main, .single-main, .page-main { padding-block: 25px 50px; min-height: 55vh; }
.breadcrumbs { font-size: 10px; color: var(--kn-muted); margin-block-end: 24px; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 5px 10px; margin: 0; padding: 0; list-style: none; }
.breadcrumbs li { overflow-wrap: anywhere; }
.breadcrumbs li+li:before { content: "/"; margin-inline-end: 10px; }
.breadcrumbs li:last-child { max-width: 700px; }
.archive-heading { border-bottom: 2px solid var(--kn-accent); padding-block-end: 14px; margin-block-end: 25px; }
.archive-heading h1 { font-size: 28px; margin: 0; overflow-wrap: anywhere; }
.archive-description { color: var(--kn-muted); max-width: 800px; font-size: 13px; margin-block-start: 10px; }
.archive-description p { margin: 0; }
.archive-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.archive-grid .news-card { background: var(--kn-surface); border: 1px solid var(--kn-border); border-radius: var(--kn-radius); overflow: hidden; }
.archive-grid .card-title { font-size: 17px; }
.pagination { margin-block-start: 30px; }
.nav-links { display: flex; gap: 9px; flex-wrap: wrap; justify-content: center; }
.page-numbers { display: inline-flex; min-width: 42px; min-height: 42px; align-items: center; justify-content: center; padding: 5px 12px; border: 1px solid var(--kn-border); background: var(--kn-surface); border-radius: 5px; font-size: 12px; }
.page-numbers.current { background: var(--kn-accent); color: #fff; border-color: var(--kn-accent); }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 30px; direction: rtl; align-items: stretch; }
.article-primary, .article-sidebar { min-width: 0; direction: rtl; }
.ktnews-ltr .article-primary, .ktnews-ltr .article-sidebar { direction: ltr; }
.article-header { padding: 30px 32px 22px; }
.article-title { font-size: clamp(25px, 2.7vw, 36px); line-height: 1.9; margin-block-end: 20px; overflow-wrap: anywhere; font-weight: 800; }
.article-header>.category-label { padding: 3px 12px; background: var(--kn-accent); color: #fff; border-radius: 5px; margin-block-end: 16px; }
.article-meta { display: flex; align-items: center; gap: 12px 18px; flex-wrap: wrap; color: var(--kn-muted); font-size: 10px; border-top: 1px solid var(--kn-border); padding-block-start: 16px; }
.article-meta .post-date { font-size: 10px; }
.article-meta a { color: var(--kn-text); font-weight: 700; }
.article-featured img { width: 100%; max-height: 700px; object-fit: cover; }
.article-featured figcaption { font-size: 11px; color: var(--kn-muted); padding: 9px 32px; border-bottom: 1px solid var(--kn-border); }
.entry-content { padding: 28px 32px; font-size: 17px; line-height: 2.3; overflow-wrap: anywhere; }
.entry-content>*:last-child { margin-block-end: 0; }
.entry-content h2 { font-size: 26px; margin-block: 30px 15px; }
.entry-content h3 { font-size: 22px; margin-block: 25px 13px; }
.entry-content h4 { font-size: 19px; }
.entry-content a { color: var(--kn-link); text-decoration: underline; text-underline-offset: 3px; }
.entry-content p { margin-block-end: 23px; }
.entry-content blockquote { border-inline-start: 4px solid var(--kn-accent); margin: 25px 0; padding: 14px 24px; background: var(--kn-surface-alt); font-weight: 700; }
.entry-content figure { max-width: 100%; margin-block: 22px; }
.entry-content iframe, .entry-content video { max-width: 100%; }
.entry-content table { border-collapse: collapse; width: 100%; font-size: 14px; }
.entry-content td, .entry-content th { border: 1px solid var(--kn-border); padding: 10px; }
.entry-content pre { white-space: pre-wrap; background: var(--kn-surface-alt); padding: 15px; font-size: 13px; direction: ltr; text-align: left; }
.entry-content .wp-block-image img { height: auto; }
.entry-content ul, .entry-content ol { padding-inline-start: 25px; }
.article-tags { display: flex; gap: 12px; flex-wrap: wrap; align-items: baseline; margin-inline: 32px; padding-block: 18px; border-block: 1px solid var(--kn-border); font-size: 11px; }
.article-tags>span { font-weight: 800; }
.tag-links { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-links a { background: var(--kn-surface-alt); color: var(--kn-text); padding: 4px 10px; border-radius: 5px; font-size: 10px; }
.article-footer { padding: 23px 32px 28px; }
.button, .form-submit input[type="submit"], .special-block-content button, .footer-newsletter input[type="submit"], .footer-newsletter button { display: inline-flex; align-items: center; justify-content: center; background: var(--kn-accent); border: 0; border-radius: 6px; color: #fff; padding: 10px 18px; font-size: 12px; font-weight: 700; cursor: pointer; }
.button:hover { color: #fff; filter: brightness(.9); }
.post-navigation { margin-block: 24px; }
.post-navigation .nav-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.post-navigation a { display: block; background: var(--kn-surface); padding: 17px; border: 1px solid var(--kn-border); border-radius: 7px; font-size: 12px; line-height: 2; }
.post-navigation a span { display: block; color: var(--kn-muted); font-size: 10px; margin-block-end: 5px; }
.related-stories { margin-block-end: 24px; }
.related-stories>.section-heading { font-size: 20px; }
.related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; padding: 16px; }
.related-grid .card-copy { padding: 10px 0; }
.related-grid .card-title { font-size: 12px; }
/* Sticky content is bounded by the stretched sidebar and disabled on smaller screens. */
.article-sidebar { display: flex; flex-direction: column; gap: 24px; align-self: stretch; }
.sidebar-widgets { display: grid; gap: 24px; }
.now-browsing { position: sticky; top: 24px; max-height: calc(100dvh - 48px); overflow-y: auto; overscroll-behavior: contain; }
.admin-bar .now-browsing { top: 56px; max-height: calc(100dvh - 80px); }
.widget-title { display: flex; align-items: center; gap: 9px; margin: 0; padding: 14px 16px; font-size: 17px; font-weight: 800; }
.browsing-caption { padding: 0 16px 14px; margin: 0; font-size: 10px; color: var(--kn-muted); border-bottom: 1px solid var(--kn-border); }
.sidebar-news { padding: 15px; display: grid; gap: 14px; }
.sidebar-news .news-card:first-child .card-link { display: grid; }
.sidebar-news .news-card:first-child .card-image { width: 100%; aspect-ratio: 1.65; grid-area: 1/1; border-radius: 10px; }
.sidebar-news .news-card:first-child .card-copy { grid-area: 1/1; align-self: end; padding: 25px 12px 10px; background: linear-gradient(0deg,#000e,#0008 80%,transparent); z-index: 1; color: #fff; border-radius: 0 0 10px 10px; }
.sidebar-news .news-card:first-child .category-label, .sidebar-news .news-card:first-child .post-date { display: none; }
.sidebar-news .news-card:first-child .card-title { font-weight: 700; margin: 0; font-size: 12px; }
.sidebar-news .news-card:not(:first-child) { padding: 11px; background: var(--kn-surface-alt); border-radius: 13px; }
.sidebar-news .news-card:not(:first-child) .card-image { width: 72px; aspect-ratio: 1; border-radius: 10px; }
.sidebar-news .news-card:not(:first-child) .card-title { font-size: 11px; font-weight: 500; }
.sidebar-news .news-card:not(:first-child) .post-date { display: none; }
.widget>ul, .widget>ol { padding-inline: 26px; }
.widget>.wp-block-group, .widget>.wp-block-search { padding: 16px; }
.widget .wp-block-heading { font-size: 18px; }
.widget .wp-block-search__input { min-width: 0; width: 100%; background: var(--kn-surface-alt); color: var(--kn-text); border: 1px solid var(--kn-border); border-radius: 5px; padding: 8px; }
.widget .wp-block-search__button { background: var(--kn-accent); color: #fff; border: 0; border-radius: 5px; padding: 8px 12px; font-size: 11px; }
.widget .wp-block-search__inside-wrapper { gap: 7px; }
.page-content { max-width: 960px; margin-inline: auto; padding: 30px; }
.page-content>h1 { font-size: 30px; margin-block-end: 17px; overflow-wrap: anywhere; }
.page-content .entry-content { padding: 0; }
.empty-state { padding: 48px 24px; text-align: center; max-width: 800px; margin-inline: auto; }
.empty-state h1, .empty-state h2 { font-size: 26px; }
.empty-state p { color: var(--kn-muted); }
.empty-state .search-form { max-width: 450px; margin: 20px auto; }
.empty-state .button { margin-block-start: 12px; }
.error-number { font: 900 95px/1.3 Arial, sans-serif; color: var(--kn-link); }
/* Native editor output and comments. */
.alignleft { float: left; margin: 0 20px 15px 0; }
.alignright { float: right; margin: 0 0 15px 20px; }
.aligncenter { display: block; margin-inline: auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text, .gallery-caption, .wp-element-caption { font-size: 12px; color: var(--kn-muted); }
.sticky .card-title:before { content: "●"; color: var(--kn-link); margin-inline-end: 6px; }
.entry-content:after { content: ""; display: table; clear: both; }
.gallery { display: flex; flex-wrap: wrap; gap: 12px; }
.gallery-item { max-width: 30%; margin: 0; }
.bypostauthor>.comment-body { border-inline-start: 3px solid var(--kn-accent); padding-inline-start: 16px; }
.comments-area { padding: 27px 32px; margin-block: 25px; }
.comment-list { padding: 0; list-style: none; }
.comment-list .children { list-style: none; padding-inline-start: 20px; }
.comment-body { border-bottom: 1px solid var(--kn-border); padding-block: 16px; }
.comment-author .avatar { display: inline-block; vertical-align: middle; margin-inline-end: 9px; }
.comment-metadata, .comment-reply-link, .comment-notes, .logged-in-as { font-size: 11px; color: var(--kn-muted); }
.comment-content { font-size: 14px; margin-block-start: 12px; }
.comment-respond { margin-block-start: 25px; }
.comment-form label { display: block; font-size: 12px; margin-block-end: 6px; }
.comment-form input:not([type="submit"]):not([type="checkbox"]), .comment-form textarea, .post-password-form input[type="password"], .footer-newsletter input:not([type="submit"]):not([type="checkbox"]), .footer-newsletter select { width: 100%; padding: 11px; border: 1px solid var(--kn-border); background: var(--kn-surface-alt); border-radius: 5px; color: var(--kn-text); }
.comment-form-cookies-consent { display: flex; align-items: flex-start; gap: 8px; }
.comment-form-cookies-consent input { margin-block-start: 8px; }
.comment-form-cookies-consent label { display: inline; }
.required { color: var(--kn-link); }
.page-links { display: flex; gap: 12px; margin-block: 20px; }
.wp-block-embed__wrapper { max-width: 100%; }
/* Footer: newsletter on physical right, centered large mark, topics on left. */
.site-footer { background: #10192c; color: #f0f3fa; border-top: 3px solid var(--kn-accent); --kn-surface: #141e33; --kn-surface-alt: #27364f; --kn-border: #44516a; --kn-text: #f0f3fa; --kn-muted: #bfcbdd; --kn-link: #ff8a97; }
.footer-main { display: grid; grid-template-columns: 1fr 1.15fr 1fr; gap: 55px; align-items: center; padding-block: 50px 38px; direction: rtl; }
.footer-newsletter, .footer-topics { min-width: 0; }
.footer-main h2 { font-size: 19px; margin-block-end: 18px; font-weight: 800; }
.footer-main p { color: #bfcbdd; font-size: 12px; }
.footer-brand { display: flex; flex-direction: column; align-items: center; gap: 22px; padding-block: 20px; }
.footer-brand .brand { align-items: center; max-width: 100%; text-align: center; }
.footer-brand .brand-name { font-size: clamp(33px, 3.4vw, 55px); }
.footer-brand .brand-logo { max-width: 300px; max-height: 160px; }
.footer-brand .brand-tagline { color: #bfcbdd; }
.footer-brand .social-links { justify-content: center; }
.feed-subscribe { display: inline-flex; align-items: center; gap: 9px; padding: 11px 16px; border: 1px solid #546078; border-radius: 6px; font-size: 11px; }
.footer-tag-list { display: flex; flex-wrap: wrap; gap: 8px; }
.footer-tag-list a { display: inline-flex; align-items: center; min-height: 32px; padding: 3px 10px; border: 1px solid #44516a; border-radius: 4px; font-size: 10px; }
.site-footer a:hover { color: #fff; background-color: #ffffff10; }
.footer-navigation { border-top: 1px solid #ffffff26; padding-block: 19px; }
.footer-menu, .footer-navigation .utility-menu { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 14px 26px; padding: 0; margin: 0; list-style: none; font-size: 11px; }
.footer-widgets { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 25px; padding-block-end: 28px; }
.footer-widgets .widget { background: transparent; border: 0; color: #bfcbdd; }
.footer-widgets .widget-title { padding: 0 0 12px; }
.footer-newsletter .widget { border: 0; background: transparent; }
.footer-newsletter .widget-title { padding-inline: 0; font-size: 15px; }
.footer-bottom { border-top: 1px solid #ffffff18; color: #bfcbdd; font-size: 10px; padding-block: 16px; }
.footer-bottom>.container { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer-bottom p { margin: 0; }
/* Tablet. */
@media (max-width: 1200px) {
  .primary-navigation a { padding: 12px 9px; font-size: 11px; }
  .nav-search { width: 180px; }
  .lead-layout { grid-template-columns: 230px minmax(0,1fr); }
  .lead-stories { grid-column: 2; grid-row: 1; }
  .latest-panel { grid-column: 1; grid-row: 1; }
  .editorial-panel { grid-column: 1/-1; display: grid; grid-template-columns: 160px 1fr; gap: 0 20px; align-items: center; }
  .editorial-panel .panel-heading { grid-column: 1/-1; }
  .editorial-panel .news-card .card-link { display: flex; align-items: center; gap: 18px; padding: 15px; }
  .editorial-panel .news-card { grid-column: 1/-1; }
  .editorial-panel .card-image { width: 150px; flex: none; margin: 0; aspect-ratio: 1.6; }
  .editorial-panel .card-copy { padding: 0; }
  .editorial-panel .card-title { text-align: start; font-size: 15px; }
  .editorial-panel .share-tools { grid-column: 1/-1; }
  .home-sections { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .article-layout { grid-template-columns: minmax(0,1fr) 290px; gap: 22px; }
  .utility-inner { gap: 12px; }
  .utility-links { gap: 16px; }
  .utility-menu { gap: 12px; }
  .footer-main { gap: 30px; }
}
@media (max-width: 1000px) {
  .navigation-inner { flex-wrap: wrap; padding-block: 8px; gap: 8px; }
  .primary-navigation { flex-basis: calc(100% - 200px); }
  .primary-navigation a { padding: 8px; }
  .utility-inner { grid-template-columns: 1fr 1fr; grid-template-areas: "left right" "center center"; row-gap: 4px; padding-block: 6px; }
  .utility-links { font-size: 10px; }
  .utility-right .social-icon { width: 27px; }
  .article-layout { grid-template-columns: minmax(0,1fr) 260px; }
  .article-header, .entry-content, .comments-area { padding: 23px; }
  .article-title { font-size: 27px; }
  .entry-content { font-size: 16px; }
  .sidebar-news .card-image { width: 65px; }
  .related-grid { grid-template-columns: 1fr; }
  .related-grid .card-link { display: flex; gap: 13px; }
  .related-grid .card-image { width: 110px; flex: none; align-self: flex-start; }
  .related-grid .card-copy { padding: 0; }
}
/* Mobile: compact article cards and a single main column. */
@media (max-width: 800px) {
  .container { width: calc(100% - 28px); }
  .masthead { min-height: 110px; gap: 24px; padding-block: 15px; }
  .brand-name { font-size: 36px; }
  .brand-logo { max-width: 195px; max-height: 75px; }
  .ad-slot--header { min-height: 65px; }
  .ad-slot--header small { font-size: 18px; }
  .navigation-inner { justify-content: space-between; padding-block: 9px; gap: 10px; }
  .kn-js .menu-toggle { display: flex; }
  .primary-navigation { flex-basis: 100%; order: 3; }
  .kn-js .primary-navigation { display: none; }
  .kn-js .primary-navigation.is-open { display: block; }
  .primary-navigation>.menu { display: block; padding-block: 6px; }
  .primary-navigation a { padding: 11px 12px; font-size: 13px; }
  .primary-navigation .sub-menu { display: block; position: static; min-width: 0; box-shadow: none; background: #0002; border: 0; padding: 0; margin-inline-start: 16px; }
  .primary-navigation .sub-menu a { color: #fff; font-size: 11px; }
  .nav-search { width: 225px; margin-inline-start: auto; }
  .home-main { padding-block-start: 18px; }
  .lead-layout { grid-template-columns: minmax(0,1fr); gap: 18px; }
  .lead-stories { grid-column: 1; grid-row: 1; }
  .latest-panel { grid-column: 1; grid-row: 2; }
  .latest-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
  .editorial-panel { grid-column: 1; grid-row: 3; }
  .slide-link, .slide-image { min-height: 360px; }
  .slide-image { aspect-ratio: 1.6; }
  .slide-copy h2 { font-size: 25px; }
  .article-layout { display: flex; flex-direction: column; gap: 24px; }
  .article-primary, .article-sidebar { width: 100%; }
  .now-browsing, .admin-bar .now-browsing { position: static; max-height: none; overflow: visible; }
  .sidebar-news { display: grid; grid-template-columns: 1fr 1fr; }
  .sidebar-news .news-card:first-child { grid-column: 1/-1; }
  .sidebar-news .news-card:first-child .card-image { aspect-ratio: 2.1; }
  .archive-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1/-1; grid-row: 1; }
  .footer-widgets { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .utility-menu { gap: 10px; font-size: 9px; }
  .utility-right { gap: 5px; }
  .utility-right .social-links { gap: 2px; }
  .utility-right .social-icon { width: 24px; min-height: 28px; }
  .utility-right .social-icon .icon { width: 14px; height: 14px; }
  .theme-toggle { width: 31px; height: 27px; }
  .utility-links { gap: 18px; font-size: 9px; }
  .utility-links .icon { width: 14px; height: 14px; }
  .masthead { justify-content: center; min-height: 85px; padding-block: 12px; }
  .masthead .brand { align-items: center; max-width: 100%; }
  .brand-name { font-size: 38px; }
  .brand-logo { max-width: 210px; max-height: 65px; }
  .brand-tagline { font-size: 9px; }
  .masthead .ad-slot--header { display: none; }
  .nav-search { width: min(235px, calc(100% - 100px)); }
  .menu-toggle { font-size: 12px; }
  .home-main { padding-block-start: 14px; }
  .lead-layout { display: block; }
  .latest-panel, .editorial-panel { display: none; }
  .slide-link, .slide-image { min-height: 310px; }
  .slide-image { aspect-ratio: 1.15; }
  .slide-copy { padding: 60px 18px 48px; }
  .slide-copy h2 { font-size: 19px; line-height: 1.95; }
  .slider-arrow { width: 31px; height: 40px; }
  .slider-controls { padding: 7px; }
  .ad-slot--home { min-height: 90px; margin-block: 17px; }
  .ad-slot--home small { font-size: 22px; }
  .home-sections { grid-template-columns: minmax(0,1fr); gap: 21px; }
  .home-sections .news-section:not(.special-block) { background: transparent; border: 0; border-radius: 0; overflow: visible; }
  .section-heading { padding: 0 0 12px; border: 0; }
  .section-heading h2 { font-size: 18px; }
  .section-heading .text-link { font-size: 10px; }
  .home-sections .section-posts { padding: 0; display: grid; grid-template-columns: minmax(0,1fr); gap: 11px; }
  .home-sections .news-card, .home-sections .layout-magazine .news-card--compact { padding: 12px; border: 0; border-radius: 17px; background: var(--kn-surface); }
  .home-sections .news-card .card-link, .home-sections .layout-magazine .news-card--standard .card-link { display: flex; align-items: flex-start; gap: 12px; color: var(--kn-text); }
  .home-sections .news-card .card-link:hover { color: var(--kn-link); }
  .home-sections .news-card .card-image, .home-sections .layout-magazine .news-card--standard .card-image { width: 88px; aspect-ratio: 1; flex: none; border-radius: 13px; }
  .home-sections .layout-magazine .news-card--standard .card-image:after { display: none; }
  .home-sections .news-card .card-copy, .home-sections .layout-magazine .news-card--standard .card-copy { padding: 0; flex: 1; min-width: 0; align-self: auto; }
  .home-sections .news-card .card-title, .home-sections .layout-magazine .news-card--standard .card-title { font-size: 14px; line-height: 1.95; font-weight: 500; margin: 0; }
  .home-sections .news-card .post-date { display: none; }
  .home-sections .news-card .category-label, .home-sections .layout-magazine .news-card--standard .category-label, .home-sections .layout-magazine .news-card--compact .category-label { display: block; padding-inline-start: 7px; border-inline-start: 3px solid var(--kn-accent); color: var(--kn-text); font-size: 10px; margin-block-end: 4px; }
  .home-sections .style-dark .news-card { background: var(--kn-surface); }
  .home-sections .style-accent .section-heading { padding: 8px 10px; margin-block-end: 10px; border-radius: 6px; }
  .home-sections .special-block .section-heading { padding: 12px; }
  .archive-heading h1 { font-size: 23px; }
  .archive-grid { grid-template-columns: minmax(0,1fr); gap: 12px; }
  .archive-grid .card-link { display: flex; align-items: flex-start; gap: 12px; padding: 12px; }
  .archive-grid .card-image { width: 92px; flex: none; aspect-ratio: 1; border-radius: 10px; }
  .archive-grid .card-copy { padding: 0; }
  .archive-grid .card-title { font-size: 14px; line-height: 1.95; margin-block-end: 6px; }
  .article-title { font-size: 23px; }
  .article-header, .entry-content, .comments-area { padding: 20px 17px; }
  .article-meta { gap: 8px 12px; }
  .entry-content { font-size: 16px; line-height: 2.25; }
  .entry-content h2 { font-size: 23px; }
  .entry-content h3 { font-size: 20px; }
  .entry-content blockquote { padding: 12px 16px; }
  .article-featured figcaption { padding-inline: 17px; }
  .article-tags { margin-inline: 17px; }
  .article-footer { padding-inline: 17px; }
  .share-tools { gap: 10px; }
  .share-label { width: 100%; }
  .share-icon { width: 39px; height: 39px; }
  .share-links { gap: 6px; }
  .sidebar-news { grid-template-columns: minmax(0,1fr); }
  .sidebar-news .news-card:first-child .card-image { aspect-ratio: 1.65; }
  .sidebar-news .news-card:not(:first-child) .card-title { font-size: 12px; }
  .related-grid { padding: 13px; gap: 14px; }
  .related-grid .card-image { width: 90px; }
  .post-navigation .nav-links { gap: 10px; }
  .post-navigation a { font-size: 10px; padding: 12px; }
  .breadcrumbs { font-size: 9px; }
  .page-content { padding: 20px; }
  .page-content>h1 { font-size: 24px; }
  .footer-main { display: flex; flex-direction: column; gap: 30px; padding-block: 32px; align-items: stretch; }
  .footer-brand { order: -1; padding: 8px 0; }
  .footer-brand .brand-name { font-size: 43px; }
  .footer-newsletter, .footer-topics { text-align: center; }
  .footer-main h2 { font-size: 18px; }
  .footer-tag-list { justify-content: center; }
  .footer-navigation { padding-block: 18px; }
  .footer-menu, .footer-navigation .utility-menu { gap: 15px; font-size: 10px; }
  .footer-widgets { grid-template-columns: minmax(0,1fr); }
  .footer-bottom>.container { display: block; text-align: center; }
  .footer-bottom p { margin-block-end: 8px; }
  .empty-state { padding: 32px 17px; }
  .empty-state h1, .empty-state h2 { font-size: 23px; }
  .alignleft, .alignright { float: none; margin-inline: 0; }
  .gallery-item { max-width: 46%; }
}
@media (prefers-reduced-motion: reduce) { *, *:before, *:after { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }
@media print {
  .site-header, .site-footer, .article-sidebar, .post-navigation, .related-stories, .comments-area, .ad-slot, .share-tools, .breadcrumbs { display: none !important; }
  body { background: #fff; color: #000; }
  .container { width: 100%; }
  .article-layout { display: block; }
  .article-content { border: 0; }
  .entry-content { padding-inline: 0; }
  .article-title { font-size: 24pt; }
  .article-header { padding-inline: 0; }
  .article-featured img { max-height: 350px; object-fit: contain; }
}
