/* ==========================================================================
   AI Wedding Inspiration — Editorial Theme Overrides
   Premium white / gold / charcoal palette
   ========================================================================== */

:root {
	--aiw-bg: #f9f6f1;
	--aiw-surface: #ffffff;
	--aiw-surface-warm: #faf6ef;
	--aiw-text: #2b2622;
	--aiw-text-soft: #56504a;
	--aiw-muted: #8a8179;
	--aiw-gold: #b8944e;
	--aiw-gold-deep: #946f2d;
	--aiw-gold-pale: #e8dcc6;
	--aiw-border: rgba(184, 148, 78, 0.16);
	--aiw-shadow-sm: 0 4px 20px rgba(43, 38, 34, 0.05);
	--aiw-shadow-md: 0 16px 48px rgba(43, 38, 34, 0.08);
	--aiw-shadow-lg: 0 32px 80px rgba(43, 38, 34, 0.10);
	--aiw-radius: 24px;
	--aiw-font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
	--aiw-font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ---------- Reset & Globals ---------- */

body {
	background: var(--aiw-bg) !important;
	color: var(--aiw-text);
	font-family: var(--aiw-font-body) !important;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--aiw-font-heading) !important;
	color: var(--aiw-text);
	font-weight: 600;
}

a { color: var(--aiw-gold-deep); }
a:hover { color: var(--aiw-gold); }

/* ---------- Site Header ---------- */

#site-header {
	background: var(--aiw-surface) !important;
	box-shadow: var(--aiw-shadow-sm) !important;
	padding: 0 !important;
	position: relative;
	z-index: 100;
}

#site-header > .container {
	max-width: 1140px;
	margin: 0 auto;
	padding: 22px 28px 14px;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.site-branding {
	min-height: auto !important;
	padding: 0 !important;
	max-width: none !important;
	flex-shrink: 0;
}

.site-branding h1,
.site-branding h2 {
	margin: 0 !important;
}

#logo a,
.site-title a {
	font-family: var(--aiw-font-heading) !important;
	font-size: clamp(1.5rem, 2.2vw, 2rem) !important;
	font-weight: 700;
	letter-spacing: -0.01em;
	color: var(--aiw-text) !important;
	text-decoration: none !important;
}

.site-description {
	margin: 2px 0 0 !important;
	color: var(--aiw-muted) !important;
	font-family: var(--aiw-font-body) !important;
	font-size: 11px !important;
	font-weight: 600;
	letter-spacing: 0.18em;
	text-transform: uppercase;
}

.widget-header { display: none !important; }

/* Nav bar */
.primary-navigation {
	background: transparent !important;
	margin: 0;
	border-top: 1px solid var(--aiw-border);
}

.primary-navigation > .container {
	max-width: 1140px;
	margin: 0 auto;
	padding: 0 28px;
}

#navigation {
	display: flex;
	justify-content: flex-end;
}

#navigation .menu,
#navigation ul.wedding-fallback-menu {
	display: flex;
	align-items: center;
	gap: 0;
	list-style: none;
	margin: 0;
	padding: 0;
}

#navigation ul li {
	float: none;
}

#navigation a {
	display: block;
	color: var(--aiw-text-soft) !important;
	font-family: var(--aiw-font-body) !important;
	font-size: 11.5px;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	padding: 0 18px;
	line-height: 48px;
	border-bottom: 2px solid transparent;
	transition: color 0.2s, border-color 0.2s;
}

#navigation a:hover,
#navigation li.current-menu-item > a,
#navigation li.current_page_item > a {
	color: var(--aiw-gold) !important;
	border-bottom-color: var(--aiw-gold);
}

/* ---------- Hero (Featured Image) ---------- */

.aiw-hero {
	position: relative;
	width: 100%;
	min-height: 52vh;
	max-height: 600px;
	background-size: cover;
	background-position: center 30%;
	display: flex;
	align-items: flex-end;
	overflow: hidden;
}

.aiw-hero__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		to top,
		rgba(30, 26, 22, 0.82) 0%,
		rgba(30, 26, 22, 0.35) 50%,
		rgba(30, 26, 22, 0.08) 100%
	);
}

.aiw-hero__content {
	position: relative;
	z-index: 2;
	max-width: 820px;
	margin: 0 auto;
	padding: 0 32px 56px;
	width: 100%;
	text-align: center;
}

.aiw-hero__title {
	font-family: var(--aiw-font-heading) !important;
	font-size: clamp(2.2rem, 5vw, 3.8rem) !important;
	font-weight: 700;
	line-height: 1.12;
	letter-spacing: -0.02em;
	color: #fff !important;
	margin: 16px 0 0;
	text-shadow: 0 2px 24px rgba(0, 0, 0, 0.25);
	text-wrap: balance;
}

.aiw-hero__meta {
	margin-top: 18px;
	color: rgba(255, 255, 255, 0.72);
	font-family: var(--aiw-font-body);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.aiw-sep {
	margin: 0 6px;
	opacity: 0.5;
}

/* ---------- Kicker (shared hero + article) ---------- */

.aiw-kicker {
	display: inline-flex;
	align-items: center;
	padding: 6px 18px;
	border-radius: 999px;
	border: 1px solid rgba(184, 148, 78, 0.3);
	background: rgba(232, 220, 198, 0.3);
	color: var(--aiw-gold);
	font-family: var(--aiw-font-body);
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	backdrop-filter: blur(6px);
}

.aiw-hero .aiw-kicker {
	background: rgba(255, 255, 255, 0.12);
	border-color: rgba(255, 255, 255, 0.22);
	color: var(--aiw-gold-pale);
}

/* ---------- Single/Page Wrap ---------- */

.aiw-single-wrap {
	padding: 50px 0 80px;
	min-height: auto;
	float: none !important;
}

.aiw-container {
	max-width: 820px;
	margin: 0 auto;
	padding: 0 24px;
}

/* ---------- Article Card ---------- */

.aiw-article {
	background: var(--aiw-surface);
	border: 1px solid var(--aiw-border);
	border-radius: var(--aiw-radius);
	box-shadow: var(--aiw-shadow-md);
	padding: clamp(32px, 5vw, 60px);
	position: relative;
	overflow: hidden;
	width: 100% !important;
	max-width: 100% !important;
	float: none !important;
}

.aiw-article::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 4px;
	background: linear-gradient(90deg, var(--aiw-gold-pale) 0%, var(--aiw-gold) 50%, var(--aiw-gold-pale) 100%);
}

/* When hero is present, pull card up for overlap effect */
.aiw-hero + .aiw-single-wrap {
	padding-top: 0;
	margin-top: -40px;
	position: relative;
	z-index: 10;
}

.aiw-hero + .aiw-single-wrap .aiw-article {
	border-top-left-radius: var(--aiw-radius);
	border-top-right-radius: var(--aiw-radius);
}

/* ---------- Article Header (no hero fallback) ---------- */

.aiw-article__header {
	text-align: center;
	margin-bottom: 36px;
	padding-bottom: 28px;
	border-bottom: 1px solid var(--aiw-border);
}

.aiw-article__title {
	font-family: var(--aiw-font-heading) !important;
	font-size: clamp(2rem, 4.5vw, 3.2rem) !important;
	line-height: 1.12;
	letter-spacing: -0.02em;
	margin: 18px 0 0;
	color: var(--aiw-text);
	text-wrap: balance;
}

.aiw-article__meta {
	margin-top: 18px;
	color: var(--aiw-muted);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

/* ---------- Article Body ---------- */

.aiw-article__body {
	font-size: 17.5px;
	line-height: 1.85;
	color: var(--aiw-text);
}

.aiw-article__body > *:first-child {
	margin-top: 0;
}

.aiw-article__body p {
	margin: 0 0 1.4em;
	color: var(--aiw-text);
}

.aiw-article__body h2 {
	font-size: clamp(1.5rem, 3vw, 2.1rem);
	margin: 2.4em 0 0.7em;
	padding-bottom: 10px;
	position: relative;
}

.aiw-article__body h2::after {
	content: "";
	display: block;
	width: 56px;
	height: 3px;
	margin-top: 12px;
	background: linear-gradient(90deg, var(--aiw-gold), rgba(184, 148, 78, 0.15));
	border-radius: 999px;
}

.aiw-article__body h3 {
	font-size: clamp(1.2rem, 2.2vw, 1.55rem);
	margin: 2em 0 0.6em;
}

.aiw-article__body h4 {
	font-size: 1.1rem;
	margin: 1.8em 0 0.5em;
	letter-spacing: 0.04em;
}

.aiw-article__body ul {
	list-style: none;
	margin: 1.4em 0;
	padding: 0;
}

.aiw-article__body ul li {
	position: relative;
	padding-left: 1.5em;
	margin-bottom: 0.6em;
}

.aiw-article__body ul li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.78em;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--aiw-gold);
	box-shadow: 0 0 0 4px rgba(184, 148, 78, 0.12);
}

.aiw-article__body ol {
	margin: 1.4em 0 1.4em 1.2em;
	padding: 0;
}

.aiw-article__body ol li {
	margin-bottom: 0.6em;
	padding-left: 0.3em;
}

.aiw-article__body ol li::marker {
	color: var(--aiw-gold);
	font-weight: 700;
}

.aiw-article__body blockquote {
	margin: 2em 0;
	padding: 24px 28px;
	background: linear-gradient(135deg, rgba(184, 148, 78, 0.07), var(--aiw-surface-warm));
	border-left: 4px solid var(--aiw-gold);
	border-radius: 0 16px 16px 0;
	color: var(--aiw-text-soft);
	font-style: italic;
}

.aiw-article__body strong {
	color: var(--aiw-text);
	font-weight: 700;
}

.aiw-article__body hr,
.aiw-article__body .wp-block-separator {
	margin: 2.5em 0;
	border: 0;
	border-top: 1px solid var(--aiw-border);
}

.aiw-article__body img {
	border-radius: 16px;
	box-shadow: var(--aiw-shadow-sm);
}

.aiw-article__body .wp-block-image {
	margin: 2em 0;
}

.aiw-article__body a {
	color: var(--aiw-gold-deep);
	text-decoration: underline;
	text-decoration-color: rgba(184, 148, 78, 0.3);
	text-underline-offset: 3px;
	transition: text-decoration-color 0.2s;
}

.aiw-article__body a:hover {
	text-decoration-color: var(--aiw-gold);
}

/* ---------- Tags ---------- */

.aiw-article__tags {
	margin-top: 36px;
	padding-top: 24px;
	border-top: 1px solid var(--aiw-border);
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.aiw-article__tags a {
	display: inline-flex;
	padding: 6px 14px;
	border-radius: 999px;
	background: var(--aiw-surface-warm);
	border: 1px solid var(--aiw-border);
	color: var(--aiw-gold-deep) !important;
	font-size: 11.5px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-decoration: none !important;
	transition: background 0.2s, border-color 0.2s;
}

.aiw-article__tags a:hover {
	background: rgba(184, 148, 78, 0.12);
	border-color: var(--aiw-gold);
}

/* ---------- Comments ---------- */

#comments {
	margin-top: 44px;
	padding-top: 32px;
	border-top: 1px solid var(--aiw-border);
}

.comment-respond h4,
.total-comments {
	font-family: var(--aiw-font-heading) !important;
	font-size: 22px;
	font-weight: 600;
	color: var(--aiw-text);
}

.comment-respond h4:after,
.total-comments span:after {
	background: var(--aiw-gold) !important;
	width: 56px;
	margin: 8px auto 24px;
}

#commentform textarea,
input#author,
input#email,
input#url {
	border: 1px solid rgba(43, 38, 34, 0.12);
	border-radius: 12px;
	background: var(--aiw-surface);
	color: var(--aiw-text);
	padding: 14px 16px;
	font-family: var(--aiw-font-body);
	font-size: 15px;
	transition: border-color 0.2s;
}

#commentform textarea:focus,
input#author:focus,
input#email:focus,
input#url:focus {
	border-color: var(--aiw-gold);
	outline: none;
	box-shadow: 0 0 0 3px rgba(184, 148, 78, 0.12);
}

#commentform input#submit {
	background: linear-gradient(135deg, var(--aiw-gold), var(--aiw-gold-deep)) !important;
	border: none;
	border-radius: 999px;
	padding: 14px 36px;
	font-family: var(--aiw-font-body);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #fff;
	cursor: pointer;
	box-shadow: 0 8px 24px rgba(148, 111, 45, 0.2);
	transition: transform 0.15s, box-shadow 0.15s;
}

#commentform input#submit:hover {
	transform: translateY(-1px);
	box-shadow: 0 12px 32px rgba(148, 111, 45, 0.28);
}

/* ---------- Footer ---------- */

.aiw-footer,
footer#site-footer {
	background: #1e1b18 !important;
	border-top: 3px solid var(--aiw-gold) !important;
	padding: 0 !important;
}

.aiw-footer__inner {
	max-width: 1140px;
	margin: 0 auto;
	padding: 48px 28px 36px;
	text-align: center;
}

.aiw-footer__logo {
	display: block;
	font-family: var(--aiw-font-heading);
	font-size: 1.5rem;
	font-weight: 700;
	color: #f5efe6;
	letter-spacing: -0.01em;
}

.aiw-footer__tagline {
	margin: 6px 0 0;
	color: rgba(245, 239, 230, 0.5);
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 0.04em;
}

.aiw-footer__nav {
	margin: 28px 0 24px;
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 8px 24px;
}

.aiw-footer__nav a {
	color: rgba(245, 239, 230, 0.65) !important;
	font-size: 11.5px;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	text-decoration: none;
	transition: color 0.2s;
}

.aiw-footer__nav a:hover {
	color: var(--aiw-gold) !important;
}

.aiw-footer__copy {
	color: rgba(245, 239, 230, 0.35);
	font-size: 12px;
	letter-spacing: 0.02em;
}

.footer-widgets,
.footer-widget { display: none !important; }

/* ---------- Hide Magazine Leftovers ---------- */

.single .breadcrumb,
.single .related-posts,
.single .postauthor,
.single .sidebar.c-4-12,
.page .sidebar.c-4-12,
.aiw-article .breadcrumb,
.aiw-article .related-posts,
.aiw-article .postauthor {
	display: none !important;
}

/* Old feather layout pieces we don't want */
#page.single,
#page.aiw-single-wrap {
	float: none !important;
	min-height: auto !important;
}

/* ========== BLOG & ARCHIVE SECTION ========== */

/* Homepage Blog Section */
.blog-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
	gap: 28px;
	margin: 64px 0;
	padding: 0 24px;
	max-width: 1140px;
	margin-left: auto;
	margin-right: auto;
}

.blog-grid__title {
	grid-column: 1 / -1;
	font-family: var(--aiw-font-heading) !important;
	font-size: clamp(1.8rem, 4vw, 2.4rem) !important;
	font-weight: 700;
	color: var(--aiw-text);
	text-align: center;
	margin: 16px 0 32px;
	letter-spacing: -0.01em;
}

.blog-grid__subtitle {
	grid-column: 1 / -1;
	font-size: 15px;
	color: var(--aiw-muted);
	text-align: center;
	margin-bottom: 20px;
	line-height: 1.6;
}

.blog-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	background: var(--aiw-surface);
	border: 1px solid var(--aiw-border);
	border-radius: 16px;
	overflow: hidden;
	box-shadow: var(--aiw-shadow-sm);
	transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
	text-decoration: none;
}

.blog-card:hover {
	transform: translateY(-8px);
	box-shadow: var(--aiw-shadow-md);
	border-color: var(--aiw-gold);
}

.blog-card-img {
	width: 100%;
	height: 240px;
	object-fit: cover;
	display: block;
	background: var(--aiw-surface-warm);
	aspect-ratio: 16/9;
}

.blog-card-content {
	flex: 1;
	display: flex;
	flex-direction: column;
	padding: 24px;
}

.blog-card-meta {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 12px;
	font-size: 11.5px;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--aiw-gold);
}

.blog-card-date {
	color: var(--aiw-muted);
	font-size: 12px;
}

.blog-card-title {
	font-family: var(--aiw-font-heading) !important;
	font-size: clamp(1.2rem, 2vw, 1.4rem) !important;
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: -0.01em;
	color: var(--aiw-text);
	margin: 8px 0 12px;
	text-decoration: none;
	transition: color 0.2s;
}

.blog-card:hover .blog-card-title {
	color: var(--aiw-gold-deep);
}

.blog-card-excerpt {
	flex: 1;
	font-size: 14.5px;
	line-height: 1.65;
	color: var(--aiw-text-soft);
	margin-bottom: 14px;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.blog-card-link {
	align-self: flex-start;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--aiw-gold-deep) !important;
	font-weight: 600;
	font-size: 13px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	text-decoration: none !important;
	transition: gap 0.2s, color 0.2s;
}

.blog-card-link:hover {
	gap: 10px;
	color: var(--aiw-gold) !important;
}

.blog-card-link::after {
	content: "→";
	display: inline-block;
	font-size: 15px;
}

/* Archive Page Styling */
#page.home-page .postsby {
	font-family: var(--aiw-font-heading) !important;
	font-size: clamp(2rem, 5vw, 2.8rem) !important;
	font-weight: 700;
	letter-spacing: -0.01em;
	color: var(--aiw-text);
	margin: 32px 0 12px;
	text-align: center;
}

.arc-taxonomy-description {
	text-align: center;
	color: var(--aiw-text-soft);
	margin-bottom: 36px;
	font-size: 15px;
	line-height: 1.7;
}

#page.home-page #content {
	background: var(--aiw-surface);
	padding: 48px 24px;
	border-radius: 0;
}

#page.home-page .article {
	max-width: 1140px;
	margin: 0 auto;
}

/* Archive post item styling */
#page.home-page .feather-item-entry {
	background: var(--aiw-surface);
	border: 1px solid var(--aiw-border);
	border-radius: 12px;
	padding: 24px;
	margin-bottom: 24px;
	box-shadow: var(--aiw-shadow-sm);
	transition: all 0.25s ease;
	max-width: 100%;
}

#page.home-page .feather-item-entry:hover {
	border-color: var(--aiw-gold);
	box-shadow: var(--aiw-shadow-md);
	transform: translateY(-3px);
}

#page.home-page .feather-item-entry a {
	color: var(--aiw-gold-deep);
	text-decoration: none;
}

#page.home-page .feather-item-entry a:hover {
	text-decoration: underline;
	color: var(--aiw-gold);
}

#page.home-page .feather-item-entry h2 {
	font-family: var(--aiw-font-heading) !important;
	font-size: clamp(1.4rem, 2.5vw, 1.8rem) !important;
	font-weight: 600;
	margin: 0 0 12px;
	letter-spacing: -0.01em;
	color: var(--aiw-text);
}

#page.home-page .feather-item-entry .items-meta {
	display: flex;
	gap: 16px;
	font-size: 12px;
	color: var(--aiw-muted);
	margin-bottom: 14px;
	flex-wrap: wrap;
}

#page.home-page .feather-item-entry .items-meta span {
	display: flex;
	align-items: center;
	gap: 4px;
}

#page.home-page .feather-item-entry p {
	font-size: 15px;
	line-height: 1.7;
	color: var(--aiw-text-soft);
	margin: 12px 0;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

#page.home-page .feather-item-entry .read-more {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--aiw-gold-deep) !important;
	font-weight: 600;
	font-size: 12px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	text-decoration: none !important;
	transition: gap 0.2s;
	margin-top: 8px;
}

#page.home-page .feather-item-entry .read-more:hover {
	gap: 10px;
	color: var(--aiw-gold) !important;
}

#page.home-page .feather-item-entry .read-more::after {
	content: "→";
}

/* Featured image in archive posts */
#page.home-page .feather-item-entry .feature-image {
	width: 100%;
	max-width: 100%;
	height: auto;
	border-radius: 8px;
	margin-bottom: 20px;
	display: block;
	object-fit: cover;
}

/* Post navigation (pagination) */
.navigation.posts-navigation {
	margin-top: 48px;
	padding-top: 32px;
	border-top: 1px solid var(--aiw-border);
}

.nav-links {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	max-width: 1140px;
	margin: 0 auto;
	padding: 0 24px;
}

.nav-links a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 12px 20px;
	background: var(--aiw-surface-warm);
	border: 1px solid var(--aiw-border);
	border-radius: 8px;
	color: var(--aiw-gold-deep) !important;
	font-weight: 600;
	font-size: 13px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	text-decoration: none !important;
	transition: all 0.2s;
}

.nav-links a:hover {
	background: rgba(184, 148, 78, 0.12);
	border-color: var(--aiw-gold);
	color: var(--aiw-gold) !important;
}

.nav-links .prev::before { content: "← "; }
.nav-links .next::after { content: " →"; }

/* ---------- Mobile (Tablet) ---------- */

@media screen and (max-width: 865px) {
	#site-header > .container {
		flex-direction: column;
		align-items: flex-start;
		padding: 16px 20px 10px;
	}

	.site-branding {
		margin-bottom: 4px;
	}

	#navigation {
		display: block;
	}

	#navigation .menu,
	#navigation ul.wedding-fallback-menu {
		display: block !important;
	}

	#navigation.mobile-menu-wrapper {
		background: #262320;
	}

	#navigation ul li a,
	#navigation ul ul a {
		color: #f8f4ee !important;
		line-height: 44px;
		padding: 0 16px;
	}

	a#pull {
		color: var(--aiw-text);
		font-family: var(--aiw-font-body);
		font-weight: 600;
		letter-spacing: 0.1em;
		text-transform: uppercase;
		font-size: 12px;
	}

	.aiw-hero {
		min-height: 38vh;
	}

	.aiw-hero__title {
		font-size: 2rem !important;
	}

	.aiw-container {
		padding: 0 16px;
	}

	.aiw-article {
		padding: 28px 22px;
		border-radius: 20px;
	}

	.aiw-article__body,
	.aiw-article__body p,
	.aiw-article__body li {
		font-size: 16px;
	}

	.aiw-hero + .aiw-single-wrap {
		margin-top: -28px;
	}

	.aiw-footer__nav {
		gap: 6px 16px;
	}

	p.comment-form-author,
	p.comment-form-email {
		max-width: 100%;
	}
}

/* ---------- Mobile (Phone) ---------- */

@media screen and (max-width: 640px) {
	.aiw-single-wrap {
		padding: 32px 0 60px;
	}

	.aiw-hero {
		min-height: 32vh;
	}

	.aiw-hero__content {
		padding: 0 20px 36px;
	}

	.aiw-hero__title {
		font-size: 1.7rem !important;
	}

	.aiw-article__title {
		font-size: 1.7rem !important;
	}

	.aiw-article {
		padding: 24px 18px;
		border-radius: 16px;
	}

	.site-description {
		font-size: 10px !important;
		letter-spacing: 0.12em;
	}

	.aiw-footer__inner {
		padding: 36px 20px 28px;
	}
}

/* ==========================================================================
   Shop — Category Index Grid (used on /shop/ page)
   ========================================================================== */

.aiw-shop-intro {
	font-size: 1.05rem;
	color: var(--aiw-text-soft);
	margin-bottom: 2rem;
	max-width: 680px;
}

.aiw-cat-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 1.5rem;
	margin-bottom: 1.5rem;
}

.aiw-cat-card {
	background: var(--aiw-surface);
	border: 1px solid var(--aiw-border);
	border-radius: 12px;
	overflow: hidden;
	text-decoration: none !important;
	color: inherit;
	display: flex;
	flex-direction: column;
	transition: transform 0.2s, box-shadow 0.2s;
}

.aiw-cat-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--aiw-shadow-md);
}

.aiw-cat-img {
	aspect-ratio: 1 / 1;
	overflow: hidden;
	background: #f5f1eb;
}

.aiw-cat-img img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	padding: 0.5rem;
	transition: transform 0.3s;
}

.aiw-cat-card:hover .aiw-cat-img img {
	transform: scale(1.05);
}

.aiw-cat-body {
	padding: 1rem 1.2rem 1.25rem;
	display: flex;
	flex-direction: column;
	flex: 1;
}

.aiw-cat-body h3 {
	font-family: var(--aiw-font-heading) !important;
	font-size: 1rem;
	font-weight: 600;
	margin: 0 0 0.3rem;
	color: var(--aiw-text);
}

.aiw-cat-body p {
	font-size: 0.8rem;
	color: var(--aiw-muted);
	margin: 0 0 0.75rem;
}

.aiw-cat-cta {
	font-size: 0.8rem;
	font-weight: 600;
	color: var(--aiw-gold);
	margin-top: auto;
}

@media (max-width: 900px) {
	.aiw-cat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
	.aiw-cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ==========================================================================
   Shop — Product Grid (used on /shop/[category]/ pages)
   ========================================================================== */

.aiw-shop-header {
	margin-bottom: 1.5rem;
}

.aiw-shop-tagline {
	font-size: 1.05rem;
	color: var(--aiw-text-soft);
	margin-bottom: 0.25rem;
}

.aiw-shop-count {
	font-size: 0.85rem;
	color: var(--aiw-muted);
}

.aiw-product-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1.5rem;
	margin: 1.5rem 0 2rem;
}

.aiw-product-tile {
	background: var(--aiw-surface);
	border: 1px solid var(--aiw-border);
	border-radius: 12px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	box-shadow: var(--aiw-shadow-sm);
	transition: transform 0.2s, box-shadow 0.2s;
}

.aiw-product-tile:hover {
	transform: translateY(-3px);
	box-shadow: var(--aiw-shadow-md);
}

.aiw-product-img {
	aspect-ratio: 1 / 1;
	background: #f5f1eb;
	overflow: hidden;
}

.aiw-product-img img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	padding: 0.75rem;
}

.aiw-product-info {
	padding: 1rem 1.25rem 1.25rem;
	display: flex;
	flex-direction: column;
	flex: 1;
}

.aiw-product-name {
	font-size: 0.88rem;
	font-weight: 500;
	color: var(--aiw-text);
	line-height: 1.45;
	margin-bottom: 0.6rem;
}

.aiw-product-meta {
	display: flex;
	gap: 0.75rem;
	align-items: center;
	margin-bottom: 0.75rem;
}

.aiw-price {
	font-weight: 700;
	font-size: 0.9rem;
	color: var(--aiw-text);
}

.aiw-rating {
	font-size: 0.8rem;
	color: var(--aiw-gold);
	font-weight: 600;
}

.aiw-btn-shop {
	display: block;
	background: var(--aiw-gold) !important;
	color: #fff !important;
	text-align: center;
	padding: 0.55rem 1rem;
	border-radius: 6px;
	font-size: 0.82rem;
	font-weight: 600;
	text-decoration: none !important;
	margin-top: auto;
	transition: background 0.2s;
}

.aiw-btn-shop:hover {
	background: var(--aiw-gold-deep) !important;
	color: #fff !important;
}

.aiw-affiliate-note {
	font-size: 0.75rem;
	color: var(--aiw-muted);
	margin-top: 1.5rem;
}

.aiw-back-link {
	margin-top: 1rem;
	font-size: 0.9rem;
}

@media (max-width: 768px) {
	.aiw-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 480px) {
	.aiw-product-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Blog Archive Page (/blog/)
   ========================================================================== */

.blog-archive-header {
	background: var(--aiw-surface-warm);
	border-bottom: 1px solid var(--aiw-border);
	text-align: center;
	padding: 64px 24px 56px;
}

.blog-archive-header__eyebrow {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--aiw-gold);
	margin: 0 0 16px;
}

.blog-archive-header__title {
	font-family: var(--aiw-font-heading) !important;
	font-size: clamp(2rem, 5vw, 3rem) !important;
	font-weight: 700;
	color: var(--aiw-text);
	line-height: 1.15;
	letter-spacing: -0.02em;
	margin: 0 0 20px;
}

.blog-archive-header__sub {
	font-size: 16px;
	color: var(--aiw-text-soft);
	line-height: 1.65;
	max-width: 560px;
	margin: 0 auto;
}

.blog-archive-wrap {
	max-width: 1200px;
	margin: 0 auto;
	padding: 56px 24px 80px;
}

.blog-archive-wrap .blog-grid {
	max-width: 100%;
	margin: 0 0 48px;
	padding: 0;
}

.blog-card-img-wrap {
	display: block;
	overflow: hidden;
	border-radius: 0;
	line-height: 0;
}

.blog-card-img-wrap:focus-visible {
	outline: 2px solid var(--aiw-gold);
	outline-offset: 2px;
}

.blog-card-img--placeholder {
	height: 240px;
	background: linear-gradient(135deg, var(--aiw-surface-warm) 0%, #ede4d8 100%);
}

.blog-archive-empty {
	text-align: center;
	padding: 60px 20px;
	color: var(--aiw-text-soft);
	font-size: 16px;
	grid-column: 1 / -1;
}

.blog-pagination {
	display: flex;
	justify-content: center;
	gap: 8px;
	flex-wrap: wrap;
	padding-top: 16px;
	border-top: 1px solid var(--aiw-border);
}

.blog-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 14px;
	border: 1px solid var(--aiw-border);
	border-radius: 8px;
	font-size: 14px;
	font-weight: 500;
	color: var(--aiw-text) !important;
	text-decoration: none !important;
	background: var(--aiw-surface);
	transition: all 0.18s;
}

.blog-pagination .page-numbers:hover,
.blog-pagination .page-numbers.current {
	background: var(--aiw-gold);
	border-color: var(--aiw-gold);
	color: #fff !important;
}

@media (max-width: 768px) {
	.blog-archive-header {
		padding: 44px 20px 40px;
	}
	.blog-archive-wrap {
		padding: 36px 16px 60px;
	}
}

@media (max-width: 640px) {
	.blog-archive-header__title {
		font-size: 1.8rem !important;
	}
}