/*

SETUP

gul: #FBE170

*/

@import url('https://fonts.googleapis.com/css2?family=Libre+Bodoni:ital,wght@0,400;0,700;1,400;1,700&family=Nobile:ital,wght@0,400;0,500;1,400;1,500;1,700&display=swap');

html, body {
    margin:0;
    padding:0;
    -webkit-font-smoothing:antialiased;
    -moz-osx-font-smoothing:grayscale;
}

*, *:before, *:after {
    box-sizing:inherit;
    margin:0;
    padding:0;
}

html {
    font-size:16px;
}

body {
    overflow-y:scroll;
    -webkit-font-smoothing:antialiased !important;
    -moz-osx-font-smoothing:grayscale;
    font-family:'Nobile', sans-serif;
    min-height:100vh;
    color:#000;
    display:flex;
    flex-direction:column;    line-height:1.6;

}

::-moz-selection {
    background-color:#ffea8a;
    color:#000
   }

   ::selection {
    background-color:#ffea8a;
    color:#000
}

img {
    border:none;
}

p {
    margin-bottom:1.5em;
}

p:last-child {
    margin-bottom:0;
}

h1, h2, h3, h4 {
    font-family:'Libre Bodoni', serif;
}

h1 {
    font-size:3.5rem;
    font-weight:700;
    margin-bottom:1.25rem;
    letter-spacing:0.02em;
}

h2 {
    font-size:2rem;
    font-weight:700;
    margin-bottom:0.5rem;
}

h3 {
    font-size:1.42rem;
    margin-bottom:0.5rem;
}

h4, h5, h6 {
    font-weight:normal;
    font-size:0.9rem;
    letter-spacing:0.05em;
}

a {
    text-decoration:none;
    color:#000;
    transition: opacity 120ms cubic-bezier(.455,.03,.515,.955);
}

input:focus, select:focus, textarea:focus, button:focus, a.logo:focus {
    outline: none;
}

.article-content a, .focus a {
    text-decoration:underline;
}

.pagination {
    margin-top:3rem;
}

.pagination-next {
    float:right;
}

.pagination-prev {
    float:left;
}

.nyhet-list {
    margin-top:1rem;
}

.home .nyhet:nth-child(2) {
    opacity:0.75
}

.home .nyhet:nth-child(3) {
    opacity:0.5
}

.home .nyhet:nth-child(4) {
    opacity:0.25
}

li.nyhet:not(:last-child) {
    margin-bottom: 2rem;
}

.nyhet-excerpt-header, .nyhet-excerpt-text {
    margin-bottom: 0.5rem;
}

.nyhet-excerpt h3 {
    line-height: 0.75;
    margin-bottom:0;
}

.nyhet-excerpt a {
    text-decoration:none;
}

a.readmore {
    text-decoration:underline;
}

ul, ol {
    list-style-type:none;
}

a:focus, .left:focus, .right:focus {
    outline:3px solid #ffea8a;
}

.mobile-menu a:focus, nav a:focus {
    outline:none;
}

nav.menu a:focus, nav.menu .left:focus, nav.menu .right:focus {
    outline:none;
}

[aria-current] {
    font-weight: bold;
}

/* MAIN */

main {
    padding-bottom: 4rem;
    flex: 1 0 auto;
}

.nav-container {
    position: fixed;
    left: 0%;
    top: auto;
    right: 0%;
    bottom: 0%;
    z-index: 1000;
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    width: 100%;
    margin-right: auto;
    margin-left: auto;
    padding-bottom: 3rem;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
}

a.logo:hover {
    opacity:1;
}

.wrap, .article-masthead figcaption {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    max-width: 90rem;
    box-sizing:border-box;
    padding-left:3rem;
    padding-right:3rem;
}

header {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 4rem;
    padding-top: 2rem;
}

.home header {
    margin-bottom:0;
}

time {
    font-size: 0.8rem;
    font-style:italic;
}

footer {
    background: #f7f7f7;
    background: url(../../assets/img/focus-bg.png), #f7f7f7;
    background-repeat:no-repeat;
    background-position:right;
    font-size: 0.8rem;
    padding: 4rem 0 12rem 0;
}

.logo {
    display: flex;
    align-items: center;
    font-weight: 600;
    cursor: pointer;
}

.bi {
    padding-right:10px;
    vertical-align: -.125em;
    height: 1em;
}

ul.breadcrumbs {
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
    text-overflow:"  ...";
}

ul.breadcrumbs>:before,ul.breadcrumbs>:last-child:after {
    content:" ";
    margin:0
}

ul.breadcrumbs>:after {
    content:" /";
    color:#999;
    margin:0 0 0 .5rem;
    position:relative;
    top:1px;
    font-size:.875rem
}

ul.breadcrumbs li {
    display:inline-block;
}

ul.breadcrumbs li .node-title {
    display:inline-block;
    font-size:.875rem;
    font-weight:700;
    padding-bottom:14px;
    padding-top:14px;
    margin-left:.5rem;
    color:#1b1e23;
    text-transform:none;
    line-height:1
}

ul.breadcrumbs li:first-of-type .node-title {
    margin-left:0;
}

ul.breadcrumbs li:last-of-type .node-title a {
    color:#000;
    border-bottom:none;
    pointer-events:none;
    cursor:default;
    text-decoration:none;
}

ul.breadcrumbs li .current {
    pointer-events:none;
}

.masthead {
    margin: 12rem 0;
}

.focus {
    background: url(../../assets/img/focus-bg.png), #FBE170;
    background-repeat:no-repeat;
    background-position:right;
    padding:4rem 0;
    margin: 4rem 0;
}

span.ingress {
    font-size: 1.25rem;
    display: block;
    margin-bottom: 2.75rem;
}

figure {
    margin: 2.75rem 0;
}

.article-masthead figure {
    margin-top:0;
}

figcaption {
    font-size:0.875rem;
    color:#777;
    text-align:center;
    padding-top:10px;
}

.article-masthead figure img {
    width: 100%;
    overflow: hidden;
    display: flex;
    justify-content: center;
    object-fit: cover;
    height: 500px;
}

.wrap figure img {
    max-width: 100%;
    margin: 0 auto;
    display: block;
    max-height: 500px;
}

form {
    text-align:center;
    max-width:24rem;
    margin: 0 auto;
}

.login-icon {
    border-radius:50%;
    background-color:#f7f7f7;
    width: 92px;
    height: 92px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 30px auto;
}

form .bi {
    color:#000;
    padding-right:0;
    height:1.75em;
}

form input {
    width: 100%;
    text-align: left;
    font-family: inherit;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    box-sizing: border-box;
    height: 48px;
    text-overflow: ellipsis;
    border-radius: 12px;
    border: 1px solid #d7d7d7;
    font-size: 1rem;
    padding: 0.8rem;
    transition: all .2s ease;
    transition-property: all;
    transition-property: background-color,border-color;
    margin-bottom:1rem;
}

form input:hover, form input:focus {
    background-color:#f7f7f7;
}

form button {
    width:100%;
    border:none;
    padding:0.8rem;
    border-radius: 12px;
    font-size:1rem;
    box-sizing: border-box;
    background-color:#FBE170;
    font-weight:bold;
    transition: all .2s ease;
    transition-property: all;
    transition-property: background-color;
    margin-bottom: 24px;
    color:#000;
}

form button:hover {
    background-color:#eed66c;
}

label, .footer-header {
    font-weight: bold;
    font-size: 0.8rem;
    margin-bottom: 8px;
}

form label {
    float:left;
}

.is-danger {
    color:red;
    font-weight: bold;
    font-size: 0.8rem;
    float: left;
    margin-bottom: 8px;
}

label.back {
    float:none;
}

label.disabled {
    color:#808080 !important;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    pointer-events:none;
}

label.back a {
    text-decoration:none;
}

.arkiv-link {
    text-align:center;
    display: block;
    padding-top:4rem;
}

.locked main {
    justify-content: center;
    align-items: center;
    display: flex;
}

.file-link {
    display:block;
    margin-bottom: 1.5em;
}

.last {
    margin-bottom:0;
}

nav.menu {
    background-color: hsla(0, 0%, 100%, 0.8);
    display: inline-block;
    border-radius:42px;
    box-shadow: 1px -1px 8px 0px rgba(0,0,0,0.1);
    -webkit-box-shadow: 1px -1px 8px 0px rgba(0,0,0,0.1);
    -moz-box-shadow: 1px -1px 8px 0px rgba(0,0,0,0.1);
    -webkit-backdrop-filter: blur(65px);
    backdrop-filter: blur(65px);
    margin-left:3rem;
    margin-right:3rem;
}

nav.menu ul {
    padding:0 2rem;
}

nav.menu li {
    float:left;
    padding:1.5rem 0.75rem;
}

nav .small {
    display:none;
}

.full-page {
    min-height: 100vh;
    background-color: hsla(0, 0%, 100%, 0.8);
    -webkit-backdrop-filter: blur(65px);
    backdrop-filter: blur(65px);
    top: 0px;
    left: 0px;
    bottom: 0px;
    right: 0px;
    display: none;
    position: fixed;
    color: #000;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    z-index: 99;
}

nav {
    background-color: none;
    transition: all .3s ease;
    transition: backdrop-filter .5s ease, backdrop-filter .3s ease;
    transition: -webkit-backdrop-filter .5s ease, backdrop-filter .3s ease;
    transition-property: background-color,box-shadow,backdrop-filter,-webkit-backdrop-filter;
}

.full-page-wrapper {
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu {
    text-align:center;
    font-size:2rem;
}

.mobile-menu li {
    padding:10px 0;
}

.masthead h1 {
    margin-bottom: 0;
}

.logo img {
    width: 122px;
    height: 122px;
}

body.mobile {
    overflow:hidden;
}

/* MEDIA */

@media (any-hover: hover) {
    a:hover {
        opacity:0.5
    }
}

@media screen and (min-width: 1000px) {
    .meny {
        display:none !important;
    }
}

@media screen and (max-width: 1000px) {
    nav .big {
      display: none;
    }

    nav .small {
        display: block;
    }

    .mobile nav {
        background:none;
        box-shadow:none;
        backdrop-filter:none;
        -webkit-backdrop-filter: none;
    }

    html {
        font-size:14px;
    }

    h1 {
        font-size:2rem; /* samma som h2 */
    }

    .logo img {
        width: 96px;
        height: 96px;
    }
}

@media screen and (max-width:700px) {
    .topline {
        display:none;
    }
}

@media screen and (max-width: 600px) {
    .masthead {
        margin:6rem 0;
    }

    .logo img {
        width: 64px;
        height: 64px;
    }    

    .mobile-menu {
        text-align:center;
        font-size:1.5rem;
    }

    .mobile-menu li {
        padding:5px 0;
    }

    .nav-container {
        padding-bottom: 1.5rem;
    }

    .wrap {
        padding-left:1.5rem;
        padding-right:1.5rem;
    }
}