/* ===========================================
   Templated — Help Scout Docs Custom Stylesheet
   Brand Guidelines v1.3
   =========================================== */

/* --- Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Sora:wght@600;700&display=swap');

/* --- Global --- */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #374151;
  background-color: #FFFFFF;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: #F97066;
  transition: color 0.15s ease;
}

a:hover,
a:focus {
  color: #E7554B;
  text-decoration: none;
}

/* --- Navbar --- */
.navbar {
  border: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.navbar .navbar-inner {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 0;
}

.navbar .brand {
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  color: #1C1917;
  font-size: 18px;
  letter-spacing: -0.01em;
}

.navbar .brand:hover {
  color: #1C1917;
}

.navbar .nav li a {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  color: #374151;
  font-size: 14px;
  border-radius: 8px;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.navbar .nav li a:hover,
.navbar .nav li a:focus {
  color: #F97066;
  background-color: #FEF2F1;
}

.navbar .nav .active a,
.navbar .nav .active a:hover {
  color: #F97066;
  background-color: #FEF2F1;
}

/* --- Search Banner --- */
#docsSearch {
  background: linear-gradient(135deg, #F97066 0%, #FBBF24 100%);
  padding: 48px 0;
  border: none;
}

#docsSearch h1 {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  color: #FFFFFF;
  font-size: 28px;
  letter-spacing: -0.02em;
}

#searchBar .search-query,
input.search-query {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  border-radius: 12px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.95);
  padding: 12px 16px;
  color: #1C1917;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

#searchBar .search-query:focus,
input.search-query:focus {
  border-color: #FFFFFF;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  outline: none;
}

#searchBar button {
  border-radius: 0 12px 12px 0;
  background: #F97066;
  border: none;
  color: #FFFFFF;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  transition: background-color 0.15s ease;
}

#searchBar button:hover {
  background: #E7554B;
}

/* --- Search Results Dropdown --- */
#serp-dd {
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

#serp-dd .result a:hover,
#serp-dd .result > li.active {
  background-color: #FEF2F1;
}

/* --- Category Cards (Homepage) --- */
.category-list {
  display: flex !important;
  flex-wrap: wrap;
  gap: 12px;
}

.category-list .row-fluid {
  display: contents !important;
}

.category-list .row-fluid > [class*="span"] {
  display: contents !important;
}

.category-list .category {
  flex: 0 0 calc(33.333% - 8px);
  box-sizing: border-box;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  padding: 16px 20px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  background: #FFFFFF;
  margin: 0 !important;
  float: none !important;
  width: auto !important;
}

.category-list .category:hover {
  box-shadow: 0 4px 16px rgba(249, 112, 102, 0.1);
  transform: translateY(-1px);
}

.category-list h3 {
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  color: #1C1917;
  font-size: 16px;
  letter-spacing: -0.01em;
  margin: 0 0 4px 0;
}

.category-list h3 a {
  color: #1C1917;
}

.category-list h3 a:hover {
  color: #F97066;
}

.category-list .category .article-count {
  color: #F97066;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 13px;
}

@media (max-width: 768px) {
  .category-list .category {
    flex: 0 0 100%;
  }
}

/* --- Content Area --- */
#contentArea,
.contentWrapper {
  font-family: 'Inter', sans-serif;
  color: #374151;
  line-height: 1.7;
}

.contentWrapper h1 {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  color: #1C1917;
  letter-spacing: -0.02em;
}

.contentWrapper a {
  color: #F97066;
}

.contentWrapper a:hover {
  color: #E7554B;
}

/* --- Article --- */
#fullArticle .title,
#fullArticle h1.title {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  color: #1C1917;
  font-size: 28px;
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin-bottom: 16px;
}

#fullArticle h2 {
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  color: #1C1917;
  font-size: 20px;
  letter-spacing: -0.01em;
  margin-top: 32px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid #FEF2F1;
}

#fullArticle h2 a {
  color: #1C1917;
}

#fullArticle h2 a:hover {
  color: #F97066;
}

#fullArticle h3 {
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  color: #1C1917;
  font-size: 16px;
  margin-top: 24px;
  margin-bottom: 8px;
}

#fullArticle h4 {
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  color: #374151;
  font-size: 14px;
  margin-top: 20px;
  margin-bottom: 8px;
}

#fullArticle p {
  font-family: 'Inter', sans-serif;
  color: #374151;
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 16px;
}

#fullArticle ul,
#fullArticle ol {
  font-family: 'Inter', sans-serif;
  color: #374151;
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 16px;
}

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

#fullArticle strong {
  font-weight: 600;
  color: #1C1917;
}

#fullArticle a {
  color: #F97066;
  font-weight: 500;
}

#fullArticle a:hover {
  color: #E7554B;
}

#fullArticle blockquote {
  border-left: 3px solid #F97066;
  background: #FEF2F1;
  padding: 16px 20px;
  border-radius: 0 12px 12px 0;
  margin: 16px 0;
  font-style: normal;
}

#fullArticle code {
  font-size: 13px;
  background: #F3F4F6;
  color: #E7554B;
  padding: 2px 6px;
  border-radius: 6px;
  font-family: 'SF Mono', 'Fira Code', 'Fira Mono', Menlo, Consolas, monospace;
}

#fullArticle img {
  border-radius: 12px;
  max-width: 100%;
  height: auto;
}

#fullArticle table {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.06);
  width: 100%;
}

/* --- Callouts --- */
#fullArticle .callout {
  border-radius: 12px;
  padding: 16px 20px;
  margin: 16px 0;
  border: none;
}

#fullArticle .callout-yellow {
  background: #FFFBEB;
  border-left: 3px solid #FBBF24;
}

#fullArticle .callout-blue {
  background: #EFF6FF;
  border-left: 3px solid #38BDF8;
}

#fullArticle .callout-red {
  background: #FEF2F2;
  border-left: 3px solid #F97066;
}

#fullArticle .callout-green {
  background: #F0FDF4;
  border-left: 3px solid #22C55E;
}

/* --- Sidebar --- */
#sidebar {
  font-family: 'Inter', sans-serif;
}

#sidebar h3 {
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  color: #1C1917;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

#sidebar .nav-list a {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: #374151;
  border-radius: 8px;
  padding: 6px 12px;
  transition: background-color 0.15s ease, color 0.15s ease;
}

#sidebar .nav-list a:hover {
  color: #F97066;
  background-color: #FEF2F1;
}

#sidebar .nav-list .active a {
  color: #F97066;
  background-color: #FEF2F1;
  font-weight: 500;
}

/* --- Article List --- */
.articleList a {
  font-family: 'Inter', sans-serif;
  color: #374151;
  font-size: 15px;
  padding: 8px 12px;
  border-radius: 8px;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.articleList a:hover {
  color: #F97066;
  background-color: #FEF2F1;
}

/* --- Popular Articles --- */
.most-pop-articles .popArticles a {
  font-family: 'Inter', sans-serif;
  color: #374151;
}

.most-pop-articles .popArticles a:hover span {
  color: #F97066;
}

/* --- Article Footer --- */
.articleFoot {
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  padding-top: 16px;
  margin-top: 32px;
}

.articleFoot time.lu {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: #9CA3AF;
}

/* --- Footer --- */
footer {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: #9CA3AF;
}

footer p a {
  color: #F97066;
}

footer p a:hover {
  color: #E7554B;
}

/* --- Buttons --- */
.btn {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  border-radius: 8px;
  transition: background-color 0.15s ease, box-shadow 0.15s ease;
}

.printArticle {
  font-family: 'Inter', sans-serif;
  color: #9CA3AF;
  border-radius: 8px;
}

.printArticle:hover {
  color: #F97066;
}

/* --- Contact Modal --- */
#contactModal {
  border-radius: 16px;
}

#contactModal h2 {
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  color: #1C1917;
}

/* --- Keyboard Shortcuts --- */
kbd {
  font-family: 'SF Mono', 'Fira Code', Menlo, Consolas, monospace;
  background: #F3F4F6;
  border: 1px solid #D1D5DB;
  border-radius: 6px;
  padding: 2px 6px;
  font-size: 12px;
  color: #1C1917;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);
}

/* --- Tabs --- */
.tabs nav button {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  border-radius: 8px 8px 0 0;
  color: #374151;
  transition: color 0.15s ease;
}

.tabs nav button.active {
  color: #F97066;
  border-bottom-color: #F97066;
}

.tabs nav button:hover {
  color: #F97066;
}
