/* Academic theme layered over the original jemdoc styles. */
:root {
  --ink: #34404a;
  --muted: #64717c;
  --accent: #245775;
  --line: #e3e7e9;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --serif: Charter, "Bitstream Charter", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
}
* { box-sizing: border-box; }
html { background: #f6f7f8; }
body {
  margin: 0;
  padding: 0;
  color: var(--ink);
  background: transparent;
  font-family: var(--sans);
  font-size: 15.5px;
  line-height: 1.75;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
table#tlayout {
  display: block;
  width: min(1120px, calc(100% - 64px));
  margin: 48px auto 64px;
  border: 1px solid var(--line);
  border-top: 2px solid var(--accent);
  border-radius: 2px;
  box-shadow: 0 6px 32px rgba(25, 45, 60, .035);
  background: #fff;
}
#tlayout > tbody { display: block; }
#tlayout > tbody > tr { display: grid; grid-template-columns: 210px minmax(0, 1fr); }
#layout-menu {
  display: block;
  width: auto;
  padding: 38px 22px;
  border: 0;
  border-right: 1px solid var(--line);
  background: #fbfcfc;
  font-family: var(--sans);
  font-size: 14px;
  white-space: normal;
}
div.menu-category {
  margin: 0 0 25px;
  padding: 0 8px 20px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -.4px;
}
div.menu-item { margin: 4px 0; padding: 0; text-indent: 0; }
#layout-menu a {
  display: block;
  margin: 0;
  padding: 8px 12px;
  border-radius: 3px;
  line-height: 1.5;
}
#layout-menu a:link, #layout-menu a:visited { color: #526273; }
#layout-menu a.current:link, #layout-menu a.current:visited {
  color: #194969;
  background: #edf2f5;
  box-shadow: inset 2px 0 var(--accent);
  border: 0;
  font-weight: 600;
}
#layout-menu a:hover { background: #eef2f6; border: 0; color: #194969; }
#layout-content {
  display: block;
  min-width: 0;
  width: auto;
  padding: 42px 48px 56px;
  border: 0;
}
div#toptitle { margin: 0 0 30px; padding: 0 0 20px; border-bottom: 1px solid var(--line); }
div#toptitle h1, #layout-content div#toptitle h1 {
  margin: 0;
  padding: 0;
  color: #1e3549;
  font-family: var(--serif);
  font-size: 38px;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -.7px;
}
h2, h3 {
  color: #243e54;
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -.25px;
}
h2 { margin: 34px 0 16px; padding: 0 0 8px; border-bottom: 1px solid var(--line); font-size: 23px; line-height: 1.4; }
h3 { font-size: 17px; }
div#toptitle + h2, div#toptitle + h3 { margin-top: 0; }
p { margin: 0 0 16px; line-height: 1.75; }
a, a > tt { color: var(--accent); text-decoration: none; overflow-wrap: anywhere; }
a:hover { color: #123f60; border-bottom: 0; text-decoration: underline; text-underline-offset: 3px; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
b, strong { font-weight: 600; }
ul, ol { margin: 10px 0 22px; padding-left: 22px; }
p + ul, p + ol { margin-top: 0; }
li { padding-left: 4px; margin-bottom: 15px; }
li::marker { color: #8295a5; font-size: .8em; }
li p { margin: 0; }
table.imgtable { width: 100%; margin: 0 0 28px; border: 0; }
table.imgtable td { padding: 0; vertical-align: middle; }
table.imgtable td:first-child { width: 156px; padding-right: 25px; }
table.imgtable img { display: block; width: 131px; height: auto; border-radius: 3px; border: 1px solid rgba(25, 45, 60, .08); }
table.imgtable p { margin: 0; color: #52606c; font-size: 14px; line-height: 1.9; }
table.imgtable p > b:first-child { display: inline-block; margin-bottom: 5px; font-family: var(--serif); font-size: 24px; font-weight: 600; color: #1e3549; }
div#subtitle { margin-top: 12px; color: var(--muted); font-size: 15px; }
@media (max-width: 800px) {
  table#tlayout { width: calc(100% - 32px); margin: 20px auto; }
  #tlayout > tbody > tr { grid-template-columns: 170px minmax(0, 1fr); }
  #layout-menu { padding: 28px 14px; }
  #layout-content { padding: 28px; }
  table.imgtable td:first-child { width: 125px; padding-right: 20px; }
  table.imgtable img { width: 105px; }
}
@media (max-width: 600px) {
  body { font-size: 15px; }
  table#tlayout { width: 100%; margin: 0; border-left: 0; border-right: 0; border-bottom: 0; }
  #tlayout > tbody > tr { display: block; }
  #layout-menu { padding: 20px 20px 14px; border-right: 0; border-bottom: 1px solid var(--line); }
  div.menu-category { margin: 0 0 12px; padding: 0; border: 0; }
  div.menu-item { display: inline-block; margin: 2px 2px 2px 0; }
  #layout-menu a { padding: 6px 9px; font-size: 13px; }
  #layout-content { padding: 28px 22px 40px; }
  div#toptitle h1, #layout-content div#toptitle h1 { font-size: 29px; }
  table.imgtable p { font-size: 13px; }
  table.imgtable td:first-child { width: 110px; padding-right: 16px; }
  table.imgtable img { width: 94px; }
}
@media (max-width: 360px) {
  table.imgtable td { display: block; }
  table.imgtable td:first-child { width: auto; padding: 0 0 16px; }
}
@media print {
  html, body { background: white; }
  table#tlayout { width: 100%; margin: 0; border: 0; box-shadow: none; }
  #tlayout > tbody > tr { display: block; }
  #layout-menu { display: none; }
  #layout-content { padding: 0; }
  a { color: inherit; }
}
