/* Saved header color is independent of the demo, page layout and content theme. */
body.kt-header-dark #kt-site-header{--kt-header-bg:#101216;--kt-header-top:#080a0d;--kt-header-ink:#f5f7fa;--kt-header-muted:#d1d5db;--kt-header-line:#353b44;--kt-header-input:#1d222a}
body.kt-header-light #kt-site-header,body.kt-demo-sana:not(.kt-header-dark) #kt-site-header{--kt-header-bg:#fff;--kt-header-top:#f7f8fa;--kt-header-ink:#172232;--kt-header-muted:#526073;--kt-header-line:#e1e6eb;--kt-header-input:#f9fafc}
html[data-theme=dark] body.kt-demo-sana:not(.kt-header-light) #kt-site-header{--kt-header-bg:#101216;--kt-header-top:#080a0d;--kt-header-ink:#f5f7fa;--kt-header-muted:#d1d5db;--kt-header-line:#353b44;--kt-header-input:#1d222a}
body:is(.kt-header-dark,.kt-header-light,.kt-demo-sana) .kt-site-shell #kt-site-header.kt-site-header{background:var(--kt-header-bg)!important;color:var(--kt-header-ink)!important;border-color:var(--kt-header-line)!important}
body:is(.kt-header-dark,.kt-header-light,.kt-demo-sana) .kt-site-shell #kt-site-header.kt-site-header :is(.kt-brandbar,.kt-nav,.kt-search-panel,.sub-menu){background:var(--kt-header-bg)!important;color:var(--kt-header-ink)!important;border-color:var(--kt-header-line)!important}
body:is(.kt-header-dark,.kt-header-light,.kt-demo-sana) .kt-site-shell #kt-site-header.kt-site-header .kt-topbar{background:var(--kt-header-top)!important;color:var(--kt-header-muted)!important;border-color:var(--kt-header-line)!important}
body:is(.kt-header-dark,.kt-header-light,.kt-demo-sana) .kt-site-shell #kt-site-header.kt-site-header :is(.kt-primary-menu>li>a,.kt-primary-menu .sub-menu a,.kt-brand a,.kt-site-name,.kt-mobile-toggle,.kt-theme-toggle,.kt-search-toggle,.kt-search-form button,.kt-header-inline-search button){color:var(--kt-header-ink)!important}
body:is(.kt-header-dark,.kt-header-light,.kt-demo-sana) .kt-site-shell #kt-site-header.kt-site-header :is(.kt-topbar a,.kt-topbar time,.kt-topbar span,.kt-logo-strapline,.kt-site-description){color:var(--kt-header-muted)!important}
body:is(.kt-header-dark,.kt-header-light,.kt-demo-sana) .kt-site-shell #kt-site-header.kt-site-header :is(.kt-sana-header-search,.kt-search-form,.kt-header-inline-search){background:var(--kt-header-input)!important;border-color:var(--kt-header-line)!important}
body:is(.kt-header-dark,.kt-header-light,.kt-demo-sana) .kt-site-shell #kt-site-header.kt-site-header input{color:var(--kt-header-ink)!important;background:transparent!important}
body:is(.kt-header-dark,.kt-header-light,.kt-demo-sana) .kt-site-shell #kt-site-header.kt-site-header input::placeholder{color:var(--kt-header-muted)!important}
body.kt-header-dark .kt-site-shell #kt-site-header.kt-site-header .kt-brand :is(.kt-site-logo--light,.kt-amp-logo-light),html[data-theme=dark] body.kt-demo-sana:not(.kt-header-light) .kt-site-shell #kt-site-header.kt-site-header .kt-brand :is(.kt-site-logo--light,.kt-amp-logo-light){display:none!important}
body.kt-header-dark .kt-site-shell #kt-site-header.kt-site-header .kt-brand :is(.kt-site-logo--dark,.kt-amp-logo-dark),html[data-theme=dark] body.kt-demo-sana:not(.kt-header-light) .kt-site-shell #kt-site-header.kt-site-header .kt-brand :is(.kt-site-logo--dark,.kt-amp-logo-dark){display:block!important}
body.kt-header-light .kt-site-shell #kt-site-header.kt-site-header .kt-brand :is(.kt-site-logo--dark,.kt-amp-logo-dark),html:not([data-theme=dark]) body.kt-demo-sana:not(.kt-header-dark) .kt-site-shell #kt-site-header.kt-site-header .kt-brand :is(.kt-site-logo--dark,.kt-amp-logo-dark){display:none!important}
body.kt-header-light .kt-site-shell #kt-site-header.kt-site-header .kt-brand :is(.kt-site-logo--light,.kt-amp-logo-light),html:not([data-theme=dark]) body.kt-demo-sana:not(.kt-header-dark) .kt-site-shell #kt-site-header.kt-site-header .kt-brand :is(.kt-site-logo--light,.kt-amp-logo-light){display:block!important}
body.kt-amp-request.kt-demo-sana.kt-color-mode-dark:not(.kt-header-light) #kt-site-header{--kt-header-bg:#101216;--kt-header-top:#080a0d;--kt-header-ink:#f5f7fa;--kt-header-muted:#d1d5db;--kt-header-line:#353b44;--kt-header-input:#1d222a}
body.kt-amp-request.kt-demo-sana.kt-color-mode-dark:not(.kt-header-light) .kt-site-shell #kt-site-header.kt-site-header .kt-brand :is(.kt-site-logo--light,.kt-amp-logo-light){display:none!important}
body.kt-amp-request.kt-demo-sana.kt-color-mode-dark:not(.kt-header-light) .kt-site-shell #kt-site-header.kt-site-header .kt-brand :is(.kt-site-logo--dark,.kt-amp-logo-dark){display:block!important}
/* Native AMP auto mode: honor the saved mode and the existing CSS-only switch. */
body.kt-amp-request.kt-demo-sana:not(.kt-header-light):not(.kt-header-dark).kt-color-mode-light #kt-amp-theme-toggle:checked~.kt-site-shell #kt-site-header,
body.kt-amp-request.kt-demo-sana:not(.kt-header-light):not(.kt-header-dark).kt-color-mode-auto #kt-amp-theme-toggle:checked~.kt-site-shell #kt-site-header{--kt-header-bg:#101216;--kt-header-top:#080a0d;--kt-header-ink:#f5f7fa;--kt-header-muted:#d1d5db;--kt-header-line:#353b44;--kt-header-input:#1d222a}
body.kt-amp-request.kt-demo-sana:not(.kt-header-light):not(.kt-header-dark).kt-color-mode-dark #kt-amp-theme-toggle:checked~.kt-site-shell #kt-site-header{--kt-header-bg:#fff;--kt-header-top:#f7f8fa;--kt-header-ink:#172232;--kt-header-muted:#526073;--kt-header-line:#e1e6eb;--kt-header-input:#f9fafc}
body.kt-amp-request.kt-demo-sana:not(.kt-header-light):not(.kt-header-dark):is(.kt-color-mode-light,.kt-color-mode-auto) #kt-amp-theme-toggle:checked~.kt-site-shell #kt-site-header .kt-brand :is(.kt-site-logo--light,.kt-amp-logo-light),body.kt-amp-request.kt-demo-sana:not(.kt-header-light):not(.kt-header-dark).kt-color-mode-dark #kt-amp-theme-toggle:checked~.kt-site-shell #kt-site-header .kt-brand :is(.kt-site-logo--dark,.kt-amp-logo-dark){display:none!important}
body.kt-amp-request.kt-demo-sana:not(.kt-header-light):not(.kt-header-dark):is(.kt-color-mode-light,.kt-color-mode-auto) #kt-amp-theme-toggle:checked~.kt-site-shell #kt-site-header .kt-brand :is(.kt-site-logo--dark,.kt-amp-logo-dark),body.kt-amp-request.kt-demo-sana:not(.kt-header-light):not(.kt-header-dark).kt-color-mode-dark #kt-amp-theme-toggle:checked~.kt-site-shell #kt-site-header .kt-brand :is(.kt-site-logo--light,.kt-amp-logo-light){display:block!important}
@media(prefers-color-scheme:dark){
body.kt-amp-request.kt-demo-sana.kt-color-mode-auto:not(.kt-header-light):not(.kt-header-dark) #kt-site-header{--kt-header-bg:#101216;--kt-header-top:#080a0d;--kt-header-ink:#f5f7fa;--kt-header-muted:#d1d5db;--kt-header-line:#353b44;--kt-header-input:#1d222a}
body.kt-amp-request.kt-demo-sana.kt-color-mode-auto:not(.kt-header-light):not(.kt-header-dark) .kt-site-shell #kt-site-header .kt-brand :is(.kt-site-logo--light,.kt-amp-logo-light){display:none!important}
body.kt-amp-request.kt-demo-sana.kt-color-mode-auto:not(.kt-header-light):not(.kt-header-dark) .kt-site-shell #kt-site-header .kt-brand :is(.kt-site-logo--dark,.kt-amp-logo-dark){display:block!important}
body.kt-amp-request.kt-demo-sana.kt-color-mode-auto:not(.kt-header-light):not(.kt-header-dark) #kt-amp-theme-toggle:checked~.kt-site-shell #kt-site-header{--kt-header-bg:#fff;--kt-header-top:#f7f8fa;--kt-header-ink:#172232;--kt-header-muted:#526073;--kt-header-line:#e1e6eb;--kt-header-input:#f9fafc}
body.kt-amp-request.kt-demo-sana.kt-color-mode-auto:not(.kt-header-light):not(.kt-header-dark) #kt-amp-theme-toggle:checked~.kt-site-shell #kt-site-header .kt-brand :is(.kt-site-logo--light,.kt-amp-logo-light){display:block!important}
body.kt-amp-request.kt-demo-sana.kt-color-mode-auto:not(.kt-header-light):not(.kt-header-dark) #kt-amp-theme-toggle:checked~.kt-site-shell #kt-site-header .kt-brand :is(.kt-site-logo--dark,.kt-amp-logo-dark){display:none!important}
}

/* Independent WP widgets, shared across all frontend templates. */
.kt-community-widget{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;min-width:0;max-width:100%}
.kt-community-widget .kt-community-link{--kt-network:#475569;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;min-width:0;min-height:68px;padding:9px 6px;border-radius:7px;background:var(--kt-network);color:#fff;text-decoration:none;text-align:center;font-size:12px;font-weight:700;line-height:1.4;overflow-wrap:anywhere;box-sizing:border-box}
.kt-community-widget .kt-community-link:hover,.kt-community-widget .kt-community-link:focus-visible{filter:brightness(.91);outline:2px solid var(--kt-accent,#b91c2c);outline-offset:2px}
.kt-community-widget .kt-community-link svg{display:block;flex:none;width:22px;height:22px;fill:currentColor;max-width:100%}
.kt-community-monogram{display:grid;place-items:center;flex:none;width:24px;height:24px;font-weight:850;font-size:13px;line-height:1}
.kt-community-widget .kt-community-facebook_url{--kt-network:#1877f2}.kt-community-widget .kt-community-x_url,.kt-community-widget .kt-community-threads_url,.kt-community-widget .kt-community-tiktok_url,.kt-community-widget .kt-community-app_apple_store{--kt-network:#17191e}
.kt-community-widget .kt-community-instagram_url{--kt-network:#b52c73}.kt-community-widget .kt-community-youtube_url,.kt-community-widget .kt-community-pinterest_url,.kt-community-widget .kt-community-app_huawei{--kt-network:#c91d32}
.kt-community-widget .kt-community-telegram_url,.kt-community-widget .kt-community-bluesky_url{--kt-network:#087bb5}.kt-community-widget .kt-community-whatsapp_url,.kt-community-widget .kt-community-whatsapp_group_url,.kt-community-widget .kt-community-whatsapp_channel_url,.kt-community-widget .kt-community-app_google_play{--kt-network:#087c4e}
.kt-community-widget .kt-community-linkedin_url{--kt-network:#09669c}.kt-community-widget .kt-community-snapchat_url{--kt-network:#786500}.kt-community-widget .kt-community-viber_url,.kt-community-widget .kt-community-mastodon_url,.kt-community-widget .kt-community-twitch_url,.kt-community-widget .kt-community-discord_url{--kt-network:#6552bc}
.kt-community-widget .kt-community-rss_url,.kt-community-widget .kt-community-reddit_url{--kt-network:#b84c14}.kt-community-widget .kt-community-google_news_url,.kt-community-widget .kt-community-google_preferred,.kt-community-widget .kt-community-app_direct{--kt-network:#2464bd}
.kt-community-widget--rows{grid-template-columns:minmax(0,1fr)}
.kt-community-widget--rows .kt-community-link{flex-direction:row;justify-content:flex-start;text-align:start;min-height:42px;padding:9px 12px;gap:12px}
.kt-community-widget--icons{grid-template-columns:repeat(auto-fit,minmax(42px,1fr))}
.kt-community-widget--icons .kt-community-link{min-height:42px;aspect-ratio:1;max-height:58px;padding:7px}
.kt-community-widget--icons .kt-community-label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.kt-community-widget--outline .kt-community-link{background:var(--kt-surface,#fff);color:var(--kt-ink,#172033);border:1px solid var(--kt-line,#dce2e8);border-inline-start:3px solid var(--kt-network)}
.kt-community-widget--outline .kt-community-link svg,.kt-community-widget--outline .kt-community-monogram{color:var(--kt-network)}
.kt-community-widget--compact .kt-community-link{flex-direction:row;justify-content:flex-start;text-align:start;min-height:40px;font-size:11px;gap:5px;padding:7px 5px}
.kt-community-widget--compact .kt-community-link svg,.kt-community-widget--compact .kt-community-monogram{width:17px;height:17px;font-size:10px}
.kt-prayer-widget.kt-bt-prayer{box-sizing:border-box;width:100%;max-width:100%;min-width:0;margin:0!important;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important;color:var(--kt-ink,#172033);text-align:center}
.kt-prayer-widget .kt-bt-prayer__date{margin:0 0 9px;font-size:12px;color:var(--kt-muted,#64748b)}
.kt-prayer-widget .kt-bt-prayer__times{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%;gap:7px}
.kt-prayer-widget .kt-bt-prayer__item{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-width:0;min-height:54px;padding:7px;border:1px solid var(--kt-line,#dce2e8);border-radius:7px;background:var(--kt-surface,#fff);color:var(--kt-ink,#172033)}
.kt-prayer-widget .kt-bt-prayer__item span{font-size:12px;color:inherit}.kt-prayer-widget .kt-bt-prayer__item strong{font-size:19px;color:inherit;font-variant-numeric:tabular-nums}
body .kt-prayer-widget.kt-prayer-widget--list .kt-bt-prayer__times{grid-template-columns:minmax(0,1fr)!important}
body .kt-prayer-widget.kt-prayer-widget--list .kt-bt-prayer__item{flex-direction:row!important;justify-content:space-between!important;min-height:38px!important}
.kt-prayer-widget .kt-bt-prayer__source{display:block;font-size:11px;margin-top:10px;color:var(--kt-accent,#b91c2c);overflow-wrap:anywhere}
.kt-prayer-widget .kt-bt-prayer__error{font-size:13px;line-height:1.6}

/* All news thumbnails share the video marker; no JS or player requests. */
:is(.bt-cat-media,.kt-sana-thumb-media,.kt-category-tab-thumb,.kt-newsroom-thumb,.kt-timeline-media,.kt-compact-room-media,.kt-trending-thumb,.kt-bt-ranked__media,.kt-bt-video>a,.kt-widget-latest-thumb,.kt-most-read-thumb,.kt-mid-related-thumb){position:relative}
body .kt-card-video-badge{position:absolute!important;inset:auto!important;top:8px!important;left:8px!important;z-index:6!important;display:grid!important;place-items:center!important;width:clamp(25px,3vw,38px)!important;height:clamp(25px,3vw,38px)!important;border-radius:50%!important;background:rgba(8,13,23,.86)!important;border:1px solid rgba(255,255,255,.8)!important;color:#fff!important;font-size:14px!important;line-height:1!important;padding:0 0 0 2px!important;pointer-events:none;box-sizing:border-box}
:is(.kt-widget-latest-thumb,.kt-most-read-thumb,.kt-mid-related-thumb,.kt-sana-thumb-media,.kt-card-horizontal,.kt-bt-ranked__media,.kt-category-tab-thumb,.kt-newsroom-thumb,.kt-timeline-media,.kt-compact-room-media,.kt-trending-thumb) .kt-card-video-badge{width:25px!important;height:25px!important;top:5px!important;left:5px!important;font-size:11px!important}

/* Bound a sidebar to its own content run, never the entire document. */
@media(min-width:1025px){
  /* A sidebar must not contribute its intrinsic height to the news grid row.
     This baseline works before JS, with blocked/deferred JS and in native AMP. */
  body :is(.kt-home-persistent-layout,.kt-home-editorial-shell.has-home-sidebar,.kt-with-sidebar,.bt-news-with-urgent,.kt-sana-block-with-sidebar){align-items:start!important}
  body :is(.kt-home-persistent-layout>.kt-home-persistent-sidebar,.kt-home-editorial-shell.has-home-sidebar>.kt-sidebar,.kt-with-sidebar>.kt-sidebar,.bt-news-with-urgent>.bt-news-with-urgent__aside,.kt-sana-block-with-sidebar>.kt-sana-builder-sidebar):not(.kt-rail-managed){contain:size;align-self:stretch!important;min-height:0!important;height:auto!important;max-height:none!important;position:static!important;top:auto!important;overflow-y:auto!important;overflow-x:hidden!important;align-content:start!important;grid-auto-rows:max-content!important;scrollbar-width:thin;overscroll-behavior-y:contain}
  body :is(.kt-home-persistent-layout>.kt-home-persistent-sidebar,.kt-home-editorial-shell.has-home-sidebar>.kt-sidebar,.kt-with-sidebar>.kt-sidebar,.bt-news-with-urgent>.bt-news-with-urgent__aside,.kt-sana-block-with-sidebar>.kt-sana-builder-sidebar)>*{flex-shrink:0!important;min-width:0}
  body :is(.kt-home-persistent-layout>.kt-home-persistent-main,.kt-home-editorial-shell.has-home-sidebar>.kt-home-content,.kt-with-sidebar>.kt-article,.kt-with-sidebar>.kt-archive-content,.kt-with-sidebar>.kt-page,.bt-news-with-urgent>.bt-news-with-urgent__main,.kt-sana-block-with-sidebar>.kt-sana-block-content){align-self:start!important;min-height:0!important}
  body :is(.kt-home-persistent-layout>.kt-home-persistent-sidebar,.kt-home-editorial-shell.has-home-sidebar>.kt-sidebar,.kt-with-sidebar>.kt-sidebar,.bt-news-with-urgent>.bt-news-with-urgent__aside,.kt-sana-block-with-sidebar>.kt-sana-builder-sidebar).kt-rail-managed{box-sizing:border-box!important;contain:none!important;align-self:start!important;min-height:0!important;max-height:var(--kt-rail-limit,none)!important;position:static!important;top:auto!important;overflow:visible!important;align-content:start!important;grid-auto-rows:max-content!important}
  body :is(.kt-home-persistent-layout>.kt-home-persistent-sidebar,.kt-home-editorial-shell.has-home-sidebar>.kt-sidebar,.kt-with-sidebar>.kt-sidebar,.bt-news-with-urgent>.bt-news-with-urgent__aside,.kt-sana-block-with-sidebar>.kt-sana-builder-sidebar).kt-rail-managed>*{flex-shrink:0!important;min-width:0}
  body :is(.kt-home-persistent-layout>.kt-home-persistent-sidebar,.kt-home-editorial-shell.has-home-sidebar>.kt-sidebar,.kt-with-sidebar>.kt-sidebar,.bt-news-with-urgent>.bt-news-with-urgent__aside,.kt-sana-block-with-sidebar>.kt-sana-builder-sidebar).kt-rail-managed.kt-rail-scroll{overflow-y:auto!important;overflow-x:hidden!important;scrollbar-width:thin;scrollbar-color:var(--kt-muted,#64748b) transparent;overscroll-behavior-y:contain}
  body :is(.kt-home-persistent-layout>.kt-home-persistent-sidebar,.kt-home-editorial-shell.has-home-sidebar>.kt-sidebar,.kt-with-sidebar>.kt-sidebar,.bt-news-with-urgent>.bt-news-with-urgent__aside,.kt-sana-block-with-sidebar>.kt-sana-builder-sidebar).kt-rail-managed.kt-rail-sticky{position:sticky!important;top:var(--kt-rail-top,88px)!important}
  body :is(.kt-home-persistent-layout>.kt-home-persistent-sidebar,.kt-home-editorial-shell.has-home-sidebar>.kt-sidebar,.kt-with-sidebar>.kt-sidebar,.bt-news-with-urgent>.bt-news-with-urgent__aside,.kt-sana-block-with-sidebar>.kt-sana-builder-sidebar).kt-rail-managed.kt-rail-measuring{contain:none!important;height:auto!important;max-height:none!important;overflow:visible!important;position:static!important;top:auto!important}
  body .kt-rail-content{align-self:start!important;min-height:0!important}
  /* Native AMP cannot run measurement JS. Size containment prevents the rail
     from expanding its grid row; overflow remains accessible without scripts. */
  html[amp] body .kt-home-persistent-layout{display:grid;gap:var(--kt-layout-gap,24px);align-items:start;direction:rtl;min-width:0}
  html[amp] body .kt-home-persistent-layout.kt-home-sidebar-right{grid-template-columns:minmax(0,var(--kt-sidebar-width,315px)) minmax(0,1fr)}
  html[amp] body .kt-home-persistent-layout.kt-home-sidebar-left{grid-template-columns:minmax(0,1fr) minmax(0,var(--kt-sidebar-width,315px))}
  html[amp] body .kt-home-persistent-layout.kt-home-sidebar-right>.kt-home-persistent-sidebar,html[amp] body .kt-home-persistent-layout.kt-home-sidebar-left>.kt-home-persistent-main{grid-column:1;grid-row:1}
  html[amp] body .kt-home-persistent-layout.kt-home-sidebar-left>.kt-home-persistent-sidebar,html[amp] body .kt-home-persistent-layout.kt-home-sidebar-right>.kt-home-persistent-main{grid-column:2;grid-row:1}
  html[amp] body .kt-home-persistent-layout>.kt-home-persistent-sidebar.kt-sidebar,
  html[amp] body .kt-home-editorial-shell.has-home-sidebar>.kt-sidebar,
  html[amp] body:not(.archive):not(.blog):not(.search) .kt-with-sidebar>.kt-sidebar{contain:size;align-self:stretch!important;min-height:0!important;max-height:none!important;position:static!important;top:auto!important;overflow-y:auto!important;overflow-x:hidden!important;align-content:start!important;grid-auto-rows:max-content;scrollbar-width:thin;overscroll-behavior-y:contain}
  html[amp] body .kt-home-persistent-sidebar>*{flex-shrink:0}
}

/*
 * TheVerificat News Theme 2026.11.26.4
 * Network-wide responsive masthead contract.
 * The header is container-aware so narrow previews, embedded layouts and
 * desktop pages with constrained content all receive the correct navigation.
 */
#kt-site-header {
  position: relative;
  container-name: kt-network-header;
  container-type: inline-size;
  min-width: 0;
}

#kt-site-header .kt-brandbar-inner,
#kt-site-header .kt-brand,
#kt-site-header .kt-header-tools,
#kt-site-header .kt-header-left-tools,
#kt-site-header .kt-nav,
#kt-site-header .kt-nav > .kt-container,
#kt-site-header .kt-primary-menu {
  min-width: 0;
  max-width: 100%;
}

/* Exactly one header logo variant is visible in every theme mode. */
#kt-site-header .kt-brand .kt-site-logo--light { display: block !important; }
#kt-site-header .kt-brand .kt-site-logo--dark { display: none !important; }
html[data-theme="dark"] body:not(.kt-header-light) #kt-site-header .kt-brand .kt-site-logo--light,
body.kt-header-dark #kt-site-header .kt-brand .kt-site-logo--light { display: none !important; }
html[data-theme="dark"] body:not(.kt-header-light) #kt-site-header .kt-brand .kt-site-logo--dark,
body.kt-header-dark #kt-site-header .kt-brand .kt-site-logo--dark { display: block !important; }
body.kt-header-light #kt-site-header .kt-brand .kt-site-logo--light { display: block !important; }
body.kt-header-light #kt-site-header .kt-brand .kt-site-logo--dark { display: none !important; }

#kt-site-header .kt-brand .kt-site-logo {
  width: auto !important;
  height: auto !important;
  max-width: min(100%, 240px) !important;
  max-height: 60px !important;
  object-fit: contain;
}

#kt-site-header .kt-primary-menu {
  flex-wrap: wrap;
  justify-content: center;
  white-space: normal;
  gap: 4px 8px;
}
#kt-site-header .kt-primary-menu > li {
  min-width: 0;
  max-width: 100%;
}
#kt-site-header .kt-primary-menu > li > a {
  min-width: 0;
  white-space: normal;
  word-break: normal;
  overflow-wrap: break-word;
  line-height: 1.45;
  text-align: center;
}

/* Compact header is triggered by available header width, not viewport width. */
@container kt-network-header (max-width: 1040px) {
  #kt-site-header .kt-brandbar-inner {
    display: grid !important;
    grid-template-columns: 44px minmax(0, 1fr) 88px !important;
    align-items: center;
    gap: 8px;
    min-height: 70px;
    padding-inline: 12px;
  }

  #kt-site-header .kt-brandbar-inner > .kt-mobile-toggle {
    grid-column: 1 !important;
    grid-row: 1 !important;
    display: inline-flex !important;
    justify-self: start !important;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    min-width: 42px;
    min-height: 42px;
    z-index: 5;
  }

  #kt-site-header .kt-brandbar-inner > .kt-brand {
    grid-column: 2 !important;
    grid-row: 1 !important;
    justify-self: center !important;
    align-self: center;
    width: auto !important;
    max-width: 100%;
    min-width: 0;
    margin: 0 !important;
    text-align: center !important;
    z-index: 1;
  }

  #kt-site-header .kt-brand .kt-brand-heading,
  #kt-site-header .kt-brand .custom-logo-link,
  #kt-site-header .kt-brand .kt-site-logo-link {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    margin-inline: auto;
  }

  #kt-site-header .kt-brand .kt-site-logo {
    max-width: min(100%, 180px) !important;
    max-height: 48px !important;
    margin-inline: auto !important;
  }

  #kt-site-header .kt-brand .kt-logo-strapline,
  #kt-site-header .kt-brand .kt-site-description {
    max-width: 100%;
    text-align: center !important;
    white-space: normal;
    line-height: 1.4;
  }

  #kt-site-header .kt-brandbar-inner > .kt-header-tools,
  #kt-site-header .kt-brandbar-inner > .kt-header-left-tools {
    grid-column: 3 !important;
    grid-row: 1 !important;
    justify-self: end !important;
    display: flex !important;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    min-width: 0;
    z-index: 5;
  }

  #kt-site-header .kt-header-left-tools .kt-header-inline-search {
    display: none !important;
  }
  #kt-site-header .kt-header-left-tools .kt-search-toggle {
    display: inline-flex !important;
  }

  #kt-site-header .kt-nav {
    position: absolute !important;
    top: 100% !important;
    bottom: auto !important;
    inset-inline: 0 !important;
    z-index: 900 !important;
    display: none !important;
    width: 100%;
    height: auto !important;
    max-height: min(72dvh, 620px);
    overflow: auto !important;
    padding: 8px 0;
    background: var(--kt-surface, #fff) !important;
    color: var(--kt-ink, #172334) !important;
    border: 1px solid var(--kt-line, #e2e8f0) !important;
    box-shadow: 0 14px 32px rgba(10, 25, 45, .18) !important;
    pointer-events: auto !important;
  }

  #kt-site-header .kt-nav.is-open {
    display: block !important;
  }

  #kt-site-header .kt-nav > .kt-container {
    display: block !important;
    width: 100%;
    max-width: 100%;
    height: auto;
    margin: 0;
    padding: 6px 12px;
    overflow: visible;
  }

  #kt-site-header .kt-primary-menu {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    align-items: stretch;
    justify-content: stretch;
    width: 100%;
    min-height: 0;
    margin: 0;
    padding: 0;
    gap: 4px 8px;
    white-space: normal !important;
  }

  #kt-site-header .kt-primary-menu > li {
    min-width: 0;
    width: 100%;
  }

  #kt-site-header .kt-primary-menu > li > a {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    min-height: 44px;
    padding: 9px 11px;
    text-align: start;
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: break-word;
    border-radius: 7px;
  }

  #kt-site-header .kt-primary-menu .sub-menu {
    position: static;
    min-width: 0;
    width: 100%;
    margin: 0;
    box-shadow: none;
  }
}

@container kt-network-header (max-width: 560px) {
  #kt-site-header .kt-brandbar-inner {
    grid-template-columns: 40px minmax(0, 1fr) 80px !important;
    min-height: 64px;
    gap: 4px;
    padding-inline: 8px;
  }
  #kt-site-header .kt-brand .kt-site-logo {
    max-width: min(100%, 150px) !important;
    max-height: 42px !important;
  }
  #kt-site-header .kt-primary-menu {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

/* Viewport fallback for browsers without container-query support. */
@supports not (container-type: inline-size) {
  @media (max-width: 1040px) {
    #kt-site-header .kt-brandbar-inner { grid-template-columns: 44px minmax(0, 1fr) 88px !important; }
    #kt-site-header .kt-mobile-toggle { display: inline-flex !important; }
    #kt-site-header .kt-nav { position: absolute !important; top: 100% !important; bottom: auto !important; inset-inline: 0 !important; height: auto !important; display: none !important; }
    #kt-site-header .kt-nav.is-open { display: block !important; }
  }
}

