/*
Theme Name: Nord
Theme URI: https://www.nord.no
Author: Thomas Holten
Author URI: https://www.nord.no
Description: Nord universitets Wordpress-tema
Version: 1.1
Text Domain: nord
*/



/* 
 * GLOBAL AND THEME-RELATED STYLES 
 * */



h1, h2, h3, h4, h5, h6 {
	color: #000;
}

h2, h3, h4, h5, h6 {
	margin-top: 1.5rem;
}

h4 {
	font-weight: 600;
}

* {
	font-family: "Calibri", sans-serif;
}

p, a, li, button, span, footer, nav {
	font-size: 1.3rem;
}

a {
	color: #0077a6;
}

a:hover {
	opacity: .6;
}

.featured-image-wrapper {
	margin: 12px 0px;
}

.featured-image-wrapper img {
	width: 100%;
	aspect-ratio: 2 / 1;
	object-fit: cover;
	display: block;
}

.nord-bg-dark {
	background-color: #003d4c;
}

.nord-bg-light {
	background-color: #e7f1f3;
}

.nord-text-light {
	color: #e7f1f3;
	text-decoration: none;
}

.nord-link-dark {
	color: #003d4c;
	text-decoration: none;
}

.nord-link-dark:hover {
	color: #165C7D;
	text-decoration: none;
}

.blog-brand {
  font-variant: small-caps;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.no-underline:hover {
	text-decoration: none;
}

.nord-brand-link {
  position: relative;
  display: inline-block;
  text-decoration: none;
  letter-spacing: 0.5px;
  color: #003d4c; /* fallback if no text color is set */
  padding-bottom: 2px;
	font-weight: 400;
	padding: 6px 12px;
	border: 1px solid #003d4c;
	border-radius: 30px;
	background-color: #fff;
}

.nord-brand-link:hover {
	color: #165C7D;
}

/* Show dropdown hover for desktop */
.nav-item.dropdown:hover > .dropdown-menu {
    display: block;
    margin-top: 0; /* keep it tight to the parent */
}

/* Smooth dropdown alignment */
.dropdown-menu {
    margin-top: 0.5rem;
}

.single-post-max-width {
	max-width: 850px;
}

.featured-image-description {
	margin-top: -6px;
	font-size: 1rem;
	text-align: left;
	font-style: italic;
}

.wp-block-latest-posts__read-more {
	display: none;
}


@media only screen and (max-width: 750px) {

	p, a, li, button, span, footer, nav {
		font-size: 1.2rem;
	}
	
	h1 {
		font-size: 2.5rem;
	}
	
	.featured-image-wrapper img {
		width: 100%;
		aspect-ratio: 2 / 1;
		object-fit: cover;
		display: block;
	}
	
	.featured-image-wrapper {
		margin: 12px 0px;
	}
	
	#nord-site-description {
		display: none;
	}
	
	nav .nav-link {
		font-size: 1rem;
	}
	
	#header-logo {
		height: 30px !important;
	}
	
	nav .nord-brand-link {
		font-size: 1.1rem;
	}
	
	.navbar-toggler-icon {
		width: 1em;
		height: 1em;
	}
	
	.navbar-light {
		padding-top: 25px;
		padding-bottom: 25px;
	}
	
}


/* 
 * GUTENBERG BLOCK-RELATED STYLES 
 * NOTICE: MUST ALSO BE CHANGED IN FUNCTIONS.PHP
 * */

.wp-block-button a {
    color: #000;
    background-color: #FFA300;
    padding: 0.5em 1.5em;
	margin: 1em 0;
	border: 1px solid #cf8400;
}

.wp-block-button a:hover {
    background-color: #ffd282;
	text-decoration: none;
	font-weight: initial;
}

.wp-block-pullquote {
    padding: 2em;
    background-color: #ffedcc;
}

.wp-block-pullquote blockquote {
	max-width: 800px;
	margin: 0 auto;
}

.wp-block-details * {
	margin: 1em;
}

.wp-block-details summary {
    background-color: #e7f1f3;
    padding: 1em;
    margin: 0.5em 0 !important;
    font-size: 1.2em;
}

details[open] {
	background-color: #f9fbfb;
}
