/* IV7 Game — Astra Header Builder styling (site-wide). Colors come from the
   Astra global palette (--ast-global-color-*), so re-theming stays dynamic. */

/* Sticky header (free Astra is not sticky by default) */
#masthead { position: sticky; top: 0; z-index: 999; }

/* Header bar: brand off-white background + thin bottom border */
.ast-primary-header-bar,
.main-header-bar,
#masthead .main-header-bar {
  background: var(--ast-global-color-4, #F7F4EE);
}
.ast-primary-header-bar {
  border-bottom: 1px solid var(--ast-global-color-6, #E6DED5) !important;
}
.ast-primary-header-bar .ast-container,
.site-primary-header-wrap .ast-container { min-height: 68px; }

/* Two-tone text brand (HTML component) */
.iv7-brand {
  display: inline-block;
  font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-weight: 800;
  font-size: 22px;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ast-global-color-2, #181615);
  text-decoration: none;
}
.iv7-brand:hover { color: var(--ast-global-color-2, #181615); text-decoration: none; }
.iv7-brand b { color: var(--ast-global-color-0, #D62828); font-weight: 800; }

/* Primary menu typography + accent */
.ast-builder-menu-1 .main-header-menu a,
.main-header-menu .menu-link {
  font-family: 'Manrope', system-ui, sans-serif;
  font-weight: 600;
}
.ast-builder-menu-1 .main-header-menu .menu-item > a:hover,
.main-header-menu .current-menu-item > a {
  color: var(--ast-global-color-0, #D62828);
}
/* Red underline under the active item */
.main-header-menu .current-menu-item > a { position: relative; }
.main-header-menu .current-menu-item > a::after {
  content: "";
  position: absolute;
  left: 0.6em; right: 0.6em; bottom: 6px;
  height: 2px; border-radius: 2px;
  background: var(--ast-global-color-0, #D62828);
}

/* Header button as a rounded red pill */
#masthead .ast-custom-button {
  border-radius: 999px !important;
  background: var(--ast-global-color-0, #D62828);
  color: #fff;
  font-family: 'Manrope', system-ui, sans-serif;
  font-weight: 700;
  border: 2px solid transparent;
  transition: background .18s ease, transform .12s ease;
}
#masthead .ast-custom-button:hover {
  background: var(--ast-global-color-1, #B91C1C);
  color: #fff;
  transform: translateY(-1px);
}

/* Native Astra logo + site title (replaces the html-1 brand widget) */
.site-header .ast-site-identity{padding:0;}
.site-header .ast-logo-title-inline .site-logo-img{padding-right:10px;}
.site-header .site-logo-img img{border-radius:8px;}
.site-header .site-title{font-family:var(--iv7-font-head, 'Manrope', system-ui, sans-serif);font-size:22px;font-weight:800;letter-spacing:.02em;line-height:1;}
.site-header .site-title a,.site-header .site-title a:hover,.site-header .site-title a:focus{color:var(--ast-global-color-2, #181615);text-decoration:none;}

/* ===== Mobile header & drawer polish ===== */
/* Keep logo + site title on one line (identity was wrapping vertically on mobile) */
.site-header .ast-site-identity { display: flex; align-items: center; gap: 10px; }
.site-header .site-title { white-space: nowrap; }
.site-header .site-logo-img { line-height: 0; }

/* Hamburger / close trigger: tidy focus state (no dashed outline box) */
.ast-mobile-header-wrap .menu-toggle { color: var(--ast-global-color-0, #D62828); border-radius: 10px; }
.ast-mobile-header-wrap .menu-toggle:focus,
.ast-mobile-header-wrap .menu-toggle:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--ast-global-color-8, #FDECEC); }

/* Drawer container: surface card look */
.ast-mobile-header-content {
  background: var(--ast-global-color-5, #FFFDFC);
  border-bottom: 1px solid var(--ast-global-color-6, #E6DED5);
  box-shadow: 0 18px 30px -22px rgba(24, 22, 21, .35);
  padding: 4px 20px 20px;
}
.ast-mobile-header-content .main-header-menu,
.ast-mobile-header-content .menu-item,
.ast-mobile-header-content .menu-item .menu-link { background: transparent !important; }
.ast-mobile-header-content .menu-link { line-height: 1.5 !important; }

/* Menu rows: comfy tap targets with hairline separators */
.ast-mobile-header-content .menu-item .menu-link {
  padding: 14px 2px !important;
  border-bottom: 1px solid var(--ast-global-color-6, #E6DED5) !important;
  font-size: 16px;
}
.ast-mobile-header-content .menu-item:last-child .menu-link { border-bottom: 0 !important; }

/* Active item: red text + short left accent bar (replaces the desktop underline) */
.ast-mobile-header-content .current-menu-item > .menu-link { color: var(--ast-global-color-0, #D62828) !important; padding-left: 14px !important; }
.ast-mobile-header-content .current-menu-item > a::after {
  left: 0; right: auto; top: 50%; bottom: auto;
  width: 4px; height: 18px;
  transform: translateY(-50%);
  border-radius: 2px;
}

/* Drawer download button: full-width row */
.ast-mobile-header-content .ast-builder-layout-element.ast-header-button-1 { display: block; width: 100%; }
.ast-mobile-header-content .ast-custom-button-link { display: block; width: 100% !important; }
.ast-mobile-header-content .ast-custom-button { display: block; width: 100% !important; box-sizing: border-box; text-align: center; margin-top: 16px; }