//
// 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: right; }
.text-right          { text-align: left; }
.text-center         { text-align: center; }


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

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

h1 { font-size: @baseFontSize * 2.75; } // ~38px
h2 { font-size: @baseFontSize * 2.25; } // ~32px
h3 { font-size: @baseFontSize * 1.75; } // ~24px
h4 { font-size: @baseFontSize * 1.25; } // ~18px
h5 { font-size: @baseFontSize; }
h6 { font-size: @baseFontSize * 0.85; } // ~12px

h1 small { font-size: @baseFontSize * 1.75; } // ~24px
h2 small { font-size: @baseFontSize * 1.25; } // ~18px
h3 small { font-size: @baseFontSize; }
h4 small { font-size: @baseFontSize; }

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

// Unordered and Ordered lists
ol {
  padding: 0;
  margin: 0 25px @baseLineHeight / 2 0;
}
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-dark li,
ul.jm-light li {
  background-image: url("../images/@{JMimgDir}/li.png");
  margin: 0;
  padding: 0 20px 0 0;
  background-repeat: no-repeat;
  background-position: right 9px;
}

ul.jm-dark li {
  background-image: url('../images/li2.png');
}

ul.jm-light li {
  background-image: url('../images/li3.png');
}

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

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

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

// Description Lists
dl {
  margin-bottom: @baseLineHeight;
}
dt,
dd {
  line-height: @baseLineHeight;
}
dt {
  font-weight: bold;
}
dd {
  margin-right: @baseLineHeight / 2;
}
// Horizontal layout (like forms)
.dl-horizontal {
  .clearfix(); // Ensure dl clears floats if empty dd elements present
  dt {
    float: right;
    width: @horizontalComponentOffset - 20;
    clear: right;
    text-align: left;
    .text-overflow();
  }
  dd {
    margin-right: @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 15px 0 0;
  margin: 0 0 @baseLineHeight;
  border-right: 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: left;
    padding-left: 15px;
    padding-right: 0;
    border-left: 5px solid @grayLighter;
    border-right: 0;
    p,
    small {
      text-align: left;
    }
    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;
}
