/* CMS documents share the store typography and a readable text measure. */
body.page-cms #content.page-content {
  padding: 32px max(24px, calc((100% - 760px) / 2));
  color: var(--f24-text);
  font-family: var(--f24-font);
  font-size: 16px;
  line-height: 1.6;
  text-align: left;
  overflow-wrap: anywhere;
}

body.page-cms #content :is(p, li, td, th, span) {
  color: inherit;
  font-size: inherit;
  line-height: inherit;
  text-align: left;
}

body.page-cms #content p {
  margin: 0 0 1em;
}

body.page-cms #content p:empty {
  display: none;
}

body.page-cms #content > :last-child {
  margin-bottom: 0;
}

body.page-cms #content :is(ul, ol) {
  margin: 0 0 1em;
  padding-left: 1.5em;
}

body.page-cms #content ul {
  list-style: disc;
}

body.page-cms #content li {
  margin-bottom: 0.375em;
}

body.page-cms #content ul:has(> li:only-child > strong:only-child),
body.page-cms #content ul:has(> li:only-child > strong:first-child + ul:last-child) {
  margin: 33px 0 16px;
  padding: 0;
  list-style: none;
}

body.page-cms #content li:only-child:has(> strong:only-child),
body.page-cms #content li:only-child:has(> strong:first-child + ul:last-child) {
  margin: 0;
  list-style: none;
}

body.page-cms #content li:only-child > strong:only-child,
body.page-cms #content li:only-child > strong:first-child:has(+ ul:last-child),
body.page-cms #content :is(h2, h3) {
  display: block;
  color: var(--f24-dark);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.3;
}

body.page-cms #content :is(h2, h3) {
  margin: 1.5em 0 16px;
}

body.page-cms #content a {
  color: var(--f24-primary);
  text-decoration: none;
  text-underline-offset: 3px;
}

body.page-cms #content a:hover {
  text-decoration: underline;
}

body.page-cms #content a:focus-visible {
  outline: 2px solid var(--f24-primary);
  outline-offset: 3px;
  text-decoration: underline;
}

body.page-cms #content table {
  width: 100%;
  margin: 0 0 1em;
  border-collapse: collapse;
  table-layout: fixed;
}

body.page-cms #content :is(td, th) {
  padding: 8px;
  border: 1px solid var(--f24-border);
  vertical-align: top;
}

body.page-cms #content tr:nth-child(even) {
  background: var(--f24-bg-soft);
}

body.page-cms #content img {
  max-width: 100%;
  height: auto;
}

/* Imported download content starts with three spacer nodes. */
body.page-cms.cms-id-19 #content > p:first-child,
body.page-cms.cms-id-19 #content > div:not(:has(*)) {
  margin: 0;
  font-size: 0;
  line-height: 0;
}

body.page-cms.cms-id-19 #content div:has(+ ul) {
  margin: 0 0 20px;
  color: var(--f24-dark);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.3;
}

body.page-cms.cms-id-19 #content ul:has(a[href$=".pdf" i]) {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

body.page-cms.cms-id-19 #content li:has(a[href$=".pdf" i]) {
  position: relative;
  margin: 0;
  padding: 12px 16px;
  border: 1px solid var(--f24-border);
  border-radius: 6px;
  background: var(--f24-white);
  list-style: none;
}

body.page-cms.cms-id-19 #content li:has(a[href$=".pdf" i]):is(:hover, :focus-within) {
  border-color: var(--f24-primary);
  box-shadow: 0 2px 8px var(--f24-shadow);
}

body.page-cms.cms-id-19 #content li > span:has(> a[href$=".pdf" i]),
body.page-cms.cms-id-19 #content a[href$=".pdf" i]:has(> img) {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

body.page-cms.cms-id-19 #content li:has(a[href$=".pdf" i]) img {
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  object-fit: contain;
}

body.page-cms.cms-id-19 #content a[href$=".pdf" i] {
  min-width: 0;
  color: var(--f24-dark);
  font-size: 16px;
}

body.page-cms.cms-id-19 #content a[href$=".pdf" i]::after {
  position: absolute;
  inset: 0;
  border-radius: 6px;
  content: "";
}

body.page-cms.cms-id-19 #content a[href$=".pdf" i]:focus-visible::after {
  outline: 2px solid var(--f24-primary);
  outline-offset: 2px;
}

@media (max-width: 767px) {
  body.page-cms #content.page-content {
    padding: 24px 16px;
  }
}
