/*  ----------------------------------------------------------------------------
    theme base font type
*/
body,
p {
  font-family: @font2;
  font-size: 13px;
  line-height: 21px;
  color: @td_text_color;
}

p {
  margin-bottom: 21px;
}






/*  ----------------------------------------------------------------------------
    theme specific type
*/

.h5-caps-title {
  font-family: @font1;
  text-transform: uppercase;
  font-size:18px;
  font-weight: 600;
  color:@td_black;
}




a:active, a:focus { /* IE remove focus */
  outline: none;
  //ie-dummy: expression(this.hideFocus=true);
}


a {
  color:@td_theme_color;
  text-decoration: none !important;
}

a:hover {
  text-decoration: underline;
}


ins {
  background: white;
  text-decoration: none;
}


code {
  position: relative;
  top:-1px;
  border: none;
  background-color: #F1F1F1;
  padding: 4px 10px;
}



pre {
  background-color: #f1f1f1;
  padding: 4px 10px 4px 10px;
  border: none;
  border-radius: 0px;
  margin-top: 24px;
}




cite {
  font-family: @font1;
  font-size: 13px; /* ovveride bootstrap */
  font-style: italic;
  font-weight: normal;
  text-transform: none;
  color:#444444;

  a {
    color:#444444;
    &:hover {
      color:#444444;
    }
  }
}

blockquote.pull-right {
  padding-left: 20px;
  border-right: none;
}

blockquote.pull-right:after {
  border-right: 2px solid #FB5502;
  width:40px;
  right: -40px;
}

q {
  font-style: italic;
}



/*  ----------------------------------------------------------------------------
    ul li
*/

ul {
  padding: 0;
  list-style-position: inside;

  li {
    line-height: 24px;
  }
}


ol {
  list-style-position: inside;
  padding: 0;

  li {
    list-style-type: none;
    line-height: 24px;
  }
}


.dl-horizontal a {
  font-weight: 500 !important;
}

.dl-horizontal dt {
  width: 70px;
  font-weight: 400;
  line-height: 24px;
  font-size: 15px;
}

.dl-horizontal dd {
  margin-left: 90px;
  line-height: 24px;
  font-size: 14px;
}


/*  ----------------------------------------------------------------------------
    ul li on post content
*/

.td-post-content,
.mce-content-body,
.comment-content {
  font-size:14px;
  line-height: 24px;



  a:hover {
    text-decoration: underline !important;
  }

  p {
    font-size:14px;
    line-height: 24px;
    margin-bottom: 24px;
  }

  ul {
    list-style-position: inside;
    margin-bottom: 24px;

    li {
      margin: 0 0 0 21px;
    }

    ul,
    ol {
      margin-bottom: 0;
      padding-left: 0;
    }
  }

  ol {
    list-style-position: inside;
    margin-bottom: 24px;

    li {
      list-style-type: decimal;
      margin: 0 0 0 21px;
    }

    ul {
      margin-bottom: 0;
      padding-left: 0;

      > li {
        list-style-type: none;
      }
    }

    ol {
      padding-left: 0;
      margin-bottom: 0;
    }
  }

  .td-arrow-list li:before {
    font-family: @font4;
    content: '\e803';
    float: left;
    margin-left: -19px;
    line-height: 24px;
    font-size: 14px;
  }

  .td-arrow-list {
    margin-left: 21px;
    list-style: none;
  }
}


/*  ----------------------------------------------------------------------------
    quote
*/
.td-page-content,
.td-post-content,
.mce-content-body,
.comment-content {
  blockquote {
    padding: 0;
    position: relative;
    border-left: none;
    margin: 42px 0 38px 0;

    p {
      font-family: @font3;
      font-size: 30px;
      line-height: 40px;
      font-weight: normal;
      font-style: italic;
      text-align: center;
      text-transform: uppercase;
      color: @td_theme_color;

    }
  }

  // reset twitter quote issue
  .twitter-tweet p {
    font-family: initial;
    font-size: initial;
    line-height: initial;
    font-style: initial;
    text-align: initial;
    text-transform: initial;
    color: initial;
    font-weight: initial;
  }

  .td_quote_right {
    float:right;
    width: 50%;
    padding-left: 20px;
    margin-bottom: 21px;
    margin-top: 21px;
  }

  .td_quote_left {
    float:left;
    width: 50%;
    padding-left: 0;
    margin-bottom: 18px;
    margin-top: 18px;

    p {
      text-align: left;
    }
  }

  // box quote
  .td_quote_box {
    margin: 0;
    background-color: #FCFCFC;
    border-left-style: solid;
    border-width: 2px;
    border-color: @td_theme_color;
    padding: 15px 23px 0 23px;
    position: relative;
    top: 6px;

    p {
      font-family: @font1;
      color: #777;
      font-size: 13px;
      line-height: 18px;
      text-align: left;
      padding-bottom: 16px;
      margin: 0;
      text-transform: none;
    }
  }

  .td_box_left {
    width: 40%;
    float: left;
    margin: 0 34px 20px 0;
  }

  .td_box_right {
    width: 30%;
    float: right;
    margin: 0 0 20px 34px;
  }

  .td_box_center {
    margin: 0 0 29px 0;
  }


  // pull quotes
  .td_pull_quote {
    margin: 0;
    position: relative;
    top: 0;

    p {
      font-family: @font1;
      font-size: 14px;
      line-height: 19px;
      font-weight: 600;
      text-transform: none;
      text-align: center;
      margin: 0;

      &:first-child:before {
        position:absolute;
        background: url('@{td_css_path}images/icons/pull-quote-left.png') no-repeat;
        left: 0;
        display:block;
        content:'';
        width: 15px;
        height: 15px;
        box-sizing: border-box;
        -moz-box-sizing: border-box;
        -webkit-box-sizing: border-box;
      }

      &:after {
        position:absolute;
        background: url('@{td_css_path}images/icons/pull-quote-right.png') no-repeat;
        bottom: 10px;
        right: 0;
        display:block;
        content:'';
        width: 15px;
        height: 15px;
        box-sizing: border-box;
        -moz-box-sizing: border-box;
        -webkit-box-sizing: border-box;
      }
    }
  }

  .td_pull_left {
    width: 40%;
    float: left;
    margin: 0 34px 5px 0;
    padding: 17px 25px 18px 25px;
  }

  .td_pull_right {
    width: 30%;
    float: right;
    margin: 0 0 10px 34px;
    padding: 17px 25px 18px 25px;
  }

  .td_pull_center {
    margin: 17px 0;
    padding: 15px 50px 15px 50px;
  }

  .alignnone {
    display: inline-block;
    margin-bottom: 0;
  }
}

blockquote {
  small {
    margin-top: 5px;
    display: block;
    font-size:13px;
    font-style: italic;
    font-weight: normal;
    text-transform: none;
    color:#444;
  }
}


/*  ----------------------------------------------------------------------------
    dropcap
*/
.td-page-content,
.td-post-content,
.mce-content-body,
.comment-content {
  .dropcap {
    float: left;
    display: block;
    font-size: 50px;
    line-height: 52px;
    background-color: @td_theme_color;
    color: white;
    text-align: center;
    margin: 9px 13px 0 0;
    padding: 3px 10px;
    font-family: @font2;
    text-transform: uppercase;
    min-width: 62px;
    min-height: 62px;
  }

  .dropcap1 {
    -webkit-border-radius: 70px;
    -moz-border-radius: 70px;
    border-radius: 70px;
    font-size: 40px;
    line-height: 56px;
    padding: 2px 14px 4px;
  }

  .dropcap2 {
    background-color: transparent !important;
    color: #4B4B4B;
    font-size: 60px;
    line-height: 50px;
    margin: 7px 9px 0 0;
  }

  .dropcap3 {
    background-color: transparent !important;
    color: #4B4B4B;
    font-size: 60px;
    line-height: 42px;
    font-weight: bold;
    margin: 7px 9px 0 0;
  }
}




/*  ----------------------------------------------------------------------------
    h
*/

@h1_size:32px;
@h1_line_height:40px;


h1, h2, h3, h4, h5, h6 {
  font-family: @font1;
  color:@td_black;
  font-weight: 400;
  margin:6px 0px 6px 0px;
}

h1 {
  font-size: 32px;
  line-height: 40px;
  margin-top: 33px;
  margin-bottom: 23px;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 27px;
  line-height: 38px;
  margin-top: 30px;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

h3 {
  font-size: @h1_size - 10;
  line-height: @h1_line_height - 10;
  margin-top: 27px;
  margin-bottom: 17px;
}

h4 {
  font-size: @h1_size - 13;
  line-height: @h1_line_height - 11;
  margin-top: 24px;
  margin-bottom: 14px;
}

h5 {
  font-size: @h1_size - 15;
  line-height: @h1_line_height - 15;
  margin-top: 21px;
  margin-bottom: 11px;
}

h6 {
  font-size: @h1_size - 16;
  line-height: @h1_line_height - 16;
  margin-top: 21px;
  margin-bottom: 11px;
}


.td-post-content {
  h1:first-child,
  h2:first-child,
  h3:first-child,
  h4:first-child,
  h5:first-child,
  h6:first-child
  {
    margin-top: 4px;
  }


}



/*  ----------------------------------------------------------------------------
    text and Images align
*/

.td-post-content,
.mce-content-body
{
  img {
    margin-bottom: 21px;
  }

  // if with caption remove the padding
  figure {
    img {
      margin-bottom: 0px;
    }
  }
}


/*  ----------------------------------------------------------------------------
    text and Images align
*/

.alignnone {
  margin-top: 0px;
}

.aligncenter {
  text-align: center;
  clear: both;
  display: block;
  margin-left: auto;
  margin-right: auto;
  margin-top: 6px;
  margin-bottom: 6px;

}



/*  ----------------------------------------------------------------------------
    align left
*/
.alignleft:not(.td-post-image-left) {
  float:left;
  margin-right: 21px;
  margin-top: 6px;
  margin-bottom: 6px;

  /* responsive portrait tablet */
  @media (min-width: @responsive_p_tablet_min) and (max-width: @responsive_p_tablet_max) {
    max-width: 220px !important;
  }

  /* responsive portrait phone - just a bit, after 500px we make it non float */
  @media (max-width: @responsive_p_phone_max) {
    max-width: 220px !important;
  }

  /* responsive phone CUSTOM - align the image on center */
  @media (max-width: 500px) {
    float:none;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    max-width: 100% !important;
    margin-bottom: 21px;

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

    figcaption {
      text-align: center;
    }
  }
}

// when the picture is on full width (3 td-col)
.td-pb-span12,
.mceContentBody-max-width-big
{
  /* responsive portrait tablet */
  @media (min-width: @responsive_p_tablet_min) and (max-width: @responsive_p_tablet_max) {
    .alignleft:not(.td-post-image-left) {
      max-width: 400px !important;
    }
  }
}



/*  ----------------------------------------------------------------------------
    Screen reader text
*/
.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  height: 1px;
  overflow: hidden;
  position: absolute !important;
  width: 1px;
}


/*  ----------------------------------------------------------------------------
    align right
*/
.alignright:not(.td-post-image-right) {
  float:right;
  margin-left: 21px;
  margin-top: 6px;
  margin-bottom: 6px;

  /* responsive portrait tablet */
  @media (min-width: @responsive_p_tablet_min) and (max-width: @responsive_p_tablet_max) {
    max-width: 220px !important;
  }

  /* responsive portrait phone */
  @media (max-width: @responsive_p_phone_max) {
    max-width: 220px !important;
  }

  /* responsive phone CUSTOM */
  @media (max-width: 500px) {
    float:none;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    max-width: 100% !important;
    margin-bottom: 21px;


    img {
      text-align: center;
      margin-left: auto;
      margin-right: auto;
    }
    figcaption {
      text-align: center;
    }

  }
}

// when the picture is on full width (3 td-col)
.td-pb-span12,
.mceContentBody-max-width-big
{
  /* responsive portrait tablet */
  @media (min-width: @responsive_p_tablet_min) and (max-width: @responsive_p_tablet_max) {
    .alignright:not(.td-post-image-left) {
      max-width: 400px !important;
    }
  }
}



figure.alignright,
figure.alignleft,
figure.aligncenter {
  margin-bottom: 0px;
}





// ?
.alignnone img,
.aligncenter img {
  width: 100%;
}

img.wp-smiley {
  width: auto;
}
/*  ----------------------------------------------------------------------------
     caption
*/

.wp-caption-text,
.wp-caption-dd  //editor-style
{
  font-family: @font2;
  text-align: right;
  margin: 4px 0px 17px 0px;
  font-size:11px;
  font-style: italic;
  font-weight: normal;
  line-height: 17px;
  color:#444444;
  z-index: 1;
}


.wp-caption {
  text-align: center;
  max-width: 100% !important;

}





.wp-caption img {
  max-width: 100% !important;
}



/*  ----------------------------------------------------------------------------
     table
*/

table {
  width: 100%;

  th {
    text-align: left;
    border: 1px solid @td_grid_border_color;
    padding: 2px 8px;
  }

  td {
    border: 1px solid @td_grid_border_color;
    padding: 2px 8px;
  }

  .odd {
    td {
      background-color: #fcfcfc;
    }
  }
}





address {
  font-size: inherit !important;
  line-height: inherit !important;
  margin-bottom: 21px;
}

big {
  text-transform: uppercase;
}


/* Post content */

.post {
  font-family: @font2;
  font-size: 12px;
  line-height: 21px;
  color: #444444;
}


/* Forms, textarea */
textarea {
  font-family: @font2;
  font-size: 12px;
  line-height: 21px;
  color: #444444;
  border: 1px solid @td_grid_border_color;
  width: 100%;
  max-width: 100%;
  height: 168px;
  min-height: 168px;
  padding: 6px 9px 6px 9px;

  &:active,
  &:focus {
    border-color: #cccccc !important;
  }
}

// reset outline focus Chrome
textarea:focus,
input:focus,
input[type]:focus {
  outline: 0 none;
}

/* Input buttons */
input[type=submit] {
  font-family: @font1;
  font-size: 11px;
  font-weight: 600;
  line-height: 16px;
  background-color: #222;
  border-radius: 3px;
  color: #ffffff;
  border: none;
  padding: 7px 12px;

  &:hover {
    background-color: @td_theme_color;
  }
}

input[type=text],
input[type=url],
input[type=tel],
input[type=email] {
  font-family: @font2;
  font-size: 12px;
  line-height: 21px;
  color: #444444;
  border: 1px solid @td_grid_border_color;
  width: 100%;
  max-width: 100%;
  height: 34px;
  padding: 3px 9px 3px 9px;

  &:active,
  &:focus {
    border-color: #cccccc !important;
  }
}


input[type=password] {
  width: 100%;
  position: relative;
  top: 0;
  display: inline-table;
  vertical-align: middle;
  font-size: 12px;
  line-height: 21px;
  color: #444;
  border: 1px solid #ccc;
  max-width: 100%;
  height: 34px;
  padding: 3px 9px;
  margin-bottom: 10px;

  /* responsive portrait phone */
  @media (max-width: @responsive_p_phone_max) {
    font-size: 16px;
  }
}


/*  ----------------------------------------------------------------------------
     embed
*/

embed {
  width: 100%;
}

// videopress from Jetpack
.videopress-placeholder {
  width: 100% !important;
}

.videopress-poster {
  height: auto !important;
  width: 100% !important;
}
.video-player {
  width: 100% !important;
}










/*  ----------------------------------------------------------------------------
    custom post padding
*/

//  text ⇠
.td-paragraph-padding-0 {
  display: block;
  padding-left: 0;
  padding-right: 11%;
}

// ⇢ text ⇠
.td-paragraph-padding-1 {
  display: block;
  padding-left: 11%;
  padding-right: 11%;
}

// ⇢⇢ text ⇠⇠
.td-paragraph-padding-2 {
  display: block;
  padding-left: 17.5%;
  padding-right: 17.5%;
}

// ⇢ text ⇠⇠
.td-paragraph-padding-3 {
  display: block;
  padding-left: 11%;
  padding-right: 17.5%;
}


// ⇢ text
.td-paragraph-padding-4 {
  display: block;
  padding-left: 11%;
  padding-right: 0;
}

// ⇢⇢⇢ text ⇠⇠⇠
.td-paragraph-padding-5 {
  display: block;
  padding-left: 22.5%;
  padding-right: 22.5%;
}

// ⇢⇢ text ⇠
.td-paragraph-padding-6 {
  display: block;
  padding-left: 17.5%;
  padding-right: 11%;
}



//smaller spaces on two columns
.td-pb-span8,
.mceContentBody-max-width-small  //editor-style - small version
{

  //  text ⇠
  .td-paragraph-padding-0 {
    padding-right: 3%;
  }

  // ⇢ text ⇠
  .td-paragraph-padding-1 {
    padding-left: 3%;
    padding-right: 3%;
  }

  // ⇢⇢ text ⇠⇠
  .td-paragraph-padding-2 {
    padding-left: 8.5%;
    padding-right: 8.5%;
  }

  // ⇢ text ⇠⇠
  .td-paragraph-padding-3 {
    padding-left: 3%;
    padding-right: 8.5%;
  }

  // ⇢ text
  .td-paragraph-padding-4 {
    padding-left: 3%;
  }

  // ⇢⇢⇢ text ⇠⇠⇠
  .td-paragraph-padding-5 {
    padding-left: 10.5%;
    padding-right: 10.5%;
  }

  // ⇢⇢ text ⇠
  .td-paragraph-padding-6 {
    padding-left: 8.5%;
    padding-right: 3%;
  }

}



/* responsive phone */
@media (max-width: 500px) {
  .td-paragraph-padding-0,
  .td-paragraph-padding-1,
  .td-paragraph-padding-2,
  .td-paragraph-padding-3,
  .td-paragraph-padding-4,
  .td-paragraph-padding-5,
  .td-paragraph-padding-6 {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }
}




/*  ----------------------------------------------------------------------------
     tagDiv image styles
     the .td-post-image-lef is moved:
      - from image to link
        or
      - from image to figure

*/



/*  ----------------------------------------------------------------------------
    td image left
*/
.td-post-image-left { // our js moves the class form the img to the figure
  float:left;
  position: relative;
  left:-21px;

  figcaption {
    padding-left: 20px;
  }

  /* responsive portrait tablet */
  @media (min-width: @responsive_p_tablet_min) and (max-width: @responsive_p_tablet_max) {
    left:-18px;
    max-width: 220px !important;

    figcaption {
      padding-left: 17px;
    }
  }

  /* responsive portrait phone */
  @media (max-width: @responsive_p_phone_max) {
    max-width: 220px !important;
    left: 0;
    margin-right: 21px; // to compensate for the lack of right positioning

    figcaption {
      padding-right: 0;
    }
  }

  /* responsive phone CUSTOM - align the image on center */
  @media (max-width: 500px) {
    float:none;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    max-width: 100% !important;
  }
}




/*  ----------------------------------------------------------------------------
    td image right
*/
.td-post-image-right { // our js moves the class form the img to the figure
  float:right;
  position: relative;
  right:-20px;
  z-index: 1;

  figcaption {
    padding-right: 20px;
  }
}

/* responsive portrait tablet */
@media (min-width: @responsive_p_tablet_min) and (max-width: @responsive_p_tablet_max) {
  .td-post-image-right {
    right:-18px;
    max-width: 220px !important;

    figcaption {
      padding-right: 17px;
    }
  }
}

/* responsive portrait phone */
@media (max-width: @responsive_p_phone_max) {
  .td-post-image-right {
    right: 0;
    margin-left: 21px; // to compensate for the lack of right positioning
    max-width: 220px !important;

    figcaption {
      padding-right: 0;
    }
  }


}

/* responsive phone CUSTOM - align the image on center */
@media (max-width: 500px) {
  .td-post-image-right {
    float: none;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    max-width: 100% !important;
  }
}



/*  ----------------------------------------------------------------------------
    td image full width
*/
.td-post-image-full {
  position: relative;
  left:-21px;
  max-width: none !important;
  width: 681px !important;
  z-index: 1;

  figcaption {
    padding-right: 20px;
    padding-left: 20px;
  }
}


/* responsive portrait tablet */
@media (min-width: @responsive_p_tablet_min) and (max-width: @responsive_p_tablet_max) {
  .td-post-image-full {
    left:-18px;
    width: 505px !important;

    figcaption{
      padding-right: 17px;
      padding-left: 17px;
    }
  }
}

/* responsive portrait phone */
@media (max-width: @responsive_p_phone_max) {
  .td-post-image-full {
    left: 0;
    width: 100% !important;
    max-width: 100% !important;

    figcaption {
      padding-right: 0;
      padding-left: 0;
    }
  }
}



// full image on full width template (no sidebar)
.td-pb-span12,
.mceContentBody-max-width-big {
  .td-post-image-full {
    width: 1021px !important;
    @media (min-width: @responsive_p_tablet_min) and (max-width: @responsive_p_tablet_max) {
      width: 756px !important;
    }

  }
}




/*  ----------------------------------------------------------------------------
    td image full width -and-grid
*/
.td-post-image-full-and-grid {
  position: relative;
  left:-20px;
  max-width: none !important;
  width: 679px !important;
  z-index: 1;

  figcaption {
    padding-right: 20px;
    padding-left: 20px;
  }
}


/* responsive portrait tablet */
@media (min-width: @responsive_p_tablet_min) and (max-width: @responsive_p_tablet_max) {
  .td-post-image-full-and-grid {
    left:-17px;
    width: 503px !important;

    figcaption{
      padding-right: 17px;
      padding-left: 17px;
    }
  }
}

/* responsive portrait phone */
@media (max-width: @responsive_p_phone_max) {
  .td-post-image-full-and-grid {
    left: 0;
    width: 100% !important;
    max-width: 100% !important;

    figcaption {
      padding-right: 0;
      padding-left: 0;
    }
  }
}



// full image on full width template (no sidebar)
.td-pb-span12,
.mceContentBody-max-width-big {
  .td-post-image-full-and-grid {
    width: 1019px !important;
    @media (min-width: @responsive_p_tablet_min) and (max-width: @responsive_p_tablet_max) {
      width: 754px !important;
    }

  }
}