/*
 * UEditor content baseline.
 *
 * This file is loaded by both the editor iframe and the public service detail
 * page. Keep generic rich-text rules here so authored content has the same
 * typography and spacing in both places.
 */

body.view,
.ueditor-content {
  --ueditor-system-font: sans-serif;
  color: #000;
  font-family: var(--ueditor-system-font);
  font-size: 16px;
  line-height: normal;
}

:where(body.view, .ueditor-content) p {
  margin: 5px 0;
}

:where(body.view, .ueditor-content) h1 {
  margin: .67em 0;
  font-size: 2em;
}

:where(body.view, .ueditor-content) h2 {
  margin: .83em 0;
  font-size: 1.5em;
}

:where(body.view, .ueditor-content) h3 {
  margin: 1em 0;
  font-size: 1.17em;
}

:where(body.view, .ueditor-content) h4 {
  margin: 1.33em 0;
  font-size: 1em;
}

:where(body.view, .ueditor-content) h5 {
  margin: 1.67em 0;
  font-size: .83em;
}

:where(body.view, .ueditor-content) h6 {
  margin: 2.33em 0;
  font-size: .67em;
}

:where(body.view, .ueditor-content) h1,
:where(body.view, .ueditor-content) h2,
:where(body.view, .ueditor-content) h3,
:where(body.view, .ueditor-content) h4,
:where(body.view, .ueditor-content) h5,
:where(body.view, .ueditor-content) h6,
:where(body.view, .ueditor-content) b,
:where(body.view, .ueditor-content) strong {
  font-weight: bold;
}

:where(body.view, .ueditor-content) ul,
:where(body.view, .ueditor-content) ol {
  margin: 1em 0;
  padding-left: 40px;
}

:where(body.view, .ueditor-content) ul {
  list-style: disc outside;
}

:where(body.view, .ueditor-content) ol {
  list-style: decimal outside;
}

:where(body.view, .ueditor-content) ul ul {
  list-style-type: circle;
}

:where(body.view, .ueditor-content) ul ul ul {
  list-style-type: square;
}

:where(body.view, .ueditor-content) li {
  display: list-item;
}

/* common.css disables bullets for the service navigation; restore them only
 * inside authored rich text. */
.solutions .ueditor-content li {
  list-style: inherit;
}

:where(body.view, .ueditor-content) blockquote {
  margin: 1em 40px;
}

:where(body.view, .ueditor-content) dl {
  margin: 1em 0;
}

:where(body.view, .ueditor-content) dd {
  margin-left: 40px;
}

:where(body.view, .ueditor-content) figure {
  margin: 1em 40px;
}

:where(body.view, .ueditor-content) pre {
  margin: 1em 0;
  overflow: auto;
  font-family: var(--ueditor-system-font);
  white-space: pre;
}

:where(body.view, .ueditor-content) a:not([class]) {
  color: #0000ee;
  text-decoration: underline;
}

:where(body.view, .ueditor-content) hr {
  margin: .5em auto;
  border-style: inset;
  border-width: 1px;
}

:where(body.view, .ueditor-content) img {
  max-width: 100%;
  height: auto;
}

/* Use the site's readable table presentation in the editor as well. */
:where(body.view, .ueditor-content) table {
  display: table;
  width: 100%;
  margin-bottom: 10px;
  border-collapse: collapse;
}

:where(body.view, .ueditor-content) table th,
:where(body.view, .ueditor-content) table td {
  padding: 5px 10px;
  border: 1px solid #ddd;
}
