/* Prevent Pygments/SuperFences containers from overlapping floated sidebars */
.highlight, 
div.highlight,
.highlight pre {
    overflow: hidden; /* Creates BFC; prevents content from bleeding into floated elements */
    display: flow-root; /* Modern alternative that maintains proper margin collapsing */
}
.sidebar {
    color: #5b3a8e;
	background-image: url(assets/2006.pale.jpg);
    width: 280px;
    float: right;
    padding: 0;
    margin: 0;
    margin-left: 14px;
    z-index: 15;
}
.sidebar ul {
    margin-top: 0px;
}
.sidebar li {
    font-size: .8em;
    line-height: 120%;
    padding: 10px 4px;
}
.sidebar:before, .sidebar:after {
    content: "Sidebar!";
    display: block;
    background-color: #7A8A9A;
    color: #EFF9ED;
    text-align: center;
    margin: 0;
    padding: 4px;
    font-size: .9em;
}
.sidebar h2 {
    color: #555;
    font-size: 1.0em;
    border-bottom: solid 4px #CCC;
    margin: 0;
    padding: 10px;
}
.sidebar h3 {
    color: #555;
    font-size: 1.0em;
    border-bottom: solid 4px #CCC;
    margin: 0;
    padding: 10px;
}
.sidebar p {
    font-size: .8em;
    margin: 5px;
    padding: 10px;
}
.sidebar blockquote {
    background-color: #FFFFFF;
    color: #666666;
    font-size: .8em;
    width: auto;
    margin: 0px 14px;
}
.sidebar pre {
    border: none;
    background-color: #E6EDF3;
    color: #334465;
    font-weight: normal;
    font-size: .8em;
    margin: 5px;
    padding: 0px;
    line-height: 120%;
}

/* Responsive adjustments for mobile devices */
@media screen and (max-width: 768px) {
  .sidebar {
    float: none;
    width: 100%;
    margin-left: 0;
    margin-bottom: 20px;
    box-sizing: border-box;
    cursor: pointer; /* Indicates it can be clicked */
  }

  /* Hide all content inside the sidebar by default on mobile */
  .sidebar > *:not(:first-child) {
    display: none;
  }

  /* Reveal content when the "active" class is applied via JavaScript */
  .sidebar.active > * {
    display: block !important;
  }

  /* Visual indicator that it can expand (adds an arrow to the top banner) */
  .sidebar:before {
    content: "Sidebar! ▾" !important;
  }
  
  .sidebar.active:before {
    content: "Sidebar! ▴" !important;
  }
}