/*
Theme Name: Primatip
Description: Moderne herbouw van het Live Wire-ontwerp (WooThemes, kleurschema web2_red_blue) van Primatip.nl, met de krantachtige voorpagina.
Version: 1.0.0
Requires at least: 6.5
Requires PHP: 8.1
Text Domain: primatip
License: GNU General Public License v2 or later
*/

:root {
	--red: #c82611;
	--link: #cd2e1b;
	--blue: #007195;
	--blue-soft: #b8dae4;
	--sky: #effbff;
	--text: #1e1e1e;
	--line: #eeeeee;
}

/*========= RESET / BASE =========*/

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

body {
	font: 13px/18px Verdana, Geneva, sans-serif;
	color: var(--text);
	background: var(--sky) url(images/bg.jpg) repeat-x left top;
}
h1, h2, h3, h4, h5 { font-family: "Lucida Sans", "Lucida Grande", Tahoma, Arial, sans-serif; margin-bottom: 6px; }
a { color: var(--link); text-decoration: none; }
a:hover { color: var(--link); text-decoration: underline; }
img { max-width: 100%; height: auto; }
li { list-style: none; }
input, select, textarea { border: 1px solid #999; font: inherit; font-size: 12px; padding: 2px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.skip-link:focus { position: absolute; z-index: 100; top: 4px; left: 4px; width: auto; height: auto; clip: auto; background: #fff; padding: 8px 12px; }
.fix { clear: both; height: 1px; margin: 0 0 -1px; overflow: hidden; }
.fl { float: left; }
.fr { float: right; }

/*========= LAYOUT =========*/

#page { width: 960px; margin: 0 auto; }
#columns { margin-top: 10px; display: flex; align-items: flex-start; gap: 10px; }

.col1 { width: 625px; padding: 10px; background: #fff; border: 1px dotted var(--blue); }
.col1_home { width: 395px; flex: none; }
.col1_home_box { margin-bottom: 10px; background: #fff; padding: 10px; border: 1px dotted var(--blue); }
.col_mid_home { width: 220px; flex: none; }
.mid_box { padding: 10px; border: 1px dotted var(--blue); background: #fff; }
.col2 { width: 325px; flex: none; }
.col2_box { padding: 10px; margin-bottom: 10px; background: var(--blue-soft); border: 1px dotted var(--blue); }

/*========= HEADER =========*/

#header { min-height: 71px; margin: 15px 0; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
#header .site-logo { margin: 0; font-size: 28px; line-height: 1; }
#header .site-logo img { display: block; width: 319px; height: auto; }

#search { width: 316px; padding: 8px; background: #fff; border: 1px dotted #999; }
#search form { display: flex; gap: 5px; }
#search input[type=search] { flex: 1; min-width: 0; font-size: 14px; padding: 4px; background: #fff; border: 1px solid #ccc; color: #666; }
#search .btn {
	width: 70px; padding: 5px; font-size: 12px; font-weight: bold; cursor: pointer; border: 0;
	color: #fff; background: #999 url(images/nav_bg.jpg) repeat-x left top;
}

/* Red page bar */
#nav {
	display: flex; justify-content: space-between; align-items: stretch; min-height: 30px;
	background: var(--red) url(images/nav_bg.jpg) repeat-x left top;
	border-top: 1px solid var(--red); border-bottom: 1px solid var(--red);
}
#nav ul { display: flex; flex-wrap: wrap; }
#nav li a {
	display: block; padding: 0 15px; line-height: 30px;
	font: bold 12px/30px "Lucida Sans", Tahoma, Arial, sans-serif; color: #fff;
}
#nav li a:hover { text-decoration: underline; }
#nav .current_page_item, #nav .current-menu-item { background: var(--red); }
#nav-right { font: bold 12px/30px Arial, sans-serif; color: #fff; margin-right: 8px; white-space: nowrap; }
#nav-right a { color: #fff; }
.rss { padding: 2px 0 2px 21px; background: url(images/ico-arcfeed.gif) no-repeat left center; font: bold 11px Arial, sans-serif; }

/* White category bar with dropdowns */
#nav2 {
	display: flex; flex-wrap: wrap; position: relative; z-index: 50;
	background: #fff; border-bottom: 1px solid var(--red); font: 14px Arial, sans-serif;
}
#nav2 li { position: relative; line-height: 30px; }
#nav2 a { display: block; padding: 0 15px; border-right: 1px solid #ddd; }
#nav2 li a:hover, #nav2 li:focus-within > a { background: var(--red); color: #fff; text-decoration: none; }
#nav2 ul {
	position: absolute; left: -999em; top: 100%; width: 15em; padding-top: 1px; background: #fff;
}
#nav2 li:hover > ul, #nav2 li:focus-within > ul { left: 0; }
#nav2 ul li { border: 1px solid #dedbd1; border-top: 0; line-height: 28px; }
#nav2 ul ul { top: -1px; left: -999em; }
#nav2 ul li:hover > ul { left: 15em; }

/*========= FRONT PAGE: TOP TIP =========*/

#featured { color: #333; }
.lead-image-wrapper { background: #000; position: relative; height: 200px; margin-bottom: 10px; overflow: hidden; }
.lead-image-wrapper img { display: block; width: 100%; height: 200px; object-fit: cover; }
.lead-image-wrapper h2 {
	position: absolute; top: 0; left: 0; z-index: 1; padding: 5px; margin: 0;
	font-size: 12px; line-height: 20px; color: #fff; background: var(--blue);
}
.lead-image-wrapper h3 {
	position: absolute; top: 50px; left: 0; z-index: 1; width: 180px; padding: 10px; margin: 0;
	font-size: 18px; line-height: 20px; background: url(images/semi_transparent_bg.png);
}
.lead-image-wrapper h3 a { color: #fff; display: block; }
#featured .entry p { margin: 10px 0; }

/*========= POST LISTS =========*/

.post-alt { margin: 0 0 15px; display: flow-root; }
.post-alt h2, .post-alt h1.entry-title { font-size: 20px; line-height: 24px; color: #000; }
.post-alt h2 a, .post-alt h1 a { color: #011d27; }
.post-alt p { padding: 0 0 5px; }
.col1_home .post-alt h2, .col_mid_home .post-alt h2 { font-size: 18px; line-height: 20px; }
.col_mid_home .post-alt h2 { margin-bottom: 5px; }
.col_mid_home .post-alt { margin-bottom: 15px; }
.col_mid_home .category { margin-bottom: 10px; border-bottom: 1px solid var(--red); }
.col_mid_home .category span { display: inline-block; padding: 3px; font-weight: bold; font-size: 11px; line-height: 12px; background: var(--red); color: #fff; }

.posted_on { margin-top: 5px; font-size: 11px; line-height: 12px; color: var(--red); }
.entry { margin-top: 5px; }

.th {
	float: right; width: 110px; height: 67px; object-fit: cover;
	margin: 0 0 10px 10px; padding: 4px; border: 1px solid #ccc; background: #fff;
}

.postmeta {
	display: flow-root; clear: both; padding: 5px; font-size: 11px; color: #666;
	background: #eee; border-top: 1px dotted #999; border-bottom: 1px dotted #999;
}
.postmeta a { color: #000; }
.posted_in { float: left; padding-left: 18px; background: url(images/ico-category.gif) no-repeat left top; }
.comments { float: right; }
.comments a { padding-left: 18px; background: url(images/ico-comm.gif) no-repeat left top; }

p.more { clear: both; padding-top: 10px; text-align: right; }
p.more a { padding-right: 20px; background: url(images/ico-arrow2.gif) no-repeat right center; color: #000; font-size: 14px; font-weight: bold; }

.navigation { display: flow-root; margin-top: 10px; }
.navigation a { color: #000; font-size: 14px; font-weight: bold; }
.navigation .alignleft { float: left; }
.navigation .alignright { float: right; }

/*========= ARCHIVE / SINGLE HEADER =========*/

#archivebox {
	display: flow-root; margin-bottom: 15px; padding: 5px; color: #000;
	background: var(--sky); border: 1px dotted var(--blue);
}
#archivebox h1, #archivebox h3 { float: left; font-size: 12px; color: #333; margin: 0; }
#archivebox em { font-style: normal; font-weight: normal; color: #c01a18; }
#archivebox a { color: #000; }
#archivebox p { clear: both; padding-top: 5px; }
.archivefeed { float: right; }
.archivefeed a { padding: 3px 0 1px 22px; background: url(images/ico-arcfeed.gif) no-repeat left center; font-size: 11px; color: #000; }
.singletags { clear: both; color: #333; font-size: 11px; }

.arclist { margin-bottom: 15px; padding-top: 5px; border-bottom: 1px solid #eee; }
.arclist h3 { color: #000; padding: 15px 0; }
.arclist ul li { color: #c0c0c0; font-size: 12px; padding: 8px 0 8px 10px; border-top: 1px solid #eee; }
.arclist-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; }

/*========= ENTRY CONTENT =========*/

.entry img { padding: 4px; border: 1px solid #ddd; background: #fff; margin: 10px; }
.entry img.wp-smiley, .entry img.emoji { border: 0; padding: 0; margin: 0; }
.entry .alignleft { float: left; margin-left: 0; }
.entry .alignright { float: right; margin-right: 0; }
.entry .aligncenter { display: block; margin-left: auto; margin-right: auto; }
.entry ul, .entry ol { margin-bottom: 10px; font-size: 12px; line-height: 20px; }
.entry ul li { list-style: circle inside; margin-left: 15px; padding: 1px 0; }
.entry ol li { list-style: decimal inside; padding: 3px 0; }
.entry h3 { font-size: 17px; line-height: 18px; color: #03516b; padding-top: 20px; padding-bottom: 5px; text-decoration: underline; }
.entry h4 { font-size: 14px; line-height: 16px; padding-bottom: 5px; }
.entry blockquote {
	width: 85%; margin: 0 auto 15px; padding: 0 10px 0 20px; font-weight: 600; color: #444;
	background: var(--blue-soft); border: 1px dotted var(--blue);
}
.entry blockquote p { padding: 5px 0; margin: 5px 0; line-height: 20px; }
.entry table { border: 1px dotted var(--blue); border-collapse: collapse; margin-bottom: 10px; max-width: 100%; }
.entry td, .entry th { border: 1px dotted var(--blue); text-align: left; padding: 2px 4px; }
.entry iframe { max-width: 100%; }
.video-embed { display: block; position: relative; aspect-ratio: 16 / 9; max-width: 560px; margin: 10px 0; }
.video-embed iframe, .wp-block-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; }
.wp-block-embed__wrapper { position: relative; aspect-ratio: 16 / 9; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 11px; color: #666; }
.page_header { margin-bottom: 10px; }

/*========= COMMENTS =========*/

.comments-area { margin-top: 20px; }
.comments-area h2 { font-size: 18px; color: #000; }
.commentlist { margin: 10px 0 20px; font-size: 12px; line-height: 20px; }
.commentlist li { padding: 10px; }
.commentlist li.even { background: #f7f7f7; border: 1px dotted #ccc; }
.commentlist .avatar { float: left; margin-right: 10px; }
.commentlist .comment-meta { font-size: 11px; }
.commentlist p { margin-bottom: 10px; }
.comment-form p { margin-bottom: 10px; }
.comment-form label { display: block; font-weight: bold; }
.comment-form input[type=text], .comment-form input[type=email], .comment-form input[type=url], .comment-form textarea { width: 100%; padding: 4px; }
.comment-form .submit { padding: 5px 12px; font-weight: bold; color: #fff; background: var(--red) url(images/nav_bg.jpg) repeat-x; cursor: pointer; }

/*========= CONTACT FORM 7 =========*/

.wpcf7 { max-width: 480px; margin-top: 10px; padding: 10px; background: var(--sky); border: 1px dotted var(--blue); }
.wpcf7 p { padding: 0 0 10px; }
.wpcf7 label { display: block; font-weight: bold; font-size: 12px; }
.wpcf7 input[type=text], .wpcf7 input[type=email], .wpcf7 input[type=url], .wpcf7 textarea {
	width: 100%; margin-top: 3px; padding: 5px; font-size: 13px; font-weight: normal; background: #fff; border: 1px solid #ccc;
}
.wpcf7 .wpcf7-quiz { width: 80px !important; }
.wpcf7 input[type=submit] {
	padding: 6px 16px; font-weight: bold; font-size: 13px; color: #fff; cursor: pointer;
	background: var(--red) url(images/nav_bg.jpg) repeat-x left top;
}
.wpcf7 .wpcf7-not-valid-tip { font-weight: normal; font-size: 11px; color: var(--red); }
.wpcf7 form .wpcf7-response-output { margin: 0; padding: 6px 10px; font-size: 12px; background: #fff; }

/*========= SIDEBAR =========*/

#mpu_banner { width: 300px; max-width: 100%; min-height: 250px; margin: 0 auto; background: #eee; }

.idTabs { display: flex; background: #fff; border-top: 1px solid var(--blue); border-right: 1px solid var(--blue); }
.idTabs li { border-left: 1px solid var(--blue); }
.idTabs a { display: block; padding: 0 10px; line-height: 34px; font-weight: bold; font-size: 11px; color: var(--blue); }
.idTabs a:hover, .idTabs a.selected { color: #fff; background: var(--red) url(images/nav_bg.jpg) repeat-x; text-decoration: none; }
#sidetabber ul { padding: 5px; background: #fff; border: 1px solid var(--blue); }
#sidetabber ul[hidden] { display: none; }
.list1 li, .list2 li, .list3 li { padding: 5px 0 5px 20px; border-bottom: 1px solid var(--line); }
.list2 li { background: url(images/ico-feat.gif) no-repeat left center; }
.list1 li { background: url(images/ico-star.gif) no-repeat left center; }
.list3 li { background: url(images/ico-mostcomm.gif) no-repeat left center; color: #333; }
.list1 li a, .list3 li a { color: #333; }

.video-side { margin-bottom: 10px; }
.video-side h3 { margin: 0 0 6px; font-size: 14px; }
.video_box { padding: 1px; margin: 1px 1px 10px; border: 1px solid var(--blue); background: #fff; }
.video_box p { margin: 0; }
.video_box .video-embed { margin: 0; }
.video-side h4 { font-size: 12px; margin: 0 0 4px; }
.video-side .mootabs_title li { padding: 4px 0 4px 20px; background: url(images/ico-feat.gif) no-repeat left center; }

.widget { margin-bottom: 10px; background: #fff; border: 1px solid var(--blue); }
.widget h2, .widget .wp-block-heading {
	padding: 4px; margin: 0; font-size: 13px; color: #fff;
	background: var(--red) url(images/nav_bg.jpg) repeat-x left top;
}
.widget ul { padding: 4px; }
.widget ul li { padding: 5px 0; border-bottom: 1px solid var(--line); }
.widget ul li a { color: #000; }
.widget > :not(h2):not(ul):not(.wp-block-heading) { padding: 4px; }
#related-cats li { padding: 5px 0 5px 20px; color: #999; background: url(images/ico-feat.gif) no-repeat left center; }
#related-cats .cat_feed { background-image: url(images/ico-arcfeed.gif); }
.subcols { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/*========= FOOTER =========*/

#footer {
	display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0 20px;
	margin: 10px 0; padding: 0 10px; line-height: 35px; color: #333;
	background: #fff; border: 1px dotted #999;
}
#footer a { color: var(--red); }

/*========= RESPONSIVE =========*/

@media (max-width: 980px) {
	#page { width: auto; padding: 0 10px; }
	#columns { flex-wrap: wrap; }
	.home #columns .col1_home { width: calc(60% - 5px); }
	.home #columns .col_mid_home { width: calc(40% - 5px); }
	.col1 { width: 100%; }
	.col2 { width: 100%; }
	.home .col2 { order: 3; }
}

@media (max-width: 680px) {
	body { font-size: 14px; line-height: 20px; }
	#header { flex-direction: column; align-items: stretch; margin: 10px 0; }
	#header .site-logo img { width: 240px; margin: 0 auto; }
	#search { width: 100%; }
	#nav { flex-direction: column; }
	#nav-right { padding: 0 15px; margin: 0; border-top: 1px solid rgba(255,255,255,.25); }
	#nav2 { font-size: 13px; }
	#nav2 a { padding: 0 10px; }
	#nav2 ul { position: static; width: auto; }
	.home #columns .col1_home, .home #columns .col_mid_home { width: 100%; }
	.col1 { padding: 8px; }
	.post-alt h2, .post-alt h1.entry-title { font-size: 18px; line-height: 22px; }
	.arclist-cols, .subcols { grid-template-columns: 1fr; }
	.entry img { margin: 6px 0; }
	.entry .alignleft, .entry .alignright { float: none; display: block; }
	.entry blockquote { width: 100%; }
	.idTabs { flex-wrap: wrap; }
	#footer { flex-direction: column; line-height: 24px; padding: 6px 10px; }
}
