/*
 * Help Center (/help/) — index and article pages.
 * Brand blue #2D6484 (hover #1E4A5F) per the brand colour remediation; no
 * orange here, since orange is reserved for the donate/ask button.
 */

.hc {
  --hc-blue: #2d6484;
  --hc-blue-dark: #1e4a5f;
  --hc-ink: #1c2430;
  --hc-muted: #5b6675;
  --hc-line: #dfe5ea;
  --hc-tint: #f3f7fa;

  color: var(--hc-ink);
  font-size: 16px;
  line-height: 1.65;
  margin-bottom: 30px;
}

/* Bootstrap 3 sets display on some of these elements; make [hidden] win. */
.hc [hidden] {
  display: none !important;
}

.hc a {
  color: var(--hc-blue);
}

.hc a:hover,
.hc a:focus {
  color: var(--hc-blue-dark);
}

/* ---------- Index ---------- */
.hc-search {
  max-width: 640px;
  margin: 24px auto 16px;
}

.hc-search input {
  border-color: var(--hc-line);
  border-radius: 6px;
}

.hc-search input:focus {
  border-color: var(--hc-blue);
  box-shadow: 0 0 0 3px rgba(45, 100, 132, 0.2);
}

.hc-no-results {
  margin-top: 12px;
  text-align: center;
  color: var(--hc-muted);
}

.hc-jump {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 8px 0 32px;
}

.hc-jump a {
  padding: 6px 14px;
  border: 1px solid var(--hc-line);
  border-radius: 999px;
  font-size: 14px;
  text-decoration: none;
}

.hc-jump a:hover {
  border-color: var(--hc-blue);
  background: var(--hc-tint);
  text-decoration: none;
}

.hc-category {
  padding-top: 8px;
  margin-bottom: 32px;
  scroll-margin-top: 90px;
}

.hc-category-title {
  margin: 0 0 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--hc-blue);
  color: var(--hc-blue);
  font-size: 24px;
}

.hc-sections {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.hc-section {
  padding: 16px 18px;
  background: var(--hc-tint);
  border-radius: 8px;
  scroll-margin-top: 90px;
}

/* A category with a single section: use the full width and flow into columns. */
.hc-section:only-child {
  grid-column: 1 / -1;
}

.hc-section:only-child .hc-article-list {
  columns: 3 260px;
  column-gap: 32px;
}

.hc-section:only-child .hc-article-list li {
  break-inside: avoid;
}

.hc-section:only-child .hc-article-list li:first-child {
  border-top: 1px solid var(--hc-line);
}

.hc-section-title {
  margin: 0 0 10px;
  font-size: 17px;
  font-weight: 700;
}

.hc-article-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.hc-article-list li {
  padding: 5px 0;
  border-top: 1px solid var(--hc-line);
}

.hc-article-list li:first-child {
  border-top: 0;
}

/* ---------- Article ---------- */
.hc-crumbs {
  margin: 8px 0 16px;
  color: var(--hc-muted);
  font-size: 14px;
}

.hc-crumbs span {
  margin: 0 6px;
}

.hc-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 40px;
  align-items: start;
}

.hc-title {
  margin: 0 0 20px;
  color: var(--hc-blue);
  font-size: 32px;
  line-height: 1.25;
}

.hc-body img {
  max-width: 100%;
  height: auto;
}

.hc-body h2,
.hc-body h3 {
  color: var(--hc-blue);
}

.hc-body ul,
.hc-body ol {
  padding-left: 24px;
}

.hc-body table {
  border-collapse: collapse;
}

.hc-body td,
.hc-body th {
  padding: 6px 10px;
  border: 1px solid var(--hc-line);
}

/* Classes left in article bodies by the Zendesk editor. */
.hc-body .wysiwyg-text-align-center {
  text-align: center;
}

.hc-body .wysiwyg-text-align-right {
  text-align: right;
}

.hc-body .wysiwyg-font-size-large {
  font-size: 1.2em;
}

.hc-body .wysiwyg-font-size-x-large {
  font-size: 1.4em;
}

.hc-attachments-title {
  font-size: 18px;
}

.hc-aside {
  position: sticky;
  top: 90px;
  padding: 18px;
  background: var(--hc-tint);
  border-radius: 8px;
  font-size: 15px;
}

.hc-aside-title {
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 700;
}

.hc-aside-list {
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
}

.hc-aside-list li {
  padding: 5px 0;
  border-top: 1px solid var(--hc-line);
}

.hc-aside-list li:first-child {
  border-top: 0;
}

.hc-aside-list .is-current {
  font-weight: 700;
}

.hc-contact {
  margin-top: 40px;
  padding: 18px 20px;
  border-left: 4px solid var(--hc-blue);
  background: var(--hc-tint);
}

.hc-contact p {
  margin: 0;
}

@media (max-width: 767px) {
  .hc-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .hc-aside {
    position: static;
  }

  .hc-title {
    font-size: 26px;
  }
}
