/* =============================================
   Custom overrides for 2017 static archive
   ============================================= */

/* --- GLOBAL FONT: Nunito everywhere --- */
body,
p,
h1, h2, h3, h4, h5, h6,
a,
li,
span,
div,
td, th,
input, textarea, select, button,
.x-text,
.x-text p,
.h-custom-headline,
.h-custom-headline span,
.x-colophon,
.x-sidebar,
.x-sidebar *,
.widget,
.widget * {
  font-family: 'Nunito', 'Helvetica Neue', Arial, sans-serif !important;
}

/* --- HERO IMAGE: show from top instead of center (prevents top cropping) --- */
.x-section.bg-image {
  background-position: 50% 0% !important;
}

/* --- HEADER / NAVBAR --- */
.x-topbar { display: none !important; }

/* Archive nav bar (above site navbar) */
#archive-nav {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 99999 !important;
}

.x-navbar-wrap {
  position: fixed;
  top: 28px;
  left: 0;
  right: 0;
  z-index: 9999;
}

.x-navbar {
  background: white !important;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08) !important;
  border-bottom: none !important;
}

.x-navbar-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between;
  padding: 8px 20px !important;
}

.x-brand.img {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.x-brand img {
  max-height: 45px !important;
  width: auto !important;
}

/* Menu desktop */
.x-nav-wrap.desktop {
  display: flex !important;
  float: none !important;
}

.x-nav-wrap.desktop .x-nav {
  display: flex !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  align-items: center;
  gap: 5px;
}

.x-nav > li {
  float: none !important;
}

.x-nav > li > a {
  font-family: 'Nunito', 'Helvetica Neue', Arial, sans-serif !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  color: #333 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.08em !important;
  padding: 8px 14px !important;
  text-decoration: none !important;
  border-radius: 4px;
  transition: color 0.2s, background 0.2s !important;
  display: block;
  line-height: 1.4 !important;
  box-shadow: none !important;
}

.x-nav > li > a:hover,
.x-nav > .current-menu-item > a,
.x-nav > .x-active > a {
  color: #00bcf2 !important;
  background: rgba(0, 188, 242, 0.06) !important;
  box-shadow: none !important;
}

#menu-item-24 a {
  color: #333 !important;
}
#menu-item-24.current-menu-item a {
  color: #00bcf2 !important;
}

/* Space for archive nav (28px) + fixed navbar (65px) */
body {
  padding-top: 93px !important;
}

/* Hide container max width inside navbar */
.x-navbar-inner .x-container {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between;
}

/* Mobile nav toggle */
.x-btn-navbar {
  display: none;
  background: none !important;
  border: none !important;
  font-size: 24px;
  color: #333 !important;
  padding: 5px;
  cursor: pointer;
}

/* Mobile menu */
.x-nav-wrap.mobile {
  display: none !important;
}

@media (max-width: 979px) {
  .x-nav-wrap.desktop {
    display: none !important;
  }
  .x-btn-navbar {
    display: block !important;
  }
  .x-nav-wrap.mobile {
    display: none !important;
  }
  .x-nav-wrap.mobile.in {
    display: block !important;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    padding: 10px 0;
  }
  .x-nav-wrap.mobile .x-nav {
    list-style: none;
    margin: 0;
    padding: 0;
  }
  .x-nav-wrap.mobile .x-nav > li > a {
    display: block;
    padding: 12px 20px !important;
    font-family: 'Nunito', sans-serif !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #333 !important;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid #f0f0f0;
  }
  .x-nav-wrap.mobile .x-nav > li > a:hover {
    color: #00bcf2 !important;
    background: rgba(0, 188, 242, 0.04);
  }
}

/* --- BUTTONS --- */

/* Default buttons (on white/transparent background) → blue */
.x-btn.x-btn-flat,
.x-btn.x-btn-global,
a.x-btn {
  background-color: #00bcf2 !important;
  color: white !important;
  border: 2px solid #00bcf2 !important;
  text-shadow: none !important;
  font-family: 'Nunito', sans-serif !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  padding: 12px 28px !important;
  border-radius: 5px !important;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all 0.25s ease !important;
  display: inline-block;
  text-decoration: none !important;
}

.x-btn.x-btn-flat:hover,
.x-btn.x-btn-global:hover,
a.x-btn:hover {
  background-color: white !important;
  color: #00bcf2 !important;
  border-color: #00bcf2 !important;
}

/* Buttons inside blue sections → white */
[style*="hsl(193"] .x-btn.x-btn-flat,
[style*="hsl(193"] .x-btn.x-btn-global,
[style*="hsl(193"] a.x-btn,
.x-section[style*="hsl(193"] .x-btn {
  background-color: white !important;
  color: #00bcf2 !important;
  border: 2px solid white !important;
}

[style*="hsl(193"] .x-btn.x-btn-flat:hover,
[style*="hsl(193"] .x-btn.x-btn-global:hover,
[style*="hsl(193"] a.x-btn:hover,
.x-section[style*="hsl(193"] .x-btn:hover {
  background-color: transparent !important;
  color: white !important;
  border-color: white !important;
}

/* --- H3 links (artist names on homepage) --- */
h3 a {
  color: #00bcf2 !important;
  font-family: 'Nunito', sans-serif !important;
}
h3 a:hover {
  color: #333 !important;
}

/* --- Override per-page inline styles (artist pages set a{font-size:20px} globally) --- */
.masthead a,
.x-navbar a,
.x-nav a,
.x-nav-wrap a {
  font-size: inherit !important;
}

/* Override per-page cornerstone-custom-page-css that colors menu items */
#menu-item-22 a,
#menu-item-23 a,
#menu-item-21 a,
#menu-item-20 a {
  color: #333 !important;
}
#menu-item-22 a:hover,
#menu-item-23 a:hover,
#menu-item-21 a:hover,
#menu-item-20 a:hover {
  color: #00bcf2 !important;
}

/* Override per-page box-shadow on nav hover (inline styles set colored box-shadows) */
.x-navbar .desktop .x-nav > li > a:hover,
.x-navbar .desktop .x-nav > .x-active > a,
.x-navbar .desktop .x-nav > .current-menu-item > a {
  box-shadow: none !important;
}

/* --- FOOTER --- */
footer,
.x-colophon.top,
footer.x-colophon {
  background-color: #1a1a2e !important;
}
.x-colophon.bottom {
  background-color: #12121f !important;
}

/* --- SIDEBAR (artist pages) --- */
.x-sidebar {
  margin-top: 30px;
}
.x-sidebar a {
  font-size: 14px !important;
}

/* --- Content area link reset (artist pages set all links to 20px) --- */
.x-main a {
  font-size: inherit !important;
}
.x-main .x-text a {
  color: #00bcf2;
}
.x-main .x-text a:hover {
  color: #333;
}
