html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  vertical-align: baseline;
}
body {
  background-color: #f8f8f8;
  font-family: 'Lexend', sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.619;
  color:#222;
  }
html{
  font-size: 100%; /*20px - 1.333 */
  scroll-behavior: smooth;
}


/*Custom*/

:root {
  --primary-color: rgba(52,92,117,1);
  --typo-h1: 4.211rem;
  --typo-h2: 3.158rem;
  --typo-h3: 2.368rem;
  --typo-h4: 1.777rem;
  --typo-h5: 1.316rem;
  --typo-font-weight: 300;
  --typo-main: 'Lexend', sans-serif;
  --margin-1:1.38rem;
  --margin-2: 3rem;
  --short-width: 66%;
}

img {
  max-width: 100%;
  height: auto;
  margin: 1.578rem 0;
}

hr {
  margin-top: calc(1.578rem * 2);
  margin-bottom: calc(1.578rem * 3);
}

a {
  color: var(--primary-color);
  font-weight: 600;
}
a:hover {
  color: var(--primary-color);
  text-decoration: none;
}


/* Typescale*/
h1,h2,h3,h4,h5,h6 {
  font-family: var(--typo-main);
  font-weight: 600;
  margin: 3rem 0 1.38rem;
  color: var(--primary-color);
  line-height: 1.3;
  }
h1, .h1{
  font-size: var(--typo-h1); /*84px*/
}
h2, .h2{
  font-size: var(--typo-h2); /*60px*/
}
h3, .h3{
  font-size: var(--typo-h3); /*45px*/
}
h4, .h4, h5, .h5, h6, .h6 {
  font-size: var(--typo-h4); /*25px*/
  margin-bottom: 1rem;
}

p {
  font-size: 1.187rem; /*19px*/
  line-height:1.619;
  margin-bottom: 2.125rem;
  }

ul {
  margin: 0 0 2.125rem 1.2rem; 
  line-height:1.619;
  font-size: 1.187rem; /*19px*/
}

.figure {
  margin: 4.25vw 0 ;
}
.figure img{
  display: block;
  margin: auto;
}

figcaption {
  text-align: left;
  margin: 1.578rem 0;
  color: rgba(0,0,0,0.7);
  font-style: italic;
}

cite {
  font-weight: 600;
  font-size: var(--typo-h4);
  line-height:1.3;
  margin-bottom: 1.578rem;
  color: var(--primary-color);
}

blockquote{
  font-size:var(--typo-h5);
  font-family: var(--typo-main);
  border-left: 6px solid rgba(0, 0, 0, 0.15);
  color: var(--primary-color);
  margin-bottom: var(--margin-2);
  margin-top: var(--margin-2);
  padding-left: 1.5rem;
  line-height: 1.45;
  font-weight: 600;
}

.lead {
  color: rgba(0,0,0,0.75);
  font-family: var(--typo-main);
  font-size: 2.312rem;
  line-height: 1.3;
  font-weight: 400;
  width: 50%;
  margin: 20vh 0;
}



/*layout*/

.container {
  width: 100%;
  margin-right: auto;
  margin-left: auto;
  background: #fff;
}
.row {
  display: flex;
  flex-wrap: wrap;
  }

.content{
  width: 78%;
  margin-left: auto!important;
}

.nav {
  position: fixed;
  top:0;
  left: 0;
  z-index: 100;
  width:22%;
  height: 100%;
  overflow-x: hidden;
  background-color: var(--primary-color);
}

.nav img {
  margin: 2rem 2rem 0 0;
}

.cover-img {
  margin: 0;
}
.nav ul {
  font-family: var(--typo-main);
  font-size: 1rem; /*18px*/
  color: rgba(255,255,255,1);
  margin-bottom: calc(1.578rem * 3);
}
.nav ul li {
  line-height: 1.9;
  list-style: none;
  overflow-wrap: break-word;
  font-weight: 500;
  color: rgba(255,255,255,1);
  margin-bottom: 0.4rem;
}
.nav ul li a {
  font-weight: 500;
  text-decoration: none;
  color: rgba(255,255,255,1);
  }

.nav ul li a:hover{
  text-decoration: underline;
  color: rgba(255,255,255,1);}

.nav-btn {
  padding: 7px 20px;
  border: 2px solid rgba(255,255,255,0.2);
  cursor: pointer;
  display: inline-block;
  margin: 0.4rem 0 0 0;
  transition: background-color 0.2s;
}
.nav-btn:hover {
  background:rgba(255,255,255,0.2);
  border: 2px solid rgba(52,92,117,0);  
}
.nav ul li.nav-btn a:hover {
  text-decoration: none;
}
.nav-btn.first {
  margin-top: var(--margin-2);
}

.sidebar {
  padding: 2rem;
}
.info-message {
  background: rgba(250,196,40,0.15);
  border: 1px solid rgba(250,196,40,1);
  border-radius: 3px;
  padding: 0.8rem;
  margin: 2rem;
  color: rgba(0,0,0,0.7);
  position: absolute;
  font-size: 0.8rem;
  bottom: 0;
}
.toggle-btn {
  z-index: 200;
  position: fixed;
  letter-spacing: 0.02rem;
  right: 1rem;
  top: 1rem;
  background-color: #fff;
  padding: 15px 20px;
  border: none;
  cursor: pointer;
  border-radius: 45px;
  box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.15);
}
.chapters {
  padding: 5vw;
}
.chapter-cover {
  border-top: 16px solid rgba(52,92,117,0.8);
  border-bottom: 16px solid rgba(52,92,117,0.3);
  padding: 2rem 0 3rem 0;
  margin: 18rem 0 6rem 0;
}

.chapter-cover h1, .chapter-cover h2, .chapter-cover h3, .chapter-cover h4, .chapter-cover p {
  margin: 1rem;
} 


.cover {
  /* background-image: url(assets/cover.png); */
  background-size: cover;
  background: var(--primary-color);
  display: flex;
  flex-wrap: wrap;
  flex-direction:row;
  justify-content: space-between;
  height: 100vh;
  margin: 0 auto;
  /* padding-left: 5vw; */
  color: #fff;

}
.cover h1{
  color: #fff;
  padding-top: 5vw;
}
.cover img {
  padding-bottom: 10vh;
}
.two-col {
  column-count: 2;
  column-gap: 3rem;
}
article {
  margin-top: 10rem;
  position: relative;
  max-width: 44rem;
}

article h2:first-child{
  font-size: var(--typo-h1) ;
}
article h1 a, article h2 a, article h3 a, article h4 a{
  scroll-margin-top: 10rem;
}

article ol li a {
  color: red;
  background: #f8f8f8;
  padding: 3rem;
}

/*table*/

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.578rem 0;
  color: var(--primary-color);
  line-height: 1.3;
}
thead {
  font-weight: bold;
  color: var(--primary-color);
}
td, th {
  border-bottom: 1px solid #ccc;
  padding: 0.5rem;
  text-align: left;

}
.table-divider td, .table-divider th {
  border: none;
  padding: 1rem 0;
}
.table{
  display: block;
  align-content: stretch;
  max-width:content;
  overflow-x: auto;
  white-space: nowrap;
  border-collapse: collapse;
  border-spacing: 0;
}

/*download*/
.download {
  background-color: var(--primary-color);
  padding: 5vw;
  display: flex;
  color: #fff;
  align-items: center;
}
.download h2, .download p a {
  color:#fff;
}
.download .btn {
  background-color: #fff;
  padding: 15px 30px;
  border: none;
  cursor: pointer;
  border-radius: 45px;
  display: inline-block;
  font-weight: 500;
}

.download a.btn {
  text-decoration: none;
  flex-grow: 3;
}
.download img {
  max-width: 80%;
  padding:1rem;
}
.text {
  margin-right: 2rem;
}
/*footnotes*/
.footnotes {
  margin-top: 5vw;
  
}
.footnote {
  border-top: 5px solid rgba(42,117,94,0.2);
  padding-top: var(--margin-2);
}

._idFootnoteLink, ._idFootnoteAnchor  {
  vertical-align: super; 
  color: var(--primary-color);
  font-weight: 600;
  margin: .4rem;
  background: rgba(52,92,117,.1);
  padding: .2rem .4rem .2rem .4rem;
  font-size: 0.8rem;
  border:1px solid rgba(42,117,94,0.2);
  border-radius: 2px;
}
a._idFootnoteLink, ._idFootnoteAnchor {
  text-decoration: none;
}
.tittel-n2-nonum li a{
  color: purple;
}

.Figur--og-illustrasjonstittel-Fet {
  font-weight: bold;
  color: var(--primary-color);
}



@media (min-width:992px){
  button {
    display: none;
  }
  
}

@media (max-width:992px) {
  .content {
  width: 100%;
  overflow: hidden;
  }
  .info-message {
    position: relative;
  }
  .nav {
  left: -40vw;
  margin-right: -40vw;    
  width: 40vw;
  }
  .nav.collapsed {
  transition: all .25s;
  left: 0;
  margin-right: 0;    
  }
  }

  @media (max-width: 600px) {
  h1, h2, article h2:first-child {
    font-size: var(--typo-h3);
  }
  h3 {
    font-size: var(--typo-h4);
  }    
 
  .cover h1{
    justify-content:flex-start;
  }
  p {
    font-size: 1.125rem; /*18px*/
  }
  .nav {
  left: -90vw;
  margin-right: -90vw;    
  width: 90vw;
  }
  .download h2 {
    font-size: var(--typo-h3);
  }
  .download a.btn {
    text-decoration: none;
    flex-grow: 1;
  }
}
