:root {
  --hobbs-text: #111;
  --hobbs-muted: #555;
  --hobbs-rule: #ccc;
  --hobbs-soft: #f5f5f5;
  --hobbs-link: #0000cc;
}

html,
body {
  background: #fff;
}

body {
  color: var(--hobbs-text);
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 14px;
  line-height: 1.5;
}

/* Sidebar */

#quarto-sidebar {
  background: #fff !important;
  border-right: 1px solid var(--hobbs-rule) !important;
  font-family: Arial, Helvetica, sans-serif;
}

.sidebar-title {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  font-weight: bold;
  letter-spacing: 0;
}

.sidebar-item-text,
.sidebar-link {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  line-height: 1.3;
}

.sidebar-item-section > .sidebar-item-container .sidebar-item-text {
  font-weight: bold;
}

.sidebar-navigation a {
  color: #333;
  text-decoration: none;
}

.sidebar-navigation a:hover {
  color: #000;
  text-decoration: underline;
}

.sidebar-navigation .active {
  color: #000 !important;
  font-weight: bold;
}

/* Main content */

#quarto-content {
  max-width: 1000px;
}

main.content {
  max-width: 800px;
}

.quarto-title-block {
  margin-bottom: 1rem;
}

/* Titles and headings */

.quarto-title h1,
h1,
h2,
h3,
h4 {
  font-family: Georgia, "Times New Roman", Times, serif;
  letter-spacing: 0;
}

.quarto-title h1,
h1 {
  font-size: 1.8rem;
  font-weight: bold;
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

h2 {
  margin-top: 1.8rem;
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
  font-weight: bold;
}

h3 {
  margin-top: 1.4rem;
  margin-bottom: 0.4rem;
  font-size: 1rem;
  font-weight: bold;
}

h4 {
  margin-top: 1.2rem;
  margin-bottom: 0.3rem;
  font-size: 0.95rem;
  font-weight: bold;
}

/* Text */

p {
  margin-top: 0.6rem;
  margin-bottom: 0.6rem;
}

p,
li {
  max-width: 82ch;
}

ul,
ol {
  margin-top: 0.4rem;
  margin-bottom: 0.6rem;
  padding-left: 1.5rem;
}

/* Links */

a {
  color: var(--hobbs-link);
  text-decoration: underline;
}

a:hover {
  color: #000099;
}

/* Code */

pre,
code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

pre {
  background: var(--hobbs-soft) !important;
  border: 1px solid var(--hobbs-rule) !important;
  border-radius: 0 !important;
  padding: 0.7rem 0.8rem !important;
  margin-top: 0.8rem;
  margin-bottom: 0.8rem;
}

code {
  font-size: 0.9em;
}

p code,
li code,
td code {
  background: transparent;
  padding: 0;
  border-radius: 0;
}

/* Tables */

.table {
  font-size: 13px;
}

.table > :not(caption) > * > * {
  border-bottom-color: var(--hobbs-rule);
}

table {
  margin-top: 0.8rem;
  margin-bottom: 1rem;
}

/* Blockquotes */

blockquote {
  margin: 0.8rem 0;
  padding-left: 0.8rem;
  border-left: 2px solid var(--hobbs-rule);
  color: var(--hobbs-muted);
}

/* Callouts */

.callout {
  border-radius: 0 !important;
  border-color: var(--hobbs-rule) !important;
  box-shadow: none !important;
}

/* Tabsets */

.panel-tabset .nav-tabs {
  border-bottom: 1px solid var(--hobbs-rule);
}

.panel-tabset .nav-link {
  font-family: Arial, Helvetica, sans-serif;
  color: #333;
  border-radius: 0;
  font-size: 13px;
}

.panel-tabset .nav-link.active {
  color: #000;
  font-weight: bold;
}

/* Paper embed */

.paper-frame {
  width: 100%;
  min-height: 1050px;
  border: 1px solid var(--hobbs-rule);
}

/* Model figures */

.model-diagram {
  max-width: 100%;
  margin: 1rem 0;
  border: 0;
}

/* Utility classes */

.small-muted {
  color: var(--hobbs-muted);
  font-size: 12px;
}

.home-links {
  margin: 0.8rem 0 1.2rem;
  word-spacing: normal;
}

/* Horizontal rules */

hr {
  border: 0;
  border-top: 1px solid var(--hobbs-rule);
  margin: 1.4rem 0;
}

/* Page navigation */

.page-navigation {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  border-top: 1px solid var(--hobbs-rule);
  margin-top: 1.5rem;
  padding-top: 0.8rem;
}

/* Search */

.aa-DetachedSearchButton,
.aa-Form {
  font-family: Arial, Helvetica, sans-serif;
  border-radius: 0 !important;
  box-shadow: none !important;
}

/* Mobile */

@media (max-width: 767px) {
  body {
    font-size: 14px;
  }

  main.content {
    max-width: 100%;
  }

  .quarto-title h1 {
    font-size: 1.6rem;
  }

  h2 {
    font-size: 1.15rem;
  }

  .paper-frame {
    min-height: 720px;
  }
}
