/* ==========================================================
   Header.cleaned.css
   Cleaned from Header.css for the header-only template.

   Kept:
   - CSS variables used by the header
   - sticky desktop header
   - desktop/mobile logo rules
   - two-row desktop nav
   - dropdown / mega panel styling
   - mobile floating menu base
   - thin sticky header scroll state

   Removed:
   - duplicate earlier header attempts
   - old SearchPanel/FormField styles not used by this header-only file
   - repeated form-control/search button rules not used by this header-only file
   - unused/empty theme variables
   ========================================================== */

:root {
  --font-main: 'JetBrains Mono', monospace;
  --header-bg: #f8f8f8;
  --panel: #f8f8f8;
  --nav-text: #505052;
  --border: #21262d;
  --tooltip-shadow: rgba(0, 0, 0, 0.1);
  
  
  /*===========Search Engine===========*/
    --panel: rgba(255, 255, 255, 0.84);
    --panel2: rgba(9, 24, 42, 0.045);
    --header-bg: rgba(255, 255, 255, 0.78);
    --flyout-bg: rgba(255, 255, 255, 0.97);
    --text: #162033;
    --muted: #607087;
    --soft: #314159;
    --fire: #d95f18;
    --fire2: #b36a00;
    --ember: #c5370c;
    --cyan: #008eaa;
    --green: #1e8f4d;
    --shadow: 0 24px 70px rgba(44, 61, 84, 0.18);
    --page-bg:
        radial-gradient(circle at top left, rgba(255, 154, 72, 0.24), transparent 34rem),
        radial-gradient(circle at 85% 18%, rgba(0, 160, 190, 0.14), transparent 30rem),
        linear-gradient(135deg, #fbfcff 0%, #edf4fb 52%, #f9fbff 100%);
    --grid-opacity: 0.16;
    --wash: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.35));
  /*===========Search Engine===========*/
}

html {
  scroll-padding-top: 120px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
}

/*===========Search Engine===========*/

.scope-option,
.theme-option,
.future-control {
    position: relative;
    border: 1px solid rgba(128,128,128,0.18);
    background: var(--panel2);
    color: var(--text);
    border-radius: 16px;
    padding: 13px;
    cursor: pointer;
}

.scope-option input,
.theme-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.scope-option span,
.theme-option span {
    display: block;
    font-weight: 800;
}

.scope-option small,
.theme-option small,
.future-control small {
    display: block;
    color: var(--muted);
    margin-top: 4px;
    line-height: 1.35;
}

.scope-option:has(input:checked),
.theme-option.active,
.theme-option:has(input:checked) {
    border-color: rgba(255, 122, 24, 0.44);
    background: rgba(255, 122, 24, 0.12);
    box-shadow: 0 0 0 3px rgba(255, 122, 24, 0.1);
}

.search-hints {
    margin-top: 13px;
    color: var(--muted);
    font-family: var(--mono);
    font-size: 0.8rem;
}


.overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 55;
    background: rgba(0,0,0,0.28);
    backdrop-filter: blur(3px);
}

.overlay.open {
    display: block;
}

.search-panel,
.control-panel {
    display: none;
    position: fixed;
    z-index: 60;
    border-radius: 22px;
    background: var(--flyout-bg);
    border: 1px solid rgba(128,128,128,0.2);
    box-shadow: var(--shadow);
    padding: 18px;
}

.search-panel {
    inset: 88px 17px auto;
    max-width: 820px;
    margin: 0 auto;
}

.control-panel {
    top: 88px;
    right: 17px;
    width: min(420px, calc(100% - 34px));
}

.search-panel.open,
.control-panel.open {
    display: block;
}

.flyout-head {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.flyout-head h2 {
    margin: 0;
    font-size: 1.15rem;
}

.flyout-head p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.45;
}

.close-flyout {
    width: 38px;
    height: 38px;
    border-radius: 13px;
    border: 1px solid rgba(128,128,128,0.2);
    background: var(--panel2);
    color: var(--text);
    cursor: pointer;
}

.search-form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
}

.search-panel input {
    width: 100%;
    height: 54px;
    border: 1px solid rgba(128,128,128,0.22);
    background: var(--panel2);
    color: var(--text);
    border-radius: 16px;
    padding: 0 16px;
    font-size: 1rem;
    outline: none;
}

.search-submit {
    min-width: 112px;
    border: 0;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--fire), var(--ember));
    color: #fff;
    font-weight: 800;
    cursor: pointer;
}

.search-scope-grid,
.theme-grid {
    display: grid;
    gap: 10px;
    margin-top: 14px;
}

.search-scope-grid {
    grid-template-columns: repeat(3, 1fr);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}


.icon-button {
    width: 46px;
    font-size: 1.05rem;
	background-color: transparent;
	border: none;
	margin-top: 8px;
}

.control-group {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid rgba(128,128,128,0.16);
}

.control-group h3 {
    margin: 0 0 10px;
    font-size: 0.95rem;
}

.future-control {
    cursor: default;
    border-style: dashed;
    opacity: 0.82;
}

.search-hints {
    margin-top: 13px;
    color: var(--muted);
    font-family: var(--mono);
    font-size: 0.8rem;
}
/*===========Search Engine===========*/


/* === Header Shell (Cleaned) === */
.main-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  height: 112px;
  min-height: 112px;
  background: var(--header-bg);
  border-bottom: 1px solid rgba(80, 115, 150, 0.35);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
 /* margin-bottom: -100px;*/
}

.navbarHeader {
  max-width: 1280px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 0 auto;
  padding: 10px 22px;
  box-sizing: border-box;
}
/* === End Header Shell (Cleaned) === */

/* === Logo / Banner (Cleaned) === */
.nav-logo {
  width: 300px;
  height: 101px;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  overflow: visible;
  margin-right: 18px;
  transition: width 0.35s ease, height 0.35s ease;
}

.horizontal-list {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 16px;
}

.Logo {
  display: inline-block;
  margin: 0;
}

.horizontal-list li.Logo a,
.navbarHeader-brand {
  text-decoration: none;
}

.nav-logo img,
.banner-image {
  display: block;
  margin-left: 0;
  margin-right: auto;
  padding-left: 0;
}

.nav-logo img.desktop-img {
  width: 300px !important;
  height: 101px !important;
  object-fit: contain;
  transform-origin: left center;
  transform: scale(1);
  transition: transform 0.35s ease;
  will-change: transform;
}

.mobile-img {
  display: none !important;
  transition: width 0.5s ease-in-out, background-color 0.5s ease-in-out;
}
/* === End Logo / Banner (Cleaned) === */

/* === Desktop Two-Row Menu (Cleaned) === */
.nav-link-rows {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 12px;
}

.nav-links,
.nav-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: nowrap;
  gap: 10px;
  width: 100%;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-row-top,
.nav-row-bottom {
  padding-right: 4px !important;
}

.nav-item {
  position: relative;
  height: auto;
  border: 1px solid transparent;
  flex: 0 0 auto;
}

.nav-item:hover {
  border-color: transparent;
}

.nav-link,
.nav-drop-btn,
.BugReport {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--nav-text);
  font: inherit;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  box-sizing: border-box;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.nav-drop-btn {
  border: 0;
}

.nav-link:hover,
.nav-drop-btn:hover,
.nav-item:hover .nav-link,
.nav-item:hover .nav-drop-btn {
  background: rgba(80, 115, 150, 0.10);
  border-color: rgba(80, 115, 150, 0.45);
  color: #121212;
  transform: translateY(-1px);
}

.menu-icon,
.mobile-icon {
  width: 18px;
  min-width: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0.85;
}

.drop-arrow {
  font-size: 0.75rem;
  opacity: 0.75;
}
/* === End Desktop Two-Row Menu (Cleaned) === */

/* === Dropdown / Mega Menu Base (Cleaned) === */
#Admin,
#Cats,
#Templates,
#Blog,
#SearchKB,
.header-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 3000;
  width: 320px;
  max-height: 70vh;
  overflow-y: auto;
  background: var(--panel);
  border: 1px solid rgba(80, 115, 150, 0.50);
  border-radius: 12px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
  padding: 8px;
}


.header-dropdown-menu-small {
  width: 180px;
}

.header-dropdown-menu.is-open {
  display: block !important;
}

#Admin.header-mega-panel,
#Cats.header-mega-panel,
#Templates.header-mega-panel,
#Blog.header-mega-panel,
#SearchKB.header-mega-panel {
  width: min(720px, calc(100vw - 32px));
  padding: 14px;
  overflow: visible;
}

.header-mega-panel {
  background: linear-gradient(180deg, #f8f8f8 0%, #eeeeee 100%);
}

.mega-panel-title {
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #334882;
  border-bottom: 1px solid rgba(80, 115, 150, 0.35);
  padding: 2px 4px 10px 4px;
  margin-bottom: 10px;
}

.mega-panel-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.TagLinks,
.dropdown-content {
  border-radius: 8px;
  margin: 3px 0;
  overflow: hidden;
}

.header-mega-panel .TagLinks {
  margin: 0;
  border-radius: 10px;
  background: #ffffff !important;
  border: 1px solid rgba(80, 115, 150, 0.26);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.75) inset;
}

.TagLinks a,
.dropdown-content a {
  display: block;
  width: 100%;
  padding: 9px 10px;
  color: #505052;
  text-decoration: none;
  font-weight: 600;
  line-height: 1.25;
}

.TagLinks a:hover,
.dropdown-content a:hover,
.header-mega-panel .TagLinks a:hover {
  background: rgba(80, 115, 150, 0.13);
  color: #121212;
  transform: translateY(-1px);
}

.header-mega-panel .TagLinks a {
  min-height: 58px;
  display: grid;
  grid-template-columns: 28px 1fr;
  grid-template-rows: auto auto;
  column-gap: 8px;
  row-gap: 2px;
  align-items: center;
  padding: 10px;
}

.mega-item-icon {
  grid-row: 1 / span 2;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(80, 115, 150, 0.12);
  font-size: 1rem;
}

.header-mega-panel .TagLinks span:not(.mega-item-icon) {
  font-size: 0.9rem;
  font-weight: 800;
  color: #333333;
}

.header-mega-panel .TagLinks small {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  color: #666666;
}

.template-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.template-mega-panel {
  width: min(760px, calc(100vw - 32px));
}

.blog-mega-panel {
  width: 420px;
  max-width: 420px;
}

.blog-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
/* === End Dropdown / Mega Menu Base (Cleaned) === */



/* === Mobile Menu Base (Cleaned) === */
#mobile-menu-container {
  display: none;
}

.mobile-menu-btn,
.nav-actions {
  display: none !important;
}

#mobile-toggle-btn {
  width: 52px;
  height: 52px;
  background: #2d2d2d;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  font-size: 24px;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

#mobile-control-panel {
  position: absolute;
  top: 61px;
  right: 0;
  width: 260px;
  background: var(--header-bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
  z-index: 1000;
}

#mobile-menu-container.open #mobile-control-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

#mobile-menu-container.open #mobile-toggle-btn {
  transform: rotate(90deg);
}

.mobile-panel-items {
  list-style: none;
  padding: 6px;
  margin: 0;
}

.mobile-panel-items li {
  padding: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-panel-items li:last-child {
  border-bottom: 0;
}

.mobile-panel-items li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 12px;
  color: #757272;
  text-decoration: none;
  border-radius: 10px;
  border: 1px double var(--border);
}

.mobile-panel-items li a:hover,
.mobile-panel-items li:hover {
  background: rgba(255, 255, 255, 0.08);
}
/* === End Mobile Menu Base (Cleaned) === */

/* === Thin Header Scroll State (Cleaned) ===
   JS adds .cff-header-scrolled to the BODY.
*/
body.cff-header-scrolled .main-header {
  height: 58px;
  min-height: 58px;
  padding: 0;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
}

body.cff-header-scrolled .navbarHeader {
  min-height: 58px;
  padding: 10px 22px;
  align-items: center;
}

body.cff-header-scrolled .nav-logo {
  width: 100px;
  height: 35px;
}

body.cff-header-scrolled .nav-logo img.desktop-img {
  transform: scale(0.333);
}

body.cff-header-scrolled .nav-link-rows {
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

body.cff-header-scrolled .nav-row {
  width: auto;
  gap: 6px;
}

body.cff-header-scrolled .nav-link,
body.cff-header-scrolled .nav-drop-btn {
  min-height: 28px;
  padding: 5px 7px;
  font-size: 0.82rem;
}

body.cff-header-scrolled .menu-icon {
  display: none;
}
/* === End Thin Header Scroll State (Cleaned) === */


.MaintenanceNote{
	display: inline;
	color:#666; font-size: 12.5pt;

}
.MaintenanceNoteMobile{
	display: none;
}
.MaintenanceInfoContainer{
  border: 1px solid var(--border-soft); text-align: center; height: 55px; background-color: white;
  position: sticky;
  top: 130px; /* Must match the exact height of the header above */
  z-index: 99;
  position: -webkit-sticky;
  
  /* Required to position the 'X' button relative to this box */

}
/* 1. Hide the actual input checkbox checkbox from view */
.hide-checkbox {
  display: none;
}

/* 2. Style the Close 'X' button to sit neatly in the top-right corner */
.close-button {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  cursor: pointer;
  color: #000;
  opacity: 0.6;
}

.close-button:hover {
  opacity: 1; /* Brightens slightly when hovered */
}

/* 3. Ensure your container has relative positioning so the 'X' aligns to it */


/* 4. THE INVERTED MAGIC: If the checkbox is checked, hide the parent container */
.hide-checkbox:checked ~ * {
  display: none !important;
}

/* Also hide the container background/borders when closed */
.MaintenanceInfoContainer:has(.hide-checkbox:checked) {
  display: none !important;
}


body.cff-header-scrolled .MaintenanceInfoContainer {
  height: 58px;
  min-height: 58px;
  padding: 0;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
  top: 58px;
}

@media screen and (max-width: 785px) {
  /*.MaintenanceNoteMobile {
    display: inline; 
	margin-right: 50px;
	color:#666; font-size: 12.5pt;
  }*/
  body.cff-header-scrolled .MaintenanceInfoContainer {
	  height: 85px;
  }
.MaintenanceInfoContainer{
	top: 80px;
	height: 85px;
}
}