/* ============================================
   WedgeHR Help Center — Custom CSS
   Site: help.wedgehr.com (HelpScout Docs)
   Design system: context/wedge/DESIGN.md
   ============================================ */

/* --- FONTS --- */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;1,9..144,400&family=Inter:wght@400;500;600;700&display=swap');

/* --- TOKENS --- */
:root {
  --color-text:           #0D0700;
  --color-text-secondary: #55514C;
  --color-text-muted:     #86837F;
  --color-surface:        #FFFFFF;
  --color-cream:          #FFF3E5;
  --color-cream-hover:    #FFE7CC;
  --color-accent:         #FF8700;
  --color-accent-hover:   #CC6C00;
  --color-border:         rgba(13, 7, 0, 0.15);
  --color-footer-bg:      #251F19;
  --font-heading:         'Fraunces', 'Times New Roman', serif;
  --font-body:            'Inter', Arial, sans-serif;
}

/* --- BASE --- */
body {
  font-family: var(--font-body);
  color: var(--color-text);
  background-color: var(--color-surface);
}


/* ============================================
   HEADER / NAVBAR
   ============================================ */

header#mainNav.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  box-shadow: none;
  border: none;
  margin-bottom: 0;
}


header#mainNav .navbar-inner {
  background: transparent !important;
  box-shadow: none;
  border: none;
  padding: 0 24px;
  min-height: 64px;
}

header#mainNav .navbar-inner .container-fluid {
  display: flex;
  align-items: center;
}

header#mainNav .nav-collapse {
  display: flex !important;
  align-items: center;
}

header#mainNav .nav {
  display: flex;
  align-items: center;
  margin: 0;
}

/* Logo */
header#mainNav .brand {
  padding: 14px 0;
  line-height: 1;
}

header#mainNav .brand img {
  height: 30px;
  width: auto;
  max-width: none;
}

/* Nav links */
header#mainNav .nav li a {
  color: var(--color-text-secondary) !important;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  padding: 20px 14px;
  text-shadow: none;
}

header#mainNav .nav li a:hover,
header#mainNav .nav li a:focus,
header#mainNav .nav li.active a,
header#mainNav .nav li.active a:hover,
header#mainNav .nav li.active a:focus {
  color: var(--color-text) !important;
  background: transparent;
  text-shadow: none;
}

/* Mobile hamburger */
.btn-navbar {
  background: transparent;
  border-color: var(--color-border);
  box-shadow: none;
}

.btn-navbar .icon-bar {
  background-color: var(--color-text);
}


/* ============================================
   HOME HERO
   ============================================ */

section#docsSearch {
  background-color: var(--color-cream);
  background-image: url('https://res.cloudinary.com/dmk0cwamf/image/upload/f_auto,q_auto/background1_jcvyoz');
  background-size: cover;
  background-position: center;
  padding: 120px 24px 100px;
  text-align: center;
}

section#docsSearch h1 {
  font-family: var(--font-heading);
  font-size: 52px;
  font-weight: 400;
  line-height: 1;
  color: var(--color-text);
  margin: 0 0 24px;
  letter-spacing: -0.5px;
}

/* Search form */
section#docsSearch #searchBar {
  max-width: 560px;
  margin: 0 auto;
  display: flex;
  align-items: stretch;
}

section#docsSearch #searchBar input.search-query {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--color-text);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-right: none;
  border-radius: 8px 0 0 8px;
  padding: 14px 18px;
  flex: 1;
  min-width: 0;
  box-shadow: none;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

section#docsSearch #searchBar input.search-query::placeholder {
  color: var(--color-text-muted);
}

section#docsSearch #searchBar input.search-query:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(255, 135, 0, 0.12);
}

section#docsSearch #searchBar button {
  background: var(--color-accent);
  border: none;
  border-radius: 0 8px 8px 0;
  color: #FFFFFF;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  padding: 0 20px;
  flex-shrink: 0;
  box-shadow: none;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

section#docsSearch #searchBar button:hover {
  background: var(--color-accent-hover);
  color: #FFFFFF;
}

/* Search autocomplete dropdown */
#serp-dd {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(13, 7, 0, 0.08);
  margin-top: 4px;
  overflow: hidden;
}

#serp-dd .result a {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--color-text) !important;
  padding: 10px 16px;
  display: block;
  text-decoration: none;
}

#serp-dd .result a:hover,
#serp-dd .result > li.active {
  background: var(--color-cream);
  color: var(--color-accent) !important;
}


/* ============================================
   HOME — COLLECTION CARDS
   ============================================ */

section#contentArea {
  background: var(--color-surface);
  padding: 48px 24px;
}


/* Collection group heading (e.g. "Job Seekers", "Organizations") */
section.collection-category {
  max-width: 960px;
  margin: 0 auto 40px;
}

section.collection-category h2 {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 400;
  line-height: 1;
  color: var(--color-text);
  margin: 0 0 20px;
}

section.collection-category h2 a {
  color: var(--color-text);
  text-decoration: none;
}

section.collection-category h2 a:hover {
  color: var(--color-accent);
}

/* Category card grid */
section.category-list {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

/* Individual category card */
a.category {
  display: block;
  flex: 1;
  min-width: 200px;
  background: var(--color-surface);
  border: none;
  border-radius: 12px;
  padding: 20px 24px;
  text-decoration: none;
  transition: background-color 0.15s ease;
}

a.category:hover {
  background-color: var(--color-cream) !important;
}

a.category h3 {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 400;
  color: var(--color-text);
  margin: 0 0 6px;
}

a.category p {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--color-text-secondary);
  line-height: 1.5;
  margin: 0 0 10px;
}

a.category p.article-count {
  font-size: 12px;
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0;
}


/* ============================================
   ARTICLE PAGE
   ============================================ */

section#main-content {
  padding: 32px 0 40px;
}

div.contentWrapper {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 40px 48px;
  max-width: 720px;
  box-shadow: none !important;
}

/* Article title */
article#fullArticle h1.title {
  font-family: var(--font-heading);
  font-size: 36px;
  font-weight: 400;
  line-height: 1.05;
  color: var(--color-text);
  margin: 0 0 32px;
  letter-spacing: -0.3px;
}

/* Override HelpScout's default #585858 gray on all article body elements */
#fullArticle,
#fullArticle p,
#fullArticle ul,
#fullArticle ol,
#fullArticle li,
#fullArticle div,
#fullArticle blockquote,
#fullArticle dd,
#fullArticle table {
  color: var(--color-text) !important;
  background: transparent;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
}

#fullArticle p {
  margin-bottom: 16px;
}

#fullArticle h2 {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 400;
  line-height: 1.3;
  color: #E86F00;
  margin: 40px 0 16px;
}

#fullArticle h3 {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 600;
  color: var(--color-text);
  margin: 32px 0 12px;
}

#fullArticle h4 {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text);
  margin: 24px 0 8px;
}

#fullArticle strong {
  color: #55514C;
}

#fullArticle a {
  color: var(--color-accent);
  text-decoration: none;
}

#fullArticle a:hover {
  color: var(--color-accent-hover);
  text-decoration: underline;
}

/* Override strong link orange — already handled above */
#fullArticle strong a,
#fullArticle a strong {
  color: var(--color-accent) !important;
}

#fullArticle ul,
#fullArticle ol {
  padding-left: 24px;
  margin-bottom: 16px;
}

#fullArticle li {
  margin-bottom: 8px;
}

#fullArticle code {
  font-size: 13px;
  background: var(--color-cream);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  padding: 2px 6px;
  color: var(--color-text) !important;
}

#fullArticle pre {
  background: var(--color-cream);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 16px 20px;
  overflow-x: auto;
}

#fullArticle blockquote {
  border-left: 4px solid var(--color-accent);
  background: var(--color-cream);
  margin: 24px 0;
  padding: 16px 20px;
  border-radius: 0 8px 8px 0;
}

#fullArticle .callout {
  background: var(--color-cream) !important;
  border-left: 4px solid var(--color-accent);
  border-radius: 0 8px 8px 0;
  padding: 16px 20px;
  margin: 24px 0;
}

#fullArticle .callout p {
  margin: 0;
  font-size: 15px;
  color: var(--color-text) !important;
}

#fullArticle .callout-blue {
  background: #032726 !important;
  border-left: 4px solid #14B8A6;
  border-radius: 0 8px 8px 0;
  padding: 16px 20px;
  margin: 24px 0;
}

#fullArticle .callout-blue p {
  margin: 0;
  font-size: 15px;
  color: #FFFFFF !important;
}

#fullArticle .callout-blue strong,
#fullArticle .callout-blue a {
  color: #FFFFFF !important;
}

#fullArticle img {
  max-width: 100%;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  margin: 8px 0 16px;
}

#fullArticle table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
}

#fullArticle th {
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--color-text-muted) !important;
  border-bottom: 1px solid var(--color-border);
  padding: 8px 12px;
  text-align: left;
}

#fullArticle td {
  font-size: 15px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--color-border);
  vertical-align: top;
}

/* Print link */
.printArticle {
  color: var(--color-text-muted) !important;
  font-size: 13px;
}

.printArticle:hover {
  color: var(--color-text-secondary) !important;
}

/* Last updated */
section.articleFoot {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--color-border);
}

time.lu {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--color-text-muted);
}

/* Article rating widget */
.articleRatings {
  margin-top: 32px;
  padding: 20px 24px;
  background: var(--color-cream);
  border-radius: 8px;
  border: 1px solid var(--color-border);
}

.articleRatings-question {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-secondary);
}

.articleRatings-feedback-message {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--color-text-secondary);
}


/* ============================================
   SIDEBAR
   ============================================ */

aside#sidebar {
  padding-left: 32px;
}

aside#sidebar h3 {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin: 24px 0 10px;
}

aside#sidebar .nav-list {
  list-style: none;
  padding: 8px;
  margin: 0 0 24px;
  background: var(--color-cream);
  border-radius: 12px;
}

aside#sidebar .nav-list li {
  border-bottom: none;
}

aside#sidebar .nav-list li a {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 400;
  color: var(--color-text-secondary);
  padding: 9px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-decoration: none;
  transition: color 0.12s ease;
}

aside#sidebar .nav-list li a .icon-arrow {
  display: none;
}

aside#sidebar .nav-list li a:hover,
aside#sidebar .nav-list li.active a {
  color: var(--color-accent);
}

/* Sidebar search */
aside#sidebar #searchBar.sm {
  margin-bottom: 24px;
}

aside#sidebar #searchBar.sm input.search-query {
  font-family: var(--font-body);
  font-size: 14px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  color: var(--color-text);
  box-shadow: none;
  padding: 8px 36px 8px 12px;
}

aside#sidebar #searchBar.sm input.search-query:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(255, 135, 0, 0.12);
  outline: none;
}


/* ============================================
   FOOTER
   ============================================ */

footer.center,
section#contentArea footer {
  background: var(--color-footer-bg);
  padding: 24px;
  text-align: center;
  border-top: none;
  margin-top: 48px;
}

footer.center p,
section#contentArea footer p {
  font-family: var(--font-body);
  font-size: 13px;
  color: #B6B4B2;
  margin: 0;
}

footer.center a,
section#contentArea footer a {
  color: #B6B4B2;
  text-decoration: none;
  transition: color 0.12s ease;
}

footer.center a:hover,
section#contentArea footer a:hover {
  color: #FFFFFF;
}


/* ============================================
   COLLECTION / CATEGORY PAGE
   ============================================ */

/* Breadcrumb */
.breadcrumb {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--color-text-muted);
  background: transparent;
  padding: 0;
  margin: 0 0 24px;
  list-style: none;
  border: none;
  box-shadow: none;
}

.breadcrumb li a {
  color: var(--color-text-muted);
  text-decoration: none;
}

.breadcrumb li a:hover {
  color: var(--color-accent);
}

.breadcrumb .divider {
  color: var(--color-text-muted);
  padding: 0 4px;
}

/* Collection page article links */
.contentWrapper a {
  color: var(--color-text) !important;
  text-decoration: none;
}

.contentWrapper a:hover {
  color: var(--color-accent) !important;
}


/* ============================================
   SEARCH RESULTS PAGE
   ============================================ */

#noResults {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--color-text-secondary);
  text-align: center;
  padding: 40px 0;
}


/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
  section#docsSearch {
    padding: 48px 20px 40px;
  }

  section#docsSearch h1 {
    font-size: 36px;
    margin-bottom: 16px;
  }

  section#docsSearch #searchBar button {
    padding: 0 16px;
    font-size: 14px;
  }

  header#mainNav .brand {
    padding-left: 8px;
  }

  header#mainNav .brand img {
    height: 24px;
  }

  article#fullArticle h1.title {
    font-size: 28px;
  }

  aside#sidebar {
    padding-left: 0;
    padding-top: 32px;
    border-top: 1px solid var(--color-border);
  }

  header#mainNav .navbar-inner {
    padding: 0 16px;
  }
}

@media (max-width: 480px) {
  section#docsSearch {
    padding: 40px 16px 36px;
  }

  section#docsSearch h1 {
    font-size: 30px;
    margin-bottom: 14px;
  }

  section#docsSearch #searchBar input.search-query {
    font-size: 15px;
    padding: 12px 14px;
  }

  section#docsSearch #searchBar button {
    padding: 0;
    width: 48px;
    flex-shrink: 0;
    flex-grow: 0;
    display: flex !important;
    align-items: center;
    justify-content: center;
  }

  section#docsSearch #searchBar button span {
    display: none;
  }

  section#docsSearch #searchBar button i {
    font-size: 16px;
    color: #FFFFFF;
  }

  section#contentArea {
    padding: 32px 16px;
  }
}
