/*
 * playerkit help centre — Help Scout Docs custom stylesheet (TEST DRAFT)
 * Colours from docs/brand/BRAND.md; contrast pairs from its measured table.
 * Fonts: brand families first (used only where installed locally), then
 * the system stack. No web-font download: ADR-053 forbids external font
 * requests, and our self-hosted files are not served to this origin yet.
 */

:root {
  --pk-green: #3B6D11;
  --pk-green-deep: #2a4d09;
  --pk-amber: #EF9F27;
  --pk-amber-hover: #f7b84b;
  --pk-ink: #0d1a06;
  --pk-ink-muted: #5F5E5A;
  --pk-cream: #F6F5EE;
  --pk-cream-elevated: #FBFAF3;
  --pk-cream-border: #E4E1D2;
  --pk-navy: #1C2340;
  --pk-font-body: "Inter Variable", Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --pk-font-head: "Plus Jakarta Sans Variable", "Plus Jakarta Sans", var(--pk-font-body);
}

/* ---- Page ---------------------------------------------------------- */

body {
  background: var(--pk-cream) !important;
  color: var(--pk-ink);
  font-family: var(--pk-font-body);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4,
#docsSearch h1,
.contentWrapper h1,
#fullArticle h1.title {
  font-family: var(--pk-font-head);
  color: var(--pk-ink);
  letter-spacing: -0.01em;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid var(--pk-amber) !important;
  outline-offset: 2px;
}

/* ---- Top bar: navy, as today ---------------------------------------- */

.navbar .navbar-inner {
  background: var(--pk-navy) !important;
  border: 0;
  box-shadow: none;
}

/* ---- Home hero: navy band continuing the top bar -------------------- */

#docsSearch {
  background: var(--pk-navy);
  border-bottom: 0;
  padding: 2.5em 16px 1.5em;
}

#docsSearch h1 {
  color: #ffffff;
  font-size: 28px;
  line-height: 1.3;
  font-weight: 700;
  max-width: 720px;
  margin: 0.4em auto 0;
}

#searchBar {
  max-width: 620px;
  width: auto;
}

#searchBar .search-query {
  border: 1px solid var(--pk-cream-border);
  border-radius: 10px;
  font-family: var(--pk-font-body);
  color: var(--pk-ink);
  box-shadow: none;
}

#searchBar button {
  background: var(--pk-amber);
  border: 1px solid var(--pk-amber);
  border-radius: 0 10px 10px 0;
  color: var(--pk-ink);
  text-shadow: none;
  font-weight: 600;
}

#searchBar button:hover {
  background: var(--pk-amber-hover);
}

/* the small search box in the article sidebar keeps its icon button */
#searchBar.sm button,
#searchBar.sm button:hover {
  background: transparent;
  border: 0;
  color: var(--pk-ink-muted);
}

#sidebar form .search-query {
  border-color: var(--pk-cream-border);
  border-radius: 8px;
  color: var(--pk-ink);
  background: #ffffff;
}

/* ---- Links (Help Scout sets these inline; we match its selectors) --- */

#serp-dd .result a:hover,
#serp-dd .result > li.active,
#fullArticle strong a,
#fullArticle a strong,
.collection a,
.contentWrapper a,
.most-pop-articles .popArticles a,
.most-pop-articles .popArticles a:hover span,
.category-list .category .article-count,
.category-list .category:hover .article-count {
  color: var(--pk-green) !important;
}

.contentWrapper a:hover,
.most-pop-articles .popArticles a:hover {
  color: var(--pk-green-deep) !important;
}

/* ---- Home: popular articles ------------------------------------------ */

.most-pop-articles h2 {
  font-weight: 700;
  font-size: 22px;
}

.most-pop-articles .popArticles a {
  font-weight: 500;
}

/* ---- Article --------------------------------------------------------- */

.contentWrapper,
.related {
  background: #ffffff;
  border-color: var(--pk-cream-border);
}

.contentWrapper {
  border-radius: 12px 12px 0 0;
}

.contentWrapper:not(.withRelated) {
  border-radius: 12px;
}

.related {
  border-radius: 0 0 12px 12px;
  background: var(--pk-cream-elevated);
}

#fullArticle,
#fullArticle p,
#fullArticle ul,
#fullArticle ol,
#fullArticle li,
#fullArticle div,
#fullArticle blockquote,
#fullArticle dd,
#fullArticle table {
  color: var(--pk-ink) !important;
}

#fullArticle {
  font-size: 16px;
  line-height: 1.65;
}

#fullArticle h1.title {
  font-size: 30px;
  font-weight: 800;
  line-height: 1.2;
}

#fullArticle h2 {
  font-size: 21px;
  font-weight: 700;
  margin-top: 1.6em;
}

/* the article screenshots carry their own frame; only round and contain them */
#fullArticle img {
  border-radius: 10px;
  max-width: 100%;
  height: auto;
}

#fullArticle hr {
  border: 0;
  border-top: 1px solid var(--pk-cream-border);
}

.related h3,
#sidebar h3 {
  color: var(--pk-ink-muted);
  letter-spacing: 0.04em;
}

.articleFoot,
.articleFoot p,
.articleFoot time {
  color: var(--pk-ink-muted);
}

/* ---- Footer ---------------------------------------------------------- */

footer.center,
footer.center p {
  color: var(--pk-ink-muted);
}

footer.center a {
  color: var(--pk-green);
}

/* ---- Phone width ------------------------------------------------------ */

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

  #searchBar {
    padding: 1.5em 0;
  }

  .contentWrapper {
    padding: 28px 20px;
  }

  .related {
    padding: 20px;
  }
}
