/*
Theme Name: Best Web Hosting Guides
Theme URI: https://hosting.clasificadosya.com/
Author: Muse for Best Web Hosting Guides
Author URI: https://hosting.clasificadosya.com/
Description: A fast, mobile-first classic theme for Best Web Hosting Guides — honest web hosting reviews and guides for beginners. Dark navy header and hero, white article area, bright green primary and sky blue accent. Homepage: one large featured post, three latest posts, five category cards, then a clean post list. Desktop sidebar with widget area; no sidebar on mobile.
Version: 1.0.2
Requires at least: 6.0
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: best-web-hosting-guides
Tags: blog, hosting, dark-header, custom-menu, featured-images, responsive-layout, threaded-comments, translation-ready
*/

/* ============================================================
   DESIGN TOKENS — "Azul noche" (Option B)
   All colours live here. To recolour this theme for another
   blog, change only these variables.
   ============================================================ */
:root {
	--navy: #0b1220;          /* header / hero / footer background */
	--navy-2: #111c33;        /* slightly lighter navy (dropdowns, footer columns) */
	--navy-3: #1a2745;        /* navy borders / hover surfaces */
	--white: #ffffff;         /* article area background */
	--text: #111827;          /* main body text */
	--muted: #6b7280;         /* secondary text */
	--muted-light: #cbd5e1;   /* muted text on navy */
	--primary: #22c55e;       /* bright green — buttons, links, highlights */
	--primary-dark: #16a34a;  /* green hover */
	--primary-soft: #dcfce7;  /* pale green tint */
	--accent: #38bdf8;        /* sky blue accent */
	--accent-soft: #e0f2fe;   /* pale sky tint */
	--border: #e5e7eb;        /* hairline borders on white */
	--bg-soft: #f6f8fb;       /* soft grey section background */
	--shadow: 0 10px 30px rgba(11, 18, 32, 0.10);
	--radius: 14px;
	--radius-sm: 9px;
	--font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--wrap: 1180px;
}

/* ============================================================
   BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
	margin: 0;
	font-family: var(--font);
	font-size: 17px;
	line-height: 1.65;
	color: var(--text);
	background: var(--white);
	-webkit-font-smoothing: antialiased;
}

img, video, iframe { max-width: 100%; height: auto; }
img { display: block; }

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

h1, h2, h3, h4, h5, h6 {
	color: var(--navy);
	line-height: 1.25;
	margin: 0 0 0.6em;
	font-weight: 800;
}

p { margin: 0 0 1.1em; }
ul, ol { margin: 0 0 1.1em; padding-left: 1.4em; }
blockquote {
	margin: 1.4em 0;
	padding: 0.9em 1.2em;
	border-left: 4px solid var(--primary);
	background: var(--bg-soft);
	border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
code { background: var(--bg-soft); padding: 0.1em 0.35em; border-radius: 4px; font-size: 0.9em; }
pre {
	background: var(--navy);
	color: #e2e8f0;
	padding: 1em 1.2em;
	border-radius: var(--radius-sm);
	overflow-x: auto;
}
pre code { background: transparent; padding: 0; color: inherit; }
table { border-collapse: collapse; width: 100%; margin-bottom: 1.2em; }
th, td { border: 1px solid var(--border); padding: 0.55em 0.8em; text-align: left; }
th { background: var(--bg-soft); }

button, input, select, textarea { font: inherit; color: inherit; }
input[type="search"], input[type="text"], input[type="email"], input[type="url"], textarea {
	width: 100%;
	padding: 0.65em 0.9em;
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	background: var(--white);
}
input:focus, textarea:focus, button:focus, a:focus {
	outline: 3px solid rgba(56, 189, 248, 0.55);
	outline-offset: 2px;
}

.wrap {
	max-width: var(--wrap);
	margin-left: auto;
	margin-right: auto;
	padding-left: 20px;
	padding-right: 20px;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}
.skip-link {
	position: absolute;
	left: 16px; top: -60px;
	z-index: 200;
	background: var(--primary);
	color: var(--navy);
	font-weight: 700;
	padding: 0.6em 1em;
	border-radius: 0 0 8px 8px;
	transition: top 0.2s ease;
}
.skip-link:focus { top: 0; color: var(--navy); text-decoration: none; }

/* Buttons */
.btn {
	display: inline-block;
	background: var(--primary);
	color: var(--navy) !important;
	font-weight: 800;
	padding: 0.7em 1.5em;
	border-radius: 999px;
	border: 0;
	cursor: pointer;
	text-decoration: none !important;
	transition: background 0.15s ease, transform 0.15s ease;
}
.btn:hover, .btn:focus { background: var(--accent); color: var(--navy) !important; }
.btn-outline {
	background: transparent;
	color: var(--white) !important;
	border: 2px solid rgba(255, 255, 255, 0.55);
}
.btn-outline:hover, .btn-outline:focus { border-color: var(--primary); color: var(--primary) !important; background: transparent; }

/* Category chip */
.cat-chip {
	display: inline-block;
	background: var(--primary);
	color: var(--navy);
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	padding: 0.3em 0.75em;
	border-radius: 999px;
	text-decoration: none !important;
}
.cat-chip:hover, .cat-chip:focus { background: var(--accent); color: var(--navy); }
.cat-chip.sky { background: var(--accent); }
.cat-chip.sky:hover { background: var(--primary); }

/* Post meta */
.post-meta {
	font-size: 0.88rem;
	color: var(--muted);
	display: flex;
	flex-wrap: wrap;
	gap: 0.35em 1em;
	align-items: center;
}
.post-meta a { color: var(--muted); }
.post-meta a:hover { color: var(--primary-dark); }
.hero .post-meta { color: var(--muted-light); }
.hero .post-meta a { color: var(--muted-light); }

/* Section headings */
.section-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 1em;
	margin: 2.4rem 0 1.2rem;
}
.section-head h2 {
	font-size: 1.5rem;
	margin: 0;
	padding-bottom: 0.35em;
	border-bottom: 3px solid var(--primary);
}
.section-head a { font-weight: 700; font-size: 0.95rem; white-space: nowrap; }

/* ============================================================
   HEADER — dark navy top bar
   ============================================================ */
.site-header {
	background: var(--navy);
	color: var(--white);
	position: sticky;
	top: 0;
	z-index: 100;
	border-bottom: 3px solid;
	border-image: linear-gradient(90deg, var(--primary), var(--accent)) 1;
}
.site-header .wrap {
	display: flex;
	align-items: center;
	gap: 16px;
	min-height: 64px;
}
.site-branding { flex: 0 0 auto; }
.site-branding a { color: var(--white); text-decoration: none !important; }
.site-title {
	font-size: 1.35rem;
	font-weight: 900;
	letter-spacing: -0.01em;
	margin: 0;
	line-height: 1.15;
	color: var(--white);
}
.site-title .accent { color: var(--primary); }
.site-tagline {
	font-size: 0.8rem;
	color: var(--muted-light);
	margin: 0;
	line-height: 1.3;
}
.custom-logo { max-height: 44px; width: auto; }

/* Primary navigation */
.main-navigation { margin-left: auto; }
.main-navigation ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	gap: 2px;
}
.main-navigation a {
	display: block;
	color: var(--white);
	font-weight: 700;
	font-size: 0.98rem;
	padding: 0.6em 0.8em;
	border-radius: 8px;
	text-decoration: none !important;
}
.main-navigation a:hover, .main-navigation a:focus { color: var(--primary); background: rgba(255, 255, 255, 0.06); }
.main-navigation .current-menu-item > a,
.main-navigation .current-menu-ancestor > a,
.main-navigation .current-category-ancestor > a { color: var(--primary); }

/* Dropdowns (desktop) */
.main-navigation .menu-item-has-children { position: relative; }
.main-navigation .menu-item-has-children > a::after {
	content: "▾";
	font-size: 0.75em;
	margin-left: 0.35em;
	color: var(--accent);
}
.main-navigation .sub-menu {
	display: none;
	position: absolute;
	left: 0; top: 100%;
	min-width: 230px;
	background: var(--navy-2);
	border: 1px solid var(--navy-3);
	border-radius: 0 0 12px 12px;
	padding: 8px;
	box-shadow: var(--shadow);
	z-index: 110;
}
.main-navigation .sub-menu li { display: block; }
.main-navigation .sub-menu a { padding: 0.55em 0.8em; }
.main-navigation .menu-item-has-children:hover > .sub-menu,
.main-navigation .menu-item-has-children:focus-within > .sub-menu,
.main-navigation .sub-menu.toggled-on { display: block; }

/* Header tools: search + mobile menu buttons */
.header-tools { display: flex; align-items: center; gap: 8px; margin-left: 8px; }
.icon-btn {
	background: rgba(255, 255, 255, 0.08);
	color: var(--white);
	border: 1px solid rgba(255, 255, 255, 0.16);
	border-radius: 10px;
	width: 42px; height: 42px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	font-size: 1.15rem;
	line-height: 1;
}
.icon-btn:hover, .icon-btn:focus { background: var(--primary); color: var(--navy); border-color: var(--primary); }
.menu-toggle { display: none; }

/* Header search bar (toggled) */
.header-search {
	display: none;
	background: var(--navy-2);
	border-top: 1px solid var(--navy-3);
	padding: 14px 0;
}
.header-search.open { display: block; }
.header-search .search-form { display: flex; gap: 10px; }
.header-search input[type="search"] {
	flex: 1;
	background: var(--navy);
	color: var(--white);
	border-color: var(--navy-3);
}
.header-search input[type="search"]::placeholder { color: var(--muted-light); }

/* ============================================================
   HERO — large featured post on navy
   ============================================================ */
.hero {
	background:
		radial-gradient(900px 320px at 85% -10%, rgba(56, 189, 248, 0.22), transparent 60%),
		radial-gradient(700px 300px at 0% 110%, rgba(34, 197, 94, 0.16), transparent 55%),
		var(--navy);
	color: var(--white);
	padding: 2.6rem 0 2.8rem;
}
.hero-inner {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.6rem;
	align-items: center;
}
.hero-eyebrow { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 0.9rem; }
.hero-eyebrow .featured-tag {
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--accent);
}
.hero h1, .hero h2 {
	color: var(--white);
	font-size: clamp(1.7rem, 4.5vw, 2.7rem);
	line-height: 1.15;
	margin: 0 0 0.7rem;
}
.hero h1 a, .hero h2 a { color: var(--white); text-decoration: none !important; }
.hero h1 a:hover, .hero h2 a:hover { color: var(--primary); }
.hero .hero-excerpt { color: var(--muted-light); font-size: 1.05rem; margin-bottom: 1.2rem; }
.hero .hero-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.hero-media { position: relative; }
.hero-media img, .hero-media .hero-placeholder {
	width: 100%;
	height: auto;
	border-radius: var(--radius);
	border: 1px solid rgba(255, 255, 255, 0.14);
	box-shadow: 0 18px 44px rgba(0, 0, 0, 0.45);
	aspect-ratio: 3 / 2;
	object-fit: cover;
}
.hero-placeholder {
	background: linear-gradient(135deg, var(--navy-2), var(--navy-3));
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 5rem;
	font-weight: 900;
	color: var(--primary);
}

/* ============================================================
   POST CARDS — latest 3
   ============================================================ */
.latest-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 20px;
}
.post-card {
	background: var(--white);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	box-shadow: 0 2px 10px rgba(11, 18, 32, 0.05);
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.post-card .card-media img, .post-card .card-media .card-placeholder {
	width: 100%;
	aspect-ratio: 3 / 2;
	object-fit: cover;
}
.card-placeholder {
	background: linear-gradient(135deg, var(--navy-2), var(--navy-3));
	color: var(--primary);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 3rem;
	font-weight: 900;
}
.post-card .card-body { padding: 1.1rem 1.2rem 1.3rem; display: flex; flex-direction: column; gap: 0.55rem; flex: 1; }
.post-card h3 { font-size: 1.18rem; margin: 0; }
.post-card h3 a { color: var(--navy); text-decoration: none !important; }
.post-card h3 a:hover { color: var(--primary-dark); }
.post-card p { margin: 0; color: var(--muted); font-size: 0.96rem; }
.post-card .post-meta { margin-top: auto; }

/* ============================================================
   CATEGORY CARDS
   ============================================================ */
.cat-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 16px;
}
.cat-card {
	display: block;
	background: var(--bg-soft);
	border: 1px solid var(--border);
	border-top: 4px solid var(--primary);
	border-radius: var(--radius);
	padding: 1.1rem 1.15rem;
	text-decoration: none !important;
	transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.cat-card:nth-child(2) { border-top-color: var(--accent); }
.cat-card:nth-child(3) { border-top-color: #f59e0b; }
.cat-card:nth-child(4) { border-top-color: #a78bfa; }
.cat-card:nth-child(5) { border-top-color: #f472b6; }
.cat-card:hover, .cat-card:focus { transform: translateY(-3px); box-shadow: var(--shadow); background: var(--white); }
.cat-card h3 { font-size: 1.08rem; margin: 0 0 0.3rem; }
.cat-card p { margin: 0; color: var(--muted); font-size: 0.9rem; }
.cat-card .cat-count {
	display: inline-block;
	margin-top: 0.6rem;
	font-size: 0.82rem;
	font-weight: 800;
	color: var(--primary-dark);
}
.cat-card .cat-count::after { content: " →"; }

/* ============================================================
   POST LIST — the rest, clean rows
   ============================================================ */
.post-list { display: flex; flex-direction: column; gap: 18px; }
.post-row {
	display: grid;
	grid-template-columns: 1fr;
	gap: 0;
	background: var(--white);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	overflow: hidden;
}
.post-row .row-media img, .post-row .row-media .row-placeholder {
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
}
.row-placeholder {
	background: linear-gradient(135deg, var(--navy-2), var(--navy-3));
	color: var(--primary);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 2.4rem;
	font-weight: 900;
	aspect-ratio: 16 / 9;
}
.post-row .row-body { padding: 1.05rem 1.2rem 1.25rem; }
.post-row h3 { font-size: 1.22rem; margin: 0 0 0.45rem; }
.post-row h3 a { color: var(--navy); text-decoration: none !important; }
.post-row h3 a:hover { color: var(--primary-dark); }
.post-row p { margin: 0 0 0.6rem; color: var(--muted); font-size: 0.97rem; }

/* Pagination */
.pagination { margin: 2.2rem 0 0.5rem; text-align: center; }
.pagination .nav-links { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.pagination .page-numbers {
	display: inline-block;
	min-width: 42px;
	padding: 0.5em 0.7em;
	border: 1px solid var(--border);
	border-radius: 10px;
	font-weight: 700;
	color: var(--navy);
	text-decoration: none !important;
	background: var(--white);
}
.pagination .page-numbers:hover { border-color: var(--primary); color: var(--primary-dark); }
.pagination .current { background: var(--primary); border-color: var(--primary); color: var(--navy); }

/* ============================================================
   LAYOUT WITH SIDEBAR (desktop only)
   ============================================================ */
.site-content { padding: 0 0 3rem; }
.content-area { padding-top: 2rem; }
.has-sidebar .content-area > .wrap {
	display: block;
}
.sidebar { display: none; }

/* ============================================================
   SINGLE POST
   ============================================================ */
.single-header { margin-bottom: 1.4rem; }
.single-header h1 {
	font-size: clamp(1.7rem, 4.5vw, 2.5rem);
	line-height: 1.18;
	margin: 0.55rem 0 0.7rem;
}
.single-featured { margin: 0 0 1.6rem; }
.single-featured img {
	width: 100%;
	border-radius: var(--radius);
	aspect-ratio: 16 / 9;
	object-fit: cover;
}
.single-featured figcaption { font-size: 0.85rem; color: var(--muted); margin-top: 0.5em; }
.entry-content { font-size: 1.06rem; }
.entry-content h2 {
	font-size: 1.5rem;
	margin-top: 1.8em;
	padding-left: 0.65em;
	border-left: 4px solid var(--primary);
}
.entry-content h3 { font-size: 1.25rem; margin-top: 1.5em; }
.entry-content a { font-weight: 600; }
.entry-content img { border-radius: var(--radius-sm); }
.entry-content .alignwide { max-width: 100%; }
.entry-footer { margin-top: 2rem; padding-top: 1.2rem; border-top: 1px solid var(--border); }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.tag-list a {
	background: var(--bg-soft);
	border: 1px solid var(--border);
	border-radius: 999px;
	padding: 0.3em 0.85em;
	font-size: 0.88rem;
	font-weight: 700;
	color: var(--navy);
	text-decoration: none !important;
}
.tag-list a:hover { background: var(--primary-soft); border-color: var(--primary); }

/* Related posts */
.related-posts { margin-top: 2.6rem; }
.related-posts h2 { font-size: 1.4rem; border-bottom: 3px solid var(--primary); display: inline-block; padding-bottom: 0.3em; }
.related-grid { display: grid; grid-template-columns: 1fr; gap: 20px; margin-top: 1.2rem; }

/* Author box */
.author-box {
	display: flex;
	gap: 16px;
	background: var(--bg-soft);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 1.2rem;
	margin-top: 2rem;
	align-items: flex-start;
}
.author-box img { border-radius: 50%; flex: 0 0 auto; }
.author-box h3 { margin: 0 0 0.3rem; font-size: 1.05rem; }
.author-box p { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* Comments */
.comments-area { margin-top: 2.6rem; }
.comments-area h2, .comment-reply-title { font-size: 1.35rem; }
.comment-list { list-style: none; margin: 0; padding: 0; }
.comment-list .comment { border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.2rem; margin-bottom: 14px; }
.comment-list .children { list-style: none; padding-left: 1.2rem; margin-top: 14px; }
.comment-meta { font-size: 0.88rem; color: var(--muted); margin-bottom: 0.4rem; }
.comment-reply-link { font-weight: 700; font-size: 0.9rem; }

/* ============================================================
   PAGES / ARCHIVES / SEARCH / 404
   ============================================================ */
.page-header { margin-bottom: 1.6rem; }
.page-header h1 { font-size: clamp(1.7rem, 4vw, 2.3rem); margin: 0; }
.page-header .archive-description { color: var(--muted); margin-top: 0.5rem; }
.page-featured { margin-bottom: 1.6rem; }
.page-featured img { width: 100%; border-radius: var(--radius); aspect-ratio: 16 / 9; object-fit: cover; }
.not-found { text-align: center; padding: 3rem 0; }
.not-found .big-404 { font-size: clamp(4rem, 16vw, 8rem); font-weight: 900; color: var(--primary); line-height: 1; margin: 0; }
.search-form { display: flex; gap: 10px; max-width: 520px; margin: 1.4rem auto 0; }
.no-results { text-align: center; padding: 2rem 0; }

/* ============================================================
   SIDEBAR WIDGETS
   ============================================================ */
.widget {
	background: var(--bg-soft);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 1.2rem 1.25rem;
	margin-bottom: 20px;
}
.widget-title {
	font-size: 1.02rem;
	margin: 0 0 0.8rem;
	padding-bottom: 0.5rem;
	border-bottom: 3px solid var(--primary);
	display: inline-block;
}
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li { padding: 0.45em 0; border-bottom: 1px solid var(--border); }
.widget li:last-child { border-bottom: 0; }
.widget a { color: var(--navy); font-weight: 600; }
.widget a:hover { color: var(--primary-dark); }
.widget .post-date { display: block; font-size: 0.83rem; color: var(--muted); }

/* ============================================================
   FOOTER — navy
   ============================================================ */
.site-footer {
	background: var(--navy);
	color: var(--muted-light);
	margin-top: 1rem;
}
.footer-widgets {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2rem;
	padding: 2.6rem 0 2rem;
}
.site-footer h3, .site-footer h2 {
	color: var(--white);
	font-size: 1.05rem;
	margin: 0 0 0.9rem;
}
.site-footer a { color: var(--muted-light); }
.site-footer a:hover, .site-footer a:focus { color: var(--primary); }
.footer-about p { font-size: 0.95rem; }
.footer-menu, .sibling-blogs { list-style: none; margin: 0; padding: 0; }
.footer-menu li, .sibling-blogs li { padding: 0.32em 0; }
.sibling-blogs a { font-weight: 700; color: var(--white); }
.sibling-blogs a:hover { color: var(--primary); }
.footer-bottom {
	border-top: 1px solid var(--navy-3);
	padding: 1.1rem 0;
	font-size: 0.88rem;
	display: flex;
	flex-wrap: wrap;
	gap: 0.4em 1.4em;
	justify-content: space-between;
}
.footer-bottom a { color: var(--muted-light); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (min-width: 640px) {
	.latest-grid { grid-template-columns: repeat(2, 1fr); }
	.related-grid { grid-template-columns: repeat(2, 1fr); }
	.post-row { grid-template-columns: 300px 1fr; }
	.post-row .row-media img, .post-row .row-media .row-placeholder { aspect-ratio: auto; height: 100%; }
	.footer-widgets { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
	.hero-inner { grid-template-columns: 1.05fr 0.95fr; gap: 2.6rem; }
	.latest-grid { grid-template-columns: repeat(3, 1fr); }
	.related-grid { grid-template-columns: repeat(3, 1fr); }
	.cat-grid { grid-template-columns: repeat(5, 1fr); }
	.footer-widgets { grid-template-columns: 1.3fr 0.8fr 1fr; }
}

/* Sidebar appears on desktop only */
@media (min-width: 1024px) {
	.has-sidebar .content-area > .wrap {
		display: grid;
		grid-template-columns: minmax(0, 1fr) 320px;
		gap: 44px;
		align-items: start;
	}
	.sidebar { display: block; }
	.sidebar .widget { position: sticky; top: 84px; }
}

/* ============================================================
   MOBILE NAVIGATION
   ============================================================ */
@media (max-width: 860px) {
	.menu-toggle { display: inline-flex; }
	.site-header .wrap { position: relative; }
	.site-branding { flex: 1 1 auto; min-width: 0; }
	.site-title { font-size: 1.15rem; }
	.header-tools { flex: 0 0 auto; }
	.main-navigation {
		display: none;
		position: absolute;
		z-index: 200;
		left: 0; right: 0; top: 100%;
		background: var(--navy-2);
		border-top: 1px solid var(--navy-3);
		padding: 10px 20px 18px;
		box-shadow: var(--shadow);
		margin-left: 0;
	}
	.main-navigation.toggled { display: block; }
	.main-navigation ul { flex-direction: column; gap: 0; }
	.main-navigation a { padding: 0.75em 0.4em; border-bottom: 1px solid var(--navy-3); border-radius: 0; }
	.main-navigation .sub-menu {
		display: none;
		position: static;
		background: transparent;
		border: 0;
		box-shadow: none;
		padding: 0 0 0 18px;
		min-width: 0;
	}
	.main-navigation .sub-menu.toggled-on { display: block; }
	.main-navigation .sub-menu a { border-bottom: 0; padding: 0.55em 0.4em; color: var(--muted-light); }
	.site-header { position: static; }
	.site-tagline { display: none; }
}

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