:root {
--title-type: 'Teko', sans-serif;
  --form-control-color: black;
  --accent-color: rgb(140, 30, 30);
}

#primary-nav ul.navigation>li a {
font-size:32px;
color:rgb(100,100,100);
font-family: var(--title-type);
font-weight:500;
border-color:red;
}

body {
 font-family: "Barlow", system-ui;
  font-weight: 400;
  font-style: normal;
padding-bottom:80px;
font-size: 18px;
}
.block-html a  { 
font-size: 18px;
color: #a12f2f;
}
.block-html a:visited {
font-size: 18px;
color: #a12f2f !important;
}
input[type=text] {
 font-family: "Barlow", system-ui;
}
label {
 font-size: 16px;
}

select  {
 font-family: "Barlow", system-ui;
}

.block-asset {
display: flex;
}

a.site-title, a.site-title:link, a.site-title:visited, a.site-title:active, a.site-title:hover, .sub-nav-toggle:after{
margin-left:0px;
padding:0px;
padding-bottom:10px;
padding-left:20px;
width:370px;
font-size:2.0em;
font-family: var(--title-type);
font-style: normal;
font-weight: 100;
line-height:0.73;
padding-top:20px;
}

.beta {
font-size: 24px;
font-weight: bold;
color:  #dc6464;
}

.button.menu-button{
font-family: var(--title-type);
font-size:1.5em;
padding-top:15px;
background-color:transparent;
color:black!important;

}

.menu-button .button{
background-color:transparent;
color:grey;
width:100px;
}

span a {
color: #a12f2f;
font-size: 18px;
}

span a:visited {
color: #a12f2f;
font-size: 18px;
}

span a:link {
color: #a12f2f;
font-size: 18px;
}
.resource-link {
text-decoration: dotted underline;
}

.resource-heading {
text-decoration: dotted underline;
}

.uri-value-link {
color: #0077B6;
text-decoration: dotted underline;
}

.resource-name {
color: #dc6464;
text-decoration: dotted underline;
}

.property .resource-link .resource-name {
    border-bottom: 0pc;
}

#search{
margin:10px 30px 50px 1.5em!important;
margin-bottom:50px!important;
}

#section-sidebar-modal-toggle{
margin-bottom:30px;
margin-left:8px;
}

.open{
z-index:1000;
background-color:white;
 box-shadow: rgba(0,0,0,0.5) 0 20px 20px;
height:calc(30vh + 100px);
}


button:focus, button:active, input:focus, input:active, select:focus, select:active, textarea:focus, textarea:active {
 box-shadow: #333 0 0 0px;
}


/* Titles */

h1{
  font-family: var(--title-type);
  font-weight: 300;
margin-bottom:0px;
padding-bottom:0px;
}

h2{
  font-family: var(--title-type);
font-size:45px;
font-weight:400;
line-height:1.0;
padding-top:0px;
margin-bottom:0px;
}

h2 .title {
color: #dc6464;
}

h3{
  font-family: var(--title-type);
margin-bottom:5px;
font-weight:500;
font-size:25px;
}

p{
margin:0px;
margin-bottom:15px;
}

footer {
display:none;
}

.small{
height:auto;
background-size: 250px !important;
border-width: 0px;
background-position-x: 16px !important;
background-position-y: 20px !important;
background-image:none!important;
}

#primary-nav {
height:120px;
width: 100%;
}

#content {
padding-left:1.5em;
}

.resource-list .resource {
border-top:0px;
}


.bbw-logo {
max-width: 250px;
align-items: center;
}

.item-with-metadata a {
font-size: 16px;
}

.faceted-browse-page .resource-link .resource-name {
padding-top: 10px;
}

.faceted-browse-page .resource-list .resource{
padding-top: 1em;
margin-top: 1em;
}
.permalink  {
display: none;
background-color:  white !important;
color: black !important;
}
.browse .sorting {
display: none;
}
 .resource {
padding-left: 0px;
}
.metadata {
display: none;
}
li {
padding-bottom: 10px;
}
.language {
display: none;
}
.item-sets {
display: none;
}
.property dd.value {
border-bottom: 0px;
}
.linked-header {
display: none;
}
.block img {
float: right;
max-width: 200px;
margin-left: 10px;
}
.item-set #content>h2+h3 {
background: white !important;
}
.show #content>h2+h3  {
background: white !important;
}
.property .value {
    display: block;
  }
 .annotation dl {
   margin-bottom: 0px;
   a {
       font-size: 1em;
   }
 }

#resources-linked {
  border-top: 1px solid gray;
  padding-top: 1em;
  max-width: 75%;
}

/* When not mobile styling */

@media screen and (min-width: 900px) {
    header {
border-width: 0px;
background-position-x: left !important;
}
#content {
width: 100%;
}

#wrap {
    max-width: 95%;
}

.search-results-wrapper {
width: 80%;
}

dl {
 columns: 2;
 column-gap: 4em;
 .value-content {
  break-inside: avoid;  
  }
.property {
  break-inside: avoid;  
  }
 margin-bottom: 3em;
}

.resource {
padding-left: 10px;
}
header h1 {
padding-left: 1.6em;
}

#primary-nav {
width: 100%;
display: flex;
justify-content: space-between;
margin-top: 0px;
padding-left: 1.2em;
height:70px;
margin-right: 100px;
}
#primary-nav ul.navigation {
display: flex;
justify-content: flex-start;
border: 0px;
}
#primary-nav ul.navigation>li {
    list-style-type: none;
    padding: 0 1em;
font-size: 22px!important;
font-family: "Barlow Condensed", sans-serif;
font-weight: bold;
width: auto;
font
}
#primary-nav ul.navigation>li a {
border-bottom: 0px;
}


#content {
padding-left:3.0em;
}
.resource {
 padding-left: 0px;
    }

dl {
max-width: 70%;
}

.small{
height:auto;
background-size: 250px !important;
border-width: 0px;
background-position-x: 26px !important;
background-position-y: 20px !important;
padding:0px;
}

a.site-title:link, a.site-title:visited, a.site-title:active, a.site-title:hover, .sub-nav-toggle:after{
padding-top:40px;
padding-left:0px;
}




footer {
font-family: "Barlow Condensed", sans-serif;
color: white;
position:fixed;
bottom:0px;
   background-color: #222;
    line-height: 1;
    height: 80px;
display:block;
    font-size: 10px;
padding: 1em 5em;
border:0px;
}

}


/* Footer styling */


  #footer {
    height:100%;
    position: absolute;
    z-index: 3000;
    bottom: 2px;
  }

   #footer a:link {
    font-weight: bold;
    color: white !important;
    text-decoration: none;
  }

   #footer a:visited {
    color: white !important;
  }

  .partners {
    float: right;
    position: fixed;
    bottom: 0px;
    right: 0px;
    height: 80px;
  }

  .GRIDHLogo {
    float: right;
    margin-top: 30px;
    width: auto;
    height: auto;
    text-align: left;
    font-weight: 100;
    font-style: normal;
    font-size: 30px;
    line-height: 0.8;
    padding: 0px 50px 5px 30px;
    vertical-align: middle;
  }

  .PartnerLogo {
    float: right;
    margin-top: 30px;
    width: auto;
    height: auto;
    text-align: left;
    font-weight: 100;
    font-style: normal;
    font-size: 30px;
    line-height: 0.8;
    padding: 0px 30px 5px 30px;
    vertical-align: middle;
    border-width: 0px 0.5px 0px 0px;
    border-color: white;
    border-style: solid;
  }



  #developer-info {
  display:none;
}

@media screen and (min-width: 1000px) {
  #developer-info {
    display: flex;
    align-items: flex-start;
    margin-left: -3px;
    margin-top: 15px;
    font-size: 1.3em;
    line-height: 1.4;
    font-weight: 200;
    opacity:1;
  }
}

  #footer  .border-style {
    border-width: 0 0.5px 0 0;
    border-color: white;
    border-style: dashed;
    padding-left: 5px;
    padding-right: 20px;
  }

#developer-info .link {
    color: white;
text-decoration: none;
border:0px;
font-size:16px;
line-height:1.6;
  }

  #footer .link:hover {
    opacity: 0.8;
  }

  .download-link {
    background: url("https://data.dh.gu.se/ui-icons/download_white_circle.png");
    background-size: 18px;
    background-position: 0px 50%;
    background-repeat: no-repeat;
    padding-left: 25px;
    margin-left: 0px;
text-decoration: none;
  }

  .site-link {
    background: url("https://data.dh.gu.se/ui-icons/arrow_link_white_circle.png");
    background-size: 18px;
    background-position: 0px 50%;
    background-repeat: no-repeat;
    padding-left: 25px;
  }

  .links-stack {
    margin-right: 20px;
text-decoration: none;
  }

  .links-stack a {
    display: block;
text-decoration: none;
  }

  #developer-info a:link {
    font-weight: 200;
text-decoration: none;
  }

#matomo {
border-width:0px;
width: 50%;
max-width:650px;
border-radius:12px;
 box-shadow: rgba(0,0,0,0.2) 0 0px 20px;
padding:40px 40px 20px 40px;
font-weight:300;
font-size:0.9em;

}

#matomo p{
line-height:1.2;
}
#matomo button.close {
   display: block;
   margin-top: 1.5em;
margin-left:calc(50% - 30px);
border-radius:4px;
   font-family: "Barlow Condensed", system-ui;
}

dialog::backdrop {
background-color: rgba(0, 0, 0, 0.4);
backdrop-filter:blur(8px);
}

#trackVisits{
margin-right:10px;
focus:none;
}

#trackVisits:focus{
	outline: none;
}


/*   Radio button styling */

  *,
*:before,
*:after {
  box-sizing: border-box;
}

.form-control {
  font-family: system-ui, sans-serif;
  font-size: 2rem;
  font-weight: bold;
  line-height: 1.1;
  display: grid;
  grid-template-columns: 1em auto;
  gap:1.0em;
}

.form-control + .form-control {
  margin-top: 1em;
}

.form-control:focus-within {
  color: var(--form-control-color);
}

input[type="radio"] {
  /* Add if not using autoprefixer */
  -webkit-appearance: none;
  /* Remove most all native input styles */
  appearance: none;
  /* For iOS < 15 */
  background-color: var(--form-background);
  /* Not removed via appearance */
  margin: 0;
  padding-right: 10px;
  font: inherit;
  color: currentColor;
  width: 0.95em;
  height: 0.95em;
  border: 0.08em solid currentColor;
  border-radius: 50%;
  transform: translateY(0.15em);
  display: grid;
  place-content: center;
}

input[type="radio"]::before {
  content: "";
  width: 0.55em;
  height: 0.55em;
  border-radius: 50%;
  transform:scale(0);
  transition: 120ms transform ease-in-out;
  box-shadow: inset 1em 1em var(--form-control-color);
  /* Windows High Contrast Mode */
  background-color: CanvasText;
}

input[type="radio"]:checked::before {
  transform: scale(1);
  transform: translateX(0.23em);
}

input[type="radio"]:focus {
  outline: max(2px, 0.15em) solid currentColor;
  outline-offset: max(2px, 0.15em);
}


.select-list-item label{
  font-size:20px;
  margin-left:0px;
  }
.block .block-asset .svAk .asset {
width: 400px;
align-items: center !important;
}

.assets .asset {
margin-bottom: 1rem;
}

.linked-table .resource-name {
  display: block;   
  margin-bottom: 0.5em; 
}

#resources-linked {
    border-top: 0px;
    max-width: 100%;
}

nav ul li:nth-child(5) {
    display: none;   /* hide by default */
}

.block-asset {
align-items: center;
}

@media (max-width: 900px) {
    nav ul li:nth-child(5) {
        display: block !important;
    }
}



/* Search bar & facets */
#advanced-search-form-wrapper {
display: flex;
align-items: center;
}

#advanced-search-form {
margin-left: auto;
}

.form-search input[type="search"] {
    border: 1px solid #000;
    padding: 5px 40px 5px 10px;
    height: 30px;
    font-size: 16px;
    line-height: 24px;
    font-family: "Barlow", sans-serif;
}

#advanced-search-form .field-meta {
    display: none;
}

#advanced-search-form .field {
    display: flex;
    align-items: center;
}

#advanced-search-form .inputs {
    flex: 1;
}

#advanced-search-form input[type="search"] {
    width: 400px;
}

.autocomplete-suggestion strong {
color: #dc6464;
}

.property dt {
    display: inline;
    font-weight: 600;
    margin-right: 4px;
}

.property dt::after {
    content: ": ";
}

.property dd.value {
    /* display: inline !important; */
    margin: 0 !important;
}

.property .value-content {
    display: inline;
}

.block .block-search h2 {
display: none;
}

@media (max-width: 700px) {
#advanced-search-form-wrapper {
display: block;
}
 #advanced-search-form input[type="search"] {
width: 100%;
}
.search-results-wrapper {
display: grid;
}
.facets h3 {
font-size: 24px;
}
.facet h4 {
margin: 0.2rem;
font-size: 16px;
}
.facet { 
margin-bottom: 0;
}
}

/* Hover functions */
.type-tooltip {
    position: relative;
    display: inline-block;
    margin-left: 0.35em;
    vertical-align: middle;
}

.type-tooltip-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.15em;
    height: 1.15em;
    border: 1px solid currentColor;
    border-radius: 50%;
    font-size: 0.8em;
    line-height: 1;
    cursor: help;
}

.type-tooltip-text {
    display: none;
    position: absolute;
    z-index: 9999;
    left: 50%;
    bottom: 140%;
    transform: translateX(-50%);
    width: max-content;
    max-width: 18rem;
    padding: 0.5rem 0.65rem;
    border: 1px solid currentColor;
    border-radius: 0.35rem;
    background: #fff;
    color: #000;
    font-size: 0.9rem;
    line-height: 1.35;
    white-space: normal;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.type-tooltip:hover .type-tooltip-text,
.type-tooltip:focus .type-tooltip-text,
.type-tooltip:focus-within .type-tooltip-text {
    display: block;
}

.property .resource-link {
    display: inline;
}

.search-results .resource-list.list .resource {
padding: 6px 0 20px;
}

.resource-heading a:link{
color: #dc6464;
}

.resource-heading a:visited {
color: #dc6464;
}

.svAk {
max-width: 80% ;
display: flex;
}

.svAk .assets {
gap: 2rem;
align-items: flex-end;
}

.svAk .asset img {
max-width: 160px;
max-height: 100px;
}