
@import url("https://fonts.googleapis.com/css?family=PT+Serif:400,700,400italic,700italic|Open+Sans:400italic,700italic,400,700");

body {
    font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
}

a {
    color: inherit;
    text-decoration: none;
}

/* CSS defult values:
https://www.w3schools.com/cssref/css_default_values.asp
*/

/* the default margin for pre is "1em 0", so we over-ride
so that we can set our own later */
.mathbook-content pre {
    margin: 0;
    padding: 0;
    border: none;
}

/* p and other block-level elements should have space at the top, and not the bottom */
.mathbook-content h1, .mathbook-content h2, .mathbook-content h3, .mathbook-content h4, .mathbook-content h5, .mathbook-content h6 {
    margin: 0;
}
.mathbook-content p {
    margin-top: 1.25em;
    margin-bottom: 0;
    line-height: 1.35;
}
.mathbook-content td > p:first-child {
    margin-top: 0;
}
.mathbook-content p.intertext {
    margin-top: -0.25em;
    text-indent: 0;
}

.mathbook-content ol, .mathbook-content ul {
    margin-bottom: 0;
}
.mathbook-content li {
    margin-bottom: 0;
}
.mathbook-content figure {
    margin-bottom: 0;
}


.mathbook-content .heading {
    margin-top: 0;
    margin-bottom: 0;
}

.mathbook-content section article {
    margin-top: 1.25em;
}
.mathbook-content section article + article,
.mathbook-content section .posterior + article {
    margin-top: 1.75em;
}
.mathbook-content article + .hidden-knowl-wrapper {
    margin-top: 1em;
}
.mathbook-content article + .posterior {
    margin-top: 0.5em;
}
.mathbook-content section .proof {
    margin-top: 0.75em;
}
.mathbook-content .sagecell {
    margin-top: 1.25em;
}

.mathbook-content section > pre, .mathbook-content p + pre {
    margin-top: 1.25em;
}

.mathbook-content .conclusion {
    margin-top: 1em;
}
.mathbook-content .conclusion > p:first-child {
    margin-top: 0.5em;
}

.mathbook-content ol, .mathbook-content ul {
    margin-top: 0.75em;
}
.mathbook-content dl {
    margin-top: 1em;
}
.mathbook-content li {
    margin-top: 0.5em;
}
.mathbook-content li > p:first-child {
    margin-top: 0;
}
.mathbook-content article p:first-child {
    margin-top: 0;
}

.mathbook-content ol ol, .mathbook-content ol ul,  .mathbook-content ul ol, .mathbook-content ul ul {
    margin-top: 0.5em;
}

.mathbook-content ol p + p, .mathbook-content ul p + p {
    margin-top: 1em;
}

.mathbook-content dl dt, .mathbook-content dl dd {
    margin-top: 1.5em;
}
.mathbook-content dl dd p {
    margin-top: 1em;
}
.mathbook-content dl dt > p:first-child, .mathbook-content dl dd > p:first-child {
    margin-top: 0;
}

.mathbook-content dl dt:first-of-type, .mathbook-content dl dd:first-of-type {
    margin-top: 0;
}

.mathbook-content .frontmatter > .heading {
    display: block;
    text-align: center;
}
.mathbook-content .frontmatter > .heading .title, .mathbook-content .book > .heading .title {
    font-size: 1.3em;
}
.mathbook-content .frontmatter > .heading .subtitle, .mathbook-content .book > .heading .subtitle {
    display: block;
    font-weight: normal;
    color: #666666;
    font-size: 0.875em;
    line-height: 1.42857em;
    margin-top: 0.35714em;
}

.mathbook-content .frontmatter .author:first-of-type {
    margin-top: 4em;
}
.mathbook-content .frontmatter > p:first-of-type {
    margin-top: 4em;
}
.mathbook-content .frontmatter > .author,
.mathbook-content .frontmatter > .credit {
    margin-top: 2em;
    text-align: center;
}
.mathbook-content .frontmatter .date {
    display: block;
    margin-top: 2em;
    text-align: center;
}
.mathbook-content .frontmatter .credit .title {
    font-size: 1em;
}
.mathbook-content .frontmatter .credit .author {
    font-size: 0.9em;
}
.mathbook-content .frontmatter .author-info {
    font-size: 90%;
}
.mathbook-content .frontmatter a[href^="mailto:"] {
    font-size: 110%;
}
.mathbook-content a[href^="mailto:"] {
    font-style: normal;
    font-family: monospace;
}
/* look into where .preface and .frontmatter are used */
.mathbook-content .preface a[href^="mailto:"] {
    font-size: 110%;
}


.mathbook-content article > .heading + p {
    margin-top: 0;
}
/* go back and delete the header case when no longer needed */
.mathbook-content section .heading + p, .mathbook-content section header + p,
.mathbook-content section .heading + .introduction > p:first-child,
.mathbook-content section .blob > p:first-child,
.mathbook-content section .permalink + p {
    margin-top: 0.25em;
}
.mathbook-content section .heading + article, .mathbook-content section header + article {
    margin-top: 1em;
}

.mathbook-content a > .heading { display: inline;}

.mathbook-content section .heading,
.mathbook-content article .heading {
    font-family: "PT Serif", "Times New Roman", Times, serif;
    font-weight: 700;
    color: inherit;
}
/*
.mathbook-content a article .heading {
    font-weight: 500;
}
*/

.mathbook-content section > .heading {
    font-size: 1.75em;
    line-height: 1.42857em;
    margin-top: 1em;
}
.mathbook-content section section > .heading {
    font-size: 1.5em;
    line-height: 1.25em;
    margin-top: 1em;
}
.mathbook-content section section section > .heading {
    font-size: 1.40em;
    line-height: 1.15em;
    margin-top: 0.75em;
}

.mathbook-content section article > .heading,
.mathbook-content section section article > .heading,
.mathbook-content section article > a .heading,
.mathbook-content section section article > a .heading,
.mathbook-content .abstract > .heading {
    font-size: 1.125em;
    line-height: 1.125em;
    margin-top: 0;
    display: inline;
}
/* Currently only for Solution to example */
.mathbook-content .posterior .heading {
    font-weight: normal;
    font-size: 1.125em;
    line-height: 1.125em;
    margin-top: 0;
}
/* trmporary: heading is not type */
.mathbook-content section figcaption .heading, .mathbook-content section section figcaption .heading {
    font-size: 1.125em;
    line-height: 1.125em;
    margin-top: 0;
}

.mathbook-content .heading.hide-type > .type {
    display: none;
}

.mathbook-content .heading > .type + .codenumber::before {
    content: " ";
}
.mathbook-content section .heading > .codenumber:not(:empty) + .title::before {
    content: " \2009";
}


/*
 * Contents of articles
 */
.mathbook-content section article .heading + p {
    display: inline;
}
/*
.mathbook-content section article .heading + p .mjx-chtml,
.mathbook-content section article .heading + p .mjx-math {
    display: inline !important;
}
*/
.mathbook-content section article.assemblage-like .heading + p {
    display: block;
}
.mathbook-content section article.theorem-like p,
.mathbook-content section article.theorem-like li {
    font-style: italic;
}

/*
 *  .hiddenproof
 */

/* knowlified proofs are in an article.hiddenproof */
/* .mathbook-content .hiddenproof .heading,   ???? can't happen, because the a does the hiding? */
.mathbook-content .hiddenproof > a > .heading {
    font-style: italic;
    font-weight: normal;
}
.mathbook-content .hiddenproof > a > .heading > .type::after {
    content: ".";
}
/*
.mathbook-content .hiddenproof > a > .heading:after {
    content: ".";
}
*/

/*
  main knowls style
*/

/*
[knowl], [knowl]:hover, [knowl].active {
*/
[knowl] {
    display: inline;
    position: relative;
    cursor: pointer;
    color: #9c2310;
    padding: 0px 2px 0px 2px;
    margin: 0;
    text-decoration: none;
    margin-bottom: 1px;
/*
    margin-bottom: 0;
*/
    font-weight: 500;
    white-space: nowrap;
    border-bottom: none;
    -moz-border-radius-topleft: 3px;
    -webkit-border-top-left-radius: 3px;
    border-top-left-radius: 3px;
    -moz-border-radius-topright: 3px;
    -webkit-border-top-right-radius: 3px;
    border-top-right-radius: 3px;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
    -webkit-transition-property: background-color;
    -moz-transition-property: background-color;
    -o-transition-property: background-color;
    transition-property: background-color;
    -webkit-transition-duration: 0ms;
    -moz-transition-duration: 0ms;
    -o-transition-duration: 0ms;
    transition-duration: 0ms;
}

[knowl]:hover, [knowl]:active, [knowl].active {
    color: #8a1200;
    background: #ffedeb;
/*
    margin-bottom: 0;
*/
    border-bottom: none;
}

[knowl]::after, [knowl]:hover::after, [knowl].active::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 1px;
    right: 2.4px;
    left: 2.4px;
    border-bottom: 1px dotted #9c2310;
    -webkit-transition-property: left, right;
    -moz-transition-property: left, right;
    -o-transition-property: left, right;
    transition-property: left, right;
    -webkit-transition-duration: 0ms;
    -moz-transition-duration: 0ms;
    -o-transition-duration: 0ms;
    transition-duration: 0ms;
    z-index: 0;
}

.knowl-error {
   color: red;
   border-bottom: 0;
}
.knowl-output {
    background: #f5f5ff;
    border-top: 10px solid #ddf;
    border-left: 10px solid #ddf;
    border-right: 10px solid #ddf;
    border-bottom: 10px solid #ddf;
    border-top-left-radius: 10px;
    -moz-border-radius-topleft: 10px;
    border-bottom-left-radius: 10px;
    -moz-border-radius-bottomleft: 10px;
    border-bottom-right-radius: 10px;
    -moz-border-radius-bottomright: 10px;
    border-top-right-radius: 10px;
    -moz-border-radius-topright: 10px;
    display: none;
    display: none;
    padding: 0px;
    margin-top: 10px;
/*
    margin-bottom: 0px;
*/
    margin-right: 0px;

}
.knowl-output .knowl-output, .knowl-output .knowl-output.loading {
    margin-left: 0;
    margin-right: 0;
}
.knowl-output .knowl-output {
    border-width: 6px;
    background: #fffff5;
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    -ms-border-radius: 4px;
    -o-border-radius: 4px;
    border-radius: 4px;
    margin-bottom: -3px;
    margin-left: -7px;
    margin-right: -7px;
}
.knowl-output .knowl-output .knowl-output {
    background: #fff5fe;
    margin-bottom: 2px;
    margin-left: 2px;
    margin-right: 2px;
}
.knowl-output .knowl-output .knowl-output .knowl-output {
    background: #ffffff;
}
.knowl-footer {
  position: relative;
  bottom: -9px;
  font-size: x-small;
  background: #ddf;
  color: grey;
  padding: 0 0 0 12px;
  margin:  -10px 0 0 0;
}
.knowl-footer a {
  color: #006;
}
.knowl-footer a:hover {
  background: none;
  color: #88f;
}
.knowl-footer:after {
    content: "\2002";
}

.knowl-output .knowl-output .knowl-footer {
  bottom: -5px;
  margin:  -5px 0 0 0;
}

.knowl-output + .knowl-output {
    margin-top: 0;
}
.knowl-content {
    padding: 10px;
    padding-bottom: 7px;
}
.knowl-content > *:first-child {
    margin-top: 0;
}

/* this needs to be first, because we want any background to
   over-rule this.
   this is for the "layering" of asides and other
*/

.mathbook-content p {
    background-color: #fff; 
/*    
    box-shadow: 0 0 0.5em 0.2em #fff;
    put this back after the major CSS refactor
*/
}
.mathbook-content .heading {
    background-color: #fff; 
}
.mathbook-content section > pre, .mathbook-content p + pre {
    background-color: #fff; 
}

/* un-do the above for environments with colored background */
.mathbook-content .assemblage-like p,
.mathbook-content .assemblage-like .heading,
.mathbook-content .assemblage-like pre,
.mathbook-content .aside-like p,
.mathbook-content .aside-like .heading,
.mathbook-content .aside-like pre,
.mathbook-content .knowl-output p, 
.mathbook-content .knowl-output .heading,
.mathbook-content .knowl-output pre,
.mathbook-content *[knowl] p,
.mathbook-content *[knowl] .heading,
.mathbook-content *[knowl] pre {
    background-color: inherit; 
    box-shadow: none;
}

/* end of layering colors */

/*
Greg's L

The not(:first-child) is primarily for the case of a knowl that
contains only a theorem or definition.

In good writing, can a section start with a Theorem?
(apparently I think not)

*/

.mathbook-content .proof > .heading {
  font-style: italic;
  font-weight: normal;
  /* It helps to have a little bit of extra space after proof */
  margin-right: 0.75em;
}

/* 
supplied by the general .type:after for headings
.mathbook-content .proof > .heading:after {
  content: ". ";
}
*/

.mathbook-content .proof {
  border-right: 1px solid #666;
  padding-right: 0.625em;
  margin-right: -0.725em;
}
.mathbook-content .proof:after {
  content: '';
  border-bottom: 1px solid #666;
  display: block;
  margin-left: auto;
  margin-right: -0.625em;
  /* so the corner of the L meets */
  width: 1.5em;
  padding-bottom: 0.25em;
}

.mathbook-content .proof .proof {
  margin-right: -0.2em;
  border-right: 1.5px solid #ddd;
}
.mathbook-content .proof .proof:after {
  border-bottom: 1.5px solid #ddd;
  width: 1em;
}

.mathbook-content article.theorem-like:not(:first-child),
.mathbook-content article.definition-like:not(:first-child),
.mathbook-content article.example-like:not(:first-child),
.mathbook-content article.objectives:not(:first-child),
.mathbook-content article.remark-like:not(:first-child) {
    padding-left: 0.4em;
    border-left: 1px solid #569;
}

.mathbook-content article.theorem-like:not(:first-child)::after,
.mathbook-content article.definition-like:not(:first-child)::after,
.mathbook-content article.objectives:not(:first-child)::after,
.mathbook-content article.example-like:not(:first-child)::after,
.mathbook-content article.remark-like:not(:first-child)::after {
    content:'';
    border-bottom: 1px solid #569;
    display: block;
    margin-right: auto;
    margin-left: -0.4em;
    padding-top: 0.25em;
    width: 1.5em;
}




.mathbook-content section p.credit + p.credit {
    margin-top: 0.25em;
}
.mathbook-content section p.credit > .title {
    font-weight: 700;
    margin-right: 0.5em;
}
.mathbook-content section p.credit > .title::after {
    content: ": ";
}

.mathbook-content section p.copyright {
    margin-top: 2.5em;
}
.mathbook-content section p.license {
    margin-top: 2.5em;
}

body > a.assistive {
	padding:6px;
	position: absolute;
	top:-40px;
	left:0px;
	color:white;
	border-right:1px solid white;
	border-bottom:1px solid white;
	border-bottom-right-radius:8px;
	background:transparent;
	-webkit-transition: top 1s ease-out, background 1s linear;
    transition: top 1s ease-out, background 1s linear;
    z-index: 100;
}

body > a.assistive:focus {
	position:absolute;
	left:0px;
	top:0px;
	background:#BF1722;
	outline:0;	
	-webkit-transition: top .1s ease-in, background .5s linear;
    transition: top .1s ease-in, background .5s linear;
}


#masthead .banner {
    border-bottom: 1px solid #d4d4d4;
    border-top: 1px solid transparent;
    overflow: hidden;
    padding-top: 0.625em;
    padding-bottom: 1.125em;
}

/* newer, small top nav buttons */
#masthead.smallbuttons #primary-navbar .navbar-top-buttons .toolbar-align-right .toolbar-item-middle {
    float: left;
    padding: 3px 6px 3px 6px;
    margin: 4px 10px 0px 10px;
    margin: 4px 10px 0px 195px;
    border: 1px solid #800;
    background-color: #ffe5e5;
    font-size: 90%;
}

#masthead.smallbuttons #primary-navbar .navbar-top-buttons .toolbar-align-right .toolbar-item-middle a {
    color: #024;
}

#masthead.smallbuttons {
    max-width: 904px;
    border-right: 1px solid #bababa;
}

/*
 * .navbar #primary-navbar {
 *     background: #fafafa;
 *         border-bottom: none;
 *         }
 *         */
#masthead.smallbuttons #primary-navbar .navbar-top-buttons {
    border-bottom: 1px solid #bababa;
}
#masthead.smallbuttons .banner {
    border-bottom: none;
}

#masthead.smallbuttons #primary-navbar .navbar-top-buttons .toolbar-divisor-3 .button {
    border-top: 1px solid #bababa;
}

#masthead.smallbuttons #primary-navbar .navbar-top-buttons .toolbar-divisor-3 {
    background-color: #fafafa;
}
#masthead.smallbuttons #primary-navbar .navbar-top-buttons .toolbar-divisor-3 .index-button {
    width: 70px;
    text-align: center;
    border-right: 1px solid #bababa;
}
#masthead.smallbuttons #primary-navbar .navbar-top-buttons .toolbar-divisor-3 .up-button {
    width: 60px;
    float: right;
    border-right: 1px solid #bababa;
}
#masthead.smallbuttons #primary-navbar .navbar-top-buttons .toolbar-divisor-3 .up-button:before {
    text-align: left;
    width: 20px;
}
#masthead.smallbuttons #primary-navbar .navbar-top-buttons .toolbar-divisor-3 .previous-button.toolbar-item {
    width: 70px;
    border-right: none;
    float: right;
}
/* extra .toolbar-item to overrive mathbook-add-on */
#masthead.smallbuttons #primary-navbar .navbar-top-buttons .toolbar-divisor-3 .previous-button.toolbar-item {
    border-left: 1px solid #bababa;
    padding-right: 3px;
}
#masthead.smallbuttons #primary-navbar .navbar-top-buttons .toolbar-divisor-3 .next-button {
    width: 70px;
    float: right;
    border-right: 1px solid #bababa;
}
#masthead.smallbuttons #primary-navbar .previous-button::before {
    width: 27px;
}
#masthead.smallbuttons #primary-navbar .next-button::after {
    width: 25px;
}

#masthead.smallbuttons #primary-navbar .threebuttons {
    float: right;
}

#masthead.smallbuttons #primary-navbar .navbar-top-buttons .toolbar-divisor-3 .threebuttons .next-button, #masthead.smallbuttons #primary-navbar .navbar-top-buttons .toolbar-divisor-3 .threebuttons .up-button, #masthead.smallbuttons #primary-navbar .navbar-top-buttons .toolbar-divisor-3 .threebuttons .previous-button {
    float: left;
}

.collectedworks .knowl-output {
    border: 12px 
    solid #D6E3FF;
    background: none repeat scroll 0% 0% #FAFCFF;
    border-radius: 4px;
    margin-bottom: 1.25em;
}

.collectedworks .subjectwork {
    max-width: 750px;
}

.collectedworks .bib {
    margin-bottom: 1em;
}

.collectedworks .bibitem + .bibentry {
    display: inline;
}

.collectedworks .bibitem {
    display: inline;
    font-weight: bold;
    margin-right: 1em;
}
.collectedworks .work .title a {
    text-decoration: none;
    color: #009;
}
.collectedworks .work .title {
}

/* see http://mathbook.pugetsound.edu/examples/sample-book/html/references-1.html */
.mathbook-content .bibitem + .bibentry {
    display: inline-block;
    width: 90%;
}
.mathbook-content .bibitem {
    display: inline-block;
    vertical-align: top;
    width: 7%;
    margin-right: 0;
}
/*
.mathbook-content .bibitem {
    float: left;
}
.mathbook-content .bibitem {
    clear: left;
}
*/

#primary-navbar .navbar-top-buttons .toolbar-align-right .toolbar-item {
   /* for the prev/next svg from SL2X */
    margin-top: -8px;
    border-left: 0;
}

#primary-navbar .navbar-top-buttons .toolbar-align-right {
   /* also for the prev/next svg from SL2X */
    border-right: 0;
}

#primary-navbar .navbar-top-buttons .toolbar-align-right .toolbar-item-left {
    float: left;
    padding: 3px 6px 3px 6px;
    margin: 4px 10px 0px 5px;
    border: 1px solid #aaf;
    background-color: #def;
/*
    border: 1px solid #aaf;
    margin: 8px 10px 0px 10px;
*/
    font-size: 90%;
}

#primary-navbar .navbar-top-buttons .toolbar-align-right .toolbar-item-left a {
    color: #00a;
/*
    padding: 3px 6px 3px 6px;
    margin: 4px 10px 0px 5px;
    margin: 0;
    border: 1px solid #aaf;
    background-color: #def;
*/
}


#feedback {position: relative;
        margin-top: 30px; /* negative value of footer height */
        height: 30px;
        margin-left: 30px;
        font-size: 70%;
        text-align: bottom;
        clear:both;
} 

.mathbook-content figcaption {
    font-weight: normal;
}

.mathbook-content figcaption {
    margin-top: 10px;
    margin-left: auto;
    margin-right: auto;
/*  Commenting this out because the initial letter of some captions were cut off
    text-indent: -30px;
*/
}

/* delete the figcaption .heading once refactoring is complete */
.mathbook-content figcaption .heading,
.mathbook-content section figcaption .heading,
.mathbook-content section figcaption .codenumber,
.mathbook-content section figcaption .type {
    font-weight: 700;
    font-size: inherit;
}

.mathbook-content figcaption .heading + .codenumber::before,
.mathbook-content figcaption .type + .codenumber::before {
    content: " ";
}

.mathbook-content figcaption .codenumber:after {
    content: ".\2002";  /* en space */
}

.mathbook-content figcaption .codenumber:last-child:after {
    display: inline;
    content: ". ";
}

.mathbook-content .definition-like p > em {
    font-weight: 700;
}
.mathbook-content em.alert {
    font-weight: bold;
}

.unprocessed {
    padding: 8px;
    background-color: rgb(255,230,230)
}

.unprocessed .unprocessed {
    margin: 8px;
    background-color: rgb(255,200,255)
}

.unprocessed .unprocessed .unprocessed {
    margin: 8px;
    background-color: rgb(205,205,255)
}

/* does this apply anywhere? */

/*
*[knowl] {
  border-bottom: 1px dotted #00a;
}
*/

#toc h2 + h2 {
    margin-top: 0.3em;
}

h2:last-child {
/* for the chapter pages with section links at the bottom */
    margin-bottom: 100px;
}

.mathbook-content section.introduction + section {
    margin-top: 2em;
}

.mathbook-content {
    margin: 0;
}

.mathbook-content .paragraphs .heading {
    display: inline;
}

.mathbook-content .paragraphs .heading .title:not(:empty):after {
    content: ".\2002";  /* en space */
}

.mathbook-content .paragraphs .heading + p {
    display: inline;
}

/* obsolete once paragraph spacing refactored */
.mathbook-content .paragraphs .heading + p:after {
    content: "";
    display: block;
    margin-bottom: 1.25em;
}
/*
.mathbook-content .paragraphs p:last-child::after {
    margin-bottom: 0;
}
*/


/* the next are to avoid styping a p as inline, because
 * inline styling messes up the meaning of line-height.
 * */

.mathbook-content .paragraphs p .title {
    font-family: "PT Serif", "Times New Roman", Times, serif;
    font-size: 1.125em;
    font-weight: 700;
}

.mathbook-content .paragraphs p .title:after {
    content: ".\2002";
}

.mathbook-content .paragraphs p .heading {
    display: inline;
}

.mathbook-content section .paragraphs .heading {
    margin-top: 0;
}

/*
.mathbook-content section .paragraphs {
    margin-top: 0em;
}
*/

.mathbook-content section .paragraphs + .paragraphs {
    margin-top: 3em;
}

.mathbook-content h6 {
    line-height: 1em;
}

.mathbook-content .sidebyside > p, .mathbook-content .sidebyside > figure, .mathbook-content .sidebyside > img, .mathbook-content .sidebyside > table, .mathbook-content .sidebyside > tabular, .mathbook-content .sidebyside > .paragraphs {
    display: inline-block;
    margin: 0;
}

.mathbook-content .sidebyside > figure:after {
     content:'';
}

.mathbook-content .sidebyside figcaption {
    padding-left: 1em; 
    padding-right: 0;
    padding-bottom: 0;
    margin: 0.75em 0 0 0;
}

.mathbook-content .sidebyside figcaption .heading, .mathbook-content .sidebyside figcaption .codenumber {
    font-weight: 700;
}

.mathbook-content .sidebyside figcaption .heading:after {
    content: "\00a0";
}

.mathbook-content figcaption .codenumber{
    font-family: "PT Serif", "Times New Roman", Times, serif;
}
.mathbook-content .sidebyside figcaption .codenumber:after {
    content: ".\2002";  /* en space */
}

.mathbook-content .sidebyside figcaption .codenumber:last-child:after {
    display: inline;
    content: ". ";
}


.mathbook-content .sidebyside > p {   /* what about sbspanel? */
    width: 32%;
    vertical-align: top;
}

.mathbook-content .sidebyside > p.left, .mathbook-content .sidebyside > p.middle, .mathbook-content .sidebyside > p.right {
    vertical-align: middle;
}

.mathbook-content .sidebyside > p + img {
    vertical-align: middle;
}

/*
.mathbook-content .sidebyside {
    margin-bottom: 0;
}
.mathbook-content .sidebyside p:only-child {
    margin-bottom: 0;
}
.mathbook-content .sidebyside p:last-child {
    margin-bottom: 0;
}
*/


.mathbook-content .sidebyside .sbsrow .sbsheader {
    margin-top: 0;
}

.mathbook-content .sbsgroup {
    width: 100%;
}

.mathbook-content .sidebyside {
    width: 100%;
}

/* see Ex 29 https://yoshiwarabooks.org/linear-functions.html 
and ex 2.91 in 
https://yoshiwarabooks.org/mfg/MathModels.html */
.mathbook-content p + .sidebyside,
.mathbook-content ol + .sidebyside,
.mathbook-content ul + .sidebyside {
    margin-top: 1em;
}

.mathbook-content .sbsrow {
    display: flex;
    justify-content: space-between;
}
/*
.mathbook-content .sbsrow:last-child {
    padding-bottom: 1em;
}
*/

/* Components of three types of "sbsrow" */

/* titles, totally centered text */
.mathbook-content .sbsheader {
    text-align: center;
    justify-content: center;
    font-size: 1em;
}

/* containers of desired width for actual content */
.mathbook-content .sbspanel {
    display: flex;
    flex-direction: column;
}
.mathbook-content .sbspanel > p:first-child {
    margin-top: 0;
}

/* fixed-width items are centered horizontally in their panel */
/* always used in conjunction with sbspanel                   */
.mathbook-content .fixed-width {
    align-items: center;
}

/* captions, centered until word-wrapped */
.mathbook-content .sbscaption {
/*
    display: flex;
*/
    justify-content: center;
}





.mathbook-content table {
    border-spacing: 0;
}

.mathbook-content table {
    border-collapse: collapse;
}

.mathbook-content table tr td {
    padding-top: 2px;
    padding-bottom: 2px;
    padding-left: 5px;
    padding-right: 5px;
    font-size: 90%;
}

.mathbook-content table tr td.l {
    text-align: left;
}
.mathbook-content table tr td.c {
    text-align: center;
}
.mathbook-content table tr td.r {
    text-align: right;
}
.mathbook-content table tr td.j {
    text-align: justify;
}
.mathbook-content table tr td.lines {
        white-space: nowrap;
}


.mathbook-content table tr td.t {
    vertical-align: top;
}
.mathbook-content table tr td.b {
    vertical-align: bottom;
}
.mathbook-content table tr td.m {
    vertical-align: middle;
}

.mathbook-content table tr td.vv {
    border-left: 2px solid #000;
    border-right: 2px solid #000;
}

.mathbook-content table tr td.vcv {
    border-left: 2px solid #000;
    border-right: 2px solid #000;
    text-align: center;
}

.mathbook-content table tr td.vcvv {
    border-left: 2px solid #000;
    border-right: 4px solid #000;
    text-align: center;
}

.mathbook-content table tr td.vlv {
    border-left: 2px solid #000;
    border-right: 2px solid #000;
    text-align: left;
}

.mathbook-content table tr td.vrv {
    border-left: 2px solid #000;
    border-right: 2px solid #000;
    text-align: right;
}

.mathbook-content table tr td.rv {
    border-right: 2px solid #000;
    text-align: right;
}

.mathbook-content table tr td.vr {
    border-left: 2px solid #000;
    text-align: right;
}

.mathbook-content table tr td.lv {
    border-right: 2px solid #000;
    text-align: left;
}

.mathbook-content table tr td.vl {
    border-left: 2px solid #000;
    text-align: left;
}
.mathbook-content table tr td.cv {
    border-right: 2px solid #000;
    text-align: center;
}

.mathbook-content table tr td.Xv {
    border-right: 2px solid #000;
    text-align: left;
}

.mathbook-content table tr td.vc {
    border-left: 2px solid #000;
    text-align: center;
}

.mathbook-content table tr td.hline {
    padding: 0;
}

.mathbook-content table tr td.hlinethick {

    padding-left: 0px;
    padding-right: 0px;

}

.mathbook-content table tr td.hline hr  {

    margin-top:0;
    margin-bottom:0;
    margin-left: -1px;
    margin-right: -1px;
    border: 1px solid rgb(0,0,0);

}

.mathbook-content table tr td.hlinethick hr  {

    margin-top:0;
    margin-bottom:0;
    margin-left: -1px;
    margin-right: -1px;
    border: 2px solid rgb(0,0,0);

}


.center table { 
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}


.mathbook-content table tr td.b1 {
    border-bottom: 1px solid #000;
}
.mathbook-content table tr td.b2 {
    border-bottom: 2px solid #000;
}
.mathbook-content table tr td.b3 {
    border-bottom: 3px solid #000;
}
.mathbook-content table tr td.b0 {
    border-bottom: none;
}

.mathbook-content table tr td.t1 {
    border-top: 1px solid #000;
}
.mathbook-content table tr td.t2 {
    border-top: 2px solid #000;
}
.mathbook-content table tr td.t3 {
    border-top: 3px solid #000;
}
.mathbook-content table tr td.t0 {
    border-top: none;
}

.mathbook-content table tr td.r1 {
    border-right: 1px solid #000;
}
.mathbook-content table tr td.r2 {
    border-right: 2px solid #000;
}
.mathbook-content table tr td.r3 {
    border-right: 3px solid #000;
}
.mathbook-content table tr td.r0 {
    border-right: none;
}


.mathbook-content table tr td.l1 {
    border-left: 1px solid #000;
}
.mathbook-content table tr td.l2 {
    border-left: 2px solid #000;
}
.mathbook-content table tr td.l3 {
    border-left: 3px solid #000;
}
.mathbook-content table tr td.l0 {
    border-left: none;
}

.mathbook-content table tr td p + p {
    margin-top: 1em;
}

.mathbook-content table + p {
    margin-top: 1.5em;
}

.mathbook-content table tr td span.decimal {
    float: left;
    text-align: right;
}

.mathbook-content table + article {
    margin-top: 1em;
}

.mathbook-content .hidden-knowl-wrapper .hiddenproof,
.mathbook-content section > article.hiddenproof,
.mathbook-content .blob > article.hiddenproof  {
    margin-top: 0.3em;
}

.mathbook-content .hidden-knowl-wrapper article {
    display: inline;
}

/*
.mathbook-content .hiddenproof > .heading::after {
    content: "."
}
*/

.amathbook-content figure.figure-like {
    overflow: auto;
}
.mathbook-content figure.figure-like {
    margin-left: auto;
    margin-right: auto;
}
.mathbook-content p + figure.figure-like > table {
    margin-top: 1em;
}
/*
.mathbook-content .sbscaption {
    width: 100%! important;
}
*/

.mathbook-content figure.figure-like figcaption {
    overflow: hidden;
}

/* not sure where this was being used, but it made short knowls
 * look bad, like the hint here:
 * SAFurtherReading.html
.mathbook-content .knowl-output .knowl-content {
    margin-bottom: 0.5em;
}
*/

/*
.mathbook-content tt {
    font-size: 1.4em;
    font-size: 110%;
    margin-left: 0.2em;
    margin-right: 0.2em;
}
*/
.mathbook-content a > tt {
    font-size: 110%;
}

.mathbook-content section .videolink a:link {
    background-size: 0;
}

.mathbook-content .exercise-like ol li table {
    margin-bottom: 0.5em;
}

.mathbook-content .exercise-like > ol li + li {
    margin-top: 0.5em;
}
.mathbook-content .solution > ol li + li {
    margin-top: 0.5em;
}

/* this should be obsolete, because the permalink is outside of the .heading */
.mathbook-content section .heading a.permalink {
    opacity: 0.1;
    font-size: 70%;
    color: #d00;
    display: inline-block;
}

.mathbook-content section .heading {
  display: inline-block;
}
.mathbook-content section .heading + a.permalink {
    opacity: 0.2;
    color: #d00;
    font-weight: bold;
    display: inline-block;
    margin-left: 0.5em;
}
.mathbook-content section section .heading + a.permalink {
    font-size: 90%;
}
.mathbook-content section section section .heading + a.permalink {
    font-size: 80%;
}

.mathbook-content .heading a.permalink:hover {
    opacity: 1;
    color: #a32;
}

/*
.mathbook-content .heading a.permalink:hover:after {
    opacity: 1;
}
*/

.mathbook-content .heading a.permalink:focus {
    opacity: 1;
    color: #a32;
}
/*
.mathbook-content .heading a.permalink:focus:after {
    opacity: 1;
}
*/

.mininav {
    float: left;
    padding-top: 0.7ex;
    padding-left: 1ex;
}
.indexnav {
    margin-left: 1.5ex;
    margin-top: 0.2ex;
    padding-top: 0;
/*    display: inline;
 *      *    */
    float: left;
    line-height: 0.95;
}

.indexnav a {
    padding-left: 2.5px;
    width: 2.5ex;
/*
 *  *  omitted, because we put a space in the source
 *      padding-right: 3px;
 *      */
    margin-right: -1px;
    color: inherit;
    font-size: 80%;
    display: inline-block;
    text-align: center;
}
.indexnav a::after{
    content: "";
    display: inline-block;
}
.indexnav a:nth-of-type(14){
    padding-left: 1.8ex;
}

.indexnav a:hover {
    background: #eeaaff;
}



.mathbook-content .indexitem {
    margin-top: 2px;
}

.mathbook-content .subindexitem {
    margin-left: 2em;
    font-size: 95%;
    margin-top: -1px;
}

.mathbook-content .subsubindexitem {
    margin-left: 3.5em;
    font-size: 95%;
    margin-top: -1px;
}

.mathbook-content .indexknowl {
    margin-left: 0.11em;
}
.mathbook-content em + .indexknowl  {
    margin-left: -0.25em;
}
.mathbook-content .indexknowl a {
    margin-left: 2em;
}
.mathbook-content .indexitem i,
.mathbook-content .subindexitem i,
.mathbook-content .subsubindexitem i {
    margin-left: 1em;
    margin-right: 0.25em;
}

/* temporary, to over-ride the misguided .indexitem i  above */
.mathbook-content b i {
    margin: 0 !important;
}

.mathbook-content .indexitem .see,
.mathbook-content .subindexitem .see,
.mathbook-content .subsubindexitem .see {
    margin-left: 1em;
    margin-right: 0.5em;
}

.mathbook-content .indexitem .indexknowl {
    font-size: 90%;
}

/*
.mathbook-content .indexitem a {
    font-size: 90%;
}
*/

.mathbook-content .indexitem [knowl], .mathbook-content .subindexitem [knowl], .mathbook-content .indexitem [knowl]:hover {
    padding-right: 2px;
    padding-left: 2px;
}
.mathbook-content .indexknowl [knowl]:hover, .mathbook-content .indexknowl .active[knowl] {
    margin-left: 2em;
}

.mathbook-content .subindexitem .indexknowl {
    font-size: 95%;
}
.mathbook-content .subsubindexitem .indexknowl {
    font-size: 95%;
}

/*
.mathbook-content .indexletter {
    margin-top: 1em;
    font-size: 170%;
    font-weight: bold;
}
*/
.mathbook-content .indexletter {
    margin-top: 1.5em;
}

/*
.mathbook-content .indexknowl + .indexknowl{
    margin-left: 1em;
}
*/

/*
.mathbook-content section #hk-exercise-essay article {
    display: inline;
}
*/

.mathbook-content .hidden-knowl-wrapper .heading {
    display: inline;
}
.mathbook-content .heading + .hidden-knowl-wrapper {
    display: inline;
}
/*
.mathbook-content article .hidden-knowl-wrapper:first-of-type {
    display: inline;
}
.mathbook-content article .hidden-knowl-wrapper {
    margin-top: 1em;
}
*/

.mathbook-content .cols2 .knowl-output, .mathbook-content .cols3 .knowl-output, .mathbook-content .cols4 .knowl-output, .mathbook-content .cols5 .knowl-output, .mathbook-content .cols5 .knowl-output {
    width: 100%;
}

.mathbook-content .cols2 + *, .mathbook-content .cols3 + *, .mathbook-content .cols4 + *, .mathbook-content .cols5 + *, .mathbook-content .cols6 + * {
    clear: both;
}
 /*
.mathbook-content .cols2 > li:last-child, .mathbook-content .cols3 > li:last-child, .mathbook-content .cols4 > li:last-child, .mathbook-content .cols5 > li:last-child, .mathbook-content .cols6 > li:last-child{
    margin-bottom: 1.5em;
}
*/

.mathbook-content section > ol:last-child,
.mathbook-content section > ul:last-child {
    margin-bottom: 1.5em;
}

.mathbook-content .cols2:last-child::after, .mathbook-content .cols3:last-child::after, .mathbook-content .cols4:last-child::after, .mathbook-content .cols5:last-child::after, .mathbook-content .cols6:last-child::after {
    content: "";
    display: block;
    clear: both;
}

.mathbook-content .cols2 > li:nth-child(2n+1),
.mathbook-content .cols3 > li:nth-child(3n+1),
.mathbook-content .cols4 > li:nth-child(4n+1),
.mathbook-content .cols5 > li:nth-child(5n+1),
.mathbook-content .cols6 > li:nth-child(6n+1) {
    clear: left;
}
/* need to repeat for .colsN */
.mathbook-content .exercise-like ol.cols2 li {
    margin-top: 0.5em;
}

.mathbook-content .cols2 > li,
.mathbook-content .cols3 > li,
.mathbook-content .cols4 > li,
.mathbook-content .cols5 > li,
.mathbook-content .cols6 > li {
    float: left;
}

.mathbook-content .cols2 > li { width: 49%; }
.mathbook-content .cols3 > li { width: 33%; }
.mathbook-content .cols4 > li { width: 24.5%; }
.mathbook-content .cols5 > li { width: 19.5%; }
.mathbook-content .cols6 > li { width: 16.3%; }

/* 1.25 = ol top + li top ?  looked too big with 0.75 below */
.mathbook-content .exercise-like p + ol {  
    margin-top: 0.5em;
}
/*
.mathbook-content .exercise-like ol {  
    margin-bottom: 0;
}
*/

.mathbook-content .incontext {
    display: block;
    font-size: 85%;
    text-align: right;
/*    margin-bottom: -1.0em;
*/
}

.mathbook-content .terminology {
  font-style: italic;
  font-weight: bold;
}

/* the "pink flash" when navigating to a target
*/
:target {
    -webkit-animation: target-fade 10s 1;
    -moz-animation: target-fade 10s 1;
}

@-webkit-keyframes target-fade {
    0% { background-color: rgba(120,0,120,.3); }
    100% { background-color: inherit;
           opacity: 1; }
}
@-moz-keyframes target-fade {
    0% { background-color: rgba(120,0,120,.3); }
    100% { background-color: inherit;
           opacity: 1; }
}

/*
.mathbook-content .autoterm {
    display: inline;
}
*/

.mathbook-content .autoterm [knowl], .mathbook-content .autoterm [knowl]:after {
    font-weight: inherit;
    color: inherit;
    padding: 0;
    margin-bottom: inherit;
    border-bottom: inherit;
    border-bottom-color: inherit;
}

/*
.mathbook-content .autoterm [knowl]:hover {
    background: inherit;
    border-bottom: inherit;
}

.mathbook-content .autoterm [knowl]:hover {
    background: #eebbff;
    border-bottom: 1px dotted red;
}
*/

/*
.mathbook-content .autoterm .active[knowl] {
    background: inherit;
}
*/

.mathbook-content .autoterm [knowl]:hover {
    background: #ffddff;
    border-top: 2px dotted purple;
    border-bottom: 1px dotted red;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

.has-sidebar-left #primary-navbar-sticky-wrapper .navbar-top-buttons .toolbar, .has-sidebar-left #primary-navbar .navbar-top-buttons .toolbar {
     border-right: 0;
}

#primary-navbar .toolbar.toolbar-divisor-3 > .toolbar-item:last-child, #primary-navbar-sticky-wrapper .toolbar.toolbar-divisor-3 > .toolbar-item:last-child {
    border-right: 1px solid #bababa;
}

.mathbook-content ol li.custom-list-style-type {
    list-style-type: none;
}

.mathbook-content ol li.custom-list-style-type:before {
     content: attr(label) "\00A0\00A0 ";
}

.mathbook-content ol.decimal {
    list-style-type: decimal;
}
.mathbook-content ol.lower-alpha {
    list-style-type: lower-alpha;
}
.mathbook-content ol.upper-alpha {
    list-style-type: upper-alpha;
}
.mathbook-content ol.lower-roman {
    list-style-type: lower-roman;
}
.mathbook-content ol.upper-roman {
    list-style-type: upper-roman;
}
.mathbook-content ul.disc {
    list-style-type: disc;
}
.mathbook-content ul.square {
    list-style-type: square;
}
.mathbook-content ul.circle {
    list-style-type: circle;
}
.mathbook-content ol.no-marker,
.mathbook-content ul.no-marker {
    list-style-type: none;
}

/* The dl should behave more like the default on a narrow screen,
 * with the term and definition on separate lines.
 */

.mathbook-content dl.description-list {
    margin-left: 0;
}

.mathbook-content dl dt {
        font-weight: bold;
}

.mathbook-content dl.description-list dt {
    float: left;
    clear: left;
    text-align: right;
    width: 18ex;
}
.mathbook-content dl.description-list dd {
    margin-left: 22ex;
}

.mathbook-content dl.description-list dd dt {
    width: 14ex;
}
.mathbook-content dl.description-list dd dd {
    margin-left: 18ex;
}

.mathbook-content dl.description-list dd:after {
    content: "";
    display: block;
    clear: left;
}

.mathbook-content dl.description-list-narrow {
    margin-left: 0;
}
.mathbook-content dl.description-list-narrow dt {
    float: left;
    clear: left;
    text-align: right;
    width: 8ex;
}
.mathbook-content dl.description-list-narrow dd {
    margin-left: 12ex;
}
.mathbook-content dl.description-list-narrow dd:after {
    content: "";
    display: block;
    clear: left;
}

/*
#toc ul li.listprefix {
    list-style-type: none;
    display: inline-block;
}

#toc ul li.listprefix:before {
     content: attr(label) "\00A0\00A0 ";
     display: inline-block;
}
*/

/*
.mathbook-content .knowl .definition-like:last-child, .mathbook-content .knowl .theorem-like:last-child, .mathbook-content .knowl .remark-like:last-child, .mathbook-content .knowl .example-like:last-child, .mathbook-content .knowl .exercise-like:last-child, .mathbook-content .knowl .objectives:last-child {
    margin-bottom: 0.3em;
}
*/

/* to stop things being blue when rendering MathJax with SVG */
a.mjx-svg-href  {
    fill: inherit;
    stroke: inherit;
}

/* for long math formulas and tables to scroll on small screens */
@media screen and (max-width: 943px) {
  /* adapted from line 192, ../../../../../MathBook/mathbook-assets/scss/ui/mixins/_sliding-sidebars.scss */
  .mathbook-content .mjx-chtml.MJXc-display {
    /*Allow users on smaller screens to scroll equations*/
    /*horizontally when they don't fit on the screen*/
    overflow-x: auto;
    overflow-y: hidden;
  }
  .mathbook-content .figure-like {
    overflow-x: auto;
}
}

/* o show wide equation overflow even when no scroll bars,
from Jiří Lebl */
/*
.MJXc-display, .figure-like {
*/
.mathbook-content .MJXc-display, .mathbook-content .knowl-output .knowl-output .knowl-output .knowl-output .MJXc-display ,
.mathbook-content pre.prettyprint,
.mathbook-content pre.plainprint {
    background-image: linear-gradient(to right, white, white), linear-gradient(to right, white, white), linear-gradient(to right, rgba(0,0,0,.25), rgba(255,255,255,0)), linear-gradient(to left, rgba(0,0,0,.25), rgba(255,255,255,0));
    background-position: left center, right center, left center, right center;
    background-repeat: no-repeat;
    background-color: inherit;
    background-size: 20px 100%, 20px 100%, 10px 100%, 10px 100%;
    background-attachment: local, local, scroll, scroll;
}
.mathbook-content .knowl-output .MJXc-display {
    background-image: none;
    background-image: linear-gradient(to right, #f5f5ff, #f5f5ff), linear-gradient(to right, #f5f5ff, #f5f5ff), linear-gradient(to right, rgba(0,0,0,.25), rgba(243,243,255,0)), linear-gradient(to left, rgba(0,0,0,.25), rgba(243,243,255,0));
}
.mathbook-content .assemblage-like .MJXc-display {
    background-image: none;
    background-image: linear-gradient(to right, #f4f4fe, #f4f4fe), linear-gradient(to right, #f4f4fe, #f4f4fe), linear-gradient(to right, rgba(0,0,0,.25), rgba(242,242,254,0)), linear-gradient(to left, rgba(0,0,0,.25), rgba(242,242,254,0));
}


.mathbook-content .knowl-output .knowl-output .MJXc-display {
    background-image: none;
    background-image: linear-gradient(to right, #fffff5, #fffff5), linear-gradient(to right, #fffff5, #fffff5), linear-gradient(to right, rgba(0,0,0,.25), rgba(255,255,243,0)), linear-gradient(to left, rgba(0,0,0,.25), rgba(255,255,243,0));
}
.mathbook-content .knowl-output .knowl-output .knowl-output .MJXc-display {
    background-image: none;
    background-image: linear-gradient(to right, #fff5fe, #fff5fe), linear-gradient(to right, #fff5fe, #fff5fe), linear-gradient(to right, rgba(0,0,0,.25), rgba(255,243,254,0)), linear-gradient(to left, rgba(0,0,0,.25), rgba(255,243,254,0));
}


/*  http://sites.wcsu.edu/mbxml/OER_Linear_Alg/glossary.html
   to fix the extra margin on top of the next term when
   the previous definition ends in display math
   May need to make less specific
*/
.mathbook-content dd .displaymath:last-child .MJXc-display {
    margin-bottom: 0;
}

.floatnav {
    margin-top: 8px;
    margin-left: 50px;
}

.floatnav a {
    padding-left: 3px;
/*
 *  omitted, because we put a space in the source
    padding-right: 3px;
*/
    margin-right: -1px;
    color: inherit;
}

/* to allow big math in knowl links */
/*
.mathbook-content .hidden-knowl-wrapper a .mjx-chtml {
*/
/* main page of sample book */
/*
.mathbook-content a .mjx-chtml {
    background: inherit;
}
*/
/* Example 4.8 of sample article (compare main page of sample book (4^{th} edition)`*/
.mathbook-content a .heading .mjx-chtml {
    z-index: 1;
    background: #fff;
}
.mathbook-content .hidden-knowl-wrapper [knowl]::after, .mathbook-content .hidden-knowl-wrapper [knowl]:hover::after, .mathbook-content .hidden-knowl-wrapper .active[knowl]::after {
    right: 7px;
}

.floatnav a:hover {
    background: #eeaaff;
}

.mathbook-content .unselectable {  /* from Alex Jordan */
  -webkit-touch-callout: none; /* iOS Safari */
  -webkit-user-select: none;   /* Chrome/Safari/Opera */
  -khtml-user-select: none;    /* Konqueror */
  -moz-user-select: none;      /* Firefox */
  -ms-user-select: none;       /* Internet Explorer/Edge */
  user-select: none;           /* Non-prefixed version, currently
                                  not supported by any browser */
}

/* Adapted from William Hammond (attributed to David Carlisle) */
/* "mathjax-users" Google Group, 2015-12-27 */

.mathbook-content .latex-logo {font-family: "PT Serif", "Times New Roman", Times, serif;}

.mathbook-content .latex-logo .A {font-size: 75%; text-transform: uppercase; vertical-align: .5ex;
         margin-left: -.48em; margin-right: -.2em;}

.mathbook-content .latex-logo .E {vertical-align:-.5ex; text-transform: uppercase;
         margin-left: -.18em; margin-right: -.12em; }

/*
.mathbook-content .posterior {
    margin-bottom: 1.25em;
}
*/

.mathbook-content .fillin {
    display: inline-block;
    border-bottom-style: solid;
    border-width: 1px;
    margin-right: 0.1em;
    margin-bottom: -0.25em;
}

.mathbook-content .exercisegroup {
    margin-bottom: 1.0em;
}
.mathbook-content section .exercisegroup > .heading {
    font-size: 1.10em;
    line-height: 1.05em;
    margin-top: 0.75em;
}

.mathbook-content .exercisegroup article.exercise-like p {
    margin-top: 0.5em;
}
.mathbook-content .exercisegroup article.exercise-like li > p:first-child {
    margin-top: 0;
}

.mathbook-content .exercisegroup article.exercise-like .heading {
    margin: 0;
}
.mathbook-content .exercisegroup .conclusion .heading {
    margin-top: 0.5em;
}
.mathbook-content .exercisegroup .hidden-knowl-wrapper {
    margin: 0;
}
/*
.mathbook-content .exercisegroup .exercise-like .heading + p:after {
    margin: 0;
}
.mathbook-content .exercisegroup .introduction .heading + p:last-child {
    margin-bottom: 0.5em;
}
*/
.mathbook-content .exercisegroup article + article {
    margin-top: 1em;
}

.mathbook-content .exercises .exercise-like figcaption .heading {
    font-weight: bold;
    font-size: inherit;
}
/* for titles on APEX WW exercises, but should make sense for other exercises */
.mathbook-content .exercises .exercise-like .heading {
    font-weight: normal;
    font-size: inherit;
}

/* http://spot.pcc.edu/math/APEXCalculus/sec_interp_deriv.html */
.mathbook-content .exercisegroup > article,
.mathbook-content .exercisegroup-exercises > article {
    margin-left: 2em;
}
.mathbook-content .exercisegroup > .introduction,
.mathbook-content .exercisegroup > .conclusion {
    margin-left: 0;
}

.mathbook-content .exercisegroup article + .hidden-knowl-wrapper {
    margin-left: 4em;
}

/* make it look like a list, and have entra indenting when already more indented */
.mathbook-content .exercise-like .introduction + .hidden-knowl-wrapper,
.mathbook-content .exercise-like .conclusion {
    margin-left: 1.0em;
}
.mathbook-content .exercisegroup .exercise-like .introduction + .hidden-knowl-wrapper,
.mathbook-content .exercisegroup .exercise-like .conclusion {
    margin-left: 1.5em;
}
.mathbook-content section > .hidden-knowl-wrapper {
    margin-top: 1em;
}

/*
.mathbook-content .exercisegroup article.exercise-like:not(:first-child) {
    margin-top: 0em;
}
*/

.mathbook-content .exercisegroup > .conclusion {
    margin-left: 1.5em;
}

/*
.mathbook-content .exercise-like .hint {
    display: block;
    margin-top: -0.75em;
}
*/

.mathbook-content .exercise-like .introduction {
    display: inline;
}
.mathbook-content .exercise-like .introduction .heading {
    display: inline;
}
.mathbook-content .exercise-like .introduction p:first-child {
    display: inline;
}
.mathbook-content .exercise-like .introduction::after {
    content: "";
    display: block;
/*
    margin-bottom: 0.25em;
*/
}
.mathbook-content .exercise-like .conclusion::before {
    content: "";
    display: block;
    margin-top: 0.25em;
}


/*
.mathbook-content .example-like .hint {
}
*/
/*
.example-like, .exercise-like {
  margin: 1.25em 0;
}
*/

/* if hints and solutions are in .posterior, then
 * some of the above styling does not apply */

.mathbook-content article.exercise-like + .posterior {
    margin-top: -0.75em;
}


.mathbook-content article.example-like .hint {
    display: block;
    margin-top: -0.75em;
}


.mathbook-content .exercisegroup .exercisegroup-exercises.cols2, .mathbook-content .exercisegroup .exercisegroup-exercises.cols3, .mathbook-content .exercisegroup .exercisegroup-exercises.cols4, .mathbook-content .exercisegroup .exercisegroup-exercises.cols5, .mathbook-content .exercisegroup .exercisegroup-exercises.cols6 {
    width: 100%;
    display:inline-flex;
    flex-direction:row;
    flex-wrap:wrap;
    justify-content:flex-start;
    align-items:flex-start;
    align-content:flex-start;
}

.mathbook-content .exercisegroup .exercisegroup-exercises.cols1 {
    display:inline;
}

.mathbook-content .exercisegroup .exercisegroup-exercises.cols1 .knowl-output {
    display: block;
}

/*
.mathbook-content .exercisegroup .exercisegroup-exercises article.exercise-like {
    margin-top: 0;
}
*/

.mathbook-content .exercisegroup .cols1 > article.exercise-like {flex-basis: calc(100% - 2em);}
.mathbook-content .exercisegroup .cols2 > article.exercise-like {flex-basis: calc(50% - 2em);}
.mathbook-content .exercisegroup .cols3 > article.exercise-like {flex-basis: calc(33.33% - 2em);}
.mathbook-content .exercisegroup .cols4 > article.exercise-like {flex-basis: calc(25% - 2em);}
.mathbook-content .exercisegroup .cols5 > article.exercise-like {flex-basis: calc(20% - 2em);}
.mathbook-content .exercisegroup .cols6 > article.exercise-like {flex-basis: calc(16.66% - 2em);}
/*
.mathbook-content .exercisegroup .cols3 article.exercise-like {flex-basis: calc(100% / 3 - 2em);}
.mathbook-content .exercisegroup .cols6 article.exercise-like {flex-basis: calc(100% / 6 - 2em);}
*/


.mathbook-content .code-inline,
.mathbook-content .code-block,
.mathbook-content .console {
    font-family: "Inconsolata", monospace;
}
.mathbook-content .code-inline {
    font-size: 1em;
/*    line-height: 1.38889em;
*/
    white-space: nowrap;
    color: inherit;
    background: #eeeeee;
    border: 1px solid #dddddd;
    padding: 0.0625em 0.25em;
    margin-left: 0.2em;
    margin-right: 0.2em;
    -webkit-border-radius: 0.2em;
    -moz-border-radius: 0.2em;
    -ms-border-radius: 0.2em;
    -o-border-radius: 0.2em;
    border-radius: 0.2em;
}
.mathbook-content .title .code-inline {
    padding-left: 0;
    padding-right: 0;
    margin-left: 0;
    margin-right: 0;
}

.mathbook-content .sagecell_sessionOutput pre {
    font-family: 'Inconsolata', monospace;
}

.mathbook-content .sagecell {
    margin-bottom: 1.25em;
}

.mathbook-content .assemblage-like {
    border: solid 2px #1100AA;
    border-radius: 12px;
    padding: 10px;
    background-color: #f4f4fe;
}

.mathbook-content .assemblage-like .heading {
    margin-top: 0;
}

.mathbook-content .assemblage-like + .sidebyside {
    margin-top: 1.25em;
}

.mathbook-content .booktitle {
    font-style: oblique;
}

.mathbook-content .poem {
    margin-top: 1.5em;
}

/* when hidden in a knowl, don't need the space at the end */
.mathbook-content article > a > .heading > .title:not(.punctuated):last-child::after {
    content: ".";
}

.mathbook-content article > .heading .type:last-child::after,
.mathbook-content article > .heading .codenumber:last-child::after,
.mathbook-content article > .heading .title:not(:empty):not(.punctuated):last-child::after {
    content: ".\2009 ";
}
.mathbook-content .aside-like > .heading .type:last-child::after,
.mathbook-content .aside-like > .heading .codenumber:last-child::after,
.mathbook-content .aside-like > .heading .title:not(:empty):not(.punctuated):last-child::after {
    content: ":\2009 ";
}

.mathbook-content .aside-like > .heading .title:empty::after {
    content: "";
}

.mathbook-content a article > .heading .codenumber:not(:empty)::after {
    content: ": \2009";
}

.mathbook-content .hiddenproof > .heading .type:after, .mathbook-content .hiddenproof > header > .heading .type:after {
  content: "";
}

.mathbook-content .exercise-like > .heading .codenumber:not(:empty):after {
    content: ".\2009 ";
}

.mathbook-content .objectives > .heading {
    font-size: 1.25em;
}

/* Born-hidden example with a very long title */
/* http://physics.thomasmore.edu/ConnectedPhysics/sss-netforce.html */
.mathbook-content a .heading {
    white-space: normal;
}


.mathbook-content .solutions a, .mathbook-content .solutions a:hover, .mathbook-content .solutions a.active {
    display: inline-block;
    margin-right: 1em;
}

.mathbook-content .solutions .solution .type + .codenumber {
    margin-left: 0.4em;
}
.mathbook-content .solutions .solution .title:last-child {
    margin-left: 0.2em;
    font-size: 90%;
}
.mathbook-content .solutions .solution .title:last-child::before {
    content: "(";
}
.mathbook-content .solutions .solution .title:last-child::after {
    content: ")";
}

/* omitting, because Historical notes end with a code number,
   which gets an ". " :after, so there was a double dot.  If this
   needs to be put back, then also fix the double dot problem
   http://sl2x.aimath.org/book/aafmt/section9-3.html  (at end)
.mathbook-content .aside-like > .heading:not(:empty):after {
    content: ".\2009 ";
}
*/



/* these were taken from the local add-on.css.
 * need to check if the are needed.
 */

body, html body { background: #fff; }

.mathbook-content figure {
    margin-top: 0.5em;
}
.mathbook-content article > figure:first-child {
    margin-top: 0;
}

.mathbook-content figure + figure,
.mathbook-content figure + .sidebyside,
.mathbook-content .sidebyside + .sidebyside,
.mathbook-content .sidebyside + figure {
    padding-top: 1.0em;
}


.mathbook-content img {
    display: inline-block;
    margin-left: auto;
    margin-right: auto;
}

/* is .cs for commutative diagrams? */
.mathbook-content img.cs {
    display: block;
    margin-top: 20px;
    margin-bottom: 20px;
    margin-left: auto;
    margin-right: auto;
}

.mathbook-content img:not(.cs) {
    max-width: 550px;
}

.mathbook-content table tr td img {
    max-width: 200px;
    margin-right: 30px;
}

.mathbook-content table tr td.lines {
    	white-space: nowrap;
}

figure img {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

figure img + img {
    margin-top: 30px;
}

div.center img {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

div.center + div.center > img {
    margin-top: 60px;
}

div.center > img + img {
    margin-top: 60px;
}

figure table {
    margin-left: auto;
    margin-right: auto;
}

.caption {
    margin-top: 10px;
    margin-left: auto;
    margin-right: auto;
    font-size: 100%;
    text-align: center;
}


figure.wrap img {
    width: 250px;
}
figure.wrap {
    float: right;
    margin-right: 0;
    margin-left: 30px;
}
figure img.wrap {
    float: right;
    margin: 0;
}

figure figcaption.wrap {
    margin: 10px;
    font-size: 100%;
    text-align: center;
}

.mathbook-content .sbspanel > img:not(.draw_on_me):not(.mag_popup),
.mathbook-content figure > img:not(.draw_on_me):not(.mag_popup) {
    cursor: zoom-in;
}
.mathbook-content img.mag_popup {
    border: 1px solid #666;
    box-shadow: 5px 10px 5px #999;
    cursor: zoom-out;
    max-width: 600px;
    margin-right: 50px;
}
.mathbook-content .mag_popup_container {
    width:100%;
    position:absolute;
    z-index:1001;
    overflow-x: auto;
}

.caption .counter:after { content: " ";}

/* above repeated for captions outside figures */

.caption .heading {
    font-weight: bold;
}

.caption .heading:after { content: " ";}

.caption .counter {
    font-weight: bold;
}

figcaption .counter:after { content: " ";}

div.quote {
    padding-left: 40px;
    padding-right: 10px;
    margin-bottom: 1em;
}

.minipage  + .minipage {
    display: inline-block;
}

code.inline {
    background: none;
    border: none;
}

/* sup knowls are used for footnotes */
sup [knowl] {
    padding: 0px 0px 0px 3px;
}

sup .active[knowl] {
    padding: 0px 0px 0px 3px;
}

sup [knowl]:hover {
    padding: 0px 0px 0px 3px;
}

/*
.mathbook-content .proof > .heading:after {
    content: ".";
}
*/

.mathbook-content pre.prettyprint,
.mathbook-content pre.plainprint {
    margin-top: 0;
    padding-left: 15px;
    border-left: 1px solid #aaa;
    font-size: 93%;
    overflow: auto;
/* preveiously turned off the border and padding from pretty.css */
}

.mathbook-content pre.prettyprint:before,
.mathbook-content pre.plainprint:before {
    content:'';
    border-top: 1px solid #aaa;
    display: block;
    margin-right: auto;
    margin-left: -15px;
    padding-bottom: 0.25em;
    width: 2.5em;
}

/*
.mathbook-content article.example-like > *:last-child {
    margin-bottom: 0;
}
.mathbook-content article.example-like > *:last-child::after {
    margin-bottom: 0;
}
*/
/* List 12.3 at http://mathbook.pugetsound.edu/examples/sample-article/html/section-12.html
 [[put somethign here]]
.mathbook-content article.example-like + .posterior {
    margin-top: -0.75em;
}
 */

/*
.mathbook-content article.proof > *:last-child {
    margin-bottom: 0;
}
.mathbook-content article.proof > *:last-child::after {
    margin-bottom: 0;
}

.mathbook-content article.definition-like *:last-child {
    margin-bottom: 0;
}
.mathbook-content article.definition-like *:last-child::after {
    margin-bottom: 0;
}
*/

.mathbook-content .objectives {
    margin-bottom: 1.25em;
}

article.objectives .heading .type + .codenumber:before {
    content: " ";
}
article.objectives .heading .type + .title:before {
    content: ":\2002";
}
article.objectives .heading .codenumber + .title:before {
    content: ":\2002";
}

article.list .heading .type + .codenumber:before {
    content: " ";
}
article.list .heading .type + .title:before {
    content: ":\2002";
}
article.list .heading .codenumber + .title:before {
    content: ":\2002";
}

/*
.mathbook-content article.theorem-like *:last-child, .mathbook-content article.objectives *:last-child { 
    margin-bottom: 0;
}
.mathbook-content article.theorem-like *:last-child::after, .mathbook-content article.objectives *:last-child::after {
    margin-bottom: 0;
}

.mathbook-content article.remark-like > *:last-child {
    margin-bottom: 0;
}
.mathbook-content article.remark-like > *:last-child::after {
    margin-bottom: 0;
}
*/

/* Since there can be p which are nearby but not siblings,
   let's put background and (but not box shadow) on everything */

/* see start of file
.mathbook-content p, .mathbook-content .heading {
    background: #fff;
}
*/

/*
  OLD VERSION: see new version above

.mathbook-content .aside-like ~ *:not(.aside-like) p, .mathbook-content .aside-like ~ *:not(.aside-like) .heading {
    background: #fff;
    box-shadow: 3em 0 0 0 #fff;
}
.mathbook-content .aside-like ~ *:not(.aside-like) .knowl-output p {
    background: inherit;
    box-shadow: none;
}
*/

/* next selector first part of the following is due to the mistake of
   putting paragraph spacing in the margin-bottom 
   Redo when we fix that error */
.mathbook-content .aside-like {
    margin-top: -1.25em;
    position: absolute;
    margin-left: 45%;
    z-index: -10;
    overflow-x: hidden;
    max-width: 495px;
    max-height: 7em;
    overflow-y: hidden;
    border: none;
    padding: 2px 10px;
    color: #888;
}
.mathbook-content .example-like .aside-like {
    margin-top: 0;
    position: absolute;
}
.mathbook-content .aside-like {
    font-size: 90%;
}
.mathbook-content .aside-like {
  margin-bottom: 5px;
  background-color: #f5faff;
  box-shadow: 0 0 1.0em 0.2em #fff inset;
}
.mathbook-content .aside-like:first-child {
    margin-top: -2.25em;
}
.mathbook-content .aside-like:after {
  content  : "";
  position : absolute;
  z-index  : 1;
  top   : 0em;  
  bottom   : 0;
  left     : 0;
  pointer-events   : none;
  background-image : linear-gradient(to bottom, 
                    rgba(255,255,255, 0.4), 
                    rgba(255,255,255, 1) 90%);
  width    : 550px;
  height   : 8em;
}
/* example of where the following is needed? */
.mathbook-content .aside-like * {
    background-color: #f5faff !important;
}
.mathbook-content .aside-like.front, .mathbook-content .example-like .aside-like.front {
  position: relative;
  z-index: 0;
  padding: 8px 15px 10px 15px;
  padding: 2px 10px;
  margin: 5px 0px 5px 10px;
  border: 2px solid #dcebfa;
  max-height: none;
  max-width: 550px;
  color: inherit;
  font-size: 100%;
  box-shadow: none;
}
.mathbook-content .aside-like.front:after, .mathbook-content .example-like .aside-like.front:after {
    background-image: none;
}
.mathbook-content .example-like .aside-like.front {
    margin-top: 1.25em;
}

.mathbook-content .aside-like.front + p{
    margin-top: 1.25em !important;
    padding-top: 0;
}



.mathbook-content .aside-like .aside-like {
  background-color: #fafff5;
  border: 1px dotted #aaa;
}

.mathbook-content article.aside-like > p:first-child {
    margin-top: 0;
}

.mathbook-content .aside-like > .heading {
    font-size: 95%;
}

.mathbook-content .aside-like + *{
    margin-top: 3em !important;
    box-shadow: 0 0 0.5em 0.2em #fff;
    margin-right: 3em;
}

/* for + ul p see http://physics.thomasmore.edu/ConnectedPhysics/ss-NII.html */
/*  subsumed by general background at start
.mathbook-content .aside-like + p, .mathbook-content .aside-like + ul p, .mathbook-content .aside-like + ol p{
    background: #fff;
    box-shadow: 2em 0 1em 0.0em #fff;
}
*/

/* on sufficiently large screens, there is enough of a margin to see part of the aside */

@media screen and (min-width: 943px) {
  .mathbook-content .aside-like + * {
      margin-right: 0;
  }
}

/* on a wide screen, asides should appear in the right margin */
@media screen and (min-width: 1100px) {
  .mathbook-content .aside-like, .mathbook-content .aside-like.front, .mathbook-content .example-like .aside-like, .mathbook-content .example-like .aside-like.front {
      position: absolute;
      margin-top: -2em;
      margin-left: 660px;
      max-width: 200px;
      color: inherit;
  }
  .mathbook-content .aside-like.front, .mathbook-content .example-like .aside-like.front {
      max-height: none;
      max-width: 223px;
      border: 2px solid #dcebfa;
}
  .mathbook-content .example-like .aside-like, .mathbook-content .example-like .aside-like.front {
      margin-left: 654px;  /* because .example-like has 6px of padding */
  }

  .mathbook-content .aside-like + * {
      margin-top: 1.25em !important;
  /*    background: none;  */
      box-shadow: none;
      margin-right: 0;
  }

  .mathbook-content .aside-like.front:after, .mathbook-content .example-like .aside-like.front:after {
    background-image: none;
  }

  .mathbook-content .aside-like:nth-of-type(3n+1) {
    margin-left: 660px;
}
  .mathbook-content .aside-like:nth-of-type(3n) {
    margin-left: 680px;
}
  .mathbook-content .aside-like:nth-of-type(3n+2) {
    margin-left: 640px;
}
}

/* on a narrow screen, collapsed asides should only be one line tall */
/* was too hard to see/poke
@media screen and (max-width: 480px) {
.mathbook-content .aside-like {
    margin-top: -1.25em;
}
.mathbook-content .example-like .aside-like {
    margin-top: -1em;
  }
.mathbook-content .aside-like + *{
    margin-top: 1.5em !important;
}
.mathbook-content .aside-like + article, .mathbook-content .aside-like + ul, .mathbook-content .aside-like + ol {
    margin-top: 2.5em !important;
}
}
*/

.mathbook-content .aside-like:hover:after, .mathbook-content .aside-like:focus:after {
    top: 3em;
    height: auto;
    background-image : none;
}
/* redundant
.mathbook-content .aside-like.front:hover:after, .mathbook-content .aside-like.front:focus:after {
    background-image: none;
}
*/

.mathbook-content .aside-like:hover, .mathbook-content .aside-like:focus {
    color: inherit;
    padding: 0 8px;
    border: 2px solid #dcebfa;
    height: auto;
    max-height: none;
}
.mathbook-content .aside-like.front:hover, .mathbook-content .aside-like.front:focus {
    padding: 2px 10px;
}

/* find a better way to handle asides in content that has a wide left margin */
/* see http://pretext.jahrme.com/aside-in-knowl/section-1.html */
.mathbook-content section dl dd .aside-like {
    margin-top: 0 !important;
    margin-left: 100px !important;
}
.mathbook-content section dl dd .aside-like.front {
    margin-left: -300px !important;
}

@media screen and (max-width: 1099px) {
.mathbook-content aside.aside-like {
    position: relative;
    float: right;
    z-index: 0;
    overflow-x: hidden;
    margin-left: 1em;
    margin-top: 1em;
    max-width: 195px;
    max-height: 4em;
    margin-right: -8em;
}
}


.mathbook-content ol > li {
    padding-left: 0.25em;
}
/*
.mathbook-content ol.cols2 > li { width: calc(49% - 0.25em) !important; }
*/
.mathbook-content ol.cols2 > li, .mathbook-content ul.cols2 > li { width: calc(49% - 1.75em) !important; }
.mathbook-content ol.cols3 > li { width: calc(33% - 0.25em) !important; }
.mathbook-content ol.cols4 > li { width: calc(24.5% - 0.25em) !important; }
.mathbook-content ol.cols5 > li { width: calc(19.5% - 0.25em) !important; }
.mathbook-content ol.cols6 > li { width: calc(16.3% - 0.25em) !important; }
/* sample-article sec 5 */
/*
.mathbook-content ul.cols2 > li p, .mathbook-content ol.cols2 > li p {
   padding-right: 0.5em;
}
*/
.mathbook-content ul.cols2 > li, .mathbook-content ol.cols2 > li {
   padding-right: 1.5em;
}

/* see http://bob.cs.sonoma.edu/IntroCompOrg-RPi/exercises-10.html
  for examples of an odd number of items in a cols2, followed by
  a hint */
.mathbook-content .cols2 > li:last-child:nth-child(odd) {
    float: none !important;
    padding-top: 0.5em;
}


/* http://spot.pcc.edu/math/APEXCalculus/sec_prod_quot_rules.html
 * solution to Example 2.4.14
 */
.mathbook-content .solution ol li { 
    margin-top: 1em;
    padding-left: 0.5em;
}

/* solution to Example 4.2.12 in http://spot.pcc.edu/math/orcca-draft/orcca/section-radical-expressions-and-rational-exponents.html
*/
.mathbook-content .solution ol li > p:first-child, .mathbook-content .solution ol li > .displaymath:first-child {
    vertical-align: top;
    display: inline-block;
    margin-top: 0;
}
.mathbook-content .solution ol li > .displaymath:first-child .MJXc-display {
    margin-top: 0;
}


.mathbook-content .exercise-like ol li {
    margin-top: 1em;
    padding-left: 0.5em;
}
/* The !important is to over-ride legacy inline widths */
.mathbook-content .exercise-like .cols2 > li { width: calc(49% - 0.5em) !important; }
.mathbook-content .exercise-like .cols3 > li { width: calc(33% - 0.5em) !important; }
.mathbook-content .exercise-like .cols4 > li { width: calc(24.5% - 0.5em) !important; }
.mathbook-content .exercise-like .cols5 > li { width: calc(19.5% - 0.5em) !important; }
.mathbook-content .exercise-like .cols6 > li { width: calc(16.3% - 0.5em) !important; }

.mathbook-content .exercisegroup .cols2 > article > ol > li:first-child {
    margin-top: 0;
}

.mathbook-content .exercise-like ol li p {
    vertical-align: top;
    display: inline-block;
    margin-top: 0;
}

/* http://mathbook.pugetsound.edu/beta/contibutor-list-20161130/preface-2.html
 * */

.mathbook-content .contributor .contributor-name {
    font-variant: small-caps;
}
.mathbook-content .contributor .contributor-info {
    font-size: 88%;
    font-style: italic;
    margin-left: 3ex;
}
.mathbook-content .contributor {
    margin-top: 3ex;
}
.mathbook-content .contributor + .contributor {
    margin-top: 1.5ex;
}

.mathbook-content .contributor + p {
    margin-top: 3ex;
}

.mathbook-content .frontmatter .contributors, .mathbook-content .book .contributors {
    text-align: center;
    font-style: normal;
}


.searchwrapper {
    max-width: 900px;
    position: absolute;
    right: 0;
    bottom: 0; 
    margin-bottom: 39px; 
}
body.sidebar-left-closed .searchwrapper {
    margin-bottom: -2px; 
}

body.sidebar-left-open .searchwrapper {
    top: 74px;
}

/* bottom: 0;
 *  * */

body.sidebar-left-closed .searchwrapper {
    top: 74px;
    margin-bottom: -2px;
}


@media screen and (max-width: 800px) {
body.sidebar-left-closed .searchwrapper {
    top: 129px;
}
}

@media screen and (max-width: 480px) {
body.sidebar-left-closed .searchwrapper {
    top: 174px;
}
}


.searchwrapper .cse .gsc-control-cse, .searchwrapper .gsc-control-cse  {
    padding: 0;
    border: none;
    width: 25ex;
}
.searchwrapper .cse .gsc-search-button input.gsc-search-button-v2, .searchwrapper input.gsc-search-button-v2 {
    padding: 2px 2px;
}
.searchwrapper form.gsc-search-box {
    margin: 0;
}
.searchwrapper table.gsc-search-box {
    margin: 0;
}
.searchwrapper .gsc-search-box-tools .gsc-search-box .gsc-input {
    padding: 0;
}
.searchwrapper .gsib_a {
    padding: 0 0 0 5px;
}
.searchwrapper .gsc-input-box {
    height: 3.0ex;
}
.searchwrapper form.gsc-search-box {
    font-size: 12px;
}

/* turn off the green parentheses Alex does not like */
.mathbook-content div.CodeMirror span.CodeMirror-matchingbracket {color: #090;}

.mathbook-content .image-archive {
    margin-left: auto;
    margin-right: auto;
    margin-bottom: auto;
    margin-top: 0.75em;
    padding-bottom: 0.25em;
    text-align: center;
}
.mathbook-content .image-archive > a {
    display: inline-block;
    padding-left: 0.5em;
    padding-right: 0.5em;
    font-family: monospace;
}
/*
.mathbook-content .image-archive > a:not(:last-child) {
    padding-right: 1em;
}
.mathbook-content .image-archive > a:not(:last-child):after {
    content: " ";
}
*/

/*
.mathbook-content .sbspanel object {
*/
/*
.mathbook-content .sbspanel object:not(:last-child) {
    margin-bottom: 0 !important;
}
*/

.mathbook-content iframe {
    border: none;
}

.mathbook-content .times-sign {
    font-size: larger;
    vertical-align: -0.15ex;
}
/* temporary for Mitch Keller.  delete at end of 2017 */
.mathbook-content div.knowl .posterior div a:first-child {
    font-style: italic;
}
/* temporary for Geogebra development: replace with a more
  restrictive selector for articles */
.mathbook-content article.notranslate {
    margin-top: 0;
}

/* sort of a hack for proof knows in theorem knowls */
.mathbook-content div.knowl .posterior a[knowl]:first-child {
    padding: 0;
}


/*
nested tasks. see
http://mathbook.pugetsound.edu/examples/sample-article/html/interesting-corollary.html
*/

.mathbook-content .exercise-like > .exercise-like {
    margin-left: 40px;
}
.mathbook-content .exercise-like > .exercise-like p {
    margin-top: 1.25em;
/*    margin-bottom: 0.25em; */
}
/*
.mathbook-content .exercise-like > .exercise-like > .heading + p::after {
    margin-bottom: 0.25em;
}
*/
.mathbook-content .example-like > .heading + .introduction {
    display: inline;
}
.mathbook-content .example-like > .heading + .introduction > p:first-child {
    display: inline;
}
.mathbook-content .example-like > .exercise-like p {
    margin-top: 1.25em;
/*    margin-bottom: 0.25em;  */
}
/*
.mathbook-content .example-like > .exercise-like > .heading + p::after {
    margin-bottom: 0.25em;
}
*/

/* not sure about these two.  there may be bad side-effects */
/*
.mathbook-content .example-like p {
    margin-top: 1.25em;
}
.mathbook-content .example-like ol, .mathbook-content .example-like ul {
    margin-top: 1.25em;
}
.mathbook-content .example-like > .heading + p::after {
    margin-bottom: 0.25em;
}
*/

/* end of nested tasks */

/* genus and species in italics */
.mathbook-content .taxon {
    font-style: italic;
}

/* Sage stuff */
.mathbook-content .sageanswer {
    font-family: monospace;
    white-space: pre;
    margin-left: 3em;
    margin-bottom: 2em;
} 
.mathbook-content .sageanswer .key {
    display: inline-block;
    vertical-align: top;
    margin-right: 1em;
}
.mathbook-content .sageanswer .output {
    display: inline-block;
    vertical-align: top;
}
.mathbook-content .CodeMirror-code pre.CodeMirror-line {
    padding-bottom: 5px;
}

/* to enable hovering over aside-like */
/* div.page, main.main, body.mathbook-article, */
body.mathbook-book, body.mathbook-article, .mathbook-content section.chapter, .mathbook-content section.introduction, .mathbook-content section.conclusion, .mathbook-content section.section, .mathbook-content section.subsection, .mathbook-content section.subsubsection, .mathbook-content article, #content.mathbook-content {
    pointer-events: none;
}
html nav, html header, .mathbook-content article.aside-like, .mathbook-content *,
body.mathbook-book .MathJax_Menu, body.mathbook-article .MathJax_Menu {
    pointer-events: auto;
}
.mathbook-content ol, .mathbook-content ul {
    pointer-events: none;
}
.mathbook-content ol li, .mathbook-content ul li {
    pointer-events: auto;
}
div, span, button,
.mathbook-content div, .mathbook-content span, .mathbook-content button {
    pointer-events: auto;
}

/* used when knowl content is hidden in the page */
.hidden-content {
    display: none;
}

/*
   See 10.1.8c in http://faculty.valpo.edu/calculus3ibl/ch10_01_gradient.html
and condider having this replace line 3338 of the general code (which uses .heading + p)
*/
.mathbook-content .example-like > .exercise-like > p:first-of-type {
    display: inline;
}
.mathbook-content .example-like > .exercise-like > .aside-like {
    margin-top: -3em;
}
.mathbook-content .example-like > .exercise-like > .aside-like.front {
    margin-top: 0;
}

.mathbook-content meta {
    display: none;
}

.mathbook-content .summary-links {
    margin-top: 4em;
}
.mathbook-content section + .summary-links {
    margin-top: 2em;
}
.mathbook-content .summary-links ul {
    list-style-type:none;
}
.mathbook-content .summary-links li {
    margin-top: 0;
}
.mathbook-content .summary-links a {
  position: relative;
  display: block;
  font-size: 1.5em;
  line-height: 1.25em;
  padding: 0.41667em 0.83333em;
  margin-top: 0.20833em;
/*
  margin-bottom: 0;
*/
  -webkit-border-radius: 3px;
  -moz-border-radius: 3px;
  -ms-border-radius: 3px;
  -o-border-radius: 3px;
  border-radius: 3px;
  padding-right: 2.06667em;
}
.mathbook-content .summary-links a:after {
  right: 0.83333em;
}
.mathbook-content .summary-links a:after {
  content: "";
  position: absolute;
  /* center vertically */
  top: 50%;
  margin-top: -0.4em;
  width: 0;
  height: 0;
  border-top: 0.4em solid transparent;
  border-bottom: 0.4em solid transparent;
  border-left: 0.4em solid #c9c9c9;
}
.mathbook-content .summary-links a, .mathbook-content .summary-links a:link, .mathbook-content .summary-links a:visited {
/*  color: #20477b; */
/*  background: #f0f0f0; */
  cursor: pointer;
}
.mathbook-content .summary-links a:hover:after {
  width: 0;
  height: 0;
  border-top: 0.4em solid transparent;
  border-bottom: 0.4em solid transparent;
  border-left: 0.4em solid white;
}
.mathbook-content .summary-links a {
  font-family: "PT Serif", "Times New Roman", Times, serif;
}
@media screen and (max-width: 480px) {
  .mathbook-content .summary-links a {
    font-size: 1em;
    line-height: 1.25em;
  }
}
.mathbook-content .summary-links a .codenumber {
/*  color: #707070; */
  margin-right: 0.41667em;
}


@media print {
    .navbar { display:none; }
    .has-sidebar-left #masthead #primary-navbar-sticky-wrapper { display:none; }
    .has-sidebar-left #masthead.smallbuttons {
        border:none;
    }
    .has-sidebar-left .page > #sidebar-left-sticky-wrapper { display:none; }
    .searchwrapper { display:none; }
    .has-sidebar-left.mathbook-loaded .page .main {
        margin-left:0;
        left:auto;
        border:none;
        box-shadow:none;
        padding: 0;
    }
    .has-sidebar-left.mathbook-loaded.sidebar-left-open .page .main #content { margin-top:0 }
    .has-sidebar-left.mathbook-loaded.sidebar-left-open .page .main #content.mathbook-content section { margin-top:1em }
    .has-sidebar-left.mathbook-loaded.sidebar-left-open .page .main #content.mathbook-content section .heading { margin-top:0 }
/*
    .has-sidebar-left.mathbook-loaded.sidebar-left-open .page .main {
        font-size: 0.85em;
    }
*/
}

/*
.has-sidebar-left.mathbook-loaded.sidebar-left-open .page .main { margin-left:0px; left:auto; }
*/

/* Colors for the above
.mathbook-content .summary-links a, .mathbook-content .summary-links a:link, .mathbook-content .summary-links a:visited {
  color: #20477b;
}

.mathbook-content .summary-links a:hover {
  color: white;
  background: #20477b;
}

.mathbook-content .summary-links a .codenumber {
  color: #707070;

*/

/* COLORS */

/* delete the first one of both as obsolete */
.mathbook-content a.xref,
.mathbook-content a.internal {
    color: #900;
}
.mathbook-content a.url,
.mathbook-content a.external {
    color: #22a;
}

/*
To delete when moving to pretextbook.org:

all .hidden-knowl-wrapper
*/

.ui-dialog.ui-widget.ui-widget-content.ui-corner-all.ui-draggable.ui-resizable {
    left: 0 !important;
    top: 0 !important;
}

/* for forward compatibility, repear all using .pretext-content selector */

.pretext-content pre {
    margin: 0;
    padding: 0;
    border: none;
}

/* p and other block-level elements should have space at the top, and not the bottom */
.pretext-content h1, .pretext-content h2, .pretext-content h3, .pretext-content h4, .pretext-content h5, .pretext-content h6 {
    margin: 0;
}
.pretext-content p {
    margin-top: 1.25em;
    margin-bottom: 0;
    line-height: 1.35;
}
.pretext-content td > p:first-child {
    margin-top: 0;
}
.pretext-content p.intertext {
    margin-top: -0.25em;
    text-indent: 0;
}

.pretext-content ol, .pretext-content ul {
    margin-bottom: 0;
}
.pretext-content li {
    margin-bottom: 0;
}
.pretext-content figure {
    margin-bottom: 0;
}


.pretext-content .heading {
    margin-top: 0;
    margin-bottom: 0;
}

.pretext-content section article {
    margin-top: 1.25em;
}
.pretext-content section article + article,
.pretext-content section .posterior + article {
    margin-top: 1.75em;
}
.pretext-content article + .hidden-knowl-wrapper {
    margin-top: 1em;
}
.pretext-content article + .posterior {
    margin-top: 0.5em;
}
.pretext-content section .proof {
    margin-top: 0.75em;
}
.pretext-content .sagecell {
    margin-top: 1.25em;
}

.pretext-content section > pre, .pretext-content p + pre {
    margin-top: 1.25em;
}

.pretext-content .conclusion {
    margin-top: 1em;
}
.pretext-content .conclusion > p:first-child {
    margin-top: 0.5em;
}

.pretext-content ol, .pretext-content ul {
    margin-top: 0.75em;
}
.pretext-content dl {
    margin-top: 1em;
}
.pretext-content li {
    margin-top: 0.5em;
}
.pretext-content li > p:first-child {
    margin-top: 0;
}
.pretext-content article p:first-child {
    margin-top: 0;
}

.pretext-content ol ol, .pretext-content ol ul,  .pretext-content ul ol, .pretext-content ul ul {
    margin-top: 0.5em;
}

.pretext-content ol p + p, .pretext-content ul p + p {
    margin-top: 1em;
}

.pretext-content dl dt, .pretext-content dl dd {
    margin-top: 1.5em;
}
.pretext-content dl dd p {
    margin-top: 1em;
}
.pretext-content dl dt > p:first-child, .pretext-content dl dd > p:first-child {
    margin-top: 0;
}

.pretext-content dl dt:first-of-type, .pretext-content dl dd:first-of-type {
    margin-top: 0;
}

.pretext-content .frontmatter > .heading {
    display: block;
    text-align: center;
}
.pretext-content .frontmatter > .heading .title, .pretext-content .book > .heading .title {
    font-size: 1.3em;
}
.pretext-content .frontmatter > .heading .subtitle, .pretext-content .book > .heading .subtitle {
    display: block;
    font-weight: normal;
    color: #666666;
    font-size: 0.875em;
    line-height: 1.42857em;
    margin-top: 0.35714em;
}

.pretext-content .frontmatter .author:first-of-type {
    margin-top: 4em;
}
.pretext-content .frontmatter > p:first-of-type {
    margin-top: 4em;
}
.pretext-content .frontmatter > .author,
.pretext-content .frontmatter > .credit {
    margin-top: 2em;
    text-align: center;
}
.pretext-content .frontmatter .date {
    display: block;
    margin-top: 2em;
    text-align: center;
}
.pretext-content .frontmatter .credit .title {
    font-size: 1em;
}
.pretext-content .frontmatter .credit .author {
    font-size: 0.9em;
}
.pretext-content .frontmatter .author-info {
    font-size: 90%;
}
.pretext-content .frontmatter a[href^="mailto:"] {
    font-size: 110%;
}
.pretext-content a[href^="mailto:"] {
    font-style: normal;
    font-family: monospace;
}
/* look into where .preface and .frontmatter are used */
.pretext-content .preface a[href^="mailto:"] {
    font-size: 110%;
}


.pretext-content article > .heading + p {
    margin-top: 0;
}
/* go back and delete the header case when no longer needed */
.pretext-content section .heading + p, .pretext-content section header + p,
.pretext-content section .heading + .introduction > p:first-child,
.pretext-content section .blob > p:first-child,
.pretext-content section .permalink + p {
    margin-top: 0.25em;
}
.pretext-content section .heading + article, .pretext-content section header + article {
    margin-top: 1em;
}

.pretext-content a > .heading { display: inline;}

.pretext-content section .heading,
.pretext-content article .heading {
    font-family: "PT Serif", "Times New Roman", Times, serif;
    font-weight: 700;
    color: inherit;
}
/*
.pretext-content a article .heading {
    font-weight: 500;
}
*/

.pretext-content section > .heading {
    font-size: 1.75em;
    line-height: 1.42857em;
    margin-top: 1em;
}
.pretext-content section section > .heading {
    font-size: 1.5em;
    line-height: 1.25em;
    margin-top: 1em;
}
.pretext-content section section section > .heading {
    font-size: 1.40em;
    line-height: 1.15em;
    margin-top: 0.75em;
}

.pretext-content section article > .heading,
.pretext-content section section article > .heading,
.pretext-content section article > a .heading,
.pretext-content section section article > a .heading,
.pretext-content .abstract > .heading {
    font-size: 1.125em;
    line-height: 1.125em;
    margin-top: 0;
    display: inline;
}
/* Currently only for Solution to example */
.pretext-content .posterior .heading {
    font-weight: normal;
    font-size: 1.125em;
    line-height: 1.125em;
    margin-top: 0;
}
/* trmporary: heading is not type */
.pretext-content section figcaption .heading, .pretext-content section section figcaption .heading {
    font-size: 1.125em;
    line-height: 1.125em;
    margin-top: 0;
}

.pretext-content .heading.hide-type > .type {
    display: none;
}

.pretext-content .heading > .type + .codenumber::before {
    content: " ";
}
.pretext-content section .heading > .codenumber:not(:empty) + .title::before {
    content: " \2009";
}


/*
 * Contents of articles
 */
.pretext-content section article .heading + p {
    display: inline;
}
/*
.pretext-content section article .heading + p .mjx-chtml,
.pretext-content section article .heading + p .mjx-math {
    display: inline !important;
}
*/
.pretext-content section article.assemblage-like .heading + p {
    display: block;
}
.pretext-content section article.theorem-like p,
.pretext-content section article.theorem-like li {
    font-style: italic;
}

/*
 *  .hiddenproof
 */

/* knowlified proofs are in an article.hiddenproof */
/* .pretext-content .hiddenproof .heading,   ???? can't happen, because the a does the hiding? */
.pretext-content .hiddenproof > a > .heading {
    font-style: italic;
    font-weight: normal;
}
.pretext-content .hiddenproof > a > .heading > .type::after {
    content: ".";
}
/*
.pretext-content .hiddenproof > a > .heading:after {
    content: ".";
}
*/

/*
  main knowls style
*/

/*
[knowl], [knowl]:hover, [knowl].active {
*/
[knowl] {
    display: inline;
    position: relative;
    cursor: pointer;
    color: #9c2310;
    padding: 0px 2px 0px 2px;
    margin: 0;
    text-decoration: none;
    margin-bottom: 1px;
/*
    margin-bottom: 0;
*/
    font-weight: 500;
    white-space: nowrap;
    border-bottom: none;
    -moz-border-radius-topleft: 3px;
    -webkit-border-top-left-radius: 3px;
    border-top-left-radius: 3px;
    -moz-border-radius-topright: 3px;
    -webkit-border-top-right-radius: 3px;
    border-top-right-radius: 3px;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
    -webkit-transition-property: background-color;
    -moz-transition-property: background-color;
    -o-transition-property: background-color;
    transition-property: background-color;
    -webkit-transition-duration: 0ms;
    -moz-transition-duration: 0ms;
    -o-transition-duration: 0ms;
    transition-duration: 0ms;
}

[knowl]:hover, [knowl]:active, [knowl].active {
    color: #8a1200;
    background: #ffedeb;
/*
    margin-bottom: 0;
*/
    border-bottom: none;
}

[knowl]::after, [knowl]:hover::after, [knowl].active::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 1px;
    right: 2.4px;
    left: 2.4px;
    border-bottom: 1px dotted #9c2310;
    -webkit-transition-property: left, right;
    -moz-transition-property: left, right;
    -o-transition-property: left, right;
    transition-property: left, right;
    -webkit-transition-duration: 0ms;
    -moz-transition-duration: 0ms;
    -o-transition-duration: 0ms;
    transition-duration: 0ms;
    z-index: 0;
}

.knowl-error {
   color: red;
   border-bottom: 0;
}
.knowl-output {
    background: #f5f5ff;
    border-top: 10px solid #ddf;
    border-left: 10px solid #ddf;
    border-right: 10px solid #ddf;
    border-bottom: 10px solid #ddf;
    border-top-left-radius: 10px;
    -moz-border-radius-topleft: 10px;
    border-bottom-left-radius: 10px;
    -moz-border-radius-bottomleft: 10px;
    border-bottom-right-radius: 10px;
    -moz-border-radius-bottomright: 10px;
    border-top-right-radius: 10px;
    -moz-border-radius-topright: 10px;
    display: none;
    display: none;
    padding: 0px;
    margin-top: 10px;
/*
    margin-bottom: 0px;
*/
    margin-right: 0px;

}
.knowl-output .knowl-output, .knowl-output .knowl-output.loading {
    margin-left: 0;
    margin-right: 0;
}
.knowl-output .knowl-output {
    border-width: 6px;
    background: #fffff5;
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    -ms-border-radius: 4px;
    -o-border-radius: 4px;
    border-radius: 4px;
    margin-bottom: -3px;
    margin-left: -7px;
    margin-right: -7px;
}
.knowl-output .knowl-output .knowl-output {
    background: #fff5fe;
    margin-bottom: 2px;
    margin-left: 2px;
    margin-right: 2px;
}
.knowl-output .knowl-output .knowl-output .knowl-output {
    background: #ffffff;
}
.knowl-footer {
  position: relative;
  bottom: -9px;
  font-size: x-small;
  background: #ddf;
  color: grey;
  padding: 0 0 0 12px;
  margin:  -10px 0 0 0;
}
.knowl-footer a {
  color: #006;
}
.knowl-footer a:hover {
  background: none;
  color: #88f;
}
.knowl-footer:after {
    content: "\2002";
}

.knowl-output .knowl-output .knowl-footer {
  bottom: -5px;
  margin:  -5px 0 0 0;
}

.knowl-output + .knowl-output {
    margin-top: 0;
}
.knowl-content {
    padding: 10px;
    padding-bottom: 7px;
}
.knowl-content > *:first-child {
    margin-top: 0;
}

/* this needs to be first, because we want any background to
   over-rule this.
   this is for the "layering" of asides and other
*/

.pretext-content p {
    background-color: #fff; 
/*    
    box-shadow: 0 0 0.5em 0.2em #fff;
    put this back after the major CSS refactor
*/
}
.pretext-content .heading {
    background-color: #fff; 
}
.pretext-content section > pre, .pretext-content p + pre {
    background-color: #fff; 
}

/* un-do the above for environments with colored background */
.pretext-content .assemblage-like p,
.pretext-content .assemblage-like .heading,
.pretext-content .assemblage-like pre,
.pretext-content .aside-like p,
.pretext-content .aside-like .heading,
.pretext-content .aside-like pre,
.pretext-content .knowl-output p, 
.pretext-content .knowl-output .heading,
.pretext-content .knowl-output pre,
.pretext-content *[knowl] p,
.pretext-content *[knowl] .heading,
.pretext-content *[knowl] pre {
    background-color: inherit; 
    box-shadow: none;
}

/* end of layering colors */

/*
Greg's L

The not(:first-child) is primarily for the case of a knowl that
contains only a theorem or definition.

In good writing, can a section start with a Theorem?
(apparently I think not)

*/

.pretext-content .proof > .heading {
  font-style: italic;
  font-weight: normal;
  /* It helps to have a little bit of extra space after proof */
  margin-right: 0.75em;
}

/* 
supplied by the general .type:after for headings
.pretext-content .proof > .heading:after {
  content: ". ";
}
*/

.pretext-content .proof {
  border-right: 1px solid #666;
  padding-right: 0.625em;
  margin-right: -0.725em;
}
.pretext-content .proof:after {
  content: '';
  border-bottom: 1px solid #666;
  display: block;
  margin-left: auto;
  margin-right: -0.625em;
  /* so the corner of the L meets */
  width: 1.5em;
  padding-bottom: 0.25em;
}

.pretext-content .proof .proof {
  margin-right: -0.2em;
  border-right: 1.5px solid #ddd;
}
.pretext-content .proof .proof:after {
  border-bottom: 1.5px solid #ddd;
  width: 1em;
}

.pretext-content article.theorem-like:not(:first-child),
.pretext-content article.definition-like:not(:first-child),
.pretext-content article.example-like:not(:first-child),
.pretext-content article.objectives:not(:first-child),
.pretext-content article.remark-like:not(:first-child) {
    padding-left: 0.4em;
    border-left: 1px solid #569;
}

.pretext-content article.theorem-like:not(:first-child)::after,
.pretext-content article.definition-like:not(:first-child)::after,
.pretext-content article.objectives:not(:first-child)::after,
.pretext-content article.example-like:not(:first-child)::after,
.pretext-content article.remark-like:not(:first-child)::after {
    content:'';
    border-bottom: 1px solid #569;
    display: block;
    margin-right: auto;
    margin-left: -0.4em;
    padding-top: 0.25em;
    width: 1.5em;
}




.pretext-content section p.credit + p.credit {
    margin-top: 0.25em;
}
.pretext-content section p.credit > .title {
    font-weight: 700;
    margin-right: 0.5em;
}
.pretext-content section p.credit > .title::after {
    content: ": ";
}

.pretext-content section p.copyright {
    margin-top: 2.5em;
}
.pretext-content section p.license {
    margin-top: 2.5em;
}

body > a.assistive {
	padding:6px;
	position: absolute;
	top:-40px;
	left:0px;
	color:white;
	border-right:1px solid white;
	border-bottom:1px solid white;
	border-bottom-right-radius:8px;
	background:transparent;
	-webkit-transition: top 1s ease-out, background 1s linear;
    transition: top 1s ease-out, background 1s linear;
    z-index: 100;
}

body > a.assistive:focus {
	position:absolute;
	left:0px;
	top:0px;
	background:#BF1722;
	outline:0;	
	-webkit-transition: top .1s ease-in, background .5s linear;
    transition: top .1s ease-in, background .5s linear;
}


#masthead .banner {
    border-bottom: 1px solid #d4d4d4;
    border-top: 1px solid transparent;
    overflow: hidden;
    padding-top: 0.625em;
    padding-bottom: 1.125em;
}

/* newer, small top nav buttons */
#masthead.smallbuttons #primary-navbar .navbar-top-buttons .toolbar-align-right .toolbar-item-middle {
    float: left;
    padding: 3px 6px 3px 6px;
    margin: 4px 10px 0px 10px;
    margin: 4px 10px 0px 195px;
    border: 1px solid #800;
    background-color: #ffe5e5;
    font-size: 90%;
}

#masthead.smallbuttons #primary-navbar .navbar-top-buttons .toolbar-align-right .toolbar-item-middle a {
    color: #024;
}

#masthead.smallbuttons {
    max-width: 904px;
    border-right: 1px solid #bababa;
}

/*
 * .navbar #primary-navbar {
 *     background: #fafafa;
 *         border-bottom: none;
 *         }
 *         */
#masthead.smallbuttons #primary-navbar .navbar-top-buttons {
    border-bottom: 1px solid #bababa;
}
#masthead.smallbuttons .banner {
    border-bottom: none;
}

#masthead.smallbuttons #primary-navbar .navbar-top-buttons .toolbar-divisor-3 .button {
    border-top: 1px solid #bababa;
}

#masthead.smallbuttons #primary-navbar .navbar-top-buttons .toolbar-divisor-3 {
    background-color: #fafafa;
}
#masthead.smallbuttons #primary-navbar .navbar-top-buttons .toolbar-divisor-3 .index-button {
    width: 70px;
    text-align: center;
    border-right: 1px solid #bababa;
}
#masthead.smallbuttons #primary-navbar .navbar-top-buttons .toolbar-divisor-3 .up-button {
    width: 60px;
    float: right;
    border-right: 1px solid #bababa;
}
#masthead.smallbuttons #primary-navbar .navbar-top-buttons .toolbar-divisor-3 .up-button:before {
    text-align: left;
    width: 20px;
}
#masthead.smallbuttons #primary-navbar .navbar-top-buttons .toolbar-divisor-3 .previous-button.toolbar-item {
    width: 70px;
    border-right: none;
    float: right;
}
/* extra .toolbar-item to overrive mathbook-add-on */
#masthead.smallbuttons #primary-navbar .navbar-top-buttons .toolbar-divisor-3 .previous-button.toolbar-item {
    border-left: 1px solid #bababa;
    padding-right: 3px;
}
#masthead.smallbuttons #primary-navbar .navbar-top-buttons .toolbar-divisor-3 .next-button {
    width: 70px;
    float: right;
    border-right: 1px solid #bababa;
}
#masthead.smallbuttons #primary-navbar .previous-button::before {
    width: 27px;
}
#masthead.smallbuttons #primary-navbar .next-button::after {
    width: 25px;
}

#masthead.smallbuttons #primary-navbar .threebuttons {
    float: right;
}

#masthead.smallbuttons #primary-navbar .navbar-top-buttons .toolbar-divisor-3 .threebuttons .next-button, #masthead.smallbuttons #primary-navbar .navbar-top-buttons .toolbar-divisor-3 .threebuttons .up-button, #masthead.smallbuttons #primary-navbar .navbar-top-buttons .toolbar-divisor-3 .threebuttons .previous-button {
    float: left;
}

.collectedworks .knowl-output {
    border: 12px 
    solid #D6E3FF;
    background: none repeat scroll 0% 0% #FAFCFF;
    border-radius: 4px;
    margin-bottom: 1.25em;
}

.collectedworks .subjectwork {
    max-width: 750px;
}

.collectedworks .bib {
    margin-bottom: 1em;
}

.collectedworks .bibitem + .bibentry {
    display: inline;
}

.collectedworks .bibitem {
    display: inline;
    font-weight: bold;
    margin-right: 1em;
}
.collectedworks .work .title a {
    text-decoration: none;
    color: #009;
}
.collectedworks .work .title {
}

/* see http://mathbook.pugetsound.edu/examples/sample-book/html/references-1.html */
.pretext-content .bibitem + .bibentry {
    display: inline-block;
    width: 90%;
}
.pretext-content .bibitem {
    display: inline-block;
    vertical-align: top;
    width: 7%;
    margin-right: 0;
}
/*
.pretext-content .bibitem {
    float: left;
}
.pretext-content .bibitem {
    clear: left;
}
*/

#primary-navbar .navbar-top-buttons .toolbar-align-right .toolbar-item {
   /* for the prev/next svg from SL2X */
    margin-top: -8px;
    border-left: 0;
}

#primary-navbar .navbar-top-buttons .toolbar-align-right {
   /* also for the prev/next svg from SL2X */
    border-right: 0;
}

#primary-navbar .navbar-top-buttons .toolbar-align-right .toolbar-item-left {
    float: left;
    padding: 3px 6px 3px 6px;
    margin: 4px 10px 0px 5px;
    border: 1px solid #aaf;
    background-color: #def;
/*
    border: 1px solid #aaf;
    margin: 8px 10px 0px 10px;
*/
    font-size: 90%;
}

#primary-navbar .navbar-top-buttons .toolbar-align-right .toolbar-item-left a {
    color: #00a;
/*
    padding: 3px 6px 3px 6px;
    margin: 4px 10px 0px 5px;
    margin: 0;
    border: 1px solid #aaf;
    background-color: #def;
*/
}


#feedback {position: relative;
        margin-top: 30px; /* negative value of footer height */
        height: 30px;
        margin-left: 30px;
        font-size: 70%;
        text-align: bottom;
        clear:both;
} 

.pretext-content figcaption {
    font-weight: normal;
}

.pretext-content figcaption {
    margin-top: 10px;
    margin-left: auto;
    margin-right: auto;
/*  Commenting this out because the initial letter of some captions were cut off
    text-indent: -30px;
*/
}

/* delete the figcaption .heading once refactoring is complete */
.pretext-content figcaption .heading,
.pretext-content section figcaption .heading,
.pretext-content section figcaption .codenumber,
.pretext-content section figcaption .type {
    font-weight: 700;
    font-size: inherit;
}

.pretext-content figcaption .heading + .codenumber::before,
.pretext-content figcaption .type + .codenumber::before {
    content: " ";
}

.pretext-content figcaption .codenumber:after {
    content: ".\2002";  /* en space */
}

.pretext-content figcaption .codenumber:last-child:after {
    display: inline;
    content: ". ";
}

.pretext-content .definition-like p > em {
    font-weight: 700;
}
.pretext-content em.alert {
    font-weight: bold;
}

.unprocessed {
    padding: 8px;
    background-color: rgb(255,230,230)
}

.unprocessed .unprocessed {
    margin: 8px;
    background-color: rgb(255,200,255)
}

.unprocessed .unprocessed .unprocessed {
    margin: 8px;
    background-color: rgb(205,205,255)
}

/* does this apply anywhere? */

/*
*[knowl] {
  border-bottom: 1px dotted #00a;
}
*/

#toc h2 + h2 {
    margin-top: 0.3em;
}

h2:last-child {
/* for the chapter pages with section links at the bottom */
    margin-bottom: 100px;
}

.pretext-content section.introduction + section {
    margin-top: 2em;
}

.pretext-content {
    margin: 0;
}

.pretext-content .paragraphs .heading {
    display: inline;
}

.pretext-content .paragraphs .heading .title:not(:empty):after {
    content: ".\2002";  /* en space */
}

.pretext-content .paragraphs .heading + p {
    display: inline;
}

/* obsolete once paragraph spacing refactored */
.pretext-content .paragraphs .heading + p:after {
    content: "";
    display: block;
    margin-bottom: 1.25em;
}
/*
.pretext-content .paragraphs p:last-child::after {
    margin-bottom: 0;
}
*/


/* the next are to avoid styping a p as inline, because
 * inline styling messes up the meaning of line-height.
 * */

.pretext-content .paragraphs p .title {
    font-family: "PT Serif", "Times New Roman", Times, serif;
    font-size: 1.125em;
    font-weight: 700;
}

.pretext-content .paragraphs p .title:after {
    content: ".\2002";
}

.pretext-content .paragraphs p .heading {
    display: inline;
}

.pretext-content section .paragraphs .heading {
    margin-top: 0;
}

/*
.pretext-content section .paragraphs {
    margin-top: 0em;
}
*/

.pretext-content section .paragraphs + .paragraphs {
    margin-top: 3em;
}

.pretext-content h6 {
    line-height: 1em;
}

.pretext-content .sidebyside > p, .pretext-content .sidebyside > figure, .pretext-content .sidebyside > img, .pretext-content .sidebyside > table, .pretext-content .sidebyside > tabular, .pretext-content .sidebyside > .paragraphs {
    display: inline-block;
    margin: 0;
}

.pretext-content .sidebyside > figure:after {
     content:'';
}

.pretext-content .sidebyside figcaption {
    padding-left: 1em; 
    padding-right: 0;
    padding-bottom: 0;
    margin: 0.75em 0 0 0;
}

.pretext-content .sidebyside figcaption .heading, .pretext-content .sidebyside figcaption .codenumber {
    font-weight: 700;
}

.pretext-content .sidebyside figcaption .heading:after {
    content: "\00a0";
}

.pretext-content figcaption .codenumber{
    font-family: "PT Serif", "Times New Roman", Times, serif;
}
.pretext-content .sidebyside figcaption .codenumber:after {
    content: ".\2002";  /* en space */
}

.pretext-content .sidebyside figcaption .codenumber:last-child:after {
    display: inline;
    content: ". ";
}


.pretext-content .sidebyside > p {   /* what about sbspanel? */
    width: 32%;
    vertical-align: top;
}

.pretext-content .sidebyside > p.left, .pretext-content .sidebyside > p.middle, .pretext-content .sidebyside > p.right {
    vertical-align: middle;
}

.pretext-content .sidebyside > p + img {
    vertical-align: middle;
}

/*
.pretext-content .sidebyside {
    margin-bottom: 0;
}
.pretext-content .sidebyside p:only-child {
    margin-bottom: 0;
}
.pretext-content .sidebyside p:last-child {
    margin-bottom: 0;
}
*/


.pretext-content .sidebyside .sbsrow .sbsheader {
    margin-top: 0;
}

.pretext-content .sbsgroup {
    width: 100%;
}

.pretext-content .sidebyside {
    width: 100%;
}

/* see Ex 29 https://yoshiwarabooks.org/linear-functions.html 
and ex 2.91 in 
https://yoshiwarabooks.org/mfg/MathModels.html */
.pretext-content p + .sidebyside,
.pretext-content ol + .sidebyside,
.pretext-content ul + .sidebyside {
    margin-top: 1em;
}

.pretext-content .sbsrow {
    display: flex;
    justify-content: space-between;
}
/*
.pretext-content .sbsrow:last-child {
    padding-bottom: 1em;
}
*/

/* Components of three types of "sbsrow" */

/* titles, totally centered text */
.pretext-content .sbsheader {
    text-align: center;
    justify-content: center;
    font-size: 1em;
}

/* containers of desired width for actual content */
.pretext-content .sbspanel {
    display: flex;
    flex-direction: column;
}
.pretext-content .sbspanel > p:first-child {
    margin-top: 0;
}

/* fixed-width items are centered horizontally in their panel */
/* always used in conjunction with sbspanel                   */
.pretext-content .fixed-width {
    align-items: center;
}

/* captions, centered until word-wrapped */
.pretext-content .sbscaption {
/*
    display: flex;
*/
    justify-content: center;
}





.pretext-content table {
    border-spacing: 0;
}

.pretext-content table {
    border-collapse: collapse;
}

.pretext-content table tr td {
    padding-top: 2px;
    padding-bottom: 2px;
    padding-left: 5px;
    padding-right: 5px;
    font-size: 90%;
}

.pretext-content table tr td.l {
    text-align: left;
}
.pretext-content table tr td.c {
    text-align: center;
}
.pretext-content table tr td.r {
    text-align: right;
}
.pretext-content table tr td.j {
    text-align: justify;
}
.pretext-content table tr td.lines {
        white-space: nowrap;
}


.pretext-content table tr td.t {
    vertical-align: top;
}
.pretext-content table tr td.b {
    vertical-align: bottom;
}
.pretext-content table tr td.m {
    vertical-align: middle;
}

.pretext-content table tr td.vv {
    border-left: 2px solid #000;
    border-right: 2px solid #000;
}

.pretext-content table tr td.vcv {
    border-left: 2px solid #000;
    border-right: 2px solid #000;
    text-align: center;
}

.pretext-content table tr td.vcvv {
    border-left: 2px solid #000;
    border-right: 4px solid #000;
    text-align: center;
}

.pretext-content table tr td.vlv {
    border-left: 2px solid #000;
    border-right: 2px solid #000;
    text-align: left;
}

.pretext-content table tr td.vrv {
    border-left: 2px solid #000;
    border-right: 2px solid #000;
    text-align: right;
}

.pretext-content table tr td.rv {
    border-right: 2px solid #000;
    text-align: right;
}

.pretext-content table tr td.vr {
    border-left: 2px solid #000;
    text-align: right;
}

.pretext-content table tr td.lv {
    border-right: 2px solid #000;
    text-align: left;
}

.pretext-content table tr td.vl {
    border-left: 2px solid #000;
    text-align: left;
}
.pretext-content table tr td.cv {
    border-right: 2px solid #000;
    text-align: center;
}

.pretext-content table tr td.Xv {
    border-right: 2px solid #000;
    text-align: left;
}

.pretext-content table tr td.vc {
    border-left: 2px solid #000;
    text-align: center;
}

.pretext-content table tr td.hline {
    padding: 0;
}

.pretext-content table tr td.hlinethick {

    padding-left: 0px;
    padding-right: 0px;

}

.pretext-content table tr td.hline hr  {

    margin-top:0;
    margin-bottom:0;
    margin-left: -1px;
    margin-right: -1px;
    border: 1px solid rgb(0,0,0);

}

.pretext-content table tr td.hlinethick hr  {

    margin-top:0;
    margin-bottom:0;
    margin-left: -1px;
    margin-right: -1px;
    border: 2px solid rgb(0,0,0);

}


.center table { 
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}


.pretext-content table tr td.b1 {
    border-bottom: 1px solid #000;
}
.pretext-content table tr td.b2 {
    border-bottom: 2px solid #000;
}
.pretext-content table tr td.b3 {
    border-bottom: 3px solid #000;
}
.pretext-content table tr td.b0 {
    border-bottom: none;
}

.pretext-content table tr td.t1 {
    border-top: 1px solid #000;
}
.pretext-content table tr td.t2 {
    border-top: 2px solid #000;
}
.pretext-content table tr td.t3 {
    border-top: 3px solid #000;
}
.pretext-content table tr td.t0 {
    border-top: none;
}

.pretext-content table tr td.r1 {
    border-right: 1px solid #000;
}
.pretext-content table tr td.r2 {
    border-right: 2px solid #000;
}
.pretext-content table tr td.r3 {
    border-right: 3px solid #000;
}
.pretext-content table tr td.r0 {
    border-right: none;
}


.pretext-content table tr td.l1 {
    border-left: 1px solid #000;
}
.pretext-content table tr td.l2 {
    border-left: 2px solid #000;
}
.pretext-content table tr td.l3 {
    border-left: 3px solid #000;
}
.pretext-content table tr td.l0 {
    border-left: none;
}

.pretext-content table tr td p + p {
    margin-top: 1em;
}

.pretext-content table + p {
    margin-top: 1.5em;
}

.pretext-content table tr td span.decimal {
    float: left;
    text-align: right;
}

.pretext-content table + article {
    margin-top: 1em;
}

.pretext-content .hidden-knowl-wrapper .hiddenproof,
.pretext-content section > article.hiddenproof,
.pretext-content .blob > article.hiddenproof  {
    margin-top: 0.3em;
}

.pretext-content .hidden-knowl-wrapper article {
    display: inline;
}

/*
.pretext-content .hiddenproof > .heading::after {
    content: "."
}
*/

.apretext-content figure.figure-like {
    overflow: auto;
}
.pretext-content figure.figure-like {
    margin-left: auto;
    margin-right: auto;
}
.pretext-content p + figure.figure-like > table {
    margin-top: 1em;
}
/*
.pretext-content .sbscaption {
    width: 100%! important;
}
*/

.pretext-content figure.figure-like figcaption {
    overflow: hidden;
}

/* not sure where this was being used, but it made short knowls
 * look bad, like the hint here:
 * SAFurtherReading.html
.pretext-content .knowl-output .knowl-content {
    margin-bottom: 0.5em;
}
*/

/*
.pretext-content tt {
    font-size: 1.4em;
    font-size: 110%;
    margin-left: 0.2em;
    margin-right: 0.2em;
}
*/
.pretext-content a > tt {
    font-size: 110%;
}

.pretext-content section .videolink a:link {
    background-size: 0;
}

.pretext-content .exercise-like ol li table {
    margin-bottom: 0.5em;
}

.pretext-content .exercise-like > ol li + li {
    margin-top: 0.5em;
}
.pretext-content .solution > ol li + li {
    margin-top: 0.5em;
}

/* this should be obsolete, because the permalink is outside of the .heading */
.pretext-content section .heading a.permalink {
    opacity: 0.1;
    font-size: 70%;
    color: #d00;
    display: inline-block;
}

.pretext-content section .heading {
  display: inline-block;
}
.pretext-content section .heading + a.permalink {
    opacity: 0.2;
    color: #d00;
    font-weight: bold;
    display: inline-block;
    margin-left: 0.5em;
}
.pretext-content section section .heading + a.permalink {
    font-size: 90%;
}
.pretext-content section section section .heading + a.permalink {
    font-size: 80%;
}

.pretext-content .heading a.permalink:hover {
    opacity: 1;
    color: #a32;
}

/*
.pretext-content .heading a.permalink:hover:after {
    opacity: 1;
}
*/

.pretext-content .heading a.permalink:focus {
    opacity: 1;
    color: #a32;
}
/*
.pretext-content .heading a.permalink:focus:after {
    opacity: 1;
}
*/

.mininav {
    float: left;
    padding-top: 0.7ex;
    padding-left: 1ex;
}
.indexnav {
    margin-left: 1.5ex;
    margin-top: 0.2ex;
    padding-top: 0;
/*    display: inline;
 *      *    */
    float: left;
    line-height: 0.95;
}

.indexnav a {
    padding-left: 2.5px;
    width: 2.5ex;
/*
 *  *  omitted, because we put a space in the source
 *      padding-right: 3px;
 *      */
    margin-right: -1px;
    color: inherit;
    font-size: 80%;
    display: inline-block;
    text-align: center;
}
.indexnav a::after{
    content: "";
    display: inline-block;
}
.indexnav a:nth-of-type(14){
    padding-left: 1.8ex;
}

.indexnav a:hover {
    background: #eeaaff;
}



.pretext-content .indexitem {
    margin-top: 2px;
}

.pretext-content .subindexitem {
    margin-left: 2em;
    font-size: 95%;
    margin-top: -1px;
}

.pretext-content .subsubindexitem {
    margin-left: 3.5em;
    font-size: 95%;
    margin-top: -1px;
}

.pretext-content .indexknowl {
    margin-left: 0.11em;
}
.pretext-content em + .indexknowl  {
    margin-left: -0.25em;
}
.pretext-content .indexknowl a {
    margin-left: 2em;
}
.pretext-content .indexitem i,
.pretext-content .subindexitem i,
.pretext-content .subsubindexitem i {
    margin-left: 1em;
    margin-right: 0.25em;
}

/* temporary, to over-ride the misguided .indexitem i  above */
.pretext-content b i {
    margin: 0 !important;
}

.pretext-content .indexitem .see,
.pretext-content .subindexitem .see,
.pretext-content .subsubindexitem .see {
    margin-left: 1em;
    margin-right: 0.5em;
}

.pretext-content .indexitem .indexknowl {
    font-size: 90%;
}

/*
.pretext-content .indexitem a {
    font-size: 90%;
}
*/

.pretext-content .indexitem [knowl], .pretext-content .subindexitem [knowl], .pretext-content .indexitem [knowl]:hover {
    padding-right: 2px;
    padding-left: 2px;
}
.pretext-content .indexknowl [knowl]:hover, .pretext-content .indexknowl .active[knowl] {
    margin-left: 2em;
}

.pretext-content .subindexitem .indexknowl {
    font-size: 95%;
}
.pretext-content .subsubindexitem .indexknowl {
    font-size: 95%;
}

/*
.pretext-content .indexletter {
    margin-top: 1em;
    font-size: 170%;
    font-weight: bold;
}
*/
.pretext-content .indexletter {
    margin-top: 1.5em;
}

/*
.pretext-content .indexknowl + .indexknowl{
    margin-left: 1em;
}
*/

/*
.pretext-content section #hk-exercise-essay article {
    display: inline;
}
*/

.pretext-content .hidden-knowl-wrapper .heading {
    display: inline;
}
.pretext-content .heading + .hidden-knowl-wrapper {
    display: inline;
}
/*
.pretext-content article .hidden-knowl-wrapper:first-of-type {
    display: inline;
}
.pretext-content article .hidden-knowl-wrapper {
    margin-top: 1em;
}
*/

.pretext-content .cols2 .knowl-output, .pretext-content .cols3 .knowl-output, .pretext-content .cols4 .knowl-output, .pretext-content .cols5 .knowl-output, .pretext-content .cols5 .knowl-output {
    width: 100%;
}

.pretext-content .cols2 + *, .pretext-content .cols3 + *, .pretext-content .cols4 + *, .pretext-content .cols5 + *, .pretext-content .cols6 + * {
    clear: both;
}
 /*
.pretext-content .cols2 > li:last-child, .pretext-content .cols3 > li:last-child, .pretext-content .cols4 > li:last-child, .pretext-content .cols5 > li:last-child, .pretext-content .cols6 > li:last-child{
    margin-bottom: 1.5em;
}
*/

.pretext-content section > ol:last-child,
.pretext-content section > ul:last-child {
    margin-bottom: 1.5em;
}

.pretext-content .cols2:last-child::after, .pretext-content .cols3:last-child::after, .pretext-content .cols4:last-child::after, .pretext-content .cols5:last-child::after, .pretext-content .cols6:last-child::after {
    content: "";
    display: block;
    clear: both;
}

.pretext-content .cols2 > li:nth-child(2n+1),
.pretext-content .cols3 > li:nth-child(3n+1),
.pretext-content .cols4 > li:nth-child(4n+1),
.pretext-content .cols5 > li:nth-child(5n+1),
.pretext-content .cols6 > li:nth-child(6n+1) {
    clear: left;
}
/* need to repeat for .colsN */
.pretext-content .exercise-like ol.cols2 li {
    margin-top: 0.5em;
}

.pretext-content .cols2 > li,
.pretext-content .cols3 > li,
.pretext-content .cols4 > li,
.pretext-content .cols5 > li,
.pretext-content .cols6 > li {
    float: left;
}

.pretext-content .cols2 > li { width: 49%; }
.pretext-content .cols3 > li { width: 33%; }
.pretext-content .cols4 > li { width: 24.5%; }
.pretext-content .cols5 > li { width: 19.5%; }
.pretext-content .cols6 > li { width: 16.3%; }

/* 1.25 = ol top + li top ?  looked too big with 0.75 below */
.pretext-content .exercise-like p + ol {  
    margin-top: 0.5em;
}
/*
.pretext-content .exercise-like ol {  
    margin-bottom: 0;
}
*/

.pretext-content .incontext {
    display: block;
    font-size: 85%;
    text-align: right;
/*    margin-bottom: -1.0em;
*/
}

.pretext-content .terminology {
  font-style: italic;
  font-weight: bold;
}

/* the "pink flash" when navigating to a target
*/
:target {
    -webkit-animation: target-fade 10s 1;
    -moz-animation: target-fade 10s 1;
}

@-webkit-keyframes target-fade {
    0% { background-color: rgba(120,0,120,.3); }
    100% { background-color: inherit;
           opacity: 1; }
}
@-moz-keyframes target-fade {
    0% { background-color: rgba(120,0,120,.3); }
    100% { background-color: inherit;
           opacity: 1; }
}

/*
.pretext-content .autoterm {
    display: inline;
}
*/

.pretext-content .autoterm [knowl], .pretext-content .autoterm [knowl]:after {
    font-weight: inherit;
    color: inherit;
    padding: 0;
    margin-bottom: inherit;
    border-bottom: inherit;
    border-bottom-color: inherit;
}

/*
.pretext-content .autoterm [knowl]:hover {
    background: inherit;
    border-bottom: inherit;
}

.pretext-content .autoterm [knowl]:hover {
    background: #eebbff;
    border-bottom: 1px dotted red;
}
*/

/*
.pretext-content .autoterm .active[knowl] {
    background: inherit;
}
*/

.pretext-content .autoterm [knowl]:hover {
    background: #ffddff;
    border-top: 2px dotted purple;
    border-bottom: 1px dotted red;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

.has-sidebar-left #primary-navbar-sticky-wrapper .navbar-top-buttons .toolbar, .has-sidebar-left #primary-navbar .navbar-top-buttons .toolbar {
     border-right: 0;
}

#primary-navbar .toolbar.toolbar-divisor-3 > .toolbar-item:last-child, #primary-navbar-sticky-wrapper .toolbar.toolbar-divisor-3 > .toolbar-item:last-child {
    border-right: 1px solid #bababa;
}

.pretext-content ol li.custom-list-style-type {
    list-style-type: none;
}

.pretext-content ol li.custom-list-style-type:before {
     content: attr(label) "\00A0\00A0 ";
}

.pretext-content ol.decimal {
    list-style-type: decimal;
}
.pretext-content ol.lower-alpha {
    list-style-type: lower-alpha;
}
.pretext-content ol.upper-alpha {
    list-style-type: upper-alpha;
}
.pretext-content ol.lower-roman {
    list-style-type: lower-roman;
}
.pretext-content ol.upper-roman {
    list-style-type: upper-roman;
}
.pretext-content ul.disc {
    list-style-type: disc;
}
.pretext-content ul.square {
    list-style-type: square;
}
.pretext-content ul.circle {
    list-style-type: circle;
}
.pretext-content ol.no-marker,
.pretext-content ul.no-marker {
    list-style-type: none;
}

/* The dl should behave more like the default on a narrow screen,
 * with the term and definition on separate lines.
 */

.pretext-content dl.description-list {
    margin-left: 0;
}

.pretext-content dl dt {
        font-weight: bold;
}

.pretext-content dl.description-list dt {
    float: left;
    clear: left;
    text-align: right;
    width: 18ex;
}
.pretext-content dl.description-list dd {
    margin-left: 22ex;
}

.pretext-content dl.description-list dd dt {
    width: 14ex;
}
.pretext-content dl.description-list dd dd {
    margin-left: 18ex;
}

.pretext-content dl.description-list dd:after {
    content: "";
    display: block;
    clear: left;
}

.pretext-content dl.description-list-narrow {
    margin-left: 0;
}
.pretext-content dl.description-list-narrow dt {
    float: left;
    clear: left;
    text-align: right;
    width: 8ex;
}
.pretext-content dl.description-list-narrow dd {
    margin-left: 12ex;
}
.pretext-content dl.description-list-narrow dd:after {
    content: "";
    display: block;
    clear: left;
}

/*
#toc ul li.listprefix {
    list-style-type: none;
    display: inline-block;
}

#toc ul li.listprefix:before {
     content: attr(label) "\00A0\00A0 ";
     display: inline-block;
}
*/

/*
.pretext-content .knowl .definition-like:last-child, .pretext-content .knowl .theorem-like:last-child, .pretext-content .knowl .remark-like:last-child, .pretext-content .knowl .example-like:last-child, .pretext-content .knowl .exercise-like:last-child, .pretext-content .knowl .objectives:last-child {
    margin-bottom: 0.3em;
}
*/

/* to stop things being blue when rendering MathJax with SVG */
a.mjx-svg-href  {
    fill: inherit;
    stroke: inherit;
}

/* for long math formulas and tables to scroll on small screens */
@media screen and (max-width: 943px) {
  /* adapted from line 192, ../../../../../MathBook/mathbook-assets/scss/ui/mixins/_sliding-sidebars.scss */
  .pretext-content .mjx-chtml.MJXc-display {
    /*Allow users on smaller screens to scroll equations*/
    /*horizontally when they don't fit on the screen*/
    overflow-x: auto;
    overflow-y: hidden;
  }
  .pretext-content .figure-like {
    overflow-x: auto;
}
}

/* o show wide equation overflow even when no scroll bars,
from Jiří Lebl */
/*
.MJXc-display, .figure-like {
*/
.pretext-content .MJXc-display, .pretext-content .knowl-output .knowl-output .knowl-output .knowl-output .MJXc-display ,
.pretext-content pre.prettyprint,
.pretext-content pre.plainprint {
    background-image: linear-gradient(to right, white, white), linear-gradient(to right, white, white), linear-gradient(to right, rgba(0,0,0,.25), rgba(255,255,255,0)), linear-gradient(to left, rgba(0,0,0,.25), rgba(255,255,255,0));
    background-position: left center, right center, left center, right center;
    background-repeat: no-repeat;
    background-color: inherit;
    background-size: 20px 100%, 20px 100%, 10px 100%, 10px 100%;
    background-attachment: local, local, scroll, scroll;
}
.pretext-content .knowl-output .MJXc-display {
    background-image: none;
    background-image: linear-gradient(to right, #f5f5ff, #f5f5ff), linear-gradient(to right, #f5f5ff, #f5f5ff), linear-gradient(to right, rgba(0,0,0,.25), rgba(243,243,255,0)), linear-gradient(to left, rgba(0,0,0,.25), rgba(243,243,255,0));
}
.pretext-content .assemblage-like .MJXc-display {
    background-image: none;
    background-image: linear-gradient(to right, #f4f4fe, #f4f4fe), linear-gradient(to right, #f4f4fe, #f4f4fe), linear-gradient(to right, rgba(0,0,0,.25), rgba(242,242,254,0)), linear-gradient(to left, rgba(0,0,0,.25), rgba(242,242,254,0));
}


.pretext-content .knowl-output .knowl-output .MJXc-display {
    background-image: none;
    background-image: linear-gradient(to right, #fffff5, #fffff5), linear-gradient(to right, #fffff5, #fffff5), linear-gradient(to right, rgba(0,0,0,.25), rgba(255,255,243,0)), linear-gradient(to left, rgba(0,0,0,.25), rgba(255,255,243,0));
}
.pretext-content .knowl-output .knowl-output .knowl-output .MJXc-display {
    background-image: none;
    background-image: linear-gradient(to right, #fff5fe, #fff5fe), linear-gradient(to right, #fff5fe, #fff5fe), linear-gradient(to right, rgba(0,0,0,.25), rgba(255,243,254,0)), linear-gradient(to left, rgba(0,0,0,.25), rgba(255,243,254,0));
}


/*  http://sites.wcsu.edu/mbxml/OER_Linear_Alg/glossary.html
   to fix the extra margin on top of the next term when
   the previous definition ends in display math
   May need to make less specific
*/
.pretext-content dd .displaymath:last-child .MJXc-display {
    margin-bottom: 0;
}

.floatnav {
    margin-top: 8px;
    margin-left: 50px;
}

.floatnav a {
    padding-left: 3px;
/*
 *  omitted, because we put a space in the source
    padding-right: 3px;
*/
    margin-right: -1px;
    color: inherit;
}

/* to allow big math in knowl links */
/*
.pretext-content .hidden-knowl-wrapper a .mjx-chtml {
*/
/* main page of sample book */
/*
.pretext-content a .mjx-chtml {
    background: inherit;
}
*/
/* Example 4.8 of sample article (compare main page of sample book (4^{th} edition)`*/
.pretext-content a .heading .mjx-chtml {
    z-index: 1;
    background: #fff;
}
.pretext-content .hidden-knowl-wrapper [knowl]::after, .pretext-content .hidden-knowl-wrapper [knowl]:hover::after, .pretext-content .hidden-knowl-wrapper .active[knowl]::after {
    right: 7px;
}

.floatnav a:hover {
    background: #eeaaff;
}

.pretext-content .unselectable {  /* from Alex Jordan */
  -webkit-touch-callout: none; /* iOS Safari */
  -webkit-user-select: none;   /* Chrome/Safari/Opera */
  -khtml-user-select: none;    /* Konqueror */
  -moz-user-select: none;      /* Firefox */
  -ms-user-select: none;       /* Internet Explorer/Edge */
  user-select: none;           /* Non-prefixed version, currently
                                  not supported by any browser */
}

/* Adapted from William Hammond (attributed to David Carlisle) */
/* "mathjax-users" Google Group, 2015-12-27 */

.pretext-content .latex-logo {font-family: "PT Serif", "Times New Roman", Times, serif;}

.pretext-content .latex-logo .A {font-size: 75%; text-transform: uppercase; vertical-align: .5ex;
         margin-left: -.48em; margin-right: -.2em;}

.pretext-content .latex-logo .E {vertical-align:-.5ex; text-transform: uppercase;
         margin-left: -.18em; margin-right: -.12em; }

/*
.pretext-content .posterior {
    margin-bottom: 1.25em;
}
*/

.pretext-content .fillin {
    display: inline-block;
    border-bottom-style: solid;
    border-width: 1px;
    margin-right: 0.1em;
    margin-bottom: -0.25em;
}

.pretext-content .exercisegroup {
    margin-bottom: 1.0em;
}
.pretext-content section .exercisegroup > .heading {
    font-size: 1.10em;
    line-height: 1.05em;
    margin-top: 0.75em;
}

.pretext-content .exercisegroup article.exercise-like p {
    margin-top: 0.5em;
}
.pretext-content .exercisegroup article.exercise-like li > p:first-child {
    margin-top: 0;
}

.pretext-content .exercisegroup article.exercise-like .heading {
    margin: 0;
}
.pretext-content .exercisegroup .conclusion .heading {
    margin-top: 0.5em;
}
.pretext-content .exercisegroup .hidden-knowl-wrapper {
    margin: 0;
}
/*
.pretext-content .exercisegroup .exercise-like .heading + p:after {
    margin: 0;
}
.pretext-content .exercisegroup .introduction .heading + p:last-child {
    margin-bottom: 0.5em;
}
*/
.pretext-content .exercisegroup article + article {
    margin-top: 1em;
}

.pretext-content .exercises .exercise-like figcaption .heading {
    font-weight: bold;
    font-size: inherit;
}
/* for titles on APEX WW exercises, but should make sense for other exercises */
.pretext-content .exercises .exercise-like .heading {
    font-weight: normal;
    font-size: inherit;
}

/* http://spot.pcc.edu/math/APEXCalculus/sec_interp_deriv.html */
.pretext-content .exercisegroup > article,
.pretext-content .exercisegroup-exercises > article {
    margin-left: 2em;
}
.pretext-content .exercisegroup > .introduction,
.pretext-content .exercisegroup > .conclusion {
    margin-left: 0;
}

.pretext-content .exercisegroup article + .hidden-knowl-wrapper {
    margin-left: 4em;
}

/* make it look like a list, and have entra indenting when already more indented */
.pretext-content .exercise-like .introduction + .hidden-knowl-wrapper,
.pretext-content .exercise-like .conclusion {
    margin-left: 1.0em;
}
.pretext-content .exercisegroup .exercise-like .introduction + .hidden-knowl-wrapper,
.pretext-content .exercisegroup .exercise-like .conclusion {
    margin-left: 1.5em;
}
.pretext-content section > .hidden-knowl-wrapper {
    margin-top: 1em;
}

/*
.pretext-content .exercisegroup article.exercise-like:not(:first-child) {
    margin-top: 0em;
}
*/

.pretext-content .exercisegroup > .conclusion {
    margin-left: 1.5em;
}

/*
.pretext-content .exercise-like .hint {
    display: block;
    margin-top: -0.75em;
}
*/

.pretext-content .exercise-like .introduction {
    display: inline;
}
.pretext-content .exercise-like .introduction .heading {
    display: inline;
}
.pretext-content .exercise-like .introduction p:first-child {
    display: inline;
}
.pretext-content .exercise-like .introduction::after {
    content: "";
    display: block;
/*
    margin-bottom: 0.25em;
*/
}
.pretext-content .exercise-like .conclusion::before {
    content: "";
    display: block;
    margin-top: 0.25em;
}


/*
.pretext-content .example-like .hint {
}
*/
/*
.example-like, .exercise-like {
  margin: 1.25em 0;
}
*/

/* if hints and solutions are in .posterior, then
 * some of the above styling does not apply */

.pretext-content article.exercise-like + .posterior {
    margin-top: -0.75em;
}


.pretext-content article.example-like .hint {
    display: block;
    margin-top: -0.75em;
}


.pretext-content .exercisegroup .exercisegroup-exercises.cols2, .pretext-content .exercisegroup .exercisegroup-exercises.cols3, .pretext-content .exercisegroup .exercisegroup-exercises.cols4, .pretext-content .exercisegroup .exercisegroup-exercises.cols5, .pretext-content .exercisegroup .exercisegroup-exercises.cols6 {
    width: 100%;
    display:inline-flex;
    flex-direction:row;
    flex-wrap:wrap;
    justify-content:flex-start;
    align-items:flex-start;
    align-content:flex-start;
}

.pretext-content .exercisegroup .exercisegroup-exercises.cols1 {
    display:inline;
}

.pretext-content .exercisegroup .exercisegroup-exercises.cols1 .knowl-output {
    display: block;
}

/*
.pretext-content .exercisegroup .exercisegroup-exercises article.exercise-like {
    margin-top: 0;
}
*/

.pretext-content .exercisegroup .cols1 > article.exercise-like {flex-basis: calc(100% - 2em);}
.pretext-content .exercisegroup .cols2 > article.exercise-like {flex-basis: calc(50% - 2em);}
.pretext-content .exercisegroup .cols3 > article.exercise-like {flex-basis: calc(33.33% - 2em);}
.pretext-content .exercisegroup .cols4 > article.exercise-like {flex-basis: calc(25% - 2em);}
.pretext-content .exercisegroup .cols5 > article.exercise-like {flex-basis: calc(20% - 2em);}
.pretext-content .exercisegroup .cols6 > article.exercise-like {flex-basis: calc(16.66% - 2em);}
/*
.pretext-content .exercisegroup .cols3 article.exercise-like {flex-basis: calc(100% / 3 - 2em);}
.pretext-content .exercisegroup .cols6 article.exercise-like {flex-basis: calc(100% / 6 - 2em);}
*/


.pretext-content .code-inline,
.pretext-content .code-block,
.pretext-content .console {
    font-family: "Inconsolata", monospace;
}
.pretext-content .code-inline {
    font-size: 1em;
/*    line-height: 1.38889em;
*/
    white-space: nowrap;
    color: inherit;
    background: #eeeeee;
    border: 1px solid #dddddd;
    padding: 0.0625em 0.25em;
    margin-left: 0.2em;
    margin-right: 0.2em;
    -webkit-border-radius: 0.2em;
    -moz-border-radius: 0.2em;
    -ms-border-radius: 0.2em;
    -o-border-radius: 0.2em;
    border-radius: 0.2em;
}
.pretext-content .title .code-inline {
    padding-left: 0;
    padding-right: 0;
    margin-left: 0;
    margin-right: 0;
}

.pretext-content .sagecell_sessionOutput pre {
    font-family: 'Inconsolata', monospace;
}

.pretext-content .sagecell {
    margin-bottom: 1.25em;
}

.pretext-content .assemblage-like {
    border: solid 2px #1100AA;
    border-radius: 12px;
    padding: 10px;
    background-color: #f4f4fe;
}

.pretext-content .assemblage-like .heading {
    margin-top: 0;
}

.pretext-content .assemblage-like + .sidebyside {
    margin-top: 1.25em;
}

.pretext-content .booktitle {
    font-style: oblique;
}

.pretext-content .poem {
    margin-top: 1.5em;
}

/* when hidden in a knowl, don't need the space at the end */
.pretext-content article > a > .heading > .title:not(.punctuated):last-child::after {
    content: ".";
}

.pretext-content article > .heading .type:last-child::after,
.pretext-content article > .heading .codenumber:last-child::after,
.pretext-content article > .heading .title:not(:empty):not(.punctuated):last-child::after {
    content: ".\2009 ";
}
.pretext-content .aside-like > .heading .type:last-child::after,
.pretext-content .aside-like > .heading .codenumber:last-child::after,
.pretext-content .aside-like > .heading .title:not(:empty):not(.punctuated):last-child::after {
    content: ":\2009 ";
}

.pretext-content .aside-like > .heading .title:empty::after {
    content: "";
}

.pretext-content a article > .heading .codenumber:not(:empty)::after {
    content: ": \2009";
}

.pretext-content .hiddenproof > .heading .type:after, .pretext-content .hiddenproof > header > .heading .type:after {
  content: "";
}

.pretext-content .exercise-like > .heading .codenumber:not(:empty):after {
    content: ".\2009 ";
}

.pretext-content .objectives > .heading {
    font-size: 1.25em;
}

/* Born-hidden example with a very long title */
/* http://physics.thomasmore.edu/ConnectedPhysics/sss-netforce.html */
.pretext-content a .heading {
    white-space: normal;
}


.pretext-content .solutions a, .pretext-content .solutions a:hover, .pretext-content .solutions a.active {
    display: inline-block;
    margin-right: 1em;
}

.pretext-content .solutions .solution .type + .codenumber {
    margin-left: 0.4em;
}
.pretext-content .solutions .solution .title:last-child {
    margin-left: 0.2em;
    font-size: 90%;
}
.pretext-content .solutions .solution .title:last-child::before {
    content: "(";
}
.pretext-content .solutions .solution .title:last-child::after {
    content: ")";
}

/* omitting, because Historical notes end with a code number,
   which gets an ". " :after, so there was a double dot.  If this
   needs to be put back, then also fix the double dot problem
   http://sl2x.aimath.org/book/aafmt/section9-3.html  (at end)
.pretext-content .aside-like > .heading:not(:empty):after {
    content: ".\2009 ";
}
*/



/* these were taken from the local add-on.css.
 * need to check if the are needed.
 */

body, html body { background: #fff; }

.pretext-content figure {
    margin-top: 0.5em;
}
.pretext-content article > figure:first-child {
    margin-top: 0;
}

.pretext-content figure + figure,
.pretext-content figure + .sidebyside,
.pretext-content .sidebyside + .sidebyside,
.pretext-content .sidebyside + figure {
    padding-top: 1.0em;
}


.pretext-content img {
    display: inline-block;
    margin-left: auto;
    margin-right: auto;
}

/* is .cs for commutative diagrams? */
.pretext-content img.cs {
    display: block;
    margin-top: 20px;
    margin-bottom: 20px;
    margin-left: auto;
    margin-right: auto;
}

.pretext-content img:not(.cs) {
    max-width: 550px;
}

.pretext-content table tr td img {
    max-width: 200px;
    margin-right: 30px;
}

.pretext-content table tr td.lines {
    	white-space: nowrap;
}

figure img {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

figure img + img {
    margin-top: 30px;
}

div.center img {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

div.center + div.center > img {
    margin-top: 60px;
}

div.center > img + img {
    margin-top: 60px;
}

figure table {
    margin-left: auto;
    margin-right: auto;
}

.caption {
    margin-top: 10px;
    margin-left: auto;
    margin-right: auto;
    font-size: 100%;
    text-align: center;
}


figure.wrap img {
    width: 250px;
}
figure.wrap {
    float: right;
    margin-right: 0;
    margin-left: 30px;
}
figure img.wrap {
    float: right;
    margin: 0;
}

figure figcaption.wrap {
    margin: 10px;
    font-size: 100%;
    text-align: center;
}

.pretext-content .sbspanel > img:not(.draw_on_me):not(.mag_popup),
.pretext-content figure > img:not(.draw_on_me):not(.mag_popup) {
    cursor: zoom-in;
}
.pretext-content img.mag_popup {
    border: 1px solid #666;
    box-shadow: 5px 10px 5px #999;
    cursor: zoom-out;
    max-width: 600px;
    margin-right: 50px;
}
.pretext-content .mag_popup_container {
    width:100%;
    position:absolute;
    z-index:1001;
    overflow-x: auto;
}

.caption .counter:after { content: " ";}

/* above repeated for captions outside figures */

.caption .heading {
    font-weight: bold;
}

.caption .heading:after { content: " ";}

.caption .counter {
    font-weight: bold;
}

figcaption .counter:after { content: " ";}

div.quote {
    padding-left: 40px;
    padding-right: 10px;
    margin-bottom: 1em;
}

.minipage  + .minipage {
    display: inline-block;
}

code.inline {
    background: none;
    border: none;
}

/* sup knowls are used for footnotes */
sup [knowl] {
    padding: 0px 0px 0px 3px;
}

sup .active[knowl] {
    padding: 0px 0px 0px 3px;
}

sup [knowl]:hover {
    padding: 0px 0px 0px 3px;
}

/*
.pretext-content .proof > .heading:after {
    content: ".";
}
*/

.pretext-content pre.prettyprint,
.pretext-content pre.plainprint {
    margin-top: 0;
    padding-left: 15px;
    border-left: 1px solid #aaa;
    font-size: 93%;
    overflow: auto;
/* preveiously turned off the border and padding from pretty.css */
}

.pretext-content pre.prettyprint:before,
.pretext-content pre.plainprint:before {
    content:'';
    border-top: 1px solid #aaa;
    display: block;
    margin-right: auto;
    margin-left: -15px;
    padding-bottom: 0.25em;
    width: 2.5em;
}

/*
.pretext-content article.example-like > *:last-child {
    margin-bottom: 0;
}
.pretext-content article.example-like > *:last-child::after {
    margin-bottom: 0;
}
*/
/* List 12.3 at http://mathbook.pugetsound.edu/examples/sample-article/html/section-12.html
 [[put somethign here]]
.pretext-content article.example-like + .posterior {
    margin-top: -0.75em;
}
 */

/*
.pretext-content article.proof > *:last-child {
    margin-bottom: 0;
}
.pretext-content article.proof > *:last-child::after {
    margin-bottom: 0;
}

.pretext-content article.definition-like *:last-child {
    margin-bottom: 0;
}
.pretext-content article.definition-like *:last-child::after {
    margin-bottom: 0;
}
*/

.pretext-content .objectives {
    margin-bottom: 1.25em;
}

article.objectives .heading .type + .codenumber:before {
    content: " ";
}
article.objectives .heading .type + .title:before {
    content: ":\2002";
}
article.objectives .heading .codenumber + .title:before {
    content: ":\2002";
}

article.list .heading .type + .codenumber:before {
    content: " ";
}
article.list .heading .type + .title:before {
    content: ":\2002";
}
article.list .heading .codenumber + .title:before {
    content: ":\2002";
}

/*
.pretext-content article.theorem-like *:last-child, .pretext-content article.objectives *:last-child { 
    margin-bottom: 0;
}
.pretext-content article.theorem-like *:last-child::after, .pretext-content article.objectives *:last-child::after {
    margin-bottom: 0;
}

.pretext-content article.remark-like > *:last-child {
    margin-bottom: 0;
}
.pretext-content article.remark-like > *:last-child::after {
    margin-bottom: 0;
}
*/

/* Since there can be p which are nearby but not siblings,
   let's put background and (but not box shadow) on everything */

/* see start of file
.pretext-content p, .pretext-content .heading {
    background: #fff;
}
*/

/*
  OLD VERSION: see new version above

.pretext-content .aside-like ~ *:not(.aside-like) p, .pretext-content .aside-like ~ *:not(.aside-like) .heading {
    background: #fff;
    box-shadow: 3em 0 0 0 #fff;
}
.pretext-content .aside-like ~ *:not(.aside-like) .knowl-output p {
    background: inherit;
    box-shadow: none;
}
*/

/* next selector first part of the following is due to the mistake of
   putting paragraph spacing in the margin-bottom 
   Redo when we fix that error */
.pretext-content .aside-like {
    margin-top: -1.25em;
    position: absolute;
    margin-left: 45%;
    z-index: -10;
    overflow-x: hidden;
    max-width: 495px;
    max-height: 7em;
    overflow-y: hidden;
    border: none;
    padding: 2px 10px;
    color: #888;
}
.pretext-content .example-like .aside-like {
    margin-top: 0;
    position: absolute;
}
.pretext-content .aside-like {
    font-size: 90%;
}
.pretext-content .aside-like {
  margin-bottom: 5px;
  background-color: #f5faff;
  box-shadow: 0 0 1.0em 0.2em #fff inset;
}
.pretext-content .aside-like:first-child {
    margin-top: -2.25em;
}
.pretext-content .aside-like:after {
  content  : "";
  position : absolute;
  z-index  : 1;
  top   : 0em;  
  bottom   : 0;
  left     : 0;
  pointer-events   : none;
  background-image : linear-gradient(to bottom, 
                    rgba(255,255,255, 0.4), 
                    rgba(255,255,255, 1) 90%);
  width    : 550px;
  height   : 8em;
}
/* example of where the following is needed? */
.pretext-content .aside-like * {
    background-color: #f5faff !important;
}
.pretext-content .aside-like.front, .pretext-content .example-like .aside-like.front {
  position: relative;
  z-index: 0;
  padding: 8px 15px 10px 15px;
  padding: 2px 10px;
  margin: 5px 0px 5px 10px;
  border: 2px solid #dcebfa;
  max-height: none;
  max-width: 550px;
  color: inherit;
  font-size: 100%;
  box-shadow: none;
}
.pretext-content .aside-like.front:after, .pretext-content .example-like .aside-like.front:after {
    background-image: none;
}
.pretext-content .example-like .aside-like.front {
    margin-top: 1.25em;
}

.pretext-content .aside-like.front + p{
    margin-top: 1.25em !important;
    padding-top: 0;
}



.pretext-content .aside-like .aside-like {
  background-color: #fafff5;
  border: 1px dotted #aaa;
}

.pretext-content article.aside-like > p:first-child {
    margin-top: 0;
}

.pretext-content .aside-like > .heading {
    font-size: 95%;
}

.pretext-content .aside-like + *{
    margin-top: 3em !important;
    box-shadow: 0 0 0.5em 0.2em #fff;
    margin-right: 3em;
}

/* for + ul p see http://physics.thomasmore.edu/ConnectedPhysics/ss-NII.html */
/*  subsumed by general background at start
.pretext-content .aside-like + p, .pretext-content .aside-like + ul p, .pretext-content .aside-like + ol p{
    background: #fff;
    box-shadow: 2em 0 1em 0.0em #fff;
}
*/

/* on sufficiently large screens, there is enough of a margin to see part of the aside */

@media screen and (min-width: 943px) {
  .pretext-content .aside-like + * {
      margin-right: 0;
  }
}

/* on a wide screen, asides should appear in the right margin */
@media screen and (min-width: 1100px) {
  .pretext-content .aside-like, .pretext-content .aside-like.front, .pretext-content .example-like .aside-like, .pretext-content .example-like .aside-like.front {
      position: absolute;
      margin-top: -2em;
      margin-left: 660px;
      max-width: 200px;
      color: inherit;
  }
  .pretext-content .aside-like.front, .pretext-content .example-like .aside-like.front {
      max-height: none;
      max-width: 223px;
      border: 2px solid #dcebfa;
}
  .pretext-content .example-like .aside-like, .pretext-content .example-like .aside-like.front {
      margin-left: 654px;  /* because .example-like has 6px of padding */
  }

  .pretext-content .aside-like + * {
      margin-top: 1.25em !important;
  /*    background: none;  */
      box-shadow: none;
      margin-right: 0;
  }

  .pretext-content .aside-like.front:after, .pretext-content .example-like .aside-like.front:after {
    background-image: none;
  }

  .pretext-content .aside-like:nth-of-type(3n+1) {
    margin-left: 660px;
}
  .pretext-content .aside-like:nth-of-type(3n) {
    margin-left: 680px;
}
  .pretext-content .aside-like:nth-of-type(3n+2) {
    margin-left: 640px;
}
}

/* on a narrow screen, collapsed asides should only be one line tall */
/* was too hard to see/poke
@media screen and (max-width: 480px) {
.pretext-content .aside-like {
    margin-top: -1.25em;
}
.pretext-content .example-like .aside-like {
    margin-top: -1em;
  }
.pretext-content .aside-like + *{
    margin-top: 1.5em !important;
}
.pretext-content .aside-like + article, .pretext-content .aside-like + ul, .pretext-content .aside-like + ol {
    margin-top: 2.5em !important;
}
}
*/

.pretext-content .aside-like:hover:after, .pretext-content .aside-like:focus:after {
    top: 3em;
    height: auto;
    background-image : none;
}
/* redundant
.pretext-content .aside-like.front:hover:after, .pretext-content .aside-like.front:focus:after {
    background-image: none;
}
*/

.pretext-content .aside-like:hover, .pretext-content .aside-like:focus {
    color: inherit;
    padding: 0 8px;
    border: 2px solid #dcebfa;
    height: auto;
    max-height: none;
}
.pretext-content .aside-like.front:hover, .pretext-content .aside-like.front:focus {
    padding: 2px 10px;
}

/* find a better way to handle asides in content that has a wide left margin */
/* see http://pretext.jahrme.com/aside-in-knowl/section-1.html */
.pretext-content section dl dd .aside-like {
    margin-top: 0 !important;
    margin-left: 100px !important;
}
.pretext-content section dl dd .aside-like.front {
    margin-left: -300px !important;
}

@media screen and (max-width: 1099px) {
.pretext-content aside.aside-like {
    position: relative;
    float: right;
    z-index: 0;
    overflow-x: hidden;
    margin-left: 1em;
    margin-top: 1em;
    max-width: 195px;
    max-height: 4em;
    margin-right: -8em;
}
}


.pretext-content ol > li {
    padding-left: 0.25em;
}
/*
.pretext-content ol.cols2 > li { width: calc(49% - 0.25em) !important; }
*/
.pretext-content ol.cols2 > li, .pretext-content ul.cols2 > li { width: calc(49% - 1.75em) !important; }
.pretext-content ol.cols3 > li { width: calc(33% - 0.25em) !important; }
.pretext-content ol.cols4 > li { width: calc(24.5% - 0.25em) !important; }
.pretext-content ol.cols5 > li { width: calc(19.5% - 0.25em) !important; }
.pretext-content ol.cols6 > li { width: calc(16.3% - 0.25em) !important; }
/* sample-article sec 5 */
/*
.pretext-content ul.cols2 > li p, .pretext-content ol.cols2 > li p {
   padding-right: 0.5em;
}
*/
.pretext-content ul.cols2 > li, .pretext-content ol.cols2 > li {
   padding-right: 1.5em;
}

/* see http://bob.cs.sonoma.edu/IntroCompOrg-RPi/exercises-10.html
  for examples of an odd number of items in a cols2, followed by
  a hint */
.pretext-content .cols2 > li:last-child:nth-child(odd) {
    float: none !important;
    padding-top: 0.5em;
}


/* http://spot.pcc.edu/math/APEXCalculus/sec_prod_quot_rules.html
 * solution to Example 2.4.14
 */
.pretext-content .solution ol li { 
    margin-top: 1em;
    padding-left: 0.5em;
}

/* solution to Example 4.2.12 in http://spot.pcc.edu/math/orcca-draft/orcca/section-radical-expressions-and-rational-exponents.html
*/
.pretext-content .solution ol li > p:first-child, .pretext-content .solution ol li > .displaymath:first-child {
    vertical-align: top;
    display: inline-block;
    margin-top: 0;
}
.pretext-content .solution ol li > .displaymath:first-child .MJXc-display {
    margin-top: 0;
}


.pretext-content .exercise-like ol li {
    margin-top: 1em;
    padding-left: 0.5em;
}
/* The !important is to over-ride legacy inline widths */
.pretext-content .exercise-like .cols2 > li { width: calc(49% - 0.5em) !important; }
.pretext-content .exercise-like .cols3 > li { width: calc(33% - 0.5em) !important; }
.pretext-content .exercise-like .cols4 > li { width: calc(24.5% - 0.5em) !important; }
.pretext-content .exercise-like .cols5 > li { width: calc(19.5% - 0.5em) !important; }
.pretext-content .exercise-like .cols6 > li { width: calc(16.3% - 0.5em) !important; }

.pretext-content .exercisegroup .cols2 > article > ol > li:first-child {
    margin-top: 0;
}

.pretext-content .exercise-like ol li p {
    vertical-align: top;
    display: inline-block;
    margin-top: 0;
}

/* http://mathbook.pugetsound.edu/beta/contibutor-list-20161130/preface-2.html
 * */

.pretext-content .contributor .contributor-name {
    font-variant: small-caps;
}
.pretext-content .contributor .contributor-info {
    font-size: 88%;
    font-style: italic;
    margin-left: 3ex;
}
.pretext-content .contributor {
    margin-top: 3ex;
}
.pretext-content .contributor + .contributor {
    margin-top: 1.5ex;
}

.pretext-content .contributor + p {
    margin-top: 3ex;
}

.pretext-content .frontmatter .contributors, .pretext-content .book .contributors {
    text-align: center;
    font-style: normal;
}


.searchwrapper {
    max-width: 900px;
    position: absolute;
    right: 0;
    bottom: 0; 
    margin-bottom: 39px; 
}
body.sidebar-left-closed .searchwrapper {
    margin-bottom: -2px; 
}

body.sidebar-left-open .searchwrapper {
    top: 74px;
}

/* bottom: 0;
 *  * */

body.sidebar-left-closed .searchwrapper {
    top: 74px;
    margin-bottom: -2px;
}


@media screen and (max-width: 800px) {
body.sidebar-left-closed .searchwrapper {
    top: 129px;
}
}

@media screen and (max-width: 480px) {
body.sidebar-left-closed .searchwrapper {
    top: 174px;
}
}


.searchwrapper .cse .gsc-control-cse, .searchwrapper .gsc-control-cse  {
    padding: 0;
    border: none;
    width: 25ex;
}
.searchwrapper .cse .gsc-search-button input.gsc-search-button-v2, .searchwrapper input.gsc-search-button-v2 {
    padding: 2px 2px;
}
.searchwrapper form.gsc-search-box {
    margin: 0;
}
.searchwrapper table.gsc-search-box {
    margin: 0;
}
.searchwrapper .gsc-search-box-tools .gsc-search-box .gsc-input {
    padding: 0;
}
.searchwrapper .gsib_a {
    padding: 0 0 0 5px;
}
.searchwrapper .gsc-input-box {
    height: 3.0ex;
}
.searchwrapper form.gsc-search-box {
    font-size: 12px;
}

/* turn off the green parentheses Alex does not like */
.pretext-content div.CodeMirror span.CodeMirror-matchingbracket {color: #090;}

.pretext-content .image-archive {
    margin-left: auto;
    margin-right: auto;
    margin-bottom: auto;
    margin-top: 0.75em;
    padding-bottom: 0.25em;
    text-align: center;
}
.pretext-content .image-archive > a {
    display: inline-block;
    padding-left: 0.5em;
    padding-right: 0.5em;
    font-family: monospace;
}
/*
.pretext-content .image-archive > a:not(:last-child) {
    padding-right: 1em;
}
.pretext-content .image-archive > a:not(:last-child):after {
    content: " ";
}
*/

/*
.pretext-content .sbspanel object {
*/
/*
.pretext-content .sbspanel object:not(:last-child) {
    margin-bottom: 0 !important;
}
*/

.pretext-content iframe {
    border: none;
}

.pretext-content .times-sign {
    font-size: larger;
    vertical-align: -0.15ex;
}
/* temporary for Mitch Keller.  delete at end of 2017 */
.pretext-content div.knowl .posterior div a:first-child {
    font-style: italic;
}
/* temporary for Geogebra development: replace with a more
  restrictive selector for articles */
.pretext-content article.notranslate {
    margin-top: 0;
}

/* sort of a hack for proof knows in theorem knowls */
.pretext-content div.knowl .posterior a[knowl]:first-child {
    padding: 0;
}


/*
nested tasks. see
http://mathbook.pugetsound.edu/examples/sample-article/html/interesting-corollary.html
*/

.pretext-content .exercise-like > .exercise-like {
    margin-left: 40px;
}
.pretext-content .exercise-like > .exercise-like p {
    margin-top: 1.25em;
/*    margin-bottom: 0.25em; */
}
/*
.pretext-content .exercise-like > .exercise-like > .heading + p::after {
    margin-bottom: 0.25em;
}
*/
.pretext-content .example-like > .heading + .introduction {
    display: inline;
}
.pretext-content .example-like > .heading + .introduction > p:first-child {
    display: inline;
}
.pretext-content .example-like > .exercise-like p {
    margin-top: 1.25em;
/*    margin-bottom: 0.25em;  */
}
/*
.pretext-content .example-like > .exercise-like > .heading + p::after {
    margin-bottom: 0.25em;
}
*/

/* not sure about these two.  there may be bad side-effects */
/*
.pretext-content .example-like p {
    margin-top: 1.25em;
}
.pretext-content .example-like ol, .pretext-content .example-like ul {
    margin-top: 1.25em;
}
.pretext-content .example-like > .heading + p::after {
    margin-bottom: 0.25em;
}
*/

/* end of nested tasks */

/* genus and species in italics */
.pretext-content .taxon {
    font-style: italic;
}

/* Sage stuff */
.pretext-content .sageanswer {
    font-family: monospace;
    white-space: pre;
    margin-left: 3em;
    margin-bottom: 2em;
} 
.pretext-content .sageanswer .key {
    display: inline-block;
    vertical-align: top;
    margin-right: 1em;
}
.pretext-content .sageanswer .output {
    display: inline-block;
    vertical-align: top;
}
.pretext-content .CodeMirror-code pre.CodeMirror-line {
    padding-bottom: 5px;
}

/* to enable hovering over aside-like */
/* div.page, main.main, body.mathbook-article, */
body.mathbook-book, body.mathbook-article, .pretext-content section.chapter, .pretext-content section.introduction, .pretext-content section.conclusion, .pretext-content section.section, .pretext-content section.subsection, .pretext-content section.subsubsection, .pretext-content article, #content.pretext-content {
    pointer-events: none;
}
html nav, html header, .pretext-content article.aside-like, .pretext-content *,
body.mathbook-book .MathJax_Menu, body.mathbook-article .MathJax_Menu {
    pointer-events: auto;
}
.pretext-content ol, .pretext-content ul {
    pointer-events: none;
}
.pretext-content ol li, .pretext-content ul li {
    pointer-events: auto;
}
div, span, button,
.pretext-content div, .pretext-content span, .pretext-content button {
    pointer-events: auto;
}

/* used when knowl content is hidden in the page */
.hidden-content {
    display: none;
}

/*
   See 10.1.8c in http://faculty.valpo.edu/calculus3ibl/ch10_01_gradient.html
and condider having this replace line 3338 of the general code (which uses .heading + p)
*/
.pretext-content .example-like > .exercise-like > p:first-of-type {
    display: inline;
}
.pretext-content .example-like > .exercise-like > .aside-like {
    margin-top: -3em;
}
.pretext-content .example-like > .exercise-like > .aside-like.front {
    margin-top: 0;
}

.pretext-content meta {
    display: none;
}

.pretext-content .summary-links {
    margin-top: 4em;
}
.pretext-content section + .summary-links {
    margin-top: 2em;
}
.pretext-content .summary-links ul {
    list-style-type:none;
}
.pretext-content .summary-links li {
    margin-top: 0;
}
.pretext-content .summary-links a {
  position: relative;
  display: block;
  font-size: 1.5em;
  line-height: 1.25em;
  padding: 0.41667em 0.83333em;
  margin-top: 0.20833em;
/*
  margin-bottom: 0;
*/
  -webkit-border-radius: 3px;
  -moz-border-radius: 3px;
  -ms-border-radius: 3px;
  -o-border-radius: 3px;
  border-radius: 3px;
  padding-right: 2.06667em;
}
.pretext-content .summary-links a:after {
  right: 0.83333em;
}
.pretext-content .summary-links a:after {
  content: "";
  position: absolute;
  /* center vertically */
  top: 50%;
  margin-top: -0.4em;
  width: 0;
  height: 0;
  border-top: 0.4em solid transparent;
  border-bottom: 0.4em solid transparent;
  border-left: 0.4em solid #c9c9c9;
}
.pretext-content .summary-links a, .pretext-content .summary-links a:link, .pretext-content .summary-links a:visited {
/*  color: #20477b; */
/*  background: #f0f0f0; */
  cursor: pointer;
}
.pretext-content .summary-links a:hover:after {
  width: 0;
  height: 0;
  border-top: 0.4em solid transparent;
  border-bottom: 0.4em solid transparent;
  border-left: 0.4em solid white;
}
.pretext-content .summary-links a {
  font-family: "PT Serif", "Times New Roman", Times, serif;
}
@media screen and (max-width: 480px) {
  .pretext-content .summary-links a {
    font-size: 1em;
    line-height: 1.25em;
  }
}
.pretext-content .summary-links a .codenumber {
/*  color: #707070; */
  margin-right: 0.41667em;
}


@media print {
    .navbar { display:none; }
    .has-sidebar-left #masthead #primary-navbar-sticky-wrapper { display:none; }
    .has-sidebar-left #masthead.smallbuttons {
        border:none;
    }
    .has-sidebar-left .page > #sidebar-left-sticky-wrapper { display:none; }
    .searchwrapper { display:none; }
    .has-sidebar-left.mathbook-loaded .page .main {
        margin-left:0;
        left:auto;
        border:none;
        box-shadow:none;
        padding: 0;
    }
    .has-sidebar-left.mathbook-loaded.sidebar-left-open .page .main #content { margin-top:0 }
    .has-sidebar-left.mathbook-loaded.sidebar-left-open .page .main #content.pretext-content section { margin-top:1em }
    .has-sidebar-left.mathbook-loaded.sidebar-left-open .page .main #content.pretext-content section .heading { margin-top:0 }
/*
    .has-sidebar-left.mathbook-loaded.sidebar-left-open .page .main {
        font-size: 0.85em;
    }
*/
}

/*
.has-sidebar-left.mathbook-loaded.sidebar-left-open .page .main { margin-left:0px; left:auto; }
*/

/* Colors for the above
.pretext-content .summary-links a, .pretext-content .summary-links a:link, .pretext-content .summary-links a:visited {
  color: #20477b;
}

.pretext-content .summary-links a:hover {
  color: white;
  background: #20477b;
}

.pretext-content .summary-links a .codenumber {
  color: #707070;

*/

/* COLORS */

/* delete the first one of both as obsolete */
.pretext-content a.xref,
.pretext-content a.internal {
    color: #900;
}
.pretext-content a.url,
.pretext-content a.external {
    color: #22a;
}

/*
To delete when moving to pretextbook.org:

all .hidden-knowl-wrapper
*/

.ui-dialog.ui-widget.ui-widget-content.ui-corner-all.ui-draggable.ui-resizable {
    left: 0 !important;
    top: 0 !important;
}
