/*
Theme Name: Kakobuy Spreadsheet
Theme URI: https://sheetfinds.com/
Author: SheetFinds
Author URI: https://sheetfinds.com/
Description: A light, colorful and SEO-optimized one-page style theme for a Kakobuy spreadsheet website. Includes a hero with call-to-action buttons, 11 product category cards and dropdown, a 1,500-word homepage buying guide, 12 auto-imported SEO guide articles in a "Guide" dropdown with full internal linking, built-in meta tags, Open Graph and JSON-LD schema (WebSite, FAQPage, Article, BreadcrumbList).
Version: 1.0.0
Requires at least: 5.9
Tested up to: 6.8
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: kakobuy
Tags: one-column, two-columns, right-sidebar, custom-logo, featured-images, blog, e-commerce
*/

/* ==========================================================================
   Design tokens
   ========================================================================== */
:root {
	--pink: #ff7aa2;
	--pink-600: #f2557f;
	--coral: #ff9f7a;
	--sun: #ffd166;
	--mint: #5fd3a8;
	--sky: #6cb8ff;
	--violet: #a78bfa;
	--ink: #1f2440;
	--ink-2: #4a5070;
	--muted: #7a7f98;
	--line: #eceaf3;
	--bg: #fffaf7;
	--bg-soft: #f6f4ff;
	--white: #ffffff;
	--radius: 18px;
	--radius-sm: 12px;
	--shadow: 0 10px 30px rgba(31, 36, 64, .08);
	--shadow-lg: 0 20px 50px rgba(31, 36, 64, .14);
	--grad: linear-gradient(135deg, #ff7aa2 0%, #ff9f7a 50%, #ffd166 100%);
	--grad-cool: linear-gradient(135deg, #6cb8ff 0%, #a78bfa 100%);
	--font-head: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
	--font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--container: 1200px;
}

/* ==========================================================================
   Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	font-family: var(--font-body);
	font-size: 17px;
	line-height: 1.7;
	color: var(--ink-2);
	background:
		radial-gradient(1200px 600px at 100% -10%, #ffe7f0 0%, transparent 60%),
		radial-gradient(900px 500px at -10% 30%, #e6f3ff 0%, transparent 60%),
		var(--bg);
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--pink-600); text-decoration: none; transition: color .2s; }
a:hover { color: var(--ink); }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.25; margin: 0 0 .6em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; letter-spacing: -.02em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; letter-spacing: -.01em; }
h3, .h3 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0 0 1.1em; }
ul, ol { padding-left: 1.3em; }
button, input, select { font: inherit; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 820px; }
.narrow-wide { max-width: 1000px; }
.center { text-align: center; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 999; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .4em;
	padding: .72em 1.35em; border-radius: 999px; border: 2px solid transparent;
	font-family: var(--font-head); font-weight: 600; font-size: .95rem; line-height: 1.2;
	cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s, color .2s;
	white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 8px 20px rgba(255, 122, 162, .35); }
.btn-primary:hover { color: #fff; box-shadow: 0 12px 26px rgba(255, 122, 162, .45); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--pink); color: var(--pink-600); }
.btn-white { background: #fff; color: var(--ink); box-shadow: var(--shadow); }
.btn-white:hover { color: var(--pink-600); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { color: #fff; background: #2f3660; }
.btn-lg { padding: .95em 1.8em; font-size: 1.05rem; }
.btn-sm { padding: .55em 1.1em; font-size: .85rem; }
.btn-block { display: flex; width: 100%; margin-top: .6rem; }

/* ==========================================================================
   Header & navigation
   ========================================================================== */
.site-header {
	position: sticky; top: 0; z-index: 100;
	background: rgba(255, 255, 255, .86);
	backdrop-filter: saturate(180%) blur(14px);
	-webkit-backdrop-filter: saturate(180%) blur(14px);
	border-bottom: 1px solid rgba(236, 234, 243, .8);
}
.admin-bar .site-header { top: 32px; }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 20px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-text { font-family: var(--font-head); font-weight: 600; font-size: 1.15rem; letter-spacing: -.01em; }
.brand-text strong { font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; margin-left: 2px; }
.brand-logo-img { max-height: 48px; width: auto; }

.primary-nav { display: flex; align-items: center; gap: 22px; }
.menu { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.menu > li { position: relative; }
.menu > li > a, .dropdown-toggle {
	display: flex; align-items: center; gap: 6px;
	padding: 10px 14px; border-radius: 999px; border: 0; background: none;
	font-family: var(--font-head); font-weight: 500; font-size: .95rem; color: var(--ink); cursor: pointer;
}
.menu > li > a:hover, .dropdown-toggle:hover, .has-dropdown.open > .dropdown-toggle { background: #fff0f5; color: var(--pink-600); }
.caret { width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .2s; }
.has-dropdown.open .caret { transform: rotate(-135deg) translateY(-2px); }

.dropdown {
	list-style: none; margin: 0; padding: 10px;
	position: absolute; top: calc(100% + 8px); left: 50%; transform: translate(-50%, 8px);
	background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg);
	opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s; z-index: 50;
}
.dropdown::before { content: ""; position: absolute; top: -12px; left: 0; right: 0; height: 12px; }
.has-dropdown:hover > .dropdown, .has-dropdown.open > .dropdown, .has-dropdown:focus-within > .dropdown { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.dropdown a { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 10px; color: var(--ink); font-size: .92rem; font-weight: 500; }
.dropdown a:hover { background: var(--bg-soft); color: var(--pink-600); }
.dropdown-grid { display: grid; grid-template-columns: repeat(2, minmax(190px, 1fr)); gap: 2px; width: 440px; }
.dropdown-grid img { width: 40px; height: 28px; object-fit: cover; border-radius: 6px; }
.dropdown-list { width: 290px; }
.dropdown-all { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 6px; }
.dropdown-all a { color: var(--pink-600); font-weight: 600; }

.nav-cta { display: flex; gap: 8px; }
.nav-cta .btn { padding: .6em 1.1em; font-size: .88rem; }

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

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
	position: relative; overflow: hidden;
	min-height: 640px; display: flex; align-items: center;
	padding: 70px 0 90px;
	background:
		linear-gradient(90deg, rgba(255, 250, 247, .97) 0%, rgba(255, 250, 247, .88) 38%, rgba(255, 250, 247, .25) 62%, rgba(255, 250, 247, 0) 80%),
		var(--hero-bg) center right / cover no-repeat,
		linear-gradient(135deg, #ffe4ec, #e3f2ff);
}
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 80px; background: linear-gradient(to bottom, transparent, var(--bg)); pointer-events: none; }
.hero-inner { position: relative; z-index: 1; }
.hero-copy { max-width: 600px; }
.eyebrow { display: inline-block; padding: 7px 14px; border-radius: 999px; background: #fff; box-shadow: var(--shadow); font-size: .85rem; font-weight: 600; color: var(--ink); margin-bottom: 20px; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-lead { font-size: 1.12rem; color: var(--ink-2); max-width: 560px; }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 22px; }
.hero-buttons.center { justify-content: center; }

.cat-jump { display: flex; gap: 8px; max-width: 460px; background: #fff; padding: 6px; border-radius: 999px; box-shadow: var(--shadow); }
.cat-jump select {
	flex: 1; min-width: 0; border: 0; background: transparent; padding: 0 16px; color: var(--ink); font-weight: 500; cursor: pointer;
	appearance: none; -webkit-appearance: none;
	background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
	background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat;
}
.cat-jump select:focus { outline: none; }
.hero-chips { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.hero-chips li { padding: 5px 12px; border-radius: 999px; font-size: .82rem; font-weight: 600; background: rgba(255, 255, 255, .8); color: var(--ink-2); border: 1px solid var(--line); }

/* ==========================================================================
   Sections
   ========================================================================== */
.section { padding: 80px 0; }
.section-tight { padding: 40px 0 80px; }
.section-soft { background: linear-gradient(180deg, rgba(246, 244, 255, .8), rgba(255, 244, 248, .6)); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 44px; }
.section-head p { color: var(--muted); }
.kicker { display: inline-block; font-family: var(--font-head); font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--pink-600); margin-bottom: 10px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }

/* Category grid */
.cat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.cat-card {
	position: relative; display: flex; flex-direction: column;
	background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
	box-shadow: var(--shadow); color: var(--ink); transition: transform .25s, box-shadow .25s;
}
.cat-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); color: var(--ink); }
.cat-img { display: block; background: var(--tint, #fff0f5); aspect-ratio: 16 / 11; overflow: hidden; }
.cat-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.cat-card:hover .cat-img img { transform: scale(1.06); }
.cat-body { padding: 14px 16px 18px; display: flex; flex-direction: column; }
.cat-body strong { font-family: var(--font-head); font-size: 1.05rem; }
.cat-body small { color: var(--muted); font-size: .85rem; line-height: 1.45; }
.cat-arrow { position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: var(--shadow); font-weight: 700; color: var(--pink-600); transition: transform .25s; }
.cat-card:hover .cat-arrow { transform: rotate(-45deg); }
.cat-card-all { background: var(--grad); border: 0; justify-content: center; align-items: center; text-align: center; padding: 24px; min-height: 220px; }
.cat-card-all .cat-all-inner { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.cat-card-all strong { font-family: var(--font-head); font-size: 1.25rem; color: #fff; }
.cat-card-all small { color: rgba(255, 255, 255, .9); margin-bottom: 8px; }
.cat-card-all .btn { background: #fff; color: var(--pink-600); box-shadow: none; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: none; }
.steps li { background: #fff; border-radius: var(--radius); padding: 28px 22px; border: 1px solid var(--line); box-shadow: var(--shadow); text-align: center; }
.steps p { color: var(--muted); font-size: .95rem; margin: 0; }
.step-num { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 16px; background: var(--grad); color: #fff; font-family: var(--font-head); font-weight: 800; font-size: 1.2rem; margin-bottom: 14px; box-shadow: 0 8px 18px rgba(255, 122, 162, .35); }
.steps li:nth-child(2) .step-num { background: var(--grad-cool); box-shadow: 0 8px 18px rgba(108, 184, 255, .35); }
.steps li:nth-child(3) .step-num { background: linear-gradient(135deg, #5fd3a8, #6cb8ff); box-shadow: 0 8px 18px rgba(95, 211, 168, .35); }
.steps li:nth-child(4) .step-num { background: linear-gradient(135deg, #ffd166, #ff9f7a); box-shadow: 0 8px 18px rgba(255, 209, 102, .4); }

/* Article layout */
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 32px; align-items: start; }
.article-card { padding: clamp(22px, 4vw, 48px); }
.article-title { font-size: clamp(1.6rem, 3vw, 2.3rem); }
.article-meta { color: var(--muted); font-size: .9rem; margin-bottom: 1.6em; }
.sidebar { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 20px; }
.sidebar .card { padding: 22px; }
.sidebar h3 { font-size: 1.02rem; margin-bottom: .7em; }
.sidebar p { font-size: .92rem; color: var(--muted); margin-bottom: .4em; }
.sidebar ul, .toc-list { list-style: none; padding: 0; margin: 0; }
.sidebar li a { display: block; padding: 6px 0; font-size: .92rem; color: var(--ink-2); border-bottom: 1px dashed var(--line); }
.sidebar li:last-child a { border-bottom: 0; }
.sidebar li a:hover { color: var(--pink-600); }
.side-cta { background: linear-gradient(160deg, #fff 0%, #fff1f6 100%); }
.toc-card:not(.has-items) { display: none; }
.toc-list a.active { color: var(--pink-600); font-weight: 600; }

/* Entry content typography */
.entry-content h2 { margin-top: 1.8em; font-size: clamp(1.35rem, 2.4vw, 1.7rem); position: relative; padding-left: 16px; scroll-margin-top: 100px; }
.entry-content h2::before { content: ""; position: absolute; left: 0; top: .2em; bottom: .2em; width: 5px; border-radius: 4px; background: var(--grad); }
.entry-content h2.article-title { padding-left: 0; margin-top: 0; }
.entry-content h2.article-title::before { display: none; }
.entry-content h3 { margin-top: 1.4em; scroll-margin-top: 100px; }
.entry-content a { text-decoration: underline; text-decoration-color: rgba(242, 85, 127, .35); text-underline-offset: 3px; }
.entry-content a:hover { text-decoration-color: currentColor; }
.entry-content a.btn { text-decoration: none; }
.entry-content ul li, .entry-content ol li { margin-bottom: .45em; }
.entry-content ul li::marker { color: var(--pink); }
.entry-content ol li::marker { color: var(--pink-600); font-weight: 700; }
.entry-content strong { color: var(--ink); }
.entry-content blockquote { margin: 1.5em 0; padding: 16px 22px; border-left: 4px solid var(--sky); background: #f1f8ff; border-radius: 0 12px 12px 0; }
.entry-content img { border-radius: var(--radius-sm); }
.entry-content table { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: .95rem; }
.entry-content th, .entry-content td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; }
.entry-content th { background: var(--bg-soft); color: var(--ink); }
.tip-box { padding: 18px 22px; border-radius: var(--radius-sm); background: #fff8e6; border: 1px solid #ffe3a3; margin: 1.5em 0; }

/* Guide cards */
.guide-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.guide-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s; }
.guide-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.guide-card h3, .guide-card .h3 { font-size: 1.08rem; margin: 12px 0 8px; }
.guide-card h3 a, .guide-card .h3 a { color: var(--ink); }
.guide-card h3 a:hover, .guide-card .h3 a:hover { color: var(--pink-600); }
.guide-card p { font-size: .93rem; color: var(--muted); flex: 1; }
.read-more { font-family: var(--font-head); font-weight: 600; font-size: .9rem; }
.guide-tag { align-self: flex-start; display: inline-block; padding: 4px 11px; border-radius: 999px; font-size: .75rem; font-weight: 700; letter-spacing: .03em; background: #ffe4ec; color: #d63d6b; }
.tag-1 { background: #e3f2ff; color: #2a7fd4; }
.tag-2 { background: #e5f8ee; color: #1f9c6c; }
.tag-3 { background: #fff4d6; color: #b07d00; }
.tag-4 { background: #efe7ff; color: #7650d8; }
.tag-5 { background: #ffe9dc; color: #d4652a; }

/* FAQ */
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 12px; box-shadow: var(--shadow); overflow: hidden; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 54px 18px 22px; font-family: var(--font-head); font-weight: 600; color: var(--ink); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border-radius: 50%; background: #fff0f5; color: var(--pink-600); display: grid; place-items: center; font-size: 1.2rem; transition: transform .2s; }
.faq details[open] summary::after { content: "\2013"; }
.faq details p { padding: 0 22px 18px; margin: 0; color: var(--ink-2); }

/* CTA band */
.cta-band { padding: 0 0 70px; }
.cta-inner { background: var(--grad); border-radius: 28px; padding: 44px clamp(22px, 5vw, 56px); display: flex; align-items: center; justify-content: space-between; gap: 28px; color: #fff; box-shadow: 0 20px 50px rgba(255, 122, 162, .35); position: relative; overflow: hidden; }
.cta-inner::before { content: ""; position: absolute; width: 300px; height: 300px; border-radius: 50%; background: rgba(255, 255, 255, .15); right: -80px; top: -120px; }
.cta-inner h2 { color: #fff; margin-bottom: .3em; }
.cta-inner p { margin: 0; color: rgba(255, 255, 255, .92); }
.cta-buttons { display: flex; gap: 12px; flex-wrap: wrap; position: relative; }

/* Single post */
.post-hero { padding: 54px 0 34px; }
.post-hero h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
.breadcrumbs { font-size: .88rem; color: var(--muted); margin-bottom: 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.breadcrumbs a { color: var(--ink-2); }
.breadcrumbs a:hover { color: var(--pink-600); }
.page-main .article-layout { padding-bottom: 80px; }
.post-thumb { margin: 0 0 1.6em; }
.post-cta { margin-top: 2.4em; padding: 24px; border-radius: var(--radius); background: linear-gradient(135deg, #fff1f6, #eef6ff); }
.post-cta p { margin-bottom: .9em; }
.post-cta-buttons { display: flex; gap: 10px; flex-wrap: wrap; }
.related { margin-top: 2.4em; }
.related h2 { padding-left: 0; font-size: 1.3rem; }
.related h2::before { display: none; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.entry-content .related-card { display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: #fff; color: var(--ink); text-decoration: none; transition: transform .2s, box-shadow .2s; }
.entry-content .related-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: var(--pink-600); }
.related-card strong { font-family: var(--font-head); font-size: .95rem; line-height: 1.35; }
.post-nav { display: flex; justify-content: space-between; gap: 16px; margin-top: 2em; padding-top: 1.4em; border-top: 1px solid var(--line); font-family: var(--font-head); font-weight: 600; font-size: .92rem; }
.entry-content .post-nav a { text-decoration: none; }

.pagination { margin-top: 36px; text-align: center; }
.pagination .page-numbers { display: inline-grid; place-items: center; min-width: 40px; height: 40px; margin: 0 3px; padding: 0 10px; border-radius: 12px; background: #fff; border: 1px solid var(--line); color: var(--ink); }
.pagination .current { background: var(--grad); color: #fff; border-color: transparent; }
.empty { padding: 30px; text-align: center; }
.search-form { display: flex; gap: 8px; justify-content: center; }
.search-form input[type="search"] { padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line); min-width: 0; }
.search-form input[type="submit"] { padding: 10px 18px; border-radius: 999px; border: 0; background: var(--ink); color: #fff; cursor: pointer; }

/* Footer */
.site-footer { background: #1f2440; color: #c9cce0; padding: 64px 0 24px; font-size: .94rem; }
.site-footer .brand-text { color: #fff; }
.site-footer h3 { color: #fff; font-size: 1rem; margin-bottom: 1em; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; }
.footer-about p { margin: 16px 0 18px; max-width: 360px; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links.two-col { columns: 2; column-gap: 20px; }
.footer-links li { margin-bottom: 8px; break-inside: avoid; }
.footer-links a, .site-footer a { color: #c9cce0; }
.footer-links a:hover, .site-footer a:hover { color: var(--pink); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 44px; padding-top: 22px; font-size: .84rem; color: #9093ad; }
.footer-bottom p { margin: 0 0 6px; }
.footer-menu { list-style: none; padding: 0; margin: 10px 0 0; display: flex; flex-wrap: wrap; gap: 16px; }

.back-to-top { position: fixed; right: 18px; bottom: 18px; width: 46px; height: 46px; border-radius: 50%; background: var(--grad); color: #fff; display: grid; place-items: center; font-weight: 700; box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(10px); transition: all .25s; z-index: 90; }
.back-to-top.show { opacity: 1; visibility: visible; transform: none; }
.back-to-top:hover { color: #fff; }

/* WordPress core classes */
.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-caption-text, figcaption { font-size: .85rem; color: var(--muted); text-align: center; }
.sticky, .bypostauthor, .gallery-caption { }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
	.nav-cta .btn-ghost { display: none; }
	.cat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 980px) {
	.nav-toggle { display: flex; }
	.primary-nav {
		position: fixed; top: 72px; left: 0; right: 0; bottom: 0;
		flex-direction: column; align-items: stretch; gap: 16px;
		background: #fff; padding: 18px 16px 30px; overflow-y: auto;
		transform: translateX(100%); transition: transform .3s; visibility: hidden;
	}
	.admin-bar .primary-nav { top: 118px; }
	.nav-open .primary-nav { transform: none; visibility: visible; }
	.nav-open { overflow: hidden; }
	.menu { flex-direction: column; align-items: stretch; gap: 2px; }
	.menu > li > a, .dropdown-toggle { width: 100%; justify-content: space-between; padding: 14px 12px; border-radius: 12px; font-size: 1.02rem; }
	.dropdown { position: static; transform: none; opacity: 1; visibility: visible; box-shadow: none; border: 0; padding: 0 0 8px 8px; display: none; width: auto; }
	.has-dropdown:hover > .dropdown, .has-dropdown:focus-within > .dropdown { transform: none; }
	.has-dropdown.open > .dropdown { display: block; transform: none; }
	.dropdown-grid { grid-template-columns: 1fr 1fr; width: auto; }
	.has-dropdown.open > .dropdown-grid { display: grid; }
	.nav-cta { flex-direction: column; }
	.nav-cta .btn, .nav-cta .btn-ghost { display: flex; padding: .9em; font-size: 1rem; }

	.article-layout { grid-template-columns: 1fr; }
	.sidebar { position: static; }
	.toc-card { display: none !important; }
	.steps { grid-template-columns: repeat(2, 1fr); }
	.guide-grid { grid-template-columns: repeat(2, 1fr); }
	.footer-grid { grid-template-columns: 1fr 1fr; }
	.footer-about { grid-column: 1 / -1; }
	.hero { min-height: 0; padding: 50px 0 300px; background:
		linear-gradient(180deg, rgba(255, 250, 247, .97) 0%, rgba(255, 250, 247, .9) 55%, rgba(255, 250, 247, 0) 78%),
		var(--hero-bg) 80% bottom / 190% auto no-repeat,
		linear-gradient(135deg, #ffe4ec, #e3f2ff); }
}

@media (max-width: 782px) {
	.admin-bar .site-header { top: 46px; }
	.admin-bar .primary-nav { top: 118px; }
}

@media (max-width: 680px) {
	body { font-size: 16px; }
	.section { padding: 56px 0; }
	.cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
	.cat-body { padding: 10px 12px 14px; }
	.cat-body small { display: none; }
	.cat-arrow { width: 28px; height: 28px; top: 8px; right: 8px; font-size: .85rem; }
	.cat-card-all { min-height: 0; }
	.guide-grid, .related-grid { grid-template-columns: 1fr; }
	.steps { grid-template-columns: 1fr 1fr; gap: 12px; }
	.steps li { padding: 20px 14px; }
	.cta-inner { flex-direction: column; align-items: flex-start; }
	.footer-grid { grid-template-columns: 1fr; }
	.hero-buttons .btn { flex: 1; }
	.hero { padding-bottom: 240px; }
	.brand-text { font-size: 1rem; }
}

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