@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700&family=DM+Sans:wght@300;400;500;600&display=swap');

/* ============================================
   CEO-S Software — Help Scout Docs
   ============================================ */

:root {
  --navy:      #0e1a2b;
  --navy-mid:  #162338;
  --navy-soft: #1e3050;
  --gold:      #c8973a;
  --gold-light:#e0b45a;
  --white:     #ffffff;
  --off-white: #f4f6f9;
  --text:      #1a2637;
  --text-muted:#5a6a7e;
  --border:    #dde3ec;
  --radius:    8px;
}

/* ── Base ─────────────────────────────────── */

body {
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  color: var(--text);
  background: var(--off-white);
  -webkit-font-smoothing: antialiased;
}

.container-fluid {
  max-width: 1080px;
  padding: 0 2em;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--navy) !important;
}

h1 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
}

h2, h3, h4 {
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
}

/* ── Navbar ───────────────────────────────── */

header#mainNav.navbar {
  background-color: #FFF !important;
  border-bottom: 1px solid var(--navy-soft) !important;
  box-shadow: 0 2px 16px rgba(0,0,0,0.28) !important;
  max-width: 100%;
  margin: 0;
}

.navbar .navbar-inner {
  background-color: transparent;
  box-shadow: none;
}

.navbar .nav li a,
.navbar .nav li.active a {
  color: rgba(255,255,255,0.85) !important;
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  padding: 0.75em 1em;
}

.navbar .nav li a:hover,
.navbar .nav li.active a:hover {
  color: var(--gold-light) !important;
  text-decoration: none;
}

.navbar .nav li a:focus {
  color: var(--gold-light) !important;
  outline: auto;
}

#mainNav .brand {
  padding: 0;
  float: none;
  text-align: left;
  width: auto;
  margin: 0 auto;
  white-space: nowrap;
  display: block;
}

#mainNav .brand span {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  white-space: nowrap;
}

.navbar .nav .active .caret,
#docsSearch h1 {
  display: none;
}

.navbar .btn-navbar {
  display: none;
}

li#contact,
li#contactMobile {
  display: none;
}

.nav-collapse,
.nav-collapse.collapse {
  height: auto;
  overflow: visible;
  transform: none;
}

/* ── Search — de-emphasized ───────────────── */

section#docsSearch {
  padding: 2em 1em 1.5em 1em;
  background: var(--navy-mid);
  border-color: transparent;
  text-align: center;
}

#searchBar {
  display: flex;
  align-items: stretch;
  max-width: 560px;
  margin: 0 auto;
  height: 46px;
}

#searchBar .search-query {
  flex: 1;
  height: 46px;
  border: 2px solid transparent;
  border-right: none;
  border-radius: var(--radius) 0 0 var(--radius);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  background: rgba(255,255,255,0.96);
  color: var(--text);
  box-shadow: none;
  transition: border-color 0.2s ease;
  padding: 0 16px;
  box-sizing: border-box;
}

#searchBar .search-query:focus {
  outline: none;
  border-color: var(--gold);
}

#searchBar button {
  height: 46px;
  width: auto;
  padding: 0 20px;
  border: none;
  background-color: var(--gold);
  color: var(--white);
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  border-radius: 0 var(--radius) var(--radius) 0;
  cursor: pointer;
  transition: background-color 0.2s ease;
  box-sizing: border-box;
}

#searchBar button:hover {
  background-color: var(--gold-light);
}

#serp-dd {
  z-index: 1000;
}

/* ── Content Area ─────────────────────────── */

section#contentArea {
  padding-top: 2.5em;
  padding-bottom: 3em;
}

/* ── Most Popular Articles ────────────────── */

section.most-pop-articles {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2em 2.5em;
  margin-bottom: 2em;
}

section.most-pop-articles h2 {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted) !important;
  margin-bottom: 1.25em;
  text-align: left;
}

section.most-pop-articles ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

section.most-pop-articles li {
  border-top: 1px solid var(--border);
  padding: 0;
  margin: 0;
}

section.most-pop-articles li a {
  display: block;
  padding: 0.65em 0.5em;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--navy) !important;
  text-decoration: none;
  transition: color 0.15s ease, padding-left 0.15s ease;
}

section.most-pop-articles li a:hover {
  color: var(--gold) !important;
  padding-left: 0.75em;
}

hr.sep {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2em 0;
}

/* ── Category Cards ───────────────────────── */

section.category-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  text-align: left;
  max-width: 960px;
  margin: 0 auto;
}

section.category-list a.category {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 28px 24px 28px;
  min-height: 140px;
  text-decoration: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

section.category-list a.category::before {
  content: '';
  display: block;
  width: 28px;
  height: 3px;
  background: var(--gold);
  border-radius: 2px;
  margin-bottom: 14px;
}

section.category-list a.category:hover {
  border-color: var(--gold);
  box-shadow: 0 6px 24px rgba(14,26,43,0.1);
  transform: translateY(-3px);
  text-decoration: none;
}

section.category-list a.category h3 {
  color: var(--navy) !important;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  margin: 0 0 8px 0;
  line-height: 1.3;
}

section.category-list a.category p.article-count {
  color: var(--text-muted) !important;
  background-color: transparent !important;
  font-size: 0.8rem;
  margin: 0;
  display: block;
}

/* ── Article Content ──────────────────────── */

#fullArticle p,
#fullArticle ul,
#fullArticle ol,
#fullArticle li,
#fullArticle div,
#fullArticle blockquote,
#fullArticle dd,
#fullArticle table {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text);
}

#fullArticle a {
  font-size: inherit !important;
  color: var(--gold) !important;
  text-decoration: underline;
  text-underline-offset: 3px;
}

#fullArticle a:hover {
  color: var(--navy) !important;
}

#main-content {
  background: none;
  padding: 32px 0 0 48px;
}

@media (max-width: 768px) {
  #main-content {
    background: none;
    padding: 0;
  }
}

.contentWrapper {
  padding: 24px 32px;
  box-shadow: 0 1px 8px rgba(14,26,43,0.07);
  background-color: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.contentWrapper h1 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  color: var(--navy) !important;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--gold);
  margin-bottom: 24px;
}

#categoryHead .sort {
  display: none;
}

.articleFoot time.lu {
  display: none;
}

.icon-print {
  display: none !important;
}

/* ── Sidebar ──────────────────────────────── */

#sidebar {
  margin-top: 3.25em;
}

#sidebar .nav-list a {
  color: var(--navy) !important;
  font-size: 1rem;
  font-family: 'DM Sans', sans-serif;
  padding: 6px 0;
  display: block;
  border-bottom: 1px solid var(--border);
  transition: color 0.15s ease;
}

#sidebar .nav-list a:hover {
  color: var(--gold) !important;
  text-decoration: none;
}

/* ── Article List ─────────────────────────── */

.articleList {
  margin-top: 2em;
}

.articleList li {
  padding: 1em 0 0.5em 0;
  margin: 0.5em 0;
  border-top: 1px solid var(--border);
}

.articleList a {
  padding: 0;
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--navy) !important;
  font-family: 'DM Sans', sans-serif;
  transition: color 0.15s ease;
}

.articleList a:hover {
  color: var(--gold) !important;
  text-decoration: none;
}

/* ── Footer ───────────────────────────────── */

footer.center p {
  margin-top: 4em;
  margin-bottom: 7em;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

footer.center a {
  color: var(--gold) !important;
}

/* ── Custom Utility ───────────────────────── */

.blue-colorful-attention-text {
  color: var(--gold) !important;
}
