/* Font definitions - Naturalis brand fonts */
@font-face {
  font-family: "Akkurat Regular";
  src: url("/fonts/akkurat-regular.woff2") format("woff2");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "Akkurat Bold";
  src: url("/fonts/akkurat-bold.woff2") format("woff2");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "Platform Light";
  src: url("/fonts/platform-light.woff2") format("woff2");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "Platform Light Italic";
  src: url("/fonts/platform-light-italic.woff2") format("woff2");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "Platform Regular";
  src: url("/fonts/platform-regular.woff2") format("woff2");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "Platform Medium";
  src: url("/fonts/platform-medium.woff2") format("woff2");
  font-weight: normal;
  font-style: normal;
}

/* Naturalis typography overrides */
:root {
  --LOGO-IMAGE-width: 100%;
  --MAIN-font-family: "Akkurat Regular", sans-serif;
  --MAIN-TITLES-font: "Akkurat Bold", sans-serif;
  --MAIN-H1-font: "Platform Medium", sans-serif;
}

body {
  font-family: var(--MAIN-font-family);
  font-size: 17px !important;
  line-height: 1.7;
  text-rendering: geometricPrecision;
  font-feature-settings: "ss01";
}

h1 {
  font-family: var(--MAIN-H1-font);
  letter-spacing: 0.01em;
  text-transform: none;
  text-align: left;
  line-height: 1.1;
  font-weight: normal;
  font-size: 3.25rem;
}

h2,
h3,
h4,
h5,
h6 {
  font-family: var(--MAIN-TITLES-font);
  letter-spacing: 0.01em;
  font-weight: normal;
}

h4,
h5,
h6 {
  text-decoration: underline;
}

h2 { font-size: 2.1rem; }
h3 { font-size: 1.8rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.2rem; }
h6 { font-size: 0.9rem; }

h1, h2, h3, h4, h5, h6 {
  margin: 2.5rem 0 0 0;
}

p {
  margin: 0.5rem 0 1.7rem 0;
}

li > p {
  margin: 0.8rem 0 0.5rem 0;
}

ul, ol {
  margin-top: 0.85rem;
}

th {
  padding: 0.6rem 0.5rem 0.4rem 0.5rem;
}

.nav > i {
  font-size: 2rem;
}

#sidebar ul li > a {
  padding: 5px 0 3px 0;
}

#header-wrapper {
  text-align: left;
}

#head-tags {
  margin-left: 3.25em;
  margin-top: 1em;
}

#R-body-inner {
  padding-top: 0.375rem;
}

/* Naturalis tag styling */
#R-body .tags a.term-link {
    display: inline-block;
    line-height: 2em;
    font-size: 0.8em;
    position: relative;
    margin: 0 16px 8px 0;
    padding: 0 8px 0 12px;
    background: rgba(0,153,50,1);
    -webkit-border-bottom-right-radius: 5px;
    border-bottom-right-radius: 5px;
    -webkit-border-top-right-radius: 5px;
    border-top-right-radius: 5px;
    -webkit-box-shadow: 0 2px 3px rgba(0,0,0,0.3);
    box-shadow: 0 2px 3px rgba(0,0,0,0.3);
    color: #ffffff;
}

#R-body .tags a.term-link:hover {
    color: #000;
    -webkit-box-shadow: 0 1px 2px rgba(0,0,0,0.2);
    box-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

#R-body .tags a.term-link:before {
    content: "";
    position: absolute;
    top: 0;
    left: -0.94em;
    width: 0;
    height: 0;
    border-color: transparent rgba(0,153,50,1) transparent transparent;
    border-style: solid;
    border-width: 1.05em 1em 1.05em 0;
}

#R-body .tags a.term-link:after {
    content: "";
    position: absolute;
    top: 10px;
    left: 1px;
    width: 5px;
    height: 5px;
    -webkit-border-radius: 50%;
    border-radius: 100%;
    background: #fff;
}