@import "https://cdn.jsdelivr.net/npm/normalize.css@8.0.1/normalize.css";

/* ==========================================================================
   JOLT MASTER CSS - REVISED HEADER & RESTORED BRANDING
   STYLING: Mercedes Studio / Minimalist AI
   ========================================================================== */

:root {
  --jolt-gunmetal: #282E2B;
  --jolt-studio-white: #FBFBFB;
  --jolt-border: #EAEAEA;
  --jolt-text-light: #6B7280;
  --jolt-cta-grey: #9CA3AF;
}

/* 1. GLOBAL RESET */
*, *:before, *:after { box-sizing: border-box; }

body {
  font-family: 'Inter', Arial, Helvetica, sans-serif;
  background-color: var(--jolt-studio-white);
  color: var(--jolt-gunmetal);
  -webkit-font-smoothing: antialiased;
  margin: 0;
}

a { text-decoration: none; transition: all 0.2s ease; }

/* 2. HEADER: ALIGNMENT & SELECTIVE GHOST KILLER */
.lt-topbar {
  background: #ffffff !important;
  height: 80px !important;
  border-bottom: 1px solid var(--jolt-border);
  position: sticky !important;
  top: 0;
  z-index: 1000;
  width: 100%;
}

.lt-topbar__wrap {
  display: flex !important;
  justify-content: space-between !important; /* Restores Left/Right balance */
  align-items: center !important;
  height: 80px !important;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
}

/* LEFT SIDE: Protect the Brand Logo */
.lt-topbar__logo {
  display: flex !important;
  align-items: center !important;
}

.lt-topbar__logo img {
  max-height: 32px !important;
  width: auto !important;
  display: block !important;
}

/* RIGHT SIDE: Specifically nuke only the ghost logo/avatar appearing in nav */
.lt-topbar__right { 
  display: flex !important; 
  align-items: center !important; 
}

/* Targets the unclickable logo inside the right container */
.lt-topbar__right .lt-topbar__logo,
.lt-topbar__right .logo,
.lt-topbar__right [class*="avatar"],
.lt-topbar__right svg,
.lt-topbar__right i:not(.lt-dropdown-toggle i) {
  display: none !important;
}

/* 3. LANGUAGE PICKER - STABLE & CLICKABLE */
.lt-dropdown {
  position: relative;
  display: inline-block;
}

.lt-topbar__right .lt-dropdown-toggle {
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px; 
  border: 1.5px solid var(--jolt-gunmetal) !important;
  color: var(--jolt-gunmetal) !important;
  padding: 8px 16px !important;
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  letter-spacing: 1px;
  position: relative;
  z-index: 10; /* Ensures button is always on top */
}

/* THE CHEVRON */
.lt-topbar__right .lt-dropdown-toggle::after {
  content: "";
  width: 5px;
  height: 5px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  margin-top: -3px; 
  display: inline-block;
  pointer-events: none;
}

/* THE MENU - REWRITTEN FOR CLICKABILITY */
.lt-dropdown-menu {
  display: none; /* Removed the !important so it can be toggled */
  position: absolute;
  top: 100%;
  right: 0;
  background: #ffffff !important;
  border: 1px solid var(--jolt-border) !important;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1) !important;
  padding: 10px 0 !important;
  min-width: 200px;
  margin-top: 8px;
  border-radius: 8px;
  z-index: 5; /* Sits below the button's z-index until opened */
}

/* THE "OPEN" STATE - FORCING VISIBILITY */
/* This targets the two most common ways Zendesk toggles these menus */
.lt-dropdown[aria-expanded="true"] .lt-dropdown-menu,
.lt-dropdown.is-open .lt-dropdown-menu,
.lt-dropdown-toggle[aria-expanded="true"] + .lt-dropdown-menu {
  display: block !important;
  z-index: 2000 !important;
}

/* STYLING THE LINKS INSIDE */
.lt-dropdown-menu a {
  display: block !important;
  padding: 10px 20px !important;
  color: var(--jolt-gunmetal) !important;
  font-size: 12px !important;
  font-weight: 600 !important;
}

.lt-dropdown-menu a:hover {
  background-color: #f5f5f5 !important;
}

/* 4. THE AI HERO SECTION */
.jolt-ai-hero {
  background: var(--jolt-studio-white) !important;
  padding: 100px 20px !important;
  text-align: center;
}

.jolt-ai-results-page .jolt-ai-hero { 
  padding: 40px 20px 10px 20px !important; 
}

.jolt-ai-badge {
  display: inline-block;
  padding: 6px 14px;
  background: #ffffff;
  border: 1px solid var(--jolt-border);
  color: var(--jolt-gunmetal);
  border-radius: 4px;
  font-size: 11px;
  font-weight: 800;
  margin-bottom: 25px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.jolt-ai-title {
  color: var(--jolt-gunmetal) !important;
  font-size: 3.5rem !important;
  font-weight: 800 !important;
  margin-bottom: 10px !important;
  text-transform: uppercase;
  letter-spacing: -0.04em;
}

.jolt-ai-subtitle {
  font-size: 1.15rem !important;
  color: var(--jolt-text-light) !important;
  margin: 0 auto 50px auto !important;
  display: block !important;
}

/* 5. SEARCH & CTA */
.jolt-ai-search-wrapper { max-width: 800px; margin: 0 auto; width: 100%; }
.jolt-ai-input-group { display: flex !important; gap: 15px !important; }
.jolt-ai-input { flex: 1 !important; }

.jolt-ai-input input[type="search"] {
  height: 64px !important;
  background: #ffffff !important;
  border: 1.5px solid var(--jolt-border) !important;
  border-radius: 8px !important; 
  padding: 0 25px !important;
  width: 100% !important;
  font-size: 16px !important;
}

.jolt-ai-input input[type="search"]:focus {
  outline: none !important;
  border-color: var(--jolt-gunmetal) !important;
  box-shadow: 0 10px 30px -5px rgba(40, 46, 43, 0.1) !important;
}

.jolt-ai-cta {
  height: 64px !important;
  padding: 0 40px !important;
  background-color: var(--jolt-gunmetal) !important; 
  color: var(--jolt-studio-white) !important; 
  border-radius: 8px !important; 
  border: none !important;
  font-weight: 700 !important;
  text-transform: uppercase;
  cursor: pointer;
}

/* 6. SEARCH RESULTS AREA */
.jolt-ai-results-meta { 
  text-align: center; 
  margin: 10px 0 30px 0; 
  display: flex;
  flex-direction: column;
  align-items: center;
}

.jolt-ai-results-title {
  color: var(--jolt-gunmetal);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 3px;
  opacity: 0.5;
  margin-top: 10px;
}

.jolt-ai-results-list { 
  list-style: none; 
  padding: 0; 
  max-width: 750px; 
  margin: 0 auto 50px auto !important; 
}

.jolt-ai-result-card { 
  background: #FFFFFF; 
  border: 1.5px solid var(--jolt-border); 
  border-radius: 8px !important; 
  margin-bottom: 12px; 
}

.jolt-ai-result-link { 
  display: flex; 
  justify-content: space-between; 
  align-items: center; 
  padding: 22px 30px; 
}

.jolt-ai-result-heading { 
  margin: 0 !important; 
  color: var(--jolt-gunmetal) !important; 
  font-size: 18px !important; 
  font-weight: 600 !important; 
}

.jolt-ai-result-cta { 
  font-weight: 700; 
  font-size: 11px; 
  color: var(--jolt-cta-grey) !important; 
  text-transform: uppercase; 
}

.jolt-ai-result-card:hover .jolt-ai-result-cta {
  color: var(--jolt-gunmetal) !important;
}

/* 7. CLEANUP */
.jolt-result-item:nth-child(n+4), 
.pagination, 
.lt-main-content, 
.lt-hero-unit__decor,
.powered-by-zendesk { 
  display: none !important; 
}

/* --- ARTICLE SPECIFIC STYLING (COMPACT STUDIO) --- */
/* --- ARTICLE SHEET DESIGN (EXPANDED STUDIO) --- */
.jolt-article-main {
  max-width: 960px; /* Increased from 700px to fill more screen real estate */
  margin: 20px auto 24px auto !important;
  padding: 32px 40px; /* Increased padding to balance the wider container */
  background: #ffffff;
  border: 1px solid var(--jolt-border);
  border-radius: 12px;
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.04); /* Slightly deeper shadow for the larger card */
}

/* Scaled title for the wider layout */
.article-header h1 {
  font-size: 1.8rem; /* Dropped from 2.6rem for a more 'editorial' feel */
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.03em; /* Slightly less aggressive tracking */
  margin-bottom: 24px;
  line-height: 1.2; /* A bit more breathing room for multi-line titles */
  color: var(--jolt-gunmetal);
}

.article-body {
  line-height: 1.2; /* Slightly increased for the wider line length */
  font-size: 1.0rem; /* Bumping font size slightly so it fills the space better */
  color: var(--jolt-gunmetal);
}

/* Spacing Adjustments for Wider Layout */
.article-body p {
  margin-bottom: 4px; 
}

.article-body h2, .article-body h3 {
  font-size: 1.0rem; /* Keeps them distinct but clearly subordinate to the main title */
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-top: 32px;
  margin-bottom: 12px;
  color: var(--jolt-gunmetal);
}

/* --- SELECTIVE MINI HERO (SEARCH & ARTICLE PAGES ONLY) --- */

/* Apply tight padding to both Search and Article heroes */
.jolt-ai-results-page .jolt-ai-hero,
.jolt-article-view .jolt-ai-hero {
  padding: 40px 20px 30px 20px !important; 
  background-color: var(--jolt-studio-white) !important;
}

/* Shrink titles on both Search and Article pages */
.jolt-ai-results-page .jolt-ai-title,
.jolt-article-view .jolt-ai-title {
  font-size: 1.8rem !important; 
  margin-bottom: 5px !important;
}

/* Shrink subtext on both Search and Article pages */
.jolt-ai-results-page .jolt-ai-subtitle,
.jolt-article-view .jolt-ai-subtitle {
  font-size: 0.95rem !important;
  margin-bottom: 25px !important;
}

/* Tighten search bar width to maintain the "Tool" look */
.jolt-ai-results-page .jolt-ai-search-wrapper,
.jolt-article-view .jolt-ai-search-wrapper {
  max-width: 650px;
  margin: 0 auto;
}

/* ==========================================================================
   THE 60-SECOND MOBILE FIX
   ========================================================================== */
@media (max-width: 768px) {
  
  /* 1. Shrink the Hero so it doesn't take up the whole screen */
  .jolt-ai-hero { 
    padding: 40px 20px !important; 
  }
  
  .jolt-ai-title { 
    font-size: 1.8rem !important; /* Punchy but fits on one line */
  }

  .jolt-ai-subtitle {
    font-size: 0.9rem !important;
    margin-bottom: 25px !important;
  }

  /* 2. Stack the Search Bar for Thumbs */
  .jolt-ai-input-group { 
    flex-direction: column !important; /* Puts button under input */
    gap: 10px !important; 
  }

  .jolt-ai-cta { 
    width: 100% !important; /* Big easy-to-tap button */
    height: 56px !important; 
  }

  /* 3. Adjust the Article Sheet */
  .jolt-article-main {
    width: 92% !important;
    margin: 20px auto !important;
    padding: 25px 20px !important; /* Tightens internal gaps */
    border-radius: 8px;
  }

  .article-header h1 {
    font-size: 1.4rem !important; /* Smaller title so it doesn't wrap 4 times */
  }

  .article-body {
    font-size: 1rem !important; /* Standard readable mobile size */
  }
}

/* --- ARTICLE FEEDBACK: THUMBS UP DOWN --- */
.article-votes {
  margin-top: 24px;
  padding-top: 16px;
  padding-bottom: 8px; /* Added a small bottom padding for balance */
  text-align: center;
  border-top: 1px solid var(--jolt-border);
}

.article-votes-question {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
  color: var(--jolt-gunmetal);
}

.article-vote {
  min-width: 100px;
  height: 40px;
  background: transparent;
  border: 1.5px solid var(--jolt-gunmetal);
  border-radius: 8px; /* 8px rounding */
  color: var(--jolt-gunmetal);
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

/* State when clicked */
.article-vote[aria-selected="true"],
.article-vote.is-active {
  background: var(--jolt-gunmetal) !important;
  color: #ffffff !important;
}

/* === Generative AI answer — outer gold frame === */
.jolt-ai-generative { max-width: 720px; margin: 0 auto; }  /* invisible until it has an answer */

.jolt-ai-generative.has-answer {
  position: relative;
  margin: 0 auto 16px;
  padding: 14px 24px 0;
  background: linear-gradient(180deg, #fffdf5 0%, #ffffff 70%);
  border: 1px solid #f0e6c4;
  border-left: 4px solid #f2c94c;
  border-radius: 14px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, .05);
  font-family: inherit;     /* ← added */
  color: #1f2933;           /* ← added */
  line-height: 1.55;        /* ← added */
  font-size: 15px;          /* ← added */
}
/* JOLT EV Selector Custom Styles */
.jolt-ev-selector {
  background: #ffffff;
  padding: 20px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  max-width: 500px;
  margin: 15px 0;
}
.ev-dropdown {
  width: 100%;
  padding: 10px;
  margin-bottom: 10px;
  border: 1px solid #cccccc;
  border-radius: 4px;
  font-size: 16px;
  background-color: #fff;
  cursor: pointer;
}
.ev-dropdown:focus {
  outline: none;
  border-color: #00E676;
}