/*
Theme Name: Hipobuy Spreadsheet
Theme URI: https://cnbuyspreadsheet.com/
Author: Hipobuy Spreadsheet
Author URI: https://cnbuyspreadsheet.com/
Description: A fresh, light and SEO-optimized single-page theme for Hipobuy Spreadsheet guides. Includes category dropdown, Guide dropdown, 10 product category buttons, a 1500-word buying guide on the homepage and auto-import of 9 Rank Math optimized SEO articles with featured images.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hipobuy-spreadsheet
Tags: one-column, custom-logo, featured-images, blog, e-commerce, translation-ready
*/

/* ---------- Tokens ---------- */
:root {
	--sky: #38bdf8;
	--sky-600: #0284c7;
	--sky-50: #f0f9ff;
	--mint: #34d399;
	--mint-50: #ecfdf5;
	--peach: #fb923c;
	--peach-50: #fff7ed;
	--pink: #f472b6;
	--pink-50: #fdf2f8;
	--violet: #a78bfa;
	--violet-50: #f5f3ff;
	--sun: #facc15;
	--sun-50: #fefce8;
	--ink: #0f172a;
	--text: #334155;
	--muted: #64748b;
	--line: #e2e8f0;
	--bg: #f8fbff;
	--white: #ffffff;
	--radius: 18px;
	--radius-sm: 12px;
	--shadow: 0 10px 30px -12px rgba(15, 23, 42, .18);
	--shadow-lg: 0 24px 60px -20px rgba(2, 132, 199, .35);
	--font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--wrap: 1200px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	font-family: var(--font);
	font-size: 17px;
	line-height: 1.75;
	color: var(--text);
	background: var(--bg);
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--sky-600); text-decoration: none; transition: color .2s; }
a:hover { color: var(--peach); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.25; margin: 0 0 .6em; font-weight: 800; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.35rem); }
p { margin: 0 0 1.1em; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 6px; }
.container { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.container.narrow { max-width: 860px; }
.center { text-align: center; }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff; padding: 10px 16px; z-index: 999; }
.skip-link:focus { left: 10px; top: 10px; }
.screen-reader-text { position: absolute !important; clip: rect(1px, 1px, 1px, 1px); width: 1px; height: 1px; overflow: hidden; }

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .4em;
	padding: .85em 1.6em; border-radius: 999px; font-weight: 700; font-size: 1rem;
	line-height: 1.2; border: 2px solid transparent; cursor: pointer;
	transition: transform .2s, box-shadow .2s, background .2s, color .2s;
	white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: linear-gradient(135deg, var(--sky), #6366f1); color: #fff; box-shadow: 0 10px 24px -10px rgba(56, 189, 248, .9); }
.btn-primary:hover { color: #fff; box-shadow: 0 16px 30px -10px rgba(99, 102, 241, .8); }
.btn-accent { background: linear-gradient(135deg, var(--peach), var(--pink)); color: #fff; box-shadow: 0 10px 24px -10px rgba(251, 146, 60, .9); }
.btn-accent:hover { color: #fff; box-shadow: 0 16px 30px -10px rgba(244, 114, 182, .8); }
.btn-ghost { background: rgba(255, 255, 255, .85); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { color: var(--sky-600); border-color: var(--sky); }
.btn-soft { background: var(--sky-50); color: var(--sky-600); }
.btn-soft:hover { background: var(--sky); color: #fff; }
.btn-sm { padding: .6em 1.15em; font-size: .9rem; }
.btn-lg { padding: 1em 2em; font-size: 1.05rem; }
.btn-block { display: flex; width: 100%; margin-top: 10px; }
.cta-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.6em 0; }
.center-btn { text-align: center; margin-top: 40px; }

/* ---------- Top bar & header ---------- */
.topbar { background: linear-gradient(90deg, var(--sky-50), var(--pink-50), var(--sun-50)); font-size: .85rem; color: var(--muted); }
.topbar-inner { display: flex; justify-content: space-between; gap: 16px; padding-top: 8px; padding-bottom: 8px; }
.topbar a { font-weight: 700; }

.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255, 255, 255, .88); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid rgba(226, 232, 240, .7); transition: box-shadow .2s; }
.site-header.scrolled { box-shadow: 0 8px 24px -16px rgba(15, 23, 42, .25); }
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 74px; }
.brand-link { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); }
.brand-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: linear-gradient(135deg, var(--sky), var(--violet)); color: #fff; }
.brand-text { font-size: 1.2rem; font-weight: 600; letter-spacing: -.01em; }
.brand-text strong { font-weight: 800; background: linear-gradient(90deg, var(--sky-600), var(--pink)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.custom-logo { max-height: 52px; width: auto; }

.primary-nav { display: flex; align-items: center; gap: 20px; margin-left: auto; }
.menu { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.menu > li { position: relative; }
.menu > li > a, .dropdown-toggle {
	display: inline-flex; align-items: center; gap: 4px; padding: 10px 14px; border-radius: 10px;
	color: var(--ink); font-weight: 600; font-size: .97rem; background: none; border: 0; font-family: inherit; cursor: pointer;
}
.menu > li > a:hover, .dropdown-toggle:hover, .has-dropdown.open > .dropdown-toggle { background: var(--sky-50); color: var(--sky-600); }
.caret { font-size: .75em; transition: transform .2s; }
.has-dropdown.open .caret { transform: rotate(180deg); }
.dropdown {
	position: absolute; top: calc(100% + 8px); left: 0; min-width: 260px; list-style: none; margin: 0; padding: 10px;
	background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg);
	opacity: 0; visibility: hidden; transform: translateY(8px); transition: .2s;
}
.dropdown li a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; color: var(--text); font-weight: 600; font-size: .93rem; line-height: 1.35; }
.dropdown li a:hover { background: var(--sky-50); color: var(--sky-600); }
.dropdown img { width: 36px; height: 36px; border-radius: 10px; object-fit: cover; flex: none; }
.dropdown-grid { display: grid; grid-template-columns: repeat(2, minmax(200px, 1fr)); min-width: 460px; }
.dropdown-all a { color: var(--pink) !important; }
.has-dropdown.open > .dropdown { opacity: 1; visibility: visible; transform: none; }
@media (hover: hover) and (min-width: 1025px) {
	.has-dropdown:hover > .dropdown { opacity: 1; visibility: visible; transform: none; }
}
.nav-cta { display: flex; gap: 8px; }

.nav-toggle { display: none; margin-left: auto; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: #fff; cursor: pointer; padding: 12px 10px; flex-direction: column; justify-content: space-between; }
.nav-toggle span { display: block; height: 2px; background: var(--ink); border-radius: 2px; transition: .25s; }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
	position: relative; overflow: hidden; padding: 90px 0 110px;
	background:
		linear-gradient(115deg, rgba(255, 255, 255, .94) 0%, rgba(240, 249, 255, .86) 38%, rgba(253, 242, 248, .45) 70%, rgba(254, 252, 232, .25) 100%),
		var(--hero-bg) center / cover no-repeat;
}
.hero::after { content: ""; position: absolute; inset: auto 0 -1px 0; height: 80px; background: linear-gradient(to bottom, transparent, var(--bg)); }
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.25fr .75fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-block; padding: 6px 14px; border-radius: 999px; background: #fff; color: var(--sky-600); font-weight: 700; font-size: .82rem; letter-spacing: .03em; box-shadow: 0 6px 16px -10px rgba(2, 132, 199, .5); margin-bottom: 16px; }
.hero h1 { margin-bottom: .4em; }
.grad { background: linear-gradient(90deg, var(--sky-600), var(--violet), var(--pink)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-lead { font-size: 1.15rem; max-width: 600px; color: var(--text); }
.hero-badges { display: flex; flex-wrap: wrap; gap: 12px; list-style: none; padding: 0; margin: 8px 0 0; }
.hero-badges li { background: rgba(255, 255, 255, .85); border: 1px solid var(--line); border-radius: 14px; padding: 10px 16px; font-size: .92rem; }
.hero-badges strong { color: var(--peach); font-size: 1.1rem; margin-right: 4px; }
.hero-card { position: relative; }
.hero-card img { border-radius: 28px; box-shadow: var(--shadow-lg); aspect-ratio: 4 / 5; object-fit: cover; width: 100%; border: 6px solid #fff; }
.hero-chip { position: absolute; background: #fff; border-radius: 14px; padding: 10px 16px; font-weight: 700; font-size: .9rem; color: var(--ink); box-shadow: var(--shadow); animation: float 4s ease-in-out infinite; }
.chip-1 { left: -24px; top: 18%; }
.chip-2 { right: -14px; bottom: 14%; animation-delay: 1.5s; }
@keyframes float { 50% { transform: translateY(-10px); } }

/* ---------- Sections ---------- */
.section { padding: 80px 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 44px; }
.section-head p { color: var(--muted); }

/* Categories */
.categories { background: linear-gradient(180deg, var(--bg), #fff); }
.cat-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.cat-card {
	display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px;
	padding: 26px 16px 22px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line);
	color: var(--ink); transition: transform .25s, box-shadow .25s, border-color .25s;
}
.cat-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); color: var(--ink); }
.cat-img { width: 108px; height: 108px; border-radius: 50%; padding: 6px; margin-bottom: 12px; }
.cat-img img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; transition: transform .35s; }
.cat-card:hover .cat-img img { transform: scale(1.08); }
.tint-0 .cat-img { background: linear-gradient(135deg, var(--sky), #bae6fd); }
.tint-1 .cat-img { background: linear-gradient(135deg, var(--pink), #fbcfe8); }
.tint-2 .cat-img { background: linear-gradient(135deg, var(--mint), #a7f3d0); }
.tint-3 .cat-img { background: linear-gradient(135deg, var(--peach), #fed7aa); }
.tint-4 .cat-img { background: linear-gradient(135deg, var(--violet), #ddd6fe); }
.tint-0:hover { border-color: var(--sky); }
.tint-1:hover { border-color: var(--pink); }
.tint-2:hover { border-color: var(--mint); }
.tint-3:hover { border-color: var(--peach); }
.tint-4:hover { border-color: var(--violet); }
.cat-name { font-weight: 800; font-size: 1.05rem; }
.cat-desc { font-size: .85rem; color: var(--muted); line-height: 1.4; }
.cat-go { margin-top: 8px; font-size: .85rem; font-weight: 700; color: var(--sky-600); }

/* Steps */
.steps-section { background: linear-gradient(135deg, var(--sky-50), var(--mint-50) 50%, var(--peach-50)); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.step { position: relative; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); padding-bottom: 18px; }
.step img { width: 100%; height: 170px; object-fit: cover; }
.step h3, .step p { padding: 0 20px; }
.step h3 { margin-top: 30px; margin-bottom: .3em; }
.step p { color: var(--muted); font-size: .95rem; margin: 0; }
.step-num { position: absolute; top: 146px; left: 20px; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--peach), var(--pink)); color: #fff; font-weight: 800; font-size: 1.15rem; border: 4px solid #fff; }

/* Article */
.article-section { background: #fff; }
.article-layout { display: grid; grid-template-columns: 280px 1fr; gap: 50px; align-items: start; }
.toc { position: sticky; top: 100px; }
.toc-box { background: var(--sky-50); border: 1px solid #e0f2fe; border-radius: var(--radius); padding: 22px; }
.toc-box strong { color: var(--ink); display: block; margin-bottom: 8px; }
.toc-box ol { margin: 0; padding-left: 20px; font-size: .93rem; line-height: 1.6; }
.toc-box li { margin: 6px 0; }
.toc-box a { color: var(--text); }
.toc-box a:hover { color: var(--sky-600); }
.article-title { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 800; color: var(--ink); line-height: 1.2; margin-bottom: .8em; }

/* Entry content */
.entry-content { max-width: 780px; }
.entry-content h2 { margin-top: 1.8em; padding-top: .2em; scroll-margin-top: 100px; }
.entry-content h3 { margin-top: 1.5em; color: #1e293b; }
.entry-content ul, .entry-content ol { padding-left: 1.3em; margin: 0 0 1.3em; }
.entry-content li { margin: .4em 0; }
.entry-content li::marker { color: var(--sky); font-weight: 700; }
.entry-content a { text-decoration: underline; text-decoration-color: rgba(56, 189, 248, .4); text-underline-offset: 3px; }
.entry-content a.btn { text-decoration: none; }
.entry-content figure { margin: 2em 0; }
.entry-content figure img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; max-height: 520px; object-fit: cover; }
.entry-content figcaption { text-align: center; font-size: .88rem; color: var(--muted); margin-top: 10px; }
.entry-content table { width: 100%; border-collapse: separate; border-spacing: 0; margin: 1.5em 0 2em; font-size: .95rem; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.entry-content th { background: linear-gradient(90deg, var(--sky-50), var(--violet-50)); color: var(--ink); text-align: left; }
.entry-content th, .entry-content td { padding: 12px 16px; border-bottom: 1px solid var(--line); }
.entry-content tr:last-child td { border-bottom: 0; }
.entry-content blockquote { margin: 1.5em 0; padding: 18px 22px; border-left: 4px solid var(--peach); background: var(--peach-50); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }

/* Post grid */
.guides { background: linear-gradient(180deg, #fff, var(--violet-50)); }
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.post-card { background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s; }
.post-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.post-card-img img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .4s; }
.post-card-img { overflow: hidden; display: block; }
.post-card:hover .post-card-img img { transform: scale(1.05); }
.post-card-body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.post-card-body p { color: var(--muted); font-size: .94rem; flex: 1; }
.post-card-cat { align-self: flex-start; font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--pink); background: var(--pink-50); padding: 4px 10px; border-radius: 999px; margin-bottom: 10px; }
.post-card-title { font-size: 1.12rem; margin-bottom: .5em; }
.post-card-title a { color: var(--ink); }
.post-card-title a:hover { color: var(--sky-600); }
.post-card .btn { align-self: flex-start; }

/* FAQ */
.faq { background: var(--violet-50); }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 12px; padding: 0 22px; }
.faq-item summary { cursor: pointer; list-style: none; padding: 18px 30px 18px 0; font-weight: 700; color: var(--ink); position: relative; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: var(--sky); }
.faq-item[open] summary::after { content: "–"; }
.faq-item p { color: var(--muted); padding-bottom: 6px; }

/* CTA band */
.cta-band { position: relative; padding: 90px 0; text-align: center; background: linear-gradient(120deg, rgba(240, 249, 255, .92), rgba(253, 242, 248, .88), rgba(254, 252, 232, .9)), var(--band-bg) center / cover no-repeat; }
.cta-band-inner { max-width: 760px; }
.cta-band .cta-buttons { justify-content: center; }

/* ---------- Single ---------- */
.single-hero { padding: 54px 0 34px; background: linear-gradient(135deg, var(--sky-50), var(--pink-50) 60%, var(--sun-50)); text-align: center; }
.single-title { font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: .3em; }
.breadcrumbs { font-size: .88rem; color: var(--muted); margin-bottom: 16px; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.breadcrumbs a { color: var(--sky-600); font-weight: 600; }
.single-meta { color: var(--muted); font-size: .9rem; display: flex; justify-content: center; gap: 8px; }
.archive-desc { color: var(--muted); max-width: 680px; margin: 0 auto; }
.single-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; padding-top: 40px; padding-bottom: 40px; align-items: start; }
.single-thumb { margin: 0 0 30px; }
.single-thumb img { width: 100%; border-radius: 22px; box-shadow: var(--shadow-lg); aspect-ratio: 16 / 9; object-fit: cover; }
.single-sidebar { position: sticky; top: 100px; display: grid; gap: 20px; }
.side-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.side-box > strong { display: block; color: var(--ink); margin-bottom: 10px; }
.side-cats { list-style: none; margin: 0; padding: 0; }
.side-cats a { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 10px; color: var(--text); font-weight: 600; font-size: .93rem; }
.side-cats a:hover { background: var(--sky-50); color: var(--sky-600); }
.side-cats img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.side-cta { background: linear-gradient(135deg, var(--sky-50), var(--peach-50)); }
.post-cta { margin-top: 40px; padding: 30px; border-radius: 22px; background: linear-gradient(135deg, var(--sky-50), var(--violet-50), var(--pink-50)); text-align: center; }
.post-cta .cta-buttons { justify-content: center; }
.post-cta-title { font-size: 1.5rem; }
.back-home { margin: 0; font-weight: 700; }
.related { padding-top: 30px; }
.related-title { text-align: center; margin-bottom: 30px; }
.page-article { padding: 40px 0; }
.pagination { margin-top: 40px; text-align: center; }
.pagination .page-numbers { display: inline-block; padding: 8px 14px; margin: 0 3px; border-radius: 10px; background: #fff; border: 1px solid var(--line); }
.pagination .current { background: var(--sky); color: #fff; border-color: var(--sky); }
.big-404 { font-size: 7rem; font-weight: 800; line-height: 1; margin: 0; background: linear-gradient(90deg, var(--sky), var(--pink)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.error-404 .cta-buttons { justify-content: center; }

/* Widgets & search */
.widget { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.widget-title { font-size: 1rem; }
.search-form { display: flex; gap: 8px; margin-top: 16px; }
.search-field { flex: 1; padding: 12px 16px; border-radius: 999px; border: 1px solid var(--line); font: inherit; }
.search-submit { padding: 12px 20px; border-radius: 999px; border: 0; background: var(--sky); color: #fff; font-weight: 700; cursor: pointer; }

/* ---------- Footer ---------- */
.site-footer { background: #0f1e36; color: #cbd5e1; padding-top: 64px; font-size: .95rem; }
.site-footer a { color: #e2e8f0; }
.site-footer a:hover { color: var(--sun); }
.site-footer .brand-text { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer-col h3 { color: #fff; font-size: 1rem; margin-bottom: 14px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin: 6px 0; }
.footer-about p { margin: 14px 0 18px; color: #94a3b8; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid rgba(255, 255, 255, .08); margin-top: 48px; padding-top: 22px; padding-bottom: 22px; font-size: .85rem; color: #94a3b8; }
.footer-bottom p { margin: 0; }

/* ---------- WordPress core ---------- */
.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { margin-left: auto; margin-right: auto; }
.wp-caption-text, .gallery-caption { font-size: .88rem; color: var(--muted); }
.sticky, .bypostauthor { position: relative; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
	.nav-cta { display: none; }
}
@media (max-width: 1024px) {
	.nav-toggle { display: flex; }
	.primary-nav {
		position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 10px;
		background: #fff; padding: 14px 20px 22px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
		display: none; max-height: calc(100vh - 80px); overflow-y: auto;
	}
	.primary-nav.is-open { display: flex; }
	.menu { flex-direction: column; align-items: stretch; }
	.menu > li > a, .dropdown-toggle { width: 100%; justify-content: space-between; padding: 12px; }
	.dropdown { position: static; display: none; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 6px 8px; min-width: 0; }
	.has-dropdown.open > .dropdown { display: block; }
	.dropdown-grid { grid-template-columns: 1fr 1fr; min-width: 0; }
	.has-dropdown.open > .dropdown-grid { display: grid; }
	.nav-cta { display: flex; flex-direction: column; }
	.nav-cta .btn { width: 100%; }
	.hero-inner { grid-template-columns: 1fr; }
	.hero-card { display: none; }
	.cat-grid { grid-template-columns: repeat(3, 1fr); }
	.steps { grid-template-columns: repeat(2, 1fr); }
	.article-layout { grid-template-columns: 1fr; }
	.toc { position: static; }
	.post-grid { grid-template-columns: repeat(2, 1fr); }
	.single-layout { grid-template-columns: 1fr; }
	.single-sidebar { position: static; }
	.footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
	body { font-size: 16px; }
	.container { padding: 0 16px; }
	.topbar-inner span { display: none; }
	.topbar-inner { justify-content: center; }
	.hero { padding: 56px 0 80px; }
	.section { padding: 56px 0; }
	.cta-buttons { flex-direction: column; }
	.cta-buttons .btn { width: 100%; white-space: normal; }
	.cat-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
	.cat-img { width: 84px; height: 84px; }
	.cat-desc { display: none; }
	.steps, .post-grid { grid-template-columns: 1fr; }
	.dropdown-grid { grid-template-columns: 1fr; }
	.footer-grid { grid-template-columns: 1fr; }
	.entry-content table { display: block; overflow-x: auto; white-space: nowrap; }
	.btn { white-space: normal; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
