/*
 * Better Blog Comments Help Center (help.betterblogcomments.com), loaded by
 * Help Scout Docs as the site's custom stylesheet. Tokens follow the marketing
 * site (betterblogcomments-site, --rk-*): cream page, white cards, indigo ink
 * for text and buttons, green for accents only, Geist.
 *
 * Help Scout's markup is fixed (Bootstrap 2 era: #mainNav, #docsSearch,
 * .category-list, #fullArticle, #sidebar), so every rule targets those hooks.
 * site-head.html loads the font and adds the .bh-* blocks styled below.
 * Preview and deploy: see README.md in this folder.
 */

:root {
  --cream: #f5f3ee;
  --cream-dark: #ece8df;
  --card: #ffffff;
  --mint: #e7f4ed;
  --ink: #1a1437;
  --ink-2: #322b58;
  --text: #2c2650;
  --mute: #5f5978;
  --rule: #e2dfd6;
  --green: #4dcb8e;
  --green-text: #2f7d5c; /* 4.9:1 on white, for links and small text */
  --green-deep: #38705e;
  --radius: 14px;
  --radius-sm: 8px;
  --rail: 1180px;
  --shadow: 0 1px 2px rgba(20, 17, 13, 0.04), 0 4px 16px rgba(20, 17, 13, 0.05);
  --shadow-hover: 0 8px 28px -8px rgba(20, 17, 13, 0.16);
  --font: "Geist", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

html, body { background: var(--cream); }
body { margin: 0; padding: 0; } /* Bootstrap pads the body on phones */
body {
  font-family: var(--font);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, input, button, select, textarea { font-family: var(--font); }
h1, h2, h3, .bh-sub { text-wrap: balance; }
a, .contentWrapper a, .collection a { color: var(--green-text); }
a:hover, a:focus, .contentWrapper a:hover { color: var(--green-deep); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--mint); color: var(--ink); }

.container-fluid { max-width: var(--rail); padding-left: 32px; padding-right: 32px; box-sizing: border-box; }

/* --- Header ------------------------------------------------------------ */

#mainNav.navbar { margin: 0; }
#mainNav.navbar .navbar-inner {
  background: rgba(245, 243, 238, 0.92);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
  border: 0;
  border-bottom: 1px solid var(--rule);
  box-shadow: none;
  border-radius: 0;
  padding: 0;
  min-height: 0;
}
#mainNav { position: sticky; top: 0; z-index: 1000; }
#mainNav .container-fluid {
  display: flex;
  align-items: center;
  height: 64px;
  padding-left: 32px;
  padding-right: 32px;
}
#mainNav .container-fluid::before, #mainNav .container-fluid::after { content: none; }
.navbar .brand {
  display: flex;
  align-items: center;
  gap: 14px;
  float: none;
  padding: 0;
  margin: 0 auto 0 0;
  color: var(--ink);
}
.navbar .brand img { width: auto; height: 38px; max-height: none; display: block; }
.navbar .brand::after {
  content: "Help Center";
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--mint);
  color: var(--green-deep);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0;
  white-space: nowrap;
}
.navbar .brand:hover { color: var(--ink); text-decoration: none; }
.navbar .btn-navbar { display: none; }
.navbar .nav-collapse, .navbar .nav-collapse.collapse {
  display: flex;
  align-items: center;
  height: auto;
  overflow: visible;
  float: none;
}
.navbar .nav {
  display: flex;
  align-items: center;
  gap: 10px;
  float: none;
  position: static;
  top: auto;
  margin: 0;
  padding: 0;
}
#mainNav nav, .navbar .nav > li { margin: 0; padding: 0; float: none; }
/* One Contact link at every width; Help Scout swaps two of them by screen size. */
.navbar .nav > li#contact { display: block; }
.navbar .nav > li#contactMobile { display: none; }
.navbar .nav > li > a,
.navbar .nav > li > a:focus {
  display: block;
  padding: 10px 16px;
  border: 1px solid var(--rule);
  border-radius: 10px;
  background: var(--card);
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  text-shadow: none;
  transition: border-color 0.15s, background 0.15s;
}
.navbar .nav > li > a:hover { border-color: var(--ink); color: var(--ink); background: var(--card); }
.navbar .nav > li.bh-install > a,
.navbar .nav > li.bh-install > a:focus { background: var(--ink); border-color: var(--ink); color: #fff; }
.navbar .nav > li.bh-install > a:hover { background: var(--ink-2); border-color: var(--ink-2); color: #fff; }

/* --- Search hero (home) ------------------------------------------------ */

#docsSearch {
  position: relative;
  overflow: hidden;
  background: var(--cream);
  border: 0;
  border-bottom: 1px solid var(--rule);
  padding: 48px 24px 52px;
  margin: 0;
  text-align: center;
}
/* Two soft mint glows, like the marketing hero. */
#docsSearch::before, #docsSearch::after {
  content: "";
  position: absolute;
  z-index: 0;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(77, 203, 142, 0.16), rgba(77, 203, 142, 0));
  pointer-events: none;
}
#docsSearch::before { top: -260px; left: -120px; }
#docsSearch::after { bottom: -300px; right: -140px; }
#docsSearch > * { position: relative; z-index: 1; }
#docsSearch h1 {
  max-width: 820px;
  margin: 0 auto 10px;
  font-size: 48px;
  line-height: 1.04;
  font-weight: 700;
  letter-spacing: -0.035em;
  color: var(--ink);
  text-shadow: none;
}
#docsSearch h1 .bh-accent { color: var(--green); }
.bh-sub {
  max-width: 600px;
  margin: 0 auto 24px;
  color: var(--mute);
  font-size: 17px;
  line-height: 1.5;
}
#searchBar { max-width: 680px; margin: 0 auto; padding: 0; position: relative; display: flex; align-items: center; }
#searchBar .search-query {
  width: 100%;
  height: 56px;
  box-sizing: border-box;
  margin: 0;
  padding: 0 128px 0 50px;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--card) no-repeat 20px 50% / 20px 20px
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235f5978' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E");
  font-size: 17px;
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(20, 17, 13, 0.05), 0 12px 32px -12px rgba(20, 17, 13, 0.14);
  transition: border-color 0.15s, box-shadow 0.15s;
  -webkit-appearance: none;
  appearance: none;
}
#searchBar .search-query::placeholder { color: #8a85a0; }
#searchBar .search-query:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 4px rgba(77, 203, 142, 0.25), 0 12px 32px -12px rgba(20, 17, 13, 0.14);
}
#searchBar button {
  position: static;
  flex: none;
  width: auto;
  height: 42px;
  margin: 0 0 0 -112px;
  padding: 0 22px;
  border: 0;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  text-shadow: none;
  box-shadow: none;
  cursor: pointer;
  transition: background 0.15s;
}
#searchBar button:hover, #searchBar button:focus { background: var(--ink-2); }
#searchBar button .icon-search { display: none; }
#serp-dd {
  top: 62px;
  left: 0;
  right: 0;
  width: auto;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: 0 20px 48px -12px rgba(20, 17, 13, 0.22);
  overflow: hidden;
  text-align: left;
}
#serp-dd .result > li a,
#serp-dd .result a { display: block; padding: 12px 18px; color: var(--ink); font-size: 15px; }
#serp-dd .result > li a:hover, #serp-dd .result > li.active, #serp-dd .result a:hover { background: var(--mint); color: var(--ink); }

/* --- Home sections ------------------------------------------------------ */

#contentArea { padding-top: 32px; }
.bh-section-title, .bh-start h2 {
  margin: 0 0 12px;
  font-size: 20px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}

/* "Start here", added by site-head.html */
.bh-start { margin: 0 0 32px; }
.bh-start-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: bh-step;
}
.bh-start-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  height: 100%;
  box-sizing: border-box;
  padding: 16px 18px;
  border-radius: var(--radius);
  background: var(--ink);
  color: #fff;
  counter-increment: bh-step;
  transition: transform 0.15s, background 0.15s;
}
.bh-start-card::before {
  content: counter(bh-step);
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  margin-bottom: 6px;
  border-radius: 8px;
  background: var(--green);
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}
.bh-start-card strong { font-size: 16px; line-height: 1.3; font-weight: 600; color: #fff; }
.bh-start-card span { font-size: 14px; line-height: 1.5; color: #c9c5dc; }
.bh-start-card:hover, .bh-start-card:focus { background: var(--ink-2); color: #fff; text-decoration: none; transform: translateY(-2px); }

/* Category cards */
.category-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 32px;
  padding: 0;
}
.category-list::before, .category-list::after { content: none; }
.category-list .category {
  display: flex;
  flex-direction: column;
  float: none;
  width: auto;
  min-height: 0;
  margin: 0;
  padding: 18px 20px;
  box-sizing: border-box;
  text-align: left;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.category-list .category:hover, .category-list .category:focus {
  border-color: var(--green);
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
  text-decoration: none;
}
.category-list .category h3 {
  margin: 0 0 4px;
  font-size: 18px;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.category-list .category p { margin: 0; color: var(--mute); font-size: 15px; line-height: 1.5; }
.category-list .category p:empty { display: none; }
.category-list .category .bh-cat-desc { margin: 0; color: var(--mute); font-size: 15px; line-height: 1.5; }
.category-list .category .article-count,
.category-list .category:hover .article-count {
  margin-top: auto;
  padding-top: 12px;
  color: var(--green-text);
  font-size: 14px;
  font-weight: 600;
}
.category-list .category .article-count::after { content: " \2192"; }

/* "Popular articles", added by site-head.html */
.bh-popular { margin: 0 0 32px; }
.bh-popular ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 28px;
  margin: 0;
  padding: 2px 20px;
  list-style: none;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.bh-popular li { margin: 0; border-bottom: 1px solid var(--rule); }
.bh-popular li:nth-last-child(-n + 2) { border-bottom: 0; }
.bh-popular a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
  color: var(--ink);
  font-size: 15.5px;
  font-weight: 500;
  line-height: 1.4;
}
.bh-popular a::after { content: "\2192"; color: var(--mute); transition: transform 0.15s, color 0.15s; }
.bh-popular a:hover { color: var(--green-deep); text-decoration: none; }
.bh-popular a:hover::after { color: var(--green-deep); transform: translateX(3px); }

/* "Still stuck?" panel, home page */
.bh-help {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 0 0 32px;
  padding: 18px 22px;
  border-radius: var(--radius);
  background: var(--mint);
  border: 1px solid rgba(77, 203, 142, 0.35);
}
.bh-help strong { display: block; margin-bottom: 2px; color: var(--ink); font-size: 18px; font-weight: 700; letter-spacing: -0.015em; }
.bh-help span { color: var(--text); font-size: 15px; }

/* Shared button, used by the panels */
a.bh-btn, button.bh-btn {
  flex: none;
  display: inline-block;
  padding: 12px 20px;
  border: 0;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s;
}
a.bh-btn:hover, button.bh-btn:hover, a.bh-btn:focus { background: var(--ink-2); color: #fff; text-decoration: none; }

/* --- Inner pages: layout ----------------------------------------------- */

#contentArea .row-fluid { display: flex; gap: 24px; align-items: flex-start; }
#contentArea .row-fluid::before, #contentArea .row-fluid::after { content: none; }
#main-content.span9 { float: none; width: auto; flex: 1 1 auto; min-width: 0; margin: 0; padding: 0; }
#sidebar.span3 { float: none; width: 252px; flex: none; margin: 0; position: sticky; top: 84px; }
.contentWrapper {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  min-height: 0;
  padding: 32px 40px;
  box-shadow: var(--shadow);
  margin: 0 0 16px;
}

/* Breadcrumb, added by site-head.html */
.bh-crumbs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; padding: 0; list-style: none; font-size: 14px; color: var(--mute); }
.bh-crumbs li + li::before { content: "/"; margin-right: 6px; color: #b5b0c6; }
.bh-crumbs a { color: var(--mute); }
.bh-crumbs a:hover { color: var(--ink); }

/* --- Category and search pages ----------------------------------------- */

#categoryHead { margin: 0 0 8px; }
#categoryHead h1, #main-content h1 {
  margin: 0 0 6px;
  font-size: 32px;
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
}
#serp h1 strong { color: var(--green-deep); font-weight: 700; }
#categoryHead .descrip:empty { display: none; }
#categoryHead .descrip, .articlesFound { color: var(--mute); font-size: 17px; margin: 0; }
.articlesFound strong { color: var(--ink); }
/* site-head.html sets a reading order; a popularity sort would undo it. */
#categoryHead .sort { display: none; }
.articleList { margin: 16px 0 0; padding: 0; }
.articleList li {
  margin: 0;
  padding: 0;
  list-style: none;
  border-bottom: 1px solid var(--rule);
}
.articleList li:first-child { border-top: 1px solid var(--rule); }
.articleList > li > a {
  display: flex;
  margin: 0;
  align-items: center;
  gap: 12px;
  padding: 12px 4px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
}
.articleList li a::after { content: "\2192"; margin-left: auto; color: var(--mute); transition: transform 0.15s, color 0.15s; }
.articleList li a:hover { color: var(--green-deep); text-decoration: none; }
.articleList li a:hover::after { color: var(--green-deep); transform: translateX(3px); }
.articleList li a i { color: var(--green-text); font-size: 18px; }
#serp .articleList > li { padding: 0; }
#serp .articleList > li > a { display: flex; padding-bottom: 6px; font-weight: 600; }
#serp .articleList > li > a::after { content: none; }
#serp .articleList li p { margin: 0 0 14px 40px; padding: 0; color: var(--mute); font-size: 15px; line-height: 1.55; }
#noResults { padding: 24px; color: var(--mute); }

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

#fullArticle { position: relative; max-width: 740px; font-size: 16.5px; line-height: 1.65; color: var(--text); }
#fullArticle h1.title {
  margin: 0 0 16px;
  padding-right: 40px;
  font-size: 34px;
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
}
#fullArticle .printArticle { top: 8px; right: 0; color: var(--mute); }
#fullArticle .printArticle:hover { color: var(--ink); }
#fullArticle h2 {
  margin: 32px 0 10px;
  padding: 0;
  border: 0;
  font-size: 23px;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}
#fullArticle h3 { margin: 24px 0 8px; font-size: 19px; line-height: 1.3; font-weight: 600; color: var(--ink); }
#fullArticle h4 { margin: 24px 0 8px; font-size: 17px; font-weight: 600; color: var(--ink); }
#fullArticle p, #fullArticle ul, #fullArticle ol, #fullArticle li, #fullArticle div,
#fullArticle dd, #fullArticle blockquote, #fullArticle table {
  color: var(--text);
  font-size: 16.5px;
  line-height: 1.65;
}
#fullArticle p { margin: 0 0 14px; }
#fullArticle > br { display: none; }
#fullArticle strong, #fullArticle b { color: var(--ink); font-weight: 600; }
#fullArticle a, #fullArticle strong a, #fullArticle a strong {
  color: var(--green-text);
  text-decoration: underline;
  text-decoration-color: rgba(47, 125, 92, 0.35);
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
  transition: text-decoration-color 0.15s;
}
#fullArticle a:hover { color: var(--green-deep); text-decoration-color: currentColor; }
/* Long URLs and file names wrap instead of widening the page on phones. */
#fullArticle a, #fullArticle code { overflow-wrap: anywhere; }
#fullArticle ol, #fullArticle ul { margin: 0 0 16px; padding-left: 24px; }
#fullArticle li { margin: 0 0 6px; padding-left: 4px; }
#fullArticle li > p { margin: 0 0 6px; }
#fullArticle ol > li::marker { color: var(--green-deep); font-weight: 700; }
#fullArticle ul > li::marker { color: var(--green); }
#fullArticle img {
  display: block;
  max-width: 100%;
  height: auto !important;
  margin: 16px auto 20px;
  border: 1px solid var(--rule);
  border-radius: 12px;
  box-shadow: 0 2px 4px rgba(20, 17, 13, 0.04), 0 12px 32px -16px rgba(20, 17, 13, 0.2);
  background: var(--card);
  cursor: zoom-in;
}
#fullArticle figure { margin: 16px 0 20px; max-width: 100% !important; }
#fullArticle figure img { margin: 0 auto; }
#fullArticle figcaption { margin-top: 6px; color: var(--mute); font-size: 14px; line-height: 1.5; text-align: center; }
#fullArticle code {
  padding: 2px 6px;
  border: 1px solid var(--rule);
  border-radius: 6px;
  background: var(--cream);
  color: var(--ink);
  font-family: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.86em;
}
#fullArticle pre {
  position: relative;
  margin: 20px 0 28px;
  padding: 18px 20px;
  overflow-x: auto;
  border: 0;
  border-radius: 12px;
  background: var(--ink);
  color: #ece9f7;
  font-size: 14px;
  line-height: 1.65;
  white-space: pre;
  -webkit-overflow-scrolling: touch;
}
#fullArticle pre code { padding: 0; border: 0; background: none; color: inherit; font-size: inherit; word-break: normal; }
#fullArticle .bh-copy {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 5px 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-family: var(--font);
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
}
#fullArticle .bh-copy:hover { background: rgba(255, 255, 255, 0.16); }
#fullArticle .bh-table { margin: 20px 0 28px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
#fullArticle table { width: 100%; margin: 0; border-collapse: collapse; font-size: 15px; }
#fullArticle th, #fullArticle td { padding: 11px 14px; border: 1px solid var(--rule); font-size: 15px; line-height: 1.5; text-align: left; vertical-align: top; }
#fullArticle th { background: var(--cream); color: var(--ink); font-weight: 600; }
#fullArticle blockquote, #fullArticle .callout, #fullArticle .callout-blue, #fullArticle .callout-yellow, #fullArticle .callout-green, #fullArticle .callout-red {
  margin: 20px 0;
  padding: 14px 18px;
  border: 1px solid rgba(77, 203, 142, 0.35);
  border-radius: 10px;
  background: var(--mint);
  color: var(--ink);
}
#fullArticle blockquote p:last-child, #fullArticle .callout p:last-child { margin-bottom: 0; }
#fullArticle .callout-yellow { border-color: rgba(232, 168, 58, 0.4); background: #fbf3e2; }
#fullArticle .callout-red { border-color: rgba(217, 83, 79, 0.3); background: #fdeeee; }
#fullArticle hr { margin: 40px 0; border: 0; border-top: 1px solid var(--rule); }
#fullArticle iframe, #fullArticle video { max-width: 100%; border-radius: 12px; }

/* Install box, added by site-head.html */
#fullArticle .bh-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 32px 0 0;
  padding: 18px 22px;
  border-radius: var(--radius);
  background: var(--ink);
}
#fullArticle .bh-cta div { display: flex; flex-direction: column; gap: 4px; margin: 0; }
#fullArticle .bh-cta strong { color: #fff; font-size: 18px; line-height: 1.3; }
#fullArticle .bh-cta span { color: #c9c5dc; font-size: 15px; line-height: 1.5; }
#fullArticle a.bh-cta-btn {
  flex: none;
  padding: 12px 20px;
  border-radius: 10px;
  background: var(--green);
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.15s;
}
#fullArticle a.bh-cta-btn:hover { background: #6bd8a3; color: var(--ink); }

/* Ratings, "still need help" and last updated */
.articleRatings {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  max-width: 740px;
  box-sizing: border-box;
  margin: 24px 0 0;
  padding: 12px 16px;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--cream);
}
.articleRatings-question { color: var(--ink); font-size: 16px; font-weight: 600; }
.articleRatings .articleRatings-actions { display: flex; gap: 6px; float: none; position: static; margin: 0; }
.articleRatings .articleRatings-feedback-message { color: var(--green-deep); font-weight: 600; }
.articleRatings .rateAction {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin: 0;
  padding: 0;
  border: 1px solid var(--rule);
  border-radius: 10px;
  background: var(--card);
  transition: border-color 0.15s, background 0.15s;
}
.articleRatings .rateAction .rating-face { position: static; display: block; width: 24px; height: 24px; margin: 0; }
.articleRatings .rateAction svg { display: block; fill: var(--mute); }
.articleRatings .rateAction:hover { border-color: var(--ink); }
.articleRatings .rateAction--positive:hover { background: var(--mint); border-color: var(--green); }
.articleRatings .rateAction--positive:hover svg { fill: var(--green-deep); }
.articleFoot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 16px;
  max-width: 740px;
  margin: 16px 0 0;
  padding: 14px 0 0;
  border-top: 1px solid var(--rule);
}
.articleFoot .icon-contact { display: none; }
.articleFoot p.help, .articleFoot .lu { position: static; float: none; margin: 0; padding: 0; color: var(--mute); font-family: var(--font); font-size: 14px; font-style: normal; }
.articleFoot p.help a { font-weight: 600; }
#sbContactMobile { display: none; }

/* Related articles */
.related {
  margin: 0 0 16px;
  padding: 18px 22px;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
}
.related h3 { margin: 0 0 4px; padding: 0; color: var(--ink); font-size: 17px; font-weight: 700; letter-spacing: -0.01em; text-transform: none; }
.related ul { margin: 0; padding: 0; }
.related ul > li { margin: 0; padding: 0; list-style: none; border-bottom: 1px solid var(--rule); }
.related ul > li:last-child { border-bottom: 0; }
.related ul > li > a { display: flex; align-items: center; gap: 10px; margin: 0; padding: 9px 0; color: var(--ink); font-size: 16px; font-weight: 500; }
.related li a:hover { color: var(--green-deep); text-decoration: none; }
.related li a i { color: var(--green-text); }

/* --- Sidebar ----------------------------------------------------------- */

#sidebar form#searchBar.sm { display: flex; max-width: none; margin: 0 0 8px; }
#sidebar #searchBar.sm .search-query {
  height: 46px;
  padding: 0 14px 0 42px;
  background-position: 14px 50%;
  background-size: 18px 18px;
  border-radius: 10px;
  font-size: 15px;
  box-shadow: none;
}
#sidebar form#searchBar.sm button { display: none; }
#sidebar #serp-dd { top: 52px; }
#sidebar h3 {
  margin: 16px 0 6px;
  padding: 0 12px;
  color: var(--mute);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
#sidebar .nav-list { margin: 0; padding: 0; }
#sidebar .nav-list li a {
  display: block;
  margin: 0 0 1px;
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
  text-shadow: none;
}
#sidebar .nav-list li a:hover { background: var(--cream-dark); color: var(--ink); }
#sidebar .nav-list li.active a,
#sidebar .nav-list li.active a:hover { background: var(--cream-dark); color: var(--ink); font-weight: 600; }
#sidebar .nav-list li a .icon-arrow, #sidebar .nav-list li.active a .icon-arrow { display: none; }

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

footer, footer.center {
  clear: both;
  margin: 16px 0 0;
  padding: 20px 0 32px;
  border-top: 1px solid var(--rule);
  color: var(--mute);
  font-size: 14px;
  text-align: left;
}
footer p, footer p span { margin: 0; color: var(--mute); }
footer a { color: var(--mute); text-decoration: underline; text-underline-offset: 2px; }
footer a:hover { color: var(--ink); }

/* --- Image zoom, added by site-head.html ------------------------------- */

.bh-zoom {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(26, 20, 55, 0.82);
  cursor: zoom-out;
  opacity: 0;
  transition: opacity 0.15s;
}
.bh-zoom.is-open { opacity: 1; }
.bh-zoom img { max-width: 100%; max-height: 100%; border-radius: 10px; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4); background: #fff; }

/* --- Smaller screens ---------------------------------------------------- */

@media (max-width: 1080px) {
  .bh-start-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  #contentArea .row-fluid { flex-direction: column; align-items: stretch; gap: 0; }
  #sidebar.span3 { position: static; width: 100%; order: -1; margin: 0 0 12px; }
  /* On small screens the sidebar is just the search box; the breadcrumb does the navigating. */
  #sidebar h3, #sidebar .nav-list { display: none; }
  .contentWrapper { padding: 24px 22px; }
  .category-list { grid-template-columns: 1fr; gap: 12px; }
  .bh-popular ul { grid-template-columns: 1fr; padding: 4px 22px; }
  .bh-popular li:nth-last-child(2) { border-bottom: 1px solid var(--rule); }
  #docsSearch h1 { font-size: 42px; }
}

@media (max-width: 600px) {
  .container-fluid, #contentArea.container-fluid { padding-left: 16px; padding-right: 16px; }
  #mainNav .container-fluid { height: 60px; padding-left: 16px; padding-right: 16px; }
  .navbar .brand { gap: 10px; }
  .navbar .brand img { height: 30px; }
  .navbar .brand::after { padding: 3px 8px; font-size: 12px; }
  .navbar .nav > li.bh-install { display: none; }
  .navbar .nav > li > a, .navbar .nav > li > a:focus { padding: 8px 12px; font-size: 14px; }

  #docsSearch { padding: 28px 16px 32px; }
  #docsSearch h1 { font-size: 31px; letter-spacing: -0.03em; }
  .bh-sub { margin-bottom: 18px; font-size: 15.5px; }
  #searchBar .search-query { height: 52px; padding: 0 64px 0 46px; background-position: 16px 50%; font-size: 16px; }
  #searchBar button { width: 40px; height: 40px; margin-left: -46px; padding: 0; }
  #searchBar button span { display: none; }
  #searchBar button .icon-search { display: inline-block; color: #fff; font-size: 17px; }
  #serp-dd { top: 58px; }

  #contentArea { padding-top: 20px; }
  .bh-section-title, .bh-start h2 { font-size: 18px; margin-bottom: 10px; }
  .bh-start, .category-list, .bh-popular { margin-bottom: 24px; }
  .bh-start-grid { grid-template-columns: 1fr; gap: 8px; }
  .bh-start-card { flex-direction: row; flex-wrap: wrap; align-items: center; column-gap: 10px; padding: 12px 14px; }
  .bh-start-card strong { font-size: 15.5px; }
  .bh-start-card::before { margin: 0; }
  .bh-start-card strong { flex: 1; }
  .bh-start-card span { display: none; }
  .category-list .category { padding: 14px 16px; }
  .bh-help { flex-direction: column; align-items: flex-start; gap: 12px; padding: 16px; }
  .bh-popular ul { padding: 0 16px; }
  .bh-popular a { font-size: 15px; padding: 11px 0; }

  .contentWrapper { padding: 20px 16px; border-radius: 12px; }
  #categoryHead h1, #main-content h1 { font-size: 26px; }
  #fullArticle h1.title { font-size: 26px; padding-right: 0; }
  #fullArticle .printArticle { display: none; }
  #fullArticle h2 { margin-top: 26px; font-size: 20px; }
  #fullArticle, #fullArticle p, #fullArticle li, #fullArticle ul, #fullArticle ol, #fullArticle div { font-size: 16px; line-height: 1.6; }
  #fullArticle ol, #fullArticle ul { padding-left: 22px; }
  #fullArticle img { margin: 18px auto 22px; border-radius: 10px; }
  #fullArticle pre { margin-left: -16px; margin-right: -16px; border-radius: 0; font-size: 13px; }
  #fullArticle .bh-cta { flex-direction: column; align-items: flex-start; gap: 12px; padding: 16px; }
  .articleRatings { padding: 12px 14px; }
  .articleFoot { flex-direction: column; align-items: flex-start; }
  .related { padding: 14px 16px; }
  .articleList li a { font-size: 15.5px; padding: 12px 2px; }
  #serp .articleList li p { margin-left: 0; }
  footer, footer.center { padding-bottom: 96px; } /* room for the Beacon button */
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}

@media print {
  #mainNav, #sidebar, .related, .articleRatings, .articleFoot, .bh-cta, .bh-crumbs, footer { display: none !important; }
  .contentWrapper { border: 0; box-shadow: none; padding: 0; }
}
