/*
Theme Name: Mistline
Theme URI: https://www.softleafsos.com
Author: Daniel Okafor
Author URI: https://www.softleafsos.com
Description: A quiet two-column theme with thin charcoal line work, soft mint tints, and a calm editorial rhythm.
Version: 2.3.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

:root {
	--bg: #f7f9f8;
	--fg: #2e3a40;
	--muted: #67787f;
	--border: #c7d2d0;
	--accent: #4f7387;
	--tint: #e4efe8;
	--panel: #ffffff;
	--radius: 4px;
	--shadow: none;
	--media-ratio: 16 / 9;
	--font-head: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--font-body: Georgia, "Iowan Old Style", "Times New Roman", serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	background: var(--bg);
	color: var(--fg);
	font-family: var(--font-body);
	font-size: 1.0625rem;
	line-height: 1.7;
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-head);
	font-weight: 600;
	line-height: 1.3;
	color: var(--fg);
	margin: 1.4em 0 0.6em;
}

h1 { font-size: 1.9rem; }
h2 { font-size: 1.45rem; }
h3 { font-size: 1.2rem; }

a { color: var(--accent); text-decoration: none; }
a:hover, a:focus { text-decoration: underline; }

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

.vxqtn-wrap {
	max-width: 1120px;
	margin: 0 auto;
	padding: 0 1.25rem;
}

/* Header */
.vxqtn-site-header {
	background: var(--panel);
	border-bottom: 1px solid var(--border);
}

.vxqtn-header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.9rem 0;
}

.vxqtn-brand {
	font-family: var(--font-head);
	font-size: 1.25rem;
	font-weight: 700;
	letter-spacing: 0.01em;
}
.vxqtn-brand a { color: var(--fg); }
.vxqtn-brand img { display: block; max-height: 44px; width: auto; }

.vxqtn-header-tools {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.vxqtn-icon-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	background: transparent;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	color: var(--fg);
	cursor: pointer;
	font-family: var(--font-head);
	font-size: 0.9rem;
}
.vxqtn-icon-btn:hover, .vxqtn-icon-btn:focus { border-color: var(--accent); color: var(--accent); }
.vxqtn-icon-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; }

/* Primary nav */
.vxqtn-nav { display: flex; align-items: center; }

.vxqtn-nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	gap: 0.25rem;
}

.vxqtn-nav li { position: relative; }

.vxqtn-nav a {
	display: block;
	padding: 0.55rem 0.8rem;
	font-family: var(--font-head);
	font-size: 0.92rem;
	color: var(--fg);
	border-radius: var(--radius);
}
.vxqtn-nav a:hover, .vxqtn-nav a:focus { color: var(--accent); text-decoration: none; background: var(--tint); }

.vxqtn-nav .sub-menu {
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 15rem;
	display: none;
	flex-direction: column;
	gap: 0;
	background: var(--panel);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	z-index: 60;
	padding: 0.35rem 0;
}
.vxqtn-nav li:hover > .sub-menu,
.vxqtn-nav li:focus-within > .sub-menu { display: flex; }
.vxqtn-nav .sub-menu a { padding: 0.5rem 0.9rem; border-radius: 0; font-size: 0.88rem; }

.vxqtn-submenu-toggle { display: none; }

#nav-toggle { display: none; }

/* Search panel (inline dropdown) */
.vxqtn-search-panel {
	display: none;
	border-top: 1px solid var(--border);
	background: var(--panel);
	padding: 1rem 0;
}
.vxqtn-search-panel.is-open { display: block; }

.search-form {
	display: flex;
	gap: 0.5rem;
	width: 100%;
	max-width: 34rem;
}
.search-field {
	flex: 1;
	padding: 0.55rem 0.75rem;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	font-family: var(--font-head);
	font-size: 0.95rem;
	background: var(--bg);
	color: var(--fg);
}
.search-field:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
.search-submit {
	padding: 0.55rem 1.1rem;
	border: 1px solid var(--accent);
	border-radius: var(--radius);
	background: var(--accent);
	color: #fff;
	font-family: var(--font-head);
	font-size: 0.95rem;
	cursor: pointer;
}
.search-submit:hover, .search-submit:focus { opacity: 0.9; }

/* Layout skeleton */
.vxqtn-main {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 300px;
	gap: 2.5rem;
	padding: 2.25rem 0 3rem;
}
.vxqtn-main.vxqtn-full { grid-template-columns: minmax(0, 1fr); }

/* Hero */
.vxqtn-hero {
	border: 1px solid var(--border);
	border-radius: var(--radius);
	background: linear-gradient(180deg, var(--tint), var(--panel));
	padding: 2.5rem 2rem;
	margin-bottom: 2rem;
}
.vxqtn-hero h1 { margin-top: 0; font-size: 2.1rem; }
.vxqtn-hero p { margin: 0; color: var(--muted); max-width: 46rem; }

/* Breadcrumb */
.breadcrumb { margin-bottom: 1.25rem; font-family: var(--font-head); font-size: 0.85rem; }
.trail { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.35rem; }
.crumb { color: var(--muted); }
.crumb + .crumb::before { content: "/"; margin-right: 0.35rem; color: var(--border); }
.crumb a { color: var(--accent); }

/* Post list rows (D2 = B) */
.vxqtn-row {
	display: grid;
	grid-template-columns: 190px minmax(0, 1fr);
	gap: 1.25rem;
	padding: 1.4rem 0;
	border-bottom: 1px solid var(--border);
}
.vxqtn-row:first-of-type { padding-top: 0; }

.vxqtn-row-thumb {
	border: 1px solid var(--border);
	border-radius: var(--radius);
	overflow: hidden;
	aspect-ratio: var(--media-ratio);
	background: var(--tint);
	display: block;
}
.vxqtn-row-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

.vxqtn-row-title { margin: 0 0 0.35rem; font-size: 1.2rem; }
.vxqtn-row-title a { color: var(--fg); }
.vxqtn-row-title a:hover { color: var(--accent); text-decoration: none; }

.vxqtn-row-meta {
	font-family: var(--font-head);
	font-size: 0.8rem;
	color: var(--muted);
	margin-bottom: 0.4rem;
}

.vxqtn-row-excerpt { margin: 0; color: var(--fg); font-size: 0.97rem; }
.vxqtn-row-excerpt p { margin: 0; }

/* Archive headers */
.vxqtn-archive-head { margin-bottom: 1.5rem; }
.vxqtn-archive-head h1 { margin-top: 0; }
.vxqtn-archive-desc { color: var(--muted); }
.vxqtn-archive-desc p { margin: 0 0 0.5rem; }

/* Pagination */
.vxqtn-pagination {
	margin-top: 2rem;
	font-family: var(--font-head);
	font-size: 0.9rem;
}
.vxqtn-pagination .page-numbers {
	display: inline-block;
	padding: 0.4rem 0.75rem;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	margin-right: 0.35rem;
	color: var(--fg);
	background: var(--panel);
}
.vxqtn-pagination .page-numbers.current { background: var(--tint); border-color: var(--accent); color: var(--accent); }

/* Single article */
.vxqtn-article {
	background: var(--panel);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	padding: 2rem 2.25rem;
}

.vxqtn-article-head h1 { margin-top: 0; }

.vxqtn-entry-meta {
	font-family: var(--font-head);
	font-size: 0.85rem;
	color: var(--muted);
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem 1.1rem;
	margin-bottom: 1.25rem;
}
.vxqtn-entry-meta a { color: var(--muted); }
.vxqtn-entry-meta a:hover { color: var(--accent); }

.vxqtn-featured {
	margin: 0 0 1.5rem;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	overflow: hidden;
}
.vxqtn-featured img { display: block; width: 100%; height: auto; }

.vxqtn-entry-content { overflow-x: hidden; }
.vxqtn-entry-content > *:first-child { margin-top: 0; }
.vxqtn-entry-content p, .vxqtn-entry-content li { overflow-wrap: break-word; }
.vxqtn-row-title, .vxqtn-article-head h1, .vxqtn-hero h1 { overflow-wrap: break-word; }
.vxqtn-entry-content a { text-decoration: underline; }

.vxqtn-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 1.5rem 0; }
.vxqtn-table-wrap table { margin: 0; }
.vxqtn-entry-content blockquote {
	margin: 1.5rem 0;
	padding: 0.75rem 1.25rem;
	border-left: 2px solid var(--accent);
	background: var(--tint);
	color: var(--fg);
}
.vxqtn-entry-content table {
	border-collapse: collapse;
	font-size: 0.95rem;
	min-width: 100%;
}
.vxqtn-entry-content th, .vxqtn-entry-content td {
	border: 1px solid var(--border);
	padding: 0.5rem 0.75rem;
	text-align: left;
}
.vxqtn-entry-content th { background: var(--tint); font-family: var(--font-head); }

.vxqtn-page-links { font-family: var(--font-head); font-size: 0.9rem; margin-top: 1.5rem; }

.vxqtn-article-note {
	margin: 1.75rem 0 0;
	padding: 1rem 1.25rem;
	border: 1px solid var(--border);
	border-left: 3px solid var(--accent);
	border-radius: var(--radius);
	background: var(--tint);
	font-size: 0.95rem;
}
.vxqtn-article-note p { margin: 0 0 0.5rem; }
.vxqtn-article-note p:last-child { margin-bottom: 0; }

.vxqtn-tags {
	margin-top: 1.75rem;
	font-family: var(--font-head);
	font-size: 0.85rem;
	display: flex;
	flex-wrap: wrap;
	gap: 0.45rem;
}
.vxqtn-tags a {
	display: inline-block;
	padding: 0.25rem 0.7rem;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	color: var(--muted);
	background: var(--bg);
}
.vxqtn-tags a:hover { color: var(--accent); border-color: var(--accent); text-decoration: none; }

.vxqtn-author-bio {
	margin-top: 2rem;
	padding: 1.25rem 1.5rem;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	background: var(--panel);
	display: flex;
	gap: 1rem;
	align-items: flex-start;
}
.vxqtn-author-bio img { border-radius: var(--radius); border: 1px solid var(--border); }
.vxqtn-author-name { font-family: var(--font-head); font-weight: 600; margin: 0 0 0.3rem; }
.vxqtn-author-desc { margin: 0; font-size: 0.95rem; color: var(--muted); }

.vxqtn-related { margin-top: 2.25rem; }
.vxqtn-related h2 { margin-top: 0; font-size: 1.25rem; }
.vxqtn-related ul { list-style: none; margin: 0; padding: 0; }
.vxqtn-related li { padding: 0.55rem 0; border-bottom: 1px solid var(--border); }
.vxqtn-related li:last-child { border-bottom: 0; }
.vxqtn-related a { font-family: var(--font-head); font-size: 0.97rem; color: var(--fg); }
.vxqtn-related a:hover { color: var(--accent); }

/* Comments */
.vxqtn-comments { margin-top: 2.5rem; }
.vxqtn-comments h2, .vxqtn-comments h3 { font-size: 1.25rem; }

.vxqtn-comment-list { list-style: none; margin: 0; padding: 0; }
.vxqtn-comment-list .children { list-style: none; margin: 0; padding-left: 1.5rem; }

.vxqtn-comment {
	border: 1px solid var(--border);
	border-radius: var(--radius);
	background: var(--panel);
	padding: 1rem 1.25rem;
	margin-bottom: 1rem;
}
.vxqtn-comment-head {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	font-family: var(--font-head);
	font-size: 0.85rem;
	color: var(--muted);
	margin-bottom: 0.5rem;
}
.vxqtn-comment-head img { border-radius: var(--radius); border: 1px solid var(--border); }
.vxqtn-comment-author { font-weight: 600; color: var(--fg); }
.vxqtn-comment-body p { margin: 0 0 0.6rem; }
.vxqtn-comment-body p:last-child { margin-bottom: 0; }
.vxqtn-comment-mod {
	font-family: var(--font-head);
	font-size: 0.85rem;
	color: var(--muted);
	font-style: italic;
}
.vxqtn-comment-reply { font-family: var(--font-head); font-size: 0.85rem; margin-top: 0.5rem; }

.vxqtn-respond input[type="text"],
.vxqtn-respond input[type="email"],
.vxqtn-respond input[type="url"],
.vxqtn-respond textarea {
	width: 100%;
	padding: 0.55rem 0.75rem;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	font-family: var(--font-head);
	font-size: 0.95rem;
	background: var(--bg);
	color: var(--fg);
}
.vxqtn-respond .submit {
	border: 1px solid var(--accent);
	background: var(--accent);
	color: #fff;
	padding: 0.55rem 1.2rem;
	border-radius: var(--radius);
	font-family: var(--font-head);
	cursor: pointer;
}

/* Sidebar */
.vxqtn-side-block {
	border: 1px solid var(--border);
	border-radius: var(--radius);
	background: var(--panel);
	box-shadow: var(--shadow);
	padding: 1.25rem 1.4rem;
	margin-bottom: 1.5rem;
}
.vxqtn-side-title {
	margin: 0 0 0.75rem;
	font-size: 1.05rem;
	font-family: var(--font-head);
}
.vxqtn-side-list { list-style: none; margin: 0; padding: 0; }
.vxqtn-side-list li { padding: 0.35rem 0; border-bottom: 1px solid var(--border); font-size: 0.95rem; }
.vxqtn-side-list li:last-child { border-bottom: 0; }
.vxqtn-side-list a { color: var(--fg); }
.vxqtn-side-list a:hover { color: var(--accent); }

/* Footer */
.vxqtn-site-footer {
	border-top: 1px solid var(--border);
	background: var(--panel);
	margin-top: 1rem;
}

.vxqtn-foot-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
	gap: 1.75rem;
	padding: 2.25rem 0 1.5rem;
}

.vxqtn-foot-heading {
	display: block;
	font-family: var(--font-head);
	font-weight: 600;
	font-size: 0.95rem;
	margin-bottom: 0.6rem;
	color: var(--fg);
}
.vxqtn-foot-list { list-style: none; margin: 0; padding: 0; }
.vxqtn-foot-item { padding: 0.25rem 0; font-size: 0.9rem; }
.vxqtn-foot-item a { color: var(--muted); }
.vxqtn-foot-item a:hover { color: var(--accent); }

.vxqtn-foot-base {
	border-top: 1px solid var(--border);
	padding: 1rem 0 1.5rem;
	font-family: var(--font-head);
	font-size: 0.82rem;
	color: var(--muted);
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
}
.vxqtn-foot-note { margin: 0; }

/* Error / empty states */
.vxqtn-empty {
	border: 1px solid var(--border);
	border-radius: var(--radius);
	background: var(--panel);
	padding: 2rem;
}
.vxqtn-empty h1 { margin-top: 0; }

/* Responsive */
@media (max-width: 960px) {
	.vxqtn-main { grid-template-columns: minmax(0, 1fr); }
	.vxqtn-foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
	#nav-toggle { display: inline-flex; }

	.vxqtn-nav { display: none; width: 100%; }
	.vxqtn-nav.is-open { display: block; }

	.vxqtn-header-inner { flex-wrap: wrap; }

	.vxqtn-nav ul { flex-direction: column; gap: 0; }
	.vxqtn-nav a { padding: 0.7rem 0.25rem; }
	.vxqtn-nav .sub-menu {
		position: static;
		border: 0;
		border-left: 1px solid var(--border);
		border-radius: 0;
		margin-left: 0.75rem;
		padding: 0 0 0 0.5rem;
	}
	.vxqtn-nav li:hover > .sub-menu,
	.vxqtn-nav li:focus-within > .sub-menu { display: none; }
	.vxqtn-nav li.is-open > .sub-menu { display: flex; }

	.vxqtn-submenu-toggle {
		display: inline-flex;
		position: absolute;
		right: 0;
		top: 0.35rem;
		width: 2rem;
		height: 2rem;
		background: transparent;
		border: 1px solid var(--border);
		border-radius: var(--radius);
		cursor: pointer;
		color: var(--muted);
		align-items: center;
		justify-content: center;
		font-size: 0.8rem;
	}
	.vxqtn-nav li.menu-item-has-children { padding-right: 2.25rem; }

	.vxqtn-row { grid-template-columns: minmax(0, 1fr); }
	.vxqtn-row-thumb { max-width: 16rem; }

	.vxqtn-article { padding: 1.5rem 1.25rem; }
	.vxqtn-foot-grid { grid-template-columns: minmax(0, 1fr); }
	.search-form { max-width: none; }

	h1, .vxqtn-hero h1 { font-size: 1.55rem; }
	h2 { font-size: 1.25rem; }
	.vxqtn-row-title { font-size: 1.1rem; }
}
