/* Shared presentation for Marker PDF-to-HTML output. */
:root {
  color-scheme: light;
  font-family: ui-serif, Georgia, Cambria, "Times New Roman", serif;
  color: #1f2933;
  background: #f3f5f7;
  font-size: 18px;
  line-height: 1.7;
}

body {
  box-sizing: border-box;
  max-width: 58rem;
  margin: 2rem auto;
  padding: 3rem clamp(1.5rem, 6vw, 5rem);
  background: #fff;
  box-shadow: 0 0.5rem 2rem rgb(15 23 42 / 10%);
}

*,
*::before,
*::after {
  box-sizing: inherit;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 2.4rem 0 0.8rem;
  color: #102a43;
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.25;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.6rem; border-bottom: 1px solid #d9e2ec; padding-bottom: 0.35rem; }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.1rem; }

p,
ul,
ol,
blockquote,
table,
pre {
  margin: 0 0 1.2rem;
}

ul,
ol {
  padding-left: 1.5rem;
}

li + li {
  margin-top: 0.35rem;
}

a {
  color: #0b6e99;
  text-underline-offset: 0.15em;
  overflow-wrap: anywhere;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 1.5rem auto;
}

table {
  display: block;
  width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
  font-size: 0.9rem;
}

th,
td {
  border: 1px solid #bcccdc;
  padding: 0.55rem 0.7rem;
  text-align: left;
  vertical-align: top;
}

th {
  background: #f0f4f8;
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

blockquote {
  padding: 0.25rem 1rem;
  border-left: 0.25rem solid #9fb3c8;
  color: #486581;
}

pre,
code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

pre {
  overflow-x: auto;
  padding: 1rem;
  border-radius: 0.3rem;
  background: #f0f4f8;
}

sup,
sub {
  line-height: 0;
}

@media (max-width: 42rem) {
  :root { font-size: 16px; }
  body { margin: 0; padding: 1.5rem 1.25rem; box-shadow: none; }
  table { table-layout: fixed; }
  th, td { overflow-wrap: anywhere; }
  pre { white-space: pre-wrap; overflow-wrap: anywhere; }
  li { overflow-wrap: anywhere; }
}

@media print {
  :root { background: #fff; font-size: 11pt; }
  body { max-width: none; margin: 0; padding: 0; box-shadow: none; }
  a { color: inherit; text-decoration: none; }
}
