/* DeltaV Books Online — reader stylesheet */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
  --color-text:    #1a1a1a;
  --color-muted:   #555;
  --color-link:    #1a4a9a;
  --color-border:  #dde1e7;
  --color-bg:      #ffffff;
  --color-code-bg: #f4f5f7;
  --color-note:    #e8f0fe;
  --color-warn:    #fff8e1;
  --color-caution: #fce8e6;
  --max-width: 860px;
}

/* ── Reset & base ── */
*, *::before, *::after { box-sizing: border-box; }

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 0.9375rem;   /* 15px */
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-bg);
  margin: 0;
  padding: 28px 40px 60px;
  max-width: var(--max-width);
}

/* ── Headings ── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-body);
  font-weight: 600;
  line-height: 1.3;
  margin: 1.6em 0 0.5em;
  color: var(--color-text);
}
h1.topictitle1, h1 { font-size: 1.5rem;  margin-top: 0; }
h2                  { font-size: 1.2rem;  border-bottom: 1px solid var(--color-border); padding-bottom: 0.25em; }
h3                  { font-size: 1.05rem; }
h4, h5, h6          { font-size: 0.95rem; }

/* ── Paragraphs & spacing ── */
p, div.p { margin: 0.7em 0; }

/* ── Links ── */
a { color: var(--color-link); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Lists ── */
ul, ol { padding-left: 1.6em; margin: 0.6em 0; }
li { margin: 0.25em 0; }
ul ul, ol ol, ul ol, ol ul { margin: 0.2em 0; }

/* ── Tables ── */
table {
  border-collapse: collapse;
  width: 100%;
  margin: 1em 0;
  font-size: 0.9em;
}
th {
  background: #f0f4f8;
  font-weight: 600;
  text-align: left;
  padding: 7px 12px;
  border: 1px solid var(--color-border);
}
td {
  padding: 6px 12px;
  border: 1px solid var(--color-border);
  vertical-align: top;
}
tr:nth-child(even) td { background: #fafbfc; }

/* ── Code & pre ── */
code, kbd, samp, tt {
  font-family: var(--font-mono);
  font-size: 0.875em;
  background: var(--color-code-bg);
  padding: 0.1em 0.35em;
  border-radius: 3px;
  border: 1px solid #e0e3e8;
}
pre {
  font-family: var(--font-mono);
  font-size: 0.85em;
  background: var(--color-code-bg);
  border: 1px solid var(--color-border);
  border-radius: 5px;
  padding: 14px 16px;
  overflow-x: auto;
  line-height: 1.55;
  margin: 1em 0;
}
pre code { background: none; border: none; padding: 0; font-size: inherit; }

/* ── Images ── */
img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0.8em 0;
}

/* ── Notes / callouts (DITA patterns) ── */
div.note, div.tip, div.important, div.warning, div.caution,
.note, .tip, .important, .attention {
  border-left: 4px solid #2b5797;
  background: var(--color-note);
  padding: 10px 14px;
  margin: 1em 0;
  border-radius: 0 4px 4px 0;
  font-size: 0.9em;
}
div.warning, div.caution, .warning, .caution {
  border-left-color: #c62828;
  background: var(--color-caution);
}
div.tip, .tip {
  border-left-color: #2e7d32;
  background: #e8f5e9;
}
div.important, .important, div.attention, .attention {
  border-left-color: #e65100;
  background: var(--color-warn);
}
.notelisttitle, .notetitle {
  font-weight: 600;
  margin-bottom: 4px;
}

/* ── Steps / procedures ── */
ol.steps > li, ol.substeps > li { margin: 0.5em 0; }
div.step_element { margin: 0.5em 0; }

/* ── Definition lists ── */
dl { margin: 0.6em 0; }
dt { font-weight: 600; margin-top: 0.6em; }
dd { margin-left: 1.5em; margin-top: 0.2em; }

/* ── Horizontal rules ── */
hr { border: none; border-top: 1px solid var(--color-border); margin: 1.5em 0; }

/* ── Copyright / footer ── */
.copyright, div.copyright { font-size: 0.8em; color: var(--color-muted); margin-top: 2em; }

/* ── Suppress the old font stacks from emerson.css ── */
body, p, td, li, div {
  font-family: var(--font-body) !important;
}
pre, code, tt, kbd, samp {
  font-family: var(--font-mono) !important;
}
