/* Full-width header with two equal-width grid columns */
.site-header {
  position: fixed;
  top:0px;
  left:0px;
  padding-top:0px;
  padding-left:0px;

   /* background-color: green;  */

  color: black;
  height: 80px;
  display: grid;
  grid-template-columns: 1fr 1fr; /* Two equal columns */
  align-items: center;
  width: calc(100%);
  box-sizing: border-box;
  z-index: 4999;
    border-bottom: 1px #7E0000 solid;
}

.page-id-276 .site-header {
  background-color: white !important;
  height:138px;
  border-bottom: 1px #7E0000 solid;
}

.page-id-14420 .site-header {
  background-color: white !important;
  height:138px;
  border-bottom: 1px #7E0000 solid;
}



.white-logo {
  display: block; /* Show by default */
}

.red-logo {
  display: none; /* Hide red logo by default */
}

/* On page 42, hide white logo */
.page-id-276 .white-logo {
  display: none;
}

/* On page 276, show red logo */
.page-id-276 .red-logo {
  display: block;
}

.page-id-276 .wp-block-navigation__responsive-container-open::before {
  background-image: url('/wp-content/uploads/2025/08/Nav-Bar-Red.svg'); 
}



/* On page 14420 , hide white logo */
.page-id-14420  .white-logo {
  display: none;
}

/* On page 276, show red logo */
.page-id-14420  .red-logo {
  display: block;
}

.page-id-14420  .wp-block-navigation__responsive-container-open::before {
  background-image: url('/wp-content/uploads/2025/08/Nav-Bar-Red.svg'); 
}



.single-issue  .sb-header-account__name {
  color: #CD122E;
}

.single-issue .sb-header-account__company {
  color: #CD122E;
}

/* Archive Page */

.page-id-272 .sb-header-account__name {
  color: #CD122E;
}

.page-id-272 .sb-header-account__name {
  color: #CD122E;
}

.page-id-272 .sb-header-account__company {
  color: #CD122E;
}


.page-id-274 .sb-header-account__name {
  color: #CD122E;
}

.page-id-274 .sb-header-account__company {
  color: #CD122E;
}

.page-id-276 .sb-header-account__name {
  color: #CD122E;
}

.page-id-276 .sb-header-account__company {
  color: #CD122E;
}


.page-id-14420 .sb-header-account__name {
  color: #CD122E;
}

.page-id-14420 .sb-header-account__company {
  color: #CD122E;
}

.page-id-272 .site-header {
  background-color: white !important;
  height:138px;
  border-bottom: 1px #7E0000 solid;
}


/* On page 272 , hide white logo */
.page-id-272 .white-logo {
  display: none;
}

/* On page 272 , show red logo */
.page-id-272  .red-logo {
  display: block;
}

.page-id-272 .wp-block-navigation__responsive-container-open::before {
  background-image: url('/wp-content/uploads/2025/08/Nav-Bar-Red.svg'); 
}




/* End Archive Page */





/* Search Page */


.page-id-274 .site-header {
  background-color: white !important;
  height:138px;
  border-bottom: 1px #7E0000 solid;
}


/* On page 272 , hide white logo */
.page-id-274 .white-logo {
  display: none;
}

/* On page 272 , show red logo */
.page-id-274  .red-logo {
  display: block;
}

.page-id-274 .wp-block-navigation__responsive-container-open::before {
  background-image: url('/wp-content/uploads/2025/08/Nav-Bar-Red.svg'); 
}




/* End Search Page */




/* Latest Brieging  Page */

.latest-breifing-title{
  font-family: 'Terza Display', sans-serif;
  font-weight: 500;
  font-size: 26px;
  line-height: 28px;
  color: black;
  margin-top: -20px;
}

.page-id-72 .site-header {
  background-color: white !important;
  height:138px;
  border-bottom: 1px #7E0000 solid;
}


/* On page 72, hide white logo */
.page-id-72 .white-logo {
  display: none;
}

/* On page 72, show red logo */
.page-id-72 .red-logo {
  display: block;
}

.page-id-72 .wp-block-navigation__responsive-container-open::before {
  background-image: url('/wp-content/uploads/2025/08/Nav-Bar-Red.svg'); 
}



/* END Latest Brieging  Page */


.extra-close-menu-button{
  display: relative;
  top:0px;
  right: 0px;
  height: 30px;
  width: 30px;;
}

.wp-block-navigation {
  z-index: 5; /* Lower than header */
}

.wp-block-navigation__responsive-container.is-menu-open {
  z-index: 5 !important;
}

/* Contains the blinking owl and sunday briefing logo */
.site-logo-link{
  /* background-color: pink;; */
    align-self: start; /* <-- This aligns the whole container to the top */
    display: flex;
    justify-content: flex-start;
    color:white !important;
    text-decoration: none;
    color: inherit;
    outline: none;
    box-shadow: none;
    height: 138px;
}

.site-logo-lottie-player{
    height:70px;
    width:70px;
    margin-right:10px;
}

/* No longer needed, but safe to keep if you use .header-inner elsewhere */
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
}

/* Logo container (left column) */
.site-logo-container {
  display: flex;
  margin-left:27px;
  align-items: center;
  opacity: 1;
}

/* Navigation container (right column) */
.site-navigation-container {
  position: relative;
  top:60px;
  left:(50%+72px);
  color:white !important;
  height: 100%;
  /* background-color: green; */
}

.site-navigation-container-close{
  position: absolute;
  left: calc(50% - 21px);
  top:calc(69px - 21px);
}

.wp-block-navigation-item__label .page-id-276 {
  color:#cd122e !important;
}

.wp-block-navigation-item__label .page-id-14420 {
  color:#cd122e !important;
}

/* override alignment of menu */
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation-item, .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation__container, .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-page-list
{
  align-items: center !important;
}

 


.site-logo-link:hover,
.site-logo-link:focus,
.site-logo-link:focus-visible,
.site-logo-link:active {
  text-decoration: none;
  color: inherit;
  outline: none;
  box-shadow: none;
}

/* Site title next to logo */
.site-title {
  font-size: 17px;
  font-family: Terza Display;
  font-weight: 400;
  color: white;
  margin: 0;
  line-height: 1.2;
  margin-left: -62px !important; /* optional, if you want it overlapping the logo */
  margin-top:-100px;
  white-space: pre-line;
}

/* Remove extra margin from nav block */
.wp-block-navigation {
  margin: 0;
  margin-left:-35px;
}

.wp-block-navigation__responsive-container-open {
  outline: none;
  box-shadow: none;
  border: none; /* optional, if a border is being applied */
}


.wp-block-navigation__responsive-container-open svg {
  display: none !important;
}

.wp-block-navigation__responsive-container-open::before {
  content: "";
  display: inline-block;
  width: 72px;
  height: 19px;
  background-image: url('/wp-content/uploads/2025/08/BurgerMenu.svg'); 
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
}



/* Optional: Responsive layout for mobile screens */
@media screen and (max-width: 768px) {
  .site-header {

  }

  .site-title{
    margin-top: -5px;
  }

.site-logo-container{
   margin-left: 27px;
     grid-template-columns: auto;
}

  .site-navigation-container {
     z-index: 6000;
  }

  /* This are needed to adjust the lottie file based on its white space / clipping */
  .site-logo-lottie-player{

  }
}




/* Header account badge / search icon overlay */
.sb-header-account {
  position: fixed;
  top: 24px;
  right: 50px;
  z-index: 5002; /* above .site-header (5001) */
  text-align: center;
  line-height: 1.1;
  color: inherit; /* match header text color */
  pointer-events: auto;
}

.sb-header-account__badge {
  font-family: 'Terza Display', sans-serif;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.sb-header-account__name {
  font-family: 'Terza Display', sans-serif;
  font-weight: 500;
  letter-spacing: 0.4px;
  font-size: 17px;
  margin-top: 20px;
  color:white;
  margin-bottom: 5px;
  line-height: 21px;
  /* opacity: 0.5; */
}

.sb-header-account__name_corp{
  font-size: 11px;
}


.sb-header-account__company{
  font-family: 'Terza Display', sans-serif;
  font-weight: 500;
  color:white;
  font-size: 11px;
  letter-spacing: 3px;
    text-transform: uppercase !important;
    z-index: 5002; /* above .site-header (5001) */
  /* opacity: 0.5; */
}

.sb-header-account__company_corp{
  color:white;
  font-size: 17px;
  text-transform: capitalize;
}

/* Search icon shown for guests on the special page only */
.sb-header-search-icon {
  position: fixed;
  top: 48px;
  right: 27px;
  z-index: 5002;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  color: inherit;         /* inherit header color */
  text-decoration: none;  /* no underline */
  color:white;
}

.single-issue .sb-header-search-icon{
  color:#CD122E;
}

body.has-modal-open .sb-header-search-icon{
  color:white !important;
}

.sb-header-search-icon svg {
    width: 64px;
    height: 64px;
}

/* Optional tweaks for small screens */
@media (max-width: 768px) {
  .sb-header-account__badge { font-size: 11px; }
  .sb-header-account__name  { font-size: 13px; }
}


/* hidden by default */




  .sb-header-search-icon--mobile {
    position: fixed;
    top: 48px;
    right: 27px;
    z-index: 5003; /* above .site-header (5001) & account badge (5002) */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    color: #CD122E; /* red icon */
    text-decoration: none;
  }
  .sb-header-search-icon--mobile svg { width: 22px; height: 22px; } 



/* When the mobile menu/overlay is open, make the text white (only on page 272) */
body.page-id-272.has-modal-open .sb-header-account__name,
body.page-id-272.has-modal-open .sb-header-account__company,
body.page-id-272.has-modal-open .sb-header-search-icon,
body.page-id-274.has-modal-open .sb-header-account__name,
body.page-id-274.has-modal-open .sb-header-account__company,
body.page-id-274.has-modal-open .sb-header-search-icon,
body.page-id-276.has-modal-open .sb-header-account__company,
body.page-id-276.has-modal-open .sb-header-search-icon,
body.single-issue.has-modal-open .sb-header-account__company,
body.single-issue.has-modal-open .sb-header-search-icon
{
  color: #fff !important;
}

/* When the menu is open on the Issue with ID 272 */
body.postid-272.has-modal-open .sb-header-account__name,
body.postid-272.has-modal-open .sb-header-account__company ,
body.page-id-274.has-modal-open .sb-header-account__name,
body.page-id-274.has-modal-open .sb-header-account__company, 
body.page-id-276.has-modal-open .sb-header-account__name,
body.page-id-276.has-modal-open .sb-header-account__company,
body.single-issue .has-modal-open .sb-header-account__name,
body.single-issue .has-modal-open .sb-header-account__company  
{
  color: #fff !important;
}

/* If your site sometimes puts the open class on <html> */
html.has-modal-open body.postid-272 .sb-header-account__name,
html.has-modal-open body.postid-272 .sb-header-account__company,
html.has-modal-open body.postid-274 .sb-header-account__name,
html.has-modal-open body.postid-274 .sb-header-account__company,
html.has-modal-open body.postid-276 .sb-header-account__name,
html.has-modal-open body.postid-276 .sb-header-account__company,
html.has-modal-open body.postid-14420 .sb-header-account__name,
html.has-modal-open body.postid-14420 .sb-header-account__company,
html.has-modal-open body.single-issue .sb-header-account__name,
html.has-modal-open body.single-issue .sb-header-account__company   
{
  color: #fff !important;
}

/* When the WP Nav overlay is open on page 272, force white text */
body.page-id-272:has(.wp-block-navigation__responsive-container.is-menu-open) .sb-header-account__name,
body.page-id-272:has(.wp-block-navigation__responsive-container.is-menu-open) .sb-header-account__company,
body.page-id-274:has(.wp-block-navigation__responsive-container.is-menu-open) .sb-header-account__name,
body.page-id-274:has(.wp-block-navigation__responsive-container.is-menu-open) .sb-header-account__company, 
body.page-id-276:has(.wp-block-navigation__responsive-container.is-menu-open) .sb-header-account__name,
body.page-id-276:has(.wp-block-navigation__responsive-container.is-menu-open) .sb-header-account__company, 
body.page-id-14420:has(.wp-block-navigation__responsive-container.is-menu-open) .sb-header-account__name,
body.page-id-14420:has(.wp-block-navigation__responsive-container.is-menu-open) .sb-header-account__company, 
body.single-issue:has(.wp-block-navigation__responsive-container.is-menu-open) .sb-header-account__name,
body.single-issue:has(.wp-block-navigation__responsive-container.is-menu-open) .sb-header-account__company 
{
  color: #fff !important;
}

/* If your build adds has-modal-open to <body> or <html>, keep these too */
body.page-id-272.has-modal-open .sb-header-account__name,
body.page-id-272.has-modal-open .sb-header-account__company,
html.has-modal-open body.page-id-272 .sb-header-account__name,
html.has-modal-open body.page-id-272 .sb-header-account__company,
body.page-id-274.has-modal-open .sb-header-account__name,
body.page-id-274.has-modal-open .sb-header-account__company,
body.page-id-276.has-modal-open .sb-header-account__name,
body.page-id-276.has-modal-open .sb-header-account__company,
html.has-modal-open body.page-id-274 .sb-header-account__name,
html.has-modal-open body.page-id-274 .sb-header-account__company,
html.has-modal-open body.single-issue .sb-header-account__company,
html.has-modal-open body.single-issue .sb-header-account__name
{
  color: #fff !important;
}
