/* Help centre styling.
 *
 * The help pages were built on Bulma defaults, which left them looking unlike
 * the rest of the site: Bulma blue for active states and buttons, a hero search
 * stretched the full width of the container, and folder cards with no padding
 * or hover. This aligns them with the house palette and card treatment used
 * elsewhere (core.css).
 *
 *   #43bdc0  primary teal   — buttons, active states
 *   #7cd1d3  light teal     — hovers, tints
 *   #444f60  slate          — headings and body text
 *
 * Loaded from each help template's {% block header %}, not from layout.html, so
 * no other page pays for it.
 */

/* ---- Hero search ---------------------------------------------------------- */
/* Was full container width, which read as unfinished next to the centred title. */
.help-search {
  max-width: 520px;
  margin: 26px auto 0;
}

.help-search .input {
  border: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
  height: 44px;
}

.help-search .input:focus {
  box-shadow: 0 0 0 2px #7cd1d3;
}

.help-search .button {
  height: 44px;
  padding-left: 22px;
  padding-right: 22px;
}

/* ---- Sidebar -------------------------------------------------------------- */
.help-sidebar .menu-label {
  color: #444f60;
  font-weight: 700;
  letter-spacing: 0.6px;
  margin-bottom: 8px;
}

.help-sidebar .menu-list a {
  border-radius: 4px;
  color: #444f60;
  padding: 7px 10px;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.help-sidebar .menu-list a:hover {
  background-color: rgba(124, 209, 211, 0.18);
  color: #2f3a4a;
}

/* Bulma's default active state is its own blue; use the brand teal instead. */
.help-sidebar .menu-list a.is-active {
  background-color: #43bdc0;
  color: #fff;
  font-weight: 600;
}

.help-sidebar .menu-list a.is-active:hover {
  background-color: #3aa9ac;
  color: #fff;
}

.help-sidebar .menu-list ul {
  border-left: 2px solid rgba(124, 209, 211, 0.4);
  margin-left: 10px;
  padding-left: 10px;
}

/* ---- Folder cards on the index and folder pages --------------------------- */
.help-card {
  height: 100%;
  transition: box-shadow 0.18s ease, transform 0.18s ease;
}

.help-card:hover {
  box-shadow: 0 8px 20px rgba(68, 79, 96, 0.13);
  transform: translateY(-2px);
}

.help-card .post-body {
  padding: 22px 24px 24px;
}

.help-card .title {
  margin-bottom: 14px;
}

.help-card .title a {
  color: #444f60;
}

.help-card .title a:hover {
  color: #43bdc0;
}

/* The article list inside a card: no browser bullets, a teal marker instead. */
.help-card-list {
  list-style: none;
  margin: 0;
}

.help-card-list li {
  border-top: 1px solid #f1f3f5;
  padding: 0;
}

.help-card-list li:first-child {
  border-top: 0;
}

.help-card-list a {
  color: #4a5568;
  display: block;
  padding: 9px 0 9px 18px;
  position: relative;
  transition: color 0.15s ease, padding-left 0.15s ease;
}

.help-card-list a::before {
  content: '';
  border-right: 2px solid #7cd1d3;
  border-top: 2px solid #7cd1d3;
  height: 7px;
  left: 2px;
  position: absolute;
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
  width: 7px;
}

.help-card-list a:hover {
  color: #43bdc0;
  padding-left: 23px;
}

/* ---- Article body --------------------------------------------------------- */
/* No padding rule here on purpose. core.css already sets
 * `.flex-card.is-full-post .post-body { padding: 10px 30px }`, which is the
 * house treatment blog posts use, and a help article should sit on the same
 * grid as the rest of the site rather than inventing its own spacing. Only the
 * things core.css does not cover are set below. */

.help-article-body.content h1,
.help-article-body.content h2,
.help-article-body.content h3 {
  color: #444f60;
}

.help-article-body.content a {
  border-bottom: 1px solid rgba(67, 189, 192, 0.45);
  color: #43bdc0;
}

.help-article-body.content a:hover {
  border-bottom-color: #43bdc0;
}

.help-article-body.content blockquote {
  background-color: #f7fbfb;
  border-left: 3px solid #7cd1d3;
}

.help-article-body.content img {
  border-radius: 4px;
}

/* ---- Breadcrumb ----------------------------------------------------------- */
.breadcrumb a {
  color: #6b7686;
}

.breadcrumb a:hover {
  color: #43bdc0;
}

.breadcrumb li.is-active a {
  color: #444f60;
}

/* ---- Was this helpful? ---------------------------------------------------- */
.help-feedback {
  border-top: 1px solid #e8ecef;
  margin-top: 28px;
  padding-top: 22px;
}

.help-feedback p {
  color: #6b7686;
  margin-bottom: 12px;
}

.help-feedback .button {
  border: 1px solid #d7dde3;
  color: #444f60;
  margin: 0 5px;
  min-width: 86px;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.help-feedback .button:hover:not([disabled]) {
  border-color: #43bdc0;
  color: #43bdc0;
}

.help-feedback .button[disabled] {
  opacity: 0.5;
}

#help-feedback-thanks {
  color: #43bdc0;
  font-weight: 600;
  margin-top: 12px;
}

/* ---- Search results ------------------------------------------------------- */
.help-result {
  border-bottom: 1px solid #eef1f3;
  padding: 16px 0;
}

.help-result:last-child {
  border-bottom: 0;
}

.help-result .title {
  margin-bottom: 4px;
}

.help-result .title a {
  color: #444f60;
}

.help-result .title a:hover {
  color: #43bdc0;
}

.help-result .help-result-path {
  color: #8a94a2;
  font-size: 0.85rem;
}
