/* ==========================================================================
   Decile — Help Scout Docs custom stylesheet
   Dark Editorial branding (matches decile.com marketing site)

   Page background: parchment (light). A dark page-background variant is
   included, commented out, at the bottom of this file.

   Fraunces + DM Sans are loaded from Google Fonts (public CDN).
   The nav logo is served from decilestatic (see DEC-9121); it lives in
   custom-cloudfront-resources under src/ai-frontend-assets/.

   Pairs with src/helpscout-head-code.html, which is pasted into Help Scout's
   Insert <head> Code field. That snippet injects the hero headline and the
   contact band; this stylesheet styles both.
   ========================================================================== */

@import url("https://fonts.googleapis.com/css2?family=DM+Sans:opsz,wght@9..40,100..1000&family=Fraunces:ital,opsz,wght@0,9..144,100..900;1,9..144,100..900&display=swap");

:root {
  /* Decile design-system tokens (mirrors Webflow variables) */
  --dds-midnight: #080f1f;          /* surface-base */
  --dds-cream: #fbf8f2;             /* surface-light */
  --dds-parchment: #ede8dc;         /* text-primary-on-dark / light page bg */
  --dds-gold: #d4981a;
  --dds-gold-bright: #e8ae2a;
  --dds-gold-line: #d4981a40;
  /* Brand gold is only 2.4:1 on cream — fails AA as text. This is the same
     hue/saturation darkened to clear 4.5:1 on cream and parchment; use it
     wherever gold is the FOREGROUND of text. Plain --dds-gold stays for
     fills, borders and underlines. */
  --dds-gold-text: #7f5b10;
  --dds-gold-wash: #d4981a0f;
  --dds-charcoal: #1c1c1c;          /* text-primary on light */
  --dds-text-secondary-light: #5a6475;
  --dds-text-muted-light: #8a93a0;
  --dds-divider-dark: #080f1f14;    /* hairlines on light surfaces */
  --dds-divider-light: rgba(255, 255, 255, 0.06); /* hairlines on dark surfaces */
  --dds-navy-raised: #0e1a30;       /* surface-raised (marketing .section-cta) */
  --dds-teal: #0fd4c8;              /* brand-teal — sparing informational accent */
  --dds-teal-wash: rgba(15, 212, 200, 0.08);
  --dds-nav-text: #8e99ad;
  --dds-font-body: "DM Sans", -apple-system, sans-serif;
  --dds-font-display: "Fraunces", Georgia, serif; /* italic via font-style (variable ital axis) */
  --dds-ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   1. Page base
   ========================================================================== */

body {
  background-color: var(--dds-parchment);
  font-family: var(--dds-font-body);
  color: var(--dds-charcoal);
}

/* ==========================================================================
   2. Nav bar — mirrors decile.com .navbar
   ========================================================================== */

#mainNav {
  height: auto;
  margin-bottom: 0;
}

#mainNav .navbar-inner {
  background: rgba(8, 15, 31, 0.95);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border: 0;
  border-bottom: 1px solid var(--dds-divider-light);
  box-shadow: none;
  border-radius: 0;
  padding-top: 16px;
  padding-bottom: 16px;
  filter: none; /* kill bootstrap gradient fallback */
}

/* Logo — the marketing site's parchment wordmark, with a "Knowledge Base"
   label alongside it */
#mainNav .brand {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
}

#mainNav .brand span {
  display: inline-block;
  text-indent: -9000px;
  width: 130px;
  height: 40px;
  background: url("https://app--decile-public-assets.decilestatic.com/ai-frontend-assets/production/helpscout-decile-logo-parchment-2026-08-26.svg") no-repeat left center;
  background-size: contain;
  /* optical alignment: lowercase wordmark's visual mass sits ~4px below its
     bounding-box center (ascenders, no descenders) — nudge up to align with
     the label and nav links */
  transform: translateY(-4px);
}

#mainNav .brand::after {
  content: "Knowledge Base";
  font-family: var(--dds-font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dds-nav-text);
  margin-left: 20px;
  white-space: nowrap;
}

@media (max-width: 767px) {
  #mainNav .brand::after {
    display: none;
  }
}

#mainNav ul.nav > li > a {
  font-family: var(--dds-font-body);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--dds-nav-text);
  text-shadow: none;
  padding: 18px 15px;
  transition: color 0.35s var(--dds-ease);
}

#mainNav ul.nav > li > a:hover,
#mainNav ul.nav > li > a:focus,
#mainNav ul.nav > li.active > a {
  color: var(--dds-parchment);
  background: transparent;
  box-shadow: none;
}

/* No carets — and with them gone, center the links vertically in the bar.
   Help Scout absolutely positions ul.nav (top: -12px) and floats everything,
   so on desktop we flatten the collapse wrappers and switch to flex. */
#mainNav .caret {
  display: none !important;
}

@media (min-width: 980px) {
  #mainNav .navbar-inner .container-fluid {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  #mainNav .nav-collapse.collapse {
    display: contents;
  }

  #mainNav .nav-collapse nav {
    display: contents;
  }

  #mainNav ul.nav {
    position: static;
    float: none;
    display: flex;
    align-items: center;
    margin: 0;
  }

  #mainNav ul.nav > li {
    float: none;
  }

  #mainNav ul.nav > li > a {
    padding: 10px 15px;
  }
}

/* Mobile hamburger */
#mainNav .btn-navbar {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 0;
  box-shadow: none;
}

#mainNav .btn-navbar .icon-bar {
  background-color: var(--dds-parchment);
  box-shadow: none;
}

#mainNav .nav-collapse.collapse.in {
  background: var(--dds-midnight);
}

/* Dropdown menus (if collections use them) */
#mainNav .dropdown-menu {
  background: var(--dds-midnight);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0;
}

#mainNav .dropdown-menu a {
  font-family: var(--dds-font-body);
  color: var(--dds-nav-text);
}

#mainNav .dropdown-menu a:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--dds-parchment);
}

/* ==========================================================================
   3. Search band (homepage hero + inner-page top search)
   ========================================================================== */

/* Raised navy band — mirrors the marketing site's Book a Demo section:
   raised surface, hairline borders, gold glow radiating from the center.
   Shared by the homepage search hero and the injected contact band (§11). */
#docsSearch,
.dds-contact-band {
  position: relative;
  overflow: hidden;
  background: var(--dds-navy-raised);
  border-top: 1px solid var(--dds-divider-light);
  border-bottom: 1px solid var(--dds-divider-light);
  text-align: center;
}

#docsSearch::after,
.dds-contact-band::before {
  content: "";
  pointer-events: none;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 400px;
  background-image: radial-gradient(circle, var(--dds-gold-wash) 0%, transparent 60%);
}

#docsSearch {
  padding: 64px 24px 72px;
}

/* Headline is real markup injected by helpscout-head-code.html so it carries
   heading semantics; this only styles it. */
.dds-hero-title {
  display: block;
  position: relative;
  z-index: 1;
  font-family: var(--dds-font-display);
  font-weight: 300;
  font-size: clamp(30px, 3.6vw, 44px);
  letter-spacing: -0.015em;
  line-height: 1.15;
  color: var(--dds-parchment);
  margin-bottom: 28px;
}

/* Homepage search bar — narrower, centered */
#docsSearch #searchBar {
  position: relative;
  z-index: 1;
  display: flex;
  max-width: 520px;
  margin: 0 auto;
}

#docsSearch #searchBar .search-query {
  flex: 1;
  min-width: 0;
}

#searchBar .search-query {
  font-family: var(--dds-font-body);
  font-size: 15px;
  font-weight: 400;
  color: var(--dds-charcoal);
  background-color: var(--dds-cream);
  border: 1px solid var(--dds-gold-line);
  border-radius: 0;
  box-shadow: none;
  transition: border-color 0.35s var(--dds-ease);
}

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

#searchBar .search-query::placeholder {
  color: var(--dds-text-secondary-light);
}

#searchBar button {
  background: var(--dds-gold);
  color: var(--dds-midnight);
  border: 0;
  border-radius: 0;
  text-shadow: none;
  transition: background-color 0.35s var(--dds-ease);
}

#searchBar button:hover {
  background: var(--dds-gold-bright);
}

#searchBar button i {
  color: var(--dds-midnight);
}

/* Search results dropdown */
#serp-dd {
  background: var(--dds-cream);
  border: 1px solid var(--dds-divider-dark);
  border-radius: 0;
  box-shadow: 0 8px 24px rgba(8, 15, 31, 0.12);
}

#serp-dd a {
  font-family: var(--dds-font-body);
  color: var(--dds-charcoal);
}

#serp-dd li:hover,
#serp-dd .selected {
  background: var(--dds-parchment);
}

/* ==========================================================================
   4. Homepage — collection headings + category cards
   ========================================================================== */

.collection-category > h2,
.collection-category > h2 a {
  font-family: var(--dds-font-display);
  font-weight: 300;
  font-size: 28px;
  letter-spacing: -0.015em;
  color: var(--dds-midnight);
  text-transform: none;
}

.collection-category > h2 a:hover {
  color: var(--dds-gold-text);
  text-decoration: none;
}

.category-list a.category {
  box-sizing: border-box;
  text-align: left;
  padding: 28px 28px 22px;
  position: relative;
  background: var(--dds-cream);
  border: 1px solid var(--dds-divider-dark);
  border-radius: 0;
  box-shadow: none;
  transition: border-color 0.35s var(--dds-ease), transform 0.35s var(--dds-ease);
}

.category-list a.category::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  height: 2px;
  background: var(--dds-gold);
  opacity: 0;
  transition: opacity 0.35s var(--dds-ease);
}

.category-list a.category:hover {
  border-color: var(--dds-gold-line);
  transform: translateY(-2px);
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(8, 15, 31, 0.06);
}

.category-list a.category:hover::before {
  opacity: 1;
}

.category-list a.category h3 {
  font-family: var(--dds-font-body);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--dds-midnight);
}

/* Keep the cards to title + article count — no descriptions */
.category-list a.category p {
  font-family: var(--dds-font-body);
  font-size: 14px;
  font-weight: 400;
  color: var(--dds-text-secondary-light);
  line-height: 1.6;
}

.category-list a.category p:not(.article-count) {
  display: none;
}

.category-list a.category p.article-count {
  font-size: 12px;
  color: var(--dds-text-secondary-light);
  text-transform: none;
  letter-spacing: 0;
}

/* ==========================================================================
   5. Content area — the article "card"
   ========================================================================== */

.contentWrapper {
  background: var(--dds-cream);
  border: 1px solid var(--dds-divider-dark);
  padding: 48px 56px;
}

@media (max-width: 767px) {
  .contentWrapper {
    padding: 32px 24px;
  }
}

/* Category / collection page headers */
#categoryHead h1,
.contentWrapper hgroup h1 {
  font-family: var(--dds-font-display);
  font-weight: 300;
  font-size: clamp(28px, 3.4vw, 40px);
  letter-spacing: -0.015em;
  line-height: 1.15;
  color: var(--dds-midnight);
}

#categoryHead h2,
#categoryHead p {
  font-family: var(--dds-font-body);
  font-weight: 400;
  font-size: 14px;
  text-transform: none;
  letter-spacing: 0;
  color: var(--dds-text-secondary-light);
}

/* Article lists on category pages */
.articleList {
  margin-left: 0;
}

.articleList li {
  list-style: none;
  border-bottom: 1px solid var(--dds-divider-dark);
  padding: 20px 0;
  margin: 0;
}

/* No page icons next to article titles. Help Scout hangs the icon in a
   -24px anchor margin, so zero that out too or titles hang past the list. */
.articleList li i[class^="icon-"] {
  display: none;
}

.articleList li a {
  margin-left: 0;
  font-family: var(--dds-font-body);
  font-size: 15px;
  font-weight: 400;
  color: var(--dds-midnight);
  transition: color 0.35s var(--dds-ease);
}

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

/* ==========================================================================
   6. Article typography — mirrors decile.com blog (.post-rich-text),
      adapted for light surfaces per the design system
   ========================================================================== */

#fullArticle {
  font-family: var(--dds-font-body);
  font-size: 15px;
  font-weight: 400; /* DM Sans Regular on light surfaces */
  line-height: 1.8;
  color: var(--dds-charcoal);
}

#fullArticle h1.title {
  font-family: var(--dds-font-display);
  font-weight: 300;
  font-size: clamp(28px, 3.4vw, 44px);
  letter-spacing: -0.015em;
  line-height: 1.1;
  color: var(--dds-midnight);
  margin-bottom: 24px;
}

#fullArticle h2 {
  font-family: var(--dds-font-display);
  font-weight: 300;
  font-size: clamp(24px, 2.4vw, 32px);
  line-height: 1.25;
  color: var(--dds-midnight);
  margin-top: 56px;
  margin-bottom: 16px;
}

#fullArticle h3 {
  font-family: var(--dds-font-display);
  font-weight: 300;
  font-size: clamp(20px, 2vw, 24px);
  line-height: 1.3;
  color: var(--dds-midnight);
  margin-top: 40px;
  margin-bottom: 12px;
}

/* No eyebrows: h4 is a plain sans subheading, not a gold all-caps label */
#fullArticle h4 {
  font-family: var(--dds-font-body);
  font-weight: 500;
  font-size: 16px;
  text-transform: none;
  letter-spacing: 0;
  color: var(--dds-midnight);
  margin-top: 32px;
  margin-bottom: 8px;
}

#fullArticle p {
  font-family: var(--dds-font-body);
  font-size: 15px;
  line-height: 1.8;
  color: var(--dds-charcoal);
  margin: 0 0 20px;
}

#fullArticle ul,
#fullArticle ol {
  color: var(--dds-charcoal);
  line-height: 1.7;
  margin-bottom: 20px;
}

#fullArticle li {
  font-size: 15px;
  margin-bottom: 8px;
}

#fullArticle a {
  color: var(--dds-charcoal);
  text-decoration: underline;
  text-decoration-color: var(--dds-gold);
  text-underline-offset: 2px;
  transition: color 0.35s var(--dds-ease);
}

#fullArticle a:hover {
  color: var(--dds-gold-text);
  text-decoration-color: var(--dds-gold);
}

#fullArticle strong {
  font-weight: 500;
  color: var(--dds-midnight);
}

#fullArticle blockquote {
  font-family: var(--dds-font-display);
  font-style: italic;
  font-size: clamp(20px, 2vw, 24px);
  line-height: 1.5;
  color: var(--dds-charcoal);
  border-left: 2px solid var(--dds-gold-line);
  padding-left: 24px;
  margin: 32px 0;
}

#fullArticle code {
  font-family: Monaco, Menlo, Consolas, "Courier New", monospace;
  font-size: 13px;
  color: var(--dds-charcoal);
  background: var(--dds-parchment);
  border: 1px solid var(--dds-divider-dark);
  border-radius: 0;
}

#fullArticle pre {
  background: var(--dds-midnight);
  color: var(--dds-parchment);
  border: 0;
  border-radius: 0;
  padding: 20px 24px;
  line-height: 1.6;
}

#fullArticle pre code {
  background: transparent;
  border: 0;
  color: inherit;
}

#fullArticle img {
  border: 1px solid var(--dds-divider-dark);
}

#fullArticle hr {
  border: 0;
  border-top: 1px solid var(--dds-gold-line);
  margin: 40px 0;
}

#fullArticle table {
  font-size: 14px;
  border: 1px solid var(--dds-divider-dark);
}

#fullArticle table th {
  font-family: var(--dds-font-body);
  font-weight: 500;
  background: var(--dds-parchment);
  color: var(--dds-midnight);
  border-bottom: 1px solid var(--dds-gold-line);
}

#fullArticle table td {
  border-top: 1px solid var(--dds-divider-dark);
}

/* Editor callouts — Help Scout's defaults are off-palette (blue/gray).
   Map: info (blue) + success (green) -> teal wash (teal = sparing
   informational accent), caution (yellow) -> gold wash, generic -> parchment. */
#fullArticle [class^="callout"],
#fullArticle [class*=" callout"] {
  border-radius: 0;
  padding: 20px 24px;
  margin: 24px 0;
  font-size: 15px;
  line-height: 1.7;
}

#fullArticle .callout {
  background: var(--dds-parchment);
  border-left: 2px solid var(--dds-text-muted-light);
}

#fullArticle .callout-blue,
#fullArticle .callout-green {
  background: var(--dds-teal-wash);
  border-left: 2px solid var(--dds-teal);
}

#fullArticle .callout-yellow {
  background: var(--dds-gold-wash);
  border-left: 2px solid var(--dds-gold);
}

/* "Print" link on articles */
a.printArticle {
  color: var(--dds-text-secondary-light);
  transition: color 0.35s var(--dds-ease);
}

a.printArticle:hover {
  color: var(--dds-gold-text);
  text-decoration: none;
}

/* ==========================================================================
   7. Article ratings + footer sections
   ========================================================================== */

.articleRatings {
  background: var(--dds-cream);
  border: 1px solid var(--dds-divider-dark);
  border-radius: 0;
  font-family: var(--dds-font-body);
  color: var(--dds-text-secondary-light);
}

.articleFoot {
  font-family: var(--dds-font-body);
  color: var(--dds-text-secondary-light);
  border-top: 1px solid var(--dds-divider-dark);
}

#contentArea .articleRatings a,
#contentArea .articleFoot a {
  color: var(--dds-charcoal);
}

#contentArea .articleRatings a:hover,
#contentArea .articleFoot a:hover {
  color: var(--dds-gold-text);
}

/* Related articles / popular articles lists */
.relatedArticles h3,
#sidebar h3 {
  font-family: var(--dds-font-body);
  font-size: 14px;
  font-weight: 500;
  text-transform: none;   /* no eyebrows */
  letter-spacing: 0;
  color: var(--dds-text-secondary-light);
}

/* ==========================================================================
   8. Sidebar
   ========================================================================== */

#sidebar .nav-list a {
  font-family: var(--dds-font-body);
  font-size: 14px;
  color: var(--dds-charcoal);
  text-shadow: none;
  transition: color 0.35s var(--dds-ease);
}

#sidebar .nav-list a:hover {
  color: var(--dds-gold-text);
  background: transparent;
}

#sidebar .nav-list li.active a {
  font-weight: 500;
  color: var(--dds-midnight);
  background: transparent;
  border-left: 2px solid var(--dds-gold);
  padding-left: 10px;
  margin-left: -12px;
}

/* ==========================================================================
   9. Buttons (Bootstrap classes Help Scout uses) — match .btn-primary
      on decile.com: gold, square, DM Sans 500
   ========================================================================== */

.btn:not(.btn-navbar) {
  font-family: var(--dds-font-body);
  font-weight: 500;
  letter-spacing: 0.02em;
  border-radius: 0;
  text-shadow: none;
  box-shadow: none;
  background-image: none;
  transition: all 0.35s var(--dds-ease);
}

.btn-primary,
.btn-success {
  background: var(--dds-gold);
  color: var(--dds-midnight);
  border: 0;
}

.btn-primary:hover,
.btn-success:hover,
.btn-primary:focus,
.btn-success:focus {
  background: var(--dds-gold-bright);
  color: var(--dds-midnight);
}

/* ==========================================================================
   10. Page footer
   ========================================================================== */

#contentArea footer,
#contentArea footer p {
  font-family: var(--dds-font-body);
  font-size: 12px;
  color: var(--dds-text-secondary-light);
}

#contentArea footer a {
  color: var(--dds-text-secondary-light);
  text-decoration: underline;
  text-decoration-color: var(--dds-gold-line);
  text-underline-offset: 2px;
}

#contentArea footer a:hover {
  color: var(--dds-gold-text);
}

/* ==========================================================================
   11. Contact band (element injected via Help Scout "Insert <head> Code" —
       see src/helpscout-head-code.html)
   ========================================================================== */

.dds-contact-band {
  /* surface, borders, and glow come from the shared raised-band rules in §3 */
  padding: 64px 24px;
  margin-top: 64px;
}

.dds-contact-band h2 {
  position: relative;
  font-family: var(--dds-font-display);
  font-weight: 300;
  font-size: clamp(24px, 2.8vw, 34px);
  letter-spacing: -0.015em;
  color: var(--dds-parchment);
  margin: 0 0 8px;
}

.dds-contact-band p {
  position: relative;
  font-family: var(--dds-font-body);
  font-size: 15px;
  color: var(--dds-nav-text);
  margin: 0 0 28px;
}

.dds-contact-band a.dds-contact-btn {
  position: relative;
  display: inline-block;
  font-family: var(--dds-font-body);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--dds-midnight);
  background: var(--dds-gold);
  padding: 12px 32px;
  text-decoration: none;
  transition: all 0.35s var(--dds-ease);
}

.dds-contact-band a.dds-contact-btn:hover {
  background: var(--dds-gold-bright);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(212, 152, 26, 0.2);
}

/* ==========================================================================
   12. OPTIONAL — dark page background variant
   To use: uncomment this block. The article card stays cream; the page
   canvas, collection headings, sidebar, and footer flip to dark-surface
   styling matching the marketing site.
   ========================================================================== */

/*
body {
  background-color: var(--dds-midnight);
}

.collection-category > h2,
.collection-category > h2 a,
#sidebar .nav-list li.active a {
  color: var(--dds-parchment);
}

.category-list a.category {
  background: #132848;
  border-color: var(--dds-divider-light);
}

.category-list a.category h3 {
  color: var(--dds-parchment);
}

.category-list a.category p {
  color: var(--dds-nav-text);
}

.category-list a.category p.article-count {
  color: #566074;
}

#sidebar .nav-list a {
  color: #c9cfd8;
}

#sidebar .nav-list a:hover {
  color: var(--dds-gold-bright);
}

#sidebar h3,
.relatedArticles h3 {
  color: var(--dds-nav-text);
}

#contentArea footer,
#contentArea footer p,
#contentArea footer a {
  color: var(--dds-nav-text);
}
*/
