/*
Theme Name: Hipobuy Dispatch
Theme URI: https://sheetfinds.com/
Author: Hipobuy
Author URI: https://sheetfinds.com/
Description: 轻亮系导购 / SEO 主题。内置 hero 双 CTA 按钮、11 个商品分类下拉与分类卡片、1500 字首页长文版式、Guide 栏目归档与文章内链模块，适配 Rank Math SEO。
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: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hipobuy-dispatch
Tags: custom-colors, custom-logo, custom-menu, featured-images, translation-ready, blog
*/

/* =========================================================
   1. Tokens
   ========================================================= */
:root {
	--paper: #fffcf6;
	--card: #ffffff;
	--ink: #14151a;
	--ink-2: #565b68;
	--ink-3: #8b90a0;
	--line: #ece6da;
	--line-soft: #f4efe4;

	--coral: #9d2a8f;
	--coral-dark: #7a1f6f;
	--coral-soft: #f8e9f6;
	--mint: #1fa97f;
	--sky: #2f86d4;
	--butter: #e8a317;
	--lilac: #7a5ce0;
	--navy: #1b2436;

	--tone-mint: #e4f6ef;
	--tone-sky: #e6f1fb;
	--tone-butter: #fdf2d9;
	--tone-blush: #ffeae4;
	--tone-lilac: #eee9fd;
	--tone-rose: #ffe7ef;

	--r-xl: 28px;
	--r-lg: 22px;
	--r: 16px;
	--r-sm: 10px;

	--shadow-1: 0 1px 2px rgba(20, 21, 26, .04), 0 8px 22px rgba(20, 21, 26, .06);
	--shadow-2: 0 24px 48px -18px rgba(20, 21, 26, .22);
	--wrap: 1140px;

	--font: "Poppins", "Segoe UI", system-ui, -apple-system, "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
	--font-body: "Inter", "Segoe UI", system-ui, -apple-system, "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}

/* =========================================================
   2. Base
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }

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

body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--font-body);
	font-size: 17px;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

img, svg, video { max-width: 100%; height: auto; }
a { color: var(--coral-dark); text-decoration: none; }
a:hover { color: var(--coral); }
h1, h2, h3, h4, h5 { font-family: var(--font); color: var(--ink); line-height: 1.22; margin: 0 0 .5em; letter-spacing: -.015em; font-weight: 700; }
h1 { font-size: clamp(2rem, 4.4vw, 3.3rem); }
h2 { font-size: clamp(1.5rem, 2.8vw, 2.05rem); }
h3 { font-size: 1.22rem; }
p { margin: 0 0 1.15em; }
ul, ol { padding-left: 1.25em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: 20px; }
.wrap-narrow { max-width: 820px; margin-inline: auto; padding-inline: 20px; }
.screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
	height: 1px; width: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; word-wrap: normal !important;
}
.skip-link:focus {
	background: var(--ink); color: #fff; clip: auto; clip-path: none;
	height: auto; width: auto; left: 16px; top: 16px; padding: 12px 18px;
	z-index: 9999; border-radius: 8px;
}

/* =========================================================
   3. Buttons
   ========================================================= */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .5em;
	padding: 15px 28px; border-radius: 999px; border: 1px solid transparent;
	font-family: var(--font); font-weight: 600; font-size: .97rem; line-height: 1.2;
	cursor: pointer; text-align: center; text-decoration: none;
	transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
}
.btn-sm { padding: 11px 20px; font-size: .88rem; }
.btn-primary { background: var(--coral); color: #fff; box-shadow: 0 10px 22px -10px rgba(157, 42, 143, .85); }
.btn-primary:hover { background: var(--coral-dark); color: #fff; transform: translateY(-2px); box-shadow: 0 16px 26px -12px rgba(157, 42, 143, .9); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); box-shadow: var(--shadow-1); }
.btn-ghost:hover { color: var(--ink); border-color: #d8d0c0; transform: translateY(-2px); }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: #0f1521; color: #fff; transform: translateY(-2px); }
.btn-white { background: #fff; color: var(--ink); }
.btn-white:hover { color: var(--coral-dark); }
.btn-block { width: 100%; }

/* =========================================================
   4. Header / nav
   ========================================================= */
.site-header {
	position: sticky; top: 0; z-index: 80;
	background: rgba(255, 252, 246, .88);
	-webkit-backdrop-filter: saturate(180%) blur(14px);
	backdrop-filter: saturate(180%) blur(14px);
	border-bottom: 1px solid var(--line-soft);
}
.header-inner { display: flex; align-items: center; gap: 22px; min-height: 76px; }

.brand { display: inline-flex; align-items: center; gap: 11px; font-family: var(--font); font-weight: 700; font-size: 1.08rem; color: var(--ink); letter-spacing: -.02em; }
.brand:hover { color: var(--ink); }
.brand-mark {
	width: 38px; height: 38px; border-radius: 12px; flex: 0 0 38px;
	display: grid; place-items: center; color: #fff; font-size: 1.05rem; font-weight: 700;
	background: linear-gradient(135deg, var(--coral), #c45ab7 60%, #ecc6e7);
	box-shadow: 0 6px 16px -6px rgba(157, 42, 143, .9);
}
.brand-text small { display: block; font-family: var(--font-body); font-weight: 500; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.custom-logo { max-height: 46px; width: auto; }

.primary-nav { margin-left: auto; }
.nav-list { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-list > li { position: relative; }
.nav-list > li > a {
	display: inline-flex; align-items: center; gap: 6px;
	padding: 10px 14px; border-radius: 999px;
	font-family: var(--font); font-size: .93rem; font-weight: 500; color: var(--ink-2);
	transition: color .15s ease, background .15s ease;
}
.nav-list > li > a:hover, .nav-list > li.current-menu-item > a { color: var(--ink); background: #fff; box-shadow: var(--shadow-1); }

.caret { width: 7px; height: 7px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: rotate(45deg) translateY(-1px); opacity: .55; }

.sub-menu {
	position: absolute; left: 0; top: calc(100% + 10px);
	min-width: 234px; margin: 0; padding: 8px;
	list-style: none; background: #fff; border: 1px solid var(--line-soft);
	border-radius: var(--r); box-shadow: var(--shadow-2);
	opacity: 0; visibility: hidden; transform: translateY(6px);
	transition: opacity .16s ease, transform .16s ease, visibility .16s;
}
.sub-menu-wide { min-width: 520px; display: grid; grid-template-columns: 1fr 1fr; column-gap: 6px; }
.nav-list > li:hover > .sub-menu,
.nav-list > li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.sub-menu li a {
	display: block; padding: 9px 12px; border-radius: 9px;
	font-size: .88rem; color: var(--ink-2); line-height: 1.35;
}
.sub-menu li a:hover { background: var(--tone-blush); color: var(--coral-dark); }

.header-cta { margin-left: 6px; }

.nav-toggle {
	display: none; margin-left: auto; width: 44px; height: 44px;
	align-items: center; justify-content: center;
	background: #fff; border: 1px solid var(--line); border-radius: 12px; cursor: pointer;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
	display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; content: "";
	position: relative; transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }

/* =========================================================
   5. Hero
   ========================================================= */
.hero {
	position: relative; overflow: hidden;
	padding: clamp(46px, 7vw, 84px) 0 clamp(56px, 8vw, 96px);
	background:
		radial-gradient(58% 70% at 8% 6%, #fff2e8 0%, rgba(255, 242, 232, 0) 62%),
		radial-gradient(52% 64% at 96% 12%, #e8f6ff 0%, rgba(232, 246, 255, 0) 60%),
		radial-gradient(60% 60% at 62% 108%, #f2ecff 0%, rgba(242, 236, 255, 0) 60%),
		var(--paper);
}
.hero::before {
	content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
	background-image:
		linear-gradient(98deg, rgba(255, 252, 246, .97) 0%, rgba(255, 252, 246, .94) 36%, rgba(255, 252, 246, .76) 64%, rgba(255, 252, 246, .54) 100%),
		var(--hero-img, none);
	background-size: cover, cover;
	background-position: center, center;
	background-repeat: no-repeat;
}
.hero::after {
	content: ""; position: absolute; inset: 0; pointer-events: none;
	background-image: radial-gradient(rgba(20, 21, 26, .05) 1px, transparent 1px);
	background-size: 22px 22px; opacity: .5; mask-image: linear-gradient(180deg, #000 0%, transparent 78%);
}
.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 64px); align-items: center; }

.eyebrow {
	display: inline-flex; align-items: center; gap: 8px;
	margin: 0 0 18px; padding: 7px 14px; border-radius: 999px;
	background: #fff; border: 1px solid var(--line);
	font-family: var(--font); font-size: .78rem; font-weight: 600; letter-spacing: .04em; color: var(--ink-2);
	box-shadow: var(--shadow-1);
}
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 3px rgba(31, 169, 127, .16); }

.hero-copy h1 { margin-bottom: .35em; }
.hero-copy h1 span { position: relative; white-space: nowrap; }
.hero-copy h1 span::after {
	content: ""; position: absolute; left: -2px; right: -2px; bottom: .1em; height: .34em;
	background: linear-gradient(90deg, #f3d9ef, #fcf4fb); border-radius: 4px; z-index: -1;
}
.lede { font-size: 1.09rem; color: var(--ink-2); max-width: 34em; margin-bottom: 1.6em; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 26px; }
.hero-actions .btn { min-width: 178px; }

/* dropdown */
.cat-select { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px 18px; box-shadow: var(--shadow-1); max-width: 430px; }
.cat-select label { display: block; font-family: var(--font); font-size: .74rem; font-weight: 600; letter-spacing: .13em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 8px; }
.select-wrap { position: relative; }
.select-wrap::after {
	content: ""; position: absolute; right: 16px; top: 50%; width: 8px; height: 8px; margin-top: -6px;
	border-right: 2px solid var(--ink-2); border-bottom: 2px solid var(--ink-2); transform: rotate(45deg); pointer-events: none;
}
.cat-select select {
	-webkit-appearance: none; appearance: none;
	width: 100%; padding: 13px 42px 13px 15px; border-radius: 12px;
	border: 1px solid var(--line); background: var(--paper);
	font-family: var(--font); font-size: .96rem; font-weight: 500; color: var(--ink); cursor: pointer;
}
.cat-select select:focus { outline: 2px solid rgba(157, 42, 143, .35); outline-offset: 1px; }

.hero-stats { display: flex; flex-wrap: wrap; gap: 8px 26px; list-style: none; margin: 26px 0 0; padding: 0; }
.hero-stats li { font-size: .86rem; color: var(--ink-3); display: inline-flex; align-items: center; gap: 7px; }
.hero-stats li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--butter); }

/* hero visual */
.hero-visual { position: relative; min-height: 380px; display: grid; place-items: center; }
.hero-photo { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-lg); box-shadow: var(--shadow-2); display: block; }
.hero-visual .blob { position: absolute; border-radius: 50%; filter: blur(2px); z-index: 0; }
.blob-1 { width: 300px; height: 300px; left: -8%; top: 4%; background: radial-gradient(circle at 32% 28%, #ffe2cf, #ffd0b3); opacity: .85; }
.blob-2 { width: 250px; height: 250px; right: -6%; bottom: -4%; background: radial-gradient(circle at 40% 30%, #d9f2e8, #bfe8ff); opacity: .9; }
.blob-3 { width: 120px; height: 120px; right: 16%; top: -6%; background: #f3e6ff; opacity: .8; }

.sheet-card {
	position: relative; z-index: 3; width: min(100%, 400px);
	background: #fff; border-radius: var(--r-lg); border: 1px solid var(--line-soft);
	box-shadow: var(--shadow-2); overflow: hidden; transform: rotate(-2.2deg);
}
.sheet-top { display: flex; align-items: center; gap: 6px; padding: 14px 16px; border-bottom: 1px solid var(--line-soft); background: #fffdf9; }
.sheet-top .dot { width: 9px; height: 9px; border-radius: 50%; background: #ffbdb0; }
.sheet-top .dot:nth-child(2) { background: #ffd98a; }
.sheet-top .dot:nth-child(3) { background: #a9e6c9; }
.sheet-top p { margin: 0 0 0 8px; font-size: .76rem; font-weight: 600; color: var(--ink-3); letter-spacing: .02em; }

.sheet-rows { list-style: none; margin: 0; padding: 10px 12px; display: grid; gap: 8px; }
.sheet-rows li { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 11px; background: #fcfaf5; }
.sheet-rows .thumb { width: 34px; height: 34px; border-radius: 9px; flex: 0 0 34px; }
.sheet-rows .t1 { background: linear-gradient(135deg, #ffe0c9, #ffc7a3); }
.sheet-rows .t2 { background: linear-gradient(135deg, #d8eefb, #b9dcf5); }
.sheet-rows .t3 { background: linear-gradient(135deg, #dff3e8, #bfe6d3); }
.sheet-rows .t4 { background: linear-gradient(135deg, #ece4fb, #d9ccf6); }
.sheet-rows .meta { flex: 1; min-width: 0; line-height: 1.3; }
.sheet-rows .meta b { display: block; font-size: .8rem; font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sheet-rows .meta i { font-style: normal; font-size: .72rem; color: var(--ink-3); }
.sheet-rows em { font-style: normal; font-size: .68rem; font-weight: 700; color: var(--mint); background: #e3f7ef; padding: 4px 8px; border-radius: 999px; }
.sheet-foot { display: flex; justify-content: space-between; padding: 11px 16px; border-top: 1px solid var(--line-soft); font-size: .72rem; color: var(--ink-3); background: #fffdf9; }

.float-tag, .float-pill {
	position: absolute; z-index: 4; background: #fff; border-radius: 999px;
	box-shadow: var(--shadow-2); font-family: var(--font); font-weight: 700;
}
.float-tag { top: 12%; left: 2%; padding: 10px 16px; color: var(--coral); font-size: .92rem; transform: rotate(-8deg); }
.float-pill { bottom: 10%; right: 0; padding: 9px 15px; font-size: .78rem; color: var(--ink-2); font-weight: 600; transform: rotate(4deg); }

/* =========================================================
   6. Sections
   ========================================================= */
.section { padding: clamp(46px, 6vw, 76px) 0; }
.section-head { max-width: 660px; margin-bottom: 34px; }
.section-head h2 { margin-bottom: .35em; }
.section-head p { color: var(--ink-2); margin: 0; }
.section-cats { background: linear-gradient(180deg, #fff 0%, var(--paper) 100%); border-top: 1px solid var(--line-soft); }

.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(196px, 1fr)); gap: 16px; }
.cat-card {
	position: relative; display: flex; flex-direction: column; gap: 14px;
	padding: 20px 20px 18px; border-radius: var(--r-lg);
	background: var(--tone, #fff); border: 1px solid rgba(20, 21, 26, .05);
	color: var(--ink); text-decoration: none; overflow: hidden;
	transition: transform .2s ease, box-shadow .2s ease;
}
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); color: var(--ink); }
.cat-card .icon {
	width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center;
	background: rgba(255, 255, 255, .86); color: var(--accent, var(--ink)); box-shadow: 0 4px 12px rgba(20, 21, 26, .06);
}
.cat-card .icon svg { width: 30px; height: 30px; }
.cat-card .cat-name { font-family: var(--font); font-weight: 600; font-size: 1.03rem; line-height: 1.25; }
.cat-card .cat-desc { font-size: .8rem; color: var(--ink-2); margin: -8px 0 0; line-height: 1.4; }
.cat-card .cat-go { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 600; color: var(--ink-2); }
.cat-card .cat-go::after { content: "→"; transition: transform .2s ease; }
.cat-card:hover .cat-go::after { transform: translateX(4px); }
.cat-card.has-image { padding: 0; gap: 0; overflow: hidden; }
.cat-card .cat-thumb { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; background: #f3eee5; }
.cat-card .cat-body { display: flex; flex-direction: column; gap: 4px; }
.cat-card.has-image .cat-body { padding: 15px 17px 17px; }
.cat-card .cat-body .cat-desc { margin: 0; }
.cat-card .cat-body .cat-go { margin-top: 7px; }
.cat-card .cat-badge {
	position: absolute; top: 10px; left: 10px; width: 36px; height: 36px; border-radius: 12px;
	display: grid; place-items: center; background: rgba(255, 255, 255, .94);
	color: var(--accent, var(--ink)); box-shadow: 0 4px 12px rgba(20, 21, 26, .16);
}
.cat-card .cat-badge svg { width: 20px; height: 20px; }

/* =========================================================
   7. Article body
   ========================================================= */
.article-body { font-size: 1.05rem; color: #23262f; }
.article-body > * + * { margin-top: 1.15em; }
.article-body h2 { margin-top: 1.9em; font-size: clamp(1.42rem, 2.4vw, 1.78rem); scroll-margin-top: 96px; }
.article-body h3 { margin-top: 1.5em; font-size: 1.16rem; scroll-margin-top: 96px; }
.article-body ul, .article-body ol { padding-left: 1.3em; }
.article-body li { margin-bottom: .5em; }
.article-body li::marker { color: var(--coral); }
.article-body a { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; text-decoration-color: rgba(157, 42, 143, .35); }
.article-body a:hover { text-decoration-color: var(--coral); }
.article-body blockquote {
	margin: 1.6em 0; padding: 18px 22px; border-left: 4px solid var(--coral);
	background: #fff; border-radius: 0 var(--r) var(--r) 0; color: var(--ink-2); font-size: .98rem;
	box-shadow: var(--shadow-1);
}
.article-body blockquote p:last-child { margin-bottom: 0; }
.article-body table { width: 100%; border-collapse: collapse; font-size: .92rem; margin: 1.5em 0; background: #fff; border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow-1); }
.article-body th, .article-body td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line-soft); }
.article-body thead th { background: #fbf8f1; font-family: var(--font); font-size: .84rem; letter-spacing: .02em; text-transform: uppercase; color: var(--ink-2); }
.article-body tbody tr:last-child td { border-bottom: 0; }
.article-body figure { margin: 1.6em 0; }
.article-body figcaption { font-size: .82rem; color: var(--ink-3); text-align: center; margin-top: .6em; }
.article-body .answer-box {
	background: linear-gradient(160deg, #fdf9fc, #fdfbf4); border: 1px solid #f3d9ef;
	border-radius: var(--r); padding: 20px 22px; font-size: .98rem;
}
.article-body .answer-box strong { font-family: var(--font); color: var(--coral-dark); }
.article-body .toc { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 18px 22px; box-shadow: var(--shadow-1); }
.article-body .toc p { margin: 0 0 .5em; font-family: var(--font); font-weight: 600; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.article-body .toc ol { margin: 0; font-size: .93rem; }

.article-cta { margin-top: 2.2em; padding-top: 1.6em; border-top: 1px dashed var(--line); display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* =========================================================
   8. Post grid / cards
   ========================================================= */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px; }
.post-card {
	display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line-soft);
	border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-1);
	transition: transform .2s ease, box-shadow .2s ease;
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.post-card .card-thumb { aspect-ratio: 16 / 10; background: linear-gradient(135deg, #ffe9dd, #e7f3ff 55%, #efe7ff); display: grid; place-items: center; }
.post-card .card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-card .card-thumb span { font-family: var(--font); font-weight: 700; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(20, 21, 26, .35); }
.post-card .card-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.post-card .card-kicker { font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--coral); margin-bottom: 8px; }
.post-card h3 { font-size: 1.06rem; margin-bottom: .45em; }
.post-card h3 a { color: var(--ink); }
.post-card h3 a:hover { color: var(--coral-dark); }
.post-card p { font-size: .89rem; color: var(--ink-2); margin-bottom: 1em; }
.post-card .card-more { margin-top: auto; font-size: .82rem; font-weight: 600; color: var(--coral-dark); }

/* =========================================================
   9. CTA band
   ========================================================= */
.cta-band {
	margin: clamp(30px, 5vw, 60px) 0;
	padding: clamp(38px, 5vw, 60px) clamp(24px, 5vw, 56px);
	border-radius: var(--r-xl);
	background:
		radial-gradient(90% 130% at 100% 0%, #e3b0dc 0%, rgba(255, 176, 143, 0) 55%),
		linear-gradient(120deg, #9d2a8f 0%, #ad35a0 48%, #c45ab7 100%);
	color: #fff; text-align: center; box-shadow: 0 26px 50px -24px rgba(157, 42, 143, .8);
}
.cta-band h2 { color: #fff; margin-bottom: .3em; }
.cta-band p { color: rgba(255, 255, 255, .92); max-width: 40em; margin: 0 auto 1.6em; }
.cta-band .btn + .btn { margin-left: 10px; }

/* =========================================================
   10. Single / page
   ========================================================= */
.page-head { padding: clamp(38px, 5vw, 62px) 0 clamp(20px, 3vw, 30px); background: linear-gradient(180deg, #fffaf2, var(--paper)); border-bottom: 1px solid var(--line-soft); }
.breadcrumbs { font-size: .8rem; color: var(--ink-3); margin-bottom: 16px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.breadcrumbs a { color: var(--ink-3); }
.breadcrumbs a:hover { color: var(--coral-dark); }
.breadcrumbs span.sep { opacity: .5; }
.page-title { max-width: 20em; margin-bottom: .4em; }
.post-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: .82rem; color: var(--ink-3); list-style: none; margin: 0; padding: 0; }
.post-meta li { display: inline-flex; align-items: center; gap: 6px; }
.post-meta .pill { background: var(--coral-soft); color: var(--coral-dark); font-weight: 600; padding: 3px 10px; border-radius: 999px; }

.layout-single { display: grid; grid-template-columns: minmax(0, 1fr) 306px; gap: clamp(28px, 4vw, 52px); padding-block: clamp(32px, 4vw, 48px); }
.sidebar { display: flex; flex-direction: column; gap: 20px; position: sticky; top: 96px; align-self: start; }
.widget { background: #fff; border: 1px solid var(--line-soft); border-radius: var(--r-lg); padding: 22px; box-shadow: var(--shadow-1); }
.widget h2, .widget h3 { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 14px; }
.widget ul { list-style: none; margin: 0; padding: 0; font-size: .9rem; }
.widget ul li { padding: 7px 0; border-bottom: 1px dashed var(--line-soft); }
.widget ul li:last-child { border-bottom: 0; }
.widget ul a { color: var(--ink-2); }
.widget ul a:hover { color: var(--coral-dark); }
.widget-cta { background: linear-gradient(150deg, #1b2436, #2b3a55); color: #fff; border: 0; }
.widget-cta h2, .widget-cta h3 { color: rgba(255, 255, 255, .72); }
.widget-cta p { color: rgba(255, 255, 255, .82); font-size: .9rem; }

.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 34px; }
.post-nav a { display: block; padding: 16px 18px; border-radius: var(--r); background: #fff; border: 1px solid var(--line-soft); box-shadow: var(--shadow-1); color: var(--ink-2); font-size: .86rem; }
.post-nav a:hover { color: var(--coral-dark); }
.post-nav .label { display: block; font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 4px; }
.post-nav .next { text-align: right; }

/* =========================================================
   11. Archive / listing
   ========================================================= */
.archive-list { display: grid; gap: 18px; padding-block: 40px; }
.archive-item { display: grid; grid-template-columns: 132px 1fr; gap: 20px; background: #fff; border: 1px solid var(--line-soft); border-radius: var(--r-lg); padding: 16px; box-shadow: var(--shadow-1); }
.archive-item .thumb { border-radius: var(--r); background: linear-gradient(135deg, #ffe9dd, #e7f3ff); aspect-ratio: 1 / 1; }
.archive-item h3 { font-size: 1.05rem; margin-bottom: .35em; }
.archive-item h3 a { color: var(--ink); }
.archive-item p { font-size: .88rem; color: var(--ink-2); margin: 0; }

/* =========================================================
   12. Footer
   ========================================================= */
.site-footer { background: #12141b; color: rgba(255, 255, 255, .68); padding: clamp(44px, 6vw, 68px) 0 26px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px; }
.site-footer .brand { color: #fff; }
.site-footer .brand-text small { color: rgba(255, 255, 255, .45); }
.site-footer h3 { color: #fff; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; font-size: .88rem; }
.site-footer ul li { margin-bottom: 9px; }
.site-footer a { color: rgba(255, 255, 255, .68); }
.site-footer a:hover { color: #fff; }
.footer-about p { font-size: .88rem; max-width: 26em; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 38px; padding-top: 20px; display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; font-size: .78rem; color: rgba(255, 255, 255, .45); }
.disclosure { font-size: .76rem; color: var(--ink-3); background: #fff; border: 1px dashed var(--line); border-radius: 12px; padding: 12px 16px; margin-top: 22px; }

/* =========================================================
   13. Utility
   ========================================================= */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.alignwide { margin-left: auto; margin-right: auto; max-width: 1000px; }
.alignfull { width: 100vw; margin-left: calc(50% - 50vw); max-width: 100vw; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: .8rem; color: var(--ink-3); text-align: center; }

/* =========================================================
   14. Responsive
   ========================================================= */
@media (max-width: 1024px) {
	.hero-grid { grid-template-columns: 1fr; }
	.hero-visual { min-height: 300px; order: 2; }
	.hero-copy { order: 1; }
	.layout-single { grid-template-columns: 1fr; }
	.sidebar { position: static; }
	.footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
	.nav-toggle { display: inline-flex; }
	.header-cta { display: none; }
	.primary-nav {
		position: absolute; left: 0; right: 0; top: 100%;
		background: #fff; border-bottom: 1px solid var(--line);
		padding: 10px 16px 18px; box-shadow: var(--shadow-2);
		display: none;
	}
	.primary-nav.is-open { display: block; }
	.nav-list { flex-direction: column; align-items: stretch; gap: 2px; }
	.nav-list > li > a { justify-content: space-between; padding: 12px 14px; border-radius: 12px; }
	.sub-menu {
		position: static; opacity: 1; visibility: visible; transform: none;
		box-shadow: none; border: 0; border-left: 2px solid var(--line);
		border-radius: 0; margin: 2px 0 8px 14px; padding: 0 0 0 10px;
		display: none; min-width: 0;
	}
	.sub-menu-wide { grid-template-columns: 1fr; }
	.nav-list > li.is-open > .sub-menu { display: block; }
}

@media (max-width: 640px) {
	body { font-size: 16px; }
	.section { padding: 40px 0; }
	.hero { padding-top: 34px; }
	.hero-visual { min-height: 260px; }
	.sheet-card { transform: none; }
	.cat-grid { grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); gap: 12px; }
	.cat-card { padding: 16px; }
	.hero-actions .btn { width: 100%; }
	.post-grid { grid-template-columns: 1fr; }
	.archive-item { grid-template-columns: 1fr; }
	.archive-item .thumb { display: none; }
	.post-nav { grid-template-columns: 1fr; }
	.cta-band .btn { width: 100%; }
	.cta-band .btn + .btn { margin: 10px 0 0; }
	.footer-grid { grid-template-columns: 1fr; gap: 24px; }
	.article-body table { font-size: .84rem; }
	.article-body th, .article-body td { padding: 10px; }
}

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

/* =========================================================
   15. Full-bleed advertising hero (courier delivery photo + copy)
   ========================================================= */
.hero.hero-ad {
	min-height: clamp(560px, 80vh, 780px);
	display: flex; align-items: center;
	padding: clamp(56px, 8vw, 110px) 0;
	background: #24142b;
	color: #fff;
}
.hero.hero-ad::before {
	background-image:
		linear-gradient(270deg, rgba(30, 18, 38, .45) 0%, rgba(30, 18, 38, .25) 45%, rgba(30, 18, 38, 0) 75%),
		var(--hero-img, none);
	background-size: cover, cover;
	background-position: center, 22% 50%;
}
.hero.hero-ad::after { display: none; }
.hero-ad-inner { position: relative; z-index: 2; width: 100%; }
.hero-ad .hero-copy {
	max-width: 580px;
	margin-left: auto;
	padding: clamp(24px, 3.2vw, 40px);
	border-radius: 24px;
	background: rgba(30, 18, 38, .58);
	border: 1px solid rgba(255, 255, 255, .22);
	-webkit-backdrop-filter: blur(12px) saturate(1.1); backdrop-filter: blur(12px) saturate(1.1);
	box-shadow: 0 24px 60px -28px rgba(0, 0, 0, .6);
}
.hero-ad .eyebrow { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .28); color: #fff; box-shadow: none; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.hero-ad .eyebrow::before { background: #ffd666; box-shadow: 0 0 0 3px rgba(255, 214, 102, .25); }
.hero-ad h1 { color: #fff; text-shadow: 0 2px 18px rgba(0, 0, 0, .25); }
.hero-ad h1 span::after { background: linear-gradient(90deg, rgba(157, 42, 143, .85), rgba(255, 214, 102, .7)); }
.hero-ad .lede { color: rgba(255, 255, 255, .9); }
.hero-points { list-style: none; margin: 0 0 26px; padding: 0; display: grid; gap: 10px; }
.hero-points li { position: relative; padding-left: 32px; font-weight: 500; color: #fff; }
.hero-points li::before {
	content: "✓"; position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 50%;
	display: grid; place-items: center; font-size: .78rem; font-weight: 700;
	background: #ad35a0; color: #fff;
}
.hero-ad .btn-ghost { background: rgba(255, 255, 255, .94); }
.hero-ad .cat-select { background: rgba(255, 255, 255, .96); }

@media (max-width: 860px) {
	.hero.hero-ad { min-height: 0; }
	.hero-ad .hero-copy { padding: 22px 18px; border-radius: 18px; }
	.hero.hero-ad::before {
		background-image:
			linear-gradient(180deg, rgba(30, 18, 38, .35) 0%, rgba(30, 18, 38, .55) 100%),
			var(--hero-img, none);
		background-position: center, 28% center;
	}
}

/* =========================================================
   16. Hero brand mark (text + CSS only, no image files)
   ========================================================= */
.hero-brand {
	position: absolute; top: 0; left: 20px; right: auto; z-index: 3;
	display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 4px 14px;
	max-width: 340px; padding: 18px 22px 16px;
	border-radius: 20px;
	background: rgba(30, 18, 38, .5);
	border: 1px solid rgba(255, 255, 255, .28);
	-webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
	box-shadow: 0 18px 40px -20px rgba(0, 0, 0, .55);
	color: #fff;
}
.hero-brand-mark {
	width: 54px; height: 54px; border-radius: 15px;
	display: grid; place-items: center;
	font-family: var(--font); font-weight: 700; font-size: 1.7rem; line-height: 1;
	color: #fff;
	background: linear-gradient(135deg, #9d2a8f 0%, #ffcc33 55%, #ffd666 100%);
	box-shadow: 0 8px 20px -8px rgba(157, 42, 143, .9);
}
.hero-brand-name { display: flex; flex-direction: column; line-height: 1.1; }
.hero-brand-name strong { font-family: var(--font); font-size: 1.32rem; font-weight: 700; letter-spacing: .14em; color: #fff; }
.hero-brand-name em { font-style: normal; font-family: var(--font); font-size: .78rem; font-weight: 600; letter-spacing: .36em; color: #fff0c2; margin-top: 4px; }
.hero-brand-tag {
	grid-column: 1 / -1; margin: 10px 0 0; padding-top: 10px;
	border-top: 1px solid rgba(255, 255, 255, .22);
	font-size: .88rem; font-weight: 500; color: rgba(255, 255, 255, .94); letter-spacing: .01em;
}

@media (max-width: 1180px) {
	.hero-brand { position: static; display: inline-grid; margin: 0 0 22px; max-width: 100%; }
}
@media (max-width: 640px) {
	.hero-brand { padding: 14px 16px 12px; gap: 2px 12px; }
	.hero-brand-mark { width: 44px; height: 44px; font-size: 1.35rem; border-radius: 12px; }
	.hero-brand-name strong { font-size: 1.1rem; }
}