/*---------------------------------------------------------------------------------

	Theme Name: Den Stora Renoveringen
    Text Domain: den-stora-renoveringen
	Version: 1.0.0
	Description: Ett rent tema baserat på Baskerville med masonry-layout och ACF-stöd för bildposter. Rensat från onödiga funktioner.
	Tags: blog, three-columns, masonry, grid-layout, responsive
	Author: Anders Larsson
	Author URI:
	Theme URI:
	License: GNU General Public License version 2.0
	License URI: http://www.gnu.org/licenses/gpl-2.0.html

	All files, unless otherwise stated, are released under the GNU General Public License
	version 2.0 (http://www.gnu.org/licenses/gpl-2.0.html)

-----------------------------------------------------------------------------------

	0.	CSS Reset & Clearfix
	1.	Document Setup
	2.  Structure
	3.	Header
	4.	Navigation
	5.	Main Content
	6.  Single post
	7.	Post Content
	8.	Comments
	9.	Pagination
	10.	Page & Page Templates
	11.	Sidebar
	12.	Footer
	13. Credits
	14.	Responsive

----------------------------------------------------------------------------------- */



.post-content fieldset legend {

	color:#000 !important;
	text-transform: none  !important; 
    letter-spacing: 0px !important;
}

.gform_required_legend {
	display:none;
}

/* Video Container - Responsive video embeds */
.video-container {
	position: relative;
	padding-bottom: 56.25%; /* 16:9 aspect ratio */
	height: 0;
	overflow: hidden;
	margin: 20px 0;
}

.video-container iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

/* Archive Header */
.archive-header {
	max-width: 900px;
	width: 100%;
	padding-top: 1em;
	margin: 0 auto;
}

.archive-header-inner {
	background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
	border-radius: 12px;
	box-shadow: var(--shadow-md);
	padding: 30px 40px;
	text-align: left;
	display: flex;
	align-items: center;
	gap: 20px;
	border-left: 4px solid var(--accent-primary);
	transition: all 0.3s ease;
	position: relative;
	overflow: hidden;
}

.archive-header-inner::before {
	content: '';
	position: absolute;
	top: 0;
	right: 0;
	width: 200px;
	height: 200px;
	background: radial-gradient(circle, rgba(0, 70, 67, 0.08) 0%, transparent 70%);
	border-radius: 50%;
	transform: translate(40%, -40%);
}

.archive-icon {
	font-size: 48px;
	line-height: 1;
	transition: all 0.3s ease;
	flex-shrink: 0;
	filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
	position: relative;
	z-index: 1;
}

.archive-content {
	flex: 1;
	min-width: 0;
	position: relative;
	z-index: 1;
}

.archive-prefix {
	font-family: 'Roboto', sans-serif;
	font-size: 0.65rem;
	font-weight: 700;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: #004643;
	margin-bottom: 4px;
	transition: all 0.3s ease;
	position: relative;
	z-index: 1;
}

.archive-title {
	font-family: 'Roboto Slab', sans-serif;
	font-size: 1.8rem;
	font-weight: 700;
	color: #1d1d1d;
	margin: 0 0 6px 0;
	line-height: 1.2;
	transition: all 0.3s ease;
	position: relative;
	z-index: 1;
}

.archive-description {
	font-family: 'Roboto', sans-serif;
	font-size: 0.9rem;
	color: #666;
	margin: 6px 0;
	line-height: 1.5;
	transition: all 0.3s ease;
	position: relative;
	z-index: 1;
}

.archive-count {
	font-family: 'Roboto', sans-serif;
	font-size: 0.8rem;
	color: #004643;
	font-weight: 600;
	margin-top: 8px;
	display: inline-block;
	background: rgba(0, 70, 67, 0.1);
	padding: 4px 12px;
	border-radius: 20px;
	transition: all 0.3s ease;
	position: relative;
	z-index: 1;
}


/* Sticky Navigation */
.navigation.sticky {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 10000;
	animation: slideDown 0.3s ease;
	box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* Sticky Archive Header */
.archive-header.sticky {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 9999;
	width: 100%;
	max-width: 100%;
	padding: 0;
	margin: 0;
	animation: slideDown 0.3s ease;
}

/* When navigation is sticky, push archive header down */
.navigation.sticky ~ * .archive-header.sticky {
	top: 56px; /* Height of navigation */
}

@keyframes slideDown {
	from {
		transform: translateY(-100%);
		opacity: 0;
	}
	to {
		transform: translateY(0);
		opacity: 1;
	}
}

@keyframes fadeInUp {
	from {
		opacity: 0;
		transform: translateY(30px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes fadeIn {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

.archive-header.sticky .archive-header-inner {
	background: rgba(248, 249, 250, 0.98);
	backdrop-filter: blur(10px);
	border-radius: 0;
	box-shadow: 0 2px 8px rgba(0,0,0,0.08);
	padding: 12px 20px;
	max-width: 100%;
}

.archive-header.sticky .archive-icon {
	display: inline-block;
	font-size: 18px;
	margin: 0 8px 0 0;
	vertical-align: middle;
}

.archive-header.sticky .archive-prefix {
	display: inline-block;
	font-size: 0.6rem;
	margin: 0 6px 0 0;
	vertical-align: middle;
	letter-spacing: 1px;
}

.archive-header.sticky .archive-title {
	display: inline-block;
	font-size: 0.95rem;
	margin: 0;
	vertical-align: middle;
}

.archive-header.sticky .archive-description,
.archive-header.sticky .archive-count {
	display: none;
}

/* Hide archive mobile info by default (only show in mobile) */
.navigation .archive-mobile-info {
	display: none;
}

/* Responsive adjustments for archive header */
@media (min-height: 1300px) {
	.archive-header:not(.sticky) {
		max-width: 1500px;
		width: 80%;
	}
}

@media (max-aspect-ratio: 1/1) {
	.archive-header:not(.sticky) {
		width: 100%;
	}
}

@media (max-width: 768px) {
	.archive-header-inner {
		flex-direction: column;
		text-align: center;
		padding: 25px 30px;
		gap: 15px;
	}

	.archive-icon {
		font-size: 40px;
	}

	.archive-title {
		font-size: 1.5rem;
	}
}

/* Mobile: Merge archive info into navigation bar */
@media (max-width: 1000px) {
	/* Hide separate archive header on mobile */
	.archive-header.sticky {
		display: none !important;
	}

	/* Keep non-sticky archive header visible at top */
	.archive-header:not(.sticky) {
		display: block;
	}

	/* Archive info in navigation */
	.navigation .archive-mobile-info {
		display: inline-block;
		font-family: 'Roboto', sans-serif;
		font-size: 0.8rem;
		color: #aaa;
		position: absolute;
		left: 50%;
		transform: translateX(-50%);
		vertical-align: middle;
		line-height: 1;
	}

	.navigation-inner {
		display: flex;
		align-items: center;
		justify-content: space-between;
		position: relative;
	}

	.navigation .archive-mobile-info .archive-icon {
		font-size: 16px;
		margin-right: 6px;
		vertical-align: middle;
	}

	.navigation .archive-mobile-info .archive-title {
		font-size: 0.85rem;
		color: #ddd;
		font-weight: 600;
		vertical-align: middle;
	}
}


/* -------------------------------------------------------------------------------- */
/*	0. CSS Reset
/* -------------------------------------------------------------------------------- */


html, body { margin:0; padding:0;}

h1, h2, h3, h4, h5, h6, p, blockquote, address, big, cite, code, em, font, img, small, strike, sub, sup, li, ol, ul, fieldset, form, label, legend, button, table, caption, tr, th, td {
	margin:0;
	padding:0;
	border:0;
	font-weight:normal;
	font-style:normal;
	font-size:100%;
	line-height:1;
	font-family:inherit;
	text-align:left;
}

table {
	border-collapse:collapse;
	border-spacing:0;
}

ol, ul {
	list-style:none;
}

blockquote:before, blockquote:after {
	content:"";
}

input[type=search],
input[type=text],
input[type=email],
input[type=url],
input[type=button],
input[type=tel],
input[type=submit],
textarea {
   -moz-appearance: none;
   -webkit-appearance: none;
}

input[type="search"]::-webkit-search-decoration,
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-results-button,
input[type="search"]::-webkit-search-results-decoration {
  display: none;
}


/* -------------------------------------------------------------------------------- */
/*	1. Document setup
/* -------------------------------------------------------------------------------- */


body {
	margin: 0;
	padding: 0;
	border: none;
	background: #f1f1f1;
	color: #444;
	font-family: Roboto, sans-serif;
	font-size: 18px;
	-webkit-font-smoothing: antialiased;
}

body a {
	color: #004643;
	text-decoration: none;
}

body a:hover {
	color: #004643;
	text-decoration: none;
}

* {
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
}

img {
	max-width: 100%;
	height: auto;
}

.hidden { display: none; }
.clear { clear: both; }
.fleft { float: left; }
.fright { float: right; }

::selection {
	background: #444;
	color: #FFF;
}

::-webkit-input-placeholder { color: #999; }
:-ms-input-placeholder { color: #999; }


/* Transitions --------------------------------------- */


body a {
	 transition: all 0.1s ease-in-out;
}

.blog-title a,
.post-title a,
.post-meta a,
.pagination,
.main-menu a,
.main-menu > .has-children > a::after,
.main-menu > .page_item_has_children > a::after,
.searchbutton,
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form textarea,
.form-submit #submit,
.widget_search .searchsubmit,
.widget_search .search-field,
.nav-toggle .bar,
.post-content input[type="submit"],
.post-content input[type="reset"],
.post-content input[type="button"] {
	 transition: all 0.2s ease-in-out;
}

.header,
.featured-media a img {
	 transition: all 0.3s ease-in-out;
}


/* Screen Reader Text ------------------------ */

.screen-reader-text {
	clip: rect( .1rem, .1rem, .1rem, .1rem );
	height: .1rem;
	overflow: hidden;
	position: absolute !important;
		left: -999999rem;
	width: .1rem;
}

.screen-reader-text:focus {
	background-color: #f1f1f1;
	border-radius: .3rem;
	box-shadow: 0 0 .2rem .2rem rgba( 0, 0, 0, 0.6 );
	clip: auto !important;
	display: block;
	font-size: 1.4rem;
	font-weight: 700;
	height: auto;
	left: .5rem;
	line-height: normal;
	padding: 1.5rem 2.3rem 1.4rem 2.3rem;
	text-decoration: none;
	top: .5rem;
	width: auto;
	z-index: 100000;
}


/* Skip Link --------------------------------- */

.skip-link {
	position: absolute;
		left: -9999rem;
		top: 2.5rem;
	z-index: 999999999;
}

.skip-link:focus {
	left: 2.5rem;
	text-decoration: none;
}


/* -------------------------------------------------------------------------------- */
/*	2.	Structure
/* -------------------------------------------------------------------------------- */


.section {
	position: relative;
	padding: 80px 0;
}

.no-padding { padding: 0; }
.small-padding { padding: 40px 0; }
.medium-padding { padding: 60px 0; }
.big-padding { padding: 100px 0; }

.section-inner {
	max-width: 90%;
	x-width: 1400px;
	margin: 0 auto;
}

.section-inner.content { width: 1440px; max-width: 92.6%; }

.section-inner.wide { width: 1240px; }
.section-inner.thin { width: 700px; }

.bg-dark { background-color: #1d1d1d; }
.bg-graphite { background-color: #262626; }
.bg-slate { background-color: #4a5568; }
.bg-grey { background-color: #f1f1f1; }

.bg-image {
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}

.cover {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
}

.cover.shade-light { background: rgba(0,0,0,0.25); }
.cover.shade-medium { background: rgba(0,0,0,0.5); }
.cover.shade-dark { background: rgba(0,0,0,0.75); }


/* columns */


.row .one-fourth { width: 21.5%; margin-left: 5%; float: left; }
.row .one-third { width: 30%; margin-left: 5%; float: left; }
.row .one-half { width: 47.5%; margin-left: 5%; float: left; }
.row .two-thirds { width: 65%; margin-left: 5%; float: left; }

.row .one-fourth:first-child,
.row .one-third:first-child,
.row .one-half:first-child,
.row .two-thirds:first-child { margin-left: 0; }


/* -------------------------------------------------------------------------------- */
/*	3. Header
/* -------------------------------------------------------------------------------- */


.header {
	x-padding: 270px 0;
	height: 600px;
	position: relative;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	padding-bottom: 100px;
}

.header .cover {
	background: rgba(29,29,29,0.5);
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 1;
}

.header-inner {
	position: relative;
	z-index: 10;
	text-align: center;
	max-width: 900px;
	padding: 40px 20px;
	animation: fadeInUp 1s ease-out;
}

.header .blog-logo { text-align: center; }

.header .logo { display: inline-block; }

.header .logo img {
	max-height: 80px;
	width: auto;
}

.blog-title {
	font-family: 'Oswald', sans-serif;
	font-size: 4em;
	font-weight: 600;
	line-height: 1.2;
	text-align: center;
	text-shadow: 2px 2px 8px rgba(0,0,0,0.6);
	margin-bottom: 20px;
	letter-spacing: 2px;
	text-transform: uppercase;
	animation: fadeIn 1.2s ease-out;
}

.blog-title a, .blog-description a { color: #fff; }

.blog-title a:hover { color: #fff; }
.blog-description a:hover { color: #fff; cursor: default; }

.blog-description {
	font-family: 'Oswald', sans-serif;
	font-size: 1.8em;
	line-height: 1.5;
	font-weight: 400;
	color: #fff;
	margin: 0;
	text-align: center;
	text-shadow: 2px 2px 6px rgba(0,0,0,0.7);
	animation: fadeIn 1.4s ease-out;
	max-width: 700px;
	margin: 0 auto;
	letter-spacing: 1px;
}

.scroll-down-arrow {
	position: absolute;
	bottom: 30px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 100;
	cursor: pointer;
	animation: bounce 2s infinite;
	transition: opacity 0.3s ease;
}

.scroll-down-arrow:hover {
	opacity: 0.7;
}

.scroll-down-arrow svg {
	filter: drop-shadow(0 2px 4px rgba(0,0,0,0.4));
}

@keyframes bounce {
	0%, 20%, 50%, 80%, 100% {
		transform: translateX(-50%) translateY(0);
	}
	40% {
		transform: translateX(-50%) translateY(-10px);
	}
	60% {
		transform: translateX(-50%) translateY(-5px);
	}
}


/* -------------------------------------------------------------------------------- */
/*	4. Navigation
/* -------------------------------------------------------------------------------- */


.main-menu {
	font-family: 'Roboto Slab', sans-serif;
	font-size: 0.9em;
	text-align: center;
}

.main-menu li { position: relative; }

.main-menu > li { float: left; }

.main-menu > li:before {
	content: "/";
	display: block;
	position: absolute;
	right: 0;
	top: 50%;
	margin-top: -9px;
	margin-right: -3px;
	font-size: 16px;
	color: #444;
	font-weight: 300;
	z-index: 1000;
}

.main-menu > li:last-child:before { content: none; }

.main-menu > li > a {
	display: block;
	padding: 27px;
	font-size: 0.85em;
	color: #999;
	text-transform: uppercase;
	letter-spacing: 1px;
	font-weight: 700;
}

.main-menu > li:first-child > a { margin-left: 0; }

.main-menu > .has-children > a,
.main-menu > .page_item_has_children > a { padding-right: 47px; position: relative; }

.main-menu > .has-children > a::after,
.main-menu > .page_item_has_children > a::after {
	content: "";
	display: block;
	border: 5px solid transparent;
	border-top-color: #999;
	position: absolute;
	z-index: 1001;
	right: 29px;
	top: 50%;
	margin-top: -2px;
}

.main-menu li:hover > a { cursor: pointer; color: #fff; }

.main-menu > .has-children:hover > a::after,
.main-menu > .page_item_has_children:hover > a::after { border-top-color: #fff; }


/* Sub menus --------------------------------------- */


.main-menu li ul {
	position: absolute;
	z-index: 10000;
	display: block;
	left: -9999px;
	top: 38px;
	opacity: 0;
	z-index: 999;
	transition: opacity 0.3s ease-in-out, top 0.3s ease-in-out;
}

.is_mobile .main-menu li ul {
	opacity: 1;
	display: none;
}

.main-menu > li > ul { padding-top: 20px; }

.main-menu > li > ul:before {
	content: "";
	display: block;
	position: absolute;
	z-index: 1000;
	top: 0px;
	left: 50%;
	margin-left: -10px;
	border: 10px solid transparent;
	border-bottom-color: #2d2d2d;
}

.main-menu ul li {
    float: none;
    display: block;
    border-top: 1px solid rgba(255,255,255,0.075);
}

.main-menu ul li:first-child { border-top: none; }

.main-menu ul > .has-children::after,
.main-menu ul > .page_item_has_children::after {
	content: "";
	display: block;
	border: 6px solid transparent;
	border-left-color: rgba(255,255,255,0.4);
	position: absolute;
	z-index: 1001;
	right: 10px;
	top: 50%;
	margin-top: -5px;
}

.main-menu ul > .has-children:hover::after,
.main-menu ul > .page_item_has_children:hover::after { border-left-color: #FFF; }

.main-menu ul li {
	display: block;
	width: 240px;
	background: #2d2d2d;
}

.main-menu ul a {
	display: block;
	text-align: center;
	padding: 20px;
	margin: 0;
	line-height: 130%;
	color: #999;
}

.main-menu ul a:hover { color: #fff; }

.main-menu li:hover > ul,
.main-menu li.focus > ul {
	opacity: 1;
	left: 50%;
	margin-left: -120px;
	top: 48px;
}

.is_mobile .main-menu li:hover ul { display: block; }


/* Deep down --------------------------------------- */

.main-menu ul li ul { top: 5px; }

.main-menu ul li:hover > ul,
.main-menu ul li.focus > ul {
	top: 0;
	left: 240px;
	margin-left: 0;
}

.main-menu ul ul li { background: #3d3d3d; }
.main-menu ul ul ul li { background: #4d4d4d; }
.main-menu ul ul ul ul li { background: #4d4d4d; }


/* -------------------------------------------------------------------------------- */
/*	5. Content
/* -------------------------------------------------------------------------------- */


.posts { overflow: visible !important; }

/* Timeline layout - overridden at bottom of file with max-width: 900px */

.hentry,
.post {
	width: 100%;
	position: relative;
	background: #fff;
	border-radius: 3px;
	box-shadow: 0 1px 4px rgba(0,0,0,0.1);
	overflow: hidden;
}


/*  Featured media  ----------------------------------------- */


.featured-media a,
.featured-media img,
.featured-media iframe { display: block; }

.featured-media iframe,
.featured-media object { border: none; margin: 0; }

.featured-media a { overflow: hidden; }

.featured-media a img { margin: 0 auto; }

.featured-media a:hover img {
	transform: scale(1.1);
	opacity: 0.8;
}

.media-caption {
	font-size: 0.8em;
	line-height: 110%;
	font-weight: 700;
	color: #999;
	padding: 20px 0;
	margin: 0 10%;
	border-bottom: 1px solid #eee;
}


/*  Post inner  ----------------------------------------- */


.post-header {
	position: relative;
	padding: 8% 10% 0% 10%;
	/*border-bottom: 1px solid #eee;*/
}

.post-header .post-title {
	font-family: 'Roboto Slab', sans-serif;
	font-size: 1.25em;
	line-height: 120%;
	font-weight: 700;
	color: #2B3542;
	word-break: break-word;
	-ms-word-break: break-word;
}

.post-header .post-title a { color: #abd1c6; }
.post-header .post-title a:hover { color: #f9bc60; }

.post-excerpt { padding: 10%; }

.post-excerpt p {
	font-size: 0.95em;
	line-height: 150%;
	color: #666;
}

.post-excerpt p + p { margin-top: 1em; }

.post-excerpt .more-link {
	display: block;
	margin-top: 1.1em;
}

.post-excerpt .more-link:hover { text-decoration: underline; }

.posts .post-meta {
	background: #F9F9F9;
	padding: 0 10%;
}

.posts .post-meta a {
	display: block;
	color: #999;
	font-size: 0.8em;
	font-weight: 700;
	float: left;
	padding: 20px 0px 20px 24px;
	background: no-repeat left center;
	background-size: 18px auto;
	margin-left: 20px;
}

.posts .post-meta a:first-child { margin-left: 0; }

.posts .post-meta a:hover { color: #004643; }

.posts .post-meta a.post-date { background-image: url(images/icons/1x/clock-g.png); }
.posts .post-meta a.post-date:hover { background-image: url(images/icons/1x/clock-c.png); }
.posts .post-meta a.post-comments { background-image: url(images/icons/1x/comment-g.png); }
.posts .post-meta a.post-comments:hover { background-image: url(images/icons/1x/comment-c.png); }

.posts .post-meta a.post-edit-link {
	height: 59px;
	width: 20px;
	text-indent: -9999px;
	background-image: url(images/icons/1x/edit-g.png);
	background-size: 20px auto;
	background-position: center;
}

.posts .post-meta a.post-edit-link:hover { background-image: url(images/icons/1x/edit-c.png); }


/*  Post formats  ----------------------------------------- */


/* format standard, format quote, format link */
/*
.post .post-header:before,
.page .post-header:before {
	content: "";
	display: block;
	border: 12px solid transparent;
	border-top-color: #eee;
	position: absolute;
	z-index: 10;
	bottom: 0;
	left: 10%;
	margin-bottom: -24px;
}

.post .post-header:after,
.page .post-header:after {
	content: "";
	display: block;
	border: 11px solid transparent;
	border-top-color: #fff;
	position: absolute;
	z-index: 11;
	bottom: 0;
	left: 10%;
	margin-left: 1px;
	margin-bottom: -21px;
}
*/

/* format video, format image */


.posts .format-video .post-header:before,
.posts .format-video .post-header:after,
.posts .format-image .post-header:before,
.posts .format-image .post-header:after { content: none; }


/* format image */


.format-image .post-excerpt {
	padding-top: 7.5%;
	font-size: 0.9em;
}

.format-image .post-excerpt .image-caption { font-weight: 600; }


/* format gallery */




/* -------------------------------------------------------------------------------- */
/*	7. Post Content
/* -------------------------------------------------------------------------------- */


.post-content a {
	text-decoration: none;
}

.post-content a:hover {
	text-decoration: underline;
}

.post-content p,
.post-content blockquote,
.post-content ul,
.post-content ol,
.post-content address,
.post-content dl,
.post-content .wp-caption,
.post-content pre {
	line-height: 180%;
	margin-bottom: 1.1em;
	-ms-word-wrap: break-word;
	word-wrap: break-word;
}

.post-content > *:first-child { margin-top: 0; }
.post-content *:last-child { margin-bottom: 0; }

.post-content h1, .post-content h2, .post-content h3, .post-content h4, .post-content h5, .post-content h6 {
	margin: 50px 0 30px;
	font-family: 'Roboto Slab', sans-serif;
	font-weight: 700;
	color: #333;
}

h1 { font-size: 2em; }

h2 { font-size: 1.75em; }

h3 { font-size: 1.5em; }

h4 { font-size: 1.25em; font-weight: 400; }

h5 { font-size: 1em; font-weight: 400; }

h6 {
	font-size: 0.9em;
	font-weight: 700;
	text-transform: uppercase;
}

.post-content h1+h1, .post-content h1+h2, .post-content h1+h3, .post-content h1+h4, .post-content h1+h5, .post-content h1+h6,
.post-content h2+h1, .post-content h2+h2, .post-content h2+h3, .post-content h2+h4, .post-content h2+h5, .post-content h2+h6,
.post-content h3+h1, .post-content h3+h2, .post-content h3+h3, .post-content h3+h4, .post-content h3+h5, .post-content h3+h6,
.post-content h4+h1, .post-content h4+h2, .post-content h4+h3, .post-content h4+h4, .post-content h4+h5, .post-content h4+h6,
.post-content h5+h1, .post-content h5+h2, .post-content h5+h3, .post-content h5+h4, .post-content h5+h5, .post-content h5+h6,
.post-content h6+h1, .post-content h6+h2, .post-content h6+h3, .post-content h6+h4, .post-content h6+h5, .post-content h6+h6 {
	margin-top: 30px;
}

.post-content blockquote {
	position: relative;
	font-size: 1em;
	font-weight: 300;
	font-weight: normal;
	margin: 40px 0;
}

.post-content blockquote:before,
.post-content blockquote:after {
	content: "";
	display: block;
	width: 128px;
	height: 3px;
	background: #eee;
	margin: 40px auto;
}

.post-content blockquote p {
	font-size: 1.2em;
	line-height: 160%;
	font-weight: 300;
	text-align: center;
}

.post-content cite {
	font-family: 'Roboto Slab', sans-serif;
	font-size: 0.9rem;
	font-weight: bold;
	text-transform: uppercase;
	line-height: 140%;
	text-align: center;
}

.post-content cite:before { content: "— "; }

.post-content blockquote cite {
	display: block;
	margin-top: 1em;
}

.post-content blockquote cite em { font-style: italic; font-weight: bold; }

em, q {  font-style: italic;  }

.post-content strong em,
.post-content em strong {
	font-weight: bold;
	font-style: italic;
}

.post-content big { font-size: 1.25em; }

abbr, acronym { cursor: help; }

code, kbd, pre {
	font-size: 0.85em;
	background: #EEE;
	font-family: Menlo, Monaco, monospace;
}

.post-content .highlight {
	background: #fcf8a5;
	display: inline;
	padding: 2px 3px;
}

.post-content kbd,
.post-content code {
	padding: 5px;
	border-radius: 3px;
}

.post-content dl { line-height: 160%; }

.post-content dl dt { font-weight: bold; }

.post-content hr {
	background: #EEE;
	border: none;
	height: 5px;
	margin: 2.5em auto;
	width: 50%;
}

.post-content hr.is-style-wide {
	width: 100%;
}

.post-content ul {
	list-style: disc;
	margin-left: 1.5em;
}

.post-content ul ul { list-style: circle; }
.post-content ul ul ul { list-style: square; }

.post-content ol {
	list-style: decimal;
	margin-left: 1.5em;
}

.post-content ol ol { list-style: lower-alpha; }
.post-content ol ol ol {
	list-style: lower-roman;
}

.post-content ul ul,
.post-content ul ol,
.post-content ol ul,
.post-content ol ol {
	margin-bottom: 0;
}

.post-content li {
	margin-top: 0.5em;
	line-height: 170%;
}

.post-content ol > li:last-child,
.post-content ul > li:last-child {
	margin-bottom: 0;
}

.post-content address {
	padding: 3% 3.5%;
	background: #f1f1f1;
}

.post-content pre {
	white-space: pre-wrap;       /* css-3 */
	white-space: -moz-pre-wrap;  /* Mozilla, since 1999 */
	white-space: -pre-wrap;      /* Opera 4-6 */
	white-space: -o-pre-wrap;    /* Opera 7 */
	word-wrap: break-word;       /* Internet Explorer 5.5+ */
	line-height: 140%;
	padding: 2% 2.5%;
	background: #363F48;
	font-size: 0.8em;
	color: #FFF;
	border-radius: 6px;
}


/* Post media --------------------------------------- */

figure {
	margin: 0;
}

.wp-caption,
.post-content img {
	max-width: 100%;
}

img.alignleft,
.alignleft img,
img.aligncenter,
.aligncenter img,
img.alignright,
.alignright img {
	box-sizing: border-box;
	padding: 5px;
	border: 1px solid #EEE;
}


.post-content .alignleft,
.post-content .alignright {
	margin-bottom: 1.2em;
	max-width: 300px;
}

.post-content .wp-caption a,
.post-content .wp-caption img { display: block; }

.post-content .wp-caption .alignleft,
.post-content .wp-caption .alignright {
	margin-bottom: 0;
}

.post-content .alignleft {
	float: left;
	margin-right: 1em;
}

.post-content .alignright {
	float: right;
	margin-left: 1em;
}

.post-content .aligncenter {
	margin-left: auto;
	margin-right: auto;
}

.post-content .aligncenter a,
.post-content .aligncenter img {
	margin: 0 auto;
}

.post-content .wp-caption-text,
.post-content .gallery-caption {
	font-size: .8em;
	font-weight: 700;
	color: #999;
	padding-top: .5em;
	text-align: left;
	width: 100%;
}

.post-content .gallery-caption {
	font-size: 16px;
	line-height: 24px;
	display: block;
	margin-top: 0.5em;
	text-align: left;
}

/* Gallery items should be centered with left-aligned captions under the image */
.gallery-item {
	text-align: center;
	display: inline-block;
}

.gallery-item .gallery-icon {
	text-align: center;
	display: block;
}

.gallery-item .gallery-caption {
	text-align: left;
	display: block;
}


/* GUTENBERG CLASSES */

.post-content .alignfull {
	margin: 2.5em 0;
	margin-left: calc( ( 1400px * .675 ) * -0.1 );
	width: calc( 1400px * .675 );
	max-width: calc( 1400px * .675 );
}


/* Tables --------------------------------------- */


.post-content table {
	border-collapse: collapse;
    border-spacing: 0;
    empty-cells: show;
    font-size: 0.9em;
    width: 100%;
}

.post-content th,
.post-content td {
	padding: 2%;
	margin: 0;
	overflow: visible;
	line-height: 120%;
	border-bottom: 1px solid #DDD;
}

.post-content caption {
	text-align: center;
	padding: 2%;
}

.post-content thead {
	vertical-align: bottom;
	white-space: nowrap;
}

.post-content th { font-weight: bold; }

.post-content table tbody > tr:nth-child(odd) > td { background: #f9f9f9; }


/* Forms --------------------------------------- */


.post-content fieldset {
	padding: 25px;
	border: 2px solid #eee;
	margin-bottom: 1em;
}

.post-content fieldset legend {
	font-family: 'Roboto Slab', sans-serif;
	font-size: 0.9rem;
	line-height: 1;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 1px;
	padding: 10px 12px;
	background: #004643;
	color: #fff;
}

.post-content label {
	font-size: 1rem;
	font-weight: 700;
}

input,
textarea {
	font-family: inherit;
	-webkit-font-smoothing: antialiased;
}

input[type="text"],
input[type="password"],
input[type="email"],
input[type="url"],
input[type="date"],
input[type="month"],
input[type="time"],
input[type="datetime"],
input[type="datetime-local"],
input[type="week"],
input[type="number"],
input[type="search"],
input[type="tel"],
input[type="color"],
textarea {
	width: 100%;
	padding: 14px 16px;
	font-size: 0.85em;
	border: none;
	color: #333;
	border: 2px solid #eee;
	background: #fdfdfd;
	border-radius: 3px;
	transition: background-color 0.2s ease-in-out;
	-webkit-appearance: none;
}

.post-content textarea {
	height: 180px;
	line-height: 140%;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="url"]:focus,
input[type="password"]:focus,
textarea:focus {
	background: #fdfdfd;
}

.button,
input[type="submit"],
input[type="reset"],
input[type="button"] {
	padding: 12px 16px;
	margin: 0;
	border: none;
	background: #333;
	color: #fff;
	font-size: 0.9rem;
	line-height: 1;
	-webkit-appearance: none;
	border-radius: 3px;
}

.button:hover,
input[type="submit"]:hover,
input[type="reset"]:hover,
input[type="button"]:hover {
	cursor: pointer;
	background: #004643;
	color: #fff;
}


/* Gutenberg Accent Colors --------------------------------------- */

.post-content .has-background { background-color: #222; }

.post-content .has-accent-color { color: #004643; }
.post-content .has-accent-background-color { background-color: #004643; }

.post-content .has-black-color { color: #222; }
.post-content .has-black-background-color { background-color: #222; }

.post-content .has-dark-gray-color { color: #444; }
.post-content .has-dark-gray-background-color { background-color: #444; }

.post-content .has-medium-gray-color { color: #666; }
.post-content .has-medium-gray-background-color { background-color: #666; }

.post-content .has-light-gray-color { color: #888; }
.post-content .has-light-gray-background-color { background-color: #888; }

.post-content .has-white-color { color: #fff; }
.post-content .has-white-background-color { background-color: #fff; }


/* Gutenberg Font Sizes --------------------------------------- */

.post-content .has-small-font-size { font-size: .842em; }
.post-content .has-regular-font-size { font-size: 1em; }

.post-content .has-large-font-size,
.post-content .has-larger-font-size {
	line-height: 1.45;
}

.post-content .has-large-font-size { font-size: 1.333em; }
.post-content .has-larger-font-size { font-size: 1.777em; }


/* Block: Image --------------------------------------- */

.wp-block-image .aligncenter > figcaption,
.wp-block-image .alignleft > figcaption,
.wp-block-image .alignright > figcaption,
.wp-block-image.is-resized > figcaption {
	display: block;
	width: 100%;
}


/* Block: Button --------------------------------------- */

.post-content .wp-block-file__button,
.post-content .wp-block-button__link {
	border-radius: 4px;
	font-weight: 500;
	padding: .8em 1.4em;
}

.post-content .wp-block-file a {
	color: inherit;
}

.post-content a.wp-block-file__button {
	color: #fff;
}

.post-content .wp-block-file__button:hover,
.post-content .wp-block-button__link:hover {
	opacity: .85;
	text-decoration: none;
}


/* Block: Quote --------------------------------------- */

.post-content blockquote,
.post-content .wp-block-quote.is-large,
.post-content .wp-block-quote.is-style-large {
	margin-bottom: 1.25em;
	padding: 0;
}

.post-content blockquote p:last-child {
	margin-bottom: 0;
}

.wp-block-quote.is-large p,
.wp-block-quote.is-style-large p {
	font-size: 1.33em;
	font-style: inherit;
	line-height: 1.5;
}

.post-content .wp-block-quote cite {
	text-align: center;
}

.wp-block-quote.is-large cite,
.wp-block-quote.is-style-large cite {
	font-size: 0.8em;
}


/* Block: Pullquote --------------------------------------- */

.wp-block-pullquote {
	padding: 0;
}


/* Block: Gallery --------------------------------------- */

.wp-block-gallery .blocks-gallery-image figcaption,
.wp-block-gallery .blocks-gallery-item figcaption {
	margin: 0;
	padding-bottom: 10px;
}

.post-content .wp-block-gallery.alignfull {
	padding: 0 8px;
}

.post-content ul.wp-block-gallery:not(.alignfull) {
	margin-left: 0;
}

.post-content ul.wp-block-gallery li:last-child {
	margin-bottom: 16px;
}


/* Block: Cover Image --------------------------------------- */

.wp-block-cover-image.alignfull {
	min-height: 75vh;
}

.wp-block-cover-image p {
	font-weight: 400;
}


/* Block: Column --------------------------------------- */

.wp-block-column {
	padding: 0 5px;
}


/* Block: Audio --------------------------------------- */

.wp-block-audio audio {
	width: 100%;
}


/* Block: File --------------------------------------- */

.post-content .wp-block-file {
	align-items: center;
	background: #E6E9EC;
	border-radius: 4px;
	display: flex;
	justify-content: space-between;
	margin: 30px 0;
	padding: 15px 20px;
}

.post-content .wp-block-file a:not(.wp-block-file__button) {
	font-weight: 600;
	text-decoration: none;
}

.post-content .wp-block-file__button {
	flex-shrink: 0;
}


/* -------------------------------------------------------------------------------- */
/*	8. Comments
/* -------------------------------------------------------------------------------- */


.content .comments,
div#disqus_thread {
	padding: 10%;
	background: #fff;
}

.nocomments {
	padding: 10%;
	text-align: center;
	text-transform: uppercase;
	font-weight: 700;
	color: #999;
}

.comments + .nocomments { border-top: 1px solid #eee; }

.comments-title-container {
	padding-bottom: 20px;
	border-bottom: 1px solid #eee;
	margin-bottom: 40px;
	font-family: 'Roboto Slab', sans-serif;
}

.comments-title {
	font-size: 1.75em;
	font-weight: 700;
	color: #2B3542;
}

.add-comment-title {
	font-size: 1rem;
	text-transform: uppercase;
	font-weight: 700;
	margin-top: 14px;
}

.add-comment-title a:hover { text-decoration: underline; }


/* comment */


.comments div.comment { margin-top: 40px; }

.comments .commentlist > li.comment:first-child > div.comment:first-child { margin-top: 0; }

.comments div.comment { position: relative; }

.comments .children { margin-left: 5%; }

.comment-inner {
	margin-left: 110px;
	padding: 20px;
	background: #eee;
	position: relative;
	border-radius: 3px;
}

.comment-inner:after {
	content: "";
	display: block;
	border: 12px solid transparent;
	border-right-color: #eee;
	position: absolute;
	top: 28px;
	left: 0;
	margin-left: -24px;
}

.comment .avatar {
	float: left;
	width: 80px;
	border-radius: 3px;
}

.comment.bypostauthor { position: relative; }

.comment.bypostauthor:after {
	content: "";
	display: block;
	width: 32px;
	height: 32px;
	background: #004643 url(images/icons/1x/author-w.png) no-repeat center 8px;
	background-size: 14px auto;
	border-radius: 999px;
	position: absolute;
	top: 0;
	left: 0;
	margin-top: -8px;
	margin-left: -8px;
}

.comment-header { margin-bottom: 25px; }

.comment-header cite {
	display: block;
	font-family: 'Roboto Slab', sans-serif;
	font-size: 1em;
	font-weight: 700;
	margin-bottom: 8px;
}

.comment-header cite,
.comment-header cite a { color: #2B3542; }
.comment-header cite a:hover { color: #004643; }

.comment-header p { font-size: 0.85em; }

.comment-header p,
.comment-header p a { color: #999; }

.comment-header p a:hover { color: #666; }

/* comment-content */

.comment-content { font-size: 0.9em; }

.comment-content a:hover { text-decoration: underline; }

.comment-content p,
.comment-content li,
.comment-content blockquote {
	line-height: 150%;
	margin-top: 1em;
	-ms-word-wrap: break-word;
	word-wrap: break-word;
}

.comment-content *:first-child { margin-top: 0; }
.comment-content *:last-child { margin-bottom: 0; }

.comment-content h1, .comment-content h2, .comment-content h3, .comment-content h4, .comment-content h5, .comment-content h6 {
	margin: 50px 0 20px;
	font-family: 'Roboto Slab', sans-serif;
	font-weight: 400;
	font-size: 1.2em;
}

.comment-content blockquote {
	padding: 20px;
	background: #ddd;
}

.comment-content ul {
	list-style: disc;
	margin-left: 1.5em;
}

.comment-content ul ul { list-style: circle; }
.comment-content ul ul ul { list-style: square; }

.comment-content ol {
	list-style: decimal;
	margin-left: 1.5em;
}

.comment-content ol ol { list-style: lower-alpha; }
.comment-content ol ol ol {
	list-style: lower-roman;
}

.comment-content ul ul,
.comment-content ul ol,
.comment-content ol ul,
.comment-content ol ol {
	margin-bottom: 0;
}

.comment-content li {
	margin-top: 0.5em;
	line-height: 170%;
}

.comment-content ol > li:last-child,
.comment-content ul > li:last-child {
	margin-bottom: 0;
}

.comment-content address {
	padding: 20px;
	background: #ddd;
	line-height: 140%;
}

.comment-content pre {
	padding: 20px;
	background: #ddd;
	line-height: 150%;
	overflow-x: scroll;
}

/* comment actions */

.comment-actions {
	position: absolute;
	top: 22px;
	right: 20px;
}

.comment-actions a {
	display: block;
	position: relative;
	float: left;
	width: 32px;
	height: 32px;
	background: #2B3542 no-repeat center;
	background-size: 16px auto;
	border-radius: 999px;
	text-indent: -9999px;
}

.comment-actions a + a { margin-left: -8px; }

.comment-actions .comment-reply-link { background-image: url(images/icons/1x/reply-w.png) }
.comment-actions .comment-edit-link { background-image: url(images/icons/1x/edit-w.png) }

.comment-actions a:hover { background-color: #004643; color: #fff; z-index: 10; }

/* comment navigation */

.comment-nav-below {
	margin-top: 40px;
	border-top: 1px solid #eee;
	padding-top: 20px;
	font-size: 0.9em;
	font-weight: 700;
}

.comment-nav-below a { color: #666; }


/* pingbacks */

.comments .pingbacks {
	padding-top: 40px;
	border-top: 1px solid #eee;
	margin-top: 40px;
}

.pingbacks-title {
	font-family: 'Roboto Slab', sans-serif;
	font-size: 1.25em;
	margin-bottom: 20px;
	color: #2B3542;
}

.pingbacklist .pingback {
	padding: 15px;
	line-height: 130%;
}

.pingbacklist .pingback a { color: #767676; }
.pingbacklist .pingback a:hover { color: #004643; }

.pingbacklist .pingback:nth-child(2n) { background-color: #eee; }


/* -------------------------------------------------------------------------------- */
/*	9. Respond
/* -------------------------------------------------------------------------------- */


.comment-respond {
	padding: 10%;
	background: #fff;
	border-top: 1px solid #eee;
}

.comments .comment-respond {
	padding: 10% 0;
	border-top: none;
}

.comment-reply-title {
	font-family: 'Roboto Slab', sans-serif;
	font-size: 1.75em;
	font-weight: 700;
	color: #2B3542;
}

.comment-reply-title #cancel-comment-reply-link {
	font-size: 0.9rem;
	text-transform: uppercase;
	font-weight: 700;
	margin-left: 5px;
}

.comment-reply-title #cancel-comment-reply-link:hover { text-decoration: underline; }

.comment-notes,
.logged-in-as {
	color: #666;
	line-height: 130%;
	margin-bottom: 40px;
	margin-top: 25px;
}

.logged-in-as a:hover { text-decoration: underline; }

.comment-form { margin-top: 10px; }

.comment-form p {
	margin-top: 18px;
	position: relative;
}

.comment-form p:first-child { margin-top: 0; }

.comment-form label {
	display: block;
	font-size: 16px;
	margin-bottom: .5rem;
}

.comment-form input[type="checkbox"] + label {
	display: inline;
	font-size: 14px;
	margin: 0 0 0 .5rem;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form textarea {
	display: block;
	width: 100%;
	padding: 16px 18px;
	border-radius: 3px;
	background: #f1f1f1;
	color: #333;
	border: 1px solid #eee;
	font-family: 'Roboto', sans-serif;
	font-size: 1em;
	-webkit-font-smoothing: antialiased;
	margin: 0;
}

.comment-form-author,
.comment-form-email,
.comment-form-url { width: 75%; }

.comment-form input[type="text"],
.comment-form input[type="email"] {
	position: relative;
	padding-right: 60px;
	background-repeat: no-repeat;
	background-position: 96% center;
	background-size: auto 24px;
}

input#author { background-image: url(images/icons/1x/author-g.png); }
input#email { background-image: url(images/icons/1x/social/mail-g.png); }
input#url { background-image: url(images/icons/1x/home-g.png); background-size: 24px auto; }

.comment-form textarea { height: 250px; }

.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus,
.comment-form textarea:focus {
	color: #fff;
	background-color: #2B3542;
}

input#author:focus { background-image: url(images/icons/1x/author-w.png); }
input#email:focus { background-image: url(images/icons/1x/social/mail-w.png); }
input#url:focus { background-image: url(images/icons/1x/home-w.png); }

.form-allowed-tags,
.form-allowed-tags code {
	line-height: 160%;
}

.comment-notes,
.form-allowed-tags,
.logged-in-as {
	font-size: 0.9em;
	color: #666;
}

p.form-submit { margin-top: 30px; }

.form-submit #submit {
	padding: 16px 20px;
	border: none;
	margin: 0;
	font-family: 'Roboto Slab', sans-serif;
	font-size: 0.9em;
	font-weight: 400;
	color: #fff;
	text-shadow: 1px 1px 1px rgba(0,0,0,0.1);
	background: #2B3542;
	border-radius: 3px;
	-webkit-font-smoothing: antialiased;
}

.form-submit #submit:hover {
	cursor: pointer;
	background: #004643;
}


/* -------------------------------------------------------------------------------- */
/*	10. Page & Page Templates
/* -------------------------------------------------------------------------------- */


.posts .page {
	width: 100%;
	position: relative;
	background: #fff;
	border-radius: 3px;
	box-shadow: 0 1px 4px rgba(0,0,0,0.1);
	overflow: hidden;
}


/* Image ---------------------------------------------------------- */


/* -------------------------------------------------------------------------------- */
/*	10. Pagination
/* -------------------------------------------------------------------------------- */


.page-title {
	margin-bottom: 60px;
	text-align: center;
}

.page-title h1 {
	font-size: inherit;
}

.page-title h5,
.page-title h1 .top {
	display: inline-block;
	padding-bottom: 4px;
	border-bottom: 2px solid #ccc;
	font-family: 'Roboto Slab', sans-serif;
	font-size: 0.9em;
	font-weight: 700;
	text-transform: uppercase;
	text-align: center;
}

.page-title h1 {
	text-align: center;
}

.page-title h3,
.page-title h1 .bottom {
	display: block;
	margin-top: 15px;
	font-family: 'Roboto Slab', sans-serif;
	font-size: 1.75em;
	font-weight: 400;
	text-align: center;
	color: #2B3542;
}

.tag-archive-meta {
	margin: 30px 0 0;
}

.tag-archive-meta p {
	color: #767676;
	text-align: center;
}

.tag-archive-meta p + p {
	margin-top: 1em;
}


/* archive navigation */

.archive-nav a {
	font-size: 0.9em;
	padding: 16px 20px;
	background: #2B3542;
	border-radius: 3px;
	color: #fff;
}

.archive-nav a:hover {
	background: #004643;
	color: #fff;
}

/* search */

.search-no-results .post-content p { text-align: center; }


/* -------------------------------------------------------------------------------- */
/*	11. Sidebar
/* -------------------------------------------------------------------------------- */


/* -------------------------------------------------------------------------------- */
/*	11. Footer
/* -------------------------------------------------------------------------------- */


/* Footer Grid Layout */
.footer-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 3rem;
}

/* Small screens: stacked */
@media (max-width: 767px) {
	.footer-grid {
		grid-template-columns: 1fr;
		gap: 2.5rem;
	}
}

/* Medium screens: bio on top, then search | tags (25% | 75%) */
@media (min-width: 768px) and (max-width: 1499px) {
	.footer-grid {
		grid-template-columns: 1fr 3fr;
		gap: 3rem;
	}

	.footer-bio {
		grid-column: 1 / -1;
	}

	.footer-search {
		grid-column: 1;
	}

	.footer-tags {
		grid-column: 2;
	}
}

/* Large screens: bio | search | tags (25% | 25% | 50%) */
@media (min-width: 1500px) {
	.footer-grid {
		grid-template-columns: 1fr 1fr 2fr;
		gap: 4rem;
		align-items: start;
	}

	.footer-bio {
		grid-column: 1;
	}

	.footer-search {
		grid-column: 2;
	}

	.footer-tags {
		grid-column: 3;
	}
}

/* Footer Widgets */
.footer-widget {
	margin: 0;
}

/* Footer Bio Section */
.footer-bio {
	margin: 0;
}

.footer-bio p {
	color: #eff0f3;
	font-size: 1rem;
	line-height: 1.7;
	margin: 0 0 1rem 0;
}

.footer-bio .footer-links {
	margin-top: 15px;
	font-size: 0.9rem;
}

.footer-bio .footer-links a {
	color: #f9bc60;
	text-decoration: none;
	transition: color 0.2s ease;
}

.footer-bio .footer-links a:hover {
	text-decoration: underline;
}

.footer-bio .separator {
	color: #666;
	margin: 0 10px;
}

.footer .widget-title,
.footer h3.widget-title {
	color: #f9bc60;
	letter-spacing: 1px;
	font-size: 0.79em;
	text-transform: uppercase;
	margin-bottom: 20px;
	font-weight: 700;
}

.footer .widget-content {
	color: #999;
	font-size: 0.95em;
}

.footer .widget-content p { line-height: 160%; }

.widget-content p + p { margin-top: 1em; }

/* Tag Cloud */
.footer .tag-cloud {
	line-height: 1.8;
}

.footer .tag-cloud-link {
	display: inline-block;
	background-color: #abd1c6;
	color: #004643;
	padding: 4px 12px;
	margin: 0 4px 8px 0;
	border-radius: 3px;
	font-size: 0.85rem;
	text-decoration: none;
	transition: all 0.2s ease;
}

.footer .tag-cloud-link:hover {
	background-color: #f9bc60;
	color: #004643;
	text-decoration: none;
}

.footer .tag-cloud-link .tag-count {
	opacity: 0.6;
	font-size: 0.9em;
}

/* Archive List */
.footer .archive-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.footer .archive-list li {
	margin-bottom: 8px;
}

.footer .archive-list a {
	color: #eff0f3;
	text-decoration: none;
	transition: color 0.2s ease;
	font-size: 0.9rem;
}

.footer .archive-list a:hover {
	text-decoration: underline;
}

/* Search Form */
.footer .searchform {
	position: relative;
}

.footer .searchform .search-field {
	background: #fff;
	border: 2px solid #abd1c6;
	color: #004643;
	padding: 10px 15px;
	width: 100%;
	border-radius: 3px;
	transition: all 0.2s ease;
}

.footer .searchform .search-field:focus {
	background: #fff;
	border-color: #f9bc60;
	outline: none;
}

.footer .searchform .searchsubmit {
	display: none;
}

/* Dark mode footer */
[data-theme="dark"] .bg-slate {
	background-color: #0d0d0d;
}

[data-theme="dark"] .footer-bio p {
	color: #999999;
}

[data-theme="dark"] .footer-bio .footer-links a {
	color: #00c9bd;
}

[data-theme="dark"] .footer-bio .footer-links a:hover {
	text-decoration: underline;
}

[data-theme="dark"] .footer .widget-title,
[data-theme="dark"] .footer h3.widget-title {
	color: #00c9bd;
}

/* Dark mode search field */
[data-theme="dark"] .footer .searchform .search-field {
	background: #2d2d2d;
	border-color: #3a3a3a;
	color: #999999;
}

[data-theme="dark"] .footer .searchform .search-field::placeholder {
	color: #666666;
}

[data-theme="dark"] .footer .searchform .search-field:focus {
	background: #252525;
	border-color: #00a69c;
}

/* Dark mode tag cloud - inverted green colors */
[data-theme="dark"] .footer .tag-cloud-link {
	background-color: #004643;
	color: #abd1c6;
	border: 1px solid #004643;
}

[data-theme="dark"] .footer .tag-cloud-link:hover {
	background-color: #abd1c6;
	color: #004643;
	border-color: #abd1c6;
}


/* -------------------------------------------------------------------------------- */
/*	12. Credits
/* -------------------------------------------------------------------------------- */


.credits p {
	font-family: 'Roboto Slab', sans-serif;
	color: #767676;
	font-size: 0.8rem;
	text-transform: uppercase;
	font-weight: 700;
	letter-spacing: 1px;
}

.credits .credits-center {
	text-align: center;
	float: none;
}

.credits a { color: #ccc; }

.credits a:hover {
	color: #ccc;
	text-decoration: underline;
}

img#wpstats { display: none; } /* Silly WordPress stats */


/* -------------------------------------------------------------------------------- */
/*	13. Responsive
/* -------------------------------------------------------------------------------- */


@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {

	/* 2X images */

	/* Search icons removed - not needed */

	.posts .post-meta a.post-date { background-image: url(images/icons/2x/clock-g.png); }
	.posts .post-meta a.post-date:hover { background-image: url(images/icons/2x/clock-c.png); }
	.posts .post-meta a.post-comments { background-image: url(images/icons/2x/comment-g.png); }
	.posts .post-meta a.post-comments:hover { background-image: url(images/icons/2x/comment-c.png); }

	.posts .post-meta a.post-edit-link { background-image: url(images/icons/2x/edit-g.png); }
	.posts .post-meta a.post-edit-link:hover { background-image: url(images/icons/2x/edit-c.png); }

	/* Link icon removed - post format not used */


	.comment.bypostauthor:after { background-image: url(images/icons/2x/author-w.png); }

	.comment-actions .comment-reply-link { background-image: url(images/icons/2x/reply-w.png); }
	.comment-actions .comment-edit-link { background-image: url(images/icons/2x/edit-w.png); }

	input#author { background-image: url(images/icons/2x/author-g.png); }
	input#email { background-image: url(images/icons/2x/social/mail-g.png); }
	input#url { background-image: url(images/icons/2x/home-g.png); }

	input#author:focus { background-image: url(images/icons/2x/author-w.png); }
	input#email:focus { background-image: url(images/icons/2x/social/mail-w.png); }
	input#url:focus { background-image: url(images/icons/2x/home-w.png); }

	/* Search icons removed - not needed */

}


@media ( max-width: 1555px ) {


	/* Post Content */

	.post-content .alignfull {
		margin-left: calc( ( 90vw * .675 ) * -0.1 );
		max-width: calc( 90vw * .675 );
		width: calc( 90vw * .675 );
	}

}


@media (max-width: 1440px) {


	.wrapper.section { padding: 5% 0; }

	/* pagination */

	.page-title { margin-bottom: 5%; }

	.archive-nav { margin-top: 1%; }


}


@media (max-width: 1040px) {

	/* main content */

	.section-inner.content { max-width: 94%; }

	/* Masonry layout removed - using timeline layout */

}


@media (max-width: 1000px) {


	/* structure */

	.sidebar { display: none; }

	/* navigation */

	.main-menu { display: none; }

	.navigation-inner {
		position: relative;
	}

	.nav-toggle {
		display: block;
		padding: 25px 0;
		background: none;
		border: none;
		outline: none;
	}

	.nav-toggle .bar {
		display: block;
		width: 26px;
		height: 3px;
		margin-top: 5px;
		background: #8E8E8E;
		border-radius: 1px;
	}

	.nav-toggle .bar:first-child { margin-top: 0; }

	.nav-toggle:hover { cursor: pointer; }
	.nav-toggle.active .bar { background: #fff; }

	.navigation .theme-toggle {
		position: absolute !important;
		right: 0 !important;
		top: 50%;
		transform: translateY(-50%);
		padding: 25px 15px;
		margin: 0;
		float: none !important;
	}

	.mobile-menu li { border-top: 1px solid rgba(255,255,255, 0.1); }
	.mobile-menu > li:first-child { border-top: none; }

	.mobile-menu a {
		display: block;
		padding: 25px 5%;
		font-size: 0.9em;
		text-transform: uppercase;
		color: #999;
		letter-spacing: 1px;
	}

	.mobile-menu a:hover { color: #fff; }

	.mobile-menu ul a { padding-left: 10%; }
	.mobile-menu ul ul a { padding-left: 15%; }
	.mobile-menu ul ul ul a { padding-left: 20%; }
	.mobile-menu ul ul ul ul a { padding-left: 25%; }
	.mobile-menu ul ul ul ul ul a { padding-left: 30%; }


	/* Post Content */

	.post-content .alignfull {
		margin-left: calc( 90vw * -0.1 );
		max-width: 90vw;
		width: 90vw;
	}

}


@media (max-width: 800px) {


	/* structure */

	.wrapper.section { padding: 4% 0; }

	.section-inner { max-width: 92%; }
	.section-inner.content { max-width: 97%; }

	/* header */

	.section.header { padding: 50px 0; }

	.header .logo img { max-height: 60px; }

	/* Post Content */

	.post-content .alignfull {
		margin-left: calc( 92vw * -0.1 );
		max-width: 92vw;
		width: 92vw;
	}

	/* footer */

	.footer .one-third { width: 47.5%; }

	/* credits */

	.credits span { display: none; }


}


@media (max-width: 700px) {


	/* single post - DISABLED */
	/*
	.post-author,
	.single .post-meta {
		width: 100%;
		float: none;
		border-radius: 0;
	}

	.single .post-meta-container:after { content: none; }

	.single .post-meta { background-color: #3F4854; }
	*/

	/* post content */

	.post-content .alignleft,
	.post-content .alignright {
		max-width: 100%;
		float: none;
		margin: 1.25em 0;
	}

	.post-content .alignleft a,
	.post-content .alignleft img,
	.post-content .alignright a,
	.post-content .alignright img { margin-left: auto; margin-right: auto; }

	/* comments */

	.comment-form-author,
	.comment-form-email,
	.comment-form-url { width: 100%; }


}


@media (max-width: 600px) {


	body { font-size: 16px; }

	/* structure */

	.wrapper.section { padding: 25px 0; }

	.post-header,
	.post-excerpt,
	.content .comments,
	div#disqus_thread,
	.comment-respond,
	.post-quote,
	.post-link { padding: 7.5% 6%; }

	/* header */

	.section.header { padding: 35px 0; }

	.header-search-block .search-field { font-size: 1.5em; margin-top: -17px; }

	.nav-toggle { padding: 20px 0; }

	/* navigation */

	.navigation-inner { max-width: 90%; }

	.mobile-menu a {
		padding-top: 20px;
		padding-bottom: 20px;
	}

	/* main content */

	.section-inner.content { max-width: 92%; }

	/* Masonry layout removed - using timeline layout defined at bottom of file */

	.post-header .post-title { font-size: 1.5em; }

	.post-excerpt { font-size: 1em; }

	.posts .post-meta { padding: 0 6%; }

	/* single post - DISABLED */

	.media-caption { margin: 0 6%; padding-bottom: 10px; }

	/* post content */

	.post-content p,
	.post-content blockquote,
	.post-content ul,
	.post-content ol,
	.post-content address,
	.post-content dl,
	.post-content .wp-caption,
	.post-content pre {
		line-height: 160%;
		margin-bottom: 1em;
	}

	.post-content h1, .post-content h2, .post-content h3, .post-content h4, .post-content h5, .post-content h6 {
		margin: 40px 0 20px;
	}

	.post-content h1 { font-size: 1.4em; }
	.post-content h2 { font-size: 1.3em; }
	.post-content h3 { font-size: 1.25em; }
	.post-content h4 { font-size: 1.1em; }
	.post-content h5 { font-size: 1em; }

	.post-content h6 {
		font-size: 0.9em;
		font-weight: 700;
		text-transform: uppercase;
	}

	.post-content h1+h1, .post-content h1+h2, .post-content h1+h3, .post-content h1+h4, .post-content h1+h5, .post-content h1+h6,
	.post-content h2+h1, .post-content h2+h2, .post-content h2+h3, .post-content h2+h4, .post-content h2+h5, .post-content h2+h6,
	.post-content h3+h1, .post-content h3+h2, .post-content h3+h3, .post-content h3+h4, .post-content h3+h5, .post-content h3+h6,
	.post-content h4+h1, .post-content h4+h2, .post-content h4+h3, .post-content h4+h4, .post-content h4+h5, .post-content h4+h6,
	.post-content h5+h1, .post-content h5+h2, .post-content h5+h3, .post-content h5+h4, .post-content h5+h5, .post-content h5+h6,
	.post-content h6+h1, .post-content h6+h2, .post-content h6+h3, .post-content h6+h4, .post-content h6+h5, .post-content h6+h6 {
		margin-top: 20px;
	}

	.post-content blockquote { margin-top: 25px; }

	.post-content blockquote:before,
	.post-content blockquote:after {
		margin: 25px auto;
		width: 96px;
	}

	.post-content blockquote p {
		font-size: 1.1em;
		line-height: 150%;
	}

	.post-content blockquote cite { font-size: 0.8em; }

	.post-content .alignfull {
		margin-left: calc( 92vw * -0.06 );
	}

	/* comments */

	.comments-title,
	.add-comment-title {
		float: none;
		width: 100%;
	}

	.add-comment-title { display: none; }

	.comments-title,
	.comment-reply-title { font-size: 1.5em; }

	.comment .avatar { width: 50px; }

	.comment-inner { margin-left: 70px; }

	.comment-inner:after { top: 13px; }

	.comment-content { font-size: 0.9em; }

	.reply-title { margin-bottom: 15px; }
	.comment-form { margin-top: 15px; }

	/* respond */

	.comment-form { margin-top: 10px; }

	.comment-notes,
	.logged-in-as { margin-bottom: 25px; }

	.comment-form input[type="text"],
	.comment-form input[type="email"] { background-position: 96% center; }

	/* page & page templates */

	/* pagination */

	.page-title { margin-bottom: 25px; }

	.page-title h3,
	.page-title h1 .bottom { font-size: 1.4em; }

	.tag-archive-meta { margin-top: 15px; }

	.archive-nav { margin-top: 25px; }

	/* footer */

	.footer { padding: 30px 0; }

	.footer .one-third {
		float: none;
		margin: 40px 0 0 0;
		width: 100%;
	}

	.footer .one-third + .one-third {
		border-top: 4px solid #333;
		padding: 40px 0 0 0;
	}

	/* credits */

	.credits { padding: 30px 0; }


}

@media (max-width: 500px) {


	/* header */

	.header {
		height: 400px;
	}

	.header-inner {
		padding: 30px 20px;
	}

	.header .blog-title {
		font-size: 2.5em;
	}

	.header .blog-description {
		font-size: 1.1em;
		margin-top: 15px;
	}

	/* post meta */

	.post-author:before,
	.post-author:after { left: 15px; }

	.post-author-content { margin-left: 40px; }

	/* comments */

	.comments div.comment { margin-top: 20px; }

	.comment .avatar { display: none; }

	.comment-inner { margin-left: 0; }
	.comment-inner:after { content: none; }

	.comment-actions { display: none; }

	.comment-actions-below {
		display: block;
		margin-top: 20px;
	}

	.comment-actions-below a {
		display: inline-block;
		margin-left: 8px;
		font-size: 0.85em;
		font-weight: 700;
		text-transform: uppercase;
	}

	.comment-actions-below a:first-child { margin-left: 0; }
	.comment-actions-below a:hover { text-decoration: underline; }

	.comment-nav-below span { display: none; }


}


@media (max-width: 400px) {


	/* respond */

	.comment-form label {
		font-size: 14px;
	}

	.comment-form input[type="text"],
	.comment-form input[type="email"] { background-position: 94% center; background-size: 20px auto; }

	.comment-form input[type="text"],
	.comment-form input[type="email"],
	.comment-form textarea {
		padding: 12px;
		font-size: 0.9em;
	}

	.comment-form textarea { height: 150px; }


}

.categorytag {
	padding:0.1em 0.4em 0.1em 0.4em;
	font-size:0.8em;

}

.byggdagboken {
background-color: darkolivegreen;
color:#fff;

}



.husdagboken {

	background-color: #532434;
	color:#fff;


}





/* Custom gallery styling */
.gallery_image {
	display: block;
	text-align: center;
	margin-bottom: 2em;
}

.gallery_image_inner {
	display: inline-block;
	text-align: left;
	margin: 0 auto;
}

.gallery_image_inner img {
	display: block;
	width: 100%;
	max-height: 90vh;
	height: auto;
}

.gallery_image_inner p {
	text-align: left;
	padding-top: 0.5em;
	padding-bottom: 1em;
	font-size: 16px;
	line-height: 24px;
	font-weight: 700;
	color: #999;
	margin: 0;
}



.wp-post-image {width:100%;}







.tag-cloud-link.selected,
.tag-cloud-link:hover {
    background-color: #ddd; /* Något mörkare grå vid hover och val */
}









.posts-list {
    padding-top: 2em;
}

.post-container {
    max-width:900px;
    width:100% !important;
    margin: 20px auto;
}



@media (min-height: 1300px) {
    .post-container {
        max-width: 1500px;
		width:80% !important;
    }
}


/* Om skärmens höjd är större än bredden */
@media (max-aspect-ratio: 1/1) {
    .post-container {
        width: 100% !important;
    }
}


.post-container img {
    max-height:90vh;
    width: auto;
    height: auto;
    display: block;
    margin: 0 auto; /* Centrerar horisontellt */
}

/* Single posts now use the same timeline layout as index.php - no special CSS needed */

/* Add padding between post and footer on single posts and pages */
body.single .timeline-container,
body.page .timeline-container {
    padding-bottom: 3rem;
}



.pagination-button {
    display: inline-block;
    padding: 10px 15px;
    margin: 5px;
    background-color: #0073aa;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.pagination-button:hover {
    background-color: #005a87;
}

.back-button {
    background-color: #555;
}

.back-button:hover {
    background-color: #333;
}

/* Custom Pagination */
.custom-pagination {
    margin: 4rem 0 3rem;
    text-align: center;
}

.pagination-items {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.page-link {
    display: inline-block;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    color: #666;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    transition: all 0.2s ease;
    min-width: 44px;
    text-align: center;
}

.page-link:hover {
    background: #004643;
    color: white;
    border-color: #004643;
    transform: translateY(-1px);
}

.page-link.current {
    background: #004643;
    color: white;
    border-color: #004643;
}

.page-link.page-prev,
.page-link.page-next {
    font-size: 1.2rem;
    padding: 0.75rem 1.25rem;
}

.page-dots {
    display: inline-block;
    padding: 0.75rem 0.5rem;
    color: #999;
}

.page-jump-separator {
    display: inline-block;
    padding: 0.75rem 1rem;
    color: #ccc;
    font-weight: 300;
}

.page-jump-label {
    display: inline-block;
    padding: 0.75rem 0.5rem;
    color: #666;
    font-weight: 500;
    white-space: nowrap;
}

.page-jump-select {
    display: inline-block;
    padding: 0.75rem 2.5rem 0.75rem 1rem;
    background: #f8f9fa;
    color: #666;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L2 4h8z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 12px;
    min-width: 180px;
}

.page-jump-select:hover {
    border-color: #004643;
    background-color: #fafbfc;
}

.page-jump-select:focus {
    outline: none;
    border-color: #004643;
    background-color: white;
}

/* Dark mode navigation */
[data-theme="dark"] .main-menu > li > a {
    color: #666666;
}

[data-theme="dark"] .main-menu li:hover > a {
    color: #999999;
}

[data-theme="dark"] .main-menu > .has-children > a::after,
[data-theme="dark"] .main-menu > .page_item_has_children > a::after {
    border-top-color: #666666;
}

[data-theme="dark"] .main-menu > .has-children:hover > a::after,
[data-theme="dark"] .main-menu > .page_item_has_children:hover > a::after {
    border-top-color: #999999;
}

/* Dark mode dropdown */
[data-theme="dark"] .page-jump-select {
    background: #2d2d2d url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23999999' d='M6 8L2 4h8z'/%3E%3C/svg%3E") no-repeat right 1rem center;
    background-size: 12px;
    color: #999999;
    border-color: #3a3a3a;
    color-scheme: dark;
}

[data-theme="dark"] .page-jump-select:hover {
    background-color: #252525;
    border-color: #00a69c;
}

[data-theme="dark"] .page-jump-select:focus {
    background-color: #252525;
    border-color: #00a69c;
}

[data-theme="dark"] .page-jump-select option {
    background-color: #2d2d2d;
    color: #999999;
}

/* Dark mode pagination buttons */
[data-theme="dark"] .page-link {
    background: #2d2d2d;
    color: #999999;
    border-color: #3a3a3a;
}

[data-theme="dark"] .page-link:hover {
    background: #004643;
    color: #abd1c6;
    border-color: #004643;
}

[data-theme="dark"] .page-link.current {
    background: #004643;
    color: #abd1c6;
    border-color: #004643;
}

[data-theme="dark"] .page-dots {
    color: #666666;
}

/* Page loading overlay for keyboard navigation */
.page-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100000;
    opacity: 0;
    transition: opacity 0.3s ease;
    overflow-y: auto;
}

.page-loading-overlay.visible {
    opacity: 1;
}

.loading-content {
    max-width: 900px;
    width: 100%;
    padding: 40px 20px;
}

.loading-header {
    text-align: center;
    margin-bottom: 40px;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(173, 209, 198, 0.3);
    border-top-color: #abd1c6;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-text {
    color: #fff;
    font-size: 1rem;
    font-weight: 500;
    margin: 0;
}

.skeleton-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.skeleton-card {
    max-width: 900px;
    width: 100% !important;
    margin: 0 auto 20px auto; /* Match real post margin */
    background: #ffffff;
    border-radius: 3px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

@media (min-height: 1300px) {
    .skeleton-card {
        max-width: 1500px;
        width: 80% !important;
    }
}

@media (max-aspect-ratio: 1/1) {
    .skeleton-card {
        width: 100% !important;
    }
}

.skeleton-image {
    width: 100%;
    height: 500px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

.skeleton-content {
    padding: 20px 60px;
    background: #f9f9f9;
}

.skeleton-text {
    padding-top: 40px;
    padding-bottom: 20px;
}

.skeleton-title {
    height: 32px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
    margin-bottom: 12px;
    width: 65%;
}

.skeleton-meta {
    height: 14px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
    margin-bottom: 0;
    width: 35%;
}

.skeleton-line {
    height: 18px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
    margin-bottom: 14px;
}

.skeleton-line.short {
    width: 75%;
    margin-bottom: 0;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Dark mode loading */
[data-theme="dark"] .loading-spinner {
    border-color: rgba(0, 166, 156, 0.3);
    border-top-color: #00c9bd;
}

[data-theme="dark"] .loading-text {
    color: #e8e8e8;
}

[data-theme="dark"] .skeleton-card {
    background: #1a1a1a;
    box-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

[data-theme="dark"] .skeleton-content {
    background: #161616;
}

[data-theme="dark"] .skeleton-image {
    background: linear-gradient(90deg, #252525 25%, #2d2d2d 50%, #252525 75%);
    background-size: 200% 100%;
}

[data-theme="dark"] .skeleton-meta,
[data-theme="dark"] .skeleton-title,
[data-theme="dark"] .skeleton-line {
    background: linear-gradient(90deg, #252525 25%, #2d2d2d 50%, #252525 75%);
    background-size: 200% 100%;
}

/* Progressive image loading (blur-up) */
.progressive-image {
    transition: filter 0.4s ease, opacity 0.4s ease;
}

.progressive-image.loading {
    filter: blur(10px);
    transform: scale(1.02);
}

.progressive-image.loaded {
    filter: blur(0);
    transform: scale(1);
}

/* Responsive */
@media (max-width: 768px) {
    .custom-pagination {
        margin-bottom: 4rem;
    }

    .pagination-items {
        gap: 0.25rem;
    }

    .page-link {
        padding: 0.5rem 0.75rem;
        min-width: 36px;
        font-size: 0.9rem;
    }

    .page-jump-separator {
        display: none;
    }

    .page-jump-label {
        padding: 0.5rem 0.5rem 0.5rem 0;
        white-space: nowrap;
    }

    .page-jump-select {
        flex: 1;
        min-width: 200px;
        max-width: 300px;
    }
}

/* CSS Variables for theming */
:root {
	/* Light mode colors */
	--bg-primary: #ffffff;
	--bg-secondary: #f8f9fa;
	--bg-tertiary: #e9ecef;
	--bg-dark: #2B3542;
	--bg-darker: #1d1d1d;

	--text-primary: #1d1d1d;
	--text-secondary: #666;
	--text-tertiary: #999;
	--text-light: #fff;

	--accent-primary: #004643;
	--accent-secondary: #f9bc60;
	--accent-hover: #003330;

	--border-color: #e9ecef;
	--shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
	--shadow-md: 0 2px 8px rgba(0,0,0,0.1);
	--shadow-lg: 0 4px 12px rgba(0,0,0,0.15);
}

[data-theme="dark"] {
	/* Dark mode colors */
	--bg-primary: #1a1a1a;
	--bg-secondary: #2d2d2d;
	--bg-tertiary: #3a3a3a;
	--bg-dark: #1a1a1a;
	--bg-darker: #161616;

	--text-primary: #e0e0e0;
	--text-secondary: #b0b0b0;
	--text-tertiary: #808080;
	--text-light: #e0e0e0;

	--accent-primary: #4dd4cc;
	--accent-secondary: #ffd166;
	--accent-hover: #6ee5dd;

	--border-color: #3a3a3a;
	--shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
	--shadow-md: 0 2px 8px rgba(0,0,0,0.4);
	--shadow-lg: 0 4px 12px rgba(0,0,0,0.5);
}

body {
	background: #f1f1f1;
	color: var(--text-primary);
	transition: background-color 0.3s ease, color 0.3s ease;
}

[data-theme="dark"] body {
	background: #1a1a1a;
}

.post-container {
	background: var(--bg-primary);
	border-radius: 3px;
	box-shadow: 0 1px 4px rgba(0,0,0,0.1);
	margin-bottom: 20px;
}

[data-theme="dark"] .post-container {
	box-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

[data-theme="dark"] .hentry,
[data-theme="dark"] .post {
	background: var(--bg-primary);
	box-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

.post-content,
.featured-media,
.inline-comments-wrapper {
	background: transparent;
}

[data-theme="dark"] .post-content,
[data-theme="dark"] .featured-media {
	background: var(--bg-darker);
}

[data-theme="dark"] .inline-comments-wrapper {
	background: var(--bg-darker);
	border-top-color: var(--border-color);
}

/* Dark mode headings - lighter than body text */
[data-theme="dark"] .post-content h1,
[data-theme="dark"] .post-content h2,
[data-theme="dark"] .post-content h3,
[data-theme="dark"] .post-content h4,
[data-theme="dark"] .post-content h5,
[data-theme="dark"] .post-content h6,
[data-theme="dark"] .post-header .post-title a {
	color: #e8e8e8;
}

/* Dark mode links - better contrast (except footer) */
[data-theme="dark"] .post-content a,
[data-theme="dark"] .post-categories a,
[data-theme="dark"] .breadcrumbs a,
[data-theme="dark"] .related-post-title,
[data-theme="dark"] .archive-header a {
	color: var(--accent-primary);
}

[data-theme="dark"] .post-content a:hover,
[data-theme="dark"] .post-categories a:hover,
[data-theme="dark"] .breadcrumbs a:hover,
[data-theme="dark"] .archive-header a:hover {
	color: var(--accent-hover);
}

/* Smooth scroll */
html {
	scroll-behavior: smooth;
	transition: background-color 0.3s ease, color 0.3s ease;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
		transition: none;
	}
}

/* Smooth dark mode transitions */
body,
.post,
.post-container,
.navigation,
.header,
.footer,
.related-post-item,
a {
	transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

@media (prefers-reduced-motion: reduce) {
	body,
	.post,
	.post-container,
	.navigation,
	.header,
	.footer,
	.related-post-item,
	a {
		transition: none;
	}
}

/* Back to top button */
.back-to-top {
	position: fixed;
	bottom: 30px;
	right: 30px;
	width: 50px;
	height: 50px;
	background: #004643;
	color: white;
	border: none;
	border-radius: 50%;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 24px;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, background 0.2s ease;
	z-index: 1000;
	box-shadow: 0 4px 12px rgba(0, 70, 67, 0.3);
}

.back-to-top.visible {
	opacity: 1;
	visibility: visible;
}

.back-to-top:hover {
	background: #003330;
	transform: translateY(-3px);
	box-shadow: 0 6px 16px rgba(0, 70, 67, 0.4);
}

.back-to-top:active {
	transform: translateY(-1px);
}

@media (max-width: 768px) {
	.back-to-top {
		bottom: 20px;
		right: 20px;
		width: 45px;
		height: 45px;
		font-size: 20px;
	}
}

/* Theme Toggle - Header */
.theme-toggle {
	background: none;
	border: none;
	color: var(--text-light);
	cursor: pointer;
	font-size: 20px;
	padding: 27px 15px;
	border-radius: 6px;
	transition: all 0.3s ease;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	float: right;
	position: relative;
}

.theme-toggle:hover {
	background: rgba(255, 255, 255, 0.1);
	transform: scale(1.1);
}

.theme-toggle-icon {
	display: inline-block;
	transition: transform 0.3s ease;
}

.theme-toggle:hover .theme-toggle-icon {
	transform: rotate(20deg);
}

[data-theme="dark"] .theme-toggle-icon {
	content: '☀️';
}

/* Theme Toggle - Footer */
.theme-toggle-footer {
	margin-top: 20px;
	padding-top: 20px;
	border-top: 1px solid var(--border-color);
}

.theme-toggle-btn {
	background: var(--bg-secondary);
	border: 1px solid var(--border-color);
	color: var(--text-primary);
	cursor: pointer;
	padding: 10px 16px;
	border-radius: 8px;
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 0.9rem;
	font-weight: 500;
	transition: all 0.3s ease;
	width: 100%;
	justify-content: center;
}

.theme-toggle-btn:hover {
	background: var(--bg-tertiary);
	transform: translateY(-2px);
	box-shadow: var(--shadow-md);
}

.theme-icon {
	font-size: 18px;
	transition: transform 0.3s ease;
}

.theme-toggle-btn:hover .theme-icon {
	transform: rotate(20deg);
}

/* Breadcrumbs */
.breadcrumbs {
	max-width: 900px;
	margin: 0 auto 15px;
	padding: 20px 0 0;
	font-size: 0.85rem;
	color: var(--text-secondary);
}

.breadcrumbs a {
	color: var(--accent-primary);
	text-decoration: none;
	transition: color 0.2s ease;
}

.breadcrumbs a:hover {
	color: var(--accent-hover);
	text-decoration: underline;
}

.breadcrumbs .separator {
	margin: 0 8px;
	color: var(--text-tertiary);
}

.breadcrumbs .current {
	color: var(--text-primary);
	font-weight: 500;
}

/* Related Posts Container */
.related-posts-container {
	max-width: 900px;
	width: 100% !important;
	margin: 40px auto 20px;
}

@media (min-height: 1300px) {
	.related-posts-container {
		max-width: 1500px;
		width: 80% !important;
	}
}

@media (max-aspect-ratio: 1/1) {
	.related-posts-container {
		width: 100% !important;
	}
}

/* Related Posts */
.related-posts {
	width: 100%;
	padding: 0;
}

.related-posts h3 {
	font-size: 1.3rem;
	color: var(--text-primary);
	margin-bottom: 20px;
	font-family: 'Roboto Slab', sans-serif;
	padding-left: 0;
}

.related-posts-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
	gap: 20px;
}

.related-post-item {
	display: block;
	background: #fff;
	border-radius: 3px;
	overflow: hidden;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	box-shadow: 0 1px 4px rgba(0,0,0,0.1);
	text-decoration: none;
	color: inherit;
}

.related-post-item:hover {
	transform: translateY(-4px);
	box-shadow: 0 4px 12px rgba(0,0,0,0.15);
	text-decoration: none;
}

.related-post-item:hover .related-post-title {
	color: var(--accent-primary);
}

.related-post-thumbnail {
	width: 100%;
	height: 180px;
	object-fit: cover;
	object-position: center;
	display: block;
}

.related-post-content {
	padding: 15px;
}

.related-post-title {
	font-size: 0.95rem;
	font-weight: 600;
	color: var(--text-primary);
	margin-bottom: 8px;
	line-height: 1.3;
	transition: color 0.3s ease;
}

.related-post-date {
	font-size: 0.8rem;
	color: var(--text-tertiary);
	display: block;
	margin-bottom: 8px;
}

.related-post-excerpt {
	font-size: 0.85rem;
	color: var(--text-secondary);
	line-height: 1.4;
	margin: 0;
}

@media (max-width: 768px) {
	.breadcrumbs {
		font-size: 0.8rem;
		padding: 15px 0 0;
	}

	.related-posts-grid {
		grid-template-columns: 1fr;
	}

	.related-post-thumbnail {
		height: 120px;
	}
}

/* Loading Skeleton */
@keyframes shimmer {
	0% {
		background-position: -1000px 0;
	}
	100% {
		background-position: 1000px 0;
	}
}

.skeleton {
	background: linear-gradient(90deg, var(--bg-secondary) 25%, var(--bg-tertiary) 50%, var(--bg-secondary) 75%);
	background-size: 1000px 100%;
	animation: shimmer 2s infinite;
	border-radius: 4px;
}

.skeleton-post {
	max-width: 900px;
	margin: 20px auto;
	padding: 30px;
}

.skeleton-image {
	width: 100%;
	height: 400px;
	margin-bottom: 20px;
}

.skeleton-title {
	height: 32px;
	width: 70%;
	margin-bottom: 15px;
}

.skeleton-text {
	height: 16px;
	margin-bottom: 10px;
}

.skeleton-text:last-child {
	width: 80%;
}

/* Page transition fade */
.page-transition {
	opacity: 0;
	transition: opacity 0.3s ease;
}

.page-transition.loaded {
	opacity: 1;
}

/* Microinteractions */
/* Konsekvent länk-styling */
a {
	transition: color 0.2s ease;
	text-decoration: none;
}

a:hover {
	text-decoration: underline;
}

.post-title a {
	transition: color 0.3s ease;
	text-decoration: none;
}

.post-title a:hover {
	text-decoration: underline;
}

.categorytag {
	transition: all 0.3s ease;
}

.categorytag:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.tag-cloud-link {
	transition: all 0.2s ease;
}

.tag-cloud-link:hover {
	transform: scale(1.05);
}

.post-container {
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Standard styling */
.post-title, .post-content p {
    padding: 20px 160px 20px 60px;
    margin: 0 !important;
	max-width: 950px;

}


/* Standard styling */
.post-title {
    padding-top: 60px;
    margin: 0 !important;
	max-width: 950px;

}


.post-categories {
    padding: 0px 160px 20px 60px;
}


/* Alternativ styling vid skärmbredd < 800px */
@media (max-width: 800px) {
    .post-title, .post-content p {
        padding: 10px 20px; /* Ändra dessa värden efter behov */
        margin: 0 !important;
    }



	.post-categories {
		padding: 10px 20px;
	}
	

}


.post-content img {
    padding-top: 40px;
    padding-bottom: 10px;
}


/* =========================================
   INLINE COMMENTS SECTION
   ========================================= */

.inline-comments-wrapper {
    padding: 0 160px 30px 60px;
    max-width: 950px;
    border-top: 1px solid #eee;
    margin-top: 20px;
    padding-top: 20px;
}

.inline-comments-wrapper.no-comments {
    border-top: none;
    margin-top: 0;
    padding-top: 0;
}

.comment-form-toggle {
    display: inline-block;
    padding: 8px 16px;
    background-color: #abd1c6;
    color: #004643;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
    margin-top: 10px;
}

.comment-form-toggle:hover {
    background-color: #f9bc60;
    color: #004643;
}

.comment-form-toggle.active {
    background-color: #004643;
    color: #fff;
}

/* Dark mode comment button */
[data-theme="dark"] .comment-form-toggle {
    background-color: rgba(0, 166, 156, 0.2);
    color: #00c9bd;
    border: 1px solid rgba(0, 166, 156, 0.3);
}

[data-theme="dark"] .comment-form-toggle:hover {
    background-color: rgba(0, 166, 156, 0.3);
    color: #00c9bd;
    border-color: #00a69c;
}

[data-theme="dark"] .comment-form-toggle.active {
    background-color: #00a69c;
    color: #1a1a1a;
    border-color: #00a69c;
}

.existing-comments {
    margin-bottom: 25px;
}

.inline-comment {
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.inline-comment:last-child {
    border-bottom: none;
}

.comment-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    font-size: 0.85rem;
}

.comment-meta strong {
    color: #000;
    font-weight: 600;
}

.comment-date {
    color: #999;
    font-size: 0.8rem;
}

.comment-text {
    color: #333;
    font-size: 0.95rem;
    line-height: 1.6;
}

.comment-text p {
    padding: 0 !important;
    margin: 0.5em 0 !important;
}

.inline-comment-form {
    margin-top: 15px;
    padding-top: 15px;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.comment-form-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
}

.comment-form-fields input {
    padding: 10px 12px;
    border: 2px solid #abd1c6;
    border-radius: 3px;
    font-size: 0.9rem;
    font-family: inherit;
    transition: border-color 0.2s ease;
    background: #fff;
}

.comment-form-fields input:focus {
    outline: none;
    border-color: #f9bc60;
}

.inline-comment-form textarea {
    width: 100%;
    min-height: 100px;
    padding: 12px;
    border: 2px solid #abd1c6;
    border-radius: 3px;
    font-size: 0.95rem;
    font-family: inherit;
    resize: vertical;
    transition: border-color 0.2s ease;
    background: #fff;
}

.inline-comment-form textarea:focus {
    outline: none;
    border-color: #f9bc60;
}

.comment-form-submit {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 12px;
}

.submit-comment {
    padding: 10px 24px;
    background: #004643;
    color: #fff;
    border: none;
    border-radius: 3px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.submit-comment:hover {
    background: #abd1c6;
    color: #004643;
}

.submit-comment:disabled {
    background: #ccc;
    cursor: not-allowed;
    color: #666;
}

/* Dark mode comment form */
[data-theme="dark"] .inline-comments-wrapper {
    border-top-color: #3a3a3a;
}

[data-theme="dark"] .inline-comment-form {
    border-top-color: #3a3a3a;
    background: var(--bg-darker);
}

[data-theme="dark"] .comment-form-fields input,
[data-theme="dark"] .inline-comment-form textarea {
    background: #2d2d2d;
    border-color: #3a3a3a;
    color: #999999;
}

[data-theme="dark"] .comment-form-fields input::placeholder,
[data-theme="dark"] .inline-comment-form textarea::placeholder {
    color: #666666;
}

[data-theme="dark"] .comment-form-fields input:focus,
[data-theme="dark"] .inline-comment-form textarea:focus {
    border-color: #00a69c;
    background: #252525;
}

[data-theme="dark"] .submit-comment {
    background: rgba(0, 166, 156, 0.3);
    color: #00c9bd;
    border: 1px solid rgba(0, 166, 156, 0.4);
}

[data-theme="dark"] .submit-comment:hover {
    background: #00a69c;
    color: #1a1a1a;
    border-color: #00a69c;
}

[data-theme="dark"] .submit-comment:disabled {
    background: #2d2d2d;
    color: #666666;
    border-color: #3a3a3a;
}

.comment-status {
    font-size: 0.85rem;
    color: #666;
}

.comment-status.success {
    color: #4CAF50;
}

.comment-status.error {
    color: #f44336;
}

/* Responsive styles */
@media (max-width: 800px) {
    .inline-comments-wrapper {
        padding: 0 20px 20px 20px;
    }

    .comment-form-fields {
        grid-template-columns: 1fr;
    }

    .comments-toggle {
        font-size: 0.85rem;
    }
}
