* { box-sizing: border-box; }

body {
  margin: 0;
  background: #f6f6f6;
  color: #202122;
  font-family: sans-serif;
  font-size: 14px;
  line-height: 1.6;
}

a { color: #0645ad; text-decoration: none; }
a:hover { text-decoration: underline; }
a:visited { color: #0b0080; }

#page { display: flex; min-height: 100vh; }

#sidebar {
  width: 176px;
  flex-shrink: 0;
  padding: 0 8px 20px 12px;
  font-size: 12.7px;
}
#logo { display: block; width: 160px; height: 160px; }
#logo img { max-width: 140px; max-height: 140px; margin: 10px 0 0 6px; }
#sidebar h3 {
  color: #54595d;
  font-size: 12px;
  font-weight: normal;
  margin: 12px 0 4px 0;
  padding-bottom: 2px;
  border-bottom: 1px solid #c8ccd1;
}
#sidebar ul { list-style: none; margin: 0; padding: 0; }
#sidebar li { padding: 3px 0; line-height: 1.2; }
#sidebar a.current { font-weight: bold; }
#sunwater img { width: 133px; height: 36px; margin-top: 30px; }

#main { flex: 1; min-width: 0; }
#topbar {
  height: 52px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 0 16px;
}
#topbar input {
  width: 240px;
  padding: 5px 8px;
  border: 1px solid #a2a9b1;
  border-radius: 2px;
}

#content {
  background: #fff;
  border: 1px solid #a7d7f9;
  border-right: 0;
  padding: 20px 24px 24px 24px;
  min-height: 70vh;
}

h1, h2 {
  font-family: 'Linux Libertine', Georgia, Times, serif;
  font-weight: normal;
  border-bottom: 1px solid #a2a9b1;
  margin: 1em 0 0.25em 0;
  line-height: 1.3;
}
h1 { font-size: 1.8em; }
h2 { font-size: 1.5em; }
h3 { font-size: 1.2em; font-family: Georgia, Times, serif; margin: 0.9em 0 0.2em 0; }
h4 { font-size: 1.05em; margin: 0.8em 0 0.2em 0; }
h2 a, h3 a, h2 a:visited, h3 a:visited { color: inherit; }
p { margin: 0.4em 0 0.6em 0; }
.record p, .question p, .breakout p { overflow-wrap: anywhere; }

h1.right-title { font-family: sans-serif; margin-top: 0; margin-bottom: 10px; border: 0; }

.hero-sections {
  background-color: #1c3c67;
  padding: 10px;
  color: white;
  line-height: 2;
}
.hero-sections a, .hero-sections a:link, .hero-sections a:visited {
  white-space: nowrap;
  color: white;
}
.hero-sections a.selflink {
  background-color: white;
  color: #1c3c67;
  font-weight: bold;
  padding: 6px 4px;
}

.hero-background-right {
  min-height: 200px;
  padding: 10px 30px 30px 30px;
  background-color: #1c3c67;
  color: white;
}
.hero-background-right h1 { color: white; font-weight: bold; border-bottom: none; font-family: sans-serif; }
.hero-background-right ul { margin: 0; padding: 0; list-style: none; }
.hero-background-right a, .hero-background-right a:visited { color: white; text-decoration: underline; }

.col-container { display: flex; gap: 10px; }
.col-container > div { width: 50%; }

.back-to-right { margin-bottom: 0.5em; }
.page-meta { color: #54595d; font-size: 0.9em; border-top: 1px solid #eaecf0; margin-top: 1.5em; padding-top: 0.5em; }

.edit-link, .editor-only { display: none; }
body.editor .edit-link { display: inline; font-size: 13px; font-family: sans-serif; }
body.editor .editor-only { display: block; }
body.editor .add-breakout { margin: 0.5em 0; }
h2.missing, h3.missing { color: #72777d; }

table.broadtable { border-collapse: collapse; width: 100%; margin: 1em 0; }
table.broadtable th, table.broadtable td {
  border: 1px solid #a2a9b1;
  padding: 4px 8px;
  vertical-align: top;
  text-align: left;
}
table.broadtable th { background: #eaecf0; }
table.broadtable td.contents { min-width: 40%; }
table.broadtable td.contents p:first-child { margin-top: 0; }
tr.hidden { display: none; }

.query-form { display: flex; gap: 1.5em; align-items: center; flex-wrap: wrap; background: #f8f9fa; border: 1px solid #c8ccd1; padding: 8px 12px; }
.query-form select { max-width: 320px; }
.breakout-links { line-height: 2; }

#timeline { width: 100%; margin: 10px 0 20px 0; }
#timeline .vis-item-content { font-size: 80%; padding: 2px; }
.timeline-tooltip h2, .timeline-tooltip h3 { font-size: 1em; margin: 0; border: 0; }
.loading-text { font-weight: bold; padding-left: 1em; }

#search-results li { margin-bottom: 0.8em; }
#search-results .snippet { color: #54595d; font-size: 0.92em; }
#search-results mark { background: #fef6e7; font-weight: bold; }

#footer { padding: 12px 24px; font-size: 12px; color: #54595d; }

@media (max-width: 720px) {
  #page { flex-direction: column; }
  #sidebar { width: auto; display: flex; flex-wrap: wrap; gap: 0 20px; align-items: flex-start; }
  #logo { width: 90px; height: 90px; }
  #logo img { max-width: 80px; max-height: 80px; }
  #sunwater { display: none; }
  #content { border-left: 0; padding: 12px; }
  .col-container { flex-direction: column; }
  .col-container > div { width: auto; }
  #topbar input { width: 100%; }
}
