/*
Theme Name: Mormors Køkken
Theme URI: https://example.com/
Author: Mormors Køkken
Description: Dansk opskrifts- og tips-tema med opdelte artikler (Forrige / Næste), annoncepladser til AdSense, kategoripaneler, "Om mig"-sidebar, Facebook-deling og automatisk oprettede juridiske sider.
Version: 1.2.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: mormors-koekken
*/

:root {
	--mk-primary: #2e6b4f;
	--mk-accent: #e0a526;
	--mk-text: #2b2b2b;
	--mk-muted: #8a8a8a;
	--mk-bg: #f4f4f2;
	--mk-card: #ffffff;
	--mk-border: #e6e6e3;
	--mk-radius: 4px;
	--mk-title-font: Georgia, "Times New Roman", serif;
	--mk-body-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background: var(--mk-bg);
	color: var(--mk-text);
	font-family: var(--mk-body-font);
	font-size: 17px;
	line-height: 1.7;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--mk-primary); text-decoration: none; }
a:hover { color: var(--mk-accent); }
h1, h2, h3, h4 { font-family: var(--mk-title-font); line-height: 1.3; color: var(--mk-text); }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); }
.mk-wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }

/* ---------- Top bar ---------- */
.mk-topbar { background: var(--mk-primary); }
.mk-topbar .mk-wrap { display: flex; justify-content: center; gap: 18px; padding-top: 9px; padding-bottom: 9px; }
.mk-topbar a { color: #fff; display: inline-flex; opacity: .92; }
.mk-topbar a:hover { opacity: 1; color: var(--mk-accent); }
.mk-topbar svg { width: 16px; height: 16px; fill: currentColor; }

/* ---------- Header ---------- */
.mk-header { background: #fff; border-bottom: 1px solid var(--mk-border); }
.mk-header .mk-wrap { display: flex; align-items: center; gap: 30px; padding-top: 16px; padding-bottom: 16px; flex-wrap: wrap; }
.mk-logo img { max-height: 76px; width: auto; }
.mk-logo .mk-site-title { font-family: var(--mk-title-font); font-size: 30px; font-style: italic; font-weight: 700; color: var(--mk-primary); line-height: 1.1; }
.mk-logo .mk-site-desc { display: block; font-size: 12px; color: var(--mk-muted); font-style: normal; font-family: var(--mk-body-font); }
.mk-nav { flex: 1; }
.mk-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 26px; align-items: center; }
.mk-nav li { position: relative; }
.mk-nav a { color: #333; font-size: 13px; text-transform: uppercase; letter-spacing: .4px; font-family: var(--mk-title-font); }
.mk-nav .current-menu-item > a, .mk-nav .current-menu-parent > a, .mk-nav .current-post-ancestor > a, .mk-nav a:hover { color: var(--mk-accent); }
.mk-nav ul ul { display: none; position: absolute; top: 100%; left: 0; background: #fff; border: 1px solid var(--mk-border); min-width: 200px; padding: 8px 0; z-index: 50; flex-direction: column; gap: 0; }
.mk-nav ul ul a { display: block; padding: 6px 14px; text-transform: none; }
.mk-nav li:hover > ul { display: flex; }
.mk-search-toggle { background: none; border: 0; cursor: pointer; padding: 4px; color: #333; }
.mk-search-toggle svg { width: 17px; height: 17px; }
.mk-search-box { display: none; width: 100%; }
.mk-search-box.is-open { display: block; }
.mk-menu-toggle { display: none; background: none; border: 1px solid var(--mk-border); padding: 6px 10px; cursor: pointer; font-size: 14px; margin-left: auto; }

.search-form { display: flex; gap: 6px; }
.search-form .search-field { flex: 1; padding: 10px 12px; border: 1px solid var(--mk-border); border-radius: var(--mk-radius); font-size: 15px; }
.search-form .search-submit, .mk-btn {
	display: inline-block; background: var(--mk-primary); color: #fff; border: 0; border-radius: var(--mk-radius);
	padding: 9px 18px; font-size: 14px; cursor: pointer; font-family: var(--mk-body-font);
}
.search-form .search-submit:hover, .mk-btn:hover { background: var(--mk-accent); color: #fff; }
.mk-btn-outline { background: transparent; color: #333; border: 1px solid #333; text-transform: uppercase; font-size: 12px; letter-spacing: .5px; }
.mk-btn-outline:hover { background: var(--mk-primary); border-color: var(--mk-primary); }

/* ---------- Layout ---------- */
.mk-main { padding: 30px 0 50px; }
.mk-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 26px; align-items: start; }
.mk-box { background: var(--mk-card); padding: 30px; margin-bottom: 26px; }

/* ---------- Ads ---------- */
.mk-ad { margin: 22px auto; text-align: center; overflow: hidden; clear: both; }
.mk-ad-label { display: block; font-size: 10px; letter-spacing: 1px; text-transform: uppercase; color: var(--mk-muted); margin-bottom: 4px; }
.mk-ad-header { margin: 18px auto 0; }

/* ---------- Single ---------- */
.mk-single-thumb img { width: 100%; }
.mk-single-title {
	text-align: center; color: var(--mk-primary); font-size: 28px; font-weight: 700; margin: 26px 0 0;
	padding-bottom: 14px; border-bottom: 2px solid var(--mk-accent);
}
.mk-meta { text-align: center; font-size: 12px; color: var(--mk-muted); margin: 12px 0 20px; }
.mk-meta a { color: var(--mk-muted); }
.mk-content h2 { font-size: 26px; font-weight: 400; margin: 1.2em 0 .5em; }
.mk-content h3 { font-size: 21px; }
.mk-content p { margin: 0 0 1.2em; }
.mk-content img, .mk-content figure { margin: 1.2em 0; }
.mk-content ul, .mk-content ol { padding-left: 1.3em; }
.mk-content blockquote { border-left: 4px solid var(--mk-accent); margin: 1.2em 0; padding: .4em 1em; background: #fafaf7; }
.mk-page-hint { font-weight: 700; font-family: var(--mk-title-font); margin: 24px 0 18px; }
.mk-pager { display: flex; align-items: center; gap: 12px; margin: 20px 0 10px; }
.mk-pager a {
	display: inline-block; background: var(--mk-primary); color: #fff; padding: 11px 22px; border-radius: var(--mk-radius);
	font-size: 15px; box-shadow: 0 0 0 3px #fff, 0 0 0 4px var(--mk-primary);
}
.mk-pager a:hover { background: var(--mk-accent); color: #fff; box-shadow: 0 0 0 3px #fff, 0 0 0 4px var(--mk-accent); }
.mk-pager .mk-next { margin-left: auto; }
.mk-pager-count { text-align: center; color: var(--mk-muted); font-size: 13px; flex: 1; }
.mk-share { display: flex; gap: 10px; justify-content: center; margin: 26px 0 6px; flex-wrap: wrap; }
.mk-share a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: var(--mk-radius); color: #fff; font-size: 14px; }
.mk-share .mk-fb { background: #1877f2; }
.mk-share .mk-pin { background: #e60023; }
.mk-share .mk-wa { background: #25d366; }
.mk-share a:hover { opacity: .9; color: #fff; }
.mk-share svg { width: 16px; height: 16px; fill: #fff; }
.mk-post-cats { text-align: center; font-size: 12px; color: var(--mk-muted); margin-top: 18px; }

/* ---------- Cards (archive) ---------- */
.mk-archive-head h1 { font-weight: 400; font-size: 30px; margin: 0; }
.mk-archive-head p { margin: 8px 0 0; color: var(--mk-muted); }
.mk-cards { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 26px; }
.mk-card { background: var(--mk-card); display: flex; flex-direction: column; }
.mk-card-body { padding: 26px 28px; }
.mk-card h2 { font-size: 21px; font-weight: 400; margin: 0 0 6px; }
.mk-card h2 a { color: var(--mk-text); }
.mk-card h2 a:hover { color: var(--mk-primary); }
.mk-card .mk-card-meta { font-size: 11px; color: var(--mk-muted); }
.mk-card-thumb img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.mk-card-excerpt { padding: 22px 28px 0; font-size: 15px; color: #444; }
.mk-card-foot { padding: 18px 28px 26px; margin-top: auto; }
.mk-card-foot small { display: block; color: var(--mk-muted); font-size: 11px; margin-top: 14px; }
.mk-card-foot small a { color: var(--mk-muted); }
.mk-cards .mk-ad { grid-column: 1 / -1; }

.mk-pagination { background: var(--mk-card); padding: 16px 28px; margin-top: 26px; }
.mk-pagination .page-numbers { display: inline-block; margin-right: 10px; color: var(--mk-accent); font-size: 15px; }
.mk-pagination .page-numbers.current { color: var(--mk-text); font-weight: 700; }

/* ---------- Sidebar ---------- */
.mk-sidebar .mk-box { padding: 26px; }
.mk-widget-title { font-size: 13px; text-transform: uppercase; letter-spacing: .6px; text-align: center; margin: 0 0 18px; font-family: var(--mk-body-font); font-weight: 600; }
.mk-about img { margin: 0 auto 18px; width: 100%; max-width: 240px; }
.mk-about p { text-align: center; font-size: 15px; margin: 0; }
.mk-sidebar ul { list-style: none; margin: 0; padding: 0; }
.mk-sidebar li { padding: 7px 0; border-bottom: 1px solid var(--mk-border); font-size: 15px; }
.mk-sidebar .mk-side-post { display: flex; gap: 12px; align-items: center; }
.mk-sidebar .mk-side-post img { width: 70px; height: 70px; object-fit: cover; flex: none; }
.mk-sticky { position: sticky; top: 20px; }

/* ---------- Front page ---------- */
.mk-section-title { text-align: center; margin: 40px 0 6px; }
.mk-section-title h2 { font-family: var(--mk-body-font); font-size: 34px; font-weight: 800; margin: 0; }
.mk-section-title h2 em { color: var(--mk-primary); font-style: italic; }
.mk-section-title p { margin: 4px 0 26px; color: #555; font-size: 14px; }
.mk-panels { display: flex; height: 360px; gap: 3px; }
.mk-panel { flex: 1; position: relative; overflow: hidden; background: #333 center/cover no-repeat; transition: flex .45s ease; display: flex; align-items: flex-end; justify-content: center; }
.mk-panel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 40%, rgba(0,0,0,.65)); }
.mk-panel:hover, .mk-panel:focus-within { flex: 3; }
.mk-panel-inner { position: relative; z-index: 1; text-align: center; padding: 22px 10px; }
.mk-panel-inner h3 { color: #fff; margin: 0 0 10px; font-size: 20px; }
.mk-panel .mk-btn { opacity: 0; transform: translateY(8px); transition: .3s; text-transform: uppercase; font-size: 12px; }
.mk-panel:hover .mk-btn, .mk-panel:focus-within .mk-btn { opacity: 1; transform: none; }

.mk-trending { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 8px; }
.mk-tcard { position: relative; aspect-ratio: 3/2; overflow: hidden; background: #333; }
.mk-tcard img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.mk-tcard:hover img { transform: scale(1.05); }
.mk-tcard-over { position: absolute; inset: 0; background: linear-gradient(rgba(0,0,0,.15), rgba(0,0,0,.65)); padding: 16px; display: flex; flex-direction: column; justify-content: center; }
.mk-tcard-over span { color: #fff; font-size: 12px; }
.mk-tcard-over h3 { color: #fff; font-family: var(--mk-body-font); font-size: 15px; margin: 6px 0; line-height: 1.35; }
.mk-tcard-over small { color: rgba(255,255,255,.85); font-size: 11px; }

.mk-latest { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 30px 26px; margin-top: 30px; }
.mk-lcard img { width: 100%; aspect-ratio: 3/2; object-fit: cover; }
.mk-lcard .mk-lcat { display: block; color: var(--mk-accent); font-size: 13px; margin-top: 12px; }
.mk-lcard h3 { font-family: var(--mk-body-font); font-size: 16px; margin: 6px 0 12px; }
.mk-lcard h3 a { color: var(--mk-primary); }
.mk-lcard small { display: block; color: var(--mk-muted); font-size: 11px; margin-top: 10px; }
.mk-lcard .mk-btn { font-size: 12px; padding: 7px 14px; }
.mk-front-pagination { text-align: center; margin: 34px 0 0; }
.mk-front-pagination .page-numbers { display: inline-block; padding: 6px 12px; margin: 2px; background: #fff; color: var(--mk-primary); }
.mk-front-pagination .page-numbers.current { background: var(--mk-primary); color: #fff; }

/* ---------- Comments ---------- */
.mk-comments h3, .comment-reply-title { text-align: center; font-family: var(--mk-body-font); font-weight: 400; font-size: 18px; }
.comment-list { list-style: none; padding: 0; }
.comment-list .comment { border-bottom: 1px solid var(--mk-border); padding: 14px 0; }
.comment-list .children { list-style: none; padding-left: 24px; }
.comment-meta { font-size: 13px; color: var(--mk-muted); }
.comment-form textarea, .comment-form input[type=text], .comment-form input[type=email], .comment-form input[type=url],
.mk-contact input, .mk-contact textarea {
	width: 100%; border: 1px solid var(--mk-border); padding: 10px 12px; font-size: 15px; border-radius: var(--mk-radius); font-family: inherit;
}
.comment-form-author, .comment-form-email, .comment-form-url { max-width: 380px; margin-left: auto; margin-right: auto; }
.comment-form .form-submit { text-align: center; }
.comment-form .submit { background: #fff; border: 1px solid #333; padding: 10px 18px; text-transform: uppercase; font-size: 12px; cursor: pointer; letter-spacing: .5px; }
.comment-form .submit:hover { background: var(--mk-primary); border-color: var(--mk-primary); color: #fff; }
.comment-form-cookies-consent { font-size: 14px; text-align: center; }

/* ---------- Contact ---------- */
.mk-contact p { margin: 0 0 14px; }
.mk-contact label { display: block; font-size: 14px; margin-bottom: 4px; }
.mk-hp { position: absolute; left: -9999px; }
.mk-notice { padding: 12px 16px; margin-bottom: 18px; border-radius: var(--mk-radius); }
.mk-notice.ok { background: #e6f4ea; color: #1e5a32; }
.mk-notice.err { background: #fdecea; color: #8a1f17; }

/* ---------- Footer ---------- */
.mk-footer { background: var(--mk-primary); color: #fff; }
.mk-footer .mk-wrap { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding-top: 18px; padding-bottom: 18px; flex-wrap: wrap; }
.mk-footer, .mk-footer a { font-family: var(--mk-title-font); font-size: 13px; color: #fff; }
.mk-footer a:hover { color: var(--mk-accent); }
.mk-footer ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 18px; flex-wrap: wrap; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
	.mk-layout { grid-template-columns: 1fr; }
	.mk-trending, .mk-latest { grid-template-columns: repeat(2, minmax(0,1fr)); }
	.mk-sticky { position: static; }
}
@media (max-width: 720px) {
	body { font-size: 16px; }
	.mk-menu-toggle { display: inline-block; }
	.mk-nav { flex-basis: 100%; display: none; }
	.mk-nav.is-open { display: block; }
	.mk-nav ul { flex-direction: column; align-items: flex-start; gap: 0; }
	.mk-nav li { width: 100%; border-bottom: 1px solid var(--mk-border); }
	.mk-nav a { display: block; padding: 10px 0; }
	.mk-nav ul ul { position: static; display: flex; border: 0; padding-left: 14px; }
	.mk-cards, .mk-trending, .mk-latest { grid-template-columns: 1fr; }
	.mk-box { padding: 20px; }
	.mk-single-title { font-size: 23px; }
	.mk-panels { flex-direction: column; height: auto; }
	.mk-panel { min-height: 120px; flex: none; }
	.mk-panel:hover { flex: none; }
	.mk-panel .mk-btn { opacity: 1; transform: none; }
	.mk-section-title h2 { font-size: 26px; }
	.mk-footer .mk-wrap { justify-content: center; text-align: center; }
}
