/* Sobhe Kish Pro 2.19: Modern Header 01 - isolated from the classic header. */
.skn-site-header.skn-modern-header{
  --skn-modern-line:#e8edf3;
  background:#fff;
  color:var(--skn-ink,#142c4c);
  border-bottom:1px solid var(--skn-modern-line);
  box-shadow:0 3px 16px rgba(12,35,62,.035);
  isolation:isolate;
}
.skn-modern-header .skn-modern-main{
  display:grid;
  grid-template-columns:minmax(170px,200px) minmax(0,1fr) 46px;
  align-items:center;
  min-height:84px;
  gap:clamp(9px,1.5vw,26px);
  position:relative;
}
.skn-modern-header .skn-modern-brand{
  min-width:0;
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:flex-start;
}
.skn-modern-header .skn-modern-brand .skn-brand-link,
.skn-modern-header .skn-modern-brand .custom-logo-link{display:block;line-height:0;max-width:100%}
.skn-modern-header .skn-modern-brand .skn-logo-image,
.skn-modern-header .skn-modern-brand .custom-logo{
  width:185px!important;
  max-width:100%;
  height:52px!important;
  object-fit:contain;
  object-position:right center;
  filter:none!important;
  display:block;
}
/* The bundled logo is white; colorise it on this white header without changing classic styling. */
.skn-modern-header .skn-modern-brand .skn-logo-default{
  filter:brightness(0) saturate(100%) invert(13%) sepia(22%) saturate(1890%) hue-rotate(172deg) brightness(94%)!important;
}
/* Preserve the existing brand/original logo-color setting for library uploads. */
.skn-modern-header .skn-modern-brand .skn-logo-brand:not(.skn-logo-default){
  filter:brightness(0) saturate(100%) invert(19%) sepia(98%) saturate(5086%) hue-rotate(341deg) brightness(95%) contrast(104%)!important;
}
.skn-modern-header .skn-modern-brand small{display:block;font-size:10px;color:#8191a5;line-height:1.5;margin-top:1px;white-space:normal}
.skn-modern-header .skn-modern-primary{min-width:0;display:block;width:100%}
.skn-modern-header .skn-modern-primary .skn-nav-list{
  display:flex;
  align-items:center;
  justify-content:flex-start;
  flex-wrap:nowrap;
  gap:clamp(0px,.22vw,4px);
  padding:0;
  margin:0;
  list-style:none;
  width:100%;
}
.skn-modern-header .skn-modern-primary .skn-nav-list>li{min-width:0;flex-shrink:0}
.skn-modern-header .skn-modern-primary .skn-nav-list>li>a{
  display:flex;
  align-items:center;
  min-height:43px;
  padding:10px clamp(4px,.4vw,7px);
  border-radius:0;
  color:#263b56;
  font-weight:800;
  font-size:13px;
  white-space:nowrap;
  text-decoration:none;
  background:transparent;
  border-bottom:2px solid transparent;
  transition:color .2s ease,border-color .2s ease;
}
.skn-modern-header .skn-modern-primary .skn-nav-list>li:hover>a,
.skn-modern-header .skn-modern-primary .skn-nav-list>li:focus-within>a{background:transparent!important;color:#263b56!important;border-bottom-color:#d9e0e9}
.skn-modern-header .skn-modern-primary .skn-nav-list>.current-menu-item>a,
.skn-modern-header .skn-modern-primary .skn-nav-list>.current_page_item>a,
.skn-modern-header .skn-modern-primary .skn-nav-list>.current-menu-ancestor>a{
  background:transparent;
  color:var(--skn-accent,#e3132d);
  border-bottom-color:var(--skn-accent,#e3132d);
}
.skn-modern-header .skn-modern-primary .sub-menu{top:100%;z-index:40}
.skn-modern-header .skn-modern-primary .sub-menu a{font-size:12px}
.skn-modern-header .skn-modern-actions{min-width:0;display:flex;align-items:center;justify-content:flex-end;gap:8px}
.skn-modern-header .skn-modern-search{width:100%;min-width:0}
.skn-modern-header .skn-modern-search .skn-search-form{
  min-height:43px;
  border:1px solid #e6ebf1;
  background:#f5f7fa;
  border-radius:12px;
  display:flex;
  flex-direction:row;
  align-items:stretch;
  overflow:hidden;
}
.skn-modern-header .skn-modern-search .skn-search-form input{
  padding:9px 13px;
  font-size:12px;
  color:var(--skn-ink,#142c4c);
  min-width:0;
}
.skn-modern-header .skn-modern-search .skn-search-form input::placeholder{color:#95a3b4;opacity:1}
.skn-modern-header .skn-modern-search .skn-search-form button{
  background:transparent;
  color:#173451;
  min-width:43px;
  border:none;
}
.skn-modern-header .skn-modern-search .skn-search-form button:hover{color:var(--skn-accent,#e3132d)}
.skn-modern-header .skn-modern-search-toggle,
.skn-modern-header .skn-modern-menu-toggle{
  display:none;
  flex:none;
  width:42px;
  height:42px;
  min-width:42px;
  padding:0;
  border:1px solid #e4eaf1;
  border-radius:11px;
  background:#f8fafc;
  color:#183550;
  align-items:center;
  justify-content:center;
}
.skn-modern-header .skn-modern-menu-toggle[aria-expanded="true"],
.skn-modern-header .skn-modern-search-toggle[aria-expanded="true"]{color:var(--skn-accent,#e3132d);border-color:#e6b5bd;background:#fff2f4}
.skn-modern-header .skn-modern-info{background:#fbfcfe;border-top:1px solid var(--skn-modern-line)}
.skn-modern-header .skn-modern-info-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  min-height:46px;
  gap:12px;
  font-size:11px;
  color:#64758a;
  overflow:hidden;
}
.skn-modern-header .skn-modern-info-date,
.skn-modern-header .skn-modern-quicklinks{display:flex;align-items:center;gap:0;min-width:0}
.skn-modern-header .skn-modern-info-date>*,
.skn-modern-header .skn-modern-quicklinks>*{
  display:inline-flex;
  align-items:center;
  gap:7px;
  padding-inline:13px;
  border-inline-end:1px solid #e5eaf0;
  white-space:nowrap;
  flex:none;
}
.skn-modern-header .skn-modern-info-date>*:first-child,
.skn-modern-header .skn-modern-quicklinks>*:first-child{padding-inline-start:0}
.skn-modern-header .skn-modern-info-date>*:last-child,
.skn-modern-header .skn-modern-quicklinks>*:last-child{border-inline-end:0;padding-inline-end:0}
.skn-modern-header .skn-modern-quicklinks a{font-weight:750;color:#4b6077}
.skn-modern-header .skn-modern-quicklinks a:hover{color:var(--skn-accent,#e3132d)}
.skn-modern-header .skn-modern-weather{font-weight:850;color:#183752}
.skn-modern-header .skn-modern-weather .skh-weather-icon{width:19px;height:19px;color:#df9e17}
.skn-modern-header .skn-modern-social{font-size:11px;color:#7b8b9b}
.skn-modern-header a:focus-visible,
.skn-modern-header button:focus-visible,
.skn-modern-header input:focus-visible{outline:3px solid rgba(31,111,181,.42);outline-offset:2px}

/* On desktop, show the full-sized readable navigation; the search opens
   on demand instead of squeezing every menu item into a tiny font. */
@media(min-width:1281px){
  .skn-modern-header .skn-modern-actions{position:relative;z-index:80}
  .skn-modern-header .skn-modern-search-toggle{display:inline-flex}
  .skn-modern-header .skn-modern-search{
    display:none;
    position:absolute;
    left:0;
    right:auto;
    top:calc(100% + 10px);
    width:min(350px,calc(100vw - 28px));
    padding:9px;
    border:1px solid #e3eaf1;
    border-radius:13px;
    background:#fff;
    box-shadow:0 14px 30px rgba(12,34,58,.16);
    z-index:85;
  }
  .skn-modern-header .skn-modern-search.is-open{display:block}
}
/* Collapse the nav earlier than the classic header: no squashed labels on tablets. */
@media(max-width:1280px){
  .skn-modern-header .skn-modern-main{grid-template-columns:minmax(135px,210px) minmax(0,1fr);min-height:74px}
  .skn-modern-header .skn-modern-primary{display:none;position:absolute;z-index:65;right:0;left:0;top:100%;width:100%;background:#fff;border:1px solid #e5ebf1;box-shadow:0 20px 35px rgba(10,28,48,.14);border-radius:0 0 16px 16px;padding:10px;max-height:min(72vh,640px);overflow-y:auto}
  .skn-modern-header .skn-modern-primary.is-open{display:block}
  .skn-modern-header .skn-modern-primary .skn-nav-list{display:flex;flex-direction:column;align-items:stretch;gap:1px}
  .skn-modern-header .skn-modern-primary .skn-nav-list>li{width:100%}
  .skn-modern-header .skn-modern-primary .skn-nav-list>li>a{font-size:14px;padding:12px 13px;min-height:42px;border-bottom:0;border-radius:8px;white-space:normal}
  .skn-modern-header .skn-modern-primary .skn-nav-list>li:hover>a{background:#f3f6f9!important}
  .skn-modern-header .skn-modern-primary .skn-nav-list>.current-menu-item>a,
  .skn-modern-header .skn-modern-primary .skn-nav-list>.current_page_item>a{background:#fff2f4;color:var(--skn-accent,#e3132d)}
  .skn-modern-header .skn-modern-primary .sub-menu{display:block;position:static;box-shadow:none;border:0;background:#f9fbfe;margin:1px 12px 8px;padding:4px 8px;border-radius:10px;min-width:0}
  .skn-modern-header .skn-modern-actions{justify-content:flex-end}
  .skn-modern-header .skn-modern-search{width:min(42vw,360px)}
  .skn-modern-header .skn-modern-menu-toggle{display:inline-flex}
}
@media(max-width:750px){
  .skn-modern-header .skn-modern-main{min-height:64px;grid-template-columns:minmax(115px,1fr) auto;gap:8px}
  .skn-modern-header .skn-modern-brand .skn-logo-image,
  .skn-modern-header .skn-modern-brand .custom-logo{width:150px!important;height:45px!important}
  .skn-modern-header .skn-modern-brand small{font-size:9px}
  .skn-modern-header .skn-modern-actions{position:static}
  .skn-modern-header .skn-modern-search-toggle{display:inline-flex}
  .skn-modern-header .skn-modern-search{
    display:none;
    width:100%;
    position:absolute;
    z-index:70;
    top:calc(100% + 5px);
    right:0;
    left:0;
    padding:9px;
    border:1px solid #e3eaf1;
    border-radius:12px;
    background:#fff;
    box-shadow:0 12px 24px rgba(12,34,58,.15);
  }
  .skn-modern-header .skn-modern-search.is-open{display:block}
  .skn-modern-header .skn-modern-search .skn-search-form{min-height:44px}
  .skn-modern-header .skn-modern-info-inner{min-height:44px;gap:8px}
  .skn-modern-header .skn-modern-info-date{flex:0 1 auto}
  .skn-modern-header .skn-modern-quicklinks{flex:1 1 auto;justify-content:flex-end}
  .skn-modern-header .skn-modern-info-date>*,
  .skn-modern-header .skn-modern-quicklinks>*{padding-inline:8px;font-size:10px}
  .skn-modern-header .skn-modern-place{display:none}
  .skn-modern-header .skn-modern-social{display:none!important}
}
@media(max-width:530px){
  .skn-modern-header .skn-modern-info-inner{align-items:stretch;flex-wrap:wrap;justify-content:flex-start;gap:0;padding-block:6px}
  .skn-modern-header .skn-modern-info-date,.skn-modern-header .skn-modern-quicklinks{width:100%;min-height:28px;justify-content:flex-start}
  .skn-modern-header .skn-modern-info-date>*,.skn-modern-header .skn-modern-quicklinks>*{font-size:10px}
  .skn-modern-header .skn-modern-quicklinks{border-top:1px solid #edf0f4;padding-top:4px;margin-top:3px}
  .skn-modern-header .skn-modern-info-date>*:first-child,.skn-modern-header .skn-modern-quicklinks>*:first-child{padding-inline-start:0}
}
@media(max-width:365px){
  .skn-modern-header .skn-modern-brand .skn-logo-image,.skn-modern-header .skn-modern-brand .custom-logo{width:125px!important;height:39px!important}
  .skn-modern-header .skn-modern-search-toggle,.skn-modern-header .skn-modern-menu-toggle{width:38px;height:38px;min-width:38px}
  .skn-modern-header .skn-modern-info-date>*,.skn-modern-header .skn-modern-quicklinks>*{padding-inline:5px}
}
@media(prefers-reduced-motion:reduce){
  .skn-modern-header :where(a,button){transition:none!important}
}
/* The bundled logo is white on transparent; render it in dark ink on this light header. */
.skn-modern-header .skn-modern-brand img.skn-logo-brand{filter:brightness(0)!important}

/* Honour the existing sticky-navigation setting in the alternative header. */
body.skn-sticky .skn-site-header.skn-modern-header{position:sticky;top:0;z-index:70}
body.admin-bar.skn-sticky .skn-site-header.skn-modern-header{top:32px}
@media(max-width:782px){body.admin-bar.skn-sticky .skn-site-header.skn-modern-header{top:46px}}
