/* wm-slidy.css
   William & Mary (wm.edu) themed stylesheet for Pandoc Slidy.
   Brand colors: Griffin Green #004e38 / #183028, W&M Gold #b9975b / #6E5834,
   Silver #f0f1f2 / #d0d3d4, accent Moss #607e3b, Weathered Brick #b75543.
   Drop-in replacement for slidy.css (use with pandoc --css=wm-slidy.css).
*/

/* ---- W&M palette variables ---- */
:root {
  --wm-green:        #004e38;
  --wm-green-dark:   #183028;
  --wm-gold:         #b9975b;
  --wm-gold-dark:    #6E5834;
  --wm-gold-light:   #f8f5ef;
  --wm-silver:       #f0f1f2;
  --wm-silver-600:   #d0d3d4;
  --wm-silver-line:  #ecedee;
  --wm-moss:         #607e3b;
  --wm-brick:        #b75543;
  --wm-ink:          #1a1a1a;
}

body {
  margin: 0 0 0 0;
  padding: 0 0 0 0;
  width: 100%;
  height: 100%;
  color: var(--wm-green-dark);
  background-color: #ffffff;
  font-family: "Gill Sans MT", "Gill Sans", GillSans, "Trebuchet MS", sans-serif;
  font-size: 14pt;
}

div.toolbar {
  position: fixed; z-index: 200;
  top: auto; bottom: 0; left: 0; right: 0;
  height: 1.2em; text-align: right;
  padding-left: 1em;
  padding-right: 1em;
  font-size: 60%;
  color: #ffffff;
  background-color: var(--wm-green);
  border-top: solid 1px var(--wm-gold);
}

div.toolbar span.copyright {
  color: var(--wm-silver-600);
  margin-left: 0.5em;
}

div.initial_prompt {
  position: absolute;
  z-index: 1000;
  bottom: 1.2em;
  width: 100%;
  background-color: var(--wm-silver-600);
  opacity: 0.35;
  background-color: rgba(208, 211, 212, 0.35);
  cursor: pointer;
}

div.figcaption { font-size: 60%; }

div.initial_prompt p.help { text-align: center; }
div.initial_prompt p.close { text-align: right; font-style: italic; }

div.slidy_toc {
  position: absolute;
  z-index: 300;
  width: 60%;
  max-width: 30em;
  height: 30em;
  overflow: auto;
  top: auto;
  right: auto;
  left: 4em;
  bottom: 4em;
  padding: 1em;
  background: var(--wm-silver);
  border-style: solid;
  border-width: 2px;
  border-color: var(--wm-gold);
  font-size: 60%;
}

div.slidy_toc .toc_heading {
  text-align: center;
  width: 100%;
  margin: 0;
  margin-bottom: 1em;
  border-bottom-style: solid;
  border-bottom-color: var(--wm-gold);
  border-bottom-width: 1px;
}

div.slide {
  z-index: 20;
  margin: 0 0 0 0;
  padding-top: 0;
  padding-bottom: 0;
  padding-left: 20px;
  padding-right: 20px;
  border-width: 0;
  clear: both;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  line-height: 120%;
  background-color: transparent;
}

div.background { display: none; }

div.handout {
  margin-left: 20px;
  margin-right: 20px;
}

/* ---- Title slide: Griffin Green background, gold/white text ---- */
div.slide.titlepage {
  text-align: center;
  background-color: var(--wm-green);
  color: #ffffff;
}
div.slide.titlepage h1 {
  padding-top: 10%;
  margin-right: 0;
  color: #ffffff;
  border-bottom-color: var(--wm-gold);
}
div.slide.titlepage h1 a,
div.slide.titlepage a { color: #ffffff; }
div.slide.titlepage p { color: var(--wm-silver-600); }

div.slide h1 {
  padding-left: 0;
  padding-right: 20pt;
  padding-top: 4pt;
  padding-bottom: 4pt;
  margin-top: 0;
  margin-left: 0;
  margin-right: 60pt;
  margin-bottom: 0.5em;
  display: block;
  font-size: 160%;
  line-height: 1.2em;
  color: var(--wm-green);
  background: transparent;
  border-bottom: solid 2px var(--wm-gold);
}

@media screen and (max-device-width: 1024px) {
  div.slide { font-size: 100%; }
}
@media screen and (max-device-width: 800px) {
  div.slide { font-size: 200%; }
  div.slidy_toc {
    top: 1em; left: 1em; right: auto;
    width: 80%; font-size: 180%;
  }
}

div.toc-heading {
  width: 100%;
  border-bottom: solid 1px var(--wm-gold);
  margin-bottom: 1em;
  text-align: center;
}

img { image-rendering: optimize-quality; }

/* ---- Code blocks: silver background, green border & text ---- */
pre {
  font-size: 80%;
  font-weight: bold;
  line-height: 120%;
  padding-top: 0.2em;
  padding-bottom: 0.2em;
  padding-left: 1em;
  padding-right: 1em;
  border-style: solid;
  border-left-width: 1em;
  border-top-width: thin;
  border-right-width: thin;
  border-bottom-width: thin;
  border-color: var(--wm-green);
  color: var(--wm-green-dark);
  background-color: var(--wm-silver);
}

li pre { margin-left: 0; }

blockquote {
  font-style: italic;
  border-left: 0.4em solid var(--wm-gold);
  padding-left: 1em;
  color: var(--wm-gold-dark);
}

img { background-color: transparent }
p.copyright { font-size: smaller }
.center { text-align: center }
.footnote { font-size: smaller; margin-left: 2em; }

a img { border-width: 0; border-style: none }

a:visited { color: var(--wm-green); }
a:link    { color: var(--wm-green); }
a:hover   { color: var(--wm-gold-dark); text-decoration: underline; }
a:active  { color: var(--wm-gold-dark); text-decoration: underline; }

a { text-decoration: none; }
.toolbar a:link    { color: var(--wm-gold); }
.toolbar a:visited { color: var(--wm-gold); }
.toolbar a:active  { color: #ffffff; }
.toolbar a:hover   { color: #ffffff; text-decoration: underline; }

/* ---- Lists: green squares, gold nested ---- */
ul { list-style-type: square; }
ul ul { list-style-type: disc; }
ul ul ul { list-style-type: circle; }
ul ul ul ul { list-style-type: disc; }
li { margin-left: 0.5em; margin-top: 0.5em; }
li li { font-size: 85%; font-style: italic; }
li li li { font-size: 85%; font-style: normal; }

div dt {
  margin-left: 0; margin-top: 1em; margin-bottom: 0.5em;
  font-weight: bold; color: var(--wm-green);
}
div dd { margin-left: 2em; margin-bottom: 0.5em; }

p, pre, ul, ol, blockquote, h2, h3, h4, h5, h6, dl, table {
  margin-left: 1em;
  margin-right: 1em;
}

h2, h3, h4, h5, h6 { color: var(--wm-green); }

p.subhead { font-weight: bold; color: var(--wm-gold-dark); margin-top: 2em; }

.smaller { font-size: smaller }
.bigger { font-size: 130% }

td, th { padding: 0.2em; }
th { background-color: var(--wm-green); color: #ffffff; }
table { border-collapse: collapse; }
td, th { border: 1px solid var(--wm-silver-600); }

ul {
  margin: 0.5em 1.5em 0.5em 1.5em;
  padding: 0;
}
ol {
  margin: 0.5em 1.5em 0.5em 1.5em;
  padding: 0;
}

ul li {
  list-style: square;
  margin: 0.1em 0em 0.6em 0;
  padding: 0 0 0 0;
  line-height: 140%;
}
ol li {
  margin: 0.1em 0em 0.6em 1.5em;
  padding: 0 0 0 0px;
  line-height: 140%;
  list-style-type: decimal;
}
li ul li {
  font-size: 85%; font-style: italic;
  list-style-type: disc; background: transparent; padding: 0 0 0 0;
}
li li ul li {
  font-size: 85%; font-style: normal;
  list-style-type: circle; background: transparent; padding: 0 0 0 0;
}
li li li ul li {
  list-style-type: disc; background: transparent; padding: 0 0 0 0;
}
li ol li { list-style-type: decimal; }
li li ol li { list-style-type: decimal; }

/* outline lists */
ol.outline li:hover { cursor: pointer }
ol.outline li.nofold:hover { cursor: default }
ul.outline li:hover { cursor: pointer }
ul.outline li.nofold:hover { cursor: default }
ol.outline { list-style: decimal; }
ol.outline ol { list-style-type: lower-alpha }

ol.outline li.nofold {
  padding: 0 0 0 20px;
  background: transparent url(../graphics/nofold-dim.gif) no-repeat 0px 0.5em;
}
ol.outline li.unfolded {
  padding: 0 0 0 20px;
  background: transparent url(../graphics/fold-dim.gif) no-repeat 0px 0.5em;
}
ol.outline li.folded {
  padding: 0 0 0 20px;
  background: transparent url(../graphics/unfold-dim.gif) no-repeat 0px 0.5em;
}
ol.outline li.unfolded:hover {
  padding: 0 0 0 20px;
  background: transparent url(../graphics/fold.gif) no-repeat 0px 0.5em;
}
ol.outline li.folded:hover {
  padding: 0 0 0 20px;
  background: transparent url(../graphics/unfold.gif) no-repeat 0px 0.5em;
}
ul.outline li.nofold {
  padding: 0 0 0 20px;
  background: transparent url(../graphics/nofold-dim.gif) no-repeat 0px 0.5em;
}
ul.outline li.unfolded {
  padding: 0 0 0 20px;
  background: transparent url(../graphics/fold-dim.gif) no-repeat 0px 0.5em;
}
ul.outline li.folded {
  padding: 0 0 0 20px;
  background: transparent url(../graphics/unfold-dim.gif) no-repeat 0px 0.5em;
}
ul.outline li.unfolded:hover {
  padding: 0 0 0 20px;
  background: transparent url(../graphics/fold.gif) no-repeat 0px 0.5em;
}
ul.outline li.folded:hover {
  padding: 0 0 0 20px;
  background: transparent url(../graphics/unfold.gif) no-repeat 0px 0.5em;
}

a.titleslide { font-weight: bold; font-style: italic }

img.hidden { display: none; visibility: hidden }
div.initial_prompt { display: none; visibility: hidden }

  div.slide { visibility: visible; position: inherit; }
  div.handout {
    border-top-style: solid;
    border-top-width: thin;
    border-top-color: var(--wm-gold);
  }

@media screen {
  .hidden { display: none; visibility: visible }
  div.slide.hidden { display: block; visibility: visible }
  div.handout.hidden { display: block; visibility: visible }
  div.background { display: none; visibility: hidden }
  body.single_slide div.initial_prompt { display: block; visibility: visible }
  body.single_slide div.background { display: block; visibility: visible }
  body.single_slide div.background.hidden { display: none; visibility: hidden }
  body.single_slide .invisible { visibility: hidden }
  body.single_slide .hidden { display: none; visibility: hidden }
  body.single_slide div.slide { position: absolute }
  body.single_slide div.handout { display: none; visibility: hidden }
}

@media print {
  .hidden { display: block; visibility: visible }
  div.slide pre { font-size: 60%; padding-left: 0.5em; }
  div.toolbar { display: none; visibility: hidden; }
  div.slidy_toc { display: none; visibility: hidden; }
  div.background { display: none; visibility: hidden; }
  div.slide { page-break-before: always }
  div.slide.first-slide { page-break-before: avoid }
}
