//
// Typography
// --------------------------------------------------


// Body text
// -------------------------

//JM edited
p {
  margin: 0; 
}

* + p {
	margin: 5px 0;
}

.lead {
  margin-bottom: 20px; //JM edited
  font-size: @baseFontSize * 1.5; //JM edited
  font-weight: 200;
  line-height: @JMbaseLineHeight * 1.5; //JM edited
}


// Emphasis & misc
// -------------------------

// Ex: 14px base font * 85% = about 12px
small   { font-size: 85%; }

strong  { font-weight: bold; }
em      { font-style: italic; }
cite    { font-style: normal; }

// Utility classes
.muted               { color: @grayLight; }
a.muted:hover,
a.muted:focus        { color: darken(@grayLight, 10%); }

.text-warning        { color: @warningText; }
a.text-warning:hover,
a.text-warning:focus { color: darken(@warningText, 10%); }

.text-error          { color: @errorText; }
a.text-error:hover,
a.text-error:focus   { color: darken(@errorText, 10%); }

.text-info           { color: @infoText; }
a.text-info:hover,
a.text-info:focus    { color: darken(@infoText, 10%); }

.text-success        { color: @successText; }
a.text-success:hover,
a.text-success:focus { color: darken(@successText, 10%); }

.text-left           { text-align: left; }
.text-right          { text-align: right; }
.text-center         { text-align: center; }


// Headings
// -------------------------

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 10px; //JM edited
  //font-family: @headingsFontFamily;
	font-family: @JMmoduleTitleFontFamily;
  font-weight: @headingsFontWeight; 
  line-height: 1.2; //JM edited
  color: @JMheadingFontColor;
  text-rendering: optimizelegibility; // Fix the character spacing for headings
  small {
    font-weight: normal;
    line-height: 1;
  }
  a {
		color: inherit;
    text-decoration: none; //JM added
		&:hover {
			color: @JMstyleLink;
		}
  }
}

//color-ms
#jm-allpage .color-ms {
	h1, h2, h3, h4, h5, h6 {
		color: inherit;
		a:hover {
			color: inherit;
		}
	}
}

//dark
#jm-top3,
#jm-bottom1,
#jm-footer-mod {
	h1, h2, h3, h4, h5, h6 {
		color: inherit;
		a:hover {
			color: @JMstyleLink;
		}
	}
}

h1 { font-size: @baseFontSize * 2.75; } 
h2 { font-size: @baseFontSize * 2.25; } 
h3 { font-size: @baseFontSize * 1.75; } 
h4 { font-size: @baseFontSize * 1.25; } 
h5 { font-size: @baseFontSize; }
h6 { font-size: @baseFontSize * 0.85; }

h1 small { font-size: @baseFontSize * 1.75; } 
h2 small { font-size: @baseFontSize * 1.25; } 
h3 small { font-size: @baseFontSize; }
h4 small { font-size: @baseFontSize; }

// Lists
// --------------------------------------------------

// Unordered and Ordered lists
ol {
  padding: 0;
  margin: 0 0 @baseLineHeight / 2 25px;
}
ul ul,
ul ol,
ol ol,
ol ul {
  margin-bottom: 0;
}
ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

//JM added
ul:not([class]) li,
ul.jm-arrow li,
ul.jm-arrow2 li {
  background-image: url("../images/li.png");
  margin: 0;
  padding: 0 0 0 15px;
  background-repeat: no-repeat;
  background-position: left 10px;
}

ul.jm-arrow li {
	background-position: left 7px;
  background-image: url('../images/li-arrow.png');
}

ul.jm-arrow2 li {
	background-position: left 6px;
  background-image: url('../images/li-arrow2.png');
}

//color-ms and dark
#jm-allpage .color-ms,
#jm-top3,
#jm-bottom1,
#jm-footer-mod {
	ul:not([class]) li {
		background-image: url("../images/li-white.png");
	}
	ul.jm-arrow li {
		background-image: url('../images/li-arrow-white.png');
	}
	ul.jm-arrow2 li {
		background-image: url('../images/li-arrow2-white.png');
	}
}

//white-ms
#jm-allpage .white-ms {
	ul:not([class]) li {
		background-image: url("../images/li.png");
	}
	ul.jm-arrow li {
		background-image: url('../images/li-arrow.png');
	}
	ul.jm-arrow2 li {
		background-image: url('../images/li-arrow2.png');
	}
}

// Remove default list styles
ul.unstyled,
ol.unstyled {
  margin-left: 0;
  list-style: none;
}

ul.unstyled {
  margin: 0 0 @baseLineHeight / 2;
  li {
    padding: 0;
    background: none;
  }
  ul {
    list-style: disc;
    margin: 0 0 0 25px;
  }
}

// Single-line list items
ul.inline,
ol.inline {
  margin-left: 0;
  list-style: none;
  > li {
    display: inline-block;
    .ie7-inline-block();
    padding-left: 5px;
    padding-right: 5px;
    background: none;
  }
}

// Description Lists
dl {
  margin-bottom: @baseLineHeight;
}
dt,
dd {
  line-height: @baseLineHeight;
}
dt {
  font-weight: bold;
}
dd {
  margin-left: @baseLineHeight / 2;
}
// Horizontal layout (like forms)
.dl-horizontal {
  .clearfix(); // Ensure dl clears floats if empty dd elements present
  dt {
    float: left;
    width: @horizontalComponentOffset - 20;
    clear: left;
    text-align: right;
    .text-overflow();
  }
  dd {
    margin-left: @horizontalComponentOffset;
  }
}

// MISC
// ----

// Horizontal rules
hr {
  margin: @JMbaseSpace 0;
  border: 0;
  border-top: 1px solid @hrBorder;
}

// Abbreviations and acronyms
abbr[title],
// Added data-* attribute to help out our tooltip plugin, per https://github.com/twbs/bootstrap/issues/5257
abbr[data-original-title] {
  cursor: help;
  border-bottom: 1px dotted @grayLight;
}
abbr.initialism {
  font-size: 90%;
  text-transform: uppercase;
}

// Blockquotes
blockquote {
  padding: 0 0 0 15px;
  margin: 0 0 @baseLineHeight;
  border-left: 5px solid @grayLighter;
  p {
    margin-bottom: 0;
    font-size: @baseFontSize * 1.25;
    font-weight: 300;
    line-height: 1.25;
  }
  small {
    display: block;
    line-height: @baseLineHeight;
    color: @grayLight;
    &:before {
      content: '\2014 \00A0';
    }
  }

  // Float right with text-align: right
  &.pull-right {
    float: right;
    padding-right: 15px;
    padding-left: 0;
    border-right: 5px solid @grayLighter;
    border-left: 0;
    p,
    small {
      text-align: right;
    }
    small {
      &:before {
        content: '';
      }
      &:after {
        content: '\00A0 \2014';
      }
    }
  }
}

// Quotes
q:before,
q:after,
blockquote:before,
blockquote:after {
  content: "";
}

// Addresses
address {
  display: block;
  margin-bottom: @baseLineHeight;
  font-style: normal;
  line-height: @baseLineHeight;
}
