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

/*
@media (prefers-color-scheme: dark) {
  body .pretext-content * {
    border-color: #eee !important;
}
}
*/

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 */
.pretext-content pre {
    margin: 0;
    padding: 0;
    border: none;
}
.pretext-content textarea {
    padding: 0;
}

/* 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 .aside-like > p:first-child,
.pretext-content td > p:first-child,
.pretext-content .solution > p:first-child {
    margin-top: 0;
}
.pretext-content p.intertext {
    margin-top: -0.25em;
    text-indent: 0;
}
.pretext-content .reading-questions {
    margin-bottom: 2em;
}

.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;
}

/* this > may be too restrictive.  The purpose is to not put a
   top margin on an article at the top of a knowl */
.pretext-content section > article {
    margin-top: 1.25em;
}
.pretext-content section article + article,
.pretext-content section p + article,
.pretext-content section .posterior + article {
    margin-top: 1.75em;
}
.pretext-content section article > .introduction + article {
    margin-top: 1em;
}
.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 .exercise-like > ol:first-child,
.pretext-content .exercise-like > ul:first-child {
    margin-top: 0;
}
.pretext-content .heading + ol, .pretext-content .heading + ul {
    margin-top: 0.45em;
}
.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 dl.glossary dd {
    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 a[href^="mailto:"] {
    white-space: pre;
}
/*
.pretext-content a[href^="mailto:"] {
    font-size: 120%;
}
.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;
}
.pretext-content section article > .heading::after,
.pretext-content section section article > .heading::after,
.pretext-content section article > a > .heading::after,
.pretext-content section section article > a > .heading::after,
.pretext-content .abstract > .heading::after {
    content: "\2009";
}
/* Currently only for Solution to example */
.pretext-content .posterior .heading {
    font-weight: normal;
    font-size: 1.125em;
    line-height: 1.125em;
    margin-top: 0;
}

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


/*
 * Contents of articles
 */
.pretext-content section article > .heading + p,
.pretext-content section article > .heading + .introduction,
.pretext-content section article > .heading + .introduction > p:first-child {
    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;
}
.pretext-content section article.theorem-like .emphasis {
    font-weight: 700;
}

.pretext-content section article > .heading + ol {
    padding-left: 1.5em;
}

/*
 *  .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;
}

/*
  main knowls style
*/

[data-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;
    border-top-left-radius: 3px;
    border-top-right-radius: 3px;
    user-select: none;
    transition-property: background-color;
    transition-duration: 0ms;
}

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

[data-knowl]::after, [data-knowl]:hover::after, [data-knowl].active::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 1px;
    right: 2.4px;
    left: 2.4px;
    border-bottom: 1px dotted #9c2310;
    transition-property: left, right;
    transition-duration: 0ms;
    z-index: 0;
}
/* is the next only for a proof or other content that is only a knowl? */
article > [data-knowl]::after, article > [data-knowl]:hover::after, article > [data-knowl].active::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 1px;
    right: 8.4px;
    right: 0.6em;
    left: 2.4px;
    border-bottom: 1px dotted #9c2310;
    transition-property: left, right;
    transition-duration: 0ms;
    z-index: 0;
}

[data-knowl].fn-knowl {
    padding-left: 0;
    padding-right: 0;
    margin-right: 2px;
}
[data-knowl].fn-knowl::after {
    bottom: 7px;
}

.knowl-error {
   color: red;
   border-bottom: 0;
}
.knowl-output {
    background: #f5f5ff;
    border: 10px solid #ddf;
    border-radius: 10px;
    display: none;
    padding: 0;
    margin-top: 10px;
}

.knowl-output .knowl-output {
    border-width: 6px;
    background: #fffff5;
    border-radius: 4px;
    margin-bottom: -3px;
    margin-left: -7px;
    margin-right: -7px;
}
.knowl-output .knowl-output .knowl-output {
    background: #fff5ff;
}
.knowl-output .knowl-output .knowl-output .knowl-output {
    background: #fafffa;
}
.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;
}

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


/* show wide equation overflow even when no scroll bars,
from Jiří Lebl */
.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));
*/
    background-image: linear-gradient(to right, var(--knowlbackground), var(--knowlbackground)), linear-gradient(to right, var(--knowlbackground), var(--knowlbackground)), linear-gradient(to right, rgba(0,0,0,.25), var(--knowlbackground)), linear-gradient(to left, rgba(0,0,0,.25), var(--knowlbackground));
}
.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));
*/
    background-image: linear-gradient(to right, var(--assemblagebackground), var(--assemblagebackground)), linear-gradient(to right, var(--assemblagebackground), var(--assemblagebackground)), linear-gradient(to right, rgba(0,0,0,.25), var(--assemblagebackground)), linear-gradient(to left, rgba(0,0,0,.25), var(--assemblagebackground));
}


.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));
}



/* 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 > *:last-child:not(.incontext) {
    margin-bottom: 0.5em;
}

/* No Greg's L in knowls, to save space */

.pretext-content .knowl-content > article.theorem-like,
.pretext-content .knowl-content > article.definition-like,
.pretext-content .knowl-content > article.example-like,
.pretext-content .knowl-content > article.project-like,
.pretext-content .knowl-content > article.objectives,
.pretext-content .knowl-content > article.outcomes,
.pretext-content .knowl-content > article.remark-like {
    padding-left: 0;
    border-left: none;
}
.pretext-content .knowl-content > article.theorem-like::after,
.pretext-content .knowl-content > article.definition-like::after,
.pretext-content .knowl-content > article.example-like::after,
.pretext-content .knowl-content > article.project-like::after,
.pretext-content .knowl-content > article.objectives::after,
.pretext-content .knowl-content > article.outcomes::after,
.pretext-content .knowl-content > article.remark-like::after {
    content: '';
    border-bottom: none;
    margin: 0;
    padding: 0;
    width: 0;
}

/*
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,
.pretext-content article.definition-like,
.pretext-content article.example-like,
.project-like,
.pretext-content article.objectives,
.pretext-content article.outcomes,
.pretext-content article.remark-like {
    padding-left: 0.4em;
    border-left: 1px solid #569;
}

.pretext-content article.theorem-like::after,
.pretext-content article.definition-like::after,
.pretext-content article.example-like::after,
.pretext-content article.project-like::after,
.pretext-content article.objectives::after,
.pretext-content article.outcomes::after,
.pretext-content article.remark-like::after {
    content:'';
    border-bottom: 1px solid #569;
    display: block;
    margin-right: auto;
    margin-left: -0.4em;
    padding-top: 0.25em;
    width: 1.5em;
}
/* projects get a dotted L */
.pretext-content article.project-like {
    border-left: 1px dotted #569;
}
.pretext-content article.project-like::after {
    border-bottom: 1px dotted #569;
}

/* commentary gets a thicker red L */

.pretext-content article.commentary {
    padding-left: 0.6em;
    border-left: 3px solid #c33;
}
.pretext-content article.commentary::after {
    content:'';
    border-bottom: 3px solid #c33;
    display: block;
    margin-right: auto;
    margin-left: -0.6em;
    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;
    z-index: 100;
}

body > a.assistive:focus {
	position:absolute;
	left:0px;
	top:0px;
	background:#BF1722;
	outline:0;	
    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;
}

#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 .navbar-top-buttons .toolbar-divisor-3 #calculator-toggle {
    width: 70px;
    text-align: center;
    border-right: 1px solid #bababa;
}
*/

#masthead.smallbuttons #primary-navbar .navbar-top-buttons .toolbar-divisor-3 .button.toggle {
    width: 60px;
    text-align: center;
    border-radius: 20px;
    margin-left: 5px;
    border: 2px solid #66f;
    line-height: 25px;
    margin-top: 3px;
    background-color: #eef;
}
#masthead.smallbuttons #primary-navbar .navbar-top-buttons .toolbar-divisor-3 .button.toggle.open {
    background: #fee;
/*
    background-image: linear-gradient(163deg, transparent 0%, transparent 47%, #f66 47%, #f66 , #f66 53%, transparent 53%, transparent 100%);
*/
    border: 2px solid #f66;
}

#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: 0.6em;
    margin-left: auto;
    margin-right: auto;
/*  Commenting this out because the initial letter of some captions were cut off
    text-indent: -30px;
*/
}

.pretext-content figure.table-like figcaption:first-child {
    font-style: oblique;
}
.pretext-content figure.table-like figcaption:first-child .type,
.pretext-content figure.table-like figcaption:first-child .codenumber {
    font-style: normal;
}

.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";
}
.pretext-content figcaption .type:last-of-type::after {
   /* so, not followed by a span.codenumber */
   /* not sure where this is used */
    content: "\2002";
}

.pretext-content figcaption code.code-inline {
    white-space: pre;
}

.pretext-content figure > figcaption:first-child {
    margin-top: 1.5em;
}

.pretext-content figcaption + .named-list-content {
    margin-top: 0.6em;
}
.pretext-content figcaption + .named-list-content > .introduction > p:first-child {
    margin-top: 0;
}

/* should be .emphasis instead of em */
.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)
}


#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 + 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 .heading {
    display: inline;
}

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

.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 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 > 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 .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;
}

/* 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;
}


/*  good for table, bad for image
.pretext-content .sidebyside {
    overflow-x: scroll;
}
*/

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

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

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

.pretext-content table tr td,
.pretext-content table tr th {
    padding-top: 2px;
    padding-bottom: 2px;
    padding-left: 5px;
    padding-right: 5px;
}
.pretext-content table tr td {
    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 img {
    max-width: 200px;
    margin-right: 30px;
}

.pretext-content table.notation-list tr th {
    text-align: left;
}
.pretext-content table.notation-list tr td {
    text-align:left;
    vertical-align:top;
}
.pretext-content table.notation-list tr th {
    margin-left: 2em;
}
.pretext-content table.notation-list tr td {
    margin-left: 1em;
}
.pretext-content tr th.r0.l0,
.pretext-content tr td.r0.l0 {
    padding-left: 0.8em;
    padding-right: 0.8em;
}

.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 .blob > article.hiddenproof,
.pretext-content section > article.hiddenproof  {
    margin-top: 0.3em;
}

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

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

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

/*
.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 .playvideo {
    cursor: pointer;
}

.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,
.pretext-content section section > .heading,
.pretext-content section section 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:focus {
    opacity: 1;
    color: #a32;
}

.mininav {
    float: left;
    padding-top: 0.7ex;
    padding-left: 1ex;
}

/* the index at the back of the book */

.indexnav {
    margin-left: 1.5ex;
    margin-top: 0.2ex;
    padding-top: 0;
    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 .see,
.pretext-content .subindexitem .see,
.pretext-content .subsubindexitem .see {
    margin-left: 1em;
    margin-right: 0.5em;
}
.pretext-content .indexitem .seealso,
.pretext-content .subindexitem .seealso,
.pretext-content .subsubindexitem .seealso {
    margin-left: 1em;
    margin-right: 0.5em;
}


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

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

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

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

/* end index */

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

.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 section > ol:last-child,
.pretext-content section > ul:last-child {
    margin-bottom: 1.5em;
}
/* because of */
/* .pretext-content .colsN > li:last-child {
    padding-bottom: 1em;
}
*/
.pretext-content section > ol:last-child > li:last-child,
.pretext-content section > ul:last-child > li:last-child {
    padding-bottom: 0em;
}

.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;
}

/* 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;
}

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

/* the "pink flash" when navigating to a target
*/
:target {
    animation: target-fade 15s 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 [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: #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;
}
*/

/* 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;
}
}


/*  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;
}

/* 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 [data-knowl]::after, .pretext-content .hidden-knowl-wrapper [data-knowl]:hover::after, .pretext-content .hidden-knowl-wrapper .active[data-knowl]::after {
    right: 7px;
}

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

.pretext-content .unselectable {  /* from Alex Jordan */
  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 .fillin {
    display: inline-block;
    border-bottom-style: solid;
    border-width: 1px;
    margin-right: 0.1em;
    margin-bottom: -0.25em;
}

.pretext-content .exercisegroup {
    padding-top: 1.25em;
    margin-bottom: 1.0em;
}
.pretext-content section .exercisegroup > .heading {
    font-size: 1.10em;
    line-height: 1.05em;
    margin-top: 0.75em;
    display: inline;
}
.pretext-content section .exercisegroup > .heading + .introduction {
    display: inline;
}
.pretext-content section .exercisegroup > .heading + .introduction > p:first-child {
    display: inline;
}

.pretext-content .exercisegroup article.exercise-like p {
    margin-top: 0.5em;
}
.pretext-content .exercisegroup article.exercise-like .solution p:first-child {
    margin-top: -3px;  /* because of the 10px (instread of 7) on the .knowl-content */
}
.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 article + article {
    margin-top: 1em;
}

/* 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 > .introduction {
    margin-top: 1.25em;
    margin-top: 0;
}
.pretext-content .exercisegroup > .introduction > p:first-child::before {
    content: '\25a0\2009';
   // font-size: 70%;
    color: #06a;
    position: relative;
    top: -1px;
    right: 1px;
}
.pretext-content .exercisegroup > .heading + .introduction > p:first-child::before {
    content: '\2003';
}

.pretext-content .exercisegroup > .introduction > p:first-child {
    margin-top: 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 > .conclusion {
    margin-left: 1.5em;
}

.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;
}
.pretext-content .exercise-like .conclusion::before {
    content: "";
    display: block;
    margin-top: 0.25em;
}


/* 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 .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 .unit,
.pretext-content .quantity {
    white-space: nowrap;
    word-spacing: -0.25ex;
    margin-right: 0.125em;
}
.pretext-content .unit sub,
.pretext-content .unit sup,
.pretext-content .quantity sub,
.pretext-content .quantity sup {
     word-spacing: normal;
}

.pretext-content .code-inline,
.pretext-content .code-block,
.pretext-content .console {
    font-family: "Inconsolata", monospace;
}
.pretext-content .code-inline {
    font-size: 1em;
    white-space: nowrap;
    color: inherit;
    background: #eeeeee;
    border: 1px solid #dddddd;
    padding: 0.0625em 0.25em;
    margin-left: 0.2em;
    margin-right: 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 a .code-inline {
    background: #f6f6f6;
}

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

.pretext-content .sagecell {
    margin-bottom: 1.25em;
}
/*
.pretext-content .sagecell .CodeMirror-fullscreen {
    z-index: 400;
    top: 300px;
    padding-top: 50px;
    margin-top: 100px;
    height: inherit;
}
*/

.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;
}

.pretext-content .objectives > .heading,
.pretext-content .outcomes > .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: 1.5em;
}

/* Can .solutions .solution actually happen any more?  Or is that
   replaced by .solutions a ? */
.pretext-content .solutions .solution .type + .codenumber {
    margin-left: 0.4em;
}
.pretext-content .solutions .solution .title:last-child {
    margin-left: 0.2em;
    font-size: 90%;
}

/* When the knowl is a Hint, Answer, or Solution, put a little
   triangle in front of it */
.pretext-content .solutions > a::before {
    content: '\25ba';
    font-size: 70%;
    color: #06a;
    position: relative;
    top: -2px;
    right: 3px;
}
.pretext-content .solutions > a.active::before {
    content: '\25bc';
    animation-name: solutiontriangle;
    animation-duration: 3s;
    animation-iteration-count: 1;
}
.pretext-content .solutions > a[data-knowl]::after {
    left: 12px;
}
@keyframes solutiontriangle {
    from {content: '\25ba';}
    to {content: '\25bc';}
}


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

body, html body { background: #fff; }

.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: 650px;
}

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 figure, .pretext-content .image-box {
    margin-top: 0.5em;
}
.pretext-content figure .image-box {
    margin-top: 0;
}
.pretext-content .image-box img,  /* See sample article Graphics section */
.pretext-content .sbspanel img {
    width: 100%;
}

/* In 0.2 all of the below are needed.  Possibly in a later version
   only the .image-box > img is needed, because all img are in an image-box.
*/
.pretext-content .image-box > img:not(.draw_on_me):not(.mag_popup),
.pretext-content .sbspanel > img:not(.draw_on_me):not(.mag_popup),
.pretext-content figure > img:not(.draw_on_me):not(.mag_popup),
.pretext-content figure > div > 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;
}

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 */
/* the next 2 are obsolete, because (in PTX HTML) the structure is now a(sup), not sup(a) */
sup [data-knowl] {
    padding: 0px 0px 0px 3px;
}

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

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

.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 .objectives {
    margin-bottom: 1.25em;
}

/* 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;
    margin-right: 3em;
}

/* 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;  */
      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;
}
}

.pretext-content .aside-like:hover:after, .pretext-content .aside-like:focus:after {
    top: 3em;
    height: auto;
    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 li > aside.aside-like:last-child {
    position: absolute;
}
}


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

.pretext-content .cols2 > li:first-child,
.pretext-content .cols3 > li:first-child,
.pretext-content .cols4 > li:first-child,
.pretext-content .cols5 > li:first-child,
.pretext-content .cols6 > li:first-child {
    margin-top: 0.5em;
}

.pretext-content .exercisegroup-exercises > article.exercise-like {
    margin-top: 1em;
}


/* 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;
}

.pretext-content .exercise-like > .cols2 > li { width: calc(49% - 2.5em)}
.pretext-content .exercise-like > .cols3 > li { width: calc(33% - 2.5em)}
.pretext-content .exercise-like > .cols4 > li { width: calc(24.5% - 2.5em)}
.pretext-content .exercise-like > .cols5 > li { width: calc(19.5% - 2.5em)}
.pretext-content .exercise-like > .cols6 > li { width: calc(16.3% - 2.5em)}

/* because .colsN uses float, the margin-top of the folowing
element is ignored */
.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 {
    padding-bottom: 1em;
}

/* A colsN in a knowl needs to be narrower because of the margin/padding of the knowl */
.pretext-content .knowl .exercise-like > .cols2 > li { width: calc(49% - 2em)}
/* next 4 not actually checked: just copied from cols2 */
.pretext-content .knowl .exercise-like > .cols3 > li { width: calc(33% - 2em)}
.pretext-content .knowl .exercise-like > .cols4 > li { width: calc(24.5% - 2em)}
.pretext-content .knowl .exercise-like > .cols5 > li { width: calc(19.5% - 2em)}
.pretext-content .knowl .exercise-like > .cols6 > li { width: calc(16.3% - 2em)}


.pretext-content .exercise-like ol li > p:first-child {
    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;
}

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: 0;  /* was 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 Geogebra development: replace with a more
  restrictive selector for articles */
.pretext-content article.notranslate {
    margin-top: 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 .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;
}

/* 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;
}

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

.pretext-content hr.pagebreak {
    width: 30em;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 2.0em;
    margin-top: 0;
    height: 4em;
    border: 0;
    border-bottom: 1px dashed #ccc;
}

.pretext-content hr.pagebreak:after {
    content: "page";
    display: inline-block;
    position: relative;
    top: 4.0em;
    font-size: 80%;
    padding: 0 0.25em;
    background: white;
}

/*
   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 a {
  color: #671d12;
  background: #f0f0f0;
  text-decoration: none;
  cursor: pointer;
}
.pretext-content .summary-links a:hover, .pretext-content .summary-links a:focus {
  color: white;
  background: #671d12;
}
.pretext-content .summary-links a .codenumber {
  color: #303030;
  margin-right: 0.41667em;
}

.pretext-content .summary-links a:hover .codenumber, .pretext-content .summary-links a:focus .codenumber {
  color: #f0f0f0;
}



.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;
  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 {
  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 {
  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-loading.sidebar-left-open .page > .main,
*/
    .has-sidebar-left.mathbook-loaded.sidebar-left-open .page > .main {
        margin-left:0;
        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 }
}

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

/* move to the color file(s) and figure out next comment */
/* delete the first one of both as obsolete */
.pretext-content a.xref,
.pretext-content a.internal {
    color: #900;
}
.pretext-content a.xref:hover,
.pretext-content a.internal:hover {
    background-color: #ddf;
}
.pretext-content a.url,
.pretext-content a.external {
    color: #22a;
}
.pretext-content a.url:hover,
.pretext-content a.external:hover {
    background-color: #ffd;
}

.pretext-content a.internal:hover,
.pretext-content a.external:hover,
.pretext-content a.internal:focus,
.pretext-content a.external:focus {
    text-decoration: underline;
}

/* style for poems */

.pretext-content .poem {
    display: table;
    margin-top: 1.5em;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 0;
    width: auto;
    max-width: 90%;
}

.pretext-content .poem > .heading {
    display: block;
    text-align: center;
}
.pretext-content section article.poem > .heading::after {
    content: "";
}
.pretext-content .poem > .heading > .title {
    font-weight: bold;
    font-size: 1.2em;
    line-height: 1.2em;
}

.pretext-content .poem .author {
    font-style: italic;
    margin-top: 0.75em;
}
.pretext-content .poem .author.left {
    text-align: left;
}
.pretext-content .poem .author.center {
    text-align: center;
}
.pretext-content .poem .author.right {
    text-align: right;
}

.pretext-content .poem .stanza > .heading {
    text-align: center;
    font-weight: bold;
    font-size: 1em;
    line-height: 1em;
}
.pretext-content .poem .stanza + .stanza {
    margin-top: 1em;
}
.pretext-content .poem .heading + .stanza {
    margin-top: 0.2em;
}
.pretext-content .poem .heading + .line, {
    margin-top: 0.2em;
}

.pretext-content .poem .line.left {
    text-align: left;
    margin-left: 4em;
    text-indent: -4em;
}
.pretext-content .poem .line.center {
    text-align: center;
}
.pretext-content .poem .line.right {
    text-align: right;
}
.pretext-content .poem .tab {
    margin-left: 2em;
}

/* GeoGebra calculator */

#calculator-container {
    position: fixed;
    z-index: 100;
    bottom: 5px;
    right: 5px;
/*
    width: 320px;
*/
    width: 253px;
/*
    height: 600px;
*/
    height: 460px;
}
@media screen and (max-width: 800px) {
    #calculator-container {
         bottom: 50px !important;
    }
}

.toolBPanel {
    overflow: hidden !important;
}
.toolBPanel:hover {
    overflow: auto !important;
}

/* Preview of annual edition */

main p.newstuff {
    border-right: 6px solid #6f6;
    background:  #dfd;
}
main li.newstuff {
    border-right: 6px solid #66f;
    background:  #eef;
}
main li.newstuff p.newstuff {
    border-right: none;
    background: inherit;
}
main article.newstuff {
    border-right: 6px solid #ff6;
    background:  #ffd;
}
main section.newstuff {
    border-right: 10px solid #f6f;
}
main a[data-knowl].newstuff {
    border: 1px solid #f33;
    background: #fdd;
}

#aboelkins-ACS .main #content > section:first-of-type > section:first-of-type > .project-like:first-of-type li {
    font-size: 300%
}

/* so that we can position things (like .autopermalink) absolutely wrt these items */
.pretext-content section,
.pretext-content article,
.pretext-content figure,
.pretext-content p
 {
    position: relative;
}

.pretext-content .autopermalink {
    position: absolute;
    top: 0px;
    right: -120px;
    font-size: 85%;
    color: #a00;
    opacity: 0.02
}
.pretext-content .exercises > .autopermalink,
.pretext-content .glossary > .autopermalink {
    margin-top: 1em;
}
.pretext-content .section > .autopermalink,
.pretext-content .subsection > .autopermalink {
    margin-top: 2em;
}

.pretext-content .autopermalink:hover {
    opacity: 1;
}

.semantic {
    background: #ff9;
}
