/*
This file is part of the Meeds project (https://meeds.io/).
Copyright (C) 2020 Meeds Association
contact@meeds.io
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License
along with this program; if not, write to the Free Software Foundation,
Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
*/
html {
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
      -ms-text-size-adjust: 100%;
}

body {
  background-color: ~"var(--allPagesBackgroundColor, @{lightGrey})";
  background-image: ~"var(--allPagesBackgroundImage, none)";
  background-repeat: ~"var(--allPagesBackgroundRepeat, no-repeat)";
  background-size: ~"var(--allPagesBackgroundSize, unset)";
  background-position: ~"var(--allPagesBackgroundPosition, unset)";
  overflow: hidden;
  padding: 0;
  margin: 0;
  font-family: @baseFontFamily;
  color: @textColor;
  font-size: @textFontSize;
  font-weight: @textFontWeight;
  font-style: @textFontStyle;
  line-height: @baseLineHeight;
}
table {
  width: 100%;
  max-width: 100%;
  background-color: transparent;
  border-collapse: collapse;
  border-spacing: 0;
}
a:not(:.v-tab):not(:.v-btn) {
  color: @linkColor;
  text-decoration: none;

  &:focus {
    outline: thin dotted #333;
    outline: 5px auto -webkit-focus-ring-color;
    outline-offset: -2px;
  }

  &:hover,
  &:active {
    outline: 0;
    color: @linkColorHover;
  }
}

img {
  max-width: 100%;
  width: auto\9;
  height: auto;
  vertical-align: middle;
  border: 0;
  -ms-interpolation-mode: bicubic;
}
button,
input,
select,
textarea {
  margin: 0;
  font-size: 100%;
  vertical-align: middle;
  font-family: @baseFontFamily;
}
button,
input {
  line-height: normal;
}
button::-moz-focus-inner,
input::-moz-focus-inner {
  padding: 0;
  border: 0;
}
button,
html input[type="button"],
input[type="reset"],
input[type="submit"] {
  -webkit-appearance: button;
  cursor: pointer;
}
label {
  display: block;
  margin-bottom: 5px;
}
label,
select,
button,
input[type="button"],
input[type="reset"],
input[type="submit"],
input[type="radio"],
input[type="checkbox"] {
  cursor: pointer;
}
input[type="search"] {
  box-sizing: content-box;
}
input[type="search"]::-webkit-search-decoration,
input[type="search"]::-webkit-search-cancel-button {
  -webkit-appearance: none;
}
select,
textarea,
input:not([type]),
input[type="text"],
input[type="password"],
input[type="datetime"],
input[type="datetime-local"],
input[type="date"],
input[type="month"],
input[type="time"],
input[type="week"],
input[type="number"],
input[type="email"],
input[type="url"],
input[type="search"],
input[type="tel"],
input[type="color"] {
  display: inline-block;
  color: @inputColor;
  background-color: @inputBackground;
  border: 1px solid @inputBorder;
  padding: 0 10px;
  margin-bottom: @baseLineHeight / 2;
  font-size: @inputFontSize;
  text-overflow: ellipsis;
  line-height: @baseLineHeight;
  min-height: 40px;
  height: @baseLineHeight;
  max-height: 115px;
  vertical-align: middle;
  box-shadow: none;
  box-sizing: border-box;
  border-radius: @inputBorderRadius;
  transition: ~"border linear .2s, box-shadow linear .2s";

  &:focus {
    color: @inputFocusColor;
    border-color: @inputFocusBorder;
    outline: 0;
    box-shadow: ~"inset 0 1px 1px rgba(0,0,0,.075), 0 0 5px @{inputFocusShadow}";
  }
}
input,
textarea {
  width: 270px;
  &::-webkit-input-placeholder {
    color: @placeholderText;
  }
  &:-moz-placeholder {
    color: @placeholderText;
  }
  &::-moz-placeholder {
    color: @placeholderText;
  }
  &:-ms-input-placeholder {
    color: @placeholderText;
  }
}
textarea {
  height: auto;
  overflow: auto;
  vertical-align: top;
  border: solid 2px @greyColor;
}
input[type="radio"],
input[type="checkbox"] {
  margin: 4px 0 0;
  line-height: normal;
}
input[type="file"],
input[type="image"],
input[type="submit"],
input[type="reset"],
input[type="button"],
input[type="radio"],
input[type="checkbox"] {
  width: auto;
}

select,
input[type="file"] {
  height: @inputHeight;
  line-height: @inputHeight;
}
select {
  width: 220px;
  border: 1px solid @inputBorder;
  background-color: @inputBackground;
}
select[multiple],
select[size] {
  min-height: auto;
  height: auto;
}
select:focus,
input[type="file"]:focus,
input[type="radio"]:focus,
input[type="checkbox"]:focus {
  outline: thin dotted #333;
  outline: 5px auto -webkit-focus-ring-color;
  outline-offset: -2px;
}
input[disabled],
select[disabled],
textarea[disabled],
input[readonly],
select[readonly],
textarea[readonly] {
  cursor: not-allowed;
  background-color: @inputDisabledBackground;
}
input[type="radio"][disabled],
input[type="checkbox"][disabled],
input[type="radio"][readonly],
input[type="checkbox"][readonly] {
  background-color: transparent;
}
input:invalid,
textarea:invalid,
select:invalid {
  &:focus {
    border-color: @errorColor;
    border-color: darken(@errorColor, 10%);
    box-shadow: 0 0 6px lighten(@errorColor, 20%);
  }
}
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
nav,
section {
  display: block;
}
audio,
canvas,
video {
  display: inline-block;
}
audio:not([controls]) {
  display: none;
}
sub,
sup {
  position: relative;
  font-size: 75%;
  line-height: 0;
  vertical-align: baseline;
}
sup {
  top: -0.5em;
}
sub {
  bottom: -0.25em;
}
p {
  margin: 0 0 @baseLineHeight / 2;
}
small   { font-size: 85%; }
strong  { font-weight: bold; }
em      { font-style: italic; }
cite    { font-style: normal; }
h1, h2, h3, h4, h5, h6 {
  margin: (@baseLineHeight / 2) 0;
  text-rendering: optimizelegibility; // Fix the character spacing for headings
  small {
    font-weight: normal;
    line-height: 1;
  }
}

h1 {
  font-size: @h1FontSize;
  font-weight: 800;
  line-height: @baseLineHeight * 2;

  small {
    font-size: @baseFontSize * 1.75;
  }
}

h2 {
  font-size: @h2FontSize;
  line-height: @baseLineHeight * 2;

  small {
    font-size: @baseFontSize* 1.25;
  }
}

h3 {
  font-size: @h3FontSize;
  font-weight: normal;
  line-height: @baseLineHeight;

  small {
    font-size: @baseFontSize;
  }
}

h4 {
  font-size: @h4FontSize;
  font-weight: normal;

  small {
    font-size: @baseFontSize;
  }
}

h5 {
  font-size: @h5FontSize;
  font-weight: normal;
  line-height: @baseLineHeight;
}

h6 {
  font-size: @h6FontSize;
  line-height: @baseLineHeight;
}

ul, ol {
  padding: 0;
  margin: 0;

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

li {
  line-height: @baseLineHeight;
  list-style: none;
}
ul.unstyled,
ol.unstyled {
  margin-left: 0 ~'; /** orientation=lt */ ';
  margin-right: 0 ~'; /** orientation=rt */ ';
  list-style: none;
}

ul.inline,
ol.inline {
  margin-left: 0 ~'; /** orientation=lt */ ';
  margin-right: 0 ~'; /** orientation=rt */ ';
  list-style: none;
  > li {
    display: inline-block;
    padding-left: 5px;
    padding-right: 5px;
  }
}

dl {
  margin-bottom: @baseLineHeight;
}
dt,
dd {
  line-height: @baseLineHeight;
}
dt {
  font-weight: bold;
}
dd {
  margin-left: @baseLineHeight / 2 ~'; /** orientation=lt */ ';
  margin-right: @baseLineHeight / 2 ~'; /** orientation=rt */ ';
}

hr {
  margin: @baseLineHeight 0;
  border: 0;
  border-top: 1px solid @hrBorder;
  border-bottom: 1px solid @white;
}

abbr[title],
abbr[data-original-title] {
  cursor: help;
  border-bottom: 1px dotted @grayLight;
}
abbr.initialism {
  font-size: 90%;
  text-transform: uppercase;
}

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

  &.pull-right {
    float: right ~'; /** orientation=lt */ ';
    float: left ~'; /** orientation=rt */ ';
    padding-right: 15px ~'; /** orientation=lt */ ';
    padding-left: 0 ~'; /** orientation=lt */ ';
    padding-left: 15px ~'; /** orientation=rt */ ';
    padding-right: 0 ~'; /** orientation=rt */ ';
    border-right: 5px solid @grayLighter ~'; /** orientation=lt */ ';
    border-left: 0 ~'; /** orientation=lt */ ';
    border-left: 5px solid @grayLighter ~'; /** orientation=rt */ ';
    border-right: 0 ~'; /** orientation=rt */ ';
    p,
    small {
      text-align: end;
    }
    small {
      &:before {
        content: '';
      }
      &:after {
        content: '\00A0 \2014';
      }
    }
  }
}
q:before,
q:after,
blockquote:before,
blockquote:after {
  content: "";
}
address {
  display: block;
  margin-bottom: @baseLineHeight;
  font-style: normal;
  line-height: @baseLineHeight;
}
.btn.disabled, .btn[disabled] {
  opacity: .65;
}

