/* Help Center Styles */

/* Override bg-parchment for help pages - target root div */
body:has(.help-page) #root.bg-parchment,
#root.bg-parchment:has(.help-page),
#root:has(.help-page).bg-parchment,
#root.bg-parchment .help-page {
  background: #ffffff !important;
  background-color: #ffffff !important;
}

/* Additional override for root when help-page exists */
#root.bg-parchment {
  background-color: var(--help-bg, #f5f4f4);
}

body:has(.help-page) #root.bg-parchment,
#root:has(.help-page).bg-parchment {
  --help-bg: #ffffff;
  background-color: #ffffff !important;
}

/* Section and Container */
.help-section {
  padding: 4rem 0;
}

.help-page .section.bg-parchment,
.help-page .bg-parchment,
.section.bg-parchment.help-section,
.help-section.bg-parchment {
  background: #ffffff !important;
  background-color: #ffffff !important;
}

.help-container {
  max-width: 1200px;
  margin: 0 auto;
}

/* Hero Section */
.help-hero {
  padding: 0 2rem;
  margin-bottom: 2rem;
}

.help-hero-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

.help-hero-text {
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.help-hero h1 {
  font-weight: normal;
  margin-bottom: 1rem;
  font-family: 'Happy Times', serif;
  line-height: 1.2;
  text-align: center;
}

.help-hero p {
  font-size: 1.25rem;
  color: #6b7280;
  margin-bottom: 1.5rem;
  text-align: center;
}

/* Search Bar */
.help-search-container {
  padding: 0 2rem;
  margin-bottom: 4rem;
}

/* Search bar inside hero text */
.help-hero-text .help-search-container {
  padding: 0;
  margin-bottom: 0;
  margin-top: 1.5rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 768px) {
  .help-search-container {
    padding: 0 1rem;
  }
  
  .help-hero-text .help-search-container {
    padding: 0;
  }
}

.help-search-wrapper {
  position: relative;
}

.help-search-input {
  width: 100%;
  border: none;
  background: transparent;
}

.help-search-input:focus {
  outline: none;
  border-color: #1f2937;
}

.help-search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  color: #9ca3af;
}

/* Categories Grid */
.help-categories-grid {
  grid-template-columns: 1fr 1fr 1fr;
}

.help-category-card {
  display: block;
  padding: 2rem;
  background: white;
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  transition: transform 0.2s, box-shadow 0.2s;
}

.help-category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.help-category-card h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-family: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.help-category-card p {
  color: #6b7280;
  line-height: 1.6;
}

/* Popular Articles */
.help-popular-section {
  margin-top: 6rem;
  margin-bottom: 4rem;
  padding: 0 2rem;
}

.help-popular-header-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.help-popular-content {
  display: flex;
  flex-direction: column;
}

.help-popular-image {
  display: flex;
  justify-content: flex-end;
  align-items: start;
  position: sticky;
  top: 2rem;
}

.help-popular-image img {
  max-width: 100%;
  height: auto;
  width: 100%;
  max-width: 400px;
}

.help-popular-section h2 {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 2rem;
  font-family: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.help-popular-article div:nth-child(2) {
  color: var(--grey-80);
  font-variation-settings: "wght" 450;
  letter-spacing: -.005em;
  font-family: Geist, sans-serif;
  font-size: 16px;
  line-height: 1.35em;
}


/* Contact Support */
.help-contact {
  background: #222222;
  padding: 4rem 3rem 4rem 0;
  min-height: 300px;
  border-radius: 12px;
  text-align: center;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.help-contact::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 50%;
  height: 100%;
  background-image: url('https://cdn.prod.website-files.com/65de4642a547a96d181eee8a/6930fbceefc2c6c00f3a5cf4_bridge-symbol.svg');
  background-repeat: no-repeat;
  background-position: -4em 0;
  background-size: 100% 100%;
  border-top-left-radius: 12px;
  border-bottom-left-radius: 12px;
  z-index: 0;
}

.help-contact > * {
  position: relative;
  z-index: 1;
}

.help-contact h2 {
  font-size: 3.5rem;
  font-weight: normal;
  margin-bottom: 1.5rem;
  font-family: 'Happy Times', serif;
  color: white;
  line-height: 1.2;
}

.help-contact p {
  color: white;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.help-contact p.large-text {
  font-size: 23px;
  line-height: 1.3em;
  letter-spacing: -0.01em;
}

@media (max-width: 767px) {
  .help-contact p.large-text {
    font-size: 20px;
    line-height: 1.35em;
  }
}

@media (max-width: 479px) {
  .help-contact p.large-text {
    font-size: 17px;
    line-height: 1.35em;
  }
}

.help-contact-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.help-contact .button {
  text-decoration: none;
}

.help-contact .button.invert:hover {
  border-color: var(--grey-100);
  background-color: hsla(0, 0.00%, 0.00%, 1.00);
  filter: invert(100%);
  color: hsla(0, 0.00%, 100.00%, 1.00);
}

@media (max-width: 768px) {
  .help-contact-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .help-contact .button {
    width: 100%;
  }
}

/* Breadcrumb */
.help-breadcrumb {
  margin-bottom: 2rem;
  font-size: 0.875rem;
  color: #6b7280;
}

.help-breadcrumb a {
  color: #6b7280;
  text-decoration: none;
}

.help-breadcrumb span {
  margin: 0 0.5rem;
}

/* Article Content */
.help-article {
  background: white;
  padding: 1rem 0;
  border-radius: 12px;
  max-width: 671px;
  margin: 0 auto;
}

.help-article h1 {
  font-size: 2.5rem;
  font-weight: normal;
  margin-bottom: 1.5rem;
  font-family: 'Happy Times', serif;
}

.help-article h2 {
  font-size: 1.75rem;
  font-weight: 600;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  font-family: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Override .article strong from canny-template.css */
.article strong {
  font-weight: inherit;
}

.help-article-content ul,
.help-article-content ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.help-article-content li {
  margin-bottom: 0.5rem;
}

.help-article-content code {
  background: #f3f4f6;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.875rem;
}

.help-code-block {
  background: #222222;
  color: #929292;
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  overflow-x: auto;
  font-family: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.help-code-block code {
  font-family: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 0.875rem;
  background: transparent;
  padding: 0;
  color: inherit;
}

.help-related {
  margin-top: 3rem;
}

.help-related h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  font-family: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.help-related-grid {
  display: grid;
  gap: 1rem;
}

.help-related-article {
  display: block;
  padding: 1.5rem;
  background: #f5f5f5;
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
}

.help-related-article h4 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-family: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.help-related-article p {
  color: #6b7280;
  font-size: 0.875rem;
  margin: 0;
}

/* Navigation */
.help-navigation {
  margin-top: 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.help-nav-link {
  color: #6b7280;
  text-decoration: none;
  font-weight: 500;
}

.help-nav-link-primary {
  color: #1f2937;
  text-decoration: none;
  font-weight: 500;
}

/* Back Link */
.help-back {
  margin-top: 3rem;
  text-align: left;
}

/* Articles List */
.help-articles-list {
  display: grid;
  gap: 1.5rem;
}

.help-article-card {
  display: block;
  padding: 2rem;
  background: white;
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.help-article-card h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  font-family: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.help-article-card p {
  color: #6b7280;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.help-article-card span {
  color: #1f2937;
  font-weight: 500;
}

.help-article-card .help-read-more {
  color: #1f2937;
  font-weight: 500;
}

/* Category Header */
.help-category-header {
  margin-bottom: 3rem;
}

.help-category-header h1 {
  font-size: 3rem;
  font-weight: normal;
  margin-bottom: 1rem;
  font-family: 'Happy Times', serif;
}

.help-category-header p {
  font-size: 1.25rem;
  color: #6b7280;
  max-width: 700px;
}

/* FAQ Section */
.help-faq-section {
  margin-bottom: 3rem;
}

.help-faq-section h2 {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  font-family: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.help-faq-grid {
  display: grid;
  gap: 1.5rem;
}

.help-faq-item {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.help-faq-item h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-family: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.help-faq-item p {
  color: #6b7280;
  line-height: 1.6;
}

.help-faq-item a {
  color: #1f2937;
  text-decoration: underline;
}

/* Common Issues */
.help-common-issues {
  margin-top: 3rem;
}

.help-common-issues h2 {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  font-family: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.help-common-issues-grid {
  display: grid;
  gap: 1.5rem;
}

.help-issue-card {
  display: block;
  padding: 2rem;
  background: white;
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.help-issue-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-family: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.help-issue-card p {
  color: #6b7280;
  line-height: 1.6;
}

/* FAQ Wrapper */
.help-faq-wrapper {
  padding: 2rem;
  background: white;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.help-faq-wrapper h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  font-family: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.help-faq-items {
  display: grid;
  gap: 1.5rem;
}

.help-faq-item-wrapper {
  /* Individual FAQ item wrapper */
}

.help-faq-item-wrapper h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-family: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.help-faq-item-wrapper p {
  color: #6b7280;
  line-height: 1.6;
}

/* Security Features Summary */
  line-height: 1.6;
}

/* Search Results */
.help-search-results {
  margin-top: 2rem;
}

.help-search-results h2 {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  font-family: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.help-search-results-count {
  color: #6b7280;
  margin-bottom: 2rem;
}

.help-search-results-grid {
  display: grid;
  gap: 1.5rem;
}

.help-search-result-item {
  display: block;
  padding: 2rem;
  background: white;
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  transition: transform 0.2s, box-shadow 0.2s;
}

.help-search-result-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.help-search-result-item h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  font-family: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #1f2937;
}

.help-search-result-item p {
  color: #6b7280;
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

.help-search-result-item .help-result-category {
  font-size: 0.875rem;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Font Overrides */
.help-page #main-content h2,
.help-page #main-content h3,
.help-page #main-content h4,
.help-page #main-content h5,
.help-page #main-content h6,
.help-page .section h2,
.help-page .section h3,
.help-page .section h4,
.help-page .section h5,
.help-page .section h6,
.help-page article h2,
.help-page article h3,
.help-page article h4,
.help-page article h5,
.help-page article h6 {
  font-family: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

.help-page #main-content h1,
.help-page .section h1,
.help-page article h1 {
  font-family: 'Happy Times', serif !important;
  font-weight: normal !important;
}

/* Links */
.help-article-content a {
  color: #1f2937;
  text-decoration: underline;
}

/* Article Container */
.help-article-container {
  max-width: 800px;
  margin: 0 auto;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .help-hero {
    padding: 0 1rem;
  }

  .help-hero-content {
    flex-direction: column;
    gap: 2rem;
  }

  .help-hero-image {
    text-align: center;
  }

  .help-hero h1 {
    font-size: 2rem;
  }

  .help-hero p {
    font-size: 1rem;
  }

  .help-search-container {
    padding: 0 1rem;
  }

  .help-categories-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }


  .help-article {
    padding: 2rem 1.5rem;
  }

  .help-article h1 {
    font-size: 2rem;
  }

  .help-article h2 {
    font-size: 1.5rem;
  }

  .help-category-header h1 {
    font-size: 2rem;
  }

  .help-category-header p {
    font-size: 1rem;
  }

  .help-contact {
    padding: 2rem 1.5rem;
  }

  .help-popular-section {
    padding: 0 1rem;
  }

  .help-popular-header-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .help-popular-image {
    justify-content: center;
    position: static;
  }

  .help-popular-image img {
    max-width: 100%;
  }

}
