/* The support pages under /support/: article text, the start page cards, the folder overview and the breadcrumb.
   The page chrome (top bar, menu, footer) is in site.css. Colours and type follow Moleant Discover. */

h1, h2, h3, h4 {
  overflow-wrap: break-word;
}

.support-article,
.support-card {
  margin: 16px 0;
  padding: 10px;
  background-color: #fff;
  border-radius: 6px;
  border: 2px solid #e0e0e1;
  color: #4b4b4b;
}

.support-article {
  max-width: 860px;
  padding: 16px 24px 24px;
  line-height: 1.7;
}

.support-article h1,
.support-article h2,
.support-article h3,
.support-article h4 {
  color: #000;
  line-height: 1.3;
}

.support-article h1 { font-size: 32px; margin: 8px 0 12px; padding: 0; }
.support-article h2 { font-size: 22px; margin: 28px 0 8px; padding: 0; }
.support-article h3 { font-size: 18px; margin: 20px 0 6px; padding: 0; }

.support-article p {
  margin: 0 0 14px;
  padding: 0;
}

.support-article ul,
.support-article ol {
  margin: 0 0 14px;
  padding-left: 24px;
}

.support-article li {
  margin-bottom: 4px;
}

.support-article a {
  color: #2a58a8;
  text-decoration: underline;
}

.support-lead {
  font-size: 16px;
  color: #6b6b6b;
}

.support-note {
  margin: 0 0 14px;
  padding: 10px 14px;
  background: #e3efff;
  border-radius: 6px;
}

.support-note p:last-child {
  margin-bottom: 0;
}

.support-note.support-warning {
  background: #fff6e5;
  border-left: 4px solid #f0b34a;
  border-radius: 0 6px 6px 0;
}

/* Commands and file names. */

.support-article code {
  padding: 1px 5px;
  border-radius: 4px;
  background: #f5f5f4;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.9em;
}

.support-article pre {
  margin: 8px 0 14px;
  padding: 12px 14px;
  border-radius: 6px;
  background: #f5f5f4;
  overflow-x: auto;
  line-height: 1.5;
}

.support-article pre code {
  padding: 0;
  background: none;
}

.support-table-wrap {
  margin: 8px 0 14px;
  overflow-x: auto;
}

.support-article table {
  border-collapse: collapse;
  width: 100%;
}

.support-article th,
.support-article td {
  padding: 8px 10px;
  border-bottom: 1px solid #e0e0e1;
  text-align: left;
  vertical-align: top;
}

.support-article th {
  color: #6b6b6b;
  font-size: 12px;
  font-weight: 600;
}

/* Row headers read as content (a task name), not as a column label. */

.support-article tbody th {
  color: inherit;
  font-size: inherit;
  font-weight: 500;
}

/* A list of terms and their meaning, for example the four roles in a RACI matrix. */

.support-definitions {
  margin: 0 0 14px;
}

.support-definitions dt {
  margin-top: 12px;
  color: #000;
  font-weight: 600;
}

.support-definitions dd {
  margin: 2px 0 0;
}

/* Start page: one card per top-level section. */

.support-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 0 16px;
  max-width: 1100px;
}

.support-card {
  padding: 8px 20px 16px;
}

.support-card h2 {
  margin: 12px 0 8px;
  padding: 0;
  color: #000;
  font-size: 22px;
  line-height: 1.3;
}

.support-card p {
  margin: 0 0 8px;
  padding: 0;
  color: #6b6b6b;
}

.support-card ul {
  margin: 0;
  padding-left: 20px;
}

.support-card a {
  color: #2a58a8;
}

.support-card a:hover {
  text-decoration: underline;
}

/* Folder overview: the children of a folder. */

.support-children {
  list-style: none;
  padding: 0;
}

.support-children li {
  padding: 10px 0;
  border-top: 1px solid #e0e0e1;
}

.support-children li span {
  display: block;
  color: #6b6b6b;
}

/* Breadcrumb. */

.support-breadcrumb {
  margin: 16px 0 0;
  font-size: 12px;
  color: #6b6b6b;
}

.support-breadcrumb ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
}

.support-breadcrumb li + li::before {
  content: "/";
  padding: 0 8px;
  color: #939393;
}

.support-breadcrumb li[aria-current="page"] {
  color: #4b4b4b;
}

.support-breadcrumb a:hover {
  text-decoration: underline;
}

.support-breadcrumb + .support-article {
  margin-top: 8px;
}

/* The "still need help?" box at the end of every support page. */

.support-contact {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  max-width: 860px;
  margin: 16px 0;
  padding: 1.25rem 1.5rem;
  border: 2px solid #e0e0e1;
  border-radius: 6px;
  background: #fff;
  color: #4b4b4b;
}

.support-contact-icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #11db76, #109cbf);
  color: #04210f;
  font-size: 22px;
}

.support-contact h2 {
  margin: 0 0 4px;
  padding: 0;
  color: #000;
  font-size: 18px;
  line-height: 1.3;
}

.support-contact p {
  margin: 0;
  padding: 0;
  line-height: 1.6;
}

.support-contact a {
  color: #2a58a8;
  text-decoration: underline;
}

@media screen and (max-width: 991px) {
  .support-article {
    padding: 8px 14px 16px;
  }

  .support-article h1 { font-size: 26px; }
}
