/* ==========================================================================
   Wheremore Knowledge Base — Help Scout custom CSS
   Complete standalone override
   Load after the Help Scout platform stylesheet
   ========================================================================== */

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

:root {
  --wm-navy: #0a2140;
  --wm-pink: #ff277f;
  --wm-pink-hover: #e6206f;
  --wm-text: #12141e;
  --wm-secondary: #5a5a6e;
  --wm-muted: #8a8a9a;
  --wm-border: #e5e5e7;
}

/* Global typography
   Do not set a global font size. Help Scout uses em-based sizing in several
   components, so changing the root scale enlarges listings unpredictably. */

body {
  color: var(--wm-secondary);
  font-family: "DM Sans", system-ui, sans-serif !important;
}

button,
input,
select,
textarea,
label {
  font-family: inherit;
}

/* Override Help Scout's global blue link rule. More specific rules below
   apply magenta to in-article links and the appropriate hover treatments. */

a {
  color: var(--wm-navy);
  text-decoration: none;
}

/* Header and main navigation */

.navbar .navbar-inner {
  background: #fff;
}

.navbar .nav li a,
.navbar .icon-private-w {
  color: #6e7e85;
}

.nav-collapse .nav > li > a {
  color: var(--wm-navy);
  text-decoration: none;
}

.nav-collapse .nav > li > a:hover,
.nav-collapse .nav > li > a:focus {
  color: var(--wm-pink);
  text-decoration: none;
}

/* Homepage search hero */

#docsSearch {
  background: var(--wm-navy) !important;
  border-bottom: 1px solid var(--wm-border);
  margin-bottom: 3em;
  padding: 1.5em 0;
}

#docsSearch h1 {
  color: #fff !important;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.3px;
  margin-top: 0.4em;
  text-align: center;
}

#searchBar input {
  border-color: var(--wm-border);
}

#searchBar button {
  background: var(--wm-pink) !important;
  border: 1px solid var(--wm-pink) !important;
  border-radius: 0 8px 8px 0;
  color: #fff;
  font-size: 18px;
  height: 50px;
  padding: 0 1.5em;
  position: absolute;
  right: -1px;
  text-shadow: none;
  top: 24px;
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
}

#searchBar button:hover {
  background: var(--wm-pink-hover) !important;
  border-color: var(--wm-pink-hover) !important;
  box-shadow: 0 4px 14px rgba(255, 39, 127, 0.28);
}

#searchBar button:focus-visible,
#searchBar input:focus {
  border-color: var(--wm-pink) !important;
  box-shadow: 0 0 0 3px rgba(255, 39, 127, 0.15);
  outline: none;
}

/* Homepage popular articles */

.most-pop-articles .popArticles,
.threeCol .popArticles,
.twoCol .popArticles {
  font-size: 16px;
  line-height: 1.6;
}

.most-pop-articles .popArticles a,
.collection a {
  color: var(--wm-navy);
  font-weight: 400;
  text-decoration: none;
}

.most-pop-articles .popArticles a:hover,
.most-pop-articles .popArticles a:hover span,
.collection a:hover {
  color: var(--wm-pink);
  text-decoration: underline;
}

/* Homepage category cards
   Grid replaces the inline-block width and margin calculation that leaves the
   card group visually aligned to the left. */

.category-list {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.category-list .category {
  align-items: center;
  box-sizing: border-box;
  color: var(--wm-navy);
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin: 0;
  min-height: 134px;
  text-decoration: none;
  width: auto;
}

.category-list .category h3 {
  color: var(--wm-navy);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.35;
  margin: 0 0 10px;
  text-align: center;
}

.category-list .category .article-count {
  color: var(--wm-navy);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  margin: 0;
}

.category-list .category:hover,
.category-list .category:hover h3,
.category-list .category:hover .article-count {
  color: var(--wm-pink);
  text-decoration: none;
}

/* Category-page article listings */

.articleList {
  font-size: 16px;
  line-height: 1.5;
}

.articleList li {
  line-height: 1.5;
  margin-bottom: 12px;
}

.contentWrapper .articleList a {
  color: var(--wm-navy);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  text-decoration: none;
}

.contentWrapper .articleList a:hover,
.contentWrapper .articleList a:focus {
  color: var(--wm-pink);
  text-decoration: underline;
}

/* Sidebar */

#contentArea aside h3 {
  color: var(--wm-muted);
}

#contentArea aside a {
  color: var(--wm-navy);
  text-decoration: none;
}

#contentArea aside a:hover,
#contentArea aside a:focus {
  color: var(--wm-pink);
  text-decoration: none;
}

/* Article typography */

#fullArticle,
#fullArticle p,
#fullArticle ul,
#fullArticle ol,
#fullArticle li,
#fullArticle div,
#fullArticle blockquote,
#fullArticle dd {
  color: var(--wm-text);
  font-size: 16px;
  line-height: 1.65;
}

#fullArticle h1 {
  color: var(--wm-text);
  font-size: 32px;
  font-weight: 500;
  line-height: 1.25;
}

#fullArticle h2 {
  color: var(--wm-text);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.35;
  margin-top: 30px;
}

#fullArticle h3 {
  color: var(--wm-text);
  font-size: 19px;
  font-weight: 600;
  line-height: 1.4;
  margin-top: 24px;
}

/* Article links
   These deliberately override Help Scout's global blue `a` rule without
   applying magenta styling to every navigation link on the site. */

#fullArticle a,
#fullArticle strong a,
#fullArticle a strong {
  color: var(--wm-pink);
  font-weight: 600;
  text-decoration: none;
}

#fullArticle a:hover,
#fullArticle a:focus {
  color: var(--wm-pink);
  text-decoration: underline;
}

#fullArticle img {
  height: auto;
  max-width: 100%;
}

/* Keep dense embedded data readable without enlarging every table cell. */

#fullArticle table,
#fullArticle table p,
#fullArticle table div,
#fullArticle table li {
  font-size: 14px;
  line-height: 1.5;
}

/* Dividers */

hr,
.article-footer__rule {
  border: 0;
  border-top: 1px solid var(--wm-border);
}

/* Article footer */

.article-footer__rule {
  margin: 36px 0 20px;
}

.article-footer p {
  color: var(--wm-muted);
  font-size: 14px;
  line-height: 1.6;
  text-align: left;
}

.article-footer a {
  color: var(--wm-pink);
  font-weight: 600;
  text-decoration: none;
}

.article-footer a:hover,
.article-footer a:focus {
  text-decoration: underline;
}

/* Responsive layout */

@media (max-width: 900px) {
  .category-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  #docsSearch h1 {
    font-size: 26px;
  }

  .category-list {
    grid-template-columns: 1fr;
  }

  .category-list .category {
    min-height: 110px;
  }

  #fullArticle,
  #fullArticle p,
  #fullArticle ul,
  #fullArticle ol,
  #fullArticle li,
  #fullArticle div,
  #fullArticle blockquote,
  #fullArticle dd {
    font-size: 15px;
  }

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

  #fullArticle h2 {
    font-size: 22px;
  }
}
